@masterteam/components 0.0.335 → 0.0.336
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/assets/common.css +2 -2
- package/fesm2022/masterteam-components-business-fields.mjs +4 -4
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-entities.mjs +44 -44
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-formula.mjs +4 -4
- package/fesm2022/masterteam-components-formula.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +16 -5
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-treeselect-field.mjs +2 -2
- package/fesm2022/masterteam-components-treeselect-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +1 -1
- package/types/masterteam-components-select-field.d.ts +10 -3
package/package.json
CHANGED
|
@@ -1382,7 +1382,7 @@ declare class EntityAttachment {
|
|
|
1382
1382
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
1383
1383
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
1384
1384
|
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
1385
|
-
readonly value: _angular_core.InputSignal<string |
|
|
1385
|
+
readonly value: _angular_core.InputSignal<string | EntityAttachmentValue | EntityAttachmentItemValue | null | undefined>;
|
|
1386
1386
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
1387
1387
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
1388
1388
|
private readonly httpClient;
|
|
@@ -26,6 +26,11 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
|
|
|
26
26
|
dropdown: Select;
|
|
27
27
|
protected readonly panelStyle: _angular_core.WritableSignal<Record<string, string>>;
|
|
28
28
|
ngAfterViewInit(): void;
|
|
29
|
+
/**
|
|
30
|
+
* `false` marks a control that only looks like a field: a toolbar switcher, a
|
|
31
|
+
* view or version picker. It always holds a value, so it never gets the
|
|
32
|
+
* default clear button, even when bound to a reactive control.
|
|
33
|
+
*/
|
|
29
34
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
30
35
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
31
36
|
readonly label: _angular_core.InputSignal<string>;
|
|
@@ -50,8 +55,9 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
|
|
|
50
55
|
readonly filterBy: _angular_core.InputSignal<string | undefined>;
|
|
51
56
|
readonly dataKey: _angular_core.InputSignal<string | undefined>;
|
|
52
57
|
/**
|
|
53
|
-
* Clear button. Left unset it
|
|
54
|
-
*
|
|
58
|
+
* Clear button. Left unset it appears only on an optional field of a reactive
|
|
59
|
+
* form, which has to be able to go back to empty. A required field, a
|
|
60
|
+
* `[field]="false"` switcher and a bare `ngModel` selector have nothing to
|
|
55
61
|
* clear to. Pass an explicit `true` / `false` to override that.
|
|
56
62
|
*/
|
|
57
63
|
readonly showClear: _angular_core.InputSignal<boolean | undefined>;
|
|
@@ -116,8 +122,9 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
|
|
|
116
122
|
* only re-reading them per change detection keeps this truthful.
|
|
117
123
|
*/
|
|
118
124
|
isRequiredField(): boolean;
|
|
119
|
-
/** Explicit `showClear` wins; otherwise
|
|
125
|
+
/** Explicit `showClear` wins; otherwise only an optional form field clears. */
|
|
120
126
|
isClearable(): boolean;
|
|
127
|
+
private isOptionalFormField;
|
|
121
128
|
clearSelection(): void;
|
|
122
129
|
getOptionLabelValue(option: any): string;
|
|
123
130
|
/**
|