@m4l/gclick 0.4.7-beta-feature-671-shared-reports-viewer-mf.0 → 0.4.7

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 (205) hide show
  1. package/@types/constants.d.ts +1 -26
  2. package/@types/constants.d.ts.map +1 -1
  3. package/@types/deviceData.d.ts +1 -134
  4. package/@types/deviceData.d.ts.map +1 -1
  5. package/@types/general.d.ts +1 -21
  6. package/@types/general.d.ts.map +1 -1
  7. package/@types/index.d.ts +2 -2
  8. package/@types/index.d.ts.map +1 -1
  9. package/@types/vpts.d.ts +1 -70
  10. package/@types/vpts.d.ts.map +1 -1
  11. package/components/Device/constants.d.ts +1 -1
  12. package/components/Device/constants.d.ts.map +1 -1
  13. package/components/Device/helpers/helperDeviceStatus.d.ts +3 -3
  14. package/components/Device/helpers/helperDeviceStatus.d.ts.map +1 -1
  15. package/components/Device/helpers/helperDeviceStatus.js +2 -2
  16. package/components/Device/helpers.d.ts +4 -4
  17. package/components/Device/helpers.d.ts.map +1 -1
  18. package/components/Device/helpers.js +1 -1
  19. package/components/Device/hooks/constants.d.ts +1 -1
  20. package/components/Device/hooks/constants.d.ts.map +1 -1
  21. package/components/Device/hooks/constants.js +1 -1
  22. package/components/Device/types.d.ts +2 -2
  23. package/components/Device/types.d.ts.map +1 -1
  24. package/components/DeviceLabel/types.d.ts +5 -5
  25. package/components/DeviceLabel/types.d.ts.map +1 -1
  26. package/components/DeviceStatus/types.d.ts +1 -1
  27. package/components/DeviceStatus/types.d.ts.map +1 -1
  28. package/components/ReportsViewer/ReportsViewer.d.ts.map +1 -1
  29. package/components/ReportsViewer/ReportsViewer.js +8 -19
  30. package/components/ReportsViewer/contexts/ReportsViewerContext/index.js +14 -14
  31. package/components/ReportsViewer/contexts/ReportsViewerContext/types.d.ts +1 -5
  32. package/components/ReportsViewer/contexts/ReportsViewerContext/types.d.ts.map +1 -1
  33. package/components/ReportsViewer/helpers/flattenAndTransformRows/index.js +9 -9
  34. package/components/ReportsViewer/helpers/parseDataGridSection/index.d.ts.map +1 -1
  35. package/components/ReportsViewer/helpers/parseDataGridSection/index.js +42 -70
  36. package/components/ReportsViewer/helpers/parseTreeDataGridSection/index.d.ts.map +1 -1
  37. package/components/ReportsViewer/helpers/parseTreeDataGridSection/index.js +51 -54
  38. package/components/ReportsViewer/helpers/transformRow/index.d.ts +1 -6
  39. package/components/ReportsViewer/helpers/transformRow/index.d.ts.map +1 -1
  40. package/components/ReportsViewer/helpers/transformRow/index.js +9 -37
  41. package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.d.ts.map +1 -1
  42. package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.js +32 -33
  43. package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.d.ts.map +1 -1
  44. package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.js +26 -26
  45. package/components/ReportsViewer/index.d.ts +0 -1
  46. package/components/ReportsViewer/index.d.ts.map +1 -1
  47. package/components/ReportsViewer/subcomponents/SectionRenderer/DataGridSectionRenderer/DataGridSectionRenderer.js +5 -5
  48. package/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.d.ts.map +1 -1
  49. package/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.js +16 -16
  50. package/components/ReportsViewer/types.d.ts +6 -69
  51. package/components/ReportsViewer/types.d.ts.map +1 -1
  52. package/index.d.ts +0 -4
  53. package/index.d.ts.map +1 -1
  54. package/index.js +148 -203
  55. package/package.json +3 -3
  56. package/utils/getHdopPresentation/constants.d.ts +12 -0
  57. package/utils/getHdopPresentation/constants.d.ts.map +1 -0
  58. package/utils/getHdopPresentation/constants.js +17 -0
  59. package/utils/getHdopPresentation/getHdopPresentation.d.ts +7 -0
  60. package/utils/getHdopPresentation/getHdopPresentation.d.ts.map +1 -0
  61. package/utils/getHdopPresentation/getHdopPresentation.js +12 -0
  62. package/utils/getHdopPresentation/index.d.ts +4 -0
  63. package/utils/getHdopPresentation/index.d.ts.map +1 -0
  64. package/utils/getHdopPresentation/types.d.ts +13 -0
  65. package/utils/getHdopPresentation/types.d.ts.map +1 -0
  66. package/utils/getPrecisionFromHdop/constants.d.ts +8 -13
  67. package/utils/getPrecisionFromHdop/constants.d.ts.map +1 -1
  68. package/utils/getPrecisionFromHdop/constants.js +9 -68
  69. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts +4 -27
  70. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts.map +1 -1
  71. package/utils/getPrecisionFromHdop/getPrecisionFromHdop.js +6 -45
  72. package/utils/getPrecisionFromHdop/types.d.ts +13 -42
  73. package/utils/getPrecisionFromHdop/types.d.ts.map +1 -1
  74. package/utils/getVptUpdatedAtWithGuard.d.ts +3 -2
  75. package/utils/getVptUpdatedAtWithGuard.d.ts.map +1 -1
  76. package/utils/getVptValueWithGuard.d.ts +2 -7
  77. package/utils/getVptValueWithGuard.d.ts.map +1 -1
  78. package/utils/index.d.ts +1 -1
  79. package/utils/index.d.ts.map +1 -1
  80. package/@types/constants.js +0 -6
  81. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts +0 -8
  82. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts.map +0 -1
  83. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +0 -38
  84. package/contexts/RealTimeConsumerContext/constants.d.ts +0 -4
  85. package/contexts/RealTimeConsumerContext/constants.d.ts.map +0 -1
  86. package/contexts/RealTimeConsumerContext/constants.js +0 -5
  87. package/contexts/RealTimeConsumerContext/index.d.ts +0 -4
  88. package/contexts/RealTimeConsumerContext/index.d.ts.map +0 -1
  89. package/contexts/RealTimeConsumerContext/store.d.ts +0 -7
  90. package/contexts/RealTimeConsumerContext/store.d.ts.map +0 -1
  91. package/contexts/RealTimeConsumerContext/store.helpers.d.ts +0 -26
  92. package/contexts/RealTimeConsumerContext/store.helpers.d.ts.map +0 -1
  93. package/contexts/RealTimeConsumerContext/store.helpers.js +0 -44
  94. package/contexts/RealTimeConsumerContext/store.js +0 -89
  95. package/contexts/RealTimeConsumerContext/types.d.ts +0 -69
  96. package/contexts/RealTimeConsumerContext/types.d.ts.map +0 -1
  97. package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts +0 -9
  98. package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts.map +0 -1
  99. package/contexts/RealTimeProducerContext/RealTimeProducerContext.js +0 -14
  100. package/contexts/RealTimeProducerContext/constants.d.ts +0 -7
  101. package/contexts/RealTimeProducerContext/constants.d.ts.map +0 -1
  102. package/contexts/RealTimeProducerContext/constants.js +0 -4
  103. package/contexts/RealTimeProducerContext/hostRuntime.d.ts +0 -45
  104. package/contexts/RealTimeProducerContext/hostRuntime.d.ts.map +0 -1
  105. package/contexts/RealTimeProducerContext/hostRuntime.js +0 -47
  106. package/contexts/RealTimeProducerContext/index.d.ts +0 -17
  107. package/contexts/RealTimeProducerContext/index.d.ts.map +0 -1
  108. package/contexts/RealTimeProducerContext/runtime.d.ts +0 -24
  109. package/contexts/RealTimeProducerContext/runtime.d.ts.map +0 -1
  110. package/contexts/RealTimeProducerContext/runtime.js +0 -22
  111. package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.d.ts +0 -6
  112. package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.d.ts.map +0 -1
  113. package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.js +0 -20
  114. package/contexts/RealTimeProducerContext/runtimeRegistry.d.ts +0 -8
  115. package/contexts/RealTimeProducerContext/runtimeRegistry.d.ts.map +0 -1
  116. package/contexts/RealTimeProducerContext/runtimeRegistry.js +0 -10
  117. package/contexts/RealTimeProducerContext/runtimeRegistry.shared.d.ts +0 -15
  118. package/contexts/RealTimeProducerContext/runtimeRegistry.shared.d.ts.map +0 -1
  119. package/contexts/RealTimeProducerContext/runtimeRegistry.shared.js +0 -19
  120. package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.d.ts +0 -8
  121. package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.d.ts.map +0 -1
  122. package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.js +0 -10
  123. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +0 -2
  124. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts.map +0 -1
  125. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts +0 -2
  126. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts.map +0 -1
  127. package/contexts/RealTimeProducerContext/sourceDataMechanisms/atmosphereFactory.d.ts +0 -2
  128. package/contexts/RealTimeProducerContext/sourceDataMechanisms/atmosphereFactory.d.ts.map +0 -1
  129. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts +0 -2
  130. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts.map +0 -1
  131. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.d.ts +0 -13
  132. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.d.ts.map +0 -1
  133. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.js +0 -127
  134. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.d.ts +0 -134
  135. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.d.ts.map +0 -1
  136. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.js +0 -113
  137. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/catalog.d.ts +0 -9
  138. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/catalog.d.ts.map +0 -1
  139. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +0 -1137
  140. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts.map +0 -1
  141. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +0 -26
  142. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts +0 -43
  143. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts.map +0 -1
  144. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +0 -286
  145. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_civic_loop_pm.json.d.ts +0 -3448
  146. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_civic_loop_pm.json.js +0 -35
  147. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_intermedia_loop_pm.json.d.ts +0 -5170
  148. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_intermedia_loop_pm.json.js +0 -35
  149. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_loop_am.json.d.ts +0 -4232
  150. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_loop_am.json.js +0 -35
  151. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_sur_loop_am.json.d.ts +0 -4526
  152. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_sur_loop_am.json.js +0 -35
  153. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.d.ts +0 -14
  154. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.d.ts.map +0 -1
  155. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.d.ts +0 -61
  156. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.d.ts.map +0 -1
  157. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.js +0 -52
  158. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.js +0 -13
  159. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +0 -10
  160. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts.map +0 -1
  161. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +0 -46
  162. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +0 -34
  163. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts.map +0 -1
  164. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +0 -61
  165. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.d.ts +0 -229
  166. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.d.ts.map +0 -1
  167. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.js +0 -404
  168. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.d.ts +0 -197
  169. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.d.ts.map +0 -1
  170. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.js +0 -149
  171. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routeSeeds.d.ts +0 -131
  172. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routeSeeds.d.ts.map +0 -1
  173. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.d.ts +0 -104
  174. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.d.ts.map +0 -1
  175. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.js +0 -286
  176. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.d.ts +0 -379
  177. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.d.ts.map +0 -1
  178. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.js +0 -193
  179. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.d.ts +0 -43
  180. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.d.ts.map +0 -1
  181. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.js +0 -780
  182. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts +0 -13
  183. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts.map +0 -1
  184. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +0 -27
  185. package/contexts/RealTimeProducerContext/store.d.ts +0 -7
  186. package/contexts/RealTimeProducerContext/store.d.ts.map +0 -1
  187. package/contexts/RealTimeProducerContext/store.helpers.d.ts +0 -21
  188. package/contexts/RealTimeProducerContext/store.helpers.d.ts.map +0 -1
  189. package/contexts/RealTimeProducerContext/types.d.ts +0 -369
  190. package/contexts/RealTimeProducerContext/types.d.ts.map +0 -1
  191. package/contexts/index.d.ts +0 -4
  192. package/contexts/index.d.ts.map +0 -1
  193. package/hooks/index.d.ts +0 -3
  194. package/hooks/index.d.ts.map +0 -1
  195. package/hooks/useRealTimeConsumer/index.d.ts +0 -7
  196. package/hooks/useRealTimeConsumer/index.d.ts.map +0 -1
  197. package/hooks/useRealTimeConsumer/index.js +0 -13
  198. package/hooks/useRealTimeProducer/index.d.ts +0 -7
  199. package/hooks/useRealTimeProducer/index.d.ts.map +0 -1
  200. package/hooks/useRealTimeProducer/index.js +0 -13
  201. package/utils/getVptUpdatedAtWithGuard.js +0 -11
  202. package/utils/getVptValueWithGuard.js +0 -12
  203. package/utils/realtimePerformanceDebug.d.ts +0 -411
  204. package/utils/realtimePerformanceDebug.d.ts.map +0 -1
  205. package/utils/realtimePerformanceDebug.js +0 -279
