@m4l/gclick 0.4.2-beta-improvement-606-typography-leveling.0 → 0.4.2

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 (150) hide show
  1. package/@types/constants.js +3 -2
  2. package/@types/deviceData.d.ts +4 -1
  3. package/@types/deviceData.d.ts.map +1 -1
  4. package/@types/index.d.ts +1 -1
  5. package/@types/index.d.ts.map +1 -1
  6. package/@types/vpts.d.ts +22 -4
  7. package/@types/vpts.d.ts.map +1 -1
  8. package/components/ReportsViewer/subcomponents/GroupCellWithTotal/GroupCellWithTotal.js +4 -4
  9. package/components/ReportsViewer/subcomponents/ReportsViewerMessage/ReportsViewerMessage.js +1 -1
  10. package/components/VideoTimeLineSelector/subcomponents/ChannelRadioButton/ChannelRadioButton.js +6 -6
  11. package/components/VideoTimeLineSelector/subcomponents/EventCluster/EventCluster.js +11 -11
  12. package/components/indicators/IndicatorBattery/IndicatorBattery.js +21 -21
  13. package/components/indicators/IndicatorValueAndMagnitude/IndicatorValueAndMagnitude.js +1 -1
  14. package/components/indicators/IndicatorValueStatus/IndicatorValueStatus.js +1 -1
  15. package/components/maps/components/GpsMap/contexts/MapContext/helpers/featureLookup.d.ts +22 -0
  16. package/components/maps/components/GpsMap/contexts/MapContext/helpers/featureLookup.d.ts.map +1 -0
  17. package/components/maps/components/GpsMap/contexts/MapContext/helpers/featureLookup.js +49 -0
  18. package/components/maps/components/GpsMap/contexts/MapContext/helpers/featureObservability.d.ts +1 -4
  19. package/components/maps/components/GpsMap/contexts/MapContext/helpers/featureObservability.d.ts.map +1 -1
  20. package/components/maps/components/GpsMap/contexts/MapContext/helpers/featureObservability.js +41 -51
  21. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts +2 -1
  22. package/components/maps/components/GpsMap/contexts/MapContext/index.d.ts.map +1 -1
  23. package/components/maps/components/GpsMap/contexts/MapContext/store.d.ts.map +1 -1
  24. package/components/maps/components/GpsMap/contexts/MapContext/store.js +235 -182
  25. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts +32 -0
  26. package/components/maps/components/GpsMap/contexts/MapContext/types.d.ts.map +1 -1
  27. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.d.ts.map +1 -1
  28. package/components/maps/components/GpsMap/featureRenders/CommonFeatureRender/index.js +64 -69
  29. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.d.ts.map +1 -1
  30. package/components/maps/components/GpsMap/featureRenders/MarkerFeatureRender/index.js +36 -43
  31. package/components/maps/components/GpsMap/subcomponents/Controls/subcomponents/ButtonsToolsList/subcomponents/MapSourcesTool/subcomponents/MapSourceCard.js +5 -5
  32. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.d.ts.map +1 -1
  33. package/components/maps/components/GpsMap/subcomponents/LayersContainer/subcomponents/Layer/Layer.js +103 -56
  34. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts +1 -5
  35. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.d.ts.map +1 -1
  36. package/contexts/RealTimeConsumerContext/RealTimeConsumerContext.js +25 -19
  37. package/contexts/RealTimeConsumerContext/constants.js +3 -4
  38. package/contexts/RealTimeConsumerContext/store.d.ts +1 -1
  39. package/contexts/RealTimeConsumerContext/store.d.ts.map +1 -1
  40. package/contexts/RealTimeConsumerContext/store.helpers.d.ts +26 -0
  41. package/contexts/RealTimeConsumerContext/store.helpers.d.ts.map +1 -0
  42. package/contexts/RealTimeConsumerContext/store.helpers.js +44 -0
  43. package/contexts/RealTimeConsumerContext/store.js +58 -52
  44. package/contexts/RealTimeConsumerContext/types.d.ts +17 -13
  45. package/contexts/RealTimeConsumerContext/types.d.ts.map +1 -1
  46. package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts +3 -6
  47. package/contexts/RealTimeProducerContext/RealTimeProducerContext.d.ts.map +1 -1
  48. package/contexts/RealTimeProducerContext/RealTimeProducerContext.js +11 -12
  49. package/contexts/RealTimeProducerContext/constants.js +1 -4
  50. package/contexts/RealTimeProducerContext/hostRuntime.d.ts +45 -0
  51. package/contexts/RealTimeProducerContext/hostRuntime.d.ts.map +1 -0
  52. package/contexts/RealTimeProducerContext/hostRuntime.js +47 -0
  53. package/contexts/RealTimeProducerContext/index.d.ts +14 -2
  54. package/contexts/RealTimeProducerContext/index.d.ts.map +1 -1
  55. package/contexts/RealTimeProducerContext/runtime.d.ts +24 -0
  56. package/contexts/RealTimeProducerContext/runtime.d.ts.map +1 -0
  57. package/contexts/RealTimeProducerContext/runtime.js +22 -0
  58. package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.d.ts +6 -0
  59. package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.d.ts.map +1 -0
  60. package/contexts/RealTimeProducerContext/runtimeAtmosphereOnly.js +20 -0
  61. package/contexts/RealTimeProducerContext/runtimeRegistry.d.ts +8 -0
  62. package/contexts/RealTimeProducerContext/runtimeRegistry.d.ts.map +1 -0
  63. package/contexts/RealTimeProducerContext/runtimeRegistry.js +10 -0
  64. package/contexts/RealTimeProducerContext/runtimeRegistry.shared.d.ts +15 -0
  65. package/contexts/RealTimeProducerContext/runtimeRegistry.shared.d.ts.map +1 -0
  66. package/contexts/RealTimeProducerContext/runtimeRegistry.shared.js +19 -0
  67. package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.d.ts +8 -0
  68. package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.d.ts.map +1 -0
  69. package/contexts/RealTimeProducerContext/runtimeRegistryAtmosphereOnly.js +10 -0
  70. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts +1 -31
  71. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.d.ts.map +1 -1
  72. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts +1 -28
  73. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/types.d.ts.map +1 -1
  74. package/contexts/RealTimeProducerContext/sourceDataMechanisms/atmosphereFactory.d.ts +2 -0
  75. package/contexts/RealTimeProducerContext/sourceDataMechanisms/atmosphereFactory.d.ts.map +1 -0
  76. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts +1 -15
  77. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.d.ts.map +1 -1
  78. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.d.ts +13 -0
  79. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.d.ts.map +1 -0
  80. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/baseDeviceTemplate.js +114 -0
  81. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.d.ts +81 -0
  82. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.d.ts.map +1 -0
  83. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/blueprints.js +80 -0
  84. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/catalog.d.ts +9 -0
  85. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/catalog.d.ts.map +1 -0
  86. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts +954 -65
  87. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.d.ts.map +1 -1
  88. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/constants.js +24 -215
  89. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts +4 -10
  90. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.d.ts.map +1 -1
  91. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/dummy.js +185 -46
  92. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_civic_loop_pm.json.d.ts +3448 -0
  93. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_civic_loop_pm.json.js +35 -0
  94. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_intermedia_loop_pm.json.d.ts +5170 -0
  95. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_envigado_intermedia_loop_pm.json.js +35 -0
  96. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_loop_am.json.d.ts +4232 -0
  97. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_loop_am.json.js +35 -0
  98. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_sur_loop_am.json.d.ts +4526 -0
  99. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generated-routes/google_medellin_centro_sur_loop_am.json.js +35 -0
  100. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.d.ts +14 -0
  101. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.d.ts.map +1 -0
  102. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.d.ts +61 -0
  103. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.d.ts.map +1 -0
  104. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.helpers.js +52 -0
  105. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/generatedRoutes.js +13 -0
  106. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts +31 -9
  107. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.d.ts.map +1 -1
  108. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/helpers.js +58 -14
  109. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.d.ts +205 -0
  110. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.d.ts.map +1 -0
  111. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/plans.js +376 -0
  112. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.d.ts +152 -0
  113. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.d.ts.map +1 -0
  114. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/presets.js +122 -0
  115. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routeSeeds.d.ts +131 -0
  116. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routeSeeds.d.ts.map +1 -0
  117. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.d.ts +102 -0
  118. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.d.ts.map +1 -0
  119. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/routes.js +258 -0
  120. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.d.ts +341 -0
  121. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.d.ts.map +1 -0
  122. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/scenarios.js +151 -0
  123. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.d.ts +43 -0
  124. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.d.ts.map +1 -0
  125. package/contexts/RealTimeProducerContext/sourceDataMechanisms/dummy/simulation.js +756 -0
  126. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts +2 -2
  127. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.d.ts.map +1 -1
  128. package/contexts/RealTimeProducerContext/sourceDataMechanisms/factory.js +10 -4
  129. package/contexts/RealTimeProducerContext/store.d.ts +6 -6
  130. package/contexts/RealTimeProducerContext/store.d.ts.map +1 -1
  131. package/contexts/RealTimeProducerContext/store.helpers.d.ts +21 -0
  132. package/contexts/RealTimeProducerContext/store.helpers.d.ts.map +1 -0
  133. package/contexts/RealTimeProducerContext/types.d.ts +293 -134
  134. package/contexts/RealTimeProducerContext/types.d.ts.map +1 -1
  135. package/contexts/index.d.ts +3 -2
  136. package/contexts/index.d.ts.map +1 -1
  137. package/hooks/useRealTimeProducer/index.d.ts +1 -1
  138. package/hooks/useRealTimeProducer/index.d.ts.map +1 -1
  139. package/index.d.ts +2 -0
  140. package/index.d.ts.map +1 -1
  141. package/index.js +203 -153
  142. package/package.json +14 -15
  143. package/utils/index.d.ts +1 -0
  144. package/utils/index.d.ts.map +1 -1
  145. package/utils/realtimePerformanceDebug.d.ts +210 -0
  146. package/utils/realtimePerformanceDebug.d.ts.map +1 -0
  147. package/utils/realtimePerformanceDebug.js +254 -0
  148. package/contexts/RealTimeProducerContext/sourceDataMechanisms/athmospherejs/index.js +0 -117
  149. package/contexts/RealTimeProducerContext/sourceDataMechanisms/base.js +0 -14
  150. package/contexts/RealTimeProducerContext/store.js +0 -111
