@c8y/ngx-components 1021.77.2 → 1021.78.5

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.
Files changed (35) hide show
  1. package/bookmarks/bookmarks.component.d.ts +4 -6
  2. package/bookmarks/bookmarks.component.d.ts.map +1 -1
  3. package/branding/shared/shared-branding.module.d.ts.map +1 -1
  4. package/datapoint-explorer/view/datapoint-explorer.component.d.ts.map +1 -1
  5. package/echart/charts.component.d.ts.map +1 -1
  6. package/echart/models/datapoints-graph-widget.model.d.ts +2 -0
  7. package/echart/models/datapoints-graph-widget.model.d.ts.map +1 -1
  8. package/echart/services/echarts-options.service.d.ts.map +1 -1
  9. package/esm2022/bookmarks/bookmarks.component.mjs +15 -18
  10. package/esm2022/branding/shared/shared-branding.module.mjs +7 -2
  11. package/esm2022/datapoint-explorer/view/datapoint-explorer.component.mjs +6 -5
  12. package/esm2022/echart/charts.component.mjs +5 -3
  13. package/esm2022/echart/models/datapoints-graph-widget.model.mjs +1 -1
  14. package/esm2022/echart/services/echarts-options.service.mjs +5 -5
  15. package/esm2022/messaging-management/messaging-management-preview.factory.mjs +33 -0
  16. package/esm2022/messaging-management/messaging-management.module.mjs +5 -18
  17. package/esm2022/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.mjs +5 -4
  18. package/fesm2022/c8y-ngx-components-bookmarks.mjs +13 -14
  19. package/fesm2022/c8y-ngx-components-bookmarks.mjs.map +1 -1
  20. package/fesm2022/c8y-ngx-components-branding-shared.mjs +6 -1
  21. package/fesm2022/c8y-ngx-components-branding-shared.mjs.map +1 -1
  22. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs +5 -4
  23. package/fesm2022/c8y-ngx-components-datapoint-explorer-view.mjs.map +1 -1
  24. package/fesm2022/c8y-ngx-components-echart-models.mjs.map +1 -1
  25. package/fesm2022/c8y-ngx-components-echart.mjs +8 -6
  26. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  27. package/fesm2022/c8y-ngx-components-messaging-management.mjs +31 -16
  28. package/fesm2022/c8y-ngx-components-messaging-management.mjs.map +1 -1
  29. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +4 -3
  30. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  31. package/messaging-management/messaging-management-preview.factory.d.ts +16 -0
  32. package/messaging-management/messaging-management-preview.factory.d.ts.map +1 -0
  33. package/messaging-management/messaging-management.module.d.ts.map +1 -1
  34. package/package.json +1 -1
  35. package/widgets/implementations/datapoints-graph/datapoints-graph-config/datapoints-graph-widget-config.component.d.ts.map +1 -1
@@ -1155,6 +1155,35 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1155
1155
  type: Injectable
1156
1156
  }], ctorParameters: () => [{ type: i1$3.Router }] });
1157
1157
 
1158
+ class MessagingManagementPreviewFactory {
1159
+ constructor() {
1160
+ this.applicationService = inject(ApplicationService);
1161
+ }
1162
+ async get() {
1163
+ const microserviceSubscribed = await this.applicationService
1164
+ .isAvailable(MESSAGING_MANAGEMENT_MICROSERVICE_NAME)
1165
+ .then(({ data: subscribed }) => subscribed)
1166
+ .catch(() => false);
1167
+ if (!microserviceSubscribed) {
1168
+ return null;
1169
+ }
1170
+ return {
1171
+ key: MESSAGING_MANAGEMENT_FEATURE_KEY,
1172
+ label: 'Messaging service - monitoring & management',
1173
+ description: () => import('@c8y/style/markdown-files/messaging-management-preview.md').then(m => m.default),
1174
+ settings: {
1175
+ reload: true
1176
+ }
1177
+ };
1178
+ }
1179
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessagingManagementPreviewFactory, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1180
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessagingManagementPreviewFactory, providedIn: 'root' }); }
1181
+ }
1182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessagingManagementPreviewFactory, decorators: [{
1183
+ type: Injectable,
1184
+ args: [{ providedIn: 'root' }]
1185
+ }] });
1186
+
1158
1187
  class MessagingManagementModule {
1159
1188
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessagingManagementModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1160
1189
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: MessagingManagementModule }); }
@@ -1183,14 +1212,7 @@ class MessagingManagementModule {
1183
1212
  ]),
1184
1213
  hookTab(TopicDetailsTabFactory),
1185
1214
  hookNavigator(MessagingNavigatorNodeFactory),
1186
- hookPreview({
1187
- key: MESSAGING_MANAGEMENT_FEATURE_KEY,
1188
- label: 'Messaging service - monitoring & management',
1189
- description: () => import('@c8y/style/markdown-files/messaging-management-preview.md').then(m => m.default),
1190
- settings: {
1191
- reload: true
1192
- }
1193
- })
1215
+ hookPreview(MessagingManagementPreviewFactory)
1194
1216
  ] }); }
1195
1217
  }
1196
1218
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: MessagingManagementModule, decorators: [{
@@ -1221,14 +1243,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImpo
1221
1243
  ]),
1222
1244
  hookTab(TopicDetailsTabFactory),
1223
1245
  hookNavigator(MessagingNavigatorNodeFactory),
1224
- hookPreview({
1225
- key: MESSAGING_MANAGEMENT_FEATURE_KEY,
1226
- label: 'Messaging service - monitoring & management',
1227
- description: () => import('@c8y/style/markdown-files/messaging-management-preview.md').then(m => m.default),
1228
- settings: {
1229
- reload: true
1230
- }
1231
- })
1246
+ hookPreview(MessagingManagementPreviewFactory)
1232
1247
  ]
1233
1248
  }]
1234
1249
  }] });