@c8y/ngx-components 1021.66.0 → 1021.70.1

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 (207) hide show
  1. package/core/common/bytes.pipe.d.ts +26 -10
  2. package/core/common/bytes.pipe.d.ts.map +1 -1
  3. package/echart/charts.component.d.ts +14 -3
  4. package/echart/charts.component.d.ts.map +1 -1
  5. package/esm2022/core/common/bytes.pipe.mjs +47 -18
  6. package/esm2022/core/data-grid/data-grid.component.mjs +3 -3
  7. package/esm2022/echart/charts.component.mjs +50 -3
  8. package/esm2022/messaging-management/api/model/backlogQuota.mjs +2 -0
  9. package/esm2022/messaging-management/api/model/namespace.mjs +2 -0
  10. package/esm2022/messaging-management/api/model/namespaceDetails.mjs +2 -0
  11. package/esm2022/messaging-management/api/model/namespaceList.mjs +2 -0
  12. package/esm2022/messaging-management/api/model/namespacePolicies.mjs +2 -0
  13. package/esm2022/messaging-management/api/model/namespacePublishers.mjs +2 -0
  14. package/esm2022/messaging-management/api/model/namespaceSubscribers.mjs +2 -0
  15. package/esm2022/messaging-management/api/model/namespaceTopics.mjs +2 -0
  16. package/esm2022/messaging-management/api/model/pageStatistics.mjs +2 -0
  17. package/esm2022/messaging-management/api/model/pageable.mjs +2 -0
  18. package/esm2022/messaging-management/api/model/sortable.mjs +2 -0
  19. package/esm2022/messaging-management/api/model/subscriber.mjs +2 -0
  20. package/esm2022/messaging-management/api/model/subscriberFilters.mjs +2 -0
  21. package/esm2022/messaging-management/api/model/subscriberList.mjs +2 -0
  22. package/esm2022/messaging-management/api/model/subscriberToDelete.mjs +2 -0
  23. package/esm2022/messaging-management/api/model/topic.mjs +2 -0
  24. package/esm2022/messaging-management/api/model/topicDetailFilters.mjs +2 -0
  25. package/esm2022/messaging-management/api/model/topicList.mjs +2 -0
  26. package/esm2022/messaging-management/api/model/topicListFilters.mjs +2 -0
  27. package/esm2022/messaging-management/api/model/topicType.mjs +9 -0
  28. package/esm2022/messaging-management/api/services/messaging-namespaces.service.mjs +83 -0
  29. package/esm2022/messaging-management/api/services/messaging-subscribers.service.mjs +55 -0
  30. package/esm2022/messaging-management/api/services/messaging-topics.service.mjs +48 -0
  31. package/esm2022/messaging-management/c8y-ngx-components-messaging-management.mjs +5 -0
  32. package/esm2022/messaging-management/constants.mjs +4 -0
  33. package/esm2022/messaging-management/index.mjs +2 -0
  34. package/esm2022/messaging-management/messaging/namespace-list/namespace-item/namespace-item-card/namespace-item-card.component.mjs +43 -0
  35. package/esm2022/messaging-management/messaging/namespace-list/namespace-item/namespace-item.component.mjs +36 -0
  36. package/esm2022/messaging-management/messaging/namespace-list/namespace-list.component.mjs +51 -0
  37. package/esm2022/messaging-management/messaging/shared/usage/usage.component.mjs +68 -0
  38. package/esm2022/messaging-management/messaging/topic/topic-list-view.component.mjs +81 -0
  39. package/esm2022/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-data-grid.service.mjs +220 -0
  40. package/esm2022/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-view.component.mjs +137 -0
  41. package/esm2022/messaging-management/messaging/topic/topics-data-grid.service.mjs +113 -0
  42. package/esm2022/messaging-management/messaging-management.guard.mjs +40 -0
  43. package/esm2022/messaging-management/messaging-management.module.mjs +72 -0
  44. package/esm2022/messaging-management/navigator/messaging-navigator-factory.mjs +55 -0
  45. package/esm2022/messaging-management/navigator/topic-details-tab.factory.mjs +33 -0
  46. package/esm2022/messaging-management/utils/backlog-quota-limit.pipe.mjs +32 -0
  47. package/esm2022/messaging-management/utils/namespace-props.mjs +23 -0
  48. package/esm2022/messaging-management/utils/time-to-live.pipe.mjs +122 -0
  49. package/esm2022/operations/device-selector/device-selector.component.mjs +5 -1
  50. package/esm2022/widgets/cockpit/index.mjs +3 -1
  51. package/esm2022/widgets/cockpit-exports/index.mjs +8 -1
  52. package/esm2022/widgets/definitions/index.mjs +2 -1
  53. package/esm2022/widgets/definitions/radial-gauge/c8y-ngx-components-widgets-definitions-radial-gauge.mjs +5 -0
  54. package/esm2022/widgets/definitions/radial-gauge/index.mjs +33 -0
  55. package/esm2022/widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.mjs +18 -3
  56. package/esm2022/widgets/implementations/info-gauge/index.mjs +2 -2
  57. package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.mjs +295 -0
  58. package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.mjs +141 -11
  59. package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.mjs +67 -0
  60. package/esm2022/widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.mjs +34 -6
  61. package/esm2022/widgets/implementations/info-gauge/info-gauge-widget.module.mjs +9 -4
  62. package/esm2022/widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.mjs +97 -0
  63. package/esm2022/widgets/implementations/info-gauge/radial-gauge/radial-gauge.service.mjs +369 -0
  64. package/fesm2022/c8y-ngx-components-echart.mjs +49 -2
  65. package/fesm2022/c8y-ngx-components-echart.mjs.map +1 -1
  66. package/fesm2022/c8y-ngx-components-messaging-management.mjs +1225 -0
  67. package/fesm2022/c8y-ngx-components-messaging-management.mjs.map +1 -0
  68. package/fesm2022/c8y-ngx-components-operations-device-selector.mjs +4 -0
  69. package/fesm2022/c8y-ngx-components-operations-device-selector.mjs.map +1 -1
  70. package/fesm2022/c8y-ngx-components-widgets-cockpit-exports.mjs +7 -0
  71. package/fesm2022/c8y-ngx-components-widgets-cockpit-exports.mjs.map +1 -1
  72. package/fesm2022/c8y-ngx-components-widgets-cockpit.mjs +2 -0
  73. package/fesm2022/c8y-ngx-components-widgets-cockpit.mjs.map +1 -1
  74. package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs +40 -0
  75. package/fesm2022/c8y-ngx-components-widgets-definitions-radial-gauge.mjs.map +1 -0
  76. package/fesm2022/c8y-ngx-components-widgets-definitions.mjs +1 -0
  77. package/fesm2022/c8y-ngx-components-widgets-definitions.mjs.map +1 -1
  78. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs +17 -2
  79. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-graph.mjs.map +1 -1
  80. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs +991 -28
  81. package/fesm2022/c8y-ngx-components-widgets-implementations-info-gauge.mjs.map +1 -1
  82. package/fesm2022/c8y-ngx-components.mjs +49 -22
  83. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  84. package/locales/de.po +272 -5
  85. package/locales/es.po +271 -4
  86. package/locales/fr.po +272 -5
  87. package/locales/ja_JP.po +272 -5
  88. package/locales/ko.po +271 -4
  89. package/locales/locales.pot +271 -4
  90. package/locales/nl.po +271 -4
  91. package/locales/pl.po +271 -4
  92. package/locales/pt_BR.po +272 -5
  93. package/locales/zh_CN.po +271 -4
  94. package/locales/zh_TW.po +272 -5
  95. package/messaging-management/api/model/backlogQuota.d.ts +14 -0
  96. package/messaging-management/api/model/backlogQuota.d.ts.map +1 -0
  97. package/messaging-management/api/model/namespace.d.ts +13 -0
  98. package/messaging-management/api/model/namespace.d.ts.map +1 -0
  99. package/messaging-management/api/model/namespaceDetails.d.ts +8 -0
  100. package/messaging-management/api/model/namespaceDetails.d.ts.map +1 -0
  101. package/messaging-management/api/model/namespaceList.d.ts +5 -0
  102. package/messaging-management/api/model/namespaceList.d.ts.map +1 -0
  103. package/messaging-management/api/model/namespacePolicies.d.ts +10 -0
  104. package/messaging-management/api/model/namespacePolicies.d.ts.map +1 -0
  105. package/messaging-management/api/model/namespacePublishers.d.ts +4 -0
  106. package/messaging-management/api/model/namespacePublishers.d.ts.map +1 -0
  107. package/messaging-management/api/model/namespaceSubscribers.d.ts +4 -0
  108. package/messaging-management/api/model/namespaceSubscribers.d.ts.map +1 -0
  109. package/messaging-management/api/model/namespaceTopics.d.ts +5 -0
  110. package/messaging-management/api/model/namespaceTopics.d.ts.map +1 -0
  111. package/messaging-management/api/model/pageStatistics.d.ts +12 -0
  112. package/messaging-management/api/model/pageStatistics.d.ts.map +1 -0
  113. package/messaging-management/api/model/pageable.d.ts +8 -0
  114. package/messaging-management/api/model/pageable.d.ts.map +1 -0
  115. package/messaging-management/api/model/sortable.d.ts +6 -0
  116. package/messaging-management/api/model/sortable.d.ts.map +1 -0
  117. package/messaging-management/api/model/subscriber.d.ts +28 -0
  118. package/messaging-management/api/model/subscriber.d.ts.map +1 -0
  119. package/messaging-management/api/model/subscriberFilters.d.ts +13 -0
  120. package/messaging-management/api/model/subscriberFilters.d.ts.map +1 -0
  121. package/messaging-management/api/model/subscriberList.d.ts +7 -0
  122. package/messaging-management/api/model/subscriberList.d.ts.map +1 -0
  123. package/messaging-management/api/model/subscriberToDelete.d.ts +12 -0
  124. package/messaging-management/api/model/subscriberToDelete.d.ts.map +1 -0
  125. package/messaging-management/api/model/topic.d.ts +52 -0
  126. package/messaging-management/api/model/topic.d.ts.map +1 -0
  127. package/messaging-management/api/model/topicDetailFilters.d.ts +9 -0
  128. package/messaging-management/api/model/topicDetailFilters.d.ts.map +1 -0
  129. package/messaging-management/api/model/topicList.d.ts +7 -0
  130. package/messaging-management/api/model/topicList.d.ts.map +1 -0
  131. package/messaging-management/api/model/topicListFilters.d.ts +12 -0
  132. package/messaging-management/api/model/topicListFilters.d.ts.map +1 -0
  133. package/messaging-management/api/model/topicType.d.ts +8 -0
  134. package/messaging-management/api/model/topicType.d.ts.map +1 -0
  135. package/messaging-management/api/services/messaging-namespaces.service.d.ts +52 -0
  136. package/messaging-management/api/services/messaging-namespaces.service.d.ts.map +1 -0
  137. package/messaging-management/api/services/messaging-subscribers.service.d.ts +30 -0
  138. package/messaging-management/api/services/messaging-subscribers.service.d.ts.map +1 -0
  139. package/messaging-management/api/services/messaging-topics.service.d.ts +21 -0
  140. package/messaging-management/api/services/messaging-topics.service.d.ts.map +1 -0
  141. package/messaging-management/c8y-ngx-components-messaging-management.d.ts.map +1 -0
  142. package/messaging-management/constants.d.ts +4 -0
  143. package/messaging-management/constants.d.ts.map +1 -0
  144. package/messaging-management/index.d.ts +2 -0
  145. package/messaging-management/index.d.ts.map +1 -0
  146. package/messaging-management/messaging/namespace-list/namespace-item/namespace-item-card/namespace-item-card.component.d.ts +29 -0
  147. package/messaging-management/messaging/namespace-list/namespace-item/namespace-item-card/namespace-item-card.component.d.ts.map +1 -0
  148. package/messaging-management/messaging/namespace-list/namespace-item/namespace-item.component.d.ts +15 -0
  149. package/messaging-management/messaging/namespace-list/namespace-item/namespace-item.component.d.ts.map +1 -0
  150. package/messaging-management/messaging/namespace-list/namespace-list.component.d.ts +17 -0
  151. package/messaging-management/messaging/namespace-list/namespace-list.component.d.ts.map +1 -0
  152. package/messaging-management/messaging/shared/usage/usage.component.d.ts +40 -0
  153. package/messaging-management/messaging/shared/usage/usage.component.d.ts.map +1 -0
  154. package/messaging-management/messaging/topic/topic-list-view.component.d.ts +38 -0
  155. package/messaging-management/messaging/topic/topic-list-view.component.d.ts.map +1 -0
  156. package/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-data-grid.service.d.ts +21 -0
  157. package/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-data-grid.service.d.ts.map +1 -0
  158. package/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-view.component.d.ts +52 -0
  159. package/messaging-management/messaging/topic/topic-subscribers-view/topic-subscribers-view.component.d.ts.map +1 -0
  160. package/messaging-management/messaging/topic/topics-data-grid.service.d.ts +13 -0
  161. package/messaging-management/messaging/topic/topics-data-grid.service.d.ts.map +1 -0
  162. package/messaging-management/messaging-management.guard.d.ts +12 -0
  163. package/messaging-management/messaging-management.guard.d.ts.map +1 -0
  164. package/messaging-management/messaging-management.module.d.ts +7 -0
  165. package/messaging-management/messaging-management.module.d.ts.map +1 -0
  166. package/messaging-management/navigator/messaging-navigator-factory.d.ts +18 -0
  167. package/messaging-management/navigator/messaging-navigator-factory.d.ts.map +1 -0
  168. package/messaging-management/navigator/topic-details-tab.factory.d.ts +15 -0
  169. package/messaging-management/navigator/topic-details-tab.factory.d.ts.map +1 -0
  170. package/messaging-management/utils/backlog-quota-limit.pipe.d.ts +13 -0
  171. package/messaging-management/utils/backlog-quota-limit.pipe.d.ts.map +1 -0
  172. package/messaging-management/utils/namespace-props.d.ts +10 -0
  173. package/messaging-management/utils/namespace-props.d.ts.map +1 -0
  174. package/messaging-management/utils/time-to-live.pipe.d.ts +16 -0
  175. package/messaging-management/utils/time-to-live.pipe.d.ts.map +1 -0
  176. package/operations/device-selector/device-selector.component.d.ts.map +1 -1
  177. package/package.json +1 -1
  178. package/widgets/cockpit/index.d.ts +29 -0
  179. package/widgets/cockpit/index.d.ts.map +1 -1
  180. package/widgets/cockpit-exports/index.d.ts +6 -0
  181. package/widgets/cockpit-exports/index.d.ts.map +1 -1
  182. package/widgets/definitions/index.d.ts +1 -0
  183. package/widgets/definitions/index.d.ts.map +1 -1
  184. package/widgets/definitions/radial-gauge/c8y-ngx-components-widgets-definitions-radial-gauge.d.ts.map +1 -0
  185. package/widgets/definitions/radial-gauge/index.d.ts +33 -0
  186. package/widgets/definitions/radial-gauge/index.d.ts.map +1 -0
  187. package/widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.d.ts +2 -0
  188. package/widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.d.ts.map +1 -1
  189. package/widgets/implementations/info-gauge/index.d.ts +1 -1
  190. package/widgets/implementations/info-gauge/index.d.ts.map +1 -1
  191. package/widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.d.ts +339 -0
  192. package/widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.d.ts.map +1 -0
  193. package/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.d.ts +27 -7
  194. package/widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.d.ts.map +1 -1
  195. package/widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.d.ts +33 -0
  196. package/widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.d.ts.map +1 -0
  197. package/widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.d.ts +7 -3
  198. package/widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.d.ts.map +1 -1
  199. package/widgets/implementations/info-gauge/info-gauge-widget.module.d.ts +2 -1
  200. package/widgets/implementations/info-gauge/info-gauge-widget.module.d.ts.map +1 -1
  201. package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.d.ts +37 -0
  202. package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.d.ts.map +1 -0
  203. package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.service.d.ts +146 -0
  204. package/widgets/implementations/info-gauge/radial-gauge/radial-gauge.service.d.ts.map +1 -0
  205. package/esm2022/widgets/implementations/info-gauge/info-gauge.model.mjs +0 -2
  206. package/widgets/implementations/info-gauge/info-gauge.model.d.ts +0 -7
  207. package/widgets/implementations/info-gauge/info-gauge.model.d.ts.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"c8y-ngx-components-widgets-definitions-radial-gauge.d.ts","sourceRoot":"","sources":["../../../../widgets/definitions/radial-gauge/c8y-ngx-components-widgets-definitions-radial-gauge.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,SAAS,CAAC"}
