@rxap/layout 18.0.3-dev.1 → 18.1.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 +18 -0
- package/README.md +267 -1
- package/compodoc/changelog.html +16 -0
- package/compodoc/components/AppsButtonComponent.html +197 -153
- package/compodoc/components/BaseLayoutComponent.html +351 -0
- package/compodoc/components/DefaultHeaderComponent.html +545 -0
- package/compodoc/components/FooterComponent.html +58 -79
- package/compodoc/components/HeaderComponent.html +49 -294
- package/compodoc/components/LanguageSelectorComponent.html +6 -54
- package/compodoc/components/LayoutComponent.html +69 -464
- package/compodoc/components/MinimalLayoutComponent.html +349 -0
- package/compodoc/components/NavigationComponent.html +116 -312
- package/compodoc/components/NavigationItemComponent.html +130 -361
- package/compodoc/components/NavigationProgressBarComponent.html +41 -107
- package/compodoc/components/ReleaseInfoComponent.html +536 -0
- package/compodoc/components/SettingsButtonComponent.html +186 -225
- package/compodoc/components/SidenavComponent.html +566 -142
- package/compodoc/components/SidenavToggleButtonComponent.html +71 -91
- package/compodoc/components/SignOutComponent.html +7 -60
- package/compodoc/components/UserProfileIconComponent.html +97 -161
- package/compodoc/dependencies.html +9 -25
- package/compodoc/directives/FooterDirective-1.html +293 -0
- package/compodoc/directives/FooterDirective.html +8 -86
- package/compodoc/directives/HeaderDirective.html +293 -0
- package/compodoc/index.html +177 -2
- package/compodoc/injectables/ExternalAppsService.html +1311 -0
- package/compodoc/injectables/FooterService.html +573 -0
- package/compodoc/injectables/HeaderService.html +576 -0
- package/compodoc/injectables/LayoutService.html +899 -0
- package/compodoc/injectables/LogoService.html +411 -0
- package/compodoc/injectables/NavigationService.html +46 -57
- package/compodoc/interfaces/ReleaseInfoModule.html +385 -0
- package/compodoc/interfaces/SettingsMenuItem.html +385 -0
- package/compodoc/js/menu-wc.js +24 -40
- package/compodoc/js/menu-wc_es5.js +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +532 -0
- package/compodoc/miscellaneous/typealiases.html +40 -2
- package/compodoc/miscellaneous/variables.html +123 -9
- package/compodoc/overview.html +2 -10
- package/compodoc/properties.html +1 -1
- package/docs/assets/highlight.css +42 -0
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AppsButtonComponent.html +8 -8
- package/docs/classes/BaseLayoutComponent.html +2 -0
- package/docs/classes/DefaultHeaderComponent.html +7 -0
- package/docs/classes/ExternalAppsService.html +19 -0
- package/docs/classes/FooterComponent.html +5 -3
- package/docs/classes/FooterDirective.html +2 -2
- package/docs/classes/FooterService.html +14 -0
- package/docs/classes/HeaderComponent.html +6 -8
- package/docs/classes/HeaderDirective.html +8 -0
- package/docs/classes/HeaderService.html +14 -0
- package/docs/classes/LayoutComponent.html +4 -12
- package/docs/classes/LayoutService.html +20 -0
- package/docs/classes/LogoService.html +7 -0
- package/docs/classes/MinimalLayoutComponent.html +2 -0
- package/docs/classes/NavigationComponent.html +7 -8
- package/docs/classes/NavigationItemComponent.html +6 -9
- package/docs/classes/NavigationProgressBarComponent.html +3 -3
- package/docs/classes/NavigationService.html +3 -3
- package/docs/classes/ReleaseInfoComponent.html +6 -0
- package/docs/classes/SettingsButtonComponent.html +6 -11
- package/docs/classes/SidenavComponent.html +17 -5
- package/docs/classes/SidenavFooterDirective.html +2 -2
- package/docs/classes/SidenavHeaderDirective.html +2 -2
- package/docs/classes/SidenavToggleButtonComponent.html +4 -3
- package/docs/classes/UserProfileIconComponent.html +5 -4
- package/docs/documentation.json +9635 -9292
- package/docs/functions/IsNavigationDividerItem.html +1 -1
- package/docs/functions/IsNavigationInsertItem.html +1 -1
- package/docs/functions/IsNavigationItem.html +1 -1
- package/docs/functions/provideLayout.html +1 -0
- package/docs/functions/widthDefaultHeaderComponent.html +1 -0
- package/docs/functions/withExternalApps.html +1 -0
- package/docs/functions/withFooterComponents.html +1 -0
- package/docs/functions/withHeaderComponents.html +1 -0
- package/docs/functions/withNavigationConfig.html +1 -0
- package/docs/functions/withNavigationInserts.html +1 -0
- package/docs/functions/withReleaseInfoModules.html +1 -0
- package/docs/functions/withSettingsMenuItems.html +1 -0
- package/docs/index.html +65 -2
- package/docs/interfaces/NavigationDividerItem.html +2 -2
- package/docs/interfaces/NavigationInsertItem.html +2 -2
- package/docs/interfaces/NavigationItem.html +2 -2
- package/docs/interfaces/NavigationStatus.html +2 -2
- package/docs/interfaces/ReleaseInfoModule.html +4 -0
- package/docs/interfaces/SettingsMenuItem.html +4 -0
- package/docs/modules.html +31 -17
- package/docs/types/ExternalApp.html +1 -0
- package/docs/types/ExtractUsernameFromProfileFn.html +1 -1
- package/docs/types/Navigation.html +1 -1
- package/docs/types/NavigationWithInserts.html +1 -1
- package/docs/types/SettingsMenuItemComponent.html +1 -0
- package/docs/variables/EXTRACT_USERNAME_FROM_PROFILE.html +1 -1
- package/docs/variables/RXAP_EXTERNAL_APP.html +1 -0
- package/docs/variables/RXAP_EXTERNAL_APP_FILTER.html +1 -0
- package/docs/variables/RXAP_FOOTER_COMPONENT.html +1 -1
- package/docs/variables/RXAP_HEADER_COMPONENT.html +1 -1
- package/docs/variables/RXAP_LAYOUT_APPS_GRID.html +1 -1
- package/docs/variables/RXAP_LOGO_CONFIG.html +1 -1
- package/docs/variables/RXAP_NAVIGATION_CONFIG.html +1 -1
- package/docs/variables/RXAP_NAVIGATION_CONFIG_INSERTS.html +1 -1
- package/docs/variables/RXAP_RELEASE_INFO_MODULE.html +1 -0
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -0
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -0
- package/esm2022/index.mjs +35 -40
- package/esm2022/lib/base-layout/base-layout.component.mjs +16 -0
- package/esm2022/lib/default-header/apps-button/apps-button.component.mjs +40 -0
- package/esm2022/lib/default-header/default-header.component.mjs +32 -0
- package/esm2022/lib/default-header/settings-button/settings-button.component.mjs +73 -0
- package/esm2022/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +24 -0
- package/esm2022/lib/default-header/user-profile-icon/user-profile-icon.component.mjs +35 -0
- package/esm2022/lib/external-apps.service.mjs +99 -0
- package/esm2022/lib/footer/footer.component.mjs +13 -13
- package/esm2022/lib/footer/footer.directive.mjs +30 -0
- package/esm2022/lib/footer.service.mjs +58 -0
- package/esm2022/lib/header/header.component.mjs +17 -65
- package/esm2022/lib/header/header.directive.mjs +30 -0
- package/esm2022/lib/header.service.mjs +60 -0
- package/esm2022/lib/layout/layout.component.mjs +33 -47
- package/esm2022/lib/layout.service.mjs +93 -0
- package/esm2022/lib/logo.service.mjs +23 -0
- package/esm2022/lib/minimal-layout/minimal-layout.component.mjs +14 -0
- package/esm2022/lib/navigation/navigation-item/navigation-item.component.mjs +30 -64
- package/esm2022/lib/navigation/navigation.component.mjs +22 -48
- package/esm2022/lib/navigation-progress-bar/navigation-progress-bar.component.mjs +23 -0
- package/esm2022/lib/navigation.service.mjs +141 -0
- package/esm2022/lib/provide.mjs +80 -0
- package/esm2022/lib/release-info/release-info.component.mjs +28 -0
- package/esm2022/lib/sidenav/sidenav.component.mjs +50 -33
- package/esm2022/lib/tokens.mjs +10 -1
- package/esm2022/lib/types.mjs +1 -1
- package/fesm2022/rxap-layout.mjs +856 -833
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/index.d.ts +18 -19
- package/lib/base-layout/base-layout.component.d.ts +5 -0
- package/lib/default-header/apps-button/apps-button.component.d.ts +15 -0
- package/lib/default-header/default-header.component.d.ts +11 -0
- package/lib/{header → default-header}/settings-button/settings-button.component.d.ts +6 -14
- package/lib/{header → default-header}/sidenav-toggle-button/sidenav-toggle-button.component.d.ts +3 -5
- package/lib/default-header/user-profile-icon/user-profile-icon.component.d.ts +10 -0
- package/lib/external-apps.service.d.ts +26 -0
- package/lib/footer/footer.component.d.ts +3 -3
- package/lib/{footer.directive.d.ts → footer/footer.directive.d.ts} +2 -4
- package/lib/footer.service.d.ts +32 -0
- package/lib/header/header.component.d.ts +6 -12
- package/lib/header/header.directive.d.ts +12 -0
- package/lib/header.service.d.ts +34 -0
- package/lib/layout/layout.component.d.ts +4 -17
- package/lib/layout.service.d.ts +26 -0
- package/lib/logo.service.d.ts +10 -0
- package/lib/minimal-layout/minimal-layout.component.d.ts +5 -0
- package/lib/navigation/navigation-item/navigation-item.component.d.ts +10 -18
- package/lib/navigation/navigation.component.d.ts +10 -15
- package/lib/{header/navigation-progress-bar → navigation-progress-bar}/navigation-progress-bar.component.d.ts +1 -3
- package/lib/{navigation/navigation.service.d.ts → navigation.service.d.ts} +4 -5
- package/lib/provide.d.ts +13 -0
- package/lib/release-info/release-info.component.d.ts +9 -0
- package/lib/sidenav/sidenav.component.d.ts +18 -6
- package/lib/tokens.d.ts +12 -3
- package/lib/types.d.ts +15 -4
- package/package.json +30 -66
- package/theme.css +1 -1
- package/docs/classes/AppUrlService.html +0 -13
- package/docs/classes/AuthenticationServiceMock.html +0 -3
- package/docs/classes/LanguageSelectorComponent.html +0 -3
- package/docs/classes/LayoutComponentService.html +0 -15
- package/docs/classes/ReplaceRouterPathsPipe.html +0 -4
- package/docs/classes/ReplaceRouterPathsService.html +0 -3
- package/docs/classes/ResetButtonComponent.html +0 -3
- package/docs/classes/SidenavComponentService.html +0 -5
- package/docs/classes/SignOutComponent.html +0 -4
- package/docs/classes/ToggleWindowSidenavButtonComponent.html +0 -5
- package/docs/classes/VersionComponent.html +0 -7
- package/docs/classes/WindowContainerSidenavComponent.html +0 -10
- package/docs/interfaces/ExternalApps.html +0 -8
- package/docs/interfaces/LogoConfig.html +0 -4
- package/esm2022/lib/app-url.service.mjs +0 -78
- package/esm2022/lib/authentication.service.mock.mjs +0 -13
- package/esm2022/lib/footer.directive.mjs +0 -40
- package/esm2022/lib/header/apps-button/apps-button.component.mjs +0 -46
- package/esm2022/lib/header/language-selector/language-selector.component.mjs +0 -35
- package/esm2022/lib/header/navigation-progress-bar/navigation-progress-bar.component.mjs +0 -30
- package/esm2022/lib/header/reset-button/reset-button.component.mjs +0 -23
- package/esm2022/lib/header/settings-button/settings-button.component.mjs +0 -87
- package/esm2022/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.mjs +0 -26
- package/esm2022/lib/header/sign-out/sign-out.component.mjs +0 -23
- package/esm2022/lib/header/user-profile-icon/user-profile-icon.component.mjs +0 -45
- package/esm2022/lib/layout/layout.component.service.mjs +0 -77
- package/esm2022/lib/navigation/navigation.service.mjs +0 -145
- package/esm2022/lib/navigation/replace-router-paths.pipe.mjs +0 -22
- package/esm2022/lib/navigation/replace-router-paths.service.mjs +0 -15
- package/esm2022/lib/sidenav/sidenav.component.service.mjs +0 -22
- package/esm2022/lib/sidenav/version/version.component.mjs +0 -28
- package/esm2022/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.mjs +0 -30
- package/esm2022/lib/window-container-sidenav/window-container-sidenav.component.mjs +0 -54
- package/lib/app-url.service.d.ts +0 -29
- package/lib/authentication.service.mock.d.ts +0 -6
- package/lib/header/apps-button/apps-button.component.d.ts +0 -16
- package/lib/header/language-selector/language-selector.component.d.ts +0 -8
- package/lib/header/reset-button/reset-button.component.d.ts +0 -8
- package/lib/header/sign-out/sign-out.component.d.ts +0 -9
- package/lib/header/user-profile-icon/user-profile-icon.component.d.ts +0 -15
- package/lib/layout/layout.component.service.d.ts +0 -25
- package/lib/navigation/replace-router-paths.pipe.d.ts +0 -11
- package/lib/navigation/replace-router-paths.service.d.ts +0 -7
- package/lib/sidenav/sidenav.component.service.d.ts +0 -11
- package/lib/sidenav/version/version.component.d.ts +0 -14
- package/lib/toggle-window-sidenav-button/toggle-window-sidenav-button.component.d.ts +0 -9
- package/lib/window-container-sidenav/window-container-sidenav.component.d.ts +0 -17
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
<h3>File</h3>
|
|
121
121
|
</p>
|
|
122
122
|
<p class="comment">
|
|
123
|
-
<code>src/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.ts</code>
|
|
123
|
+
<code>src/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts</code>
|
|
124
124
|
</p>
|
|
125
125
|
|
|
126
126
|
|
|
@@ -161,9 +161,8 @@
|
|
|
161
161
|
<tr>
|
|
162
162
|
<td class="col-md-3">imports</td>
|
|
163
163
|
<td class="col-md-9">
|
|
164
|
-
<code>
|
|
165
|
-
<code>
|
|
166
|
-
<code>MatIconModule</code>
|
|
164
|
+
<code>MatIcon</code>
|
|
165
|
+
<code>MatIconButton</code>
|
|
167
166
|
</td>
|
|
168
167
|
</tr>
|
|
169
168
|
|
|
@@ -202,11 +201,6 @@
|
|
|
202
201
|
<tr>
|
|
203
202
|
<td class="col-md-4">
|
|
204
203
|
<ul class="index-list">
|
|
205
|
-
<li>
|
|
206
|
-
<span class="modifier">Public</span>
|
|
207
|
-
<span class="modifier">Readonly</span>
|
|
208
|
-
<a href="#layoutComponentService" >layoutComponentService</a>
|
|
209
|
-
</li>
|
|
210
204
|
<li>
|
|
211
205
|
<span class="modifier">Public</span>
|
|
212
206
|
<span class="modifier">Readonly</span>
|
|
@@ -216,62 +210,28 @@
|
|
|
216
210
|
</td>
|
|
217
211
|
</tr>
|
|
218
212
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
</tbody>
|
|
225
|
-
</table>
|
|
226
|
-
</section>
|
|
227
|
-
|
|
228
|
-
<section data-compodoc="block-constructor">
|
|
229
|
-
<h3 id="constructor">Constructor</h3>
|
|
230
|
-
<table class="table table-sm table-bordered">
|
|
231
|
-
<tbody>
|
|
232
213
|
<tr>
|
|
233
214
|
<td class="col-md-4">
|
|
234
|
-
<
|
|
215
|
+
<h6><b>Methods</b></h6>
|
|
235
216
|
</td>
|
|
236
217
|
</tr>
|
|
237
|
-
<tr>
|
|
238
|
-
<td class="col-md-4">
|
|
239
|
-
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/header/sidenav-toggle-button/sidenav-toggle-button.component.ts:25</a></div>
|
|
240
|
-
</td>
|
|
241
|
-
</tr>
|
|
242
|
-
|
|
243
218
|
<tr>
|
|
244
219
|
<td class="col-md-4">
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
<
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
<td>Type</td>
|
|
252
|
-
<td>Optional</td>
|
|
253
|
-
</tr>
|
|
254
|
-
</thead>
|
|
255
|
-
<tbody>
|
|
256
|
-
<tr>
|
|
257
|
-
<td>layoutComponentService</td>
|
|
258
|
-
|
|
259
|
-
<td>
|
|
260
|
-
<code><a href="../injectables/LayoutComponentService.html" target="_self" >LayoutComponentService</a></code>
|
|
261
|
-
</td>
|
|
262
|
-
|
|
263
|
-
<td>
|
|
264
|
-
No
|
|
265
|
-
</td>
|
|
266
|
-
|
|
267
|
-
</tr>
|
|
268
|
-
</tbody>
|
|
269
|
-
</table>
|
|
270
|
-
</div>
|
|
220
|
+
<ul class="index-list">
|
|
221
|
+
<li>
|
|
222
|
+
<span class="modifier">Public</span>
|
|
223
|
+
<a href="#toggle" >toggle</a>
|
|
224
|
+
</li>
|
|
225
|
+
</ul>
|
|
271
226
|
</td>
|
|
272
227
|
</tr>
|
|
273
|
-
|
|
274
|
-
|
|
228
|
+
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
</tbody>
|
|
234
|
+
</table>
|
|
275
235
|
</section>
|
|
276
236
|
|
|
277
237
|
|
|
@@ -279,39 +239,56 @@
|
|
|
279
239
|
|
|
280
240
|
|
|
281
241
|
|
|
282
|
-
<section data-compodoc="block-
|
|
242
|
+
<section data-compodoc="block-methods">
|
|
283
243
|
|
|
284
|
-
<h3 id="
|
|
285
|
-
|
|
244
|
+
<h3 id="methods">
|
|
245
|
+
Methods
|
|
286
246
|
</h3>
|
|
287
247
|
<table class="table table-sm table-bordered">
|
|
288
248
|
<tbody>
|
|
289
249
|
<tr>
|
|
290
250
|
<td class="col-md-4">
|
|
291
|
-
<a name="
|
|
251
|
+
<a name="toggle"></a>
|
|
292
252
|
<span class="name">
|
|
293
253
|
<span class="modifier">Public</span>
|
|
294
|
-
|
|
295
|
-
<span
|
|
296
|
-
<a href="#layoutComponentService"><span class="icon ion-ios-link"></span></a>
|
|
254
|
+
<span ><b>toggle</b></span>
|
|
255
|
+
<a href="#toggle"><span class="icon ion-ios-link"></span></a>
|
|
297
256
|
</span>
|
|
298
257
|
</td>
|
|
299
258
|
</tr>
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
<
|
|
259
|
+
<tr>
|
|
260
|
+
<td class="col-md-4">
|
|
261
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
262
|
+
<code>toggle()</code>
|
|
263
|
+
</td>
|
|
264
|
+
</tr>
|
|
265
|
+
|
|
303
266
|
|
|
304
|
-
</td>
|
|
305
|
-
</tr>
|
|
306
267
|
<tr>
|
|
307
268
|
<td class="col-md-4">
|
|
308
|
-
|
|
269
|
+
<div class="io-line">Defined in <a href="" data-line="28"
|
|
270
|
+
class="link-to-prism">src/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts:28</a></div>
|
|
309
271
|
</td>
|
|
310
272
|
</tr>
|
|
311
273
|
|
|
312
274
|
|
|
275
|
+
<tr>
|
|
276
|
+
<td class="col-md-4">
|
|
277
|
+
|
|
278
|
+
<div class="io-description">
|
|
279
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
280
|
+
|
|
281
|
+
</div>
|
|
282
|
+
</td>
|
|
283
|
+
</tr>
|
|
313
284
|
</tbody>
|
|
314
285
|
</table>
|
|
286
|
+
</section>
|
|
287
|
+
<section data-compodoc="block-properties">
|
|
288
|
+
|
|
289
|
+
<h3 id="inputs">
|
|
290
|
+
Properties
|
|
291
|
+
</h3>
|
|
315
292
|
<table class="table table-sm table-bordered">
|
|
316
293
|
<tbody>
|
|
317
294
|
<tr>
|
|
@@ -327,13 +304,12 @@
|
|
|
327
304
|
</tr>
|
|
328
305
|
<tr>
|
|
329
306
|
<td class="col-md-4">
|
|
330
|
-
<i>
|
|
331
|
-
|
|
307
|
+
<i>Default value : </i><code>computed(() => this.layoutComponentService.opened())</code>
|
|
332
308
|
</td>
|
|
333
309
|
</tr>
|
|
334
310
|
<tr>
|
|
335
311
|
<td class="col-md-4">
|
|
336
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
312
|
+
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/default-header/sidenav-toggle-button/sidenav-toggle-button.component.ts:26</a></div>
|
|
337
313
|
</td>
|
|
338
314
|
</tr>
|
|
339
315
|
|
|
@@ -346,15 +322,15 @@
|
|
|
346
322
|
|
|
347
323
|
|
|
348
324
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
349
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
350
|
-
import {
|
|
325
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
351
326
|
ChangeDetectionStrategy,
|
|
352
327
|
Component,
|
|
353
|
-
|
|
328
|
+
computed,
|
|
329
|
+
inject,
|
|
354
330
|
} from '@angular/core';
|
|
355
|
-
import {
|
|
356
|
-
import {
|
|
357
|
-
import {
|
|
331
|
+
import { MatIconButton } from '@angular/material/button';
|
|
332
|
+
import { MatIcon } from '@angular/material/icon';
|
|
333
|
+
import { LayoutService } from '../../layout.service';
|
|
358
334
|
|
|
359
335
|
@Component({
|
|
360
336
|
selector: 'rxap-sidenav-toggle-button',
|
|
@@ -363,17 +339,18 @@ import { LayoutComponentService } from '../../layout/layout.component.servi
|
|
|
363
339
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
364
340
|
standalone: true,
|
|
365
341
|
imports: [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
MatIconModule,
|
|
342
|
+
MatIcon,
|
|
343
|
+
MatIconButton,
|
|
369
344
|
],
|
|
370
345
|
})
|
|
371
346
|
export class SidenavToggleButtonComponent {
|
|
372
347
|
|
|
373
|
-
|
|
348
|
+
private readonly layoutComponentService = inject(LayoutService);
|
|
349
|
+
|
|
350
|
+
public readonly opened = computed(() => this.layoutComponentService.opened());
|
|
374
351
|
|
|
375
|
-
|
|
376
|
-
this.
|
|
352
|
+
public toggle() {
|
|
353
|
+
this.layoutComponentService.toggleOpened();
|
|
377
354
|
}
|
|
378
355
|
|
|
379
356
|
}
|
|
@@ -381,9 +358,12 @@ export class SidenavToggleButtonComponent {
|
|
|
381
358
|
</div>
|
|
382
359
|
|
|
383
360
|
<div class="tab-pane fade " id="templateData">
|
|
384
|
-
<pre class="line-numbers"><code class="language-html"><button (click)="
|
|
385
|
-
|
|
386
|
-
|
|
361
|
+
<pre class="line-numbers"><code class="language-html"><button (click)="toggle()" mat-icon-button>
|
|
362
|
+
@if (opened()) {
|
|
363
|
+
<mat-icon>menu_open</mat-icon>
|
|
364
|
+
} @else {
|
|
365
|
+
<mat-icon>menu</mat-icon>
|
|
366
|
+
}
|
|
387
367
|
</button>
|
|
388
368
|
</code></pre>
|
|
389
369
|
</div>
|
|
@@ -420,9 +400,9 @@ export class SidenavToggleButtonComponent {
|
|
|
420
400
|
<script src="../js/libs/htmlparser.js"></script>
|
|
421
401
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
422
402
|
<script>
|
|
423
|
-
var COMPONENT_TEMPLATE = '<div><button (click)="
|
|
424
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
425
|
-
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
403
|
+
var COMPONENT_TEMPLATE = '<div><button (click)="toggle()" mat-icon-button> @if (opened()) { <mat-icon>menu_open</mat-icon> } @else { <mat-icon>menu</mat-icon> }</button></div>'
|
|
404
|
+
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': 'BaseLayoutComponent', 'selector': 'rxap-base-layout'},{'name': 'DefaultHeaderComponent', 'selector': 'rxap-default-header'},{'name': 'FooterComponent', 'selector': 'rxap-footer'},{'name': 'HeaderComponent', 'selector': 'rxap-header'},{'name': 'LayoutComponent', 'selector': 'rxap-layout'},{'name': 'MinimalLayoutComponent', 'selector': 'rxap-minimal-layout'},{'name': 'NavigationComponent', 'selector': 'ul[rxap-navigation]'},{'name': 'NavigationItemComponent', 'selector': 'li[rxap-navigation-item]'},{'name': 'NavigationProgressBarComponent', 'selector': 'rxap-navigation-progress-bar'},{'name': 'ReleaseInfoComponent', 'selector': 'rxap-release-info'},{'name': 'SettingsButtonComponent', 'selector': 'rxap-settings-button'},{'name': 'SidenavComponent', 'selector': 'rxap-sidenav'},{'name': 'SidenavToggleButtonComponent', 'selector': 'rxap-sidenav-toggle-button'},{'name': 'UserProfileIconComponent', 'selector': 'rxap-user-profile-icon'}];
|
|
405
|
+
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
426
406
|
var ACTUAL_COMPONENT = {'name': 'SidenavToggleButtonComponent'};
|
|
427
407
|
</script>
|
|
428
408
|
<script src="../js/tree.js"></script>
|
|
@@ -219,54 +219,6 @@
|
|
|
219
219
|
</table>
|
|
220
220
|
</section>
|
|
221
221
|
|
|
222
|
-
<section data-compodoc="block-constructor">
|
|
223
|
-
<h3 id="constructor">Constructor</h3>
|
|
224
|
-
<table class="table table-sm table-bordered">
|
|
225
|
-
<tbody>
|
|
226
|
-
<tr>
|
|
227
|
-
<td class="col-md-4">
|
|
228
|
-
<code>constructor(authenticationService: RxapAuthenticationService)</code>
|
|
229
|
-
</td>
|
|
230
|
-
</tr>
|
|
231
|
-
<tr>
|
|
232
|
-
<td class="col-md-4">
|
|
233
|
-
<div class="io-line">Defined in <a href="" data-line="17" class="link-to-prism">src/lib/header/sign-out/sign-out.component.ts:17</a></div>
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
|
|
237
|
-
<tr>
|
|
238
|
-
<td class="col-md-4">
|
|
239
|
-
<div>
|
|
240
|
-
<b>Parameters :</b>
|
|
241
|
-
<table class="params">
|
|
242
|
-
<thead>
|
|
243
|
-
<tr>
|
|
244
|
-
<td>Name</td>
|
|
245
|
-
<td>Type</td>
|
|
246
|
-
<td>Optional</td>
|
|
247
|
-
</tr>
|
|
248
|
-
</thead>
|
|
249
|
-
<tbody>
|
|
250
|
-
<tr>
|
|
251
|
-
<td>authenticationService</td>
|
|
252
|
-
|
|
253
|
-
<td>
|
|
254
|
-
<code>RxapAuthenticationService</code>
|
|
255
|
-
</td>
|
|
256
|
-
|
|
257
|
-
<td>
|
|
258
|
-
No
|
|
259
|
-
</td>
|
|
260
|
-
|
|
261
|
-
</tr>
|
|
262
|
-
</tbody>
|
|
263
|
-
</table>
|
|
264
|
-
</div>
|
|
265
|
-
</td>
|
|
266
|
-
</tr>
|
|
267
|
-
</tbody>
|
|
268
|
-
</table>
|
|
269
|
-
</section>
|
|
270
222
|
|
|
271
223
|
|
|
272
224
|
|
|
@@ -300,8 +252,8 @@
|
|
|
300
252
|
|
|
301
253
|
<tr>
|
|
302
254
|
<td class="col-md-4">
|
|
303
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
304
|
-
class="link-to-prism">src/lib/header/sign-out/sign-out.component.ts:
|
|
255
|
+
<div class="io-line">Defined in <a href="" data-line="22"
|
|
256
|
+
class="link-to-prism">src/lib/header/sign-out/sign-out.component.ts:22</a></div>
|
|
305
257
|
</td>
|
|
306
258
|
</tr>
|
|
307
259
|
|
|
@@ -326,6 +278,7 @@
|
|
|
326
278
|
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
327
279
|
ChangeDetectionStrategy,
|
|
328
280
|
Component,
|
|
281
|
+
inject,
|
|
329
282
|
} from '@angular/core';
|
|
330
283
|
import { RxapAuthenticationService } from '@rxap/authentication';
|
|
331
284
|
import { MatIconModule } from '@angular/material/icon';
|
|
@@ -341,10 +294,7 @@ import { MatButtonModule } from '@angular/material/button';
|
|
|
341
294
|
})
|
|
342
295
|
export class SignOutComponent {
|
|
343
296
|
|
|
344
|
-
|
|
345
|
-
private readonly authenticationService: RxapAuthenticationService,
|
|
346
|
-
) {
|
|
347
|
-
}
|
|
297
|
+
private readonly authenticationService = inject(RxapAuthenticationService);
|
|
348
298
|
|
|
349
299
|
public async logout() {
|
|
350
300
|
await this.authenticationService.signOut();
|
|
@@ -355,10 +305,7 @@ export class SignOutComponent {
|
|
|
355
305
|
</div>
|
|
356
306
|
|
|
357
307
|
<div class="tab-pane fade " id="templateData">
|
|
358
|
-
<pre class="line-numbers"><code class="language-html"><button
|
|
359
|
-
mat-icon-button
|
|
360
|
-
(click)="logout()"
|
|
361
|
-
>
|
|
308
|
+
<pre class="line-numbers"><code class="language-html"><button mat-icon-button (click)="logout()">
|
|
362
309
|
<mat-icon svgIcon="logout"></mat-icon>
|
|
363
310
|
</button>
|
|
364
311
|
</code></pre>
|
|
@@ -396,8 +343,8 @@ export class SignOutComponent {
|
|
|
396
343
|
<script src="../js/libs/htmlparser.js"></script>
|
|
397
344
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
398
345
|
<script>
|
|
399
|
-
var COMPONENT_TEMPLATE = '<div><button
|
|
400
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
346
|
+
var COMPONENT_TEMPLATE = '<div><button mat-icon-button (click)="logout()"> <mat-icon svgIcon="logout"></mat-icon></button></div>'
|
|
347
|
+
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': 'BaseLayoutComponent', 'selector': 'rxap-base-layout'},{'name': 'FooterComponent', 'selector': 'rxap-footer'},{'name': 'HeaderComponent', 'selector': 'rxap-header'},{'name': 'LanguageSelectorComponent', 'selector': 'rxap-language-selector'},{'name': 'LayoutComponent', 'selector': 'rxap-layout'},{'name': 'MinimalLayoutComponent', 'selector': 'rxap-minimal-layout'},{'name': 'NavigationComponent', 'selector': 'ul[rxap-navigation]'},{'name': 'NavigationItemComponent', 'selector': 'li[rxap-navigation-item]'},{'name': 'NavigationProgressBarComponent', 'selector': 'rxap-navigation-progress-bar'},{'name': 'ReleaseInfoComponent', 'selector': 'rxap-release-info'},{'name': 'SettingsButtonComponent', 'selector': 'rxap-settings-button'},{'name': 'SidenavComponent', 'selector': 'rxap-sidenav'},{'name': 'SidenavToggleButtonComponent', 'selector': 'rxap-sidenav-toggle-button'},{'name': 'SignOutComponent', 'selector': 'rxap-sign-out'},{'name': 'UserProfileIconComponent', 'selector': 'rxap-user-profile-icon'}];
|
|
401
348
|
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
402
349
|
var ACTUAL_COMPONENT = {'name': 'SignOutComponent'};
|
|
403
350
|
</script>
|