@yuuvis/client-framework 3.2.2 → 3.3.0
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 +124 -69
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-query-list.mjs +33 -9
- package/fesm2022/yuuvis-client-framework-query-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-simple-search.mjs +3 -1
- package/fesm2022/yuuvis-client-framework-simple-search.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-tile-list.mjs +7 -5
- package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
- package/package.json +5 -5
- package/types/yuuvis-client-framework-forms.d.ts +21 -11
- package/types/yuuvis-client-framework-query-list.d.ts +19 -2
- package/types/yuuvis-client-framework-tile-list.d.ts +4 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yuuvis/client-framework",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -8,16 +8,16 @@
|
|
|
8
8
|
"@angular/common": "^21.2.9",
|
|
9
9
|
"@angular/core": "^21.2.9",
|
|
10
10
|
"angular-gridster2": "^21.0.1",
|
|
11
|
-
"@yuuvis/client-core": "^3.
|
|
12
|
-
"@yuuvis/client-shell-core": "^3.
|
|
13
|
-
"@yuuvis/client-components": "^3.
|
|
11
|
+
"@yuuvis/client-core": "^3.3.0",
|
|
12
|
+
"@yuuvis/client-shell-core": "^3.3.0",
|
|
13
|
+
"@yuuvis/client-components": "^3.3.0",
|
|
14
14
|
"ng-dynamic-component": "^10.8.2",
|
|
15
15
|
"modern-normalize": "^3.0.1"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@angular/material": "^21.2.7",
|
|
19
19
|
"@ngrx/signals": "^21.1.0",
|
|
20
|
-
"@yuuvis/material": "^3.
|
|
20
|
+
"@yuuvis/material": "^3.3.0",
|
|
21
21
|
"@yuuvis/media-viewer": "^3.0.1",
|
|
22
22
|
"angular-split": "^20.0.0",
|
|
23
23
|
"vis-network": "^10.0.2",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_forms from '@angular/forms';
|
|
2
2
|
import { ControlValueAccessor, FormControl, Validator, FormGroup, ValidationErrors, AbstractControl } from '@angular/forms';
|
|
3
3
|
import * as _angular_core from '@angular/core';
|
|
4
|
-
import { OnInit, OnDestroy, ElementRef, AfterViewInit } from '@angular/core';
|
|
4
|
+
import { OnInit, OnDestroy, ElementRef, WritableSignal, AfterViewInit } from '@angular/core';
|
|
5
5
|
import { AbstractMatFormField } from '@yuuvis/client-framework/common';
|
|
6
6
|
import { TranslateService, Situation, ObjectFormControl, RangeValue, Operator, LocaleNumberPipe, FileSizePipe, OrganizationSetEntry, DateRange, FilesizeRange, FormattedMailTo } from '@yuuvis/client-core';
|
|
7
7
|
import { MetadataFormFieldContext } from '@yuuvis/client-framework/metadata-form';
|
|
@@ -11,7 +11,6 @@ import { MatChipInputEvent, MatChipEditedEvent } from '@angular/material/chips';
|
|
|
11
11
|
|
|
12
12
|
declare class CatalogComponent extends AbstractMatFormField<string | string[]> implements ControlValueAccessor, OnInit, OnDestroy {
|
|
13
13
|
#private;
|
|
14
|
-
private readonly translate;
|
|
15
14
|
readonly: _angular_core.InputSignal<boolean>;
|
|
16
15
|
multiple: _angular_core.InputSignal<boolean>;
|
|
17
16
|
_options: _angular_core.WritableSignal<{
|
|
@@ -24,15 +23,17 @@ declare class CatalogComponent extends AbstractMatFormField<string | string[]> i
|
|
|
24
23
|
*/
|
|
25
24
|
classifications: _angular_core.InputSignal<string[]>;
|
|
26
25
|
/**
|
|
27
|
-
* Possibles values are `EDIT` (default),`SEARCH`,`CREATE`. In search situation validation
|
|
26
|
+
* Possibles values are `EDIT` (default),`SEARCH`,`CREATE`. In search situation validation
|
|
27
|
+
* of the form element will be turned off, so you are able to enter search terms that do not
|
|
28
|
+
* meet the elements validators.
|
|
28
29
|
*/
|
|
29
30
|
situation: _angular_core.InputSignal<string | undefined>;
|
|
30
31
|
ngControl: _angular_forms.NgControl | null;
|
|
31
|
-
readonly
|
|
32
|
+
readonly formCtrl: FormControl<string | string[] | null | undefined>;
|
|
32
33
|
propagateChange: (_: any) => void;
|
|
33
34
|
writeValue(value: string | string[]): void;
|
|
34
35
|
registerOnChange(fn: any): void;
|
|
35
|
-
registerOnTouched(
|
|
36
|
+
registerOnTouched(): void;
|
|
36
37
|
setDisabledState?(isDisabled: boolean): void;
|
|
37
38
|
ngOnInit(): void;
|
|
38
39
|
ngOnDestroy(): void;
|
|
@@ -123,7 +124,7 @@ declare class DatetimeRangeComponent extends AbstractMatFormField<RangeValue<Dat
|
|
|
123
124
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatetimeRangeComponent, "yuv-datetime-range", never, { "withTimeInput": { "alias": "withTime"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "operator": { "alias": "operator"; "required": false; "isSignal": true; }; "situation": { "alias": "situation"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
124
125
|
}
|
|
125
126
|
|
|
126
|
-
declare class DatetimeComponent extends AbstractMatFormField<Date | null> implements ControlValueAccessor, OnInit {
|
|
127
|
+
declare class DatetimeComponent extends AbstractMatFormField<Date | string | null> implements ControlValueAccessor, OnInit {
|
|
127
128
|
#private;
|
|
128
129
|
private translate;
|
|
129
130
|
pickerCmp: _angular_core.Signal<DatepickerComponent>;
|
|
@@ -150,7 +151,7 @@ declare class DatetimeComponent extends AbstractMatFormField<Date | null> implem
|
|
|
150
151
|
withTime: _angular_core.InputSignal<boolean>;
|
|
151
152
|
openCalendar(): void;
|
|
152
153
|
propagateChange: (_: any) => void;
|
|
153
|
-
writeValue(value:
|
|
154
|
+
writeValue(value: string | Date): void;
|
|
154
155
|
registerOnChange(fn: () => void): void;
|
|
155
156
|
registerOnTouched(): void;
|
|
156
157
|
setDisabledState?(isDisabled: boolean): void;
|
|
@@ -160,15 +161,24 @@ declare class DatetimeComponent extends AbstractMatFormField<Date | null> implem
|
|
|
160
161
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DatetimeComponent, "yuv-datetime", never, { "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "onlyFutureDates": { "alias": "onlyFutureDates"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "calendar": { "alias": "calendar"; "required": false; "isSignal": true; }; "withTime": { "alias": "withTime"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
161
162
|
}
|
|
162
163
|
|
|
164
|
+
interface DynamicCatalogOption {
|
|
165
|
+
value: string;
|
|
166
|
+
label: string;
|
|
167
|
+
disabled: boolean;
|
|
168
|
+
invalid?: boolean;
|
|
169
|
+
}
|
|
170
|
+
interface SelectedDisplay {
|
|
171
|
+
value: string;
|
|
172
|
+
label: string;
|
|
173
|
+
invalid: boolean;
|
|
174
|
+
}
|
|
163
175
|
declare class DynamicCatalogComponent extends AbstractMatFormField<string | string[]> implements ControlValueAccessor, OnInit, OnDestroy {
|
|
164
176
|
#private;
|
|
165
177
|
catalog: _angular_core.InputSignal<string>;
|
|
166
178
|
readonly: _angular_core.InputSignal<boolean>;
|
|
167
179
|
multiple: _angular_core.InputSignal<boolean>;
|
|
168
|
-
options:
|
|
169
|
-
|
|
170
|
-
label: string;
|
|
171
|
-
}[] | undefined>;
|
|
180
|
+
options: WritableSignal<DynamicCatalogOption[]>;
|
|
181
|
+
selectedDisplay: _angular_core.Signal<SelectedDisplay[]>;
|
|
172
182
|
/**
|
|
173
183
|
* Possibles values are `EDIT` (default),`SEARCH`,`CREATE`. In search situation
|
|
174
184
|
* validation of the form element will be turned off, so you are able to enter
|
|
@@ -217,9 +217,11 @@ declare class QueryListComponent<T = any> {
|
|
|
217
217
|
* exceeds this value, pagination controls are shown and the user can navigate between
|
|
218
218
|
* pages via `changePage()` / `goToPage()`.
|
|
219
219
|
*
|
|
220
|
-
*
|
|
220
|
+
* Resolution order (see `effectivePageSize`): explicit `pageSize` input takes precedence,
|
|
221
|
+
* otherwise `(query as SearchQuery).size` is used if set, otherwise
|
|
222
|
+
* `SearchService.DEFAULT_QUERY_SIZE` is used.
|
|
221
223
|
*/
|
|
222
|
-
pageSize: _angular_core.InputSignal<number>;
|
|
224
|
+
pageSize: _angular_core.InputSignal<number | undefined>;
|
|
223
225
|
/**
|
|
224
226
|
* Enables mouse drag-to-select on list items.
|
|
225
227
|
*
|
|
@@ -274,6 +276,21 @@ declare class QueryListComponent<T = any> {
|
|
|
274
276
|
* (e.g. to show a visual indicator or adjust layout) without accessing internal state.
|
|
275
277
|
*/
|
|
276
278
|
dropInSize: _angular_core.Signal<number>;
|
|
279
|
+
/**
|
|
280
|
+
* Resolved page size used by both the `mat-paginator` and every server request.
|
|
281
|
+
*
|
|
282
|
+
* Falls back through three sources, in order:
|
|
283
|
+
* 1. The explicit `pageSize` input, when the consumer has provided one.
|
|
284
|
+
* 2. `(query as SearchQuery).size`, when the query is a `SearchQuery` object that
|
|
285
|
+
* already declares its own page size — keeps server response and paginator in
|
|
286
|
+
* sync when the consumer only configures the query.
|
|
287
|
+
* 3. `SearchService.DEFAULT_QUERY_SIZE` as the final default.
|
|
288
|
+
*
|
|
289
|
+
* Used internally to avoid the bug where `mat-paginator` and the server pageination
|
|
290
|
+
* use different page sizes (paginator showing e.g. "1-25 of 43" while `getPage()`
|
|
291
|
+
* asks the server for skip=50 — landing on an empty page).
|
|
292
|
+
*/
|
|
293
|
+
effectivePageSize: _angular_core.Signal<number>;
|
|
277
294
|
/**
|
|
278
295
|
* The final list of items rendered by the template.
|
|
279
296
|
*
|
|
@@ -154,9 +154,11 @@ declare class TileListComponent implements OnInit {
|
|
|
154
154
|
* this value, pagination controls appear. Reducing this number improves initial load
|
|
155
155
|
* time; increasing it reduces the need for pagination.
|
|
156
156
|
*
|
|
157
|
-
*
|
|
157
|
+
* When omitted, the inner `QueryListComponent` falls back to `(query as SearchQuery).size`
|
|
158
|
+
* if set, otherwise to `SearchService.DEFAULT_QUERY_SIZE` — keeping the paginator and
|
|
159
|
+
* the server in sync without requiring the consumer to set this input explicitly.
|
|
158
160
|
*/
|
|
159
|
-
pageSize: _angular_core.InputSignal<number>;
|
|
161
|
+
pageSize: _angular_core.InputSignal<number | undefined>;
|
|
160
162
|
/**
|
|
161
163
|
* Enables multi-selection mode.
|
|
162
164
|
*
|