@fuentis/phoenix-ui 0.0.9-alpha.154 → 0.0.9-alpha.156
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/fesm2022/fuentis-phoenix-ui.mjs +552 -238
- package/fesm2022/fuentis-phoenix-ui.mjs.map +1 -1
- package/lib/components/meta-form/utils/so-types.d.ts +1 -1
- package/lib/components/search-bar/search-bar.component.d.ts +65 -24
- package/lib/components/search-card/search-card.component.d.ts +34 -0
- package/lib/components/shell/shell.component.d.ts +8 -1
- package/lib/components/topbar/topbar.component.d.ts +12 -1
- package/lib/models/base-object.d.ts +14 -0
- package/lib/models/search-result.model.d.ts +13 -0
- package/lib/models/shell-config.model.d.ts +5 -0
- package/lib/utils/compl-types.utils.d.ts +22 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ export declare class SoTypes {
|
|
|
6
6
|
static readonly COMPL_APPLIED_RISK = "COMPL_APPLIED_RISK";
|
|
7
7
|
static readonly COMPL_APPLIED_CONTROL = "COMPL_APPLIED_CONTROL";
|
|
8
8
|
static resolveUrlType(typeLabelKey: SoTypes | string): SoTypesString.MODULES | SoTypesString.REQUIREMENTS | SoTypesString.MEASURES | SoTypesString.THREATS | SoTypesString.RISKS | SoTypesString.CONTROLS;
|
|
9
|
-
static resolveUrlTypeByString(stringType: SoTypesString | string): "
|
|
9
|
+
static resolveUrlTypeByString(stringType: SoTypesString | string): "COMPL_APPLIED_MEASURE" | "COMPL_APPLIED_REQUIREMENT" | "COMPL_APPLIED_THREAT" | "COMPL_APPLIED_CONTROL" | "COMPL_APPLIED_MODULE" | "COMPL_APPLIED_RISK";
|
|
10
10
|
}
|
|
11
11
|
export declare enum SoTypesString {
|
|
12
12
|
MODULES = "modules",
|
|
@@ -1,30 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { OverlayPanel } from 'primeng/overlaypanel';
|
|
4
|
+
import { SearchResult } from '../../models/search-result.model';
|
|
5
|
+
import { Subject, Subscription } from 'rxjs';
|
|
6
|
+
import { TreeNode } from 'primeng/api';
|
|
3
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
interface TogTreeContext {
|
|
9
|
+
tog: TreeNode;
|
|
10
|
+
togType: TreeNode;
|
|
11
|
+
togScope: TreeNode;
|
|
12
|
+
}
|
|
13
|
+
interface types {
|
|
14
|
+
title: string;
|
|
15
|
+
checkboxes: any;
|
|
16
|
+
}
|
|
4
17
|
export declare class SearchBarComponent {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
18
|
+
translate: TranslateService;
|
|
19
|
+
set nes(nes: any);
|
|
20
|
+
elm: ElementRef;
|
|
21
|
+
op?: OverlayPanel;
|
|
22
|
+
isOpen: boolean;
|
|
23
|
+
valueChanges: Subject<Event>;
|
|
24
|
+
inputEvent: Event;
|
|
25
|
+
clonedData?: SearchResult[];
|
|
26
|
+
searchData?: SearchResult[];
|
|
27
|
+
size: number;
|
|
28
|
+
textValue: string;
|
|
29
|
+
checkboxes: {
|
|
30
|
+
[key: string]: boolean;
|
|
31
|
+
};
|
|
32
|
+
valueSub$: Subscription;
|
|
12
33
|
tabIndex: number;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
34
|
+
trigg: boolean;
|
|
35
|
+
mocekedFilters: types[];
|
|
36
|
+
treeCollectionMap: Map<string, TogTreeContext>;
|
|
37
|
+
reloadSubscription$: Subscription;
|
|
38
|
+
inputText?: string;
|
|
39
|
+
ismsActive: import("@angular/core").InputSignal<boolean>;
|
|
40
|
+
assetActive: import("@angular/core").InputSignal<boolean>;
|
|
41
|
+
language: import("@angular/core").InputSignal<string>;
|
|
42
|
+
data: import("@angular/core").InputSignal<any>;
|
|
43
|
+
searchInputEvent: import("@angular/core").OutputEmitterRef<{
|
|
44
|
+
inputData: string;
|
|
45
|
+
size: number;
|
|
46
|
+
tabIndex: number;
|
|
47
|
+
}>;
|
|
48
|
+
linkClikEvent: import("@angular/core").OutputEmitterRef<SearchResult>;
|
|
49
|
+
constructor(translate: TranslateService);
|
|
50
|
+
populateFilters(data?: SearchResult[]): void;
|
|
51
|
+
expand(): void;
|
|
52
|
+
setLinkUrl(data: SearchResult | any): void;
|
|
53
|
+
onScroll(scrollObj: Event): void;
|
|
54
|
+
onClick(data: {
|
|
55
|
+
value: {
|
|
56
|
+
checked: boolean;
|
|
57
|
+
};
|
|
17
58
|
name: string;
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
onSearchQueryChange(): void;
|
|
59
|
+
}): void;
|
|
60
|
+
filterData(): void;
|
|
61
|
+
onParentClick(event: Event): void;
|
|
62
|
+
tabChange(data: {
|
|
63
|
+
index: number;
|
|
64
|
+
}): void;
|
|
65
|
+
setCheckBoxes(): void;
|
|
66
|
+
resolvePhase(type: string): "sc" | "ra" | "ia";
|
|
67
|
+
ngOnDestroy(): void;
|
|
28
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBarComponent, never>;
|
|
29
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "pho-search-bar", never, { "
|
|
69
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBarComponent, "pho-search-bar", never, { "ismsActive": { "alias": "ismsActive"; "required": false; "isSignal": true; }; "assetActive": { "alias": "assetActive"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; }, { "searchInputEvent": "searchInputEvent"; "linkClikEvent": "linkClikEvent"; }, never, never, true, never>;
|
|
30
70
|
}
|
|
71
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { CheckboxChangeEvent } from 'primeng/checkbox';
|
|
4
|
+
import { SearchResult } from '../../models/search-result.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
interface types {
|
|
7
|
+
title: string;
|
|
8
|
+
checkboxes: any;
|
|
9
|
+
}
|
|
10
|
+
export declare class SearchCardComponent {
|
|
11
|
+
translate: TranslateService;
|
|
12
|
+
searchData: SearchResult[] | any;
|
|
13
|
+
tab?: number;
|
|
14
|
+
mocekedFilters: types[];
|
|
15
|
+
checkboxes: {
|
|
16
|
+
[key: string]: boolean;
|
|
17
|
+
};
|
|
18
|
+
onScrollEvent: EventEmitter<Event>;
|
|
19
|
+
onSelectLinkEvent: EventEmitter<SearchResult>;
|
|
20
|
+
onSelectFilterEvent: EventEmitter<{
|
|
21
|
+
value: {
|
|
22
|
+
checked: boolean;
|
|
23
|
+
};
|
|
24
|
+
name: string;
|
|
25
|
+
}>;
|
|
26
|
+
language: import("@angular/core").InputSignal<string>;
|
|
27
|
+
capitalizedLanguage: import("@angular/core").Signal<string>;
|
|
28
|
+
onScroll(scrollObj: Event): void;
|
|
29
|
+
setLinkUrl(link: SearchResult): void;
|
|
30
|
+
onClick(event: CheckboxChangeEvent, name: string): void;
|
|
31
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchCardComponent, never>;
|
|
32
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchCardComponent, "pho-serach-card", never, { "searchData": { "alias": "searchData"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; "mocekedFilters": { "alias": "mocekedFilters"; "required": false; }; "checkboxes": { "alias": "checkboxes"; "required": false; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; }, { "onScrollEvent": "onScrollEvent"; "onSelectLinkEvent": "onSelectLinkEvent"; "onSelectFilterEvent": "onSelectFilterEvent"; }, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { ShellConfig } from '../../models/shell-config.model';
|
|
3
|
+
import { SearchResult } from '../../models/search-result.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class ShellComponent {
|
|
5
6
|
config: ShellConfig;
|
|
@@ -9,8 +10,14 @@ export declare class ShellComponent {
|
|
|
9
10
|
};
|
|
10
11
|
onDarkModeSelect: EventEmitter<any>;
|
|
11
12
|
onUserAction: EventEmitter<string>;
|
|
13
|
+
searchInputEvent: import("@angular/core").OutputEmitterRef<{
|
|
14
|
+
inputData: string;
|
|
15
|
+
size: number;
|
|
16
|
+
tabIndex: number;
|
|
17
|
+
}>;
|
|
18
|
+
linkClikEvent: import("@angular/core").OutputEmitterRef<SearchResult>;
|
|
12
19
|
toggleSidebar(): void;
|
|
13
20
|
selectDarkMode(): void;
|
|
14
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<ShellComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ShellComponent, "pho-shell", never, { "config": { "alias": "config"; "required": false; }; "isSidebarOpen": { "alias": "isSidebarOpen"; "required": false; }; "darkModeSelector": { "alias": "darkModeSelector"; "required": false; }; }, { "onDarkModeSelect": "onDarkModeSelect"; "onUserAction": "onUserAction"; }, never, ["*"], true, never>;
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ShellComponent, "pho-shell", never, { "config": { "alias": "config"; "required": false; }; "isSidebarOpen": { "alias": "isSidebarOpen"; "required": false; }; "darkModeSelector": { "alias": "darkModeSelector"; "required": false; }; }, { "onDarkModeSelect": "onDarkModeSelect"; "onUserAction": "onUserAction"; "searchInputEvent": "searchInputEvent"; "linkClikEvent": "linkClikEvent"; }, never, ["*"], true, never>;
|
|
16
23
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { User } from '../../models/shell-config.model';
|
|
3
|
+
import { SearchResult } from '../../models/search-result.model';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export interface TopbarModuleItem {
|
|
5
6
|
label: string;
|
|
@@ -37,6 +38,16 @@ export declare class TopbarComponent {
|
|
|
37
38
|
footerConfig: TopbarFooterConfig;
|
|
38
39
|
onDarkModeSelect: EventEmitter<void>;
|
|
39
40
|
onUserPopoverAction: EventEmitter<string>;
|
|
41
|
+
searchInputEvent: import("@angular/core").OutputEmitterRef<{
|
|
42
|
+
inputData: string;
|
|
43
|
+
size: number;
|
|
44
|
+
tabIndex: number;
|
|
45
|
+
}>;
|
|
46
|
+
linkClikEvent: import("@angular/core").OutputEmitterRef<SearchResult>;
|
|
47
|
+
searchResult: import("@angular/core").InputSignal<SearchResult[] | undefined>;
|
|
48
|
+
ismsActive: import("@angular/core").InputSignal<boolean | undefined>;
|
|
49
|
+
assetActive: import("@angular/core").InputSignal<boolean | undefined>;
|
|
50
|
+
language: import("@angular/core").InputSignal<string | undefined>;
|
|
40
51
|
openSidebarPanel(): void;
|
|
41
52
|
/** ✅ Zatvara sidebar */
|
|
42
53
|
closeSidebar(): void;
|
|
@@ -44,5 +55,5 @@ export declare class TopbarComponent {
|
|
|
44
55
|
goToHome(): void;
|
|
45
56
|
get bindImageUrl(): string;
|
|
46
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<TopbarComponent, never>;
|
|
47
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TopbarComponent, "pho-topbar", never, { "homeUrl": { "alias": "homeUrl"; "required": false; }; "user": { "alias": "user"; "required": false; }; "shortModuleName": { "alias": "shortModuleName"; "required": false; }; "topbarModulesMenu": { "alias": "topbarModulesMenu"; "required": false; }; "darkModeSelector": { "alias": "darkModeSelector"; "required": false; }; "footerConfig": { "alias": "footerConfig"; "required": false; }; }, { "onDarkModeSelect": "onDarkModeSelect"; "onUserPopoverAction": "onUserPopoverAction"; }, never, ["*"], true, never>;
|
|
58
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TopbarComponent, "pho-topbar", never, { "homeUrl": { "alias": "homeUrl"; "required": false; }; "user": { "alias": "user"; "required": false; }; "shortModuleName": { "alias": "shortModuleName"; "required": false; }; "topbarModulesMenu": { "alias": "topbarModulesMenu"; "required": false; }; "darkModeSelector": { "alias": "darkModeSelector"; "required": false; }; "footerConfig": { "alias": "footerConfig"; "required": false; }; "searchResult": { "alias": "searchResult"; "required": false; "isSignal": true; }; "ismsActive": { "alias": "ismsActive"; "required": false; "isSignal": true; }; "assetActive": { "alias": "assetActive"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; }, { "onDarkModeSelect": "onDarkModeSelect"; "onUserPopoverAction": "onUserPopoverAction"; "searchInputEvent": "searchInputEvent"; "linkClikEvent": "linkClikEvent"; }, never, ["*"], true, never>;
|
|
48
59
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class BaseObject {
|
|
2
|
+
name: string;
|
|
3
|
+
uuid: string;
|
|
4
|
+
constructor(partial: Partial<BaseObject>);
|
|
5
|
+
}
|
|
6
|
+
export declare class BaseObjectType {
|
|
7
|
+
id: number;
|
|
8
|
+
labelKey: string;
|
|
9
|
+
labelKeyValEn: string;
|
|
10
|
+
labelKeyValDe: string;
|
|
11
|
+
labelKeyValSr?: string;
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
constructor(partial: Partial<BaseObjectType>);
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { BaseObject, BaseObjectType } from './base-object';
|
|
2
|
+
export declare class SearchResult {
|
|
3
|
+
name: string;
|
|
4
|
+
title: string;
|
|
5
|
+
uuid: string;
|
|
6
|
+
type?: BaseObjectType;
|
|
7
|
+
entity?: BaseObject;
|
|
8
|
+
scopes?: BaseObject[];
|
|
9
|
+
asset?: BaseObject;
|
|
10
|
+
score?: number;
|
|
11
|
+
togType?: string;
|
|
12
|
+
constructor(partial: Partial<SearchResult>);
|
|
13
|
+
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { SearchResult } from './search-result.model';
|
|
1
2
|
export interface SidebarItem {
|
|
2
3
|
label: string;
|
|
3
4
|
path: string;
|
|
@@ -26,4 +27,8 @@ export interface ShellConfig {
|
|
|
26
27
|
user: User;
|
|
27
28
|
footerItem: TopbarItem[];
|
|
28
29
|
topbarModulesMenu: any[];
|
|
30
|
+
searchResult: SearchResult[];
|
|
31
|
+
ismsActive?: boolean;
|
|
32
|
+
assetActive?: boolean;
|
|
33
|
+
language?: string;
|
|
29
34
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum ComplItems {
|
|
2
|
+
COMPL_APPLIED_MODULES = "COMPL_APPLIED_MODULES",
|
|
3
|
+
COMPL_APPLIED_MEASURE = "COMPL_APPLIED_MEASURE",
|
|
4
|
+
COMPL_APPLIED_REQUIREMENT = "COMPL_APPLIED_REQUIREMENT",
|
|
5
|
+
COMPL_APPLIED_THREAT = "COMPL_APPLIED_THREAT",
|
|
6
|
+
COMPL_APPLIED_CONTROL = "COMPL_APPLIED_CONTROL",
|
|
7
|
+
COMPL_SCOPE = "COMPL_SCOPE",
|
|
8
|
+
COMPL_TOT_BUILDING = "COMPL_TOT_BUILDING",
|
|
9
|
+
COMPL_TOT_DOMAIN = "COMPL_TOT_DOMAIN",
|
|
10
|
+
COMPL_TOT_INFORMATION = "COMPL_TOT_INFORMATION",
|
|
11
|
+
COMPL_TOT_BUSINESS = "COMPL_TOT_BUSINESS_PROCESS",
|
|
12
|
+
COMPL_TOT_APPLICATION = "COMPL_TOT_APPLICATION",
|
|
13
|
+
COMPL_TOT_ITSYSETEM = "COMPL_TOT_IT_SYSTEM",
|
|
14
|
+
COMPL_TOT_NETWORK = "COMPL_TOT_NETWORK",
|
|
15
|
+
COMPL_TOT_EMPLOYEE = "COMPL_TOT_EMPLOYEE",
|
|
16
|
+
COMPL_TOT_INFRASTRUCTURE = "COMPL_TOT_INFRASTRUCTURE",
|
|
17
|
+
COMPL_TOT_OUTSORCING = "COMPL_TOT_OUTSORCING",
|
|
18
|
+
COMPL_TOT_PHYSICAL_FACILITY = "COMPL_TOT_PHYSICAL_FACILITY",
|
|
19
|
+
COMPL_TOT_ROOM = "COMPL_TOT_ROOM",
|
|
20
|
+
COMPL_TOGS = "COMPL_TOGS",
|
|
21
|
+
RISK = "RISK"
|
|
22
|
+
}
|