@kuzntsv/uikit 1.0.54 → 1.0.56

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": "@kuzntsv/uikit",
3
- "version": "1.0.54",
3
+ "version": "1.0.56",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^22.2.2",
6
6
  "@angular/core": "^22.2.2",
@@ -914,10 +914,27 @@ export declare abstract class BaseSignalFilterClass<F extends SafeFilterState> {
914
914
  * this.filters.update(prev => ({ ...prev, category: newCategory }));
915
915
  * }
916
916
  */
917
+ /** Двусторонняя модель теперь строго типизирована вашим SafeFilterState. */
917
918
  filters: import("@angular/core").ModelSignal<F>;
918
919
  /** Входной сигнал для сброса состояния формы. */
919
920
  clearFilter: import("@angular/core").InputSignal<any>;
920
921
  protected isUseInternalFilterSignal: number;
922
+ /**
923
+ * Локальный сигнал формы, чтобы изолировать ввод пользователя
924
+ * от родительской двусторонней модели filters.
925
+ *
926
+ * ### ВАЖНО:
927
+ * * При использовании для создания формы и в шаблоне, необходимо задать
928
+ * isUseInternalFilterSignal = 1, чтобы при clearFilter чистилась правильная модель.
929
+ *
930
+ * @example
931
+ * protected isUseInternalFilterSignal = 1;
932
+ * protected form = form(this.internalFilterSignal, (schemaPath) => {
933
+ * // Дебаунсим только текстовые инпут dept. Остальные обновятся мгновенно.
934
+ * debounce(schemaPath.dept, this.defaultDebounceTime);
935
+ * });
936
+ *
937
+ * */
921
938
  protected internalFilterSignal: import("@angular/core").WritableSignal<F>;
922
939
  protected abstract DEFAULT_FILTER: F;
923
940
  /**
@@ -925,6 +942,10 @@ export declare abstract class BaseSignalFilterClass<F extends SafeFilterState> {
925
942
  * Метод unsubscribe вызывается при уничтожении компонента.
926
943
  */
927
944
  constructor();
945
+ /** Мгновенная очистка конкретного поля по крестику у двусторонней модели filters. */
946
+ clearField(fieldName: keyof F, defaultValue: any): void;
947
+ /** Мгновенная очистка конкретного поля по крестику. */
948
+ clearFieldInternal(fieldName: keyof F, defaultValue: any): void;
928
949
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseSignalFilterClass<any>, never>;
929
950
  static ɵdir: i0.ɵɵDirectiveDeclaration<BaseSignalFilterClass<any>, never, never, {
930
951
  "filters": {