@c8y/ngx-components 1021.49.12 → 1021.51.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 (183) hide show
  1. package/core/aggregation/aggregation.model.d.ts.map +1 -0
  2. package/core/aggregation/aggregation.service.d.ts +44 -0
  3. package/core/aggregation/aggregation.service.d.ts.map +1 -0
  4. package/core/aggregation/index.d.ts +3 -0
  5. package/core/aggregation/index.d.ts.map +1 -0
  6. package/core/common/index.d.ts +0 -2
  7. package/core/common/index.d.ts.map +1 -1
  8. package/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.d.ts +2 -2
  9. package/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.d.ts.map +1 -1
  10. package/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.d.ts +1 -1
  11. package/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.d.ts.map +1 -1
  12. package/core/dashboard/wiget-time-context/widget-time-context.component.d.ts +1 -1
  13. package/core/dashboard/wiget-time-context/widget-time-context.component.d.ts.map +1 -1
  14. package/core/i18n/pattern-messages.data.d.ts +18 -0
  15. package/core/i18n/pattern-messages.data.d.ts.map +1 -1
  16. package/core/index.d.ts +1 -0
  17. package/core/index.d.ts.map +1 -1
  18. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts +54 -42
  19. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.d.ts.map +1 -1
  20. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.d.ts +28 -8
  21. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.d.ts.map +1 -1
  22. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts +3 -52
  23. package/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.d.ts.map +1 -1
  24. package/datapoints-export-selector/datapoints-export-selector.model.d.ts +5 -14
  25. package/datapoints-export-selector/datapoints-export-selector.model.d.ts.map +1 -1
  26. package/device-grid/device-grid.component.d.ts.map +1 -1
  27. package/device-grid/device-grid.service.d.ts +2 -0
  28. package/device-grid/device-grid.service.d.ts.map +1 -1
  29. package/esm2022/alarms/alarms-type-filter.component.mjs +3 -3
  30. package/esm2022/core/aggregation/aggregation.model.mjs +46 -0
  31. package/esm2022/core/aggregation/aggregation.service.mjs +76 -0
  32. package/esm2022/core/aggregation/index.mjs +3 -0
  33. package/esm2022/core/common/index.mjs +1 -3
  34. package/esm2022/core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.mjs +2 -2
  35. package/esm2022/core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.mjs +2 -2
  36. package/esm2022/core/dashboard/wiget-time-context/widget-time-context.component.mjs +4 -4
  37. package/esm2022/core/i18n/pattern-messages.data.mjs +19 -1
  38. package/esm2022/core/index.mjs +2 -1
  39. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.mjs +166 -164
  40. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.mjs +82 -48
  41. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.mjs +5 -95
  42. package/esm2022/datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-exports-selector-data-scope/datapoints-exports-selector-data-scope.component.mjs +3 -3
  43. package/esm2022/datapoints-export-selector/datapoints-export-selector.component.mjs +3 -3
  44. package/esm2022/datapoints-export-selector/datapoints-export-selector.model.mjs +1 -9
  45. package/esm2022/device-grid/device-grid.component.mjs +3 -3
  46. package/esm2022/device-grid/device-grid.service.mjs +16 -1
  47. package/esm2022/device-list/add-smart-group.component.mjs +3 -3
  48. package/esm2022/interval-picker/interval-picker.model.mjs +5 -1
  49. package/esm2022/operations/bulk-operation-list-item/bulk-operation-list-item.service.mjs +5 -4
  50. package/esm2022/operations/operation-details/operation-details.module.mjs +7 -7
  51. package/esm2022/operations/operations-list/device-control.feature.mjs +20 -0
  52. package/esm2022/operations/operations-list/index.mjs +4 -3
  53. package/esm2022/operations/operations-list/operations-list-item.component.mjs +11 -9
  54. package/esm2022/operations/operations-list/operations-list.component.mjs +15 -10
  55. package/esm2022/operations/operations-list/operations-list.module.mjs +16 -41
  56. package/esm2022/operations/operations-list/operations-list.service.mjs +4 -3
  57. package/esm2022/operations/operations.module.mjs +21 -14
  58. package/esm2022/operations/shared/operations.service.mjs +4 -3
  59. package/esm2022/services/index.mjs +14 -3
  60. package/esm2022/services/service-command-tab/c8y-ngx-components-services-service-command-tab.mjs +5 -0
  61. package/esm2022/services/service-command-tab/index.mjs +3 -0
  62. package/esm2022/services/service-command-tab/service-command-tab.component.mjs +33 -0
  63. package/esm2022/services/service-command-tab/service-command.feature.mjs +14 -0
  64. package/esm2022/services/services-device-tab/index.mjs +9 -3
  65. package/esm2022/services/services-device-tab/services-device-tab.component.mjs +3 -4
  66. package/esm2022/services/services-device-tab/services-device-tab.guard.mjs +2 -2
  67. package/esm2022/services/services-device-tab/services.breadcrumb-factory.mjs +13 -1
  68. package/esm2022/services/services.module.mjs +4 -2
  69. package/esm2022/services/shared/c8y-ngx-components-services-shared.mjs +5 -0
  70. package/esm2022/services/shared/index.mjs +3 -0
  71. package/esm2022/services/shared/service-command.service.mjs +118 -0
  72. package/esm2022/services/shared/services.model.mjs +23 -0
  73. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.mjs +25 -41
  74. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-reload/datapoints-reload.component.mjs +3 -3
  75. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.mjs +55 -49
  76. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.mjs +25 -73
  77. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-widget.model.mjs +20 -20
  78. package/esm2022/widgets/implementations/datapoints-table/datapoints-table.service.mjs +19 -19
  79. package/fesm2022/c8y-ngx-components-alarms.mjs +2 -2
  80. package/fesm2022/c8y-ngx-components-alarms.mjs.map +1 -1
  81. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs +248 -308
  82. package/fesm2022/c8y-ngx-components-datapoints-export-selector.mjs.map +1 -1
  83. package/fesm2022/c8y-ngx-components-device-grid.mjs +17 -2
  84. package/fesm2022/c8y-ngx-components-device-grid.mjs.map +1 -1
  85. package/fesm2022/c8y-ngx-components-device-list.mjs +2 -2
  86. package/fesm2022/c8y-ngx-components-device-list.mjs.map +1 -1
  87. package/fesm2022/c8y-ngx-components-interval-picker.mjs +5 -1
  88. package/fesm2022/c8y-ngx-components-interval-picker.mjs.map +1 -1
  89. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs +3 -2
  90. package/fesm2022/c8y-ngx-components-operations-bulk-operation-list-item.mjs.map +1 -1
  91. package/fesm2022/c8y-ngx-components-operations-operation-details.mjs +5 -5
  92. package/fesm2022/c8y-ngx-components-operations-operation-details.mjs.map +1 -1
  93. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs +57 -52
  94. package/fesm2022/c8y-ngx-components-operations-operations-list.mjs.map +1 -1
  95. package/fesm2022/c8y-ngx-components-operations-shared.mjs +3 -2
  96. package/fesm2022/c8y-ngx-components-operations-shared.mjs.map +1 -1
  97. package/fesm2022/c8y-ngx-components-operations.mjs +42 -35
  98. package/fesm2022/c8y-ngx-components-operations.mjs.map +1 -1
  99. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs +49 -0
  100. package/fesm2022/c8y-ngx-components-services-service-command-tab.mjs.map +1 -0
  101. package/fesm2022/c8y-ngx-components-services-shared.mjs +145 -0
  102. package/fesm2022/c8y-ngx-components-services-shared.mjs.map +1 -0
  103. package/fesm2022/c8y-ngx-components-services.mjs +20 -113
  104. package/fesm2022/c8y-ngx-components-services.mjs.map +1 -1
  105. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs +1075 -1253
  106. package/fesm2022/c8y-ngx-components-widgets-implementations-datapoints-table.mjs.map +1 -1
  107. package/fesm2022/c8y-ngx-components.mjs +136 -76
  108. package/fesm2022/c8y-ngx-components.mjs.map +1 -1
  109. package/interval-picker/interval-picker.model.d.ts +6 -0
  110. package/interval-picker/interval-picker.model.d.ts.map +1 -1
  111. package/locales/de.po +52 -41
  112. package/locales/es.po +52 -41
  113. package/locales/fr.po +51 -40
  114. package/locales/ja_JP.po +53 -43
  115. package/locales/ko.po +51 -34
  116. package/locales/locales.pot +42 -31
  117. package/locales/nl.po +52 -41
  118. package/locales/pl.po +52 -40
  119. package/locales/pt_BR.po +51 -40
  120. package/locales/zh_CN.po +50 -33
  121. package/locales/zh_TW.po +50 -33
  122. package/operations/bulk-operation-list-item/bulk-operation-list-item.service.d.ts +2 -2
  123. package/operations/bulk-operation-list-item/bulk-operation-list-item.service.d.ts.map +1 -1
  124. package/operations/operation-details/operation-details.module.d.ts +1 -1
  125. package/operations/operations-list/device-control.feature.d.ts +4 -0
  126. package/operations/operations-list/device-control.feature.d.ts.map +1 -0
  127. package/operations/operations-list/index.d.ts +3 -2
  128. package/operations/operations-list/index.d.ts.map +1 -1
  129. package/operations/operations-list/operations-list-item.component.d.ts +1 -1
  130. package/operations/operations-list/operations-list-item.component.d.ts.map +1 -1
  131. package/operations/operations-list/operations-list.component.d.ts +3 -1
  132. package/operations/operations-list/operations-list.component.d.ts.map +1 -1
  133. package/operations/operations-list/operations-list.module.d.ts +3 -9
  134. package/operations/operations-list/operations-list.module.d.ts.map +1 -1
  135. package/operations/operations.module.d.ts +1 -2
  136. package/operations/operations.module.d.ts.map +1 -1
  137. package/package.json +1 -1
  138. package/services/index.d.ts +13 -2
  139. package/services/index.d.ts.map +1 -1
  140. package/services/service-command-tab/c8y-ngx-components-services-service-command-tab.d.ts.map +1 -0
  141. package/services/service-command-tab/index.d.ts +3 -0
  142. package/services/service-command-tab/index.d.ts.map +1 -0
  143. package/services/service-command-tab/service-command-tab.component.d.ts +12 -0
  144. package/services/service-command-tab/service-command-tab.component.d.ts.map +1 -0
  145. package/services/service-command-tab/service-command.feature.d.ts +3 -0
  146. package/services/service-command-tab/service-command.feature.d.ts.map +1 -0
  147. package/services/services-device-tab/index.d.ts +8 -2
  148. package/services/services-device-tab/index.d.ts.map +1 -1
  149. package/services/services-device-tab/services-device-tab.component.d.ts +2 -2
  150. package/services/services-device-tab/services-device-tab.component.d.ts.map +1 -1
  151. package/services/services-device-tab/services.breadcrumb-factory.d.ts.map +1 -1
  152. package/services/services.module.d.ts.map +1 -1
  153. package/services/shared/c8y-ngx-components-services-shared.d.ts.map +1 -0
  154. package/services/shared/index.d.ts +3 -0
  155. package/services/shared/index.d.ts.map +1 -0
  156. package/services/{services-device-tab → shared}/service-command.service.d.ts +10 -7
  157. package/services/shared/service-command.service.d.ts.map +1 -0
  158. package/services/shared/services.model.d.ts +31 -0
  159. package/services/shared/services.model.d.ts.map +1 -0
  160. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.d.ts +3 -5
  161. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.component.d.ts.map +1 -1
  162. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts +7 -2
  163. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.component.d.ts.map +1 -1
  164. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.d.ts +7 -27
  165. package/widgets/implementations/datapoints-table/datapoints-table-view/datapoints-table-view.service.d.ts.map +1 -1
  166. package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts +4 -3
  167. package/widgets/implementations/datapoints-table/datapoints-table-widget.model.d.ts.map +1 -1
  168. package/widgets/implementations/datapoints-table/datapoints-table.service.d.ts +5 -5
  169. package/widgets/implementations/datapoints-table/datapoints-table.service.d.ts.map +1 -1
  170. package/core/common/aggregation/aggregation.model.d.ts.map +0 -1
  171. package/core/common/aggregation/aggregation.service.d.ts +0 -17
  172. package/core/common/aggregation/aggregation.service.d.ts.map +0 -1
  173. package/esm2022/core/common/aggregation/aggregation.model.mjs +0 -46
  174. package/esm2022/core/common/aggregation/aggregation.service.mjs +0 -34
  175. package/esm2022/services/services-device-tab/service-command.service.mjs +0 -113
  176. package/esm2022/services/services-device-tab/service-device-tab.model.mjs +0 -2
  177. package/esm2022/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.mjs +0 -124
  178. package/services/services-device-tab/service-command.service.d.ts.map +0 -1
  179. package/services/services-device-tab/service-device-tab.model.d.ts +0 -11
  180. package/services/services-device-tab/service-device-tab.model.d.ts.map +0 -1
  181. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.d.ts +0 -56
  182. package/widgets/implementations/datapoints-table/datapoints-table-config/datapoints-table-config.service.d.ts.map +0 -1
  183. /package/core/{common/aggregation → aggregation}/aggregation.model.d.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregation.model.d.ts","sourceRoot":"","sources":["../../../core/aggregation/aggregation.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAI9C,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,eAAe,GAAG,IAAI,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,WAAW,EAKrC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;CAI9B,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,eAAe,GAAG,WAAW,EAAE,MAAM,CAK3E,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,eAAe,GAAG,WAAW,GAAG,UAAU,EAAE,MAAM,CAMxF,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX,eAAO,MAAM,sBAAsB,4FAKzB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;CAKrB,CAAC;AAEX;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,OAAO,kBAAkB,CAAC,IAAI,GAAG,GAAG,eAAe,EAAE,CAAC;AACtF;;;GAGG;AACH,MAAM,MAAM,uBAAuB,GAAG;KACnC,GAAG,IAAI,iBAAiB,CAAC,CAAC,EAAE,OAAO;CACrC,CAAC"}
