@sinequa/atomic-angular 0.1.39 → 0.1.43

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/index.d.ts CHANGED
@@ -13,7 +13,7 @@ import { cn, DialogService, DropdownComponent, DialogInterface, DialogComponent,
13
13
  import * as class_variance_authority_types from 'class-variance-authority/types';
14
14
  import { VariantProps } from 'class-variance-authority';
15
15
  import * as _angular_forms from '@angular/forms';
16
- import { ControlValueAccessor, FormGroup, FormControl } from '@angular/forms';
16
+ import { FormControl, FormGroup } from '@angular/forms';
17
17
  import { Placement } from '@floating-ui/dom';
18
18
  import * as _angular_common_http from '@angular/common/http';
19
19
  import { HttpInterceptorFn, HttpRequest, HttpHandlerFn, HttpClient, HttpHeaders, HttpContext, HttpParams, HttpResponse } from '@angular/common/http';
@@ -210,7 +210,7 @@ declare class MetadataComponent {
210
210
  event: Event;
211
211
  }>;
212
212
  class: _angular_core.InputSignal<string | undefined>;
213
- variant: _angular_core.InputSignal<any>;
213
+ variant: _angular_core.InputSignal<"default" | "destructive" | "outline" | "secondary" | null | undefined>;
214
214
  metadata: _angular_core.InputSignal<KeyOf<Article$1> | (string & Record<never, never>)>;
215
215
  article: _angular_core.InputSignal<Partial<Article$1> | (string & Record<never, never>)>;
216
216
  limit: _angular_core.InputSignalWithTransform<number | undefined, string | number | undefined>;
@@ -840,7 +840,7 @@ declare class OverflowStopDirective {
840
840
  * </ng-container>
841
841
  * ```
842
842
  */
843
- declare class OverflowManagerDirective implements OnDestroy {
843
+ declare class OverflowManagerDirective {
844
844
  readonly items: _angular_core.Signal<readonly ElementRef<any>[]>;
845
845
  readonly stop: _angular_core.Signal<ElementRef<any> | undefined>;
846
846
  readonly target: _angular_core.InputSignal<HTMLElement | undefined>;
@@ -848,11 +848,11 @@ declare class OverflowManagerDirective implements OnDestroy {
848
848
  readonly direction: _angular_core.InputSignal<"horizontal" | "vertical">;
849
849
  readonly count: _angular_core.OutputEmitterRef<number>;
850
850
  private readonly el;
851
+ private readonly destroyRef;
851
852
  private readonly resizeObserver;
852
853
  private countSub;
853
854
  private _lastCount;
854
855
  constructor();
855
- ngOnDestroy(): void;
856
856
  /**
857
857
  * Counts the number of items that can fit before the stop element.
858
858
  * Emits the count if it has changed.
@@ -990,28 +990,43 @@ declare class ChildMarkerDirective {
990
990
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ChildMarkerDirective, "[childMarker]", never, {}, {}, never, never, true, never>;
991
991
  }
992
992
 
993
- declare class SearchInputComponent implements ControlValueAccessor {
993
+ declare class SearchInputComponent {
994
994
  cn: typeof cn;
995
- searchElement: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
996
- onFocus: _angular_core.OutputEmitterRef<void>;
997
- onBlur: _angular_core.OutputEmitterRef<void>;
995
+ searchInput: _angular_core.Signal<ElementRef<any>>;
996
+ /**
997
+ * Emits an event when an element is selected or deselected.
998
+ *
999
+ * @remarks
1000
+ * The event payload is either the selected HTMLElement or `null` if the selection is cleared.
1001
+ *
1002
+ * @eventProperty
1003
+ */
998
1004
  onSelected: _angular_core.OutputEmitterRef<HTMLElement | null>;
1005
+ /**
1006
+ * A required form control for handling string input in the search component.
1007
+ *
1008
+ * This control is initialized using the `input.required` method, ensuring that
1009
+ * the associated input field is mandatory and will enforce validation for non-empty values.
1010
+ *
1011
+ * @remarks
1012
+ * This is typically used to bind to an Angular form input element, providing
1013
+ * reactive form validation and value tracking.
1014
+ *
1015
+ * @type FormControl<string>
1016
+ */
1017
+ control: _angular_core.InputSignal<FormControl<string>>;
999
1018
  controls: _angular_core.InputSignal<string>;
1000
1019
  keyboardNavigatorOptions: _angular_core.InputSignal<KeyboardNavigatorOptions>;
1001
1020
  placeholder: _angular_core.InputSignal<string>;
1002
1021
  disabled: _angular_core.InputSignal<boolean>;
1003
1022
  hotkey: _angular_core.InputSignal<string>;
1004
1023
  class: _angular_core.InputSignal<string | undefined>;
1005
- variant: _angular_core.InputSignal<any>;
1024
+ variant: _angular_core.InputSignal<"default" | "basic" | "prompt" | null | undefined>;
1006
1025
  variants: _angular_core.Signal<string>;
1026
+ onInput(event: Event): void;
1007
1027
  clearSearch(e: Event): void;
1008
- onChange: (value: string) => void;
1009
- onTouched: () => void;
1010
- writeValue(value: string): void;
1011
- registerOnChange(fn: (value: string) => void): void;
1012
- registerOnTouched(fn: () => void): void;
1013
1028
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SearchInputComponent, never>;
1014
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SearchInputComponent, "SearchInput", never, { "controls": { "alias": "controls"; "required": true; "isSignal": true; }; "keyboardNavigatorOptions": { "alias": "keyboardNavigatorOptions"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hotkey": { "alias": "hotkey"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "onFocus": "onFocus"; "onBlur": "onBlur"; "onSelected": "onSelected"; }, never, ["*"], true, never>;
1029
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SearchInputComponent, "SearchInput", never, { "control": { "alias": "control"; "required": true; "isSignal": true; }; "controls": { "alias": "controls"; "required": true; "isSignal": true; }; "keyboardNavigatorOptions": { "alias": "keyboardNavigatorOptions"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hotkey": { "alias": "hotkey"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, { "onSelected": "onSelected"; }, never, ["*"], true, never>;
1015
1030
  }
1016
1031
 
1017
1032
  type SortingChoice = CCSortingChoice & {
@@ -1734,7 +1749,12 @@ declare class SourceIconPipe implements PipeTransform {
1734
1749
  }
1735
1750
 
1736
1751
  declare class OperatorPipe implements PipeTransform {
1752
+ private readonly transloco;
1753
+ private lastTransformedValue;
1754
+ private readonly cdr;
1755
+ private readonly destroyRef;
1737
1756
  transform(filter?: LegacyFilter): string;
1757
+ private transformFilter;
1738
1758
  transformOperator(operator?: FilterOperator): string;
1739
1759
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<OperatorPipe, never>;
1740
1760
  static ɵpipe: _angular_core.ɵɵPipeDeclaration<OperatorPipe, "operator", true>;
@@ -5264,7 +5284,7 @@ declare class FilterButtonComponent {
5264
5284
  name: _angular_core.InputSignal<string>;
5265
5285
  column: _angular_core.InputSignal<string>;
5266
5286
  position: _angular_core.InputSignal<Placement>;
5267
- protected variant: _angular_core.WritableSignal<any>;
5287
+ protected variant: _angular_core.WritableSignal<"default" | "none" | "icon" | "destructive" | "link" | "outline" | "ai" | "inverse" | "tertiary" | "ghost" | null | undefined>;
5268
5288
  protected filter: _angular_core.WritableSignal<CFilterEx>;
5269
5289
  protected nativeElement: any;
5270
5290
  protected aggregationsStore: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sinequa/atomic-angular",
3
- "version": "0.1.39",
3
+ "version": "0.1.43",
4
4
  "i18n": [
5
5
  {
6
6
  "scope": "searches",
@@ -64,7 +64,7 @@
64
64
  }
65
65
  ],
66
66
  "peerDependencies": {
67
- "class-variance-authority": "^0.7.1"
67
+ "@angular/core": "^>=20.0.0"
68
68
  },
69
69
  "dependencies": {
70
70
  "@angular-architects/ngrx-toolkit": "^18.1.1",
@@ -72,6 +72,7 @@
72
72
  "@jsverse/transloco": "^7.6.1",
73
73
  "@ngrx/signals": "^18.1.1",
74
74
  "@ngrx/store": "^18.1.1",
75
+ "class-variance-authority": "^0.7.1",
75
76
  "highlight-words": "2.0.0",
76
77
  "tslib": "^2.3.0"
77
78
  },