@yuuvis/client-framework 2.3.24 → 2.3.26

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.
@@ -4,6 +4,7 @@ import { AbstractMatFormField } from '@yuuvis/client-framework/common';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class CatalogComponent extends AbstractMatFormField<string | string[]> implements ControlValueAccessor, OnInit, OnDestroy {
6
6
  #private;
7
+ private readonly translate;
7
8
  readonly: import("@angular/core").InputSignal<boolean>;
8
9
  multiple: import("@angular/core").InputSignal<boolean>;
9
10
  _options: import("@angular/core").WritableSignal<string[]>;
@@ -0,0 +1,43 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { ControlValueAccessor, FormControl } from '@angular/forms';
3
+ import { AbstractMatFormField } from '@yuuvis/client-framework/common';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Form element for selecting one or multiple i18n catalog values.
7
+ * Having a classification of `i18n:catalog[one, two, three]` configured on the metadata field
8
+ * will automatically populate the options from the catalog. The options will be translated
9
+ * using the catalogs static values adding a prefix, the property name an the value itself.
10
+ * E.g. for property name `status` and option value `open` the label key will be `catalog:status:open_label`.
11
+ */
12
+ export declare class I18nCatalogComponent extends AbstractMatFormField<string | string[]> implements ControlValueAccessor, OnInit, OnDestroy {
13
+ #private;
14
+ private readonly translate;
15
+ readonly: import("@angular/core").InputSignal<boolean>;
16
+ multiple: import("@angular/core").InputSignal<boolean>;
17
+ propertyName: import("@angular/core").InputSignal<string | undefined>;
18
+ _options: import("@angular/core").WritableSignal<{
19
+ label: string;
20
+ value: string;
21
+ }[]>;
22
+ options: import("@angular/core").InputSignal<string[]>;
23
+ /**
24
+ * Additional semantics for the form element.
25
+ */
26
+ classifications: import("@angular/core").InputSignal<string[]>;
27
+ /**
28
+ * Possibles values are `EDIT` (default),`SEARCH`,`CREATE`. In search situation validation of the form element will be turned off, so you are able to enter search terms that do not meet the elements validators.
29
+ */
30
+ situation: import("@angular/core").InputSignal<string | undefined>;
31
+ ngControl: import("@angular/forms").NgControl | null;
32
+ readonly fc: FormControl<string | string[] | null | undefined>;
33
+ constructor();
34
+ propagateChange: (_: any) => void;
35
+ writeValue(value: string | string[]): void;
36
+ registerOnChange(fn: any): void;
37
+ registerOnTouched(fn: any): void;
38
+ setDisabledState?(isDisabled: boolean): void;
39
+ ngOnInit(): void;
40
+ ngOnDestroy(): void;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<I18nCatalogComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<I18nCatalogComponent, "yuv-i18n-catalog", never, { "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "propertyName": { "alias": "propertyName"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "classifications": { "alias": "classifications"; "required": false; "isSignal": true; }; "situation": { "alias": "situation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
43
+ }
@@ -8,3 +8,5 @@ export * from './organization-set/organization-set.component';
8
8
  export * from './range-select-date/range-select-date.component';
9
9
  export * from './range-select-filesize/range-select-filesize.component';
10
10
  export * from './string/string.component';
11
+ export * from './catalog/catalog.component';
12
+ export * from './i18n-catalog/i18n-catalog.component';
@@ -6,11 +6,12 @@ import * as i4 from "./elements/datetime/datetime.component";
6
6
  import * as i5 from "./elements/datetime-range/datetime-range.component";
7
7
  import * as i6 from "./elements/organization/organization.component";
8
8
  import * as i7 from "./elements/catalog/catalog.component";
9
+ import * as i8 from "./elements/i18n-catalog/i18n-catalog.component";
9
10
  /**
10
11
  * Module for the forms library.
11
12
  */
12
13
  export declare class YuvFormsModule {
13
14
  static ɵfac: i0.ɵɵFactoryDeclaration<YuvFormsModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<YuvFormsModule, never, [typeof i1.StringComponent, typeof i2.NumberComponent, typeof i3.NumberRangeComponent, typeof i4.DatetimeComponent, typeof i5.DatetimeRangeComponent, typeof i6.OrganizationComponent, typeof i1.StringComponent, typeof i7.CatalogComponent], [typeof i1.StringComponent, typeof i2.NumberComponent, typeof i3.NumberRangeComponent, typeof i4.DatetimeComponent, typeof i5.DatetimeRangeComponent, typeof i6.OrganizationComponent, typeof i1.StringComponent, typeof i7.CatalogComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<YuvFormsModule, never, [typeof i1.StringComponent, typeof i2.NumberComponent, typeof i3.NumberRangeComponent, typeof i4.DatetimeComponent, typeof i5.DatetimeRangeComponent, typeof i6.OrganizationComponent, typeof i1.StringComponent, typeof i7.CatalogComponent, typeof i8.I18nCatalogComponent], [typeof i1.StringComponent, typeof i2.NumberComponent, typeof i3.NumberRangeComponent, typeof i4.DatetimeComponent, typeof i5.DatetimeRangeComponent, typeof i6.OrganizationComponent, typeof i1.StringComponent, typeof i7.CatalogComponent, typeof i8.I18nCatalogComponent]>;
15
16
  static ɵinj: i0.ɵɵInjectorDeclaration<YuvFormsModule>;
16
17
  }
@@ -40,7 +40,7 @@
40
40
  "yuv.object-form-element.error.string.classification.url": "Bitte geben Sie eine gültige URL ein.",
41
41
  "yuv.object-form-element.error.string.regex.nomatch": "Die Eingabe entspricht nicht den Vorgaben.",
42
42
  "yuv.object-form-element.error.string.whitespaces": "Die Eingabe enthält nur Leerzeichen.",
43
- "yuv.retention-badge.retain": "",
43
+ "yuv.retention-badge.retain": "Aufbewahrung {{from}} - {{until}}",
44
44
  "yuv.calendar.time.label": "Uhrzeit",
45
45
  "yuv.form.element.data.grid.copy": "Kopieren",
46
46
  "yuv.form.element.data.grid.edit": "Bearbeiten",
@@ -40,7 +40,7 @@
40
40
  "yuv.object-form-element.error.string.classification.url": "Please enter a valid URL.",
41
41
  "yuv.object-form-element.error.string.regex.nomatch": "The entry does not follow the specifications.",
42
42
  "yuv.object-form-element.error.string.whitespaces": "The entry contains only spaces.",
43
- "yuv.retention-badge.retain": "",
43
+ "yuv.retention-badge.retain": "Retention {{from}} – {{until}}",
44
44
  "yuv.calendar.time.label": "Time",
45
45
  "yuv.form.element.data.grid.copy": "Copy",
46
46
  "yuv.form.element.data.grid.edit": "Edit",
@@ -8,6 +8,7 @@ export declare class ObjectMetadataSectionComponent {
8
8
  section: import("@angular/core").InputSignal<ObjectMetadataSectionInput>;
9
9
  expandedInput: import("@angular/core").InputSignal<boolean>;
10
10
  elementExtensions: import("@angular/core").InputSignal<IObjectFormElementExtension[]>;
11
+ readonly: import("@angular/core").InputSignal<boolean | undefined>;
11
12
  expanded: import("@angular/core").WritableSignal<boolean>;
12
13
  formOptions: import("@angular/core").WritableSignal<{
13
14
  formModel: any;
@@ -18,5 +19,5 @@ export declare class ObjectMetadataSectionComponent {
18
19
  resetForm(): void;
19
20
  setFormPristine(): void;
20
21
  static ɵfac: i0.ɵɵFactoryDeclaration<ObjectMetadataSectionComponent, never>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<ObjectMetadataSectionComponent, "yuv-object-metadata-section", never, { "section": { "alias": "section"; "required": true; "isSignal": true; }; "expandedInput": { "alias": "expanded"; "required": false; "isSignal": true; }; "elementExtensions": { "alias": "elementExtensions"; "required": false; "isSignal": true; }; }, { "statusChanged": "statusChanged"; }, never, never, true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<ObjectMetadataSectionComponent, "yuv-object-metadata-section", never, { "section": { "alias": "section"; "required": true; "isSignal": true; }; "expandedInput": { "alias": "expanded"; "required": false; "isSignal": true; }; "elementExtensions": { "alias": "elementExtensions"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "statusChanged": "statusChanged"; }, never, never, true, never>;
22
23
  }
@@ -7,6 +7,8 @@ import * as i0 from "@angular/core";
7
7
  export declare class ObjectMetadataComponent implements OnDestroy {
8
8
  #private;
9
9
  translate: TranslateService;
10
+ user: import("@angular/core").Signal<import("@yuuvis/client-core").YuvUser | undefined>;
11
+ hasWritePermission: import("@angular/core").Signal<boolean>;
10
12
  objectForms: import("@angular/core").Signal<readonly ObjectFormComponent[]>;
11
13
  objectMetadataSectionForms: import("@angular/core").Signal<readonly ObjectMetadataSectionComponent[]>;
12
14
  _dmsObject: DmsObject | undefined;
@@ -10,6 +10,7 @@ export declare class ObjectFormComponent implements OnDestroy, AfterViewInit {
10
10
  fo?: ObjectFormOptions;
11
11
  formOptions: import("@angular/core").InputSignal<ObjectFormOptions | undefined>;
12
12
  inert: import("@angular/core").InputSignal<boolean | undefined>;
13
+ readonly: import("@angular/core").InputSignal<boolean | undefined>;
13
14
  elementExtensions: import("@angular/core").InputSignal<IObjectFormElementExtension[]>;
14
15
  /**
15
16
  * There are special scenarios where forms are within a form themselves.
@@ -56,5 +57,5 @@ export declare class ObjectFormComponent implements OnDestroy, AfterViewInit {
56
57
  ngAfterViewInit(): void;
57
58
  private unsubscribeAll;
58
59
  static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormComponent, never>;
59
- static ɵcmp: i0.ɵɵComponentDeclaration<ObjectFormComponent, "yuv-object-form", never, { "formOptions": { "alias": "formOptions"; "required": false; "isSignal": true; }; "inert": { "alias": "inert"; "required": false; "isSignal": true; }; "elementExtensions": { "alias": "elementExtensions"; "required": false; "isSignal": true; }; "isInnerTableForm": { "alias": "isInnerTableForm"; "required": false; "isSignal": true; }; }, { "statusChanged": "statusChanged"; "onFormReady": "onFormReady"; }, never, never, true, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<ObjectFormComponent, "yuv-object-form", never, { "formOptions": { "alias": "formOptions"; "required": false; "isSignal": true; }; "inert": { "alias": "inert"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "elementExtensions": { "alias": "elementExtensions"; "required": false; "isSignal": true; }; "isInnerTableForm": { "alias": "isInnerTableForm"; "required": false; "isSignal": true; }; }, { "statusChanged": "statusChanged"; "onFormReady": "onFormReady"; }, never, never, true, never>;
60
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-framework",
3
- "version": "2.3.24",
3
+ "version": "2.3.26",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -8,15 +8,15 @@
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.3.24",
12
- "@yuuvis/client-shell-core": "^2.3.24",
11
+ "@yuuvis/client-core": "^2.3.26",
12
+ "@yuuvis/client-shell-core": "^2.3.26",
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.3.24",
19
+ "@yuuvis/material": "2.3.26",
20
20
  "@yuuvis/media-viewer": "^2.0.11",
21
21
  "angular-split": "^19.0.0",
22
22
  "tslib": "^2.3.0"