datastake-daf 0.6.820 → 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.
Files changed (29) hide show
  1. package/build/favicon.ico +0 -0
  2. package/build/logo192.png +0 -0
  3. package/build/logo512.png +0 -0
  4. package/build/manifest.json +25 -0
  5. package/build/robots.txt +3 -0
  6. package/dist/components/index.js +671 -561
  7. package/dist/pages/index.js +58 -23
  8. package/dist/utils/index.js +67 -134
  9. package/package.json +1 -1
  10. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/columns.js +6 -5
  11. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/index.jsx +161 -73
  12. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineSubjects/columns.js +3 -2
  13. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineSubjects/index.jsx +26 -33
  14. package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/column.js +3 -2
  15. package/src/@daf/core/components/Screens/Admin/AdminTables/LocationTable/index.jsx +2 -6
  16. package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/columns.js +1 -2
  17. package/src/@daf/core/components/Screens/Admin/AdminTables/SubjectsTable/index.jsx +2 -6
  18. package/src/@daf/core/components/Screens/Admin/AdminTables/hook.js +0 -1
  19. package/src/@daf/core/components/Screens/Admin/adminRoutes.js +3 -1
  20. package/src/@daf/core/components/ViewForm/content.jsx +2 -0
  21. package/src/@daf/pages/Events/config.js +2 -11
  22. package/src/@daf/pages/Stakeholders/ArmedGroups/config.js +34 -5
  23. package/src/@daf/pages/View/index.jsx +1 -1
  24. package/src/constants/locales/en/translation.js +26 -10
  25. package/src/constants/locales/fr/translation.js +23 -75
  26. package/src/constants/locales/sp/translation.js +20 -61
  27. package/src/helpers/adminLevels.js +4 -0
  28. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineLocation/helper.js +0 -79
  29. package/src/@daf/core/components/Screens/Admin/AdminModals/CombineSubjects/helper.js +0 -21
@@ -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
- timeframe: {
42200
- type: "timeframe",
42201
- label: "Timeframe",
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
- timeframe: []
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
- subCategory: {
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
- category: catOptions || [],
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, {
@@ -62175,9 +62212,7 @@ const View = ({
62175
62212
  children: /*#__PURE__*/jsxRuntime.jsx(Multiselect, {
62176
62213
  options: [...sourceOptions],
62177
62214
  isAvatarGroup: true,
62178
- selectionType: "checkbox"
62179
- // key={partners?.length}
62180
- ,
62215
+ selectionType: "checkbox",
62181
62216
  canUnselectLast: false,
62182
62217
  isSingle: true,
62183
62218
  onChange: selected => {
@@ -62189,7 +62224,7 @@ const View = ({
62189
62224
  },
62190
62225
  dropDownWidth: 200,
62191
62226
  defaultSelected: (partners || []).map(p => p.id) || []
62192
- })
62227
+ }, partners?.length)
62193
62228
  })
62194
62229
  }), /*#__PURE__*/jsxRuntime.jsxs("div", {
62195
62230
  className: "view-content",