@@ -0,0 +1,33 @@
1
+ import { DynamicDatapointsResolver } from '@c8y/ngx-components';
2
+ export declare const radialGaugeWidgetDefinition: {
3
+ id: "KPI Radial Gauge";
4
+ label: "Radial gauge";
5
+ description: "Shows the device measurements in a radial gauge.";
6
+ loadComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/widgets/implementations/info-gauge").InfoGaugeWidgetViewComponent>;
7
+ loadConfigComponent: () => Promise<import("@angular/core").Type<any> | typeof import("@c8y/ngx-components/widgets/implementations/info-gauge").InfoGaugeWidgetConfigComponent>;
8
+ previewImage: string;
9
+ resolve: {
10
+ datapoints: typeof DynamicDatapointsResolver;
11
+ };
12
+ data: {
13
+ schema: () => Promise<{
14
+ default: typeof import("c8y-schema-loader?interfaceName=*");
15
+ schema: import("json-schema").JSONSchema7;
16
+ }>;
17
+ settings: {
18
+ noNewWidgets: false;
19
+ widgetDefaults: {
20
+ _width: number;
21
+ _height: number;
22
+ };
23
+ ng1: {
24
+ options: {
25
+ noDeviceTarget: true;
26
+ groupsSelectable: false;
27
+ };
28
+ };
29
+ };
30
+ };
31
+ };
32
+ export declare const radialGaugeWidgetProviders: (import("@angular/core").ValueProvider | import("@angular/core").ClassProvider | import("@angular/core").ExistingProvider)[];
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/definitions/radial-gauge/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAuB,MAAM,qBAAqB,CAAC;AAGrF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCL,CAAC;AAEpC,eAAO,MAAM,0BAA0B,8HAA4C,CAAC"}
@@ -22,6 +22,8 @@ export declare class DatapointsGraphWidgetViewComponent implements OnChanges, On
22
22
  hasAtLeastOneAlarmActive: boolean;
