yukit-web 0.10.7 → 0.10.9
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 +228 -77
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/components/button.css +14 -0
- package/src/lib/theme/spartan-overwrites/sonner.css +2 -2
- package/src/lib/theme/tokens/component-colors.css +6 -2
- package/types/yukit-web.d.ts +42 -10
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -11,11 +11,12 @@ 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";
|
|
17
18
|
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
18
|
-
import { lucideArchiveRestore, lucideArrowLeft, lucideCheck, lucideChevronDown, lucideChevronLeft, lucideChevronRight, lucideChevronUp, lucideChevronsUpDown, lucideClipboardCopy, lucideCopy, lucideDownload, lucideEllipsis, lucideEye, lucideEyeOff, lucideFileDown, lucideFileSpreadsheet, lucideFileText, lucideImagePlus, lucideLayoutGrid, lucideList, lucideMinus, lucidePaperclip, lucidePencil, lucidePlus, lucidePrinter, lucideSave, lucideSearch, lucideSettings2, lucideShare, lucideStar, lucideTrash2, lucideUpload, lucideX } from "@ng-icons/lucide";
|
|
19
|
+
import { lucideArchiveRestore, lucideArrowLeft, lucideCheck, lucideChevronDown, lucideChevronLeft, lucideChevronRight, lucideChevronUp, lucideChevronsUpDown, lucideClipboardCopy, lucideCopy, lucideDownload, lucideEllipsis, lucideEye, lucideEyeOff, lucideFileDown, lucideFileSpreadsheet, lucideFileText, lucideImagePlus, lucideLayoutGrid, lucideList, lucideMinus, lucidePaperclip, lucidePencil, lucidePlus, lucidePrinter, lucideSave, lucideSearch, lucideSettings2, lucideShare, lucideStar, lucideTrash2, lucideUndo2, lucideUpload, lucideX } from "@ng-icons/lucide";
|
|
19
20
|
import * as i1$30 from "yukit-web/helm/badge";
|
|
20
21
|
import { HlmBadge } from "yukit-web/helm/badge";
|
|
21
22
|
import * as i1$29 from "yukit-web/helm/breadcrumb";
|
|
@@ -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: [
|
|
@@ -12658,9 +12672,55 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12658
12672
|
}]
|
|
12659
12673
|
}
|
|
12660
12674
|
});
|
|
12675
|
+
const TOAST = "[data-sonner-toast]";
|
|
12676
|
+
var YuwNoToastSwipeDirective = class YuwNoToastSwipeDirective {
|
|
12677
|
+
constructor() {
|
|
12678
|
+
const element = inject(ElementRef).nativeElement;
|
|
12679
|
+
const lifetime = new AbortController();
|
|
12680
|
+
inject(DestroyRef).onDestroy(() => lifetime.abort());
|
|
12681
|
+
inject(NgZone).runOutsideAngular(() => element.addEventListener("pointermove", stopOnToast, {
|
|
12682
|
+
capture: true,
|
|
12683
|
+
signal: lifetime.signal
|
|
12684
|
+
}));
|
|
12685
|
+
}
|
|
12686
|
+
static {
|
|
12687
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
12688
|
+
minVersion: "12.0.0",
|
|
12689
|
+
version: "22.2.4",
|
|
12690
|
+
ngImport: i0,
|
|
12691
|
+
type: YuwNoToastSwipeDirective,
|
|
12692
|
+
deps: [],
|
|
12693
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
12694
|
+
});
|
|
12695
|
+
}
|
|
12696
|
+
static {
|
|
12697
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
12698
|
+
minVersion: "14.0.0",
|
|
12699
|
+
version: "22.2.4",
|
|
12700
|
+
type: YuwNoToastSwipeDirective,
|
|
12701
|
+
isStandalone: true,
|
|
12702
|
+
selector: "[yuwNoToastSwipe]",
|
|
12703
|
+
ngImport: i0
|
|
12704
|
+
});
|
|
12705
|
+
}
|
|
12706
|
+
};
|
|
12707
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
12708
|
+
minVersion: "12.0.0",
|
|
12709
|
+
version: "22.2.4",
|
|
12710
|
+
ngImport: i0,
|
|
12711
|
+
type: YuwNoToastSwipeDirective,
|
|
12712
|
+
decorators: [{
|
|
12713
|
+
type: Directive,
|
|
12714
|
+
args: [{ selector: "[yuwNoToastSwipe]" }]
|
|
12715
|
+
}],
|
|
12716
|
+
ctorParameters: () => []
|
|
12717
|
+
});
|
|
12718
|
+
function stopOnToast(event) {
|
|
12719
|
+
if (event.target instanceof Element && event.target.closest(TOAST)) event.stopPropagation();
|
|
12720
|
+
}
|
|
12661
12721
|
const TOAST_CLASS = "items-start! [&_[data-icon]]:mt-0.5";
|
|
12662
|
-
const CLOSABLE_TOAST_CLASS = "pe-
|
|
12663
|
-
const CLOSE_BUTTON_CLASS = "top-
|
|
12722
|
+
const CLOSABLE_TOAST_CLASS = "has-[>[data-close-button]]:pe-14! has-[>[data-close-button]]:min-h-16!";
|
|
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";
|
|
12664
12724
|
const TOAST_STYLE = {
|
|
12665
12725
|
"--normal-bg": "var(--toast)",
|
|
12666
12726
|
"--normal-text": "var(--toast-foreground)",
|
|
@@ -12782,7 +12842,7 @@ var YuwToasterComponent = class YuwToasterComponent {
|
|
|
12782
12842
|
},
|
|
12783
12843
|
host: { classAttribute: "contents" },
|
|
12784
12844
|
ngImport: i0,
|
|
12785
|
-
template: "<hlm-toaster\n [richColors]=\"richColors()\"\n [theme]=\"theme()\"\n [toastOptions]=\"mergedToastOptions()\"\n [position]=\"position()\"\n [duration]=\"duration()\"\n [visibleToasts]=\"visibleToasts()\"\n [closeButton]=\"closeButton()\"\n [expand]=\"expand()\"\n [style]=\"style\"\n/>\n",
|
|
12845
|
+
template: "<hlm-toaster\n yuwNoToastSwipe\n [richColors]=\"richColors()\"\n [theme]=\"theme()\"\n [toastOptions]=\"mergedToastOptions()\"\n [position]=\"position()\"\n [duration]=\"duration()\"\n [visibleToasts]=\"visibleToasts()\"\n [closeButton]=\"closeButton()\"\n [expand]=\"expand()\"\n [style]=\"style\"\n/>\n",
|
|
12786
12846
|
dependencies: [{
|
|
12787
12847
|
kind: "component",
|
|
12788
12848
|
type: HlmToaster,
|
|
@@ -12802,6 +12862,10 @@ var YuwToasterComponent = class YuwToasterComponent {
|
|
|
12802
12862
|
"class",
|
|
12803
12863
|
"style"
|
|
12804
12864
|
]
|
|
12865
|
+
}, {
|
|
12866
|
+
kind: "directive",
|
|
12867
|
+
type: YuwNoToastSwipeDirective,
|
|
12868
|
+
selector: "[yuwNoToastSwipe]"
|
|
12805
12869
|
}],
|
|
12806
12870
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
12807
12871
|
});
|
|
@@ -12816,10 +12880,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12816
12880
|
type: Component,
|
|
12817
12881
|
args: [{
|
|
12818
12882
|
selector: "yuw-toaster",
|
|
12819
|
-
imports: [HlmToaster],
|
|
12883
|
+
imports: [HlmToaster, YuwNoToastSwipeDirective],
|
|
12820
12884
|
host: { class: "contents" },
|
|
12821
12885
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
12822
|
-
template: "<hlm-toaster\n [richColors]=\"richColors()\"\n [theme]=\"theme()\"\n [toastOptions]=\"mergedToastOptions()\"\n [position]=\"position()\"\n [duration]=\"duration()\"\n [visibleToasts]=\"visibleToasts()\"\n [closeButton]=\"closeButton()\"\n [expand]=\"expand()\"\n [style]=\"style\"\n/>\n"
|
|
12886
|
+
template: "<hlm-toaster\n yuwNoToastSwipe\n [richColors]=\"richColors()\"\n [theme]=\"theme()\"\n [toastOptions]=\"mergedToastOptions()\"\n [position]=\"position()\"\n [duration]=\"duration()\"\n [visibleToasts]=\"visibleToasts()\"\n [closeButton]=\"closeButton()\"\n [expand]=\"expand()\"\n [style]=\"style\"\n/>\n"
|
|
12823
12887
|
}]
|
|
12824
12888
|
}],
|
|
12825
12889
|
propDecorators: {
|
|
@@ -12924,6 +12988,7 @@ var YuwCountdown = class {
|
|
|
12924
12988
|
}
|
|
12925
12989
|
};
|
|
12926
12990
|
const TOASTER = "[data-sonner-toaster]";
|
|
12991
|
+
const UNDO_BUTTON_CLASS = "size-8 [--foreground:currentcolor] border-current/40 bg-transparent text-current hover:bg-current/10 hover:text-current aria-expanded:bg-current/10 aria-expanded:text-current dark:border-current/40 dark:bg-transparent dark:hover:bg-current/10";
|
|
12927
12992
|
var YuwCountdownToastComponent = class YuwCountdownToastComponent {
|
|
12928
12993
|
constructor() {
|
|
12929
12994
|
this._destroyRef = inject(DestroyRef);
|
|
@@ -12935,6 +13000,8 @@ var YuwCountdownToastComponent = class YuwCountdownToastComponent {
|
|
|
12935
13000
|
this.message = input.required(...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
12936
13001
|
this.progressLabel = input.required(...ngDevMode ? [{ debugName: "progressLabel" }] : /* istanbul ignore next */ []);
|
|
12937
13002
|
this.seconds = input.required(...ngDevMode ? [{ debugName: "seconds" }] : /* istanbul ignore next */ []);
|
|
13003
|
+
this.undoButtonClass = UNDO_BUTTON_CLASS;
|
|
13004
|
+
this.undoIcon = lucideUndo2;
|
|
12938
13005
|
this._progress = computed(() => this.countdown().remainingMs() / (this.seconds() * 1e3) * 100, ...ngDevMode ? [{ debugName: "_progress" }] : /* istanbul ignore next */ []);
|
|
12939
13006
|
this._text = computed(() => this.message()(Math.ceil(this.countdown().remainingMs() / 1e3)), ...ngDevMode ? [{ debugName: "_text" }] : /* istanbul ignore next */ []);
|
|
12940
13007
|
afterNextRender(() => this._pauseOnHover());
|
|
@@ -13019,38 +13086,58 @@ var YuwCountdownToastComponent = class YuwCountdownToastComponent {
|
|
|
13019
13086
|
}
|
|
13020
13087
|
},
|
|
13021
13088
|
ngImport: i0,
|
|
13022
|
-
template: "<div class=\"flex w-full flex-col gap-3\">\n <div class=\"flex items-center gap-
|
|
13023
|
-
dependencies: [
|
|
13024
|
-
|
|
13025
|
-
|
|
13026
|
-
|
|
13027
|
-
|
|
13028
|
-
|
|
13029
|
-
|
|
13030
|
-
|
|
13031
|
-
|
|
13032
|
-
|
|
13033
|
-
|
|
13034
|
-
|
|
13035
|
-
|
|
13036
|
-
|
|
13037
|
-
"
|
|
13038
|
-
|
|
13039
|
-
"
|
|
13040
|
-
|
|
13041
|
-
|
|
13042
|
-
|
|
13043
|
-
|
|
13044
|
-
|
|
13045
|
-
|
|
13046
|
-
|
|
13047
|
-
|
|
13048
|
-
|
|
13049
|
-
|
|
13050
|
-
|
|
13051
|
-
|
|
13052
|
-
|
|
13053
|
-
|
|
13089
|
+
template: "<div class=\"flex w-full flex-col gap-3\">\n <div class=\"flex items-center gap-2\">\n <p class=\"min-w-0 flex-1 text-sm\" role=\"status\">{{ _text() }}</p>\n @if (cancelLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n size=\"icon-sm\"\n [class]=\"undoButtonClass\"\n [ariaLabel]=\"label\"\n [yuwTooltip]=\"label\"\n (clicked)=\"cancel()()\"\n >\n <ng-icon [svg]=\"undoIcon\" size=\"16\" />\n </yuw-button>\n }\n </div>\n\n <yuw-progress [color]=\"color()\" [label]=\"progressLabel()\" [value]=\"_progress()\" />\n</div>\n",
|
|
13090
|
+
dependencies: [
|
|
13091
|
+
{
|
|
13092
|
+
kind: "component",
|
|
13093
|
+
type: NgIcon,
|
|
13094
|
+
selector: "ng-icon",
|
|
13095
|
+
inputs: [
|
|
13096
|
+
"name",
|
|
13097
|
+
"svg",
|
|
13098
|
+
"size",
|
|
13099
|
+
"strokeWidth",
|
|
13100
|
+
"color"
|
|
13101
|
+
]
|
|
13102
|
+
},
|
|
13103
|
+
{
|
|
13104
|
+
kind: "component",
|
|
13105
|
+
type: YuwButtonComponent,
|
|
13106
|
+
selector: "yuw-button",
|
|
13107
|
+
inputs: [
|
|
13108
|
+
"animationDisabled",
|
|
13109
|
+
"ariaLabel",
|
|
13110
|
+
"color",
|
|
13111
|
+
"disabled",
|
|
13112
|
+
"href",
|
|
13113
|
+
"size",
|
|
13114
|
+
"target",
|
|
13115
|
+
"transparent",
|
|
13116
|
+
"type",
|
|
13117
|
+
"class",
|
|
13118
|
+
"variant",
|
|
13119
|
+
"yuwDropdownMenuAlign",
|
|
13120
|
+
"yuwDropdownMenuTrigger"
|
|
13121
|
+
],
|
|
13122
|
+
outputs: ["clicked"]
|
|
13123
|
+
},
|
|
13124
|
+
{
|
|
13125
|
+
kind: "component",
|
|
13126
|
+
type: YuwProgressComponent,
|
|
13127
|
+
selector: "yuw-progress",
|
|
13128
|
+
inputs: [
|
|
13129
|
+
"color",
|
|
13130
|
+
"label",
|
|
13131
|
+
"class",
|
|
13132
|
+
"value"
|
|
13133
|
+
]
|
|
13134
|
+
},
|
|
13135
|
+
{
|
|
13136
|
+
kind: "directive",
|
|
13137
|
+
type: YuwTooltipDirective,
|
|
13138
|
+
selector: "[yuwTooltip]"
|
|
13139
|
+
}
|
|
13140
|
+
],
|
|
13054
13141
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
13055
13142
|
});
|
|
13056
13143
|
}
|
|
@@ -13064,9 +13151,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
13064
13151
|
type: Component,
|
|
13065
13152
|
args: [{
|
|
13066
13153
|
selector: "yuw-countdown-toast",
|
|
13067
|
-
imports: [
|
|
13154
|
+
imports: [
|
|
13155
|
+
NgIcon,
|
|
13156
|
+
YuwButtonComponent,
|
|
13157
|
+
YuwProgressComponent,
|
|
13158
|
+
YuwTooltipDirective
|
|
13159
|
+
],
|
|
13068
13160
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13069
|
-
template: "<div class=\"flex w-full flex-col gap-3\">\n <div class=\"flex items-center gap-
|
|
13161
|
+
template: "<div class=\"flex w-full flex-col gap-3\">\n <div class=\"flex items-center gap-2\">\n <p class=\"min-w-0 flex-1 text-sm\" role=\"status\">{{ _text() }}</p>\n @if (cancelLabel(); as label) {\n <yuw-button\n variant=\"outline\"\n size=\"icon-sm\"\n [class]=\"undoButtonClass\"\n [ariaLabel]=\"label\"\n [yuwTooltip]=\"label\"\n (clicked)=\"cancel()()\"\n >\n <ng-icon [svg]=\"undoIcon\" size=\"16\" />\n </yuw-button>\n }\n </div>\n\n <yuw-progress [color]=\"color()\" [label]=\"progressLabel()\" [value]=\"_progress()\" />\n</div>\n"
|
|
13070
13162
|
}]
|
|
13071
13163
|
}],
|
|
13072
13164
|
ctorParameters: () => [],
|
|
@@ -13139,16 +13231,19 @@ const TOAST_TYPE_BY_COLOR = {
|
|
|
13139
13231
|
function yuwCountdownToast(options) {
|
|
13140
13232
|
const toastId = `yuw-countdown-toast-${++lastToastId}`;
|
|
13141
13233
|
let settled = false;
|
|
13142
|
-
const settle = (then) => () => {
|
|
13234
|
+
const settle = (then, closeToast) => () => {
|
|
13143
13235
|
if (settled) return;
|
|
13144
13236
|
settled = true;
|
|
13145
13237
|
countdown.stop();
|
|
13146
|
-
untracked(() =>
|
|
13238
|
+
if (closeToast) untracked(() => show(YuwCountdownToastComponent, {
|
|
13239
|
+
id: toastId,
|
|
13240
|
+
delete: true
|
|
13241
|
+
}));
|
|
13147
13242
|
then?.();
|
|
13148
13243
|
};
|
|
13149
13244
|
const ref = {
|
|
13150
|
-
cancel: settle(options.onCancel),
|
|
13151
|
-
complete: settle(options.onComplete)
|
|
13245
|
+
cancel: settle(options.onCancel, true),
|
|
13246
|
+
complete: settle(options.onComplete, true)
|
|
13152
13247
|
};
|
|
13153
13248
|
const countdown = new YuwCountdown(options.seconds * 1e3, () => ref.complete());
|
|
13154
13249
|
const color = options.color ?? "destructive";
|
|
@@ -13157,6 +13252,7 @@ function yuwCountdownToast(options) {
|
|
|
13157
13252
|
untracked(() => show(YuwCountdownToastComponent, {
|
|
13158
13253
|
id: toastId,
|
|
13159
13254
|
duration: Number.POSITIVE_INFINITY,
|
|
13255
|
+
closeButton: options.cancelLabel ? false : void 0,
|
|
13160
13256
|
componentProps: {
|
|
13161
13257
|
cancel: ref.cancel,
|
|
13162
13258
|
cancelLabel: options.cancelLabel,
|
|
@@ -13166,7 +13262,7 @@ function yuwCountdownToast(options) {
|
|
|
13166
13262
|
progressLabel: options.progressLabel,
|
|
13167
13263
|
seconds: options.seconds
|
|
13168
13264
|
},
|
|
13169
|
-
onDismiss:
|
|
13265
|
+
onDismiss: settle(options.onComplete, false)
|
|
13170
13266
|
}));
|
|
13171
13267
|
return ref;
|
|
13172
13268
|
}
|
|
@@ -14339,15 +14435,25 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14339
14435
|
}]
|
|
14340
14436
|
}
|
|
14341
14437
|
});
|
|
14342
|
-
const
|
|
14343
|
-
variants: {
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14438
|
+
const yuwTabsListVariants = cva("", {
|
|
14439
|
+
variants: {
|
|
14440
|
+
variant: {
|
|
14441
|
+
default: "bg-(--gray-4)",
|
|
14442
|
+
line: ""
|
|
14443
|
+
},
|
|
14444
|
+
size: {
|
|
14445
|
+
default: "group-data-horizontal/tabs:h-10 [&_[data-slot=tabs-trigger]]:px-2.5",
|
|
14446
|
+
xs: "group-data-horizontal/tabs:h-7 [&_[data-slot=tabs-trigger]]:px-1.5",
|
|
14447
|
+
sm: "group-data-horizontal/tabs:h-9 [&_[data-slot=tabs-trigger]]:px-2",
|
|
14448
|
+
lg: "group-data-horizontal/tabs:h-11 [&_[data-slot=tabs-trigger]]:px-3"
|
|
14449
|
+
}
|
|
14450
|
+
},
|
|
14451
|
+
defaultVariants: {
|
|
14452
|
+
size: "default",
|
|
14453
|
+
variant: "default"
|
|
14454
|
+
}
|
|
14350
14455
|
});
|
|
14456
|
+
const YUW_TABS_TRIGGER_CLASS = "text-(--gray-11) hover:text-(--gray-12) dark:text-(--gray-11) dark:hover:text-(--gray-12) dark:data-active:bg-(--gray-1)";
|
|
14351
14457
|
var YuwTabPanelDirective = class YuwTabPanelDirective {
|
|
14352
14458
|
constructor() {
|
|
14353
14459
|
this.templateRef = inject(TemplateRef);
|
|
@@ -14470,7 +14576,11 @@ var YuwTabsComponent = class YuwTabsComponent {
|
|
|
14470
14576
|
alias: "class"
|
|
14471
14577
|
});
|
|
14472
14578
|
this.variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
14473
|
-
this.
|
|
14579
|
+
this.triggerClass = YUW_TABS_TRIGGER_CLASS;
|
|
14580
|
+
this._listClass = computed(() => cn(yuwTabsListVariants({
|
|
14581
|
+
size: this.size(),
|
|
14582
|
+
variant: this.variant()
|
|
14583
|
+
}), this.userClass()), ...ngDevMode ? [{ debugName: "_listClass" }] : /* istanbul ignore next */ []);
|
|
14474
14584
|
this._resolved = computed(() => {
|
|
14475
14585
|
const templates = new Map(this._contents().map((content) => [content.entryId(), content.templateRef]));
|
|
14476
14586
|
return this.tabs().map((entry) => {
|
|
@@ -14564,7 +14674,7 @@ var YuwTabsComponent = class YuwTabsComponent {
|
|
|
14564
14674
|
isSignal: true
|
|
14565
14675
|
}],
|
|
14566
14676
|
ngImport: i0,
|
|
14567
|
-
template: "<hlm-tabs\n [tab]=\"activeTab()\"\n [orientation]=\"orientation()\"\n [activationMode]=\"activationMode()\"\n (tabActivated)=\"onTabActivated($event)\"\n>\n <hlm-tabs-list [variant]=\"variant()\" [class]=\"_listClass()\">\n @for (tab of _resolved(); track tab.id) {\n <button [hlmTabsTrigger]=\"tab.id\" [disabled]=\"tab.disabled ?? false\">\n @if (tab.template) {\n <ng-container [ngTemplateOutlet]=\"tab.template\" />\n } @else {\n {{ tab.label }}\n }\n </button>\n }\n </hlm-tabs-list>\n\n @for (panel of panels(); track panel.tabId()) {\n <div [hlmTabsContent]=\"panel.tabId()\">\n <ng-template hlmTabsContentLazy>\n <ng-container [ngTemplateOutlet]=\"panel.templateRef\" />\n </ng-template>\n </div>\n }\n</hlm-tabs>\n",
|
|
14677
|
+
template: "<hlm-tabs\n [tab]=\"activeTab()\"\n [orientation]=\"orientation()\"\n [activationMode]=\"activationMode()\"\n (tabActivated)=\"onTabActivated($event)\"\n>\n <hlm-tabs-list [variant]=\"variant()\" [class]=\"_listClass()\">\n @for (tab of _resolved(); track tab.id) {\n <button [hlmTabsTrigger]=\"tab.id\" [class]=\"triggerClass\" [disabled]=\"tab.disabled ?? false\">\n @if (tab.template) {\n <ng-container [ngTemplateOutlet]=\"tab.template\" />\n } @else {\n {{ tab.label }}\n }\n </button>\n }\n </hlm-tabs-list>\n\n @for (panel of panels(); track panel.tabId()) {\n <div [hlmTabsContent]=\"panel.tabId()\">\n <ng-template hlmTabsContentLazy>\n <ng-container [ngTemplateOutlet]=\"panel.templateRef\" />\n </ng-template>\n </div>\n }\n</hlm-tabs>\n",
|
|
14568
14678
|
dependencies: [
|
|
14569
14679
|
{
|
|
14570
14680
|
kind: "directive",
|
|
@@ -14622,7 +14732,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14622
14732
|
imports: [NgTemplateOutlet, ...HlmTabsImports],
|
|
14623
14733
|
host: { class: "contents" },
|
|
14624
14734
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
14625
|
-
template: "<hlm-tabs\n [tab]=\"activeTab()\"\n [orientation]=\"orientation()\"\n [activationMode]=\"activationMode()\"\n (tabActivated)=\"onTabActivated($event)\"\n>\n <hlm-tabs-list [variant]=\"variant()\" [class]=\"_listClass()\">\n @for (tab of _resolved(); track tab.id) {\n <button [hlmTabsTrigger]=\"tab.id\" [disabled]=\"tab.disabled ?? false\">\n @if (tab.template) {\n <ng-container [ngTemplateOutlet]=\"tab.template\" />\n } @else {\n {{ tab.label }}\n }\n </button>\n }\n </hlm-tabs-list>\n\n @for (panel of panels(); track panel.tabId()) {\n <div [hlmTabsContent]=\"panel.tabId()\">\n <ng-template hlmTabsContentLazy>\n <ng-container [ngTemplateOutlet]=\"panel.templateRef\" />\n </ng-template>\n </div>\n }\n</hlm-tabs>\n"
|
|
14735
|
+
template: "<hlm-tabs\n [tab]=\"activeTab()\"\n [orientation]=\"orientation()\"\n [activationMode]=\"activationMode()\"\n (tabActivated)=\"onTabActivated($event)\"\n>\n <hlm-tabs-list [variant]=\"variant()\" [class]=\"_listClass()\">\n @for (tab of _resolved(); track tab.id) {\n <button [hlmTabsTrigger]=\"tab.id\" [class]=\"triggerClass\" [disabled]=\"tab.disabled ?? false\">\n @if (tab.template) {\n <ng-container [ngTemplateOutlet]=\"tab.template\" />\n } @else {\n {{ tab.label }}\n }\n </button>\n }\n </hlm-tabs-list>\n\n @for (panel of panels(); track panel.tabId()) {\n <div [hlmTabsContent]=\"panel.tabId()\">\n <ng-template hlmTabsContentLazy>\n <ng-container [ngTemplateOutlet]=\"panel.templateRef\" />\n </ng-template>\n </div>\n }\n</hlm-tabs>\n"
|
|
14626
14736
|
}]
|
|
14627
14737
|
}],
|
|
14628
14738
|
propDecorators: {
|
|
@@ -18434,7 +18544,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18434
18544
|
}]
|
|
18435
18545
|
}
|
|
18436
18546
|
});
|
|
18437
|
-
const DESTRUCTIVE_CLASS = "text-destructive hover:bg-destructive/10 hover:text-destructive";
|
|
18438
18547
|
var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
18439
18548
|
constructor() {
|
|
18440
18549
|
this.action = input.required(...ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []);
|
|
@@ -18442,7 +18551,8 @@ var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
|
18442
18551
|
this.icon = input.required(...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
18443
18552
|
this.label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
18444
18553
|
this.tooltip = input("", ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
18445
|
-
this.
|
|
18554
|
+
this.color = computed(() => this.destructive() ? "destructive" : "neutral", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
18555
|
+
this.variant = computed(() => this.destructive() ? "secondary" : "ghost", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
18446
18556
|
}
|
|
18447
18557
|
run() {
|
|
18448
18558
|
this.action()();
|
|
@@ -18506,7 +18616,7 @@ var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
|
18506
18616
|
classAttribute: "yuw-reveal"
|
|
18507
18617
|
},
|
|
18508
18618
|
ngImport: i0,
|
|
18509
|
-
template: "<yuw-button\n
|
|
18619
|
+
template: "<yuw-button\n size=\"icon\"\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"label()\"\n [yuwTooltip]=\"tooltip()\"\n [tooltipDisabled]=\"!tooltip()\"\n (clicked)=\"run()\"\n>\n <ng-icon [svg]=\"icon()\" size=\"16\" />\n</yuw-button>\n",
|
|
18510
18620
|
dependencies: [
|
|
18511
18621
|
{
|
|
18512
18622
|
kind: "component",
|
|
@@ -18570,7 +18680,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18570
18680
|
class: "yuw-reveal",
|
|
18571
18681
|
"(click)": "$event.stopPropagation()"
|
|
18572
18682
|
},
|
|
18573
|
-
template: "<yuw-button\n
|
|
18683
|
+
template: "<yuw-button\n size=\"icon\"\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"label()\"\n [yuwTooltip]=\"tooltip()\"\n [tooltipDisabled]=\"!tooltip()\"\n (clicked)=\"run()\"\n>\n <ng-icon [svg]=\"icon()\" size=\"16\" />\n</yuw-button>\n"
|
|
18574
18684
|
}]
|
|
18575
18685
|
}],
|
|
18576
18686
|
propDecorators: {
|
|
@@ -22266,6 +22376,7 @@ const DEFAULT_VIEW_MODE_ICONS = {
|
|
|
22266
22376
|
};
|
|
22267
22377
|
var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
22268
22378
|
constructor() {
|
|
22379
|
+
this.defaultHiddenColumns = input([], ...ngDevMode ? [{ debugName: "defaultHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22269
22380
|
this.hiddenColumns = model([], ...ngDevMode ? [{ debugName: "hiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22270
22381
|
this.hideableColumns = input(...ngDevMode ? [void 0, { debugName: "hideableColumns" }] : /* istanbul ignore next */ []);
|
|
22271
22382
|
this.isMobile = input.required(...ngDevMode ? [{ debugName: "isMobile" }] : /* istanbul ignore next */ []);
|
|
@@ -22297,6 +22408,11 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22297
22408
|
} : void 0;
|
|
22298
22409
|
}, ...ngDevMode ? [{ debugName: "share" }] : /* istanbul ignore next */ []);
|
|
22299
22410
|
this._searchIsOnlyAction = computed(() => !this.showExport() && !this.share() && !this.hideableColumns(), ...ngDevMode ? [{ debugName: "_searchIsOnlyAction" }] : /* istanbul ignore next */ []);
|
|
22411
|
+
this.columnsAtDefault = computed(() => {
|
|
22412
|
+
const hidden = new Set(this.hiddenColumns());
|
|
22413
|
+
const defaults = new Set(this.defaultHiddenColumns());
|
|
22414
|
+
return hidden.size === defaults.size && [...defaults].every((id) => hidden.has(id));
|
|
22415
|
+
}, ...ngDevMode ? [{ debugName: "columnsAtDefault" }] : /* istanbul ignore next */ []);
|
|
22300
22416
|
this.hasHiddenColumns = computed(() => this.hiddenColumns().length > 0, ...ngDevMode ? [{ debugName: "hasHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22301
22417
|
this.searchPopoverAlign = computed(() => this._searchIsOnlyAction() ? "end" : "center", ...ngDevMode ? [{ debugName: "searchPopoverAlign" }] : /* istanbul ignore next */ []);
|
|
22302
22418
|
this.searchPopoverOffsetX = computed(() => this._searchIsOnlyAction() ? 0 : -16, ...ngDevMode ? [{ debugName: "searchPopoverOffsetX" }] : /* istanbul ignore next */ []);
|
|
@@ -22321,6 +22437,9 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22321
22437
|
return (this.hideableColumns() ?? []).map(({ value }) => value).filter((value) => !hidden.has(value));
|
|
22322
22438
|
}, ...ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []);
|
|
22323
22439
|
}
|
|
22440
|
+
onColumnsReset() {
|
|
22441
|
+
this.hiddenColumns.set([...this.defaultHiddenColumns()]);
|
|
22442
|
+
}
|
|
22324
22443
|
onViewModeClicked({ id }) {
|
|
22325
22444
|
this.viewMode.set(id);
|
|
22326
22445
|
}
|
|
@@ -22346,6 +22465,13 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22346
22465
|
isStandalone: true,
|
|
22347
22466
|
selector: "yuws-list-toolbar-actions",
|
|
22348
22467
|
inputs: {
|
|
22468
|
+
defaultHiddenColumns: {
|
|
22469
|
+
classPropertyName: "defaultHiddenColumns",
|
|
22470
|
+
publicName: "defaultHiddenColumns",
|
|
22471
|
+
isSignal: true,
|
|
22472
|
+
isRequired: false,
|
|
22473
|
+
transformFunction: null
|
|
22474
|
+
},
|
|
22349
22475
|
hiddenColumns: {
|
|
22350
22476
|
classPropertyName: "hiddenColumns",
|
|
22351
22477
|
publicName: "hiddenColumns",
|
|
@@ -22448,7 +22574,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22448
22574
|
lucideSettings2
|
|
22449
22575
|
})],
|
|
22450
22576
|
ngImport: i0,
|
|
22451
|
-
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 [serverSidePrint]=\"serverSidePrint()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (printRequested)=\"printRequested.emit()\"\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 <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",
|
|
22577
|
+
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 [serverSidePrint]=\"serverSidePrint()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (printRequested)=\"printRequested.emit()\"\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",
|
|
22452
22578
|
dependencies: [
|
|
22453
22579
|
{
|
|
22454
22580
|
kind: "component",
|
|
@@ -22633,10 +22759,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22633
22759
|
lucideSettings2
|
|
22634
22760
|
})],
|
|
22635
22761
|
host: { class: "flex items-center gap-2" },
|
|
22636
|
-
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 [serverSidePrint]=\"serverSidePrint()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (printRequested)=\"printRequested.emit()\"\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 <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"
|
|
22762
|
+
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 [serverSidePrint]=\"serverSidePrint()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (printRequested)=\"printRequested.emit()\"\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"
|
|
22637
22763
|
}]
|
|
22638
22764
|
}],
|
|
22639
22765
|
propDecorators: {
|
|
22766
|
+
defaultHiddenColumns: [{
|
|
22767
|
+
type: i0.Input,
|
|
22768
|
+
args: [{
|
|
22769
|
+
isSignal: true,
|
|
22770
|
+
alias: "defaultHiddenColumns",
|
|
22771
|
+
required: false
|
|
22772
|
+
}]
|
|
22773
|
+
}],
|
|
22640
22774
|
hiddenColumns: [{
|
|
22641
22775
|
type: i0.Input,
|
|
22642
22776
|
args: [{
|
|
@@ -23769,7 +23903,7 @@ var YuwsListToolbarFiltersComponent = class YuwsListToolbarFiltersComponent {
|
|
|
23769
23903
|
isSignal: true
|
|
23770
23904
|
}],
|
|
23771
23905
|
ngImport: i0,
|
|
23772
|
-
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [searchPlaceholder]=\"labels().search\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button
|
|
23906
|
+
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [searchPlaceholder]=\"labels().search\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n (clicked)=\"onClearAll()\"\n >\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else if (dates()[group.id]; as date) {\n <yuw-datepicker\n #picker\n triggerVariant=\"secondary\"\n class=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [mode]=\"date.mode\"\n [value]=\"date.value\"\n [presetId]=\"date.presetId\"\n [presets]=\"date.presets\"\n [presetsLabel]=\"labels().datePresets\"\n [formatDate]=\"labels().formatDate\"\n (valueChange)=\"onDateChange(group.id, $event, picker.presetId())\"\n >\n <ng-template yuwDatepickerTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-datepicker>\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [searchPlaceholder]=\"group.label\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n",
|
|
23773
23907
|
dependencies: [
|
|
23774
23908
|
{
|
|
23775
23909
|
kind: "component",
|
|
@@ -23933,7 +24067,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
23933
24067
|
lucideX
|
|
23934
24068
|
})],
|
|
23935
24069
|
host: { class: "flex min-w-0 max-w-full flex-1 max-md:contents" },
|
|
23936
|
-
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [searchPlaceholder]=\"labels().search\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button
|
|
24070
|
+
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [idleColor]=\"idleColor()\"\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [searchPlaceholder]=\"labels().search\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter class=\"border-t p-1\">\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n (clicked)=\"onClearAll()\"\n >\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full [scrollbar-width:none] [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else if (dates()[group.id]; as date) {\n <yuw-datepicker\n #picker\n triggerVariant=\"secondary\"\n class=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [mode]=\"date.mode\"\n [value]=\"date.value\"\n [presetId]=\"date.presetId\"\n [presets]=\"date.presets\"\n [presetsLabel]=\"labels().datePresets\"\n [formatDate]=\"labels().formatDate\"\n (valueChange)=\"onDateChange(group.id, $event, picker.presetId())\"\n >\n <ng-template yuwDatepickerTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-datepicker>\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [searchPlaceholder]=\"group.label\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n"
|
|
23937
24071
|
}]
|
|
23938
24072
|
}],
|
|
23939
24073
|
propDecorators: {
|
|
@@ -24020,6 +24154,7 @@ function isDateFilterMode(mode) {
|
|
|
24020
24154
|
var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
24021
24155
|
constructor() {
|
|
24022
24156
|
this.filterContents = contentChildren(YuwsFilterContentDirective, ...ngDevMode ? [{ debugName: "filterContents" }] : /* istanbul ignore next */ []);
|
|
24157
|
+
this.defaultHiddenColumns = input([], ...ngDevMode ? [{ debugName: "defaultHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
24023
24158
|
this.filterGroups = input(...ngDevMode ? [void 0, { debugName: "filterGroups" }] : /* istanbul ignore next */ []);
|
|
24024
24159
|
this.filtersDisabled = input(false, {
|
|
24025
24160
|
...ngDevMode ? { debugName: "filtersDisabled" } : /* istanbul ignore next */ {},
|
|
@@ -24071,6 +24206,13 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24071
24206
|
isStandalone: true,
|
|
24072
24207
|
selector: "yuws-list-toolbar",
|
|
24073
24208
|
inputs: {
|
|
24209
|
+
defaultHiddenColumns: {
|
|
24210
|
+
classPropertyName: "defaultHiddenColumns",
|
|
24211
|
+
publicName: "defaultHiddenColumns",
|
|
24212
|
+
isSignal: true,
|
|
24213
|
+
isRequired: false,
|
|
24214
|
+
transformFunction: null
|
|
24215
|
+
},
|
|
24074
24216
|
filterGroups: {
|
|
24075
24217
|
classPropertyName: "filterGroups",
|
|
24076
24218
|
publicName: "filterGroups",
|
|
@@ -24203,12 +24345,13 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24203
24345
|
isSignal: true
|
|
24204
24346
|
}],
|
|
24205
24347
|
ngImport: i0,
|
|
24206
|
-
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 [hideableColumns]=\"hideableColumns()\"\n [(hiddenColumns)]=\"hiddenColumns\"\n [isMobile]=\"isMobile()\"\n [labels]=\"labels()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [serverSidePrint]=\"serverSidePrint()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (printRequested)=\"printRequested.emit()\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n",
|
|
24348
|
+
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 [serverSidePrint]=\"serverSidePrint()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (printRequested)=\"printRequested.emit()\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n",
|
|
24207
24349
|
dependencies: [{
|
|
24208
24350
|
kind: "component",
|
|
24209
24351
|
type: YuwsListToolbarActionsComponent,
|
|
24210
24352
|
selector: "yuws-list-toolbar-actions",
|
|
24211
24353
|
inputs: [
|
|
24354
|
+
"defaultHiddenColumns",
|
|
24212
24355
|
"hiddenColumns",
|
|
24213
24356
|
"hideableColumns",
|
|
24214
24357
|
"isMobile",
|
|
@@ -24266,7 +24409,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24266
24409
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24267
24410
|
imports: [YuwsListToolbarActionsComponent, YuwsListToolbarFiltersComponent],
|
|
24268
24411
|
host: { class: "flex items-center gap-3 max-md:flex-wrap max-md:gap-2" },
|
|
24269
|
-
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 [hideableColumns]=\"hideableColumns()\"\n [(hiddenColumns)]=\"hiddenColumns\"\n [isMobile]=\"isMobile()\"\n [labels]=\"labels()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [serverSidePrint]=\"serverSidePrint()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (printRequested)=\"printRequested.emit()\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n"
|
|
24412
|
+
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 [serverSidePrint]=\"serverSidePrint()\"\n [shareSource]=\"shareSource()\"\n [shareTitle]=\"shareTitle()\"\n [showExport]=\"showExport()\"\n [(viewMode)]=\"viewMode\"\n [viewModeIcons]=\"viewModeIcons()\"\n [(search)]=\"search\"\n (exported)=\"exported.emit($event)\"\n (printRequested)=\"printRequested.emit()\"\n (searched)=\"searched.emit($event)\"\n />\n\n <ng-content />\n</div>\n"
|
|
24270
24413
|
}]
|
|
24271
24414
|
}],
|
|
24272
24415
|
propDecorators: {
|
|
@@ -24274,6 +24417,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24274
24417
|
type: i0.ContentChildren,
|
|
24275
24418
|
args: [i0.forwardRef(() => YuwsFilterContentDirective), { isSignal: true }]
|
|
24276
24419
|
}],
|
|
24420
|
+
defaultHiddenColumns: [{
|
|
24421
|
+
type: i0.Input,
|
|
24422
|
+
args: [{
|
|
24423
|
+
isSignal: true,
|
|
24424
|
+
alias: "defaultHiddenColumns",
|
|
24425
|
+
required: false
|
|
24426
|
+
}]
|
|
24427
|
+
}],
|
|
24277
24428
|
filterGroups: [{
|
|
24278
24429
|
type: i0.Input,
|
|
24279
24430
|
args: [{
|