@m4l/components 0.2.4 → 0.2.6

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 (97) hide show
  1. package/components/DataGrid/{index.8fbcf147.js → index.d14640ca.js} +5 -5
  2. package/components/DataGrid/subcomponents/Actions/{index.bad681dc.js → index.3afb1664.js} +1 -1
  3. package/components/DynamicFilter/{index.cd7691e0.js → index.118c9d62.js} +1 -1
  4. package/components/ObjectLogs/{index.9c353020.js → index.070914d9.js} +2 -2
  5. package/components/PropertyValue/{index.37d91d0c.js → index.3b5c9ac7.js} +1 -1
  6. package/components/areas/components/AreasAdmin/{index.a14ba797.js → index.27c6d03e.js} +1 -1
  7. package/components/areas/components/AreasViewer/{index.c4545f2d.js → index.374d105d.js} +3 -3
  8. package/components/areas/contexts/AreasContext/{index.54893ef7.js → index.287ec96e.js} +2 -2
  9. package/components/areas/hooks/useAreas/{index.a15b3d9c.js → index.66c6cf2f.js} +1 -1
  10. package/components/hook-form/RHFRadioGroup/{index.7deb4e48.js → index.3b17819b.js} +1 -1
  11. package/components/index.d.ts +0 -1
  12. package/components/mui_extended/Accordion/{index.b9b427d7.js → index.22b4a776.js} +1 -1
  13. package/components/mui_extended/Tab/{index.724d5948.js → index.32349e95.js} +5 -5
  14. package/hooks/useTab/{index.991b13a7.js → index.f24a704c.js} +1 -1
  15. package/index.js +35 -52
  16. package/package.json +1 -1
  17. package/{vendor.8f8b0ac9.js → vendor.632361a1.js} +11 -13
  18. package/components/hook-form/HelperError/index.66bbcac3.js +0 -30
  19. package/components/hook-form/RHFHelperError/index.d.ts +0 -4
  20. package/components/maps/components/GpsTools/GpsTools.d.ts +0 -1
  21. package/components/maps/components/GpsTools/classes/index.d.ts +0 -4
  22. package/components/maps/components/GpsTools/classes/types.d.ts +0 -20
  23. package/components/maps/components/GpsTools/constants.d.ts +0 -8
  24. package/components/maps/components/GpsTools/contexts/GpsToolsContext/index.d.ts +0 -19
  25. package/components/maps/components/GpsTools/contexts/GpsToolsContext/store.d.ts +0 -16
  26. package/components/maps/components/GpsTools/contexts/GpsToolsContext/types.d.ts +0 -173
  27. package/components/maps/components/GpsTools/dictionary.d.ts +0 -64
  28. package/components/maps/components/GpsTools/hooks/useLayers/index.d.ts +0 -1
  29. package/components/maps/components/GpsTools/hooks/useMapTools/index.d.ts +0 -2
  30. package/components/maps/components/GpsTools/icons.d.ts +0 -15
  31. package/components/maps/components/GpsTools/index.889b0c39.js +0 -2313
  32. package/components/maps/components/GpsTools/index.d.ts +0 -2
  33. package/components/maps/components/GpsTools/subcomponents/TabTools/index.d.ts +0 -9
  34. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/constants.d.ts +0 -7
  35. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useCheckedFeatures.d.ts +0 -9
  36. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useCheckedGeofences.d.ts +0 -4
  37. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useColumns.d.ts +0 -9
  38. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useMaster.d.ts +0 -20
  39. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/hooks/useRowActionsGetter.d.ts +0 -9
  40. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/index.d.ts +0 -1
  41. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/model.d.ts +0 -122
  42. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/ColumnSetCheckFormatter/index.d.ts +0 -8
  43. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/ColumnSetCheckFormatter/types.d.ts +0 -5
  44. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/constants.d.ts +0 -20
  45. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/helpers.d.ts +0 -7
  46. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useDrawing.d.ts +0 -11
  47. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSubmit.d.ts +0 -8
  48. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useSumbitErrorsFocus.d.ts +0 -5
  49. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/hooks/useValidation.d.ts +0 -22
  50. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/index.d.ts +0 -1
  51. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/index.d.ts +0 -1
  52. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/types.d.ts +0 -6
  53. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/ConfigData/validations.d.ts +0 -5
  54. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/index.d.ts +0 -1
  55. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/types.d.ts +0 -7
  56. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/GeneralData/validations.d.ts +0 -6
  57. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyActions/index.d.ts +0 -1
  58. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/MyTabs/index.d.ts +0 -1
  59. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/index.d.ts +0 -1
  60. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/FillData/index.d.ts +0 -1
  61. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/subcomponents/StrokeData/index.d.ts +0 -1
  62. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/subcomponents/StyleData/types.d.ts +0 -10
  63. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofenceAddEdit/types.d.ts +0 -25
  64. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/index.d.ts +0 -1
  65. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/GeofencesList/subcomponents/Filter/index.d.ts +0 -7
  66. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/GeofencesTool/subcomponents/PolylineWithArrows/index.d.ts +0 -9
  67. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/constants.d.ts +0 -30
  68. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useMeasure.d.ts +0 -31
  69. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/hooks/useValidation.d.ts +0 -10
  70. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/index.d.ts +0 -1
  71. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/index.d.ts +0 -1
  72. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/types.d.ts +0 -6
  73. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MeasureData/validations.d.ts +0 -2
  74. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/subcomponents/MyActions/index.d.ts +0 -1
  75. package/components/maps/components/GpsTools/subcomponents/TabTools/subcomponents/MeasureTool/types.d.ts +0 -9
  76. package/components/maps/components/GpsTools/types.d.ts +0 -34
  77. package/components/maps/components/Map/Map.d.ts +0 -2
  78. package/components/maps/components/Map/classes/index.d.ts +0 -5
  79. package/components/maps/components/Map/classes/types.d.ts +0 -19
  80. package/components/maps/components/Map/constants.d.ts +0 -10
  81. package/components/maps/components/Map/contexts/MapContext/MapContext.d.ts +0 -19
  82. package/components/maps/components/Map/contexts/MapContext/helper.d.ts +0 -8
  83. package/components/maps/components/Map/contexts/MapContext/index.d.ts +0 -2
  84. package/components/maps/components/Map/contexts/MapContext/store.d.ts +0 -16
  85. package/components/maps/components/Map/contexts/MapContext/types.d.ts +0 -354
  86. package/components/maps/components/Map/hooks/useMapStore/index.d.ts +0 -3
  87. package/components/maps/components/Map/index.665e5c5d.js +0 -474
  88. package/components/maps/components/Map/index.d.ts +0 -5
  89. package/components/maps/components/Map/subcomponents/LayersContainer/index.d.ts +0 -2
  90. package/components/maps/components/Map/subcomponents/LeafletLayer/index.d.ts +0 -3
  91. package/components/maps/components/Map/subcomponents/LeafletLayer/types.d.ts +0 -2
  92. package/components/maps/components/Map/subcomponents/MainTools/index.d.ts +0 -2
  93. package/components/maps/components/Map/subcomponents/MainTools/types.d.ts +0 -5
  94. package/components/maps/components/Map/types.d.ts +0 -28
  95. package/components/maps/index.d.ts +0 -3
  96. package/hooks/useFormReadyForUpdate/index.d.ts +0 -6
  97. package/hooks/useFormReadyForUpdate/index.f60f500e.js +0 -20
