@rxap/service-worker 12.0.7-next.0 → 13.0.0-next.1
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/esm2020/index.mjs +9 -0
- package/esm2020/lib/check-for-update.service.mjs +55 -0
- package/esm2020/lib/log-update.service.mjs +40 -0
- package/esm2020/lib/prompt-update/prompt-update.component.mjs +45 -0
- package/esm2020/lib/prompt-update/prompt-update.component.module.mjs +39 -0
- package/esm2020/lib/prompt-update/prompt-update.service.mjs +45 -0
- package/esm2020/lib/service-worker-prompt-update.module.mjs +25 -0
- package/esm2020/lib/service-worker-snack-bar-update.module.mjs +25 -0
- package/esm2020/lib/snack-bar-update.service.mjs +62 -0
- package/esm2020/rxap-service-worker.mjs +5 -0
- package/fesm2015/rxap-service-worker.mjs +314 -0
- package/fesm2015/rxap-service-worker.mjs.map +1 -0
- package/{fesm2015/rxap-service-worker.js → fesm2020/rxap-service-worker.mjs} +42 -48
- package/fesm2020/rxap-service-worker.mjs.map +1 -0
- package/package.json +29 -14
- package/src/schematics/ng-add/index.js +1 -1
- package/src/schematics/ng-add/index.js.map +1 -1
- package/bundles/rxap-service-worker.umd.js +0 -367
- package/bundles/rxap-service-worker.umd.js.map +0 -1
- package/esm2015/index.js +0 -9
- package/esm2015/index.js.map +0 -1
- package/esm2015/lib/check-for-update.service.js +0 -55
- package/esm2015/lib/check-for-update.service.js.map +0 -1
- package/esm2015/lib/log-update.service.js +0 -40
- package/esm2015/lib/log-update.service.js.map +0 -1
- package/esm2015/lib/prompt-update/prompt-update.component.js +0 -51
- package/esm2015/lib/prompt-update/prompt-update.component.js.map +0 -1
- package/esm2015/lib/prompt-update/prompt-update.component.module.js +0 -39
- package/esm2015/lib/prompt-update/prompt-update.component.module.js.map +0 -1
- package/esm2015/lib/prompt-update/prompt-update.service.js +0 -45
- package/esm2015/lib/prompt-update/prompt-update.service.js.map +0 -1
- package/esm2015/lib/service-worker-prompt-update.module.js +0 -25
- package/esm2015/lib/service-worker-prompt-update.module.js.map +0 -1
- package/esm2015/lib/service-worker-snack-bar-update.module.js +0 -25
- package/esm2015/lib/service-worker-snack-bar-update.module.js.map +0 -1
- package/esm2015/lib/snack-bar-update.service.js +0 -62
- package/esm2015/lib/snack-bar-update.service.js.map +0 -1
- package/esm2015/rxap-service-worker.js +0 -5
- package/esm2015/rxap-service-worker.js.map +0 -1
- package/fesm2015/rxap-service-worker.js.map +0 -1
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, NgModule, Inject, Component, ChangeDetectionStrategy } from '@angular/core';
|
|
3
|
+
import * as i2 from '@angular/service-worker';
|
|
4
|
+
import { SwUpdate } from '@angular/service-worker';
|
|
5
|
+
import { startWith, tap, first, concatMap, filter, map, take } from 'rxjs/operators';
|
|
6
|
+
import { interval } from 'rxjs';
|
|
7
|
+
import * as i1 from '@rxap/life-cycle';
|
|
8
|
+
import { LifeCycleService } from '@rxap/life-cycle';
|
|
9
|
+
import { log } from '@rxap/utilities/rxjs';
|
|
10
|
+
import * as i3 from '@angular/material/dialog';
|
|
11
|
+
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
12
|
+
import * as i1$1 from '@angular/material/progress-bar';
|
|
13
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
14
|
+
import * as i2$1 from '@angular/material/button';
|
|
15
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
16
|
+
import * as i4 from '@angular/material/tooltip';
|
|
17
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
18
|
+
import * as i1$2 from '@angular/material/snack-bar';
|
|
19
|
+
import { MatSnackBar, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
20
|
+
|
|
21
|
+
class LogUpdateService {
|
|
22
|
+
constructor(updates) {
|
|
23
|
+
this.updates = updates;
|
|
24
|
+
}
|
|
25
|
+
start() {
|
|
26
|
+
console.debug('start log update');
|
|
27
|
+
this.updates.available.subscribe(event => {
|
|
28
|
+
console.log('current version is', event.current);
|
|
29
|
+
console.log('available version is', event.available);
|
|
30
|
+
});
|
|
31
|
+
this.updates.activated.subscribe(event => {
|
|
32
|
+
console.log('old version was', event.previous);
|
|
33
|
+
console.log('new version is', event.current);
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
LogUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateService, deps: [{ token: i2.SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
+
LogUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateService, providedIn: 'root' });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateService, decorators: [{
|
|
40
|
+
type: Injectable,
|
|
41
|
+
args: [{
|
|
42
|
+
providedIn: 'root'
|
|
43
|
+
}]
|
|
44
|
+
}], ctorParameters: function () { return [{ type: i2.SwUpdate }]; } });
|
|
45
|
+
class LogUpdateModule {
|
|
46
|
+
constructor(logUpdate) {
|
|
47
|
+
logUpdate.start();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
LogUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule, deps: [{ token: LogUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
+
LogUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule });
|
|
52
|
+
LogUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule, decorators: [{
|
|
54
|
+
type: NgModule
|
|
55
|
+
}], ctorParameters: function () { return [{ type: LogUpdateService }]; } });
|
|
56
|
+
|
|
57
|
+
class CheckForUpdateService {
|
|
58
|
+
constructor(lifeCycle, updates) {
|
|
59
|
+
this.lifeCycle = lifeCycle;
|
|
60
|
+
this.updates = updates;
|
|
61
|
+
}
|
|
62
|
+
start() {
|
|
63
|
+
if (this.updates.isEnabled) {
|
|
64
|
+
console.debug('start check for update');
|
|
65
|
+
this.updates.checkForUpdate();
|
|
66
|
+
this
|
|
67
|
+
.lifeCycle
|
|
68
|
+
.whenReady(() => interval(15 * 60 * 1000)
|
|
69
|
+
.pipe(startWith(null), log('check for update'), tap(() => this.updates.checkForUpdate())))
|
|
70
|
+
.subscribe();
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
CheckForUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateService, deps: [{ token: LifeCycleService }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
+
CheckForUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateService, providedIn: 'root' });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateService, decorators: [{
|
|
77
|
+
type: Injectable,
|
|
78
|
+
args: [{
|
|
79
|
+
providedIn: 'root'
|
|
80
|
+
}]
|
|
81
|
+
}], ctorParameters: function () {
|
|
82
|
+
return [{ type: i1.LifeCycleService, decorators: [{
|
|
83
|
+
type: Inject,
|
|
84
|
+
args: [LifeCycleService]
|
|
85
|
+
}] }, { type: i2.SwUpdate, decorators: [{
|
|
86
|
+
type: Inject,
|
|
87
|
+
args: [SwUpdate]
|
|
88
|
+
}] }];
|
|
89
|
+
} });
|
|
90
|
+
class CheckForUpdateModule {
|
|
91
|
+
constructor(checkForUpdate) {
|
|
92
|
+
checkForUpdate.start();
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
CheckForUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule, deps: [{ token: CheckForUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
96
|
+
CheckForUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule });
|
|
97
|
+
CheckForUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule });
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule, decorators: [{
|
|
99
|
+
type: NgModule
|
|
100
|
+
}], ctorParameters: function () {
|
|
101
|
+
return [{ type: CheckForUpdateService, decorators: [{
|
|
102
|
+
type: Inject,
|
|
103
|
+
args: [CheckForUpdateService]
|
|
104
|
+
}] }];
|
|
105
|
+
} });
|
|
106
|
+
|
|
107
|
+
class PromptUpdateComponent {
|
|
108
|
+
constructor(event, dialogRef, lifecycle) {
|
|
109
|
+
this.event = event;
|
|
110
|
+
this.dialogRef = dialogRef;
|
|
111
|
+
this.lifecycle = lifecycle;
|
|
112
|
+
this.progress = 1;
|
|
113
|
+
}
|
|
114
|
+
ngOnInit() {
|
|
115
|
+
this.subscription = this.lifecycle
|
|
116
|
+
.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))))
|
|
117
|
+
.subscribe();
|
|
118
|
+
}
|
|
119
|
+
ngOnDestroy() {
|
|
120
|
+
var _a;
|
|
121
|
+
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
PromptUpdateComponent.AUTO_UPDATE_IN = 1000 * 60 * 1.5;
|
|
125
|
+
PromptUpdateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: MatDialogRef }, { token: LifeCycleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
126
|
+
PromptUpdateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: PromptUpdateComponent, 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"], components: [{ type: i1$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateComponent, decorators: [{
|
|
128
|
+
type: Component,
|
|
129
|
+
args: [{ selector: 'rxap-prompt-update', changeDetection: ChangeDetectionStrategy.Default, 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"] }]
|
|
130
|
+
}], ctorParameters: function () {
|
|
131
|
+
return [{ type: undefined, decorators: [{
|
|
132
|
+
type: Inject,
|
|
133
|
+
args: [MAT_DIALOG_DATA]
|
|
134
|
+
}] }, { type: i3.MatDialogRef, decorators: [{
|
|
135
|
+
type: Inject,
|
|
136
|
+
args: [MatDialogRef]
|
|
137
|
+
}] }, { type: i1.LifeCycleService, decorators: [{
|
|
138
|
+
type: Inject,
|
|
139
|
+
args: [LifeCycleService]
|
|
140
|
+
}] }];
|
|
141
|
+
} });
|
|
142
|
+
|
|
143
|
+
class PromptUpdateService {
|
|
144
|
+
constructor(dialog, updates) {
|
|
145
|
+
this.dialog = dialog;
|
|
146
|
+
this.updates = updates;
|
|
147
|
+
}
|
|
148
|
+
start() {
|
|
149
|
+
console.debug('start prompt update');
|
|
150
|
+
this.updates.available
|
|
151
|
+
.pipe(concatMap((event) => this.promptUser(event)), filter(Boolean), log('start app update'), tap(() => this.updates.activateUpdate().then(() => {
|
|
152
|
+
console.log('app update completed. Reload app.');
|
|
153
|
+
document.location.reload();
|
|
154
|
+
})))
|
|
155
|
+
.subscribe();
|
|
156
|
+
}
|
|
157
|
+
promptUser(event) {
|
|
158
|
+
const dialogRef = this.dialog.open(PromptUpdateComponent, {
|
|
159
|
+
data: event,
|
|
160
|
+
});
|
|
161
|
+
return dialogRef.afterClosed().pipe(map(Boolean), take(1));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
PromptUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateService, deps: [{ token: MatDialog }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
165
|
+
PromptUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateService, providedIn: 'root' });
|
|
166
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateService, decorators: [{
|
|
167
|
+
type: Injectable,
|
|
168
|
+
args: [{
|
|
169
|
+
providedIn: 'root',
|
|
170
|
+
}]
|
|
171
|
+
}], ctorParameters: function () {
|
|
172
|
+
return [{ type: i3.MatDialog, decorators: [{
|
|
173
|
+
type: Inject,
|
|
174
|
+
args: [MatDialog]
|
|
175
|
+
}] }, { type: i2.SwUpdate, decorators: [{
|
|
176
|
+
type: Inject,
|
|
177
|
+
args: [SwUpdate]
|
|
178
|
+
}] }];
|
|
179
|
+
} });
|
|
180
|
+
|
|
181
|
+
class PromptUpdateModule {
|
|
182
|
+
constructor(promptUpdate) {
|
|
183
|
+
promptUpdate.start();
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
PromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, deps: [{ token: PromptUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
187
|
+
PromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, declarations: [PromptUpdateComponent], imports: [MatDialogModule,
|
|
188
|
+
MatButtonModule,
|
|
189
|
+
MatProgressBarModule,
|
|
190
|
+
MatTooltipModule], exports: [PromptUpdateComponent] });
|
|
191
|
+
PromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, imports: [[
|
|
192
|
+
MatDialogModule,
|
|
193
|
+
MatButtonModule,
|
|
194
|
+
MatProgressBarModule,
|
|
195
|
+
MatTooltipModule
|
|
196
|
+
]] });
|
|
197
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, decorators: [{
|
|
198
|
+
type: NgModule,
|
|
199
|
+
args: [{
|
|
200
|
+
declarations: [PromptUpdateComponent],
|
|
201
|
+
imports: [
|
|
202
|
+
MatDialogModule,
|
|
203
|
+
MatButtonModule,
|
|
204
|
+
MatProgressBarModule,
|
|
205
|
+
MatTooltipModule
|
|
206
|
+
],
|
|
207
|
+
exports: [PromptUpdateComponent]
|
|
208
|
+
}]
|
|
209
|
+
}], ctorParameters: function () { return [{ type: PromptUpdateService }]; } });
|
|
210
|
+
|
|
211
|
+
class ServiceWorkerPromptUpdateModule {
|
|
212
|
+
}
|
|
213
|
+
ServiceWorkerPromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
214
|
+
ServiceWorkerPromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, exports: [LogUpdateModule,
|
|
215
|
+
CheckForUpdateModule,
|
|
216
|
+
PromptUpdateModule] });
|
|
217
|
+
ServiceWorkerPromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, imports: [LogUpdateModule,
|
|
218
|
+
CheckForUpdateModule,
|
|
219
|
+
PromptUpdateModule] });
|
|
220
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, decorators: [{
|
|
221
|
+
type: NgModule,
|
|
222
|
+
args: [{
|
|
223
|
+
exports: [
|
|
224
|
+
LogUpdateModule,
|
|
225
|
+
CheckForUpdateModule,
|
|
226
|
+
PromptUpdateModule
|
|
227
|
+
]
|
|
228
|
+
}]
|
|
229
|
+
}] });
|
|
230
|
+
|
|
231
|
+
class SnackBarUpdateService {
|
|
232
|
+
constructor(snackBar, updates) {
|
|
233
|
+
this.snackBar = snackBar;
|
|
234
|
+
this.updates = updates;
|
|
235
|
+
}
|
|
236
|
+
start() {
|
|
237
|
+
console.debug('start prompt update');
|
|
238
|
+
this.updates.available
|
|
239
|
+
.pipe(concatMap((event) => this.openSnackBar(event)), log('start app update'), tap(() => this.updates.activateUpdate().then(() => {
|
|
240
|
+
console.log('app update completed. Reload app.');
|
|
241
|
+
document.location.reload();
|
|
242
|
+
})))
|
|
243
|
+
.subscribe();
|
|
244
|
+
}
|
|
245
|
+
openSnackBar(event) {
|
|
246
|
+
const snackBarRef = this.snackBar.open('New update available', 'update', {
|
|
247
|
+
duration: 25 * 1000,
|
|
248
|
+
data: event,
|
|
249
|
+
});
|
|
250
|
+
return snackBarRef.onAction();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
SnackBarUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateService, deps: [{ token: MatSnackBar }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
254
|
+
SnackBarUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateService, providedIn: 'root' });
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateService, decorators: [{
|
|
256
|
+
type: Injectable,
|
|
257
|
+
args: [{
|
|
258
|
+
providedIn: 'root',
|
|
259
|
+
}]
|
|
260
|
+
}], ctorParameters: function () {
|
|
261
|
+
return [{ type: i1$2.MatSnackBar, decorators: [{
|
|
262
|
+
type: Inject,
|
|
263
|
+
args: [MatSnackBar]
|
|
264
|
+
}] }, { type: i2.SwUpdate, decorators: [{
|
|
265
|
+
type: Inject,
|
|
266
|
+
args: [SwUpdate]
|
|
267
|
+
}] }];
|
|
268
|
+
} });
|
|
269
|
+
class SnackBarUpdateServiceModule {
|
|
270
|
+
constructor(snackBarUpdate) {
|
|
271
|
+
snackBarUpdate.start();
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
SnackBarUpdateServiceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, deps: [{ token: SnackBarUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
275
|
+
SnackBarUpdateServiceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, exports: [MatSnackBarModule] });
|
|
276
|
+
SnackBarUpdateServiceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, imports: [MatSnackBarModule] });
|
|
277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, decorators: [{
|
|
278
|
+
type: NgModule,
|
|
279
|
+
args: [{
|
|
280
|
+
exports: [MatSnackBarModule],
|
|
281
|
+
}]
|
|
282
|
+
}], ctorParameters: function () {
|
|
283
|
+
return [{ type: SnackBarUpdateService, decorators: [{
|
|
284
|
+
type: Inject,
|
|
285
|
+
args: [SnackBarUpdateService]
|
|
286
|
+
}] }];
|
|
287
|
+
} });
|
|
288
|
+
|
|
289
|
+
class ServiceWorkerSnackBarUpdateModule {
|
|
290
|
+
}
|
|
291
|
+
ServiceWorkerSnackBarUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
292
|
+
ServiceWorkerSnackBarUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, exports: [LogUpdateModule,
|
|
293
|
+
CheckForUpdateModule,
|
|
294
|
+
SnackBarUpdateServiceModule] });
|
|
295
|
+
ServiceWorkerSnackBarUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, imports: [LogUpdateModule,
|
|
296
|
+
CheckForUpdateModule,
|
|
297
|
+
SnackBarUpdateServiceModule] });
|
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, decorators: [{
|
|
299
|
+
type: NgModule,
|
|
300
|
+
args: [{
|
|
301
|
+
exports: [
|
|
302
|
+
LogUpdateModule,
|
|
303
|
+
CheckForUpdateModule,
|
|
304
|
+
SnackBarUpdateServiceModule,
|
|
305
|
+
]
|
|
306
|
+
}]
|
|
307
|
+
}] });
|
|
308
|
+
|
|
309
|
+
/**
|
|
310
|
+
* Generated bundle index. Do not edit.
|
|
311
|
+
*/
|
|
312
|
+
|
|
313
|
+
export { CheckForUpdateModule, CheckForUpdateService, LogUpdateModule, LogUpdateService, PromptUpdateComponent, PromptUpdateModule, PromptUpdateService, ServiceWorkerPromptUpdateModule, ServiceWorkerSnackBarUpdateModule, SnackBarUpdateService, SnackBarUpdateServiceModule };
|
|
314
|
+
//# sourceMappingURL=rxap-service-worker.mjs.map
|
|
@@ -0,0 +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_DIALOG_DATA,\n MatDialogRef\n} from '@angular/material/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 { MatDialog } from '@angular/material/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 { MatDialogModule } from '@angular/material/dialog';\nimport { PromptUpdateService } from './prompt-update.service';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/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 MatSnackBar,\n MatSnackBarModule\n} from '@angular/material/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":[],"mappings":";;;;;;;;;;;;;;;;;;;;MASa,gBAAgB;IAE3B,YAA6B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;KAAI;IAE3C,KAAK;QACV,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CA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AAC;oBACR,OAAO,EAAE;wBACP,eAAe;wBACf,oBAAoB;wBACpB,2BAA2B;qBAC5B;iBACF;;;ACXD;;;;;;"}
|
|
@@ -34,9 +34,9 @@ class LogUpdateService {
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
|
-
LogUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
LogUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
37
|
+
LogUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateService, deps: [{ token: i2.SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
+
LogUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateService, providedIn: 'root' });
|
|
39
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateService, decorators: [{
|
|
40
40
|
type: Injectable,
|
|
41
41
|
args: [{
|
|
42
42
|
providedIn: 'root'
|
|
@@ -47,10 +47,10 @@ class LogUpdateModule {
|
|
|
47
47
|
logUpdate.start();
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
|
-
LogUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
51
|
-
LogUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
52
|
-
LogUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
50
|
+
LogUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule, deps: [{ token: LogUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
+
LogUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule });
|
|
52
|
+
LogUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: LogUpdateModule, decorators: [{
|
|
54
54
|
type: NgModule
|
|
55
55
|
}], ctorParameters: function () { return [{ type: LogUpdateService }]; } });
|
|
56
56
|
|
|
@@ -71,9 +71,9 @@ class CheckForUpdateService {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
CheckForUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
75
|
-
CheckForUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
74
|
+
CheckForUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateService, deps: [{ token: LifeCycleService }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
+
CheckForUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateService, providedIn: 'root' });
|
|
76
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateService, decorators: [{
|
|
77
77
|
type: Injectable,
|
|
78
78
|
args: [{
|
|
79
79
|
providedIn: 'root'
|
|
@@ -90,10 +90,10 @@ class CheckForUpdateModule {
|
|
|
90
90
|
checkForUpdate.start();
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
CheckForUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
94
|
-
CheckForUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
95
|
-
CheckForUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
93
|
+
CheckForUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule, deps: [{ token: CheckForUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
94
|
+
CheckForUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule });
|
|
95
|
+
CheckForUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule });
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: CheckForUpdateModule, decorators: [{
|
|
97
97
|
type: NgModule
|
|
98
98
|
}], ctorParameters: function () { return [{ type: CheckForUpdateService, decorators: [{
|
|
99
99
|
type: Inject,
|
|
@@ -113,21 +113,15 @@ class PromptUpdateComponent {
|
|
|
113
113
|
.subscribe();
|
|
114
114
|
}
|
|
115
115
|
ngOnDestroy() {
|
|
116
|
-
|
|
117
|
-
(_a = this.subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
116
|
+
this.subscription?.unsubscribe();
|
|
118
117
|
}
|
|
119
118
|
}
|
|
120
119
|
PromptUpdateComponent.AUTO_UPDATE_IN = 1000 * 60 * 1.5;
|
|
121
|
-
PromptUpdateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
122
|
-
PromptUpdateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
120
|
+
PromptUpdateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: MatDialogRef }, { token: LifeCycleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
PromptUpdateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: PromptUpdateComponent, 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"], components: [{ type: i1$1.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { type: i2$1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]" }, { type: i3.MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateComponent, decorators: [{
|
|
124
123
|
type: Component,
|
|
125
|
-
args: [{
|
|
126
|
-
selector: 'rxap-prompt-update',
|
|
127
|
-
templateUrl: './prompt-update.component.html',
|
|
128
|
-
styleUrls: ['./prompt-update.component.scss'],
|
|
129
|
-
changeDetection: ChangeDetectionStrategy.Default,
|
|
130
|
-
}]
|
|
124
|
+
args: [{ selector: 'rxap-prompt-update', changeDetection: ChangeDetectionStrategy.Default, 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"] }]
|
|
131
125
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
132
126
|
type: Inject,
|
|
133
127
|
args: [MAT_DIALOG_DATA]
|
|
@@ -160,9 +154,9 @@ class PromptUpdateService {
|
|
|
160
154
|
return dialogRef.afterClosed().pipe(map(Boolean), take(1));
|
|
161
155
|
}
|
|
162
156
|
}
|
|
163
|
-
PromptUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
164
|
-
PromptUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
157
|
+
PromptUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateService, deps: [{ token: MatDialog }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
158
|
+
PromptUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateService, providedIn: 'root' });
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateService, decorators: [{
|
|
166
160
|
type: Injectable,
|
|
167
161
|
args: [{
|
|
168
162
|
providedIn: 'root',
|
|
@@ -180,18 +174,18 @@ class PromptUpdateModule {
|
|
|
180
174
|
promptUpdate.start();
|
|
181
175
|
}
|
|
182
176
|
}
|
|
183
|
-
PromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
184
|
-
PromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
177
|
+
PromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, deps: [{ token: PromptUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
178
|
+
PromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, declarations: [PromptUpdateComponent], imports: [MatDialogModule,
|
|
185
179
|
MatButtonModule,
|
|
186
180
|
MatProgressBarModule,
|
|
187
181
|
MatTooltipModule], exports: [PromptUpdateComponent] });
|
|
188
|
-
PromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
182
|
+
PromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, imports: [[
|
|
189
183
|
MatDialogModule,
|
|
190
184
|
MatButtonModule,
|
|
191
185
|
MatProgressBarModule,
|
|
192
186
|
MatTooltipModule
|
|
193
187
|
]] });
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PromptUpdateModule, decorators: [{
|
|
195
189
|
type: NgModule,
|
|
196
190
|
args: [{
|
|
197
191
|
declarations: [PromptUpdateComponent],
|
|
@@ -207,14 +201,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
207
201
|
|
|
208
202
|
class ServiceWorkerPromptUpdateModule {
|
|
209
203
|
}
|
|
210
|
-
ServiceWorkerPromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
211
|
-
ServiceWorkerPromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
204
|
+
ServiceWorkerPromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
205
|
+
ServiceWorkerPromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, exports: [LogUpdateModule,
|
|
212
206
|
CheckForUpdateModule,
|
|
213
207
|
PromptUpdateModule] });
|
|
214
|
-
ServiceWorkerPromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
208
|
+
ServiceWorkerPromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, imports: [LogUpdateModule,
|
|
215
209
|
CheckForUpdateModule,
|
|
216
210
|
PromptUpdateModule] });
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerPromptUpdateModule, decorators: [{
|
|
218
212
|
type: NgModule,
|
|
219
213
|
args: [{
|
|
220
214
|
exports: [
|
|
@@ -247,9 +241,9 @@ class SnackBarUpdateService {
|
|
|
247
241
|
return snackBarRef.onAction();
|
|
248
242
|
}
|
|
249
243
|
}
|
|
250
|
-
SnackBarUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
251
|
-
SnackBarUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
252
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
244
|
+
SnackBarUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateService, deps: [{ token: MatSnackBar }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
245
|
+
SnackBarUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateService, providedIn: 'root' });
|
|
246
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateService, decorators: [{
|
|
253
247
|
type: Injectable,
|
|
254
248
|
args: [{
|
|
255
249
|
providedIn: 'root',
|
|
@@ -266,10 +260,10 @@ class SnackBarUpdateServiceModule {
|
|
|
266
260
|
snackBarUpdate.start();
|
|
267
261
|
}
|
|
268
262
|
}
|
|
269
|
-
SnackBarUpdateServiceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
270
|
-
SnackBarUpdateServiceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
271
|
-
SnackBarUpdateServiceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
263
|
+
SnackBarUpdateServiceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, deps: [{ token: SnackBarUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
264
|
+
SnackBarUpdateServiceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, exports: [MatSnackBarModule] });
|
|
265
|
+
SnackBarUpdateServiceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, imports: [MatSnackBarModule] });
|
|
266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: SnackBarUpdateServiceModule, decorators: [{
|
|
273
267
|
type: NgModule,
|
|
274
268
|
args: [{
|
|
275
269
|
exports: [MatSnackBarModule],
|
|
@@ -281,14 +275,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
281
275
|
|
|
282
276
|
class ServiceWorkerSnackBarUpdateModule {
|
|
283
277
|
}
|
|
284
|
-
ServiceWorkerSnackBarUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
285
|
-
ServiceWorkerSnackBarUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "
|
|
278
|
+
ServiceWorkerSnackBarUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
279
|
+
ServiceWorkerSnackBarUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, exports: [LogUpdateModule,
|
|
286
280
|
CheckForUpdateModule,
|
|
287
281
|
SnackBarUpdateServiceModule] });
|
|
288
|
-
ServiceWorkerSnackBarUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
282
|
+
ServiceWorkerSnackBarUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, imports: [LogUpdateModule,
|
|
289
283
|
CheckForUpdateModule,
|
|
290
284
|
SnackBarUpdateServiceModule] });
|
|
291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, decorators: [{
|
|
292
286
|
type: NgModule,
|
|
293
287
|
args: [{
|
|
294
288
|
exports: [
|
|
@@ -304,4 +298,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.1", ngImpor
|
|
|
304
298
|
*/
|
|
305
299
|
|
|
306
300
|
export { CheckForUpdateModule, CheckForUpdateService, LogUpdateModule, LogUpdateService, PromptUpdateComponent, PromptUpdateModule, PromptUpdateService, ServiceWorkerPromptUpdateModule, ServiceWorkerSnackBarUpdateModule, SnackBarUpdateService, SnackBarUpdateServiceModule };
|
|
307
|
-
//# sourceMappingURL=rxap-service-worker.
|
|
301
|
+
//# sourceMappingURL=rxap-service-worker.mjs.map
|
|
@@ -0,0 +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_DIALOG_DATA,\n MatDialogRef\n} from '@angular/material/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 { MatDialog } from '@angular/material/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 { MatDialogModule } from '@angular/material/dialog';\nimport { PromptUpdateService } from './prompt-update.service';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatProgressBarModule } from '@angular/material/progress-bar';\nimport { MatTooltipModule } from '@angular/material/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 MatSnackBar,\n MatSnackBarModule\n} from '@angular/material/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":[],"mappings":";;;;;;;;;;;;;;;;;;;;MASa,gBAAgB;IAE3B,YAA6B,OAAiB;QAAjB,YAAO,GAAP,OAAO,CAAU;KAAI;IAE3C,KAAK;QACV,OAAO,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK;YACpC,OAAO,CAAC,GAAG,CAAC,oBAAoB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YACjD,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;SACtD,CAAC,CAAC;QACH,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK;YACpC,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;YAC/C,OAAO,CAAC,GAAG,CAAC,gBAAgB,E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