@sumaris-net/ngx-components 2.18.0-alpha3 → 2.18.0-alpha5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@sumaris-net/ngx-components",
3
3
  "description": "SUMARiS Angular components",
4
- "version": "2.18.0-alpha3",
4
+ "version": "2.18.0-alpha5",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -22,15 +22,15 @@
22
22
  "@noble/ed25519": "^1.7.3",
23
23
  "@polkadot/util": "~12.6.2",
24
24
  "@polkadot/util-crypto": "~12.6.2",
25
- "@rx-angular/cdk": "~17.1.0",
26
- "@rx-angular/state": "~17.2.0",
27
- "@rx-angular/template": "~17.3.1",
25
+ "@rx-angular/cdk": "~18.0.0",
26
+ "@rx-angular/state": "~18.1.0",
27
+ "@rx-angular/template": "~18.0.3",
28
28
  "clone": "~2.1.2",
29
29
  "maildev": "^2.1.0",
30
30
  "tslib": "^2.3.0"
31
31
  },
32
32
  "peerDependencies": {
33
- "@apollo/client": "~3.11.5",
33
+ "@apollo/client": "~3.11.8",
34
34
  "@ionic/storage": "~4.0.0",
35
35
  "d3": "~7.6.1",
36
36
  "localforage": "~1.10.0",
@@ -1,11 +1,16 @@
1
1
  import * as momentImported from 'moment';
2
- import { Duration, Moment, unitOfTime } from 'moment';
2
+ import { Duration, DurationInputArg1, DurationInputArg2, Moment, MomentFormatSpecification, MomentInput, unitOfTime } from 'moment/moment';
3
+ declare type MomentFn = {
4
+ (inp?: MomentInput, strict?: boolean): Moment;
5
+ (inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
6
+ (inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
7
+ duration: (inp?: DurationInputArg1, unit?: DurationInputArg2) => Duration;
8
+ };
3
9
  export declare const DATE_UNIX_TIMESTAMP = "X";
4
10
  export declare const DATE_UNIX_MS_TIMESTAMP = "x";
5
11
  export declare const MOMENT_NO_TIME_PROPERTY = "_hasNoTime";
6
12
  export declare class DateUtils {
7
- static moment: typeof momentImported;
8
- static momentTZ: typeof momentImported;
13
+ static moment: MomentFn;
9
14
  static toDateISOString: typeof toDateISOString;
10
15
  static fromDateISOString: typeof fromDateISOString;
11
16
  static toDuration: typeof toDuration;
@@ -40,3 +45,4 @@ export declare function fromDateISOString(value: any): Moment | undefined;
40
45
  export declare function fromUnixTimestamp(timeInSec: number): momentImported.Moment;
41
46
  export declare function fromUnixMsTimestamp(timeInMs: number): momentImported.Moment;
42
47
  export declare function toDuration(value: number, unit?: unitOfTime.DurationConstructor): Duration;
48
+ export {};
@@ -5,8 +5,8 @@ export declare function selectInputRange(input: any, startIndex: number, endInde
5
5
  export declare function getCaretPosition(input: any): number;
6
6
  export declare function moveInputCaretToSeparator(event: KeyboardEvent, separator: string, forward?: boolean): boolean;
7
7
  export declare function filterNumberInput(event: KeyboardEvent, allowDecimals: boolean, decimalSeparator?: string): void;
8
- export declare function focusInput(element: ElementRef): void;
9
- export declare function setTabIndex(element: ElementRef, tabIndex: number): void;
8
+ export declare function focusInput<T = any>(element: ElementRef<T>): void;
9
+ export declare function setTabIndex<T = any>(element: ElementRef<T>, tabIndex: number): void;
10
10
  export interface InputElement extends FocusableElement {
11
11
  tabindex?: number;
12
12
  tabIndex?: number;
@@ -15,8 +15,8 @@ export interface InputElement extends FocusableElement {
15
15
  value: any;
16
16
  }
17
17
  export declare function isInputElement(object: any): object is InputElement;
18
- export declare function asInputElement(object: ElementRef): InputElement | undefined;
19
- export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
18
+ export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
19
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
20
20
  export interface CanGainFocusOptions {
21
21
  minTabindex?: number;
22
22
  maxTabindex?: number;
@@ -28,7 +28,7 @@ export interface GetFocusableInputOptions extends CanGainFocusOptions {
28
28
  }
29
29
  export declare function canHaveFocus(input: InputElement, opts?: CanGainFocusOptions): boolean;
30
30
  export declare function getFocusableInputElements(elements: QueryList<ElementRef>, opts?: GetFocusableInputOptions): InputElement[];
31
- export declare function focusNextInput(event: Event | undefined, elements: QueryList<ElementRef>, opts?: GetFocusableInputOptions): boolean;
32
- export declare function focusPreviousInput(event: Event | undefined, elements: QueryList<ElementRef>, opts?: GetFocusableInputOptions): boolean;
31
+ export declare function focusNextInput<T = any>(event: Event | undefined, elements: QueryList<ElementRef<T>>, opts?: GetFocusableInputOptions): boolean;
32
+ export declare function focusPreviousInput<T = any>(event: Event | undefined, elements: QueryList<ElementRef<T>>, opts?: GetFocusableInputOptions): boolean;
33
33
  export declare function getInputSelectionRangesFromMask(mask: (string | RegExp)[]): number[][];
34
34
  export declare function getInputRangeFromCaretIndex(caretIndex: number, inputRanges: number[][]): number[];
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.18.0-alpha3",
5
+ "version": "2.18.0-alpha5",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{