aril 0.0.26 → 0.0.28
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/README.md +2 -2
- package/boot/config/config.sample.json +19 -0
- package/boot/config/index.d.ts +2 -0
- package/boot/config/src/app.configs.d.ts +13 -0
- package/boot/{host/src/services/custom-manifest.d.ts → config/src/custom-remote.d.ts} +2 -2
- package/boot/host/index.d.ts +0 -1
- package/boot/host/src/bootstrap.d.ts +2 -2
- package/boot/host/src/services/microFrontEnd.service.d.ts +1 -1
- package/boot/mfe/index.d.ts +1 -1
- package/boot/mfe/src/app.component.d.ts +2 -0
- package/boot/mfe/src/appComponentLoader.d.ts +1 -0
- package/boot/mfe/src/bootstrap.d.ts +5 -2
- package/boot/mfe/src/loadStyles.d.ts +3 -0
- package/esm2022/boot/config/aril-boot-config.mjs +5 -0
- package/esm2022/boot/config/index.mjs +3 -0
- package/esm2022/boot/config/src/app.configs.mjs +19 -0
- package/esm2022/boot/config/src/custom-remote.mjs +2 -0
- package/esm2022/boot/host/index.mjs +1 -2
- package/esm2022/boot/host/src/bootstrap.mjs +14 -12
- package/esm2022/boot/host/src/services/microFrontEnd.service.mjs +1 -1
- package/esm2022/boot/mfe/index.mjs +2 -2
- package/esm2022/boot/mfe/src/app.component.mjs +10 -3
- package/esm2022/boot/mfe/src/appComponentLoader.mjs +5 -0
- package/esm2022/boot/mfe/src/bootstrap.mjs +24 -33
- package/esm2022/boot/mfe/src/loadStyles.mjs +16 -0
- package/esm2022/http/index.mjs +2 -1
- package/esm2022/http/lib/enums.mjs +3 -1
- package/esm2022/http/src/httpClient.mjs +6 -4
- package/esm2022/http/src/serviceBase.mjs +12 -43
- package/esm2022/http/src/serviceMockBase.mjs +5 -0
- package/esm2022/http/src/serviceRequest.mjs +26 -0
- package/esm2022/http/src/serviceStateMethods.mjs +97 -3
- package/esm2022/i18n/index.mjs +2 -2
- package/esm2022/i18n/src/folder-name-token.mjs +3 -0
- package/esm2022/i18n/src/loader.mjs +3 -3
- package/esm2022/i18n/src/provideScope.mjs +2 -2
- package/esm2022/keycloak/index.mjs +2 -1
- package/esm2022/keycloak/src/auth.guard.mjs +39 -0
- package/esm2022/keycloak/src/keycloak.manager.mjs +21 -2
- package/esm2022/public-api.mjs +1 -2
- package/esm2022/theme/layout/app/profileSidebar/app.profilesidebar.component.mjs +8 -5
- package/esm2022/theme/layout/app/topbar/app.topbar.component.mjs +3 -3
- package/esm2022/theme/layout/service/app.layout.service.mjs +1 -1
- package/esm2022/theme/layout/service/app.menu.service.mjs +3 -1
- package/esm2022/ui/button/src/button.component.mjs +1 -1
- package/esm2022/ui/lib/src/input/common-input-validators.service.mjs +1 -1
- package/esm2022/util/block/aril-util-block.mjs +5 -0
- package/esm2022/util/block/index.mjs +2 -0
- package/esm2022/util/block/src/block.mjs +64 -0
- package/esm2022/util/custom_pages/src/notFound.component.mjs +53 -110
- package/esm2022/util/pub-sub/src/pub-sub.service.mjs +2 -3
- package/fesm2022/{aril-boot-mfe-app.component-zro0FnKY.mjs → aril-app.component-pGPjpk8x.mjs} +14 -7
- package/fesm2022/aril-app.component-pGPjpk8x.mjs.map +1 -0
- package/fesm2022/aril-boot-config.mjs +26 -0
- package/fesm2022/aril-boot-config.mjs.map +1 -0
- package/fesm2022/aril-boot-host.mjs +14 -13
- package/fesm2022/aril-boot-host.mjs.map +1 -1
- package/fesm2022/{aril-app.component-sZDpvJDM.mjs → aril-boot-mfe-app.component-h5TW-GVW.mjs} +13 -6
- package/fesm2022/aril-boot-mfe-app.component-h5TW-GVW.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-7ZwVVddO.mjs +92 -0
- package/fesm2022/aril-boot-mfe-aril-boot-mfe-7ZwVVddO.mjs.map +1 -0
- package/fesm2022/aril-boot-mfe.mjs +13 -81
- package/fesm2022/aril-boot-mfe.mjs.map +1 -1
- package/fesm2022/aril-http.mjs +140 -45
- package/fesm2022/aril-http.mjs.map +1 -1
- package/fesm2022/aril-i18n.mjs +3 -3
- package/fesm2022/aril-i18n.mjs.map +1 -1
- package/fesm2022/aril-keycloak.mjs +58 -3
- package/fesm2022/aril-keycloak.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +11 -7
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-ui-button.mjs.map +1 -1
- package/fesm2022/aril-ui-lib.mjs.map +1 -1
- package/fesm2022/aril-util-block.mjs +71 -0
- package/fesm2022/aril-util-block.mjs.map +1 -0
- package/fesm2022/aril-util-custom_pages.mjs +52 -109
- package/fesm2022/aril-util-custom_pages.mjs.map +1 -1
- package/fesm2022/aril-util-pub-sub.mjs +1 -2
- package/fesm2022/aril-util-pub-sub.mjs.map +1 -1
- package/fesm2022/aril.mjs +215 -16
- package/fesm2022/aril.mjs.map +1 -1
- package/http/index.d.ts +1 -0
- package/http/lib/enums.d.ts +4 -2
- package/http/src/httpClient.d.ts +2 -4
- package/http/src/serviceBase.d.ts +4 -2
- package/http/src/serviceMockBase.d.ts +6 -0
- package/http/src/serviceRequest.d.ts +4 -0
- package/http/src/serviceStateMethods.d.ts +11 -2
- package/i18n/index.d.ts +1 -1
- package/i18n/src/folder-name-token.d.ts +2 -0
- package/i18n/src/provideScope.d.ts +0 -4
- package/keycloak/index.d.ts +1 -0
- package/keycloak/src/auth.guard.d.ts +11 -0
- package/keycloak/src/keycloak.manager.d.ts +1 -0
- package/package.json +13 -1
- package/public-api.d.ts +0 -1
- package/scripts/util/blockui.min.js +7 -0
- package/styles/util/blockui.css +56 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.d.ts +3 -0
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.html +151 -152
- package/theme/layout/app/profileSidebar/app.profilesidebar.component.ts +31 -24
- package/theme/layout/app/topbar/app.topbar.component.html +45 -45
- package/theme/layout/app/topbar/app.topbar.component.ts +32 -32
- package/theme/layout/service/app.layout.service.ts +178 -178
- package/theme/layout/service/app.menu.service.ts +2 -0
- package/ui/button/src/button.component.d.ts +1 -1
- package/ui/lib/src/input/common-input-validators.service.d.ts +2 -1
- package/util/block/index.d.ts +1 -0
- package/util/block/src/block.d.ts +28 -0
- package/util/pub-sub/src/pub-sub.service.d.ts +1 -2
- package/esm2022/boot/host/src/services/custom-manifest.mjs +0 -2
- package/esm2022/i18n/src/file-url-token.mjs +0 -3
- package/fesm2022/aril-app.component-sZDpvJDM.mjs.map +0 -1
- package/fesm2022/aril-aril-D__IXMsf.mjs +0 -207
- package/fesm2022/aril-aril-D__IXMsf.mjs.map +0 -1
- package/fesm2022/aril-boot-mfe-app.component-zro0FnKY.mjs.map +0 -1
- package/i18n/src/file-url-token.d.ts +0 -2
|
@@ -1,152 +1,151 @@
|
|
|
1
|
-
<p-sidebar
|
|
2
|
-
[(visible)]="visible"
|
|
3
|
-
position="right"
|
|
4
|
-
[transitionOptions]="'.3s cubic-bezier(0, 0, 0.2, 1)'"
|
|
5
|
-
styleClass="layout-profile-sidebar w-full sm:w-25rem">
|
|
6
|
-
<div class="flex flex-column mx-auto md:mx-0">
|
|
7
|
-
<span class="mb-2 font-semibold">
|
|
8
|
-
<span class="text-color-secondary font-medium mb-5">
|
|
9
|
-
|
|
10
|
-
<ul class="list-none m-0 p-0">
|
|
11
|
-
<li>
|
|
12
|
-
<a
|
|
13
|
-
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
14
|
-
<span>
|
|
15
|
-
<i class="pi pi-user text-xl text-primary"></i>
|
|
16
|
-
</span>
|
|
17
|
-
<div class="ml-3">
|
|
18
|
-
<span class="mb-2 font-semibold">Profile</span>
|
|
19
|
-
<p class="text-color-secondary m-0">Lorem ipsum date visale</p>
|
|
20
|
-
</div>
|
|
21
|
-
</a>
|
|
22
|
-
</li>
|
|
23
|
-
<li>
|
|
24
|
-
<a
|
|
25
|
-
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
26
|
-
<span>
|
|
27
|
-
<i class="pi pi-user text-xl text-primary"></i>
|
|
28
|
-
</span>
|
|
29
|
-
<div class="ml-3">
|
|
30
|
-
<span class="mb-2 font-semibold">Billing</span>
|
|
31
|
-
<p class="text-color-secondary m-0">Amet mimin mıollit</p>
|
|
32
|
-
</div>
|
|
33
|
-
</a>
|
|
34
|
-
</li>
|
|
35
|
-
<li>
|
|
36
|
-
<a
|
|
37
|
-
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
38
|
-
<span>
|
|
39
|
-
<i class="pi pi-cog text-xl text-primary"></i>
|
|
40
|
-
</span>
|
|
41
|
-
<div class="ml-3">
|
|
42
|
-
<span class="mb-2 font-semibold">Settings</span>
|
|
43
|
-
<p class="text-color-secondary m-0">Exercitation veniam</p>
|
|
44
|
-
</div>
|
|
45
|
-
</a>
|
|
46
|
-
</li>
|
|
47
|
-
<li>
|
|
48
|
-
<a
|
|
49
|
-
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
50
|
-
<span>
|
|
51
|
-
<i class="pi pi-power-off text-xl text-primary"></i>
|
|
52
|
-
</span>
|
|
53
|
-
<div class="ml-3">
|
|
54
|
-
<span class="mb-2 font-semibold"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
<span class="
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
<
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
<span class="
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
<
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
<
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
<
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
</p-sidebar>
|
|
1
|
+
<p-sidebar
|
|
2
|
+
[(visible)]="visible"
|
|
3
|
+
position="right"
|
|
4
|
+
[transitionOptions]="'.3s cubic-bezier(0, 0, 0.2, 1)'"
|
|
5
|
+
styleClass="layout-profile-sidebar w-full sm:w-25rem">
|
|
6
|
+
<div class="flex flex-column mx-auto md:mx-0">
|
|
7
|
+
<span class="mb-2 font-semibold">Hoşgeldiniz</span>
|
|
8
|
+
<span class="text-color-secondary font-medium mb-5">{{username}}</span>
|
|
9
|
+
|
|
10
|
+
<ul class="list-none m-0 p-0">
|
|
11
|
+
<!-- <li>
|
|
12
|
+
<a
|
|
13
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
14
|
+
<span>
|
|
15
|
+
<i class="pi pi-user text-xl text-primary"></i>
|
|
16
|
+
</span>
|
|
17
|
+
<div class="ml-3">
|
|
18
|
+
<span class="mb-2 font-semibold">Profile</span>
|
|
19
|
+
<p class="text-color-secondary m-0">Lorem ipsum date visale</p>
|
|
20
|
+
</div>
|
|
21
|
+
</a>
|
|
22
|
+
</li>
|
|
23
|
+
<li>
|
|
24
|
+
<a
|
|
25
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
26
|
+
<span>
|
|
27
|
+
<i class="pi pi-user text-xl text-primary"></i>
|
|
28
|
+
</span>
|
|
29
|
+
<div class="ml-3">
|
|
30
|
+
<span class="mb-2 font-semibold">Billing</span>
|
|
31
|
+
<p class="text-color-secondary m-0">Amet mimin mıollit</p>
|
|
32
|
+
</div>
|
|
33
|
+
</a>
|
|
34
|
+
</li>
|
|
35
|
+
<li>
|
|
36
|
+
<a
|
|
37
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
38
|
+
<span>
|
|
39
|
+
<i class="pi pi-cog text-xl text-primary"></i>
|
|
40
|
+
</span>
|
|
41
|
+
<div class="ml-3">
|
|
42
|
+
<span class="mb-2 font-semibold">Settings</span>
|
|
43
|
+
<p class="text-color-secondary m-0">Exercitation veniam</p>
|
|
44
|
+
</div>
|
|
45
|
+
</a>
|
|
46
|
+
</li> -->
|
|
47
|
+
<li (click)="keyCloakManager.logout()">
|
|
48
|
+
<a
|
|
49
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
50
|
+
<span>
|
|
51
|
+
<i class="pi pi-power-off text-xl text-primary"></i>
|
|
52
|
+
</span>
|
|
53
|
+
<div class="ml-3" >
|
|
54
|
+
<span class="mb-2 font-semibold">Çıkış</span>
|
|
55
|
+
</div>
|
|
56
|
+
</a>
|
|
57
|
+
</li>
|
|
58
|
+
</ul>
|
|
59
|
+
</div>
|
|
60
|
+
|
|
61
|
+
<!-- <div class="flex flex-column mt-5 mx-auto md:mx-0">
|
|
62
|
+
<span class="mb-2 font-semibold">Notifications</span>
|
|
63
|
+
<span class="text-color-secondary font-medium mb-5">You have 3 notifications</span>
|
|
64
|
+
|
|
65
|
+
<ul class="list-none m-0 p-0">
|
|
66
|
+
<li>
|
|
67
|
+
<a
|
|
68
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
69
|
+
<span>
|
|
70
|
+
<i class="pi pi-comment text-xl text-primary"></i>
|
|
71
|
+
</span>
|
|
72
|
+
<div class="ml-3">
|
|
73
|
+
<span class="mb-2 font-semibold">Your post has new comments</span>
|
|
74
|
+
<p class="text-color-secondary m-0">5 min ago</p>
|
|
75
|
+
</div>
|
|
76
|
+
</a>
|
|
77
|
+
</li>
|
|
78
|
+
<li>
|
|
79
|
+
<a
|
|
80
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
81
|
+
<span>
|
|
82
|
+
<i class="pi pi-trash text-xl text-primary"></i>
|
|
83
|
+
</span>
|
|
84
|
+
<div class="ml-3">
|
|
85
|
+
<span class="mb-2 font-semibold">Your post has been deleted</span>
|
|
86
|
+
<p class="text-color-secondary m-0">15min ago</p>
|
|
87
|
+
</div>
|
|
88
|
+
</a>
|
|
89
|
+
</li>
|
|
90
|
+
<li>
|
|
91
|
+
<a
|
|
92
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
93
|
+
<span>
|
|
94
|
+
<i class="pi pi-folder text-xl text-primary"></i>
|
|
95
|
+
</span>
|
|
96
|
+
<div class="ml-3">
|
|
97
|
+
<span class="mb-2 font-semibold">Post has been updated</span>
|
|
98
|
+
<p class="text-color-secondary m-0">3h ago</p>
|
|
99
|
+
</div>
|
|
100
|
+
</a>
|
|
101
|
+
</li>
|
|
102
|
+
</ul>
|
|
103
|
+
</div> -->
|
|
104
|
+
|
|
105
|
+
<!-- <div class="flex flex-column mt-5 mx-auto md:mx-0">
|
|
106
|
+
<span class="mb-2 font-semibold">Messages</span>
|
|
107
|
+
<span class="text-color-secondary font-medium mb-5">You have new messages</span>
|
|
108
|
+
|
|
109
|
+
<ul class="list-none m-0 p-0">
|
|
110
|
+
<li>
|
|
111
|
+
<a
|
|
112
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
113
|
+
<span>
|
|
114
|
+
<img src="assets/demo/images/avatar/circle/avatar-m-8.png" alt="Avatar" class="w-2rem h-2rem" />
|
|
115
|
+
</span>
|
|
116
|
+
<div class="ml-3">
|
|
117
|
+
<span class="mb-2 font-semibold">James Robinson</span>
|
|
118
|
+
<p class="text-color-secondary m-0">10 min ago</p>
|
|
119
|
+
</div>
|
|
120
|
+
<p-tag value="3" class="ml-auto"></p-tag>
|
|
121
|
+
</a>
|
|
122
|
+
</li>
|
|
123
|
+
<li>
|
|
124
|
+
<a
|
|
125
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
126
|
+
<span>
|
|
127
|
+
<img src="assets/demo/images/avatar/circle/avatar-f-8.png" alt="Avatar" class="w-2rem h-2rem" />
|
|
128
|
+
</span>
|
|
129
|
+
<div class="ml-3">
|
|
130
|
+
<span class="mb-2 font-semibold">Mary Watson</span>
|
|
131
|
+
<p class="text-color-secondary m-0">15min ago</p>
|
|
132
|
+
</div>
|
|
133
|
+
<p-tag value="1" class="ml-auto"></p-tag>
|
|
134
|
+
</a>
|
|
135
|
+
</li>
|
|
136
|
+
<li>
|
|
137
|
+
<a
|
|
138
|
+
class="cursor-pointer flex surface-border mb-3 p-3 align-items-center border-1 surface-border border-round hover:surface-hover transition-colors transition-duration-150">
|
|
139
|
+
<span>
|
|
140
|
+
<img src="assets/demo/images/avatar/circle/avatar-f-4.png" alt="Avatar" class="w-2rem h-2rem" />
|
|
141
|
+
</span>
|
|
142
|
+
<div class="ml-3">
|
|
143
|
+
<span class="mb-2 font-semibold">Aisha Webb</span>
|
|
144
|
+
<p class="text-color-secondary m-0">3h ago</p>
|
|
145
|
+
</div>
|
|
146
|
+
<p-tag value="2" class="ml-auto"></p-tag>
|
|
147
|
+
</a>
|
|
148
|
+
</li>
|
|
149
|
+
</ul>
|
|
150
|
+
</div> -->
|
|
151
|
+
</p-sidebar>
|
|
@@ -1,24 +1,31 @@
|
|
|
1
|
-
import { Component } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
import { SidebarModule } from 'primeng/sidebar';
|
|
4
|
-
import { TagModule } from 'primeng/tag';
|
|
5
|
-
|
|
6
|
-
import { LayoutService } from '../../service/app.layout.service';
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
1
|
+
import { Component, inject } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
import { SidebarModule } from 'primeng/sidebar';
|
|
4
|
+
import { TagModule } from 'primeng/tag';
|
|
5
|
+
|
|
6
|
+
import { LayoutService } from '../../service/app.layout.service';
|
|
7
|
+
import { KeycloakManager } from 'aril/keycloak';
|
|
8
|
+
|
|
9
|
+
@Component({
|
|
10
|
+
standalone: true,
|
|
11
|
+
selector: 'app-profilemenu',
|
|
12
|
+
imports: [SidebarModule, TagModule],
|
|
13
|
+
templateUrl: './app.profilesidebar.component.html'
|
|
14
|
+
})
|
|
15
|
+
export class AppProfileSidebarComponent {
|
|
16
|
+
keyCloakManager = inject(KeycloakManager);
|
|
17
|
+
username :any;
|
|
18
|
+
|
|
19
|
+
constructor(public layoutService: LayoutService) {
|
|
20
|
+
this.username = this.keyCloakManager.getUsername();
|
|
21
|
+
console.log(this.username,"username")
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
get visible(): boolean {
|
|
25
|
+
return this.layoutService.state.profileSidebarVisible;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
set visible(_val: boolean) {
|
|
29
|
+
this.layoutService.state.profileSidebarVisible = _val;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,45 +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="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
|
+
<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" style="border: 1px solid crimson; border-radius: 50%">
|
|
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,32 +1,32 @@
|
|
|
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
|
-
}
|
|
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
|
+
}
|