@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.
@@ -3570,7 +3570,42 @@ declare class DbxFirebaseCollectionListDirective<T> {
3570
3570
  }
3571
3571
 
3572
3572
  /**
3573
- * Used to watch query doc changes and respond to them accordingly.
3573
+ * Watches a sibling {@link DbxFirebaseCollectionStoreDirective}'s query inputs
3574
+ * (constraints, collection mode, refs, etc.) and, when set to `'auto'`, calls
3575
+ * `store.restart()` so the collection re-runs and pulls fresh results.
3576
+ *
3577
+ * Use this directive when a `DbxFirebaseCollectionStoreDirective` subclass has
3578
+ * query inputs that change at runtime — by default the store does not react to
3579
+ * those changes, so this directive bridges the gap by composing
3580
+ * {@link dbxFirebaseCollectionChangeWatcher} with
3581
+ * {@link dbxFirebaseCollectionChangeTriggerForWatcher}.
3582
+ *
3583
+ * Modes (`DbxFirebaseCollectionChangeWatcherTriggerMode`):
3584
+ * - `'auto'` — automatically `restart()` the store when the query changes.
3585
+ * - `'off'` (default) — observe only; consumers may read `triggered$` / `event$` themselves.
3586
+ *
3587
+ * @dbxWebComponent
3588
+ * @dbxWebSlug firebase-collection-change
3589
+ * @dbxWebCategory action
3590
+ * @dbxWebKind directive
3591
+ * @dbxWebRelated firebase-collection-store
3592
+ * @dbxWebInputName dbxFirebaseCollectionChange
3593
+ * @dbxWebInputType DbxFirebaseCollectionChangeWatcherTriggerMode
3594
+ * @dbxWebInputRequired false
3595
+ * @dbxWebMinimalExample ```html
3596
+ * <my-items-list dbxFirebaseItemCollection [dbxFirebaseCollectionChange]="'auto'"></my-items-list>
3597
+ * ```
3598
+ *
3599
+ * @example
3600
+ * ```html
3601
+ * <!-- dbxFirebaseItemCollection extends DbxFirebaseCollectionStoreDirective; -->
3602
+ * <!-- when [constraints] changes, the store restarts and reloads. -->
3603
+ * <my-items-list
3604
+ * dbxFirebaseItemCollection
3605
+ * [constraints]="currentConstraints()"
3606
+ * [dbxFirebaseCollectionChange]="'auto'">
3607
+ * </my-items-list>
3608
+ * ```
3574
3609
  */
3575
3610
  declare class DbxFirebaseCollectionChangeDirective<T = unknown, D extends FirestoreDocument<T> = FirestoreDocument<T>, S extends DbxFirebaseCollectionStore<T, D> = DbxFirebaseCollectionStore<T, D>> implements DbxFirebaseCollectionChangeWatcher<S> {
3576
3611
  readonly dbxFirebaseCollectionStoreDirective: DbxFirebaseCollectionStoreDirective<T, D, S>;