@rxap/service-worker 14.0.3 → 16.0.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/check-for-update.service.mjs +57 -0
- package/esm2022/lib/log-update.service.mjs +42 -0
- package/{esm2020 → esm2022}/lib/prompt-update/prompt-update.component.mjs +13 -12
- package/esm2022/lib/prompt-update/prompt-update.component.module.mjs +38 -0
- package/esm2022/lib/prompt-update/prompt-update.service.mjs +46 -0
- package/esm2022/lib/service-worker-prompt-update.module.mjs +26 -0
- package/esm2022/lib/service-worker-snack-bar-update.module.mjs +26 -0
- package/{esm2020 → esm2022}/lib/snack-bar-update.service.mjs +15 -13
- package/fesm2022/rxap-service-worker.mjs +299 -0
- package/fesm2022/rxap-service-worker.mjs.map +1 -0
- package/lib/prompt-update/prompt-update.component.d.ts +2 -2
- package/lib/prompt-update/prompt-update.component.module.d.ts +5 -5
- package/lib/prompt-update/prompt-update.service.d.ts +1 -1
- package/lib/snack-bar-update.service.d.ts +3 -3
- package/package.json +14 -20
- package/esm2020/lib/check-for-update.service.mjs +0 -55
- package/esm2020/lib/log-update.service.mjs +0 -40
- package/esm2020/lib/prompt-update/prompt-update.component.module.mjs +0 -37
- package/esm2020/lib/prompt-update/prompt-update.service.mjs +0 -45
- package/esm2020/lib/service-worker-prompt-update.module.mjs +0 -25
- package/esm2020/lib/service-worker-snack-bar-update.module.mjs +0 -25
- package/fesm2015/rxap-service-worker.mjs +0 -312
- package/fesm2015/rxap-service-worker.mjs.map +0 -1
- package/fesm2020/rxap-service-worker.mjs +0 -299
- package/fesm2020/rxap-service-worker.mjs.map +0 -1
- /package/{esm2020 → esm2022}/index.mjs +0 -0
- /package/{esm2020 → esm2022}/rxap-service-worker.mjs +0 -0
|
@@ -1,299 +0,0 @@
|
|
|
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 i1$1 from '@angular/material/dialog';
|
|
11
|
-
import { MAT_DIALOG_DATA, MatDialogRef, MatDialog, MatDialogModule } from '@angular/material/dialog';
|
|
12
|
-
import * as i2$1 from '@angular/material/button';
|
|
13
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
14
|
-
import * as i3 from '@angular/material/progress-bar';
|
|
15
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
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: "14.2.2", ngImport: i0, type: LogUpdateService, deps: [{ token: i2.SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
38
|
-
LogUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LogUpdateService, providedIn: 'root' });
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "14.2.2", ngImport: i0, type: LogUpdateModule, deps: [{ token: LogUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
51
|
-
LogUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: LogUpdateModule });
|
|
52
|
-
LogUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: LogUpdateModule });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", 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: "14.2.2", ngImport: i0, type: CheckForUpdateService, deps: [{ token: LifeCycleService }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
75
|
-
CheckForUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckForUpdateService, providedIn: 'root' });
|
|
76
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckForUpdateService, decorators: [{
|
|
77
|
-
type: Injectable,
|
|
78
|
-
args: [{
|
|
79
|
-
providedIn: 'root'
|
|
80
|
-
}]
|
|
81
|
-
}], ctorParameters: function () { return [{ type: i1.LifeCycleService, decorators: [{
|
|
82
|
-
type: Inject,
|
|
83
|
-
args: [LifeCycleService]
|
|
84
|
-
}] }, { type: i2.SwUpdate, decorators: [{
|
|
85
|
-
type: Inject,
|
|
86
|
-
args: [SwUpdate]
|
|
87
|
-
}] }]; } });
|
|
88
|
-
class CheckForUpdateModule {
|
|
89
|
-
constructor(checkForUpdate) {
|
|
90
|
-
checkForUpdate.start();
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
CheckForUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckForUpdateModule, deps: [{ token: CheckForUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
94
|
-
CheckForUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: CheckForUpdateModule });
|
|
95
|
-
CheckForUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckForUpdateModule });
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: CheckForUpdateModule, decorators: [{
|
|
97
|
-
type: NgModule
|
|
98
|
-
}], ctorParameters: function () { return [{ type: CheckForUpdateService, decorators: [{
|
|
99
|
-
type: Inject,
|
|
100
|
-
args: [CheckForUpdateService]
|
|
101
|
-
}] }]; } });
|
|
102
|
-
|
|
103
|
-
class PromptUpdateComponent {
|
|
104
|
-
constructor(event, dialogRef, lifecycle) {
|
|
105
|
-
this.event = event;
|
|
106
|
-
this.dialogRef = dialogRef;
|
|
107
|
-
this.lifecycle = lifecycle;
|
|
108
|
-
this.progress = 1;
|
|
109
|
-
}
|
|
110
|
-
ngOnInit() {
|
|
111
|
-
this.subscription = this.lifecycle
|
|
112
|
-
.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))))
|
|
113
|
-
.subscribe();
|
|
114
|
-
}
|
|
115
|
-
ngOnDestroy() {
|
|
116
|
-
this.subscription?.unsubscribe();
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
PromptUpdateComponent.AUTO_UPDATE_IN = 1000 * 60 * 1.5;
|
|
120
|
-
PromptUpdateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateComponent, deps: [{ token: MAT_DIALOG_DATA }, { token: MatDialogRef }, { token: LifeCycleService }], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
-
PromptUpdateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.2", 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"], dependencies: [{ 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: "component", 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"] }, { kind: "component", type: i3.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }, { kind: "directive", type: i4.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
122
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateComponent, decorators: [{
|
|
123
|
-
type: Component,
|
|
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"] }]
|
|
125
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
126
|
-
type: Inject,
|
|
127
|
-
args: [MAT_DIALOG_DATA]
|
|
128
|
-
}] }, { type: i1$1.MatDialogRef, decorators: [{
|
|
129
|
-
type: Inject,
|
|
130
|
-
args: [MatDialogRef]
|
|
131
|
-
}] }, { type: i1.LifeCycleService, decorators: [{
|
|
132
|
-
type: Inject,
|
|
133
|
-
args: [LifeCycleService]
|
|
134
|
-
}] }]; } });
|
|
135
|
-
|
|
136
|
-
class PromptUpdateService {
|
|
137
|
-
constructor(dialog, updates) {
|
|
138
|
-
this.dialog = dialog;
|
|
139
|
-
this.updates = updates;
|
|
140
|
-
}
|
|
141
|
-
start() {
|
|
142
|
-
console.debug('start prompt update');
|
|
143
|
-
this.updates.available
|
|
144
|
-
.pipe(concatMap((event) => this.promptUser(event)), filter(Boolean), log('start app update'), tap(() => this.updates.activateUpdate().then(() => {
|
|
145
|
-
console.log('app update completed. Reload app.');
|
|
146
|
-
document.location.reload();
|
|
147
|
-
})))
|
|
148
|
-
.subscribe();
|
|
149
|
-
}
|
|
150
|
-
promptUser(event) {
|
|
151
|
-
const dialogRef = this.dialog.open(PromptUpdateComponent, {
|
|
152
|
-
data: event,
|
|
153
|
-
});
|
|
154
|
-
return dialogRef.afterClosed().pipe(map(Boolean), take(1));
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
PromptUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateService, deps: [{ token: MatDialog }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
158
|
-
PromptUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateService, providedIn: 'root' });
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateService, decorators: [{
|
|
160
|
-
type: Injectable,
|
|
161
|
-
args: [{
|
|
162
|
-
providedIn: 'root',
|
|
163
|
-
}]
|
|
164
|
-
}], ctorParameters: function () { return [{ type: i1$1.MatDialog, decorators: [{
|
|
165
|
-
type: Inject,
|
|
166
|
-
args: [MatDialog]
|
|
167
|
-
}] }, { type: i2.SwUpdate, decorators: [{
|
|
168
|
-
type: Inject,
|
|
169
|
-
args: [SwUpdate]
|
|
170
|
-
}] }]; } });
|
|
171
|
-
|
|
172
|
-
class PromptUpdateModule {
|
|
173
|
-
constructor(promptUpdate) {
|
|
174
|
-
promptUpdate.start();
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
PromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateModule, deps: [{ token: PromptUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
178
|
-
PromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateModule, declarations: [PromptUpdateComponent], imports: [MatDialogModule,
|
|
179
|
-
MatButtonModule,
|
|
180
|
-
MatProgressBarModule,
|
|
181
|
-
MatTooltipModule], exports: [PromptUpdateComponent] });
|
|
182
|
-
PromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateModule, imports: [MatDialogModule,
|
|
183
|
-
MatButtonModule,
|
|
184
|
-
MatProgressBarModule,
|
|
185
|
-
MatTooltipModule] });
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: PromptUpdateModule, decorators: [{
|
|
187
|
-
type: NgModule,
|
|
188
|
-
args: [{
|
|
189
|
-
declarations: [PromptUpdateComponent],
|
|
190
|
-
imports: [
|
|
191
|
-
MatDialogModule,
|
|
192
|
-
MatButtonModule,
|
|
193
|
-
MatProgressBarModule,
|
|
194
|
-
MatTooltipModule
|
|
195
|
-
],
|
|
196
|
-
exports: [PromptUpdateComponent]
|
|
197
|
-
}]
|
|
198
|
-
}], ctorParameters: function () { return [{ type: PromptUpdateService }]; } });
|
|
199
|
-
|
|
200
|
-
class ServiceWorkerPromptUpdateModule {
|
|
201
|
-
}
|
|
202
|
-
ServiceWorkerPromptUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerPromptUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
203
|
-
ServiceWorkerPromptUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerPromptUpdateModule, exports: [LogUpdateModule,
|
|
204
|
-
CheckForUpdateModule,
|
|
205
|
-
PromptUpdateModule] });
|
|
206
|
-
ServiceWorkerPromptUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerPromptUpdateModule, imports: [LogUpdateModule,
|
|
207
|
-
CheckForUpdateModule,
|
|
208
|
-
PromptUpdateModule] });
|
|
209
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerPromptUpdateModule, decorators: [{
|
|
210
|
-
type: NgModule,
|
|
211
|
-
args: [{
|
|
212
|
-
exports: [
|
|
213
|
-
LogUpdateModule,
|
|
214
|
-
CheckForUpdateModule,
|
|
215
|
-
PromptUpdateModule
|
|
216
|
-
]
|
|
217
|
-
}]
|
|
218
|
-
}] });
|
|
219
|
-
|
|
220
|
-
class SnackBarUpdateService {
|
|
221
|
-
constructor(snackBar, updates) {
|
|
222
|
-
this.snackBar = snackBar;
|
|
223
|
-
this.updates = updates;
|
|
224
|
-
}
|
|
225
|
-
start() {
|
|
226
|
-
console.debug('start prompt update');
|
|
227
|
-
this.updates.available
|
|
228
|
-
.pipe(concatMap((event) => this.openSnackBar(event)), log('start app update'), tap(() => this.updates.activateUpdate().then(() => {
|
|
229
|
-
console.log('app update completed. Reload app.');
|
|
230
|
-
document.location.reload();
|
|
231
|
-
})))
|
|
232
|
-
.subscribe();
|
|
233
|
-
}
|
|
234
|
-
openSnackBar(event) {
|
|
235
|
-
const snackBarRef = this.snackBar.open('New update available', 'update', {
|
|
236
|
-
duration: 25 * 1000,
|
|
237
|
-
data: event,
|
|
238
|
-
});
|
|
239
|
-
return snackBarRef.onAction();
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
SnackBarUpdateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateService, deps: [{ token: MatSnackBar }, { token: SwUpdate }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
243
|
-
SnackBarUpdateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateService, providedIn: 'root' });
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateService, decorators: [{
|
|
245
|
-
type: Injectable,
|
|
246
|
-
args: [{
|
|
247
|
-
providedIn: 'root',
|
|
248
|
-
}]
|
|
249
|
-
}], ctorParameters: function () { return [{ type: i1$2.MatSnackBar, decorators: [{
|
|
250
|
-
type: Inject,
|
|
251
|
-
args: [MatSnackBar]
|
|
252
|
-
}] }, { type: i2.SwUpdate, decorators: [{
|
|
253
|
-
type: Inject,
|
|
254
|
-
args: [SwUpdate]
|
|
255
|
-
}] }]; } });
|
|
256
|
-
class SnackBarUpdateServiceModule {
|
|
257
|
-
constructor(snackBarUpdate) {
|
|
258
|
-
snackBarUpdate.start();
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
SnackBarUpdateServiceModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateServiceModule, deps: [{ token: SnackBarUpdateService }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
262
|
-
SnackBarUpdateServiceModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateServiceModule, exports: [MatSnackBarModule] });
|
|
263
|
-
SnackBarUpdateServiceModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateServiceModule, imports: [MatSnackBarModule] });
|
|
264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: SnackBarUpdateServiceModule, decorators: [{
|
|
265
|
-
type: NgModule,
|
|
266
|
-
args: [{
|
|
267
|
-
exports: [MatSnackBarModule],
|
|
268
|
-
}]
|
|
269
|
-
}], ctorParameters: function () { return [{ type: SnackBarUpdateService, decorators: [{
|
|
270
|
-
type: Inject,
|
|
271
|
-
args: [SnackBarUpdateService]
|
|
272
|
-
}] }]; } });
|
|
273
|
-
|
|
274
|
-
class ServiceWorkerSnackBarUpdateModule {
|
|
275
|
-
}
|
|
276
|
-
ServiceWorkerSnackBarUpdateModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
277
|
-
ServiceWorkerSnackBarUpdateModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, exports: [LogUpdateModule,
|
|
278
|
-
CheckForUpdateModule,
|
|
279
|
-
SnackBarUpdateServiceModule] });
|
|
280
|
-
ServiceWorkerSnackBarUpdateModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, imports: [LogUpdateModule,
|
|
281
|
-
CheckForUpdateModule,
|
|
282
|
-
SnackBarUpdateServiceModule] });
|
|
283
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.2", ngImport: i0, type: ServiceWorkerSnackBarUpdateModule, decorators: [{
|
|
284
|
-
type: NgModule,
|
|
285
|
-
args: [{
|
|
286
|
-
exports: [
|
|
287
|
-
LogUpdateModule,
|
|
288
|
-
CheckForUpdateModule,
|
|
289
|
-
SnackBarUpdateServiceModule,
|
|
290
|
-
]
|
|
291
|
-
}]
|
|
292
|
-
}] });
|
|
293
|
-
|
|
294
|
-
/**
|
|
295
|
-
* Generated bundle index. Do not edit.
|
|
296
|
-
*/
|
|
297
|
-
|
|
298
|
-
export { CheckForUpdateModule, CheckForUpdateService, LogUpdateModule, LogUpdateService, PromptUpdateComponent, PromptUpdateModule, PromptUpdateService, ServiceWorkerPromptUpdateModule, ServiceWorkerSnackBarUpdateModule, SnackBarUpdateService, SnackBarUpdateServiceModule };
|
|
299
|
-
//# sourceMappingURL=rxap-service-worker.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
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":["i1","i2","i1.PromptUpdateService"],"mappings":";;;;;;;;;;;;;;;;;;;;MASa,gBAAgB,CAAA;AAE3B,IAAA,WAAA,CAA6B,OAAiB,EAAA;QAAjB,IAAO,CAAA,OAAA,GAAP,OAAO,CAAU;KAAI;IAE3C,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;;6GAdU,gBAAgB,EAAA,IAAA,EAAA,CAAA,EA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