23
23
  timeControlsFormGroup: ReturnType<DatapointsGraphWidgetViewComponent['initForm']>;
24
24
  isMarkedAreaEnabled: boolean;
25
+ loadedDatapoints: DatapointsGraphKPIDetails[];
26
+ loadedAlarmsOrEvents: AlarmOrEventExtended[];
25
27
  enabledMarkedAreaAlarmType: string | undefined;
26
28
  set config(value: DatapointsGraphWidgetConfig);
27
29
  get config(): never;
@@ -1 +1 @@
1
- {"version":3,"file":"datapoints-graph-widget-view.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,SAAS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AAC,kBAAkB,oBAA8B;IACzD,QAAQ,CAAC,iBAAiB,gFAExB;IACF,QAAQ,CAAC,kBAAkB,oBAA8B;IACzD,QAAQ,CAAC,kBAAkB,oBAA8B;IACzD,OAAO,CAAC,QAAQ,CAAuB;gBAG7B,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,gBAAgB,EAC3B,iCAAiC,EAAE,iCAAiC,EACxD,yBAAyB,EAAE,yBAAyB;IAQ1E,QAAQ;IAaR,WAAW;IAKX,WAAW,CAAC,OAAO,EAAE,aAAa;IAiBlC,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAWnD,0BAA0B,CAAC,SAAS,EAAE,8BAA8B,GAAG,IAAI;IAQ3E,yBAAyB,CACvB,SAAS,EAAE,IAAI,CAAC,2BAA2B,EAAE,UAAU,GAAG,QAAQ,CAAC,GAClE,IAAI;IAIP,WAAW,CAAC,SAAS,EAAE,yBAAyB,GAAG,IAAI;IAcvD,wBAAwB,CAAC,WAAW,EAAE,yBAAyB,GAAG,IAAI;IAStE,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI;IAUnD,oBAAoB,CAAC,YAAY,EAAE,oBAAoB,GAAG,IAAI;IAmB9D,qBAAqB,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,GAAG,IAAI;IAYxE,cAAc,CAAC,WAAW,EAAE,GAAG,GAAG,IAAI;IAuBtC,OAAO,CAAC,iCAAiC;IAWzC,OAAO,CAAC,QAAQ;yCA1NL,kCAAkC;2CAAlC,kCAAkC;CAyO9C"}
1
+ {"version":3,"file":"datapoints-graph-widget-view.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/datapoints-graph/datapoints-graph-view/datapoints-graph-widget-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,SAAS,EACT,SAAS,EAET,aAAa,EAEd,MAAM,eAAe,CAAC;AACvB,OAAO,EAIL,+BAA+B,EAE/B,iCAAiC,EAClC,MAAM,qBAAqB,C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8B;IACzD,QAAQ,CAAC,iBAAiB,gFAExB;IACF,QAAQ,CAAC,kBAAkB,oBAA8B;IACzD,QAAQ,CAAC,kBAAkB,oBAA8B;IACzD,OAAO,CAAC,QAAQ,CAAuB;gBAG7B,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,gBAAgB,EAC3B,iCAAiC,EAAE,iCAAiC,EACxD,yBAAyB,EAAE,yBAAyB;IAQ1E,QAAQ;IAgBR,WAAW;IAKX,WAAW,CAAC,OAAO,EAAE,aAAa;IAiBlC,gBAAgB,CAAC,SAAS,EAAE,gBAAgB,GAAG,IAAI;IAWnD,0BAA0B,CAAC,SAAS,EAAE,8BAA8B,GAAG,IAAI;IAQ3E,yBAAyB,CACvB,SAAS,EAAE,IAAI,CAAC,2BAA2B,EAAE,UAAU,GAAG,QAAQ,CAAC,GAClE,IAAI;IAIP,WAAW,CAAC,SAAS,EAAE,yBAAyB,GAAG,IAAI;IAmBvD,wBAAwB,CAAC,WAAW,EAAE,yBAAyB,GAAG,IAAI;IAStE,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,GAAG,IAAI;IAUnD,oBAAoB,CAAC,YAAY,EAAE,oBAAoB,GAAG,IAAI;IAwB9D,qBAAqB,CAAC,mBAAmB,EAAE,oBAAoB,EAAE,GAAG,IAAI;IAYxE,cAAc,CAAC,WAAW,EAAE,GAAG,GAAG,IAAI;IAuBtC,OAAO,CAAC,iCAAiC;IAWzC,OAAO,CAAC,QAAQ;yCAzOL,kCAAkC;2CAAlC,kCAAkC;CAwP9C"}
@@ -1,5 +1,5 @@
1
1
  export * from './info-gauge-widget.module';
