datastake-daf 0.6.790 → 0.6.792
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 +1833 -1916
- package/dist/pages/index.js +14 -13
- package/package.json +1 -1
- package/src/@daf/core/components/AuthForm/index.jsx +5 -4
- package/src/@daf/pages/Events/Activities/columns.js +2 -2
- package/src/@daf/pages/Events/Incidents/columns.js +2 -2
- package/src/@daf/pages/Locations/MineSite/columns.js +2 -2
- package/src/@daf/pages/Locations/MineSite/config.js +4 -3
- package/src/@daf/pages/Locations/columns.js +2 -2
- package/src/@daf/pages/Stakeholders/Operators/columns.js +2 -2
package/dist/pages/index.js
CHANGED
|
@@ -15480,7 +15480,7 @@ const getColumns$d = ({
|
|
|
15480
15480
|
}
|
|
15481
15481
|
}, {
|
|
15482
15482
|
dataIndex: 'province',
|
|
15483
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
15483
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
15484
15484
|
ellipsis: true,
|
|
15485
15485
|
show: true,
|
|
15486
15486
|
render: (v, all) => {
|
|
@@ -15497,7 +15497,7 @@ const getColumns$d = ({
|
|
|
15497
15497
|
}
|
|
15498
15498
|
}, {
|
|
15499
15499
|
dataIndex: 'territory',
|
|
15500
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
15500
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
15501
15501
|
ellipsis: true,
|
|
15502
15502
|
show: true,
|
|
15503
15503
|
render: (v, all) => {
|
|
@@ -31971,7 +31971,7 @@ const getColumns$9 = ({
|
|
|
31971
31971
|
}
|
|
31972
31972
|
}, {
|
|
31973
31973
|
dataIndex: 'province',
|
|
31974
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
31974
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
31975
31975
|
ellipsis: true,
|
|
31976
31976
|
show: true,
|
|
31977
31977
|
render: (v, all) => {
|
|
@@ -31988,7 +31988,7 @@ const getColumns$9 = ({
|
|
|
31988
31988
|
}
|
|
31989
31989
|
}, {
|
|
31990
31990
|
dataIndex: 'territory',
|
|
31991
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
31991
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
31992
31992
|
ellipsis: true,
|
|
31993
31993
|
show: true,
|
|
31994
31994
|
render: (v, all) => {
|
|
@@ -32406,7 +32406,7 @@ const getColumns$8 = ({
|
|
|
32406
32406
|
}
|
|
32407
32407
|
}, {
|
|
32408
32408
|
dataIndex: 'province',
|
|
32409
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
32409
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
32410
32410
|
ellipsis: true,
|
|
32411
32411
|
show: true,
|
|
32412
32412
|
render: (v, all) => {
|
|
@@ -32423,7 +32423,7 @@ const getColumns$8 = ({
|
|
|
32423
32423
|
}
|
|
32424
32424
|
}, {
|
|
32425
32425
|
dataIndex: 'territory',
|
|
32426
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
32426
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
32427
32427
|
ellipsis: true,
|
|
32428
32428
|
show: true,
|
|
32429
32429
|
render: (v, all) => {
|
|
@@ -32663,7 +32663,7 @@ const getColumns$7 = ({
|
|
|
32663
32663
|
}
|
|
32664
32664
|
}, {
|
|
32665
32665
|
dataIndex: 'province',
|
|
32666
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
32666
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
32667
32667
|
ellipsis: true,
|
|
32668
32668
|
show: true,
|
|
32669
32669
|
render: (v, all) => {
|
|
@@ -32680,7 +32680,7 @@ const getColumns$7 = ({
|
|
|
32680
32680
|
}
|
|
32681
32681
|
}, {
|
|
32682
32682
|
dataIndex: 'territory',
|
|
32683
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
32683
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
32684
32684
|
ellipsis: true,
|
|
32685
32685
|
show: true,
|
|
32686
32686
|
render: (v, all) => {
|
|
@@ -32870,7 +32870,7 @@ const getFiltersConfig$3 = ({
|
|
|
32870
32870
|
getLabel: option => option.label,
|
|
32871
32871
|
getValue: option => option.value
|
|
32872
32872
|
},
|
|
32873
|
-
|
|
32873
|
+
category: {
|
|
32874
32874
|
type: 'select',
|
|
32875
32875
|
label: 'Type',
|
|
32876
32876
|
placeholder: () => `${t('Filter by')} ${t('Type').toLowerCase()}`,
|
|
@@ -32924,13 +32924,14 @@ const getFilterOptions$3 = (options, t) => {
|
|
|
32924
32924
|
administrativeLevel1,
|
|
32925
32925
|
administrativeLevel2,
|
|
32926
32926
|
mineralOptions,
|
|
32927
|
+
productionSiteCategories,
|
|
32927
32928
|
locationCategories = []
|
|
32928
32929
|
} = options || {};
|
|
32929
32930
|
const _default = {
|
|
32930
|
-
category: stakeholderCategoryOptions || categoryOptions,
|
|
32931
|
+
// category: stakeholderCategoryOptions || categoryOptions,
|
|
32931
32932
|
country: countries,
|
|
32932
32933
|
product: mineralOptions,
|
|
32933
|
-
|
|
32934
|
+
category: productionSiteCategories || locationCategories,
|
|
32934
32935
|
administrativeLevel1,
|
|
32935
32936
|
administrativeLevel2,
|
|
32936
32937
|
subCategory: subCategoriesOptions,
|
|
@@ -33040,7 +33041,7 @@ const getColumns$6 = ({
|
|
|
33040
33041
|
}
|
|
33041
33042
|
}, {
|
|
33042
33043
|
dataIndex: 'region',
|
|
33043
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
33044
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
33044
33045
|
ellipsis: true,
|
|
33045
33046
|
show: true,
|
|
33046
33047
|
render: (v, all) => {
|
|
@@ -33057,7 +33058,7 @@ const getColumns$6 = ({
|
|
|
33057
33058
|
}
|
|
33058
33059
|
}, {
|
|
33059
33060
|
dataIndex: 'territory',
|
|
33060
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
33061
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
33061
33062
|
ellipsis: true,
|
|
33062
33063
|
show: true,
|
|
33063
33064
|
render: (v, all) => {
|
package/package.json
CHANGED
|
@@ -128,13 +128,13 @@ function AuthForm ({
|
|
|
128
128
|
case "input":
|
|
129
129
|
case "email":
|
|
130
130
|
case "number":
|
|
131
|
-
inputNode = <Input type={field.type} placeholder={field.placeholder} {...field.props} />;
|
|
131
|
+
inputNode = <Input type={field.type} placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
|
|
132
132
|
break;
|
|
133
133
|
case "password":
|
|
134
|
-
inputNode = <Input.Password placeholder={field.placeholder} {...field.props} />;
|
|
134
|
+
inputNode = <Input.Password placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
|
|
135
135
|
break;
|
|
136
136
|
case "textarea":
|
|
137
|
-
inputNode = <Input.TextArea placeholder={field.placeholder} {...field.props} />;
|
|
137
|
+
inputNode = <Input.TextArea placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
|
|
138
138
|
break;
|
|
139
139
|
case "select": {
|
|
140
140
|
const { onChange: fieldOnChange, value: fieldValue, ...restSelectProps } = field.props || {};
|
|
@@ -142,6 +142,7 @@ function AuthForm ({
|
|
|
142
142
|
inputNode = (
|
|
143
143
|
<StyledSelect
|
|
144
144
|
placeholder={field.placeholder}
|
|
145
|
+
disabled={field.disabled}
|
|
145
146
|
{...restSelectProps}
|
|
146
147
|
>
|
|
147
148
|
{field.options?.map((opt) => (
|
|
@@ -157,7 +158,7 @@ function AuthForm ({
|
|
|
157
158
|
inputNode = field.component;
|
|
158
159
|
break;
|
|
159
160
|
default:
|
|
160
|
-
inputNode = <Input placeholder={field.placeholder} {...field.props} />;
|
|
161
|
+
inputNode = <Input placeholder={field.placeholder} disabled={field.disabled} {...field.props} />;
|
|
161
162
|
}
|
|
162
163
|
|
|
163
164
|
const formItemProps = {
|
|
@@ -72,7 +72,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
dataIndex: 'province',
|
|
75
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
75
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
76
76
|
ellipsis: true,
|
|
77
77
|
show: true,
|
|
78
78
|
render: (v, all) => {
|
|
@@ -87,7 +87,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
dataIndex: 'territory',
|
|
90
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
90
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
91
91
|
ellipsis: true,
|
|
92
92
|
show: true,
|
|
93
93
|
render: (v, all) => {
|
|
@@ -72,7 +72,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
dataIndex: 'province',
|
|
75
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
75
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
76
76
|
ellipsis: true,
|
|
77
77
|
show: true,
|
|
78
78
|
render: (v, all) => {
|
|
@@ -87,7 +87,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
87
87
|
},
|
|
88
88
|
{
|
|
89
89
|
dataIndex: 'territory',
|
|
90
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
90
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
91
91
|
ellipsis: true,
|
|
92
92
|
show: true,
|
|
93
93
|
render: (v, all) => {
|
|
@@ -42,7 +42,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
dataIndex: 'region',
|
|
45
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
45
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
46
46
|
ellipsis: true,
|
|
47
47
|
show: true,
|
|
48
48
|
render: (v, all) => {
|
|
@@ -57,7 +57,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
57
57
|
},
|
|
58
58
|
{
|
|
59
59
|
dataIndex: 'territory',
|
|
60
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
60
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
61
61
|
ellipsis: true,
|
|
62
62
|
show: true,
|
|
63
63
|
render: (v, all) => {
|
|
@@ -81,7 +81,7 @@ export const getFiltersConfig = ({t}) => {
|
|
|
81
81
|
getLabel: (option) => option.label,
|
|
82
82
|
getValue: (option) => option.value,
|
|
83
83
|
},
|
|
84
|
-
|
|
84
|
+
category: {
|
|
85
85
|
type: 'select',
|
|
86
86
|
label: 'Type',
|
|
87
87
|
placeholder: () => `${t('Filter by')} ${t('Type').toLowerCase()}`,
|
|
@@ -124,14 +124,15 @@ export const getFilterOptions = (options, t) => {
|
|
|
124
124
|
administrativeLevel1,
|
|
125
125
|
administrativeLevel2,
|
|
126
126
|
mineralOptions,
|
|
127
|
+
productionSiteCategories,
|
|
127
128
|
locationCategories = [],
|
|
128
129
|
} = options || {};
|
|
129
130
|
|
|
130
131
|
const _default = {
|
|
131
|
-
category: stakeholderCategoryOptions || categoryOptions,
|
|
132
|
+
// category: stakeholderCategoryOptions || categoryOptions,
|
|
132
133
|
country: countries,
|
|
133
134
|
product: mineralOptions,
|
|
134
|
-
|
|
135
|
+
category: productionSiteCategories || locationCategories,
|
|
135
136
|
administrativeLevel1,
|
|
136
137
|
administrativeLevel2,
|
|
137
138
|
subCategory: subCategoriesOptions,
|
|
@@ -67,7 +67,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
67
67
|
},
|
|
68
68
|
{
|
|
69
69
|
dataIndex: 'province',
|
|
70
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
70
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
71
71
|
ellipsis: true,
|
|
72
72
|
show: true,
|
|
73
73
|
render: (v, all) => {
|
|
@@ -82,7 +82,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
82
82
|
},
|
|
83
83
|
{
|
|
84
84
|
dataIndex: 'territory',
|
|
85
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
85
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
86
86
|
ellipsis: true,
|
|
87
87
|
show: true,
|
|
88
88
|
render: (v, all) => {
|
|
@@ -73,7 +73,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
73
73
|
},
|
|
74
74
|
{
|
|
75
75
|
dataIndex: 'province',
|
|
76
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel1)
|
|
76
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
77
77
|
ellipsis: true,
|
|
78
78
|
show: true,
|
|
79
79
|
render: (v, all) => {
|
|
@@ -88,7 +88,7 @@ export const getColumns = ({t, goTo, user, options, activeTab, getRedirectLink,
|
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
dataIndex: 'territory',
|
|
91
|
-
title: findOptions(user?.company?.country, options?.administrativeLevel2)
|
|
91
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
92
92
|
ellipsis: true,
|
|
93
93
|
show: true,
|
|
94
94
|
render: (v, all) => {
|