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/fesm2022/yukit-web.mjs +124 -11
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +40 -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"
|
|
@@ -18234,6 +18257,10 @@ const AVATAR = {
|
|
|
18234
18257
|
size: "sm",
|
|
18235
18258
|
class: ""
|
|
18236
18259
|
},
|
|
18260
|
+
base: {
|
|
18261
|
+
size: "default",
|
|
18262
|
+
class: "size-9"
|
|
18263
|
+
},
|
|
18237
18264
|
md: {
|
|
18238
18265
|
size: "default",
|
|
18239
18266
|
class: "h-11.25 w-11.25"
|
|
@@ -18241,6 +18268,7 @@ const AVATAR = {
|
|
|
18241
18268
|
};
|
|
18242
18269
|
const YUWS_AVATAR_NAME_HEADER_CLASS = {
|
|
18243
18270
|
sm: "indent-9",
|
|
18271
|
+
base: "indent-12",
|
|
18244
18272
|
md: "indent-14.25"
|
|
18245
18273
|
};
|
|
18246
18274
|
var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
@@ -18248,6 +18276,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18248
18276
|
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
18249
18277
|
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
18250
18278
|
this.name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
18279
|
+
this.shape = input("square", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
18251
18280
|
this.size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
18252
18281
|
this.avatar = computed(() => AVATAR[this.size()], ...ngDevMode ? [{ debugName: "avatar" }] : /* istanbul ignore next */ []);
|
|
18253
18282
|
this.initials = computed(() => yuwsInitialsOf(this.name()), ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
|
|
@@ -18291,6 +18320,13 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18291
18320
|
isRequired: true,
|
|
18292
18321
|
transformFunction: null
|
|
18293
18322
|
},
|
|
18323
|
+
shape: {
|
|
18324
|
+
classPropertyName: "shape",
|
|
18325
|
+
publicName: "shape",
|
|
18326
|
+
isSignal: true,
|
|
18327
|
+
isRequired: false,
|
|
18328
|
+
transformFunction: null
|
|
18329
|
+
},
|
|
18294
18330
|
size: {
|
|
18295
18331
|
classPropertyName: "size",
|
|
18296
18332
|
publicName: "size",
|
|
@@ -18300,7 +18336,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18300
18336
|
}
|
|
18301
18337
|
},
|
|
18302
18338
|
ngImport: i0,
|
|
18303
|
-
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"avatar().class\"\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",
|
|
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",
|
|
18304
18340
|
dependencies: [{
|
|
18305
18341
|
kind: "component",
|
|
18306
18342
|
type: YuwAvatarComponent,
|
|
@@ -18311,6 +18347,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18311
18347
|
"fallback",
|
|
18312
18348
|
"group",
|
|
18313
18349
|
"groupCount",
|
|
18350
|
+
"shape",
|
|
18314
18351
|
"size",
|
|
18315
18352
|
"src",
|
|
18316
18353
|
"class"
|
|
@@ -18331,7 +18368,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18331
18368
|
selector: "yuws-avatar-name-cell",
|
|
18332
18369
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18333
18370
|
imports: [YuwAvatarComponent],
|
|
18334
|
-
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"avatar().class\"\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"
|
|
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"
|
|
18335
18372
|
}]
|
|
18336
18373
|
}],
|
|
18337
18374
|
propDecorators: {
|
|
@@ -18359,6 +18396,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18359
18396
|
required: true
|
|
18360
18397
|
}]
|
|
18361
18398
|
}],
|
|
18399
|
+
shape: [{
|
|
18400
|
+
type: i0.Input,
|
|
18401
|
+
args: [{
|
|
18402
|
+
isSignal: true,
|
|
18403
|
+
alias: "shape",
|
|
18404
|
+
required: false
|
|
18405
|
+
}]
|
|
18406
|
+
}],
|
|
18362
18407
|
size: [{
|
|
18363
18408
|
type: i0.Input,
|
|
18364
18409
|
args: [{
|
|
@@ -18791,6 +18836,7 @@ var YuwsImageCellComponent = class YuwsImageCellComponent {
|
|
|
18791
18836
|
"fallback",
|
|
18792
18837
|
"group",
|
|
18793
18838
|
"groupCount",
|
|
18839
|
+
"shape",
|
|
18794
18840
|
"size",
|
|
18795
18841
|
"src",
|
|
18796
18842
|
"class"
|
|
@@ -21527,6 +21573,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21527
21573
|
this.backLabel = input(...ngDevMode ? [void 0, { debugName: "backLabel" }] : /* istanbul ignore next */ []);
|
|
21528
21574
|
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
21529
21575
|
this.imageFallback = input(...ngDevMode ? [void 0, { debugName: "imageFallback" }] : /* istanbul ignore next */ []);
|
|
21576
|
+
this.imageShape = input("square", ...ngDevMode ? [{ debugName: "imageShape" }] : /* istanbul ignore next */ []);
|
|
21530
21577
|
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
21531
21578
|
this.primaryDisabled = input(false, {
|
|
21532
21579
|
...ngDevMode ? { debugName: "primaryDisabled" } : /* istanbul ignore next */ {},
|
|
@@ -21586,6 +21633,13 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21586
21633
|
isRequired: false,
|
|
21587
21634
|
transformFunction: null
|
|
21588
21635
|
},
|
|
21636
|
+
imageShape: {
|
|
21637
|
+
classPropertyName: "imageShape",
|
|
21638
|
+
publicName: "imageShape",
|
|
21639
|
+
isSignal: true,
|
|
21640
|
+
isRequired: false,
|
|
21641
|
+
transformFunction: null
|
|
21642
|
+
},
|
|
21589
21643
|
imageUrl: {
|
|
21590
21644
|
classPropertyName: "imageUrl",
|
|
21591
21645
|
publicName: "imageUrl",
|
|
@@ -21660,7 +21714,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21660
21714
|
lucideArrowLeft
|
|
21661
21715
|
})],
|
|
21662
21716
|
ngImport: i0,
|
|
21663
|
-
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",
|
|
21664
21718
|
dependencies: [
|
|
21665
21719
|
{
|
|
21666
21720
|
kind: "component",
|
|
@@ -21684,6 +21738,7 @@ var YuwsPageHeaderComponent = class YuwsPageHeaderComponent {
|
|
|
21684
21738
|
"fallback",
|
|
21685
21739
|
"group",
|
|
21686
21740
|
"groupCount",
|
|
21741
|
+
"shape",
|
|
21687
21742
|
"size",
|
|
21688
21743
|
"src",
|
|
21689
21744
|
"class"
|
|
@@ -21734,7 +21789,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21734
21789
|
lucidePlus,
|
|
21735
21790
|
lucideArrowLeft
|
|
21736
21791
|
})],
|
|
21737
|
-
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"
|
|
21738
21793
|
}]
|
|
21739
21794
|
}],
|
|
21740
21795
|
propDecorators: {
|
|
@@ -21762,6 +21817,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
21762
21817
|
required: false
|
|
21763
21818
|
}]
|
|
21764
21819
|
}],
|
|
21820
|
+
imageShape: [{
|
|
21821
|
+
type: i0.Input,
|
|
21822
|
+
args: [{
|
|
21823
|
+
isSignal: true,
|
|
21824
|
+
alias: "imageShape",
|
|
21825
|
+
required: false
|
|
21826
|
+
}]
|
|
21827
|
+
}],
|
|
21765
21828
|
imageUrl: [{
|
|
21766
21829
|
type: i0.Input,
|
|
21767
21830
|
args: [{
|
|
@@ -22214,12 +22277,13 @@ const SHARE_ICONS = {
|
|
|
22214
22277
|
};
|
|
22215
22278
|
var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
22216
22279
|
constructor() {
|
|
22280
|
+
this.formats = input(YUW_TABLE_SHARE_FORMATS, ...ngDevMode ? [{ debugName: "formats" }] : /* istanbul ignore next */ []);
|
|
22217
22281
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
22218
22282
|
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
22219
22283
|
this.source = input.required(...ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []);
|
|
22220
22284
|
this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
22221
22285
|
this.shareRequested = output();
|
|
22222
|
-
this.items = computed(() =>
|
|
22286
|
+
this.items = computed(() => this.formats().map((format) => ({
|
|
22223
22287
|
format,
|
|
22224
22288
|
icon: SHARE_ICONS[format],
|
|
22225
22289
|
label: this.labels()[format]
|
|
@@ -22259,6 +22323,13 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22259
22323
|
isStandalone: true,
|
|
22260
22324
|
selector: "yuws-list-toolbar-share",
|
|
22261
22325
|
inputs: {
|
|
22326
|
+
formats: {
|
|
22327
|
+
classPropertyName: "formats",
|
|
22328
|
+
publicName: "formats",
|
|
22329
|
+
isSignal: true,
|
|
22330
|
+
isRequired: false,
|
|
22331
|
+
transformFunction: null
|
|
22332
|
+
},
|
|
22262
22333
|
labels: {
|
|
22263
22334
|
classPropertyName: "labels",
|
|
22264
22335
|
publicName: "labels",
|
|
@@ -22383,6 +22454,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22383
22454
|
}]
|
|
22384
22455
|
}],
|
|
22385
22456
|
propDecorators: {
|
|
22457
|
+
formats: [{
|
|
22458
|
+
type: i0.Input,
|
|
22459
|
+
args: [{
|
|
22460
|
+
isSignal: true,
|
|
22461
|
+
alias: "formats",
|
|
22462
|
+
required: false
|
|
22463
|
+
}]
|
|
22464
|
+
}],
|
|
22386
22465
|
labels: [{
|
|
22387
22466
|
type: i0.Input,
|
|
22388
22467
|
args: [{
|
|
@@ -22436,6 +22515,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22436
22515
|
this.search = model("", ...ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []);
|
|
22437
22516
|
this.searchPlaceholder = input(...ngDevMode ? [void 0, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
22438
22517
|
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
22518
|
+
this.shareFormats = input(YUW_TABLE_SHARE_FORMATS, ...ngDevMode ? [{ debugName: "shareFormats" }] : /* istanbul ignore next */ []);
|
|
22439
22519
|
this.shareSource = input(...ngDevMode ? [void 0, { debugName: "shareSource" }] : /* istanbul ignore next */ []);
|
|
22440
22520
|
this.shareTitle = input(...ngDevMode ? [void 0, { debugName: "shareTitle" }] : /* istanbul ignore next */ []);
|
|
22441
22521
|
this.showExport = input(false, {
|
|
@@ -22570,6 +22650,13 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22570
22650
|
isRequired: false,
|
|
22571
22651
|
transformFunction: null
|
|
22572
22652
|
},
|
|
22653
|
+
shareFormats: {
|
|
22654
|
+
classPropertyName: "shareFormats",
|
|
22655
|
+
publicName: "shareFormats",
|
|
22656
|
+
isSignal: true,
|
|
22657
|
+
isRequired: false,
|
|
22658
|
+
transformFunction: null
|
|
22659
|
+
},
|
|
22573
22660
|
shareSource: {
|
|
22574
22661
|
classPropertyName: "shareSource",
|
|
22575
22662
|
publicName: "shareSource",
|
|
@@ -22623,7 +22710,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22623
22710
|
lucideSettings2
|
|
22624
22711
|
})],
|
|
22625
22712
|
ngImport: i0,
|
|
22626
|
-
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader class=\"px-2 pt-2 pb-1 text-sm text-muted-foreground\">{{ title }}</p>\n }\n\n @if (labels().columns.reset; as reset) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n [disabled]=\"columnsAtDefault()\"\n (clicked)=\"onColumnsReset()\"\n >\n <span class=\"truncate\">{{ reset }}</span>\n </yuw-button>\n </div>\n }\n\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucideSettings2\" size=\"16\" />\n\n @if (hasHiddenColumns()) {\n <yuw-badge\n dot\n color=\"destructive\"\n class=\"absolute -top-1 -right-1\"\n style=\"width: 0.5rem; height: 0.5rem\"\n data-testid=\"hidden-columns-dot\"\n />\n }\n </ng-template>\n </yuw-combobox>\n </div>\n}\n\n@if (viewMode()) {\n <yuw-button-group\n variant=\"outline\"\n selectedVariant=\"secondary\"\n selectedColor=\"secondary\"\n [buttons]=\"viewModeButtons()\"\n (buttonClicked)=\"onViewModeClicked($event)\"\n >\n <ng-template yuwButtonGroupContent=\"list\">\n <ng-icon [name]=\"viewModeIconNames().list\" size=\"16\" />\n </ng-template>\n <ng-template yuwButtonGroupContent=\"block\">\n <ng-icon [name]=\"viewModeIconNames().block\" size=\"16\" />\n </ng-template>\n </yuw-button-group>\n}\n",
|
|
22713
|
+
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [formats]=\"shareFormats()\"\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader class=\"px-2 pt-2 pb-1 text-sm text-muted-foreground\">{{ title }}</p>\n }\n\n @if (labels().columns.reset; as reset) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n [disabled]=\"columnsAtDefault()\"\n (clicked)=\"onColumnsReset()\"\n >\n <span class=\"truncate\">{{ reset }}</span>\n </yuw-button>\n </div>\n }\n\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucideSettings2\" size=\"16\" />\n\n @if (hasHiddenColumns()) {\n <yuw-badge\n dot\n color=\"destructive\"\n class=\"absolute -top-1 -right-1\"\n style=\"width: 0.5rem; height: 0.5rem\"\n data-testid=\"hidden-columns-dot\"\n />\n }\n </ng-template>\n </yuw-combobox>\n </div>\n}\n\n@if (viewMode()) {\n <yuw-button-group\n variant=\"outline\"\n selectedVariant=\"secondary\"\n selectedColor=\"secondary\"\n [buttons]=\"viewModeButtons()\"\n (buttonClicked)=\"onViewModeClicked($event)\"\n >\n <ng-template yuwButtonGroupContent=\"list\">\n <ng-icon [name]=\"viewModeIconNames().list\" size=\"16\" />\n </ng-template>\n <ng-template yuwButtonGroupContent=\"block\">\n <ng-icon [name]=\"viewModeIconNames().block\" size=\"16\" />\n </ng-template>\n </yuw-button-group>\n}\n",
|
|
22627
22714
|
dependencies: [
|
|
22628
22715
|
{
|
|
22629
22716
|
kind: "component",
|
|
@@ -22766,6 +22853,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22766
22853
|
type: YuwsListToolbarShareComponent,
|
|
22767
22854
|
selector: "yuws-list-toolbar-share",
|
|
22768
22855
|
inputs: [
|
|
22856
|
+
"formats",
|
|
22769
22857
|
"labels",
|
|
22770
22858
|
"serverSideFormats",
|
|
22771
22859
|
"source",
|
|
@@ -22808,7 +22896,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22808
22896
|
lucideSettings2
|
|
22809
22897
|
})],
|
|
22810
22898
|
host: { class: "flex items-center gap-2" },
|
|
22811
|
-
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader class=\"px-2 pt-2 pb-1 text-sm text-muted-foreground\">{{ title }}</p>\n }\n\n @if (labels().columns.reset; as reset) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n [disabled]=\"columnsAtDefault()\"\n (clicked)=\"onColumnsReset()\"\n >\n <span class=\"truncate\">{{ reset }}</span>\n </yuw-button>\n </div>\n }\n\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucideSettings2\" size=\"16\" />\n\n @if (hasHiddenColumns()) {\n <yuw-badge\n dot\n color=\"destructive\"\n class=\"absolute -top-1 -right-1\"\n style=\"width: 0.5rem; height: 0.5rem\"\n data-testid=\"hidden-columns-dot\"\n />\n }\n </ng-template>\n </yuw-combobox>\n </div>\n}\n\n@if (viewMode()) {\n <yuw-button-group\n variant=\"outline\"\n selectedVariant=\"secondary\"\n selectedColor=\"secondary\"\n [buttons]=\"viewModeButtons()\"\n (buttonClicked)=\"onViewModeClicked($event)\"\n >\n <ng-template yuwButtonGroupContent=\"list\">\n <ng-icon [name]=\"viewModeIconNames().list\" size=\"16\" />\n </ng-template>\n <ng-template yuwButtonGroupContent=\"block\">\n <ng-icon [name]=\"viewModeIconNames().block\" size=\"16\" />\n </ng-template>\n </yuw-button-group>\n}\n"
|
|
22899
|
+
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [formats]=\"shareFormats()\"\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader class=\"px-2 pt-2 pb-1 text-sm text-muted-foreground\">{{ title }}</p>\n }\n\n @if (labels().columns.reset; as reset) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n [disabled]=\"columnsAtDefault()\"\n (clicked)=\"onColumnsReset()\"\n >\n <span class=\"truncate\">{{ reset }}</span>\n </yuw-button>\n </div>\n }\n\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucideSettings2\" size=\"16\" />\n\n @if (hasHiddenColumns()) {\n <yuw-badge\n dot\n color=\"destructive\"\n class=\"absolute -top-1 -right-1\"\n style=\"width: 0.5rem; height: 0.5rem\"\n data-testid=\"hidden-columns-dot\"\n />\n }\n </ng-template>\n </yuw-combobox>\n </div>\n}\n\n@if (viewMode()) {\n <yuw-button-group\n variant=\"outline\"\n selectedVariant=\"secondary\"\n selectedColor=\"secondary\"\n [buttons]=\"viewModeButtons()\"\n (buttonClicked)=\"onViewModeClicked($event)\"\n >\n <ng-template yuwButtonGroupContent=\"list\">\n <ng-icon [name]=\"viewModeIconNames().list\" size=\"16\" />\n </ng-template>\n <ng-template yuwButtonGroupContent=\"block\">\n <ng-icon [name]=\"viewModeIconNames().block\" size=\"16\" />\n </ng-template>\n </yuw-button-group>\n}\n"
|
|
22812
22900
|
}]
|
|
22813
22901
|
}],
|
|
22814
22902
|
propDecorators: {
|
|
@@ -22882,6 +22970,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22882
22970
|
required: false
|
|
22883
22971
|
}]
|
|
22884
22972
|
}],
|
|
22973
|
+
shareFormats: [{
|
|
22974
|
+
type: i0.Input,
|
|
22975
|
+
args: [{
|
|
22976
|
+
isSignal: true,
|
|
22977
|
+
alias: "shareFormats",
|
|
22978
|
+
required: false
|
|
22979
|
+
}]
|
|
22980
|
+
}],
|
|
22885
22981
|
shareSource: [{
|
|
22886
22982
|
type: i0.Input,
|
|
22887
22983
|
args: [{
|
|
@@ -24218,6 +24314,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24218
24314
|
this.searchPlaceholder = input(...ngDevMode ? [void 0, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
24219
24315
|
this.selection = model({}, ...ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []);
|
|
24220
24316
|
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
24317
|
+
this.shareFormats = input(YUW_TABLE_SHARE_FORMATS, ...ngDevMode ? [{ debugName: "shareFormats" }] : /* istanbul ignore next */ []);
|
|
24221
24318
|
this.shareSource = input(...ngDevMode ? [void 0, { debugName: "shareSource" }] : /* istanbul ignore next */ []);
|
|
24222
24319
|
this.shareTitle = input(...ngDevMode ? [void 0, { debugName: "shareTitle" }] : /* istanbul ignore next */ []);
|
|
24223
24320
|
this.showExport = input(false, {
|
|
@@ -24336,6 +24433,13 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24336
24433
|
isRequired: false,
|
|
24337
24434
|
transformFunction: null
|
|
24338
24435
|
},
|
|
24436
|
+
shareFormats: {
|
|
24437
|
+
classPropertyName: "shareFormats",
|
|
24438
|
+
publicName: "shareFormats",
|
|
24439
|
+
isSignal: true,
|
|
24440
|
+
isRequired: false,
|
|
24441
|
+
transformFunction: null
|
|
24442
|
+
},
|
|
24339
24443
|
shareSource: {
|
|
24340
24444
|
classPropertyName: "shareSource",
|
|
24341
24445
|
publicName: "shareSource",
|
|
@@ -24391,7 +24495,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24391
24495
|
isSignal: true
|
|
24392
24496
|
}],
|
|
24393
24497
|
ngImport: i0,
|
|
24394
|
-
template: "<!-- Filters -->\n<div class=\"flex flex-1 items-center max-md:contents\">\n @if (filterGroups(); as groups) {\n <yuws-list-toolbar-filters\n [disabled]=\"filtersDisabled()\"\n [groups]=\"groups\"\n [contents]=\"filterContents()\"\n [idleColor]=\"idleColor()\"\n [labels]=\"labels().filters\"\n [sets]=\"filterSets()\"\n [(selection)]=\"selection\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n</div>\n\n<!-- Actions -->\n<div class=\"flex min-w-0 items-center gap-2 max-md:ms-auto\">\n <yuws-list-toolbar-actions\n [defaultHiddenColumns]=\"defaultHiddenColumns()\"\n [hideableColumns]=\"hideableColumns()\"\n [(hiddenColumns)]=\"hiddenColumns\"\n [isMobile]=\"isMobile()\"\n [labels]=\"labels()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [serverSideFormats]=\"serverSideFormats()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (shareRequested)=\"shareRequested.emit($event)\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n",
|
|
24498
|
+
template: "<!-- Filters -->\n<div class=\"flex flex-1 items-center max-md:contents\">\n @if (filterGroups(); as groups) {\n <yuws-list-toolbar-filters\n [disabled]=\"filtersDisabled()\"\n [groups]=\"groups\"\n [contents]=\"filterContents()\"\n [idleColor]=\"idleColor()\"\n [labels]=\"labels().filters\"\n [sets]=\"filterSets()\"\n [(selection)]=\"selection\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n</div>\n\n<!-- Actions -->\n<div class=\"flex min-w-0 items-center gap-2 max-md:ms-auto\">\n <yuws-list-toolbar-actions\n [defaultHiddenColumns]=\"defaultHiddenColumns()\"\n [hideableColumns]=\"hideableColumns()\"\n [(hiddenColumns)]=\"hiddenColumns\"\n [isMobile]=\"isMobile()\"\n [labels]=\"labels()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [serverSideFormats]=\"serverSideFormats()\"\n [shareFormats]=\"shareFormats()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (shareRequested)=\"shareRequested.emit($event)\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n",
|
|
24395
24499
|
dependencies: [{
|
|
24396
24500
|
kind: "component",
|
|
24397
24501
|
type: YuwsListToolbarActionsComponent,
|
|
@@ -24405,6 +24509,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24405
24509
|
"search",
|
|
24406
24510
|
"searchPlaceholder",
|
|
24407
24511
|
"serverSideFormats",
|
|
24512
|
+
"shareFormats",
|
|
24408
24513
|
"shareSource",
|
|
24409
24514
|
"shareTitle",
|
|
24410
24515
|
"showExport",
|
|
@@ -24455,7 +24560,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24455
24560
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24456
24561
|
imports: [YuwsListToolbarActionsComponent, YuwsListToolbarFiltersComponent],
|
|
24457
24562
|
host: { class: "flex items-center gap-3 max-md:flex-wrap max-md:gap-2" },
|
|
24458
|
-
template: "<!-- Filters -->\n<div class=\"flex flex-1 items-center max-md:contents\">\n @if (filterGroups(); as groups) {\n <yuws-list-toolbar-filters\n [disabled]=\"filtersDisabled()\"\n [groups]=\"groups\"\n [contents]=\"filterContents()\"\n [idleColor]=\"idleColor()\"\n [labels]=\"labels().filters\"\n [sets]=\"filterSets()\"\n [(selection)]=\"selection\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n</div>\n\n<!-- Actions -->\n<div class=\"flex min-w-0 items-center gap-2 max-md:ms-auto\">\n <yuws-list-toolbar-actions\n [defaultHiddenColumns]=\"defaultHiddenColumns()\"\n [hideableColumns]=\"hideableColumns()\"\n [(hiddenColumns)]=\"hiddenColumns\"\n [isMobile]=\"isMobile()\"\n [labels]=\"labels()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [serverSideFormats]=\"serverSideFormats()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (shareRequested)=\"shareRequested.emit($event)\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n"
|
|
24563
|
+
template: "<!-- Filters -->\n<div class=\"flex flex-1 items-center max-md:contents\">\n @if (filterGroups(); as groups) {\n <yuws-list-toolbar-filters\n [disabled]=\"filtersDisabled()\"\n [groups]=\"groups\"\n [contents]=\"filterContents()\"\n [idleColor]=\"idleColor()\"\n [labels]=\"labels().filters\"\n [sets]=\"filterSets()\"\n [(selection)]=\"selection\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n</div>\n\n<!-- Actions -->\n<div class=\"flex min-w-0 items-center gap-2 max-md:ms-auto\">\n <yuws-list-toolbar-actions\n [defaultHiddenColumns]=\"defaultHiddenColumns()\"\n [hideableColumns]=\"hideableColumns()\"\n [(hiddenColumns)]=\"hiddenColumns\"\n [isMobile]=\"isMobile()\"\n [labels]=\"labels()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [serverSideFormats]=\"serverSideFormats()\"\n [shareFormats]=\"shareFormats()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (shareRequested)=\"shareRequested.emit($event)\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n"
|
|
24459
24564
|
}]
|
|
24460
24565
|
}],
|
|
24461
24566
|
propDecorators: {
|
|
@@ -24568,6 +24673,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24568
24673
|
required: false
|
|
24569
24674
|
}]
|
|
24570
24675
|
}],
|
|
24676
|
+
shareFormats: [{
|
|
24677
|
+
type: i0.Input,
|
|
24678
|
+
args: [{
|
|
24679
|
+
isSignal: true,
|
|
24680
|
+
alias: "shareFormats",
|
|
24681
|
+
required: false
|
|
24682
|
+
}]
|
|
24683
|
+
}],
|
|
24571
24684
|
shareSource: [{
|
|
24572
24685
|
type: i0.Input,
|
|
24573
24686
|
args: [{
|