datastake-daf 0.6.756 → 0.6.758

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.
@@ -9689,28 +9689,30 @@ const handleSectionChildren = _ref => {
9689
9689
  });
9690
9690
  };
9691
9691
 
9692
- const handleArrayChildren = ({
9693
- value,
9694
- config,
9695
- label,
9696
- level,
9697
- t,
9698
- rootForm,
9699
- allData,
9700
- user,
9701
- getApiBaseUrl = () => {},
9702
- getAppHeader = () => {},
9703
- app,
9704
- TreeNodeComponent
9705
- }) => {
9692
+ const handleArrayChildren = _ref => {
9693
+ let {
9694
+ value,
9695
+ config,
9696
+ label,
9697
+ level,
9698
+ t,
9699
+ rootForm,
9700
+ allData,
9701
+ user,
9702
+ getApiBaseUrl = () => {},
9703
+ getAppHeader = () => {},
9704
+ app,
9705
+ TreeNodeComponent
9706
+ } = _ref;
9706
9707
  if (!Array.isArray(value)) {
9707
9708
  return null;
9708
9709
  }
9709
9710
  return value.map((item, itemIndex) => /*#__PURE__*/jsxRuntime.jsx("div", {
9710
9711
  className: "array-item",
9711
9712
  children: Object.keys(config.inputs).sort((a, b) => {
9712
- const positionA = config.inputs[a]?.position || 0;
9713
- const positionB = config.inputs[b]?.position || 0;
9713
+ var _config$inputs$a, _config$inputs$b;
9714
+ const positionA = ((_config$inputs$a = config.inputs[a]) === null || _config$inputs$a === void 0 ? void 0 : _config$inputs$a.position) || 0;
9715
+ const positionB = ((_config$inputs$b = config.inputs[b]) === null || _config$inputs$b === void 0 ? void 0 : _config$inputs$b.position) || 0;
9714
9716
  return positionA - positionB;
9715
9717
  }).map(subInputKey => {
9716
9718
  const subInputConfig = config.inputs[subInputKey];
@@ -9728,9 +9730,9 @@ const handleArrayChildren = ({
9728
9730
  getApiBaseUrl: getApiBaseUrl,
9729
9731
  getAppHeader: getAppHeader,
9730
9732
  app: app
9731
- }, `${itemIndex}-${subInputKey}`);
9733
+ }, "".concat(itemIndex, "-").concat(subInputKey));
9732
9734
  })
9733
- }, `${itemIndex}`));
9735
+ }, "".concat(itemIndex)));
9734
9736
  };
9735
9737
 
9736
9738
  const noDafApps = ['tif', 'cukura']; //PACKAGE_CHANGE_LATER (remove sbg)
@@ -10090,42 +10092,37 @@ const handleDataLinkGroupWithTableKeys = _ref2 => {
10090
10092
  }
10091
10093
  };
10092
10094
 
