datastake-daf 0.6.162 → 0.6.163

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.
@@ -13260,7 +13260,7 @@ const AjaxSelectRenderer = ({
13260
13260
  }
13261
13261
  }, [value, config, getApiBaseUrl, formValues]);
13262
13262
  return /*#__PURE__*/jsxRuntime.jsx("span", {
13263
- children: displayValue
13263
+ children: formValues?.linking?.SCL[displayValue]?.name || displayValue
13264
13264
  });
13265
13265
  };
13266
13266
 
@@ -14325,13 +14325,13 @@ const handleDataLinkWithTableKeys = ({
14325
14325
  }
14326
14326
  inputs[tableKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] || (uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey);
14327
14327
  }
14328
- values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item?.[formInputConfig?.tableLabel?.toLowerCase()] || item?.[tableKey];
14328
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item[formInputConfig?.meta?.onNewSetValueKey] || item?.[formInputConfig?.tableLabel?.toLowerCase()] || item?.[tableKey];
14329
14329
  } else {
14330
14330
  inputs[tableKey] = {
14331
14331
  label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey,
14332
14332
  type: inputConfig?.type
14333
14333
  };
14334
- values[tableKey] = item?.[tableKey];
14334
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item?.[tableKey];
14335
14335
  }
14336
14336
  });
14337
14337
  if (dataLinkForm?.identification && typeof dataLinkForm.identification === 'object') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.162",
3
+ "version": "0.6.163",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -90,13 +90,13 @@ export const handleDataLinkWithTableKeys = ({
90
90
  inputs[tableKey].label = resolvedLabel || Object.values(formInputConfig.label)[0] ||
91
91
  (uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey);
92
92
  }
93
- values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item?.[formInputConfig?.tableLabel?.toLowerCase()] || item?.[tableKey];
93
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item[formInputConfig?.meta?.onNewSetValueKey] || item?.[formInputConfig?.tableLabel?.toLowerCase()] || item?.[tableKey];
94
94
  } else {
95
95
  inputs[tableKey] = {
96
96
  label: uploadTypeFields.includes(tableKey) ? uploadTypeLabels[tableKey] : tableKey,
97
97
  type: inputConfig?.type
98
98
  };
99
- values[tableKey] = item?.[tableKey];
99
+ values[tableKey] = item?.linking?.SCL?.[item?.[tableKey]]?.name || item?.[tableKey];
100
100
  }
101
101
  });
102
102