2
2
  export * from './info-gauge-widget-view/info-gauge-widget-view.component';
3
3
  export * from './info-gauge-widget-config/info-gauge-widget-config.component';
4
- export * from './info-gauge.model';
4
+ export * from './info-gauge-widget-config/gauge.model';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/index.ts"],"names":[],"mappings":"AAAA,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2DAA2D,CAAC;AAC1E,cAAc,+DAA+D,CAAC;AAC9E,cAAc,wCAAwC,CAAC"}
@@ -0,0 +1,339 @@
1
+ import { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
2
+ export interface GeneralGaugeOptions {
3
+ /**
4
+ * Name of the gauge preset
5
+ */
6
+ name?: string;
7
+ /**
8
+ * Radius of the gauge (e.g., '90%')
9
+ */
10
+ radius?: string;
11
+ /**
12
+ * Center of the gauge (e.g., ['50%', '50%'])
13
+ */
14
+ center?: string[];
15
+ /**
16
+ * Starting angle of the gauge
17
+ */
18
+ startAngle?: number;
19
+ /**
20
+ * Ending angle of the gauge
21
+ */
22
+ endAngle?: number;
23
+ }
24
+ /**
25
+ * Properties related to the split lines of the gauge
26
+ */
27
+ export interface SplitPropertiesGaugeOptions {
28
+ /**
29
+ * Number of segments in the gauge
30
+ */
31
+ splitNumber?: number;
32
+ /**
33
+ * Length of the split line, can be a percentage value relative to radius
34
+ */
35
+ splitLineLength?: number | string;
36
+ /**
37
+ * Length of the split line as a ratio relative to the axisLineWidth (overrides splitLineLength)
38
+ */
39
+ splitLineLengthRatio?: number;
40
+ /**
41
+ * Distance between the split line and axis line
42
+ */
43
+ splitLineDistance?: number;
44
+ /**
45
+ * Distance between the split line and axis line as a ratio relative to the axisLineWidth (overrides splitLineDistance)
46
+ */
47
+ splitLineDistanceRatio?: number;
48
+ /**
49
+ * Color of the split lines (used only in the custom preset)
50
+ */
51
+ splitLineColor?: string;
52
+ /**
53
+ * Width of the split lines
54
+ */
55
+ splitLineWidth?: number;
56
+ }
57
+ /**
58
+ * Properties related to the ticks of the gauge
59
+ */
60
+ export interface TickPropertiesGaugeOptions {
61
+ /**
62
+ * Whether to show ticks
63
+ */
64
+ tickShow?: boolean;
65
+ /**
66
+ * Width of the ticks
67
+ */
68
+ tickWidth?: number;
69
+ /**
70
+ * Color of the ticks (used only in the custom preset)
71
+ */
72
+ tickColor?: string;
73
+ /**
74
+ * Distance of the ticks from the center
75
+ */
76
+ tickDistance?: number;
77
+ /**
78
+ * Distance of the ticks from the center as a ratio relative to the axisLineWidth (overrides tickDistance)
79
+ */
80
+ tickDistanceRatio?: number;
81
+ /**
82
+ * Length of the ticks
83
+ */
84
+ tickLength?: number;
85
+ /**
86
+ * Length of the ticks as a ratio relative to the axisLineWidth (overrides tickLength)
87
+ */
88
+ tickLengthRatio?: number;
89
+ }
90
+ /**
91
+ * Properties related to the axis of the gauge
92
+ */
93
+ export interface AxisPropertiesGaugeOptions {
94
+ /**
95
+ * Distance of the axis labels from the center
96
+ */
97
+ axisLabelDistance?: number;
98
+ /**
99
+ * Distance of the axis labels from the center as a ratio relative to the axisLineWidth (overrides axisLabelDistance)
100
+ */
101
+ axisLabelDistanceRatio?: number;
102
+ /**
103
+ * Color of the axis labels (used only in the custom preset)
104
+ */
105
+ axisLabelColor?: string;
106
+ /**
107
+ * Font size of the axis labels
108
+ */
109
+ axisLabelFontSize?: number;
110
+ /**
111
+ * Font size of the axis labels as a ratio relative to the container size (overrides axisLabelFontSize)
112
+ */
113
+ axisLabelFontSizeRatio?: number;
114
+ /**
115
+ * Minimum font size of the axis labels (used for clamping)
116
+ */
117
+ axisLabelFontSizeMin?: number;
118
+ /**
119
+ * Maximum font size of the axis labels (used for clamping)
120
+ */
121
+ axisLabelFontSizeMax?: number;
122
+ /**
123
+ * Width of the axis line
124
+ */
125
+ axisLineWidth?: number;
126
+ /**
127
+ * Width of the axis line as a ratio relative to the container size (overrides axisLineWidth)
128
+ */
129
+ axisLineWidthRatio?: number;
130
+ }
131
+ /**
132
+ * Properties related to the pointer of the gauge
133
+ */
134
+ export interface PointerPropertiesGaugeOptions {
135
+ /**
136
+ * Whether to show the pointer
137
+ */
138
+ showPointer?: boolean;
139
+ /**
140
+ * Style of the pointer (e.g., custom path)
141
+ */
142
+ pointerStyle?: string;
143
+ /**
144
+ * Color of the pointer (used only in the custom preset)
145
+ */
146
+ pointerColor?: string;
147
+ /**
148
+ * Width of the pointer
149
+ */
150
+ pointerWidth?: string | number;
151
+ /**
152
+ * Width of the pointer as a ratio relative to the container size (overrides pointerWidth)
153
+ */
154
+ pointerWidthRatio?: number;
155
+ /**
156
+ * Length of the pointer
157
+ */
158
+ pointerLength?: string | number;
159
+ /**
160
+ * Length of the pointer as a ratio relative to the container size (overrides pointerLength)
161
+ */
162
+ pointerLenghtRatio?: number;
163
+ /**
164
+ * Offset of the pointer from the center
165
+ */
166
+ pointerOffset?: string | number;
167
+ }
168
+ /**
169
+ * Properties related to the progress bar of the gauge
170
+ */
171
+ export interface ProgressBarGaugeOptions {
172
+ /**
173
+ * Whether to show a progress bar
174
+ */
175
+ progressBar?: boolean;
176
+ /**
177
+ * Width of the progress bar
178
+ */
179
+ progressBarWidth?: number;
180
+ /**
181
+ * Whether the progress bar has rounded caps
182
+ */
183
+ progressBarRoundCap?: boolean;
184
+ /**
185
+ * Color of the progress bar
186
+ */
187
+ progressBarColor?: string;
188
+ /**
189
+ * Additional colors for the gauge
190
+ */
191
+ additionalGaugeColors?: string[];
192
+ }
193
+ /**
194
+ * Typography-related properties for the gauge
195
+ */
196
+ export interface TypographyGaugeOptions {
197
+ /**
198
+ * Font size of the measurement value
199
+ */
200
+ measurementValueFontRatio?: number;
201
+ /**
202
+ * Minimum font size of the measurement value
203
+ */
204
+ measurementValueFontMin?: number;
205
+ /**
206
+ * Maximum font size of the measurement value
207
+ */
208
+ measurementValueFontMax?: number;
209
+ /**
210
+ * Color of the measurement value
211
+ */
212
+ measurementValueColor?: string;
213
+ /**
214
+ * Font size of the unit
215
+ */
216
+ unitFontSize?: number;
217
+ /**
218
+ * Font size of the unit as a ratio relative to the container size (overrides unitFontSize)
219
+ */
220
+ unitFontRatio?: number;
221
+ /**
222
+ * Minimum font size of the unit
223
+ */
224
+ unitFontMin?: number;
225
+ /**
226
+ * Maximum font size of the unit
227
+ */
228
+ unitFontMax?: number;
229
+ /**
230
+ * Color of the unit
231
+ */
232
+ unitColor?: string;
233
+ /**
234
+ * Font size of the date
235
+ */
236
+ dateFontSize?: number;
237
+ /**
238
+ * Font size of the date as a ratio relative to the container size (overrides dateFontSize)
239
+ */
240
+ dateFontRatio?: number;
241
+ /**
242
+ * Minimum font size of the date
243
+ */
244
+ dateFontMin?: number;
245
+ /**
246
+ * Maximum font size of the date
247
+ */
248
+ dateFontMax?: number;
249
+ /**
250
+ * Color of the date
251
+ */
252
+ dateColor?: string;
253
+ }
254
+ /**
255
+ * Properties related to detailed information display
256
+ */
257
+ export interface DetailPropertiesGaugeOptions {
258
+ /**
259
+ * Whether to show detailed information
260
+ */
261
+ showDetail?: boolean;
262
+ /**
263
+ * Font size of the value displayed
264
+ */
265
+ valueFontSize?: number;
266
+ /**
267
+ * Offset of the detail from the center
268
+ */
269
+ detailOffsetCenter?: number[] | string[];
270
+ /**
271
+ * Whether to show mark points
272
+ */
273
+ showMarkPoint?: boolean;
274
+ }
275
+ /**
276
+ * Main interface combining all the smaller interfaces
277
+ */
278
+ export interface GaugeOptions extends GeneralGaugeOptions, SplitPropertiesGaugeOptions, TickPropertiesGaugeOptions, AxisPropertiesGaugeOptions, PointerPropertiesGaugeOptions, ProgressBarGaugeOptions, TypographyGaugeOptions, DetailPropertiesGaugeOptions {
279
+ /**
280
+ * Miscellaneous properties for flexibility
281
+ */
282
+ [key: string]: any;
283
+ }
284
+ export interface GaugeOptionsColors {
285
+ splitLineColor: string;
286
+ tickColor: string;
287
+ axisLabelColor: string;
288
+ pointerColor: string;
289
+ knobColor: string;
290
+ knobFontColor: string;
291
+ measurementValueColor: string;
292
+ unitColor: string;
293
+ dateColor: string;
294
+ progressBarColor: string;
295
+ fontFamily: string;
296
+ }
297
+ export interface GaugeAnchor {
298
+ /**
299
+ * Indicates whether to show the anchor.
300
+ */
301
+ show?: boolean;
302
+ /**
303
+ * Indicates whether to show the anchor above the gauge.
304
+ */
305
+ showAbove?: boolean;
306
+ /**
307
+ * The size of the anchor.
308
+ */
309
+ size?: number;
310
+ /**
311
+ * The size of the anchor as a ratio relative to the container size.
312
+ * Overrides the `size` property when set.
313
+ */
314
+ sizeRatio?: number;
315
+ /**
316
+ * The style of the anchor, represented as a key-value pair object.
317
+ */
318
+ itemStyle?: {
319
+ [key: string]: any;
320
+ };
321
+ }
322
+ export declare const GAUGE_PRESET_NAMES: {
323
+ readonly DEFAULT: "Default";
324
+ readonly CUSTOM: "Custom preset";
325
+ readonly POINTER: "Pointer";
326
+ readonly PROGRESS_BAR: "Progress bar";
327
+ readonly PROGRESS_INDICATOR: "Progress indicator";
328
+ readonly GRADE_RATING: "Grade rating";
329
+ };
330
+ export interface InfoGaugeWidgetConfig {
331
+ datapoints?: KPIDetails[];
332
+ datapointsLabels?: KPIDetails[];
333
+ datapointsGauge?: KPIDetails[];
334
+ selectedPresetId?: string;
335
+ gaugeOptions?: GaugeOptions;
336
+ fractionSize: number;
337
+ }
338
+ export declare const GAUGE_PRESETS: GaugeOptions[];
339
+ //# sourceMappingURL=gauge.model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gauge.model.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/gauge.model.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGpE,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EA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AAE,MAAM,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAC;CACpC;AAED,eAAO,MAAM,kBAAkB;;;;;;;CAOrB,CAAC;AAEX,MAAM,WAAW,qBAAqB;IACpC,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,gBAAgB,CAAC,EAAE,UAAU,EAAE,CAAC;IAChC,eAAe,CAAC,EAAE,UAAU,EAAE,CAAC;IAC/B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,YAAY,EAgUvC,CAAC"}
@@ -1,26 +1,46 @@
1
- import { OnInit } from '@angular/core';
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
2
  import { FormBuilder, NgForm } from '@angular/forms';
3
- import { type DatapointAttributesFormConfig, type DatapointSelectorModalOptions } from '@c8y/ngx-components/datapoint-selector';
3
+ import { type DatapointAttributesFormConfig, type DatapointSelectorModalOptions, type KPIDetails } from '@c8y/ngx-components/datapoint-selector';
4
4
  import { WidgetConfigComponent } from '@c8y/ngx-components/context-dashboard';
5
- import { OnBeforeSave } from '@c8y/ngx-components';
5
+ import { DynamicComponentComponent, OnBeforeSave } from '@c8y/ngx-components';
6
6
  import { Observable } from 'rxjs';
7
- import { InfoGaugeWidgetConfig } from '../info-gauge.model';
7
+ import { GaugeOptions, InfoGaugeWidgetConfig } from './gauge.model';
8
+ import { EditorComponent } from '@c8y/ngx-components/editor';
8
9
  import * as i0 from "@angular/core";
9
- export declare class InfoGaugeWidgetConfigComponent implements OnInit, OnBeforeSave {
10
+ export declare class InfoGaugeWidgetConfigComponent implements OnInit, OnBeforeSave, OnDestroy {
10
11
  private formBuilder;
11
12
  private form;
12
13
  private widgetConfig;
14
+ private dynamicComponent?;
13
15
  config: InfoGaugeWidgetConfig;
16
+ editorComponent: EditorComponent;
14
17
  formGroup: ReturnType<InfoGaugeWidgetConfigComponent['createForm']>;
15
18
  datapointSelectionConfig: Partial<DatapointSelectorModalOptions>;
16
19
  defaultFormOptions: Partial<DatapointAttributesFormConfig>;
20
+ isInfoGauge: boolean;
21
+ activeDatapointGauge: KPIDetails;
22
+ showAdvancedOptions: boolean;
23
+ gaugeOptionsString: string;
24
+ gaugeOptions: GaugeOptions;
25
+ showAdvancedOptionsLabel: "Show advanced options";
26
+ hideAdvancedOptionsLabel: "Hide advanced options";
27
+ ALL_GAUGE_PRESETS: GaugeOptions[];
17
28
  private limits;
18
- constructor(formBuilder: FormBuilder, form: NgForm, widgetConfig: WidgetConfigComponent);
29
+ readonly GAUGE_PRESETS: GaugeOptions[];
30
+ private destroy$;
31
+ constructor(formBuilder: FormBuilder, form: NgForm, widgetConfig: WidgetConfigComponent, dynamicComponent?: DynamicComponentComponent);
19
32
  onBeforeSave(config?: InfoGaugeWidgetConfigComponent['config']): boolean | Promise<boolean> | Observable<boolean>;
20
33
  ngOnInit(): void;
34
+ ngOnDestroy(): void;
35
+ onRadioPresetChange(presetId: string): void;
36
+ assignSchema(): Promise<void>;
37
+ gaugeJSONChange(value: string): void;
38
+ trackByFn(_index: number, item: GaugeOptions): string;
39
+ private getPresetId;
40
+ private setupRadialGauge;
21
41
  private initForm;
22
42
  private createForm;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetConfigComponent, never>;
43
+ static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetConfigComponent, [null, null, null, { optional: true; }]>;
24
44
  static ɵcmp: i0.ɵɵComponentDeclaration<InfoGaugeWidgetConfigComponent, "c8y-info-gauge-widget-config", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
25
45
  }
26
46
  //# sourceMappingURL=info-gauge-widget-config.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-gauge-widget-config.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAAS,MAAM,eAAe,CAAC;AACzD,OAAO,EAGL,WAAW,EACX,MAAM,EAIP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAEnC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAAc,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAqB5D,qBAOa,8BAA+B,YAAW,MAAM,EAAE,YAAY;IAevE,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,YAAY;IAhBb,MAAM,EAAE,qBAAqB,CAAC;IACvC,SAAS,EAAE,UAAU,CAAC,8BAA8B,CAAC,YAAY,CAAC,CAAC,CAAC;IACpE,wBAAwB,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAM;IACtE,kBAAkB,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAIxD;IACF,OAAO,CAAC,MAAM,CAGH;gBAGD,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,qBAAqB;IAG7C,YAAY,CACV,MAAM,CAAC,EAAE,8BAA8B,CAAC,QAAQ,CAAC,GAChD,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;IAQnD,QAAQ;IAgBR,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,UAAU;yCApDP,8BAA8B;2CAA9B,8BAA8B;CAyE1C"}
1
+ {"version":3,"file":"info-gauge-widget-config.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/info-gauge-widget-config.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,MAAM,EAA8B,SAAS,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAGL,WAAW,EACX,MAAM,EAIP,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,UAAU,EAChB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAC9E,OAAO,EAEL,yBAAyB,EAMzB,YAAY,EACb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAsB,MAAM,MAAM,CAAC;AAItD,OAAO,EAGL,YAAY,EACZ,qBAAqB,EACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,eAAe,EAAwC,MAAM,4BAA4B,CAAC;;AAuBnG,qBAqBa,8BAA+B,YAAW,MAAM,EAAE,YAAY,EAAE,SAAS;IA4BlF,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,YAAY;IACR,OAAO,CAAC,gBAAgB,CAAC;IA9B9B,MAAM,EAAE,qBAAqB,CAAC;IACX,eAAe,EAAG,eAAe,CAAC;IAC9D,SAAS,EAAE,UAAU,CAAC,8BAA8B,CAAC,YAAY,CAAC,CAAC,CAAC;IACpE,wBAAwB,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAAM;IACtE,kBAAkB,EAAE,OAAO,CAAC,6BAA6B,CAAC,CAKxD;IACF,WAAW,EAAE,OAAO,CAAC;IACrB,oBAAoB,EAAE,UAAU,CAAC;IACjC,mBAAmB,UAAS;IAC5B,kBAAkB,SAAM;IACxB,YAAY,EAAE,YAAY,CAAC;IAC3B,wBAAwB,0BAAoC;IAC5D,wBAAwB,0BAAoC;IAC5D,iBAAiB,iBAAsB;IACvC,OAAO,CAAC,MAAM,CAGH;IAEX,QAAQ,CAAC,aAAa,iBAAiB;IACvC,OAAO,CAAC,QAAQ,CAAuB;gBAG7B,WAAW,EAAE,WAAW,EACxB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,qBAAqB,EACvB,gBAAgB,CAAC,EAAE,yBAAyB;IAGlE,YAAY,CACV,MAAM,CAAC,EAAE,8BAA8B,CAAC,QAAQ,CAAC,GAChD,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;IAYnD,QAAQ,IAAI,IAAI;IA6BhB,WAAW,IAAI,IAAI;IAKnB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAkBrC,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAkBnC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAiCpC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,YAAY,GAAG,MAAM;IAIrD,OAAO,CAAC,WAAW;IAMnB,OAAO,CAAC,gBAAgB;IAiBxB,OAAO,CAAC,QAAQ;IAMhB,OAAO,CAAC,UAAU;yCAxLP,8BAA8B;2CAA9B,8BAA8B;CA8M1C"}
@@ -0,0 +1,33 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { GaugeOptions } from '../gauge.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PresetPreviewComponent {
5
+ ALL_GAUGE_PRESETS: GaugeOptions[];
6
+ onPresetChange: EventEmitter<string>;
7
+ measurement: {
8
+ value: number;
9
+ unit: string;
10
+ date: string;
11
+ };
12
+ activeDatapointGauge: {
13
+ fragment: string;
14
+ series: string;
15
+ unit: string;
16
+ min: number;
17
+ max: number;
18
+ yellowRangeMax: number;
19
+ yellowRangeMin: number;
20
+ redRangeMin: number;
21
+ redRangeMax: number;
22
+ };
23
+ selectedPresetId: string | null;
24
+ private onChange;
25
+ private onTouched;
26
+ writeValue(value: string): void;
27
+ registerOnChange(fn: (value: string) => void): void;
28
+ registerOnTouched(fn: () => void): void;
29
+ emitPresetChange(presetId: string): void;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<PresetPreviewComponent, never>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<PresetPreviewComponent, "c8y-preset-preview", never, { "ALL_GAUGE_PRESETS": { "alias": "ALL_GAUGE_PRESETS"; "required": false; }; }, { "onPresetChange": "onPresetChange"; }, never, never, true, never>;
32
+ }
33
+ //# sourceMappingURL=preset-preview.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"preset-preview.component.d.ts","sourceRoot":"","sources":["../../../../../../widgets/implementations/info-gauge/info-gauge-widget-config/preset-preview/preset-preview.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,YAAY,EAA6B,MAAM,eAAe,CAAC;AAGnF,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;;AAG9C,qBAaa,sBAAsB;IACxB,iBAAiB,EAAE,YAAY,EAAE,CAAC;IACjC,cAAc,uBAA8B;IAEtD,WAAW;;;;MAIT;IACF,oBAAoB;;;;;;;;;;MAUlB;IACF,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAQ;IAEvC,OAAO,CAAC,QAAQ,CAA0B;IAC1C,OAAO,CAAC,SAAS,CAAa;IAE9B,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAI/B,gBAAgB,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI;IAInD,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAIvC,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;yCArC7B,sBAAsB;2CAAtB,sBAAsB;CA2ClC"}
@@ -1,18 +1,22 @@
1
1
  import { OnChanges } from '@angular/core';
2
2
  import type { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
3
+ import { DynamicComponentComponent } from '@c8y/ngx-components';
3
4
  import { ContextDashboardComponent } from '@c8y/ngx-components/context-dashboard';
4
- import { InfoGaugeWidgetConfig } from '../info-gauge.model';
5
+ import { InfoGaugeWidgetConfig } from '../info-gauge-widget-config/gauge.model';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class InfoGaugeWidgetViewComponent implements OnChanges {
7
8
  private dashboard;
9
+ private dynamicComponent?;
8
10
  config: InfoGaugeWidgetConfig;
9
11
  activeDatapointLabels: any[];
10
12
  activeDatapointGauge: KPIDetails;
11
13
  fractionSize: string;
12
- constructor(dashboard: ContextDashboardComponent);
14
+ isInfoGauge: boolean;
15
+ constructor(dashboard: ContextDashboardComponent, dynamicComponent?: DynamicComponentComponent);
16
+ ngOnInit(): void;
13
17
  ngOnChanges(): void;
14
18
  private assignContextFromContextDashboard;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetViewComponent, [{ optional: true; }]>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetViewComponent, [{ optional: true; }, { optional: true; }]>;
16
20
  static ɵcmp: i0.ɵɵComponentDeclaration<InfoGaugeWidgetViewComponent, "c8y-info-gauge-widget-view", never, { "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
17
21
  }
18
22
  //# sourceMappingURL=info-gauge-widget-view.component.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-gauge-widget-view.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAmB,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAIzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;;AAE5D,qBAQa,4BAA6B,YAAW,SAAS;IAMpC,OAAO,CAAC,SAAS;IALhC,MAAM,EAAE,qBAAqB,CAAC;IACvC,qBAAqB,QAAM;IAC3B,oBAAoB,EAAE,UAAU,CAAC;IACjC,YAAY,SAAW;gBAES,SAAS,EAAE,yBAAyB;IAEpE,WAAW,IAAI,IAAI;IAgBnB,OAAO,CAAC,iCAAiC;yCAxB9B,4BAA4B;2CAA5B,4BAA4B;CAkCxC"}
1
+ {"version":3,"file":"info-gauge-widget-view.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/info-gauge-widget-view/info-gauge-widget-view.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,SAAS,EAAmB,MAAM,eAAe,CAAC;AACtE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AACzE,OAAO,EAEL,yBAAyB,EAE1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAGlF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;;AAEhF,qBAiBa,4BAA6B,YAAW,SAAS;IAQ9C,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,gBAAgB,CAAC;IAR9B,MAAM,EAAE,qBAAqB,CAAC;IACvC,qBAAqB,QAAM;IAC3B,oBAAoB,EAAE,UAAU,CAAC;IACjC,YAAY,SAAW;IACvB,WAAW,EAAE,OAAO,CAAC;gBAGC,SAAS,EAAE,yBAAyB,EACpC,gBAAgB,CAAC,EAAE,yBAAyB;IAGlE,QAAQ;IAMR,WAAW,IAAI,IAAI;IA2BnB,OAAO,CAAC,iCAAiC;yCA7C9B,4BAA4B;2CAA5B,4BAA4B;CAuDxC"}
@@ -2,12 +2,13 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./info-gauge-widget-view/info-gauge-widget-view.component";
3
3
  import * as i2 from "./info-gauge-widget-config/info-gauge-widget-config.component";
4
4
  import * as i3 from "./current-measurement.pipe";
5
+ import * as i4 from "./radial-gauge/radial-gauge.component";
5
6
  /**
6
7
  * @deprecated
7
8
  */
8
9
  export declare class InfoGaugeWidgetModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<InfoGaugeWidgetModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<InfoGaugeWidgetModule, never, [typeof i1.InfoGaugeWidgetViewComponent, typeof i2.InfoGaugeWidgetConfigComponent, typeof i3.InfoGaugeCurrentMeasurementPipe], never>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<InfoGaugeWidgetModule, never, [typeof i1.InfoGaugeWidgetViewComponent, typeof i2.InfoGaugeWidgetConfigComponent, typeof i3.InfoGaugeCurrentMeasurementPipe, typeof i4.RadialGaugeViewComponent], never>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<InfoGaugeWidgetModule>;
12
13
  }
13
14
  //# sourceMappingURL=info-gauge-widget.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"info-gauge-widget.module.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/info-gauge-widget.module.ts"],"names":[],"mappings":";;;;AAKA;;GAEG;AACH,qBAOa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB;0CAArB,qBAAqB;CAAG"}
1
+ {"version":3,"file":"info-gauge-widget.module.d.ts","sourceRoot":"","sources":["../../../../widgets/implementations/info-gauge/info-gauge-widget.module.ts"],"names":[],"mappings":";;;;;AAMA;;GAEG;AACH,qBAQa,qBAAqB;yCAArB,qBAAqB;0CAArB,qBAAqB;0CAArB,qBAAqB;CAAG"}
@@ -0,0 +1,37 @@
1
+ import { OnChanges, SimpleChanges, ElementRef, AfterViewInit, OnDestroy } from '@angular/core';
2
+ import type { ECharts } from 'echarts';
3
+ import type { KPIDetails } from '@c8y/ngx-components/datapoint-selector';
4
+ import { IMeasurementValue } from '@c8y/client';
5
+ import { Observable } from 'rxjs';
6
+ import { GaugeOptions, GaugeOptionsColors } from '../info-gauge-widget-config/gauge.model';
7
+ import * as i0 from "@angular/core";
8
+ export declare class RadialGaugeViewComponent implements OnChanges, OnDestroy, AfterViewInit {
9
+ activeDatapointGauge: KPIDetails;
10
+ measurement: IMeasurementValue;
11
+ fractionSize: number;
12
+ gaugeOptions: GaugeOptions;
13
+ selectedPresetId: string;
14
+ chart: ElementRef;
15
+ private resizeObserver;
16
+ chartOptions$: Observable<GaugeOptions>;
17
+ echartsInstance: ECharts;
18
+ rangeColors: {
19
+ default: string;
20
+ yellow: string;
21
+ red: string;
22
+ };
23
+ gaugeOptionsColors: GaugeOptionsColors;
24
+ private configChangedSubject;
25
+ private themeSubscription;
26
+ private readonly themeSwitcherService;
27
+ private readonly radialGaugeService;
28
+ constructor();
29
+ ngOnInit(): void;
30
+ ngAfterViewInit(): void;
31
+ ngOnDestroy(): void;
32
+ ngOnChanges(changes: SimpleChanges): void;
33
+ onChartInit(ec: ECharts): void;
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<RadialGaugeViewComponent, never>;
35
+ static ɵcmp: i0.ɵɵComponentDeclaration<RadialGaugeViewComponent, "c8y-radial-gauge", never, { "activeDatapointGauge": { "alias": "activeDatapointGauge"; "required": false; }; "measurement": { "alias": "measurement"; "required": false; }; "fractionSize": { "alias": "fractionSize"; "required": false; }; "gaugeOptions": { "alias": "gaugeOptions"; "required": false; }; "selectedPresetId": { "alias": "selectedPresetId"; "required": false; }; }, {}, never, never, true, never>;
36
+ }
37
+ //# sourceMappingURL=radial-gauge.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radial-gauge.component.d.ts","sourceRoot":"","sources":["../../../../../widgets/implementations/info-gauge/radial-gauge/radial-gauge.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAET,aAAa,EACb,UAAU,EAEV,aAAa,EACb,SAAS,EAEV,MAAM,eAAe,CAAC;AACvB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAGzE,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAmB,UAAU,EAAoC,MAAM,MAAM,CAAC;AAErF,OAAO,EAEL,YAAY,EACZ,kBAAkB,EACnB,MAAM,yCAAyC,CAAC;;AAGjD,qBAYa,wBAAyB,YAAW,SAAS,EAAE,SAAS,EAAE,aAAa;IACzE,oBAAoB,EAAE,UAAU,CAAC;IACjC,WAAW,EAAE,iBAAiB,CAAC;IAC/B,YAAY,SAAK;IACjB,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,SAAM;IACQ,KAAK,EAAG,UAAU,CAAC;IAC1D,OAAO,CAAC,cAAc,CAAkB;IAExC,aAAa,EAAE,UAAU,CAAC,YAAY,CAAC,CAAC;IACxC,eAAe,EAAG,OAAO,CAAC;IAC1B,WAAW;;;;MAA6D;IACxE,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,OAAO,CAAC,oBAAoB,CAA0C;IACtE,OAAO,CAAC,iBAAiB,CAAe;IAExC,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAgC;IACrE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAA8B;;IAyBjE,QAAQ;IAiBR,eAAe;IAgBf,WAAW;IAUX,WAAW,CAAC,OAAO,EAAE,aAAa;IAMlC,WAAW,CAAC,EAAE,EAAE,OAAO;yCA3FZ,wBAAwB;2CAAxB,wBAAwB;CA8FpC"}