aril 0.0.24 → 0.0.26
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/boot/host/src/bootstrap.d.ts +2 -1
- package/boot/mfe/src/bootstrap.d.ts +2 -1
- package/esm2022/boot/host/index.mjs +1 -1
- package/esm2022/boot/host/src/app.component.mjs +1 -1
- package/esm2022/boot/host/src/bootstrap.mjs +14 -6
- package/esm2022/boot/host/src/services/custom-manifest.mjs +1 -1
- package/esm2022/boot/host/src/services/microFrontEnd.service.mjs +1 -1
- package/esm2022/boot/host/src/services/plugin-init.token.mjs +1 -1
- package/esm2022/boot/host/src/services/showdowDOMWrapper.mjs +1 -1
- package/esm2022/boot/index.mjs +1 -1
- package/esm2022/boot/mfe/index.mjs +1 -1
- package/esm2022/boot/mfe/src/app.component.mjs +13 -13
- package/esm2022/boot/mfe/src/bootstrap.mjs +13 -5
- package/esm2022/http/lib/enums.mjs +2 -1
- package/esm2022/http/lib/interfaces.mjs +1 -2
- package/esm2022/http/src/httpClient.mjs +1 -1
- package/esm2022/http/src/serviceBase.mjs +8 -5
- package/esm2022/http/src/serviceStateMethods.mjs +1 -2
- package/esm2022/i18n/src/file-url-token.mjs +1 -1
- package/esm2022/i18n/src/i18n.module.mjs +1 -1
- package/esm2022/i18n/src/loader.mjs +2 -2
- package/esm2022/i18n/src/provideI18n.mjs +1 -1
- package/esm2022/i18n/src/provideScope.mjs +1 -1
- package/esm2022/keycloak/aril-keycloak.mjs +5 -0
- package/esm2022/keycloak/index.mjs +3 -0
- package/esm2022/keycloak/src/auth.interceptor.mjs +13 -0
- package/esm2022/keycloak/src/keycloak.manager.mjs +59 -0
- package/esm2022/public-api.mjs +1 -1
- package/esm2022/theme/index.mjs +1 -1
- package/esm2022/theme/layout/app/config/app.config.component.mjs +4 -4
- package/esm2022/theme/layout/app/layout/app.layout.component.mjs +5 -5
- package/esm2022/theme/layout/app/layout/mfe.layout.component.mjs +21 -21
- package/esm2022/theme/layout/app/menu/app.menu.component.mjs +4 -4
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +2 -2
- package/esm2022/theme/layout/app/sidebar/app.sidebar.component.mjs +2 -2
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +12 -9
- package/esm2022/theme/layout/service/app.layout.service.mjs +1 -1
- package/esm2022/theme/layout/service/app.menu.service.mjs +1 -1
- package/esm2022/ui/button/src/button.component.mjs +2 -2
- package/esm2022/ui/calendar/src/calendar.component.mjs +4 -4
- package/esm2022/ui/field/src/field.component.mjs +5 -5
- package/esm2022/ui/fileUpload/src/file-upload.component.mjs +3 -3
- package/esm2022/ui/form/index.mjs +2 -2
- package/esm2022/ui/form/src/form-submit-button.component.mjs +2 -2
- package/esm2022/ui/form/src/form.component.mjs +1 -1
- package/esm2022/ui/index.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-error-message.directive.mjs +1 -1
- package/esm2022/ui/lib/src/form/form-field-builder.mjs +1 -1
- package/esm2022/ui/lib/src/grid/flex-grid.directive.mjs +1 -1
- package/esm2022/ui/lib/src/input/dx-input-error-message.pipe.mjs +1 -1
- package/esm2022/ui/lib/src/input/input-error-message.pipe.mjs +1 -1
- package/esm2022/ui/lib/src/input/value-accessor.directive.mjs +1 -1
- package/esm2022/ui/mask/src/mask.component.mjs +2 -2
- package/esm2022/ui/number/src/number.component.mjs +2 -2
- package/esm2022/ui/overlayPanel/src/overlay-panel.component.mjs +2 -2
- package/esm2022/ui/password/src/password.component.mjs +2 -2
- package/esm2022/ui/radioButton/src/radio-button.component.mjs +1 -1
- package/esm2022/ui/selectBox/src/select-box.component.mjs +4 -4
- package/esm2022/ui/switch/src/switch.component.mjs +2 -2
- package/esm2022/ui/table/index.mjs +3 -3
- package/esm2022/ui/table/src/table-column.component.mjs +1 -1
- package/esm2022/ui/table/src/table.component.mjs +2 -2
- package/esm2022/ui/tagBox/src/tag-box.component.mjs +1 -1
- package/esm2022/ui/text/src/text.component.mjs +2 -2
- package/esm2022/ui/textArea/src/text-area.component.mjs +3 -3
- package/esm2022/ui/tree/src/tree.component.mjs +5 -5
- package/esm2022/ui/treeTable/src/tree-table.component.mjs +4 -4
- package/esm2022/util/custom_pages/index.mjs +1 -1
- package/esm2022/util/custom_pages/src/notFound.component.mjs +109 -109
- package/esm2022/util/index.mjs +1 -1
- package/esm2022/util/lib/src/module-router.mjs +1 -1
- package/esm2022/util/lib/src/types.mjs +1 -4
- package/esm2022/util/loaders/index.mjs +1 -1
- package/esm2022/util/loaders/script/script.loader.service.mjs +1 -1
- package/esm2022/util/loaders/style/style.loader.service.mjs +1 -1
- package/esm2022/util/primitive-extensions/src/date.extensions.mjs +1 -1
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +1 -1
- package/fesm2022/{aril-app.component-tFlRp3qI.mjs → aril-app.component-sZDpvJDM.mjs} +16 -14
- package/fesm2022/aril-app.component-sZDpvJDM.mjs.map +1 -0
- package/fesm2022/{aril-aril--3c18nTH.mjs → aril-aril-D__IXMsf.mjs} +24 -10
- package/fesm2022/aril-aril-D__IXMsf.mjs.map +1 -0
- package/fesm2022/aril-boot-host.mjs +13 -5
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-boot-mfe-app.component-wYzFs1Za.mjs → aril-boot-mfe-app.component-zro0FnKY.mjs} +15 -13
- package/fesm2022/aril-boot-mfe-app.component-zro0FnKY.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +13 -5
- package/fesm2022/aril-boot-mfe.mjs.map +1 -1
- package/fesm2022/aril-boot.mjs.map +1 -1
- package/fesm2022/aril-http.mjs +6 -4
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs +1 -1
- package/fesm2022/aril-i18n.mjs.map +1 -1
- package/fesm2022/aril-keycloak.mjs +77 -0
- package/fesm2022/aril-keycloak.mjs.map +1 -0
- package/fesm2022/aril-theme-layout.mjs +266 -264
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-theme.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-calendar.mjs +3 -3
- package/fesm2022/aril-ui-calendar.mjs.map +1 -1
- package/fesm2022/aril-ui-field.mjs +3 -3
- package/fesm2022/aril-ui-field.mjs.map +1 -1
- package/fesm2022/aril-ui-fileUpload.mjs +2 -2
- package/fesm2022/aril-ui-fileUpload.mjs.map +1 -1
- package/fesm2022/aril-ui-form.mjs +28 -28
- package/fesm2022/aril-ui-form.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-ui-mask.mjs +1 -1
- package/fesm2022/aril-ui-mask.mjs.map +1 -1
- package/fesm2022/aril-ui-number.mjs +2 -2
- package/fesm2022/aril-ui-number.mjs.map +1 -1
- package/fesm2022/aril-ui-overlayPanel.mjs.map +1 -1
- package/fesm2022/aril-ui-password.mjs +2 -2
- package/fesm2022/aril-ui-password.mjs.map +1 -1
- package/fesm2022/aril-ui-radioButton.mjs.map +1 -1
- package/fesm2022/aril-ui-selectBox.mjs +2 -2
- package/fesm2022/aril-ui-selectBox.mjs.map +1 -1
- package/fesm2022/aril-ui-switch.mjs +2 -2
- package/fesm2022/aril-ui-switch.mjs.map +1 -1
- package/fesm2022/aril-ui-table.mjs +23 -23
- package/fesm2022/aril-ui-table.mjs.map +1 -1
- package/fesm2022/aril-ui-tagBox.mjs.map +1 -1
- package/fesm2022/aril-ui-text.mjs +1 -1
- package/fesm2022/aril-ui-text.mjs.map +1 -1
- package/fesm2022/aril-ui-textArea.mjs +2 -2
- package/fesm2022/aril-ui-textArea.mjs.map +1 -1
- package/fesm2022/aril-ui-tree.mjs +4 -4
- package/fesm2022/aril-ui-tree.mjs.map +1 -1
- package/fesm2022/aril-ui-treeTable.mjs +2 -2
- package/fesm2022/aril-ui-treeTable.mjs.map +1 -1
- package/fesm2022/aril-ui.mjs.map +1 -1
- package/fesm2022/aril-util-custom_pages.mjs +108 -108
- package/fesm2022/aril-util-custom_pages.mjs.map +1 -1
- package/fesm2022/aril-util-lib.mjs +0 -3
- package/fesm2022/aril-util-lib.mjs.map +1 -1
- package/fesm2022/aril-util-loaders.mjs.map +1 -1
- package/fesm2022/aril-util-primitive-extensions.mjs.map +1 -1
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
- package/fesm2022/aril-util.mjs.map +1 -1
- package/fesm2022/aril.mjs +3 -1
- package/fesm2022/aril.mjs.map +1 -1
- package/http/lib/enums.d.ts +1 -0
- package/keycloak/index.d.ts +2 -0
- package/keycloak/src/auth.interceptor.d.ts +2 -0
- package/keycloak/src/keycloak.manager.d.ts +24 -0
- package/package.json +10 -2
- package/styles/ui/ui.common.scss +24 -24
- package/theme/index.ts +1 -1
- package/theme/layout/app/config/app.config.component.d.ts +1 -1
- package/theme/layout/app/config/app.config.component.ts +4 -4
- package/theme/layout/app/layout/app.layout.component.d.ts +1 -1
- package/theme/layout/app/layout/app.layout.component.ts +6 -6
- package/theme/layout/app/layout/mfe.layout.component.ts +49 -49
- package/theme/layout/app/menu/app.menu.component.d.ts +2 -2
- package/theme/layout/app/menu/app.menu.component.ts +2 -2
- package/theme/layout/app/menu/app.sub.menu.component.html +13 -13
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +1 -1
- package/theme/layout/app/sidebar/app.sidebar.component.ts +1 -1
- package/theme/layout/app/topbar/app.topbar.component.d.ts +3 -2
- package/theme/layout/app/topbar/app.topbar.component.html +45 -37
- package/theme/layout/app/topbar/app.topbar.component.ts +32 -28
- package/theme/layout/service/app.layout.service.ts +178 -178
- package/theme/layout/service/app.menu.service.ts +59 -57
- package/theme/ng-package.json +6 -6
- package/theme/styles/theme/base/components/data/_paginator.scss +92 -92
- package/theme/styles/theme/dark/_variables.scss +918 -918
- package/theme/styles/theme/light/_variables.scss +911 -911
- package/ui/selectBox/src/select-box.component.d.ts +1 -1
- package/ui/table/src/table.component.d.ts +1 -1
- package/fesm2022/aril-app.component-tFlRp3qI.mjs.map +0 -1
- package/fesm2022/aril-aril--3c18nTH.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-wYzFs1Za.mjs.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Component, Input, OnInit } from '@angular/core';
|
|
2
1
|
import { NgClass, NgStyle } from '@angular/common';
|
|
2
|
+
import { Component, Input, OnInit } from '@angular/core';
|
|
3
3
|
import { FormsModule } from '@angular/forms';
|
|
4
4
|
|
|
5
|
-
import { SidebarModule } from 'primeng/sidebar';
|
|
6
|
-
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
7
5
|
import { ButtonModule } from 'primeng/button';
|
|
8
6
|
import { InputSwitchModule } from 'primeng/inputswitch';
|
|
7
|
+
import { RadioButtonModule } from 'primeng/radiobutton';
|
|
8
|
+
import { SidebarModule } from 'primeng/sidebar';
|
|
9
9
|
|
|
10
|
-
import { AppMenuService } from '../../service/app.menu.service';
|
|
11
10
|
import { ColorScheme, LayoutService, MenuColorScheme, MenuMode } from '../../service/app.layout.service';
|
|
11
|
+
import { AppMenuService } from '../../service/app.menu.service';
|
|
12
12
|
|
|
13
13
|
@Component({
|
|
14
14
|
standalone: true,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { OnDestroy, Renderer2 } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { Subscription } from 'rxjs';
|
|
4
|
+
import { LayoutService } from '../../service/app.layout.service';
|
|
4
5
|
import { AppMenuService } from '../../service/app.menu.service';
|
|
5
6
|
import { AppSidebarComponent } from '../sidebar/app.sidebar.component';
|
|
6
7
|
import { AppTopbarComponent } from '../topbar/app.topbar.component';
|
|
7
|
-
import { LayoutService } from '../../service/app.layout.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class AppLayoutComponent implements OnDestroy {
|
|
10
10
|
private menuService;
|
|
@@ -2,21 +2,21 @@ import { NgClass } from '@angular/common';
|
|
|
2
2
|
import { Component, OnDestroy, Renderer2, ViewChild } from '@angular/core';
|
|
3
3
|
import { NavigationEnd, Router, RouterOutlet } from '@angular/router';
|
|
4
4
|
|
|
5
|
-
import { filter, Subscription } from 'rxjs';
|
|
6
|
-
|
|
7
5
|
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
8
6
|
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
|
9
7
|
import { DialogModule } from 'primeng/dialog';
|
|
10
8
|
import { MessagesModule } from 'primeng/messages';
|
|
11
9
|
import { ToastModule } from 'primeng/toast';
|
|
12
10
|
|
|
11
|
+
import { Subscription, filter } from 'rxjs';
|
|
12
|
+
|
|
13
|
+
import { LayoutService } from '../../service/app.layout.service';
|
|
13
14
|
import { AppMenuService } from '../../service/app.menu.service';
|
|
14
|
-
import { AppSidebarComponent } from '../sidebar/app.sidebar.component';
|
|
15
|
-
import { AppTopbarComponent } from '../topbar/app.topbar.component';
|
|
16
15
|
import { AppBreadcrumbComponent } from '../breadcrumb/app.breadcrumb.component';
|
|
17
|
-
import { AppProfileSidebarComponent } from '../profileSidebar/app.profilesidebar.component';
|
|
18
|
-
import { LayoutService } from '../../service/app.layout.service';
|
|
19
16
|
import { AppConfigComponent } from '../config/app.config.component';
|
|
17
|
+
import { AppProfileSidebarComponent } from '../profileSidebar/app.profilesidebar.component';
|
|
18
|
+
import { AppSidebarComponent } from '../sidebar/app.sidebar.component';
|
|
19
|
+
import { AppTopbarComponent } from '../topbar/app.topbar.component';
|
|
20
20
|
|
|
21
21
|
@Component({
|
|
22
22
|
standalone: true,
|
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
import { AfterViewInit, Component, OnDestroy } from '@angular/core';
|
|
2
|
-
import { RouterOutlet } from '@angular/router';
|
|
3
|
-
|
|
4
|
-
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
5
|
-
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
|
6
|
-
import { DialogModule } from 'primeng/dialog';
|
|
7
|
-
import { MessagesModule } from 'primeng/messages';
|
|
8
|
-
import { ToastModule } from 'primeng/toast';
|
|
9
|
-
|
|
10
|
-
import { AppSubMenuComponent } from '../menu/app.menu.component';
|
|
11
|
-
|
|
12
|
-
@Component({
|
|
13
|
-
standalone: true,
|
|
14
|
-
selector: 'mfe-layout',
|
|
15
|
-
template: `
|
|
16
|
-
<app-sub-menu hidden></app-sub-menu>
|
|
17
|
-
|
|
18
|
-
<router-outlet />
|
|
19
|
-
|
|
20
|
-
<p-toast key="toast-root"></p-toast>
|
|
21
|
-
<p-dialog key="dialog-root"></p-dialog>
|
|
22
|
-
<p-messages key="messages-root"></p-messages>
|
|
23
|
-
<p-confirmPopup key="confirmPopup-root"></p-confirmPopup>
|
|
24
|
-
<p-confirmDialog key="confirmDialog-root"></p-confirmDialog>
|
|
25
|
-
`,
|
|
26
|
-
imports: [
|
|
27
|
-
RouterOutlet,
|
|
28
|
-
ConfirmDialogModule,
|
|
29
|
-
ConfirmPopupModule,
|
|
30
|
-
DialogModule,
|
|
31
|
-
MessagesModule,
|
|
32
|
-
ToastModule,
|
|
33
|
-
AppSubMenuComponent
|
|
34
|
-
]
|
|
35
|
-
})
|
|
36
|
-
export class MFELayoutComponent implements AfterViewInit, OnDestroy {
|
|
37
|
-
ngAfterViewInit(): void {
|
|
38
|
-
setTimeout(() => {
|
|
39
|
-
const appSidebar = document.getElementsByTagName('app-sidebar')[0];
|
|
40
|
-
const subMenu = document.getElementById('app-sub-menu-' + (<any>globalThis).activeMF) as HTMLElement;
|
|
41
|
-
subMenu.removeAttribute('hidden');
|
|
42
|
-
appSidebar.append(subMenu);
|
|
43
|
-
}, 10);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
ngOnDestroy(): void {
|
|
47
|
-
document.getElementById('app-sub-menu-' + (<any>globalThis).activeMF)?.remove();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
1
|
+
import { AfterViewInit, Component, OnDestroy } from '@angular/core';
|
|
2
|
+
import { RouterOutlet } from '@angular/router';
|
|
3
|
+
|
|
4
|
+
import { ConfirmDialogModule } from 'primeng/confirmdialog';
|
|
5
|
+
import { ConfirmPopupModule } from 'primeng/confirmpopup';
|
|
6
|
+
import { DialogModule } from 'primeng/dialog';
|
|
7
|
+
import { MessagesModule } from 'primeng/messages';
|
|
8
|
+
import { ToastModule } from 'primeng/toast';
|
|
9
|
+
|
|
10
|
+
import { AppSubMenuComponent } from '../menu/app.menu.component';
|
|
11
|
+
|
|
12
|
+
@Component({
|
|
13
|
+
standalone: true,
|
|
14
|
+
selector: 'mfe-layout',
|
|
15
|
+
template: `
|
|
16
|
+
<app-sub-menu hidden></app-sub-menu>
|
|
17
|
+
|
|
18
|
+
<router-outlet />
|
|
19
|
+
|
|
20
|
+
<p-toast key="toast-root"></p-toast>
|
|
21
|
+
<p-dialog key="dialog-root"></p-dialog>
|
|
22
|
+
<p-messages key="messages-root"></p-messages>
|
|
23
|
+
<p-confirmPopup key="confirmPopup-root"></p-confirmPopup>
|
|
24
|
+
<p-confirmDialog key="confirmDialog-root"></p-confirmDialog>
|
|
25
|
+
`,
|
|
26
|
+
imports: [
|
|
27
|
+
RouterOutlet,
|
|
28
|
+
ConfirmDialogModule,
|
|
29
|
+
ConfirmPopupModule,
|
|
30
|
+
DialogModule,
|
|
31
|
+
MessagesModule,
|
|
32
|
+
ToastModule,
|
|
33
|
+
AppSubMenuComponent
|
|
34
|
+
]
|
|
35
|
+
})
|
|
36
|
+
export class MFELayoutComponent implements AfterViewInit, OnDestroy {
|
|
37
|
+
ngAfterViewInit(): void {
|
|
38
|
+
setTimeout(() => {
|
|
39
|
+
const appSidebar = document.getElementsByTagName('app-sidebar')[0];
|
|
40
|
+
const subMenu = document.getElementById('app-sub-menu-' + (<any>globalThis).activeMF) as HTMLElement;
|
|
41
|
+
subMenu.removeAttribute('hidden');
|
|
42
|
+
appSidebar.append(subMenu);
|
|
43
|
+
}, 10);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
ngOnDestroy(): void {
|
|
47
|
+
document.getElementById('app-sub-menu-' + (<any>globalThis).activeMF)?.remove();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import { AnimationEvent } from '@angular/animations';
|
|
1
2
|
import { ChangeDetectorRef, ElementRef, OnDestroy, OnInit } from '@angular/core';
|
|
2
3
|
import { Router } from '@angular/router';
|
|
3
|
-
import { AnimationEvent } from '@angular/animations';
|
|
4
4
|
import { MenuItem } from 'primeng/api';
|
|
5
5
|
import { Subscription } from 'rxjs';
|
|
6
|
-
import { AppMenuService } from '../../service/app.menu.service';
|
|
7
6
|
import { LayoutService } from '../../service/app.layout.service';
|
|
7
|
+
import { AppMenuService } from '../../service/app.menu.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class AppMenuItemComponent implements OnInit, OnDestroy {
|
|
10
10
|
layoutService: LayoutService;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AnimationEvent, animate, state, style, transition, trigger } from '@angular/animations';
|
|
1
2
|
import { NgClass } from '@angular/common';
|
|
2
3
|
import {
|
|
3
4
|
ChangeDetectorRef,
|
|
@@ -11,7 +12,6 @@ import {
|
|
|
11
12
|
inject
|
|
12
13
|
} from '@angular/core';
|
|
13
14
|
import { NavigationEnd, Router, RouterLink, RouterLinkActive } from '@angular/router';
|
|
14
|
-
import { animate, state, style, transition, trigger, AnimationEvent } from '@angular/animations';
|
|
15
15
|
|
|
16
16
|
import { MenuItem } from 'primeng/api';
|
|
17
17
|
import { DomHandler } from 'primeng/dom';
|
|
@@ -21,8 +21,8 @@ import { TooltipModule } from 'primeng/tooltip';
|
|
|
21
21
|
import { Subscription } from 'rxjs';
|
|
22
22
|
import { filter } from 'rxjs/operators';
|
|
23
23
|
|
|
24
|
-
import { AppMenuService } from '../../service/app.menu.service';
|
|
25
24
|
import { LayoutService } from '../../service/app.layout.service';
|
|
25
|
+
import { AppMenuService } from '../../service/app.menu.service';
|
|
26
26
|
|
|
27
27
|
@Component({
|
|
28
28
|
standalone: true,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
<div class="layout-sidebar">
|
|
2
|
-
<div #subMenuContainer class="layout-menu-container">
|
|
3
|
-
<ul class="layout-menu flex-wrap">
|
|
4
|
-
@for (subItem of menuService.subMenuItems(); track $index) {
|
|
5
|
-
@if (subItem.separator) {
|
|
6
|
-
<li class="menu-separator"></li>
|
|
7
|
-
} @else {
|
|
8
|
-
<li app-menuitem [item]="subItem" [index]="$index" [root]="true"></li>
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
</ul>
|
|
12
|
-
</div>
|
|
13
|
-
</div>
|
|
1
|
+
<div class="layout-sidebar">
|
|
2
|
+
<div #subMenuContainer class="layout-menu-container">
|
|
3
|
+
<ul class="layout-menu flex-wrap">
|
|
4
|
+
@for (subItem of menuService.subMenuItems(); track $index) {
|
|
5
|
+
@if (subItem.separator) {
|
|
6
|
+
<li class="menu-separator"></li>
|
|
7
|
+
} @else {
|
|
8
|
+
<li app-menuitem [item]="subItem" [index]="$index" [root]="true"></li>
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
</ul>
|
|
12
|
+
</div>
|
|
13
|
+
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RouterLink } from '@angular/router';
|
|
2
1
|
import { Component, ElementRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { RouterLink } from '@angular/router';
|
|
3
3
|
|
|
4
4
|
import { LayoutService } from '../../service/app.layout.service';
|
|
5
5
|
import { AppMenuComponent } from '../menu/app.menu.component';
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { KeycloakManager } from 'aril/keycloak';
|
|
2
3
|
import { LayoutService } from '../../service/app.layout.service';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class AppTopbarComponent {
|
|
5
|
-
layoutService: LayoutService;
|
|
6
6
|
menuButton: ElementRef;
|
|
7
|
-
|
|
7
|
+
layoutService: LayoutService;
|
|
8
|
+
keyCloakManager: KeycloakManager;
|
|
8
9
|
onMenuButtonClick(): void;
|
|
9
10
|
onProfileButtonClick(): void;
|
|
10
11
|
onConfigButtonClick(): void;
|
|
@@ -1,37 +1,45 @@
|
|
|
1
|
-
<div class="layout-topbar">
|
|
2
|
-
<div class="topbar-start">
|
|
3
|
-
<button #menubutton type="button" class="topbar-menubutton p-link p-trigger" (click)="onMenuButtonClick()">
|
|
4
|
-
<i class="pi pi-bars"></i>
|
|
5
|
-
</button>
|
|
6
|
-
|
|
7
|
-
<!-- <app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb> -->
|
|
8
|
-
</div>
|
|
9
|
-
|
|
10
|
-
<div class="topbar-end">
|
|
11
|
-
<ul class="topbar-menu">
|
|
12
|
-
<li class="topbar-search">
|
|
13
|
-
<span class="p-input-icon-left">
|
|
14
|
-
<i class="pi pi-search"></i>
|
|
15
|
-
<input
|
|
16
|
-
type="text"
|
|
17
|
-
pInputText
|
|
18
|
-
placeholder="Search"
|
|
19
|
-
class="p-inputtext p-component p-element w-12rem sm:w-full" />
|
|
20
|
-
</span>
|
|
21
|
-
</li>
|
|
22
|
-
<!-- <li class="ml-3">
|
|
23
|
-
<button
|
|
24
|
-
pButton
|
|
25
|
-
type="button"
|
|
26
|
-
icon="pi pi-cog"
|
|
27
|
-
class="p-button-text p-button-secondary p-button-rounded flex-shrink-0"
|
|
28
|
-
(click)="onConfigButtonClick()"></button>
|
|
29
|
-
</li> -->
|
|
30
|
-
<li class="
|
|
31
|
-
<button
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
</
|
|
1
|
+
<div class="layout-topbar">
|
|
2
|
+
<div class="topbar-start">
|
|
3
|
+
<button #menubutton type="button" class="topbar-menubutton p-link p-trigger" (click)="onMenuButtonClick()">
|
|
4
|
+
<i class="pi pi-bars"></i>
|
|
5
|
+
</button>
|
|
6
|
+
|
|
7
|
+
<!-- <app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb> -->
|
|
8
|
+
</div>
|
|
9
|
+
|
|
10
|
+
<div class="topbar-end">
|
|
11
|
+
<ul class="topbar-menu">
|
|
12
|
+
<li class="topbar-search">
|
|
13
|
+
<span class="p-input-icon-left">
|
|
14
|
+
<i class="pi pi-search"></i>
|
|
15
|
+
<input
|
|
16
|
+
type="text"
|
|
17
|
+
pInputText
|
|
18
|
+
placeholder="Search"
|
|
19
|
+
class="p-inputtext p-component p-element w-12rem sm:w-full" />
|
|
20
|
+
</span>
|
|
21
|
+
</li>
|
|
22
|
+
<!-- <li class="ml-3">
|
|
23
|
+
<button
|
|
24
|
+
pButton
|
|
25
|
+
type="button"
|
|
26
|
+
icon="pi pi-cog"
|
|
27
|
+
class="p-button-text p-button-secondary p-button-rounded flex-shrink-0"
|
|
28
|
+
(click)="onConfigButtonClick()"></button>
|
|
29
|
+
</li> -->
|
|
30
|
+
<li class="ml-3">
|
|
31
|
+
<button
|
|
32
|
+
pButton
|
|
33
|
+
type="button"
|
|
34
|
+
icon="pi pi-power-off"
|
|
35
|
+
class="p-button-text p-button-secondary p-button-rounded flex-shrink-0"
|
|
36
|
+
(click)="keyCloakManager.logout()"></button>
|
|
37
|
+
</li>
|
|
38
|
+
<li class="topbar-profile">
|
|
39
|
+
<button type="button" class="p-link" (click)="onProfileButtonClick()">
|
|
40
|
+
<img src="assets/images/avatar.png" alt="Profile" />
|
|
41
|
+
</button>
|
|
42
|
+
</li>
|
|
43
|
+
</ul>
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import { Component, ElementRef, ViewChild } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.layoutService.
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
1
|
+
import { Component, ElementRef, ViewChild, inject } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { ButtonModule } from 'primeng/button';
|
|
4
|
+
|
|
5
|
+
import { KeycloakManager } from 'aril/keycloak';
|
|
6
|
+
|
|
7
|
+
import { LayoutService } from '../../service/app.layout.service';
|
|
8
|
+
import { AppBreadcrumbComponent } from '../breadcrumb/app.breadcrumb.component';
|
|
9
|
+
|
|
10
|
+
@Component({
|
|
11
|
+
standalone: true,
|
|
12
|
+
selector: 'app-topbar',
|
|
13
|
+
imports: [ButtonModule, AppBreadcrumbComponent],
|
|
14
|
+
templateUrl: './app.topbar.component.html'
|
|
15
|
+
})
|
|
16
|
+
export class AppTopbarComponent {
|
|
17
|
+
@ViewChild('menubutton') menuButton!: ElementRef;
|
|
18
|
+
|
|
19
|
+
layoutService = inject(LayoutService);
|
|
20
|
+
keyCloakManager = inject(KeycloakManager);
|
|
21
|
+
|
|
22
|
+
onMenuButtonClick() {
|
|
23
|
+
this.layoutService.onMenuToggle();
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
onProfileButtonClick() {
|
|
27
|
+
this.layoutService.showProfileSidebar();
|
|
28
|
+
}
|
|
29
|
+
onConfigButtonClick() {
|
|
30
|
+
this.layoutService.showConfigSidebar();
|
|
31
|
+
}
|
|
32
|
+
}
|