@@ -1,2 +0,0 @@
1
- export { GpsTools } from './GpsTools';
2
- export { useMapToolsStore } from './hooks/useMapTools';
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TabAction {
3
- id: string;
4
- icon?: string | React.ReactElement;
5
- component: React.ReactNode;
6
- label: string;
7
- className?: string;
8
- }
9
- export declare function TabTools(): import("react").ReactPortal | null;
@@ -1,7 +0,0 @@
1
- export declare const ENDPOINT_GEOFENCE_GET = "geofences";
2
- export declare const ENDPOINT_GEOFENCE_NEW_EDIT = "geofences";
3
- export declare enum GeofencesFeaturesLayers {
4
- LAYER_GEOFENCES = "geofences",
5
- LAYER_GEOFENCES_TRANSIT_FEATURES = "geofencesCrossingFeatures",
6
- LAYER_GEOFENCES_INTERNAL_FEATURES = "geofencesInternalFeatures"
7
- }
@@ -1,9 +0,0 @@
1
- import { GeofencesFeaturesLayers } from '../constants';
2
- /**
3
- * Hook encargado de cargar los features y pintarlos cuando los seleccionen
4
- * @param layerId
5
- * @param featuresType
6
- * @param endpoint
7
- * @returns
8
- */
9
- export declare function useCheckedFeatures(layerId: GeofencesFeaturesLayers, featuresType: 'CrossingFeatures' | 'InternalFeatures', endpoint: string): [ReadonlySet<number>, (newFeatures: ReadonlySet<number>) => void];
@@ -1,4 +0,0 @@
1
- export declare function useCheckedGeofences(): {
2
- checkedGeofences: ReadonlySet<number>;
3
- setCheckedGeofences: (newGeofences: ReadonlySet<number>) => void;
4
- };
@@ -1,9 +0,0 @@
1
- import { GeofenceListModel } from '../model';
2
- import { Column } from 'react-data-grid';
3
- declare type UseColumnsProps<Row> = {
4
- rowKeyGetter: (row: Row) => number;
5
- };
6
- export declare function useColumns(props: UseColumnsProps<GeofenceListModel>): {
7
- columns: Column<GeofenceListModel, unknown>[];
8
- };
9
- export {};
@@ -1,20 +0,0 @@
1
- /// <reference types="react" />
2
- import { GeofenceId } from '../../../../../contexts/GpsToolsContext/types';
3
- import { GeofenceListModel } from '../model';
4
- export declare function useMaster(): {
5
- rowKeyGetter: (row: GeofenceListModel) => number;
6
- columns: import("react-data-grid").Column<GeofenceListModel, unknown>[];
7
- refresh: () => void;
8
- setBackendQueryParams: import("react").Dispatch<import("react").SetStateAction<Record<string, unknown>>>;
9
- pagerState: import("@m4l/core").PagerState;
10
- rows: GeofenceListModel[];
11
- onPageChange: (newPage: number) => void;
12
- onRowsPerPageChange: (newRowsPerPage: number) => void;
13
- rowActionsGetter: (row: GeofenceListModel) => [] | import("../../../../../../../..").MenuAction[];
14
- selectedRows: ReadonlySet<number>;
15
- onSelectedRowsChange: (newRowsSelectSet: ReadonlySet<GeofenceId>) => void;
16
- checkedRows: ReadonlySet<number>;
17
- onCheckedRowsChange: (newGeofences: ReadonlySet<number>) => void;
18
- setRows: import("react").Dispatch<import("react").SetStateAction<GeofenceListModel[]>>;
19
- goToAddEdit: (geofenceId?: number | undefined) => void;
20
- };
@@ -1,9 +0,0 @@
1
- import { MenuAction } from '../../../../../../../../mui_extended';
2
- import { GeofenceListModel } from '../model';
3
- interface UseRowActionsProps {
4
- fullRefresh: (id?: number) => void;
5
- }
6
- export declare function useRowActionsGetter(props: UseRowActionsProps): {
7
- rowActionsGetter: (row: GeofenceListModel) => MenuAction[] | [];
8
- };
9
- export {};
@@ -1 +0,0 @@
1
- export declare function GeofencesTool(): import("react/jsx-runtime").JSX.Element;
@@ -1,122 +0,0 @@
1
- import { GeofenceId } from '../../../../contexts/GpsToolsContext/types';
2
- import type { Feature, GeoJsonProperties, LineString, MultiLineString, MultiPoint, MultiPolygon, Point, Polygon } from '../../../../../Map/contexts/MapContext/types';
3
- /**
4
- * @description Tipos de geometría compatibles con las geocercas
5
- * @interface GeofenceGeometry
6
- */
7
- export declare type GeofenceGeometry = Point | Polygon | MultiPolygon;
8
- /**
9
- * @description Tipos de geometría Compatibles con las geocercas
10
- * @interface CrossingGeometry
11
- */
12
- export declare type CrossingGeometry = Polygon | Point;
13
- /**
14
- * @description Tipos de features de transtio soportados
15
- * @interface CrossingFeature
16
- */
17
- export declare type CrossingFeature = Feature<CrossingGeometry>;
18
- export declare type InternalGeometry = Point | Polygon | MultiPolygon | MultiPoint | LineString | MultiLineString;
19
- /**
20
- * @description Tipos de features de transtio soportados
21
- * @interface InternalFeature
22
- */
23
- export declare type InternalFeature = Feature<InternalGeometry>;
24
- export declare type GeofenceTypeId = 'gt_polygon' | 'gt_circle' | 'gt_rectangle' | 'gt_multipolygon';
25
- export declare type GeofenceType = {
26
- id: GeofenceTypeId;
27
- name: string;
28
- };
29
- /**
30
- * @description Modelo de datos proveniente del endpoint get de geocercas
31
- * @interface GeofenceGetModel
32
- */
33
- export interface GeofenceGetModel {
34
- /**
35
- * id de la geocerca
36
- */
37
- id: GeofenceId;
38
- /**
39
- * "name" nombre dado por el cliente a la geocerca
40
- */
41
- name: string;
42
- /**
43
- * "active" si está activa o no lo geocerca
44
- */
45
- active: boolean;
46
- /**
47
- * "type" tipo de geocerca con idioma
48
- */
49
- type: GeofenceType;
50
- /**
51
- * "geometry" geometría de la geocerca compatible con GeoJSON
52
- */
53
- geometry: GeofenceGeometry;
54
- /**
55
- * "properties" propiedades de la geometria
56
- */
57
- properties: GeoJsonProperties;
58
- /**
59
- * timeMinInSeconds indica el tiempo mínimo para ingresar a una geocerca
60
- */
61
- timeMinInSeconds: number;
62
- /**
63
- * timeMinOutSeconds indica el tiempo mínimo para salir de una geocerca
64
- */
65
- timeMinOutSeconds: number;
66
- /**
67
- * "countCrossingFeatures" indica si la cantidad de features de cruce
68
- */
69
- countCrossingFeatures: number;
70
- /**
71
- * "countInternalFeatures" indica la cantidad de features internos que tiene la geocerca
72
- */
73
- countInternalFeatures: number;
74
- /**
75
- * "alias" alias de la geocerca, si no tiene es null y si tiene, es un string unico en todas las geocercas
76
- */
77
- alias?: string | null;
78
- /**
79
- * customerId indica el id del cliente al que pertenece la geocerca, si no tiene es null,
80
- * si es de un cliente es un string unico en todas las geocercas
81
- */
82
- customerId?: string | null;
83
- createdAt: string;
84
- updatedAt: string | null;
85
- }
86
- interface AuthUserOptionsType {
87
- activation: boolean;
88
- delete: boolean;
89
- edit: boolean;
90
- }
91
- /**
92
- * @description Modelo de datos proveniente del endpoint list de geocercas
93
- * @interface GeofenceListModel
94
- */
95
- export interface GeofenceListModel extends Omit<GeofenceGetModel, 'geometry'> {
96
- /**
97
- * "geometry" geometría de la geocerca compatible con GeoJSON
98
- */
99
- geometry: GeofenceGeometry | null;
100
- authUserOptions: AuthUserOptionsType;
101
- }
102
- /**
103
- * @description Modelo de datos para enviar al endpoint de creacion de geocercas
104
- * @interface GeofenceNewModel
105
- */
106
- export interface GeofenceNewModel extends Pick<GeofenceGetModel, 'name' | 'geometry' | 'properties' | 'timeMinInSeconds' | 'timeMinOutSeconds' | 'alias' | 'customerId'> {
107
- /**
108
- * "type" tipo de geocerca con idioma
109
- */
110
- typeId: GeofenceTypeId;
111
- }
112
- /**
113
- * @description Modelo de datos para enviar al endpoint de creacion de geocercas
114
- * @interface GeofenceNewModel
115
- */
116
- export interface GeofenceEditModel extends GeofenceNewModel {
117
- /**
118
- * id de la geocerca
119
- */
120
- geofenceId: GeofenceId;
121
- }
122
- export {};
@@ -1,8 +0,0 @@
1
- import { FormatterProps } from 'react-data-grid';
2
- import { ColumnSetCheckFormatterProps } from './types';
3
- /**
4
- * @description ColumnInteractiveCheckFormatter: Es un formateador de columna booleano que permite la interacción directa
5
- * acualizando un Set pasado en el memomento de creación de las columnas
6
- * sin la necesidad de entrar en edición como lo hace un editor
7
- */
8
- export declare function ColumnSetCheckFormatter<Row>(parameters: ColumnSetCheckFormatterProps<Row>): (props: FormatterProps<Row>) => import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- export declare type ColumnSetCheckFormatterProps<Row> = {
2
- field: string;
3
- rowKeyGetter: (row: Row) => number;
4
- useHook: (field: string) => [ReadonlySet<number>, (newFeatures: ReadonlySet<number>) => void];
5
- };
@@ -1,20 +0,0 @@
1
- import { FormAddEditValues } from './types';
2
- export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
3
- export declare const STROKE_OPACITY_DEFAULT: {
4
- value: number;
5
- label: string;
6
- };
7
- export declare const STROKE_WHEIGTH_DEFAULT: {
8
- value: number;
9
- label: string;
10
- };
11
- export declare const STROKE_DASH_ARRAY_DEFAULT: {
12
- value: string;
13
- label: string;
14
- };
15
- export declare const FILL_COLOR_DEFAULT = "#aa3000";
16
- export declare const FILL_OPACITY_DEFAULT: {
17
- value: number;
18
- label: string;
19
- };
20
- export declare const initialValues: FormAddEditValues;
@@ -1,7 +0,0 @@
1
- import { GeofenceGeometry, GeofenceGetModel, GeofenceTypeId } from '../../model';
2
- import { FormAddEditValues } from './types';
3
- import * as L from 'leaflet';
4
- export declare const formatDataEnpoint: (response: {
5
- data: GeofenceGetModel;
6
- }) => FormAddEditValues;
7
- export declare const getLayerFromGeometry: (geometry: GeofenceGeometry | null, geofenceTypeId: GeofenceTypeId | null, radius: number | null) => L.Polygon<any> | L.Circle<any> | null;
@@ -1,11 +0,0 @@
1
- /**
2
- * hook Encargado manejar los eventos de dibujo y setear en hook forms values,
3
- * los datos asociados a una geocerca
4
- * @returns
5
- */
6
- export declare function useDrawing(): {
7
- inEdition: boolean;
8
- handleDraw: () => void;
9
- handleFinish: () => void;
10
- geometrTypeIdCached: "gt_polygon" | "gt_circle" | "gt_rectangle" | "gt_multipolygon" | null;
11
- };
@@ -1,8 +0,0 @@
1
- import { FieldValues } from 'react-hook-form';
2
- import { FormAddEditValues } from '../types';
3
- export interface UseSubmitProps {
4
- objectId?: number;
5
- }
6
- export declare function useSubmit(props: UseSubmitProps): {
7
- onSubmit: (data: FormAddEditValues | FieldValues) => Promise<void>;
8
- };
@@ -1,5 +0,0 @@
1
- /**
2
- * Este hook se encarga de hacer focus en el primer campo con error,
3
- * se pasa de tab previamente si esta en otro
4
- */
5
- export declare function useSumbitErrorsFocus(): void;
@@ -1,22 +0,0 @@
1
- import * as Yup from 'yup';
2
- export declare function useValidation(): {
3
- validationSchema: Yup.ObjectSchema<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
4
- timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
5
- timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
6
- name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
7
- geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
8
- geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
9
- }>, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
10
- timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
11
- timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
12
- name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
13
- geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
14
- geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
15
- }>>, import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
16
- timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
17
- timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
18
- name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
19
- geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
20
- geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
21
- }>>>;
22
- };
@@ -1 +0,0 @@
1
- export declare function GeofenceAddEdit(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function ConfigData(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- export interface FormConfigDataValues {
2
- alias: string | null;
3
- customerId: string | null;
4
- timeMinInSeconds: number;
5
- timeMinOutSeconds: number;
6
- }
@@ -1,5 +0,0 @@
1
- import { GetLabelType } from '@m4l/core';
2
- export declare function ConfigDataValidation(getLabel: GetLabelType): {
3
- timeMinInSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
4
- timeMinOutSeconds: import("yup/lib/number").RequiredNumberSchema<number | undefined, import("yup/lib/types").AnyObject>;
5
- };
@@ -1 +0,0 @@
1
- export declare function GeneralData(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { GeofenceTypeItem } from "../../../../../../../../types";
2
- import { GeofenceGeometry } from "../../../../model";
3
- export interface FormGeneralDataValues {
4
- name: string;
5
- geometry: GeofenceGeometry | null;
6
- geofenceType: GeofenceTypeItem | null;
7
- }
@@ -1,6 +0,0 @@
1
- import { GetLabelType } from '@m4l/core';
2
- export declare function GeneralDataValidation(getLabel: GetLabelType): {
3
- name: import("yup/lib/string").RequiredStringSchema<string | undefined, import("yup/lib/types").AnyObject>;
4
- geometry: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
5
- geofenceType: import("yup/lib/object").RequiredObjectSchema<import("yup/lib/object").ObjectShape, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<import("yup/lib/object").ObjectShape> | null>;
6
- };
@@ -1 +0,0 @@
1
- export declare function MyActions(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function MyTabs(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function StyleData(): import("react/jsx-runtime").JSX.Element;
@@ -1,10 +0,0 @@
1
- import { Maybe } from "@m4l/core";
2
- import { StyleOpacity, StyleDashArray, StyleWheight } from "../../../../../../../../types";
3
- export interface FormStyleDataValues {
4
- strokeColor?: string;
5
- strokeOpacity?: Maybe<StyleOpacity>;
6
- strokeWeight?: Maybe<StyleWheight>;
7
- strokeDashArray?: Maybe<StyleDashArray>;
8
- fillColor?: string;
9
- fillOpacity?: Maybe<StyleOpacity>;
10
- }
@@ -1,25 +0,0 @@
1
- import { StyleOpacity, StyleDashArray, StyleWheight } from '../../../../../../types';
2
- import { GeofenceGetModel } from '../../model';
3
- import { FormConfigDataValues } from './subcomponents/ConfigData/types';
4
- import { FormGeneralDataValues } from './subcomponents/GeneralData/types';
5
- import { FormStyleDataValues } from './subcomponents/StyleData/types';
6
- export declare type ResponseGet = {
7
- data: GeofenceGetModel;
8
- };
9
- export declare type FormAddEditValues = FormGeneralDataValues & FormConfigDataValues & FormStyleDataValues & {
10
- inEdition: boolean;
11
- lat?: number | null;
12
- lng?: number | null;
13
- properties: {
14
- radius?: number | null;
15
- strokeColor: string;
16
- strokeOpacity: StyleOpacity;
17
- strokeWeight: StyleWheight;
18
- strokeDashArray: StyleDashArray;
19
- fillColor: string;
20
- fillOpacity: StyleOpacity;
21
- };
22
- };
23
- export interface GeofenceAddEditProps {
24
- geofenceId?: number;
25
- }
@@ -1 +0,0 @@
1
- export declare function GeofencesList(): import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- interface FilterProps {
3
- refresh: () => void;
4
- setBackendQueryParams: React.Dispatch<React.SetStateAction<Record<string, unknown>>>;
5
- }
6
- export declare function Filter(props: FilterProps): import("react/jsx-runtime").JSX.Element;
7
- export {};
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- import { LatLngExpression } from 'leaflet';
3
- import { PolylineProps } from 'react-leaflet';
4
- interface PolylineWithArrowsProps extends PolylineProps {
5
- positions: LatLngExpression[];
6
- enableEdit?: boolean;
7
- }
8
- export declare const PolylineWithArrows: React.FC<PolylineWithArrowsProps>;
9
- export default PolylineWithArrows;
@@ -1,30 +0,0 @@
1
- import { FormMeasureValues } from './types';
2
- export declare const STROKE_COLOR_DEFAULT = "#aaccaa";
3
- export declare const STROKE_OPACITY_DEFAULT: {
4
- value: number;
5
- label: string;
6
- };
7
- export declare const STROKE_WHEIGTH_DEFAULT: {
8
- value: number;
9
- label: string;
10
- };
11
- export declare const STROKE_DASH_ARRAY_DEFAULT: {
12
- value: string;
13
- label: string;
14
- };
15
- export declare const FILL_COLOR_DEFAULT = "#aa3000";
16
- export declare const FILL_OPACITY_DEFAULT: {
17
- value: number;
18
- label: string;
19
- };
20
- export declare const INITIAL_FORM_VALUES: FormMeasureValues;
21
- export declare const STYLE_MEASURE_OPTIONS: {
22
- strokeLineColor: string;
23
- strokeLineWeight: number;
24
- markerHeight: number;
25
- markerWidth: number;
26
- labelMarkerHeight: number;
27
- labelMarkerWidth: number;
28
- labelMarkerAnchorY: number;
29
- labelMarkerAnchorX: number;
30
- };
@@ -1,31 +0,0 @@
1
- import * as L from 'leaflet';
2
- import { MagnitudeFactorItem } from '../../../../../types';
3
- import { StatusEdition } from '../types';
4
- /**
5
- * hook Encargado manejar los eventos de dibujo y setear en hook forms values,
6
- * los datos asociados a una geocerca
7
- * @returns
8
- */
9
- export declare type MeasurePoint = {
10
- marker: L.Marker;
11
- labelMarker: L.Marker;
12
- formatDistanceFromPrevious: string | undefined;
13
- };
14
- export interface RefCurrentMeasure {
15
- dragging: boolean;
16
- addMarker: boolean;
17
- measurePoints: Array<MeasurePoint>;
18
- layerLine?: L.Polyline;
19
- magnitudFactor: MagnitudeFactorItem;
20
- }
21
- /**
22
- * useMeasure hook se encarga de pintar las marcas y una línea que las une, para calcular la distancia o el area
23
- * de ellas. En su primera versión no incluye agregar nuevas marcas entre los vertices por facilidad de implementación
24
- * ya que el costo beneficio es muy alto si se coloca esa capacidad.
25
- * @returns
26
- */
27
- export declare function useMeasure(): {
28
- statusEdition: StatusEdition;
29
- magnitudFactor: MagnitudeFactorItem;
30
- value: number;
31
- };
@@ -1,10 +0,0 @@
1
- import * as Yup from 'yup';
2
- export declare function useValidation(): {
3
- validationSchema: Yup.ObjectSchema<{
4
- [x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
5
- }, import("yup/lib/object").AnyObject, import("yup/lib/object").TypeOfShape<{
6
- [x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
7
- }>, import("yup/lib/object").AssertsShape<{
8
- [x: string]: Yup.AnySchema<any, any, any> | import("yup/lib/Reference").default<unknown> | import("yup/lib/Lazy").default<any, any>;
9
- }>>;
10
- };
@@ -1 +0,0 @@
1
- export declare function MeasureTool(): import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare function MeasureData(): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +0,0 @@
1
- import { MagnitudeFactorItem, MeasureTypeId } from "../../../../../../types";
2
- export interface FormGeneralDataValues {
3
- measureTypeId: MeasureTypeId;
4
- magnitudFactor?: MagnitudeFactorItem | null;
5
- unitArea?: MagnitudeFactorItem | null;
6
- }
@@ -1,2 +0,0 @@
1
- import { GetLabelType } from '@m4l/core';
2
- export declare function MeasureDataValidation(getLabel: GetLabelType): {};
@@ -1 +0,0 @@
1
- export declare function MyActions(): import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- import { FormStatusLoad } from '../../../../../../../../contexts';
2
- import { FormGeneralDataValues } from './subcomponents/MeasureData/types';
3
- export declare type StatusEdition = 'initial' | 'draw';
4
- export declare type FormMeasureValues = FormGeneralDataValues & {
5
- statusLoad: FormStatusLoad;
6
- reInits: number;
7
- statusEdition: StatusEdition;
8
- value: string | null;
9
- };
@@ -1,34 +0,0 @@
1
- import { GeofenceTypeId } from "./subcomponents/TabTools/subcomponents/GeofencesTool/model";
2
- /**
3
- * Por ahora solo distancia.
4
- */
5
- export declare type MeasureTypeId = 'distance';
6
- export interface MeasureTypeItem {
7
- id: MeasureTypeId;
8
- name: string;
9
- }
10
- export interface MagnitudeFactorItem {
11
- id: string;
12
- name: string;
13
- symbol: string;
14
- factor_x0: number;
15
- factor_x1: number;
16
- factor_x2: number;
17
- }
18
- export interface GeofenceTypeItem {
19
- id: GeofenceTypeId;
20
- name: string;
21
- url: string;
22
- }
23
- export interface StyleOpacity {
24
- value: number;
25
- label: string;
26
- }
27
- export interface StyleWheight {
28
- value: number;
29
- label: string;
30
- }
31
- export interface StyleDashArray {
32
- value: string;
33
- label: string;
34
- }
@@ -1,2 +0,0 @@
1
- import { MapProps } from './types';
2
- export declare function Map(props: MapProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { MapClasses } from './types';
2
- import { OwnerState } from '../contexts/MapContext/types';
3
- export declare const mapClasses: MapClasses;
4
- export declare const useMapUtilityClasses: (ownerState: OwnerState) => Record<"root" | "mapContainer" | "svgLayersContainer" | "svgLayer" | "svgLayerMultiPoints" | "layerMarker" | "mainToolsRoot" | "measureMarkerRoot" | "measureMarkerContainer" | "measureMarkerContainerRhomb" | "measureMarkerContainerSlot" | "measureMarkerContainerSlotNumber" | "measureLabelMarkerRoot" | "measureLabelMarkerContainer" | "measureLabelMarkerDistance" | "measureLabelMarkerRemove", string>;
5
- export declare type Classes = ReturnType<typeof useMapUtilityClasses>;
@@ -1,19 +0,0 @@
1
- export interface MapClasses {
2
- root: string;
3
- mapContainer: string;
4
- svgLayersContainer: string;
5
- svgLayer: string;
6
- svgLayerMultiPoints: string;
7
- layerMarker: string;
8
- mainToolsRoot: string;
9
- measureMarkerRoot: string;
10
- measureMarkerContainer: string;
11
- measureMarkerContainerRhomb: string;
12
- measureMarkerContainerSlot: string;
13
- measureMarkerContainerSlotNumber: string;
14
- measureLabelMarkerRoot: string;
15
- measureLabelMarkerContainer: string;
16
- measureLabelMarkerDistance: string;
17
- measureLabelMarkerRemove: string;
18
- }
19
- export declare type MapClassesKey = keyof MapClasses;
@@ -1,10 +0,0 @@
1
- export declare const COMPONENT_TEST_ID = "M4LMap";
2
- export declare const COMPONENT_CLASS_NAME = "M4LMap";
3
- export declare const EARTH_RADIO = 6378137;
4
- export declare const DN = 500;
5
- export declare const DE = 500;
6
- export declare const DLAT: number;
7
- export declare const THROTTLE_RENDER_MAP_TIMEOUT = 50;
8
- export declare const MAP_ZINDEX_DEFAULT = 0;
9
- export declare const MAP_ZINDEX_OVER_LAYERS = 1000;
10
- export declare const MAP_ZINDEX_OVER_MAP = 1100;