@quadrel-enterprise-ui/page-leave-handler 18.1.1 → 18.1.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/esm2022/quadrel-enterprise-ui-page-leave-handler.mjs +5 -0
- package/fesm2022/{quadrel-services-qd-page-leave-handler.mjs → quadrel-enterprise-ui-page-leave-handler.mjs} +1 -1
- package/fesm2022/quadrel-enterprise-ui-page-leave-handler.mjs.map +1 -0
- package/index.d.ts +1 -1
- package/package.json +17 -6
- package/esm2022/quadrel-services-qd-page-leave-handler.mjs +0 -5
- package/fesm2022/quadrel-services-qd-page-leave-handler.mjs.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
export * from './public-api';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVhZHJlbC1lbnRlcnByaXNlLXVpLXBhZ2UtbGVhdmUtaGFuZGxlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvcWQtcGFnZS1sZWF2ZS1oYW5kbGVyL3NyYy9xdWFkcmVsLWVudGVycHJpc2UtdWktcGFnZS1sZWF2ZS1oYW5kbGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxjQUFjLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vcHVibGljLWFwaSc7XG4iXX0=
|
|
@@ -61,4 +61,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.9", ngImpor
|
|
|
61
61
|
*/
|
|
62
62
|
|
|
63
63
|
export { QdPageLeaveHandlerComponent, QdPageLeaveHandlerModule, QdPageLeaveHandlerService };
|
|
64
|
-
//# sourceMappingURL=quadrel-
|
|
64
|
+
//# sourceMappingURL=quadrel-enterprise-ui-page-leave-handler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quadrel-enterprise-ui-page-leave-handler.mjs","sources":["../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.service.ts","../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.component.ts","../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.component.html","../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.module.ts","../../../../libs/qd-page-leave-handler/src/public-api.ts","../../../../libs/qd-page-leave-handler/src/quadrel-enterprise-ui-page-leave-handler.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class QdPageLeaveHandlerService {}\n","import { Component, HostListener, Input, OnDestroy } from '@angular/core';\n\n@Component({\n selector: 'qd-page-leave-handler',\n templateUrl: './qd-page-leave-handler.component.html',\n styles: []\n})\nexport class QdPageLeaveHandlerComponent implements OnDestroy {\n @Input() callBeforeLeaving: () => unknown;\n @HostListener('window:beforeunload', ['$event']) unloadHandler(event: Event) {\n if (this.callBeforeLeaving !== undefined) {\n this.callBeforeLeaving();\n }\n\n event.returnValue = false;\n }\n\n ngOnDestroy() {\n this.unloadHandler = (): void => {\n /* interrupt event handler */\n };\n }\n}\n","<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { QdPageLeaveHandlerComponent } from './qd-page-leave-handler.component';\n\n@NgModule({\n declarations: [QdPageLeaveHandlerComponent],\n imports: [],\n exports: [QdPageLeaveHandlerComponent]\n})\nexport class QdPageLeaveHandlerModule {}\n","/**\n * Public API Surface of qd-page-leave-handler\n */\nexport * from './lib/qd-page-leave-handler.service';\nexport * from './lib/qd-page-leave-handler.component';\nexport * from './lib/qd-page-leave-handler.module';\n","/**\n * Generated bund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Q,CAAC;;;MEDpC,wBAAwB,CAAA;uGAAxB,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;wGAAxB,wBAAwB,EAAA,YAAA,EAAA,CAJpB,2BAA2B,CAAA,EAAA,OAAA,EAAA,CAEhC,2BAA2B,CAAA,EAAA,CAAA;wGAE1B,wBAAwB,EAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBALpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,2BAA2B,CAAC;AAC3C,oBAAA,OAAO,EAAE,EAAE;oBACX,OAAO,EAAE,CAAC,2BAA2B;AACtC,iBAAA;;;ACPD;;AAEG;;ACFH;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quadrel-enterprise-ui/page-leave-handler",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.2",
|
|
4
4
|
"description": "Small library for handling the page leave event",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"pretty": "pretty-quick --pattern '**/qd-page-leave-handler/**/*.*'"
|
|
7
|
-
},
|
|
8
5
|
"peerDependencies": {
|
|
9
6
|
"@angular/common": "~18.2.9",
|
|
10
7
|
"@angular/core": "~18.2.9"
|
|
@@ -17,5 +14,19 @@
|
|
|
17
14
|
"reportFile": "sqr.xml",
|
|
18
15
|
"indent": 4,
|
|
19
16
|
"sonar56x": true
|
|
20
|
-
}
|
|
21
|
-
|
|
17
|
+
},
|
|
18
|
+
"module": "fesm2022/quadrel-enterprise-ui-page-leave-handler.mjs",
|
|
19
|
+
"typings": "index.d.ts",
|
|
20
|
+
"exports": {
|
|
21
|
+
"./package.json": {
|
|
22
|
+
"default": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
".": {
|
|
25
|
+
"types": "./index.d.ts",
|
|
26
|
+
"esm2022": "./esm2022/quadrel-enterprise-ui-page-leave-handler.mjs",
|
|
27
|
+
"esm": "./esm2022/quadrel-enterprise-ui-page-leave-handler.mjs",
|
|
28
|
+
"default": "./fesm2022/quadrel-enterprise-ui-page-leave-handler.mjs"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": false
|
|
32
|
+
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVhZHJlbC1zZXJ2aWNlcy1xZC1wYWdlLWxlYXZlLWhhbmRsZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9saWJzL3FkLXBhZ2UtbGVhdmUtaGFuZGxlci9zcmMvcXVhZHJlbC1zZXJ2aWNlcy1xZC1wYWdlLWxlYXZlLWhhbmRsZXIudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7O0dBRUc7QUFFSCxjQUFjLGNBQWMsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWMtYXBpJztcbiJdfQ==
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"quadrel-services-qd-page-leave-handler.mjs","sources":["../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.service.ts","../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.component.ts","../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.component.html","../../../../libs/qd-page-leave-handler/src/lib/qd-page-leave-handler.module.ts","../../../../libs/qd-page-leave-handler/src/public-api.ts","../../../../libs/qd-page-leave-handler/src/quadrel-services-qd-page-leave-handler.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class QdPageLeaveHandlerService {}\n","import { Component, HostListener, Input, OnDestroy } from '@angular/core';\n\n@Component({\n selector: 'qd-page-leave-handler',\n templateUrl: './qd-page-leave-handler.component.html',\n styles: []\n})\nexport class QdPageLeaveHandlerComponent implements OnDestroy {\n @Input() callBeforeLeaving: () => unknown;\n @HostListener('window:beforeunload', ['$event']) unloadHandler(event: Event) {\n if (this.callBeforeLeaving !== undefined) {\n this.callBeforeLeaving();\n }\n\n event.returnValue = false;\n }\n\n ngOnDestroy() {\n this.unloadHandler = (): void => {\n /* interrupt event handler */\n };\n }\n}\n","<ng-content></ng-content>\n","import { NgModule } from '@angular/core';\nimport { QdPageLeaveHandlerComponent } from './qd-page-leave-handler.component';\n\n@NgModule({\n declarations: [QdPageLeaveHandlerComponent],\n imports: [],\n exports: [QdPageLeaveHandlerComponent]\n})\nexport class QdPageLeaveHandlerModule {}\n","/**\n * Public API Surface of qd-page-leave-handler\n */\nexport * from './lib/qd-page-leave-handler.service';\nexport * from './lib/qd-page-leave-handler.component';\nexport * from './lib/qd-page-leave-handler.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAKa,yBAAyB,CAAA;uGAAzB,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cAFxB,MAAM,EAAA,CAAA;;2FAEP,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAHrC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UA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