yukit-web 1.0.4 → 1.1.1
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
|
@@ -16,7 +16,7 @@ import * as i1$32 from "@spartan-ng/brain/tooltip";
|
|
|
16
16
|
import { BrnTooltip, provideBrnTooltipDefaultOptions } from "@spartan-ng/brain/tooltip";
|
|
17
17
|
import { DEFAULT_TOOLTIP_CONTENT_CLASSES, DEFAULT_TOOLTIP_SVG_CLASS, tooltipPositionVariants } from "yukit-web/helm/tooltip";
|
|
18
18
|
import { NgIcon, provideIcons } from "@ng-icons/core";
|
|
19
|
-
import { lucideArchiveRestore, lucideArrowLeft, lucideCheck, lucideChevronDown, lucideChevronLeft, lucideChevronRight, lucideChevronUp, lucideChevronsUpDown, lucideClipboardCopy, lucideCopy, lucideDownload, lucideEllipsis, lucideEye, lucideEyeOff, lucideFileDown, lucideFileSpreadsheet, lucideFileText, lucideImagePlus, lucideLayoutGrid, lucideList, lucideMinus, lucidePaperclip, lucidePencil, lucidePlus, lucidePrinter,
|
|
19
|
+
import { lucideArchiveRestore, lucideArrowLeft, lucideCheck, lucideChevronDown, lucideChevronLeft, lucideChevronRight, lucideChevronUp, lucideChevronsUpDown, lucideCircleAlert, lucideClipboardCopy, lucideCopy, lucideDownload, lucideEllipsis, lucideEye, lucideEyeOff, lucideFileDown, lucideFileSpreadsheet, lucideFileText, lucideImagePlus, lucideInfo, lucideLayoutGrid, lucideList, lucideMinus, lucidePaperclip, lucidePencil, lucidePlus, lucidePrinter, lucideSaveCheck, lucideSearch, lucideSettings2, lucideShare, lucideStar, lucideTrash2, lucideUndo2, lucideUpload, lucideX } from "@ng-icons/lucide";
|
|
20
20
|
import * as i1$31 from "yukit-web/helm/badge";
|
|
21
21
|
import { HlmBadge } from "yukit-web/helm/badge";
|
|
22
22
|
import * as i1$30 from "yukit-web/helm/breadcrumb";
|
|
@@ -65,7 +65,7 @@ import * as i1$16 from "yukit-web/helm/card";
|
|
|
65
65
|
import { HlmCard, HlmCardAction, HlmCardContent, HlmCardDescription, HlmCardFooter, HlmCardHeader, HlmCardTitle } from "yukit-web/helm/card";
|
|
66
66
|
import * as i1$15 from "yukit-web/helm/empty";
|
|
67
67
|
import { HlmEmpty, HlmEmptyContent, HlmEmptyDescription, HlmEmptyHeader, HlmEmptyMedia, HlmEmptyTitle } from "yukit-web/helm/empty";
|
|
68
|
-
import { CdkContextMenuTrigger,
|
|
68
|
+
import { CdkContextMenuTrigger, CdkMenuItemCheckbox, CdkMenuItemRadio, CdkMenuTrigger } from "@angular/cdk/menu";
|
|
69
69
|
import * as i1$14 from "yukit-web/helm/context-menu";
|
|
70
70
|
import { HlmContextMenuTrigger } from "yukit-web/helm/context-menu";
|
|
71
71
|
import { BrnCalendar, BrnCalendarCell, BrnCalendarCellButton, BrnCalendarGrid, BrnCalendarNextButton, BrnCalendarPreviousButton, BrnCalendarRange, BrnCalendarWeek, BrnCalendarWeekday, injectBrnCalendar, injectBrnCalendarI18n } from "@spartan-ng/brain/calendar";
|
|
@@ -160,6 +160,11 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
160
160
|
}]
|
|
161
161
|
}] }
|
|
162
162
|
});
|
|
163
|
+
const YUW_MENU_PANEL_CLASS = "p-2";
|
|
164
|
+
const YUW_MENU_ITEM_CLASS = "gap-2.5 px-2 py-2";
|
|
165
|
+
const YUW_MENU_INDICATOR_ITEM_CLASS = "gap-2.5 py-2 ps-2";
|
|
166
|
+
const YUW_MENU_LABEL_CLASS = "block px-2 pt-1 pb-2 text-sm font-normal text-muted-foreground";
|
|
167
|
+
const YUW_MENU_SEPARATOR_CLASS = "-mx-2 my-1.5";
|
|
163
168
|
const DRAG_THRESHOLD_PX = 5;
|
|
164
169
|
const AXES = {
|
|
165
170
|
x: {
|
|
@@ -2249,6 +2254,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2249
2254
|
}]
|
|
2250
2255
|
}
|
|
2251
2256
|
});
|
|
2257
|
+
const YUW_FIELD_FILL_CLASS = "bg-(color:--neutrals-fill-input) dark:bg-(color:--neutrals-fill-input)";
|
|
2252
2258
|
const yuwFieldSizeVariants = cva("", {
|
|
2253
2259
|
variants: { size: {
|
|
2254
2260
|
default: "h-10",
|
|
@@ -2830,7 +2836,9 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
2830
2836
|
}]
|
|
2831
2837
|
});
|
|
2832
2838
|
let nextUniqueId$2 = 0;
|
|
2833
|
-
const CHECKBOX_ITEM_CLASS = "cursor-pointer!
|
|
2839
|
+
const CHECKBOX_ITEM_CLASS = "cursor-pointer! pe-2! [&>ng-icon]:hidden!";
|
|
2840
|
+
const CONTENT_CLASS = "p-2! **:data-[slot=input-group]:m-0! **:data-[slot=input-group]:mb-2!";
|
|
2841
|
+
const LIST_CLASS = "max-h-none! min-h-0 p-0!";
|
|
2834
2842
|
var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBase {
|
|
2835
2843
|
close() {
|
|
2836
2844
|
(this._multipleBox() ?? this._singleBox())?.close();
|
|
@@ -2886,14 +2894,17 @@ var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBa
|
|
|
2886
2894
|
this.triggerVariant = input("outline", ...ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []);
|
|
2887
2895
|
this.value = model(void 0, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
2888
2896
|
this._focusSelectors = ["input", "button"];
|
|
2897
|
+
this._footerClass = "-mx-2 mt-1.5 border-t px-2 pt-1.5 empty:hidden";
|
|
2889
2898
|
this._generatedId = `yuw-combobox-${++nextUniqueId$2}`;
|
|
2899
|
+
this._headerClass = cn(YUW_MENU_LABEL_CLASS, "empty:hidden");
|
|
2890
2900
|
this._itemToString = (value) => this._labelByValue().get(value) ?? value;
|
|
2891
|
-
this.
|
|
2901
|
+
this._listClass = LIST_CLASS;
|
|
2902
|
+
this._chipsClass = computed(() => cn(yuwFieldMinHeightVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS), ...ngDevMode ? [{ debugName: "_chipsClass" }] : /* istanbul ignore next */ []);
|
|
2892
2903
|
this._clearVisible = computed(() => this.clearAriaLabel() !== void 0, ...ngDevMode ? [{ debugName: "_clearVisible" }] : /* istanbul ignore next */ []);
|
|
2893
|
-
this._contentClass = computed(() => this.triggerTemplate() ? "w-auto min-w-56 max-w-80" : "", ...ngDevMode ? [{ debugName: "_contentClass" }] : /* istanbul ignore next */ []);
|
|
2904
|
+
this._contentClass = computed(() => cn(CONTENT_CLASS, this.triggerTemplate() ? "w-auto min-w-56 max-w-80" : ""), ...ngDevMode ? [{ debugName: "_contentClass" }] : /* istanbul ignore next */ []);
|
|
2894
2905
|
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._itemClass = computed(() => this.checkboxes() ? CHECKBOX_ITEM_CLASS : "", ...ngDevMode ? [{ debugName: "_itemClass" }] : /* istanbul ignore next */ []);
|
|
2906
|
+
this._fieldClass = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS), ...ngDevMode ? [{ debugName: "_fieldClass" }] : /* istanbul ignore next */ []);
|
|
2907
|
+
this._itemClass = computed(() => cn(YUW_MENU_INDICATOR_ITEM_CLASS, this.checkboxes() ? CHECKBOX_ITEM_CLASS : ""), ...ngDevMode ? [{ debugName: "_itemClass" }] : /* istanbul ignore next */ []);
|
|
2897
2908
|
this._labelByValue = computed(() => new Map(this.options().map((option) => [option.value, option.label])), ...ngDevMode ? [{ debugName: "_labelByValue" }] : /* istanbul ignore next */ []);
|
|
2898
2909
|
this._multipleValue = computed(() => {
|
|
2899
2910
|
const value = this.value();
|
|
@@ -2913,7 +2924,7 @@ var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBa
|
|
|
2913
2924
|
const value = this.value();
|
|
2914
2925
|
return Array.isArray(value) ? value[0] : value;
|
|
2915
2926
|
}, ...ngDevMode ? [{ debugName: "_singleValue" }] : /* istanbul ignore next */ []);
|
|
2916
|
-
this._triggerClass = computed(() => yuwButtonVariants({ size: this.size() }), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
2927
|
+
this._triggerClass = computed(() => cn(yuwButtonVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
2917
2928
|
this._triggerContext = computed(() => {
|
|
2918
2929
|
const labels = this._selectedChips().map((chip) => chip.label);
|
|
2919
2930
|
return {
|
|
@@ -3129,7 +3140,10 @@ var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBa
|
|
|
3129
3140
|
value: "valueChange"
|
|
3130
3141
|
},
|
|
3131
3142
|
host: { classAttribute: "contents" },
|
|
3132
|
-
providers: [
|
|
3143
|
+
providers: [provideIcons({
|
|
3144
|
+
lucideCircleAlert,
|
|
3145
|
+
lucideInfo
|
|
3146
|
+
}), provideValueAccessor(YuwComboboxComponent)],
|
|
3133
3147
|
queries: [{
|
|
3134
3148
|
propertyName: "itemTemplate",
|
|
3135
3149
|
first: true,
|
|
@@ -3169,8 +3183,26 @@ var YuwComboboxComponent = class YuwComboboxComponent extends YuwValueAccessorBa
|
|
|
3169
3183
|
],
|
|
3170
3184
|
usesInheritance: true,
|
|
3171
3185
|
ngImport: i0,
|
|
3172
|
-
template: "<ng-template #header>\n <ng-content select=\"[yuwComboboxHeader]\"
|
|
3186
|
+
template: "<ng-template #header>\n <div [class]=\"_headerClass\"><ng-content select=\"[yuwComboboxHeader]\" /></div>\n</ng-template>\n\n<ng-template #footer>\n <div [class]=\"_footerClass\"><ng-content select=\"[yuwComboboxFooter]\" /></div>\n</ng-template>\n\n<ng-template #itemContent let-option>\n @if (itemTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n selected: _selectedValues().has(option.value),\n }\"\n />\n } @else if (checkboxes()) {\n <span inert class=\"pointer-events-none flex **:text-(--secondary-on-fill)!\">\n <yuw-checkbox [checked]=\"_selectedValues().has(option.value)\" />\n </span>\n <span class=\"min-w-0 flex-1 truncate\">{{ option.label }}</span>\n } @else {\n {{ option.label }}\n }\n</ng-template>\n\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [attr.data-yuw-required]=\"required() ? '' : null\"\n>\n @if (multiple()) {\n <hlm-combobox-multiple\n [disabled]=\"_disabled()\"\n [value]=\"_multipleValue()\"\n (valueChange)=\"onValueChange($event)\"\n [(search)]=\"search\"\n [itemToString]=\"_itemToString\"\n (focusout)=\"_onFocusOut($event)\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n yuwComboboxTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [class]=\"triggerClass()\"\n [ariaLabel]=\"triggerAriaLabel()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-combobox-chips [forceInvalid]=\"feedback.forcedInvalid()\" [class]=\"_chipsClass()\">\n @for (chip of _selectedChips(); track chip.value) {\n <hlm-combobox-chip [value]=\"chip.value\">{{ chip.label }}</hlm-combobox-chip>\n }\n <input hlmComboboxChipInput [id]=\"_controlId()\" [placeholder]=\"placeholder() ?? ''\" />\n </hlm-combobox-chips>\n }\n\n <hlm-combobox-content *hlmComboboxPortal [class]=\"_contentClass()\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n @if (_searchInPanel()) {\n <hlm-combobox-input\n [placeholder]=\"searchPlaceholder() ?? ''\"\n [triggerAriaLabel]=\"triggerAriaLabel()\"\n [showTrigger]=\"false\"\n />\n }\n <div hlmComboboxList [class]=\"_listClass\">\n @for (option of options(); track option.value) {\n <hlm-combobox-item [yuwClass]=\"_itemClass()\" [value]=\"option.value\" [disabled]=\"option.disabled ?? false\">\n <ng-container [ngTemplateOutlet]=\"itemContent\" [ngTemplateOutletContext]=\"{ $implicit: option }\" />\n </hlm-combobox-item>\n }\n </div>\n <hlm-combobox-empty>{{ emptyText() ?? '' }}</hlm-combobox-empty>\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </hlm-combobox-content>\n </hlm-combobox-multiple>\n } @else {\n <hlm-combobox\n [disabled]=\"_disabled()\"\n [value]=\"_singleValue()\"\n (valueChange)=\"onValueChange($event)\"\n [(search)]=\"search\"\n [itemToString]=\"_itemToString\"\n (focusout)=\"_onFocusOut($event)\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n yuwComboboxTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [class]=\"triggerClass()\"\n [ariaLabel]=\"triggerAriaLabel()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else if (readonlyTrigger()) {\n <hlm-combobox-trigger\n [buttonId]=\"_controlId()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [class]=\"_triggerClass()\"\n class=\"w-full justify-between items-center\"\n >\n <hlm-combobox-value class=\"min-w-0 truncate\" [placeholder]=\"placeholder() ?? ''\" />\n </hlm-combobox-trigger>\n } @else {\n <hlm-combobox-input\n [inputId]=\"_controlId()\"\n [placeholder]=\"placeholder() ?? ''\"\n [showClear]=\"_clearVisible()\"\n [clearAriaLabel]=\"clearAriaLabel() ?? ''\"\n [triggerAriaLabel]=\"triggerAriaLabel()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [class]=\"_fieldClass()\"\n />\n }\n\n <hlm-combobox-content *hlmComboboxPortal [class]=\"_contentClass()\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n @if (_searchInPanel()) {\n <hlm-combobox-input\n [placeholder]=\"searchPlaceholder() ?? ''\"\n [showClear]=\"_clearVisible()\"\n [clearAriaLabel]=\"clearAriaLabel() ?? ''\"\n [triggerAriaLabel]=\"triggerAriaLabel()\"\n [showTrigger]=\"false\"\n />\n }\n <div hlmComboboxList [class]=\"_listClass\">\n @for (option of options(); track option.value) {\n <hlm-combobox-item [yuwClass]=\"_itemClass()\" [value]=\"option.value\" [disabled]=\"option.disabled ?? false\">\n <ng-container [ngTemplateOutlet]=\"itemContent\" [ngTemplateOutletContext]=\"{ $implicit: option }\" />\n </hlm-combobox-item>\n }\n </div>\n <hlm-combobox-empty>{{ emptyText() ?? '' }}</hlm-combobox-empty>\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </hlm-combobox-content>\n </hlm-combobox>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
3173
3187
|
dependencies: [
|
|
3188
|
+
{
|
|
3189
|
+
kind: "component",
|
|
3190
|
+
type: NgIcon,
|
|
3191
|
+
selector: "ng-icon",
|
|
3192
|
+
inputs: [
|
|
3193
|
+
"name",
|
|
3194
|
+
"svg",
|
|
3195
|
+
"size",
|
|
3196
|
+
"strokeWidth",
|
|
3197
|
+
"color"
|
|
3198
|
+
]
|
|
3199
|
+
},
|
|
3200
|
+
{
|
|
3201
|
+
kind: "directive",
|
|
3202
|
+
type: YuwClassDirective,
|
|
3203
|
+
selector: "[yuwClass]",
|
|
3204
|
+
inputs: ["yuwClass"]
|
|
3205
|
+
},
|
|
3174
3206
|
{
|
|
3175
3207
|
kind: "directive",
|
|
3176
3208
|
type: i1$28.HlmCombobox,
|
|
@@ -3342,6 +3374,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3342
3374
|
args: [{
|
|
3343
3375
|
selector: "yuw-combobox",
|
|
3344
3376
|
imports: [
|
|
3377
|
+
NgIcon,
|
|
3378
|
+
YuwClassDirective,
|
|
3345
3379
|
...HlmComboboxImports,
|
|
3346
3380
|
HlmField,
|
|
3347
3381
|
HlmFieldDescription,
|
|
@@ -3351,10 +3385,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
3351
3385
|
YuwComboboxTriggerButtonDirective,
|
|
3352
3386
|
YuwFieldFeedbackDirective
|
|
3353
3387
|
],
|
|
3354
|
-
providers: [
|
|
3388
|
+
providers: [provideIcons({
|
|
3389
|
+
lucideCircleAlert,
|
|
3390
|
+
lucideInfo
|
|
3391
|
+
}), provideValueAccessor(YuwComboboxComponent)],
|
|
3355
3392
|
host: { class: "contents" },
|
|
3356
3393
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
3357
|
-
template: "<ng-template #header>\n <ng-content select=\"[yuwComboboxHeader]\"
|
|
3394
|
+
template: "<ng-template #header>\n <div [class]=\"_headerClass\"><ng-content select=\"[yuwComboboxHeader]\" /></div>\n</ng-template>\n\n<ng-template #footer>\n <div [class]=\"_footerClass\"><ng-content select=\"[yuwComboboxFooter]\" /></div>\n</ng-template>\n\n<ng-template #itemContent let-option>\n @if (itemTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.templateRef\"\n [ngTemplateOutletContext]=\"{\n $implicit: option,\n option: option,\n selected: _selectedValues().has(option.value),\n }\"\n />\n } @else if (checkboxes()) {\n <span inert class=\"pointer-events-none flex **:text-(--secondary-on-fill)!\">\n <yuw-checkbox [checked]=\"_selectedValues().has(option.value)\" />\n </span>\n <span class=\"min-w-0 flex-1 truncate\">{{ option.label }}</span>\n } @else {\n {{ option.label }}\n }\n</ng-template>\n\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [attr.data-yuw-required]=\"required() ? '' : null\"\n>\n @if (multiple()) {\n <hlm-combobox-multiple\n [disabled]=\"_disabled()\"\n [value]=\"_multipleValue()\"\n (valueChange)=\"onValueChange($event)\"\n [(search)]=\"search\"\n [itemToString]=\"_itemToString\"\n (focusout)=\"_onFocusOut($event)\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n yuwComboboxTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [class]=\"triggerClass()\"\n [ariaLabel]=\"triggerAriaLabel()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-combobox-chips [forceInvalid]=\"feedback.forcedInvalid()\" [class]=\"_chipsClass()\">\n @for (chip of _selectedChips(); track chip.value) {\n <hlm-combobox-chip [value]=\"chip.value\">{{ chip.label }}</hlm-combobox-chip>\n }\n <input hlmComboboxChipInput [id]=\"_controlId()\" [placeholder]=\"placeholder() ?? ''\" />\n </hlm-combobox-chips>\n }\n\n <hlm-combobox-content *hlmComboboxPortal [class]=\"_contentClass()\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n @if (_searchInPanel()) {\n <hlm-combobox-input\n [placeholder]=\"searchPlaceholder() ?? ''\"\n [triggerAriaLabel]=\"triggerAriaLabel()\"\n [showTrigger]=\"false\"\n />\n }\n <div hlmComboboxList [class]=\"_listClass\">\n @for (option of options(); track option.value) {\n <hlm-combobox-item [yuwClass]=\"_itemClass()\" [value]=\"option.value\" [disabled]=\"option.disabled ?? false\">\n <ng-container [ngTemplateOutlet]=\"itemContent\" [ngTemplateOutletContext]=\"{ $implicit: option }\" />\n </hlm-combobox-item>\n }\n </div>\n <hlm-combobox-empty>{{ emptyText() ?? '' }}</hlm-combobox-empty>\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </hlm-combobox-content>\n </hlm-combobox-multiple>\n } @else {\n <hlm-combobox\n [disabled]=\"_disabled()\"\n [value]=\"_singleValue()\"\n (valueChange)=\"onValueChange($event)\"\n [(search)]=\"search\"\n [itemToString]=\"_itemToString\"\n (focusout)=\"_onFocusOut($event)\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n yuwComboboxTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [class]=\"triggerClass()\"\n [ariaLabel]=\"triggerAriaLabel()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else if (readonlyTrigger()) {\n <hlm-combobox-trigger\n [buttonId]=\"_controlId()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [class]=\"_triggerClass()\"\n class=\"w-full justify-between items-center\"\n >\n <hlm-combobox-value class=\"min-w-0 truncate\" [placeholder]=\"placeholder() ?? ''\" />\n </hlm-combobox-trigger>\n } @else {\n <hlm-combobox-input\n [inputId]=\"_controlId()\"\n [placeholder]=\"placeholder() ?? ''\"\n [showClear]=\"_clearVisible()\"\n [clearAriaLabel]=\"clearAriaLabel() ?? ''\"\n [triggerAriaLabel]=\"triggerAriaLabel()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [class]=\"_fieldClass()\"\n />\n }\n\n <hlm-combobox-content *hlmComboboxPortal [class]=\"_contentClass()\">\n <ng-container [ngTemplateOutlet]=\"header\" />\n @if (_searchInPanel()) {\n <hlm-combobox-input\n [placeholder]=\"searchPlaceholder() ?? ''\"\n [showClear]=\"_clearVisible()\"\n [clearAriaLabel]=\"clearAriaLabel() ?? ''\"\n [triggerAriaLabel]=\"triggerAriaLabel()\"\n [showTrigger]=\"false\"\n />\n }\n <div hlmComboboxList [class]=\"_listClass\">\n @for (option of options(); track option.value) {\n <hlm-combobox-item [yuwClass]=\"_itemClass()\" [value]=\"option.value\" [disabled]=\"option.disabled ?? false\">\n <ng-container [ngTemplateOutlet]=\"itemContent\" [ngTemplateOutletContext]=\"{ $implicit: option }\" />\n </hlm-combobox-item>\n }\n </div>\n <hlm-combobox-empty>{{ emptyText() ?? '' }}</hlm-combobox-empty>\n <ng-container [ngTemplateOutlet]=\"footer\" />\n </hlm-combobox-content>\n </hlm-combobox>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
3358
3395
|
}]
|
|
3359
3396
|
}],
|
|
3360
3397
|
ctorParameters: () => [],
|
|
@@ -3913,7 +3950,7 @@ var YuwInputComponent = class YuwInputComponent extends YuwTextFieldBase {
|
|
|
3913
3950
|
this.enterPressed = output();
|
|
3914
3951
|
this._autoId = `yuw-input-${++nextYuwInputId}`;
|
|
3915
3952
|
this._focusSelectors = ["input"];
|
|
3916
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
3953
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
3917
3954
|
this._hasLeftAddon = computed(() => this._leftAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasLeftAddon" }] : /* istanbul ignore next */ []);
|
|
3918
3955
|
this._hasRightAddon = computed(() => this._rightAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasRightAddon" }] : /* istanbul ignore next */ []);
|
|
3919
3956
|
this._hasAddons = computed(() => this._hasLeftAddon() || this._hasRightAddon(), ...ngDevMode ? [{ debugName: "_hasAddons" }] : /* istanbul ignore next */ []);
|
|
@@ -3976,7 +4013,10 @@ var YuwInputComponent = class YuwInputComponent extends YuwTextFieldBase {
|
|
|
3976
4013
|
},
|
|
3977
4014
|
outputs: { enterPressed: "enterPressed" },
|
|
3978
4015
|
host: { classAttribute: "contents" },
|
|
3979
|
-
providers: [
|
|
4016
|
+
providers: [provideIcons({
|
|
4017
|
+
lucideCircleAlert,
|
|
4018
|
+
lucideInfo
|
|
4019
|
+
}), provideValueAccessor(YuwInputComponent)],
|
|
3980
4020
|
queries: [{
|
|
3981
4021
|
propertyName: "_leftAddons",
|
|
3982
4022
|
predicate: YuwLeftAddonDirective,
|
|
@@ -3988,8 +4028,20 @@ var YuwInputComponent = class YuwInputComponent extends YuwTextFieldBase {
|
|
|
3988
4028
|
}],
|
|
3989
4029
|
usesInheritance: true,
|
|
3990
4030
|
ngImport: i0,
|
|
3991
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"inline-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <input\n hlmInput\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
4031
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"inline-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <input\n hlmInput\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
3992
4032
|
dependencies: [
|
|
4033
|
+
{
|
|
4034
|
+
kind: "component",
|
|
4035
|
+
type: NgIcon,
|
|
4036
|
+
selector: "ng-icon",
|
|
4037
|
+
inputs: [
|
|
4038
|
+
"name",
|
|
4039
|
+
"svg",
|
|
4040
|
+
"size",
|
|
4041
|
+
"strokeWidth",
|
|
4042
|
+
"color"
|
|
4043
|
+
]
|
|
4044
|
+
},
|
|
3993
4045
|
{
|
|
3994
4046
|
kind: "directive",
|
|
3995
4047
|
type: HlmField,
|
|
@@ -4045,6 +4097,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4045
4097
|
args: [{
|
|
4046
4098
|
selector: "yuw-input",
|
|
4047
4099
|
imports: [
|
|
4100
|
+
NgIcon,
|
|
4048
4101
|
HlmField,
|
|
4049
4102
|
HlmFieldDescription,
|
|
4050
4103
|
YuwFieldFeedbackDirective,
|
|
@@ -4053,10 +4106,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4053
4106
|
HlmInputGroupInput,
|
|
4054
4107
|
HlmInputGroupAddon
|
|
4055
4108
|
],
|
|
4056
|
-
providers: [
|
|
4109
|
+
providers: [provideIcons({
|
|
4110
|
+
lucideCircleAlert,
|
|
4111
|
+
lucideInfo
|
|
4112
|
+
}), provideValueAccessor(YuwInputComponent)],
|
|
4057
4113
|
host: { class: "contents" },
|
|
4058
4114
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4059
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"inline-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <input\n hlmInput\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
4115
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"inline-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <input\n hlmInput\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [type]=\"type()\"\n [attr.inputmode]=\"inputmode()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
4060
4116
|
}]
|
|
4061
4117
|
}],
|
|
4062
4118
|
propDecorators: {
|
|
@@ -4434,6 +4490,7 @@ var YuwPopoverComponent = class YuwPopoverComponent {
|
|
|
4434
4490
|
transform: booleanAttribute
|
|
4435
4491
|
});
|
|
4436
4492
|
this.triggerVariant = input("outline", ...ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []);
|
|
4493
|
+
this._panelClass = computed(() => cn("p-2", "gap-0", this.panelClass()), ...ngDevMode ? [{ debugName: "_panelClass" }] : /* istanbul ignore next */ []);
|
|
4437
4494
|
this._popoverState = computed(() => this.open() ? "open" : "closed", ...ngDevMode ? [{ debugName: "_popoverState" }] : /* istanbul ignore next */ []);
|
|
4438
4495
|
}
|
|
4439
4496
|
onOpenChange(state) {
|
|
@@ -4560,7 +4617,7 @@ var YuwPopoverComponent = class YuwPopoverComponent {
|
|
|
4560
4617
|
isSignal: true
|
|
4561
4618
|
}],
|
|
4562
4619
|
ngImport: i0,
|
|
4563
|
-
template: "<div\n hlmPopover\n [state]=\"_popoverState()\"\n [align]=\"align()\"\n [sideOffset]=\"sideOffset()\"\n [offsetX]=\"offsetX()\"\n [attachTo]=\"_trigger()\"\n (stateChanged)=\"onOpenChange($event)\"\n>\n @if (showTrigger()) {\n <yuw-button\n #trigger\n yuwPopoverTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [transparent]=\"triggerTransparent()\"\n [class]=\"triggerClass()\"\n >\n <ng-content select=\"[yuwPopoverTrigger]\" />\n </yuw-button>\n }\n\n <hlm-popover-content *hlmPopoverPortal [class]=\"
|
|
4620
|
+
template: "<div\n hlmPopover\n [state]=\"_popoverState()\"\n [align]=\"align()\"\n [sideOffset]=\"sideOffset()\"\n [offsetX]=\"offsetX()\"\n [attachTo]=\"_trigger()\"\n (stateChanged)=\"onOpenChange($event)\"\n>\n @if (showTrigger()) {\n <yuw-button\n #trigger\n yuwPopoverTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [transparent]=\"triggerTransparent()\"\n [class]=\"triggerClass()\"\n >\n <ng-content select=\"[yuwPopoverTrigger]\" />\n </yuw-button>\n }\n\n <hlm-popover-content *hlmPopoverPortal [class]=\"_panelClass()\">\n @if (title() || description()) {\n <div hlmPopoverHeader class=\"gap-0 px-2 pt-1 pb-2\">\n @if (title()) {\n <p hlmPopoverTitle class=\"font-normal text-muted-foreground\">{{ title() }}</p>\n }\n @if (description()) {\n <p hlmPopoverDescription class=\"pt-2 text-foreground\">{{ description() }}</p>\n }\n </div>\n }\n\n <ng-content />\n </hlm-popover-content>\n</div>\n",
|
|
4564
4621
|
dependencies: [
|
|
4565
4622
|
{
|
|
4566
4623
|
kind: "directive",
|
|
@@ -4639,7 +4696,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
4639
4696
|
],
|
|
4640
4697
|
host: { class: "contents" },
|
|
4641
4698
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
4642
|
-
template: "<div\n hlmPopover\n [state]=\"_popoverState()\"\n [align]=\"align()\"\n [sideOffset]=\"sideOffset()\"\n [offsetX]=\"offsetX()\"\n [attachTo]=\"_trigger()\"\n (stateChanged)=\"onOpenChange($event)\"\n>\n @if (showTrigger()) {\n <yuw-button\n #trigger\n yuwPopoverTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [transparent]=\"triggerTransparent()\"\n [class]=\"triggerClass()\"\n >\n <ng-content select=\"[yuwPopoverTrigger]\" />\n </yuw-button>\n }\n\n <hlm-popover-content *hlmPopoverPortal [class]=\"
|
|
4699
|
+
template: "<div\n hlmPopover\n [state]=\"_popoverState()\"\n [align]=\"align()\"\n [sideOffset]=\"sideOffset()\"\n [offsetX]=\"offsetX()\"\n [attachTo]=\"_trigger()\"\n (stateChanged)=\"onOpenChange($event)\"\n>\n @if (showTrigger()) {\n <yuw-button\n #trigger\n yuwPopoverTriggerButton\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [size]=\"triggerSize()\"\n [transparent]=\"triggerTransparent()\"\n [class]=\"triggerClass()\"\n >\n <ng-content select=\"[yuwPopoverTrigger]\" />\n </yuw-button>\n }\n\n <hlm-popover-content *hlmPopoverPortal [class]=\"_panelClass()\">\n @if (title() || description()) {\n <div hlmPopoverHeader class=\"gap-0 px-2 pt-1 pb-2\">\n @if (title()) {\n <p hlmPopoverTitle class=\"font-normal text-muted-foreground\">{{ title() }}</p>\n }\n @if (description()) {\n <p hlmPopoverDescription class=\"pt-2 text-foreground\">{{ description() }}</p>\n }\n </div>\n }\n\n <ng-content />\n </hlm-popover-content>\n</div>\n"
|
|
4643
4700
|
}]
|
|
4644
4701
|
}],
|
|
4645
4702
|
propDecorators: {
|
|
@@ -5179,7 +5236,7 @@ var YuwSheetComponent = class YuwSheetComponent {
|
|
|
5179
5236
|
isSignal: true
|
|
5180
5237
|
}],
|
|
5181
5238
|
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-
|
|
5239
|
+
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
5240
|
dependencies: [
|
|
5184
5241
|
{
|
|
5185
5242
|
kind: "component",
|
|
@@ -5299,7 +5356,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5299
5356
|
}],
|
|
5300
5357
|
host: { class: "contents" },
|
|
5301
5358
|
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-
|
|
5359
|
+
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
5360
|
}]
|
|
5304
5361
|
}],
|
|
5305
5362
|
ctorParameters: () => [],
|
|
@@ -5532,7 +5589,7 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5532
5589
|
this._isMobile = injectIsMobile();
|
|
5533
5590
|
this._listOpen = signal(false, ...ngDevMode ? [{ debugName: "_listOpen" }] : /* istanbul ignore next */ []);
|
|
5534
5591
|
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
|
|
5592
|
+
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
5593
|
this._countText = computed(() => this.countLabel()?.(this.value().length), ...ngDevMode ? [{ debugName: "_countText" }] : /* istanbul ignore next */ []);
|
|
5537
5594
|
this._entries = computed(() => this.value().map((file) => ({
|
|
5538
5595
|
file,
|
|
@@ -5723,7 +5780,9 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5723
5780
|
removed: "removed"
|
|
5724
5781
|
},
|
|
5725
5782
|
providers: [provideValueAccessor(YuwInputFileComponent), provideIcons({
|
|
5783
|
+
lucideCircleAlert,
|
|
5726
5784
|
lucideImagePlus,
|
|
5785
|
+
lucideInfo,
|
|
5727
5786
|
lucidePaperclip,
|
|
5728
5787
|
lucideUpload,
|
|
5729
5788
|
lucideX
|
|
@@ -5737,7 +5796,7 @@ var YuwInputFileComponent = class YuwInputFileComponent extends YuwValueAccessor
|
|
|
5737
5796
|
}],
|
|
5738
5797
|
usesInheritance: true,
|
|
5739
5798
|
ngImport: i0,
|
|
5740
|
-
template: "<ng-template #fileRow let-entry>\n <span class=\"min-w-0 flex-1 truncate\">{{ entry.file.name }}</span>\n <span class=\"shrink-0 text-muted-foreground\">{{ entry.size }}</span>\n <yuw-button\n variant=\"ghost\"\n size=\"icon-xs\"\n [ariaLabel]=\"removeLabel()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"removed.emit(entry.file)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n</ng-template>\n\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <input\n #native\n hlmInput\n hidden\n type=\"file\"\n [id]=\"_inputId()\"\n [attr.accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"_disabled()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n (change)=\"onChange($event)\"\n />\n\n @if (variant() === 'avatar') {\n <div class=\"flex min-w-0 flex-wrap items-center gap-3\">\n <button\n type=\"button\"\n class=\"cursor-pointer rounded-full disabled:cursor-not-allowed\"\n tabindex=\"-1\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n >\n <yuw-avatar size=\"lg\" [class]=\"userClass()\" [src]=\"_imageSrc()\" [alt]=\"alt()\" [fallback]=\"fallback()\" />\n </button>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n {{ uploadLabel() }}\n </yuw-button>\n </div>\n } @else if (variant() === 'tile') {\n <div class=\"flex\">\n <div class=\"relative\">\n <button\n type=\"button\"\n [class]=\"_tileClasses()\"\n [class.border-destructive]=\"feedback.showError()\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n @if (_imageSrc(); as image) {\n <img class=\"size-full object-cover\" [src]=\"image\" [alt]=\"alt()\" />\n } @else {\n <ng-icon name=\"lucideImagePlus\" size=\"20\" />\n <span>{{ uploadLabel() }}</span>\n }\n </button>\n @if (removeLabel() && value()[0]; as file) {\n <
|
|
5799
|
+
template: "<ng-template #fileRow let-entry>\n <span class=\"min-w-0 flex-1 truncate\">{{ entry.file.name }}</span>\n <span class=\"shrink-0 text-muted-foreground\">{{ entry.size }}</span>\n <yuw-button\n variant=\"ghost\"\n size=\"icon-xs\"\n [ariaLabel]=\"removeLabel()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"removed.emit(entry.file)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n</ng-template>\n\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <input\n #native\n hlmInput\n hidden\n type=\"file\"\n [id]=\"_inputId()\"\n [attr.accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"_disabled()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n (change)=\"onChange($event)\"\n />\n\n @if (variant() === 'avatar') {\n <div class=\"flex min-w-0 flex-wrap items-center gap-3\">\n <button\n type=\"button\"\n class=\"cursor-pointer rounded-full disabled:cursor-not-allowed\"\n tabindex=\"-1\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n >\n <yuw-avatar size=\"lg\" [class]=\"userClass()\" [src]=\"_imageSrc()\" [alt]=\"alt()\" [fallback]=\"fallback()\" />\n </button>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n {{ uploadLabel() }}\n </yuw-button>\n </div>\n } @else if (variant() === 'tile') {\n <div class=\"flex\">\n <div class=\"relative\">\n <button\n type=\"button\"\n [class]=\"_tileClasses()\"\n [class.border-destructive]=\"feedback.showError()\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n @if (_imageSrc(); as image) {\n <img class=\"size-full object-cover\" [src]=\"image\" [alt]=\"alt()\" />\n } @else {\n <ng-icon name=\"lucideImagePlus\" size=\"20\" />\n <span>{{ uploadLabel() }}</span>\n }\n </button>\n @if (removeLabel() && value()[0]; as file) {\n <div class=\"absolute inset-e-1 top-1 flex\">\n <yuw-button\n variant=\"outline\"\n size=\"icon-xs\"\n [ariaLabel]=\"removeLabel()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"removed.emit(file)\"\n >\n <ng-icon name=\"lucideX\" size=\"12\" />\n </yuw-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <div [class]=\"_inlineClasses()\">\n @if (_entries().length === 0 && emptyLabel()) {\n <div class=\"flex min-w-0 items-center justify-between gap-3\">\n <span class=\"truncate text-sm text-muted-foreground\">{{ emptyLabel() }}</span>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n color=\"secondary\"\n class=\"shrink-0\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n <ng-icon name=\"lucidePaperclip\" size=\"16\" />\n {{ uploadLabel() }}\n </yuw-button>\n </div>\n } @else if (_entries().length === 0) {\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n color=\"secondary\"\n class=\"w-full\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n <ng-icon name=\"lucideUpload\" size=\"16\" />\n {{ uploadLabel() }}\n </yuw-button>\n } @else if (_entries().length === 1) {\n <div [class]=\"_boxClasses()\" [class.border-destructive]=\"feedback.showError()\">\n <ng-container [ngTemplateOutlet]=\"fileRow\" [ngTemplateOutletContext]=\"{ $implicit: _entries()[0] }\" />\n </div>\n } @else {\n @if (_isMobile()) {\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n class=\"w-full justify-start font-normal\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"_listOpen.set(true)\"\n >\n {{ _countText() }}\n </yuw-button>\n\n <yuw-sheet\n side=\"bottom\"\n panelClass=\"max-h-[85svh] overflow-y-auto\"\n [showTrigger]=\"false\"\n [title]=\"_countText()\"\n [(open)]=\"_listOpen\"\n >\n <ul class=\"flex flex-col gap-1 pb-3\">\n @for (entry of _entries(); track entry.file) {\n <li class=\"flex items-center gap-2 text-sm\">\n <ng-container [ngTemplateOutlet]=\"fileRow\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n </li>\n }\n </ul>\n </yuw-sheet>\n } @else {\n <div class=\"[&_yuw-button]:flex [&_yuw-button]:w-full\">\n <yuw-popover\n align=\"start\"\n panelClass=\"w-80 p-2\"\n triggerVariant=\"outline\"\n triggerClass=\"w-full justify-start font-normal\"\n [triggerSize]=\"size()\"\n [(open)]=\"_listOpen\"\n >\n <span yuwPopoverTrigger>{{ _countText() }}</span>\n\n <ul class=\"flex flex-col gap-1\">\n @for (entry of _entries(); track entry.file) {\n <li class=\"flex items-center gap-2 text-sm\">\n <ng-container [ngTemplateOutlet]=\"fileRow\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n </div>\n }\n }\n </div>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
5741
5800
|
dependencies: [
|
|
5742
5801
|
{
|
|
5743
5802
|
kind: "directive",
|
|
@@ -5896,13 +5955,15 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
5896
5955
|
YuwSheetComponent
|
|
5897
5956
|
],
|
|
5898
5957
|
providers: [provideValueAccessor(YuwInputFileComponent), provideIcons({
|
|
5958
|
+
lucideCircleAlert,
|
|
5899
5959
|
lucideImagePlus,
|
|
5960
|
+
lucideInfo,
|
|
5900
5961
|
lucidePaperclip,
|
|
5901
5962
|
lucideUpload,
|
|
5902
5963
|
lucideX
|
|
5903
5964
|
})],
|
|
5904
5965
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
5905
|
-
template: "<ng-template #fileRow let-entry>\n <span class=\"min-w-0 flex-1 truncate\">{{ entry.file.name }}</span>\n <span class=\"shrink-0 text-muted-foreground\">{{ entry.size }}</span>\n <yuw-button\n variant=\"ghost\"\n size=\"icon-xs\"\n [ariaLabel]=\"removeLabel()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"removed.emit(entry.file)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n</ng-template>\n\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <input\n #native\n hlmInput\n hidden\n type=\"file\"\n [id]=\"_inputId()\"\n [attr.accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"_disabled()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n (change)=\"onChange($event)\"\n />\n\n @if (variant() === 'avatar') {\n <div class=\"flex min-w-0 flex-wrap items-center gap-3\">\n <button\n type=\"button\"\n class=\"cursor-pointer rounded-full disabled:cursor-not-allowed\"\n tabindex=\"-1\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n >\n <yuw-avatar size=\"lg\" [class]=\"userClass()\" [src]=\"_imageSrc()\" [alt]=\"alt()\" [fallback]=\"fallback()\" />\n </button>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n {{ uploadLabel() }}\n </yuw-button>\n </div>\n } @else if (variant() === 'tile') {\n <div class=\"flex\">\n <div class=\"relative\">\n <button\n type=\"button\"\n [class]=\"_tileClasses()\"\n [class.border-destructive]=\"feedback.showError()\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n @if (_imageSrc(); as image) {\n <img class=\"size-full object-cover\" [src]=\"image\" [alt]=\"alt()\" />\n } @else {\n <ng-icon name=\"lucideImagePlus\" size=\"20\" />\n <span>{{ uploadLabel() }}</span>\n }\n </button>\n @if (removeLabel() && value()[0]; as file) {\n <
|
|
5966
|
+
template: "<ng-template #fileRow let-entry>\n <span class=\"min-w-0 flex-1 truncate\">{{ entry.file.name }}</span>\n <span class=\"shrink-0 text-muted-foreground\">{{ entry.size }}</span>\n <yuw-button\n variant=\"ghost\"\n size=\"icon-xs\"\n [ariaLabel]=\"removeLabel()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"removed.emit(entry.file)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n</ng-template>\n\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <input\n #native\n hlmInput\n hidden\n type=\"file\"\n [id]=\"_inputId()\"\n [attr.accept]=\"accept()\"\n [multiple]=\"multiple()\"\n [disabled]=\"_disabled()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n (change)=\"onChange($event)\"\n />\n\n @if (variant() === 'avatar') {\n <div class=\"flex min-w-0 flex-wrap items-center gap-3\">\n <button\n type=\"button\"\n class=\"cursor-pointer rounded-full disabled:cursor-not-allowed\"\n tabindex=\"-1\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n >\n <yuw-avatar size=\"lg\" [class]=\"userClass()\" [src]=\"_imageSrc()\" [alt]=\"alt()\" [fallback]=\"fallback()\" />\n </button>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n {{ uploadLabel() }}\n </yuw-button>\n </div>\n } @else if (variant() === 'tile') {\n <div class=\"flex\">\n <div class=\"relative\">\n <button\n type=\"button\"\n [class]=\"_tileClasses()\"\n [class.border-destructive]=\"feedback.showError()\"\n [attr.aria-label]=\"uploadLabel()\"\n [disabled]=\"_disabled()\"\n (click)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n @if (_imageSrc(); as image) {\n <img class=\"size-full object-cover\" [src]=\"image\" [alt]=\"alt()\" />\n } @else {\n <ng-icon name=\"lucideImagePlus\" size=\"20\" />\n <span>{{ uploadLabel() }}</span>\n }\n </button>\n @if (removeLabel() && value()[0]; as file) {\n <div class=\"absolute inset-e-1 top-1 flex\">\n <yuw-button\n variant=\"outline\"\n size=\"icon-xs\"\n [ariaLabel]=\"removeLabel()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"removed.emit(file)\"\n >\n <ng-icon name=\"lucideX\" size=\"12\" />\n </yuw-button>\n </div>\n }\n </div>\n </div>\n } @else {\n <div [class]=\"_inlineClasses()\">\n @if (_entries().length === 0 && emptyLabel()) {\n <div class=\"flex min-w-0 items-center justify-between gap-3\">\n <span class=\"truncate text-sm text-muted-foreground\">{{ emptyLabel() }}</span>\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n color=\"secondary\"\n class=\"shrink-0\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n <ng-icon name=\"lucidePaperclip\" size=\"16\" />\n {{ uploadLabel() }}\n </yuw-button>\n </div>\n } @else if (_entries().length === 0) {\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n color=\"secondary\"\n class=\"w-full\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"native.click()\"\n (focusout)=\"_onBlur()\"\n >\n <ng-icon name=\"lucideUpload\" size=\"16\" />\n {{ uploadLabel() }}\n </yuw-button>\n } @else if (_entries().length === 1) {\n <div [class]=\"_boxClasses()\" [class.border-destructive]=\"feedback.showError()\">\n <ng-container [ngTemplateOutlet]=\"fileRow\" [ngTemplateOutletContext]=\"{ $implicit: _entries()[0] }\" />\n </div>\n } @else {\n @if (_isMobile()) {\n <yuw-button\n type=\"button\"\n variant=\"outline\"\n class=\"w-full justify-start font-normal\"\n [size]=\"size()\"\n [disabled]=\"_disabled()\"\n (clicked)=\"_listOpen.set(true)\"\n >\n {{ _countText() }}\n </yuw-button>\n\n <yuw-sheet\n side=\"bottom\"\n panelClass=\"max-h-[85svh] overflow-y-auto\"\n [showTrigger]=\"false\"\n [title]=\"_countText()\"\n [(open)]=\"_listOpen\"\n >\n <ul class=\"flex flex-col gap-1 pb-3\">\n @for (entry of _entries(); track entry.file) {\n <li class=\"flex items-center gap-2 text-sm\">\n <ng-container [ngTemplateOutlet]=\"fileRow\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n </li>\n }\n </ul>\n </yuw-sheet>\n } @else {\n <div class=\"[&_yuw-button]:flex [&_yuw-button]:w-full\">\n <yuw-popover\n align=\"start\"\n panelClass=\"w-80 p-2\"\n triggerVariant=\"outline\"\n triggerClass=\"w-full justify-start font-normal\"\n [triggerSize]=\"size()\"\n [(open)]=\"_listOpen\"\n >\n <span yuwPopoverTrigger>{{ _countText() }}</span>\n\n <ul class=\"flex flex-col gap-1\">\n @for (entry of _entries(); track entry.file) {\n <li class=\"flex items-center gap-2 text-sm\">\n <ng-container [ngTemplateOutlet]=\"fileRow\" [ngTemplateOutletContext]=\"{ $implicit: entry }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n </div>\n }\n }\n </div>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
5906
5967
|
}]
|
|
5907
5968
|
}],
|
|
5908
5969
|
ctorParameters: () => [],
|
|
@@ -6082,7 +6143,7 @@ var YuwTextareaComponent = class YuwTextareaComponent extends YuwTextFieldBase {
|
|
|
6082
6143
|
this.rows = input(void 0, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
6083
6144
|
this._autoId = `yuw-textarea-${++nextYuwTextareaId}`;
|
|
6084
6145
|
this._focusSelectors = ["textarea"];
|
|
6085
|
-
this._classes = computed(() => cn(this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6146
|
+
this._classes = computed(() => cn(YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6086
6147
|
this._hasLeftAddon = computed(() => this._leftAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasLeftAddon" }] : /* istanbul ignore next */ []);
|
|
6087
6148
|
this._hasRightAddon = computed(() => this._rightAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasRightAddon" }] : /* istanbul ignore next */ []);
|
|
6088
6149
|
this._hasAddons = computed(() => this._hasLeftAddon() || this._hasRightAddon(), ...ngDevMode ? [{ debugName: "_hasAddons" }] : /* istanbul ignore next */ []);
|
|
@@ -6127,7 +6188,10 @@ var YuwTextareaComponent = class YuwTextareaComponent extends YuwTextFieldBase {
|
|
|
6127
6188
|
}
|
|
6128
6189
|
},
|
|
6129
6190
|
host: { classAttribute: "contents" },
|
|
6130
|
-
providers: [
|
|
6191
|
+
providers: [provideIcons({
|
|
6192
|
+
lucideCircleAlert,
|
|
6193
|
+
lucideInfo
|
|
6194
|
+
}), provideValueAccessor(YuwTextareaComponent)],
|
|
6131
6195
|
queries: [{
|
|
6132
6196
|
propertyName: "_leftAddons",
|
|
6133
6197
|
predicate: YuwLeftAddonDirective,
|
|
@@ -6139,8 +6203,20 @@ var YuwTextareaComponent = class YuwTextareaComponent extends YuwTextFieldBase {
|
|
|
6139
6203
|
}],
|
|
6140
6204
|
usesInheritance: true,
|
|
6141
6205
|
ngImport: i0,
|
|
6142
|
-
template: "<!-- The control is repeated in both branches on purpose: a shared ng-template cannot express it,\n because the two variants differ in a statically-matched directive (hlmInputGroupTextarea vs\n hlmTextarea) and Angular resolves directives at compile time — a single template would drag the\n group's reset classes into the bare case (or vice versa). Keep the binding lists in sync. -->\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"block-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <textarea\n hlmInputGroupTextarea\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"block-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <textarea\n hlmTextarea\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
6206
|
+
template: "<!-- The control is repeated in both branches on purpose: a shared ng-template cannot express it,\n because the two variants differ in a statically-matched directive (hlmInputGroupTextarea vs\n hlmTextarea) and Angular resolves directives at compile time — a single template would drag the\n group's reset classes into the bare case (or vice versa). Keep the binding lists in sync. -->\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"block-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <textarea\n hlmInputGroupTextarea\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"block-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <textarea\n hlmTextarea\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
6143
6207
|
dependencies: [
|
|
6208
|
+
{
|
|
6209
|
+
kind: "component",
|
|
6210
|
+
type: NgIcon,
|
|
6211
|
+
selector: "ng-icon",
|
|
6212
|
+
inputs: [
|
|
6213
|
+
"name",
|
|
6214
|
+
"svg",
|
|
6215
|
+
"size",
|
|
6216
|
+
"strokeWidth",
|
|
6217
|
+
"color"
|
|
6218
|
+
]
|
|
6219
|
+
},
|
|
6144
6220
|
{
|
|
6145
6221
|
kind: "directive",
|
|
6146
6222
|
type: HlmField,
|
|
@@ -6196,6 +6272,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6196
6272
|
args: [{
|
|
6197
6273
|
selector: "yuw-textarea",
|
|
6198
6274
|
imports: [
|
|
6275
|
+
NgIcon,
|
|
6199
6276
|
HlmField,
|
|
6200
6277
|
HlmFieldDescription,
|
|
6201
6278
|
YuwFieldFeedbackDirective,
|
|
@@ -6204,10 +6281,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6204
6281
|
HlmInputGroupTextarea,
|
|
6205
6282
|
HlmInputGroupAddon
|
|
6206
6283
|
],
|
|
6207
|
-
providers: [
|
|
6284
|
+
providers: [provideIcons({
|
|
6285
|
+
lucideCircleAlert,
|
|
6286
|
+
lucideInfo
|
|
6287
|
+
}), provideValueAccessor(YuwTextareaComponent)],
|
|
6208
6288
|
host: { class: "contents" },
|
|
6209
6289
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6210
|
-
template: "<!-- The control is repeated in both branches on purpose: a shared ng-template cannot express it,\n because the two variants differ in a statically-matched directive (hlmInputGroupTextarea vs\n hlmTextarea) and Angular resolves directives at compile time — a single template would drag the\n group's reset classes into the bare case (or vice versa). Keep the binding lists in sync. -->\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"block-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <textarea\n hlmInputGroupTextarea\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"block-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <textarea\n hlmTextarea\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
6290
|
+
template: "<!-- The control is repeated in both branches on purpose: a shared ng-template cannot express it,\n because the two variants differ in a statically-matched directive (hlmInputGroupTextarea vs\n hlmTextarea) and Angular resolves directives at compile time — a single template would drag the\n group's reset classes into the bare case (or vice versa). Keep the binding lists in sync. -->\n<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n @if (_hasAddons()) {\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"block-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <textarea\n hlmInputGroupTextarea\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n\n @if (_hasRightAddon()) {\n <hlm-input-group-addon align=\"block-end\">\n <ng-content select=\"yuw-right-addon\" />\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n } @else {\n <textarea\n hlmTextarea\n [class]=\"_classes()\"\n [id]=\"_inputId()\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.rows]=\"rows()\"\n [attr.maxlength]=\"maxlength()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n ></textarea>\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
6211
6291
|
}]
|
|
6212
6292
|
}],
|
|
6213
6293
|
propDecorators: {
|
|
@@ -6378,7 +6458,7 @@ var YuwSearchInputComponent = class YuwSearchInputComponent extends YuwTextField
|
|
|
6378
6458
|
this._focusSelectors = ["input"];
|
|
6379
6459
|
this._open = signal(false, ...ngDevMode ? [{ debugName: "_open" }] : /* istanbul ignore next */ []);
|
|
6380
6460
|
this._collapsible = computed(() => this.collapseFrom() !== void 0, ...ngDevMode ? [{ debugName: "_collapsible" }] : /* istanbul ignore next */ []);
|
|
6381
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), searchInputGroupVariants({
|
|
6461
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, searchInputGroupVariants({
|
|
6382
6462
|
transparent: this.transparent(),
|
|
6383
6463
|
collapsible: this._collapsible()
|
|
6384
6464
|
}), this.userClass(), "overflow-hidden"), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
@@ -6494,6 +6574,8 @@ var YuwSearchInputComponent = class YuwSearchInputComponent extends YuwTextField
|
|
|
6494
6574
|
outputs: { searched: "searched" },
|
|
6495
6575
|
host: { classAttribute: "contents" },
|
|
6496
6576
|
providers: [provideValueAccessor(YuwSearchInputComponent), provideIcons({
|
|
6577
|
+
lucideCircleAlert,
|
|
6578
|
+
lucideInfo,
|
|
6497
6579
|
lucideSearch,
|
|
6498
6580
|
lucideX
|
|
6499
6581
|
})],
|
|
@@ -6506,7 +6588,7 @@ var YuwSearchInputComponent = class YuwSearchInputComponent extends YuwTextField
|
|
|
6506
6588
|
}],
|
|
6507
6589
|
usesInheritance: true,
|
|
6508
6590
|
ngImport: i0,
|
|
6509
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <div [class]=\"_wrapperClasses()\" [style.max-width]=\"_wrapperMaxWidth()\">\n <hlm-input-group [class]=\"_classes()\">\n <hlm-input-group-addon align=\"inline-start\" [class]=\"_iconClasses()\">\n @if (_showExpandButton()) {\n <button\n hlmInputGroupButton\n size=\"icon-sm\"\n [class]=\"_expandButtonClasses()\"\n [attr.aria-label]=\"expandAriaLabel()\"\n [attr.aria-expanded]=\"false\"\n (focus)=\"onExpandFocus($event)\"\n (click)=\"onExpand()\"\n >\n <ng-icon name=\"lucideSearch\" />\n </button>\n } @else {\n <ng-icon name=\"lucideSearch\" />\n }\n </hlm-input-group-addon>\n\n <input\n #searchInput\n hlmInputGroupInput\n [class]=\"_fieldClasses()\"\n [id]=\"_inputId()\"\n type=\"text\"\n inputmode=\"search\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.tabindex]=\"expanded() ? null : -1\"\n [attr.aria-hidden]=\"expanded() ? null : true\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n (keydown.escape)=\"onEscape()\"\n (blur)=\"onBlur()\"\n />\n\n @if (_showClear()) {\n <hlm-input-group-addon align=\"inline-end\">\n <button hlmInputGroupButton size=\"icon-xs\" [attr.aria-label]=\"clearAriaLabel()\" (click)=\"onClear()\">\n <ng-icon name=\"lucideX\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n </div>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
6591
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <div [class]=\"_wrapperClasses()\" [style.max-width]=\"_wrapperMaxWidth()\">\n <hlm-input-group [class]=\"_classes()\">\n <hlm-input-group-addon align=\"inline-start\" [class]=\"_iconClasses()\">\n @if (_showExpandButton()) {\n <button\n hlmInputGroupButton\n size=\"icon-sm\"\n [class]=\"_expandButtonClasses()\"\n [attr.aria-label]=\"expandAriaLabel()\"\n [attr.aria-expanded]=\"false\"\n (focus)=\"onExpandFocus($event)\"\n (click)=\"onExpand()\"\n >\n <ng-icon name=\"lucideSearch\" />\n </button>\n } @else {\n <ng-icon name=\"lucideSearch\" />\n }\n </hlm-input-group-addon>\n\n <input\n #searchInput\n hlmInputGroupInput\n [class]=\"_fieldClasses()\"\n [id]=\"_inputId()\"\n type=\"text\"\n inputmode=\"search\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.tabindex]=\"expanded() ? null : -1\"\n [attr.aria-hidden]=\"expanded() ? null : true\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n (keydown.escape)=\"onEscape()\"\n (blur)=\"onBlur()\"\n />\n\n @if (_showClear()) {\n <hlm-input-group-addon align=\"inline-end\">\n <button hlmInputGroupButton size=\"icon-xs\" [attr.aria-label]=\"clearAriaLabel()\" (click)=\"onClear()\">\n <ng-icon name=\"lucideX\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n </div>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
6510
6592
|
dependencies: [
|
|
6511
6593
|
{
|
|
6512
6594
|
kind: "directive",
|
|
@@ -6583,12 +6665,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6583
6665
|
NgIcon
|
|
6584
6666
|
],
|
|
6585
6667
|
providers: [provideValueAccessor(YuwSearchInputComponent), provideIcons({
|
|
6668
|
+
lucideCircleAlert,
|
|
6669
|
+
lucideInfo,
|
|
6586
6670
|
lucideSearch,
|
|
6587
6671
|
lucideX
|
|
6588
6672
|
})],
|
|
6589
6673
|
host: { class: "contents" },
|
|
6590
6674
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6591
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <div [class]=\"_wrapperClasses()\" [style.max-width]=\"_wrapperMaxWidth()\">\n <hlm-input-group [class]=\"_classes()\">\n <hlm-input-group-addon align=\"inline-start\" [class]=\"_iconClasses()\">\n @if (_showExpandButton()) {\n <button\n hlmInputGroupButton\n size=\"icon-sm\"\n [class]=\"_expandButtonClasses()\"\n [attr.aria-label]=\"expandAriaLabel()\"\n [attr.aria-expanded]=\"false\"\n (focus)=\"onExpandFocus($event)\"\n (click)=\"onExpand()\"\n >\n <ng-icon name=\"lucideSearch\" />\n </button>\n } @else {\n <ng-icon name=\"lucideSearch\" />\n }\n </hlm-input-group-addon>\n\n <input\n #searchInput\n hlmInputGroupInput\n [class]=\"_fieldClasses()\"\n [id]=\"_inputId()\"\n type=\"text\"\n inputmode=\"search\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.tabindex]=\"expanded() ? null : -1\"\n [attr.aria-hidden]=\"expanded() ? null : true\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n (keydown.escape)=\"onEscape()\"\n (blur)=\"onBlur()\"\n />\n\n @if (_showClear()) {\n <hlm-input-group-addon align=\"inline-end\">\n <button hlmInputGroupButton size=\"icon-xs\" [attr.aria-label]=\"clearAriaLabel()\" (click)=\"onClear()\">\n <ng-icon name=\"lucideX\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n </div>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
6675
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <div [class]=\"_wrapperClasses()\" [style.max-width]=\"_wrapperMaxWidth()\">\n <hlm-input-group [class]=\"_classes()\">\n <hlm-input-group-addon align=\"inline-start\" [class]=\"_iconClasses()\">\n @if (_showExpandButton()) {\n <button\n hlmInputGroupButton\n size=\"icon-sm\"\n [class]=\"_expandButtonClasses()\"\n [attr.aria-label]=\"expandAriaLabel()\"\n [attr.aria-expanded]=\"false\"\n (focus)=\"onExpandFocus($event)\"\n (click)=\"onExpand()\"\n >\n <ng-icon name=\"lucideSearch\" />\n </button>\n } @else {\n <ng-icon name=\"lucideSearch\" />\n }\n </hlm-input-group-addon>\n\n <input\n #searchInput\n hlmInputGroupInput\n [class]=\"_fieldClasses()\"\n [id]=\"_inputId()\"\n type=\"text\"\n inputmode=\"search\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n [attr.tabindex]=\"expanded() ? null : -1\"\n [attr.aria-hidden]=\"expanded() ? null : true\"\n (input)=\"onInput($event)\"\n (keydown.enter)=\"onEnter()\"\n (keydown.escape)=\"onEscape()\"\n (blur)=\"onBlur()\"\n />\n\n @if (_showClear()) {\n <hlm-input-group-addon align=\"inline-end\">\n <button hlmInputGroupButton size=\"icon-xs\" [attr.aria-label]=\"clearAriaLabel()\" (click)=\"onClear()\">\n <ng-icon name=\"lucideX\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n </div>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
6592
6676
|
}]
|
|
6593
6677
|
}],
|
|
6594
6678
|
propDecorators: {
|
|
@@ -6673,7 +6757,7 @@ var YuwPasswordInputComponent = class YuwPasswordInputComponent extends YuwTextF
|
|
|
6673
6757
|
this.enterPressed = output();
|
|
6674
6758
|
this._autoId = `yuw-password-input-${++nextYuwPasswordInputId}`;
|
|
6675
6759
|
this._focusSelectors = ["input"];
|
|
6676
|
-
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6760
|
+
this._classes = computed(() => cn(yuwFieldSizeVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_classes" }] : /* istanbul ignore next */ []);
|
|
6677
6761
|
this._hasLeftAddon = computed(() => this._leftAddons().length > 0, ...ngDevMode ? [{ debugName: "_hasLeftAddon" }] : /* istanbul ignore next */ []);
|
|
6678
6762
|
this._reveal = computed(() => YUW_PASSWORD_REVEAL_STATES[`${this.masked()}`], ...ngDevMode ? [{ debugName: "_reveal" }] : /* istanbul ignore next */ []);
|
|
6679
6763
|
}
|
|
@@ -6735,8 +6819,10 @@ var YuwPasswordInputComponent = class YuwPasswordInputComponent extends YuwTextF
|
|
|
6735
6819
|
},
|
|
6736
6820
|
host: { classAttribute: "contents" },
|
|
6737
6821
|
providers: [provideValueAccessor(YuwPasswordInputComponent), provideIcons({
|
|
6822
|
+
lucideCircleAlert,
|
|
6738
6823
|
lucideEye,
|
|
6739
|
-
lucideEyeOff
|
|
6824
|
+
lucideEyeOff,
|
|
6825
|
+
lucideInfo
|
|
6740
6826
|
})],
|
|
6741
6827
|
queries: [{
|
|
6742
6828
|
propertyName: "_leftAddons",
|
|
@@ -6745,7 +6831,7 @@ var YuwPasswordInputComponent = class YuwPasswordInputComponent extends YuwTextF
|
|
|
6745
6831
|
}],
|
|
6746
6832
|
usesInheritance: true,
|
|
6747
6833
|
ngImport: i0,
|
|
6748
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"_reveal().inputType\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (revealAriaLabel(); as label) {\n <hlm-input-group-addon align=\"inline-end\">\n <button\n hlmInputGroupButton\n size=\"icon-xs\"\n [disabled]=\"_disabled()\"\n [attr.aria-label]=\"label\"\n [attr.aria-pressed]=\"!_reveal().struck\"\n (click)=\"onToggleReveal()\"\n >\n <ng-icon [name]=\"_reveal().icon\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
6834
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"_reveal().inputType\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (revealAriaLabel(); as label) {\n <hlm-input-group-addon align=\"inline-end\">\n <button\n hlmInputGroupButton\n size=\"icon-xs\"\n [disabled]=\"_disabled()\"\n [attr.aria-label]=\"label\"\n [attr.aria-pressed]=\"!_reveal().struck\"\n (click)=\"onToggleReveal()\"\n >\n <ng-icon [name]=\"_reveal().icon\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
6749
6835
|
dependencies: [
|
|
6750
6836
|
{
|
|
6751
6837
|
kind: "directive",
|
|
@@ -6822,12 +6908,14 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6822
6908
|
NgIcon
|
|
6823
6909
|
],
|
|
6824
6910
|
providers: [provideValueAccessor(YuwPasswordInputComponent), provideIcons({
|
|
6911
|
+
lucideCircleAlert,
|
|
6825
6912
|
lucideEye,
|
|
6826
|
-
lucideEyeOff
|
|
6913
|
+
lucideEyeOff,
|
|
6914
|
+
lucideInfo
|
|
6827
6915
|
})],
|
|
6828
6916
|
host: { class: "contents" },
|
|
6829
6917
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
6830
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"_reveal().inputType\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (revealAriaLabel(); as label) {\n <hlm-input-group-addon align=\"inline-end\">\n <button\n hlmInputGroupButton\n size=\"icon-xs\"\n [disabled]=\"_disabled()\"\n [attr.aria-label]=\"label\"\n [attr.aria-pressed]=\"!_reveal().struck\"\n (click)=\"onToggleReveal()\"\n >\n <ng-icon [name]=\"_reveal().icon\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
6918
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <hlm-input-group [class]=\"_classes()\">\n @if (_hasLeftAddon()) {\n <hlm-input-group-addon align=\"inline-start\">\n <ng-content select=\"yuw-left-addon\" />\n </hlm-input-group-addon>\n }\n\n <input\n hlmInputGroupInput\n [id]=\"_inputId()\"\n [type]=\"_reveal().inputType\"\n [value]=\"value()\"\n [disabled]=\"_disabled()\"\n [readOnly]=\"readonly()\"\n [required]=\"required()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n [attr.name]=\"name()\"\n [attr.autocomplete]=\"autocomplete()\"\n [attr.placeholder]=\"placeholder()\"\n (input)=\"onInput($event)\"\n (change)=\"onChange()\"\n (blur)=\"_onBlur()\"\n (keydown.enter)=\"onEnterPressed()\"\n />\n\n @if (revealAriaLabel(); as label) {\n <hlm-input-group-addon align=\"inline-end\">\n <button\n hlmInputGroupButton\n size=\"icon-xs\"\n [disabled]=\"_disabled()\"\n [attr.aria-label]=\"label\"\n [attr.aria-pressed]=\"!_reveal().struck\"\n (click)=\"onToggleReveal()\"\n >\n <ng-icon [name]=\"_reveal().icon\" />\n </button>\n </hlm-input-group-addon>\n }\n </hlm-input-group>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
6831
6919
|
}]
|
|
6832
6920
|
}],
|
|
6833
6921
|
propDecorators: {
|
|
@@ -6868,7 +6956,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
6868
6956
|
}]
|
|
6869
6957
|
}
|
|
6870
6958
|
});
|
|
6871
|
-
const yuwInputOtpSizeVariants = cva("", {
|
|
6959
|
+
const yuwInputOtpSizeVariants = cva("[&_[data-slot=input-otp-slot]]:bg-(color:--neutrals-fill-input)", {
|
|
6872
6960
|
variants: { size: {
|
|
6873
6961
|
default: "[&_[data-slot=input-otp-slot]]:size-10",
|
|
6874
6962
|
xs: "[&_[data-slot=input-otp-slot]]:size-7",
|
|
@@ -6976,11 +7064,26 @@ var YuwInputOtpComponent = class YuwInputOtpComponent extends YuwFieldBase {
|
|
|
6976
7064
|
enterPressed: "enterPressed"
|
|
6977
7065
|
},
|
|
6978
7066
|
host: { classAttribute: "contents" },
|
|
6979
|
-
providers: [
|
|
7067
|
+
providers: [provideIcons({
|
|
7068
|
+
lucideCircleAlert,
|
|
7069
|
+
lucideInfo
|
|
7070
|
+
}), provideValueAccessor(YuwInputOtpComponent)],
|
|
6980
7071
|
usesInheritance: true,
|
|
6981
7072
|
ngImport: i0,
|
|
6982
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-fit min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <brn-input-otp\n hlmInputOtp\n [class]=\"_classes()\"\n [inputId]=\"_inputId()\"\n [length]=\"_length()\"\n [value]=\"value()\"\n [inputMode]=\"mode()\"\n [disabled]=\"_disabled()\"\n [autofocus]=\"autofocus()\"\n [transformPaste]=\"transformPaste()\"\n inputAutocomplete=\"one-time-code\"\n (valueChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n (completed)=\"completed.emit($event)\"\n (keydown.enter)=\"onEnterPressed()\"\n >\n @for (group of _groups(); track $index) {\n @if (group.precededBySeparator) {\n <hlm-input-otp-separator />\n }\n\n <hlm-input-otp-group>\n @for (index of group.indices; track index) {\n <hlm-input-otp-slot [index]=\"index\" [forceInvalid]=\"feedback.forcedInvalid()\" />\n }\n </hlm-input-otp-group>\n }\n </brn-input-otp>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
7073
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-fit min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <brn-input-otp\n hlmInputOtp\n [class]=\"_classes()\"\n [inputId]=\"_inputId()\"\n [length]=\"_length()\"\n [value]=\"value()\"\n [inputMode]=\"mode()\"\n [disabled]=\"_disabled()\"\n [autofocus]=\"autofocus()\"\n [transformPaste]=\"transformPaste()\"\n inputAutocomplete=\"one-time-code\"\n (valueChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n (completed)=\"completed.emit($event)\"\n (keydown.enter)=\"onEnterPressed()\"\n >\n @for (group of _groups(); track $index) {\n @if (group.precededBySeparator) {\n <hlm-input-otp-separator />\n }\n\n <hlm-input-otp-group>\n @for (index of group.indices; track index) {\n <hlm-input-otp-slot [index]=\"index\" [forceInvalid]=\"feedback.forcedInvalid()\" />\n }\n </hlm-input-otp-group>\n }\n </brn-input-otp>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
6983
7074
|
dependencies: [
|
|
7075
|
+
{
|
|
7076
|
+
kind: "component",
|
|
7077
|
+
type: NgIcon,
|
|
7078
|
+
selector: "ng-icon",
|
|
7079
|
+
inputs: [
|
|
7080
|
+
"name",
|
|
7081
|
+
"svg",
|
|
7082
|
+
"size",
|
|
7083
|
+
"strokeWidth",
|
|
7084
|
+
"color"
|
|
7085
|
+
]
|
|
7086
|
+
},
|
|
6984
7087
|
{
|
|
6985
7088
|
kind: "directive",
|
|
6986
7089
|
type: HlmField,
|
|
@@ -7056,16 +7159,20 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
7056
7159
|
args: [{
|
|
7057
7160
|
selector: "yuw-input-otp",
|
|
7058
7161
|
imports: [
|
|
7162
|
+
NgIcon,
|
|
7059
7163
|
HlmField,
|
|
7060
7164
|
HlmFieldDescription,
|
|
7061
7165
|
YuwFieldFeedbackDirective,
|
|
7062
7166
|
BrnInputOtp,
|
|
7063
7167
|
...HlmInputOtpImports
|
|
7064
7168
|
],
|
|
7065
|
-
providers: [
|
|
7169
|
+
providers: [provideIcons({
|
|
7170
|
+
lucideCircleAlert,
|
|
7171
|
+
lucideInfo
|
|
7172
|
+
}), provideValueAccessor(YuwInputOtpComponent)],
|
|
7066
7173
|
host: { class: "contents" },
|
|
7067
7174
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
7068
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-fit min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <brn-input-otp\n hlmInputOtp\n [class]=\"_classes()\"\n [inputId]=\"_inputId()\"\n [length]=\"_length()\"\n [value]=\"value()\"\n [inputMode]=\"mode()\"\n [disabled]=\"_disabled()\"\n [autofocus]=\"autofocus()\"\n [transformPaste]=\"transformPaste()\"\n inputAutocomplete=\"one-time-code\"\n (valueChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n (completed)=\"completed.emit($event)\"\n (keydown.enter)=\"onEnterPressed()\"\n >\n @for (group of _groups(); track $index) {\n @if (group.precededBySeparator) {\n <hlm-input-otp-separator />\n }\n\n <hlm-input-otp-group>\n @for (index of group.indices; track index) {\n <hlm-input-otp-slot [index]=\"index\" [forceInvalid]=\"feedback.forcedInvalid()\" />\n }\n </hlm-input-otp-group>\n }\n </brn-input-otp>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
7175
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-fit min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [errorText]=\"errorText()\"\n>\n <brn-input-otp\n hlmInputOtp\n [class]=\"_classes()\"\n [inputId]=\"_inputId()\"\n [length]=\"_length()\"\n [value]=\"value()\"\n [inputMode]=\"mode()\"\n [disabled]=\"_disabled()\"\n [autofocus]=\"autofocus()\"\n [transformPaste]=\"transformPaste()\"\n inputAutocomplete=\"one-time-code\"\n (valueChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n (completed)=\"completed.emit($event)\"\n (keydown.enter)=\"onEnterPressed()\"\n >\n @for (group of _groups(); track $index) {\n @if (group.precededBySeparator) {\n <hlm-input-otp-separator />\n }\n\n <hlm-input-otp-group>\n @for (index of group.indices; track index) {\n <hlm-input-otp-slot [index]=\"index\" [forceInvalid]=\"feedback.forcedInvalid()\" />\n }\n </hlm-input-otp-group>\n }\n </brn-input-otp>\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
7069
7176
|
}]
|
|
7070
7177
|
}],
|
|
7071
7178
|
propDecorators: {
|
|
@@ -7125,7 +7232,7 @@ const YUW_SWITCH_HELM_SIZE = {
|
|
|
7125
7232
|
default: "default",
|
|
7126
7233
|
lg: "default"
|
|
7127
7234
|
};
|
|
7128
|
-
const yuwSwitchSizeVariants = cva("", {
|
|
7235
|
+
const yuwSwitchSizeVariants = cva("[&_[data-slot=switch-thumb][data-state=unchecked]]:bg-(color:--neutrals-fill-strong)", {
|
|
7129
7236
|
variants: { size: {
|
|
7130
7237
|
xs: "",
|
|
7131
7238
|
sm: "data-[size=default]:h-[18px] data-[size=default]:w-[28px] [&_[data-slot=switch-thumb]]:group-data-[size=default]/switch:size-3.5",
|
|
@@ -8716,6 +8823,7 @@ var YuwContextMenuDirective = class YuwContextMenuDirective {
|
|
|
8716
8823
|
type: YuwContextMenuDirective,
|
|
8717
8824
|
isStandalone: true,
|
|
8718
8825
|
selector: "[yuwContextMenu]",
|
|
8826
|
+
host: { classAttribute: "p-2" },
|
|
8719
8827
|
hostDirectives: [{
|
|
8720
8828
|
directive: i2.HlmDropdownMenu,
|
|
8721
8829
|
inputs: ["sideOffset", "sideOffset"]
|
|
@@ -8736,15 +8844,12 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8736
8844
|
hostDirectives: [{
|
|
8737
8845
|
directive: HlmDropdownMenu,
|
|
8738
8846
|
inputs: ["sideOffset"]
|
|
8739
|
-
}]
|
|
8847
|
+
}],
|
|
8848
|
+
host: { class: "p-2" }
|
|
8740
8849
|
}]
|
|
8741
8850
|
}]
|
|
8742
8851
|
});
|
|
8743
8852
|
var YuwContextMenuItemDirective = class YuwContextMenuItemDirective {
|
|
8744
|
-
constructor() {
|
|
8745
|
-
this._item = inject(CdkMenuItem, { host: true });
|
|
8746
|
-
this.triggered = outputFromObservable(this._item.triggered);
|
|
8747
|
-
}
|
|
8748
8853
|
static {
|
|
8749
8854
|
this.ɵfac = i0.ɵɵngDeclareFactory({
|
|
8750
8855
|
minVersion: "12.0.0",
|
|
@@ -8762,7 +8867,7 @@ var YuwContextMenuItemDirective = class YuwContextMenuItemDirective {
|
|
|
8762
8867
|
type: YuwContextMenuItemDirective,
|
|
8763
8868
|
isStandalone: true,
|
|
8764
8869
|
selector: "[yuwContextMenuItem]",
|
|
8765
|
-
|
|
8870
|
+
host: { classAttribute: "gap-2.5 px-2 py-2" },
|
|
8766
8871
|
hostDirectives: [{
|
|
8767
8872
|
directive: i2.HlmDropdownMenuItem,
|
|
8768
8873
|
inputs: [
|
|
@@ -8794,13 +8899,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8794
8899
|
"variant",
|
|
8795
8900
|
"inset"
|
|
8796
8901
|
]
|
|
8797
|
-
}]
|
|
8902
|
+
}],
|
|
8903
|
+
host: { class: YUW_MENU_ITEM_CLASS }
|
|
8798
8904
|
}]
|
|
8799
|
-
}]
|
|
8800
|
-
propDecorators: { triggered: [{
|
|
8801
|
-
type: i0.Output,
|
|
8802
|
-
args: ["triggered"]
|
|
8803
|
-
}] }
|
|
8905
|
+
}]
|
|
8804
8906
|
});
|
|
8805
8907
|
var YuwContextMenuCheckboxDirective = class YuwContextMenuCheckboxDirective {
|
|
8806
8908
|
constructor() {
|
|
@@ -8813,7 +8915,6 @@ var YuwContextMenuCheckboxDirective = class YuwContextMenuCheckboxDirective {
|
|
|
8813
8915
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
8814
8916
|
transform: booleanAttribute
|
|
8815
8917
|
});
|
|
8816
|
-
this.triggered = outputFromObservable(this._item.triggered);
|
|
8817
8918
|
effect(() => {
|
|
8818
8919
|
this._item.checked = this.checked();
|
|
8819
8920
|
this._item.disabled = this.disabled();
|
|
@@ -8852,7 +8953,7 @@ var YuwContextMenuCheckboxDirective = class YuwContextMenuCheckboxDirective {
|
|
|
8852
8953
|
transformFunction: null
|
|
8853
8954
|
}
|
|
8854
8955
|
},
|
|
8855
|
-
|
|
8956
|
+
host: { classAttribute: "gap-2.5 py-2 ps-2" },
|
|
8856
8957
|
hostDirectives: [{
|
|
8857
8958
|
directive: i2.HlmDropdownMenuCheckbox,
|
|
8858
8959
|
inputs: ["inset", "inset"]
|
|
@@ -8873,7 +8974,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8873
8974
|
hostDirectives: [{
|
|
8874
8975
|
directive: HlmDropdownMenuCheckbox,
|
|
8875
8976
|
inputs: ["inset"]
|
|
8876
|
-
}]
|
|
8977
|
+
}],
|
|
8978
|
+
host: { class: YUW_MENU_INDICATOR_ITEM_CLASS }
|
|
8877
8979
|
}]
|
|
8878
8980
|
}],
|
|
8879
8981
|
ctorParameters: () => [],
|
|
@@ -8893,10 +8995,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8893
8995
|
alias: "disabled",
|
|
8894
8996
|
required: false
|
|
8895
8997
|
}]
|
|
8896
|
-
}],
|
|
8897
|
-
triggered: [{
|
|
8898
|
-
type: i0.Output,
|
|
8899
|
-
args: ["triggered"]
|
|
8900
8998
|
}]
|
|
8901
8999
|
}
|
|
8902
9000
|
});
|
|
@@ -8911,7 +9009,6 @@ var YuwContextMenuRadioDirective = class YuwContextMenuRadioDirective {
|
|
|
8911
9009
|
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
8912
9010
|
transform: booleanAttribute
|
|
8913
9011
|
});
|
|
8914
|
-
this.triggered = outputFromObservable(this._item.triggered);
|
|
8915
9012
|
effect(() => {
|
|
8916
9013
|
this._item.checked = this.checked();
|
|
8917
9014
|
this._item.disabled = this.disabled();
|
|
@@ -8950,7 +9047,7 @@ var YuwContextMenuRadioDirective = class YuwContextMenuRadioDirective {
|
|
|
8950
9047
|
transformFunction: null
|
|
8951
9048
|
}
|
|
8952
9049
|
},
|
|
8953
|
-
|
|
9050
|
+
host: { classAttribute: "gap-2.5 py-2 ps-2" },
|
|
8954
9051
|
hostDirectives: [{ directive: i2.HlmDropdownMenuRadio }],
|
|
8955
9052
|
ngImport: i0
|
|
8956
9053
|
});
|
|
@@ -8965,7 +9062,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8965
9062
|
type: Directive,
|
|
8966
9063
|
args: [{
|
|
8967
9064
|
selector: "[yuwContextMenuRadio]",
|
|
8968
|
-
hostDirectives: [HlmDropdownMenuRadio]
|
|
9065
|
+
hostDirectives: [HlmDropdownMenuRadio],
|
|
9066
|
+
host: { class: YUW_MENU_INDICATOR_ITEM_CLASS }
|
|
8969
9067
|
}]
|
|
8970
9068
|
}],
|
|
8971
9069
|
ctorParameters: () => [],
|
|
@@ -8985,10 +9083,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
8985
9083
|
alias: "disabled",
|
|
8986
9084
|
required: false
|
|
8987
9085
|
}]
|
|
8988
|
-
}],
|
|
8989
|
-
triggered: [{
|
|
8990
|
-
type: i0.Output,
|
|
8991
|
-
args: ["triggered"]
|
|
8992
9086
|
}]
|
|
8993
9087
|
}
|
|
8994
9088
|
});
|
|
@@ -9010,6 +9104,7 @@ var YuwContextMenuLabelDirective = class YuwContextMenuLabelDirective {
|
|
|
9010
9104
|
type: YuwContextMenuLabelDirective,
|
|
9011
9105
|
isStandalone: true,
|
|
9012
9106
|
selector: "[yuwContextMenuLabel]",
|
|
9107
|
+
host: { classAttribute: "block px-2 pt-1 pb-2 text-sm font-normal text-muted-foreground" },
|
|
9013
9108
|
hostDirectives: [{
|
|
9014
9109
|
directive: i2.HlmDropdownMenuLabel,
|
|
9015
9110
|
inputs: ["inset", "inset"]
|
|
@@ -9030,7 +9125,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9030
9125
|
hostDirectives: [{
|
|
9031
9126
|
directive: HlmDropdownMenuLabel,
|
|
9032
9127
|
inputs: ["inset"]
|
|
9033
|
-
}]
|
|
9128
|
+
}],
|
|
9129
|
+
host: { class: YUW_MENU_LABEL_CLASS }
|
|
9034
9130
|
}]
|
|
9035
9131
|
}]
|
|
9036
9132
|
});
|
|
@@ -9088,6 +9184,7 @@ var YuwContextMenuSeparatorDirective = class YuwContextMenuSeparatorDirective {
|
|
|
9088
9184
|
type: YuwContextMenuSeparatorDirective,
|
|
9089
9185
|
isStandalone: true,
|
|
9090
9186
|
selector: "[yuwContextMenuSeparator]",
|
|
9187
|
+
host: { classAttribute: "-mx-2 my-1.5" },
|
|
9091
9188
|
hostDirectives: [{ directive: i2.HlmDropdownMenuSeparator }],
|
|
9092
9189
|
ngImport: i0
|
|
9093
9190
|
});
|
|
@@ -9102,7 +9199,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
9102
9199
|
type: Directive,
|
|
9103
9200
|
args: [{
|
|
9104
9201
|
selector: "[yuwContextMenuSeparator]",
|
|
9105
|
-
hostDirectives: [HlmDropdownMenuSeparator]
|
|
9202
|
+
hostDirectives: [HlmDropdownMenuSeparator],
|
|
9203
|
+
host: { class: YUW_MENU_SEPARATOR_CLASS }
|
|
9106
9204
|
}]
|
|
9107
9205
|
}]
|
|
9108
9206
|
});
|
|
@@ -10145,7 +10243,7 @@ var YuwDatepickerComponent = class YuwDatepickerComponent extends YuwValueAccess
|
|
|
10145
10243
|
if (!value) return [];
|
|
10146
10244
|
return Array.isArray(value) ? value : [value];
|
|
10147
10245
|
}, ...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 */ []);
|
|
10246
|
+
this._triggerClass = computed(() => cn("max-w-full", yuwButtonVariants({ size: this.size() }), YUW_FIELD_FILL_CLASS, this.userClass()), ...ngDevMode ? [{ debugName: "_triggerClass" }] : /* istanbul ignore next */ []);
|
|
10149
10247
|
this._triggerContext = computed(() => ({ $implicit: this._label() ?? "" }), ...ngDevMode ? [{ debugName: "_triggerContext" }] : /* istanbul ignore next */ []);
|
|
10150
10248
|
}
|
|
10151
10249
|
_emptyValue() {
|
|
@@ -10315,7 +10413,10 @@ var YuwDatepickerComponent = class YuwDatepickerComponent extends YuwValueAccess
|
|
|
10315
10413
|
value: "valueChange"
|
|
10316
10414
|
},
|
|
10317
10415
|
host: { classAttribute: "contents" },
|
|
10318
|
-
providers: [
|
|
10416
|
+
providers: [provideIcons({
|
|
10417
|
+
lucideCircleAlert,
|
|
10418
|
+
lucideInfo
|
|
10419
|
+
}), provideValueAccessor(YuwDatepickerComponent)],
|
|
10319
10420
|
queries: [{
|
|
10320
10421
|
propertyName: "triggerTemplate",
|
|
10321
10422
|
first: true,
|
|
@@ -10325,8 +10426,20 @@ var YuwDatepickerComponent = class YuwDatepickerComponent extends YuwValueAccess
|
|
|
10325
10426
|
}],
|
|
10326
10427
|
usesInheritance: true,
|
|
10327
10428
|
ngImport: i0,
|
|
10328
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [attr.data-yuw-required]=\"required() ? '' : null\"\n>\n @switch (mode()) {\n @case ('multiple') {\n <hlm-date-picker-multi\n [date]=\"_multipleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [captionLayout]=\"captionLayout()\"\n [align]=\"align()\"\n [formatDates]=\"_formatMulti()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-date-picker-multi>\n }\n @case ('monthYear') {\n <hlm-month-year-picker\n [date]=\"_singleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n [formatDate]=\"_formatMonthYear()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-month-year-picker>\n }\n @default {\n <yuw-calendar-picker\n #picker\n [mode]=\"_calendarMode()\"\n [value]=\"_calendarValue()\"\n [label]=\"_label()\"\n [presets]=\"presets()\"\n [presetId]=\"presetId()\"\n [presetsLabel]=\"presetsLabel()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n (picked)=\"onPicked($event)\"\n (focusout)=\"_onBlur()\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n [id]=\"_buttonId()\"\n [yuwPopoverTriggerFor]=\"picker.popover()\"\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [class]=\"userClass()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n }\n </yuw-calendar-picker>\n }\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
10429
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [attr.data-yuw-required]=\"required() ? '' : null\"\n>\n @switch (mode()) {\n @case ('multiple') {\n <hlm-date-picker-multi\n [date]=\"_multipleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [captionLayout]=\"captionLayout()\"\n [align]=\"align()\"\n [formatDates]=\"_formatMulti()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-date-picker-multi>\n }\n @case ('monthYear') {\n <hlm-month-year-picker\n [date]=\"_singleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n [formatDate]=\"_formatMonthYear()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-month-year-picker>\n }\n @default {\n <yuw-calendar-picker\n #picker\n [mode]=\"_calendarMode()\"\n [value]=\"_calendarValue()\"\n [label]=\"_label()\"\n [presets]=\"presets()\"\n [presetId]=\"presetId()\"\n [presetsLabel]=\"presetsLabel()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n (picked)=\"onPicked($event)\"\n (focusout)=\"_onBlur()\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n [id]=\"_buttonId()\"\n [yuwPopoverTriggerFor]=\"picker.popover()\"\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [class]=\"userClass()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n }\n </yuw-calendar-picker>\n }\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n",
|
|
10329
10430
|
dependencies: [
|
|
10431
|
+
{
|
|
10432
|
+
kind: "component",
|
|
10433
|
+
type: NgIcon,
|
|
10434
|
+
selector: "ng-icon",
|
|
10435
|
+
inputs: [
|
|
10436
|
+
"name",
|
|
10437
|
+
"svg",
|
|
10438
|
+
"size",
|
|
10439
|
+
"strokeWidth",
|
|
10440
|
+
"color"
|
|
10441
|
+
]
|
|
10442
|
+
},
|
|
10330
10443
|
{
|
|
10331
10444
|
kind: "component",
|
|
10332
10445
|
type: i1$12.HlmDatePickerMulti,
|
|
@@ -10463,6 +10576,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10463
10576
|
args: [{
|
|
10464
10577
|
selector: "yuw-datepicker",
|
|
10465
10578
|
imports: [
|
|
10579
|
+
NgIcon,
|
|
10466
10580
|
...HlmDatePickerImports,
|
|
10467
10581
|
HlmField,
|
|
10468
10582
|
HlmFieldDescription,
|
|
@@ -10472,10 +10586,13 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
10472
10586
|
YuwFieldFeedbackDirective,
|
|
10473
10587
|
YuwPopoverTriggerDirective
|
|
10474
10588
|
],
|
|
10475
|
-
providers: [
|
|
10589
|
+
providers: [provideIcons({
|
|
10590
|
+
lucideCircleAlert,
|
|
10591
|
+
lucideInfo
|
|
10592
|
+
}), provideValueAccessor(YuwDatepickerComponent)],
|
|
10476
10593
|
host: { class: "contents" },
|
|
10477
10594
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
10478
|
-
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [attr.data-yuw-required]=\"required() ? '' : null\"\n>\n @switch (mode()) {\n @case ('multiple') {\n <hlm-date-picker-multi\n [date]=\"_multipleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [captionLayout]=\"captionLayout()\"\n [align]=\"align()\"\n [formatDates]=\"_formatMulti()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-date-picker-multi>\n }\n @case ('monthYear') {\n <hlm-month-year-picker\n [date]=\"_singleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n [formatDate]=\"_formatMonthYear()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-month-year-picker>\n }\n @default {\n <yuw-calendar-picker\n #picker\n [mode]=\"_calendarMode()\"\n [value]=\"_calendarValue()\"\n [label]=\"_label()\"\n [presets]=\"presets()\"\n [presetId]=\"presetId()\"\n [presetsLabel]=\"presetsLabel()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n (picked)=\"onPicked($event)\"\n (focusout)=\"_onBlur()\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n [id]=\"_buttonId()\"\n [yuwPopoverTriggerFor]=\"picker.popover()\"\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [class]=\"userClass()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n }\n </yuw-calendar-picker>\n }\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"text-destructive\"
|
|
10595
|
+
template: "<hlm-field\n yuwFieldFeedback\n #feedback=\"yuwFieldFeedback\"\n class=\"w-auto min-w-0 data-[matches-spartan-invalid=true]:text-inherit\"\n [invalid]=\"invalid()\"\n [attr.data-yuw-required]=\"required() ? '' : null\"\n>\n @switch (mode()) {\n @case ('multiple') {\n <hlm-date-picker-multi\n [date]=\"_multipleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [captionLayout]=\"captionLayout()\"\n [align]=\"align()\"\n [formatDates]=\"_formatMulti()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-date-picker-multi>\n }\n @case ('monthYear') {\n <hlm-month-year-picker\n [date]=\"_singleValue()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n [formatDate]=\"_formatMonthYear()\"\n (dateChange)=\"onValueChange($event)\"\n (focusout)=\"_onBlur()\"\n >\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n </hlm-month-year-picker>\n }\n @default {\n <yuw-calendar-picker\n #picker\n [mode]=\"_calendarMode()\"\n [value]=\"_calendarValue()\"\n [label]=\"_label()\"\n [presets]=\"presets()\"\n [presetId]=\"presetId()\"\n [presetsLabel]=\"presetsLabel()\"\n [disabled]=\"_disabled()\"\n [minDate]=\"minDate()\"\n [maxDate]=\"maxDate()\"\n [align]=\"align()\"\n (picked)=\"onPicked($event)\"\n (focusout)=\"_onBlur()\"\n >\n @if (triggerTemplate(); as trigger) {\n <yuw-button\n [id]=\"_buttonId()\"\n [yuwPopoverTriggerFor]=\"picker.popover()\"\n [color]=\"triggerColor()\"\n [variant]=\"triggerVariant()\"\n [class]=\"userClass()\"\n [disabled]=\"_disabled()\"\n >\n <ng-container [ngTemplateOutlet]=\"trigger.templateRef\" [ngTemplateOutletContext]=\"_triggerContext()\" />\n </yuw-button>\n } @else {\n <hlm-date-picker-trigger\n [buttonId]=\"_buttonId()\"\n [class]=\"_triggerClass()\"\n [forceInvalid]=\"feedback.forcedInvalid()\"\n >\n {{ placeholder() ?? '' }}\n </hlm-date-picker-trigger>\n }\n </yuw-calendar-picker>\n }\n }\n\n @if (feedback.showError()) {\n <hlm-field-description role=\"alert\" class=\"flex items-start gap-1.5 text-xs text-destructive\">\n <ng-icon name=\"lucideCircleAlert\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ feedback.errorMessage() }}\n </hlm-field-description>\n } @else if (helperText(); as helper) {\n <hlm-field-description class=\"flex items-start gap-1.5 text-xs\">\n <ng-icon name=\"lucideInfo\" size=\"14\" class=\"mt-0.5 shrink-0\" aria-hidden=\"true\" />\n {{ helper }}\n </hlm-field-description>\n }\n</hlm-field>\n"
|
|
10479
10596
|
}]
|
|
10480
10597
|
}],
|
|
10481
10598
|
propDecorators: {
|
|
@@ -17922,7 +18039,7 @@ var YuwCommandComponent = class YuwCommandComponent {
|
|
|
17922
18039
|
classAttribute: "contents"
|
|
17923
18040
|
},
|
|
17924
18041
|
ngImport: i0,
|
|
17925
|
-
template: "<div hlmCommand [class]=\"userClass()\" [disabled]=\"disabled()\" [filter]=\"filter()\" [(search)]=\"search\">\n <hlm-command-input [placeholder]=\"searchPlaceholder() ?? ''\" />\n\n <div hlmCommandList>\n @for (group of _groups(); track group.id; let first = $first) {\n @if (!first) {\n <div hlmCommandSeparator></div>\n }\n\n <div
|
|
18042
|
+
template: "<div hlmCommand class=\"p-0\" [class]=\"userClass()\" [disabled]=\"disabled()\" [filter]=\"filter()\" [(search)]=\"search\">\n <hlm-command-input class=\"p-2 pb-0\" [placeholder]=\"searchPlaceholder() ?? ''\" />\n\n <div hlmCommandList class=\"p-2\">\n @for (group of _groups(); track group.id; let first = $first) {\n @if (!first) {\n <div hlmCommandSeparator class=\"-mx-2 my-1.5\"></div>\n }\n\n <div\n hlmCommandGroup\n class=\"p-0 **:data-[slot=command-group-label]:py-0 **:data-[slot=command-group-label]:pt-1 **:data-[slot=command-group-label]:pb-2 **:data-[slot=command-group-label]:text-sm **:data-[slot=command-group-label]:font-normal\"\n >\n @if (group.label; as label) {\n <span hlmCommandGroupLabel>{{ label }}</span>\n }\n\n @for (entry of group.items; track entry.item.id) {\n <button\n hlmCommandItem\n class=\"gap-2.5 px-2 py-2\"\n [value]=\"entry.searchValue\"\n [disabled]=\"entry.item.disabled ?? false\"\n (selected)=\"onSelected(entry.item)\"\n >\n @if (entry.item.icon; as icon) {\n <ng-icon [name]=\"icon\" aria-hidden=\"true\" />\n }\n {{ entry.item.label }}\n @if (entry.item.shortcut; as shortcut) {\n <span hlmCommandShortcut>{{ shortcut }}</span>\n }\n </button>\n }\n </div>\n }\n\n <div hlmCommandEmpty *hlmCommandEmptyState>{{ emptyText() ?? '' }}</div>\n </div>\n</div>\n",
|
|
17926
18043
|
dependencies: [
|
|
17927
18044
|
{
|
|
17928
18045
|
kind: "directive",
|
|
@@ -18007,7 +18124,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
18007
18124
|
"[attr.data-yuw-color]": "color()"
|
|
18008
18125
|
},
|
|
18009
18126
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
18010
|
-
template: "<div hlmCommand [class]=\"userClass()\" [disabled]=\"disabled()\" [filter]=\"filter()\" [(search)]=\"search\">\n <hlm-command-input [placeholder]=\"searchPlaceholder() ?? ''\" />\n\n <div hlmCommandList>\n @for (group of _groups(); track group.id; let first = $first) {\n @if (!first) {\n <div hlmCommandSeparator></div>\n }\n\n <div
|
|
18127
|
+
template: "<div hlmCommand class=\"p-0\" [class]=\"userClass()\" [disabled]=\"disabled()\" [filter]=\"filter()\" [(search)]=\"search\">\n <hlm-command-input class=\"p-2 pb-0\" [placeholder]=\"searchPlaceholder() ?? ''\" />\n\n <div hlmCommandList class=\"p-2\">\n @for (group of _groups(); track group.id; let first = $first) {\n @if (!first) {\n <div hlmCommandSeparator class=\"-mx-2 my-1.5\"></div>\n }\n\n <div\n hlmCommandGroup\n class=\"p-0 **:data-[slot=command-group-label]:py-0 **:data-[slot=command-group-label]:pt-1 **:data-[slot=command-group-label]:pb-2 **:data-[slot=command-group-label]:text-sm **:data-[slot=command-group-label]:font-normal\"\n >\n @if (group.label; as label) {\n <span hlmCommandGroupLabel>{{ label }}</span>\n }\n\n @for (entry of group.items; track entry.item.id) {\n <button\n hlmCommandItem\n class=\"gap-2.5 px-2 py-2\"\n [value]=\"entry.searchValue\"\n [disabled]=\"entry.item.disabled ?? false\"\n (selected)=\"onSelected(entry.item)\"\n >\n @if (entry.item.icon; as icon) {\n <ng-icon [name]=\"icon\" aria-hidden=\"true\" />\n }\n {{ entry.item.label }}\n @if (entry.item.shortcut; as shortcut) {\n <span hlmCommandShortcut>{{ shortcut }}</span>\n }\n </button>\n }\n </div>\n }\n\n <div hlmCommandEmpty *hlmCommandEmptyState>{{ emptyText() ?? '' }}</div>\n </div>\n</div>\n"
|
|
18011
18128
|
}]
|
|
18012
18129
|
}],
|
|
18013
18130
|
propDecorators: {
|
|
@@ -19347,7 +19464,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19347
19464
|
},
|
|
19348
19465
|
providers: [provideIcons({ lucideEllipsis })],
|
|
19349
19466
|
ngImport: i0,
|
|
19350
|
-
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-44
|
|
19467
|
+
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\">\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
19468
|
dependencies: [
|
|
19352
19469
|
{
|
|
19353
19470
|
kind: "directive",
|
|
@@ -19357,8 +19474,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19357
19474
|
{
|
|
19358
19475
|
kind: "directive",
|
|
19359
19476
|
type: YuwContextMenuItemDirective,
|
|
19360
|
-
selector: "[yuwContextMenuItem]"
|
|
19361
|
-
outputs: ["triggered"]
|
|
19477
|
+
selector: "[yuwContextMenuItem]"
|
|
19362
19478
|
},
|
|
19363
19479
|
{
|
|
19364
19480
|
kind: "directive",
|
|
@@ -19435,7 +19551,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19435
19551
|
"(click)": "$event.stopPropagation()",
|
|
19436
19552
|
"(keydown)": "$event.stopPropagation()"
|
|
19437
19553
|
},
|
|
19438
|
-
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon\"\n yuwDropdownMenuAlign=\"end\"\n [ariaLabel]=\"label()\"\n [yuwDropdownMenuTrigger]=\"menu\"\n>\n <ng-icon name=\"lucideEllipsis\" size=\"16\" />\n</yuw-button>\n\n<ng-template #entry let-action>\n @if (action.icon; as icon) {\n <ng-icon [name]=\"icon\" />\n }\n\n {{ action.label }}\n</ng-template>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-44
|
|
19554
|
+
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\">\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
19555
|
}]
|
|
19440
19556
|
}],
|
|
19441
19557
|
propDecorators: {
|
|
@@ -19530,7 +19646,7 @@ var YuwsOverflowListCellComponent = class YuwsOverflowListCellComponent {
|
|
|
19530
19646
|
classAttribute: "flex min-w-0 [&_yuw-button]:w-full"
|
|
19531
19647
|
},
|
|
19532
19648
|
ngImport: i0,
|
|
19533
|
-
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-
|
|
19649
|
+
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-2\"\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 px-2 py-2\">\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: item }\" />\n </li>\n }\n </ul>\n </yuw-popover>\n} @else {\n <ng-container [ngTemplateOutlet]=\"entry\" [ngTemplateOutletContext]=\"{ $implicit: first() }\" />\n}\n\n<ng-template #entry let-item>\n <span class=\"flex min-w-0 items-center gap-2\">\n @if (item.imageUrl) {\n <yuw-avatar size=\"sm\" shape=\"circle\" class=\"size-6 shrink-0\" [src]=\"item.imageUrl\" [alt]=\"item.label\" />\n }\n <span class=\"min-w-0 truncate\">{{ item.label }}</span>\n </span>\n</ng-template>\n",
|
|
19534
19650
|
dependencies: [
|
|
19535
19651
|
{
|
|
19536
19652
|
kind: "directive",
|
|
@@ -19617,7 +19733,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19617
19733
|
"(click)": "$event.stopPropagation()",
|
|
19618
19734
|
"(keydown)": "$event.stopPropagation()"
|
|
19619
19735
|
},
|
|
19620
|
-
template: "@if (overflows()) {\n <yuw-popover\n triggerTransparent\n triggerClass=\"h-auto w-full min-w-0 justify-start gap-2 px-0 py-0 font-normal after:absolute after:inset-0 after:content-['']\"\n panelClass=\"w-auto min-w-48 max-w-80 gap-0 p-
|
|
19736
|
+
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-2\"\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 px-2 py-2\">\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"
|
|
19621
19737
|
}]
|
|
19622
19738
|
}],
|
|
19623
19739
|
ctorParameters: () => [],
|
|
@@ -20630,7 +20746,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20630
20746
|
...ngDevMode ? { debugName: "saveDisabled" } : /* istanbul ignore next */ {},
|
|
20631
20747
|
transform: booleanAttribute
|
|
20632
20748
|
});
|
|
20633
|
-
this.saveIcon = input("
|
|
20749
|
+
this.saveIcon = input("lucideSaveCheck", ...ngDevMode ? [{ debugName: "saveIcon" }] : /* istanbul ignore next */ []);
|
|
20634
20750
|
this.saving = input(false, {
|
|
20635
20751
|
...ngDevMode ? { debugName: "saving" } : /* istanbul ignore next */ {},
|
|
20636
20752
|
transform: booleanAttribute
|
|
@@ -20811,7 +20927,7 @@ var YuwsFormSheetComponent = class YuwsFormSheetComponent {
|
|
|
20811
20927
|
providers: [provideIcons({
|
|
20812
20928
|
lucideArchiveRestore,
|
|
20813
20929
|
lucideArrowLeft,
|
|
20814
|
-
|
|
20930
|
+
lucideSaveCheck,
|
|
20815
20931
|
lucideTrash2,
|
|
20816
20932
|
lucideX
|
|
20817
20933
|
}), {
|
|
@@ -20915,7 +21031,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
20915
21031
|
providers: [provideIcons({
|
|
20916
21032
|
lucideArchiveRestore,
|
|
20917
21033
|
lucideArrowLeft,
|
|
20918
|
-
|
|
21034
|
+
lucideSaveCheck,
|
|
20919
21035
|
lucideTrash2,
|
|
20920
21036
|
lucideX
|
|
20921
21037
|
}), {
|
|
@@ -22823,7 +22939,7 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22823
22939
|
lucideShare
|
|
22824
22940
|
})],
|
|
22825
22941
|
ngImport: i0,
|
|
22826
|
-
template: "<yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [ariaLabel]=\"labels().trigger\"\n [yuwDropdownMenuTrigger]=\"menu\"\n yuwDropdownMenuAlign=\"end\"\n>\n <ng-icon name=\"lucideShare\" size=\"16\" />\n</yuw-button>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-56
|
|
22942
|
+
template: "<yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [ariaLabel]=\"labels().trigger\"\n [yuwDropdownMenuTrigger]=\"menu\"\n yuwDropdownMenuAlign=\"end\"\n>\n <ng-icon name=\"lucideShare\" size=\"16\" />\n</yuw-button>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-56\">\n @if (labels().title; as title) {\n <p yuwContextMenuLabel>{{ title }}</p>\n }\n\n @for (item of items(); track item.format) {\n <button yuwContextMenuItem (triggered)=\"onShare(item.format)\">\n <ng-icon [name]=\"item.icon\" />\n {{ item.label }}\n </button>\n }\n </div>\n</ng-template>\n",
|
|
22827
22943
|
dependencies: [
|
|
22828
22944
|
{
|
|
22829
22945
|
kind: "component",
|
|
@@ -22866,8 +22982,7 @@ var YuwsListToolbarShareComponent = class YuwsListToolbarShareComponent {
|
|
|
22866
22982
|
{
|
|
22867
22983
|
kind: "directive",
|
|
22868
22984
|
type: YuwContextMenuItemDirective,
|
|
22869
|
-
selector: "[yuwContextMenuItem]"
|
|
22870
|
-
outputs: ["triggered"]
|
|
22985
|
+
selector: "[yuwContextMenuItem]"
|
|
22871
22986
|
},
|
|
22872
22987
|
{
|
|
22873
22988
|
kind: "directive",
|
|
@@ -22903,7 +23018,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
22903
23018
|
lucideShare
|
|
22904
23019
|
})],
|
|
22905
23020
|
host: { class: "flex shrink-0" },
|
|
22906
|
-
template: "<yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [ariaLabel]=\"labels().trigger\"\n [yuwDropdownMenuTrigger]=\"menu\"\n yuwDropdownMenuAlign=\"end\"\n>\n <ng-icon name=\"lucideShare\" size=\"16\" />\n</yuw-button>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-56
|
|
23021
|
+
template: "<yuw-button\n variant=\"outline\"\n class=\"gap-2\"\n [ariaLabel]=\"labels().trigger\"\n [yuwDropdownMenuTrigger]=\"menu\"\n yuwDropdownMenuAlign=\"end\"\n>\n <ng-icon name=\"lucideShare\" size=\"16\" />\n</yuw-button>\n\n<ng-template #menu>\n <div yuwContextMenu class=\"min-w-56\">\n @if (labels().title; as title) {\n <p yuwContextMenuLabel>{{ title }}</p>\n }\n\n @for (item of items(); track item.format) {\n <button yuwContextMenuItem (triggered)=\"onShare(item.format)\">\n <ng-icon [name]=\"item.icon\" />\n {{ item.label }}\n </button>\n }\n </div>\n</ng-template>\n"
|
|
22907
23022
|
}]
|
|
22908
23023
|
}],
|
|
22909
23024
|
propDecorators: {
|
|
@@ -22995,7 +23110,6 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
22995
23110
|
const defaults = new Set(this.defaultHiddenColumns());
|
|
22996
23111
|
return hidden.size === defaults.size && [...defaults].every((id) => hidden.has(id));
|
|
22997
23112
|
}, ...ngDevMode ? [{ debugName: "columnsAtDefault" }] : /* istanbul ignore next */ []);
|
|
22998
|
-
this.hasHiddenColumns = computed(() => this.hiddenColumns().length > 0, ...ngDevMode ? [{ debugName: "hasHiddenColumns" }] : /* istanbul ignore next */ []);
|
|
22999
23113
|
this.searchPopoverAlign = computed(() => this._searchIsOnlyAction() ? "end" : "center", ...ngDevMode ? [{ debugName: "searchPopoverAlign" }] : /* istanbul ignore next */ []);
|
|
23000
23114
|
this.searchPopoverOffsetX = computed(() => this._searchIsOnlyAction() ? 0 : -16, ...ngDevMode ? [{ debugName: "searchPopoverOffsetX" }] : /* istanbul ignore next */ []);
|
|
23001
23115
|
this.viewModeButtons = computed(() => VIEW_MODES.map((mode, index) => {
|
|
@@ -23163,7 +23277,7 @@ var YuwsListToolbarActionsComponent = class YuwsListToolbarActionsComponent {
|
|
|
23163
23277
|
lucideSettings2
|
|
23164
23278
|
})],
|
|
23165
23279
|
ngImport: i0,
|
|
23166
|
-
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [formats]=\"shareFormats()\"\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader
|
|
23280
|
+
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [formats]=\"shareFormats()\"\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader>{{ title }}</p>\n }\n\n @if (labels().columns.reset; as reset) {\n <div yuwComboboxFooter>\n <yuw-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n [disabled]=\"columnsAtDefault()\"\n (clicked)=\"onColumnsReset()\"\n >\n <span class=\"truncate\">{{ reset }}</span>\n </yuw-button>\n </div>\n }\n\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucideSettings2\" size=\"16\" />\n\n @if (!columnsAtDefault()) {\n <yuw-badge\n dot\n color=\"destructive\"\n class=\"absolute -top-1 -right-1\"\n style=\"width: 0.5rem; height: 0.5rem\"\n data-testid=\"hidden-columns-dot\"\n />\n }\n </ng-template>\n </yuw-combobox>\n </div>\n}\n\n@if (viewMode()) {\n <yuw-button-group\n variant=\"outline\"\n selectedVariant=\"secondary\"\n selectedColor=\"secondary\"\n [buttons]=\"viewModeButtons()\"\n (buttonClicked)=\"onViewModeClicked($event)\"\n >\n <ng-template yuwButtonGroupContent=\"list\">\n <ng-icon [name]=\"viewModeIconNames().list\" size=\"16\" />\n </ng-template>\n <ng-template yuwButtonGroupContent=\"block\">\n <ng-icon [name]=\"viewModeIconNames().block\" size=\"16\" />\n </ng-template>\n </yuw-button-group>\n}\n",
|
|
23167
23281
|
dependencies: [
|
|
23168
23282
|
{
|
|
23169
23283
|
kind: "component",
|
|
@@ -23349,7 +23463,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
23349
23463
|
lucideSettings2
|
|
23350
23464
|
})],
|
|
23351
23465
|
host: { class: "flex items-center gap-2" },
|
|
23352
|
-
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [formats]=\"shareFormats()\"\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader
|
|
23466
|
+
template: "@if (searchPlaceholder(); as placeholder) {\n @if (isMobile()) {\n <yuw-popover\n [align]=\"searchPopoverAlign()\"\n class=\"mr-5\"\n triggerVariant=\"outline\"\n triggerSize=\"icon\"\n panelClass=\"w-[min(20rem,calc(100vw-2rem))] p-2\"\n [offsetX]=\"searchPopoverOffsetX()\"\n [(open)]=\"searchOpen\"\n >\n <span yuwPopoverTrigger class=\"flex items-center\" [attr.aria-label]=\"labels().search.expand\">\n <ng-icon name=\"lucideSearch\" size=\"16\" />\n </span>\n\n <yuw-search-input\n expandedWidth=\"100%\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n (searched)=\"searched.emit($event)\"\n />\n </yuw-popover>\n } @else {\n <yuw-search-input\n collapseFrom=\"right\"\n expandedWidth=\"18rem\"\n [(value)]=\"search\"\n [placeholder]=\"placeholder\"\n [clearAriaLabel]=\"labels().search.clear\"\n [expandAriaLabel]=\"labels().search.expand\"\n (searched)=\"searched.emit($event)\"\n />\n }\n}\n\n@if (showExport()) {\n <yuw-button variant=\"outline\" class=\"gap-2\" (clicked)=\"exported.emit($event)\">\n <ng-icon name=\"lucideDownload\" size=\"16\" />\n <span class=\"max-md:hidden\">\n {{ labels().export }}\n </span>\n </yuw-button>\n}\n\n@if (share(); as share) {\n <yuws-list-toolbar-share\n [formats]=\"shareFormats()\"\n [labels]=\"share.labels\"\n [serverSideFormats]=\"serverSideFormats()\"\n [source]=\"share.source\"\n [title]=\"shareTitle()\"\n (shareRequested)=\"shareRequested.emit($event)\"\n />\n}\n\n@if (hideableColumns(); as columns) {\n <div class=\"flex shrink-0\">\n <yuw-combobox\n multiple\n checkboxes\n keepValueOnEscape\n triggerSize=\"icon\"\n triggerClass=\"relative\"\n [options]=\"columns\"\n [value]=\"visibleColumns()\"\n [searchPlaceholder]=\"labels().columns.placeholder\"\n [emptyText]=\"labels().columns.empty\"\n [triggerAriaLabel]=\"labels().columns.trigger\"\n (valueChange)=\"onVisibleColumnsChange($event)\"\n >\n @if (labels().columns.title; as title) {\n <p yuwComboboxHeader>{{ title }}</p>\n }\n\n @if (labels().columns.reset; as reset) {\n <div yuwComboboxFooter>\n <yuw-button\n variant=\"ghost\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n [disabled]=\"columnsAtDefault()\"\n (clicked)=\"onColumnsReset()\"\n >\n <span class=\"truncate\">{{ reset }}</span>\n </yuw-button>\n </div>\n }\n\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucideSettings2\" size=\"16\" />\n\n @if (!columnsAtDefault()) {\n <yuw-badge\n dot\n color=\"destructive\"\n class=\"absolute -top-1 -right-1\"\n style=\"width: 0.5rem; height: 0.5rem\"\n data-testid=\"hidden-columns-dot\"\n />\n }\n </ng-template>\n </yuw-combobox>\n </div>\n}\n\n@if (viewMode()) {\n <yuw-button-group\n variant=\"outline\"\n selectedVariant=\"secondary\"\n selectedColor=\"secondary\"\n [buttons]=\"viewModeButtons()\"\n (buttonClicked)=\"onViewModeClicked($event)\"\n >\n <ng-template yuwButtonGroupContent=\"list\">\n <ng-icon [name]=\"viewModeIconNames().list\" size=\"16\" />\n </ng-template>\n <ng-template yuwButtonGroupContent=\"block\">\n <ng-icon [name]=\"viewModeIconNames().block\" size=\"16\" />\n </ng-template>\n </yuw-button-group>\n}\n"
|
|
23353
23467
|
}]
|
|
23354
23468
|
}],
|
|
23355
23469
|
propDecorators: {
|
|
@@ -23532,6 +23646,7 @@ var YuwsListToolbarFilterSetFormComponent = class YuwsListToolbarFilterSetFormCo
|
|
|
23532
23646
|
this.confirmed = output();
|
|
23533
23647
|
this.deleteRequested = output();
|
|
23534
23648
|
this.nameMaxLength = NAME_MAX_LENGTH;
|
|
23649
|
+
this.titleClass = cn(YUW_MENU_LABEL_CLASS, "-mb-1 pb-0");
|
|
23535
23650
|
this.draftName = linkedSignal(() => this.name(), ...ngDevMode ? [{ debugName: "draftName" }] : /* istanbul ignore next */ []);
|
|
23536
23651
|
this.isDelete = computed(() => this.mode() === "delete", ...ngDevMode ? [{ debugName: "isDelete" }] : /* istanbul ignore next */ []);
|
|
23537
23652
|
this.canConfirm = computed(() => this.isDelete() || this.draftName().trim().length > 0, ...ngDevMode ? [{ debugName: "canConfirm" }] : /* istanbul ignore next */ []);
|
|
@@ -23608,7 +23723,7 @@ var YuwsListToolbarFilterSetFormComponent = class YuwsListToolbarFilterSetFormCo
|
|
|
23608
23723
|
isSignal: true
|
|
23609
23724
|
}],
|
|
23610
23725
|
ngImport: i0,
|
|
23611
|
-
template: "@if (!titleHidden()) {\n <p class=\"
|
|
23726
|
+
template: "@if (!titleHidden()) {\n <p [class]=\"titleClass\">{{ title() }}</p>\n}\n\n@if (isDelete()) {\n <p class=\"text-sm text-muted-foreground\">{{ deleteMessage() }}</p>\n} @else {\n <div class=\"flex flex-col gap-2\">\n <label class=\"text-sm\" for=\"yuw-filter-set-name\">{{ labels().nameLabel }}</label>\n <yuw-input inputId=\"yuw-filter-set-name\" [maxlength]=\"nameMaxLength\" [(value)]=\"draftName\" />\n </div>\n}\n\n<div\n class=\"flex min-w-0 flex-wrap items-center gap-1\"\n [class.justify-between]=\"canDelete()\"\n [class.justify-end]=\"!canDelete()\"\n>\n @if (canDelete()) {\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n class=\"max-w-full min-w-0 gap-1\"\n (clicked)=\"deleteRequested.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" class=\"shrink-0\" />\n </yuw-button>\n }\n\n <span class=\"flex min-w-0 max-w-full gap-1\">\n <yuw-button variant=\"outline\" size=\"sm\" class=\"min-w-0\" (clicked)=\"cancelled.emit()\">\n <span class=\"truncate\">{{ labels().cancel }}</span>\n </yuw-button>\n <yuw-button\n size=\"sm\"\n class=\"min-w-0\"\n [color]=\"isDelete() ? 'destructive' : 'neutral'\"\n [disabled]=\"!canConfirm()\"\n (clicked)=\"onConfirm()\"\n >\n <span class=\"truncate\">{{ isDelete() ? labels().delete : labels().confirm }}</span>\n </yuw-button>\n </span>\n</div>\n",
|
|
23612
23727
|
dependencies: [
|
|
23613
23728
|
{
|
|
23614
23729
|
kind: "component",
|
|
@@ -23680,7 +23795,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
23680
23795
|
class: "flex max-w-full flex-col gap-3",
|
|
23681
23796
|
"(keydown.enter)": "onConfirm()"
|
|
23682
23797
|
},
|
|
23683
|
-
template: "@if (!titleHidden()) {\n <p class=\"
|
|
23798
|
+
template: "@if (!titleHidden()) {\n <p [class]=\"titleClass\">{{ title() }}</p>\n}\n\n@if (isDelete()) {\n <p class=\"text-sm text-muted-foreground\">{{ deleteMessage() }}</p>\n} @else {\n <div class=\"flex flex-col gap-2\">\n <label class=\"text-sm\" for=\"yuw-filter-set-name\">{{ labels().nameLabel }}</label>\n <yuw-input inputId=\"yuw-filter-set-name\" [maxlength]=\"nameMaxLength\" [(value)]=\"draftName\" />\n </div>\n}\n\n<div\n class=\"flex min-w-0 flex-wrap items-center gap-1\"\n [class.justify-between]=\"canDelete()\"\n [class.justify-end]=\"!canDelete()\"\n>\n @if (canDelete()) {\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n class=\"max-w-full min-w-0 gap-1\"\n (clicked)=\"deleteRequested.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" class=\"shrink-0\" />\n </yuw-button>\n }\n\n <span class=\"flex min-w-0 max-w-full gap-1\">\n <yuw-button variant=\"outline\" size=\"sm\" class=\"min-w-0\" (clicked)=\"cancelled.emit()\">\n <span class=\"truncate\">{{ labels().cancel }}</span>\n </yuw-button>\n <yuw-button\n size=\"sm\"\n class=\"min-w-0\"\n [color]=\"isDelete() ? 'destructive' : 'neutral'\"\n [disabled]=\"!canConfirm()\"\n (clicked)=\"onConfirm()\"\n >\n <span class=\"truncate\">{{ isDelete() ? labels().delete : labels().confirm }}</span>\n </yuw-button>\n </span>\n</div>\n"
|
|
23684
23799
|
}]
|
|
23685
23800
|
}],
|
|
23686
23801
|
ctorParameters: () => [],
|
|
@@ -23753,6 +23868,7 @@ var YuwsListToolbarFilterSetsComponent = class YuwsListToolbarFilterSetsComponen
|
|
|
23753
23868
|
this.picked = output();
|
|
23754
23869
|
this.saveRequested = output();
|
|
23755
23870
|
this.stretchedCell = STRETCHED_CELL;
|
|
23871
|
+
this.titleClass = cn(YUW_MENU_LABEL_CLASS, "pb-0");
|
|
23756
23872
|
this.options = computed(() => {
|
|
23757
23873
|
const sets = this.sets();
|
|
23758
23874
|
return sets.length > 0 ? [{
|
|
@@ -23848,7 +23964,7 @@ var YuwsListToolbarFilterSetsComponent = class YuwsListToolbarFilterSetsComponen
|
|
|
23848
23964
|
picked: "picked",
|
|
23849
23965
|
saveRequested: "saveRequested"
|
|
23850
23966
|
},
|
|
23851
|
-
host: { classAttribute: "flex max-w-full flex-col gap-
|
|
23967
|
+
host: { classAttribute: "flex max-w-full flex-col gap-2" },
|
|
23852
23968
|
providers: [provideIcons({
|
|
23853
23969
|
lucideEllipsis,
|
|
23854
23970
|
lucidePencil,
|
|
@@ -23862,7 +23978,7 @@ var YuwsListToolbarFilterSetsComponent = class YuwsListToolbarFilterSetsComponen
|
|
|
23862
23978
|
isSignal: true
|
|
23863
23979
|
}],
|
|
23864
23980
|
ngImport: i0,
|
|
23865
|
-
template: "@if (!titleHidden()) {\n <p class=\"
|
|
23981
|
+
template: "@if (!titleHidden()) {\n <p [class]=\"titleClass\">{{ labels().title }}</p>\n}\n\n<yuw-combobox\n readonlyTrigger\n [options]=\"options()\"\n [value]=\"options().length > 0 ? selectedId() : undefined\"\n [placeholder]=\"labels().select\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().select\"\n (valueChange)=\"onPick($event)\"\n>\n <ng-template yuwComboboxItem let-option>\n <span class=\"min-w-0 flex-1 truncate\">{{ option.label }}</span>\n\n @if (option.data) {\n <span class=\"yuw-reveal -my-1 inline-flex\" (click)=\"$event.stopPropagation()\">\n <yuw-button variant=\"ghost\" size=\"icon-xs\" [ariaLabel]=\"labels().edit\" (clicked)=\"onItemEdit(option.value)\">\n <ng-icon name=\"lucideEllipsis\" size=\"14\" />\n </yuw-button>\n </span>\n }\n </ng-template>\n</yuw-combobox>\n\n@if (canSave()) {\n <yuw-button variant=\"outline\" size=\"sm\" class=\"max-w-full min-w-0\" (clicked)=\"saveRequested.emit()\">\n <span class=\"truncate\">{{ labels().save }}</span>\n </yuw-button>\n}\n\n@if (canEdit()) {\n <div class=\"flex min-w-0 max-w-full\" [class.gap-1]=\"!stretchActions()\">\n <div [class]=\"stretchActions() ? stretchedCell : 'min-w-0'\">\n <yuw-button\n variant=\"outline\"\n size=\"sm\"\n [class]=\"stretchActions() ? 'w-full min-w-0 gap-1' : 'max-w-full min-w-0 gap-1'\"\n (clicked)=\"editRequested.emit()\"\n >\n <ng-icon name=\"lucidePencil\" size=\"16\" class=\"shrink-0\" />\n <span class=\"truncate\">{{ labels().edit }}</span>\n </yuw-button>\n </div>\n <div [class]=\"stretchActions() ? stretchedCell : 'min-w-0'\">\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n [class]=\"stretchActions() ? 'w-full min-w-0 gap-1' : 'max-w-full min-w-0 gap-1'\"\n (clicked)=\"deleteRequested.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" class=\"shrink-0\" />\n <span class=\"truncate\">{{ labels().delete }}</span>\n </yuw-button>\n </div>\n </div>\n}\n",
|
|
23866
23982
|
dependencies: [
|
|
23867
23983
|
{
|
|
23868
23984
|
kind: "component",
|
|
@@ -23958,8 +24074,8 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
23958
24074
|
lucidePencil,
|
|
23959
24075
|
lucideTrash2
|
|
23960
24076
|
})],
|
|
23961
|
-
host: { class: "flex max-w-full flex-col gap-
|
|
23962
|
-
template: "@if (!titleHidden()) {\n <p class=\"
|
|
24077
|
+
host: { class: "flex max-w-full flex-col gap-2" },
|
|
24078
|
+
template: "@if (!titleHidden()) {\n <p [class]=\"titleClass\">{{ labels().title }}</p>\n}\n\n<yuw-combobox\n readonlyTrigger\n [options]=\"options()\"\n [value]=\"options().length > 0 ? selectedId() : undefined\"\n [placeholder]=\"labels().select\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().select\"\n (valueChange)=\"onPick($event)\"\n>\n <ng-template yuwComboboxItem let-option>\n <span class=\"min-w-0 flex-1 truncate\">{{ option.label }}</span>\n\n @if (option.data) {\n <span class=\"yuw-reveal -my-1 inline-flex\" (click)=\"$event.stopPropagation()\">\n <yuw-button variant=\"ghost\" size=\"icon-xs\" [ariaLabel]=\"labels().edit\" (clicked)=\"onItemEdit(option.value)\">\n <ng-icon name=\"lucideEllipsis\" size=\"14\" />\n </yuw-button>\n </span>\n }\n </ng-template>\n</yuw-combobox>\n\n@if (canSave()) {\n <yuw-button variant=\"outline\" size=\"sm\" class=\"max-w-full min-w-0\" (clicked)=\"saveRequested.emit()\">\n <span class=\"truncate\">{{ labels().save }}</span>\n </yuw-button>\n}\n\n@if (canEdit()) {\n <div class=\"flex min-w-0 max-w-full\" [class.gap-1]=\"!stretchActions()\">\n <div [class]=\"stretchActions() ? stretchedCell : 'min-w-0'\">\n <yuw-button\n variant=\"outline\"\n size=\"sm\"\n [class]=\"stretchActions() ? 'w-full min-w-0 gap-1' : 'max-w-full min-w-0 gap-1'\"\n (clicked)=\"editRequested.emit()\"\n >\n <ng-icon name=\"lucidePencil\" size=\"16\" class=\"shrink-0\" />\n <span class=\"truncate\">{{ labels().edit }}</span>\n </yuw-button>\n </div>\n <div [class]=\"stretchActions() ? stretchedCell : 'min-w-0'\">\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n [class]=\"stretchActions() ? 'w-full min-w-0 gap-1' : 'max-w-full min-w-0 gap-1'\"\n (clicked)=\"deleteRequested.emit()\"\n >\n <ng-icon name=\"lucideTrash2\" size=\"16\" class=\"shrink-0\" />\n <span class=\"truncate\">{{ labels().delete }}</span>\n </yuw-button>\n </div>\n </div>\n}\n"
|
|
23963
24079
|
}]
|
|
23964
24080
|
}],
|
|
23965
24081
|
propDecorators: {
|
|
@@ -24047,7 +24163,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24047
24163
|
});
|
|
24048
24164
|
var YuwsListToolbarFilterSetPickerComponent = class YuwsListToolbarFilterSetPickerComponent {
|
|
24049
24165
|
constructor() {
|
|
24050
|
-
this.idleColor = input.required(...ngDevMode ? [{ debugName: "idleColor" }] : /* istanbul ignore next */ []);
|
|
24051
24166
|
this.labels = input.required(...ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []);
|
|
24052
24167
|
this.selection = model({}, ...ngDevMode ? [{ debugName: "selection" }] : /* istanbul ignore next */ []);
|
|
24053
24168
|
this.sets = input.required(...ngDevMode ? [{ debugName: "sets" }] : /* istanbul ignore next */ []);
|
|
@@ -24066,7 +24181,6 @@ var YuwsListToolbarFilterSetPickerComponent = class YuwsListToolbarFilterSetPick
|
|
|
24066
24181
|
this.canSave = computed(() => this.hasActive() && !this.matchingSet(), ...ngDevMode ? [{ debugName: "canSave" }] : /* istanbul ignore next */ []);
|
|
24067
24182
|
this.formName = computed(() => this.sets().find((set) => set.id === this._formSetId())?.name ?? "", ...ngDevMode ? [{ debugName: "formName" }] : /* istanbul ignore next */ []);
|
|
24068
24183
|
this.selectedSetId = computed(() => this.matchingSet()?.id ?? "__yuw_no_set__", ...ngDevMode ? [{ debugName: "selectedSetId" }] : /* istanbul ignore next */ []);
|
|
24069
|
-
this.triggerColor = computed(() => this.matchingSet() ? "secondary" : this.idleColor(), ...ngDevMode ? [{ debugName: "triggerColor" }] : /* istanbul ignore next */ []);
|
|
24070
24184
|
this.triggerSize = computed(() => this.matchingSet() ? "default" : "icon", ...ngDevMode ? [{ debugName: "triggerSize" }] : /* istanbul ignore next */ []);
|
|
24071
24185
|
this.triggerVariant = computed(() => this.matchingSet() ? "secondary" : "outline", ...ngDevMode ? [{ debugName: "triggerVariant" }] : /* istanbul ignore next */ []);
|
|
24072
24186
|
}
|
|
@@ -24125,13 +24239,6 @@ var YuwsListToolbarFilterSetPickerComponent = class YuwsListToolbarFilterSetPick
|
|
|
24125
24239
|
isStandalone: true,
|
|
24126
24240
|
selector: "yuws-list-toolbar-filter-set-picker",
|
|
24127
24241
|
inputs: {
|
|
24128
|
-
idleColor: {
|
|
24129
|
-
classPropertyName: "idleColor",
|
|
24130
|
-
publicName: "idleColor",
|
|
24131
|
-
isSignal: true,
|
|
24132
|
-
isRequired: true,
|
|
24133
|
-
transformFunction: null
|
|
24134
|
-
},
|
|
24135
24242
|
labels: {
|
|
24136
24243
|
classPropertyName: "labels",
|
|
24137
24244
|
publicName: "labels",
|
|
@@ -24163,7 +24270,7 @@ var YuwsListToolbarFilterSetPickerComponent = class YuwsListToolbarFilterSetPick
|
|
|
24163
24270
|
host: { classAttribute: "contents" },
|
|
24164
24271
|
providers: [provideIcons({ lucideStar })],
|
|
24165
24272
|
ngImport: i0,
|
|
24166
|
-
template: "<yuw-popover\n align=\"start\"\n panelClass=\"w-64 p-2 dark:border\"\n triggerClass=\"shrink-0 gap-1.5\"\n
|
|
24273
|
+
template: "<yuw-popover\n align=\"start\"\n panelClass=\"w-64 gap-0 p-2 dark:border\"\n triggerClass=\"shrink-0 gap-1.5\"\n triggerColor=\"secondary\"\n [triggerSize]=\"triggerSize()\"\n [triggerVariant]=\"triggerVariant()\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n>\n <span yuwPopoverTrigger class=\"flex min-w-0 items-center gap-1.5\" [attr.aria-label]=\"labels().title\">\n <ng-icon name=\"lucideStar\" size=\"16\" [class]=\"matchingSet() ? '[&_svg]:fill-current' : ''\" />\n\n @if (matchingSet(); as set) {\n <span class=\"block max-w-44 max-sm:max-w-14 truncate\">{{ set.name }}</span>\n }\n </span>\n\n @if (formMode(); as mode) {\n <yuws-list-toolbar-filter-set-form\n [labels]=\"labels()\"\n [mode]=\"mode\"\n [name]=\"formName()\"\n (cancelled)=\"open.set(false)\"\n (confirmed)=\"onFormConfirmed($event)\"\n (deleteRequested)=\"formMode.set('delete')\"\n />\n } @else {\n <yuws-list-toolbar-filter-sets\n [stretchActions]=\"true\"\n [labels]=\"labels()\"\n [sets]=\"sets()\"\n [selectedId]=\"selectedSetId()\"\n [canSave]=\"canSave()\"\n [canEdit]=\"!!matchingSet()\"\n (picked)=\"onPicked($event)\"\n (itemEditRequested)=\"openForm('rename', $event)\"\n (saveRequested)=\"openForm('save')\"\n (editRequested)=\"openForm('rename', $safeNavigationMigration(matchingSet()?.id))\"\n (deleteRequested)=\"openForm('delete', $safeNavigationMigration(matchingSet()?.id))\"\n />\n }\n</yuw-popover>\n",
|
|
24167
24274
|
dependencies: [
|
|
24168
24275
|
{
|
|
24169
24276
|
kind: "component",
|
|
@@ -24258,18 +24365,10 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24258
24365
|
],
|
|
24259
24366
|
providers: [provideIcons({ lucideStar })],
|
|
24260
24367
|
host: { class: "contents" },
|
|
24261
|
-
template: "<yuw-popover\n align=\"start\"\n panelClass=\"w-64 p-2 dark:border\"\n triggerClass=\"shrink-0 gap-1.5\"\n
|
|
24368
|
+
template: "<yuw-popover\n align=\"start\"\n panelClass=\"w-64 gap-0 p-2 dark:border\"\n triggerClass=\"shrink-0 gap-1.5\"\n triggerColor=\"secondary\"\n [triggerSize]=\"triggerSize()\"\n [triggerVariant]=\"triggerVariant()\"\n [open]=\"open()\"\n (openChange)=\"onOpenChange($event)\"\n>\n <span yuwPopoverTrigger class=\"flex min-w-0 items-center gap-1.5\" [attr.aria-label]=\"labels().title\">\n <ng-icon name=\"lucideStar\" size=\"16\" [class]=\"matchingSet() ? '[&_svg]:fill-current' : ''\" />\n\n @if (matchingSet(); as set) {\n <span class=\"block max-w-44 max-sm:max-w-14 truncate\">{{ set.name }}</span>\n }\n </span>\n\n @if (formMode(); as mode) {\n <yuws-list-toolbar-filter-set-form\n [labels]=\"labels()\"\n [mode]=\"mode\"\n [name]=\"formName()\"\n (cancelled)=\"open.set(false)\"\n (confirmed)=\"onFormConfirmed($event)\"\n (deleteRequested)=\"formMode.set('delete')\"\n />\n } @else {\n <yuws-list-toolbar-filter-sets\n [stretchActions]=\"true\"\n [labels]=\"labels()\"\n [sets]=\"sets()\"\n [selectedId]=\"selectedSetId()\"\n [canSave]=\"canSave()\"\n [canEdit]=\"!!matchingSet()\"\n (picked)=\"onPicked($event)\"\n (itemEditRequested)=\"openForm('rename', $event)\"\n (saveRequested)=\"openForm('save')\"\n (editRequested)=\"openForm('rename', $safeNavigationMigration(matchingSet()?.id))\"\n (deleteRequested)=\"openForm('delete', $safeNavigationMigration(matchingSet()?.id))\"\n />\n }\n</yuw-popover>\n"
|
|
24262
24369
|
}]
|
|
24263
24370
|
}],
|
|
24264
24371
|
propDecorators: {
|
|
24265
|
-
idleColor: [{
|
|
24266
|
-
type: i0.Input,
|
|
24267
|
-
args: [{
|
|
24268
|
-
isSignal: true,
|
|
24269
|
-
alias: "idleColor",
|
|
24270
|
-
required: true
|
|
24271
|
-
}]
|
|
24272
|
-
}],
|
|
24273
24372
|
labels: [{
|
|
24274
24373
|
type: i0.Input,
|
|
24275
24374
|
args: [{
|
|
@@ -24501,7 +24600,7 @@ var YuwsListToolbarFiltersComponent = class YuwsListToolbarFiltersComponent {
|
|
|
24501
24600
|
isSignal: true
|
|
24502
24601
|
}],
|
|
24503
24602
|
ngImport: i0,
|
|
24504
|
-
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [
|
|
24603
|
+
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [searchPlaceholder]=\"labels().search\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter>\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n (clicked)=\"onClearAll()\"\n >\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full scrollbar-width:none [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else if (dates()[group.id]; as date) {\n <yuw-datepicker\n #picker\n triggerVariant=\"secondary\"\n class=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [mode]=\"date.mode\"\n [value]=\"date.value\"\n [presetId]=\"date.presetId\"\n [presets]=\"date.presets\"\n [presetsLabel]=\"labels().datePresets\"\n [formatDate]=\"labels().formatDate\"\n (valueChange)=\"onDateChange(group.id, $event, picker.presetId())\"\n >\n <ng-template yuwDatepickerTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-datepicker>\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [searchPlaceholder]=\"group.label\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n",
|
|
24505
24604
|
dependencies: [
|
|
24506
24605
|
{
|
|
24507
24606
|
kind: "component",
|
|
@@ -24617,7 +24716,6 @@ var YuwsListToolbarFiltersComponent = class YuwsListToolbarFiltersComponent {
|
|
|
24617
24716
|
type: YuwsListToolbarFilterSetPickerComponent,
|
|
24618
24717
|
selector: "yuws-list-toolbar-filter-set-picker",
|
|
24619
24718
|
inputs: [
|
|
24620
|
-
"idleColor",
|
|
24621
24719
|
"labels",
|
|
24622
24720
|
"selection",
|
|
24623
24721
|
"sets"
|
|
@@ -24665,7 +24763,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
24665
24763
|
lucideX
|
|
24666
24764
|
})],
|
|
24667
24765
|
host: { class: "flex min-w-0 max-w-full flex-1 max-md:contents" },
|
|
24668
|
-
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [
|
|
24766
|
+
template: "<fieldset class=\"m-0 flex min-w-0 flex-1 items-center gap-2 border-0 p-0 max-md:contents\" [disabled]=\"disabled()\">\n <legend class=\"sr-only\">{{ labels().title }}</legend>\n\n <!-- Saved sets -->\n @if (setLabels(); as setLabels) {\n <yuws-list-toolbar-filter-set-picker\n [labels]=\"setLabels\"\n [sets]=\"sets() ?? []\"\n [selection]=\"selection()\"\n (selectionChange)=\"onSetApplied($event)\"\n (setDeleted)=\"setDeleted.emit($event)\"\n (setRenamed)=\"setRenamed.emit($event)\"\n (setSaved)=\"setSaved.emit($event)\"\n />\n }\n\n <!-- Add filter -->\n <yuw-combobox\n #addBox\n multiple\n keepValueOnEscape\n triggerVariant=\"default\"\n triggerColor=\"secondary\"\n triggerClass=\"shrink-0 gap-1.5\"\n [options]=\"addOptions()\"\n [value]=\"addValue()\"\n [searchPlaceholder]=\"labels().search\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"labels().add\"\n (valueChange)=\"onActiveChange($event)\"\n >\n <ng-template yuwComboboxTrigger>\n <ng-icon name=\"lucidePlus\" size=\"16\" />\n <span class=\"whitespace-nowrap max-md:hidden\">{{ labels().add }}</span>\n </ng-template>\n\n @if (activeGroups().length > 0) {\n <div yuwComboboxFooter>\n <yuw-button\n variant=\"ghost\"\n color=\"destructive\"\n size=\"sm\"\n class=\"w-full [&>button]:w-full\"\n (clicked)=\"onClearAll()\"\n >\n <span class=\"truncate\">{{ labels().clearAll }}</span>\n </yuw-button>\n </div>\n }\n </yuw-combobox>\n\n <!-- Active filters -->\n @if (activeGroups().length > 0) {\n <div\n yuwMouseScrollX\n class=\"-my-1 flex min-w-0 flex-1 items-center gap-2 overflow-x-auto contain-inline-size px-px py-1 scroll-fade-x max-md:order-last max-md:basis-full scrollbar-width:none [&::-webkit-scrollbar]:hidden\"\n >\n @for (group of activeGroups(); track group.id) {\n <div\n class=\"flex shrink-0 items-center\"\n [class]=\"weldClass\"\n [attr.data-filter-id]=\"group.id\"\n data-testid=\"active-filter\"\n >\n @if (contentTemplates()[group.id]; as content) {\n <ng-container\n [ngTemplateOutlet]=\"content\"\n [ngTemplateOutletContext]=\"{\n $implicit: group,\n value: selection()[group.id],\n change: changers()[group.id],\n }\"\n />\n } @else if (dates()[group.id]; as date) {\n <yuw-datepicker\n #picker\n triggerVariant=\"secondary\"\n class=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [mode]=\"date.mode\"\n [value]=\"date.value\"\n [presetId]=\"date.presetId\"\n [presets]=\"date.presets\"\n [presetsLabel]=\"labels().datePresets\"\n [formatDate]=\"labels().formatDate\"\n (valueChange)=\"onDateChange(group.id, $event, picker.presetId())\"\n >\n <ng-template yuwDatepickerTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-datepicker>\n } @else {\n <yuw-combobox\n keepValueOnEscape\n triggerVariant=\"secondary\"\n triggerClass=\"max-w-80 gap-1.5\"\n [triggerColor]=\"idleColor()\"\n [multiple]=\"group.mode === 'multiple'\"\n [options]=\"options()[group.id]\"\n [searchPlaceholder]=\"group.label\"\n [value]=\"values()[group.id]\"\n [emptyText]=\"labels().empty\"\n [triggerAriaLabel]=\"group.label\"\n (valueChange)=\"onValueChange(group.id, $event)\"\n >\n <ng-template yuwComboboxTrigger let-summary>\n <span class=\"whitespace-nowrap font-semibold\">{{ group.label }}</span>\n\n @if (summary) {\n <span class=\"min-w-0 truncate font-normal\">{{ summary }}</span>\n }\n </ng-template>\n </yuw-combobox>\n }\n\n <yuw-button\n variant=\"secondary\"\n size=\"icon\"\n class=\"w-8 rounded-s-none\"\n [color]=\"idleColor()\"\n [ariaLabel]=\"labels().remove\"\n (clicked)=\"onRemoved(group.id)\"\n >\n <ng-icon name=\"lucideX\" size=\"14\" />\n </yuw-button>\n </div>\n }\n </div>\n }\n</fieldset>\n"
|
|
24669
24767
|
}]
|
|
24670
24768
|
}],
|
|
24671
24769
|
propDecorators: {
|
|
@@ -25497,6 +25595,6 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
25497
25595
|
}]
|
|
25498
25596
|
}
|
|
25499
25597
|
});
|
|
25500
|
-
export { DATATABLE_ALIGN_CLASS, DATATABLE_LAYOUT_CLASS, DATATABLE_WRAP_CONTENT_CLASS, YUWS_AVATAR_NAME_HEADER_CLASS, YUWS_NO_DATA_PLACEHOLDER, YUW_DATATABLE_FEATURES, YUW_DATATABLE_WRAP_MIN_WIDTH, YUW_DATE_RANGES, YUW_PASSWORD_REVEAL_STATES, YUW_SIDEBAR_RAIL_ICON_SIZE, YUW_SIDEBAR_RAIL_WIDTH, YUW_TABLE_SHARE_FORMATS, YuwAccordion, YuwAccordionContentComponent, YuwAccordionImports, YuwAccordionItem, YuwAccordionTriggerComponent, YuwActionsCellComponent, YuwAlertActionDirective, YuwAlertComponent, YuwAlertDescriptionDirective, YuwAlertDialogComponent, YuwAlertDialogMediaDirective, YuwAlertDialogTriggerDirective, YuwAlertImports, YuwAlertTitleDirective, YuwAttachmentActionDirective, YuwAttachmentActionsDirective, YuwAttachmentContentDirective, YuwAttachmentDescriptionDirective, YuwAttachmentDirective, YuwAttachmentGroupDirective, YuwAttachmentMediaDirective, YuwAttachmentTitleDirective, YuwAttachmentTriggerDirective, YuwAvatarComponent, YuwBadgeComponent, YuwBreadcrumbComponent, YuwBreadcrumbTrailService, YuwButtonComponent, YuwButtonGroupComponent, YuwButtonGroupContentDirective, YuwCalendarComponent, YuwCaptionDirective, YuwCardActionDirective, YuwCardContentDirective, YuwCardDescriptionDirective, YuwCardDirective, YuwCardFooterDirective, YuwCardHeaderDirective, YuwCardImports, YuwCardTitleDirective, YuwCheckboxComponent, YuwClassDirective, YuwComboboxComponent, YuwComboboxItemDirective, YuwComboboxTriggerButtonDirective, YuwComboboxTriggerDirective, YuwCommandComponent, YuwCommandDialogComponent, YuwContextMenuCheckboxDirective, YuwContextMenuCheckboxIndicatorComponent, YuwContextMenuDirective, YuwContextMenuGroupDirective, YuwContextMenuImports, YuwContextMenuItemDirective, YuwContextMenuLabelDirective, YuwContextMenuRadioDirective, YuwContextMenuRadioIndicatorComponent, YuwContextMenuSeparatorDirective, YuwContextMenuShortcutDirective, YuwContextMenuSubDirective, YuwContextMenuSubIndicatorComponent, YuwContextMenuSubTriggerDirective, YuwContextMenuTriggerDirective, YuwDatatableComponent, YuwDatatablePaginationDirective, YuwDatatableRowSelect, YuwDatepickerComponent, YuwDatepickerTriggerDirective, YuwDialogCloseDirective, YuwDialogComponent, YuwDialogFooterDirective, YuwDialogImports, YuwDialogTriggerDirective, YuwEmptyContentDirective, YuwEmptyDescriptionDirective, YuwEmptyDirective, YuwEmptyHeaderDirective, YuwEmptyImports, YuwEmptyMediaDirective, YuwEmptyTitleDirective, YuwFieldBase, YuwInputAddonImports, YuwInputComponent, YuwInputFileComponent, YuwInputOtpComponent, YuwItemActionsDirective, YuwItemContentDirective, YuwItemDescriptionDirective, YuwItemDirective, YuwItemFooterDirective, YuwItemGroupDirective, YuwItemHeaderDirective, YuwItemImports, YuwItemMediaDirective, YuwItemSeparatorDirective, YuwItemTitleDirective, YuwLabel, YuwLayoutComponent, YuwLeftAddonDirective, YuwMouseScrollXDirective, YuwMouseScrollYDirective, YuwPaginationComponent, YuwPasswordInputComponent, YuwPopoverComponent, YuwPopoverTriggerDirective, YuwProgressComponent, YuwRadioGroupComponent, YuwRightAddonDirective, YuwSearchInputComponent, YuwSheetCloseDirective, YuwSheetComponent, YuwSheetFooterDirective, YuwSheetHeaderDirective, YuwSheetImports, YuwSheetTriggerDirective, YuwSidebarComponent, YuwSidebarContentDirective, YuwSidebarContentExtraDirective, YuwSidebarFooterDirective, YuwSidebarFooterExtraDirective, YuwSidebarGroupContentDirective, YuwSidebarGroupDirective, YuwSidebarGroupLabelDirective, YuwSidebarHeaderDirective, YuwSidebarInsetDirective, YuwSidebarMenuAvatarButtonDirective, YuwSidebarMenuBadgeDirective, YuwSidebarMenuButtonDirective, YuwSidebarMenuDirective, YuwSidebarMenuItemDirective, YuwSidebarMenuSubButtonDirective, YuwSidebarMenuSubDirective, YuwSidebarMenuSubItemDirective, YuwSidebarRailDirective, YuwSidebarRailService, YuwSidebarSeparatorDirective, YuwSidebarService, YuwSidebarSubmenuService, YuwSidebarTriggerComponent, YuwSidebarWrapperDirective, YuwSkeletonDirective, YuwSpinnerComponent, YuwStepIndicatorDirective, YuwStepPanelDirective, YuwStepperComponent, YuwSwitchCardComponent, YuwSwitchComponent, YuwTBodyDirective, YuwTFootDirective, YuwTHeadDirective, YuwTabContentDirective, YuwTabPanelDirective, YuwTableContainerDirective, YuwTableDirective, YuwTableImports, YuwTabsComponent, YuwTdDirective, YuwTextFieldBase, YuwTextareaComponent, YuwThDirective, YuwToasterComponent, YuwToggleGroupComponent, YuwTooltipDirective, YuwTrDirective, YuwValueAccessorBase, YuwsActiveStatusCellComponent, YuwsAdvanceOnEnterDirective, YuwsAvatarNameCellComponent, YuwsBadgeListCellComponent, YuwsCardGridComponent, YuwsCardGridItemComponent, YuwsClampedTextCellComponent, YuwsConfirmDialogComponent, YuwsCopyButtonComponent, YuwsFilterComboboxComponent, YuwsFilterContentDirective, YuwsFlagCellComponent, YuwsFormSheetComponent, YuwsIconActionCellComponent, YuwsImageCellComponent, YuwsImageFieldComponent, YuwsImageUploadComponent, YuwsLinkCellComponent, YuwsListPaginationComponent, YuwsListTableComponent, YuwsListToolbarComponent, YuwsMenuActionsCellComponent, YuwsOverflowListCellComponent, YuwsPageHeaderComponent, YuwsPageSizeComponent, YuwsSelectCellComponent, YuwsStackedTextCellComponent, YuwsStatusToggleCellComponent, YuwsTitleSkeletonDirective, YuwsWeekdayPickerComponent, buildInputOtpGroups, buildYuwActionsColumn, buildYuwTableSnapshot, buildYuwsActiveStatusColumn, buildYuwsDateTimeColumn, buildYuwsIconActionColumn, buildYuwsMenuActionsColumn, buildYuwsOptionalTextColumn, buildYuwsSelectColumn, buildYuwsStatusToggleColumn, cn, createPagedList, createYuwsSheetEditor, datatableCellVariants, datatableContainerVariants, datatableHeadVariants, datatableHeaderCellVariants, datatableRowVariants, getPaginationRange, provideValueAccessor, provideYuwSidebarConfig, shareTable, totalInputOtpLength, yuwCommandDefaultFilter, yuwCountdownToast, yuwDatePresets, yuwQuarterRange, yuwToast, yuwsDateFilterValue, yuwsInitialsOf, yuwsMediaQuerySignal, yuwsPendingRowClass, yuwsReadFileAsDataUrl, yuwsResolveDateFilter, yuwsStandardDatePresets };
|
|
25598
|
+
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_MENU_INDICATOR_ITEM_CLASS, YUW_MENU_ITEM_CLASS, YUW_MENU_LABEL_CLASS, YUW_MENU_PANEL_CLASS, YUW_MENU_SEPARATOR_CLASS, 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 };
|
|
25501
25599
|
|
|
25502
25600
|
//# sourceMappingURL=yukit-web.mjs.map
|