@@ -0,0 +1,44 @@
1
+ import { Interval } from '@c8y/ngx-components/interval-picker';
2
+ import { AggregationOption, AggregationOptionStatus } from './aggregation.model';
3
+ import * as i0 from "@angular/core";
4
+ export declare class AggregationService {
5
+ readonly AGGREGATION_MAP: {
6
+ minutes: "NONE";
7
+ hours: import("packages/client/lib").aggregationType.MINUTELY;
8
+ days: import("packages/client/lib").aggregationType.HOURLY;
9
+ };
10
+ /**
11
+ * Determines which aggregation options should be disabled based on the time range between two dates.
12
+ * It calculates the time difference and checks against predefined time spans to decide if daily,
13
+ * hourly, or minutely aggregations should be disabled.
14
+ *
15
+ * @param dateFrom - The start date of the time range, as a `Date` object or an ISO date string.
16
+ * @param dateTo - The end date of the time range, as a `Date` object or an ISO date string.
17
+ * @returns An `AggregationOptionStatus` object indicating the disabled state of each aggregation option.
18
+ */
19
+ getDisabledAggregationOptions(dateFrom: Date | string, dateTo: Date | string): AggregationOptionStatus;
20
+ /**
21
+ * Determines the new aggregation value based on the current value and disabled options.
22
+ *
23
+ * Goal is to switch to the next available aggregation option if the current one is disabled.
24
+ * - If the current option is disabled, sets the control to the first available (non-disabled) option based on the following order:
25
+ * - If the current value is `DAILY`, it switches to `HOURLY` if it's not disabled, otherwise to `MINUTELY` if `HOURLY` is also disabled.
26
+ * - If the current value is `HOURLY`, it switches to `MINUTELY` if it's not disabled.
27
+ * - If all options are disabled, it sets the value to `NONE`.
28
+ *
29
+ * @param currentValue - The current aggregation option.
30
+ * @param disabledOptions - An object containing disabled options.
31
+ * @returns The new aggregation option.
32
+ */
33
+ determineFirstNewAvailableAggregationValue(currentValue: AggregationOption, disabledOptions: AggregationOptionStatus): AggregationOption;
34
+ /**
35
+ * Determines the aggregation value based on the provided interval.
36
+ *
37
+ * @param interval - The time range interval.
38
+ * @returns The corresponding aggregation value.
39
+ */
40
+ determineAggregationValue(interval: Interval['id']): AggregationOption;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<AggregationService, never>;
42
+ static ɵprov: i0.ɵɵInjectableDeclaration<AggregationService>;
43
+ }
44
+ //# sourceMappingURL=aggregation.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aggregation.service.d.ts","sourceRoot":"","sources":["../../../core/aggregation/aggregation.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAiC,MAAM,qCAAqC,CAAC;AAC9F,OAAO,EAEL,iBAAiB,EACjB,uBAAuB,EACxB,MAAM,qBAAqB,CAAC;;AAE7B,qBAGa,kBAAkB;IAC7B,QAAQ,CAAC,eAAe;;;;MAItB;IAEF;;;;;;;;OAQG;IACH,6BAA6B,CAC3B,QAAQ,EAAE,IAAI,GAAG,MAAM,EACvB,MAAM,EAAE,IAAI,GAAG,MAAM,GACpB,uBAAuB;IAa1B;;;;;;;;;;;;OAYG;IACH,0CAA0C,CACxC,YAAY,EAAE,iBAAiB,EAC/B,eAAe,EAAE,uBAAuB,GACvC,iBAAiB;IAkBpB;;;;;OAKG;IACH,yBAAyB,CAAC,QAAQ,EAAE,QAAQ,CAAC,IAAI,CAAC,GAAG,iBAAiB;yCAxE3D,kBAAkB;6CAAlB,kBAAkB;CA2E9B"}
@@ -0,0 +1,3 @@
1
+ export * from './aggregation.model';
2
+ export * from './aggregation.service';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/aggregation/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC"}
@@ -65,8 +65,6 @@ export * from './virtual-scroll/virtual-scroll-window-strategy';
65
65
  export * from './virtual-scroll/virtual-scroll-window.directive';
