@sumaris-net/ngx-components 18.6.64 → 18.6.66

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.6.64",
4
+ "version": "18.6.66",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -32,6 +32,7 @@ export interface HomePageState {
32
32
  showLegalInformation: boolean;
33
33
  showInstallLinks: boolean;
34
34
  pageHistory: HistoryPageReference[];
35
+ darkMode: boolean;
35
36
  }
36
37
  export declare class HomePage extends RxState<HomePageState> implements OnDestroy {
37
38
  private accountService;
@@ -49,6 +50,7 @@ export declare class HomePage extends RxState<HomePageState> implements OnDestro
49
50
  private readonly _debug;
50
51
  private _subscription;
51
52
  private _config;
53
+ protected darkMode$: import("rxjs").Observable<boolean>;
52
54
  protected pageHistory$: import("rxjs").Observable<HistoryPageReference[]>;
53
55
  protected loading$: import("rxjs").Observable<boolean>;
54
56
  protected readonly mobile: boolean;
@@ -79,6 +81,8 @@ export declare class HomePage extends RxState<HomePageState> implements OnDestro
79
81
  get showLegalInformation(): boolean;
80
82
  set showInstallLinks(value: boolean);
81
83
  get showInstallLinks(): boolean;
84
+ set darkMode(value: boolean);
85
+ get darkMode(): boolean;
82
86
  get currentLocaleCode(): string;
83
87
  get partnerBannerSize(): number;
84
88
  constructor(accountService: AccountService, modalCtrl: ModalController, translate: TranslateService, toastController: ToastController, configService: ConfigService, platform: PlatformService, cd: ChangeDetectorRef, network: NetworkService, settings: LocalSettingsService, environment: Environment, locales: LocaleConfig[], buttons: IMenuItem[]);
@@ -97,6 +101,7 @@ export declare class HomePage extends RxState<HomePageState> implements OnDestro
97
101
  protected onLogout(): void;
98
102
  protected refreshButtons(account?: Account): void;
99
103
  openMarkdownModal(event?: Event, item?: IMenuItem): Promise<void>;
104
+ protected toggleDarkMode(): Promise<void>;
100
105
  protected removePageHistory(path: string): Promise<void>;
101
106
  protected markForCheck(): void;
102
107
  static ɵfac: i0.ɵɵFactoryDeclaration<HomePage, [null, null, null, null, null, null, null, null, null, null, null, { optional: true; }]>;
@@ -92,6 +92,7 @@ export declare class PlatformService extends StartableService {
92
92
  } & Partial<DownloadRequest>): Observable<string | undefined>;
93
93
  copyToClipboard(data: string | WriteOptions, opts?: ShowToastOptions): Promise<void>;
94
94
  toggleDarkTheme(enable: boolean): void;
95
+ toggleHighContrast(enable: boolean): void;
95
96
  showToast(opts: ShowToastOptions): Promise<HTMLIonToastElement>;
96
97
  closeToast(id?: string): Promise<boolean>;
97
98
  protected configureTheme(mobile: boolean, win?: any): Promise<void>;
@@ -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;
@@ -261,6 +261,7 @@
261
261
  "BTN_DISCONNECT": "Disconnect this account",
262
262
  "BTN_MY_ACCOUNT": "My account",
263
263
  "BTN_REGISTER": "Register",
264
+ "BTN_DARK_MODE": "Dark or light theme",
264
265
  "SHOW_AT": "Show at",
265
266
  "LEGAL_INFORMATION": "Legal information",
266
267
  "PRIVACY_POLICY": "Privacy policy",
@@ -63,6 +63,7 @@
63
63
  "BTN_DECIMAL_SEPARATOR": ".",
64
64
  "EMPTY_OPTION": "(Empty)",
65
65
  "All_OPTION": "(All)",
66
+
66
67
  "DATE_PATTERN": "DD/MM/YYYY",
67
68
  "DATE_TIME_PATTERN": "DD/MM/YYYY HH:mm",
68
69
  "DATE_TIME_SECONDS_PATTERN": "DD/MM/YYYY HH:mm:ss",
@@ -260,6 +261,7 @@
260
261
  "BTN_DISCONNECT": "Disconnect this account",
