@rxap/service-worker 19.0.4-dev.0 → 19.1.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.
Files changed (61) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/compodoc/changelog.html +5 -0
  3. package/compodoc/dependencies.html +2 -2
  4. package/compodoc/injectables/SnackbarUpdateService.html +344 -0
  5. package/compodoc/js/menu-wc.js +3 -0
  6. package/compodoc/js/menu-wc_es5.js +1 -1
  7. package/compodoc/js/search/search_index.js +2 -2
  8. package/compodoc/miscellaneous/functions.html +25 -0
  9. package/compodoc/overview.html +1 -1
  10. package/compodoc/properties.html +1 -1
  11. package/docs/documentation.json +105 -55
  12. package/docs/html/assets/navigation.js +1 -1
  13. package/docs/html/assets/search.js +1 -1
  14. package/docs/html/classes/AutoUpdateService.html +2 -2
  15. package/docs/html/classes/CheckForUpdateService.html +2 -2
  16. package/docs/html/classes/DialogUpdateService.html +2 -2
  17. package/docs/html/classes/LogUpdateService.html +2 -2
  18. package/docs/html/classes/ServiceWorkerUpdateDialogComponent.html +3 -3
  19. package/docs/html/functions/ProvideServiceWorkerUpdater.html +1 -1
  20. package/docs/html/functions/UnregisterServiceWorker.html +1 -1
  21. package/docs/html/functions/withAutoUpdater.html +1 -1
  22. package/docs/html/functions/withDialogUpdater.html +1 -1
  23. package/docs/html/functions/withLogUpdater.html +1 -1
  24. package/docs/html/functions/withSnackbarUpdater.html +1 -0
  25. package/docs/html/index.html +2 -2
  26. package/docs/html/modules.html +1 -1
  27. package/docs/html/variables/UPDATE_AVAILABLE_EVENT.html +1 -1
  28. package/docs/markdown/README.md +1 -1
  29. package/docs/markdown/classes/AutoUpdateService.md +4 -4
  30. package/docs/markdown/classes/CheckForUpdateService.md +4 -4
  31. package/docs/markdown/classes/DialogUpdateService.md +4 -4
  32. package/docs/markdown/classes/LogUpdateService.md +4 -4
  33. package/docs/markdown/classes/ServiceWorkerUpdateDialogComponent.md +7 -7
  34. package/docs/markdown/functions/ProvideServiceWorkerUpdater.md +2 -2
  35. package/docs/markdown/functions/UnregisterServiceWorker.md +2 -2
  36. package/docs/markdown/functions/withAutoUpdater.md +2 -2
  37. package/docs/markdown/functions/withDialogUpdater.md +2 -2
  38. package/docs/markdown/functions/withLogUpdater.md +2 -2
  39. package/docs/markdown/functions/withSnackbarUpdater.md +15 -0
  40. package/docs/markdown/globals.md +3 -2
  41. package/docs/markdown/variables/UPDATE_AVAILABLE_EVENT.md +2 -2
  42. package/docs/wiki/Class.AutoUpdateService.md +3 -3
  43. package/docs/wiki/Class.CheckForUpdateService.md +3 -3
  44. package/docs/wiki/Class.DialogUpdateService.md +3 -3
  45. package/docs/wiki/Class.LogUpdateService.md +3 -3
  46. package/docs/wiki/Class.ServiceWorkerUpdateDialogComponent.md +6 -6
  47. package/docs/wiki/Function.ProvideServiceWorkerUpdater.md +1 -1
  48. package/docs/wiki/Function.UnregisterServiceWorker.md +1 -1
  49. package/docs/wiki/Function.withAutoUpdater.md +1 -1
  50. package/docs/wiki/Function.withDialogUpdater.md +1 -1
  51. package/docs/wiki/Function.withLogUpdater.md +1 -1
  52. package/docs/wiki/Function.withSnackbarUpdater.md +11 -0
  53. package/docs/wiki/Variable.UPDATE_AVAILABLE_EVENT.md +1 -1
  54. package/docs/wiki/_Sidebar.md +1 -0
  55. package/docs/wiki/globals.md +2 -1
  56. package/fesm2022/rxap-service-worker.mjs +38 -2
  57. package/fesm2022/rxap-service-worker.mjs.map +1 -1
  58. package/lib/provide-service-worker-updater.d.ts +1 -0
  59. package/lib/snackbar-update.service.d.ts +9 -0
  60. package/package.json +7 -7
  61. package/theme.css +1 -1
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -6,7 +6,7 @@
6
6
 
7
7
  # Class: ServiceWorkerUpdateDialogComponent
8
8
 
9
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:28](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L28)
9
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:28](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L28)
10
10
 
11
11
  ## Implements
12
12
 
@@ -28,7 +28,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
28
28
 
29
29
  > **closeDialog**: `EventEmitter`\<`void`\>
30
30
 
31
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:34](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L34)
31
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:34](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L34)
32
32
 
33
33
  ***
34
34
 
@@ -36,7 +36,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
36
36
 
37
37
  > **dialog**: `ElementRef`\<`HTMLDialogElement`\>
38
38
 
39
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:31](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L31)
39
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:31](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L31)
40
40
 
41
41
  ***
42
42
 
@@ -44,7 +44,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
44
44
 
45
45
  > `readonly` **updateAvailableEvent**: `VersionEvent`
46
46
 
47
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:36](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L36)
47
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:36](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L36)
48
48
 
49
49
  ## Methods
50
50
 
@@ -52,7 +52,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
52
52
 
53
53
  > **close**(): `void`
54
54
 
55
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:42](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L42)
55
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:42](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L42)
56
56
 
57
57
  #### Returns
58
58
 
@@ -64,7 +64,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
64
64
 
