@sumaris-net/ngx-components 18.6.32 → 18.6.33

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.32",
4
+ "version": "18.6.33",
5
5
  "author": "contact@e-is.pro",
6
6
  "license": "AGPL-3.0",
7
7
  "readmeFilename": "README.md",
@@ -26,7 +26,15 @@ export declare class PrintService {
26
26
  * @return {number | undefined} The extracted job ID as a number, or `undefined` if the job ID is not present or invalid.
27
27
  */
28
28
  getJobId(url?: string): number | undefined;
29
- isPrintingUrl(url?: string): boolean;
29
+ /**
30
+ * Determines whether the provided URL or the current page's URL contains
31
+ * a specific query parameter, indicating it's a printing-related URL.
32
+ *
33
+ * @param {string} [url] - The optional URL to check. If not provided, the current page's URL is used.
34
+ * @param {string} [queryParam='print-id'] - The query parameter to look for, defaulting to 'print-id'.
35
+ * @return {boolean} Returns true if the query parameter is found in the URL; otherwise, false.
36
+ */
37
+ isPrintingUrl(url?: string, queryParam?: string): boolean;
30
38
  printElement(element: HTMLElement, opts?: PrintOptions): Promise<void>;
31
39
  printHTML(html: string, opts?: PrintOptions): Promise<void>;
32
40
  printUrl(url: string, opts?: Omit<PrintOptions, 'style'>): Promise<void>;
@@ -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.32",
5
+ "version": "18.6.33",
6
6
  "default_locale": "fr",
7
7
  "description": "Angular components for building beautiful and responsive Apps",
8
8
  "icons": [{