yukit-web 0.11.4 → 0.11.5

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,7 +1,7 @@
1
1
  {
2
2
  "name": "yukit-web",
3
3
  "description": "Angular UI component library for Yurest web applications.",
4
- "version": "0.11.4",
4
+ "version": "0.11.5",
5
5
  "author": {
6
6
  "name": "Yurest Solutions",
7
7
  "email": "develop@yurest.com"
@@ -4103,11 +4103,15 @@ export interface YuwAvatarGroupItemDto {
4103
4103
  }
4104
4104
  /** The size vocabulary of `<yuw-avatar>`. */
4105
4105
  export type YuwAvatarSizeDto = 'default' | 'sm' | 'lg';
4106
+ /** The shape vocabulary of `<yuw-avatar>`: `circle` for people, `square` for logos and other entities. */
4107
+ export type YuwAvatarShapeDto = 'circle' | 'square';
4106
4108
  /**
4107
4109
  * Displays a user or entity avatar with optional image, fallback text/initials, status badge, or overlapping group layout.
4108
4110
  *
4109
4111
  * Inputs:
4110
4112
  * - `size`: Avatar size (`'default'`, `'sm'`, `'lg'`). Default is `'default'`.
4113
+ * - `shape`: Avatar shape (`'circle'`, `'square'`), applied to the image, its fallback and its border. Default is
4114
+ * `'circle'`.
4111
4115
  * - `src`: Image URL for single-avatar mode. Omit to display fallback text.
4112
4116
  * - `alt`: Required. Accessible label for single-avatar mode and fallback text. User-facing text —
4113
4117
  * the consuming app is responsible for providing (and translating) it.
@@ -4134,9 +4138,11 @@ export declare class YuwAvatarComponent {
4134
4138
  readonly fallback: import("@angular/core").InputSignal<string | undefined>;
4135
4139
  readonly group: import("@angular/core").InputSignal<YuwAvatarGroupItemDto[] | undefined>;
4136
4140
  readonly groupCount: import("@angular/core").InputSignal<string | undefined>;
4141
+ readonly shape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
4137
4142
  readonly size: import("@angular/core").InputSignal<YuwAvatarSizeDto>;
4138
4143
  readonly src: import("@angular/core").InputSignal<string | undefined>;
4139
4144
  readonly userClass: import("@angular/core").InputSignal<string>;
4145
+ protected readonly _classes: import("@angular/core").Signal<string>;
4140
4146
  protected readonly _isGroup: import("@angular/core").Signal<boolean>;
4141
4147
  static ɵfac: i0.ɵɵFactoryDeclaration<YuwAvatarComponent, never>;
4142
4148
  static ɵcmp: i0.ɵɵComponentDeclaration<YuwAvatarComponent, "yuw-avatar", never, {
@@ -4165,6 +4171,11 @@ export declare class YuwAvatarComponent {
4165
4171
  "required": false;
4166
4172
  "isSignal": true;
4167
4173
  };
4174
+ "shape": {
4175
+ "alias": "shape";
4176
+ "required": false;
4177
+ "isSignal": true;
4178
+ };
4168
4179
  "size": {
4169
4180
  "alias": "size";
4170
4181
  "required": false;
@@ -6891,7 +6902,7 @@ export declare class YuwsActiveStatusCellComponent {
6891
6902
  */
6892
6903
  export type YuwsAvatarNameCellSize = 'sm' | 'base' | 'md';
6893
6904
  /** Avatar shape of the cell: `square` by default, `circle` where a round avatar is wanted, such as people. */
6894
- export type YuwsAvatarNameCellShape = 'circle' | 'square';
6905
+ export type YuwsAvatarNameCellShape = YuwAvatarShapeDto;
6895
6906
  /**
6896
6907
  * `meta.headerClass` of a column of these cells, by avatar size: it indents the title past the avatar and the gap, so
6897
6908
  * it lines up with the name.
@@ -6913,13 +6924,12 @@ export declare class YuwsAvatarNameCellComponent {
6913
6924
  readonly description: import("@angular/core").InputSignal<string | undefined>;
6914
6925
  readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
6915
6926
  readonly name: import("@angular/core").InputSignal<string>;
6916
- readonly shape: import("@angular/core").InputSignal<YuwsAvatarNameCellShape>;
6927
+ readonly shape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
6917
6928
  readonly size: import("@angular/core").InputSignal<YuwsAvatarNameCellSize>;
6918
6929
  protected readonly avatar: import("@angular/core").Signal<{
6919
6930
  size: YuwAvatarSizeDto;
6920
6931
  class: string;
6921
6932
  }>;
6922
- protected readonly avatarClass: import("@angular/core").Signal<string>;
6923
6933
  protected readonly initials: import("@angular/core").Signal<string>;
6924
6934
  static ɵfac: i0.ɵɵFactoryDeclaration<YuwsAvatarNameCellComponent, never>;
6925
6935
  static ɵcmp: i0.ɵɵComponentDeclaration<YuwsAvatarNameCellComponent, "yuws-avatar-name-cell", never, {
@@ -7978,6 +7988,7 @@ export declare class YuwsListPaginationComponent {
7978
7988
  * - `imageUrl`: Image of the entity, shown before the title, which renders only when set; `title` is its alt text.
7979
7989
  * - `imageFallback`: Text in the image's place, such as initials, while it loads, when it fails, or when there is none.
7980
7990
  * The avatar renders when either this or `imageUrl` is set.
7991
+ * - `imageShape`: Shape of the image (`'circle'`, `'square'`). Default is `'square'`, as an entity's logo is.
7981
7992
  * - `primaryDisabled`: Disables the primary action, which stays visible but ignores clicks, e.g. while the list it creates items for is loading.
7982
7993
  * - `primaryIcon`: Icon name shown in the primary action.
7983
7994
  * - `primaryLabel`: Text of the primary action, which renders only when set.
@@ -7995,6 +8006,7 @@ export declare class YuwsPageHeaderComponent {
7995
8006
  readonly backLabel: import("@angular/core").InputSignal<string | undefined>;
7996
8007
  readonly description: import("@angular/core").InputSignal<string | undefined>;
7997
8008
  readonly imageFallback: import("@angular/core").InputSignal<string | undefined>;
8009
+ readonly imageShape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
7998
8010
  readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
7999
8011
  readonly primaryDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
8000
8012
  readonly primaryIcon: import("@angular/core").InputSignal<string | undefined>;
@@ -8025,6 +8037,11 @@ export declare class YuwsPageHeaderComponent {
8025
8037
  "required": false;
8026
8038
  "isSignal": true;
8027
8039
  };
8040
+ "imageShape": {
8041
+ "alias": "imageShape";
8042
+ "required": false;
8043
+ "isSignal": true;
8044
+ };
8028
8045
  "imageUrl": {
8029
8046
  "alias": "imageUrl";
8030
8047
  "required": false;