@c8y/ngx-components 1023.14.68 → 1023.14.76
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/asset-properties/index.d.ts +20 -2
- package/asset-properties/index.d.ts.map +1 -1
- package/cockpit-config/index.d.ts.map +1 -1
- package/datapoint-selector/index.d.ts.map +1 -1
- package/echart/index.d.ts.map +1 -1
- package/ecosystem/application-plugins/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-asset-properties.mjs +36 -12
- package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-cockpit-config.mjs +7 -7
- package/fesm2022/c8y-ngx-components-cockpit-config.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +3 -11
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +44 -14
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs +10 -7
- package/fesm2022/c8y-ngx-components-ecosystem-application-plugins.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-services.mjs +2 -2
- package/fesm2022/c8y-ngx-components-services.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-tenants.mjs +2 -2
- package/fesm2022/c8y-ngx-components-tenants.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs +3 -3
- package/fesm2022/c8y-ngx-components-widgets-definitions-html-widget.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-exports.mjs +52 -50
- package/fesm2022/c8y-ngx-components-widgets-exports.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-html-widget.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-three-d-rotation.mjs +4 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-three-d-rotation.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +30 -7
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/index.d.ts +10 -2
- package/index.d.ts.map +1 -1
- package/locales/de.po +317 -21
- package/locales/es.po +289 -7
- package/locales/fr.po +289 -7
- package/locales/ja_JP.po +289 -7
- package/locales/ko.po +289 -7
- package/locales/locales.pot +289 -7
- package/locales/nl.po +289 -7
- package/locales/pl.po +289 -7
- package/locales/pt_BR.po +289 -7
- package/locales/zh_CN.po +289 -7
- package/locales/zh_TW.po +289 -7
- package/package.json +1 -1
- package/widgets/exports/index.d.ts.map +1 -1
- package/widgets/implementations/html-widget/index.d.ts +2 -2
- package/widgets/implementations/html-widget/index.d.ts.map +1 -1
- package/widgets/implementations/three-d-rotation/index.d.ts.map +1 -1
|
@@ -6721,16 +6721,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6721
6721
|
}], ctorParameters: () => [{ type: FilesService }] });
|
|
6722
6722
|
|
|
6723
6723
|
class GetGroupIconPipe {
|
|
6724
|
-
constructor(groupService) {
|
|
6724
|
+
constructor(groupService, inventoryService) {
|
|
6725
6725
|
this.groupService = groupService;
|
|
6726
|
+
this.inventoryService = inventoryService;
|
|
6726
6727
|
}
|
|
6727
|
-
async transform(
|
|
6728
|
+
async transform(moOrId, open = false, defaultIcon) {
|
|
6729
|
+
let mo;
|
|
6730
|
+
if (typeof moOrId === 'string') {
|
|
6731
|
+
try {
|
|
6732
|
+
const { data } = await this.inventoryService.detail(moOrId);
|
|
6733
|
+
mo = data;
|
|
6734
|
+
}
|
|
6735
|
+
catch {
|
|
6736
|
+
return 'c8y-group';
|
|
6737
|
+
}
|
|
6738
|
+
}
|
|
6739
|
+
else {
|
|
6740
|
+
mo = moOrId;
|
|
6741
|
+
}
|
|
6728
6742
|
if (!mo.c8y_IsDevice) {
|
|
6729
6743
|
return this.groupService.getIcon(mo, open, 'c8y-group-open');
|
|
6730
6744
|
}
|
|
6731
6745
|
return this.groupService.getIcon(mo, open, defaultIcon);
|
|
6732
6746
|
}
|
|
6733
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GetGroupIconPipe, deps: [{ token: GroupService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
6747
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GetGroupIconPipe, deps: [{ token: GroupService }, { token: i1.InventoryService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
6734
6748
|
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.16", ngImport: i0, type: GetGroupIconPipe, isStandalone: true, name: "getGroupIcon" }); }
|
|
6735
6749
|
}
|
|
6736
6750
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: GetGroupIconPipe, decorators: [{
|
|
@@ -6739,7 +6753,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
6739
6753
|
name: 'getGroupIcon',
|
|
6740
6754
|
standalone: true
|
|
6741
6755
|
}]
|
|
6742
|
-
}], ctorParameters: () => [{ type: GroupService }] });
|
|
6756
|
+
}], ctorParameters: () => [{ type: GroupService }, { type: i1.InventoryService }] });
|
|
6743
6757
|
|
|
6744
6758
|
const internalApps = {
|
|
6745
6759
|
administration: gettext$1('Administration'),
|
|
@@ -10592,7 +10606,11 @@ class DatapointSyncService {
|
|
|
10592
10606
|
const updatedDatapoint = Object.assign({}, foundUpdatedDp.c8y_Kpi, {
|
|
10593
10607
|
__template: foundUpdatedDp.id
|
|
10594
10608
|
});
|
|
10595
|
-
|
|
10609
|
+
/* Exclude fragment and series from being assigned as in some scenarios it was overwriting values in the datapoint with the ones from the template
|
|
10610
|
+
which caused issues when the template had different fragment/series than the datapoint
|
|
10611
|
+
*/
|
|
10612
|
+
const { fragment: _fragment, series: _series, ...rest } = updatedDatapoint;
|
|
10613
|
+
Object.assign(datapoint, rest);
|
|
10596
10614
|
}
|
|
10597
10615
|
if (datapoint.__target?.id) {
|
|
10598
10616
|
const foundUpdatedTarget = currentManagedObjects.find(mo => mo.id === datapoint.__target?.id || mo.id === `${datapoint.__target?.id}`);
|
|
@@ -31443,6 +31461,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImpo
|
|
|
31443
31461
|
class WidgetTimeContextMediatorService {
|
|
31444
31462
|
constructor() {
|
|
31445
31463
|
this.globalUpdate = signal(null, ...(ngDevMode ? [{ debugName: "globalUpdate" }] : []));
|
|
31464
|
+
/**
|
|
31465
|
+
* Flag indicating the current update originated from a slider zoom interaction.
|
|
31466
|
+
* Used to prevent resetting initialTimeRange when syncing zoom across widgets.
|
|
31467
|
+
*/
|
|
31468
|
+
this.isSliderZoomUpdate = signal(false, ...(ngDevMode ? [{ debugName: "isSliderZoomUpdate" }] : []));
|
|
31446
31469
|
}
|
|
31447
31470
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetTimeContextMediatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
31448
31471
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: WidgetTimeContextMediatorService, providedIn: 'root' }); }
|
|
@@ -31667,11 +31690,11 @@ class CellRendererComponent {
|
|
|
31667
31690
|
}
|
|
31668
31691
|
}
|
|
31669
31692
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CellRendererComponent, deps: [{ token: i0.Injector }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
31670
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CellRendererComponent, isStandalone: true, selector: "c8y-cell-renderer", inputs: { _spec: ["spec", "_spec"] }, usesOnChanges: true, ngImport: i0, template: "@if (spec.renderer) {\n @if (rendererType === 'TEMPLATE') {\n <ng-container\n [ngTemplateOutlet]=\"spec.renderer\"\n [ngTemplateOutletContext]=\"{ $implicit: spec.context }\"\n ></ng-container>\n }\n @if (rendererType === 'COMPONENT') {\n <ng-container\n [c8yComponentOutlet]=\"spec.renderer\"\n [c8yComponentOutletInjector]=\"rendererInjector\"\n ></ng-container>\n }\n}\n\n@if (!spec.renderer) {\n <span title=\"{{ spec.context.value |
|
|
31693
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.16", type: CellRendererComponent, isStandalone: true, selector: "c8y-cell-renderer", inputs: { _spec: ["spec", "_spec"] }, usesOnChanges: true, ngImport: i0, template: "@if (spec.renderer) {\n @if (rendererType === 'TEMPLATE') {\n <ng-container\n [ngTemplateOutlet]=\"spec.renderer\"\n [ngTemplateOutletContext]=\"{ $implicit: spec.context }\"\n ></ng-container>\n }\n @if (rendererType === 'COMPONENT') {\n <ng-container\n [c8yComponentOutlet]=\"spec.renderer\"\n [c8yComponentOutletInjector]=\"rendererInjector\"\n ></ng-container>\n }\n}\n\n@if (!spec.renderer) {\n @if (spec.context.property.translate) {\n <span title=\"{{ spec.context.value | translate }}\">\n {{ spec.context.value | translate }}\n </span>\n } @else {\n <span title=\"{{ spec.context.value | stringifyObject }}\">\n {{ spec.context.value | stringifyObject }}\n </span>\n }\n}\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: C8yComponentOutlet, selector: "[c8yComponentOutlet]", inputs: ["c8yComponentOutlet", "c8yComponentOutletInjector", "c8yComponentOutletEnvironmentInjector", "c8yComponentOutletProviders", "c8yComponentOutletInitialState"] }, { kind: "pipe", type: StringifyObjectPipe, name: "stringifyObject" }, { kind: "pipe", type: C8yTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
31671
31694
|
}
|
|
31672
31695
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: CellRendererComponent, decorators: [{
|
|
31673
31696
|
type: Component,
|
|
31674
|
-
args: [{ selector: 'c8y-cell-renderer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet, C8yComponentOutlet, StringifyObjectPipe], template: "@if (spec.renderer) {\n @if (rendererType === 'TEMPLATE') {\n <ng-container\n [ngTemplateOutlet]=\"spec.renderer\"\n [ngTemplateOutletContext]=\"{ $implicit: spec.context }\"\n ></ng-container>\n }\n @if (rendererType === 'COMPONENT') {\n <ng-container\n [c8yComponentOutlet]=\"spec.renderer\"\n [c8yComponentOutletInjector]=\"rendererInjector\"\n ></ng-container>\n }\n}\n\n@if (!spec.renderer) {\n <span title=\"{{ spec.context.value |
|
|
31697
|
+
args: [{ selector: 'c8y-cell-renderer', changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [NgTemplateOutlet, C8yComponentOutlet, StringifyObjectPipe, C8yTranslatePipe], template: "@if (spec.renderer) {\n @if (rendererType === 'TEMPLATE') {\n <ng-container\n [ngTemplateOutlet]=\"spec.renderer\"\n [ngTemplateOutletContext]=\"{ $implicit: spec.context }\"\n ></ng-container>\n }\n @if (rendererType === 'COMPONENT') {\n <ng-container\n [c8yComponentOutlet]=\"spec.renderer\"\n [c8yComponentOutletInjector]=\"rendererInjector\"\n ></ng-container>\n }\n}\n\n@if (!spec.renderer) {\n @if (spec.context.property.translate) {\n <span title=\"{{ spec.context.value | translate }}\">\n {{ spec.context.value | translate }}\n </span>\n } @else {\n <span title=\"{{ spec.context.value | stringifyObject }}\">\n {{ spec.context.value | stringifyObject }}\n </span>\n }\n}\n" }]
|
|
31675
31698
|
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.ChangeDetectorRef }], propDecorators: { _spec: [{
|
|
31676
31699
|
type: Input,
|
|
31677
31700
|
args: ['spec']
|