@rxap/service-worker 16.0.0-dev.1 → 16.0.0-dev.11
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/CHANGELOG.md +216 -0
- package/LICENSE +621 -27
- package/LICENSE.md +621 -0
- package/README.md +7 -22
- package/esm2022/index.mjs +2 -1
- package/esm2022/lib/check-for-update.service.mjs +16 -18
- package/esm2022/lib/log-update.service.mjs +14 -15
- package/esm2022/lib/prompt-update/prompt-update.component.mjs +24 -18
- package/esm2022/lib/prompt-update/prompt-update.component.module.mjs +8 -23
- package/esm2022/lib/prompt-update/prompt-update.service.mjs +12 -14
- package/esm2022/lib/service-worker-prompt-update.module.mjs +8 -9
- package/esm2022/lib/service-worker-snack-bar-update.module.mjs +7 -8
- package/esm2022/lib/snack-bar-update.service.mjs +17 -20
- package/esm2022/lib/unregister-service-worker.mjs +17 -0
- package/esm2022/rxap-service-worker.mjs +1 -1
- package/fesm2022/rxap-service-worker.mjs +96 -83
- package/fesm2022/rxap-service-worker.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/prompt-update/prompt-update.component.d.ts +3 -3
- package/lib/prompt-update/prompt-update.component.module.d.ts +1 -5
- package/lib/prompt-update/prompt-update.service.d.ts +1 -1
- package/lib/snack-bar-update.service.d.ts +3 -3
- package/lib/unregister-service-worker.d.ts +2 -0
- package/package.json +45 -40
- package/theme.css +1 -0
- package/collection.json +0 -10
- package/migration.json +0 -4
- package/src/schematics/ng-add/index.d.ts +0 -2
- package/src/schematics/ng-add/index.js +0 -8
- package/src/schematics/ng-add/index.js.map +0 -1
- package/src/schematics/ng-add/schema.json +0 -7
|
@@ -6,17 +6,16 @@ import { startWith, tap, first, concatMap, filter, map, take } from 'rxjs/operat
|
|
|
6
6
|
import { interval } from 'rxjs';
|
|
7
7
|
import * as i1 from '@rxap/life-cycle';
|
|
8
8
|
import { LifeCycleService } from '@rxap/life-cycle';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import { MatLegacySnackBar, MatLegacySnackBarModule } from '@angular/material/legacy-snack-bar';
|
|
9
|
+
import * as i1$1 from '@angular/material/dialog';
|
|
10
|
+
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
11
|
+
import * as i4 from '@angular/material/button';
|
|
12
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
+
import * as i3 from '@angular/material/tooltip';
|
|
14
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
15
|
+
import * as i2$1 from '@angular/material/progress-bar';
|
|
16
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
17
|
+
import * as i1$2 from '@angular/material/snack-bar';
|
|
18
|
+
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
20
19
|
|
|
21
20
|
class LogUpdateService {
|
|
22
21
|
constructor(updates) {
|
|
@@ -33,25 +32,26 @@ class LogUpdateService {
|
|
|
33
32
|
console.log('new version is', event.current);
|
|
34
33
|
});
|
|
35
34
|
}
|
|
36
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
37
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateService, deps: [{ token: i2.SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
36
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateService, providedIn: 'root' }); }
|
|
38
37
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateService, decorators: [{
|
|
40
39
|
type: Injectable,
|
|
41
40
|
args: [{
|
|
42
|
-
providedIn: 'root'
|
|
41
|
+
providedIn: 'root',
|
|
43
42
|
}]
|
|
44
43
|
}], ctorParameters: function () { return [{ type: i2.SwUpdate }]; } });
|
|
45
44
|
class LogUpdateModule {
|
|
46
45
|
constructor(logUpdate) {
|
|
47
46
|
logUpdate.start();
|
|
48
47
|
}
|
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
50
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
51
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
48
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateModule, deps: [{ token: LogUpdateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
49
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateModule }); }
|
|
50
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateModule }); }
|
|
52
51
|
}
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
54
|
-
type: NgModule
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: LogUpdateModule, decorators: [{
|
|
53
|
+
type: NgModule,
|
|
54
|
+
args: [{}]
|
|
55
55
|
}], ctorParameters: function () { return [{ type: LogUpdateService }]; } });
|
|
56
56
|
|
|
57
57
|
class CheckForUpdateService {
|
|
@@ -66,17 +66,17 @@ class CheckForUpdateService {
|
|
|
66
66
|
this
|
|
67
67
|
.lifeCycle
|
|
68
68
|
.whenReady(() => interval(15 * 60 * 1000)
|
|
69
|
-
.pipe(startWith(null), log('check for update'), tap(() => this.updates.checkForUpdate())))
|
|
69
|
+
.pipe(startWith(null), tap(() => console.log('check for update')), tap(() => this.updates.checkForUpdate())))
|
|
70
70
|
.subscribe();
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
74
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
73
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateService, deps: [{ token: LifeCycleService }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
74
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateService, providedIn: 'root' }); }
|
|
75
75
|
}
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateService, decorators: [{
|
|
77
77
|
type: Injectable,
|
|
78
78
|
args: [{
|
|
79
|
-
providedIn: 'root'
|
|
79
|
+
providedIn: 'root',
|
|
80
80
|
}]
|
|
81
81
|
}], ctorParameters: function () { return [{ type: i1.LifeCycleService, decorators: [{
|
|
82
82
|
type: Inject,
|
|
@@ -89,12 +89,13 @@ class CheckForUpdateModule {
|
|
|
89
89
|
constructor(checkForUpdate) {
|
|
90
90
|
checkForUpdate.start();
|
|
91
91
|
}
|
|
92
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
93
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
94
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
92
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateModule, deps: [{ token: CheckForUpdateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
93
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateModule }); }
|
|
94
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateModule }); }
|
|
95
95
|
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
97
|
-
type: NgModule
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: CheckForUpdateModule, decorators: [{
|
|
97
|
+
type: NgModule,
|
|
98
|
+
args: [{}]
|
|
98
99
|
}], ctorParameters: function () { return [{ type: CheckForUpdateService, decorators: [{
|
|
99
100
|
type: Inject,
|
|
100
101
|
args: [CheckForUpdateService]
|
|
@@ -110,24 +111,29 @@ class PromptUpdateComponent {
|
|
|
110
111
|
}
|
|
111
112
|
ngOnInit() {
|
|
112
113
|
this.subscription = this.lifecycle
|
|
113
|
-
.whenReady(() => interval(100).pipe(tap((i) => (this.progress = Math.floor(((i + 1) / (PromptUpdateComponent.AUTO_UPDATE_IN / 100)) * 100))), first((i) => i >= PromptUpdateComponent.AUTO_UPDATE_IN / 100), log('start auto update'), tap(() => this.dialogRef.close(true))))
|
|
114
|
+
.whenReady(() => interval(100).pipe(tap((i) => (this.progress = Math.floor(((i + 1) / (PromptUpdateComponent.AUTO_UPDATE_IN / 100)) * 100))), first((i) => i >= PromptUpdateComponent.AUTO_UPDATE_IN / 100), tap(() => console.log('start auto update')), tap(() => this.dialogRef.close(true))))
|
|
114
115
|
.subscribe();
|
|
115
116
|
}
|
|
116
117
|
ngOnDestroy() {
|
|
117
118
|
this.subscription?.unsubscribe();
|
|
118
119
|
}
|
|
119
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
120
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
|
120
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: MatDialogRef }, { token: LifeCycleService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
121
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.4", type: PromptUpdateComponent, isStandalone: true, selector: "rxap-prompt-update", ngImport: i0, template: "<h2 mat-dialog-title>Update available</h2>\n<mat-dialog-content>\n <p>Ein neue Version der App steht zur Verf\u00FCgung!</p>\n <p>Soll die neue Version heruntergeladen werden und aktiviert werden?</p>\n <table class=\"version\">\n <tr>\n <th>Aktuelle Version</th>\n <td>{{event.current.hash}}</td>\n </tr>\n <tr>\n <th>Neue Version</th>\n <td>{{event.available.hash}}</td>\n </tr>\n </table>\n <mat-progress-bar [value]=\"progress\" matTooltip=\"start auto update\" mode=\"determinate\"></mat-progress-bar>\n</mat-dialog-content>\n<mat-dialog-actions>\n <button [mat-dialog-close]=\"false\" mat-button>Abbrechen</button>\n <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n <button [mat-dialog-close]=\"true\" mat-button>Update</button>\n</mat-dialog-actions>\n", styles: [".version th{padding-right:12px}\n"], dependencies: [{ kind: "ngmodule", type: MatDialogModule }, { kind: "directive", type: i1$1.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }, { kind: "directive", type: i1$1.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i1$1.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i1$1.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "ngmodule", type: MatProgressBarModule }, { kind: "component", type: i2$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.Default }); }
|
|
121
122
|
}
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateComponent, decorators: [{
|
|
123
124
|
type: Component,
|
|
124
|
-
args: [{ selector: 'rxap-prompt-update', changeDetection: ChangeDetectionStrategy.Default,
|
|
125
|
+
args: [{ selector: 'rxap-prompt-update', changeDetection: ChangeDetectionStrategy.Default, standalone: true, imports: [
|
|
126
|
+
MatDialogModule,
|
|
127
|
+
MatProgressBarModule,
|
|
128
|
+
MatTooltipModule,
|
|
129
|
+
MatButtonModule,
|
|
130
|
+
], template: "<h2 mat-dialog-title>Update available</h2>\n<mat-dialog-content>\n <p>Ein neue Version der App steht zur Verf\u00FCgung!</p>\n <p>Soll die neue Version heruntergeladen werden und aktiviert werden?</p>\n <table class=\"version\">\n <tr>\n <th>Aktuelle Version</th>\n <td>{{event.current.hash}}</td>\n </tr>\n <tr>\n <th>Neue Version</th>\n <td>{{event.available.hash}}</td>\n </tr>\n </table>\n <mat-progress-bar [value]=\"progress\" matTooltip=\"start auto update\" mode=\"determinate\"></mat-progress-bar>\n</mat-dialog-content>\n<mat-dialog-actions>\n <button [mat-dialog-close]=\"false\" mat-button>Abbrechen</button>\n <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n <button [mat-dialog-close]=\"true\" mat-button>Update</button>\n</mat-dialog-actions>\n", styles: [".version th{padding-right:12px}\n"] }]
|
|
125
131
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
126
132
|
type: Inject,
|
|
127
|
-
args: [
|
|
128
|
-
}] }, { type: i1$1.
|
|
133
|
+
args: [MAT_DIALOG_DATA]
|
|
134
|
+
}] }, { type: i1$1.MatDialogRef, decorators: [{
|
|
129
135
|
type: Inject,
|
|
130
|
-
args: [
|
|
136
|
+
args: [MatDialogRef]
|
|
131
137
|
}] }, { type: i1.LifeCycleService, decorators: [{
|
|
132
138
|
type: Inject,
|
|
133
139
|
args: [LifeCycleService]
|
|
@@ -141,7 +147,7 @@ class PromptUpdateService {
|
|
|
141
147
|
start() {
|
|
142
148
|
console.debug('start prompt update');
|
|
143
149
|
this.updates.available
|
|
144
|
-
.pipe(concatMap((event) => this.promptUser(event)), filter(Boolean), log('start app update'), tap(() => this.updates.activateUpdate().then(() => {
|
|
150
|
+
.pipe(concatMap((event) => this.promptUser(event)), filter(Boolean), tap(() => console.log('start app update')), tap(() => this.updates.activateUpdate().then(() => {
|
|
145
151
|
console.log('app update completed. Reload app.');
|
|
146
152
|
document.location.reload();
|
|
147
153
|
})))
|
|
@@ -153,17 +159,17 @@ class PromptUpdateService {
|
|
|
153
159
|
});
|
|
154
160
|
return dialogRef.afterClosed().pipe(map(Boolean), take(1));
|
|
155
161
|
}
|
|
156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
157
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateService, deps: [{ token: MatDialog }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
163
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateService, providedIn: 'root' }); }
|
|
158
164
|
}
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateService, decorators: [{
|
|
160
166
|
type: Injectable,
|
|
161
167
|
args: [{
|
|
162
168
|
providedIn: 'root',
|
|
163
169
|
}]
|
|
164
|
-
}], ctorParameters: function () { return [{ type: i1$1.
|
|
170
|
+
}], ctorParameters: function () { return [{ type: i1$1.MatDialog, decorators: [{
|
|
165
171
|
type: Inject,
|
|
166
|
-
args: [
|
|
172
|
+
args: [MatDialog]
|
|
167
173
|
}] }, { type: i2.SwUpdate, decorators: [{
|
|
168
174
|
type: Inject,
|
|
169
175
|
args: [SwUpdate]
|
|
@@ -173,47 +179,37 @@ class PromptUpdateModule {
|
|
|
173
179
|
constructor(promptUpdate) {
|
|
174
180
|
promptUpdate.start();
|
|
175
181
|
}
|
|
176
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
177
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
178
|
-
|
|
179
|
-
MatLegacyProgressBarModule,
|
|
180
|
-
MatLegacyTooltipModule], exports: [PromptUpdateComponent] }); }
|
|
181
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: PromptUpdateModule, imports: [MatLegacyDialogModule,
|
|
182
|
-
MatLegacyButtonModule,
|
|
183
|
-
MatLegacyProgressBarModule,
|
|
184
|
-
MatLegacyTooltipModule] }); }
|
|
182
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateModule, deps: [{ token: PromptUpdateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
183
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateModule, imports: [PromptUpdateComponent], exports: [PromptUpdateComponent] }); }
|
|
184
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateModule, imports: [PromptUpdateComponent] }); }
|
|
185
185
|
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
186
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: PromptUpdateModule, decorators: [{
|
|
187
187
|
type: NgModule,
|
|
188
188
|
args: [{
|
|
189
|
-
declarations: [PromptUpdateComponent],
|
|
190
189
|
imports: [
|
|
191
|
-
|
|
192
|
-
MatLegacyButtonModule,
|
|
193
|
-
MatLegacyProgressBarModule,
|
|
194
|
-
MatLegacyTooltipModule
|
|
190
|
+
PromptUpdateComponent,
|
|
195
191
|
],
|
|
196
|
-
exports: [PromptUpdateComponent]
|
|
192
|
+
exports: [PromptUpdateComponent],
|
|
197
193
|
}]
|
|
198
194
|
}], ctorParameters: function () { return [{ type: PromptUpdateService }]; } });
|
|
199
195
|
|
|
200
196
|
class ServiceWorkerPromptUpdateModule {
|
|
201
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
202
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
197
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerPromptUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
198
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerPromptUpdateModule, exports: [LogUpdateModule,
|
|
203
199
|
CheckForUpdateModule,
|
|
204
200
|
PromptUpdateModule] }); }
|
|
205
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
201
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerPromptUpdateModule, imports: [LogUpdateModule,
|
|
206
202
|
CheckForUpdateModule,
|
|
207
203
|
PromptUpdateModule] }); }
|
|
208
204
|
}
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
205
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerPromptUpdateModule, decorators: [{
|
|
210
206
|
type: NgModule,
|
|
211
207
|
args: [{
|
|
212
208
|
exports: [
|
|
213
209
|
LogUpdateModule,
|
|
214
210
|
CheckForUpdateModule,
|
|
215
|
-
PromptUpdateModule
|
|
216
|
-
]
|
|
211
|
+
PromptUpdateModule,
|
|
212
|
+
],
|
|
217
213
|
}]
|
|
218
214
|
}] });
|
|
219
215
|
|
|
@@ -225,7 +221,7 @@ class SnackBarUpdateService {
|
|
|
225
221
|
start() {
|
|
226
222
|
console.debug('start prompt update');
|
|
227
223
|
this.updates.available
|
|
228
|
-
.pipe(concatMap((event) => this.openSnackBar(event)), log('start app update'), tap(() => this.updates.activateUpdate().then(() => {
|
|
224
|
+
.pipe(concatMap((event) => this.openSnackBar(event)), tap(() => console.log('start app update')), tap(() => this.updates.activateUpdate().then(() => {
|
|
229
225
|
console.log('app update completed. Reload app.');
|
|
230
226
|
document.location.reload();
|
|
231
227
|
})))
|
|
@@ -238,17 +234,17 @@ class SnackBarUpdateService {
|
|
|
238
234
|
});
|
|
239
235
|
return snackBarRef.onAction();
|
|
240
236
|
}
|
|
241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
242
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.
|
|
237
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateService, deps: [{ token: MatSnackBar }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
238
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateService, providedIn: 'root' }); }
|
|
243
239
|
}
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateService, decorators: [{
|
|
245
241
|
type: Injectable,
|
|
246
242
|
args: [{
|
|
247
243
|
providedIn: 'root',
|
|
248
244
|
}]
|
|
249
|
-
}], ctorParameters: function () { return [{ type: i1$2.
|
|
245
|
+
}], ctorParameters: function () { return [{ type: i1$2.MatSnackBar, decorators: [{
|
|
250
246
|
type: Inject,
|
|
251
|
-
args: [
|
|
247
|
+
args: [MatSnackBar]
|
|
252
248
|
}] }, { type: i2.SwUpdate, decorators: [{
|
|
253
249
|
type: Inject,
|
|
254
250
|
args: [SwUpdate]
|
|
@@ -257,14 +253,14 @@ class SnackBarUpdateServiceModule {
|
|
|
257
253
|
constructor(snackBarUpdate) {
|
|
258
254
|
snackBarUpdate.start();
|
|
259
255
|
}
|
|
260
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
261
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
262
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
256
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateServiceModule, deps: [{ token: SnackBarUpdateService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
257
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateServiceModule, exports: [MatSnackBarModule] }); }
|
|
258
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateServiceModule, imports: [MatSnackBarModule] }); }
|
|
263
259
|
}
|
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
260
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: SnackBarUpdateServiceModule, decorators: [{
|
|
265
261
|
type: NgModule,
|
|
266
262
|
args: [{
|
|
267
|
-
exports: [
|
|
263
|
+
exports: [MatSnackBarModule],
|
|
268
264
|
}]
|
|
269
265
|
}], ctorParameters: function () { return [{ type: SnackBarUpdateService, decorators: [{
|
|
270
266
|
type: Inject,
|
|
@@ -272,28 +268,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImpor
|
|
|
272
268
|
}] }]; } });
|
|
273
269
|
|
|
274
270
|
class ServiceWorkerSnackBarUpdateModule {
|
|
275
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
|
276
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
|
271
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
272
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, exports: [LogUpdateModule,
|
|
277
273
|
CheckForUpdateModule,
|
|
278
274
|
SnackBarUpdateServiceModule] }); }
|
|
279
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
|
275
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, imports: [LogUpdateModule,
|
|
280
276
|
CheckForUpdateModule,
|
|
281
277
|
SnackBarUpdateServiceModule] }); }
|
|
282
278
|
}
|
|
283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.
|
|
279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.4", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, decorators: [{
|
|
284
280
|
type: NgModule,
|
|
285
281
|
args: [{
|
|
286
282
|
exports: [
|
|
287
283
|
LogUpdateModule,
|
|
288
284
|
CheckForUpdateModule,
|
|
289
285
|
SnackBarUpdateServiceModule,
|
|
290
|
-
]
|
|
286
|
+
],
|
|
291
287
|
}]
|
|
292
288
|
}] });
|
|
293
289
|
|
|
290
|
+
function UnregisterServiceWorker(environment) {
|
|
291
|
+
if (!environment.serviceWorker) {
|
|
292
|
+
navigator?.serviceWorker?.getRegistrations().then(async (registrations) => {
|
|
293
|
+
await Promise.all(registrations.map((registration) => {
|
|
294
|
+
console.log('unregister service worker: ' + registration.scope);
|
|
295
|
+
return registration.unregister();
|
|
296
|
+
}));
|
|
297
|
+
if (registrations.length) {
|
|
298
|
+
const response = confirm('All dangling service worker are unregistered. Should the application be reloaded to complete the migration');
|
|
299
|
+
if (response) {
|
|
300
|
+
location.reload();
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
294
307
|
/**
|
|
295
308
|
* Generated bundle index. Do not edit.
|
|
296
309
|
*/
|
|
297
310
|
|
|
298
|
-
export { CheckForUpdateModule, CheckForUpdateService, LogUpdateModule, LogUpdateService, PromptUpdateComponent, PromptUpdateModule, PromptUpdateService, ServiceWorkerPromptUpdateModule, ServiceWorkerSnackBarUpdateModule, SnackBarUpdateService, SnackBarUpdateServiceModule };
|
|
311
|
+
export { CheckForUpdateModule, CheckForUpdateService, LogUpdateModule, LogUpdateService, PromptUpdateComponent, PromptUpdateModule, PromptUpdateService, ServiceWorkerPromptUpdateModule, ServiceWorkerSnackBarUpdateModule, SnackBarUpdateService, SnackBarUpdateServiceModule, UnregisterServiceWorker };
|
|
299
312
|
//# sourceMappingURL=rxap-service-worker.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rxap-service-worker.mjs","sources":["../../../../libs/service-worker/src/lib/log-update.service.ts","../../../../libs/service-worker/src/lib/check-for-update.service.ts","../../../../libs/service-worker/src/lib/prompt-update/prompt-update.component.ts","../../../../libs/service-worker/src/lib/prompt-update/prompt-update.component.html","../../../../libs/service-worker/src/lib/prompt-update/prompt-update.service.ts","../../../../libs/service-worker/src/lib/prompt-update/prompt-update.component.module.ts","../../../../libs/service-worker/src/lib/service-worker-prompt-update.module.ts","../../../../libs/service-worker/src/lib/snack-bar-update.service.ts","../../../../libs/service-worker/src/lib/service-worker-snack-bar-update.module.ts","../../../../libs/service-worker/src/rxap-service-worker.ts"],"sourcesContent":["import {\n Injectable,\n NgModule\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class LogUpdateService {\n\n constructor(private readonly updates: SwUpdate) {}\n\n public start() {\n console.debug('start log update');\n this.updates.available.subscribe(event => {\n console.log('current version is', event.current);\n console.log('available version is', event.available);\n });\n this.updates.activated.subscribe(event => {\n console.log('old version was', event.previous);\n console.log('new version is', event.current);\n });\n }\n\n}\n\n@NgModule()\nexport class LogUpdateModule {\n\n constructor(logUpdate: LogUpdateService) {\n logUpdate.start();\n }\n\n}\n","import {\n Injectable,\n NgModule,\n Inject\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport {\n tap,\n startWith\n} from 'rxjs/operators';\nimport { interval } from 'rxjs';\nimport { LifeCycleService } from '@rxap/life-cycle';\nimport { log } from '@rxap/utilities/rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CheckForUpdateService {\n\n constructor(\n @Inject(LifeCycleService) private readonly lifeCycle: LifeCycleService,\n @Inject(SwUpdate) private readonly updates: SwUpdate,\n ) {}\n\n public start(): void {\n if (this.updates.isEnabled) {\n\n console.debug('start check for update');\n\n this.updates.checkForUpdate();\n\n this\n .lifeCycle\n .whenReady(() => interval(15 * 60 * 1000)\n .pipe(\n startWith(null),\n log('check for update'),\n tap(() => this.updates.checkForUpdate()),\n ),\n )\n .subscribe();\n\n }\n }\n\n}\n\n@NgModule()\nexport class CheckForUpdateModule {\n\n constructor(@Inject(CheckForUpdateService) checkForUpdate: CheckForUpdateService) {\n checkForUpdate.start();\n }\n\n}\n","import {\n Component,\n OnInit,\n ChangeDetectionStrategy,\n Inject,\n OnDestroy\n} from '@angular/core';\nimport { UpdateAvailableEvent } from '@angular/service-worker';\nimport {\n MAT_LEGACY_DIALOG_DATA as MAT_DIALOG_DATA,\n MatLegacyDialogRef as MatDialogRef\n} from '@angular/material/legacy-dialog';\nimport {\n interval,\n Subscription\n} from 'rxjs';\nimport {\n tap,\n first\n} from 'rxjs/operators';\nimport { LifeCycleService } from '@rxap/life-cycle';\nimport { log } from '@rxap/utilities/rxjs';\n\n@Component({\n selector: 'rxap-prompt-update',\n templateUrl: './prompt-update.component.html',\n styleUrls: ['./prompt-update.component.scss'],\n changeDetection: ChangeDetectionStrategy.Default,\n})\nexport class PromptUpdateComponent implements OnInit, OnDestroy {\n public static AUTO_UPDATE_IN = 1000 * 60 * 1.5;\n\n public progress: number = 1;\n\n public subscription?: Subscription;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public readonly event: UpdateAvailableEvent,\n @Inject(MatDialogRef)\n private readonly dialogRef: MatDialogRef<boolean>,\n @Inject(LifeCycleService)\n private readonly lifecycle: LifeCycleService\n ) {}\n\n public ngOnInit(): void {\n this.subscription = this.lifecycle\n .whenReady(() =>\n interval(100).pipe(\n tap(\n (i) =>\n (this.progress = Math.floor(\n ((i + 1) / (PromptUpdateComponent.AUTO_UPDATE_IN / 100)) * 100\n ))\n ),\n first((i) => i >= PromptUpdateComponent.AUTO_UPDATE_IN / 100),\n log('start auto update'),\n tap(() => this.dialogRef.close(true))\n )\n )\n .subscribe();\n }\n\n public ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","<h2 mat-dialog-title>Update available</h2>\n<mat-dialog-content>\n <p>Ein neue Version der App steht zur Verfügung!</p>\n <p>Soll die neue Version heruntergeladen werden und aktiviert werden?</p>\n <table class=\"version\">\n <tr>\n <th>Aktuelle Version</th>\n <td>{{event.current.hash}}</td>\n </tr>\n <tr>\n <th>Neue Version</th>\n <td>{{event.available.hash}}</td>\n </tr>\n </table>\n <mat-progress-bar [value]=\"progress\" matTooltip=\"start auto update\" mode=\"determinate\"></mat-progress-bar>\n</mat-dialog-content>\n<mat-dialog-actions>\n <button [mat-dialog-close]=\"false\" mat-button>Abbrechen</button>\n <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n <button [mat-dialog-close]=\"true\" mat-button>Update</button>\n</mat-dialog-actions>\n","import {\n Injectable,\n Inject\n} from '@angular/core';\nimport {\n SwUpdate,\n UpdateAvailableEvent\n} from '@angular/service-worker';\nimport {\n concatMap,\n filter,\n tap,\n map,\n take\n} from 'rxjs/operators';\nimport { MatLegacyDialog as MatDialog } from '@angular/material/legacy-dialog';\nimport { PromptUpdateComponent } from './prompt-update.component';\nimport { Observable } from 'rxjs';\nimport { log } from '@rxap/utilities/rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class PromptUpdateService {\n constructor(\n @Inject(MatDialog)\n private readonly dialog: MatDialog,\n @Inject(SwUpdate)\n private readonly updates: SwUpdate\n ) {}\n\n public start(): void {\n console.debug('start prompt update');\n this.updates.available\n .pipe(\n concatMap((event) => this.promptUser(event)),\n filter(Boolean),\n log('start app update'),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n })\n )\n )\n .subscribe();\n }\n\n private promptUser(event: UpdateAvailableEvent): Observable<boolean> {\n const dialogRef = this.dialog.open<PromptUpdateComponent, any, boolean>(\n PromptUpdateComponent,\n {\n data: event,\n }\n );\n\n return dialogRef.afterClosed().pipe(map(Boolean), take(1));\n }\n}\n","import { NgModule } from '@angular/core';\nimport { PromptUpdateComponent } from './prompt-update.component';\nimport { MatLegacyDialogModule as MatDialogModule } from '@angular/material/legacy-dialog';\nimport { PromptUpdateService } from './prompt-update.service';\nimport { MatLegacyButtonModule as MatButtonModule } from '@angular/material/legacy-button';\nimport { MatLegacyProgressBarModule as MatProgressBarModule } from '@angular/material/legacy-progress-bar';\nimport { MatLegacyTooltipModule as MatTooltipModule } from '@angular/material/legacy-tooltip';\n\n\n@NgModule({\n declarations: [ PromptUpdateComponent ],\n imports: [\n MatDialogModule,\n MatButtonModule,\n MatProgressBarModule,\n MatTooltipModule\n ],\n exports: [ PromptUpdateComponent ]\n})\nexport class PromptUpdateModule {\n\n constructor(promptUpdate: PromptUpdateService) {\n promptUpdate.start();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { LogUpdateModule } from './log-update.service';\nimport { CheckForUpdateModule } from './check-for-update.service';\nimport { PromptUpdateModule } from './prompt-update/prompt-update.component.module';\n\n@NgModule({\n exports: [\n LogUpdateModule,\n CheckForUpdateModule,\n PromptUpdateModule\n ]\n})\nexport class ServiceWorkerPromptUpdateModule {}\n","import {\n Injectable,\n NgModule,\n Inject\n} from '@angular/core';\nimport {\n SwUpdate,\n UpdateAvailableEvent\n} from '@angular/service-worker';\nimport {\n concatMap,\n tap\n} from 'rxjs/operators';\nimport { Observable } from 'rxjs';\nimport {\n MatLegacySnackBar as MatSnackBar,\n MatLegacySnackBarModule as MatSnackBarModule\n} from '@angular/material/legacy-snack-bar';\nimport { log } from '@rxap/utilities/rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SnackBarUpdateService {\n constructor(\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Inject(SwUpdate)\n private readonly updates: SwUpdate\n ) {}\n\n public start(): void {\n console.debug('start prompt update');\n this.updates.available\n .pipe(\n concatMap((event) => this.openSnackBar(event)),\n log('start app update'),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n })\n )\n )\n .subscribe();\n }\n\n private openSnackBar(event: UpdateAvailableEvent): Observable<void> {\n const snackBarRef = this.snackBar.open('New update available', 'update', {\n duration: 25 * 1000,\n data: event,\n });\n\n return snackBarRef.onAction();\n }\n}\n\n@NgModule({\n exports: [MatSnackBarModule],\n})\nexport class SnackBarUpdateServiceModule {\n constructor(\n @Inject(SnackBarUpdateService)\n snackBarUpdate: SnackBarUpdateService\n ) {\n snackBarUpdate.start();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SnackBarUpdateServiceModule } from './snack-bar-update.service';\nimport { LogUpdateModule } from './log-update.service';\nimport { CheckForUpdateModule } from './check-for-update.service';\n\n@NgModule({\n exports: [\n LogUpdateModule,\n CheckForUpdateModule,\n SnackBarUpdateServiceModule,\n ]\n})\nexport class ServiceWorkerSnackBarUpdateModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","MAT_DIALOG_DATA","M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AA,CAAA,CAAA,EAAA;;2FAEhB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAHvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAACA,uBAAiB,CAAC;AAC7B,iBAAA,CAAA;;0BAGI,MAAM;2BAAC,qBAAqB,CAAA;;;ACzDjC,MAOa,iCAAiC,CAAA;8GAAjC,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAjC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,YAL1C,eAAe;YACf,oBAAoB;YACpB,2BAA2B,CAAA,EAAA,CAAA,CAAA,EAAA;AAGlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iCAAiC,YAL1C,eAAe;YACf,oBAAoB;YACpB,2BAA2B,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAGlB,iCAAiC,EAAA,UAAA,EAAA,CAAA;kBAP7C,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;wBACP,eAAe;wBACf,oBAAoB;wBACpB,2BAA2B;AAC5B,qBAAA;AACF,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"rxap-service-worker.mjs","sources":["../../../../../packages/angular/service-worker/src/lib/log-update.service.ts","../../../../../packages/angular/service-worker/src/lib/check-for-update.service.ts","../../../../../packages/angular/service-worker/src/lib/prompt-update/prompt-update.component.ts","../../../../../packages/angular/service-worker/src/lib/prompt-update/prompt-update.component.html","../../../../../packages/angular/service-worker/src/lib/prompt-update/prompt-update.service.ts","../../../../../packages/angular/service-worker/src/lib/prompt-update/prompt-update.component.module.ts","../../../../../packages/angular/service-worker/src/lib/service-worker-prompt-update.module.ts","../../../../../packages/angular/service-worker/src/lib/snack-bar-update.service.ts","../../../../../packages/angular/service-worker/src/lib/service-worker-snack-bar-update.module.ts","../../../../../packages/angular/service-worker/src/lib/unregister-service-worker.ts","../../../../../packages/angular/service-worker/src/rxap-service-worker.ts"],"sourcesContent":["import {\n Injectable,\n NgModule,\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LogUpdateService {\n\n constructor(private readonly updates: SwUpdate) {\n }\n\n public start() {\n console.debug('start log update');\n this.updates.available.subscribe(event => {\n console.log('current version is', event.current);\n console.log('available version is', event.available);\n });\n this.updates.activated.subscribe(event => {\n console.log('old version was', event.previous);\n console.log('new version is', event.current);\n });\n }\n\n}\n\n@NgModule({})\nexport class LogUpdateModule {\n\n constructor(logUpdate: LogUpdateService) {\n logUpdate.start();\n }\n\n}\n","import {\n Inject,\n Injectable,\n NgModule,\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport {\n startWith,\n tap,\n} from 'rxjs/operators';\nimport { interval } from 'rxjs';\nimport { LifeCycleService } from '@rxap/life-cycle';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CheckForUpdateService {\n\n constructor(\n @Inject(LifeCycleService) private readonly lifeCycle: LifeCycleService,\n @Inject(SwUpdate) private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n if (this.updates.isEnabled) {\n\n console.debug('start check for update');\n\n this.updates.checkForUpdate();\n\n this\n .lifeCycle\n .whenReady(() => interval(15 * 60 * 1000)\n .pipe(\n startWith(null),\n tap(() => console.log('check for update')),\n tap(() => this.updates.checkForUpdate()),\n ),\n )\n .subscribe();\n\n }\n }\n\n}\n\n@NgModule({})\nexport class CheckForUpdateModule {\n\n constructor(@Inject(CheckForUpdateService) checkForUpdate: CheckForUpdateService) {\n checkForUpdate.start();\n }\n\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Inject,\n OnDestroy,\n OnInit,\n} from '@angular/core';\nimport { UpdateAvailableEvent } from '@angular/service-worker';\nimport {\n MAT_DIALOG_DATA,\n MatDialogModule,\n MatDialogRef,\n} from '@angular/material/dialog';\nimport {\n interval,\n Subscription,\n} from 'rxjs';\nimport {\n first,\n tap,\n} from 'rxjs/operators';\nimport { LifeCycleService } from '@rxap/life-cycle';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\n\n@Component({\n selector: 'rxap-prompt-update',\n templateUrl: './prompt-update.component.html',\n styleUrls: [ './prompt-update.component.scss' ],\n changeDetection: ChangeDetectionStrategy.Default,\n standalone: true,\n imports: [\n MatDialogModule,\n MatProgressBarModule,\n MatTooltipModule,\n MatButtonModule,\n ],\n})\nexport class PromptUpdateComponent implements OnInit, OnDestroy {\n public static AUTO_UPDATE_IN = 1000 * 60 * 1.5;\n\n public progress = 1;\n\n public subscription?: Subscription;\n\n constructor(\n @Inject(MAT_DIALOG_DATA) public readonly event: UpdateAvailableEvent,\n @Inject(MatDialogRef)\n private readonly dialogRef: MatDialogRef<boolean>,\n @Inject(LifeCycleService)\n private readonly lifecycle: LifeCycleService,\n ) {\n }\n\n public ngOnInit(): void {\n this.subscription = this.lifecycle\n .whenReady(() =>\n interval(100).pipe(\n tap(\n (i) =>\n (this.progress = Math.floor(\n ((i + 1) / (PromptUpdateComponent.AUTO_UPDATE_IN / 100)) * 100,\n )),\n ),\n first((i) => i >= PromptUpdateComponent.AUTO_UPDATE_IN / 100),\n tap(() => console.log('start auto update')),\n tap(() => this.dialogRef.close(true)),\n ),\n )\n .subscribe();\n }\n\n public ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","<h2 mat-dialog-title>Update available</h2>\n<mat-dialog-content>\n <p>Ein neue Version der App steht zur Verfügung!</p>\n <p>Soll die neue Version heruntergeladen werden und aktiviert werden?</p>\n <table class=\"version\">\n <tr>\n <th>Aktuelle Version</th>\n <td>{{event.current.hash}}</td>\n </tr>\n <tr>\n <th>Neue Version</th>\n <td>{{event.available.hash}}</td>\n </tr>\n </table>\n <mat-progress-bar [value]=\"progress\" matTooltip=\"start auto update\" mode=\"determinate\"></mat-progress-bar>\n</mat-dialog-content>\n<mat-dialog-actions>\n <button [mat-dialog-close]=\"false\" mat-button>Abbrechen</button>\n <!-- The mat-dialog-close directive optionally accepts a value as a result for the dialog. -->\n <button [mat-dialog-close]=\"true\" mat-button>Update</button>\n</mat-dialog-actions>\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport {\n SwUpdate,\n UpdateAvailableEvent,\n} from '@angular/service-worker';\nimport {\n concatMap,\n filter,\n map,\n take,\n tap,\n} from 'rxjs/operators';\nimport { MatDialog } from '@angular/material/dialog';\nimport { PromptUpdateComponent } from './prompt-update.component';\nimport { Observable } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class PromptUpdateService {\n constructor(\n @Inject(MatDialog)\n private readonly dialog: MatDialog,\n @Inject(SwUpdate)\n private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n console.debug('start prompt update');\n this.updates.available\n .pipe(\n concatMap((event) => this.promptUser(event)),\n filter(Boolean),\n tap(() => console.log('start app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n private promptUser(event: UpdateAvailableEvent): Observable<boolean> {\n const dialogRef = this.dialog.open<PromptUpdateComponent, any, boolean>(\n PromptUpdateComponent,\n {\n data: event,\n },\n );\n\n return dialogRef.afterClosed().pipe(map(Boolean), take(1));\n }\n}\n","import { NgModule } from '@angular/core';\nimport { PromptUpdateComponent } from './prompt-update.component';\nimport { PromptUpdateService } from './prompt-update.service';\n\n\n@NgModule({\n imports: [\n PromptUpdateComponent,\n ],\n exports: [ PromptUpdateComponent ],\n})\nexport class PromptUpdateModule {\n\n constructor(promptUpdate: PromptUpdateService) {\n promptUpdate.start();\n }\n\n}\n","import { NgModule } from '@angular/core';\nimport { LogUpdateModule } from './log-update.service';\nimport { CheckForUpdateModule } from './check-for-update.service';\nimport { PromptUpdateModule } from './prompt-update/prompt-update.component.module';\n\n@NgModule({\n exports: [\n LogUpdateModule,\n CheckForUpdateModule,\n PromptUpdateModule,\n ],\n})\nexport class ServiceWorkerPromptUpdateModule {}\n","import {\n Inject,\n Injectable,\n NgModule,\n} from '@angular/core';\nimport {\n SwUpdate,\n UpdateAvailableEvent,\n} from '@angular/service-worker';\nimport {\n concatMap,\n tap,\n} from 'rxjs/operators';\nimport { Observable } from 'rxjs';\nimport {\n MatSnackBar,\n MatSnackBarModule,\n} from '@angular/material/snack-bar';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SnackBarUpdateService {\n constructor(\n @Inject(MatSnackBar)\n private readonly snackBar: MatSnackBar,\n @Inject(SwUpdate)\n private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n console.debug('start prompt update');\n this.updates.available\n .pipe(\n concatMap((event) => this.openSnackBar(event)),\n tap(() => console.log('start app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n private openSnackBar(event: UpdateAvailableEvent): Observable<void> {\n const snackBarRef = this.snackBar.open('New update available', 'update', {\n duration: 25 * 1000,\n data: event,\n });\n\n return snackBarRef.onAction();\n }\n}\n\n@NgModule({\n exports: [ MatSnackBarModule ],\n})\nexport class SnackBarUpdateServiceModule {\n constructor(\n @Inject(SnackBarUpdateService)\n snackBarUpdate: SnackBarUpdateService,\n ) {\n snackBarUpdate.start();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { SnackBarUpdateServiceModule } from './snack-bar-update.service';\nimport { LogUpdateModule } from './log-update.service';\nimport { CheckForUpdateModule } from './check-for-update.service';\n\n@NgModule({\n exports: [\n LogUpdateModule,\n CheckForUpdateModule,\n SnackBarUpdateServiceModule,\n ],\n})\nexport class ServiceWorkerSnackBarUpdateModule {}\n","import { Environment } from '@rxap/environment';\n\nexport function UnregisterServiceWorker(environment: Environment) {\n if (!environment.serviceWorker) {\n navigator?.serviceWorker?.getRegistrations().then(async (registrations) => {\n await Promise.all(registrations.map((registration) => {\n console.log('unregister service worker: ' + registration.scope);\n return registration.unregister();\n }));\n if (registrations.length) {\n const response = confirm(\n 'All dangling service worker are unregistered. Should the application be reloaded to complete the migration');\n if (response) {\n location.reload();\n }\n }\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i1.PromptUpdateService"],"mappings":";;;;;;;;;;;;;;;;;;;MASa,gBAAgB,CAAA;AAE3B,IAAA,WAAA,CAA6B,OAAiB,EAAA;QAAjB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAU;KAC7C;IAEM,KAAK,GAAA;AACV,QAAA,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,IAAG;YACvC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACjD,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;AACvD,SAAC,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,IAAG;YACvC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,gBAAgB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;AAC/C,SAAC,CAAC,CAAC;KACJ;8GAfU,gBAAgB,EAAA,IAA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AC,YAAY,KAAI;gBACnD,OAAO,CAAC,GAAG,CAAC,6BAA6B,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;AAChE,gBAAA,OAAO,YAAY,CAAC,UAAU,EAAE,CAAC;aAClC,CAAC,CAAC,CAAC;YACJ,IAAI,aAAa,CAAC,MAAM,EAAE;AACxB,gBAAA,MAAM,QAAQ,GAAG,OAAO,CACtB,4GAA4G,CAAC,CAAC;AAChH,gBAAA,IAAI,QAAQ,EAAE;oBACZ,QAAQ,CAAC,MAAM,EAAE,CAAC;AACnB,iBAAA;AACF,aAAA;AACH,SAAC,CAAC,CAAC;AACJ,KAAA;AACH;;AClBA;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export * from './lib/prompt-update/prompt-update.component';
|
|
|
6
6
|
export * from './lib/prompt-update/prompt-update.service';
|
|
7
7
|
export * from './lib/snack-bar-update.service';
|
|
8
8
|
export * from './lib/service-worker-snack-bar-update.module';
|
|
9
|
+
export * from './lib/unregister-service-worker';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { UpdateAvailableEvent } from '@angular/service-worker';
|
|
3
|
-
import {
|
|
3
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
4
|
import { Subscription } from 'rxjs';
|
|
5
5
|
import { LifeCycleService } from '@rxap/life-cycle';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
@@ -15,5 +15,5 @@ export declare class PromptUpdateComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
ngOnInit(): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<PromptUpdateComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PromptUpdateComponent, "rxap-prompt-update", never, {}, {}, never, never,
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PromptUpdateComponent, "rxap-prompt-update", never, {}, {}, never, never, true, never>;
|
|
19
19
|
}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { PromptUpdateService } from './prompt-update.service';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "./prompt-update.component";
|
|
4
|
-
import * as i2 from "@angular/material/legacy-dialog";
|
|
5
|
-
import * as i3 from "@angular/material/legacy-button";
|
|
6
|
-
import * as i4 from "@angular/material/legacy-progress-bar";
|
|
7
|
-
import * as i5 from "@angular/material/legacy-tooltip";
|
|
8
4
|
export declare class PromptUpdateModule {
|
|
9
5
|
constructor(promptUpdate: PromptUpdateService);
|
|
10
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<PromptUpdateModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<PromptUpdateModule, [typeof i1.PromptUpdateComponent], [typeof
|
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PromptUpdateModule, never, [typeof i1.PromptUpdateComponent], [typeof i1.PromptUpdateComponent]>;
|
|
12
8
|
static ɵinj: i0.ɵɵInjectorDeclaration<PromptUpdateModule>;
|
|
13
9
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SwUpdate } from '@angular/service-worker';
|
|
2
|
-
import {
|
|
2
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class PromptUpdateService {
|
|
5
5
|
private readonly dialog;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SwUpdate } from '@angular/service-worker';
|
|
2
|
-
import {
|
|
2
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "@angular/material/
|
|
4
|
+
import * as i1 from "@angular/material/snack-bar";
|
|
5
5
|
export declare class SnackBarUpdateService {
|
|
6
6
|
private readonly snackBar;
|
|
7
7
|
private readonly updates;
|
|
@@ -14,6 +14,6 @@ export declare class SnackBarUpdateService {
|
|
|
14
14
|
export declare class SnackBarUpdateServiceModule {
|
|
15
15
|
constructor(snackBarUpdate: SnackBarUpdateService);
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<SnackBarUpdateServiceModule, never>;
|
|
17
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SnackBarUpdateServiceModule, never, never, [typeof i1.
|
|
17
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SnackBarUpdateServiceModule, never, never, [typeof i1.MatSnackBarModule]>;
|
|
18
18
|
static ɵinj: i0.ɵɵInjectorDeclaration<SnackBarUpdateServiceModule>;
|
|
19
19
|
}
|