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/fesm2022/yukit-web.mjs +48 -11
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +20 -3
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -4104,6 +4104,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4104
4104
|
}]
|
|
4105
4105
|
}
|
|
4106
4106
|
});
|
|
4107
|
+
const SHAPE_CLASSES = {
|
|
4108
|
+
circle: "",
|
|
4109
|
+
square: "rounded-md after:rounded-md *:rounded-md"
|
|
4110
|
+
};
|
|
4107
4111
|
var YuwAvatarComponent = class YuwAvatarComponent {
|
|
4108
4112
|
constructor() {
|
|
4109
4113
|
this.alt = input.required(...ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []);
|
|
@@ -4114,12 +4118,14 @@ var YuwAvatarComponent = class YuwAvatarComponent {
|
|
|
4114
4118
|
this.fallback = input(void 0, ...ngDevMode ? [{ debugName: "fallback" }] : /* istanbul ignore next */ []);
|
|
4115
4119
|
this.group = input(void 0, ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
|
|
4116
4120
|
this.groupCount = input(void 0, ...ngDevMode ? [{ debugName: "groupCount" }] : /* istanbul ignore next */ []);
|
|
4121
|
+
this.shape = input("circle", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
4117
4122
|
this.size = input("default", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
4118
4123
|
this.src = input(void 0, ...ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []);
|
|
4119
4124
|
this.userClass = input("", {
|
|
4120
4125
|
...ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {},
|
|
4121
4126
|
alias: "class"
|
|
4122
4127
|
});
|
|
4128
|
+
this._classes = computed(() => cn(SHAPE_CLASSES[this.shape()], this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
4123
4129
|
this._isGroup = computed(() => (this.group()?.length ?? 0) > 0, ...ngDevMode ? [{ debugName: "_isGroup" }] : /* istanbul ignore next */ []);
|
|
4124
4130
|
}
|
|
4125
4131
|
static {
|
|
@@ -4175,6 +4181,13 @@ var YuwAvatarComponent = class YuwAvatarComponent {
|
|
|
4175
4181
|
isRequired: false,
|
|
4176
4182
|
transformFunction: null
|
|
4177
4183
|
},
|
|
4184
|
+
shape: {
|
|
4185
|
+
classPropertyName: "shape",
|
|
4186
|
+
publicName: "shape",
|
|
4187
|
+
isSignal: true,
|
|
4188
|
+
isRequired: false,
|
|
4189
|
+
transformFunction: null
|
|
4190
|
+
},
|
|
4178
4191
|
size: {
|
|
4179
4192
|
classPropertyName: "size",
|
|
4180
4193
|
publicName: "size",
|
|
@@ -4199,7 +4212,7 @@ var YuwAvatarComponent = class YuwAvatarComponent {
|
|
|
4199
4212
|
},
|
|
4200
4213
|
host: { classAttribute: "contents" },
|
|
4201
4214
|
ngImport: i0,
|
|
4202
|
-
template: "<ng-template #avatarBox let-src=\"src\" let-alt=\"alt\" let-fallback=\"fallback\" let-showBadge=\"showBadge\">\n <hlm-avatar [size]=\"size()\" [class]=\"
|
|
4215
|
+
template: "<ng-template #avatarBox let-src=\"src\" let-alt=\"alt\" let-fallback=\"fallback\" let-showBadge=\"showBadge\">\n <hlm-avatar [size]=\"size()\" [class]=\"_classes()\">\n @if (src) {\n <img hlmAvatarImage [src]=\"src\" [alt]=\"alt ?? ''\" />\n }\n <span hlmAvatarFallback>{{ fallback }}</span>\n\n @if (showBadge) {\n <span hlmAvatarBadge>\n <ng-content select=\"[yuwAvatarBadgeIcon]\" />\n </span>\n }\n </hlm-avatar>\n</ng-template>\n\n@if (_isGroup()) {\n <div hlmAvatarGroup>\n @for (entry of group(); track entry.alt + '|' + (entry.src ?? '')) {\n <ng-container\n [ngTemplateOutlet]=\"avatarBox\"\n [ngTemplateOutletContext]=\"{ src: entry.src, alt: entry.alt, fallback: entry.fallback, showBadge: false }\"\n />\n }\n\n @if (groupCount()) {\n <span hlmAvatarGroupCount>{{ groupCount() }}</span>\n }\n </div>\n} @else {\n <ng-container\n [ngTemplateOutlet]=\"avatarBox\"\n [ngTemplateOutletContext]=\"{ src: src(), alt: alt(), fallback: fallback(), showBadge: badge() }\"\n />\n}\n",
|
|
4203
4216
|
dependencies: [
|
|
4204
4217
|
{
|
|
4205
4218
|
kind: "directive",
|
|
@@ -4261,7 +4274,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4261
4274
|
imports: [NgTemplateOutlet, ...HlmAvatarImports],
|
|
4262
4275
|
host: { class: "contents" },
|
|
4263
4276
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4264
|
-
template: "<ng-template #avatarBox let-src=\"src\" let-alt=\"alt\" let-fallback=\"fallback\" let-showBadge=\"showBadge\">\n <hlm-avatar [size]=\"size()\" [class]=\"
|
|
4277
|
+
template: "<ng-template #avatarBox let-src=\"src\" let-alt=\"alt\" let-fallback=\"fallback\" let-showBadge=\"showBadge\">\n <hlm-avatar [size]=\"size()\" [class]=\"_classes()\">\n @if (src) {\n <img hlmAvatarImage [src]=\"src\" [alt]=\"alt ?? ''\" />\n }\n <span hlmAvatarFallback>{{ fallback }}</span>\n\n @if (showBadge) {\n <span hlmAvatarBadge>\n <ng-content select=\"[yuwAvatarBadgeIcon]\" />\n </span>\n }\n </hlm-avatar>\n</ng-template>\n\n@if (_isGroup()) {\n <div hlmAvatarGroup>\n @for (entry of group(); track entry.alt + '|' + (entry.src ?? '')) {\n <ng-container\n [ngTemplateOutlet]=\"avatarBox\"\n [ngTemplateOutletContext]=\"{ src: entry.src, alt: entry.alt, fallback: entry.fallback, showBadge: false }\"\n />\n }\n\n @if (groupCount()) {\n <span hlmAvatarGroupCount>{{ groupCount() }}</span>\n }\n </div>\n} @else {\n <ng-container\n [ngTemplateOutlet]=\"avatarBox\"\n [ngTemplateOutletContext]=\"{ src: src(), alt: alt(), fallback: fallback(), showBadge: badge() }\"\n />\n}\n"
|
|
4265
4278
|
}]
|
|
4266
4279
|
}],
|
|
4267
4280
|
propDecorators: {
|
|
@@ -4305,6 +4318,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4305
4318
|
required: false
|
|
4306
4319
|
}]
|
|
4307
4320
|
}],
|
|
4321
|
+
shape: [{
|
|
4322
|
+
type: i0.Input,
|
|
4323
|
+
args: [{
|
|
4324
|
+
isSignal: true,
|
|
4325
|
+
alias: "shape",
|
|
4326
|
+
required: false
|
|
4327
|
+
}]
|
|
4328
|
+
}],
|
|
4308
4329
|
size: [{
|
|
4309
4330
|
type: i0.Input,
|
|
4310
4331
|
args: [{
|
|
@@ -5700,6 +5721,7 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5700
5721
|
"fallback",
|
|
5701
5722
|
"group",
|
|
5702
5723
|
"groupCount",
|
|
5724
|
+
"shape",
|
|
5703
5725
|
"size",
|
|
5704
5726
|
"src",
|
|
5705
5727
|
"class"
|
|
@@ -16890,6 +16912,7 @@ var YuwSidebarNavComponent = class YuwSidebarNavComponent {
|
|
|
16890
16912
|
"fallback",
|
|
16891
16913
|
"group",
|
|
16892
16914
|
"groupCount",
|
|
16915
|
+
"shape",
|
|
16893
16916
|
"size",
|
|
16894
16917
|
"src",
|
|
16895
16918
|
"class"
|
|
@@ -18229,10 +18252,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18229
18252
|
}]
|
|
18230
18253
|
}
|
|
18231
18254
|
});
|
|
18232
|
-
const SHAPE = {
|
|
18233
|
-
circle: "",
|
|
18234
|
-
square: "rounded-md after:rounded-md *:rounded-md"
|
|
18235
|
-
};
|
|
18236
18255
|
const AVATAR = {
|
|
18237
18256
|
sm: {
|
|
18238
18257
|
size: "sm",
|
|
@@ -18260,7 +18279,6 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18260
18279
|
this.shape = input("square", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
18261
18280
|
this.size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
18262
18281
|
this.avatar = computed(() => AVATAR[this.size()], ...ngDevMode ? [{ debugName: "avatar" }] : /* istanbul ignore next */ []);
|
|
18263
|
-
this.avatarClass = computed(() => cn(this.avatar().class, SHAPE[this.shape()]), ...ngDevMode ? [{ debugName: "avatarClass" }] : /* istanbul ignore next */ []);
|
|
18264
18282
|
this.initials = computed(() => yuwsInitialsOf(this.name()), ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
|
|
18265
18283
|
}
|
|
18266
18284
|
static {
|
|
@@ -18318,7 +18336,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18318
18336
|
}
|
|
18319
18337
|
},
|
|
18320
18338
|
ngImport: i0,
|
|
18321
|
-
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"
|
|
18339
|
+
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"avatar().class\"\n [shape]=\"shape()\"\n [src]=\"imageUrl()\"\n [alt]=\"name()\"\n [fallback]=\"initials()\"\n />\n <span class=\"flex min-w-0 flex-col\">\n <span class=\"font-medium\">{{ name() }}</span>\n @if (description()) {\n <span class=\"text-xs text-muted-foreground\">{{ description() }}</span>\n }\n </span>\n</span>\n",
|
|
18322
18340
|
dependencies: [{
|
|
18323
18341
|
kind: "component",
|
|
18324
18342
|
type: YuwAvatarComponent,
|
|
@@ -18329,6 +18347,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18329
18347
|
"fallback",
|
|
18330
18348
|
"group",
|
|
18331
18349
|
"groupCount",
|
|
18350
|
+
"shape",
|
|
18332
18351
|
"size",
|
|
18333
18352
|
"src",
|
|
18334
18353
|
"class"
|
|
@@ -18349,7 +18368,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18349
18368
|
selector: "yuws-avatar-name-cell",
|
|
18350
18369
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18351
18370
|
imports: [YuwAvatarComponent],
|
|
18352
|
-
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"
|
|
18371
|
+
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"avatar().class\"\n [shape]=\"shape()\"\n [src]=\"imageUrl()\"\n [alt]=\"name()\"\n [fallback]=\"initials()\"\n />\n <span class=\"flex min-w-0 flex-col\">\n <span class=\"font-medium\">{{ name() }}</span>\n @if (description()) {\n <span class=\"text-xs text-muted-foreground\">{{ description() }}</span>\n }\n </span>\n</span>\n"
|
|
18353
18372
|
}]
|
|
18354
18373
|
}],
|
|
18355
18374
|
propDecorators: {
|
|
@@ -18817,6 +18836,7 @@ var YuwsImageCellComponent = class YuwsImageCellComponent {
|
|
|
18817
18836
|
"fallback",
|
|
18818
18837
|
"group",
|
|
18819
18838
|
"groupCount",
|
|
18839
|
+
"shape",
|
|
18820
18840
|
"size",
|
|
18821
18841
|
"src",
|
|
18822
18842
|
"class"
|
|
@@ -21553,6 +21573,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21553
21573
|
this.backLabel = input(...ngDevMode ? [void 0, { debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
21554
21574
|
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
21555
21575
|
this.imageFallback = input(...ngDevMode ? [void 0, { debugName: "imageFallback" }] : /* istanbul ignore next */ []);
|
|
21576
|
+
this.imageShape = input("square", ...ngDevMode ? [{ debugName: "imageShape" }] : /* istanbul ignore next */ []);
|
|
21556
21577
|
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
21557
21578
|
this.primaryDisabled = input(false, {
|
|
21558
21579
|
...ngDevMode ? { debugName: "primaryDisabled" } : /* istanbul ignore next */ {},
|
|
@@ -21612,6 +21633,13 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21612
21633
|
isRequired: false,
|
|
21613
21634
|
transformFunction: null
|
|
21614
21635
|
},
|
|
21636
|
+
imageShape: {
|
|
21637
|
+
classPropertyName: "imageShape",
|
|
21638
|
+
publicName: "imageShape",
|
|
21639
|
+
isSignal: true,
|
|
21640
|
+
isRequired: false,
|
|
21641
|
+
transformFunction: null
|
|
21642
|
+
},
|
|
21615
21643
|
imageUrl: {
|
|
21616
21644
|
classPropertyName: "imageUrl",
|
|
21617
21645
|
publicName: "imageUrl",
|
|
@@ -21686,7 +21714,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21686
21714
|
lucideArrowLeft
|
|
21687
21715
|
})],
|
|
21688
21716
|
ngImport: i0,
|
|
21689
|
-
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n @if (imageUrl() || imageFallback()) {\n <yuw-avatar size=\"lg\" [src]=\"imageUrl()\" [alt]=\"title()\" [fallback]=\"imageFallback()\" />\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n",
|
|
21717
|
+
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n @if (imageUrl() || imageFallback()) {\n <yuw-avatar size=\"lg\" [shape]=\"imageShape()\" [src]=\"imageUrl()\" [alt]=\"title()\" [fallback]=\"imageFallback()\" />\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n",
|
|
21690
21718
|
dependencies: [
|
|
21691
21719
|
{
|
|
21692
21720
|
kind: "component",
|
|
@@ -21710,6 +21738,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21710
21738
|
"fallback",
|
|
21711
21739
|
"group",
|
|
21712
21740
|
"groupCount",
|
|
21741
|
+
"shape",
|
|
21713
21742
|
"size",
|
|
21714
21743
|
"src",
|
|
21715
21744
|
"class"
|
|
@@ -21760,7 +21789,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21760
21789
|
lucidePlus,
|
|
21761
21790
|
lucideArrowLeft
|
|
21762
21791
|
})],
|
|
21763
|
-
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n @if (imageUrl() || imageFallback()) {\n <yuw-avatar size=\"lg\" [src]=\"imageUrl()\" [alt]=\"title()\" [fallback]=\"imageFallback()\" />\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n"
|
|
21792
|
+
template: "<div class=\"flex flex-wrap items-start justify-center gap-4\">\n <div class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <div class=\"flex items-center gap-4\">\n @if (backLabel(); as label) {\n <yuw-button variant=\"outline\" [size]=\"isMobile() ? 'sm' : 'default'\" (clicked)=\"backClicked.emit($event)\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n <span class=\"max-sm:hidden\">{{ label }}</span>\n </yuw-button>\n }\n @if (imageUrl() || imageFallback()) {\n <yuw-avatar size=\"lg\" [shape]=\"imageShape()\" [src]=\"imageUrl()\" [alt]=\"title()\" [fallback]=\"imageFallback()\" />\n }\n <div class=\"flex flex-col overflow-hidden\">\n <h1 class=\"truncate text-2xl font-semibold text-foreground\">{{ title() }}</h1>\n @if (description()) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ description() }}</p>\n }\n </div>\n </div>\n </div>\n\n @if (primaryLabel() || secondaryLabel()) {\n <div class=\"flex shrink-0 items-center gap-2\">\n @if (secondaryLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n [disabled]=\"secondaryDisabled()\"\n (clicked)=\"secondaryClicked.emit($event)\"\n >\n @if (secondaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-md:hidden\">{{ label }}</span>\n </yuw-button>\n }\n\n @if (primaryLabel(); as label) {\n <yuw-button\n color=\"primary\"\n class=\"gap-2\"\n [disabled]=\"primaryDisabled()\"\n [size]=\"isMobile() ? 'sm' : 'default'\"\n (clicked)=\"primaryClicked.emit($event)\"\n >\n @if (primaryIcon(); as icon) {\n <ng-icon [name]=\"icon\" size=\"16\" />\n }\n <span class=\"max-sm:hidden\">{{ label }}</span>\n @if (primaryMobileLabel(); as mobileLabel) {\n <span class=\"sm:hidden\">{{ mobileLabel }}</span>\n }\n </yuw-button>\n }\n </div>\n }\n</div>\n"
|
|
21764
21793
|
}]
|
|
21765
21794
|
}],
|
|
21766
21795
|
propDecorators: {
|
|
@@ -21788,6 +21817,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21788
21817
|
required: false
|
|
21789
21818
|
}]
|
|
21790
21819
|
}],
|
|
21820
|
+
imageShape: [{
|
|
21821
|
+
type: i0.Input,
|
|
21822
|
+
args: [{
|
|
21823
|
+
isSignal: true,
|
|
21824
|
+
alias: "imageShape",
|
|
21825
|
+
required: false
|
|
21826
|
+
}]
|
|
21827
|
+
}],
|
|
21791
21828
|
imageUrl: [{
|
|
21792
21829
|
type: i0.Input,
|
|
21793
21830
|
args: [{
|