@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/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.1",
4
+ "version": "18.6.3",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -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): 1 | 0 | -1;
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
- markdownContent?: string;
12
- markdownUrl?: string;
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
- markdownContent: string;
32
- markdownUrl: string;
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; }; "markdownContent": { "alias": "markdownContent"; "required": false; }; "markdownUrl": { "alias": "markdownUrl"; "required": false; }; }, {}, never, never, false, never>;
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
  }
@@ -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.1",
5
+ "version": "18.6.3",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{