@sumaris-net/ngx-components 18.3.30-alpha1 → 18.3.30-alpha2

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": "18.3.30-alpha1",
4
+ "version": "18.3.30-alpha2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -17,7 +17,7 @@ export interface InputElement extends FocusableElement {
17
17
  }
18
18
  export declare function isInputElement(object: any): object is InputElement;
19
19
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
20
- export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
20
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | -1 | 0;
21
21
  export interface CanGainFocusOptions {
22
22
  minTabindex?: number;
23
23
  maxTabindex?: number;
@@ -10,8 +10,27 @@ export interface ILatLongData {
10
10
  sign: LatLongSignValue;
11
11
  }
12
12
  export declare const MASKS: {
13
- [key: string]: {
14
- [pattern: string]: Array<string | RegExp>;
13
+ latitude: {
14
+ DDMMSS: (string | RegExp)[];
15
+ DDMM: (string | RegExp)[];
16
+ DD: (string | RegExp)[];
17
+ };
18
+ longitude: {
19
+ DDMMSS: (string | RegExp)[];
20
+ DDMM: (string | RegExp)[];
21
+ DD: (string | RegExp)[];
22
+ };
23
+ };
24
+ export declare const MASK_RANGES: {
25
+ latitude: {
26
+ DDMMSS: number[][];
27
+ DDMM: number[][];
28
+ DD: number[][];
29
+ };
30
+ longitude: {
31
+ DDMMSS: number[][];
32
+ DDMM: number[][];
33
+ DD: number[][];
15
34
  };
16
35
  };
17
36
  export declare class LatLongFormatOptions {
@@ -19,7 +38,6 @@ export declare class LatLongFormatOptions {
19
38
  maxDecimals?: number;
20
39
  placeholderChar?: string;
21
40
  hideSign?: boolean;
22
- inputSelectionRanges?: number[][];
23
41
  fixLatLong?: boolean;
24
42
  }
25
43
  export declare const LAT_LONG_PATTERN_MAX_DECIMALS = 3;
@@ -28,13 +46,13 @@ export declare function computeDecimalPart(value: number, nbOfDecimals: number):
28
46
  export declare function formatLatLong(value: number, type: LatLongType, opts?: Partial<LatLongFormatOptions>): string;
29
47
  export declare function formatLatitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
30
48
  export declare function formatLongitude(value: number | null, opts?: Partial<LatLongFormatOptions>): string;
31
- export declare function splitNumberToFieldsDD(value: number, opts: LatLongFormatOptions & {
49
+ export declare function splitDegreesToDDArray(value: number, opts: LatLongFormatOptions & {
32
50
  longitude: boolean;
33
51
  }): (number | string)[];
34
- export declare function splitNumberToFieldsDDMM(value: number, opts: LatLongFormatOptions & {
52
+ export declare function splitDegreesToDDMMArray(value: number, opts: LatLongFormatOptions & {
35
53
  longitude: boolean;
36
54
  }): number[];
37
- export declare function splitNumberToFieldsDDMMSS(value: number, opts: LatLongFormatOptions & {
55
+ export declare function splitDegreesToDDMMSSArray(value: number, opts: LatLongFormatOptions & {
38
56
  longitude: boolean;
39
57
  }): number[];
40
58
  export declare function parseLatitudeOrLongitude(input: string, pattern: string, maxDecimals?: number, placeholderChar?: string): number | null;
@@ -76,27 +76,19 @@
76
76
  "DATE_PLACEHOLDER": "mm/dd/yyyy",
77
77
  "DATE_TIME_PLACEHOLDER": "mm/dd/yyyy hh:mm",
78
78
  "LAT_LONG": {
79
- "DDMMSS_PLACEHOLDER": "DD° MM' SS.SS\"",
80
- "DDMM_PLACEHOLDER": "DD° MM.MMM'",
81
- "DD_PLACEHOLDER": "+DD.DDD°",
82
- "DDDMMSS_PLACEHOLDER": "DDD° MM' SS.SS\"",
83
- "DDDMM_PLACEHOLDER": "DDD° MM.MMM'",
84
- "DDD_PLACEHOLDER": "+DDD.DDD°",
79
+ "DD_PLACEHOLDER": "DD",
80
+ "DD_DDDDDDD_PLACEHOLDER": "± DD.DDDDDDD",
81
+ "DDD_PLACEHOLDER": "DDD",
82
+ "DDD_DDDDDDD_PLACEHOLDER": "±DDD.DDDDDDD",
83
+ "MM_PLACEHOLDER": "MM",
84
+ "MM_MMM_PLACEHOLDER": "MM.MMM",
85
+ "SS_SS_PLACEHOLDER": "SS.SS",
85
86
  "LAT_SIGN_PLACEHOLDER": "N|S",
86
87
  "LAT_SIGN_N": "N",
87
88
  "LAT_SIGN_S": "S",
88
89
  "LONG_SIGN_PLACEHOLDER": "E|W",
89
90
  "LONG_SIGN_E": "E",
90
- "LONG_SIGN_W": "W",
91
- "SINGLE_FIELD_PATTERN": {
92
- "DD": "DD",
93
- "DD_PLACEHOLDER": "± DD.DDDDDDD",
94
- "DDD": "DDD",
95
- "DDD_PLACEHOLDER": "±DDD.DDDDDDD",
96
- "MM": "MM",
97
- "MM_MMM": "MM.MMM",
98
- "SS_SS": "SS.SS"
99
- }
91
+ "LONG_SIGN_W": "W"
100
92
  },
101
93
  "METADATA": "Metadata:",
102
94
  "DAY_UNIT": "j",
@@ -136,11 +128,11 @@
136
128
  },
137
129
  "DEBUG": {
138
130
  "TITLE": "Debug",
139
- "BTN_DEBUG_DOTS": "Débogage...",
131
+ "BTN_DEBUG_DOTS": "Debug...",
140
132
  "BTN_ENABLE_DEBUG": "Enable debug?"
141
133
  },
142
134
  "NAMED_FILTER": {
143
- "TITLE": "Saved filters",
135
+ "TITLE": "Saved filter",
144
136
  "SAVE": "Save the filter",
145
137
  "DELETE": "Delete the filter",
146
138
  "DELETED": "Filter deleted",
@@ -153,8 +145,8 @@
153
145
  },
154
146
  "CONFIGURATION": {
155
147
  "OPTIONS": {
156
- "ANDROID_INSTALL_URL": "Android > Install App URL",
157
- "IOS_INSTALL_URL": "iOS > Install App URL",
148
+ "ANDROID_INSTALL_URL": "App > Android > Install App URL",
149
+ "IOS_INSTALL_URL": "App > iOS > Install App URL",
158
150
  "DB_TIMEZONE": "Persistence > Database timezone (readonly option)",
159
151
  "LOGO": "Menu > Logo (max width 110px)",
160
152
  "FAVICON": "favicon",
@@ -75,27 +75,19 @@
75
75
  "DATE_PLACEHOLDER": "dd/mm/yyyy",
76
76
  "DATE_TIME_PLACEHOLDER": "dd/mm/yyyy hh:mm",
77
77
  "LAT_LONG": {
78
- "DDMMSS_PLACEHOLDER": "DD° MM' SS.SS\"",
79
- "DDMM_PLACEHOLDER": "DD° MM.MMM'",
80
- "DD_PLACEHOLDER": "+DD.DDD°",
81
- "DDDMMSS_PLACEHOLDER": "DDD° MM' SS.SS\"",
82
- "DDDMM_PLACEHOLDER": "DDD° MM.MMM'",
83
- "DDD_PLACEHOLDER": "+DDD.DDD°",
78
+ "DD_PLACEHOLDER": "DD",
79
+ "DD_DDDDDDD_PLACEHOLDER": "± DD.DDDDDDD",
80
+ "DDD_PLACEHOLDER": "DDD",
81
+ "DDD_DDDDDDD_PLACEHOLDER": "±DDD.DDDDDDD",
82
+ "MM_PLACEHOLDER": "MM",
83
+ "MM_MMM_PLACEHOLDER": "MM.MMM",
84
+ "SS_SS_PLACEHOLDER": "SS.SS",
84
85
  "LAT_SIGN_PLACEHOLDER": "N|S",
85
86
  "LAT_SIGN_N": "N",
86
87
  "LAT_SIGN_S": "S",
87
88
  "LONG_SIGN_PLACEHOLDER": "E|W",
88
89
  "LONG_SIGN_E": "E",
89
- "LONG_SIGN_W": "W",
90
- "SINGLE_FIELD_PATTERN": {
91
- "DD": "DD",
92
- "DD_PLACEHOLDER": "± DD.DDDDDDD",
93
- "DDD": "DDD",
94
- "DDD_PLACEHOLDER": "±DDD.DDDDDDD",
95
- "MM": "MM",
96
- "MM_MMM": "MM.MMM",
97
- "SS_SS": "SS.SS"
98
- }
90
+ "LONG_SIGN_W": "W"
99
91
  },
100
92
  "METADATA": "Metadata:",
101
93
  "DAY_UNIT": "j",
@@ -75,27 +75,19 @@
75
75
  "DATE_PLACEHOLDER": "jj/mm/aaaa",
76
76
  "DATE_TIME_PLACEHOLDER": "jj/mm/aaaa hh:mm",
77
77
  "LAT_LONG": {
78
- "DDMMSS_PLACEHOLDER": "DD° MM' SS.SS\"",
79
- "DDMM_PLACEHOLDER": "DD° MM.MMM'",
80
- "DD_PLACEHOLDER": "± DD.DDDDDDD°",
81
- "DDDMMSS_PLACEHOLDER": "DDD° MM' SS.SS\"",
82
- "DDDMM_PLACEHOLDER": "DDD° MM.MMM'",
83
- "DDD_PLACEHOLDER": "±DDD.DDDDDDD°",
78
+ "DD_PLACEHOLDER": "DD",
79
+ "DD_DDDDDDD_PLACEHOLDER": "± DD.DDDDDDD",
80
+ "DDD_PLACEHOLDER": "DDD",
81
+ "DDD_DDDDDDD_PLACEHOLDER": "±DDD.DDDDDDD",
82
+ "MM_PLACEHOLDER": "MM",
83
+ "MM_MMM_PLACEHOLDER": "MM",
84
+ "SS_SS_PLACEHOLDER": "SS",
84
85
  "LAT_SIGN_PLACEHOLDER": "N|S",
85
86
  "LAT_SIGN_N": "N",
86
87
  "LAT_SIGN_S": "S",
87
88
  "LONG_SIGN_PLACEHOLDER": "E|W",
88
89
  "LONG_SIGN_E": "E",
89
- "LONG_SIGN_W": "W",
90
- "SINGLE_FIELD_PATTERN": {
91
- "DD": "DD",
92
- "DD_PLACEHOLDER": "± DD.DDDDDDD",
93
- "DDD": "DDD",
94
- "DDD_PLACEHOLDER": "±DDD.DDDDDDD",
95
- "MM": "MM",
96
- "MM_MMM": "MM.MMM",
97
- "SS_SS": "SS.SS"
98
- }
90
+ "LONG_SIGN_W": "W"
99
91
  },
100
92
  "METADATA": "Metadata:",
101
93
  "DAY_UNIT": "j",