@rxap/service-worker 22.0.0-dev.0 → 22.0.0-dev.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/CHANGELOG.md +15 -0
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +60 -5
- package/compodoc/components/ServiceWorkerUpdateDialogComponent.html +101 -57
- package/compodoc/dependencies.html +100 -23
- package/compodoc/index.html +46 -5
- package/compodoc/injectables/AutoUpdateService.html +77 -17
- package/compodoc/injectables/CheckForUpdateService.html +77 -17
- package/compodoc/injectables/DialogUpdateService.html +77 -17
- package/compodoc/injectables/LogUpdateService.html +77 -17
- package/compodoc/injectables/SnackbarUpdateService.html +77 -17
- package/compodoc/js/architecture-graph.js +288 -0
- package/compodoc/js/libs/bootstrap-native.js +4 -2
- package/compodoc/js/libs/jszip.min.js +13 -0
- package/compodoc/js/libs/svg-pan-zoom.min.js +3 -3
- package/compodoc/js/libs/tablesort.min.js +3 -3
- package/compodoc/js/libs/tablesort.number.min.js +3 -3
- package/compodoc/js/libs/vis-network.min.js +78 -0
- package/compodoc/js/menu-wc.js +25 -12
- package/compodoc/js/menu.js +10 -11
- package/compodoc/js/routes/routes_index.js +1 -0
- package/compodoc/js/routes.js +142 -34
- package/compodoc/js/search/search-lunr.js +6 -8
- package/compodoc/js/search/search.js +118 -66
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/js/tabs.js +98 -15
- package/compodoc/js/tree.js +44 -7
- package/compodoc/license.html +48 -6
- package/compodoc/llms.txt +89 -0
- package/compodoc/miscellaneous/functions.html +58 -14
- package/compodoc/miscellaneous/variables.html +58 -5
- package/compodoc/modules.html +44 -3
- package/compodoc/overview.html +54 -3
- package/compodoc/properties.html +45 -4
- package/compodoc/routes.html +227 -0
- package/compodoc/styles/compodoc.css +365 -44
- package/compodoc/styles/dark.css +16 -0
- package/compodoc/template-playground/default-templates.json +192 -0
- package/compodoc/template-playground/hbs-render.service.ts +217 -0
- package/compodoc/template-playground/main.ts +9 -0
- package/compodoc/template-playground/template-editor.service.ts +173 -0
- package/compodoc/template-playground/template-playground.component.ts +614 -0
- package/compodoc/template-playground/template-playground.module.ts +29 -0
- package/compodoc/template-playground/zip-export.service.ts +86 -0
- package/compodoc/template-playground-app/app.js +1389 -0
- package/compodoc/template-playground-app/index.html +462 -0
- package/docs/documentation.json +154 -94
- package/docs/html/assets/highlight.css +1 -1
- package/docs/html/assets/icons.js +1 -1
- package/docs/html/assets/icons.svg +1 -1
- package/docs/html/assets/main.js +5 -5
- package/docs/html/assets/search.js +1 -1
- package/docs/html/assets/style.css +265 -228
- package/docs/html/classes/AutoUpdateService.html +74 -3
- package/docs/html/classes/CheckForUpdateService.html +74 -3
- package/docs/html/classes/DialogUpdateService.html +74 -3
- package/docs/html/classes/LogUpdateService.html +74 -3
- package/docs/html/classes/ServiceWorkerUpdateDialogComponent.html +102 -6
- package/docs/html/classes/SnackbarUpdateService.html +74 -3
- package/docs/html/functions/ProvideServiceWorkerUpdater.html +42 -1
- package/docs/html/functions/UnregisterServiceWorker.html +42 -1
- package/docs/html/functions/withAutoUpdater.html +38 -1
- package/docs/html/functions/withDialogUpdater.html +38 -1
- package/docs/html/functions/withLogUpdater.html +38 -1
- package/docs/html/functions/withSnackbarUpdater.html +38 -1
- package/docs/html/hierarchy.html +29 -0
- package/docs/html/index.html +40 -4
- package/docs/html/modules.html +44 -1
- package/docs/html/variables/UPDATE_AVAILABLE_EVENT.html +33 -1
- package/docs/markdown/README.md +1 -1
- package/docs/markdown/classes/AutoUpdateService.md +6 -6
- package/docs/markdown/classes/CheckForUpdateService.md +6 -6
- package/docs/markdown/classes/DialogUpdateService.md +6 -6
- package/docs/markdown/classes/LogUpdateService.md +6 -6
- package/docs/markdown/classes/ServiceWorkerUpdateDialogComponent.md +10 -10
- package/docs/markdown/classes/SnackbarUpdateService.md +6 -6
- package/docs/markdown/functions/ProvideServiceWorkerUpdater.md +2 -2
- package/docs/markdown/functions/UnregisterServiceWorker.md +2 -2
- package/docs/markdown/functions/withAutoUpdater.md +2 -2
- package/docs/markdown/functions/withDialogUpdater.md +2 -2
- package/docs/markdown/functions/withLogUpdater.md +2 -2
- package/docs/markdown/functions/withSnackbarUpdater.md +2 -2
- package/docs/markdown/globals.md +2 -2
- package/docs/markdown/variables/UPDATE_AVAILABLE_EVENT.md +2 -2
- package/docs/wiki/Class.AutoUpdateService.md +5 -5
- package/docs/wiki/Class.CheckForUpdateService.md +5 -5
- package/docs/wiki/Class.DialogUpdateService.md +5 -5
- package/docs/wiki/Class.LogUpdateService.md +5 -5
- package/docs/wiki/Class.ServiceWorkerUpdateDialogComponent.md +9 -9
- package/docs/wiki/Class.SnackbarUpdateService.md +5 -5
- package/docs/wiki/Function.ProvideServiceWorkerUpdater.md +1 -1
- package/docs/wiki/Function.UnregisterServiceWorker.md +1 -1
- package/docs/wiki/Function.withAutoUpdater.md +1 -1
- package/docs/wiki/Function.withDialogUpdater.md +1 -1
- package/docs/wiki/Function.withLogUpdater.md +1 -1
- package/docs/wiki/Function.withSnackbarUpdater.md +1 -1
- package/docs/wiki/Variable.UPDATE_AVAILABLE_EVENT.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/package.json +11 -11
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -96,35 +117,75 @@
|
|
|
96
117
|
|
|
97
118
|
|
|
98
119
|
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
99
124
|
<ol class="breadcrumb">
|
|
100
125
|
<li class="breadcrumb-item">Dependencies</li>
|
|
101
126
|
</ol>
|
|
102
|
-
<
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
127
|
+
<div class="dependencies-table-wrapper">
|
|
128
|
+
<table class="table table-sm table-bordered dependencies-table">
|
|
129
|
+
<thead>
|
|
130
|
+
<tr>
|
|
131
|
+
<th>Name</th>
|
|
132
|
+
<th>Version</th>
|
|
133
|
+
</tr>
|
|
134
|
+
</thead>
|
|
135
|
+
<tbody>
|
|
136
|
+
<tr>
|
|
137
|
+
<td><b>@nx/devkit</b></td>
|
|
138
|
+
<td>24.0.6</td>
|
|
139
|
+
</tr>
|
|
140
|
+
<tr>
|
|
141
|
+
<td><b>tslib</b></td>
|
|
142
|
+
<td>2.9.1</td>
|
|
143
|
+
</tr>
|
|
144
|
+
</tbody>
|
|
145
|
+
</table>
|
|
146
|
+
</div>
|
|
108
147
|
|
|
109
148
|
|
|
110
149
|
<br/>
|
|
111
150
|
<ol class="breadcrumb">
|
|
112
151
|
<li class="breadcrumb-item">Peer dependencies</li>
|
|
113
152
|
</ol>
|
|
114
|
-
<
|
|
115
|
-
<
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
<
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
153
|
+
<div class="dependencies-table-wrapper">
|
|
154
|
+
<table class="table table-sm table-bordered dependencies-table">
|
|
155
|
+
<thead>
|
|
156
|
+
<tr>
|
|
157
|
+
<th>Name</th>
|
|
158
|
+
<th>Version</th>
|
|
159
|
+
</tr>
|
|
160
|
+
</thead>
|
|
161
|
+
<tbody>
|
|
162
|
+
<tr>
|
|
163
|
+
<td><b>@angular/common</b></td>
|
|
164
|
+
<td>^22.0.0</td>
|
|
165
|
+
</tr>
|
|
166
|
+
<tr>
|
|
167
|
+
<td><b>@angular/core</b></td>
|
|
168
|
+
<td>^22.0.0</td>
|
|
169
|
+
</tr>
|
|
170
|
+
<tr>
|
|
171
|
+
<td><b>@angular/service-worker</b></td>
|
|
172
|
+
<td>^22.0.0</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td><b>@rxap/environment</b></td>
|
|
176
|
+
<td>^22.0.0-dev.1</td>
|
|
177
|
+
</tr>
|
|
178
|
+
<tr>
|
|
179
|
+
<td><b>@rxap/life-cycle</b></td>
|
|
180
|
+
<td>^22.0.0-dev.1</td>
|
|
181
|
+
</tr>
|
|
182
|
+
<tr>
|
|
183
|
+
<td><b>rxjs</b></td>
|
|
184
|
+
<td>^7.0.0</td>
|
|
185
|
+
</tr>
|
|
186
|
+
</tbody>
|
|
187
|
+
</table>
|
|
188
|
+
</div>
|
|
128
189
|
|
|
129
190
|
|
|
130
191
|
|
|
@@ -163,6 +224,24 @@
|
|
|
163
224
|
|
|
164
225
|
<script>
|
|
165
226
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
227
|
+
var updateDarkModeSwitchOffset = function () {
|
|
228
|
+
var content = document.querySelector('.content');
|
|
229
|
+
var scrollbarWidth = 0;
|
|
230
|
+
|
|
231
|
+
if (content) {
|
|
232
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
document.documentElement.style.setProperty(
|
|
236
|
+
'--content-scrollbar-width',
|
|
237
|
+
scrollbarWidth + 'px'
|
|
238
|
+
);
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
updateDarkModeSwitchOffset();
|
|
242
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
243
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
244
|
+
|
|
166
245
|
checkToggle(darkModeState);
|
|
167
246
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
168
247
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -178,14 +257,12 @@
|
|
|
178
257
|
<script src="./js/libs/lit-html.js"></script>
|
|
179
258
|
|
|
180
259
|
<script src="./js/menu-wc.js" defer></script>
|
|
181
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
182
260
|
|
|
183
261
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
184
262
|
|
|
185
263
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
186
264
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
187
265
|
<script src="./js/libs/promise.min.js"></script>
|
|
188
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
189
266
|
|
|
190
267
|
<script src="./js/compodoc.js"></script>
|
|
191
268
|
|
package/compodoc/index.html
CHANGED
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -79,9 +100,10 @@
|
|
|
79
100
|
<compodoc-menu mode="normal"></compodoc-menu>
|
|
80
101
|
</div>
|
|
81
102
|
<!-- START CONTENT -->
|
|
82
|
-
<div class="content
|
|
103
|
+
<div class="content readme">
|
|
83
104
|
<div class="content-data">
|
|
84
105
|
|
|
106
|
+
|
|
85
107
|
<p>Provides services and components to simplify the management of service worker updates in Angular applications. It includes features such as automatic updates, dialog prompts for updates, and logging of update events. The package also offers utilities to unregister service workers and initialize peer dependencies.</p>
|
|
86
108
|
<p><a href="https://www.npmjs.com/package/@rxap/service-worker"><img src="https://img.shields.io/npm/v/@rxap/service-worker?style=flat-square" alt="npm version" class="img-responsive"></a>
|
|
87
109
|
<a href="https://commitizen.github.io/cz-cli/"><img src="https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=flat-square" alt="commitizen friendly" class="img-responsive"></a>
|
|
@@ -123,6 +145,9 @@
|
|
|
123
145
|
|
|
124
146
|
|
|
125
147
|
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
126
151
|
|
|
127
152
|
|
|
128
153
|
|
|
@@ -151,13 +176,31 @@
|
|
|
151
176
|
|
|
152
177
|
<script>
|
|
153
178
|
var COMPODOC_CURRENT_PAGE_DEPTH = 0;
|
|
154
|
-
var COMPODOC_CURRENT_PAGE_CONTEXT = '
|
|
179
|
+
var COMPODOC_CURRENT_PAGE_CONTEXT = 'readme';
|
|
155
180
|
var COMPODOC_CURRENT_PAGE_URL = 'index.html';
|
|
156
181
|
var MAX_SEARCH_RESULTS = 15;
|
|
157
182
|
</script>
|
|
158
183
|
|
|
159
184
|
<script>
|
|
160
185
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
186
|
+
var updateDarkModeSwitchOffset = function () {
|
|
187
|
+
var content = document.querySelector('.content');
|
|
188
|
+
var scrollbarWidth = 0;
|
|
189
|
+
|
|
190
|
+
if (content) {
|
|
191
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
document.documentElement.style.setProperty(
|
|
195
|
+
'--content-scrollbar-width',
|
|
196
|
+
scrollbarWidth + 'px'
|
|
197
|
+
);
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
updateDarkModeSwitchOffset();
|
|
201
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
202
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
203
|
+
|
|
161
204
|
checkToggle(darkModeState);
|
|
162
205
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
163
206
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -173,14 +216,12 @@
|
|
|
173
216
|
<script src="./js/libs/lit-html.js"></script>
|
|
174
217
|
|
|
175
218
|
<script src="./js/menu-wc.js" defer></script>
|
|
176
|
-
<script nomodule src="./js/menu-wc_es5.js" defer></script>
|
|
177
219
|
|
|
178
220
|
<script src="./js/libs/bootstrap-native.js"></script>
|
|
179
221
|
|
|
180
222
|
<script src="./js/libs/es6-shim.min.js"></script>
|
|
181
223
|
<script src="./js/libs/EventDispatcher.js"></script>
|
|
182
224
|
<script src="./js/libs/promise.min.js"></script>
|
|
183
|
-
<script src="./js/libs/zepto.min.js"></script>
|
|
184
225
|
|
|
185
226
|
<script src="./js/compodoc.js"></script>
|
|
186
227
|
|
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -89,11 +110,20 @@
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
<ol class="breadcrumb">
|
|
93
118
|
<li class="breadcrumb-item">Injectables</li>
|
|
94
119
|
<li class="breadcrumb-item" >AutoUpdateService</li>
|
|
95
120
|
</ol>
|
|
96
121
|
|
|
122
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
123
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
124
|
+
<code>src/lib/auto-update.service.ts</code>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
97
127
|
<ul class="nav nav-tabs" role="tablist">
|
|
98
128
|
<li class="nav-item">
|
|
99
129
|
<a href="#info"
|
|
@@ -101,6 +131,12 @@
|
|
|
101
131
|
class="nav-link active"
|
|
102
132
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
103
133
|
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a href="#api"
|
|
136
|
+
class="nav-link"
|
|
137
|
+
|
|
138
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
139
|
+
</li>
|
|
104
140
|
<li class="nav-item">
|
|
105
141
|
<a href="#source"
|
|
106
142
|
class="nav-link"
|
|
@@ -111,44 +147,51 @@
|
|
|
111
147
|
|
|
112
148
|
<div class="tab-content">
|
|
113
149
|
<div class="tab-pane fade active in" id="info">
|
|
114
|
-
<p class="comment">
|
|
115
|
-
<h3>File</h3>
|
|
116
|
-
</p>
|
|
117
|
-
<p class="comment">
|
|
118
|
-
<code>src/lib/auto-update.service.ts</code>
|
|
119
|
-
</p>
|
|
120
150
|
|
|
121
151
|
|
|
122
152
|
|
|
153
|
+
<section data-compodoc="block-metadata">
|
|
154
|
+
<h3>Metadata</h3>
|
|
155
|
+
<table class="table table-sm table-hover metadata">
|
|
156
|
+
<tbody>
|
|
157
|
+
<tr>
|
|
158
|
+
<td class="col-md-3">providedIn</td>
|
|
159
|
+
<td class="col-md-9"><code>root</code></td>
|
|
160
|
+
</tr>
|
|
161
|
+
</tbody>
|
|
162
|
+
</table>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
123
165
|
|
|
166
|
+
</div>
|
|
124
167
|
|
|
168
|
+
<div class="tab-pane fade " id="api">
|
|
125
169
|
<section data-compodoc="block-index">
|
|
126
170
|
<h3 id="index">Index</h3>
|
|
127
|
-
<table class="table table-sm table-bordered index-table">
|
|
128
|
-
<tbody>
|
|
129
171
|
|
|
172
|
+
<table class="table table-sm table-bordered index-table">
|
|
173
|
+
<tbody>
|
|
130
174
|
<tr>
|
|
131
|
-
<td class="col-md-
|
|
175
|
+
<td class="col-md-3">
|
|
132
176
|
<h6><b>Methods</b></h6>
|
|
133
177
|
</td>
|
|
134
|
-
|
|
135
|
-
<tr>
|
|
136
|
-
<td class="col-md-4">
|
|
178
|
+
<td class="col-md-9">
|
|
137
179
|
<ul class="index-list">
|
|
138
180
|
<li>
|
|
181
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
139
182
|
<span class="modifier">Public</span>
|
|
140
183
|
<a href="#start" >start</a>
|
|
141
184
|
</li>
|
|
142
185
|
</ul>
|
|
143
186
|
</td>
|
|
144
187
|
</tr>
|
|
188
|
+
</tbody>
|
|
189
|
+
</table>
|
|
145
190
|
|
|
146
191
|
|
|
147
192
|
|
|
148
193
|
|
|
149
194
|
|
|
150
|
-
</tbody>
|
|
151
|
-
</table>
|
|
152
195
|
</section>
|
|
153
196
|
|
|
154
197
|
|
|
@@ -198,6 +241,7 @@
|
|
|
198
241
|
</table>
|
|
199
242
|
</section>
|
|
200
243
|
|
|
244
|
+
|
|
201
245
|
</div>
|
|
202
246
|
|
|
203
247
|
|
|
@@ -280,6 +324,24 @@ export class AutoUpdateService {
|
|
|
280
324
|
|
|
281
325
|
<script>
|
|
282
326
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
327
|
+
var updateDarkModeSwitchOffset = function () {
|
|
328
|
+
var content = document.querySelector('.content');
|
|
329
|
+
var scrollbarWidth = 0;
|
|
330
|
+
|
|
331
|
+
if (content) {
|
|
332
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
document.documentElement.style.setProperty(
|
|
336
|
+
'--content-scrollbar-width',
|
|
337
|
+
scrollbarWidth + 'px'
|
|
338
|
+
);
|
|
339
|
+
};
|
|
340
|
+
|
|
341
|
+
updateDarkModeSwitchOffset();
|
|
342
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
343
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
344
|
+
|
|
283
345
|
checkToggle(darkModeState);
|
|
284
346
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
285
347
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -295,14 +357,12 @@ export class AutoUpdateService {
|
|
|
295
357
|
<script src="../js/libs/lit-html.js"></script>
|
|
296
358
|
|
|
297
359
|
<script src="../js/menu-wc.js" defer></script>
|
|
298
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
299
360
|
|
|
300
361
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
301
362
|
|
|
302
363
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
303
364
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
304
365
|
<script src="../js/libs/promise.min.js"></script>
|
|
305
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
306
366
|
|
|
307
367
|
<script src="../js/compodoc.js"></script>
|
|
308
368
|
|
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
}
|
|
62
62
|
toggleDarkMode(darkModeState);
|
|
63
63
|
</script>
|
|
64
|
+
<script>
|
|
65
|
+
// --- Iframe navigation tracking for Template Playground ---
|
|
66
|
+
function sendCurrentUrlToParent() {
|
|
67
|
+
if (window.parent && window.parent !== window) {
|
|
68
|
+
window.parent.postMessage({
|
|
69
|
+
type: 'compodoc-iframe-navigate',
|
|
70
|
+
url: window.location.pathname + window.location.hash
|
|
71
|
+
}, '*');
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
window.addEventListener('hashchange', sendCurrentUrlToParent, false);
|
|
75
|
+
window.addEventListener('popstate', sendCurrentUrlToParent, false);
|
|
76
|
+
window.addEventListener('DOMContentLoaded', sendCurrentUrlToParent, false);
|
|
77
|
+
</script>
|
|
64
78
|
|
|
65
79
|
<div class="navbar navbar-default navbar-fixed-top d-md-none p-0">
|
|
66
80
|
<div class="d-flex">
|
|
@@ -70,7 +84,14 @@
|
|
|
70
84
|
</div>
|
|
71
85
|
|
|
72
86
|
<div class="xs-menu menu" id="mobile-menu">
|
|
73
|
-
<div id="book-search-input" role="search"
|
|
87
|
+
<div id="book-search-input" role="search">
|
|
88
|
+
<input type="text" placeholder="Type to search">
|
|
89
|
+
<button type="button"
|
|
90
|
+
class="search-input-clear"
|
|
91
|
+
aria-label="Clear search"
|
|
92
|
+
data-search-input-clear>×</button>
|
|
93
|
+
</div>
|
|
94
|
+
<compodoc-menu></compodoc-menu>
|
|
74
95
|
</div>
|
|
75
96
|
|
|
76
97
|
<div class="container-fluid main">
|
|
@@ -89,11 +110,20 @@
|
|
|
89
110
|
|
|
90
111
|
|
|
91
112
|
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
92
117
|
<ol class="breadcrumb">
|
|
93
118
|
<li class="breadcrumb-item">Injectables</li>
|
|
94
119
|
<li class="breadcrumb-item" >CheckForUpdateService</li>
|
|
95
120
|
</ol>
|
|
96
121
|
|
|
122
|
+
<div class="io-file io-file-path" data-compodoc="entity-file-path">
|
|
123
|
+
<span class="icon ion-ios-document" aria-hidden="true"></span>
|
|
124
|
+
<code>src/lib/check-for-update.service.ts</code>
|
|
125
|
+
</div>
|
|
126
|
+
|
|
97
127
|
<ul class="nav nav-tabs" role="tablist">
|
|
98
128
|
<li class="nav-item">
|
|
99
129
|
<a href="#info"
|
|
@@ -101,6 +131,12 @@
|
|
|
101
131
|
class="nav-link active"
|
|
102
132
|
role="tab" id="info-tab" data-bs-toggle="tab" data-link="info">Info</a>
|
|
103
133
|
</li>
|
|
134
|
+
<li class="nav-item">
|
|
135
|
+
<a href="#api"
|
|
136
|
+
class="nav-link"
|
|
137
|
+
|
|
138
|
+
role="tab" id="api-tab" data-bs-toggle="tab" data-link="api">API</a>
|
|
139
|
+
</li>
|
|
104
140
|
<li class="nav-item">
|
|
105
141
|
<a href="#source"
|
|
106
142
|
class="nav-link"
|
|
@@ -111,44 +147,51 @@
|
|
|
111
147
|
|
|
112
148
|
<div class="tab-content">
|
|
113
149
|
<div class="tab-pane fade active in" id="info">
|
|
114
|
-
<p class="comment">
|
|
115
|
-
<h3>File</h3>
|
|
116
|
-
</p>
|
|
117
|
-
<p class="comment">
|
|
118
|
-
<code>src/lib/check-for-update.service.ts</code>
|
|
119
|
-
</p>
|
|
120
150
|
|
|
121
151
|
|
|
122
152
|
|
|
153
|
+
<section data-compodoc="block-metadata">
|
|
154
|
+
<h3>Metadata</h3>
|
|
155
|
+
<table class="table table-sm table-hover metadata">
|
|
156
|
+
<tbody>
|
|
157
|
+
<tr>
|
|
158
|
+
<td class="col-md-3">providedIn</td>
|
|
159
|
+
<td class="col-md-9"><code>root</code></td>
|
|
160
|
+
</tr>
|
|
161
|
+
</tbody>
|
|
162
|
+
</table>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
123
165
|
|
|
166
|
+
</div>
|
|
124
167
|
|
|
168
|
+
<div class="tab-pane fade " id="api">
|
|
125
169
|
<section data-compodoc="block-index">
|
|
126
170
|
<h3 id="index">Index</h3>
|
|
127
|
-
<table class="table table-sm table-bordered index-table">
|
|
128
|
-
<tbody>
|
|
129
171
|
|
|
172
|
+
<table class="table table-sm table-bordered index-table">
|
|
173
|
+
<tbody>
|
|
130
174
|
<tr>
|
|
131
|
-
<td class="col-md-
|
|
175
|
+
<td class="col-md-3">
|
|
132
176
|
<h6><b>Methods</b></h6>
|
|
133
177
|
</td>
|
|
134
|
-
|
|
135
|
-
<tr>
|
|
136
|
-
<td class="col-md-4">
|
|
178
|
+
<td class="col-md-9">
|
|
137
179
|
<ul class="index-list">
|
|
138
180
|
<li>
|
|
181
|
+
<span class="reference-badge reference-badge--method" aria-hidden="true">M</span>
|
|
139
182
|
<span class="modifier">Public</span>
|
|
140
183
|
<a href="#start" >start</a>
|
|
141
184
|
</li>
|
|
142
185
|
</ul>
|
|
143
186
|
</td>
|
|
144
187
|
</tr>
|
|
188
|
+
</tbody>
|
|
189
|
+
</table>
|
|
145
190
|
|
|
146
191
|
|
|
147
192
|
|
|
148
193
|
|
|
149
194
|
|
|
150
|
-
</tbody>
|
|
151
|
-
</table>
|
|
152
195
|
</section>
|
|
153
196
|
|
|
154
197
|
|
|
@@ -198,6 +241,7 @@
|
|
|
198
241
|
</table>
|
|
199
242
|
</section>
|
|
200
243
|
|
|
244
|
+
|
|
201
245
|
</div>
|
|
202
246
|
|
|
203
247
|
|
|
@@ -299,6 +343,24 @@ export class CheckForUpdateService {
|
|
|
299
343
|
|
|
300
344
|
<script>
|
|
301
345
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
346
|
+
var updateDarkModeSwitchOffset = function () {
|
|
347
|
+
var content = document.querySelector('.content');
|
|
348
|
+
var scrollbarWidth = 0;
|
|
349
|
+
|
|
350
|
+
if (content) {
|
|
351
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
document.documentElement.style.setProperty(
|
|
355
|
+
'--content-scrollbar-width',
|
|
356
|
+
scrollbarWidth + 'px'
|
|
357
|
+
);
|
|
358
|
+
};
|
|
359
|
+
|
|
360
|
+
updateDarkModeSwitchOffset();
|
|
361
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
362
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
363
|
+
|
|
302
364
|
checkToggle(darkModeState);
|
|
303
365
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
304
366
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -314,14 +376,12 @@ export class CheckForUpdateService {
|
|
|
314
376
|
<script src="../js/libs/lit-html.js"></script>
|
|
315
377
|
|
|
316
378
|
<script src="../js/menu-wc.js" defer></script>
|
|
317
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
318
379
|
|
|
319
380
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
320
381
|
|
|
321
382
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
322
383
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
323
384
|
<script src="../js/libs/promise.min.js"></script>
|
|
324
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
325
385
|
|
|
326
386
|
<script src="../js/compodoc.js"></script>
|
|
327
387
|
|