datastake-daf 0.6.833 → 0.6.834

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.
@@ -42880,7 +42880,9 @@ function AuthForm(_ref) {
42880
42880
  t = key => key,
42881
42881
  executeRecaptcha = () => {},
42882
42882
  getCurrentStep = () => {},
42883
- theme
42883
+ theme,
42884
+ additionalItem,
42885
+ additionalItemConfig = {}
42884
42886
  } = _ref;
42885
42887
  const [formInstance] = antd.Form.useForm(form);
42886
42888
  const [currentStep, setCurrentStep] = React.useState(0);
@@ -43333,8 +43333,12 @@ const getColumns$a = ({
43333
43333
  className: "daf-default-cell"
43334
43334
  });
43335
43335
  }
43336
+ const subjectMap = {
43337
+ "corrective-actions": "correctiveActions",
43338
+ "activities": "activity"
43339
+ };
43336
43340
  const eventCategory = findOptions(v, data?.options?.eventCategoryOptions || data?.options?.categoryOptions);
43337
- const categoryValue = getEventCategoryBySubject(eventCategory, "correctiveActions", true);
43341
+ const categoryValue = getEventCategoryBySubject(eventCategory, subjectMap[subject], true);
43338
43342
  return categoryValue ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
43339
43343
  title: categoryValue,
43340
43344
  children: categoryValue
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.833",
3
+ "version": "0.6.834",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -15,6 +15,8 @@ function AuthForm ({
15
15
  executeRecaptcha = () => {},
16
16
  getCurrentStep = () => {},
17
17
  theme,
18
+ additionalItem,
19
+ additionalItemConfig = {}
18
20
  }){
19
21
  const [formInstance] = Form.useForm(form);
20
22
  const [currentStep, setCurrentStep] = useState(0);
@@ -109,9 +109,12 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
109
109
  if (all.empty) {
110
110
  return <div className="daf-default-cell" />
111
111
  }
112
-
112
+ const subjectMap = {
113
+ "corrective-actions": "correctiveActions",
114
+ "activities": "activity",
115
+ }
113
116
  const eventCategory = findOptions(v, data?.options?.eventCategoryOptions || data?.options?.categoryOptions);
114
- const categoryValue = getEventCategoryBySubject(eventCategory, "correctiveActions", true);
117
+ const categoryValue = getEventCategoryBySubject(eventCategory, subjectMap[subject], true);
115
118
 
116
119
  return categoryValue ? <Tooltip title={categoryValue}>{categoryValue}</Tooltip> : '-';
117
120
  },