@sumaris-net/ngx-components 18.23.67 → 18.23.68-2

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.23.67",
4
+ "version": "18.23.68-2",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -42,19 +42,20 @@
42
42
  "@awesome-cordova-plugins/core": "^6.16.0",
43
43
  "@awesome-cordova-plugins/downloader": "^6.16.0",
44
44
  "@capacitor-community/native-audio": "^7.0.1",
45
- "@capacitor/android": "^7.4.4",
46
- "@capacitor/app": "^7.1.0",
47
- "@capacitor/browser": "^7.0.3",
48
- "@capacitor/camera": "^7.0.2",
49
- "@capacitor/clipboard": "^7.0.2",
50
- "@capacitor/core": "^7.4.4",
45
+ "@capacitor/android": "^7.4.5",
46
+ "@capacitor/app": "^7.1.2",
47
+ "@capacitor/browser": "^7.0.5",
48
+ "@capacitor/camera": "^7.0.5",
49
+ "@capacitor/clipboard": "^7.0.4",
50
+ "@capacitor/core": "^7.4.5",
51
+ "@capacitor/device": "^7.0.5",
51
52
  "@capacitor/geolocation": "^7.1.6",
52
- "@capacitor/haptics": "^7.0.2",
53
- "@capacitor/ios": "^7.4.4",
54
- "@capacitor/keyboard": "^7.0.3",
55
- "@capacitor/network": "^7.0.3",
56
- "@capacitor/splash-screen": "^7.0.3",
57
- "@capacitor/status-bar": "^7.0.3",
53
+ "@capacitor/haptics": "^7.0.5",
54
+ "@capacitor/ios": "^7.4.5",
55
+ "@capacitor/keyboard": "^7.0.6",
56
+ "@capacitor/network": "^7.0.4",
57
+ "@capacitor/splash-screen": "^7.0.5",
58
+ "@capacitor/status-bar": "^7.0.6",
58
59
  "@capawesome/capacitor-android-edge-to-edge-support": "^7.2.3",
59
60
  "@e-is/cordova-plugin-audiomanagement": "^1.0.3",
60
61
  "@e-is/cordova-plugin-downloader": "^1.2.0",
@@ -95,4 +96,4 @@
95
96
  }
96
97
  },
97
98
  "sideEffects": false
98
- }
99
+ }
@@ -19,6 +19,7 @@ import { OpenOptions } from '@capacitor/browser';
19
19
  import { ILoggingService } from '../../shared/logging/logger.model';
20
20
  import { Clipboard as CdkClipboard } from '@angular/cdk/clipboard';
21
21
  import { WriteOptions } from '@capacitor/clipboard/dist/esm/definitions';
22
+ import { DeviceInfo } from '@capacitor/device';
22
23
  import * as i0 from "@angular/core";
23
24
  export declare const AndroidOsEnvironment: Readonly<{
24
25
  DIRECTORY_DOWNLOADS: "Download";
@@ -111,6 +112,7 @@ export declare class PlatformService extends StartableService {
111
112
  }) => void): Promise<Subscription>;
112
113
  showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
113
114
  closeToast(id?: string): Promise<boolean>;
115
+ getDeviceInfo(): Promise<DeviceInfo>;
114
116
  protected configureTheme(mobile: boolean, win?: any): Promise<void>;
115
117
  protected configureCapacitorPlugins(): Promise<void>;
116
118
  protected configureTranslate(): void;
@@ -4,5 +4,6 @@ export declare class CapacitorPlugins {
4
4
  static readonly StatusBar = "StatusBar";
5
5
  static readonly Keyboard = "Keyboard";
6
6
  static readonly EdgeToEdge = "EdgeToEdge";
7
+ static readonly Device = "Device";
7
8
  static isAvailable: (name: string) => boolean;
8
9
  }
@@ -18,7 +18,7 @@ export interface InputElement extends FocusableElement {
18
18
  }
19
19
  export declare function isInputElement(object: any): object is InputElement;
20
20
  export declare function asInputElement<T = any>(object: ElementRef<T>): InputElement | undefined;
