@rxap/layout 18.1.0-dev.0 → 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 +6 -0
- package/README.md +1 -1
- package/compodoc/changelog.html +5 -0
- package/compodoc/components/AppsButtonComponent.html +18 -6
- package/compodoc/dependencies.html +2 -2
- package/compodoc/index.html +1 -1
- package/compodoc/injectables/ExternalAppsService.html +77 -40
- package/compodoc/interfaces/ReleaseInfoModule.html +1 -1
- package/compodoc/interfaces/SettingsMenuItem.html +1 -1
- package/compodoc/js/search/search_index.js +2 -2
- package/compodoc/miscellaneous/functions.html +60 -0
- package/compodoc/miscellaneous/typealiases.html +3 -3
- package/compodoc/miscellaneous/variables.html +24 -1
- package/compodoc/properties.html +1 -1
- package/docs/assets/navigation.js +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/AppsButtonComponent.html +3 -3
- package/docs/classes/BaseLayoutComponent.html +1 -1
- package/docs/classes/DefaultHeaderComponent.html +2 -2
- package/docs/classes/ExternalAppsService.html +3 -2
- package/docs/classes/FooterComponent.html +2 -2
- package/docs/classes/FooterDirective.html +2 -2
- package/docs/classes/FooterService.html +6 -6
- package/docs/classes/HeaderComponent.html +2 -2
- package/docs/classes/HeaderDirective.html +2 -2
- package/docs/classes/HeaderService.html +6 -6
- package/docs/classes/LayoutComponent.html +2 -2
- package/docs/classes/LayoutService.html +2 -2
- package/docs/classes/LogoService.html +2 -2
- package/docs/classes/MinimalLayoutComponent.html +1 -1
- package/docs/classes/NavigationComponent.html +2 -2
- package/docs/classes/NavigationItemComponent.html +2 -2
- package/docs/classes/NavigationProgressBarComponent.html +2 -2
- package/docs/classes/NavigationService.html +3 -3
- package/docs/classes/ReleaseInfoComponent.html +2 -2
- package/docs/classes/SettingsButtonComponent.html +2 -2
- package/docs/classes/SidenavComponent.html +2 -2
- package/docs/classes/SidenavFooterDirective.html +2 -2
- package/docs/classes/SidenavHeaderDirective.html +2 -2
- package/docs/classes/SidenavToggleButtonComponent.html +2 -2
- package/docs/classes/UserProfileIconComponent.html +2 -2
- package/docs/documentation.json +1018 -859
- 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 -1
- package/docs/functions/widthDefaultHeaderComponent.html +1 -1
- package/docs/functions/withExternalApps.html +1 -0
- package/docs/functions/withFooterComponents.html +1 -1
- package/docs/functions/withHeaderComponents.html +1 -1
- package/docs/functions/withNavigationConfig.html +1 -1
- package/docs/functions/withNavigationInserts.html +1 -1
- package/docs/functions/withReleaseInfoModules.html +1 -1
- package/docs/functions/withSettingsMenuItems.html +1 -1
- package/docs/index.html +1 -1
- 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 +2 -2
- package/docs/interfaces/SettingsMenuItem.html +2 -2
- package/docs/modules.html +3 -1
- 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 -1
- 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 -1
- 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 -1
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM.html +1 -1
- package/docs/variables/RXAP_SETTINGS_MENU_ITEM_COMPONENT.html +1 -1
- package/esm2022/lib/default-header/apps-button/apps-button.component.mjs +5 -3
- package/esm2022/lib/external-apps.service.mjs +7 -5
- package/esm2022/lib/provide.mjs +9 -2
- package/esm2022/lib/tokens.mjs +2 -1
- package/esm2022/lib/types.mjs +1 -1
- package/fesm2022/rxap-layout.mjs +17 -6
- package/fesm2022/rxap-layout.mjs.map +1 -1
- package/lib/external-apps.service.d.ts +5 -4
- package/lib/provide.d.ts +2 -1
- package/lib/tokens.d.ts +1 -0
- package/lib/types.d.ts +1 -1
- package/package.json +7 -7
- package/docs/types/ExternalApps.html +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [18.1.0-dev.1](https://gitlab.com/rxap/packages/compare/@rxap/layout@18.1.0-dev.0...@rxap/layout@18.1.0-dev.1) (2024-06-25)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- support static external apps ([c005399](https://gitlab.com/rxap/packages/commit/c005399314a3d7131d4bee429fc9ce85f92d87d5))
|
|
11
|
+
|
|
6
12
|
# [18.1.0-dev.0](https://gitlab.com/rxap/packages/compare/@rxap/layout@18.0.3-dev.1...@rxap/layout@18.1.0-dev.0) (2024-06-24)
|
|
7
13
|
|
|
8
14
|
### Bug Fixes
|
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ yarn add @rxap/layout
|
|
|
19
19
|
```
|
|
20
20
|
**Install peer dependencies:**
|
|
21
21
|
```bash
|
|
22
|
-
yarn add @angular/animations@^18.0.1 @angular/cdk@^18.0.0 @angular/common@^18.0.1 @angular/core@^18.0.1 @angular/material@^18.0.0 @angular/router@^18.0.1 @rxap/browser-utilities@^1.1.4-dev.1 @rxap/config@^18.1.1-dev.
|
|
22
|
+
yarn add @angular/animations@^18.0.1 @angular/cdk@^18.0.0 @angular/common@^18.0.1 @angular/core@^18.0.1 @angular/material@^18.0.0 @angular/router@^18.0.1 @rxap/browser-utilities@^1.1.4-dev.1 @rxap/config@^18.1.1-dev.2 @rxap/environment@^18.0.3-dev.2 @rxap/material-directives@^18.0.3-dev.1 @rxap/ngx-pub-sub@^18.0.3-dev.1 @rxap/ngx-theme@^18.0.3-dev.1 @rxap/ngx-user@^18.0.3-dev.1 @rxap/pattern@^1.1.5-dev.1 @rxap/utilities@^16.2.4-dev.1 rxjs@^7.8.1
|
|
23
23
|
```
|
|
24
24
|
**Execute the init generator:**
|
|
25
25
|
```bash
|
package/compodoc/changelog.html
CHANGED
|
@@ -85,6 +85,11 @@
|
|
|
85
85
|
<h1>Change Log</h1>
|
|
86
86
|
<p>All notable changes to this project will be documented in this file.
|
|
87
87
|
See <a href="https://conventionalcommits.org">Conventional Commits</a> for commit guidelines.</p>
|
|
88
|
+
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/layout@18.1.0-dev.0...@rxap/layout@18.1.0-dev.1">18.1.0-dev.1</a> (2024-06-25)</h1>
|
|
89
|
+
<h3>Features</h3>
|
|
90
|
+
<ul>
|
|
91
|
+
<li>support static external apps (<a href="https://gitlab.com/rxap/packages/commit/c005399314a3d7131d4bee429fc9ce85f92d87d5">c005399</a>)</li>
|
|
92
|
+
</ul>
|
|
88
93
|
<h1><a href="https://gitlab.com/rxap/packages/compare/@rxap/layout@18.0.3-dev.1...@rxap/layout@18.1.0-dev.0">18.1.0-dev.0</a> (2024-06-24)</h1>
|
|
89
94
|
<h3>Bug Fixes</h3>
|
|
90
95
|
<ul>
|
|
@@ -173,6 +173,7 @@
|
|
|
173
173
|
<code>MatAnchor</code>
|
|
174
174
|
<code>MatIconButton</code>
|
|
175
175
|
<code>MatIcon</code>
|
|
176
|
+
<code>IconDirective</code>
|
|
176
177
|
</td>
|
|
177
178
|
</tr>
|
|
178
179
|
|
|
@@ -286,8 +287,8 @@
|
|
|
286
287
|
|
|
287
288
|
<tr>
|
|
288
289
|
<td class="col-md-4">
|
|
289
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
290
|
-
class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:
|
|
290
|
+
<div class="io-line">Defined in <a href="" data-line="46"
|
|
291
|
+
class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:46</a></div>
|
|
291
292
|
</td>
|
|
292
293
|
</tr>
|
|
293
294
|
|
|
@@ -329,7 +330,7 @@
|
|
|
329
330
|
</tr>
|
|
330
331
|
<tr>
|
|
331
332
|
<td class="col-md-4">
|
|
332
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
333
|
+
<div class="io-line">Defined in <a href="" data-line="43" class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:43</a></div>
|
|
333
334
|
</td>
|
|
334
335
|
</tr>
|
|
335
336
|
|
|
@@ -356,7 +357,7 @@
|
|
|
356
357
|
</tr>
|
|
357
358
|
<tr>
|
|
358
359
|
<td class="col-md-4">
|
|
359
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
360
|
+
<div class="io-line">Defined in <a href="" data-line="44" class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:44</a></div>
|
|
360
361
|
</td>
|
|
361
362
|
</tr>
|
|
362
363
|
|
|
@@ -383,7 +384,7 @@
|
|
|
383
384
|
</tr>
|
|
384
385
|
<tr>
|
|
385
386
|
<td class="col-md-4">
|
|
386
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
387
|
+
<div class="io-line">Defined in <a href="" data-line="40" class="link-to-prism">src/lib/default-header/apps-button/apps-button.component.ts:40</a></div>
|
|
387
388
|
</td>
|
|
388
389
|
</tr>
|
|
389
390
|
|
|
@@ -418,6 +419,7 @@ import {
|
|
|
418
419
|
} from '@angular/material/button';
|
|
419
420
|
import { MatIcon } from '@angular/material/icon';
|
|
420
421
|
import { RouterLink } from '@angular/router';
|
|
422
|
+
import { IconDirective } from '@rxap/material-directives/icon';
|
|
421
423
|
import { ExternalAppsService } from '../../external-apps.service';
|
|
422
424
|
|
|
423
425
|
@Component({
|
|
@@ -433,6 +435,7 @@ import { ExternalAppsService } from '../../external-apps.service';
|
|
|
433
435
|
MatAnchor,
|
|
434
436
|
MatIconButton,
|
|
435
437
|
MatIcon,
|
|
438
|
+
IconDirective,
|
|
436
439
|
],
|
|
437
440
|
})
|
|
438
441
|
export class AppsButtonComponent implements OnInit {
|
|
@@ -468,6 +471,9 @@ export class AppsButtonComponent implements OnInit {
|
|
|
468
471
|
@if (app.href) {
|
|
469
472
|
<a [href]="app.href" [target]="app.target ?? '_self'" mat-stroked-button>
|
|
470
473
|
<span class="flex flex-row items-center gap-4">
|
|
474
|
+
@if (app.icon) {
|
|
475
|
+
<mat-icon [rxapIcon]="app.icon"></mat-icon>
|
|
476
|
+
}
|
|
471
477
|
@if (app.image) {
|
|
472
478
|
<img [alt]="app.label" [ngSrc]="app.image" height="40" width="40">
|
|
473
479
|
}
|
|
@@ -477,6 +483,9 @@ export class AppsButtonComponent implements OnInit {
|
|
|
477
483
|
} @else if (app.routerLink) {
|
|
478
484
|
<a mat-stroked-button [routerLink]="app.routerLink">
|
|
479
485
|
<span class="flex flex-row items-center gap-4">
|
|
486
|
+
@if (app.icon) {
|
|
487
|
+
<mat-icon [rxapIcon]="app.icon"></mat-icon>
|
|
488
|
+
}
|
|
480
489
|
@if (app.image) {
|
|
481
490
|
<img [alt]="app.label" [ngSrc]="app.image" height="40" width="40">
|
|
482
491
|
}
|
|
@@ -486,6 +495,9 @@ export class AppsButtonComponent implements OnInit {
|
|
|
486
495
|
} @else {
|
|
487
496
|
<button mat-stroked-button [disabled]="true">
|
|
488
497
|
<span class="flex flex-row items-center gap-4">
|
|
498
|
+
@if (app.icon) {
|
|
499
|
+
<mat-icon [rxapIcon]="app.icon"></mat-icon>
|
|
500
|
+
}
|
|
489
501
|
@if (app.image) {
|
|
490
502
|
<img [alt]="app.label" [ngSrc]="app.image" height="40" width="40">
|
|
491
503
|
}
|
|
@@ -539,7 +551,7 @@ export class AppsButtonComponent implements OnInit {
|
|
|
539
551
|
<script src="../js/libs/htmlparser.js"></script>
|
|
540
552
|
<script src="../js/libs/deep-iterator.js"></script>
|
|
541
553
|
<script>
|
|
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>'
|
|
554
|
+
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.icon) { <mat-icon [rxapIcon]="app.icon"></mat-icon> } @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.icon) { <mat-icon [rxapIcon]="app.icon"></mat-icon> } @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.icon) { <mat-icon [rxapIcon]="app.icon"></mat-icon> } @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
555
|
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
556
|
var DIRECTIVES = [{'name': 'FooterDirective', 'selector': '[rxapFooter]'},{'name': 'HeaderDirective', 'selector': '[rxapHeader]'},{'name': 'SidenavFooterDirective', 'selector': '[rxapSidenavFooter]'},{'name': 'SidenavHeaderDirective', 'selector': '[rxapSidenavHeader]'}];
|
|
545
557
|
var ACTUAL_COMPONENT = {'name': 'AppsButtonComponent'};
|
|
@@ -127,9 +127,9 @@
|
|
|
127
127
|
<li>
|
|
128
128
|
<b>@rxap/browser-utilities</b> : ^1.1.4-dev.1</li>
|
|
129
129
|
<li>
|
|
130
|
-
<b>@rxap/config</b> : ^18.1.1-dev.
|
|
130
|
+
<b>@rxap/config</b> : ^18.1.1-dev.2</li>
|
|
131
131
|
<li>
|
|
132
|
-
<b>@rxap/environment</b> : ^18.0.3-dev.
|
|
132
|
+
<b>@rxap/environment</b> : ^18.0.3-dev.2</li>
|
|
133
133
|
<li>
|
|
134
134
|
<b>@rxap/material-directives</b> : ^18.0.3-dev.1</li>
|
|
135
135
|
<li>
|
package/compodoc/index.html
CHANGED
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
<h1>Installation</h1>
|
|
98
98
|
<p><strong>Add the package to your workspace:</strong></p>
|
|
99
99
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @rxap/layout</code></pre></div><p><strong>Install peer dependencies:</strong></p>
|
|
100
|
-
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @angular/animations@^18.0.1 @angular/cdk@^18.0.0 @angular/common@^18.0.1 @angular/core@^18.0.1 @angular/material@^18.0.0 @angular/router@^18.0.1 @rxap/browser-utilities@^1.1.4-dev.1 @rxap/config@^18.1.1-dev.
|
|
100
|
+
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn add @angular/animations@^18.0.1 @angular/cdk@^18.0.0 @angular/common@^18.0.1 @angular/core@^18.0.1 @angular/material@^18.0.0 @angular/router@^18.0.1 @rxap/browser-utilities@^1.1.4-dev.1 @rxap/config@^18.1.1-dev.2 @rxap/environment@^18.0.3-dev.2 @rxap/material-directives@^18.0.3-dev.1 @rxap/ngx-pub-sub@^18.0.3-dev.1 @rxap/ngx-theme@^18.0.3-dev.1 @rxap/ngx-user@^18.0.3-dev.1 @rxap/pattern@^1.1.5-dev.1 @rxap/utilities@^16.2.4-dev.1 rxjs@^7.8.1 </code></pre></div><p><strong>Execute the init generator:</strong></p>
|
|
101
101
|
<b>Example :</b><div><pre class="line-numbers"><code class="language-bash">yarn nx g @rxap/layout:init</code></pre></div><h1>Get started</h1>
|
|
102
102
|
<h2>Layout</h2>
|
|
103
103
|
<p>Create a new file <code>layout.routes.ts</code> in the <code>app</code> folder. This file will contain all child routes that should be loaded within the layout component.</p>
|
|
@@ -159,6 +159,11 @@
|
|
|
159
159
|
<span class="modifier">Readonly</span>
|
|
160
160
|
<a href="#environment" >environment</a>
|
|
161
161
|
</li>
|
|
162
|
+
<li>
|
|
163
|
+
<span class="modifier">Protected</span>
|
|
164
|
+
<span class="modifier">Readonly</span>
|
|
165
|
+
<a href="#externalApps" >externalApps</a>
|
|
166
|
+
</li>
|
|
162
167
|
<li>
|
|
163
168
|
<span class="modifier">Protected</span>
|
|
164
169
|
<span class="modifier">Readonly</span>
|
|
@@ -253,8 +258,8 @@
|
|
|
253
258
|
|
|
254
259
|
<tr>
|
|
255
260
|
<td class="col-md-4">
|
|
256
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
257
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
261
|
+
<div class="io-line">Defined in <a href="" data-line="40"
|
|
262
|
+
class="link-to-prism">src/lib/external-apps.service.ts:40</a></div>
|
|
258
263
|
</td>
|
|
259
264
|
</tr>
|
|
260
265
|
|
|
@@ -290,7 +295,7 @@
|
|
|
290
295
|
</table>
|
|
291
296
|
</div>
|
|
292
297
|
<div class="io-description">
|
|
293
|
-
<b>Returns : </b> <code><a href="../miscellaneous/typealiases.html#
|
|
298
|
+
<b>Returns : </b> <code><a href="../miscellaneous/typealiases.html#ExternalApp" target="_self" >ExternalApp | null</a></code>
|
|
294
299
|
|
|
295
300
|
</div>
|
|
296
301
|
<div class="io-description">
|
|
@@ -323,8 +328,8 @@
|
|
|
323
328
|
|
|
324
329
|
<tr>
|
|
325
330
|
<td class="col-md-4">
|
|
326
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
327
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
331
|
+
<div class="io-line">Defined in <a href="" data-line="100"
|
|
332
|
+
class="link-to-prism">src/lib/external-apps.service.ts:100</a></div>
|
|
328
333
|
</td>
|
|
329
334
|
</tr>
|
|
330
335
|
|
|
@@ -333,7 +338,7 @@
|
|
|
333
338
|
<td class="col-md-4">
|
|
334
339
|
|
|
335
340
|
<div class="io-description">
|
|
336
|
-
<b>Returns : </b> <code><a href="../miscellaneous/typealiases.html#
|
|
341
|
+
<b>Returns : </b> <code><a href="../miscellaneous/typealiases.html#ExternalApp" target="_self" >Promise<Array<ExternalApp>></a></code>
|
|
337
342
|
|
|
338
343
|
</div>
|
|
339
344
|
</td>
|
|
@@ -362,8 +367,8 @@
|
|
|
362
367
|
|
|
363
368
|
<tr>
|
|
364
369
|
<td class="col-md-4">
|
|
365
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
366
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
370
|
+
<div class="io-line">Defined in <a href="" data-line="63"
|
|
371
|
+
class="link-to-prism">src/lib/external-apps.service.ts:63</a></div>
|
|
367
372
|
</td>
|
|
368
373
|
</tr>
|
|
369
374
|
|
|
@@ -443,8 +448,8 @@
|
|
|
443
448
|
|
|
444
449
|
<tr>
|
|
445
450
|
<td class="col-md-4">
|
|
446
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
447
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
451
|
+
<div class="io-line">Defined in <a href="" data-line="82"
|
|
452
|
+
class="link-to-prism">src/lib/external-apps.service.ts:82</a></div>
|
|
448
453
|
</td>
|
|
449
454
|
</tr>
|
|
450
455
|
|
|
@@ -524,8 +529,8 @@
|
|
|
524
529
|
|
|
525
530
|
<tr>
|
|
526
531
|
<td class="col-md-4">
|
|
527
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
528
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
532
|
+
<div class="io-line">Defined in <a href="" data-line="51"
|
|
533
|
+
class="link-to-prism">src/lib/external-apps.service.ts:51</a></div>
|
|
529
534
|
</td>
|
|
530
535
|
</tr>
|
|
531
536
|
|
|
@@ -625,8 +630,8 @@
|
|
|
625
630
|
|
|
626
631
|
<tr>
|
|
627
632
|
<td class="col-md-4">
|
|
628
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
629
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
633
|
+
<div class="io-line">Defined in <a href="" data-line="74"
|
|
634
|
+
class="link-to-prism">src/lib/external-apps.service.ts:74</a></div>
|
|
630
635
|
</td>
|
|
631
636
|
</tr>
|
|
632
637
|
|
|
@@ -706,8 +711,8 @@
|
|
|
706
711
|
|
|
707
712
|
<tr>
|
|
708
713
|
<td class="col-md-4">
|
|
709
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
710
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
714
|
+
<div class="io-line">Defined in <a href="" data-line="122"
|
|
715
|
+
class="link-to-prism">src/lib/external-apps.service.ts:122</a></div>
|
|
711
716
|
</td>
|
|
712
717
|
</tr>
|
|
713
718
|
|
|
@@ -745,8 +750,8 @@
|
|
|
745
750
|
|
|
746
751
|
<tr>
|
|
747
752
|
<td class="col-md-4">
|
|
748
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
749
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
753
|
+
<div class="io-line">Defined in <a href="" data-line="36"
|
|
754
|
+
class="link-to-prism">src/lib/external-apps.service.ts:36</a></div>
|
|
750
755
|
</td>
|
|
751
756
|
</tr>
|
|
752
757
|
|
|
@@ -814,8 +819,8 @@
|
|
|
814
819
|
|
|
815
820
|
<tr>
|
|
816
821
|
<td class="col-md-4">
|
|
817
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
818
|
-
class="link-to-prism">src/lib/external-apps.service.ts:
|
|
822
|
+
<div class="io-line">Defined in <a href="" data-line="90"
|
|
823
|
+
class="link-to-prism">src/lib/external-apps.service.ts:90</a></div>
|
|
819
824
|
</td>
|
|
820
825
|
</tr>
|
|
821
826
|
|
|
@@ -894,12 +899,12 @@
|
|
|
894
899
|
</tr>
|
|
895
900
|
<tr>
|
|
896
901
|
<td class="col-md-4">
|
|
897
|
-
<i>Default value : </i><code>signal<Array<
|
|
902
|
+
<i>Default value : </i><code>signal<Array<ExternalApp>>([])</code>
|
|
898
903
|
</td>
|
|
899
904
|
</tr>
|
|
900
905
|
<tr>
|
|
901
906
|
<td class="col-md-4">
|
|
902
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
907
|
+
<div class="io-line">Defined in <a href="" data-line="34" class="link-to-prism">src/lib/external-apps.service.ts:34</a></div>
|
|
903
908
|
</td>
|
|
904
909
|
</tr>
|
|
905
910
|
|
|
@@ -927,12 +932,12 @@
|
|
|
927
932
|
</tr>
|
|
928
933
|
<tr>
|
|
929
934
|
<td class="col-md-4">
|
|
930
|
-
<i>Default value : </i><code>coerceArray(inject(RXAP_EXTERNAL_APP_FILTER, { optional: true}))</code>
|
|
935
|
+
<i>Default value : </i><code>coerceArray(inject(RXAP_EXTERNAL_APP_FILTER, { optional: true }))</code>
|
|
931
936
|
</td>
|
|
932
937
|
</tr>
|
|
933
938
|
<tr>
|
|
934
939
|
<td class="col-md-4">
|
|
935
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
940
|
+
<div class="io-line">Defined in <a href="" data-line="24" class="link-to-prism">src/lib/external-apps.service.ts:24</a></div>
|
|
936
941
|
</td>
|
|
937
942
|
</tr>
|
|
938
943
|
|
|
@@ -954,7 +959,7 @@
|
|
|
954
959
|
</tr>
|
|
955
960
|
<tr>
|
|
956
961
|
<td class="col-md-4">
|
|
957
|
-
<i>Type : </i> <code><a href="../miscellaneous/typealiases.html#
|
|
962
|
+
<i>Type : </i> <code><a href="../miscellaneous/typealiases.html#ExternalApp" target="_self" >Array<ExternalApp></a></code>
|
|
958
963
|
|
|
959
964
|
</td>
|
|
960
965
|
</tr>
|
|
@@ -965,7 +970,7 @@
|
|
|
965
970
|
</tr>
|
|
966
971
|
<tr>
|
|
967
972
|
<td class="col-md-4">
|
|
968
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
973
|
+
<div class="io-line">Defined in <a href="" data-line="28" class="link-to-prism">src/lib/external-apps.service.ts:28</a></div>
|
|
969
974
|
</td>
|
|
970
975
|
</tr>
|
|
971
976
|
|
|
@@ -992,7 +997,7 @@
|
|
|
992
997
|
</tr>
|
|
993
998
|
<tr>
|
|
994
999
|
<td class="col-md-4">
|
|
995
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1000
|
+
<div class="io-line">Defined in <a href="" data-line="25" class="link-to-prism">src/lib/external-apps.service.ts:25</a></div>
|
|
996
1001
|
</td>
|
|
997
1002
|
</tr>
|
|
998
1003
|
|
|
@@ -1019,7 +1024,34 @@
|
|
|
1019
1024
|
</tr>
|
|
1020
1025
|
<tr>
|
|
1021
1026
|
<td class="col-md-4">
|
|
1022
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1027
|
+
<div class="io-line">Defined in <a href="" data-line="27" class="link-to-prism">src/lib/external-apps.service.ts:27</a></div>
|
|
1028
|
+
</td>
|
|
1029
|
+
</tr>
|
|
1030
|
+
|
|
1031
|
+
|
|
1032
|
+
</tbody>
|
|
1033
|
+
</table>
|
|
1034
|
+
<table class="table table-sm table-bordered">
|
|
1035
|
+
<tbody>
|
|
1036
|
+
<tr>
|
|
1037
|
+
<td class="col-md-4">
|
|
1038
|
+
<a name="externalApps"></a>
|
|
1039
|
+
<span class="name">
|
|
1040
|
+
<span class="modifier">Protected</span>
|
|
1041
|
+
<span class="modifier">Readonly</span>
|
|
1042
|
+
<span ><b>externalApps</b></span>
|
|
1043
|
+
<a href="#externalApps"><span class="icon ion-ios-link"></span></a>
|
|
1044
|
+
</span>
|
|
1045
|
+
</td>
|
|
1046
|
+
</tr>
|
|
1047
|
+
<tr>
|
|
1048
|
+
<td class="col-md-4">
|
|
1049
|
+
<i>Default value : </i><code>coerceArray(inject(RXAP_EXTERNAL_APP, { optional: true }))</code>
|
|
1050
|
+
</td>
|
|
1051
|
+
</tr>
|
|
1052
|
+
<tr>
|
|
1053
|
+
<td class="col-md-4">
|
|
1054
|
+
<div class="io-line">Defined in <a href="" data-line="29" class="link-to-prism">src/lib/external-apps.service.ts:29</a></div>
|
|
1023
1055
|
</td>
|
|
1024
1056
|
</tr>
|
|
1025
1057
|
|
|
@@ -1046,7 +1078,7 @@
|
|
|
1046
1078
|
</tr>
|
|
1047
1079
|
<tr>
|
|
1048
1080
|
<td class="col-md-4">
|
|
1049
|
-
<div class="io-line">Defined in <a href="" data-line="
|
|
1081
|
+
<div class="io-line">Defined in <a href="" data-line="26" class="link-to-prism">src/lib/external-apps.service.ts:26</a></div>
|
|
1050
1082
|
</td>
|
|
1051
1083
|
</tr>
|
|
1052
1084
|
|
|
@@ -1073,28 +1105,32 @@ import {
|
|
|
1073
1105
|
coerceArray,
|
|
1074
1106
|
JoinPath,
|
|
1075
1107
|
} from '@rxap/utilities';
|
|
1076
|
-
import {
|
|
1077
|
-
|
|
1108
|
+
import {
|
|
1109
|
+
RXAP_EXTERNAL_APP,
|
|
1110
|
+
RXAP_EXTERNAL_APP_FILTER,
|
|
1111
|
+
} from './tokens';
|
|
1112
|
+
import { ExternalApp } from './types';
|
|
1078
1113
|
|
|
1079
1114
|
@Injectable()
|
|
1080
1115
|
export class ExternalAppsService {
|
|
1081
1116
|
|
|
1082
|
-
protected readonly appFilterList = coerceArray(inject(RXAP_EXTERNAL_APP_FILTER, { optional: true}));
|
|
1117
|
+
protected readonly appFilterList = coerceArray(inject(RXAP_EXTERNAL_APP_FILTER, { optional: true }));
|
|
1083
1118
|
protected readonly config = inject(ConfigService);
|
|
1084
1119
|
protected readonly localeId = inject(LOCALE_ID);
|
|
1085
1120
|
protected readonly environment = inject(RXAP_ENVIRONMENT);
|
|
1086
|
-
protected readonly apps: Array<
|
|
1121
|
+
protected readonly apps: Array<ExternalApp> = this.config.get('navigation.apps', []);
|
|
1122
|
+
protected readonly externalApps = coerceArray(inject(RXAP_EXTERNAL_APP, { optional: true }));
|
|
1087
1123
|
|
|
1088
1124
|
/**
|
|
1089
1125
|
* The list of active apps that is processed by the getAppList method
|
|
1090
1126
|
*/
|
|
1091
|
-
public readonly activeAppList = signal<Array<
|
|
1127
|
+
public readonly activeAppList = signal<Array<ExternalApp>>([]);
|
|
1092
1128
|
|
|
1093
1129
|
public hasApp(appId: string): boolean {
|
|
1094
1130
|
return this.apps.some(app => app.id === appId);
|
|
1095
1131
|
}
|
|
1096
1132
|
|
|
1097
|
-
public getApp(appId: string):
|
|
1133
|
+
public getApp(appId: string): ExternalApp | null {
|
|
1098
1134
|
if (!this.hasApp(appId)) {
|
|
1099
1135
|
return null;
|
|
1100
1136
|
}
|
|
@@ -1125,7 +1161,7 @@ export class ExternalAppsService {
|
|
|
1125
1161
|
return null;
|
|
1126
1162
|
}
|
|
1127
1163
|
|
|
1128
|
-
return [...app.routerLink, path];
|
|
1164
|
+
return [ ...app.routerLink, path ];
|
|
1129
1165
|
}
|
|
1130
1166
|
|
|
1131
1167
|
public getAppUrlOrThrow(appId: string, path: string): string {
|
|
@@ -1154,10 +1190,11 @@ export class ExternalAppsService {
|
|
|
1154
1190
|
|
|
1155
1191
|
}
|
|
1156
1192
|
|
|
1157
|
-
public async getAppList(): Promise<Array<
|
|
1158
|
-
let appList:
|
|
1159
|
-
.
|
|
1160
|
-
.
|
|
1193
|
+
public async getAppList(): Promise<Array<ExternalApp>> {
|
|
1194
|
+
let appList: ExternalApp[] = [
|
|
1195
|
+
...this.externalApps,
|
|
1196
|
+
...this.apps,
|
|
1197
|
+
].filter(app => !app.hidden)
|
|
1161
1198
|
.map(app => structuredClone(app));
|
|
1162
1199
|
|
|
1163
1200
|
appList.forEach(app => {
|
|
@@ -285,7 +285,7 @@ import { IconConfig } from '@rxap/utilities';
|
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
|
|
288
|
-
export type
|
|
288
|
+
export type ExternalApp = AppsNavigationConfig;
|
|
289
289
|
export type ExtractUsernameFromProfileFn<T = unknown> = (profile: T) => string | null;
|
|
290
290
|
export interface ReleaseInfoModule {
|
|
291
291
|
name: string;
|
|
@@ -285,7 +285,7 @@ import { IconConfig } from '@rxap/utilities';
|
|
|
285
285
|
|
|
286
286
|
|
|
287
287
|
|
|
288
|
-
export type
|
|
288
|
+
export type ExternalApp = AppsNavigationConfig;
|
|
289
289
|
export type ExtractUsernameFromProfileFn<T = unknown> = (profile: T) => string | null;
|
|
290
290
|
export interface ReleaseInfoModule {
|
|
291
291
|
name: string;
|