datastake-daf 0.6.821 → 0.6.822
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 +2343 -2337
- package/dist/pages/index.js +56 -19
- package/dist/utils/index.js +67 -134
- package/package.json +1 -1
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/columns.js +6 -5
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/index.jsx +161 -73
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineSubjects/columns.js +3 -2
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineSubjects/index.jsx +26 -33
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/column.js +3 -2
- package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/index.jsx +2 -6
- package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/columns.js +1 -2
- package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/index.jsx +2 -6
- package/src/@daf/core/components/Screens/Admin/AdminTables/hook.js +0 -1
- package/src/@daf/core/components/Screens/Admin/adminRoutes.js +3 -1
- package/src/@daf/core/components/ViewForm/content.jsx +2 -0
- package/src/@daf/pages/Events/config.js +2 -11
- package/src/@daf/pages/Stakeholders/ArmedGroups/config.js +34 -5
- package/src/constants/locales/en/translation.js +26 -10
- package/src/constants/locales/fr/translation.js +23 -75
- package/src/constants/locales/sp/translation.js +20 -61
- package/src/helpers/adminLevels.js +4 -0
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/helper.js +0 -79
- package/src/@daf/core/components/Screens/Admin/AdminModals/CombineSubjects/helper.js +0 -21
package/dist/pages/index.js
CHANGED
|
@@ -42183,6 +42183,19 @@ const getFiltersConfig$a = ({
|
|
|
42183
42183
|
t
|
|
42184
42184
|
}) => {
|
|
42185
42185
|
return {
|
|
42186
|
+
country: {
|
|
42187
|
+
type: 'select',
|
|
42188
|
+
label: 'Country',
|
|
42189
|
+
placeholder: () => `${t('Filter by')} ${t('Country').toLowerCase()}`,
|
|
42190
|
+
style: {
|
|
42191
|
+
flex: 1
|
|
42192
|
+
},
|
|
42193
|
+
labelStyle: {
|
|
42194
|
+
flex: 1
|
|
42195
|
+
},
|
|
42196
|
+
getLabel: option => option.label,
|
|
42197
|
+
getValue: option => option.value
|
|
42198
|
+
},
|
|
42186
42199
|
status: {
|
|
42187
42200
|
type: "select",
|
|
42188
42201
|
label: "Status",
|
|
@@ -42196,11 +42209,40 @@ const getFiltersConfig$a = ({
|
|
|
42196
42209
|
getLabel: option => option.label,
|
|
42197
42210
|
getValue: option => option.value
|
|
42198
42211
|
},
|
|
42199
|
-
|
|
42200
|
-
type:
|
|
42201
|
-
label:
|
|
42212
|
+
subCategory: {
|
|
42213
|
+
type: 'select',
|
|
42214
|
+
label: 'Sub Category',
|
|
42215
|
+
placeholder: () => `${t('Filter by')} ${t('Sub Category').toLowerCase()}`,
|
|
42202
42216
|
style: {
|
|
42203
42217
|
flex: 1
|
|
42218
|
+
},
|
|
42219
|
+
labelStyle: {
|
|
42220
|
+
flex: 1
|
|
42221
|
+
},
|
|
42222
|
+
getLabel: option => option.label,
|
|
42223
|
+
getValue: option => option.value,
|
|
42224
|
+
filterOptions: val => {
|
|
42225
|
+
if (val) {
|
|
42226
|
+
const {
|
|
42227
|
+
option,
|
|
42228
|
+
filters
|
|
42229
|
+
} = val;
|
|
42230
|
+
if (filters && option) {
|
|
42231
|
+
const {
|
|
42232
|
+
filters: optionFilters
|
|
42233
|
+
} = option;
|
|
42234
|
+
if (Array.isArray(optionFilters) && optionFilters.length) {
|
|
42235
|
+
const {
|
|
42236
|
+
value,
|
|
42237
|
+
condition
|
|
42238
|
+
} = optionFilters[0];
|
|
42239
|
+
if (condition === 'includes') {
|
|
42240
|
+
return value.includes('nonStateArmedGroup');
|
|
42241
|
+
}
|
|
42242
|
+
}
|
|
42243
|
+
}
|
|
42244
|
+
}
|
|
42245
|
+
return true;
|
|
42204
42246
|
}
|
|
42205
42247
|
}
|
|
42206
42248
|
};
|
|
@@ -42208,7 +42250,8 @@ const getFiltersConfig$a = ({
|
|
|
42208
42250
|
const getFilterOptions$a = (options, t) => {
|
|
42209
42251
|
const _default = {
|
|
42210
42252
|
status: getStatusOptions(t) || [],
|
|
42211
|
-
|
|
42253
|
+
country: options.countries || [],
|
|
42254
|
+
subCategory: options.subCategory || []
|
|
42212
42255
|
};
|
|
42213
42256
|
return _default;
|
|
42214
42257
|
};
|
|
@@ -42458,20 +42501,7 @@ const getFiltersConfig$9 = ({
|
|
|
42458
42501
|
flex: 1
|
|
42459
42502
|
}
|
|
42460
42503
|
},
|
|
42461
|
-
|
|
42462
|
-
type: 'select',
|
|
42463
|
-
label: 'Category',
|
|
42464
|
-
placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
|
|
42465
|
-
style: {
|
|
42466
|
-
flex: 1
|
|
42467
|
-
},
|
|
42468
|
-
labelStyle: {
|
|
42469
|
-
flex: 1
|
|
42470
|
-
},
|
|
42471
|
-
getLabel: option => option.label,
|
|
42472
|
-
getValue: option => option.value
|
|
42473
|
-
},
|
|
42474
|
-
category: {
|
|
42504
|
+
eventCategory: {
|
|
42475
42505
|
type: 'select',
|
|
42476
42506
|
label: 'Category',
|
|
42477
42507
|
placeholder: t => `${t('Filter by')} ${t('Category').toLowerCase()}`,
|
|
@@ -42515,7 +42545,7 @@ const getFilterOptions$9 = (options, t) => {
|
|
|
42515
42545
|
return {
|
|
42516
42546
|
timeframe: timeframe,
|
|
42517
42547
|
country: countries || [],
|
|
42518
|
-
|
|
42548
|
+
eventCategory: catOptions || [],
|
|
42519
42549
|
status: [{
|
|
42520
42550
|
value: "submitted",
|
|
42521
42551
|
label: t("Submitted")
|
|
@@ -50627,6 +50657,13 @@ const Content = ({
|
|
|
50627
50657
|
}
|
|
50628
50658
|
return all;
|
|
50629
50659
|
}, {});
|
|
50660
|
+
console.log({
|
|
50661
|
+
groups,
|
|
50662
|
+
singleGroupsKeys,
|
|
50663
|
+
addedContent,
|
|
50664
|
+
_length,
|
|
50665
|
+
groupped
|
|
50666
|
+
});
|
|
50630
50667
|
return Object.keys(groupped).map(key => {
|
|
50631
50668
|
const groups = groupped[key];
|
|
50632
50669
|
return /*#__PURE__*/jsxRuntime.jsx(React__default["default"].Fragment, {
|