@@ -1,27 +1,2 @@
1
- export declare const BASE_SVG_COLOR = "#1E96DC";
2
- export declare enum GNSSEnumMotionStatus {
3
- off = 0,// - 0: apagado ( Ignición apagada velocidad 0)
4
- moving = 1,// - 1: en movimiento ( Ignición prendida )
5
- stopped = 2,// - 2: detenido ( Ignición prendida, motor apagado RPM en 0)
6
- stoppedRalenti = 3,// - 3: stopped en ralenti ( Ignición prendida, motor encendido RPM > 0)
7
- stoppedExcesiveRalenti = 4,// - 4:stopped en ralenti excesivo ( Ignición prendida, motor encendido RPM > 0)
8
- towing = 5,// - 5: remolcado
9
- powerSaving = 6,// - 6: En ahorro de energía
10
- maxSpeed = 7
11
- }
12
- export declare enum GNSSEnumSignal {
13
- reliable = 0,// - 0:Confiable
14
- acceptable = 1,// - 1:Aceptable
15
- noSignal = 2
16
- }
17
- export declare enum ADCPowerEnum {
18
- ok = 0,// - 0: Ok
19
- low = 1,// - 1: Low Batería baja
20
- lost = 2
21
- }
22
- export declare enum AdminStatusEnum {
23
- inactive = 0,// - 0: Inactivo
24
- active = 1,// - 1: Activo
25
- retired = 2
26
- }
1
+ export { ADCPowerEnum, AdminStatusEnum, BASE_SVG_COLOR, GNSSEnumMotionStatus, GNSSEnumSignal, } from '../../../../dist/packages/@m4l/gclick-realtime/contracts';
27
2
  //# sourceMappingURL=constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,YAAY,CAAC;AACxC,oBAAY,oBAAoB;IAC9B,GAAG,IAAA,CAAE,+CAA+C;IACpD,MAAM,IAAA,CAAE,2CAA2C;IACnD,OAAO,IAAA,CAAE,6DAA6D;IACtE,cAAc,IAAA,CAAE,yEAAyE;IACzF,sBAAsB,IAAA,CAAE,iFAAiF;IACzG,MAAM,IAAA,CAAE,iBAAiB;IACzB,WAAW,IAAA,CAAE,4BAA4B;IACzC,QAAQ,IAAA;CACT;AAGD,oBAAY,cAAc;IACxB,QAAQ,IAAA,CAAE,gBAAgB;IAC1B,UAAU,IAAA,CAAE,gBAAgB;IAC5B,QAAQ,IAAA;CACT;AAED,oBAAY,YAAY;IACtB,EAAE,IAAA,CAAE,UAAU;IACd,GAAG,IAAA,CAAE,wBAAwB;IAC7B,IAAI,IAAA;CACL;AAED,oBAAY,eAAe;IACzB,QAAQ,IAAA,CAAE,gBAAgB;IAC1B,MAAM,IAAA,CAAE,cAAc;IACtB,OAAO,IAAA;CACR"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,cAAc,GACf,MAAM,gCAAgC,CAAC"}
