yukit-web 0.11.5 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/yukit-web.mjs +314 -39
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/components/layout.css +3 -0
- package/src/lib/theme/components/sidebar.css +20 -0
- package/src/lib/theme/theme.css +2 -0
- package/src/lib/theme/tokens/color.css +154 -107
- package/types/yukit-web.d.ts +85 -11
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -4914,6 +4914,40 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4914
4914
|
args: [{ selector: "[yuwSheetHeader]" }]
|
|
4915
4915
|
}]
|
|
4916
4916
|
});
|
|
4917
|
+
const yuwLayoutLeftInsetClass = `
|
|
4918
|
+
data-[side=left]:inset-y-1
|
|
4919
|
+
lg:data-[side=left]:inset-y-2
|
|
4920
|
+
data-[side=left]:h-auto
|
|
4921
|
+
data-[side=right]:inset-y-1
|
|
4922
|
+
lg:data-[side=right]:inset-y-2
|
|
4923
|
+
data-[side=right]:h-auto
|
|
4924
|
+
`;
|
|
4925
|
+
const yuwLayoutRightInsetClass = `
|
|
4926
|
+
data-[side=right]:inset-y-1
|
|
4927
|
+
lg:data-[side=right]:inset-y-2
|
|
4928
|
+
data-[side=right]:h-auto
|
|
4929
|
+
data-[side=right]:right-1
|
|
4930
|
+
lg:data-[side=right]:right-2
|
|
4931
|
+
rounded-4xl
|
|
4932
|
+
overflow-hidden
|
|
4933
|
+
`;
|
|
4934
|
+
const YUW_LAYOUT_BODY_VARS = {
|
|
4935
|
+
top: "--yuw-layout-body-top",
|
|
4936
|
+
right: "--yuw-layout-body-right",
|
|
4937
|
+
bottom: "--yuw-layout-body-bottom",
|
|
4938
|
+
left: "--yuw-layout-body-left"
|
|
4939
|
+
};
|
|
4940
|
+
const yuwLayoutBackdropClass = `
|
|
4941
|
+
top-[var(--yuw-layout-body-top,0px)]!
|
|
4942
|
+
right-[var(--yuw-layout-body-right,0px)]!
|
|
4943
|
+
bottom-[var(--yuw-layout-body-bottom,0px)]!
|
|
4944
|
+
left-[var(--yuw-layout-body-left,0px)]!
|
|
4945
|
+
rounded-4xl
|
|
4946
|
+
`;
|
|
4947
|
+
const YUW_SHEET_LAYOUT_INSET_CLASS = {
|
|
4948
|
+
left: yuwLayoutLeftInsetClass,
|
|
4949
|
+
right: yuwLayoutRightInsetClass
|
|
4950
|
+
};
|
|
4917
4951
|
const YUW_SHEET_OVERLAY_BASE_CLASS = "data-open:animate-in data-closed:animate-out data-closed:fade-out-0 data-open:fade-in-0 isolate bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs";
|
|
4918
4952
|
const YUW_SHEET_OPEN_CLASS = "yuw-sheet-open";
|
|
4919
4953
|
var YuwSheetComponent = class YuwSheetComponent {
|
|
@@ -4937,6 +4971,8 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
4937
4971
|
...ngDevMode ? { debugName: "disableClose" } : /* istanbul ignore next */ {},
|
|
4938
4972
|
transform: booleanAttribute
|
|
4939
4973
|
});
|
|
4974
|
+
this.layoutInset = input(void 0, ...ngDevMode ? [{ debugName: "layoutInset" }] : /* istanbul ignore next */ []);
|
|
4975
|
+
this.note = input(void 0, ...ngDevMode ? [{ debugName: "note" }] : /* istanbul ignore next */ []);
|
|
4940
4976
|
this.open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
4941
4977
|
this.overlayClass = input(void 0, ...ngDevMode ? [{ debugName: "overlayClass" }] : /* istanbul ignore next */ []);
|
|
4942
4978
|
this.panelClass = input(void 0, ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
|
|
@@ -4950,14 +4986,19 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
4950
4986
|
this.triggerSize = input("default", ...ngDevMode ? [{ debugName: "triggerSize" }] : /* istanbul ignore next */ []);
|
|
4951
4987
|
this.triggerVariant = input("outline", ...ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []);
|
|
4952
4988
|
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 */ []);
|
|
4989
|
+
this._overlayClass = computed(() => this.layoutInset() ? cn(yuwLayoutBackdropClass, this.overlayClass()) : this.overlayClass(), ...ngDevMode ? [{ debugName: "_overlayClass" }] : /* istanbul ignore next */ []);
|
|
4990
|
+
this._panelClass = computed(() => {
|
|
4991
|
+
const inset = this.layoutInset();
|
|
4992
|
+
return cn(inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
4993
|
+
}, ...ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []);
|
|
4953
4994
|
this._sheetState = computed(() => this.open() ? "open" : "closed", ...ngDevMode ? [{ debugName: "_sheetState" }] : /* istanbul ignore next */ []);
|
|
4954
4995
|
const root = inject(DOCUMENT$1).documentElement;
|
|
4955
4996
|
inject(DestroyRef).onDestroy(() => root.classList.remove(YUW_SHEET_OPEN_CLASS));
|
|
4956
4997
|
effect(() => root.classList.toggle(YUW_SHEET_OPEN_CLASS, this.open()));
|
|
4957
4998
|
effect(() => {
|
|
4958
|
-
const overlayClass = this.
|
|
4999
|
+
const overlayClass = this._overlayClass();
|
|
4959
5000
|
if (overlayClass === void 0) return;
|
|
4960
|
-
this.sheet().setOverlayClass(
|
|
5001
|
+
this.sheet().setOverlayClass(cn(YUW_SHEET_OVERLAY_BASE_CLASS, overlayClass));
|
|
4961
5002
|
});
|
|
4962
5003
|
}
|
|
4963
5004
|
onStateChanged(state) {
|
|
@@ -5030,6 +5071,20 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5030
5071
|
isRequired: false,
|
|
5031
5072
|
transformFunction: null
|
|
5032
5073
|
},
|
|
5074
|
+
layoutInset: {
|
|
5075
|
+
classPropertyName: "layoutInset",
|
|
5076
|
+
publicName: "layoutInset",
|
|
5077
|
+
isSignal: true,
|
|
5078
|
+
isRequired: false,
|
|
5079
|
+
transformFunction: null
|
|
5080
|
+
},
|
|
5081
|
+
note: {
|
|
5082
|
+
classPropertyName: "note",
|
|
5083
|
+
publicName: "note",
|
|
5084
|
+
isSignal: true,
|
|
5085
|
+
isRequired: false,
|
|
5086
|
+
transformFunction: null
|
|
5087
|
+
},
|
|
5033
5088
|
open: {
|
|
5034
5089
|
classPropertyName: "open",
|
|
5035
5090
|
publicName: "open",
|
|
@@ -5121,7 +5176,7 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5121
5176
|
isSignal: true
|
|
5122
5177
|
}],
|
|
5123
5178
|
ngImport: i0,
|
|
5124
|
-
template: "<hlm-sheet\n [side]=\"side()\"\n [state]=\"_sheetState()\"\n [aria-label]=\"ariaLabel()\"\n [aria-modal]=\"ariaModal()\"\n [scrollStrategy]=\"scrollStrategy()\"\n [closeOnOutsidePointerEvents]=\"closeOnOutsidePointerEvents()\"\n [disableClose]=\"disableClose()\"\n (stateChanged)=\"onStateChanged($event)\"\n>\n @if (showTrigger()) {\n <yuw-button yuwSheetTriggerButton [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwSheetTrigger]\" />\n </yuw-button>\n }\n\n <hlm-sheet-content *hlmSheetPortal [showCloseButton]=\"false\" [class]=\"
|
|
5179
|
+
template: "<hlm-sheet\n [side]=\"side()\"\n [state]=\"_sheetState()\"\n [aria-label]=\"ariaLabel()\"\n [aria-modal]=\"ariaModal()\"\n [scrollStrategy]=\"scrollStrategy()\"\n [closeOnOutsidePointerEvents]=\"closeOnOutsidePointerEvents()\"\n [disableClose]=\"disableClose()\"\n (stateChanged)=\"onStateChanged($event)\"\n>\n @if (showTrigger()) {\n <yuw-button yuwSheetTriggerButton [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwSheetTrigger]\" />\n </yuw-button>\n }\n\n <hlm-sheet-content *hlmSheetPortal [showCloseButton]=\"false\" [class]=\"_panelClass()\">\n @if (title() || description() || note()) {\n <div hlmSheetHeader>\n @if (title()) {\n <h2 hlmSheetTitle>{{ title() }}</h2>\n }\n @if (description()) {\n <p hlmSheetDescription>{{ description() }}</p>\n }\n @if (note()) {\n <p hlmSheetDescription>{{ note() }}</p>\n }\n </div>\n }\n\n @if (hasHeader()) {\n <div class=\"flex items-start gap-3 px-4 pt-6\">\n <div class=\"min-w-0 flex-1\">\n <ng-content select=\"[yuwSheetHeader]\" />\n </div>\n @if (closeLabel()) {\n <ng-container [ngTemplateOutlet]=\"closeButton\" />\n }\n </div>\n }\n\n <div [class]=\"_bodyClass()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div hlmSheetFooter class=\"bg-(--neutrals-surface-footer)\">\n <ng-content select=\"[yuwSheetFooter]\" />\n </div>\n }\n\n @if (closeLabel() && !hasHeader()) {\n <div class=\"absolute inset-e-3 top-3\">\n <ng-container [ngTemplateOutlet]=\"closeButton\" />\n </div>\n }\n\n <ng-template #closeButton>\n <yuw-button yuwSheetClose variant=\"ghost\" size=\"icon-sm\">\n <ng-icon name=\"lucideX\" />\n <span class=\"sr-only\">{{ closeLabel() }}</span>\n </yuw-button>\n </ng-template>\n </hlm-sheet-content>\n</hlm-sheet>\n",
|
|
5125
5180
|
dependencies: [
|
|
5126
5181
|
{
|
|
5127
5182
|
kind: "component",
|
|
@@ -5241,7 +5296,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5241
5296
|
}],
|
|
5242
5297
|
host: { class: "contents" },
|
|
5243
5298
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5244
|
-
template: "<hlm-sheet\n [side]=\"side()\"\n [state]=\"_sheetState()\"\n [aria-label]=\"ariaLabel()\"\n [aria-modal]=\"ariaModal()\"\n [scrollStrategy]=\"scrollStrategy()\"\n [closeOnOutsidePointerEvents]=\"closeOnOutsidePointerEvents()\"\n [disableClose]=\"disableClose()\"\n (stateChanged)=\"onStateChanged($event)\"\n>\n @if (showTrigger()) {\n <yuw-button yuwSheetTriggerButton [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwSheetTrigger]\" />\n </yuw-button>\n }\n\n <hlm-sheet-content *hlmSheetPortal [showCloseButton]=\"false\" [class]=\"
|
|
5299
|
+
template: "<hlm-sheet\n [side]=\"side()\"\n [state]=\"_sheetState()\"\n [aria-label]=\"ariaLabel()\"\n [aria-modal]=\"ariaModal()\"\n [scrollStrategy]=\"scrollStrategy()\"\n [closeOnOutsidePointerEvents]=\"closeOnOutsidePointerEvents()\"\n [disableClose]=\"disableClose()\"\n (stateChanged)=\"onStateChanged($event)\"\n>\n @if (showTrigger()) {\n <yuw-button yuwSheetTriggerButton [variant]=\"triggerVariant()\" [size]=\"triggerSize()\">\n <ng-content select=\"[yuwSheetTrigger]\" />\n </yuw-button>\n }\n\n <hlm-sheet-content *hlmSheetPortal [showCloseButton]=\"false\" [class]=\"_panelClass()\">\n @if (title() || description() || note()) {\n <div hlmSheetHeader>\n @if (title()) {\n <h2 hlmSheetTitle>{{ title() }}</h2>\n }\n @if (description()) {\n <p hlmSheetDescription>{{ description() }}</p>\n }\n @if (note()) {\n <p hlmSheetDescription>{{ note() }}</p>\n }\n </div>\n }\n\n @if (hasHeader()) {\n <div class=\"flex items-start gap-3 px-4 pt-6\">\n <div class=\"min-w-0 flex-1\">\n <ng-content select=\"[yuwSheetHeader]\" />\n </div>\n @if (closeLabel()) {\n <ng-container [ngTemplateOutlet]=\"closeButton\" />\n }\n </div>\n }\n\n <div [class]=\"_bodyClass()\">\n <ng-content />\n </div>\n\n @if (hasFooter()) {\n <div hlmSheetFooter class=\"bg-(--neutrals-surface-footer)\">\n <ng-content select=\"[yuwSheetFooter]\" />\n </div>\n }\n\n @if (closeLabel() && !hasHeader()) {\n <div class=\"absolute inset-e-3 top-3\">\n <ng-container [ngTemplateOutlet]=\"closeButton\" />\n </div>\n }\n\n <ng-template #closeButton>\n <yuw-button yuwSheetClose variant=\"ghost\" size=\"icon-sm\">\n <ng-icon name=\"lucideX\" />\n <span class=\"sr-only\">{{ closeLabel() }}</span>\n </yuw-button>\n </ng-template>\n </hlm-sheet-content>\n</hlm-sheet>\n"
|
|
5245
5300
|
}]
|
|
5246
5301
|
}],
|
|
5247
5302
|
ctorParameters: () => [],
|
|
@@ -5314,6 +5369,22 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5314
5369
|
required: false
|
|
5315
5370
|
}]
|
|
5316
5371
|
}],
|
|
5372
|
+
layoutInset: [{
|
|
5373
|
+
type: i0.Input,
|
|
5374
|
+
args: [{
|
|
5375
|
+
isSignal: true,
|
|
5376
|
+
alias: "layoutInset",
|
|
5377
|
+
required: false
|
|
5378
|
+
}]
|
|
5379
|
+
}],
|
|
5380
|
+
note: [{
|
|
5381
|
+
type: i0.Input,
|
|
5382
|
+
args: [{
|
|
5383
|
+
isSignal: true,
|
|
5384
|
+
alias: "note",
|
|
5385
|
+
required: false
|
|
5386
|
+
}]
|
|
5387
|
+
}],
|
|
5317
5388
|
open: [{
|
|
5318
5389
|
type: i0.Input,
|
|
5319
5390
|
args: [{
|
|
@@ -5781,6 +5852,8 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5781
5852
|
"closeOnOutsidePointerEvents",
|
|
5782
5853
|
"description",
|
|
5783
5854
|
"disableClose",
|
|
5855
|
+
"layoutInset",
|
|
5856
|
+
"note",
|
|
5784
5857
|
"open",
|
|
5785
5858
|
"overlayClass",
|
|
5786
5859
|
"panelClass",
|
|
@@ -9198,7 +9271,7 @@ const YUW_CALENDAR_DAY_CLASS = cn(buttonVariants({
|
|
|
9198
9271
|
variant: "ghost",
|
|
9199
9272
|
size: "icon"
|
|
9200
9273
|
}), "relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) border-0 leading-none font-normal", "data-[today=true]:bg-(--neutrals-fill) data-[today=true]:text-(--neutrals-element-high) data-[outside=true]:opacity-50", "group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50", "data-[selected-single=true]:bg-(--yuw-accent) data-[selected-single=true]:text-(--yuw-accent-foreground)", "data-[range-start=true]:rounded-l-(--cell-radius) data-[range-start=true]:rounded-r-none data-[range-start=true]:bg-(--yuw-accent) data-[range-start=true]:text-(--yuw-accent-foreground)", "data-[range-end=true]:rounded-r-(--cell-radius) data-[range-end=true]:rounded-l-none data-[range-end=true]:bg-(--yuw-accent) data-[range-end=true]:text-(--yuw-accent-foreground)", "data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-secondary data-[range-middle=true]:text-secondary-foreground");
|
|
9201
|
-
const YUW_CALENDAR_MONTH_YEAR_CLASS = cn("p-0 [&_.grid-cols-4]:grid-cols-3", "[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true])]:bg-secondary", "[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true])]:text-secondary-foreground", "[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true]):hover]:bg-(--secondary-
|
|
9274
|
+
const YUW_CALENDAR_MONTH_YEAR_CLASS = cn("p-0 [&_.grid-cols-4]:grid-cols-3", "[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true])]:bg-secondary", "[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true])]:text-secondary-foreground", "[&_button[brnmonthyearcalendarmonthbutton]:not([data-selected=true]):hover]:bg-(--secondary-tonal-hover)", "[&_button[brnmonthyearcalendaryearbutton]:not([data-selected=true])]:bg-secondary", "[&_button[brnmonthyearcalendaryearbutton]:not([data-selected=true])]:text-secondary-foreground", "[&_button[brnmonthyearcalendaryearbutton]:not([data-selected=true]):hover]:bg-(--secondary-tonal-hover)", "[&_button[brnmonthyearcalendarmonthbutton][data-today=true]:not([data-selected=true])]:bg-(--neutrals-fill)", "[&_button[brnmonthyearcalendarmonthbutton][data-today=true]:not([data-selected=true])]:text-(--neutrals-element-high)", "[&_button[brnmonthyearcalendaryearbutton][data-today=true]:not([data-selected=true])]:bg-(--neutrals-fill)", "[&_button[brnmonthyearcalendaryearbutton][data-today=true]:not([data-selected=true])]:text-(--neutrals-element-high)", "[&_button[data-selected=true]]:bg-(--yuw-accent) [&_button[data-selected=true]:hover]:bg-(--yuw-accent)", "[&_button[data-selected=true]]:text-(--yuw-accent-foreground) [&_button[data-selected=true]:hover]:text-(--yuw-accent-foreground)", "[&_button[data-focused=true]:not(:focus-visible)]:border-transparent [&_button[data-focused=true]:not(:focus-visible)]:ring-0");
|
|
9202
9275
|
var YuwCalendarDaysComponent = class YuwCalendarDaysComponent {
|
|
9203
9276
|
constructor() {
|
|
9204
9277
|
this.headingClicked = output();
|
|
@@ -15686,17 +15759,29 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
15686
15759
|
}]
|
|
15687
15760
|
}]
|
|
15688
15761
|
});
|
|
15689
|
-
const YUW_SIDEBAR_RAIL_PADDING = "22px";
|
|
15690
15762
|
const YUW_SIDEBAR_RAIL_ICON_SIZE = "20px";
|
|
15691
15763
|
const YUW_SIDEBAR_RAIL_WIDTH = "78px";
|
|
15764
|
+
const yuwSidebarItemColorClass = `
|
|
15765
|
+
text-(--yuw-sidebar-item-text)
|
|
15766
|
+
[--ng-icon__color:var(--yuw-sidebar-item-icon)]
|
|
15767
|
+
hover:bg-(--yuw-sidebar-item-hover)
|
|
15768
|
+
hover:text-(--yuw-sidebar-item-text)
|
|
15769
|
+
active:bg-(--yuw-sidebar-item-hover)
|
|
15770
|
+
active:text-(--yuw-sidebar-item-text)
|
|
15771
|
+
data-active:bg-(--yuw-sidebar-item-active)
|
|
15772
|
+
data-active:text-(--yuw-sidebar-item-active-text)
|
|
15773
|
+
data-active:hover:bg-(--yuw-sidebar-item-active)
|
|
15774
|
+
data-active:hover:text-(--yuw-sidebar-item-active-text)
|
|
15775
|
+
data-active:[--ng-icon__color:var(--yuw-sidebar-item-active-text)]
|
|
15776
|
+
`;
|
|
15692
15777
|
const yuwSidebarMenuButtonClass = `
|
|
15693
15778
|
[&>span]:truncate
|
|
15694
15779
|
[&>span]:min-w-0
|
|
15695
|
-
|
|
15696
|
-
|
|
15697
|
-
|
|
15698
|
-
|
|
15699
|
-
|
|
15780
|
+
${yuwSidebarItemColorClass}
|
|
15781
|
+
aria-expanded:bg-(--yuw-sidebar-item-hover)
|
|
15782
|
+
aria-expanded:text-(--yuw-sidebar-item-text)
|
|
15783
|
+
data-open:hover:bg-(--yuw-sidebar-item-hover)
|
|
15784
|
+
data-open:hover:text-(--yuw-sidebar-item-text)
|
|
15700
15785
|
transition-[background-color,color,padding]
|
|
15701
15786
|
duration-200
|
|
15702
15787
|
ease-linear
|
|
@@ -15712,6 +15797,8 @@ const yuwSidebarMenuButtonClass = `
|
|
|
15712
15797
|
group-data-[yuw-rail=on]:justify-center!
|
|
15713
15798
|
group-data-[yuw-rail=on]:[&>span]:hidden
|
|
15714
15799
|
group-data-[yuw-rail=on]:[&_ng-icon]:scale-125
|
|
15800
|
+
group-data-[collapsible=icon]:group-data-[yuw-rail=on]:size-11!
|
|
15801
|
+
group-data-[collapsible=icon]:group-data-[yuw-rail=on]:p-0!
|
|
15715
15802
|
`;
|
|
15716
15803
|
const yuwSidebarMenuAvatarButtonClass = `
|
|
15717
15804
|
h-auto
|
|
@@ -15729,17 +15816,16 @@ const yuwSidebarMenuChevronClass = `
|
|
|
15729
15816
|
`;
|
|
15730
15817
|
const YUW_SIDEBAR_RAIL_WIDTH_VAR = "--yuw-sidebar-rail-width";
|
|
15731
15818
|
const yuwSidebarSubmenuSheetClass = `
|
|
15732
|
-
data-[side=left]:inset-y-0
|
|
15733
15819
|
data-[side=left]:left-[var(--yuw-sidebar-rail-width)]
|
|
15734
|
-
data-[side=left]:h-full
|
|
15735
15820
|
data-[side=left]:w-64
|
|
15736
15821
|
data-[side=left]:sm:max-w-none
|
|
15737
|
-
|
|
15738
|
-
|
|
15739
|
-
|
|
15740
|
-
|
|
15741
|
-
|
|
15742
|
-
|
|
15822
|
+
yuw-sidebar-panel
|
|
15823
|
+
data-[side=left]:border-r
|
|
15824
|
+
data-[side=left]:border-(--sidebar-panel-border)
|
|
15825
|
+
rounded-s-4xl
|
|
15826
|
+
rounded-e-none
|
|
15827
|
+
bg-(--sidebar-panel)
|
|
15828
|
+
text-(--sidebar-panel-text)
|
|
15743
15829
|
shadow-none
|
|
15744
15830
|
gap-0
|
|
15745
15831
|
p-0
|
|
@@ -15767,7 +15853,7 @@ const yuwSidebarSubmenuSheetBodyClass = `
|
|
|
15767
15853
|
[&_[data-sidebar=menu-sub-button]]:h-8
|
|
15768
15854
|
`;
|
|
15769
15855
|
const yuwSidebarSubmenuSheetLabelClass = `
|
|
15770
|
-
text-
|
|
15856
|
+
text-(--sidebar-panel-title)
|
|
15771
15857
|
py-6.75
|
|
15772
15858
|
text-xs
|
|
15773
15859
|
font-medium
|
|
@@ -15775,12 +15861,12 @@ const yuwSidebarSubmenuSheetLabelClass = `
|
|
|
15775
15861
|
uppercase
|
|
15776
15862
|
tracking-[2px]
|
|
15777
15863
|
`;
|
|
15778
|
-
const yuwSidebarContainerClass = "contain-layout";
|
|
15864
|
+
const yuwSidebarContainerClass = "contain-layout group-data-[side=left]:border-r-0 group-data-[side=right]:border-l-0";
|
|
15779
15865
|
const yuwSidebarContentClass = `
|
|
15780
15866
|
overflow-y-auto
|
|
15781
15867
|
group-data-[collapsible=icon]:overflow-y-auto!
|
|
15782
15868
|
group-data-[collapsible=icon]:overflow-x-hidden
|
|
15783
|
-
group-data-[yuw-rail=on]:gap-
|
|
15869
|
+
group-data-[yuw-rail=on]:gap-1!
|
|
15784
15870
|
`;
|
|
15785
15871
|
const yuwSidebarGroupLabelClass = `
|
|
15786
15872
|
group-data-[collapsible=icon]:mt-0!
|
|
@@ -15791,7 +15877,7 @@ const yuwSidebarGroupLabelClass = `
|
|
|
15791
15877
|
motion-reduce:transition-none
|
|
15792
15878
|
group-data-[yuw-rail=on]:hidden
|
|
15793
15879
|
`;
|
|
15794
|
-
const yuwSidebarGroupClass = "p-3 group-data-[yuw-rail=on]:
|
|
15880
|
+
const yuwSidebarGroupClass = "p-3 group-data-[yuw-rail=on]:px-0 group-data-[yuw-rail=on]:py-2";
|
|
15795
15881
|
const yuwSidebarFooterClass = "group-data-[yuw-rail=on]:p-0";
|
|
15796
15882
|
const yuwSidebarSubmenuWrapperClass = `
|
|
15797
15883
|
grid
|
|
@@ -15805,6 +15891,10 @@ const yuwSidebarSubmenuWrapperClass = `
|
|
|
15805
15891
|
const yuwSidebarSubmenuOpenClass = "grid-rows-[1fr]";
|
|
15806
15892
|
const yuwSidebarSubmenuClosedClass = "grid-rows-[0fr]";
|
|
15807
15893
|
const yuwSidebarMenuBadgeClass = `
|
|
15894
|
+
bg-(--sidebar-badge)
|
|
15895
|
+
text-(--sidebar-on-badge)
|
|
15896
|
+
peer-hover/menu-button:text-(--sidebar-on-badge)
|
|
15897
|
+
peer-data-active/menu-button:text-(--sidebar-on-badge)
|
|
15808
15898
|
transition-opacity
|
|
15809
15899
|
duration-200
|
|
15810
15900
|
ease-linear
|
|
@@ -15820,19 +15910,13 @@ const yuwSidebarGroupLabelTextClass = `
|
|
|
15820
15910
|
`;
|
|
15821
15911
|
const yuwSidebarMenuClass = `
|
|
15822
15912
|
gap-2
|
|
15823
|
-
group-data-[yuw-rail=on]:gap-
|
|
15913
|
+
group-data-[yuw-rail=on]:gap-1
|
|
15824
15914
|
`;
|
|
15825
|
-
const yuwSidebarMenuItemClass = "group-data-[yuw-rail=on]:
|
|
15915
|
+
const yuwSidebarMenuItemClass = "group-data-[yuw-rail=on]:flex group-data-[yuw-rail=on]:justify-center";
|
|
15826
15916
|
const yuwSidebarMenuSubButtonClass = `
|
|
15827
15917
|
[&>span]:truncate
|
|
15828
15918
|
[&>span]:min-w-0
|
|
15829
|
-
|
|
15830
|
-
hover:text-foreground
|
|
15831
|
-
dark:hover:bg-muted/50
|
|
15832
|
-
active:bg-muted
|
|
15833
|
-
active:text-foreground
|
|
15834
|
-
data-active:bg-sidebar-accent
|
|
15835
|
-
data-active:text-sidebar-accent-foreground
|
|
15919
|
+
${yuwSidebarItemColorClass}
|
|
15836
15920
|
transition-[background-color,color]
|
|
15837
15921
|
duration-200
|
|
15838
15922
|
ease-linear
|
|
@@ -17141,7 +17225,7 @@ var YuwSidebarSubmenuSheetComponent = class YuwSidebarSubmenuSheetComponent {
|
|
|
17141
17225
|
outputs: { itemClicked: "itemClicked" },
|
|
17142
17226
|
host: { classAttribute: "contents" },
|
|
17143
17227
|
ngImport: i0,
|
|
17144
|
-
template: "<yuw-sheet\n side=\"left\"\n [open]=\"_submenu.open()\"\n (openChange)=\"onOpenChange($event)\"\n [showTrigger]=\"false\"\n [ariaLabel]=\"_label()\"\n [panelClass]=\"panelClass\"\n [overlayClass]=\"overlayClass\"\n [ariaModal]=\"false\"\n [closeOnOutsidePointerEvents]=\"false\"\n scrollStrategy=\"reposition\"\n>\n <div [class]=\"bodyClass\">\n <span [class]=\"labelClass\">{{ _label() }}</span>\n\n <ul yuwSidebarMenuSub>\n @for (child of _children(); track child.id) {\n <li yuwSidebarMenuSubItem>\n @if (child.route) {\n <a\n yuwSidebarMenuSubButton\n #childLink=\"routerLinkActive\"\n routerLinkActive\n class=\"px-4 h-12!\"\n [routerLink]=\"child.route\"\n [routerLinkActiveOptions]=\"_activeOptions()[child.id]\"\n [isActive]=\"childLink.isActive\"\n [attr.aria-current]=\"childLink.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else if (child.href) {\n <a\n yuwSidebarMenuSubButton\n class=\"px-4 h-12!\"\n [href]=\"child.href\"\n [attr.target]=\"child.target\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else {\n <button\n yuwSidebarMenuSubButton\n type=\"button\"\n class=\"px-4 h-12!\"\n [disabled]=\"child.disabled ?? false\"\n (click)=\"onChildClick(child.id, $event)\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </button>\n }\n </li>\n }\n </ul>\n </div>\n</yuw-sheet>\n",
|
|
17228
|
+
template: "<yuw-sheet\n side=\"left\"\n layoutInset=\"left\"\n [open]=\"_submenu.open()\"\n (openChange)=\"onOpenChange($event)\"\n [showTrigger]=\"false\"\n [ariaLabel]=\"_label()\"\n [panelClass]=\"panelClass\"\n [overlayClass]=\"overlayClass\"\n [ariaModal]=\"false\"\n [closeOnOutsidePointerEvents]=\"false\"\n scrollStrategy=\"reposition\"\n>\n <div [class]=\"bodyClass\">\n <span [class]=\"labelClass\">{{ _label() }}</span>\n\n <ul yuwSidebarMenuSub>\n @for (child of _children(); track child.id) {\n <li yuwSidebarMenuSubItem>\n @if (child.route) {\n <a\n yuwSidebarMenuSubButton\n #childLink=\"routerLinkActive\"\n routerLinkActive\n class=\"px-4 h-12!\"\n [routerLink]=\"child.route\"\n [routerLinkActiveOptions]=\"_activeOptions()[child.id]\"\n [isActive]=\"childLink.isActive\"\n [attr.aria-current]=\"childLink.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else if (child.href) {\n <a\n yuwSidebarMenuSubButton\n class=\"px-4 h-12!\"\n [href]=\"child.href\"\n [attr.target]=\"child.target\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else {\n <button\n yuwSidebarMenuSubButton\n type=\"button\"\n class=\"px-4 h-12!\"\n [disabled]=\"child.disabled ?? false\"\n (click)=\"onChildClick(child.id, $event)\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </button>\n }\n </li>\n }\n </ul>\n </div>\n</yuw-sheet>\n",
|
|
17145
17229
|
dependencies: [
|
|
17146
17230
|
{
|
|
17147
17231
|
kind: "component",
|
|
@@ -17155,6 +17239,8 @@ var YuwSidebarSubmenuSheetComponent = class YuwSidebarSubmenuSheetComponent {
|
|
|
17155
17239
|
"closeOnOutsidePointerEvents",
|
|
17156
17240
|
"description",
|
|
17157
17241
|
"disableClose",
|
|
17242
|
+
"layoutInset",
|
|
17243
|
+
"note",
|
|
17158
17244
|
"open",
|
|
17159
17245
|
"overlayClass",
|
|
17160
17246
|
"panelClass",
|
|
@@ -17250,7 +17336,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
17250
17336
|
],
|
|
17251
17337
|
host: { class: "contents" },
|
|
17252
17338
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17253
|
-
template: "<yuw-sheet\n side=\"left\"\n [open]=\"_submenu.open()\"\n (openChange)=\"onOpenChange($event)\"\n [showTrigger]=\"false\"\n [ariaLabel]=\"_label()\"\n [panelClass]=\"panelClass\"\n [overlayClass]=\"overlayClass\"\n [ariaModal]=\"false\"\n [closeOnOutsidePointerEvents]=\"false\"\n scrollStrategy=\"reposition\"\n>\n <div [class]=\"bodyClass\">\n <span [class]=\"labelClass\">{{ _label() }}</span>\n\n <ul yuwSidebarMenuSub>\n @for (child of _children(); track child.id) {\n <li yuwSidebarMenuSubItem>\n @if (child.route) {\n <a\n yuwSidebarMenuSubButton\n #childLink=\"routerLinkActive\"\n routerLinkActive\n class=\"px-4 h-12!\"\n [routerLink]=\"child.route\"\n [routerLinkActiveOptions]=\"_activeOptions()[child.id]\"\n [isActive]=\"childLink.isActive\"\n [attr.aria-current]=\"childLink.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else if (child.href) {\n <a\n yuwSidebarMenuSubButton\n class=\"px-4 h-12!\"\n [href]=\"child.href\"\n [attr.target]=\"child.target\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else {\n <button\n yuwSidebarMenuSubButton\n type=\"button\"\n class=\"px-4 h-12!\"\n [disabled]=\"child.disabled ?? false\"\n (click)=\"onChildClick(child.id, $event)\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </button>\n }\n </li>\n }\n </ul>\n </div>\n</yuw-sheet>\n"
|
|
17339
|
+
template: "<yuw-sheet\n side=\"left\"\n layoutInset=\"left\"\n [open]=\"_submenu.open()\"\n (openChange)=\"onOpenChange($event)\"\n [showTrigger]=\"false\"\n [ariaLabel]=\"_label()\"\n [panelClass]=\"panelClass\"\n [overlayClass]=\"overlayClass\"\n [ariaModal]=\"false\"\n [closeOnOutsidePointerEvents]=\"false\"\n scrollStrategy=\"reposition\"\n>\n <div [class]=\"bodyClass\">\n <span [class]=\"labelClass\">{{ _label() }}</span>\n\n <ul yuwSidebarMenuSub>\n @for (child of _children(); track child.id) {\n <li yuwSidebarMenuSubItem>\n @if (child.route) {\n <a\n yuwSidebarMenuSubButton\n #childLink=\"routerLinkActive\"\n routerLinkActive\n class=\"px-4 h-12!\"\n [routerLink]=\"child.route\"\n [routerLinkActiveOptions]=\"_activeOptions()[child.id]\"\n [isActive]=\"childLink.isActive\"\n [attr.aria-current]=\"childLink.isActive ? 'page' : null\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else if (child.href) {\n <a\n yuwSidebarMenuSubButton\n class=\"px-4 h-12!\"\n [href]=\"child.href\"\n [attr.target]=\"child.target\"\n [attr.aria-disabled]=\"child.disabled ? 'true' : null\"\n [class.pointer-events-none]=\"child.disabled\"\n (click)=\"_submenu.close()\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </a>\n } @else {\n <button\n yuwSidebarMenuSubButton\n type=\"button\"\n class=\"px-4 h-12!\"\n [disabled]=\"child.disabled ?? false\"\n (click)=\"onChildClick(child.id, $event)\"\n >\n @if (child.icon) {\n <ng-icon [name]=\"child.icon\" />\n }\n <span>{{ child.label }}</span>\n </button>\n }\n </li>\n }\n </ul>\n </div>\n</yuw-sheet>\n"
|
|
17254
17340
|
}]
|
|
17255
17341
|
}],
|
|
17256
17342
|
ctorParameters: () => [],
|
|
@@ -17565,6 +17651,150 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
17565
17651
|
}]
|
|
17566
17652
|
}] }
|
|
17567
17653
|
});
|
|
17654
|
+
var YuwLayoutBodyDirective = class YuwLayoutBodyDirective {
|
|
17655
|
+
constructor() {
|
|
17656
|
+
this.destroyRef = inject(DestroyRef);
|
|
17657
|
+
this.document = inject(DOCUMENT$1);
|
|
17658
|
+
this.host = inject(ElementRef);
|
|
17659
|
+
this.overlayContainer = inject(OverlayContainer);
|
|
17660
|
+
afterNextRender(() => {
|
|
17661
|
+
const observer = new ResizeObserver(() => this.publish());
|
|
17662
|
+
observer.observe(this.host.nativeElement);
|
|
17663
|
+
this.destroyRef.onDestroy(() => {
|
|
17664
|
+
observer.disconnect();
|
|
17665
|
+
this.clear();
|
|
17666
|
+
});
|
|
17667
|
+
});
|
|
17668
|
+
}
|
|
17669
|
+
clear() {
|
|
17670
|
+
const style = this.overlayContainer.getContainerElement().style;
|
|
17671
|
+
Object.values(YUW_LAYOUT_BODY_VARS).forEach((name) => style.removeProperty(name));
|
|
17672
|
+
}
|
|
17673
|
+
publish() {
|
|
17674
|
+
const box = this.host.nativeElement.getBoundingClientRect();
|
|
17675
|
+
const viewport = this.document.documentElement;
|
|
17676
|
+
const style = this.overlayContainer.getContainerElement().style;
|
|
17677
|
+
style.setProperty(YUW_LAYOUT_BODY_VARS.top, `${box.top}px`);
|
|
17678
|
+
style.setProperty(YUW_LAYOUT_BODY_VARS.right, `${viewport.clientWidth - box.right}px`);
|
|
17679
|
+
style.setProperty(YUW_LAYOUT_BODY_VARS.bottom, `${viewport.clientHeight - box.bottom}px`);
|
|
17680
|
+
style.setProperty(YUW_LAYOUT_BODY_VARS.left, `${box.left}px`);
|
|
17681
|
+
}
|
|
17682
|
+
static {
|
|
17683
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
17684
|
+
minVersion: "12.0.0",
|
|
17685
|
+
version: "22.2.4",
|
|
17686
|
+
ngImport: i0,
|
|
17687
|
+
type: YuwLayoutBodyDirective,
|
|
17688
|
+
deps: [],
|
|
17689
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17690
|
+
});
|
|
17691
|
+
}
|
|
17692
|
+
static {
|
|
17693
|
+
this.ɵdir = i0.ɵɵngDeclareDirective({
|
|
17694
|
+
minVersion: "14.0.0",
|
|
17695
|
+
version: "22.2.4",
|
|
17696
|
+
type: YuwLayoutBodyDirective,
|
|
17697
|
+
isStandalone: true,
|
|
17698
|
+
selector: "main[yuwLayoutBody]",
|
|
17699
|
+
ngImport: i0
|
|
17700
|
+
});
|
|
17701
|
+
}
|
|
17702
|
+
};
|
|
17703
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
17704
|
+
minVersion: "12.0.0",
|
|
17705
|
+
version: "22.2.4",
|
|
17706
|
+
ngImport: i0,
|
|
17707
|
+
type: YuwLayoutBodyDirective,
|
|
17708
|
+
decorators: [{
|
|
17709
|
+
type: Directive,
|
|
17710
|
+
args: [{ selector: "main[yuwLayoutBody]" }]
|
|
17711
|
+
}],
|
|
17712
|
+
ctorParameters: () => []
|
|
17713
|
+
});
|
|
17714
|
+
const YUW_LAYOUT_PAGE_CLASS = "yuw-layout-page";
|
|
17715
|
+
const yuwLayoutClass = "bg-sidebar h-svh overflow-hidden";
|
|
17716
|
+
const yuwLayoutBodyClass = `
|
|
17717
|
+
min-w-0
|
|
17718
|
+
overflow-y-auto
|
|
17719
|
+
no-scrollbar
|
|
17720
|
+
rounded-4xl
|
|
17721
|
+
bg-background
|
|
17722
|
+
my-1
|
|
17723
|
+
ms-1
|
|
17724
|
+
me-1
|
|
17725
|
+
md:ms-0
|
|
17726
|
+
lg:my-2
|
|
17727
|
+
lg:me-2
|
|
17728
|
+
px-3
|
|
17729
|
+
pb-3
|
|
17730
|
+
md:ps-8
|
|
17731
|
+
md:pe-7
|
|
17732
|
+
md:pb-7
|
|
17733
|
+
lg:ps-10
|
|
17734
|
+
lg:pe-8
|
|
17735
|
+
lg:pb-8
|
|
17736
|
+
xl:ps-12
|
|
17737
|
+
xl:pe-10
|
|
17738
|
+
xl:pb-10
|
|
17739
|
+
`;
|
|
17740
|
+
var YuwLayoutComponent = class YuwLayoutComponent {
|
|
17741
|
+
constructor() {
|
|
17742
|
+
this.page = inject(DOCUMENT$1).body;
|
|
17743
|
+
this.bodyClass = yuwLayoutBodyClass;
|
|
17744
|
+
classes(() => yuwLayoutClass);
|
|
17745
|
+
this.page.classList.add(YUW_LAYOUT_PAGE_CLASS);
|
|
17746
|
+
inject(DestroyRef).onDestroy(() => this.page.classList.remove(YUW_LAYOUT_PAGE_CLASS));
|
|
17747
|
+
}
|
|
17748
|
+
static {
|
|
17749
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
17750
|
+
minVersion: "12.0.0",
|
|
17751
|
+
version: "22.2.4",
|
|
17752
|
+
ngImport: i0,
|
|
17753
|
+
type: YuwLayoutComponent,
|
|
17754
|
+
deps: [],
|
|
17755
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
17756
|
+
});
|
|
17757
|
+
}
|
|
17758
|
+
static {
|
|
17759
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
17760
|
+
minVersion: "14.0.0",
|
|
17761
|
+
version: "22.2.4",
|
|
17762
|
+
type: YuwLayoutComponent,
|
|
17763
|
+
isStandalone: true,
|
|
17764
|
+
selector: "yuw-layout",
|
|
17765
|
+
hostDirectives: [{ directive: YuwSidebarWrapperDirective }],
|
|
17766
|
+
ngImport: i0,
|
|
17767
|
+
template: "<ng-content select=\"[yuwLayoutSidebar]\" />\n\n<main yuwSidebarInset yuwLayoutBody [class]=\"bodyClass\">\n <ng-content />\n</main>\n",
|
|
17768
|
+
dependencies: [{
|
|
17769
|
+
kind: "directive",
|
|
17770
|
+
type: YuwSidebarInsetDirective,
|
|
17771
|
+
selector: "main[yuwSidebarInset]"
|
|
17772
|
+
}, {
|
|
17773
|
+
kind: "directive",
|
|
17774
|
+
type: YuwLayoutBodyDirective,
|
|
17775
|
+
selector: "main[yuwLayoutBody]"
|
|
17776
|
+
}],
|
|
17777
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
17778
|
+
});
|
|
17779
|
+
}
|
|
17780
|
+
};
|
|
17781
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
17782
|
+
minVersion: "12.0.0",
|
|
17783
|
+
version: "22.2.4",
|
|
17784
|
+
ngImport: i0,
|
|
17785
|
+
type: YuwLayoutComponent,
|
|
17786
|
+
decorators: [{
|
|
17787
|
+
type: Component,
|
|
17788
|
+
args: [{
|
|
17789
|
+
selector: "yuw-layout",
|
|
17790
|
+
imports: [YuwSidebarInsetDirective, YuwLayoutBodyDirective],
|
|
17791
|
+
hostDirectives: [YuwSidebarWrapperDirective],
|
|
17792
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
17793
|
+
template: "<ng-content select=\"[yuwLayoutSidebar]\" />\n\n<main yuwSidebarInset yuwLayoutBody [class]=\"bodyClass\">\n <ng-content />\n</main>\n"
|
|
17794
|
+
}]
|
|
17795
|
+
}],
|
|
17796
|
+
ctorParameters: () => []
|
|
17797
|
+
});
|
|
17568
17798
|
const yuwCommandDefaultFilter = (value, search) => value.toLowerCase().includes(search.toLowerCase());
|
|
17569
17799
|
var YuwCommandComponent = class YuwCommandComponent {
|
|
17570
17800
|
constructor() {
|
|
@@ -19013,7 +19243,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19013
19243
|
},
|
|
19014
19244
|
providers: [provideIcons({ lucideEllipsis })],
|
|
19015
19245
|
ngImport: i0,
|
|
19016
|
-
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 #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\"
|
|
19246
|
+
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",
|
|
19017
19247
|
dependencies: [
|
|
19018
19248
|
{
|
|
19019
19249
|
kind: "directive",
|
|
@@ -19043,6 +19273,16 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19043
19273
|
"color"
|
|
19044
19274
|
]
|
|
19045
19275
|
},
|
|
19276
|
+
{
|
|
19277
|
+
kind: "directive",
|
|
19278
|
+
type: NgTemplateOutlet,
|
|
19279
|
+
selector: "[ngTemplateOutlet]",
|
|
19280
|
+
inputs: [
|
|
19281
|
+
"ngTemplateOutletContext",
|
|
19282
|
+
"ngTemplateOutlet",
|
|
19283
|
+
"ngTemplateOutletInjector"
|
|
19284
|
+
]
|
|
19285
|
+
},
|
|
19046
19286
|
{
|
|
19047
19287
|
kind: "component",
|
|
19048
19288
|
type: YuwButtonComponent,
|
|
@@ -19082,6 +19322,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19082
19322
|
imports: [
|
|
19083
19323
|
...YuwContextMenuImports,
|
|
19084
19324
|
NgIcon,
|
|
19325
|
+
NgTemplateOutlet,
|
|
19085
19326
|
YuwButtonComponent
|
|
19086
19327
|
],
|
|
19087
19328
|
providers: [provideIcons({ lucideEllipsis })],
|
|
@@ -19090,7 +19331,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19090
19331
|
"(click)": "$event.stopPropagation()",
|
|
19091
19332
|
"(keydown)": "$event.stopPropagation()"
|
|
19092
19333
|
},
|
|
19093
|
-
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 #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\"
|
|
19334
|
+
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"
|
|
19094
19335
|
}]
|
|
19095
19336
|
}],
|
|
19096
19337
|
propDecorators: {
|
|
@@ -20208,6 +20449,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20208
20449
|
transform: booleanAttribute
|
|
20209
20450
|
});
|
|
20210
20451
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
20452
|
+
this.note = input(...ngDevMode ? [void 0, { debugName: "note" }] : /* istanbul ignore next */ []);
|
|
20211
20453
|
this.open = model.required(...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
20212
20454
|
this.panelClass = input("w-full sm:max-w-md", ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
|
|
20213
20455
|
this.readonly = input(false, {
|
|
@@ -20225,6 +20467,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20225
20467
|
...ngDevMode ? { debugName: "saveDisabled" } : /* istanbul ignore next */ {},
|
|
20226
20468
|
transform: booleanAttribute
|
|
20227
20469
|
});
|
|
20470
|
+
this.saveIcon = input("lucideSave", ...ngDevMode ? [{ debugName: "saveIcon" }] : /* istanbul ignore next */ []);
|
|
20228
20471
|
this.saving = input(false, {
|
|
20229
20472
|
...ngDevMode ? { debugName: "saving" } : /* istanbul ignore next */ {},
|
|
20230
20473
|
transform: booleanAttribute
|
|
@@ -20302,6 +20545,13 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20302
20545
|
isRequired: true,
|
|
20303
20546
|
transformFunction: null
|
|
20304
20547
|
},
|
|
20548
|
+
note: {
|
|
20549
|
+
classPropertyName: "note",
|
|
20550
|
+
publicName: "note",
|
|
20551
|
+
isSignal: true,
|
|
20552
|
+
isRequired: false,
|
|
20553
|
+
transformFunction: null
|
|
20554
|
+
},
|
|
20305
20555
|
open: {
|
|
20306
20556
|
classPropertyName: "open",
|
|
20307
20557
|
publicName: "open",
|
|
@@ -20358,6 +20608,13 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20358
20608
|
isRequired: false,
|
|
20359
20609
|
transformFunction: null
|
|
20360
20610
|
},
|
|
20611
|
+
saveIcon: {
|
|
20612
|
+
classPropertyName: "saveIcon",
|
|
20613
|
+
publicName: "saveIcon",
|
|
20614
|
+
isSignal: true,
|
|
20615
|
+
isRequired: false,
|
|
20616
|
+
transformFunction: null
|
|
20617
|
+
},
|
|
20361
20618
|
saving: {
|
|
20362
20619
|
classPropertyName: "saving",
|
|
20363
20620
|
publicName: "saving",
|
|
@@ -20392,7 +20649,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20392
20649
|
useExisting: YuwsFormSheetComponent
|
|
20393
20650
|
}],
|
|
20394
20651
|
ngImport: i0,
|
|
20395
|
-
template: "<yuw-sheet\n side=\"right\"\n [showTrigger]=\"false\"\n [panelClass]=\"panelClass()\"\n bodyClass=\"scroll-fade-y\"\n [title]=\"backLabel() || guarded() ? undefined : title()\"\n [description]=\"backLabel() || guarded() ? undefined : description()\"\n [closeLabel]=\"backLabel() || guarded() ? undefined : labels().close\"\n [disableClose]=\"guarded()\"\n [(open)]=\"open\"\n>\n @if (backLabel(); as label) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-center gap-2 border-b px-4 pb-4\">\n <yuw-button type=\"button\" variant=\"outline\" size=\"icon-sm\" [ariaLabel]=\"label\" (clicked)=\"back.emit()\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n </yuw-button>\n <div class=\"min-w-0\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n </div>\n } @else if (guarded()) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-start gap-2 border-b px-4 pb-4\">\n <div class=\"min-w-0 flex-1\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n size=\"icon-sm\"\n [ariaLabel]=\"labels().close\"\n (clicked)=\"closeRequest.emit()\"\n >\n <ng-icon name=\"lucideX\" size=\"16\" />\n </yuw-button>\n </div>\n }\n\n <ng-content />\n\n <div\n yuwSheetFooter\n class=\"flex flex-wrap items-center justify-between gap-2\"\n [class.-m-4]=\"_divided()\"\n [class.border-t]=\"_divided()\"\n [class.p-4]=\"_divided()\"\n [style.display]=\"hideFooter() ? 'none' : null\"\n [attr.aria-busy]=\"saving()\"\n >\n @if (errorMessage(); as message) {\n <p role=\"alert\" class=\"w-full rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive\">{{ message }}</p>\n }\n\n @if (removeLabel(); as label) {\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n class=\"gap-2\"\n [disabled]=\"removeDisabled() || saving()\"\n (clicked)=\"remove.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n\n <span class=\"ms-auto flex gap-2\">\n <yuw-button variant=\"outline\" (clicked)=\"onCancel()\">\n <ng-icon name=\"lucideX\" size=\"16\" />\n {{ labels().cancel }}\n </yuw-button>\n @if (restoreLabel(); as label) {\n <yuw-button color=\"primary\" [disabled]=\"saving()\" (clicked)=\"restore.emit()\">\n <ng-icon name=\"lucideArchiveRestore\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n @if (!readonly()) {\n <yuw-button [color]=\"saveColor()\" [disabled]=\"saveDisabled() || saving()\" (clicked)=\"save.emit()\">\n <ng-icon
|
|
20652
|
+
template: "<yuw-sheet\n side=\"right\"\n [showTrigger]=\"false\"\n [panelClass]=\"panelClass()\"\n bodyClass=\"scroll-fade-y\"\n [title]=\"backLabel() || guarded() ? undefined : title()\"\n [description]=\"backLabel() || guarded() ? undefined : description()\"\n [note]=\"backLabel() || guarded() ? undefined : note()\"\n [closeLabel]=\"backLabel() || guarded() ? undefined : labels().close\"\n [disableClose]=\"guarded()\"\n [(open)]=\"open\"\n>\n @if (backLabel(); as label) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-center gap-2 border-b px-4 pb-4\">\n <yuw-button type=\"button\" variant=\"outline\" size=\"icon-sm\" [ariaLabel]=\"label\" (clicked)=\"back.emit()\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n </yuw-button>\n <div class=\"min-w-0\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ text }}</p>\n }\n @if (note(); as text) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n </div>\n } @else if (guarded()) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-start gap-2 border-b px-4 pb-4\">\n <div class=\"min-w-0 flex-1\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"text-sm text-muted-foreground\">{{ text }}</p>\n }\n @if (note(); as text) {\n <p class=\"text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n size=\"icon-sm\"\n [ariaLabel]=\"labels().close\"\n (clicked)=\"closeRequest.emit()\"\n >\n <ng-icon name=\"lucideX\" size=\"16\" />\n </yuw-button>\n </div>\n }\n\n <ng-content />\n\n <div\n yuwSheetFooter\n class=\"flex flex-wrap items-center justify-between gap-2\"\n [class.-m-4]=\"_divided()\"\n [class.border-t]=\"_divided()\"\n [class.p-4]=\"_divided()\"\n [style.display]=\"hideFooter() ? 'none' : null\"\n [attr.aria-busy]=\"saving()\"\n >\n @if (errorMessage(); as message) {\n <p role=\"alert\" class=\"w-full rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive\">{{ message }}</p>\n }\n\n @if (removeLabel(); as label) {\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n class=\"gap-2\"\n [disabled]=\"removeDisabled() || saving()\"\n (clicked)=\"remove.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n\n <span class=\"ms-auto flex gap-2\">\n <yuw-button variant=\"outline\" (clicked)=\"onCancel()\">\n <ng-icon name=\"lucideX\" size=\"16\" />\n {{ labels().cancel }}\n </yuw-button>\n @if (restoreLabel(); as label) {\n <yuw-button color=\"primary\" [disabled]=\"saving()\" (clicked)=\"restore.emit()\">\n <ng-icon name=\"lucideArchiveRestore\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n @if (!readonly()) {\n <yuw-button [color]=\"saveColor()\" [disabled]=\"saveDisabled() || saving()\" (clicked)=\"save.emit()\">\n <ng-icon size=\"16\" [name]=\"saveIcon()\" />\n {{ labels().save }}\n </yuw-button>\n }\n </span>\n </div>\n</yuw-sheet>\n",
|
|
20396
20653
|
dependencies: [
|
|
20397
20654
|
{
|
|
20398
20655
|
kind: "component",
|
|
@@ -20439,6 +20696,8 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20439
20696
|
"closeOnOutsidePointerEvents",
|
|
20440
20697
|
"description",
|
|
20441
20698
|
"disableClose",
|
|
20699
|
+
"layoutInset",
|
|
20700
|
+
"note",
|
|
20442
20701
|
"open",
|
|
20443
20702
|
"overlayClass",
|
|
20444
20703
|
"panelClass",
|
|
@@ -20493,7 +20752,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20493
20752
|
provide: YuwSheetOpenState,
|
|
20494
20753
|
useExisting: YuwsFormSheetComponent
|
|
20495
20754
|
}],
|
|
20496
|
-
template: "<yuw-sheet\n side=\"right\"\n [showTrigger]=\"false\"\n [panelClass]=\"panelClass()\"\n bodyClass=\"scroll-fade-y\"\n [title]=\"backLabel() || guarded() ? undefined : title()\"\n [description]=\"backLabel() || guarded() ? undefined : description()\"\n [closeLabel]=\"backLabel() || guarded() ? undefined : labels().close\"\n [disableClose]=\"guarded()\"\n [(open)]=\"open\"\n>\n @if (backLabel(); as label) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-center gap-2 border-b px-4 pb-4\">\n <yuw-button type=\"button\" variant=\"outline\" size=\"icon-sm\" [ariaLabel]=\"label\" (clicked)=\"back.emit()\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n </yuw-button>\n <div class=\"min-w-0\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n </div>\n } @else if (guarded()) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-start gap-2 border-b px-4 pb-4\">\n <div class=\"min-w-0 flex-1\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n size=\"icon-sm\"\n [ariaLabel]=\"labels().close\"\n (clicked)=\"closeRequest.emit()\"\n >\n <ng-icon name=\"lucideX\" size=\"16\" />\n </yuw-button>\n </div>\n }\n\n <ng-content />\n\n <div\n yuwSheetFooter\n class=\"flex flex-wrap items-center justify-between gap-2\"\n [class.-m-4]=\"_divided()\"\n [class.border-t]=\"_divided()\"\n [class.p-4]=\"_divided()\"\n [style.display]=\"hideFooter() ? 'none' : null\"\n [attr.aria-busy]=\"saving()\"\n >\n @if (errorMessage(); as message) {\n <p role=\"alert\" class=\"w-full rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive\">{{ message }}</p>\n }\n\n @if (removeLabel(); as label) {\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n class=\"gap-2\"\n [disabled]=\"removeDisabled() || saving()\"\n (clicked)=\"remove.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n\n <span class=\"ms-auto flex gap-2\">\n <yuw-button variant=\"outline\" (clicked)=\"onCancel()\">\n <ng-icon name=\"lucideX\" size=\"16\" />\n {{ labels().cancel }}\n </yuw-button>\n @if (restoreLabel(); as label) {\n <yuw-button color=\"primary\" [disabled]=\"saving()\" (clicked)=\"restore.emit()\">\n <ng-icon name=\"lucideArchiveRestore\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n @if (!readonly()) {\n <yuw-button [color]=\"saveColor()\" [disabled]=\"saveDisabled() || saving()\" (clicked)=\"save.emit()\">\n <ng-icon
|
|
20755
|
+
template: "<yuw-sheet\n side=\"right\"\n [showTrigger]=\"false\"\n [panelClass]=\"panelClass()\"\n bodyClass=\"scroll-fade-y\"\n [title]=\"backLabel() || guarded() ? undefined : title()\"\n [description]=\"backLabel() || guarded() ? undefined : description()\"\n [note]=\"backLabel() || guarded() ? undefined : note()\"\n [closeLabel]=\"backLabel() || guarded() ? undefined : labels().close\"\n [disableClose]=\"guarded()\"\n [(open)]=\"open\"\n>\n @if (backLabel(); as label) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-center gap-2 border-b px-4 pb-4\">\n <yuw-button type=\"button\" variant=\"outline\" size=\"icon-sm\" [ariaLabel]=\"label\" (clicked)=\"back.emit()\">\n <ng-icon name=\"lucideArrowLeft\" size=\"16\" />\n </yuw-button>\n <div class=\"min-w-0\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ text }}</p>\n }\n @if (note(); as text) {\n <p class=\"truncate text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n </div>\n } @else if (guarded()) {\n <div yuwSheetHeader class=\"-mx-4 -mt-3 flex items-start gap-2 border-b px-4 pb-4\">\n <div class=\"min-w-0 flex-1\">\n <h2 class=\"text-base font-medium text-foreground\">{{ title() }}</h2>\n @if (description(); as text) {\n <p class=\"text-sm text-muted-foreground\">{{ text }}</p>\n }\n @if (note(); as text) {\n <p class=\"text-sm text-muted-foreground\">{{ text }}</p>\n }\n </div>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n size=\"icon-sm\"\n [ariaLabel]=\"labels().close\"\n (clicked)=\"closeRequest.emit()\"\n >\n <ng-icon name=\"lucideX\" size=\"16\" />\n </yuw-button>\n </div>\n }\n\n <ng-content />\n\n <div\n yuwSheetFooter\n class=\"flex flex-wrap items-center justify-between gap-2\"\n [class.-m-4]=\"_divided()\"\n [class.border-t]=\"_divided()\"\n [class.p-4]=\"_divided()\"\n [style.display]=\"hideFooter() ? 'none' : null\"\n [attr.aria-busy]=\"saving()\"\n >\n @if (errorMessage(); as message) {\n <p role=\"alert\" class=\"w-full rounded-md bg-destructive/10 px-3 py-2 text-sm text-destructive\">{{ message }}</p>\n }\n\n @if (removeLabel(); as label) {\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n class=\"gap-2\"\n [disabled]=\"removeDisabled() || saving()\"\n (clicked)=\"remove.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n\n <span class=\"ms-auto flex gap-2\">\n <yuw-button variant=\"outline\" (clicked)=\"onCancel()\">\n <ng-icon name=\"lucideX\" size=\"16\" />\n {{ labels().cancel }}\n </yuw-button>\n @if (restoreLabel(); as label) {\n <yuw-button color=\"primary\" [disabled]=\"saving()\" (clicked)=\"restore.emit()\">\n <ng-icon name=\"lucideArchiveRestore\" size=\"16\" />\n {{ label }}\n </yuw-button>\n }\n @if (!readonly()) {\n <yuw-button [color]=\"saveColor()\" [disabled]=\"saveDisabled() || saving()\" (clicked)=\"save.emit()\">\n <ng-icon size=\"16\" [name]=\"saveIcon()\" />\n {{ labels().save }}\n </yuw-button>\n }\n </span>\n </div>\n</yuw-sheet>\n"
|
|
20497
20756
|
}]
|
|
20498
20757
|
}],
|
|
20499
20758
|
propDecorators: {
|
|
@@ -20545,6 +20804,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20545
20804
|
required: true
|
|
20546
20805
|
}]
|
|
20547
20806
|
}],
|
|
20807
|
+
note: [{
|
|
20808
|
+
type: i0.Input,
|
|
20809
|
+
args: [{
|
|
20810
|
+
isSignal: true,
|
|
20811
|
+
alias: "note",
|
|
20812
|
+
required: false
|
|
20813
|
+
}]
|
|
20814
|
+
}],
|
|
20548
20815
|
open: [{
|
|
20549
20816
|
type: i0.Input,
|
|
20550
20817
|
args: [{
|
|
@@ -20612,6 +20879,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20612
20879
|
required: false
|
|
20613
20880
|
}]
|
|
20614
20881
|
}],
|
|
20882
|
+
saveIcon: [{
|
|
20883
|
+
type: i0.Input,
|
|
20884
|
+
args: [{
|
|
20885
|
+
isSignal: true,
|
|
20886
|
+
alias: "saveIcon",
|
|
20887
|
+
required: false
|
|
20888
|
+
}]
|
|
20889
|
+
}],
|
|
20615
20890
|
saving: [{
|
|
20616
20891
|
type: i0.Input,
|
|
20617
20892
|
args: [{
|
|
@@ -25044,6 +25319,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
25044
25319
|
}]
|
|
25045
25320
|
}
|
|
25046
25321
|
});
|
|
25047
|
-
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,
|
|
25322
|
+
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 };
|
|
25048
25323
|
|
|
25049
25324
|
//# sourceMappingURL=yukit-web.mjs.map
|