@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@masterteam/components",
3
- "version": "0.0.335",
3
+ "version": "0.0.336",
4
4
  "publishConfig": {
5
5
  "directory": "../../../dist/masterteam/components",
6
6
  "linkDirectory": true,
@@ -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 | EntityAttachmentItemValue | EntityAttachmentValue | null | undefined>;
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 follows {@link isRequiredField}: an optional
54
- * select has to be able to go back to empty, a required one has nothing to
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 every optional select is clearable. */
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
  /**