yukit-web 0.11.3 → 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.3",
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;
@@ -6885,8 +6896,13 @@ export declare class YuwsActiveStatusCellComponent {
6885
6896
  };
6886
6897
  }, {}, never, never, true, never>;
6887
6898
  }
6888
- /** Avatar size of the cell: `sm` for entity listings, `md` for the 45x45 thumbnails of catalog listings. */
6889
- export type YuwsAvatarNameCellSize = 'sm' | 'md';
6899
+ /**
6900
+ * Avatar size of the cell: `sm` for entity listings, `base` (36x36) as tall as the name and its second line, so a
6901
+ * bigger image does not grow the row, and `md` for the 45x45 thumbnails of catalog listings.
6902
+ */
6903
+ export type YuwsAvatarNameCellSize = 'sm' | 'base' | 'md';
6904
+ /** Avatar shape of the cell: `square` by default, `circle` where a round avatar is wanted, such as people. */
6905
+ export type YuwsAvatarNameCellShape = YuwAvatarShapeDto;
6890
6906
  /**
6891
6907
  * `meta.headerClass` of a column of these cells, by avatar size: it indents the title past the avatar and the gap, so
6892
6908
  * it lines up with the name.
@@ -6901,12 +6917,14 @@ export declare const YUWS_AVATAR_NAME_HEADER_CLASS: Readonly<Record<YuwsAvatarNa
6901
6917
  * - `imageUrl`: Image of the row. Default is `undefined`.
6902
6918
  * - `name` (required): Visible name; also the avatar's alternative text.
6903
6919
  * - `description`: Second line under the name; omitted when empty. Default is `undefined`.
6904
- * - `size`: Avatar size (`'sm'`, `'md'`). Default is `'sm'`.
6920
+ * - `shape`: Avatar shape (`'circle'`, `'square'`). Default is `'square'`.
6921
+ * - `size`: Avatar size (`'sm'`, `'base'`, `'md'`). Default is `'sm'`.
6905
6922
  */
6906
6923
  export declare class YuwsAvatarNameCellComponent {
6907
6924
  readonly description: import("@angular/core").InputSignal<string | undefined>;
6908
6925
  readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
6909
6926
  readonly name: import("@angular/core").InputSignal<string>;
6927
+ readonly shape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
6910
6928
  readonly size: import("@angular/core").InputSignal<YuwsAvatarNameCellSize>;
6911
6929
  protected readonly avatar: import("@angular/core").Signal<{
6912
6930
  size: YuwAvatarSizeDto;
@@ -6930,6 +6948,11 @@ export declare class YuwsAvatarNameCellComponent {
6930
6948
  "required": true;
6931
6949
  "isSignal": true;
6932
6950
  };
6951
+ "shape": {
6952
+ "alias": "shape";
6953
+ "required": false;
6954
+ "isSignal": true;
6955
+ };
6933
6956
  "size": {
6934
6957
  "alias": "size";
6935
6958
  "required": false;
@@ -7965,6 +7988,7 @@ export declare class YuwsListPaginationComponent {
7965
7988
  * - `imageUrl`: Image of the entity, shown before the title, which renders only when set; `title` is its alt text.
7966
7989
  * - `imageFallback`: Text in the image's place, such as initials, while it loads, when it fails, or when there is none.
7967
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.
7968
7992
  * - `primaryDisabled`: Disables the primary action, which stays visible but ignores clicks, e.g. while the list it creates items for is loading.
7969
7993
  * - `primaryIcon`: Icon name shown in the primary action.
7970
7994
  * - `primaryLabel`: Text of the primary action, which renders only when set.
@@ -7982,6 +8006,7 @@ export declare class YuwsPageHeaderComponent {
7982
8006
  readonly backLabel: import("@angular/core").InputSignal<string | undefined>;
7983
8007
  readonly description: import("@angular/core").InputSignal<string | undefined>;
7984
8008
  readonly imageFallback: import("@angular/core").InputSignal<string | undefined>;
8009
+ readonly imageShape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
7985
8010
  readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
7986
8011
  readonly primaryDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
7987
8012
  readonly primaryIcon: import("@angular/core").InputSignal<string | undefined>;
@@ -8012,6 +8037,11 @@ export declare class YuwsPageHeaderComponent {
8012
8037
  "required": false;
8013
8038
  "isSignal": true;
8014
8039
  };
8040
+ "imageShape": {
8041
+ "alias": "imageShape";
8042
+ "required": false;
8043
+ "isSignal": true;
8044
+ };
8015
8045
  "imageUrl": {
8016
8046
  "alias": "imageUrl";
8017
8047
  "required": false;
@@ -8383,6 +8413,7 @@ export declare class YuwsFilterContentDirective {
8383
8413
  * - `labels`: Required `YuwsListToolbarLabels` with the consumer's translated text for every control.
8384
8414
  * - `search`: Two-way (`[(search)]`) text of the search field. Default is `''`.
8385
8415
  * - `searchPlaceholder`: Placeholder of the search field; the search renders only when set.
8416
+ * - `shareFormats`: Formats the share menu offers, in its own order. Default is every `YuwTableShareFormat`.
8386
8417
  * - `shareSource`: `YuwTableShareSource`, typically the page's `yuws-list-table`; with `labels.share` it adds a menu that copies, prints or downloads the table as PDF, Excel or CSV.
8387
8418
  * - `shareTitle`: Title of what the share menu prints and downloads, and name of its files.
8388
8419
  * - `serverSideFormats`: Share formats the consumer's server builds: picking one emits `shareRequested` instead of
@@ -8411,6 +8442,7 @@ export declare class YuwsListToolbarComponent {
8411
8442
  readonly searchPlaceholder: import("@angular/core").InputSignal<string | undefined>;
8412
8443
  readonly selection: import("@angular/core").ModelSignal<Readonly<Record<string, import("yukit-web").YuwsFilterValue>>>;
8413
8444
  readonly serverSideFormats: import("@angular/core").InputSignal<readonly YuwTableShareFormat[]>;
8445
+ readonly shareFormats: import("@angular/core").InputSignal<readonly YuwTableShareFormat[]>;
8414
8446
  readonly shareSource: import("@angular/core").InputSignal<YuwTableShareSource | undefined>;
8415
8447
  readonly shareTitle: import("@angular/core").InputSignal<string | undefined>;
8416
8448
  readonly showExport: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
@@ -8485,6 +8517,11 @@ export declare class YuwsListToolbarComponent {
8485
8517
  "required": false;
8486
8518
  "isSignal": true;
8487
8519
  };
8520
+ "shareFormats": {
8521
+ "alias": "shareFormats";
8522
+ "required": false;
8523
+ "isSignal": true;
8524
+ };
8488
8525
  "shareSource": {
8489
8526
  "alias": "shareSource";
8490
8527
  "required": false;