@m4l/components 1.0.11 → 1.0.13
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/components/AccountPopover/{index.62b1290b.js → index.f22ad364.js} +4 -4
- package/components/AppBar/{index.b48343d8.js → index.8d90ce87.js} +4 -4
- package/components/CommonActions/components/ActionCancel/index.609a78ca.js +12 -0
- package/components/CommonActions/components/ActionFormCancel/index.a1318eac.js +56 -0
- package/components/CommonActions/components/ActionFormIntro/index.34d569d1.js +33 -0
- package/components/CommonActions/components/ActionIntro/index.ebac0bc1.js +25 -0
- package/components/CommonActions/components/Actions/index.258bf919.js +71 -0
- package/components/DataGrid/constants.e334cd50.js +10 -0
- package/components/DataGrid/formatters/ColumnBooleanFormatter/index.7fb1ebaa.js +26 -0
- package/components/DataGrid/formatters/ColumnConcatenatedValueFormatter/index.0ee10612.js +22 -0
- package/components/DataGrid/formatters/ColumnDateFormatter/index.e00d0cf2.js +19 -0
- package/components/DataGrid/formatters/ColumnInteractiveCheckFormatter/index.dce9ada8.js +23 -0
- package/components/DataGrid/formatters/ColumnNestedValueFormatter/index.880e743b.js +14 -0
- package/components/DataGrid/formatters/ColumnPointsFormatter/index.226cc583.js +10 -0
- package/components/DataGrid/formatters/ColumnPriceFormatter/index.bf9d9e60.js +10 -0
- package/components/DataGrid/formatters/ColumnSetCheckFormatter/index.4045b2f2.js +36 -0
- package/components/DataGrid/formatters/ColumnUncertaintyFormatter/index.a87302d1.js +10 -0
- package/components/DataGrid/formatters/index.2c2f0ae4.js +1 -0
- package/components/DataGrid/index.68e19254.js +915 -0
- package/components/DataGrid/subcomponents/Actions/index.6b044e84.js +596 -0
- package/components/DataGrid/subcomponents/editors/TextEditor/index.3f0d9e28.js +76 -0
- package/components/DragResizeWindow/{index.8b3e79f7.js → index.a358789f.js} +6 -3
- package/components/DynamicFilter/constants.1dddd09c.js +31 -0
- package/components/DynamicFilter/dictionary.d28d39ef.js +51 -0
- package/components/DynamicFilter/helpers/{index.609b3915.js → index.11ed2896.js} +4 -4
- package/components/DynamicFilter/{index.0f04f223.js → index.056a99c7.js} +3 -3
- package/components/DynamicFilter/slots/{index.00b68384.js → index.82d7eaf2.js} +31 -31
- package/components/DynamicFilter/store/{index.85a2812f.js → index.9b5121d6.js} +2 -2
- package/components/DynamicFilter/subcomponents/{index.86c6fda2.js → index.778c93cc.js} +217 -15
- package/components/FieldLabel/{index.1577ac9c.js → index.6b6f708e.js} +4 -4
- package/components/GridLayout/{index.656840a5.js → index.68d907d4.js} +34 -11
- package/components/GridLayout/subcomponents/Griditem/{index.b23625d7.js → index.8955a794.js} +3 -4
- package/components/GridLayout/subcomponents/Responsive/{index.97505a31.js → index.45cecca2.js} +1 -2
- package/components/GridLayout/subcomponents/SizeProvider/{index.36cb4139.js → index.7050ac4f.js} +1 -1
- package/components/HelperText/{index.ebb53dac.js → index.09e80920.js} +1 -1
- package/components/Icon/{index.8ecfb193.js → index.83867398.js} +10 -26
- package/components/Image/{index.4a822ede.js → index.19aa7ff5.js} +3 -2
- package/components/LanguagePopover/index.921efd11.js +188 -0
- package/components/{mui_extended/LinearProgress/index.e9455b2e.js → LinearProgressIndeterminate/index.ea9c8518.js} +4 -9
- package/components/LoadingError/{index.9e829e8d.js → index.aee18b24.js} +11 -7
- package/components/MFLoader/{index.29f445e2.js → index.c975666e.js} +8 -4
- package/components/ModalDialog/{index.96c4aba3.js → index.0dd5af28.js} +14 -5
- package/components/NavLink/{index.9f5d5670.js → index.ad039baf.js} +3 -2
- package/components/NoItemSelected/{index.0ae9f28f.js → index.d10603d7.js} +13 -3
- package/components/ObjectLogs/{index.40c5047f.js → index.a3e42b21.js} +26 -8
- package/components/PDFViewer/{index.651cc4b6.js → index.35f68e67.js} +2 -2
- package/components/Page/{index.1d08818c.js → index.f4755eba.js} +18 -2
- package/components/PaperForm/{index.1a8b10d4.js → index.007ef4cf.js} +2 -2
- package/components/Period/{index.236971ae.js → index.9647181b.js} +15 -54
- package/components/PrintingSystem/{index.9fdae551.js → index.a69a9d85.js} +14 -15
- package/components/PrintingSystem/subcomponents/BodyNode/{index.794dbc69.js → index.528fcfbf.js} +1 -1
- package/components/PrintingSystem/subcomponents/ChartNode/{index.6bbf7d75.js → index.fbe87257.js} +1 -1
- package/components/PrintingSystem/subcomponents/DividerNode/{index.015a2212.js → index.f5adab1d.js} +1 -1
- package/components/PrintingSystem/subcomponents/FooterNode/{index.08eeb1d2.js → index.f42ca7dc.js} +1 -1
- package/components/PrintingSystem/subcomponents/GridNode/{index.23995699.js → index.041b9cff.js} +1 -1
- package/components/PrintingSystem/subcomponents/HeaderNode/{index.3fa36620.js → index.a8140332.js} +1 -1
- package/components/PrintingSystem/subcomponents/PaperNode/{index.8b7d43f4.js → index.aabde2bb.js} +1 -1
- package/components/PrintingSystem/subcomponents/PropertyValueNode/{index.9856c572.js → index.7f75ca46.js} +1 -1
- package/components/PrintingSystem/subcomponents/SectionNode/{index.89b3a4e0.js → index.61babb47.js} +1 -1
- package/components/PrintingSystem/subcomponents/TextBoxNode/{index.dc6e9dc2.js → index.4d0e67a3.js} +1 -1
- package/components/PropertyValue/{index.646a7e8b.js → index.51faabb5.js} +7 -4
- package/components/Resizeable/{index.414ff687.js → index.4f75c0b5.js} +1 -1
- package/components/ScrollBar/{index.1e89bb44.js → index.21bc5025.js} +1 -1
- package/components/SideBar/{index.d221254d.js → index.4075c562.js} +36 -7
- package/components/SplitLayout/{index.7d9edf4e.js → index.15756f0f.js} +3 -1
- package/components/ToastContainer/{index.7f246bbd.js → index.2a7d304e.js} +3 -3
- package/components/animate/variants/index.7a912140.js +1 -0
- package/components/areas/components/AreasAdmin/index.325bac22.js +733 -0
- package/components/areas/components/AreasViewer/index.6e30ec72.js +1072 -0
- package/components/areas/components/index.558684b3.js +1 -0
- package/components/areas/constants.66529246.js +6 -0
- package/components/areas/contexts/AreasContext/{index.0815f278.js → index.3311cbf9.js} +6 -5
- package/components/areas/contexts/DynamicMFParmsContext/{index.37d1d444.js → index.3d9ad0ad.js} +2 -2
- package/components/areas/contexts/WindowToolsMFContext/{index.69d95c15.js → index.992ae7a3.js} +2 -2
- package/components/areas/contexts/index.24025b97.js +1 -0
- package/components/areas/dictionary.08cfc4c9.js +36 -0
- package/components/areas/hooks/index.d9dc1e21.js +1 -0
- package/components/areas/hooks/useAreas/{index.4039e30d.js → index.f81493ef.js} +1 -1
- package/components/areas/hooks/useDynamicMFParameters/{index.03ce6078.js → index.9e09e1e3.js} +1 -1
- package/components/areas/hooks/useWindowToolsMF/{index.09801b66.js → index.2fbae9dc.js} +1 -1
- package/components/areas/icons.8266ccc8.js +26 -0
- package/components/areas/index.4cc6a221.js +22 -0
- package/components/commercial/AppBarCommercial/index.cbd55cf8.js +28 -0
- package/components/commercial/SectionCommercial/index.d22ebbd5.js +57 -0
- package/components/commercial/TopBar/index.410fffa8.js +234 -0
- package/components/{HamburgerMenu/index.6c82741d.js → commercial/index.07638f52.js} +5 -3
- package/components/formatters/BooleanFormatter/index.cbf9cd6e.js +44 -0
- package/components/formatters/DateFormatter/index.2ef6f261.js +43 -0
- package/components/formatters/PointsFormatter/index.d8a4ee54.js +25 -0
- package/components/formatters/PriceFormatter/index.97f75b4b.js +35 -0
- package/components/formatters/UncertaintyFormatter/index.c3ffdebc.js +29 -0
- package/components/formatters/index.63a3e08e.js +117 -0
- package/components/hook-form/HelperError/{index.2ed03a3c.js → index.c0109d5b.js} +1 -1
- package/components/hook-form/RHFAutocomplete/index.2991d444.js +404 -0
- package/components/hook-form/RHFAutocompleteAsync/{index.69f5661d.js → index.d97c727b.js} +2 -3
- package/components/hook-form/RHFCheckbox/{index.13de27db.js → index.b57e3131.js} +4 -4
- package/components/hook-form/RHFColorPicker/{index.66004599.js → index.310f6ff0.js} +6 -6
- package/components/hook-form/RHFDateTime/{index.dfe07e18.js → index.5689a29f.js} +5 -5
- package/components/hook-form/RHFPeriod/{index.d852649b.js → index.019e61ae.js} +4 -4
- package/components/hook-form/RHFTextField/{index.d207efc1.js → index.10e57945.js} +6 -6
- package/components/hook-form/RHFUpload/{index.955a4ba5.js → index.7fd23b2a.js} +5 -5
- package/components/{mui_extended/Tab/index.37d588d6.js → maps/components/GpsTools/index.20f83559.js} +331 -645
- package/components/maps/{index.a1bf63f2.js → components/Map/index.c37f3304.js} +737 -28
- package/components/maps/index.13bb982c.js +7 -0
- package/components/modal/{WindowBase.390b0910.js → WindowBase.cfbb0c9e.js} +4 -4
- package/components/modal/{WindowConfirm.243e1bef.js → WindowConfirm.300bd34b.js} +10 -6
- package/components/modal/{index.5bce430d.js → index.81eb6def.js} +5 -1
- package/components/mui_extended/Accordion/{index.f7a17c83.js → index.0843a609.js} +5 -5
- package/components/mui_extended/Avatar/{index.12b96914.js → index.fb9ad158.js} +1 -1
- package/components/mui_extended/Badge/{index.4737c113.js → index.8beaeefc.js} +1 -1
- package/components/mui_extended/Button/{index.52852c42.js → index.d742e9ee.js} +6 -81
- package/components/mui_extended/{CheckBox/index.01218423.js → CheckBox.21c25705.js} +1 -1
- package/components/mui_extended/IconButton/{index.d5b273e6.js → index.b4532b85.js} +1 -1
- package/components/mui_extended/LinearProgress/index.4092bb69.js +9 -0
- package/components/mui_extended/MenuActions/index.eae97857.js +176 -0
- package/components/mui_extended/Pager/{index.8960227c.js → index.3926c835.js} +22 -40
- package/components/mui_extended/Popover/index.2348fc4f.js +143 -0
- package/components/mui_extended/Tab/index.e911930f.js +135 -0
- package/components/mui_extended/ToggleButton/{index.c441b949.js → index.b834f5f0.js} +1 -1
- package/components/mui_extended/ToggleIconButton/{index.8a84f25e.js → index.fcd5205c.js} +1 -1
- package/components/mui_extended/Typography/{index.463f613f.js → index.642798f1.js} +1 -1
- package/components/mui_extended/index.b606cd9d.js +1 -0
- package/components/popups/PopupsProvider/{index.d4caacc3.js → index.d7c9efce.js} +1 -1
- package/components/popups/PopupsViewer/{index.42312806.js → index.f3677ab1.js} +10 -6
- package/contexts/ModalContext/{index.5f77a463.js → index.ad1fb73b.js} +1 -1
- package/contexts/RHFormContext/{index.95ebabc9.js → index.bf3a2812.js} +6 -2
- package/hooks/useFormAddEdit/{index.ecb77e67.js → index.6d983cd8.js} +6 -2
- package/hooks/useModal/index.2003c854.js +11 -0
- package/hooks/useTab/index.8d1a6e63.js +12 -0
- package/index.js +328 -273
- package/package.json +1 -1
- package/{react-draggable.0cc9b257.js → react-draggable.1c1ba224.js} +1 -1
- package/{react-resizable.837c446d.js → react-resizable.a59c14f4.js} +2 -2
- package/test/constants_no_mock.86c553a9.js +4 -0
- package/test/{getNameDataTestId.aee44365.js → getNameDataTestId.0faeade8.js} +2 -2
- package/utils/{index.c64c2dd1.js → index.14912462.js} +1 -54
- package/components/CommonActions/index.19f39dca.js +0 -170
- package/components/areas/constants.0d3ba950.js +0 -289
- package/components/areas/dictionary.6168209a.js +0 -266
- package/components/areas/icons.504ec098.js +0 -83
- package/components/maps/components/GpsTools/index.01acaf3e.js +0 -251
- package/components/mui_extended/Popover/index.146ded9e.js +0 -1044
- package/hooks/useModal/index.d14c7e46.js +0 -67
- package/vendor.5b266106.js +0 -3952
|
@@ -1,266 +0,0 @@
|
|
|
1
|
-
import { g as getCommonActionsDictionary } from "../CommonActions/index.19f39dca.js";
|
|
2
|
-
import { g as getPagerComponentsDictionary } from "../mui_extended/Pager/index.8960227c.js";
|
|
3
|
-
const AREAS_DICTIONARY_ID = "areas";
|
|
4
|
-
function getAreasComponentsDictionary() {
|
|
5
|
-
return [AREAS_DICTIONARY_ID];
|
|
6
|
-
}
|
|
7
|
-
const LABEL_FILTER_BUTTON = "filter_tooltip";
|
|
8
|
-
const DICCTIONARY$1 = {
|
|
9
|
-
label_new_area: "label_new_area",
|
|
10
|
-
label_persist_module_cookies: "label_persist_module_cookies",
|
|
11
|
-
validation_edit_area: "validation_edit_area",
|
|
12
|
-
label_edit_area: "label_edit_area",
|
|
13
|
-
label_delete_area: "label_delete_area",
|
|
14
|
-
label_window_colapse: "label_window_colapse",
|
|
15
|
-
label_window_un_colapse: "label_window_un_colapse",
|
|
16
|
-
area_error_title: "area_error_title",
|
|
17
|
-
area_error_description: "area_error_description",
|
|
18
|
-
area_error_recommendation: "area_error_recommendation",
|
|
19
|
-
area_error_intro: "area_error_intro",
|
|
20
|
-
area_add_new: "area_add_new",
|
|
21
|
-
label_reset_module_cookies: "label_reset_module_cookies",
|
|
22
|
-
label_close_window: "label_close_window",
|
|
23
|
-
label_maximize_window: "label_maximize_window",
|
|
24
|
-
label_minimize_window: "label_minimize_window",
|
|
25
|
-
label_collapse_window: "label_collapse_window",
|
|
26
|
-
label_uncollapse_window: "label_uncollapse_window",
|
|
27
|
-
label_module_actions: "label_module_actions"
|
|
28
|
-
};
|
|
29
|
-
const getAreasDictionary = (key) => {
|
|
30
|
-
return `${AREAS_DICTIONARY_ID}.${key}`;
|
|
31
|
-
};
|
|
32
|
-
function getFormComponentsDictionary() {
|
|
33
|
-
return ["form_provider"];
|
|
34
|
-
}
|
|
35
|
-
function getModalDialogComponentsDictionary() {
|
|
36
|
-
return ["modal_dialog"].concat(getCommonActionsDictionary());
|
|
37
|
-
}
|
|
38
|
-
const defaultModalDialogDictionary = {
|
|
39
|
-
modal_dialog: {}
|
|
40
|
-
};
|
|
41
|
-
const dictionary$3 = {
|
|
42
|
-
MESSAGE: "common_actions.confirm_quit_msg"
|
|
43
|
-
};
|
|
44
|
-
const getModalDictionary = () => {
|
|
45
|
-
return "modal_dialog";
|
|
46
|
-
};
|
|
47
|
-
const getformAddEditDictionary = () => {
|
|
48
|
-
return "form_add_edit";
|
|
49
|
-
};
|
|
50
|
-
function getRHFAutocompleteComponentsDictionary() {
|
|
51
|
-
return ["rhf_autocomplete"];
|
|
52
|
-
}
|
|
53
|
-
const dictionary$2 = {
|
|
54
|
-
LABEL_YEARS: "period.label_years",
|
|
55
|
-
LABEL_MONTHS: "period.label_months",
|
|
56
|
-
LABEL_DAYS: "period.label_days"
|
|
57
|
-
};
|
|
58
|
-
function getPeriodComponetsDictionary() {
|
|
59
|
-
return ["period"].concat(getCommonActionsDictionary());
|
|
60
|
-
}
|
|
61
|
-
const BOOLEAN_FORMATTER_DICTIONARY_KEY = `boolean_formatter`;
|
|
62
|
-
const LABEL_BOOLEAN_YES = `${BOOLEAN_FORMATTER_DICTIONARY_KEY}.boolean_yes`;
|
|
63
|
-
const LABEL_BOOLEAN_NO = `${BOOLEAN_FORMATTER_DICTIONARY_KEY}.boolean_no`;
|
|
64
|
-
const LABEL_BOOLEAN_TRUE = `${BOOLEAN_FORMATTER_DICTIONARY_KEY}.boolean_true`;
|
|
65
|
-
const LABEL_BOOLEAN_FALSE = `${BOOLEAN_FORMATTER_DICTIONARY_KEY}.boolean_false`;
|
|
66
|
-
const PERIOD_FORMATTER_DICTIONARY_KEY = `period_formatter`;
|
|
67
|
-
const dictionary$1 = {
|
|
68
|
-
LABEL_YEARS: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_years`,
|
|
69
|
-
LABEL_YEAR: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_year`,
|
|
70
|
-
LABEL_MONTHS: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_months`,
|
|
71
|
-
LABEL_MONTH: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_month`,
|
|
72
|
-
LABEL_DAYS: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_days`,
|
|
73
|
-
LABEL_DAY: `${PERIOD_FORMATTER_DICTIONARY_KEY}.label_day`
|
|
74
|
-
};
|
|
75
|
-
function getFormattersComponentsDictionary() {
|
|
76
|
-
return [BOOLEAN_FORMATTER_DICTIONARY_KEY, PERIOD_FORMATTER_DICTIONARY_KEY];
|
|
77
|
-
}
|
|
78
|
-
function getDataGridComponentsDictionary() {
|
|
79
|
-
return ["data_grid"].concat(getPagerComponentsDictionary()).concat(getModalDialogComponentsDictionary());
|
|
80
|
-
}
|
|
81
|
-
const dictionary = {
|
|
82
|
-
LABEL_ACTIONS: "actions",
|
|
83
|
-
LABEL_ROWS_PER_PAGE: "pager.rows_per_page",
|
|
84
|
-
LABEL_OF: "pager.of"
|
|
85
|
-
};
|
|
86
|
-
const DYNAMIC_FILTER_DICTIONARY_ID = "dynamic_filter";
|
|
87
|
-
function getDynamicFilterComponentsDictionary() {
|
|
88
|
-
return [DYNAMIC_FILTER_DICTIONARY_ID].concat(
|
|
89
|
-
getCommonActionsDictionary().concat(getRHFAutocompleteComponentsDictionary())
|
|
90
|
-
);
|
|
91
|
-
}
|
|
92
|
-
const DICCTIONARY = {
|
|
93
|
-
input_placeholder: "input_placeholder",
|
|
94
|
-
operand_true: "operand_true",
|
|
95
|
-
operand_false: "operand_false",
|
|
96
|
-
filter_tooltip_refresh: "filter_tooltip_refresh",
|
|
97
|
-
filter_tooltip_dirty: "filter_tooltip_dirty",
|
|
98
|
-
filter_tooltip_invalid: "filter_tooltip_invalid",
|
|
99
|
-
operator_b: "operator_b",
|
|
100
|
-
operator_e: "operator_e",
|
|
101
|
-
operator_ne: "operator_ne",
|
|
102
|
-
operator_gt: "operator_gt",
|
|
103
|
-
operator_gte: "operator_gte",
|
|
104
|
-
operator_lt: "operator_lt",
|
|
105
|
-
operator_lte: "operator_lte",
|
|
106
|
-
operator_c: "operator_c",
|
|
107
|
-
operator_nc: "operator_nc",
|
|
108
|
-
operator_in: "operator_in",
|
|
109
|
-
operator_nin: "operator_nin",
|
|
110
|
-
label_boolean_operator: "label_boolean_operator",
|
|
111
|
-
label_boolean_operand1: "label_boolean_operand1",
|
|
112
|
-
label_operator_date_time: "label_operator_date_time",
|
|
113
|
-
label_operand1_date_time: "label_operand1_date_time",
|
|
114
|
-
label_operand2_date_time: "label_operand2_date_time",
|
|
115
|
-
label_operator_number: "label_operator_number",
|
|
116
|
-
label_operand1_number: "label_operand1_number",
|
|
117
|
-
label_operand2_number: "label_operand2_number",
|
|
118
|
-
label_operator_string: "label_operator_string",
|
|
119
|
-
label_operand1_string: "label_operand1_string",
|
|
120
|
-
operator_required: "operator_required",
|
|
121
|
-
error_invalid_date: "error_invalid_date",
|
|
122
|
-
error_less_than_start: "error_less_than_start",
|
|
123
|
-
label_select_operator: "label_select_operator",
|
|
124
|
-
label_select_operands_array: "label_select_operands_array",
|
|
125
|
-
error_operand_required: "error_operand_required"
|
|
126
|
-
};
|
|
127
|
-
const getDynamicFilterDictionary = (key) => {
|
|
128
|
-
return `${DYNAMIC_FILTER_DICTIONARY_ID}.${key}`;
|
|
129
|
-
};
|
|
130
|
-
const MAP_DICCTIONARY = {
|
|
131
|
-
LABEL_GPSTOOLS_NAME: "label_gpstools_name",
|
|
132
|
-
LABEL_TAB_GEO: "label_tab_geo",
|
|
133
|
-
TAB_GENERAL_CONFIG_TOOLTIP: "tab_general_config_tooltip",
|
|
134
|
-
PAPER_GENERAL: "paper_general",
|
|
135
|
-
LABEL_ID: "label_id",
|
|
136
|
-
LABEL_NAME: "label_name",
|
|
137
|
-
LABEL_GEOMETRY_TYPE: "label_geometry_type",
|
|
138
|
-
LABEL_GEOMETRY_CIRCLE: "label_geometry_circle",
|
|
139
|
-
LABEL_GEOMETRY_RECTANGLE: "label_geometry_rectangle",
|
|
140
|
-
LABEL_GEOMETRY_POLYGON: "label_geometry_polygon",
|
|
141
|
-
LABEL_DRAW: "label_draw",
|
|
142
|
-
LABEL_FINISH: "label_finish",
|
|
143
|
-
PAPER_CONFIG: "paper_config",
|
|
144
|
-
LABEL_ALIAS: "label_alias",
|
|
145
|
-
LABEL_CUSTOMER_ID: "label_customer_id",
|
|
146
|
-
LABEL_TIME_MIN_IN_SECONDS: "label_time_min_in_seconds",
|
|
147
|
-
LABEL_TIME_MIN_OUT_SECONDS: "label_time_min_out_seconds",
|
|
148
|
-
TAB_STYLE_CONFIG_TOOLTIP: "tab_style_tooltip",
|
|
149
|
-
PAPER_STROKE: "paper_stroke",
|
|
150
|
-
LABEL_COLOR: "label_color",
|
|
151
|
-
LABEL_OPACITY: "label_opacity",
|
|
152
|
-
LABEL_WEIGHT: "label_weight",
|
|
153
|
-
LABEL_DASH_ARRAY: "label_dash_array",
|
|
154
|
-
LABEL_DASH_OFFSET: "label_dash_offset",
|
|
155
|
-
LABEL_RADIUS: "label_radius",
|
|
156
|
-
LABEL_LAT: "label_lat",
|
|
157
|
-
LABEL_LON: "label_lon",
|
|
158
|
-
LABEL_PLACE_MARKER: "label_place_marker",
|
|
159
|
-
LABEL_FIRST_VERTEX: "label_first_vertex",
|
|
160
|
-
LABEL_CONTINUE_LINE: "label_continue_line",
|
|
161
|
-
LABEL_FINISH_LINE: "label_finish_line",
|
|
162
|
-
LABEL_FINISH_POLY: "label_finish_poly",
|
|
163
|
-
LABEL_FINISH_RECT: "label_finish_rect",
|
|
164
|
-
LABEL_START_CIRCLE: "label_start_circle",
|
|
165
|
-
LABEL_FINISH_CIRCLE: "label_finish_circle",
|
|
166
|
-
LABEL_PLACE_CIRCLE_MARKER: "label_place_circle_marker",
|
|
167
|
-
VALIDATION_GEOMETRY_REQUIRED: "validation_geometry_required",
|
|
168
|
-
VALIDATION_FIELD_REQUIRED: "validation_field_required",
|
|
169
|
-
VALIDATION_FIELD_TYPE_NUMBER_ERROR: "validation_field_type_number_error",
|
|
170
|
-
LABEL_VIEW_TRANSIT_FEATURES: "label_view_crossing_features",
|
|
171
|
-
LABEL_VIEW_INTERNAL_FEATURES: "label_view_internal_features",
|
|
172
|
-
LABEL_CREATED_AT: "label_created_at",
|
|
173
|
-
LABEL_UPDATED_AT: "label_updated_at",
|
|
174
|
-
MODAL_DELETE_GEO_TITLE: "modal_delete_geo_title",
|
|
175
|
-
MODAL_DELETE_GEO_MESSAGE: "modal_delete_geo_message",
|
|
176
|
-
MODAL_DISABLE_GEO_TITLE: "modal_disable_geo_title",
|
|
177
|
-
MODAL_DISABLE_MESSAGE: "modal_disable_geo_message",
|
|
178
|
-
ROW_ACTION_GEO_EDIT: "row_action_geo_edit",
|
|
179
|
-
ROW_ACTION_GEO_ENABLE: "row_action_geo_enable",
|
|
180
|
-
ROW_ACTION_GEO_DISABLE: "row_action_geo_disable",
|
|
181
|
-
ROW_ACTION_GEO_DELETE: "row_action_geo_delete",
|
|
182
|
-
LABEL_TAB_MEASURE: "label_tab_measure",
|
|
183
|
-
PAPER_MEASURE: "paper_measure",
|
|
184
|
-
LABEL_MEASURE_START: "label_measure_start",
|
|
185
|
-
LABEL_MEASURE_CANCEL: "label_measure_cancel",
|
|
186
|
-
LABEL_MEASURE_DISTANCE: "label_measure_distance",
|
|
187
|
-
LABEL_MEASURE_AREA: "label_measure_area",
|
|
188
|
-
LABEL_MEASURE_UNIT: "label_measure_unit",
|
|
189
|
-
LABEL_MEASURE_UNIT_BASE_KILOMETERS: "label_measure_unit_base_kilometers",
|
|
190
|
-
LABEL_MEASURE_REMOVE_POINT: "label_measure_remove_point",
|
|
191
|
-
LABEL_LAYERS: "label_layes",
|
|
192
|
-
LABEL_LAYER_NAME: "label_layer_name",
|
|
193
|
-
LABEL_LAYER_VISIBLE: "label_layer_visible",
|
|
194
|
-
LABEL_LAYER_AUTOFOCUS: "label_layer_autofocus",
|
|
195
|
-
LABEL_LAYER_CLUSTER: "label_layer_cluster",
|
|
196
|
-
LABEL_LAYER_DELETE: "label_layer_delete",
|
|
197
|
-
ROW_ACTION_LAYER_DELETE: "row_action_layer_delete",
|
|
198
|
-
LABEL_MAP_SOURCES: "label_map_sources",
|
|
199
|
-
LABEL_TILE_OSM: "label_tile_osm",
|
|
200
|
-
LABEL_TILE_GOOGLE: "label_tile_google",
|
|
201
|
-
LABEL_TILE_GOOGLE_SATELLITE: "label_tile_google_satellite",
|
|
202
|
-
LABEL_TILE_GOOGLE_HYBRID: "label_tile_google_hybrid",
|
|
203
|
-
LABEL_TILE_BING: "label_tile_bing"
|
|
204
|
-
};
|
|
205
|
-
const getLoadingErrorComponentsDictionary = () => {
|
|
206
|
-
return ["loading_error"];
|
|
207
|
-
};
|
|
208
|
-
function getMFLoaderComponentsDictionary() {
|
|
209
|
-
return ["mf_loader"];
|
|
210
|
-
}
|
|
211
|
-
function getNoItemSelectedComponentsDictionary() {
|
|
212
|
-
return ["no_item_selected"];
|
|
213
|
-
}
|
|
214
|
-
const defaultNoItemSelectedDictionary = {
|
|
215
|
-
no_item_selected: {
|
|
216
|
-
message: "Please select a item to show detail"
|
|
217
|
-
}
|
|
218
|
-
};
|
|
219
|
-
function getObjectLogsComponentsDictionary() {
|
|
220
|
-
return ["object_logs"].concat(getDataGridComponentsDictionary()).concat(getDynamicFilterComponentsDictionary());
|
|
221
|
-
}
|
|
222
|
-
const defaultObjectLogDictionary = {
|
|
223
|
-
object_logs: {
|
|
224
|
-
created_at: "Start date",
|
|
225
|
-
user: "User/email",
|
|
226
|
-
resource_name: "Resource",
|
|
227
|
-
privilege_name: "Privilege",
|
|
228
|
-
log_preview: "Log",
|
|
229
|
-
log_detail: "Detail",
|
|
230
|
-
ip: "Ip"
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
export {
|
|
234
|
-
AREAS_DICTIONARY_ID as A,
|
|
235
|
-
getFormComponentsDictionary as B,
|
|
236
|
-
getformAddEditDictionary as C,
|
|
237
|
-
DICCTIONARY as D,
|
|
238
|
-
LABEL_BOOLEAN_YES as L,
|
|
239
|
-
MAP_DICCTIONARY as M,
|
|
240
|
-
dictionary$1 as a,
|
|
241
|
-
getAreasDictionary as b,
|
|
242
|
-
DICCTIONARY$1 as c,
|
|
243
|
-
dictionary$2 as d,
|
|
244
|
-
getRHFAutocompleteComponentsDictionary as e,
|
|
245
|
-
dictionary$3 as f,
|
|
246
|
-
getDynamicFilterDictionary as g,
|
|
247
|
-
LABEL_BOOLEAN_NO as h,
|
|
248
|
-
LABEL_BOOLEAN_TRUE as i,
|
|
249
|
-
LABEL_BOOLEAN_FALSE as j,
|
|
250
|
-
dictionary as k,
|
|
251
|
-
getDataGridComponentsDictionary as l,
|
|
252
|
-
getAreasComponentsDictionary as m,
|
|
253
|
-
LABEL_FILTER_BUTTON as n,
|
|
254
|
-
getPeriodComponetsDictionary as o,
|
|
255
|
-
getFormattersComponentsDictionary as p,
|
|
256
|
-
getDynamicFilterComponentsDictionary as q,
|
|
257
|
-
getModalDictionary as r,
|
|
258
|
-
getModalDialogComponentsDictionary as s,
|
|
259
|
-
defaultModalDialogDictionary as t,
|
|
260
|
-
getLoadingErrorComponentsDictionary as u,
|
|
261
|
-
getMFLoaderComponentsDictionary as v,
|
|
262
|
-
getNoItemSelectedComponentsDictionary as w,
|
|
263
|
-
defaultNoItemSelectedDictionary as x,
|
|
264
|
-
getObjectLogsComponentsDictionary as y,
|
|
265
|
-
defaultObjectLogDictionary as z
|
|
266
|
-
};
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
const ICONS$1 = {
|
|
2
|
-
MENU: "menu.svg"
|
|
3
|
-
};
|
|
4
|
-
const ICONS = {
|
|
5
|
-
CLOSE: "close.svg",
|
|
6
|
-
MAXIMIZE: "maximize.svg",
|
|
7
|
-
NORMALIZE: "normalize.svg",
|
|
8
|
-
COLAPSE: "colapse.svg",
|
|
9
|
-
UNCOLPASE: "uncolapse.svg",
|
|
10
|
-
RESET_COOKIES: "reset_cookies.svg",
|
|
11
|
-
SAVE_COOKIES: "save_cookies.svg",
|
|
12
|
-
DELETE_AREA: "delete_area.svg",
|
|
13
|
-
ADD_AREA: "add_area.svg",
|
|
14
|
-
LAYERS: "layers.svg",
|
|
15
|
-
NAVIGATE_ERROR: "navegate_error.svg",
|
|
16
|
-
EDIT_AREA: "edit.svg",
|
|
17
|
-
CHECK: "checkmarkInCircle.svg",
|
|
18
|
-
RESIZE: "controlSize.svg",
|
|
19
|
-
VERSION: "version.svg",
|
|
20
|
-
SHOW_OPTIONS: "showMoreVertical.svg",
|
|
21
|
-
CHEVRON_DOWN: "chevronDown.svg",
|
|
22
|
-
TOASTY_CLOSE: "close.svg",
|
|
23
|
-
TOASTY_PIN: "pin.svg",
|
|
24
|
-
MODULE: "module.svg",
|
|
25
|
-
POPUP: "popup.svg"
|
|
26
|
-
};
|
|
27
|
-
const MAP_ICONS = {
|
|
28
|
-
MAP_ZOOM_IN: "cmp_map_zoom_in.svg",
|
|
29
|
-
MAP_ZOOM_OUT: "cmp_map_zoom_out.svg",
|
|
30
|
-
MAP_SOURCES_TOOL: "cmp_map_mapsources_tool.svg",
|
|
31
|
-
MAP_SOURCE_OSM: "cmp_map_mapsources_osm.svg",
|
|
32
|
-
MAP_SOURCE_GOOGLE_ROADS: "cmp_map_mapsources_google.svg",
|
|
33
|
-
MAP_SOURCE_GOOGLE_HYBRID: "cmp_map_mapsources_googlehybrid.svg",
|
|
34
|
-
MAP_SOURCE_GOOGLE_SATELLITE: "cmp_map_mapsources_googlesatelite.svg",
|
|
35
|
-
MAP_SOURCE_BING: "cmp_map_mapsources_ bing.svg",
|
|
36
|
-
MAP_SOURCE_ROAD_TRAFFIC: "cmp_map_mapsources_layer-traffic.svg",
|
|
37
|
-
MAP_SOURCE_ROAD_TRANSIT: "cmp_map_mapsources_layer-transit.svg",
|
|
38
|
-
MAP_SOURCE_ROAD_BICYCLING: "cmp_map_mapsources_layer-bicycle.svg",
|
|
39
|
-
MAP_LAYERS_TOOL: "cmp_map_layers_tool.svg",
|
|
40
|
-
MAP_LAYER_VISIBLE: "cmp_map_layers_view.svg",
|
|
41
|
-
MAP_LAYER_AUTOFOCUS: "cmp_map_layers_zoom_fit.svg",
|
|
42
|
-
MAP_LAYER_CLUSTER: "cmp_map_layers_cluster.svg",
|
|
43
|
-
MAP_LAYER_DELETE: "cmp_map_layers_delete.svg",
|
|
44
|
-
MAP_GPS_TOOLS_TOOL: "cmp_map_gpstools_tool.svg",
|
|
45
|
-
GEOMETRY_CIRCLE: "geometry_circle.svg",
|
|
46
|
-
GEOMETRY_RECTANGLE: "geometry_rectangle.svg",
|
|
47
|
-
GEOMETRY_POLYGON: "geometry_polygon.svg",
|
|
48
|
-
ADD: "add.svg",
|
|
49
|
-
MAP_MEASURE_TOOL: "cmp_map_measure_tool.svg",
|
|
50
|
-
GENERAL: "general.svg",
|
|
51
|
-
CONFIG: "config.svg",
|
|
52
|
-
STROKE: "stroke.svg",
|
|
53
|
-
FILL: "fill.svg",
|
|
54
|
-
EDIT: "edit.svg",
|
|
55
|
-
DELETE: "delete.svg",
|
|
56
|
-
ACTIVE: "active.svg",
|
|
57
|
-
NAME: "name.svg"
|
|
58
|
-
};
|
|
59
|
-
const POPUPS_ICONS = {
|
|
60
|
-
CLOSE: "close.svg"
|
|
61
|
-
};
|
|
62
|
-
const GPSTOOLSICONS = {
|
|
63
|
-
GEOMETRY_CIRCLE: "geometry_circle.svg",
|
|
64
|
-
GEOMETRY_RECTANGLE: "geometry_rectangle.svg",
|
|
65
|
-
GEOMETRY_POLYGON: "geometry_polygon.svg",
|
|
66
|
-
ADD: "add.svg",
|
|
67
|
-
MEASURE: "measure.svg",
|
|
68
|
-
GENERAL: "general.svg",
|
|
69
|
-
CONFIG: "config.svg",
|
|
70
|
-
STROKE: "stroke.svg",
|
|
71
|
-
FILL: "fill.svg",
|
|
72
|
-
EDIT: "edit.svg",
|
|
73
|
-
DELETE: "delete.svg",
|
|
74
|
-
ACTIVE: "active.svg",
|
|
75
|
-
NAME: "name.svg"
|
|
76
|
-
};
|
|
77
|
-
export {
|
|
78
|
-
GPSTOOLSICONS as G,
|
|
79
|
-
ICONS as I,
|
|
80
|
-
MAP_ICONS as M,
|
|
81
|
-
POPUPS_ICONS as P,
|
|
82
|
-
ICONS$1 as a
|
|
83
|
-
};
|
|
@@ -1,251 +0,0 @@
|
|
|
1
|
-
import { createContext, useRef, useEffect, useContext } from "react";
|
|
2
|
-
import { shallow } from "zustand/shallow";
|
|
3
|
-
import { createStore, useStore } from "zustand";
|
|
4
|
-
import { jsx, Fragment } from "react/jsx-runtime";
|
|
5
|
-
import { useResponsiveDesktop, useFirstRender } from "@m4l/graphics";
|
|
6
|
-
import { useModuleDictionary, useModuleSkeleton } from "@m4l/core";
|
|
7
|
-
import { devtools } from "zustand/middleware";
|
|
8
|
-
import { immer } from "zustand/middleware/immer";
|
|
9
|
-
import { enableMapSet } from "immer";
|
|
10
|
-
import { u as useMapStore, C as CommonFeatureRender } from "../../index.a1bf63f2.js";
|
|
11
|
-
import { G as GeofencesFeaturesLayers, T as TabsGpsTools } from "../../../mui_extended/Tab/index.37d588d6.js";
|
|
12
|
-
import { styled } from "@mui/material/styles";
|
|
13
|
-
import { generateUtilityClasses } from "@mui/material";
|
|
14
|
-
import "@mui/base";
|
|
15
|
-
import { _ as COMPONENT_CLASS_NAME, M as MAP_ZINDEX_OVER_MAP } from "../../../areas/constants.0d3ba950.js";
|
|
16
|
-
enableMapSet();
|
|
17
|
-
const createGpsToolsStore = (initProps) => {
|
|
18
|
-
const startProps = {
|
|
19
|
-
currentTabGpsTool: "geofences",
|
|
20
|
-
geofenceState: {
|
|
21
|
-
rows: [],
|
|
22
|
-
checkedGeofences: /* @__PURE__ */ new Set(),
|
|
23
|
-
checkedCrossingFeatures: /* @__PURE__ */ new Set(),
|
|
24
|
-
checkedInternalFeatures: /* @__PURE__ */ new Set(),
|
|
25
|
-
hashGeofences: {}
|
|
26
|
-
},
|
|
27
|
-
...initProps
|
|
28
|
-
};
|
|
29
|
-
return createStore(
|
|
30
|
-
devtools(
|
|
31
|
-
immer((set, _get) => ({
|
|
32
|
-
...startProps,
|
|
33
|
-
gpsToolsActions: {
|
|
34
|
-
init: () => {
|
|
35
|
-
set((state) => {
|
|
36
|
-
state.ownerState.status = "ready";
|
|
37
|
-
});
|
|
38
|
-
},
|
|
39
|
-
setGpsToolsState: (status) => {
|
|
40
|
-
set((state) => {
|
|
41
|
-
state.ownerState.status = status;
|
|
42
|
-
});
|
|
43
|
-
},
|
|
44
|
-
setHandlerGetLabel: (newHandler) => {
|
|
45
|
-
set((state) => {
|
|
46
|
-
state.getLabel = newHandler;
|
|
47
|
-
});
|
|
48
|
-
},
|
|
49
|
-
setExternalState: (newExternalState) => {
|
|
50
|
-
set((state) => {
|
|
51
|
-
state.ownerState = { ...state.ownerState, ...newExternalState };
|
|
52
|
-
});
|
|
53
|
-
},
|
|
54
|
-
setCurrentTabTool: (newTabTool) => {
|
|
55
|
-
set((state) => {
|
|
56
|
-
state.currentTabGpsTool = newTabTool;
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
geofenceActions: {
|
|
61
|
-
addGeofence: (geofenceId, geofence) => {
|
|
62
|
-
set((state) => {
|
|
63
|
-
state.geofenceState.hashGeofences[geofenceId] = geofence;
|
|
64
|
-
});
|
|
65
|
-
},
|
|
66
|
-
updatePartialGeofence: (geofenceId, geofence) => {
|
|
67
|
-
set((state) => {
|
|
68
|
-
state.geofenceState.hashGeofences[geofenceId] = {
|
|
69
|
-
...state.geofenceState.hashGeofences[geofenceId],
|
|
70
|
-
...geofence
|
|
71
|
-
};
|
|
72
|
-
});
|
|
73
|
-
},
|
|
74
|
-
updateRows: (newRows) => {
|
|
75
|
-
set((state) => {
|
|
76
|
-
state.geofenceState.rows = newRows;
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
addCheckedGeofence: (geofenceId) => {
|
|
80
|
-
set((state) => {
|
|
81
|
-
state.geofenceState.checkedGeofences.add(geofenceId);
|
|
82
|
-
state.geofenceState.checkedGeofences = new Set(state.geofenceState.checkedGeofences);
|
|
83
|
-
});
|
|
84
|
-
},
|
|
85
|
-
removeCheckedGeofence: (geofenceId) => {
|
|
86
|
-
set((state) => {
|
|
87
|
-
state.geofenceState.checkedGeofences.delete(geofenceId);
|
|
88
|
-
state.geofenceState.checkedGeofences = new Set(state.geofenceState.checkedGeofences);
|
|
89
|
-
});
|
|
90
|
-
},
|
|
91
|
-
setCheckedGeofences: (newGeofences) => {
|
|
92
|
-
set((state) => {
|
|
93
|
-
state.geofenceState.checkedGeofences = new Set(newGeofences);
|
|
94
|
-
});
|
|
95
|
-
},
|
|
96
|
-
setCheckedCrossingFeatures: (newFeatures) => {
|
|
97
|
-
set((state) => {
|
|
98
|
-
state.geofenceState.checkedCrossingFeatures = new Set(newFeatures);
|
|
99
|
-
});
|
|
100
|
-
},
|
|
101
|
-
setCheckedInternalFeatures: (newFeatures) => {
|
|
102
|
-
set((state) => {
|
|
103
|
-
state.geofenceState.checkedInternalFeatures = new Set(newFeatures);
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
})),
|
|
108
|
-
{ name: `Map Tools Store` }
|
|
109
|
-
)
|
|
110
|
-
);
|
|
111
|
-
};
|
|
112
|
-
const GpsToolsContext = createContext(null);
|
|
113
|
-
function GpsToolsProvider(props) {
|
|
114
|
-
const { children } = props;
|
|
115
|
-
const { getLabel } = useModuleDictionary();
|
|
116
|
-
const isDesktop = useResponsiveDesktop();
|
|
117
|
-
const isSkeleton = useModuleSkeleton();
|
|
118
|
-
const isFirstRender = useFirstRender([getLabel]);
|
|
119
|
-
const mapStoreRef = useRef();
|
|
120
|
-
if (!mapStoreRef.current) {
|
|
121
|
-
mapStoreRef.current = createGpsToolsStore({
|
|
122
|
-
getLabel,
|
|
123
|
-
ownerState: {
|
|
124
|
-
status: "init",
|
|
125
|
-
isMobile: !isDesktop,
|
|
126
|
-
isSkeleton,
|
|
127
|
-
focus: false
|
|
128
|
-
}
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
const { setHandlerGetLabel, setExternalState } = useStore(
|
|
132
|
-
mapStoreRef.current,
|
|
133
|
-
(state) => state.gpsToolsActions,
|
|
134
|
-
shallow
|
|
135
|
-
);
|
|
136
|
-
useEffect(() => {
|
|
137
|
-
if (!isFirstRender) {
|
|
138
|
-
setHandlerGetLabel(getLabel);
|
|
139
|
-
}
|
|
140
|
-
}, [getLabel]);
|
|
141
|
-
useEffect(() => {
|
|
142
|
-
if (isFirstRender) {
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
setExternalState({ isMobile: !isDesktop, isSkeleton });
|
|
146
|
-
}, [isDesktop, isSkeleton]);
|
|
147
|
-
return /* @__PURE__ */ jsx(GpsToolsContext.Provider, { value: mapStoreRef.current, children });
|
|
148
|
-
}
|
|
149
|
-
function useGpsToolsStore(selector, equalityFn) {
|
|
150
|
-
const context = useContext(GpsToolsContext);
|
|
151
|
-
if (!context)
|
|
152
|
-
throw new Error("useGpsToolsStore context must be use inside GpsToolsContext");
|
|
153
|
-
return useStore(context, selector, equalityFn);
|
|
154
|
-
}
|
|
155
|
-
function useLayers() {
|
|
156
|
-
const { addLayer, removeLayer } = useMapStore((state) => state.mapActions, shallow);
|
|
157
|
-
const { init } = useGpsToolsStore((state) => state.gpsToolsActions, shallow);
|
|
158
|
-
useEffect(() => {
|
|
159
|
-
addLayer({
|
|
160
|
-
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES,
|
|
161
|
-
name: "Geocercas",
|
|
162
|
-
renderFeature: CommonFeatureRender,
|
|
163
|
-
geoJsonObject: {
|
|
164
|
-
object: {
|
|
165
|
-
type: "FeatureCollection",
|
|
166
|
-
features: []
|
|
167
|
-
}
|
|
168
|
-
},
|
|
169
|
-
autoFocus: false
|
|
170
|
-
});
|
|
171
|
-
addLayer({
|
|
172
|
-
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES,
|
|
173
|
-
name: "Geometr\xEDas de tr\xE1nsito",
|
|
174
|
-
renderFeature: CommonFeatureRender,
|
|
175
|
-
geoJsonObject: {
|
|
176
|
-
object: {
|
|
177
|
-
type: "FeatureCollection",
|
|
178
|
-
features: []
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
autoFocus: false
|
|
182
|
-
});
|
|
183
|
-
addLayer({
|
|
184
|
-
layerId: GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES,
|
|
185
|
-
name: "Geometr\xEDas internas",
|
|
186
|
-
renderFeature: CommonFeatureRender,
|
|
187
|
-
geoJsonObject: {
|
|
188
|
-
object: {
|
|
189
|
-
type: "FeatureCollection",
|
|
190
|
-
features: []
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
autoFocus: false
|
|
194
|
-
});
|
|
195
|
-
init();
|
|
196
|
-
return () => {
|
|
197
|
-
removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES);
|
|
198
|
-
removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES_INTERNAL_FEATURES);
|
|
199
|
-
removeLayer(GeofencesFeaturesLayers.LAYER_GEOFENCES_TRANSIT_FEATURES);
|
|
200
|
-
};
|
|
201
|
-
}, []);
|
|
202
|
-
}
|
|
203
|
-
const gpsToolsClasses = generateUtilityClasses(COMPONENT_CLASS_NAME, [
|
|
204
|
-
"gpsToolsRoot",
|
|
205
|
-
"gpsToolsTab",
|
|
206
|
-
"gpsToolsTabContent",
|
|
207
|
-
"gpsToolsGeofencesList",
|
|
208
|
-
"gpsToolsGeofencesAddEdit",
|
|
209
|
-
"gpsToolsGeofencesAddEditContent",
|
|
210
|
-
"toolGeofencesAddEditGeneral",
|
|
211
|
-
"toolGeofencesAddEditStyle",
|
|
212
|
-
"visible",
|
|
213
|
-
"hidden"
|
|
214
|
-
]);
|
|
215
|
-
const DivGpsToolsRoot = styled("div")`
|
|
216
|
-
position: relative;
|
|
217
|
-
display: flex;
|
|
218
|
-
flex-direction: column;
|
|
219
|
-
flex-grow: 1;
|
|
220
|
-
width: 100%;
|
|
221
|
-
height: 100%;
|
|
222
|
-
|
|
223
|
-
z-index: ${MAP_ZINDEX_OVER_MAP};
|
|
224
|
-
|
|
225
|
-
.${gpsToolsClasses.gpsToolsTabContent}.${gpsToolsClasses.hidden} {
|
|
226
|
-
display: none;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
.${gpsToolsClasses.gpsToolsGeofencesList} .M4LDataGrid-root {
|
|
230
|
-
height: unset !important;
|
|
231
|
-
flex-grow: 1;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.${gpsToolsClasses.toolGeofencesAddEditGeneral} {
|
|
235
|
-
flex-grow: 1;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
${(props) => props.theme.components?.M4LGpsTools?.styleOverrides}
|
|
239
|
-
`;
|
|
240
|
-
function GpsTools() {
|
|
241
|
-
const isSkeleton = useModuleSkeleton();
|
|
242
|
-
return /* @__PURE__ */ jsx(Fragment, { children: !isSkeleton && /* @__PURE__ */ jsx(TabsGpsTools, {}) });
|
|
243
|
-
}
|
|
244
|
-
export {
|
|
245
|
-
DivGpsToolsRoot as D,
|
|
246
|
-
GpsTools as G,
|
|
247
|
-
useLayers as a,
|
|
248
|
-
GpsToolsProvider as b,
|
|
249
|
-
gpsToolsClasses as g,
|
|
250
|
-
useGpsToolsStore as u
|
|
251
|
-
};
|