yukit-web 0.11.3 → 0.11.4
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 +83 -7
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +23 -3
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -18229,11 +18229,19 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18229
18229
|
}]
|
|
18230
18230
|
}
|
|
18231
18231
|
});
|
|
18232
|
+
const SHAPE = {
|
|
18233
|
+
circle: "",
|
|
18234
|
+
square: "rounded-md after:rounded-md *:rounded-md"
|
|
18235
|
+
};
|
|
18232
18236
|
const AVATAR = {
|
|
18233
18237
|
sm: {
|
|
18234
18238
|
size: "sm",
|
|
18235
18239
|
class: ""
|
|
18236
18240
|
},
|
|
18241
|
+
base: {
|
|
18242
|
+
size: "default",
|
|
18243
|
+
class: "size-9"
|
|
18244
|
+
},
|
|
18237
18245
|
md: {
|
|
18238
18246
|
size: "default",
|
|
18239
18247
|
class: "h-11.25 w-11.25"
|
|
@@ -18241,6 +18249,7 @@ const AVATAR = {
|
|
|
18241
18249
|
};
|
|
18242
18250
|
const YUWS_AVATAR_NAME_HEADER_CLASS = {
|
|
18243
18251
|
sm: "indent-9",
|
|
18252
|
+
base: "indent-12",
|
|
18244
18253
|
md: "indent-14.25"
|
|
18245
18254
|
};
|
|
18246
18255
|
var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
@@ -18248,8 +18257,10 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18248
18257
|
this.description = input(...ngDevMode ? [void 0, { debugName: "description" }] : /* istanbul ignore next */ []);
|
|
18249
18258
|
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
18250
18259
|
this.name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
18260
|
+
this.shape = input("square", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
18251
18261
|
this.size = input("sm", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
18252
18262
|
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 */ []);
|
|
18253
18264
|
this.initials = computed(() => yuwsInitialsOf(this.name()), ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
|
|
18254
18265
|
}
|
|
18255
18266
|
static {
|
|
@@ -18291,6 +18302,13 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18291
18302
|
isRequired: true,
|
|
18292
18303
|
transformFunction: null
|
|
18293
18304
|
},
|
|
18305
|
+
shape: {
|
|
18306
|
+
classPropertyName: "shape",
|
|
18307
|
+
publicName: "shape",
|
|
18308
|
+
isSignal: true,
|
|
18309
|
+
isRequired: false,
|
|
18310
|
+
transformFunction: null
|
|
18311
|
+
},
|
|
18294
18312
|
size: {
|
|
18295
18313
|
classPropertyName: "size",
|
|
18296
18314
|
publicName: "size",
|
|
@@ -18300,7 +18318,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18300
18318
|
}
|
|
18301
18319
|
},
|
|
18302
18320
|
ngImport: i0,
|
|
18303
|
-
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"
|
|
18321
|
+
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"avatarClass()\"\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
18322
|
dependencies: [{
|
|
18305
18323
|
kind: "component",
|
|
18306
18324
|
type: YuwAvatarComponent,
|
|
@@ -18331,7 +18349,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18331
18349
|
selector: "yuws-avatar-name-cell",
|
|
18332
18350
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18333
18351
|
imports: [YuwAvatarComponent],
|
|
18334
|
-
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"
|
|
18352
|
+
template: "<span class=\"flex items-center gap-3\">\n <yuw-avatar\n [size]=\"avatar().size\"\n [class]=\"avatarClass()\"\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
18353
|
}]
|
|
18336
18354
|
}],
|
|
18337
18355
|
propDecorators: {
|
|
@@ -18359,6 +18377,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18359
18377
|
required: true
|
|
18360
18378
|
}]
|
|
18361
18379
|
}],
|
|
18380
|
+
shape: [{
|
|
18381
|
+
type: i0.Input,
|
|
18382
|
+
args: [{
|
|
18383
|
+
isSignal: true,
|
|
18384
|
+
alias: "shape",
|
|
18385
|
+
required: false
|
|
18386
|
+
}]
|
|
18387
|
+
}],
|
|
18362
18388
|
size: [{
|
|
18363
18389
|
type: i0.Input,
|
|
18364
18390
|
args: [{
|
|
@@ -22214,12 +22240,13 @@ const SHARE_ICONS = {
|
|
|
22214
22240
|
};
|
|
22215
22241
|
var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
22216
22242
|
constructor() {
|
|
22243
|
+
this.formats = input(YUW_TABLE_SHARE_FORMATS, ...ngDevMode ? [{ debugName: "formats" }] : /* istanbul ignore next */ []);
|
|
22217
22244
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
22218
22245
|
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
22219
22246
|
this.source = input.required(...ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []);
|
|
22220
22247
|
this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
22221
22248
|
this.shareRequested = output();
|
|
22222
|
-
this.items = computed(() =>
|
|
22249
|
+
this.items = computed(() => this.formats().map((format) => ({
|
|
22223
22250
|
format,
|
|
22224
22251
|
icon: SHARE_ICONS[format],
|
|
22225
22252
|
label: this.labels()[format]
|
|
@@ -22259,6 +22286,13 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22259
22286
|
isStandalone: true,
|
|
22260
22287
|
selector: "yuws-list-toolbar-share",
|
|
22261
22288
|
inputs: {
|
|
22289
|
+
formats: {
|
|
22290
|
+
classPropertyName: "formats",
|
|
22291
|
+
publicName: "formats",
|
|
22292
|
+
isSignal: true,
|
|
22293
|
+
isRequired: false,
|
|
22294
|
+
transformFunction: null
|
|
22295
|
+
},
|
|
22262
22296
|
labels: {
|
|
22263
22297
|
classPropertyName: "labels",
|
|
22264
22298
|
publicName: "labels",
|
|
@@ -22383,6 +22417,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22383
22417
|
}]
|
|
22384
22418
|
}],
|
|
22385
22419
|
propDecorators: {
|
|
22420
|
+
formats: [{
|
|
22421
|
+
type: i0.Input,
|
|
22422
|
+
args: [{
|
|
22423
|
+
isSignal: true,
|
|
22424
|
+
alias: "formats",
|
|
22425
|
+
required: false
|
|
22426
|
+
}]
|
|
22427
|
+
}],
|
|
22386
22428
|
labels: [{
|
|
22387
22429
|
type: i0.Input,
|
|
22388
22430
|
args: [{
|
|
@@ -22436,6 +22478,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22436
22478
|
this.search = model("", ...ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []);
|
|
22437
22479
|
this.searchPlaceholder = input(...ngDevMode ? [void 0, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
22438
22480
|
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
22481
|
+
this.shareFormats = input(YUW_TABLE_SHARE_FORMATS, ...ngDevMode ? [{ debugName: "shareFormats" }] : /* istanbul ignore next */ []);
|
|
22439
22482
|
this.shareSource = input(...ngDevMode ? [void 0, { debugName: "shareSource" }] : /* istanbul ignore next */ []);
|
|
22440
22483
|
this.shareTitle = input(...ngDevMode ? [void 0, { debugName: "shareTitle" }] : /* istanbul ignore next */ []);
|
|
22441
22484
|
this.showExport = input(false, {
|
|
@@ -22570,6 +22613,13 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22570
22613
|
isRequired: false,
|
|
22571
22614
|
transformFunction: null
|
|
22572
22615
|
},
|
|
22616
|
+
shareFormats: {
|
|
22617
|
+
classPropertyName: "shareFormats",
|
|
22618
|
+
publicName: "shareFormats",
|
|
22619
|
+
isSignal: true,
|
|
22620
|
+
isRequired: false,
|
|
22621
|
+
transformFunction: null
|
|
22622
|
+
},
|
|
22573
22623
|
shareSource: {
|
|
22574
22624
|
classPropertyName: "shareSource",
|
|
22575
22625
|
publicName: "shareSource",
|
|
@@ -22623,7 +22673,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22623
22673
|
lucideSettings2
|
|
22624
22674
|
})],
|
|
22625
22675
|
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",
|
|
22676
|
+
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
22677
|
dependencies: [
|
|
22628
22678
|
{
|
|
22629
22679
|
kind: "component",
|
|
@@ -22766,6 +22816,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22766
22816
|
type: YuwsListToolbarShareComponent,
|
|
22767
22817
|
selector: "yuws-list-toolbar-share",
|
|
22768
22818
|
inputs: [
|
|
22819
|
+
"formats",
|
|
22769
22820
|
"labels",
|
|
22770
22821
|
"serverSideFormats",
|
|
22771
22822
|
"source",
|
|
@@ -22808,7 +22859,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22808
22859
|
lucideSettings2
|
|
22809
22860
|
})],
|
|
22810
22861
|
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"
|
|
22862
|
+
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
22863
|
}]
|
|
22813
22864
|
}],
|
|
22814
22865
|
propDecorators: {
|
|
@@ -22882,6 +22933,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22882
22933
|
required: false
|
|
22883
22934
|
}]
|
|
22884
22935
|
}],
|
|
22936
|
+
shareFormats: [{
|
|
22937
|
+
type: i0.Input,
|
|
22938
|
+
args: [{
|
|
22939
|
+
isSignal: true,
|
|
22940
|
+
alias: "shareFormats",
|
|
22941
|
+
required: false
|
|
22942
|
+
}]
|
|
22943
|
+
}],
|
|
22885
22944
|
shareSource: [{
|
|
22886
22945
|
type: i0.Input,
|
|
22887
22946
|
args: [{
|
|
@@ -24218,6 +24277,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24218
24277
|
this.searchPlaceholder = input(...ngDevMode ? [void 0, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
24219
24278
|
this.selection = model({}, ...ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []);
|
|
24220
24279
|
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
24280
|
+
this.shareFormats = input(YUW_TABLE_SHARE_FORMATS, ...ngDevMode ? [{ debugName: "shareFormats" }] : /* istanbul ignore next */ []);
|
|
24221
24281
|
this.shareSource = input(...ngDevMode ? [void 0, { debugName: "shareSource" }] : /* istanbul ignore next */ []);
|
|
24222
24282
|
this.shareTitle = input(...ngDevMode ? [void 0, { debugName: "shareTitle" }] : /* istanbul ignore next */ []);
|
|
24223
24283
|
this.showExport = input(false, {
|
|
@@ -24336,6 +24396,13 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24336
24396
|
isRequired: false,
|
|
24337
24397
|
transformFunction: null
|
|
24338
24398
|
},
|
|
24399
|
+
shareFormats: {
|
|
24400
|
+
classPropertyName: "shareFormats",
|
|
24401
|
+
publicName: "shareFormats",
|
|
24402
|
+
isSignal: true,
|
|
24403
|
+
isRequired: false,
|
|
24404
|
+
transformFunction: null
|
|
24405
|
+
},
|
|
24339
24406
|
shareSource: {
|
|
24340
24407
|
classPropertyName: "shareSource",
|
|
24341
24408
|
publicName: "shareSource",
|
|
@@ -24391,7 +24458,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24391
24458
|
isSignal: true
|
|
24392
24459
|
}],
|
|
24393
24460
|
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",
|
|
24461
|
+
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
24462
|
dependencies: [{
|
|
24396
24463
|
kind: "component",
|
|
24397
24464
|
type: YuwsListToolbarActionsComponent,
|
|
@@ -24405,6 +24472,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24405
24472
|
"search",
|
|
24406
24473
|
"searchPlaceholder",
|
|
24407
24474
|
"serverSideFormats",
|
|
24475
|
+
"shareFormats",
|
|
24408
24476
|
"shareSource",
|
|
24409
24477
|
"shareTitle",
|
|
24410
24478
|
"showExport",
|
|
@@ -24455,7 +24523,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24455
24523
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24456
24524
|
imports: [YuwsListToolbarActionsComponent, YuwsListToolbarFiltersComponent],
|
|
24457
24525
|
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"
|
|
24526
|
+
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
24527
|
}]
|
|
24460
24528
|
}],
|
|
24461
24529
|
propDecorators: {
|
|
@@ -24568,6 +24636,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24568
24636
|
required: false
|
|
24569
24637
|
}]
|
|
24570
24638
|
}],
|
|
24639
|
+
shareFormats: [{
|
|
24640
|
+
type: i0.Input,
|
|
24641
|
+
args: [{
|
|
24642
|
+
isSignal: true,
|
|
24643
|
+
alias: "shareFormats",
|
|
24644
|
+
required: false
|
|
24645
|
+
}]
|
|
24646
|
+
}],
|
|
24571
24647
|
shareSource: [{
|
|
24572
24648
|
type: i0.Input,
|
|
24573
24649
|
args: [{
|