@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
|
@@ -261,7 +261,7 @@ class EntityUser {
|
|
|
261
261
|
return displayOrPlaceholder(user.displayName ?? null);
|
|
262
262
|
}
|
|
263
263
|
userPhotoFor(user) {
|
|
264
|
-
return user.photoUrl ?? '';
|
|
264
|
+
return this.showUserImage() ? (user.photoUrl ?? '') : '';
|
|
265
265
|
}
|
|
266
266
|
labelTextFor(user) {
|
|
267
267
|
return user.name ?? '';
|
|
@@ -282,7 +282,7 @@ class EntityUser {
|
|
|
282
282
|
emptyUserName = computed(() => displayOrPlaceholder(null), ...(ngDevMode ? [{ debugName: "emptyUserName" }] : /* istanbul ignore next */ []));
|
|
283
283
|
rawUserName = computed(() => this.userValue()?.displayName ?? null, ...(ngDevMode ? [{ debugName: "rawUserName" }] : /* istanbul ignore next */ []));
|
|
284
284
|
userName = computed(() => displayOrPlaceholder(this.rawUserName()), ...(ngDevMode ? [{ debugName: "userName" }] : /* istanbul ignore next */ []));
|
|
285
|
-
userPhoto = computed(() => this.userValue()?.photoUrl ?? '', ...(ngDevMode ? [{ debugName: "userPhoto" }] : /* istanbul ignore next */ []));
|
|
285
|
+
userPhoto = computed(() => this.showUserImage() ? (this.userValue()?.photoUrl ?? '') : '', ...(ngDevMode ? [{ debugName: "userPhoto" }] : /* istanbul ignore next */ []));
|
|
286
286
|
labelText = computed(() => this.userValue()?.name ?? '', ...(ngDevMode ? [{ debugName: "labelText" }] : /* istanbul ignore next */ []));
|
|
287
287
|
/**
|
|
288
288
|
* `true` when the referenced user is no longer linked to the application.
|
|
@@ -295,6 +295,11 @@ class EntityUser {
|
|
|
295
295
|
showDisplayName = computed(() => this.config().showDisplayName ?? true, ...(ngDevMode ? [{ debugName: "showDisplayName" }] : /* istanbul ignore next */ []));
|
|
296
296
|
showPhoneNumber = computed(() => this.config().showPhoneNumber ?? false, ...(ngDevMode ? [{ debugName: "showPhoneNumber" }] : /* istanbul ignore next */ []));
|
|
297
297
|
showEmail = computed(() => this.config().showEmail ?? false, ...(ngDevMode ? [{ debugName: "showEmail" }] : /* istanbul ignore next */ []));
|
|
298
|
+
/**
|
|
299
|
+
* When off, the avatar falls back to the generic user icon so the layout keeps
|
|
300
|
+
* its shape while the user's real picture stays hidden.
|
|
301
|
+
*/
|
|
302
|
+
showUserImage = computed(() => this.config().showUserImage ?? true, ...(ngDevMode ? [{ debugName: "showUserImage" }] : /* istanbul ignore next */ []));
|
|
298
303
|
phoneNumber = computed(() => this.userValue()?.phoneNumber ?? '', ...(ngDevMode ? [{ debugName: "phoneNumber" }] : /* istanbul ignore next */ []));
|
|
299
304
|
email = computed(() => this.userValue()?.email ?? '', ...(ngDevMode ? [{ debugName: "email" }] : /* istanbul ignore next */ []));
|
|
300
305
|
hasContactInfo = computed(() => (this.showPhoneNumber() && !!this.phoneNumber()) ||
|