@nova-ui/dashboards 20.0.4 → 20.0.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.
- package/fesm2022/nova-ui-dashboards.mjs +53 -40
- package/fesm2022/nova-ui-dashboards.mjs.map +1 -1
- package/index.d.ts +6 -1
- package/package.json +3 -3
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.d.ts +5 -0
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.js +19 -0
- package/sdk/atoms/src/lib/components/widget/widget-header/widget-header.component.js.map +1 -1
|
@@ -123,7 +123,7 @@ class WidgetErrorComponent {
|
|
|
123
123
|
this.classNames = `${this.defaultClasses} ${this.elementClass}`;
|
|
124
124
|
}
|
|
125
125
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetErrorComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
126
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetErrorComponent, isStandalone: false, selector: "nui-widget-error", inputs: { image: "image", title: "title", description: "description", elementClass: "elementClass" }, host: { properties: { "class": "this.classNames" } }, ngImport: i0, template: "<nui-image [image]=\"image\"></nui-image>\n<div class=\"widget-error__title\">\n <strong>{{ title }}</strong>\n</div>\n<div class=\"d-flex justify-content-center text-center\">{{ description }}</div>\n", styles: [".widget-error__title{display:flex;justify-content:center;text-align:center;margin-top:20px;margin-bottom:10px}\n"], dependencies: [{ kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }] }); }
|
|
126
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetErrorComponent, isStandalone: false, selector: "nui-widget-error", inputs: { image: "image", title: "title", description: "description", elementClass: "elementClass" }, host: { properties: { "class": "this.classNames" } }, ngImport: i0, template: "<nui-image [image]=\"image\"></nui-image>\n<div class=\"widget-error__title\">\n <strong>{{ title }}</strong>\n</div>\n<div class=\"d-flex justify-content-center text-center\">{{ description }}</div>\n", styles: [".widget-error__title{display:flex;justify-content:center;text-align:center;margin-top:20px;margin-bottom:10px}\n"], dependencies: [{ kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }] }); }
|
|
127
127
|
}
|
|
128
128
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetErrorComponent, decorators: [{
|
|
129
129
|
type: Component,
|
|
@@ -5825,7 +5825,7 @@ class TilesComponent extends BaseLayout {
|
|
|
5825
5825
|
}
|
|
5826
5826
|
}
|
|
5827
5827
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TilesComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PizzagnaService }, { token: i2.LoggerService }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5828
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TilesComponent, isStandalone: false, selector: "nui-tiles", inputs: { nodes: "nodes", direction: "direction" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridItemsContainer", first: true, predicate: ["gridItemsContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\n #gridItemsContainer\n class=\"nui-grid-layout\"\n [ngClass]=\"{ 'prioritize-rows': prioritizeGridRows }\"\n>\n <ng-container *ngFor=\"let node of nodeConfigs; trackBy: trackByFn\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"node.id\"\n [componentType]=\"node.componentType\"\n [properties]=\"node.properties\"\n [providers]=\"node.providers\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"nodeConfigs.length === 0\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-grid-layout{display:grid;height:100%;gap:10px;grid-template-columns:repeat(auto-fit,minmax(94.8px,1fr));grid-template-rows:repeat(auto-fit,minmax(15px,1fr));line-height:1.2}.nui-grid-layout.prioritize-rows{grid-auto-flow:column;grid-template-columns:minmax(1px,1fr)}:host-context(.mobile){min-height:160px}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }] }); }
|
|
5828
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TilesComponent, isStandalone: false, selector: "nui-tiles", inputs: { nodes: "nodes", direction: "direction" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridItemsContainer", first: true, predicate: ["gridItemsContainer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div\n #gridItemsContainer\n class=\"nui-grid-layout\"\n [ngClass]=\"{ 'prioritize-rows': prioritizeGridRows }\"\n>\n <ng-container *ngFor=\"let node of nodeConfigs; trackBy: trackByFn\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"node.id\"\n [componentType]=\"node.componentType\"\n [properties]=\"node.properties\"\n [providers]=\"node.providers\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"nodeConfigs.length === 0\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-grid-layout{display:grid;height:100%;gap:10px;grid-template-columns:repeat(auto-fit,minmax(94.8px,1fr));grid-template-rows:repeat(auto-fit,minmax(15px,1fr));line-height:1.2}.nui-grid-layout.prioritize-rows{grid-auto-flow:column;grid-template-columns:minmax(1px,1fr)}:host-context(.mobile){min-height:160px}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }] }); }
|
|
5829
5829
|
}
|
|
5830
5830
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TilesComponent, decorators: [{
|
|
5831
5831
|
type: Component,
|
|
@@ -5885,7 +5885,7 @@ class ListGroupItemComponent {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
}
|
|
5887
5887
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListGroupItemComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5888
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ListGroupItemComponent, isStandalone: false, selector: "nui-list-group-item", inputs: { id: "id", label: "label", statuses: "statuses", canNavigate: "canNavigate", widgetWidth: "widgetWidth" }, outputs: { navigated: "navigated" }, host: { classAttribute: "w-100" }, ngImport: i0, template: "<div\n class=\"list-group-item\"\n [ngClass]=\"{ 'widget-medium': isMedium, 'widget-small': isSmall }\"\n (click)=\"onButtonClick()\"\n>\n <div class=\"list-group-item__label\" [title]=\"label\">{{ label }}</div>\n <div class=\"list-group-item__statuses\">\n <div class=\"statuses\">\n <div class=\"status-column\" *ngFor=\"let status of statuses\">\n <nui-icon [icon]=\"status.key\" class=\"mr-2\"></nui-icon>\n <span class=\"status-column__label\" [title]=\"status.value\">{{\n status.value\n }}</span>\n </div>\n </div>\n <nui-icon *ngIf=\"canNavigate\" icon=\"caret-right\"></nui-icon>\n </div>\n</div>\n", styles: [".list-group-item{width:100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.list-group-item__label{width:25%;max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.list-group-item__statuses{width:75%;display:flex;align-items:center}.list-group-item .status-column{display:flex;width:75px;min-width:75px;max-width:100%;justify-content:flex-start;align-items:center;padding-right:10px}.list-group-item .status-column__label{margin-left:5px;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.list-group-item .statuses{display:flex;flex-grow:1;justify-content:flex-end}.widget-medium{justify-content:flex-end}.widget-medium .list-group-item__label,.widget-medium .list-group-item__statuses{width:100%!important}.widget-small{justify-content:flex-end}.widget-small .list-group-item__label,.widget-small .list-group-item__statuses{width:100%!important}.widget-small .statuses{justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5888
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ListGroupItemComponent, isStandalone: false, selector: "nui-list-group-item", inputs: { id: "id", label: "label", statuses: "statuses", canNavigate: "canNavigate", widgetWidth: "widgetWidth" }, outputs: { navigated: "navigated" }, host: { classAttribute: "w-100" }, ngImport: i0, template: "<div\n class=\"list-group-item\"\n [ngClass]=\"{ 'widget-medium': isMedium, 'widget-small': isSmall }\"\n (click)=\"onButtonClick()\"\n>\n <div class=\"list-group-item__label\" [title]=\"label\">{{ label }}</div>\n <div class=\"list-group-item__statuses\">\n <div class=\"statuses\">\n <div class=\"status-column\" *ngFor=\"let status of statuses\">\n <nui-icon [icon]=\"status.key\" class=\"mr-2\"></nui-icon>\n <span class=\"status-column__label\" [title]=\"status.value\">{{\n status.value\n }}</span>\n </div>\n </div>\n <nui-icon *ngIf=\"canNavigate\" icon=\"caret-right\"></nui-icon>\n </div>\n</div>\n", styles: [".list-group-item{width:100%;display:flex;justify-content:center;align-items:center;flex-wrap:wrap}.list-group-item__label{width:25%;max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.list-group-item__statuses{width:75%;display:flex;align-items:center}.list-group-item .status-column{display:flex;width:75px;min-width:75px;max-width:100%;justify-content:flex-start;align-items:center;padding-right:10px}.list-group-item .status-column__label{margin-left:5px;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.list-group-item .statuses{display:flex;flex-grow:1;justify-content:flex-end}.widget-medium{justify-content:flex-end}.widget-medium .list-group-item__label,.widget-medium .list-group-item__statuses{width:100%!important}.widget-small{justify-content:flex-end}.widget-small .list-group-item__label,.widget-small .list-group-item__statuses{width:100%!important}.widget-small .statuses{justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5889
5889
|
}
|
|
5890
5890
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListGroupItemComponent, decorators: [{
|
|
5891
5891
|
type: Component,
|
|
@@ -5949,7 +5949,7 @@ class ListLeafItemComponent {
|
|
|
5949
5949
|
});
|
|
5950
5950
|
}
|
|
5951
5951
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListLeafItemComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
5952
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ListLeafItemComponent, isStandalone: false, selector: "nui-list-leaf-item", inputs: { icon: "icon", status: "status", detailedUrl: "detailedUrl", label: "label", canNavigate: "canNavigate", url: "url" }, outputs: { navigated: "navigated" }, host: { classAttribute: "w-100" }, ngImport: i0, template: "<div class=\"nui-list-leaf-item\" (click)=\"onButtonClick()\">\n <div class=\"nui-list-leaf-item__info-container\">\n <div class=\"nui-list-leaf-item__icon-container\">\n <nui-icon\n *ngIf=\"icon; else statusTpl\"\n [icon]=\"icon\"\n [status]=\"status\"\n class=\"mr-1\"\n ></nui-icon>\n </div>\n <div class=\"nui-list-leaf-item__description\">\n <a\n class=\"nui-text-ellipsis\"\n [ngClass]=\"url ? '' : 'not-active'\"\n [attr.target]=\"url ? '_blank' : null\"\n [attr.href]=\"url || null\"\n [innerHTML]=\"label | nuiHighlight : searchTerm\"\n ></a>\n <div\n class=\"nui-text-secondary nui-text-ellipsis\"\n [innerHTML]=\"detailedUrl | nuiHighlight : searchTerm\"\n ></div>\n </div>\n\n <ng-template #statusTpl>{{ status }}</ng-template>\n </div>\n <nui-icon *ngIf=\"canNavigate\" icon=\"caret-right\"></nui-icon>\n</div>\n", styles: [".nui-list-leaf-item{width:100%;display:flex;justify-content:space-between;align-items:center;padding:5px 0}.nui-list-leaf-item__info-container{display:flex;height:40px}.nui-list-leaf-item__icon-container{display:flex;justify-content:center;align-items:center;min-width:30px}.nui-list-leaf-item__description{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:1fr;max-width:100%}a.not-active{text-decoration:none;color:#111}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "pipe", type: i2.HighlightPipe, name: "nuiHighlight" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5952
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ListLeafItemComponent, isStandalone: false, selector: "nui-list-leaf-item", inputs: { icon: "icon", status: "status", detailedUrl: "detailedUrl", label: "label", canNavigate: "canNavigate", url: "url" }, outputs: { navigated: "navigated" }, host: { classAttribute: "w-100" }, ngImport: i0, template: "<div class=\"nui-list-leaf-item\" (click)=\"onButtonClick()\">\n <div class=\"nui-list-leaf-item__info-container\">\n <div class=\"nui-list-leaf-item__icon-container\">\n <nui-icon\n *ngIf=\"icon; else statusTpl\"\n [icon]=\"icon\"\n [status]=\"status\"\n class=\"mr-1\"\n ></nui-icon>\n </div>\n <div class=\"nui-list-leaf-item__description\">\n <a\n class=\"nui-text-ellipsis\"\n [ngClass]=\"url ? '' : 'not-active'\"\n [attr.target]=\"url ? '_blank' : null\"\n [attr.href]=\"url || null\"\n [innerHTML]=\"label | nuiHighlight : searchTerm\"\n ></a>\n <div\n class=\"nui-text-secondary nui-text-ellipsis\"\n [innerHTML]=\"detailedUrl | nuiHighlight : searchTerm\"\n ></div>\n </div>\n\n <ng-template #statusTpl>{{ status }}</ng-template>\n </div>\n <nui-icon *ngIf=\"canNavigate\" icon=\"caret-right\"></nui-icon>\n</div>\n", styles: [".nui-list-leaf-item{width:100%;display:flex;justify-content:space-between;align-items:center;padding:5px 0}.nui-list-leaf-item__info-container{display:flex;height:40px}.nui-list-leaf-item__icon-container{display:flex;justify-content:center;align-items:center;min-width:30px}.nui-list-leaf-item__description{display:grid;grid-template-rows:1fr 1fr;grid-template-columns:1fr;max-width:100%}a.not-active{text-decoration:none;color:#111}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "pipe", type: i2.HighlightPipe, name: "nuiHighlight" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
5953
5953
|
}
|
|
5954
5954
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListLeafItemComponent, decorators: [{
|
|
5955
5955
|
type: Component,
|
|
@@ -6104,7 +6104,7 @@ class ListWidgetComponent {
|
|
|
6104
6104
|
});
|
|
6105
6105
|
}
|
|
6106
6106
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.ElementRef }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6107
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ListWidgetComponent, isStandalone: false, selector: "nui-list-widget", inputs: { data: "data", configuration: "configuration", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<nui-repeat\n *ngIf=\"shouldDisplayRepeat()\"\n [itemsSource]=\"data\"\n [repeatItemTemplateRef]=\"repeatItemTemplate\"\n>\n</nui-repeat>\n\n<div class=\"empty\" *ngIf=\"!shouldDisplayRepeat()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n\n<ng-template #repeatItemTemplate let-item=\"item\">\n <div class=\"empty\" *ngIf=\"!item\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"configuration.componentType\"\n [componentType]=\"configuration.componentType\"\n [properties]=\"getPropsFor(item)\"\n [outputs]=\"['navigated']\"\n (output)=\"onListItemEvent(item)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{height:100%;overflow:auto}.empty{height:100%;display:grid;place-content:center}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.RepeatComponent, selector: "nui-repeat", inputs: ["draggable", "reorderable", "preventRowClick", "repeatItemTemplateRef", "dragHandleTemplateRef", "dragPreviewClass", "dragPreviewTemplateRef", "actionsTemplateRef", "selectionMode", "paddingSize", "virtualScroll", "itemSize", "selection", "itemConfig", "itemsSource", "highlightSelectedItem"], outputs: ["draggableChange", "reorderableChange", "itemsReordered", "selectionChange"] }] }); }
|
|
6107
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ListWidgetComponent, isStandalone: false, selector: "nui-list-widget", inputs: { data: "data", configuration: "configuration", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<nui-repeat\n *ngIf=\"shouldDisplayRepeat()\"\n [itemsSource]=\"data\"\n [repeatItemTemplateRef]=\"repeatItemTemplate\"\n>\n</nui-repeat>\n\n<div class=\"empty\" *ngIf=\"!shouldDisplayRepeat()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n\n<ng-template #repeatItemTemplate let-item=\"item\">\n <div class=\"empty\" *ngIf=\"!item\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"configuration.componentType\"\n [componentType]=\"configuration.componentType\"\n [properties]=\"getPropsFor(item)\"\n [outputs]=\"['navigated']\"\n (output)=\"onListItemEvent(item)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n</ng-template>\n", styles: [":host{height:100%;overflow:auto}.empty{height:100%;display:grid;place-content:center}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.RepeatComponent, selector: "nui-repeat", inputs: ["draggable", "reorderable", "preventRowClick", "repeatItemTemplateRef", "dragHandleTemplateRef", "dragPreviewClass", "dragPreviewTemplateRef", "actionsTemplateRef", "selectionMode", "paddingSize", "virtualScroll", "itemSize", "selection", "itemConfig", "itemsSource", "highlightSelectedItem"], outputs: ["draggableChange", "reorderableChange", "itemsReordered", "selectionChange"] }] }); }
|
|
6108
6108
|
}
|
|
6109
6109
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ListWidgetComponent, decorators: [{
|
|
6110
6110
|
type: Component,
|
|
@@ -6789,11 +6789,11 @@ class ProportionalWidgetComponent {
|
|
|
6789
6789
|
!this.chartAssist);
|
|
6790
6790
|
}
|
|
6791
6791
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProportionalWidgetComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.NgZone }, { token: i0.KeyValueDiffers }, { token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE }, { token: i2.LoggerService }, { token: i2.UnitConversionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
6792
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ProportionalWidgetComponent, isStandalone: false, selector: "nui-proportional-widget", inputs: { widgetData: "widgetData", configuration: "configuration", elementClass: "elementClass", seriesToIconMap: "seriesToIconMap" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#0079aa)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "component", type: i4$1.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: ProportionalDonutContentComponent, selector: "nui-proportional-donut-content", inputs: ["widgetData", "donutConfig", "chartAssist"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] }); }
|
|
6792
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ProportionalWidgetComponent, isStandalone: false, selector: "nui-proportional-widget", inputs: { widgetData: "widgetData", configuration: "configuration", elementClass: "elementClass", seriesToIconMap: "seriesToIconMap" }, host: { properties: { "class": "this.elementClass" } }, viewQueries: [{ propertyName: "gridContainer", first: true, predicate: ["gridContainer"], descendants: true, static: true }], usesOnChanges: true, ngImport: i0, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#006791)}.is-empty{display:grid;place-content:center;height:100%}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "component", type: i4$1.ChartDonutContentComponent, selector: "nui-chart-donut-content", inputs: ["plugin"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "directive", type: i2.ZoomContentDirective, selector: "[nuiZoomContent]", inputs: ["zoomRatio", "minZoomDifference", "maxZoom", "minZoom", "useZoom", "margin", "minScale", "maxScale", "scaleIN$", "scaleOUT$"] }, { kind: "component", type: ProportionalDonutContentComponent, selector: "nui-proportional-donut-content", inputs: ["widgetData", "donutConfig", "chartAssist"] }, { kind: "pipe", type: DashboardUnitConversionPipe, name: "nuiDashboardUnitConversion" }] }); }
|
|
6793
6793
|
}
|
|
6794
6794
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ProportionalWidgetComponent, decorators: [{
|
|
6795
6795
|
type: Component,
|
|
6796
|
-
args: [{ selector: "nui-proportional-widget", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#
|
|
6796
|
+
args: [{ selector: "nui-proportional-widget", encapsulation: ViewEncapsulation.Emulated, standalone: false, template: "<div\n #gridContainer\n class=\"w-100 nui-chart-layout flex-grow-1 p-3\"\n [ngClass]=\"{\n 'prioritize-rows__right': prioritizedGridRows.right,\n 'prioritize-rows__bottom': prioritizedGridRows.bottom,\n 'empty-grid': !(widgetData && widgetData.length > 0 && chartAssist)\n }\"\n>\n <div class=\"d-flex chart has-overlay\" *ngIf=\"!isEmpty\">\n <nui-chart class=\"w-100\" [chart]=\"chartAssist.chart\"></nui-chart>\n <nui-chart-donut-content\n *ngIf=\"donutContentPlugin\"\n class=\"nui-proportional-widget__chart-donut-content\"\n [plugin]=\"donutContentPlugin\"\n >\n <div\n class=\"h-100 w-100 d-flex justify-content-center align-items-center text-center\"\n >\n <div class=\"d-inline-block\" nuiZoomContent [useZoom]=\"false\">\n <!-- OLD CONFIG HERE -->\n <ng-container\n *ngIf=\"!configuration?.chartOptions?.donutContentConfig\"\n >\n <ng-container\n nuiComponentPortal\n [componentType]=\"\n contentFormatter?.componentType ||\n 'DonutContentRawFormatterComponent'\n \"\n [properties]=\"contentFormatterProperties\"\n #componentPortal2=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal2.portal\"\n (attached)=\"componentPortal2.attached($event)\"\n ></ng-template>\n </ng-container>\n </ng-container>\n\n <!-- NEW CONFIG HERE -->\n <ng-container\n *ngIf=\"configuration?.chartOptions?.donutContentConfig\"\n >\n <nui-proportional-donut-content\n [widgetData]=\"widgetData\"\n [donutConfig]=\"\n configuration?.chartOptions?.donutContentConfig\n \"\n [chartAssist]=\"chartAssist\"\n ></nui-proportional-donut-content>\n </ng-container>\n </div>\n </div>\n </nui-chart-donut-content>\n </div>\n <div\n class=\"w-100 d-flex legend\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'scrollable' : 'legend-bottom'\n ]\"\n *ngIf=\"hasLegend() && chartAssist\"\n >\n <nui-legend\n class=\"w-100 m-auto\"\n [interactive]=\"false\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n class=\"proportional-chart__legend-series\"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn;\n let i = index\n \"\n [ngClass]=\"\n (prioritizedGridRows.right || prioritizedGridRows.bottom) &&\n 'description-min-width--unset'\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (click)=\"onInteraction(legendSeries)\"\n [class.nui-proportional-widget__legend--interactive]=\"\n interactive\n \"\n >\n <div\n *ngIf=\"\n legendFormatter && legendFormatter.componentType;\n else legendDefaultTile\n \"\n >\n <div description>\n <ng-container\n nuiComponentPortal\n [componentType]=\"legendFormatter.componentType\"\n [properties]=\"{ data: widgetData[i] }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </div>\n <ng-template #legendDefaultTile>\n <nui-rich-legend-tile\n [value]=\"\n computeLegendTileValue(legendSeries.data[0])\n | nuiDashboardUnitConversion\n \"\n [unitLabel]=\"legendUnitLabel\"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-rich-legend-tile>\n\n <nui-icon\n legendTransclusion\n *ngIf=\"\n seriesToIconMap && seriesToIconMap[legendSeries.id]\n \"\n class=\"align-items-center\"\n [icon]=\"seriesToIconMap[legendSeries.id]\"\n ></nui-icon>\n\n <div\n description\n class=\"description-container d-flex flex-column nui-text-small justify-content-center\"\n >\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': interactive\n }\"\n >\n {{ legendSeries.name }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.name\"\n >\n {{ legendSeries.name }}\n </a>\n </div>\n </ng-template>\n </nui-legend-series>\n </nui-legend>\n </div>\n <div *ngIf=\"isEmpty\" class=\"is-empty\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n </div>\n</div>\n", styles: [".nui-proportional-widget__chart-donut-content{position:absolute}.nui-proportional-widget__legend--interactive{cursor:pointer!important}.has-overlay{overflow:auto}.nui-chart-layout{grid-template:\"axis-label-left axis-label-right .\" 0fr \"chart chart legend\" minmax(60%,auto) \"axis-label-bottom axis-label-bottom .\" 0fr \"legend-bottom legend-bottom .\" minmax(auto,min-content) / 1fr 1fr auto}.nui-chart-layout .legend-bottom{overflow:auto;align-self:auto;padding-left:0}.prioritize-rows__right .nui-legend-series,.prioritize-rows__bottom .nui-legend-series{max-width:unset;width:100%}.prioritize-rows .legend{justify-self:start}.prioritize-rows__right{grid-template:\"chart chart .\" 60% \"legend legend .\" 40%}.prioritize-rows__bottom{grid-template:\"chart chart .\" 60% \"legend-bottom legend-bottom .\" 40%}.empty-grid{grid-template-columns:1fr;grid-template-rows:1fr}.proportional-chart__legend-series .link.description-primary{color:var(--nui-color-text-link,#006791)}.is-empty{display:grid;place-content:center;height:100%}\n"] }]
|
|
6797
6797
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.NgZone }, { type: i0.KeyValueDiffers }, { type: i2.EventBus, decorators: [{
|
|
6798
6798
|
type: Inject,
|
|
6799
6799
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -7843,7 +7843,7 @@ class TableWidgetComponent {
|
|
|
7843
7843
|
SearchFeatureAddonService,
|
|
7844
7844
|
VirtualScrollFeatureAddonService,
|
|
7845
7845
|
PaginatorFeatureAddonService,
|
|
7846
|
-
], viewQueries: [{ propertyName: "table", first: true, predicate: ["widgetTable"], descendants: true }, { propertyName: "paginator", first: true, predicate: ["paginator"], descendants: true }, { propertyName: "vscrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "tableRows", predicate: TableRowComponent, descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"h-100 d-flex justify-content-center align-items-center\"\n *ngIf=\"!shouldDisplayTable()\"\n>\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n<!-- h-100 gets added only when there's data to show to prevent an extra scrollbar when the table is empty -->\n<!-- Using invisible class instead of *ngIf as an non-virtual-scroll breakable way to hide the content. -->\n<div\n class=\"nui-table-widget d-flex flex-column\"\n [ngClass]=\"shouldDisplayTable() ? 'h-100' : 'invisible'\"\n>\n <div class=\"mr-2 mb-2 flex-row\" *ngIf=\"isSearchEnabled\">\n <nui-search\n class=\"unlimited-width d-flex justify-content-end flex-grow-1\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearchInputChanged($event)\"\n >\n </nui-search>\n @if (isSearchLimitWarningDisplayed()) {\n <nui-message\n class=\"nui-table-search-limit-warning\"\n type=\"warning\"\n [allowDismiss]=\"false\"\n i18n>\n Search query limit is {{ searchLimitMaxLength }} characters.\n </nui-message>\n }\n </div>\n <div\n class=\"flex-row h-100 nui-table-widget-container\"\n [nuiDelayedMousePresenceDetection]=\"\n delayedMousePresenceDetectionEnabled\n \"\n [delay]=\"configuration.scrollActivationDelayMs\"\n [mousePresentSubject]=\"mousePresent$\"\n >\n <!-- Note: Using inline style to let tableStickyHeader pick the actual height and update it with header height when it is detached -->\n <cdk-virtual-scroll-viewport\n class=\"calc-height\"\n style=\"height: calc(100% - 2px)\"\n tableStickyHeader\n [itemSize]=\"rowHeight\"\n [ngClass]=\"{\n 'virtual-scroll-disabled':\n (mousePresent$ | async) === false &&\n delayedMousePresenceDetectionEnabled\n }\"\n >\n <table\n class=\"nui-table-widget__main\"\n nui-table\n [reorderable]=\"configuration?.reorderable\"\n [sortable]=\"sortable\"\n [selection]=\"selection\"\n [selectionConfig]=\"configuration?.selectionConfiguration\"\n [totalItems]=\"totalItems\"\n [paginatorUsed]=\"hasPaginator && configuration?.selectionConfiguration?.allPages\"\n [dataSource]=\"hasVirtualScroll ? virtualScrollAddon.visibleItems : tableData\"\n [sortedColumn]=\"sortedColumn\"\n (sortOrderChanged)=\"onSortOrderChanged($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n [trackBy]=\"dataTrackBy()\"\n #widgetTable\n >\n <ng-container\n nuiColumnDef=\"{{ column.id }}\"\n *ngFor=\"let column of columns; trackBy: columnTrackBy\"\n >\n <th\n nui-header-cell\n [isColumnSortingDisabled]=\"!column.sortable\"\n *nuiHeaderCellDef\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"columnsWidthMap.get(column.id)\"\n [style.min-width.px]=\"columnsWidthMap.get(column.id)\"\n [title]=\"column.label\"\n [tooltipText]=\"\n headerTooltipsEnabled ? column.label : undefined\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n {{ column.label }}\n </th>\n <ng-container>\n <td\n nui-cell\n *nuiCellDef=\"let element\"\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [style.min-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"formatter\"\n *ngIf=\"element[column.id] && column.formatter\"\n [componentType]=\"\n column.formatter?.componentType\n \"\n [properties]=\"element[column.id]\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"\n componentPortal.attached($event)\n \"\n ></ng-template>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n <tr nui-header-row *nuiHeaderRowDef=\"headers\"></tr>\n <ng-template\n nuiRowDef\n cdkVirtualFor\n let-row\n [nuiRowDefColumns]=\"headers\"\n [cdkVirtualForOf]=\"tableData\"\n [cdkVirtualForTemplateCacheSize]=\"10\"\n [cdkVirtualForTrackBy]=\"dataTrackBy()\"\n >\n <tr\n nui-row\n (click)=\"onInteraction(row, $event)\"\n [attr.role]=\"interactive ? 'button' : ''\"\n density=\"tiny\"\n [rowObject]=\"row.__record\"\n [clickableRow]=\"clickableRow\"\n ></tr>\n </ng-template>\n </table>\n </cdk-virtual-scroll-viewport>\n </div>\n <div [hidden]=\"!hasPaginator\" class=\"mt-2\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</div>\n\n<ng-template #footer>\n <footer>\n <nui-paginator\n #paginator\n id=\"nui-table-widget-paginator\"\n [appendToBody]=\"true\"\n [page]=\"paginatorAddon.paginatorState.page\"\n [pageSize]=\"paginatorAddon.paginatorState.pageSize\"\n [pageSizeSet]=\"paginatorAddon.paginatorState.pageSizeSet\"\n [total]=\"paginatorAddon.paginatorState.total\"\n (pagerAction)=\"onPagerAction($event)\"\n >\n </nui-paginator>\n </footer>\n</ng-template>\n", styles: [".nui-table-widget{overflow:auto;width:100%}.nui-table-widget .display-contents{display:contents}.nui-table-widget__main{flex:1 1 auto}.nui-table-widget__paginator{margin-top:10px}.nui-table-widget__overflow{overflow-y:auto}.nui-table-widget .nui-table-widget-container .virtual-scroll-disabled.cdk-virtual-scroll-viewport{overflow:hidden!important}.nui-table-widget .nui-table-search-limit-warning{display:block;margin-top:5px}:host-context(.mobile) .calc-height{min-height:200px}:host.table-widget-fullwidth{width:calc(100% - 10px)}.invisible{height:0}@-moz-document url-prefix(){.nui-table-widget-container{margin-right:10px}}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.TableComponent, selector: "nui-table, table[nui-table]", inputs: ["reorderable", "sortable", "resizable", "selectable", "selectionConfig", "totalItems", "dataSource", "selection", "sortedColumn", "paginatorUsed"], outputs: ["columnsOrderChange", "sortOrderChanged", "selectionChange", "columnsWidthChange"], exportAs: ["nuiTable"] }, { kind: "directive", type: i2.TableHeaderRowDefDirective, selector: "[nuiHeaderRowDef]", inputs: ["nuiHeaderRowDef", "nuiHeaderRowDefSticky"] }, { kind: "directive", type: i2.TableCellDefDirective, selector: "[nuiCellDef]" }, { kind: "directive", type: i2.TableRowDefDirective, selector: "[nuiRowDef]", inputs: ["nuiRowDefColumns", "nuiRowDefWhen"] }, { kind: "component", type: i2.TableHeaderRowComponent, selector: "nui-header-row, tr[nui-header-row]", inputs: ["density"], exportAs: ["nuiHeaderRow"] }, { kind: "component", type: i2.TableRowComponent, selector: "nui-row, tr[nui-row]", inputs: ["density", "rowObject", "clickableRow", "clickableRowConfig"], exportAs: ["nuiRow"] }, { kind: "directive", type: i2.TableHeaderCellDefDirective, selector: "[nuiHeaderCellDef]" }, { kind: "component", type: i2.TableHeaderCellComponent, selector: "nui-header-cell, th[nui-header-cell]", inputs: ["alignment", "tooltipText", "isColumnSortingDisabled"] }, { kind: "directive", type: i2.TableCellDirective, selector: "nui-cell, td[nui-cell]", inputs: ["tooltipText", "alignment"] }, { kind: "directive", type: i2.TableColumnDefDirective, selector: "[nuiColumnDef]", inputs: ["nuiColumnDef", "type", "columnWidth"] }, { kind: "directive", type: i2.TableStickyHeaderDirective, selector: "cdk-virtual-scroll-viewport[tableStickyHeader]", inputs: ["tableStickyHeader"] }, { kind: "directive", type: i11.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i11.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i11.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: i2.SearchComponent, selector: "nui-search", inputs: ["captureFocus", "name", "isInErrorState", "placeholder", "value"], outputs: ["cancel", "focusChange", "inputChange", "search"] }, { kind: "component", type: i2.PaginatorComponent, selector: "nui-paginator", inputs: ["itemsList", "page", "pageSize", "pageSizeSet", "total", "dots", "hideIfEmpty", "hide", "activeClass", "disabledClass", "adjacent", "maxElements", "showPrevNext", "popupDirectionTop", "popupBaseElementSelector", "appendToBody"], outputs: ["pagerAction", "pageChange"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "directive", type: DelayedMousePresenceDetectionDirective, selector: "[nuiDelayedMousePresenceDetection]", inputs: ["nuiDelayedMousePresenceDetection", "mousePresentSubject", "delay"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7846
|
+
], viewQueries: [{ propertyName: "table", first: true, predicate: ["widgetTable"], descendants: true }, { propertyName: "paginator", first: true, predicate: ["paginator"], descendants: true }, { propertyName: "vscrollViewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true }, { propertyName: "tableRows", predicate: TableRowComponent, descendants: true, read: ElementRef }], usesOnChanges: true, ngImport: i0, template: "<div\n class=\"h-100 d-flex justify-content-center align-items-center\"\n *ngIf=\"!shouldDisplayTable()\"\n>\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n<!-- h-100 gets added only when there's data to show to prevent an extra scrollbar when the table is empty -->\n<!-- Using invisible class instead of *ngIf as an non-virtual-scroll breakable way to hide the content. -->\n<div\n class=\"nui-table-widget d-flex flex-column\"\n [ngClass]=\"shouldDisplayTable() ? 'h-100' : 'invisible'\"\n>\n <div class=\"mr-2 mb-2 flex-row\" *ngIf=\"isSearchEnabled\">\n <nui-search\n class=\"unlimited-width d-flex justify-content-end flex-grow-1\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearchInputChanged($event)\"\n >\n </nui-search>\n @if (isSearchLimitWarningDisplayed()) {\n <nui-message\n class=\"nui-table-search-limit-warning\"\n type=\"warning\"\n [allowDismiss]=\"false\"\n i18n>\n Search query limit is {{ searchLimitMaxLength }} characters.\n </nui-message>\n }\n </div>\n <div\n class=\"flex-row h-100 nui-table-widget-container\"\n [nuiDelayedMousePresenceDetection]=\"\n delayedMousePresenceDetectionEnabled\n \"\n [delay]=\"configuration.scrollActivationDelayMs\"\n [mousePresentSubject]=\"mousePresent$\"\n >\n <!-- Note: Using inline style to let tableStickyHeader pick the actual height and update it with header height when it is detached -->\n <cdk-virtual-scroll-viewport\n class=\"calc-height\"\n style=\"height: calc(100% - 2px)\"\n tableStickyHeader\n [itemSize]=\"rowHeight\"\n [ngClass]=\"{\n 'virtual-scroll-disabled':\n (mousePresent$ | async) === false &&\n delayedMousePresenceDetectionEnabled\n }\"\n >\n <table\n class=\"nui-table-widget__main\"\n nui-table\n [reorderable]=\"configuration?.reorderable\"\n [sortable]=\"sortable\"\n [selection]=\"selection\"\n [selectionConfig]=\"configuration?.selectionConfiguration\"\n [totalItems]=\"totalItems\"\n [paginatorUsed]=\"hasPaginator && configuration?.selectionConfiguration?.allPages\"\n [dataSource]=\"hasVirtualScroll ? virtualScrollAddon.visibleItems : tableData\"\n [sortedColumn]=\"sortedColumn\"\n (sortOrderChanged)=\"onSortOrderChanged($event)\"\n (selectionChange)=\"onSelectionChange($event)\"\n [trackBy]=\"dataTrackBy()\"\n #widgetTable\n >\n <ng-container\n nuiColumnDef=\"{{ column.id }}\"\n *ngFor=\"let column of columns; trackBy: columnTrackBy\"\n >\n <th\n nui-header-cell\n [isColumnSortingDisabled]=\"!column.sortable\"\n *nuiHeaderCellDef\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"columnsWidthMap.get(column.id)\"\n [style.min-width.px]=\"columnsWidthMap.get(column.id)\"\n [title]=\"column.label\"\n [tooltipText]=\"\n headerTooltipsEnabled ? column.label : undefined\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n {{ column.label }}\n </th>\n <ng-container>\n <td\n nui-cell\n *nuiCellDef=\"let element\"\n [style.width.px]=\"columnsWidthMap.get(column.id)\"\n [style.max-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [style.min-width.px]=\"\n columnsWidthMap.get(column.id)\n \"\n [alignment]=\"getColumnAlignment(column)\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"formatter\"\n *ngIf=\"element[column.id] && column.formatter\"\n [componentType]=\"\n column.formatter?.componentType\n \"\n [properties]=\"element[column.id]\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"\n componentPortal.attached($event)\n \"\n ></ng-template>\n </ng-container>\n </td>\n </ng-container>\n </ng-container>\n <tr nui-header-row *nuiHeaderRowDef=\"headers\"></tr>\n <ng-template\n nuiRowDef\n cdkVirtualFor\n let-row\n [nuiRowDefColumns]=\"headers\"\n [cdkVirtualForOf]=\"tableData\"\n [cdkVirtualForTemplateCacheSize]=\"10\"\n [cdkVirtualForTrackBy]=\"dataTrackBy()\"\n >\n <tr\n nui-row\n (click)=\"onInteraction(row, $event)\"\n [attr.role]=\"interactive ? 'button' : ''\"\n density=\"tiny\"\n [rowObject]=\"row.__record\"\n [clickableRow]=\"clickableRow\"\n ></tr>\n </ng-template>\n </table>\n </cdk-virtual-scroll-viewport>\n </div>\n <div [hidden]=\"!hasPaginator\" class=\"mt-2\">\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</div>\n\n<ng-template #footer>\n <footer>\n <nui-paginator\n #paginator\n id=\"nui-table-widget-paginator\"\n [appendToBody]=\"true\"\n [page]=\"paginatorAddon.paginatorState.page\"\n [pageSize]=\"paginatorAddon.paginatorState.pageSize\"\n [pageSizeSet]=\"paginatorAddon.paginatorState.pageSizeSet\"\n [total]=\"paginatorAddon.paginatorState.total\"\n (pagerAction)=\"onPagerAction($event)\"\n >\n </nui-paginator>\n </footer>\n</ng-template>\n", styles: [".nui-table-widget{overflow:auto;width:100%}.nui-table-widget .display-contents{display:contents}.nui-table-widget__main{flex:1 1 auto}.nui-table-widget__paginator{margin-top:10px}.nui-table-widget__overflow{overflow-y:auto}.nui-table-widget .nui-table-widget-container .virtual-scroll-disabled.cdk-virtual-scroll-viewport{overflow:hidden!important}.nui-table-widget .nui-table-search-limit-warning{display:block;margin-top:5px}:host-context(.mobile) .calc-height{min-height:200px}:host.table-widget-fullwidth{width:calc(100% - 10px)}.invisible{height:0}@-moz-document url-prefix(){.nui-table-widget-container{margin-right:10px}}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.TableComponent, selector: "nui-table, table[nui-table]", inputs: ["reorderable", "sortable", "resizable", "selectable", "selectionConfig", "totalItems", "dataSource", "selection", "sortedColumn", "paginatorUsed"], outputs: ["columnsOrderChange", "sortOrderChanged", "selectionChange", "columnsWidthChange"], exportAs: ["nuiTable"] }, { kind: "directive", type: i2.TableHeaderRowDefDirective, selector: "[nuiHeaderRowDef]", inputs: ["nuiHeaderRowDef", "nuiHeaderRowDefSticky"] }, { kind: "directive", type: i2.TableCellDefDirective, selector: "[nuiCellDef]" }, { kind: "directive", type: i2.TableRowDefDirective, selector: "[nuiRowDef]", inputs: ["nuiRowDefColumns", "nuiRowDefWhen"] }, { kind: "component", type: i2.TableHeaderRowComponent, selector: "nui-header-row, tr[nui-header-row]", inputs: ["density"], exportAs: ["nuiHeaderRow"] }, { kind: "component", type: i2.TableRowComponent, selector: "nui-row, tr[nui-row]", inputs: ["density", "rowObject", "clickableRow", "clickableRowConfig"], exportAs: ["nuiRow"] }, { kind: "directive", type: i2.TableHeaderCellDefDirective, selector: "[nuiHeaderCellDef]" }, { kind: "component", type: i2.TableHeaderCellComponent, selector: "nui-header-cell, th[nui-header-cell]", inputs: ["alignment", "tooltipText", "isColumnSortingDisabled"] }, { kind: "directive", type: i2.TableCellDirective, selector: "nui-cell, td[nui-cell]", inputs: ["tooltipText", "alignment"] }, { kind: "directive", type: i2.TableColumnDefDirective, selector: "[nuiColumnDef]", inputs: ["nuiColumnDef", "type", "columnWidth"] }, { kind: "directive", type: i2.TableStickyHeaderDirective, selector: "cdk-virtual-scroll-viewport[tableStickyHeader]", inputs: ["tableStickyHeader"] }, { kind: "directive", type: i11.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i11.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i11.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: i2.SearchComponent, selector: "nui-search", inputs: ["captureFocus", "name", "isInErrorState", "placeholder", "inputId", "value"], outputs: ["captureFocusChange", "valueChange", "cancel", "focusChange", "inputChange", "search"] }, { kind: "component", type: i2.PaginatorComponent, selector: "nui-paginator", inputs: ["itemsList", "page", "pageSize", "pageSizeSet", "total", "dots", "hideIfEmpty", "hide", "activeClass", "disabledClass", "adjacent", "maxElements", "showPrevNext", "popupDirectionTop", "popupBaseElementSelector", "appendToBody"], outputs: ["pagerAction", "pageChange"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "directive", type: DelayedMousePresenceDetectionDirective, selector: "[nuiDelayedMousePresenceDetection]", inputs: ["nuiDelayedMousePresenceDetection", "mousePresentSubject", "delay"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
7847
7847
|
}
|
|
7848
7848
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableWidgetComponent, decorators: [{
|
|
7849
7849
|
type: Component,
|
|
@@ -8039,7 +8039,7 @@ class TimeframeSelectionComponent {
|
|
|
8039
8039
|
}
|
|
8040
8040
|
}
|
|
8041
8041
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TimeframeSelectionComponent, deps: [{ token: PizzagnaService }, { token: i2.TimeframeService }, { token: TimeframeSerializationService }, { token: i2.HistoryStorage }, { token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8042
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TimeframeSelectionComponent, isStandalone: false, selector: "nui-timeframe-selection", inputs: { componentId: "componentId", minDate: "minDate", maxDate: "maxDate", timeframe: "timeframe" }, host: { properties: { "class": "this.elementClass" } }, providers: [HistoryStorage], usesOnChanges: true, ngImport: i0, template: "<nui-time-frame-bar\n [minDate]=\"minDateAsMoment\"\n [maxDate]=\"maxDateAsMoment\"\n [timeFrame]=\"currentTimeframe\"\n (timeFrameChange)=\"onTimeframeChange(history.restart($event))\"\n [historyIndex]=\"history.index\"\n (undo)=\"onTimeframeChange(history.undo())\"\n (clear)=\"onTimeframeChange(history.restart())\"\n>\n <!-- content for default projection slot -->\n <nui-icon icon=\"calendar\" class=\"pr-3\"></nui-icon>\n {{ currentTimeframe | timeFrame }}\n\n <!-- content for time frame selection projection slot -->\n <nui-quick-picker\n [presets]=\"timeframeService.currentPresets\"\n timeFrameSelection\n >\n <nui-time-frame-picker></nui-time-frame-picker>\n </nui-quick-picker>\n</nui-time-frame-bar>\n", styles: [":host{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"], dependencies: [{ kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TimeFrameBarComponent, selector: "nui-time-frame-bar", inputs: ["minDate", "maxDate", "timeFrame", "historyIndex"], outputs: ["timeFrameChange", "undo", "clear"] }, { kind: "component", type: i2.QuickPickerComponent, selector: "nui-quick-picker", inputs: ["presets", "pickerTitle", "presetsTitle", "selectedPreset", "presetKeysOrder"], outputs: ["presetSelected"] }, { kind: "component", type: i2.TimeFramePickerComponent, selector: "nui-time-frame-picker", inputs: ["minDate", "maxDate", "startModel", "appendToBody"], outputs: ["changed"] }, { kind: "pipe", type: i2.TimeFrameFormatPipe, name: "timeFrame" }] }); }
|
|
8042
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TimeframeSelectionComponent, isStandalone: false, selector: "nui-timeframe-selection", inputs: { componentId: "componentId", minDate: "minDate", maxDate: "maxDate", timeframe: "timeframe" }, host: { properties: { "class": "this.elementClass" } }, providers: [HistoryStorage], usesOnChanges: true, ngImport: i0, template: "<nui-time-frame-bar\n [minDate]=\"minDateAsMoment\"\n [maxDate]=\"maxDateAsMoment\"\n [timeFrame]=\"currentTimeframe\"\n (timeFrameChange)=\"onTimeframeChange(history.restart($event))\"\n [historyIndex]=\"history.index\"\n (undo)=\"onTimeframeChange(history.undo())\"\n (clear)=\"onTimeframeChange(history.restart())\"\n>\n <!-- content for default projection slot -->\n <nui-icon icon=\"calendar\" class=\"pr-3\"></nui-icon>\n {{ currentTimeframe | timeFrame }}\n\n <!-- content for time frame selection projection slot -->\n <nui-quick-picker\n [presets]=\"timeframeService.currentPresets\"\n timeFrameSelection\n >\n <nui-time-frame-picker></nui-time-frame-picker>\n </nui-quick-picker>\n</nui-time-frame-bar>\n", styles: [":host{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);border-bottom:1px solid;border-bottom-color:var(--nui-color-line-default,#d9d9d9)}\n"], dependencies: [{ kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TimeFrameBarComponent, selector: "nui-time-frame-bar", inputs: ["minDate", "maxDate", "timeFrame", "historyIndex"], outputs: ["timeFrameChange", "undo", "clear"] }, { kind: "component", type: i2.QuickPickerComponent, selector: "nui-quick-picker", inputs: ["presets", "pickerTitle", "presetsTitle", "selectedPreset", "presetKeysOrder"], outputs: ["presetSelected"] }, { kind: "component", type: i2.TimeFramePickerComponent, selector: "nui-time-frame-picker", inputs: ["minDate", "maxDate", "startModel", "appendToBody"], outputs: ["changed"] }, { kind: "pipe", type: i2.TimeFrameFormatPipe, name: "timeFrame" }] }); }
|
|
8043
8043
|
}
|
|
8044
8044
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TimeframeSelectionComponent, decorators: [{
|
|
8045
8045
|
type: Component,
|
|
@@ -8793,7 +8793,7 @@ class StatusBarChartComponent extends TimeseriesChartComponent {
|
|
|
8793
8793
|
return index === 0 ? series.legendDescriptionSecondary : "";
|
|
8794
8794
|
}
|
|
8795
8795
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StatusBarChartComponent, deps: [{ token: i2.IconService }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8796
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StatusBarChartComponent, isStandalone: false, selector: "nui-status-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \"\n >\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"\n ></nui-chart>\n <div\n class=\"d-flex flex-column pl-2\"\n [class.justify-content-center]=\"\n configuration.type === timeseriesChartTypes.alert &&\n chartAssist.sparks.length > 1\n \"\n [class.last-legend-margin]=\"\n configuration.type === timeseriesChartTypes.alert &&\n i > 0 &&\n i === chartAssist.sparks.length - 1\n \"\n [class.layout-fixed-legend]=\"configuration.gridConfig?.fixedLayout\"\n *ngIf=\"\n spark.chartSeriesSet?.length > 0 && spark.chartSeriesSet[0];\n let series\n \"\n >\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\"\n >\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\"\n >\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\n )\n \"\n [backgroundColor]=\"\n i === 0\n ? summaryLegendBcgColor\n : chartAssist.palette.standardColors.get(\n series.id\n )\n \"\n [color]=\"\n i === 0\n ? summaryLegendColor\n : chartAssist.palette.textColors.get(series.id)\n \"\n >\n </nui-rich-legend-tile>\n <div\n *ngIf=\"isStatusChart()\"\n class=\"status-bar-chart__legend__tile d-flex justify-content-center align-items-center\"\n >\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"\n ></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"\n ></nui-icon>\n </div>\n <button\n nui-button\n legendMenu\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(series.id)\"\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n </nui-legend>\n </div>\n </div>\n</div>\n", styles: [".status-bar-chart__legend__tile{width:60px;position:relative}.status-bar-chart__legend__tile__background{position:absolute;opacity:.4}.status-bar-chart__legend__tile__icon{position:absolute}:host ::ng-deep .description-container{flex-grow:1}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);max-width:100%}.layout-fixed-legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed-legend nui-legend{margin:0!important;width:100%}.last-legend-margin{justify-content:start!important;margin-top:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }] }); }
|
|
8796
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StatusBarChartComponent, isStandalone: false, selector: "nui-status-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n *ngIf=\"chartAssist\"\n class=\"status-bar-chart\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n class=\"d-flex\"\n *ngFor=\"\n let spark of chartAssist.sparks;\n let i = index;\n trackBy: chartAssist.trackByFn\n \"\n >\n <nui-chart\n class=\"d-flex flex-grow-1\"\n [chart]=\"spark.chart\"\n [nuiChartCollectionId]=\"collectionId\"\n ></nui-chart>\n <div\n class=\"d-flex flex-column pl-2\"\n [class.justify-content-center]=\"\n configuration.type === timeseriesChartTypes.alert &&\n chartAssist.sparks.length > 1\n \"\n [class.last-legend-margin]=\"\n configuration.type === timeseriesChartTypes.alert &&\n i > 0 &&\n i === chartAssist.sparks.length - 1\n \"\n [class.layout-fixed-legend]=\"configuration.gridConfig?.fixedLayout\"\n *ngIf=\"\n spark.chartSeriesSet?.length > 0 && spark.chartSeriesSet[0];\n let series\n \"\n >\n <nui-legend\n class=\"status-bar-chart__legend\"\n [active]=\"chartAssist.isLegendActive\"\n >\n <nui-legend-series\n [descriptionPrimary]=\"series.legendDescriptionPrimary\"\n [descriptionSecondary]=\"getDescriptionSecondary(series, i)\"\n >\n <nui-rich-legend-tile\n *ngIf=\"\n configuration.type === timeseriesChartTypes.alert\n \"\n [value]=\"\n chartAssist.getHighlightedValue(\n series,\n 'y',\n 'value'\n )\n \"\n [backgroundColor]=\"\n i === 0\n ? summaryLegendBcgColor\n : chartAssist.palette.standardColors.get(\n series.id\n )\n \"\n [color]=\"\n i === 0\n ? summaryLegendColor\n : chartAssist.palette.textColors.get(series.id)\n \"\n >\n </nui-rich-legend-tile>\n <div\n *ngIf=\"isStatusChart()\"\n class=\"status-bar-chart__legend__tile d-flex justify-content-center align-items-center\"\n >\n <div\n class=\"w-100 h-100 status-bar-chart__legend__tile__background\"\n [style.background-color]=\"\n getDataPointData(series, 'color')\n \"\n ></div>\n <nui-icon\n *ngIf=\"getDataPointData(series, 'icon'); let icon\"\n class=\"status-bar-chart__legend__tile__icon\"\n [icon]=\"icon\"\n ></nui-icon>\n </div>\n <button\n nui-button\n legendMenu\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(series.id)\"\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n </nui-legend>\n </div>\n </div>\n</div>\n", styles: [".status-bar-chart__legend__tile{width:60px;position:relative}.status-bar-chart__legend__tile__background{position:absolute;opacity:.4}.status-bar-chart__legend__tile__icon{position:absolute}:host ::ng-deep .description-container{flex-grow:1}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);max-width:100%}.layout-fixed-legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed-legend nui-legend{margin:0!important;width:100%}.last-legend-margin{justify-content:start!important;margin-top:7px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }] }); }
|
|
8797
8797
|
}
|
|
8798
8798
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StatusBarChartComponent, decorators: [{
|
|
8799
8799
|
type: Component,
|
|
@@ -9883,11 +9883,11 @@ class LineChartComponent extends XYChartComponent {
|
|
|
9883
9883
|
return new ChartAssist(chart, null, palette);
|
|
9884
9884
|
}
|
|
9885
9885
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LineChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9886
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: LineChartComponent, isStandalone: false, selector: "nui-line-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
9886
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: LineChartComponent, isStandalone: false, selector: "nui-line-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
9887
9887
|
}
|
|
9888
9888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: LineChartComponent, decorators: [{
|
|
9889
9889
|
type: Component,
|
|
9890
|
-
args: [{ selector: "nui-line-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
9890
|
+
args: [{ selector: "nui-line-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
9891
9891
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
9892
9892
|
type: Inject,
|
|
9893
9893
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -9940,11 +9940,11 @@ class StackedAreaChartComponent extends XYChartComponent {
|
|
|
9940
9940
|
return new ChartAssist(chart, stackedArea, palette);
|
|
9941
9941
|
}
|
|
9942
9942
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StackedAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
9943
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StackedAreaChartComponent, isStandalone: false, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
9943
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StackedAreaChartComponent, isStandalone: false, selector: "nui-stacked-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
9944
9944
|
}
|
|
9945
9945
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StackedAreaChartComponent, decorators: [{
|
|
9946
9946
|
type: Component,
|
|
9947
|
-
args: [{ selector: "nui-stacked-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
9947
|
+
args: [{ selector: "nui-stacked-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
9948
9948
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
9949
9949
|
type: Inject,
|
|
9950
9950
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10012,11 +10012,11 @@ class StackedBarChartComponent extends XYChartComponent {
|
|
|
10012
10012
|
return new ChartAssist(chart, stack, palette);
|
|
10013
10013
|
}
|
|
10014
10014
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StackedBarChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10015
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StackedBarChartComponent, isStandalone: false, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10015
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StackedBarChartComponent, isStandalone: false, selector: "nui-stacked-bar-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10016
10016
|
}
|
|
10017
10017
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StackedBarChartComponent, decorators: [{
|
|
10018
10018
|
type: Component,
|
|
10019
|
-
args: [{ selector: "nui-stacked-bar-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
10019
|
+
args: [{ selector: "nui-stacked-bar-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
10020
10020
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10021
10021
|
type: Inject,
|
|
10022
10022
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10063,11 +10063,11 @@ class StackedPercentageAreaChartComponent extends XYChartComponent {
|
|
|
10063
10063
|
return new ChartAssist(chart, stackedPercentageArea, palette);
|
|
10064
10064
|
}
|
|
10065
10065
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StackedPercentageAreaChartComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: DATA_SOURCE, optional: true }, { token: TimeseriesScalesService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10066
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StackedPercentageAreaChartComponent, isStandalone: false, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10066
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: StackedPercentageAreaChartComponent, isStandalone: false, selector: "nui-stacked-percentage-area-chart", usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i4$1.LegendComponent, selector: "nui-legend", inputs: ["active", "interactive", "orientation", "seriesColor", "seriesIcon", "seriesUnitLabel"] }, { kind: "component", type: i4$1.LegendSeriesComponent, selector: "nui-legend-series", inputs: ["active", "interactive", "isSelected", "descriptionPrimary", "descriptionSecondary", "icon", "color", "seriesRenderState"], outputs: ["isSelectedChange"] }, { kind: "component", type: i4$1.RichLegendTileComponent, selector: "nui-rich-legend-tile", inputs: ["unitLabel", "value", "backgroundColor", "color"] }, { kind: "component", type: i4$1.ChartComponent, selector: "nui-chart", inputs: ["chart"] }, { kind: "directive", type: i4$1.ChartCollectionIdDirective, selector: "[nuiChartCollectionId]", inputs: ["nuiChartCollectionId"] }, { kind: "component", type: i4$1.ChartMarkerComponent, selector: "nui-chart-marker", inputs: ["marker", "drawLine", "color", "maxSize"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "component", type: i2.MenuGroupComponent, selector: "nui-menu-group", inputs: ["header"] }, { kind: "pipe", type: i2.MapKeyValuePipe, name: "nuiMapKeyValue" }] }); }
|
|
10067
10067
|
}
|
|
10068
10068
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StackedPercentageAreaChartComponent, decorators: [{
|
|
10069
10069
|
type: Component,
|
|
10070
|
-
args: [{ selector: "nui-stacked-percentage-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#0079aa)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
10070
|
+
args: [{ selector: "nui-stacked-percentage-area-chart", standalone: false, template: "<div\n class=\"nui-chart-layout h-100\"\n [class.layout-fixed]=\"configuration.gridConfig?.fixedLayout\"\n>\n <div\n *ngIf=\"!configuration.gridConfig?.hideYAxisLabel\"\n class=\"axis-label-left nui-text-small\"\n >\n <strong>{{ configuration.leftAxisLabel }}</strong>\n </div>\n <div class=\"chart\">\n <nui-chart\n [nuiChartCollectionId]=\"collectionId\"\n class=\"w-100\"\n [chart]=\"chartAssist.chart\"\n ></nui-chart>\n </div>\n <div\n class=\"d-flex\"\n *ngIf=\"hasLegend()\"\n [ngClass]=\"[\n legendShouldBeAlignedRight() ? 'legend scrollable' : 'legend-bottom'\n ]\"\n >\n <nui-legend\n class=\"m-auto\"\n [active]=\"chartAssist.isLegendActive\"\n [interactive]=\"true\"\n [orientation]=\"\n legendShouldBeAlignedRight() ? 'vertical' : 'horizontal'\n \"\n >\n <nui-legend-series\n *ngIf=\"widgetData.summarySerie && summarySerie\"\n class=\"summary-serie\"\n [interactive]=\"false\"\n (mouseenter)=\"chartAssist.resetVisibleSeries()\"\n >\n <nui-rich-legend-tile\n [value]=\"\n chartAssist.getHighlightedValue(\n summarySerie,\n 'y',\n 'tick'\n )\n \"\n [backgroundColor]=\"summaryLegendBcgColor\"\n [color]=\"summaryLegendColor\"\n >\n </nui-rich-legend-tile>\n\n <div description class=\"description-container\">\n <div class=\"description-text nui-text-small\">\n <div\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n [title]=\"summarySerie.legendDescriptionPrimary\"\n >\n {{ summarySerie.legendDescriptionPrimary }}\n </div>\n\n <div\n class=\"description description-secondary\"\n [title]=\"summarySerie.legendDescriptionSecondary\"\n >\n {{ summarySerie.legendDescriptionSecondary }}\n </div>\n </div>\n </div>\n\n <button\n nui-button\n legendMenu\n icon=\"remove\"\n type=\"button\"\n displayStyle=\"action\"\n *ngIf=\"displayDeleteButton()\"\n (click)=\"removeMetric(summarySerie.id)\"\n displayStyle=\"action\"\n ></button>\n </nui-legend-series>\n\n <nui-legend-series\n class=\"xy-chart__legend-series\"\n [ngClass]=\"\n 'xy-chart__legend-series--state-' +\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n *ngFor=\"\n let legendSeries of chartAssist.legendSeriesSet;\n trackBy: chartAssist.seriesTrackByFn\n \"\n [isSelected]=\"!chartAssist.isSeriesHidden(legendSeries.id)\"\n (isSelectedChange)=\"\n chartAssist.toggleSeries(legendSeries.id, $event)\n \"\n (mouseenter)=\"chartAssist.emphasizeSeries(legendSeries.id)\"\n (mouseleave)=\"chartAssist.resetVisibleSeries()\"\n [seriesRenderState]=\"\n chartAssist.renderStatesIndex[legendSeries.id]?.state\n \"\n >\n <nui-rich-legend-tile\n [value]=\"getLegendValue(legendSeries, valueAccessorKey)\"\n [backgroundColor]=\"\n chartAssist.palette.standardColors.get(legendSeries.id)\n \"\n [color]=\"\n chartAssist.palette.textColors.get(legendSeries.id)\n \"\n >\n <nui-chart-marker\n rightEdge\n [marker]=\"chartAssist.markers.get(legendSeries.id)\"\n [color]=\"\n chartAssist.palette.standardColors.get(\n legendSeries.id\n )\n \"\n >\n </nui-chart-marker>\n </nui-rich-legend-tile>\n <div\n description\n class=\"description-container d-flex nui-text-small justify-content-center\"\n >\n <div class=\"descriptions\">\n <div\n *ngIf=\"!legendSeries.link\"\n class=\"description description-primary\"\n [ngClass]=\"{\n 'nui-text-link-small link': seriesInteractive\n }\"\n (click)=\"onPrimaryDescClick($event, legendSeries)\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </div>\n <a\n class=\"description description-primary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"legendSeries.link\"\n [href]=\"legendSeries.link\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionPrimary\"\n >\n {{ legendSeries.legendDescriptionPrimary }}\n </a>\n <div\n class=\"description description-secondary\"\n *ngIf=\"\n !legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </div>\n <a\n class=\"description description-secondary nui-text-link-small link\"\n (click)=\"$event.stopPropagation()\"\n *ngIf=\"\n legendSeries.secondaryLink &&\n !widgetData.summarySerie\n \"\n [href]=\"legendSeries.secondaryLink\"\n rel=\"noopener noreferrer\"\n [title]=\"legendSeries.legendDescriptionSecondary\"\n >\n {{ legendSeries.legendDescriptionSecondary }}\n </a>\n </div>\n <nui-icon\n *ngIf=\"legendSeries.realtime\"\n icon=\"fast-poll\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n <nui-icon\n *ngIf=\"legendSeries.transformer\"\n icon=\"performance\"\n iconColor=\"primary-blue\"\n ></nui-icon>\n </div>\n <nui-menu\n legendMenu\n *ngIf=\"displayLegendMenu()\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-group>\n <nui-menu-action\n i18n\n (actionDone)=\"removeMetric(legendSeries.id)\"\n >Remove</nui-menu-action\n >\n </nui-menu-group>\n <nui-menu-group header=\"Display Transforms\" i18n-header>\n <nui-menu-action\n *ngFor=\"let tr of transformers | nuiMapKeyValue\"\n [class.selected]=\"\n legendSeries.transformer?.name ===\n tr.value.transformer?.name\n \"\n (actionDone)=\"\n transformData(legendSeries.id, tr.key)\n \"\n >\n {{ tr.value.displayName }}\n </nui-menu-action>\n </nui-menu-group>\n </nui-menu>\n </nui-legend-series>\n </nui-legend>\n </div>\n</div>\n", styles: [".xy-chart__legend-series .link.description-primary,.xy-chart__legend-series .link.description-secondary{color:var(--nui-color-text-link,#006791)}.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-primary,.xy-chart__legend-series:not(:hover).xy-chart__legend-series--state-hidden .link.description-secondary{color:var(--nui-color-text-default,#111)}.layout-fixed .legend{max-width:250px;min-width:250px;padding-left:8px!important}.layout-fixed .legend nui-legend{margin:0!important;width:100%}nui-legend-series{width:100%}nui-legend-series:hover{background-color:var(--nui-color-bg-content-hover,#f2f2f2);cursor:pointer}nui-icon{padding:0 5px;align-items:center}.selected{background-color:#00c4d21a}.selected:hover{background-color:#00c4d233}:host ::ng-deep div:has(>.description-container){flex-grow:1;overflow:hidden}:host ::ng-deep div:has(>.description-container) .descriptions{overflow:hidden}\n"] }]
|
|
10071
10071
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10072
10072
|
type: Inject,
|
|
10073
10073
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10348,7 +10348,7 @@ class TimeseriesWidgetComponent {
|
|
|
10348
10348
|
this.configuration?.type !== TimeseriesChartTypes.status);
|
|
10349
10349
|
}
|
|
10350
10350
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TimeseriesWidgetComponent, deps: [{ token: TimeseriesChartPresetService }, { token: i0.ChangeDetectorRef }, { token: i4$1.TimeseriesZoomPluginsSyncService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10351
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TimeseriesWidgetComponent, isStandalone: false, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"h-100 timeseries-widget-content\"\n *ngIf=\"shouldShowChart()\"\n (mouseleave)=\"toggleLeave()\"\n (mouseenter)=\"toggleEnter()\"\n>\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId,\n zoomPlugins: zoomPlugins\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n <nui-timeseries-inspection-menu\n *ngIf=\"\n configuration?.enableZoom &&\n configuration?.projectType ===\n timeseriesWidgetProjectType.PerfstackApp &&\n zoomPlugins.length\n \"\n [allowed]=\"allowPopover\"\n [plugin]=\"zoomPlugins[0]\"\n [collectionId]=\"collectionId\"\n [exploringEnabled]=\"isExploringEnabled()\"\n [metricIds]=\"configuration?.metricIds\"\n ></nui-timeseries-inspection-menu>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n", styles: [".timeseries-widget-content{padding:10px;position:relative}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: TimeseriesInspectionMenuComponent, selector: "nui-timeseries-inspection-menu", inputs: ["plugin", "exploringEnabled", "metricIds", "collectionId", "allowed"] }] }); }
|
|
10351
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TimeseriesWidgetComponent, isStandalone: false, selector: "nui-timeseries-widget", inputs: { widgetData: "widgetData", configuration: "configuration", collectionId: "collectionId", elementClass: "elementClass" }, host: { properties: { "class": "this.elementClass" } }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"h-100 timeseries-widget-content\"\n *ngIf=\"shouldShowChart()\"\n (mouseleave)=\"toggleLeave()\"\n (mouseenter)=\"toggleEnter()\"\n>\n <ng-container\n nuiComponentPortal\n componentId=\"timeseriesWidgetChart\"\n [componentType]=\"chartPreset.componentType\"\n [properties]=\"{\n widgetData: widgetData,\n configuration: configuration,\n collectionId: collectionId || configuration?.collectionId,\n zoomPlugins: zoomPlugins\n }\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n <nui-timeseries-inspection-menu\n *ngIf=\"\n configuration?.enableZoom &&\n configuration?.projectType ===\n timeseriesWidgetProjectType.PerfstackApp &&\n zoomPlugins.length\n \"\n [allowed]=\"allowPopover\"\n [plugin]=\"zoomPlugins[0]\"\n [collectionId]=\"collectionId\"\n [exploringEnabled]=\"isExploringEnabled()\"\n [metricIds]=\"configuration?.metricIds\"\n ></nui-timeseries-inspection-menu>\n</div>\n<div *ngIf=\"!shouldShowChart()\">\n <nui-image image=\"no-data-to-show\"></nui-image>\n</div>\n", styles: [".timeseries-widget-content{padding:10px;position:relative}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ImageComponent, selector: "nui-image", inputs: ["image", "description", "float", "margin", "isWatermark", "width", "height", "autoFill", "role"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: TimeseriesInspectionMenuComponent, selector: "nui-timeseries-inspection-menu", inputs: ["plugin", "exploringEnabled", "metricIds", "collectionId", "allowed"] }] }); }
|
|
10352
10352
|
}
|
|
10353
10353
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TimeseriesWidgetComponent, decorators: [{
|
|
10354
10354
|
type: Component,
|
|
@@ -10560,6 +10560,12 @@ class WidgetHeaderComponent {
|
|
|
10560
10560
|
get state() {
|
|
10561
10561
|
return this.collapsed && this.collapsible ? "collapsed" : "expanded";
|
|
10562
10562
|
}
|
|
10563
|
+
get hasTitleIcon() {
|
|
10564
|
+
return !!this.titleIcon;
|
|
10565
|
+
}
|
|
10566
|
+
get showTitleIcon() {
|
|
10567
|
+
return this.hasTitleIcon;
|
|
10568
|
+
}
|
|
10563
10569
|
constructor(eventBus, pizzagnaService, changeDetector, eventProxy, linkProvider) {
|
|
10564
10570
|
this.eventBus = eventBus;
|
|
10565
10571
|
this.pizzagnaService = pizzagnaService;
|
|
@@ -10580,6 +10586,7 @@ class WidgetHeaderComponent {
|
|
|
10580
10586
|
*/
|
|
10581
10587
|
this.collapsible = false;
|
|
10582
10588
|
this.reloadable = true;
|
|
10589
|
+
this.titleIconSize = "small";
|
|
10583
10590
|
this.hideMenu = false;
|
|
10584
10591
|
/**
|
|
10585
10592
|
* Boolean which tells what state the widget header is in if collapsible
|
|
@@ -10660,7 +10667,7 @@ class WidgetHeaderComponent {
|
|
|
10660
10667
|
return true;
|
|
10661
10668
|
}
|
|
10662
10669
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetHeaderComponent, deps: [{ token: PIZZAGNA_EVENT_BUS }, { token: PizzagnaService }, { token: i0.ChangeDetectorRef }, { token: WidgetToDashboardEventProxyService, optional: true }, { token: HEADER_LINK_PROVIDER, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10663
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetHeaderComponent, isStandalone: false, selector: "nui-widget-header", inputs: { componentId: "componentId", editMode: "editMode", editable: "editable", removable: "removable", collapsible: "collapsible", reloadable: "reloadable", title: "title", subtitle: "subtitle", hideMenu: "hideMenu", url: "url", collapsed: "collapsed" }, host: { properties: { "class.nui-widget-header": "this.hostClass" } }, viewQueries: [{ propertyName: "widgetHeaderCustomElement", first: true, predicate: ["widgetHeaderCustomElement"], descendants: true }], ngImport: i0, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\"\n >\n <div\n *ngIf=\"collapsed && collapsible\"\n class=\"collapse-container\"\n (click)=\"toggleCollapsed()\"\n >\n <span class=\"collapse-container__line\"></span>\n </div>\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\"\n >\n <nui-icon icon=\"drag\" iconColor=\"gray\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\"\n >\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \"\n >\n <!-- text only header with no url defined -->\n <div\n class=\"nui-text-widget nui-widget__header__content-title\"\n [title]=\"title\"\n *ngIf=\"!url || editMode\"\n >\n {{ title }}\n </div>\n\n <!-- link version of the header -->\n <div *ngIf=\"url && !editMode\">\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n class=\"nui-text-widget nui-widget__header__content-title\"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </div>\n\n <div\n *ngIf=\"subtitle\"\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\"\n >\n {{ subtitle }}\n </div>\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n >\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"\n ></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n (click)=\"toggleCollapsed()\"\n ></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-action\n *ngIf=\"reloadable\"\n (actionDone)=\"onReloadData()\"\n >\n <nui-icon icon=\"reload\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n </nui-menu>\n <!--TODO: After NUI-3431 should be changed to regular menu instead of popup-->\n <nui-popup\n class=\"nui-widget-header__action-remove\"\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\"\n >\n <span nuiTooltip=\"Remove widget\" i18n-nuiTooltip>\n <button\n nui-button\n nuiPopupToggle\n type=\"button\"\n icon=\"remove\"\n iconColor=\"red\"\n displayStyle=\"action\"\n i18n\n ></button>\n </span>\n <div popupAreaContent class=\"nui-menu\">\n <nui-menu-action\n type=\"destructive\"\n (actionDone)=\"removeWidget()\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </div>\n </nui-popup>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [".nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "directive", type: i2.PopupToggleDirective, selector: "[nuiPopupToggle]", inputs: ["isDisabled", "disabled"], outputs: ["toggle"] }, { kind: "component", type: i2.PopupComponent, selector: "nui-popup", inputs: ["width", "overlayConfig", "contextClass", "directionTop", "directionRight", "manualOpenControl", "appendToBody", "baseElementSelector", "isHostToggleRef", "ariaLabel", "isOpen", "visible"], outputs: ["opened"] }, { kind: "directive", type: i2.TooltipDirective, selector: "[nuiTooltip]", inputs: ["tooltipPlacement", "nuiTooltipDisabled", "nuiTooltipEllipsis", "nuiTooltip"], exportAs: ["nuiTooltip"] }], animations: [
|
|
10670
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: WidgetHeaderComponent, isStandalone: false, selector: "nui-widget-header", inputs: { componentId: "componentId", editMode: "editMode", editable: "editable", removable: "removable", collapsible: "collapsible", reloadable: "reloadable", title: "title", titleIcon: "titleIcon", titleIconSize: "titleIconSize", titleIconTooltip: "titleIconTooltip", subtitle: "subtitle", hideMenu: "hideMenu", url: "url", collapsed: "collapsed" }, host: { properties: { "class.nui-widget-header": "this.hostClass" } }, viewQueries: [{ propertyName: "widgetHeaderCustomElement", first: true, predicate: ["widgetHeaderCustomElement"], descendants: true }], ngImport: i0, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\"\n >\n <div\n *ngIf=\"collapsed && collapsible\"\n class=\"collapse-container\"\n (click)=\"toggleCollapsed()\"\n >\n <span class=\"collapse-container__line\"></span>\n </div>\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\"\n >\n <nui-icon icon=\"drag\" iconColor=\"gray\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\"\n >\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \"\n >\n <div class=\"nui-widget__header__content-title-row\">\n <!-- text only header with no url defined -->\n @if (!url || editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [title]=\"title\"\n >\n {{ title }}\n </h2>\n }\n\n <!-- link version of the header -->\n @if (url && !editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [title]=\"title\"\n >\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </h2>\n }\n\n @if (showTitleIcon) {\n <span\n class=\"nui-widget__header__content-title-icon\"\n [attr.aria-label]=\"titleIconTooltip || null\"\n [attr.role]=\"titleIconTooltip ? 'img' : null\"\n [attr.title]=\"titleIconTooltip || null\"\n >\n <nui-icon\n [icon]=\"titleIcon\"\n [iconSize]=\"titleIconSize\"\n aria-hidden=\"true\"\n ></nui-icon>\n </span>\n }\n </div>\n\n @if (subtitle) {\n <div\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\"\n >\n {{ subtitle }}\n </div>\n }\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n >\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"\n ></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n (click)=\"toggleCollapsed()\"\n ></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-action\n *ngIf=\"reloadable\"\n (actionDone)=\"onReloadData()\"\n >\n <nui-icon icon=\"reload\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n </nui-menu>\n <!--TODO: After NUI-3431 should be changed to regular menu instead of popup-->\n <nui-popup\n class=\"nui-widget-header__action-remove\"\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\"\n >\n <span nuiTooltip=\"Remove widget\" i18n-nuiTooltip>\n <button\n nui-button\n nuiPopupToggle\n type=\"button\"\n icon=\"remove\"\n iconColor=\"red\"\n displayStyle=\"action\"\n i18n\n ></button>\n </span>\n <div popupAreaContent class=\"nui-menu\">\n <nui-menu-action\n type=\"destructive\"\n (actionDone)=\"removeWidget()\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </div>\n </nui-popup>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [".nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;margin:0;min-width:0;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title a{color:inherit}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-title-row{align-items:center;display:flex;gap:2px;max-width:100%;min-width:0}.nui-widget__header__container .nui-widget__header__content-title-icon{align-items:center;color:#111;display:inline-flex;flex:0 0 auto;justify-content:center;min-height:24px;min-width:24px;opacity:1}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.MenuActionComponent, selector: "nui-menu-action", inputs: ["icon", "type"] }, { kind: "component", type: i2.MenuComponent, selector: "nui-menu", inputs: ["widthOfPopup", "contextClass", "appendToBody", "ariaLabel", "title", "size", "displayStyle", "isDisabled", "icon", "itemsSource"], outputs: ["blurred"] }, { kind: "directive", type: i2.PopupToggleDirective, selector: "[nuiPopupToggle]", inputs: ["isDisabled", "disabled", "toggleOnKey"], outputs: ["toggle"] }, { kind: "component", type: i2.PopupComponent, selector: "nui-popup", inputs: ["width", "overlayConfig", "contextClass", "directionTop", "directionRight", "manualOpenControl", "appendToBody", "baseElementSelector", "isHostToggleRef", "ariaLabel", "isOpen", "visible"], outputs: ["opened"] }, { kind: "directive", type: i2.TooltipDirective, selector: "[nuiTooltip]", inputs: ["tooltipPlacement", "nuiTooltipDisabled", "nuiTooltipEllipsis", "nuiTooltip"], exportAs: ["nuiTooltip"] }], animations: [
|
|
10664
10671
|
trigger("expandedState", [
|
|
10665
10672
|
state("expanded", style({ height: "*" })),
|
|
10666
10673
|
state("collapsed", style({ height: "11px" })),
|
|
@@ -10680,7 +10687,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10680
10687
|
animate("350ms ease-in-out"),
|
|
10681
10688
|
]),
|
|
10682
10689
|
]),
|
|
10683
|
-
], standalone: false, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\"\n >\n <div\n *ngIf=\"collapsed && collapsible\"\n class=\"collapse-container\"\n (click)=\"toggleCollapsed()\"\n >\n <span class=\"collapse-container__line\"></span>\n </div>\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\"\n >\n <nui-icon icon=\"drag\" iconColor=\"gray\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\"\n >\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \"\n >\n <!-- text only header with no url defined -->\n
|
|
10690
|
+
], standalone: false, template: "<div class=\"nui-widget__header\">\n <div\n class=\"nui-widget__header__container\"\n [class.nui-widget__header__container--collapsible]=\"collapsible\"\n [class.nui-widget__header__container--collapsed]=\"\n collapsible && collapsed\n \"\n [class.nui-widget__header__container--expanded]=\"\n collapsible && !collapsed\n \"\n [@expandedState]=\"state\"\n >\n <div\n *ngIf=\"collapsed && collapsible\"\n class=\"collapse-container\"\n (click)=\"toggleCollapsed()\"\n >\n <span class=\"collapse-container__line\"></span>\n </div>\n <div class=\"nui-widget__header__content\">\n <div\n *ngIf=\"editMode\"\n class=\"nui-widget__header__content-drag-icon nui-dashboard__widget--drag-handle\"\n >\n <nui-icon icon=\"drag\" iconColor=\"gray\"></nui-icon>\n </div>\n <div\n #widgetHeaderCustomElement\n class=\"nui-widget__header__content-custom-element\"\n >\n <ng-content></ng-content>\n </div>\n <div\n class=\"nui-widget__header__content-title-container nui-dashboard__widget--drag-handle\"\n [class.nui-widget__header__content-title-with-additional-content]=\"\n withCustomElement || editMode\n \"\n >\n <div class=\"nui-widget__header__content-title-row\">\n <!-- text only header with no url defined -->\n @if (!url || editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [title]=\"title\"\n >\n {{ title }}\n </h2>\n }\n\n <!-- link version of the header -->\n @if (url && !editMode) {\n <h2\n class=\"nui-text-widget nui-widget__header__content-title\"\n [title]=\"title\"\n >\n <a\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n [nuiTooltip]=\"linkTooltip\"\n >{{ title }}</a\n >\n </h2>\n }\n\n @if (showTitleIcon) {\n <span\n class=\"nui-widget__header__content-title-icon\"\n [attr.aria-label]=\"titleIconTooltip || null\"\n [attr.role]=\"titleIconTooltip ? 'img' : null\"\n [attr.title]=\"titleIconTooltip || null\"\n >\n <nui-icon\n [icon]=\"titleIcon\"\n [iconSize]=\"titleIconSize\"\n aria-hidden=\"true\"\n ></nui-icon>\n </span>\n }\n </div>\n\n @if (subtitle) {\n <div\n class=\"nui-text-hint nui-widget__header__content-help-hint\"\n [title]=\"subtitle\"\n >\n {{ subtitle }}\n </div>\n }\n </div>\n <div class=\"nui-widget__header__content-actions\">\n <a\n *ngIf=\"url && !editMode\"\n nui-button\n displayStyle=\"action\"\n [href]=\"url\"\n (click)=\"prepareLink($event)\"\n (mouseenter)=\"prepareLink($event)\"\n icon=\"external-link\"\n [nuiTooltip]=\"linkTooltip\"\n (mousedown)=\"\n $event.stopPropagation(); $event.preventDefault()\n \"\n >\n </a>\n <button\n *ngIf=\"editable && editMode\"\n class=\"nui-widget-header__action-edit\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n icon=\"edit\"\n nuiTooltip=\"Edit widget\"\n i18n-nuiTooltip\n (click)=\"onEditWidget()\"\n ></button>\n <button\n *ngIf=\"collapsible && !editMode\"\n class=\"nui-widget-header__action-toggle-collapsed\"\n nui-button\n type=\"button\"\n displayStyle=\"action\"\n nuiTooltip=\"Collapse header\"\n icon=\"double-caret-up\"\n (click)=\"toggleCollapsed()\"\n ></button>\n <nui-menu\n *ngIf=\"!hideMenu && !editMode\"\n class=\"nui-widget__header__content-actions__menu\"\n icon=\"menu\"\n displayStyle=\"action\"\n [appendToBody]=\"true\"\n >\n <nui-menu-action\n *ngIf=\"reloadable\"\n (actionDone)=\"onReloadData()\"\n >\n <nui-icon icon=\"reload\"></nui-icon>\n <span i18n>Reload data</span>\n </nui-menu-action>\n </nui-menu>\n <!--TODO: After NUI-3431 should be changed to regular menu instead of popup-->\n <nui-popup\n class=\"nui-widget-header__action-remove\"\n [appendToBody]=\"true\"\n *ngIf=\"removable && editMode\"\n >\n <span nuiTooltip=\"Remove widget\" i18n-nuiTooltip>\n <button\n nui-button\n nuiPopupToggle\n type=\"button\"\n icon=\"remove\"\n iconColor=\"red\"\n displayStyle=\"action\"\n i18n\n ></button>\n </span>\n <div popupAreaContent class=\"nui-menu\">\n <nui-menu-action\n type=\"destructive\"\n (actionDone)=\"removeWidget()\"\n i18n\n >Remove Widget</nui-menu-action\n >\n </div>\n </nui-popup>\n </div>\n </div>\n </div>\n <div *ngIf=\"collapsible\" class=\"collapse-spacer\"></div>\n</div>\n", styles: [".nui-widget__header{display:flex;position:relative}.nui-widget__header .collapse-spacer{margin-bottom:15px}.nui-widget__header__container{z-index:500;width:100%}.nui-widget__header__container--collapsible{width:100%}.nui-widget__header__container--collapsed .nui-widget__header__content{opacity:0;visibility:hidden}.nui-widget__header__container .collapse-container{width:100%;display:flex;justify-content:center;cursor:pointer}.nui-widget__header__container .collapse-container__line{width:16px;height:1px;background:var(--nui-color-line-active,#0079aa);margin:5px 0;cursor:pointer}.nui-widget__header__container .nui-widget__header__content{align-items:flex-start;display:flex;opacity:1}.nui-widget__header__container .nui-widget__header__content-drag-icon{align-items:center;cursor:move;display:flex;height:30px;justify-content:center;margin:5px;width:30px}.nui-widget__header__container .nui-widget__header__content-title{display:block;max-width:100%;margin:0;min-width:0;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-title a{color:inherit}.nui-widget__header__container .nui-widget__header__content-title-container{flex:1;min-width:0;padding:10px 0 5px 10px}.nui-widget__header__container .nui-widget__header__content-title-with-additional-content{padding-left:0}.nui-widget__header__container .nui-widget__header__content-title-row{align-items:center;display:flex;gap:2px;max-width:100%;min-width:0}.nui-widget__header__container .nui-widget__header__content-title-icon{align-items:center;color:#111;display:inline-flex;flex:0 0 auto;justify-content:center;min-height:24px;min-width:24px;opacity:1}.nui-widget__header__container .nui-widget__header__content-help-hint{max-width:100%;white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget__header__container .nui-widget__header__content-actions{display:flex;padding:5px 10px 0 5px}\n"] }]
|
|
10684
10691
|
}], ctorParameters: () => [{ type: i2.EventBus, decorators: [{
|
|
10685
10692
|
type: Inject,
|
|
10686
10693
|
args: [PIZZAGNA_EVENT_BUS]
|
|
@@ -10705,6 +10712,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
10705
10712
|
type: Input
|
|
10706
10713
|
}], title: [{
|
|
10707
10714
|
type: Input
|
|
10715
|
+
}], titleIcon: [{
|
|
10716
|
+
type: Input
|
|
10717
|
+
}], titleIconSize: [{
|
|
10718
|
+
type: Input
|
|
10719
|
+
}], titleIconTooltip: [{
|
|
10720
|
+
type: Input
|
|
10708
10721
|
}], subtitle: [{
|
|
10709
10722
|
type: Input
|
|
10710
10723
|
}], hideMenu: [{
|
|
@@ -10804,7 +10817,7 @@ class WidgetSearchComponent {
|
|
|
10804
10817
|
});
|
|
10805
10818
|
}
|
|
10806
10819
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetSearchComponent, deps: [{ token: DATA_SOURCE, optional: true }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10807
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetSearchComponent, isStandalone: false, selector: "nui-widget-search", inputs: { configuration: "configuration", searchValue: "searchValue" }, host: { properties: { "class.default": "enabled", "class.invisible": "!enabled" } }, usesOnChanges: true, ngImport: i0, template: "<nui-search\n class=\"unlimited-width\"\n *ngIf=\"enabled\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearch($event)\"\n (search)=\"onSearch($event)\"\n></nui-search>\n", styles: [":host.default{padding:5px 10px}:host.invisible{height:0}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.SearchComponent, selector: "nui-search", inputs: ["captureFocus", "name", "isInErrorState", "placeholder", "value"], outputs: ["cancel", "focusChange", "inputChange", "search"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10820
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetSearchComponent, isStandalone: false, selector: "nui-widget-search", inputs: { configuration: "configuration", searchValue: "searchValue" }, host: { properties: { "class.default": "enabled", "class.invisible": "!enabled" } }, usesOnChanges: true, ngImport: i0, template: "<nui-search\n class=\"unlimited-width\"\n *ngIf=\"enabled\"\n [value]=\"searchValue\"\n (inputChange)=\"onSearchInputChanged($event)\"\n (cancel)=\"onSearch($event)\"\n (search)=\"onSearch($event)\"\n></nui-search>\n", styles: [":host.default{padding:5px 10px}:host.invisible{height:0}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.SearchComponent, selector: "nui-search", inputs: ["captureFocus", "name", "isInErrorState", "placeholder", "inputId", "value"], outputs: ["captureFocusChange", "valueChange", "cancel", "focusChange", "inputChange", "search"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
10808
10821
|
}
|
|
10809
10822
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetSearchComponent, decorators: [{
|
|
10810
10823
|
type: Component,
|
|
@@ -11450,7 +11463,7 @@ class DonutContentRawFormatterComponent {
|
|
|
11450
11463
|
<div *ngIf="config?.chartDonutContentLabel" class="nui-text-secondary">
|
|
11451
11464
|
{{ config?.chartDonutContentLabel }}
|
|
11452
11465
|
</div>
|
|
11453
|
-
</ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "pipe", type: i4.DecimalPipe, name: "number" }] }); }
|
|
11466
|
+
</ng-container>`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "pipe", type: i4.DecimalPipe, name: "number" }] }); }
|
|
11454
11467
|
}
|
|
11455
11468
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DonutContentRawFormatterComponent, decorators: [{
|
|
11456
11469
|
type: Component,
|
|
@@ -11578,7 +11591,7 @@ class IconFormatterComponent {
|
|
|
11578
11591
|
icon="help"
|
|
11579
11592
|
></nui-icon>
|
|
11580
11593
|
</ng-template>
|
|
11581
|
-
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }] }); }
|
|
11594
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }] }); }
|
|
11582
11595
|
}
|
|
11583
11596
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: IconFormatterComponent, decorators: [{
|
|
11584
11597
|
type: Component,
|
|
@@ -12035,7 +12048,7 @@ class StatusWithIconFormatterComponent {
|
|
|
12035
12048
|
</ng-template>
|
|
12036
12049
|
</div>
|
|
12037
12050
|
</ng-container>
|
|
12038
|
-
`, isInline: true, styles: [".status-icon-formatter{display:grid;grid-template-columns:50px auto minmax(114px,1fr)}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }] }); }
|
|
12051
|
+
`, isInline: true, styles: [".status-icon-formatter{display:grid;grid-template-columns:50px auto minmax(114px,1fr)}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }] }); }
|
|
12039
12052
|
}
|
|
12040
12053
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: StatusWithIconFormatterComponent, decorators: [{
|
|
12041
12054
|
type: Component,
|
|
@@ -12342,7 +12355,7 @@ class ItemsDynamicComponent extends BaseLayout {
|
|
|
12342
12355
|
super.ngOnDestroy();
|
|
12343
12356
|
}
|
|
12344
12357
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ItemsDynamicComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: PizzagnaService }, { token: i2.LoggerService }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12345
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ItemsDynamicComponent, isStandalone: false, selector: "nui-items-dynamic", inputs: { items: "items", moveButtons: "moveButtons", nodes: "nodes", headerPrefix: "headerPrefix" }, outputs: { formReady: "formReady", itemsChange: "itemsChange" }, usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-items-dynamic\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n [formGroup]=\"form\"\n>\n <div\n cdkDrag\n class=\"nui-items-dynamic__node-item\"\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n *ngFor=\"let node of nodeConfigs; let i = index; trackBy: trackBy\"\n >\n <nui-drop-area\n class=\"nui-items-dynamic__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container *ngIf=\"moveButtons\">\n <div class=\"nui-items-dynamic__drag-handler\" cdkDragHandle>\n <nui-icon icon=\"drag\"></nui-icon>\n </div>\n </ng-container>\n <span\n [title]=\"\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n \"\n class=\"nui-items-dynamic__header-text\"\n >\n {{\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <button\n id=\"kpi-widget-remove-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n (click)=\"removeItem(getItemForNode(node), i)\"\n ></button>\n </div>\n </ng-template>\n\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"node.id\"\n [componentType]=\"node.componentType\"\n [providers]=\"node.providers\"\n [properties]=\"\n node.properties\n | nuiAddData : headerText : 'headerTextTemplate'\n | nuiAddData : headerButtons : 'headerButtonsTemplate'\n \"\n [outputs]=\"['formReady', 'formDestroy']\"\n (output)=\"onEvent(node.id, $event)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-items-dynamic__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-items-dynamic__drag-handler{cursor:move;display:flex}.nui-items-dynamic__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-items-dynamic__node-item .widget-configurator-section{margin:0}.nui-items-dynamic__drop-area{margin:15px}.kpi-indicators-configuration__color-preview{width:16px;height:16px;margin-right:15px;border-radius:3px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: AddDataPipe, name: "nuiAddData" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
12358
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: ItemsDynamicComponent, isStandalone: false, selector: "nui-items-dynamic", inputs: { items: "items", moveButtons: "moveButtons", nodes: "nodes", headerPrefix: "headerPrefix" }, outputs: { formReady: "formReady", itemsChange: "itemsChange" }, usesInheritance: true, ngImport: i0, template: "<div\n class=\"nui-items-dynamic\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n [formGroup]=\"form\"\n>\n <div\n cdkDrag\n class=\"nui-items-dynamic__node-item\"\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n *ngFor=\"let node of nodeConfigs; let i = index; trackBy: trackBy\"\n >\n <nui-drop-area\n class=\"nui-items-dynamic__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container *ngIf=\"moveButtons\">\n <div class=\"nui-items-dynamic__drag-handler\" cdkDragHandle>\n <nui-icon icon=\"drag\"></nui-icon>\n </div>\n </ng-container>\n <span\n [title]=\"\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n \"\n class=\"nui-items-dynamic__header-text\"\n >\n {{\n headerMap.get(node.id)\n | nuiWidgetConfiguratorSectionHeader : i : headerPrefix\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <!-- TODO: remove \"kpi\" prefix in v11 - NUI-5833 -->\n <button\n id=\"kpi-widget-remove-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n (click)=\"removeItem(getItemForNode(node), i)\"\n ></button>\n </div>\n </ng-template>\n\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentId]=\"node.id\"\n [componentType]=\"node.componentType\"\n [providers]=\"node.providers\"\n [properties]=\"\n node.properties\n | nuiAddData : headerText : 'headerTextTemplate'\n | nuiAddData : headerButtons : 'headerButtonsTemplate'\n \"\n [outputs]=\"['formReady', 'formDestroy']\"\n (output)=\"onEvent(node.id, $event)\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n >\n </ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-items-dynamic__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-items-dynamic__drag-handler{cursor:move;display:flex}.nui-items-dynamic__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-items-dynamic__node-item .widget-configurator-section{margin:0}.nui-items-dynamic__drop-area{margin:15px}.kpi-indicators-configuration__color-preview{width:16px;height:16px;margin-right:15px;border-radius:3px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: AddDataPipe, name: "nuiAddData" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
12346
12359
|
}
|
|
12347
12360
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: ItemsDynamicComponent, decorators: [{
|
|
12348
12361
|
type: Component,
|
|
@@ -12486,11 +12499,11 @@ class DashwizStepComponent {
|
|
|
12486
12499
|
}
|
|
12487
12500
|
}
|
|
12488
12501
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashwizStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12489
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DashwizStepComponent, isStandalone: false, selector: "nui-dashwiz-step", inputs: { stepTemplate: "stepTemplate", stepControl: "stepControl", title: "title", nextText: "nextText", hidden: "hidden", disabled: "disabled", spinnerSize: "spinnerSize" }, outputs: { enter: "enter", valid: "valid", exit: "exit", next: "next" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto configurator-scrollable\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"], dependencies: [{ kind: "directive", type: i11.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.BusyComponent, selector: "[nui-busy]", inputs: ["busy", "disableTabNavigation"] }, { kind: "component", type: i2.SpinnerComponent, selector: "nui-spinner", inputs: ["percent", "show", "delay", "allowCancel", "message", "helpText", "ariaLabel", "size"], outputs: ["cancel"] }] }); }
|
|
12502
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DashwizStepComponent, isStandalone: false, selector: "nui-dashwiz-step", inputs: { stepTemplate: "stepTemplate", stepControl: "stepControl", title: "title", nextText: "nextText", hidden: "hidden", disabled: "disabled", spinnerSize: "spinnerSize" }, outputs: { enter: "enter", valid: "valid", exit: "exit", next: "next" }, usesOnChanges: true, ngImport: i0, template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto configurator-scrollable\"\n tabindex=\"0\"\n [attr.aria-label]=\"title || null\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"], dependencies: [{ kind: "directive", type: i11.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2.BusyComponent, selector: "[nui-busy]", inputs: ["busy", "disableTabNavigation"] }, { kind: "component", type: i2.SpinnerComponent, selector: "nui-spinner", inputs: ["percent", "show", "delay", "allowCancel", "message", "helpText", "ariaLabel", "size"], outputs: ["cancel"] }] }); }
|
|
12490
12503
|
}
|
|
12491
12504
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashwizStepComponent, decorators: [{
|
|
12492
12505
|
type: Component,
|
|
12493
|
-
args: [{ selector: "nui-dashwiz-step", standalone: false, template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto configurator-scrollable\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"] }]
|
|
12506
|
+
args: [{ selector: "nui-dashwiz-step", standalone: false, template: "<div\n class=\"nui-dashwiz-step animated h-100\"\n [ngClass]=\"{ 'nui-dashwiz-step--active': active }\"\n nui-busy\n [busy]=\"busyConfig.busy\"\n>\n <div\n cdkScrollable\n class=\"h-100 overflow-auto configurator-scrollable\"\n tabindex=\"0\"\n [attr.aria-label]=\"title || null\"\n >\n <ng-container *ngTemplateOutlet=\"stepTemplate\"></ng-container>\n </div>\n <nui-spinner\n [percent]=\"busyConfig.percent\"\n [allowCancel]=\"busyConfig.allowCancel\"\n [message]=\"busyConfig.message\"\n [size]=\"spinnerSize\"\n >\n </nui-spinner>\n</div>\n", styles: [".nui-dashwiz-step{display:none}.nui-dashwiz-step--active{display:block}\n"] }]
|
|
12494
12507
|
}], ctorParameters: () => [], propDecorators: { stepTemplate: [{
|
|
12495
12508
|
type: Input
|
|
12496
12509
|
}], stepControl: [{
|
|
@@ -12983,11 +12996,11 @@ class DashwizComponent {
|
|
|
12983
12996
|
return Math.round(Math.max(...widths));
|
|
12984
12997
|
}
|
|
12985
12998
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashwizComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }, { token: i2.LoggerService }, { token: DashwizService }, { token: i3.ScrollDispatcher }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
12986
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DashwizComponent, isStandalone: false, selector: "nui-dashwiz", inputs: { hideHeader: "hideHeader", canProceed: "canProceed", canFinish: "canFinish", finishText: "finishText", stretchStepLines: "stretchStepLines", buttonComponentTypes: "buttonComponentTypes", navigationControl: "navigationControl" }, outputs: { stepNavigated: "stepNavigated", cancel: "cancel", finish: "finish", next: "next", back: "back" }, host: { classAttribute: "flex-grow-1 overflow-auto" }, queries: [{ propertyName: "steps", predicate: DashwizStepComponent }], viewQueries: [{ propertyName: "dynamicStep", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "stepTitles", predicate: ["stepTitle"], descendants: true }], ngImport: i0, template: "<div class=\"nui-dashwiz d-flex flex-column h-100\">\n <div\n class=\"nui-dashwiz__header\"\n *ngIf=\"!hideHeader\"\n [class.nui-dashwiz__header--lines-stretched]=\"stretchStepLines\"\n >\n <ul class=\"nui-dashwiz__header-steps\" *ngIf=\"steps\">\n <li\n *ngFor=\"let step of steps; let first = first; let last = last\"\n (click)=\"selectStep(step)\"\n [ngClass]=\"{\n 'nui-dashwiz__header-step--first': first,\n 'nui-dashwiz__header-step--last': last,\n 'nui-dashwiz__header-step--visited': step.visited,\n 'nui-dashwiz__header-step--disabled':\n step.disabled ||\n !step.visited ||\n currentStep.busyConfig.busy,\n 'nui-dashwiz__header-step--active': step.active,\n 'nui-dashwiz__header-step--complete': step.complete\n }\"\n class=\"nui-dashwiz__header-step\"\n >\n <div\n class=\"nui-dashwiz__header-step-container\"\n *ngIf=\"!step.hidden\"\n >\n <div class=\"nui-dashwiz__header-step-row\">\n <div class=\"nui-dashwiz__header-step-col\">\n <div class=\"nui-dashwiz__header-step-content\">\n <span class=\"nui-dashwiz__header-step-link\">\n <span\n class=\"nui-dashwiz__header-step-title\"\n #stepTitle\n >\n {{ step.title }}\n </span>\n <div\n class=\"nui-dashwiz__header-step-link-container\"\n >\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-right\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n <nui-icon\n [icon]=\"step.icon\"\n [iconColor]=\"step.iconColor\"\n ></nui-icon>\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-left\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n\n <div class=\"flex-grow-1 overflow-auto\">\n <ng-content></ng-content>\n <ng-template #container></ng-template>\n </div>\n\n <div\n class=\"nui-dashwiz__footer\"\n [class.shadow]=\"scrolled\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"dashwizButtons\"\n [componentType]=\"\n buttonComponentTypes.length === 1\n ? buttonComponentTypes[0]\n : buttonComponentTypes[stepIndex]\n \"\n [properties]=\"buttonProperties\"\n [outputs]=\"['cancel', 'next', 'back', 'finish']\"\n (output)=\"onButtonPortalOutput($event)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-dashwiz__header{padding:10px 15px;background-color:var(--nui-color-bg-secondary,#fafafa);border-bottom:1px solid #d9d9d9;border-bottom:1px solid var(--nui-color-line-default, #d9d9d9);overflow:hidden;text-align:center;display:flex;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.nui-dashwiz__header-steps{margin-bottom:0;white-space:nowrap;display:inline-flex}.nui-dashwiz__header-step{line-height:normal;display:inline-flex;cursor:pointer}.nui-dashwiz__header-step--disabled{pointer-events:none;cursor:default}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link{color:var(--nui-color-text-link,#0079aa)}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link:hover{text-decoration:underline}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--first .nui-dashwiz__header-step-col-right,.nui-dashwiz__header-step--last .nui-dashwiz__header-step-col-left{border-color:transparent;opacity:0}.nui-dashwiz__header-step--active{cursor:default}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link{color:var(--nui-color-bg-dark,#111)}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link:hover .nui-dashwiz__header-step-title{text-decoration:none}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--complete .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-left>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--complete .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step-container{display:inline-table;width:100%}.nui-dashwiz__header-step-container-bottom{display:none}.nui-dashwiz__header-step-container-bottom .nui-dashwiz__header-step-title{width:100%;max-width:100%;margin:0}.nui-dashwiz__header-step-row{display:table-row}.nui-dashwiz__header-step-col{display:table-cell;vertical-align:middle}.nui-dashwiz__header-step-col .nui-dashwiz__header-step-line{border-color:var(--nui-color-line-default,#d9d9d9)}.nui-dashwiz__header-step-col-right .nui-dashwiz__header-step-line{margin-right:-1px}.nui-dashwiz__header-step-line{border-bottom:solid 2px;height:2px}.nui-dashwiz__header-step-link{color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));transition:color .3s}.nui-dashwiz__header-step-link-container{display:flex;align-content:baseline;justify-content:center;align-items:center}.nui-dashwiz__header-step-title{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;display:inline-block;max-width:140px;margin:0 0 5px;text-decoration:inherit}.nui-dashwiz__header.nui-dashwiz__header--lines-stretched .nui-dashwiz__header-step-title{max-width:unset}.nui-dashwiz__footer{z-index:1080;background-color:var(--nui-color-bg-content,#fff);border-top:solid 1px var(--nui-color-line-default, #d9d9d9);transition:box-shadow .3s ease-in-out}.nui-dashwiz__footer.shadow{box-shadow:0 0 5px 0 var(--nui-shadow-color-stronger, rgba(17, 17, 17, .6))}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }] }); }
|
|
12999
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DashwizComponent, isStandalone: false, selector: "nui-dashwiz", inputs: { hideHeader: "hideHeader", canProceed: "canProceed", canFinish: "canFinish", finishText: "finishText", stretchStepLines: "stretchStepLines", buttonComponentTypes: "buttonComponentTypes", navigationControl: "navigationControl" }, outputs: { stepNavigated: "stepNavigated", cancel: "cancel", finish: "finish", next: "next", back: "back" }, host: { classAttribute: "flex-grow-1 overflow-auto" }, queries: [{ propertyName: "steps", predicate: DashwizStepComponent }], viewQueries: [{ propertyName: "dynamicStep", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }, { propertyName: "stepTitles", predicate: ["stepTitle"], descendants: true }], ngImport: i0, template: "<div class=\"nui-dashwiz d-flex flex-column h-100\">\n <div\n class=\"nui-dashwiz__header\"\n *ngIf=\"!hideHeader\"\n [class.nui-dashwiz__header--lines-stretched]=\"stretchStepLines\"\n >\n <ul class=\"nui-dashwiz__header-steps\" *ngIf=\"steps\">\n <li\n *ngFor=\"let step of steps; let first = first; let last = last\"\n (click)=\"selectStep(step)\"\n [ngClass]=\"{\n 'nui-dashwiz__header-step--first': first,\n 'nui-dashwiz__header-step--last': last,\n 'nui-dashwiz__header-step--visited': step.visited,\n 'nui-dashwiz__header-step--disabled':\n step.disabled ||\n !step.visited ||\n currentStep.busyConfig.busy,\n 'nui-dashwiz__header-step--active': step.active,\n 'nui-dashwiz__header-step--complete': step.complete\n }\"\n class=\"nui-dashwiz__header-step\"\n >\n <div\n class=\"nui-dashwiz__header-step-container\"\n *ngIf=\"!step.hidden\"\n >\n <div class=\"nui-dashwiz__header-step-row\">\n <div class=\"nui-dashwiz__header-step-col\">\n <div class=\"nui-dashwiz__header-step-content\">\n <span class=\"nui-dashwiz__header-step-link\">\n <span\n class=\"nui-dashwiz__header-step-title\"\n #stepTitle\n >\n {{ step.title }}\n </span>\n <div\n class=\"nui-dashwiz__header-step-link-container\"\n >\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-right\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n <nui-icon\n [icon]=\"step.icon\"\n [iconColor]=\"step.iconColor\"\n ></nui-icon>\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-left\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n\n <div class=\"flex-grow-1 overflow-auto\">\n <ng-content></ng-content>\n <ng-template #container></ng-template>\n </div>\n\n <div\n class=\"nui-dashwiz__footer\"\n [class.shadow]=\"scrolled\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"dashwizButtons\"\n [componentType]=\"\n buttonComponentTypes.length === 1\n ? buttonComponentTypes[0]\n : buttonComponentTypes[stepIndex]\n \"\n [properties]=\"buttonProperties\"\n [outputs]=\"['cancel', 'next', 'back', 'finish']\"\n (output)=\"onButtonPortalOutput($event)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-dashwiz__header{padding:10px 15px;background-color:var(--nui-color-bg-secondary,#fafafa);border-bottom:1px solid #d9d9d9;border-bottom:1px solid var(--nui-color-line-default, #d9d9d9);overflow:hidden;text-align:center;display:flex;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.nui-dashwiz__header-steps{margin-bottom:0;white-space:nowrap;display:inline-flex}.nui-dashwiz__header-step{line-height:normal;display:inline-flex;cursor:pointer}.nui-dashwiz__header-step--disabled{pointer-events:none;cursor:default}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link{color:var(--nui-color-text-link,#006791)}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link:hover{text-decoration:underline}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--first .nui-dashwiz__header-step-col-right,.nui-dashwiz__header-step--last .nui-dashwiz__header-step-col-left{border-color:transparent;opacity:0}.nui-dashwiz__header-step--active{cursor:default}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link{color:var(--nui-color-bg-dark,#111)}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link:hover .nui-dashwiz__header-step-title{text-decoration:none}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--complete .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-left>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--complete .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step-container{display:inline-table;width:100%}.nui-dashwiz__header-step-container-bottom{display:none}.nui-dashwiz__header-step-container-bottom .nui-dashwiz__header-step-title{width:100%;max-width:100%;margin:0}.nui-dashwiz__header-step-row{display:table-row}.nui-dashwiz__header-step-col{display:table-cell;vertical-align:middle}.nui-dashwiz__header-step-col .nui-dashwiz__header-step-line{border-color:var(--nui-color-line-default,#d9d9d9)}.nui-dashwiz__header-step-col-right .nui-dashwiz__header-step-line{margin-right:-1px}.nui-dashwiz__header-step-line{border-bottom:solid 2px;height:2px}.nui-dashwiz__header-step-link{color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));transition:color .3s}.nui-dashwiz__header-step-link-container{display:flex;align-content:baseline;justify-content:center;align-items:center}.nui-dashwiz__header-step-title{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;display:inline-block;max-width:140px;margin:0 0 5px;text-decoration:inherit}.nui-dashwiz__header.nui-dashwiz__header--lines-stretched .nui-dashwiz__header-step-title{max-width:unset}.nui-dashwiz__footer{z-index:1080;background-color:var(--nui-color-bg-content,#fff);border-top:solid 1px var(--nui-color-line-default, #d9d9d9);transition:box-shadow .3s ease-in-out}.nui-dashwiz__footer.shadow{box-shadow:0 0 5px 0 var(--nui-shadow-color-stronger, rgba(17, 17, 17, .6))}\n"], dependencies: [{ kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }] }); }
|
|
12987
13000
|
}
|
|
12988
13001
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DashwizComponent, decorators: [{
|
|
12989
13002
|
type: Component,
|
|
12990
|
-
args: [{ selector: "nui-dashwiz", host: { class: "flex-grow-1 overflow-auto" }, standalone: false, template: "<div class=\"nui-dashwiz d-flex flex-column h-100\">\n <div\n class=\"nui-dashwiz__header\"\n *ngIf=\"!hideHeader\"\n [class.nui-dashwiz__header--lines-stretched]=\"stretchStepLines\"\n >\n <ul class=\"nui-dashwiz__header-steps\" *ngIf=\"steps\">\n <li\n *ngFor=\"let step of steps; let first = first; let last = last\"\n (click)=\"selectStep(step)\"\n [ngClass]=\"{\n 'nui-dashwiz__header-step--first': first,\n 'nui-dashwiz__header-step--last': last,\n 'nui-dashwiz__header-step--visited': step.visited,\n 'nui-dashwiz__header-step--disabled':\n step.disabled ||\n !step.visited ||\n currentStep.busyConfig.busy,\n 'nui-dashwiz__header-step--active': step.active,\n 'nui-dashwiz__header-step--complete': step.complete\n }\"\n class=\"nui-dashwiz__header-step\"\n >\n <div\n class=\"nui-dashwiz__header-step-container\"\n *ngIf=\"!step.hidden\"\n >\n <div class=\"nui-dashwiz__header-step-row\">\n <div class=\"nui-dashwiz__header-step-col\">\n <div class=\"nui-dashwiz__header-step-content\">\n <span class=\"nui-dashwiz__header-step-link\">\n <span\n class=\"nui-dashwiz__header-step-title\"\n #stepTitle\n >\n {{ step.title }}\n </span>\n <div\n class=\"nui-dashwiz__header-step-link-container\"\n >\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-right\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n <nui-icon\n [icon]=\"step.icon\"\n [iconColor]=\"step.iconColor\"\n ></nui-icon>\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-left\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n\n <div class=\"flex-grow-1 overflow-auto\">\n <ng-content></ng-content>\n <ng-template #container></ng-template>\n </div>\n\n <div\n class=\"nui-dashwiz__footer\"\n [class.shadow]=\"scrolled\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"dashwizButtons\"\n [componentType]=\"\n buttonComponentTypes.length === 1\n ? buttonComponentTypes[0]\n : buttonComponentTypes[stepIndex]\n \"\n [properties]=\"buttonProperties\"\n [outputs]=\"['cancel', 'next', 'back', 'finish']\"\n (output)=\"onButtonPortalOutput($event)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-dashwiz__header{padding:10px 15px;background-color:var(--nui-color-bg-secondary,#fafafa);border-bottom:1px solid #d9d9d9;border-bottom:1px solid var(--nui-color-line-default, #d9d9d9);overflow:hidden;text-align:center;display:flex;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.nui-dashwiz__header-steps{margin-bottom:0;white-space:nowrap;display:inline-flex}.nui-dashwiz__header-step{line-height:normal;display:inline-flex;cursor:pointer}.nui-dashwiz__header-step--disabled{pointer-events:none;cursor:default}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link{color:var(--nui-color-text-link,#
|
|
13003
|
+
args: [{ selector: "nui-dashwiz", host: { class: "flex-grow-1 overflow-auto" }, standalone: false, template: "<div class=\"nui-dashwiz d-flex flex-column h-100\">\n <div\n class=\"nui-dashwiz__header\"\n *ngIf=\"!hideHeader\"\n [class.nui-dashwiz__header--lines-stretched]=\"stretchStepLines\"\n >\n <ul class=\"nui-dashwiz__header-steps\" *ngIf=\"steps\">\n <li\n *ngFor=\"let step of steps; let first = first; let last = last\"\n (click)=\"selectStep(step)\"\n [ngClass]=\"{\n 'nui-dashwiz__header-step--first': first,\n 'nui-dashwiz__header-step--last': last,\n 'nui-dashwiz__header-step--visited': step.visited,\n 'nui-dashwiz__header-step--disabled':\n step.disabled ||\n !step.visited ||\n currentStep.busyConfig.busy,\n 'nui-dashwiz__header-step--active': step.active,\n 'nui-dashwiz__header-step--complete': step.complete\n }\"\n class=\"nui-dashwiz__header-step\"\n >\n <div\n class=\"nui-dashwiz__header-step-container\"\n *ngIf=\"!step.hidden\"\n >\n <div class=\"nui-dashwiz__header-step-row\">\n <div class=\"nui-dashwiz__header-step-col\">\n <div class=\"nui-dashwiz__header-step-content\">\n <span class=\"nui-dashwiz__header-step-link\">\n <span\n class=\"nui-dashwiz__header-step-title\"\n #stepTitle\n >\n {{ step.title }}\n </span>\n <div\n class=\"nui-dashwiz__header-step-link-container\"\n >\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-right\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n <nui-icon\n [icon]=\"step.icon\"\n [iconColor]=\"step.iconColor\"\n ></nui-icon>\n <div\n class=\"nui-dashwiz__header-step-col nui-dashwiz__header-step-col-left\"\n >\n <div\n class=\"nui-dashwiz__header-step-line\"\n [ngStyle]=\"{\n 'min-width.px':\n stepLineWidth\n }\"\n ></div>\n </div>\n </div>\n </span>\n </div>\n </div>\n </div>\n </div>\n </li>\n </ul>\n </div>\n\n <div class=\"flex-grow-1 overflow-auto\">\n <ng-content></ng-content>\n <ng-template #container></ng-template>\n </div>\n\n <div\n class=\"nui-dashwiz__footer\"\n [class.shadow]=\"scrolled\"\n >\n <ng-container\n nuiComponentPortal\n componentId=\"dashwizButtons\"\n [componentType]=\"\n buttonComponentTypes.length === 1\n ? buttonComponentTypes[0]\n : buttonComponentTypes[stepIndex]\n \"\n [properties]=\"buttonProperties\"\n [outputs]=\"['cancel', 'next', 'back', 'finish']\"\n (output)=\"onButtonPortalOutput($event)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n</div>\n", styles: [".nui-dashwiz__header{padding:10px 15px;background-color:var(--nui-color-bg-secondary,#fafafa);border-bottom:1px solid #d9d9d9;border-bottom:1px solid var(--nui-color-line-default, #d9d9d9);overflow:hidden;text-align:center;display:flex;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.nui-dashwiz__header-steps{margin-bottom:0;white-space:nowrap;display:inline-flex}.nui-dashwiz__header-step{line-height:normal;display:inline-flex;cursor:pointer}.nui-dashwiz__header-step--disabled{pointer-events:none;cursor:default}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link{color:var(--nui-color-text-link,#006791)}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-link:hover{text-decoration:underline}.nui-dashwiz__header-step--visited .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--first .nui-dashwiz__header-step-col-right,.nui-dashwiz__header-step--last .nui-dashwiz__header-step-col-left{border-color:transparent;opacity:0}.nui-dashwiz__header-step--active{cursor:default}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link{color:var(--nui-color-bg-dark,#111)}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link:hover .nui-dashwiz__header-step-title{text-decoration:none}.nui-dashwiz__header-step--active .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--complete .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-left>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step--complete .nui-dashwiz__header-step-link .nui-dashwiz__header-step-col-right>.nui-dashwiz__header-step-line{border-color:var(--nui-color-line-active,#0079aa)}.nui-dashwiz__header-step-container{display:inline-table;width:100%}.nui-dashwiz__header-step-container-bottom{display:none}.nui-dashwiz__header-step-container-bottom .nui-dashwiz__header-step-title{width:100%;max-width:100%;margin:0}.nui-dashwiz__header-step-row{display:table-row}.nui-dashwiz__header-step-col{display:table-cell;vertical-align:middle}.nui-dashwiz__header-step-col .nui-dashwiz__header-step-line{border-color:var(--nui-color-line-default,#d9d9d9)}.nui-dashwiz__header-step-col-right .nui-dashwiz__header-step-line{margin-right:-1px}.nui-dashwiz__header-step-line{border-bottom:solid 2px;height:2px}.nui-dashwiz__header-step-link{color:var(--nui-color-text-secondary,rgba(17, 17, 17, .6));transition:color .3s}.nui-dashwiz__header-step-link-container{display:flex;align-content:baseline;justify-content:center;align-items:center}.nui-dashwiz__header-step-title{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis;vertical-align:middle;display:inline-block;max-width:140px;margin:0 0 5px;text-decoration:inherit}.nui-dashwiz__header.nui-dashwiz__header--lines-stretched .nui-dashwiz__header-step-title{max-width:unset}.nui-dashwiz__footer{z-index:1080;background-color:var(--nui-color-bg-content,#fff);border-top:solid 1px var(--nui-color-line-default, #d9d9d9);transition:box-shadow .3s ease-in-out}.nui-dashwiz__footer.shadow{box-shadow:0 0 5px 0 var(--nui-shadow-color-stronger, rgba(17, 17, 17, .6))}\n"] }]
|
|
12991
13004
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }, { type: i2.LoggerService }, { type: DashwizService }, { type: i3.ScrollDispatcher }], propDecorators: { steps: [{
|
|
12992
13005
|
type: ContentChildren,
|
|
12993
13006
|
args: [DashwizStepComponent]
|
|
@@ -13443,7 +13456,7 @@ class WidgetEditorAccordionHeaderComponent {
|
|
|
13443
13456
|
this.headerTitle = "";
|
|
13444
13457
|
}
|
|
13445
13458
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEditorAccordionHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13446
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetEditorAccordionHeaderComponent, isStandalone: false, selector: "nui-widget-editor-accordion-header", inputs: { headerIcon: "headerIcon", iconColor: "iconColor", subtitle: "subtitle", headerTitle: "headerTitle" }, ngImport: i0, template: "<!-- This component can be used instead of specifying a custom template with accordionHeader attribute -->\n<!-- You can use it the same way (without accordionHeader attribute), it will get automatically assigned to the header of the accordion -->\n<div class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n *ngIf=\"headerIcon\"\n [icon]=\"headerIcon\"\n [iconColor]=\"iconColor\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>\n {{ headerTitle }}\n </span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle\">\n {{ subtitle }}\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }] }); }
|
|
13459
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetEditorAccordionHeaderComponent, isStandalone: false, selector: "nui-widget-editor-accordion-header", inputs: { headerIcon: "headerIcon", iconColor: "iconColor", subtitle: "subtitle", headerTitle: "headerTitle" }, ngImport: i0, template: "<!-- This component can be used instead of specifying a custom template with accordionHeader attribute -->\n<!-- You can use it the same way (without accordionHeader attribute), it will get automatically assigned to the header of the accordion -->\n<div class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n *ngIf=\"headerIcon\"\n [icon]=\"headerIcon\"\n [iconColor]=\"iconColor\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>\n {{ headerTitle }}\n </span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle\">\n {{ subtitle }}\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }] }); }
|
|
13447
13460
|
}
|
|
13448
13461
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEditorAccordionHeaderComponent, decorators: [{
|
|
13449
13462
|
type: Component,
|
|
@@ -13510,7 +13523,7 @@ class WidgetEditorAccordionComponent {
|
|
|
13510
13523
|
this.destroySubject.complete();
|
|
13511
13524
|
}
|
|
13512
13525
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEditorAccordionComponent, deps: [{ token: WidgetConfiguratorSectionCoordinatorService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13513
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetEditorAccordionComponent, isStandalone: false, selector: "nui-widget-editor-accordion", inputs: { showOpenStateIcon: "showOpenStateIcon", state: "state" }, outputs: { openToggle: "openToggle" }, ngImport: i0, template: "<div class=\"nui-widget-editor-accordion\">\n <nui-expander [open]=\"open\" (openChange)=\"openChange($event)\">\n <div\n nuiExpanderHeader\n class=\"d-flex align-items-start\"\n [class.error-state]=\"state === 'critical'\"\n [class.warning-state]=\"state === 'warning'\"\n >\n <ng-content\n select=\"[accordionHeader], nui-widget-editor-accordion-header\"\n ></ng-content>\n <nui-icon\n *ngIf=\"showOpenStateIcon\"\n class=\"nui-widget-editor-accordion__edit-icon\"\n [icon]=\"open ? 'triangle-down' : 'triangle-left'\"\n ></nui-icon>\n </div>\n <ng-content></ng-content>\n </nui-expander>\n</div>\n", styles: [".nui-widget-editor-accordion nui-form-field:last-child .nui-form-field{margin-bottom:0}.nui-widget-editor-accordion__edit-icon{padding:10px;margin-left:auto;margin-right:5px}.nui-widget-editor-accordion .nui-expander--expanded{padding-bottom:0}.nui-widget-editor-accordion .nui-expander__header-icon{display:none}.nui-widget-editor-accordion .nui-expander__header .error-state{background-color:var(--nui-color-semantic-critical-bg,#fceae6)}.nui-widget-editor-accordion .nui-expander__header .warning-state{background-color:var(--nui-color-semantic-warning-bg,#fff9e6)}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader]{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);min-height:50px}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]{overflow:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div{overflow-x:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div .nui-text-secondary,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div .nui-text-secondary{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget-editor-accordion .nui-expander__body{margin:0;padding:0;border-left:none}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ExpanderComponent, selector: "nui-expander", inputs: ["disabled", "icon", "header", "hideLeftBorder", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
13526
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: WidgetEditorAccordionComponent, isStandalone: false, selector: "nui-widget-editor-accordion", inputs: { showOpenStateIcon: "showOpenStateIcon", state: "state" }, outputs: { openToggle: "openToggle" }, ngImport: i0, template: "<div class=\"nui-widget-editor-accordion\">\n <nui-expander [open]=\"open\" (openChange)=\"openChange($event)\">\n <div\n nuiExpanderHeader\n class=\"d-flex align-items-start\"\n [class.error-state]=\"state === 'critical'\"\n [class.warning-state]=\"state === 'warning'\"\n >\n <ng-content\n select=\"[accordionHeader], nui-widget-editor-accordion-header\"\n ></ng-content>\n <nui-icon\n *ngIf=\"showOpenStateIcon\"\n class=\"nui-widget-editor-accordion__edit-icon\"\n [icon]=\"open ? 'triangle-down' : 'triangle-left'\"\n ></nui-icon>\n </div>\n <ng-content></ng-content>\n </nui-expander>\n</div>\n", styles: [".nui-widget-editor-accordion nui-form-field:last-child .nui-form-field{margin-bottom:0}.nui-widget-editor-accordion__edit-icon{padding:10px;margin-left:auto;margin-right:5px}.nui-widget-editor-accordion .nui-expander--expanded{padding-bottom:0}.nui-widget-editor-accordion .nui-expander__header-icon{display:none}.nui-widget-editor-accordion .nui-expander__header .error-state{background-color:var(--nui-color-semantic-critical-bg,#fceae6)}.nui-widget-editor-accordion .nui-expander__header .warning-state{background-color:var(--nui-color-semantic-warning-bg,#fff9e6)}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader]{border-top:1px solid;border-top-color:var(--nui-color-line-default,#d9d9d9);min-height:50px}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]{overflow:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div{overflow-x:hidden}.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] nui-widget-editor-accordion-header>div .nui-text-secondary,.nui-widget-editor-accordion .nui-expander__header [nuiexpanderheader] [accordionheader]>div .nui-text-secondary{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-widget-editor-accordion .nui-expander__body{margin:0;padding:0;border-left:none}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ExpanderComponent, selector: "nui-expander", inputs: ["disabled", "icon", "header", "hideLeftBorder", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
13514
13527
|
}
|
|
13515
13528
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetEditorAccordionComponent, decorators: [{
|
|
13516
13529
|
type: Component,
|
|
@@ -13833,7 +13846,7 @@ class BackgroundColorRulesConfigurationComponent {
|
|
|
13833
13846
|
rules.setControl(currentIndex, temp);
|
|
13834
13847
|
}
|
|
13835
13848
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: KpiColorComparatorsRegistryService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
13836
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: BackgroundColorRulesConfigurationComponent, isStandalone: false, selector: "nui-background-color-rules-configuration", inputs: { rules: "rules", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\"\n />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngFor=\"\n let rule of formLocal.get('rules')?.value.controls;\n index as i\n \"\n >\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n >\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\"\n >\n <nui-icon\n icon=\"drag\"\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n ></nui-icon>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\"\n >\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\"\n >\n <nui-textbox\n formControlName=\"value\"\n ></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\"\n >\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"\n ></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"\n ></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n </div>\n </ng-container>\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n\n >\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move}.kpi-color-rule__control{min-width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13849
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: BackgroundColorRulesConfigurationComponent, isStandalone: false, selector: "nui-background-color-rules-configuration", inputs: { rules: "rules", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"formLocal\"\n [state]=\"formLocal | nuiWidgetEditorAccordionFormState | async\"\n>\n <nui-widget-editor-accordion-header\n [headerIcon]=\"formLocal | nuiFormHeaderIconPipe : 'color' | async\"\n [subtitle]=\"getColorRulesSubtitle()\"\n headerTitle=\"Background color rules\"\n />\n <div class=\"kpi-color-rules-configuration__accordion-content\">\n <div class=\"mb-4\">\n <p class=\"mb-3\">\n We can automatically change the background color when the value\n meets certain conditions.\n </p>\n <div cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <ng-container\n *ngFor=\"\n let rule of formLocal.get('rules')?.value.controls;\n index as i\n \"\n >\n <div\n class=\"kpi-color-rule d-flex pt-3\"\n [formGroup]=\"rule\"\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n >\n <div\n class=\"kpi-color-rule__control justify-content-center d-flex\"\n >\n <nui-icon\n icon=\"drag\"\n class=\"kpi-color-rule__drag align-items-center\"\n cdkDragHandle\n ></nui-icon>\n </div>\n <div class=\"d-flex flex-grow-1 flex-wrap\">\n <nui-form-field\n class=\"mr-3 mb-3 flex-grow-1\"\n [control]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n style=\"min-width: 220px\"\n [formControl]=\"rule.get('comparisonType')\"\n >\n <nui-select-v2-option\n *ngFor=\"\n let item of availableComparators\n | keyvalue\n \"\n [value]=\"item.key\"\n >\n {{ getLabel(item.key) }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('value')\"\n style=\"max-width: 100px\"\n >\n <nui-textbox\n formControlName=\"value\"\n ></nui-textbox>\n </nui-form-field>\n\n <nui-form-field\n class=\"mr-3 mb-3\"\n [control]=\"rule.get('color')\"\n >\n <nui-color-picker\n formControlName=\"color\"\n [colorPalette]=\"palette\"\n ></nui-color-picker>\n </nui-form-field>\n </div>\n <button\n nui-button\n icon=\"delete\"\n displayStyle=\"action\"\n type=\"button\"\n class=\"kpi-color-rule__control\"\n (click)=\"removeRule(i)\"\n ></button>\n <nui-drop-area\n *cdkDragPlaceholder\n [style.height.px]=\"height\"\n ></nui-drop-area>\n </div>\n </ng-container>\n </div>\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n type=\"button\"\n (click)=\"addRule()\"\n i18n\n >\n Add new rule\n </button>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-color-rules-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-color-rules-configuration__color-select{display:flex;align-items:center}.kpi-color-rules-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-color-rules-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-color-rules-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}.kpi-color-rule{background-color:var(--nui-color-bg-content,#fff)}.kpi-color-rule__drag{cursor:move}.kpi-color-rule__control{min-width:30px;height:30px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: WidgetEditorAccordionHeaderComponent, selector: "nui-widget-editor-accordion-header", inputs: ["headerIcon", "iconColor", "subtitle", "headerTitle"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.KeyValuePipe, name: "keyvalue" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
13837
13850
|
}
|
|
13838
13851
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: BackgroundColorRulesConfigurationComponent, decorators: [{
|
|
13839
13852
|
type: Component,
|
|
@@ -14359,7 +14372,7 @@ class EmbeddedContentConfigurationComponent {
|
|
|
14359
14372
|
});
|
|
14360
14373
|
}
|
|
14361
14374
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EmbeddedContentConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14362
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: EmbeddedContentConfigurationComponent, isStandalone: false, selector: "nui-embedded-content-configuration", inputs: { mode: "mode", messageComponent: "messageComponent", customEmbeddedContent: "customEmbeddedContent" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required\n >\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\"\n >\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14375
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: EmbeddedContentConfigurationComponent, isStandalone: false, selector: "nui-embedded-content-configuration", inputs: { mode: "mode", messageComponent: "messageComponent", customEmbeddedContent: "customEmbeddedContent" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center pl-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'tag' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt1\">\n <span class=\"nui-text-label\" i18n>Embedded Content</span>\n <div class=\"nui-text-secondary\">\n Show the specific HTML I supply\n </div>\n </div>\n </div>\n <div class=\"embedded-configurator-section__accordion-content\">\n <ng-container\n nuiComponentPortal\n #componentPortal=\"nuiComponentPortal\"\n [componentType]=\"messageComponent.componentType\"\n [properties]=\"messageComponent.properties\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n <nui-form-field\n [control]=\"form.get('mode')\"\n caption=\"What do you want to show in the widget?\"\n i18n-caption\n >\n <nui-radio-group\n formControlName=\"mode\"\n [(value)]=\"mode\"\n name=\"mode\"\n required\n >\n <nui-radio [value]=\"modes[0].value\">\n {{ modes[0].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('urlCustomContent')\">\n <nui-textbox formControlName=\"urlCustomContent\">\n </nui-textbox>\n </nui-form-field>\n <nui-radio [value]=\"modes[1].value\">\n {{ modes[1].displayValue }}\n </nui-radio>\n <nui-form-field [control]=\"form.get('htmlCustomContent')\">\n <nui-textbox\n class=\"textarea-scrollable\"\n formControlName=\"htmlCustomContent\"\n rows=\"7\"\n >\n </nui-textbox>\n </nui-form-field>\n </nui-radio-group>\n </nui-form-field>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".embedded-configurator-section__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.RadioComponent, selector: "nui-radio", inputs: ["value", "hovered", "checked", "hint", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: i2.RadioGroupComponent, selector: "nui-radio-group", inputs: ["ariaLabel", "name", "value", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14363
14376
|
}
|
|
14364
14377
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EmbeddedContentConfigurationComponent, decorators: [{
|
|
14365
14378
|
type: Component,
|
|
@@ -14485,7 +14498,7 @@ class KpiDescriptionConfigurationComponent {
|
|
|
14485
14498
|
}
|
|
14486
14499
|
}
|
|
14487
14500
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: KpiDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14488
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: KpiDescriptionConfigurationComponent, isStandalone: false, selector: "nui-kpi-description-configuration", inputs: { componentId: "componentId", configurableUnits: "configurableUnits", label: "label", backgroundColor: "backgroundColor", units: "units", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"kpi-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\"\n >\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\"\n >\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14501
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: KpiDescriptionConfigurationComponent, isStandalone: false, selector: "nui-kpi-description-configuration", inputs: { componentId: "componentId", configurableUnits: "configurableUnits", label: "label", backgroundColor: "backgroundColor", units: "units", backgroundColors: "backgroundColors" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"kpi-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <nui-form-field\n caption=\"Background Color\"\n i18n-caption\n [control]=\"form.get('backgroundColor')\"\n class=\"form-group\"\n >\n <nui-color-picker\n class=\"kpi-description-configuration__accordion-content__color-picker\"\n formControlName=\"backgroundColor\"\n [colorPalette]=\"backgroundColors\"\n >\n </nui-color-picker>\n </nui-form-field>\n\n <div class=\"mt-4\" *ngIf=\"configurableUnits\">\n <nui-form-field\n caption=\"Units\"\n i18n-caption\n [control]=\"form.get('units')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"units\"\n placeholder=\"Units\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".kpi-description-configuration__accordion-content{padding:15px 15px 15px 46px}.kpi-description-configuration__color-select{display:flex;align-items:center}.kpi-description-configuration__color-preview{width:100%;height:20px;border-radius:3px}.kpi-description-configuration__color-preview.with-arrow{width:calc(100% - 40px);margin-left:10px}.kpi-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ColorPickerComponent, selector: "nui-color-picker", inputs: ["colors", "colorPalette", "cols", "isSelect"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
14489
14502
|
}
|
|
14490
14503
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: KpiDescriptionConfigurationComponent, decorators: [{
|
|
14491
14504
|
type: Component,
|
|
@@ -14906,7 +14919,7 @@ class RefresherConfigurationComponent {
|
|
|
14906
14919
|
return result;
|
|
14907
14920
|
}
|
|
14908
14921
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RefresherConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }, { token: i2.LoggerService }, { token: RefresherSettingsService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
14909
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: RefresherConfigurationComponent, isStandalone: false, selector: "nui-refresher-configuration", inputs: { enabled: "enabled", interval: "interval", minSeconds: "minSeconds", maxSeconds: "maxSeconds", overrideDefaultSettingsCaption: "overrideDefaultSettingsCaption", overrideDefaultSettings: "overrideDefaultSettings" }, outputs: { formReady: "formReady" }, viewQueries: [{ propertyName: "refreshRateComp", first: true, predicate: RefreshRateConfiguratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\"\n >\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n\n >Refresh widget periodically</nui-switch\n >\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\"\n >{{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n\n >\n By default, the widget will refresh every\n {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds\n )\n }}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\"\n >\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"\n ></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: RefreshRateConfiguratorComponent, selector: "nui-refresh-rate-configurator", inputs: ["minSeconds", "maxSeconds"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] }); }
|
|
14922
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: RefresherConfigurationComponent, isStandalone: false, selector: "nui-refresher-configuration", inputs: { enabled: "enabled", interval: "interval", minSeconds: "minSeconds", maxSeconds: "maxSeconds", overrideDefaultSettingsCaption: "overrideDefaultSettingsCaption", overrideDefaultSettings: "overrideDefaultSettings" }, outputs: { formReady: "formReady" }, viewQueries: [{ propertyName: "refreshRateComp", first: true, predicate: RefreshRateConfiguratorComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n iconColor=\"gray\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'reset' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Refresh</span>\n <div class=\"nui-text-secondary\" [title]=\"getHeaderSubtitle()\">\n {{ getHeaderSubtitle() }}\n </div>\n </div>\n </div>\n <div\n class=\"d-flex flex-column nui-refresher-configuration__accordion-content\"\n >\n <div>\n <nui-form-field [control]=\"form.get('enabled')\">\n <nui-switch formControlName=\"enabled\" i18n\n >Refresh widget periodically</nui-switch\n >\n </nui-form-field>\n </div>\n <div [class.hidden]=\"!form.get('enabled')?.value\">\n <div class=\"mt-4\">\n <nui-form-field [control]=\"form.get('overrideDefaultSettings')\">\n <nui-switch formControlName=\"overrideDefaultSettings\"\n >{{ overrideDefaultSettingsCaption }}\n <div\n class=\"nui-help-hint\"\n *ngIf=\"!form.get('overrideDefaultSettings')?.value\"\n i18n\n >\n By default, the widget will refresh every\n {{\n getDurationLabel(\n refresherSettings.refreshRateSeconds\n )\n }}.\n </div>\n </nui-switch>\n </nui-form-field>\n </div>\n <div\n [class.hidden]=\"!form.get('overrideDefaultSettings')?.value\"\n class=\"mt-4\"\n >\n <nui-form-field [control]=\"form.get('interval')\">\n <nui-refresh-rate-configurator\n [minSeconds]=\"minSeconds\"\n [maxSeconds]=\"maxSeconds\"\n formControlName=\"interval\"\n ></nui-refresh-rate-configurator>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".nui-refresher-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "component", type: RefreshRateConfiguratorComponent, selector: "nui-refresh-rate-configurator", inputs: ["minSeconds", "maxSeconds"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }] }); }
|
|
14910
14923
|
}
|
|
14911
14924
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RefresherConfigurationComponent, decorators: [{
|
|
14912
14925
|
type: Component,
|
|
@@ -15004,7 +15017,7 @@ class RiskScoreTileDescriptionConfigurationComponent {
|
|
|
15004
15017
|
}
|
|
15005
15018
|
}
|
|
15006
15019
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15007
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: RiskScoreTileDescriptionConfigurationComponent, isStandalone: false, selector: "nui-risk-score-tile-description-configuration", inputs: { componentId: "componentId", label: "label", minValue: "minValue", maxValue: "maxValue", description: "description", useStaticLabel: "useStaticLabel", staticLabel: "staticLabel" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"risk-score-tile-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Min Value\"\n i18n-caption\n [control]=\"form.get('minValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Max Value\"\n i18n-caption\n [control]=\"form.get('maxValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n [control]=\"form.get('useStaticLabel')\"\n class=\"form-group\"\n >\n <nui-switch formControlName=\"useStaticLabel\" i18n\n >Use Float Label</nui-switch\n >\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\" [class.hidden]=\"!form.get('useStaticLabel')?.value\">\n <nui-form-field\n caption=\"Float Label\"\n i18n-caption\n [control]=\"form.get('staticLabel')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Description\"\n i18n-caption\n [control]=\"form.get('description')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"maxlength\" i18n>\n Description cannot be longer than\n {{ MAX_DESCRIPTION_LENGTH }} characters.\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".risk-score-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}.risk-score-tile-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15020
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: RiskScoreTileDescriptionConfigurationComponent, isStandalone: false, selector: "nui-risk-score-tile-description-configuration", inputs: { componentId: "componentId", label: "label", minValue: "minValue", maxValue: "maxValue", description: "description", useStaticLabel: "useStaticLabel", staticLabel: "staticLabel" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'widget_list' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Description</span>\n <div class=\"nui-text-secondary\" [title]=\"subtitle$ | async\">\n {{ subtitle$ | async }}\n </div>\n </div>\n </div>\n <div class=\"risk-score-tile-description-configuration__accordion-content\">\n <div class=\"mb-4\">\n <nui-form-field\n caption=\"Label\"\n i18n-caption\n [control]=\"form.get('label')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"label\"\n placeholder=\"Set label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Min Value\"\n i18n-caption\n [control]=\"form.get('minValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"minValue\"\n placeholder=\"Min Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Max Value\"\n i18n-caption\n [control]=\"form.get('maxValue')\"\n class=\"form-group\"\n >\n <nui-textbox-number\n formControlName=\"maxValue\"\n placeholder=\"Max Value\"\n i18n-placeholder\n ></nui-textbox-number>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n [control]=\"form.get('useStaticLabel')\"\n class=\"form-group\"\n >\n <nui-switch formControlName=\"useStaticLabel\" i18n\n >Use Float Label</nui-switch\n >\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\" [class.hidden]=\"!form.get('useStaticLabel')?.value\">\n <nui-form-field\n caption=\"Float Label\"\n i18n-caption\n [control]=\"form.get('staticLabel')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"staticLabel\"\n placeholder=\"Set float label\"\n i18n-placeholder\n ></nui-textbox>\n </nui-form-field>\n </div>\n\n <div class=\"mt-4\">\n <nui-form-field\n caption=\"Description\"\n i18n-caption\n [control]=\"form.get('description')\"\n class=\"form-group\"\n >\n <nui-textbox\n formControlName=\"description\"\n placeholder=\"Set description\"\n i18n-placeholder\n ></nui-textbox>\n <nui-validation-message for=\"maxlength\" i18n>\n Description cannot be longer than\n {{ MAX_DESCRIPTION_LENGTH }} characters.\n </nui-validation-message>\n </nui-form-field>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".risk-score-tile-description-configuration__accordion-content{padding:15px 15px 15px 46px}.risk-score-tile-description-configuration__selector-arrow{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-left:1px solid;border-left-color:var(--nui-color-line-default,#d9d9d9);margin-left:10px}\n"], dependencies: [{ kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.TextboxComponent, selector: "nui-textbox", inputs: ["caption", "autocomplete", "info", "customBoxWidth", "disabled", "hint", "name", "placeholder", "readonly", "rows", "type", "value", "isInErrorState", "ariaLabel", "isBusy"], outputs: ["textChange", "blurred"] }, { kind: "component", type: i2.TextboxNumberComponent, selector: "nui-textbox-number", inputs: ["value", "customBoxWidth", "disabled", "name", "placeholder", "readonly", "step", "stepPrecision", "isInErrorState", "ariaLabel", "minValue", "maxValue"], outputs: ["blurred", "valueChange"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.ValidationMessageComponent, selector: "nui-validation-message", inputs: ["show", "for"] }, { kind: "component", type: i2.SwitchComponent, selector: "nui-switch", inputs: ["value", "disabled", "ariaLabel"], outputs: ["valueChange"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
15008
15021
|
}
|
|
15009
15022
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: RiskScoreTileDescriptionConfigurationComponent, decorators: [{
|
|
15010
15023
|
type: Component,
|
|
@@ -15464,7 +15477,7 @@ class EntityFormattingConfigurationComponent {
|
|
|
15464
15477
|
return this.form.get("dataFieldIds");
|
|
15465
15478
|
}
|
|
15466
15479
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EntityFormattingConfigurationComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$2.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
15467
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: EntityFormattingConfigurationComponent, isStandalone: false, selector: "nui-entity-formatting-configuration", inputs: { mappingKeys: "mappingKeys", dataFieldIds: "dataFieldIds" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"'tag'\"\n iconColor=\"gray\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Entity formatting</span>\n <div class=\"nui-text-secondary\" title=\"Show status icon\">\n Show status icon\n </div>\n </div>\n </div>\n <div\n class=\"entity-formatting__accordion-content\"\n formGroupName=\"dataFieldIds\"\n >\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Icon</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('icon')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"icon\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Status</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('status')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"status\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Details URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('detailedUrl')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"detailedUrl\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('label')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"label\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('url')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"url\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".entity-formatting__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }] }); }
|
|
15480
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: EntityFormattingConfigurationComponent, isStandalone: false, selector: "nui-entity-formatting-configuration", inputs: { mappingKeys: "mappingKeys", dataFieldIds: "dataFieldIds" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<nui-widget-editor-accordion\n [formGroup]=\"form\"\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n>\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"'tag'\"\n iconColor=\"gray\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n>Entity formatting</span>\n <div class=\"nui-text-secondary\" title=\"Show status icon\">\n Show status icon\n </div>\n </div>\n </div>\n <div\n class=\"entity-formatting__accordion-content\"\n formGroupName=\"dataFieldIds\"\n >\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Icon</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('icon')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"icon\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Status</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('status')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"status\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Details URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('detailedUrl')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"detailedUrl\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('label')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"label\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n <div class=\"mb-3\">\n <label class=\"nui-text-label\" i18n>Label URL</label>\n <div class=\"d-flex flex-grow-1\">\n <nui-form-field\n class=\"d-flex flex-grow-1\"\n [control]=\"getFieldMappingsControl.get('url')\"\n >\n <nui-select-v2\n placeholder=\"Select Item\"\n i18n-placeholder\n formControlName=\"url\"\n >\n <nui-select-v2-option\n *ngFor=\"let item of mappingKeys\"\n [value]=\"item\"\n >\n {{ item }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n </div>\n </div>\n</nui-widget-editor-accordion>\n", styles: [".entity-formatting__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }] }); }
|
|
15468
15481
|
}
|
|
15469
15482
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: EntityFormattingConfigurationComponent, decorators: [{
|
|
15470
15483
|
type: Component,
|
|
@@ -16204,7 +16217,7 @@ class DonutContentConfigurationComponent {
|
|
|
16204
16217
|
};
|
|
16205
16218
|
}
|
|
16206
16219
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DonutContentConfigurationComponent, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: PIZZAGNA_EVENT_BUS }, { token: ProportionalDonutContentFormattersRegistryService }, { token: ProportionalContentAggregatorsRegistryService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
16207
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DonutContentConfigurationComponent, isStandalone: false, selector: "nui-donut-content-configuration", inputs: { chartType: "chartType", formatter: "formatter", aggregator: "aggregator" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"shown\" [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n\n >Donut Content Configuration</span\n >\n <div class=\"nui-text-secondary\" [title]=\"subtitleText\">\n {{ subtitleText }}\n </div>\n </div>\n </div>\n\n <div class=\"donut-content-configuration__accordion-content\">\n <!-- aggregator -->\n <div class=\"mb-4\" formGroupName=\"aggregator\">\n <nui-form-field\n caption=\"Aggregate\"\n i18n-caption\n [control]=\"form.get('aggregator.aggregatorType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"aggregatorType\"\n >\n <nui-select-v2-option\n *ngFor=\"let aggregator of aggregators\"\n [displayValueContext]=\"aggregator.label\"\n [value]=\"aggregator.aggregatorType\"\n >\n {{ aggregator.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- formatter -->\n <div class=\"mb-4\" formGroupName=\"formatter\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.get('formatter.componentType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- aggregator configuration component -->\n <ng-container\n *ngIf=\"currentAggregatorDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentAggregatorDefinition?.configurationComponent\n \"\n [properties]=\"aggregatorConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('aggregator', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n\n <!-- formatter configuration component -->\n <ng-container\n *ngIf=\"currentFormatterDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentFormatterDefinition?.configurationComponent\n \"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('formatter', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".donut-content-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16220
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: DonutContentConfigurationComponent, isStandalone: false, selector: "nui-donut-content-configuration", inputs: { chartType: "chartType", formatter: "formatter", aggregator: "aggregator" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<ng-container *ngIf=\"shown\" [formGroup]=\"form\">\n <nui-widget-editor-accordion\n [state]=\"form | nuiWidgetEditorAccordionFormState | async\"\n >\n <div accordionHeader class=\"d-flex align-items-center px-4 py-2\">\n <nui-icon\n class=\"align-self-start pt-2\"\n [icon]=\"form | nuiFormHeaderIconPipe : 'customize' | async\"\n ></nui-icon>\n <div class=\"d-flex flex-column ml-4 pt-1\">\n <span class=\"nui-text-label\" i18n\n >Donut Content Configuration</span\n >\n <div class=\"nui-text-secondary\" [title]=\"subtitleText\">\n {{ subtitleText }}\n </div>\n </div>\n </div>\n\n <div class=\"donut-content-configuration__accordion-content\">\n <!-- aggregator -->\n <div class=\"mb-4\" formGroupName=\"aggregator\">\n <nui-form-field\n caption=\"Aggregate\"\n i18n-caption\n [control]=\"form.get('aggregator.aggregatorType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"aggregatorType\"\n >\n <nui-select-v2-option\n *ngFor=\"let aggregator of aggregators\"\n [displayValueContext]=\"aggregator.label\"\n [value]=\"aggregator.aggregatorType\"\n >\n {{ aggregator.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- formatter -->\n <div class=\"mb-4\" formGroupName=\"formatter\">\n <nui-form-field\n caption=\"Format\"\n i18n-caption\n [control]=\"form.get('formatter.componentType')\"\n >\n <nui-select-v2\n placeholder=\"Select Format\"\n i18n-placeholder\n formControlName=\"componentType\"\n >\n <nui-select-v2-option\n *ngFor=\"let formatter of formatters\"\n [displayValueContext]=\"formatter.label\"\n [value]=\"formatter.componentType\"\n >\n {{ formatter.label }}\n </nui-select-v2-option>\n </nui-select-v2>\n </nui-form-field>\n </div>\n\n <!-- aggregator configuration component -->\n <ng-container\n *ngIf=\"currentAggregatorDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentAggregatorDefinition?.configurationComponent\n \"\n [properties]=\"aggregatorConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('aggregator', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n\n <!-- formatter configuration component -->\n <ng-container\n *ngIf=\"currentFormatterDefinition?.configurationComponent\"\n nuiComponentPortal\n componentId=\"formatterConfigurator\"\n [componentType]=\"\n currentFormatterDefinition?.configurationComponent\n \"\n [properties]=\"formatterConfiguratorProps\"\n [outputs]=\"['formReady']\"\n (output)=\"onFormReady('formatter', $event.payload)\"\n #componentPortal=\"nuiComponentPortal\"\n >\n <ng-template\n [cdkPortalOutlet]=\"componentPortal.portal\"\n (attached)=\"componentPortal.attached($event)\"\n ></ng-template>\n </ng-container>\n </div>\n </nui-widget-editor-accordion>\n</ng-container>\n", styles: [".donut-content-configuration__accordion-content{padding:15px 15px 15px 46px}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1$2.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i5.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }, { kind: "directive", type: ComponentPortalDirective, selector: "[nuiComponentPortal]", inputs: ["componentId", "componentType", "properties", "providers", "outputs"], outputs: ["output"], exportAs: ["nuiComponentPortal"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.FormFieldComponent, selector: "nui-form-field", inputs: ["control", "caption", "info", "infoTemplate", "hint", "hintTemplate", "customBoxWidth", "showOptionalText"] }, { kind: "component", type: i2.SelectV2Component, selector: "nui-select-v2", inputs: ["displayValueTemplate"] }, { kind: "component", type: i2.SelectV2OptionComponent, selector: "nui-select-v2-option", inputs: ["value", "index", "displayValueContext", "outfiltered"] }, { kind: "component", type: WidgetEditorAccordionComponent, selector: "nui-widget-editor-accordion", inputs: ["showOpenStateIcon", "state"], outputs: ["openToggle"] }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetEditorAccordionFormStatePipe, name: "nuiWidgetEditorAccordionFormState" }, { kind: "pipe", type: FormHeaderIconPipePipe, name: "nuiFormHeaderIconPipe" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
16208
16221
|
}
|
|
16209
16222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: DonutContentConfigurationComponent, decorators: [{
|
|
16210
16223
|
type: Component,
|
|
@@ -17825,7 +17838,7 @@ class TableColumnsConfigurationV2Component {
|
|
|
17825
17838
|
event.source.element.nativeElement.offsetHeight;
|
|
17826
17839
|
}
|
|
17827
17840
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableColumnsConfigurationV2Component, deps: [{ token: i1$2.FormBuilder }, { token: i0.ChangeDetectorRef }, { token: i2.DialogService }, { token: PizzagnaService }, { token: ConfiguratorDataSourceManagerService }, { token: TableFormatterRegistryService }, { token: PIZZAGNA_EVENT_BUS }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
17828
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableColumnsConfigurationV2Component, isStandalone: false, selector: "nui-table-columns-configuration", inputs: { columns: "columns", componentId: "componentId", template: "template" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"nui-table-columns-configuration\">\n <div\n *ngIf=\"!dataSourceError && dataSourceFields.length\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n [formGroup]=\"form\"\n >\n <div formArrayName=\"columns\">\n <div\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n class=\"nui-table-columns-configuration__node-item\"\n *ngFor=\"\n let columnForm of columnForms;\n index as i;\n trackBy: trackBy\n \"\n >\n <nui-drop-area\n class=\"nui-table-columns-configuration__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"draggedItemHeight\"\n ></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container>\n <div\n class=\"nui-table-columns-configuration__drag-handler\"\n cdkDragHandle\n >\n <nui-icon icon=\"drag\"></nui-icon>\n </div>\n </ng-container>\n <span\n class=\"nui-table-columns-configuration__header-text\"\n [title]=\"\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n \"\n >\n {{\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <button\n id=\"table-widget-remove-column-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n (click)=\"removeItem(i)\"\n ></button>\n </div>\n </ng-template>\n\n <nui-widget-configurator-section\n class=\"no-margin\"\n [headerTextTemplate]=\"headerText\"\n [headerButtonsTemplate]=\"headerButtons\"\n >\n <nui-table-column-configuration\n [formControl]=\"columnForm\"\n [isWidthMessageDisplayed]=\"isWidthMessageDisplayed\"\n ></nui-table-column-configuration>\n </nui-widget-configurator-section>\n </div>\n\n <div\n class=\"pl-4 pr-4\"\n *ngIf=\"(emptyColumns$ | async) && form.touched\"\n >\n <nui-message type=\"critical\" [allowDismiss]=\"false\">\n <b i18n>At least one column must be added.</b>\n </nui-message>\n </div>\n\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n id=\"table-widget-add-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"addColumn()\"\n i18n\n >\n Add new column\n </button>\n\n <button\n nui-button\n icon=\"reset\"\n displayStyle=\"action\"\n id=\"table-widget-reset-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"onResetColumns()\"\n i18n\n >\n Reset columns\n </button>\n </div>\n </div>\n</div>\n", styles: [".nui-table-columns-configuration__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-table-columns-configuration__drag-handler{cursor:move;display:flex}.nui-table-columns-configuration__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-table-columns-configuration__node-item .widget-configurator-section{margin:0}.nui-table-columns-configuration__drop-area{margin:15px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: TableColumnConfigurationComponent, selector: "nui-table-column-configuration", inputs: ["formControl", "isWidthMessageDisplayed"] }, { kind: "component", type: WidgetConfiguratorSectionComponent, selector: "nui-widget-configurator-section", inputs: ["headerTextTemplate", "headerButtonsTemplate", "nodes", "headerText"], outputs: ["formReady", "formDestroy"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
17841
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.16", type: TableColumnsConfigurationV2Component, isStandalone: false, selector: "nui-table-columns-configuration", inputs: { columns: "columns", componentId: "componentId", template: "template" }, outputs: { formReady: "formReady" }, usesOnChanges: true, ngImport: i0, template: "<div class=\"nui-table-columns-configuration\">\n <div\n *ngIf=\"!dataSourceError && dataSourceFields.length\"\n cdkDropList\n (cdkDropListDropped)=\"drop($event)\"\n [formGroup]=\"form\"\n >\n <div formArrayName=\"columns\">\n <div\n cdkDrag\n (cdkDragStarted)=\"cdkDragStarted($event)\"\n class=\"nui-table-columns-configuration__node-item\"\n *ngFor=\"\n let columnForm of columnForms;\n index as i;\n trackBy: trackBy\n \"\n >\n <nui-drop-area\n class=\"nui-table-columns-configuration__drop-area\"\n *cdkDragPlaceholder\n [style.height.px]=\"draggedItemHeight\"\n ></nui-drop-area>\n\n <ng-template #headerText>\n <ng-container>\n <div\n class=\"nui-table-columns-configuration__drag-handler\"\n cdkDragHandle\n >\n <nui-icon icon=\"drag\"></nui-icon>\n </div>\n </ng-container>\n <span\n class=\"nui-table-columns-configuration__header-text\"\n [title]=\"\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n \"\n >\n {{\n columnForm?.value.label\n | nuiWidgetConfiguratorSectionHeader\n : i\n : columnLabel\n }}\n </span>\n </ng-template>\n\n <ng-template #headerButtons>\n <div class=\"d-flex\">\n <button\n id=\"table-widget-remove-column-btn-{{ i }}\"\n nui-button\n type=\"button\"\n icon=\"delete\"\n displayStyle=\"action\"\n (click)=\"removeItem(i)\"\n ></button>\n </div>\n </ng-template>\n\n <nui-widget-configurator-section\n class=\"no-margin\"\n [headerTextTemplate]=\"headerText\"\n [headerButtonsTemplate]=\"headerButtons\"\n >\n <nui-table-column-configuration\n [formControl]=\"columnForm\"\n [isWidthMessageDisplayed]=\"isWidthMessageDisplayed\"\n ></nui-table-column-configuration>\n </nui-widget-configurator-section>\n </div>\n\n <div\n class=\"pl-4 pr-4\"\n *ngIf=\"(emptyColumns$ | async) && form.touched\"\n >\n <nui-message type=\"critical\" [allowDismiss]=\"false\">\n <b i18n>At least one column must be added.</b>\n </nui-message>\n </div>\n\n <button\n nui-button\n icon=\"add\"\n displayStyle=\"action\"\n id=\"table-widget-add-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"addColumn()\"\n i18n\n >\n Add new column\n </button>\n\n <button\n nui-button\n icon=\"reset\"\n displayStyle=\"action\"\n id=\"table-widget-reset-indicator-btn\"\n type=\"button\"\n class=\"ml-4 mb-4\"\n (click)=\"onResetColumns()\"\n i18n\n >\n Reset columns\n </button>\n </div>\n </div>\n</div>\n", styles: [".nui-table-columns-configuration__header-text{white-space:nowrap;overflow:hidden;-ms-text-overflow:ellipsis;-o-text-overflow:ellipsis;text-overflow:ellipsis}.nui-table-columns-configuration__drag-handler{cursor:move;display:flex}.nui-table-columns-configuration__node-item{background-color:var(--nui-color-bg-light,#fff);margin:15px}.nui-table-columns-configuration__node-item .widget-configurator-section{margin:0}.nui-table-columns-configuration__drop-area{margin:15px}.cdk-drag-preview{z-index:2000!important;opacity:.9;box-shadow:0 0 5px 0 var(--nui-shadow-color, rgba(17, 17, 17, .3))}\n"], dependencies: [{ kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$2.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$2.FormArrayName, selector: "[formArrayName]", inputs: ["formArrayName"] }, { kind: "directive", type: i5$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i5$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i5$1.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "directive", type: i5$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }, { kind: "component", type: i2.IconComponent, selector: "nui-icon", inputs: ["iconColor", "brushType", "iconHoverColor", "iconSize", "cssClass", "fillContainer", "status", "childStatus", "icon", "counter", "decorative", "ariaLabel", "explicitRole"] }, { kind: "component", type: i2.ButtonComponent, selector: "[nui-button]", inputs: ["displayStyle", "icon", "iconColor", "iconRight", "isBusy", "isEmpty", "ariaLabel", "isRepeat", "size"] }, { kind: "component", type: i2.MessageComponent, selector: "nui-message", inputs: ["type", "allowDismiss", "manualControl"], outputs: ["dismiss"] }, { kind: "component", type: TableColumnConfigurationComponent, selector: "nui-table-column-configuration", inputs: ["formControl", "isWidthMessageDisplayed"] }, { kind: "component", type: WidgetConfiguratorSectionComponent, selector: "nui-widget-configurator-section", inputs: ["headerTextTemplate", "headerButtonsTemplate", "nodes", "headerText"], outputs: ["formReady", "formDestroy"] }, { kind: "component", type: DropAreaComponent, selector: "nui-drop-area" }, { kind: "pipe", type: i4.AsyncPipe, name: "async" }, { kind: "pipe", type: WidgetConfiguratorSectionHeaderPipe, name: "nuiWidgetConfiguratorSectionHeader" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
17829
17842
|
}
|
|
17830
17843
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: TableColumnsConfigurationV2Component, decorators: [{
|
|
17831
17844
|
type: Component,
|