yukit-web 1.0.3 → 1.1.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 +227 -77
- package/fesm2022/yukit-web.mjs.map +1 -1
- package/package.json +1 -1
- package/src/lib/theme/spartan-overwrites/dialog.css +35 -0
- package/src/lib/theme/spartan-overwrites/overlay.css +18 -0
- package/src/lib/theme/theme.css +2 -0
- package/src/lib/theme/tokens/color.css +46 -50
- package/src/lib/theme/tokens/component-colors.css +1 -1
- package/types/yukit-web.d.ts +47 -8
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -2249,6 +2249,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2249
2249
|
}]
|
|
2250
2250
|
}
|
|
2251
2251
|
});
|
|
2252
|
+
const YUW_FIELD_FILL_CLASS = "bg-(color:--neutrals-fill-input) dark:bg-(color:--neutrals-fill-input)";
|
|
2252
2253
|
const yuwFieldSizeVariants = cva("", {
|
|
2253
2254
|
variants: { size: {
|
|
2254
2255
|
default: "h-10",
|
|
@@ -2888,11 +2889,11 @@ var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBa
|
|
|
2888
2889
|
this._focusSelectors = ["input", "button"];
|
|
2889
2890
|
this._generatedId = `yuw-combobox-${++nextUniqueId$2}`;
|
|
2890
2891
|
this._itemToString = (value) => this._labelByValue().get(value) ?? value;
|
|
2891
|
-
this._chipsClass = computed(() => yuwFieldMinHeightVariants({ size: this.size() }), ...ngDevMode ? [{ debugName: "_chipsClass" }] : /* istanbul ignore next */ []);
|
|
2892
|
+
this._chipsClass = computed(() => cn(yuwFieldMinHeightVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS), ...ngDevMode ? [{ debugName: "_chipsClass" }] : /* istanbul ignore next */ []);
|
|
2892
2893
|
this._clearVisible = computed(() => this.clearAriaLabel() !== void 0, ...ngDevMode ? [{ debugName: "_clearVisible" }] : /* istanbul ignore next */ []);
|
|
2893
2894
|
this._contentClass = computed(() => this.triggerTemplate() ? "w-auto min-w-56 max-w-80" : "", ...ngDevMode ? [{ debugName: "_contentClass" }] : /* istanbul ignore next */ []);
|
|
2894
2895
|
this._controlId = computed(() => this.inputId() ?? this._generatedId, ...ngDevMode ? [{ debugName: "_controlId" }] : /* istanbul ignore next */ []);
|
|
2895
|
-
this._fieldClass = computed(() => yuwFieldSizeVariants({ size: this.size() }), ...ngDevMode ? [{ debugName: "_fieldClass" }] : /* istanbul ignore next */ []);
|
|
2896
|
+
this._fieldClass = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS), ...ngDevMode ? [{ debugName: "_fieldClass" }] : /* istanbul ignore next */ []);
|
|
2896
2897
|
this._itemClass = computed(() => this.checkboxes() ? CHECKBOX_ITEM_CLASS : "", ...ngDevMode ? [{ debugName: "_itemClass" }] : /* istanbul ignore next */ []);
|
|
2897
2898
|
this._labelByValue = computed(() => new Map(this.options().map((option) => [option.value, option.label])), ...ngDevMode ? [{ debugName: "_labelByValue" }] : /* istanbul ignore next */ []);
|
|
2898
2899
|
this._multipleValue = computed(() => {
|
|
@@ -2913,7 +2914,7 @@ var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBa
|
|
|
2913
2914
|
const value = this.value();
|
|
2914
2915
|
return Array.isArray(value) ? value[0] : value;
|
|
2915
2916
|
}, ...ngDevMode ? [{ debugName: "_singleValue" }] : /* istanbul ignore next */ []);
|
|
2916
|
-
this._triggerClass = computed(() => yuwButtonVariants({ size: this.size() }), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
2917
|
+
this._triggerClass = computed(() => cn(yuwButtonVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
2917
2918
|
this._triggerContext = computed(() => {
|
|
2918
2919
|
const labels = this._selectedChips().map((chip) => chip.label);
|
|
2919
2920
|
return {
|
|
@@ -3913,7 +3914,7 @@ var YuwInputComponent = class YuwInputComponent extends YuwTextFieldBase {
|
|
|
3913
3914
|
this.enterPressed = output();
|
|
3914
3915
|
this._autoId = `yuw-input-${++nextYuwInputId}`;
|
|
3915
3916
|
this._focusSelectors = ["input"];
|
|
3916
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
3917
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
3917
3918
|
this._hasLeftAddon = computed(() => this._leftAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasLeftAddon" }] : /* istanbul ignore next */ []);
|
|
3918
3919
|
this._hasRightAddon = computed(() => this._rightAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasRightAddon" }] : /* istanbul ignore next */ []);
|
|
3919
3920
|
this._hasAddons = computed(() => this._hasLeftAddon() || this._hasRightAddon(), ...ngDevMode ? [{ debugName: "_hasAddons" }] : /* istanbul ignore next */ []);
|
|
@@ -4916,6 +4917,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4916
4917
|
args: [{ selector: "[yuwSheetHeader]" }]
|
|
4917
4918
|
}]
|
|
4918
4919
|
});
|
|
4920
|
+
const yuwSheetBottomClass = `
|
|
4921
|
+
data-[side=bottom]:inset-x-1
|
|
4922
|
+
lg:data-[side=bottom]:inset-x-2
|
|
4923
|
+
data-[side=bottom]:bottom-1
|
|
4924
|
+
lg:data-[side=bottom]:bottom-2
|
|
4925
|
+
data-[side=bottom]:rounded-4xl
|
|
4926
|
+
data-[side=bottom]:overflow-hidden
|
|
4927
|
+
`;
|
|
4919
4928
|
const yuwLayoutLeftInsetClass = `
|
|
4920
4929
|
data-[side=left]:inset-y-1
|
|
4921
4930
|
lg:data-[side=left]:inset-y-2
|
|
@@ -4940,13 +4949,6 @@ const YUW_LAYOUT_BODY_VARS = {
|
|
|
4940
4949
|
bottom: "--yuw-layout-body-bottom",
|
|
4941
4950
|
left: "--yuw-layout-body-left"
|
|
4942
4951
|
};
|
|
4943
|
-
const yuwLayoutBackdropClass = `
|
|
4944
|
-
top-[var(--yuw-layout-body-top,0px)]!
|
|
4945
|
-
right-[var(--yuw-layout-body-right,0px)]!
|
|
4946
|
-
bottom-[var(--yuw-layout-body-bottom,0px)]!
|
|
4947
|
-
left-[var(--yuw-layout-body-left,0px)]!
|
|
4948
|
-
rounded-4xl
|
|
4949
|
-
`;
|
|
4950
4952
|
const YUW_SHEET_LAYOUT_INSET_CLASS = {
|
|
4951
4953
|
left: yuwLayoutLeftInsetClass,
|
|
4952
4954
|
right: yuwLayoutRightInsetClass
|
|
@@ -4989,17 +4991,16 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
4989
4991
|
this.triggerSize = input("default", ...ngDevMode ? [{ debugName: "triggerSize" }] : /* istanbul ignore next */ []);
|
|
4990
4992
|
this.triggerVariant = input("outline", ...ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []);
|
|
4991
4993
|
this._bodyClass = computed(() => cn("flex-1 overflow-y-auto px-4 scroll-fade-y [scrollbar-width:none] [&::-webkit-scrollbar]:hidden", this.bodyClass()), ...ngDevMode ? [{ debugName: "_bodyClass" }] : /* istanbul ignore next */ []);
|
|
4992
|
-
this._overlayClass = computed(() => this.layoutInset() ? cn(yuwLayoutBackdropClass, this.overlayClass()) : this.overlayClass(), ...ngDevMode ? [{ debugName: "_overlayClass" }] : /* istanbul ignore next */ []);
|
|
4993
4994
|
this._panelClass = computed(() => {
|
|
4994
4995
|
const inset = this.layoutInset();
|
|
4995
|
-
return cn(inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
4996
|
+
return cn(yuwSheetBottomClass, inset ? YUW_SHEET_LAYOUT_INSET_CLASS[inset] : void 0, this.panelClass());
|
|
4996
4997
|
}, ...ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []);
|
|
4997
4998
|
this._sheetState = computed(() => this.open() ? "open" : "closed", ...ngDevMode ? [{ debugName: "_sheetState" }] : /* istanbul ignore next */ []);
|
|
4998
4999
|
const root = inject(DOCUMENT$1).documentElement;
|
|
4999
5000
|
inject(DestroyRef).onDestroy(() => root.classList.remove(YUW_SHEET_OPEN_CLASS));
|
|
5000
5001
|
effect(() => root.classList.toggle(YUW_SHEET_OPEN_CLASS, this.open()));
|
|
5001
5002
|
effect(() => {
|
|
5002
|
-
const overlayClass = this.
|
|
5003
|
+
const overlayClass = this.overlayClass();
|
|
5003
5004
|
if (overlayClass === void 0) return;
|
|
5004
5005
|
this.sheet().setOverlayClass(cn(YUW_SHEET_OVERLAY_BASE_CLASS, overlayClass));
|
|
5005
5006
|
});
|
|
@@ -5179,7 +5180,7 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5179
5180
|
isSignal: true
|
|
5180
5181
|
}],
|
|
5181
5182
|
ngImport: i0,
|
|
5182
|
-
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-
|
|
5183
|
+
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-accent)\">\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",
|
|
5183
5184
|
dependencies: [
|
|
5184
5185
|
{
|
|
5185
5186
|
kind: "component",
|
|
@@ -5299,7 +5300,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5299
5300
|
}],
|
|
5300
5301
|
host: { class: "contents" },
|
|
5301
5302
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5302
|
-
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-
|
|
5303
|
+
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-accent)\">\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"
|
|
5303
5304
|
}]
|
|
5304
5305
|
}],
|
|
5305
5306
|
ctorParameters: () => [],
|
|
@@ -5532,7 +5533,7 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5532
5533
|
this._isMobile = injectIsMobile();
|
|
5533
5534
|
this._listOpen = signal(false, ...ngDevMode ? [{ debugName: "_listOpen" }] : /* istanbul ignore next */ []);
|
|
5534
5535
|
this._preview = signal(void 0, ...ngDevMode ? [{ debugName: "_preview" }] : /* istanbul ignore next */ []);
|
|
5535
|
-
this._boxClasses = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), "flex min-w-0 items-center justify-between gap-2 rounded-lg border border-input
|
|
5536
|
+
this._boxClasses = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, "flex min-w-0 items-center justify-between gap-2 rounded-lg border border-input ps-2.5 pe-2 text-sm"), ...ngDevMode ? [{ debugName: "_boxClasses" }] : /* istanbul ignore next */ []);
|
|
5536
5537
|
this._countText = computed(() => this.countLabel()?.(this.value().length), ...ngDevMode ? [{ debugName: "_countText" }] : /* istanbul ignore next */ []);
|
|
5537
5538
|
this._entries = computed(() => this.value().map((file) => ({
|
|
5538
5539
|
file,
|
|
@@ -6082,7 +6083,7 @@ var YuwTextareaComponent = class YuwTextareaComponent extends YuwTextFieldBase {
|
|
|
6082
6083
|
this.rows = input(void 0, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
6083
6084
|
this._autoId = `yuw-textarea-${++nextYuwTextareaId}`;
|
|
6084
6085
|
this._focusSelectors = ["textarea"];
|
|
6085
|
-
this._classes = computed(() => cn(this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6086
|
+
this._classes = computed(() => cn(YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6086
6087
|
this._hasLeftAddon = computed(() => this._leftAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasLeftAddon" }] : /* istanbul ignore next */ []);
|
|
6087
6088
|
this._hasRightAddon = computed(() => this._rightAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasRightAddon" }] : /* istanbul ignore next */ []);
|
|
6088
6089
|
this._hasAddons = computed(() => this._hasLeftAddon() || this._hasRightAddon(), ...ngDevMode ? [{ debugName: "_hasAddons" }] : /* istanbul ignore next */ []);
|
|
@@ -6378,7 +6379,7 @@ var YuwSearchInputComponent = class YuwSearchInputComponent extends YuwTextField
|
|
|
6378
6379
|
this._focusSelectors = ["input"];
|
|
6379
6380
|
this._open = signal(false, ...ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []);
|
|
6380
6381
|
this._collapsible = computed(() => this.collapseFrom() !== void 0, ...ngDevMode ? [{ debugName: "_collapsible" }] : /* istanbul ignore next */ []);
|
|
6381
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), searchInputGroupVariants({
|
|
6382
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, searchInputGroupVariants({
|
|
6382
6383
|
transparent: this.transparent(),
|
|
6383
6384
|
collapsible: this._collapsible()
|
|
6384
6385
|
}), this.userClass(), "overflow-hidden"), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
@@ -6673,7 +6674,7 @@ var YuwPasswordInputComponent = class YuwPasswordInputComponent extends YuwTextF
|
|
|
6673
6674
|
this.enterPressed = output();
|
|
6674
6675
|
this._autoId = `yuw-password-input-${++nextYuwPasswordInputId}`;
|
|
6675
6676
|
this._focusSelectors = ["input"];
|
|
6676
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6677
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6677
6678
|
this._hasLeftAddon = computed(() => this._leftAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasLeftAddon" }] : /* istanbul ignore next */ []);
|
|
6678
6679
|
this._reveal = computed(() => YUW_PASSWORD_REVEAL_STATES[`${this.masked()}`], ...ngDevMode ? [{ debugName: "_reveal" }] : /* istanbul ignore next */ []);
|
|
6679
6680
|
}
|
|
@@ -6868,7 +6869,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6868
6869
|
}]
|
|
6869
6870
|
}
|
|
6870
6871
|
});
|
|
6871
|
-
const yuwInputOtpSizeVariants = cva("", {
|
|
6872
|
+
const yuwInputOtpSizeVariants = cva("[&_[data-slot=input-otp-slot]]:bg-(color:--neutrals-fill-input)", {
|
|
6872
6873
|
variants: { size: {
|
|
6873
6874
|
default: "[&_[data-slot=input-otp-slot]]:size-10",
|
|
6874
6875
|
xs: "[&_[data-slot=input-otp-slot]]:size-7",
|
|
@@ -7125,7 +7126,7 @@ const YUW_SWITCH_HELM_SIZE = {
|
|
|
7125
7126
|
default: "default",
|
|
7126
7127
|
lg: "default"
|
|
7127
7128
|
};
|
|
7128
|
-
const yuwSwitchSizeVariants = cva("", {
|
|
7129
|
+
const yuwSwitchSizeVariants = cva("[&_[data-slot=switch-thumb][data-state=unchecked]]:bg-(color:--neutrals-fill-strong)", {
|
|
7129
7130
|
variants: { size: {
|
|
7130
7131
|
xs: "",
|
|
7131
7132
|
sm: "data-[size=default]:h-[18px] data-[size=default]:w-[28px] [&_[data-slot=switch-thumb]]:group-data-[size=default]/switch:size-3.5",
|
|
@@ -10145,7 +10146,7 @@ var YuwDatepickerComponent = class YuwDatepickerComponent extends YuwValueAccess
|
|
|
10145
10146
|
if (!value) return [];
|
|
10146
10147
|
return Array.isArray(value) ? value : [value];
|
|
10147
10148
|
}, ...ngDevMode ? [{ debugName: "_multipleValue" }] : /* istanbul ignore next */ []);
|
|
10148
|
-
this._triggerClass = computed(() => cn("max-w-full", yuwButtonVariants({ size: this.size() }), this.userClass()), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
10149
|
+
this._triggerClass = computed(() => cn("max-w-full", yuwButtonVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
10149
10150
|
this._triggerContext = computed(() => ({ $implicit: this._label() ?? "" }), ...ngDevMode ? [{ debugName: "_triggerContext" }] : /* istanbul ignore next */ []);
|
|
10150
10151
|
}
|
|
10151
10152
|
_emptyValue() {
|
|
@@ -18520,7 +18521,7 @@ var YuwsAvatarNameCellComponent = class YuwsAvatarNameCellComponent {
|
|
|
18520
18521
|
this.imageUrl = input(...ngDevMode ? [void 0, { debugName: "imageUrl" }] : /* istanbul ignore next */ []);
|
|
18521
18522
|
this.name = input.required(...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
18522
18523
|
this.shape = input("square", ...ngDevMode ? [{ debugName: "shape" }] : /* istanbul ignore next */ []);
|
|
18523
|
-
this.size = input("
|
|
18524
|
+
this.size = input("base", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
18524
18525
|
this.avatar = computed(() => AVATAR[this.size()], ...ngDevMode ? [{ debugName: "avatar" }] : /* istanbul ignore next */ []);
|
|
18525
18526
|
this.initials = computed(() => yuwsInitialsOf(this.name()), ...ngDevMode ? [{ debugName: "initials" }] : /* istanbul ignore next */ []);
|
|
18526
18527
|
}
|
|
@@ -18657,6 +18658,97 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18657
18658
|
}]
|
|
18658
18659
|
}
|
|
18659
18660
|
});
|
|
18661
|
+
var YuwsBadgeListCellComponent = class YuwsBadgeListCellComponent {
|
|
18662
|
+
constructor() {
|
|
18663
|
+
this.color = input("neutral", ...ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []);
|
|
18664
|
+
this.items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
18665
|
+
}
|
|
18666
|
+
static {
|
|
18667
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
18668
|
+
minVersion: "12.0.0",
|
|
18669
|
+
version: "22.2.4",
|
|
18670
|
+
ngImport: i0,
|
|
18671
|
+
type: YuwsBadgeListCellComponent,
|
|
18672
|
+
deps: [],
|
|
18673
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
18674
|
+
});
|
|
18675
|
+
}
|
|
18676
|
+
static {
|
|
18677
|
+
this.ɵcmp = i0.ɵɵngDeclareComponent({
|
|
18678
|
+
minVersion: "17.0.0",
|
|
18679
|
+
version: "22.2.4",
|
|
18680
|
+
type: YuwsBadgeListCellComponent,
|
|
18681
|
+
isStandalone: true,
|
|
18682
|
+
selector: "yuws-badge-list-cell",
|
|
18683
|
+
inputs: {
|
|
18684
|
+
color: {
|
|
18685
|
+
classPropertyName: "color",
|
|
18686
|
+
publicName: "color",
|
|
18687
|
+
isSignal: true,
|
|
18688
|
+
isRequired: false,
|
|
18689
|
+
transformFunction: null
|
|
18690
|
+
},
|
|
18691
|
+
items: {
|
|
18692
|
+
classPropertyName: "items",
|
|
18693
|
+
publicName: "items",
|
|
18694
|
+
isSignal: true,
|
|
18695
|
+
isRequired: true,
|
|
18696
|
+
transformFunction: null
|
|
18697
|
+
}
|
|
18698
|
+
},
|
|
18699
|
+
host: { classAttribute: "flex min-w-0 flex-wrap gap-1" },
|
|
18700
|
+
ngImport: i0,
|
|
18701
|
+
template: "@for (item of items(); track $index) {\n <yuw-badge variant=\"outline\" class=\"font-normal\" [color]=\"color()\">{{ item }}</yuw-badge>\n}\n",
|
|
18702
|
+
dependencies: [{
|
|
18703
|
+
kind: "component",
|
|
18704
|
+
type: YuwBadgeComponent,
|
|
18705
|
+
selector: "yuw-badge",
|
|
18706
|
+
inputs: [
|
|
18707
|
+
"color",
|
|
18708
|
+
"dot",
|
|
18709
|
+
"removeLabel",
|
|
18710
|
+
"variant"
|
|
18711
|
+
],
|
|
18712
|
+
outputs: ["removed"]
|
|
18713
|
+
}],
|
|
18714
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
18715
|
+
});
|
|
18716
|
+
}
|
|
18717
|
+
};
|
|
18718
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
18719
|
+
minVersion: "12.0.0",
|
|
18720
|
+
version: "22.2.4",
|
|
18721
|
+
ngImport: i0,
|
|
18722
|
+
type: YuwsBadgeListCellComponent,
|
|
18723
|
+
decorators: [{
|
|
18724
|
+
type: Component,
|
|
18725
|
+
args: [{
|
|
18726
|
+
selector: "yuws-badge-list-cell",
|
|
18727
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18728
|
+
imports: [YuwBadgeComponent],
|
|
18729
|
+
host: { class: "flex min-w-0 flex-wrap gap-1" },
|
|
18730
|
+
template: "@for (item of items(); track $index) {\n <yuw-badge variant=\"outline\" class=\"font-normal\" [color]=\"color()\">{{ item }}</yuw-badge>\n}\n"
|
|
18731
|
+
}]
|
|
18732
|
+
}],
|
|
18733
|
+
propDecorators: {
|
|
18734
|
+
color: [{
|
|
18735
|
+
type: i0.Input,
|
|
18736
|
+
args: [{
|
|
18737
|
+
isSignal: true,
|
|
18738
|
+
alias: "color",
|
|
18739
|
+
required: false
|
|
18740
|
+
}]
|
|
18741
|
+
}],
|
|
18742
|
+
items: [{
|
|
18743
|
+
type: i0.Input,
|
|
18744
|
+
args: [{
|
|
18745
|
+
isSignal: true,
|
|
18746
|
+
alias: "items",
|
|
18747
|
+
required: true
|
|
18748
|
+
}]
|
|
18749
|
+
}]
|
|
18750
|
+
}
|
|
18751
|
+
});
|
|
18660
18752
|
var YuwsClampedTextCellComponent = class YuwsClampedTextCellComponent {
|
|
18661
18753
|
constructor() {
|
|
18662
18754
|
this.text = input.required(...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
@@ -19256,7 +19348,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19256
19348
|
},
|
|
19257
19349
|
providers: [provideIcons({ lucideEllipsis })],
|
|
19258
19350
|
ngImport: i0,
|
|
19259
|
-
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu>\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n",
|
|
19351
|
+
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-44 p-2\">\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator class=\"-mx-2 my-1.5\"></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem class=\"gap-2.5 px-2 py-2\" target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n class=\"gap-2.5 px-2 py-2\"\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n",
|
|
19260
19352
|
dependencies: [
|
|
19261
19353
|
{
|
|
19262
19354
|
kind: "directive",
|
|
@@ -19344,7 +19436,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19344
19436
|
"(click)": "$event.stopPropagation()",
|
|
19345
19437
|
"(keydown)": "$event.stopPropagation()"
|
|
19346
19438
|
},
|
|
19347
|
-
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu>\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n"
|
|
19439
|
+
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-44 p-2\">\n @for (action of actions(); track action.key) {\n @if (action.separated) {\n <div yuwContextMenuSeparator class=\"-mx-2 my-1.5\"></div>\n }\n @if (action.href; as href) {\n <a yuwContextMenuItem class=\"gap-2.5 px-2 py-2\" target=\"_blank\" rel=\"noopener\" [href]=\"href\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </a>\n } @else {\n <button\n yuwContextMenuItem\n class=\"gap-2.5 px-2 py-2\"\n [variant]=\"action.destructive ? 'destructive' : 'default'\"\n (triggered)=\"onRun(action)\"\n >\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: action }\" />\n </button>\n }\n }\n </div>\n</ng-template>\n"
|
|
19348
19440
|
}]
|
|
19349
19441
|
}],
|
|
19350
19442
|
propDecorators: {
|
|
@@ -19369,9 +19461,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19369
19461
|
const HOVER_CLOSE_DELAY_MS = 150;
|
|
19370
19462
|
var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
19371
19463
|
constructor() {
|
|
19464
|
+
this.imageUrls = input([], ...ngDevMode ? [{ debugName: "imageUrls" }] : /* istanbul ignore next */ []);
|
|
19372
19465
|
this.items = input.required(...ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []);
|
|
19373
19466
|
this.open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
19374
|
-
this.
|
|
19467
|
+
this.entries = computed(() => this.items().map((label, index) => ({
|
|
19468
|
+
label,
|
|
19469
|
+
imageUrl: this.imageUrls()[index]
|
|
19470
|
+
})), ...ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []);
|
|
19471
|
+
this.first = computed(() => this.entries()[0] ?? { label: "" }, ...ngDevMode ? [{ debugName: "first" }] : /* istanbul ignore next */ []);
|
|
19375
19472
|
this.hiddenCount = computed(() => `+${this.items().length - 1}`, ...ngDevMode ? [{ debugName: "hiddenCount" }] : /* istanbul ignore next */ []);
|
|
19376
19473
|
this.overflows = computed(() => this.items().length > 1, ...ngDevMode ? [{ debugName: "overflows" }] : /* istanbul ignore next */ []);
|
|
19377
19474
|
inject(DestroyRef).onDestroy(() => this._cancelClose());
|
|
@@ -19410,13 +19507,22 @@ var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
|
19410
19507
|
type: YuwsOverflowListCellComponent,
|
|
19411
19508
|
isStandalone: true,
|
|
19412
19509
|
selector: "yuws-overflow-list-cell",
|
|
19413
|
-
inputs: {
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
|
|
19419
|
-
|
|
19510
|
+
inputs: {
|
|
19511
|
+
imageUrls: {
|
|
19512
|
+
classPropertyName: "imageUrls",
|
|
19513
|
+
publicName: "imageUrls",
|
|
19514
|
+
isSignal: true,
|
|
19515
|
+
isRequired: false,
|
|
19516
|
+
transformFunction: null
|
|
19517
|
+
},
|
|
19518
|
+
items: {
|
|
19519
|
+
classPropertyName: "items",
|
|
19520
|
+
publicName: "items",
|
|
19521
|
+
isSignal: true,
|
|
19522
|
+
isRequired: true,
|
|
19523
|
+
transformFunction: null
|
|
19524
|
+
}
|
|
19525
|
+
},
|
|
19420
19526
|
host: {
|
|
19421
19527
|
listeners: {
|
|
19422
19528
|
"click": "$event.stopPropagation()",
|
|
@@ -19425,39 +19531,68 @@ var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
|
19425
19531
|
classAttribute: "flex min-w-0 [&_yuw-button]:w-full"
|
|
19426
19532
|
},
|
|
19427
19533
|
ngImport: i0,
|
|
19428
|
-
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <
|
|
19429
|
-
dependencies: [
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
|
|
19435
|
-
|
|
19436
|
-
|
|
19437
|
-
|
|
19438
|
-
|
|
19439
|
-
|
|
19440
|
-
|
|
19441
|
-
|
|
19442
|
-
|
|
19443
|
-
|
|
19444
|
-
|
|
19445
|
-
|
|
19446
|
-
|
|
19447
|
-
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
|
|
19453
|
-
|
|
19454
|
-
|
|
19455
|
-
|
|
19456
|
-
|
|
19457
|
-
"
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19534
|
+
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n <yuw-badge variant=\"outline\" color=\"neutral\" class=\"shrink-0 rounded-full px-1.5 font-normal\">\n {{ hiddenCount() }}\n </yuw-badge>\n </ng-container>\n\n <ul class=\"flex flex-col\" (pointerenter)=\"onPointerEnter($event)\" (pointerleave)=\"onPointerLeave($event)\">\n @for (item of entries(); track $index) {\n <li class=\"flex items-center rounded-sm px-2 py-1.5\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n} @else {\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n}\n\n<ng-template #entry let-item>\n <span class=\"flex min-w-0 items-center gap-2\">\n @if (item.imageUrl) {\n <yuw-avatar size=\"sm\" shape=\"circle\" class=\"size-6 shrink-0\" [src]=\"item.imageUrl\" [alt]=\"item.label\" />\n }\n <span class=\"min-w-0 truncate\">{{ item.label }}</span>\n </span>\n</ng-template>\n",
|
|
19535
|
+
dependencies: [
|
|
19536
|
+
{
|
|
19537
|
+
kind: "directive",
|
|
19538
|
+
type: NgTemplateOutlet,
|
|
19539
|
+
selector: "[ngTemplateOutlet]",
|
|
19540
|
+
inputs: [
|
|
19541
|
+
"ngTemplateOutletContext",
|
|
19542
|
+
"ngTemplateOutlet",
|
|
19543
|
+
"ngTemplateOutletInjector"
|
|
19544
|
+
]
|
|
19545
|
+
},
|
|
19546
|
+
{
|
|
19547
|
+
kind: "component",
|
|
19548
|
+
type: YuwAvatarComponent,
|
|
19549
|
+
selector: "yuw-avatar",
|
|
19550
|
+
inputs: [
|
|
19551
|
+
"alt",
|
|
19552
|
+
"badge",
|
|
19553
|
+
"fallback",
|
|
19554
|
+
"group",
|
|
19555
|
+
"groupCount",
|
|
19556
|
+
"shape",
|
|
19557
|
+
"size",
|
|
19558
|
+
"src",
|
|
19559
|
+
"class"
|
|
19560
|
+
]
|
|
19561
|
+
},
|
|
19562
|
+
{
|
|
19563
|
+
kind: "component",
|
|
19564
|
+
type: YuwBadgeComponent,
|
|
19565
|
+
selector: "yuw-badge",
|
|
19566
|
+
inputs: [
|
|
19567
|
+
"color",
|
|
19568
|
+
"dot",
|
|
19569
|
+
"removeLabel",
|
|
19570
|
+
"variant"
|
|
19571
|
+
],
|
|
19572
|
+
outputs: ["removed"]
|
|
19573
|
+
},
|
|
19574
|
+
{
|
|
19575
|
+
kind: "component",
|
|
19576
|
+
type: YuwPopoverComponent,
|
|
19577
|
+
selector: "yuw-popover",
|
|
19578
|
+
inputs: [
|
|
19579
|
+
"align",
|
|
19580
|
+
"description",
|
|
19581
|
+
"offsetX",
|
|
19582
|
+
"open",
|
|
19583
|
+
"panelClass",
|
|
19584
|
+
"showTrigger",
|
|
19585
|
+
"sideOffset",
|
|
19586
|
+
"title",
|
|
19587
|
+
"triggerClass",
|
|
19588
|
+
"triggerColor",
|
|
19589
|
+
"triggerSize",
|
|
19590
|
+
"triggerTransparent",
|
|
19591
|
+
"triggerVariant"
|
|
19592
|
+
],
|
|
19593
|
+
outputs: ["openChange"]
|
|
19594
|
+
}
|
|
19595
|
+
],
|
|
19461
19596
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
19462
19597
|
});
|
|
19463
19598
|
}
|
|
@@ -19472,24 +19607,39 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19472
19607
|
args: [{
|
|
19473
19608
|
selector: "yuws-overflow-list-cell",
|
|
19474
19609
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
19475
|
-
imports: [
|
|
19610
|
+
imports: [
|
|
19611
|
+
NgTemplateOutlet,
|
|
19612
|
+
YuwAvatarComponent,
|
|
19613
|
+
YuwBadgeComponent,
|
|
19614
|
+
YuwPopoverComponent
|
|
19615
|
+
],
|
|
19476
19616
|
host: {
|
|
19477
19617
|
class: "flex min-w-0 [&_yuw-button]:w-full",
|
|
19478
19618
|
"(click)": "$event.stopPropagation()",
|
|
19479
19619
|
"(keydown)": "$event.stopPropagation()"
|
|
19480
19620
|
},
|
|
19481
|
-
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <
|
|
19621
|
+
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-1\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n (pointerenter)=\"onPointerEnter($event)\"\n (pointerleave)=\"onPointerLeave($event)\"\n >\n <ng-container yuwPopoverTrigger>\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n <yuw-badge variant=\"outline\" color=\"neutral\" class=\"shrink-0 rounded-full px-1.5 font-normal\">\n {{ hiddenCount() }}\n </yuw-badge>\n </ng-container>\n\n <ul class=\"flex flex-col\" (pointerenter)=\"onPointerEnter($event)\" (pointerleave)=\"onPointerLeave($event)\">\n @for (item of entries(); track $index) {\n <li class=\"flex items-center rounded-sm px-2 py-1.5\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n} @else {\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n}\n\n<ng-template #entry let-item>\n <span class=\"flex min-w-0 items-center gap-2\">\n @if (item.imageUrl) {\n <yuw-avatar size=\"sm\" shape=\"circle\" class=\"size-6 shrink-0\" [src]=\"item.imageUrl\" [alt]=\"item.label\" />\n }\n <span class=\"min-w-0 truncate\">{{ item.label }}</span>\n </span>\n</ng-template>\n"
|
|
19482
19622
|
}]
|
|
19483
19623
|
}],
|
|
19484
19624
|
ctorParameters: () => [],
|
|
19485
|
-
propDecorators: {
|
|
19486
|
-
|
|
19487
|
-
|
|
19488
|
-
|
|
19489
|
-
|
|
19490
|
-
|
|
19625
|
+
propDecorators: {
|
|
19626
|
+
imageUrls: [{
|
|
19627
|
+
type: i0.Input,
|
|
19628
|
+
args: [{
|
|
19629
|
+
isSignal: true,
|
|
19630
|
+
alias: "imageUrls",
|
|
19631
|
+
required: false
|
|
19632
|
+
}]
|
|
19633
|
+
}],
|
|
19634
|
+
items: [{
|
|
19635
|
+
type: i0.Input,
|
|
19636
|
+
args: [{
|
|
19637
|
+
isSignal: true,
|
|
19638
|
+
alias: "items",
|
|
19639
|
+
required: true
|
|
19640
|
+
}]
|
|
19491
19641
|
}]
|
|
19492
|
-
}
|
|
19642
|
+
}
|
|
19493
19643
|
});
|
|
19494
19644
|
var YuwsSelectCellComponent = class YuwsSelectCellComponent {
|
|
19495
19645
|
constructor() {
|
|
@@ -25348,6 +25498,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
25348
25498
|
}]
|
|
25349
25499
|
}
|
|
25350
25500
|
});
|
|
25351
|
-
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25501
|
+
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsBadgeListCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25352
25502
|
|
|
25353
25503
|
//# sourceMappingURL=yukit-web.mjs.map
|