@sumaris-net/ngx-components 18.6.58 → 18.6.60
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 +6 -0
- package/esm2022/src/app/admin/users/users.mjs +2 -2
- package/esm2022/src/app/core/account/account.page.mjs +1 -1
- package/esm2022/src/app/core/account/password/change-password.page.mjs +2 -2
- package/esm2022/src/app/core/home/home.mjs +2 -2
- package/esm2022/src/app/core/menu/testing/menu-other.testing.mjs +1 -1
- package/esm2022/src/app/core/menu/testing/menu.testing.mjs +1 -1
- package/esm2022/src/app/core/register/register-confirm.page.mjs +1 -1
- package/esm2022/src/app/core/services/model/entity.model.mjs +4 -1
- package/esm2022/src/app/core/settings/settings.page.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table.testing.mjs +1 -1
- package/esm2022/src/app/core/table/testing/table2.testing.mjs +1 -1
- package/esm2022/src/app/shared/named-filter/testing/named-filter-selector.testing.mjs +1 -1
- package/esm2022/src/app/shared/toast/toast.testing.mjs +11 -8
- package/esm2022/src/app/shared/toast/toasts.mjs +15 -29
- package/esm2022/src/app/shared/toolbar/toolbar.mjs +7 -3
- package/fesm2022/sumaris-net.ngx-components.mjs +44 -49
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/core/services/model/entity.model.d.ts +1 -0
- package/src/app/shared/toast/toast.testing.d.ts +1 -1
- package/src/app/shared/toast/toasts.d.ts +2 -3
- package/src/app/shared/toolbar/toolbar.d.ts +3 -1
- package/src/assets/manifest.json +1 -1
- package/src/theme/_ngx-components.scss +2 -2
package/package.json
CHANGED
|
@@ -102,4 +102,5 @@ export declare abstract class EntityUtils {
|
|
|
102
102
|
*/
|
|
103
103
|
static collectById<T extends IEntity<T, ID>, ID = any>(entities: T[]): ID[];
|
|
104
104
|
static arrayDistinctFilterFn<E extends IEntity<any, any>>(item: E, index: number, values: E[]): boolean;
|
|
105
|
+
static findById<E extends IEntity<any, ID> = IEntity<any, any>, ID = number>(items: E[], id: ID): E | undefined;
|
|
105
106
|
}
|
|
@@ -3,7 +3,7 @@ import { ShowToastOptions } from './toasts';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ToastTestingPage {
|
|
5
5
|
private injector;
|
|
6
|
-
|
|
6
|
+
protected options: ShowToastOptions;
|
|
7
7
|
constructor(injector: Injector);
|
|
8
8
|
showToast(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
9
9
|
showInfo(opts?: ShowToastOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ToastController } from '@ionic/angular';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
-
import {
|
|
3
|
+
import { OverlayEventDetail, ToastOptions } from '@ionic/core';
|
|
4
4
|
import { Injector } from '@angular/core';
|
|
5
5
|
export declare interface ShowToastOptions extends ToastOptions {
|
|
6
6
|
type?: 'error' | 'warning' | 'info';
|
|
@@ -13,5 +13,4 @@ export declare class Toasts {
|
|
|
13
13
|
static stackSize: number;
|
|
14
14
|
static showSimple<T = any>(injector: Injector, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
15
15
|
static show<T = any>(toastController: ToastController, translate: TranslateService, opts: ShowToastOptions): Promise<OverlayEventDetail<T>>;
|
|
16
|
-
static createEnterAnimation(animationCtrl: AnimationController, currentOffset: number, opts: ShowToastOptions): AnimationBuilder;
|
|
17
16
|
}
|
|
@@ -14,6 +14,7 @@ export declare abstract class ToolbarToken {
|
|
|
14
14
|
abstract goBack(): Promise<boolean>;
|
|
15
15
|
abstract canGoBack: boolean;
|
|
16
16
|
}
|
|
17
|
+
export declare const TOOLBAR_HEADER_ID = "app-toolbar-header";
|
|
17
18
|
export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy {
|
|
18
19
|
private route;
|
|
19
20
|
private router;
|
|
@@ -32,6 +33,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
|
|
|
32
33
|
title: string;
|
|
33
34
|
color: AppColors;
|
|
34
35
|
class: string;
|
|
36
|
+
id: string;
|
|
35
37
|
set backHref(value: string);
|
|
36
38
|
get backHref(): string;
|
|
37
39
|
set defaultBackHref(value: string);
|
|
@@ -59,7 +61,7 @@ export declare class ToolbarComponent implements ToolbarToken, OnInit, OnDestroy
|
|
|
59
61
|
protected ionSearchBarChanged(event: Event): void;
|
|
60
62
|
protected markForCheck(): void;
|
|
61
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<ToolbarComponent, [null, null, null, null, null, { optional: true; }]>;
|
|
62
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "progressBarMode": { "alias": "progressBarMode"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "class": { "alias": "class"; "required": false; }; "backHref": { "alias": "backHref"; "required": false; }; "defaultBackHref": { "alias": "defaultBackHref"; "required": false; }; "hasValidate": { "alias": "hasValidate"; "required": false; }; "hasClose": { "alias": "hasClose"; "required": false; }; "hasSearch": { "alias": "hasSearch"; "required": false; }; "canGoBack": { "alias": "canGoBack"; "required": false; }; "canShowMenu": { "alias": "canShowMenu"; "required": false; }; }, { "onValidate": "onValidate"; "onClose": "onClose"; "onValidateAndClose": "onValidateAndClose"; "onBackClick": "onBackClick"; "onSearch": "onSearch"; }, never, ["[slot=start]", "ion-title, ion-segment", "ion-buttons[slot=end]", "[slot=end]"], false, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ToolbarComponent, "app-toolbar", never, { "progressBarMode": { "alias": "progressBarMode"; "required": false; }; "title": { "alias": "title"; "required": false; }; "color": { "alias": "color"; "required": false; }; "class": { "alias": "class"; "required": false; }; "id": { "alias": "id"; "required": false; }; "backHref": { "alias": "backHref"; "required": false; }; "defaultBackHref": { "alias": "defaultBackHref"; "required": false; }; "hasValidate": { "alias": "hasValidate"; "required": false; }; "hasClose": { "alias": "hasClose"; "required": false; }; "hasSearch": { "alias": "hasSearch"; "required": false; }; "canGoBack": { "alias": "canGoBack"; "required": false; }; "canShowMenu": { "alias": "canShowMenu"; "required": false; }; }, { "onValidate": "onValidate"; "onClose": "onClose"; "onValidateAndClose": "onValidateAndClose"; "onBackClick": "onBackClick"; "onSearch": "onSearch"; }, never, ["[slot=start]", "ion-title, ion-segment", "ion-buttons[slot=end]", "[slot=end]"], false, never>;
|
|
63
65
|
static ngAcceptInputType_hasValidate: unknown;
|
|
64
66
|
static ngAcceptInputType_hasClose: unknown;
|
|
65
67
|
static ngAcceptInputType_hasSearch: unknown;
|
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.6.
|
|
5
|
+
"version": "18.6.60",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|
|
@@ -944,11 +944,11 @@ ion-toast {
|
|
|
944
944
|
}
|
|
945
945
|
|
|
946
946
|
&.toast-stacked-top {
|
|
947
|
-
--toast-top: calc(var(--toast-stack-offset, 0) * var(--toast-max-height,
|
|
947
|
+
--toast-top: calc(var(--toast-stack-offset, 0) * var(--toast-max-height, 0px));
|
|
948
948
|
transform: translateY(var(--toast-top));
|
|
949
949
|
}
|
|
950
950
|
&.toast-stacked-bottom {
|
|
951
|
-
--toast-bottom: calc(
|
|
951
|
+
--toast-bottom: calc((var(--toast-stack-offset, 0) + 1) * var(--toast-max-height, 0px));
|
|
952
952
|
transform: translateY(var(--toast-bottom));
|
|
953
953
|
}
|
|
954
954
|
}
|