yukit-web 0.10.8 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/yukit-web.mjs +74 -68
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +15 -10
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -11,6 +11,7 @@ import { HlmButton, buttonVariants, provideBrnButtonConfig } from "yukit-web/hel
|
|
|
11
11
|
import * as i2 from "yukit-web/helm/dropdown-menu";
|
|
12
12
|
import { HlmDropdownMenu, HlmDropdownMenuCheckbox, HlmDropdownMenuCheckboxIndicator, HlmDropdownMenuGroup, HlmDropdownMenuItem, HlmDropdownMenuItemSubIndicator, HlmDropdownMenuLabel, HlmDropdownMenuRadio, HlmDropdownMenuRadioIndicator, HlmDropdownMenuSeparator, HlmDropdownMenuShortcut, HlmDropdownMenuSub, HlmDropdownMenuSubTrigger, HlmDropdownMenuTrigger } from "yukit-web/helm/dropdown-menu";
|
|
13
13
|
import { cva } from "class-variance-authority";
|
|
14
|
+
import { OVERLAY_DEFAULT_CONFIG, Overlay, OverlayContainer } from "@angular/cdk/overlay";
|
|
14
15
|
import * as i1$31 from "@spartan-ng/brain/tooltip";
|
|
15
16
|
import { BrnTooltip, provideBrnTooltipDefaultOptions } from "@spartan-ng/brain/tooltip";
|
|
16
17
|
import { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, tooltipPositionVariants } from "yukit-web/helm/tooltip";
|
|
@@ -99,7 +100,6 @@ import { HlmAttachment, HlmAttachmentAction, HlmAttachmentActions, HlmAttachment
|
|
|
99
100
|
import { distinctUntilChanged as distinctUntilChanged$1, map as map$1 } from "rxjs/operators";
|
|
100
101
|
import * as i1$1 from "yukit-web/helm/sidebar";
|
|
101
102
|
import { HlmSidebar, HlmSidebarContent, HlmSidebarFooter, HlmSidebarGroup, HlmSidebarGroupContent, HlmSidebarGroupLabel, HlmSidebarHeader, HlmSidebarInset, HlmSidebarMenu, HlmSidebarMenuBadge, HlmSidebarMenuButton, HlmSidebarMenuItem, HlmSidebarMenuSub, HlmSidebarMenuSubButton, HlmSidebarMenuSubItem, HlmSidebarRail, HlmSidebarSeparator, HlmSidebarService, HlmSidebarService as YuwSidebarService, HlmSidebarTrigger, HlmSidebarWrapper, injectHlmSidebarConfig, provideHlmSidebarConfig, provideHlmSidebarConfig as provideYuwSidebarConfig } from "yukit-web/helm/sidebar";
|
|
102
|
-
import { OverlayContainer } from "@angular/cdk/overlay";
|
|
103
103
|
import * as i1 from "yukit-web/helm/command";
|
|
104
104
|
import { HlmCommandDialog, HlmCommandImports } from "yukit-web/helm/command";
|
|
105
105
|
import { FormField, FormRoot, submit } from "@angular/forms/signals";
|
|
@@ -1224,11 +1224,18 @@ var YuwTooltipDirective = class YuwTooltipDirective {
|
|
|
1224
1224
|
"blur": "restore()",
|
|
1225
1225
|
"pointerenter": "restore()"
|
|
1226
1226
|
} },
|
|
1227
|
-
providers: [
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1227
|
+
providers: [
|
|
1228
|
+
Overlay,
|
|
1229
|
+
{
|
|
1230
|
+
provide: OVERLAY_DEFAULT_CONFIG,
|
|
1231
|
+
useValue: { usePopover: true }
|
|
1232
|
+
},
|
|
1233
|
+
provideBrnTooltipDefaultOptions({
|
|
1234
|
+
svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
|
|
1235
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
1236
|
+
arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
|
|
1237
|
+
})
|
|
1238
|
+
],
|
|
1232
1239
|
hostDirectives: [{
|
|
1233
1240
|
directive: i1$31.BrnTooltip,
|
|
1234
1241
|
inputs: [
|
|
@@ -1257,11 +1264,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
1257
1264
|
type: Directive,
|
|
1258
1265
|
args: [{
|
|
1259
1266
|
selector: "[yuwTooltip]",
|
|
1260
|
-
providers: [
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1267
|
+
providers: [
|
|
1268
|
+
Overlay,
|
|
1269
|
+
{
|
|
1270
|
+
provide: OVERLAY_DEFAULT_CONFIG,
|
|
1271
|
+
useValue: { usePopover: true }
|
|
1272
|
+
},
|
|
1273
|
+
provideBrnTooltipDefaultOptions({
|
|
1274
|
+
svgClasses: DEFAULT_TOOLTIP_SVG_CLASS,
|
|
1275
|
+
tooltipContentClasses: DEFAULT_TOOLTIP_CONTENT_CLASSES,
|
|
1276
|
+
arrowClasses: (position) => hlm(tooltipPositionVariants({ position }))
|
|
1277
|
+
})
|
|
1278
|
+
],
|
|
1265
1279
|
hostDirectives: [{
|
|
1266
1280
|
directive: BrnTooltip,
|
|
1267
1281
|
inputs: [
|
|
@@ -12705,7 +12719,7 @@ function stopOnToast(event) {
|
|
|
12705
12719
|
if (event.target instanceof Element && event.target.closest(TOAST)) event.stopPropagation();
|
|
12706
12720
|
}
|
|
12707
12721
|
const TOAST_CLASS = "items-start! [&_[data-icon]]:mt-0.5";
|
|
12708
|
-
const CLOSABLE_TOAST_CLASS = "pe-14! min-h-16!";
|
|
12722
|
+
const CLOSABLE_TOAST_CLASS = "has-[>[data-close-button]]:pe-14! has-[>[data-close-button]]:min-h-16!";
|
|
12709
12723
|
const CLOSE_BUTTON_CLASS = "top-4! size-8! rounded-md! border-current/40! bg-transparent! text-current! hover:bg-current/10! [&_svg]:size-4 [&_svg]:stroke-2";
|
|
12710
12724
|
const TOAST_STYLE = {
|
|
12711
12725
|
"--normal-bg": "var(--toast)",
|
|
@@ -13238,6 +13252,7 @@ function yuwCountdownToast(options) {
|
|
|
13238
13252
|
untracked(() => show(YuwCountdownToastComponent, {
|
|
13239
13253
|
id: toastId,
|
|
13240
13254
|
duration: Number.POSITIVE_INFINITY,
|
|
13255
|
+
closeButton: options.cancelLabel ? false : void 0,
|
|
13241
13256
|
componentProps: {
|
|
13242
13257
|
cancel: ref.cancel,
|
|
13243
13258
|
cancelLabel: options.cancelLabel,
|
|
@@ -22145,13 +22160,10 @@ const SHARE_ICONS = {
|
|
|
22145
22160
|
var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
22146
22161
|
constructor() {
|
|
22147
22162
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
22148
|
-
this.
|
|
22149
|
-
...ngDevMode ? { debugName: "serverSidePrint" } : /* istanbul ignore next */ {},
|
|
22150
|
-
transform: booleanAttribute
|
|
22151
|
-
});
|
|
22163
|
+
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
22152
22164
|
this.source = input.required(...ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []);
|
|
22153
22165
|
this.title = input(...ngDevMode ? [void 0, { debugName: "title" }] : /* istanbul ignore next */ []);
|
|
22154
|
-
this.
|
|
22166
|
+
this.shareRequested = output();
|
|
22155
22167
|
this.items = computed(() => YUW_TABLE_SHARE_FORMATS.map((format) => ({
|
|
22156
22168
|
format,
|
|
22157
22169
|
icon: SHARE_ICONS[format],
|
|
@@ -22159,8 +22171,8 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22159
22171
|
})), ...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
22160
22172
|
}
|
|
22161
22173
|
async onShare(format) {
|
|
22162
|
-
if (
|
|
22163
|
-
this.
|
|
22174
|
+
if (this.serverSideFormats().includes(format)) {
|
|
22175
|
+
this.shareRequested.emit(format);
|
|
22164
22176
|
return;
|
|
22165
22177
|
}
|
|
22166
22178
|
try {
|
|
@@ -22199,9 +22211,9 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22199
22211
|
isRequired: true,
|
|
22200
22212
|
transformFunction: null
|
|
22201
22213
|
},
|
|
22202
|
-
|
|
22203
|
-
classPropertyName: "
|
|
22204
|
-
publicName: "
|
|
22214
|
+
serverSideFormats: {
|
|
22215
|
+
classPropertyName: "serverSideFormats",
|
|
22216
|
+
publicName: "serverSideFormats",
|
|
22205
22217
|
isSignal: true,
|
|
22206
22218
|
isRequired: false,
|
|
22207
22219
|
transformFunction: null
|
|
@@ -22221,7 +22233,7 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22221
22233
|
transformFunction: null
|
|
22222
22234
|
}
|
|
22223
22235
|
},
|
|
22224
|
-
outputs: {
|
|
22236
|
+
outputs: { shareRequested: "shareRequested" },
|
|
22225
22237
|
host: { classAttribute: "flex shrink-0" },
|
|
22226
22238
|
providers: [provideIcons({
|
|
22227
22239
|
lucideClipboardCopy,
|
|
@@ -22324,11 +22336,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22324
22336
|
required: true
|
|
22325
22337
|
}]
|
|
22326
22338
|
}],
|
|
22327
|
-
|
|
22339
|
+
serverSideFormats: [{
|
|
22328
22340
|
type: i0.Input,
|
|
22329
22341
|
args: [{
|
|
22330
22342
|
isSignal: true,
|
|
22331
|
-
alias: "
|
|
22343
|
+
alias: "serverSideFormats",
|
|
22332
22344
|
required: false
|
|
22333
22345
|
}]
|
|
22334
22346
|
}],
|
|
@@ -22348,9 +22360,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22348
22360
|
required: false
|
|
22349
22361
|
}]
|
|
22350
22362
|
}],
|
|
22351
|
-
|
|
22363
|
+
shareRequested: [{
|
|
22352
22364
|
type: i0.Output,
|
|
22353
|
-
args: ["
|
|
22365
|
+
args: ["shareRequested"]
|
|
22354
22366
|
}]
|
|
22355
22367
|
}
|
|
22356
22368
|
});
|
|
@@ -22368,10 +22380,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22368
22380
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
22369
22381
|
this.search = model("", ...ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []);
|
|
22370
22382
|
this.searchPlaceholder = input(...ngDevMode ? [void 0, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
22371
|
-
this.
|
|
22372
|
-
...ngDevMode ? { debugName: "serverSidePrint" } : /* istanbul ignore next */ {},
|
|
22373
|
-
transform: booleanAttribute
|
|
22374
|
-
});
|
|
22383
|
+
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
22375
22384
|
this.shareSource = input(...ngDevMode ? [void 0, { debugName: "shareSource" }] : /* istanbul ignore next */ []);
|
|
22376
22385
|
this.shareTitle = input(...ngDevMode ? [void 0, { debugName: "shareTitle" }] : /* istanbul ignore next */ []);
|
|
22377
22386
|
this.showExport = input(false, {
|
|
@@ -22381,8 +22390,8 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22381
22390
|
this.viewMode = model(...ngDevMode ? [void 0, { debugName: "viewMode" }] : /* istanbul ignore next */ []);
|
|
22382
22391
|
this.viewModeIcons = input(...ngDevMode ? [void 0, { debugName: "viewModeIcons" }] : /* istanbul ignore next */ []);
|
|
22383
22392
|
this.exported = output();
|
|
22384
|
-
this.printRequested = output();
|
|
22385
22393
|
this.searched = output();
|
|
22394
|
+
this.shareRequested = output();
|
|
22386
22395
|
this.searchOpen = signal(false, ...ngDevMode ? [{ debugName: "searchOpen" }] : /* istanbul ignore next */ []);
|
|
22387
22396
|
this.share = computed(() => {
|
|
22388
22397
|
const source = this.shareSource();
|
|
@@ -22499,9 +22508,9 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22499
22508
|
isRequired: false,
|
|
22500
22509
|
transformFunction: null
|
|
22501
22510
|
},
|
|
22502
|
-
|
|
22503
|
-
classPropertyName: "
|
|
22504
|
-
publicName: "
|
|
22511
|
+
serverSideFormats: {
|
|
22512
|
+
classPropertyName: "serverSideFormats",
|
|
22513
|
+
publicName: "serverSideFormats",
|
|
22505
22514
|
isSignal: true,
|
|
22506
22515
|
isRequired: false,
|
|
22507
22516
|
transformFunction: null
|
|
@@ -22547,8 +22556,8 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22547
22556
|
search: "searchChange",
|
|
22548
22557
|
viewMode: "viewModeChange",
|
|
22549
22558
|
exported: "exported",
|
|
22550
|
-
|
|
22551
|
-
|
|
22559
|
+
searched: "searched",
|
|
22560
|
+
shareRequested: "shareRequested"
|
|
22552
22561
|
},
|
|
22553
22562
|
host: { classAttribute: "flex items-center gap-2" },
|
|
22554
22563
|
providers: [provideIcons({
|
|
@@ -22559,7 +22568,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22559
22568
|
lucideSettings2
|
|
22560
22569
|
})],
|
|
22561
22570
|
ngImport: i0,
|
|
22562
|
-
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 [
|
|
22571
|
+
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",
|
|
22563
22572
|
dependencies: [
|
|
22564
22573
|
{
|
|
22565
22574
|
kind: "component",
|
|
@@ -22703,11 +22712,11 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22703
22712
|
selector: "yuws-list-toolbar-share",
|
|
22704
22713
|
inputs: [
|
|
22705
22714
|
"labels",
|
|
22706
|
-
"
|
|
22715
|
+
"serverSideFormats",
|
|
22707
22716
|
"source",
|
|
22708
22717
|
"title"
|
|
22709
22718
|
],
|
|
22710
|
-
outputs: ["
|
|
22719
|
+
outputs: ["shareRequested"]
|
|
22711
22720
|
}
|
|
22712
22721
|
],
|
|
22713
22722
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
@@ -22744,7 +22753,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22744
22753
|
lucideSettings2
|
|
22745
22754
|
})],
|
|
22746
22755
|
host: { class: "flex items-center gap-2" },
|
|
22747
|
-
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 [
|
|
22756
|
+
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"
|
|
22748
22757
|
}]
|
|
22749
22758
|
}],
|
|
22750
22759
|
propDecorators: {
|
|
@@ -22810,11 +22819,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22810
22819
|
required: false
|
|
22811
22820
|
}]
|
|
22812
22821
|
}],
|
|
22813
|
-
|
|
22822
|
+
serverSideFormats: [{
|
|
22814
22823
|
type: i0.Input,
|
|
22815
22824
|
args: [{
|
|
22816
22825
|
isSignal: true,
|
|
22817
|
-
alias: "
|
|
22826
|
+
alias: "serverSideFormats",
|
|
22818
22827
|
required: false
|
|
22819
22828
|
}]
|
|
22820
22829
|
}],
|
|
@@ -22865,13 +22874,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22865
22874
|
type: i0.Output,
|
|
22866
22875
|
args: ["exported"]
|
|
22867
22876
|
}],
|
|
22868
|
-
printRequested: [{
|
|
22869
|
-
type: i0.Output,
|
|
22870
|
-
args: ["printRequested"]
|
|
22871
|
-
}],
|
|
22872
22877
|
searched: [{
|
|
22873
22878
|
type: i0.Output,
|
|
22874
22879
|
args: ["searched"]
|
|
22880
|
+
}],
|
|
22881
|
+
shareRequested: [{
|
|
22882
|
+
type: i0.Output,
|
|
22883
|
+
args: ["shareRequested"]
|
|
22875
22884
|
}]
|
|
22876
22885
|
}
|
|
22877
22886
|
});
|
|
@@ -24153,10 +24162,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24153
24162
|
this.search = model("", ...ngDevMode ? [{ debugName: "search" }] : /* istanbul ignore next */ []);
|
|
24154
24163
|
this.searchPlaceholder = input(...ngDevMode ? [void 0, { debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []);
|
|
24155
24164
|
this.selection = model({}, ...ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []);
|
|
24156
|
-
this.
|
|
24157
|
-
...ngDevMode ? { debugName: "serverSidePrint" } : /* istanbul ignore next */ {},
|
|
24158
|
-
transform: booleanAttribute
|
|
24159
|
-
});
|
|
24165
|
+
this.serverSideFormats = input([], ...ngDevMode ? [{ debugName: "serverSideFormats" }] : /* istanbul ignore next */ []);
|
|
24160
24166
|
this.shareSource = input(...ngDevMode ? [void 0, { debugName: "shareSource" }] : /* istanbul ignore next */ []);
|
|
24161
24167
|
this.shareTitle = input(...ngDevMode ? [void 0, { debugName: "shareTitle" }] : /* istanbul ignore next */ []);
|
|
24162
24168
|
this.showExport = input(false, {
|
|
@@ -24166,11 +24172,11 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24166
24172
|
this.viewMode = model(...ngDevMode ? [void 0, { debugName: "viewMode" }] : /* istanbul ignore next */ []);
|
|
24167
24173
|
this.viewModeIcons = input(...ngDevMode ? [void 0, { debugName: "viewModeIcons" }] : /* istanbul ignore next */ []);
|
|
24168
24174
|
this.exported = output();
|
|
24169
|
-
this.printRequested = output();
|
|
24170
24175
|
this.searched = output();
|
|
24171
24176
|
this.setDeleted = output();
|
|
24172
24177
|
this.setRenamed = output();
|
|
24173
24178
|
this.setSaved = output();
|
|
24179
|
+
this.shareRequested = output();
|
|
24174
24180
|
this.isMobile = injectIsMobile();
|
|
24175
24181
|
}
|
|
24176
24182
|
static {
|
|
@@ -24268,9 +24274,9 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24268
24274
|
isRequired: false,
|
|
24269
24275
|
transformFunction: null
|
|
24270
24276
|
},
|
|
24271
|
-
|
|
24272
|
-
classPropertyName: "
|
|
24273
|
-
publicName: "
|
|
24277
|
+
serverSideFormats: {
|
|
24278
|
+
classPropertyName: "serverSideFormats",
|
|
24279
|
+
publicName: "serverSideFormats",
|
|
24274
24280
|
isSignal: true,
|
|
24275
24281
|
isRequired: false,
|
|
24276
24282
|
transformFunction: null
|
|
@@ -24317,11 +24323,11 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24317
24323
|
selection: "selectionChange",
|
|
24318
24324
|
viewMode: "viewModeChange",
|
|
24319
24325
|
exported: "exported",
|
|
24320
|
-
printRequested: "printRequested",
|
|
24321
24326
|
searched: "searched",
|
|
24322
24327
|
setDeleted: "setDeleted",
|
|
24323
24328
|
setRenamed: "setRenamed",
|
|
24324
|
-
setSaved: "setSaved"
|
|
24329
|
+
setSaved: "setSaved",
|
|
24330
|
+
shareRequested: "shareRequested"
|
|
24325
24331
|
},
|
|
24326
24332
|
host: { classAttribute: "flex items-center gap-3 max-md:flex-wrap max-md:gap-2" },
|
|
24327
24333
|
queries: [{
|
|
@@ -24330,7 +24336,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24330
24336
|
isSignal: true
|
|
24331
24337
|
}],
|
|
24332
24338
|
ngImport: i0,
|
|
24333
|
-
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 [
|
|
24339
|
+
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",
|
|
24334
24340
|
dependencies: [{
|
|
24335
24341
|
kind: "component",
|
|
24336
24342
|
type: YuwsListToolbarActionsComponent,
|
|
@@ -24343,7 +24349,7 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24343
24349
|
"labels",
|
|
24344
24350
|
"search",
|
|
24345
24351
|
"searchPlaceholder",
|
|
24346
|
-
"
|
|
24352
|
+
"serverSideFormats",
|
|
24347
24353
|
"shareSource",
|
|
24348
24354
|
"shareTitle",
|
|
24349
24355
|
"showExport",
|
|
@@ -24355,8 +24361,8 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24355
24361
|
"searchChange",
|
|
24356
24362
|
"viewModeChange",
|
|
24357
24363
|
"exported",
|
|
24358
|
-
"
|
|
24359
|
-
"
|
|
24364
|
+
"searched",
|
|
24365
|
+
"shareRequested"
|
|
24360
24366
|
]
|
|
24361
24367
|
}, {
|
|
24362
24368
|
kind: "component",
|
|
@@ -24394,7 +24400,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24394
24400
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24395
24401
|
imports: [YuwsListToolbarActionsComponent, YuwsListToolbarFiltersComponent],
|
|
24396
24402
|
host: { class: "flex items-center gap-3 max-md:flex-wrap max-md:gap-2" },
|
|
24397
|
-
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 [
|
|
24403
|
+
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"
|
|
24398
24404
|
}]
|
|
24399
24405
|
}],
|
|
24400
24406
|
propDecorators: {
|
|
@@ -24499,11 +24505,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24499
24505
|
type: i0.Output,
|
|
24500
24506
|
args: ["selectionChange"]
|
|
24501
24507
|
}],
|
|
24502
|
-
|
|
24508
|
+
serverSideFormats: [{
|
|
24503
24509
|
type: i0.Input,
|
|
24504
24510
|
args: [{
|
|
24505
24511
|
isSignal: true,
|
|
24506
|
-
alias: "
|
|
24512
|
+
alias: "serverSideFormats",
|
|
24507
24513
|
required: false
|
|
24508
24514
|
}]
|
|
24509
24515
|
}],
|
|
@@ -24554,10 +24560,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24554
24560
|
type: i0.Output,
|
|
24555
24561
|
args: ["exported"]
|
|
24556
24562
|
}],
|
|
24557
|
-
printRequested: [{
|
|
24558
|
-
type: i0.Output,
|
|
24559
|
-
args: ["printRequested"]
|
|
24560
|
-
}],
|
|
24561
24563
|
searched: [{
|
|
24562
24564
|
type: i0.Output,
|
|
24563
24565
|
args: ["searched"]
|
|
@@ -24573,6 +24575,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24573
24575
|
setSaved: [{
|
|
24574
24576
|
type: i0.Output,
|
|
24575
24577
|
args: ["setSaved"]
|
|
24578
|
+
}],
|
|
24579
|
+
shareRequested: [{
|
|
24580
|
+
type: i0.Output,
|
|
24581
|
+
args: ["shareRequested"]
|
|
24576
24582
|
}]
|
|
24577
24583
|
}
|
|
24578
24584
|
});
|