@arsedizioni/ars-utils 18.2.151 → 18.2.153

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.
@@ -23,9 +23,9 @@ export declare class ClipperSearchDialogComponent implements OnInit, OnDestroy {
23
23
  protected regions: NameValueItem<string>[];
24
24
  protected channels: NameValueItem<ClipperChannel>[];
25
25
  protected sources: NameValueItem<string>[] | null;
26
- protected authors: NameValueItem<string>[] | null;
27
- protected types: NameValueItem<string>[] | null;
28
- protected topics: NameValueItem<string>[] | null;
26
+ protected authors: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
27
+ protected types: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
28
+ protected topics: import("@angular/core").WritableSignal<NameValueItem<string>[]>;
29
29
  interval: DateInterval;
30
30
  sourceInterval: DateInterval;
31
31
  ngOnInit(): void;
@@ -1,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class FormatPipe implements PipeTransform {
4
- transform(value: any, type?: string, pattern?: string): any;
4
+ transform(value: Date | number | null | undefined, type?: string, pattern?: string): string | null;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<FormatPipe, never>;
6
6
  static ɵpipe: i0.ɵɵPipeDeclaration<FormatPipe, "format", true>;
7
7
  static ɵprov: i0.ɵɵInjectableDeclaration<FormatPipe>;
@@ -1,8 +1,9 @@
1
1
  import { PipeTransform } from '@angular/core';
2
+ import { SafeHtml } from '@angular/platform-browser';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class ReplacePipe implements PipeTransform {
4
5
  private sanitizer;
5
- transform(value: string, regexValue: string, replaceValue: string): any;
6
+ transform(value: string | null | undefined, regexValue: string, replaceValue: string): SafeHtml;
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<ReplacePipe, never>;
7
8
  static ɵpipe: i0.ɵɵPipeDeclaration<ReplacePipe, "replace", true>;
8
9
  static ɵprov: i0.ɵɵInjectableDeclaration<ReplacePipe>;
@@ -3,7 +3,7 @@ import { SafeHtml } from '@angular/platform-browser';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SafeHtmlPipe implements PipeTransform {
5
5
  private sanitizer;
6
- transform(value: string): SafeHtml;
6
+ transform(value: string | null | undefined): SafeHtml;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
8
8
  static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", true>;
9
9
  static ɵprov: i0.ɵɵInjectableDeclaration<SafeHtmlPipe>;
@@ -3,7 +3,7 @@ import { SafeHtml } from '@angular/platform-browser';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SafeUrlPipe implements PipeTransform {
5
5
  private sanitizer;
6
- transform(value: string): SafeHtml;
6
+ transform(value: string | null | undefined): SafeHtml;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
8
8
  static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "safeUrl", true>;
9
9
  static ɵprov: i0.ɵɵInjectableDeclaration<SafeUrlPipe>;
@@ -1,7 +1,7 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class SearchCallbackPipe implements PipeTransform {
4
- transform(items: any[], callback: (item: any) => boolean): any;
4
+ transform(items: any[] | null | undefined, callback: (item: any) => boolean): any;
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchCallbackPipe, never>;
6
6
  static ɵpipe: i0.ɵɵPipeDeclaration<SearchCallbackPipe, "callback", true>;
7
7
  }
@@ -2,7 +2,7 @@ import { PipeTransform } from '@angular/core';
2
2
  import { SearchFilterMetadata } from '../definitions';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class SearchFilterPipe implements PipeTransform {
5
- transform(items: any[], value: string | null | undefined, metadata?: SearchFilterMetadata): any;
5
+ transform(items: any[] | null | undefined, value: string | null | undefined, metadata?: SearchFilterMetadata): any;
6
6
  static ɵfac: i0.ɵɵFactoryDeclaration<SearchFilterPipe, never>;
7
7
  static ɵpipe: i0.ɵɵPipeDeclaration<SearchFilterPipe, "search", true>;
8
8
  static ɵprov: i0.ɵɵInjectableDeclaration<SearchFilterPipe>;
package/core/system.d.ts CHANGED
@@ -29,7 +29,7 @@ export declare class SystemUtils {
29
29
  * @param value : the value to search for
30
30
  * @returns : the property value or null
31
31
  */
32
- static arrayFindByKey<T>(array: T[], key: string, value: any): T;
32
+ static arrayFindByKey<T>(array: T[] | null | undefined, key: string, value: any): T | null;
33
33
  /**
34
34
  * Array find index by key
35
35
  * @param array : the array to scan
@@ -37,14 +37,14 @@ export declare class SystemUtils {
37
37
  * @param value : the value to search for
38
38
  * @returns : the array index or -1 if not found
39
39
  */
40
- static arrayFindIndexByKey<T>(array: T[], key: string, value: any): number;
40
+ static arrayFindIndexByKey<T>(array: T[] | null | undefined, key: string, value: any): number;
41
41
  /**
42
42
  * Get a value from and array made of name|value items
43
43
  * @param array : the array to scan
44
44
  * @param value : the value to search for
45
45
  * @returns : the property value or null if not found
46
46
  */
47
- static arrayGetValue<T>(array: any, value: T): any;
47
+ static arrayGetValue<T>(array: T[] | null | undefined, value: any): any;
48
48
  /**
49
49
  * Convert items to nodes into a tree structure
50
50
  * @param items : list of nodes