65
65
  > **ngAfterViewInit**(): `void`
66
66
 
67
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:38](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L38)
67
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:38](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L38)
68
68
 
69
69
  A callback method that is invoked immediately after
70
70
  Angular has completed initialization of a component's view.
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **ProvideServiceWorkerUpdater**(...`providers`): (`Provider` \| `EnvironmentProviders`)[]
10
10
 
11
- Defined in: [provide-service-worker-updater.ts:12](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L12)
11
+ Defined in: [provide-service-worker-updater.ts:13](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L13)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **UnregisterServiceWorker**(`environment`): `void`
10
10
 
11
- Defined in: [unregister-service-worker.ts:3](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/unregister-service-worker.ts#L3)
11
+ Defined in: [unregister-service-worker.ts:3](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/unregister-service-worker.ts#L3)
12
12
 
13
13
  ## Parameters
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **withAutoUpdater**(): `EnvironmentProviders`
10
10
 
11
- Defined in: [provide-service-worker-updater.ts:36](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L36)
11
+ Defined in: [provide-service-worker-updater.ts:37](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L37)
12
12
 
13
13
  ## Returns
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **withDialogUpdater**(): `EnvironmentProviders`
10
10
 
11
- Defined in: [provide-service-worker-updater.ts:29](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L29)
11
+ Defined in: [provide-service-worker-updater.ts:30](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L30)
12
12
 
13
13
  ## Returns
14
14
 
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,7 +8,7 @@
8
8
 
9
9
  > **withLogUpdater**(): `EnvironmentProviders`
10
10
 
11
- Defined in: [provide-service-worker-updater.ts:22](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L22)
11
+ Defined in: [provide-service-worker-updater.ts:23](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L23)
12
12
 
13
13
  ## Returns
14
14
 
@@ -0,0 +1,15 @@
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
+
3
+ ***
4
+
5
+ [@rxap/service-worker](../globals.md) / withSnackbarUpdater
6
+
7
+ # Function: withSnackbarUpdater()
8
+
9
+ > **withSnackbarUpdater**(): `EnvironmentProviders`
10
+
11
+ Defined in: [provide-service-worker-updater.ts:44](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L44)
12
+
13
+ ## Returns
14
+
15
+ `EnvironmentProviders`
@@ -1,8 +1,8 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](README.md)
2
2
 
3
3
  ***
4
4
 
5
- # @rxap/service-worker v19.0.4-dev.0
5
+ # @rxap/service-worker v19.1.0-dev.0
6
6
 
7
7
  ## Classes
8
8
 
@@ -23,3 +23,4 @@
23
23
  - [withAutoUpdater](functions/withAutoUpdater.md)
24
24
  - [withDialogUpdater](functions/withDialogUpdater.md)
25
25
  - [withLogUpdater](functions/withLogUpdater.md)
26
+ - [withSnackbarUpdater](functions/withSnackbarUpdater.md)
@@ -1,4 +1,4 @@
1
- [**@rxap/service-worker v19.0.4-dev.0**](../README.md)
1
+ [**@rxap/service-worker v19.1.0-dev.0**](../README.md)
2
2
 
3
3
  ***
4
4
 
@@ -8,4 +8,4 @@
8
8
 
9
9
  > `const` **UPDATE\_AVAILABLE\_EVENT**: `InjectionToken`\<`VersionEvent`\>
10
10
 
11
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:17](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L17)
11
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:17](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L17)
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: AutoUpdateService
4
4
 
