datastake-daf 0.6.733 → 0.6.735
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 +6 -6
- package/dist/hooks/index.js +20 -4659
- package/dist/layouts/index.js +6 -6
- package/dist/pages/index.js +66 -40
- package/dist/style/datastake/mapbox-gl.css +330 -0
- package/package.json +1 -1
- package/src/@daf/core/components/DynamicForm/storyConfig.js +192 -264
- package/src/@daf/core/components/Sidenav/Menu.jsx +265 -265
- package/src/@daf/hooks/useWidgetFetch.js +1 -1
- package/src/@daf/pages/dashboards/AllInformation/Locations/columns.js +15 -9
- package/src/@daf/pages/dashboards/AllInformation/Locations/create.jsx +1 -0
- package/src/@daf/pages/dashboards/AllInformation/Locations/index.jsx +6 -5
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/create.jsx +2 -0
- package/src/@daf/pages/dashboards/AllInformation/Stakeholders/index.jsx +2 -2
- package/src/@daf/pages/dashboards/SupplyChain/components/ChartsContainer/components/Identification/index.js +2 -0
- package/src/@daf/pages/dashboards/SupplyChain/components/TradeRelationships/index.js +1 -1
- package/src/@daf/pages/dashboards/UserDashboard/components/MineSites/index.jsx +3 -0
- package/src/@daf/pages/dashboards/helper.js +6 -5
package/dist/layouts/index.js
CHANGED
|
@@ -4852,6 +4852,12 @@ function SidenavMenu({
|
|
|
4852
4852
|
className: "title-span",
|
|
4853
4853
|
children: t("core")
|
|
4854
4854
|
}), renderMenu(coreItems)]
|
|
4855
|
+
}) : null, operationsItems.length ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4856
|
+
className: "sidemenu-cont",
|
|
4857
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
4858
|
+
className: "title-span",
|
|
4859
|
+
children: t("operations")
|
|
4860
|
+
}), renderMenu(operationsItems)]
|
|
4855
4861
|
}) : null, activityItems.length ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4856
4862
|
className: "sidemenu-cont",
|
|
4857
4863
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
@@ -4906,12 +4912,6 @@ function SidenavMenu({
|
|
|
4906
4912
|
className: "title-span",
|
|
4907
4913
|
children: t("specifications")
|
|
4908
4914
|
}), renderMenu(specificationsItems)]
|
|
4909
|
-
}) : null, operationsItems.length ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4910
|
-
className: "sidemenu-cont",
|
|
4911
|
-
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
|
4912
|
-
className: "title-span",
|
|
4913
|
-
children: t("operations")
|
|
4914
|
-
}), renderMenu(operationsItems)]
|
|
4915
4915
|
}) : null, projectDataItems.length ? /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
4916
4916
|
className: "sidemenu-cont",
|
|
4917
4917
|
children: [/*#__PURE__*/jsxRuntime.jsx("span", {
|
package/dist/pages/index.js
CHANGED
|
@@ -6788,7 +6788,7 @@ const useWidgetFetch = ({
|
|
|
6788
6788
|
};
|
|
6789
6789
|
React.useEffect(() => {
|
|
6790
6790
|
fetchData();
|
|
6791
|
-
}, []);
|
|
6791
|
+
}, [config]);
|
|
6792
6792
|
return {
|
|
6793
6793
|
data,
|
|
6794
6794
|
loading,
|
|
@@ -11990,30 +11990,32 @@ const mapIcon = category => {
|
|
|
11990
11990
|
};
|
|
11991
11991
|
const leftBackground = theme.colorPrimary3;
|
|
11992
11992
|
const rightBackground = theme.colorPrimary6;
|
|
11993
|
-
const mapDataForChainOfCustody = (data = {}, options =
|
|
11993
|
+
const mapDataForChainOfCustody = (data = {}, options = {}, goTo = () => {}) => {
|
|
11994
11994
|
const mapChildren = (items, type, parentId, isDirect = true) => {
|
|
11995
|
-
return (items ?? []).map(item =>
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
|
|
12007
|
-
|
|
11995
|
+
return (items ?? []).map(item => {
|
|
11996
|
+
return {
|
|
11997
|
+
id: item.id,
|
|
11998
|
+
number: 0,
|
|
11999
|
+
name: item.name,
|
|
12000
|
+
sources: parentId ? [parentId] : [],
|
|
12001
|
+
subTitle: findOptions(item?.category, options?.categoriesOptions),
|
|
12002
|
+
leftIcon: type === "client" ? rightIcon : leftIcon,
|
|
12003
|
+
leftBackground: type === "client" ? rightBackground : leftBackground,
|
|
12004
|
+
topIcon: mapIcon(item.category),
|
|
12005
|
+
children: mapChildren(item.sources ?? item.clients ?? [], type, item.id, false),
|
|
12006
|
+
onClick: () => {
|
|
12007
|
+
if (isDirect && parentId === data.id) {
|
|
12008
|
+
goTo(`/app/partners?datastakeId=${item.id}`);
|
|
12009
|
+
}
|
|
12008
12010
|
}
|
|
12009
|
-
}
|
|
12010
|
-
})
|
|
12011
|
+
};
|
|
12012
|
+
});
|
|
12011
12013
|
};
|
|
12012
12014
|
return {
|
|
12013
12015
|
id: data.id,
|
|
12014
12016
|
number: 0,
|
|
12015
12017
|
name: data.name,
|
|
12016
|
-
subTitle: findOptions(data
|
|
12018
|
+
subTitle: findOptions(data?.category, options?.categoriesOptions),
|
|
12017
12019
|
leftIcon: middleIcon,
|
|
12018
12020
|
leftBackground: theme.colorPrimary10,
|
|
12019
12021
|
topIcon: mapIcon(data.category),
|
|
@@ -12044,7 +12046,7 @@ function TradeRelationships({
|
|
|
12044
12046
|
} = useWidgetFetch({
|
|
12045
12047
|
config: fetchConfig
|
|
12046
12048
|
});
|
|
12047
|
-
const mappedData = mapDataForChainOfCustody(Object.keys(data)?.length > 0 ? data : hardcodedData, options
|
|
12049
|
+
const mappedData = mapDataForChainOfCustody(Object.keys(data)?.length > 0 ? data : hardcodedData, options, goTo);
|
|
12048
12050
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, {
|
|
12049
12051
|
loading: loading,
|
|
12050
12052
|
title: t("Trade Relationships"),
|
|
@@ -12430,6 +12432,9 @@ function Identification({
|
|
|
12430
12432
|
label: t("Monthly"),
|
|
12431
12433
|
value: "monthly"
|
|
12432
12434
|
}], [t]);
|
|
12435
|
+
console.log({
|
|
12436
|
+
identificationData: data
|
|
12437
|
+
});
|
|
12433
12438
|
const chartConfig = useIdentification({
|
|
12434
12439
|
data,
|
|
12435
12440
|
theme,
|
|
@@ -13713,6 +13718,12 @@ function MineSites({
|
|
|
13713
13718
|
defaultData: [],
|
|
13714
13719
|
stop: selectedPartners?.loading
|
|
13715
13720
|
}), [activeTab, selectedPartners]);
|
|
13721
|
+
console.log({
|
|
13722
|
+
activeTab
|
|
13723
|
+
});
|
|
13724
|
+
console.log({
|
|
13725
|
+
dataFetchConfig
|
|
13726
|
+
});
|
|
13716
13727
|
const {
|
|
13717
13728
|
data,
|
|
13718
13729
|
loading,
|
|
@@ -29924,7 +29935,8 @@ const StakeholdersCreate$1 = ({
|
|
|
29924
29935
|
};
|
|
29925
29936
|
const newPayload = {
|
|
29926
29937
|
...defaultData,
|
|
29927
|
-
...payloadData
|
|
29938
|
+
...payloadData,
|
|
29939
|
+
form: 'stakeholder'
|
|
29928
29940
|
};
|
|
29929
29941
|
const callback = (type, m, data) => {
|
|
29930
29942
|
if (setSelectedFormNext) {
|
|
@@ -29984,7 +29996,7 @@ const StakeholdersTable = ({
|
|
|
29984
29996
|
activeTab,
|
|
29985
29997
|
getRedirectLink,
|
|
29986
29998
|
theme,
|
|
29987
|
-
subject: '
|
|
29999
|
+
subject: 'stakeholders'
|
|
29988
30000
|
}), [t, goTo, user, options, activeTab, getRedirectLink, theme]);
|
|
29989
30001
|
const breadCrumbs = [];
|
|
29990
30002
|
const {
|
|
@@ -30059,7 +30071,7 @@ const StakeholdersTable = ({
|
|
|
30059
30071
|
onSubmitted: (type, m, data) => {
|
|
30060
30072
|
if (data.datastakeId) {
|
|
30061
30073
|
displayMessage(type, t("affirmations::subject-created-successfully") || m);
|
|
30062
|
-
goTo(`/app/
|
|
30074
|
+
goTo(`/app/stakeholders`);
|
|
30063
30075
|
}
|
|
30064
30076
|
},
|
|
30065
30077
|
onCancel: onDrawerClose,
|
|
@@ -30075,6 +30087,12 @@ const StakeholdersTable = ({
|
|
|
30075
30087
|
});
|
|
30076
30088
|
};
|
|
30077
30089
|
|
|
30090
|
+
const getLinkValue = (value, linkingObject) => {
|
|
30091
|
+
if (linkingObject && linkingObject?.[value]) {
|
|
30092
|
+
return linkingObject?.[value]?.name;
|
|
30093
|
+
}
|
|
30094
|
+
return null;
|
|
30095
|
+
};
|
|
30078
30096
|
const getColumns = ({
|
|
30079
30097
|
t,
|
|
30080
30098
|
goTo,
|
|
@@ -30084,8 +30102,7 @@ const getColumns = ({
|
|
|
30084
30102
|
getRedirectLink,
|
|
30085
30103
|
theme,
|
|
30086
30104
|
subject,
|
|
30087
|
-
data
|
|
30088
|
-
dataOptions
|
|
30105
|
+
data
|
|
30089
30106
|
}) => [{
|
|
30090
30107
|
dataIndex: 'datastakeId',
|
|
30091
30108
|
title: t('ID'),
|
|
@@ -30129,7 +30146,7 @@ const getColumns = ({
|
|
|
30129
30146
|
className: "daf-default-cell"
|
|
30130
30147
|
});
|
|
30131
30148
|
}
|
|
30132
|
-
const category = findOptions(v,
|
|
30149
|
+
const category = findOptions(v, data?.options?.locationCategories);
|
|
30133
30150
|
return category ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
30134
30151
|
title: category,
|
|
30135
30152
|
children: category
|
|
@@ -30163,8 +30180,11 @@ const getColumns = ({
|
|
|
30163
30180
|
className: "daf-default-cell"
|
|
30164
30181
|
});
|
|
30165
30182
|
}
|
|
30166
|
-
|
|
30167
|
-
return
|
|
30183
|
+
const region = getLinkValue(v, all?.linking?.SCL);
|
|
30184
|
+
return region ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
30185
|
+
title: region,
|
|
30186
|
+
children: region
|
|
30187
|
+
}) : '-';
|
|
30168
30188
|
}
|
|
30169
30189
|
}, {
|
|
30170
30190
|
dataIndex: 'administrativeLevel2',
|
|
@@ -30177,8 +30197,11 @@ const getColumns = ({
|
|
|
30177
30197
|
className: "daf-default-cell"
|
|
30178
30198
|
});
|
|
30179
30199
|
}
|
|
30180
|
-
|
|
30181
|
-
return
|
|
30200
|
+
const district = getLinkValue(v, all?.linking?.SCL);
|
|
30201
|
+
return district ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
30202
|
+
title: district,
|
|
30203
|
+
children: district
|
|
30204
|
+
}) : '-';
|
|
30182
30205
|
}
|
|
30183
30206
|
}, {
|
|
30184
30207
|
title: t("Last Update"),
|
|
@@ -30209,9 +30232,10 @@ const getColumns = ({
|
|
|
30209
30232
|
className: "daf-default-cell"
|
|
30210
30233
|
});
|
|
30211
30234
|
}
|
|
30212
|
-
|
|
30213
|
-
|
|
30214
|
-
|
|
30235
|
+
console.log({
|
|
30236
|
+
val,
|
|
30237
|
+
all
|
|
30238
|
+
});
|
|
30215
30239
|
return /*#__PURE__*/jsxRuntime.jsx(AvatarGroup, {
|
|
30216
30240
|
items: val
|
|
30217
30241
|
});
|
|
@@ -30356,7 +30380,8 @@ const StakeholdersCreate = ({
|
|
|
30356
30380
|
};
|
|
30357
30381
|
const newPayload = {
|
|
30358
30382
|
...defaultData,
|
|
30359
|
-
...payloadData
|
|
30383
|
+
...payloadData,
|
|
30384
|
+
form: 'location'
|
|
30360
30385
|
};
|
|
30361
30386
|
const callback = (type, m, data) => {
|
|
30362
30387
|
if (setSelectedFormNext) {
|
|
@@ -30404,8 +30429,7 @@ const LocationsTable = ({
|
|
|
30404
30429
|
changeAjaxOptions = () => {},
|
|
30405
30430
|
formData = {},
|
|
30406
30431
|
formValue = {},
|
|
30407
|
-
form = {}
|
|
30408
|
-
dataOptions = {}
|
|
30432
|
+
form = {}
|
|
30409
30433
|
}) => {
|
|
30410
30434
|
const [selectOptions, setSelectOptions] = React.useState();
|
|
30411
30435
|
const [activeTab, setActiveTab] = React.useState();
|
|
@@ -30417,10 +30441,9 @@ const LocationsTable = ({
|
|
|
30417
30441
|
activeTab,
|
|
30418
30442
|
getRedirectLink,
|
|
30419
30443
|
theme,
|
|
30420
|
-
subject: '
|
|
30421
|
-
data
|
|
30422
|
-
|
|
30423
|
-
}), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, dataOptions]);
|
|
30444
|
+
subject: 'locations',
|
|
30445
|
+
data
|
|
30446
|
+
}), [t, goTo, user, options, activeTab, getRedirectLink, theme, data]);
|
|
30424
30447
|
const breadCrumbs = [];
|
|
30425
30448
|
const {
|
|
30426
30449
|
paginationQuery,
|
|
@@ -30441,6 +30464,9 @@ const LocationsTable = ({
|
|
|
30441
30464
|
tab: activeTab
|
|
30442
30465
|
}, 'locations');
|
|
30443
30466
|
}, [paginationQuery, otherParams, searchParams, activeTab]);
|
|
30467
|
+
console.log({
|
|
30468
|
+
data
|
|
30469
|
+
});
|
|
30444
30470
|
const selectFiltersConfig = React.useMemo(() => {
|
|
30445
30471
|
return getFiltersConfig({
|
|
30446
30472
|
t
|
|
@@ -30495,7 +30521,7 @@ const LocationsTable = ({
|
|
|
30495
30521
|
if (data.datastakeId) {
|
|
30496
30522
|
displayMessage(type, t("affirmations::subject-created-successfully") || m);
|
|
30497
30523
|
// goTo(`/app/edit/stakeholders/${data.datastakeId}`);
|
|
30498
|
-
|
|
30524
|
+
goTo('/app/locations');
|
|
30499
30525
|
}
|
|
30500
30526
|
},
|
|
30501
30527
|
onCancel: onDrawerClose,
|
|
@@ -0,0 +1,330 @@
|
|
|
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
|
+
}
|