datastake-daf 0.6.839 → 0.6.840
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 +103 -98
- package/dist/pages/index.js +13 -6
- package/dist/utils/index.js +4 -0
- package/package.json +1 -1
- package/src/@daf/pages/Dashboards/ConflictManagement/components/RisksWidget/components/ProblemSolver/index.js +1 -1
- package/src/@daf/pages/Dashboards/SelfAssesment/components/ProductionSites/index.jsx +2 -1
- package/src/@daf/pages/Dashboards/SelfAssesment/index.jsx +3 -2
- package/src/@daf/pages/ResetPassword/index.jsx +228 -0
- package/src/@daf/pages/Summary/Operator/components/Governance/config.js +1 -1
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/helper.js +1 -0
- package/src/@daf/pages/Summary/Operator/components/TradeRelationships/index.js +10 -6
- package/src/constants/locales/en/translation.js +2 -0
- package/src/constants/locales/fr/translation.js +1 -0
- package/src/constants/locales/sp/translation.js +1 -0
- package/src/index.js +6 -1
- package/build/favicon.ico +0 -0
- package/build/logo192.png +0 -0
- package/build/logo512.png +0 -0
- package/build/manifest.json +0 -25
- package/build/robots.txt +0 -3
- package/dist/style/datastake/mapbox-gl.css +0 -330
package/dist/components/index.js
CHANGED
|
@@ -41769,23 +41769,22 @@ function renderRepeatable(options, k, setValues, values, excludedKeys, i, formTi
|
|
|
41769
41769
|
const formId = form.dataId || k;
|
|
41770
41770
|
const allInputs = Object.keys(form.inputs).filter(i => {
|
|
41771
41771
|
const input = form.inputs[i];
|
|
41772
|
-
return !excludedKeys.includes(i) && !input.excludeFromEdit && showHideInput(input, values, undefined, undefined, setValues,
|
|
41772
|
+
return !excludedKeys.includes(i) && !input.excludeFromEdit && showHideInput(input, values, undefined, undefined, setValues, `${formId}.${i}`);
|
|
41773
41773
|
});
|
|
41774
41774
|
return allInputs.length ? /*#__PURE__*/jsxRuntime.jsxs(React__default["default"].Fragment, {
|
|
41775
41775
|
children: [getFormTitles(formTitles, formId, i), ['h2', 'h3', 'h4', 'h5', 'h6'].includes(form.type) ? getInputHeadLines(form.type, i, form, values) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
41776
41776
|
children: [!form.repeatable ? /*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
41777
|
-
className:
|
|
41777
|
+
className: `${form.titleClass ? form.titleClass : 'title-semibold-4'} mb0 ${i ? 'mt-3' : ''}`,
|
|
41778
41778
|
children: getInputLabel(form, values)
|
|
41779
41779
|
}) : !form.hideSectionLabel ? /*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
41780
|
-
className:
|
|
41780
|
+
className: `${form.titleClass ? form.titleClass : 'title-semibold-4'} mb0 ${i ? 'mt-3' : ''}`,
|
|
41781
41781
|
children: form.sectionLabel ? getSectionLabel(form.sectionLabel, values) : form.label ? getInputLabel(form, values) : camelCaseToTitle(k)
|
|
41782
41782
|
}) : null, /*#__PURE__*/jsxRuntime.jsx(antd.Form.List, {
|
|
41783
41783
|
name: formId,
|
|
41784
|
-
children: (fields,
|
|
41785
|
-
|
|
41786
|
-
|
|
41787
|
-
|
|
41788
|
-
} = _ref;
|
|
41784
|
+
children: (fields, {
|
|
41785
|
+
add,
|
|
41786
|
+
remove
|
|
41787
|
+
}) => {
|
|
41789
41788
|
const formData = form.repeatable ? values[formId] || [] : values[formId] ? [values[formId]] : [];
|
|
41790
41789
|
if (fields.length === 0) {
|
|
41791
41790
|
const formInputs = form.inputs;
|
|
@@ -41836,7 +41835,7 @@ function renderRepeatable(options, k, setValues, values, excludedKeys, i, formTi
|
|
|
41836
41835
|
padding: '0px 5px',
|
|
41837
41836
|
color: '#2E90FA'
|
|
41838
41837
|
},
|
|
41839
|
-
children:
|
|
41838
|
+
children: `#${field.name + 1}`
|
|
41840
41839
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
41841
41840
|
className: "remove-button-for-repeatable",
|
|
41842
41841
|
children: (formData.filter(k => Object.keys(k).length > 0).length >= 1 || fields.length > 1) && (typeof form.canDelete !== 'function' || form.canDelete(Array.isArray(values[formId]) ? values[formId][field.name] || {} : values[formId] || {})) ? /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
|
|
@@ -41858,8 +41857,8 @@ function renderRepeatable(options, k, setValues, values, excludedKeys, i, formTi
|
|
|
41858
41857
|
const inputId = input.dataId || inp;
|
|
41859
41858
|
const inputValues = Array.isArray(values[formId]) ? values[formId][field.name] || {} : values[formId] || {};
|
|
41860
41859
|
const value = inputValues[inputId];
|
|
41861
|
-
const commentValue = inputValues[
|
|
41862
|
-
const inputData = getData(formId, input, value, commentValue,
|
|
41860
|
+
const commentValue = inputValues[`${inputId}Comment`];
|
|
41861
|
+
const inputData = getData(formId, input, value, commentValue, `${formId}[${field.name}].${inputId}`, `${formId}.${inputId}`);
|
|
41863
41862
|
const subtitles = form.subtitles || null;
|
|
41864
41863
|
inputData.repeatIndex = field.name;
|
|
41865
41864
|
inputData.inputName = inputId;
|
|
@@ -41880,59 +41879,64 @@ function renderRepeatable(options, k, setValues, values, excludedKeys, i, formTi
|
|
|
41880
41879
|
message: requiredRule.message || ''
|
|
41881
41880
|
});
|
|
41882
41881
|
}
|
|
41883
|
-
return showHideInput(input, values, field.name, inputValues, setValues,
|
|
41882
|
+
return showHideInput(input, values, field.name, inputValues, setValues, `${formId}[${field.name}].${inputId}`) ? /*#__PURE__*/jsxRuntime.jsx(React__default["default"].Fragment, {
|
|
41884
41883
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
41885
|
-
className: form.repeatable ?
|
|
41884
|
+
className: form.repeatable ? `inputs` : "",
|
|
41886
41885
|
children: [getSubtitles(subtitles, input.position, values, field.name, inputValues), ['h2', 'h3', 'h4', 'h5', 'h6'].includes(input.type) ? getInputHeadLines(input.type, i, input, values) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
41887
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(antd.Form.Item,
|
|
41888
|
-
|
|
41889
|
-
|
|
41890
|
-
|
|
41891
|
-
|
|
41892
|
-
|
|
41893
|
-
|
|
41894
|
-
|
|
41895
|
-
|
|
41896
|
-
|
|
41897
|
-
|
|
41898
|
-
|
|
41899
|
-
|
|
41900
|
-
if (f.response) {
|
|
41901
|
-
return f.response;
|
|
41886
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
|
|
41887
|
+
...field,
|
|
41888
|
+
required: inputData.rules && inputData.rules instanceof Array && inputData.rules.filter(r => r.required).length > 0 ? true : false,
|
|
41889
|
+
...(['total100', 'group'].includes(input.type) ? {} : {
|
|
41890
|
+
name: [field.name, inputId],
|
|
41891
|
+
fieldKey: [field.fieldKey, inputId],
|
|
41892
|
+
initialValue: inputData.value
|
|
41893
|
+
}),
|
|
41894
|
+
...(['upload'].includes(input.type) ? {
|
|
41895
|
+
valuePropName: "fileList",
|
|
41896
|
+
getValueFromEvent: e => {
|
|
41897
|
+
if (Array.isArray(e)) {
|
|
41898
|
+
return e;
|
|
41902
41899
|
}
|
|
41903
|
-
return f
|
|
41904
|
-
|
|
41905
|
-
|
|
41906
|
-
|
|
41900
|
+
return e && e.fileList && e.fileList.map(f => {
|
|
41901
|
+
if (f.response) {
|
|
41902
|
+
return f.response;
|
|
41903
|
+
}
|
|
41904
|
+
return f;
|
|
41905
|
+
});
|
|
41906
|
+
}
|
|
41907
|
+
} : {}),
|
|
41907
41908
|
style: input.showOnView === false ? {
|
|
41908
41909
|
display: 'none'
|
|
41909
|
-
} : {}
|
|
41910
|
-
|
|
41911
|
-
|
|
41912
|
-
|
|
41913
|
-
|
|
41914
|
-
|
|
41915
|
-
|
|
41916
|
-
|
|
41917
|
-
|
|
41918
|
-
|
|
41919
|
-
|
|
41920
|
-
|
|
41910
|
+
} : {},
|
|
41911
|
+
...(['switch'].includes(input.type) ? {
|
|
41912
|
+
labelCol: {
|
|
41913
|
+
span: 20
|
|
41914
|
+
},
|
|
41915
|
+
style: {
|
|
41916
|
+
...(input.showOnView === false ? {
|
|
41917
|
+
display: 'none'
|
|
41918
|
+
} : {}),
|
|
41919
|
+
flexDirection: 'row',
|
|
41920
|
+
justifyContent: 'space-between'
|
|
41921
|
+
}
|
|
41922
|
+
} : {}),
|
|
41921
41923
|
label: getInputLabel(input, values),
|
|
41922
41924
|
rules: rules,
|
|
41923
|
-
className: input.comment ?
|
|
41925
|
+
className: input.comment ? `with-comment i-${input.type}` : `i-${input.type}`,
|
|
41924
41926
|
extra: input.comment ? /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
|
|
41925
41927
|
disabled: inputData.props.disabled,
|
|
41926
41928
|
type: "link",
|
|
41927
41929
|
onClick: () => {
|
|
41928
41930
|
const inputValues = Array.isArray(values[formId]) ? values[formId][field.name] || {} : values[formId] || {};
|
|
41929
|
-
inputValues[
|
|
41931
|
+
inputValues[`${inputData.inputName}Comment`] = !inputData.commentValue ? '' : undefined;
|
|
41930
41932
|
if (Array.isArray(values[formId])) {
|
|
41931
41933
|
values[formId][field.name] = inputValues;
|
|
41932
41934
|
} else {
|
|
41933
41935
|
values[formId] = inputValues;
|
|
41934
41936
|
}
|
|
41935
|
-
setValues(
|
|
41937
|
+
setValues({
|
|
41938
|
+
...values
|
|
41939
|
+
});
|
|
41936
41940
|
},
|
|
41937
41941
|
children: t(!inputData.commentValue ? 'Add Comment' : 'Remove Comment')
|
|
41938
41942
|
}) : null,
|
|
@@ -41949,9 +41953,9 @@ function renderRepeatable(options, k, setValues, values, excludedKeys, i, formTi
|
|
|
41949
41953
|
getAppHeader,
|
|
41950
41954
|
getApiBaseUrl
|
|
41951
41955
|
}) : console.log(input)
|
|
41952
|
-
})
|
|
41953
|
-
name: [field.name,
|
|
41954
|
-
fieldKey: [field.fieldKey,
|
|
41956
|
+
}), input.comment ? /*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
|
|
41957
|
+
name: [field.name, `${inputData.inputName}Comment`],
|
|
41958
|
+
fieldKey: [field.fieldKey, `${inputData.inputName}Comment`],
|
|
41955
41959
|
initialValue: inputData.commentValue,
|
|
41956
41960
|
hidden: !inputData.commentValue,
|
|
41957
41961
|
children: inputTypeComponent.comment(inputData, {
|
|
@@ -41965,10 +41969,10 @@ function renderRepeatable(options, k, setValues, values, excludedKeys, i, formTi
|
|
|
41965
41969
|
}) : null]
|
|
41966
41970
|
})]
|
|
41967
41971
|
}, ii)
|
|
41968
|
-
},
|
|
41972
|
+
}, `${i}${ii}`) : null;
|
|
41969
41973
|
})
|
|
41970
41974
|
})]
|
|
41971
|
-
},
|
|
41975
|
+
}, `${formId}-${field.name}`)), form.repeatable ? /*#__PURE__*/jsxRuntime.jsxs(antd.Button, {
|
|
41972
41976
|
type: "dashed",
|
|
41973
41977
|
style: {
|
|
41974
41978
|
margin: '10px 0px 30px',
|
|
@@ -41997,7 +42001,7 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
|
|
|
41997
42001
|
const hasLabel = label && (typeof label === 'string' && (label || '').trim() !== '' || typeof label === 'object') ? true : false;
|
|
41998
42002
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
41999
42003
|
children: [hasLabel ? /*#__PURE__*/jsxRuntime.jsx("h3", {
|
|
42000
|
-
className:
|
|
42004
|
+
className: `${form.titleClass ? form.titleClass : 'title-semibold-4'} ${i ? 'mt-3 mb-1' : ''}`,
|
|
42001
42005
|
children: label
|
|
42002
42006
|
}) : null, /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42003
42007
|
className: hasLabel ? "mb-4" : "",
|
|
@@ -42006,8 +42010,8 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
|
|
|
42006
42010
|
const inputId = input.dataId || inp;
|
|
42007
42011
|
const inputValues = Array.isArray(values[formId]) ? values[formId] || {} : values[formId] || {};
|
|
42008
42012
|
const value = inputValues[inputId];
|
|
42009
|
-
const commentValue = inputValues[
|
|
42010
|
-
const inputData = getData(formId, input, value, commentValue,
|
|
42013
|
+
const commentValue = inputValues[`${inputId}Comment`];
|
|
42014
|
+
const inputData = getData(formId, input, value, commentValue, `${formId}.${inputId}`, `${formId}.${inputId}`);
|
|
42011
42015
|
const subtitles = form.subtitles || null;
|
|
42012
42016
|
inputData.repeatIndex = undefined;
|
|
42013
42017
|
inputData.inputName = inputId;
|
|
@@ -42028,58 +42032,62 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
|
|
|
42028
42032
|
message: requiredRule.message || ''
|
|
42029
42033
|
});
|
|
42030
42034
|
}
|
|
42031
|
-
return showHideInput(input, values, undefined, inputValues, setValues,
|
|
42035
|
+
return showHideInput(input, values, undefined, inputValues, setValues, `${formId}.${inputId}`) ? /*#__PURE__*/jsxRuntime.jsx(React__default["default"].Fragment, {
|
|
42032
42036
|
children: /*#__PURE__*/jsxRuntime.jsxs("div", {
|
|
42033
42037
|
children: [getSubtitles(subtitles, input.position, values, undefined, inputValues), ['h2', 'h3', 'h4', 'h5', 'h6'].includes(input.type) ? getInputHeadLines(input.type, i, input, values) : /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
42034
|
-
children: [/*#__PURE__*/jsxRuntime.jsx(antd.Form.Item,
|
|
42035
|
-
required: inputData.rules && inputData.rules instanceof Array && inputData.rules.filter(r => r.required).length > 0 ? true : false
|
|
42036
|
-
|
|
42037
|
-
|
|
42038
|
-
|
|
42039
|
-
|
|
42040
|
-
|
|
42041
|
-
|
|
42042
|
-
|
|
42043
|
-
|
|
42044
|
-
|
|
42045
|
-
|
|
42046
|
-
return e && e.fileList && e.fileList.map(f => {
|
|
42047
|
-
if (f.response) {
|
|
42048
|
-
return f.response;
|
|
42038
|
+
children: [/*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
|
|
42039
|
+
required: inputData.rules && inputData.rules instanceof Array && inputData.rules.filter(r => r.required).length > 0 ? true : false,
|
|
42040
|
+
...(['total100', 'group'].includes(input.type) ? {} : {
|
|
42041
|
+
name: [formId, inputId],
|
|
42042
|
+
fieldKey: [formId, inputId],
|
|
42043
|
+
initialValue: inputData.value
|
|
42044
|
+
}),
|
|
42045
|
+
...(['upload'].includes(input.type) ? {
|
|
42046
|
+
valuePropName: "fileList",
|
|
42047
|
+
getValueFromEvent: e => {
|
|
42048
|
+
if (Array.isArray(e)) {
|
|
42049
|
+
return e;
|
|
42049
42050
|
}
|
|
42050
|
-
return f
|
|
42051
|
-
|
|
42052
|
-
|
|
42053
|
-
|
|
42051
|
+
return e && e.fileList && e.fileList.map(f => {
|
|
42052
|
+
if (f.response) {
|
|
42053
|
+
return f.response;
|
|
42054
|
+
}
|
|
42055
|
+
return f;
|
|
42056
|
+
});
|
|
42057
|
+
}
|
|
42058
|
+
} : {}),
|
|
42054
42059
|
style: input.showOnView === false ? {
|
|
42055
42060
|
display: 'none'
|
|
42056
|
-
} : {}
|
|
42057
|
-
|
|
42058
|
-
|
|
42059
|
-
|
|
42060
|
-
|
|
42061
|
-
|
|
42062
|
-
|
|
42063
|
-
|
|
42064
|
-
|
|
42065
|
-
|
|
42066
|
-
|
|
42067
|
-
|
|
42061
|
+
} : {},
|
|
42062
|
+
...(['switch'].includes(input.type) ? {
|
|
42063
|
+
labelCol: {
|
|
42064
|
+
span: 20
|
|
42065
|
+
},
|
|
42066
|
+
style: {
|
|
42067
|
+
...(input.showOnView === false ? {
|
|
42068
|
+
display: 'none'
|
|
42069
|
+
} : {}),
|
|
42070
|
+
flexDirection: 'row',
|
|
42071
|
+
justifyContent: 'space-between'
|
|
42072
|
+
}
|
|
42073
|
+
} : {}),
|
|
42068
42074
|
label: getInputLabel(input, values),
|
|
42069
42075
|
rules: rules,
|
|
42070
|
-
className: input.comment ?
|
|
42076
|
+
className: input.comment ? `with-comment i-${input.type}` : `i-${input.type}`,
|
|
42071
42077
|
extra: input.comment ? /*#__PURE__*/jsxRuntime.jsx(antd.Button, {
|
|
42072
42078
|
disabled: inputData.props.disabled,
|
|
42073
42079
|
type: "link",
|
|
42074
42080
|
onClick: () => {
|
|
42075
42081
|
const inputValues = Array.isArray(values[formId]) ? values[formId] || {} : values[formId] || {};
|
|
42076
|
-
inputValues[
|
|
42082
|
+
inputValues[`${inputData.inputName}Comment`] = !inputData.commentValue ? '' : undefined;
|
|
42077
42083
|
if (Array.isArray(values[formId])) {
|
|
42078
42084
|
values[formId] = inputValues;
|
|
42079
42085
|
} else {
|
|
42080
42086
|
values[formId] = inputValues;
|
|
42081
42087
|
}
|
|
42082
|
-
setValues(
|
|
42088
|
+
setValues({
|
|
42089
|
+
...values
|
|
42090
|
+
});
|
|
42083
42091
|
},
|
|
42084
42092
|
children: t(!inputData.commentValue ? 'Add Comment' : 'Remove Comment')
|
|
42085
42093
|
}) : null,
|
|
@@ -42094,9 +42102,9 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
|
|
|
42094
42102
|
getAppHeader,
|
|
42095
42103
|
getApiBaseUrl
|
|
42096
42104
|
}) : console.log(input)
|
|
42097
|
-
})
|
|
42098
|
-
name: [formId,
|
|
42099
|
-
fieldKey: [formId,
|
|
42105
|
+
}), input.comment ? /*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
|
|
42106
|
+
name: [formId, `${inputData.inputName}Comment`],
|
|
42107
|
+
fieldKey: [formId, `${inputData.inputName}Comment`],
|
|
42100
42108
|
initialValue: inputData.commentValue,
|
|
42101
42109
|
hidden: !inputData.commentValue,
|
|
42102
42110
|
children: inputTypeComponent.comment(inputData, {
|
|
@@ -42110,7 +42118,7 @@ const getGrouContent = (form, values, i, formId, excludedKeys, getData, setValue
|
|
|
42110
42118
|
}) : null]
|
|
42111
42119
|
})]
|
|
42112
42120
|
}, ii)
|
|
42113
|
-
},
|
|
42121
|
+
}, `${i}${ii}`) : null;
|
|
42114
42122
|
})
|
|
42115
42123
|
})]
|
|
42116
42124
|
});
|
|
@@ -42149,10 +42157,7 @@ const useCombinedPrefilledValues = (combinedPrefilledValues, values, parentValue
|
|
|
42149
42157
|
}
|
|
42150
42158
|
});
|
|
42151
42159
|
if (hasChanges) {
|
|
42152
|
-
setValues(prevValues => ({
|
|
42153
|
-
...prevValues,
|
|
42154
|
-
...resolvedValues
|
|
42155
|
-
}));
|
|
42160
|
+
setValues(prevValues => _objectSpread2(_objectSpread2({}, prevValues), resolvedValues));
|
|
42156
42161
|
MainForm.setFieldsValue(resolvedValues);
|
|
42157
42162
|
}
|
|
42158
42163
|
}, [values, parentValues, combinedPrefilledValues, setValues, MainForm]);
|
package/dist/pages/index.js
CHANGED
|
@@ -16580,7 +16580,8 @@ function ProductionSites({
|
|
|
16580
16580
|
goTo = () => {},
|
|
16581
16581
|
getRedirectLink = () => {},
|
|
16582
16582
|
data = [],
|
|
16583
|
-
loading = false
|
|
16583
|
+
loading = false,
|
|
16584
|
+
APP
|
|
16584
16585
|
}) {
|
|
16585
16586
|
const productionSites = React.useMemo(() => {
|
|
16586
16587
|
if (Array.isArray(data?.productionSites)) {
|
|
@@ -16601,7 +16602,7 @@ function ProductionSites({
|
|
|
16601
16602
|
});
|
|
16602
16603
|
}, [t, options, user, goTo, getRedirectLink]);
|
|
16603
16604
|
return /*#__PURE__*/jsxRuntime.jsx(Widget, {
|
|
16604
|
-
title: t("
|
|
16605
|
+
title: t(APP === 'wazi' ? "Operating Sites" : "Production Site"),
|
|
16605
16606
|
className: "with-border-header no-px-body",
|
|
16606
16607
|
loading: loading,
|
|
16607
16608
|
children: /*#__PURE__*/jsxRuntime.jsx(Wrapper, {
|
|
@@ -17183,7 +17184,8 @@ function SelfAssesment({
|
|
|
17183
17184
|
theme = {},
|
|
17184
17185
|
options = {},
|
|
17185
17186
|
data,
|
|
17186
|
-
loading
|
|
17187
|
+
loading,
|
|
17188
|
+
APP
|
|
17187
17189
|
}) {
|
|
17188
17190
|
return /*#__PURE__*/jsxRuntime.jsxs(DashboardLayout, {
|
|
17189
17191
|
header: /*#__PURE__*/jsxRuntime.jsx(DAFHeader, {
|
|
@@ -17208,7 +17210,8 @@ function SelfAssesment({
|
|
|
17208
17210
|
goTo: goTo,
|
|
17209
17211
|
getRedirectLink: getRedirectLink,
|
|
17210
17212
|
data: data,
|
|
17211
|
-
loading: loading
|
|
17213
|
+
loading: loading,
|
|
17214
|
+
APP: APP
|
|
17212
17215
|
})
|
|
17213
17216
|
}), /*#__PURE__*/jsxRuntime.jsx("section", {
|
|
17214
17217
|
children: /*#__PURE__*/jsxRuntime.jsx(AssociatedInformation$1, {
|
|
@@ -46600,6 +46603,7 @@ const mapItem = (data, options, goTo, getRedirectLink, operatorData = {}, APP) =
|
|
|
46600
46603
|
value: data.country || operatorData?.country
|
|
46601
46604
|
},
|
|
46602
46605
|
totalSources: data.sources ?? 0,
|
|
46606
|
+
product: data?.product || "",
|
|
46603
46607
|
volume: data?.volume || "",
|
|
46604
46608
|
onClick: function () {
|
|
46605
46609
|
if (data.type === "mineSite") {
|
|
@@ -47113,6 +47117,9 @@ const TradeRelationships = ({
|
|
|
47113
47117
|
return c.totalSources || 0;
|
|
47114
47118
|
},
|
|
47115
47119
|
renderTooltipItems: data => [{
|
|
47120
|
+
label: "Product",
|
|
47121
|
+
value: data?.product || "--"
|
|
47122
|
+
}, {
|
|
47116
47123
|
label: "Volume",
|
|
47117
47124
|
value: data?.volume || "--"
|
|
47118
47125
|
}],
|
|
@@ -47151,7 +47158,7 @@ const IconNodesConfig$1 = {
|
|
|
47151
47158
|
emptyName: "no-management"
|
|
47152
47159
|
},
|
|
47153
47160
|
shareholders: {
|
|
47154
|
-
name: "
|
|
47161
|
+
name: "Shareholders",
|
|
47155
47162
|
icon: "PercentCircle",
|
|
47156
47163
|
order: 4,
|
|
47157
47164
|
emptyName: "no-stakeholders"
|
|
@@ -64496,7 +64503,7 @@ function ProblemSolvers({
|
|
|
64496
64503
|
}, [data]);
|
|
64497
64504
|
const isEmpty = !pieData.length;
|
|
64498
64505
|
const getTooltipChildren = React.useCallback(items => {
|
|
64499
|
-
const item = items[0];
|
|
64506
|
+
const item = Array.isArray(items) ? items[0] : items;
|
|
64500
64507
|
return renderTooltipJsx({
|
|
64501
64508
|
title: item?.label || t("Undetermined"),
|
|
64502
64509
|
link: true,
|
package/dist/utils/index.js
CHANGED
|
@@ -7850,6 +7850,7 @@ function mapUser(user) {
|
|
|
7850
7850
|
}
|
|
7851
7851
|
|
|
7852
7852
|
const en = {
|
|
7853
|
+
"Operating Sites": "Operating Sites",
|
|
7853
7854
|
"Identified Mine Sites": "Identified Mine Sites",
|
|
7854
7855
|
"Associated Documents": "Associated Documents",
|
|
7855
7856
|
"Male": "Male",
|
|
@@ -7878,6 +7879,7 @@ const en = {
|
|
|
7878
7879
|
"events": "Events",
|
|
7879
7880
|
"merge-locations": "Merge Locations",
|
|
7880
7881
|
"edit-account": "Edit Account",
|
|
7882
|
+
"testimonials": "Testimonials",
|
|
7881
7883
|
"Are-you-sure-you-want-to-remove-the-user-from-this-account?": "Are you sure you want to remove the user from this account?",
|
|
7882
7884
|
"The-user-will-lose-access-to-the-application-and-to-all-data-created-for-this-account.": "The user will lose access to the application and to all data created for this account.",
|
|
7883
7885
|
"merge": "Merge",
|
|
@@ -9221,6 +9223,7 @@ const en = {
|
|
|
9221
9223
|
};
|
|
9222
9224
|
|
|
9223
9225
|
const fr = {
|
|
9226
|
+
"Operating Sites": "Sites d’Exploitation",
|
|
9224
9227
|
"Identified Mine Sites": "Sites miniers identifiés",
|
|
9225
9228
|
"Associated Documents": "Documents associés",
|
|
9226
9229
|
"Male": "Masculin",
|
|
@@ -11158,6 +11161,7 @@ const fr = {
|
|
|
11158
11161
|
};
|
|
11159
11162
|
|
|
11160
11163
|
const sp = {
|
|
11164
|
+
"Operating Sites": "Sitios de Operación",
|
|
11161
11165
|
"Identified Mine Sites": "Sitios mineros identificados",
|
|
11162
11166
|
"Associated Documents": "Documentos asociados",
|
|
11163
11167
|
"Male": "Masculino",
|
package/package.json
CHANGED
|
@@ -58,7 +58,7 @@ function ProblemSolvers({ selectedPartners = {}, loading: parentLoading = false,
|
|
|
58
58
|
const isEmpty = !pieData.length;
|
|
59
59
|
|
|
60
60
|
const getTooltipChildren = useCallback((items) => {
|
|
61
|
-
const item = items[0];
|
|
61
|
+
const item = Array.isArray(items) ? items[0] : items;
|
|
62
62
|
|
|
63
63
|
return renderTooltipJsx({
|
|
64
64
|
title: item?.label || t("Undetermined"),
|
|
@@ -13,6 +13,7 @@ function ProductionSites({
|
|
|
13
13
|
getRedirectLink = () => {},
|
|
14
14
|
data = [],
|
|
15
15
|
loading = false,
|
|
16
|
+
APP,
|
|
16
17
|
}) {
|
|
17
18
|
|
|
18
19
|
const productionSites = useMemo(() => {
|
|
@@ -32,7 +33,7 @@ function ProductionSites({
|
|
|
32
33
|
|
|
33
34
|
return (
|
|
34
35
|
<Widget
|
|
35
|
-
title={t("
|
|
36
|
+
title={t(APP === 'wazi' ? "Operating Sites" : "Production Site")}
|
|
36
37
|
className="with-border-header no-px-body"
|
|
37
38
|
loading={loading}
|
|
38
39
|
>
|
|
@@ -14,7 +14,8 @@ function SelfAssesment({
|
|
|
14
14
|
theme = {},
|
|
15
15
|
options = {},
|
|
16
16
|
data,
|
|
17
|
-
loading
|
|
17
|
+
loading,
|
|
18
|
+
APP,
|
|
18
19
|
}) {
|
|
19
20
|
return (
|
|
20
21
|
<DashboardLayout
|
|
@@ -29,7 +30,7 @@ function SelfAssesment({
|
|
|
29
30
|
<OrganisationInformation t={t} user={user} goTo={goTo} getRedirectLink={getRedirectLink} theme={theme} data={data} loading={loading}/>
|
|
30
31
|
</section>
|
|
31
32
|
<section>
|
|
32
|
-
<ProductionSites t={t} options={options} user={user} goTo={goTo} getRedirectLink={getRedirectLink} data={data} loading={loading} />
|
|
33
|
+
<ProductionSites t={t} options={options} user={user} goTo={goTo} getRedirectLink={getRedirectLink} data={data} loading={loading} APP={APP} />
|
|
33
34
|
</section>
|
|
34
35
|
<section>
|
|
35
36
|
<AssociatedInformation t={t} user={user} goTo={goTo} getRedirectLink={getRedirectLink} data={data} loading={loading} theme={theme} options={options} />
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// import React from "react";
|
|
2
|
+
// import DafButton from "../../../Button/index.jsx";
|
|
3
|
+
// import Loading from "../../../Loading/index.jsx";
|
|
4
|
+
// import AuthForm from "../../../AuthForm/index.jsx";
|
|
5
|
+
|
|
6
|
+
// const step = 1;
|
|
7
|
+
|
|
8
|
+
// export default function ResetPassword({
|
|
9
|
+
// resetRequestSuccedded,
|
|
10
|
+
// resetRequestError,
|
|
11
|
+
// submitting,
|
|
12
|
+
// requestResetPassword,
|
|
13
|
+
// resetPassword,
|
|
14
|
+
// params: propParams = {},
|
|
15
|
+
// Layout,
|
|
16
|
+
// goTo,
|
|
17
|
+
// t,
|
|
18
|
+
// theme,
|
|
19
|
+
// errors,
|
|
20
|
+
|
|
21
|
+
// loginPath: loginPathProp,
|
|
22
|
+
// }) {
|
|
23
|
+
// const { app, confirmationToken } = propParams;
|
|
24
|
+
|
|
25
|
+
// const getLogInLink = () => {
|
|
26
|
+
// if (loginPathProp) return loginPathProp;
|
|
27
|
+
// if (app) return `/${app}/login`;
|
|
28
|
+
// return "/login";
|
|
29
|
+
// };
|
|
30
|
+
|
|
31
|
+
// const handleGoToLogin = () => {
|
|
32
|
+
// const link = getLogInLink();
|
|
33
|
+
// if (goTo && typeof goTo === "function") {
|
|
34
|
+
// goTo(link);
|
|
35
|
+
// } else {
|
|
36
|
+
// window.location.href = link;
|
|
37
|
+
// }
|
|
38
|
+
// };
|
|
39
|
+
|
|
40
|
+
// const title = !confirmationToken
|
|
41
|
+
// ? resetRequestSuccedded
|
|
42
|
+
// ? "Thank you"
|
|
43
|
+
// : "Reset Password"
|
|
44
|
+
// : resetRequestSuccedded
|
|
45
|
+
// ? "Password updated"
|
|
46
|
+
// : "Create Password";
|
|
47
|
+
|
|
48
|
+
// const subTitle = !confirmationToken
|
|
49
|
+
// ? resetRequestSuccedded
|
|
50
|
+
// ? "A password reset link has been sent to your email address. If you can’t find the message in your inbox, please check your spam folder!"
|
|
51
|
+
// : "Please enter your email, to get a link and request a new password."
|
|
52
|
+
// : resetRequestSuccedded
|
|
53
|
+
// ? "Your password has been updated, click in the button below to log in."
|
|
54
|
+
// : "Please set up your new password.";
|
|
55
|
+
|
|
56
|
+
// const requestResetFields = [
|
|
57
|
+
// {
|
|
58
|
+
// name: "email",
|
|
59
|
+
// label: t("Email"),
|
|
60
|
+
// type: "input",
|
|
61
|
+
// required: true,
|
|
62
|
+
// rules: [
|
|
63
|
+
// {
|
|
64
|
+
// required: true,
|
|
65
|
+
// message: t("errors::email should not be empty"),
|
|
66
|
+
// },
|
|
67
|
+
// {
|
|
68
|
+
// pattern:
|
|
69
|
+
// /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,
|
|
70
|
+
// message: t("errors::email is not valid"),
|
|
71
|
+
// },
|
|
72
|
+
// ],
|
|
73
|
+
// placeholder: t("Email"),
|
|
74
|
+
// },
|
|
75
|
+
// ];
|
|
76
|
+
|
|
77
|
+
// const resetPasswordFields = [
|
|
78
|
+
// {
|
|
79
|
+
// name: "password",
|
|
80
|
+
// label: t("Enter password"),
|
|
81
|
+
// type: "password",
|
|
82
|
+
// required: true,
|
|
83
|
+
// rules: [
|
|
84
|
+
// {
|
|
85
|
+
// required: true,
|
|
86
|
+
// message: t("errors::password should not be empty"),
|
|
87
|
+
// },
|
|
88
|
+
// ],
|
|
89
|
+
// placeholder: t("••••••••"),
|
|
90
|
+
// },
|
|
91
|
+
// {
|
|
92
|
+
// name: "confirmPassword",
|
|
93
|
+
// label: t("Confirm password"),
|
|
94
|
+
// type: "password",
|
|
95
|
+
// required: true,
|
|
96
|
+
// dependencies: ["password"],
|
|
97
|
+
// rules: [
|
|
98
|
+
// {
|
|
99
|
+
// required: true,
|
|
100
|
+
// message: t("errors::password should not be empty"),
|
|
101
|
+
// },
|
|
102
|
+
// ({ getFieldValue }) => ({
|
|
103
|
+
// validator(rule, value) {
|
|
104
|
+
// if (!value || getFieldValue("password") === value) {
|
|
105
|
+
// return Promise.resolve();
|
|
106
|
+
// }
|
|
107
|
+
// return Promise.reject(t("errors::passwordNotMatch"));
|
|
108
|
+
// },
|
|
109
|
+
// }),
|
|
110
|
+
// ],
|
|
111
|
+
// placeholder: t("••••••••"),
|
|
112
|
+
// },
|
|
113
|
+
// ];
|
|
114
|
+
|
|
115
|
+
// const handleRequestResetSubmit = (values) => {
|
|
116
|
+
// requestResetPassword(values);
|
|
117
|
+
// };
|
|
118
|
+
|
|
119
|
+
// const handleResetPasswordSubmit = (values) => {
|
|
120
|
+
|
|
121
|
+
// resetPassword({
|
|
122
|
+
// ...values,
|
|
123
|
+
// passConfirmationToken: confirmationToken,
|
|
124
|
+
// });
|
|
125
|
+
// };
|
|
126
|
+
|
|
127
|
+
// const currentTheme = theme || window.theme;
|
|
128
|
+
|
|
129
|
+
// const Content = (
|
|
130
|
+
// <>
|
|
131
|
+
// {!resetRequestSuccedded && !confirmationToken && (
|
|
132
|
+
// <>
|
|
133
|
+
// <AuthForm
|
|
134
|
+
// fields={requestResetFields}
|
|
135
|
+
// onSubmit={handleRequestResetSubmit}
|
|
136
|
+
// submitText={t("Get Link")}
|
|
137
|
+
// errors={errors}
|
|
138
|
+
// t={t}
|
|
139
|
+
// executeRecaptcha={() => Promise.resolve(true)}
|
|
140
|
+
// theme={currentTheme}
|
|
141
|
+
// submitButtonProps={{
|
|
142
|
+
// loading: submitting,
|
|
143
|
+
// }}
|
|
144
|
+
// />
|
|
145
|
+
// <div className="mt-4">
|
|
146
|
+
// <DafButton
|
|
147
|
+
// type="default"
|
|
148
|
+
// className="normal-br"
|
|
149
|
+
// style={
|
|
150
|
+
// currentTheme
|
|
151
|
+
// ? {
|
|
152
|
+
// borderColor: currentTheme.colorPrimary,
|
|
153
|
+
// color: currentTheme.colorPrimary,
|
|
154
|
+
// }
|
|
155
|
+
// : {}
|
|
156
|
+
// }
|
|
157
|
+
// onClick={handleGoToLogin}
|
|
158
|
+
// >
|
|
159
|
+
// {t("Back")}
|
|
160
|
+
// </DafButton>
|
|
161
|
+
// </div>
|
|
162
|
+
|
|
163
|
+
// {resetRequestError ? (
|
|
164
|
+
// <div
|
|
165
|
+
// className="ant-form-item-explain errors-cont no-pt mt-3"
|
|
166
|
+
// style={{ color: "#ff4d4f" }}
|
|
167
|
+
// >
|
|
168
|
+
// {t(resetRequestError)}
|
|
169
|
+
// </div>
|
|
170
|
+
// ) : null}
|
|
171
|
+
// </>
|
|
172
|
+
// )}
|
|
173
|
+
|
|
174
|
+
// {!resetRequestSuccedded && confirmationToken && (
|
|
175
|
+
// <AuthForm
|
|
176
|
+
// fields={resetPasswordFields}
|
|
177
|
+
// onSubmit={handleResetPasswordSubmit}
|
|
178
|
+
// submitText={t("Reset Password")}
|
|
179
|
+
// errors={errors}
|
|
180
|
+
// t={t}
|
|
181
|
+
// executeRecaptcha={() => Promise.resolve(true)}
|
|
182
|
+
// theme={currentTheme}
|
|
183
|
+
// submitButtonProps={{
|
|
184
|
+
// loading: submitting,
|
|
185
|
+
// }}
|
|
186
|
+
// />
|
|
187
|
+
// )}
|
|
188
|
+
|
|
189
|
+
// {resetRequestSuccedded && confirmationToken && (
|
|
190
|
+
// <div className="buttons">
|
|
191
|
+
// <DafButton
|
|
192
|
+
// type="primary"
|
|
193
|
+
// className="normal-br"
|
|
194
|
+
// style={
|
|
195
|
+
// currentTheme
|
|
196
|
+
// ? {
|
|
197
|
+
// backgroundColor: currentTheme.colorPrimary,
|
|
198
|
+
// borderColor: currentTheme.colorPrimary,
|
|
199
|
+
// }
|
|
200
|
+
// : {}
|
|
201
|
+
// }
|
|
202
|
+
// onClick={handleGoToLogin}
|
|
203
|
+
// >
|
|
204
|
+
// {t("Log In")}
|
|
205
|
+
// </DafButton>
|
|
206
|
+
// </div>
|
|
207
|
+
// )}
|
|
208
|
+
|
|
209
|
+
// {resetRequestSuccedded && !confirmationToken && null}
|
|
210
|
+
// </>
|
|
211
|
+
// );
|
|
212
|
+
|
|
213
|
+
// if (Layout) {
|
|
214
|
+
// return (
|
|
215
|
+
// <Layout app={app} step={step} title={title} subTitle={subTitle}>
|
|
216
|
+
// {Content}
|
|
217
|
+
// </Layout>
|
|
218
|
+
// );
|
|
219
|
+
// }
|
|
220
|
+
|
|
221
|
+
// return (
|
|
222
|
+
// <div style={{ padding: 20, maxWidth: 400, margin: "0 auto" }}>
|
|
223
|
+
// <h2>{title}</h2>
|
|
224
|
+
// <p>{subTitle}</p>
|
|
225
|
+
// {Content}
|
|
226
|
+
// </div>
|
|
227
|
+
// );
|
|
228
|
+
// }
|
|
@@ -82,6 +82,7 @@ export const mapItem = (data, options, goTo, getRedirectLink, operatorData = {},
|
|
|
82
82
|
value: data.country || operatorData?.country,
|
|
83
83
|
},
|
|
84
84
|
totalSources: data.sources ?? 0,
|
|
85
|
+
product: data?.product || "",
|
|
85
86
|
volume: data?.volume || "",
|
|
86
87
|
onClick: function () {
|
|
87
88
|
if (data.type === "mineSite") {
|
|
@@ -68,12 +68,16 @@ const TradeRelationships = ({
|
|
|
68
68
|
getTotal={(c) => {
|
|
69
69
|
return c.totalSources || 0;
|
|
70
70
|
}}
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
71
|
+
renderTooltipItems={(data) => [
|
|
72
|
+
{
|
|
73
|
+
label: "Product",
|
|
74
|
+
value: data?.product || "--",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
label: "Volume",
|
|
78
|
+
value: data?.volume || "--",
|
|
79
|
+
},
|
|
80
|
+
]}
|
|
77
81
|
maxZoom={1.2}
|
|
78
82
|
minZoom={0.4}
|
|
79
83
|
tooltipTitle="Trade"
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
const en = {
|
|
2
|
+
"Operating Sites": "Operating Sites",
|
|
2
3
|
"Identified Mine Sites": "Identified Mine Sites",
|
|
3
4
|
"Associated Documents": "Associated Documents",
|
|
4
5
|
"Male": "Male",
|
|
@@ -27,6 +28,7 @@ const en = {
|
|
|
27
28
|
"events": "Events",
|
|
28
29
|
"merge-locations": "Merge Locations",
|
|
29
30
|
"edit-account": "Edit Account",
|
|
31
|
+
"testimonials": "Testimonials",
|
|
30
32
|
"Are-you-sure-you-want-to-remove-the-user-from-this-account?": "Are you sure you want to remove the user from this account?",
|
|
31
33
|
"The-user-will-lose-access-to-the-application-and-to-all-data-created-for-this-account.": "The user will lose access to the application and to all data created for this account.",
|
|
32
34
|
"merge": "Merge",
|
package/src/index.js
CHANGED
|
@@ -209,4 +209,9 @@ export { default as SettingsView } from "./@daf/core/components/Screens/Settings
|
|
|
209
209
|
export { default as SettingsEdit } from "./@daf/core/components/Screens/Settings/Edit/index.js";
|
|
210
210
|
export { default as SettingsHeader } from "./@daf/core/components/Screens/Settings/components/Header/index.js";
|
|
211
211
|
export { default as SettingsMenu } from "./@daf/core/components/Screens/Settings/components/Menu/index.js";
|
|
212
|
-
export { INPUT_TYPES, ACTIVE_FORM_KEY, PLACEHOLDER, getDefaultActiveForm } from "./@daf/core/components/Screens/Settings/config.js";
|
|
212
|
+
export { INPUT_TYPES, ACTIVE_FORM_KEY, PLACEHOLDER, getDefaultActiveForm } from "./@daf/core/components/Screens/Settings/config.js";
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
// Reset Password
|
|
217
|
+
// export { default as ResetPassword } from "./@daf/pages/ResetPassword/index.jsx";
|
package/build/favicon.ico
DELETED
|
Binary file
|
package/build/logo192.png
DELETED
|
Binary file
|
package/build/logo512.png
DELETED
|
Binary file
|
package/build/manifest.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"short_name": "React App",
|
|
3
|
-
"name": "Create React App Sample",
|
|
4
|
-
"icons": [
|
|
5
|
-
{
|
|
6
|
-
"src": "favicon.ico",
|
|
7
|
-
"sizes": "64x64 32x32 24x24 16x16",
|
|
8
|
-
"type": "image/x-icon"
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"src": "logo192.png",
|
|
12
|
-
"type": "image/png",
|
|
13
|
-
"sizes": "192x192"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"src": "logo512.png",
|
|
17
|
-
"type": "image/png",
|
|
18
|
-
"sizes": "512x512"
|
|
19
|
-
}
|
|
20
|
-
],
|
|
21
|
-
"start_url": ".",
|
|
22
|
-
"display": "standalone",
|
|
23
|
-
"theme_color": "#000000",
|
|
24
|
-
"background_color": "#ffffff"
|
|
25
|
-
}
|
package/build/robots.txt
DELETED
|
@@ -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
|
-
}
|