datastake-daf 0.6.739 → 0.6.740

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.
@@ -16041,8 +16041,8 @@ const getColumns$4 = ({
16041
16041
  });
16042
16042
  }
16043
16043
  }, {
16044
- dataIndex: 'category',
16045
- title: t('Category'),
16044
+ dataIndex: 'country',
16045
+ title: t('Country'),
16046
16046
  ellipsis: true,
16047
16047
  show: true,
16048
16048
  render: (v, all) => {
@@ -16051,15 +16051,15 @@ const getColumns$4 = ({
16051
16051
  className: "daf-default-cell"
16052
16052
  });
16053
16053
  }
16054
- const category = findOptions(v, data?.options?.locationCategories);
16055
- return category ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16056
- title: category,
16057
- children: category
16054
+ const country = findOptions(v, options?.countries);
16055
+ return country ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16056
+ title: country,
16057
+ children: country
16058
16058
  }) : '-';
16059
16059
  }
16060
16060
  }, {
16061
- dataIndex: 'country',
16062
- title: t('Country'),
16061
+ dataIndex: 'type',
16062
+ title: t('Type'),
16063
16063
  ellipsis: true,
16064
16064
  show: true,
16065
16065
  render: (v, all) => {
@@ -16068,15 +16068,17 @@ const getColumns$4 = ({
16068
16068
  className: "daf-default-cell"
16069
16069
  });
16070
16070
  }
16071
- const country = findOptions(v, options?.countries);
16072
- return country ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16073
- title: country,
16074
- children: country
16071
+
16072
+ // const category = findOptions(v, data?.options?.locationCategories);
16073
+
16074
+ return v ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16075
+ title: v,
16076
+ children: v
16075
16077
  }) : '-';
16076
16078
  }
16077
16079
  }, {
16078
- dataIndex: 'administrativeLevel1',
16079
- title: t('Region'),
16080
+ dataIndex: 'registration',
16081
+ title: t('Registration'),
16080
16082
  ellipsis: true,
16081
16083
  show: true,
16082
16084
  render: (v, all) => {
@@ -16092,8 +16094,8 @@ const getColumns$4 = ({
16092
16094
  }) : '-';
16093
16095
  }
16094
16096
  }, {
16095
- dataIndex: 'administrativeLevel2',
16096
- title: t('District'),
16097
+ dataIndex: 'status',
16098
+ title: t('Status'),
16097
16099
  ellipsis: true,
16098
16100
  show: true,
16099
16101
  render: (v, all) => {
@@ -16108,24 +16110,6 @@ const getColumns$4 = ({
16108
16110
  children: district
16109
16111
  }) : '-';
16110
16112
  }
16111
- }, {
16112
- title: t("Last Update"),
16113
- dataIndex: "updatedAt",
16114
- key: "updatedAt",
16115
- width: 125,
16116
- render: (date, all) => {
16117
- if (all.empty) {
16118
- return /*#__PURE__*/jsxRuntime.jsx("div", {
16119
- className: "daf-default-cell"
16120
- });
16121
- }
16122
- const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
16123
- return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16124
- title: _date,
16125
- children: _date
16126
- });
16127
- },
16128
- ellipsis: true
16129
16113
  }, {
16130
16114
  title: t("Sources"),
16131
16115
  dataIndex: "sources",
@@ -16145,6 +16129,24 @@ const getColumns$4 = ({
16145
16129
  items: val
16146
16130
  });
16147
16131
  }
16132
+ }, {
16133
+ title: t("Last Update"),
16134
+ dataIndex: "updatedAt",
16135
+ key: "updatedAt",
16136
+ width: 125,
16137
+ render: (date, all) => {
16138
+ if (all.empty) {
16139
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
16140
+ className: "daf-default-cell"
16141
+ });
16142
+ }
16143
+ const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
16144
+ return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16145
+ title: _date,
16146
+ children: _date
16147
+ });
16148
+ },
16149
+ ellipsis: true
16148
16150
  }, {
16149
16151
  id: 'actions',
16150
16152
  title: "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.739",
3
+ "version": "0.6.740",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -38,10 +38,10 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
38
38
 
39
39
  return <Tooltip title={v}>{v}</Tooltip>;
40
40
  },
41
- },
41
+ },
42
42
  {
43
- dataIndex: 'category',
44
- title: t('Category'),
43
+ dataIndex: 'country',
44
+ title: t('Country'),
45
45
  ellipsis: true,
46
46
  show: true,
47
47
  render: (v, all) => {
@@ -49,14 +49,14 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
49
49
  return <div className="daf-default-cell" />
50
50
  }
51
51
 
52
- const category = findOptions(v, data?.options?.locationCategories);
53
-
54
- return category ? <Tooltip title={category}>{category}</Tooltip> : '-';
52
+ const country = findOptions(v, options?.countries);
53
+
54
+ return country ? <Tooltip title={country}>{country}</Tooltip> : '-';
55
55
  },
56
- },
56
+ },
57
57
  {
58
- dataIndex: 'country',
59
- title: t('Country'),
58
+ dataIndex: 'type',
59
+ title: t('Type'),
60
60
  ellipsis: true,
61
61
  show: true,
62
62
  render: (v, all) => {
@@ -64,14 +64,14 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
64
64
  return <div className="daf-default-cell" />
65
65
  }
66
66
 
67
- const country = findOptions(v, options?.countries);
68
-
69
- return country ? <Tooltip title={country}>{country}</Tooltip> : '-';
67
+ // const category = findOptions(v, data?.options?.locationCategories);
68
+
69
+ return v ? <Tooltip title={v}>{v}</Tooltip> : '-';
70
70
  },
71
- },
71
+ },
72
72
  {
73
- dataIndex: 'administrativeLevel1',
74
- title: t('Region'),
73
+ dataIndex: 'registration',
74
+ title: t('Registration'),
75
75
  ellipsis: true,
76
76
  show: true,
77
77
  render: (v, all) => {
@@ -85,8 +85,8 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
85
85
  },
86
86
  },
87
87
  {
88
- dataIndex: 'administrativeLevel2',
89
- title: t('District'),
88
+ dataIndex: 'status',
89
+ title: t('Status'),
90
90
  ellipsis: true,
91
91
  show: true,
92
92
  render: (v, all) => {
@@ -99,21 +99,6 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
99
99
  return district ? <Tooltip title={district}>{district}</Tooltip> : '-';
100
100
  },
101
101
  },
102
- {
103
- title: t("Last Update"),
104
- dataIndex: "updatedAt",
105
- key: "updatedAt",
106
- width: 125,
107
- render: (date, all) => {
108
- if (all.empty) {
109
- return <div className="daf-default-cell" />;
110
- }
111
-
112
- const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
113
- return <Tooltip title={_date}>{_date}</Tooltip>;
114
- },
115
- ellipsis: true,
116
- },
117
102
  {
118
103
  title: t("Sources"),
119
104
  dataIndex: "sources",
@@ -129,6 +114,21 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
129
114
  return <AvatarGroup items={val}></AvatarGroup>;
130
115
  },
131
116
  },
117
+ {
118
+ title: t("Last Update"),
119
+ dataIndex: "updatedAt",
120
+ key: "updatedAt",
121
+ width: 125,
122
+ render: (date, all) => {
123
+ if (all.empty) {
124
+ return <div className="daf-default-cell" />;
125
+ }
126
+
127
+ const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
128
+ return <Tooltip title={_date}>{_date}</Tooltip>;
129
+ },
130
+ ellipsis: true,
131
+ },
132
132
  {
133
133
  id: 'actions',
134
134
  title: "",