@sumaris-net/ngx-components 18.6.27 → 18.6.28

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.27",
4
+ "version": "18.6.28",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -10,6 +10,7 @@ export interface PrintOptions {
10
10
  style?: string;
11
11
  }
12
12
  export declare const PRINT_LOADING_STORAGE_KEY_PREFIX = "print-loading-";
13
+ export declare const PRINT_ID_QUERY_PARAM = "print-id";
13
14
  export declare class PrintService {
14
15
  protected toastController: ToastController;
15
16
  protected translate: TranslateService;
@@ -18,6 +19,13 @@ export declare class PrintService {
18
19
  private printId;
19
20
  constructor(toastController: ToastController, translate: TranslateService, storage: StorageService, document: Document);
20
21
  nextJobId(): number;
22
+ /**
23
+ * Extracts and returns the job ID from a given URL.
24
+ *
25
+ * @param {string} [url] - The URL from which to extract the job ID. If not provided, `window.location.href` will be used.
26
+ * @return {number | undefined} The extracted job ID as a number, or `undefined` if the job ID is not present or invalid.
27
+ */
28
+ getJobId(url?: string): number | undefined;
21
29
  printElement(element: HTMLElement, opts?: PrintOptions): Promise<void>;
22
30
  printHTML(html: string, opts?: PrintOptions): Promise<void>;
23
31
  printUrl(url: string, opts?: Omit<PrintOptions, 'style'>): Promise<void>;
@@ -26,7 +34,9 @@ export declare class PrintService {
26
34
  markAsLoaded(id: string | number): Promise<void>;
27
35
  isLoaded(id: string | number): Promise<boolean>;
28
36
  isLoading(id: string | number): Promise<boolean>;
29
- protected createPrintIframeByUrl(url: string): HTMLIFrameElement;
37
+ protected createPrintIframeByUrl(url: string, opts?: {
38
+ id?: number | string;
39
+ }): HTMLIFrameElement;
30
40
  protected createPrintIframeByHtml(html: string, opts?: {
31
41
  title?: string;
32
42
  inlineStyle?: string;
@@ -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.27",
5
+ "version": "18.6.28",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{