datastake-daf 0.6.783 → 0.6.785

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/components/index.js +78 -70
  2. package/dist/hooks/index.js +3 -1
  3. package/dist/pages/index.js +1082 -270
  4. package/dist/style/datastake/mapbox-gl.css +330 -0
  5. package/dist/utils/index.js +67 -0
  6. package/package.json +1 -1
  7. package/src/@daf/core/components/Charts/BarChart/index.jsx +1 -1
  8. package/src/@daf/core/components/Dashboard/Map/ChainIcon/utils.js +2 -2
  9. package/src/@daf/core/components/Screens/BaseScreen/index.jsx +1 -0
  10. package/src/@daf/core/components/Select/MultiSelect/index.jsx +4 -2
  11. package/src/@daf/core/components/Select/MultiSelect/style.js +15 -0
  12. package/src/@daf/hooks/useGetQueryParams.js +3 -1
  13. package/src/@daf/pages/Dashboards/UserDashboard/components/ContributionsGraph/hook.js +6 -7
  14. package/src/@daf/pages/Dashboards/UserDashboard/components/ContributionsGraph/index.jsx +1 -1
  15. package/src/@daf/pages/Documents/config.js +5 -5
  16. package/src/@daf/pages/Events/Activities/columns.js +5 -0
  17. package/src/@daf/pages/Events/Activities/config.js +21 -17
  18. package/src/@daf/pages/Events/Incidents/columns.js +5 -0
  19. package/src/@daf/pages/Events/Incidents/config.js +14 -11
  20. package/src/@daf/pages/Events/columns.js +6 -0
  21. package/src/@daf/pages/Events/config.js +0 -16
  22. package/src/@daf/pages/Locations/MineSite/columns.js +5 -1
  23. package/src/@daf/pages/Locations/MineSite/config.js +21 -24
  24. package/src/@daf/pages/Partners/columns.js +3 -1
  25. package/src/@daf/pages/Partners/config.js +13 -9
  26. package/src/@daf/pages/Partners/create.jsx +5 -2
  27. package/src/@daf/pages/Partners/edit.jsx +4 -2
  28. package/src/@daf/pages/Stakeholders/Operators/columns.js +6 -0
  29. package/src/@daf/pages/Stakeholders/Operators/config.js +8 -8
  30. package/src/@daf/pages/Stakeholders/Workers/columns.js +19 -13
  31. package/src/@daf/pages/Stakeholders/Workers/config.js +8 -23
  32. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/KeyInformation/index.jsx +48 -0
  33. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/MangroveGrowth/PlantedSpecies.jsx +73 -0
  34. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/MangroveGrowth/SeedlingsHeight.jsx +44 -0
  35. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/MangroveGrowth/Stats.jsx +86 -0
  36. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/MangroveGrowth/VegetationHealth.jsx +73 -0
  37. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/MangroveGrowth/index.jsx +92 -0
  38. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/components/MonitoringScopeAndFindings/index.jsx +348 -0
  39. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/config.js +35 -0
  40. package/src/@daf/pages/Summary/Activities/MonitoringCampaign/index.jsx +30 -0
  41. package/src/@daf/pages/Summary/Activities/PlantingCycle/components/CommunityParticipation/CommunityStats/helper.js +1 -1
  42. package/src/@daf/pages/Summary/Activities/PlantingCycle/components/CycleIndicators/index.jsx +1 -1
  43. package/src/@daf/pages/Summary/Activities/PlantingCycle/components/CycleOutcomes/index.jsx +1 -1
  44. package/src/@daf/pages/Summary/Activities/PlantingCycle/helper.js +0 -56
  45. package/src/@daf/pages/Summary/Minesite/index.jsx +6 -4
  46. package/src/@daf/pages/Summary/Operator/components/TradeRelationships/index.js +2 -0
  47. package/src/@daf/pages/Summary/Operator/index.jsx +6 -3
  48. package/src/@daf/pages/TablePage/index.jsx +8 -2
  49. package/src/@daf/pages/Template/components/LinkingTemplate/config.js +14 -1
  50. package/src/@daf/pages/Template/components/LinkingTemplate/index.jsx +4 -2
  51. package/src/@daf/pages/Template/index.jsx +1 -10
  52. package/src/@daf/pages/View/hooks/usePrepareForm.js +4 -4
  53. package/src/@daf/pages/View/index.jsx +2 -1
  54. package/src/@daf/utils/numbers.js +57 -0
  55. package/src/constants/locales/en/translation.js +3 -0
  56. package/src/constants/locales/fr/translation.js +3 -0
  57. package/src/constants/locales/sp/translation.js +3 -0
  58. package/src/pages.js +1 -0
  59. package/src/utils.js +1 -1
