yukit-web 1.1.2 → 1.1.3
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
CHANGED
|
@@ -4981,6 +4981,7 @@ const yuwSheetBottomClass = `
|
|
|
4981
4981
|
data-[side=bottom]:rounded-4xl
|
|
4982
4982
|
data-[side=bottom]:overflow-hidden
|
|
4983
4983
|
`;
|
|
4984
|
+
const yuwSheetRightClass = "data-[side=right]:w-full data-[side=right]:sm:max-w-[480px]";
|
|
4984
4985
|
const yuwLayoutLeftInsetClass = `
|
|
4985
4986
|
data-[side=left]:inset-y-1
|
|
4986
4987
|
lg:data-[side=left]:inset-y-2
|
|
@@ -5049,7 +5050,7 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5049
5050
|
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 */ []);
|
|
5050
5051
|
this._panelClass = computed(() => {
|
|
5051
5052
|
const inset = this.layoutInset();
|
|
5052
|
-
return cn(yuwSheetBottomClass, inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
5053
|
+
return cn(yuwSheetBottomClass, yuwSheetRightClass, inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
5053
5054
|
}, ...ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []);
|
|
5054
5055
|
this._sheetState = computed(() => this.open() ? "open" : "closed", ...ngDevMode ? [{ debugName: "_sheetState" }] : /* istanbul ignore next */ []);
|
|
5055
5056
|
const root = inject(DOCUMENT$1).documentElement;
|
|
@@ -7525,7 +7526,7 @@ var YuwSwitchCardComponent = class YuwSwitchCardComponent extends YuwValueAccess
|
|
|
7525
7526
|
providers: [provideValueAccessor(YuwSwitchCardComponent)],
|
|
7526
7527
|
usesInheritance: true,
|
|
7527
7528
|
ngImport: i0,
|
|
7528
|
-
template: "<label [class]=\"_cardClass\" (focusout)=\"_onBlur()\">\n <span class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <span [id]=\"_labelId\" class=\"text-sm font-semibold text-foreground\">{{ label() }}</span>\n @if (description(); as text) {\n <span [id]=\"_descriptionId\" class=\"text-
|
|
7529
|
+
template: "<label [class]=\"_cardClass\" (focusout)=\"_onBlur()\">\n <span class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <span [id]=\"_labelId\" class=\"text-sm font-semibold text-foreground\">{{ label() }}</span>\n @if (description(); as text) {\n <span [id]=\"_descriptionId\" class=\"text-xs text-muted-foreground\">{{ text }}</span>\n }\n </span>\n <hlm-switch\n [checked]=\"value()\"\n [class]=\"_switchClass\"\n [disabled]=\"_disabled()\"\n [inputId]=\"inputId() ?? null\"\n [aria-labelledby]=\"_labelId\"\n [aria-describedby]=\"_describedBy()\"\n (checkedChange)=\"onCheckedChange($event)\"\n />\n</label>\n",
|
|
7529
7530
|
dependencies: [{
|
|
7530
7531
|
kind: "component",
|
|
7531
7532
|
type: i1$20.HlmSwitch,
|
|
@@ -7559,7 +7560,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7559
7560
|
providers: [provideValueAccessor(YuwSwitchCardComponent)],
|
|
7560
7561
|
host: { class: "block" },
|
|
7561
7562
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7562
|
-
template: "<label [class]=\"_cardClass\" (focusout)=\"_onBlur()\">\n <span class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <span [id]=\"_labelId\" class=\"text-sm font-semibold text-foreground\">{{ label() }}</span>\n @if (description(); as text) {\n <span [id]=\"_descriptionId\" class=\"text-
|
|
7563
|
+
template: "<label [class]=\"_cardClass\" (focusout)=\"_onBlur()\">\n <span class=\"flex min-w-0 flex-1 flex-col gap-1\">\n <span [id]=\"_labelId\" class=\"text-sm font-semibold text-foreground\">{{ label() }}</span>\n @if (description(); as text) {\n <span [id]=\"_descriptionId\" class=\"text-xs text-muted-foreground\">{{ text }}</span>\n }\n </span>\n <hlm-switch\n [checked]=\"value()\"\n [class]=\"_switchClass\"\n [disabled]=\"_disabled()\"\n [inputId]=\"inputId() ?? null\"\n [aria-labelledby]=\"_labelId\"\n [aria-describedby]=\"_describedBy()\"\n (checkedChange)=\"onCheckedChange($event)\"\n />\n</label>\n"
|
|
7563
7564
|
}]
|
|
7564
7565
|
}],
|
|
7565
7566
|
propDecorators: {
|
|
@@ -19225,7 +19226,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19225
19226
|
});
|
|
19226
19227
|
const SIZE_CLASS = {
|
|
19227
19228
|
md: "h-11.25 w-11.25",
|
|
19228
|
-
lg: "size-15
|
|
19229
|
+
lg: "size-15"
|
|
19229
19230
|
};
|
|
19230
19231
|
var YuwsImageCellComponent = class YuwsImageCellComponent {
|
|
19231
19232
|
constructor() {
|
|
@@ -19276,7 +19277,7 @@ var YuwsImageCellComponent = class YuwsImageCellComponent {
|
|
|
19276
19277
|
}
|
|
19277
19278
|
},
|
|
19278
19279
|
ngImport: i0,
|
|
19279
|
-
template: "<yuw-avatar [class]=\"sizeClass()\" [src]=\"imageUrl()\" [alt]=\"name()\" [fallback]=\"initials()\" />\n",
|
|
19280
|
+
template: "<yuw-avatar shape=\"square\" [class]=\"sizeClass()\" [src]=\"imageUrl()\" [alt]=\"name()\" [fallback]=\"initials()\" />\n",
|
|
19280
19281
|
dependencies: [{
|
|
19281
19282
|
kind: "component",
|
|
19282
19283
|
type: YuwAvatarComponent,
|
|
@@ -19308,7 +19309,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19308
19309
|
selector: "yuws-image-cell",
|
|
19309
19310
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19310
19311
|
imports: [YuwAvatarComponent],
|
|
19311
|
-
template: "<yuw-avatar [class]=\"sizeClass()\" [src]=\"imageUrl()\" [alt]=\"name()\" [fallback]=\"initials()\" />\n"
|
|
19312
|
+
template: "<yuw-avatar shape=\"square\" [class]=\"sizeClass()\" [src]=\"imageUrl()\" [alt]=\"name()\" [fallback]=\"initials()\" />\n"
|
|
19312
19313
|
}]
|
|
19313
19314
|
}],
|
|
19314
19315
|
propDecorators: {
|
|
@@ -20730,7 +20731,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20730
20731
|
this.layoutInset = input("right", ...ngDevMode ? [{ debugName: "layoutInset" }] : /* istanbul ignore next */ []);
|
|
20731
20732
|
this.note = input(...ngDevMode ? [void 0, { debugName: "note" }] : /* istanbul ignore next */ []);
|
|
20732
20733
|
this.open = model.required(...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
20733
|
-
this.panelClass = input(
|
|
20734
|
+
this.panelClass = input(void 0, ...ngDevMode ? [{ debugName: "panelClass" }] : /* istanbul ignore next */ []);
|
|
20734
20735
|
this.readonly = input(false, {
|
|
20735
20736
|
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
20736
20737
|
transform: booleanAttribute
|