aril 1.2.12 → 1.2.13
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/esm2022/boot/config/translate/primeng/i18n/tr.mjs +2 -2
- package/esm2022/keycloak/src/auth.interceptor.mjs +1 -1
- package/esm2022/theme/layout/app/site-map/site-map-sidebar.component.mjs +3 -3
- package/esm2022/ui-business/ref-value/src/ref-value.component.mjs +7 -8
- package/esm2022/ui-business/trace-drawer/src/app-log.service.mjs +8 -2
- package/esm2022/ui-business/trace-drawer/src/interfaces.mjs +1 -1
- package/esm2022/ui-business/trace-drawer/src/trace-drawer.component.mjs +15 -3
- package/esm2022/util/sync-active-tab-route/src/sync-active-tab-route.directive.mjs +1 -1
- package/fesm2022/aril-boot-config-translate.mjs +1 -1
- package/fesm2022/aril-boot-config-translate.mjs.map +1 -1
- package/fesm2022/aril-keycloak.mjs.map +1 -1
- package/fesm2022/aril-theme-layout.mjs +2 -2
- package/fesm2022/aril-theme-layout.mjs.map +1 -1
- package/fesm2022/aril-ui-business-ref-value.mjs +6 -7
- package/fesm2022/aril-ui-business-ref-value.mjs.map +1 -1
- package/fesm2022/aril-ui-business-trace-drawer.mjs +21 -3
- package/fesm2022/aril-ui-business-trace-drawer.mjs.map +1 -1
- package/fesm2022/aril-util-sync-active-tab-route.mjs.map +1 -1
- package/package.json +189 -189
- package/theme/layout/app/site-map/site-map-sidebar.component.html +121 -121
- package/ui-business/ref-value/src/ref-value.component.d.ts +1 -2
- package/ui-business/trace-drawer/src/app-log.service.d.ts +4 -1
- package/ui-business/trace-drawer/src/interfaces.d.ts +1 -0
- package/ui-business/trace-drawer/src/trace-drawer.component.d.ts +5 -1
|
@@ -1,121 +1,121 @@
|
|
|
1
|
-
<p-sidebar
|
|
2
|
-
[(visible)]="visible"
|
|
3
|
-
position="right"
|
|
4
|
-
[transitionOptions]="'.3s cubic-bezier(0, 0, 0.2, 1)'"
|
|
5
|
-
styleClass="layout-sitemap-sidebar w-full sm:w-30rem"
|
|
6
|
-
*transloco="let t; read: 'siteMap'">
|
|
7
|
-
<ng-template pTemplate="header">
|
|
8
|
-
<div class="flex align-items-center justify-content-between gap-2 w-full">
|
|
9
|
-
<div class="flex align-items-center gap-2">
|
|
10
|
-
<i class="pi pi-sitemap text-primary text-xl"></i>
|
|
11
|
-
<span class="font-bold text-lg">{{ t('siteMap') }}</span>
|
|
12
|
-
<span class="total-pages">{{ totalPages() }} {{ t('pages') }}</span>
|
|
13
|
-
</div>
|
|
14
|
-
</div>
|
|
15
|
-
</ng-template>
|
|
16
|
-
|
|
17
|
-
<div class="sitemap-content">
|
|
18
|
-
<div class="search-section grid p-fluid m-0">
|
|
19
|
-
<aril-text
|
|
20
|
-
[placeholder]="t('searchPages')"
|
|
21
|
-
[(ngModel)]="searchTerm"
|
|
22
|
-
(ngModelChange)="onSearchChange()"
|
|
23
|
-
class="col-10 m-0">
|
|
24
|
-
</aril-text>
|
|
25
|
-
@if (filteredNodes().length > 0) {
|
|
26
|
-
<div class="col-2 flex align-items-center m-0 p-0">
|
|
27
|
-
<fa-icon
|
|
28
|
-
[icon]="solidIcons.faAnglesDown"
|
|
29
|
-
size="xl"
|
|
30
|
-
style="color: var(--primary-color)"
|
|
31
|
-
class="col-1 cursor-pointer"
|
|
32
|
-
[pTooltip]="t('expandAll')"
|
|
33
|
-
tooltipPosition="top"
|
|
34
|
-
(click)="expandAll()">
|
|
35
|
-
</fa-icon>
|
|
36
|
-
<fa-icon
|
|
37
|
-
[icon]="solidIcons.faAnglesUp"
|
|
38
|
-
size="xl"
|
|
39
|
-
style="color: var(--red-500)"
|
|
40
|
-
class="col-1 ml-3 cursor-pointer"
|
|
41
|
-
[pTooltip]="t('collapseAll')"
|
|
42
|
-
tooltipPosition="top"
|
|
43
|
-
(click)="collapseAll()">
|
|
44
|
-
</fa-icon>
|
|
45
|
-
</div>
|
|
46
|
-
}
|
|
47
|
-
</div>
|
|
48
|
-
|
|
49
|
-
<!-- Site Map Tree -->
|
|
50
|
-
@if (filteredNodes().length > 0) {
|
|
51
|
-
<div class="sitemap-tree">
|
|
52
|
-
<p-scrollPanel [style]="{ width: '100%', height: '100%' }">
|
|
53
|
-
<div class="tree-container">
|
|
54
|
-
@for (node of filteredNodes(); track trackByKey($index, node)) {
|
|
55
|
-
<ng-container *ngTemplateOutlet="treeNodeTemplate; context: { $implicit: node, level: 0 }"></ng-container>
|
|
56
|
-
}
|
|
57
|
-
</div>
|
|
58
|
-
</p-scrollPanel>
|
|
59
|
-
</div>
|
|
60
|
-
} @else {
|
|
61
|
-
<div class="empty-state">
|
|
62
|
-
<div class="empty-content">
|
|
63
|
-
<i class="pi pi-sitemap empty-icon"></i>
|
|
64
|
-
<h3 class="empty-title">
|
|
65
|
-
{{ searchTerm() ? t('noSearchResults') : t('noPages') }}
|
|
66
|
-
</h3>
|
|
67
|
-
<p class="empty-message">
|
|
68
|
-
{{ searchTerm() ? t('tryDifferentKeywords') : '' }}
|
|
69
|
-
</p>
|
|
70
|
-
@if (searchTerm()) {
|
|
71
|
-
<aril-button
|
|
72
|
-
[label]="t('clearSearch')"
|
|
73
|
-
icon="TIMES"
|
|
74
|
-
color="secondary"
|
|
75
|
-
[outlined]="true"
|
|
76
|
-
size="sm"
|
|
77
|
-
(clickEvent)="searchTerm.set(''); onSearchChange()">
|
|
78
|
-
</aril-button>
|
|
79
|
-
}
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
<!-- Recursive Tree Node Template -->
|
|
85
|
-
<ng-template #treeNodeTemplate let-node let-level="level">
|
|
86
|
-
<div class="tree-node" [style.margin-left.px]="level * 20">
|
|
87
|
-
<div
|
|
88
|
-
class="node-item"
|
|
89
|
-
[class.has-children]="node.children && node.children.length > 0"
|
|
90
|
-
[class.is-page]="node.routerLink"
|
|
91
|
-
[routerLink]="node.routerLink"
|
|
92
|
-
(click)="!node.routerLink ? toggleNode(node) : (visible = false)">
|
|
93
|
-
<div class="node-content">
|
|
94
|
-
@if (node.children && node.children.length > 0) {
|
|
95
|
-
<div class="toggle-btn" (click)="$event.stopPropagation(); toggleNode(node)">
|
|
96
|
-
<i class="pi" [class.pi-chevron-right]="!node.expanded" [class.pi-chevron-down]="node.expanded"></i>
|
|
97
|
-
</div>
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@if (node.icon) {
|
|
101
|
-
<i class="node-icon" [class]="node.icon"></i>
|
|
102
|
-
}
|
|
103
|
-
<span class="node-label">{{ node.label | translateJson }}</span>
|
|
104
|
-
|
|
105
|
-
@if (node.routerLink) {
|
|
106
|
-
<i class="external-icon pi pi-external-link"></i>
|
|
107
|
-
}
|
|
108
|
-
</div>
|
|
109
|
-
</div>
|
|
110
|
-
|
|
111
|
-
<!-- Recursive Children -->
|
|
112
|
-
@if (node.children && node.expanded) {
|
|
113
|
-
@for (child of node.children; track trackByKey($index, child)) {
|
|
114
|
-
<ng-container
|
|
115
|
-
*ngTemplateOutlet="treeNodeTemplate; context: { $implicit: child, level: level + 1 }"></ng-container>
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
</div>
|
|
119
|
-
</ng-template>
|
|
120
|
-
</div>
|
|
121
|
-
</p-sidebar>
|
|
1
|
+
<p-sidebar
|
|
2
|
+
[(visible)]="visible"
|
|
3
|
+
position="right"
|
|
4
|
+
[transitionOptions]="'.3s cubic-bezier(0, 0, 0.2, 1)'"
|
|
5
|
+
styleClass="layout-sitemap-sidebar w-full sm:w-30rem"
|
|
6
|
+
*transloco="let t; read: 'siteMap'">
|
|
7
|
+
<ng-template pTemplate="header">
|
|
8
|
+
<div class="flex align-items-center justify-content-between gap-2 w-full">
|
|
9
|
+
<div class="flex align-items-center gap-2">
|
|
10
|
+
<i class="pi pi-sitemap text-primary text-xl"></i>
|
|
11
|
+
<span class="font-bold text-lg">{{ t('siteMap') }}</span>
|
|
12
|
+
<span class="total-pages">{{ totalPages() }} {{ t('pages') }}</span>
|
|
13
|
+
</div>
|
|
14
|
+
</div>
|
|
15
|
+
</ng-template>
|
|
16
|
+
|
|
17
|
+
<div class="sitemap-content">
|
|
18
|
+
<div class="search-section grid p-fluid m-0">
|
|
19
|
+
<aril-text
|
|
20
|
+
[placeholder]="t('searchPages')"
|
|
21
|
+
[(ngModel)]="searchTerm"
|
|
22
|
+
(ngModelChange)="onSearchChange()"
|
|
23
|
+
class="col-10 m-0">
|
|
24
|
+
</aril-text>
|
|
25
|
+
@if (filteredNodes().length > 0) {
|
|
26
|
+
<div class="col-2 flex align-items-center m-0 p-0">
|
|
27
|
+
<fa-icon
|
|
28
|
+
[icon]="solidIcons.faAnglesDown"
|
|
29
|
+
size="xl"
|
|
30
|
+
style="color: var(--primary-color)"
|
|
31
|
+
class="col-1 cursor-pointer"
|
|
32
|
+
[pTooltip]="t('expandAll')"
|
|
33
|
+
tooltipPosition="top"
|
|
34
|
+
(click)="expandAll()">
|
|
35
|
+
</fa-icon>
|
|
36
|
+
<fa-icon
|
|
37
|
+
[icon]="solidIcons.faAnglesUp"
|
|
38
|
+
size="xl"
|
|
39
|
+
style="color: var(--red-500)"
|
|
40
|
+
class="col-1 ml-3 cursor-pointer"
|
|
41
|
+
[pTooltip]="t('collapseAll')"
|
|
42
|
+
tooltipPosition="top"
|
|
43
|
+
(click)="collapseAll()">
|
|
44
|
+
</fa-icon>
|
|
45
|
+
</div>
|
|
46
|
+
}
|
|
47
|
+
</div>
|
|
48
|
+
|
|
49
|
+
<!-- Site Map Tree -->
|
|
50
|
+
@if (filteredNodes().length > 0) {
|
|
51
|
+
<div class="sitemap-tree">
|
|
52
|
+
<p-scrollPanel [style]="{ width: '100%', height: '100%' }">
|
|
53
|
+
<div class="tree-container">
|
|
54
|
+
@for (node of filteredNodes(); track trackByKey($index, node)) {
|
|
55
|
+
<ng-container *ngTemplateOutlet="treeNodeTemplate; context: { $implicit: node, level: 0 }"></ng-container>
|
|
56
|
+
}
|
|
57
|
+
</div>
|
|
58
|
+
</p-scrollPanel>
|
|
59
|
+
</div>
|
|
60
|
+
} @else {
|
|
61
|
+
<div class="empty-state">
|
|
62
|
+
<div class="empty-content">
|
|
63
|
+
<i class="pi pi-sitemap empty-icon"></i>
|
|
64
|
+
<h3 class="empty-title">
|
|
65
|
+
{{ searchTerm() ? t('noSearchResults') : t('noPages') }}
|
|
66
|
+
</h3>
|
|
67
|
+
<p class="empty-message">
|
|
68
|
+
{{ searchTerm() ? t('tryDifferentKeywords') : '' }}
|
|
69
|
+
</p>
|
|
70
|
+
@if (searchTerm()) {
|
|
71
|
+
<aril-button
|
|
72
|
+
[label]="t('clearSearch')"
|
|
73
|
+
icon="TIMES"
|
|
74
|
+
color="secondary"
|
|
75
|
+
[outlined]="true"
|
|
76
|
+
size="sm"
|
|
77
|
+
(clickEvent)="searchTerm.set(''); onSearchChange()">
|
|
78
|
+
</aril-button>
|
|
79
|
+
}
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
<!-- Recursive Tree Node Template -->
|
|
85
|
+
<ng-template #treeNodeTemplate let-node let-level="level">
|
|
86
|
+
<div class="tree-node" [style.margin-left.px]="level * 20">
|
|
87
|
+
<div
|
|
88
|
+
class="node-item"
|
|
89
|
+
[class.has-children]="node.children && node.children.length > 0"
|
|
90
|
+
[class.is-page]="node.routerLink"
|
|
91
|
+
[routerLink]="node.routerLink"
|
|
92
|
+
(click)="!node.routerLink ? toggleNode(node) : (visible = false)">
|
|
93
|
+
<div class="node-content">
|
|
94
|
+
@if (node.children && node.children.length > 0) {
|
|
95
|
+
<div class="toggle-btn" (click)="$event.stopPropagation(); toggleNode(node)">
|
|
96
|
+
<i class="pi" [class.pi-chevron-right]="!node.expanded" [class.pi-chevron-down]="node.expanded"></i>
|
|
97
|
+
</div>
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@if (node.icon) {
|
|
101
|
+
<i class="node-icon" [class]="node.icon"></i>
|
|
102
|
+
}
|
|
103
|
+
<span class="node-label">{{ node.label | translateJson }}</span>
|
|
104
|
+
|
|
105
|
+
@if (node.routerLink) {
|
|
106
|
+
<i class="external-icon pi pi-external-link"></i>
|
|
107
|
+
}
|
|
108
|
+
</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<!-- Recursive Children -->
|
|
112
|
+
@if (node.children && node.expanded) {
|
|
113
|
+
@for (child of node.children; track trackByKey($index, child)) {
|
|
114
|
+
<ng-container
|
|
115
|
+
*ngTemplateOutlet="treeNodeTemplate; context: { $implicit: child, level: level + 1 }"></ng-container>
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
</div>
|
|
119
|
+
</ng-template>
|
|
120
|
+
</div>
|
|
121
|
+
</p-sidebar>
|
|
@@ -13,9 +13,8 @@ export declare class RefValueComponent {
|
|
|
13
13
|
'font-size': string;
|
|
14
14
|
'text-decoration': string;
|
|
15
15
|
};
|
|
16
|
-
get url(): string;
|
|
17
16
|
protected getDisplayValue(): string;
|
|
18
|
-
protected
|
|
17
|
+
protected getRouterLink(): string;
|
|
19
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<RefValueComponent, never>;
|
|
20
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<RefValueComponent, "aril-ref-value", never, { "overlayPanelShow": { "alias": "overlayPanelShow"; "required": false; "isSignal": true; }; "assetId": { "alias": "assetId"; "required": true; "isSignal": true; }; "valueDesc": { "alias": "valueDesc"; "required": true; "isSignal": true; }; "detailPageUrl": { "alias": "detailPageUrl"; "required": true; "isSignal": true; }; "target": { "alias": "target"; "required": false; "isSignal": true; }; }, { "clickEvent": "clickEvent"; }, never, never, true, never>;
|
|
21
20
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { RestClient, ServiceCallStateMap, ServiceResponse } from 'aril/http';
|
|
3
|
-
import { AppLogSearchRequest, AppLogSearchResponse } from './interfaces';
|
|
3
|
+
import { AppLogRefValues, AppLogSearchRequest, AppLogSearchResponse } from './interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AppLogService extends RestClient {
|
|
6
6
|
states: ServiceCallStateMap<AppLogService>;
|
|
7
7
|
searchByTraceId(req: AppLogSearchRequest): Observable<ServiceResponse<AppLogSearchResponse>>;
|
|
8
|
+
getRefValues(req: {
|
|
9
|
+
traceId: string;
|
|
10
|
+
}): Observable<ServiceResponse<AppLogRefValues>>;
|
|
8
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppLogService, never>;
|
|
9
12
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppLogService>;
|
|
10
13
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import 'aril/util/primitive-extensions';
|
|
3
|
-
import { ApisixHit, AppLogItem } from './interfaces';
|
|
3
|
+
import { ApisixHit, AppLogItem, AppLogRefValues } from './interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
type Position = 'right' | 'left';
|
|
6
6
|
type Severity = 'success' | 'secondary' | 'info' | 'warning' | 'danger' | 'contrast' | undefined;
|
|
@@ -29,12 +29,16 @@ export declare class TraceDrawerComponent {
|
|
|
29
29
|
protected readonly appLogsLoadingMore: import("@angular/core").WritableSignal<boolean>;
|
|
30
30
|
protected readonly appLogsTotal: import("@angular/core").WritableSignal<number>;
|
|
31
31
|
protected readonly appLogsPage: import("@angular/core").WritableSignal<number>;
|
|
32
|
+
protected readonly refValues: import("@angular/core").WritableSignal<AppLogRefValues>;
|
|
33
|
+
protected readonly refValueEntries: import("@angular/core").Signal<[string, string[]][]>;
|
|
32
34
|
protected readonly hasMore: import("@angular/core").Signal<boolean>;
|
|
33
35
|
protected readonly appLogsHasMore: import("@angular/core").Signal<boolean>;
|
|
34
36
|
private readonly request;
|
|
35
37
|
private readonly appLogsRequest;
|
|
38
|
+
private readonly refValuesRequest;
|
|
36
39
|
private readonly response;
|
|
37
40
|
private readonly appLogsResponse;
|
|
41
|
+
private readonly refValuesResponse;
|
|
38
42
|
constructor();
|
|
39
43
|
protected loadMore(): void;
|
|
40
44
|
protected loadMoreAppLogs(): void;
|