@masterteam/components 0.0.335 → 0.0.337
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/assets/i18n/ar.json +2 -1
- package/assets/i18n/en.json +2 -1
- 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 +81 -14
- 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 +8 -0
- package/types/masterteam-components-select-field.d.ts +10 -3
package/package.json
CHANGED
|
@@ -826,6 +826,12 @@ interface EntityData {
|
|
|
826
826
|
*/
|
|
827
827
|
color?: string;
|
|
828
828
|
order?: number;
|
|
829
|
+
/**
|
|
830
|
+
* Marks a value the backend calculates: `mt-entity-preview` shows the
|
|
831
|
+
* calculated-value icon beside its label. Set by the host that maps the
|
|
832
|
+
* catalog, so a surface that does not set it renders exactly as before.
|
|
833
|
+
*/
|
|
834
|
+
calculated?: boolean;
|
|
829
835
|
propertyConfiguration?: EntityPropertyConfiguration;
|
|
830
836
|
/**
|
|
831
837
|
* Catalog metadata for the properties captured inside `value`. The stored
|
|
@@ -944,6 +950,8 @@ declare function mergeStakeholderNameRows<T extends Record<string, unknown>>(col
|
|
|
944
950
|
|
|
945
951
|
type EntityFieldGap = 'compact' | 'normal' | 'relaxed';
|
|
946
952
|
declare class EntityField {
|
|
953
|
+
private readonly previewData;
|
|
954
|
+
readonly calculated: _angular_core.Signal<boolean>;
|
|
947
955
|
readonly label: _angular_core.InputSignal<string>;
|
|
948
956
|
readonly labelIconName: _angular_core.InputSignal<string | null>;
|
|
949
957
|
readonly configuration: _angular_core.InputSignal<EntityConfiguration | null | undefined>;
|
|
@@ -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
|
/**
|