@quadrel-enterprise-ui/page-leave-handler 19.0.2 → 19.0.4

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.
@@ -2,10 +2,10 @@ import * as i0 from '@angular/core';
2
2
  import { Injectable, HostListener, Input, Component, NgModule } from '@angular/core';
3
3
 
4
4
  class QdPageLeaveHandlerService {
5
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerService, providedIn: 'root' });
5
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
6
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerService, providedIn: 'root' });
7
7
  }
8
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerService, decorators: [{
8
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerService, decorators: [{
9
9
  type: Injectable,
10
10
  args: [{
11
11
  providedIn: 'root'
@@ -25,10 +25,10 @@ class QdPageLeaveHandlerComponent {
25
25
  /* interrupt event handler */
26
26
  };
27
27
  }
28
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.9", type: QdPageLeaveHandlerComponent, isStandalone: false, selector: "qd-page-leave-handler", inputs: { callBeforeLeaving: "callBeforeLeaving" }, host: { listeners: { "window:beforeunload": "unloadHandler($event)" } }, ngImport: i0, template: "<ng-content></ng-content>\n" });
28
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: QdPageLeaveHandlerComponent, isStandalone: false, selector: "qd-page-leave-handler", inputs: { callBeforeLeaving: "callBeforeLeaving" }, host: { listeners: { "window:beforeunload": "unloadHandler($event)" } }, ngImport: i0, template: "<ng-content></ng-content>\n" });
30
30
  }
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerComponent, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerComponent, decorators: [{
32
32
  type: Component,
33
33
  args: [{ selector: 'qd-page-leave-handler', standalone: false, template: "<ng-content></ng-content>\n" }]
34
34
  }], propDecorators: { callBeforeLeaving: [{
@@ -39,11 +39,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImpor
39
39
  }] } });
40
40
 
41
41
  class QdPageLeaveHandlerModule {
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerModule, declarations: [QdPageLeaveHandlerComponent], exports: [QdPageLeaveHandlerComponent] });
44
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerModule });
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
43
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerModule, declarations: [QdPageLeaveHandlerComponent], exports: [QdPageLeaveHandlerComponent] });
44
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerModule });
45
45
  }
46
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.9", ngImport: i0, type: QdPageLeaveHandlerModule, decorators: [{
46
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QdPageLeaveHandlerModule, decorators: [{
47
47
  type: NgModule,
48
48
  args: [{
49
49
  declarations: [QdPageLeaveHandlerComponent],
@@ -1 +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 standalone: false\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,UAAU,EAAE;AACb,iBAAA;;;MCIY,2BAA2B,CAAA;AAC7B,IAAA,iBAAiB;AACuB,IAAA,aAAa,CAAC,KAAY,EAAA;AACzE,QAAA,IAAI,IAAI,CAAC,iBAAiB,KAAK,SAAS,EAAE;YACxC,IAAI,CAAC,iBAAiB,EAAE;;AAG1B,QAAA,KAAK,CAAC,WAAW,GAAG,KAAK;;IAG3B,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,aAAa,GAAG,MAAW;;AAEhC,SAAC;;uGAbQ,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,2BAA2B,+MCRxC,6BACA,EAAA,CAAA;;2FDOa,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBANvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,cAGrB,KAAK,EAAA,QAAA,EAAA,6BAAA,EAAA;8BAGR,iBAAiB,EAAA,CAAA;sBAAzB;gBACgD,aAAa,EAAA,CAAA;sBAA7D,YAAY;uBAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC;;;MEFpC,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;;;;"}
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 standalone: false\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;wGAAzB,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,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,yBAAyB,cAFxB,MAAM,EAAA,CAAA;;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,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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quadrel-enterprise-ui/page-leave-handler",
3
- "version": "19.0.2",
3
+ "version": "19.0.4",
4
4
  "description": "Small library for handling the page leave event",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.2.9",
@@ -15,6 +15,13 @@
15
15
  "indent": 4,
16
16
  "sonar56x": true
17
17
  },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/BAZG-Quadrel/quadrel-utilities"
21
+ },
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
18
25
  "module": "fesm2022/quadrel-enterprise-ui-page-leave-handler.mjs",
19
26
  "typings": "index.d.ts",
20
27
  "exports": {