@sumaris-net/ngx-components 18.1.2 → 18.1.4
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/doc/changelog.md +8 -0
- package/esm2022/src/app/core/menu/menu.service.mjs +14 -12
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +5 -4
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +5 -4
- package/esm2022/src/app/core/services/local-settings.service.mjs +3 -2
- package/esm2022/src/app/core/services/model/settings.model.mjs +4 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +90 -86
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/menu/menu.service.d.ts +6 -7
- package/src/app/core/services/model/settings.model.d.ts +1 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_material.scss +1 -4
- package/src/theme/_ngx-components.tabs.scss +19 -0
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { EventEmitter, InjectionToken } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
-
import { IMenuItem, MenuItem, MenuOptions } from './menu.model';
|
|
4
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { AlertController, ModalController, NavController } from '@ionic/angular';
|
|
4
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
5
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
5
6
|
import { Environment } from '../../../environments/environment.class';
|
|
7
|
+
import { StartableObservableService } from '../../shared/services/startable-observable-service.class';
|
|
6
8
|
import { AccountService } from '../services/account.service';
|
|
7
9
|
import { ConfigService } from '../services/config.service';
|
|
8
|
-
import { Account } from '../services/model/account.model';
|
|
9
|
-
import { StartableObservableService } from '../../shared/services/startable-observable-service.class';
|
|
10
10
|
import { LocalSettingsService } from '../services/local-settings.service';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { Account } from '../services/model/account.model';
|
|
12
|
+
import { IMenuItem, MenuItem, MenuOptions } from './menu.model';
|
|
13
13
|
import * as i0 from "@angular/core";
|
|
14
14
|
export type SplitPaneShowWhen = boolean | 'lg';
|
|
15
15
|
export declare const DEFAULT_MENU_SHOW_WHEN: SplitPaneShowWhen;
|
|
@@ -42,7 +42,6 @@ export declare class MenuService extends StartableObservableService<MenuItem[]>
|
|
|
42
42
|
private readonly _$splitPaneWhen;
|
|
43
43
|
private readonly _$enabled;
|
|
44
44
|
private readonly _$enableSubMenu;
|
|
45
|
-
private readonly _$listenRoute;
|
|
46
45
|
constructor(settings: LocalSettingsService, configService: ConfigService, accountService: AccountService, router: Router, modalCtrl: ModalController, alertController: AlertController, navController: NavController, translate: TranslateService, environment: Environment, options?: MenuOptions, staticItems?: IMenuItem[]);
|
|
47
46
|
get opened(): Observable<boolean>;
|
|
48
47
|
get splitPaneWhen(): Observable<SplitPaneShowWhen>;
|
|
@@ -2,7 +2,7 @@ import { Property, PropertyMap } from '../../../shared/types';
|
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
3
|
import { HistoryPageReference } from './history.model';
|
|
4
4
|
export type UsageMode = 'DESK' | 'FIELD';
|
|
5
|
-
export declare function isOnFieldMode(
|
|
5
|
+
export declare function isOnFieldMode(value: UsageMode): value is 'FIELD';
|
|
6
6
|
export declare interface LocaleConfig extends Property {
|
|
7
7
|
country?: string;
|
|
8
8
|
}
|
package/src/assets/manifest.json
CHANGED
|
@@ -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.1.
|
|
5
|
+
"version": "18.1.4",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
package/src/theme/_material.scss
CHANGED
|
@@ -19,10 +19,7 @@
|
|
|
19
19
|
.mat-mdc-tab-group.mat-primary .mat-ink-bar, .mat-mdc-tab-nav-bar.mat-primary .mat-ink-bar {
|
|
20
20
|
background-color: var(--ion-color-primary, $primary);
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
.mdc-tab {
|
|
24
|
-
min-width: 160px !important;
|
|
25
|
-
}
|
|
22
|
+
|
|
26
23
|
.mat-mdc-tab-group, .mat-mdc-tab-nav-bar {
|
|
27
24
|
--mat-tab-header-active-label-text-color: rgba($text-color-rgb, .8);
|
|
28
25
|
--mat-tab-header-active-focus-label-text-color: rgba($text-color-rgb, .8);
|
|
@@ -52,3 +52,22 @@
|
|
|
52
52
|
--mat-tab-header-divider-color: var(--ion-border-color, rgba(0,0,0,.12)) !important;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
+
|
|
56
|
+
// Keep some style element that have changed after angular 15 migration
|
|
57
|
+
// (but keep new style if enable stretch tabs)
|
|
58
|
+
.mat-mdc-tab-group:not(.mat-mdc-tab-group-stretch-tabs) {
|
|
59
|
+
.mdc-tab {
|
|
60
|
+
min-width: 160px;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
// Smaller tab label padding, on xxs device
|
|
66
|
+
@media screen and (max-width: $screen-xxs-max) {
|
|
67
|
+
.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs {
|
|
68
|
+
.mdc-tab {
|
|
69
|
+
// Reduce horizontal padding in tab label, from 24px to 16px (should be enough for badge)
|
|
70
|
+
padding: 0 16px;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|