@@ -1,5 +1,6 @@
1
- var p = /* @__PURE__ */ ((e) => (e[e.off = 0] = "off", e[e.moving = 1] = "moving", e[e.stopped = 2] = "stopped", e[e.stoppedRalenti = 3] = "stoppedRalenti", e[e.stoppedExcesiveRalenti = 4] = "stoppedExcesiveRalenti", e[e.towing = 5] = "towing", e[e.powerSaving = 6] = "powerSaving", e[e.maxSpeed = 7] = "maxSpeed", e))(p || {}), r = /* @__PURE__ */ ((e) => (e[e.reliable = 0] = "reliable", e[e.acceptable = 1] = "acceptable", e[e.noSignal = 2] = "noSignal", e))(r || {});
1
+ var p = /* @__PURE__ */ ((e) => (e[e.off = 0] = "off", e[e.moving = 1] = "moving", e[e.stopped = 2] = "stopped", e[e.stoppedRalenti = 3] = "stoppedRalenti", e[e.stoppedExcesiveRalenti = 4] = "stoppedExcesiveRalenti", e[e.towing = 5] = "towing", e[e.powerSaving = 6] = "powerSaving", e[e.maxSpeed = 7] = "maxSpeed", e))(p || {}), l = /* @__PURE__ */ ((e) => (e[e.reliable = 0] = "reliable", e[e.acceptable = 1] = "acceptable", e[e.noSignal = 2] = "noSignal", e))(l || {}), r = /* @__PURE__ */ ((e) => (e[e.ok = 0] = "ok", e[e.low = 1] = "low", e[e.lost = 2] = "lost", e))(r || {});
2
2
  export {
3
+ r as ADCPowerEnum,
3
4
  p as GNSSEnumMotionStatus,
4
- r as GNSSEnumSignal
5
+ l as GNSSEnumSignal
5
6
  };
@@ -1,7 +1,7 @@
1
1
  import { Maybe } from '@m4l/core';
2
2
  import { GNSSEnumMotionStatus, GNSSEnumSignal } from './constants';
3
3
  import { OperationalRoles, PropertyValue, PropertyValueWithTrack } from './general';
