datastake-daf 0.6.741 → 0.6.742

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.
@@ -15841,7 +15841,7 @@ const TablePageWithTabs = ({
15841
15841
  location,
15842
15842
  loading = false,
15843
15843
  goTo = () => {},
15844
- defaultActiveTab = "all",
15844
+ defaultActiveTab = "own",
15845
15845
  checkboxConfig = {},
15846
15846
  columns = [],
15847
15847
  data = {},
@@ -16041,8 +16041,8 @@ const getColumns$4 = ({
16041
16041
  });
16042
16042
  }
16043
16043
  }, {
16044
- dataIndex: 'country',
16045
- title: t('Country'),
16044
+ dataIndex: 'positionSupplyChain',
16045
+ title: t('Position'),
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 country = findOptions(v, options?.countries);
16054
+ const country = findOptions(v, data?.options?.positionSupplyChainOptions);
16055
16055
  return country ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16056
16056
  title: country,
16057
16057
  children: country
16058
16058
  }) : '-';
16059
16059
  }
16060
16060
  }, {
16061
- dataIndex: 'type',
16062
- title: t('Type'),
16061
+ dataIndex: 'subCategory',
16062
+ title: t('Legal Form'),
16063
16063
  ellipsis: true,
16064
16064
  show: true,
16065
16065
  render: (v, all) => {
@@ -16068,17 +16068,15 @@ const getColumns$4 = ({
16068
16068
  className: "daf-default-cell"
16069
16069
  });
16070
16070
  }
16071
-
16072
- // const category = findOptions(v, data?.options?.locationCategories);
16073
-
16074
- return v ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16075
- title: v,
16076
- children: v
16071
+ const subCategory = findOptions(v, data?.options?.subCategoriesOptions);
16072
+ return subCategory ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16073
+ title: subCategory,
16074
+ children: subCategory
16077
16075
  }) : '-';
16078
16076
  }
16079
16077
  }, {
16080
- dataIndex: 'registration',
16081
- title: t('Registration'),
16078
+ dataIndex: 'province',
16079
+ title: t('Province'),
16082
16080
  ellipsis: true,
16083
16081
  show: true,
16084
16082
  render: (v, all) => {
@@ -16087,15 +16085,15 @@ const getColumns$4 = ({
16087
16085
  className: "daf-default-cell"
16088
16086
  });
16089
16087
  }
16090
- const region = getLinkValue$2(v, all?.linking?.SCL);
16088
+ const region = getLinkValue$2(all?.location?.administrativeLevel1, all?.location?.linking?.SCL);
16091
16089
  return region ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16092
16090
  title: region,
16093
16091
  children: region
16094
16092
  }) : '-';
16095
16093
  }
16096
16094
  }, {
16097
- dataIndex: 'status',
16098
- title: t('Status'),
16095
+ dataIndex: 'territory',
16096
+ title: t('Territory'),
16099
16097
  ellipsis: true,
16100
16098
  show: true,
16101
16099
  render: (v, all) => {
@@ -16104,7 +16102,7 @@ const getColumns$4 = ({
16104
16102
  className: "daf-default-cell"
16105
16103
  });
16106
16104
  }
16107
- const district = getLinkValue$2(v, all?.linking?.SCL);
16105
+ const district = getLinkValue$2(all?.location?.administrativeLevel2, all?.location?.linking?.SCL);
16108
16106
  return district ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
16109
16107
  title: district,
16110
16108
  children: district
@@ -1502,7 +1502,7 @@ class OperatorService extends BaseService {
1502
1502
  data: data
1503
1503
  });
1504
1504
  }
