yukit-web 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/yukit-web.mjs +213 -64
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/spartan-overwrites/dialog.css +35 -0
- package/src/lib/theme/spartan-overwrites/overlay.css +18 -0
- package/src/lib/theme/theme.css +2 -0
- package/types/yukit-web.d.ts +47 -8
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -4916,6 +4916,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4916
4916
|
args: [{ selector: "[yuwSheetHeader]" }]
|
|
4917
4917
|
}]
|
|
4918
4918
|
});
|
|
4919
|
+
const yuwSheetBottomClass = `
|
|
4920
|
+
data-[side=bottom]:inset-x-1
|
|
4921
|
+
lg:data-[side=bottom]:inset-x-2
|
|
4922
|
+
data-[side=bottom]:bottom-1
|
|
4923
|
+
lg:data-[side=bottom]:bottom-2
|
|
4924
|
+
data-[side=bottom]:rounded-4xl
|
|
4925
|
+
data-[side=bottom]:overflow-hidden
|
|
4926
|
+
`;
|
|
4919
4927
|
const yuwLayoutLeftInsetClass = `
|
|
4920
4928
|
data-[side=left]:inset-y-1
|
|
4921
4929
|
lg:data-[side=left]:inset-y-2
|
|
@@ -4940,13 +4948,6 @@ const YUW_LAYOUT_BODY_VARS = {
|
|
|
4940
4948
|
bottom: "--yuw-layout-body-bottom",
|
|
4941
4949
|
left: "--yuw-layout-body-left"
|
|
4942
4950
|
};
|
|
4943
|
-
const yuwLayoutBackdropClass = `
|
|
4944
|
-
top-[var(--yuw-layout-body-top,0px)]!
|
|
4945
|
-
right-[var(--yuw-layout-body-right,0px)]!
|
|
4946
|
-
bottom-[var(--yuw-layout-body-bottom,0px)]!
|
|
4947
|
-
left-[var(--yuw-layout-body-left,0px)]!
|
|
4948
|
-
rounded-4xl
|
|
4949
|
-
`;
|
|
4950
4951
|
const YUW_SHEET_LAYOUT_INSET_CLASS = {
|
|
4951
4952
|
left: yuwLayoutLeftInsetClass,
|
|
4952
4953
|
right: yuwLayoutRightInsetClass
|
|
@@ -4989,17 +4990,16 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
4989
4990
|
this.triggerSize = input("default", ...ngDevMode ? [{ debugName: "triggerSize" }] : /* istanbul ignore next */ []);
|
|
4990
4991
|
this.triggerVariant = input("outline", ...ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []);
|
|
4991
4992
|
this._bodyClass = computed(() => cn("flex-1 overflow-y-auto px-4 scroll-fade-y [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", this.bodyClass()), ...ngDevMode ? [{ debugName: "_bodyClass" }] : /* istanbul ignore next */ []);
|
|
4992
|
-
this._overlayClass = computed(() => this.layoutInset() ? cn(yuwLayoutBackdropClass, this.overlayClass()) : this.overlayClass(), ...ngDevMode ? [{ debugName: "_overlayClass" }] : /* istanbul ignore next */ []);
|
|
4993
4993
|
this._panelClass = computed(() => {
|
|
4994
4994
|
const inset = this.layoutInset();
|
|
4995
|
-
return cn(inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
4995
|
+
return cn(yuwSheetBottomClass, inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
4996
4996
|
}, ...ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []);
|
|
4997
4997
|
this._sheetState = computed(() => this.open() ? "open" : "closed", ...ngDevMode ? [{ debugName: "_sheetState" }] : /* istanbul ignore next */ []);
|
|
4998
4998
|
const root = inject(DOCUMENT$1).documentElement;
|
|
4999
4999
|
inject(DestroyRef).onDestroy(() => root.classList.remove(YUW_SHEET_OPEN_CLASS));
|
|
5000
5000
|
effect(() => root.classList.toggle(YUW_SHEET_OPEN_CLASS, this.open()));
|
|
5001
5001
|
effect(() => {
|
|
5002
|
-
const overlayClass = this.
|
|
5002
|
+
const overlayClass = this.overlayClass();
|
|
5003
5003
|
if (overlayClass === void 0) return;
|
|
5004
5004
|
this.sheet().setOverlayClass(cn(YUW_SHEET_OVERLAY_BASE_CLASS, overlayClass));
|
|
5005
5005
|
});
|
|
@@ -18520,7 +18520,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18520
18520
|
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
18521
18521
|
this.name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
18522
18522
|
this.shape = input("square", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
18523
|
-
this.size = input("
|
|
18523
|
+
this.size = input("base", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
18524
18524
|
this.avatar = computed(() => AVATAR[this.size()], ...ngDevMode ? [{ debugName: "avatar" }] : /* istanbul ignore next */ []);
|
|
18525
18525
|
this.initials = computed(() => yuwsInitialsOf(this.name()), ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
|
|
18526
18526
|
}
|
|
@@ -18657,6 +18657,97 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18657
18657
|
}]
|
|
18658
18658
|
}
|
|
18659
18659
|
});
|
|
18660
|
+
var YuwsBadgeListCellComponent = class YuwsBadgeListCellComponent {
|
|
18661
|
+
constructor() {
|
|
18662
|
+
this.color = input("neutral", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
18663
|
+
this.items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
18664
|
+
}
|
|
18665
|
+
static {
|
|
18666
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
18667
|
+
minVersion: "12.0.0",
|
|
18668
|
+
version: "22.2.4",
|
|
18669
|
+
ngImport: i0,
|
|
18670
|
+
type: YuwsBadgeListCellComponent,
|
|
18671
|
+
deps: [],
|
|
18672
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
18673
|
+
});
|
|
18674
|
+
}
|
|
18675
|
+
static {
|
|
18676
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
18677
|
+
minVersion: "17.0.0",
|
|
18678
|
+
version: "22.2.4",
|
|
18679
|
+
type: YuwsBadgeListCellComponent,
|
|
18680
|
+
isStandalone: true,
|
|
18681
|
+
selector: "yuws-badge-list-cell",
|
|
18682
|
+
inputs: {
|
|
18683
|
+
color: {
|
|
18684
|
+
classPropertyName: "color",
|
|
18685
|
+
publicName: "color",
|
|
18686
|
+
isSignal: true,
|
|
18687
|
+
isRequired: false,
|
|
18688
|
+
transformFunction: null
|
|
18689
|
+
},
|
|
18690
|
+
items: {
|
|
18691
|
+
classPropertyName: "items",
|
|
18692
|
+
publicName: "items",
|
|
18693
|
+
isSignal: true,
|
|
18694
|
+
isRequired: true,
|
|
18695
|
+
transformFunction: null
|
|
18696
|
+
}
|
|
18697
|
+
},
|
|
18698
|
+
host: { classAttribute: "flex min-w-0 flex-wrap gap-1" },
|
|
18699
|
+
ngImport: i0,
|
|
18700
|
+
template: "@for (item of items(); track $index) {\n <yuw-badge variant=\"outline\" class=\"font-normal\" [color]=\"color()\">{{ item }}</yuw-badge>\n}\n",
|
|
18701
|
+
dependencies: [{
|
|
18702
|
+
kind: "component",
|
|
18703
|
+
type: YuwBadgeComponent,
|
|
18704
|
+
selector: "yuw-badge",
|
|
18705
|
+
inputs: [
|
|
18706
|
+
"color",
|
|
18707
|
+
"dot",
|
|
18708
|
+
"removeLabel",
|
|
18709
|
+
"variant"
|
|
18710
|
+
],
|
|
18711
|
+
outputs: ["removed"]
|
|
18712
|
+
}],
|
|
18713
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
18714
|
+
});
|
|
18715
|
+
}
|
|
18716
|
+
};
|
|
18717
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
18718
|
+
minVersion: "12.0.0",
|
|
18719
|
+
version: "22.2.4",
|
|
18720
|
+
ngImport: i0,
|
|
18721
|
+
type: YuwsBadgeListCellComponent,
|
|
18722
|
+
decorators: [{
|
|
18723
|
+
type: Component,
|
|
18724
|
+
args: [{
|
|
18725
|
+
selector: "yuws-badge-list-cell",
|
|
18726
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18727
|
+
imports: [YuwBadgeComponent],
|
|
18728
|
+
host: { class: "flex min-w-0 flex-wrap gap-1" },
|
|
18729
|
+
template: "@for (item of items(); track $index) {\n <yuw-badge variant=\"outline\" class=\"font-normal\" [color]=\"color()\">{{ item }}</yuw-badge>\n}\n"
|
|
18730
|
+
}]
|
|
18731
|
+
}],
|
|
18732
|
+
propDecorators: {
|
|
18733
|
+
color: [{
|
|
18734
|
+
type: i0.Input,
|
|
18735
|
+
args: [{
|
|
18736
|
+
isSignal: true,
|
|
18737
|
+
alias: "color",
|
|
18738
|
+
required: false
|
|
18739
|
+
}]
|
|
18740
|
+
}],
|
|
18741
|
+
items: [{
|
|
18742
|
+
type: i0.Input,
|
|
18743
|
+
args: [{
|
|
18744
|
+
isSignal: true,
|
|
18745
|
+
alias: "items",
|
|
18746
|
+
required: true
|
|
18747
|
+
}]
|
|
18748
|
+
}]
|
|
18749
|
+
}
|
|
18750
|
+
});
|
|
18660
18751
|
var YuwsClampedTextCellComponent = class YuwsClampedTextCellComponent {
|
|
18661
18752
|
constructor() {
|
|
18662
18753
|
this.text = input.required(...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
@@ -19256,7 +19347,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19256
19347
|
},
|
|
19257
19348
|
providers: [provideIcons({ lucideEllipsis })],
|
|
19258
19349
|
ngImport: i0,
|
|
19259
|
-
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu>\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n",
|
|
19350
|
+
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-44 p-2\">\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator class=\"-mx-2 my-1.5\"></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem class=\"gap-2.5 px-2 py-2\" target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n class=\"gap-2.5 px-2 py-2\"\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n",
|
|
19260
19351
|
dependencies: [
|
|
19261
19352
|
{
|
|
19262
19353
|
kind: "directive",
|
|
@@ -19344,7 +19435,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19344
19435
|
"(click)": "$event.stopPropagation()",
|
|
19345
19436
|
"(keydown)": "$event.stopPropagation()"
|
|
19346
19437
|
},
|
|
19347
|
-
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu>\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n"
|
|
19438
|
+
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-44 p-2\">\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator class=\"-mx-2 my-1.5\"></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem class=\"gap-2.5 px-2 py-2\" target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n class=\"gap-2.5 px-2 py-2\"\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n"
|
|
19348
19439
|
}]
|
|
19349
19440
|
}],
|
|
19350
19441
|
propDecorators: {
|
|
@@ -19369,9 +19460,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19369
19460
|
const HOVER_CLOSE_DELAY_MS = 150;
|
|
19370
19461
|
var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
19371
19462
|
constructor() {
|
|
19463
|
+
this.imageUrls = input([], ...ngDevMode ? [{ debugName: "imageUrls" }] : /* istanbul ignore next */ []);
|
|
19372
19464
|
this.items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
19373
19465
|
this.open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
19374
|
-
this.
|
|
19466
|
+
this.entries = computed(() => this.items().map((label, index) => ({
|
|
19467
|
+
label,
|
|
19468
|
+
imageUrl: this.imageUrls()[index]
|
|
19469
|
+
})), ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
|
|
19470
|
+
this.first = computed(() => this.entries()[0] ?? { label: "" }, ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
|
|
19375
19471
|
this.hiddenCount = computed(() => `+${this.items().length - 1}`, ...ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []);
|
|
19376
19472
|
this.overflows = computed(() => this.items().length > 1, ...ngDevMode ? [{ debugName: "overflows" }] : /* istanbul ignore next */ []);
|
|
19377
19473
|
inject(DestroyRef).onDestroy(() => this._cancelClose());
|
|
@@ -19410,13 +19506,22 @@ var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
|
19410
19506
|
type: YuwsOverflowListCellComponent,
|
|
19411
19507
|
isStandalone: true,
|
|
19412
19508
|
selector: "yuws-overflow-list-cell",
|
|
19413
|
-
inputs: {
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19509
|
+
inputs: {
|
|
19510
|
+
imageUrls: {
|
|
19511
|
+
classPropertyName: "imageUrls",
|
|
19512
|
+
publicName: "imageUrls",
|
|
19513
|
+
isSignal: true,
|
|
19514
|
+
isRequired: false,
|
|
19515
|
+
transformFunction: null
|
|
19516
|
+
},
|
|
19517
|
+
items: {
|
|
19518
|
+
classPropertyName: "items",
|
|
19519
|
+
publicName: "items",
|
|
19520
|
+
isSignal: true,
|
|
19521
|
+
isRequired: true,
|
|
19522
|
+
transformFunction: null
|
|
19523
|
+
}
|
|
19524
|
+
},
|
|
19420
19525
|
host: {
|
|
19421
19526
|
listeners: {
|
|
19422
19527
|
"click": "$event.stopPropagation()",
|
|
@@ -19425,39 +19530,68 @@ var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
|
19425
19530
|
classAttribute: "flex min-w-0 [&_yuw-button]:w-full"
|
|
19426
19531
|
},
|
|
19427
19532
|
ngImport: i0,
|
|
19428
|
-
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <
|
|
19429
|
-
dependencies: [
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
"
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19533
|
+
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n <yuw-badge variant=\"outline\" color=\"neutral\" class=\"shrink-0 rounded-full px-1.5 font-normal\">\n {{ hiddenCount() }}\n </yuw-badge>\n </ng-container>\n\n <ul class=\"flex flex-col\" (pointerenter)=\"onPointerEnter($event)\" (pointerleave)=\"onPointerLeave($event)\">\n @for (item of entries(); track $index) {\n <li class=\"flex items-center rounded-sm px-2 py-1.5\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n} @else {\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n}\n\n<ng-template #entry let-item>\n <span class=\"flex min-w-0 items-center gap-2\">\n @if (item.imageUrl) {\n <yuw-avatar size=\"sm\" shape=\"circle\" class=\"size-6 shrink-0\" [src]=\"item.imageUrl\" [alt]=\"item.label\" />\n }\n <span class=\"min-w-0 truncate\">{{ item.label }}</span>\n </span>\n</ng-template>\n",
|
|
19534
|
+
dependencies: [
|
|
19535
|
+
{
|
|
19536
|
+
kind: "directive",
|
|
19537
|
+
type: NgTemplateOutlet,
|
|
19538
|
+
selector: "[ngTemplateOutlet]",
|
|
19539
|
+
inputs: [
|
|
19540
|
+
"ngTemplateOutletContext",
|
|
19541
|
+
"ngTemplateOutlet",
|
|
19542
|
+
"ngTemplateOutletInjector"
|
|
19543
|
+
]
|
|
19544
|
+
},
|
|
19545
|
+
{
|
|
19546
|
+
kind: "component",
|
|
19547
|
+
type: YuwAvatarComponent,
|
|
19548
|
+
selector: "yuw-avatar",
|
|
19549
|
+
inputs: [
|
|
19550
|
+
"alt",
|
|
19551
|
+
"badge",
|
|
19552
|
+
"fallback",
|
|
19553
|
+
"group",
|
|
19554
|
+
"groupCount",
|
|
19555
|
+
"shape",
|
|
19556
|
+
"size",
|
|
19557
|
+
"src",
|
|
19558
|
+
"class"
|
|
19559
|
+
]
|
|
19560
|
+
},
|
|
19561
|
+
{
|
|
19562
|
+
kind: "component",
|
|
19563
|
+
type: YuwBadgeComponent,
|
|
19564
|
+
selector: "yuw-badge",
|
|
19565
|
+
inputs: [
|
|
19566
|
+
"color",
|
|
19567
|
+
"dot",
|
|
19568
|
+
"removeLabel",
|
|
19569
|
+
"variant"
|
|
19570
|
+
],
|
|
19571
|
+
outputs: ["removed"]
|
|
19572
|
+
},
|
|
19573
|
+
{
|
|
19574
|
+
kind: "component",
|
|
19575
|
+
type: YuwPopoverComponent,
|
|
19576
|
+
selector: "yuw-popover",
|
|
19577
|
+
inputs: [
|
|
19578
|
+
"align",
|
|
19579
|
+
"description",
|
|
19580
|
+
"offsetX",
|
|
19581
|
+
"open",
|
|
19582
|
+
"panelClass",
|
|
19583
|
+
"showTrigger",
|
|
19584
|
+
"sideOffset",
|
|
19585
|
+
"title",
|
|
19586
|
+
"triggerClass",
|
|
19587
|
+
"triggerColor",
|
|
19588
|
+
"triggerSize",
|
|
19589
|
+
"triggerTransparent",
|
|
19590
|
+
"triggerVariant"
|
|
19591
|
+
],
|
|
19592
|
+
outputs: ["openChange"]
|
|
19593
|
+
}
|
|
19594
|
+
],
|
|
19461
19595
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
19462
19596
|
});
|
|
19463
19597
|
}
|
|
@@ -19472,24 +19606,39 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19472
19606
|
args: [{
|
|
19473
19607
|
selector: "yuws-overflow-list-cell",
|
|
19474
19608
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19475
|
-
imports: [
|
|
19609
|
+
imports: [
|
|
19610
|
+
NgTemplateOutlet,
|
|
19611
|
+
YuwAvatarComponent,
|
|
19612
|
+
YuwBadgeComponent,
|
|
19613
|
+
YuwPopoverComponent
|
|
19614
|
+
],
|
|
19476
19615
|
host: {
|
|
19477
19616
|
class: "flex min-w-0 [&_yuw-button]:w-full",
|
|
19478
19617
|
"(click)": "$event.stopPropagation()",
|
|
19479
19618
|
"(keydown)": "$event.stopPropagation()"
|
|
19480
19619
|
},
|
|
19481
|
-
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <
|
|
19620
|
+
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n <yuw-badge variant=\"outline\" color=\"neutral\" class=\"shrink-0 rounded-full px-1.5 font-normal\">\n {{ hiddenCount() }}\n </yuw-badge>\n </ng-container>\n\n <ul class=\"flex flex-col\" (pointerenter)=\"onPointerEnter($event)\" (pointerleave)=\"onPointerLeave($event)\">\n @for (item of entries(); track $index) {\n <li class=\"flex items-center rounded-sm px-2 py-1.5\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n} @else {\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n}\n\n<ng-template #entry let-item>\n <span class=\"flex min-w-0 items-center gap-2\">\n @if (item.imageUrl) {\n <yuw-avatar size=\"sm\" shape=\"circle\" class=\"size-6 shrink-0\" [src]=\"item.imageUrl\" [alt]=\"item.label\" />\n }\n <span class=\"min-w-0 truncate\">{{ item.label }}</span>\n </span>\n</ng-template>\n"
|
|
19482
19621
|
}]
|
|
19483
19622
|
}],
|
|
19484
19623
|
ctorParameters: () => [],
|
|
19485
|
-
propDecorators: {
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
19490
|
-
|
|
19624
|
+
propDecorators: {
|
|
19625
|
+
imageUrls: [{
|
|
19626
|
+
type: i0.Input,
|
|
19627
|
+
args: [{
|
|
19628
|
+
isSignal: true,
|
|
19629
|
+
alias: "imageUrls",
|
|
19630
|
+
required: false
|
|
19631
|
+
}]
|
|
19632
|
+
}],
|
|
19633
|
+
items: [{
|
|
19634
|
+
type: i0.Input,
|
|
19635
|
+
args: [{
|
|
19636
|
+
isSignal: true,
|
|
19637
|
+
alias: "items",
|
|
19638
|
+
required: true
|
|
19639
|
+
}]
|
|
19491
19640
|
}]
|
|
19492
|
-
}
|
|
19641
|
+
}
|
|
19493
19642
|
});
|
|
19494
19643
|
var YuwsSelectCellComponent = class YuwsSelectCellComponent {
|
|
19495
19644
|
constructor() {
|
|
@@ -25348,6 +25497,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
25348
25497
|
}]
|
|
25349
25498
|
}
|
|
25350
25499
|
});
|
|
25351
|
-
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25500
|
+
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsBadgeListCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25352
25501
|
|
|
25353
25502
|
//# sourceMappingURL=yukit-web.mjs.map
|