yukit-web 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/yukit-web.mjs
CHANGED
|
@@ -12213,7 +12213,7 @@ var YuwActionsCellComponent = class YuwActionsCellComponent {
|
|
|
12213
12213
|
},
|
|
12214
12214
|
providers: [provideIcons({ lucidePencil })],
|
|
12215
12215
|
ngImport: i0,
|
|
12216
|
-
template: "<yuw-button variant=\"ghost\" size=\"icon\" [ariaLabel]=\"label()\" (clicked)=\"edit()\">\n <ng-icon name=\"lucidePencil\" size=\"16\" />\n</yuw-button>\n",
|
|
12216
|
+
template: "<yuw-button variant=\"ghost\" size=\"icon-xs\" [ariaLabel]=\"label()\" (clicked)=\"edit()\">\n <ng-icon name=\"lucidePencil\" size=\"16\" />\n</yuw-button>\n",
|
|
12217
12217
|
dependencies: [{
|
|
12218
12218
|
kind: "component",
|
|
12219
12219
|
type: NgIcon,
|
|
@@ -12266,7 +12266,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
12266
12266
|
class: "yuw-reveal",
|
|
12267
12267
|
"(click)": "onHostClick($event)"
|
|
12268
12268
|
},
|
|
12269
|
-
template: "<yuw-button variant=\"ghost\" size=\"icon\" [ariaLabel]=\"label()\" (clicked)=\"edit()\">\n <ng-icon name=\"lucidePencil\" size=\"16\" />\n</yuw-button>\n"
|
|
12269
|
+
template: "<yuw-button variant=\"ghost\" size=\"icon-xs\" [ariaLabel]=\"label()\" (clicked)=\"edit()\">\n <ng-icon name=\"lucidePencil\" size=\"16\" />\n</yuw-button>\n"
|
|
12270
12270
|
}]
|
|
12271
12271
|
}],
|
|
12272
12272
|
propDecorators: {
|
|
@@ -19241,7 +19241,7 @@ var YuwsIconActionCellComponent = class YuwsIconActionCellComponent {
|
|
|
19241
19241
|
classAttribute: "yuw-reveal"
|
|
19242
19242
|
},
|
|
19243
19243
|
ngImport: i0,
|
|
19244
|
-
template: "<yuw-button\n size=\"icon\"\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"label()\"\n [yuwTooltip]=\"tooltip()\"\n [tooltipDisabled]=\"!tooltip()\"\n (clicked)=\"run()\"\n>\n <ng-icon [svg]=\"icon()\" size=\"16\" />\n</yuw-button>\n",
|
|
19244
|
+
template: "<yuw-button\n size=\"icon-xs\"\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"label()\"\n [yuwTooltip]=\"tooltip()\"\n [tooltipDisabled]=\"!tooltip()\"\n (clicked)=\"run()\"\n>\n <ng-icon [svg]=\"icon()\" size=\"16\" />\n</yuw-button>\n",
|
|
19245
19245
|
dependencies: [
|
|
19246
19246
|
{
|
|
19247
19247
|
kind: "component",
|
|
@@ -19305,7 +19305,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19305
19305
|
class: "yuw-reveal",
|
|
19306
19306
|
"(click)": "$event.stopPropagation()"
|
|
19307
19307
|
},
|
|
19308
|
-
template: "<yuw-button\n size=\"icon\"\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"label()\"\n [yuwTooltip]=\"tooltip()\"\n [tooltipDisabled]=\"!tooltip()\"\n (clicked)=\"run()\"\n>\n <ng-icon [svg]=\"icon()\" size=\"16\" />\n</yuw-button>\n"
|
|
19308
|
+
template: "<yuw-button\n size=\"icon-xs\"\n [variant]=\"variant()\"\n [color]=\"color()\"\n [ariaLabel]=\"label()\"\n [yuwTooltip]=\"tooltip()\"\n [tooltipDisabled]=\"!tooltip()\"\n (clicked)=\"run()\"\n>\n <ng-icon [svg]=\"icon()\" size=\"16\" />\n</yuw-button>\n"
|
|
19309
19309
|
}]
|
|
19310
19310
|
}],
|
|
19311
19311
|
propDecorators: {
|
|
@@ -19592,7 +19592,7 @@ var YuwsMenuActionsCellComponent = class YuwsMenuActionsCellComponent {
|
|
|
19592
19592
|
},
|
|
19593
19593
|
providers: [provideIcons({ lucideEllipsis })],
|
|
19594
19594
|
ngImport: i0,
|
|
19595
|
-
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",
|
|
19595
|
+
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon-xs\"\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",
|
|
19596
19596
|
dependencies: [
|
|
19597
19597
|
{
|
|
19598
19598
|
kind: "directive",
|
|
@@ -19679,7 +19679,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
19679
19679
|
"(click)": "$event.stopPropagation()",
|
|
19680
19680
|
"(keydown)": "$event.stopPropagation()"
|
|
19681
19681
|
},
|
|
19682
|
-
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"
|
|
19682
|
+
template: "<yuw-button\n variant=\"ghost\"\n size=\"icon-xs\"\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"
|
|
19683
19683
|
}]
|
|
19684
19684
|
}],
|
|
19685
19685
|
propDecorators: {
|
|
@@ -24991,7 +24991,7 @@ var YuwsListToolbarFiltersComponent = class YuwsListToolbarFiltersComponent {
|
|
|
24991
24991
|
isSignal: true
|
|
24992
24992
|
}],
|
|
24993
24993
|
ngImport: i0,
|
|
24994
|
-
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",
|
|
24994
|
+
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 max-md:w-10 max-md:px-0\"\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",
|
|
24995
24995
|
dependencies: [
|
|
24996
24996
|
{
|
|
24997
24997
|
kind: "component",
|
|
@@ -25154,7 +25154,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
25154
25154
|
lucideX
|
|
25155
25155
|
})],
|
|
25156
25156
|
host: { class: "flex min-w-0 max-w-full flex-1 max-md:contents" },
|
|
25157
|
-
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"
|
|
25157
|
+
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 max-md:w-10 max-md:px-0\"\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"
|
|
25158
25158
|
}]
|
|
25159
25159
|
}],
|
|
25160
25160
|
propDecorators: {
|