@masterteam/components 0.0.262 → 0.0.264
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 +1 -1
- package/assets/i18n/ar.json +10 -2
- package/assets/i18n/en.json +10 -2
- package/fesm2022/masterteam-components-business-fields.mjs +13 -8
- package/fesm2022/masterteam-components-business-fields.mjs.map +1 -1
- package/fesm2022/masterteam-components-button.mjs +34 -4
- package/fesm2022/masterteam-components-button.mjs.map +1 -1
- package/fesm2022/masterteam-components-checkbox-field.mjs +8 -4
- package/fesm2022/masterteam-components-checkbox-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page-menu.mjs +4 -3
- package/fesm2022/masterteam-components-client-page-menu.mjs.map +1 -1
- package/fesm2022/masterteam-components-client-page.mjs +48 -6
- package/fesm2022/masterteam-components-client-page.mjs.map +1 -1
- package/fesm2022/masterteam-components-color-picker-field.mjs +8 -4
- package/fesm2022/masterteam-components-color-picker-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-confirmation.mjs +1 -1
- package/fesm2022/masterteam-components-confirmation.mjs.map +1 -1
- package/fesm2022/masterteam-components-date-field.mjs +24 -5
- package/fesm2022/masterteam-components-date-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-drawer.mjs +1 -1
- package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs +1 -1
- package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
- package/fesm2022/masterteam-components-editor-field.mjs +8 -4
- package/fesm2022/masterteam-components-editor-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-empty-state.mjs +53 -0
- package/fesm2022/masterteam-components-empty-state.mjs.map +1 -0
- package/fesm2022/masterteam-components-entities.mjs +187 -37
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs +82 -3
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-icon-field.mjs +9 -12
- package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-location-field.mjs +9 -5
- package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-module-summary-card.mjs +1 -1
- package/fesm2022/masterteam-components-module-summary-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-multi-select-field.mjs +8 -4
- package/fesm2022/masterteam-components-multi-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-number-field.mjs +8 -4
- package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-page-header.mjs +2 -2
- package/fesm2022/masterteam-components-page-header.mjs.map +1 -1
- package/fesm2022/masterteam-components-pick-list-field.mjs +8 -4
- package/fesm2022/masterteam-components-pick-list-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs +1 -1
- package/fesm2022/masterteam-components-property-filter-builder.mjs.map +1 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs +1 -1
- package/fesm2022/masterteam-components-radio-button-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-radio-cards-field.mjs +8 -3
- package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-select-field.mjs +7 -3
- package/fesm2022/masterteam-components-select-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs +1 -1
- package/fesm2022/masterteam-components-slider-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-statistic-card.mjs +1 -1
- package/fesm2022/masterteam-components-statistic-card.mjs.map +1 -1
- package/fesm2022/masterteam-components-table.mjs +266 -65
- package/fesm2022/masterteam-components-table.mjs.map +1 -1
- package/fesm2022/masterteam-components-tabs.mjs +1 -1
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -1
- package/fesm2022/masterteam-components-text-field.mjs +9 -5
- package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-textarea-field.mjs +8 -4
- package/fesm2022/masterteam-components-textarea-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs +1 -1
- package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-tree.mjs +1 -1
- package/fesm2022/masterteam-components-tree.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-upload-field.mjs +9 -4
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -1
- package/fesm2022/masterteam-components-uploader.mjs +28 -2
- package/fesm2022/masterteam-components-uploader.mjs.map +1 -1
- package/fesm2022/masterteam-components-user-search-field.mjs +8 -4
- package/fesm2022/masterteam-components-user-search-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +277 -36
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +5 -1
- package/types/masterteam-components-business-fields.d.ts +4 -0
- package/types/masterteam-components-button.d.ts +27 -1
- package/types/masterteam-components-checkbox-field.d.ts +4 -0
- package/types/masterteam-components-client-page.d.ts +7 -1
- package/types/masterteam-components-color-picker-field.d.ts +4 -0
- package/types/masterteam-components-date-field.d.ts +7 -1
- package/types/masterteam-components-editor-field.d.ts +4 -0
- package/types/masterteam-components-empty-state.d.ts +47 -0
- package/types/masterteam-components-entities.d.ts +80 -8
- package/types/masterteam-components-field-validation.d.ts +38 -2
- package/types/masterteam-components-icon-field.d.ts +4 -0
- package/types/masterteam-components-location-field.d.ts +4 -0
- package/types/masterteam-components-multi-select-field.d.ts +4 -0
- package/types/masterteam-components-number-field.d.ts +4 -0
- package/types/masterteam-components-pick-list-field.d.ts +4 -0
- package/types/masterteam-components-radio-cards-field.d.ts +4 -0
- package/types/masterteam-components-select-field.d.ts +4 -0
- package/types/masterteam-components-table.d.ts +123 -6
- package/types/masterteam-components-text-field.d.ts +4 -0
- package/types/masterteam-components-textarea-field.d.ts +4 -0
- package/types/masterteam-components-upload-field.d.ts +4 -0
- package/types/masterteam-components-user-search-field.d.ts +4 -0
- package/types/masterteam-components.d.ts +107 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@masterteam/components",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.264",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"directory": "../../../dist/masterteam/components",
|
|
6
6
|
"linkDirectory": true,
|
|
@@ -111,6 +111,10 @@
|
|
|
111
111
|
"types": "./types/masterteam-components-editor-field.d.ts",
|
|
112
112
|
"default": "./fesm2022/masterteam-components-editor-field.mjs"
|
|
113
113
|
},
|
|
114
|
+
"./empty-state": {
|
|
115
|
+
"types": "./types/masterteam-components-empty-state.d.ts",
|
|
116
|
+
"default": "./fesm2022/masterteam-components-empty-state.mjs"
|
|
117
|
+
},
|
|
114
118
|
"./entities": {
|
|
115
119
|
"types": "./types/masterteam-components-entities.d.ts",
|
|
116
120
|
"default": "./fesm2022/masterteam-components-entities.mjs"
|
|
@@ -213,6 +213,10 @@ declare class SchedulePredecessorField implements ControlValueAccessor {
|
|
|
213
213
|
private readonly typeCellTpl;
|
|
214
214
|
private readonly lagCellTpl;
|
|
215
215
|
readonly label: _angular_core.InputSignal<string>;
|
|
216
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
217
|
+
private readonly defaultFieldId;
|
|
218
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
219
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
216
220
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
217
221
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
218
222
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
@@ -26,11 +26,37 @@ declare class Button {
|
|
|
26
26
|
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
27
|
readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
28
|
readonly pInputs: _angular_core.InputSignal<Partial<ButtonProps> | undefined>;
|
|
29
|
+
/**
|
|
30
|
+
* Accessible name. Only needed for an icon-only button — one with a `label`
|
|
31
|
+
* already has a name from its text.
|
|
32
|
+
*/
|
|
33
|
+
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
34
|
+
/**
|
|
35
|
+
* What assistive technology announces.
|
|
36
|
+
*
|
|
37
|
+
* An icon-only button carries no text, so without this a screen reader reads
|
|
38
|
+
* it as just "button". 8 of 13 icon-only buttons in the live app were
|
|
39
|
+
* unnamed, and the Control Panel rail was entirely unnamed — a user had to
|
|
40
|
+
* click each icon to discover what it did (finding H-05).
|
|
41
|
+
*
|
|
42
|
+
* Falls back through `ariaLabel` → `label` → `tooltip`, because a button with
|
|
43
|
+
* a tooltip already has the words; they were simply not reaching the
|
|
44
|
+
* accessibility tree. Null for a labelled button so we never duplicate the
|
|
45
|
+
* visible text as an aria-label, which makes some screen readers announce it
|
|
46
|
+
* twice.
|
|
47
|
+
*/
|
|
48
|
+
readonly accessibleName: _angular_core.Signal<string | null>;
|
|
49
|
+
/**
|
|
50
|
+
* Sighted users need the same affordance: with no label and no tooltip, the
|
|
51
|
+
* only way to learn what an icon does is to press it and watch. So an
|
|
52
|
+
* `ariaLabel` given without a tooltip becomes the tooltip too.
|
|
53
|
+
*/
|
|
54
|
+
readonly resolvedTooltip: _angular_core.Signal<string | undefined>;
|
|
29
55
|
onClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
30
56
|
onFocus: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
31
57
|
onBlur: _angular_core.OutputEmitterRef<FocusEvent>;
|
|
32
58
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Button, never>;
|
|
33
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Button, "mt-button", never, { "iconText": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "badgeSeverity": { "alias": "badgeSeverity"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "plain": { "alias": "plain"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
59
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<Button, "mt-button", never, { "iconText": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "tooltip": { "alias": "tooltip"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "severity": { "alias": "severity"; "required": false; "isSignal": true; }; "badge": { "alias": "badge"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "badgeSeverity": { "alias": "badgeSeverity"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "iconPos": { "alias": "iconPos"; "required": false; "isSignal": true; }; "autofocus": { "alias": "autofocus"; "required": false; "isSignal": true; }; "fluid": { "alias": "fluid"; "required": false; "isSignal": true; }; "raised": { "alias": "raised"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; "plain": { "alias": "plain"; "required": false; "isSignal": true; }; "outlined": { "alias": "outlined"; "required": false; "isSignal": true; }; "link": { "alias": "link"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "onClick": "onClick"; "onFocus": "onFocus"; "onBlur": "onBlur"; }, never, never, true, never>;
|
|
34
60
|
}
|
|
35
61
|
|
|
36
62
|
export { Button };
|
|
@@ -6,6 +6,10 @@ import { isInvalid } from '@masterteam/components';
|
|
|
6
6
|
declare class CheckboxField implements ControlValueAccessor {
|
|
7
7
|
checkbox: Checkbox;
|
|
8
8
|
label: _angular_core.InputSignal<string | undefined>;
|
|
9
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
10
|
+
private readonly defaultFieldId;
|
|
11
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
12
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
9
13
|
labelPosition: _angular_core.InputSignal<"top" | "start" | "end" | "bottom">;
|
|
10
14
|
placeholder: _angular_core.InputSignal<string | undefined>;
|
|
11
15
|
readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -27,7 +27,11 @@ declare class ClientPage implements OnDestroy {
|
|
|
27
27
|
readonly collapsed: _angular_core.ModelSignal<boolean>;
|
|
28
28
|
/** Enables desktop sidebar resizing from the divider */
|
|
29
29
|
readonly resizable: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
|
-
/**
|
|
30
|
+
/**
|
|
31
|
+
* Storage seed for the persisted sidebar width. Defaults to a key shared by
|
|
32
|
+
* every `mt-client-page`, so the shell keeps one width across modules; pass
|
|
33
|
+
* your own only when a surface genuinely needs its own.
|
|
34
|
+
*/
|
|
31
35
|
readonly storageKey: _angular_core.InputSignal<string | null>;
|
|
32
36
|
/** Storage location used for persisted sidebar width */
|
|
33
37
|
readonly storageMode: _angular_core.InputSignal<"local" | "session">;
|
|
@@ -82,6 +86,8 @@ declare class ClientPage implements OnDestroy {
|
|
|
82
86
|
/** Accessible label for the toggle button */
|
|
83
87
|
readonly toggleAriaLabel: _angular_core.Signal<string>;
|
|
84
88
|
constructor();
|
|
89
|
+
/** Set once the user works the collapse toggle, freezing the auto behaviour. */
|
|
90
|
+
private collapseTouchedByUser;
|
|
85
91
|
toggleCollapsed(): void;
|
|
86
92
|
selectItem(item: ClientPageMenuItem): void;
|
|
87
93
|
startResize(event: MouseEvent): void;
|
|
@@ -6,6 +6,10 @@ import { isInvalid } from '@masterteam/components';
|
|
|
6
6
|
declare class ColorPickerField implements ControlValueAccessor {
|
|
7
7
|
colorPicker: ColorPicker;
|
|
8
8
|
label: _angular_core.InputSignal<string | undefined>;
|
|
9
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
10
|
+
private readonly defaultFieldId;
|
|
11
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
12
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
9
13
|
appendTo: _angular_core.InputSignal<string>;
|
|
10
14
|
placeholder: _angular_core.InputSignal<string | undefined>;
|
|
11
15
|
class: _angular_core.InputSignal<string>;
|
|
@@ -9,6 +9,10 @@ declare class DateField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
9
9
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
10
10
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
11
11
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
12
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
13
|
+
private readonly defaultFieldId;
|
|
14
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
15
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
12
16
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
13
17
|
readonly class: _angular_core.InputSignal<string>;
|
|
14
18
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -19,7 +23,9 @@ declare class DateField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
19
23
|
/**
|
|
20
24
|
* Hides the calendar and edits only the clock time. The bound value stays a
|
|
21
25
|
* full `Date` — PrimeNG keeps the existing date part (or today's, when the
|
|
22
|
-
* control is empty) —
|
|
26
|
+
* control is empty) — but that date part is scratch state: a wall-clock
|
|
27
|
+
* `HH:mm:ss` string is accepted on write, and consumers storing a `Time`
|
|
28
|
+
* value are expected to serialize only the clock back out.
|
|
23
29
|
*/
|
|
24
30
|
readonly timeOnly: _angular_core.InputSignal<boolean>;
|
|
25
31
|
readonly minDate: _angular_core.InputSignal<Date | null | undefined>;
|
|
@@ -5,6 +5,10 @@ import { isInvalid } from '@masterteam/components';
|
|
|
5
5
|
type EditorDirection = 'ltr' | 'rtl' | 'auto';
|
|
6
6
|
declare class EditorField implements ControlValueAccessor {
|
|
7
7
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
8
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
9
|
+
private readonly defaultFieldId;
|
|
10
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
11
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
8
12
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
9
13
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
10
14
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { MTIcon } from '@masterteam/icons';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Which story an empty list is telling. They are different situations and they
|
|
6
|
+
* need different words: "nothing here yet" invites the user to create the first
|
|
7
|
+
* record, "nothing matched" invites them to widen the filter. Rendering the
|
|
8
|
+
* same magnifying glass for both actively misleads — it implies a search is
|
|
9
|
+
* hiding results when none was applied (finding H-12).
|
|
10
|
+
*/
|
|
11
|
+
type EmptyStateVariant = 'empty' | 'filtered';
|
|
12
|
+
/** Artwork slot. `none` for tight surfaces (a sidebar menu, a small panel). */
|
|
13
|
+
type EmptyStateIllustration = 'box' | 'filter' | 'none';
|
|
14
|
+
/**
|
|
15
|
+
* The one empty state.
|
|
16
|
+
*
|
|
17
|
+
* Before this the product had three: the table's illustrated "No data found",
|
|
18
|
+
* the cards view's bare grey "No cards found.", and a hardcoded, untranslated
|
|
19
|
+
* "No data found" in the client page menu. Three patterns across one product
|
|
20
|
+
* read as three teams, and none of them said what the list holds or offered a
|
|
21
|
+
* way to fill it.
|
|
22
|
+
*
|
|
23
|
+
* Everything is optional: with no inputs at all it renders exactly what the
|
|
24
|
+
* table used to, so adopting it is never a regression.
|
|
25
|
+
*/
|
|
26
|
+
declare class EmptyState {
|
|
27
|
+
private readonly transloco;
|
|
28
|
+
readonly variant: _angular_core.InputSignal<EmptyStateVariant>;
|
|
29
|
+
/** Defaults to the variant's illustration; `none` opts out entirely. */
|
|
30
|
+
readonly illustration: _angular_core.InputSignal<EmptyStateIllustration | undefined>;
|
|
31
|
+
/** Heading. Falls back to the variant's default copy. */
|
|
32
|
+
readonly title: _angular_core.InputSignal<string | undefined>;
|
|
33
|
+
/** One line saying what the list holds, or why nothing matched. */
|
|
34
|
+
readonly description: _angular_core.InputSignal<string | undefined>;
|
|
35
|
+
/** Renders the call to action when set — "New risk", "Clear filters". */
|
|
36
|
+
readonly actionLabel: _angular_core.InputSignal<string | undefined>;
|
|
37
|
+
readonly actionIcon: _angular_core.InputSignal<MTIcon | undefined>;
|
|
38
|
+
readonly actionClick: _angular_core.OutputEmitterRef<void>;
|
|
39
|
+
readonly resolvedTitle: _angular_core.Signal<string>;
|
|
40
|
+
readonly resolvedIllustration: _angular_core.Signal<EmptyStateIllustration>;
|
|
41
|
+
readonly resolvedDescription: _angular_core.Signal<string>;
|
|
42
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EmptyState, never>;
|
|
43
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EmptyState, "mt-empty-state", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "illustration": { "alias": "illustration"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; "actionIcon": { "alias": "actionIcon"; "required": false; "isSignal": true; }; }, { "actionClick": "actionClick"; }, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export { EmptyState };
|
|
47
|
+
export type { EmptyStateIllustration, EmptyStateVariant };
|
|
@@ -372,9 +372,9 @@ declare class EntityDate {
|
|
|
372
372
|
readonly viewType: _angular_core.InputSignal<"Date" | "DateTime" | "Time">;
|
|
373
373
|
readonly displayName: _angular_core.Signal<string>;
|
|
374
374
|
/**
|
|
375
|
-
* `Time` carries
|
|
376
|
-
*
|
|
377
|
-
* viewer's timezone
|
|
375
|
+
* `Time` carries a wall-clock value (`HH:mm:ss`) with no date and no zone, so
|
|
376
|
+
* `mtDateFormat` renders it as stored instead of shifting it into the
|
|
377
|
+
* viewer's timezone the way its `DateTime` sibling is shifted.
|
|
378
378
|
*/
|
|
379
379
|
readonly resolvedViewType: _angular_core.Signal<MTDateFormatType>;
|
|
380
380
|
readonly displayValue: _angular_core.Signal<unknown>;
|
|
@@ -454,6 +454,9 @@ declare class EntityUser {
|
|
|
454
454
|
}
|
|
455
455
|
|
|
456
456
|
declare class EntityPercentage {
|
|
457
|
+
private readonly transloco;
|
|
458
|
+
/** Active locale, so number formatting follows the UI language. */
|
|
459
|
+
private readonly locale;
|
|
457
460
|
/** Full entity data object */
|
|
458
461
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
459
462
|
/** Individual inputs (used when data is not provided) */
|
|
@@ -475,7 +478,23 @@ declare class EntityPercentage {
|
|
|
475
478
|
* property-form preview).
|
|
476
479
|
*/
|
|
477
480
|
readonly progressColor: _angular_core.Signal<string>;
|
|
478
|
-
/**
|
|
481
|
+
/**
|
|
482
|
+
* Renders a percentage for the active locale.
|
|
483
|
+
*
|
|
484
|
+
* This used to echo the backend's string and only append `%` when that string
|
|
485
|
+
* already carried one — so in Arabic, where the API returns a bare `"25"`,
|
|
486
|
+
* the symbol vanished and a progress value rendered as an unlabelled `25`.
|
|
487
|
+
* Next to a bar that could be a percentage, a count or a score (finding
|
|
488
|
+
* H-08).
|
|
489
|
+
*
|
|
490
|
+
* Formatting from the NUMBER through `Intl.NumberFormat` makes the symbol,
|
|
491
|
+
* the decimal separator and the digit shapes follow the locale instead of the
|
|
492
|
+
* payload. `maximumFractionDigits: 1` preserves the precision the old code
|
|
493
|
+
* kept; `style: 'percent'` expects a fraction, hence the /100.
|
|
494
|
+
*
|
|
495
|
+
* Non-numeric values pass through untouched — a status string or an em dash
|
|
496
|
+
* must not be mangled into `NaN%`.
|
|
497
|
+
*/
|
|
479
498
|
private formatPercentageDisplay;
|
|
480
499
|
private parseNumericValue;
|
|
481
500
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityPercentage, never>;
|
|
@@ -483,12 +502,22 @@ declare class EntityPercentage {
|
|
|
483
502
|
}
|
|
484
503
|
|
|
485
504
|
declare class EntityCurrency {
|
|
505
|
+
private readonly transloco;
|
|
506
|
+
/** Active locale, so number formatting follows the UI language. */
|
|
507
|
+
private readonly locale;
|
|
486
508
|
/** Full entity data object */
|
|
487
509
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
488
510
|
/** Individual inputs (used when data is not provided) */
|
|
489
511
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
490
512
|
readonly value: _angular_core.InputSignal<string | undefined>;
|
|
491
513
|
readonly displayName: _angular_core.Signal<string>;
|
|
514
|
+
/** The backend's fully grouped string — always the tooltip, never truncated. */
|
|
515
|
+
readonly fullValue: _angular_core.Signal<string>;
|
|
516
|
+
/**
|
|
517
|
+
* What the cell renders: the backend's string, or a compact form of it when
|
|
518
|
+
* the amount is large enough that the currency token would be truncated away.
|
|
519
|
+
* See {@link compactCurrencyDisplay} (finding H-06).
|
|
520
|
+
*/
|
|
492
521
|
readonly displayValue: _angular_core.Signal<string>;
|
|
493
522
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityCurrency, never>;
|
|
494
523
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityCurrency, "mt-entity-currency", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -596,7 +625,7 @@ declare class EntityAttachment {
|
|
|
596
625
|
readonly data: _angular_core.InputSignal<EntityData | undefined>;
|
|
597
626
|
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
598
627
|
readonly shape: _angular_core.InputSignal<"compact" | "default">;
|
|
599
|
-
readonly value: _angular_core.InputSignal<string |
|
|
628
|
+
readonly value: _angular_core.InputSignal<string | EntityAttachmentValue | EntityAttachmentItemValue | null | undefined>;
|
|
600
629
|
readonly endPoint: _angular_core.InputSignal<string>;
|
|
601
630
|
readonly context: _angular_core.InputSignal<HttpContext | undefined>;
|
|
602
631
|
private readonly httpClient;
|
|
@@ -717,9 +746,13 @@ declare class EntityLeafDetails {
|
|
|
717
746
|
/** Label shown below the badges: "Level Name (total)" */
|
|
718
747
|
readonly labelWithTotal: _angular_core.Signal<string>;
|
|
719
748
|
readonly labelIcon: _angular_core.Signal<string | null>;
|
|
720
|
-
/** Default LeafDetails labels to top, while still honoring saved configuration */
|
|
721
|
-
readonly fieldConfig: _angular_core.Signal<EntityBaseConfig>;
|
|
722
749
|
statusColor(color: string | null): string;
|
|
750
|
+
/**
|
|
751
|
+
* Foreground for the count, chosen against the badge colour instead of always
|
|
752
|
+
* white — a light catalog colour measured 2.59:1 with white on it, the lowest
|
|
753
|
+
* contrast in the product (findings M-04, H-03).
|
|
754
|
+
*/
|
|
755
|
+
statusTextColor(color: string | null): string;
|
|
723
756
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<EntityLeafDetails, never>;
|
|
724
757
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntityLeafDetails, "mt-entity-leaf-details", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
725
758
|
}
|
|
@@ -733,6 +766,45 @@ declare function isLeafDetailsSyntheticKey(key?: string | null): boolean;
|
|
|
733
766
|
declare function expandLeafDetailsEntity(entity: EntityData): EntityData[];
|
|
734
767
|
declare function buildDisplayEntities(entities: EntityData[]): EntityData[];
|
|
735
768
|
|
|
769
|
+
/**
|
|
770
|
+
* The largest amount still rendered in full.
|
|
771
|
+
*
|
|
772
|
+
* The reviewer measured exactly where the line falls: `100,000 SAR` fits a card
|
|
773
|
+
* slot, `1,000,000 SAR` does not and loses its currency to the ellipsis. So the
|
|
774
|
+
* comparison below is inclusive — anything ABOVE this compacts, and everything
|
|
775
|
+
* a tenant sees today at or under it is untouched.
|
|
776
|
+
*/
|
|
777
|
+
declare const CURRENCY_COMPACT_THRESHOLD = 100000;
|
|
778
|
+
/**
|
|
779
|
+
* The numeric amount inside a formatted currency string.
|
|
780
|
+
*
|
|
781
|
+
* Strips the currency token, the grouping separators and the bidirectional
|
|
782
|
+
* marks `Intl` leaves around them, and normalises Arabic-Indic digits so an
|
|
783
|
+
* `ar-SA` payload parses like an `en` one. `null` when there is no number.
|
|
784
|
+
*/
|
|
785
|
+
declare function parseCurrencyAmount(raw: string | null | undefined): number | null;
|
|
786
|
+
/**
|
|
787
|
+
* Whatever is left of a formatted amount once the number is removed — `SAR`,
|
|
788
|
+
* `ر.س`, `$`. Read from the payload rather than configured, so a tenant's own
|
|
789
|
+
* currency survives untouched.
|
|
790
|
+
*/
|
|
791
|
+
declare function currencyUnitOf(formatted: string): string;
|
|
792
|
+
/**
|
|
793
|
+
* A large currency amount shortened so it fits a card slot, with the unit kept.
|
|
794
|
+
*
|
|
795
|
+
* A budget of a million or more used to render as `1,000,000 …`: the digits
|
|
796
|
+
* survived the ellipsis and the currency did not, so the largest and most
|
|
797
|
+
* consequential figures in the product were the only ones whose unit could not
|
|
798
|
+
* be read (finding H-06). Compact notation keeps the whole thing inside the
|
|
799
|
+
* slot — `SAR 1M` instead of `1,000,000 SAR` — and callers put the exact figure
|
|
800
|
+
* in a tooltip, which is where a precise number belongs on a summary card.
|
|
801
|
+
*
|
|
802
|
+
* Returns `formatted` unchanged whenever the value already fits, is not a
|
|
803
|
+
* number, or the runtime has no compact notation — so no tenant sees an
|
|
804
|
+
* existing number change shape for no reason.
|
|
805
|
+
*/
|
|
806
|
+
declare function compactCurrencyDisplay(formatted: string, rawValue: string | null | undefined, locale: string, threshold?: number): string;
|
|
807
|
+
|
|
736
808
|
/**
|
|
737
809
|
* Anything that can supply a percentage colour: an ordered rule set plus the
|
|
738
810
|
* fallback used when no rule matches.
|
|
@@ -1026,5 +1098,5 @@ declare class EntitiesManage extends EntitiesResizeBase {
|
|
|
1026
1098
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<EntitiesManage, "mt-entities-manage", never, { "entities": { "alias": "entities"; "required": true; "isSignal": true; }; }, { "entities": "entitiesChange"; "entitiesReordered": "entitiesReordered"; "entityClicked": "entityClicked"; "externalItemDropped": "externalItemDropped"; }, never, never, true, never>;
|
|
1027
1099
|
}
|
|
1028
1100
|
|
|
1029
|
-
export { ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, resolveLocalizedLabel, resolvePercentageColor };
|
|
1101
|
+
export { CURRENCY_COMPACT_THRESHOLD, ComparisonEntityList, ComparisonValue, DEFAULT_PHASE_GATE_COLOR, EntitiesManage, EntitiesPreview, EntitiesResizeBase, EntityAttachment, EntityCheckbox, EntityConnection, EntityCurrency, EntityDate, EntityField, EntityLeafDetails, EntityLocation, EntityLongText, EntityLookup, EntityLookupModuleCheckList, EntityPercentage, EntityPhaseGate, EntityPreview, EntityPreviewBody, EntityScheduleItem, EntityStatus, EntityText, EntityUser, LEAF_DETAILS_KEY_SEPARATOR, SECTION_KEY_PREFIX, buildDisplayEntities, buildSectionKey, compactCurrencyDisplay, currencyUnitOf, expandLeafDetailsEntity, getEntitySectionTitle, groupEntitiesIntoSections, isEntitySection, isLeafDetailsCatalogConfiguration, isLeafDetailsCollectionValue, isLeafDetailsRuntimeValue, isLeafDetailsSyntheticKey, isLeafDetailsValue, isSectionKey, matchesPercentageColorRule, parseCurrencyAmount, resolveLocalizedLabel, resolvePercentageColor };
|
|
1030
1102
|
export type { ComparisonValueSide, EntityAttachmentItemValue, EntityAttachmentValue, EntityBaseConfig, EntityClickEvent, EntityComparisonField, EntityComparisonOperation, EntityConfiguration, EntityConnectionValue, EntityData, EntityLabelPosition, EntityLeafDetailsConfig, EntityListComparison, EntityListComparisonRow, EntityLocationValue, EntityLookupCheckListItem, EntityLookupCheckListPropValue, EntityLookupCheckListValue, EntityLookupValue, EntityMultiLookupValue, EntityMultiUserValue, EntityNestedPropertyMeta, EntityPercentageConfig, EntityPhaseGateValue, EntityPropertyConfiguration, EntityResizeEvent, EntityScheduleItemValue, EntitySectionConfig, EntitySectionGroup, EntitySectionLabel, EntitySize, EntityStatusValue, EntityUserConfig, EntityUserValue, EntityViewType, LeafDetailsCatalogConfiguration, LeafDetailsCatalogLevelValue, LeafDetailsCatalogStatusValue, LeafDetailsEntityCollectionValue, LeafDetailsEntityValue, LeafDetailsRuntimeChildSchema, LeafDetailsRuntimeStatusCount, LeafDetailsRuntimeStatusDetails, LeafDetailsRuntimeValue, LeafDetailsStatusSummary, LeafLevelSavedConfig, PercentageColorRule, PercentageColorSource, PropertyValueComparison, ValueComparison };
|
|
@@ -1,11 +1,40 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { DoCheck } from '@angular/core';
|
|
2
3
|
import { AbstractControl, ValidatorFn } from '@angular/forms';
|
|
3
4
|
import { isInvalid } from '@masterteam/components';
|
|
4
5
|
|
|
5
|
-
declare class FieldValidation {
|
|
6
|
+
declare class FieldValidation implements DoCheck {
|
|
7
|
+
private readonly elementRef;
|
|
6
8
|
readonly control: _angular_core.InputSignal<AbstractControl<any, any, any> | null>;
|
|
7
9
|
readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
10
|
+
/**
|
|
11
|
+
* Id the failing control points at with `aria-describedby`. Generated when
|
|
12
|
+
* not supplied, so no caller has to pass anything for the wiring below to
|
|
13
|
+
* work; override it only when a host needs a predictable id (a test, or a
|
|
14
|
+
* second `aria-describedby` target it is composing itself).
|
|
15
|
+
*/
|
|
16
|
+
readonly messageId: _angular_core.InputSignal<string | null>;
|
|
17
|
+
private readonly fallbackMessageId;
|
|
18
|
+
readonly resolvedMessageId: _angular_core.Signal<string>;
|
|
8
19
|
isInvalid: typeof isInvalid;
|
|
20
|
+
/** Cached lookup — the control element never changes for a given field. */
|
|
21
|
+
private controlElement;
|
|
22
|
+
private describedApplied;
|
|
23
|
+
/**
|
|
24
|
+
* Keep `aria-invalid` / `aria-describedby` on the field's own control in step
|
|
25
|
+
* with the message below it.
|
|
26
|
+
*
|
|
27
|
+
* The message used to be loose text with no relationship to anything: a
|
|
28
|
+
* screen-reader user heard the field, then — separately, later, if they kept
|
|
29
|
+
* reading — an unattributed error (findings C-02, H-04). Wiring it here rather
|
|
30
|
+
* than in each of the 23 field templates means every field that already
|
|
31
|
+
* renders `mt-field-validation` gets it, including the ones whose control is
|
|
32
|
+
* an input PrimeNG renders and the template cannot reach.
|
|
33
|
+
*
|
|
34
|
+
* `ngDoCheck` rather than an `effect` because `AbstractControl` validity is
|
|
35
|
+
* not a signal — the template re-reads it every cycle, and so does this.
|
|
36
|
+
*/
|
|
37
|
+
ngDoCheck(): void;
|
|
9
38
|
/**
|
|
10
39
|
* Reserve the error-message line whenever the control can surface an error —
|
|
11
40
|
* i.e. it has sync/async validators, or is already showing one. This keeps the
|
|
@@ -14,8 +43,15 @@ declare class FieldValidation {
|
|
|
14
43
|
* picks up validators that fields add asynchronously after init.
|
|
15
44
|
*/
|
|
16
45
|
shouldReserveSpace(): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* The control this message belongs to: the first focusable element inside the
|
|
48
|
+
* field component that hosts us. `undefined` means "not looked up yet",
|
|
49
|
+
* `null` means "looked up and there is nothing to annotate" — a distinction
|
|
50
|
+
* that matters, because the second case must not re-query every cycle.
|
|
51
|
+
*/
|
|
52
|
+
private resolveControlElement;
|
|
17
53
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FieldValidation, never>;
|
|
18
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldValidation, "mt-field-validation", never, { "control": { "alias": "control"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
54
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FieldValidation, "mt-field-validation", never, { "control": { "alias": "control"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "messageId": { "alias": "messageId"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
19
55
|
}
|
|
20
56
|
|
|
21
57
|
declare const characterLimitValidator: (maxLength: number) => ValidatorFn;
|
|
@@ -12,6 +12,10 @@ interface IconFieldOption {
|
|
|
12
12
|
}
|
|
13
13
|
declare class IconField implements ControlValueAccessor {
|
|
14
14
|
readonly label: _angular_core.InputSignal<string>;
|
|
15
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
16
|
+
private readonly defaultFieldId;
|
|
17
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
18
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
15
19
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
16
20
|
icons: IconFieldOption[];
|
|
17
21
|
selectedIcon: _angular_core.WritableSignal<MTIcon | null>;
|
|
@@ -44,6 +44,10 @@ interface LocationFieldConfiguration {
|
|
|
44
44
|
declare class LocationField implements ControlValueAccessor, OnDestroy {
|
|
45
45
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
46
46
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
47
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
48
|
+
private readonly defaultFieldId;
|
|
49
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
50
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
47
51
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
48
52
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
49
53
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
@@ -13,6 +13,10 @@ declare class MultiSelectField implements ControlValueAccessor, OnInit, OnChange
|
|
|
13
13
|
ngAfterViewInit(): void;
|
|
14
14
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
15
15
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
16
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
17
|
+
private readonly defaultFieldId;
|
|
18
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
19
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
16
20
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
17
21
|
readonly class: _angular_core.InputSignal<string>;
|
|
18
22
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -9,6 +9,10 @@ declare class NumberField implements ControlValueAccessor, OnInit, OnChanges {
|
|
|
9
9
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
10
10
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
11
11
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
12
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
13
|
+
private readonly defaultFieldId;
|
|
14
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
15
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
12
16
|
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
13
17
|
readonly class: _angular_core.InputSignal<string>;
|
|
14
18
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
@@ -7,6 +7,10 @@ import { isInvalid } from '@masterteam/components';
|
|
|
7
7
|
declare class PickListField implements ControlValueAccessor, OnInit {
|
|
8
8
|
private readonly transloco;
|
|
9
9
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
10
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
11
|
+
private readonly defaultFieldId;
|
|
12
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
13
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
10
14
|
readonly class: _angular_core.InputSignal<string>;
|
|
11
15
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
12
16
|
readonly options: _angular_core.InputSignal<any[]>;
|
|
@@ -6,6 +6,10 @@ import { RadioItem } from '@masterteam/components/radio-cards';
|
|
|
6
6
|
declare class RadioCardsField implements ControlValueAccessor {
|
|
7
7
|
readonly circle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
8
|
readonly label: _angular_core.InputSignal<string | undefined>;
|
|
9
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
10
|
+
private readonly defaultFieldId;
|
|
11
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
12
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
9
13
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
10
14
|
readonly readonly: _angular_core.InputSignal<boolean>;
|
|
11
15
|
readonly required: _angular_core.InputSignal<boolean>;
|
|
@@ -29,6 +29,10 @@ declare class SelectField implements ControlValueAccessor, OnInit, OnChanges, Af
|
|
|
29
29
|
readonly field: _angular_core.InputSignal<boolean>;
|
|
30
30
|
readonly hint: _angular_core.InputSignal<string | undefined>;
|
|
31
31
|
readonly label: _angular_core.InputSignal<string>;
|
|
32
|
+
/** Fallback so a control-less, label-less field never renders id="undefined". */
|
|
33
|
+
private readonly defaultFieldId;
|
|
34
|
+
/** Shared by the input and its <label for>. See src/lib/utils/field-id. */
|
|
35
|
+
readonly fieldId: _angular_core.Signal<string>;
|
|
32
36
|
readonly placeholder: _angular_core.InputSignal<string>;
|
|
33
37
|
readonly hasPlaceholderPrefix: _angular_core.InputSignal<boolean>;
|
|
34
38
|
readonly class: _angular_core.InputSignal<string>;
|