@@ -1,135 +1,2 @@
1
- import { Maybe } from '@m4l/core';
2
- import { HexColor } from '@m4l/graphics';
3
- import { GNSSEnumMotionStatus, GNSSEnumSignal } from './constants';
4
- import { OperationalRoles, PropertyValue, PropertyValueWithTrack } from './general';
5
- import { VPTMultiple, VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentModem, VPTSettingsDIX, VPTCurrentOWTempX, VPTSettingsModem, VPTCurrentIgnition, VPTCurrentDoX, VPTSettingsDoX } from './vpts';
6
- /**
7
- * Device-data shape received by GClick consumers.
8
- */
9
- export type DeviceDataGeofence = {
10
- id: number;
11
- name: string;
12
- inAt: Date;
13
- };
14
- export type DeviceDataPOI = {
15
- id: number;
16
- name: string;
17
- inAt: Date;
18
- };
19
- export type DeviceCurrentVPTGnss = {
20
- gnssAltitude: PropertyValue<number>;
21
- gnssCourse: PropertyValue<number>;
22
- gnssHdop: PropertyValue<number>;
23
- gnssLatitude: PropertyValue<number>;
24
- gnssLongitude: PropertyValue<number>;
25
- gnssSatellitesInUse: PropertyValue<number>;
26
- gnssSpeed: PropertyValue<number>;
27
- gnssAddress: PropertyValue<string>;
28
- gnssMotionStatus: PropertyValueWithTrack<GNSSEnumMotionStatus>;
29
- gnssSignal: PropertyValueWithTrack<GNSSEnumSignal>;
30
- gnssOdometer: PropertyValue<number>;
31
- geofences?: DeviceDataGeofence[];
32
- pois?: DeviceDataPOI[];
33
- };
34
- /**
35
- * Live telemetry payload received from the device.
36
- */
37
- export type DeviceCurrent = {
38
- reportProfiles?: {
39
- trackerEvents?: {
40
- modemLastEvent?: {
41
- date: string;
42
- };
43
- };
44
- };
45
- vpts?: {
46
- vptGnss?: DeviceCurrentVPTGnss;
47
- vptDiX?: VPTMultiple<VPTCurrentDIX>;
48
- vptDoX?: VPTMultiple<VPTCurrentDoX>;
49
- vptIgnition?: VPTCurrentIgnition;
50
- vptOWTempX?: VPTMultiple<VPTCurrentOWTempX>;
51
- vptModem?: VPTCurrentModem;
52
- vptADCPower?: VPTCurrentADCPower;
53
- };
54
- };
55
- /**
56
- * Legacy settings-level group payload still present while consumers migrate to root `department`.
57
- */
58
- export type SettingsGroup = {
59
- id: number;
60
- name: string;
61
- bgColor: HexColor;
62
- };
63
- /**
64
- * Root-level department payload that replaces the legacy settings-level group contract.
65
- */
66
- export type DeviceDepartment = {
67
- id: number;
68
- name: string;
69
- color: HexColor;
70
- };
71
- export type PropertyType = 'string' | 'number' | 'boolean' | 'date' | 'time' | 'datetime' | 'array' | 'object' | 'function' | 'symbol' | 'undefined' | 'null' | 'unknown';
72
- export type Property = {
73
- value: string;
74
- type: string;
75
- };
76
- export type Properties = {
77
- [key: string]: Property;
78
- };
79
- /**
80
- * Device settings received from the linked resource configuration.
81
- */
82
- export type DeviceSettings = {
83
- name: string;
84
- alias?: string;
85
- inTechinalOrder: PropertyValue<boolean>;
86
- adminStatus: PropertyValue<string>;
87
- active: boolean;
88
- blocked?: boolean;
89
- operationalRoles?: OperationalRoles;
90
- /**
91
- * Legacy compatibility field kept while consumers migrate to root `department`.
92
- */
93
- group?: Maybe<SettingsGroup>;
94
- iconBgColor?: HexColor;
95
- properties?: Properties;
96
- vpts?: {
97
- vptModem?: VPTSettingsModem;
98
- vptDix?: VPTMultiple<VPTSettingsDIX>;
99
- vptDoX?: VPTMultiple<VPTSettingsDoX>;
100
- };
101
- };
102
- /**
103
- * Device-icon metadata used by map-oriented presentation layers.
104
- */
105
- export type DeviceIcon = {
106
- id: string;
107
- iconId: string;
108
- };
109
- export type DeviceDataType = {
110
- resourceSerialId: number;
111
- /**
112
- * Optional icon identity payload used to resolve the device marker artwork.
113
- *
114
- * The icon id chooses the SVG shape only. Color treatment must come from
115
- * `color`, not from the icon id itself.
116
- */
117
- deviceIcon?: DeviceIcon;
118
- /**
119
- * Optional device-specific color used when recoloring authored SVG assets.
120
- */
121
- color?: HexColor;
122
- /**
123
- * Preferred root-level department payload used by the next-generation color policy.
124
- */
125
- department?: Maybe<DeviceDepartment>;
126
- current: DeviceCurrent;
127
- settings: DeviceSettings;
128
- consumerDecorators?: {
129
- statusDescription?: PropertyValue<string>;
130
- } & Record<string, PropertyValue<string>>;
131
- producerDecorators?: {
132
- [key: string]: PropertyValue<string>;
133
- };
134
- };
1
+ export type { DeviceCurrent, DeviceCurrentVPTGnss, DeviceDataType, DeviceDepartment, DeviceSettings, SettingsGroup, } from '../../../../dist/packages/@m4l/gclick-realtime/contracts';
135
2
  //# sourceMappingURL=deviceData.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"deviceData.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/deviceData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,cAAc,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AAEjM;;GAEG;AACH,MAAM,MAAM,kBA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KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,QAAQ,CAAC;IACvB,UAAU,CAAC,EAAC,UAAU,CAAC;IACvB,IAAI,CAAC,EAAE;QACH,QAAQ,CAAC,EAAE,gBAAgB,CAAC;QAE5B,MAAM,CAAC,EAAC,WAAW,CAAC,cAAc,CAAC,CAAC;QACpC,MAAM,CAAC,EAAC,WAAW,CAAC,cAAc,CAAC,CAAC;KACvC,CAAC;CACH,CAAA;AAGD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAA;AAGD,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IAMzB;;;;;OAKG;IACH,UAAU,CAAC,EAAC,UAAU,CAAC;IACvB;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,CAAC;IAErC,OAAO,EAAE,aAAa,CAAC;IACvB,QAAQ,EAAE,cAAc,CAAC;IACzB,kBAAkB,CAAC,EAAE;QACnB,iBAAiB,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;KAC3C,GAAG,MAAM,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC;IAC1C,kBAAkB,CAAC,EAAE;QACnB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC;KACtC,CAAC;CACH,CAAA"}
