@yuuvis/client-framework 2.3.31 → 2.4.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/fesm2022/yuuvis-client-framework-forms.mjs +2 -2
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-relationship.mjs +994 -0
- package/fesm2022/yuuvis-client-framework-object-relationship.mjs.map +1 -0
- package/fesm2022/yuuvis-client-framework-renderer.mjs +15 -15
- package/fesm2022/yuuvis-client-framework-renderer.mjs.map +1 -1
- package/lib/assets/i18n/de.json +21 -0
- package/lib/assets/i18n/en.json +21 -0
- package/object-relationship/README.md +3 -0
- package/object-relationship/index.d.ts +4 -0
- package/object-relationship/lib/actions/add-relationship/add-relationship.component.d.ts +25 -0
- package/object-relationship/lib/actions/relationship-target-search/relationship-target-search.component.d.ts +23 -0
- package/object-relationship/lib/node-summary/node-summary.component.d.ts +26 -0
- package/object-relationship/lib/object-relationship-graph/object-relationship-graph.component.d.ts +30 -0
- package/object-relationship/lib/object-relationship-list/object-relationship-list-item/object-relationship-list-item.component.d.ts +14 -0
- package/object-relationship/lib/object-relationship-list/object-relationship-list.component.d.ts +13 -0
- package/object-relationship/lib/object-relationship.component.d.ts +24 -0
- package/object-relationship/lib/object-relationship.const.d.ts +7 -0
- package/object-relationship/lib/object-relationship.interface.d.ts +38 -0
- package/object-relationship/lib/object-relationship.module.d.ts +7 -0
- package/object-relationship/lib/object-relationship.service.d.ts +26 -0
- package/package.json +13 -8
- package/renderer/lib/renderer.directive.d.ts +0 -5
package/object-relationship/lib/object-relationship-graph/object-relationship-graph.component.d.ts
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
|
|
2
|
+
import { DmsObject } from '@yuuvis/client-core';
|
|
3
|
+
import { RelationshipComponentConfig, RelationshipComponentConfigNode } from './../object-relationship.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ObjectRelationshipGraphComponent implements AfterViewInit, OnDestroy {
|
|
6
|
+
#private;
|
|
7
|
+
private translate;
|
|
8
|
+
container: import("@angular/core").Signal<ElementRef<HTMLDivElement>>;
|
|
9
|
+
/**
|
|
10
|
+
* Configuration for the relations component.
|
|
11
|
+
*/
|
|
12
|
+
config: import("@angular/core").InputSignal<RelationshipComponentConfig>;
|
|
13
|
+
objectSelected: import("@angular/core").OutputEmitterRef<DmsObject | null>;
|
|
14
|
+
relationSelected: import("@angular/core").OutputEmitterRef<DmsObject | null>;
|
|
15
|
+
busy: import("@angular/core").WritableSignal<boolean>;
|
|
16
|
+
selectedRelation: import("@angular/core").WritableSignal<DmsObject | null>;
|
|
17
|
+
selectedObject: import("@angular/core").WritableSignal<DmsObject | null>;
|
|
18
|
+
detailsNode: import("@angular/core").Signal<{
|
|
19
|
+
object: DmsObject;
|
|
20
|
+
config: RelationshipComponentConfigNode;
|
|
21
|
+
} | null>;
|
|
22
|
+
download(): void;
|
|
23
|
+
addRelationship(): void;
|
|
24
|
+
deleteRelationship(): void;
|
|
25
|
+
expandSelected(): void;
|
|
26
|
+
ngAfterViewInit(): void;
|
|
27
|
+
ngOnDestroy(): void;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectRelationshipGraphComponent, never>;
|
|
29
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectRelationshipGraphComponent, "yuv-object-relationship-graph", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, { "objectSelected": "objectSelected"; "relationSelected": "relationSelected"; }, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ObjectLink } from '../../object-relationship.interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ObjectRelationshipListItemComponent {
|
|
4
|
+
#private;
|
|
5
|
+
private translate;
|
|
6
|
+
link: import("@angular/core").InputSignal<ObjectLink>;
|
|
7
|
+
direction: import("@angular/core").InputSignal<"in" | "out">;
|
|
8
|
+
enableSourceLink: import("@angular/core").InputSignal<boolean>;
|
|
9
|
+
enableTargetLink: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
deleteRelationship(): void;
|
|
11
|
+
open(link: string | undefined, skip: boolean): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectRelationshipListItemComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectRelationshipListItemComponent, "yuv-object-relationship-list-item", never, { "link": { "alias": "link"; "required": true; "isSignal": true; }; "direction": { "alias": "direction"; "required": true; "isSignal": true; }; "enableSourceLink": { "alias": "enableSourceLink"; "required": false; "isSignal": true; }; "enableTargetLink": { "alias": "enableTargetLink"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
package/object-relationship/lib/object-relationship-list/object-relationship-list.component.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ObjectLink, RelationshipComponentConfig } from '../object-relationship.interface';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ObjectRelationshipListComponent {
|
|
4
|
+
#private;
|
|
5
|
+
/**
|
|
6
|
+
* Configuration for the relations component.
|
|
7
|
+
*/
|
|
8
|
+
config: import("@angular/core").InputSignal<RelationshipComponentConfig>;
|
|
9
|
+
incomingLinks: import("@angular/core").WritableSignal<ObjectLink[]>;
|
|
10
|
+
outgoingLinks: import("@angular/core").WritableSignal<ObjectLink[]>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectRelationshipListComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectRelationshipListComponent, "yuv-object-relationship-list", never, { "config": { "alias": "config"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { DmsObject, Relationship } from '@yuuvis/client-core';
|
|
3
|
+
import { RelationshipComponentConfig } from './object-relationship.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ObjectRelationshipComponent {
|
|
6
|
+
#private;
|
|
7
|
+
mode: import("@angular/core").WritableSignal<"list" | "graph">;
|
|
8
|
+
empty: import("@angular/core").Signal<boolean | undefined>;
|
|
9
|
+
/**
|
|
10
|
+
* ID of the object to display relations for.
|
|
11
|
+
*/
|
|
12
|
+
objectId: import("@angular/core").InputSignal<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Configuration for the relations component.
|
|
15
|
+
*/
|
|
16
|
+
config: import("@angular/core").InputSignal<RelationshipComponentConfig>;
|
|
17
|
+
originObject: import("@angular/core").WritableSignal<DmsObject | null>;
|
|
18
|
+
supportedRelationships: import("@angular/core").Signal<Relationship[]>;
|
|
19
|
+
relationActions: import("@angular/core").InputSignal<TemplateRef<any> | null>;
|
|
20
|
+
toggleMode(): void;
|
|
21
|
+
addRelationship(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectRelationshipComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ObjectRelationshipComponent, "yuv-object-relationship", never, { "objectId": { "alias": "objectId"; "required": true; "isSignal": true; }; "config": { "alias": "config"; "required": true; "isSignal": true; }; "relationActions": { "alias": "relationActions"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Edge, Font, Node } from 'vis-network/standalone';
|
|
2
|
+
export declare const ROOT_NODE_SETTINGS: Partial<Node>;
|
|
3
|
+
export declare const ROOT_NODE_FONT_SETTINGS: Font;
|
|
4
|
+
export declare const NODE_SETTINGS: Partial<Node>;
|
|
5
|
+
export declare const NODE_FONT_SETTINGS: Font;
|
|
6
|
+
export declare const EDGE_SETTINGS: Partial<Edge>;
|
|
7
|
+
export declare const EDGE_FONT_SETTINGS: Font;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { SearchResult } from '@yuuvis/client-core';
|
|
2
|
+
import { Node } from 'vis-network/standalone';
|
|
3
|
+
export interface RelationshipComponentInput {
|
|
4
|
+
originId: string;
|
|
5
|
+
relations: SearchResult;
|
|
6
|
+
objects: SearchResult;
|
|
7
|
+
}
|
|
8
|
+
export interface RelationshipNode extends Node {
|
|
9
|
+
objectType: string;
|
|
10
|
+
}
|
|
11
|
+
export interface RelationshipComponentConfig {
|
|
12
|
+
rootNode: RelationshipComponentConfigNode;
|
|
13
|
+
nodes: RelationshipComponentConfigNode[];
|
|
14
|
+
}
|
|
15
|
+
export interface RelationshipComponentConfigNode {
|
|
16
|
+
objectType: string;
|
|
17
|
+
labelField: string;
|
|
18
|
+
descriptionField?: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
summaryFields?: string[];
|
|
21
|
+
objectLink?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface ObjectLink {
|
|
24
|
+
id: string;
|
|
25
|
+
type: {
|
|
26
|
+
id: string;
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
source: ObjectLinkNode;
|
|
30
|
+
target: ObjectLinkNode;
|
|
31
|
+
}
|
|
32
|
+
export interface ObjectLinkNode {
|
|
33
|
+
id: string;
|
|
34
|
+
label: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
icon?: string;
|
|
37
|
+
objectLink?: string;
|
|
38
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./object-relationship.component";
|
|
3
|
+
export declare class YuvObjectRelationshipModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YuvObjectRelationshipModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YuvObjectRelationshipModule, never, [typeof i1.ObjectRelationshipComponent], [typeof i1.ObjectRelationshipComponent]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YuvObjectRelationshipModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { DmsObject, SearchResult } from '@yuuvis/client-core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { RelationshipComponentInput } from './object-relationship.interface';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ObjectRelationshipService {
|
|
6
|
+
#private;
|
|
7
|
+
private translate;
|
|
8
|
+
objectId: import("@angular/core").WritableSignal<string | undefined>;
|
|
9
|
+
relations: import("@angular/core").WritableSignal<RelationshipComponentInput | undefined>;
|
|
10
|
+
busy: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
object: import("@angular/core").WritableSignal<DmsObject | null>;
|
|
12
|
+
constructor();
|
|
13
|
+
fetchRelations(originId: string): Observable<{
|
|
14
|
+
originId: string;
|
|
15
|
+
relations: SearchResult;
|
|
16
|
+
objects: SearchResult;
|
|
17
|
+
}>;
|
|
18
|
+
/**
|
|
19
|
+
* Deletes a relationship by its ID. Will ask for confirmation before deletion.
|
|
20
|
+
* @param relationId ID of the relationship to delete
|
|
21
|
+
* @param reloadResource Whether to reload the resource after deletion
|
|
22
|
+
*/
|
|
23
|
+
deleteRelationship(relationId: string, reloadResource: boolean): Observable<boolean>;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectRelationshipService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectRelationshipService>;
|
|
26
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuuvis/client-framework",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.1",
|
|
4
4
|
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,17 +8,18 @@
|
|
|
8
8
|
"@angular/common": "^19.2.1",
|
|
9
9
|
"@angular/core": "^19.2.1",
|
|
10
10
|
"angular-gridster2": "^19.0.0",
|
|
11
|
-
"@yuuvis/client-core": "^2.
|
|
12
|
-
"@yuuvis/client-shell-core": "^2.
|
|
11
|
+
"@yuuvis/client-core": "^2.4.1",
|
|
12
|
+
"@yuuvis/client-shell-core": "^2.4.1",
|
|
13
13
|
"ng-dynamic-component": "^10.8.2",
|
|
14
14
|
"modern-normalize": "^3.0.1"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@angular/material": "^19.2.15",
|
|
18
18
|
"@ngrx/signals": "^19.2.0",
|
|
19
|
-
"@yuuvis/material": "2.
|
|
19
|
+
"@yuuvis/material": "2.4.1",
|
|
20
20
|
"@yuuvis/media-viewer": "^2.0.11",
|
|
21
21
|
"angular-split": "^19.0.0",
|
|
22
|
+
"vis-network": "^10.0.2",
|
|
22
23
|
"tslib": "^2.3.0"
|
|
23
24
|
},
|
|
24
25
|
"sideEffects": false,
|
|
@@ -51,14 +52,14 @@
|
|
|
51
52
|
"types": "./common/index.d.ts",
|
|
52
53
|
"default": "./fesm2022/yuuvis-client-framework-common.mjs"
|
|
53
54
|
},
|
|
54
|
-
"./datepicker": {
|
|
55
|
-
"types": "./datepicker/index.d.ts",
|
|
56
|
-
"default": "./fesm2022/yuuvis-client-framework-datepicker.mjs"
|
|
57
|
-
},
|
|
58
55
|
"./forms": {
|
|
59
56
|
"types": "./forms/index.d.ts",
|
|
60
57
|
"default": "./fesm2022/yuuvis-client-framework-forms.mjs"
|
|
61
58
|
},
|
|
59
|
+
"./datepicker": {
|
|
60
|
+
"types": "./datepicker/index.d.ts",
|
|
61
|
+
"default": "./fesm2022/yuuvis-client-framework-datepicker.mjs"
|
|
62
|
+
},
|
|
62
63
|
"./icons": {
|
|
63
64
|
"types": "./icons/index.d.ts",
|
|
64
65
|
"default": "./fesm2022/yuuvis-client-framework-icons.mjs"
|
|
@@ -95,6 +96,10 @@
|
|
|
95
96
|
"types": "./object-preview/index.d.ts",
|
|
96
97
|
"default": "./fesm2022/yuuvis-client-framework-object-preview.mjs"
|
|
97
98
|
},
|
|
99
|
+
"./object-relationship": {
|
|
100
|
+
"types": "./object-relationship/index.d.ts",
|
|
101
|
+
"default": "./fesm2022/yuuvis-client-framework-object-relationship.mjs"
|
|
102
|
+
},
|
|
98
103
|
"./object-summary": {
|
|
99
104
|
"types": "./object-summary/index.d.ts",
|
|
100
105
|
"default": "./fesm2022/yuuvis-client-framework-object-summary.mjs"
|
|
@@ -6,13 +6,8 @@ import * as i0 from "@angular/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export declare class RendererDirective {
|
|
8
8
|
#private;
|
|
9
|
-
private readonly rendererService;
|
|
10
|
-
private readonly containerRef;
|
|
11
|
-
private readonly injector;
|
|
12
9
|
component: ComponentRef<RendererComponent>;
|
|
13
|
-
private _rendererInput?;
|
|
14
10
|
yuvRenderer: import("@angular/core").InputSignal<import("@yuuvis/client-core").ResolvedObjectConfigItem | undefined>;
|
|
15
|
-
private _alreadyRendered;
|
|
16
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<RendererDirective, never>;
|
|
17
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<RendererDirective, "[yuvRenderer]", never, { "yuvRenderer": { "alias": "yuvRenderer"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
13
|
}
|