@c8y/ngx-components 1023.48.3 → 1023.52.0
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 +1 -2
- package/asset-properties/index.d.ts.map +1 -1
- package/context-dashboard/index.d.ts.map +1 -1
- package/datapoint-explorer/view/index.d.ts +8 -0
- package/datapoint-explorer/view/index.d.ts.map +1 -1
- package/datapoint-selector/index.d.ts +14 -1
- package/datapoint-selector/index.d.ts.map +1 -1
- package/echart/index.d.ts +7 -2
- package/echart/index.d.ts.map +1 -1
- package/echart/models/index.d.ts +1 -0
- package/echart/models/index.d.ts.map +1 -1
- package/fesm2022/c8y-ngx-components-asset-properties.mjs +3 -4
- package/fesm2022/c8y-ngx-components-asset-properties.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs +2 -3
- package/fesm2022/c8y-ngx-components-context-dashboard.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +33 -4
- package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs +24 -7
- package/fesm2022/c8y-ngx-components-datapoint-selector.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-device-grid.mjs +1 -1
- package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-echart.mjs +128 -52
- package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-global-context.mjs +7 -2
- package/fesm2022/c8y-ngx-components-global-context.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions-asset-table.mjs +127 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-asset-table.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs +3 -3
- package/fesm2022/c8y-ngx-components-widgets-definitions-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-definitions.mjs +1 -0
- package/fesm2022/c8y-ngx-components-widgets-definitions.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-exports.mjs +8 -1
- package/fesm2022/c8y-ngx-components-widgets-exports.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs +1959 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-asset-table.mjs.map +1 -0
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +90 -56
- package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
- package/fesm2022/c8y-ngx-components.mjs +1724 -1464
- package/fesm2022/c8y-ngx-components.mjs.map +1 -1
- package/global-context/index.d.ts +1 -0
- package/global-context/index.d.ts.map +1 -1
- package/index.d.ts +1453 -1339
- package/index.d.ts.map +1 -1
- package/locales/de.po +213 -3
- package/locales/es.po +213 -3
- package/locales/fr.po +213 -3
- package/locales/ja_JP.po +213 -3
- package/locales/ko.po +213 -3
- package/locales/locales.pot +219 -3
- package/locales/nl.po +213 -3
- package/locales/pl.po +213 -3
- package/locales/pt_BR.po +213 -3
- package/locales/zh_CN.po +213 -3
- package/locales/zh_TW.po +213 -3
- package/package.json +1 -1
- package/widgets/cockpit-exports/index.d.ts +6 -0
- package/widgets/cockpit-exports/index.d.ts.map +1 -1
- package/widgets/definitions/asset-table/index.d.ts +6 -0
- package/widgets/definitions/asset-table/index.d.ts.map +1 -0
- package/widgets/definitions/index.d.ts +1 -0
- package/widgets/definitions/index.d.ts.map +1 -1
- package/widgets/device-management-exports/index.d.ts +6 -0
- package/widgets/device-management-exports/index.d.ts.map +1 -1
- package/widgets/exports/index.d.ts +8 -1
- package/widgets/exports/index.d.ts.map +1 -1
- package/widgets/implementations/asset-table/index.d.ts +229 -0
- package/widgets/implementations/asset-table/index.d.ts.map +1 -0
- package/widgets/implementations/datapoints-graph/index.d.ts +14 -3
- package/widgets/implementations/datapoints-graph/index.d.ts.map +1 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { PreviewService, hookWidget, hookPreview } from '@c8y/ngx-components';
|
|
2
|
+
import { WidgetAssetSelectorComponent, hookWidgetConfig } from '@c8y/ngx-components/context-dashboard';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, Injectable } from '@angular/core';
|
|
5
|
+
import { gettext } from '@c8y/ngx-components/gettext';
|
|
6
|
+
import { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';
|
|
7
|
+
import { importConfigWithDevice, exportConfigWithDevice } from '@c8y/ngx-components/widgets/import-export-config';
|
|
8
|
+
import { map } from 'rxjs';
|
|
9
|
+
|
|
10
|
+
class AssetTableWidgetFactory {
|
|
11
|
+
constructor() {
|
|
12
|
+
this.previewService = inject(PreviewService);
|
|
13
|
+
this.baseWidgetDefinition = {
|
|
14
|
+
id: defaultWidgetIds.ASSET_TABLE,
|
|
15
|
+
label: gettext('Asset table'),
|
|
16
|
+
description: gettext('Displays a table of assets with configurable columns and filters.'),
|
|
17
|
+
loadComponent: () => import('@c8y/ngx-components/widgets/implementations/asset-table').then(m => m.AssetTableWidgetViewComponent),
|
|
18
|
+
previewImage: 'c8y-style-assets/asset-table-pr.png',
|
|
19
|
+
data: {
|
|
20
|
+
settings: {
|
|
21
|
+
schema: () => import('c8y-schema-loader?interfaceName=AssetTableWidgetConfig!@c8y/ngx-components/widgets/implementations/asset-table'),
|
|
22
|
+
export: exportConfigWithDevice,
|
|
23
|
+
import: importConfigWithDevice,
|
|
24
|
+
noNewWidgets: false,
|
|
25
|
+
widgetDefaults: {
|
|
26
|
+
_width: 8,
|
|
27
|
+
_height: 6
|
|
28
|
+
},
|
|
29
|
+
ng1: {
|
|
30
|
+
options: {
|
|
31
|
+
noDeviceTarget: true,
|
|
32
|
+
groupsSelectable: true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
displaySettings: {
|
|
37
|
+
globalTimeContext: true,
|
|
38
|
+
globalAutoRefreshContext: true
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
get() {
|
|
44
|
+
return this.previewService.getState$('ui.asset-table.v2').pipe(map(state => {
|
|
45
|
+
if (state) {
|
|
46
|
+
return [this.baseWidgetDefinition];
|
|
47
|
+
}
|
|
48
|
+
return [];
|
|
49
|
+
}));
|
|
50
|
+
}
|
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableWidgetFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
52
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableWidgetFactory, providedIn: 'root' }); }
|
|
53
|
+
}
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableWidgetFactory, decorators: [{
|
|
55
|
+
type: Injectable,
|
|
56
|
+
args: [{
|
|
57
|
+
providedIn: 'root'
|
|
58
|
+
}]
|
|
59
|
+
}] });
|
|
60
|
+
|
|
61
|
+
class AssetTableConfigFactory {
|
|
62
|
+
constructor() {
|
|
63
|
+
this.betaPreviewService = inject(PreviewService);
|
|
64
|
+
this.baseWidgetConfigDefinition = [
|
|
65
|
+
{
|
|
66
|
+
widgetId: defaultWidgetIds.ASSET_TABLE,
|
|
67
|
+
label: gettext('Asset selection'),
|
|
68
|
+
loadComponent: () => Promise.resolve(WidgetAssetSelectorComponent),
|
|
69
|
+
priority: 100,
|
|
70
|
+
initialState: {
|
|
71
|
+
isRequired: false,
|
|
72
|
+
groupsSelectable: true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
widgetId: defaultWidgetIds.ASSET_TABLE,
|
|
77
|
+
label: gettext('Asset properties'),
|
|
78
|
+
loadComponent: () => import('@c8y/ngx-components/widgets/implementations/asset-table').then(m => m.AssetTablePropertiesSelectorComponent),
|
|
79
|
+
priority: 50,
|
|
80
|
+
expanded: true
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
widgetId: defaultWidgetIds.ASSET_TABLE,
|
|
84
|
+
label: gettext('Settings'),
|
|
85
|
+
loadComponent: () => import('@c8y/ngx-components/widgets/implementations/asset-table').then(m => m.AssetTableWidgetConfigComponent),
|
|
86
|
+
priority: 0,
|
|
87
|
+
expanded: true
|
|
88
|
+
}
|
|
89
|
+
];
|
|
90
|
+
}
|
|
91
|
+
get() {
|
|
92
|
+
return this.betaPreviewService.getState$('ui.asset-table.v2').pipe(map(state => {
|
|
93
|
+
if (state) {
|
|
94
|
+
return this.baseWidgetConfigDefinition;
|
|
95
|
+
}
|
|
96
|
+
return [];
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableConfigFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
100
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableConfigFactory, providedIn: 'root' }); }
|
|
101
|
+
}
|
|
102
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.16", ngImport: i0, type: AssetTableConfigFactory, decorators: [{
|
|
103
|
+
type: Injectable,
|
|
104
|
+
args: [{
|
|
105
|
+
providedIn: 'root'
|
|
106
|
+
}]
|
|
107
|
+
}] });
|
|
108
|
+
|
|
109
|
+
const assetTableWidgetProviders = [
|
|
110
|
+
hookWidget(AssetTableWidgetFactory),
|
|
111
|
+
hookWidgetConfig(AssetTableConfigFactory),
|
|
112
|
+
hookPreview({
|
|
113
|
+
key: 'ui.asset-table.v2',
|
|
114
|
+
label: gettext('Asset table v2'),
|
|
115
|
+
description: () => import('@c8y/style/markdown-files/asset-table-widget-preview.md').then(m => m.default),
|
|
116
|
+
settings: {
|
|
117
|
+
reload: true
|
|
118
|
+
}
|
|
119
|
+
})
|
|
120
|
+
];
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* Generated bundle index. Do not edit.
|
|
124
|
+
*/
|
|
125
|
+
|
|
126
|
+
export { assetTableWidgetProviders };
|
|
127
|
+
//# sourceMappingURL=c8y-ngx-components-widgets-definitions-asset-table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-widgets-definitions-asset-table.mjs","sources":["../../widgets/definitions/asset-table/asset-table.factory.ts","../../widgets/definitions/asset-table/asset-table-config.factory.ts","../../widgets/definitions/asset-table/index.ts","../../widgets/definitions/asset-table/c8y-ngx-components-widgets-definitions-asset-table.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport {\n DynamicComponentDefinition,\n DynamicWidgetDefinition,\n ExtensionFactory,\n PreviewService\n} from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport {\n exportConfigWithDevice,\n importConfigWithDevice\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { map, Observable } from 'rxjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AssetTableWidgetFactory implements ExtensionFactory<DynamicComponentDefinition> {\n private readonly previewService = inject(PreviewService);\n private readonly baseWidgetDefinition: DynamicComponentDefinition = {\n id: defaultWidgetIds.ASSET_TABLE,\n label: gettext('Asset table'),\n description: gettext('Displays a table of assets with configurable columns and filters.'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/asset-table').then(\n m => m.AssetTableWidgetViewComponent\n ),\n previewImage: 'c8y-style-assets/asset-table-pr.png',\n data: {\n settings: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=AssetTableWidgetConfig!@c8y/ngx-components/widgets/implementations/asset-table'\n ),\n export: exportConfigWithDevice,\n import: importConfigWithDevice,\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 6\n },\n ng1: {\n options: {\n noDeviceTarget: true,\n groupsSelectable: true\n }\n }\n },\n displaySettings: {\n globalTimeContext: true,\n globalAutoRefreshContext: true\n }\n }\n };\n\n get(): Observable<DynamicWidgetDefinition[]> {\n return this.previewService.getState$('ui.asset-table.v2').pipe(\n map(state => {\n if (state) {\n return [this.baseWidgetDefinition];\n }\n return [];\n })\n );\n }\n}\n","import { inject, Injectable } from '@angular/core';\nimport { ExtensionFactory, PreviewService } from '@c8y/ngx-components';\nimport {\n WidgetAssetSelectorComponent,\n WidgetConfigSectionDefinition\n} from '@c8y/ngx-components/context-dashboard';\nimport { map, Observable } from 'rxjs';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AssetTableConfigFactory implements ExtensionFactory<WidgetConfigSectionDefinition> {\n private readonly betaPreviewService = inject(PreviewService);\n private readonly baseWidgetConfigDefinition: WidgetConfigSectionDefinition[] = [\n {\n widgetId: defaultWidgetIds.ASSET_TABLE,\n label: gettext('Asset selection'),\n loadComponent: () => Promise.resolve(WidgetAssetSelectorComponent),\n priority: 100,\n initialState: {\n isRequired: false,\n groupsSelectable: true\n }\n },\n {\n widgetId: defaultWidgetIds.ASSET_TABLE,\n label: gettext('Asset properties'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/asset-table').then(\n m => m.AssetTablePropertiesSelectorComponent\n ),\n priority: 50,\n expanded: true\n },\n {\n widgetId: defaultWidgetIds.ASSET_TABLE,\n label: gettext('Settings'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/asset-table').then(\n m => m.AssetTableWidgetConfigComponent\n ),\n priority: 0,\n expanded: true\n }\n ];\n\n get(): Observable<WidgetConfigSectionDefinition[]> {\n return this.betaPreviewService.getState$('ui.asset-table.v2').pipe(\n map(state => {\n if (state) {\n return this.baseWidgetConfigDefinition;\n }\n return [];\n })\n );\n }\n}\n","import { hookPreview, hookWidget } from '@c8y/ngx-components';\nimport { hookWidgetConfig } from '@c8y/ngx-components/context-dashboard';\nimport { AssetTableWidgetFactory } from './asset-table.factory';\nimport { AssetTableConfigFactory } from './asset-table-config.factory';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nexport const assetTableWidgetProviders = [\n hookWidget(AssetTableWidgetFactory),\n hookWidgetConfig(AssetTableConfigFactory),\n hookPreview({\n key: 'ui.asset-table.v2',\n label: gettext('Asset table v2'),\n description: () =>\n import('@c8y/style/markdown-files/asset-table-widget-preview.md').then(m => m.default),\n settings: {\n reload: true\n }\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;MAkBa,uBAAuB,CAAA;AAHpC,IAAA,WAAA,GAAA;AAImB,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,cAAc,CAAC;AACvC,QAAA,IAAA,CAAA,oBAAoB,GAA+B;YAClE,EAAE,EAAE,gBAAgB,CAAC,WAAW;AAChC,YAAA,KAAK,EAAE,OAAO,CAAC,aAAa,CAAC;AAC7B,YAAA,WAAW,EAAE,OAAO,CAAC,mEAAmE,CAAC;AACzF,YAAA,aAAa,EAAE,MACb,OAAO,yDAAyD,CAAC,CAAC,IAAI,CACpE,CAAC,IAAI,CAAC,CAAC,6BAA6B,CACrC;AACH,YAAA,YAAY,EAAE,qCAAqC;AACnD,YAAA,IAAI,EAAE;AACJ,gBAAA,QAAQ,EAAE;AACR,oBAAA,MAAM,EAAE,MACN,OACE,gHAAgH,CACjH;AACH,oBAAA,MAAM,EAAE,sBAAsB;AAC9B,oBAAA,MAAM,EAAE,sBAAsB;AAC9B,oBAAA,YAAY,EAAE,KAAK;AACnB,oBAAA,cAAc,EAAE;AACd,wBAAA,MAAM,EAAE,CAAC;AACT,wBAAA,OAA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,EAAA,uBAAuB,cAFtB,MAAM,EAAA,CAAA,CAAA;;4FAEP,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAHnC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACNM,MAAM,yBAAyB,GAAG;IACvC,UAAU,CAAC,uBAAuB,CAAC;IACnC,gBAAgB,CAAC,uBAAuB,CAAC;AACzC,IAAA,WAAW,CAAC;AACV,QAAA,GAAG,EAAE,mBAAmB;AACxB,QAAA,KAAK,EAAE,OAAO,CAAC,gBAAgB,CAAC;AAChC,QAAA,WAAW,EAAE,MACX,OAAO,yDAAyD,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC;AACxF,QAAA,QAAQ,EAAE;AACR,YAAA,MAAM,EAAE;AACT;KACF;;;ACjBH;;AAEG;;;;"}
|
|
@@ -116,7 +116,7 @@ class DatapointGraphFactory {
|
|
|
116
116
|
this.previewFeatureService = inject(PreviewService);
|
|
117
117
|
this.baseWidgetDefinition = {
|
|
118
118
|
id: defaultWidgetIds.DATAPOINTS_GRAPH,
|
|
119
|
-
label: gettext('Data
|
|
119
|
+
label: gettext('Data graph'),
|
|
120
120
|
description: gettext('Displays a graph of selected data points'),
|
|
121
121
|
loadComponent: () => import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(m => m.DatapointsGraphWidgetViewComponent),
|
|
122
122
|
loadConfigComponent: () => import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(m => m.DatapointsGraphWidgetConfigComponent),
|
|
@@ -168,14 +168,14 @@ const datapointGraphWidgetproviders = [
|
|
|
168
168
|
hookWidget(DatapointGraphFactory),
|
|
169
169
|
hookPreview({
|
|
170
170
|
key: 'ui.datapoint-graph.v2',
|
|
171
|
-
label: 'Data
|
|
171
|
+
label: 'Data graph',
|
|
172
172
|
description: () => import('@c8y/style/markdown-files/datapoint-graph-preview.md').then(m => m.default),
|
|
173
173
|
settings: {
|
|
174
174
|
reload: true
|
|
175
175
|
}
|
|
176
176
|
}),
|
|
177
177
|
/* We need to register the widget config for both the new and old widget IDs. This ensures compatibility for widgets
|
|
178
|
-
created with the new data
|
|
178
|
+
created with the new data graph id (e.g. if a data point graph widget was created via community plugins)
|
|
179
179
|
and widgets using the default one (toggled via preview feature)
|
|
180
180
|
*/
|
|
181
181
|
hookWidgetConfig({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-widgets-definitions-datapoints-graph.mjs","sources":["../../widgets/definitions/datapoints-graph/datapoint-graph-widget-controls-definition.ts","../../widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.ts","../../widgets/definitions/datapoints-graph/index.ts","../../widgets/definitions/datapoints-graph/c8y-ngx-components-widgets-definitions-datapoints-graph.ts"],"sourcesContent":["import {\n defineWidgetControls,\n createAutoRefreshHandlers\n} from '@c8y/ngx-components/global-context';\n\nconst autoRefreshHandlers = createAutoRefreshHandlers();\n\nexport const datapointsGraphWidgetControls = defineWidgetControls({\n name: 'datapoints-graph-widget',\n supports: [\n 'timeRange',\n 'liveRefresh',\n 'displayMode',\n 'refreshInterval',\n 'refreshOption',\n 'dataAggregation',\n 'source',\n 'eventSourceId'\n ],\n handlers: {\n disableAutoRefresh: {\n handler: state => {\n const result = autoRefreshHandlers.disableAutoRefresh(state);\n return {\n inlineControlSettings: result?.inlineControlSettings ?? {},\n dashboardControlSettings: result?.dashboardControlSettings ?? {},\n links: result?.links ?? {},\n options: result?.options\n };\n }\n }\n },\n settings: {\n dashboard: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n config: {\n live: {\n inline: {\n showAutoRefresh: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {},\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n viewAndConfig: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n },\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n defaultLinks: {\n dashboard: {\n live: {\n dateTimeContext: true,\n isAutoRefreshEnabled: true\n },\n history: {\n dateTimeContext: true,\n aggregation: true\n }\n },\n config: {},\n viewAndConfig: {}\n }\n }\n});\n","import { inject, Injectable } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n DynamicDatapointsResolver,\n PreviewService,\n DynamicWidgetDefinition\n} from '@c8y/ngx-components';\nimport { map, Observable } from 'rxjs';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport cloneDeep from 'lodash/cloneDeep';\nimport {\n exportConfigWithTargets,\n importConfigWithTargets\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\n@Injectable()\nexport class DatapointGraphFactory {\n private readonly previewFeatureService = inject(PreviewService);\n\n private readonly baseWidgetDefinition: DynamicWidgetDefinition = {\n id: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Data points graph'),\n description: gettext('Displays a graph of selected data points'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetViewComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/datapoints-graph-widget.png',\n resolve: {\n datapoints: DynamicDatapointsResolver\n },\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=DatapointsGraphWidgetConfig!@c8y/ngx-components/echart'\n ),\n export: exportConfigWithTargets,\n import: importConfigWithTargets,\n widgetControls: datapointsGraphWidgetControls,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n noDeviceTarget: true,\n groupsSelectable: false\n },\n displaySettings: {\n globalTimeContext: true,\n globalAggregationContext: true,\n globalRealtimeContext: true\n }\n }\n };\n\n get(): Observable<DynamicWidgetDefinition[]> {\n return this.previewFeatureService.getState$('ui.datapoint-graph.v2').pipe(\n map(state => {\n if (state) {\n const newWidgetDefinition = cloneDeep(this.baseWidgetDefinition);\n newWidgetDefinition.id = defaultWidgetIds.DATAPOINTS_GRAPH_NEW;\n newWidgetDefinition.data.settings.noNewWidgets = true;\n\n return [this.baseWidgetDefinition, newWidgetDefinition];\n }\n return [];\n })\n );\n }\n}\n","import { hookPreview, hookWidget } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { DatapointGraphFactory } from './datapoint-graph-widget-factory';\nimport {\n hookWidgetConfig,\n GlobalContextSectionComponent\n} from '@c8y/ngx-components/context-dashboard';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\nexport const datapointGraphWidgetproviders = [\n hookWidget(DatapointGraphFactory),\n hookPreview({\n key: 'ui.datapoint-graph.v2',\n label: 'Data points graph',\n description: () =>\n import('@c8y/style/markdown-files/datapoint-graph-preview.md').then(m => m.default),\n settings: {\n reload: true\n }\n }),\n /* We need to register the widget config for both the new and old widget IDs. This ensures compatibility for widgets\n created with the new data point graph id (e.g. if a data point graph widget was created via community plugins)\n and widgets using the default one (toggled via preview feature)\n */\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH_NEW,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n }),\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAKA,MAAM,mBAAmB,GAAG,yBAAyB,EAAE;AAEhD,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAChE,IAAA,IAAI,EAAE,yBAAyB;AAC/B,IAAA,QAAQ,EAAE;QACR,WAAW;QACX,aAAa;QACb,aAAa;QACb,iBAAiB;QACjB,eAAe;QACf,iBAAiB;QACjB,QAAQ;QACR;AACD,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,kBAAkB,EAAE;YAClB,OAAO,EAAE,KAAK,IAAG;gBACf,MAAM,MAAM,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,CAAC;gBAC5D,OAAO;AACL,oBAAA,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,IAAI,EAAE;AAC1D,oBAAA,wBAAwB,EAAE,MAAM,EAAE,wBAAwB,IAAI,EAAE;AAChE,oBAAA,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE;oBAC1B,OAAO,EAAE,MAAM,EAAE;iBAClB;YACH;AACD;AACF,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE;AACJ,gBAAA,MAAM,EAAE;AACN,oBAAA,eAAe,EAAE,IAAI;AACrB,oBAAA,eAAe,EAAE;AAClB;AACF,aAAA;AACD,YAAA,OAAO,EAAE;AACP,gBAAA,MAAM,EAAE;AACN,oBAAA,eAAe,EAAE,IAAI;AACrB,oBAAA,eAAe,EAAE;AAClB;AACF;AACF,SAAA;AACD,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE;AACJ,gB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AC9C,QAAQ,EAAE,gBAAgB,CAAC,gBAAgB;AAC3C,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC;AAC9B,QAAA,YAAY,EAAE;AACZ,YAAA,cAAc,EAAE;AACjB,SAAA;AACD,QAAA,aAAa,EAAE,MACb,OAAO,uCAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,6BAA6B;KAC5F;;;AC5CH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-widgets-definitions-datapoints-graph.mjs","sources":["../../widgets/definitions/datapoints-graph/datapoint-graph-widget-controls-definition.ts","../../widgets/definitions/datapoints-graph/datapoint-graph-widget-factory.ts","../../widgets/definitions/datapoints-graph/index.ts","../../widgets/definitions/datapoints-graph/c8y-ngx-components-widgets-definitions-datapoints-graph.ts"],"sourcesContent":["import {\n defineWidgetControls,\n createAutoRefreshHandlers\n} from '@c8y/ngx-components/global-context';\n\nconst autoRefreshHandlers = createAutoRefreshHandlers();\n\nexport const datapointsGraphWidgetControls = defineWidgetControls({\n name: 'datapoints-graph-widget',\n supports: [\n 'timeRange',\n 'liveRefresh',\n 'displayMode',\n 'refreshInterval',\n 'refreshOption',\n 'dataAggregation',\n 'source',\n 'eventSourceId'\n ],\n handlers: {\n disableAutoRefresh: {\n handler: state => {\n const result = autoRefreshHandlers.disableAutoRefresh(state);\n return {\n inlineControlSettings: result?.inlineControlSettings ?? {},\n dashboardControlSettings: result?.dashboardControlSettings ?? {},\n links: result?.links ?? {},\n options: result?.options\n };\n }\n }\n },\n settings: {\n dashboard: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n config: {\n live: {\n inline: {\n showAutoRefresh: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {},\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n viewAndConfig: {\n live: {\n inline: {\n showAutoRefresh: true,\n showTimeContext: true,\n showRefreshInterval: true\n },\n configuration: {\n showAutoRefresh: true,\n showRefreshInterval: true,\n showTimeContext: true\n }\n },\n history: {\n inline: {\n showTimeContext: true,\n showAggregation: true\n },\n configuration: {\n showTimeContext: true,\n showAggregation: true\n }\n }\n },\n defaultLinks: {\n dashboard: {\n live: {\n dateTimeContext: true,\n isAutoRefreshEnabled: true\n },\n history: {\n dateTimeContext: true,\n aggregation: true\n }\n },\n config: {},\n viewAndConfig: {}\n }\n }\n});\n","import { inject, Injectable } from '@angular/core';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport {\n DynamicDatapointsResolver,\n PreviewService,\n DynamicWidgetDefinition\n} from '@c8y/ngx-components';\nimport { map, Observable } from 'rxjs';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport cloneDeep from 'lodash/cloneDeep';\nimport {\n exportConfigWithTargets,\n importConfigWithTargets\n} from '@c8y/ngx-components/widgets/import-export-config';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\n@Injectable()\nexport class DatapointGraphFactory {\n private readonly previewFeatureService = inject(PreviewService);\n\n private readonly baseWidgetDefinition: DynamicWidgetDefinition = {\n id: defaultWidgetIds.DATAPOINTS_GRAPH,\n label: gettext('Data graph'),\n description: gettext('Displays a graph of selected data points'),\n loadComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetViewComponent\n ),\n loadConfigComponent: () =>\n import('@c8y/ngx-components/widgets/implementations/datapoints-graph').then(\n m => m.DatapointsGraphWidgetConfigComponent\n ),\n previewImage: 'c8y-style-assets/datapoints-graph-widget.png',\n resolve: {\n datapoints: DynamicDatapointsResolver\n },\n data: {\n schema: () =>\n import(\n 'c8y-schema-loader?interfaceName=DatapointsGraphWidgetConfig!@c8y/ngx-components/echart'\n ),\n export: exportConfigWithTargets,\n import: importConfigWithTargets,\n widgetControls: datapointsGraphWidgetControls,\n settings: {\n noNewWidgets: false,\n widgetDefaults: {\n _width: 8,\n _height: 4\n },\n noDeviceTarget: true,\n groupsSelectable: false\n },\n displaySettings: {\n globalTimeContext: true,\n globalAggregationContext: true,\n globalRealtimeContext: true\n }\n }\n };\n\n get(): Observable<DynamicWidgetDefinition[]> {\n return this.previewFeatureService.getState$('ui.datapoint-graph.v2').pipe(\n map(state => {\n if (state) {\n const newWidgetDefinition = cloneDeep(this.baseWidgetDefinition);\n newWidgetDefinition.id = defaultWidgetIds.DATAPOINTS_GRAPH_NEW;\n newWidgetDefinition.data.settings.noNewWidgets = true;\n\n return [this.baseWidgetDefinition, newWidgetDefinition];\n }\n return [];\n })\n );\n }\n}\n","import { hookPreview, hookWidget } from '@c8y/ngx-components';\nimport { gettext } from '@c8y/ngx-components/gettext';\nimport { DatapointGraphFactory } from './datapoint-graph-widget-factory';\nimport {\n hookWidgetConfig,\n GlobalContextSectionComponent\n} from '@c8y/ngx-components/context-dashboard';\nimport { defaultWidgetIds } from '@c8y/ngx-components/widgets/definitions';\nimport { datapointsGraphWidgetControls } from './datapoint-graph-widget-controls-definition';\n\nexport const datapointGraphWidgetproviders = [\n hookWidget(DatapointGraphFactory),\n hookPreview({\n key: 'ui.datapoint-graph.v2',\n label: 'Data graph',\n description: () =>\n import('@c8y/style/markdown-files/datapoint-graph-preview.md').then(m => m.default),\n settings: {\n reload: true\n }\n }),\n /* We need to register the widget config for both the new and old widget IDs. This ensures compatibility for widgets\n created with the new data graph id (e.g. if a data point graph widget was created via community plugins)\n and widgets using the default one (toggled via preview feature)\n */\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH_NEW,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n }),\n hookWidgetConfig<GlobalContextSectionComponent>({\n widgetId: defaultWidgetIds.DATAPOINTS_GRAPH,\n priority: 10,\n label: gettext('Time context'),\n initialState: {\n widgetControls: datapointsGraphWidgetControls\n },\n loadComponent: () =>\n import('@c8y/ngx-components/context-dashboard').then(m => m.GlobalContextSectionComponent)\n })\n];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAKA,MAAM,mBAAmB,GAAG,yBAAyB,EAAE;AAEhD,MAAM,6BAA6B,GAAG,oBAAoB,CAAC;AAChE,IAAA,IAAI,EAAE,yBAAyB;AAC/B,IAAA,QAAQ,EAAE;QACR,WAAW;QACX,aAAa;QACb,aAAa;QACb,iBAAiB;QACjB,eAAe;QACf,iBAAiB;QACjB,QAAQ;QACR;AACD,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,kBAAkB,EAAE;YAClB,OAAO,EAAE,KAAK,IAAG;gBACf,MAAM,MAAM,GAAG,mBAAmB,CAAC,kBAAkB,CAAC,KAAK,CAAC;gBAC5D,OAAO;AACL,oBAAA,qBAAqB,EAAE,MAAM,EAAE,qBAAqB,IAAI,EAAE;AAC1D,oBAAA,wBAAwB,EAAE,MAAM,EAAE,wBAAwB,IAAI,EAAE;AAChE,oBAAA,KAAK,EAAE,MAAM,EAAE,KAAK,IAAI,EAAE;oBAC1B,OAAO,EAAE,MAAM,EAAE;iBAClB;YACH;AACD;AACF,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE;AACJ,gBAAA,MAAM,EAAE;AACN,oBAAA,eAAe,EAAE,IAAI;AACrB,oBAAA,eAAe,EAAE;AAClB;AACF,aAAA;AACD,YAAA,OAAO,EAAE;AACP,gBAAA,MAAM,EAAE;AACN,oBAAA,eAAe,EAAE,IAAI;AACrB,oBAAA,eAAe,EAAE;AAClB;AACF;AACF,SAAA;AACD,QAAA,MA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F,CAAC;AACF,IAAA,gBAAgB,CAAgC;QAC9C,QAAQ,EAAE,gBAAgB,CAAC,gBAAgB;AAC3C,QAAA,QAAQ,EAAE,EAAE;AACZ,QAAA,KAAK,EAAE,OAAO,CAAC,cAAc,CAAC;AAC9B,QAAA,YAAY,EAAE;AACZ,YAAA,cAAc,EAAE;AACjB,SAAA;AACD,QAAA,aAAa,EAAE,MACb,OAAO,uCAAuC,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,6BAA6B;KAC5F;;;AC5CH;;AAEG;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-widgets-definitions.mjs","sources":["../../widgets/definitions/index.ts","../../widgets/definitions/c8y-ngx-components-widgets-definitions.ts"],"sourcesContent":["export const defaultWidgetIds = {\n APPLICATIONS: 'Applications',\n ASSET_NOTES: 'Asset Notes',\n LEGACY_COCKPIT_WELCOME: 'Cockpit Welcome',\n COCKPIT_WELCOME: 'cockpit.welcome.widget',\n DATA_POINTS_TABLE: 'Data points table',\n DEVICE_MANAGEMENT_WELCOME: 'devicemanagement.welcome.widget',\n IMAGE: 'Image',\n KPI: 'kpi.widget',\n MARKDOWN: 'markdown',\n HELP_AND_SERVICE: 'HelpAndService',\n THREE_D_ROTATION: 'rotation3d',\n MAP: 'Map',\n DEVICE_CONTROL_MESSAGE_WIDGET: 'deviceControlMessageWidget',\n INFO_GAUGE: 'infoGauge',\n ALARM_LIST: 'Alarm list',\n ALL_CRITICAL_ALARMS: 'Asset Alarms',\n RECENT_ALARMS: 'Recent Alarms',\n LINEAR_GAUGE: 'KPI Linear Gauge',\n SILO: 'KPI Silo',\n HTML: 'Html widget',\n RADIAL_GAUGE: 'KPI Radial Gauge',\n DATAPOINTS_GRAPH_NEW: 'Data points graph 2',\n DATAPOINTS_GRAPH: 'Data points graph',\n QUICK_LINKS: 'Quick Links',\n EVENT_LIST: 'Event list',\n PIE_CHART: 'KPI Pie Chart'\n} as const;\n\nexport type DefaultWidgetIdKeys = keyof typeof defaultWidgetIds;\nexport type DefaultWidgetIdValues = (typeof defaultWidgetIds)[DefaultWidgetIdKeys];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG;AAC9B,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,sBAAsB,EAAE,iBAAiB;AACzC,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,yBAAyB,EAAE,iCAAiC;AAC5D,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,gBAAgB,EAAE,gBAAgB;AAClC,IAAA,gBAAgB,EAAE,YAAY;AAC9B,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,6BAA6B,EAAE,4BAA4B;AAC3D,IAAA,UAAU,EAAE,WAAW;AACvB,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,mBAAmB,EAAE,cAAc;AACnC,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,oBAAoB,EAAE,qBAAqB;AAC3C,IAAA,gBAAgB,EAAE,mBAAmB;AACrC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,SAAS,EAAE;;;
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-widgets-definitions.mjs","sources":["../../widgets/definitions/index.ts","../../widgets/definitions/c8y-ngx-components-widgets-definitions.ts"],"sourcesContent":["export const defaultWidgetIds = {\n APPLICATIONS: 'Applications',\n ASSET_NOTES: 'Asset Notes',\n ASSET_TABLE: 'Asset table',\n LEGACY_COCKPIT_WELCOME: 'Cockpit Welcome',\n COCKPIT_WELCOME: 'cockpit.welcome.widget',\n DATA_POINTS_TABLE: 'Data points table',\n DEVICE_MANAGEMENT_WELCOME: 'devicemanagement.welcome.widget',\n IMAGE: 'Image',\n KPI: 'kpi.widget',\n MARKDOWN: 'markdown',\n HELP_AND_SERVICE: 'HelpAndService',\n THREE_D_ROTATION: 'rotation3d',\n MAP: 'Map',\n DEVICE_CONTROL_MESSAGE_WIDGET: 'deviceControlMessageWidget',\n INFO_GAUGE: 'infoGauge',\n ALARM_LIST: 'Alarm list',\n ALL_CRITICAL_ALARMS: 'Asset Alarms',\n RECENT_ALARMS: 'Recent Alarms',\n LINEAR_GAUGE: 'KPI Linear Gauge',\n SILO: 'KPI Silo',\n HTML: 'Html widget',\n RADIAL_GAUGE: 'KPI Radial Gauge',\n DATAPOINTS_GRAPH_NEW: 'Data points graph 2',\n DATAPOINTS_GRAPH: 'Data points graph',\n QUICK_LINKS: 'Quick Links',\n EVENT_LIST: 'Event list',\n PIE_CHART: 'KPI Pie Chart'\n} as const;\n\nexport type DefaultWidgetIdKeys = keyof typeof defaultWidgetIds;\nexport type DefaultWidgetIdValues = (typeof defaultWidgetIds)[DefaultWidgetIdKeys];\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAO,MAAM,gBAAgB,GAAG;AAC9B,IAAA,YAAY,EAAE,cAAc;AAC5B,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,sBAAsB,EAAE,iBAAiB;AACzC,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,iBAAiB,EAAE,mBAAmB;AACtC,IAAA,yBAAyB,EAAE,iCAAiC;AAC5D,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,GAAG,EAAE,YAAY;AACjB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,gBAAgB,EAAE,gBAAgB;AAClC,IAAA,gBAAgB,EAAE,YAAY;AAC9B,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,6BAA6B,EAAE,4BAA4B;AAC3D,IAAA,UAAU,EAAE,WAAW;AACvB,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,mBAAmB,EAAE,cAAc;AACnC,IAAA,aAAa,EAAE,eAAe;AAC9B,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,IAAI,EAAE,aAAa;AACnB,IAAA,YAAY,EAAE,kBAAkB;AAChC,IAAA,oBAAoB,EAAE,qBAAqB;AAC3C,IAAA,gBAAgB,EAAE,mBAAmB;AACrC,IAAA,WAAW,EAAE,aAAa;AAC1B,IAAA,UAAU,EAAE,YAAY;AACxB,IAAA,SAAS,EAAE;;;AC3Bb;;AAEG;;;;"}
|
|
@@ -161,6 +161,13 @@ const assetNotesWidgetExport = {
|
|
|
161
161
|
description: gettext('Asset notes widget'),
|
|
162
162
|
scope: 'self'
|
|
163
163
|
};
|
|
164
|
+
const assetTableWidgetExport = {
|
|
165
|
+
name: gettext('Widgets: Asset table'),
|
|
166
|
+
module: 'assetTableWidgetProviders',
|
|
167
|
+
path: '@c8y/ngx-components/widgets/definitions/asset-table',
|
|
168
|
+
description: gettext('Displays a table of assets with configurable columns and filters.'),
|
|
169
|
+
scope: 'self'
|
|
170
|
+
};
|
|
164
171
|
const eventListWidgetExport = {
|
|
165
172
|
name: gettext('Widgets: Event list'),
|
|
166
173
|
module: 'eventListWidgetProviders',
|
|
@@ -187,5 +194,5 @@ const pieChartWidgetProviders = {
|
|
|
187
194
|
* Generated bundle index. Do not edit.
|
|
188
195
|
*/
|
|
189
196
|
|
|
190
|
-
export { alarmListWidgetExport, applicationsWidgetExport, assetNotesWidgetExport, cockpitWelcomeWidgetExport, criticalAlarmsWidgetExport, dataPointsTableWidgetExport, datapointGraphWidgetExport, deviceControlMessageWidgetExport, deviceManagementWelcomeWidgetExport, eventListWidgetExport, helpAndServiceWidgetExport, htmlWidgetAIChat, htmlWidgetExport, imageWidgetExport, infoGaugeWidgetExport, kpiWidgetExport, legacyCockpitWelcomeWidgetExport, linearGaugeWidgetExport, mapWidgetExport, markdownWidgetExport, pieChartWidgetProviders, quickLinksWidgetExport, radialGaugeWidgetExport, recentAlarmsWidgetExport, siloWidgetExport, threeDRotationWidgetExport };
|
|
197
|
+
export { alarmListWidgetExport, applicationsWidgetExport, assetNotesWidgetExport, assetTableWidgetExport, cockpitWelcomeWidgetExport, criticalAlarmsWidgetExport, dataPointsTableWidgetExport, datapointGraphWidgetExport, deviceControlMessageWidgetExport, deviceManagementWelcomeWidgetExport, eventListWidgetExport, helpAndServiceWidgetExport, htmlWidgetAIChat, htmlWidgetExport, imageWidgetExport, infoGaugeWidgetExport, kpiWidgetExport, legacyCockpitWelcomeWidgetExport, linearGaugeWidgetExport, mapWidgetExport, markdownWidgetExport, pieChartWidgetProviders, quickLinksWidgetExport, radialGaugeWidgetExport, recentAlarmsWidgetExport, siloWidgetExport, threeDRotationWidgetExport };
|
|
191
198
|
//# sourceMappingURL=c8y-ngx-components-widgets-exports.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"c8y-ngx-components-widgets-exports.mjs","sources":["../../widgets/exports/index.ts","../../widgets/exports/c8y-ngx-components-widgets-exports.ts"],"sourcesContent":["import { PluginsExports } from '@c8y/options';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nexport const radialGaugeWidgetExport = {\n name: gettext('Widgets: Radial Gauge widget'),\n module: 'radialGaugeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/radial-gauge',\n description: gettext('Radial gauge widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const kpiWidgetExport = {\n name: gettext('Widgets: KPI widget'),\n module: 'kpiWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/kpi',\n description: gettext('KPI widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const alarmListWidgetExport = {\n name: gettext('Widgets: Alarm list'),\n module: 'alarmListWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/alarms/alarm-list',\n description: gettext('Alarm list widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const criticalAlarmsWidgetExport = {\n name: gettext('Widgets: All critical alarms'),\n module: 'criticalAlarmsWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/alarms/all-critical-alarms',\n description: gettext('All critical alarms widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const recentAlarmsWidgetExport = {\n name: gettext('Widgets: Recent alarms'),\n module: 'recentAlarmsWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/alarms/recent-alarms',\n description: gettext('Recent alarms widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const applicationsWidgetExport = {\n name: gettext('Widgets: Applications'),\n module: 'applicationsWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/applications',\n description: gettext('Applications widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const legacyCockpitWelcomeWidgetExport = {\n name: gettext('Widgets: Legacy welcome to Cockpit'),\n module: 'legacyCockpitWelcomeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/cockpit-legacy-welcome',\n description: gettext('Legacy welcome to Cockpit widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const cockpitWelcomeWidgetExport = {\n name: gettext('Widgets: Welcome to Cockpit'),\n module: 'cockpitWelcomeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/cockpit-welcome',\n description: gettext('Welcome to Cockpit widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const deviceControlMessageWidgetExport = {\n name: gettext('Widgets: Message sending'),\n module: 'deviceControlMessageWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/device-control-message',\n description: gettext('Message sending widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const helpAndServiceWidgetExport = {\n name: gettext('Widgets: Help and service'),\n module: 'helpAndServiceWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/help-and-service',\n description: gettext('Help and service widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const imageWidgetExport = {\n name: gettext('Widgets: Image'),\n module: 'imageWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/image',\n description: gettext('Image widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const infoGaugeWidgetExport = {\n name: gettext('Widgets: Info gauge'),\n module: 'infoGaugeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/info-gauge',\n description: gettext('Info gauge widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const mapWidgetExport = {\n name: gettext('Widgets: Map'),\n module: 'mapWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/map',\n description: gettext('Map widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const markdownWidgetExport = {\n name: gettext('Widgets: Markdown'),\n module: 'markdownWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/markdown',\n description: gettext('Markdown widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const threeDRotationWidgetExport = {\n name: gettext('Widgets: Rotation'),\n module: 'threeDRotationWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/three-d-rotation',\n description: gettext('Rotation widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const siloWidgetExport = {\n name: gettext('Widgets: Silo'),\n module: 'siloWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/silo',\n description: gettext('Silo widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const linearGaugeWidgetExport = {\n name: gettext('Widgets: Linear Gauge'),\n module: 'linearGaugeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/linear-gauge',\n description: gettext('Linear Gauge widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const datapointGraphWidgetExport = {\n name: gettext('Widgets: Data points graph'),\n module: 'datapointGraphWidgetproviders',\n path: '@c8y/ngx-components/widgets/definitions/datapoints-graph',\n description: gettext('Data points graph widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const dataPointsTableWidgetExport = {\n name: gettext('Widgets: Data Points Table'),\n module: 'dataPointsTableWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/datapoints-table',\n description: gettext('Data Points Table widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const htmlWidgetExport = {\n name: gettext('Widgets: HTML Widget'),\n module: 'htmlWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/html-widget',\n description: gettext('Allows to set custom HTML on a dashboard'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const quickLinksWidgetExport = {\n name: gettext('Widgets: Quick Links'),\n module: 'quickLinksWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/quick-links',\n description: gettext('Quick Links widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const deviceManagementWelcomeWidgetExport = {\n name: gettext('Widgets: Welcome to Device Management'),\n module: 'deviceManagementWelcomeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/device-management-welcome',\n description: gettext('Welcome to Device Management widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const assetNotesWidgetExport = {\n name: gettext('Widgets: Asset notes'),\n module: 'assetNotesWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/asset-notes',\n description: gettext('Asset notes widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const eventListWidgetExport = {\n name: gettext('Widgets: Event list'),\n module: 'eventListWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/event-list',\n description: gettext('Event list widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const htmlWidgetAIChat = {\n name: gettext('Widgets: HTML Widget AI Code Assistant'),\n module: 'htmlWidgetAIChatProviders',\n path: '@c8y/ngx-components/widgets/definitions/html-widget-ai-config',\n description: gettext('Adds AI Code Assistant capabilities to the HTML Widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const pieChartWidgetProviders = {\n name: 'Widgets: Pie Chart widget',\n module: 'pieChartWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/pie-chart',\n description: 'Pie Chart widget',\n scope: 'self'\n} as const satisfies PluginsExports;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGO,MAAM,uBAAuB,GAAG;AACrC,IAAA,IAAI,EAAE,OAAO,CAAC,8BAA8B,CAAC;AAC7C,IAAA,MAAM,EAAE,4BAA4B;AACpC,IAAA,IAAI,EAAE,sDAAsD;AAC5D,IAAA,WAAW,EAAE,OAAO,CAAC,qBAAqB,CAAC;AAC3C,IAAA,KAAK,EAAE;;AAGF,MAAM,eAAe,GAAG;AAC7B,IAAA,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC;AACpC,IAAA,MAAM,EAAE,oBAAoB;AAC5B,IAAA,IAAI,EAAE,6CAA6C;AACnD,IAAA,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC;AAClC,IAAA,KAAK,EAAE;;AAGF,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC;AACpC,IAAA,MAAM,EAAE,0BAA0B;AAClC,IAAA,IAAI,EAAE,2DAA2D;AACjE,IAAA,WAAW,EAAE,OAAO,CAAC,mBAAmB,CAAC;AACzC,IAAA,KAAK,EAAE;;AAGF,MAAM,0BAA0B,GAAG;AACxC,IAAA,IAAI,EAAE,OAAO,CAAC,8BAA8B,CAAC;AAC7C,IAAA,MAAM,EAAE,+BAA+B;AACvC,IAAA,IAAI,EAAE,oEAAoE;AAC1E,IAAA,WAAW,EAAE,OAAO,CAAC,4BAA4B,CAAC;AAClD,IAAA,KAAK,EAAE;;AAGF,MAAM,wBAAwB,GAAG;AACtC,IAAA,IAAI,EAAE,OAAO,CAAC,wBAAwB,CAAC;AACvC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,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M,EAAE,wCAAwC;AAChD,IAAA,IAAI,EAAE,mEAAmE;AACzE,IAAA,WAAW,EAAE,OAAO,CAAC,qCAAqC,CAAC;AAC3D,IAAA,KAAK,EAAE;;AAGF,MAAM,sBAAsB,GAAG;AACpC,IAAA,IAAI,EAAE,OAAO,CAAC,sBAAsB,CAAC;AACrC,IAAA,MAAM,EAAE,2BAA2B;AACnC,IAAA,IAAI,EAAE,qDAAqD;AAC3D,IAAA,WAAW,EAAE,OAAO,CAAC,oBAAoB,CAAC;AAC1C,IAAA,KAAK,EAAE;;AAGF,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC;AACpC,IAAA,MAAM,EAAE,0BAA0B;AAClC,IAAA,IAAI,EAAE,oDAAoD;AAC1D,IAAA,WAAW,EAAE,OAAO,CAAC,mBAAmB,CAAC;AACzC,IAAA,KAAK,EAAE;;AAGF,MAAM,gBAAgB,GAAG;AAC9B,IAAA,IAAI,EAAE,OAAO,CAAC,wCAAwC,CAAC;AACvD,IAAA,MAAM,EAAE,2BAA2B;AACnC,IAAA,IAAI,EAAE,+DAA+D;AACrE,IAAA,WAAW,EAAE,OAAO,CAAC,wDAAwD,CAAC;AAC9E,IAAA,KAAK,EAAE;;AAGF,MAAM,uBAAuB,GAAG;AACrC,IAAA,IAAI,EAAE,2BAA2B;AACjC,IAAA,MAAM,EAAE,yBAAyB;AACjC,IAAA,IAAI,EAAE,mDAAmD;AACzD,IAAA,WAAW,EAAE,kBAAkB;AAC/B,IAAA,KAAK,EAAE;;;AChNT;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"c8y-ngx-components-widgets-exports.mjs","sources":["../../widgets/exports/index.ts","../../widgets/exports/c8y-ngx-components-widgets-exports.ts"],"sourcesContent":["import { PluginsExports } from '@c8y/options';\nimport { gettext } from '@c8y/ngx-components/gettext';\n\nexport const radialGaugeWidgetExport = {\n name: gettext('Widgets: Radial Gauge widget'),\n module: 'radialGaugeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/radial-gauge',\n description: gettext('Radial gauge widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const kpiWidgetExport = {\n name: gettext('Widgets: KPI widget'),\n module: 'kpiWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/kpi',\n description: gettext('KPI widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const alarmListWidgetExport = {\n name: gettext('Widgets: Alarm list'),\n module: 'alarmListWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/alarms/alarm-list',\n description: gettext('Alarm list widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const criticalAlarmsWidgetExport = {\n name: gettext('Widgets: All critical alarms'),\n module: 'criticalAlarmsWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/alarms/all-critical-alarms',\n description: gettext('All critical alarms widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const recentAlarmsWidgetExport = {\n name: gettext('Widgets: Recent alarms'),\n module: 'recentAlarmsWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/alarms/recent-alarms',\n description: gettext('Recent alarms widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const applicationsWidgetExport = {\n name: gettext('Widgets: Applications'),\n module: 'applicationsWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/applications',\n description: gettext('Applications widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const legacyCockpitWelcomeWidgetExport = {\n name: gettext('Widgets: Legacy welcome to Cockpit'),\n module: 'legacyCockpitWelcomeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/cockpit-legacy-welcome',\n description: gettext('Legacy welcome to Cockpit widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const cockpitWelcomeWidgetExport = {\n name: gettext('Widgets: Welcome to Cockpit'),\n module: 'cockpitWelcomeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/cockpit-welcome',\n description: gettext('Welcome to Cockpit widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const deviceControlMessageWidgetExport = {\n name: gettext('Widgets: Message sending'),\n module: 'deviceControlMessageWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/device-control-message',\n description: gettext('Message sending widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const helpAndServiceWidgetExport = {\n name: gettext('Widgets: Help and service'),\n module: 'helpAndServiceWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/help-and-service',\n description: gettext('Help and service widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const imageWidgetExport = {\n name: gettext('Widgets: Image'),\n module: 'imageWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/image',\n description: gettext('Image widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const infoGaugeWidgetExport = {\n name: gettext('Widgets: Info gauge'),\n module: 'infoGaugeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/info-gauge',\n description: gettext('Info gauge widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const mapWidgetExport = {\n name: gettext('Widgets: Map'),\n module: 'mapWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/map',\n description: gettext('Map widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const markdownWidgetExport = {\n name: gettext('Widgets: Markdown'),\n module: 'markdownWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/markdown',\n description: gettext('Markdown widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const threeDRotationWidgetExport = {\n name: gettext('Widgets: Rotation'),\n module: 'threeDRotationWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/three-d-rotation',\n description: gettext('Rotation widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const siloWidgetExport = {\n name: gettext('Widgets: Silo'),\n module: 'siloWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/silo',\n description: gettext('Silo widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const linearGaugeWidgetExport = {\n name: gettext('Widgets: Linear Gauge'),\n module: 'linearGaugeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/linear-gauge',\n description: gettext('Linear Gauge widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const datapointGraphWidgetExport = {\n name: gettext('Widgets: Data points graph'),\n module: 'datapointGraphWidgetproviders',\n path: '@c8y/ngx-components/widgets/definitions/datapoints-graph',\n description: gettext('Data points graph widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const dataPointsTableWidgetExport = {\n name: gettext('Widgets: Data Points Table'),\n module: 'dataPointsTableWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/datapoints-table',\n description: gettext('Data Points Table widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const htmlWidgetExport = {\n name: gettext('Widgets: HTML Widget'),\n module: 'htmlWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/html-widget',\n description: gettext('Allows to set custom HTML on a dashboard'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const quickLinksWidgetExport = {\n name: gettext('Widgets: Quick Links'),\n module: 'quickLinksWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/quick-links',\n description: gettext('Quick Links widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const deviceManagementWelcomeWidgetExport = {\n name: gettext('Widgets: Welcome to Device Management'),\n module: 'deviceManagementWelcomeWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/device-management-welcome',\n description: gettext('Welcome to Device Management widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const assetNotesWidgetExport = {\n name: gettext('Widgets: Asset notes'),\n module: 'assetNotesWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/asset-notes',\n description: gettext('Asset notes widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const assetTableWidgetExport = {\n name: gettext('Widgets: Asset table'),\n module: 'assetTableWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/asset-table',\n description: gettext('Displays a table of assets with configurable columns and filters.'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const eventListWidgetExport = {\n name: gettext('Widgets: Event list'),\n module: 'eventListWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/event-list',\n description: gettext('Event list widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const htmlWidgetAIChat = {\n name: gettext('Widgets: HTML Widget AI Code Assistant'),\n module: 'htmlWidgetAIChatProviders',\n path: '@c8y/ngx-components/widgets/definitions/html-widget-ai-config',\n description: gettext('Adds AI Code Assistant capabilities to the HTML Widget'),\n scope: 'self'\n} as const satisfies PluginsExports;\n\nexport const pieChartWidgetProviders = {\n name: 'Widgets: Pie Chart widget',\n module: 'pieChartWidgetProviders',\n path: '@c8y/ngx-components/widgets/definitions/pie-chart',\n description: 'Pie Chart widget',\n scope: 'self'\n} as const satisfies PluginsExports;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAGO,MAAM,uBAAuB,GAAG;AACrC,IAAA,IAAI,EAAE,OAAO,CAAC,8BAA8B,CAAC;AAC7C,IAAA,MAAM,EAAE,4BAA4B;AACpC,IAAA,IAAI,EAAE,sDAAsD;AAC5D,IAAA,WAAW,EAAE,OAAO,CAAC,qBAAqB,CAAC;AAC3C,IAAA,KAAK,EAAE;;AAGF,MAAM,eAAe,GAAG;AAC7B,IAAA,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC;AACpC,IAAA,MAAM,EAAE,oBAAoB;AAC5B,IAAA,IAAI,EAAE,6CAA6C;AACnD,IAAA,WAAW,EAAE,OAAO,CAAC,YAAY,CAAC;AAClC,IAAA,KAAK,EAAE;;AAGF,MAAM,qBAAqB,GAAG;AACnC,IAAA,IAAI,EAAE,OAAO,CAAC,qBAAqB,CAAC;AACpC,IAAA,MAAM,EAAE,0BAA0B;AAClC,IAAA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