@dereekb/dbx-firebase 13.11.3 → 13.11.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs +685 -222
- package/fesm2022/dereekb-dbx-firebase-oidc.mjs.map +1 -1
- package/fesm2022/dereekb-dbx-firebase.mjs +36 -1
- package/fesm2022/dereekb-dbx-firebase.mjs.map +1 -1
- package/package.json +11 -11
- package/types/dereekb-dbx-firebase-oidc.d.ts +425 -171
- package/types/dereekb-dbx-firebase.d.ts +36 -1
|
@@ -4892,7 +4892,42 @@ function provideDbxFirebaseCollectionStoreDirective(sourceType, storeType) {
|
|
|
4892
4892
|
}
|
|
4893
4893
|
|
|
4894
4894
|
/**
|
|
4895
|
-
*
|
|
4895
|
+
* Watches a sibling {@link DbxFirebaseCollectionStoreDirective}'s query inputs
|
|
4896
|
+
* (constraints, collection mode, refs, etc.) and, when set to `'auto'`, calls
|
|
4897
|
+
* `store.restart()` so the collection re-runs and pulls fresh results.
|
|
4898
|
+
*
|
|
4899
|
+
* Use this directive when a `DbxFirebaseCollectionStoreDirective` subclass has
|
|
4900
|
+
* query inputs that change at runtime — by default the store does not react to
|
|
4901
|
+
* those changes, so this directive bridges the gap by composing
|
|
4902
|
+
* {@link dbxFirebaseCollectionChangeWatcher} with
|
|
4903
|
+
* {@link dbxFirebaseCollectionChangeTriggerForWatcher}.
|
|
4904
|
+
*
|
|
4905
|
+
* Modes (`DbxFirebaseCollectionChangeWatcherTriggerMode`):
|
|
4906
|
+
* - `'auto'` — automatically `restart()` the store when the query changes.
|
|
4907
|
+
* - `'off'` (default) — observe only; consumers may read `triggered$` / `event$` themselves.
|
|
4908
|
+
*
|
|
4909
|
+
* @dbxWebComponent
|
|
4910
|
+
* @dbxWebSlug firebase-collection-change
|
|
4911
|
+
* @dbxWebCategory action
|
|
4912
|
+
* @dbxWebKind directive
|
|
4913
|
+
* @dbxWebRelated firebase-collection-store
|
|
4914
|
+
* @dbxWebInputName dbxFirebaseCollectionChange
|
|
4915
|
+
* @dbxWebInputType DbxFirebaseCollectionChangeWatcherTriggerMode
|
|
4916
|
+
* @dbxWebInputRequired false
|
|
4917
|
+
* @dbxWebMinimalExample ```html
|
|
4918
|
+
* <my-items-list dbxFirebaseItemCollection [dbxFirebaseCollectionChange]="'auto'"></my-items-list>
|
|
4919
|
+
* ```
|
|
4920
|
+
*
|
|
4921
|
+
* @example
|
|
4922
|
+
* ```html
|
|
4923
|
+
* <!-- dbxFirebaseItemCollection extends DbxFirebaseCollectionStoreDirective; -->
|
|
4924
|
+
* <!-- when [constraints] changes, the store restarts and reloads. -->
|
|
4925
|
+
* <my-items-list
|
|
4926
|
+
* dbxFirebaseItemCollection
|
|
4927
|
+
* [constraints]="currentConstraints()"
|
|
4928
|
+
* [dbxFirebaseCollectionChange]="'auto'">
|
|
4929
|
+
* </my-items-list>
|
|
4930
|
+
* ```
|
|
4896
4931
|
*/
|
|
4897
4932
|
class DbxFirebaseCollectionChangeDirective {
|
|
4898
4933
|
dbxFirebaseCollectionStoreDirective = inject((DbxFirebaseCollectionStoreDirective));
|