@c8y/ngx-components 1022.6.1 → 1022.9.2
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/context-dashboard/context-dashboard.component.d.ts +1 -3
- package/context-dashboard/context-dashboard.component.d.ts.map +1 -1
- package/core/core.module.d.ts.map +1 -1
- package/core/file-picker/file-picker.component.d.ts +5 -2
- package/core/file-picker/file-picker.component.d.ts.map +1 -1
- package/core/index.d.ts +1 -0
- package/core/index.d.ts.map +1 -1
- package/core/preview-feature/feature-cache.service.d.ts +3 -1
- package/core/preview-feature/feature-cache.service.d.ts.map +1 -1
- package/core/preview-feature/preview-feature-button.component.d.ts +3 -2
- package/core/preview-feature/preview-feature-button.component.d.ts.map +1 -1
- package/core/preview-feature/preview-feature-query-param.factory.d.ts +24 -0
- package/core/preview-feature/preview-feature-query-param.factory.d.ts.map +1 -0
- package/core/preview-feature/preview-feature-show-notification.service.d.ts +4 -1
- package/core/preview-feature/preview-feature-show-notification.service.d.ts.map +1 -1
- package/core/preview-feature/preview-feature.component.d.ts +2 -0
- package/core/preview-feature/preview-feature.component.d.ts.map +1 -1
- package/core/preview-feature/preview-feature.model.d.ts +1 -1
- package/core/preview-feature/preview-feature.model.d.ts.map +1 -1
- package/core/preview-feature/preview-feature.providers.d.ts.map +1 -1
- package/core/query-param-handler/index.d.ts +5 -0
- package/core/query-param-handler/index.d.ts.map +1 -0
- package/core/query-param-handler/query-param-bottom-drawer.service.d.ts +48 -0
- package/core/query-param-handler/query-param-bottom-drawer.service.d.ts.map +1 -0
- package/core/query-param-handler/query-param-handler.service.d.ts +31 -0
- package/core/query-param-handler/query-param-handler.service.d.ts.map +1 -0
- package/core/query-param-handler/query-param-modal-handler.service.d.ts +79 -0
- package/core/query-param-handler/query-param-modal-handler.service.d.ts.map +1 -0
- package/datapoint-explorer/view/datapoint-explorer.component.d.ts +3 -2
- package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
- package/datapoint-explorer/view/datapoint-explorer.service.d.ts +2 -0
- package/datapoint-explorer/view/datapoint-explorer.service.d.ts.map +1 -1
- package/datapoint-explorer/view/send-as-widget-to-dashboard-modal/send-as-widget-to-dashboard-modal.component.d.ts +24 -0
- package/datapoint-explorer/view/send-as-widget-to-dashboard-modal/send-as-widget-to-dashboard-modal.component.d.ts.map +1 -0
- package/datapoint-explorer/view/send-as-widget-to-report-modal/send-as-widget-to-report-modal.component.d.ts +1 -1
- package/echart/charts.component.d.ts.map +1 -1
- package/echart/services/y-axis.service.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +4 -20
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +121 -39
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +7 -4
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs +2 -2
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-firmware.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs +2 -2
- package/fesm2022/c8y-ngx-components-operations-stepper-bulk-type-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs +1 -1
- package/fesm2022/c8y-ngx-components-repository-configuration.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs +6 -6
- package/fesm2022/c8y-ngx-components-repository-firmware.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-repository-software.mjs +4 -4
- package/fesm2022/c8y-ngx-components-repository-software.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-sensor-phone.mjs +331 -8
- package/fesm2022/c8y-ngx-components-sensor-phone.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +429 -101
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/locales/de.po +29 -3
- package/locales/es.po +29 -3
- package/locales/fr.po +28 -3
- package/locales/ja_JP.po +28 -3
- package/locales/ko.po +28 -3
- package/locales/locales.pot +29 -3
- package/locales/nl.po +29 -3
- package/locales/pl.po +29 -3
- package/locales/pt_BR.po +29 -3
- package/locales/zh_CN.po +28 -3
- package/locales/zh_TW.po +29 -3
- package/package.json +1 -1
- package/sensor-phone/sensor-phone.module.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-query-param-modal-handler.mjs +0 -115
- package/fesm2022/c8y-ngx-components-query-param-modal-handler.mjs.map +0 -1
- package/query-param-modal-handler/c8y-ngx-components-query-param-modal-handler.d.ts.map +0 -1
- package/query-param-modal-handler/index.d.ts +0 -2
- package/query-param-modal-handler/index.d.ts.map +0 -1
- package/query-param-modal-handler/query-param-modal-handler.service.d.ts +0 -77
- package/query-param-modal-handler/query-param-modal-handler.service.d.ts.map +0 -1
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, Injectable } from '@angular/core';
|
|
3
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
-
import { filter, tap } from 'rxjs/operators';
|
|
5
|
-
import { BsModalService } from 'ngx-bootstrap/modal';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Service to manage the display of modals based on URL query parameter.
|
|
9
|
-
*
|
|
10
|
-
* This service listens for specific query parameters in the URL and opens corresponding modals when detected.
|
|
11
|
-
* It automatically cleans up the query parameters from the URL when the modal is closed or query parameter value passed as 'false'.
|
|
12
|
-
*/
|
|
13
|
-
class QueryParamModalHandlerService {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.activatedRoute = inject(ActivatedRoute);
|
|
16
|
-
this.bsModalService = inject(BsModalService);
|
|
17
|
-
this.router = inject(Router);
|
|
18
|
-
/**
|
|
19
|
-
* Subscription to track modal close events.
|
|
20
|
-
*/
|
|
21
|
-
this.modalCloseSubscription = null;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Handles the display of a modal based on a specific query parameter.
|
|
25
|
-
*
|
|
26
|
-
* @param config - Configuration object specifying the query parameter, component, and optional modal settings.
|
|
27
|
-
* @returns An observable that listens for changes in the query parameter.
|
|
28
|
-
*/
|
|
29
|
-
handleQueryParamModal(config) {
|
|
30
|
-
return this.activatedRoute.queryParamMap.pipe(filter(params => params.has(config.queryParam)), tap(params => {
|
|
31
|
-
const paramValue = this.parseQueryParam(params.get(config.queryParam));
|
|
32
|
-
if (paramValue) {
|
|
33
|
-
this.showModal(config.component, config.modalConfig);
|
|
34
|
-
this.modalCloseSubscription = this.bsModalService.onHidden.subscribe(() => {
|
|
35
|
-
this.removeQueryParam(config.queryParam);
|
|
36
|
-
this.cleanup();
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
else {
|
|
40
|
-
this.removeQueryParam(config.queryParam);
|
|
41
|
-
}
|
|
42
|
-
}));
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Removes the specified query parameter from the URL.
|
|
46
|
-
*
|
|
47
|
-
* @param paramKey - The key of the query parameter to remove.
|
|
48
|
-
*/
|
|
49
|
-
removeQueryParam(paramKey) {
|
|
50
|
-
const queryParams = {
|
|
51
|
-
[paramKey]: null
|
|
52
|
-
};
|
|
53
|
-
this.router.navigate([], {
|
|
54
|
-
relativeTo: this.activatedRoute,
|
|
55
|
-
queryParams,
|
|
56
|
-
queryParamsHandling: 'merge'
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Displays a modal with the specified component and configuration.
|
|
61
|
-
*
|
|
62
|
-
* @param component - The component to display in the modal.
|
|
63
|
-
* @param modalConfig - Optional settings for the modal appearance and behavior.
|
|
64
|
-
*/
|
|
65
|
-
showModal(component, modalConfig) {
|
|
66
|
-
this.bsModalService.show(component, modalConfig);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Cleans up subscriptions related to modal events.
|
|
70
|
-
* Ensures no memory leaks by unsubscribing from modal close events.
|
|
71
|
-
*/
|
|
72
|
-
cleanup() {
|
|
73
|
-
if (this.modalCloseSubscription) {
|
|
74
|
-
this.modalCloseSubscription.unsubscribe();
|
|
75
|
-
this.modalCloseSubscription = null;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Parses a string representation of a query parameter into a boolean or null.
|
|
80
|
-
*
|
|
81
|
-
* Converts the provided `queryParam` string into a boolean value or null based on its content:
|
|
82
|
-
* - Returns `true` if `queryParam` is 'true'.
|
|
83
|
-
* - Returns `false` if `queryParam` is 'false'.
|
|
84
|
-
* - Returns `null` if `queryParam` is neither 'true' nor 'false'.
|
|
85
|
-
*
|
|
86
|
-
* @param queryParam - The string representation of the query parameter.
|
|
87
|
-
* @returns A boolean value corresponding to the parsed state, or null if the input is not 'true' or 'false'.
|
|
88
|
-
*/
|
|
89
|
-
parseQueryParam(queryParam) {
|
|
90
|
-
if (queryParam === 'false') {
|
|
91
|
-
return false;
|
|
92
|
-
}
|
|
93
|
-
else if (queryParam === 'true') {
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
else {
|
|
97
|
-
return null;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QueryParamModalHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
101
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QueryParamModalHandlerService, providedIn: 'root' }); }
|
|
102
|
-
}
|
|
103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: QueryParamModalHandlerService, decorators: [{
|
|
104
|
-
type: Injectable,
|
|
105
|
-
args: [{
|
|
106
|
-
providedIn: 'root'
|
|
107
|
-
}]
|
|
108
|
-
}] });
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* Generated bundle index. Do not edit.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
export { QueryParamModalHandlerService };
|
|
115
|
-
//# sourceMappingURL=c8y-ngx-components-query-param-modal-handler.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-query-param-modal-handler.mjs","sources":["../../query-param-modal-handler/query-param-modal-handler.service.ts","../../query-param-modal-handler/c8y-ngx-components-query-param-modal-handler.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { ActivatedRoute, ParamMap, Router } from '@angular/router';\nimport { filter, tap } from 'rxjs/operators';\nimport { BsModalService } from 'ngx-bootstrap/modal';\nimport { ModalOptions } from 'ngx-bootstrap/modal/modal-options.class';\nimport { ComponentType } from '@angular/cdk/overlay';\nimport { Observable, Subscription } from 'rxjs';\n\n/**\n * Interface representing the configuration for handling query parameter-based modals.\n */\nexport interface QueryParamModalConfig {\n /**\n * The name of the query parameter to observe.\n */\n queryParam: string;\n\n /**\n * The component to display in the modal.\n */\n component: ComponentType<any>;\n\n /**\n * Optional configuration settings for the modal.\n */\n modalConfig?: ModalOptions;\n}\n\n/**\n * Service to manage the display of modals based on URL query parameter.\n *\n * This service listens for specific query parameters in the URL and opens corresponding modals when detected.\n * It automatically cleans up the query parameters from the URL when the modal is closed or query parameter value passed as 'false'.\n */\n@Injectable({\n providedIn: 'root'\n})\nexport class QueryParamModalHandlerService {\n private readonly activatedRoute = inject(ActivatedRoute);\n private readonly bsModalService = inject(BsModalService);\n private readonly router = inject(Router);\n\n /**\n * Subscription to track modal close events.\n */\n private modalCloseSubscription: Subscription | null = null;\n\n /**\n * Handles the display of a modal based on a specific query parameter.\n *\n * @param config - Configuration object specifying the query parameter, component, and optional modal settings.\n * @returns An observable that listens for changes in the query parameter.\n */\n handleQueryParamModal(config: QueryParamModalConfig): Observable<ParamMap> {\n return this.activatedRoute.queryParamMap.pipe(\n filter(params => params.has(config.queryParam)),\n tap(params => {\n const paramValue = this.parseQueryParam(params.get(config.queryParam));\n\n if (paramValue) {\n this.showModal(config.component, config.modalConfig);\n\n this.modalCloseSubscription = this.bsModalService.onHidden.subscribe(() => {\n this.removeQueryParam(config.queryParam);\n this.cleanup();\n });\n } else {\n this.removeQueryParam(config.queryParam);\n }\n })\n );\n }\n\n /**\n * Removes the specified query parameter from the URL.\n *\n * @param paramKey - The key of the query parameter to remove.\n */\n private removeQueryParam(paramKey: string): void {\n const queryParams = {\n [paramKey]: null\n };\n\n this.router.navigate([], {\n relativeTo: this.activatedRoute,\n queryParams,\n queryParamsHandling: 'merge'\n });\n }\n\n /**\n * Displays a modal with the specified component and configuration.\n *\n * @param component - The component to display in the modal.\n * @param modalConfig - Optional settings for the modal appearance and behavior.\n */\n private showModal(component: ComponentType<any>, modalConfig?: any): void {\n this.bsModalService.show(component, modalConfig);\n }\n\n /**\n * Cleans up subscriptions related to modal events.\n * Ensures no memory leaks by unsubscribing from modal close events.\n */\n private cleanup(): void {\n if (this.modalCloseSubscription) {\n this.modalCloseSubscription.unsubscribe();\n this.modalCloseSubscription = null;\n }\n }\n\n /**\n * Parses a string representation of a query parameter into a boolean or null.\n *\n * Converts the provided `queryParam` string into a boolean value or null based on its content:\n * - Returns `true` if `queryParam` is 'true'.\n * - Returns `false` if `queryParam` is 'false'.\n * - Returns `null` if `queryParam` is neither 'true' nor 'false'.\n *\n * @param queryParam - The string representation of the query parameter.\n * @returns A boolean value corresponding to the parsed state, or null if the input is not 'true' or 'false'.\n */\n private parseQueryParam(queryParam: string): boolean | null {\n if (queryParam === 'false') {\n return false;\n } else if (queryParam === 'true') {\n return true;\n } else {\n return null;\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AA4BA;;;;;AAKG;MAIU,6BAA6B,CAAA;AAH1C,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AAExC;;AAEG;QACK,IAAsB,CAAA,sBAAA,GAAwB,IAAI;AAsF3D;AApFC;;;;;AAKG;AACH,IAAA,qBAAqB,CAAC,MAA6B,EAAA;AACjD,QAAA,OAAO,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,IAAI,CAC3C,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,EAC/C,GAAG,CAAC,MAAM,IAAG;AACX,YAAA,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YAEtE,IAAI,UAAU,EAAE;gBACd,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,CAAC,WAAW,CAAC;AAEpD,gBAAA,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,cAAc,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAK;AACxE,oBAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC;oBACxC,IAAI,CAAC,OAAO,EAAE;AAChB,iBAAC,CAAC;;iBACG;AACL,gBAAA,IAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,UAAU,CAAC;;SAE3C,CAAC,CACH;;AAGH;;;;AAIG;AACK,IAAA,gBAAgB,CAAC,QAAgB,EAAA;AACvC,QAAA,MAAM,WAAW,GAAG;YAClB,CAAC,QAAQ,GAAG;SACb;AAED,QAAA,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE;YACvB,UAAU,EAAE,IAAI,CAAC,cAAc;YAC/B,WAAW;AACX,YAAA,mBAAmB,EAAE;AACtB,SAAA,CAAC;;AAGJ;;;;;AAKG;IACK,SAAS,CAAC,SAA6B,EAAE,WAAiB,EAAA;QAChE,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,CAAC;;AAGlD;;;AAGG;IACK,OAAO,GAAA;AACb,QAAA,IAAI,IAAI,CAAC,sBAAsB,EAAE;AAC/B,YAAA,IAAI,CAAC,sBAAsB,CAAC,WAAW,EAAE;AACzC,YAAA,IAAI,CAAC,sBAAsB,GAAG,IAAI;;;AAItC;;;;;;;;;;AAUG;AACK,IAAA,eAAe,CAAC,UAAkB,EAAA;AACxC,QAAA,IAAI,UAAU,KAAK,OAAO,EAAE;AAC1B,YAAA,OAAO,KAAK;;AACP,aAAA,IAAI,UAAU,KAAK,MAAM,EAAE;AAChC,YAAA,OAAO,IAAI;;aACN;AACL,YAAA,OAAO,IAAI;;;+GA3FJ,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,6BAA6B,cAF5B,MAAM,EAAA,CAAA,CAAA;;4FAEP,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAHzC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACpCD;;AAEG;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-query-param-modal-handler.d.ts","sourceRoot":"","sources":["../../query-param-modal-handler/c8y-ngx-components-query-param-modal-handler.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../query-param-modal-handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { ParamMap } from '@angular/router';
|
|
2
|
-
import { ModalOptions } from 'ngx-bootstrap/modal/modal-options.class';
|
|
3
|
-
import { ComponentType } from '@angular/cdk/overlay';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/**
|
|
7
|
-
* Interface representing the configuration for handling query parameter-based modals.
|
|
8
|
-
*/
|
|
9
|
-
export interface QueryParamModalConfig {
|
|
10
|
-
/**
|
|
11
|
-
* The name of the query parameter to observe.
|
|
12
|
-
*/
|
|
13
|
-
queryParam: string;
|
|
14
|
-
/**
|
|
15
|
-
* The component to display in the modal.
|
|
16
|
-
*/
|
|
17
|
-
component: ComponentType<any>;
|
|
18
|
-
/**
|
|
19
|
-
* Optional configuration settings for the modal.
|
|
20
|
-
*/
|
|
21
|
-
modalConfig?: ModalOptions;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Service to manage the display of modals based on URL query parameter.
|
|
25
|
-
*
|
|
26
|
-
* This service listens for specific query parameters in the URL and opens corresponding modals when detected.
|
|
27
|
-
* It automatically cleans up the query parameters from the URL when the modal is closed or query parameter value passed as 'false'.
|
|
28
|
-
*/
|
|
29
|
-
export declare class QueryParamModalHandlerService {
|
|
30
|
-
private readonly activatedRoute;
|
|
31
|
-
private readonly bsModalService;
|
|
32
|
-
private readonly router;
|
|
33
|
-
/**
|
|
34
|
-
* Subscription to track modal close events.
|
|
35
|
-
*/
|
|
36
|
-
private modalCloseSubscription;
|
|
37
|
-
/**
|
|
38
|
-
* Handles the display of a modal based on a specific query parameter.
|
|
39
|
-
*
|
|
40
|
-
* @param config - Configuration object specifying the query parameter, component, and optional modal settings.
|
|
41
|
-
* @returns An observable that listens for changes in the query parameter.
|
|
42
|
-
*/
|
|
43
|
-
handleQueryParamModal(config: QueryParamModalConfig): Observable<ParamMap>;
|
|
44
|
-
/**
|
|
45
|
-
* Removes the specified query parameter from the URL.
|
|
46
|
-
*
|
|
47
|
-
* @param paramKey - The key of the query parameter to remove.
|
|
48
|
-
*/
|
|
49
|
-
private removeQueryParam;
|
|
50
|
-
/**
|
|
51
|
-
* Displays a modal with the specified component and configuration.
|
|
52
|
-
*
|
|
53
|
-
* @param component - The component to display in the modal.
|
|
54
|
-
* @param modalConfig - Optional settings for the modal appearance and behavior.
|
|
55
|
-
*/
|
|
56
|
-
private showModal;
|
|
57
|
-
/**
|
|
58
|
-
* Cleans up subscriptions related to modal events.
|
|
59
|
-
* Ensures no memory leaks by unsubscribing from modal close events.
|
|
60
|
-
*/
|
|
61
|
-
private cleanup;
|
|
62
|
-
/**
|
|
63
|
-
* Parses a string representation of a query parameter into a boolean or null.
|
|
64
|
-
*
|
|
65
|
-
* Converts the provided `queryParam` string into a boolean value or null based on its content:
|
|
66
|
-
* - Returns `true` if `queryParam` is 'true'.
|
|
67
|
-
* - Returns `false` if `queryParam` is 'false'.
|
|
68
|
-
* - Returns `null` if `queryParam` is neither 'true' nor 'false'.
|
|
69
|
-
*
|
|
70
|
-
* @param queryParam - The string representation of the query parameter.
|
|
71
|
-
* @returns A boolean value corresponding to the parsed state, or null if the input is not 'true' or 'false'.
|
|
72
|
-
*/
|
|
73
|
-
private parseQueryParam;
|
|
74
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QueryParamModalHandlerService, never>;
|
|
75
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QueryParamModalHandlerService>;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=query-param-modal-handler.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query-param-modal-handler.service.d.ts","sourceRoot":"","sources":["../../query-param-modal-handler/query-param-modal-handler.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAkB,QAAQ,EAAU,MAAM,iBAAiB,CAAC;AAGnE,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAgB,MAAM,MAAM,CAAC;;AAEhD;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;IAE9B;;OAEG;IACH,WAAW,CAAC,EAAE,YAAY,CAAC;CAC5B;AAED;;;;;GAKG;AACH,qBAGa,6BAA6B;IACxC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0B;IACzD,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA0B;IACzD,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAkB;IAEzC;;OAEG;IACH,OAAO,CAAC,sBAAsB,CAA6B;IAE3D;;;;;OAKG;IACH,qBAAqB,CAAC,MAAM,EAAE,qBAAqB,GAAG,UAAU,CAAC,QAAQ,CAAC;IAoB1E;;;;OAIG;IACH,OAAO,CAAC,gBAAgB;IAYxB;;;;;OAKG;IACH,OAAO,CAAC,SAAS;IAIjB;;;OAGG;IACH,OAAO,CAAC,OAAO;IAOf;;;;;;;;;;OAUG;IACH,OAAO,CAAC,eAAe;yCArFZ,6BAA6B;6CAA7B,6BAA6B;CA8FzC"}
|