@rxap/layout 18.0.3-dev.1 → 18.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.
- package/CHANGELOG.md +12 -0
- package/README.md +267 -1
- package/compodoc/changelog.html +11 -0
- package/compodoc/components/AppsButtonComponent.html +185 -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 +1274 -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 +472 -0
- package/compodoc/miscellaneous/typealiases.html +40 -2
- package/compodoc/miscellaneous/variables.html +100 -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 +18 -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 +8536 -8352
- 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/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 +29 -17
- package/docs/types/ExternalApps.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_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 +38 -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 +97 -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 +73 -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 +9 -1
- package/esm2022/lib/types.mjs +1 -1
- package/fesm2022/rxap-layout.mjs +845 -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 +25 -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 +12 -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 +11 -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/apps-button/apps-button.component.ts</code>
|
|
123
|
+
<code>src/lib/default-header/apps-button/apps-button.component.ts</code>
|
|
124
124
|
</p>
|
|
125
125
|
|
|
126
126
|
|
|
@@ -131,7 +131,6 @@
|
|
|
131
131
|
</p>
|
|
132
132
|
<p class="comment">
|
|
133
133
|
<code>OnInit</code>
|
|
134
|
-
<code>OnDestroy</code>
|
|
135
134
|
</p>
|
|
136
135
|
|
|
137
136
|
|
|
@@ -168,11 +167,12 @@
|
|
|
168
167
|
<tr>
|
|
169
168
|
<td class="col-md-3">imports</td>
|
|
170
169
|
<td class="col-md-9">
|
|
171
|
-
<code>NgIf</code>
|
|
172
|
-
<code>NgFor</code>
|
|
173
|
-
<code>MatButtonModule</code>
|
|
174
|
-
<code>MatIconModule</code>
|
|
175
170
|
<code>NgOptimizedImage</code>
|
|
171
|
+
<code>MatButton</code>
|
|
172
|
+
<code>RouterLink</code>
|
|
173
|
+
<code>MatAnchor</code>
|
|
174
|
+
<code>MatIconButton</code>
|
|
175
|
+
<code>MatIcon</code>
|
|
176
176
|
</td>
|
|
177
177
|
</tr>
|
|
178
178
|
|
|
@@ -218,12 +218,33 @@
|
|
|
218
218
|
</li>
|
|
219
219
|
<li>
|
|
220
220
|
<span class="modifier">Public</span>
|
|
221
|
+
<span class="modifier">Readonly</span>
|
|
222
|
+
<a href="#hasApps" >hasApps</a>
|
|
223
|
+
</li>
|
|
224
|
+
<li>
|
|
225
|
+
<span class="modifier">Public</span>
|
|
226
|
+
<span class="modifier">Readonly</span>
|
|
221
227
|
<a href="#isOpen" >isOpen</a>
|
|
222
228
|
</li>
|
|
223
229
|
</ul>
|
|
224
230
|
</td>
|
|
225
231
|
</tr>
|
|
226
232
|
|
|
233
|
+
<tr>
|
|
234
|
+
<td class="col-md-4">
|
|
235
|
+
<h6><b>Methods</b></h6>
|
|
236
|
+
</td>
|
|
237
|
+
</tr>
|
|
238
|
+
<tr>
|
|
239
|
+
<td class="col-md-4">
|
|
240
|
+
<ul class="index-list">
|
|
241
|
+
<li>
|
|
242
|
+
<span class="modifier">Public</span>
|
|
243
|
+
<a href="#toggle" >toggle</a>
|
|
244
|
+
</li>
|
|
245
|
+
</ul>
|
|
246
|
+
</td>
|
|
247
|
+
</tr>
|
|
227
248
|
|
|
228
249
|
|
|
229
250
|
|
|
@@ -233,84 +254,56 @@
|
|
|
233
254
|
</table>
|
|
234
255
|
</section>
|
|
235
256
|
|
|
236
|
-
<section data-compodoc="block-constructor">
|
|
237
|
-
<h3 id="constructor">Constructor</h3>
|
|
238
|
-
<table class="table table-sm table-bordered">
|
|
239
|
-
<tbody>
|
|
240
|
-
<tr>
|
|
241
|
-
<td class="col-md-4">
|
|
242
|
-
<code>constructor(grid: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>, appUrlService: <a href="../injectables/AppUrlService.html" target="_self">AppUrlService</a>, authenticationService: RxapAuthenticationService)</code>
|
|
243
|
-
</td>
|
|
244
|
-
</tr>
|
|
245
|
-
<tr>
|
|
246
|
-
<td class="col-md-4">
|
|
247
|
-
<div class="io-line">Defined in <a href="" data-line="51" class="link-to-prism">src/lib/header/apps-button/apps-button.component.ts:51</a></div>
|
|
248
|
-
</td>
|
|
249
|
-
</tr>
|
|
250
257
|
|
|
251
|
-
<tr>
|
|
252
|
-
<td class="col-md-4">
|
|
253
|
-
<div>
|
|
254
|
-
<b>Parameters :</b>
|
|
255
|
-
<table class="params">
|
|
256
|
-
<thead>
|
|
257
|
-
<tr>
|
|
258
|
-
<td>Name</td>
|
|
259
|
-
<td>Type</td>
|
|
260
|
-
<td>Optional</td>
|
|
261
|
-
</tr>
|
|
262
|
-
</thead>
|
|
263
|
-
<tbody>
|
|
264
|
-
<tr>
|
|
265
|
-
<td>grid</td>
|
|
266
|
-
|
|
267
|
-
<td>
|
|
268
|
-
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
269
|
-
</td>
|
|
270
|
-
|
|
271
|
-
<td>
|
|
272
|
-
No
|
|
273
|
-
</td>
|
|
274
|
-
|
|
275
|
-
</tr>
|
|
276
|
-
<tr>
|
|
277
|
-
<td>appUrlService</td>
|
|
278
|
-
|
|
279
|
-
<td>
|
|
280
|
-
<code><a href="../injectables/AppUrlService.html" target="_self" >AppUrlService</a></code>
|
|
281
|
-
</td>
|
|
282
|
-
|
|
283
|
-
<td>
|
|
284
|
-
No
|
|
285
|
-
</td>
|
|
286
|
-
|
|
287
|
-
</tr>
|
|
288
|
-
<tr>
|
|
289
|
-
<td>authenticationService</td>
|
|
290
|
-
|
|
291
|
-
<td>
|
|
292
|
-
<code>RxapAuthenticationService</code>
|
|
293
|
-
</td>
|
|
294
|
-
|
|
295
|
-
<td>
|
|
296
|
-
No
|
|
297
|
-
</td>
|
|
298
|
-
|
|
299
|
-
</tr>
|
|
300
|
-
</tbody>
|
|
301
|
-
</table>
|
|
302
|
-
</div>
|
|
303
|
-
</td>
|
|
304
|
-
</tr>
|
|
305
|
-
</tbody>
|
|
306
|
-
</table>
|
|
307
|
-
</section>
|
|
308
258
|
|
|
309
259
|
|
|
310
260
|
|
|
311
261
|
|
|
262
|
+
<section data-compodoc="block-methods">
|
|
263
|
+
|
|
264
|
+
<h3 id="methods">
|
|
265
|
+
Methods
|
|
266
|
+
</h3>
|
|
267
|
+
<table class="table table-sm table-bordered">
|
|
268
|
+
<tbody>
|
|
269
|
+
<tr>
|
|
270
|
+
<td class="col-md-4">
|
|
271
|
+
<a name="toggle"></a>
|
|
272
|
+
<span class="name">
|
|
273
|
+
<span class="modifier">Public</span>
|
|
274
|
+
<span ><b>toggle</b></span>
|
|
275
|
+
<a href="#toggle"><span class="icon ion-ios-link"></span></a>
|
|
276
|
+
</span>
|
|
277
|
+
</td>
|
|
278
|
+
</tr>
|
|
279
|
+
<tr>
|
|
280
|
+
<td class="col-md-4">
|
|
281
|
+
<span class="modifier-icon icon ion-ios-reset"></span>
|
|
282
|
+
<code>toggle()</code>
|
|
283
|
+
</td>
|
|
284
|
+
</tr>
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
<tr>
|
|
288
|
+
<td class="col-md-4">
|
|
289
|
+
<div class="io-line">Defined in <a href="" data-line="44"
|
|
290
|
+
class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:44</a></div>
|
|
291
|
+
</td>
|
|
292
|
+
</tr>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
<tr>
|
|
296
|
+
<td class="col-md-4">
|
|
312
297
|
|
|
298
|
+
<div class="io-description">
|
|
299
|
+
<b>Returns : </b> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >void</a></code>
|
|
313
300
|
|
|
301
|
+
</div>
|
|
302
|
+
</td>
|
|
303
|
+
</tr>
|
|
304
|
+
</tbody>
|
|
305
|
+
</table>
|
|
306
|
+
</section>
|
|
314
307
|
<section data-compodoc="block-properties">
|
|
315
308
|
|
|
316
309
|
<h3 id="inputs">
|
|
@@ -331,12 +324,39 @@
|
|
|
331
324
|
</tr>
|
|
332
325
|
<tr>
|
|
333
326
|
<td class="col-md-4">
|
|
334
|
-
<i>Default value : </i><code>
|
|
327
|
+
<i>Default value : </i><code>computed(() => this.externalAppsService.activeAppList())</code>
|
|
335
328
|
</td>
|
|
336
329
|
</tr>
|
|
337
330
|
<tr>
|
|
338
331
|
<td class="col-md-4">
|
|
339
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
332
|
+
<div class="io-line">Defined in <a href="" data-line="41" class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:41</a></div>
|
|
333
|
+
</td>
|
|
334
|
+
</tr>
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
</tbody>
|
|
338
|
+
</table>
|
|
339
|
+
<table class="table table-sm table-bordered">
|
|
340
|
+
<tbody>
|
|
341
|
+
<tr>
|
|
342
|
+
<td class="col-md-4">
|
|
343
|
+
<a name="hasApps"></a>
|
|
344
|
+
<span class="name">
|
|
345
|
+
<span class="modifier">Public</span>
|
|
346
|
+
<span class="modifier">Readonly</span>
|
|
347
|
+
<span ><b>hasApps</b></span>
|
|
348
|
+
<a href="#hasApps"><span class="icon ion-ios-link"></span></a>
|
|
349
|
+
</span>
|
|
350
|
+
</td>
|
|
351
|
+
</tr>
|
|
352
|
+
<tr>
|
|
353
|
+
<td class="col-md-4">
|
|
354
|
+
<i>Default value : </i><code>computed(() => this.appList().length > 0)</code>
|
|
355
|
+
</td>
|
|
356
|
+
</tr>
|
|
357
|
+
<tr>
|
|
358
|
+
<td class="col-md-4">
|
|
359
|
+
<div class="io-line">Defined in <a href="" data-line="42" class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:42</a></div>
|
|
340
360
|
</td>
|
|
341
361
|
</tr>
|
|
342
362
|
|
|
@@ -350,6 +370,7 @@
|
|
|
350
370
|
<a name="isOpen"></a>
|
|
351
371
|
<span class="name">
|
|
352
372
|
<span class="modifier">Public</span>
|
|
373
|
+
<span class="modifier">Readonly</span>
|
|
353
374
|
<span ><b>isOpen</b></span>
|
|
354
375
|
<a href="#isOpen"><span class="icon ion-ios-link"></span></a>
|
|
355
376
|
</span>
|
|
@@ -357,15 +378,21 @@
|
|
|
357
378
|
</tr>
|
|
358
379
|
<tr>
|
|
359
380
|
<td class="col-md-4">
|
|
360
|
-
<i>Default value : </i><code>false</code>
|
|
381
|
+
<i>Default value : </i><code>signal(false)</code>
|
|
361
382
|
</td>
|
|
362
383
|
</tr>
|
|
363
384
|
<tr>
|
|
364
385
|
<td class="col-md-4">
|
|
365
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
386
|
+
<div class="io-line">Defined in <a href="" data-line="38" class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:38</a></div>
|
|
366
387
|
</td>
|
|
367
388
|
</tr>
|
|
368
389
|
|
|
390
|
+
<tr>
|
|
391
|
+
<td class="col-md-4">
|
|
392
|
+
<div class="io-description"><p>The signal that indicates if the app list is open</p>
|
|
393
|
+
</div>
|
|
394
|
+
</td>
|
|
395
|
+
</tr>
|
|
369
396
|
|
|
370
397
|
</tbody>
|
|
371
398
|
</table>
|
|
@@ -375,36 +402,23 @@
|
|
|
375
402
|
|
|
376
403
|
|
|
377
404
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
378
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
405
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { NgOptimizedImage } from '@angular/common';
|
|
406
|
+
import {
|
|
379
407
|
ChangeDetectionStrategy,
|
|
380
408
|
Component,
|
|
381
|
-
|
|
382
|
-
|
|
409
|
+
computed,
|
|
410
|
+
inject,
|
|
383
411
|
OnInit,
|
|
384
|
-
Optional,
|
|
385
412
|
signal,
|
|
386
413
|
} from '@angular/core';
|
|
387
|
-
import { RXAP_LAYOUT_APPS_GRID } from '../../tokens';
|
|
388
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
389
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
390
|
-
import {
|
|
391
|
-
NgFor,
|
|
392
|
-
NgIf,
|
|
393
|
-
NgOptimizedImage,
|
|
394
|
-
} from '@angular/common';
|
|
395
|
-
import {
|
|
396
|
-
AppUrlService,
|
|
397
|
-
ExternalApps,
|
|
398
|
-
} from '../../app-url.service';
|
|
399
|
-
import { RxapAuthenticationService } from '@rxap/authentication';
|
|
400
|
-
import {
|
|
401
|
-
Subscription,
|
|
402
|
-
switchMap,
|
|
403
|
-
} from 'rxjs';
|
|
404
414
|
import {
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
415
|
+
MatAnchor,
|
|
416
|
+
MatButton,
|
|
417
|
+
MatIconButton,
|
|
418
|
+
} from '@angular/material/button';
|
|
419
|
+
import { MatIcon } from '@angular/material/icon';
|
|
420
|
+
import { RouterLink } from '@angular/router';
|
|
421
|
+
import { ExternalAppsService } from '../../external-apps.service';
|
|
408
422
|
|
|
409
423
|
@Component({
|
|
410
424
|
selector: 'rxap-apps-button',
|
|
@@ -413,38 +427,30 @@ import {
|
|
|
413
427
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
414
428
|
standalone: true,
|
|
415
429
|
imports: [
|
|
416
|
-
NgIf,
|
|
417
|
-
NgFor,
|
|
418
|
-
MatButtonModule,
|
|
419
|
-
MatIconModule,
|
|
420
430
|
NgOptimizedImage,
|
|
431
|
+
MatButton,
|
|
432
|
+
RouterLink,
|
|
433
|
+
MatAnchor,
|
|
434
|
+
MatIconButton,
|
|
435
|
+
MatIcon,
|
|
421
436
|
],
|
|
422
437
|
})
|
|
423
|
-
export class AppsButtonComponent implements OnInit
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
private readonly authenticationService: RxapAuthenticationService,
|
|
436
|
-
) {}
|
|
437
|
-
|
|
438
|
-
ngOnInit() {
|
|
439
|
-
this._subscription = this.authenticationService.isAuthenticated$.pipe(
|
|
440
|
-
filter(Boolean),
|
|
441
|
-
switchMap(() => this.appUrlService.getAppList()),
|
|
442
|
-
tap((apps) => this.appList.set(apps)),
|
|
443
|
-
).subscribe();
|
|
438
|
+
export class AppsButtonComponent implements OnInit {
|
|
439
|
+
/**
|
|
440
|
+
* The signal that indicates if the app list is open
|
|
441
|
+
*/
|
|
442
|
+
public readonly isOpen = signal(false);
|
|
443
|
+
|
|
444
|
+
private readonly externalAppsService = inject(ExternalAppsService);
|
|
445
|
+
public readonly appList = computed(() => this.externalAppsService.activeAppList());
|
|
446
|
+
public readonly hasApps = computed(() => this.appList().length > 0);
|
|
447
|
+
|
|
448
|
+
public toggle(): void {
|
|
449
|
+
this.isOpen.update(isOpen => !isOpen);
|
|
444
450
|
}
|
|
445
451
|
|
|
446
|
-
|
|
447
|
-
this.
|
|
452
|
+
public ngOnInit(): void {
|
|
453
|
+
this.externalAppsService.getAppList();
|
|
448
454
|
}
|
|
449
455
|
|
|
450
456
|
}
|
|
@@ -452,26 +458,52 @@ export class AppsButtonComponent implements OnInit, OnDestroy {
|
|
|
452
458
|
</div>
|
|
453
459
|
|
|
454
460
|
<div class="tab-pane fade " id="templateData">
|
|
455
|
-
<pre class="line-numbers"><code class="language-html"
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
461
|
+
<pre class="line-numbers"><code class="language-html">@if (hasApps()) {
|
|
462
|
+
<div class="flex flex-row items-center gap-8">
|
|
463
|
+
|
|
464
|
+
@if (isOpen()) {
|
|
465
|
+
<div class="flex flex-row items-center gap-6 h-10">
|
|
466
|
+
|
|
467
|
+
@for (app of appList(); track app.label) {
|
|
468
|
+
@if (app.href) {
|
|
469
|
+
<a [href]="app.href" [target]="app.target ?? '_self'" mat-stroked-button>
|
|
470
|
+
<span class="flex flex-row items-center gap-4">
|
|
471
|
+
@if (app.image) {
|
|
472
|
+
<img [alt]="app.label" [ngSrc]="app.image" height="40" width="40">
|
|
473
|
+
}
|
|
474
|
+
<span class="label grow-0">{{ app.label }}</span>
|
|
475
|
+
</span>
|
|
476
|
+
</a>
|
|
477
|
+
} @else if (app.routerLink) {
|
|
478
|
+
<a mat-stroked-button [routerLink]="app.routerLink">
|
|
479
|
+
<span class="flex flex-row items-center gap-4">
|
|
480
|
+
@if (app.image) {
|
|
481
|
+
<img [alt]="app.label" [ngSrc]="app.image" height="40" width="40">
|
|
482
|
+
}
|
|
483
|
+
<span class="label grow-0">{{ app.label }}</span>
|
|
484
|
+
</span>
|
|
485
|
+
</a>
|
|
486
|
+
} @else {
|
|
487
|
+
<button mat-stroked-button [disabled]="true">
|
|
488
|
+
<span class="flex flex-row items-center gap-4">
|
|
489
|
+
@if (app.image) {
|
|
490
|
+
<img [alt]="app.label" [ngSrc]="app.image" height="40" width="40">
|
|
491
|
+
}
|
|
492
|
+
<span class="label grow-0">{{ app.label }}</span>
|
|
493
|
+
</span>
|
|
494
|
+
</button>
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
</div>
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
<button (click)="toggle()" mat-icon-button>
|
|
502
|
+
<mat-icon svgIcon="apps"></mat-icon>
|
|
503
|
+
</button>
|
|
467
504
|
|
|
468
505
|
</div>
|
|
469
|
-
|
|
470
|
-
<button (click)="isOpen = !isOpen" mat-icon-button>
|
|
471
|
-
<mat-icon svgIcon="apps"></mat-icon>
|
|
472
|
-
</button>
|
|
473
|
-
|
|
474
|
-
</div>
|
|
506
|
+
}
|
|
475
507
|
</code></pre>
|
|
476
508
|
</div>
|
|
477
509
|
|
|
@@ -507,9 +539,9 @@ export class AppsButtonComponent implements OnInit, OnDestroy {
|
|
|
507
539
|
<script src="../js/libs/htmlparser.js"></script>
|
|
508
540
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
509
541
|
<script>
|
|
510
|
-
var COMPONENT_TEMPLATE = '<div
|
|
511
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
512
|
-
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
542
|
+
var COMPONENT_TEMPLATE = '<div>@if (hasApps()) { <div class="flex flex-row items-center gap-8"> @if (isOpen()) { <div class="flex flex-row items-center gap-6 h-10"> @for (app of appList(); track app.label) { @if (app.href) { <a [href]="app.href" [target]="app.target ?? \'_self\'" mat-stroked-button> <span class="flex flex-row items-center gap-4"> @if (app.image) { <img [alt]="app.label" [ngSrc]="app.image" height="40" width="40"> } <span class="label grow-0">{{ app.label }}</span> </span> </a> } @else if (app.routerLink) { <a mat-stroked-button [routerLink]="app.routerLink"> <span class="flex flex-row items-center gap-4"> @if (app.image) { <img [alt]="app.label" [ngSrc]="app.image" height="40" width="40"> } <span class="label grow-0">{{ app.label }}</span> </span> </a> } @else { <button mat-stroked-button [disabled]="true"> <span class="flex flex-row items-center gap-4"> @if (app.image) { <img [alt]="app.label" [ngSrc]="app.image" height="40" width="40"> } <span class="label grow-0">{{ app.label }}</span> </span> </button> } } </div> } <button (click)="toggle()" mat-icon-button> <mat-icon svgIcon="apps"></mat-icon> </button> </div>}</div>'
|
|
543
|
+
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'}];
|
|
544
|
+
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
513
545
|
var ACTUAL_COMPONENT = {'name': 'AppsButtonComponent'};
|
|
514
546
|
</script>
|
|
515
547
|
<script src="../js/tree.js"></script>
|