@sumaris-net/ngx-components 18.6.1 → 18.6.3
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/esm2022/src/app/core/home/home.mjs +2 -2
- package/esm2022/src/app/shared/markdown/markdown.component.mjs +19 -20
- package/esm2022/src/app/shared/markdown/markdown.modal.mjs +24 -10
- package/esm2022/src/app/shared/markdown/testing/markdown.test.mjs +2 -2
- package/fesm2022/sumaris-net.ngx-components.mjs +42 -29
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/inputs.d.ts +1 -1
- package/src/app/shared/markdown/markdown.component.d.ts +4 -3
- package/src/app/shared/markdown/markdown.modal.d.ts +11 -8
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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):
|
|
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;
|
|
@@ -53,6 +53,10 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
53
53
|
goBack(event?: Event): void;
|
|
54
54
|
get canGoBack(): boolean;
|
|
55
55
|
print(event?: Event): void;
|
|
56
|
+
markAsLoaded(): void;
|
|
57
|
+
markAsLoading(): void;
|
|
58
|
+
setError(error: string | Error): void;
|
|
59
|
+
resetError(): void;
|
|
56
60
|
private createPrintHiddenIframe;
|
|
57
61
|
private injectAppStylesIntoIframe;
|
|
58
62
|
protected setData(value: string, opts?: {
|
|
@@ -67,9 +71,6 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
|
|
|
67
71
|
protected onReady(): void;
|
|
68
72
|
protected onLoadError(error?: string | Error): void;
|
|
69
73
|
protected startListenClickEvents(): void;
|
|
70
|
-
protected markAsLoaded(): void;
|
|
71
|
-
protected markAsLoading(): void;
|
|
72
|
-
protected resetError(): void;
|
|
73
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownContent, [null, null, null, { optional: true; }]>;
|
|
74
75
|
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownContent, "app-markdown-content", never, { "data": { "alias": "data"; "required": false; }; "src": { "alias": "src"; "required": false; }; "anchor": { "alias": "anchor"; "required": false; }; "debug": { "alias": "debug"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "animated": { "alias": "animated"; "required": false; }; "enableNavigationHistory": { "alias": "enableNavigationHistory"; "required": false; }; "updateRouteLocation": { "alias": "updateRouteLocation"; "required": false; }; }, { "markdownUrlChange": "markdownUrlChange"; }, never, never, false, never>;
|
|
75
76
|
static ngAcceptInputType_debug: unknown;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Injector } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, Injector, QueryList } from '@angular/core';
|
|
2
2
|
import { ModalController } from '@ionic/angular';
|
|
3
3
|
import { PlatformService } from '../../core/services/platform.service';
|
|
4
4
|
import { LocalSettingsService } from '../../core/services/local-settings.service';
|
|
@@ -8,8 +8,8 @@ import { AppMarkdownContent } from './markdown.component';
|
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export interface AppMarkdownModalOptions {
|
|
10
10
|
title?: string;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
data?: string;
|
|
12
|
+
src?: string;
|
|
13
13
|
showError?: boolean;
|
|
14
14
|
cssClass?: string;
|
|
15
15
|
canPrint?: boolean;
|
|
@@ -22,18 +22,21 @@ export declare class AppMarkdownModal implements AppMarkdownModalOptions {
|
|
|
22
22
|
protected translate: TranslateService;
|
|
23
23
|
protected network: NetworkService;
|
|
24
24
|
protected cd: ChangeDetectorRef;
|
|
25
|
-
protected loading: boolean;
|
|
26
|
-
protected error: string;
|
|
27
25
|
debug: boolean;
|
|
28
26
|
title: string;
|
|
29
27
|
showError: boolean;
|
|
30
28
|
canPrint: boolean;
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
data: string;
|
|
30
|
+
src: string;
|
|
31
|
+
_contents: QueryList<AppMarkdownContent>;
|
|
33
32
|
static show(modalCtrl: ModalController, options: AppMarkdownModalOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
|
|
34
33
|
constructor(injector: Injector, viewCtrl: ModalController, platform: PlatformService, settings: LocalSettingsService, translate: TranslateService, network: NetworkService, cd: ChangeDetectorRef);
|
|
35
34
|
close(_?: Event): Promise<boolean>;
|
|
36
35
|
goBack(event: Event, content: AppMarkdownContent): void;
|
|
36
|
+
protected markAsLoaded(): void;
|
|
37
|
+
protected markAsLoading(): void;
|
|
38
|
+
protected setError(err: string | Error): void;
|
|
39
|
+
protected resetError(): void;
|
|
37
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownModal, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "debug": { "alias": "debug"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "canPrint": { "alias": "canPrint"; "required": false; }; "
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "debug": { "alias": "debug"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "canPrint": { "alias": "canPrint"; "required": false; }; "data": { "alias": "data"; "required": false; }; "src": { "alias": "src"; "required": false; }; }, {}, never, never, false, never>;
|
|
39
42
|
}
|
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.3",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|