@sumaris-net/ngx-components 18.23.66 → 18.23.68-1

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.66",
4
+ "version": "18.23.68-1",
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",
@@ -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
  }
@@ -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;
@@ -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.66",
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,30 @@ 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
+ --min-width: 80vw;
233
+ }
234
+
215
235
  .mat-mdc-select-panel {
216
236
  --mat-switch-visible-track-transition: transform 75ms 50ms cubic-bezier(0, 0, 0.2, 1);
217
237
  transition: --mat-switch-visible-track-transition;
@@ -232,13 +252,14 @@ mat-option:not(:last-of-type) {
232
252
  }
233
253
 
234
254
 
235
- .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel) {
255
+ .cdk-overlay-pane:has(.mat-mdc-autocomplete-panel){
236
256
  --min-width: 200px;
237
257
  --max-width: calc(min(100%, 100vw - 64px));
238
258
  min-width: var(--min-width) !important;
239
259
  max-width: var(--max-width) !important;
240
260
 
241
261
  // FIXME : This is a workaround find at : https://github.com/angular/components/issues/26000#issuecomment-1563107933
262
+ &:has(.min-width-fit-content),
242
263
  &:has(.mat-select-panel-fit-content) {
243
264
  --min-width: fit-content !important;
244
265
  }