10093
- const handleDataLinkWithTableKeys = _ref => {
10094
- var _inputConfig$meta, _inputConfig$meta3, _inputConfig$meta4, _inputConfig$meta5;
10095
- let {
10096
- inputConfig,
10097
- inputKey,
10098
- value,
10099
- level,
10100
- t,
10101
- rootForm,
10102
- allData,
10103
- user,
10104
- getApiBaseUrl = () => {},
10105
- getAppHeader = () => {},
10106
- app,
10107
- TreeNodeComponent
10108
- } = _ref;
10109
- 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)) {
10095
+ const handleDataLinkWithTableKeys = ({
10096
+ inputConfig,
10097
+ inputKey,
10098
+ value,
10099
+ level,
10100
+ t,
10101
+ rootForm,
10102
+ allData,
10103
+ user,
10104
+ getApiBaseUrl = () => {},
10105
+ getAppHeader = () => {},
10106
+ app,
10107
+ TreeNodeComponent
10108
+ }) => {
10109
+ if (inputConfig?.type !== 'dataLink' || !inputConfig?.meta?.tableKeys) {
10110
10110
  return null;
10111
10111
  }
10112
10112
  const tableKeys = inputConfig.meta.tableKeys;
10113
- const isAjaxModal = React.useMemo(() => {
10114
- var _inputConfig$meta2;
10115
- return !!(inputConfig !== null && inputConfig !== void 0 && (_inputConfig$meta2 = inputConfig.meta) !== null && _inputConfig$meta2 !== void 0 && _inputConfig$meta2.namespace);
10116
- }, [inputConfig]);
10113
+ const isAjaxModal = React.useMemo(() => !!inputConfig?.meta?.namespace, [inputConfig]);
10117
10114
  const ajaxModalValues = useAjaxModal$2({
10118
10115
  name: inputKey,
10119
10116
  user,
10120
- namespace: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta3 = inputConfig.meta) === null || _inputConfig$meta3 === void 0 ? void 0 : _inputConfig$meta3.namespace,
10121
- skipFetch: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta4 = inputConfig.meta) === null || _inputConfig$meta4 === void 0 ? void 0 : _inputConfig$meta4.skipFetch,
10117
+ namespace: inputConfig?.meta?.namespace,
10118
+ skipFetch: inputConfig?.meta?.skipFetch,
10122
10119
  isAjaxModal,
10123
- formScope: inputConfig === null || inputConfig === void 0 || (_inputConfig$meta5 = inputConfig.meta) === null || _inputConfig$meta5 === void 0 ? void 0 : _inputConfig$meta5.formScope,
10120
+ formScope: inputConfig?.meta?.formScope,
10124
10121
  APP: app,
10125
10122
  apiBaseUrl: getApiBaseUrl(),
10126
10123
  _getAppHeader: getAppHeader
10127
10124
  });
10128
- const dataLinkForm = ajaxModalValues === null || ajaxModalValues === void 0 ? void 0 : ajaxModalValues.form;
10125
+ const dataLinkForm = ajaxModalValues?.form;
10129
10126
  const createInputsAndValues = item => {
10130
10127
  const inputs = {};
10131
10128
  const values = {};
@@ -10138,20 +10135,19 @@ const handleDataLinkWithTableKeys = _ref => {
10138
10135
  };
10139
10136
  const isUploadFieldEmpty = (fieldKey, itemToCheck) => {
10140
10137
  if (uploadTypeFields.includes(fieldKey)) {
10141
- const itemValue = itemToCheck === null || itemToCheck === void 0 ? void 0 : itemToCheck[fieldKey];
10138
+ const itemValue = itemToCheck?.[fieldKey];
10142
10139
  return itemValue === undefined || itemValue === null || Array.isArray(itemValue) && itemValue.length === 0;
10143
10140
  }
10144
10141
  return false;
10145
10142
  };
10146
10143
  const processedTableKeys = processConditionalTableKeys(tableKeys, item);
10147
10144
  processedTableKeys.filter(tableKey => tableKey !== 'datastakeId').filter(tableKey => !isUploadFieldEmpty(tableKey, item)).forEach(tableKey => {
10148
- var _dataLinkForm$identif;
10149
- 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]);
10145
+ const formInputConfig = dataLinkForm?.[tableKey] || dataLinkForm?.['identification']?.[tableKey];
10150
10146
  if (formInputConfig) {
10151
- var _item$linking, _formInputConfig$meta, _formInputConfig$tabl;
10152
- inputs[tableKey] = _objectSpread2(_objectSpread2({}, formInputConfig), {}, {
10147
+ inputs[tableKey] = {
10148
+ ...formInputConfig,
10153
10149
  label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : formInputConfig.label || formInputConfig.tableLabel || tableKey
10154
- });
10150
+ };
10155
10151
  if (formInputConfig.label && typeof formInputConfig.label === 'object') {
10156
10152
  const dynamicLabelKeys = Object.keys(formInputConfig.label);
10157
10153
  let resolvedLabel = null;
@@ -10159,7 +10155,7 @@ const handleDataLinkWithTableKeys = _ref => {
10159
10155
  const parts = labelKey.split(' is ');
10160
10156
  if (parts.length === 2) {
10161
10157
  const [conditionKey, conditionValue] = parts;
10162
- if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
10158
+ if (item?.[conditionKey] === conditionValue) {
10163
10159
  resolvedLabel = formInputConfig.label[labelKey];
10164
10160
  break;
10165
10161
  }
@@ -10167,17 +10163,16 @@ const handleDataLinkWithTableKeys = _ref => {
10167
10163
  }
10168
10164
  inputs[tableKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey);
10169
10165
  }
10170
- 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[formInputConfig === null || formInputConfig === void 0 || (_formInputConfig$meta = formInputConfig.meta) === null || _formInputConfig$meta === void 0 ? void 0 : _formInputConfig$meta.onNewSetValueKey] || (item === null || item === void 0 ? void 0 : item[formInputConfig === null || formInputConfig === void 0 || (_formInputConfig$tabl = formInputConfig.tableLabel) === null || _formInputConfig$tabl === void 0 ? void 0 : _formInputConfig$tabl.toLowerCase()]) || (item === null || item === void 0 ? void 0 : item[tableKey]);
10166
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item[formInputConfig?.meta?.onNewSetValueKey] || item?.[formInputConfig?.tableLabel?.toLowerCase()] || item?.[tableKey];
10171
10167
  } else {
10172
- var _item$linking2;
10173
10168
  inputs[tableKey] = {
10174
10169
  label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey,
10175
- type: inputConfig === null || inputConfig === void 0 ? void 0 : inputConfig.type
10170
+ type: inputConfig?.type
10176
10171
  };
10177
- values[tableKey] = (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[tableKey]]) === null || _item$linking2 === void 0 ? void 0 : _item$linking2.name) || (item === null || item === void 0 ? void 0 : item[tableKey]);
10172
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item?.[tableKey];
10178
10173
  }
10179
10174
  });
