@sumaris-net/ngx-components 18.6.0 → 18.6.1

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.0",
4
+ "version": "18.6.1",
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): 0 | 1 | -1;
20
+ export declare function tabindexComparator(a: InputElement, b: InputElement): 1 | 0 | -1;
21
21
  export interface CanGainFocusOptions {
22
22
  minTabindex?: number;
23
23
  maxTabindex?: number;
@@ -3,7 +3,6 @@ import { LocalSettingsService } from '../../core/services/local-settings.service
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { NetworkService } from '../../core/services/network.service';
5
5
  import { MarkdownService } from './markdown.service';
6
- import { Subscription } from 'rxjs';
7
6
  import { NavController } from '@ionic/angular';
8
7
  import { ActivatedRoute } from '@angular/router';
9
8
  import * as i0 from "@angular/core";
@@ -15,13 +14,15 @@ export interface AppMarkdownOptions {
15
14
  export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy {
16
15
  protected cd: ChangeDetectorRef;
17
16
  protected element: ElementRef<HTMLElement>;
17
+ private _document;
18
18
  protected route: ActivatedRoute;
19
+ private _printIframe;
20
+ private _clickSubscription;
19
21
  protected navController: NavController;
20
22
  protected settings: LocalSettingsService;
21
23
  protected translate: TranslateService;
22
24
  protected network: NetworkService;
23
25
  protected markdownService: MarkdownService;
24
- protected _clickSubscription: Subscription;
25
26
  protected loading: boolean;
26
27
  protected error: string;
27
28
  protected baseUrl: string;
@@ -47,10 +48,13 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
47
48
  enableNavigationHistory: boolean;
48
49
  updateRouteLocation: boolean;
49
50
  markdownUrlChange: EventEmitter<string>;
50
- constructor(cd: ChangeDetectorRef, element: ElementRef<HTMLElement>, route: ActivatedRoute);
51
+ constructor(cd: ChangeDetectorRef, element: ElementRef<HTMLElement>, _document: Document, route: ActivatedRoute);
51
52
  ngOnDestroy(): void;
52
53
  goBack(event?: Event): void;
53
54
  get canGoBack(): boolean;
55
+ print(event?: Event): void;
56
+ private createPrintHiddenIframe;
57
+ private injectAppStylesIntoIframe;
54
58
  protected setData(value: string, opts?: {
55
59
  anchor?: string;
56
60
  addToNavigationHistory?: boolean;
@@ -66,7 +70,7 @@ export declare class AppMarkdownContent implements AppMarkdownOptions, OnDestroy
66
70
  protected markAsLoaded(): void;
67
71
  protected markAsLoading(): void;
68
72
  protected resetError(): void;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownContent, [null, null, { optional: true; }]>;
73
+ static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownContent, [null, null, null, { optional: true; }]>;
70
74
  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>;
71
75
  static ngAcceptInputType_debug: unknown;
72
76
  static ngAcceptInputType_showError: unknown;
@@ -12,6 +12,7 @@ export interface AppMarkdownModalOptions {
12
12
  markdownUrl?: string;
13
13
  showError?: boolean;
14
14
  cssClass?: string;
15
+ canPrint?: boolean;
15
16
  }
16
17
  export declare class AppMarkdownModal implements AppMarkdownModalOptions {
17
18
  protected injector: Injector;
@@ -26,6 +27,7 @@ export declare class AppMarkdownModal implements AppMarkdownModalOptions {
26
27
  debug: boolean;
27
28
  title: string;
28
29
  showError: boolean;
30
+ canPrint: boolean;
29
31
  markdownContent: string;
30
32
  markdownUrl: string;
31
33
  static show(modalCtrl: ModalController, options: AppMarkdownModalOptions): Promise<import("@ionic/core").OverlayEventDetail<any>>;
@@ -33,5 +35,5 @@ export declare class AppMarkdownModal implements AppMarkdownModalOptions {
33
35
  close(_?: Event): Promise<boolean>;
34
36
  goBack(event: Event, content: AppMarkdownContent): void;
35
37
  static ɵfac: i0.ɵɵFactoryDeclaration<AppMarkdownModal, never>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<AppMarkdownModal, "app-markdown-modal", never, { "debug": { "alias": "debug"; "required": false; }; "title": { "alias": "title"; "required": false; }; "showError": { "alias": "showError"; "required": false; }; "markdownContent": { "alias": "markdownContent"; "required": false; }; "markdownUrl": { "alias": "markdownUrl"; "required": false; }; }, {}, never, never, false, 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>;
37
39
  }
@@ -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.0",
5
+ "version": "18.6.1",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{