66
66
  export * from './virtual-scroll/virtual-scroller-wrapper.component';
67
67
  export * from './zip.service';
68
- export * from './aggregation/aggregation.service';
69
- export * from './aggregation/aggregation.model';
70
68
  export * from './inter-app.service';
71
69
  export * from './interval-based-reload.abstract';
72
70
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../core/common/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAC3D,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,C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;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0CAA0C,CAAC;AACzD,cAAc,mDAAmD,CAAC;AAClE,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,iDAAiD,CAAC;AAChE,cAAc,kDAAkD,CAAC;AACjE,cAAc,qDAAqD,CAAC;AACpE,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kCAAkC,CAAC"}
@@ -7,9 +7,9 @@ export declare class AggregationPickerComponent implements ControlValueAccessor
7
7
  * By default no aggregation type is disabled.
8
8
  */
9
9
  disabledAggregations: Partial<Record<aggregationType, boolean>>;
10
- readonly AGGREGATIONS: import("./../../../common/aggregation/aggregation.model").Aggregation[];
10
+ readonly AGGREGATIONS: import("../../../aggregation/aggregation.model").Aggregation[];
11
11
  readonly AGGREGATION_ICONS: Record<"undefined" | aggregationType, string>;
12
- readonly AGGREGATION_TEXTS: Record<"undefined" | aggregationType | "disabled", string>;
12
+ readonly AGGREGATION_TEXTS: Record<"undefined" | "disabled" | aggregationType, string>;
13
13
  value: aggregationType;
14
14
  touched: boolean;
15
15
  disabled: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"aggregation-picker.component.d.ts","sourceRoot":"","sources":["../../../../../core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAMzE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;;AAE9C,qBAWa,0BAA2B,YAAW,oBAAoB;IACrE;;;OAGG;IACM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAM;IAE9E,QAAQ,CAAC,YAAY,0EAAgB;IACrC,QAAQ,CAAC,iBAAiB,gDAAqB;IAC/C,QAAQ,CAAC,iBAAiB,6DAAqB;IAE/C,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,UAAS;IAChB,QAAQ,UAAS;IAGjB,QAAQ,mBAAW;IAEnB,SAAS,aAAY;IAErB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAIxC,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B,iBAAiB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI;IAIvC,aAAa;IAOb,gBAAgB,CAAC,QAAQ,EAAE,OAAO;yCAvCvB,0BAA0B;2CAA1B,0BAA0B;CA0CtC"}