10180
- if (dataLinkForm !== null && dataLinkForm !== void 0 && dataLinkForm.identification && typeof dataLinkForm.identification === 'object') {
10175
+ if (dataLinkForm?.identification && typeof dataLinkForm.identification === 'object') {
10181
10176
  Object.keys(dataLinkForm.identification).filter(fieldKey => {
10182
10177
  if (uploadTypeFields.includes(fieldKey)) {
10183
10178
  return !isUploadFieldEmpty(fieldKey, item);
@@ -10187,11 +10182,11 @@ const handleDataLinkWithTableKeys = _ref => {
10187
10182
  const formInputConfig = dataLinkForm.identification[fieldKey];
10188
10183
  return formInputConfig && typeof formInputConfig === 'object' && !Array.isArray(formInputConfig);
10189
10184
  }).forEach(fieldKey => {
10190
- var _item$linking3, _formInputConfig$tabl2;
10191
10185
  const formInputConfig = dataLinkForm.identification[fieldKey];
10192
- inputs[fieldKey] = _objectSpread2(_objectSpread2({}, formInputConfig), {}, {
10186
+ inputs[fieldKey] = {
10187
+ ...formInputConfig,
10193
10188
  label: uploadTypeFields.includes(fieldKey) ? uploadTypeLabels[fieldKey] : formInputConfig.label || formInputConfig.tableLabel || fieldKey
10194
- });
10189
+ };
10195
10190
  if (formInputConfig.label && typeof formInputConfig.label === 'object') {
10196
10191
  const dynamicLabelKeys = Object.keys(formInputConfig.label);
10197
10192
  let resolvedLabel = null;
@@ -10199,7 +10194,7 @@ const handleDataLinkWithTableKeys = _ref => {
10199
10194
  const parts = labelKey.split(' is ');
10200
10195
  if (parts.length === 2) {
10201
10196
  const [conditionKey, conditionValue] = parts;
10202
- if ((item === null || item === void 0 ? void 0 : item[conditionKey]) === conditionValue) {
10197
+ if (item?.[conditionKey] === conditionValue) {
10203
10198
  resolvedLabel = formInputConfig.label[labelKey];
10204
10199
  break;
10205
10200
  }
@@ -10207,7 +10202,7 @@ const handleDataLinkWithTableKeys = _ref => {
10207
10202
  }
10208
10203
  inputs[fieldKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(fieldKey) ? uploadTypeLabels[fieldKey] : fieldKey);
10209
10204
  }
10210
- values[fieldKey] = (item === null || item === void 0 || (_item$linking3 = item.linking) === null || _item$linking3 === void 0 || (_item$linking3 = _item$linking3.SCL) === null || _item$linking3 === void 0 || (_item$linking3 = _item$linking3[item === null || item === void 0 ? void 0 : item[fieldKey]]) === null || _item$linking3 === void 0 ? void 0 : _item$linking3.name) || (item === null || item === void 0 ? void 0 : item[formInputConfig === null || formInputConfig === void 0 || (_formInputConfig$tabl2 = formInputConfig.tableLabel) === null || _formInputConfig$tabl2 === void 0 ? void 0 : _formInputConfig$tabl2.toLowerCase()]) || (item === null || item === void 0 ? void 0 : item[fieldKey]);
10205
+ values[fieldKey] = item?.linking?.SCL?.[item?.[fieldKey]]?.name || item?.[formInputConfig?.tableLabel?.toLowerCase()] || item?.[fieldKey];
10211
10206
  });
10212
10207
  }
10213
10208
  return {
@@ -10217,7 +10212,7 @@ const handleDataLinkWithTableKeys = _ref => {
10217
10212
  };
10218
10213
  if (Array.isArray(value)) {
10219
10214
  return value.map((item, itemIndex) => {
10220
- const datastakeIdValue = item === null || item === void 0 ? void 0 : item.datastakeId;
10215
+ const datastakeIdValue = item?.datastakeId;
10221
10216
  const {
10222
10217
  inputs,
10223
10218
  values
@@ -10226,9 +10221,9 @@ const handleDataLinkWithTableKeys = _ref => {
10226
10221
  return null;
10227
10222
  }
10228
10223
  return /*#__PURE__*/jsxRuntime.jsx(TreeNodeComponent, {
10229
- nodeKey: datastakeIdValue || t("No ID ".concat(itemIndex + 1)),
10224
+ nodeKey: datastakeIdValue || t(`No ID ${itemIndex + 1}`),
10230
10225
  config: {
10231
- label: datastakeIdValue || t("No ID ".concat(itemIndex + 1)),
10226
+ label: datastakeIdValue || t(`No ID ${itemIndex + 1}`),
10232
10227
  type: 'custom-datalink',
10233
10228
  inputs: inputs
10234
10229
  },
@@ -10242,10 +10237,10 @@ const handleDataLinkWithTableKeys = _ref => {
10242
10237
  getApiBaseUrl: getApiBaseUrl,
10243
10238
  getAppHeader: getAppHeader,
10244
10239
  app: app
10245
- }, "".concat(inputKey, "-").concat(itemIndex));
10240
+ }, `${inputKey}-${itemIndex}`);
10246
10241
  });
10247
10242
  } else {
10248
- const datastakeIdValue = value === null || value === void 0 ? void 0 : value.datastakeId;
10243
+ const datastakeIdValue = value?.datastakeId;
10249
10244
  const {
10250
10245
  inputs,
10251
10246
  values
@@ -10270,7 +10265,7 @@ const handleDataLinkWithTableKeys = _ref => {
10270
10265
  getApiBaseUrl: getApiBaseUrl,
10271
10266
  getAppHeader: getAppHeader,
10272
10267
  app: app
10273
- }, "".concat(inputKey, "-single"));
10268
+ }, `${inputKey}-single`);
10274
10269
  }
10275
10270
  };
10276
10271
 
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const defaultBreadCrumbsLabels = {
6
+ events: "Events",
7
+ accounts: "Accounts",
8
+ modules: "Modules",
9
+ settings: "Settings",
10
+ user: "Users",
11
+ analysis: "Analysis",
12
+ 'data-store': "Data Store",
13
+ data: "Data",
14
+ partners: "Partners",
15
+ locations: "Locations",
16
+ 'information-channels': 'Channels',
17
+ 'find-information': 'Query',
18
+ stakeholders: "Stakeholders",
19
+ documents: "Documents",
20
+ mines: "Mines",
21
+ summary: "Summary",
22
+ edit: "Edit",
23
+ details: "Details"
24
+ };
25
+
26
+ exports.defaultBreadCrumbsLabels = defaultBreadCrumbsLabels;
@@ -12996,7 +12996,7 @@ function SupplyChain({
12996
12996
  setSelectedPartners,
12997
12997
  informationSources,
12998
12998
  hardcodedData,
12999
- breadCrumbs = []
12999
+ breadcrumbs = []
13000
13000
  }) {
13001
13001
  const sourceOptions = React.useMemo(() => {
13002
13002
  if (!partners?.length) return [];
@@ -13039,7 +13039,7 @@ function SupplyChain({
13039
13039
  defaultSelected: partners?.map(p => p.id) || []
13040
13040
  }, partners?.length)
13041
13041
  }),
13042
- breadcrumbs: breadCrumbs
13042
+ breadcrumbs: breadcrumbs
13043
13043
  }),
13044
13044
  children: [/*#__PURE__*/jsxRuntime.jsx("section", {
13045
13045
  children: /*#__PURE__*/jsxRuntime.jsx(KeyIndicators$1, {
@@ -30064,7 +30064,8 @@ const OperatorsTable = ({
30064
30064
  form = {},
30065
30065
  extendingFilters = {},
30066
30066
  createDefaultValues = {},
30067
- applications = []
30067
+ applications = [],
30068
+ breadcrumbs = []
30068
30069
  }) => {
30069
30070
  const [selectOptions, setSelectOptions] = React.useState();
30070
30071
  const [activeTab, setActiveTab] = React.useState('own');
@@ -30080,7 +30081,6 @@ const OperatorsTable = ({
30080
30081
  data,
30081
30082
  applications
30082
30083
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
30083
- const breadCrumbs = [];
30084
30084
  const {
30085
30085
  paginationQuery,
30086
30086
  searchParams,
@@ -30127,7 +30127,7 @@ const OperatorsTable = ({
30127
30127
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
30128
30128
  t: t,
30129
30129
  title: t("Operators"),
30130
- breadCrumbs: breadCrumbs,
30130
+ breadCrumbs: breadcrumbs,
30131
30131
  location: location,
30132
30132
  loading: loading,
30133
30133
  goTo: goTo,
@@ -30551,7 +30551,8 @@ const LocationsTable = ({
30551
30551
  formValue = {},
30552
30552
  form = {},
30553
30553
  applications = [],
30554
- subjectClear = () => {}
30554
+ subjectClear = () => {},
30555
+ breadcrumbs = []
30555
30556
  }) => {
30556
30557
  const [selectOptions, setSelectOptions] = React.useState();
30557
30558
  const [activeTab, setActiveTab] = React.useState("own");
@@ -30567,7 +30568,6 @@ const LocationsTable = ({
30567
30568
  data,
30568
30569
  applications
30569
30570
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
30570
- const breadCrumbs = [];
30571
30571
  const {
30572
30572
  paginationQuery,
30573
30573
  searchParams,
@@ -30610,7 +30610,7 @@ const LocationsTable = ({
30610
30610
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
30611
30611
  t: t,
30612
30612
  title: t("Locations"),
30613
- breadCrumbs: breadCrumbs,
30613
+ breadCrumbs: breadcrumbs,
30614
30614
  location: location,
30615
30615
  loading: loading,
30616
30616
  goTo: goTo,
@@ -31011,7 +31011,8 @@ const StakeholdersTable = ({
31011
31011
  formValue = {},
31012
31012
  form = {},
31013
31013
  applications = [],
31014
- subjectClear = () => {}
31014
+ subjectClear = () => {},
31015
+ breadcrumbs = []
31015
31016
  }) => {
31016
31017
  const [selectOptions, setSelectOptions] = React.useState();
31017
31018
  const [activeTab, setActiveTab] = React.useState("own");
@@ -31026,7 +31027,6 @@ const StakeholdersTable = ({
31026
31027
  subject: 'stakeholders',
31027
31028
  applications
31028
31029
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, applications]);
31029
- const breadCrumbs = [];
31030
31030
  const {
31031
31031
  paginationQuery,
31032
31032
  searchParams,
@@ -31066,7 +31066,7 @@ const StakeholdersTable = ({
31066
31066
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
31067
31067
  t: t,
31068
31068
  title: t("Stakeholders"),
31069
- breadCrumbs: breadCrumbs,
31069
+ breadCrumbs: breadcrumbs,
31070
31070
  location: location,
31071
31071
  loading: loading,
31072
31072
  goTo: goTo,
@@ -31843,7 +31843,8 @@ const EventsTable = ({
31843
31843
  form = {},
31844
31844
  extendingFilters = {},
31845
31845
  applications = [],
31846
- subjectClear = () => {}
31846
+ subjectClear = () => {},
31847
+ breadcrumbs = []
31847
31848
  }) => {
31848
31849
  const [selectOptions, setSelectOptions] = React.useState();
31849
31850
  const [activeTab, setActiveTab] = React.useState("own");
@@ -31859,7 +31860,6 @@ const EventsTable = ({
31859
31860
  data,
31860
31861
  applications
31861
31862
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
31862
- const breadCrumbs = [];
31863
31863
  const {
31864
31864
  paginationQuery,
31865
31865
  searchParams,
@@ -31910,7 +31910,7 @@ const EventsTable = ({
31910
31910
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
31911
31911
  t: t,
31912
31912
  title: t("events"),
31913
- breadCrumbs: breadCrumbs,
31913
+ breadCrumbs: breadcrumbs,
31914
31914
  location: location,
31915
31915
  loading: loading,
31916
31916
  goTo: goTo,
@@ -32253,7 +32253,8 @@ const DocumentsTable = ({
32253
32253
  formValue = {},
32254
32254
  form = {},
32255
32255
  applications = [],
32256
- subjectClear = () => {}
32256
+ subjectClear = () => {},
32257
+ breadcrumbs = []
32257
32258
  }) => {
32258
32259
  const [selectOptions, setSelectOptions] = React.useState();
32259
32260
  const [activeTab, setActiveTab] = React.useState("own");
@@ -32268,7 +32269,6 @@ const DocumentsTable = ({
32268
32269
  subject: 'documents',
32269
32270
  applications
32270
32271
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, applications]);
32271
- const breadCrumbs = [];
32272
32272
  const {
32273
32273
  paginationQuery,
32274
32274
  searchParams,
@@ -32313,7 +32313,7 @@ const DocumentsTable = ({
32313
32313
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
32314
32314
  t: t,
32315
32315
  title: t("Documents"),
32316
- breadCrumbs: breadCrumbs,
32316
+ breadCrumbs: breadcrumbs,
32317
32317
  location: location,
32318
32318
  loading: loading,
32319
32319
  goTo: goTo,
@@ -32920,7 +32920,8 @@ const WorkersTable = ({
32920
32920
  form = {},
32921
32921
  extendingFilters = {},
32922
32922
  createDefaultValues = {},
32923
- applications = []
32923
+ applications = [],
32924
+ breadcrumbs = []
32924
32925
  }) => {
32925
32926
  const [selectOptions, setSelectOptions] = React.useState();
32926
32927
  const [activeTab, setActiveTab] = React.useState('own');
@@ -32936,7 +32937,6 @@ const WorkersTable = ({
32936
32937
  data,
32937
32938
  applications
32938
32939
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
32939
- const breadCrumbs = [];
32940
32940
  const {
32941
32941
  paginationQuery,
32942
32942
  searchParams,
@@ -32983,7 +32983,7 @@ const WorkersTable = ({
32983
32983
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
32984
32984
  t: t,
32985
32985
  title: t("Workers"),
32986
- breadCrumbs: breadCrumbs,
32986
+ breadCrumbs: breadcrumbs,
32987
32987
  location: location,
32988
32988
  loading: loading,
32989
32989
  goTo: goTo,
@@ -33655,7 +33655,8 @@ const ActivitiesTable = ({
33655
33655
  form = {},
33656
33656
  extendingFilters = {},
33657
33657
  createDefaultValues = {},
33658
- applications = []
33658
+ applications = [],
33659
+ breadcrumbs = []
33659
33660
  }) => {
33660
33661
  const [selectOptions, setSelectOptions] = React.useState();
33661
33662
  const [activeTab, setActiveTab] = React.useState("own");
@@ -33671,7 +33672,6 @@ const ActivitiesTable = ({
33671
33672
  data,
33672
33673
  applications
33673
33674
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
33674
- const breadCrumbs = [];
33675
33675
  const {
33676
33676
  paginationQuery,
33677
33677
  searchParams,
@@ -33718,7 +33718,7 @@ const ActivitiesTable = ({
33718
33718
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
33719
33719
  t: t,
33720
33720
  title: t("Activities"),
33721
- breadCrumbs: breadCrumbs,
33721
+ breadCrumbs: breadcrumbs,
33722
33722
  location: location,
33723
33723
  loading: loading,
33724
33724
  goTo: goTo,
@@ -34381,7 +34381,8 @@ const IncidentsTable = ({
34381
34381
  form = {},
34382
34382
  extendingFilters = {},
34383
34383
  createDefaultValues = {},
34384
- applications = []
34384
+ applications = [],
34385
+ breadcrumbs = []
34385
34386
  }) => {
34386
34387
  const [selectOptions, setSelectOptions] = React.useState();
34387
34388
  const [activeTab, setActiveTab] = React.useState("own");
@@ -34397,7 +34398,6 @@ const IncidentsTable = ({
34397
34398
  data,
34398
34399
  applications
34399
34400
  }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
34400
- const breadCrumbs = [];
34401
34401
  const {
34402
34402
  paginationQuery,
34403
34403
  searchParams,
@@ -34444,7 +34444,7 @@ const IncidentsTable = ({
34444
34444
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
34445
34445
  t: t,
34446
34446
  title: t("Incidents"),
34447
- breadCrumbs: breadCrumbs,
34447
+ breadCrumbs: breadcrumbs,
34448
34448
  location: location,
34449
34449
  loading: loading,
34450
34450
  goTo: goTo,
@@ -34513,7 +34513,8 @@ const getColumns$1 = ({
34513
34513
  getRedirectLink,
34514
34514
  theme,
34515
34515
  subject,
34516
- data
34516
+ data,
34517
+ applications
34517
34518
  }) => [{
34518
34519
  dataIndex: 'datastakeId',
34519
34520
  title: t('ID'),
@@ -34651,7 +34652,7 @@ const getColumns$1 = ({
34651
34652
  }
34652
34653
  }, {
34653
34654
  title: t("Sources"),
34654
- dataIndex: 'source',
34655
+ dataIndex: 'sources',
34655
34656
  ellipsis: true,
34656
34657
  show: activeTab !== "own",
34657
34658
  render: (v, all) => {
@@ -34660,11 +34661,10 @@ const getColumns$1 = ({
34660
34661
  className: "daf-default-cell"
34661
34662
  });
34662
34663
  }
34663
- const source = findOptions(v, data?.options?.sourceOptions);
34664
- return source ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
34665
- title: source,
34666
- children: source
34667
- }) : '-';
34664
+ const sources = sourceAvatarConfig(v, user, applications);
34665
+ return /*#__PURE__*/jsxRuntime.jsx(AvatarGroup, {
34666
+ items: sources
34667
+ });
34668
34668
  }
34669
34669
  }, {
34670
34670
  id: 'actions',
@@ -34677,7 +34677,7 @@ const getColumns$1 = ({
34677
34677
  });
34678
34678
  }
34679
34679
  const onClick = () => {
34680
- const link = `/app/view/${subject}/${all.datastakeId}`;
34680
+ let link = `/app/view/${subject}/${all.datastakeId}`;
34681
34681
  if (activeTab === "shared") {
34682
34682
  link += `?sourceId=${all?.authorId?.id}`;
34683
34683
  }
@@ -35047,7 +35047,9 @@ const ProductionSitesTable = ({
35047
35047
  formValue = {},
35048
35048
  form = {},
35049
35049
  extendingFilters = {},
35050
- createDefaultValues = {}
35050
+ createDefaultValues = {},
35051
+ applications = [],
35052
+ breadcrumbs = []
35051
35053
  }) => {
35052
35054
  const [selectOptions, setSelectOptions] = React.useState();
35053
35055
  const [activeTab, setActiveTab] = React.useState('own');
@@ -35060,9 +35062,9 @@ const ProductionSitesTable = ({
35060
35062
  getRedirectLink,
35061
35063
  theme,
35062
35064
  subject: 'production-sites',
35063
- data
35064
- }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data]);
35065
- const breadCrumbs = [];
35065
+ data,
35066
+ applications
35067
+ }), [t, goTo, user, options, activeTab, getRedirectLink, theme, data, applications]);
35066
35068
  const {
35067
35069
  paginationQuery,
35068
35070
  searchParams,
@@ -35109,7 +35111,7 @@ const ProductionSitesTable = ({
35109
35111
  return /*#__PURE__*/jsxRuntime.jsx(TablePageWithTabs, {
35110
35112
  t: t,
35111
35113
  title: t("production-sites"),
35112
- breadCrumbs: breadCrumbs,
35114
+ breadCrumbs: breadcrumbs,
35113
35115
  location: location,
35114
35116
  loading: loading,
35115
35117
  goTo: goTo,
@@ -37625,7 +37627,8 @@ const OperatorSummary = ({
37625
37627
  goTo = () => {},
37626
37628
  getRedirectLink = () => {},
37627
37629
  goBack = () => {},
37628
- onIdChange = () => {}
37630
+ onIdChange = () => {},
37631
+ breadcrumbs = []
37629
37632
  }) => {
37630
37633
  const {
37631
37634
  selectedItem,
@@ -37663,6 +37666,7 @@ const OperatorSummary = ({
37663
37666
  title: hasSelect ? t("Operator Review") : (singleItemData?.name || "") + " " + t("Summary"),
37664
37667
  className: "with-border-header h-w-btn-header no-px-body",
37665
37668
  goBackTo: !hasSelect && goBack,
37669
+ breadcrumbs: breadcrumbs,
37666
37670
  addedHeaderFirst: true,
37667
37671
  actionButtons: [{
37668
37672
  tooltip: t("Details"),
@@ -42450,7 +42454,8 @@ const MineSummary = ({
42450
42454
  goTo = () => {},
42451
42455
  getRedirectLink = () => {},
42452
42456
  goBack = () => {},
42453
- onIdChange = () => {}
42457
+ onIdChange = () => {},
42458
+ breadcrumbs = []
42454
42459
  }) => {
42455
42460
  const {
42456
42461
  selectedItem,
@@ -42489,6 +42494,7 @@ const MineSummary = ({
42489
42494
  className: "with-border-header h-w-btn-header no-px-body",
42490
42495
  goBackTo: !hasSelect && goBack,
42491
42496
  loading: loading,
42497
+ breadcrumbs: breadcrumbs,
42492
42498
  addedHeaderFirst: true,
42493
42499
  actionButtons: [{
42494
42500
  tooltip: t("Details"),