@sumaris-net/ngx-components 18.23.0 → 18.23.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.0",
4
+ "version": "18.23.1",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -38,24 +38,26 @@
38
38
  "zone.js": "~0.14.10"
39
39
  },
40
40
  "optionalDependencies": {
41
- "@capacitor-community/native-audio": "~6.0.0",
42
- "@capacitor/android": "~6.2.0",
43
- "@capacitor/app": "~6.0.2",
44
- "@capacitor/browser": "~6.0.4",
45
- "@capacitor/camera": "~6.1.2",
46
- "@capacitor/clipboard": "~6.0.2",
47
- "@capacitor/core": "~6.2.0",
48
- "@capacitor/geolocation": "~6.1.0",
49
- "@capacitor/haptics": "~6.0.2",
50
- "@capacitor/keyboard": "~6.0.3",
51
- "@capacitor/network": "~6.0.3",
52
- "@capacitor/splash-screen": "~6.0.3",
53
- "@capacitor/status-bar": "~6.0.2",
41
+ "@capacitor-community/native-audio": "^7.0.1",
42
+ "@capacitor/android": "^7.4.4",
43
+ "@capacitor/app": "^7.1.0",
44
+ "@capacitor/browser": "^7.0.3",
45
+ "@capacitor/camera": "^7.0.2",
46
+ "@capacitor/clipboard": "^7.0.2",
47
+ "@capacitor/core": "^7.4.4",
48
+ "@capacitor/geolocation": "^7.1.6",
49
+ "@capacitor/haptics": "^7.0.2",
50
+ "@capacitor/ios": "^7.4.4",
51
+ "@capacitor/keyboard": "^7.0.3",
52
+ "@capacitor/network": "^7.0.3",
53
+ "@capacitor/splash-screen": "^7.0.3",
54
+ "@capacitor/status-bar": "^7.0.3",
54
55
  "@e-is/cordova-plugin-audiomanagement": "^1.0.3",
55
56
  "@e-is/cordova-plugin-downloader": "^1.2.0",
56
57
  "@awesome-cordova-plugins/core": "^6.16.0",
57
58
  "@awesome-cordova-plugins/audio-management": "^6.16.0",
58
59
  "@awesome-cordova-plugins/downloader": "^6.16.0",
60
+ "@capawesome/capacitor-android-edge-to-edge-support": "^7.2.3",
59
61
  "clipboard": "^2.0.11",
60
62
  "cordova-sqlite-storage": "~6.0.0",
61
63
  "emoji-toolkit": ">= 8.0.0 < 10.0.0",
@@ -46,7 +46,7 @@ export declare class AppInstallUpgradeCard implements OnInit, OnDestroy {
46
46
  download(event: Event, link: InstallAppLink): Promise<void>;
47
47
  openFile(event: Event, link: InstallAppLink): Promise<void>;
48
48
  tryOnline(): Promise<void>;
49
- getPlatformName(platform: 'android' | 'ios' | 'electron'): "desktop" | "" | "Android" | "iOS";
49
+ getPlatformName(platform: 'android' | 'ios' | 'electron'): "" | "desktop" | "Android" | "iOS";
50
50
  asLink(value: any): InstallAppLink;
51
51
  private checkNeedInstallOrUpdate;
52
52
  private getCompatibleInstallLinks;
@@ -91,6 +91,15 @@ export declare class PlatformService extends StartableService {
91
91
  filename?: string;
92
92
  } & Partial<DownloadRequest>): Observable<string | undefined>;
93
93
  copyToClipboard(data: string | WriteOptions, opts?: ShowToastOptions): Promise<void>;
94
+ updateTheme(options: {
95
+ darkMode?: boolean;
96
+ colors?: {
97
+ [color: string]: string;
98
+ };
99
+ vars?: {
100
+ [color: string]: string;
101
+ };
102
+ }): Promise<void>;
94
103
  toggleDarkTheme(enable: boolean): Promise<void>;
95
104
  toggleHighContrast(enable: boolean): void;
96
105
  showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
@@ -3,5 +3,6 @@ export declare class CapacitorPlugins {
3
3
  static readonly Camera = "Camera";
4
4
  static readonly StatusBar = "StatusBar";
5
5
  static readonly Keyboard = "Keyboard";
6
+ static readonly EdgeToEdge = "EdgeToEdge";
6
7
  static isAvailable: (name: string) => boolean;
7
8
  }
@@ -15,3 +15,20 @@ export declare function getColorTint(color: string): string;
15
15
  * @param bw if true, will use black or white color, instead of the exact inverse
16
16
  */
17
17
  export declare function getColorContrast(color: string, bw?: boolean): string;
18
+ /**
19
+ * Determine the luminance of a color
20
+ * Uses coefficients from http://stackoverflow.com/a/3943023/112731
21
+ *
22
+ * Note: Color must be in hex format (e.g. "#RRGGBB").
23
+ * @param color Hex color string
24
+ * @returns th color luminance
25
+ */
26
+ export declare function getColorLuminance(color: string): number;
27
+ /**
28
+ * Determine if a color is considered light based on perceived luminance.
29
+ *
30
+ * Note: Color must be in hex format (e.g. "#RRGGBB").
31
+ * @param color Hex color string
32
+ * @returns true if the color is light, false otherwise
33
+ */
34
+ export declare function isLightColor(color: string): boolean;
@@ -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): 1 | 0 | -1;
20
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 0 | 1 | -1;
21
21
  export interface CanGainFocusOptions {
22
22
  minTabindex?: number;
23
23
  maxTabindex?: 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": "18.23.0",
5
+ "version": "18.23.1",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -88,6 +88,18 @@ html {
88
88
  }
89
89
  }
90
90
 
91
+ ion-content {
92
+ --padding-bottom: var(--ion-safe-area-bottom);
93
+ }
94
+
95
+ ion-footer {
96
+ padding-bottom: var(--ion-safe-area-bottom);
97
+ }
98
+
99
+ ion-fab[vertical="bottom"] {
100
+ margin-bottom: var(--ion-safe-area-bottom);
101
+ }
102
+
91
103
  // --------------------------------------------------
92
104
  // Back button in app toolbar
93
105
  // --------------------------------------------------