1
+ {"version":3,"file":"aggregation-picker.component.d.ts","sourceRoot":"","sources":["../../../../../core/dashboard/wiget-time-context/aggregation-picker/aggregation-picker.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AAMzE,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;;AAE9C,qBAWa,0BAA2B,YAAW,oBAAoB;IACrE;;;OAGG;IACM,oBAAoB,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC,CAAM;IAE9E,QAAQ,CAAC,YAAY,iEAAgB;IACrC,QAAQ,CAAC,iBAAiB,gDAAqB;IAC/C,QAAQ,CAAC,iBAAiB,6DAAqB;IAE/C,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,UAAS;IAChB,QAAQ,UAAS;IAGjB,QAAQ,mBAAW;IAEnB,SAAS,aAAY;IAErB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI;IAIxC,gBAAgB,CAAC,EAAE,EAAE,GAAG,GAAG,IAAI;IAI/B,iBAAiB,CAAC,SAAS,EAAE,GAAG,GAAG,IAAI;IAIvC,aAAa;IAOb,gBAAgB,CAAC,QAAQ,EAAE,OAAO;yCAvCvB,0BAA0B;2CAA1B,0BAA0B;CA0CtC"}
@@ -2,7 +2,7 @@ import * as i0 from "@angular/core";
2
2
  export declare class WidgetTimeContextIconBar {
3
3
  globalContextButtonText: string;
4
4
  readonly AGGREGATION_ICONS: Record<"undefined" | import("packages/client/lib").aggregationType, string>;
5
- readonly AGGREGATION_TEXTS: Record<"undefined" | import("packages/client/lib").aggregationType | "disabled", string>;
5
+ readonly AGGREGATION_TEXTS: Record<"undefined" | "disabled" | import("packages/client/lib").aggregationType, string>;
6
6
  /**
7
7
  * Widget configuration object.
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"widget-time-context-icon-bar.component.d.ts","sourceRoot":"","sources":["../../../../../core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.ts"],"names":[],"mappings":";AAOA,qBAIa,wBAAwB;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,8EAAqB;IAC/C,QAAQ,CAAC,iBAAiB,2FAAqB;IAE/C;;OAEG;IACM,MAAM,EAAE,GAAG,CAAC;IAErB,QAAQ,IAAI,IAAI;yCAVL,wBAAwB;2CAAxB,wBAAwB;CAwBpC"}
1
+ {"version":3,"file":"widget-time-context-icon-bar.component.d.ts","sourceRoot":"","sources":["../../../../../core/dashboard/wiget-time-context/widget-time-context-icon-bar/widget-time-context-icon-bar.component.ts"],"names":[],"mappings":";AAIA,qBAIa,wBAAwB;IACnC,uBAAuB,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,iBAAiB,8EAAqB;IAC/C,QAAQ,CAAC,iBAAiB,2FAAqB;IAE/C;;OAEG;IACM,MAAM,EAAE,GAAG,CAAC;IAErB,QAAQ,IAAI,IAAI;yCAVL,wBAAwB;2CAAxB,wBAAwB;CAwBpC"}
@@ -4,7 +4,7 @@ import { Router } from '@angular/router';
4
4
  import { aggregationType } from '@c8y/client';
5
5
  import { BsDropdownDirective } from 'ngx-bootstrap/dropdown';
6
6
  import { ActionBarService } from '../../action-bar';
7
- import { AggregationService } from '../../common/aggregation/aggregation.service';
7
+ import { AggregationService } from '../../aggregation/aggregation.service';
8
8
  import { DashboardChildActionComponent } from '../dashboard-child-action.component';
9
9
  import { DashboardChildComponent } from '../dashboard-child.component';
10
10
  import { WidgetsDashboardEventService } from '../widgets-dashboard-event.service';
@@ -1 +1 @@
1
- {"version":3,"file":"widget-time-context.component.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/wiget-time-context/widget-time-context.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,YAAY,EAEZ,SAAS,EACT,MAAM,EAGP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAiD,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACxF,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAG7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8CAA8C,CAAC;AAElF,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,OAAO,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAClF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sCAAsC,CAAC;A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IACtC,OAAO,CAAC,oBAAoB,CAAe;IAE3C;;OAEG;gBAEO,kBAAkB,EAAE,4BAA4B,EAChD,cAAc,EAAE,uBAAuB,EACvC,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,6BAA6B,EAC3C,aAAa,EAAE,8BAA8B,EAC7C,MAAM,EAAE,MAAM,EACd,gBAAgB,EAAE,gBAAgB,EAClC,kBAAkB,EAAE,kBAAkB;IAGhD;;OAEG;IACH,QAAQ,IAAI,IAAI;IA+BhB;;OAEG;IACH,eAAe,IAAI,IAAI;IAMvB;;OAEG;IACH,gBAAgB,IAAI,IAAI;IAoBxB;;OAEG;IACH,oBAAoB,IAAI,IAAI;IAY5B;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb;;OAEG;IACH,WAAW,IAAI,IAAI;IAOnB,OAAO,CAAC,yBAAyB;IAuBjC,OAAO,CAAC,yBAAyB;IAYjC,OAAO,CAAC,4BAA4B;IAgBpC,OAAO,CAAC,UAAU;IAYlB;;qEAEiE;IACjE,OAAO,CAAC,MAAM;IAcd,OAAO,CAAC,wBAAwB;IAqBhC,OAAO,CAAC,gBAAgB;IAsBxB,OAAO,CAAC,4BAA4B;IAMpC,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,4BAA4B;IAwCpC,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,aAAa;IAuBrB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,oBAAoB;yCA/bjB,0BAA0B;2CAA1B,0BAA0B;CAudtC"}
1
+ {"version":3,"file":"widget-time-context.component.d.ts","sourceRoot":"","sources":["../../../../core/dashboard/wiget-time-context/widget-time-context.component.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EAEb,YAAY,EAEZ,SAAS,EACT,MAAM,EAGP,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EA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;IAMpC,OAAO,CAAC,iBAAiB;IAkCzB,OAAO,CAAC,4BAA4B;IAwCpC,OAAO,CAAC,wBAAwB;IAchC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,aAAa;IAuBrB,OAAO,CAAC,YAAY;IAOpB,OAAO,CAAC,qBAAqB;IAuB7B,OAAO,CAAC,oBAAoB;yCA/bjB,0BAA0B;2CAA1B,0BAA0B;CAudtC"}
@@ -732,6 +732,12 @@ export declare const MESSAGES_CORE_I18N: {
732
732
  readonly id: "$1";
733
733
  };
734
734
  };
735
+ readonly '^RESTART (.+?)$': {
736
+ readonly gettext: "RESTART`verb, action` {{service}}";
737
+ readonly placeholders: {
738
+ readonly service: "$1";
739
+ };
740
+ };
735
741
  readonly '^Retrieve configuration snapshot from device (.+?)$': {
736
742
  readonly gettext: "Retrieve configuration snapshot from device {{deviceName}}";
737
743
  readonly placeholders: {
@@ -847,9 +853,21 @@ export declare const MESSAGES_CORE_I18N: {
847
853
  readonly name: "$1";
848
854
  };
849
855
  };
856
+ readonly '^START (.+?)$': {
857
+ readonly gettext: "START`verb, action` {{service}}";
858
+ readonly placeholders: {
859
+ readonly service: "$1";
860
+ };
861
+ };
850
862
  readonly '^Started container$': {
851
863
  readonly gettext: "Container started.";
852
864
  };
865
+ readonly '^STOP (.+?)$': {
866
+ readonly gettext: "STOP`verb, action` {{service}}";
867
+ readonly placeholders: {
868
+ readonly service: "$1";
869
+ };
870
+ };
853
871
  readonly '^Successfully assigned (.+) to (.+)$': {
854
872
  readonly gettext: "\"{{imageName}}\" assigned to \"{{address}}\".";
855
873
  readonly placeholders: {
@@ -1 +1 @@
1
- {"version":3,"file":"pattern-messages.data.d.ts","sourceRoot":"","sources":["../../../core/i18n/pattern-messages.data.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAggErB,CAAC"}
package/core/index.d.ts CHANGED
@@ -55,4 +55,5 @@ export * from './drawer/index';
55
55
  export * from './ui-settings/index';
56
56
  export * from './countdown-interval/index';
57
57
  export * from './color-input/index';
58
+ export * from './aggregation/index';
58
59
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../core/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,C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,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
@@ -1,17 +1,15 @@
1
- import { DomSanitizer } from '@angular/platform-browser';
2
- import { IFetchResponse, MeasurementService } from '@c8y/client';
1
+ import { IFetchResponse, IMeasurement, IMeasurementFilter, IResult, ISeries, ISeriesFilter, MeasurementService } from '@c8y/client';
3
2
  import { AlertService } from '@c8y/ngx-components';
4
3
  import { TranslateService } from '@ngx-translate/core';
5
- import { DatapointDetails, DatapointsExceedingLimit, DataToExport, DataToExportWithBackendCreatedFile, ExportConfig, MeasurementFileConfig } from '../../datapoints-export-selector.model';
6
- import { UtilsService } from './utils.service';
4
+ import { DatapointDetails, DatapointsExceedingLimit, DatapointsValuesDataMap, DataToExport, DataToExportWithBackendCreatedFile, ExportConfig, MeasurementFileConfig } from '../../datapoints-export-selector.model';
5
+ import { SourceItem, UtilsService } from './utils.service';
7
6
  import * as i0 from "@angular/core";
8
7
  export declare class DataFetchingService {
9
8
  private alertService;
10
9
  private measurementService;
11
- private sanitizer;
12
10
  private translateService;
13
11
  private utilsService;
14
- constructor(alertService: AlertService, measurementService: MeasurementService, sanitizer: DomSanitizer, translateService: TranslateService, utilsService: UtilsService);
12
+ constructor(alertService: AlertService, measurementService: MeasurementService, translateService: TranslateService, utilsService: UtilsService);
15
13
  /**
16
14
  * Checks if any of measurements requests may exceeded the limit,
17
15
  * after which the export data is processed by the backend and the generated CSV/Excel file is sent by email.
@@ -33,6 +31,23 @@ export declare class DataFetchingService {
33
31
  * @returns The message that can be injected.
34
32
  */
35
33
  getLimitExceededMessage(hasNoExportableData: boolean, emailDeliverableCount?: number, browserDownloadableCount?: number, nonRetrievableCount?: number, totalDatapointsSelectedForExportCount?: number): string;
34
+ /**
35
+ * Trims the given HTML message by removing list items that correspond to zero counts.
36
+ *
37
+ * @param message - The HTML string containing the message with list items.
38
+ * @param counts - An array of number values corresponding to each list item.
39
+ * @param countToTrim - A count that will be trimmed with corresponding list item.
40
+ * @returns A trimmed HTML string with list items removed where the corresponding count is zero.
41
+ *
42
+ * Example:
43
+ * ```typescript
44
+ * const message = '<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>';
45
+ * const counts = [1, 0, 2];
46
+ * const trimmedMessage = this.removeZeroCountListItems(message, counts);
47
+ * // Result: '<ul><li>Item 1</li><li>Item 3</li></ul>'
48
+ * ```
49
+ */
50
+ removeZeroCountListItems(message: string, counts: number[], countToTrim?: number): string;
36
51
  /**
37
52
  * Displays an information alert about sending data via email.
38
53
  *
@@ -43,25 +58,11 @@ export declare class DataFetchingService {
43
58
  */
44
59
  showSendViaEmailInfoAlert(fileType: string, datapointsExceedingLimit: DatapointsExceedingLimit[]): void;
45
60
  fetchMeasurementDataFilesAndPairWithSourceDetails(acceptFileType: string, exportConfig: ExportConfig): Promise<DataToExportWithBackendCreatedFile[]>;
46
- fetchAndProcessMeasurementFile(details: DatapointDetails, measurementFileConfig: MeasurementFileConfig): Promise<DataToExportWithBackendCreatedFile | undefined>;
61
+ fetchAndProcessMeasurementFile(details: DatapointDetails, measurementFileConfig: MeasurementFileConfig, roundSeconds?: boolean): Promise<DataToExportWithBackendCreatedFile | undefined>;
47
62
  mergeMeasurementsWithItsSourceDetails(details: DatapointDetails, measurementFile: IFetchResponse): Promise<DataToExportWithBackendCreatedFile>;
48
63
  fetchAndPrepareDataToExport(exportConfig: ExportConfig, isMeasurement: boolean): Promise<DataToExport[]>;
49
- getSourcesWithPermissionsToRead(datapointDetails: DatapointDetails[]): Promise<string[]>;
50
- /**
51
- * Fetches and prepares measurement data for preview.
52
- *
53
- * Empty DataToExport object can be returned, because unlike series data,
54
- * measurement data is not further processed besides showing only in the preview.
55
- * CSV/Excel files are generated by the backend for measurements.
56
- *
57
- * @param exportConfig - The export configuration.
58
- * @returns A promise that resolves to an array of DataToExport objects or null when no data is fetched.
59
- */
60
- private fetchAndPrepareMeasurementDataToExportForPreview;
61
- private fetchMeasurementDataForPreview;
62
- private prepareMeasurementsFilter;
63
- private processMeasurementDataForPreview;
64
- private fetchAndPrepareSeriesDataToExport;
64
+ prepareMeasurementsFilter(details: DatapointDetails, exportConfig: ExportConfig, roundSeconds: boolean, pageSize?: number): IMeasurementFilter;
65
+ processMeasurementDataForPreview(details: DatapointDetails, data: IMeasurement[]): DataToExport;
65
66
  /**
66
67
  * Returns a map of active data points device IDs with their corresponding series.
67
68
  *
@@ -75,9 +76,7 @@ export declare class DataFetchingService {
75
76
  * @param datapointDetails - An array of data points details.
76
77
  * @returns A map where the key is the data point ID and the value is an array of data point series.
77
78
  */
78
- private groupSeriesByDeviceId;
79
- private fetchSeriesData;
80
- private prepareSeriesFilter;
79
+ groupSeriesByDeviceId(datapointDetails: DatapointDetails[]): DatapointsValuesDataMap;
81
80
  /**
82
81
  * Processes the fetched series data and prepares it for export.
83
82
  *
@@ -85,32 +84,45 @@ export declare class DataFetchingService {
85
84
  * @param fetchedDataMap - A map of fetched series data grouped by source.
86
85
  * @returns An array of DataToExport objects.
87
86
  */
88
- private processSeriesData;
87
+ processSeriesData(datapointDetails: DatapointDetails[], fetchedDataMap: SourceItem[]): DataToExport[];
88
+ getSourcesWithPermissionsToRead(datapointDetails: DatapointDetails[]): Promise<string[]>;
89
89
  /**
90
90
  * Adjusts the given date by adding the specified number of minutes and setting seconds to 0.
91
91
  *
92
92
  * @param date - The date to be adjusted in string format.
93
93
  * @param minutes - The number of minutes to add to the date.
94
- * @returns The adjusted date in the format 'YYYY-MM-DDTHH:mm:ss+HH:MM'.
94
+ * @param roundSeconds - Whether to round the seconds or not.
95
+ * If true, the seconds will be rounded to 0.
96
+ * If false, the seconds will be displayed as they are.
97
+ * @returns The adjusted date in ISO string format.
95
98
  */
96
- private adjustDate;
99
+ adjustDate(date: string | Date, minutes: number, roundSeconds?: boolean): string;
97
100
  /**
98
- * Trims the given HTML message by removing list items that correspond to zero counts.
101
+ * Asynchronously loads series data based on the provided parameters.
99
102
  *
100
- * @param message - The HTML string containing the message with list items.
101
- * @param counts - An array of number values corresponding to each list item.
102
- * @param countToTrim - A count that will be trimmed with corresponding list item.
103
- * @returns A trimmed HTML string with list items removed where the corresponding count is zero.
103
+ * This method constructs a filter for retrieving series data within a specified date range,
104
+ * from a specific source, and optionally applying an aggregation type.
104
105
  *
105
- * Example:
106
- * ```typescript
107
- * const message = '<ul><li>Item 1</li><li>Item 2</li><li>Item 3</li></ul>';
108
- * const counts = [1, 0, 2];
109
- * const trimmedMessage = this.removeZeroCountListItems(message, counts);
110
- * // Result: '<ul><li>Item 1</li><li>Item 3</li></ul>'
111
- * ```
106
+ * @param rawFilter - The parameters for loading series data, including date range, source, series names, and aggregation type.
107
+ * @param roundSeconds - Indicates whether to round the seconds in the date range to the nearest whole number.
108
+ * @returns A promise that resolves to series data wrapped in result object.
112
109
  */
113
- private removeZeroCountListItems;
110
+ fetchSeriesData(rawFilter: ISeriesFilter, roundSeconds?: boolean): Promise<IResult<ISeries>> | undefined;
111
+ /**
112
+ * Fetches and prepares measurement data for preview.
113
+ *
114
+ * Empty DataToExport object can be returned, because unlike series data,
115
+ * measurement data is not further processed besides showing only in the preview.
116
+ * CSV/Excel files are generated by the backend for measurements.
117
+ *
118
+ * @param exportConfig - The export configuration.
119
+ * @param roundSeconds - Indicates whether to round the seconds in the date range to the nearest whole number.
120
+ * @returns A promise that resolves to an array of DataToExport objects or null when no data is fetched.
121
+ */
122
+ private fetchAndPrepareMeasurementDataToExportForPreview;
123
+ private fetchMeasurementDataForPreview;
124
+ private fetchAndPrepareSeriesDataToExport;
125
+ private prepareSeriesFilter;
114
126
  static ɵfac: i0.ɵɵFactoryDeclaration<DataFetchingService, never>;
115
127
  static ɵprov: i0.ɵɵInjectableDeclaration<DataFetchingService>;
116
128
  }
@@ -1 +1 @@
1
- {"version":3,"file":"data-fetching.service.d.ts","sourceRoot":"","sources":["../../../../datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAEL,cAAc,EAOd,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAsB,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EAExB,YAAY,EACZ,kCAAkC,EAClC,YAAY,EACZ,qBAAqB,EAGtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAc,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAE3D,qBAGa,mBAAmB;IAE5B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,SAAS;IACjB,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,YAAY;gBAJZ,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,SAAS,EAAE,YAAY,EACvB,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IAGpC;;;;;;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;;;;;;;OAeG;IACH,OAAO,CAAC,wBAAwB;yCAzfrB,mBAAmB;6CAAnB,mBAAmB;CAsgB/B"}
1
+ {"version":3,"file":"data-fetching.service.d.ts","sourceRoot":"","sources":["../../../../datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/data-fetching.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,OAAO,EAEP,OAAO,EACP,aAAa,EACb,kBAAkB,EACnB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAsB,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,YAAY,EACZ,kCAAkC,EAClC,YAAY,EACZ,qBAAqB,EAGtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;;AAE3D,qBAGa,mBAAmB;IAE5B,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,YAAY;gBAHZ,YAAY,EAAE,YAAY,EAC1B,kBAAkB,EAAE,kBAAkB,EACtC,gBAAgB,EAAE,gBAAgB,EAClC,YAAY,EAAE,YAAY;IAGpC;;;;;;;;OAQG;IACG,2BAA2B,CAC/B,YAAY,EAAE,YAAY,GACzB,OAAO,CAAC,wBAAwB,EAAE,CAAC;IA4CtC;;;;;;;;;OASG;IACH,uBAAuB,CACrB,mBAAmB,EAAE,OAAO,EAC5B,qBAAqB,CAAC,EAAE,MAAM,EAC9B,wBAAwB,CAAC,EAAE,MAAM,EACjC,mBAAmB,CAAC,EAAE,MAAM,EAC5B,qCAAqC,CAAC,EAAE,MAAM,GAC7C,MAAM;IAuCT;;;;;;;;;;;;;;;OAeG;IACH,wBAAwB,CAAC,O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E,YAAY,UAAO,GAAG,MAAM;IAc7E;;;;;;;;;OASG;IACG,eAAe,CACnB,SAAS,EAAE,aAAa,EACxB,YAAY,UAAQ,GACnB,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS;IAyBxC;;;;;;;;;;OAUG;YACW,gDAAgD;YAmBhD,8BAA8B;YAyB9B,iCAAiC;IA4B/C,OAAO,CAAC,mBAAmB;yCAxfhB,mBAAmB;6CAAnB,mBAAmB;CAqhB/B"}
@@ -1,7 +1,7 @@
1
1
  import { EventEmitter, InjectionToken, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FormBuilder, ValidatorFn } from '@angular/forms';
3
- import { AggregationOption, AggregationOptionStatus, GainsightService } from '@c8y/ngx-components';
4
- import { DatapointsExceedingLimit, ExportConfig, ExportData, FileExportConfig, FileGenerator, FileTypeMetadata } from '../../datapoints-export-selector.model';
3
+ import { AggregationOption, AggregationOptionStatus, AggregationService, GainsightService } from '@c8y/ngx-components';
4
+ import { DatapointsExceedingLimit, DateFetchConfig, ExportConfig, ExportData, FileExportConfig, FileGenerator, FileTypeMetadata } from '../../datapoints-export-selector.model';
5
5
  import { DataFetchingService } from './data-fetching.service';
6
6
  import { DataProcessingService } from './data-processing.service';
7
7
  import { DatapointsExportSelectorFileExporterService } from './datapoints-export-selector-file-exporter.service';
@@ -9,9 +9,10 @@ import * as i0 from "@angular/core";
9
9
  export declare const FILE_GENERATORS: InjectionToken<FileGenerator[]>;
10
10
  export declare const dateRangeValidator: ValidatorFn;
11
11
  export declare class DatapointsExportSelectorFileExporterComponent implements OnInit, OnDestroy {
12
+ private aggregationService;
12
13
  private datapointsExportModalService;
13
- private datapointsExportSelectorService;
14
14
  private datapointsExportSelectorFileExporterService;
15
+ private dataFetchingService;
15
16
  private formBuilder;
16
17
  private generators;
17
18
  private gainsightService;
@@ -98,7 +99,7 @@ export declare class DatapointsExportSelectorFileExporterComponent implements On
98
99
  dynamicFilesTypeMetadata: {
99
100
  [key: string]: FileTypeMetadata;
100
101
  };
101
- constructor(datapointsExportModalService: DataProcessingService, datapointsExportSelectorService: DataFetchingService, datapointsExportSelectorFileExporterService: DatapointsExportSelectorFileExporterService, formBuilder: FormBuilder, generators: FileGenerator[], gainsightService: GainsightService);
102
+ constructor(aggregationService: AggregationService, datapointsExportModalService: DataProcessingService, datapointsExportSelectorFileExporterService: DatapointsExportSelectorFileExporterService, dataFetchingService: DataFetchingService, formBuilder: FormBuilder, generators: FileGenerator[], gainsightService: GainsightService);
102
103
  setFilesType(generators: FileGenerator[]): void;
103
104
  ngOnInit(): Promise<void>;
104
105
  ngOnDestroy(): void;
@@ -132,12 +133,12 @@ export declare class DatapointsExportSelectorFileExporterComponent implements On
132
133
  * @returns A Promise that resolves to a Blob representing the exported file.
133
134
  */
134
135
  exportSeriesFile(fileType: string): Promise<Blob>;
135
- onAggregationChange(aggregation: AggregationOption): Promise<void>;
136
+ onAggregationChange(newAggregation: AggregationOption): Promise<void>;
136
137
  onDateFromChange(updatedDate: string): void;
137
138
  onDateToChange(updatedDate: string): void;
138
- updateDateAndFetchData(dateType: 'dateFrom' | 'dateTo', updatedDate: string): Promise<void>;
139
+ updateDateAndFetchData(dateType: 'dateFrom' | 'dateTo', dateInfo: DateFetchConfig): Promise<void>;
139
140
  onExportTypeChange(exportType: string): Promise<void>;
140
- private updateDisabledAggregationOptionsState;
141
+ private updateDisabledAggregationOptions;
141
142
  private createForm;
142
143
  private preparePreview;
143
144
  private handleDateSelectorChanges;
@@ -151,10 +152,29 @@ export declare class DatapointsExportSelectorFileExporterComponent implements On
151
152
  private calculateDatapointCounts;
152
153
  private storeInitialChangeableConfig;
153
154
  private loadInitialChangeableConfig;
154
- private updateExportConfigAndFetchData;
155
+ private loadExportData;
155
156
  private updateDownloadButtonState;
156
157
  private resetFullExportRelatedProperties;
157
158
  private getInitialSelection;
159
+ /**
160
+ * Adjusts both "from" and "to" dates when either is updated:
161
+ * - Resets seconds to 00 even when only one date changes
162
+ * - Prevents persisting hidden seconds ≠ 00 from initial load
163
+ * - Triggers data fetch
164
+ *
165
+ * Example:
166
+ * When user changes "from" date:
167
+ * Input: startDate = "2024-03-26 13:30:45", endDate = "2024-03-27 15:20:45"
168
+ * Result: startDate -> "2024-03-26 14:30:00", endDate -> "2024-03-27 15:20:00"
169
+ *
170
+ * When user changes "to" date:
171
+ * Input: startDate = "2024-03-26 14:30:45", endDate = "2024-03-27 15:20:45"
172
+ * Result: startDate -> "2024-03-26 14:30:00", endDate -> "2024-03-27 16:20:00"
173
+ *
174
+ * @param startDate - The "start" date to be adjusted.
175
+ * @param endDate - The "end" date to be adjusted.
176
+ */
177
+ private update;
158
178
  private triggerGainsightDownloadEvent;
159
179
  static ɵfac: i0.ɵɵFactoryDeclaration<DatapointsExportSelectorFileExporterComponent, never>;
160
180
  static ɵcmp: i0.ɵɵComponentDeclaration<DatapointsExportSelectorFileExporterComponent, "c8y-datapoints-export-selector-file-exporter", never, { "exportConfig": { "alias": "exportConfig"; "required": false; }; }, { "onDownloadButtonStateChange": "onDownloadButtonStateChange"; }, never, never, true, never>;
@@ -1 +1 @@
1
- {"version":3,"file":"datapoints-export-selector-file-exporter.component.d.ts","sourceRoot":"","sources":["../../../../datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,YAAY,EAEZ,cAAc,EAEd,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEL,WAAW,EAIX,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,iBAAiB,EACjB,uBAAuB,EAEvB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAGL,wBAAwB,EAIxB,YAAY,EACZ,UAAU,EACV,gBAAgB,EAChB,aAAa,EACb,gBAAgB,EAIjB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAy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AM,GAAG,IAAI;IAI3C,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAInC,sBAAsB,CAC1B,QAAQ,EAAE,UAAU,GAAG,QAAQ,EAC/B,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,IAAI,CAAC;IAWV,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB3D,OAAO,CAAC,qCAAqC;IAS7C,OAAO,CAAC,UAAU;IAsBlB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,yBAAyB;IA0BjC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,8BAA8B;IAQtC,OAAO,CAAC,4BAA4B;IAQpC,OAAO,CAAC,2BAA2B;IAMnC,OAAO,CAAC,qBAAqB;IAgB7B,OAAO,CAAC,mCAAmC;YAgB7B,sDAAsD;IAiCpE,OAAO,CAAC,wBAAwB;IAuBhC,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,2BAA2B;YASrB,8BAA8B;IAgB5C,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,gCAAgC;IAKxC,OAAO,CAAC,mBAAmB;IAuB3B,OAAO,CAAC,6BAA6B;yCArnB1B,6CAA6C;2CAA7C,6CAA6C;CAmpBzD"}
1
+ {"version":3,"file":"datapoints-export-selector-file-exporter.component.d.ts","sourceRoot":"","sources":["../../../../datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,YAAY,EAEZ,cAAc,EAEd,SAAS,EACT,MAAM,EAEP,MAAM,eAAe,CAAC;AAEvB,OAAO,EAEL,WAAW,EAIX,WAAW,EACZ,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAElB,gBAAgB,EACjB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAGL,wBAAwB,EAGxB,eAAe,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;;;;;;;;OAUG;IACG,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAcjD,mBAAmB,CAAC,cAAc,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC;IAiB3E,gBAAgB,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAI3C,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,IAAI;IAInC,sBAAsB,CAC1B,QAAQ,EAAE,UAAU,GAAG,QAAQ,EAC/B,QAAQ,EAAE,eAAe,GACxB,OAAO,CAAC,IAAI,CAAC;IAeV,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAqB3D,OAAO,CAAC,gCAAgC;IAOxC,OAAO,CAAC,UAAU;IAsBlB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,yBAAyB;IA0BjC,OAAO,CAAC,uBAAuB;IAc/B,OAAO,CAAC,8BAA8B;IAQtC,OAAO,CAAC,4BAA4B;IAQpC,OAAO,CAAC,2BAA2B;IAMnC,OAAO,CAAC,qBAAqB;IAgB7B,OAAO,CAAC,mCAAmC;YAgB7B,sDAAsD;IAiCpE,OAAO,CAAC,wBAAwB;IAuBhC,OAAO,CAAC,4BAA4B;IASpC,OAAO,CAAC,2BAA2B;YASrB,cAAc;IAiB5B,OAAO,CAAC,yBAAyB;IAUjC,OAAO,CAAC,gCAAgC;IAKxC,OAAO,CAAC,mBAAmB;IAuB3B;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,MAAM;IAYd,OAAO,CAAC,6BAA6B;yCAhqB1B,6CAA6C;2CAA7C,6CAA6C;CA8rBzD"}
@@ -1,10 +1,9 @@
1
- import { AggregationOption, AggregationOptionStatus, AggregationService, AlertService } from '@c8y/ngx-components';
1
+ import { AlertService } from '@c8y/ngx-components';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { DataToExport, DataToExportWithBackendCreatedFile, MergedExportDetails, TimeRangeInterval } from '../../datapoints-export-selector.model';
3
+ import { DataToExport, DataToExportWithBackendCreatedFile, MergedExportDetails } from '../../datapoints-export-selector.model';
4
4
  import { DataProcessingService } from './data-processing.service';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class DatapointsExportSelectorFileExporterService {
7
- private aggregationService;
8
7
  private alertService;
9
8
  private datapointsExportSelectorDataProcessingService;
10
9
  private translateService;
@@ -16,55 +15,7 @@ export declare class DatapointsExportSelectorFileExporterService {
16
15
  * Cached data is reused when both CSV and Excel files were selected for export, used for raw files.
17
16
  */
18
17
  private cachedRawExportSeriesData;
19
- constructor(aggregationService: AggregationService, alertService: AlertService, datapointsExportSelectorDataProcessingService: DataProcessingService, translateService: TranslateService);
20
- /**
21
- * Determines the interval between two dates.
22
- *
23
- * @param dateFrom - The starting date in ISO 8601 string format.
24
- * @param dateTo - The ending date in ISO 8601 string format.
25
- * @returns The time range interval unit.
26
- */
27
- determineInterval(dateFrom: string, dateTo: string): TimeRangeInterval;
28
- /**
29
- * Updates the disabled state of aggregation options based on the current value of the time interval form control.
30
- *
31
- * This method:
32
- * - Retrieves the current date range from the form controls.
33
- * - Determines the current time interval based on the date range.
34
- * - Sets the disabled state for each aggregation option based on predefined conditions.
35
- *
36
- * The disabled state is stored in the `disabledAggregationOptions` object,
37
- * where the key is the aggregation value and the value is a boolean indicating whether the option should be disabled.
38
- *
39
- * The `disabledConditions` object defines the conditions under which each aggregation option should be disabled.
40
- *
41
- * @param dateFrom - The value of the "date from" input.
42
- * @param dateTo - The value of the "date to" input.
43
- * @param disabledAggregationOptions - The object containing the disabled state of aggregation options.
44
- * @returns The updated object with the disabled state of aggregation options.
45
- */
46
- updateDisabledStateOfAggregationOptionEntries(dateFrom: string, dateTo: string, disabledAggregationOptions: AggregationOptionStatus): AggregationOptionStatus;
47
- /**
48
- * Sets the aggregation control to the first available (non-disabled) option if the current option is disabled.
49
- *
50
- * This method:
51
- * - Retrieves the current value of the aggregation control.
52
- * - Checks if the current aggregation option is disabled.
53
- * - If the current option is disabled, sets the control to the first available (non-disabled) option based on the following order:
54
- * - If the current value is `DAILY`, it switches to `HOURLY` if it's not disabled, otherwise to `MINUTELY` if `HOURLY` is also disabled.
55
- * - If the current value is `HOURLY`, it switches to `MINUTELY` if it's not disabled.
56
- * - If all options are disabled, it sets the value to `NONE`.
57
- *
58
- * The disabled state is stored in the `disabledAggregationOptions` object,
59
- * where the key is the aggregation value and the value is a boolean indicating whether the option is disabled.
60
- *
61
- * The `AGGREGATION_VALUES` object defines the possible aggregation values.
62
- *
63
- * @param aggregationValue - The value of the current aggregation option.
64
- * @param disabledAggregationOptions - An object containing disabled aggregation options.
65
- * @returns The new aggregation option to be set.
66
- */
67
- setToFirstAvailableAggregationOptionIfCurrentIsDisabled(aggregationValue: string, disabledAggregationOptions: AggregationOptionStatus): AggregationOption;
18
+ constructor(alertService: AlertService, datapointsExportSelectorDataProcessingService: DataProcessingService, translateService: TranslateService);
68
19
  getMeasurementExportedDataBlob(extension: string, dataToExport: DataToExportWithBackendCreatedFile[]): Promise<Blob | null>;
69
20
  getSeriesExportedDataBlob(fileType: string, dataToExport: DataToExport[], mergedExportDetails: MergedExportDetails): Promise<Blob | null>;
70
21
  cleanupCachedData(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"datapoints-export-selector-file-exporter.service.d.ts","sourceRoot":"","sources":["../../../../datapoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,YAAY,EAEb,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,YAAY,EACZ,kCAAkC,EAGlC,mBAAmB,EAGnB,iBAAiB,EAClB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;AAGl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apoints-export-selector/datapoints-export-selector-modal/datapoints-export-selector-file-exporter/datapoints-export-selector-file-exporter.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAW,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EACL,YAAY,EACZ,kCAAkC,EAGlC,mBAAmB,EAEpB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;;AAElE,qBAGa,2CAA2C;IAWpD,OAAO,CAAC,YAAY;IACpB,OAAO,CAAC,6CAA6C;IACrD,OAAO,CAAC,gBAAgB;IAZ1B;;OAEG;IACH,OAAO,CAAC,wCAAwC,CAAe;IAC/D;;OAEG;IACH,OAAO,CAAC,yBAAyB,CAAiB;gBAGxC,YAAY,EAAE,YAAY,EAC1B,6CAA6C,EAAE,qBAAqB,EACpE,gBAAgB,EAAE,gBAAgB;IAGtC,8BAA8B,CAClC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,kCAAkC,EAAE,GACjD,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAajB,yBAAyB,CAC7B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,YAAY,EAAE,EAC5B,mBAAmB,EAAE,mBAAmB,GACvC,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;IAcvB,iBAAiB,IAAI,IAAI;IAKzB,OAAO,CAAC,yBAAyB;IAOjC,OAAO,CAAC,yBAAyB;IAWjC,OAAO,CAAC,iCAAiC;IAwBzC;;;;;;;;;OASG;YACW,iBAAiB;IAgB/B,OAAO,CAAC,4CAA4C;yCA3HzC,2CAA2C;6CAA3C,2CAA2C;CAwIvD"}
@@ -1,5 +1,5 @@
1
1
  import { AggregationOption } from '@c8y/ngx-components';
2
- import type { Measurement } from './datapoints-export-selector-modal/datapoints-export-selector-file-exporter/utils.service';
2
+ import { Measurement } from './datapoints-export-selector-modal/datapoints-export-selector-file-exporter/utils.service';
3
3
  import { SupportedIconsSuggestions } from '@c8y/ngx-components/icon-selector/icons';
4
4
  export declare const HAS_ERROR = "has-error";
5
5
  export declare const MEASUREMENTS_PREVIEW_ITEMS_LIMIT = 5;
@@ -30,6 +30,10 @@ export interface DatapointsExceedingLimit {
30
30
  datapointDetail: DatapointDetails;
31
31
  totalElements: number;
32
32
  }
33
+ export interface DateFetchConfig {
34
+ date: string;
35
+ shouldFetchData: boolean;
36
+ }
33
37
  export interface IDataTransformer {
34
38
  transformToMergedFormat(data: ExportData[]): TimeSeriesColumnData;
35
39
  }
@@ -174,11 +178,6 @@ export type MinMaxValues = {
174
178
  min: number;
175
179
  max: number;
176
180
  };
177
- /**
178
- * Represents supported interval units and also
179
- * the possible periods of time for predefined ranges.
180
- */
181
- export type TimeRangeInterval = keyof typeof TIME_RANGE_INTERVAL_UNITS_VALUES;
182
181
  /**
183
182
  * Represents a merged export column header,
184
183
  * e.g. 'Temperature - 5 -> c8y_Temperature.T [ºC] (max)'
@@ -221,14 +220,6 @@ export declare const FILE_COMPRESSION_TYPES_VALUES: {
221
220
  readonly store: "STORE";
222
221
  readonly deflate: "DEFLATE";
223
222
  };
224
- export declare const TIME_RANGE_INTERVAL_UNITS_VALUES: {
225
- readonly minutes: "minutes";
226
- readonly hours: "hours";
227
- readonly days: "days";
228
- readonly weeks: "weeks";
229
- readonly months: "months";
230
- readonly custom: "custom";
231
- };
232
223
  export declare const PRODUCT_EXPERIENCE_DATAPOINTS_EXPORT_SELECTOR: {
233
224
  readonly EVENTS: {
234
225
  readonly EXPORT_SELECTOR: "exportSelector";