21
- export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
21
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
22
22
  export interface CanGainFocusOptions {
23
23
  minTabindex?: number;
24
24
  maxTabindex?: number;
@@ -4,23 +4,11 @@ export declare class VersionUtils {
4
4
  static isSame: typeof isSameVersion;
5
5
  }
6
6
  /**
7
- * Compare two software version numbers (e.g. 1.7.1)
8
- * Returns:
9
- *
10
- * 0 if they're identical
11
- * negative if v1 < v2
12
- * positive if v1 > v2
13
- * Nan if they in the wrong format
14
- *
15
- * E.g.:
16
- *
17
- * assert(version_number_compare("1.7.1", "1.6.10") > 0);
18
- * assert(version_number_compare("1.7.1", "1.7.10") < 0);
19
- *
20
- * "Unit tests": http://jsfiddle.net/ripper234/Xv9WL/28/
21
- *
22
- * Taken from http://stackoverflow.com/a/6832721/11236
7
+ * Compares two Semantic Versioning 2.0.0 strings
8
+ * @param {string} v1 - First version string
9
+ * @param {string} v2 - Second version string
10
+ * @returns {number} -1 if v1 < v2, 0 if equal, 1 if v1 > v2
23
11
  */
24
- export declare function compareVersionNumbers(v1: any, v2: any): number;
12
+ export declare function compareVersionNumbers(v1: string, v2: string, comparePrerelease?: boolean): number;
25
13
  export declare function isVersionCompatible(minVersion: any, actualVersion: any): boolean;
26
14
  export declare function isSameVersion(v1: any, v2: any): boolean;
@@ -15,7 +15,7 @@ export declare class JobProgressionComponent extends RxState<JobProgressionState
15
15
  name$: Observable<string>;
16
16
  message$: Observable<string>;
17
17
  value$: Observable<number>;
18
- type$: Observable<"determinate" | "indeterminate">;
18
+ type$: Observable<"indeterminate" | "determinate">;
19
19
  constructor();
20
20
  ngOnInit(): void;
21
21
  ngOnDestroy(): void;
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "18.23.67",
5
+ "version": "18.23.68-1",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -208,10 +208,31 @@ mat-option:not(:last-of-type) {
208
208
  max-width: var(--max-width) !important;
209
209
 
210
210
  // FIXME : This is a workaround find at : https://github.com/angular/components/issues/26000#issuecomment-1563107933
211
+ &:has(.min-width-fit-content),
211
212
  &:has(.mat-select-panel-fit-content) {
212
213
  --min-width: fit-content !important;
213
214
  }
214
215
 
216
+ &:has(.min-width-medium),
217
+ &:has(.mat-select-panel-panel-medium-size) {
218
+ --min-width: 300px;
219
+ }
220
+
221
+ &:has(.min-width-large),
222
+ &:has(.mat-select-panel-large-size) {
223
+ --min-width: 400px;
224
+ }
225
+
226
+ &:has(.min-width-xlarge),
227
+ &:has(.mat-select-panel-xlarge-size) {
228
+ --min-width: 450px;
229
+ }
230
+
231
+ &:has(.min-width-80vw),
232
+ &:has(.mat-select-panel-80vw-size) {
233
+ --min-width: 80vw;
234
+ }
235
+
215
236
  .mat-mdc-select-panel {
216
237
  --mat-switch-visible-track-transition: transform 75ms 50ms cubic-bezier(0, 0, 0.2, 1);
217
238
  transition: --mat-switch-visible-track-transition;
@@ -232,13 +253,14 @@ mat-option:not(:last-of-type) {
232
253
  }
233
254
 
234
255
 
235
- .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel) {
256
+ .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel){
236
257
  --min-width: 200px;
237
258
  --max-width: calc(min(100%, 100vw - 64px));
238
259
  min-width: var(--min-width) !important;
239
260
  max-width: var(--max-width) !important;
240
261
 
241
262
  // FIXME : This is a workaround find at : https://github.com/angular/components/issues/26000#issuecomment-1563107933
263
+ &:has(.min-width-fit-content),
242
264
  &:has(.mat-select-panel-fit-content) {
243
265
  --min-width: fit-content !important;
244
266
  }
@@ -258,12 +280,15 @@ mat-option:not(:last-of-type) {
258
280
  --min-width: 450px;
259
281
  }
260
282
 
261
- &:has(.min-width-80vw) {
283
+ &:has(.min-width-80vw),
284
+ &:has(.mat-mdc-autocomplete-panel-80vw-size){
262
285
  --min-width: 80vw;
263
286
  }
264
287
 
265
- &:has(.mat-mdc-autocomplete-panel-full-size),
266
- &:has(.full-size) {
288
+ &:has(.full-size),
289
+ &:has(.full-width),
290
+ &:has(.mat-mdc-autocomplete-panel-full-size)
291
+ {
267
292
  --margin-left: 32px;
268
293
  --margin-right: 32px;
269
294
  --min-width: calc(100vw - var(--margin-left) - var(--margin-right));