5
- Defined in: [auto-update.service.ts:12](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/auto-update.service.ts#L12)
5
+ Defined in: [auto-update.service.ts:12](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/auto-update.service.ts#L12)
6
6
 
7
7
  ## Constructors
8
8
 
@@ -10,7 +10,7 @@ Defined in: [auto-update.service.ts:12](https://gitlab.com/rxap/packages/-/blob/
10
10
 
11
11
  > **new AutoUpdateService**(`updates`): [`AutoUpdateService`](../wiki/Class.AutoUpdateService)
12
12
 
13
- Defined in: [auto-update.service.ts:14](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/auto-update.service.ts#L14)
13
+ Defined in: [auto-update.service.ts:14](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/auto-update.service.ts#L14)
14
14
 
15
15
  #### Parameters
16
16
 
@@ -28,7 +28,7 @@ Defined in: [auto-update.service.ts:14](https://gitlab.com/rxap/packages/-/blob/
28
28
 
29
29
  > **start**(): `void`
30
30
 
31
- Defined in: [auto-update.service.ts:20](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/auto-update.service.ts#L20)
31
+ Defined in: [auto-update.service.ts:20](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/auto-update.service.ts#L20)
32
32
 
33
33
  #### Returns
34
34
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: CheckForUpdateService
4
4
 
5
- Defined in: [check-for-update.service.ts:16](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/check-for-update.service.ts#L16)
5
+ Defined in: [check-for-update.service.ts:16](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/check-for-update.service.ts#L16)
6
6
 
7
7
  ## Constructors
8
8
 
@@ -10,7 +10,7 @@ Defined in: [check-for-update.service.ts:16](https://gitlab.com/rxap/packages/-/
10
10
 
11
11
  > **new CheckForUpdateService**(`lifeCycle`, `updates`): [`CheckForUpdateService`](../wiki/Class.CheckForUpdateService)
12
12
 
13
- Defined in: [check-for-update.service.ts:20](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/check-for-update.service.ts#L20)
13
+ Defined in: [check-for-update.service.ts:20](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/check-for-update.service.ts#L20)
14
14
 
15
15
  #### Parameters
16
16
 
@@ -32,7 +32,7 @@ Defined in: [check-for-update.service.ts:20](https://gitlab.com/rxap/packages/-/
32
32
 
33
33
  > **start**(): `void`
34
34
 
35
- Defined in: [check-for-update.service.ts:26](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/check-for-update.service.ts#L26)
35
+ Defined in: [check-for-update.service.ts:26](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/check-for-update.service.ts#L26)
36
36
 
37
37
  #### Returns
38
38
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: DialogUpdateService
4
4
 
5
- Defined in: [dialog-update.service.ts:28](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/dialog-update.service.ts#L28)
5
+ Defined in: [dialog-update.service.ts:28](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/dialog-update.service.ts#L28)
6
6
 
7
7
  ## Constructors
8
8
 
@@ -10,7 +10,7 @@ Defined in: [dialog-update.service.ts:28](https://gitlab.com/rxap/packages/-/blo
10
10
 
11
11
  > **new DialogUpdateService**(`applicationRef`, `updates`): [`DialogUpdateService`](../wiki/Class.DialogUpdateService)
12
12
 
13
- Defined in: [dialog-update.service.ts:29](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/dialog-update.service.ts#L29)
13
+ Defined in: [dialog-update.service.ts:29](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/dialog-update.service.ts#L29)
14
14
 
15
15
  #### Parameters
16
16
 
@@ -32,7 +32,7 @@ Defined in: [dialog-update.service.ts:29](https://gitlab.com/rxap/packages/-/blo
32
32
 
33
33
  > **start**(): `void`
34
34
 
35
- Defined in: [dialog-update.service.ts:37](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/dialog-update.service.ts#L37)
35
+ Defined in: [dialog-update.service.ts:37](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/dialog-update.service.ts#L37)
36
36
 
37
37
  #### Returns
38
38
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: LogUpdateService
4
4
 
5
- Defined in: [log-update.service.ts:8](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/log-update.service.ts#L8)
5
+ Defined in: [log-update.service.ts:8](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/log-update.service.ts#L8)
6
6
 
7
7
  ## Constructors
8
8
 
@@ -10,7 +10,7 @@ Defined in: [log-update.service.ts:8](https://gitlab.com/rxap/packages/-/blob/e4
10
10
 
11
11
  > **new LogUpdateService**(`updates`): [`LogUpdateService`](../wiki/Class.LogUpdateService)
12
12
 
13
- Defined in: [log-update.service.ts:10](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/log-update.service.ts#L10)
13
+ Defined in: [log-update.service.ts:10](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/log-update.service.ts#L10)
14
14
 
15
15
  #### Parameters
16
16
 
@@ -28,7 +28,7 @@ Defined in: [log-update.service.ts:10](https://gitlab.com/rxap/packages/-/blob/e
28
28
 
29
29
  > **start**(): `void`
30
30
 
31
- Defined in: [log-update.service.ts:13](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/log-update.service.ts#L13)
31
+ Defined in: [log-update.service.ts:13](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/log-update.service.ts#L13)
32
32
 
33
33
  #### Returns
34
34
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # Class: ServiceWorkerUpdateDialogComponent
4
4
 
5
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:28](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L28)
5
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:28](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L28)
6
6
 
7
7
  ## Implements
8
8
 
@@ -24,7 +24,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
24
24
 
25
25
  > **closeDialog**: `EventEmitter`\<`void`\>
26
26
 
27
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:34](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L34)
27
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:34](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L34)
28
28
 
29
29
  ***
30
30
 
@@ -32,7 +32,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
32
32
 
33
33
  > **dialog**: `ElementRef`\<`HTMLDialogElement`\>
34
34
 
35
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:31](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L31)
35
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:31](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L31)
36
36
 
37
37
  ***
38
38
 
@@ -40,7 +40,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
40
40
 
41
41
  > `readonly` **updateAvailableEvent**: `VersionEvent`
42
42
 
43
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:36](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L36)
43
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:36](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L36)
44
44
 
45
45
  ## Methods
46
46
 
@@ -48,7 +48,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
48
48
 
49
49
  > **close**(): `void`
50
50
 
51
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:42](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L42)
51
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:42](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L42)
52
52
 
53
53
  #### Returns
54
54
 
@@ -60,7 +60,7 @@ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component
60
60
 
61
61
  > **ngAfterViewInit**(): `void`
62
62
 
63
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:38](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L38)
63
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:38](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L38)
64
64
 
65
65
  A callback method that is invoked immediately after
66
66
  Angular has completed initialization of a component's view.
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **ProvideServiceWorkerUpdater**(...`providers`): (`Provider` \| `EnvironmentProviders`)[]
6
6
 
7
- Defined in: [provide-service-worker-updater.ts:12](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L12)
7
+ Defined in: [provide-service-worker-updater.ts:13](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L13)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **UnregisterServiceWorker**(`environment`): `void`
6
6
 
7
- Defined in: [unregister-service-worker.ts:3](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/unregister-service-worker.ts#L3)
7
+ Defined in: [unregister-service-worker.ts:3](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/unregister-service-worker.ts#L3)
8
8
 
9
9
  ## Parameters
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **withAutoUpdater**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [provide-service-worker-updater.ts:36](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L36)
7
+ Defined in: [provide-service-worker-updater.ts:37](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L37)
8
8
 
9
9
  ## Returns
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **withDialogUpdater**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [provide-service-worker-updater.ts:29](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L29)
7
+ Defined in: [provide-service-worker-updater.ts:30](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L30)
8
8
 
9
9
  ## Returns
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  > **withLogUpdater**(): `EnvironmentProviders`
6
6
 
7
- Defined in: [provide-service-worker-updater.ts:22](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L22)
7
+ Defined in: [provide-service-worker-updater.ts:23](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L23)
8
8
 
9
9
  ## Returns
10
10
 
@@ -0,0 +1,11 @@
1
+ [@rxap/service-worker](../wiki/globals) / withSnackbarUpdater
2
+
3
+ # Function: withSnackbarUpdater()
4
+
5
+ > **withSnackbarUpdater**(): `EnvironmentProviders`
6
+
7
+ Defined in: [provide-service-worker-updater.ts:44](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/provide-service-worker-updater.ts#L44)
8
+
9
+ ## Returns
10
+
11
+ `EnvironmentProviders`
@@ -4,4 +4,4 @@
4
4
 
5
5
  > `const` **UPDATE\_AVAILABLE\_EVENT**: `InjectionToken`\<`VersionEvent`\>
6
6
 
7
- Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:17](https://gitlab.com/rxap/packages/-/blob/e4552670b179901abc7ce57cc3ff490ac705b867/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L17)
7
+ Defined in: [service-worker-update-dialog/service-worker-update-dialog.component.ts:17](https://gitlab.com/rxap/packages/-/blob/250614efabeb01c802bae69017379c6bba31c5b0/packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts#L17)
@@ -19,3 +19,4 @@
19
19
  - [withAutoUpdater](../wiki/Function.withAutoUpdater)
20
20
  - [withDialogUpdater](../wiki/Function.withDialogUpdater)
21
21
  - [withLogUpdater](../wiki/Function.withLogUpdater)
22
+ - [withSnackbarUpdater](../wiki/Function.withSnackbarUpdater)
@@ -1,4 +1,4 @@
1
- # @rxap/service-worker v19.0.4-dev.0
1
+ # @rxap/service-worker v19.1.0-dev.0
2
2
 
3
3
  ## Classes
4
4
 
@@ -19,3 +19,4 @@
19
19
  - [withAutoUpdater](../wiki/Function.withAutoUpdater)
20
20
  - [withDialogUpdater](../wiki/Function.withDialogUpdater)
21
21
  - [withLogUpdater](../wiki/Function.withLogUpdater)
22
+ - [withSnackbarUpdater](../wiki/Function.withSnackbarUpdater)
@@ -3,10 +3,11 @@ import * as i0 from '@angular/core';
3
3
  import { InjectionToken, EventEmitter, inject, Component, ViewChild, Output, Injectable, Inject, createComponent, Injector, ApplicationRef, provideAppInitializer } from '@angular/core';
4
4
  import * as i1 from '@angular/service-worker';
5
5
  import { SwUpdate } from '@angular/service-worker';
6
- import { filter, interval } from 'rxjs';
6
+ import { filter, interval, take } from 'rxjs';
7
7
  import { tap, startWith, concatMap } from 'rxjs/operators';
8
8
  import * as i1$1 from '@rxap/life-cycle';
9
9
  import { LifeCycleService } from '@rxap/life-cycle';
10
+ import { MatSnackBar } from '@angular/material/snack-bar';
10
11
 
11
12
  const UPDATE_AVAILABLE_EVENT = new InjectionToken('UPDATE_AVAILABLE_EVENT');
12
13
  class ServiceWorkerUpdateDialogComponent {
@@ -178,6 +179,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImpor
178
179
  }]
179
180
  }], ctorParameters: () => [{ type: i1.SwUpdate }] });
180
181
 
182
+ class SnackbarUpdateService {
183
+ constructor() {
184
+ this.snackBar = inject(MatSnackBar);
185
+ this.updates = inject(SwUpdate);
186
+ }
187
+ start() {
188
+ console.debug('start dialog update service');
189
+ this.updates.versionUpdates
190
+ .pipe(filter(event => event.type === 'VERSION_READY'), concatMap((event) => this.openUpdateSnackBar(event)), tap(() => console.log('start app update')), tap(() => this.updates.activateUpdate().then(() => {
191
+ console.log('app update completed. Reload app.');
192
+ document.location.reload();
193
+ })))
194
+ .subscribe();
195
+ }
196
+ openUpdateSnackBar(event) {
197
+ console.debug('open update snack bar');
198
+ const ref = this.snackBar.open($localize `A new version is available`, $localize `Update`);
199
+ return ref.afterDismissed().pipe(take(1));
200
+ }
201
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SnackbarUpdateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
202
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SnackbarUpdateService, providedIn: 'root' }); }
203
+ }
204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: SnackbarUpdateService, decorators: [{
205
+ type: Injectable,
206
+ args: [{
207
+ providedIn: 'root',
208
+ }]
209
+ }] });
210
+
181
211
  function ProvideServiceWorkerUpdater(...providers) {
182
212
  return [
183
213
  provideAppInitializer(() => {
@@ -205,6 +235,12 @@ function withAutoUpdater() {
205
235
  return initializerFn();
206
236
  });
207
237
  }
238
+ function withSnackbarUpdater() {
239
+ return provideAppInitializer(() => {
240
+ const initializerFn = ((snackbarUpdateService) => () => snackbarUpdateService.start())(inject(SnackbarUpdateService));
241
+ return initializerFn();
242
+ });
243
+ }
208
244
 
209
245
  function UnregisterServiceWorker(environment) {
210
246
  if (!environment.serviceWorker) {
@@ -230,5 +266,5 @@ function UnregisterServiceWorker(environment) {
230
266
  * Generated bundle index. Do not edit.
231
267
  */
232
268
 
233
- export { AutoUpdateService, CheckForUpdateService, DialogUpdateService, LogUpdateService, ProvideServiceWorkerUpdater, ServiceWorkerUpdateDialogComponent, UPDATE_AVAILABLE_EVENT, UnregisterServiceWorker, withAutoUpdater, withDialogUpdater, withLogUpdater };
269
+ export { AutoUpdateService, CheckForUpdateService, DialogUpdateService, LogUpdateService, ProvideServiceWorkerUpdater, ServiceWorkerUpdateDialogComponent, UPDATE_AVAILABLE_EVENT, UnregisterServiceWorker, withAutoUpdater, withDialogUpdater, withLogUpdater, withSnackbarUpdater };
234
270
  //# sourceMappingURL=rxap-service-worker.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"rxap-service-worker.mjs","sources":["../../../../../packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts","../../../../../packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.html","../../../../../packages/angular/service-worker/src/lib/auto-update.service.ts","../../../../../packages/angular/service-worker/src/lib/check-for-update.service.ts","../../../../../packages/angular/service-worker/src/lib/dialog-update.service.ts","../../../../../packages/angular/service-worker/src/lib/log-update.service.ts","../../../../../packages/angular/service-worker/src/lib/provide-service-worker-updater.ts","../../../../../packages/angular/service-worker/src/lib/unregister-service-worker.ts","../../../../../packages/angular/service-worker/src/index.ts","../../../../../packages/angular/service-worker/src/rxap-service-worker.ts"],"sourcesContent":["import {\n NgSwitch,\n NgSwitchCase,\n} from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n inject,\n InjectionToken,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { VersionEvent } from '@angular/service-worker';\n\nexport const UPDATE_AVAILABLE_EVENT = new InjectionToken<VersionEvent>('UPDATE_AVAILABLE_EVENT');\n\n@Component({\n selector: 'rxap-service-worker-update-dialog',\n imports: [\n NgSwitch,\n NgSwitchCase,\n ],\n templateUrl: './service-worker-update-dialog.component.html',\n styleUrls: ['./service-worker-update-dialog.component.scss']\n})\nexport class ServiceWorkerUpdateDialogComponent implements AfterViewInit {\n\n @ViewChild('dialog', { static: true })\n public dialog!: ElementRef<HTMLDialogElement>;\n\n @Output()\n public closeDialog = new EventEmitter<void>();\n\n public readonly updateAvailableEvent = inject(UPDATE_AVAILABLE_EVENT);\n\n ngAfterViewInit() {\n this.dialog.nativeElement.showModal();\n }\n\n close() {\n this.dialog.nativeElement.close();\n this.closeDialog.emit();\n }\n\n}\n","<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\">\n <h2 class=\"text-2xl font-bold\" i18n>A new application version is available</h2>\n <ng-container [ngSwitch]=\"$any(updateAvailableEvent).type\">\n <table *ngSwitchCase=\"'VERSION_DETECTED'\" class=\"table-auto\">\n <tr>\n <th i18n>Version hash</th>\n <td>{{$any(updateAvailableEvent)['version'].hash}}</td>\n </tr>\n </table>\n <table *ngSwitchCase=\"'VERSION_INSTALLATION_FAILED'\" class=\"table-auto\">\n <tr>\n <th i18n>Version hash</th>\n <td>{{$any(updateAvailableEvent)['version'].hash}}</td>\n </tr>\n <tr>\n <th i18n>Version installation error</th>\n <td>{{$any(updateAvailableEvent)['error']}}</td>\n </tr>\n </table>\n <table *ngSwitchCase=\"'VERSION_READY'\" class=\"table-auto\">\n <tr>\n <th i18n>Current version hash</th>\n <td>{{$any(updateAvailableEvent)['currentVersion'].hash}}</td>\n </tr>\n <tr>\n <th i18n>Last version hash</th>\n <td>{{$any(updateAvailableEvent)['latestVersion'].hash}}</td>\n </tr>\n </table>\n <table *ngSwitchCase=\"'NoNewVersionDetectedEvent'\" class=\"table-auto\">\n <tr>\n <th i18n>Version hash</th>\n <td>{{$any(updateAvailableEvent)['version'].hash}}</td>\n </tr>\n </table>\n </ng-container>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>Update</button>\n</dialog>\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { filter } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AutoUpdateService {\n\n constructor(\n @Inject(SwUpdate)\n private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n console.debug('start auto update service');\n this.updates.versionUpdates\n .pipe(\n filter(event => event.type === 'VERSION_READY'),\n tap(() => console.log('start auto app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('auto app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n}\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { LifeCycleService } from '@rxap/life-cycle';\nimport { interval } from 'rxjs';\nimport {\n startWith,\n tap,\n} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CheckForUpdateService {\n\n private _started = false;\n\n constructor(\n @Inject(LifeCycleService) private readonly lifeCycle: LifeCycleService,\n @Inject(SwUpdate) private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n if (this._started) {\n console.warn('check for update already started');\n return;\n }\n this._started = true;\n if (this.updates.isEnabled) {\n\n console.debug('start check for update');\n\n this.updates.checkForUpdate();\n\n this\n .lifeCycle\n .whenReady(() => interval(15 * 60 * 1000)\n .pipe(\n startWith(null),\n tap(() => console.log('check for update')),\n tap(() => this.updates.checkForUpdate()),\n ),\n )\n .subscribe();\n\n } else {\n console.warn('service worker updates are not enabled');\n }\n }\n\n}\n","import {\n ApplicationRef,\n createComponent,\n Inject,\n Injectable,\n Injector,\n} from '@angular/core';\nimport {\n SwUpdate,\n VersionEvent,\n} from '@angular/service-worker';\nimport {\n filter,\n Observable,\n} from 'rxjs';\nimport {\n concatMap,\n tap,\n} from 'rxjs/operators';\nimport {\n ServiceWorkerUpdateDialogComponent,\n UPDATE_AVAILABLE_EVENT,\n} from './service-worker-update-dialog/service-worker-update-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DialogUpdateService {\n constructor(\n @Inject(ApplicationRef)\n private readonly applicationRef: ApplicationRef,\n @Inject(SwUpdate)\n private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n console.debug('start dialog update service');\n this.updates.versionUpdates\n .pipe(\n filter(event => event.type === 'VERSION_READY'),\n concatMap((event) => this.openUpdateDialog(event)),\n tap(() => console.log('start app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n private openUpdateDialog(event: VersionEvent): Observable<void> {\n console.debug('open update dialog');\n const body = document.getElementsByTagName('body')[0];\n const div = document.createElement('div');\n body.appendChild(div);\n const componentRef = createComponent(ServiceWorkerUpdateDialogComponent, {\n hostElement: div,\n environmentInjector: this.applicationRef.injector,\n elementInjector: Injector.create({\n providers: [\n {\n provide: UPDATE_AVAILABLE_EVENT,\n useValue: event,\n },\n ],\n }),\n });\n this.applicationRef.attachView(componentRef.hostView);\n\n return componentRef.instance.closeDialog.pipe(\n tap(() => {\n componentRef.destroy();\n body.removeChild(div);\n div.remove();\n }),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { filter } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LogUpdateService {\n\n constructor(private readonly updates: SwUpdate) {\n }\n\n public start() {\n console.debug('start log update');\n this.updates.versionUpdates.pipe(\n filter(event => event.type !== 'NO_NEW_VERSION_DETECTED'),\n ).subscribe(event => {\n console.log('version update event', event);\n });\n }\n\n}\n\n","import {\n Provider,\n inject,\n provideAppInitializer,\n EnvironmentProviders,\n} from '@angular/core';\nimport { AutoUpdateService } from './auto-update.service';\nimport { CheckForUpdateService } from './check-for-update.service';\nimport { DialogUpdateService } from './dialog-update.service';\nimport { LogUpdateService } from './log-update.service';\n\nexport function ProvideServiceWorkerUpdater(...providers: Array<Provider | EnvironmentProviders>): Array<Provider | EnvironmentProviders> {\n return [\n provideAppInitializer(() => {\n const initializerFn = ((checkForUpdate: CheckForUpdateService) => () => checkForUpdate.start())(inject(CheckForUpdateService));\n return initializerFn();\n }),\n ...providers,\n ];\n}\n\nexport function withLogUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((logUpdateService: LogUpdateService) => () => logUpdateService.start())(inject(LogUpdateService));\n return initializerFn();\n });\n}\n\nexport function withDialogUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((dus: DialogUpdateService) => () => dus.start())(inject(DialogUpdateService));\n return initializerFn();\n });\n}\n\nexport function withAutoUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((aus: AutoUpdateService) => () => aus.start())(inject(AutoUpdateService));\n return initializerFn();\n });\n}\n","import { Environment } from '@rxap/environment';\n\nexport function UnregisterServiceWorker(environment: Environment) {\n if (!environment.serviceWorker) {\n navigator?.serviceWorker?.getRegistrations().then(async (registrations) => {\n await Promise.all(registrations.map((registration) => {\n console.log('unregister service worker: ' + registration.scope);\n return registration.unregister();\n }));\n if (registrations.length) {\n const response = confirm(\n 'All dangling service worker are unregistered. Should the application be reloaded to complete the migration');\n if (response) {\n location.reload();\n }\n }\n });\n }\n}\n","// region service-worker-update-dialog\nexport * from './lib/service-worker-update-dialog/service-worker-update-dialog.component';\n// endregion\n\n// region \nexport * from './lib/auto-update.service';\nexport * from './lib/check-for-update.service';\nexport * from './lib/dialog-update.service';\nexport * from './lib/log-update.service';\nexport * from './lib/provide-service-worker-updater';\nexport * from './lib/unregister-service-worker';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;MAgBa,sBAAsB,GAAG,IAAI,cAAc,CAAe,wBAAwB;MAWlF,kCAAkC,CAAA;AAT/C,IAAA,WAAA,GAAA;AAeS,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAQ;AAE7B,QAAA,IAAA,CAAA,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC;AAWtE;IATC,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,SAAS,EAAE;;IAGvC,KAAK,GAAA;AACH,QAAA,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,KAAK,EAAE;AACjC,QAAA,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;;8GAhBd,kCAAkC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlC,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA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C,MAAK;QAC5B,MAAM,aAAa,GAAG,CAAC,CAAC,GAAsB,KAAK,MAAM,GAAG,CAAC,KAAK,EAAE,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;QAChG,OAAO,aAAa,EAAE;AACxB,KAAC,CAAC;AACR;;ACtCM,SAAU,uBAAuB,CAAC,WAAwB,EAAA;AAC9D,IAAA,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE;AAC9B,QAAA,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,CAAC,IAAI,CAAC,OAAO,aAAa,KAAI;YACxE,MAAM,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,KAAI;gBACnD,OAAO,CAAC,GAAG,CAAC,6BAA6B,GAAG,YAAY,CAAC,KAAK,CAAC;AAC/D,gBAAA,OAAO,YAAY,CAAC,UAAU,EAAE;aACjC,CAAC,CAAC;AACH,YAAA,IAAI,aAAa,CAAC,MAAM,EAAE;AACxB,gBAAA,MAAM,QAAQ,GAAG,OAAO,CACtB,4GAA4G,CAAC;gBAC/G,IAAI,QAAQ,EAAE;oBACZ,QAAQ,CAAC,MAAM,EAAE;;;AAGvB,SAAC,CAAC;;AAEN;;AClBA;AAWA;;ACXA;;AAEG;;;;"}
1
+ {"version":3,"file":"rxap-service-worker.mjs","sources":["../../../../../packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.ts","../../../../../packages/angular/service-worker/src/lib/service-worker-update-dialog/service-worker-update-dialog.component.html","../../../../../packages/angular/service-worker/src/lib/auto-update.service.ts","../../../../../packages/angular/service-worker/src/lib/check-for-update.service.ts","../../../../../packages/angular/service-worker/src/lib/dialog-update.service.ts","../../../../../packages/angular/service-worker/src/lib/log-update.service.ts","../../../../../packages/angular/service-worker/src/lib/snackbar-update.service.ts","../../../../../packages/angular/service-worker/src/lib/provide-service-worker-updater.ts","../../../../../packages/angular/service-worker/src/lib/unregister-service-worker.ts","../../../../../packages/angular/service-worker/src/index.ts","../../../../../packages/angular/service-worker/src/rxap-service-worker.ts"],"sourcesContent":["import {\n NgSwitch,\n NgSwitchCase,\n} from '@angular/common';\nimport {\n AfterViewInit,\n Component,\n ElementRef,\n EventEmitter,\n inject,\n InjectionToken,\n Output,\n ViewChild,\n} from '@angular/core';\nimport { VersionEvent } from '@angular/service-worker';\n\nexport const UPDATE_AVAILABLE_EVENT = new InjectionToken<VersionEvent>('UPDATE_AVAILABLE_EVENT');\n\n@Component({\n selector: 'rxap-service-worker-update-dialog',\n imports: [\n NgSwitch,\n NgSwitchCase,\n ],\n templateUrl: './service-worker-update-dialog.component.html',\n styleUrls: ['./service-worker-update-dialog.component.scss']\n})\nexport class ServiceWorkerUpdateDialogComponent implements AfterViewInit {\n\n @ViewChild('dialog', { static: true })\n public dialog!: ElementRef<HTMLDialogElement>;\n\n @Output()\n public closeDialog = new EventEmitter<void>();\n\n public readonly updateAvailableEvent = inject(UPDATE_AVAILABLE_EVENT);\n\n ngAfterViewInit() {\n this.dialog.nativeElement.showModal();\n }\n\n close() {\n this.dialog.nativeElement.close();\n this.closeDialog.emit();\n }\n\n}\n","<dialog #dialog\n class=\"max-w-6xl rounded overflow-auto drop-shadow-2xl bg-white text-black dark:bg-black dark:text-white flex flex-col gap-3 p-6\">\n <h2 class=\"text-2xl font-bold\" i18n>A new application version is available</h2>\n <ng-container [ngSwitch]=\"$any(updateAvailableEvent).type\">\n <table *ngSwitchCase=\"'VERSION_DETECTED'\" class=\"table-auto\">\n <tr>\n <th i18n>Version hash</th>\n <td>{{$any(updateAvailableEvent)['version'].hash}}</td>\n </tr>\n </table>\n <table *ngSwitchCase=\"'VERSION_INSTALLATION_FAILED'\" class=\"table-auto\">\n <tr>\n <th i18n>Version hash</th>\n <td>{{$any(updateAvailableEvent)['version'].hash}}</td>\n </tr>\n <tr>\n <th i18n>Version installation error</th>\n <td>{{$any(updateAvailableEvent)['error']}}</td>\n </tr>\n </table>\n <table *ngSwitchCase=\"'VERSION_READY'\" class=\"table-auto\">\n <tr>\n <th i18n>Current version hash</th>\n <td>{{$any(updateAvailableEvent)['currentVersion'].hash}}</td>\n </tr>\n <tr>\n <th i18n>Last version hash</th>\n <td>{{$any(updateAvailableEvent)['latestVersion'].hash}}</td>\n </tr>\n </table>\n <table *ngSwitchCase=\"'NoNewVersionDetectedEvent'\" class=\"table-auto\">\n <tr>\n <th i18n>Version hash</th>\n <td>{{$any(updateAvailableEvent)['version'].hash}}</td>\n </tr>\n </table>\n </ng-container>\n <button (click)=\"close()\" class=\"px-4 py-2 rounded bg-primary-500\" i18n>Update</button>\n</dialog>\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { filter } from 'rxjs';\nimport { tap } from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class AutoUpdateService {\n\n constructor(\n @Inject(SwUpdate)\n private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n console.debug('start auto update service');\n this.updates.versionUpdates\n .pipe(\n filter(event => event.type === 'VERSION_READY'),\n tap(() => console.log('start auto app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('auto app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n}\n","import {\n Inject,\n Injectable,\n} from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { LifeCycleService } from '@rxap/life-cycle';\nimport { interval } from 'rxjs';\nimport {\n startWith,\n tap,\n} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class CheckForUpdateService {\n\n private _started = false;\n\n constructor(\n @Inject(LifeCycleService) private readonly lifeCycle: LifeCycleService,\n @Inject(SwUpdate) private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n if (this._started) {\n console.warn('check for update already started');\n return;\n }\n this._started = true;\n if (this.updates.isEnabled) {\n\n console.debug('start check for update');\n\n this.updates.checkForUpdate();\n\n this\n .lifeCycle\n .whenReady(() => interval(15 * 60 * 1000)\n .pipe(\n startWith(null),\n tap(() => console.log('check for update')),\n tap(() => this.updates.checkForUpdate()),\n ),\n )\n .subscribe();\n\n } else {\n console.warn('service worker updates are not enabled');\n }\n }\n\n}\n","import {\n ApplicationRef,\n createComponent,\n Inject,\n Injectable,\n Injector,\n} from '@angular/core';\nimport {\n SwUpdate,\n VersionEvent,\n} from '@angular/service-worker';\nimport {\n filter,\n Observable,\n} from 'rxjs';\nimport {\n concatMap,\n tap,\n} from 'rxjs/operators';\nimport {\n ServiceWorkerUpdateDialogComponent,\n UPDATE_AVAILABLE_EVENT,\n} from './service-worker-update-dialog/service-worker-update-dialog.component';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class DialogUpdateService {\n constructor(\n @Inject(ApplicationRef)\n private readonly applicationRef: ApplicationRef,\n @Inject(SwUpdate)\n private readonly updates: SwUpdate,\n ) {\n }\n\n public start(): void {\n console.debug('start dialog update service');\n this.updates.versionUpdates\n .pipe(\n filter(event => event.type === 'VERSION_READY'),\n concatMap((event) => this.openUpdateDialog(event)),\n tap(() => console.log('start app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n private openUpdateDialog(event: VersionEvent): Observable<void> {\n console.debug('open update dialog');\n const body = document.getElementsByTagName('body')[0];\n const div = document.createElement('div');\n body.appendChild(div);\n const componentRef = createComponent(ServiceWorkerUpdateDialogComponent, {\n hostElement: div,\n environmentInjector: this.applicationRef.injector,\n elementInjector: Injector.create({\n providers: [\n {\n provide: UPDATE_AVAILABLE_EVENT,\n useValue: event,\n },\n ],\n }),\n });\n this.applicationRef.attachView(componentRef.hostView);\n\n return componentRef.instance.closeDialog.pipe(\n tap(() => {\n componentRef.destroy();\n body.removeChild(div);\n div.remove();\n }),\n );\n }\n}\n","import { Injectable } from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\nimport { filter } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LogUpdateService {\n\n constructor(private readonly updates: SwUpdate) {\n }\n\n public start() {\n console.debug('start log update');\n this.updates.versionUpdates.pipe(\n filter(event => event.type !== 'NO_NEW_VERSION_DETECTED'),\n ).subscribe(event => {\n console.log('version update event', event);\n });\n }\n\n}\n\n","import {\n inject,\n Injectable,\n} from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\nimport {\n SwUpdate,\n VersionEvent,\n} from '@angular/service-worker';\nimport {\n filter,\n Observable,\n take,\n} from 'rxjs';\nimport {\n concatMap,\n tap,\n} from 'rxjs/operators';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class SnackbarUpdateService {\n private readonly snackBar = inject(MatSnackBar);\n private readonly updates = inject(SwUpdate);\n\n public start(): void {\n console.debug('start dialog update service');\n this.updates.versionUpdates\n .pipe(\n filter(event => event.type === 'VERSION_READY'),\n concatMap((event) => this.openUpdateSnackBar(event)),\n tap(() => console.log('start app update')),\n tap(() =>\n this.updates.activateUpdate().then(() => {\n console.log('app update completed. Reload app.');\n document.location.reload();\n }),\n ),\n )\n .subscribe();\n }\n\n private openUpdateSnackBar(event: VersionEvent): Observable<any> {\n console.debug('open update snack bar');\n const ref = this.snackBar.open($localize`A new version is available`, $localize`Update`);\n return ref.afterDismissed().pipe(\n take(1),\n );\n }\n}\n","import {\n Provider,\n inject,\n provideAppInitializer,\n EnvironmentProviders,\n} from '@angular/core';\nimport { AutoUpdateService } from './auto-update.service';\nimport { CheckForUpdateService } from './check-for-update.service';\nimport { DialogUpdateService } from './dialog-update.service';\nimport { LogUpdateService } from './log-update.service';\nimport { SnackbarUpdateService } from './snackbar-update.service';\n\nexport function ProvideServiceWorkerUpdater(...providers: Array<Provider | EnvironmentProviders>): Array<Provider | EnvironmentProviders> {\n return [\n provideAppInitializer(() => {\n const initializerFn = ((checkForUpdate: CheckForUpdateService) => () => checkForUpdate.start())(inject(CheckForUpdateService));\n return initializerFn();\n }),\n ...providers,\n ];\n}\n\nexport function withLogUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((logUpdateService: LogUpdateService) => () => logUpdateService.start())(inject(LogUpdateService));\n return initializerFn();\n });\n}\n\nexport function withDialogUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((dus: DialogUpdateService) => () => dus.start())(inject(DialogUpdateService));\n return initializerFn();\n });\n}\n\nexport function withAutoUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((aus: AutoUpdateService) => () => aus.start())(inject(AutoUpdateService));\n return initializerFn();\n });\n}\n\nexport function withSnackbarUpdater() {\n return provideAppInitializer(() => {\n const initializerFn = ((snackbarUpdateService: SnackbarUpdateService) => () => snackbarUpdateService.start())(inject(SnackbarUpdateService));\n return initializerFn();\n });\n}\n","import { Environment } from '@rxap/environment';\n\nexport function UnregisterServiceWorker(environment: Environment) {\n if (!environment.serviceWorker) {\n navigator?.serviceWorker?.getRegistrations().then(async (registrations) => {\n await Promise.all(registrations.map((registration) => {\n console.log('unregister service worker: ' + registration.scope);\n return registration.unregister();\n }));\n if (registrations.length) {\n const response = confirm(\n 'All dangling service worker are unregistered. Should the application be reloaded to complete the migration');\n if (response) {\n location.reload();\n }\n }\n });\n }\n}\n","// region service-worker-update-dialog\nexport * from './lib/service-worker-update-dialog/service-worker-update-dialog.component';\n// endregion\n\n// region \nexport * from './lib/auto-update.service';\nexport * from './lib/check-for-update.service';\nexport * from './lib/dialog-update.service';\nexport * from './lib/log-update.service';\nexport * from './lib/provide-service-worker-updater';\nexport * from './lib/unregister-service-worker';\n// endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAgBa,sBAAsB,GAAG,IAAI,cAAc,CAAe,wBAAwB;MAWlF,kCAAkC,CAAA;AAT/C,IAAA,WAAA,GAAA;AAeS,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,YAAY,EAAQ;AAE7B,QAAA,IAAA,CAAA,oBAAoB,GAAG,MAAM,CAAC,sBAAsB,CAAC;AA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