261
262
  "BTN_MY_ACCOUNT": "My account",
262
263
  "BTN_REGISTER": "Register",
264
+ "BTN_DARK_MODE": "Dark or light theme",
263
265
  "SHOW_AT": "Show at",
264
266
  "LEGAL_INFORMATION": "Legal information",
265
267
  "PRIVACY_POLICY": "Privacy policy",
@@ -260,6 +260,7 @@
260
260
  "BTN_DISCONNECT": "Déconnecter ce compte",
261
261
  "BTN_MY_ACCOUNT": "Mon compte",
262
262
  "BTN_REGISTER": "S'inscrire",
263
+ "BTN_DARK_MODE": "Thème (sombre ou clair)",
263
264
  "SHOW_AT": "Consulté le ",
264
265
  "LEGAL_INFORMATION": "Informations légales",
265
266
  "PRIVACY_POLICY": "Politique de confidentialité",
@@ -414,7 +415,7 @@
414
415
  "NETWORK_DIVIDER": "Paramètres réseau",
415
416
  "PEER_URL": "Adresse du nœud réseau",
416
417
  "BTN_CHANGE_PEER": "Voir les nœuds disponibles",
417
- "BTN_DARK_MODE": "Mode sombre ? (expérimental)",
418
+ "BTN_DARK_MODE": "Thème sombre ? (expérimental)",
418
419
  "BTN_SHOW_ACCOUNT": "Voir mon compte",
419
420
  "BTN_SHOW_MORE_HELP": "Afficher plus de paramètres",
420
421
  "BTN_SHOW_OPTION_KEY": "Afficher le code des options ?",
@@ -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.6.64",
5
+ "version": "18.6.66",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -208,3 +208,7 @@ mat-icon[slot] {
208
208
  }
209
209
 
210
210
  }
211
+
212
+ .mat-mdc-dialog {
213
+ --mdc-dialog-container-color: var(--ion-background-color);
214
+ }
@@ -188,6 +188,8 @@
188
188
  --app-form-color-rgb: #{$background-color-rgb-value};
189
189
  --app-form-field-focus-background-color: rgba(#{$background-color-rgb-value}, 0.87);
190
190
 
191
+ //--mdc-dialog-container-color: var(--ion-background-color);
192
+
191
193
  // Step colors
192
194
  --ion-color-step-50: #{$text-color-step-50};
193
195
  --ion-color-step-100: #{$text-color-step-100};
@@ -737,12 +737,28 @@ mat-calendar {
737
737
  // --------------------------------------------------
738
738
 
739
739
  .timepicker {
740
- .timepicker-header {
740
+ .timepicker-header,
741
+ .timepicker-header .mat-toolbar.mat-accent{
741
742
  // Change header color to 'secondary'
742
743
  --mat-toolbar-container-background-color: var(--ion-color-secondary) !important;
744
+ --mat-toolbar-container-text-color: var(--ion-color-secondary-contrast) !important;
745
+ }
746
+
747
+ ngx-mat-timepicker-face .clock-face {
748
+ background-color: var(--app-form-field-background-color) !important;
749
+
750
+ .mat-toolbar.mat-accent {
751
+ --mat-toolbar-container-background-color: var(--ion-color-accent);
752
+ --mat-toolbar-container-text-color: var(--ion-color-accent-contrast);
753
+ }
754
+ button.mat-mdc-mini-fab.mat-accent {
755
+ --mdc-fab-small-container-color: var(--ion-color-accent);
756
+ --mat-fab-small-foreground-color: var(--ion-color-accent-contrast);
757
+ }
743
758
  }
744
759
  }
745
760
 
761
+
746
762
  .ngx-mat-timepicker-dialog {
747
763
  // Increase max-width for very small screen
748
764
  --mat-dialog-container-small-max-width: calc(100vw - var(--ion-padding, 16px) * 2);
@@ -978,3 +994,7 @@ mat-toolbar app-named-filter-selector {
978
994
  visibility: hidden;
979
995
  }
980
996
  }
997
+
998
+ // --------------------------------------------------
999
+ // Toolbar
1000
+ // --------------------------------------------------