@masterteam/components 0.0.260 → 0.0.261
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/fesm2022/masterteam-components-entities.mjs +7 -2
- package/fesm2022/masterteam-components-entities.mjs.map +1 -1
- package/fesm2022/masterteam-components-field-validation.mjs +20 -7
- package/fesm2022/masterteam-components-field-validation.mjs.map +1 -1
- package/fesm2022/masterteam-components-tabs.mjs +7 -2
- package/fesm2022/masterteam-components-tabs.mjs.map +1 -1
- package/fesm2022/masterteam-components-upload-field.mjs +1 -1
- package/fesm2022/masterteam-components-upload-field.mjs.map +1 -1
- package/fesm2022/masterteam-components.mjs +18 -24
- package/fesm2022/masterteam-components.mjs.map +1 -1
- package/package.json +1 -1
- package/types/masterteam-components-entities.d.ts +10 -0
- package/types/masterteam-components-tabs.d.ts +9 -0
package/package.json
CHANGED
|
@@ -83,6 +83,11 @@ interface EntityUserConfig extends EntityBaseConfig {
|
|
|
83
83
|
showDisplayName?: boolean;
|
|
84
84
|
showPhoneNumber?: boolean;
|
|
85
85
|
showEmail?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether the user's own picture is rendered. When `false` the avatar stays
|
|
88
|
+
* in place but falls back to the generic user icon instead of `photoUrl`.
|
|
89
|
+
*/
|
|
90
|
+
showUserImage?: boolean;
|
|
86
91
|
/** Maximum users shown before the MultiUser preview collapses behind +N. */
|
|
87
92
|
maxVisibleUsers?: number;
|
|
88
93
|
}
|
|
@@ -434,6 +439,11 @@ declare class EntityUser {
|
|
|
434
439
|
readonly showDisplayName: _angular_core.Signal<boolean>;
|
|
435
440
|
readonly showPhoneNumber: _angular_core.Signal<boolean>;
|
|
436
441
|
readonly showEmail: _angular_core.Signal<boolean>;
|
|
442
|
+
/**
|
|
443
|
+
* When off, the avatar falls back to the generic user icon so the layout keeps
|
|
444
|
+
* its shape while the user's real picture stays hidden.
|
|
445
|
+
*/
|
|
446
|
+
readonly showUserImage: _angular_core.Signal<boolean>;
|
|
437
447
|
readonly phoneNumber: _angular_core.Signal<string>;
|
|
438
448
|
readonly email: _angular_core.Signal<string>;
|
|
439
449
|
readonly hasContactInfo: _angular_core.Signal<boolean>;
|
|
@@ -9,6 +9,14 @@ interface OptionItem {
|
|
|
9
9
|
badge?: number | string | null;
|
|
10
10
|
severity?: TabSeverity | null;
|
|
11
11
|
disabled?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* The host is still resolving this tab's title — typically it names a record
|
|
14
|
+
* that is being fetched. The label slot renders a placeholder instead of the
|
|
15
|
+
* text, so the tab never flashes a stand-in name before the real one lands.
|
|
16
|
+
* Keep supplying the fallback `label`: it stays the accessible name and is
|
|
17
|
+
* still what the "more" search matches against.
|
|
18
|
+
*/
|
|
19
|
+
loading?: boolean;
|
|
12
20
|
[key: string]: unknown;
|
|
13
21
|
}
|
|
14
22
|
type NormalizedTabSeverity = 'primary' | 'secondary' | 'success' | 'info' | 'warn' | 'danger' | 'help' | 'contrast';
|
|
@@ -55,6 +63,7 @@ declare class Tabs {
|
|
|
55
63
|
resolveIcon(option: OptionItem): MTIcon | null;
|
|
56
64
|
resolveIconOrDefault(option: OptionItem): MTIcon;
|
|
57
65
|
resolveBadge(option: OptionItem): number | string | null;
|
|
66
|
+
isOptionLoading(option: OptionItem): boolean;
|
|
58
67
|
hasBadge(option: OptionItem): boolean;
|
|
59
68
|
hasCountBadge(option: OptionItem): boolean;
|
|
60
69
|
severity(option: OptionItem): NormalizedTabSeverity;
|