@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/doc/changelog.md +2 -2
- package/esm2022/src/app/shared/print/print.service.mjs +11 -5
- package/fesm2022/sumaris-net.ngx-components.mjs +10 -4
- package/fesm2022/sumaris-net.ngx-components.mjs.map +1 -1
- package/package.json +1 -1
- package/src/app/shared/print/print.service.d.ts +9 -1
- package/src/assets/manifest.json +1 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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>;
|
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.33",
|
|
6
6
|
"default_locale": "fr",
|
|
7
7
|
"description": "Angular components for building beautiful and responsive Apps",
|
|
8
8
|
"icons": [{
|