@masterteam/components 0.0.334 → 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-table.mjs +4 -4
- package/fesm2022/masterteam-components-table.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 +6 -6
- package/types/masterteam-components-select-field.d.ts +10 -3
package/package.json
CHANGED
|
@@ -1381,8 +1381,8 @@ type AttachmentReference = EntityAttachmentItemValue | string;
|
|
|
1381
1381
|
declare class EntityAttachment {
|
|
1382
1382
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
1383
1383
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
1384
|
-
readonly shape: _angular_core.InputSignal<"
|
|
1385
|
-
readonly value: _angular_core.InputSignal<string |
|
|
1384
|
+
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
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;
|
|
@@ -2056,7 +2056,7 @@ declare class EntityHeader {
|
|
|
2056
2056
|
declare class EntityPreview {
|
|
2057
2057
|
private readonly transloco;
|
|
2058
2058
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
2059
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
2059
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
2060
2060
|
private readonly activeLang;
|
|
2061
2061
|
/**
|
|
2062
2062
|
* The admin-authored note for the active language, or `''` when the property
|
|
@@ -2066,7 +2066,7 @@ declare class EntityPreview {
|
|
|
2066
2066
|
* `mt-entity-preview` usages in the app.
|
|
2067
2067
|
*/
|
|
2068
2068
|
readonly infoText: _angular_core.Signal<string>;
|
|
2069
|
-
readonly comparisonKind: _angular_core.Signal<"
|
|
2069
|
+
readonly comparisonKind: _angular_core.Signal<"Value" | "EntityList" | null>;
|
|
2070
2070
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreview, never>;
|
|
2071
2071
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreview, "mt-entity-preview", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2072
2072
|
}
|
|
@@ -2079,7 +2079,7 @@ declare class EntityPreview {
|
|
|
2079
2079
|
*/
|
|
2080
2080
|
declare class EntityPreviewBody {
|
|
2081
2081
|
readonly data: _angular_core.InputSignal<EntityData>;
|
|
2082
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
2082
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
2083
2083
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPreviewBody, never>;
|
|
2084
2084
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityPreviewBody, "mt-entity-preview-body", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "attachmentShape": { "alias": "attachmentShape"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2085
2085
|
}
|
|
@@ -2153,7 +2153,7 @@ declare class EntitiesPreview {
|
|
|
2153
2153
|
private readonly transloco;
|
|
2154
2154
|
/** Array of entity data to display */
|
|
2155
2155
|
readonly entities: _angular_core.InputSignal<EntityData[]>;
|
|
2156
|
-
readonly attachmentShape: _angular_core.InputSignal<"
|
|
2156
|
+
readonly attachmentShape: _angular_core.InputSignal<"compact" | "default">;
|
|
2157
2157
|
/**
|
|
2158
2158
|
* Soft "stack every field full-width when the host is narrower than the
|
|
2159
2159
|
* 24-column grid reads well" behavior (the ≤400px container-query fallback,
|
|
@@ -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
|
/**
|