1
+ {"version":3,"file":"deviceData.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/deviceData.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,GACd,MAAM,gCAAgC,CAAC"}
@@ -1,22 +1,2 @@
1
- import { GNSSEnumMotionStatus } from './constants';
2
- export type PropertyValueWithTrack<T> = {
3
- value: T;
4
- updatedAt?: string;
5
- };
6
- export type PropertyValue<T> = T;
7
- export type GNSSSatus = keyof typeof GNSSEnumMotionStatus;
8
- export type OperationalRole = {
9
- id: number;
10
- firstName: string;
11
- lastName: string;
12
- documentId?: string;
13
- mobile?: string;
14
- assignedAt: Date;
15
- };
16
- export type OperationalRoles = {
17
- driver: OperationalRole;
18
- crew: OperationalRole[];
19
- owner: OperationalRole;
20
- [key: string]: OperationalRole | OperationalRole[];
21
- };
1
+ export type { GNSSSatus, HexColor, Maybe, OperationalRole, OperationalRoles, PropertyValue, PropertyValueWithTrack, } from '../../../../dist/packages/@m4l/gclick-realtime/contracts';
22
2
  //# sourceMappingURL=general.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/general.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,MAAM,MAAM,sBAAsB,CAAC,CAAC,IAAI;IAAC,KAAK,EAAE,CAAC,CAAE;IAAC,SAAS,CAAC,EAAC,MAAM,CAAA;CAAC,CAAA;AACtE,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,CAAC;AACjC,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,oBAAoB,CAAC;AAE1D,MAAM,MAAM,eAAe,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,IAAI,CAAC;CAClB,CAAA;AAED,MAAM,MAAM,gBAAgB,GAAG;IAC7B,MAAM,EAAC,eAAe,CAAC;IACvB,IAAI,EAAC,eAAe,EAAE,CAAC;IACvB,KAAK,EAAE,eAAe,CAAC;IACvB,CAAC,GAAG,EAAE,MAAM,GAAG,eAAe,GAAG,eAAe,EAAE,CAAC;CACpD,CAAA"}
1
+ {"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/general.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,SAAS,EACT,QAAQ,EACR,KAAK,EACL,eAAe,EACf,gBAAgB,EAChB,aAAa,EACb,sBAAsB,GACvB,MAAM,gCAAgC,CAAC"}
package/@types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export type { DeviceCurrent, DeviceCurrentVPTGnss, DeviceDataType, DeviceDepartment, DeviceSettings, SettingsGroup, } from './deviceData';
2
- export { GNSSEnumMotionStatus, GNSSEnumSignal } from './constants';
1
+ export type { DeviceCurrent, DeviceCurrentVPTGnss, DeviceDataType, DeviceDepartment, DeviceSettings, SettingsGroup, } from '../../../../dist/packages/@m4l/gclick-realtime/contracts';
2
+ export { ADCPowerEnum, AdminStatusEnum, BASE_SVG_COLOR, GNSSEnumMotionStatus, GNSSEnumSignal, } from '../../../../dist/packages/@m4l/gclick-realtime/contracts';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,GACd,MAAM,cAAc,CAAC;AAEtB,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAG,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,aAAa,EACb,oBAAoB,EACpB,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,aAAa,GACd,MAAM,gCAAgC,CAAC;AAExC,OAAO,EACL,YAAY,EACZ,eAAe,EACf,cAAc,EACd,oBAAoB,EACpB,cAAc,GACf,MAAM,gCAAgC,CAAC"}
package/@types/vpts.d.ts CHANGED
@@ -1,71 +1,2 @@
1
- import { ADCPowerEnum } from './constants';
2
- import { PropertyValue, PropertyValueWithTrack } from './general';
3
- export type VPTMultiple<T> = {
4
- [key: string]: T;
5
- };
6
- export type VPTCurrentOWTempX = {
7
- owTempXStatus: PropertyValueWithTrack<boolean>;
8
- owTempXTemp: PropertyValueWithTrack<number>;
9
- };
10
- export type VPTCurrentDIX = {
11
- diXValue: PropertyValueWithTrack<boolean>;
12
- diXStatus: PropertyValueWithTrack<boolean>;
13
- };
14
- export type VPTCurrentDoX = {
15
- diXValue: PropertyValueWithTrack<boolean>;
16
- };
17
- export type VPTCurrentIgnition = {
18
- ignitionValue: PropertyValueWithTrack<boolean>;
19
- };
20
- export type VPTSettingsDIX = {
21
- name: string;
22
- alias?: string;
23
- pRdOpenTitle: string;
24
- pRdCloseTitle: string;
25
- /**
26
- * Ids de los iconos, que corresponden al parametro que se necesita para llamar el endpoint de icons
27
- */
28
- pIconId: string;
29
- pIconOpenId: string;
30
- pIconCloseId: string;
31
- };
32
- export type VPTSettingsDoX = {
33
- name: string;
34
- alias?: string;
35
- pRdOpenTitle: string;
36
- pRdCloseTitle: string;
37
- /**
38
- * Ids de los iconos, que corresponden al parametro que se necesita para llamar el endpoint de icons
39
- */
40
- pIconId: string;
41
- pIconOpenId: string;
42
- pIconCloseId: string;
43
- };
44
- export type VPTSettingsAVX = {
45
- name: string;
46
- alias?: string;
47
- alarmTime: number;
48
- magnitudeSymbol: string;
49
- lowerLimit: number;
50
- upperLimit: number;
51
- };
52
- export type VPTSettingsDIXS = {
53
- [key: number]: VPTSettingsDIX;
54
- };
55
- export type VPTCurrentADCPower = {
56
- mainStatus: PropertyValue<ADCPowerEnum>;
57
- mainVolt: PropertyValue<number>;
58
- backupVolt: PropertyValue<number>;
59
- backupStatus: PropertyValue<ADCPowerEnum>;
60
- backupChargeLevel: PropertyValue<number>;
61
- };
62
- export type VPTCurrentModem = {
63
- modemLastConnection: string;
64
- modemLastEvent: string;
65
- modemCsq: PropertyValue<number>;
66
- callActive: PropertyValue<boolean>;
67
- };
68
- export type VPTSettingsModem = {
69
- modemLineNumber?: string;
70
- };
1
+ export type { VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentDoX, VPTCurrentIgnition, VPTCurrentModem, VPTCurrentOWTempX, VPTMultiple, VPTSettingsAVX, VPTSettingsDIX, VPTSettingsDIXS, VPTSettingsDoX, VPTSettingsModem, } from '../../../../dist/packages/@m4l/gclick-realtime/contracts';
71
2
  //# sourceMappingURL=vpts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"vpts.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/vpts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAGlE,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,CAAC,GAAG,EAAC,MAAM,GAAI,CAAC,CAAC;CAClB,CAAA;AAID,MAAM,MAAM,iBAAiB,GAAG;IAC9B,aAAa,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAC/C,WAAW,EAAE,sBAAsB,CAAC,MAAM,CAAC,CAAC;CAC7C,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;IAC1C,SAAS,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CAC5C,CAAA;AAGD,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CAC3C,CAAA;AAGD,MAAM,MAAM,kBAAkB,GAAG;IAC/B,aAAa,EAAE,sBAAsB,CAAC,OAAO,CAAC,CAAC;CAChD,CAAA;AAID,MAAM,MAAM,cAAc,GAAG;IAC3B,IAAI,EAAE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AAC,CAAC;IAChC,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;CACpC,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA"}
1
+ {"version":3,"file":"vpts.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/vpts.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,kBAAkB,EAClB,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,cAAc,EACd,eAAe,EACf,cAAc,EACd,gBAAgB,GACjB,MAAM,gCAAgC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ChipColorOptions } from '@m4l/styles';
2
- import { GNSSEnumMotionStatus } from '../../@types/constants';
2
+ import { GNSSEnumMotionStatus } from '../../../../../dist/packages/@m4l/gclick-realtime/contracts';
3
3
  import { IconColorDeep } from '@m4l/components';
4
4
  export declare const COMPONENT_DEVICE_TEST_ID = "M4LDevice";
5
5
  export declare const COMPONET_DEVICE_KEY_COMPONENT = "M4LDevice";
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/Device/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,wBAAwB,cAAc,CAAC;AACpD,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,oBAAoB,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAC,aAAa,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/Device/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,eAAO,MAAM,wBAAwB,cAAc,CAAC;AACpD,eAAO,MAAM,6BAA6B,cAAc,CAAC;AAEzD,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,oBAAoB,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAC,aAAa,CAAC;IACpB,WAAW,EAAE,gBAAgB,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,8 +1,8 @@
1
- import { DeviceDataType } from '../../../@types';
1
+ import { DeviceDataType } from '../../../../../../dist/packages/@m4l/gclick-realtime/contracts';
2
2
  import { StatusDeviceData } from '../hooks/constants';
3
3
  /**
4
- * Hook encargado de memonizar y obtener el id del icono, el color y el label, y como usa speed para tomar decisiones,
5
- * tambien lo devuelve para ser usado en partes donde lo necesiten
4
+ * Resolve the device status icon id, color, and label metadata.
5
+ * The helper also returns speed-aware status data for callers that need it.
6
6
  */
7
7
  export declare const getDeviceStatusByData: (deviceData: DeviceDataType) => StatusDeviceData;
8
8
  //# sourceMappingURL=helperDeviceStatus.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"helperDeviceStatus.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/Device/helpers/helperDeviceStatus.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,OAAO,EAA0B,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,YAAY,cAAc,qBAoB/D,CAAC"}
1
+ {"version":3,"file":"helperDeviceStatus.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/Device/helpers/helperDeviceStatus.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,cAAc,EAAwB,MAAM,gCAAgC,CAAC;AAItF,OAAO,EAA0B,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE9E;;;GAGG;AACH,eAAO,MAAM,qBAAqB,GAAI,YAAY,cAAc,qBAoB/D,CAAC"}
@@ -1,6 +1,6 @@
1
- import { GNSSEnumMotionStatus as n } from "../../../@types/constants.js";
1
+ import { GNSSEnumMotionStatus as n } from "@m4l/gclick-realtime/contracts";
2
2
  import { DEVICE_STATUSES_CONFIG as e } from "../hooks/constants.js";
3
- import { getVptValueWithGuard as p } from "../../../utils/getVptValueWithGuard.js";
3
+ import { getVptValueWithGuard as p } from "@m4l/gclick-realtime/payload";
4
4
  const i = (r) => {
5
5
  const u = p(r?.current?.vpts?.vptGnss?.gnssMotionStatus, n.off), o = p(r?.current?.vpts?.vptGnss?.gnssCourse, 0), t = p(r?.current?.vpts?.vptGnss?.gnssSpeed, 0);
6
6
  let s;
@@ -1,14 +1,14 @@
1
- import { DeviceDataType } from '../../@types';
1
+ import { DeviceDataType } from '../../../../../dist/packages/@m4l/gclick-realtime/contracts';
2
2
  import { DeviceData } from './constants';
3
3
  import { Theme } from '@mui/material/styles';
4
4
  import { DeviceOwnerState } from './types';
5
5
  /**
6
- * Hook encargado de memonizar y obtener el id del icono, el color y el label, y como usa speed para tomar decisiones,
7
- * tambien lo devuelve para ser usado en partes donde lo necesiten
6
+ * Resolve the device label metadata from the current GNSS status snapshot.
7
+ * The helper also carries the selected status color data for downstream UI use.
8
8
  */
9
9
  export declare const getDeviceByData: (deviceData: DeviceDataType) => DeviceData;
10
10
  /**
11
- * Obtiene los colores del chip
11
+ * Resolve the final chip colors for the current device owner state.
12
12
  */
13
13
  export declare const getColors: (theme: Theme, ownerState: Partial<DeviceOwnerState>) => {
14
14
  colorText: string;
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/Device/helpers.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAI9C,OAAO,EAAG,UAAU,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,cAAc,KAAE,UAe3D,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,EAAE,YAAY,OAAO,CAAC,gBAAgB,CAAC;;;;;CAS5E,CAAC"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/Device/helpers.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,cAAc,EAAwB,MAAM,gCAAgC,CAAC;AAItF,OAAO,EAAG,UAAU,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAC3C;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,YAAY,cAAc,KAAE,UAe3D,CAAC;AAGF;;GAEG;AACH,eAAO,MAAM,SAAS,GAAI,OAAO,KAAK,EAAE,YAAY,OAAO,CAAC,gBAAgB,CAAC;;;;;CAS5E,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { getPropertyByString as c } from "@m4l/core";
2
- import { GNSSEnumMotionStatus as a } from "../../@types/constants.js";
2
+ import { GNSSEnumMotionStatus as a } from "@m4l/gclick-realtime/contracts";
3
3
  import { DEVICE_STATUSES_CONFIG as l } from "./hooks/constants.js";
4
4
  const m = (t) => {
5
5
  const s = t?.current?.vpts?.vptGnss?.gnssMotionStatus?.value || a.off, o = c(t, "settings.name", ""), n = c(t, "settings.alias", void 0);
@@ -1,5 +1,5 @@
1
1
  import { ChipColorOptions } from '@m4l/styles';
2
- import { GNSSEnumMotionStatus } from '../../../@types/constants';
2
+ import { GNSSEnumMotionStatus } from '../../../../../../dist/packages/@m4l/gclick-realtime/contracts';
3
3
  import { IconProps } from '@m4l/components';
4
4
  export type BaseStatusDeviceData = {
5
5
  id: GNSSEnumMotionStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/Device/hooks/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAGjE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,oBAAoB,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;IACpC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAO,sBAAsB,EAAG,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CA+DvF,CAAC"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../../../../packages/gclick/src/components/Device/hooks/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAG,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAGtE,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAG5C,MAAM,MAAM,oBAAoB,GAAG;IACjC,EAAE,EAAE,oBAAoB,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC;IACpC,WAAW,EAAE,gBAAgB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,GAAG;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,eAAO,MAAO,sBAAsB,EAAG,MAAM,CAAC,oBAAoB,EAAE,oBAAoB,CA+DvF,CAAC"}
@@ -1,4 +1,4 @@
1
- import { GNSSEnumMotionStatus as o } from "../../../@types/constants.js";
1
+ import { GNSSEnumMotionStatus as o } from "@m4l/gclick-realtime/contracts";
2
2
  import { MDS_DICTIONARY as e } from "../dictionary.js";
3
3
  import { DEVICE_ICONS as t } from "../icons.js";
4
4
  const s = {
@@ -1,7 +1,7 @@
1
1
  import { DeviceSlots } from './slots/slots';
2
2
  import { COMPONET_DEVICE_KEY_COMPONENT } from './constants';
3
3
  import { Theme } from '@mui/material/styles';
4
- import { DeviceDataType } from '../../@types';
4
+ import { DeviceDataType } from '../../../../../dist/packages/@m4l/gclick-realtime/contracts';
5
5
  import { M4LOverridesStyleRules, IconColorDeep } from '@m4l/components';
6
6
  import { ChipColorOptions, Sizes } from '@m4l/styles';
7
7
  export interface DeviceProps {
@@ -21,7 +21,7 @@ export type DeviceOwnerState = {
21
21
  size: Sizes;
22
22
  variant: 'withStatus' | 'withId';
23
23
  /**
24
- * Color compatible con chip para reestilar el typography
24
+ * Chip-compatible color used to restyle the typography.
25
25
  */
26
26
  color: IconColorDeep;
27
27
  palletColor?: ChipColorOptions;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/Device/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,6BAA6B,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,MAAM,WAAW,WAAW;IAC1B,OAAO,CAAC,EAAE,YAAY,GAAG,QAAQ,CAAC;IAClC,UAAU,EAAE,cAAc,CAAC;IAC3B,IAAI,CAAC,EAAE,KAAK,CAAC;CACd;AACD,MAAM,MAAM,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,GAAG,SAAS,CAAC,GAAG;IAAC,SAAS,CAAC,EAAC,OAAO,CAAA;CAAC,CAAC;AAChG,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,WAAW,EAAE,YAAY,CAAC,GAAG;IAAC,SAAS,CAAC,EAAC,OAAO,CAAA;CAAC,CAAC;AAC1F,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG;IAC7B,OAAO,EAAC,MAAM,CAAC;IACf,IAAI,EAAC,KAAK,CAAC;IACX,OAAO,EAAE,YAAY,GAAG,QAAQ,CAAC;IACjC;;OAEG;IACH,KAAK,EAAE,aAAa,CA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a,CAAC;IACrB,WAAW,CAAC,EAAE,gBAAgB,CAAC;CAChC,CAAC;AACF,MAAM,MAAM,YAAY,GAClB,sBAAsB,CAAC,eAAe,EAAE,OAAO,6BAA6B,EAAE,KAAK,CAAC,CAAE"}
@@ -1,23 +1,23 @@
1
1
  import { DeviceSlots } from './slots/slots';
2
2
  import { COMPONET_KEY_COMPONENT } from './constants';
3
3
  import { Theme } from '@mui/material/styles';
4
- import { DeviceDataType } from '../../@types';
4
+ import { DeviceDataType } from '../../../../../dist/packages/@m4l/gclick-realtime/contracts';
5
5
  import { M4LOverridesStyleRules } from '@m4l/components';
6
6
  export type DeviceProps = {
7
7
  /**
8
- * Plantilla de la etiqueta que se muestra en el componente.
8
+ * Label template rendered by the component.
9
9
  */
10
10
  labelTemplate?: string;
11
11
  /**
12
- * Información del dispositivo (lo mínimos)
12
+ * Minimal device information consumed by the component.
13
13
  */
14
14
  deviceData: DeviceDataType;
15
15
  /**
16
- * Indica si se muestra la imagen del vehículo
16
+ * Whether the vehicle image should be rendered.
17
17
  */
18
18
  withImage?: boolean;
19
19
  /**
20
- * Permite recibir las clases de algun slot
20
+ * Allow slot class overrides.
21
21
  */
22
22
  className?: string;
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/DeviceLabel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAG,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAClC,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,eAAe,EAAE,OAAO,sBAAsB,EAAE,KAAK,CAAC,CAAE"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/DeviceLabel/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAG,OAAO,CAAC;IACrB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,WAAW,CAAC;AAEvD,MAAM,MAAM,gBAAgB,GAAG,EAAE,CAAC;AAClC,MAAM,MAAM,YAAY,GAAG,sBAAsB,CAAC,eAAe,EAAE,OAAO,sBAAsB,EAAE,KAAK,CAAC,CAAE"}
@@ -1,7 +1,7 @@
1
1
  import { DeviceStatusSlots } from './slots/slots';
2
2
  import { COMPONET_KEY_COMPONENT } from './constants';
3
3
  import { Theme } from '@mui/material/styles';
4
- import { DeviceDataType } from '../../@types';
4
+ import { DeviceDataType } from '../../../../../dist/packages/@m4l/gclick-realtime/contracts';
5
5
  import { M4LOverridesStyleRules } from '@m4l/components';
6
6
  export interface DeviceStatusProps {
7
7
  deviceData: DeviceDataType;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/DeviceStatus/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,cAAc,CAAC;CAC5B;AACD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IAAC,SAAS,CAAC,EAAC,OAAO,CAAA;CAAC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG;IAAC,OAAO,EAAC,MAAM,CAAA;CAAC,CAAC;AACtD,MAAM,MAAM,kBAAkB,GACxB,sBAAsB,CAAC,qBAAqB,EAAE,OAAO,sBAAsB,EAAE,KAAK,CAAC,CAAE"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/DeviceStatus/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,EAAE,sBAAsB,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,cAAc,CAAC;CAC5B;AACD,MAAM,MAAM,oBAAoB,GAAG,iBAAiB,GAAG;IAAC,SAAS,CAAC,EAAC,OAAO,CAAA;CAAC,CAAC;AAC5E,MAAM,MAAM,qBAAqB,GAAG,MAAM,OAAO,iBAAiB,CAAC;AACnE,MAAM,MAAM,sBAAsB,GAAG;IAAC,OAAO,EAAC,MAAM,CAAA;CAAC,CAAC;AACtD,MAAM,MAAM,kBAAkB,GACxB,sBAAsB,CAAC,qBAAqB,EAAE,OAAO,sBAAsB,EAAE,KAAK,CAAC,CAAE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ReportsViewer.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/ReportsViewer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,+GAexB,CAAC"}
1
+ {"version":3,"file":"ReportsViewer.d.ts","sourceRoot":"","sources":["../../../../../../packages/gclick/src/components/ReportsViewer/ReportsViewer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAO7C;;;;;;;;;;GAUG;AACH,eAAO,MAAM,aAAa,+GAQxB,CAAC"}
@@ -1,23 +1,12 @@
1
- import { jsx as e } from "@emotion/react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { ReportsViewerProvider as c } from "./contexts/ReportsViewerContext/index.js";
1
+ import { jsx as o } from "@emotion/react/jsx-runtime";
2
+ import { forwardRef as s } from "react";
3
+ import { ReportsViewerProvider as m } from "./contexts/ReportsViewerContext/index.js";
4
4
  import { ReportsViewerInner as d } from "./subcomponents/ReportsViewerInner/ReportsViewerInner.js";
5
- const w = f((o, t) => {
6
- const { endpoint: r, onLoad: n, onError: i, fetchStructure: p, fetchSheetContent: s, ...m } = o;
7
- return /* @__PURE__ */ e(
8
- c,
9
- {
10
- endpoint: r,
11
- onLoad: n,
12
- onError: i,
13
- fetchStructure: p,
14
- fetchSheetContent: s,
15
- children: /* @__PURE__ */ e(d, { ...m, ref: t })
16
- },
17
- r
18
- );
5
+ const f = s((e, n) => {
6
+ const { endpoint: r, onLoad: t, onError: i, ...p } = e;
7
+ return /* @__PURE__ */ o(m, { endpoint: r, onLoad: t, onError: i, children: /* @__PURE__ */ o(d, { ...p, ref: n }) }, r);
19
8
  });
20
- w.displayName = "ReportsViewer";
9
+ f.displayName = "ReportsViewer";
21
10
  export {
22
- w as ReportsViewer
11
+ f as ReportsViewer
23
12
  };
@@ -1,18 +1,18 @@
1
- import { jsx as u } from "@emotion/react/jsx-runtime";
2
- import { useRef as m, useMemo as d, createContext as l } from "react";
3
- import { createReportsViewerStore as a } from "./store.js";
4
- import { ReportStructureDataProvider as R } from "../ReportStructureDataContext/ReportStructureDataContext.js";
5
- const h = l(null);
6
- function C(s) {
7
- const { endpoint: r, onLoad: t, onError: o, fetchStructure: n, fetchSheetContent: c, children: f } = s, e = m(null);
8
- e.current || (e.current = a({ endpoint: r }));
9
- const i = e.current, p = d(
10
- () => ({ store: i, endpoint: r, onLoad: t, onError: o, fetchStructure: n, fetchSheetContent: c }),
11
- [i, r, t, o, n, c]
1
+ import { jsx as i } from "@emotion/react/jsx-runtime";
2
+ import { useRef as p, useMemo as m, createContext as f } from "react";
3
+ import { createReportsViewerStore as d } from "./store.js";
4
+ import { ReportStructureDataProvider as l } from "../ReportStructureDataContext/ReportStructureDataContext.js";
5
+ const a = f(null);
6
+ function P(c) {
7
+ const { endpoint: r, onLoad: o, onError: t, children: s } = c, e = p(null);
8
+ e.current || (e.current = d({ endpoint: r }));
9
+ const n = e.current, u = m(
10
+ () => ({ store: n, endpoint: r, onLoad: o, onError: t }),
11
+ [n, r, o, t]
12
12
  );
13
- return /* @__PURE__ */ u(h.Provider, { value: p, children: /* @__PURE__ */ u(R, { children: f }) });
13
+ return /* @__PURE__ */ i(a.Provider, { value: u, children: /* @__PURE__ */ i(l, { children: s }) });
14
14
  }
15
15
  export {
16
- h as ReportsViewerContext,
17
- C as ReportsViewerProvider
16
+ a as ReportsViewerContext,
17
+ P as ReportsViewerProvider
18
18
  };
@@ -1,12 +1,10 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { StoreApi } from 'zustand';
3
- import { ReportStructureResponse, ReportSheetStoreValue, ReportsViewerStructureFetcher, ReportsViewerSheetContentFetcher } from '../../types';
3
+ import { ReportStructureResponse, ReportSheetStoreValue } from '../../types';
4
4
  export interface ReportsViewerProviderProps {
5
5
  endpoint: string;
6
6
  onLoad?: (structure: ReportStructureResponse['data']) => void;
7
7
  onError?: (error: Error) => void;
8
- fetchStructure?: ReportsViewerStructureFetcher;
9
- fetchSheetContent?: ReportsViewerSheetContentFetcher;
10
8
  children: ReactNode;
11
9
  }
12
10
  /** Payload for creating the ReportsViewer store (data only; no network). */
@@ -39,7 +37,5 @@ export interface ReportsViewerContextValue {
39
37
  endpoint: string;
40
38
  onLoad?: (structure: ReportStructureResponse['data']) => void;
41
39
  onError?: (error: Error) => void;
42
- fetchStructure?: ReportsViewerStructureFetcher;
43
- fetchSheetContent?: ReportsViewerSheetContentFetcher;
44
40
  }
45
41
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/contexts/ReportsViewerContext/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACrB,6BAA6B,EAC7B,gCAAgC,EACjC,MAAM,aAAa,CAAC;AAErB,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,uBAAuB,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C,EAAE,gCAAgC,CAAC;CACtD"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../../packages/gclick/src/components/ReportsViewer/contexts/ReportsViewerContext/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAElF,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,CAAC,SAAS,EAAE,uBAAuB,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9D,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;IACjC,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,4EAA4E;AAC5E,MAAM,WAAW,8BAA8B;IAC7C,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,8FAA8F;AAC9F,MAAM,WAAW,uBAAuB;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,gBAAgB,EAAE,MAAM,CAAC;IACzB,yGAAyG;IACzG,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IAClD,8GAA8G;IAC9G,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,6FAA6F;AAC7F,MAAM,WAAW,yBAAyB;IACxC,mEAAmE;IACnE,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,8DAA8D;IAC9D,gBAAgB,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,qBAAqB,CAAC,KAAK,IAAI,CAAC;CACzF;AAED,MAAM,MAAM,6BAA6B,GAAG,uBAAuB,GAAG;IACpE,oBAAoB,EAAE,yBAAyB,CAAC;CACjD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