ud-components 0.8.5 → 0.8.6
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.
|
@@ -1680,6 +1680,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1680
1680
|
* <ud-menu [items]="items" ariaLabel="Charge actions" (itemSelected)="onAction($event)" />
|
|
1681
1681
|
* <ud-menu [items]="items" triggerVariant="stroked" triggerIcon="keyboard_arrow_down"
|
|
1682
1682
|
* [triggerLabel]="'Actions'" (itemSelected)="onAction($event)" />
|
|
1683
|
+
* <ud-menu [items]="items" [customTrigger]="true" (itemSelected)="onAction($event)">
|
|
1684
|
+
* <span>Anything clickable</span>
|
|
1685
|
+
* </ud-menu>
|
|
1683
1686
|
*
|
|
1684
1687
|
* Prefer `disabled` + `disabledReason` over `hidden`, so the reader can tell
|
|
1685
1688
|
* "not possible here" from "does not exist".
|
|
@@ -1692,6 +1695,8 @@ class UdMenuComponent {
|
|
|
1692
1695
|
triggerLabel;
|
|
1693
1696
|
triggerColor = 'secondary';
|
|
1694
1697
|
triggerSize = 'sm';
|
|
1698
|
+
/** Projected content becomes the trigger (wrapped in a bare button) instead of a ud-button. */
|
|
1699
|
+
customTrigger = false;
|
|
1695
1700
|
/** Required in practice for icon-only triggers. */
|
|
1696
1701
|
ariaLabel;
|
|
1697
1702
|
disabled = false;
|
|
@@ -1727,7 +1732,7 @@ class UdMenuComponent {
|
|
|
1727
1732
|
this.itemSelected.emit(item);
|
|
1728
1733
|
}
|
|
1729
1734
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UdMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1730
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: UdMenuComponent, isStandalone: true, selector: "ud-menu", inputs: { items: "items", triggerVariant: "triggerVariant", triggerIcon: "triggerIcon", triggerLabel: "triggerLabel", triggerColor: "triggerColor", triggerSize: "triggerSize", ariaLabel: "ariaLabel", disabled: "disabled", loading: "loading", xPosition: "xPosition", yPosition: "yPosition", stopPropagation: "stopPropagation", panelClass: "panelClass" }, outputs: { itemSelected: "itemSelected", opened: "opened", closed: "closed" }, host: { listeners: { "click": "onHostClick($event)" } }, ngImport: i0, template: "<ud-button\n [variant]=\"triggerVariant\"\n
|
|
1735
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: UdMenuComponent, isStandalone: true, selector: "ud-menu", inputs: { items: "items", triggerVariant: "triggerVariant", triggerIcon: "triggerIcon", triggerLabel: "triggerLabel", triggerColor: "triggerColor", triggerSize: "triggerSize", customTrigger: "customTrigger", ariaLabel: "ariaLabel", disabled: "disabled", loading: "loading", xPosition: "xPosition", yPosition: "yPosition", stopPropagation: "stopPropagation", panelClass: "panelClass" }, outputs: { itemSelected: "itemSelected", opened: "opened", closed: "closed" }, host: { listeners: { "click": "onHostClick($event)" } }, ngImport: i0, template: "@if (customTrigger) {\n <button\n type=\"button\"\n class=\"ud-menu__custom-trigger\"\n [attr.aria-label]=\"ariaLabel\"\n [disabled]=\"disabled || loading\"\n [matMenuTriggerFor]=\"menu\"\n (menuOpened)=\"opened.emit()\"\n (menuClosed)=\"closed.emit()\">\n <ng-content />\n </button>\n} @else {\n <ud-button\n [variant]=\"triggerVariant\"\n [color]=\"triggerColor\"\n [size]=\"triggerSize\"\n [icon]=\"triggerIcon\"\n iconPosition=\"right\"\n [ariaLabel]=\"ariaLabel\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [matMenuTriggerFor]=\"disabled || loading ? null : menu\"\n (menuOpened)=\"opened.emit()\"\n (menuClosed)=\"closed.emit()\">\n {{ triggerLabel | toObservable | async }}\n </ud-button>\n}\n\n<mat-menu\n #menu=\"matMenu\"\n [class]=\"panelClasses\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\">\n @for (item of visibleItems; track item.id) {\n @if (item.dividerBefore) {\n <div class=\"ud-menu-divider\" role=\"separator\"></div>\n }\n @if (item.routerLink && !item.disabled) {\n <a\n mat-menu-item\n class=\"ud-menu-item\"\n [class.ud-menu-item--danger]=\"item.color === 'danger'\"\n [class.ud-menu-item--no-icon]=\"!hasIcons\"\n [attr.data-item-id]=\"item.id\"\n [routerLink]=\"item.routerLink\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item }\" />\n </a>\n } @else {\n <button\n mat-menu-item\n type=\"button\"\n class=\"ud-menu-item\"\n [class.ud-menu-item--danger]=\"item.color === 'danger'\"\n [class.ud-menu-item--no-icon]=\"!hasIcons\"\n [attr.data-item-id]=\"item.id\"\n [disabled]=\"item.disabled\"\n (click)=\"select(item)\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item }\" />\n </button>\n }\n }\n</mat-menu>\n\n<ng-template #content let-item>\n @if (hasIcons) {\n <span class=\"ud-menu-item__icon-wrap\">\n @if (item.icon) {\n <mat-icon [fontSet]=\"item.iconFontSet ?? 'material-icons-outlined'\">{{ item.icon }}</mat-icon>\n }\n </span>\n }\n <span class=\"ud-menu-item__text\">\n <span class=\"ud-menu-item__label\">{{ item.label | toObservable | async }}</span>\n @if (item.disabled && item.disabledReason) {\n <span class=\"ud-menu-item__description\">{{ item.disabledReason }}</span>\n } @else if (item.description) {\n <span class=\"ud-menu-item__description\">{{ item.description }}</span>\n }\n </span>\n</ng-template>\n", styles: ["ud-menu{display:inline-block}.ud-menu__custom-trigger{all:unset;display:inline-flex;cursor:pointer;border-radius:999px}.ud-menu__custom-trigger:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.ud-menu__custom-trigger:disabled{cursor:not-allowed}.ud-actions-menu{border-radius:10px!important;box-shadow:0 4px 20px #1b25351a,0 1px 4px #1b25350f!important;border:1px solid rgba(27,37,53,.08);overflow:hidden;min-width:200px!important}.ud-actions-menu .mat-mdc-menu-content{padding:4px!important}.ud-actions-menu .ud-menu-divider{height:1px;margin:4px 8px;background:#1b253514}.ud-actions-menu .ud-menu-item{display:flex;align-items:center;gap:0;height:auto;min-height:40px;padding:0 12px 0 0!important;border-radius:7px;margin:1px 0;position:relative;overflow:hidden;transition:background .15s ease}.ud-actions-menu .ud-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center}.ud-actions-menu .ud-menu-item:before{content:\"\";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 2px 2px 0;background:#1b2535;transform:scaleY(0);transform-origin:center;transition:transform .18s cubic-bezier(.4,0,.2,1)}.ud-actions-menu .ud-menu-item:hover:not([disabled]):before{transform:scaleY(1)}.ud-actions-menu .ud-menu-item:hover:not([disabled]){background:#1b25350d!important}.ud-actions-menu .ud-menu-item[disabled]{opacity:1}.ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__icon-wrap,.ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__label{opacity:.38}.ud-actions-menu .ud-menu-item--no-icon{padding-left:12px!important}.ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:40px;flex-shrink:0;align-self:stretch;max-height:40px}.ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap mat-icon{font-size:17px;width:17px;height:17px;margin:0;color:#6b7585;transition:color .15s ease}.ud-actions-menu .ud-menu-item:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#1b2535}.ud-actions-menu .ud-menu-item .ud-menu-item__text{display:flex;flex-direction:column;padding:8px 0;min-width:0}.ud-actions-menu .ud-menu-item .ud-menu-item__label{font-family:DM Sans,system-ui,sans-serif;font-size:.875rem;font-weight:500;line-height:1.25rem;color:#1b2535;letter-spacing:.01em;white-space:nowrap}.ud-actions-menu .ud-menu-item .ud-menu-item__description{font-family:DM Sans,system-ui,sans-serif;font-size:.75rem;line-height:1rem;color:#6b7585;white-space:normal}.ud-actions-menu .ud-menu-item--danger .ud-menu-item__label,.ud-actions-menu .ud-menu-item--danger .ud-menu-item__icon-wrap mat-icon,.ud-actions-menu .ud-menu-item--danger:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#e53935}.ud-actions-menu .ud-menu-item--danger:before{background:#e53935}.ud-actions-menu .ud-menu-item .mdc-list-item__primary-text{display:none!important}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "component", type: MatMenuItem, selector: "[mat-menu-item]", inputs: ["role", "disabled", "disableRipple"], exportAs: ["matMenuItem"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "pipe", type: ToObservablePipe, name: "toObservable" }, { kind: "component", type: UdButtonComponent, selector: "ud-button", inputs: ["variant", "color", "size", "type", "icon", "iconPosition", "iconFontSet", "loading", "disabled", "ariaLabel", "fullWidth"], outputs: ["buttonClick"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1731
1736
|
}
|
|
1732
1737
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UdMenuComponent, decorators: [{
|
|
1733
1738
|
type: Component,
|
|
@@ -1743,7 +1748,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1743
1748
|
UdButtonComponent,
|
|
1744
1749
|
], encapsulation: ViewEncapsulation.None, host: {
|
|
1745
1750
|
'(click)': 'onHostClick($event)',
|
|
1746
|
-
}, template: "<ud-button\n [variant]=\"triggerVariant\"\n
|
|
1751
|
+
}, template: "@if (customTrigger) {\n <button\n type=\"button\"\n class=\"ud-menu__custom-trigger\"\n [attr.aria-label]=\"ariaLabel\"\n [disabled]=\"disabled || loading\"\n [matMenuTriggerFor]=\"menu\"\n (menuOpened)=\"opened.emit()\"\n (menuClosed)=\"closed.emit()\">\n <ng-content />\n </button>\n} @else {\n <ud-button\n [variant]=\"triggerVariant\"\n [color]=\"triggerColor\"\n [size]=\"triggerSize\"\n [icon]=\"triggerIcon\"\n iconPosition=\"right\"\n [ariaLabel]=\"ariaLabel\"\n [disabled]=\"disabled\"\n [loading]=\"loading\"\n [matMenuTriggerFor]=\"disabled || loading ? null : menu\"\n (menuOpened)=\"opened.emit()\"\n (menuClosed)=\"closed.emit()\">\n {{ triggerLabel | toObservable | async }}\n </ud-button>\n}\n\n<mat-menu\n #menu=\"matMenu\"\n [class]=\"panelClasses\"\n [xPosition]=\"xPosition\"\n [yPosition]=\"yPosition\">\n @for (item of visibleItems; track item.id) {\n @if (item.dividerBefore) {\n <div class=\"ud-menu-divider\" role=\"separator\"></div>\n }\n @if (item.routerLink && !item.disabled) {\n <a\n mat-menu-item\n class=\"ud-menu-item\"\n [class.ud-menu-item--danger]=\"item.color === 'danger'\"\n [class.ud-menu-item--no-icon]=\"!hasIcons\"\n [attr.data-item-id]=\"item.id\"\n [routerLink]=\"item.routerLink\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item }\" />\n </a>\n } @else {\n <button\n mat-menu-item\n type=\"button\"\n class=\"ud-menu-item\"\n [class.ud-menu-item--danger]=\"item.color === 'danger'\"\n [class.ud-menu-item--no-icon]=\"!hasIcons\"\n [attr.data-item-id]=\"item.id\"\n [disabled]=\"item.disabled\"\n (click)=\"select(item)\">\n <ng-container *ngTemplateOutlet=\"content; context: { $implicit: item }\" />\n </button>\n }\n }\n</mat-menu>\n\n<ng-template #content let-item>\n @if (hasIcons) {\n <span class=\"ud-menu-item__icon-wrap\">\n @if (item.icon) {\n <mat-icon [fontSet]=\"item.iconFontSet ?? 'material-icons-outlined'\">{{ item.icon }}</mat-icon>\n }\n </span>\n }\n <span class=\"ud-menu-item__text\">\n <span class=\"ud-menu-item__label\">{{ item.label | toObservable | async }}</span>\n @if (item.disabled && item.disabledReason) {\n <span class=\"ud-menu-item__description\">{{ item.disabledReason }}</span>\n } @else if (item.description) {\n <span class=\"ud-menu-item__description\">{{ item.description }}</span>\n }\n </span>\n</ng-template>\n", styles: ["ud-menu{display:inline-block}.ud-menu__custom-trigger{all:unset;display:inline-flex;cursor:pointer;border-radius:999px}.ud-menu__custom-trigger:focus-visible{outline:2px solid #3b82f6;outline-offset:2px}.ud-menu__custom-trigger:disabled{cursor:not-allowed}.ud-actions-menu{border-radius:10px!important;box-shadow:0 4px 20px #1b25351a,0 1px 4px #1b25350f!important;border:1px solid rgba(27,37,53,.08);overflow:hidden;min-width:200px!important}.ud-actions-menu .mat-mdc-menu-content{padding:4px!important}.ud-actions-menu .ud-menu-divider{height:1px;margin:4px 8px;background:#1b253514}.ud-actions-menu .ud-menu-item{display:flex;align-items:center;gap:0;height:auto;min-height:40px;padding:0 12px 0 0!important;border-radius:7px;margin:1px 0;position:relative;overflow:hidden;transition:background .15s ease}.ud-actions-menu .ud-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center}.ud-actions-menu .ud-menu-item:before{content:\"\";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 2px 2px 0;background:#1b2535;transform:scaleY(0);transform-origin:center;transition:transform .18s cubic-bezier(.4,0,.2,1)}.ud-actions-menu .ud-menu-item:hover:not([disabled]):before{transform:scaleY(1)}.ud-actions-menu .ud-menu-item:hover:not([disabled]){background:#1b25350d!important}.ud-actions-menu .ud-menu-item[disabled]{opacity:1}.ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__icon-wrap,.ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__label{opacity:.38}.ud-actions-menu .ud-menu-item--no-icon{padding-left:12px!important}.ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:40px;flex-shrink:0;align-self:stretch;max-height:40px}.ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap mat-icon{font-size:17px;width:17px;height:17px;margin:0;color:#6b7585;transition:color .15s ease}.ud-actions-menu .ud-menu-item:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#1b2535}.ud-actions-menu .ud-menu-item .ud-menu-item__text{display:flex;flex-direction:column;padding:8px 0;min-width:0}.ud-actions-menu .ud-menu-item .ud-menu-item__label{font-family:DM Sans,system-ui,sans-serif;font-size:.875rem;font-weight:500;line-height:1.25rem;color:#1b2535;letter-spacing:.01em;white-space:nowrap}.ud-actions-menu .ud-menu-item .ud-menu-item__description{font-family:DM Sans,system-ui,sans-serif;font-size:.75rem;line-height:1rem;color:#6b7585;white-space:normal}.ud-actions-menu .ud-menu-item--danger .ud-menu-item__label,.ud-actions-menu .ud-menu-item--danger .ud-menu-item__icon-wrap mat-icon,.ud-actions-menu .ud-menu-item--danger:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#e53935}.ud-actions-menu .ud-menu-item--danger:before{background:#e53935}.ud-actions-menu .ud-menu-item .mdc-list-item__primary-text{display:none!important}\n"] }]
|
|
1747
1752
|
}], propDecorators: { items: [{
|
|
1748
1753
|
type: Input,
|
|
1749
1754
|
args: [{ required: true }]
|
|
@@ -1757,6 +1762,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1757
1762
|
type: Input
|
|
1758
1763
|
}], triggerSize: [{
|
|
1759
1764
|
type: Input
|
|
1765
|
+
}], customTrigger: [{
|
|
1766
|
+
type: Input
|
|
1760
1767
|
}], ariaLabel: [{
|
|
1761
1768
|
type: Input
|
|
1762
1769
|
}], disabled: [{
|
|
@@ -1844,22 +1851,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
|
|
|
1844
1851
|
type: Input
|
|
1845
1852
|
}] } });
|
|
1846
1853
|
|
|
1854
|
+
/**
|
|
1855
|
+
* Status badge. Given `options`, it becomes a status picker: hovering widens it
|
|
1856
|
+
* to show a chevron, clicking opens a ud-menu, and picking an option emits
|
|
1857
|
+
* `optionSelected`. The pill does not change itself; the caller updates
|
|
1858
|
+
* `text`/`type`/`value` once the change is saved.
|
|
1859
|
+
*
|
|
1860
|
+
* Usage:
|
|
1861
|
+
* <ud-pill text="Pending" type="warning" />
|
|
1862
|
+
* <ud-pill [text]="status.text" [type]="status.type" [value]="status.value"
|
|
1863
|
+
* [options]="statusOptions" (optionSelected)="changeStatus($event)" />
|
|
1864
|
+
*/
|
|
1847
1865
|
class PillComponent {
|
|
1848
1866
|
text;
|
|
1849
1867
|
type;
|
|
1868
|
+
/** 'legacy' keeps the original gradient look for screens not yet moved over. */
|
|
1869
|
+
variant = 'modern';
|
|
1870
|
+
/** Status dot before the text. Modern variant only. */
|
|
1871
|
+
showDot = true;
|
|
1872
|
+
/** The current option's value; it gets a check in the menu and is not re-emitted. */
|
|
1873
|
+
value;
|
|
1874
|
+
/** Makes the pill a status picker. */
|
|
1875
|
+
options;
|
|
1876
|
+
/** Keeps the menu closed, e.g. while a change is saving. */
|
|
1877
|
+
disabled = false;
|
|
1878
|
+
optionSelected = new EventEmitter();
|
|
1879
|
+
menuItems = [];
|
|
1880
|
+
menuOpen = false;
|
|
1850
1881
|
get observableText() {
|
|
1851
1882
|
return typeof this.text === 'string' ? of(this.text) : this.text;
|
|
1852
1883
|
}
|
|
1884
|
+
get editable() {
|
|
1885
|
+
return !!this.options?.length;
|
|
1886
|
+
}
|
|
1887
|
+
ngOnChanges() {
|
|
1888
|
+
this.menuItems = (this.options ?? []).map(option => ({
|
|
1889
|
+
id: option.value,
|
|
1890
|
+
label: option.text,
|
|
1891
|
+
icon: option.value === this.value ? 'check' : undefined,
|
|
1892
|
+
disabled: option.disabled,
|
|
1893
|
+
disabledReason: option.disabledReason,
|
|
1894
|
+
}));
|
|
1895
|
+
}
|
|
1896
|
+
select(item) {
|
|
1897
|
+
const option = this.options?.find(o => o.value === item.id);
|
|
1898
|
+
if (option && option.value !== this.value) {
|
|
1899
|
+
this.optionSelected.emit(option);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1853
1902
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: PillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1854
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
1903
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: PillComponent, isStandalone: true, selector: "ud-pill", inputs: { text: "text", type: "type", variant: "variant", showDot: "showDot", value: "value", options: "options", disabled: "disabled" }, outputs: { optionSelected: "optionSelected" }, usesOnChanges: true, ngImport: i0, template: "<ng-template #pill>\n <span\n class=\"pill\"\n [ngClass]=\"[type, 'pill--' + variant]\"\n [class.pill--dot]=\"showDot\"\n [class.pill--editable]=\"editable && !disabled\"\n [class.pill--open]=\"menuOpen\">\n {{ (observableText | async) ?? '' | capitalize }}\n @if (editable) {\n <mat-icon class=\"pill__chevron\" aria-hidden=\"true\">keyboard_arrow_down</mat-icon>\n }\n </span>\n</ng-template>\n\n@if (editable) {\n <ud-menu\n [items]=\"menuItems\"\n [customTrigger]=\"true\"\n [disabled]=\"disabled\"\n xPosition=\"after\"\n (itemSelected)=\"select($event)\"\n (opened)=\"menuOpen = true\"\n (closed)=\"menuOpen = false\">\n <ng-container *ngTemplateOutlet=\"pill\" />\n </ud-menu>\n} @else {\n <ng-container *ngTemplateOutlet=\"pill\" />\n}\n", styles: [".pill--modern{--pill-hue: var(--eu-muted, #6b7585);--pill-bg: var(--eu-bg, #f4f5f7);--pill-ink: var(--eu-text, #1b2535);--pill-gap: .4rem;display:inline-flex;align-items:center;gap:var(--pill-gap);height:1.5rem;padding:0 .625rem 0 .5rem;border-radius:999px;border:1px solid color-mix(in srgb,var(--pill-hue) 24%,transparent);background:var(--pill-bg);color:var(--pill-ink);font-family:DM Sans,system-ui,sans-serif;font-size:.75rem;font-weight:500;line-height:1;letter-spacing:0;white-space:nowrap;font-variant-numeric:tabular-nums}.pill--modern.pill--dot:before{content:\"\";flex:none;width:.375rem;height:.375rem;border-radius:50%;background:var(--pill-hue)}.pill--modern.success{--pill-hue: #24a821;--pill-bg: #edf7ed;--pill-ink: #1d6a1b}.pill--modern.warning{--pill-hue: #f59e0b;--pill-bg: #fef6e7;--pill-ink: #8a4b06}.pill--modern.danger{--pill-hue: #e53935;--pill-bg: #fdeeee;--pill-ink: #b0201c}.pill--modern.info{--pill-hue: #3b82f6;--pill-bg: #eef4fe;--pill-ink: #1e4fb8}.pill--modern.neutral{--pill-hue: #8a93a3;--pill-bg: #f1f2f5;--pill-ink: #4a5465}.pill--modern.primary{--pill-hue: #1b2535;--pill-bg: #e9ecf1;--pill-ink: #1b2535}.pill--modern.primary:not(.pill--editable:hover):not(.pill--open){border-color:color-mix(in srgb,var(--pill-hue) 14%,transparent)}.pill--modern.purple{--pill-hue: #8b5cf6;--pill-bg: #f3effe;--pill-ink: #5b2fc0}.pill--modern.teal{--pill-hue: #0d9488;--pill-bg: #e8f6f4;--pill-ink: #0b6b63}.pill--modern.pill--editable:hover,.pill--modern.pill--open{background:color-mix(in srgb,var(--pill-hue) 8%,var(--pill-bg));border-color:color-mix(in srgb,var(--pill-hue) 40%,transparent)}.pill--editable,.pill--open{cursor:pointer}.pill__chevron{flex:none;width:0;height:1rem;margin-left:calc(-1 * var(--pill-gap, 0px));margin-right:-.125rem;overflow:hidden;opacity:0;font-size:1rem;line-height:1;transition:width .18s ease,margin-left .18s ease,opacity .18s ease}@media (prefers-reduced-motion: reduce){.pill__chevron{transition:none}}.pill--editable:hover .pill__chevron,:host:focus-within .pill--editable .pill__chevron,.pill--open .pill__chevron{width:1rem;margin-left:calc(.25rem - var(--pill-gap, 0px));opacity:1}.pill--legacy{display:inline-flex;align-items:center;padding:.375rem .75rem;border-radius:12px;font-size:.8125rem;font-weight:600;text-align:center;transition:all .2s ease;letter-spacing:.025em;white-space:nowrap}.pill--legacy.success{background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;border:1.5px solid #6ee7b7;box-shadow:0 2px 8px #10b98126}.pill--legacy.success:hover{background:linear-gradient(135deg,#a7f3d0,#86efac);box-shadow:0 4px 12px #10b98133;transform:translateY(-1px)}.pill--legacy.warning{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;border:1.5px solid #fcd34d;box-shadow:0 2px 8px #f59e0b26}.pill--legacy.warning:hover{background:linear-gradient(135deg,#fde68a,#fcd34d);box-shadow:0 4px 12px #f59e0b33;transform:translateY(-1px)}.pill--legacy.danger{background:linear-gradient(135deg,#fecaca,#fca5a5);color:#991b1b;border:1.5px solid #f87171;box-shadow:0 2px 8px #ef444426}.pill--legacy.danger:hover{background:linear-gradient(135deg,#fca5a5,#f87171);box-shadow:0 4px 12px #ef444433;transform:translateY(-1px)}.pill--legacy.info{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;border:1.5px solid #93c5fd;box-shadow:0 2px 8px #3b82f626}.pill--legacy.info:hover{background:linear-gradient(135deg,#bfdbfe,#93c5fd);box-shadow:0 4px 12px #3b82f633;transform:translateY(-1px)}.pill--legacy.neutral{background:linear-gradient(135deg,#f3f4f6,#e5e7eb);color:#374151;border:1.5px solid #d1d5db;box-shadow:0 2px 8px #6b728026}.pill--legacy.neutral:hover{background:linear-gradient(135deg,#e5e7eb,#d1d5db);box-shadow:0 4px 12px #6b728033;transform:translateY(-1px)}.pill--legacy.primary{background:linear-gradient(135deg,#e2e8f0,#cbd5e1);color:#1b2535;border:1.5px solid #94a3b8;box-shadow:0 2px 8px #1b253526}.pill--legacy.primary:hover{background:linear-gradient(135deg,#cbd5e1,#94a3b8);box-shadow:0 4px 12px #1b253533;transform:translateY(-1px)}.pill--legacy.purple{background:linear-gradient(135deg,#ede9fe,#ddd6fe);color:#5b21b6;border:1.5px solid #c4b5fd;box-shadow:0 2px 8px #8b5cf626}.pill--legacy.purple:hover{background:linear-gradient(135deg,#ddd6fe,#c4b5fd);box-shadow:0 4px 12px #8b5cf633;transform:translateY(-1px)}.pill--legacy.teal{background:linear-gradient(135deg,#ccfbf1,#99f6e4);color:#115e59;border:1.5px solid #5eead4;box-shadow:0 2px 8px #14b8a626}.pill--legacy.teal:hover{background:linear-gradient(135deg,#99f6e4,#5eead4);box-shadow:0 4px 12px #14b8a633;transform:translateY(-1px)}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "component", type: UdMenuComponent, selector: "ud-menu", inputs: ["items", "triggerVariant", "triggerIcon", "triggerLabel", "triggerColor", "triggerSize", "customTrigger", "ariaLabel", "disabled", "loading", "xPosition", "yPosition", "stopPropagation", "panelClass"], outputs: ["itemSelected", "opened", "closed"] }] });
|
|
1855
1904
|
}
|
|
1856
1905
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: PillComponent, decorators: [{
|
|
1857
1906
|
type: Component,
|
|
1858
|
-
args: [{ selector: 'ud-pill', imports: [NgClass, AsyncPipe, CapitalizePipe], template: "<span
|
|
1907
|
+
args: [{ selector: 'ud-pill', imports: [NgClass, NgTemplateOutlet, AsyncPipe, MatIcon, CapitalizePipe, UdMenuComponent], template: "<ng-template #pill>\n <span\n class=\"pill\"\n [ngClass]=\"[type, 'pill--' + variant]\"\n [class.pill--dot]=\"showDot\"\n [class.pill--editable]=\"editable && !disabled\"\n [class.pill--open]=\"menuOpen\">\n {{ (observableText | async) ?? '' | capitalize }}\n @if (editable) {\n <mat-icon class=\"pill__chevron\" aria-hidden=\"true\">keyboard_arrow_down</mat-icon>\n }\n </span>\n</ng-template>\n\n@if (editable) {\n <ud-menu\n [items]=\"menuItems\"\n [customTrigger]=\"true\"\n [disabled]=\"disabled\"\n xPosition=\"after\"\n (itemSelected)=\"select($event)\"\n (opened)=\"menuOpen = true\"\n (closed)=\"menuOpen = false\">\n <ng-container *ngTemplateOutlet=\"pill\" />\n </ud-menu>\n} @else {\n <ng-container *ngTemplateOutlet=\"pill\" />\n}\n", styles: [".pill--modern{--pill-hue: var(--eu-muted, #6b7585);--pill-bg: var(--eu-bg, #f4f5f7);--pill-ink: var(--eu-text, #1b2535);--pill-gap: .4rem;display:inline-flex;align-items:center;gap:var(--pill-gap);height:1.5rem;padding:0 .625rem 0 .5rem;border-radius:999px;border:1px solid color-mix(in srgb,var(--pill-hue) 24%,transparent);background:var(--pill-bg);color:var(--pill-ink);font-family:DM Sans,system-ui,sans-serif;font-size:.75rem;font-weight:500;line-height:1;letter-spacing:0;white-space:nowrap;font-variant-numeric:tabular-nums}.pill--modern.pill--dot:before{content:\"\";flex:none;width:.375rem;height:.375rem;border-radius:50%;background:var(--pill-hue)}.pill--modern.success{--pill-hue: #24a821;--pill-bg: #edf7ed;--pill-ink: #1d6a1b}.pill--modern.warning{--pill-hue: #f59e0b;--pill-bg: #fef6e7;--pill-ink: #8a4b06}.pill--modern.danger{--pill-hue: #e53935;--pill-bg: #fdeeee;--pill-ink: #b0201c}.pill--modern.info{--pill-hue: #3b82f6;--pill-bg: #eef4fe;--pill-ink: #1e4fb8}.pill--modern.neutral{--pill-hue: #8a93a3;--pill-bg: #f1f2f5;--pill-ink: #4a5465}.pill--modern.primary{--pill-hue: #1b2535;--pill-bg: #e9ecf1;--pill-ink: #1b2535}.pill--modern.primary:not(.pill--editable:hover):not(.pill--open){border-color:color-mix(in srgb,var(--pill-hue) 14%,transparent)}.pill--modern.purple{--pill-hue: #8b5cf6;--pill-bg: #f3effe;--pill-ink: #5b2fc0}.pill--modern.teal{--pill-hue: #0d9488;--pill-bg: #e8f6f4;--pill-ink: #0b6b63}.pill--modern.pill--editable:hover,.pill--modern.pill--open{background:color-mix(in srgb,var(--pill-hue) 8%,var(--pill-bg));border-color:color-mix(in srgb,var(--pill-hue) 40%,transparent)}.pill--editable,.pill--open{cursor:pointer}.pill__chevron{flex:none;width:0;height:1rem;margin-left:calc(-1 * var(--pill-gap, 0px));margin-right:-.125rem;overflow:hidden;opacity:0;font-size:1rem;line-height:1;transition:width .18s ease,margin-left .18s ease,opacity .18s ease}@media (prefers-reduced-motion: reduce){.pill__chevron{transition:none}}.pill--editable:hover .pill__chevron,:host:focus-within .pill--editable .pill__chevron,.pill--open .pill__chevron{width:1rem;margin-left:calc(.25rem - var(--pill-gap, 0px));opacity:1}.pill--legacy{display:inline-flex;align-items:center;padding:.375rem .75rem;border-radius:12px;font-size:.8125rem;font-weight:600;text-align:center;transition:all .2s ease;letter-spacing:.025em;white-space:nowrap}.pill--legacy.success{background:linear-gradient(135deg,#d1fae5,#a7f3d0);color:#065f46;border:1.5px solid #6ee7b7;box-shadow:0 2px 8px #10b98126}.pill--legacy.success:hover{background:linear-gradient(135deg,#a7f3d0,#86efac);box-shadow:0 4px 12px #10b98133;transform:translateY(-1px)}.pill--legacy.warning{background:linear-gradient(135deg,#fef3c7,#fde68a);color:#92400e;border:1.5px solid #fcd34d;box-shadow:0 2px 8px #f59e0b26}.pill--legacy.warning:hover{background:linear-gradient(135deg,#fde68a,#fcd34d);box-shadow:0 4px 12px #f59e0b33;transform:translateY(-1px)}.pill--legacy.danger{background:linear-gradient(135deg,#fecaca,#fca5a5);color:#991b1b;border:1.5px solid #f87171;box-shadow:0 2px 8px #ef444426}.pill--legacy.danger:hover{background:linear-gradient(135deg,#fca5a5,#f87171);box-shadow:0 4px 12px #ef444433;transform:translateY(-1px)}.pill--legacy.info{background:linear-gradient(135deg,#dbeafe,#bfdbfe);color:#1e40af;border:1.5px solid #93c5fd;box-shadow:0 2px 8px #3b82f626}.pill--legacy.info:hover{background:linear-gradient(135deg,#bfdbfe,#93c5fd);box-shadow:0 4px 12px #3b82f633;transform:translateY(-1px)}.pill--legacy.neutral{background:linear-gradient(135deg,#f3f4f6,#e5e7eb);color:#374151;border:1.5px solid #d1d5db;box-shadow:0 2px 8px #6b728026}.pill--legacy.neutral:hover{background:linear-gradient(135deg,#e5e7eb,#d1d5db);box-shadow:0 4px 12px #6b728033;transform:translateY(-1px)}.pill--legacy.primary{background:linear-gradient(135deg,#e2e8f0,#cbd5e1);color:#1b2535;border:1.5px solid #94a3b8;box-shadow:0 2px 8px #1b253526}.pill--legacy.primary:hover{background:linear-gradient(135deg,#cbd5e1,#94a3b8);box-shadow:0 4px 12px #1b253533;transform:translateY(-1px)}.pill--legacy.purple{background:linear-gradient(135deg,#ede9fe,#ddd6fe);color:#5b21b6;border:1.5px solid #c4b5fd;box-shadow:0 2px 8px #8b5cf626}.pill--legacy.purple:hover{background:linear-gradient(135deg,#ddd6fe,#c4b5fd);box-shadow:0 4px 12px #8b5cf633;transform:translateY(-1px)}.pill--legacy.teal{background:linear-gradient(135deg,#ccfbf1,#99f6e4);color:#115e59;border:1.5px solid #5eead4;box-shadow:0 2px 8px #14b8a626}.pill--legacy.teal:hover{background:linear-gradient(135deg,#99f6e4,#5eead4);box-shadow:0 4px 12px #14b8a633;transform:translateY(-1px)}\n"] }]
|
|
1859
1908
|
}], propDecorators: { text: [{
|
|
1860
1909
|
type: Input
|
|
1861
1910
|
}], type: [{
|
|
1862
1911
|
type: Input
|
|
1912
|
+
}], variant: [{
|
|
1913
|
+
type: Input
|
|
1914
|
+
}], showDot: [{
|
|
1915
|
+
type: Input
|
|
1916
|
+
}], value: [{
|
|
1917
|
+
type: Input
|
|
1918
|
+
}], options: [{
|
|
1919
|
+
type: Input
|
|
1920
|
+
}], disabled: [{
|
|
1921
|
+
type: Input
|
|
1922
|
+
}], optionSelected: [{
|
|
1923
|
+
type: Output
|
|
1863
1924
|
}] } });
|
|
1864
1925
|
|
|
1865
1926
|
var ModalInputType;
|
|
@@ -3776,7 +3837,7 @@ class CustomTableComponent {
|
|
|
3776
3837
|
TableDisplayColumnType = TableDisplayColumnType;
|
|
3777
3838
|
NumberOperator = NumberOperator;
|
|
3778
3839
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomTableComponent, deps: [{ token: TranslateWrapperService }], target: i0.ɵɵFactoryTarget.Component });
|
|
3779
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: CustomTableComponent, isStandalone: true, selector: "ud-table", inputs: { id: "id", title: "title", icon: "icon", actions: "actions", haveCheckbox: "haveCheckbox", displayedColumns: "displayedColumns", dataSource: "dataSource", paginationSizeOptions: "paginationSizeOptions", initialPageSize: "initialPageSize", specificSelectRow: "specificSelectRow", hasFilter: "hasFilter", expandableRows: "expandableRows", expandedItem: "expandedItem", isLoading: "isLoading", separateFilters: "separateFilters", showPaginator: "showPaginator", noTableDataMessage: "noTableDataMessage", actionsMenuEnabled: "actionsMenuEnabled", menuItems: "menuItems", totalElements: "totalElements", serverSideFiltering: "serverSideFiltering", disableHeader: "disableHeader", columnVisibilityEnabled: "columnVisibilityEnabled" }, outputs: { actionClicked: "actionClicked", clicked: "clicked", queryChange: "queryChange", cellEdited: "cellEdited", columnVisibilityChanged: "columnVisibilityChanged" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "paginatorRef", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }, { propertyName: "allFilterInput", first: true, predicate: ["allFilterInput"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-div\">\n <mat-card\n appearance=\"outlined\"\n class=\"px-0 table-card\"\n [ngClass]=\"[actions.length === 0 ? 'pt-2' : 'pb-0']\"\n style=\"border-color: var(--accent-darker-color)\">\n @if (!disableHeader) {\n <mat-card-header\n class=\"d-flex justify-content-between align-items-center table-header\"\n [ngClass]=\"[actions.length === 0 ? 'pb-3' : 'pb-0']\">\n <div class=\"d-flex align-items-center\">\n @if (icon) {\n <mat-icon\n fontSet=\"material-icons-outlined\"\n class=\"table-header-icon ml-3\">\n {{ icon }}\n </mat-icon>\n }\n <h6 class=\"ml-2 table-title\">\n {{ title | toObservable | async | capitalize }}\n </h6>\n </div>\n <div class=\"d-flex align-items-center action-buttons-group pr-2\">\n @for (action of actions; track action.id) {\n <ud-button\n [attr.data-action-id]=\"action.id\"\n [variant]=\"action.variant ?? 'stroked'\"\n [color]=\"action.color ?? 'primary'\"\n [icon]=\"action.icon\"\n [disabled]=\"resolveBooleanInput(action?.disabled, selection)\"\n [loading]=\"resolveBooleanInput(action?.loading, selection)\"\n size=\"sm\"\n (buttonClick)=\"onActionClicked(action)\">\n {{ action.label | toObservable | async | capitalize }}\n </ud-button>\n }\n @if (actionsMenuEnabled && menuItems.length > 0) {\n <ud-menu\n [items]=\"tableMenuItems()\"\n triggerVariant=\"stroked\"\n triggerColor=\"primary\"\n triggerIcon=\"keyboard_arrow_down\"\n [triggerLabel]=\"'names.action' | translate | pluralize | capitalize\"\n xPosition=\"after\"\n [stopPropagation]=\"false\"\n (itemSelected)=\"onTableMenuItemSelected($event)\" />\n } @else if (actionsMenuEnabled) {\n <ud-button\n variant=\"stroked\"\n color=\"primary\"\n size=\"sm\"\n icon=\"keyboard_arrow_down\"\n iconPosition=\"right\"\n [matMenuTriggerFor]=\"menu\">\n {{ 'names.action' | translate | pluralize | capitalize }}\n </ud-button>\n <mat-menu #menu=\"matMenu\" class=\"ud-actions-menu\">\n <ng-container\n *ngTemplateOutlet=\"\n actionsTemplate;\n context: {\n selection: selection,\n data: dataSource.data,\n selectedRows: selection.selected,\n }\n \"></ng-container>\n </mat-menu>\n }\n </div>\n </mat-card-header>\n }\n <mat-card-content>\n <!--\n Filters and the column picker on one line. Both answer the same\n question \u2014 what am I looking at \u2014 where the header above is for acting\n on the rows. The picker sat up there with Add and Delete and read as a\n third action rather than a view control.\n -->\n <div class=\"table-controls\">\n @if (!separateFilters) {\n <mat-form-field\n class=\"ml-4\"\n appearance=\"outline\"\n [ngStyle]=\"{ display: hasFilter ? '' : 'none' }\">\n <mat-icon class=\"filter p-0\" matSuffix>filter_alt</mat-icon>\n <mat-label>{{ 'table.filter' | translate | capitalize }}</mat-label>\n <input\n #allFilterInput\n matInput\n (keyup)=\"applyFilterToAllColumns($event)\"\n [placeholder]=\"'table.sortOnAnyField' | translate | capitalize\" />\n </mat-form-field>\n } @else {\n <div class=\"separate-filters\">\n <form [formGroup]=\"filterByColumnFormGroup\" class=\"filters\">\n @for (filter of selectedFilters; track filter) {\n <!--\n The active marker lives on the wrapper so every filter type\n carries it. The dropdown triggers styled themselves, but a text\n input or a single select looked identical whether or not it was\n narrowing the table \u2014 which is how you end up staring at an\n empty table wondering where the rows went.\n -->\n <div class=\"filter\" [class.filter--active]=\"hasFilterValue(filter.property)\">\n @if (filter.filterOptions) {\n @if (filter.allowMultiSelectOnFilter) {\n <ud-button\n variant=\"stroked\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"keyboard_arrow_down\"\n iconPosition=\"right\"\n [class.filter-button-trigger--active]=\"\n hasFilterValue(filter.property)\n \"\n [matMenuTriggerFor]=\"multiSelectMenu\">\n {{ filter.name | toObservable | async | capitalize }}\n @if (hasFilterValue(filter.property)) {\n <mat-icon\n class=\"filter-clear-icon\"\n (click)=\"\n clearFilter(filter.property); $event.stopPropagation()\n \">\n close\n </mat-icon>\n }\n </ud-button>\n <mat-menu #multiSelectMenu=\"matMenu\" class=\"custom-dropdown\">\n <div\n class=\"dropdown-content multi-select-content\"\n [formGroupName]=\"controlKey(filter.property)\"\n (click)=\"$event.stopPropagation()\">\n <span class=\"dropdown-label\">\n {{ 'table.matchMode' | translate | capitalize }}\n </span>\n <ud-button-toggle\n formControlName=\"mode\"\n size=\"sm\"\n [options]=\"matchModeOptions\" />\n <ud-multi-select\n controlName=\"values\"\n [options]=\"filter.filterOptions\"\n [placeholder]=\"\n filter.name | toObservable | async | capitalize\n \"\n [multiple]=\"true\"\n [clearable]=\"true\"\n size=\"small\" />\n </div>\n </mat-menu>\n } @else {\n <ud-multi-select\n [controlName]=\"controlKey(filter.property)\"\n [options]=\"filter.filterOptions\"\n [placeholder]=\"\n filter.name | toObservable | async | capitalize\n \"\n [multiple]=\"false\"\n [clearable]=\"true\"\n size=\"small\" />\n }\n } @else if (\n filter.type === TableDisplayColumnType.HYPERLINK ||\n filter.type === TableDisplayColumnType.TEXT ||\n filter.type === TableDisplayColumnType.PHONE ||\n filter.type === TableDisplayColumnType.CLICK ||\n filter.type === TableDisplayColumnType.ARRAY ||\n filter.type === TableDisplayColumnType.PILL\n ) {\n <ud-text-input\n [controlName]=\"controlKey(filter.property)\"\n [placeholder]=\"\n filter.name | toObservable | async | capitalize\n \"\n size=\"small\"\n [clearable]=\"true\" />\n } @else {\n <ud-button\n variant=\"stroked\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"keyboard_arrow_down\"\n iconPosition=\"right\"\n [class.filter-button-trigger--active]=\"\n hasFilterValue(filter.property)\n \"\n [matMenuTriggerFor]=\"dropdownMenu\">\n {{ filter.name | toObservable | async | capitalize }}\n @if (hasFilterValue(filter.property)) {\n <mat-icon\n class=\"filter-clear-icon\"\n (click)=\"\n clearFilter(filter.property); $event.stopPropagation()\n \">\n close\n </mat-icon>\n }\n </ud-button>\n <mat-menu #dropdownMenu=\"matMenu\" class=\"custom-dropdown\">\n <div\n class=\"dropdown-content\"\n (click)=\"$event.stopPropagation()\">\n @if (filter.type === TableDisplayColumnType.BOOLEAN) {\n <div class=\"boolean-content\">\n <span class=\"boolean-label\">\n {{\n filter.name | toObservable | async | capitalize\n }}\n </span>\n <ud-toggle\n [formControlName]=\"controlKey(filter.property)\"\n size=\"md\" />\n </div>\n } @else if (\n filter.type === TableDisplayColumnType.NUMBER ||\n filter.type === TableDisplayColumnType.MONEY\n ) {\n <div\n class=\"number-content\"\n [formGroupName]=\"controlKey(filter.property)\">\n <ud-multi-select\n controlName=\"operation\"\n [multiple]=\"false\"\n [label]=\"\n 'table.operationType' | translate | capitalize\n \"\n [options]=\"numberOperationOptions\" />\n @if (\n filterByColumnFormGroup.controls[controlKey(filter.property)]\n .value.operation &&\n filterByColumnFormGroup.controls[controlKey(filter.property)]\n .value.operation !== NumberOperator.BETWEEN\n ) {\n <ud-text-input\n controlName=\"value\"\n type=\"number\"\n [label]=\"\n 'operators.' +\n filterByColumnFormGroup.controls[\n controlKey(filter.property)\n ].value.operation\n | translate\n | capitalize\n \" />\n } @else if (\n filterByColumnFormGroup.controls[controlKey(filter.property)]\n .value.operation\n ) {\n <div class=\"number-range-row\">\n <ud-text-input\n controlName=\"min\"\n type=\"number\"\n [label]=\"\n 'operators.minimum' | translate | capitalize\n \" />\n <ud-text-input\n controlName=\"max\"\n type=\"number\"\n [min]=\"\n filterByColumnFormGroup.controls[\n controlKey(filter.property)\n ].value.min\n \"\n [label]=\"\n 'operators.maximum' | translate | capitalize\n \" />\n </div>\n }\n </div>\n } @else if (\n filter.type === TableDisplayColumnType.DATETIME ||\n filter.type === TableDisplayColumnType.DATE\n ) {\n <div\n [formGroupName]=\"controlKey(filter.property)\"\n class=\"date-content\">\n <ud-date-range-input\n startControlName=\"start\"\n endControlName=\"end\"\n [label]=\"'table.dateRange' | translate | capitalize\"\n [startPlaceholder]=\"\n 'table.startDate' | translate | capitalize\n \"\n [endPlaceholder]=\"\n 'table.endDate' | translate | capitalize\n \" />\n </div>\n }\n </div>\n </mat-menu>\n }\n </div>\n }\n\n <!--\n Inside the row so it reads as the end of the filter set rather\n than a separate control, and only once there is something to\n clear \u2014 a permanently present \"clear filters\" on an unfiltered\n table is a button that does nothing.\n -->\n @if (activeFilterCount > 0) {\n <button\n type=\"button\"\n class=\"filters-clear\"\n (click)=\"clearAllFilters()\">\n <!--\n Count as a separate numeral rather than interpolated into the\n sentence: \"Clear {{count}} filters\" reads wrong at one, and\n every consuming app would need a plural rule for a label this\n small. The mono numeral also lines up as the count changes.\n -->\n {{ 'table.clearFilters' | translate | capitalize }}\n <span class=\"filters-clear__count\">{{ activeFilterCount }}</span>\n </button>\n }\n </form>\n </div>\n }\n\n @if (columnVisibilityEnabled) {\n <ud-button\n class=\"column-picker\"\n [class.column-picker--active]=\"hiddenColumnCount > 0\"\n variant=\"stroked\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"view_week\"\n [udTooltip]=\"'table.chooseColumnsLede' | translate\"\n (buttonClick)=\"openColumnVisibility()\">\n {{ 'table.columns' | translate | capitalize }}\n </ud-button>\n }\n </div>\n @if (!isLoading) {\n <table\n mat-table\n matSort\n [matSortActive]=\"initSortedCol?.property!\"\n [matSortDirection]=\"initSortedCol?.initSort!\"\n [multiTemplateDataRows]=\"expandableRows\"\n [dataSource]=\"dataSource\">\n <!-- Checkbox Column -->\n @if (displayCheckbox) {\n <ng-container matColumnDef=\"select\">\n <th\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n class=\"checkbox-header\"\n mat-header-cell\n *matHeaderCellDef>\n <ud-checkbox\n (onChange)=\"toggleAllRows()\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n [ariaLabel]=\"checkboxLabel()\">\n </ud-checkbox>\n </th>\n <td\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n class=\"checkbox-cell\"\n mat-cell\n *matCellDef=\"let row\">\n <ud-checkbox\n (click)=\"$event.stopPropagation()\"\n (onChange)=\"selection.toggle(row)\"\n [checked]=\"selection.isSelected(row)\"\n [ariaLabel]=\"checkboxLabel(row)\"\n class=\"mt-2 mr-2\">\n </ud-checkbox>\n </td>\n </ng-container>\n }\n @for (column of displayedColumnsWithoutSelect; track column) {\n <ng-container matColumnDef=\"{{ column.property }}\">\n <th\n [ngStyle]=\"{ width: getColumnWidth(column) }\"\n mat-header-cell\n *matHeaderCellDef>\n {{ column.name | toObservable | async | capitalize }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let row; let index = index\"\n [ngStyle]=\"{ width: getColumnWidth(column) }\"\n [class.editable-cell]=\"column.editable\"\n (mouseenter)=\"\n column.editable &&\n (hoveredCell = {\n rowIndex: index,\n property: column.property,\n })\n \"\n (mouseleave)=\"hoveredCell = null\"\n (click)=\"column.dataCellTemplate && $event.stopPropagation()\">\n @if (\n column.editable &&\n editingCell?.rowIndex === index &&\n editingCell?.property === column.property\n ) {\n <div\n class=\"cell-edit-wrapper\"\n [formGroup]=\"editFormGroup\"\n (click)=\"$event.stopPropagation()\">\n @if (column.editOptions) {\n <ud-multi-select\n controlName=\"value\"\n [multiple]=\"column.allowMultiSelectOnEdit ?? false\"\n [options]=\"column.editOptions\"\n size=\"small\" />\n } @else {\n <ud-text-input\n controlName=\"value\"\n [type]=\"\n column.type === tableDisplayColumnType.NUMBER\n ? 'number'\n : 'text'\n \"\n size=\"small\" />\n }\n <div class=\"cell-edit-actions\">\n <ud-button\n variant=\"icon-only\"\n color=\"success\"\n icon=\"check\"\n size=\"sm\"\n (buttonClick)=\"\n confirmEdit(row, column); $event.stopPropagation()\n \" />\n <ud-button\n variant=\"icon-only\"\n color=\"danger\"\n icon=\"close\"\n size=\"sm\"\n (buttonClick)=\"cancelEdit(); $event.stopPropagation()\" />\n </div>\n </div>\n } @else {\n <div class=\"cell-display-wrapper\">\n @if (column.dataCellTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n column.dataCellTemplate;\n context: { $implicit: row, index }\n \" />\n } @else if (column.type) {\n @switch (column.type) {\n @case (tableDisplayColumnType.ARRAY) {\n <span>\n {{\n column.transformFn?.(row[column.property]) ??\n row[column.property].join(', ')\n }}\n </span>\n }\n @case (tableDisplayColumnType.TEXT) {\n <span\n [innerHTML]=\"\n column.transformFn?.(row[column.property]) ??\n row[column.property]\n \">\n </span>\n }\n @case (tableDisplayColumnType.NUMBER) {\n <span\n [innerHTML]=\"\n column.transformFn?.(row[column.property]) ??\n row[column.property]\n \">\n </span>\n }\n @case (tableDisplayColumnType.TEXT_OBSERVABLES) {\n <span>\n {{ row[column.property] | async | capitalize }}\n </span>\n }\n @case (tableDisplayColumnType.BOOLEAN) {\n <mat-icon\n class=\"mt-2\"\n [udTooltip]=\"\n (row[column.property]\n ? 'names.active'\n : 'names.inactive'\n )\n | translate\n | capitalize\n \"\n udTooltipPosition=\"right\">\n {{ row[column.property] ? 'check' : 'close' }}\n </mat-icon>\n }\n @case (tableDisplayColumnType.CLICK) {\n <span (click)=\"clickedAction(row)\" class=\"link\">\n {{ row[column.property] }}\n </span>\n }\n @case (tableDisplayColumnType.DATE) {\n {{ row[column.property] | date: 'MMMM dd, yyyy' }}\n }\n @case (tableDisplayColumnType.DATETIME) {\n {{\n row[column.property]\n | date: 'MMMM dd, yyyy h:mm a'\n }}\n }\n @case (tableDisplayColumnType.HYPERLINK) {\n <span\n class=\"link\"\n [routerLink]=\"getHyperlinkRoute(row, column)\"\n (click)=\"$event.stopPropagation()\">\n {{ row[column.property] }}\n </span>\n }\n @case (tableDisplayColumnType.ICON) {\n <mat-icon\n [ngStyle]=\"{\n color:\n column.icons![row[column.property]].color,\n }\">\n {{ column.icons![row[column.property]].name }}\n </mat-icon>\n }\n @case (tableDisplayColumnType.MONEY) {\n {{ formatMoneyCell(row, column) }}\n }\n @case (tableDisplayColumnType.PHONE) {\n @if (row[column.property].countryCode?.code) {\n <span>\n (+{{\n row[column.property].countryCode.code || ''\n }})\n </span>\n }\n {{\n formatPhoneNumber(\n row[column.property].phoneNumber\n )\n }}\n }\n @case (tableDisplayColumnType.PILL) {\n <ud-pill\n [text]=\"\n column.transformFn?.(row[column.property]) ??\n row[column.property]\n \"\n [type]=\"column.pillTypeFn!(row)\" />\n }\n }\n } @else {\n {{ row[column.property] }}\n }\n @if (column.editable) {\n <button\n mat-icon-button\n class=\"cell-edit-icon\"\n [class.cell-edit-icon--visible]=\"\n hoveredCell?.rowIndex === index &&\n hoveredCell?.property === column.property\n \"\n (click)=\"\n startEditing(row, index, column);\n $event.stopPropagation()\n \">\n <mat-icon>edit</mat-icon>\n </button>\n }\n </div>\n }\n </td>\n </ng-container>\n }\n <ng-container matColumnDef=\"expand\">\n <th\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n mat-header-cell\n *matHeaderCellDef\n aria-label=\"row actions\">\n \n </th>\n <td\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n mat-cell\n *matCellDef=\"let element\">\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n ariaLabel=\"expand row\"\n [icon]=\"\n expandedElement !== element\n ? 'keyboard_arrow_down'\n : 'keyboard_arrow_up'\n \"\n (buttonClick)=\"\n expandedElement =\n expandedElement === element ? null : element;\n $event.stopPropagation()\n \" />\n </td>\n </ng-container>\n\n <!-- Expanded Content Column - The detail row is made up of this one column that spans across all columns -->\n <ng-container matColumnDef=\"expandedDetail\">\n <td\n mat-cell\n class=\"ml-auto\"\n *matCellDef=\"let element\"\n [attr.colspan]=\"columnsToDisplayWithExpand.length\">\n <div\n class=\"element-detail justify-content-center\"\n [@detailExpand]=\"\n element === expandedElement ? 'expanded' : 'collapsed'\n \">\n @if (expandedItem.type === 'image') {\n <img\n class=\"pb-4\"\n [src]=\"element[expandedItem.property]\"\n alt=\"\" />\n }\n </div>\n </td>\n </ng-container>\n\n @if (!expandableRows) {\n <ng-container>\n <tr\n mat-header-row\n *matHeaderRowDef=\"displayedColumnsProperty\"></tr>\n <tr\n mat-row\n *matRowDef=\"\n let row;\n columns: displayedColumnsProperty;\n let i = index\n \"\n (click)=\"selectRow(row)\"\n [ngClass]=\"getRowBackgroundColor(i)\"></tr>\n </ng-container>\n } @else {\n <ng-container>\n <tr\n mat-header-row\n *matHeaderRowDef=\"columnsToDisplayWithExpand\"></tr>\n <tr\n mat-row\n *matRowDef=\"\n let row;\n columns: columnsToDisplayWithExpand;\n let i = dataIndex\n \"\n [id]=\"i\"\n class=\"element-row\"\n [class.expanded-row]=\"expandedElement === row\"\n [ngClass]=\"getRowBackgroundColor(i)\"></tr>\n <tr\n mat-row\n *matRowDef=\"\n let row;\n columns: ['expandedDetail'];\n let i = dataIndex\n \"\n [id]=\"i\"\n [ngClass]=\"getRowBackgroundColor(i)\"\n [ngStyle]=\"{\n display: expandedElement === row ? 'contents' : 'none',\n }\"\n class=\"detail-row\"></tr>\n </ng-container>\n }\n\n <!-- Row shown when there is no matching data. -->\n <tr class=\"mat-row no-data-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumnsProperty.length\">\n <div class=\"no-data-found\">\n <mat-icon class=\"no-data-icon\">\n {{ dataSource.data.length > 0 ? 'search_off' : 'inbox' }}\n </mat-icon>\n <p class=\"no-data-text\">\n {{\n dataSource.data.length > 0\n ? ('messages.modifyFilter' | translate | capitalize)\n : noTableDataMessage\n }}\n </p>\n </div>\n </td>\n </tr>\n </table>\n } @else {\n <div class=\"loading-container\">\n <mat-progress-spinner\n class=\"mx-auto\"\n [diameter]=\"32\"\n color=\"primary\"\n mode=\"indeterminate\" />\n </div>\n }\n @if (showPaginator) {\n <div class=\"table-paginator\">\n <div class=\"table-paginator__size\">\n <span class=\"table-paginator__size-label\">\n {{ 'table.rowsPerPage' | translate | capitalize }}\n </span>\n <ud-menu\n [items]=\"pageSizeMenuItems\"\n triggerVariant=\"stroked\"\n triggerIcon=\"keyboard_arrow_down\"\n [triggerLabel]=\"pageSizeLabel\"\n [ariaLabel]=\"'table.rowsPerPage' | translate | capitalize\"\n xPosition=\"after\"\n yPosition=\"above\"\n [stopPropagation]=\"false\"\n (itemSelected)=\"onPageSizeSelected($event)\" />\n </div>\n <!-- Drives paging and dataSource.paginator; hidden, the controls below render it. -->\n <mat-paginator\n #pager\n [length]=\"totalElements ?? dataSource.data.length\"\n [pageSize]=\"initialPageSize\"\n [pageSizeOptions]=\"paginationSizeOptions\"\n (page)=\"onPageChange($event)\" />\n <span class=\"table-paginator__range\">\n {{ pager._intl.getRangeLabel(pager.pageIndex, pager.pageSize, pager.length) }}\n </span>\n <div class=\"table-paginator__nav\">\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"first_page\"\n [ariaLabel]=\"pager._intl.firstPageLabel\"\n [disabled]=\"!pager.hasPreviousPage()\"\n (buttonClick)=\"pager.firstPage()\" />\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"chevron_left\"\n [ariaLabel]=\"pager._intl.previousPageLabel\"\n [disabled]=\"!pager.hasPreviousPage()\"\n (buttonClick)=\"pager.previousPage()\" />\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"chevron_right\"\n [ariaLabel]=\"pager._intl.nextPageLabel\"\n [disabled]=\"!pager.hasNextPage()\"\n (buttonClick)=\"pager.nextPage()\" />\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"last_page\"\n [ariaLabel]=\"pager._intl.lastPageLabel\"\n [disabled]=\"!pager.hasNextPage()\"\n (buttonClick)=\"pager.lastPage()\" />\n </div>\n </div>\n }\n </mat-card-content>\n </mat-card>\n</div>\n", styles: [":host{--eu-navy: #1b2535;--eu-navy-soft: #253347;--eu-navy-dim: rgba(27, 37, 53, .08);--eu-navy-mid: rgba(27, 37, 53, .18);--eu-surface: #ffffff;--eu-bg: #f4f5f7;--eu-border: #e2e5ea;--eu-border-mid: #c9cdd6;--eu-text: #1b2535;--eu-muted: #6b7585;--eu-danger: var(--danger, #e53935);--eu-radius: 10px;--eu-radius-sm: 6px;--eu-shadow: 0 2px 12px rgba(27, 37, 53, .06), 0 1px 4px rgba(27, 37, 53, .04);--eu-shadow-btn: 0 4px 14px rgba(27, 37, 53, .22);font-family:DM Sans,system-ui,sans-serif;position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px #fafafa inset!important;background-color:#fafafa!important}p{font:20px Roboto,Helvetica Neue,sans-serif}.bg-accent{background-color:var(--accent-color)}.table-div .separate-filters{display:flex;flex-direction:column}.table-div .separate-filters .filter-dropdown{width:fit-content}.table-div .separate-filters .filters{display:flex;flex-direction:row;gap:8px;margin:0 24px 1rem}.table-div .separate-filters .filters .filter mat-icon{margin-right:0!important}.table-div mat-card.table-card{border-radius:10px!important;overflow:hidden;box-shadow:0 2px 12px #373f4c1a!important;background:#fff!important}.table-div mat-card.table-card mat-card-header.table-header{padding:14px 16px 14px 12px;background:var(--accent-lightest-color);border-bottom:1px solid var(--accent-color);min-height:65px}.table-div mat-card.table-card mat-card-header.table-header ::ng-deep .mat-mdc-card-header-text{display:none}.table-div mat-card.table-card mat-card-header.table-header .table-header-icon{color:var(--primary-color);font-size:20px;width:20px;height:20px}.table-div mat-card.table-card mat-card-header.table-header .table-title{margin-bottom:0;font-size:.9375rem;font-weight:600;letter-spacing:.01em;color:#373f4c}.table-div mat-card.table-card mat-card-content{padding:0}.table-div mat-card.table-card mat-card-content .no-data-found{display:flex;flex-direction:column;justify-content:center;align-items:center;height:140px;gap:8px;background:#fff}.table-div mat-card.table-card mat-card-content .no-data-found .no-data-icon{font-size:40px;width:40px;height:40px;color:var(--accent-darker-color);opacity:.7}.table-div mat-card.table-card mat-card-content .no-data-found .no-data-text{font-size:.875rem;color:#373f4c;margin:0}.table-div mat-card.table-card mat-card-content .loading-container{display:flex;justify-content:center;align-items:center;padding:32px;background:#fff}.table-div mat-card.table-card mat-card-content .table-paginator{display:flex;align-items:center;justify-content:flex-end;gap:16px;border-radius:0 0 10px 10px;background-color:#dde3ec;border-top:1px solid #c8c8d4}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__size{display:flex;align-items:center;gap:8px}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__size-label{font-family:DM Sans,system-ui,sans-serif;font-size:.8125rem;color:#6b7585;white-space:nowrap}.table-div mat-card.table-card mat-card-content .table-paginator mat-paginator{display:none}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__range{font-family:DM Sans,system-ui,sans-serif;font-size:.8125rem;font-variant-numeric:tabular-nums;color:#6b7585;white-space:nowrap}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__nav{display:flex;align-items:center;gap:2px;padding:8px 12px 8px 0}.table-div .action-buttons-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-div tr td,.table-div tr th{border-bottom:1px solid var(--accent-color);color:#373f4c;padding:10px 8px}.table-div tr th{background-color:#dde3ec;font-weight:600;font-size:.9rem;letter-spacing:.05em}.table-div tr th:first-of-type,.table-div tr td:first-of-type{padding-left:20px}.table-div tr th:last-of-type,.table-div tr td:last-of-type{padding-right:20px}table{width:100%}.mat-mdc-form-field{font-size:14px}.mat-mdc-form-field ::ng-deep .mat-mdc-text-field-wrapper{max-height:45px;padding-left:4px}.mat-mdc-form-field ::ng-deep .mat-mdc-text-field-wrapper [class^=mdc-notched-outline__]{border:none;border-bottom:1px solid #929293;border-radius:0}.mat-mdc-form-field ::ng-deep .mat-mdc-text-field-wrapper [class^=mdc-notched-outline__]:first-of-type{display:none}.mat-mdc-icon-button.mat-mdc-button-base{padding:10px}.spacer{flex:1 1 auto}.link{color:#459fff;font-weight:600;cursor:pointer}.filter{font-size:100%;border-top:.84375em solid rgba(0,0,0,0)}tr.detail-row{height:0}tr.no-data-row td{border-bottom:none;padding:0}.element-row td{border-bottom-width:0}.element-detail{overflow:hidden;display:flex}.element-detail>img{max-height:100%}.element-symbol{font-weight:700;font-size:40px;line-height:normal}.element-description{padding:16px}.element-description-attribution{opacity:.5}.pills{display:flex;flex-direction:column;gap:16px;margin:8px 2px}::ng-deep .ud-actions-menu{border-radius:10px!important;box-shadow:0 4px 20px #1b25351a,0 1px 4px #1b25350f!important;border:1px solid rgba(27,37,53,.08);overflow:hidden;min-width:200px!important}::ng-deep .ud-actions-menu .mat-mdc-menu-content{padding:4px!important}::ng-deep .ud-actions-menu .ud-menu-divider{height:1px;margin:4px 8px;background:#1b253514}::ng-deep .ud-actions-menu .ud-menu-item{display:flex;align-items:center;gap:0;height:auto;min-height:40px;padding:0 12px 0 0!important;border-radius:7px;margin:1px 0;position:relative;overflow:hidden;transition:background .15s ease}::ng-deep .ud-actions-menu .ud-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center}::ng-deep .ud-actions-menu .ud-menu-item:before{content:\"\";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 2px 2px 0;background:#1b2535;transform:scaleY(0);transform-origin:center;transition:transform .18s cubic-bezier(.4,0,.2,1)}::ng-deep .ud-actions-menu .ud-menu-item:hover:not([disabled]):before{transform:scaleY(1)}::ng-deep .ud-actions-menu .ud-menu-item:hover:not([disabled]){background:#1b25350d!important}::ng-deep .ud-actions-menu .ud-menu-item[disabled]{opacity:1}::ng-deep .ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__icon-wrap,::ng-deep .ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__label{opacity:.38}::ng-deep .ud-actions-menu .ud-menu-item--no-icon{padding-left:12px!important}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:40px;flex-shrink:0;align-self:stretch;max-height:40px}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap mat-icon{font-size:17px;width:17px;height:17px;margin:0;color:#6b7585;transition:color .15s ease}::ng-deep .ud-actions-menu .ud-menu-item:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#1b2535}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__text{display:flex;flex-direction:column;padding:8px 0;min-width:0}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__label{font-family:DM Sans,system-ui,sans-serif;font-size:.875rem;font-weight:500;line-height:1.25rem;color:#1b2535;letter-spacing:.01em;white-space:nowrap}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__description{font-family:DM Sans,system-ui,sans-serif;font-size:.75rem;line-height:1rem;color:#6b7585;white-space:normal}::ng-deep .ud-actions-menu .ud-menu-item--danger .ud-menu-item__label,::ng-deep .ud-actions-menu .ud-menu-item--danger .ud-menu-item__icon-wrap mat-icon,::ng-deep .ud-actions-menu .ud-menu-item--danger:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#e53935}::ng-deep .ud-actions-menu .ud-menu-item--danger:before{background:#e53935}::ng-deep .ud-actions-menu .ud-menu-item .mdc-list-item__primary-text{display:none!important}.filter--active{position:relative}.filter--active:after{content:\"\";position:absolute;left:0;right:0;bottom:-5px;height:2px;border-radius:2px;background:#459fff;pointer-events:none}.table-controls{display:flex;align-items:flex-start;gap:12px}.table-controls .separate-filters{flex:1 1 auto;min-width:0}.column-picker{flex:0 0 auto;margin:.84375em 24px 0 auto}.column-picker--active ::ng-deep .ud-btn.ud-btn--stroked{background:#459fff17!important;border-color:#459fff8c!important;color:#1b2535!important;font-weight:600!important}.column-picker--active ::ng-deep .ud-btn.ud-btn--stroked:hover:not(:disabled){background:#459fff24!important;border-color:#459fffbf!important;color:#1b2535!important}.filters-clear{align-self:flex-start;margin-top:.84375em;padding:0 2px;border:0;background:none;color:#6b7585;font-family:var(--ud-field-font);font-size:.8125rem;font-weight:500;line-height:34px;cursor:pointer;white-space:nowrap;transition:color .15s ease}.filters-clear:hover,.filters-clear:focus-visible{color:#459fff}.filters-clear__count{margin-left:5px;font-family:JetBrains Mono,ui-monospace,monospace;font-weight:600;color:#1b2535}.filters-clear:focus-visible{outline:2px solid #459fff;outline-offset:3px;border-radius:3px}@media (prefers-reduced-motion: reduce){.filters-clear{transition:none}}.filter-button-trigger--active{background-color:#459fff17!important;border-color:#459fff8c!important;color:#1b2535!important;font-weight:600!important}.filter-button-trigger--active ::ng-deep .ud-btn__label{display:contents}.filter-button-trigger--active ::ng-deep .ud-btn__icon--right{order:1}.filter-button-trigger--active .filter-clear-icon{order:2;font-size:15px!important;width:15px!important;height:15px!important;line-height:15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;border-radius:50%;transition:background .15s ease}.filter-button-trigger--active .filter-clear-icon:hover{background:#1b25351f}td.editable-cell .cell-display-wrapper{display:flex;align-items:center;gap:6px;min-height:32px}td.editable-cell .cell-display-wrapper .cell-edit-icon{opacity:0;transform:scale(.72) translateY(1px);transition:opacity .16s ease,transform .18s cubic-bezier(.34,1.4,.64,1);flex-shrink:0;width:30px!important;height:30px!important;line-height:30px!important;padding:4px!important;border-radius:6px!important;background:transparent;border:1px solid transparent;display:flex!important;align-items:center!important;justify-content:center!important}td.editable-cell .cell-display-wrapper .cell-edit-icon:hover{background:rgba(var(--primary-color-rgb, 63, 81, 181),.08)!important;border-color:rgba(var(--primary-color-rgb, 63, 81, 181),.22)!important}td.editable-cell .cell-display-wrapper .cell-edit-icon ::ng-deep .mat-mdc-button-persistent-ripple,td.editable-cell .cell-display-wrapper .cell-edit-icon ::ng-deep .mat-ripple{border-radius:6px}td.editable-cell .cell-display-wrapper .cell-edit-icon ::ng-deep .mat-mdc-button-touch-target{width:30px!important;height:30px!important}td.editable-cell .cell-display-wrapper .cell-edit-icon mat-icon{font-size:14px!important;width:14px!important;height:14px!important;color:var(--primary-color);line-height:14px;display:flex!important;align-items:center;justify-content:center}td.editable-cell .cell-display-wrapper .cell-edit-icon.cell-edit-icon--visible{opacity:1;transform:scale(1) translateY(0)}td.editable-cell .cell-edit-wrapper{display:flex;align-items:center;gap:4px;animation:cell-edit-enter .18s cubic-bezier(.22,1,.36,1) both}td.editable-cell .cell-edit-wrapper ud-multi-select,td.editable-cell .cell-edit-wrapper ud-text-input{flex:1;min-width:0}td.editable-cell .cell-edit-wrapper .cell-edit-actions{display:flex;flex-direction:row;gap:3px;flex-shrink:0}@keyframes cell-edit-enter{0%{opacity:0;transform:translateY(-3px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}::ng-deep .custom-dropdown{min-width:280px!important;max-width:650px!important;width:auto!important;max-height:none!important;overflow:visible!important;border-radius:10px!important;box-shadow:0 4px 20px #1b25351a,0 1px 4px #1b25350f!important}::ng-deep .custom-dropdown .mat-mdc-menu-content{padding:14px;width:100%;box-sizing:border-box}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content{box-sizing:border-box}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .boolean-content{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:200px;padding:4px 0}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .boolean-content .boolean-label{font-family:DM Sans,system-ui,sans-serif;font-size:.875rem;font-weight:500;color:#1b2535}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .date-content{width:320px}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .date-content ud-date-range-input{display:block;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .string-content{display:flex;gap:1rem}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content mat-form-field{width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content mat-form-field .mat-mdc-form-field{font-size:14px}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content mat-form-field input{width:100%;box-sizing:border-box}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content{display:flex;flex-direction:column;gap:12px;width:280px}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content .dropdown-label{font-family:inherit;font-size:.8125rem;font-weight:500;color:#1b2535}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content ud-button-toggle{display:block;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content ud-multi-select{display:block;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .number-content{display:flex;flex-direction:column;gap:8px;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .number-content ud-multi-select{width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .number-content .number-range-row{display:flex;gap:8px;width:100%}\n"], dependencies: [{ kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "pipe", type: ToObservablePipe, name: "toObservable" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "directive", type: UdTooltipDirective, selector: "[udTooltip]", inputs: ["udTooltip", "udTooltipPosition", "udTooltipDisabled", "udTooltipShowDelay"] }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "component", type: CheckboxComponent, selector: "ud-checkbox", inputs: ["controlName", "size", "label", "labelPosition", "ariaLabel", "indeterminate", "checked", "disabled"], outputs: ["onChange"] }, { kind: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: UdMenuComponent, selector: "ud-menu", inputs: ["items", "triggerVariant", "triggerIcon", "triggerLabel", "triggerColor", "triggerSize", "ariaLabel", "disabled", "loading", "xPosition", "yPosition", "stopPropagation", "panelClass"], outputs: ["itemSelected", "opened", "closed"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "pipe", type: PluralizePipe, name: "pluralize" }, { kind: "component", type: ToggleComponent, selector: "ud-toggle", inputs: ["controlName", "size", "label", "labelPosition", "ariaLabel"], outputs: ["onChange"] }, { kind: "component", type: DateRangeInputComponent, selector: "ud-date-range-input", inputs: ["startControlName", "endControlName", "label", "icon", "iconFontSet", "startPlaceholder", "endPlaceholder", "min", "max", "disabled", "hint", "startAt", "startView"] }, { kind: "component", type: TextInputComponent, selector: "ud-text-input", inputs: ["controlName", "label", "placeholder", "type", "icon", "iconFontSet", "loading", "step", "min", "max", "disabled", "hint", "size", "clearable"] }, { kind: "component", type: MultiSelectComponent, selector: "ud-multi-select", inputs: ["controlName", "label", "placeholder", "icon", "iconFontSet", "options", "multiple", "maxChipsVisible", "moreText", "size", "loading", "disabled", "clearable", "hint"] }, { kind: "component", type: UdButtonComponent, selector: "ud-button", inputs: ["variant", "color", "size", "type", "icon", "iconPosition", "iconFontSet", "loading", "disabled", "ariaLabel", "fullWidth"], outputs: ["buttonClick"] }, { kind: "component", type: PillComponent, selector: "ud-pill", inputs: ["text", "type"] }, { kind: "component", type: UdButtonToggleComponent, selector: "ud-button-toggle", inputs: ["options", "size", "disabled"] }], animations: [
|
|
3840
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: CustomTableComponent, isStandalone: true, selector: "ud-table", inputs: { id: "id", title: "title", icon: "icon", actions: "actions", haveCheckbox: "haveCheckbox", displayedColumns: "displayedColumns", dataSource: "dataSource", paginationSizeOptions: "paginationSizeOptions", initialPageSize: "initialPageSize", specificSelectRow: "specificSelectRow", hasFilter: "hasFilter", expandableRows: "expandableRows", expandedItem: "expandedItem", isLoading: "isLoading", separateFilters: "separateFilters", showPaginator: "showPaginator", noTableDataMessage: "noTableDataMessage", actionsMenuEnabled: "actionsMenuEnabled", menuItems: "menuItems", totalElements: "totalElements", serverSideFiltering: "serverSideFiltering", disableHeader: "disableHeader", columnVisibilityEnabled: "columnVisibilityEnabled" }, outputs: { actionClicked: "actionClicked", clicked: "clicked", queryChange: "queryChange", cellEdited: "cellEdited", columnVisibilityChanged: "columnVisibilityChanged" }, queries: [{ propertyName: "actionsTemplate", first: true, predicate: TemplateRef, descendants: true }], viewQueries: [{ propertyName: "paginatorRef", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }, { propertyName: "allFilterInput", first: true, predicate: ["allFilterInput"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"table-div\">\n <mat-card\n appearance=\"outlined\"\n class=\"px-0 table-card\"\n [ngClass]=\"[actions.length === 0 ? 'pt-2' : 'pb-0']\"\n style=\"border-color: var(--accent-darker-color)\">\n @if (!disableHeader) {\n <mat-card-header\n class=\"d-flex justify-content-between align-items-center table-header\"\n [ngClass]=\"[actions.length === 0 ? 'pb-3' : 'pb-0']\">\n <div class=\"d-flex align-items-center\">\n @if (icon) {\n <mat-icon\n fontSet=\"material-icons-outlined\"\n class=\"table-header-icon ml-3\">\n {{ icon }}\n </mat-icon>\n }\n <h6 class=\"ml-2 table-title\">\n {{ title | toObservable | async | capitalize }}\n </h6>\n </div>\n <div class=\"d-flex align-items-center action-buttons-group pr-2\">\n @for (action of actions; track action.id) {\n <ud-button\n [attr.data-action-id]=\"action.id\"\n [variant]=\"action.variant ?? 'stroked'\"\n [color]=\"action.color ?? 'primary'\"\n [icon]=\"action.icon\"\n [disabled]=\"resolveBooleanInput(action?.disabled, selection)\"\n [loading]=\"resolveBooleanInput(action?.loading, selection)\"\n size=\"sm\"\n (buttonClick)=\"onActionClicked(action)\">\n {{ action.label | toObservable | async | capitalize }}\n </ud-button>\n }\n @if (actionsMenuEnabled && menuItems.length > 0) {\n <ud-menu\n [items]=\"tableMenuItems()\"\n triggerVariant=\"stroked\"\n triggerColor=\"primary\"\n triggerIcon=\"keyboard_arrow_down\"\n [triggerLabel]=\"'names.action' | translate | pluralize | capitalize\"\n xPosition=\"after\"\n [stopPropagation]=\"false\"\n (itemSelected)=\"onTableMenuItemSelected($event)\" />\n } @else if (actionsMenuEnabled) {\n <ud-button\n variant=\"stroked\"\n color=\"primary\"\n size=\"sm\"\n icon=\"keyboard_arrow_down\"\n iconPosition=\"right\"\n [matMenuTriggerFor]=\"menu\">\n {{ 'names.action' | translate | pluralize | capitalize }}\n </ud-button>\n <mat-menu #menu=\"matMenu\" class=\"ud-actions-menu\">\n <ng-container\n *ngTemplateOutlet=\"\n actionsTemplate;\n context: {\n selection: selection,\n data: dataSource.data,\n selectedRows: selection.selected,\n }\n \"></ng-container>\n </mat-menu>\n }\n </div>\n </mat-card-header>\n }\n <mat-card-content>\n <!--\n Filters and the column picker on one line. Both answer the same\n question \u2014 what am I looking at \u2014 where the header above is for acting\n on the rows. The picker sat up there with Add and Delete and read as a\n third action rather than a view control.\n -->\n <div class=\"table-controls\">\n @if (!separateFilters) {\n <mat-form-field\n class=\"ml-4\"\n appearance=\"outline\"\n [ngStyle]=\"{ display: hasFilter ? '' : 'none' }\">\n <mat-icon class=\"filter p-0\" matSuffix>filter_alt</mat-icon>\n <mat-label>{{ 'table.filter' | translate | capitalize }}</mat-label>\n <input\n #allFilterInput\n matInput\n (keyup)=\"applyFilterToAllColumns($event)\"\n [placeholder]=\"'table.sortOnAnyField' | translate | capitalize\" />\n </mat-form-field>\n } @else {\n <div class=\"separate-filters\">\n <form [formGroup]=\"filterByColumnFormGroup\" class=\"filters\">\n @for (filter of selectedFilters; track filter) {\n <!--\n The active marker lives on the wrapper so every filter type\n carries it. The dropdown triggers styled themselves, but a text\n input or a single select looked identical whether or not it was\n narrowing the table \u2014 which is how you end up staring at an\n empty table wondering where the rows went.\n -->\n <div class=\"filter\" [class.filter--active]=\"hasFilterValue(filter.property)\">\n @if (filter.filterOptions) {\n @if (filter.allowMultiSelectOnFilter) {\n <ud-button\n variant=\"stroked\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"keyboard_arrow_down\"\n iconPosition=\"right\"\n [class.filter-button-trigger--active]=\"\n hasFilterValue(filter.property)\n \"\n [matMenuTriggerFor]=\"multiSelectMenu\">\n {{ filter.name | toObservable | async | capitalize }}\n @if (hasFilterValue(filter.property)) {\n <mat-icon\n class=\"filter-clear-icon\"\n (click)=\"\n clearFilter(filter.property); $event.stopPropagation()\n \">\n close\n </mat-icon>\n }\n </ud-button>\n <mat-menu #multiSelectMenu=\"matMenu\" class=\"custom-dropdown\">\n <div\n class=\"dropdown-content multi-select-content\"\n [formGroupName]=\"controlKey(filter.property)\"\n (click)=\"$event.stopPropagation()\">\n <span class=\"dropdown-label\">\n {{ 'table.matchMode' | translate | capitalize }}\n </span>\n <ud-button-toggle\n formControlName=\"mode\"\n size=\"sm\"\n [options]=\"matchModeOptions\" />\n <ud-multi-select\n controlName=\"values\"\n [options]=\"filter.filterOptions\"\n [placeholder]=\"\n filter.name | toObservable | async | capitalize\n \"\n [multiple]=\"true\"\n [clearable]=\"true\"\n size=\"small\" />\n </div>\n </mat-menu>\n } @else {\n <ud-multi-select\n [controlName]=\"controlKey(filter.property)\"\n [options]=\"filter.filterOptions\"\n [placeholder]=\"\n filter.name | toObservable | async | capitalize\n \"\n [multiple]=\"false\"\n [clearable]=\"true\"\n size=\"small\" />\n }\n } @else if (\n filter.type === TableDisplayColumnType.HYPERLINK ||\n filter.type === TableDisplayColumnType.TEXT ||\n filter.type === TableDisplayColumnType.PHONE ||\n filter.type === TableDisplayColumnType.CLICK ||\n filter.type === TableDisplayColumnType.ARRAY ||\n filter.type === TableDisplayColumnType.PILL\n ) {\n <ud-text-input\n [controlName]=\"controlKey(filter.property)\"\n [placeholder]=\"\n filter.name | toObservable | async | capitalize\n \"\n size=\"small\"\n [clearable]=\"true\" />\n } @else {\n <ud-button\n variant=\"stroked\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"keyboard_arrow_down\"\n iconPosition=\"right\"\n [class.filter-button-trigger--active]=\"\n hasFilterValue(filter.property)\n \"\n [matMenuTriggerFor]=\"dropdownMenu\">\n {{ filter.name | toObservable | async | capitalize }}\n @if (hasFilterValue(filter.property)) {\n <mat-icon\n class=\"filter-clear-icon\"\n (click)=\"\n clearFilter(filter.property); $event.stopPropagation()\n \">\n close\n </mat-icon>\n }\n </ud-button>\n <mat-menu #dropdownMenu=\"matMenu\" class=\"custom-dropdown\">\n <div\n class=\"dropdown-content\"\n (click)=\"$event.stopPropagation()\">\n @if (filter.type === TableDisplayColumnType.BOOLEAN) {\n <div class=\"boolean-content\">\n <span class=\"boolean-label\">\n {{\n filter.name | toObservable | async | capitalize\n }}\n </span>\n <ud-toggle\n [formControlName]=\"controlKey(filter.property)\"\n size=\"md\" />\n </div>\n } @else if (\n filter.type === TableDisplayColumnType.NUMBER ||\n filter.type === TableDisplayColumnType.MONEY\n ) {\n <div\n class=\"number-content\"\n [formGroupName]=\"controlKey(filter.property)\">\n <ud-multi-select\n controlName=\"operation\"\n [multiple]=\"false\"\n [label]=\"\n 'table.operationType' | translate | capitalize\n \"\n [options]=\"numberOperationOptions\" />\n @if (\n filterByColumnFormGroup.controls[controlKey(filter.property)]\n .value.operation &&\n filterByColumnFormGroup.controls[controlKey(filter.property)]\n .value.operation !== NumberOperator.BETWEEN\n ) {\n <ud-text-input\n controlName=\"value\"\n type=\"number\"\n [label]=\"\n 'operators.' +\n filterByColumnFormGroup.controls[\n controlKey(filter.property)\n ].value.operation\n | translate\n | capitalize\n \" />\n } @else if (\n filterByColumnFormGroup.controls[controlKey(filter.property)]\n .value.operation\n ) {\n <div class=\"number-range-row\">\n <ud-text-input\n controlName=\"min\"\n type=\"number\"\n [label]=\"\n 'operators.minimum' | translate | capitalize\n \" />\n <ud-text-input\n controlName=\"max\"\n type=\"number\"\n [min]=\"\n filterByColumnFormGroup.controls[\n controlKey(filter.property)\n ].value.min\n \"\n [label]=\"\n 'operators.maximum' | translate | capitalize\n \" />\n </div>\n }\n </div>\n } @else if (\n filter.type === TableDisplayColumnType.DATETIME ||\n filter.type === TableDisplayColumnType.DATE\n ) {\n <div\n [formGroupName]=\"controlKey(filter.property)\"\n class=\"date-content\">\n <ud-date-range-input\n startControlName=\"start\"\n endControlName=\"end\"\n [label]=\"'table.dateRange' | translate | capitalize\"\n [startPlaceholder]=\"\n 'table.startDate' | translate | capitalize\n \"\n [endPlaceholder]=\"\n 'table.endDate' | translate | capitalize\n \" />\n </div>\n }\n </div>\n </mat-menu>\n }\n </div>\n }\n\n <!--\n Inside the row so it reads as the end of the filter set rather\n than a separate control, and only once there is something to\n clear \u2014 a permanently present \"clear filters\" on an unfiltered\n table is a button that does nothing.\n -->\n @if (activeFilterCount > 0) {\n <button\n type=\"button\"\n class=\"filters-clear\"\n (click)=\"clearAllFilters()\">\n <!--\n Count as a separate numeral rather than interpolated into the\n sentence: \"Clear {{count}} filters\" reads wrong at one, and\n every consuming app would need a plural rule for a label this\n small. The mono numeral also lines up as the count changes.\n -->\n {{ 'table.clearFilters' | translate | capitalize }}\n <span class=\"filters-clear__count\">{{ activeFilterCount }}</span>\n </button>\n }\n </form>\n </div>\n }\n\n @if (columnVisibilityEnabled) {\n <ud-button\n class=\"column-picker\"\n [class.column-picker--active]=\"hiddenColumnCount > 0\"\n variant=\"stroked\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"view_week\"\n [udTooltip]=\"'table.chooseColumnsLede' | translate\"\n (buttonClick)=\"openColumnVisibility()\">\n {{ 'table.columns' | translate | capitalize }}\n </ud-button>\n }\n </div>\n @if (!isLoading) {\n <table\n mat-table\n matSort\n [matSortActive]=\"initSortedCol?.property!\"\n [matSortDirection]=\"initSortedCol?.initSort!\"\n [multiTemplateDataRows]=\"expandableRows\"\n [dataSource]=\"dataSource\">\n <!-- Checkbox Column -->\n @if (displayCheckbox) {\n <ng-container matColumnDef=\"select\">\n <th\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n class=\"checkbox-header\"\n mat-header-cell\n *matHeaderCellDef>\n <ud-checkbox\n (onChange)=\"toggleAllRows()\"\n [checked]=\"selection.hasValue() && isAllSelected()\"\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\"\n [ariaLabel]=\"checkboxLabel()\">\n </ud-checkbox>\n </th>\n <td\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n class=\"checkbox-cell\"\n mat-cell\n *matCellDef=\"let row\">\n <ud-checkbox\n (click)=\"$event.stopPropagation()\"\n (onChange)=\"selection.toggle(row)\"\n [checked]=\"selection.isSelected(row)\"\n [ariaLabel]=\"checkboxLabel(row)\"\n class=\"mt-2 mr-2\">\n </ud-checkbox>\n </td>\n </ng-container>\n }\n @for (column of displayedColumnsWithoutSelect; track column) {\n <ng-container matColumnDef=\"{{ column.property }}\">\n <th\n [ngStyle]=\"{ width: getColumnWidth(column) }\"\n mat-header-cell\n *matHeaderCellDef>\n {{ column.name | toObservable | async | capitalize }}\n </th>\n <td\n mat-cell\n *matCellDef=\"let row; let index = index\"\n [ngStyle]=\"{ width: getColumnWidth(column) }\"\n [class.editable-cell]=\"column.editable\"\n (mouseenter)=\"\n column.editable &&\n (hoveredCell = {\n rowIndex: index,\n property: column.property,\n })\n \"\n (mouseleave)=\"hoveredCell = null\"\n (click)=\"column.dataCellTemplate && $event.stopPropagation()\">\n @if (\n column.editable &&\n editingCell?.rowIndex === index &&\n editingCell?.property === column.property\n ) {\n <div\n class=\"cell-edit-wrapper\"\n [formGroup]=\"editFormGroup\"\n (click)=\"$event.stopPropagation()\">\n @if (column.editOptions) {\n <ud-multi-select\n controlName=\"value\"\n [multiple]=\"column.allowMultiSelectOnEdit ?? false\"\n [options]=\"column.editOptions\"\n size=\"small\" />\n } @else {\n <ud-text-input\n controlName=\"value\"\n [type]=\"\n column.type === tableDisplayColumnType.NUMBER\n ? 'number'\n : 'text'\n \"\n size=\"small\" />\n }\n <div class=\"cell-edit-actions\">\n <ud-button\n variant=\"icon-only\"\n color=\"success\"\n icon=\"check\"\n size=\"sm\"\n (buttonClick)=\"\n confirmEdit(row, column); $event.stopPropagation()\n \" />\n <ud-button\n variant=\"icon-only\"\n color=\"danger\"\n icon=\"close\"\n size=\"sm\"\n (buttonClick)=\"cancelEdit(); $event.stopPropagation()\" />\n </div>\n </div>\n } @else {\n <div class=\"cell-display-wrapper\">\n @if (column.dataCellTemplate) {\n <ng-container\n *ngTemplateOutlet=\"\n column.dataCellTemplate;\n context: { $implicit: row, index }\n \" />\n } @else if (column.type) {\n @switch (column.type) {\n @case (tableDisplayColumnType.ARRAY) {\n <span>\n {{\n column.transformFn?.(row[column.property]) ??\n row[column.property].join(', ')\n }}\n </span>\n }\n @case (tableDisplayColumnType.TEXT) {\n <span\n [innerHTML]=\"\n column.transformFn?.(row[column.property]) ??\n row[column.property]\n \">\n </span>\n }\n @case (tableDisplayColumnType.NUMBER) {\n <span\n [innerHTML]=\"\n column.transformFn?.(row[column.property]) ??\n row[column.property]\n \">\n </span>\n }\n @case (tableDisplayColumnType.TEXT_OBSERVABLES) {\n <span>\n {{ row[column.property] | async | capitalize }}\n </span>\n }\n @case (tableDisplayColumnType.BOOLEAN) {\n <mat-icon\n class=\"mt-2\"\n [udTooltip]=\"\n (row[column.property]\n ? 'names.active'\n : 'names.inactive'\n )\n | translate\n | capitalize\n \"\n udTooltipPosition=\"right\">\n {{ row[column.property] ? 'check' : 'close' }}\n </mat-icon>\n }\n @case (tableDisplayColumnType.CLICK) {\n <span (click)=\"clickedAction(row)\" class=\"link\">\n {{ row[column.property] }}\n </span>\n }\n @case (tableDisplayColumnType.DATE) {\n {{ row[column.property] | date: 'MMMM dd, yyyy' }}\n }\n @case (tableDisplayColumnType.DATETIME) {\n {{\n row[column.property]\n | date: 'MMMM dd, yyyy h:mm a'\n }}\n }\n @case (tableDisplayColumnType.HYPERLINK) {\n <span\n class=\"link\"\n [routerLink]=\"getHyperlinkRoute(row, column)\"\n (click)=\"$event.stopPropagation()\">\n {{ row[column.property] }}\n </span>\n }\n @case (tableDisplayColumnType.ICON) {\n <mat-icon\n [ngStyle]=\"{\n color:\n column.icons![row[column.property]].color,\n }\">\n {{ column.icons![row[column.property]].name }}\n </mat-icon>\n }\n @case (tableDisplayColumnType.MONEY) {\n {{ formatMoneyCell(row, column) }}\n }\n @case (tableDisplayColumnType.PHONE) {\n @if (row[column.property].countryCode?.code) {\n <span>\n (+{{\n row[column.property].countryCode.code || ''\n }})\n </span>\n }\n {{\n formatPhoneNumber(\n row[column.property].phoneNumber\n )\n }}\n }\n @case (tableDisplayColumnType.PILL) {\n <ud-pill\n [text]=\"\n column.transformFn?.(row[column.property]) ??\n row[column.property]\n \"\n [type]=\"column.pillTypeFn!(row)\" />\n }\n }\n } @else {\n {{ row[column.property] }}\n }\n @if (column.editable) {\n <button\n mat-icon-button\n class=\"cell-edit-icon\"\n [class.cell-edit-icon--visible]=\"\n hoveredCell?.rowIndex === index &&\n hoveredCell?.property === column.property\n \"\n (click)=\"\n startEditing(row, index, column);\n $event.stopPropagation()\n \">\n <mat-icon>edit</mat-icon>\n </button>\n }\n </div>\n }\n </td>\n </ng-container>\n }\n <ng-container matColumnDef=\"expand\">\n <th\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n mat-header-cell\n *matHeaderCellDef\n aria-label=\"row actions\">\n \n </th>\n <td\n [ngStyle]=\"{ width: actionColumnStyleWidth }\"\n mat-cell\n *matCellDef=\"let element\">\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n ariaLabel=\"expand row\"\n [icon]=\"\n expandedElement !== element\n ? 'keyboard_arrow_down'\n : 'keyboard_arrow_up'\n \"\n (buttonClick)=\"\n expandedElement =\n expandedElement === element ? null : element;\n $event.stopPropagation()\n \" />\n </td>\n </ng-container>\n\n <!-- Expanded Content Column - The detail row is made up of this one column that spans across all columns -->\n <ng-container matColumnDef=\"expandedDetail\">\n <td\n mat-cell\n class=\"ml-auto\"\n *matCellDef=\"let element\"\n [attr.colspan]=\"columnsToDisplayWithExpand.length\">\n <div\n class=\"element-detail justify-content-center\"\n [@detailExpand]=\"\n element === expandedElement ? 'expanded' : 'collapsed'\n \">\n @if (expandedItem.type === 'image') {\n <img\n class=\"pb-4\"\n [src]=\"element[expandedItem.property]\"\n alt=\"\" />\n }\n </div>\n </td>\n </ng-container>\n\n @if (!expandableRows) {\n <ng-container>\n <tr\n mat-header-row\n *matHeaderRowDef=\"displayedColumnsProperty\"></tr>\n <tr\n mat-row\n *matRowDef=\"\n let row;\n columns: displayedColumnsProperty;\n let i = index\n \"\n (click)=\"selectRow(row)\"\n [ngClass]=\"getRowBackgroundColor(i)\"></tr>\n </ng-container>\n } @else {\n <ng-container>\n <tr\n mat-header-row\n *matHeaderRowDef=\"columnsToDisplayWithExpand\"></tr>\n <tr\n mat-row\n *matRowDef=\"\n let row;\n columns: columnsToDisplayWithExpand;\n let i = dataIndex\n \"\n [id]=\"i\"\n class=\"element-row\"\n [class.expanded-row]=\"expandedElement === row\"\n [ngClass]=\"getRowBackgroundColor(i)\"></tr>\n <tr\n mat-row\n *matRowDef=\"\n let row;\n columns: ['expandedDetail'];\n let i = dataIndex\n \"\n [id]=\"i\"\n [ngClass]=\"getRowBackgroundColor(i)\"\n [ngStyle]=\"{\n display: expandedElement === row ? 'contents' : 'none',\n }\"\n class=\"detail-row\"></tr>\n </ng-container>\n }\n\n <!-- Row shown when there is no matching data. -->\n <tr class=\"mat-row no-data-row\" *matNoDataRow>\n <td class=\"mat-cell\" [attr.colspan]=\"displayedColumnsProperty.length\">\n <div class=\"no-data-found\">\n <mat-icon class=\"no-data-icon\">\n {{ dataSource.data.length > 0 ? 'search_off' : 'inbox' }}\n </mat-icon>\n <p class=\"no-data-text\">\n {{\n dataSource.data.length > 0\n ? ('messages.modifyFilter' | translate | capitalize)\n : noTableDataMessage\n }}\n </p>\n </div>\n </td>\n </tr>\n </table>\n } @else {\n <div class=\"loading-container\">\n <mat-progress-spinner\n class=\"mx-auto\"\n [diameter]=\"32\"\n color=\"primary\"\n mode=\"indeterminate\" />\n </div>\n }\n @if (showPaginator) {\n <div class=\"table-paginator\">\n <div class=\"table-paginator__size\">\n <span class=\"table-paginator__size-label\">\n {{ 'table.rowsPerPage' | translate | capitalize }}\n </span>\n <ud-menu\n [items]=\"pageSizeMenuItems\"\n triggerVariant=\"stroked\"\n triggerIcon=\"keyboard_arrow_down\"\n [triggerLabel]=\"pageSizeLabel\"\n [ariaLabel]=\"'table.rowsPerPage' | translate | capitalize\"\n xPosition=\"after\"\n yPosition=\"above\"\n [stopPropagation]=\"false\"\n (itemSelected)=\"onPageSizeSelected($event)\" />\n </div>\n <!-- Drives paging and dataSource.paginator; hidden, the controls below render it. -->\n <mat-paginator\n #pager\n [length]=\"totalElements ?? dataSource.data.length\"\n [pageSize]=\"initialPageSize\"\n [pageSizeOptions]=\"paginationSizeOptions\"\n (page)=\"onPageChange($event)\" />\n <span class=\"table-paginator__range\">\n {{ pager._intl.getRangeLabel(pager.pageIndex, pager.pageSize, pager.length) }}\n </span>\n <div class=\"table-paginator__nav\">\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"first_page\"\n [ariaLabel]=\"pager._intl.firstPageLabel\"\n [disabled]=\"!pager.hasPreviousPage()\"\n (buttonClick)=\"pager.firstPage()\" />\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"chevron_left\"\n [ariaLabel]=\"pager._intl.previousPageLabel\"\n [disabled]=\"!pager.hasPreviousPage()\"\n (buttonClick)=\"pager.previousPage()\" />\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"chevron_right\"\n [ariaLabel]=\"pager._intl.nextPageLabel\"\n [disabled]=\"!pager.hasNextPage()\"\n (buttonClick)=\"pager.nextPage()\" />\n <ud-button\n variant=\"icon-only\"\n color=\"secondary\"\n size=\"sm\"\n icon=\"last_page\"\n [ariaLabel]=\"pager._intl.lastPageLabel\"\n [disabled]=\"!pager.hasNextPage()\"\n (buttonClick)=\"pager.lastPage()\" />\n </div>\n </div>\n }\n </mat-card-content>\n </mat-card>\n</div>\n", styles: [":host{--eu-navy: #1b2535;--eu-navy-soft: #253347;--eu-navy-dim: rgba(27, 37, 53, .08);--eu-navy-mid: rgba(27, 37, 53, .18);--eu-surface: #ffffff;--eu-bg: #f4f5f7;--eu-border: #e2e5ea;--eu-border-mid: #c9cdd6;--eu-text: #1b2535;--eu-muted: #6b7585;--eu-danger: var(--danger, #e53935);--eu-radius: 10px;--eu-radius-sm: 6px;--eu-shadow: 0 2px 12px rgba(27, 37, 53, .06), 0 1px 4px rgba(27, 37, 53, .04);--eu-shadow-btn: 0 4px 14px rgba(27, 37, 53, .22);font-family:DM Sans,system-ui,sans-serif;position:relative;display:block;margin-left:auto;margin-right:auto;z-index:1}input:-webkit-autofill,input:-webkit-autofill:focus,input:-webkit-autofill:active{-webkit-box-shadow:0 0 0 30px #fafafa inset!important;background-color:#fafafa!important}p{font:20px Roboto,Helvetica Neue,sans-serif}.bg-accent{background-color:var(--accent-color)}.table-div .separate-filters{display:flex;flex-direction:column}.table-div .separate-filters .filter-dropdown{width:fit-content}.table-div .separate-filters .filters{display:flex;flex-direction:row;gap:8px;margin:0 24px 1rem}.table-div .separate-filters .filters .filter mat-icon{margin-right:0!important}.table-div mat-card.table-card{border-radius:10px!important;overflow:hidden;box-shadow:0 2px 12px #373f4c1a!important;background:#fff!important}.table-div mat-card.table-card mat-card-header.table-header{padding:14px 16px 14px 12px;background:var(--accent-lightest-color);border-bottom:1px solid var(--accent-color);min-height:65px}.table-div mat-card.table-card mat-card-header.table-header ::ng-deep .mat-mdc-card-header-text{display:none}.table-div mat-card.table-card mat-card-header.table-header .table-header-icon{color:var(--primary-color);font-size:20px;width:20px;height:20px}.table-div mat-card.table-card mat-card-header.table-header .table-title{margin-bottom:0;font-size:.9375rem;font-weight:600;letter-spacing:.01em;color:#373f4c}.table-div mat-card.table-card mat-card-content{padding:0}.table-div mat-card.table-card mat-card-content .no-data-found{display:flex;flex-direction:column;justify-content:center;align-items:center;height:140px;gap:8px;background:#fff}.table-div mat-card.table-card mat-card-content .no-data-found .no-data-icon{font-size:40px;width:40px;height:40px;color:var(--accent-darker-color);opacity:.7}.table-div mat-card.table-card mat-card-content .no-data-found .no-data-text{font-size:.875rem;color:#373f4c;margin:0}.table-div mat-card.table-card mat-card-content .loading-container{display:flex;justify-content:center;align-items:center;padding:32px;background:#fff}.table-div mat-card.table-card mat-card-content .table-paginator{display:flex;align-items:center;justify-content:flex-end;gap:16px;border-radius:0 0 10px 10px;background-color:#dde3ec;border-top:1px solid #c8c8d4}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__size{display:flex;align-items:center;gap:8px}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__size-label{font-family:DM Sans,system-ui,sans-serif;font-size:.8125rem;color:#6b7585;white-space:nowrap}.table-div mat-card.table-card mat-card-content .table-paginator mat-paginator{display:none}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__range{font-family:DM Sans,system-ui,sans-serif;font-size:.8125rem;font-variant-numeric:tabular-nums;color:#6b7585;white-space:nowrap}.table-div mat-card.table-card mat-card-content .table-paginator .table-paginator__nav{display:flex;align-items:center;gap:2px;padding:8px 12px 8px 0}.table-div .action-buttons-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.table-div tr td,.table-div tr th{border-bottom:1px solid var(--accent-color);color:#373f4c;padding:10px 8px}.table-div tr th{background-color:#dde3ec;font-weight:600;font-size:.9rem;letter-spacing:.05em}.table-div tr th:first-of-type,.table-div tr td:first-of-type{padding-left:20px}.table-div tr th:last-of-type,.table-div tr td:last-of-type{padding-right:20px}table{width:100%}.mat-mdc-form-field{font-size:14px}.mat-mdc-form-field ::ng-deep .mat-mdc-text-field-wrapper{max-height:45px;padding-left:4px}.mat-mdc-form-field ::ng-deep .mat-mdc-text-field-wrapper [class^=mdc-notched-outline__]{border:none;border-bottom:1px solid #929293;border-radius:0}.mat-mdc-form-field ::ng-deep .mat-mdc-text-field-wrapper [class^=mdc-notched-outline__]:first-of-type{display:none}.mat-mdc-icon-button.mat-mdc-button-base{padding:10px}.spacer{flex:1 1 auto}.link{color:#459fff;font-weight:600;cursor:pointer}.filter{font-size:100%;border-top:.84375em solid rgba(0,0,0,0)}tr.detail-row{height:0}tr.no-data-row td{border-bottom:none;padding:0}.element-row td{border-bottom-width:0}.element-detail{overflow:hidden;display:flex}.element-detail>img{max-height:100%}.element-symbol{font-weight:700;font-size:40px;line-height:normal}.element-description{padding:16px}.element-description-attribution{opacity:.5}.pills{display:flex;flex-direction:column;gap:16px;margin:8px 2px}::ng-deep .ud-actions-menu{border-radius:10px!important;box-shadow:0 4px 20px #1b25351a,0 1px 4px #1b25350f!important;border:1px solid rgba(27,37,53,.08);overflow:hidden;min-width:200px!important}::ng-deep .ud-actions-menu .mat-mdc-menu-content{padding:4px!important}::ng-deep .ud-actions-menu .ud-menu-divider{height:1px;margin:4px 8px;background:#1b253514}::ng-deep .ud-actions-menu .ud-menu-item{display:flex;align-items:center;gap:0;height:auto;min-height:40px;padding:0 12px 0 0!important;border-radius:7px;margin:1px 0;position:relative;overflow:hidden;transition:background .15s ease}::ng-deep .ud-actions-menu .ud-menu-item .mat-mdc-menu-item-text{display:flex;align-items:center}::ng-deep .ud-actions-menu .ud-menu-item:before{content:\"\";position:absolute;left:0;top:6px;bottom:6px;width:3px;border-radius:0 2px 2px 0;background:#1b2535;transform:scaleY(0);transform-origin:center;transition:transform .18s cubic-bezier(.4,0,.2,1)}::ng-deep .ud-actions-menu .ud-menu-item:hover:not([disabled]):before{transform:scaleY(1)}::ng-deep .ud-actions-menu .ud-menu-item:hover:not([disabled]){background:#1b25350d!important}::ng-deep .ud-actions-menu .ud-menu-item[disabled]{opacity:1}::ng-deep .ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__icon-wrap,::ng-deep .ud-actions-menu .ud-menu-item[disabled] .ud-menu-item__label{opacity:.38}::ng-deep .ud-actions-menu .ud-menu-item--no-icon{padding-left:12px!important}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap{display:flex;align-items:center;justify-content:center;width:40px;flex-shrink:0;align-self:stretch;max-height:40px}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__icon-wrap mat-icon{font-size:17px;width:17px;height:17px;margin:0;color:#6b7585;transition:color .15s ease}::ng-deep .ud-actions-menu .ud-menu-item:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#1b2535}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__text{display:flex;flex-direction:column;padding:8px 0;min-width:0}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__label{font-family:DM Sans,system-ui,sans-serif;font-size:.875rem;font-weight:500;line-height:1.25rem;color:#1b2535;letter-spacing:.01em;white-space:nowrap}::ng-deep .ud-actions-menu .ud-menu-item .ud-menu-item__description{font-family:DM Sans,system-ui,sans-serif;font-size:.75rem;line-height:1rem;color:#6b7585;white-space:normal}::ng-deep .ud-actions-menu .ud-menu-item--danger .ud-menu-item__label,::ng-deep .ud-actions-menu .ud-menu-item--danger .ud-menu-item__icon-wrap mat-icon,::ng-deep .ud-actions-menu .ud-menu-item--danger:hover:not([disabled]) .ud-menu-item__icon-wrap mat-icon{color:#e53935}::ng-deep .ud-actions-menu .ud-menu-item--danger:before{background:#e53935}::ng-deep .ud-actions-menu .ud-menu-item .mdc-list-item__primary-text{display:none!important}.filter--active{position:relative}.filter--active:after{content:\"\";position:absolute;left:0;right:0;bottom:-5px;height:2px;border-radius:2px;background:#459fff;pointer-events:none}.table-controls{display:flex;align-items:flex-start;gap:12px}.table-controls .separate-filters{flex:1 1 auto;min-width:0}.column-picker{flex:0 0 auto;margin:.84375em 24px 0 auto}.column-picker--active ::ng-deep .ud-btn.ud-btn--stroked{background:#459fff17!important;border-color:#459fff8c!important;color:#1b2535!important;font-weight:600!important}.column-picker--active ::ng-deep .ud-btn.ud-btn--stroked:hover:not(:disabled){background:#459fff24!important;border-color:#459fffbf!important;color:#1b2535!important}.filters-clear{align-self:flex-start;margin-top:.84375em;padding:0 2px;border:0;background:none;color:#6b7585;font-family:var(--ud-field-font);font-size:.8125rem;font-weight:500;line-height:34px;cursor:pointer;white-space:nowrap;transition:color .15s ease}.filters-clear:hover,.filters-clear:focus-visible{color:#459fff}.filters-clear__count{margin-left:5px;font-family:JetBrains Mono,ui-monospace,monospace;font-weight:600;color:#1b2535}.filters-clear:focus-visible{outline:2px solid #459fff;outline-offset:3px;border-radius:3px}@media (prefers-reduced-motion: reduce){.filters-clear{transition:none}}.filter-button-trigger--active{background-color:#459fff17!important;border-color:#459fff8c!important;color:#1b2535!important;font-weight:600!important}.filter-button-trigger--active ::ng-deep .ud-btn__label{display:contents}.filter-button-trigger--active ::ng-deep .ud-btn__icon--right{order:1}.filter-button-trigger--active .filter-clear-icon{order:2;font-size:15px!important;width:15px!important;height:15px!important;line-height:15px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;cursor:pointer;border-radius:50%;transition:background .15s ease}.filter-button-trigger--active .filter-clear-icon:hover{background:#1b25351f}td.editable-cell .cell-display-wrapper{display:flex;align-items:center;gap:6px;min-height:32px}td.editable-cell .cell-display-wrapper .cell-edit-icon{opacity:0;transform:scale(.72) translateY(1px);transition:opacity .16s ease,transform .18s cubic-bezier(.34,1.4,.64,1);flex-shrink:0;width:30px!important;height:30px!important;line-height:30px!important;padding:4px!important;border-radius:6px!important;background:transparent;border:1px solid transparent;display:flex!important;align-items:center!important;justify-content:center!important}td.editable-cell .cell-display-wrapper .cell-edit-icon:hover{background:rgba(var(--primary-color-rgb, 63, 81, 181),.08)!important;border-color:rgba(var(--primary-color-rgb, 63, 81, 181),.22)!important}td.editable-cell .cell-display-wrapper .cell-edit-icon ::ng-deep .mat-mdc-button-persistent-ripple,td.editable-cell .cell-display-wrapper .cell-edit-icon ::ng-deep .mat-ripple{border-radius:6px}td.editable-cell .cell-display-wrapper .cell-edit-icon ::ng-deep .mat-mdc-button-touch-target{width:30px!important;height:30px!important}td.editable-cell .cell-display-wrapper .cell-edit-icon mat-icon{font-size:14px!important;width:14px!important;height:14px!important;color:var(--primary-color);line-height:14px;display:flex!important;align-items:center;justify-content:center}td.editable-cell .cell-display-wrapper .cell-edit-icon.cell-edit-icon--visible{opacity:1;transform:scale(1) translateY(0)}td.editable-cell .cell-edit-wrapper{display:flex;align-items:center;gap:4px;animation:cell-edit-enter .18s cubic-bezier(.22,1,.36,1) both}td.editable-cell .cell-edit-wrapper ud-multi-select,td.editable-cell .cell-edit-wrapper ud-text-input{flex:1;min-width:0}td.editable-cell .cell-edit-wrapper .cell-edit-actions{display:flex;flex-direction:row;gap:3px;flex-shrink:0}@keyframes cell-edit-enter{0%{opacity:0;transform:translateY(-3px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}::ng-deep .custom-dropdown{min-width:280px!important;max-width:650px!important;width:auto!important;max-height:none!important;overflow:visible!important;border-radius:10px!important;box-shadow:0 4px 20px #1b25351a,0 1px 4px #1b25350f!important}::ng-deep .custom-dropdown .mat-mdc-menu-content{padding:14px;width:100%;box-sizing:border-box}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content{box-sizing:border-box}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .boolean-content{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:200px;padding:4px 0}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .boolean-content .boolean-label{font-family:DM Sans,system-ui,sans-serif;font-size:.875rem;font-weight:500;color:#1b2535}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .date-content{width:320px}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .date-content ud-date-range-input{display:block;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .string-content{display:flex;gap:1rem}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content mat-form-field{width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content mat-form-field .mat-mdc-form-field{font-size:14px}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content mat-form-field input{width:100%;box-sizing:border-box}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content{display:flex;flex-direction:column;gap:12px;width:280px}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content .dropdown-label{font-family:inherit;font-size:.8125rem;font-weight:500;color:#1b2535}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content ud-button-toggle{display:block;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content.multi-select-content ud-multi-select{display:block;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .number-content{display:flex;flex-direction:column;gap:8px;width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .number-content ud-multi-select{width:100%}::ng-deep .custom-dropdown .mat-mdc-menu-content .dropdown-content .number-content .number-range-row{display:flex;gap:8px;width:100%}\n"], dependencies: [{ kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "mode", "value", "diameter", "strokeWidth"], exportAs: ["matProgressSpinner"] }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "pipe", type: ToObservablePipe, name: "toObservable" }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "directive", type: MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "directive", type: MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }, { kind: "directive", type: MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "component", type: MatMenu, selector: "mat-menu", inputs: ["backdropClass", "aria-label", "aria-labelledby", "aria-describedby", "xPosition", "yPosition", "overlapTrigger", "hasBackdrop", "class", "classList"], outputs: ["closed", "close"], exportAs: ["matMenu"] }, { kind: "directive", type: MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "directive", type: UdTooltipDirective, selector: "[udTooltip]", inputs: ["udTooltip", "udTooltipPosition", "udTooltipDisabled", "udTooltipShowDelay"] }, { kind: "directive", type: MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "component", type: CheckboxComponent, selector: "ud-checkbox", inputs: ["controlName", "size", "label", "labelPosition", "ariaLabel", "indeterminate", "checked", "disabled"], outputs: ["onChange"] }, { kind: "component", type: MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: MatSort, selector: "[matSort]", inputs: ["matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear", "matSortDisabled"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "directive", type: MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", inputs: ["mat-menu-trigger-for", "matMenuTriggerFor", "matMenuTriggerData", "matMenuTriggerRestoreFocus"], outputs: ["menuOpened", "onMenuOpen", "menuClosed", "onMenuClose"], exportAs: ["matMenuTrigger"] }, { kind: "component", type: UdMenuComponent, selector: "ud-menu", inputs: ["items", "triggerVariant", "triggerIcon", "triggerLabel", "triggerColor", "triggerSize", "customTrigger", "ariaLabel", "disabled", "loading", "xPosition", "yPosition", "stopPropagation", "panelClass"], outputs: ["itemSelected", "opened", "closed"] }, { kind: "component", type: MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "directive", type: MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: MatCardContent, selector: "mat-card-content" }, { kind: "component", type: MatCardHeader, selector: "mat-card-header" }, { kind: "component", type: MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: MatNoDataRow, selector: "ng-template[matNoDataRow]" }, { kind: "ngmodule", type: MatDatepickerModule }, { kind: "pipe", type: PluralizePipe, name: "pluralize" }, { kind: "component", type: ToggleComponent, selector: "ud-toggle", inputs: ["controlName", "size", "label", "labelPosition", "ariaLabel"], outputs: ["onChange"] }, { kind: "component", type: DateRangeInputComponent, selector: "ud-date-range-input", inputs: ["startControlName", "endControlName", "label", "icon", "iconFontSet", "startPlaceholder", "endPlaceholder", "min", "max", "disabled", "hint", "startAt", "startView"] }, { kind: "component", type: TextInputComponent, selector: "ud-text-input", inputs: ["controlName", "label", "placeholder", "type", "icon", "iconFontSet", "loading", "step", "min", "max", "disabled", "hint", "size", "clearable"] }, { kind: "component", type: MultiSelectComponent, selector: "ud-multi-select", inputs: ["controlName", "label", "placeholder", "icon", "iconFontSet", "options", "multiple", "maxChipsVisible", "moreText", "size", "loading", "disabled", "clearable", "hint"] }, { kind: "component", type: UdButtonComponent, selector: "ud-button", inputs: ["variant", "color", "size", "type", "icon", "iconPosition", "iconFontSet", "loading", "disabled", "ariaLabel", "fullWidth"], outputs: ["buttonClick"] }, { kind: "component", type: PillComponent, selector: "ud-pill", inputs: ["text", "type", "variant", "showDot", "value", "options", "disabled"], outputs: ["optionSelected"] }, { kind: "component", type: UdButtonToggleComponent, selector: "ud-button-toggle", inputs: ["options", "size", "disabled"] }], animations: [
|
|
3780
3841
|
trigger('detailExpand', [
|
|
3781
3842
|
state('collapsed, void', style({ height: '0px', minHeight: '0' })),
|
|
3782
3843
|
state('expanded', style({ height: '*' })),
|
|
@@ -4155,6 +4216,13 @@ var KpiPillType;
|
|
|
4155
4216
|
KpiPillType["WARNING"] = "warning";
|
|
4156
4217
|
KpiPillType["DANGER"] = "danger";
|
|
4157
4218
|
KpiPillType["INFO"] = "info";
|
|
4219
|
+
/** Draft, archived, cancelled: states that need nothing from anyone. */
|
|
4220
|
+
KpiPillType["NEUTRAL"] = "neutral";
|
|
4221
|
+
/** Navy: active or current, without a good/bad reading. */
|
|
4222
|
+
KpiPillType["PRIMARY"] = "primary";
|
|
4223
|
+
/** Categories with no good/bad meaning (room type, role, source). */
|
|
4224
|
+
KpiPillType["PURPLE"] = "purple";
|
|
4225
|
+
KpiPillType["TEAL"] = "teal";
|
|
4158
4226
|
})(KpiPillType || (KpiPillType = {}));
|
|
4159
4227
|
var KpiVariant;
|
|
4160
4228
|
(function (KpiVariant) {
|
|
@@ -4236,7 +4304,7 @@ class KpiComponent {
|
|
|
4236
4304
|
KpiProgressBarType = KpiProgressBarType;
|
|
4237
4305
|
KpiVariant = KpiVariant;
|
|
4238
4306
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: KpiComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4239
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: KpiComponent, isStandalone: true, selector: "ud-kpi", inputs: { title: "title", subtitle: "subtitle", dataType: "dataType", data: "data", icon: "icon", iconColor: "iconColor", titleRef: "titleRef", loading: "loading", variant: "variant" }, ngImport: i0, template: "<div class=\"kpi-card\" [ngClass]=\"[iconColor, variant, loading ? 'is-loading' : '']\">\n\n <div class=\"kpi-body\">\n @if (loading) {\n <div class=\"skeleton-block skeleton-label\"></div>\n <div class=\"skeleton-block skeleton-value\"></div>\n <div class=\"skeleton-block skeleton-sub\"></div>\n } @else {\n\n <!-- filled-top / dark-card: header is the tinted strip -->\n @if (variant === KpiVariant.FILLED_TOP || variant === KpiVariant.DARK_CARD) {\n <div class=\"kpi-filled-header\">\n <div class=\"kpi-icon-wrap\">\n <mat-icon>{{ icon }}</mat-icon>\n </div>\n <div class=\"kpi-title-section\">\n <span class=\"kpi-label\">\n @if (titleRef) {\n <a [routerLink]=\"titleRef\">{{ title }}</a>\n } @else {\n {{ title }}\n }\n </span>\n @if (subtitle) {\n <span class=\"kpi-subtitle\">{{ subtitle }}</span>\n }\n </div>\n </div>\n <div class=\"kpi-content\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </div>\n } @else {\n <!-- Standard header (icon-badge, top-bar, minimal) -->\n <div class=\"kpi-header\">\n <div class=\"kpi-icon-wrap\">\n <mat-icon>{{ icon }}</mat-icon>\n </div>\n <div class=\"kpi-title-section\">\n <span class=\"kpi-label\">\n @if (titleRef) {\n <a [routerLink]=\"titleRef\">{{ title }}</a>\n } @else {\n {{ title }}\n }\n </span>\n @if (subtitle) {\n <span class=\"kpi-subtitle\">{{ subtitle }}</span>\n }\n </div>\n </div>\n <div class=\"kpi-content\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </div>\n }\n\n }\n </div>\n</div>\n\n<!-- Shared content template -->\n<ng-template #contentTpl>\n @switch (dataType) {\n @case (KpiDataType.PROGRESS_BAR) {\n <div class=\"progress-section\">\n @if (getProgressData().type === KpiProgressBarType.PERCENTAGE) {\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getProgressData().data.value }}</span>\n <span class=\"value-unit\">%</span>\n </div>\n } @else if (getProgressData().type === KpiProgressBarType.DIVISION) {\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getProgressData().data.value }}</span>\n <span class=\"value-separator\">/</span>\n <span class=\"value-max\">{{ getProgressData().data.max }}</span>\n </div>\n }\n <div class=\"progress-bar-track\">\n <div class=\"progress-bar-fill\" [style.width.%]=\"getProgressBarValue()\"></div>\n </div>\n <ud-progress-bar [value]=\"getProgressBarValue()\" style=\"display:none\"></ud-progress-bar>\n </div>\n }\n @case (KpiDataType.PILLS) {\n <div class=\"pills-section\">\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getPillData().value }}</span>\n </div>\n <div class=\"pills-container\">\n @for (pill of getPillData().pills; track pill) {\n <ud-pill [text]=\"pill.value + ' ' + (pill.label | async | capitalize)\" [type]=\"pill.type\"></ud-pill>\n }\n </div>\n </div>\n }\n @case (KpiDataType.TEXT) {\n <div class=\"text-section\">\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getTextData().value }}</span>\n @if (getTextData().unit) {\n <span class=\"value-unit\">{{ getTextData().unit }}</span>\n }\n </div>\n @if (getTextData().trend) {\n <div class=\"trend-chip\" [ngClass]=\"getTrendColor(getTextData().trend!.value)\">\n <mat-icon class=\"trend-icon\">{{ getTrendIcon(getTextData().trend!.value) }}</mat-icon>\n <span>\n {{ getTextData().trend!.value > 0 ? '+' : '' }}{{ getTextData().trend!.value }}%\n @if (getTextData().trend!.label) {\n <span class=\"trend-label\"> {{ getTextData().trend!.label }}</span>\n }\n </span>\n </div>\n }\n @if (getTextData().description) {\n <span class=\"kpi-description\">{{ getTextData().description }}</span>\n }\n <ng-content></ng-content>\n </div>\n }\n }\n</ng-template>\n", styles: ["@keyframes shimmer{0%{background-position:-400px 0}to{background-position:400px 0}}@keyframes glow-pulse{0%,to{box-shadow:0 0 #fff0}50%{box-shadow:0 0 24px 2px #ffffff0f}}:host{display:flex;flex-direction:column}.kpi-card{flex:1;box-sizing:border-box;font-family:DM Sans,system-ui,sans-serif;position:relative;display:flex;flex-direction:row;background:#fff;border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 1px 3px #0000000f,0 1px 2px #0000000a;min-width:260px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.kpi-card:hover:not(.is-loading){transform:translateY(-2px);box-shadow:0 6px 20px #0000001a,0 2px 6px #0000000f}.kpi-body{flex:1;display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;min-width:0}.kpi-header{display:flex;align-items:flex-start;gap:.75rem}.kpi-icon-wrap{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#f4f5f7}.kpi-icon-wrap ::ng-deep mat-icon{font-size:20px;width:20px;height:20px;color:#1b2535}.kpi-title-section{display:flex;flex-direction:column;gap:.125rem;padding-top:.1rem}.kpi-label{font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#6b7585;line-height:1.4}.kpi-label a{color:#2563eb;text-decoration:none;transition:color .15s ease}.kpi-label a:hover{color:#1d4ed8;text-decoration:underline}.kpi-subtitle{font-size:.72rem;color:#868f9d;font-weight:400}.kpi-content{display:flex;flex-direction:column;gap:.5rem}.value-display{display:flex;align-items:baseline;gap:.3rem;flex-wrap:wrap}.kpi-value{font-size:2rem;font-weight:700;color:#1b2535;line-height:1.1;letter-spacing:-.02em}.value-unit{font-size:.9rem;color:#6b7585;font-weight:500}.value-separator{font-size:1.4rem;color:#e2e5ea;font-weight:600;line-height:1}.value-max{font-size:1.1rem;color:#6b7585;font-weight:600}.progress-section{display:flex;flex-direction:column;gap:.6rem}.progress-bar-track{width:100%;height:6px;background:#f4f5f7;border-radius:99px;overflow:hidden}.progress-bar-fill{height:100%;background:#1b2535;border-radius:99px;transition:width .5s cubic-bezier(.4,0,.2,1);min-width:4px}.pills-section{display:flex;flex-direction:column;gap:.6rem}.pills-container{display:flex;gap:.4rem;flex-wrap:wrap}.text-section{display:flex;flex-direction:column;gap:.45rem}.trend-chip{display:inline-flex;align-items:center;gap:.2rem;padding:.2rem .55rem .2rem .35rem;border-radius:99px;font-size:.72rem;font-weight:600;width:fit-content;line-height:1}.trend-chip .trend-icon{font-size:13px;width:13px;height:13px}.trend-chip .trend-label{font-weight:400;opacity:.8}.trend-chip.trend-up{background:#d1fae5;color:#065f46}.trend-chip.trend-up ::ng-deep mat-icon{color:#059669}.trend-chip.trend-down{background:#fee2e2;color:#991b1b}.trend-chip.trend-down ::ng-deep mat-icon{color:#dc2626}.trend-chip.trend-neutral{background:#f4f5f7;color:#6b7585}.trend-chip.trend-neutral ::ng-deep mat-icon{color:#6b7585}.kpi-description{font-size:.75rem;color:#6b7585;font-weight:400;line-height:1.5}.skeleton-block{border-radius:6px;background:linear-gradient(90deg,#f4f5f7 25%,#e8eaee,#f4f5f7 75%);background-size:800px 100%;animation:shimmer 1.4s infinite linear}.skeleton-label{height:10px;width:55%}.skeleton-value{height:32px;width:70%;margin-top:.25rem}.skeleton-sub{height:10px;width:40%}.kpi-card.minimal{border-color:transparent;box-shadow:none;background:transparent}.kpi-card.minimal:hover:not(.is-loading){transform:none;background:#f4f5f7;box-shadow:none}.kpi-card.minimal .kpi-icon-wrap{width:32px;height:32px;border-radius:0;background:transparent!important}.kpi-card.minimal .kpi-icon-wrap ::ng-deep mat-icon{font-size:28px;width:28px;height:28px;color:#6b7585}.kpi-card.minimal .kpi-label{font-size:.8rem;text-transform:none;letter-spacing:0;font-weight:500}.kpi-card.dark-card{background:#1b2535;border-color:transparent;box-shadow:0 4px 20px #00000040,0 1px 4px #0003;flex-direction:column}.kpi-card.dark-card:hover:not(.is-loading){transform:translateY(-2px);box-shadow:0 8px 30px #00000059,0 2px 8px #0003}.kpi-card.dark-card .kpi-body{padding:0;gap:0;flex-direction:column}.kpi-card.dark-card .kpi-filled-header{padding:1rem 1.25rem .875rem;background:#ffffff0f;border-bottom:1px solid rgba(255,255,255,.08)}.kpi-card.dark-card .kpi-content{padding:1rem 1.25rem 1.25rem;flex:1}.kpi-card.dark-card .kpi-icon-wrap{background:#ffffff1a!important;border-radius:10px;width:40px;height:40px}.kpi-card.dark-card .kpi-icon-wrap ::ng-deep mat-icon{font-size:22px;width:22px;height:22px;color:#ffffffd9!important}.kpi-card.dark-card .kpi-label{color:#ffffff80}.kpi-card.dark-card .kpi-subtitle{color:#ffffff59}.kpi-card.dark-card .kpi-value{color:#fff}.kpi-card.dark-card .value-unit{color:#ffffff73}.kpi-card.dark-card .value-separator{color:#fff3}.kpi-card.dark-card .value-max{color:#ffffff73}.kpi-card.dark-card .kpi-description{color:#fff6}.kpi-card.dark-card .progress-bar-track{background:#ffffff1a}.kpi-card.dark-card .trend-chip.trend-up{background:#05966940;color:#6ee7b7}.kpi-card.dark-card .trend-chip.trend-down{background:#dc262640;color:#fca5a5}.kpi-card.dark-card .trend-chip.trend-neutral{background:#ffffff14;color:#ffffff80}.kpi-card.dark-card .trend-chip ::ng-deep mat-icon{color:inherit!important}.kpi-card.dark-card .skeleton-block{background:linear-gradient(90deg,#ffffff0f 25%,#ffffff1f,#ffffff0f 75%);background-size:800px 100%}.kpi-card.icon-badge .kpi-icon-wrap{width:48px;height:48px;border-radius:12px}.kpi-card.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{font-size:26px;width:26px;height:26px}.kpi-card.top-bar{border-top-width:3px}.kpi-card.top-bar .kpi-icon-wrap{width:44px;height:44px;border-radius:10px}.kpi-card.top-bar .kpi-icon-wrap ::ng-deep mat-icon{font-size:22px;width:22px;height:22px}.kpi-card.filled-top{flex-direction:column}.kpi-card.filled-top .kpi-body{padding:0;gap:0;flex-direction:column}.kpi-card.filled-top .kpi-filled-header{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.25rem;border-radius:12px 12px 0 0}.kpi-card.filled-top .kpi-content{padding:1rem 1.25rem 1.25rem;flex:1}.kpi-card.filled-top .kpi-icon-wrap{width:40px;height:40px;border-radius:10px;background:#ffffff73;backdrop-filter:blur(4px)}.kpi-card.filled-top .kpi-icon-wrap ::ng-deep mat-icon{font-size:22px;width:22px;height:22px}.kpi-card.filled-top .kpi-label{color:#1b2535bf}.kpi-card.filled-top .kpi-subtitle{color:#1b25358c}.kpi-card.purple.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5!important}.kpi-card.purple.dark-card .progress-bar-fill{background:#4f46e5}.kpi-card.purple.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#ede9fe,#d5ccfd)}.kpi-card.purple.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5}.kpi-card.purple.top-bar{border-top-color:#4f46e5}.kpi-card.purple.top-bar .kpi-icon-wrap{background:#ede9fe}.kpi-card.purple.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5}.kpi-card.purple.filled-top .kpi-filled-header{background:#ede9fe}.kpi-card.purple.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5}.kpi-card.purple.accent-bar .kpi-icon-wrap{background:#ede9fe}.kpi-card.purple .progress-bar-fill{background:#4f46e5}.kpi-card.amber.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706!important}.kpi-card.amber.dark-card .progress-bar-fill{background:#d97706}.kpi-card.amber.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#fef3c7,#fdeda9)}.kpi-card.amber.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706}.kpi-card.amber.top-bar{border-top-color:#d97706}.kpi-card.amber.top-bar .kpi-icon-wrap{background:#fef3c7}.kpi-card.amber.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706}.kpi-card.amber.filled-top .kpi-filled-header{background:#fef3c7}.kpi-card.amber.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706}.kpi-card.amber.accent-bar .kpi-icon-wrap{background:#fef3c7}.kpi-card.amber .progress-bar-fill{background:#d97706}.kpi-card.green.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#059669!important}.kpi-card.green.dark-card .progress-bar-fill{background:#059669}.kpi-card.green.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#d1fae5,#b5f7d5)}.kpi-card.green.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#059669}.kpi-card.green.top-bar{border-top-color:#059669}.kpi-card.green.top-bar .kpi-icon-wrap{background:#d1fae5}.kpi-card.green.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#059669}.kpi-card.green.filled-top .kpi-filled-header{background:#d1fae5}.kpi-card.green.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#059669}.kpi-card.green.accent-bar .kpi-icon-wrap{background:#d1fae5}.kpi-card.green .progress-bar-fill{background:#059669}.kpi-card.blue.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8!important}.kpi-card.blue.dark-card .progress-bar-fill{background:#1d4ed8}.kpi-card.blue.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#dbeafe,#bdd9fd)}.kpi-card.blue.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8}.kpi-card.blue.top-bar{border-top-color:#1d4ed8}.kpi-card.blue.top-bar .kpi-icon-wrap{background:#dbeafe}.kpi-card.blue.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8}.kpi-card.blue.filled-top .kpi-filled-header{background:#dbeafe}.kpi-card.blue.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8}.kpi-card.blue.accent-bar .kpi-icon-wrap{background:#dbeafe}.kpi-card.blue .progress-bar-fill{background:#1d4ed8}.kpi-card.red.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626!important}.kpi-card.red.dark-card .progress-bar-fill{background:#dc2626}.kpi-card.red.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#fee2e2,#fdc4c4)}.kpi-card.red.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626}.kpi-card.red.top-bar{border-top-color:#dc2626}.kpi-card.red.top-bar .kpi-icon-wrap{background:#fee2e2}.kpi-card.red.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626}.kpi-card.red.filled-top .kpi-filled-header{background:#fee2e2}.kpi-card.red.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626}.kpi-card.red.accent-bar .kpi-icon-wrap{background:#fee2e2}.kpi-card.red .progress-bar-fill{background:#dc2626}.kpi-card.navy.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535!important}.kpi-card.navy.dark-card .progress-bar-fill{background:#1b2535}.kpi-card.navy.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#e8eaf0,#d5d9e4)}.kpi-card.navy.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535}.kpi-card.navy.top-bar{border-top-color:#1b2535}.kpi-card.navy.top-bar .kpi-icon-wrap{background:#e8eaf0}.kpi-card.navy.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535}.kpi-card.navy.filled-top .kpi-filled-header{background:#e8eaf0}.kpi-card.navy.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535}.kpi-card.navy.accent-bar .kpi-icon-wrap{background:#e8eaf0}.kpi-card.navy .progress-bar-fill{background:#1b2535}@media (max-width: 1280px){.kpi-card{min-width:220px}}@media (max-width: 768px){.kpi-card{min-width:100%}}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ProgressBarComponent, selector: "ud-progress-bar", inputs: ["value", "height", "borderRadius", "backgroundColor"] }, { kind: "component", type: PillComponent, selector: "ud-pill", inputs: ["text", "type"] }] });
|
|
4307
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.19", type: KpiComponent, isStandalone: true, selector: "ud-kpi", inputs: { title: "title", subtitle: "subtitle", dataType: "dataType", data: "data", icon: "icon", iconColor: "iconColor", titleRef: "titleRef", loading: "loading", variant: "variant" }, ngImport: i0, template: "<div class=\"kpi-card\" [ngClass]=\"[iconColor, variant, loading ? 'is-loading' : '']\">\n\n <div class=\"kpi-body\">\n @if (loading) {\n <div class=\"skeleton-block skeleton-label\"></div>\n <div class=\"skeleton-block skeleton-value\"></div>\n <div class=\"skeleton-block skeleton-sub\"></div>\n } @else {\n\n <!-- filled-top / dark-card: header is the tinted strip -->\n @if (variant === KpiVariant.FILLED_TOP || variant === KpiVariant.DARK_CARD) {\n <div class=\"kpi-filled-header\">\n <div class=\"kpi-icon-wrap\">\n <mat-icon>{{ icon }}</mat-icon>\n </div>\n <div class=\"kpi-title-section\">\n <span class=\"kpi-label\">\n @if (titleRef) {\n <a [routerLink]=\"titleRef\">{{ title }}</a>\n } @else {\n {{ title }}\n }\n </span>\n @if (subtitle) {\n <span class=\"kpi-subtitle\">{{ subtitle }}</span>\n }\n </div>\n </div>\n <div class=\"kpi-content\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </div>\n } @else {\n <!-- Standard header (icon-badge, top-bar, minimal) -->\n <div class=\"kpi-header\">\n <div class=\"kpi-icon-wrap\">\n <mat-icon>{{ icon }}</mat-icon>\n </div>\n <div class=\"kpi-title-section\">\n <span class=\"kpi-label\">\n @if (titleRef) {\n <a [routerLink]=\"titleRef\">{{ title }}</a>\n } @else {\n {{ title }}\n }\n </span>\n @if (subtitle) {\n <span class=\"kpi-subtitle\">{{ subtitle }}</span>\n }\n </div>\n </div>\n <div class=\"kpi-content\">\n <ng-container *ngTemplateOutlet=\"contentTpl\"></ng-container>\n </div>\n }\n\n }\n </div>\n</div>\n\n<!-- Shared content template -->\n<ng-template #contentTpl>\n @switch (dataType) {\n @case (KpiDataType.PROGRESS_BAR) {\n <div class=\"progress-section\">\n @if (getProgressData().type === KpiProgressBarType.PERCENTAGE) {\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getProgressData().data.value }}</span>\n <span class=\"value-unit\">%</span>\n </div>\n } @else if (getProgressData().type === KpiProgressBarType.DIVISION) {\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getProgressData().data.value }}</span>\n <span class=\"value-separator\">/</span>\n <span class=\"value-max\">{{ getProgressData().data.max }}</span>\n </div>\n }\n <div class=\"progress-bar-track\">\n <div class=\"progress-bar-fill\" [style.width.%]=\"getProgressBarValue()\"></div>\n </div>\n <ud-progress-bar [value]=\"getProgressBarValue()\" style=\"display:none\"></ud-progress-bar>\n </div>\n }\n @case (KpiDataType.PILLS) {\n <div class=\"pills-section\">\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getPillData().value }}</span>\n </div>\n <div class=\"pills-container\">\n @for (pill of getPillData().pills; track pill) {\n <ud-pill [text]=\"pill.value + ' ' + (pill.label | async | capitalize)\" [type]=\"pill.type\"></ud-pill>\n }\n </div>\n </div>\n }\n @case (KpiDataType.TEXT) {\n <div class=\"text-section\">\n <div class=\"value-display\">\n <span class=\"kpi-value\">{{ getTextData().value }}</span>\n @if (getTextData().unit) {\n <span class=\"value-unit\">{{ getTextData().unit }}</span>\n }\n </div>\n @if (getTextData().trend) {\n <div class=\"trend-chip\" [ngClass]=\"getTrendColor(getTextData().trend!.value)\">\n <mat-icon class=\"trend-icon\">{{ getTrendIcon(getTextData().trend!.value) }}</mat-icon>\n <span>\n {{ getTextData().trend!.value > 0 ? '+' : '' }}{{ getTextData().trend!.value }}%\n @if (getTextData().trend!.label) {\n <span class=\"trend-label\"> {{ getTextData().trend!.label }}</span>\n }\n </span>\n </div>\n }\n @if (getTextData().description) {\n <span class=\"kpi-description\">{{ getTextData().description }}</span>\n }\n <ng-content></ng-content>\n </div>\n }\n }\n</ng-template>\n", styles: ["@keyframes shimmer{0%{background-position:-400px 0}to{background-position:400px 0}}@keyframes glow-pulse{0%,to{box-shadow:0 0 #fff0}50%{box-shadow:0 0 24px 2px #ffffff0f}}:host{display:flex;flex-direction:column}.kpi-card{flex:1;box-sizing:border-box;font-family:DM Sans,system-ui,sans-serif;position:relative;display:flex;flex-direction:row;background:#fff;border-radius:12px;border:1px solid #e2e5ea;box-shadow:0 1px 3px #0000000f,0 1px 2px #0000000a;min-width:260px;overflow:hidden;transition:transform .18s ease,box-shadow .18s ease}.kpi-card:hover:not(.is-loading){transform:translateY(-2px);box-shadow:0 6px 20px #0000001a,0 2px 6px #0000000f}.kpi-body{flex:1;display:flex;flex-direction:column;gap:.75rem;padding:1.25rem;min-width:0}.kpi-header{display:flex;align-items:flex-start;gap:.75rem}.kpi-icon-wrap{width:36px;height:36px;border-radius:8px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#f4f5f7}.kpi-icon-wrap ::ng-deep mat-icon{font-size:20px;width:20px;height:20px;color:#1b2535}.kpi-title-section{display:flex;flex-direction:column;gap:.125rem;padding-top:.1rem}.kpi-label{font-size:.7rem;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#6b7585;line-height:1.4}.kpi-label a{color:#2563eb;text-decoration:none;transition:color .15s ease}.kpi-label a:hover{color:#1d4ed8;text-decoration:underline}.kpi-subtitle{font-size:.72rem;color:#868f9d;font-weight:400}.kpi-content{display:flex;flex-direction:column;gap:.5rem}.value-display{display:flex;align-items:baseline;gap:.3rem;flex-wrap:wrap}.kpi-value{font-size:2rem;font-weight:700;color:#1b2535;line-height:1.1;letter-spacing:-.02em}.value-unit{font-size:.9rem;color:#6b7585;font-weight:500}.value-separator{font-size:1.4rem;color:#e2e5ea;font-weight:600;line-height:1}.value-max{font-size:1.1rem;color:#6b7585;font-weight:600}.progress-section{display:flex;flex-direction:column;gap:.6rem}.progress-bar-track{width:100%;height:6px;background:#f4f5f7;border-radius:99px;overflow:hidden}.progress-bar-fill{height:100%;background:#1b2535;border-radius:99px;transition:width .5s cubic-bezier(.4,0,.2,1);min-width:4px}.pills-section{display:flex;flex-direction:column;gap:.6rem}.pills-container{display:flex;gap:.4rem;flex-wrap:wrap}.text-section{display:flex;flex-direction:column;gap:.45rem}.trend-chip{display:inline-flex;align-items:center;gap:.2rem;padding:.2rem .55rem .2rem .35rem;border-radius:99px;font-size:.72rem;font-weight:600;width:fit-content;line-height:1}.trend-chip .trend-icon{font-size:13px;width:13px;height:13px}.trend-chip .trend-label{font-weight:400;opacity:.8}.trend-chip.trend-up{background:#d1fae5;color:#065f46}.trend-chip.trend-up ::ng-deep mat-icon{color:#059669}.trend-chip.trend-down{background:#fee2e2;color:#991b1b}.trend-chip.trend-down ::ng-deep mat-icon{color:#dc2626}.trend-chip.trend-neutral{background:#f4f5f7;color:#6b7585}.trend-chip.trend-neutral ::ng-deep mat-icon{color:#6b7585}.kpi-description{font-size:.75rem;color:#6b7585;font-weight:400;line-height:1.5}.skeleton-block{border-radius:6px;background:linear-gradient(90deg,#f4f5f7 25%,#e8eaee,#f4f5f7 75%);background-size:800px 100%;animation:shimmer 1.4s infinite linear}.skeleton-label{height:10px;width:55%}.skeleton-value{height:32px;width:70%;margin-top:.25rem}.skeleton-sub{height:10px;width:40%}.kpi-card.minimal{border-color:transparent;box-shadow:none;background:transparent}.kpi-card.minimal:hover:not(.is-loading){transform:none;background:#f4f5f7;box-shadow:none}.kpi-card.minimal .kpi-icon-wrap{width:32px;height:32px;border-radius:0;background:transparent!important}.kpi-card.minimal .kpi-icon-wrap ::ng-deep mat-icon{font-size:28px;width:28px;height:28px;color:#6b7585}.kpi-card.minimal .kpi-label{font-size:.8rem;text-transform:none;letter-spacing:0;font-weight:500}.kpi-card.dark-card{background:#1b2535;border-color:transparent;box-shadow:0 4px 20px #00000040,0 1px 4px #0003;flex-direction:column}.kpi-card.dark-card:hover:not(.is-loading){transform:translateY(-2px);box-shadow:0 8px 30px #00000059,0 2px 8px #0003}.kpi-card.dark-card .kpi-body{padding:0;gap:0;flex-direction:column}.kpi-card.dark-card .kpi-filled-header{padding:1rem 1.25rem .875rem;background:#ffffff0f;border-bottom:1px solid rgba(255,255,255,.08)}.kpi-card.dark-card .kpi-content{padding:1rem 1.25rem 1.25rem;flex:1}.kpi-card.dark-card .kpi-icon-wrap{background:#ffffff1a!important;border-radius:10px;width:40px;height:40px}.kpi-card.dark-card .kpi-icon-wrap ::ng-deep mat-icon{font-size:22px;width:22px;height:22px;color:#ffffffd9!important}.kpi-card.dark-card .kpi-label{color:#ffffff80}.kpi-card.dark-card .kpi-subtitle{color:#ffffff59}.kpi-card.dark-card .kpi-value{color:#fff}.kpi-card.dark-card .value-unit{color:#ffffff73}.kpi-card.dark-card .value-separator{color:#fff3}.kpi-card.dark-card .value-max{color:#ffffff73}.kpi-card.dark-card .kpi-description{color:#fff6}.kpi-card.dark-card .progress-bar-track{background:#ffffff1a}.kpi-card.dark-card .trend-chip.trend-up{background:#05966940;color:#6ee7b7}.kpi-card.dark-card .trend-chip.trend-down{background:#dc262640;color:#fca5a5}.kpi-card.dark-card .trend-chip.trend-neutral{background:#ffffff14;color:#ffffff80}.kpi-card.dark-card .trend-chip ::ng-deep mat-icon{color:inherit!important}.kpi-card.dark-card .skeleton-block{background:linear-gradient(90deg,#ffffff0f 25%,#ffffff1f,#ffffff0f 75%);background-size:800px 100%}.kpi-card.icon-badge .kpi-icon-wrap{width:48px;height:48px;border-radius:12px}.kpi-card.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{font-size:26px;width:26px;height:26px}.kpi-card.top-bar{border-top-width:3px}.kpi-card.top-bar .kpi-icon-wrap{width:44px;height:44px;border-radius:10px}.kpi-card.top-bar .kpi-icon-wrap ::ng-deep mat-icon{font-size:22px;width:22px;height:22px}.kpi-card.filled-top{flex-direction:column}.kpi-card.filled-top .kpi-body{padding:0;gap:0;flex-direction:column}.kpi-card.filled-top .kpi-filled-header{display:flex;align-items:center;gap:.75rem;padding:.9rem 1.25rem;border-radius:12px 12px 0 0}.kpi-card.filled-top .kpi-content{padding:1rem 1.25rem 1.25rem;flex:1}.kpi-card.filled-top .kpi-icon-wrap{width:40px;height:40px;border-radius:10px;background:#ffffff73;backdrop-filter:blur(4px)}.kpi-card.filled-top .kpi-icon-wrap ::ng-deep mat-icon{font-size:22px;width:22px;height:22px}.kpi-card.filled-top .kpi-label{color:#1b2535bf}.kpi-card.filled-top .kpi-subtitle{color:#1b25358c}.kpi-card.purple.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5!important}.kpi-card.purple.dark-card .progress-bar-fill{background:#4f46e5}.kpi-card.purple.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#ede9fe,#d5ccfd)}.kpi-card.purple.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5}.kpi-card.purple.top-bar{border-top-color:#4f46e5}.kpi-card.purple.top-bar .kpi-icon-wrap{background:#ede9fe}.kpi-card.purple.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5}.kpi-card.purple.filled-top .kpi-filled-header{background:#ede9fe}.kpi-card.purple.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#4f46e5}.kpi-card.purple.accent-bar .kpi-icon-wrap{background:#ede9fe}.kpi-card.purple .progress-bar-fill{background:#4f46e5}.kpi-card.amber.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706!important}.kpi-card.amber.dark-card .progress-bar-fill{background:#d97706}.kpi-card.amber.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#fef3c7,#fdeda9)}.kpi-card.amber.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706}.kpi-card.amber.top-bar{border-top-color:#d97706}.kpi-card.amber.top-bar .kpi-icon-wrap{background:#fef3c7}.kpi-card.amber.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706}.kpi-card.amber.filled-top .kpi-filled-header{background:#fef3c7}.kpi-card.amber.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#d97706}.kpi-card.amber.accent-bar .kpi-icon-wrap{background:#fef3c7}.kpi-card.amber .progress-bar-fill{background:#d97706}.kpi-card.green.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#059669!important}.kpi-card.green.dark-card .progress-bar-fill{background:#059669}.kpi-card.green.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#d1fae5,#b5f7d5)}.kpi-card.green.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#059669}.kpi-card.green.top-bar{border-top-color:#059669}.kpi-card.green.top-bar .kpi-icon-wrap{background:#d1fae5}.kpi-card.green.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#059669}.kpi-card.green.filled-top .kpi-filled-header{background:#d1fae5}.kpi-card.green.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#059669}.kpi-card.green.accent-bar .kpi-icon-wrap{background:#d1fae5}.kpi-card.green .progress-bar-fill{background:#059669}.kpi-card.blue.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8!important}.kpi-card.blue.dark-card .progress-bar-fill{background:#1d4ed8}.kpi-card.blue.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#dbeafe,#bdd9fd)}.kpi-card.blue.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8}.kpi-card.blue.top-bar{border-top-color:#1d4ed8}.kpi-card.blue.top-bar .kpi-icon-wrap{background:#dbeafe}.kpi-card.blue.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8}.kpi-card.blue.filled-top .kpi-filled-header{background:#dbeafe}.kpi-card.blue.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#1d4ed8}.kpi-card.blue.accent-bar .kpi-icon-wrap{background:#dbeafe}.kpi-card.blue .progress-bar-fill{background:#1d4ed8}.kpi-card.red.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626!important}.kpi-card.red.dark-card .progress-bar-fill{background:#dc2626}.kpi-card.red.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#fee2e2,#fdc4c4)}.kpi-card.red.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626}.kpi-card.red.top-bar{border-top-color:#dc2626}.kpi-card.red.top-bar .kpi-icon-wrap{background:#fee2e2}.kpi-card.red.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626}.kpi-card.red.filled-top .kpi-filled-header{background:#fee2e2}.kpi-card.red.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#dc2626}.kpi-card.red.accent-bar .kpi-icon-wrap{background:#fee2e2}.kpi-card.red .progress-bar-fill{background:#dc2626}.kpi-card.navy.minimal .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535!important}.kpi-card.navy.dark-card .progress-bar-fill{background:#1b2535}.kpi-card.navy.icon-badge .kpi-icon-wrap{background:linear-gradient(135deg,#e8eaf0,#d5d9e4)}.kpi-card.navy.icon-badge .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535}.kpi-card.navy.top-bar{border-top-color:#1b2535}.kpi-card.navy.top-bar .kpi-icon-wrap{background:#e8eaf0}.kpi-card.navy.top-bar .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535}.kpi-card.navy.filled-top .kpi-filled-header{background:#e8eaf0}.kpi-card.navy.filled-top .kpi-filled-header .kpi-icon-wrap ::ng-deep mat-icon{color:#1b2535}.kpi-card.navy.accent-bar .kpi-icon-wrap{background:#e8eaf0}.kpi-card.navy .progress-bar-fill{background:#1b2535}@media (max-width: 1280px){.kpi-card{min-width:220px}}@media (max-width: 768px){.kpi-card{min-width:100%}}\n"], dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ProgressBarComponent, selector: "ud-progress-bar", inputs: ["value", "height", "borderRadius", "backgroundColor"] }, { kind: "component", type: PillComponent, selector: "ud-pill", inputs: ["text", "type", "variant", "showDot", "value", "options", "disabled"], outputs: ["optionSelected"] }] });
|
|
4240
4308
|
}
|
|
4241
4309
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: KpiComponent, decorators: [{
|
|
4242
4310
|
type: Component,
|