@rxap/service-worker 22.0.0-dev.0 → 22.0.0-dev.2
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 +33 -0
- package/README.md +5 -3
- package/compodoc/architecture.html +222 -0
- package/compodoc/changelog.html +77 -5
- package/compodoc/components/ServiceWorkerUpdateDialogComponent.html +101 -57
- package/compodoc/dependencies.html +100 -23
- package/compodoc/index.html +50 -8
- 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 +91 -0
- package/compodoc/miscellaneous/functions.html +139 -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 +182 -98
- 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 +44 -7
- package/docs/html/modules.html +44 -1
- package/docs/html/variables/UPDATE_AVAILABLE_EVENT.html +33 -1
- package/docs/markdown/README.md +6 -4
- 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/Home.md +5 -3
- package/docs/wiki/Variable.UPDATE_AVAILABLE_EVENT.md +1 -1
- package/docs/wiki/globals.md +1 -1
- package/generators.json +16 -0
- package/package.json +30 -16
- package/src/generators/init/generator.js +120 -0
- package/src/generators/init/index.js +6 -0
- package/src/generators/init/schema.json +8 -0
- package/src/generators/package.json +3 -0
- package/compodoc/js/libs/vis.min.js +0 -47
- package/compodoc/js/menu-wc_es5.js +0 -40
- package/theme.css +0 -1
|
@@ -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
|
|
|
@@ -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" >DialogUpdateService</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/dialog-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/dialog-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
|
|
|
@@ -329,6 +373,24 @@ export class DialogUpdateService {
|
|
|
329
373
|
|
|
330
374
|
<script>
|
|
331
375
|
$darkModeToggleSwitchers = document.querySelectorAll('.dark-mode-switch input');
|
|
376
|
+
var updateDarkModeSwitchOffset = function () {
|
|
377
|
+
var content = document.querySelector('.content');
|
|
378
|
+
var scrollbarWidth = 0;
|
|
379
|
+
|
|
380
|
+
if (content) {
|
|
381
|
+
scrollbarWidth = Math.max(0, content.offsetWidth - content.clientWidth);
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
document.documentElement.style.setProperty(
|
|
385
|
+
'--content-scrollbar-width',
|
|
386
|
+
scrollbarWidth + 'px'
|
|
387
|
+
);
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
updateDarkModeSwitchOffset();
|
|
391
|
+
requestAnimationFrame(updateDarkModeSwitchOffset);
|
|
392
|
+
window.addEventListener('resize', updateDarkModeSwitchOffset);
|
|
393
|
+
|
|
332
394
|
checkToggle(darkModeState);
|
|
333
395
|
if ($darkModeToggleSwitchers.length > 0) {
|
|
334
396
|
for (var i = 0; i < $darkModeToggleSwitchers.length; i++) {
|
|
@@ -344,14 +406,12 @@ export class DialogUpdateService {
|
|
|
344
406
|
<script src="../js/libs/lit-html.js"></script>
|
|
345
407
|
|
|
346
408
|
<script src="../js/menu-wc.js" defer></script>
|
|
347
|
-
<script nomodule src="../js/menu-wc_es5.js" defer></script>
|
|
348
409
|
|
|
349
410
|
<script src="../js/libs/bootstrap-native.js"></script>
|
|
350
411
|
|
|
351
412
|
<script src="../js/libs/es6-shim.min.js"></script>
|
|
352
413
|
<script src="../js/libs/EventDispatcher.js"></script>
|
|
353
414
|
<script src="../js/libs/promise.min.js"></script>
|
|
354
|
-
<script src="../js/libs/zepto.min.js"></script>
|
|
355
415
|
|
|
356
416
|
<script src="../js/compodoc.js"></script>
|
|
357
417
|
|