1505
- getOptions(id = "optionPositionSupplyChain,subCategory,activityAtSite,category,countries") {
1505
+ getOptions(id = "positionSupplyChainOptions,subCategoriesOptions,categoriesOptions,countries") {
1506
1506
  return this.apiGet({
1507
1507
  isApp: true,
1508
1508
  url: `/forms/options`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.741",
3
+ "version": "0.6.742",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -40,8 +40,8 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
40
40
  },
41
41
  },
42
42
  {
43
- dataIndex: 'country',
44
- title: t('Country'),
43
+ dataIndex: 'positionSupplyChain',
44
+ title: t('Position'),
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 country = findOptions(v, options?.countries);
52
+ const country = findOptions(v, data?.options?.positionSupplyChainOptions);
53
53
 
54
54
  return country ? <Tooltip title={country}>{country}</Tooltip> : '-';
55
55
  },
56
56
  },
57
57
  {
58
- dataIndex: 'type',
59
- title: t('Type'),
58
+ dataIndex: 'subCategory',
59
+ title: t('Legal Form'),
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 category = findOptions(v, data?.options?.locationCategories);
67
+ const subCategory = findOptions(v, data?.options?.subCategoriesOptions);
68
68
 
69
- return v ? <Tooltip title={v}>{v}</Tooltip> : '-';
69
+ return subCategory ? <Tooltip title={subCategory}>{subCategory}</Tooltip> : '-';
70
70
  },
71
71
  },
72
72
  {
73
- dataIndex: 'registration',
74
- title: t('Registration'),
73
+ dataIndex: 'province',
74
+ title: t('Province'),
75
75
  ellipsis: true,
76
76
  show: true,
77
77
  render: (v, all) => {
@@ -79,14 +79,14 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
79
79
  return <div className="daf-default-cell" />
80
80
  }
81
81
 
82
- const region = getLinkValue(v, all?.linking?.SCL);
82
+ const region = getLinkValue(all?.location?.administrativeLevel1, all?.location?.linking?.SCL);
83
83
 
84
84
  return region ? <Tooltip title={region}>{region}</Tooltip> : '-';
85
85
  },
86
86
  },
87
87
  {
88
- dataIndex: 'status',
89
- title: t('Status'),
88
+ dataIndex: 'territory',
89
+ title: t('Territory'),
90
90
  ellipsis: true,
91
91
  show: true,
92
92
  render: (v, all) => {
@@ -94,7 +94,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
94
94
  return <div className="daf-default-cell" />
95
95
  }
96
96
 
97
- const district = getLinkValue(v, all?.linking?.SCL);
97
+ const district = getLinkValue(all?.location?.administrativeLevel2, all?.location?.linking?.SCL);
98
98
 
99
99
  return district ? <Tooltip title={district}>{district}</Tooltip> : '-';
100
100
  },
@@ -12,7 +12,7 @@ const TablePageWithTabs = ({
12
12
  location,
13
13
  loading = false,
14
14
  goTo = () => {},
15
- defaultActiveTab = "all",
15
+ defaultActiveTab = "own",
16
16
  checkboxConfig = {},
17
17
  columns = [],
18
18
  data = {},
@@ -76,7 +76,7 @@ class OperatorService extends BaseService {
76
76
  });
77
77
  }
78
78
 
79
- getOptions(id = "optionPositionSupplyChain,subCategory,activityAtSite,category,countries") {
79
+ getOptions(id = "positionSupplyChainOptions,subCategoriesOptions,categoriesOptions,countries") {
80
80
  return this.apiGet({
81
81
  isApp: true,
82
82
  url: `/forms/options`,
package/build/favicon.ico DELETED
Binary file
package/build/logo192.png DELETED
Binary file
package/build/logo512.png DELETED
Binary file
@@ -1,25 +0,0 @@
1
- {
2
- "short_name": "React App",
3
- "name": "Create React App Sample",
4
- "icons": [
5
- {
6
- "src": "favicon.ico",
7
- "sizes": "64x64 32x32 24x24 16x16",
8
- "type": "image/x-icon"
9
- },
10
- {
11
- "src": "logo192.png",
12
- "type": "image/png",
13
- "sizes": "192x192"
14
- },
15
- {
16
- "src": "logo512.png",
17
- "type": "image/png",
18
- "sizes": "512x512"
19
- }
20
- ],
21
- "start_url": ".",
22
- "display": "standalone",
23
- "theme_color": "#000000",
24
- "background_color": "#ffffff"
25
- }
package/build/robots.txt DELETED
@@ -1,3 +0,0 @@
1
- # https://www.robotstxt.org/robotstxt.html
2
- User-agent: *
3
- Disallow: