@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.
- package/@types/constants.d.ts +1 -26
- package/@types/constants.d.ts.map +1 -1
- package/@types/deviceData.d.ts +1 -134
- package/@types/deviceData.d.ts.map +1 -1
- package/@types/general.d.ts +1 -21
- package/@types/general.d.ts.map +1 -1
- package/@types/index.d.ts +2 -2
- package/@types/index.d.ts.map +1 -1
- package/@types/vpts.d.ts +1 -70
- package/@types/vpts.d.ts.map +1 -1
- package/components/Device/constants.d.ts +1 -1
- package/components/Device/constants.d.ts.map +1 -1
- package/components/Device/helpers/helperDeviceStatus.d.ts +3 -3
- package/components/Device/helpers/helperDeviceStatus.d.ts.map +1 -1
- package/components/Device/helpers/helperDeviceStatus.js +2 -2
- package/components/Device/helpers.d.ts +4 -4
- package/components/Device/helpers.d.ts.map +1 -1
- package/components/Device/helpers.js +1 -1
- package/components/Device/hooks/constants.d.ts +1 -1
- package/components/Device/hooks/constants.d.ts.map +1 -1
- package/components/Device/hooks/constants.js +1 -1
- package/components/Device/types.d.ts +2 -2
- package/components/Device/types.d.ts.map +1 -1
- package/components/DeviceLabel/types.d.ts +5 -5
- package/components/DeviceLabel/types.d.ts.map +1 -1
- package/components/DeviceStatus/types.d.ts +1 -1
- package/components/DeviceStatus/types.d.ts.map +1 -1
- package/components/ReportsViewer/ReportsViewer.d.ts.map +1 -1
- package/components/ReportsViewer/ReportsViewer.js +8 -19
- package/components/ReportsViewer/contexts/ReportsViewerContext/index.js +14 -14
- package/components/ReportsViewer/contexts/ReportsViewerContext/types.d.ts +1 -5
- package/components/ReportsViewer/contexts/ReportsViewerContext/types.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/flattenAndTransformRows/index.js +9 -9
- package/components/ReportsViewer/helpers/parseDataGridSection/index.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/parseDataGridSection/index.js +42 -70
- package/components/ReportsViewer/helpers/parseTreeDataGridSection/index.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/parseTreeDataGridSection/index.js +51 -54
- package/components/ReportsViewer/helpers/transformRow/index.d.ts +1 -6
- package/components/ReportsViewer/helpers/transformRow/index.d.ts.map +1 -1
- package/components/ReportsViewer/helpers/transformRow/index.js +9 -37
- package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.d.ts.map +1 -1
- package/components/ReportsViewer/hooks/useReportSheetContentFetch/useReportSheetContentFetch.js +32 -33
- package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.d.ts.map +1 -1
- package/components/ReportsViewer/hooks/useReportStructureFetch/useReportStructureFetch.js +26 -26
- package/components/ReportsViewer/index.d.ts +0 -1
- package/components/ReportsViewer/index.d.ts.map +1 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/DataGridSectionRenderer/DataGridSectionRenderer.js +5 -5
- package/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.d.ts.map +1 -1
- package/components/ReportsViewer/subcomponents/SectionRenderer/PropertyValuesSectionRenderer/PropertyValuesSectionRenderer.js +16 -16
- package/components/ReportsViewer/types.d.ts +6 -69
- package/components/ReportsViewer/types.d.ts.map +1 -1
- package/index.d.ts +0 -4
- package/index.d.ts.map +1 -1
- package/index.js +148 -203
- package/package.json +3 -3
- package/utils/getHdopPresentation/constants.d.ts +12 -0
- package/utils/getHdopPresentation/constants.d.ts.map +1 -0
- package/utils/getHdopPresentation/constants.js +17 -0
- package/utils/getHdopPresentation/getHdopPresentation.d.ts +7 -0
- package/utils/getHdopPresentation/getHdopPresentation.d.ts.map +1 -0
- package/utils/getHdopPresentation/getHdopPresentation.js +12 -0
- package/utils/getHdopPresentation/index.d.ts +4 -0
- package/utils/getHdopPresentation/index.d.ts.map +1 -0
- package/utils/getHdopPresentation/types.d.ts +13 -0
- package/utils/getHdopPresentation/types.d.ts.map +1 -0
- package/utils/getPrecisionFromHdop/constants.d.ts +8 -13
- package/utils/getPrecisionFromHdop/constants.d.ts.map +1 -1
- package/utils/getPrecisionFromHdop/constants.js +9 -68
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts +4 -27
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.d.ts.map +1 -1
- package/utils/getPrecisionFromHdop/getPrecisionFromHdop.js +6 -45
- package/utils/getPrecisionFromHdop/types.d.ts +13 -42
- package/utils/getPrecisionFromHdop/types.d.ts.map +1 -1
- package/utils/getVptUpdatedAtWithGuard.d.ts +3 -2
- package/utils/getVptUpdatedAtWithGuard.d.ts.map +1 -1
- package/utils/getVptValueWithGuard.d.ts +2 -7
- package/utils/getVptValueWithGuard.d.ts.map +1 -1
- package/utils/index.d.ts +1 -1
- package/utils/index.d.ts.map +1 -1
- package/@types/constants.js +0 -6
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts +0 -8
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts.map +0 -1
- package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +0 -38
- package/contexts/RealTimeConsumerContext/constants.d.ts +0 -4
- package/contexts/RealTimeConsumerContext/constants.d.ts.map +0 -1
- package/contexts/RealTimeConsumerContext/constants.js +0 -5
- package/contexts/RealTimeConsumerContext/index.d.ts +0 -4
- package/contexts/RealTimeConsumerContext/index.d.ts.map +0 -1
- package/contexts/RealTimeConsumerContext/store.d.ts +0 -7
- package/contexts/RealTimeConsumerContext/store.d.ts.map +0 -1
- package/contexts/RealTimeConsumerContext/store.helpers.d.ts +0 -26
- package/contexts/RealTimeConsumerContext/store.helpers.d.ts.map +0 -1
- package/contexts/RealTimeConsumerContext/store.helpers.js +0 -44
- package/contexts/RealTimeConsumerContext/store.js +0 -89
- package/contexts/RealTimeConsumerContext/types.d.ts +0 -69
- package/contexts/RealTimeConsumerContext/types.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts +0 -9
- package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/RealTimeProducerContext.js +0 -14
- package/contexts/RealTimeProducerContext/constants.d.ts +0 -7
- package/contexts/RealTimeProducerContext/constants.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/constants.js +0 -4
- package/contexts/RealTimeProducerContext/hostRuntime.d.ts +0 -45
- package/contexts/RealTimeProducerContext/hostRuntime.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/hostRuntime.js +0 -47
- package/contexts/RealTimeProducerContext/index.d.ts +0 -17
- package/contexts/RealTimeProducerContext/index.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/runtime.d.ts +0 -24
- package/contexts/RealTimeProducerContext/runtime.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/runtime.js +0 -22
- package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.d.ts +0 -6
- package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.js +0 -20
- package/contexts/RealTimeProducerContext/runtimeRegistry.d.ts +0 -8
- package/contexts/RealTimeProducerContext/runtimeRegistry.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/runtimeRegistry.js +0 -10
- package/contexts/RealTimeProducerContext/runtimeRegistry.shared.d.ts +0 -15
- package/contexts/RealTimeProducerContext/runtimeRegistry.shared.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/runtimeRegistry.shared.js +0 -19
- package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.d.ts +0 -8
- package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.js +0 -10
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +0 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts +0 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/atmosphereFactory.d.ts +0 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/atmosphereFactory.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts +0 -2
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.d.ts +0 -13
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.js +0 -127
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.d.ts +0 -134
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.js +0 -113
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/catalog.d.ts +0 -9
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/catalog.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +0 -1137
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +0 -26
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts +0 -43
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +0 -286
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_civic_loop_pm.json.d.ts +0 -3448
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_civic_loop_pm.json.js +0 -35
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_intermedia_loop_pm.json.d.ts +0 -5170
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_intermedia_loop_pm.json.js +0 -35
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_loop_am.json.d.ts +0 -4232
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_loop_am.json.js +0 -35
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_sur_loop_am.json.d.ts +0 -4526
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_sur_loop_am.json.js +0 -35
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.d.ts +0 -14
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.d.ts +0 -61
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.js +0 -52
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.js +0 -13
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts +0 -10
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/group.js +0 -46
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +0 -34
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +0 -61
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.d.ts +0 -229
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.js +0 -404
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.d.ts +0 -197
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.js +0 -149
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routeSeeds.d.ts +0 -131
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routeSeeds.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.d.ts +0 -104
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.js +0 -286
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.d.ts +0 -379
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.js +0 -193
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.d.ts +0 -43
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.js +0 -780
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts +0 -13
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +0 -27
- package/contexts/RealTimeProducerContext/store.d.ts +0 -7
- package/contexts/RealTimeProducerContext/store.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/store.helpers.d.ts +0 -21
- package/contexts/RealTimeProducerContext/store.helpers.d.ts.map +0 -1
- package/contexts/RealTimeProducerContext/types.d.ts +0 -369
- package/contexts/RealTimeProducerContext/types.d.ts.map +0 -1
- package/contexts/index.d.ts +0 -4
- package/contexts/index.d.ts.map +0 -1
- package/hooks/index.d.ts +0 -3
- package/hooks/index.d.ts.map +0 -1
- package/hooks/useRealTimeConsumer/index.d.ts +0 -7
- package/hooks/useRealTimeConsumer/index.d.ts.map +0 -1
- package/hooks/useRealTimeConsumer/index.js +0 -13
- package/hooks/useRealTimeProducer/index.d.ts +0 -7
- package/hooks/useRealTimeProducer/index.d.ts.map +0 -1
- package/hooks/useRealTimeProducer/index.js +0 -13
- package/utils/getVptUpdatedAtWithGuard.js +0 -11
- package/utils/getVptValueWithGuard.js +0 -12
- package/utils/realtimePerformanceDebug.d.ts +0 -411
- package/utils/realtimePerformanceDebug.d.ts.map +0 -1
- package/utils/realtimePerformanceDebug.js +0 -279
package/@types/constants.d.ts
CHANGED
|
@@ -1,27 +1,2 @@
|
|
|
1
|
-
export
|
|
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,
|
|
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"}
|
package/@types/deviceData.d.ts
CHANGED
|
@@ -1,135 +1,2 @@
|
|
|
1
|
-
|
|
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,
|
|
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"}
|
package/@types/general.d.ts
CHANGED
|
@@ -1,22 +1,2 @@
|
|
|
1
|
-
|
|
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
|
package/@types/general.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/general.ts"],"names":[],"mappings":"AAAA,
|
|
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 '
|
|
2
|
-
export { GNSSEnumMotionStatus, GNSSEnumSignal } from '
|
|
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
|
package/@types/index.d.ts.map
CHANGED
|
@@ -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,
|
|
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
|
-
|
|
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
|
package/@types/vpts.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vpts.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/vpts.ts"],"names":[],"mappings":"AAAA,
|
|
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 '
|
|
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,
|
|
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 '
|
|
1
|
+
import { DeviceDataType } from '../../../../../../dist/packages/@m4l/gclick-realtime/contracts';
|
|
2
2
|
import { StatusDeviceData } from '../hooks/constants';
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
5
|
-
*
|
|
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":"
|
|
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 "
|
|
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 "
|
|
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 '
|
|
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
|
-
*
|
|
7
|
-
*
|
|
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
|
-
*
|
|
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":"
|
|
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 "
|
|
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 '
|
|
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,
|
|
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 "
|
|
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 '
|
|
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
|
-
*
|
|
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,
|
|
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,gCAAgC,CAAC;AAChE,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,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 '
|
|
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
|
-
*
|
|
8
|
+
* Label template rendered by the component.
|
|
9
9
|
*/
|
|
10
10
|
labelTemplate?: string;
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* Minimal device information consumed by the component.
|
|
13
13
|
*/
|
|
14
14
|
deviceData: DeviceDataType;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Whether the vehicle image should be rendered.
|
|
17
17
|
*/
|
|
18
18
|
withImage?: boolean;
|
|
19
19
|
/**
|
|
20
|
-
*
|
|
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,
|
|
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 '
|
|
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,
|
|
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,+
|
|
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
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { ReportsViewerProvider as
|
|
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
|
|
6
|
-
const { endpoint: r, onLoad:
|
|
7
|
-
return /* @__PURE__ */
|
|
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
|
-
|
|
9
|
+
f.displayName = "ReportsViewer";
|
|
21
10
|
export {
|
|
22
|
-
|
|
11
|
+
f as ReportsViewer
|
|
23
12
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { createReportsViewerStore as
|
|
4
|
-
import { ReportStructureDataProvider as
|
|
5
|
-
const
|
|
6
|
-
function
|
|
7
|
-
const { endpoint: r, onLoad:
|
|
8
|
-
e.current || (e.current =
|
|
9
|
-
const
|
|
10
|
-
() => ({ store:
|
|
11
|
-
[
|
|
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__ */
|
|
13
|
+
return /* @__PURE__ */ i(a.Provider, { value: u, children: /* @__PURE__ */ i(l, { children: s }) });
|
|
14
14
|
}
|
|
15
15
|
export {
|
|
16
|
-
|
|
17
|
-
|
|
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
|
|
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,
|
|
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,CAAC;AAEF,iHAAiH;AACjH,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,QAAQ,CAAC,6BAA6B,CAAC,CAAC;IAC/C,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;CAClC"}
|