@sumaris-net/ngx-components 2.7.3-rc68 → 2.7.3-rc69

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": "2.7.3-rc68",
4
+ "version": "2.7.3-rc69",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -1,7 +1,7 @@
1
- import { MenuService } from '../menu.service';
2
1
  import { ActivatedRoute, Router } from '@angular/router';
3
2
  import { AlertController, NavController } from '@ionic/angular';
4
3
  import { TranslateService } from '@ngx-translate/core';
4
+ import { MenuService } from '../menu.service';
5
5
  import { MenuTestingPage } from './menu.testing';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class OtherMenuTestingPage extends MenuTestingPage {
@@ -1,10 +1,11 @@
1
- import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
1
+ import { AfterViewInit, EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { MenuService } from '../menu.service';
3
3
  import { AppTabEditor } from '../../form/entity/editor.class';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
5
  import { AlertController, NavController } from '@ionic/angular';
6
6
  import { TranslateService } from '@ngx-translate/core';
7
7
  import { Subject } from 'rxjs';
8
+ import { MatTabGroup } from '@angular/material/tabs';
8
9
  import * as i0 from "@angular/core";
9
10
  export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnDestroy, AfterViewInit {
10
11
  protected menuService: MenuService;
@@ -17,6 +18,12 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
17
18
  protected showThirdTab: boolean;
18
19
  protected $title: Subject<string>;
19
20
  protected $secondTabTitle: Subject<string>;
21
+ protected _subSelectedTabIndex: number;
22
+ subTabCount: number;
23
+ set subSelectedTabIndex(value: number);
24
+ get subSelectedTabIndex(): number;
25
+ readonly subSelectedTabIndexChange: EventEmitter<number>;
26
+ subTabGroup: MatTabGroup;
20
27
  protected set title(value: string);
21
28
  protected set secondTabTitle(value: string);
22
29
  constructor(route: ActivatedRoute, // Modal editor give 'null'
@@ -38,6 +45,7 @@ export declare class MenuTestingPage extends AppTabEditor implements OnInit, OnD
38
45
  protected getFirstInvalidTabIndex(): number;
39
46
  protected getDefaultTitle(): string;
40
47
  protected computeTitle(): Promise<string>;
48
+ setSubSelectedTabIndex(value: number): void;
41
49
  static ɵfac: i0.ɵɵFactoryDeclaration<MenuTestingPage, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuTestingPage, "app-testing-menu", never, {}, {}, never, never, false, never>;
50
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuTestingPage, "app-testing-menu", never, { "subSelectedTabIndex": { "alias": "subSelectedTabIndex"; "required": false; }; }, { "subSelectedTabIndexChange": "subSelectedTabIndexChange"; }, never, never, false, never>;
43
51
  }
@@ -2,7 +2,7 @@
2
2
  "name": "ngx-sumaris-components",
3
3
  "short_name": "ngx-sumaris-components",
4
4
  "manifest_version": 1,
5
- "version": "2.7.3-rc68",
5
+ "version": "2.7.3-rc69",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{
@@ -68,6 +68,8 @@ $text-color: $dark-primary-text;
68
68
  // --------------------------------------------------
69
69
  $overlay-background-color: var(--ion-overlay-background-color, #fafafa) !default;
70
70
  $ripple-background-color: var(--ion-ripple-background-color, #000) !default;
71
+ $ion-toolbar-background: whitesomke !default;
72
+
71
73
 
72
74
  // Default padding
73
75
  // --------------------------------------------------
@@ -68,4 +68,4 @@ $mat-tab-bar-height: 48px !default;
68
68
  $mat-tab-animation-duration: 200ms !default;
69
69
  $mat-toolbar-height-desktop: 64px !default;
70
70
  $mat-toolbar-height-mobile: 56px !default;
71
- $mat-toolbar-background-color: whitesmoke !default;
71
+ $mat-toolbar-background-color: var(--ion-toolbar-background) !default;
@@ -94,6 +94,7 @@
94
94
  color: var(--ion-color-warning-contrast);
95
95
  }
96
96
 
97
+
97
98
  // Progress bar
98
99
  .mat-progress-bar {
99
100
  --background-color: var(--ion-color-primary-tint, mix(#fff, $primary, 10%));
@@ -99,6 +99,7 @@
99
99
  --ion-padding: #{$ion-padding};
100
100
  --ion-margin: #{$ion-margin};
101
101
  --ion-toolbar-height: #{$ion-toolbar-height};
102
+ --ion-toolbar-background: #{$ion-toolbar-background};
102
103
 
103
104
  --expansion-panel-padding: var(--ion-padding);
104
105
  --expansion-panel-header-padding: var(--ion-padding);
@@ -107,18 +108,22 @@
107
108
  --mat-tab-bar-height: #{$mat-tab-bar-height};
108
109
 
109
110
  --mat-toolbar-height: #{$mat-toolbar-height-desktop};
110
- --mat-toolbar-background-color: #{$mat-toolbar-background-color};
111
111
  --mat-paginator-height: mat.$paginator-height;
112
+ --mat-toolbar-background-color: var(--ion-toolbar-background);
113
+ --mat-table-background-color: var(--ion-background);
112
114
 
113
115
  --app-table-header-height: #{$app-table-header-height};
114
116
  --app-paginator-height: #{$app-paginator-height};
115
117
  --app-toolbar-height: #{$app-toolbar-height};
116
118
  --app-footer-height: var(--app-form-buttons-bar-height);
117
119
  --app-form-buttons-bar-height: #{$app-form-buttons-bar-height};
120
+ --app-form-color: #{$app-form-color};
118
121
  --app-form-color-disabled: #{$app-form-color-disabled};
119
122
  --app-form-color-computed: #{$app-form-color-computed};
120
123
  --app-form-field-background-color: #{$app-form-field-background-color};
121
124
  --app-form-field-disabled-background-color: #{$app-form-field-disabled-background-color};
125
+ --app-table-row-item-selected-background-color: #{$app-table-row-item-selected-background-color};
126
+ --app-table-row-item-selected-text-color: #{$app-table-row-item-selected-text-color};
122
127
  }
123
128
 
124
129
  @mixin css-variables-to-root-mobile() {
@@ -4,7 +4,8 @@
4
4
  // --------------------------------------------------
5
5
  .form-container,
6
6
  form.form-container {
7
- color: #{$app-form-color};
7
+ --ion-text-color: var(--app-form-color, #{$app-form-color});
8
+ color: var(--ion-text-color);
8
9
  @include font-size(16px);
9
10
 
10
11
  --mdc-filled-text-field-container-color: var(--app-form-field-background-color);
@@ -12,11 +12,13 @@ $app-form-buttons-bar-height: 56px !default;
12
12
  $app-form-color: rgba(0, 0, 0, 0.87) !default;
13
13
  $app-form-color-disabled: rgba(0, 0, 0, 0.55) !default;
14
14
  $app-form-color-computed: var(--ion-color-primary-tint) !default;
15
- $app-form-field-background-color: rgb(245,245,245) !default; // Form's field background
15
+ $app-form-field-background-color: #f5f5f5 !default; // Form's field background
16
16
  $app-form-field-disabled-background-color: #fafafa !default;
17
17
 
18
18
  $app-select-option-border-color: rgba(0, 0, 0, 0.12) !default;
19
19
  $app-table-border-color: rgba(0, 0, 0, 0.08) !default;
20
+ $app-table-row-item-selected-background-color: var(--ion-color-secondary100) !default;
21
+ $app-table-row-item-selected-text-color: var(--ion-color-secondary100-contrast) !default;
20
22
 
21
23
  // Form fields background : transparent
22
24
  //$app-form-field-background-color: transparent !default;
@@ -128,12 +128,12 @@ ion-menu.menu-side-left {
128
128
 
129
129
 
130
130
  mat-form-field {
131
-
132
131
  .mat-paginator-page-size-select {
133
132
  @include font-size-important(14px);
134
133
  }
135
134
  }
136
135
 
136
+
137
137
  // --- mat-date-short-field
138
138
  mat-calendar.mat-date-short-panel {
139
139
  // Hide some buttons (e.g. to change the period)
@@ -345,7 +345,7 @@ ion-list,
345
345
  bottom: 0;
346
346
  z-index: 1001;
347
347
  border-top: 1px solid #{$app-select-option-border-color};
348
- background-color: whitesmoke;
348
+ background-color: var(--ion-toolbar-background, #{$ion-toolbar-background});
349
349
  color: var(--ion-color-medium) !important; // not working on mobile form because the mat-option is disabled
350
350
  @include font-size(12px);
351
351
  font-weight: 500;
@@ -8,10 +8,21 @@
8
8
  overflow-x: auto;
9
9
  }
10
10
 
11
+ .dark .mat-mdc-table {
12
+ --mdc-checkbox-selected-checkmark-color: var(--ion-text-color);
13
+ --mdc-checkbox-unselected-icon-color: var(--ion-text-color);
14
+ --mdc-checkbox-selected-icon-color: var(--ion-color-accent);
15
+ --mdc-checkbox-unselected-focus-icon-color: var(--ion-text-color);
16
+ --mdc-checkbox-unselected-hover-icon-color: var(--ion-text-color);
17
+ --mdc-checkbox-unselected-pressed-icon-color: var(--ion-color-accent);
18
+ }
11
19
 
12
20
  .mat-mdc-table {
13
21
  min-width: calc(100% - 1px);
14
22
  border-collapse: separate;
23
+ --mat-table-background-color: var(--ion-background-color);
24
+ --mat-table-row-item-label-text-color: var(--ion-text-color);
25
+ --mat-table-row-item-outline-color: var(--ion-border-color);
15
26
  --mat-table-row-item-label-text-size: 14px;
16
27
  --mat-table-row-item-label-text-tracking: normal;
17
28
  --mat-row-height: #{$app-table-row-height};
@@ -28,9 +39,10 @@
28
39
  --mdc-checkbox-state-layer-size: 20px;
29
40
  --mdc-filled-text-field-container-color: transparent;
30
41
  --mdc-filled-text-field-disabled-container-color: transparent;
31
- --mat-select-enabled-trigger-text-color: var(--mat-table-row-item-label-text-color);
32
- --mat-select-disabled-trigger-text-color: var(--mat-table-row-item-label-text-color);
33
-
42
+ --mdc-filled-text-field-input-text-color: var(--ion-text-color);
43
+ --mat-select-enabled-trigger-text-color: var(--ion-text-color);
44
+ --mat-select-disabled-trigger-text-color: var(--ion-text-color);
45
+ --mdc-form-field-label-text-color: var(--ion-text-color);
34
46
 
35
47
  .mat-mdc-header-cell {
36
48
  color: var(--ion-color-primary);
@@ -208,10 +220,8 @@
208
220
  .mat-cell-computed,
209
221
  .mat-mdc-cell ion-text.computed,
210
222
  .mat-mdc-cell ion-label.computed,{
211
- --color: var(--app-form-color-computed, #{$app-form-color-computed}) !important;
212
- --mdc-filled-text-field-input-text-color: var(--app-form-color-computed, #{$app-form-color-computed}) !important;
213
-
214
- color: var(--color) !important;
223
+ --ion-text-color: var(--app-form-color-computed, #{$app-form-color-computed}) !important;
224
+ color: var(--ion-text-color) !important;
215
225
  font-style: italic;
216
226
  }
217
227
  }
@@ -237,19 +247,27 @@
237
247
 
238
248
  &.mat-mdc-row-selected,
239
249
  &.mat-row-selected {
240
- background-color: var(--ion-color-secondary100);
250
+ --ion-text-color: var(--app-table-row-item-selected-text-color) !important;
251
+ --ion-background-color: var(--app-table-row-item-selected-background-color) !important;;
252
+
253
+ --mdc-filled-text-field-input-text-color: var(--ion-text-color);
254
+ --mat-select-enabled-trigger-text-color: var(--ion-text-color);
255
+ --mat-select-disabled-trigger-text-color: var(--ion-text-color);
256
+ --mdc-form-field-label-text-color: var(--ion-text-color);
257
+
258
+ background-color: var(--ion-background-color);
241
259
 
242
260
  &:not(.mat-mdc-row-error):not(.mat-row-error):hover {
243
- background-color: var(--ion-color-secondary100);
261
+ background-color: var(--ion-background-color);
244
262
  }
245
263
 
246
264
  .mat-mdc-cell {
247
- color: var(--ion-color-secondary100-contrast);
265
+ color: var(--ion-text-color);
248
266
  }
249
267
 
250
268
  &.mat-mdc-row-disabled:hover,
251
269
  &.mat-row-disabled:hover {
252
- background-color: var(--ion-color-secondary100-shade) !important;
270
+ background-color: var(--ion-background-color) !important;
253
271
  }
254
272
 
255
273
  }
@@ -267,7 +285,6 @@
267
285
  // Error row
268
286
  &.mat-mdc-row-error,
269
287
  &.mat-row-error {
270
- //border-left: 3px solid var(--ion-color-danger-tint) !important;
271
288
  background-color: var(--ion-color-warning-tint);
272
289
 
273
290
  &.mat-mdc-row-disabled:hover,
@@ -526,9 +543,13 @@
526
543
  }
527
544
  }
528
545
 
546
+ // Paginator
529
547
  .mat-mdc-paginator {
530
548
  --mat-paginator-container-size: var(--app-paginator-height, #{$app-paginator-height});
531
- --mat-paginator-container-background-color: whitesmoke;
549
+ --mat-paginator-container-background-color: var(--ion-toolbar-background, #{$ion-toolbar-background});
550
+ --mat-paginator-container-text-tracking: normal;
551
+ --mat-paginator-container-text-color: var(--app-form-color, #{$app-form-color});
552
+
532
553
  overflow-y: hidden;
533
554
 
534
555
  .mat-mdc-paginator-page-size-select {
@@ -37,3 +37,16 @@
37
37
  display: inherit;
38
38
  }
39
39
 
40
+ // --- Dark mode
41
+ .dark {
42
+ .mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
43
+ --mat-tab-header-active-label-text-color: var(--ion-text-color, #000000de) !important;
44
+ --mat-tab-header-active-focus-label-text-color: var(--ion-text-color, #000000de) !important;
45
+ --mat-tab-header-active-hover-label-text-color: var(--ion-text-color, #000000de) !important;
46
+ --mat-tab-header-inactive-label-text-color: var(--app-form-color-disabled);
47
+ --mat-tab-header-inactive-hover-label-text-color: var(--ion-text-color, #000000de);
48
+ }
49
+ .mat-mdc-tab-label-container, .mat-mdc-tab-link-container {
50
+ --mat-tab-header-divider-color: var(--ion-border-color, rgba(0,0,0,.12)) !important;
51
+ }
52
+ }
@@ -0,0 +1,130 @@
1
+
2
+ /** Ionic CSS Variables **/
3
+ html {
4
+ @include css-variables-to-root();
5
+
6
+ --ion-background-color: white;
7
+ --ion-background-color-rgb: 255, 255, 255;
8
+ --ion-toolbar-background: whitesmoke;
9
+
10
+ }
11
+
12
+ html.dark {
13
+ --ion-color-primary: #428cff;
14
+ --ion-color-primary-rgb: 66, 140, 255;
15
+ --ion-color-primary-contrast: #ffffff;
16
+ --ion-color-primary-contrast-rgb: 255, 255, 255;
17
+ --ion-color-primary-shade: #3a7be0;
18
+ --ion-color-primary-tint: #5598ff;
19
+
20
+ --ion-color-secondary: #75C4FD;
21
+ --ion-color-secondary-rgb: 117, 196, 253;
22
+ --ion-color-secondary-contrast: #ffffff;
23
+ --ion-color-secondary-contrast-rgb: 255, 255, 255;
24
+ --ion-color-secondary-shade: #46b0e0;
25
+ --ion-color-secondary-tint: #62ceff;
26
+
27
+ --ion-color-tertiary: #6a64ff;
28
+ --ion-color-tertiary-rgb: 106, 100, 255;
29
+ --ion-color-tertiary-contrast: #ffffff;
30
+ --ion-color-tertiary-contrast-rgb: 255, 255, 255;
31
+ --ion-color-tertiary-shade: #5d58e0;
32
+ --ion-color-tertiary-tint: #7974ff;
33
+
34
+ --ion-color-success: #2fdf75;
35
+ --ion-color-success-rgb: 47, 223, 117;
36
+ --ion-color-success-contrast: #000000;
37
+ --ion-color-success-contrast-rgb: 0, 0, 0;
38
+ --ion-color-success-shade: #29c467;
39
+ --ion-color-success-tint: #44e283;
40
+
41
+ --ion-color-warning: #FF6434;
42
+ --ion-color-warning-rgb: 255, 100, 52;
43
+ --ion-color-warning-contrast: #000000;
44
+ --ion-color-warning-contrast-rgb: 0, 0, 0;
45
+ --ion-color-warning-shade: #E0BB4B;
46
+ --ion-color-warning-tint: #FFDA48;
47
+
48
+ --ion-color-danger: #fa0021;
49
+ --ion-color-danger-rgb: 255, 0, 33;
50
+ --ion-color-danger-contrast: #ffffff;
51
+ --ion-color-danger-contrast-rgb: 255, 255, 255;
52
+ --ion-color-danger-shade: #e04055;
53
+ --ion-color-danger-tint: #ff5b71;
54
+
55
+ --ion-color-dark: #f4f5f8;
56
+ --ion-color-dark-rgb: 244, 245, 248;
57
+ --ion-color-dark-contrast: #000000;
58
+ --ion-color-dark-contrast-rgb: 0, 0, 0;
59
+ --ion-color-dark-shade: #d7d8da;
60
+ --ion-color-dark-tint: #f5f6f9;
61
+
62
+ --ion-color-medium: #989aa2;
63
+ --ion-color-medium-rgb: 152, 154, 162;
64
+ --ion-color-medium-contrast: #000000;
65
+ --ion-color-medium-contrast-rgb: 0, 0, 0;
66
+ --ion-color-medium-shade: #86888f;
67
+ --ion-color-medium-tint: #a2a4ab;
68
+
69
+ --ion-color-light: #222428;
70
+ --ion-color-light-rgb: 34, 36, 40;
71
+ --ion-color-light-contrast: #ffffff;
72
+ --ion-color-light-contrast-rgb: 255, 255, 255;
73
+ --ion-color-light-shade: #1e2023;
74
+ --ion-color-light-tint: #383a3e;
75
+
76
+ }
77
+
78
+
79
+ html.md.dark {
80
+
81
+ --app-form-color-disabled: #949494;
82
+ --app-form-color: var(--ion-text-color);
83
+
84
+ --ion-background-color: #121212;
85
+ --ion-background-color-rgb: 18, 18, 18;
86
+
87
+ --ion-text-color: #ffffffde;
88
+ --ion-text-color-rgb: 255, 255, 255;
89
+
90
+ --ion-border-color: #222222;
91
+
92
+ --ion-color-step-50: #1e1e1e;
93
+ --ion-color-step-100: #2a2a2a;
94
+ --ion-color-step-150: #363636;
95
+ --ion-color-step-200: #414141;
96
+ --ion-color-step-250: #4d4d4d;
97
+ --ion-color-step-300: #595959;
98
+ --ion-color-step-350: #656565;
99
+ --ion-color-step-400: #717171;
100
+ --ion-color-step-450: #7d7d7d;
101
+ --ion-color-step-500: #898989;
102
+ --ion-color-step-550: #949494;
103
+ --ion-color-step-600: #a0a0a0;
104
+ --ion-color-step-650: #acacac;
105
+ --ion-color-step-700: #b8b8b8;
106
+ --ion-color-step-750: #c4c4c4;
107
+ --ion-color-step-800: #d0d0d0;
108
+ --ion-color-step-850: #dbdbdb;
109
+ --ion-color-step-900: #e7e7e7;
110
+ --ion-color-step-950: #f3f3f3;
111
+
112
+ --ion-item-background: #1e1e1e;
113
+
114
+ --ion-toolbar-background: #1f1f1f;
115
+
116
+ --ion-tab-bar-background: #1f1f1f;
117
+
118
+ --ion-card-background: #1e1e1e;
119
+
120
+ ion-menu ion-content {
121
+ --background: transparent;
122
+ --background-color: rgba(var(--ion-color-primary900-rgb), 0.4) !important;
123
+ }
124
+
125
+ //.mat-mdc-table {
126
+ // --app-table-row-item-selected-background-color: var(--ion-color-accent);
127
+ // --app-table-row-item-selected-text-color: var(--ion-color-accent-contrast);
128
+ //}
129
+ }
130
+