yukit-web 0.11.5 → 0.13.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 +68 -6
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/types/yukit-web.d.ts +26 -2
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -4937,6 +4937,7 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
4937
4937
|
...ngDevMode ? { debugName: "disableClose" } : /* istanbul ignore next */ {},
|
|
4938
4938
|
transform: booleanAttribute
|
|
4939
4939
|
});
|
|
4940
|
+
this.note = input(void 0, ...ngDevMode ? [{ debugName: "note" }] : /* istanbul ignore next */ []);
|
|
4940
4941
|
this.open = model(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
4941
4942
|
this.overlayClass = input(void 0, ...ngDevMode ? [{ debugName: "overlayClass" }] : /* istanbul ignore next */ []);
|
|
4942
4943
|
this.panelClass = input(void 0, ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
|
|
@@ -5030,6 +5031,13 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5030
5031
|
isRequired: false,
|
|
5031
5032
|
transformFunction: null
|
|
5032
5033
|
},
|
|
5034
|
+
note: {
|
|
5035
|
+
classPropertyName: "note",
|
|
5036
|
+
publicName: "note",
|
|
5037
|
+
isSignal: true,
|
|
5038
|
+
isRequired: false,
|
|
5039
|
+
transformFunction: null
|
|
5040
|
+
},
|
|
5033
5041
|
open: {
|
|
5034
5042
|
classPropertyName: "open",
|
|
5035
5043
|
publicName: "open",
|
|
@@ -5121,7 +5129,7 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5121
5129
|
isSignal: true
|
|
5122
5130
|
}],
|
|
5123
5131
|
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]=\"panelClass()\">\n @if (title() || description()) {\n <div hlmSheetHeader>\n @if (title()) {\n <h2 hlmSheetTitle>{{ title() }}</h2>\n }\n @if (description()) {\n <p hlmSheetDescription>{{ description() }}</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",
|
|
5132
|
+
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
5133
|
dependencies: [
|
|
5126
5134
|
{
|
|
5127
5135
|
kind: "component",
|
|
@@ -5241,7 +5249,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5241
5249
|
}],
|
|
5242
5250
|
host: { class: "contents" },
|
|
5243
5251
|
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]=\"panelClass()\">\n @if (title() || description()) {\n <div hlmSheetHeader>\n @if (title()) {\n <h2 hlmSheetTitle>{{ title() }}</h2>\n }\n @if (description()) {\n <p hlmSheetDescription>{{ description() }}</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"
|
|
5252
|
+
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
5253
|
}]
|
|
5246
5254
|
}],
|
|
5247
5255
|
ctorParameters: () => [],
|
|
@@ -5314,6 +5322,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5314
5322
|
required: false
|
|
5315
5323
|
}]
|
|
5316
5324
|
}],
|
|
5325
|
+
note: [{
|
|
5326
|
+
type: i0.Input,
|
|
5327
|
+
args: [{
|
|
5328
|
+
isSignal: true,
|
|
5329
|
+
alias: "note",
|
|
5330
|
+
required: false
|
|
5331
|
+
}]
|
|
5332
|
+
}],
|
|
5317
5333
|
open: [{
|
|
5318
5334
|
type: i0.Input,
|
|
5319
5335
|
args: [{
|
|
@@ -5781,6 +5797,7 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5781
5797
|
"closeOnOutsidePointerEvents",
|
|
5782
5798
|
"description",
|
|
5783
5799
|
"disableClose",
|
|
5800
|
+
"note",
|
|
5784
5801
|
"open",
|
|
5785
5802
|
"overlayClass",
|
|
5786
5803
|
"panelClass",
|
|
@@ -17155,6 +17172,7 @@ var YuwSidebarSubmenuSheetComponent = class YuwSidebarSubmenuSheetComponent {
|
|
|
17155
17172
|
"closeOnOutsidePointerEvents",
|
|
17156
17173
|
"description",
|
|
17157
17174
|
"disableClose",
|
|
17175
|
+
"note",
|
|
17158
17176
|
"open",
|
|
17159
17177
|
"overlayClass",
|
|
17160
17178
|
"panelClass",
|
|
@@ -19013,7 +19031,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19013
19031
|
},
|
|
19014
19032
|
providers: [provideIcons({ lucideEllipsis })],
|
|
19015
19033
|
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\"
|
|
19034
|
+
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
19035
|
dependencies: [
|
|
19018
19036
|
{
|
|
19019
19037
|
kind: "directive",
|
|
@@ -19043,6 +19061,16 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19043
19061
|
"color"
|
|
19044
19062
|
]
|
|
19045
19063
|
},
|
|
19064
|
+
{
|
|
19065
|
+
kind: "directive",
|
|
19066
|
+
type: NgTemplateOutlet,
|
|
19067
|
+
selector: "[ngTemplateOutlet]",
|
|
19068
|
+
inputs: [
|
|
19069
|
+
"ngTemplateOutletContext",
|
|
19070
|
+
"ngTemplateOutlet",
|
|
19071
|
+
"ngTemplateOutletInjector"
|
|
19072
|
+
]
|
|
19073
|
+
},
|
|
19046
19074
|
{
|
|
19047
19075
|
kind: "component",
|
|
19048
19076
|
type: YuwButtonComponent,
|
|
@@ -19082,6 +19110,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19082
19110
|
imports: [
|
|
19083
19111
|
...YuwContextMenuImports,
|
|
19084
19112
|
NgIcon,
|
|
19113
|
+
NgTemplateOutlet,
|
|
19085
19114
|
YuwButtonComponent
|
|
19086
19115
|
],
|
|
19087
19116
|
providers: [provideIcons({ lucideEllipsis })],
|
|
@@ -19090,7 +19119,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19090
19119
|
"(click)": "$event.stopPropagation()",
|
|
19091
19120
|
"(keydown)": "$event.stopPropagation()"
|
|
19092
19121
|
},
|
|
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\"
|
|
19122
|
+
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
19123
|
}]
|
|
19095
19124
|
}],
|
|
19096
19125
|
propDecorators: {
|
|
@@ -20208,6 +20237,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20208
20237
|
transform: booleanAttribute
|
|
20209
20238
|
});
|
|
20210
20239
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
20240
|
+
this.note = input(...ngDevMode ? [void 0, { debugName: "note" }] : /* istanbul ignore next */ []);
|
|
20211
20241
|
this.open = model.required(...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
20212
20242
|
this.panelClass = input("w-full sm:max-w-md", ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
|
|
20213
20243
|
this.readonly = input(false, {
|
|
@@ -20225,6 +20255,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20225
20255
|
...ngDevMode ? { debugName: "saveDisabled" } : /* istanbul ignore next */ {},
|
|
20226
20256
|
transform: booleanAttribute
|
|
20227
20257
|
});
|
|
20258
|
+
this.saveIcon = input("lucideSave", ...ngDevMode ? [{ debugName: "saveIcon" }] : /* istanbul ignore next */ []);
|
|
20228
20259
|
this.saving = input(false, {
|
|
20229
20260
|
...ngDevMode ? { debugName: "saving" } : /* istanbul ignore next */ {},
|
|
20230
20261
|
transform: booleanAttribute
|
|
@@ -20302,6 +20333,13 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20302
20333
|
isRequired: true,
|
|
20303
20334
|
transformFunction: null
|
|
20304
20335
|
},
|
|
20336
|
+
note: {
|
|
20337
|
+
classPropertyName: "note",
|
|
20338
|
+
publicName: "note",
|
|
20339
|
+
isSignal: true,
|
|
20340
|
+
isRequired: false,
|
|
20341
|
+
transformFunction: null
|
|
20342
|
+
},
|
|
20305
20343
|
open: {
|
|
20306
20344
|
classPropertyName: "open",
|
|
20307
20345
|
publicName: "open",
|
|
@@ -20358,6 +20396,13 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20358
20396
|
isRequired: false,
|
|
20359
20397
|
transformFunction: null
|
|
20360
20398
|
},
|
|
20399
|
+
saveIcon: {
|
|
20400
|
+
classPropertyName: "saveIcon",
|
|
20401
|
+
publicName: "saveIcon",
|
|
20402
|
+
isSignal: true,
|
|
20403
|
+
isRequired: false,
|
|
20404
|
+
transformFunction: null
|
|
20405
|
+
},
|
|
20361
20406
|
saving: {
|
|
20362
20407
|
classPropertyName: "saving",
|
|
20363
20408
|
publicName: "saving",
|
|
@@ -20392,7 +20437,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20392
20437
|
useExisting: YuwsFormSheetComponent
|
|
20393
20438
|
}],
|
|
20394
20439
|
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
|
|
20440
|
+
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
20441
|
dependencies: [
|
|
20397
20442
|
{
|
|
20398
20443
|
kind: "component",
|
|
@@ -20439,6 +20484,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20439
20484
|
"closeOnOutsidePointerEvents",
|
|
20440
20485
|
"description",
|
|
20441
20486
|
"disableClose",
|
|
20487
|
+
"note",
|
|
20442
20488
|
"open",
|
|
20443
20489
|
"overlayClass",
|
|
20444
20490
|
"panelClass",
|
|
@@ -20493,7 +20539,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20493
20539
|
provide: YuwSheetOpenState,
|
|
20494
20540
|
useExisting: YuwsFormSheetComponent
|
|
20495
20541
|
}],
|
|
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
|
|
20542
|
+
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
20543
|
}]
|
|
20498
20544
|
}],
|
|
20499
20545
|
propDecorators: {
|
|
@@ -20545,6 +20591,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20545
20591
|
required: true
|
|
20546
20592
|
}]
|
|
20547
20593
|
}],
|
|
20594
|
+
note: [{
|
|
20595
|
+
type: i0.Input,
|
|
20596
|
+
args: [{
|
|
20597
|
+
isSignal: true,
|
|
20598
|
+
alias: "note",
|
|
20599
|
+
required: false
|
|
20600
|
+
}]
|
|
20601
|
+
}],
|
|
20548
20602
|
open: [{
|
|
20549
20603
|
type: i0.Input,
|
|
20550
20604
|
args: [{
|
|
@@ -20612,6 +20666,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20612
20666
|
required: false
|
|
20613
20667
|
}]
|
|
20614
20668
|
}],
|
|
20669
|
+
saveIcon: [{
|
|
20670
|
+
type: i0.Input,
|
|
20671
|
+
args: [{
|
|
20672
|
+
isSignal: true,
|
|
20673
|
+
alias: "saveIcon",
|
|
20674
|
+
required: false
|
|
20675
|
+
}]
|
|
20676
|
+
}],
|
|
20615
20677
|
saving: [{
|
|
20616
20678
|
type: i0.Input,
|
|
20617
20679
|
args: [{
|