datastake-daf 0.6.815 → 0.6.817
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 +418 -382
- package/dist/pages/index.js +478 -83
- package/dist/services/index.js +202 -0
- package/package.json +1 -1
- package/src/@daf/pages/Locations/ConflictAreas/columns.js +140 -0
- package/src/@daf/pages/Locations/ConflictAreas/config.js +41 -0
- package/src/@daf/pages/Locations/MineSite/columns.js +5 -1
- package/src/@daf/pages/Locations/MineSite/config.js +2 -1
- package/src/@daf/pages/Stakeholders/ArmedGroups/columns.js +110 -0
- package/src/@daf/pages/Stakeholders/ArmedGroups/config.js +41 -0
- package/src/@daf/pages/Stakeholders/Operators/columns.js +14 -2
- package/src/@daf/pages/Stakeholders/Workers/columns.js +7 -1
- package/src/@daf/pages/TablePage/config.js +1 -1
- package/src/@daf/pages/TablePage/helper.js +30 -0
- package/src/@daf/services/EventsService.js +115 -0
- package/src/@daf/services/LinkedSubjects.js +1 -0
- package/src/@daf/services/WorkersService.js +80 -0
- package/src/services.js +3 -1
package/dist/pages/index.js
CHANGED
|
@@ -14176,7 +14176,7 @@ const getTabs = t => {
|
|
|
14176
14176
|
label: t("Events")
|
|
14177
14177
|
}];
|
|
14178
14178
|
};
|
|
14179
|
-
const getFiltersConfig$
|
|
14179
|
+
const getFiltersConfig$e = ({
|
|
14180
14180
|
t,
|
|
14181
14181
|
filters,
|
|
14182
14182
|
activeTab,
|
|
@@ -14411,7 +14411,7 @@ function MineSites({
|
|
|
14411
14411
|
config: dataFetchConfig
|
|
14412
14412
|
});
|
|
14413
14413
|
const tabs = React.useMemo(() => getTabs(t), [t]);
|
|
14414
|
-
const filtersConfig = React.useMemo(() => getFiltersConfig$
|
|
14414
|
+
const filtersConfig = React.useMemo(() => getFiltersConfig$e({
|
|
14415
14415
|
t,
|
|
14416
14416
|
filters,
|
|
14417
14417
|
options,
|
|
@@ -16110,7 +16110,7 @@ const NavigationAction = ({
|
|
|
16110
16110
|
});
|
|
16111
16111
|
};
|
|
16112
16112
|
|
|
16113
|
-
const getColumns$
|
|
16113
|
+
const getColumns$j = ({
|
|
16114
16114
|
t,
|
|
16115
16115
|
data,
|
|
16116
16116
|
user,
|
|
@@ -16236,7 +16236,7 @@ function OrganisationInformation({
|
|
|
16236
16236
|
});
|
|
16237
16237
|
}, [organisationInfo, data]);
|
|
16238
16238
|
const columns = React.useMemo(() => {
|
|
16239
|
-
return getColumns$
|
|
16239
|
+
return getColumns$j({
|
|
16240
16240
|
t,
|
|
16241
16241
|
data: tableData,
|
|
16242
16242
|
user,
|
|
@@ -16367,7 +16367,7 @@ const Style$8 = styled__default["default"].div`
|
|
|
16367
16367
|
}
|
|
16368
16368
|
`;
|
|
16369
16369
|
|
|
16370
|
-
const getColumns$
|
|
16370
|
+
const getColumns$i = ({
|
|
16371
16371
|
t = () => {},
|
|
16372
16372
|
options = {},
|
|
16373
16373
|
user = {},
|
|
@@ -16524,7 +16524,7 @@ function ProductionSites({
|
|
|
16524
16524
|
return productionSites?.length > 5 ? ComponentWithFocus : "div";
|
|
16525
16525
|
}, [productionSites]);
|
|
16526
16526
|
const columns = React.useMemo(() => {
|
|
16527
|
-
return getColumns$
|
|
16527
|
+
return getColumns$i({
|
|
16528
16528
|
t,
|
|
16529
16529
|
options,
|
|
16530
16530
|
user,
|
|
@@ -16758,7 +16758,7 @@ const getAdminLevelName = (data, level) => {
|
|
|
16758
16758
|
return entry?.name || "-";
|
|
16759
16759
|
};
|
|
16760
16760
|
|
|
16761
|
-
const getColumns$
|
|
16761
|
+
const getColumns$h = ({
|
|
16762
16762
|
t,
|
|
16763
16763
|
activeTab,
|
|
16764
16764
|
options,
|
|
@@ -17052,7 +17052,7 @@ function AssociatedInformation$1({
|
|
|
17052
17052
|
console.log({
|
|
17053
17053
|
data
|
|
17054
17054
|
});
|
|
17055
|
-
const columns = React.useMemo(() => getColumns$
|
|
17055
|
+
const columns = React.useMemo(() => getColumns$h({
|
|
17056
17056
|
t,
|
|
17057
17057
|
isMonitoring: false,
|
|
17058
17058
|
activeTab,
|
|
@@ -17436,7 +17436,7 @@ const getPartnershipTypes = t => {
|
|
|
17436
17436
|
}];
|
|
17437
17437
|
};
|
|
17438
17438
|
|
|
17439
|
-
const getColumns$
|
|
17439
|
+
const getColumns$g = ({
|
|
17440
17440
|
t,
|
|
17441
17441
|
accept,
|
|
17442
17442
|
decline,
|
|
@@ -40822,7 +40822,7 @@ const PartnersTable = ({
|
|
|
40822
40822
|
setTotalRequests,
|
|
40823
40823
|
t
|
|
40824
40824
|
});
|
|
40825
|
-
const columns = React.useMemo(() => getColumns$
|
|
40825
|
+
const columns = React.useMemo(() => getColumns$g({
|
|
40826
40826
|
t,
|
|
40827
40827
|
accept,
|
|
40828
40828
|
decline,
|
|
@@ -41059,7 +41059,7 @@ const Create = ({
|
|
|
41059
41059
|
});
|
|
41060
41060
|
};
|
|
41061
41061
|
|
|
41062
|
-
const getFiltersConfig$
|
|
41062
|
+
const getFiltersConfig$d = ({
|
|
41063
41063
|
t
|
|
41064
41064
|
}) => {
|
|
41065
41065
|
return {
|
|
@@ -41090,7 +41090,7 @@ const getFiltersConfig$b = ({
|
|
|
41090
41090
|
}
|
|
41091
41091
|
};
|
|
41092
41092
|
};
|
|
41093
|
-
const getFilterOptions$
|
|
41093
|
+
const getFilterOptions$d = (options, t) => {
|
|
41094
41094
|
const {
|
|
41095
41095
|
countries,
|
|
41096
41096
|
category,
|
|
@@ -41101,13 +41101,13 @@ const getFilterOptions$b = (options, t) => {
|
|
|
41101
41101
|
category: categoriesOptions || category || []
|
|
41102
41102
|
};
|
|
41103
41103
|
};
|
|
41104
|
-
const formConfig$
|
|
41104
|
+
const formConfig$b = {
|
|
41105
41105
|
namespace: 'stakeholders',
|
|
41106
41106
|
view: 'scoping',
|
|
41107
41107
|
scope: 'create',
|
|
41108
41108
|
formType: 'stakeholder'
|
|
41109
41109
|
};
|
|
41110
|
-
const viewConfig$
|
|
41110
|
+
const viewConfig$b = {
|
|
41111
41111
|
title: "Stakeholders",
|
|
41112
41112
|
createTitle: "Create Stakeholder"
|
|
41113
41113
|
};
|
|
@@ -41194,7 +41194,7 @@ function sourceAvatarConfig(items, user, applications) {
|
|
|
41194
41194
|
});
|
|
41195
41195
|
}
|
|
41196
41196
|
|
|
41197
|
-
const getColumns$
|
|
41197
|
+
const getColumns$f = ({
|
|
41198
41198
|
t,
|
|
41199
41199
|
goTo,
|
|
41200
41200
|
user,
|
|
@@ -41350,7 +41350,7 @@ const getColumns$d = ({
|
|
|
41350
41350
|
}
|
|
41351
41351
|
}].filter(column => column.show !== false);
|
|
41352
41352
|
|
|
41353
|
-
const getFiltersConfig$
|
|
41353
|
+
const getFiltersConfig$c = ({
|
|
41354
41354
|
t
|
|
41355
41355
|
}) => {
|
|
41356
41356
|
return {
|
|
@@ -41518,7 +41518,7 @@ const getFiltersConfig$a = ({
|
|
|
41518
41518
|
}
|
|
41519
41519
|
};
|
|
41520
41520
|
};
|
|
41521
|
-
const getFilterOptions$
|
|
41521
|
+
const getFilterOptions$c = (options, t) => {
|
|
41522
41522
|
const {
|
|
41523
41523
|
statusOptions,
|
|
41524
41524
|
categoryOptions,
|
|
@@ -41540,13 +41540,13 @@ const getFilterOptions$a = (options, t) => {
|
|
|
41540
41540
|
};
|
|
41541
41541
|
return _default;
|
|
41542
41542
|
};
|
|
41543
|
-
const formConfig$
|
|
41543
|
+
const formConfig$a = {
|
|
41544
41544
|
namespace: 'OPERATOR',
|
|
41545
41545
|
view: ['scoping', 'new'],
|
|
41546
41546
|
scope: 'global',
|
|
41547
41547
|
formType: 'operator'
|
|
41548
41548
|
};
|
|
41549
|
-
const viewConfig$
|
|
41549
|
+
const viewConfig$a = {
|
|
41550
41550
|
title: "Operators",
|
|
41551
41551
|
createTitle: "Create Operator"
|
|
41552
41552
|
};
|
|
@@ -41587,7 +41587,7 @@ const renderStatusTag = ({
|
|
|
41587
41587
|
}
|
|
41588
41588
|
};
|
|
41589
41589
|
|
|
41590
|
-
const getColumns$
|
|
41590
|
+
const getColumns$e = ({
|
|
41591
41591
|
t,
|
|
41592
41592
|
goTo,
|
|
41593
41593
|
user,
|
|
@@ -41645,7 +41645,8 @@ const getColumns$c = ({
|
|
|
41645
41645
|
className: "daf-default-cell"
|
|
41646
41646
|
});
|
|
41647
41647
|
}
|
|
41648
|
-
const
|
|
41648
|
+
const positionSupplyChainOptions = [...(data?.options?.positionSupplyChainOptions || []), ...(options?.positionSupplyChainOptions || []), ...(options?.optionPositionSupplyChain || [])];
|
|
41649
|
+
const country = findOptions(v, positionSupplyChainOptions);
|
|
41649
41650
|
return country ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
41650
41651
|
title: country,
|
|
41651
41652
|
children: country
|
|
@@ -41664,7 +41665,8 @@ const getColumns$c = ({
|
|
|
41664
41665
|
className: "daf-default-cell"
|
|
41665
41666
|
});
|
|
41666
41667
|
}
|
|
41667
|
-
const
|
|
41668
|
+
const subCategoriesOptions = [...(data?.options?.subCategoriesOptions || []), ...(options?.subCategoriesOptions || []), ...(options?.subCategory || [])];
|
|
41669
|
+
const subCategory = findOptions(v, subCategoriesOptions);
|
|
41668
41670
|
return subCategory ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
41669
41671
|
title: subCategory,
|
|
41670
41672
|
children: subCategory
|
|
@@ -41797,7 +41799,7 @@ const getColumns$c = ({
|
|
|
41797
41799
|
}
|
|
41798
41800
|
}].filter(column => column.show !== false);
|
|
41799
41801
|
|
|
41800
|
-
const getFiltersConfig$
|
|
41802
|
+
const getFiltersConfig$b = ({
|
|
41801
41803
|
t
|
|
41802
41804
|
}) => {
|
|
41803
41805
|
return {
|
|
@@ -41938,7 +41940,7 @@ const getFiltersConfig$9 = ({
|
|
|
41938
41940
|
}
|
|
41939
41941
|
};
|
|
41940
41942
|
};
|
|
41941
|
-
const getFilterOptions$
|
|
41943
|
+
const getFilterOptions$b = (options, t) => {
|
|
41942
41944
|
const {
|
|
41943
41945
|
statusOptions,
|
|
41944
41946
|
categoryOptions,
|
|
@@ -41965,18 +41967,18 @@ const getFilterOptions$9 = (options, t) => {
|
|
|
41965
41967
|
};
|
|
41966
41968
|
return _default;
|
|
41967
41969
|
};
|
|
41968
|
-
const formConfig$
|
|
41970
|
+
const formConfig$9 = {
|
|
41969
41971
|
namespace: 'WORKERS',
|
|
41970
41972
|
view: ['scoping', 'new'],
|
|
41971
41973
|
scope: 'global',
|
|
41972
41974
|
formType: 'worker'
|
|
41973
41975
|
};
|
|
41974
|
-
const viewConfig$
|
|
41976
|
+
const viewConfig$9 = {
|
|
41975
41977
|
title: "Workers",
|
|
41976
41978
|
createTitle: "Create Worker"
|
|
41977
41979
|
};
|
|
41978
41980
|
|
|
41979
|
-
const getColumns$
|
|
41981
|
+
const getColumns$d = ({
|
|
41980
41982
|
t,
|
|
41981
41983
|
goTo,
|
|
41982
41984
|
user,
|
|
@@ -42055,7 +42057,8 @@ const getColumns$b = ({
|
|
|
42055
42057
|
className: "daf-default-cell"
|
|
42056
42058
|
});
|
|
42057
42059
|
}
|
|
42058
|
-
const
|
|
42060
|
+
const activityAtSiteOptions = [...(data?.options?.activityAtSiteOptions || []), ...(options?.activityAtSiteOptions || []), ...(options?.activityAtSite || [])];
|
|
42061
|
+
const activity = findOptions(v, activityAtSiteOptions);
|
|
42059
42062
|
return activity ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
42060
42063
|
title: activity,
|
|
42061
42064
|
children: activity
|
|
@@ -42155,7 +42158,175 @@ const getColumns$b = ({
|
|
|
42155
42158
|
}
|
|
42156
42159
|
}].filter(column => column.show !== false);
|
|
42157
42160
|
|
|
42158
|
-
const getFiltersConfig$
|
|
42161
|
+
const getFiltersConfig$a = ({
|
|
42162
|
+
t
|
|
42163
|
+
}) => {
|
|
42164
|
+
return {
|
|
42165
|
+
status: {
|
|
42166
|
+
type: "select",
|
|
42167
|
+
label: "Status",
|
|
42168
|
+
placeholder: () => `${t("Filter by")} ${t("Status").toLowerCase()}`,
|
|
42169
|
+
style: {
|
|
42170
|
+
flex: 1
|
|
42171
|
+
},
|
|
42172
|
+
labelStyle: {
|
|
42173
|
+
fley: 1
|
|
42174
|
+
},
|
|
42175
|
+
getLabel: option => option.label,
|
|
42176
|
+
getValue: option => option.value
|
|
42177
|
+
},
|
|
42178
|
+
timeframe: {
|
|
42179
|
+
type: "timeframe",
|
|
42180
|
+
label: "Timeframe",
|
|
42181
|
+
style: {
|
|
42182
|
+
flex: 1
|
|
42183
|
+
}
|
|
42184
|
+
}
|
|
42185
|
+
};
|
|
42186
|
+
};
|
|
42187
|
+
const getFilterOptions$a = (options, t) => {
|
|
42188
|
+
const _default = {
|
|
42189
|
+
status: getStatusOptions(t) || [],
|
|
42190
|
+
timeframe: []
|
|
42191
|
+
};
|
|
42192
|
+
return _default;
|
|
42193
|
+
};
|
|
42194
|
+
const formConfig$8 = {
|
|
42195
|
+
namespace: 'armed-groups',
|
|
42196
|
+
view: ['scoping', 'new'],
|
|
42197
|
+
scope: 'global',
|
|
42198
|
+
formType: 'armed-group'
|
|
42199
|
+
};
|
|
42200
|
+
const viewConfig$8 = {
|
|
42201
|
+
title: "Armed Groups",
|
|
42202
|
+
createTitle: "New Armed Group"
|
|
42203
|
+
};
|
|
42204
|
+
|
|
42205
|
+
const getColumns$c = ({
|
|
42206
|
+
t,
|
|
42207
|
+
goTo,
|
|
42208
|
+
user,
|
|
42209
|
+
options,
|
|
42210
|
+
activeTab,
|
|
42211
|
+
getRedirectLink,
|
|
42212
|
+
theme,
|
|
42213
|
+
subject,
|
|
42214
|
+
data,
|
|
42215
|
+
applications
|
|
42216
|
+
}) => [{
|
|
42217
|
+
dataIndex: 'datastakeId',
|
|
42218
|
+
title: t('ID'),
|
|
42219
|
+
ellipsis: true,
|
|
42220
|
+
show: true,
|
|
42221
|
+
key: "datastakeId",
|
|
42222
|
+
sorter: () => 0 + 0,
|
|
42223
|
+
render: (v, all) => {
|
|
42224
|
+
if (all.empty) {
|
|
42225
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42226
|
+
className: "daf-default-cell"
|
|
42227
|
+
});
|
|
42228
|
+
}
|
|
42229
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
42230
|
+
title: v,
|
|
42231
|
+
children: v
|
|
42232
|
+
});
|
|
42233
|
+
}
|
|
42234
|
+
}, {
|
|
42235
|
+
dataIndex: 'name',
|
|
42236
|
+
title: t('Name'),
|
|
42237
|
+
ellipsis: true,
|
|
42238
|
+
show: true,
|
|
42239
|
+
key: "name",
|
|
42240
|
+
sorter: () => 0 + 0,
|
|
42241
|
+
render: (v, all) => {
|
|
42242
|
+
if (all.empty) {
|
|
42243
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42244
|
+
className: "daf-default-cell"
|
|
42245
|
+
});
|
|
42246
|
+
}
|
|
42247
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
42248
|
+
title: v,
|
|
42249
|
+
children: v
|
|
42250
|
+
});
|
|
42251
|
+
}
|
|
42252
|
+
}, {
|
|
42253
|
+
title: t("Last Update"),
|
|
42254
|
+
dataIndex: "updatedAt",
|
|
42255
|
+
key: "updatedAt",
|
|
42256
|
+
render: (date, all) => {
|
|
42257
|
+
if (all.empty) {
|
|
42258
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42259
|
+
className: "daf-default-cell"
|
|
42260
|
+
});
|
|
42261
|
+
}
|
|
42262
|
+
const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
|
|
42263
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
42264
|
+
title: _date,
|
|
42265
|
+
children: _date
|
|
42266
|
+
});
|
|
42267
|
+
},
|
|
42268
|
+
ellipsis: true
|
|
42269
|
+
}, {
|
|
42270
|
+
title: t("Sources"),
|
|
42271
|
+
dataIndex: "sources",
|
|
42272
|
+
key: "sources",
|
|
42273
|
+
show: activeTab !== "own",
|
|
42274
|
+
render: (val, all) => {
|
|
42275
|
+
if (all.empty) {
|
|
42276
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42277
|
+
className: "daf-default-cell"
|
|
42278
|
+
});
|
|
42279
|
+
}
|
|
42280
|
+
if (!val || val?.length === 0) {
|
|
42281
|
+
return "-";
|
|
42282
|
+
}
|
|
42283
|
+
const sources = sourceAvatarConfig(val, user, applications);
|
|
42284
|
+
return /*#__PURE__*/jsxRuntime.jsx(AvatarGroup, {
|
|
42285
|
+
items: sources
|
|
42286
|
+
});
|
|
42287
|
+
}
|
|
42288
|
+
}, {
|
|
42289
|
+
title: t("Status"),
|
|
42290
|
+
dataIndex: 'status',
|
|
42291
|
+
ellipsis: true,
|
|
42292
|
+
show: activeTab == "own",
|
|
42293
|
+
render: (v, all) => {
|
|
42294
|
+
if (all.empty) {
|
|
42295
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42296
|
+
className: "daf-default-cell"
|
|
42297
|
+
});
|
|
42298
|
+
}
|
|
42299
|
+
const _val = all?.published || all?.status === "submitted" ? "submitted" : v;
|
|
42300
|
+
return renderStatusTag({
|
|
42301
|
+
value: _val,
|
|
42302
|
+
t
|
|
42303
|
+
});
|
|
42304
|
+
}
|
|
42305
|
+
}, {
|
|
42306
|
+
id: 'actions',
|
|
42307
|
+
title: "",
|
|
42308
|
+
width: 60,
|
|
42309
|
+
render: (_, all) => {
|
|
42310
|
+
if (all.empty) {
|
|
42311
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
42312
|
+
className: "daf-default-cell"
|
|
42313
|
+
});
|
|
42314
|
+
}
|
|
42315
|
+
const onClick = () => {
|
|
42316
|
+
let link = `/app/view/${subject}/${all.datastakeId}`;
|
|
42317
|
+
if (activeTab === "shared") {
|
|
42318
|
+
link += `?sourceId=${all?.authorId?.id}`;
|
|
42319
|
+
}
|
|
42320
|
+
goTo(getRedirectLink(link));
|
|
42321
|
+
};
|
|
42322
|
+
return /*#__PURE__*/jsxRuntime.jsx(NavigationAction, {
|
|
42323
|
+
onClick: onClick,
|
|
42324
|
+
theme: theme
|
|
42325
|
+
});
|
|
42326
|
+
}
|
|
42327
|
+
}].filter(column => column.show !== false);
|
|
42328
|
+
|
|
42329
|
+
const getFiltersConfig$9 = ({
|
|
42159
42330
|
t
|
|
42160
42331
|
}) => {
|
|
42161
42332
|
return {
|
|
@@ -42307,7 +42478,7 @@ const getFiltersConfig$8 = ({
|
|
|
42307
42478
|
}
|
|
42308
42479
|
};
|
|
42309
42480
|
};
|
|
42310
|
-
const getFilterOptions$
|
|
42481
|
+
const getFilterOptions$9 = (options, t) => {
|
|
42311
42482
|
const {
|
|
42312
42483
|
timeframe = [],
|
|
42313
42484
|
status,
|
|
@@ -42333,13 +42504,13 @@ const getFilterOptions$8 = (options, t) => {
|
|
|
42333
42504
|
}]
|
|
42334
42505
|
};
|
|
42335
42506
|
};
|
|
42336
|
-
const formConfig$
|
|
42507
|
+
const formConfig$7 = {
|
|
42337
42508
|
namespace: 'event',
|
|
42338
42509
|
view: 'scoping',
|
|
42339
42510
|
scope: 'create',
|
|
42340
42511
|
formType: 'event'
|
|
42341
42512
|
};
|
|
42342
|
-
const viewConfig$
|
|
42513
|
+
const viewConfig$7 = {
|
|
42343
42514
|
title: "Events",
|
|
42344
42515
|
createTitle: "Create Event"
|
|
42345
42516
|
};
|
|
@@ -42466,7 +42637,7 @@ MoreTags.propTypes = {
|
|
|
42466
42637
|
limit: PropTypes__default["default"].number
|
|
42467
42638
|
};
|
|
42468
42639
|
|
|
42469
|
-
const getColumns$
|
|
42640
|
+
const getColumns$b = ({
|
|
42470
42641
|
t,
|
|
42471
42642
|
goTo,
|
|
42472
42643
|
user,
|
|
@@ -42701,7 +42872,7 @@ const getColumns$a = ({
|
|
|
42701
42872
|
}
|
|
42702
42873
|
}].filter(column => column.show !== false);
|
|
42703
42874
|
|
|
42704
|
-
const getFiltersConfig$
|
|
42875
|
+
const getFiltersConfig$8 = ({
|
|
42705
42876
|
t
|
|
42706
42877
|
}) => {
|
|
42707
42878
|
return {
|
|
@@ -42873,7 +43044,7 @@ const getFiltersConfig$7 = ({
|
|
|
42873
43044
|
}
|
|
42874
43045
|
};
|
|
42875
43046
|
};
|
|
42876
|
-
const getFilterOptions$
|
|
43047
|
+
const getFilterOptions$8 = (options, t) => {
|
|
42877
43048
|
const {
|
|
42878
43049
|
timeframe = [],
|
|
42879
43050
|
statusOptions,
|
|
@@ -42906,13 +43077,13 @@ const getFilterOptions$7 = (options, t) => {
|
|
|
42906
43077
|
};
|
|
42907
43078
|
return _default;
|
|
42908
43079
|
};
|
|
42909
|
-
const formConfig$
|
|
43080
|
+
const formConfig$6 = {
|
|
42910
43081
|
namespace: 'corrective-actions',
|
|
42911
43082
|
view: 'corrective-actions',
|
|
42912
43083
|
scope: 'createActivity',
|
|
42913
43084
|
formType: 'activity'
|
|
42914
43085
|
};
|
|
42915
|
-
const viewConfig$
|
|
43086
|
+
const viewConfig$6 = {
|
|
42916
43087
|
title: "Activities",
|
|
42917
43088
|
createTitle: "Create Activity"
|
|
42918
43089
|
};
|
|
@@ -42926,7 +43097,7 @@ const getEventCategoryBySubject = (eventCategoryObject, subject, isSingular = fa
|
|
|
42926
43097
|
return eventCategoryObject[key] || null;
|
|
42927
43098
|
};
|
|
42928
43099
|
|
|
42929
|
-
const getColumns$
|
|
43100
|
+
const getColumns$a = ({
|
|
42930
43101
|
t,
|
|
42931
43102
|
goTo,
|
|
42932
43103
|
user,
|
|
@@ -43139,7 +43310,7 @@ const getColumns$9 = ({
|
|
|
43139
43310
|
}
|
|
43140
43311
|
}].filter(column => column.show !== false);
|
|
43141
43312
|
|
|
43142
|
-
const getFiltersConfig$
|
|
43313
|
+
const getFiltersConfig$7 = ({
|
|
43143
43314
|
t
|
|
43144
43315
|
}) => {
|
|
43145
43316
|
return {
|
|
@@ -43310,7 +43481,7 @@ const getFiltersConfig$6 = ({
|
|
|
43310
43481
|
}
|
|
43311
43482
|
};
|
|
43312
43483
|
};
|
|
43313
|
-
const getFilterOptions$
|
|
43484
|
+
const getFilterOptions$7 = (options, t) => {
|
|
43314
43485
|
const {
|
|
43315
43486
|
timeframe = [],
|
|
43316
43487
|
statusOptions,
|
|
@@ -43343,18 +43514,18 @@ const getFilterOptions$6 = (options, t) => {
|
|
|
43343
43514
|
};
|
|
43344
43515
|
return _default;
|
|
43345
43516
|
};
|
|
43346
|
-
const formConfig$
|
|
43517
|
+
const formConfig$5 = {
|
|
43347
43518
|
namespace: 'incident',
|
|
43348
43519
|
view: 'incident',
|
|
43349
43520
|
scope: 'createIncident',
|
|
43350
43521
|
formType: 'incident'
|
|
43351
43522
|
};
|
|
43352
|
-
const viewConfig$
|
|
43523
|
+
const viewConfig$5 = {
|
|
43353
43524
|
title: "Incidents",
|
|
43354
43525
|
createTitle: "Create Incident"
|
|
43355
43526
|
};
|
|
43356
43527
|
|
|
43357
|
-
const getColumns$
|
|
43528
|
+
const getColumns$9 = ({
|
|
43358
43529
|
t,
|
|
43359
43530
|
goTo,
|
|
43360
43531
|
user,
|
|
@@ -43567,7 +43738,7 @@ const getColumns$8 = ({
|
|
|
43567
43738
|
}
|
|
43568
43739
|
}].filter(column => column.show !== false);
|
|
43569
43740
|
|
|
43570
|
-
const getFiltersConfig$
|
|
43741
|
+
const getFiltersConfig$6 = ({
|
|
43571
43742
|
t
|
|
43572
43743
|
}) => {
|
|
43573
43744
|
return {
|
|
@@ -43739,7 +43910,7 @@ const getFiltersConfig$5 = ({
|
|
|
43739
43910
|
}
|
|
43740
43911
|
};
|
|
43741
43912
|
};
|
|
43742
|
-
const getFilterOptions$
|
|
43913
|
+
const getFilterOptions$6 = (options, t) => {
|
|
43743
43914
|
const {
|
|
43744
43915
|
timeframe = [],
|
|
43745
43916
|
statusOptions,
|
|
@@ -43772,18 +43943,18 @@ const getFilterOptions$5 = (options, t) => {
|
|
|
43772
43943
|
};
|
|
43773
43944
|
return _default;
|
|
43774
43945
|
};
|
|
43775
|
-
const formConfig$
|
|
43946
|
+
const formConfig$4 = {
|
|
43776
43947
|
namespace: 'testimonials',
|
|
43777
43948
|
view: 'testimonials',
|
|
43778
43949
|
scope: 'create',
|
|
43779
43950
|
formType: 'testimonial'
|
|
43780
43951
|
};
|
|
43781
|
-
const viewConfig$
|
|
43952
|
+
const viewConfig$4 = {
|
|
43782
43953
|
title: "Testimonials",
|
|
43783
43954
|
createTitle: "New Testimonial"
|
|
43784
43955
|
};
|
|
43785
43956
|
|
|
43786
|
-
const getColumns$
|
|
43957
|
+
const getColumns$8 = ({
|
|
43787
43958
|
t,
|
|
43788
43959
|
goTo,
|
|
43789
43960
|
user,
|
|
@@ -43981,7 +44152,7 @@ const getColumns$7 = ({
|
|
|
43981
44152
|
}
|
|
43982
44153
|
}].filter(column => column.show !== false);
|
|
43983
44154
|
|
|
43984
|
-
const getFiltersConfig$
|
|
44155
|
+
const getFiltersConfig$5 = ({
|
|
43985
44156
|
t
|
|
43986
44157
|
}) => {
|
|
43987
44158
|
return {
|
|
@@ -44012,7 +44183,7 @@ const getFiltersConfig$4 = ({
|
|
|
44012
44183
|
}
|
|
44013
44184
|
};
|
|
44014
44185
|
};
|
|
44015
|
-
const getFilterOptions$
|
|
44186
|
+
const getFilterOptions$5 = (options, t) => {
|
|
44016
44187
|
const {
|
|
44017
44188
|
countries,
|
|
44018
44189
|
category,
|
|
@@ -44023,18 +44194,18 @@ const getFilterOptions$4 = (options, t) => {
|
|
|
44023
44194
|
category: locationCategories || category || []
|
|
44024
44195
|
};
|
|
44025
44196
|
};
|
|
44026
|
-
const formConfig$
|
|
44197
|
+
const formConfig$3 = {
|
|
44027
44198
|
namespace: 'locations',
|
|
44028
44199
|
view: 'scoping',
|
|
44029
44200
|
scope: 'create',
|
|
44030
44201
|
formType: 'location'
|
|
44031
44202
|
};
|
|
44032
|
-
const viewConfig$
|
|
44203
|
+
const viewConfig$3 = {
|
|
44033
44204
|
title: "Locations",
|
|
44034
44205
|
createTitle: "Create Location"
|
|
44035
44206
|
};
|
|
44036
44207
|
|
|
44037
|
-
const getColumns$
|
|
44208
|
+
const getColumns$7 = ({
|
|
44038
44209
|
t,
|
|
44039
44210
|
goTo,
|
|
44040
44211
|
user,
|
|
@@ -44207,8 +44378,9 @@ const getColumns$6 = ({
|
|
|
44207
44378
|
}
|
|
44208
44379
|
}].filter(column => column.show !== false);
|
|
44209
44380
|
|
|
44210
|
-
const getFiltersConfig$
|
|
44211
|
-
t
|
|
44381
|
+
const getFiltersConfig$4 = ({
|
|
44382
|
+
t,
|
|
44383
|
+
screen
|
|
44212
44384
|
}) => {
|
|
44213
44385
|
return {
|
|
44214
44386
|
country: {
|
|
@@ -44335,7 +44507,8 @@ const getFiltersConfig$3 = ({
|
|
|
44335
44507
|
flex: 1
|
|
44336
44508
|
},
|
|
44337
44509
|
getLabel: option => option.label,
|
|
44338
|
-
getValue: option => option.value
|
|
44510
|
+
getValue: option => option.value,
|
|
44511
|
+
show: () => screen === 'scl'
|
|
44339
44512
|
},
|
|
44340
44513
|
positionInTheMineralSupplyChain: {
|
|
44341
44514
|
type: 'select',
|
|
@@ -44365,7 +44538,7 @@ const getFiltersConfig$3 = ({
|
|
|
44365
44538
|
}
|
|
44366
44539
|
};
|
|
44367
44540
|
};
|
|
44368
|
-
const getFilterOptions$
|
|
44541
|
+
const getFilterOptions$4 = (options, t) => {
|
|
44369
44542
|
const {
|
|
44370
44543
|
statusOptions = [],
|
|
44371
44544
|
categoryOptions = [],
|
|
@@ -44394,13 +44567,13 @@ const getFilterOptions$3 = (options, t) => {
|
|
|
44394
44567
|
};
|
|
44395
44568
|
return _default;
|
|
44396
44569
|
};
|
|
44397
|
-
const formConfig$
|
|
44570
|
+
const formConfig$2 = {
|
|
44398
44571
|
namespace: 'PRODUCTION SITES',
|
|
44399
44572
|
view: ['scoping', 'new'],
|
|
44400
44573
|
scope: 'global',
|
|
44401
44574
|
formType: 'production-sites'
|
|
44402
44575
|
};
|
|
44403
|
-
const viewConfig$
|
|
44576
|
+
const viewConfig$2 = {
|
|
44404
44577
|
title: "Production Sites",
|
|
44405
44578
|
createTitle: "Create Production Site"
|
|
44406
44579
|
};
|
|
@@ -44451,7 +44624,7 @@ MoreOptions.propTypes = {
|
|
|
44451
44624
|
limit: PropTypes__default["default"].number
|
|
44452
44625
|
};
|
|
44453
44626
|
|
|
44454
|
-
const getColumns$
|
|
44627
|
+
const getColumns$6 = ({
|
|
44455
44628
|
t,
|
|
44456
44629
|
goTo,
|
|
44457
44630
|
user,
|
|
@@ -44510,7 +44683,7 @@ const getColumns$5 = ({
|
|
|
44510
44683
|
className: "daf-default-cell"
|
|
44511
44684
|
});
|
|
44512
44685
|
}
|
|
44513
|
-
const locationCategories = [...(data?.options?.locationCategories || []), ...(options?.productionSiteCategories || [])];
|
|
44686
|
+
const locationCategories = [...(data?.options?.locationCategories || []), ...(options?.productionSiteCategories || []), ...(options?.locationCategories || [])];
|
|
44514
44687
|
const category = findOptions(v, locationCategories);
|
|
44515
44688
|
return category ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
44516
44689
|
title: category,
|
|
@@ -44681,6 +44854,208 @@ const getColumns$5 = ({
|
|
|
44681
44854
|
}
|
|
44682
44855
|
}].filter(column => column.show !== false);
|
|
44683
44856
|
|
|
44857
|
+
const getFiltersConfig$3 = ({
|
|
44858
|
+
t
|
|
44859
|
+
}) => {
|
|
44860
|
+
return {
|
|
44861
|
+
status: {
|
|
44862
|
+
type: "select",
|
|
44863
|
+
label: "Status",
|
|
44864
|
+
placeholder: () => `${t("Filter by")} ${t("Status").toLowerCase()}`,
|
|
44865
|
+
style: {
|
|
44866
|
+
flex: 1
|
|
44867
|
+
},
|
|
44868
|
+
labelStyle: {
|
|
44869
|
+
fley: 1
|
|
44870
|
+
},
|
|
44871
|
+
getLabel: option => option.label,
|
|
44872
|
+
getValue: option => option.value
|
|
44873
|
+
},
|
|
44874
|
+
timeframe: {
|
|
44875
|
+
type: "timeframe",
|
|
44876
|
+
label: "Timeframe",
|
|
44877
|
+
style: {
|
|
44878
|
+
flex: 1
|
|
44879
|
+
}
|
|
44880
|
+
}
|
|
44881
|
+
};
|
|
44882
|
+
};
|
|
44883
|
+
const getFilterOptions$3 = (options, t) => {
|
|
44884
|
+
const _default = {
|
|
44885
|
+
status: getStatusOptions(t) || [],
|
|
44886
|
+
timeframe: []
|
|
44887
|
+
};
|
|
44888
|
+
return _default;
|
|
44889
|
+
};
|
|
44890
|
+
const formConfig$1 = {
|
|
44891
|
+
namespace: 'conflict-areas',
|
|
44892
|
+
view: ['scoping', 'new'],
|
|
44893
|
+
scope: 'conflictAreaCreate',
|
|
44894
|
+
formType: 'conflict-area'
|
|
44895
|
+
};
|
|
44896
|
+
const viewConfig$1 = {
|
|
44897
|
+
title: "Conflict Areas",
|
|
44898
|
+
createTitle: "New Conflict Area"
|
|
44899
|
+
};
|
|
44900
|
+
|
|
44901
|
+
const getColumns$5 = ({
|
|
44902
|
+
t,
|
|
44903
|
+
goTo,
|
|
44904
|
+
user,
|
|
44905
|
+
options,
|
|
44906
|
+
activeTab,
|
|
44907
|
+
getRedirectLink,
|
|
44908
|
+
theme,
|
|
44909
|
+
subject,
|
|
44910
|
+
data,
|
|
44911
|
+
applications
|
|
44912
|
+
}) => [{
|
|
44913
|
+
dataIndex: 'datastakeId',
|
|
44914
|
+
title: t('ID'),
|
|
44915
|
+
ellipsis: true,
|
|
44916
|
+
show: true,
|
|
44917
|
+
key: "datastakeId",
|
|
44918
|
+
sorter: () => 0 + 0,
|
|
44919
|
+
render: (v, all) => {
|
|
44920
|
+
if (all.empty) {
|
|
44921
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44922
|
+
className: "daf-default-cell"
|
|
44923
|
+
});
|
|
44924
|
+
}
|
|
44925
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
44926
|
+
title: v,
|
|
44927
|
+
children: v
|
|
44928
|
+
});
|
|
44929
|
+
}
|
|
44930
|
+
}, {
|
|
44931
|
+
dataIndex: "name",
|
|
44932
|
+
title: t('Name'),
|
|
44933
|
+
ellipsis: true,
|
|
44934
|
+
show: true,
|
|
44935
|
+
key: "name",
|
|
44936
|
+
sorter: () => 0 + 0,
|
|
44937
|
+
render: (v, all) => {
|
|
44938
|
+
if (all.empty) {
|
|
44939
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44940
|
+
className: "daf-default-cell"
|
|
44941
|
+
});
|
|
44942
|
+
}
|
|
44943
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
44944
|
+
title: v,
|
|
44945
|
+
children: v
|
|
44946
|
+
});
|
|
44947
|
+
}
|
|
44948
|
+
}, {
|
|
44949
|
+
dataIndex: 'region',
|
|
44950
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel1)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel1) : t("Province"),
|
|
44951
|
+
ellipsis: true,
|
|
44952
|
+
show: true,
|
|
44953
|
+
render: (v, all) => {
|
|
44954
|
+
if (all.empty) {
|
|
44955
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44956
|
+
className: "daf-default-cell"
|
|
44957
|
+
});
|
|
44958
|
+
}
|
|
44959
|
+
const region = getLinkValue(all?.administrativeLevel1, all?.linking?.SCL);
|
|
44960
|
+
return region ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
44961
|
+
title: region,
|
|
44962
|
+
children: region
|
|
44963
|
+
}) : '-';
|
|
44964
|
+
}
|
|
44965
|
+
}, {
|
|
44966
|
+
dataIndex: 'territory',
|
|
44967
|
+
title: findOptions(user?.company?.country, options?.administrativeLevel2)?.length > 2 ? findOptions(user?.company?.country, options?.administrativeLevel2) : t("Territory"),
|
|
44968
|
+
ellipsis: true,
|
|
44969
|
+
show: true,
|
|
44970
|
+
render: (v, all) => {
|
|
44971
|
+
if (all.empty) {
|
|
44972
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44973
|
+
className: "daf-default-cell"
|
|
44974
|
+
});
|
|
44975
|
+
}
|
|
44976
|
+
const district = getLinkValue(all?.administrativeLevel2, all?.linking?.SCL);
|
|
44977
|
+
return district ? /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
44978
|
+
title: district,
|
|
44979
|
+
children: district
|
|
44980
|
+
}) : '-';
|
|
44981
|
+
}
|
|
44982
|
+
}, {
|
|
44983
|
+
title: t("Last Update"),
|
|
44984
|
+
dataIndex: "updatedAt",
|
|
44985
|
+
key: "updatedAt",
|
|
44986
|
+
render: (date, all) => {
|
|
44987
|
+
if (all.empty) {
|
|
44988
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
44989
|
+
className: "daf-default-cell"
|
|
44990
|
+
});
|
|
44991
|
+
}
|
|
44992
|
+
const _date = date ? renderDateFormatted(date, "DD MMM YYYY", user?.language || 'en') : "-";
|
|
44993
|
+
return /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
|
|
44994
|
+
title: _date,
|
|
44995
|
+
children: _date
|
|
44996
|
+
});
|
|
44997
|
+
},
|
|
44998
|
+
ellipsis: true
|
|
44999
|
+
}, {
|
|
45000
|
+
title: t("Sources"),
|
|
45001
|
+
dataIndex: "sources",
|
|
45002
|
+
key: "sources",
|
|
45003
|
+
show: activeTab !== "own",
|
|
45004
|
+
render: (val, all) => {
|
|
45005
|
+
if (all.empty) {
|
|
45006
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
45007
|
+
className: "daf-default-cell"
|
|
45008
|
+
});
|
|
45009
|
+
}
|
|
45010
|
+
if (!val || val?.length === 0) {
|
|
45011
|
+
return "-";
|
|
45012
|
+
}
|
|
45013
|
+
const sources = sourceAvatarConfig(val, user, applications);
|
|
45014
|
+
return /*#__PURE__*/jsxRuntime.jsx(AvatarGroup, {
|
|
45015
|
+
items: sources
|
|
45016
|
+
});
|
|
45017
|
+
}
|
|
45018
|
+
}, {
|
|
45019
|
+
title: t("Status"),
|
|
45020
|
+
dataIndex: 'status',
|
|
45021
|
+
ellipsis: true,
|
|
45022
|
+
show: activeTab == "own",
|
|
45023
|
+
render: (v, all) => {
|
|
45024
|
+
if (all.empty) {
|
|
45025
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
45026
|
+
className: "daf-default-cell"
|
|
45027
|
+
});
|
|
45028
|
+
}
|
|
45029
|
+
const _val = all?.published || all?.status === "submitted" ? "submitted" : v;
|
|
45030
|
+
return renderStatusTag({
|
|
45031
|
+
value: _val,
|
|
45032
|
+
t
|
|
45033
|
+
});
|
|
45034
|
+
}
|
|
45035
|
+
}, {
|
|
45036
|
+
id: 'actions',
|
|
45037
|
+
title: "",
|
|
45038
|
+
width: 60,
|
|
45039
|
+
render: (_, all) => {
|
|
45040
|
+
if (all.empty) {
|
|
45041
|
+
return /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
45042
|
+
className: "daf-default-cell"
|
|
45043
|
+
});
|
|
45044
|
+
}
|
|
45045
|
+
const onClick = () => {
|
|
45046
|
+
let link = `/app/view/${subject}/${all.datastakeId}`;
|
|
45047
|
+
if (activeTab === "shared") {
|
|
45048
|
+
link += `?sourceId=${all?.authorId?.id}`;
|
|
45049
|
+
}
|
|
45050
|
+
goTo(getRedirectLink(link));
|
|
45051
|
+
};
|
|
45052
|
+
return /*#__PURE__*/jsxRuntime.jsx(NavigationAction, {
|
|
45053
|
+
onClick: onClick,
|
|
45054
|
+
theme: theme
|
|
45055
|
+
});
|
|
45056
|
+
}
|
|
45057
|
+
}].filter(column => column.show !== false);
|
|
45058
|
+
|
|
44684
45059
|
const getFiltersConfig$2 = ({
|
|
44685
45060
|
t
|
|
44686
45061
|
}) => {
|
|
@@ -44835,20 +45210,27 @@ const getColumns$4 = ({
|
|
|
44835
45210
|
|
|
44836
45211
|
const FILTER_REGISTRY = {
|
|
44837
45212
|
stakeholders: {
|
|
45213
|
+
config: getFiltersConfig$d,
|
|
45214
|
+
options: getFilterOptions$d,
|
|
45215
|
+
formConfig: formConfig$b,
|
|
45216
|
+
viewConfig: viewConfig$b,
|
|
45217
|
+
columns: getColumns$f
|
|
45218
|
+
},
|
|
45219
|
+
workers: {
|
|
44838
45220
|
config: getFiltersConfig$b,
|
|
44839
45221
|
options: getFilterOptions$b,
|
|
44840
45222
|
formConfig: formConfig$9,
|
|
44841
45223
|
viewConfig: viewConfig$9,
|
|
44842
45224
|
columns: getColumns$d
|
|
44843
45225
|
},
|
|
44844
|
-
workers: {
|
|
44845
|
-
config: getFiltersConfig$9,
|
|
44846
|
-
options: getFilterOptions$9,
|
|
44847
|
-
formConfig: formConfig$7,
|
|
44848
|
-
viewConfig: viewConfig$7,
|
|
44849
|
-
columns: getColumns$b
|
|
44850
|
-
},
|
|
44851
45226
|
operators: {
|
|
45227
|
+
config: getFiltersConfig$c,
|
|
45228
|
+
options: getFilterOptions$c,
|
|
45229
|
+
formConfig: formConfig$a,
|
|
45230
|
+
viewConfig: viewConfig$a,
|
|
45231
|
+
columns: getColumns$e
|
|
45232
|
+
},
|
|
45233
|
+
"armed-groups": {
|
|
44852
45234
|
config: getFiltersConfig$a,
|
|
44853
45235
|
options: getFilterOptions$a,
|
|
44854
45236
|
formConfig: formConfig$8,
|
|
@@ -44856,48 +45238,55 @@ const FILTER_REGISTRY = {
|
|
|
44856
45238
|
columns: getColumns$c
|
|
44857
45239
|
},
|
|
44858
45240
|
events: {
|
|
45241
|
+
config: getFiltersConfig$9,
|
|
45242
|
+
options: getFilterOptions$9,
|
|
45243
|
+
formConfig: formConfig$7,
|
|
45244
|
+
viewConfig: viewConfig$7,
|
|
45245
|
+
columns: getColumns$b
|
|
45246
|
+
},
|
|
45247
|
+
activities: {
|
|
44859
45248
|
config: getFiltersConfig$8,
|
|
44860
45249
|
options: getFilterOptions$8,
|
|
44861
45250
|
formConfig: formConfig$6,
|
|
44862
45251
|
viewConfig: viewConfig$6,
|
|
44863
45252
|
columns: getColumns$a
|
|
44864
45253
|
},
|
|
44865
|
-
activities: {
|
|
44866
|
-
config: getFiltersConfig$7,
|
|
44867
|
-
options: getFilterOptions$7,
|
|
44868
|
-
formConfig: formConfig$5,
|
|
44869
|
-
viewConfig: viewConfig$5,
|
|
44870
|
-
columns: getColumns$9
|
|
44871
|
-
},
|
|
44872
45254
|
'corrective-actions': {
|
|
45255
|
+
config: getFiltersConfig$8,
|
|
45256
|
+
options: getFilterOptions$8,
|
|
45257
|
+
formConfig: formConfig$6,
|
|
45258
|
+
viewConfig: viewConfig$6,
|
|
45259
|
+
columns: getColumns$a
|
|
45260
|
+
},
|
|
45261
|
+
incidents: {
|
|
44873
45262
|
config: getFiltersConfig$7,
|
|
44874
45263
|
options: getFilterOptions$7,
|
|
44875
45264
|
formConfig: formConfig$5,
|
|
44876
45265
|
viewConfig: viewConfig$5,
|
|
44877
45266
|
columns: getColumns$9
|
|
44878
45267
|
},
|
|
44879
|
-
|
|
45268
|
+
testimonials: {
|
|
44880
45269
|
config: getFiltersConfig$6,
|
|
44881
45270
|
options: getFilterOptions$6,
|
|
44882
45271
|
formConfig: formConfig$4,
|
|
44883
45272
|
viewConfig: viewConfig$4,
|
|
44884
45273
|
columns: getColumns$8
|
|
44885
45274
|
},
|
|
44886
|
-
|
|
45275
|
+
locations: {
|
|
44887
45276
|
config: getFiltersConfig$5,
|
|
44888
45277
|
options: getFilterOptions$5,
|
|
44889
45278
|
formConfig: formConfig$3,
|
|
44890
45279
|
viewConfig: viewConfig$3,
|
|
44891
45280
|
columns: getColumns$7
|
|
44892
45281
|
},
|
|
44893
|
-
|
|
45282
|
+
'production-sites': {
|
|
44894
45283
|
config: getFiltersConfig$4,
|
|
44895
45284
|
options: getFilterOptions$4,
|
|
44896
45285
|
formConfig: formConfig$2,
|
|
44897
45286
|
viewConfig: viewConfig$2,
|
|
44898
45287
|
columns: getColumns$6
|
|
44899
45288
|
},
|
|
44900
|
-
|
|
45289
|
+
"conflict-areas": {
|
|
44901
45290
|
config: getFiltersConfig$3,
|
|
44902
45291
|
options: getFilterOptions$3,
|
|
44903
45292
|
formConfig: formConfig$1,
|
|
@@ -44905,11 +45294,11 @@ const FILTER_REGISTRY = {
|
|
|
44905
45294
|
columns: getColumns$5
|
|
44906
45295
|
},
|
|
44907
45296
|
scl: {
|
|
44908
|
-
config: getFiltersConfig$
|
|
44909
|
-
options: getFilterOptions$
|
|
45297
|
+
config: getFiltersConfig$4,
|
|
45298
|
+
options: getFilterOptions$4,
|
|
44910
45299
|
formConfig: sclFormConfig,
|
|
44911
45300
|
viewConfig: sclViewConfig,
|
|
44912
|
-
columns: getColumns$
|
|
45301
|
+
columns: getColumns$6
|
|
44913
45302
|
},
|
|
44914
45303
|
documents: {
|
|
44915
45304
|
config: getFiltersConfig$2,
|
|
@@ -44943,7 +45332,8 @@ const getFiltersConfig$1 = ({
|
|
|
44943
45332
|
}) => {
|
|
44944
45333
|
const registry = FILTER_REGISTRY[subject] || FILTER_REGISTRY[DEFAULT_SUBJECT];
|
|
44945
45334
|
return registry?.config({
|
|
44946
|
-
t
|
|
45335
|
+
t,
|
|
45336
|
+
screen: subject
|
|
44947
45337
|
});
|
|
44948
45338
|
};
|
|
44949
45339
|
const getFilterOptions$1 = ({
|
|
@@ -60975,6 +61365,11 @@ class LinkedSubjectsService extends BaseService {
|
|
|
60975
61365
|
getForm({
|
|
60976
61366
|
namespace
|
|
60977
61367
|
}, language = "en", scope) {
|
|
61368
|
+
console.log({
|
|
61369
|
+
namespace,
|
|
61370
|
+
language,
|
|
61371
|
+
scope
|
|
61372
|
+
});
|
|
60978
61373
|
return this.apiGet({
|
|
60979
61374
|
url: `forms/${namespace === "documents" ? namespace : getNamespace(namespace)}`,
|
|
60980
61375
|
isApp: true,
|