@dereekb/dbx-firebase 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/LICENSE +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +910 -1396
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +21 -23
- package/types/dereekb-dbx-firebase.d.ts +4304 -0
- package/esm2022/dereekb-dbx-firebase.mjs +0 -5
- package/esm2022/index.mjs +0 -2
- package/esm2022/lib/analytics/analytics.user.events.providers.mjs +0 -25
- package/esm2022/lib/analytics/analytics.user.events.service.mjs +0 -37
- package/esm2022/lib/analytics/analytics.user.source.mjs +0 -48
- package/esm2022/lib/analytics/index.mjs +0 -4
- package/esm2022/lib/auth/appcheck/appcheck.interceptor.mjs +0 -76
- package/esm2022/lib/auth/appcheck/appcheck.mjs +0 -11
- package/esm2022/lib/auth/appcheck/index.mjs +0 -3
- package/esm2022/lib/auth/auth.mjs +0 -22
- package/esm2022/lib/auth/firebase.auth.module.mjs +0 -22
- package/esm2022/lib/auth/firebase.auth.providers.mjs +0 -27
- package/esm2022/lib/auth/index.mjs +0 -7
- package/esm2022/lib/auth/login/firebase.login.module.mjs +0 -124
- package/esm2022/lib/auth/login/firebase.login.providers.default.mjs +0 -109
- package/esm2022/lib/auth/login/firebase.login.providers.mjs +0 -59
- package/esm2022/lib/auth/login/index.mjs +0 -27
- package/esm2022/lib/auth/login/login.anonymous.component.mjs +0 -23
- package/esm2022/lib/auth/login/login.apple.component.mjs +0 -23
- package/esm2022/lib/auth/login/login.button.component.mjs +0 -148
- package/esm2022/lib/auth/login/login.component.mjs +0 -39
- package/esm2022/lib/auth/login/login.context.back.component.mjs +0 -26
- package/esm2022/lib/auth/login/login.context.directive.mjs +0 -30
- package/esm2022/lib/auth/login/login.context.mjs +0 -7
- package/esm2022/lib/auth/login/login.email.component.mjs +0 -24
- package/esm2022/lib/auth/login/login.email.content.component.mjs +0 -102
- package/esm2022/lib/auth/login/login.email.form.component.mjs +0 -27
- package/esm2022/lib/auth/login/login.email.recovery.form.component.mjs +0 -21
- package/esm2022/lib/auth/login/login.facebook.component.mjs +0 -23
- package/esm2022/lib/auth/login/login.github.component.mjs +0 -23
- package/esm2022/lib/auth/login/login.google.component.mjs +0 -23
- package/esm2022/lib/auth/login/login.list.component.mjs +0 -71
- package/esm2022/lib/auth/login/login.microsoft.component.mjs +0 -23
- package/esm2022/lib/auth/login/login.mjs +0 -3
- package/esm2022/lib/auth/login/login.password.mjs +0 -4
- package/esm2022/lib/auth/login/login.service.mjs +0 -127
- package/esm2022/lib/auth/login/login.terms.component.mjs +0 -29
- package/esm2022/lib/auth/login/login.terms.mjs +0 -6
- package/esm2022/lib/auth/login/login.terms.simple.component.mjs +0 -38
- package/esm2022/lib/auth/login/login.twitter.component.mjs +0 -23
- package/esm2022/lib/auth/login/register.component.mjs +0 -27
- package/esm2022/lib/auth/login/register.email.component.mjs +0 -23
- package/esm2022/lib/auth/service/firebase.auth.rxjs.mjs +0 -46
- package/esm2022/lib/auth/service/firebase.auth.service.delegate.mjs +0 -28
- package/esm2022/lib/auth/service/firebase.auth.service.mjs +0 -193
- package/esm2022/lib/auth/service/index.mjs +0 -4
- package/esm2022/lib/development/development.directive.mjs +0 -78
- package/esm2022/lib/development/development.module.mjs +0 -61
- package/esm2022/lib/development/development.popup.component.mjs +0 -44
- package/esm2022/lib/development/development.popup.content.component.mjs +0 -79
- package/esm2022/lib/development/development.popup.content.form.component.mjs +0 -39
- package/esm2022/lib/development/development.providers.mjs +0 -47
- package/esm2022/lib/development/development.scheduler.list.component.mjs +0 -79
- package/esm2022/lib/development/development.scheduler.service.mjs +0 -78
- package/esm2022/lib/development/development.scheduler.widget.component.mjs +0 -40
- package/esm2022/lib/development/development.service.mjs +0 -20
- package/esm2022/lib/development/development.widget.mjs +0 -2
- package/esm2022/lib/development/development.widget.service.mjs +0 -56
- package/esm2022/lib/development/index.mjs +0 -14
- package/esm2022/lib/firebase/appcheck.mjs +0 -2
- package/esm2022/lib/firebase/emulators.mjs +0 -14
- package/esm2022/lib/firebase/firebase.emulator.module.mjs +0 -23
- package/esm2022/lib/firebase/firebase.emulator.providers.mjs +0 -33
- package/esm2022/lib/firebase/firebase.emulator.service.mjs +0 -29
- package/esm2022/lib/firebase/firebase.module.mjs +0 -26
- package/esm2022/lib/firebase/firebase.options.environment.mjs +0 -2
- package/esm2022/lib/firebase/firebase.options.mjs +0 -3
- package/esm2022/lib/firebase/firebase.providers.mjs +0 -149
- package/esm2022/lib/firebase/index.mjs +0 -10
- package/esm2022/lib/firestore/firebase.firestore.context.service.mjs +0 -18
- package/esm2022/lib/firestore/firebase.firestore.mjs +0 -6
- package/esm2022/lib/firestore/firebase.firestore.module.mjs +0 -23
- package/esm2022/lib/firestore/firebase.firestore.providers.mjs +0 -86
- package/esm2022/lib/firestore/index.mjs +0 -5
- package/esm2022/lib/function/firebase.function.module.mjs +0 -23
- package/esm2022/lib/function/firebase.function.providers.mjs +0 -54
- package/esm2022/lib/function/index.mjs +0 -3
- package/esm2022/lib/index.mjs +0 -14
- package/esm2022/lib/model/error.mjs +0 -6
- package/esm2022/lib/model/index.mjs +0 -7
- package/esm2022/lib/model/loader/collection.change.trigger.mjs +0 -80
- package/esm2022/lib/model/loader/collection.change.watcher.mjs +0 -35
- package/esm2022/lib/model/loader/collection.loader.instance.mjs +0 -227
- package/esm2022/lib/model/loader/collection.loader.mjs +0 -2
- package/esm2022/lib/model/loader/document.loader.instance.mjs +0 -68
- package/esm2022/lib/model/loader/document.loader.mjs +0 -2
- package/esm2022/lib/model/loader/index.mjs +0 -7
- package/esm2022/lib/model/model.module.mjs +0 -17
- package/esm2022/lib/model/modules/index.mjs +0 -3
- package/esm2022/lib/model/modules/model/entities/index.mjs +0 -11
- package/esm2022/lib/model/modules/model/entities/model.entities.component.mjs +0 -122
- package/esm2022/lib/model/modules/model/entities/model.entities.entity.component.mjs +0 -79
- package/esm2022/lib/model/modules/model/entities/model.entities.mjs +0 -15
- package/esm2022/lib/model/modules/model/entities/model.entities.popover.button.component.mjs +0 -49
- package/esm2022/lib/model/modules/model/entities/model.entities.popover.component.mjs +0 -42
- package/esm2022/lib/model/modules/model/entities/model.entities.providers.mjs +0 -20
- package/esm2022/lib/model/modules/model/entities/model.entities.source.directive.mjs +0 -38
- package/esm2022/lib/model/modules/model/entities/model.entities.widget.entity.abstract.directive.mjs +0 -18
- package/esm2022/lib/model/modules/model/entities/model.entities.widget.entity.debug.component.mjs +0 -41
- package/esm2022/lib/model/modules/model/entities/model.entities.widget.mjs +0 -51
- package/esm2022/lib/model/modules/model/entities/model.entities.widget.service.mjs +0 -91
- package/esm2022/lib/model/modules/model/history/index.mjs +0 -7
- package/esm2022/lib/model/modules/model/history/model.history.component.mjs +0 -36
- package/esm2022/lib/model/modules/model/history/model.history.module.mjs +0 -26
- package/esm2022/lib/model/modules/model/history/model.history.popover.button.component.mjs +0 -40
- package/esm2022/lib/model/modules/model/history/model.history.popover.component.mjs +0 -36
- package/esm2022/lib/model/modules/model/history/model.sourceselect.history.mjs +0 -18
- package/esm2022/lib/model/modules/model/history/model.tracker.service.mjs +0 -58
- package/esm2022/lib/model/modules/model/index.mjs +0 -8
- package/esm2022/lib/model/modules/model/model.key.component.mjs +0 -51
- package/esm2022/lib/model/modules/model/model.types.list.component.mjs +0 -67
- package/esm2022/lib/model/modules/model/model.types.module.mjs +0 -26
- package/esm2022/lib/model/modules/model/model.types.providers.mjs +0 -20
- package/esm2022/lib/model/modules/model/model.types.service.mjs +0 -122
- package/esm2022/lib/model/modules/model/model.types.view.directive.mjs +0 -45
- package/esm2022/lib/model/modules/store/index.mjs +0 -22
- package/esm2022/lib/model/modules/store/model.store.module.mjs +0 -21
- package/esm2022/lib/model/modules/store/store.collection.change.directive.mjs +0 -45
- package/esm2022/lib/model/modules/store/store.collection.change.if.directive.mjs +0 -42
- package/esm2022/lib/model/modules/store/store.collection.crud.mjs +0 -28
- package/esm2022/lib/model/modules/store/store.collection.directive.mjs +0 -99
- package/esm2022/lib/model/modules/store/store.collection.list.directive.mjs +0 -31
- package/esm2022/lib/model/modules/store/store.collection.mjs +0 -79
- package/esm2022/lib/model/modules/store/store.document.context.store.directive.mjs +0 -19
- package/esm2022/lib/model/modules/store/store.document.context.store.link.mjs +0 -45
- package/esm2022/lib/model/modules/store/store.document.context.store.mjs +0 -86
- package/esm2022/lib/model/modules/store/store.document.crud.mjs +0 -80
- package/esm2022/lib/model/modules/store/store.document.directive.mjs +0 -114
- package/esm2022/lib/model/modules/store/store.document.mjs +0 -193
- package/esm2022/lib/model/modules/store/store.document.twoway.key.directive.mjs +0 -26
- package/esm2022/lib/model/modules/store/store.document.twoway.key.source.directive.mjs +0 -22
- package/esm2022/lib/model/modules/store/store.document.twoway.key.source.mjs +0 -16
- package/esm2022/lib/model/modules/store/store.mjs +0 -2
- package/esm2022/lib/model/modules/store/store.subcollection.directive.mjs +0 -44
- package/esm2022/lib/model/modules/store/store.subcollection.document.mjs +0 -99
- package/esm2022/lib/model/modules/store/store.subcollection.mjs +0 -80
- package/esm2022/lib/model/modules/store/store.subcollection.rxjs.mjs +0 -23
- package/esm2022/lib/model/service/index.mjs +0 -5
- package/esm2022/lib/model/service/model.context.instance.mjs +0 -73
- package/esm2022/lib/model/service/model.context.mjs +0 -2
- package/esm2022/lib/model/service/model.context.providers.mjs +0 -32
- package/esm2022/lib/model/service/model.context.service.mjs +0 -38
- package/esm2022/lib/model/system/index.mjs +0 -6
- package/esm2022/lib/model/system/systemstate.collection.store.directive.mjs +0 -20
- package/esm2022/lib/model/system/systemstate.collection.store.mjs +0 -16
- package/esm2022/lib/model/system/systemstate.document.store.accessor.mjs +0 -35
- package/esm2022/lib/model/system/systemstate.document.store.directive.mjs +0 -19
- package/esm2022/lib/model/system/systemstate.document.store.mjs +0 -16
- package/esm2022/lib/module.mjs +0 -15
- package/esm2022/lib/modules/index.mjs +0 -3
- package/esm2022/lib/modules/notification/component/index.mjs +0 -6
- package/esm2022/lib/modules/notification/component/notificationitem.content.component.mjs +0 -15
- package/esm2022/lib/modules/notification/component/notificationitem.list.component.mjs +0 -90
- package/esm2022/lib/modules/notification/component/notificationitem.view.component.mjs +0 -37
- package/esm2022/lib/modules/notification/component/notificationitem.view.default.component.mjs +0 -27
- package/esm2022/lib/modules/notification/component/notificationitem.view.directive.mjs +0 -14
- package/esm2022/lib/modules/notification/container/index.mjs +0 -3
- package/esm2022/lib/modules/notification/container/notification.item.store.popover.button.component.mjs +0 -48
- package/esm2022/lib/modules/notification/container/notification.item.store.popover.component.mjs +0 -35
- package/esm2022/lib/modules/notification/index.mjs +0 -7
- package/esm2022/lib/modules/notification/notification.module.mjs +0 -103
- package/esm2022/lib/modules/notification/notification.providers.mjs +0 -47
- package/esm2022/lib/modules/notification/service/index.mjs +0 -4
- package/esm2022/lib/modules/notification/service/notification.template.service.mjs +0 -28
- package/esm2022/lib/modules/notification/service/notificationitem.widget.mjs +0 -11
- package/esm2022/lib/modules/notification/service/notificationitem.widget.service.mjs +0 -55
- package/esm2022/lib/modules/notification/store/index.mjs +0 -18
- package/esm2022/lib/modules/notification/store/notification.collection.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notification.collection.store.mjs +0 -23
- package/esm2022/lib/modules/notification/store/notification.document.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notification.document.store.mjs +0 -33
- package/esm2022/lib/modules/notification/store/notification.item.store.mjs +0 -30
- package/esm2022/lib/modules/notification/store/notificationbox.collection.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notificationbox.collection.store.mjs +0 -16
- package/esm2022/lib/modules/notification/store/notificationbox.document.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notificationbox.document.store.mjs +0 -22
- package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notificationsummary.collection.store.mjs +0 -16
- package/esm2022/lib/modules/notification/store/notificationsummary.document.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notificationsummary.document.store.mjs +0 -34
- package/esm2022/lib/modules/notification/store/notificationuser.collection.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notificationuser.collection.store.mjs +0 -16
- package/esm2022/lib/modules/notification/store/notificationuser.document.store.directive.mjs +0 -21
- package/esm2022/lib/modules/notification/store/notificationuser.document.store.mjs +0 -18
- package/esm2022/lib/modules/storagefile/container/index.mjs +0 -8
- package/esm2022/lib/modules/storagefile/container/storagefile.download.button.component.mjs +0 -278
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.action.handler.directive.mjs +0 -118
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.error.mjs +0 -12
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.handler.mjs +0 -260
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.mjs +0 -51
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.store.directive.mjs +0 -38
- package/esm2022/lib/modules/storagefile/container/storagefile.upload.sync.directive.mjs +0 -36
- package/esm2022/lib/modules/storagefile/index.mjs +0 -6
- package/esm2022/lib/modules/storagefile/service/index.mjs +0 -3
- package/esm2022/lib/modules/storagefile/service/storagefile.download.service.mjs +0 -158
- package/esm2022/lib/modules/storagefile/service/storagefile.download.storage.service.mjs +0 -91
- package/esm2022/lib/modules/storagefile/storagefile.providers.mjs +0 -33
- package/esm2022/lib/modules/storagefile/storagefile.upload.module.mjs +0 -83
- package/esm2022/lib/modules/storagefile/store/index.mjs +0 -8
- package/esm2022/lib/modules/storagefile/store/storagefile.collection.store.directive.mjs +0 -22
- package/esm2022/lib/modules/storagefile/store/storagefile.collection.store.mjs +0 -18
- package/esm2022/lib/modules/storagefile/store/storagefile.document.store.directive.mjs +0 -21
- package/esm2022/lib/modules/storagefile/store/storagefile.document.store.mjs +0 -23
- package/esm2022/lib/modules/storagefile/store/storagefile.upload.store.mjs +0 -63
- package/esm2022/lib/modules/storagefile/store/storagefilegroup.document.store.directive.mjs +0 -21
- package/esm2022/lib/modules/storagefile/store/storagefilegroup.document.store.mjs +0 -18
- package/esm2022/lib/pipe/index.mjs +0 -4
- package/esm2022/lib/pipe/key.flat.pipe.mjs +0 -20
- package/esm2022/lib/pipe/key.twoway.pipe.mjs +0 -20
- package/esm2022/lib/pipe/pipe.module.mjs +0 -23
- package/esm2022/lib/providers.mjs +0 -48
- package/esm2022/lib/router/id.param.redirect.mjs +0 -64
- package/esm2022/lib/router/index.mjs +0 -2
- package/esm2022/lib/storage/firebase.storage.mjs +0 -10
- package/esm2022/lib/storage/firebase.storage.module.mjs +0 -22
- package/esm2022/lib/storage/firebase.storage.providers.mjs +0 -44
- package/esm2022/lib/storage/firebase.storage.service.mjs +0 -27
- package/esm2022/lib/storage/index.mjs +0 -5
- package/index.d.ts +0 -1
- package/lib/analytics/analytics.user.events.providers.d.ts +0 -6
- package/lib/analytics/analytics.user.events.service.d.ts +0 -19
- package/lib/analytics/analytics.user.source.d.ts +0 -21
- package/lib/analytics/index.d.ts +0 -3
- package/lib/auth/appcheck/appcheck.d.ts +0 -8
- package/lib/auth/appcheck/appcheck.interceptor.d.ts +0 -15
- package/lib/auth/appcheck/index.d.ts +0 -2
- package/lib/auth/auth.d.ts +0 -15
- package/lib/auth/firebase.auth.module.d.ts +0 -13
- package/lib/auth/firebase.auth.providers.d.ts +0 -21
- package/lib/auth/index.d.ts +0 -6
- package/lib/auth/login/firebase.login.module.d.ts +0 -36
- package/lib/auth/login/firebase.login.providers.d.ts +0 -32
- package/lib/auth/login/firebase.login.providers.default.d.ts +0 -7
- package/lib/auth/login/index.d.ts +0 -26
- package/lib/auth/login/login.anonymous.component.d.ts +0 -8
- package/lib/auth/login/login.apple.component.d.ts +0 -8
- package/lib/auth/login/login.button.component.d.ts +0 -53
- package/lib/auth/login/login.component.d.ts +0 -14
- package/lib/auth/login/login.context.back.component.d.ts +0 -8
- package/lib/auth/login/login.context.d.ts +0 -6
- package/lib/auth/login/login.context.directive.d.ts +0 -10
- package/lib/auth/login/login.d.ts +0 -7
- package/lib/auth/login/login.email.component.d.ts +0 -8
- package/lib/auth/login/login.email.content.component.d.ts +0 -41
- package/lib/auth/login/login.email.form.component.d.ts +0 -17
- package/lib/auth/login/login.email.recovery.form.component.d.ts +0 -11
- package/lib/auth/login/login.facebook.component.d.ts +0 -8
- package/lib/auth/login/login.github.component.d.ts +0 -8
- package/lib/auth/login/login.google.component.d.ts +0 -8
- package/lib/auth/login/login.list.component.d.ts +0 -21
- package/lib/auth/login/login.microsoft.component.d.ts +0 -8
- package/lib/auth/login/login.password.d.ts +0 -3
- package/lib/auth/login/login.service.d.ts +0 -115
- package/lib/auth/login/login.terms.component.d.ts +0 -9
- package/lib/auth/login/login.terms.d.ts +0 -18
- package/lib/auth/login/login.terms.simple.component.d.ts +0 -9
- package/lib/auth/login/login.twitter.component.d.ts +0 -8
- package/lib/auth/login/register.component.d.ts +0 -12
- package/lib/auth/login/register.email.component.d.ts +0 -8
- package/lib/auth/service/firebase.auth.rxjs.d.ts +0 -23
- package/lib/auth/service/firebase.auth.service.d.ts +0 -95
- package/lib/auth/service/firebase.auth.service.delegate.d.ts +0 -25
- package/lib/auth/service/index.d.ts +0 -3
- package/lib/development/development.directive.d.ts +0 -24
- package/lib/development/development.module.d.ts +0 -15
- package/lib/development/development.popup.component.d.ts +0 -14
- package/lib/development/development.popup.content.component.d.ts +0 -49
- package/lib/development/development.popup.content.form.component.d.ts +0 -17
- package/lib/development/development.providers.d.ts +0 -32
- package/lib/development/development.scheduler.list.component.d.ts +0 -23
- package/lib/development/development.scheduler.service.d.ts +0 -31
- package/lib/development/development.scheduler.widget.component.d.ts +0 -12
- package/lib/development/development.service.d.ts +0 -16
- package/lib/development/development.widget.d.ts +0 -8
- package/lib/development/development.widget.service.d.ts +0 -29
- package/lib/development/index.d.ts +0 -13
- package/lib/firebase/appcheck.d.ts +0 -21
- package/lib/firebase/emulators.d.ts +0 -60
- package/lib/firebase/firebase.emulator.module.d.ts +0 -14
- package/lib/firebase/firebase.emulator.providers.d.ts +0 -13
- package/lib/firebase/firebase.emulator.service.d.ts +0 -11
- package/lib/firebase/firebase.module.d.ts +0 -14
- package/lib/firebase/firebase.options.d.ts +0 -36
- package/lib/firebase/firebase.options.environment.d.ts +0 -10
- package/lib/firebase/firebase.providers.d.ts +0 -51
- package/lib/firebase/index.d.ts +0 -9
- package/lib/firestore/firebase.firestore.context.service.d.ts +0 -10
- package/lib/firestore/firebase.firestore.d.ts +0 -5
- package/lib/firestore/firebase.firestore.module.d.ts +0 -15
- package/lib/firestore/firebase.firestore.providers.d.ts +0 -62
- package/lib/firestore/index.d.ts +0 -4
- package/lib/function/firebase.function.module.d.ts +0 -16
- package/lib/function/firebase.function.providers.d.ts +0 -43
- package/lib/function/index.d.ts +0 -2
- package/lib/index.d.ts +0 -13
- package/lib/model/error.d.ts +0 -2
- package/lib/model/index.d.ts +0 -6
- package/lib/model/loader/collection.change.trigger.d.ts +0 -57
- package/lib/model/loader/collection.change.watcher.d.ts +0 -44
- package/lib/model/loader/collection.loader.d.ts +0 -61
- package/lib/model/loader/collection.loader.instance.d.ts +0 -110
- package/lib/model/loader/document.loader.d.ts +0 -75
- package/lib/model/loader/document.loader.instance.d.ts +0 -46
- package/lib/model/loader/index.d.ts +0 -6
- package/lib/model/model.module.d.ts +0 -9
- package/lib/model/modules/index.d.ts +0 -2
- package/lib/model/modules/model/entities/index.d.ts +0 -10
- package/lib/model/modules/model/entities/model.entities.component.d.ts +0 -47
- package/lib/model/modules/model/entities/model.entities.d.ts +0 -60
- package/lib/model/modules/model/entities/model.entities.entity.component.d.ts +0 -43
- package/lib/model/modules/model/entities/model.entities.popover.button.component.d.ts +0 -30
- package/lib/model/modules/model/entities/model.entities.popover.component.d.ts +0 -59
- package/lib/model/modules/model/entities/model.entities.providers.d.ts +0 -22
- package/lib/model/modules/model/entities/model.entities.source.directive.d.ts +0 -8
- package/lib/model/modules/model/entities/model.entities.widget.d.ts +0 -30
- package/lib/model/modules/model/entities/model.entities.widget.entity.abstract.directive.d.ts +0 -13
- package/lib/model/modules/model/entities/model.entities.widget.entity.debug.component.d.ts +0 -17
- package/lib/model/modules/model/entities/model.entities.widget.service.d.ts +0 -74
- package/lib/model/modules/model/history/index.d.ts +0 -6
- package/lib/model/modules/model/history/model.history.component.d.ts +0 -16
- package/lib/model/modules/model/history/model.history.module.d.ts +0 -16
- package/lib/model/modules/model/history/model.history.popover.button.component.d.ts +0 -16
- package/lib/model/modules/model/history/model.history.popover.component.d.ts +0 -50
- package/lib/model/modules/model/history/model.sourceselect.history.d.ts +0 -32
- package/lib/model/modules/model/history/model.tracker.service.d.ts +0 -43
- package/lib/model/modules/model/index.d.ts +0 -7
- package/lib/model/modules/model/model.key.component.d.ts +0 -25
- package/lib/model/modules/model/model.types.list.component.d.ts +0 -22
- package/lib/model/modules/model/model.types.module.d.ts +0 -16
- package/lib/model/modules/model/model.types.providers.d.ts +0 -22
- package/lib/model/modules/model/model.types.service.d.ts +0 -90
- package/lib/model/modules/model/model.types.view.directive.d.ts +0 -19
- package/lib/model/modules/store/index.d.ts +0 -21
- package/lib/model/modules/store/model.store.module.d.ts +0 -11
- package/lib/model/modules/store/store.collection.change.directive.d.ts +0 -28
- package/lib/model/modules/store/store.collection.change.if.directive.d.ts +0 -18
- package/lib/model/modules/store/store.collection.crud.d.ts +0 -21
- package/lib/model/modules/store/store.collection.d.ts +0 -97
- package/lib/model/modules/store/store.collection.directive.d.ts +0 -56
- package/lib/model/modules/store/store.collection.list.directive.d.ts +0 -16
- package/lib/model/modules/store/store.d.ts +0 -87
- package/lib/model/modules/store/store.document.context.store.d.ts +0 -59
- package/lib/model/modules/store/store.document.context.store.directive.d.ts +0 -8
- package/lib/model/modules/store/store.document.context.store.link.d.ts +0 -17
- package/lib/model/modules/store/store.document.crud.d.ts +0 -63
- package/lib/model/modules/store/store.document.d.ts +0 -101
- package/lib/model/modules/store/store.document.directive.d.ts +0 -66
- package/lib/model/modules/store/store.document.twoway.key.directive.d.ts +0 -14
- package/lib/model/modules/store/store.document.twoway.key.source.d.ts +0 -10
- package/lib/model/modules/store/store.document.twoway.key.source.directive.d.ts +0 -13
- package/lib/model/modules/store/store.subcollection.d.ts +0 -51
- package/lib/model/modules/store/store.subcollection.directive.d.ts +0 -28
- package/lib/model/modules/store/store.subcollection.document.d.ts +0 -67
- package/lib/model/modules/store/store.subcollection.rxjs.d.ts +0 -24
- package/lib/model/service/index.d.ts +0 -4
- package/lib/model/service/model.context.d.ts +0 -33
- package/lib/model/service/model.context.instance.d.ts +0 -17
- package/lib/model/service/model.context.providers.d.ts +0 -18
- package/lib/model/service/model.context.service.d.ts +0 -31
- package/lib/model/system/index.d.ts +0 -5
- package/lib/model/system/systemstate.collection.store.d.ts +0 -8
- package/lib/model/system/systemstate.collection.store.directive.d.ts +0 -9
- package/lib/model/system/systemstate.document.store.accessor.d.ts +0 -22
- package/lib/model/system/systemstate.document.store.d.ts +0 -8
- package/lib/model/system/systemstate.document.store.directive.d.ts +0 -9
- package/lib/module.d.ts +0 -7
- package/lib/modules/index.d.ts +0 -2
- package/lib/modules/notification/component/index.d.ts +0 -5
- package/lib/modules/notification/component/notificationitem.content.component.d.ts +0 -9
- package/lib/modules/notification/component/notificationitem.list.component.d.ts +0 -24
- package/lib/modules/notification/component/notificationitem.view.component.d.ts +0 -10
- package/lib/modules/notification/component/notificationitem.view.default.component.d.ts +0 -9
- package/lib/modules/notification/component/notificationitem.view.directive.d.ts +0 -8
- package/lib/modules/notification/container/index.d.ts +0 -2
- package/lib/modules/notification/container/notification.item.store.popover.button.component.d.ts +0 -17
- package/lib/modules/notification/container/notification.item.store.popover.component.d.ts +0 -50
- package/lib/modules/notification/index.d.ts +0 -6
- package/lib/modules/notification/notification.module.d.ts +0 -38
- package/lib/modules/notification/notification.providers.d.ts +0 -24
- package/lib/modules/notification/service/index.d.ts +0 -3
- package/lib/modules/notification/service/notification.template.service.d.ts +0 -11
- package/lib/modules/notification/service/notificationitem.widget.d.ts +0 -26
- package/lib/modules/notification/service/notificationitem.widget.service.d.ts +0 -22
- package/lib/modules/notification/store/index.d.ts +0 -17
- package/lib/modules/notification/store/notification.collection.store.d.ts +0 -9
- package/lib/modules/notification/store/notification.collection.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notification.document.store.d.ts +0 -16
- package/lib/modules/notification/store/notification.document.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notification.item.store.d.ts +0 -28
- package/lib/modules/notification/store/notificationbox.collection.store.d.ts +0 -8
- package/lib/modules/notification/store/notificationbox.collection.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notificationbox.document.store.d.ts +0 -13
- package/lib/modules/notification/store/notificationbox.document.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notificationsummary.collection.store.d.ts +0 -8
- package/lib/modules/notification/store/notificationsummary.collection.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notificationsummary.document.store.d.ts +0 -21
- package/lib/modules/notification/store/notificationsummary.document.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notificationuser.collection.store.d.ts +0 -8
- package/lib/modules/notification/store/notificationuser.collection.store.directive.d.ts +0 -9
- package/lib/modules/notification/store/notificationuser.document.store.d.ts +0 -11
- package/lib/modules/notification/store/notificationuser.document.store.directive.d.ts +0 -9
- package/lib/modules/storagefile/container/index.d.ts +0 -7
- package/lib/modules/storagefile/container/storagefile.download.button.component.d.ts +0 -160
- package/lib/modules/storagefile/container/storagefile.upload.action.handler.directive.d.ts +0 -47
- package/lib/modules/storagefile/container/storagefile.upload.error.d.ts +0 -9
- package/lib/modules/storagefile/container/storagefile.upload.handler.d.ts +0 -183
- package/lib/modules/storagefile/container/storagefile.upload.initialize.document.directive.d.ts +0 -21
- package/lib/modules/storagefile/container/storagefile.upload.store.directive.d.ts +0 -20
- package/lib/modules/storagefile/container/storagefile.upload.sync.directive.d.ts +0 -18
- package/lib/modules/storagefile/index.d.ts +0 -5
- package/lib/modules/storagefile/service/index.d.ts +0 -2
- package/lib/modules/storagefile/service/storagefile.download.service.d.ts +0 -79
- package/lib/modules/storagefile/service/storagefile.download.storage.service.d.ts +0 -56
- package/lib/modules/storagefile/storagefile.providers.d.ts +0 -13
- package/lib/modules/storagefile/storagefile.upload.module.d.ts +0 -29
- package/lib/modules/storagefile/store/index.d.ts +0 -7
- package/lib/modules/storagefile/store/storagefile.collection.store.d.ts +0 -10
- package/lib/modules/storagefile/store/storagefile.collection.store.directive.d.ts +0 -9
- package/lib/modules/storagefile/store/storagefile.document.store.d.ts +0 -16
- package/lib/modules/storagefile/store/storagefile.document.store.directive.d.ts +0 -9
- package/lib/modules/storagefile/store/storagefile.upload.store.d.ts +0 -166
- package/lib/modules/storagefile/store/storagefilegroup.document.store.d.ts +0 -11
- package/lib/modules/storagefile/store/storagefilegroup.document.store.directive.d.ts +0 -9
- package/lib/pipe/index.d.ts +0 -3
- package/lib/pipe/key.flat.pipe.d.ts +0 -9
- package/lib/pipe/key.twoway.pipe.d.ts +0 -9
- package/lib/pipe/pipe.module.d.ts +0 -13
- package/lib/providers.d.ts +0 -64
- package/lib/router/id.param.redirect.d.ts +0 -41
- package/lib/router/index.d.ts +0 -1
- package/lib/storage/firebase.storage.d.ts +0 -9
- package/lib/storage/firebase.storage.module.d.ts +0 -13
- package/lib/storage/firebase.storage.providers.d.ts +0 -31
- package/lib/storage/firebase.storage.service.d.ts +0 -13
- package/lib/storage/index.d.ts +0 -4
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable,
|
|
2
|
+
import { inject, Injectable, provideAppInitializer, makeEnvironmentProviders, InjectionToken, Component, model, computed, ChangeDetectionStrategy, signal, Directive, EventEmitter, input, output, Injector, Optional, Inject, viewChild, HostListener, NgModule, ElementRef, forwardRef, effect, DestroyRef, Pipe } from '@angular/core';
|
|
3
3
|
import { DbxAnalyticsService } from '@dereekb/dbx-analytics';
|
|
4
|
-
import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject, lazyFrom, switchMapWhileTrue, loadingStateFromObs, distinctUntilKeysChange, cleanupDestroyable, iterationHasNextAndCanLoadMore, pageItemAccumulatorCurrentPage, accumulatorFlattenPageListLoadingState, useFirst, itemAccumulatorNextPageUntilResultsCount, iteratorNextPageUntilPage, iteratorNextPageUntilMaxPageLoadLimit, pageLoadingStateFromObs, useAsObservable, filterMaybeArray, mapEachAsync, invertObservableDecision, filterItemsWithObservableDecision,
|
|
4
|
+
import { asObservable, timeoutStartWith, filterMaybe, isNot, SubscriptionObject, lazyFrom, switchMapWhileTrue, loadingStateFromObs, distinctUntilKeysChange, cleanupDestroyable, iterationHasNextAndCanLoadMore, pageItemAccumulatorCurrentPage, accumulatorFlattenPageListLoadingState, useFirst, itemAccumulatorNextPageUntilResultsCount, iteratorNextPageUntilPage, iteratorNextPageUntilMaxPageLoadLimit, pageLoadingStateFromObs, useAsObservable, filterMaybeArray, mapEachAsync, invertObservableDecision, filterItemsWithObservableDecision, switchMapMaybe, beginLoading, mapLoadingStateValueWithOperator, valueFromFinishedLoadingState, skipInitialMaybe, distinctUntilModelKeyChange, successResult, errorResult, isLoadingStateLoading, cleanup, mapLoadingState, throwErrorFromLoadingStateError, maybeValueFromObservableOrValue, distinctUntilHasDifferentValues, MultiSubscriptionObject, startWithBeginLoading, skipAllInitialMaybe } from '@dereekb/rxjs';
|
|
5
5
|
import { switchMap, of, shareReplay, map, distinctUntilChanged, EMPTY, catchError, firstValueFrom, BehaviorSubject, combineLatest, first, from, tap, interval, exhaustMap, filter, take, startWith, Subject, throttleTime, NEVER, defaultIfEmpty, combineLatestWith, mergeMap, Observable } from 'rxjs';
|
|
6
6
|
import * as i2 from '@dereekb/dbx-core';
|
|
7
|
-
import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifier, DbxInjectionContext, DbxInjectionComponent, AbstractForwardDbxInjectionContextDirective, DbxInjectionContextDirective,
|
|
7
|
+
import { loggedInObsFromIsLoggedIn, loggedOutObsFromIsLoggedIn, authUserIdentifier, DbxInjectionContext, DBX_INJECTION_COMPONENT_DATA, DbxInjectionComponent, AbstractForwardDbxInjectionContextDirective, DbxInjectionContextDirective, DbxAuthService, DbxActionButtonDirective, completeOnDestroy, cleanSubscription, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionAutoTriggerDirective, clean, cleanLoadingContext, provideDbxRouteModelIdDirectiveDelegate, provideDbxRouteModelKeyDirectiveDelegate, AbstractIfDirective, LockSetComponentStore, newWithInjector, CutTextPipe, DbxActionContextStoreSourceInstance, DbxActionHandlerInstance, SimpleStorageAccessorFactory, dbxRouteParamReaderInstance, DbxRouteParamDefaultRedirectInstance } from '@dereekb/dbx-core';
|
|
8
8
|
import { Auth, authState, idToken, GoogleAuthProvider, FacebookAuthProvider, TwitterAuthProvider, GithubAuthProvider, signInWithPopup, createUserWithEmailAndPassword, signInWithEmailAndPassword, signInAnonymously, reauthenticateWithPopup, provideAuth, getAuth, connectAuthEmulator } from '@angular/fire/auth';
|
|
9
9
|
import { AUTH_ADMIN_ROLE, cachedGetter, urlWithoutParameters, addToSet, removeFromSet, filterMaybeArrayValues, mapIterable, asArray, excludeValuesFromArray, containsStringAnyCase, addToSetCopy, iterableToArray, runAsyncTasksForValues, pushArrayItemsIntoArray, forEachKeyValue, countAllInNestedArray, invertDecision, filterUniqueValues, reverseCompareFn, sortByNumberFunction, separateValues, readableError, isMaybeSo, firstValue, splitJoinRemainder, MS_IN_HOUR, SECONDS_IN_MINUTE, MS_IN_DAY, unixDateTimeSecondsNumberForNow, MS_IN_MINUTE, addMilliseconds, unixDateTimeSecondsNumberFromDate, dateFromDateOrTimeSecondsNumber, MS_IN_SECOND, isPast } from '@dereekb/util';
|
|
10
10
|
import { safeFormatToISO8601DateString, msToSeconds, isSameDate } from '@dereekb/date';
|
|
@@ -12,14 +12,13 @@ import { sendPasswordResetEmail } from 'firebase/auth';
|
|
|
12
12
|
import { getToken, initializeAppCheck, ReCaptchaV3Provider } from 'firebase/app-check';
|
|
13
13
|
import { AppCheck, provideAppCheck } from '@angular/fire/app-check';
|
|
14
14
|
import * as i1$1 from '@dereekb/dbx-web';
|
|
15
|
-
import { DbxLinkComponent, DbxActionModule, DbxButtonModule, DbxErrorComponent, DbxActionErrorDirective, DbxButtonComponent, DbxButtonSpacerDirective, DbxRouterAnchorModule, DbxWidgetService, AbstractDbxSelectionListWrapperDirective,
|
|
15
|
+
import { DbxLinkComponent, DbxActionModule, DbxButtonModule, DbxErrorComponent, DbxActionErrorDirective, DbxButtonComponent, DbxButtonSpacerDirective, DbxRouterAnchorModule, DbxWidgetService, AbstractDbxSelectionListWrapperDirective, DbxListWrapperComponentImportsModule, provideDbxListViewWrapper, DEFAULT_LIST_WRAPPER_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxSelectionListViewDirective, DbxSelectionValueListViewComponentImportsModule, provideDbxListView, DEFAULT_DBX_SELECTION_VALUE_LIST_COMPONENT_CONFIGURATION_TEMPLATE, AbstractDbxValueListViewItemComponent, TwoColumnsContextStore, DbxAnchorComponent, DbxTwoColumnFullLeftDirective, DbxWidgetViewComponent, DbxTwoColumnComponent, DbxTwoBlockComponent, DbxTwoColumnRightComponent, AbstractPopupDirective, DbxPopupService, DbxPopupContentComponent, DbxPopupControlsComponent, DbxModelTypesService, DbxModelTrackerService, allDbxModelViewTrackerEventModelKeys, DbxListItemAnchorModifierDirective, DbxValueListItemModifierDirective, AbstractPopoverDirective, DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxListEmptyContentComponent, AbstractPopoverRefDirective, DbxPopoverService, DbxIconButtonComponent, DbxLoadingComponent, DbxDetailBlockComponent, DbxClickToCopyTextComponent, DbxDownloadTextViewComponent, DbxModelObjectStateService, DbxListViewWrapper, AbstractDbxWidgetComponent, DbxPopoverInteractionModule, DbxListModifierModule, DbxWebFilePreviewService, DbxActionSnackbarErrorDirective, DbxActionDialogDirective, DbxFileUploadComponent, DbxActionLoadingContextDirective, DbxFileUploadActionSyncDirective } from '@dereekb/dbx-web';
|
|
16
16
|
import * as i1 from '@angular/material/icon';
|
|
17
17
|
import { MatIconModule, MatIcon } from '@angular/material/icon';
|
|
18
18
|
import * as i1$2 from '@dereekb/dbx-form';
|
|
19
|
-
import { AbstractSyncFormlyFormDirective, emailField,
|
|
20
|
-
import * as i1$4 from '@dereekb/firebase';
|
|
19
|
+
import { AbstractSyncFormlyFormDirective, emailField, DbxFormlyFormComponentImportsModule, dbxFormlyFormComponentProviders, DBX_FORMLY_FORM_COMPONENT_TEMPLATE, AbstractConfigAsyncFormlyFormDirective, usernamePasswordLoginFields, DbxActionFormDirective, DbxFormSourceDirective, pickableItemChipField, filterPickableItemFieldValuesByLabel } from '@dereekb/dbx-form';
|
|
21
20
|
import { firebaseAuthErrorToReadableError, FirebaseDevelopmentFunctions, ScheduledFunctionDevelopmentFunctionTypeEnum, clientFirebaseFirestoreContextFactory, SystemStateFirestoreCollections, NotificationFirestoreCollections, StorageFileFirestoreCollections, FIREBASE_DEVELOPMENT_FUNCTIONS_MAP_KEY, iterationQueryDocChangeWatcher, firebaseQuerySnapshotAccumulator, firebaseQueryItemAccumulator, firestoreModelKeysFromDocuments, firestoreModelIdsFromDocuments, documentReferencesFromDocuments, getDocumentSnapshots, getDataFromDocumentSnapshots, latestSnapshotsFromDocuments, dataFromDocumentSnapshots, loadDocumentsForKeys, loadDocumentsForDocumentReferences, loadDocumentsForIds, firestoreModelKeyCollectionTypePair, buildFirebaseCollectionTypeModelTypeMap, firestoreModelId, flatFirestoreModelKey, twoWayFlatFirestoreModelKey, FirestoreAccessorStreamMode, firestoreModelIdsFromKey, firestoreModelKeyPartPairs, firestoreModelKeyPairObject, documentDataWithIdAndKey, isClientFirebaseError, FIRESTORE_PERMISSION_DENIED_ERROR_CODE, inferKeyFromTwoWayFlatFirestoreModelKey, firestoreModelKeyParentKey, AppNotificationTemplateTypeInfoRecordService, NotificationFunctions, unreadNotificationItems, StorageFileFunctions, firestoreModelKey, storageFileIdentity, clientFirebaseStorageContextFactory } from '@dereekb/firebase';
|
|
22
|
-
import { NgTemplateOutlet,
|
|
21
|
+
import { NgTemplateOutlet, DatePipe } from '@angular/common';
|
|
23
22
|
import * as i1$3 from '@angular/material/button';
|
|
24
23
|
import { MatButtonModule } from '@angular/material/button';
|
|
25
24
|
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
@@ -30,7 +29,7 @@ import { provideStorage, getStorage, connectStorageEmulator, Storage } from '@an
|
|
|
30
29
|
import { provideFunctions, getFunctions, connectFunctionsEmulator, Functions } from '@angular/fire/functions';
|
|
31
30
|
import { provideFirestore, persistentMultipleTabManager, persistentSingleTabManager, persistentLocalCache, initializeFirestore, connectFirestoreEmulator, Firestore } from '@angular/fire/firestore';
|
|
32
31
|
import { HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
33
|
-
import { MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle, MatExpansionPanelContent,
|
|
32
|
+
import { MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle, MatExpansionPanelContent, MatAccordion } from '@angular/material/expansion';
|
|
34
33
|
import { ComponentStore } from '@ngrx/component-store';
|
|
35
34
|
import { __decorate, __param, __metadata } from 'tslib';
|
|
36
35
|
import { MatDialog } from '@angular/material/dialog';
|
|
@@ -249,10 +248,10 @@ class DbxFirebaseAuthService {
|
|
|
249
248
|
}
|
|
250
249
|
})));
|
|
251
250
|
}
|
|
252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
253
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
251
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
252
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAuthService });
|
|
254
253
|
}
|
|
255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
254
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAuthService, decorators: [{
|
|
256
255
|
type: Injectable
|
|
257
256
|
}] });
|
|
258
257
|
/**
|
|
@@ -318,10 +317,10 @@ class DbxFirebaseAnalyticsUserSource {
|
|
|
318
317
|
set userPropertiesFactory(userPropertiesFactory) {
|
|
319
318
|
this._userPropertiesFactory.next(userPropertiesFactory);
|
|
320
319
|
}
|
|
321
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
322
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
320
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
321
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, providedIn: 'root' });
|
|
323
322
|
}
|
|
324
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAnalyticsUserSource, decorators: [{
|
|
325
324
|
type: Injectable,
|
|
326
325
|
args: [{
|
|
327
326
|
providedIn: 'root'
|
|
@@ -351,10 +350,10 @@ class DbxFirebaseAnalyticsUserEventsListenerService {
|
|
|
351
350
|
this._loginSub.destroy();
|
|
352
351
|
this._logoutSub.destroy();
|
|
353
352
|
}
|
|
354
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
355
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAnalyticsUserEventsListenerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
354
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAnalyticsUserEventsListenerService });
|
|
356
355
|
}
|
|
357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAnalyticsUserEventsListenerService, decorators: [{
|
|
358
357
|
type: Injectable
|
|
359
358
|
}] });
|
|
360
359
|
|
|
@@ -367,16 +366,10 @@ function provideDbxFirebaseAnalyticsUserEventsListenerService() {
|
|
|
367
366
|
const providers = [
|
|
368
367
|
DbxFirebaseAnalyticsUserEventsListenerService,
|
|
369
368
|
// service initialization
|
|
370
|
-
{
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
dbxFirebaseAnalyticsUserEventsListenerService.init();
|
|
375
|
-
};
|
|
376
|
-
},
|
|
377
|
-
deps: [DbxFirebaseAnalyticsUserEventsListenerService],
|
|
378
|
-
multi: true
|
|
379
|
-
}
|
|
369
|
+
provideAppInitializer(() => {
|
|
370
|
+
const service = inject(DbxFirebaseAnalyticsUserEventsListenerService);
|
|
371
|
+
service.init();
|
|
372
|
+
})
|
|
380
373
|
];
|
|
381
374
|
return makeEnvironmentProviders(providers);
|
|
382
375
|
}
|
|
@@ -456,10 +449,10 @@ class DbxFirebaseAppCheckHttpInterceptor {
|
|
|
456
449
|
}
|
|
457
450
|
return from(this._appCheckRoutes).pipe(first((route) => isEnabledRouteMatch(route), false), map((x) => Boolean(x)));
|
|
458
451
|
}
|
|
459
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
460
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
452
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
453
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor });
|
|
461
454
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
455
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAppCheckHttpInterceptor, decorators: [{
|
|
463
456
|
type: Injectable
|
|
464
457
|
}] });
|
|
465
458
|
|
|
@@ -478,8 +471,8 @@ class DbxFirebaseLoginTermsSimpleComponent {
|
|
|
478
471
|
url: this.dbxFirebaseLoginTermsConfig.privacyUrl,
|
|
479
472
|
target: '_blank'
|
|
480
473
|
};
|
|
481
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
482
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
474
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginTermsSimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
475
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginTermsSimpleComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
483
476
|
<div class="dbx-firebase-login-terms-view">
|
|
484
477
|
<dbx-link [anchor]="tosAnchor">Terms</dbx-link>
|
|
485
478
|
<span class="dbx-link-spacer"></span>
|
|
@@ -487,7 +480,7 @@ class DbxFirebaseLoginTermsSimpleComponent {
|
|
|
487
480
|
</div>
|
|
488
481
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }] });
|
|
489
482
|
}
|
|
490
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
483
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginTermsSimpleComponent, decorators: [{
|
|
491
484
|
type: Component,
|
|
492
485
|
args: [{
|
|
493
486
|
template: `
|
|
@@ -524,7 +517,9 @@ class DbxFirebaseAuthLoginService {
|
|
|
524
517
|
_enableAll = false;
|
|
525
518
|
_passwordConfig;
|
|
526
519
|
_enabled = new Set();
|
|
527
|
-
constructor(
|
|
520
|
+
constructor() {
|
|
521
|
+
const defaultProviders = inject(DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, { optional: true });
|
|
522
|
+
const passwordConfig = inject(DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, { optional: true });
|
|
528
523
|
if (defaultProviders) {
|
|
529
524
|
defaultProviders.forEach((x) => this.register(x, false));
|
|
530
525
|
}
|
|
@@ -611,22 +606,15 @@ class DbxFirebaseAuthLoginService {
|
|
|
611
606
|
setPasswordConfig(passwordConfig) {
|
|
612
607
|
this._passwordConfig = passwordConfig;
|
|
613
608
|
}
|
|
614
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
615
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
609
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAuthLoginService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
610
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAuthLoginService });
|
|
616
611
|
}
|
|
617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseAuthLoginService, decorators: [{
|
|
618
613
|
type: Injectable
|
|
619
|
-
}], ctorParameters: () => [
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
args: [DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN]
|
|
624
|
-
}] }, { type: undefined, decorators: [{
|
|
625
|
-
type: Optional
|
|
626
|
-
}, {
|
|
627
|
-
type: Inject,
|
|
628
|
-
args: [DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN]
|
|
629
|
-
}] }] });
|
|
614
|
+
}], ctorParameters: () => [] });
|
|
615
|
+
|
|
616
|
+
const DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY = 'default';
|
|
617
|
+
const OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY = 'oauth';
|
|
630
618
|
|
|
631
619
|
/**
|
|
632
620
|
* Injection token for a DbxInjectionContext for DbxFirebaseLoginContext.
|
|
@@ -638,12 +626,12 @@ class DbxFirebaseLoginContext extends DbxInjectionContext {
|
|
|
638
626
|
* Login button and action.
|
|
639
627
|
*/
|
|
640
628
|
class DbxFirebaseLoginButtonComponent {
|
|
641
|
-
config = model(null);
|
|
642
|
-
iconUrlSignal = computed(() => this.config()?.iconUrl);
|
|
643
|
-
iconSignal = computed(() => this.config()?.icon);
|
|
644
|
-
textSignal = computed(() => this.config()?.text ?? '');
|
|
645
|
-
buttonColorSignal = computed(() => this.config()?.buttonColor ?? 'transparent');
|
|
646
|
-
buttonTextColorSignal = computed(() => this.config()?.buttonTextColor);
|
|
629
|
+
config = model(null, ...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
630
|
+
iconUrlSignal = computed(() => this.config()?.iconUrl, ...(ngDevMode ? [{ debugName: "iconUrlSignal" }] : []));
|
|
631
|
+
iconSignal = computed(() => this.config()?.icon, ...(ngDevMode ? [{ debugName: "iconSignal" }] : []));
|
|
632
|
+
textSignal = computed(() => this.config()?.text ?? '', ...(ngDevMode ? [{ debugName: "textSignal" }] : []));
|
|
633
|
+
buttonColorSignal = computed(() => this.config()?.buttonColor ?? 'transparent', ...(ngDevMode ? [{ debugName: "buttonColorSignal" }] : []));
|
|
634
|
+
buttonTextColorSignal = computed(() => this.config()?.buttonTextColor, ...(ngDevMode ? [{ debugName: "buttonTextColorSignal" }] : []));
|
|
647
635
|
setConfig(config) {
|
|
648
636
|
this.config.set(config);
|
|
649
637
|
}
|
|
@@ -660,8 +648,8 @@ class DbxFirebaseLoginButtonComponent {
|
|
|
660
648
|
onActionSuccess = () => {
|
|
661
649
|
// todo: show checkmark on success?
|
|
662
650
|
};
|
|
663
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
664
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
651
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
652
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseLoginButtonComponent, isStandalone: true, selector: "dbx-firebase-login-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { config: "configChange" }, host: { classAttribute: "dbx-firebase-login-button" }, ngImport: i0, template: `
|
|
665
653
|
<ng-container dbxAction [dbxActionHandler]="handleAction" dbxActionValue [dbxActionSuccessHandler]="onActionSuccess">
|
|
666
654
|
<dbx-button dbxActionButton [customTextColor]="buttonTextColorSignal()" [customButtonColor]="buttonColorSignal()" [raised]="true">
|
|
667
655
|
<div class="dbx-firebase-login-button-content">
|
|
@@ -677,9 +665,9 @@ class DbxFirebaseLoginButtonComponent {
|
|
|
677
665
|
</div>
|
|
678
666
|
</dbx-button>
|
|
679
667
|
</ng-container>
|
|
680
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]
|
|
668
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "ngmodule", type: DbxButtonModule }, { kind: "component", type: i1$1.DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
681
669
|
}
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
670
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginButtonComponent, decorators: [{
|
|
683
671
|
type: Component,
|
|
684
672
|
args: [{
|
|
685
673
|
selector: 'dbx-firebase-login-button',
|
|
@@ -707,16 +695,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
707
695
|
imports: [MatIconModule, DbxActionModule, DbxButtonModule],
|
|
708
696
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
709
697
|
}]
|
|
710
|
-
}] });
|
|
698
|
+
}], propDecorators: { config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }, { type: i0.Output, args: ["configChange"] }] } });
|
|
711
699
|
class DbxFirebaseLoginButtonContainerComponent {
|
|
712
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
700
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginButtonContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
701
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginButtonContainerComponent, isStandalone: true, selector: "dbx-firebase-login-button-container", ngImport: i0, template: `
|
|
714
702
|
<div class="dbx-firebase-login-button-container">
|
|
715
703
|
<ng-content></ng-content>
|
|
716
704
|
</div>
|
|
717
705
|
`, isInline: true });
|
|
718
706
|
}
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
707
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginButtonContainerComponent, decorators: [{
|
|
720
708
|
type: Component,
|
|
721
709
|
args: [{
|
|
722
710
|
selector: 'dbx-firebase-login-button-container',
|
|
@@ -743,8 +731,8 @@ class AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
|
743
731
|
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
744
732
|
dbxFirebaseLoginContext = inject(DbxFirebaseLoginContext);
|
|
745
733
|
// TODO: Consider updating these signals, etc.
|
|
746
|
-
_config = signal(null);
|
|
747
|
-
configSignal = computed(() => this._config());
|
|
734
|
+
_config = signal(null, ...(ngDevMode ? [{ debugName: "_config" }] : []));
|
|
735
|
+
configSignal = computed(() => this._config(), ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
|
|
748
736
|
ngOnInit() {
|
|
749
737
|
const assets = this.assetConfig;
|
|
750
738
|
this._config.set({
|
|
@@ -765,41 +753,22 @@ class AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
|
765
753
|
get config() {
|
|
766
754
|
return this._config();
|
|
767
755
|
}
|
|
768
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
769
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
756
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractConfiguredDbxFirebaseLoginButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
757
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractConfiguredDbxFirebaseLoginButtonDirective, isStandalone: true, ngImport: i0 });
|
|
770
758
|
}
|
|
771
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractConfiguredDbxFirebaseLoginButtonDirective, decorators: [{
|
|
772
760
|
type: Directive
|
|
773
761
|
}] });
|
|
774
762
|
|
|
775
|
-
class DbxFirebaseLoginAppleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
776
|
-
loginProvider = 'apple';
|
|
777
|
-
handleLogin() {
|
|
778
|
-
return this.dbxFirebaseAuthService.logInWithApple();
|
|
779
|
-
}
|
|
780
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginAppleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
781
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseLoginAppleComponent, isStandalone: true, selector: "dbx-firebase-login-apple", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
782
|
-
}
|
|
783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginAppleComponent, decorators: [{
|
|
784
|
-
type: Component,
|
|
785
|
-
args: [{
|
|
786
|
-
selector: 'dbx-firebase-login-apple',
|
|
787
|
-
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
788
|
-
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
789
|
-
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
790
|
-
standalone: true
|
|
791
|
-
}]
|
|
792
|
-
}] });
|
|
793
|
-
|
|
794
763
|
class DbxFirebaseLoginAnonymousComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
795
764
|
loginProvider = 'anonymous';
|
|
796
765
|
handleLogin() {
|
|
797
766
|
return this.dbxFirebaseAuthService.logInAsAnonymous();
|
|
798
767
|
}
|
|
799
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
800
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
768
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginAnonymousComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
769
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginAnonymousComponent, isStandalone: true, selector: "dbx-firebase-login-anonymous", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
801
770
|
}
|
|
802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginAnonymousComponent, decorators: [{
|
|
803
772
|
type: Component,
|
|
804
773
|
args: [{
|
|
805
774
|
selector: 'dbx-firebase-login-anonymous',
|
|
@@ -810,138 +779,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
810
779
|
}]
|
|
811
780
|
}] });
|
|
812
781
|
|
|
813
|
-
/**
|
|
814
|
-
* Pre-configured login component that displays all configured login types.
|
|
815
|
-
*/
|
|
816
|
-
class DbxFirebaseLoginListComponent {
|
|
817
|
-
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
818
|
-
loginMode = input('login');
|
|
819
|
-
providerTypes = input();
|
|
820
|
-
omitProviderTypes = input();
|
|
821
|
-
providerCategories = input();
|
|
822
|
-
providerTypesSignal = computed(() => {
|
|
823
|
-
const providerTypes = this.providerTypes();
|
|
824
|
-
const omitProviderTypes = this.omitProviderTypes();
|
|
825
|
-
const baseTypes = providerTypes ? asArray(providerTypes) : this.dbxFirebaseAuthLoginService.getEnabledTypes();
|
|
826
|
-
const types = omitProviderTypes ? excludeValuesFromArray(baseTypes, asArray(omitProviderTypes)) : baseTypes;
|
|
827
|
-
return types;
|
|
828
|
-
});
|
|
829
|
-
providersSignal = computed(() => {
|
|
830
|
-
const providerCategories = asArray(this.providerCategories());
|
|
831
|
-
let providers = this.dbxFirebaseAuthLoginService.getLoginProviders(this.providerTypesSignal());
|
|
832
|
-
if (providerCategories.length) {
|
|
833
|
-
const categories = new Set(providerCategories);
|
|
834
|
-
providers = providers.filter((x) => containsStringAnyCase(categories, x.category ?? ''));
|
|
835
|
-
}
|
|
836
|
-
return providers;
|
|
837
|
-
});
|
|
838
|
-
providersInjectionConfigsSignal = computed(() => {
|
|
839
|
-
let providers = this.providersSignal();
|
|
840
|
-
let mapFn;
|
|
841
|
-
if (this.loginMode() === 'register') {
|
|
842
|
-
providers = providers.filter((x) => x.registrationComponentClass !== false); // providers with "registrationComponentClass" set to false are not available for registration
|
|
843
|
-
mapFn = (x) => ({ componentClass: (x.registrationComponentClass ?? x.componentClass), loginMethodType: x.loginMethodType });
|
|
844
|
-
}
|
|
845
|
-
else {
|
|
846
|
-
mapFn = (x) => ({ componentClass: x.componentClass, loginMethodType: x.loginMethodType });
|
|
847
|
-
}
|
|
848
|
-
const configs = providers.map(mapFn);
|
|
849
|
-
return configs;
|
|
850
|
-
});
|
|
851
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
852
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DbxFirebaseLoginListComponent, isStandalone: true, selector: "dbx-firebase-login-list", inputs: { loginMode: { classPropertyName: "loginMode", publicName: "loginMode", isSignal: true, isRequired: false, transformFunction: null }, providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "dbx-firebase-login-list" }, ngImport: i0, template: `
|
|
853
|
-
@for (config of providersInjectionConfigsSignal(); track config.loginMethodType) {
|
|
854
|
-
<div class="dbx-firebase-login-item">
|
|
855
|
-
<dbx-injection [config]="config"></dbx-injection>
|
|
856
|
-
</div>
|
|
857
|
-
}
|
|
858
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
859
|
-
}
|
|
860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginListComponent, decorators: [{
|
|
861
|
-
type: Component,
|
|
862
|
-
args: [{
|
|
863
|
-
selector: 'dbx-firebase-login-list',
|
|
864
|
-
template: `
|
|
865
|
-
@for (config of providersInjectionConfigsSignal(); track config.loginMethodType) {
|
|
866
|
-
<div class="dbx-firebase-login-item">
|
|
867
|
-
<dbx-injection [config]="config"></dbx-injection>
|
|
868
|
-
</div>
|
|
869
|
-
}
|
|
870
|
-
`,
|
|
871
|
-
host: {
|
|
872
|
-
class: 'dbx-firebase-login-list'
|
|
873
|
-
},
|
|
874
|
-
standalone: true,
|
|
875
|
-
imports: [DbxInjectionComponent]
|
|
876
|
-
}]
|
|
877
|
-
}] });
|
|
878
|
-
|
|
879
|
-
/**
|
|
880
|
-
* DbxFirebaseLoginContext implementation.
|
|
881
|
-
*/
|
|
882
|
-
class DbxFirebaseLoginContextDirective extends AbstractForwardDbxInjectionContextDirective {
|
|
883
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginContextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
884
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseLoginContextDirective, isStandalone: true, selector: "[dbxFirebaseLoginContext]", providers: [
|
|
885
|
-
{
|
|
886
|
-
provide: DbxFirebaseLoginContext,
|
|
887
|
-
useExisting: DbxFirebaseLoginContextDirective
|
|
888
|
-
}
|
|
889
|
-
], usesInheritance: true, ngImport: i0 });
|
|
890
|
-
}
|
|
891
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginContextDirective, decorators: [{
|
|
892
|
-
type: Directive,
|
|
893
|
-
args: [{
|
|
894
|
-
selector: '[dbxFirebaseLoginContext]',
|
|
895
|
-
standalone: true,
|
|
896
|
-
providers: [
|
|
897
|
-
{
|
|
898
|
-
provide: DbxFirebaseLoginContext,
|
|
899
|
-
useExisting: DbxFirebaseLoginContextDirective
|
|
900
|
-
}
|
|
901
|
-
]
|
|
902
|
-
}]
|
|
903
|
-
}] });
|
|
904
|
-
|
|
905
|
-
/**
|
|
906
|
-
* Pre-configured login component that displays all configured login types.
|
|
907
|
-
*/
|
|
908
|
-
class DbxFirebaseLoginComponent {
|
|
909
|
-
loginMode = input('login');
|
|
910
|
-
providerTypes = input();
|
|
911
|
-
omitProviderTypes = input();
|
|
912
|
-
providerCategories = input();
|
|
913
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
914
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: DbxFirebaseLoginComponent, isStandalone: true, selector: "dbx-firebase-login", inputs: { loginMode: { classPropertyName: "loginMode", publicName: "loginMode", isSignal: true, isRequired: false, transformFunction: null }, providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "{ \"dbx-firebase-register\": loginMode() === \"register\" }" }, classAttribute: "d-block dbx-firebase-login" }, ngImport: i0, template: `
|
|
915
|
-
<ng-container *dbxInjectionContext dbxFirebaseLoginContext>
|
|
916
|
-
<dbx-firebase-login-list [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()" [loginMode]="loginMode()"></dbx-firebase-login-list>
|
|
917
|
-
</ng-container>
|
|
918
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: ["config"] }, { kind: "directive", type: DbxFirebaseLoginContextDirective, selector: "[dbxFirebaseLoginContext]" }, { kind: "component", type: DbxFirebaseLoginListComponent, selector: "dbx-firebase-login-list", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
919
|
-
}
|
|
920
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginComponent, decorators: [{
|
|
921
|
-
type: Component,
|
|
922
|
-
args: [{
|
|
923
|
-
selector: 'dbx-firebase-login',
|
|
924
|
-
standalone: true,
|
|
925
|
-
imports: [DbxInjectionContextDirective, DbxFirebaseLoginContextDirective, DbxFirebaseLoginListComponent],
|
|
926
|
-
template: `
|
|
927
|
-
<ng-container *dbxInjectionContext dbxFirebaseLoginContext>
|
|
928
|
-
<dbx-firebase-login-list [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()" [loginMode]="loginMode()"></dbx-firebase-login-list>
|
|
929
|
-
</ng-container>
|
|
930
|
-
`,
|
|
931
|
-
host: {
|
|
932
|
-
class: 'd-block dbx-firebase-login',
|
|
933
|
-
'[class]': '{ "dbx-firebase-register": loginMode() === "register" }'
|
|
934
|
-
},
|
|
935
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
936
|
-
}]
|
|
937
|
-
}] });
|
|
938
|
-
|
|
939
782
|
class DbxFirebaseEmailRecoveryFormComponent extends AbstractSyncFormlyFormDirective {
|
|
940
783
|
fields = [emailField({ required: true })];
|
|
941
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
942
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
784
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmailRecoveryFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
785
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseEmailRecoveryFormComponent, isStandalone: true, selector: "dbx-firebase-email-recovery-form", providers: dbxFormlyFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-formly></dbx-formly>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxFormlyFormComponentImportsModule }, { kind: "component", type: i1$2.DbxFormlyComponent, selector: "dbx-formly", exportAs: ["formly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
943
786
|
}
|
|
944
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmailRecoveryFormComponent, decorators: [{
|
|
945
788
|
type: Component,
|
|
946
789
|
args: [{
|
|
947
790
|
selector: 'dbx-firebase-email-recovery-form',
|
|
@@ -960,10 +803,10 @@ class DbxFirebaseEmailFormComponent extends AbstractConfigAsyncFormlyFormDirecti
|
|
|
960
803
|
const fields = usernamePasswordLoginFields({ username: 'email', password: passwordConfig, verifyPassword: loginMode === 'register' });
|
|
961
804
|
return fields;
|
|
962
805
|
}));
|
|
963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
964
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
806
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmailFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
807
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseEmailFormComponent, isStandalone: true, selector: "dbx-firebase-email-form", providers: dbxFormlyFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-formly></dbx-formly>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxFormlyFormComponentImportsModule }, { kind: "component", type: i1$2.DbxFormlyComponent, selector: "dbx-formly", exportAs: ["formly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
965
808
|
}
|
|
966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmailFormComponent, decorators: [{
|
|
967
810
|
type: Component,
|
|
968
811
|
args: [{
|
|
969
812
|
selector: 'dbx-firebase-email-form',
|
|
@@ -982,9 +825,9 @@ class DbxFirebaseLoginEmailContentComponent {
|
|
|
982
825
|
loginMode: this.config.loginMode,
|
|
983
826
|
passwordConfig: this.config.passwordConfig
|
|
984
827
|
};
|
|
985
|
-
_emailFormValueSignal = signal(undefined);
|
|
986
|
-
_recoveryFormValueSignal = signal(undefined);
|
|
987
|
-
_emailModeSignal = signal('login');
|
|
828
|
+
_emailFormValueSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_emailFormValueSignal" }] : []));
|
|
829
|
+
_recoveryFormValueSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "_recoveryFormValueSignal" }] : []));
|
|
830
|
+
_emailModeSignal = signal('login', ...(ngDevMode ? [{ debugName: "_emailModeSignal" }] : []));
|
|
988
831
|
emailFormValueSignal = this._emailFormValueSignal.asReadonly();
|
|
989
832
|
recoveryFormValueSignal = this._recoveryFormValueSignal.asReadonly();
|
|
990
833
|
emailModeSignal = this._emailModeSignal.asReadonly();
|
|
@@ -1055,10 +898,10 @@ class DbxFirebaseLoginEmailContentComponent {
|
|
|
1055
898
|
onCancelReset() {
|
|
1056
899
|
this.doneOrCancelled.next(false);
|
|
1057
900
|
}
|
|
1058
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1059
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
901
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginEmailContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
902
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseLoginEmailContentComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<div class=\"dbx-firebase-login-email-content\">\n @switch (emailModeSignal()) {\n @case ('login') {\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n }\n @case ('recover') {\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n }\n @case ('recoversent') {\n <ng-container *ngTemplateOutlet=\"resetPasswordSent\"></ng-container>\n }\n }\n</div>\n\n<!-- Login View -->\n<ng-template #loginView>\n <ng-container dbxAction [dbxActionHandler]=\"handleLoginAction\">\n <dbx-firebase-email-form [config]=\"formConfig\" dbxActionForm [dbxFormSource]=\"emailFormValueSignal()\"></dbx-firebase-email-form>\n @if (isLoginMode) {\n <div class=\"dbx-firebase-login-email-forgot-prompt\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n }\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" [text]=\"buttonText\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <dbx-button-spacer></dbx-button-spacer>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancel()\">Cancel</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </ng-container>\n</ng-template>\n\n<!-- Reset Password View -->\n<ng-template #resetPassword>\n <div class=\"dbx-firebase-login-email-content-recovery\" dbxAction [dbxActionHandler]=\"handleRecoveryAction\" [dbxActionSuccessHandler]=\"handleRecoverySuccess\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValueSignal()\"></dbx-firebase-email-recovery-form>\n <p class=\"dbx-hint\">An email will be sent to the above address to help you reset your password.</p>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" text=\"Send Recovery Email\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancelReset()\">Cancel Recovery</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </div>\n</ng-template>\n\n<!-- Reset Password Sent -->\n<ng-template #resetPasswordSent>\n <div class=\"dbx-firebase-login-email-content-recovery-sent\">\n <p class=\"dbx-hint\">A recovery email was sent to the specified address. Please check your email for next steps.</p>\n <button mat-raised-button (click)=\"clickedRecoveryAcknowledged()\">Ok</button>\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: DbxErrorComponent, selector: "dbx-error", inputs: ["error", "iconOnly"], outputs: ["popoverOpened"] }, { kind: "component", type: DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }, { kind: "directive", type: DbxActionErrorDirective, selector: "[dbxActionError]" }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }, { kind: "directive", type: DbxButtonSpacerDirective, selector: "dbx-button-spacer,[dbxButtonSpacer]" }, { kind: "component", type: DbxFirebaseEmailFormComponent, selector: "dbx-firebase-email-form" }, { kind: "component", type: DbxFirebaseEmailRecoveryFormComponent, selector: "dbx-firebase-email-recovery-form" }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1060
903
|
}
|
|
1061
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginEmailContentComponent, decorators: [{
|
|
1062
905
|
type: Component,
|
|
1063
906
|
args: [{ imports: [NgTemplateOutlet, DbxErrorComponent, DbxLinkComponent, DbxActionErrorDirective, DbxActionFormDirective, MatButtonModule, DbxActionModule, DbxButtonComponent, DbxButtonSpacerDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFormSourceDirective], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div class=\"dbx-firebase-login-email-content\">\n @switch (emailModeSignal()) {\n @case ('login') {\n <ng-container *ngTemplateOutlet=\"loginView\"></ng-container>\n }\n @case ('recover') {\n <ng-container *ngTemplateOutlet=\"resetPassword\"></ng-container>\n }\n @case ('recoversent') {\n <ng-container *ngTemplateOutlet=\"resetPasswordSent\"></ng-container>\n }\n }\n</div>\n\n<!-- Login View -->\n<ng-template #loginView>\n <ng-container dbxAction [dbxActionHandler]=\"handleLoginAction\">\n <dbx-firebase-email-form [config]=\"formConfig\" dbxActionForm [dbxFormSource]=\"emailFormValueSignal()\"></dbx-firebase-email-form>\n @if (isLoginMode) {\n <div class=\"dbx-firebase-login-email-forgot-prompt\">\n <dbx-link [anchor]=\"forgotAnchor\">Forgot Password?</dbx-link>\n </div>\n }\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" [text]=\"buttonText\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <dbx-button-spacer></dbx-button-spacer>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancel()\">Cancel</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </ng-container>\n</ng-template>\n\n<!-- Reset Password View -->\n<ng-template #resetPassword>\n <div class=\"dbx-firebase-login-email-content-recovery\" dbxAction [dbxActionHandler]=\"handleRecoveryAction\" [dbxActionSuccessHandler]=\"handleRecoverySuccess\">\n <dbx-firebase-email-recovery-form dbxActionForm [dbxFormSource]=\"recoveryFormValueSignal()\"></dbx-firebase-email-recovery-form>\n <p class=\"dbx-hint\">An email will be sent to the above address to help you reset your password.</p>\n <div class=\"dbx-flex\">\n <dbx-button class=\"dbx-button-wide\" text=\"Send Recovery Email\" [raised]=\"true\" color=\"primary\" dbxActionButton></dbx-button>\n <span class=\"dbx-spacer\"></span>\n <button mat-flat-button (click)=\"onCancelReset()\">Cancel Recovery</button>\n </div>\n <dbx-error dbxActionError></dbx-error>\n </div>\n</ng-template>\n\n<!-- Reset Password Sent -->\n<ng-template #resetPasswordSent>\n <div class=\"dbx-firebase-login-email-content-recovery-sent\">\n <p class=\"dbx-hint\">A recovery email was sent to the specified address. Please check your email for next steps.</p>\n <button mat-raised-button (click)=\"clickedRecoveryAcknowledged()\">Ok</button>\n </div>\n</ng-template>\n" }]
|
|
1064
907
|
}] });
|
|
@@ -1068,10 +911,10 @@ class DbxFirebaseLoginEmailComponent extends AbstractConfiguredDbxFirebaseLoginB
|
|
|
1068
911
|
handleLogin() {
|
|
1069
912
|
return DbxFirebaseLoginEmailContentComponent.openEmailLoginContext(this.dbxFirebaseLoginContext, { loginMode: 'login', passwordConfig: this.dbxFirebaseAuthLoginService.getPasswordConfig() });
|
|
1070
913
|
}
|
|
1071
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1072
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
914
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginEmailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
915
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginEmailComponent, isStandalone: true, selector: "dbx-firebase-login-email", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1073
916
|
}
|
|
1074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
917
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginEmailComponent, decorators: [{
|
|
1075
918
|
type: Component,
|
|
1076
919
|
args: [{
|
|
1077
920
|
selector: 'dbx-firebase-login-email',
|
|
@@ -1087,10 +930,10 @@ class DbxFirebaseLoginFacebookComponent extends AbstractConfiguredDbxFirebaseLog
|
|
|
1087
930
|
handleLogin() {
|
|
1088
931
|
return this.dbxFirebaseAuthService.logInWithFacebook();
|
|
1089
932
|
}
|
|
1090
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1091
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
933
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginFacebookComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
934
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginFacebookComponent, isStandalone: true, selector: "dbx-firebase-login-facebook", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1092
935
|
}
|
|
1093
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
936
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginFacebookComponent, decorators: [{
|
|
1094
937
|
type: Component,
|
|
1095
938
|
args: [{
|
|
1096
939
|
selector: 'dbx-firebase-login-facebook',
|
|
@@ -1101,58 +944,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1101
944
|
}]
|
|
1102
945
|
}] });
|
|
1103
946
|
|
|
1104
|
-
class DbxFirebaseLoginGoogleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1105
|
-
loginProvider = 'google';
|
|
1106
|
-
handleLogin() {
|
|
1107
|
-
return this.dbxFirebaseAuthService.logInWithGoogle();
|
|
1108
|
-
}
|
|
1109
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginGoogleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1110
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseLoginGoogleComponent, isStandalone: true, selector: "dbx-firebase-login-google", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1111
|
-
}
|
|
1112
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginGoogleComponent, decorators: [{
|
|
1113
|
-
type: Component,
|
|
1114
|
-
args: [{
|
|
1115
|
-
selector: 'dbx-firebase-login-google',
|
|
1116
|
-
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
1117
|
-
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
1118
|
-
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
1119
|
-
standalone: true
|
|
1120
|
-
}]
|
|
1121
|
-
}] });
|
|
1122
|
-
|
|
1123
|
-
/**
|
|
1124
|
-
* Pre-configured register component that displays all configured login types and their registration components.
|
|
1125
|
-
*/
|
|
1126
|
-
class DbxFirebaseRegisterComponent {
|
|
1127
|
-
providerTypes = input();
|
|
1128
|
-
omitProviderTypes = input();
|
|
1129
|
-
providerCategories = input();
|
|
1130
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseRegisterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1131
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.13", type: DbxFirebaseRegisterComponent, isStandalone: true, selector: "dbx-firebase-register", inputs: { providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
1132
|
-
<dbx-firebase-login loginMode="register" [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()"></dbx-firebase-login>
|
|
1133
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginComponent, selector: "dbx-firebase-login", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }] });
|
|
1134
|
-
}
|
|
1135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseRegisterComponent, decorators: [{
|
|
1136
|
-
type: Component,
|
|
1137
|
-
args: [{
|
|
1138
|
-
selector: 'dbx-firebase-register',
|
|
1139
|
-
template: `
|
|
1140
|
-
<dbx-firebase-login loginMode="register" [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()"></dbx-firebase-login>
|
|
1141
|
-
`,
|
|
1142
|
-
imports: [DbxFirebaseLoginComponent],
|
|
1143
|
-
standalone: true
|
|
1144
|
-
}]
|
|
1145
|
-
}] });
|
|
1146
|
-
|
|
1147
947
|
class DbxFirebaseLoginGitHubComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1148
948
|
loginProvider = 'github';
|
|
1149
949
|
handleLogin() {
|
|
1150
950
|
return this.dbxFirebaseAuthService.logInWithGithub();
|
|
1151
951
|
}
|
|
1152
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1153
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
952
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginGitHubComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
953
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginGitHubComponent, isStandalone: true, selector: "dbx-firebase-login-github", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1154
954
|
}
|
|
1155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginGitHubComponent, decorators: [{
|
|
1156
956
|
type: Component,
|
|
1157
957
|
args: [{
|
|
1158
958
|
selector: 'dbx-firebase-login-github',
|
|
@@ -1163,18 +963,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1163
963
|
}]
|
|
1164
964
|
}] });
|
|
1165
965
|
|
|
1166
|
-
class
|
|
1167
|
-
loginProvider = '
|
|
966
|
+
class DbxFirebaseLoginGoogleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
967
|
+
loginProvider = 'google';
|
|
1168
968
|
handleLogin() {
|
|
1169
|
-
return this.dbxFirebaseAuthService.
|
|
969
|
+
return this.dbxFirebaseAuthService.logInWithGoogle();
|
|
1170
970
|
}
|
|
1171
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1172
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
971
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginGoogleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
972
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginGoogleComponent, isStandalone: true, selector: "dbx-firebase-login-google", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1173
973
|
}
|
|
1174
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginGoogleComponent, decorators: [{
|
|
1175
975
|
type: Component,
|
|
1176
976
|
args: [{
|
|
1177
|
-
selector: 'dbx-firebase-login-
|
|
977
|
+
selector: 'dbx-firebase-login-google',
|
|
1178
978
|
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
1179
979
|
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
1180
980
|
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
@@ -1182,18 +982,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1182
982
|
}]
|
|
1183
983
|
}] });
|
|
1184
984
|
|
|
1185
|
-
class
|
|
1186
|
-
loginProvider = '
|
|
985
|
+
class DbxFirebaseLoginTwitterComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
986
|
+
loginProvider = 'twitter';
|
|
1187
987
|
handleLogin() {
|
|
1188
|
-
return this.dbxFirebaseAuthService.
|
|
988
|
+
return this.dbxFirebaseAuthService.logInWithTwitter();
|
|
1189
989
|
}
|
|
1190
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1191
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
990
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginTwitterComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
991
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginTwitterComponent, isStandalone: true, selector: "dbx-firebase-login-twitter", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1192
992
|
}
|
|
1193
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginTwitterComponent, decorators: [{
|
|
1194
994
|
type: Component,
|
|
1195
995
|
args: [{
|
|
1196
|
-
selector: 'dbx-firebase-login-
|
|
996
|
+
selector: 'dbx-firebase-login-twitter',
|
|
1197
997
|
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
1198
998
|
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
1199
999
|
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
@@ -1206,10 +1006,10 @@ class DbxFirebaseRegisterEmailComponent extends AbstractConfiguredDbxFirebaseLog
|
|
|
1206
1006
|
handleLogin() {
|
|
1207
1007
|
return DbxFirebaseLoginEmailContentComponent.openEmailLoginContext(this.dbxFirebaseLoginContext, { loginMode: 'register', passwordConfig: this.dbxFirebaseAuthLoginService.getPasswordConfig() });
|
|
1208
1008
|
}
|
|
1209
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1210
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1009
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseRegisterEmailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1010
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseRegisterEmailComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1211
1011
|
}
|
|
1212
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1012
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseRegisterEmailComponent, decorators: [{
|
|
1213
1013
|
type: Component,
|
|
1214
1014
|
args: [{
|
|
1215
1015
|
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
@@ -1219,158 +1019,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1219
1019
|
}]
|
|
1220
1020
|
}] });
|
|
1221
1021
|
|
|
1222
|
-
class DbxFirebaseLoginTermsComponent {
|
|
1223
|
-
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
1224
|
-
config = {
|
|
1225
|
-
componentClass: this.dbxFirebaseAuthLoginService.loginTermsComponentClass
|
|
1226
|
-
};
|
|
1227
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginTermsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1228
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseLoginTermsComponent, isStandalone: true, selector: "dbx-firebase-login-terms", host: { classAttribute: "dbx-firebase-login-terms d-block" }, ngImport: i0, template: `
|
|
1229
|
-
<dbx-injection [config]="config"></dbx-injection>
|
|
1230
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
1231
|
-
}
|
|
1232
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginTermsComponent, decorators: [{
|
|
1233
|
-
type: Component,
|
|
1234
|
-
args: [{
|
|
1235
|
-
selector: 'dbx-firebase-login-terms',
|
|
1236
|
-
template: `
|
|
1237
|
-
<dbx-injection [config]="config"></dbx-injection>
|
|
1238
|
-
`,
|
|
1239
|
-
host: {
|
|
1240
|
-
class: 'dbx-firebase-login-terms d-block'
|
|
1241
|
-
},
|
|
1242
|
-
imports: [DbxInjectionComponent],
|
|
1243
|
-
standalone: true
|
|
1244
|
-
}]
|
|
1245
|
-
}] });
|
|
1246
|
-
|
|
1247
|
-
class DbxFirebaseLoginContextBackButtonComponent {
|
|
1248
|
-
cancelLogin = output();
|
|
1249
|
-
anchor = {
|
|
1250
|
-
onClick: () => this.cancelLogin.emit()
|
|
1251
|
-
};
|
|
1252
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginContextBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1253
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseLoginContextBackButtonComponent, isStandalone: true, selector: "dbx-firebase-login-context-back-button", outputs: { cancelLogin: "cancelLogin" }, ngImport: i0, template: `
|
|
1254
|
-
<dbx-link [anchor]="anchor">Choose other login method.</dbx-link>
|
|
1255
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxRouterAnchorModule }, { kind: "component", type: i1$1.DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }] });
|
|
1256
|
-
}
|
|
1257
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginContextBackButtonComponent, decorators: [{
|
|
1258
|
-
type: Component,
|
|
1259
|
-
args: [{
|
|
1260
|
-
selector: 'dbx-firebase-login-context-back-button',
|
|
1261
|
-
standalone: true,
|
|
1262
|
-
imports: [DbxRouterAnchorModule],
|
|
1263
|
-
template: `
|
|
1264
|
-
<dbx-link [anchor]="anchor">Choose other login method.</dbx-link>
|
|
1265
|
-
`
|
|
1266
|
-
}]
|
|
1267
|
-
}] });
|
|
1268
|
-
|
|
1269
|
-
/**
|
|
1270
|
-
* All standalone components related to Firebase login.
|
|
1271
|
-
*/
|
|
1272
|
-
const DBX_FIREBASE_LOGIN_COMPONENTS = [
|
|
1273
|
-
DbxFirebaseLoginComponent,
|
|
1274
|
-
DbxFirebaseLoginContextDirective,
|
|
1275
|
-
DbxFirebaseLoginContextBackButtonComponent,
|
|
1276
|
-
DbxFirebaseRegisterComponent,
|
|
1277
|
-
DbxFirebaseLoginListComponent,
|
|
1278
|
-
DbxFirebaseLoginButtonComponent,
|
|
1279
|
-
DbxFirebaseLoginButtonContainerComponent,
|
|
1280
|
-
DbxFirebaseLoginEmailComponent,
|
|
1281
|
-
DbxFirebaseLoginEmailContentComponent,
|
|
1282
|
-
DbxFirebaseEmailFormComponent,
|
|
1283
|
-
DbxFirebaseEmailRecoveryFormComponent,
|
|
1284
|
-
DbxFirebaseRegisterEmailComponent,
|
|
1285
|
-
DbxFirebaseLoginGoogleComponent,
|
|
1286
|
-
DbxFirebaseLoginGitHubComponent,
|
|
1287
|
-
DbxFirebaseLoginTwitterComponent,
|
|
1288
|
-
DbxFirebaseLoginAppleComponent,
|
|
1289
|
-
DbxFirebaseLoginMicrosoftComponent,
|
|
1290
|
-
DbxFirebaseLoginFacebookComponent,
|
|
1291
|
-
DbxFirebaseLoginAnonymousComponent,
|
|
1292
|
-
DbxFirebaseLoginTermsComponent,
|
|
1293
|
-
DbxFirebaseLoginTermsSimpleComponent
|
|
1294
|
-
];
|
|
1295
|
-
/**
|
|
1296
|
-
* Contains components related to logging in.
|
|
1297
|
-
*
|
|
1298
|
-
* @deprecated Use provideDbxFirebaseLogin() instead.
|
|
1299
|
-
*/
|
|
1300
|
-
class DbxFirebaseLoginModule {
|
|
1301
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1302
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginModule, imports: [DbxFirebaseLoginComponent,
|
|
1303
|
-
DbxFirebaseLoginContextDirective,
|
|
1304
|
-
DbxFirebaseLoginContextBackButtonComponent,
|
|
1305
|
-
DbxFirebaseRegisterComponent,
|
|
1306
|
-
DbxFirebaseLoginListComponent,
|
|
1307
|
-
DbxFirebaseLoginButtonComponent,
|
|
1308
|
-
DbxFirebaseLoginButtonContainerComponent,
|
|
1309
|
-
DbxFirebaseLoginEmailComponent,
|
|
1310
|
-
DbxFirebaseLoginEmailContentComponent,
|
|
1311
|
-
DbxFirebaseEmailFormComponent,
|
|
1312
|
-
DbxFirebaseEmailRecoveryFormComponent,
|
|
1313
|
-
DbxFirebaseRegisterEmailComponent,
|
|
1314
|
-
DbxFirebaseLoginGoogleComponent,
|
|
1315
|
-
DbxFirebaseLoginGitHubComponent,
|
|
1316
|
-
DbxFirebaseLoginTwitterComponent,
|
|
1317
|
-
DbxFirebaseLoginAppleComponent,
|
|
1318
|
-
DbxFirebaseLoginMicrosoftComponent,
|
|
1319
|
-
DbxFirebaseLoginFacebookComponent,
|
|
1320
|
-
DbxFirebaseLoginAnonymousComponent,
|
|
1321
|
-
DbxFirebaseLoginTermsComponent,
|
|
1322
|
-
DbxFirebaseLoginTermsSimpleComponent], exports: [DbxFirebaseLoginComponent,
|
|
1323
|
-
DbxFirebaseLoginContextDirective,
|
|
1324
|
-
DbxFirebaseLoginContextBackButtonComponent,
|
|
1325
|
-
DbxFirebaseRegisterComponent,
|
|
1326
|
-
DbxFirebaseLoginListComponent,
|
|
1327
|
-
DbxFirebaseLoginButtonComponent,
|
|
1328
|
-
DbxFirebaseLoginButtonContainerComponent,
|
|
1329
|
-
DbxFirebaseLoginEmailComponent,
|
|
1330
|
-
DbxFirebaseLoginEmailContentComponent,
|
|
1331
|
-
DbxFirebaseEmailFormComponent,
|
|
1332
|
-
DbxFirebaseEmailRecoveryFormComponent,
|
|
1333
|
-
DbxFirebaseRegisterEmailComponent,
|
|
1334
|
-
DbxFirebaseLoginGoogleComponent,
|
|
1335
|
-
DbxFirebaseLoginGitHubComponent,
|
|
1336
|
-
DbxFirebaseLoginTwitterComponent,
|
|
1337
|
-
DbxFirebaseLoginAppleComponent,
|
|
1338
|
-
DbxFirebaseLoginMicrosoftComponent,
|
|
1339
|
-
DbxFirebaseLoginFacebookComponent,
|
|
1340
|
-
DbxFirebaseLoginAnonymousComponent,
|
|
1341
|
-
DbxFirebaseLoginTermsComponent,
|
|
1342
|
-
DbxFirebaseLoginTermsSimpleComponent] });
|
|
1343
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginModule, imports: [DbxFirebaseLoginComponent,
|
|
1344
|
-
DbxFirebaseLoginContextBackButtonComponent,
|
|
1345
|
-
DbxFirebaseRegisterComponent,
|
|
1346
|
-
DbxFirebaseLoginListComponent,
|
|
1347
|
-
DbxFirebaseLoginButtonComponent,
|
|
1348
|
-
DbxFirebaseLoginEmailComponent,
|
|
1349
|
-
DbxFirebaseLoginEmailContentComponent,
|
|
1350
|
-
DbxFirebaseEmailFormComponent,
|
|
1351
|
-
DbxFirebaseEmailRecoveryFormComponent,
|
|
1352
|
-
DbxFirebaseRegisterEmailComponent,
|
|
1353
|
-
DbxFirebaseLoginGoogleComponent,
|
|
1354
|
-
DbxFirebaseLoginGitHubComponent,
|
|
1355
|
-
DbxFirebaseLoginTwitterComponent,
|
|
1356
|
-
DbxFirebaseLoginAppleComponent,
|
|
1357
|
-
DbxFirebaseLoginMicrosoftComponent,
|
|
1358
|
-
DbxFirebaseLoginFacebookComponent,
|
|
1359
|
-
DbxFirebaseLoginAnonymousComponent,
|
|
1360
|
-
DbxFirebaseLoginTermsComponent,
|
|
1361
|
-
DbxFirebaseLoginTermsSimpleComponent] });
|
|
1362
|
-
}
|
|
1363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseLoginModule, decorators: [{
|
|
1364
|
-
type: NgModule,
|
|
1365
|
-
args: [{
|
|
1366
|
-
imports: DBX_FIREBASE_LOGIN_COMPONENTS,
|
|
1367
|
-
exports: DBX_FIREBASE_LOGIN_COMPONENTS
|
|
1368
|
-
}]
|
|
1369
|
-
}] });
|
|
1370
|
-
|
|
1371
|
-
const DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY = 'default';
|
|
1372
|
-
const OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY = 'oauth';
|
|
1373
|
-
|
|
1374
1022
|
/**
|
|
1375
1023
|
* Factory function for creating the default Firebase auth login providers.
|
|
1376
1024
|
*
|
|
@@ -1493,22 +1141,15 @@ function provideDbxFirebaseLogin(config) {
|
|
|
1493
1141
|
},
|
|
1494
1142
|
DbxFirebaseAuthLoginService,
|
|
1495
1143
|
// service initialization
|
|
1496
|
-
{
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
dbxFirebaseAuthLoginService.enable(enabledLoginMethods);
|
|
1506
|
-
}
|
|
1507
|
-
};
|
|
1508
|
-
},
|
|
1509
|
-
deps: [DbxFirebaseAuthLoginService],
|
|
1510
|
-
multi: true
|
|
1511
|
-
}
|
|
1144
|
+
provideAppInitializer(() => {
|
|
1145
|
+
const dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
1146
|
+
if (enabledLoginMethods === true) {
|
|
1147
|
+
dbxFirebaseAuthLoginService.setEnableAll();
|
|
1148
|
+
}
|
|
1149
|
+
else {
|
|
1150
|
+
dbxFirebaseAuthLoginService.enable(enabledLoginMethods);
|
|
1151
|
+
}
|
|
1152
|
+
})
|
|
1512
1153
|
];
|
|
1513
1154
|
// Terms component
|
|
1514
1155
|
if (loginTermsComponentClass) {
|
|
@@ -1527,6 +1168,241 @@ function provideDbxFirebaseLogin(config) {
|
|
|
1527
1168
|
return makeEnvironmentProviders(providers);
|
|
1528
1169
|
}
|
|
1529
1170
|
|
|
1171
|
+
class DbxFirebaseLoginAppleComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1172
|
+
loginProvider = 'apple';
|
|
1173
|
+
handleLogin() {
|
|
1174
|
+
return this.dbxFirebaseAuthService.logInWithApple();
|
|
1175
|
+
}
|
|
1176
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginAppleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1177
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginAppleComponent, isStandalone: true, selector: "dbx-firebase-login-apple", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1178
|
+
}
|
|
1179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginAppleComponent, decorators: [{
|
|
1180
|
+
type: Component,
|
|
1181
|
+
args: [{
|
|
1182
|
+
selector: 'dbx-firebase-login-apple',
|
|
1183
|
+
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
1184
|
+
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
1185
|
+
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
1186
|
+
standalone: true
|
|
1187
|
+
}]
|
|
1188
|
+
}] });
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* Pre-configured login component that displays all configured login types.
|
|
1192
|
+
*/
|
|
1193
|
+
class DbxFirebaseLoginListComponent {
|
|
1194
|
+
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
1195
|
+
loginMode = input('login', ...(ngDevMode ? [{ debugName: "loginMode" }] : []));
|
|
1196
|
+
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : []));
|
|
1197
|
+
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : []));
|
|
1198
|
+
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : []));
|
|
1199
|
+
providerTypesSignal = computed(() => {
|
|
1200
|
+
const providerTypes = this.providerTypes();
|
|
1201
|
+
const omitProviderTypes = this.omitProviderTypes();
|
|
1202
|
+
const baseTypes = providerTypes ? asArray(providerTypes) : this.dbxFirebaseAuthLoginService.getEnabledTypes();
|
|
1203
|
+
const types = omitProviderTypes ? excludeValuesFromArray(baseTypes, asArray(omitProviderTypes)) : baseTypes;
|
|
1204
|
+
return types;
|
|
1205
|
+
}, ...(ngDevMode ? [{ debugName: "providerTypesSignal" }] : []));
|
|
1206
|
+
providersSignal = computed(() => {
|
|
1207
|
+
const providerCategories = asArray(this.providerCategories());
|
|
1208
|
+
let providers = this.dbxFirebaseAuthLoginService.getLoginProviders(this.providerTypesSignal());
|
|
1209
|
+
if (providerCategories.length) {
|
|
1210
|
+
const categories = new Set(providerCategories);
|
|
1211
|
+
providers = providers.filter((x) => containsStringAnyCase(categories, x.category ?? ''));
|
|
1212
|
+
}
|
|
1213
|
+
return providers;
|
|
1214
|
+
}, ...(ngDevMode ? [{ debugName: "providersSignal" }] : []));
|
|
1215
|
+
providersInjectionConfigsSignal = computed(() => {
|
|
1216
|
+
let providers = this.providersSignal();
|
|
1217
|
+
let mapFn;
|
|
1218
|
+
if (this.loginMode() === 'register') {
|
|
1219
|
+
providers = providers.filter((x) => x.registrationComponentClass !== false); // providers with "registrationComponentClass" set to false are not available for registration
|
|
1220
|
+
mapFn = (x) => ({ componentClass: (x.registrationComponentClass ?? x.componentClass), loginMethodType: x.loginMethodType });
|
|
1221
|
+
}
|
|
1222
|
+
else {
|
|
1223
|
+
mapFn = (x) => ({ componentClass: x.componentClass, loginMethodType: x.loginMethodType });
|
|
1224
|
+
}
|
|
1225
|
+
const configs = providers.map(mapFn);
|
|
1226
|
+
return configs;
|
|
1227
|
+
}, ...(ngDevMode ? [{ debugName: "providersInjectionConfigsSignal" }] : []));
|
|
1228
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1229
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseLoginListComponent, isStandalone: true, selector: "dbx-firebase-login-list", inputs: { loginMode: { classPropertyName: "loginMode", publicName: "loginMode", isSignal: true, isRequired: false, transformFunction: null }, providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "dbx-firebase-login-list" }, ngImport: i0, template: `
|
|
1230
|
+
@for (config of providersInjectionConfigsSignal(); track config.loginMethodType) {
|
|
1231
|
+
<div class="dbx-firebase-login-item">
|
|
1232
|
+
<dbx-injection [config]="config"></dbx-injection>
|
|
1233
|
+
</div>
|
|
1234
|
+
}
|
|
1235
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
1236
|
+
}
|
|
1237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginListComponent, decorators: [{
|
|
1238
|
+
type: Component,
|
|
1239
|
+
args: [{
|
|
1240
|
+
selector: 'dbx-firebase-login-list',
|
|
1241
|
+
template: `
|
|
1242
|
+
@for (config of providersInjectionConfigsSignal(); track config.loginMethodType) {
|
|
1243
|
+
<div class="dbx-firebase-login-item">
|
|
1244
|
+
<dbx-injection [config]="config"></dbx-injection>
|
|
1245
|
+
</div>
|
|
1246
|
+
}
|
|
1247
|
+
`,
|
|
1248
|
+
host: {
|
|
1249
|
+
class: 'dbx-firebase-login-list'
|
|
1250
|
+
},
|
|
1251
|
+
standalone: true,
|
|
1252
|
+
imports: [DbxInjectionComponent]
|
|
1253
|
+
}]
|
|
1254
|
+
}], propDecorators: { loginMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "loginMode", required: false }] }], providerTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "providerTypes", required: false }] }], omitProviderTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "omitProviderTypes", required: false }] }], providerCategories: [{ type: i0.Input, args: [{ isSignal: true, alias: "providerCategories", required: false }] }] } });
|
|
1255
|
+
|
|
1256
|
+
/**
|
|
1257
|
+
* DbxFirebaseLoginContext implementation.
|
|
1258
|
+
*/
|
|
1259
|
+
class DbxFirebaseLoginContextDirective extends AbstractForwardDbxInjectionContextDirective {
|
|
1260
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginContextDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
1261
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginContextDirective, isStandalone: true, selector: "[dbxFirebaseLoginContext]", providers: [
|
|
1262
|
+
{
|
|
1263
|
+
provide: DbxFirebaseLoginContext,
|
|
1264
|
+
useExisting: DbxFirebaseLoginContextDirective
|
|
1265
|
+
}
|
|
1266
|
+
], usesInheritance: true, ngImport: i0 });
|
|
1267
|
+
}
|
|
1268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginContextDirective, decorators: [{
|
|
1269
|
+
type: Directive,
|
|
1270
|
+
args: [{
|
|
1271
|
+
selector: '[dbxFirebaseLoginContext]',
|
|
1272
|
+
standalone: true,
|
|
1273
|
+
providers: [
|
|
1274
|
+
{
|
|
1275
|
+
provide: DbxFirebaseLoginContext,
|
|
1276
|
+
useExisting: DbxFirebaseLoginContextDirective
|
|
1277
|
+
}
|
|
1278
|
+
]
|
|
1279
|
+
}]
|
|
1280
|
+
}] });
|
|
1281
|
+
|
|
1282
|
+
/**
|
|
1283
|
+
* Pre-configured login component that displays all configured login types.
|
|
1284
|
+
*/
|
|
1285
|
+
class DbxFirebaseLoginComponent {
|
|
1286
|
+
loginMode = input('login', ...(ngDevMode ? [{ debugName: "loginMode" }] : []));
|
|
1287
|
+
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : []));
|
|
1288
|
+
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : []));
|
|
1289
|
+
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : []));
|
|
1290
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1291
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseLoginComponent, isStandalone: true, selector: "dbx-firebase-login", inputs: { loginMode: { classPropertyName: "loginMode", publicName: "loginMode", isSignal: true, isRequired: false, transformFunction: null }, providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "{ \"dbx-firebase-register\": loginMode() === \"register\" }" }, classAttribute: "d-block dbx-firebase-login" }, ngImport: i0, template: `
|
|
1292
|
+
<ng-container *dbxInjectionContext dbxFirebaseLoginContext>
|
|
1293
|
+
<dbx-firebase-login-list [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()" [loginMode]="loginMode()"></dbx-firebase-login-list>
|
|
1294
|
+
</ng-container>
|
|
1295
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: DbxInjectionContextDirective, selector: "[dbxInjectionContext]", inputs: ["config"] }, { kind: "directive", type: DbxFirebaseLoginContextDirective, selector: "[dbxFirebaseLoginContext]" }, { kind: "component", type: DbxFirebaseLoginListComponent, selector: "dbx-firebase-login-list", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1296
|
+
}
|
|
1297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginComponent, decorators: [{
|
|
1298
|
+
type: Component,
|
|
1299
|
+
args: [{
|
|
1300
|
+
selector: 'dbx-firebase-login',
|
|
1301
|
+
standalone: true,
|
|
1302
|
+
imports: [DbxInjectionContextDirective, DbxFirebaseLoginContextDirective, DbxFirebaseLoginListComponent],
|
|
1303
|
+
template: `
|
|
1304
|
+
<ng-container *dbxInjectionContext dbxFirebaseLoginContext>
|
|
1305
|
+
<dbx-firebase-login-list [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()" [loginMode]="loginMode()"></dbx-firebase-login-list>
|
|
1306
|
+
</ng-container>
|
|
1307
|
+
`,
|
|
1308
|
+
host: {
|
|
1309
|
+
class: 'd-block dbx-firebase-login',
|
|
1310
|
+
'[class]': '{ "dbx-firebase-register": loginMode() === "register" }'
|
|
1311
|
+
},
|
|
1312
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1313
|
+
}]
|
|
1314
|
+
}], propDecorators: { loginMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "loginMode", required: false }] }], providerTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "providerTypes", required: false }] }], omitProviderTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "omitProviderTypes", required: false }] }], providerCategories: [{ type: i0.Input, args: [{ isSignal: true, alias: "providerCategories", required: false }] }] } });
|
|
1315
|
+
|
|
1316
|
+
class DbxFirebaseLoginContextBackButtonComponent {
|
|
1317
|
+
cancelLogin = output();
|
|
1318
|
+
anchor = {
|
|
1319
|
+
onClick: () => this.cancelLogin.emit()
|
|
1320
|
+
};
|
|
1321
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginContextBackButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1322
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginContextBackButtonComponent, isStandalone: true, selector: "dbx-firebase-login-context-back-button", outputs: { cancelLogin: "cancelLogin" }, ngImport: i0, template: `
|
|
1323
|
+
<dbx-link [anchor]="anchor">Choose other login method.</dbx-link>
|
|
1324
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxRouterAnchorModule }, { kind: "component", type: i1$1.DbxLinkComponent, selector: "dbx-link", inputs: ["ref", "href", "anchor"] }] });
|
|
1325
|
+
}
|
|
1326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginContextBackButtonComponent, decorators: [{
|
|
1327
|
+
type: Component,
|
|
1328
|
+
args: [{
|
|
1329
|
+
selector: 'dbx-firebase-login-context-back-button',
|
|
1330
|
+
standalone: true,
|
|
1331
|
+
imports: [DbxRouterAnchorModule],
|
|
1332
|
+
template: `
|
|
1333
|
+
<dbx-link [anchor]="anchor">Choose other login method.</dbx-link>
|
|
1334
|
+
`
|
|
1335
|
+
}]
|
|
1336
|
+
}], propDecorators: { cancelLogin: [{ type: i0.Output, args: ["cancelLogin"] }] } });
|
|
1337
|
+
|
|
1338
|
+
class DbxFirebaseLoginMicrosoftComponent extends AbstractConfiguredDbxFirebaseLoginButtonDirective {
|
|
1339
|
+
loginProvider = 'microsoft';
|
|
1340
|
+
handleLogin() {
|
|
1341
|
+
return this.dbxFirebaseAuthService.logInWithMicrosoft();
|
|
1342
|
+
}
|
|
1343
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginMicrosoftComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1344
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginMicrosoftComponent, isStandalone: true, selector: "dbx-firebase-login-microsoft", usesInheritance: true, ngImport: i0, template: "\n <dbx-firebase-login-button-container>\n <dbx-firebase-login-button [config]=\"configSignal()\"></dbx-firebase-login-button>\n </dbx-firebase-login-button-container>\n", isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginButtonComponent, selector: "dbx-firebase-login-button", inputs: ["config"], outputs: ["configChange"] }, { kind: "component", type: DbxFirebaseLoginButtonContainerComponent, selector: "dbx-firebase-login-button-container" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1345
|
+
}
|
|
1346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginMicrosoftComponent, decorators: [{
|
|
1347
|
+
type: Component,
|
|
1348
|
+
args: [{
|
|
1349
|
+
selector: 'dbx-firebase-login-microsoft',
|
|
1350
|
+
imports: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.imports,
|
|
1351
|
+
template: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.template,
|
|
1352
|
+
changeDetection: DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION.changeDetection,
|
|
1353
|
+
standalone: true
|
|
1354
|
+
}]
|
|
1355
|
+
}] });
|
|
1356
|
+
|
|
1357
|
+
class DbxFirebaseLoginTermsComponent {
|
|
1358
|
+
dbxFirebaseAuthLoginService = inject(DbxFirebaseAuthLoginService);
|
|
1359
|
+
config = {
|
|
1360
|
+
componentClass: this.dbxFirebaseAuthLoginService.loginTermsComponentClass
|
|
1361
|
+
};
|
|
1362
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginTermsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1363
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseLoginTermsComponent, isStandalone: true, selector: "dbx-firebase-login-terms", host: { classAttribute: "dbx-firebase-login-terms d-block" }, ngImport: i0, template: `
|
|
1364
|
+
<dbx-injection [config]="config"></dbx-injection>
|
|
1365
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }] });
|
|
1366
|
+
}
|
|
1367
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseLoginTermsComponent, decorators: [{
|
|
1368
|
+
type: Component,
|
|
1369
|
+
args: [{
|
|
1370
|
+
selector: 'dbx-firebase-login-terms',
|
|
1371
|
+
template: `
|
|
1372
|
+
<dbx-injection [config]="config"></dbx-injection>
|
|
1373
|
+
`,
|
|
1374
|
+
host: {
|
|
1375
|
+
class: 'dbx-firebase-login-terms d-block'
|
|
1376
|
+
},
|
|
1377
|
+
imports: [DbxInjectionComponent],
|
|
1378
|
+
standalone: true
|
|
1379
|
+
}]
|
|
1380
|
+
}] });
|
|
1381
|
+
|
|
1382
|
+
/**
|
|
1383
|
+
* Pre-configured register component that displays all configured login types and their registration components.
|
|
1384
|
+
*/
|
|
1385
|
+
class DbxFirebaseRegisterComponent {
|
|
1386
|
+
providerTypes = input(...(ngDevMode ? [undefined, { debugName: "providerTypes" }] : []));
|
|
1387
|
+
omitProviderTypes = input(...(ngDevMode ? [undefined, { debugName: "omitProviderTypes" }] : []));
|
|
1388
|
+
providerCategories = input(...(ngDevMode ? [undefined, { debugName: "providerCategories" }] : []));
|
|
1389
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseRegisterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1390
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseRegisterComponent, isStandalone: true, selector: "dbx-firebase-register", inputs: { providerTypes: { classPropertyName: "providerTypes", publicName: "providerTypes", isSignal: true, isRequired: false, transformFunction: null }, omitProviderTypes: { classPropertyName: "omitProviderTypes", publicName: "omitProviderTypes", isSignal: true, isRequired: false, transformFunction: null }, providerCategories: { classPropertyName: "providerCategories", publicName: "providerCategories", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
1391
|
+
<dbx-firebase-login loginMode="register" [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()"></dbx-firebase-login>
|
|
1392
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseLoginComponent, selector: "dbx-firebase-login", inputs: ["loginMode", "providerTypes", "omitProviderTypes", "providerCategories"] }] });
|
|
1393
|
+
}
|
|
1394
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseRegisterComponent, decorators: [{
|
|
1395
|
+
type: Component,
|
|
1396
|
+
args: [{
|
|
1397
|
+
selector: 'dbx-firebase-register',
|
|
1398
|
+
template: `
|
|
1399
|
+
<dbx-firebase-login loginMode="register" [providerTypes]="providerTypes()" [omitProviderTypes]="omitProviderTypes()" [providerCategories]="providerCategories()"></dbx-firebase-login>
|
|
1400
|
+
`,
|
|
1401
|
+
imports: [DbxFirebaseLoginComponent],
|
|
1402
|
+
standalone: true
|
|
1403
|
+
}]
|
|
1404
|
+
}], propDecorators: { providerTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "providerTypes", required: false }] }], omitProviderTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "omitProviderTypes", required: false }] }], providerCategories: [{ type: i0.Input, args: [{ isSignal: true, alias: "providerCategories", required: false }] }] } });
|
|
1405
|
+
|
|
1530
1406
|
function authRolesObsWithClaimsService(config) {
|
|
1531
1407
|
const { addAuthUserStateToRoles: addAuthUserState, claimsService } = config;
|
|
1532
1408
|
return (dbxFirebaseAuthService) => {
|
|
@@ -1575,25 +1451,6 @@ function provideDbxFirebaseAuth(config) {
|
|
|
1575
1451
|
return makeEnvironmentProviders(providers);
|
|
1576
1452
|
}
|
|
1577
1453
|
|
|
1578
|
-
/**
|
|
1579
|
-
* @deprecated use provideDbxFirebaseAuth() instead
|
|
1580
|
-
*/
|
|
1581
|
-
class DbxFirebaseAuthModule {
|
|
1582
|
-
static forRoot(config) {
|
|
1583
|
-
return {
|
|
1584
|
-
ngModule: DbxFirebaseAuthModule,
|
|
1585
|
-
providers: [provideDbxFirebaseAuth(config)]
|
|
1586
|
-
};
|
|
1587
|
-
}
|
|
1588
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseAuthModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1589
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseAuthModule });
|
|
1590
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseAuthModule });
|
|
1591
|
-
}
|
|
1592
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseAuthModule, decorators: [{
|
|
1593
|
-
type: NgModule,
|
|
1594
|
-
args: [{}]
|
|
1595
|
-
}] });
|
|
1596
|
-
|
|
1597
1454
|
/**
|
|
1598
1455
|
* Default providers to inject.
|
|
1599
1456
|
*/
|
|
@@ -1634,10 +1491,10 @@ class DbxFirebaseDevelopmentWidgetService {
|
|
|
1634
1491
|
getEntries() {
|
|
1635
1492
|
return iterableToArray(this._entries.values());
|
|
1636
1493
|
}
|
|
1637
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1638
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1494
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentWidgetService, deps: [{ token: DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1495
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentWidgetService });
|
|
1639
1496
|
}
|
|
1640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1497
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentWidgetService, decorators: [{
|
|
1641
1498
|
type: Injectable
|
|
1642
1499
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
1643
1500
|
type: Optional
|
|
@@ -1710,10 +1567,10 @@ class DbxFirebaseDevelopmentSchedulerService {
|
|
|
1710
1567
|
setTimer(timerInterval) {
|
|
1711
1568
|
this._timerInterval.next(timerInterval);
|
|
1712
1569
|
}
|
|
1713
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1714
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1571
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService });
|
|
1715
1572
|
}
|
|
1716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerService, decorators: [{
|
|
1717
1574
|
type: Injectable
|
|
1718
1575
|
}] });
|
|
1719
1576
|
|
|
@@ -1736,10 +1593,10 @@ class DbxFirebaseDevelopmentPopupContentFormComponent extends AbstractConfigAsyn
|
|
|
1736
1593
|
})
|
|
1737
1594
|
];
|
|
1738
1595
|
}));
|
|
1739
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1740
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1596
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1597
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentPopupContentFormComponent, isStandalone: true, selector: "dbx-firebase-development-popup-content-form", providers: dbxFormlyFormComponentProviders(), usesInheritance: true, ngImport: i0, template: "<dbx-formly></dbx-formly>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxFormlyFormComponentImportsModule }, { kind: "component", type: i1$2.DbxFormlyComponent, selector: "dbx-formly", exportAs: ["formly"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1741
1598
|
}
|
|
1742
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentFormComponent, decorators: [{
|
|
1743
1600
|
type: Component,
|
|
1744
1601
|
args: [{
|
|
1745
1602
|
selector: 'dbx-firebase-development-popup-content-form',
|
|
@@ -1758,10 +1615,10 @@ class DbxFirebaseDevelopmentSchedulerListComponent extends AbstractDbxSelectionL
|
|
|
1758
1615
|
defaultSelectionMode: 'view'
|
|
1759
1616
|
});
|
|
1760
1617
|
}
|
|
1761
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1762
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1618
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1619
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentSchedulerListComponent, isStandalone: true, selector: "dbx-firebase-development-scheduler-list", providers: provideDbxListViewWrapper(DbxFirebaseDevelopmentSchedulerListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1763
1620
|
}
|
|
1764
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1621
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListComponent, decorators: [{
|
|
1765
1622
|
type: Component,
|
|
1766
1623
|
args: [{
|
|
1767
1624
|
selector: 'dbx-firebase-development-scheduler-list',
|
|
@@ -1777,10 +1634,10 @@ class DbxFirebaseDevelopmentSchedulerListViewComponent extends AbstractDbxSelect
|
|
|
1777
1634
|
componentClass: DbxFirebaseDevelopmentSchedulerListViewItemComponent,
|
|
1778
1635
|
mapValuesToItemValues: (x) => of(x.map((y) => ({ ...y, icon: y.icon, itemValue: y })))
|
|
1779
1636
|
};
|
|
1780
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1781
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1637
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1638
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentSchedulerListViewComponent, isStandalone: true, selector: "dbx-firebase-development-scheduler-list-view", providers: provideDbxListView(DbxFirebaseDevelopmentSchedulerListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1782
1639
|
}
|
|
1783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewComponent, decorators: [{
|
|
1784
1641
|
type: Component,
|
|
1785
1642
|
args: [{
|
|
1786
1643
|
selector: 'dbx-firebase-development-scheduler-list-view',
|
|
@@ -1799,15 +1656,15 @@ class DbxFirebaseDevelopmentSchedulerListViewItemComponent extends AbstractDbxVa
|
|
|
1799
1656
|
handleRun = (value, context) => {
|
|
1800
1657
|
context.startWorkingWithObservable(from(this.dbxFirebaseDevelopmentSchedulerService.runScheduledFunction(this.name)));
|
|
1801
1658
|
};
|
|
1802
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1803
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1659
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1660
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentSchedulerListViewItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
1804
1661
|
<div dbxAction dbxActionValue useFastTriggerPreset [dbxActionHandler]="handleRun">
|
|
1805
1662
|
<dbx-button dbxActionButton [text]="'Run ' + name"></dbx-button>
|
|
1806
1663
|
<div *dbxActionHasSuccess="3000" class="dbx-success">Success</div>
|
|
1807
1664
|
</div>
|
|
1808
|
-
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]
|
|
1665
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionHasSuccessDirective, selector: "[dbxActionHasSuccess]", inputs: ["dbxActionHasSuccess"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1809
1666
|
}
|
|
1810
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerListViewItemComponent, decorators: [{
|
|
1811
1668
|
type: Component,
|
|
1812
1669
|
args: [{
|
|
1813
1670
|
template: `
|
|
@@ -1836,14 +1693,14 @@ class DbxFirebaseDevelopmentSchedulerWidgetComponent {
|
|
|
1836
1693
|
dbxFirebaseDevelopmentSchedulerService = inject(DbxFirebaseDevelopmentSchedulerService);
|
|
1837
1694
|
entries$ = this.dbxFirebaseDevelopmentSchedulerService.schedulerList$;
|
|
1838
1695
|
state$ = loadingStateFromObs(this.entries$);
|
|
1839
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1840
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1696
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerWidgetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1697
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentSchedulerWidgetComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: `
|
|
1841
1698
|
<div>
|
|
1842
1699
|
<dbx-firebase-development-scheduler-list [state]="state$"></dbx-firebase-development-scheduler-list>
|
|
1843
1700
|
</div>
|
|
1844
1701
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseDevelopmentSchedulerListComponent, selector: "dbx-firebase-development-scheduler-list" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1845
1702
|
}
|
|
1846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1703
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentSchedulerWidgetComponent, decorators: [{
|
|
1847
1704
|
type: Component,
|
|
1848
1705
|
args: [{
|
|
1849
1706
|
template: `
|
|
@@ -1890,10 +1747,10 @@ class DbxFirebaseEmulatorService {
|
|
|
1890
1747
|
}
|
|
1891
1748
|
: undefined;
|
|
1892
1749
|
}
|
|
1893
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1894
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1750
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmulatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1751
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmulatorService });
|
|
1895
1752
|
}
|
|
1896
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1753
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseEmulatorService, decorators: [{
|
|
1897
1754
|
type: Injectable
|
|
1898
1755
|
}] });
|
|
1899
1756
|
|
|
@@ -1903,11 +1760,10 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1903
1760
|
dbxFirebaseDevelopmentWidgetService = inject(DbxFirebaseDevelopmentWidgetService);
|
|
1904
1761
|
dbxFirebaseDevelopmentSchedulerService = inject(DbxFirebaseDevelopmentSchedulerService);
|
|
1905
1762
|
dbxFirebaseEmulatorService = inject(DbxFirebaseEmulatorService);
|
|
1906
|
-
_backSub = new SubscriptionObject();
|
|
1907
1763
|
showEmulatorButton = this.dbxFirebaseEmulatorService.useEmulators === true;
|
|
1908
1764
|
emulatorUIAnchor = this.dbxFirebaseEmulatorService.emulatorUIAnchor ?? {};
|
|
1909
1765
|
entries = this.dbxFirebaseDevelopmentWidgetService.getEntries();
|
|
1910
|
-
_activeEntrySelector = new BehaviorSubject(DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY);
|
|
1766
|
+
_activeEntrySelector = completeOnDestroy(new BehaviorSubject(DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY));
|
|
1911
1767
|
isLoggedIn$ = this.dbxAuthService.isLoggedIn$;
|
|
1912
1768
|
entries$ = this.isLoggedIn$.pipe(distinctUntilChanged(), map((isLoggedIn) => this.entries), shareReplay(1));
|
|
1913
1769
|
formConfig$ = this.entries$.pipe(map((entries) => ({ entries })));
|
|
@@ -1923,7 +1779,7 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1923
1779
|
schedulerIntervalSignal = toSignal(this.schedulerInterval$);
|
|
1924
1780
|
schedulerErrorSignal = toSignal(this.schedulerError$);
|
|
1925
1781
|
activeEntrySignal = toSignal(this.activeEntry$);
|
|
1926
|
-
rightTitleSignal = computed(() => this.activeEntrySignal()?.label);
|
|
1782
|
+
rightTitleSignal = computed(() => this.activeEntrySignal()?.label, ...(ngDevMode ? [{ debugName: "rightTitleSignal" }] : []));
|
|
1927
1783
|
widgetConfigSignal = computed(() => {
|
|
1928
1784
|
const widget = this.activeEntrySignal()?.widget;
|
|
1929
1785
|
let widgetConfig = undefined;
|
|
@@ -1931,16 +1787,12 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1931
1787
|
widgetConfig = { type: widget.type, data: undefined };
|
|
1932
1788
|
}
|
|
1933
1789
|
return widgetConfig;
|
|
1934
|
-
});
|
|
1935
|
-
|
|
1790
|
+
}, ...(ngDevMode ? [{ debugName: "widgetConfigSignal" }] : []));
|
|
1791
|
+
constructor() {
|
|
1936
1792
|
this.twoColumnsContextStore.setShowRight(this.showRight$);
|
|
1937
|
-
this.
|
|
1793
|
+
cleanSubscription(this.twoColumnsContextStore.back$.subscribe(() => {
|
|
1938
1794
|
this.clearSelection();
|
|
1939
|
-
});
|
|
1940
|
-
}
|
|
1941
|
-
ngOnDestroy() {
|
|
1942
|
-
this._backSub.destroy();
|
|
1943
|
-
this._activeEntrySelector.complete();
|
|
1795
|
+
}));
|
|
1944
1796
|
}
|
|
1945
1797
|
handleFormUpdate = (value, context) => {
|
|
1946
1798
|
this._activeEntrySelector.next(value.specifier);
|
|
@@ -1952,13 +1804,13 @@ class DbxFirebaseDevelopmentPopupContentComponent {
|
|
|
1952
1804
|
clearSelection() {
|
|
1953
1805
|
this._activeEntrySelector.next(undefined);
|
|
1954
1806
|
}
|
|
1955
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1956
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1807
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1808
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentPopupContentComponent, isStandalone: true, selector: "dbx-firebase-development-popup-content", providers: [TwoColumnsContextStore], ngImport: i0, template: "<dbx-two-column class=\"dbx-firebase-development-popup-content\" [dbxTwoColumnFullLeft]=\"true\">\n <dbx-two-block left>\n <div>\n <h4>Info</h4>\n <p>Scheduler (Running): {{ schedulerRunningSignal() }} : {{ schedulerIntervalSignal() }}s : {{ schedulerErrorSignal() }}</p>\n <div>\n @if (showEmulatorButton) {\n <dbx-anchor [anchor]=\"emulatorUIAnchor\">\n <button mat-flat-button color=\"accent\">Emulator Enabled</button>\n </dbx-anchor>\n }\n </div>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger useInstantTriggerPreset [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form [config]=\"formConfig$\" dbxActionForm [dbxActionFormIsModified]=\"isFormModified\" [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"rightTitleSignal()\">\n <dbx-widget-view [config]=\"widgetConfigSignal()\"></dbx-widget-view>\n </dbx-two-column-right>\n</dbx-two-column>\n", styles: [".dbx-firebase-development-popup-content{height:400px;overflow:hidden}\n"], dependencies: [{ kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }, { kind: "directive", type: DbxTwoColumnFullLeftDirective, selector: "[dbxTwoColumnFullLeft]", inputs: ["dbxTwoColumnFullLeft"] }, { kind: "component", type: DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }, { kind: "component", type: DbxTwoColumnComponent, selector: "dbx-two-column", inputs: ["reverseSizing", "inSectionPage", "hasRightContent"], exportAs: ["columns"] }, { kind: "component", type: DbxTwoBlockComponent, selector: "dbx-two-block", inputs: ["fixedTop"] }, { kind: "component", type: DbxTwoColumnRightComponent, selector: "dbx-two-column-right", inputs: ["full", "header", "block", "showBack", "minRightWidth"] }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentFormComponent, selector: "dbx-firebase-development-popup-content-form" }, { kind: "directive", type: DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: DbxActionEnforceModifiedDirective, selector: "[dbxActionEnforceModified]", inputs: ["dbxActionEnforceModified"] }, { kind: "directive", type: DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: DbxActionFormDirective, selector: "[dbxActionForm]", inputs: ["dbxActionFormDisabledOnWorking", "dbxActionFormIsValid", "dbxActionFormIsEqual", "dbxActionFormIsModified", "dbxActionFormMapValue"] }, { kind: "directive", type: DbxFormSourceDirective, selector: "[dbxFormSource]", inputs: ["dbxFormSourceMode", "dbxFormSource"] }, { kind: "directive", type: DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: ["triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "maxErrorsForThrottle", "triggerLimit", "dbxActionAutoTrigger", "useFastTriggerPreset", "useInstantTriggerPreset"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i1$3.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }] });
|
|
1957
1809
|
}
|
|
1958
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentPopupContentComponent, decorators: [{
|
|
1959
1811
|
type: Component,
|
|
1960
1812
|
args: [{ selector: 'dbx-firebase-development-popup-content', imports: [DbxAnchorComponent, DbxTwoColumnFullLeftDirective, DbxWidgetViewComponent, DbxTwoColumnComponent, DbxTwoBlockComponent, DbxTwoColumnRightComponent, DbxWidgetViewComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxActionDirective, DbxActionEnforceModifiedDirective, DbxActionHandlerDirective, DbxActionFormDirective, DbxFormSourceDirective, DbxActionAutoTriggerDirective, MatButtonModule], providers: [TwoColumnsContextStore], standalone: true, template: "<dbx-two-column class=\"dbx-firebase-development-popup-content\" [dbxTwoColumnFullLeft]=\"true\">\n <dbx-two-block left>\n <div>\n <h4>Info</h4>\n <p>Scheduler (Running): {{ schedulerRunningSignal() }} : {{ schedulerIntervalSignal() }}s : {{ schedulerErrorSignal() }}</p>\n <div>\n @if (showEmulatorButton) {\n <dbx-anchor [anchor]=\"emulatorUIAnchor\">\n <button mat-flat-button color=\"accent\">Emulator Enabled</button>\n </dbx-anchor>\n }\n </div>\n </div>\n <div>\n <h4>Tools</h4>\n <div dbxAction dbxActionEnforceModified dbxActionAutoTrigger useInstantTriggerPreset [dbxActionHandler]=\"handleFormUpdate\">\n <dbx-firebase-development-popup-content-form [config]=\"formConfig$\" dbxActionForm [dbxActionFormIsModified]=\"isFormModified\" [dbxFormSource]=\"formData$\" dbxFormSourceMode=\"always\"></dbx-firebase-development-popup-content-form>\n </div>\n </div>\n </dbx-two-block>\n <dbx-two-column-right right [header]=\"rightTitleSignal()\">\n <dbx-widget-view [config]=\"widgetConfigSignal()\"></dbx-widget-view>\n </dbx-two-column-right>\n</dbx-two-column>\n", styles: [".dbx-firebase-development-popup-content{height:400px;overflow:hidden}\n"] }]
|
|
1961
|
-
}] });
|
|
1813
|
+
}], ctorParameters: () => [] });
|
|
1962
1814
|
|
|
1963
1815
|
const DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY = 'devpopup';
|
|
1964
1816
|
class DbxFirebaseDevelopmentPopupComponent extends AbstractPopupDirective {
|
|
@@ -1977,15 +1829,15 @@ class DbxFirebaseDevelopmentPopupComponent extends AbstractPopupDirective {
|
|
|
1977
1829
|
reopen = () => {
|
|
1978
1830
|
DbxFirebaseDevelopmentPopupComponent.openPopup(this.popupService, this.popup.key);
|
|
1979
1831
|
};
|
|
1980
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1981
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1832
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1833
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: DbxFirebaseDevelopmentPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "content", first: true, predicate: DbxFirebaseDevelopmentPopupContentComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
1982
1834
|
<dbx-popup-content>
|
|
1983
1835
|
<dbx-popup-controls [header]="header" controls></dbx-popup-controls>
|
|
1984
1836
|
<dbx-firebase-development-popup-content (shouldClose)="closePopup()"></dbx-firebase-development-popup-content>
|
|
1985
1837
|
</dbx-popup-content>
|
|
1986
1838
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxPopupContentComponent, selector: "dbx-popup-content" }, { kind: "component", type: DbxPopupControlsComponent, selector: "dbx-popup-controls", inputs: ["header"] }, { kind: "component", type: DbxFirebaseDevelopmentPopupContentComponent, selector: "dbx-firebase-development-popup-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1987
1839
|
}
|
|
1988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1840
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentPopupComponent, decorators: [{
|
|
1989
1841
|
type: Component,
|
|
1990
1842
|
args: [{
|
|
1991
1843
|
template: `
|
|
@@ -1998,7 +1850,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
1998
1850
|
standalone: true,
|
|
1999
1851
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
2000
1852
|
}]
|
|
2001
|
-
}] });
|
|
1853
|
+
}], propDecorators: { content: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DbxFirebaseDevelopmentPopupContentComponent), { isSignal: true }] }] } });
|
|
2002
1854
|
|
|
2003
1855
|
/**
|
|
2004
1856
|
* Corresponds to the enabled value on the DbxFirebaseDevelopmentService.
|
|
@@ -2011,10 +1863,10 @@ const DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN = new InjectionToken('DefaultDb
|
|
|
2011
1863
|
*/
|
|
2012
1864
|
class DbxFirebaseDevelopmentService {
|
|
2013
1865
|
enabled = inject(DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, { optional: true }) ?? false;
|
|
2014
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2015
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1866
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1867
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentService });
|
|
2016
1868
|
}
|
|
2017
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1869
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentService, decorators: [{
|
|
2018
1870
|
type: Injectable
|
|
2019
1871
|
}] });
|
|
2020
1872
|
|
|
@@ -2029,6 +1881,9 @@ class DbxFirebaseDevelopmentDirective {
|
|
|
2029
1881
|
get enabled() {
|
|
2030
1882
|
return this.dbxFirebaseDevelopmentService.enabled;
|
|
2031
1883
|
}
|
|
1884
|
+
constructor() {
|
|
1885
|
+
clean(() => this.closePopup());
|
|
1886
|
+
}
|
|
2032
1887
|
handleKeyboardEvent(event) {
|
|
2033
1888
|
if (this.enabled && event.shiftKey && event.altKey && event.code === 'KeyD') {
|
|
2034
1889
|
this.togglePopup();
|
|
@@ -2073,24 +1928,21 @@ class DbxFirebaseDevelopmentDirective {
|
|
|
2073
1928
|
});
|
|
2074
1929
|
}
|
|
2075
1930
|
}
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
}
|
|
2079
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDevelopmentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2080
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseDevelopmentDirective, isStandalone: true, selector: "[dbxFirebaseDevelopment]", host: { listeners: { "window:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0 });
|
|
1931
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1932
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDevelopmentDirective, isStandalone: true, selector: "[dbxFirebaseDevelopment]", host: { listeners: { "window:keydown": "handleKeyboardEvent($event)" } }, ngImport: i0 });
|
|
2081
1933
|
}
|
|
2082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentDirective, decorators: [{
|
|
2083
1935
|
type: Directive,
|
|
2084
1936
|
args: [{
|
|
2085
1937
|
selector: '[dbxFirebaseDevelopment]',
|
|
2086
1938
|
standalone: true
|
|
2087
1939
|
}]
|
|
2088
|
-
}], propDecorators: { handleKeyboardEvent: [{
|
|
1940
|
+
}], ctorParameters: () => [], propDecorators: { handleKeyboardEvent: [{
|
|
2089
1941
|
type: HostListener,
|
|
2090
1942
|
args: ['window:keydown', ['$event']]
|
|
2091
1943
|
}] } });
|
|
2092
1944
|
|
|
2093
|
-
const importsAndExports$
|
|
1945
|
+
const importsAndExports$2 = [
|
|
2094
1946
|
//
|
|
2095
1947
|
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2096
1948
|
DbxFirebaseDevelopmentDirective,
|
|
@@ -2105,8 +1957,8 @@ const importsAndExports$6 = [
|
|
|
2105
1957
|
* Contains components related to logging in.
|
|
2106
1958
|
*/
|
|
2107
1959
|
class DbxFirebaseDevelopmentModule {
|
|
2108
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2109
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1960
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1961
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentModule, imports: [
|
|
2110
1962
|
//
|
|
2111
1963
|
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2112
1964
|
DbxFirebaseDevelopmentDirective,
|
|
@@ -2125,7 +1977,7 @@ class DbxFirebaseDevelopmentModule {
|
|
|
2125
1977
|
DbxFirebaseDevelopmentSchedulerListComponent,
|
|
2126
1978
|
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2127
1979
|
DbxFirebaseDevelopmentSchedulerListViewItemComponent] });
|
|
2128
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1980
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentModule, imports: [
|
|
2129
1981
|
//
|
|
2130
1982
|
DbxFirebaseDevelopmentPopupContentFormComponent,
|
|
2131
1983
|
DbxFirebaseDevelopmentPopupComponent,
|
|
@@ -2135,11 +1987,11 @@ class DbxFirebaseDevelopmentModule {
|
|
|
2135
1987
|
DbxFirebaseDevelopmentSchedulerListViewComponent,
|
|
2136
1988
|
DbxFirebaseDevelopmentSchedulerListViewItemComponent] });
|
|
2137
1989
|
}
|
|
2138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1990
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDevelopmentModule, decorators: [{
|
|
2139
1991
|
type: NgModule,
|
|
2140
1992
|
args: [{
|
|
2141
|
-
imports: importsAndExports$
|
|
2142
|
-
exports: importsAndExports$
|
|
1993
|
+
imports: importsAndExports$2,
|
|
1994
|
+
exports: importsAndExports$2
|
|
2143
1995
|
}]
|
|
2144
1996
|
}] });
|
|
2145
1997
|
|
|
@@ -2170,17 +2022,11 @@ function provideDbxFirebaseDevelopment(config) {
|
|
|
2170
2022
|
DbxFirebaseDevelopmentSchedulerService,
|
|
2171
2023
|
DbxFirebaseDevelopmentWidgetService,
|
|
2172
2024
|
// service initialization
|
|
2173
|
-
{
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
scheduler.init();
|
|
2179
|
-
};
|
|
2180
|
-
},
|
|
2181
|
-
deps: [DbxFirebaseDevelopmentSchedulerService],
|
|
2182
|
-
multi: true
|
|
2183
|
-
}
|
|
2025
|
+
provideAppInitializer(() => {
|
|
2026
|
+
const scheduler = inject(DbxFirebaseDevelopmentSchedulerService);
|
|
2027
|
+
// initialize the scheduler
|
|
2028
|
+
scheduler.init();
|
|
2029
|
+
})
|
|
2184
2030
|
];
|
|
2185
2031
|
return makeEnvironmentProviders(providers);
|
|
2186
2032
|
}
|
|
@@ -2316,31 +2162,8 @@ function provideDbxFirebaseApp(config) {
|
|
|
2316
2162
|
providers.push(functionsProvider);
|
|
2317
2163
|
}
|
|
2318
2164
|
return makeEnvironmentProviders(providers);
|
|
2319
|
-
}
|
|
2320
|
-
// TODO: Providers now need to be initialized/registered in the bootstrap section as additional providers/config and not imported as modules this way
|
|
2321
|
-
|
|
2322
|
-
/**
|
|
2323
|
-
* Default provider module.
|
|
2324
|
-
*
|
|
2325
|
-
* @deprecated use provideDbxFirebaseApp() instead
|
|
2326
|
-
*/
|
|
2327
|
-
class DbxFirebaseDefaultFirebaseProvidersModule {
|
|
2328
|
-
static forRoot(dbxFirebaseOptions) {
|
|
2329
|
-
return {
|
|
2330
|
-
ngModule: DbxFirebaseDefaultFirebaseProvidersModule,
|
|
2331
|
-
providers: [provideDbxFirebaseApp({ dbxFirebaseAppOptions: dbxFirebaseOptions })]
|
|
2332
|
-
};
|
|
2333
|
-
}
|
|
2334
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2335
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule });
|
|
2336
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule });
|
|
2337
|
-
}
|
|
2338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseDefaultFirebaseProvidersModule, decorators: [{
|
|
2339
|
-
type: NgModule,
|
|
2340
|
-
args: [{
|
|
2341
|
-
providers: []
|
|
2342
|
-
}]
|
|
2343
|
-
}] });
|
|
2165
|
+
}
|
|
2166
|
+
// TODO: Providers now need to be initialized/registered in the bootstrap section as additional providers/config and not imported as modules this way
|
|
2344
2167
|
|
|
2345
2168
|
/**
|
|
2346
2169
|
* Creates EnvironmentProviders for the DbxFirebaseEmulatorService.
|
|
@@ -2372,26 +2195,6 @@ function provideDbxFirebaseEmulator(config) {
|
|
|
2372
2195
|
return makeEnvironmentProviders(providers);
|
|
2373
2196
|
}
|
|
2374
2197
|
|
|
2375
|
-
/**
|
|
2376
|
-
* Used to configure the DbxFirebaseEmulatorsConfig provider.
|
|
2377
|
-
*
|
|
2378
|
-
* @deprecated use provideDbxFirebaseEmulator instead.
|
|
2379
|
-
*/
|
|
2380
|
-
class DbxFirebaseEmulatorModule {
|
|
2381
|
-
static forRoot(config) {
|
|
2382
|
-
return {
|
|
2383
|
-
ngModule: DbxFirebaseEmulatorModule,
|
|
2384
|
-
providers: [provideDbxFirebaseEmulator(config)]
|
|
2385
|
-
};
|
|
2386
|
-
}
|
|
2387
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseEmulatorModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2388
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseEmulatorModule });
|
|
2389
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseEmulatorModule });
|
|
2390
|
-
}
|
|
2391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseEmulatorModule, decorators: [{
|
|
2392
|
-
type: NgModule
|
|
2393
|
-
}] });
|
|
2394
|
-
|
|
2395
2198
|
/**
|
|
2396
2199
|
* Token to access the FirestoreContext value.
|
|
2397
2200
|
*/
|
|
@@ -2479,35 +2282,15 @@ function provideDbxFirestoreCollection(config) {
|
|
|
2479
2282
|
return makeEnvironmentProviders(providers);
|
|
2480
2283
|
}
|
|
2481
2284
|
|
|
2482
|
-
/**
|
|
2483
|
-
* Used to initialize the FirestoreCollection for a DbxFirebase app.
|
|
2484
|
-
*
|
|
2485
|
-
* @deprecated use provideDbxFirestoreCollection() instead.
|
|
2486
|
-
*/
|
|
2487
|
-
class DbxFirebaseFirestoreCollectionModule {
|
|
2488
|
-
static forRoot(config) {
|
|
2489
|
-
return {
|
|
2490
|
-
ngModule: DbxFirebaseFirestoreCollectionModule,
|
|
2491
|
-
providers: [provideDbxFirestoreCollection(config)]
|
|
2492
|
-
};
|
|
2493
|
-
}
|
|
2494
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFirestoreCollectionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2495
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFirestoreCollectionModule });
|
|
2496
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFirestoreCollectionModule });
|
|
2497
|
-
}
|
|
2498
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFirestoreCollectionModule, decorators: [{
|
|
2499
|
-
type: NgModule
|
|
2500
|
-
}] });
|
|
2501
|
-
|
|
2502
2285
|
/**
|
|
2503
2286
|
* Service that provides access to the app's FirestoreContext.
|
|
2504
2287
|
*/
|
|
2505
2288
|
class DbxFirestoreContextService {
|
|
2506
2289
|
firestoreContext = inject(DBX_FIRESTORE_CONTEXT_TOKEN);
|
|
2507
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2508
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2290
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirestoreContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2291
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirestoreContextService, providedIn: 'root' });
|
|
2509
2292
|
}
|
|
2510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirestoreContextService, decorators: [{
|
|
2511
2294
|
type: Injectable,
|
|
2512
2295
|
args: [{
|
|
2513
2296
|
providedIn: 'root'
|
|
@@ -2564,26 +2347,6 @@ function provideDbxFirebaseFunctions(config) {
|
|
|
2564
2347
|
return makeEnvironmentProviders(providers);
|
|
2565
2348
|
}
|
|
2566
2349
|
|
|
2567
|
-
/**
|
|
2568
|
-
* Used to initialize the LazyFirebaseFunctions type for a DbxFirebase app.
|
|
2569
|
-
*
|
|
2570
|
-
* @deprecated use provideDbxFirebaseFunctions() instead.
|
|
2571
|
-
*/
|
|
2572
|
-
class DbxFirebaseFunctionsModule {
|
|
2573
|
-
static forRoot(config) {
|
|
2574
|
-
return {
|
|
2575
|
-
ngModule: DbxFirebaseFunctionsModule,
|
|
2576
|
-
providers: [provideDbxFirebaseFunctions(config)]
|
|
2577
|
-
};
|
|
2578
|
-
}
|
|
2579
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFunctionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2580
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFunctionsModule });
|
|
2581
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFunctionsModule });
|
|
2582
|
-
}
|
|
2583
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseFunctionsModule, decorators: [{
|
|
2584
|
-
type: NgModule
|
|
2585
|
-
}] });
|
|
2586
|
-
|
|
2587
2350
|
function dbxFirebaseCollectionChangeWatcher(store, initialMode) {
|
|
2588
2351
|
const _mode = new BehaviorSubject(initialMode ?? 'off');
|
|
2589
2352
|
const _sub = new SubscriptionObject();
|
|
@@ -3177,10 +2940,10 @@ class DbxFirebaseModelTypesService {
|
|
|
3177
2940
|
instancePairsForKeys(keys) {
|
|
3178
2941
|
return dbxFirebaseModelTypesServiceInstancePairForKeysFactory(this)(keys);
|
|
3179
2942
|
}
|
|
3180
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3181
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypesService, deps: [{ token: DbxFirebaseModelTypesServiceConfig }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2944
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypesService });
|
|
3182
2945
|
}
|
|
3183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2946
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypesService, decorators: [{
|
|
3184
2947
|
type: Injectable
|
|
3185
2948
|
}], ctorParameters: () => [{ type: DbxFirebaseModelTypesServiceConfig, decorators: [{
|
|
3186
2949
|
type: Inject,
|
|
@@ -3273,10 +3036,10 @@ class DbxFirebaseModelTrackerService {
|
|
|
3273
3036
|
const historyKeys$ = this.loadHistoryKeys();
|
|
3274
3037
|
return historyKeys$.pipe(switchMap((x) => this.dbxFirebaseModelTypesService.instancePairsForKeys(x)));
|
|
3275
3038
|
}
|
|
3276
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3277
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3039
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTrackerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3040
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTrackerService, providedIn: 'root' });
|
|
3278
3041
|
}
|
|
3279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3042
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTrackerService, decorators: [{
|
|
3280
3043
|
type: Injectable,
|
|
3281
3044
|
args: [{
|
|
3282
3045
|
providedIn: 'root'
|
|
@@ -3293,10 +3056,10 @@ class DbxFirebaseModelTypeInstanceListComponent extends AbstractDbxSelectionList
|
|
|
3293
3056
|
defaultSelectionMode: 'view'
|
|
3294
3057
|
});
|
|
3295
3058
|
}
|
|
3296
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3297
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3059
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypeInstanceListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3060
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseModelTypeInstanceListComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list", providers: provideDbxListViewWrapper(DbxFirebaseModelTypeInstanceListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3298
3061
|
}
|
|
3299
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3062
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypeInstanceListComponent, decorators: [{
|
|
3300
3063
|
type: Component,
|
|
3301
3064
|
args: [{
|
|
3302
3065
|
selector: 'dbx-firebase-model-type-instance-list',
|
|
@@ -3312,10 +3075,10 @@ class DbxFirebaseModelTypeInstanceListViewComponent extends AbstractDbxSelection
|
|
|
3312
3075
|
componentClass: DbxFirebaseModelTypeInstanceListViewItemComponent,
|
|
3313
3076
|
mapValuesToItemValues: (x) => of(x.map((y) => ({ itemValue: y, icon: y.displayInfo.icon ?? y.icon, anchor: y.segueRef })))
|
|
3314
3077
|
};
|
|
3315
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3316
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3078
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3079
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseModelTypeInstanceListViewComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list-view", providers: provideDbxListView(DbxFirebaseModelTypeInstanceListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3317
3080
|
}
|
|
3318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3081
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewComponent, decorators: [{
|
|
3319
3082
|
type: Component,
|
|
3320
3083
|
args: [{
|
|
3321
3084
|
selector: 'dbx-firebase-model-type-instance-list-view',
|
|
@@ -3328,12 +3091,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3328
3091
|
}] });
|
|
3329
3092
|
class DbxFirebaseModelTypeInstanceListViewItemComponent extends AbstractDbxValueListViewItemComponent {
|
|
3330
3093
|
title = this.itemValue.displayInfo.title;
|
|
3331
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3332
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3094
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3095
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseModelTypeInstanceListViewItemComponent, isStandalone: true, selector: "dbx-firebase-model-type-instance-list-view-item", usesInheritance: true, ngImport: i0, template: `
|
|
3333
3096
|
<span>{{ title }}</span>
|
|
3334
3097
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3335
3098
|
}
|
|
3336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelTypeInstanceListViewItemComponent, decorators: [{
|
|
3337
3100
|
type: Component,
|
|
3338
3101
|
args: [{
|
|
3339
3102
|
selector: 'dbx-firebase-model-type-instance-list-view-item',
|
|
@@ -3347,18 +3110,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3347
3110
|
|
|
3348
3111
|
class DbxFirebaseModelHistoryComponent {
|
|
3349
3112
|
dbxFirebaseModelTrackerService = inject(DbxFirebaseModelTrackerService);
|
|
3350
|
-
anchorForItem = input();
|
|
3351
|
-
historyFilter = input();
|
|
3113
|
+
anchorForItem = input(...(ngDevMode ? [undefined, { debugName: "anchorForItem" }] : []));
|
|
3114
|
+
historyFilter = input(...(ngDevMode ? [undefined, { debugName: "historyFilter" }] : []));
|
|
3352
3115
|
historyPairs$ = toObservable(this.historyFilter).pipe(switchMap((x) => this.dbxFirebaseModelTrackerService.filterHistoryPairs(x)), shareReplay(1));
|
|
3353
3116
|
state = loadingStateFromObs(this.historyPairs$);
|
|
3354
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3355
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
3117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseModelHistoryComponent, isStandalone: true, selector: "dbx-firebase-model-history", inputs: { anchorForItem: { classPropertyName: "anchorForItem", publicName: "anchorForItem", isSignal: true, isRequired: false, transformFunction: null }, historyFilter: { classPropertyName: "historyFilter", publicName: "historyFilter", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3356
3119
|
<dbx-firebase-model-type-instance-list [state]="state" dbxListItemModifier [dbxListItemAnchorModifier]="anchorForItem()">
|
|
3357
3120
|
<ng-content empty select="[empty]"></ng-content>
|
|
3358
3121
|
</dbx-firebase-model-type-instance-list>
|
|
3359
3122
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseModelTypeInstanceListComponent, selector: "dbx-firebase-model-type-instance-list" }, { kind: "directive", type: DbxListItemAnchorModifierDirective, selector: "[dbxListItemAnchorModifier]", inputs: ["dbxListItemAnchorModifier"] }, { kind: "directive", type: DbxValueListItemModifierDirective, selector: "dbxListItemModifier,[dbxListItemModifier]", inputs: ["dbxListItemModifier"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3360
3123
|
}
|
|
3361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3124
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelHistoryComponent, decorators: [{
|
|
3362
3125
|
type: Component,
|
|
3363
3126
|
args: [{
|
|
3364
3127
|
selector: 'dbx-firebase-model-history',
|
|
@@ -3371,7 +3134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3371
3134
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3372
3135
|
standalone: true
|
|
3373
3136
|
}]
|
|
3374
|
-
}] });
|
|
3137
|
+
}], propDecorators: { anchorForItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchorForItem", required: false }] }], historyFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "historyFilter", required: false }] }] } });
|
|
3375
3138
|
|
|
3376
3139
|
const DEFAULT_DBX_FIREBASE_MODEL_HISTORY_COMPONENT_POPOVER_KEY = 'history';
|
|
3377
3140
|
class DbxFirebaseModelHistoryPopoverComponent extends AbstractPopoverDirective {
|
|
@@ -3397,10 +3160,10 @@ class DbxFirebaseModelHistoryPopoverComponent extends AbstractPopoverDirective {
|
|
|
3397
3160
|
emptyText = this.config.emptyText ?? 'History is empty.';
|
|
3398
3161
|
historyFilter = this.config.historyFilter;
|
|
3399
3162
|
anchorForItem = this.config.anchorForItem;
|
|
3400
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3401
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3163
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelHistoryPopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseModelHistoryPopoverComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-history [historyFilter]=\"historyFilter\" [anchorForItem]=\"anchorForItem\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-model-history>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", dependencies: [{ kind: "component", type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { kind: "component", type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { kind: "directive", type: DbxPopoverScrollContentDirective, selector: "dbx-popover-scroll-content,[dbxPopoverScrollContent],.dbx-popover-scroll-content" }, { kind: "component", type: DbxFirebaseModelHistoryComponent, selector: "dbx-firebase-model-history", inputs: ["anchorForItem", "historyFilter"] }, { kind: "component", type: DbxListEmptyContentComponent, selector: "dbx-list-empty-content" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3402
3165
|
}
|
|
3403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelHistoryPopoverComponent, decorators: [{
|
|
3404
3167
|
type: Component,
|
|
3405
3168
|
args: [{ imports: [DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxFirebaseModelHistoryComponent, DbxListEmptyContentComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-history [historyFilter]=\"historyFilter\" [anchorForItem]=\"anchorForItem\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-model-history>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
3406
3169
|
}] });
|
|
@@ -3408,7 +3171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3408
3171
|
class DbxFirebaseModelHistoryPopoverButtonComponent extends AbstractPopoverRefDirective {
|
|
3409
3172
|
_dbxPopoverService = inject(DbxPopoverService);
|
|
3410
3173
|
buttonElement = viewChild.required('button', { read: ElementRef });
|
|
3411
|
-
config = input();
|
|
3174
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
3412
3175
|
_makePopoverRef(origin) {
|
|
3413
3176
|
const config = this.config();
|
|
3414
3177
|
if (!origin) {
|
|
@@ -3423,12 +3186,12 @@ class DbxFirebaseModelHistoryPopoverButtonComponent extends AbstractPopoverRefDi
|
|
|
3423
3186
|
const origin = this.buttonElement();
|
|
3424
3187
|
this.showPopover(origin);
|
|
3425
3188
|
}
|
|
3426
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3427
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
3189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelHistoryPopoverButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3190
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: DbxFirebaseModelHistoryPopoverButtonComponent, isStandalone: true, selector: "dbx-firebase-model-history-popover-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3428
3191
|
<dbx-icon-button #button (buttonClick)="showHistoryPopover()" icon="history"></dbx-icon-button>
|
|
3429
3192
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxIconButtonComponent, selector: "dbx-icon-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3430
3193
|
}
|
|
3431
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelHistoryPopoverButtonComponent, decorators: [{
|
|
3432
3195
|
type: Component,
|
|
3433
3196
|
args: [{
|
|
3434
3197
|
selector: 'dbx-firebase-model-history-popover-button',
|
|
@@ -3439,28 +3202,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3439
3202
|
imports: [DbxIconButtonComponent],
|
|
3440
3203
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3441
3204
|
}]
|
|
3442
|
-
}] });
|
|
3443
|
-
|
|
3444
|
-
const importsAndExports$5 = [DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent];
|
|
3445
|
-
/**
|
|
3446
|
-
* @deprecated import standalone components individually instead.
|
|
3447
|
-
*
|
|
3448
|
-
* @see DbxFirebaseModelHistoryComponent
|
|
3449
|
-
* @see DbxFirebaseModelHistoryPopoverButtonComponent
|
|
3450
|
-
* @see DbxFirebaseModelHistoryPopoverComponent
|
|
3451
|
-
*/
|
|
3452
|
-
class DbxFirebaseModelHistoryModule {
|
|
3453
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelHistoryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3454
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelHistoryModule, imports: [DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent], exports: [DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent] });
|
|
3455
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelHistoryModule, imports: [importsAndExports$5] });
|
|
3456
|
-
}
|
|
3457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelHistoryModule, decorators: [{
|
|
3458
|
-
type: NgModule,
|
|
3459
|
-
args: [{
|
|
3460
|
-
imports: importsAndExports$5,
|
|
3461
|
-
exports: importsAndExports$5
|
|
3462
|
-
}]
|
|
3463
|
-
}] });
|
|
3205
|
+
}], propDecorators: { buttonElement: [{ type: i0.ViewChild, args: ['button', { ...{ read: ElementRef }, isSignal: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
|
|
3464
3206
|
|
|
3465
3207
|
/**
|
|
3466
3208
|
* Configures a SourceSelectLoadSource using the DbxFirebaseModelTrackerService to load models of a specific identity.
|
|
@@ -3509,7 +3251,8 @@ class DbxFirebaseModelEntitiesWidgetService {
|
|
|
3509
3251
|
_sortPriorityMap = cachedGetter(() => {
|
|
3510
3252
|
return new Map(mapIterable(this._entries.values(), (entry) => [entry.identity, entry.sortPriority ?? -1]));
|
|
3511
3253
|
});
|
|
3512
|
-
constructor(
|
|
3254
|
+
constructor() {
|
|
3255
|
+
const initialConfig = inject(DbxFirebaseModelEntitiesWidgetServiceConfig, { optional: true });
|
|
3513
3256
|
this._commonComponentClass = initialConfig?.commonComponentClass;
|
|
3514
3257
|
this._debugComponentClass = initialConfig?.debugComponentClass;
|
|
3515
3258
|
if (initialConfig?.entries) {
|
|
@@ -3570,17 +3313,12 @@ class DbxFirebaseModelEntitiesWidgetService {
|
|
|
3570
3313
|
getSortPriorityMap() {
|
|
3571
3314
|
return this._sortPriorityMap();
|
|
3572
3315
|
}
|
|
3573
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3574
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3316
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3317
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesWidgetService });
|
|
3575
3318
|
}
|
|
3576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesWidgetService, decorators: [{
|
|
3577
3320
|
type: Injectable
|
|
3578
|
-
}], ctorParameters: () => [
|
|
3579
|
-
type: Optional
|
|
3580
|
-
}, {
|
|
3581
|
-
type: Inject,
|
|
3582
|
-
args: [DbxFirebaseModelEntitiesWidgetServiceConfig]
|
|
3583
|
-
}] }] });
|
|
3321
|
+
}], ctorParameters: () => [] });
|
|
3584
3322
|
|
|
3585
3323
|
/**
|
|
3586
3324
|
* Injection token for providing DbxFirebaseModelEntityWithStore context to dynamically loaded widgets.
|
|
@@ -3636,7 +3374,7 @@ class DbxFirebaseModelEntitiesEntityComponent {
|
|
|
3636
3374
|
widgetInjectionConfigFactory = dbxFirebaseModelEntityWidgetInjectionConfigFactory();
|
|
3637
3375
|
entitiesWidgetService = inject(DbxFirebaseModelEntitiesWidgetService);
|
|
3638
3376
|
dbxFirebaseModelTypesService = inject(DbxFirebaseModelTypesService);
|
|
3639
|
-
entity = input.required();
|
|
3377
|
+
entity = input.required(...(ngDevMode ? [{ debugName: "entity" }] : []));
|
|
3640
3378
|
entity$ = toObservable(this.entity);
|
|
3641
3379
|
currentEntityWithStore$ = this.entity$.pipe(map((x) => {
|
|
3642
3380
|
let result;
|
|
@@ -3680,46 +3418,43 @@ class DbxFirebaseModelEntitiesEntityComponent {
|
|
|
3680
3418
|
displayNameSignal = toSignal(this.displayName$);
|
|
3681
3419
|
displayInfoSignal = toSignal(this.displayInfo$);
|
|
3682
3420
|
modelIdentitySignal = toSignal(this.modelIdentity$);
|
|
3683
|
-
modelTypeSignal = computed(() => this.modelIdentitySignal()?.modelType);
|
|
3421
|
+
modelTypeSignal = computed(() => this.modelIdentitySignal()?.modelType, ...(ngDevMode ? [{ debugName: "modelTypeSignal" }] : []));
|
|
3684
3422
|
widgetInjectionConfigSignal = toSignal(this.widgetInjectionConfig$);
|
|
3685
|
-
entityWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.entityComponentConfig);
|
|
3686
|
-
commonWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.commonComponentConfig);
|
|
3687
|
-
debugWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.debugComponentConfig);
|
|
3688
|
-
loadingContext =
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DbxFirebaseModelEntitiesEntityComponent, isStandalone: true, selector: "dbx-firebase-model-entities-entity", inputs: { entity: { classPropertyName: "entity", publicName: "entity", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (displayInfoSignal(); as displayInfo) {\n <div class=\"dbx-list-two-line-item\">\n <div class=\"item-left\">\n <span class=\"dbx-pb2 dbx-flex-bar\">\n @if (displayInfo.icon) {\n <mat-icon class=\"dbx-button-spacer\">{{ displayInfo.icon }}</mat-icon>\n }\n <span>{{ displayInfo.title }}</span>\n </span>\n <span>\n <span class=\"dbx-hint dbx-small\">{{ modelTypeSignal() }}</span>\n @if (displayNameSignal(); as displayName) {\n <span class=\"dbx-small dbx-u dbx-pl2\">{{ displayName }}</span>\n }\n </span>\n </div>\n </div>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-template matExpansionPanelContent>\n <div class=\"dbx-firebase-model-entities-entity-panel-content\">\n <dbx-loading [context]=\"loadingContext\">\n @if (entityWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-entity-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (commonWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-common-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (debugWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-debug-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n </dbx-loading>\n </div>\n </ng-template>\n</mat-expansion-panel>\n", dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3694
|
-
}
|
|
3695
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelEntitiesEntityComponent, decorators: [{
|
|
3423
|
+
entityWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.entityComponentConfig, ...(ngDevMode ? [{ debugName: "entityWidgetConfigSignal" }] : []));
|
|
3424
|
+
commonWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.commonComponentConfig, ...(ngDevMode ? [{ debugName: "commonWidgetConfigSignal" }] : []));
|
|
3425
|
+
debugWidgetConfigSignal = computed(() => this.widgetInjectionConfigSignal()?.debugComponentConfig, ...(ngDevMode ? [{ debugName: "debugWidgetConfigSignal" }] : []));
|
|
3426
|
+
loadingContext = cleanLoadingContext({ obs: this.loadingState$ });
|
|
3427
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesEntityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3428
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseModelEntitiesEntityComponent, isStandalone: true, selector: "dbx-firebase-model-entities-entity", inputs: { entity: { classPropertyName: "entity", publicName: "entity", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (displayInfoSignal(); as displayInfo) {\n <div class=\"dbx-list-two-line-item\">\n <div class=\"item-left\">\n <span class=\"dbx-pb2 dbx-flex-bar\">\n @if (displayInfo.icon) {\n <mat-icon class=\"dbx-button-spacer\">{{ displayInfo.icon }}</mat-icon>\n }\n <span>{{ displayInfo.title }}</span>\n </span>\n <span>\n <span class=\"dbx-hint dbx-small\">{{ modelTypeSignal() }}</span>\n @if (displayNameSignal(); as displayName) {\n <span class=\"dbx-small dbx-u dbx-pl2\">{{ displayName }}</span>\n }\n </span>\n </div>\n </div>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-template matExpansionPanelContent>\n <div class=\"dbx-firebase-model-entities-entity-panel-content\">\n <dbx-loading [context]=\"loadingContext\">\n @if (entityWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-entity-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (commonWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-common-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (debugWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-debug-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n </dbx-loading>\n </div>\n </ng-template>\n</mat-expansion-panel>\n", dependencies: [{ kind: "component", type: DbxInjectionComponent, selector: "dbx-injection, [dbxInjection], [dbx-injection]", inputs: ["config", "template"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }, { kind: "component", type: MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "component", type: MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3429
|
+
}
|
|
3430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesEntityComponent, decorators: [{
|
|
3696
3431
|
type: Component,
|
|
3697
|
-
args: [{ selector: 'dbx-firebase-model-entities-entity', imports: [DbxInjectionComponent, DbxLoadingComponent, MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle,
|
|
3698
|
-
}] });
|
|
3432
|
+
args: [{ selector: 'dbx-firebase-model-entities-entity', imports: [DbxInjectionComponent, DbxLoadingComponent, MatExpansionPanel, MatExpansionPanelHeader, MatExpansionPanelTitle, MatExpansionPanelContent, MatIcon], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<mat-expansion-panel>\n <mat-expansion-panel-header>\n <mat-panel-title>\n @if (displayInfoSignal(); as displayInfo) {\n <div class=\"dbx-list-two-line-item\">\n <div class=\"item-left\">\n <span class=\"dbx-pb2 dbx-flex-bar\">\n @if (displayInfo.icon) {\n <mat-icon class=\"dbx-button-spacer\">{{ displayInfo.icon }}</mat-icon>\n }\n <span>{{ displayInfo.title }}</span>\n </span>\n <span>\n <span class=\"dbx-hint dbx-small\">{{ modelTypeSignal() }}</span>\n @if (displayNameSignal(); as displayName) {\n <span class=\"dbx-small dbx-u dbx-pl2\">{{ displayName }}</span>\n }\n </span>\n </div>\n </div>\n }\n </mat-panel-title>\n </mat-expansion-panel-header>\n <ng-template matExpansionPanelContent>\n <div class=\"dbx-firebase-model-entities-entity-panel-content\">\n <dbx-loading [context]=\"loadingContext\">\n @if (entityWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-entity-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (commonWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-common-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n @if (debugWidgetConfigSignal(); as config) {\n <div class=\"dbx-pb3 dbx-firebase-model-entities-debug-content\">\n <dbx-injection [config]=\"config\"></dbx-injection>\n </div>\n }\n </dbx-loading>\n </div>\n </ng-template>\n</mat-expansion-panel>\n" }]
|
|
3433
|
+
}], propDecorators: { entity: [{ type: i0.Input, args: [{ isSignal: true, alias: "entity", required: true }] }] } });
|
|
3699
3434
|
|
|
3700
3435
|
class DbxFirebaseModelEntitiesComponent {
|
|
3701
3436
|
entitiesWidgetService = inject(DbxFirebaseModelEntitiesWidgetService);
|
|
3702
3437
|
/**
|
|
3703
3438
|
* Whether the accordion should allow multiple expanded panels.
|
|
3704
3439
|
*/
|
|
3705
|
-
multi = input(true);
|
|
3440
|
+
multi = input(true, ...(ngDevMode ? [{ debugName: "multi" }] : []));
|
|
3706
3441
|
/**
|
|
3707
3442
|
* If true, will only show entities that have a registered widget entry.
|
|
3708
3443
|
*
|
|
3709
3444
|
* Defaults to true.
|
|
3710
3445
|
*/
|
|
3711
|
-
onlyShowRegisteredTypes = input(true);
|
|
3446
|
+
onlyShowRegisteredTypes = input(true, ...(ngDevMode ? [{ debugName: "onlyShowRegisteredTypes" }] : []));
|
|
3712
3447
|
/**
|
|
3713
3448
|
* If true, will show unregistered entities, even if onlyShowRegisteredTypes is true.
|
|
3714
3449
|
*/
|
|
3715
|
-
showUnregisteredTypesSignal = signal(undefined);
|
|
3450
|
+
showUnregisteredTypesSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "showUnregisteredTypesSignal" }] : []));
|
|
3716
3451
|
onlyShowRegisteredTypesSignal = computed(() => {
|
|
3717
3452
|
const onlyShowRegisteredTypes = this.onlyShowRegisteredTypes();
|
|
3718
3453
|
const showUnregisteredTypes = this.showUnregisteredTypesSignal();
|
|
3719
3454
|
return !showUnregisteredTypes && onlyShowRegisteredTypes;
|
|
3720
|
-
});
|
|
3455
|
+
}, ...(ngDevMode ? [{ debugName: "onlyShowRegisteredTypesSignal" }] : []));
|
|
3721
3456
|
onlyShowRegisteredTypes$ = toObservable(this.onlyShowRegisteredTypesSignal).pipe(distinctUntilChanged(), shareReplay(1));
|
|
3722
|
-
entities = input();
|
|
3457
|
+
entities = input(...(ngDevMode ? [undefined, { debugName: "entities" }] : []));
|
|
3723
3458
|
entities$ = toObservable(this.entities).pipe(switchMapMaybe(), map((x) => x ?? beginLoading()), shareReplay(1));
|
|
3724
3459
|
allEntitiesState$ = this.entities$.pipe(mapLoadingStateValueWithOperator(switchMap((entities) => {
|
|
3725
3460
|
const sortPriorityMap = this.entitiesWidgetService.getSortPriorityMap();
|
|
@@ -3745,22 +3480,19 @@ class DbxFirebaseModelEntitiesComponent {
|
|
|
3745
3480
|
})), shareReplay(1));
|
|
3746
3481
|
allEntities$ = this.allEntitiesState$.pipe(valueFromFinishedLoadingState(), shareReplay(1));
|
|
3747
3482
|
allEntitiesSignal = toSignal(this.allEntities$, { initialValue: { entities: [], registeredEntities: [], unregisteredEntities: [], onlyShowRegisteredTypes: false } });
|
|
3748
|
-
entitiesWithKeysSignal = computed(() => this.allEntitiesSignal()?.entities);
|
|
3749
|
-
unregisteredEntitiesCountSignal = computed(() => this.allEntitiesSignal()?.unregisteredEntities?.length ?? 0);
|
|
3483
|
+
entitiesWithKeysSignal = computed(() => this.allEntitiesSignal()?.entities, ...(ngDevMode ? [{ debugName: "entitiesWithKeysSignal" }] : []));
|
|
3484
|
+
unregisteredEntitiesCountSignal = computed(() => this.allEntitiesSignal()?.unregisteredEntities?.length ?? 0, ...(ngDevMode ? [{ debugName: "unregisteredEntitiesCountSignal" }] : []));
|
|
3750
3485
|
showViewUnregisteredEntitiesButtonSignal = computed(() => {
|
|
3751
3486
|
const { onlyShowRegisteredTypes, unregisteredEntities } = this.allEntitiesSignal() ?? {};
|
|
3752
3487
|
return onlyShowRegisteredTypes && Boolean(unregisteredEntities?.length);
|
|
3753
|
-
});
|
|
3754
|
-
hasNoEntitiesSignal = computed(() => !this.entitiesWithKeysSignal()?.length);
|
|
3755
|
-
context =
|
|
3756
|
-
ngOnDestroy() {
|
|
3757
|
-
this.context.destroy();
|
|
3758
|
-
}
|
|
3488
|
+
}, ...(ngDevMode ? [{ debugName: "showViewUnregisteredEntitiesButtonSignal" }] : []));
|
|
3489
|
+
hasNoEntitiesSignal = computed(() => !this.entitiesWithKeysSignal()?.length, ...(ngDevMode ? [{ debugName: "hasNoEntitiesSignal" }] : []));
|
|
3490
|
+
context = cleanLoadingContext({ obs: this.allEntitiesState$ });
|
|
3759
3491
|
clickShowUnregisteredEntities() {
|
|
3760
3492
|
this.showUnregisteredTypesSignal.set(true);
|
|
3761
3493
|
}
|
|
3762
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3763
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3494
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3495
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseModelEntitiesComponent, isStandalone: true, selector: "dbx-firebase-model-entities", inputs: { multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, onlyShowRegisteredTypes: { classPropertyName: "onlyShowRegisteredTypes", publicName: "onlyShowRegisteredTypes", isSignal: true, isRequired: false, transformFunction: null }, entities: { classPropertyName: "entities", publicName: "entities", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
3764
3496
|
<dbx-loading [linear]="true" [context]="context">
|
|
3765
3497
|
<mat-accordion class="dbx-firebase-model-entities-accordion" [multi]="multi()">
|
|
3766
3498
|
@for (entity of entitiesWithKeysSignal(); track entity.key) {
|
|
@@ -3780,7 +3512,7 @@ class DbxFirebaseModelEntitiesComponent {
|
|
|
3780
3512
|
</dbx-loading>
|
|
3781
3513
|
`, isInline: true, dependencies: [{ kind: "directive", type: MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }, { kind: "component", type: DbxFirebaseModelEntitiesEntityComponent, selector: "dbx-firebase-model-entities-entity", inputs: ["entity"] }, { kind: "component", type: DbxListEmptyContentComponent, selector: "dbx-list-empty-content" }, { kind: "component", type: DbxIconButtonComponent, selector: "dbx-icon-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3782
3514
|
}
|
|
3783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3515
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesComponent, decorators: [{
|
|
3784
3516
|
type: Component,
|
|
3785
3517
|
args: [{
|
|
3786
3518
|
selector: 'dbx-firebase-model-entities',
|
|
@@ -3807,7 +3539,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3807
3539
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3808
3540
|
standalone: true
|
|
3809
3541
|
}]
|
|
3810
|
-
}] });
|
|
3542
|
+
}], propDecorators: { multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], onlyShowRegisteredTypes: [{ type: i0.Input, args: [{ isSignal: true, alias: "onlyShowRegisteredTypes", required: false }] }], entities: [{ type: i0.Input, args: [{ isSignal: true, alias: "entities", required: false }] }] } });
|
|
3811
3543
|
|
|
3812
3544
|
const DEFAULT_DBX_FIREBASE_MODEL_ENTITIES_COMPONENT_POPOVER_KEY = 'entities';
|
|
3813
3545
|
class DbxFirebaseModelEntitiesPopoverComponent extends AbstractPopoverDirective {
|
|
@@ -3839,24 +3571,24 @@ class DbxFirebaseModelEntitiesPopoverComponent extends AbstractPopoverDirective
|
|
|
3839
3571
|
header = this.config.header ?? 'Entities';
|
|
3840
3572
|
emptyText = this.config.emptyText ?? 'No entities found in current context.';
|
|
3841
3573
|
onlyShowRegisteredTypes = this.config.onlyShowRegisteredTypes;
|
|
3842
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3843
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3574
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3575
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseModelEntitiesPopoverComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-entities [entities]=\"entities$\" [onlyShowRegisteredTypes]=\"onlyShowRegisteredTypes\">\n <p empty>{{ emptyText }}</p>\n </dbx-firebase-model-entities>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", dependencies: [{ kind: "component", type: DbxPopoverContentComponent, selector: "dbx-popover-content" }, { kind: "component", type: DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { kind: "directive", type: DbxPopoverScrollContentDirective, selector: "dbx-popover-scroll-content,[dbxPopoverScrollContent],.dbx-popover-scroll-content" }, { kind: "component", type: DbxFirebaseModelEntitiesComponent, selector: "dbx-firebase-model-entities", inputs: ["multi", "onlyShowRegisteredTypes", "entities"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3844
3576
|
}
|
|
3845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverComponent, decorators: [{
|
|
3846
3578
|
type: Component,
|
|
3847
|
-
args: [{ imports: [DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxFirebaseModelEntitiesComponent
|
|
3579
|
+
args: [{ imports: [DbxPopoverContentComponent, DbxPopoverHeaderComponent, DbxPopoverScrollContentDirective, DbxFirebaseModelEntitiesComponent], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-model-entities [entities]=\"entities$\" [onlyShowRegisteredTypes]=\"onlyShowRegisteredTypes\">\n <p empty>{{ emptyText }}</p>\n </dbx-firebase-model-entities>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
3848
3580
|
}] });
|
|
3849
3581
|
|
|
3850
3582
|
class DbxFirebaseModelEntitiesPopoverButtonComponent extends AbstractPopoverRefDirective {
|
|
3851
3583
|
_dbxPopoverService = inject(DbxPopoverService);
|
|
3852
3584
|
entitiesSource = inject(DbxFirebaseModelEntitiesSource);
|
|
3853
3585
|
buttonElement = viewChild.required('button', { read: ElementRef });
|
|
3854
|
-
config = input();
|
|
3586
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
3855
3587
|
buttonDisplaySignal = computed(() => {
|
|
3856
3588
|
const config = this.config();
|
|
3857
3589
|
return config?.buttonDisplay ?? { icon: config?.icon ?? 'data_object' };
|
|
3858
|
-
});
|
|
3859
|
-
buttonStyleSignal = computed(() => this.config()?.buttonStyle);
|
|
3590
|
+
}, ...(ngDevMode ? [{ debugName: "buttonDisplaySignal" }] : []));
|
|
3591
|
+
buttonStyleSignal = computed(() => this.config()?.buttonStyle, ...(ngDevMode ? [{ debugName: "buttonStyleSignal" }] : []));
|
|
3860
3592
|
_makePopoverRef(origin) {
|
|
3861
3593
|
if (!origin) {
|
|
3862
3594
|
throw new Error('Missing origin.');
|
|
@@ -3873,12 +3605,12 @@ class DbxFirebaseModelEntitiesPopoverButtonComponent extends AbstractPopoverRefD
|
|
|
3873
3605
|
const origin = this.buttonElement();
|
|
3874
3606
|
this.showPopover(origin);
|
|
3875
3607
|
}
|
|
3876
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3877
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
3608
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3609
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: DbxFirebaseModelEntitiesPopoverButtonComponent, isStandalone: true, selector: "dbx-firebase-model-entities-popover-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
3878
3610
|
<dbx-button #button (buttonClick)="showEntitiesPopover()" [buttonStyle]="buttonStyleSignal()" [buttonDisplay]="buttonDisplaySignal()"></dbx-button>
|
|
3879
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3611
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
3880
3612
|
}
|
|
3881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3613
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesPopoverButtonComponent, decorators: [{
|
|
3882
3614
|
type: Component,
|
|
3883
3615
|
args: [{
|
|
3884
3616
|
selector: 'dbx-firebase-model-entities-popover-button',
|
|
@@ -3889,7 +3621,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
3889
3621
|
imports: [DbxButtonComponent],
|
|
3890
3622
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
3891
3623
|
}]
|
|
3892
|
-
}] });
|
|
3624
|
+
}], propDecorators: { buttonElement: [{ type: i0.ViewChild, args: ['button', { ...{ read: ElementRef }, isSignal: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
|
|
3893
3625
|
|
|
3894
3626
|
/**
|
|
3895
3627
|
* Creates EnvironmentProviders for DbxFirebaseModelEntitiesWidgetService.
|
|
@@ -3950,10 +3682,10 @@ class DbxFirebaseDocumentStoreContextStore extends ComponentStore {
|
|
|
3950
3682
|
// MARK: State Changes
|
|
3951
3683
|
addStore = this.updater(addStore);
|
|
3952
3684
|
removeStore = this.updater(removeStore);
|
|
3953
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3954
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3685
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3686
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextStore });
|
|
3955
3687
|
}
|
|
3956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3688
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextStore, decorators: [{
|
|
3957
3689
|
type: Injectable
|
|
3958
3690
|
}], ctorParameters: () => [] });
|
|
3959
3691
|
function addStore(state, store) {
|
|
@@ -3997,8 +3729,8 @@ const dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory = (storeContextS
|
|
|
3997
3729
|
return source;
|
|
3998
3730
|
};
|
|
3999
3731
|
class DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective {
|
|
4000
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4001
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3732
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3733
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreContextModelEntitiesSource]", providers: [
|
|
4002
3734
|
{
|
|
4003
3735
|
provide: DbxFirebaseModelEntitiesSource,
|
|
4004
3736
|
useFactory: dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory,
|
|
@@ -4006,7 +3738,7 @@ class DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective {
|
|
|
4006
3738
|
}
|
|
4007
3739
|
], ngImport: i0 });
|
|
4008
3740
|
}
|
|
4009
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, decorators: [{
|
|
4010
3742
|
type: Directive,
|
|
4011
3743
|
args: [{
|
|
4012
3744
|
selector: '[dbxFirebaseDocumentStoreContextModelEntitiesSource]',
|
|
@@ -4028,10 +3760,10 @@ class AbstractDbxFirebaseModelEntityWidgetDirective {
|
|
|
4028
3760
|
entityData = inject(DBX_FIREBASE_MODEL_ENTITY_WITH_STORE_TOKEN);
|
|
4029
3761
|
store = this.entityData.store;
|
|
4030
3762
|
data$ = this.store.data$;
|
|
4031
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4032
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3763
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseModelEntityWidgetDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3764
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxFirebaseModelEntityWidgetDirective, isStandalone: true, ngImport: i0 });
|
|
4033
3765
|
}
|
|
4034
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3766
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseModelEntityWidgetDirective, decorators: [{
|
|
4035
3767
|
type: Directive,
|
|
4036
3768
|
args: [{}]
|
|
4037
3769
|
}] });
|
|
@@ -4041,19 +3773,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4041
3773
|
*/
|
|
4042
3774
|
class DbxFirebaseModelKeyComponent {
|
|
4043
3775
|
dbxFirebaseModelTypesService = inject(DbxFirebaseModelTypesService);
|
|
4044
|
-
modelKey = input();
|
|
3776
|
+
modelKey = input(...(ngDevMode ? [undefined, { debugName: "modelKey" }] : []));
|
|
4045
3777
|
modelKeyIdSignal = computed(() => {
|
|
4046
3778
|
const modelKey = this.modelKey();
|
|
4047
3779
|
return modelKey ? firestoreModelId(modelKey) : undefined;
|
|
4048
|
-
});
|
|
3780
|
+
}, ...(ngDevMode ? [{ debugName: "modelKeyIdSignal" }] : []));
|
|
4049
3781
|
oneWayFlatModelKeySignal = computed(() => {
|
|
4050
3782
|
const modelKey = this.modelKey();
|
|
4051
3783
|
return modelKey ? flatFirestoreModelKey(modelKey) : undefined;
|
|
4052
|
-
});
|
|
3784
|
+
}, ...(ngDevMode ? [{ debugName: "oneWayFlatModelKeySignal" }] : []));
|
|
4053
3785
|
twoWayFlatModelKeySignal = computed(() => {
|
|
4054
3786
|
const modelKey = this.modelKey();
|
|
4055
3787
|
return modelKey ? twoWayFlatFirestoreModelKey(modelKey) : undefined;
|
|
4056
|
-
});
|
|
3788
|
+
}, ...(ngDevMode ? [{ debugName: "twoWayFlatModelKeySignal" }] : []));
|
|
4057
3789
|
// Convert signal to observable for types service
|
|
4058
3790
|
modelKey$ = toObservable(this.modelKey);
|
|
4059
3791
|
modelTypeInstance$ = this.modelKey$.pipe(switchMap((key) => {
|
|
@@ -4068,16 +3800,16 @@ class DbxFirebaseModelKeyComponent {
|
|
|
4068
3800
|
modelTypeInstanceSignal = toSignal(this.modelTypeInstance$);
|
|
4069
3801
|
modelIdentitySignal = toSignal(this.modelIdentity$);
|
|
4070
3802
|
typeInfoSignal = toSignal(this.typeInfo$);
|
|
4071
|
-
typeCanSegueToView = computed(() => this.typeInfoSignal()?.canSegueToView ?? false);
|
|
3803
|
+
typeCanSegueToView = computed(() => this.typeInfoSignal()?.canSegueToView ?? false, ...(ngDevMode ? [{ debugName: "typeCanSegueToView" }] : []));
|
|
4072
3804
|
sref$ = this.modelTypeInstance$.pipe(switchMap((x) => x?.segueRef$ ?? of(undefined)));
|
|
4073
3805
|
srefSignal = toSignal(this.sref$);
|
|
4074
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4075
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3806
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelKeyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3807
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseModelKeyComponent, isStandalone: true, selector: "dbx-firebase-model-key", inputs: { modelKey: { classPropertyName: "modelKey", publicName: "modelKey", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"dbx-firebase-model-key\">\n @if (modelKey(); as key) {\n <!-- Key Data -->\n <dbx-detail-block icon=\"key\" header=\"Model Key\">\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ key }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ modelKeyIdSignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"oneWayFlatModelKeySignal()\">(Flat) {{ oneWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"twoWayFlatModelKeySignal()\">(Encoded Flat) {{ twoWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n\n <!-- Type Info -->\n @if (typeInfoSignal(); as typeInfo) {\n <!-- Model Meta Data -->\n <div>\n <dbx-detail-block [icon]=\"typeInfo.icon\" header=\"Model Type\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.modelType }}</dbx-click-to-copy-text>\n @if (typeInfo.icon) {\n <dbx-click-to-copy-text [copyText]=\"typeInfo.icon\" class=\"dbx-block\">\n Icon:\n <span class=\"dbx-u\">{{ typeInfo.icon }}</span>\n </dbx-click-to-copy-text>\n } @else {\n <span class=\"dbx-notice\">No Icon For Type</span>\n }\n </dbx-detail-block>\n <dbx-detail-block icon=\"dataset\" header=\"Collection Name\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.identity.collectionName }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n </div>\n\n <!-- Segue Info -->\n @if (typeCanSegueToView()) {\n <dbx-detail-block icon=\"arrow_forward\" header=\"Segue To View\">\n <div class=\"dbx-hint dbx-small\">This model has a unique view within the app.</div>\n <dbx-anchor [anchor]=\"srefSignal()\"><dbx-button text=\"Go To View\"></dbx-button></dbx-anchor>\n </dbx-detail-block>\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Segue View\">\n <span>This type provides no information for segue directly.</span>\n </dbx-detail-block>\n }\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Type Info\">\n <span>There is no type info registered for this model type.</span>\n </dbx-detail-block>\n }\n } @else {\n <div class=\"dbx-firebase-model-key-empty\">No model key provided</div>\n }\n</div>\n", dependencies: [{ kind: "component", type: DbxDetailBlockComponent, selector: "dbx-detail-block", inputs: ["icon", "header", "alignHeader", "bigHeader"] }, { kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }, { kind: "component", type: DbxClickToCopyTextComponent, selector: "dbx-click-to-copy-text", inputs: ["copyText", "highlighted", "clipboardSnackbarMessagesConfig", "clipboardSnackbarMessagesEnabled", "clickToCopyIcon", "clickIconToCopyOnly"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }] });
|
|
4076
3808
|
}
|
|
4077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3809
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelKeyComponent, decorators: [{
|
|
4078
3810
|
type: Component,
|
|
4079
|
-
args: [{ selector: 'dbx-firebase-model-key', standalone: true, imports: [
|
|
4080
|
-
}] });
|
|
3811
|
+
args: [{ selector: 'dbx-firebase-model-key', standalone: true, imports: [DbxDetailBlockComponent, DbxButtonComponent, DbxClickToCopyTextComponent, DbxAnchorComponent], template: "<div class=\"dbx-firebase-model-key\">\n @if (modelKey(); as key) {\n <!-- Key Data -->\n <dbx-detail-block icon=\"key\" header=\"Model Key\">\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ key }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\">{{ modelKeyIdSignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"oneWayFlatModelKeySignal()\">(Flat) {{ oneWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n <dbx-click-to-copy-text [highlighted]=\"true\" class=\"dbx-block\" [copyText]=\"twoWayFlatModelKeySignal()\">(Encoded Flat) {{ twoWayFlatModelKeySignal() }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n\n <!-- Type Info -->\n @if (typeInfoSignal(); as typeInfo) {\n <!-- Model Meta Data -->\n <div>\n <dbx-detail-block [icon]=\"typeInfo.icon\" header=\"Model Type\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.modelType }}</dbx-click-to-copy-text>\n @if (typeInfo.icon) {\n <dbx-click-to-copy-text [copyText]=\"typeInfo.icon\" class=\"dbx-block\">\n Icon:\n <span class=\"dbx-u\">{{ typeInfo.icon }}</span>\n </dbx-click-to-copy-text>\n } @else {\n <span class=\"dbx-notice\">No Icon For Type</span>\n }\n </dbx-detail-block>\n <dbx-detail-block icon=\"dataset\" header=\"Collection Name\">\n <dbx-click-to-copy-text class=\"dbx-block\">{{ typeInfo.identity.collectionName }}</dbx-click-to-copy-text>\n </dbx-detail-block>\n </div>\n\n <!-- Segue Info -->\n @if (typeCanSegueToView()) {\n <dbx-detail-block icon=\"arrow_forward\" header=\"Segue To View\">\n <div class=\"dbx-hint dbx-small\">This model has a unique view within the app.</div>\n <dbx-anchor [anchor]=\"srefSignal()\"><dbx-button text=\"Go To View\"></dbx-button></dbx-anchor>\n </dbx-detail-block>\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Segue View\">\n <span>This type provides no information for segue directly.</span>\n </dbx-detail-block>\n }\n } @else {\n <dbx-detail-block class=\"dbx-warn\" icon=\"warning\" header=\"No Type Info\">\n <span>There is no type info registered for this model type.</span>\n </dbx-detail-block>\n }\n } @else {\n <div class=\"dbx-firebase-model-key-empty\">No model key provided</div>\n }\n</div>\n" }]
|
|
3812
|
+
}], propDecorators: { modelKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "modelKey", required: false }] }] } });
|
|
4081
3813
|
|
|
4082
3814
|
/**
|
|
4083
3815
|
* A debug widget component that displays entity data and metadata.
|
|
@@ -4098,37 +3830,33 @@ class DbxFirebaseModelEntitiesDebugWidgetComponent extends AbstractDbxFirebaseMo
|
|
|
4098
3830
|
};
|
|
4099
3831
|
}
|
|
4100
3832
|
return content;
|
|
4101
|
-
});
|
|
4102
|
-
context =
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
}
|
|
4106
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelEntitiesDebugWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4107
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.13", type: DbxFirebaseModelEntitiesDebugWidgetComponent, isStandalone: true, selector: "dbx-firebase-model-entities-debug-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-firebase-model-entities-debug-widget\">\n <!-- Model Key Section -->\n <div class=\"dbx-debug-section\">\n <h4>Model Key Information</h4>\n @if (currentKey(); as key) {\n <dbx-firebase-model-key [modelKey]=\"key\"></dbx-firebase-model-key>\n }\n </div>\n\n <!-- Document Data Section -->\n <div class=\"dbx-debug-section\">\n <h4>Document Data</h4>\n <dbx-loading [context]=\"context\">\n @if (currentData(); as data) {\n <dbx-download-text-view [showTitle]=\"false\" [content]=\"contentSignal()\"></dbx-download-text-view>\n } @else {\n <p class=\"dbx-empty\">No data available</p>\n }\n </dbx-loading>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: DbxFirebaseModelKeyComponent, selector: "dbx-firebase-model-key", inputs: ["modelKey"] }, { kind: "component", type: DbxDownloadTextViewComponent, selector: "dbx-download-text-view", inputs: ["showDownloadButton", "loadingText", "linear", "showTitle", "showPreview", "showExpandPreviewButton", "expandPreview", "content", "contentState"], outputs: ["expandPreviewChange"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }] });
|
|
3833
|
+
}, ...(ngDevMode ? [{ debugName: "contentSignal" }] : []));
|
|
3834
|
+
context = cleanLoadingContext(this.store.dataLoadingState$);
|
|
3835
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesDebugWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3836
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseModelEntitiesDebugWidgetComponent, isStandalone: true, selector: "dbx-firebase-model-entities-debug-widget", usesInheritance: true, ngImport: i0, template: "<div class=\"dbx-firebase-model-entities-debug-widget\">\n <!-- Model Key Section -->\n <div class=\"dbx-debug-section\">\n <h4>Model Key Information</h4>\n @if (currentKey(); as key) {\n <dbx-firebase-model-key [modelKey]=\"key\"></dbx-firebase-model-key>\n }\n </div>\n\n <!-- Document Data Section -->\n <div class=\"dbx-debug-section\">\n <h4>Document Data</h4>\n <dbx-loading [context]=\"context\">\n @if (currentData(); as data) {\n <dbx-download-text-view [showTitle]=\"false\" [content]=\"contentSignal()\"></dbx-download-text-view>\n } @else {\n <p class=\"dbx-empty\">No data available</p>\n }\n </dbx-loading>\n </div>\n</div>\n", dependencies: [{ kind: "component", type: DbxFirebaseModelKeyComponent, selector: "dbx-firebase-model-key", inputs: ["modelKey"] }, { kind: "component", type: DbxDownloadTextViewComponent, selector: "dbx-download-text-view", inputs: ["showDownloadButton", "loadingText", "linear", "showTitle", "showPreview", "showExpandPreviewButton", "expandPreview", "content", "contentState"], outputs: ["expandPreviewChange"] }, { kind: "component", type: DbxLoadingComponent, selector: "dbx-loading", inputs: ["padding", "show", "text", "mode", "color", "diameter", "linear", "loading", "error", "context"] }] });
|
|
4108
3837
|
}
|
|
4109
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelEntitiesDebugWidgetComponent, decorators: [{
|
|
4110
3839
|
type: Component,
|
|
4111
|
-
args: [{ selector: 'dbx-firebase-model-entities-debug-widget', standalone: true, imports: [DbxFirebaseModelKeyComponent,
|
|
3840
|
+
args: [{ selector: 'dbx-firebase-model-entities-debug-widget', standalone: true, imports: [DbxFirebaseModelKeyComponent, DbxDownloadTextViewComponent, DbxLoadingComponent], template: "<div class=\"dbx-firebase-model-entities-debug-widget\">\n <!-- Model Key Section -->\n <div class=\"dbx-debug-section\">\n <h4>Model Key Information</h4>\n @if (currentKey(); as key) {\n <dbx-firebase-model-key [modelKey]=\"key\"></dbx-firebase-model-key>\n }\n </div>\n\n <!-- Document Data Section -->\n <div class=\"dbx-debug-section\">\n <h4>Document Data</h4>\n <dbx-loading [context]=\"context\">\n @if (currentData(); as data) {\n <dbx-download-text-view [showTitle]=\"false\" [content]=\"contentSignal()\"></dbx-download-text-view>\n } @else {\n <p class=\"dbx-empty\">No data available</p>\n }\n </dbx-loading>\n </div>\n</div>\n" }]
|
|
4112
3841
|
}] });
|
|
4113
3842
|
|
|
4114
3843
|
/**
|
|
4115
3844
|
* Abstract directive that contains a DbxFirebaseDocumentStore and provides an interface for communicating with other directives.
|
|
4116
3845
|
*/
|
|
4117
3846
|
class DbxFirebaseDocumentStoreDirective {
|
|
4118
|
-
storeName = model(undefined);
|
|
4119
|
-
documentId = model(undefined);
|
|
4120
|
-
key = model(undefined);
|
|
4121
|
-
flatKey = model(undefined);
|
|
4122
|
-
ref = model(undefined);
|
|
4123
|
-
streamMode = model(FirestoreAccessorStreamMode.STREAM);
|
|
3847
|
+
storeName = model(undefined, ...(ngDevMode ? [{ debugName: "storeName" }] : []));
|
|
3848
|
+
documentId = model(undefined, ...(ngDevMode ? [{ debugName: "documentId" }] : []));
|
|
3849
|
+
key = model(undefined, ...(ngDevMode ? [{ debugName: "key" }] : []));
|
|
3850
|
+
flatKey = model(undefined, ...(ngDevMode ? [{ debugName: "flatKey" }] : []));
|
|
3851
|
+
ref = model(undefined, ...(ngDevMode ? [{ debugName: "ref" }] : []));
|
|
3852
|
+
streamMode = model(FirestoreAccessorStreamMode.STREAM, ...(ngDevMode ? [{ debugName: "streamMode" }] : []));
|
|
4124
3853
|
_storeName$ = toObservable(this.storeName).pipe(skipInitialMaybe());
|
|
4125
3854
|
_documentId$ = toObservable(this.documentId).pipe(skipInitialMaybe());
|
|
4126
3855
|
_key$ = toObservable(this.key).pipe(skipInitialMaybe());
|
|
4127
3856
|
_flatKey$ = toObservable(this.flatKey).pipe(skipInitialMaybe());
|
|
4128
3857
|
_ref$ = toObservable(this.ref).pipe(skipInitialMaybe());
|
|
4129
3858
|
_streamMode$ = toObservable(this.streamMode).pipe(skipInitialMaybe());
|
|
4130
|
-
_store = new BehaviorSubject(undefined);
|
|
4131
|
-
_storeSub = new SubscriptionObject();
|
|
3859
|
+
_store = completeOnDestroy(new BehaviorSubject(undefined));
|
|
4132
3860
|
store$ = this._store.pipe(filterMaybe(), shareReplay(1));
|
|
4133
3861
|
exists$ = this.store$.pipe(switchMap((x) => x.exists$));
|
|
4134
3862
|
document$ = this.store$.pipe(switchMap((x) => x.document$));
|
|
@@ -4145,7 +3873,7 @@ class DbxFirebaseDocumentStoreDirective {
|
|
|
4145
3873
|
constructor(store) {
|
|
4146
3874
|
this.replaceStore(store);
|
|
4147
3875
|
// sync inputs to store any time the store changes
|
|
4148
|
-
this.
|
|
3876
|
+
cleanSubscription(this._store.subscribe((x) => {
|
|
4149
3877
|
if (x) {
|
|
4150
3878
|
x.setStoreName(this._storeName$);
|
|
4151
3879
|
x.setId(this._documentId$);
|
|
@@ -4154,11 +3882,7 @@ class DbxFirebaseDocumentStoreDirective {
|
|
|
4154
3882
|
x.setRef(this._ref$);
|
|
4155
3883
|
x.setStreamMode(this._streamMode$);
|
|
4156
3884
|
}
|
|
4157
|
-
});
|
|
4158
|
-
}
|
|
4159
|
-
ngOnDestroy() {
|
|
4160
|
-
this._store.complete();
|
|
4161
|
-
this._storeSub.destroy();
|
|
3885
|
+
}));
|
|
4162
3886
|
}
|
|
4163
3887
|
get store() {
|
|
4164
3888
|
return this._store.value;
|
|
@@ -4197,12 +3921,12 @@ class DbxFirebaseDocumentStoreDirective {
|
|
|
4197
3921
|
// we assume that the input model key is a TwoWayFlatFirestoreModelKey, since the TwoWayFlatFirestoreModelKey is safe to encode in the url
|
|
4198
3922
|
return keyFromParams.subscribe((x) => this.setFlatKey(x));
|
|
4199
3923
|
}
|
|
4200
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4201
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3924
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
3925
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseDocumentStoreDirective, isStandalone: true, inputs: { storeName: { classPropertyName: "storeName", publicName: "storeName", isSignal: true, isRequired: false, transformFunction: null }, documentId: { classPropertyName: "documentId", publicName: "documentId", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, flatKey: { classPropertyName: "flatKey", publicName: "flatKey", isSignal: true, isRequired: false, transformFunction: null }, ref: { classPropertyName: "ref", publicName: "ref", isSignal: true, isRequired: false, transformFunction: null }, streamMode: { classPropertyName: "streamMode", publicName: "streamMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { storeName: "storeNameChange", documentId: "documentIdChange", key: "keyChange", flatKey: "flatKeyChange", ref: "refChange", streamMode: "streamModeChange" }, ngImport: i0 });
|
|
4202
3926
|
}
|
|
4203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3927
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreDirective, decorators: [{
|
|
4204
3928
|
type: Directive
|
|
4205
|
-
}], ctorParameters: () => [{ type: undefined }] });
|
|
3929
|
+
}], ctorParameters: () => [{ type: undefined }], propDecorators: { storeName: [{ type: i0.Input, args: [{ isSignal: true, alias: "storeName", required: false }] }, { type: i0.Output, args: ["storeNameChange"] }], documentId: [{ type: i0.Input, args: [{ isSignal: true, alias: "documentId", required: false }] }, { type: i0.Output, args: ["documentIdChange"] }], key: [{ type: i0.Input, args: [{ isSignal: true, alias: "key", required: false }] }, { type: i0.Output, args: ["keyChange"] }], flatKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "flatKey", required: false }] }, { type: i0.Output, args: ["flatKeyChange"] }], ref: [{ type: i0.Input, args: [{ isSignal: true, alias: "ref", required: false }] }, { type: i0.Output, args: ["refChange"] }], streamMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "streamMode", required: false }] }, { type: i0.Output, args: ["streamModeChange"] }] } });
|
|
4206
3930
|
function provideDbxFirebaseDocumentStoreDirective(sourceType, storeType) {
|
|
4207
3931
|
const providers = [
|
|
4208
3932
|
{
|
|
@@ -4221,13 +3945,13 @@ function provideDbxFirebaseDocumentStoreDirective(sourceType, storeType) {
|
|
|
4221
3945
|
/**
|
|
4222
3946
|
* Used with a DbxFirebaseDocumentStoreDirective to emit model viewed events.
|
|
4223
3947
|
*/
|
|
4224
|
-
class DbxFirebaseModelViewedEventDirective
|
|
3948
|
+
class DbxFirebaseModelViewedEventDirective {
|
|
4225
3949
|
dbxFirebaseDocumentStoreDirective = inject(DbxFirebaseDocumentStoreDirective);
|
|
4226
3950
|
dbxModelObjectStateService = inject(DbxModelObjectStateService);
|
|
4227
3951
|
dbxFirebaseModelTypesService = inject(DbxFirebaseModelTypesService);
|
|
4228
|
-
modelViewContext = input(undefined, { alias: 'dbxFirebaseModelViewedEvent' });
|
|
4229
|
-
|
|
4230
|
-
this.
|
|
3952
|
+
modelViewContext = input(undefined, { ...(ngDevMode ? { debugName: "modelViewContext" } : {}), alias: 'dbxFirebaseModelViewedEvent' });
|
|
3953
|
+
constructor() {
|
|
3954
|
+
cleanSubscription(this.dbxFirebaseDocumentStoreDirective.data$
|
|
4231
3955
|
.pipe(
|
|
4232
3956
|
//
|
|
4233
3957
|
distinctUntilModelKeyChange(), combineLatestWith(this.dbxFirebaseDocumentStoreDirective.modelIdentity$.pipe(switchMap((x) => this.dbxFirebaseModelTypesService.infoForType(x.modelType)), first()), this.dbxFirebaseDocumentStoreDirective.key$), map(([data, typeInfo, key]) => {
|
|
@@ -4242,52 +3966,30 @@ class DbxFirebaseModelViewedEventDirective extends AbstractSubscriptionDirective
|
|
|
4242
3966
|
.subscribe((modelKeyTypeNamePair) => {
|
|
4243
3967
|
const context = this.modelViewContext();
|
|
4244
3968
|
this.dbxModelObjectStateService.emitModelViewEvent({ modelKeyTypeNamePair, context });
|
|
4245
|
-
});
|
|
3969
|
+
}));
|
|
4246
3970
|
}
|
|
4247
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4248
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3971
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelViewedEventDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3972
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseModelViewedEventDirective, isStandalone: true, selector: "[dbxFirebaseModelViewedEvent]", inputs: { modelViewContext: { classPropertyName: "modelViewContext", publicName: "dbxFirebaseModelViewedEvent", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
4249
3973
|
}
|
|
4250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelViewedEventDirective, decorators: [{
|
|
4251
3975
|
type: Directive,
|
|
4252
3976
|
args: [{
|
|
4253
3977
|
selector: '[dbxFirebaseModelViewedEvent]',
|
|
4254
3978
|
standalone: true
|
|
4255
3979
|
}]
|
|
4256
|
-
}] });
|
|
4257
|
-
|
|
4258
|
-
const importsAndExports$4 = [DbxFirebaseModelViewedEventDirective, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent];
|
|
4259
|
-
/**
|
|
4260
|
-
* @deprecated import independent components instead
|
|
4261
|
-
*
|
|
4262
|
-
* @see DbxFirebaseModelViewedEventDirective
|
|
4263
|
-
* @see DbxFirebaseModelTypeInstanceListComponent
|
|
4264
|
-
* @see DbxFirebaseModelTypeInstanceListViewComponent
|
|
4265
|
-
* @see DbxFirebaseModelTypeInstanceListViewItemComponent
|
|
4266
|
-
*/
|
|
4267
|
-
class DbxFirebaseModelTypesModule {
|
|
4268
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelTypesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4269
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelTypesModule, imports: [DbxFirebaseModelViewedEventDirective, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent], exports: [DbxFirebaseModelViewedEventDirective, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent] });
|
|
4270
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelTypesModule, imports: [DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent] });
|
|
4271
|
-
}
|
|
4272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseModelTypesModule, decorators: [{
|
|
4273
|
-
type: NgModule,
|
|
4274
|
-
args: [{
|
|
4275
|
-
imports: importsAndExports$4,
|
|
4276
|
-
exports: importsAndExports$4
|
|
4277
|
-
}]
|
|
4278
|
-
}] });
|
|
3980
|
+
}], ctorParameters: () => [], propDecorators: { modelViewContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxFirebaseModelViewedEvent", required: false }] }] } });
|
|
4279
3981
|
|
|
4280
3982
|
/**
|
|
4281
3983
|
* Abstract directive that contains a DbxFirebaseCollectionStore and provides an interface for communicating with other directives.
|
|
4282
3984
|
*/
|
|
4283
3985
|
class DbxFirebaseCollectionStoreDirective {
|
|
4284
|
-
collectionMode = model('query');
|
|
4285
|
-
collectionKeys = model(undefined);
|
|
4286
|
-
collectionRefs = model(undefined);
|
|
4287
|
-
maxPages = model(undefined);
|
|
4288
|
-
itemsPerPage = model(undefined);
|
|
4289
|
-
constraints = model(undefined);
|
|
4290
|
-
waitForNonNullConstraints = model(undefined);
|
|
3986
|
+
collectionMode = model('query', ...(ngDevMode ? [{ debugName: "collectionMode" }] : []));
|
|
3987
|
+
collectionKeys = model(undefined, ...(ngDevMode ? [{ debugName: "collectionKeys" }] : []));
|
|
3988
|
+
collectionRefs = model(undefined, ...(ngDevMode ? [{ debugName: "collectionRefs" }] : []));
|
|
3989
|
+
maxPages = model(undefined, ...(ngDevMode ? [{ debugName: "maxPages" }] : []));
|
|
3990
|
+
itemsPerPage = model(undefined, ...(ngDevMode ? [{ debugName: "itemsPerPage" }] : []));
|
|
3991
|
+
constraints = model(undefined, ...(ngDevMode ? [{ debugName: "constraints" }] : []));
|
|
3992
|
+
waitForNonNullConstraints = model(undefined, ...(ngDevMode ? [{ debugName: "waitForNonNullConstraints" }] : []));
|
|
4291
3993
|
_collectionMode = toObservable(this.collectionMode).pipe(skipInitialMaybe());
|
|
4292
3994
|
_collectionKeys = toObservable(this.collectionKeys).pipe(skipInitialMaybe());
|
|
4293
3995
|
_collectionRefs = toObservable(this.collectionRefs).pipe(skipInitialMaybe());
|
|
@@ -4295,14 +3997,13 @@ class DbxFirebaseCollectionStoreDirective {
|
|
|
4295
3997
|
_itemsPerPage = toObservable(this.itemsPerPage).pipe(skipInitialMaybe());
|
|
4296
3998
|
_constraints = toObservable(this.constraints).pipe(skipInitialMaybe());
|
|
4297
3999
|
_waitForNonNullConstraints = toObservable(this.waitForNonNullConstraints).pipe(skipInitialMaybe());
|
|
4298
|
-
_store = new BehaviorSubject(undefined);
|
|
4299
|
-
_storeSub = new SubscriptionObject();
|
|
4000
|
+
_store = completeOnDestroy(new BehaviorSubject(undefined));
|
|
4300
4001
|
store$ = this._store.pipe(filterMaybe(), shareReplay(1));
|
|
4301
4002
|
pageLoadingState$ = this.store$.pipe(switchMap((x) => x.pageLoadingState$));
|
|
4302
4003
|
constructor(store) {
|
|
4303
4004
|
this.replaceStore(store);
|
|
4304
4005
|
// sync inputs to store any time the store changes
|
|
4305
|
-
this.
|
|
4006
|
+
cleanSubscription(this.store$.subscribe((x) => {
|
|
4306
4007
|
x.setCollectionMode(this._collectionMode);
|
|
4307
4008
|
x.setCollectionKeys(this._collectionKeys);
|
|
4308
4009
|
x.setCollectionRefs(this._collectionRefs);
|
|
@@ -4310,15 +4011,11 @@ class DbxFirebaseCollectionStoreDirective {
|
|
|
4310
4011
|
x.setMaxPages(this._maxPages);
|
|
4311
4012
|
x.setItemsPerPage(this._itemsPerPage);
|
|
4312
4013
|
x.setWaitForNonNullConstraints(this._waitForNonNullConstraints);
|
|
4313
|
-
});
|
|
4014
|
+
}));
|
|
4314
4015
|
}
|
|
4315
4016
|
get store() {
|
|
4316
4017
|
return this._store.value;
|
|
4317
4018
|
}
|
|
4318
|
-
ngOnDestroy() {
|
|
4319
|
-
this._store.complete();
|
|
4320
|
-
this._storeSub.destroy();
|
|
4321
|
-
}
|
|
4322
4019
|
/**
|
|
4323
4020
|
* Replaces the internal store.
|
|
4324
4021
|
*/
|
|
@@ -4352,12 +4049,12 @@ class DbxFirebaseCollectionStoreDirective {
|
|
|
4352
4049
|
restart() {
|
|
4353
4050
|
this.store.restart();
|
|
4354
4051
|
}
|
|
4355
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4356
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4052
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionStoreDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
4053
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseCollectionStoreDirective, isStandalone: true, inputs: { collectionMode: { classPropertyName: "collectionMode", publicName: "collectionMode", isSignal: true, isRequired: false, transformFunction: null }, collectionKeys: { classPropertyName: "collectionKeys", publicName: "collectionKeys", isSignal: true, isRequired: false, transformFunction: null }, collectionRefs: { classPropertyName: "collectionRefs", publicName: "collectionRefs", isSignal: true, isRequired: false, transformFunction: null }, maxPages: { classPropertyName: "maxPages", publicName: "maxPages", isSignal: true, isRequired: false, transformFunction: null }, itemsPerPage: { classPropertyName: "itemsPerPage", publicName: "itemsPerPage", isSignal: true, isRequired: false, transformFunction: null }, constraints: { classPropertyName: "constraints", publicName: "constraints", isSignal: true, isRequired: false, transformFunction: null }, waitForNonNullConstraints: { classPropertyName: "waitForNonNullConstraints", publicName: "waitForNonNullConstraints", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { collectionMode: "collectionModeChange", collectionKeys: "collectionKeysChange", collectionRefs: "collectionRefsChange", maxPages: "maxPagesChange", itemsPerPage: "itemsPerPageChange", constraints: "constraintsChange", waitForNonNullConstraints: "waitForNonNullConstraintsChange" }, ngImport: i0 });
|
|
4357
4054
|
}
|
|
4358
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionStoreDirective, decorators: [{
|
|
4359
4056
|
type: Directive
|
|
4360
|
-
}], ctorParameters: () => [{ type: undefined }] });
|
|
4057
|
+
}], ctorParameters: () => [{ type: undefined }], propDecorators: { collectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionMode", required: false }] }, { type: i0.Output, args: ["collectionModeChange"] }], collectionKeys: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionKeys", required: false }] }, { type: i0.Output, args: ["collectionKeysChange"] }], collectionRefs: [{ type: i0.Input, args: [{ isSignal: true, alias: "collectionRefs", required: false }] }, { type: i0.Output, args: ["collectionRefsChange"] }], maxPages: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxPages", required: false }] }, { type: i0.Output, args: ["maxPagesChange"] }], itemsPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemsPerPage", required: false }] }, { type: i0.Output, args: ["itemsPerPageChange"] }], constraints: [{ type: i0.Input, args: [{ isSignal: true, alias: "constraints", required: false }] }, { type: i0.Output, args: ["constraintsChange"] }], waitForNonNullConstraints: [{ type: i0.Input, args: [{ isSignal: true, alias: "waitForNonNullConstraints", required: false }] }, { type: i0.Output, args: ["waitForNonNullConstraintsChange"] }] } });
|
|
4361
4058
|
function provideDbxFirebaseCollectionStoreDirective(sourceType, storeType) {
|
|
4362
4059
|
const providers = [
|
|
4363
4060
|
{
|
|
@@ -4376,9 +4073,9 @@ function provideDbxFirebaseCollectionStoreDirective(sourceType, storeType) {
|
|
|
4376
4073
|
*/
|
|
4377
4074
|
class DbxFirebaseCollectionChangeDirective {
|
|
4378
4075
|
dbxFirebaseCollectionStoreDirective = inject((DbxFirebaseCollectionStoreDirective));
|
|
4379
|
-
mode = input('off', { alias: 'dbxFirebaseCollectionChange', transform: (x) => x || 'off' });
|
|
4380
|
-
_watcher = dbxFirebaseCollectionChangeWatcher(this.dbxFirebaseCollectionStoreDirective.store);
|
|
4381
|
-
_trigger = dbxFirebaseCollectionChangeTriggerForWatcher(this._watcher, () => this.restart());
|
|
4076
|
+
mode = input('off', { ...(ngDevMode ? { debugName: "mode" } : {}), alias: 'dbxFirebaseCollectionChange', transform: (x) => x || 'off' });
|
|
4077
|
+
_watcher = clean(dbxFirebaseCollectionChangeWatcher(this.dbxFirebaseCollectionStoreDirective.store));
|
|
4078
|
+
_trigger = clean(dbxFirebaseCollectionChangeTriggerForWatcher(this._watcher, () => this.restart()));
|
|
4382
4079
|
mode$ = this._watcher.mode$;
|
|
4383
4080
|
event$ = this._watcher.event$;
|
|
4384
4081
|
hasChangeAvailable$ = this._watcher.hasChangeAvailable$;
|
|
@@ -4386,30 +4083,26 @@ class DbxFirebaseCollectionChangeDirective {
|
|
|
4386
4083
|
trigger$ = this._watcher.trigger$;
|
|
4387
4084
|
modeEffect = effect(() => {
|
|
4388
4085
|
this._watcher.setMode(this.mode());
|
|
4389
|
-
}, {
|
|
4086
|
+
}, ...(ngDevMode ? [{ debugName: "modeEffect" }] : []));
|
|
4390
4087
|
get store() {
|
|
4391
4088
|
return this._watcher.store;
|
|
4392
4089
|
}
|
|
4393
|
-
|
|
4090
|
+
constructor() {
|
|
4394
4091
|
this._trigger.init();
|
|
4395
4092
|
}
|
|
4396
|
-
ngOnDestroy() {
|
|
4397
|
-
this._watcher.destroy();
|
|
4398
|
-
this._trigger.destroy();
|
|
4399
|
-
}
|
|
4400
4093
|
restart() {
|
|
4401
4094
|
this.dbxFirebaseCollectionStoreDirective.store.restart();
|
|
4402
4095
|
}
|
|
4403
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4404
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionChangeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4097
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseCollectionChangeDirective, isStandalone: true, selector: "[dbxFirebaseCollectionChange]", inputs: { mode: { classPropertyName: "mode", publicName: "dbxFirebaseCollectionChange", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
4405
4098
|
}
|
|
4406
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionChangeDirective, decorators: [{
|
|
4407
4100
|
type: Directive,
|
|
4408
4101
|
args: [{
|
|
4409
4102
|
selector: '[dbxFirebaseCollectionChange]',
|
|
4410
4103
|
standalone: true
|
|
4411
4104
|
}]
|
|
4412
|
-
}] });
|
|
4105
|
+
}], ctorParameters: () => [], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxFirebaseCollectionChange", required: false }] }] } });
|
|
4413
4106
|
|
|
4414
4107
|
/**
|
|
4415
4108
|
* Structural directive that displays the content when the target change is detected.
|
|
@@ -4418,7 +4111,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4418
4111
|
*/
|
|
4419
4112
|
class DbxFirebaseCollectionHasChangeDirective extends AbstractIfDirective {
|
|
4420
4113
|
directive = inject(DbxFirebaseCollectionChangeDirective);
|
|
4421
|
-
mode = input('addedAndRemoved', { alias: 'dbxFirebaseCollectionHasChange', transform: (x) => x || 'addedAndRemoved' });
|
|
4114
|
+
mode = input('addedAndRemoved', { ...(ngDevMode ? { debugName: "mode" } : {}), alias: 'dbxFirebaseCollectionHasChange', transform: (x) => x || 'addedAndRemoved' });
|
|
4422
4115
|
show$ = combineLatest([toObservable(this.mode), this.directive.event$]).pipe(map(([mode, event]) => {
|
|
4423
4116
|
let show = false;
|
|
4424
4117
|
if (event.type !== 'none') {
|
|
@@ -4436,36 +4129,35 @@ class DbxFirebaseCollectionHasChangeDirective extends AbstractIfDirective {
|
|
|
4436
4129
|
}
|
|
4437
4130
|
return show;
|
|
4438
4131
|
}), shareReplay(1));
|
|
4439
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4440
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4132
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionHasChangeDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
4133
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseCollectionHasChangeDirective, isStandalone: true, selector: "[dbxFirebaseCollectionHasChange]", inputs: { mode: { classPropertyName: "mode", publicName: "dbxFirebaseCollectionHasChange", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0 });
|
|
4441
4134
|
}
|
|
4442
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionHasChangeDirective, decorators: [{
|
|
4443
4136
|
type: Directive,
|
|
4444
4137
|
args: [{
|
|
4445
4138
|
selector: '[dbxFirebaseCollectionHasChange]',
|
|
4446
4139
|
standalone: true
|
|
4447
4140
|
}]
|
|
4448
|
-
}] });
|
|
4141
|
+
}], propDecorators: { mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxFirebaseCollectionHasChange", required: false }] }] } });
|
|
4449
4142
|
|
|
4450
4143
|
/**
|
|
4451
4144
|
* Directive that connects a host DbxListView to a DbxFirebaseCollectionStoreDirective to pass data for rendering items from a collection and query parameters.
|
|
4452
4145
|
*/
|
|
4453
|
-
class DbxFirebaseCollectionListDirective
|
|
4146
|
+
class DbxFirebaseCollectionListDirective {
|
|
4454
4147
|
dbxFirebaseCollectionStoreDirective = inject((DbxFirebaseCollectionStoreDirective));
|
|
4455
4148
|
dbxListViewWrapper = inject((DbxListViewWrapper), { host: true });
|
|
4456
4149
|
constructor() {
|
|
4457
|
-
super();
|
|
4458
4150
|
this.dbxListViewWrapper.setState(this.dbxFirebaseCollectionStoreDirective.pageLoadingState$);
|
|
4151
|
+
if (this.dbxListViewWrapper.loadMore) {
|
|
4152
|
+
cleanSubscription(this.dbxListViewWrapper.loadMore.subscribe(() => {
|
|
4153
|
+
this.dbxFirebaseCollectionStoreDirective.next();
|
|
4154
|
+
}));
|
|
4155
|
+
}
|
|
4459
4156
|
}
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
this.dbxFirebaseCollectionStoreDirective.next();
|
|
4463
|
-
});
|
|
4464
|
-
}
|
|
4465
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseCollectionListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4466
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseCollectionListDirective, isStandalone: true, selector: "[dbxFirebaseCollectionList]", usesInheritance: true, ngImport: i0 });
|
|
4157
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4158
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseCollectionListDirective, isStandalone: true, selector: "[dbxFirebaseCollectionList]", ngImport: i0 });
|
|
4467
4159
|
}
|
|
4468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionListDirective, decorators: [{
|
|
4469
4161
|
type: Directive,
|
|
4470
4162
|
args: [{
|
|
4471
4163
|
selector: '[dbxFirebaseCollectionList]',
|
|
@@ -4494,10 +4186,10 @@ function provideDbxFirebaseDocumentStoreTwoWayKeyProvider(sourceType) {
|
|
|
4494
4186
|
class DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective {
|
|
4495
4187
|
dbxFirebaseDocumentStoreDirective = inject(DbxFirebaseDocumentStoreDirective, { host: true });
|
|
4496
4188
|
twoWayFlatKey$ = this.dbxFirebaseDocumentStoreDirective.twoWayFlatKey$;
|
|
4497
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4498
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4189
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4190
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreTwoWayModelKeySource]", providers: provideDbxFirebaseDocumentStoreTwoWayKeyProvider(DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective), ngImport: i0 });
|
|
4499
4191
|
}
|
|
4500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, decorators: [{
|
|
4501
4193
|
type: Directive,
|
|
4502
4194
|
args: [{
|
|
4503
4195
|
selector: '[dbxFirebaseDocumentStoreTwoWayModelKeySource]',
|
|
@@ -4509,17 +4201,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4509
4201
|
/**
|
|
4510
4202
|
* Used for providing an id from the twoWayFlatKey$ from a DbxFirebaseDocumentStoreTwoWayKeyProvider.
|
|
4511
4203
|
*/
|
|
4512
|
-
class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective
|
|
4204
|
+
class DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective {
|
|
4513
4205
|
dbxFirebaseDocumentStoreDirective = inject(DbxFirebaseDocumentStoreDirective, { host: true });
|
|
4514
4206
|
dbxFirebaseDocumentStoreTwoWayKeyProvider = inject(DbxFirebaseDocumentStoreTwoWayKeyProvider, { skipSelf: true, host: false });
|
|
4515
4207
|
constructor() {
|
|
4516
|
-
|
|
4517
|
-
this.sub = this.dbxFirebaseDocumentStoreDirective.store.setId(this.dbxFirebaseDocumentStoreTwoWayKeyProvider.twoWayFlatKey$);
|
|
4208
|
+
cleanSubscription(this.dbxFirebaseDocumentStoreDirective.store.setId(this.dbxFirebaseDocumentStoreTwoWayKeyProvider.twoWayFlatKey$));
|
|
4518
4209
|
}
|
|
4519
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4520
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4211
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreIdFromTwoWayModelKey]", ngImport: i0 });
|
|
4521
4212
|
}
|
|
4522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, decorators: [{
|
|
4523
4214
|
type: Directive,
|
|
4524
4215
|
args: [{
|
|
4525
4216
|
selector: '[dbxFirebaseDocumentStoreIdFromTwoWayModelKey]',
|
|
@@ -4527,17 +4218,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
4527
4218
|
}]
|
|
4528
4219
|
}], ctorParameters: () => [] });
|
|
4529
4220
|
|
|
4530
|
-
const importsAndExports$
|
|
4221
|
+
const importsAndExports$1 = [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective];
|
|
4531
4222
|
class DbxFirebaseModelStoreModule {
|
|
4532
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4533
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4534
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4223
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelStoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4224
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelStoreModule, imports: [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective], exports: [DbxFirebaseCollectionListDirective, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective] });
|
|
4225
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelStoreModule });
|
|
4535
4226
|
}
|
|
4536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelStoreModule, decorators: [{
|
|
4537
4228
|
type: NgModule,
|
|
4538
4229
|
args: [{
|
|
4539
|
-
imports: importsAndExports$
|
|
4540
|
-
exports: importsAndExports$
|
|
4230
|
+
imports: importsAndExports$1,
|
|
4231
|
+
exports: importsAndExports$1
|
|
4541
4232
|
}]
|
|
4542
4233
|
}] });
|
|
4543
4234
|
|
|
@@ -4607,10 +4298,10 @@ class AbstractDbxFirebaseCollectionStore extends LockSetComponentStore {
|
|
|
4607
4298
|
loadAllResults() {
|
|
4608
4299
|
return this.loader$.pipe(switchMap((x) => x.loadAllResults()));
|
|
4609
4300
|
}
|
|
4610
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4611
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4301
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseCollectionStore, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4302
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseCollectionStore });
|
|
4612
4303
|
}
|
|
4613
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseCollectionStore, decorators: [{
|
|
4614
4305
|
type: Injectable
|
|
4615
4306
|
}] });
|
|
4616
4307
|
|
|
@@ -4688,6 +4379,8 @@ function linkDocumentStoreToParentContextStores(store) {
|
|
|
4688
4379
|
}
|
|
4689
4380
|
|
|
4690
4381
|
class AbstractDbxFirebaseDocumentStore extends LockSetComponentStore {
|
|
4382
|
+
// NOTE: Injection does not occur here, but we need @Injectable to compile properly for Angular usage
|
|
4383
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject
|
|
4691
4384
|
constructor(initialState) {
|
|
4692
4385
|
super(initialState);
|
|
4693
4386
|
linkDocumentStoreToParentContextStores(this);
|
|
@@ -4727,7 +4420,7 @@ class AbstractDbxFirebaseDocumentStore extends LockSetComponentStore {
|
|
|
4727
4420
|
*/
|
|
4728
4421
|
hasRef$ = this.currentDocument$.pipe(map((x) => x?.documentRef != null), distinctUntilChanged(), shareReplay(1));
|
|
4729
4422
|
document$ = this.currentDocument$.pipe(filterMaybe(), distinctUntilChanged(), shareReplay(1));
|
|
4730
|
-
documentLoadingState$ = this.currentDocument$.pipe(map((x) => (x ? successResult(x) : beginLoading())),
|
|
4423
|
+
documentLoadingState$ = this.currentDocument$.pipe(map((x) => (x ? successResult(x) : beginLoading())), shareReplay(1));
|
|
4731
4424
|
currentId$ = this.currentDocument$.pipe(map((x) => x?.id), shareReplay(1));
|
|
4732
4425
|
currentKey$ = this.currentDocument$.pipe(map((x) => x?.key), shareReplay(1));
|
|
4733
4426
|
id$ = this.document$.pipe(map((x) => x.id), shareReplay(1));
|
|
@@ -4799,10 +4492,10 @@ class AbstractDbxFirebaseDocumentStore extends LockSetComponentStore {
|
|
|
4799
4492
|
clearRefs = this.updater((state) => ({ ...state, id: undefined, key: undefined, ref: undefined }));
|
|
4800
4493
|
setFirestoreCollection = this.updater((state, firestoreCollection) => ({ ...state, firestoreCollection }));
|
|
4801
4494
|
setFirestoreCollectionLike = this.updater((state, firestoreCollectionLike) => ({ ...state, firestoreCollectionLike }));
|
|
4802
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4803
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4495
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseDocumentStore, deps: [{ token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4496
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseDocumentStore });
|
|
4804
4497
|
}
|
|
4805
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4498
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseDocumentStore, decorators: [{
|
|
4806
4499
|
type: Injectable
|
|
4807
4500
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
4808
4501
|
type: Inject,
|
|
@@ -4972,6 +4665,7 @@ function setParentStoreEffect(store) {
|
|
|
4972
4665
|
*/
|
|
4973
4666
|
class AbstractDbxFirebaseCollectionWithParentStore extends AbstractDbxFirebaseCollectionStore {
|
|
4974
4667
|
// NOTE: Injection does not occur here, but we need @Injectable to compile properly for Angular usage
|
|
4668
|
+
// eslint-disable-next-line @angular-eslint/prefer-inject
|
|
4975
4669
|
constructor(state, defaultSourceMode) {
|
|
4976
4670
|
super(state);
|
|
4977
4671
|
this.setSourceMode(defaultSourceMode || 'parent');
|
|
@@ -5024,10 +4718,10 @@ class AbstractDbxFirebaseCollectionWithParentStore extends AbstractDbxFirebaseCo
|
|
|
5024
4718
|
*/
|
|
5025
4719
|
_setParentDocument = this.updater((state, parent) => ({ ...state, parent }));
|
|
5026
4720
|
_setParent = this._setParentDocument;
|
|
5027
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5028
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4721
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseCollectionWithParentStore, deps: [{ token: null, optional: true }, { token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4722
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseCollectionWithParentStore });
|
|
5029
4723
|
}
|
|
5030
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4724
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseCollectionWithParentStore, decorators: [{
|
|
5031
4725
|
type: Injectable
|
|
5032
4726
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5033
4727
|
type: Inject,
|
|
@@ -5085,10 +4779,10 @@ class AbstractDbxFirebaseDocumentWithParentStore extends AbstractDbxFirebaseDocu
|
|
|
5085
4779
|
* Sets the parent on the current state.
|
|
5086
4780
|
*/
|
|
5087
4781
|
_setParentDocument = this.updater((state, parent) => ({ ...state, parent }));
|
|
5088
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5089
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4782
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseDocumentWithParentStore, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4783
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseDocumentWithParentStore });
|
|
5090
4784
|
}
|
|
5091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseDocumentWithParentStore, decorators: [{
|
|
5092
4786
|
type: Injectable
|
|
5093
4787
|
}] });
|
|
5094
4788
|
/**
|
|
@@ -5137,30 +4831,25 @@ class AbstractSingleItemDbxFirebaseDocument extends AbstractDbxFirebaseDocumentW
|
|
|
5137
4831
|
* Abstract directive that contains a DbxFirebaseCollectionWithParentStore and provides an interface for communicating with other directives.
|
|
5138
4832
|
*/
|
|
5139
4833
|
class DbxFirebaseCollectionWithParentStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
5140
|
-
sourceMode = model(undefined);
|
|
4834
|
+
sourceMode = model(undefined, ...(ngDevMode ? [{ debugName: "sourceMode" }] : []));
|
|
5141
4835
|
_sourceMode$ = toObservable(this.sourceMode).pipe(skipInitialMaybe());
|
|
5142
|
-
_parentSourceModeSub = new SubscriptionObject();
|
|
5143
4836
|
constructor(store) {
|
|
5144
4837
|
super(store);
|
|
5145
4838
|
// sync inputs to store any time the store changes
|
|
5146
|
-
this.
|
|
4839
|
+
cleanSubscription(this.store$.subscribe((x) => {
|
|
5147
4840
|
x.setSourceMode(this._sourceMode$);
|
|
5148
|
-
});
|
|
5149
|
-
}
|
|
5150
|
-
ngOnDestroy() {
|
|
5151
|
-
super.ngOnDestroy();
|
|
5152
|
-
this._parentSourceModeSub.destroy();
|
|
4841
|
+
}));
|
|
5153
4842
|
}
|
|
5154
4843
|
// MARK: Inputs
|
|
5155
4844
|
setSourceMode(sourceMode) {
|
|
5156
4845
|
this.sourceMode.set(sourceMode);
|
|
5157
4846
|
}
|
|
5158
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5159
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
4847
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionWithParentStoreDirective, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
4848
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseCollectionWithParentStoreDirective, isStandalone: true, inputs: { sourceMode: { classPropertyName: "sourceMode", publicName: "sourceMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { sourceMode: "sourceModeChange" }, usesInheritance: true, ngImport: i0 });
|
|
5160
4849
|
}
|
|
5161
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseCollectionWithParentStoreDirective, decorators: [{
|
|
5162
4851
|
type: Directive
|
|
5163
|
-
}], ctorParameters: () => [{ type: undefined }] });
|
|
4852
|
+
}], ctorParameters: () => [{ type: undefined }], propDecorators: { sourceMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceMode", required: false }] }, { type: i0.Output, args: ["sourceModeChange"] }] } });
|
|
5164
4853
|
function provideDbxFirebaseCollectionWithParentStoreDirective(sourceType, storeType) {
|
|
5165
4854
|
const providers = [
|
|
5166
4855
|
...provideDbxFirebaseCollectionStoreDirective(sourceType, storeType),
|
|
@@ -5176,10 +4865,10 @@ function provideDbxFirebaseCollectionWithParentStoreDirective(sourceType, storeT
|
|
|
5176
4865
|
* Directive that provides a DbxFirebaseDocumentStoreContextStore.
|
|
5177
4866
|
*/
|
|
5178
4867
|
class DbxFirebaseDocumentStoreContextStoreDirective {
|
|
5179
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5180
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4868
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4869
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseDocumentStoreContextStoreDirective, isStandalone: true, selector: "[dbxFirebaseDocumentStoreContextStore]", providers: provideDbxFirebaseDocumentStoreContextStore(), ngImport: i0 });
|
|
5181
4870
|
}
|
|
5182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseDocumentStoreContextStoreDirective, decorators: [{
|
|
5183
4872
|
type: Directive,
|
|
5184
4873
|
args: [{
|
|
5185
4874
|
selector: '[dbxFirebaseDocumentStoreContextStore]',
|
|
@@ -5189,41 +4878,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5189
4878
|
}] });
|
|
5190
4879
|
|
|
5191
4880
|
class SystemStateCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
5192
|
-
constructor(
|
|
5193
|
-
super({ firestoreCollection:
|
|
4881
|
+
constructor() {
|
|
4882
|
+
super({ firestoreCollection: inject(SystemStateFirestoreCollections).systemStateCollection });
|
|
5194
4883
|
}
|
|
5195
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5196
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4884
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemStateCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4885
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemStateCollectionStore });
|
|
5197
4886
|
}
|
|
5198
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemStateCollectionStore, decorators: [{
|
|
5199
4888
|
type: Injectable
|
|
5200
|
-
}], ctorParameters: () => [
|
|
4889
|
+
}], ctorParameters: () => [] });
|
|
5201
4890
|
|
|
5202
4891
|
class DbxFirebaseSystemStateCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
5203
|
-
constructor(
|
|
5204
|
-
super(
|
|
4892
|
+
constructor() {
|
|
4893
|
+
super(inject(SystemStateCollectionStore));
|
|
5205
4894
|
}
|
|
5206
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5207
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4895
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseSystemStateCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4896
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseSystemStateCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseSystemStateCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseSystemStateCollectionStoreDirective, SystemStateCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5208
4897
|
}
|
|
5209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4898
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseSystemStateCollectionStoreDirective, decorators: [{
|
|
5210
4899
|
type: Directive,
|
|
5211
4900
|
args: [{
|
|
5212
4901
|
selector: '[dbxFirebaseSystemStateCollection]',
|
|
5213
4902
|
providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseSystemStateCollectionStoreDirective, SystemStateCollectionStore)
|
|
5214
4903
|
}]
|
|
5215
|
-
}], ctorParameters: () => [
|
|
4904
|
+
}], ctorParameters: () => [] });
|
|
5216
4905
|
|
|
5217
4906
|
class SystemStateDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
5218
|
-
constructor(
|
|
5219
|
-
super({ firestoreCollection:
|
|
4907
|
+
constructor() {
|
|
4908
|
+
super({ firestoreCollection: inject(SystemStateFirestoreCollections).systemStateCollection });
|
|
5220
4909
|
}
|
|
5221
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5222
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4910
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemStateDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4911
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemStateDocumentStore });
|
|
5223
4912
|
}
|
|
5224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: SystemStateDocumentStore, decorators: [{
|
|
5225
4914
|
type: Injectable
|
|
5226
|
-
}], ctorParameters: () => [
|
|
4915
|
+
}], ctorParameters: () => [] });
|
|
5227
4916
|
|
|
5228
4917
|
/**
|
|
5229
4918
|
* Abstract class used for accessing a SystemStateDocumentStore's data.
|
|
@@ -5239,13 +4928,10 @@ class AbstractSystemStateDocumentStoreAccessor {
|
|
|
5239
4928
|
constructor(type) {
|
|
5240
4929
|
this.systemStateDocumentStore.setId(type);
|
|
5241
4930
|
}
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
}
|
|
5245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor, deps: [{ token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5246
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor });
|
|
4931
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor, deps: [{ token: null, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4932
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor });
|
|
5247
4933
|
}
|
|
5248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractSystemStateDocumentStoreAccessor, decorators: [{
|
|
5249
4935
|
type: Injectable
|
|
5250
4936
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
5251
4937
|
type: Inject,
|
|
@@ -5258,10 +4944,10 @@ class DbxFirebaseSystemStateDocumentStoreDirective extends DbxFirebaseDocumentSt
|
|
|
5258
4944
|
constructor() {
|
|
5259
4945
|
super(inject((SystemStateDocumentStore)));
|
|
5260
4946
|
}
|
|
5261
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5262
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4947
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseSystemStateDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4948
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseSystemStateDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseSystemStateDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseSystemStateDocumentStoreDirective, SystemStateDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5263
4949
|
}
|
|
5264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4950
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseSystemStateDocumentStoreDirective, decorators: [{
|
|
5265
4951
|
type: Directive,
|
|
5266
4952
|
args: [{
|
|
5267
4953
|
selector: '[dbxFirebaseSystemStateDocument]',
|
|
@@ -5270,14 +4956,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5270
4956
|
}], ctorParameters: () => [] });
|
|
5271
4957
|
|
|
5272
4958
|
class DbxFirebaseModelModule {
|
|
5273
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5274
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
5275
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4959
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4960
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelModule, exports: [DbxFirebaseModelStoreModule] });
|
|
4961
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelModule, imports: [DbxFirebaseModelStoreModule] });
|
|
5276
4962
|
}
|
|
5277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4963
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModelModule, decorators: [{
|
|
5278
4964
|
type: NgModule,
|
|
5279
4965
|
args: [{
|
|
5280
|
-
exports: [DbxFirebaseModelStoreModule
|
|
4966
|
+
exports: [DbxFirebaseModelStoreModule]
|
|
5281
4967
|
}]
|
|
5282
4968
|
}] });
|
|
5283
4969
|
|
|
@@ -5299,10 +4985,10 @@ class DbxFirebaseNotificationTemplateService {
|
|
|
5299
4985
|
date
|
|
5300
4986
|
};
|
|
5301
4987
|
}
|
|
5302
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5303
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationTemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4989
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationTemplateService });
|
|
5304
4990
|
}
|
|
5305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationTemplateService, decorators: [{
|
|
5306
4992
|
type: Injectable
|
|
5307
4993
|
}] });
|
|
5308
4994
|
|
|
@@ -5313,10 +4999,10 @@ class DbxFirebaseNotificationItemListComponent extends AbstractDbxSelectionListW
|
|
|
5313
4999
|
defaultSelectionMode: 'view'
|
|
5314
5000
|
});
|
|
5315
5001
|
}
|
|
5316
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5317
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5002
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5003
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationItemListComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-list", providers: provideDbxListViewWrapper(DbxFirebaseNotificationItemListComponent), usesInheritance: true, ngImport: i0, template: "\n <dbx-list [state]=\"currentState$\" [config]=\"configSignal()\" [hasMore]=\"hasMore()\" [disabled]=\"disabled()\" [selectionMode]=\"selectionModeSignal()\">\n <ng-content top select=\"[top]\"></ng-content>\n <ng-content bottom select=\"[bottom]\"></ng-content>\n <ng-content empty select=\"[empty]\"></ng-content>\n <ng-content emptyLoading select=\"[emptyLoading]\"></ng-content>\n <ng-content end select=\"[end]\"></ng-content>\n </dbx-list>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxListWrapperComponentImportsModule }, { kind: "component", type: i1$1.DbxListComponent, selector: "dbx-list", inputs: ["padded", "state", "config", "disabled", "selectionMode", "hasMore"], outputs: ["contentScrolled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5318
5004
|
}
|
|
5319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5005
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemListComponent, decorators: [{
|
|
5320
5006
|
type: Component,
|
|
5321
5007
|
args: [{
|
|
5322
5008
|
selector: 'dbx-firebase-notificationitem-list',
|
|
@@ -5332,10 +5018,10 @@ class DbxFirebaseNotificationItemListViewComponent extends AbstractDbxSelectionL
|
|
|
5332
5018
|
componentClass: DbxFirebaseNotificationItemListViewItemComponent,
|
|
5333
5019
|
mapValuesToItemValues: (x) => of(x.map((y) => ({ ...y, icon: y.icon, itemValue: y })))
|
|
5334
5020
|
};
|
|
5335
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5336
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5021
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemListViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5022
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationItemListViewComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-list-view", providers: provideDbxListView(DbxFirebaseNotificationItemListViewComponent), usesInheritance: true, ngImport: i0, template: "<dbx-selection-list-view [config]=\"config\"></dbx-selection-list-view>", isInline: true, dependencies: [{ kind: "ngmodule", type: DbxSelectionValueListViewComponentImportsModule }, { kind: "component", type: i1$1.DbxSelectionValueListViewComponent, selector: "dbx-selection-list-view" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5337
5023
|
}
|
|
5338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5024
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemListViewComponent, decorators: [{
|
|
5339
5025
|
type: Component,
|
|
5340
5026
|
args: [{
|
|
5341
5027
|
selector: 'dbx-firebase-notificationitem-list-view',
|
|
@@ -5358,8 +5044,8 @@ class DbxFirebaseNotificationItemListViewItemComponent extends AbstractDbxValueL
|
|
|
5358
5044
|
get date() {
|
|
5359
5045
|
return this.pairGetter().date;
|
|
5360
5046
|
}
|
|
5361
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5362
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5047
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemListViewItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5048
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationItemListViewItemComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `
|
|
5363
5049
|
<div class="dbx-list-item-padded dbx-list-two-line-item dbx-firebase-notificationitem-list-view-item">
|
|
5364
5050
|
<div class="item-left">
|
|
5365
5051
|
<span class="notificationitem-subject">{{ subject }}</span>
|
|
@@ -5369,7 +5055,7 @@ class DbxFirebaseNotificationItemListViewItemComponent extends AbstractDbxValueL
|
|
|
5369
5055
|
</div>
|
|
5370
5056
|
`, isInline: true, dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: CutTextPipe, name: "cutText" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5371
5057
|
}
|
|
5372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5058
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemListViewItemComponent, decorators: [{
|
|
5373
5059
|
type: Component,
|
|
5374
5060
|
args: [{
|
|
5375
5061
|
template: `
|
|
@@ -5388,16 +5074,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5388
5074
|
}] });
|
|
5389
5075
|
|
|
5390
5076
|
class DbxFirebaseNotificationItemContentComponent {
|
|
5391
|
-
subject = input();
|
|
5392
|
-
message = input();
|
|
5393
|
-
date = input();
|
|
5394
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5395
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
5077
|
+
subject = input(...(ngDevMode ? [undefined, { debugName: "subject" }] : []));
|
|
5078
|
+
message = input(...(ngDevMode ? [undefined, { debugName: "message" }] : []));
|
|
5079
|
+
date = input(...(ngDevMode ? [undefined, { debugName: "date" }] : []));
|
|
5080
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5081
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseNotificationItemContentComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-content", inputs: { subject: { classPropertyName: "subject", publicName: "subject", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"dbx-firebase-notificationitem-content\">\n <div class=\"notificationitem-header dbx-pb2\">\n @if (subject()) {\n <div class=\"notificationitem-subject dbx-pb1\">{{ subject() }}</div>\n }\n <ng-content select=\"[header]\"></ng-content>\n @if (date()) {\n <div class=\"notificationitem-date dbx-label dbx-small\">{{ date() | date: 'medium' }}</div>\n }\n </div>\n <ng-content select=\"[premessage]\"></ng-content>\n <div class=\"notificationitem-message\">{{ message() }}</div>\n <ng-content></ng-content>\n</div>\n", styles: [".dbx-firebase-notificationitem-content .notificationitem-subject{font-size:1.25em}\n"], dependencies: [{ kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5396
5082
|
}
|
|
5397
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemContentComponent, decorators: [{
|
|
5398
5084
|
type: Component,
|
|
5399
5085
|
args: [{ selector: 'dbx-firebase-notificationitem-content', imports: [DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<div class=\"dbx-firebase-notificationitem-content\">\n <div class=\"notificationitem-header dbx-pb2\">\n @if (subject()) {\n <div class=\"notificationitem-subject dbx-pb1\">{{ subject() }}</div>\n }\n <ng-content select=\"[header]\"></ng-content>\n @if (date()) {\n <div class=\"notificationitem-date dbx-label dbx-small\">{{ date() | date: 'medium' }}</div>\n }\n </div>\n <ng-content select=\"[premessage]\"></ng-content>\n <div class=\"notificationitem-message\">{{ message() }}</div>\n <ng-content></ng-content>\n</div>\n", styles: [".dbx-firebase-notificationitem-content .notificationitem-subject{font-size:1.25em}\n"] }]
|
|
5400
|
-
}] });
|
|
5086
|
+
}], propDecorators: { subject: [{ type: i0.Input, args: [{ isSignal: true, alias: "subject", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }] } });
|
|
5401
5087
|
|
|
5402
5088
|
/**
|
|
5403
5089
|
* Prefix used by all widgets.
|
|
@@ -5453,15 +5139,15 @@ class DbxFirebaseNotificationItemWidgetService {
|
|
|
5453
5139
|
type: DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE
|
|
5454
5140
|
}, override);
|
|
5455
5141
|
}
|
|
5456
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5457
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5142
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemWidgetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5143
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemWidgetService });
|
|
5458
5144
|
}
|
|
5459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemWidgetService, decorators: [{
|
|
5460
5146
|
type: Injectable
|
|
5461
5147
|
}] });
|
|
5462
5148
|
|
|
5463
5149
|
class DbxFirebaseNotificationItemViewComponent {
|
|
5464
|
-
item = input();
|
|
5150
|
+
item = input(...(ngDevMode ? [undefined, { debugName: "item" }] : []));
|
|
5465
5151
|
configSignal = computed(() => {
|
|
5466
5152
|
const data = this.item();
|
|
5467
5153
|
let config = undefined;
|
|
@@ -5474,13 +5160,13 @@ class DbxFirebaseNotificationItemViewComponent {
|
|
|
5474
5160
|
};
|
|
5475
5161
|
}
|
|
5476
5162
|
return config;
|
|
5477
|
-
});
|
|
5478
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5479
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
5163
|
+
}, ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
|
|
5164
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5165
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseNotificationItemViewComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-view", inputs: { item: { classPropertyName: "item", publicName: "item", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: `
|
|
5480
5166
|
<dbx-widget-view [config]="configSignal()"></dbx-widget-view>
|
|
5481
5167
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxWidgetViewComponent, selector: "dbx-widget-view", inputs: ["config"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5482
5168
|
}
|
|
5483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5169
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemViewComponent, decorators: [{
|
|
5484
5170
|
type: Component,
|
|
5485
5171
|
args: [{
|
|
5486
5172
|
selector: 'dbx-firebase-notificationitem-view',
|
|
@@ -5491,16 +5177,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5491
5177
|
imports: [DbxWidgetViewComponent],
|
|
5492
5178
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5493
5179
|
}]
|
|
5494
|
-
}] });
|
|
5180
|
+
}], propDecorators: { item: [{ type: i0.Input, args: [{ isSignal: true, alias: "item", required: false }] }] } });
|
|
5495
5181
|
|
|
5496
5182
|
class AbstractDbxFirebaseNotificationItemWidgetComponent extends AbstractDbxWidgetComponent {
|
|
5497
5183
|
get notificationItem() {
|
|
5498
5184
|
return this.data;
|
|
5499
5185
|
}
|
|
5500
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5501
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseNotificationItemWidgetComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
5187
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: AbstractDbxFirebaseNotificationItemWidgetComponent, isStandalone: true, usesInheritance: true, ngImport: i0 });
|
|
5502
5188
|
}
|
|
5503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: AbstractDbxFirebaseNotificationItemWidgetComponent, decorators: [{
|
|
5504
5190
|
type: Directive
|
|
5505
5191
|
}] });
|
|
5506
5192
|
|
|
@@ -5514,10 +5200,10 @@ class DbxFirebaseNotificationItemDefaultViewComponent extends AbstractDbxFirebas
|
|
|
5514
5200
|
get date() {
|
|
5515
5201
|
return this.notificationItem.cat;
|
|
5516
5202
|
}
|
|
5517
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5518
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemDefaultViewComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5204
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationItemDefaultViewComponent, isStandalone: true, selector: "dbx-firebase-notificationitem-view-default", usesInheritance: true, ngImport: i0, template: '<dbx-firebase-notificationitem-content [subject]="subject" [message]="message" [date]="date"></dbx-firebase-notificationitem-content>', isInline: true, dependencies: [{ kind: "component", type: DbxFirebaseNotificationItemContentComponent, selector: "dbx-firebase-notificationitem-content", inputs: ["subject", "message", "date"] }] });
|
|
5519
5205
|
}
|
|
5520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemDefaultViewComponent, decorators: [{
|
|
5521
5207
|
type: Component,
|
|
5522
5208
|
args: [{
|
|
5523
5209
|
selector: 'dbx-firebase-notificationitem-view-default',
|
|
@@ -5549,10 +5235,10 @@ class DbxFirebaseNotificationItemStorePopoverComponent extends AbstractPopoverDi
|
|
|
5549
5235
|
emptyText = this.params.header ?? 'There are no notifications.';
|
|
5550
5236
|
makeNotificationItemAnchor = this.params.makeNotificationItemAnchor;
|
|
5551
5237
|
notificationItemsLoadingState$ = this.params.notificationItemsLoadingState$;
|
|
5552
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5553
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
5238
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5239
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationItemStorePopoverComponent, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-notificationitem-list [state]=\"notificationItemsLoadingState$\" dbxListItemModifier [dbxListItemAnchorModifier]=\"makeNotificationItemAnchor\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-notificationitem-list>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n", dependencies: [{ kind: "ngmodule", type: DbxPopoverInteractionModule }, { kind: "component", type: i1$1.DbxPopoverContentComponent, selector: "dbx-popover-content" }, { kind: "component", type: i1$1.DbxPopoverHeaderComponent, selector: "dbx-popover-header", inputs: ["header", "icon"] }, { kind: "directive", type: i1$1.DbxPopoverScrollContentDirective, selector: "dbx-popover-scroll-content,[dbxPopoverScrollContent],.dbx-popover-scroll-content" }, { kind: "ngmodule", type: DbxListModifierModule }, { kind: "directive", type: i1$1.DbxValueListItemModifierDirective, selector: "dbxListItemModifier,[dbxListItemModifier]", inputs: ["dbxListItemModifier"] }, { kind: "component", type: DbxFirebaseNotificationItemListComponent, selector: "dbx-firebase-notificationitem-list" }, { kind: "component", type: DbxListEmptyContentComponent, selector: "dbx-list-empty-content" }, { kind: "directive", type: DbxListItemAnchorModifierDirective, selector: "[dbxListItemAnchorModifier]", inputs: ["dbxListItemAnchorModifier"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5554
5240
|
}
|
|
5555
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5241
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverComponent, decorators: [{
|
|
5556
5242
|
type: Component,
|
|
5557
5243
|
args: [{ imports: [DbxPopoverInteractionModule, DbxListModifierModule, DbxFirebaseNotificationItemListComponent, DbxListEmptyContentComponent, DbxListItemAnchorModifierDirective], changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, template: "<dbx-popover-content>\n <!-- Header -->\n <dbx-popover-header [icon]=\"icon\" [header]=\"header\"></dbx-popover-header>\n <!-- Content -->\n <dbx-popover-scroll-content>\n <dbx-firebase-notificationitem-list [state]=\"notificationItemsLoadingState$\" dbxListItemModifier [dbxListItemAnchorModifier]=\"makeNotificationItemAnchor\">\n <dbx-list-empty-content empty>\n <p>{{ emptyText }}</p>\n </dbx-list-empty-content>\n </dbx-firebase-notificationitem-list>\n </dbx-popover-scroll-content>\n</dbx-popover-content>\n" }]
|
|
5558
5244
|
}] });
|
|
@@ -5576,18 +5262,18 @@ class DbxFirebaseNotificationItemStore extends ComponentStore {
|
|
|
5576
5262
|
// MARK: State Changes
|
|
5577
5263
|
setItems = this.updater((state, items) => ({ ...state, items }));
|
|
5578
5264
|
setSelectedId = this.updater((state, selectedId) => ({ ...state, selectedId }));
|
|
5579
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5580
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5265
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5266
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStore });
|
|
5581
5267
|
}
|
|
5582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStore, decorators: [{
|
|
5583
5269
|
type: Injectable
|
|
5584
5270
|
}], ctorParameters: () => [] });
|
|
5585
5271
|
|
|
5586
5272
|
class DbxFirebaseNotificationItemStorePopoverButtonComponent extends AbstractPopoverRefDirective {
|
|
5587
5273
|
_dbxPopoverService = inject(DbxPopoverService);
|
|
5588
5274
|
_dbxFirebaseNotificationItemStore = inject(DbxFirebaseNotificationItemStore, { optional: true });
|
|
5589
|
-
buttonElement = viewChild('button', { read: ElementRef });
|
|
5590
|
-
config = input();
|
|
5275
|
+
buttonElement = viewChild('button', { ...(ngDevMode ? { debugName: "buttonElement" } : {}), read: ElementRef });
|
|
5276
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
5591
5277
|
showNotificationsPopover() {
|
|
5592
5278
|
const origin = this.buttonElement()?.nativeElement;
|
|
5593
5279
|
this.showPopover(origin);
|
|
@@ -5607,12 +5293,12 @@ class DbxFirebaseNotificationItemStorePopoverButtonComponent extends AbstractPop
|
|
|
5607
5293
|
...config
|
|
5608
5294
|
});
|
|
5609
5295
|
}
|
|
5610
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5611
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
5296
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverButtonComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
5297
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.0", type: DbxFirebaseNotificationItemStorePopoverButtonComponent, isStandalone: true, selector: "dbx-firebase-notification-item-store-popover-button", inputs: { config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "buttonElement", first: true, predicate: ["button"], descendants: true, read: ElementRef, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
5612
5298
|
<dbx-icon-button #button (buttonClick)="showNotificationsPopover()" icon="notifications"></dbx-icon-button>
|
|
5613
5299
|
`, isInline: true, dependencies: [{ kind: "component", type: DbxIconButtonComponent, selector: "dbx-icon-button" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5614
5300
|
}
|
|
5615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationItemStorePopoverButtonComponent, decorators: [{
|
|
5616
5302
|
type: Component,
|
|
5617
5303
|
args: [{
|
|
5618
5304
|
selector: 'dbx-firebase-notification-item-store-popover-button',
|
|
@@ -5623,7 +5309,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
5623
5309
|
imports: [DbxIconButtonComponent],
|
|
5624
5310
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
5625
5311
|
}]
|
|
5626
|
-
}] });
|
|
5312
|
+
}], propDecorators: { buttonElement: [{ type: i0.ViewChild, args: ['button', { ...{ read: ElementRef }, isSignal: true }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }] } });
|
|
5627
5313
|
|
|
5628
5314
|
class NotificationBoxDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
5629
5315
|
notificationFunctions = inject(NotificationFunctions);
|
|
@@ -5634,17 +5320,18 @@ class NotificationBoxDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
5634
5320
|
recipients$ = this.data$.pipe(map((x) => x.r), shareReplay(1));
|
|
5635
5321
|
updateNotificationBox = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationBox.updateNotificationBox.update);
|
|
5636
5322
|
updateNotificationBoxRecipient = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationBox.updateNotificationBox.recipient);
|
|
5637
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5638
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5323
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationBoxDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5324
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationBoxDocumentStore });
|
|
5639
5325
|
}
|
|
5640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5326
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationBoxDocumentStore, decorators: [{
|
|
5641
5327
|
type: Injectable
|
|
5642
5328
|
}], ctorParameters: () => [] });
|
|
5643
5329
|
|
|
5644
5330
|
class NotificationDocumentStore extends AbstractDbxFirebaseDocumentWithParentStore {
|
|
5645
5331
|
notificationFunctions = inject(NotificationFunctions);
|
|
5646
|
-
constructor(
|
|
5647
|
-
super({ collectionFactory:
|
|
5332
|
+
constructor() {
|
|
5333
|
+
super({ collectionFactory: inject(NotificationFirestoreCollections).notificationCollectionFactory, firestoreCollectionLike: inject(NotificationFirestoreCollections).notificationCollectionGroup });
|
|
5334
|
+
const parent = inject(NotificationBoxDocumentStore, { optional: true });
|
|
5648
5335
|
if (parent) {
|
|
5649
5336
|
this.setParentStore(parent);
|
|
5650
5337
|
}
|
|
@@ -5655,132 +5342,130 @@ class NotificationDocumentStore extends AbstractDbxFirebaseDocumentWithParentSto
|
|
|
5655
5342
|
sendAttemptsCount$ = this.data$.pipe(map((x) => x.a), distinctUntilChanged(), shareReplay(1));
|
|
5656
5343
|
isUnique$ = this.data$.pipe(map((x) => x.ut), distinctUntilChanged(), shareReplay(1));
|
|
5657
5344
|
sendNotification = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notification.updateNotification.send);
|
|
5658
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5659
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5345
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5346
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationDocumentStore });
|
|
5660
5347
|
}
|
|
5661
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5348
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationDocumentStore, decorators: [{
|
|
5662
5349
|
type: Injectable
|
|
5663
|
-
}], ctorParameters: () => [
|
|
5664
|
-
type: Optional
|
|
5665
|
-
}] }] });
|
|
5350
|
+
}], ctorParameters: () => [] });
|
|
5666
5351
|
|
|
5667
5352
|
class DbxFirebaseNotificationDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
5668
|
-
constructor(
|
|
5669
|
-
super(
|
|
5353
|
+
constructor() {
|
|
5354
|
+
super(inject(NotificationDocumentStore));
|
|
5670
5355
|
}
|
|
5671
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5672
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5356
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5357
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationDocumentStoreDirective, NotificationDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5673
5358
|
}
|
|
5674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5359
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationDocumentStoreDirective, decorators: [{
|
|
5675
5360
|
type: Directive,
|
|
5676
5361
|
args: [{
|
|
5677
5362
|
selector: '[dbxFirebaseNotificationDocument]',
|
|
5678
5363
|
providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationDocumentStoreDirective, NotificationDocumentStore),
|
|
5679
5364
|
standalone: true
|
|
5680
5365
|
}]
|
|
5681
|
-
}], ctorParameters: () => [
|
|
5366
|
+
}], ctorParameters: () => [] });
|
|
5682
5367
|
|
|
5683
5368
|
class NotificationCollectionStore extends AbstractDbxFirebaseCollectionWithParentStore {
|
|
5684
|
-
constructor(
|
|
5685
|
-
super({ collectionFactory:
|
|
5369
|
+
constructor(parent) {
|
|
5370
|
+
super({ collectionFactory: inject(NotificationFirestoreCollections).notificationCollectionFactory, collectionGroup: inject(NotificationFirestoreCollections).notificationCollectionGroup });
|
|
5686
5371
|
if (parent) {
|
|
5687
5372
|
this.setParentStore(parent);
|
|
5688
5373
|
}
|
|
5689
5374
|
}
|
|
5690
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5691
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationCollectionStore, deps: [{ token: NotificationBoxDocumentStore, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5376
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationCollectionStore });
|
|
5692
5377
|
}
|
|
5693
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationCollectionStore, decorators: [{
|
|
5694
5379
|
type: Injectable
|
|
5695
|
-
}], ctorParameters: () => [{ type:
|
|
5380
|
+
}], ctorParameters: () => [{ type: NotificationBoxDocumentStore, decorators: [{
|
|
5696
5381
|
type: Optional
|
|
5697
5382
|
}] }] });
|
|
5698
5383
|
|
|
5699
5384
|
class DbxFirebaseNotificationCollectionStoreDirective extends DbxFirebaseCollectionWithParentStoreDirective {
|
|
5700
|
-
constructor(
|
|
5701
|
-
super(
|
|
5385
|
+
constructor() {
|
|
5386
|
+
super(inject(NotificationCollectionStore));
|
|
5702
5387
|
}
|
|
5703
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5704
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5388
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5389
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationCollection]", providers: provideDbxFirebaseCollectionWithParentStoreDirective(DbxFirebaseNotificationCollectionStoreDirective, NotificationCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5705
5390
|
}
|
|
5706
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationCollectionStoreDirective, decorators: [{
|
|
5707
5392
|
type: Directive,
|
|
5708
5393
|
args: [{
|
|
5709
5394
|
selector: '[dbxFirebaseNotificationCollection]',
|
|
5710
5395
|
providers: provideDbxFirebaseCollectionWithParentStoreDirective(DbxFirebaseNotificationCollectionStoreDirective, NotificationCollectionStore),
|
|
5711
5396
|
standalone: true
|
|
5712
5397
|
}]
|
|
5713
|
-
}], ctorParameters: () => [
|
|
5398
|
+
}], ctorParameters: () => [] });
|
|
5714
5399
|
|
|
5715
5400
|
class DbxFirebaseNotificationBoxDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
5716
|
-
constructor(
|
|
5717
|
-
super(
|
|
5401
|
+
constructor() {
|
|
5402
|
+
super(inject(NotificationBoxDocumentStore));
|
|
5718
5403
|
}
|
|
5719
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5720
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5404
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationBoxDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5405
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationBoxDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationBoxDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationBoxDocumentStoreDirective, NotificationBoxDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5721
5406
|
}
|
|
5722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5407
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationBoxDocumentStoreDirective, decorators: [{
|
|
5723
5408
|
type: Directive,
|
|
5724
5409
|
args: [{
|
|
5725
5410
|
selector: '[dbxFirebaseNotificationBoxDocument]',
|
|
5726
5411
|
providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationBoxDocumentStoreDirective, NotificationBoxDocumentStore),
|
|
5727
5412
|
standalone: true
|
|
5728
5413
|
}]
|
|
5729
|
-
}], ctorParameters: () => [
|
|
5414
|
+
}], ctorParameters: () => [] });
|
|
5730
5415
|
|
|
5731
5416
|
class NotificationBoxCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
5732
|
-
constructor(
|
|
5733
|
-
super({ firestoreCollection:
|
|
5417
|
+
constructor() {
|
|
5418
|
+
super({ firestoreCollection: inject(NotificationFirestoreCollections).notificationBoxCollection });
|
|
5734
5419
|
}
|
|
5735
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5736
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5420
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationBoxCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5421
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationBoxCollectionStore });
|
|
5737
5422
|
}
|
|
5738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5423
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationBoxCollectionStore, decorators: [{
|
|
5739
5424
|
type: Injectable
|
|
5740
|
-
}], ctorParameters: () => [
|
|
5425
|
+
}], ctorParameters: () => [] });
|
|
5741
5426
|
|
|
5742
5427
|
class DbxFirebaseNotificationBoxCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
5743
|
-
constructor(
|
|
5744
|
-
super(
|
|
5428
|
+
constructor() {
|
|
5429
|
+
super(inject(NotificationBoxCollectionStore));
|
|
5745
5430
|
}
|
|
5746
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5747
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5431
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationBoxCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5432
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationBoxCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationBoxCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationBoxCollectionStoreDirective, NotificationBoxCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5748
5433
|
}
|
|
5749
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5434
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationBoxCollectionStoreDirective, decorators: [{
|
|
5750
5435
|
type: Directive,
|
|
5751
5436
|
args: [{
|
|
5752
5437
|
selector: '[dbxFirebaseNotificationBoxCollection]',
|
|
5753
5438
|
providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationBoxCollectionStoreDirective, NotificationBoxCollectionStore),
|
|
5754
5439
|
standalone: true
|
|
5755
5440
|
}]
|
|
5756
|
-
}], ctorParameters: () => [
|
|
5441
|
+
}], ctorParameters: () => [] });
|
|
5757
5442
|
|
|
5758
5443
|
class NotificationSummaryCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
5759
|
-
constructor(
|
|
5760
|
-
super({ firestoreCollection:
|
|
5444
|
+
constructor() {
|
|
5445
|
+
super({ firestoreCollection: inject(NotificationFirestoreCollections).notificationSummaryCollection });
|
|
5761
5446
|
}
|
|
5762
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5763
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5447
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationSummaryCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5448
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationSummaryCollectionStore });
|
|
5764
5449
|
}
|
|
5765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5450
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationSummaryCollectionStore, decorators: [{
|
|
5766
5451
|
type: Injectable
|
|
5767
|
-
}], ctorParameters: () => [
|
|
5452
|
+
}], ctorParameters: () => [] });
|
|
5768
5453
|
|
|
5769
5454
|
class DbxFirebaseNotificationSummaryCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
5770
|
-
constructor(
|
|
5771
|
-
super(
|
|
5455
|
+
constructor() {
|
|
5456
|
+
super(inject(NotificationSummaryCollectionStore));
|
|
5772
5457
|
}
|
|
5773
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5774
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5458
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationSummaryCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5459
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationSummaryCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationSummaryCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationSummaryCollectionStoreDirective, NotificationSummaryCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5775
5460
|
}
|
|
5776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationSummaryCollectionStoreDirective, decorators: [{
|
|
5777
5462
|
type: Directive,
|
|
5778
5463
|
args: [{
|
|
5779
5464
|
selector: '[dbxFirebaseNotificationSummaryCollection]',
|
|
5780
5465
|
providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationSummaryCollectionStoreDirective, NotificationSummaryCollectionStore),
|
|
5781
5466
|
standalone: true
|
|
5782
5467
|
}]
|
|
5783
|
-
}], ctorParameters: () => [
|
|
5468
|
+
}], ctorParameters: () => [] });
|
|
5784
5469
|
|
|
5785
5470
|
class NotificationSummaryDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
5786
5471
|
notificationFunctions = inject(NotificationFunctions);
|
|
@@ -5802,55 +5487,55 @@ class NotificationSummaryDocumentStore extends AbstractDbxFirebaseDocumentStore
|
|
|
5802
5487
|
return combineLatest([asObservable(checkLastReadIfCreatedBeforeObs), this.notificationItems$]).pipe(map(([c, items]) => unreadNotificationItems(items, c)));
|
|
5803
5488
|
}
|
|
5804
5489
|
updateNotificationSummary = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationSummary.updateNotificationSummary.update);
|
|
5805
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5806
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5490
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationSummaryDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5491
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationSummaryDocumentStore });
|
|
5807
5492
|
}
|
|
5808
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationSummaryDocumentStore, decorators: [{
|
|
5809
5494
|
type: Injectable
|
|
5810
5495
|
}], ctorParameters: () => [] });
|
|
5811
5496
|
|
|
5812
5497
|
class DbxFirebaseNotificationSummaryDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
5813
|
-
constructor(
|
|
5814
|
-
super(
|
|
5498
|
+
constructor() {
|
|
5499
|
+
super(inject(NotificationSummaryDocumentStore));
|
|
5815
5500
|
}
|
|
5816
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5817
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5501
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationSummaryDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5502
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationSummaryDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationSummaryDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationSummaryDocumentStoreDirective, NotificationSummaryDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5818
5503
|
}
|
|
5819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationSummaryDocumentStoreDirective, decorators: [{
|
|
5820
5505
|
type: Directive,
|
|
5821
5506
|
args: [{
|
|
5822
5507
|
selector: '[dbxFirebaseNotificationSummaryDocument]',
|
|
5823
5508
|
providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationSummaryDocumentStoreDirective, NotificationSummaryDocumentStore),
|
|
5824
5509
|
standalone: true
|
|
5825
5510
|
}]
|
|
5826
|
-
}], ctorParameters: () => [
|
|
5511
|
+
}], ctorParameters: () => [] });
|
|
5827
5512
|
|
|
5828
5513
|
class NotificationUserCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
5829
|
-
constructor(
|
|
5830
|
-
super({ firestoreCollection:
|
|
5514
|
+
constructor() {
|
|
5515
|
+
super({ firestoreCollection: inject(NotificationFirestoreCollections).notificationUserCollection });
|
|
5831
5516
|
}
|
|
5832
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5833
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationUserCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5518
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationUserCollectionStore });
|
|
5834
5519
|
}
|
|
5835
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationUserCollectionStore, decorators: [{
|
|
5836
5521
|
type: Injectable
|
|
5837
|
-
}], ctorParameters: () => [
|
|
5522
|
+
}], ctorParameters: () => [] });
|
|
5838
5523
|
|
|
5839
5524
|
class DbxFirebaseNotificationUserCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
5840
|
-
constructor(
|
|
5841
|
-
super(
|
|
5525
|
+
constructor() {
|
|
5526
|
+
super(inject(NotificationUserCollectionStore));
|
|
5842
5527
|
}
|
|
5843
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5844
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5528
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationUserCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5529
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationUserCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationUserCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationUserCollectionStoreDirective, NotificationUserCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
5845
5530
|
}
|
|
5846
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationUserCollectionStoreDirective, decorators: [{
|
|
5847
5532
|
type: Directive,
|
|
5848
5533
|
args: [{
|
|
5849
5534
|
selector: '[dbxFirebaseNotificationUserCollection]',
|
|
5850
5535
|
providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseNotificationUserCollectionStoreDirective, NotificationUserCollectionStore),
|
|
5851
5536
|
standalone: true
|
|
5852
5537
|
}]
|
|
5853
|
-
}], ctorParameters: () => [
|
|
5538
|
+
}], ctorParameters: () => [] });
|
|
5854
5539
|
|
|
5855
5540
|
class NotificationUserDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
5856
5541
|
notificationFunctions = inject(NotificationFunctions);
|
|
@@ -5859,121 +5544,28 @@ class NotificationUserDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
5859
5544
|
}
|
|
5860
5545
|
updateNotificationUser = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationUser.updateNotificationUser.update);
|
|
5861
5546
|
resyncNotificationUser = firebaseDocumentStoreUpdateFunction(this, this.notificationFunctions.notificationUser.updateNotificationUser.resync);
|
|
5862
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5863
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5547
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationUserDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5548
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationUserDocumentStore });
|
|
5864
5549
|
}
|
|
5865
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5550
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: NotificationUserDocumentStore, decorators: [{
|
|
5866
5551
|
type: Injectable
|
|
5867
5552
|
}], ctorParameters: () => [] });
|
|
5868
5553
|
|
|
5869
5554
|
class DbxFirebaseNotificationUserDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
5870
|
-
constructor(
|
|
5871
|
-
super(
|
|
5555
|
+
constructor() {
|
|
5556
|
+
super(inject(NotificationUserDocumentStore));
|
|
5872
5557
|
}
|
|
5873
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5874
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5558
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationUserDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
5559
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseNotificationUserDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseNotificationUserDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationUserDocumentStoreDirective, NotificationUserDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
5875
5560
|
}
|
|
5876
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5561
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseNotificationUserDocumentStoreDirective, decorators: [{
|
|
5877
5562
|
type: Directive,
|
|
5878
5563
|
args: [{
|
|
5879
5564
|
selector: '[dbxFirebaseNotificationUserDocument]',
|
|
5880
5565
|
providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseNotificationUserDocumentStoreDirective, NotificationUserDocumentStore),
|
|
5881
5566
|
standalone: true
|
|
5882
5567
|
}]
|
|
5883
|
-
}], ctorParameters: () => [
|
|
5884
|
-
|
|
5885
|
-
const importsAndExports$2 = [
|
|
5886
|
-
// components
|
|
5887
|
-
DbxFirebaseNotificationItemListComponent,
|
|
5888
|
-
DbxFirebaseNotificationItemListViewComponent,
|
|
5889
|
-
DbxFirebaseNotificationItemListViewItemComponent,
|
|
5890
|
-
DbxFirebaseNotificationItemContentComponent,
|
|
5891
|
-
DbxFirebaseNotificationItemViewComponent,
|
|
5892
|
-
DbxFirebaseNotificationItemDefaultViewComponent,
|
|
5893
|
-
// container
|
|
5894
|
-
DbxFirebaseNotificationItemStorePopoverButtonComponent,
|
|
5895
|
-
DbxFirebaseNotificationItemStorePopoverComponent,
|
|
5896
|
-
// stores
|
|
5897
|
-
DbxFirebaseNotificationBoxCollectionStoreDirective,
|
|
5898
|
-
DbxFirebaseNotificationBoxDocumentStoreDirective,
|
|
5899
|
-
DbxFirebaseNotificationSummaryCollectionStoreDirective,
|
|
5900
|
-
DbxFirebaseNotificationSummaryDocumentStoreDirective,
|
|
5901
|
-
DbxFirebaseNotificationUserCollectionStoreDirective,
|
|
5902
|
-
DbxFirebaseNotificationUserDocumentStoreDirective
|
|
5903
|
-
];
|
|
5904
|
-
/**
|
|
5905
|
-
* Used to initialize the DbxFirebaseNotificationModule.
|
|
5906
|
-
*
|
|
5907
|
-
* @deprecated import independent components instead
|
|
5908
|
-
*
|
|
5909
|
-
* @see DbxFirebaseNotificationItemListComponent
|
|
5910
|
-
* @see DbxFirebaseNotificationItemListViewComponent
|
|
5911
|
-
* @see DbxFirebaseNotificationItemListViewItemComponent
|
|
5912
|
-
* @see DbxFirebaseNotificationItemContentComponent
|
|
5913
|
-
* @see DbxFirebaseNotificationItemViewComponent
|
|
5914
|
-
* @see DbxFirebaseNotificationItemDefaultViewComponent
|
|
5915
|
-
* @see DbxFirebaseNotificationItemStorePopoverButtonComponent
|
|
5916
|
-
* @see DbxFirebaseNotificationItemStorePopoverComponent
|
|
5917
|
-
* @see DbxFirebaseNotificationBoxCollectionStoreDirective
|
|
5918
|
-
* @see DbxFirebaseNotificationBoxDocumentStoreDirective
|
|
5919
|
-
* @see DbxFirebaseNotificationSummaryCollectionStoreDirective
|
|
5920
|
-
* @see DbxFirebaseNotificationSummaryDocumentStoreDirective
|
|
5921
|
-
* @see DbxFirebaseNotificationUserCollectionStoreDirective
|
|
5922
|
-
* @see DbxFirebaseNotificationUserDocumentStoreDirective
|
|
5923
|
-
*/
|
|
5924
|
-
class DbxFirebaseNotificationModule {
|
|
5925
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseNotificationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5926
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseNotificationModule, imports: [
|
|
5927
|
-
// components
|
|
5928
|
-
DbxFirebaseNotificationItemListComponent,
|
|
5929
|
-
DbxFirebaseNotificationItemListViewComponent,
|
|
5930
|
-
DbxFirebaseNotificationItemListViewItemComponent,
|
|
5931
|
-
DbxFirebaseNotificationItemContentComponent,
|
|
5932
|
-
DbxFirebaseNotificationItemViewComponent,
|
|
5933
|
-
DbxFirebaseNotificationItemDefaultViewComponent,
|
|
5934
|
-
// container
|
|
5935
|
-
DbxFirebaseNotificationItemStorePopoverButtonComponent,
|
|
5936
|
-
DbxFirebaseNotificationItemStorePopoverComponent,
|
|
5937
|
-
// stores
|
|
5938
|
-
DbxFirebaseNotificationBoxCollectionStoreDirective,
|
|
5939
|
-
DbxFirebaseNotificationBoxDocumentStoreDirective,
|
|
5940
|
-
DbxFirebaseNotificationSummaryCollectionStoreDirective,
|
|
5941
|
-
DbxFirebaseNotificationSummaryDocumentStoreDirective,
|
|
5942
|
-
DbxFirebaseNotificationUserCollectionStoreDirective,
|
|
5943
|
-
DbxFirebaseNotificationUserDocumentStoreDirective], exports: [
|
|
5944
|
-
// components
|
|
5945
|
-
DbxFirebaseNotificationItemListComponent,
|
|
5946
|
-
DbxFirebaseNotificationItemListViewComponent,
|
|
5947
|
-
DbxFirebaseNotificationItemListViewItemComponent,
|
|
5948
|
-
DbxFirebaseNotificationItemContentComponent,
|
|
5949
|
-
DbxFirebaseNotificationItemViewComponent,
|
|
5950
|
-
DbxFirebaseNotificationItemDefaultViewComponent,
|
|
5951
|
-
// container
|
|
5952
|
-
DbxFirebaseNotificationItemStorePopoverButtonComponent,
|
|
5953
|
-
DbxFirebaseNotificationItemStorePopoverComponent,
|
|
5954
|
-
// stores
|
|
5955
|
-
DbxFirebaseNotificationBoxCollectionStoreDirective,
|
|
5956
|
-
DbxFirebaseNotificationBoxDocumentStoreDirective,
|
|
5957
|
-
DbxFirebaseNotificationSummaryCollectionStoreDirective,
|
|
5958
|
-
DbxFirebaseNotificationSummaryDocumentStoreDirective,
|
|
5959
|
-
DbxFirebaseNotificationUserCollectionStoreDirective,
|
|
5960
|
-
DbxFirebaseNotificationUserDocumentStoreDirective] });
|
|
5961
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseNotificationModule, imports: [
|
|
5962
|
-
// components
|
|
5963
|
-
DbxFirebaseNotificationItemListComponent,
|
|
5964
|
-
DbxFirebaseNotificationItemListViewComponent,
|
|
5965
|
-
DbxFirebaseNotificationItemViewComponent,
|
|
5966
|
-
// container
|
|
5967
|
-
DbxFirebaseNotificationItemStorePopoverButtonComponent,
|
|
5968
|
-
DbxFirebaseNotificationItemStorePopoverComponent] });
|
|
5969
|
-
}
|
|
5970
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseNotificationModule, decorators: [{
|
|
5971
|
-
type: NgModule,
|
|
5972
|
-
args: [{
|
|
5973
|
-
imports: importsAndExports$2,
|
|
5974
|
-
exports: importsAndExports$2
|
|
5975
|
-
}]
|
|
5976
|
-
}] });
|
|
5568
|
+
}], ctorParameters: () => [] });
|
|
5977
5569
|
|
|
5978
5570
|
/**
|
|
5979
5571
|
* Creates EnvironmentProviders that provides a DbxFirebaseNotificationTemplateService, DbxFirebaseNotificationItemWidgetService and AppNotificationTemplateTypeInfoRecordService.
|
|
@@ -5997,22 +5589,16 @@ function provideDbxFirebaseNotifications(config) {
|
|
|
5997
5589
|
useClass: DbxFirebaseNotificationTemplateService
|
|
5998
5590
|
},
|
|
5999
5591
|
// service initialization
|
|
6000
|
-
{
|
|
6001
|
-
|
|
6002
|
-
|
|
6003
|
-
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
}
|
|
6011
|
-
};
|
|
6012
|
-
},
|
|
6013
|
-
deps: [DbxFirebaseNotificationItemWidgetService],
|
|
6014
|
-
multi: true
|
|
6015
|
-
}
|
|
5592
|
+
provideAppInitializer(() => {
|
|
5593
|
+
const dbxFirebaseNotificationItemWidgetService = inject(DbxFirebaseNotificationItemWidgetService);
|
|
5594
|
+
// register the default widget
|
|
5595
|
+
if (config.defaultNotificationItemWidget !== false) {
|
|
5596
|
+
const widget = config.defaultNotificationItemWidget ?? DbxFirebaseNotificationItemDefaultViewComponent;
|
|
5597
|
+
dbxFirebaseNotificationItemWidgetService.registerDefaultWidget({
|
|
5598
|
+
componentClass: widget
|
|
5599
|
+
});
|
|
5600
|
+
}
|
|
5601
|
+
})
|
|
6016
5602
|
];
|
|
6017
5603
|
return makeEnvironmentProviders(providers);
|
|
6018
5604
|
}
|
|
@@ -6095,10 +5681,10 @@ class DbxFirebaseStorageFileDownloadStorage {
|
|
|
6095
5681
|
const storageKey = `sf_dl_cache_${uid}`;
|
|
6096
5682
|
return storageKey;
|
|
6097
5683
|
}
|
|
6098
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6099
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5684
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5685
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadStorage });
|
|
6100
5686
|
}
|
|
6101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadStorage, decorators: [{
|
|
6102
5688
|
type: Injectable
|
|
6103
5689
|
}] });
|
|
6104
5690
|
|
|
@@ -6246,10 +5832,10 @@ class DbxFirebaseStorageFileDownloadService {
|
|
|
6246
5832
|
};
|
|
6247
5833
|
});
|
|
6248
5834
|
}
|
|
6249
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6250
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5835
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5836
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadService });
|
|
6251
5837
|
}
|
|
6252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5838
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadService, decorators: [{
|
|
6253
5839
|
type: Injectable
|
|
6254
5840
|
}] });
|
|
6255
5841
|
|
|
@@ -6260,31 +5846,31 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6260
5846
|
/**
|
|
6261
5847
|
* The StorageFileKey to set up the download button for.
|
|
6262
5848
|
*/
|
|
6263
|
-
storageFileKey = input();
|
|
5849
|
+
storageFileKey = input(...(ngDevMode ? [undefined, { debugName: "storageFileKey" }] : []));
|
|
6264
5850
|
/**
|
|
6265
5851
|
* The download URL to use for the download button.
|
|
6266
5852
|
*/
|
|
6267
|
-
storageFileDownloadUrl = input();
|
|
5853
|
+
storageFileDownloadUrl = input(...(ngDevMode ? [undefined, { debugName: "storageFileDownloadUrl" }] : []));
|
|
6268
5854
|
/**
|
|
6269
5855
|
* The MIME type to use the embed component.
|
|
6270
5856
|
*/
|
|
6271
|
-
embedMimeType = input();
|
|
5857
|
+
embedMimeType = input(...(ngDevMode ? [undefined, { debugName: "embedMimeType" }] : []));
|
|
6272
5858
|
/**
|
|
6273
5859
|
* Whether or not to show a preview button.
|
|
6274
5860
|
*
|
|
6275
5861
|
* Defaults to true.
|
|
6276
5862
|
*/
|
|
6277
|
-
showPreviewButton = input(true);
|
|
5863
|
+
showPreviewButton = input(true, ...(ngDevMode ? [{ debugName: "showPreviewButton" }] : []));
|
|
6278
5864
|
/**
|
|
6279
5865
|
* Whether or not to pre-load the download URL from the source.
|
|
6280
5866
|
*/
|
|
6281
|
-
preload = input(undefined);
|
|
5867
|
+
preload = input(undefined, ...(ngDevMode ? [{ debugName: "preload" }] : []));
|
|
6282
5868
|
/**
|
|
6283
5869
|
* Output event emitted when the download details change.
|
|
6284
5870
|
*/
|
|
6285
5871
|
downloadDetailsChange = output();
|
|
6286
|
-
config = input();
|
|
6287
|
-
source = input();
|
|
5872
|
+
config = input(...(ngDevMode ? [undefined, { debugName: "config" }] : []));
|
|
5873
|
+
source = input(...(ngDevMode ? [undefined, { debugName: "source" }] : []));
|
|
6288
5874
|
source$ = toObservable(this.source);
|
|
6289
5875
|
configSignal = computed(() => {
|
|
6290
5876
|
const config = this.config();
|
|
@@ -6299,23 +5885,23 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6299
5885
|
previewText: config?.previewText ?? 'View File'
|
|
6300
5886
|
};
|
|
6301
5887
|
return result;
|
|
6302
|
-
});
|
|
5888
|
+
}, ...(ngDevMode ? [{ debugName: "configSignal" }] : []));
|
|
6303
5889
|
preloadSignal = computed(() => {
|
|
6304
5890
|
const preload = this.preload();
|
|
6305
5891
|
const source = this.source();
|
|
6306
5892
|
const config = this.configSignal();
|
|
6307
5893
|
return preload ?? source?.preload ?? config.preload ?? false;
|
|
6308
|
-
});
|
|
6309
|
-
downloadUrlSignal = signal(undefined);
|
|
6310
|
-
downloadMimeTypeSignal = signal(undefined);
|
|
6311
|
-
downloadUrlExpiresAtSignal = signal(undefined);
|
|
5894
|
+
}, ...(ngDevMode ? [{ debugName: "preloadSignal" }] : []));
|
|
5895
|
+
downloadUrlSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadUrlSignal" }] : []));
|
|
5896
|
+
downloadMimeTypeSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadMimeTypeSignal" }] : []));
|
|
5897
|
+
downloadUrlExpiresAtSignal = signal(undefined, ...(ngDevMode ? [{ debugName: "downloadUrlExpiresAtSignal" }] : []));
|
|
6312
5898
|
storageFileKeyFromInput$ = toObservable(this.storageFileKey).pipe(distinctUntilChanged(), shareReplay(1));
|
|
6313
5899
|
storageFileKeyFromSource$ = this.source$.pipe(map((source) => source?.storageFileKey), maybeValueFromObservableOrValue(), distinctUntilChanged(), shareReplay(1));
|
|
6314
5900
|
storageFileKey$ = combineLatest([this.storageFileKeyFromInput$, this.storageFileKeyFromSource$]).pipe(map(([storageFileKeyFromInput, storageFileKeyFromSource]) => {
|
|
6315
5901
|
return storageFileKeyFromInput ?? storageFileKeyFromSource;
|
|
6316
5902
|
}), distinctUntilChanged(), shareReplay(1));
|
|
6317
5903
|
storageFileKeySignal = toSignal(this.storageFileKey$);
|
|
6318
|
-
hasDownloadUrlSignal = computed(() => Boolean(this.downloadUrlSignal()));
|
|
5904
|
+
hasDownloadUrlSignal = computed(() => Boolean(this.downloadUrlSignal()), ...(ngDevMode ? [{ debugName: "hasDownloadUrlSignal" }] : []));
|
|
6319
5905
|
buttonStyleSignal = computed(() => {
|
|
6320
5906
|
const config = this.configSignal();
|
|
6321
5907
|
const result = {
|
|
@@ -6323,7 +5909,7 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6323
5909
|
...config.buttonStyle
|
|
6324
5910
|
};
|
|
6325
5911
|
return result;
|
|
6326
|
-
});
|
|
5912
|
+
}, ...(ngDevMode ? [{ debugName: "buttonStyleSignal" }] : []));
|
|
6327
5913
|
previewButtonStyleSignal = computed(() => {
|
|
6328
5914
|
const config = this.configSignal();
|
|
6329
5915
|
const result = {
|
|
@@ -6331,25 +5917,25 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6331
5917
|
...config.previewButtonStyle
|
|
6332
5918
|
};
|
|
6333
5919
|
return result;
|
|
6334
|
-
});
|
|
5920
|
+
}, ...(ngDevMode ? [{ debugName: "previewButtonStyleSignal" }] : []));
|
|
6335
5921
|
iconSignal = computed(() => {
|
|
6336
5922
|
const config = this.configSignal();
|
|
6337
5923
|
const hasDownloadUrl = this.hasDownloadUrlSignal();
|
|
6338
5924
|
return hasDownloadUrl ? (config.downloadReadyIcon ?? config.icon) : config.icon;
|
|
6339
|
-
});
|
|
5925
|
+
}, ...(ngDevMode ? [{ debugName: "iconSignal" }] : []));
|
|
6340
5926
|
textSignal = computed(() => {
|
|
6341
5927
|
const config = this.configSignal();
|
|
6342
5928
|
const hasDownloadUrl = this.hasDownloadUrlSignal();
|
|
6343
5929
|
return hasDownloadUrl ? (config.downloadReadyText ?? config.text) : config.text;
|
|
6344
|
-
});
|
|
5930
|
+
}, ...(ngDevMode ? [{ debugName: "textSignal" }] : []));
|
|
6345
5931
|
previewIconSignal = computed(() => {
|
|
6346
5932
|
const config = this.configSignal();
|
|
6347
5933
|
return config.previewIcon;
|
|
6348
|
-
});
|
|
5934
|
+
}, ...(ngDevMode ? [{ debugName: "previewIconSignal" }] : []));
|
|
6349
5935
|
previewTextSignal = computed(() => {
|
|
6350
5936
|
const config = this.configSignal();
|
|
6351
5937
|
return config.previewText;
|
|
6352
|
-
});
|
|
5938
|
+
}, ...(ngDevMode ? [{ debugName: "previewTextSignal" }] : []));
|
|
6353
5939
|
anchorSignal = computed(() => {
|
|
6354
5940
|
const downloadUrl = this.downloadUrlSignal();
|
|
6355
5941
|
let result;
|
|
@@ -6359,25 +5945,23 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6359
5945
|
};
|
|
6360
5946
|
}
|
|
6361
5947
|
return result;
|
|
6362
|
-
});
|
|
5948
|
+
}, ...(ngDevMode ? [{ debugName: "anchorSignal" }] : []));
|
|
6363
5949
|
storageFileDownloadUrlEffect = effect(() => {
|
|
6364
5950
|
const downloadUrl = this.storageFileDownloadUrl();
|
|
6365
5951
|
if (downloadUrl || downloadUrl === null) {
|
|
6366
5952
|
this.downloadUrlSignal.set(downloadUrl);
|
|
6367
5953
|
}
|
|
6368
|
-
}, {
|
|
6369
|
-
allowSignalWrites: true
|
|
6370
|
-
});
|
|
5954
|
+
}, { ...(ngDevMode ? { debugName: "storageFileDownloadUrlEffect" } : {}), allowSignalWrites: true });
|
|
6371
5955
|
// Preview
|
|
6372
5956
|
showPreviewButtonSignal = computed(() => {
|
|
6373
5957
|
const config = this.configSignal();
|
|
6374
5958
|
const hasDownloadUrl = this.hasDownloadUrlSignal();
|
|
6375
5959
|
return hasDownloadUrl && (config.showPreviewButton ?? true);
|
|
6376
|
-
});
|
|
5960
|
+
}, ...(ngDevMode ? [{ debugName: "showPreviewButtonSignal" }] : []));
|
|
6377
5961
|
openCustomPreviewSignal = computed(() => {
|
|
6378
5962
|
const config = this.configSignal();
|
|
6379
5963
|
return config.openCustomPreview;
|
|
6380
|
-
});
|
|
5964
|
+
}, ...(ngDevMode ? [{ debugName: "openCustomPreviewSignal" }] : []));
|
|
6381
5965
|
handleOpenPreviewDialog = () => {
|
|
6382
5966
|
const openPreview = this.openCustomPreviewSignal();
|
|
6383
5967
|
const srcUrl = this.downloadUrlSignal();
|
|
@@ -6401,9 +5985,7 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6401
5985
|
this.downloadMimeTypeSignal.set(cachedPair.mimeType);
|
|
6402
5986
|
this.downloadUrlExpiresAtSignal.set(cachedPair.expiresAt);
|
|
6403
5987
|
}
|
|
6404
|
-
}, {
|
|
6405
|
-
allowSignalWrites: true
|
|
6406
|
-
});
|
|
5988
|
+
}, { ...(ngDevMode ? { debugName: "cachedUrlEffect" } : {}), allowSignalWrites: true });
|
|
6407
5989
|
// Expiration Effect
|
|
6408
5990
|
downloadUrlExpiresAtDate$ = toObservable(this.downloadUrlExpiresAtSignal).pipe(map(dateFromDateOrTimeSecondsNumber), distinctUntilChanged(isSameDate), shareReplay(1));
|
|
6409
5991
|
downloadUrlExpiresAtDateSignal = toSignal(this.downloadUrlExpiresAtDate$);
|
|
@@ -6425,9 +6007,7 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6425
6007
|
this.downloadMimeTypeSignal.set(undefined);
|
|
6426
6008
|
this.downloadUrlExpiresAtSignal.set(undefined);
|
|
6427
6009
|
}
|
|
6428
|
-
}, {
|
|
6429
|
-
allowSignalWrites: true
|
|
6430
|
-
});
|
|
6010
|
+
}, { ...(ngDevMode ? { debugName: "downloadUrlHasExpiredEffect" } : {}), allowSignalWrites: true });
|
|
6431
6011
|
// Output Effect
|
|
6432
6012
|
downloadDetailsSignal = computed(() => {
|
|
6433
6013
|
const downloadUrl = this.downloadUrlSignal();
|
|
@@ -6441,20 +6021,18 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6441
6021
|
}
|
|
6442
6022
|
: undefined;
|
|
6443
6023
|
return details;
|
|
6444
|
-
});
|
|
6024
|
+
}, ...(ngDevMode ? [{ debugName: "downloadDetailsSignal" }] : []));
|
|
6445
6025
|
downloadDetailsChangedEffect = effect(() => {
|
|
6446
6026
|
const details = this.downloadDetailsSignal();
|
|
6447
6027
|
this.downloadDetailsChange.emit(details);
|
|
6448
|
-
});
|
|
6028
|
+
}, ...(ngDevMode ? [{ debugName: "downloadDetailsChangedEffect" }] : []));
|
|
6449
6029
|
sourceDownloadDetailsChangeCallbackEffect = effect(() => {
|
|
6450
6030
|
const details = this.downloadDetailsSignal();
|
|
6451
6031
|
const source = this.source();
|
|
6452
6032
|
if (source?.downloadDetailsChangeCallback) {
|
|
6453
6033
|
source.downloadDetailsChangeCallback(details);
|
|
6454
6034
|
}
|
|
6455
|
-
}, {
|
|
6456
|
-
allowSignalWrites: true
|
|
6457
|
-
});
|
|
6035
|
+
}, { ...(ngDevMode ? { debugName: "sourceDownloadDetailsChangeCallbackEffect" } : {}), allowSignalWrites: true });
|
|
6458
6036
|
// Handlers
|
|
6459
6037
|
handleGetDownloadUrl = (value, context) => {
|
|
6460
6038
|
const source = this.source();
|
|
@@ -6486,8 +6064,8 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6486
6064
|
handleGetDownloadUrlError(error);
|
|
6487
6065
|
}
|
|
6488
6066
|
};
|
|
6489
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6490
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
6067
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
6068
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.0", type: DbxFirebaseStorageFileDownloadButtonComponent, isStandalone: true, selector: "dbx-firebase-storagefile-download-button", inputs: { storageFileKey: { classPropertyName: "storageFileKey", publicName: "storageFileKey", isSignal: true, isRequired: false, transformFunction: null }, storageFileDownloadUrl: { classPropertyName: "storageFileDownloadUrl", publicName: "storageFileDownloadUrl", isSignal: true, isRequired: false, transformFunction: null }, embedMimeType: { classPropertyName: "embedMimeType", publicName: "embedMimeType", isSignal: true, isRequired: false, transformFunction: null }, showPreviewButton: { classPropertyName: "showPreviewButton", publicName: "showPreviewButton", isSignal: true, isRequired: false, transformFunction: null }, preload: { classPropertyName: "preload", publicName: "preload", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { downloadDetailsChange: "downloadDetailsChange" }, ngImport: i0, template: `
|
|
6491
6069
|
<dbx-anchor dbxActionAnchor [anchor]="anchorSignal()" dbxAction [dbxActionAutoTrigger]="preloadSignal()" dbxActionSnackbarError [dbxActionDisabled]="!storageFileKeySignal()" [dbxActionValue]="storageFileKeySignal()" [dbxActionHandler]="handleGetDownloadUrl" [dbxActionSuccessHandler]="handleGetDownloadUrlSuccess" [dbxActionErrorHandler]="handleGetDownloadUrlError">
|
|
6492
6070
|
<dbx-button dbxActionButton [buttonStyle]="buttonStyleSignal()" [icon]="iconSignal()" [text]="textSignal()"></dbx-button>
|
|
6493
6071
|
</dbx-anchor>
|
|
@@ -6497,9 +6075,9 @@ class DbxFirebaseStorageFileDownloadButtonComponent {
|
|
|
6497
6075
|
<dbx-button dbxActionButton [buttonStyle]="previewButtonStyleSignal()" [icon]="previewIconSignal()" [text]="previewTextSignal()"></dbx-button>
|
|
6498
6076
|
</ng-container>
|
|
6499
6077
|
}
|
|
6500
|
-
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]
|
|
6078
|
+
`, isInline: true, dependencies: [{ kind: "component", type: DbxButtonComponent, selector: "dbx-button", inputs: ["bar", "type", "buttonStyle", "color", "spinnerColor", "customButtonColor", "customTextColor", "customSpinnerColor", "basic", "tonal", "raised", "stroked", "flat", "iconOnly", "fab", "mode"] }, { kind: "ngmodule", type: DbxActionModule }, { kind: "directive", type: i2.DbxActionDirective, selector: "dbx-action,[dbxAction]", exportAs: ["action", "dbxAction"] }, { kind: "directive", type: i2.DbxActionHandlerDirective, selector: "[dbxActionHandler]", inputs: ["dbxActionHandler"] }, { kind: "directive", type: i2.DbxActionHandlerValueDirective, selector: "[dbxActionHandlerValue]", inputs: ["dbxActionHandlerValue"] }, { kind: "directive", type: i2.DbxActionDisabledDirective, selector: "[dbxActionDisabled]", inputs: ["dbxActionDisabled"] }, { kind: "directive", type: i2.DbxActionAutoTriggerDirective, selector: "dbxActionAutoTrigger,[dbxActionAutoTrigger]", inputs: ["triggerDebounce", "triggerThrottle", "triggerErrorThrottle", "maxErrorsForThrottle", "triggerLimit", "dbxActionAutoTrigger", "useFastTriggerPreset", "useInstantTriggerPreset"] }, { kind: "directive", type: i2.DbxActionValueDirective, selector: "dbxActionValue,[dbxActionValue]", inputs: ["dbxActionValue"] }, { kind: "directive", type: i2.DbxActionSuccessHandlerDirective, selector: "[dbxActionSuccessHandler]", inputs: ["dbxActionSuccessHandler"] }, { kind: "directive", type: i2.DbxActionErrorHandlerDirective, selector: "[dbxActionErrorHandler]", inputs: ["dbxActionErrorHandler"] }, { kind: "directive", type: i2.DbxActionButtonDirective, selector: "[dbxActionButton]" }, { kind: "directive", type: DbxActionSnackbarErrorDirective, selector: "[dbxActionSnackbarError]", inputs: ["dbxActionSnackbarError"] }, { kind: "directive", type: DbxActionDialogDirective, selector: "[dbxActionDialog]", inputs: ["dbxActionDialog", "dbxActionDialogIsModified", "dbxActionDialogIsEqual"], exportAs: ["dbxActionDialog"] }, { kind: "component", type: DbxAnchorComponent, selector: "dbx-anchor, [dbx-anchor]", inputs: ["block"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
6501
6079
|
}
|
|
6502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6080
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDownloadButtonComponent, decorators: [{
|
|
6503
6081
|
type: Component,
|
|
6504
6082
|
args: [{
|
|
6505
6083
|
selector: 'dbx-firebase-storagefile-download-button',
|
|
@@ -6518,7 +6096,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
6518
6096
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6519
6097
|
standalone: true
|
|
6520
6098
|
}]
|
|
6521
|
-
}] });
|
|
6099
|
+
}], propDecorators: { storageFileKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "storageFileKey", required: false }] }], storageFileDownloadUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "storageFileDownloadUrl", required: false }] }], embedMimeType: [{ type: i0.Input, args: [{ isSignal: true, alias: "embedMimeType", required: false }] }], showPreviewButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPreviewButton", required: false }] }], preload: [{ type: i0.Input, args: [{ isSignal: true, alias: "preload", required: false }] }], downloadDetailsChange: [{ type: i0.Output, args: ["downloadDetailsChange"] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: false }] }] } });
|
|
6522
6100
|
|
|
6523
6101
|
/**
|
|
6524
6102
|
* Store used for selecting a specific NotificationItem from a list of notification items.
|
|
@@ -6570,10 +6148,10 @@ class DbxFirebaseStorageFileUploadStore extends ComponentStore {
|
|
|
6570
6148
|
* Sets the upload result.
|
|
6571
6149
|
*/
|
|
6572
6150
|
setUploadResult = this.updater((state, uploadResult) => ({ ...state, isUploadHandlerWorking: false, uploadProgress: undefined, uploadResult }));
|
|
6573
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6574
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6151
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6152
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadStore });
|
|
6575
6153
|
}
|
|
6576
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadStore, decorators: [{
|
|
6577
6155
|
type: Injectable
|
|
6578
6156
|
}], ctorParameters: () => [] });
|
|
6579
6157
|
|
|
@@ -6849,19 +6427,15 @@ class StorageFileUploadFilesError extends BaseError {
|
|
|
6849
6427
|
* Connects a DbxFirebaseStorageFileUploadStore to a DbxActionContext, and handles the upload action.
|
|
6850
6428
|
*/
|
|
6851
6429
|
class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
6852
|
-
_triggerSub = new SubscriptionObject();
|
|
6853
|
-
_readySub = new SubscriptionObject();
|
|
6854
|
-
_isWorkingSub = new SubscriptionObject();
|
|
6855
|
-
_progressSub = new SubscriptionObject();
|
|
6856
6430
|
source = inject((DbxActionContextStoreSourceInstance));
|
|
6857
6431
|
uploadStore = inject(DbxFirebaseStorageFileUploadStore);
|
|
6858
|
-
_dbxActionHandlerInstance = new DbxActionHandlerInstance(this.source);
|
|
6432
|
+
_dbxActionHandlerInstance = clean(new DbxActionHandlerInstance(this.source));
|
|
6859
6433
|
/**
|
|
6860
6434
|
* If true, the action will be triggered when files are set.
|
|
6861
6435
|
*
|
|
6862
6436
|
* Defaults to false.
|
|
6863
6437
|
*/
|
|
6864
|
-
triggerOnFiles = input(false);
|
|
6438
|
+
triggerOnFiles = input(false, ...(ngDevMode ? [{ debugName: "triggerOnFiles" }] : []));
|
|
6865
6439
|
triggerOnFiles$ = toObservable(this.triggerOnFiles);
|
|
6866
6440
|
/**
|
|
6867
6441
|
* Uploading of all/any files should be cancelled if any file fails to upload.
|
|
@@ -6870,14 +6444,14 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6870
6444
|
*
|
|
6871
6445
|
* Defaults to false.
|
|
6872
6446
|
*/
|
|
6873
|
-
cancelUploadsOnUploadError = input(false);
|
|
6447
|
+
cancelUploadsOnUploadError = input(false, ...(ngDevMode ? [{ debugName: "cancelUploadsOnUploadError" }] : []));
|
|
6874
6448
|
/**
|
|
6875
6449
|
* The upload should fail if any file fails to upload, rather than if all files fail to upload.
|
|
6876
6450
|
*
|
|
6877
6451
|
* Defaults to false.
|
|
6878
6452
|
*/
|
|
6879
|
-
actionFailureOnUploadError = input(false);
|
|
6880
|
-
uploadHandler = input.required({ alias: 'dbxFirebaseStorageFileUploadActionHandler' });
|
|
6453
|
+
actionFailureOnUploadError = input(false, ...(ngDevMode ? [{ debugName: "actionFailureOnUploadError" }] : []));
|
|
6454
|
+
uploadHandler = input.required({ ...(ngDevMode ? { debugName: "uploadHandler" } : {}), alias: 'dbxFirebaseStorageFileUploadActionHandler' });
|
|
6881
6455
|
_uploadHandlerEffect = effect(() => {
|
|
6882
6456
|
const uploadHandler = this.uploadHandler();
|
|
6883
6457
|
let handlerFunction;
|
|
@@ -6911,13 +6485,13 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6911
6485
|
handlerFunction = undefined;
|
|
6912
6486
|
}
|
|
6913
6487
|
this._dbxActionHandlerInstance.setHandlerFunction(handlerFunction);
|
|
6914
|
-
});
|
|
6488
|
+
}, ...(ngDevMode ? [{ debugName: "_uploadHandlerEffect" }] : []));
|
|
6915
6489
|
files$ = this.uploadStore.files$;
|
|
6916
6490
|
uploadHandler$ = toObservable(this.uploadHandler);
|
|
6917
|
-
|
|
6491
|
+
constructor() {
|
|
6918
6492
|
this._dbxActionHandlerInstance.init();
|
|
6919
6493
|
// trigger the action if files are available
|
|
6920
|
-
this.
|
|
6494
|
+
cleanSubscription(this.triggerOnFiles$
|
|
6921
6495
|
.pipe(switchMap((triggerOnFiles) => {
|
|
6922
6496
|
if (triggerOnFiles) {
|
|
6923
6497
|
return this.files$.pipe(map((x) => x?.length));
|
|
@@ -6930,59 +6504,56 @@ class DbxFirebaseStorageFileUploadActionHandlerDirective {
|
|
|
6930
6504
|
if (canTrigger) {
|
|
6931
6505
|
this.source.trigger();
|
|
6932
6506
|
}
|
|
6933
|
-
});
|
|
6507
|
+
}));
|
|
6934
6508
|
// ready the source with files after trigger is called and files are available
|
|
6935
|
-
this.
|
|
6509
|
+
cleanSubscription(this.files$.pipe(switchMap((files) => this.source.triggered$.pipe(map(() => files)))).subscribe((files) => {
|
|
6936
6510
|
this.source.readyValue(files);
|
|
6937
|
-
});
|
|
6511
|
+
}));
|
|
6938
6512
|
// sync isWorking
|
|
6939
|
-
this.
|
|
6513
|
+
cleanSubscription(this.uploadStore.setIsUploadHandlerWorking(this.source.isWorking$));
|
|
6940
6514
|
// sync progress amount
|
|
6941
|
-
this.
|
|
6942
|
-
}
|
|
6943
|
-
ngOnDestroy() {
|
|
6944
|
-
this._dbxActionHandlerInstance.destroy();
|
|
6515
|
+
this.source.setWorkProgress(this.uploadStore.latestProgressEvent$.pipe(throttleTime(100, undefined, { leading: true, trailing: true }), map((x) => x?.overallProgress), distinctUntilChanged()));
|
|
6945
6516
|
}
|
|
6946
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6947
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
6517
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadActionHandlerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6518
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseStorageFileUploadActionHandlerDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadActionHandler]", inputs: { triggerOnFiles: { classPropertyName: "triggerOnFiles", publicName: "triggerOnFiles", isSignal: true, isRequired: false, transformFunction: null }, cancelUploadsOnUploadError: { classPropertyName: "cancelUploadsOnUploadError", publicName: "cancelUploadsOnUploadError", isSignal: true, isRequired: false, transformFunction: null }, actionFailureOnUploadError: { classPropertyName: "actionFailureOnUploadError", publicName: "actionFailureOnUploadError", isSignal: true, isRequired: false, transformFunction: null }, uploadHandler: { classPropertyName: "uploadHandler", publicName: "dbxFirebaseStorageFileUploadActionHandler", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
6948
6519
|
}
|
|
6949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6520
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadActionHandlerDirective, decorators: [{
|
|
6950
6521
|
type: Directive,
|
|
6951
6522
|
args: [{
|
|
6952
6523
|
selector: '[dbxFirebaseStorageFileUploadActionHandler]',
|
|
6953
6524
|
standalone: true
|
|
6954
6525
|
}]
|
|
6955
|
-
}] });
|
|
6526
|
+
}], ctorParameters: () => [], propDecorators: { triggerOnFiles: [{ type: i0.Input, args: [{ isSignal: true, alias: "triggerOnFiles", required: false }] }], cancelUploadsOnUploadError: [{ type: i0.Input, args: [{ isSignal: true, alias: "cancelUploadsOnUploadError", required: false }] }], actionFailureOnUploadError: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionFailureOnUploadError", required: false }] }], uploadHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "dbxFirebaseStorageFileUploadActionHandler", required: true }] }] } });
|
|
6956
6527
|
|
|
6957
6528
|
class StorageFileCollectionStore extends AbstractDbxFirebaseCollectionStore {
|
|
6958
6529
|
storageFileFunctions = inject(StorageFileFunctions);
|
|
6959
|
-
constructor(
|
|
6960
|
-
super({ firestoreCollection:
|
|
6530
|
+
constructor() {
|
|
6531
|
+
super({ firestoreCollection: inject(StorageFileFirestoreCollections).storageFileCollection });
|
|
6961
6532
|
}
|
|
6962
6533
|
initializeAllStorageFilesFromUpload = firebaseCollectionStoreCreateFunction(this, this.storageFileFunctions.storageFile.createStorageFile.allFromUpload);
|
|
6963
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6964
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6534
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileCollectionStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6535
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileCollectionStore });
|
|
6965
6536
|
}
|
|
6966
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileCollectionStore, decorators: [{
|
|
6967
6538
|
type: Injectable
|
|
6968
|
-
}], ctorParameters: () => [
|
|
6539
|
+
}], ctorParameters: () => [] });
|
|
6969
6540
|
|
|
6970
6541
|
class DbxFirebaseStorageFileCollectionStoreDirective extends DbxFirebaseCollectionStoreDirective {
|
|
6971
|
-
constructor(
|
|
6972
|
-
super(
|
|
6542
|
+
constructor() {
|
|
6543
|
+
super(inject(StorageFileCollectionStore));
|
|
6973
6544
|
this.setConstraints([]);
|
|
6974
6545
|
}
|
|
6975
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6976
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6546
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileCollectionStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6547
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseStorageFileCollectionStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileCollection]", providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseStorageFileCollectionStoreDirective, StorageFileCollectionStore), usesInheritance: true, ngImport: i0 });
|
|
6977
6548
|
}
|
|
6978
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileCollectionStoreDirective, decorators: [{
|
|
6979
6550
|
type: Directive,
|
|
6980
6551
|
args: [{
|
|
6981
6552
|
selector: '[dbxFirebaseStorageFileCollection]',
|
|
6982
6553
|
providers: provideDbxFirebaseCollectionStoreDirective(DbxFirebaseStorageFileCollectionStoreDirective, StorageFileCollectionStore),
|
|
6983
6554
|
standalone: true
|
|
6984
6555
|
}]
|
|
6985
|
-
}], ctorParameters: () => [
|
|
6556
|
+
}], ctorParameters: () => [] });
|
|
6986
6557
|
|
|
6987
6558
|
class StorageFileDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
6988
6559
|
storageFileFunctions = inject(StorageFileFunctions);
|
|
@@ -6996,28 +6567,28 @@ class StorageFileDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
6996
6567
|
processStorageFile = firebaseDocumentStoreUpdateFunction(this, this.storageFileFunctions.storageFile.updateStorageFile.process);
|
|
6997
6568
|
deleteStorageFile = firebaseDocumentStoreDeleteFunction(this, this.storageFileFunctions.storageFile.deleteStorageFile.delete);
|
|
6998
6569
|
downloadStorageFile = firebaseDocumentStoreReadFunction(this, this.storageFileFunctions.storageFile.readStorageFile.download);
|
|
6999
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7000
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6570
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6571
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileDocumentStore });
|
|
7001
6572
|
}
|
|
7002
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileDocumentStore, decorators: [{
|
|
7003
6574
|
type: Injectable
|
|
7004
6575
|
}], ctorParameters: () => [] });
|
|
7005
6576
|
|
|
7006
6577
|
class DbxFirebaseStorageFileDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
7007
|
-
constructor(
|
|
7008
|
-
super(
|
|
6578
|
+
constructor() {
|
|
6579
|
+
super(inject(StorageFileDocumentStore));
|
|
7009
6580
|
}
|
|
7010
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7011
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6581
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6582
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseStorageFileDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseStorageFileDocumentStoreDirective, StorageFileDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
7012
6583
|
}
|
|
7013
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6584
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileDocumentStoreDirective, decorators: [{
|
|
7014
6585
|
type: Directive,
|
|
7015
6586
|
args: [{
|
|
7016
6587
|
selector: '[dbxFirebaseStorageFileDocument]',
|
|
7017
6588
|
providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseStorageFileDocumentStoreDirective, StorageFileDocumentStore),
|
|
7018
6589
|
standalone: true
|
|
7019
6590
|
}]
|
|
7020
|
-
}], ctorParameters: () => [
|
|
6591
|
+
}], ctorParameters: () => [] });
|
|
7021
6592
|
|
|
7022
6593
|
class StorageFileGroupDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
7023
6594
|
storageFileFunctions = inject(StorageFileFunctions);
|
|
@@ -7026,50 +6597,49 @@ class StorageFileGroupDocumentStore extends AbstractDbxFirebaseDocumentStore {
|
|
|
7026
6597
|
}
|
|
7027
6598
|
updateStorageFileGroup = firebaseDocumentStoreUpdateFunction(this, this.storageFileFunctions.storageFileGroup.updateStorageFileGroup.update);
|
|
7028
6599
|
regenerateStorageFileGroupContent = firebaseDocumentStoreCrudFunction(this.storageFileFunctions.storageFileGroup.updateStorageFileGroup.regenerateContent);
|
|
7029
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7030
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6600
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileGroupDocumentStore, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6601
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileGroupDocumentStore });
|
|
7031
6602
|
}
|
|
7032
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6603
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: StorageFileGroupDocumentStore, decorators: [{
|
|
7033
6604
|
type: Injectable
|
|
7034
6605
|
}], ctorParameters: () => [] });
|
|
7035
6606
|
|
|
7036
6607
|
class DbxFirebaseStorageFileGroupDocumentStoreDirective extends DbxFirebaseDocumentStoreDirective {
|
|
7037
|
-
constructor(
|
|
7038
|
-
super(
|
|
6608
|
+
constructor() {
|
|
6609
|
+
super(inject(StorageFileGroupDocumentStore));
|
|
7039
6610
|
}
|
|
7040
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7041
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6611
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileGroupDocumentStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6612
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseStorageFileGroupDocumentStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileGroupDocument]", providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseStorageFileGroupDocumentStoreDirective, StorageFileGroupDocumentStore), usesInheritance: true, ngImport: i0 });
|
|
7042
6613
|
}
|
|
7043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileGroupDocumentStoreDirective, decorators: [{
|
|
7044
6615
|
type: Directive,
|
|
7045
6616
|
args: [{
|
|
7046
6617
|
selector: '[dbxFirebaseStorageFileGroupDocument]',
|
|
7047
6618
|
providers: provideDbxFirebaseDocumentStoreDirective(DbxFirebaseStorageFileGroupDocumentStoreDirective, StorageFileGroupDocumentStore),
|
|
7048
6619
|
standalone: true
|
|
7049
6620
|
}]
|
|
7050
|
-
}], ctorParameters: () => [
|
|
6621
|
+
}], ctorParameters: () => [] });
|
|
7051
6622
|
|
|
7052
6623
|
/**
|
|
7053
6624
|
* Directive that passes the upload result to a StorageFileDocumentStore to initialize the document immediately.
|
|
7054
6625
|
*
|
|
7055
6626
|
* Use with a DbxAction instance.
|
|
7056
6627
|
*/
|
|
7057
|
-
class DbxFirebaseStorageFileUploadInitializeDocumentDirective
|
|
6628
|
+
class DbxFirebaseStorageFileUploadInitializeDocumentDirective {
|
|
7058
6629
|
uploadStore = inject(DbxFirebaseStorageFileUploadStore);
|
|
7059
6630
|
storageFileDocumentStore = inject(StorageFileDocumentStore);
|
|
7060
|
-
initializeWithExpediteProcessing = input();
|
|
6631
|
+
initializeWithExpediteProcessing = input(...(ngDevMode ? [undefined, { debugName: "initializeWithExpediteProcessing" }] : []));
|
|
7061
6632
|
source = inject((DbxActionContextStoreSourceInstance), { host: true });
|
|
7062
|
-
_dbxActionHandlerInstance = new DbxActionHandlerInstance(this.source);
|
|
6633
|
+
_dbxActionHandlerInstance = clean(new DbxActionHandlerInstance(this.source));
|
|
7063
6634
|
constructor() {
|
|
7064
|
-
super();
|
|
7065
6635
|
// set the trigger
|
|
7066
|
-
this.
|
|
6636
|
+
cleanSubscription(this.uploadStore.uploadResult$.subscribe(async (result) => {
|
|
7067
6637
|
const successFileResult = result.successFileResults.find((x) => x.fileRef != null);
|
|
7068
6638
|
const fileRef = successFileResult?.fileRef;
|
|
7069
6639
|
if (fileRef) {
|
|
7070
6640
|
this.source.triggerWithValue(fileRef);
|
|
7071
6641
|
}
|
|
7072
|
-
});
|
|
6642
|
+
}));
|
|
7073
6643
|
// set the handler function
|
|
7074
6644
|
this._dbxActionHandlerInstance.setHandlerFunction((fileRef, context) => {
|
|
7075
6645
|
context.startWorkingWithLoadingStateObservable(this.storageFileDocumentStore.initializeStorageFileFromUpload({
|
|
@@ -7080,45 +6650,35 @@ class DbxFirebaseStorageFileUploadInitializeDocumentDirective extends AbstractSu
|
|
|
7080
6650
|
});
|
|
7081
6651
|
this._dbxActionHandlerInstance.init();
|
|
7082
6652
|
}
|
|
7083
|
-
|
|
7084
|
-
|
|
7085
|
-
this._dbxActionHandlerInstance.destroy();
|
|
7086
|
-
}
|
|
7087
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7088
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadInitializeDocument]", inputs: { initializeWithExpediteProcessing: { classPropertyName: "initializeWithExpediteProcessing", publicName: "initializeWithExpediteProcessing", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["dbxFirebaseStorageFileUploadInitializeDocument"], usesInheritance: true, ngImport: i0 });
|
|
6653
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6654
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadInitializeDocument]", inputs: { initializeWithExpediteProcessing: { classPropertyName: "initializeWithExpediteProcessing", publicName: "initializeWithExpediteProcessing", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["dbxFirebaseStorageFileUploadInitializeDocument"], ngImport: i0 });
|
|
7089
6655
|
}
|
|
7090
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadInitializeDocumentDirective, decorators: [{
|
|
7091
6657
|
type: Directive,
|
|
7092
6658
|
args: [{
|
|
7093
6659
|
selector: '[dbxFirebaseStorageFileUploadInitializeDocument]',
|
|
7094
6660
|
exportAs: 'dbxFirebaseStorageFileUploadInitializeDocument',
|
|
7095
6661
|
standalone: true
|
|
7096
6662
|
}]
|
|
7097
|
-
}], ctorParameters: () => [] });
|
|
6663
|
+
}], ctorParameters: () => [], propDecorators: { initializeWithExpediteProcessing: [{ type: i0.Input, args: [{ isSignal: true, alias: "initializeWithExpediteProcessing", required: false }] }] } });
|
|
7098
6664
|
|
|
7099
6665
|
/**
|
|
7100
6666
|
* Directive that provides a DbxFirebaseStorageFileUploadStore, and sync's the inputs to the store.
|
|
7101
6667
|
*/
|
|
7102
6668
|
class DbxFirebaseStorageFileUploadStoreDirective {
|
|
7103
|
-
_allowedSub = new SubscriptionObject();
|
|
7104
|
-
_multiSub = new SubscriptionObject();
|
|
7105
6669
|
uploadStore = inject(DbxFirebaseStorageFileUploadStore);
|
|
7106
|
-
multipleUpload = input();
|
|
7107
|
-
fileTypesAccepted = input();
|
|
6670
|
+
multipleUpload = input(...(ngDevMode ? [undefined, { debugName: "multipleUpload" }] : []));
|
|
6671
|
+
fileTypesAccepted = input(...(ngDevMode ? [undefined, { debugName: "fileTypesAccepted" }] : []));
|
|
7108
6672
|
fileTypesAccepted$ = toObservable(this.fileTypesAccepted).pipe(skipAllInitialMaybe(), shareReplay(1));
|
|
7109
6673
|
isMultiUploadAllowed$ = toObservable(this.multipleUpload).pipe(skipAllInitialMaybe(), shareReplay(1));
|
|
7110
6674
|
constructor() {
|
|
7111
|
-
this.
|
|
7112
|
-
this.
|
|
6675
|
+
cleanSubscription(this.fileTypesAccepted$.subscribe((x) => this.uploadStore.setFileTypesAccepted(x)));
|
|
6676
|
+
cleanSubscription(this.isMultiUploadAllowed$.subscribe((x) => this.uploadStore.setIsMultiUploadAllowed(x)));
|
|
7113
6677
|
}
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
this._multiSub.destroy();
|
|
7117
|
-
}
|
|
7118
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageFileUploadStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7119
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.13", type: DbxFirebaseStorageFileUploadStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadStore]", inputs: { multipleUpload: { classPropertyName: "multipleUpload", publicName: "multipleUpload", isSignal: true, isRequired: false, transformFunction: null }, fileTypesAccepted: { classPropertyName: "fileTypesAccepted", publicName: "fileTypesAccepted", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DbxFirebaseStorageFileUploadStore], exportAs: ["dbxFirebaseStorageFileUploadStore"], ngImport: i0 });
|
|
6678
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadStoreDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6679
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.0", type: DbxFirebaseStorageFileUploadStoreDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadStore]", inputs: { multipleUpload: { classPropertyName: "multipleUpload", publicName: "multipleUpload", isSignal: true, isRequired: false, transformFunction: null }, fileTypesAccepted: { classPropertyName: "fileTypesAccepted", publicName: "fileTypesAccepted", isSignal: true, isRequired: false, transformFunction: null } }, providers: [DbxFirebaseStorageFileUploadStore], exportAs: ["dbxFirebaseStorageFileUploadStore"], ngImport: i0 });
|
|
7120
6680
|
}
|
|
7121
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadStoreDirective, decorators: [{
|
|
7122
6682
|
type: Directive,
|
|
7123
6683
|
args: [{
|
|
7124
6684
|
selector: '[dbxFirebaseStorageFileUploadStore]',
|
|
@@ -7126,31 +6686,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
7126
6686
|
providers: [DbxFirebaseStorageFileUploadStore],
|
|
7127
6687
|
standalone: true
|
|
7128
6688
|
}]
|
|
7129
|
-
}], ctorParameters: () => [] });
|
|
6689
|
+
}], ctorParameters: () => [], propDecorators: { multipleUpload: [{ type: i0.Input, args: [{ isSignal: true, alias: "multipleUpload", required: false }] }], fileTypesAccepted: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileTypesAccepted", required: false }] }] } });
|
|
7130
6690
|
|
|
7131
6691
|
/**
|
|
7132
6692
|
* Directive that syncs a DbxFirebaseStorageFileUploadStore's configuration to a DbxFileUploadComponent.
|
|
7133
6693
|
*/
|
|
7134
6694
|
class DbxFirebaseStorageFileUploadSyncDirective {
|
|
7135
|
-
_allowedSub = new SubscriptionObject();
|
|
7136
|
-
_multiSub = new SubscriptionObject();
|
|
7137
|
-
_filesSub = new SubscriptionObject();
|
|
7138
6695
|
uploadStore = inject(DbxFirebaseStorageFileUploadStore);
|
|
7139
6696
|
uploadComponent = inject(DbxFileUploadComponent);
|
|
7140
6697
|
constructor() {
|
|
7141
|
-
this.
|
|
7142
|
-
this.
|
|
7143
|
-
this.
|
|
6698
|
+
cleanSubscription(this.uploadStore.fileTypesAllowed$.subscribe((x) => this.uploadComponent.setAccept(x)));
|
|
6699
|
+
cleanSubscription(this.uploadStore.isMultiUploadAllowed$.subscribe((x) => this.uploadComponent.setMultiple(x)));
|
|
6700
|
+
cleanSubscription(this.uploadComponent.filesChanged.subscribe((files) => this.uploadStore.setFiles(files.matchResult.accepted)));
|
|
7144
6701
|
}
|
|
7145
|
-
|
|
7146
|
-
|
|
7147
|
-
this._multiSub.destroy();
|
|
7148
|
-
this._filesSub.destroy();
|
|
7149
|
-
}
|
|
7150
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageFileUploadSyncDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
7151
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.13", type: DbxFirebaseStorageFileUploadSyncDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadSync]", exportAs: ["dbxFirebaseStorageFileUploadSync"], ngImport: i0 });
|
|
6702
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadSyncDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6703
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.0", type: DbxFirebaseStorageFileUploadSyncDirective, isStandalone: true, selector: "[dbxFirebaseStorageFileUploadSync]", exportAs: ["dbxFirebaseStorageFileUploadSync"], ngImport: i0 });
|
|
7152
6704
|
}
|
|
7153
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadSyncDirective, decorators: [{
|
|
7154
6706
|
type: Directive,
|
|
7155
6707
|
args: [{
|
|
7156
6708
|
selector: '[dbxFirebaseStorageFileUploadSync]',
|
|
@@ -7159,7 +6711,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
|
|
|
7159
6711
|
}]
|
|
7160
6712
|
}], ctorParameters: () => [] });
|
|
7161
6713
|
|
|
7162
|
-
const importsAndExports
|
|
6714
|
+
const importsAndExports = [
|
|
7163
6715
|
// dbx-core/dbx-web modules/components
|
|
7164
6716
|
DbxActionModule,
|
|
7165
6717
|
DbxLoadingComponent,
|
|
@@ -7188,8 +6740,8 @@ const importsAndExports$1 = [
|
|
|
7188
6740
|
* - DbxFirebaseStorageFileUploadStore
|
|
7189
6741
|
*/
|
|
7190
6742
|
class DbxFirebaseStorageFileUploadModule {
|
|
7191
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7192
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
6743
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6744
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, imports: [
|
|
7193
6745
|
// dbx-core/dbx-web modules/components
|
|
7194
6746
|
DbxActionModule,
|
|
7195
6747
|
DbxLoadingComponent,
|
|
@@ -7220,7 +6772,7 @@ class DbxFirebaseStorageFileUploadModule {
|
|
|
7220
6772
|
// stores
|
|
7221
6773
|
DbxFirebaseStorageFileCollectionStoreDirective,
|
|
7222
6774
|
DbxFirebaseStorageFileDocumentStoreDirective] });
|
|
7223
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6775
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, imports: [
|
|
7224
6776
|
// dbx-core/dbx-web modules/components
|
|
7225
6777
|
DbxActionModule,
|
|
7226
6778
|
DbxLoadingComponent,
|
|
@@ -7228,11 +6780,11 @@ class DbxFirebaseStorageFileUploadModule {
|
|
|
7228
6780
|
// dbx-core/dbx-web modules/components
|
|
7229
6781
|
DbxActionModule] });
|
|
7230
6782
|
}
|
|
7231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6783
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageFileUploadModule, decorators: [{
|
|
7232
6784
|
type: NgModule,
|
|
7233
6785
|
args: [{
|
|
7234
|
-
imports: importsAndExports
|
|
7235
|
-
exports: importsAndExports
|
|
6786
|
+
imports: importsAndExports,
|
|
6787
|
+
exports: importsAndExports
|
|
7236
6788
|
}]
|
|
7237
6789
|
}] });
|
|
7238
6790
|
|
|
@@ -7274,10 +6826,10 @@ class FlatFirestoreModelKeyPipe {
|
|
|
7274
6826
|
return '';
|
|
7275
6827
|
}
|
|
7276
6828
|
}
|
|
7277
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7278
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
6829
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: FlatFirestoreModelKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6830
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: FlatFirestoreModelKeyPipe, isStandalone: true, name: "flatFirestoreModelKey" });
|
|
7279
6831
|
}
|
|
7280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: FlatFirestoreModelKeyPipe, decorators: [{
|
|
7281
6833
|
type: Pipe,
|
|
7282
6834
|
args: [{ name: 'flatFirestoreModelKey', standalone: true }]
|
|
7283
6835
|
}] });
|
|
@@ -7291,33 +6843,14 @@ class TwoWayFlatFirestoreModelKeyPipe {
|
|
|
7291
6843
|
return '';
|
|
7292
6844
|
}
|
|
7293
6845
|
}
|
|
7294
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7295
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
6846
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6847
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, isStandalone: true, name: "twoWayFlatFirestoreModelKey" });
|
|
7296
6848
|
}
|
|
7297
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: TwoWayFlatFirestoreModelKeyPipe, decorators: [{
|
|
7298
6850
|
type: Pipe,
|
|
7299
6851
|
args: [{ name: 'twoWayFlatFirestoreModelKey', standalone: true }]
|
|
7300
6852
|
}] });
|
|
7301
6853
|
|
|
7302
|
-
const importsAndExports = [FlatFirestoreModelKeyPipe, TwoWayFlatFirestoreModelKeyPipe];
|
|
7303
|
-
/**
|
|
7304
|
-
* Imports and exports all DbxFirebasePipe components.
|
|
7305
|
-
*
|
|
7306
|
-
* @deprecated consider importing the individual pipes instead.
|
|
7307
|
-
*/
|
|
7308
|
-
class DbxFirebasePipeModule {
|
|
7309
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebasePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7310
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebasePipeModule, imports: [FlatFirestoreModelKeyPipe, TwoWayFlatFirestoreModelKeyPipe], exports: [FlatFirestoreModelKeyPipe, TwoWayFlatFirestoreModelKeyPipe] });
|
|
7311
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebasePipeModule });
|
|
7312
|
-
}
|
|
7313
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebasePipeModule, decorators: [{
|
|
7314
|
-
type: NgModule,
|
|
7315
|
-
args: [{
|
|
7316
|
-
imports: importsAndExports,
|
|
7317
|
-
exports: importsAndExports
|
|
7318
|
-
}]
|
|
7319
|
-
}] });
|
|
7320
|
-
|
|
7321
6854
|
const DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY = 'id';
|
|
7322
6855
|
const DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY = 'key';
|
|
7323
6856
|
const DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE = '0';
|
|
@@ -7403,10 +6936,10 @@ class DbxFirebaseStorageService {
|
|
|
7403
6936
|
folder(path) {
|
|
7404
6937
|
return this.storageContext.folder(path);
|
|
7405
6938
|
}
|
|
7406
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7407
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6939
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
6940
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageService, providedIn: 'root' });
|
|
7408
6941
|
}
|
|
7409
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6942
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseStorageService, decorators: [{
|
|
7410
6943
|
type: Injectable,
|
|
7411
6944
|
args: [{
|
|
7412
6945
|
providedIn: 'root'
|
|
@@ -7451,31 +6984,12 @@ function providedDbxFirebaseStorage(config) {
|
|
|
7451
6984
|
return makeEnvironmentProviders(providers);
|
|
7452
6985
|
}
|
|
7453
6986
|
|
|
7454
|
-
/**
|
|
7455
|
-
* @deprecated use providedDbxFirebaseStorage() instead.
|
|
7456
|
-
*/
|
|
7457
|
-
class DbxFirebaseStorageModule {
|
|
7458
|
-
static forRoot(config) {
|
|
7459
|
-
return {
|
|
7460
|
-
ngModule: DbxFirebaseStorageModule,
|
|
7461
|
-
providers: [providedDbxFirebaseStorage(config)]
|
|
7462
|
-
};
|
|
7463
|
-
}
|
|
7464
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
7465
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageModule });
|
|
7466
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageModule });
|
|
7467
|
-
}
|
|
7468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: DbxFirebaseStorageModule, decorators: [{
|
|
7469
|
-
type: NgModule,
|
|
7470
|
-
args: [{}]
|
|
7471
|
-
}] });
|
|
7472
|
-
|
|
7473
6987
|
class DbxFirebaseModule {
|
|
7474
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
7475
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
7476
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
6988
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
6989
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModule, exports: [DbxFirebaseModelModule] });
|
|
6990
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModule, imports: [DbxFirebaseModelModule] });
|
|
7477
6991
|
}
|
|
7478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6992
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.0", ngImport: i0, type: DbxFirebaseModule, decorators: [{
|
|
7479
6993
|
type: NgModule,
|
|
7480
6994
|
args: [{
|
|
7481
6995
|
exports: [DbxFirebaseModelModule]
|
|
@@ -7537,5 +7051,5 @@ function provideDbxFirebase(config) {
|
|
|
7537
7051
|
* Generated bundle index. Do not edit.
|
|
7538
7052
|
*/
|
|
7539
7053
|
|
|
7540
|
-
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractDbxFirebaseModelEntityWidgetDirective, AbstractDbxFirebaseNotificationItemWidgetComponent, AbstractRootSingleItemDbxFirebaseDocument, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION, DBX_FIREBASE_APP_OPTIONS_TOKEN, DBX_FIREBASE_DOCUMENT_STORE_CONTEXT_STORE_TOKEN, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_LOGIN_COMPONENTS, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_MODEL_ENTITY_WITH_STORE_TOKEN, DBX_FIREBASE_STORAGEFILE_DOWNLOAD_STORAGE_ACCESSOR_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_DBX_FIREBASE_MODEL_ENTITIES_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_MODEL_HISTORY_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_NOTIFICATION_ITEM_STORE_POPOVER_KEY, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserEventsListenerService, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthLoginService, DbxFirebaseAuthModule, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDefaultFirebaseProvidersModule, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, DbxFirebaseDocumentStoreContextStore, DbxFirebaseDocumentStoreContextStoreDirective, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, DbxFirebaseDocumentStoreTwoWayKeyProvider, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorModule, DbxFirebaseEmulatorService, DbxFirebaseFirestoreCollectionModule, DbxFirebaseFunctionsModule, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginModule, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelContextService, DbxFirebaseModelEntitiesComponent, DbxFirebaseModelEntitiesDebugWidgetComponent, DbxFirebaseModelEntitiesPopoverButtonComponent, DbxFirebaseModelEntitiesPopoverComponent, DbxFirebaseModelEntitiesSource, DbxFirebaseModelEntitiesWidgetService, DbxFirebaseModelEntitiesWidgetServiceConfig, DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryModule, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent, DbxFirebaseModelKeyComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModelTrackerService, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent, DbxFirebaseModelTypesModule, DbxFirebaseModelTypesService, DbxFirebaseModelTypesServiceConfig, DbxFirebaseModelViewedEventDirective, DbxFirebaseModule, DbxFirebaseNotificationBoxCollectionStoreDirective, DbxFirebaseNotificationBoxDocumentStoreDirective, DbxFirebaseNotificationCollectionStoreDirective, DbxFirebaseNotificationDocumentStoreDirective, DbxFirebaseNotificationItemContentComponent, DbxFirebaseNotificationItemDefaultViewComponent, DbxFirebaseNotificationItemListComponent, DbxFirebaseNotificationItemListViewComponent, DbxFirebaseNotificationItemListViewItemComponent, DbxFirebaseNotificationItemStore, DbxFirebaseNotificationItemStorePopoverButtonComponent, DbxFirebaseNotificationItemStorePopoverComponent, DbxFirebaseNotificationItemViewComponent, DbxFirebaseNotificationItemWidgetService, DbxFirebaseNotificationModule, DbxFirebaseNotificationSummaryCollectionStoreDirective, DbxFirebaseNotificationSummaryDocumentStoreDirective, DbxFirebaseNotificationTemplateService, DbxFirebaseNotificationUserCollectionStoreDirective, DbxFirebaseNotificationUserDocumentStoreDirective, DbxFirebaseParsedEmulatorsConfig, DbxFirebasePipeModule, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageFileCollectionStoreDirective, DbxFirebaseStorageFileDocumentStoreDirective, DbxFirebaseStorageFileDownloadButtonComponent, DbxFirebaseStorageFileDownloadService, DbxFirebaseStorageFileDownloadStorage, DbxFirebaseStorageFileGroupDocumentStoreDirective, DbxFirebaseStorageFileUploadActionHandlerDirective, DbxFirebaseStorageFileUploadInitializeDocumentDirective, DbxFirebaseStorageFileUploadModule, DbxFirebaseStorageFileUploadStore, DbxFirebaseStorageFileUploadStoreDirective, DbxFirebaseStorageFileUploadSyncDirective, DbxFirebaseStorageModule, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE_PREFIX, FlatFirestoreModelKeyPipe, NotificationBoxCollectionStore, NotificationBoxDocumentStore, NotificationCollectionStore, NotificationDocumentStore, NotificationSummaryCollectionStore, NotificationSummaryDocumentStore, NotificationUserCollectionStore, NotificationUserDocumentStore, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, StorageFileCollectionStore, StorageFileDocumentStore, StorageFileGroupDocumentStore, StorageFileUploadFilesError, SystemStateCollectionStore, SystemStateDocumentStore, TwoWayFlatFirestoreModelKeyPipe, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseAuthContextInfo, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory, dbxFirebaseIdRouteParamRedirect, dbxFirebaseInContextFirebaseModelServiceInstance, dbxFirebaseInContextFirebaseModelServiceInstanceFactory, dbxFirebaseKeyRouteParamRedirect, dbxFirebaseModelContextServiceInfoInstanceFactory, dbxFirebaseModelEntityWidgetInjectionConfigFactory, dbxFirebaseModelTypesServiceInstance, dbxFirebaseModelTypesServiceInstancePairForKeysFactory, dbxFirebaseSourceSelectLoadSource, dbxFirebaseStorageFileDownloadServiceCustomSourceFromObs, dbxFirebaseStorageProvidersContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, dbxWidgetTypeForNotificationTemplateType, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultDbxFirebaseStorageFileDownloadStorageAccessorFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseCollectionStoreCreateFunction, firebaseCollectionStoreCrudFunction, firebaseContextServiceEntityMap, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, importsAndExports$1 as importsAndExports, isDbxFirebaseModelEntityWithStore, linkDocumentStoreToParentContextStores, modelDoesNotExistError, provideDbxFirebase, provideDbxFirebaseAnalyticsUserEventsListenerService, provideDbxFirebaseApp, provideDbxFirebaseAuth, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDevelopment, provideDbxFirebaseDocumentStoreContextStore, provideDbxFirebaseDocumentStoreDirective, provideDbxFirebaseDocumentStoreTwoWayKeyProvider, provideDbxFirebaseEmulator, provideDbxFirebaseFunctions, provideDbxFirebaseLogin, provideDbxFirebaseModelContextService, provideDbxFirebaseModelEntitiesWidgetService, provideDbxFirebaseNotifications, provideDbxFirebaseStorageFileService, provideDbxFirestoreCollection, provideNotificationFirestoreCollections, provideStorageFileFirestoreCollections, provideSystemStateFirestoreCollections, providedDbxFirebaseStorage, readDbxAnalyticsUserPropertiesFromAuthUserInfo, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction, storageFileUploadFiles, storageFileUploadHandler };
|
|
7054
|
+
export { AbstractConfiguredDbxFirebaseLoginButtonDirective, AbstractDbxFirebaseCollectionStore, AbstractDbxFirebaseCollectionWithParentStore, AbstractDbxFirebaseDocumentStore, AbstractDbxFirebaseDocumentWithParentStore, AbstractDbxFirebaseModelEntityWidgetDirective, AbstractDbxFirebaseNotificationItemWidgetComponent, AbstractRootSingleItemDbxFirebaseDocument, AbstractSingleItemDbxFirebaseDocument, AbstractSystemStateDocumentStoreAccessor, DBX_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_COMPONENT_CONFIGURATION, DBX_FIREBASE_APP_OPTIONS_TOKEN, DBX_FIREBASE_DOCUMENT_STORE_CONTEXT_STORE_TOKEN, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_ID_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_KEY_PARAM_KEY, DBX_FIREBASE_ID_ROUTER_PARAM_DEFAULT_USE_PARAM_VALUE, DBX_FIREBASE_MODEL_DOES_NOT_EXIST_ERROR, DBX_FIREBASE_MODEL_ENTITY_WITH_STORE_TOKEN, DBX_FIREBASE_STORAGEFILE_DOWNLOAD_STORAGE_ACCESSOR_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_CONFIG_TOKEN, DBX_FIREBASE_STORAGE_CONTEXT_TOKEN, DBX_FIRESTORE_CONTEXT_TOKEN, DEFAULT_CONFIGURED_DBX_FIREBASE_LOGIN_BUTTON_TEMPLATE, DEFAULT_DBX_FIREBASE_ANALYTICS_USER_PROPERTIES_FACTORY, DEFAULT_DBX_FIREBASE_AUTH_SERVICE_DELEGATE, DEFAULT_DBX_FIREBASE_MODEL_ENTITIES_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_MODEL_HISTORY_COMPONENT_POPOVER_KEY, DEFAULT_DBX_FIREBASE_NOTIFICATION_ITEM_STORE_POPOVER_KEY, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG, DEFAULT_FIREBASE_AUTH_LOGIN_PASSWORD_CONFIG_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_PROVIDERS_TOKEN, DEFAULT_FIREBASE_AUTH_LOGIN_TERMS_COMPONENT_CLASS_TOKEN, DEFAULT_FIREBASE_COLLECTION_CHANGE_TRIGGER_FUNCTION, DEFAULT_FIREBASE_DEVELOPMENT_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_POPUP_KEY, DEFAULT_FIREBASE_DEVELOPMENT_SCHEDULER_ENABLED_TOKEN, DEFAULT_FIREBASE_DEVELOPMENT_WIDGET_PROVIDERS_TOKEN, DEFAULT_FIREBASE_LOGIN_METHOD_CATEGORY, DEFAULT_FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE, DEVELOPMENT_FIREBASE_SERVER_SCHEDULER_WIDGET_KEY, DbxFirebaseAnalyticsUserEventsListenerService, DbxFirebaseAnalyticsUserSource, DbxFirebaseAppCheckHttpInterceptor, DbxFirebaseAuthLoginService, DbxFirebaseAuthService, DbxFirebaseAuthServiceDelegate, DbxFirebaseCollectionChangeDirective, DbxFirebaseCollectionChangeTriggerInstance, DbxFirebaseCollectionHasChangeDirective, DbxFirebaseCollectionListDirective, DbxFirebaseCollectionLoaderInstance, DbxFirebaseCollectionStoreDirective, DbxFirebaseCollectionWithParentStoreDirective, DbxFirebaseDevelopmentDirective, DbxFirebaseDevelopmentModule, DbxFirebaseDevelopmentPopupComponent, DbxFirebaseDevelopmentPopupContentComponent, DbxFirebaseDevelopmentPopupContentFormComponent, DbxFirebaseDevelopmentSchedulerListComponent, DbxFirebaseDevelopmentSchedulerListViewComponent, DbxFirebaseDevelopmentSchedulerListViewItemComponent, DbxFirebaseDevelopmentSchedulerService, DbxFirebaseDevelopmentSchedulerWidgetComponent, DbxFirebaseDevelopmentService, DbxFirebaseDevelopmentWidgetService, DbxFirebaseDocumentLoaderInstance, DbxFirebaseDocumentStoreContextModelEntitiesSourceDirective, DbxFirebaseDocumentStoreContextStore, DbxFirebaseDocumentStoreContextStoreDirective, DbxFirebaseDocumentStoreDirective, DbxFirebaseDocumentStoreIdFromTwoWayModelKeyDirective, DbxFirebaseDocumentStoreTwoWayKeyProvider, DbxFirebaseDocumentStoreTwoWayModelKeySourceDirective, DbxFirebaseEmailFormComponent, DbxFirebaseEmailRecoveryFormComponent, DbxFirebaseEmulatorService, DbxFirebaseLoginAnonymousComponent, DbxFirebaseLoginAppleComponent, DbxFirebaseLoginButtonComponent, DbxFirebaseLoginButtonContainerComponent, DbxFirebaseLoginComponent, DbxFirebaseLoginContext, DbxFirebaseLoginContextBackButtonComponent, DbxFirebaseLoginContextDirective, DbxFirebaseLoginEmailComponent, DbxFirebaseLoginEmailContentComponent, DbxFirebaseLoginFacebookComponent, DbxFirebaseLoginGitHubComponent, DbxFirebaseLoginGoogleComponent, DbxFirebaseLoginListComponent, DbxFirebaseLoginMicrosoftComponent, DbxFirebaseLoginTermsComponent, DbxFirebaseLoginTermsSimpleComponent, DbxFirebaseLoginTwitterComponent, DbxFirebaseModelContextService, DbxFirebaseModelEntitiesComponent, DbxFirebaseModelEntitiesDebugWidgetComponent, DbxFirebaseModelEntitiesPopoverButtonComponent, DbxFirebaseModelEntitiesPopoverComponent, DbxFirebaseModelEntitiesSource, DbxFirebaseModelEntitiesWidgetService, DbxFirebaseModelEntitiesWidgetServiceConfig, DbxFirebaseModelHistoryComponent, DbxFirebaseModelHistoryPopoverButtonComponent, DbxFirebaseModelHistoryPopoverComponent, DbxFirebaseModelKeyComponent, DbxFirebaseModelModule, DbxFirebaseModelStoreModule, DbxFirebaseModelTrackerService, DbxFirebaseModelTypeInstanceListComponent, DbxFirebaseModelTypeInstanceListViewComponent, DbxFirebaseModelTypeInstanceListViewItemComponent, DbxFirebaseModelTypesService, DbxFirebaseModelTypesServiceConfig, DbxFirebaseModelViewedEventDirective, DbxFirebaseModule, DbxFirebaseNotificationBoxCollectionStoreDirective, DbxFirebaseNotificationBoxDocumentStoreDirective, DbxFirebaseNotificationCollectionStoreDirective, DbxFirebaseNotificationDocumentStoreDirective, DbxFirebaseNotificationItemContentComponent, DbxFirebaseNotificationItemDefaultViewComponent, DbxFirebaseNotificationItemListComponent, DbxFirebaseNotificationItemListViewComponent, DbxFirebaseNotificationItemListViewItemComponent, DbxFirebaseNotificationItemStore, DbxFirebaseNotificationItemStorePopoverButtonComponent, DbxFirebaseNotificationItemStorePopoverComponent, DbxFirebaseNotificationItemViewComponent, DbxFirebaseNotificationItemWidgetService, DbxFirebaseNotificationSummaryCollectionStoreDirective, DbxFirebaseNotificationSummaryDocumentStoreDirective, DbxFirebaseNotificationTemplateService, DbxFirebaseNotificationUserCollectionStoreDirective, DbxFirebaseNotificationUserDocumentStoreDirective, DbxFirebaseParsedEmulatorsConfig, DbxFirebaseRegisterComponent, DbxFirebaseRegisterEmailComponent, DbxFirebaseStorageFileCollectionStoreDirective, DbxFirebaseStorageFileDocumentStoreDirective, DbxFirebaseStorageFileDownloadButtonComponent, DbxFirebaseStorageFileDownloadService, DbxFirebaseStorageFileDownloadStorage, DbxFirebaseStorageFileGroupDocumentStoreDirective, DbxFirebaseStorageFileUploadActionHandlerDirective, DbxFirebaseStorageFileUploadInitializeDocumentDirective, DbxFirebaseStorageFileUploadModule, DbxFirebaseStorageFileUploadStore, DbxFirebaseStorageFileUploadStoreDirective, DbxFirebaseStorageFileUploadSyncDirective, DbxFirebaseStorageService, DbxFirebaseSystemStateCollectionStoreDirective, DbxFirebaseSystemStateDocumentStoreDirective, DbxFirestoreContextService, DbxLimitedFirebaseDocumentLoaderInstance, FIREBASE_NOTIFICATION_ITEM_WIDGET_TYPE_PREFIX, FlatFirestoreModelKeyPipe, NotificationBoxCollectionStore, NotificationBoxDocumentStore, NotificationCollectionStore, NotificationDocumentStore, NotificationSummaryCollectionStore, NotificationSummaryDocumentStore, NotificationUserCollectionStore, NotificationUserDocumentStore, OAUTH_FIREBASE_LOGIN_METHOD_CATEGORY, StorageFileCollectionStore, StorageFileDocumentStore, StorageFileGroupDocumentStore, StorageFileUploadFilesError, SystemStateCollectionStore, SystemStateDocumentStore, TwoWayFlatFirestoreModelKeyPipe, authRolesObsWithClaimsService, authUserInfoFromAuthUser, authUserStateFromFirebaseAuthServiceFunction, dbxFirebaseAuthContextInfo, dbxFirebaseCollectionChangeTrigger, dbxFirebaseCollectionChangeTriggerForStore, dbxFirebaseCollectionChangeTriggerForWatcher, dbxFirebaseCollectionChangeWatcher, dbxFirebaseCollectionLoaderInstance, dbxFirebaseCollectionLoaderInstanceWithCollection, dbxFirebaseDocumentLoaderInstance, dbxFirebaseDocumentLoaderInstanceWithAccessor, dbxFirebaseDocumentStoreContextModelEntitiesSourceFactory, dbxFirebaseIdRouteParamRedirect, dbxFirebaseInContextFirebaseModelServiceInstance, dbxFirebaseInContextFirebaseModelServiceInstanceFactory, dbxFirebaseKeyRouteParamRedirect, dbxFirebaseModelContextServiceInfoInstanceFactory, dbxFirebaseModelEntityWidgetInjectionConfigFactory, dbxFirebaseModelTypesServiceInstance, dbxFirebaseModelTypesServiceInstancePairForKeysFactory, dbxFirebaseSourceSelectLoadSource, dbxFirebaseStorageFileDownloadServiceCustomSourceFromObs, dbxFirebaseStorageProvidersContextConfigFactory, dbxLimitedFirebaseDocumentLoaderInstance, dbxLimitedFirebaseDocumentLoaderInstanceWithAccessor, dbxWidgetTypeForNotificationTemplateType, defaultDbxFirebaseAuthServiceDelegateWithClaimsService, defaultDbxFirebaseStorageFileDownloadStorageAccessorFactory, developmentFirebaseServerSchedulerWidgetEntry, enableAppCheckDebugTokenGeneration, firebaseAuthTokenFromUser, firebaseCollectionStoreCreateFunction, firebaseCollectionStoreCrudFunction, firebaseContextServiceEntityMap, firebaseDocumentStoreCreateFunction, firebaseDocumentStoreCrudFunction, firebaseDocumentStoreDeleteFunction, firebaseDocumentStoreReadFunction, firebaseDocumentStoreUpdateFunction, importsAndExports, isDbxFirebaseModelEntityWithStore, linkDocumentStoreToParentContextStores, modelDoesNotExistError, provideDbxFirebase, provideDbxFirebaseAnalyticsUserEventsListenerService, provideDbxFirebaseApp, provideDbxFirebaseAuth, provideDbxFirebaseCollectionStoreDirective, provideDbxFirebaseCollectionWithParentStoreDirective, provideDbxFirebaseDevelopment, provideDbxFirebaseDocumentStoreContextStore, provideDbxFirebaseDocumentStoreDirective, provideDbxFirebaseDocumentStoreTwoWayKeyProvider, provideDbxFirebaseEmulator, provideDbxFirebaseFunctions, provideDbxFirebaseLogin, provideDbxFirebaseModelContextService, provideDbxFirebaseModelEntitiesWidgetService, provideDbxFirebaseNotifications, provideDbxFirebaseStorageFileService, provideDbxFirestoreCollection, provideNotificationFirestoreCollections, provideStorageFileFirestoreCollections, provideSystemStateFirestoreCollections, providedDbxFirebaseStorage, readDbxAnalyticsUserPropertiesFromAuthUserInfo, readValueFromIdToken, setParentStoreEffect, stateFromTokenForLoggedInUserFunction, storageFileUploadFiles, storageFileUploadHandler };
|
|
7541
7055
|
//# sourceMappingURL=dereekb-dbx-firebase.mjs.map
|