datastake-daf 0.6.785 → 0.6.786
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/dist/components/index.js +27 -30
- package/dist/hooks/index.js +9 -1
- package/dist/pages/index.js +24 -16
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Map/hook.js +1 -1
- package/src/@daf/hooks/useGetQueryParams.js +3 -1
- package/src/@daf/pages/Events/Activities/columns.js +2 -2
- package/src/@daf/pages/Events/Activities/config.js +2 -2
- package/src/@daf/pages/Events/Incidents/columns.js +2 -2
- package/src/@daf/pages/Events/Incidents/config.js +2 -2
- package/src/@daf/pages/Locations/MineSite/columns.js +2 -2
- package/src/@daf/pages/Locations/columns.js +2 -2
- package/src/@daf/pages/Stakeholders/Operators/columns.js +2 -2
- package/dist/style/datastake/mapbox-gl.css +0 -330
package/dist/components/index.js
CHANGED
|
@@ -9558,29 +9558,24 @@ const processConditionalTableKeys = (tableKeys, item) => {
|
|
|
9558
9558
|
});
|
|
9559
9559
|
return processedKeys;
|
|
9560
9560
|
};
|
|
9561
|
-
const renderFieldData =
|
|
9562
|
-
let getApiBaseUrl = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : () => {};
|
|
9563
|
-
let getAppHeader = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : () => {};
|
|
9564
|
-
let app = arguments.length > 6 ? arguments[6] : undefined;
|
|
9565
|
-
let allValues = arguments.length > 7 ? arguments[7] : undefined;
|
|
9566
|
-
let formValues = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : {};
|
|
9561
|
+
const renderFieldData = (type, value, user, config, getApiBaseUrl = () => {}, getAppHeader = () => {}, app, allValues, formValues = {}) => {
|
|
9567
9562
|
switch (type) {
|
|
9568
9563
|
case 'year':
|
|
9569
9564
|
return value !== '-' ? renderDateFormatted(value, 'YYYY', 'en') : '-';
|
|
9570
9565
|
case 'date':
|
|
9571
9566
|
{
|
|
9572
|
-
const language = user
|
|
9567
|
+
const language = user?.language && user?.language === 'sp' ? 'es' : user?.language;
|
|
9573
9568
|
return value !== '-' ? renderDateFormatted(value, 'DD MMM YYYY', language || 'en') : '-';
|
|
9574
9569
|
}
|
|
9575
9570
|
case 'select':
|
|
9576
9571
|
{
|
|
9577
|
-
const options =
|
|
9572
|
+
const options = config?.options || [];
|
|
9578
9573
|
const option = findOptions(value, options);
|
|
9579
9574
|
return option;
|
|
9580
9575
|
}
|
|
9581
9576
|
case 'multiselect':
|
|
9582
9577
|
{
|
|
9583
|
-
const options =
|
|
9578
|
+
const options = config?.options || [];
|
|
9584
9579
|
const _val = typeof value === 'string' ? value.split(',').map(v => v.trim()) : value;
|
|
9585
9580
|
const option = findOptions(_val, options);
|
|
9586
9581
|
return option.join(', ');
|
|
@@ -9595,7 +9590,7 @@ const renderFieldData = function (type, value, user, config) {
|
|
|
9595
9590
|
formValues: formValues
|
|
9596
9591
|
});
|
|
9597
9592
|
case 'percentage':
|
|
9598
|
-
return value === '-' || value === null || value === undefined ? '-' :
|
|
9593
|
+
return value === '-' || value === null || value === undefined ? '-' : `${value} %`;
|
|
9599
9594
|
case 'geolocation':
|
|
9600
9595
|
{
|
|
9601
9596
|
const val = JSON.parse(value) || {};
|
|
@@ -9609,7 +9604,7 @@ const renderFieldData = function (type, value, user, config) {
|
|
|
9609
9604
|
case 'upload':
|
|
9610
9605
|
case 'videoUpload':
|
|
9611
9606
|
{
|
|
9612
|
-
const documentName = allValues
|
|
9607
|
+
const documentName = allValues?.map(item => item?.name).join(', ');
|
|
9613
9608
|
return documentName;
|
|
9614
9609
|
}
|
|
9615
9610
|
default:
|
|
@@ -9788,28 +9783,30 @@ const handleSectionChildren = ({
|
|
|
9788
9783
|
});
|
|
9789
9784
|
};
|
|
9790
9785
|
|
|
9791
|
-
const handleArrayChildren =
|
|
9792
|
-
|
|
9793
|
-
|
|
9794
|
-
|
|
9795
|
-
|
|
9796
|
-
|
|
9797
|
-
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9802
|
-
|
|
9803
|
-
|
|
9804
|
-
|
|
9786
|
+
const handleArrayChildren = _ref => {
|
|
9787
|
+
let {
|
|
9788
|
+
value,
|
|
9789
|
+
config,
|
|
9790
|
+
label,
|
|
9791
|
+
level,
|
|
9792
|
+
t,
|
|
9793
|
+
rootForm,
|
|
9794
|
+
allData,
|
|
9795
|
+
user,
|
|
9796
|
+
getApiBaseUrl = () => {},
|
|
9797
|
+
getAppHeader = () => {},
|
|
9798
|
+
app,
|
|
9799
|
+
TreeNodeComponent
|
|
9800
|
+
} = _ref;
|
|
9805
9801
|
if (!Array.isArray(value)) {
|
|
9806
9802
|
return null;
|
|
9807
9803
|
}
|
|
9808
9804
|
return value.map((item, itemIndex) => /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
9809
9805
|
className: "array-item",
|
|
9810
9806
|
children: Object.keys(config.inputs).sort((a, b) => {
|
|
9811
|
-
|
|
9812
|
-
const
|
|
9807
|
+
var _config$inputs$a, _config$inputs$b;
|
|
9808
|
+
const positionA = ((_config$inputs$a = config.inputs[a]) === null || _config$inputs$a === void 0 ? void 0 : _config$inputs$a.position) || 0;
|
|
9809
|
+
const positionB = ((_config$inputs$b = config.inputs[b]) === null || _config$inputs$b === void 0 ? void 0 : _config$inputs$b.position) || 0;
|
|
9813
9810
|
return positionA - positionB;
|
|
9814
9811
|
}).map(subInputKey => {
|
|
9815
9812
|
const subInputConfig = config.inputs[subInputKey];
|
|
@@ -9827,9 +9824,9 @@ const handleArrayChildren = ({
|
|
|
9827
9824
|
getApiBaseUrl: getApiBaseUrl,
|
|
9828
9825
|
getAppHeader: getAppHeader,
|
|
9829
9826
|
app: app
|
|
9830
|
-
},
|
|
9827
|
+
}, "".concat(itemIndex, "-").concat(subInputKey));
|
|
9831
9828
|
})
|
|
9832
|
-
},
|
|
9829
|
+
}, "".concat(itemIndex)));
|
|
9833
9830
|
};
|
|
9834
9831
|
|
|
9835
9832
|
const noDafApps = ['tif', 'cukura']; //PACKAGE_CHANGE_LATER (remove sbg)
|
|
@@ -14735,7 +14732,7 @@ const useMap$1 = ({
|
|
|
14735
14732
|
});
|
|
14736
14733
|
function handleSelectMarker(clickedMarker) {
|
|
14737
14734
|
setSelectedMarkersId(prev => {
|
|
14738
|
-
if (
|
|
14735
|
+
if (openPopupIdRef.current === clickedMarker.datastakeId) {
|
|
14739
14736
|
// Deselecting - clear polylines
|
|
14740
14737
|
openPopupIdRef.current = null;
|
|
14741
14738
|
setMarkerWithPopup(null);
|
package/dist/hooks/index.js
CHANGED
|
@@ -2384,6 +2384,8 @@ const useGetQueryParams = ({
|
|
|
2384
2384
|
searchParams: rawSearchParams,
|
|
2385
2385
|
sortBy,
|
|
2386
2386
|
sortDir,
|
|
2387
|
+
status,
|
|
2388
|
+
product,
|
|
2387
2389
|
...rest
|
|
2388
2390
|
} = queryParams;
|
|
2389
2391
|
return {
|
|
@@ -2396,7 +2398,13 @@ const useGetQueryParams = ({
|
|
|
2396
2398
|
fields: safeJsonParse(rawSearchParams)
|
|
2397
2399
|
},
|
|
2398
2400
|
otherParams: {
|
|
2399
|
-
...rest
|
|
2401
|
+
...rest,
|
|
2402
|
+
...(product && {
|
|
2403
|
+
"products.typeOfProduct": product
|
|
2404
|
+
}),
|
|
2405
|
+
...(status && {
|
|
2406
|
+
published: status === "submitted" ? true : false
|
|
2407
|
+
})
|
|
2400
2408
|
},
|
|
2401
2409
|
sortBy,
|
|
2402
2410
|
sortDir
|
package/dist/pages/index.js
CHANGED
|
@@ -9963,7 +9963,7 @@ const useMap = ({
|
|
|
9963
9963
|
});
|
|
9964
9964
|
function handleSelectMarker(clickedMarker) {
|
|
9965
9965
|
setSelectedMarkersId(prev => {
|
|
9966
|
-
if (
|
|
9966
|
+
if (openPopupIdRef.current === clickedMarker.datastakeId) {
|
|
9967
9967
|
// Deselecting - clear polylines
|
|
9968
9968
|
openPopupIdRef.current = null;
|
|
9969
9969
|
setMarkerWithPopup(null);
|
|
@@ -15380,7 +15380,7 @@ const getColumns$d = ({
|
|
|
15380
15380
|
}
|
|
15381
15381
|
}, {
|
|
15382
15382
|
dataIndex: 'province',
|
|
15383
|
-
title: t(
|
|
15383
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
15384
15384
|
ellipsis: true,
|
|
15385
15385
|
show: true,
|
|
15386
15386
|
render: (v, all) => {
|
|
@@ -15397,7 +15397,7 @@ const getColumns$d = ({
|
|
|
15397
15397
|
}
|
|
15398
15398
|
}, {
|
|
15399
15399
|
dataIndex: 'territory',
|
|
15400
|
-
title: t(
|
|
15400
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
15401
15401
|
ellipsis: true,
|
|
15402
15402
|
show: true,
|
|
15403
15403
|
render: (v, all) => {
|
|
@@ -30172,6 +30172,8 @@ const useGetQueryParams = ({
|
|
|
30172
30172
|
searchParams: rawSearchParams,
|
|
30173
30173
|
sortBy,
|
|
30174
30174
|
sortDir,
|
|
30175
|
+
status,
|
|
30176
|
+
product,
|
|
30175
30177
|
...rest
|
|
30176
30178
|
} = queryParams;
|
|
30177
30179
|
return {
|
|
@@ -30184,7 +30186,13 @@ const useGetQueryParams = ({
|
|
|
30184
30186
|
fields: safeJsonParse(rawSearchParams)
|
|
30185
30187
|
},
|
|
30186
30188
|
otherParams: {
|
|
30187
|
-
...rest
|
|
30189
|
+
...rest,
|
|
30190
|
+
...(product && {
|
|
30191
|
+
"products.typeOfProduct": product
|
|
30192
|
+
}),
|
|
30193
|
+
...(status && {
|
|
30194
|
+
published: status === "submitted" ? true : false
|
|
30195
|
+
})
|
|
30188
30196
|
},
|
|
30189
30197
|
sortBy,
|
|
30190
30198
|
sortDir
|
|
@@ -31654,7 +31662,7 @@ const getFiltersConfig$6 = ({
|
|
|
31654
31662
|
flex: 1
|
|
31655
31663
|
}
|
|
31656
31664
|
},
|
|
31657
|
-
|
|
31665
|
+
eventCategory: {
|
|
31658
31666
|
type: 'select',
|
|
31659
31667
|
label: 'Category',
|
|
31660
31668
|
placeholder: () => `${t('Filter by')} ${t('Category').toLowerCase()}`,
|
|
@@ -31747,7 +31755,7 @@ const getFilterOptions$6 = (options, t) => {
|
|
|
31747
31755
|
value: "private",
|
|
31748
31756
|
label: t("Private")
|
|
31749
31757
|
}],
|
|
31750
|
-
|
|
31758
|
+
eventCategory: _categoryOptions,
|
|
31751
31759
|
country: countries,
|
|
31752
31760
|
subCategory: subCategoriesOptions,
|
|
31753
31761
|
// category: category,
|
|
@@ -31863,7 +31871,7 @@ const getColumns$9 = ({
|
|
|
31863
31871
|
}
|
|
31864
31872
|
}, {
|
|
31865
31873
|
dataIndex: 'province',
|
|
31866
|
-
title: t(
|
|
31874
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
31867
31875
|
ellipsis: true,
|
|
31868
31876
|
show: true,
|
|
31869
31877
|
render: (v, all) => {
|
|
@@ -31880,7 +31888,7 @@ const getColumns$9 = ({
|
|
|
31880
31888
|
}
|
|
31881
31889
|
}, {
|
|
31882
31890
|
dataIndex: 'territory',
|
|
31883
|
-
title: t(
|
|
31891
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
31884
31892
|
ellipsis: true,
|
|
31885
31893
|
show: true,
|
|
31886
31894
|
render: (v, all) => {
|
|
@@ -32098,7 +32106,7 @@ const getFiltersConfig$5 = ({
|
|
|
32098
32106
|
flex: 1
|
|
32099
32107
|
}
|
|
32100
32108
|
},
|
|
32101
|
-
|
|
32109
|
+
eventCategory: {
|
|
32102
32110
|
type: 'select',
|
|
32103
32111
|
label: 'Category',
|
|
32104
32112
|
placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
|
|
@@ -32191,7 +32199,7 @@ const getFilterOptions$5 = (options, t) => {
|
|
|
32191
32199
|
value: "private",
|
|
32192
32200
|
label: t("Private")
|
|
32193
32201
|
}],
|
|
32194
|
-
|
|
32202
|
+
eventCategory: _categoryOptions,
|
|
32195
32203
|
country: countries,
|
|
32196
32204
|
subCategory: subCategoriesOptions,
|
|
32197
32205
|
// category: category,
|
|
@@ -32298,7 +32306,7 @@ const getColumns$8 = ({
|
|
|
32298
32306
|
}
|
|
32299
32307
|
}, {
|
|
32300
32308
|
dataIndex: 'province',
|
|
32301
|
-
title: t(
|
|
32309
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
32302
32310
|
ellipsis: true,
|
|
32303
32311
|
show: true,
|
|
32304
32312
|
render: (v, all) => {
|
|
@@ -32315,7 +32323,7 @@ const getColumns$8 = ({
|
|
|
32315
32323
|
}
|
|
32316
32324
|
}, {
|
|
32317
32325
|
dataIndex: 'territory',
|
|
32318
|
-
title: t(
|
|
32326
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
32319
32327
|
ellipsis: true,
|
|
32320
32328
|
show: true,
|
|
32321
32329
|
render: (v, all) => {
|
|
@@ -32554,7 +32562,7 @@ const getColumns$7 = ({
|
|
|
32554
32562
|
}
|
|
32555
32563
|
}, {
|
|
32556
32564
|
dataIndex: 'province',
|
|
32557
|
-
title: t(
|
|
32565
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
32558
32566
|
ellipsis: true,
|
|
32559
32567
|
show: true,
|
|
32560
32568
|
render: (v, all) => {
|
|
@@ -32571,7 +32579,7 @@ const getColumns$7 = ({
|
|
|
32571
32579
|
}
|
|
32572
32580
|
}, {
|
|
32573
32581
|
dataIndex: 'territory',
|
|
32574
|
-
title: t(
|
|
32582
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
32575
32583
|
ellipsis: true,
|
|
32576
32584
|
show: true,
|
|
32577
32585
|
render: (v, all) => {
|
|
@@ -32931,7 +32939,7 @@ const getColumns$6 = ({
|
|
|
32931
32939
|
}
|
|
32932
32940
|
}, {
|
|
32933
32941
|
dataIndex: 'region',
|
|
32934
|
-
title: t(
|
|
32942
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
32935
32943
|
ellipsis: true,
|
|
32936
32944
|
show: true,
|
|
32937
32945
|
render: (v, all) => {
|
|
@@ -32948,7 +32956,7 @@ const getColumns$6 = ({
|
|
|
32948
32956
|
}
|
|
32949
32957
|
}, {
|
|
32950
32958
|
dataIndex: 'territory',
|
|
32951
|
-
title: t(
|
|
32959
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
32952
32960
|
ellipsis: true,
|
|
32953
32961
|
show: true,
|
|
32954
32962
|
render: (v, all) => {
|
package/package.json
CHANGED
|
@@ -162,7 +162,7 @@ export const useMap = ({
|
|
|
162
162
|
function handleSelectMarker(clickedMarker) {
|
|
163
163
|
destroyAllPopovers();
|
|
164
164
|
setSelectedMarkersId((prev) => {
|
|
165
|
-
if (
|
|
165
|
+
if (openPopupIdRef.current === clickedMarker.datastakeId) {
|
|
166
166
|
// Deselecting - clear polylines
|
|
167
167
|
openPopupIdRef.current = null;
|
|
168
168
|
setMarkerWithPopup(null);
|
|
@@ -8,7 +8,7 @@ export const useGetQueryParams = ({location}) => {
|
|
|
8
8
|
}, [location.search]);
|
|
9
9
|
|
|
10
10
|
const params = useMemo(() => {
|
|
11
|
-
const { page, pageSize, search, searchParams: rawSearchParams, sortBy, sortDir, ...rest } = queryParams;
|
|
11
|
+
const { page, pageSize, search, searchParams: rawSearchParams, sortBy, sortDir, status, product, ...rest } = queryParams;
|
|
12
12
|
|
|
13
13
|
return {
|
|
14
14
|
paginationQuery: { skip: page, take: pageSize },
|
|
@@ -18,6 +18,8 @@ export const useGetQueryParams = ({location}) => {
|
|
|
18
18
|
},
|
|
19
19
|
otherParams: {
|
|
20
20
|
...rest,
|
|
21
|
+
...(product && { "products.typeOfProduct": product }),
|
|
22
|
+
...(status && { published: status === "submitted" ? true : false }),
|
|
21
23
|
},
|
|
22
24
|
sortBy,
|
|
23
25
|
sortDir,
|
|
@@ -72,7 +72,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
dataIndex: 'province',
|
|
75
|
-
title: t(
|
|
75
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
76
76
|
ellipsis: true,
|
|
77
77
|
show: true,
|
|
78
78
|
render: (v, all) => {
|
|
@@ -87,7 +87,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
dataIndex: 'territory',
|
|
90
|
-
title: t(
|
|
90
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
91
91
|
ellipsis: true,
|
|
92
92
|
show: true,
|
|
93
93
|
render: (v, all) => {
|
|
@@ -78,7 +78,7 @@ export const getFiltersConfig = ({t}) => {
|
|
|
78
78
|
style: { flex: 1 },
|
|
79
79
|
labelStyle: { flex: 1 },
|
|
80
80
|
},
|
|
81
|
-
|
|
81
|
+
eventCategory: {
|
|
82
82
|
type: 'select',
|
|
83
83
|
label: 'Category',
|
|
84
84
|
placeholder: () => `${t('Filter by')} ${t('Category').toLowerCase()}`,
|
|
@@ -157,7 +157,7 @@ export const getFilterOptions = (options, t) => {
|
|
|
157
157
|
label: t("Private"),
|
|
158
158
|
},
|
|
159
159
|
],
|
|
160
|
-
|
|
160
|
+
eventCategory: _categoryOptions,
|
|
161
161
|
country: countries,
|
|
162
162
|
subCategory: subCategoriesOptions,
|
|
163
163
|
// category: category,
|
|
@@ -72,7 +72,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
dataIndex: 'province',
|
|
75
|
-
title: t(
|
|
75
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
76
76
|
ellipsis: true,
|
|
77
77
|
show: true,
|
|
78
78
|
render: (v, all) => {
|
|
@@ -87,7 +87,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
dataIndex: 'territory',
|
|
90
|
-
title: t(
|
|
90
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
91
91
|
ellipsis: true,
|
|
92
92
|
show: true,
|
|
93
93
|
render: (v, all) => {
|
|
@@ -77,7 +77,7 @@ export const getFiltersConfig = ({t}) => {
|
|
|
77
77
|
style: { flex: 1 },
|
|
78
78
|
labelStyle: { flex: 1 },
|
|
79
79
|
},
|
|
80
|
-
|
|
80
|
+
eventCategory: {
|
|
81
81
|
type: 'select',
|
|
82
82
|
label: 'Category',
|
|
83
83
|
placeholder: (t) => `${t('Filter by')} ${t('Category').toLowerCase()}`,
|
|
@@ -156,7 +156,7 @@ export const getFilterOptions = (options, t) => {
|
|
|
156
156
|
label: t("Private"),
|
|
157
157
|
},
|
|
158
158
|
],
|
|
159
|
-
|
|
159
|
+
eventCategory: _categoryOptions,
|
|
160
160
|
country: countries,
|
|
161
161
|
subCategory: subCategoriesOptions,
|
|
162
162
|
// category: category,
|
|
@@ -42,7 +42,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
dataIndex: 'region',
|
|
45
|
-
title: t(
|
|
45
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
46
46
|
ellipsis: true,
|
|
47
47
|
show: true,
|
|
48
48
|
render: (v, all) => {
|
|
@@ -57,7 +57,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
dataIndex: 'territory',
|
|
60
|
-
title: t(
|
|
60
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
61
61
|
ellipsis: true,
|
|
62
62
|
show: true,
|
|
63
63
|
render: (v, all) => {
|
|
@@ -65,7 +65,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
67
|
dataIndex: 'province',
|
|
68
|
-
title: t(
|
|
68
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
69
69
|
ellipsis: true,
|
|
70
70
|
show: true,
|
|
71
71
|
render: (v, all) => {
|
|
@@ -80,7 +80,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
82
|
dataIndex: 'territory',
|
|
83
|
-
title: t(
|
|
83
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
84
84
|
ellipsis: true,
|
|
85
85
|
show: true,
|
|
86
86
|
render: (v, all) => {
|
|
@@ -73,7 +73,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
dataIndex: 'province',
|
|
76
|
-
title: t(
|
|
76
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1) || t("Province"),
|
|
77
77
|
ellipsis: true,
|
|
78
78
|
show: true,
|
|
79
79
|
render: (v, all) => {
|
|
@@ -88,7 +88,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
dataIndex: 'territory',
|
|
91
|
-
title: t(
|
|
91
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2) || t("Territory"),
|
|
92
92
|
ellipsis: true,
|
|
93
93
|
show: true,
|
|
94
94
|
render: (v, all) => {
|
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
/* Isolated Mapbox GL CSS - Scoped to prevent Leaflet conflicts */
|
|
2
|
-
|
|
3
|
-
/* Mapbox GL Core Styles - Scoped with .mapbox-gl-scope */
|
|
4
|
-
.mapbox-gl-scope .mapboxgl-map {
|
|
5
|
-
font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;
|
|
6
|
-
overflow: hidden;
|
|
7
|
-
position: relative;
|
|
8
|
-
-webkit-tap-highlight-color: rgb(0 0 0/0);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.mapbox-gl-scope .mapboxgl-canvas {
|
|
12
|
-
left: 0;
|
|
13
|
-
position: absolute;
|
|
14
|
-
top: 0;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.mapbox-gl-scope .mapboxgl-map:-webkit-full-screen {
|
|
18
|
-
height: 100%;
|
|
19
|
-
width: 100%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.mapbox-gl-scope .mapboxgl-canary {
|
|
23
|
-
background-color: salmon;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive,
|
|
27
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button.mapboxgl-ctrl-compass {
|
|
28
|
-
cursor: grab;
|
|
29
|
-
-webkit-user-select: none;
|
|
30
|
-
user-select: none;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer {
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive:active,
|
|
38
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active {
|
|
39
|
-
cursor: grabbing;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,
|
|
43
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas {
|
|
44
|
-
touch-action: pan-x pan-y;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-drag-pan,
|
|
48
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas {
|
|
49
|
-
touch-action: pinch-zoom;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
|
|
53
|
-
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
|
|
54
|
-
touch-action: none;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Control positioning */
|
|
58
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom,
|
|
59
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left,
|
|
60
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right,
|
|
61
|
-
.mapbox-gl-scope .mapboxgl-ctrl-left,
|
|
62
|
-
.mapbox-gl-scope .mapboxgl-ctrl-right,
|
|
63
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top,
|
|
64
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-left,
|
|
65
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-right {
|
|
66
|
-
pointer-events: none;
|
|
67
|
-
position: absolute;
|
|
68
|
-
z-index: 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-left {
|
|
72
|
-
left: 0;
|
|
73
|
-
top: 0;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top {
|
|
77
|
-
left: 50%;
|
|
78
|
-
top: 0;
|
|
79
|
-
transform: translateX(-50%);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-right {
|
|
83
|
-
right: 0;
|
|
84
|
-
top: 0;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.mapbox-gl-scope .mapboxgl-ctrl-right {
|
|
88
|
-
right: 0;
|
|
89
|
-
top: 50%;
|
|
90
|
-
transform: translateY(-50%);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right {
|
|
94
|
-
bottom: 0;
|
|
95
|
-
right: 0;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom {
|
|
99
|
-
bottom: 0;
|
|
100
|
-
left: 50%;
|
|
101
|
-
transform: translateX(-50%);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left {
|
|
105
|
-
bottom: 0;
|
|
106
|
-
left: 0;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
.mapbox-gl-scope .mapboxgl-ctrl-left {
|
|
110
|
-
left: 0;
|
|
111
|
-
top: 50%;
|
|
112
|
-
transform: translateY(-50%);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
.mapbox-gl-scope .mapboxgl-ctrl {
|
|
116
|
-
clear: both;
|
|
117
|
-
pointer-events: auto;
|
|
118
|
-
transform: translate(0);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-left .mapboxgl-ctrl {
|
|
122
|
-
float: left;
|
|
123
|
-
margin: 10px 0 0 10px;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top .mapboxgl-ctrl {
|
|
127
|
-
float: left;
|
|
128
|
-
margin: 10px 0;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.mapbox-gl-scope .mapboxgl-ctrl-top-right .mapboxgl-ctrl {
|
|
132
|
-
float: right;
|
|
133
|
-
margin: 10px 10px 0 0;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,
|
|
137
|
-
.mapbox-gl-scope .mapboxgl-ctrl-right .mapboxgl-ctrl {
|
|
138
|
-
float: right;
|
|
139
|
-
margin: 0 10px 10px 0;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom .mapboxgl-ctrl {
|
|
143
|
-
float: left;
|
|
144
|
-
margin: 10px 0;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,
|
|
148
|
-
.mapbox-gl-scope .mapboxgl-ctrl-left .mapboxgl-ctrl {
|
|
149
|
-
float: left;
|
|
150
|
-
margin: 0 0 10px 10px;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/* Control group styling */
|
|
154
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group {
|
|
155
|
-
background: #fff;
|
|
156
|
-
border-radius: 4px;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group:not(:empty) {
|
|
160
|
-
box-shadow: 0 0 0 2px #0000001a;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button {
|
|
164
|
-
background-color: initial;
|
|
165
|
-
border: 0;
|
|
166
|
-
box-sizing: border-box;
|
|
167
|
-
cursor: pointer;
|
|
168
|
-
display: block;
|
|
169
|
-
height: 29px;
|
|
170
|
-
outline: none;
|
|
171
|
-
overflow: hidden;
|
|
172
|
-
padding: 0;
|
|
173
|
-
width: 29px;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button+button {
|
|
177
|
-
border-top: 1px solid #ddd;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.mapbox-gl-scope .mapboxgl-ctrl button .mapboxgl-ctrl-icon {
|
|
181
|
-
background-position: 50%;
|
|
182
|
-
background-repeat: no-repeat;
|
|
183
|
-
display: block;
|
|
184
|
-
height: 100%;
|
|
185
|
-
width: 100%;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attrib-button:focus,
|
|
189
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:focus {
|
|
190
|
-
box-shadow: 0 0 2px 2px #0096ff;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.mapbox-gl-scope .mapboxgl-ctrl button:disabled {
|
|
194
|
-
cursor: not-allowed;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.mapbox-gl-scope .mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon {
|
|
198
|
-
opacity: .25;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:first-child {
|
|
202
|
-
border-radius: 4px 4px 0 0;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:last-child {
|
|
206
|
-
border-radius: 0 0 4px 4px;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
.mapbox-gl-scope .mapboxgl-ctrl-group button:only-child {
|
|
210
|
-
border-radius: inherit;
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
.mapbox-gl-scope .mapboxgl-ctrl button:not(:disabled):hover {
|
|
214
|
-
background-color: #0000000d;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
/* Marker styles */
|
|
218
|
-
.mapbox-gl-scope .mapboxgl-marker {
|
|
219
|
-
position: absolute;
|
|
220
|
-
z-index: 1;
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
.mapbox-gl-scope .mapboxgl-marker svg {
|
|
224
|
-
display: block;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
/* Popup styles */
|
|
228
|
-
.mapbox-gl-scope .mapboxgl-popup {
|
|
229
|
-
position: absolute;
|
|
230
|
-
text-align: center;
|
|
231
|
-
margin-bottom: 20px;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
.mapbox-gl-scope .mapboxgl-popup-content-wrapper {
|
|
235
|
-
padding: 1px;
|
|
236
|
-
text-align: left;
|
|
237
|
-
border-radius: 12px;
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
.mapbox-gl-scope .mapboxgl-popup-content {
|
|
241
|
-
margin: 13px 24px 13px 20px;
|
|
242
|
-
line-height: 1.3;
|
|
243
|
-
font-size: 13px;
|
|
244
|
-
min-height: 1px;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.mapbox-gl-scope .mapboxgl-popup-content p {
|
|
248
|
-
margin: 17px 0;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
.mapbox-gl-scope .mapboxgl-popup-tip-container {
|
|
252
|
-
width: 40px;
|
|
253
|
-
height: 20px;
|
|
254
|
-
position: absolute;
|
|
255
|
-
left: 50%;
|
|
256
|
-
margin-top: -1px;
|
|
257
|
-
margin-left: -20px;
|
|
258
|
-
overflow: hidden;
|
|
259
|
-
pointer-events: none;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.mapbox-gl-scope .mapboxgl-popup-tip {
|
|
263
|
-
width: 17px;
|
|
264
|
-
height: 17px;
|
|
265
|
-
padding: 1px;
|
|
266
|
-
margin: -10px auto 0;
|
|
267
|
-
pointer-events: auto;
|
|
268
|
-
-webkit-transform: rotate(45deg);
|
|
269
|
-
-moz-transform: rotate(45deg);
|
|
270
|
-
-ms-transform: rotate(45deg);
|
|
271
|
-
transform: rotate(45deg);
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
.mapbox-gl-scope .mapboxgl-popup-content-wrapper,
|
|
275
|
-
.mapbox-gl-scope .mapboxgl-popup-tip {
|
|
276
|
-
background: white;
|
|
277
|
-
color: #333;
|
|
278
|
-
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.mapbox-gl-scope .mapboxgl-popup-close-button {
|
|
282
|
-
position: absolute;
|
|
283
|
-
top: 0;
|
|
284
|
-
right: 0;
|
|
285
|
-
border: none;
|
|
286
|
-
text-align: center;
|
|
287
|
-
width: 24px;
|
|
288
|
-
height: 24px;
|
|
289
|
-
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
290
|
-
color: #757575;
|
|
291
|
-
text-decoration: none;
|
|
292
|
-
background: transparent;
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
.mapbox-gl-scope .mapboxgl-popup-close-button:hover,
|
|
296
|
-
.mapbox-gl-scope .mapboxgl-popup-close-button:focus {
|
|
297
|
-
color: #585858;
|
|
298
|
-
}
|
|
299
|
-
|
|
300
|
-
/* Attribution */
|
|
301
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution {
|
|
302
|
-
background: #fff;
|
|
303
|
-
background: rgba(255, 255, 255, 0.8);
|
|
304
|
-
margin: 0;
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution,
|
|
308
|
-
.mapbox-gl-scope .mapboxgl-ctrl-scale-line {
|
|
309
|
-
padding: 0 5px;
|
|
310
|
-
color: #333;
|
|
311
|
-
line-height: 1.4;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution a {
|
|
315
|
-
text-decoration: none;
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution a:hover,
|
|
319
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution a:focus {
|
|
320
|
-
text-decoration: underline;
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
/* Hide attribution by default */
|
|
324
|
-
.mapbox-gl-scope .mapboxgl-ctrl-attribution {
|
|
325
|
-
display: none !important;
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.mapbox-gl-scope .mapboxgl-ctrl-logo {
|
|
329
|
-
display: none !important;
|
|
330
|
-
}
|