datastake-daf 0.6.739 → 0.6.741
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.
package/dist/components/index.js
CHANGED
|
@@ -5797,7 +5797,7 @@ function DAFTable(_ref) {
|
|
|
5797
5797
|
if (data) {
|
|
5798
5798
|
setSource(data);
|
|
5799
5799
|
}
|
|
5800
|
-
}, [data
|
|
5800
|
+
}, [data]);
|
|
5801
5801
|
const paginationPageSize = pagination === null || pagination === void 0 ? void 0 : pagination.pageSize;
|
|
5802
5802
|
const dataSource = React.useMemo(() => {
|
|
5803
5803
|
const pageSize = paginationPageSize ? paginationPageSize : source.length > 10 ? source.length : 10;
|
package/dist/pages/index.js
CHANGED
|
@@ -15163,7 +15163,7 @@ function DAFTable({
|
|
|
15163
15163
|
if (data) {
|
|
15164
15164
|
setSource(data);
|
|
15165
15165
|
}
|
|
15166
|
-
}, [data
|
|
15166
|
+
}, [data]);
|
|
15167
15167
|
const paginationPageSize = pagination?.pageSize;
|
|
15168
15168
|
const dataSource = React.useMemo(() => {
|
|
15169
15169
|
const pageSize = paginationPageSize ? paginationPageSize : source.length > 10 ? source.length : 10;
|
|
@@ -16041,8 +16041,8 @@ const getColumns$4 = ({
|
|
|
16041
16041
|
});
|
|
16042
16042
|
}
|
|
16043
16043
|
}, {
|
|
16044
|
-
dataIndex: '
|
|
16045
|
-
title: t('
|
|
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
|
|
16055
|
-
return
|
|
16056
|
-
title:
|
|
16057
|
-
children:
|
|
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: '
|
|
16062
|
-
title: t('
|
|
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
|
-
|
|
16072
|
-
|
|
16073
|
-
|
|
16074
|
-
|
|
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: '
|
|
16079
|
-
title: t('
|
|
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: '
|
|
16096
|
-
title: t('
|
|
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
|
@@ -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: '
|
|
44
|
-
title: t('
|
|
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
|
|
53
|
-
|
|
54
|
-
return
|
|
52
|
+
const country = findOptions(v, options?.countries);
|
|
53
|
+
|
|
54
|
+
return country ? <Tooltip title={country}>{country}</Tooltip> : '-';
|
|
55
55
|
},
|
|
56
|
-
},
|
|
56
|
+
},
|
|
57
57
|
{
|
|
58
|
-
dataIndex: '
|
|
59
|
-
title: t('
|
|
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
|
|
68
|
-
|
|
69
|
-
return
|
|
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: '
|
|
74
|
-
title: t('
|
|
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: '
|
|
89
|
-
title: t('
|
|
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: "",
|