datastake-daf 0.6.347 → 0.6.348
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
|
@@ -55634,7 +55634,8 @@ const getColumns$2 = ({
|
|
|
55634
55634
|
token,
|
|
55635
55635
|
selectedLocations,
|
|
55636
55636
|
setSelectedLocations,
|
|
55637
|
-
selectOptions
|
|
55637
|
+
selectOptions,
|
|
55638
|
+
namespace
|
|
55638
55639
|
}) => {
|
|
55639
55640
|
const cols = [{
|
|
55640
55641
|
title: "",
|
|
@@ -55735,7 +55736,7 @@ const getColumns$2 = ({
|
|
|
55735
55736
|
dataIndex: "administrativeLevel1",
|
|
55736
55737
|
key: "administrativeLevel1",
|
|
55737
55738
|
ellipsis: true,
|
|
55738
|
-
show:
|
|
55739
|
+
show: namespace.includes("locations"),
|
|
55739
55740
|
render: (value, all) => {
|
|
55740
55741
|
if (all.empty) {
|
|
55741
55742
|
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -55757,7 +55758,7 @@ const getColumns$2 = ({
|
|
|
55757
55758
|
title: t("Territory"),
|
|
55758
55759
|
dataIndex: "administrativeLevel2",
|
|
55759
55760
|
key: "administrativeLevel2",
|
|
55760
|
-
show:
|
|
55761
|
+
show: namespace.includes("locations"),
|
|
55761
55762
|
ellipsis: true,
|
|
55762
55763
|
render: (value, all) => {
|
|
55763
55764
|
if (all.empty) {
|
|
@@ -55822,7 +55823,7 @@ const getColumns$2 = ({
|
|
|
55822
55823
|
title: "",
|
|
55823
55824
|
dataIndex: "actions",
|
|
55824
55825
|
key: "actions",
|
|
55825
|
-
width:
|
|
55826
|
+
width: 60,
|
|
55826
55827
|
show: true,
|
|
55827
55828
|
render: (value, all) => {
|
|
55828
55829
|
if (all.empty) {
|
|
@@ -56155,9 +56156,10 @@ function LocationTable(_ref) {
|
|
|
56155
56156
|
selectedLocations,
|
|
56156
56157
|
setSelectedLocations,
|
|
56157
56158
|
getRedirectLink,
|
|
56158
|
-
selectOptions
|
|
56159
|
+
selectOptions,
|
|
56160
|
+
namespace: headerTitle
|
|
56159
56161
|
});
|
|
56160
|
-
}, [t, goTo, module, token, selectedLocations, getRedirectLink, selectOptions]);
|
|
56162
|
+
}, [t, goTo, module, token, selectedLocations, getRedirectLink, selectOptions, headerTitle]);
|
|
56161
56163
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
56162
56164
|
children: [/*#__PURE__*/jsxRuntime.jsxs(AdminTable, {
|
|
56163
56165
|
filters: filter,
|
package/package.json
CHANGED
|
@@ -77,6 +77,7 @@ export const getColumns = ({
|
|
|
77
77
|
selectedLocations,
|
|
78
78
|
setSelectedLocations,
|
|
79
79
|
selectOptions,
|
|
80
|
+
namespace,
|
|
80
81
|
}) => {
|
|
81
82
|
const cols = [
|
|
82
83
|
{
|
|
@@ -173,7 +174,7 @@ export const getColumns = ({
|
|
|
173
174
|
dataIndex: "administrativeLevel1",
|
|
174
175
|
key: "administrativeLevel1",
|
|
175
176
|
ellipsis: true,
|
|
176
|
-
show:
|
|
177
|
+
show: namespace.includes("locations"),
|
|
177
178
|
render: (value, all) => {
|
|
178
179
|
if (all.empty) {
|
|
179
180
|
return <div className="daf-default-cell" />;
|
|
@@ -193,7 +194,7 @@ export const getColumns = ({
|
|
|
193
194
|
title: t("Territory"),
|
|
194
195
|
dataIndex: "administrativeLevel2",
|
|
195
196
|
key: "administrativeLevel2",
|
|
196
|
-
show:
|
|
197
|
+
show: namespace.includes("locations"),
|
|
197
198
|
ellipsis: true,
|
|
198
199
|
render: (value, all) => {
|
|
199
200
|
if (all.empty) {
|
|
@@ -263,7 +264,7 @@ export const getColumns = ({
|
|
|
263
264
|
title: "",
|
|
264
265
|
dataIndex: "actions",
|
|
265
266
|
key: "actions",
|
|
266
|
-
width:
|
|
267
|
+
width: 60,
|
|
267
268
|
show: true,
|
|
268
269
|
render: (value, all) => {
|
|
269
270
|
if (all.empty) {
|
|
@@ -80,8 +80,9 @@ export default function LocationTable({
|
|
|
80
80
|
setSelectedLocations,
|
|
81
81
|
getRedirectLink,
|
|
82
82
|
selectOptions,
|
|
83
|
+
namespace: headerTitle
|
|
83
84
|
});
|
|
84
|
-
}, [t, goTo, module, token, selectedLocations, getRedirectLink, selectOptions]);
|
|
85
|
+
}, [t, goTo, module, token, selectedLocations, getRedirectLink, selectOptions, headerTitle]);
|
|
85
86
|
|
|
86
87
|
return (
|
|
87
88
|
<>
|