@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
|
@@ -161,25 +161,9 @@
|
|
|
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>
|
|
167
|
-
<code>MatButtonModule</code>
|
|
168
|
-
<code>MatMenuModule</code>
|
|
169
|
-
<code>MatIconModule</code>
|
|
170
|
-
<code>MatFormFieldModule</code>
|
|
171
|
-
<code>StopPropagationDirective</code>
|
|
172
|
-
<code>MatSelectModule</code>
|
|
173
|
-
<code>FormsModule</code>
|
|
174
|
-
<code>MatOptionModule</code>
|
|
175
|
-
<code>DataSourceCollectionDirective</code>
|
|
176
|
-
<code>MatSlideToggleModule</code>
|
|
177
|
-
<code>AsyncPipe</code>
|
|
178
|
-
<code><a href="../components/NavigationProgressBarComponent.html" target="_self" >NavigationProgressBarComponent</a></code>
|
|
179
|
-
<code><a href="../components/UserProfileIconComponent.html" target="_self" >UserProfileIconComponent</a></code>
|
|
180
|
-
<code><a href="../components/AppsButtonComponent.html" target="_self" >AppsButtonComponent</a></code>
|
|
181
|
-
<code><a href="../components/SettingsButtonComponent.html" target="_self" >SettingsButtonComponent</a></code>
|
|
182
|
-
<code><a href="../components/SidenavToggleButtonComponent.html" target="_self" >SidenavToggleButtonComponent</a></code>
|
|
164
|
+
<code>MatToolbar</code>
|
|
165
|
+
<code>MatToolbarRow</code>
|
|
166
|
+
<code>CdkPortalOutlet</code>
|
|
183
167
|
</td>
|
|
184
168
|
</tr>
|
|
185
169
|
|
|
@@ -221,29 +205,17 @@
|
|
|
221
205
|
<li>
|
|
222
206
|
<span class="modifier">Public</span>
|
|
223
207
|
<span class="modifier">Readonly</span>
|
|
224
|
-
<a href="#
|
|
225
|
-
</li>
|
|
226
|
-
<li>
|
|
227
|
-
<span class="modifier"></span>
|
|
228
|
-
<span class="modifier"></span>
|
|
229
|
-
<span class="modifier">Public</span>
|
|
230
|
-
<a href="#headerComponent" >headerComponent</a>
|
|
231
|
-
</li>
|
|
232
|
-
<li>
|
|
233
|
-
<span class="modifier"></span>
|
|
234
|
-
<span class="modifier">Public</span>
|
|
235
|
-
<span class="modifier">Readonly</span>
|
|
236
|
-
<a href="#headerComponentService" >headerComponentService</a>
|
|
208
|
+
<a href="#color" >color</a>
|
|
237
209
|
</li>
|
|
238
210
|
<li>
|
|
239
211
|
<span class="modifier">Public</span>
|
|
240
212
|
<span class="modifier">Readonly</span>
|
|
241
|
-
<a href="#
|
|
213
|
+
<a href="#hasPortals" >hasPortals</a>
|
|
242
214
|
</li>
|
|
243
215
|
<li>
|
|
244
216
|
<span class="modifier">Public</span>
|
|
245
217
|
<span class="modifier">Readonly</span>
|
|
246
|
-
<a href="#
|
|
218
|
+
<a href="#portals" >portals</a>
|
|
247
219
|
</li>
|
|
248
220
|
</ul>
|
|
249
221
|
</td>
|
|
@@ -272,78 +244,6 @@
|
|
|
272
244
|
</table>
|
|
273
245
|
</section>
|
|
274
246
|
|
|
275
|
-
<section data-compodoc="block-constructor">
|
|
276
|
-
<h3 id="constructor">Constructor</h3>
|
|
277
|
-
<table class="table table-sm table-bordered">
|
|
278
|
-
<tbody>
|
|
279
|
-
<tr>
|
|
280
|
-
<td class="col-md-4">
|
|
281
|
-
<code>constructor(headerComponentService: HeaderService, layoutComponentService: <a href="../injectables/LayoutComponentService.html" target="_self">LayoutComponentService</a>, headerComponent: <a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank">any</a>)</code>
|
|
282
|
-
</td>
|
|
283
|
-
</tr>
|
|
284
|
-
<tr>
|
|
285
|
-
<td class="col-md-4">
|
|
286
|
-
<div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/lib/header/header.component.ts:71</a></div>
|
|
287
|
-
</td>
|
|
288
|
-
</tr>
|
|
289
|
-
|
|
290
|
-
<tr>
|
|
291
|
-
<td class="col-md-4">
|
|
292
|
-
<div>
|
|
293
|
-
<b>Parameters :</b>
|
|
294
|
-
<table class="params">
|
|
295
|
-
<thead>
|
|
296
|
-
<tr>
|
|
297
|
-
<td>Name</td>
|
|
298
|
-
<td>Type</td>
|
|
299
|
-
<td>Optional</td>
|
|
300
|
-
</tr>
|
|
301
|
-
</thead>
|
|
302
|
-
<tbody>
|
|
303
|
-
<tr>
|
|
304
|
-
<td>headerComponentService</td>
|
|
305
|
-
|
|
306
|
-
<td>
|
|
307
|
-
<code>HeaderService</code>
|
|
308
|
-
</td>
|
|
309
|
-
|
|
310
|
-
<td>
|
|
311
|
-
No
|
|
312
|
-
</td>
|
|
313
|
-
|
|
314
|
-
</tr>
|
|
315
|
-
<tr>
|
|
316
|
-
<td>layoutComponentService</td>
|
|
317
|
-
|
|
318
|
-
<td>
|
|
319
|
-
<code><a href="../injectables/LayoutComponentService.html" target="_self" >LayoutComponentService</a></code>
|
|
320
|
-
</td>
|
|
321
|
-
|
|
322
|
-
<td>
|
|
323
|
-
No
|
|
324
|
-
</td>
|
|
325
|
-
|
|
326
|
-
</tr>
|
|
327
|
-
<tr>
|
|
328
|
-
<td>headerComponent</td>
|
|
329
|
-
|
|
330
|
-
<td>
|
|
331
|
-
<code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
332
|
-
</td>
|
|
333
|
-
|
|
334
|
-
<td>
|
|
335
|
-
No
|
|
336
|
-
</td>
|
|
337
|
-
|
|
338
|
-
</tr>
|
|
339
|
-
</tbody>
|
|
340
|
-
</table>
|
|
341
|
-
</div>
|
|
342
|
-
</td>
|
|
343
|
-
</tr>
|
|
344
|
-
</tbody>
|
|
345
|
-
</table>
|
|
346
|
-
</section>
|
|
347
247
|
|
|
348
248
|
<section data-compodoc="block-inputs">
|
|
349
249
|
<h3 id="inputs">Inputs</h3>
|
|
@@ -354,21 +254,10 @@
|
|
|
354
254
|
<a name="color"></a>
|
|
355
255
|
<b>color</b>
|
|
356
256
|
</td>
|
|
357
|
-
</tr>
|
|
358
|
-
<tr>
|
|
359
|
-
<td class="col-md-4">
|
|
360
|
-
<i>Type : </i> <code>ThemePalette</code>
|
|
361
|
-
|
|
362
|
-
</td>
|
|
363
|
-
</tr>
|
|
364
|
-
<tr>
|
|
365
|
-
<td class="col-md-4">
|
|
366
|
-
<i>Default value : </i><code>undefined</code>
|
|
367
|
-
</td>
|
|
368
257
|
</tr>
|
|
369
258
|
<tr>
|
|
370
259
|
<td class="col-md-2" colspan="2">
|
|
371
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
260
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/header/header.component.ts:30</a></div>
|
|
372
261
|
</td>
|
|
373
262
|
</tr>
|
|
374
263
|
</tbody>
|
|
@@ -387,24 +276,18 @@
|
|
|
387
276
|
<tbody>
|
|
388
277
|
<tr>
|
|
389
278
|
<td class="col-md-4">
|
|
390
|
-
<a name="
|
|
279
|
+
<a name="color"></a>
|
|
391
280
|
<span class="name">
|
|
392
281
|
<span class="modifier">Public</span>
|
|
393
282
|
<span class="modifier">Readonly</span>
|
|
394
|
-
<span ><b>
|
|
395
|
-
<a href="#
|
|
283
|
+
<span ><b>color</b></span>
|
|
284
|
+
<a href="#color"><span class="icon ion-ios-link"></span></a>
|
|
396
285
|
</span>
|
|
397
286
|
</td>
|
|
398
287
|
</tr>
|
|
399
|
-
<tr>
|
|
400
|
-
<td class="col-md-4">
|
|
401
|
-
<i>Type : </i> <code>Signal<boolean></code>
|
|
402
|
-
|
|
403
|
-
</td>
|
|
404
|
-
</tr>
|
|
405
288
|
<tr>
|
|
406
289
|
<td class="col-md-4">
|
|
407
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
290
|
+
<div class="io-line">Defined in <a href="" data-line="30" class="link-to-prism">src/lib/header/header.component.ts:30</a></div>
|
|
408
291
|
</td>
|
|
409
292
|
</tr>
|
|
410
293
|
|
|
@@ -415,72 +298,23 @@
|
|
|
415
298
|
<tbody>
|
|
416
299
|
<tr>
|
|
417
300
|
<td class="col-md-4">
|
|
418
|
-
<a name="
|
|
301
|
+
<a name="hasPortals"></a>
|
|
419
302
|
<span class="name">
|
|
420
|
-
<span class="modifier"></span>
|
|
421
|
-
<span class="modifier"></span>
|
|
422
|
-
<span class="modifier">Public</span>
|
|
423
|
-
<span ><b>headerComponent</b></span>
|
|
424
|
-
<a href="#headerComponent"><span class="icon ion-ios-link"></span></a>
|
|
425
|
-
</span>
|
|
426
|
-
</td>
|
|
427
|
-
</tr>
|
|
428
|
-
<tr>
|
|
429
|
-
<td class="col-md-4">
|
|
430
|
-
<i>Type : </i> <code><a href="https://www.typescriptlang.org/docs/handbook/basic-types.html" target="_blank" >any</a></code>
|
|
431
|
-
|
|
432
|
-
</td>
|
|
433
|
-
</tr>
|
|
434
|
-
<tr>
|
|
435
|
-
<td class="col-md-4">
|
|
436
|
-
<b>Decorators : </b>
|
|
437
|
-
<br />
|
|
438
|
-
<code>
|
|
439
|
-
@Optional()<br />@Inject(RXAP_HEADER_COMPONENT)<br />
|
|
440
|
-
</code>
|
|
441
|
-
</td>
|
|
442
|
-
</tr>
|
|
443
|
-
<tr>
|
|
444
|
-
<td class="col-md-4">
|
|
445
|
-
<div class="io-line">Defined in <a href="" data-line="77" class="link-to-prism">src/lib/header/header.component.ts:77</a></div>
|
|
446
|
-
</td>
|
|
447
|
-
</tr>
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
</tbody>
|
|
451
|
-
</table>
|
|
452
|
-
<table class="table table-sm table-bordered">
|
|
453
|
-
<tbody>
|
|
454
|
-
<tr>
|
|
455
|
-
<td class="col-md-4">
|
|
456
|
-
<a name="headerComponentService"></a>
|
|
457
|
-
<span class="name">
|
|
458
|
-
<span class="modifier"></span>
|
|
459
303
|
<span class="modifier">Public</span>
|
|
460
304
|
<span class="modifier">Readonly</span>
|
|
461
|
-
<span ><b>
|
|
462
|
-
<a href="#
|
|
305
|
+
<span ><b>hasPortals</b></span>
|
|
306
|
+
<a href="#hasPortals"><span class="icon ion-ios-link"></span></a>
|
|
463
307
|
</span>
|
|
464
308
|
</td>
|
|
465
309
|
</tr>
|
|
466
310
|
<tr>
|
|
467
311
|
<td class="col-md-4">
|
|
468
|
-
<i>
|
|
469
|
-
|
|
470
|
-
</td>
|
|
471
|
-
</tr>
|
|
472
|
-
<tr>
|
|
473
|
-
<td class="col-md-4">
|
|
474
|
-
<b>Decorators : </b>
|
|
475
|
-
<br />
|
|
476
|
-
<code>
|
|
477
|
-
@Inject(HeaderService)<br />
|
|
478
|
-
</code>
|
|
312
|
+
<i>Default value : </i><code>computed(() => this.portals().length > 0)</code>
|
|
479
313
|
</td>
|
|
480
314
|
</tr>
|
|
481
315
|
<tr>
|
|
482
316
|
<td class="col-md-4">
|
|
483
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
317
|
+
<div class="io-line">Defined in <a href="" data-line="35" class="link-to-prism">src/lib/header/header.component.ts:35</a></div>
|
|
484
318
|
</td>
|
|
485
319
|
</tr>
|
|
486
320
|
|
|
@@ -491,52 +325,23 @@
|
|
|
491
325
|
<tbody>
|
|
492
326
|
<tr>
|
|
493
327
|
<td class="col-md-4">
|
|
494
|
-
<a name="
|
|
328
|
+
<a name="portals"></a>
|
|
495
329
|
<span class="name">
|
|
496
330
|
<span class="modifier">Public</span>
|
|
497
331
|
<span class="modifier">Readonly</span>
|
|
498
|
-
<span ><b>
|
|
499
|
-
<a href="#
|
|
332
|
+
<span ><b>portals</b></span>
|
|
333
|
+
<a href="#portals"><span class="icon ion-ios-link"></span></a>
|
|
500
334
|
</span>
|
|
501
335
|
</td>
|
|
502
336
|
</tr>
|
|
503
337
|
<tr>
|
|
504
338
|
<td class="col-md-4">
|
|
505
|
-
<i>
|
|
506
|
-
|
|
339
|
+
<i>Default value : </i><code>computed(() => this.headerService.portals())</code>
|
|
507
340
|
</td>
|
|
508
341
|
</tr>
|
|
509
342
|
<tr>
|
|
510
343
|
<td class="col-md-4">
|
|
511
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
512
|
-
</td>
|
|
513
|
-
</tr>
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
</tbody>
|
|
517
|
-
</table>
|
|
518
|
-
<table class="table table-sm table-bordered">
|
|
519
|
-
<tbody>
|
|
520
|
-
<tr>
|
|
521
|
-
<td class="col-md-4">
|
|
522
|
-
<a name="opened"></a>
|
|
523
|
-
<span class="name">
|
|
524
|
-
<span class="modifier">Public</span>
|
|
525
|
-
<span class="modifier">Readonly</span>
|
|
526
|
-
<span ><b>opened</b></span>
|
|
527
|
-
<a href="#opened"><span class="icon ion-ios-link"></span></a>
|
|
528
|
-
</span>
|
|
529
|
-
</td>
|
|
530
|
-
</tr>
|
|
531
|
-
<tr>
|
|
532
|
-
<td class="col-md-4">
|
|
533
|
-
<i>Type : </i> <code>Signal<boolean></code>
|
|
534
|
-
|
|
535
|
-
</td>
|
|
536
|
-
</tr>
|
|
537
|
-
<tr>
|
|
538
|
-
<td class="col-md-4">
|
|
539
|
-
<div class="io-line">Defined in <a href="" data-line="71" class="link-to-prism">src/lib/header/header.component.ts:71</a></div>
|
|
344
|
+
<div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/header/header.component.ts:34</a></div>
|
|
540
345
|
</td>
|
|
541
346
|
</tr>
|
|
542
347
|
|
|
@@ -549,41 +354,20 @@
|
|
|
549
354
|
|
|
550
355
|
|
|
551
356
|
<div class="tab-pane fade tab-source-code" id="source">
|
|
552
|
-
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import {
|
|
553
|
-
AsyncPipe,
|
|
554
|
-
NgClass,
|
|
555
|
-
NgIf,
|
|
556
|
-
} from '@angular/common';
|
|
357
|
+
<pre class="line-numbers compodoc-sourcecode"><code class="language-typescript">import { CdkPortalOutlet } from '@angular/cdk/portal';
|
|
557
358
|
import {
|
|
558
359
|
ChangeDetectionStrategy,
|
|
559
360
|
Component,
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
Signal,
|
|
361
|
+
computed,
|
|
362
|
+
inject,
|
|
363
|
+
input,
|
|
564
364
|
} from '@angular/core';
|
|
565
|
-
import {
|
|
566
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
365
|
+
import { ThemePalette } from '@angular/material/core';
|
|
567
366
|
import {
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
} from '@angular/material/
|
|
571
|
-
import {
|
|
572
|
-
import { MatIconModule } from '@angular/material/icon';
|
|
573
|
-
import { MatMenuModule } from '@angular/material/menu';
|
|
574
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
575
|
-
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
|
576
|
-
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
577
|
-
import { DataSourceCollectionDirective } from '@rxap/data-source/directive';
|
|
578
|
-
import { StopPropagationDirective } from '@rxap/directives';
|
|
579
|
-
import { HeaderService } from '@rxap/services';
|
|
580
|
-
import { LayoutComponentService } from '../layout/layout.component.service';
|
|
581
|
-
import { RXAP_HEADER_COMPONENT } from '../tokens';
|
|
582
|
-
import { AppsButtonComponent } from './apps-button/apps-button.component';
|
|
583
|
-
import { NavigationProgressBarComponent } from './navigation-progress-bar/navigation-progress-bar.component';
|
|
584
|
-
import { SettingsButtonComponent } from './settings-button/settings-button.component';
|
|
585
|
-
import { SidenavToggleButtonComponent } from './sidenav-toggle-button/sidenav-toggle-button.component';
|
|
586
|
-
import { UserProfileIconComponent } from './user-profile-icon/user-profile-icon.component';
|
|
367
|
+
MatToolbar,
|
|
368
|
+
MatToolbarRow,
|
|
369
|
+
} from '@angular/material/toolbar';
|
|
370
|
+
import { HeaderService } from '../header.service';
|
|
587
371
|
|
|
588
372
|
@Component({
|
|
589
373
|
selector: 'rxap-header',
|
|
@@ -592,63 +376,34 @@ import { UserProfileIconComponent } from './user-profile-icon/user-profile-
|
|
|
592
376
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
593
377
|
standalone: true,
|
|
594
378
|
imports: [
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
MatButtonModule,
|
|
599
|
-
MatMenuModule,
|
|
600
|
-
MatIconModule,
|
|
601
|
-
MatFormFieldModule,
|
|
602
|
-
StopPropagationDirective,
|
|
603
|
-
MatSelectModule,
|
|
604
|
-
FormsModule,
|
|
605
|
-
MatOptionModule,
|
|
606
|
-
DataSourceCollectionDirective,
|
|
607
|
-
MatSlideToggleModule,
|
|
608
|
-
AsyncPipe,
|
|
609
|
-
NavigationProgressBarComponent,
|
|
610
|
-
UserProfileIconComponent,
|
|
611
|
-
AppsButtonComponent,
|
|
612
|
-
SettingsButtonComponent,
|
|
613
|
-
SidenavToggleButtonComponent,
|
|
379
|
+
MatToolbar,
|
|
380
|
+
MatToolbarRow,
|
|
381
|
+
CdkPortalOutlet,
|
|
614
382
|
],
|
|
615
383
|
})
|
|
616
384
|
export class HeaderComponent {
|
|
617
385
|
|
|
618
|
-
|
|
619
|
-
public color: ThemePalette = undefined;
|
|
386
|
+
public readonly color = input<ThemePalette>();
|
|
620
387
|
|
|
621
|
-
|
|
622
|
-
public readonly opened: Signal<boolean>;
|
|
388
|
+
private readonly headerService = inject(HeaderService);
|
|
623
389
|
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
public readonly headerComponentService: HeaderService,
|
|
627
|
-
public readonly layoutComponentService: LayoutComponentService,
|
|
628
|
-
@Optional() @Inject(RXAP_HEADER_COMPONENT) public headerComponent: any,
|
|
629
|
-
) {
|
|
630
|
-
this.collapsable = layoutComponentService.collapsable;
|
|
631
|
-
this.opened = layoutComponentService.opened;
|
|
632
|
-
}
|
|
390
|
+
public readonly portals = computed(() => this.headerService.portals());
|
|
391
|
+
public readonly hasPortals = computed(() => this.portals().length > 0);
|
|
633
392
|
|
|
634
393
|
}
|
|
635
394
|
</code></pre>
|
|
636
395
|
</div>
|
|
637
396
|
|
|
638
397
|
<div class="tab-pane fade " id="templateData">
|
|
639
|
-
<pre class="line-numbers"><code class="language-html"
|
|
640
|
-
<
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
</div>
|
|
649
|
-
</mat-toolbar>
|
|
650
|
-
|
|
651
|
-
<rxap-navigation-progress-bar></rxap-navigation-progress-bar>
|
|
398
|
+
<pre class="line-numbers"><code class="language-html">@if (hasPortals()) {
|
|
399
|
+
<mat-toolbar [color]="color()" class="mat-elevation-z1">
|
|
400
|
+
@for (portal of portals(); track portal) {
|
|
401
|
+
<mat-toolbar-row>
|
|
402
|
+
<ng-template [cdkPortalOutlet]="portal"></ng-template>
|
|
403
|
+
</mat-toolbar-row>
|
|
404
|
+
}
|
|
405
|
+
</mat-toolbar>
|
|
406
|
+
}
|
|
652
407
|
</code></pre>
|
|
653
408
|
</div>
|
|
654
409
|
|
|
@@ -684,9 +439,9 @@ export class HeaderComponent {
|
|
|
684
439
|
<script src="../js/libs/htmlparser.js"></script>
|
|
685
440
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
686
441
|
<script>
|
|
687
|
-
var COMPONENT_TEMPLATE = '<div
|
|
688
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
689
|
-
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
442
|
+
var COMPONENT_TEMPLATE = '<div>@if (hasPortals()) { <mat-toolbar [color]="color()" class="mat-elevation-z1"> @for (portal of portals(); track portal) { <mat-toolbar-row> <ng-template [cdkPortalOutlet]="portal"></ng-template> </mat-toolbar-row> } </mat-toolbar>}</div>'
|
|
443
|
+
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'}];
|
|
444
|
+
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
690
445
|
var ACTUAL_COMPONENT = {'name': 'HeaderComponent'};
|
|
691
446
|
</script>
|
|
692
447
|
<script src="../js/tree.js"></script>
|
|
@@ -225,54 +225,6 @@
|
|
|
225
225
|
</table>
|
|
226
226
|
</section>
|
|
227
227
|
|
|
228
|
-
<section data-compodoc="block-constructor">
|
|
229
|
-
<h3 id="constructor">Constructor</h3>
|
|
230
|
-
<table class="table table-sm table-bordered">
|
|
231
|
-
<tbody>
|
|
232
|
-
<tr>
|
|
233
|
-
<td class="col-md-4">
|
|
234
|
-
<code>constructor(language: LanguageSelectorService)</code>
|
|
235
|
-
</td>
|
|
236
|
-
</tr>
|
|
237
|
-
<tr>
|
|
238
|
-
<td class="col-md-4">
|
|
239
|
-
<div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/header/language-selector/language-selector.component.ts:34</a></div>
|
|
240
|
-
</td>
|
|
241
|
-
</tr>
|
|
242
|
-
|
|
243
|
-
<tr>
|
|
244
|
-
<td class="col-md-4">
|
|
245
|
-
<div>
|
|
246
|
-
<b>Parameters :</b>
|
|
247
|
-
<table class="params">
|
|
248
|
-
<thead>
|
|
249
|
-
<tr>
|
|
250
|
-
<td>Name</td>
|
|
251
|
-
<td>Type</td>
|
|
252
|
-
<td>Optional</td>
|
|
253
|
-
</tr>
|
|
254
|
-
</thead>
|
|
255
|
-
<tbody>
|
|
256
|
-
<tr>
|
|
257
|
-
<td>language</td>
|
|
258
|
-
|
|
259
|
-
<td>
|
|
260
|
-
<code>LanguageSelectorService</code>
|
|
261
|
-
</td>
|
|
262
|
-
|
|
263
|
-
<td>
|
|
264
|
-
No
|
|
265
|
-
</td>
|
|
266
|
-
|
|
267
|
-
</tr>
|
|
268
|
-
</tbody>
|
|
269
|
-
</table>
|
|
270
|
-
</div>
|
|
271
|
-
</td>
|
|
272
|
-
</tr>
|
|
273
|
-
</tbody>
|
|
274
|
-
</table>
|
|
275
|
-
</section>
|
|
276
228
|
|
|
277
229
|
|
|
278
230
|
|
|
@@ -299,13 +251,12 @@
|
|
|
299
251
|
</tr>
|
|
300
252
|
<tr>
|
|
301
253
|
<td class="col-md-4">
|
|
302
|
-
<i>
|
|
303
|
-
|
|
254
|
+
<i>Default value : </i><code>inject(LanguageSelectorService)</code>
|
|
304
255
|
</td>
|
|
305
256
|
</tr>
|
|
306
257
|
<tr>
|
|
307
258
|
<td class="col-md-4">
|
|
308
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
259
|
+
<div class="io-line">Defined in <a href="" data-line="37" class="link-to-prism">src/lib/header/language-selector/language-selector.component.ts:37</a></div>
|
|
309
260
|
</td>
|
|
310
261
|
</tr>
|
|
311
262
|
|
|
@@ -326,6 +277,7 @@
|
|
|
326
277
|
import {
|
|
327
278
|
ChangeDetectionStrategy,
|
|
328
279
|
Component,
|
|
280
|
+
inject,
|
|
329
281
|
} from '@angular/core';
|
|
330
282
|
import { FormsModule } from '@angular/forms';
|
|
331
283
|
import { MatOptionModule } from '@angular/material/core';
|
|
@@ -352,8 +304,8 @@ import { LanguageSelectorService } from '@rxap/ngx-localize';
|
|
|
352
304
|
],
|
|
353
305
|
})
|
|
354
306
|
export class LanguageSelectorComponent {
|
|
355
|
-
|
|
356
|
-
|
|
307
|
+
|
|
308
|
+
public readonly language = inject(LanguageSelectorService);
|
|
357
309
|
|
|
358
310
|
}
|
|
359
311
|
</code></pre>
|
|
@@ -430,7 +382,7 @@ export class LanguageSelectorComponent {
|
|
|
430
382
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
431
383
|
<script>
|
|
432
384
|
var COMPONENT_TEMPLATE = '<div><ng-template [ngIf]="(language.languages | keyvalue).length"> <div> <mat-form-field appearance="outline" class="language-selector" rxapStopPropagation> <mat-label i18n>Select Language</mat-label> <mat-select (ngModelChange)="language.setLanguage($event)" [ngModel]="language.selectedLanguage"> <mat-option *ngFor="let item of language.languages | keyvalue" [value]="item.key">{{item.value}}</mat-option> </mat-select> </mat-form-field> </div></ng-template></div>'
|
|
433
|
-
var COMPONENTS = [{'name': 'AppsButtonComponent', 'selector': 'rxap-apps-button'},{'name': '
|
|
385
|
+
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'}];
|
|
434
386
|
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
435
387
|
var ACTUAL_COMPONENT = {'name': 'LanguageSelectorComponent'};
|
|
436
388
|
</script>
|