yukit-web 0.11.4 → 0.13.0
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/fesm2022/yukit-web.mjs +116 -17
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +46 -5
package/package.json
CHANGED
package/types/yukit-web.d.ts
CHANGED
|
@@ -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;
|
|
@@ -4329,6 +4340,7 @@ export type YuwSheetScrollStrategyDto = null | 'close' | 'reposition';
|
|
|
4329
4340
|
* - `side`: Edge of the screen the panel slides in from (`'top'`, `'bottom'`, `'left'`, `'right'`). Default is `'right'`.
|
|
4330
4341
|
* - `title`: Optional header title text. User-facing text the consuming app is responsible for translating.
|
|
4331
4342
|
* - `description`: Optional header description text. User-facing text the consuming app is responsible for translating.
|
|
4343
|
+
* - `note`: Optional second muted line under `description`. User-facing text the consuming app is responsible for translating.
|
|
4332
4344
|
* - `ariaLabel`: Accessible name for the sheet when no visible `title` is rendered. User-facing
|
|
4333
4345
|
* text the consuming app is responsible for translating.
|
|
4334
4346
|
* - `closeLabel`: Accessible label of the corner close (×) button. When set, the close button
|
|
@@ -4386,6 +4398,7 @@ export declare class YuwSheetComponent {
|
|
|
4386
4398
|
readonly closeOnOutsidePointerEvents: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
4387
4399
|
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
4388
4400
|
readonly disableClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
4401
|
+
readonly note: import("@angular/core").InputSignal<string | undefined>;
|
|
4389
4402
|
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
4390
4403
|
readonly overlayClass: import("@angular/core").InputSignal<string | undefined>;
|
|
4391
4404
|
readonly panelClass: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -4436,6 +4449,11 @@ export declare class YuwSheetComponent {
|
|
|
4436
4449
|
"required": false;
|
|
4437
4450
|
"isSignal": true;
|
|
4438
4451
|
};
|
|
4452
|
+
"note": {
|
|
4453
|
+
"alias": "note";
|
|
4454
|
+
"required": false;
|
|
4455
|
+
"isSignal": true;
|
|
4456
|
+
};
|
|
4439
4457
|
"open": {
|
|
4440
4458
|
"alias": "open";
|
|
4441
4459
|
"required": false;
|
|
@@ -6891,7 +6909,7 @@ export declare class YuwsActiveStatusCellComponent {
|
|
|
6891
6909
|
*/
|
|
6892
6910
|
export type YuwsAvatarNameCellSize = 'sm' | 'base' | 'md';
|
|
6893
6911
|
/** Avatar shape of the cell: `square` by default, `circle` where a round avatar is wanted, such as people. */
|
|
6894
|
-
export type YuwsAvatarNameCellShape =
|
|
6912
|
+
export type YuwsAvatarNameCellShape = YuwAvatarShapeDto;
|
|
6895
6913
|
/**
|
|
6896
6914
|
* `meta.headerClass` of a column of these cells, by avatar size: it indents the title past the avatar and the gap, so
|
|
6897
6915
|
* it lines up with the name.
|
|
@@ -6913,13 +6931,12 @@ export declare class YuwsAvatarNameCellComponent {
|
|
|
6913
6931
|
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
6914
6932
|
readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
|
|
6915
6933
|
readonly name: import("@angular/core").InputSignal<string>;
|
|
6916
|
-
readonly shape: import("@angular/core").InputSignal<
|
|
6934
|
+
readonly shape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
|
|
6917
6935
|
readonly size: import("@angular/core").InputSignal<YuwsAvatarNameCellSize>;
|
|
6918
6936
|
protected readonly avatar: import("@angular/core").Signal<{
|
|
6919
6937
|
size: YuwAvatarSizeDto;
|
|
6920
6938
|
class: string;
|
|
6921
6939
|
}>;
|
|
6922
|
-
protected readonly avatarClass: import("@angular/core").Signal<string>;
|
|
6923
6940
|
protected readonly initials: import("@angular/core").Signal<string>;
|
|
6924
6941
|
static ɵfac: i0.ɵɵFactoryDeclaration<YuwsAvatarNameCellComponent, never>;
|
|
6925
6942
|
static ɵcmp: i0.ɵɵComponentDeclaration<YuwsAvatarNameCellComponent, "yuws-avatar-name-cell", never, {
|
|
@@ -7115,11 +7132,13 @@ export declare class YuwsLinkCellComponent {
|
|
|
7115
7132
|
}
|
|
7116
7133
|
/**
|
|
7117
7134
|
* An entry of a row's menu: `href` opens a link in a new tab, otherwise `run` does it. `separated` starts a group and
|
|
7118
|
-
* `destructive` marks an irreversible one. `label` is already translated.
|
|
7135
|
+
* `destructive` marks an irreversible one. `label` is already translated. `icon` is an ng-icon name shown before the
|
|
7136
|
+
* label, registered by the consumer with `provideIcons`.
|
|
7119
7137
|
*/
|
|
7120
7138
|
export interface YuwsMenuAction {
|
|
7121
7139
|
readonly key: string;
|
|
7122
7140
|
readonly label: string;
|
|
7141
|
+
readonly icon?: string;
|
|
7123
7142
|
readonly href?: string;
|
|
7124
7143
|
readonly run?: () => void;
|
|
7125
7144
|
readonly separated?: boolean;
|
|
@@ -7132,7 +7151,7 @@ export interface YuwsMenuAction {
|
|
|
7132
7151
|
* open too.
|
|
7133
7152
|
*
|
|
7134
7153
|
* Inputs:
|
|
7135
|
-
* - `actions` (required): Entries of the menu, in order.
|
|
7154
|
+
* - `actions` (required): Entries of the menu, in order, each with an optional icon before its label.
|
|
7136
7155
|
* - `label` (required): Accessible name of the button. The consuming app translates it.
|
|
7137
7156
|
*/
|
|
7138
7157
|
export declare class YuwsMenuActionsCellComponent {
|
|
@@ -7547,6 +7566,7 @@ export interface YuwsFormSheetLabels {
|
|
|
7547
7566
|
* - `errorMessage`: Rejection shown above the footer, so the draft stays on screen to be fixed. Default is `undefined`.
|
|
7548
7567
|
* - `hideFooter`: Hides the footer. Default is `false`.
|
|
7549
7568
|
* - `labels` (required): Cancel, close and save texts.
|
|
7569
|
+
* - `note`: Second muted line under `description`. Default is `undefined`.
|
|
7550
7570
|
* - `panelClass`: Class of the sheet panel. Default is `'w-full sm:max-w-md'`.
|
|
7551
7571
|
* - `readonly`: Drops the save button. Default is `false`.
|
|
7552
7572
|
* - `removeDisabled`: Disables the delete button. Default is `false`.
|
|
@@ -7554,6 +7574,8 @@ export interface YuwsFormSheetLabels {
|
|
|
7554
7574
|
* - `restoreLabel`: Renders the restore button with this text. Default is `undefined`.
|
|
7555
7575
|
* - `saveColor`: Color of the save button (any `YuwColorDto` value). Default is `'primary'`.
|
|
7556
7576
|
* - `saveDisabled`: Disables the save button. Default is `false`.
|
|
7577
|
+
* - `saveIcon`: ng-icon name of the save button's icon, registered by the consumer with `provideIcons` unless it is the
|
|
7578
|
+
* default. Default is `'lucideSave'`.
|
|
7557
7579
|
* - `saving`: Disables the footer actions while the host's write is in flight. Default is `false`.
|
|
7558
7580
|
* - `title` (required): Panel title.
|
|
7559
7581
|
* - `open` (model): Whether the panel is open.
|
|
@@ -7567,6 +7589,7 @@ export declare class YuwsFormSheetComponent {
|
|
|
7567
7589
|
readonly guarded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7568
7590
|
readonly hideFooter: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7569
7591
|
readonly labels: import("@angular/core").InputSignal<YuwsFormSheetLabels>;
|
|
7592
|
+
readonly note: import("@angular/core").InputSignal<string | undefined>;
|
|
7570
7593
|
readonly open: import("@angular/core").ModelSignal<boolean>;
|
|
7571
7594
|
readonly panelClass: import("@angular/core").InputSignal<string>;
|
|
7572
7595
|
readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -7575,6 +7598,7 @@ export declare class YuwsFormSheetComponent {
|
|
|
7575
7598
|
readonly restoreLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
7576
7599
|
readonly saveColor: import("@angular/core").InputSignal<YuwColorDto>;
|
|
7577
7600
|
readonly saveDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7601
|
+
readonly saveIcon: import("@angular/core").InputSignal<string>;
|
|
7578
7602
|
readonly saving: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7579
7603
|
readonly title: import("@angular/core").InputSignal<string>;
|
|
7580
7604
|
readonly back: import("@angular/core").OutputEmitterRef<void>;
|
|
@@ -7616,6 +7640,11 @@ export declare class YuwsFormSheetComponent {
|
|
|
7616
7640
|
"required": true;
|
|
7617
7641
|
"isSignal": true;
|
|
7618
7642
|
};
|
|
7643
|
+
"note": {
|
|
7644
|
+
"alias": "note";
|
|
7645
|
+
"required": false;
|
|
7646
|
+
"isSignal": true;
|
|
7647
|
+
};
|
|
7619
7648
|
"open": {
|
|
7620
7649
|
"alias": "open";
|
|
7621
7650
|
"required": true;
|
|
@@ -7656,6 +7685,11 @@ export declare class YuwsFormSheetComponent {
|
|
|
7656
7685
|
"required": false;
|
|
7657
7686
|
"isSignal": true;
|
|
7658
7687
|
};
|
|
7688
|
+
"saveIcon": {
|
|
7689
|
+
"alias": "saveIcon";
|
|
7690
|
+
"required": false;
|
|
7691
|
+
"isSignal": true;
|
|
7692
|
+
};
|
|
7659
7693
|
"saving": {
|
|
7660
7694
|
"alias": "saving";
|
|
7661
7695
|
"required": false;
|
|
@@ -7978,6 +8012,7 @@ export declare class YuwsListPaginationComponent {
|
|
|
7978
8012
|
* - `imageUrl`: Image of the entity, shown before the title, which renders only when set; `title` is its alt text.
|
|
7979
8013
|
* - `imageFallback`: Text in the image's place, such as initials, while it loads, when it fails, or when there is none.
|
|
7980
8014
|
* The avatar renders when either this or `imageUrl` is set.
|
|
8015
|
+
* - `imageShape`: Shape of the image (`'circle'`, `'square'`). Default is `'square'`, as an entity's logo is.
|
|
7981
8016
|
* - `primaryDisabled`: Disables the primary action, which stays visible but ignores clicks, e.g. while the list it creates items for is loading.
|
|
7982
8017
|
* - `primaryIcon`: Icon name shown in the primary action.
|
|
7983
8018
|
* - `primaryLabel`: Text of the primary action, which renders only when set.
|
|
@@ -7995,6 +8030,7 @@ export declare class YuwsPageHeaderComponent {
|
|
|
7995
8030
|
readonly backLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
7996
8031
|
readonly description: import("@angular/core").InputSignal<string | undefined>;
|
|
7997
8032
|
readonly imageFallback: import("@angular/core").InputSignal<string | undefined>;
|
|
8033
|
+
readonly imageShape: import("@angular/core").InputSignal<YuwAvatarShapeDto>;
|
|
7998
8034
|
readonly imageUrl: import("@angular/core").InputSignal<string | undefined>;
|
|
7999
8035
|
readonly primaryDisabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
8000
8036
|
readonly primaryIcon: import("@angular/core").InputSignal<string | undefined>;
|
|
@@ -8025,6 +8061,11 @@ export declare class YuwsPageHeaderComponent {
|
|
|
8025
8061
|
"required": false;
|
|
8026
8062
|
"isSignal": true;
|
|
8027
8063
|
};
|
|
8064
|
+
"imageShape": {
|
|
8065
|
+
"alias": "imageShape";
|
|
8066
|
+
"required": false;
|
|
8067
|
+
"isSignal": true;
|
|
8068
|
+
};
|
|
8028
8069
|
"imageUrl": {
|
|
8029
8070
|
"alias": "imageUrl";
|
|
8030
8071
|
"required": false;
|