datastake-daf 0.6.342 → 0.6.344

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.
@@ -54445,7 +54445,8 @@ function useAdminTable({
54445
54445
  filtersConfig,
54446
54446
  getRedirectLink,
54447
54447
  getData,
54448
- defaultPageSize
54448
+ defaultPageSize,
54449
+ refetchTrigger
54449
54450
  }) {
54450
54451
  const [totalPending, setTotalPending] = React.useState(0);
54451
54452
  const [initFetchDone, setInitFetchDone] = React.useState(false);
@@ -54510,7 +54511,7 @@ function useAdminTable({
54510
54511
  } catch (err) {
54511
54512
  console.log(err);
54512
54513
  }
54513
- }, [filter.activeFilters]);
54514
+ }, [filter.activeFilters, refetchTrigger]);
54514
54515
  React.useEffect(() => {
54515
54516
  fetchData();
54516
54517
  }, [fetchData]);
@@ -55870,7 +55871,7 @@ const getColumns$1 = ({
55870
55871
  });
55871
55872
  }
55872
55873
  }, {
55873
- title: t("category"),
55874
+ title: t("Category"),
55874
55875
  dataIndex: "category",
55875
55876
  key: "category",
55876
55877
  render: (value, all) => {
@@ -55881,7 +55882,7 @@ const getColumns$1 = ({
55881
55882
  });
55882
55883
  }
55883
55884
  }, {
55884
- title: t("country"),
55885
+ title: t("Country"),
55885
55886
  dataIndex: "country",
55886
55887
  key: "country",
55887
55888
  render: (value, all) => {
@@ -55964,7 +55965,7 @@ function CombineLocationModal({
55964
55965
  };
55965
55966
  return /*#__PURE__*/jsxRuntime.jsxs(Modal, {
55966
55967
  open: isOpen,
55967
- title: t("admin:merge"),
55968
+ title: t("admin::merge"),
55968
55969
  onClose: onClose,
55969
55970
  onSuccess: onSubmit,
55970
55971
  withModalFormWrapper: false,
@@ -55979,7 +55980,7 @@ function CombineLocationModal({
55979
55980
  style: {
55980
55981
  color: token.baseGray90
55981
55982
  },
55982
- children: t("admin::current_accounts")
55983
+ children: t("admin::current_subjects")
55983
55984
  }), /*#__PURE__*/jsxRuntime.jsx(DAFTable, {
55984
55985
  columns: columns,
55985
55986
  data: selectedLocations,
@@ -56023,7 +56024,7 @@ function CombineLocationModal({
56023
56024
  className: "flex-1",
56024
56025
  name: "name",
56025
56026
  children: /*#__PURE__*/jsxRuntime.jsx(antd.Input, {
56026
- placeholder: t("name")
56027
+ placeholder: t("Name")
56027
56028
  })
56028
56029
  }), /*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
56029
56030
  className: "flex-1",
@@ -56035,7 +56036,7 @@ function CombineLocationModal({
56035
56036
  value: location?.category || "-"
56036
56037
  };
56037
56038
  }).filter((option, index, self) => index === self.findIndex(o => o.value === option.value)),
56038
- placeholder: t("category")
56039
+ placeholder: t("Category")
56039
56040
  })
56040
56041
  }), /*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
56041
56042
  className: "flex-1",
@@ -56102,7 +56103,8 @@ function LocationTable(_ref) {
56102
56103
  view,
56103
56104
  headerTitle,
56104
56105
  breadcrumbs,
56105
- mergeSubjectsFunction
56106
+ mergeSubjectsFunction,
56107
+ refetchTrigger
56106
56108
  } = _ref;
56107
56109
  const [showFilters, setShowFilters] = React.useState(false);
56108
56110
  const [hasError, setHasError] = React.useState(false);
@@ -56131,7 +56133,8 @@ function LocationTable(_ref) {
56131
56133
  defaultPageSize,
56132
56134
  filtersConfig: filtersConfig$8,
56133
56135
  getRedirectLink,
56134
- getData
56136
+ getData,
56137
+ refetchTrigger
56135
56138
  });
56136
56139
  const selectOptions = React.useMemo(() => {
56137
56140
  var _config$options, _config$options2;
@@ -7468,7 +7468,8 @@ const en = {
7468
7468
  country: "Country",
7469
7469
  account_type: "Account Type",
7470
7470
  current_accounts: "Current Accounts",
7471
- merged_output: "Merged Output"
7471
+ merged_output: "Merged Output",
7472
+ current_subjects: "Current Subjects"
7472
7473
  }
7473
7474
  };
7474
7475
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.342",
3
+ "version": "0.6.344",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -21,7 +21,7 @@ export const getColumns = ({ t, selectOptions, module }) => {
21
21
  },
22
22
  },
23
23
  {
24
- title: t("category"),
24
+ title: t("Category"),
25
25
  dataIndex: "category",
26
26
  key: "category",
27
27
  render: (value, all) => {
@@ -30,7 +30,7 @@ export const getColumns = ({ t, selectOptions, module }) => {
30
30
  },
31
31
  },
32
32
  {
33
- title: t("country"),
33
+ title: t("Country"),
34
34
  dataIndex: "country",
35
35
  key: "country",
36
36
  render: (value, all) => {
@@ -44,7 +44,7 @@ export default function CombineLocationModal({
44
44
  return (
45
45
  <Modal
46
46
  open={isOpen}
47
- title={t("admin:merge")}
47
+ title={t("admin::merge")}
48
48
  onClose={onClose}
49
49
  onSuccess={onSubmit}
50
50
  withModalFormWrapper={false}
@@ -60,7 +60,7 @@ export default function CombineLocationModal({
60
60
  color: token.baseGray90,
61
61
  }}
62
62
  >
63
- {t("admin::current_accounts")}
63
+ {t("admin::current_subjects")}
64
64
  </span>
65
65
  <DAFTable
66
66
  columns={columns}
@@ -108,7 +108,7 @@ export default function CombineLocationModal({
108
108
  </Form.Item>
109
109
 
110
110
  <Form.Item className="flex-1" name="name">
111
- <Input placeholder={t("name")}></Input>
111
+ <Input placeholder={t("Name")}></Input>
112
112
  </Form.Item>
113
113
 
114
114
  <Form.Item className="flex-1" name="category">
@@ -129,7 +129,7 @@ export default function CombineLocationModal({
129
129
  (option, index, self) =>
130
130
  index === self.findIndex((o) => o.value === option.value),
131
131
  )}
132
- placeholder={t("category")}
132
+ placeholder={t("Category")}
133
133
  ></Select>
134
134
  </Form.Item>
135
135
 
@@ -29,6 +29,7 @@ export default function LocationTable({
29
29
  headerTitle,
30
30
  breadcrumbs,
31
31
  mergeSubjectsFunction,
32
+ refetchTrigger,
32
33
  }) {
33
34
  const [showFilters, setShowFilters] = useState(false);
34
35
  const [hasError, setHasError] = useState(false);
@@ -57,6 +58,7 @@ export default function LocationTable({
57
58
  filtersConfig,
58
59
  getRedirectLink,
59
60
  getData,
61
+ refetchTrigger,
60
62
  });
61
63
 
62
64
  const selectOptions = useMemo(() => {
@@ -14,6 +14,7 @@ export function useAdminTable({
14
14
  getRedirectLink,
15
15
  getData,
16
16
  defaultPageSize,
17
+ refetchTrigger,
17
18
  }) {
18
19
  const [totalPending, setTotalPending] = useState(0);
19
20
  const [initFetchDone, setInitFetchDone] = useState(false);
@@ -74,7 +75,7 @@ export function useAdminTable({
74
75
  } catch (err) {
75
76
  console.log(err);
76
77
  }
77
- }, [filter.activeFilters]);
78
+ }, [filter.activeFilters, refetchTrigger]);
78
79
 
79
80
  useEffect(() => {
80
81
  fetchData();
@@ -1363,6 +1363,7 @@ const en = {
1363
1363
  account_type: "Account Type",
1364
1364
  current_accounts: "Current Accounts",
1365
1365
  merged_output: "Merged Output",
1366
+ current_subjects: "Current Subjects",
1366
1367
  },
1367
1368
  };
1368
1369