@@ -7835,6 +7835,17 @@ GoToSelect.propTypes = {
7835
7835
  t: PropTypes__default["default"].func
7836
7836
  };
7837
7837
 
7838
+ const MultiSelectStyled = styled__default["default"](antd.Select)`
7839
+ &.ant-select-single {
7840
+ .ant-select-selector {
7841
+ padding-inline-end: 24px !important;
7842
+ padding: 0 !important;
7843
+ max-width: 56px !important;
7844
+ width: 56px !important;
7845
+ }
7846
+ }
7847
+ `;
7848
+
7838
7849
  const _excluded$v = ["options", "defaultSelected", "onChange", "textWhenMultiple", "withCount", "oneAlwaysSelected", "canUnselectLast", "isAvatarGroup", "maxAvatarCount", "dropDownWidth", "topAvatarValue", "isSingle", "selectionType"];
7839
7850
  const {
7840
7851
  useToken: useToken$n
@@ -7975,7 +7986,7 @@ function Multiselect(_ref) {
7975
7986
  });
7976
7987
  }
7977
7988
  };
7978
- return /*#__PURE__*/jsxRuntime.jsx(antd.Select, _objectSpread2(_objectSpread2({
7989
+ return /*#__PURE__*/jsxRuntime.jsx(MultiSelectStyled, _objectSpread2(_objectSpread2({
7979
7990
  mode: isSingle ? undefined : "multiple",
7980
7991
  value: selectValue,
7981
7992
  onChange: onSelectChange,
@@ -8033,7 +8044,8 @@ function Multiselect(_ref) {
8033
8044
  border: "1px solid ".concat(token.baseGray40),
8034
8045
  display: "flex",
8035
8046
  alignItems: "center",
8036
- justifyContent: "center"
8047
+ justifyContent: "center",
8048
+ padding: 0
8037
8049
  },
8038
8050
  children: (option === null || option === void 0 ? void 0 : option.avatar) || getFirstChar(option === null || option === void 0 ? void 0 : option.label)
8039
8051
  }, value);
@@ -9962,44 +9974,44 @@ function useAjaxModal$2({
9962
9974
  }
9963
9975
 
9964
9976
  const mergeObject = obj => {
9965
- return Object.entries(obj || {}).reduce((acc, _ref) => {
9966
- let [key, value] = _ref;
9977
+ return Object.entries(obj || {}).reduce((acc, [key, value]) => {
9967
9978
  if (typeof value === "object" && !Array.isArray(value) && value !== null) {
9968
- return _objectSpread2(_objectSpread2({}, acc), value);
9979
+ return {
9980
+ ...acc,
9981
+ ...value
9982
+ };
9969
9983
  }
9970
- return _objectSpread2(_objectSpread2({}, acc), {}, {
9984
+ return {
9985
+ ...acc,
9971
9986
  [key]: value
9972
- });
9987
+ };
9973
9988
  }, {});
9974
9989
  };
9975
- const handleDataLinkGroupWithTableKeys = _ref2 => {
9976
- var _inputConfig$meta, _config$meta2, _inputConfig$meta3, _inputConfig$meta4, _inputConfig$meta5;
9977
- let {
9978
- config,
9979
- inputConfig,
9980
- inputKey,
9981
- value,
9982
- level,
9983
- t,
9984
- rootForm,
9985
- allData,
9986
- user,
9987
- getApiBaseUrl = () => {},
9988
- getAppHeader = () => {},
9989
- app,
9990
- TreeNodeComponent
9991
- } = _ref2;
9990
+ const handleDataLinkGroupWithTableKeys = ({
9991
+ config,
9992
+ inputConfig,
9993
+ inputKey,
9994
+ value,
9995
+ level,
9996
+ t,
9997
+ rootForm,
9998
+ allData,
9999
+ user,
10000
+ getApiBaseUrl = () => {},
10001
+ getAppHeader = () => {},
10002
+ app,
10003
+ TreeNodeComponent
10004
+ }) => {
9992
10005
  if (!(config.type === 'dataLinkGroup' || config.type === 'dataLink')) {
9993
10006
  return null;
9994
10007
  }
9995
- if ((inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type) !== 'dataLink' || !(inputConfig !== null && inputConfig !== void 0 && (_inputConfig$meta = inputConfig.meta) !== null && _inputConfig$meta !== void 0 && _inputConfig$meta.tableKeys)) {
10008
+ if (inputConfig?.type !== 'dataLink' || !inputConfig?.meta?.tableKeys) {
9996
10009
  const parentInputKeys = Object.keys(config.inputs || {});
9997
10010
  const isHandledBySiblingDataLink = parentInputKeys.some(otherInputKey => {
9998
10011
  const otherConfig = config.inputs[otherInputKey];
9999
- if ((otherConfig === null || otherConfig === void 0 ? void 0 : otherConfig.type) === 'dataLink') {
10000
- var _otherConfig$meta, _config$meta;
10001
- const siblingTableKeys = (otherConfig === null || otherConfig === void 0 || (_otherConfig$meta = otherConfig.meta) === null || _otherConfig$meta === void 0 ? void 0 : _otherConfig$meta.tableKeys) || [];
10002
- const additionalTableKeys = ((_config$meta = config.meta) === null || _config$meta === void 0 ? void 0 : _config$meta.additionalTableKeys) || [];
10012
+ if (otherConfig?.type === 'dataLink') {
10013
+ const siblingTableKeys = otherConfig?.meta?.tableKeys || [];
10014
+ const additionalTableKeys = config.meta?.additionalTableKeys || [];
10003
10015
  const allSiblingKeys = [...siblingTableKeys, ...additionalTableKeys];
10004
10016
  return allSiblingKeys.includes(inputKey) && otherInputKey !== inputKey;
10005
10017
  }
@@ -10013,26 +10025,23 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10013
10025
  return null;
10014
10026
  }
10015
10027
  const tableKeys = inputConfig.meta.tableKeys;
10016
- const additionalTableKeys = ((_config$meta2 = config.meta) === null || _config$meta2 === void 0 ? void 0 : _config$meta2.additionalTableKeys) || [];
10028
+ const additionalTableKeys = config.meta?.additionalTableKeys || [];
10017
10029
  const parentInputKeys = Object.keys(config.inputs || {});
10018
10030
  const siblingInputsMatchingTableKeys = parentInputKeys.filter(siblingKey => siblingKey !== inputKey).filter(siblingKey => tableKeys.includes(siblingKey) || additionalTableKeys.includes(siblingKey));
10019
10031
  [...new Set([...tableKeys, ...siblingInputsMatchingTableKeys])];
10020
- const isAjaxModal = React.useMemo(() => {
10021
- var _inputConfig$meta2;
10022
- return !!(inputConfig !== null && inputConfig !== void 0 && (_inputConfig$meta2 = inputConfig.meta) !== null && _inputConfig$meta2 !== void 0 && _inputConfig$meta2.namespace);
10023
- }, [inputConfig]);
10032
+ const isAjaxModal = React.useMemo(() => !!inputConfig?.meta?.namespace, [inputConfig]);
10024
10033
  const ajaxModalValues = useAjaxModal$2({
10025
10034
  name: inputKey,
10026
10035
  user,
10027
- namespace: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta3 = inputConfig.meta) === null || _inputConfig$meta3 === void 0 ? void 0 : _inputConfig$meta3.namespace,
10028
- skipFetch: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta4 = inputConfig.meta) === null || _inputConfig$meta4 === void 0 ? void 0 : _inputConfig$meta4.skipFetch,
10036
+ namespace: inputConfig?.meta?.namespace,
10037
+ skipFetch: inputConfig?.meta?.skipFetch,
10029
10038
  isAjaxModal,
10030
- formScope: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta5 = inputConfig.meta) === null || _inputConfig$meta5 === void 0 ? void 0 : _inputConfig$meta5.formScope,
10039
+ formScope: inputConfig?.meta?.formScope,
10031
10040
  APP: app,
10032
10041
  apiBaseUrl: getApiBaseUrl(),
10033
10042
  _getAppHeader: getAppHeader
10034
10043
  });
10035
- const dataLinkForm = ajaxModalValues === null || ajaxModalValues === void 0 ? void 0 : ajaxModalValues.form;
10044
+ const dataLinkForm = ajaxModalValues?.form;
10036
10045
  const createInputsAndValues = item => {
10037
10046
  const inputs = {};
10038
10047
  const values = {};
@@ -10044,12 +10053,12 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10044
10053
  'videos': 'Video'
10045
10054
  };
10046
10055
  tableKeys.filter(tableKey => tableKey !== 'datastakeId').forEach(tableKey => {
10047
- var _dataLinkForm$identif;
10048
- const formInputConfig = (dataLinkForm === null || dataLinkForm === void 0 ? void 0 : dataLinkForm[tableKey]) || (dataLinkForm === null || dataLinkForm === void 0 || (_dataLinkForm$identif = dataLinkForm['identification']) === null || _dataLinkForm$identif === void 0 ? void 0 : _dataLinkForm$identif[tableKey]);
10056
+ const formInputConfig = dataLinkForm?.[tableKey] || dataLinkForm?.['identification']?.[tableKey];
10049
10057
  if (formInputConfig) {
10050
- inputs[tableKey] = _objectSpread2(_objectSpread2({}, formInputConfig), {}, {
10058
+ inputs[tableKey] = {
10059
+ ...formInputConfig,
10051
10060
  label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : formInputConfig.label || formInputConfig.tableLabel || tableKey
10052
- });
10061
+ };
10053
10062
  if (formInputConfig.label && typeof formInputConfig.label === 'object') {
10054
10063
  const dynamicLabelKeys = Object.keys(formInputConfig.label);
10055
10064
  let resolvedLabel = null;
@@ -10057,7 +10066,7 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10057
10066
  const parts = labelKey.split(' is ');
10058
10067
  if (parts.length === 2) {
10059
10068
  const [conditionKey, conditionValue] = parts;
10060
- if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
10069
+ if (item?.[conditionKey] === conditionValue) {
10061
10070
  resolvedLabel = formInputConfig.label[labelKey];
10062
10071
  break;
10063
10072
  }
@@ -10065,37 +10074,37 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10065
10074
  }
10066
10075
  inputs[tableKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey);
10067
10076
  }
10068
- values[tableKey] = item === null || item === void 0 ? void 0 : item[tableKey];
10077
+ values[tableKey] = item?.[tableKey];
10069
10078
  } else {
10070
- var _item$linking;
10071
10079
  inputs[tableKey] = {
10072
10080
  label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey,
10073
- type: inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type
10081
+ type: inputConfig?.type
10074
10082
  };
10075
- values[tableKey] = (item === null || item === void 0 || (_item$linking = item.linking) === null || _item$linking === void 0 || (_item$linking = _item$linking.SCL) === null || _item$linking === void 0 || (_item$linking = _item$linking[item === null || item === void 0 ? void 0 : item[tableKey]]) === null || _item$linking === void 0 ? void 0 : _item$linking.name) || (item === null || item === void 0 ? void 0 : item[tableKey]);
10083
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item?.[tableKey];
10076
10084
  }
10077
10085
  });
10078
10086
  siblingInputsMatchingTableKeys.forEach(siblingKey => {
10079
10087
  const siblingConfig = config.inputs[siblingKey];
10080
10088
  if (siblingConfig) {
10081
- inputs[siblingKey] = _objectSpread2(_objectSpread2({}, siblingConfig), {}, {
10089
+ inputs[siblingKey] = {
10090
+ ...siblingConfig,
10082
10091
  label: siblingConfig.label || siblingKey
10083
- });
10084
- values[siblingKey] = item === null || item === void 0 ? void 0 : item[siblingKey];
10092
+ };
10093
+ values[siblingKey] = item?.[siblingKey];
10085
10094
  }
10086
10095
  });
10087
- if (dataLinkForm !== null && dataLinkForm !== void 0 && dataLinkForm.identification && typeof dataLinkForm.identification === 'object') {
10096
+ if (dataLinkForm?.identification && typeof dataLinkForm.identification === 'object') {
10088
10097
  Object.keys(dataLinkForm.identification).filter(fieldKey => fieldKey !== 'datastakeId' && !tableKeys.includes(fieldKey)).filter(fieldKey => {
10089
10098
  const formInputConfig = dataLinkForm.identification[fieldKey];
10090
10099
  return formInputConfig && typeof formInputConfig === 'object' && !Array.isArray(formInputConfig);
10091
10100
  }).forEach(fieldKey => {
10092
- var _item$linking2;
10093
10101
  const formInputConfig = dataLinkForm.identification[fieldKey];
10094
- inputs[fieldKey] = _objectSpread2(_objectSpread2({}, formInputConfig), {}, {
10102
+ inputs[fieldKey] = {
10103
+ ...formInputConfig,
10095
10104
  label: uploadTypeFields.includes(fieldKey) ? uploadTypeLabels[fieldKey] : formInputConfig.label || formInputConfig.tableLabel || fieldKey
10096
- });
10097
- if (formInputConfig !== null && formInputConfig !== void 0 && formInputConfig.label && typeof (formInputConfig === null || formInputConfig === void 0 ? void 0 : formInputConfig.label) === 'object') {
10098
- const dynamicLabelKeys = Object.keys(formInputConfig === null || formInputConfig === void 0 ? void 0 : formInputConfig.label);
10105
+ };
10106
+ if (formInputConfig?.label && typeof formInputConfig?.label === 'object') {
10107
+ const dynamicLabelKeys = Object.keys(formInputConfig?.label);
10099
10108
  let resolvedLabel = null;
10100
10109
  for (const labelKey of dynamicLabelKeys) {
10101
10110
  const parts = labelKey.split(' is ');
@@ -10104,7 +10113,7 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10104
10113
  const flattenedItem = Object.assign({}, item.location, {
10105
10114
  address: item.address
10106
10115
  });
10107
- if ((flattenedItem === null || flattenedItem === void 0 ? void 0 : flattenedItem[conditionKey]) === conditionValue) {
10116
+ if (flattenedItem?.[conditionKey] === conditionValue) {
10108
10117
  resolvedLabel = formInputConfig.label[labelKey];
10109
10118
  break;
10110
10119
  }
@@ -10112,7 +10121,7 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10112
10121
  }
10113
10122
  inputs[fieldKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(fieldKey) ? uploadTypeLabels[fieldKey] : fieldKey);
10114
10123
  }
10115
- values[fieldKey] = (item === null || item === void 0 || (_item$linking2 = item.linking) === null || _item$linking2 === void 0 || (_item$linking2 = _item$linking2.SCL) === null || _item$linking2 === void 0 || (_item$linking2 = _item$linking2[item === null || item === void 0 ? void 0 : item[fieldKey]]) === null || _item$linking2 === void 0 ? void 0 : _item$linking2.name) || (item === null || item === void 0 ? void 0 : item[fieldKey]);
10124
+ values[fieldKey] = item?.linking?.SCL?.[item?.[fieldKey]]?.name || item?.[fieldKey];
10116
10125
  });
10117
10126
  }
10118
10127
  return {
@@ -10122,17 +10131,16 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10122
10131
  };
10123
10132
  if (Array.isArray(value)) {
10124
10133
  return value.map((item, itemIndex) => {
10125
- var _merged$inputKey;
10126
10134
  const merged = mergeObject(item);
10127
- const datastakeIdValue = (merged === null || merged === void 0 || (_merged$inputKey = merged[inputKey]) === null || _merged$inputKey === void 0 ? void 0 : _merged$inputKey.datastakeId) || (merged === null || merged === void 0 ? void 0 : merged.datastakeId);
10135
+ const datastakeIdValue = merged?.[inputKey]?.datastakeId || merged?.datastakeId;
10128
10136
  const {
10129
10137
  inputs,
10130
10138
  values
10131
10139
  } = createInputsAndValues(merged);
10132
10140
  return /*#__PURE__*/jsxRuntime.jsx(TreeNodeComponent, {
10133
- nodeKey: datastakeIdValue || t("No ID ".concat(itemIndex + 1)),
10141
+ nodeKey: datastakeIdValue || t(`No ID ${itemIndex + 1}`),
10134
10142
  config: {
10135
- label: datastakeIdValue || t("No ID ".concat(itemIndex + 1)),
10143
+ label: datastakeIdValue || t(`No ID ${itemIndex + 1}`),
10136
10144
  type: 'custom-datalink-group',
10137
10145
  inputs: inputs
10138
10146
  },
@@ -10146,12 +10154,11 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10146
10154
  getApiBaseUrl: getApiBaseUrl,
10147
10155
  getAppHeader: getAppHeader,
10148
10156
  app: app
10149
- }, "".concat(inputKey, "-").concat(itemIndex));
10157
+ }, `${inputKey}-${itemIndex}`);
10150
10158
  });
10151
10159
  } else {
10152
- var _merged$inputKey2;
10153
10160
  const merged = mergeObject(value);
10154
- const datastakeIdValue = (merged === null || merged === void 0 || (_merged$inputKey2 = merged[inputKey]) === null || _merged$inputKey2 === void 0 ? void 0 : _merged$inputKey2.datastakeId) || (merged === null || merged === void 0 ? void 0 : merged.datastakeId);
10161
+ const datastakeIdValue = merged?.[inputKey]?.datastakeId || merged?.datastakeId;
10155
10162
  const {
10156
10163
  inputs,
10157
10164
  values
@@ -10173,7 +10180,7 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10173
10180
  getApiBaseUrl: getApiBaseUrl,
10174
10181
  getAppHeader: getAppHeader,
10175
10182
  app: app
10176
- }, "".concat(inputKey, "-group"));
10183
+ }, `${inputKey}-group`);
10177
10184
  }
10178
10185
  };
10179
10186
 
@@ -13125,11 +13132,11 @@ function getStakeholderPosition({
13125
13132
  angleDeg
13126
13133
  };
13127
13134
  }
13128
- function applyAnimationDirect(el, isShortLink) {
13135
+ function applyAnimationDirect(el, isShortLink, lineFlow = "downstream") {
13129
13136
  if (!(el instanceof SVGElement) || isShortLink) return;
13130
13137
  el.style.strokeDasharray = "10, 10";
13131
13138
  el.style.strokeDashoffset = "0";
13132
- el.style.animation = "dash-flow 1.2s linear infinite";
13139
+ el.style.animation = `dash-flow 1.2s linear infinite ${lineFlow === "upstream" && "reverse"}`;
13133
13140
  el.classList.add('animated-polyline');
13134
13141
  }
13135
13142
  function removeAnimationFromElement(element) {
@@ -46954,7 +46961,7 @@ function BarChart(_ref) {
46954
46961
  tickMethod: () => {
46955
46962
  return Array.from(new Array(11), (v, i) => i * 10);
46956
46963
  }
46957
- } : {}), xAxisConfig), {}, {
46964
+ } : {}), Object.keys(xAxisConfig).length > 0 ? xAxisConfig : {}), {}, {
46958
46965
  label: _objectSpread2({
46959
46966
  formatter: isPercentage ? v => "".concat(v).replace(/\d{1,3}(?=(\d{3})+$)/g, s => "".concat(s, ",")) + " %" : formattedXAxis
46960
46967
  }, xAxisConfig === null || xAxisConfig === void 0 ? void 0 : xAxisConfig.label)
@@ -50809,7 +50816,8 @@ const BaseScreen = _ref => {
50809
50816
  onFilterChange: onFiltersChange,
50810
50817
  showFilters: showFilters,
50811
50818
  defaultFilters: defaultFilters,
50812
- onChange: onTableChange
50819
+ onChange: onTableChange,
50820
+ t: t
50813
50821
  }, rest)), /*#__PURE__*/jsxRuntime.jsx(Pagination, {
50814
50822
  t: t,
50815
50823
  isMobile: isMobile,
@@ -2397,7 +2397,9 @@ const useGetQueryParams = ({
2397
2397
  },
2398
2398
  otherParams: {
2399
2399
  ...rest
2400
- }
2400
+ },
2401
+ sortBy,
2402
+ sortDir
2401
2403
  };
2402
2404
  }, [queryParams]);
2403
2405
  return params;