ets-fe-ng-sdk 20.3.5 → 20.3.7

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
@@ -710,7 +710,7 @@ declare class TableCol<TRow = any> implements ITableCol<TRow> {
710
710
  /** Field name from row data to display in this column */
711
711
  f: KeyOfType<TRow, string | number | boolean | undefined | null>;
712
712
  /** Function to format the cell value for display */
713
- formatter?: (val: any) => string | undefined | Promise<string | undefined> | Observable<string | undefined>;
713
+ formatter?: (val: any) => string | undefined | null | Promise<string | undefined | null> | Observable<string | undefined | null>;
714
714
  /** Function to format the cell value when expanded */
715
715
  expandedFormatter?: (val: any) => string | undefined | Promise<string | undefined> | Observable<string | undefined>;
716
716
  /** Function to generate hint/tooltip text for the cell */
@@ -3112,7 +3112,7 @@ declare class NumberFormatService {
3112
3112
  readonly numberFormat: _angular_core.WritableSignal<"AM" | "EU">;
3113
3113
  readonly isNormal: _angular_core.Signal<boolean>;
3114
3114
  readonly locale: _angular_core.Signal<"en-US" | "fr-FR">;
3115
- readonly decimal: _angular_core.Signal<"," | ".">;
3115
+ readonly decimal: _angular_core.Signal<"." | ",">;
3116
3116
  constructor();
3117
3117
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<NumberFormatService, never>;
3118
3118
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<NumberFormatService>;
@@ -3208,7 +3208,7 @@ declare class UtilityService<TEnvironment extends SDKEnvironment = SDKEnvironmen
3208
3208
  * @returns Array containing value, validators, and async validators
3209
3209
  * @template T - Type of the form control value
3210
3210
  */
3211
- formControl: <T>(value?: T | null, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (T | ValidatorFn | FormControlOptions | ValidatorFn[] | AsyncValidatorFn | AsyncValidatorFn[])[];
3211
+ formControl: <T>(value?: T | null, validatorOrOpts?: ValidatorFn | ValidatorFn[] | FormControlOptions, asyncValidator?: AsyncValidatorFn | AsyncValidatorFn[]) => (FormControlOptions | ValidatorFn | AsyncValidatorFn | ValidatorFn[] | AsyncValidatorFn[] | T)[];
3212
3212
  /**
3213
3213
  * Navigates back to the previous page using Angular's Location service
3214
3214
  */
@@ -3257,6 +3257,9 @@ declare class UtilityService<TEnvironment extends SDKEnvironment = SDKEnvironmen
3257
3257
  * subscription.unsubscribe();
3258
3258
  */
3259
3259
  onlyOneInput(inputs: FormControl[]): Subscription;
3260
+ formatCode: (map: {
3261
+ [code: string]: Partial<ICodeTitle & ICodeDescription>;
3262
+ }) => (code: string | undefined | null) => string;
3260
3263
  /**
3261
3264
  * Copies a payload to clipboard in debug mode
3262
3265
  * @param payload - Data to be copied to clipboard
@@ -5674,13 +5677,13 @@ declare class BtnComponent implements OnInit {
5674
5677
  */
5675
5678
  set customIcon(v: string);
5676
5679
  /** Form to bind to the button for validation */
5677
- readonly form: _angular_core.InputSignal<AbstractControl<any, any, any> | FormControl<any> | FormArray<any> | FormGroup<any>>;
5680
+ readonly form: _angular_core.InputSignal<AbstractControl<any, any, any> | FormGroup<any> | FormArray<any> | FormControl<any>>;
5678
5681
  /** Subject for form changes */
5679
5682
  protected readonly formStateRes: _angular_core.ResourceRef<boolean>;
5680
5683
  /** Signal for form validity state */
5681
5684
  protected readonly formState: _angular_core.Signal<boolean>;
5682
5685
  /** Multiple forms to bind to the button for validation */
5683
- readonly forms: _angular_core.InputSignal<(AbstractControl<any, any, any> | FormControl<any> | FormArray<any> | FormGroup<any>)[]>;
5686
+ readonly forms: _angular_core.InputSignal<(AbstractControl<any, any, any> | FormGroup<any> | FormArray<any> | FormControl<any>)[]>;
5684
5687
  /** Signal for multiple forms validity state */
5685
5688
  protected readonly formsStateRes: _angular_core.ResourceRef<Omit<IFormState, "status">>;
5686
5689
  protected readonly formsState: _angular_core.Signal<boolean>;
@@ -7980,7 +7983,7 @@ declare class InfoDialogComponent implements OnInit {
7980
7983
  * @param status Status code (0=danger, 1=success, 2=info, 3=warning)
7981
7984
  * @returns CSS class name corresponding to the status
7982
7985
  */
7983
- cls: (status?: 0 | 1 | 2 | 3) => "" | "info" | "danger" | "success" | "warning";
7986
+ cls: (status?: 0 | 1 | 2 | 3) => "info" | "danger" | "success" | "" | "warning";
7984
7987
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<InfoDialogComponent, never>;
7985
7988
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<InfoDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
7986
7989
  }
@@ -8857,7 +8860,7 @@ declare class ResizeGridPipe implements PipeTransform {
8857
8860
  */
8858
8861
  declare class IndexCompLayoutComponent {
8859
8862
  /** Number of columns in the grid layout */
8860
- readonly grid: InputSignal<5 | 3 | 1 | 2 | 4 | 6 | "auto">;
8863
+ readonly grid: InputSignal<5 | 1 | 3 | 2 | 4 | "auto" | 6>;
8861
8864
  /** Whether to show the action buttons */
8862
8865
  readonly showButtons: InputSignal<boolean>;
8863
8866
  /** Whether to hide the clone button */
@@ -10493,7 +10496,7 @@ declare class TableHttpsComponent<TItem = any> extends TableBaseComponent<TItem>
10493
10496
  readonly form: FormGroup<{
10494
10497
  pageNumber: FormControl<number>;
10495
10498
  sortBy: FormControl<keyof TItem>;
10496
- sortDirection: FormControl<"" | "DESC" | "ASC">;
10499
+ sortDirection: FormControl<"" | "ASC" | "DESC">;
10497
10500
  pageSize: FormControl<number>;
10498
10501
  }>;
10499
10502
  /**
@@ -10502,7 +10505,7 @@ declare class TableHttpsComponent<TItem = any> extends TableBaseComponent<TItem>
10502
10505
  readonly allQueryData: _angular_core.Signal<{
10503
10506
  pageNumber: number;
10504
10507
  sortBy: keyof TItem;
10505
- sortDirection: "" | "DESC" | "ASC";
10508
+ sortDirection: "" | "ASC" | "DESC";
10506
10509
  pageSize: number;
10507
10510
  }>;
10508
10511
  /**
@@ -10511,7 +10514,7 @@ declare class TableHttpsComponent<TItem = any> extends TableBaseComponent<TItem>
10511
10514
  readonly formValue: _angular_core.Signal<{
10512
10515
  pageNumber: number;
10513
10516
  sortBy: keyof TItem;
10514
- sortDirection: "" | "DESC" | "ASC";
10517
+ sortDirection: "" | "ASC" | "DESC";
10515
10518
  pageSize: number;
10516
10519
  }>;
10517
10520
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ets-fe-ng-sdk",
3
- "version": "20.3.5",
3
+ "version": "20.3.7",
4
4
  "repository": {
5
5
  "url": "https://github.com/Evolutics-Tech/ets-fe-sdk"
6
6
  },