yukit-web 0.10.7 → 0.10.8
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 +202 -66
- 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 +37 -10
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -15,7 +15,7 @@ import * as i1$31 from "@spartan-ng/brain/tooltip";
|
|
|
15
15
|
import { BrnTooltip, provideBrnTooltipDefaultOptions } from "@spartan-ng/brain/tooltip";
|
|
16
16
|
import { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, tooltipPositionVariants } from "yukit-web/helm/tooltip";
|
|
17
17
|
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";
|
|
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, lucideUndo2, lucideUpload, lucideX } from "@ng-icons/lucide";
|
|
19
19
|
import * as i1$30 from "yukit-web/helm/badge";
|
|
20
20
|
import { HlmBadge } from "yukit-web/helm/badge";
|
|
21
21
|
import * as i1$29 from "yukit-web/helm/breadcrumb";
|
|
@@ -12658,9 +12658,55 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12658
12658
|
}]
|
|
12659
12659
|
}
|
|
12660
12660
|
});
|
|
12661
|
+
const TOAST = "[data-sonner-toast]";
|
|
12662
|
+
var YuwNoToastSwipeDirective = class YuwNoToastSwipeDirective {
|
|
12663
|
+
constructor() {
|
|
12664
|
+
const element = inject(ElementRef).nativeElement;
|
|
12665
|
+
const lifetime = new AbortController();
|
|
12666
|
+
inject(DestroyRef).onDestroy(() => lifetime.abort());
|
|
12667
|
+
inject(NgZone).runOutsideAngular(() => element.addEventListener("pointermove", stopOnToast, {
|
|
12668
|
+
capture: true,
|
|
12669
|
+
signal: lifetime.signal
|
|
12670
|
+
}));
|
|
12671
|
+
}
|
|
12672
|
+
static {
|
|
12673
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
12674
|
+
minVersion: "12.0.0",
|
|
12675
|
+
version: "22.2.4",
|
|
12676
|
+
ngImport: i0,
|
|
12677
|
+
type: YuwNoToastSwipeDirective,
|
|
12678
|
+
deps: [],
|
|
12679
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
12680
|
+
});
|
|
12681
|
+
}
|
|
12682
|
+
static {
|
|
12683
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
12684
|
+
minVersion: "14.0.0",
|
|
12685
|
+
version: "22.2.4",
|
|
12686
|
+
type: YuwNoToastSwipeDirective,
|
|
12687
|
+
isStandalone: true,
|
|
12688
|
+
selector: "[yuwNoToastSwipe]",
|
|
12689
|
+
ngImport: i0
|
|
12690
|
+
});
|
|
12691
|
+
}
|
|
12692
|
+
};
|
|
12693
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
12694
|
+
minVersion: "12.0.0",
|
|
12695
|
+
version: "22.2.4",
|
|
12696
|
+
ngImport: i0,
|
|
12697
|
+
type: YuwNoToastSwipeDirective,
|
|
12698
|
+
decorators: [{
|
|
12699
|
+
type: Directive,
|
|
12700
|
+
args: [{ selector: "[yuwNoToastSwipe]" }]
|
|
12701
|
+
}],
|
|
12702
|
+
ctorParameters: () => []
|
|
12703
|
+
});
|
|
12704
|
+
function stopOnToast(event) {
|
|
12705
|
+
if (event.target instanceof Element && event.target.closest(TOAST)) event.stopPropagation();
|
|
12706
|
+
}
|
|
12661
12707
|
const TOAST_CLASS = "items-start! [&_[data-icon]]:mt-0.5";
|
|
12662
|
-
const CLOSABLE_TOAST_CLASS = "pe-
|
|
12663
|
-
const CLOSE_BUTTON_CLASS = "top-
|
|
12708
|
+
const CLOSABLE_TOAST_CLASS = "pe-14! min-h-16!";
|
|
12709
|
+
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
12710
|
const TOAST_STYLE = {
|
|
12665
12711
|
"--normal-bg": "var(--toast)",
|
|
12666
12712
|
"--normal-text": "var(--toast-foreground)",
|
|
@@ -12782,7 +12828,7 @@ var YuwToasterComponent = class YuwToasterComponent {
|
|
|
12782
12828
|
},
|
|
12783
12829
|
host: { classAttribute: "contents" },
|
|
12784
12830
|
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",
|
|
12831
|
+
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
12832
|
dependencies: [{
|
|
12787
12833
|
kind: "component",
|
|
12788
12834
|
type: HlmToaster,
|
|
@@ -12802,6 +12848,10 @@ var YuwToasterComponent = class YuwToasterComponent {
|
|
|
12802
12848
|
"class",
|
|
12803
12849
|
"style"
|
|
12804
12850
|
]
|
|
12851
|
+
}, {
|
|
12852
|
+
kind: "directive",
|
|
12853
|
+
type: YuwNoToastSwipeDirective,
|
|
12854
|
+
selector: "[yuwNoToastSwipe]"
|
|
12805
12855
|
}],
|
|
12806
12856
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
12807
12857
|
});
|
|
@@ -12816,10 +12866,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12816
12866
|
type: Component,
|
|
12817
12867
|
args: [{
|
|
12818
12868
|
selector: "yuw-toaster",
|
|
12819
|
-
imports: [HlmToaster],
|
|
12869
|
+
imports: [HlmToaster, YuwNoToastSwipeDirective],
|
|
12820
12870
|
host: { class: "contents" },
|
|
12821
12871
|
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"
|
|
12872
|
+
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
12873
|
}]
|
|
12824
12874
|
}],
|
|
12825
12875
|
propDecorators: {
|
|
@@ -12924,6 +12974,7 @@ var YuwCountdown = class {
|
|
|
12924
12974
|
}
|
|
12925
12975
|
};
|
|
12926
12976
|
const TOASTER = "[data-sonner-toaster]";
|
|
12977
|
+
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
12978
|
var YuwCountdownToastComponent = class YuwCountdownToastComponent {
|
|
12928
12979
|
constructor() {
|
|
12929
12980
|
this._destroyRef = inject(DestroyRef);
|
|
@@ -12935,6 +12986,8 @@ var YuwCountdownToastComponent = class YuwCountdownToastComponent {
|
|
|
12935
12986
|
this.message = input.required(...ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []);
|
|
12936
12987
|
this.progressLabel = input.required(...ngDevMode ? [{ debugName: "progressLabel" }] : /* istanbul ignore next */ []);
|
|
12937
12988
|
this.seconds = input.required(...ngDevMode ? [{ debugName: "seconds" }] : /* istanbul ignore next */ []);
|
|
12989
|
+
this.undoButtonClass = UNDO_BUTTON_CLASS;
|
|
12990
|
+
this.undoIcon = lucideUndo2;
|
|
12938
12991
|
this._progress = computed(() => this.countdown().remainingMs() / (this.seconds() * 1e3) * 100, ...ngDevMode ? [{ debugName: "_progress" }] : /* istanbul ignore next */ []);
|
|
12939
12992
|
this._text = computed(() => this.message()(Math.ceil(this.countdown().remainingMs() / 1e3)), ...ngDevMode ? [{ debugName: "_text" }] : /* istanbul ignore next */ []);
|
|
12940
12993
|
afterNextRender(() => this._pauseOnHover());
|
|
@@ -13019,38 +13072,58 @@ var YuwCountdownToastComponent = class YuwCountdownToastComponent {
|
|
|
13019
13072
|
}
|
|
13020
13073
|
},
|
|
13021
13074
|
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
|
-
|
|
13075
|
+
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",
|
|
13076
|
+
dependencies: [
|
|
13077
|
+
{
|
|
13078
|
+
kind: "component",
|
|
13079
|
+
type: NgIcon,
|
|
13080
|
+
selector: "ng-icon",
|
|
13081
|
+
inputs: [
|
|
13082
|
+
"name",
|
|
13083
|
+
"svg",
|
|
13084
|
+
"size",
|
|
13085
|
+
"strokeWidth",
|
|
13086
|
+
"color"
|
|
13087
|
+
]
|
|
13088
|
+
},
|
|
13089
|
+
{
|
|
13090
|
+
kind: "component",
|
|
13091
|
+
type: YuwButtonComponent,
|
|
13092
|
+
selector: "yuw-button",
|
|
13093
|
+
inputs: [
|
|
13094
|
+
"animationDisabled",
|
|
13095
|
+
"ariaLabel",
|
|
13096
|
+
"color",
|
|
13097
|
+
"disabled",
|
|
13098
|
+
"href",
|
|
13099
|
+
"size",
|
|
13100
|
+
"target",
|
|
13101
|
+
"transparent",
|
|
13102
|
+
"type",
|
|
13103
|
+
"class",
|
|
13104
|
+
"variant",
|
|
13105
|
+
"yuwDropdownMenuAlign",
|
|
13106
|
+
"yuwDropdownMenuTrigger"
|
|
13107
|
+
],
|
|
13108
|
+
outputs: ["clicked"]
|
|
13109
|
+
},
|
|
13110
|
+
{
|
|
13111
|
+
kind: "component",
|
|
13112
|
+
type: YuwProgressComponent,
|
|
13113
|
+
selector: "yuw-progress",
|
|
13114
|
+
inputs: [
|
|
13115
|
+
"color",
|
|
13116
|
+
"label",
|
|
13117
|
+
"class",
|
|
13118
|
+
"value"
|
|
13119
|
+
]
|
|
13120
|
+
},
|
|
13121
|
+
{
|
|
13122
|
+
kind: "directive",
|
|
13123
|
+
type: YuwTooltipDirective,
|
|
13124
|
+
selector: "[yuwTooltip]"
|
|
13125
|
+
}
|
|
13126
|
+
],
|
|
13054
13127
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
13055
13128
|
});
|
|
13056
13129
|
}
|
|
@@ -13064,9 +13137,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
13064
13137
|
type: Component,
|
|
13065
13138
|
args: [{
|
|
13066
13139
|
selector: "yuw-countdown-toast",
|
|
13067
|
-
imports: [
|
|
13140
|
+
imports: [
|
|
13141
|
+
NgIcon,
|
|
13142
|
+
YuwButtonComponent,
|
|
13143
|
+
YuwProgressComponent,
|
|
13144
|
+
YuwTooltipDirective
|
|
13145
|
+
],
|
|
13068
13146
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
13069
|
-
template: "<div class=\"flex w-full flex-col gap-3\">\n <div class=\"flex items-center gap-
|
|
13147
|
+
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
13148
|
}]
|
|
13071
13149
|
}],
|
|
13072
13150
|
ctorParameters: () => [],
|
|
@@ -13139,16 +13217,19 @@ const TOAST_TYPE_BY_COLOR = {
|
|
|
13139
13217
|
function yuwCountdownToast(options) {
|
|
13140
13218
|
const toastId = `yuw-countdown-toast-${++lastToastId}`;
|
|
13141
13219
|
let settled = false;
|
|
13142
|
-
const settle = (then) => () => {
|
|
13220
|
+
const settle = (then, closeToast) => () => {
|
|
13143
13221
|
if (settled) return;
|
|
13144
13222
|
settled = true;
|
|
13145
13223
|
countdown.stop();
|
|
13146
|
-
untracked(() =>
|
|
13224
|
+
if (closeToast) untracked(() => show(YuwCountdownToastComponent, {
|
|
13225
|
+
id: toastId,
|
|
13226
|
+
delete: true
|
|
13227
|
+
}));
|
|
13147
13228
|
then?.();
|
|
13148
13229
|
};
|
|
13149
13230
|
const ref = {
|
|
13150
|
-
cancel: settle(options.onCancel),
|
|
13151
|
-
complete: settle(options.onComplete)
|
|
13231
|
+
cancel: settle(options.onCancel, true),
|
|
13232
|
+
complete: settle(options.onComplete, true)
|
|
13152
13233
|
};
|
|
13153
13234
|
const countdown = new YuwCountdown(options.seconds * 1e3, () => ref.complete());
|
|
13154
13235
|
const color = options.color ?? "destructive";
|
|
@@ -13166,7 +13247,7 @@ function yuwCountdownToast(options) {
|
|
|
13166
13247
|
progressLabel: options.progressLabel,
|
|
13167
13248
|
seconds: options.seconds
|
|
13168
13249
|
},
|
|
13169
|
-
onDismiss:
|
|
13250
|
+
onDismiss: settle(options.onComplete, false)
|
|
13170
13251
|
}));
|
|
13171
13252
|
return ref;
|
|
13172
13253
|
}
|
|
@@ -14339,15 +14420,25 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14339
14420
|
}]
|
|
14340
14421
|
}
|
|
14341
14422
|
});
|
|
14342
|
-
const
|
|
14343
|
-
variants: {
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14423
|
+
const yuwTabsListVariants = cva("", {
|
|
14424
|
+
variants: {
|
|
14425
|
+
variant: {
|
|
14426
|
+
default: "bg-(--gray-4)",
|
|
14427
|
+
line: ""
|
|
14428
|
+
},
|
|
14429
|
+
size: {
|
|
14430
|
+
default: "group-data-horizontal/tabs:h-10 [&_[data-slot=tabs-trigger]]:px-2.5",
|
|
14431
|
+
xs: "group-data-horizontal/tabs:h-7 [&_[data-slot=tabs-trigger]]:px-1.5",
|
|
14432
|
+
sm: "group-data-horizontal/tabs:h-9 [&_[data-slot=tabs-trigger]]:px-2",
|
|
14433
|
+
lg: "group-data-horizontal/tabs:h-11 [&_[data-slot=tabs-trigger]]:px-3"
|
|
14434
|
+
}
|
|
14435
|
+
},
|
|
14436
|
+
defaultVariants: {
|
|
14437
|
+
size: "default",
|
|
14438
|
+
variant: "default"
|
|
14439
|
+
}
|
|
14350
14440
|
});
|
|
14441
|
+
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
14442
|
var YuwTabPanelDirective = class YuwTabPanelDirective {
|
|
14352
14443
|
constructor() {
|
|
14353
14444
|
this.templateRef = inject(TemplateRef);
|
|
@@ -14470,7 +14561,11 @@ var YuwTabsComponent = class YuwTabsComponent {
|
|
|
14470
14561
|
alias: "class"
|
|
14471
14562
|
});
|
|
14472
14563
|
this.variant = input("default", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
14473
|
-
this.
|
|
14564
|
+
this.triggerClass = YUW_TABS_TRIGGER_CLASS;
|
|
14565
|
+
this._listClass = computed(() => cn(yuwTabsListVariants({
|
|
14566
|
+
size: this.size(),
|
|
14567
|
+
variant: this.variant()
|
|
14568
|
+
}), this.userClass()), ...ngDevMode ? [{ debugName: "_listClass" }] : /* istanbul ignore next */ []);
|
|
14474
14569
|
this._resolved = computed(() => {
|
|
14475
14570
|
const templates = new Map(this._contents().map((content) => [content.entryId(), content.templateRef]));
|
|
14476
14571
|
return this.tabs().map((entry) => {
|
|
@@ -14564,7 +14659,7 @@ var YuwTabsComponent = class YuwTabsComponent {
|
|
|
14564
14659
|
isSignal: true
|
|
14565
14660
|
}],
|
|
14566
14661
|
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",
|
|
14662
|
+
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
14663
|
dependencies: [
|
|
14569
14664
|
{
|
|
14570
14665
|
kind: "directive",
|
|
@@ -14622,7 +14717,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
14622
14717
|
imports: [NgTemplateOutlet, ...HlmTabsImports],
|
|
14623
14718
|
host: { class: "contents" },
|
|
14624
14719
|
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"
|
|
14720
|
+
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
14721
|
}]
|
|
14627
14722
|
}],
|
|
14628
14723
|
propDecorators: {
|
|
@@ -18434,7 +18529,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18434
18529
|
}]
|
|
18435
18530
|
}
|
|
18436
18531
|
});
|
|
18437
|
-
const DESTRUCTIVE_CLASS = "text-destructive hover:bg-destructive/10 hover:text-destructive";
|
|
18438
18532
|
var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
18439
18533
|
constructor() {
|
|
18440
18534
|
this.action = input.required(...ngDevMode ? [{ debugName: "action" }] : /* istanbul ignore next */ []);
|
|
@@ -18442,7 +18536,8 @@ var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
|
18442
18536
|
this.icon = input.required(...ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []);
|
|
18443
18537
|
this.label = input.required(...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
18444
18538
|
this.tooltip = input("", ...ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []);
|
|
18445
|
-
this.
|
|
18539
|
+
this.color = computed(() => this.destructive() ? "destructive" : "neutral", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
18540
|
+
this.variant = computed(() => this.destructive() ? "secondary" : "ghost", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
18446
18541
|
}
|
|
18447
18542
|
run() {
|
|
18448
18543
|
this.action()();
|
|
@@ -18506,7 +18601,7 @@ var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
|
18506
18601
|
classAttribute: "yuw-reveal"
|
|
18507
18602
|
},
|
|
18508
18603
|
ngImport: i0,
|
|
18509
|
-
template: "<yuw-button\n
|
|
18604
|
+
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
18605
|
dependencies: [
|
|
18511
18606
|
{
|
|
18512
18607
|
kind: "component",
|
|
@@ -18570,7 +18665,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18570
18665
|
class: "yuw-reveal",
|
|
18571
18666
|
"(click)": "$event.stopPropagation()"
|
|
18572
18667
|
},
|
|
18573
|
-
template: "<yuw-button\n
|
|
18668
|
+
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
18669
|
}]
|
|
18575
18670
|
}],
|
|
18576
18671
|
propDecorators: {
|
|
@@ -22266,6 +22361,7 @@ const DEFAULT_VIEW_MODE_ICONS = {
|
|
|
22266
22361
|
};
|
|
22267
22362
|
var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
22268
22363
|
constructor() {
|
|
22364
|
+
this.defaultHiddenColumns = input([], ...ngDevMode ? [{ debugName: "defaultHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22269
22365
|
this.hiddenColumns = model([], ...ngDevMode ? [{ debugName: "hiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22270
22366
|
this.hideableColumns = input(...ngDevMode ? [void 0, { debugName: "hideableColumns" }] : /* istanbul ignore next */ []);
|
|
22271
22367
|
this.isMobile = input.required(...ngDevMode ? [{ debugName: "isMobile" }] : /* istanbul ignore next */ []);
|
|
@@ -22297,6 +22393,11 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22297
22393
|
} : void 0;
|
|
22298
22394
|
}, ...ngDevMode ? [{ debugName: "share" }] : /* istanbul ignore next */ []);
|
|
22299
22395
|
this._searchIsOnlyAction = computed(() => !this.showExport() && !this.share() && !this.hideableColumns(), ...ngDevMode ? [{ debugName: "_searchIsOnlyAction" }] : /* istanbul ignore next */ []);
|
|
22396
|
+
this.columnsAtDefault = computed(() => {
|
|
22397
|
+
const hidden = new Set(this.hiddenColumns());
|
|
22398
|
+
const defaults = new Set(this.defaultHiddenColumns());
|
|
22399
|
+
return hidden.size === defaults.size && [...defaults].every((id) => hidden.has(id));
|
|
22400
|
+
}, ...ngDevMode ? [{ debugName: "columnsAtDefault" }] : /* istanbul ignore next */ []);
|
|
22300
22401
|
this.hasHiddenColumns = computed(() => this.hiddenColumns().length > 0, ...ngDevMode ? [{ debugName: "hasHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22301
22402
|
this.searchPopoverAlign = computed(() => this._searchIsOnlyAction() ? "end" : "center", ...ngDevMode ? [{ debugName: "searchPopoverAlign" }] : /* istanbul ignore next */ []);
|
|
22302
22403
|
this.searchPopoverOffsetX = computed(() => this._searchIsOnlyAction() ? 0 : -16, ...ngDevMode ? [{ debugName: "searchPopoverOffsetX" }] : /* istanbul ignore next */ []);
|
|
@@ -22321,6 +22422,9 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22321
22422
|
return (this.hideableColumns() ?? []).map(({ value }) => value).filter((value) => !hidden.has(value));
|
|
22322
22423
|
}, ...ngDevMode ? [{ debugName: "visibleColumns" }] : /* istanbul ignore next */ []);
|
|
22323
22424
|
}
|
|
22425
|
+
onColumnsReset() {
|
|
22426
|
+
this.hiddenColumns.set([...this.defaultHiddenColumns()]);
|
|
22427
|
+
}
|
|
22324
22428
|
onViewModeClicked({ id }) {
|
|
22325
22429
|
this.viewMode.set(id);
|
|
22326
22430
|
}
|
|
@@ -22346,6 +22450,13 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22346
22450
|
isStandalone: true,
|
|
22347
22451
|
selector: "yuws-list-toolbar-actions",
|
|
22348
22452
|
inputs: {
|
|
22453
|
+
defaultHiddenColumns: {
|
|
22454
|
+
classPropertyName: "defaultHiddenColumns",
|
|
22455
|
+
publicName: "defaultHiddenColumns",
|
|
22456
|
+
isSignal: true,
|
|
22457
|
+
isRequired: false,
|
|
22458
|
+
transformFunction: null
|
|
22459
|
+
},
|
|
22349
22460
|
hiddenColumns: {
|
|
22350
22461
|
classPropertyName: "hiddenColumns",
|
|
22351
22462
|
publicName: "hiddenColumns",
|
|
@@ -22448,7 +22559,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22448
22559
|
lucideSettings2
|
|
22449
22560
|
})],
|
|
22450
22561
|
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",
|
|
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 [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
22563
|
dependencies: [
|
|
22453
22564
|
{
|
|
22454
22565
|
kind: "component",
|
|
@@ -22633,10 +22744,18 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22633
22744
|
lucideSettings2
|
|
22634
22745
|
})],
|
|
22635
22746
|
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"
|
|
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 [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
22748
|
}]
|
|
22638
22749
|
}],
|
|
22639
22750
|
propDecorators: {
|
|
22751
|
+
defaultHiddenColumns: [{
|
|
22752
|
+
type: i0.Input,
|
|
22753
|
+
args: [{
|
|
22754
|
+
isSignal: true,
|
|
22755
|
+
alias: "defaultHiddenColumns",
|
|
22756
|
+
required: false
|
|
22757
|
+
}]
|
|
22758
|
+
}],
|
|
22640
22759
|
hiddenColumns: [{
|
|
22641
22760
|
type: i0.Input,
|
|
22642
22761
|
args: [{
|
|
@@ -23769,7 +23888,7 @@ var YuwsListToolbarFiltersComponent = class YuwsListToolbarFiltersComponent {
|
|
|
23769
23888
|
isSignal: true
|
|
23770
23889
|
}],
|
|
23771
23890
|
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
|
|
23891
|
+
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
23892
|
dependencies: [
|
|
23774
23893
|
{
|
|
23775
23894
|
kind: "component",
|
|
@@ -23933,7 +24052,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
23933
24052
|
lucideX
|
|
23934
24053
|
})],
|
|
23935
24054
|
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
|
|
24055
|
+
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
24056
|
}]
|
|
23938
24057
|
}],
|
|
23939
24058
|
propDecorators: {
|
|
@@ -24020,6 +24139,7 @@ function isDateFilterMode(mode) {
|
|
|
24020
24139
|
var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
24021
24140
|
constructor() {
|
|
24022
24141
|
this.filterContents = contentChildren(YuwsFilterContentDirective, ...ngDevMode ? [{ debugName: "filterContents" }] : /* istanbul ignore next */ []);
|
|
24142
|
+
this.defaultHiddenColumns = input([], ...ngDevMode ? [{ debugName: "defaultHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
24023
24143
|
this.filterGroups = input(...ngDevMode ? [void 0, { debugName: "filterGroups" }] : /* istanbul ignore next */ []);
|
|
24024
24144
|
this.filtersDisabled = input(false, {
|
|
24025
24145
|
...ngDevMode ? { debugName: "filtersDisabled" } : /* istanbul ignore next */ {},
|
|
@@ -24071,6 +24191,13 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24071
24191
|
isStandalone: true,
|
|
24072
24192
|
selector: "yuws-list-toolbar",
|
|
24073
24193
|
inputs: {
|
|
24194
|
+
defaultHiddenColumns: {
|
|
24195
|
+
classPropertyName: "defaultHiddenColumns",
|
|
24196
|
+
publicName: "defaultHiddenColumns",
|
|
24197
|
+
isSignal: true,
|
|
24198
|
+
isRequired: false,
|
|
24199
|
+
transformFunction: null
|
|
24200
|
+
},
|
|
24074
24201
|
filterGroups: {
|
|
24075
24202
|
classPropertyName: "filterGroups",
|
|
24076
24203
|
publicName: "filterGroups",
|
|
@@ -24203,12 +24330,13 @@ var YuwsListToolbarComponent = class YuwsListToolbarComponent {
|
|
|
24203
24330
|
isSignal: true
|
|
24204
24331
|
}],
|
|
24205
24332
|
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",
|
|
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 [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
24334
|
dependencies: [{
|
|
24208
24335
|
kind: "component",
|
|
24209
24336
|
type: YuwsListToolbarActionsComponent,
|
|
24210
24337
|
selector: "yuws-list-toolbar-actions",
|
|
24211
24338
|
inputs: [
|
|
24339
|
+
"defaultHiddenColumns",
|
|
24212
24340
|
"hiddenColumns",
|
|
24213
24341
|
"hideableColumns",
|
|
24214
24342
|
"isMobile",
|
|
@@ -24266,7 +24394,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24266
24394
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
24267
24395
|
imports: [YuwsListToolbarActionsComponent, YuwsListToolbarFiltersComponent],
|
|
24268
24396
|
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"
|
|
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 [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
24398
|
}]
|
|
24271
24399
|
}],
|
|
24272
24400
|
propDecorators: {
|
|
@@ -24274,6 +24402,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24274
24402
|
type: i0.ContentChildren,
|
|
24275
24403
|
args: [i0.forwardRef(() => YuwsFilterContentDirective), { isSignal: true }]
|
|
24276
24404
|
}],
|
|
24405
|
+
defaultHiddenColumns: [{
|
|
24406
|
+
type: i0.Input,
|
|
24407
|
+
args: [{
|
|
24408
|
+
isSignal: true,
|
|
24409
|
+
alias: "defaultHiddenColumns",
|
|
24410
|
+
required: false
|
|
24411
|
+
}]
|
|
24412
|
+
}],
|
|
24277
24413
|
filterGroups: [{
|
|
24278
24414
|
type: i0.Input,
|
|
24279
24415
|
args: [{
|