4
- import { VPTMultiple, VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentModem, VPTSettingsDIX, VPTCurrentOWTempX, VPTSettingsModem } from './vpts';
4
+ import { VPTMultiple, VPTCurrentADCPower, VPTCurrentDIX, VPTCurrentModem, VPTSettingsDIX, VPTCurrentOWTempX, VPTSettingsModem, VPTCurrentIgnition, VPTCurrentDoX, VPTSettingsDoX } from './vpts';
5
5
  import { HexColor } from '@m4l/graphics';
6
6
  export type DeviceDataGeofence = {
7
7
  id: number;
@@ -42,6 +42,8 @@ export type DeviceCurrent = {
42
42
  vpts?: {
43
43
  vptGnss?: DeviceCurrentVPTGnss;
44
44
  vptDiX?: VPTMultiple<VPTCurrentDIX>;
45
+ vptDoX?: VPTMultiple<VPTCurrentDoX>;
46
+ vptIgnition?: VPTCurrentIgnition;
45
47
  vptOWTempX?: VPTMultiple<VPTCurrentOWTempX>;
46
48
  vptModem?: VPTCurrentModem;
47
49
  vptADCPower?: VPTCurrentADCPower;
@@ -78,6 +80,7 @@ export type DeviceSettings = {
78
80
  vpts?: {
79
81
  vptModem?: VPTSettingsModem;
80
82
  vptDix?: VPTMultiple<VPTSettingsDIX>;
83
+ vptDoX?: VPTMultiple<VPTSettingsDoX>;
81
84
  };
82
85
  };
83
86
  export type DeviceDataType = {
@@ -1 +1 @@
1
- {"version":3,"file":"deviceData.d.ts","sourceRoot":"","sources":["../../../../../packages/gclick/src/@types/deviceData.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KA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;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;AACD,MAAM,MAAM,cAAc,GAAG;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IAKzB,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"}
package/@types/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- export type { DeviceDataType, SettingsGroup, DeviceCurrent, DeviceCurrentVPTGnss } from './deviceData';
1
+ export type { DeviceDataType, SettingsGroup, DeviceCurrent, DeviceCurrentVPTGnss, DeviceSettings } from './deviceData';
2
2
  export { GNSSEnumMotionStatus, GNSSEnumSignal } from './constants';
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,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAEvG,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,EAAE,cAAc,EAAE,aAAa,EAAE,aAAa,EAAE,oBAAoB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAEvH,OAAO,EAAE,oBAAoB,EAAE,cAAc,EAAG,MAAM,aAAa,CAAC"}
package/@types/vpts.d.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  import { ADCPowerEnum } from './constants';
2
2
  import { PropertyValue, PropertyValueWithTrack } from './general';
3
+ export type VPTMultiple<T> = {
4
+ [key: string]: T;
5
+ };
3
6
  export type VPTCurrentOWTempX = {
4
7
  owTempXStatus: PropertyValueWithTrack<boolean>;
5
8
  owTempXTemp: PropertyValueWithTrack<number>;
@@ -8,12 +11,27 @@ export type VPTCurrentDIX = {
8
11
  diXValue: PropertyValueWithTrack<boolean>;
9
12
  diXStatus: PropertyValueWithTrack<boolean>;
10
13
  };
11
- export type VPTMultiple<T> = {
12
- [key: number]: T;
14
+ export type VPTCurrentDoX = {
15
+ diXValue: PropertyValueWithTrack<boolean>;
16
+ };
17
+ export type VPTCurrentIgnition = {
18
+ ignitionValue: PropertyValueWithTrack<boolean>;
13
19
  };
14
20
  export type VPTSettingsDIX = {
15
- pName: string;
16
- pAlias?: string;
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;
17
35
  pRdOpenTitle: string;
18
36
  pRdCloseTitle: string;
19
37
  /**
@@ -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,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AE,aAAa,CAAC,OAAO,CAAC,CAAC;CACpC,CAAA;AACD,MAAM,MAAM,gBAAgB,GAAG;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA"}
@@ -1,8 +1,8 @@
1
1
  import { jsx as c } from "@emotion/react/jsx-runtime";
2
- import { Typography as u } from "@m4l/components";
3
- import { GroupCellWithTotalRootStyled as f } from "../../slots/ReportsViewerSlots.js";
2
+ import { Typography as f } from "@m4l/components";
3
+ import { GroupCellWithTotalRootStyled as g } from "../../slots/ReportsViewerSlots.js";
4
4
  function y(p) {
5
- const { childRows: n, column: r, groupTotalsMap: i, row: s } = p, d = r.align;
5
+ const { childRows: n, column: r, groupTotalsMap: i, row: s } = p, u = r.align;
6
6
  let o;
7
7
  const l = r.key, a = s?.id;
8
8
  if (a && i && l) {
@@ -14,7 +14,7 @@ function y(p) {
14
14
  o = n.length;
15
15
  } else
16
16
  o = n.length;
17
- return /* @__PURE__ */ c(f, { ownerState: { align: d }, children: /* @__PURE__ */ c(u, { variant: "bodyStandard", children: o }) });
17
+ return /* @__PURE__ */ c(g, { ownerState: { align: u }, children: /* @__PURE__ */ c(f, { variant: "body", children: o }) });
18
18
  }
19
19
  export {
20
20
  y as GroupCellWithTotal
@@ -4,7 +4,7 @@ import { useModuleDictionary as a } from "@m4l/core";
4
4
  import { ErrorContainerStyled as n } from "../../slots/ReportsViewerSlots.js";
5
5
  function s({ ownerState: e, dictionaryKey: o }) {
6
6
  const { getLabel: t } = a();
7
- return /* @__PURE__ */ r(n, { ownerState: e, children: /* @__PURE__ */ r(i, { variant: "bodyStandard", color: "text.secondary", children: t(o) }) });
7
+ return /* @__PURE__ */ r(n, { ownerState: e, children: /* @__PURE__ */ r(i, { variant: "body", color: "text.secondary", children: t(o) }) });
8
8
  }
9
9
  s.displayName = "ReportsViewerMessage";
10
10
  export {
@@ -1,16 +1,16 @@
1
1
  import { jsx as n } from "@emotion/react/jsx-runtime";
2
2
  import { ContainerChannelCheckboxStyled as m } from "../../slots/VideoTimeLineSelectorSlots.js";
3
- import { FormControlLabel as c, Radio as d } from "@mui/material";
4
- import { useVideoTimeLineSelectorStore as s } from "../../store/useVideoTimeLineSelectorStore.js";
5
- import { shallow as h } from "zustand/shallow";
3
+ import { FormControlLabel as c, Radio as s } from "@mui/material";
4
+ import { useVideoTimeLineSelectorStore as h } from "../../store/useVideoTimeLineSelectorStore.js";
5
+ import { shallow as d } from "zustand/shallow";
6
6
  import { useComponentSize as p, Typography as C } from "@m4l/components";
7
7
  const x = (r) => {
8
- const { channel: e, onChange: t } = r, i = s((o) => o.activeChannels, h), { currentSize: l } = p();
8
+ const { channel: e, onChange: t } = r, i = h((o) => o.activeChannels, d), { currentSize: l } = p();
9
9
  return !e || !e.id || !e.label || e.label.trim() === "" ? null : /* @__PURE__ */ n(m, { children: /* @__PURE__ */ n(
10
10
  c,
11
11
  {
12
- control: /* @__PURE__ */ n(d, { value: e.id }),
13
- label: /* @__PURE__ */ n(C, { variant: "bodyStandard", color: "text.primary", ellipsis: !0, size: l, children: e.label }),
12
+ control: /* @__PURE__ */ n(s, { value: e.id }),
13
+ label: /* @__PURE__ */ n(C, { variant: "body", color: "text.primary", ellipsis: !0, size: l, children: e.label }),
14
14
  checked: i.some((o) => o === e.id),
15
15
  onChange: (o, a) => {
16
16
  t(e.id, a);
@@ -1,14 +1,14 @@
1
1
  import { jsx as t, jsxs as i } from "@emotion/react/jsx-runtime";
2
- import { memo as E } from "react";
2
+ import { memo as y } from "react";
3
3
  import { Tooltip as m, Typography as n } from "@m4l/components";
4
- import { EventClusterStyled as y, PointEventStyled as b } from "../../slots/VideoTimeLineSelectorSlots.js";
4
+ import { EventClusterStyled as S, PointEventStyled as b } from "../../slots/VideoTimeLineSelectorSlots.js";
5
5
  import { useTheme as v } from "@mui/material";
6
6
  import { useModuleDictionary as x, getPropertyByString as C } from "@m4l/core";
7
7
  import { VIDEO_TIME_LINE_SELECTOR_DICTIONARY_KEYS as _ } from "../../dictionary.js";
8
8
  import { useVideoTimeLineSelectorStore as g } from "../../store/useVideoTimeLineSelectorStore.js";
9
9
  import { VIDEO_TIME_LINE_SELECTOR_CLASSES as L } from "../../constants.js";
10
- const N = E(({ clusteredEvent: d, onEventClick: o }) => {
11
- const { events: r, position: a, isCluster: s, jumpNextTimeVisible: c } = d, { getLabel: p } = x(), { setTimeVisible: u } = g((e) => e.actions), T = v(), f = () => {
10
+ const N = y(({ clusteredEvent: p, onEventClick: o }) => {
11
+ const { events: r, position: a, isCluster: s, jumpNextTimeVisible: c } = p, { getLabel: d } = x(), { setTimeVisible: u } = g((e) => e.actions), T = v(), f = () => {
12
12
  o && s && (o(r[0].startTime), c && u(c));
13
13
  }, h = (e) => {
14
14
  o && o(e);
@@ -19,22 +19,22 @@ const N = E(({ clusteredEvent: d, onEventClick: o }) => {
19
19
  {
20
20
  arrow: !0,
21
21
  title: /* @__PURE__ */ i("div", { children: [
22
- /* @__PURE__ */ i(n, { variant: "bodyStandard", color: "text.contrastText", fontWeight: "bold", children: [
22
+ /* @__PURE__ */ i(n, { variant: "body", color: "text.contrastText", fontWeight: "bold", children: [
23
23
  r.length,
24
24
  " ",
25
- p(_.event_cluster)
25
+ d(_.event_cluster)
26
26
  ] }),
27
- r.map((e, S) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ i(n, { variant: "captionStandard", color: "text.contrastText", children: [
27
+ r.map((e, E) => /* @__PURE__ */ t("div", { children: /* @__PURE__ */ i(n, { variant: "caption", color: "text.contrastText", children: [
28
28
  /* @__PURE__ */ t("span", { style: { color: C(T.vars.palette, e.color, "text.primary") }, children: "•" }),
29
29
  " ",
30
30
  e.label,
31
31
  " - ",
32
32
  e.startTime.toLocaleTimeString()
33
- ] }) }, S))
33
+ ] }) }, E))
34
34
  ] }),
35
35
  placement: "top",
36
36
  children: /* @__PURE__ */ t(
37
- y,
37
+ S,
38
38
  {
39
39
  className: L.eventCluster,
40
40
  role: "button",
@@ -46,7 +46,7 @@ const N = E(({ clusteredEvent: d, onEventClick: o }) => {
46
46
  children: /* @__PURE__ */ t(
47
47
  n,
48
48
  {
49
- variant: "captionStandard",
49
+ variant: "caption",
50
50
  children: r.length
51
51
  }
52
52
  )
@@ -59,7 +59,7 @@ const N = E(({ clusteredEvent: d, onEventClick: o }) => {
59
59
  m,
60
60
  {
61
61
  arrow: !0,
62
- title: /* @__PURE__ */ i(n, { variant: "bodyStandard", color: "text.contrastText", children: [
62
+ title: /* @__PURE__ */ i(n, { variant: "body", color: "text.contrastText", children: [
63
63
  l.label,
64
64
  /* @__PURE__ */ t("br", {}),
65
65
  l.startTime.toLocaleString()
@@ -1,14 +1,14 @@
1
1
  import { jsx as t, jsxs as e, Fragment as x } from "@emotion/react/jsx-runtime";
2
- import { IndicatorBatteryRootStyled as N, TitleStyled as p, ContentStyled as _, StatusVoltageContainerStyled as B, StatusContainerStyled as S, VoltageContainerStyled as g, ContainerTitleBatteryPorcentageStyled as E, ContainerIconPercentageStyled as R, ContainerStatusVoltageStyled as V } from "./slots/IndicatorBaterySlots.js";
2
+ import { IndicatorBatteryRootStyled as N, TitleStyled as p, ContentStyled as _, StatusVoltageContainerStyled as B, StatusContainerStyled as g, VoltageContainerStyled as f, ContainerTitleBatteryPorcentageStyled as E, ContainerIconPercentageStyled as R, ContainerStatusVoltageStyled as V } from "./slots/IndicatorBaterySlots.js";
3
3
  import { useModuleDictionary as M, useEnvironment as O } from "@m4l/core";
4
4
  import { INDICATOR_BATTERY_DICTIONARY as o } from "./dictionary.js";
5
- import { Icon as f, Typography as n, Chip as C } from "@m4l/components";
5
+ import { Icon as C, Typography as n, Chip as I } from "@m4l/components";
6
6
  import { useBatteryStatus as $ } from "./hooks/useBatteryStatus/useBatteryStatus.js";
7
7
  import { INDICATOR_BATTERY_CLASSES as s, INDICATOR_BATTERY_KEY_COMPONENT as F } from "./constants.js";
8
8
  import Y from "clsx";
9
9
  import { IndicatorBatterySlots as P } from "./slots/IndicatorBatteryEnum.js";
10
10
  import { getPropDataTestId as w } from "../../../utils/testIds.js";
11
- import { INDICATOR_BATTERY_ICONS as I } from "./icons.js";
11
+ import { INDICATOR_BATTERY_ICONS as S } from "./icons.js";
12
12
  import { useMemo as b } from "react";
13
13
  import { GaugeCircular as j } from "../../GaugeCircular/GaugeCircular.js";
14
14
  const at = (a) => {
@@ -20,7 +20,7 @@ const at = (a) => {
20
20
  valueAcceptable: a.valueAcceptable,
21
21
  valueGood: a.valueGood,
22
22
  valueExcellent: a.valueExcellent
23
- }, [a]), { label: u, color: c, maxVoltage: l } = $(T), h = { color: c }, { value: r, className: k, variant: W = "standard", batteryType: v = "main", dataTestId: A } = a, d = b(() => {
23
+ }, [a]), { label: u, color: d, maxVoltage: l } = $(T), h = { color: d }, { value: r, className: k, variant: W = "standard", batteryType: v = "main", dataTestId: A } = a, c = b(() => {
24
24
  if (r == null || r < 0)
25
25
  return 0;
26
26
  if (l && l > 0) {
@@ -36,7 +36,7 @@ const at = (a) => {
36
36
  variant: "text",
37
37
  role: "progressbar",
38
38
  "aria-label": "indicator-battery",
39
- "aria-valuenow": d,
39
+ "aria-valuenow": c,
40
40
  "aria-valuemin": 0,
41
41
  "aria-valuemax": 100,
42
42
  direction: "column",
@@ -45,20 +45,20 @@ const at = (a) => {
45
45
  children: W === "standard" ? /* @__PURE__ */ e(x, { children: [
46
46
  /* @__PURE__ */ t(p, { variant: "captionDens", skeletonWidth: "80px", children: i(v === "main" ? o.titleMain : o.titleBackup) }),
47
47
  /* @__PURE__ */ e(_, { ownerState: h, children: [
48
- /* @__PURE__ */ e(j, { value: d, children: [
49
- /* @__PURE__ */ t(f, { src: `${m}/${y}/${I.batteryStandard}` }),
48
+ /* @__PURE__ */ e(j, { value: c, children: [
49
+ /* @__PURE__ */ t(C, { src: `${m}/${y}/${S.batteryStandard}` }),
50
50
  /* @__PURE__ */ e("div", { style: { display: "flex", alignItems: "flex-end", justifyContent: "center", gap: "2px" }, children: [
51
- /* @__PURE__ */ t(n, { variant: "subtitleStandard", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${d ?? 0}` }),
52
- /* @__PURE__ */ t(n, { variant: "bodyStandard", fontFamily: "Jura", color: "text.primary", skeletonWidth: "10px", children: "%" })
51
+ /* @__PURE__ */ t(n, { variant: "subtitle", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${c ?? 0}` }),
52
+ /* @__PURE__ */ t(n, { variant: "body", fontFamily: "Jura", color: "text.primary", skeletonWidth: "10px", children: "%" })
53
53
  ] })
54
54
  ] }),
55
55
  /* @__PURE__ */ e(B, { children: [
56
- /* @__PURE__ */ e(S, { direction: "row", children: [
57
- /* @__PURE__ */ t(n, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
58
- /* @__PURE__ */ t(C, { label: u, color: c, variant: "contained", skeletonWidth: "70px" })
59
- ] }),
60
56
  /* @__PURE__ */ e(g, { direction: "row", children: [
61
- /* @__PURE__ */ t(n, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
57
+ /* @__PURE__ */ t(n, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
58
+ /* @__PURE__ */ t(I, { label: u, color: d, variant: "contained", skeletonWidth: "70px" })
59
+ ] }),
60
+ /* @__PURE__ */ e(f, { direction: "row", children: [
61
+ /* @__PURE__ */ t(n, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
62
62
  /* @__PURE__ */ t(n, { variant: "bodyDens", fontFamily: "Inter", color: "text.primary", skeletonWidth: "20px", children: r })
63
63
  ] })
64
64
  ] })
@@ -67,17 +67,17 @@ const at = (a) => {
67
67
  /* @__PURE__ */ e(E, { ownerState: h, children: [
68
68
  /* @__PURE__ */ t(p, { variant: "captionDens", skeletonWidth: "80px", children: i(v === "main" ? o.titleMain : o.titleBackup) }),
69
69
  /* @__PURE__ */ e(R, { children: [
70
- /* @__PURE__ */ t(f, { src: `${m}/${y}/${I.batteryCompact}` }),
71
- /* @__PURE__ */ t(n, { variant: "subtitleDens", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${d ?? 0}%` })
70
+ /* @__PURE__ */ t(C, { src: `${m}/${y}/${S.batteryCompact}` }),
71
+ /* @__PURE__ */ t(n, { variant: "subtitleDens", fontFamily: "Jura", color: "text.primary", skeletonWidth: "20px", children: `${c ?? 0}%` })
72
72
  ] })
73
73
  ] }),
74
74
  /* @__PURE__ */ e(V, { children: [
75
- /* @__PURE__ */ e(S, { className: s.statusContainer, children: [
76
- /* @__PURE__ */ t(n, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
77
- /* @__PURE__ */ t(C, { label: u, color: c, variant: "contained", skeletonWidth: "70px" })
75
+ /* @__PURE__ */ e(g, { className: s.statusContainer, children: [
76
+ /* @__PURE__ */ t(n, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.status) }),
77
+ /* @__PURE__ */ t(I, { label: u, color: d, variant: "contained", skeletonWidth: "70px" })
78
78
  ] }),
79
- /* @__PURE__ */ e(g, { className: s.voltageContainer, children: [
80
- /* @__PURE__ */ t(n, { variant: "bodyStandard", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
79
+ /* @__PURE__ */ e(f, { className: s.voltageContainer, children: [
80
+ /* @__PURE__ */ t(n, { variant: "body", color: "text.secondary", skeletonWidth: "70px", children: i(o.voltage) }),
81
81
  /* @__PURE__ */ t(n, { variant: "bodyDens", fontFamily: "Inter", color: "text.primary", skeletonWidth: "20px", children: r })
82
82
  ] })
83
83
  ] })
@@ -6,7 +6,7 @@ const y = (n) => {
6
6
  /* @__PURE__ */ t(a, { variant: "subtitleDens", fontFamily: "Jura", color: "text.secondary", ellipsis: !0, skeletonWidth: "30px", ownerState: {
7
7
  minWidth: r
8
8
  }, children: i }),
9
- e && /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(s, { variant: "bodyStandard", fontFamily: "Jura", skeletonWidth: "15px", ellipsis: !0, children: e }) })
9
+ e && /* @__PURE__ */ t(d, { children: /* @__PURE__ */ t(s, { variant: "body", fontFamily: "Jura", skeletonWidth: "15px", ellipsis: !0, children: e }) })
10
10
  ] });
11
11
  };
12
12
  export {
@@ -9,7 +9,7 @@ const U = (i) => {
9
9
  };
10
10
  return /* @__PURE__ */ t(y, { className: f(c, T.root), "data-testid": d, variant: "text", children: [
11
11
  /* @__PURE__ */ t(x, { children: [
12
- /* @__PURE__ */ e(p, { variant: "bodyStandard", color: "text.secondary", ellipsis: !0, size: n, skeletonWidth: "80px", children: s }),
12
+ /* @__PURE__ */ e(p, { variant: "body", color: "text.secondary", ellipsis: !0, size: n, skeletonWidth: "80px", children: s }),
13
13
  o && /* @__PURE__ */ e(h, { src: o, ownerState: a, color: "text.secondary", tooltipContent: m })
14
14
  ] }),
15
15
  /* @__PURE__ */ t(C, { children: [
@@ -0,0 +1,22 @@
1
+ import { Feature, FeatureId, LayerFeatureIndexById, LayerStore } from '../types';
2
+ /**
3
+ * Creates a collision-safe feature-index key for mixed string and numeric ids.
4
+ */
5
+ export declare function createFeatureIndexKey(featureId: FeatureId): string;
6
+ /**
7
+ * Builds one O(1) feature index for a collection layer from its ordered features array.
8
+ */
9
+ export declare function buildFeatureIndexById(features: Array<Feature>): LayerFeatureIndexById;
10
+ /**
11
+ * Rebuilds the cached feature index for the current layer GeoJSON payload.
12
+ */
13
+ export declare function syncLayerFeatureIndex(layer: LayerStore): void;
14
+ /**
15
+ * Resolves one stable feature index for collection layers, repairing stale caches when needed.
16
+ */
17
+ export declare function getFeatureCollectionFeatureIndex(layer: LayerStore, featureId: FeatureId): number | undefined;
18
+ /**
19
+ * Finds one feature by id inside the current layer payload using the cached index when available.
20
+ */
21
+ export declare function getFeatureFromLayer(layer: LayerStore, featureId: FeatureId): Feature | undefined;
22
+ //# sourceMappingURL=featureLookup.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"featureLookup.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/helpers/featureLookup.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,OAAO,EAEP,SAAS,EACT,qBAAqB,EACrB,UAAU,EACX,MAAM,UAAU,CAAC;AAElB;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,SAAS,EAAE,SAAS,GAAG,MAAM,CAElE;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,GACvB,qBAAqB,CAKvB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,UAAU,QAgBtD;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAC9C,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,MAAM,GAAG,SAAS,CA6BpB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,OAAO,GAAG,SAAS,CAkBrB"}
@@ -0,0 +1,49 @@
1
+ function i(e) {
2
+ return `${typeof e}:${String(e)}`;
3
+ }
4
+ function d(e) {
5
+ return e.reduce((t, n, r) => (t[i(n.id)] = r, t), {});
6
+ }
7
+ function c(e) {
8
+ const t = e.geoJsonObject?.object;
9
+ if (!t) {
10
+ delete e.featureIndexById;
11
+ return;
12
+ }
13
+ if (t.type === "Feature") {
14
+ e.featureIndexById = {
15
+ [i(t.id)]: 0
16
+ };
17
+ return;
18
+ }
19
+ e.featureIndexById = d(t.features);
20
+ }
21
+ function f(e, t) {
22
+ const n = e.geoJsonObject?.object;
23
+ if (!n || n.type !== "FeatureCollection")
24
+ return;
25
+ const r = i(t), o = e.featureIndexById?.[r];
26
+ if (typeof o == "number" && n.features[o]?.id === t)
27
+ return o;
28
+ c(e);
29
+ const u = e.featureIndexById?.[r];
30
+ if (typeof u == "number" && n.features[u]?.id === t)
31
+ return u;
32
+ }
33
+ function s(e, t) {
34
+ const n = e.geoJsonObject?.object;
35
+ if (!n)
36
+ return;
37
+ if (n.type === "Feature")
38
+ return n.id === t ? n : void 0;
39
+ const r = f(e, t);
40
+ if (typeof r == "number")
41
+ return n.features[r];
42
+ }
43
+ export {
44
+ d as buildFeatureIndexById,
45
+ i as createFeatureIndexKey,
46
+ f as getFeatureCollectionFeatureIndex,
47
+ s as getFeatureFromLayer,
48
+ c as syncLayerFeatureIndex
49
+ };
@@ -1,5 +1,6 @@
1
1
  import { LeafletEvent } from 'leaflet';
2
2
  import { Feature, FeatureId, LayerStore, MapFeatureEventType, MapObservableFeatureEvent, MapObservableFeatureAnchorPurpose, MapObservableFeatureAnchorResult, MapObservableFeaturePickResult } from '../types';
3
+ export { getFeatureFromLayer } from './featureLookup';
3
4
  /**
4
5
  * Returns whether one layer is observable and allows the requested event type.
5
6
  */
@@ -8,10 +9,6 @@ export declare function isObservableFeatureEventEnabled(layer: LayerStore | unde
8
9
  * Creates one normalized observable-feature event payload from a raw Leaflet event.
9
10
  */
10
11
  export declare function createObservableFeatureEvent(eventType: MapFeatureEventType, layerId: string, featureId: FeatureId, event: LeafletEvent): MapObservableFeatureEvent;
11
- /**
12
- * Finds one feature by id inside the layer GeoJSON payload.
13
- */
14
- export declare function getFeatureFromLayer(layer: LayerStore, featureId: FeatureId): Feature | undefined;
15
12
  /**
16
13
  * Resolves one deterministic observable-feature anchor using the layer strategy and available geometry metadata.
17
14
  */
@@ -1 +1 @@
1
- {"version":3,"file":"featureObservability.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/helpers/featureObservability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EAGT,UAAU,EACV,mBAAmB,EACnB,yBAAyB,EACzB,iCAAiC,EACjC,gCAAgC,EAChC,8BAA8B,EAG/B,MAAM,UAAU,CAAC;AA4IlB;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,SAAS,EAAE,mBAAmB,GAC7B,KAAK,IAAI,UAAU,CAMrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,mBAAmB,EAC9B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,YAAY,GAClB,yBAAyB,CAS3B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,UAAU,EACjB,SAAS,EAAE,SAAS,GACnB,OAAO,GAAG,SAAS,CAgBrB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,iCAA0C,GAClD,gCAAgC,GAAG,SAAS,CAgC9C;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,yBAAyB,EAChC,OAAO,GAAE,iCAA0C,GAClD,8BAA8B,GAAG,SAAS,CAY5C;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,GACf,gCAAgC,GAAG,SAAS,CAQ9C"}
1
+ {"version":3,"file":"featureObservability.d.ts","sourceRoot":"","sources":["../../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/helpers/featureObservability.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAE5C,OAAO,KAAK,EACV,OAAO,EACP,SAAS,EAGT,UAAU,EACV,mBAAmB,EACnB,yBAAyB,EACzB,iCAAiC,EACjC,gCAAgC,EAChC,8BAA8B,EAG/B,MAAM,UAAU,CAAC;AAClB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AA4ItD;;GAEG;AACH,wBAAgB,+BAA+B,CAC7C,KAAK,EAAE,UAAU,GAAG,SAAS,EAC7B,SAAS,EAAE,mBAAmB,GAC7B,KAAK,IAAI,UAAU,CAMrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,SAAS,EAAE,mBAAmB,EAC9B,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,SAAS,EACpB,KAAK,EAAE,YAAY,GAClB,yBAAyB,CAS3B;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAC5C,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,EAChB,OAAO,GAAE,iCAA0C,GAClD,gCAAgC,GAAG,SAAS,CAgC9C;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,EAChB,KAAK,EAAE,yBAAyB,EAChC,OAAO,GAAE,iCAA0C,GAClD,8BAA8B,GAAG,SAAS,CAY5C;AAED;;;GAGG;AACH,wBAAgB,kCAAkC,CAChD,KAAK,EAAE,UAAU,EACjB,OAAO,EAAE,OAAO,GACf,gCAAgC,GAAG,SAAS,CAQ9C"}
@@ -3,109 +3,99 @@ function s(e) {
3
3
  return typeof e == "number" && Number.isFinite(e);
4
4
  }
5
5
  function v(e) {
6
- const t = e.latlng;
7
- if (t && !(!s(t.lat) || !s(t.lng)))
6
+ const r = e.latlng;
7
+ if (r && !(!s(r.lat) || !s(r.lng)))
8
8
  return {
9
- lat: t.lat,
10
- lng: t.lng
9
+ lat: r.lat,
10
+ lng: r.lng
11
11
  };
12
12
  }
13
13
  function a(e) {
14
14
  if (!Array.isArray(e) || e.length < 2)
15
15
  return;
16
- const [t, r] = e;
17
- if (!(!s(t) || !s(r)))
18
- return { lat: r, lng: t };
16
+ const [r, t] = e;
17
+ if (!(!s(r) || !s(t)))
18
+ return { lat: t, lng: r };
19
19
  }
20
- function d(e, t) {
20
+ function d(e, r) {
21
21
  if (e)
22
- return a(t === "snap" ? e.snapAnchor : t === "measure" ? e.measureAnchor : e.pickAnchor);
22
+ return a(r === "snap" ? e.snapAnchor : r === "measure" ? e.measureAnchor : e.pickAnchor);
23
23
  }
24
24
  function g(e) {
25
25
  if (e.geometry?.type === "Point")
26
26
  return a(e.geometry.coordinates);
27
27
  }
28
28
  function p(e) {
29
- const t = b(e.geometry);
30
- if (t)
29
+ const r = b(e.geometry);
30
+ if (r)
31
31
  return {
32
- lat: (t.southWest[0] + t.northEast[0]) / 2,
33
- lng: (t.southWest[1] + t.northEast[1]) / 2
32
+ lat: (r.southWest[0] + r.northEast[0]) / 2,
33
+ lng: (r.southWest[1] + r.northEast[1]) / 2
34
34
  };
35
35
  }
36
- function u(e, t, r, n, o) {
36
+ function u(e, r, t, n, o) {
37
37
  return {
38
38
  layerId: e.layerId,
39
- featureId: t.id,
39
+ featureId: r.id,
40
40
  anchor: n,
41
41
  source: o,
42
- strategy: r,
42
+ strategy: t,
43
43
  pickable: e.featureObservability?.pickable ?? !0,
44
44
  magnetizable: e.featureObservability?.magnetizable ?? !0
45
45
  };
46
46
  }
47
- function y(e, t) {
47
+ function y(e, r) {
48
48
  return {
49
- ...t,
49
+ ...r,
50
50
  event: e
51
51
  };
52
52
  }
53
- function m(e, t) {
54
- return e?.featureObservability?.enabled ? e.featureObservability.events?.includes(t) ?? !0 : !1;
53
+ function m(e, r) {
54
+ return e?.featureObservability?.enabled ? e.featureObservability.events?.includes(r) ?? !0 : !1;
55
55
  }
56
- function O(e, t, r, n) {
56
+ function A(e, r, t, n) {
57
57
  return {
58
58
  type: e,
59
- layerId: t,
60
- featureId: r,
59
+ layerId: r,
60
+ featureId: t,
61
61
  latlng: v(n),
62
62
  sourceTarget: n.sourceTarget,
63
63
  originalEvent: n
64
64
  };
65
65
  }
66
- function A(e, t) {
67
- const r = e.geoJsonObject?.object;
68
- if (r) {
69
- if (r.type === "Feature")
70
- return r.id === t ? r : void 0;
71
- if (r.type === "FeatureCollection")
72
- return r.features.find((n) => n.id === t);
73
- }
74
- }
75
- function f(e, t, r = "pick") {
66
+ function f(e, r, t = "pick") {
76
67
  if (!e.featureObservability?.enabled)
77
68
  return;
78
- const n = e.featureObservability.anchorStrategy ?? "geometry", o = t.properties, i = d(o, r);
69
+ const n = e.featureObservability.anchorStrategy ?? "geometry", o = r.properties, i = d(o, t);
79
70
  if (n === "feature_property" && i)
80
- return u(e, t, n, i, "feature_property");
71
+ return u(e, r, n, i, "feature_property");
81
72
  if (n !== "bounds_center") {
82
- const l = g(t);
73
+ const l = g(r);
83
74
  if (l)
84
- return u(e, t, n, l, "point_geometry");
75
+ return u(e, r, n, l, "point_geometry");
85
76
  }
86
77
  if (i)
87
- return u(e, t, n, i, "feature_property");
88
- const c = p(t);
78
+ return u(e, r, n, i, "feature_property");
79
+ const c = p(r);
89
80
  if (c)
90
- return u(e, t, n, c, "geometry_bounds_center");
81
+ return u(e, r, n, c, "geometry_bounds_center");
91
82
  }
92
- function F(e, t, r, n = "pick") {
93
- if (!m(e, r.type))
83
+ function O(e, r, t, n = "pick") {
84
+ if (!m(e, t.type))
94
85
  return;
95
- const o = f(e, t, n);
86
+ const o = f(e, r, n);
96
87
  if (!(!o || o.pickable === !1))
97
- return y(r, o);
88
+ return y(t, o);
98
89
  }
99
- function k(e, t) {
100
- const r = f(e, t, "snap");
101
- if (!(!r || r.magnetizable === !1))
102
- return r;
90
+ function k(e, r) {
91
+ const t = f(e, r, "snap");
92
+ if (!(!t || t.magnetizable === !1))
93
+ return t;
103
94
  }
104
95
  export {
105
- O as createObservableFeatureEvent,
106
- A as getFeatureFromLayer,
96
+ A as createObservableFeatureEvent,
107
97
  m as isObservableFeatureEventEnabled,
108
98
  f as resolveObservableFeatureAnchor,
109
- F as resolveObservableFeaturePick,
99
+ O as resolveObservableFeaturePick,
110
100
  k as resolveObservableFeatureSnapTarget
111
101
  };
@@ -1,4 +1,5 @@
1
1
  export { MapProvider, MapContext } from './MapContext';
2
+ export { createFeatureIndexKey, getFeatureFromLayer } from './helpers/featureLookup';
2
3
  export { INTERACTION_CHANNELS } from './types';
3
- export type { RendePropFeatureArgs, ComponentRenderPropFeature, DecimationFilter, DecimationFilterCache, DecimationFilterParams, LayerDecimationConfig, FeatureId, FeatureSelectionSource, LayerFeatureAnchorStrategy, LayerFeatureObservability, FeatureCollection, Feature, FeatureWithCoords, Geometry, Point as GeometryPoint, GeoJsonProperties, MapFeatureEventType, MapObservableFeatureAnchorPurpose, MapObservableFeatureAnchorResult, MapObservableFeatureConsumer, MapObservableFeatureEvent, MapObservableFeaturePickResult, MapObservableFeatureSubscriptionOptions, SelectedFeatureState, InteractionChannel, InteractionOwnerId, InteractionOwnershipState, ViewportPoint, ViewportBounds, LayerDataBounds, ViewportPadding, ViewportActionStatus, ViewportActionResult, ViewportActionBaseOptions, InvalidateViewportSizeOptions, MoveToPointOptions, SmartMoveToPointOptions, MoveToBoundsOptions, } from './types';
4
+ export type { RendePropFeatureArgs, ComponentRenderPropFeature, DecimationFilter, DecimationFilterCache, DecimationFilterParams, LayerDecimationConfig, FeatureId, FeatureSelectionSource, LayerFeatureAnchorStrategy, LayerFeatureIndexById, LayerFeatureObservability, FeatureCollection, Feature, FeatureWithCoords, Geometry, Point as GeometryPoint, GeoJsonProperties, MapFeatureEventType, MapObservableFeatureAnchorPurpose, MapObservableFeatureAnchorResult, MapObservableFeatureConsumer, MapObservableFeatureEvent, MapObservableFeaturePickResult, MapObservableFeatureSubscriptionOptions, SelectedFeatureState, InteractionChannel, InteractionOwnerId, InteractionOwnershipState, ViewportPoint, ViewportBounds, LayerDataBounds, ViewportPadding, ViewportActionStatus, ViewportActionResult, ViewportActionBaseOptions, InvalidateViewportSizeOptions, MoveToPointOptions, SmartMoveToPointOptions, MoveToBoundsOptions, } from './types';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,sBAAsB,EACtB,0BAA0B,EAC1B,yBAAyB,EACzB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,KAAK,IAAI,aAAa,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,uCAAuC,EACvC,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../../../../packages/gclick/src/components/maps/components/GpsMap/contexts/MapContext/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAC/C,YAAY,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,sBAAsB,EACtB,0BAA0B,EAC1B,qBAAqB,EACrB,yBAAyB,EACzB,iBAAiB,EACjB,OAAO,EACP,iBAAiB,EACjB,QAAQ,EACR,KAAK,IAAI,aAAa,EACtB,iBAAiB,EACjB,mBAAmB,EACnB,iCAAiC,EACjC,gCAAgC,EAChC,4BAA4B,EAC5B,yBAAyB,EACzB,8BAA8B,EAC9B,uCAAuC,EACvC,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,EACpB,yBAAyB,EACzB,6BAA6B,EAC7B,kBAAkB,EAClB,uBAAuB,EACvB,mBAAmB,GACpB,MAAM,SAAS,CAAC"}