@thalassic/ui 22.19.1 → 22.19.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thalassic/ui",
3
- "version": "22.19.1",
3
+ "version": "22.19.3",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/aria": "^22.0.0",
@@ -1778,10 +1778,11 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1778
1778
  readonly virtualScrollItemSize: InputSignalWithTransform<number, unknown>;
1779
1779
  /**
1780
1780
  * The field's text, emitted as it is typed — the hook for answering a query from a source the
1781
- * control does not hold. Only typing emits: committing a selection, clearing, and closing the
1782
- * panel all rewrite the text too, and none of them is a search anyone asked for. Nothing is
1783
- * emitted while the text is shorter than {@link minQueryLength}. Any debouncing belongs to the
1784
- * listener.
1781
+ * control does not hold. A typed term is emitted once it reaches {@link minQueryLength}, and an
1782
+ * empty field is emitted however it was emptied (typing, the clear button, a search abandoned by
1783
+ * closing the panel), so a listener is never left holding results for a term the field no longer
1784
+ * shows. Restoring a committed selection's label emits nothing: the item is already chosen, and
1785
+ * searching for it again is noise. Any debouncing belongs to the listener.
1785
1786
  */
1786
1787
  readonly queryChange: OutputEmitterRef<string>;
1787
1788
  protected readonly hasValue: Signal<boolean>;
@@ -1812,6 +1813,13 @@ declare class Autocomplete<T, V = unknown> extends AbstractSelect<T, V, V | null
1812
1813
  protected clear(): void;
1813
1814
  protected getInitialActiveIndex(): number;
1814
1815
  protected commitActiveOption(option: Option<V>): void;
1816
+ /**
1817
+ * Writes the field's text, announcing it whenever the write leaves the field empty. An empty
1818
+ * field is the one state a listener cannot infer from silence — its last results answer a term
1819
+ * that is gone — so it is reported no matter which route emptied the field. A write that lands
1820
+ * on text, including a committed selection's restored label, says nothing on its own.
1821
+ */
1822
+ private _setQuery;
1815
1823
  static ɵfac: i0.ɵɵFactoryDeclaration<Autocomplete<any, any>, never>;
1816
1824
  static ɵcmp: i0.ɵɵComponentDeclaration<Autocomplete<any, any>, "tls-autocomplete", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "clearable": { "alias": "clearable"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "minQueryLength": { "alias": "minQueryLength"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "loadingMessage": { "alias": "loadingMessage"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "queryChange": "queryChange"; }, never, never, true, never>;
1817
1825
  }