@yuuvis/client-framework 2.0.4 → 2.0.6
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 +1 -48
- package/actions/lib/actions.module.d.ts +3 -0
- package/actions/lib/actions.service.d.ts +10 -0
- package/fesm2022/yuuvis-client-framework-actions.mjs +14 -1
- package/fesm2022/yuuvis-client-framework-actions.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-forms.mjs +146 -5
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-icons.mjs +4 -0
- package/fesm2022/yuuvis-client-framework-icons.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-list.mjs +42 -2
- package/fesm2022/yuuvis-client-framework-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs +4 -3
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs +31 -2
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-summary.mjs +6 -6
- package/fesm2022/yuuvis-client-framework-object-summary.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-simple-search.mjs +18 -13
- package/fesm2022/yuuvis-client-framework-simple-search.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-tile-list.mjs +2 -2
- package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
- package/forms/lib/elements/index.d.ts +1 -0
- package/forms/lib/elements/organization-set/organization-set.component.d.ts +62 -0
- package/forms/lib/forms.module.d.ts +3 -0
- package/icons/lib/icon.component.d.ts +4 -0
- package/lib/assets/i18n/de.json +3 -0
- package/lib/assets/i18n/en.json +3 -0
- package/list/lib/list-item.directive.d.ts +18 -0
- package/list/lib/list.component.d.ts +24 -2
- package/metadata-form/lib/metadata-form-element-registry.service.d.ts +13 -1
- package/metadata-form/lib/metadata-form-field/metadata-form-field.component.d.ts +5 -0
- package/metadata-form/lib/object-metadata-element-error.directive.d.ts +5 -1
- package/metadata-form/lib/object-metadata-element-label.directive.d.ts +8 -0
- package/package.json +5 -5
- package/simple-search/lib/simple-search/simple-search.component.d.ts +3 -4
package/lib/assets/i18n/de.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"yuv.form.element.datetime.calendar.cancel": "Abbrechen",
|
|
29
29
|
"yuv.form.element.datetime.calendar.select": "Auswählen",
|
|
30
30
|
"yuv.form.element.datetime.calendar.today": "Heute",
|
|
31
|
+
"yuv.form.element.organization-set.classify.icon.title": "",
|
|
31
32
|
"yuv.form.element.organization.classify.icon.title": "",
|
|
32
33
|
"yuv.form.element.organization.user.not-found": "Benutzer nicht gefunden",
|
|
33
34
|
"yuv.form.element.range-select-date.custom.overlay.button.apply": "Anwenden",
|
|
@@ -97,6 +98,8 @@
|
|
|
97
98
|
"yuv.object-summary.load.error": "",
|
|
98
99
|
"yuv.sequence-list.form.nextAssignee": "Empfänger",
|
|
99
100
|
"yuv.sequence-list.form.task": "Aufgabe",
|
|
101
|
+
"yuv.simple-search.label": "Suchen",
|
|
102
|
+
"yuv.simple-search.submit": "Suche absenden",
|
|
100
103
|
"yuv.tile-config.button.close": "Schließen",
|
|
101
104
|
"yuv.tile-config.button.save": "Speichern",
|
|
102
105
|
"yuv.tile-config.details.empty.description": "",
|
package/lib/assets/i18n/en.json
CHANGED
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"yuv.form.element.datetime.calendar.cancel": "Cancel",
|
|
29
29
|
"yuv.form.element.datetime.calendar.select": "Select",
|
|
30
30
|
"yuv.form.element.datetime.calendar.today": "Today",
|
|
31
|
+
"yuv.form.element.organization-set.classify.icon.title": "",
|
|
31
32
|
"yuv.form.element.organization.classify.icon.title": "",
|
|
32
33
|
"yuv.form.element.organization.user.not-found": "User not found",
|
|
33
34
|
"yuv.form.element.range-select-date.custom.overlay.button.apply": "Apply",
|
|
@@ -97,6 +98,8 @@
|
|
|
97
98
|
"yuv.object-summary.load.error": "",
|
|
98
99
|
"yuv.sequence-list.form.nextAssignee": "Recipient",
|
|
99
100
|
"yuv.sequence-list.form.task": "Task",
|
|
101
|
+
"yuv.simple-search.label": "Search",
|
|
102
|
+
"yuv.simple-search.submit": "Submit search",
|
|
100
103
|
"yuv.tile-config.button.close": "Close",
|
|
101
104
|
"yuv.tile-config.button.save": "Save",
|
|
102
105
|
"yuv.tile-config.details.empty.description": "",
|
|
@@ -1,10 +1,28 @@
|
|
|
1
1
|
import { Highlightable } from '@angular/cdk/a11y';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Directive for list items. It is used in the `yuvList` component
|
|
5
|
+
* to keep track of active and selected items. Every element with this
|
|
6
|
+
* directive will be treated as a list item and can be selected and focused.
|
|
7
|
+
*
|
|
8
|
+
*```html
|
|
9
|
+
* <yuv-list (itemSelect)="itemSelected($event)">
|
|
10
|
+
* <div yuvListItem>Entry #1</div>
|
|
11
|
+
* <div yuvListItem>Entry #2</div>
|
|
12
|
+
* </yuv-list>
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
3
15
|
export declare class ListItemDirective implements Highlightable {
|
|
4
16
|
#private;
|
|
5
17
|
onClick?: (evt: MouseEvent) => void;
|
|
6
18
|
disabled?: boolean | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* Whether the item is active or not.
|
|
21
|
+
*/
|
|
7
22
|
active: import("@angular/core").InputSignal<boolean>;
|
|
23
|
+
/**
|
|
24
|
+
* Whether the item is selected or not.
|
|
25
|
+
*/
|
|
8
26
|
selected: import("@angular/core").InputSignal<boolean>;
|
|
9
27
|
selectedInput: import("@angular/core").WritableSignal<any>;
|
|
10
28
|
activeInput: import("@angular/core").WritableSignal<any>;
|
|
@@ -3,10 +3,10 @@ import { ListItemDirective } from './list-item.directive';
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
5
|
* Component rendering a simple list of items. It supports keyboard
|
|
6
|
-
* navigation as well as
|
|
6
|
+
* navigation as well as accessibility. To create a list just wrap
|
|
7
7
|
* `yuvListItem` elements into this component:
|
|
8
8
|
*
|
|
9
|
-
* ```
|
|
9
|
+
* ```html
|
|
10
10
|
* <yuv-list (itemSelect)="itemSelected($event)">
|
|
11
11
|
* <div yuvListItem>Entry #1</div>
|
|
12
12
|
* <div yuvListItem>Entry #2</div>
|
|
@@ -21,12 +21,34 @@ export declare class ListComponent implements OnDestroy {
|
|
|
21
21
|
private _keyManager;
|
|
22
22
|
private _selection;
|
|
23
23
|
private _lastSelection?;
|
|
24
|
+
/**
|
|
25
|
+
* If `true`, multiple items can be selected at once.
|
|
26
|
+
*/
|
|
24
27
|
multiselect: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* If `true`, the component will handle selection itself. This means that
|
|
30
|
+
* the parent component will be responsible for styling the selected and
|
|
31
|
+
* focused items. If `false`, the component will take care of visualizing
|
|
32
|
+
* the selection and focus states.
|
|
33
|
+
* @default false
|
|
34
|
+
*/
|
|
25
35
|
selfHandleSelection: import("@angular/core").InputSignal<boolean>;
|
|
36
|
+
/**
|
|
37
|
+
* Emits the selected items indices.
|
|
38
|
+
* @type {output<number[]>}
|
|
39
|
+
*/
|
|
26
40
|
itemSelect: import("@angular/core").OutputEmitterRef<number[]>;
|
|
41
|
+
/**
|
|
42
|
+
* Emits the index of the item that has focus.
|
|
43
|
+
* @type {output<number>}
|
|
44
|
+
*/
|
|
27
45
|
itemFocus: import("@angular/core").OutputEmitterRef<number>;
|
|
28
46
|
selectOnEnter: boolean;
|
|
29
47
|
horizontal: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* If `true`, the list will not allow selection of items.
|
|
50
|
+
* This is useful for lists that are used for display purposes only.
|
|
51
|
+
*/
|
|
30
52
|
disableSelection: import("@angular/core").InputSignal<boolean>;
|
|
31
53
|
select(index: number, shiftKey?: boolean, ctrlKey?: boolean): void;
|
|
32
54
|
/**
|
|
@@ -2,7 +2,19 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { Situation } from '@yuuvis/client-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Object forms are used to render and edit metadata of DMS objects. Each property
|
|
6
|
+
* of an object can be rendered in a diffenrent way, depending on the type of the property.
|
|
7
|
+
* This service allows to register and retrieve templates for rendering these form elements.
|
|
8
|
+
*
|
|
9
|
+
* You can register templates for different situations like EDIT, SEARCH, and CREATE.
|
|
10
|
+
* The templates will then be used to render the form elements in the object form component.
|
|
11
|
+
*
|
|
12
|
+
* So based on the property type you can register custom templates for rendering certain
|
|
13
|
+
* form elements. This is useful if you want to render a property in a different way.
|
|
14
|
+
*
|
|
15
|
+
* Example:
|
|
16
|
+
* Having a number property representing a rating, you might want to render it as
|
|
17
|
+
* a list of stars instead of a simple input field.
|
|
6
18
|
*/
|
|
7
19
|
export declare class MetadataFormElementRegistry {
|
|
8
20
|
private _defaults;
|
|
@@ -3,6 +3,11 @@ import { ObjectTypeField } from '@yuuvis/client-core';
|
|
|
3
3
|
import { MetadataFormFieldContext } from './metadata-form-field.interface';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "@yuuvis/client-framework/common";
|
|
6
|
+
/**
|
|
7
|
+
* Component to render a metadata form field within an object form. These forms are
|
|
8
|
+
* created to render and edit metadata of DMS objects. This component is used as a wrapper
|
|
9
|
+
* for the actual form element, which is defined by the `formField` input.
|
|
10
|
+
*/
|
|
6
11
|
export declare class MetadataFormFieldComponent {
|
|
7
12
|
#private;
|
|
8
13
|
elementTemplate: import("@angular/core").WritableSignal<TemplateRef<any> | undefined>;
|
|
@@ -2,7 +2,11 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { ObjectFormControl } from '@yuuvis/client-core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
/**
|
|
5
|
-
* Directive to apply an object-form related error to
|
|
5
|
+
* Directive to apply an object-form related error to as inner text to an element.
|
|
6
|
+
* This could be used to render objec tform related errors in a custom element like <mat-error>.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <mat-error [yuvObjectMetadataElementError]="myControl"></mat-error>
|
|
6
10
|
*/
|
|
7
11
|
export declare class ObjectMetadataElementErrorDirective implements OnInit {
|
|
8
12
|
#private;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { AbstractControl } from '@angular/forms';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Directive to apply styles to an object metadata element label based on its control status.
|
|
6
|
+
* Depending on the state of the control (dirty, error), it will add or remove specific classes
|
|
7
|
+
* to the label element. Thes clases could then be used to style the label accordingly.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* <mat-label [yuvObjectMetadataElementLabel]="myControl">My Label</mat-label>
|
|
11
|
+
*/
|
|
4
12
|
export declare class ObjectMetadataElementLabelDirective implements OnInit {
|
|
5
13
|
#private;
|
|
6
14
|
yuvObjectMetadataElementLabel: import("@angular/core").InputSignal<AbstractControl<any, any> | undefined>;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuuvis/client-framework",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.6",
|
|
4
4
|
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
7
7
|
"@angular/cdk": "^19.2.15",
|
|
8
8
|
"@angular/common": "^19.2.1",
|
|
9
9
|
"@angular/core": "^19.2.1",
|
|
10
|
-
"@yuuvis/client-core": "^2.0.
|
|
10
|
+
"@yuuvis/client-core": "^2.0.6",
|
|
11
|
+
"@yuuvis/client-shell-core": "^2.0.6",
|
|
11
12
|
"modern-normalize": "^3.0.1"
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
15
|
"@angular/material": "^19.2.15",
|
|
15
16
|
"@ngrx/signals": "^19.2.0",
|
|
16
|
-
"@yuuvis/
|
|
17
|
-
"@yuuvis/
|
|
18
|
-
"@yuuvis/media-viewer": "^1.0.0",
|
|
17
|
+
"@yuuvis/material": "2.0.6",
|
|
18
|
+
"@yuuvis/media-viewer": "^2.0.0",
|
|
19
19
|
"angular-split": "^19.0.0",
|
|
20
20
|
"tslib": "^2.3.0"
|
|
21
21
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import { FormGroup } from '@angular/forms';
|
|
3
|
-
import { SearchQuery } from '@yuuvis/client-core';
|
|
3
|
+
import { SearchQuery, TranslateService } from '@yuuvis/client-core';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export interface ObjectTypeAggregation {
|
|
6
6
|
/**
|
|
@@ -17,9 +17,8 @@ export interface ObjectTypeAggregation {
|
|
|
17
17
|
count: number;
|
|
18
18
|
}
|
|
19
19
|
export declare class SimpleSearchComponent {
|
|
20
|
-
private
|
|
21
|
-
|
|
22
|
-
private systemService;
|
|
20
|
+
#private;
|
|
21
|
+
readonly translate: TranslateService;
|
|
23
22
|
private _query;
|
|
24
23
|
/**
|
|
25
24
|
* The search query
|