datastake-daf 0.6.319 → 0.6.321

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.
@@ -12666,7 +12666,7 @@ const {
12666
12666
  Paragraph: Paragraph$1
12667
12667
  } = antd.Typography;
12668
12668
  const checkHasActiveFilterValues = filtersConfig => {
12669
- if (!filtersConfig?.filtersConfig || !filtersConfig?.selectedFilters) return false;
12669
+ if (!(filtersConfig !== null && filtersConfig !== void 0 && filtersConfig.filtersConfig) || !(filtersConfig !== null && filtersConfig !== void 0 && filtersConfig.selectedFilters)) return false;
12670
12670
  const filterConfigKeys = Object.keys(filtersConfig.filtersConfig);
12671
12671
  const selectedFilters = filtersConfig.selectedFilters;
12672
12672
  return filterConfigKeys.some(key => {
@@ -12674,27 +12674,28 @@ const checkHasActiveFilterValues = filtersConfig => {
12674
12674
  return value !== undefined && value !== null && value !== "";
12675
12675
  });
12676
12676
  };
12677
- const useHeader = ({
12678
- title = "",
12679
- tooltip = "",
12680
- supportText = "",
12681
- tags = [],
12682
- actionButtons: _actionButtons = [],
12683
- titleTooltip,
12684
- className,
12685
- addedHeader = null,
12686
- addedHeaderFirst,
12687
- extraButtons: _extraButtons = [],
12688
- onDownload,
12689
- downloadDisabled,
12690
- goBackTo,
12691
- loading,
12692
- renderExtraComponents,
12693
- app = "",
12694
- isViewMode = false,
12695
- filtersConfig = {}
12696
- }) => {
12697
- const hasActiveFilterValues = React.useMemo(() => checkHasActiveFilterValues(filtersConfig), [filtersConfig?.filtersConfig, filtersConfig?.selectedFilters]);
12677
+ const useHeader = _ref => {
12678
+ let {
12679
+ title = "",
12680
+ tooltip = "",
12681
+ supportText = "",
12682
+ tags = [],
12683
+ actionButtons: _actionButtons = [],
12684
+ titleTooltip,
12685
+ className,
12686
+ addedHeader = null,
12687
+ addedHeaderFirst,
12688
+ extraButtons: _extraButtons = [],
12689
+ onDownload,
12690
+ downloadDisabled,
12691
+ goBackTo,
12692
+ loading,
12693
+ renderExtraComponents,
12694
+ app = "",
12695
+ isViewMode = false,
12696
+ filtersConfig = {}
12697
+ } = _ref;
12698
+ const hasActiveFilterValues = React.useMemo(() => checkHasActiveFilterValues(filtersConfig), [filtersConfig === null || filtersConfig === void 0 ? void 0 : filtersConfig.filtersConfig, filtersConfig === null || filtersConfig === void 0 ? void 0 : filtersConfig.selectedFilters]);
12698
12699
  const [showFilters, setShowFilters] = React.useState(() => checkHasActiveFilterValues(filtersConfig));
12699
12700
  const hasFilters = filtersConfig && Object.keys(filtersConfig).length > 0;
12700
12701
  React.useEffect(() => {
@@ -12737,9 +12738,9 @@ const useHeader = ({
12737
12738
  const buttonCont = React.useRef();
12738
12739
  const [mainContWidth, setMainContWidth] = React.useState(600);
12739
12740
  const [buttonContWidth, setButtonContWidth] = React.useState(0);
12740
- const hasSupportText = !!supportText?.length;
12741
- const hasTags = !!tags?.length;
12742
- const hasButtons = !!(actionButtons?.length || extraButtons?.length);
12741
+ const hasSupportText = !!(supportText !== null && supportText !== void 0 && supportText.length);
12742
+ const hasTags = !!(tags !== null && tags !== void 0 && tags.length);
12743
+ const hasButtons = !!(actionButtons !== null && actionButtons !== void 0 && actionButtons.length || extraButtons !== null && extraButtons !== void 0 && extraButtons.length);
12743
12744
  React.useEffect(() => {
12744
12745
  const mainContObserver = new ResizeObserver(entries => {
12745
12746
  const _mainEntry = entries[0];
@@ -19092,11 +19093,7 @@ function Map$3(_ref) {
19092
19093
  siderTitle = "Mine Description",
19093
19094
  renderTooltip = () => [],
19094
19095
  renderTooltipTags = () => {},
19095
- mapConfig = {
19096
- maxZoom: 18,
19097
- center: [13, -15],
19098
- zoom: 5
19099
- },
19096
+ mapConfig = {},
19100
19097
  emptyDescriptionText = "No description provided",
19101
19098
  tooltipAsText = false,
19102
19099
  primaryLink = false,
@@ -34536,7 +34533,6 @@ const EditForm = _ref => {
34536
34533
  }, id);
34537
34534
  }
34538
34535
  };
34539
- console.log("values", values);
34540
34536
  return /*#__PURE__*/jsxRuntime.jsxs(EditProvider, {
34541
34537
  t: t,
34542
34538
  isReview: isReview,
@@ -50197,7 +50193,6 @@ const Style$g = dt.div`
50197
50193
  display: flex;
50198
50194
  justify-content: space-between;
50199
50195
  align-items: space-between;
50200
- ${"" /* height: ${props => props.height || '300px'}; */}
50201
50196
 
50202
50197
  .weekDay {
50203
50198
  width: 16px;
@@ -50217,7 +50212,6 @@ const Style$g = dt.div`
50217
50212
  overflow: hidden;
50218
50213
  .event {
50219
50214
  width: 100%;
50220
- ${"" /* background: blue; */}
50221
50215
  border-radius: 2px;
50222
50216
  z-index: 1;
50223
50217
  margin-top: 2px;
@@ -50244,6 +50238,30 @@ const Style$g = dt.div`
50244
50238
  }
50245
50239
  }
50246
50240
  `;
50241
+ const StyleWrapper = dt.div`
50242
+ .legend {
50243
+ display: flex;
50244
+ flex-wrap: wrap;
50245
+ gap: 12px;
50246
+ margin-top: 12px;
50247
+ font-size: 12px;
50248
+ color: #333;
50249
+ justify-content: center;
50250
+
50251
+ .legend-item {
50252
+ display: flex;
50253
+ align-items: center;
50254
+ gap: 6px;
50255
+
50256
+ .legend-color {
50257
+ width: 12px;
50258
+ height: 12px;
50259
+ border-radius: 2px;
50260
+ display: inline-block;
50261
+ }
50262
+ }
50263
+ }
50264
+ `;
50247
50265
  dt.div`
50248
50266
  width: 200px;
50249
50267
  display: flex;
@@ -50427,7 +50445,9 @@ function StackChart(_ref) {
50427
50445
  doConstraints = true,
50428
50446
  colors,
50429
50447
  valueField = "value",
50430
- height = 300
50448
+ height = 300,
50449
+ isPdf = false,
50450
+ t = s => s
50431
50451
  } = _ref;
50432
50452
  const ref = React__default["default"].useRef();
50433
50453
  const {
@@ -50555,34 +50575,53 @@ function StackChart(_ref) {
50555
50575
  }));
50556
50576
  }
50557
50577
  }, [hoveredGroup]);
50558
- return /*#__PURE__*/jsxRuntime.jsxs(Style$g, _objectSpread2(_objectSpread2({}, isEmpty ? {
50559
- onMouseEnter: () => {
50560
- setHoveredGroup({
50561
- id: 0
50562
- });
50563
- },
50564
- onMouseLeave: () => {
50565
- setHoveredGroup(null);
50566
- },
50567
- onMouseMove: e => onMouseLeaveHandler(e, {}, 0)
50568
- } : {}), {}, {
50569
- className: formatClassname(["riskProfile", className]),
50570
- ref: ref,
50571
- style: {
50572
- height: "".concat(height, "px")
50573
- },
50574
- children: [typeof renderTooltip === "function" && !isEmpty ? hoveredGroup !== null ? renderTooltip({
50575
- mouseX,
50576
- mouseY,
50577
- item: hoveredGroup
50578
- }) : null : null, /*#__PURE__*/jsxRuntime.jsx("div", {
50579
- className: "timeline",
50578
+ return /*#__PURE__*/jsxRuntime.jsxs(StyleWrapper, {
50579
+ children: [/*#__PURE__*/jsxRuntime.jsxs(Style$g, _objectSpread2(_objectSpread2({}, isEmpty ? {
50580
+ onMouseEnter: () => {
50581
+ setHoveredGroup({
50582
+ id: 0
50583
+ });
50584
+ },
50585
+ onMouseLeave: () => {
50586
+ setHoveredGroup(null);
50587
+ },
50588
+ onMouseMove: e => onMouseLeaveHandler(e, {}, 0)
50589
+ } : {}), {}, {
50590
+ className: formatClassname(["riskProfile", className]),
50591
+ ref: ref,
50580
50592
  style: {
50581
50593
  height: "".concat(height, "px")
50582
50594
  },
50583
- children: content()
50595
+ children: [typeof renderTooltip === "function" && !isEmpty ? hoveredGroup !== null ? renderTooltip({
50596
+ mouseX,
50597
+ mouseY,
50598
+ item: hoveredGroup
50599
+ }) : null : null, /*#__PURE__*/jsxRuntime.jsx("div", {
50600
+ className: "timeline",
50601
+ style: {
50602
+ height: "".concat(height, "px")
50603
+ },
50604
+ children: content()
50605
+ })]
50606
+ })), isPdf && /*#__PURE__*/jsxRuntime.jsx("div", {
50607
+ className: "legend",
50608
+ children: Object.entries(seriesColors).map(_ref4 => {
50609
+ let [series, color] = _ref4;
50610
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
50611
+ className: "legend-item",
50612
+ children: [/*#__PURE__*/jsxRuntime.jsx("span", {
50613
+ className: "legend-color",
50614
+ style: {
50615
+ backgroundColor: color || token.colorPrimary7
50616
+ }
50617
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
50618
+ className: "legend-label",
50619
+ children: t(series)
50620
+ })]
50621
+ }, series);
50622
+ })
50584
50623
  })]
50585
- }));
50624
+ });
50586
50625
  }
50587
50626
 
50588
50627
  const _excluded$3 = ["data", "xFieldKey", "yFieldKey", "seriesField", "renderTooltipContent", "tooltipConfig", "animated", "color", "formattedYAxis", "formattedXAxis", "fillOpacity", "height", "t", "isPdf", "extraLegendConfig", "width"];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.319",
3
+ "version": "0.6.321",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -417,6 +417,7 @@ export const WithCustomObject = {
417
417
  social: "#864dd7",
418
418
  environmental: "#f9b836",
419
419
  },
420
+ isPdf: true,
420
421
  },
421
422
  render: (args) => {
422
423
  return <StackChart {...args} />;
@@ -4,7 +4,6 @@ export const Style = styled.div`
4
4
  display: flex;
5
5
  justify-content: space-between;
6
6
  align-items: space-between;
7
- ${"" /* height: ${props => props.height || '300px'}; */}
8
7
 
9
8
  .weekDay {
10
9
  width: 16px;
@@ -24,7 +23,6 @@ export const Style = styled.div`
24
23
  overflow: hidden;
25
24
  .event {
26
25
  width: 100%;
27
- ${"" /* background: blue; */}
28
26
  border-radius: 2px;
29
27
  z-index: 1;
30
28
  margin-top: 2px;
@@ -52,6 +50,31 @@ export const Style = styled.div`
52
50
  }
53
51
  `;
54
52
 
53
+ export const StyleWrapper = styled.div`
54
+ .legend {
55
+ display: flex;
56
+ flex-wrap: wrap;
57
+ gap: 12px;
58
+ margin-top: 12px;
59
+ font-size: 12px;
60
+ color: #333;
61
+ justify-content: center;
62
+
63
+ .legend-item {
64
+ display: flex;
65
+ align-items: center;
66
+ gap: 6px;
67
+
68
+ .legend-color {
69
+ width: 12px;
70
+ height: 12px;
71
+ border-radius: 2px;
72
+ display: inline-block;
73
+ }
74
+ }
75
+ }
76
+ `;
77
+
55
78
  export const EventsTooltip = styled.div`
56
79
  width: 200px;
57
80
  display: flex;
@@ -1,5 +1,5 @@
1
1
  import React from "react";
2
- import { Style } from "./classes.js";
2
+ import { Style, StyleWrapper } from "./classes.js";
3
3
  import { formatClassname } from "../../../../../helpers/ClassesHelper";
4
4
  import { Popover, theme } from "antd";
5
5
  import { renderTooltipJsx as renderDafTooltip } from "../../../../utils/tooltip.js";
@@ -83,6 +83,8 @@ export default function StackChart({
83
83
  colors,
84
84
  valueField = "value",
85
85
  height = 300,
86
+ isPdf = false,
87
+ t = (s) => s,
86
88
  }) {
87
89
  const ref = React.useRef();
88
90
  const { token } = useToken();
@@ -228,6 +230,7 @@ export default function StackChart({
228
230
  );
229
231
 
230
232
  return (
233
+ <StyleWrapper>
231
234
  <Style
232
235
  {...(isEmpty
233
236
  ? {
@@ -255,5 +258,19 @@ export default function StackChart({
255
258
  {content()}
256
259
  </div>
257
260
  </Style>
261
+ {isPdf && (
262
+ <div className="legend">
263
+ {Object.entries(seriesColors).map(([series, color]) => (
264
+ <div key={series} className="legend-item">
265
+ <span
266
+ className="legend-color"
267
+ style={{ backgroundColor: color || token.colorPrimary7 }}
268
+ />
269
+ <span className="legend-label">{t(series)}</span>
270
+ </div>
271
+ ))}
272
+ </div>
273
+ )}
274
+ </StyleWrapper>
258
275
  );
259
276
  }
@@ -103,7 +103,7 @@ function Map({
103
103
  siderTitle = "Mine Description",
104
104
  renderTooltip = () => [],
105
105
  renderTooltipTags = () => {},
106
- mapConfig = { maxZoom: 18, center: [13, -15], zoom: 5 },
106
+ mapConfig = {},
107
107
  emptyDescriptionText = "No description provided",
108
108
  tooltipAsText = false,
109
109
  primaryLink = false,
@@ -134,7 +134,7 @@ function Map({
134
134
  t,
135
135
  app,
136
136
  renderTooltip,
137
- renderTooltipTags,
137
+ renderTooltipTags,
138
138
  onClickLink,
139
139
  link,
140
140
  mapConfig,
@@ -1,75 +1,75 @@
1
1
  /* eslint-disable react/jsx-filename-extension */
2
- import "./_index.scss";
3
- import DynamicForm from "./index.jsx";
4
- import ThemeLayout from "../ThemeLayout";
5
- import { Form } from "antd";
6
- import { useCallback, useState } from "react";
7
- import { storyData } from "./storyConfig.js";
2
+ import './_index.scss';
3
+ import DynamicForm from './index.jsx';
4
+ import ThemeLayout from '../ThemeLayout';
5
+ import { Form } from 'antd';
6
+ import { useCallback, useState } from 'react';
7
+ import { storyData } from './storyConfig.js';
8
8
  // import Modal from '../Modal/index';
9
9
  // import { Drawer } from 'antd';
10
10
 
11
11
  const EForm = () => {
12
- const [MainForm] = Form.useForm();
13
- const [ajaxForms, setAjaxForms] = useState({});
14
- const [ajaxOptions, setAjaxOptions] = useState({});
15
- const [open, setOpen] = useState(true);
12
+ const [MainForm] = Form.useForm();
13
+ const [ajaxForms, setAjaxForms] = useState({});
14
+ const [ajaxOptions, setAjaxOptions] = useState({});
15
+ const [open, setOpen] = useState(true);
16
16
 
17
- const changeAjaxForms = useCallback((key, value) => {
18
- setAjaxForms((prev) => ({ ...prev, [key]: value }));
19
- }, []);
17
+ const changeAjaxForms = useCallback((key, value) => {
18
+ setAjaxForms((prev) => ({ ...prev, [key]: value }));
19
+ }, []);
20
20
 
21
- const changeAjaxOptions = useCallback((key, value) => {
22
- setAjaxOptions((prev) => ({ ...prev, [key]: value }));
23
- }, []);
21
+ const changeAjaxOptions = useCallback((key, value) => {
22
+ setAjaxOptions((prev) => ({ ...prev, [key]: value }));
23
+ }, []);
24
24
 
25
- return (
26
- <div>
27
- <DynamicForm
28
- alertErrorsConfig={{
29
- country: {
30
- message: "Error Test",
31
- onClose: () => alert(1),
32
- },
33
- }}
34
- goTo={() => {}}
35
- ajaxForms={ajaxForms}
36
- changeAjaxForms={changeAjaxForms}
37
- ajaxOptions={ajaxOptions}
38
- user={{ language: "en" }}
39
- changeAjaxOptions={changeAjaxOptions}
40
- app="sbg"
41
- query={null}
42
- MainForm={MainForm}
43
- form={storyData.form}
44
- data={storyData.data}
45
- getAppHeader={storyData.getAppHeader}
46
- getApiBaseUrl={storyData.getApiBaseUrl}
47
- submit={(payload) => {
48
- console.log("submit", payload);
49
- setOpen(false);
50
- }}
51
- staticWidth="720px"
52
- />
53
- </div>
54
- );
55
- };
25
+ return (
26
+ <div
27
+ >
28
+ <DynamicForm
29
+ alertErrorsConfig={{
30
+ country: {
31
+ message: 'Error Test',
32
+ onClose: () => alert(1)
33
+ }
34
+ }}
35
+ goTo={() => { }}
36
+ ajaxForms={ajaxForms}
37
+ changeAjaxForms={changeAjaxForms}
38
+ ajaxOptions={ajaxOptions}
39
+ user={{ language: 'en' }}
40
+ changeAjaxOptions={changeAjaxOptions}
41
+ app="sbg"
42
+ query={null}
43
+ MainForm={MainForm}
44
+ form={storyData.form}
45
+ data={storyData.data}
46
+ getAppHeader={storyData.getAppHeader}
47
+ getApiBaseUrl={storyData.getApiBaseUrl}
48
+ submit={() => {
49
+ setOpen(false)
50
+ }}
51
+ staticWidth="720px"
52
+ />
53
+ </div>
54
+ )
55
+ }
56
56
 
57
57
  export default {
58
- title: "Form/DynamicForm",
59
- component: DynamicForm,
60
- tags: ["autodocs"],
61
- decorators: [
62
- () => (
63
- <div style={{ margin: "3em" }}>
64
- <ThemeLayout>
65
- <EForm />
66
- </ThemeLayout>
67
- </div>
68
- ),
69
- ],
70
- };
58
+ title: 'Form/DynamicForm',
59
+ component: DynamicForm,
60
+ tags: ['autodocs'],
61
+ decorators: [
62
+ () => (
63
+ <div style={{ margin: '3em' }}>
64
+ <ThemeLayout>
65
+ <EForm />
66
+ </ThemeLayout>
67
+ </div>
68
+ ),
69
+ ],
70
+ }
71
71
 
72
72
  export const Primary = {
73
- name: "Edit Form",
74
- args: {},
75
- };
73
+ name: 'Edit Form',
74
+ args: {},
75
+ }
@@ -1,7 +1,7 @@
1
- const getApiBaseUrl = () => "http://192.168.4.252:3022";
1
+ const getApiBaseUrl = () => "http://192.168.4.64:4020";
2
2
 
3
3
  const getAppHeader = () => ({
4
- Application: "nashiriki",
4
+ Application: "sbg",
5
5
  Language: "en",
6
6
  });
7
7
 
@@ -12,95 +12,115 @@ export const storyData = {
12
12
  form: {
13
13
  id: "identification",
14
14
  position: 1,
15
-
16
- areaOfInfluence: {
17
- _id: "68d699bcab72f002b8f04a9e",
18
- id: "d9db4b4d-a7bb-43d7-bdeb-e64bb38d41d1",
19
- dataId: "areaOfInfluence",
15
+ date: {
16
+ _id: "68961d98fb2b209b19efa48d",
17
+ id: "5dc1382e-5229-448f-9712-0835b6ad5baf",
18
+ dataId: "date",
20
19
  section: "identification",
21
- type: "drawTerritory",
20
+ type: "date",
22
21
  meta: {
23
- comment: true,
22
+ group: "identification",
24
23
  notApplicable: false,
25
24
  notAvailable: false,
26
- mandatory: false,
27
- group: "identification",
25
+ comment: false,
26
+ versioning: true,
27
+ mandatory: true,
28
+ disableEdit: {
29
+ create: false,
30
+ edit: true,
31
+ },
28
32
  },
29
-
30
- position: 6,
31
- description:
32
- "The area of influence is the area where actions of this armed group are happening",
33
- scope: ["armedGroups", "location", "conflictArea"],
34
- label: "Perimeter",
35
- createdAt: "2025-09-26T13:48:44.363Z",
36
- updatedAt: "2025-09-26T13:48:44.363Z",
33
+ position: 3,
34
+ scope: ["modalActivity", "activityInfo", "modalFromMineSection"],
35
+ label: "Date",
36
+ createdAt: "2025-08-08T15:54:02.839Z",
37
+ updatedAt: "2025-08-08T15:54:02.839Z",
37
38
  __v: 0,
38
39
  },
39
-
40
- locationId: {
41
- _id: "68d699bcab72f002b8f04ab8",
42
- id: "956303f0-7a0f-40e1-ba9d-21df5079a833",
43
- dataId: "locationId",
40
+ mine: {
41
+ _id: "68961d98fb2b209b19efa493",
42
+ id: "a17546cc-9bf7-4d6f-b5c9-122349c9a62c",
43
+ dataId: "mine",
44
44
  section: "identification",
45
- type: "ajaxSelect",
45
+ type: "dataLink",
46
46
  meta: {
47
+ entity: "Location",
48
+ namespace: "location",
49
+ formScope: "activityMine",
50
+ path: "associatedMine",
51
+ maxRepeat: 1,
47
52
  comment: false,
53
+ createUserVersion: false,
54
+ linkOptions: {
55
+ global: true,
56
+ },
48
57
  notApplicable: false,
49
- notAvailable: true,
50
- application: "nashiriki",
51
- group: "identification",
58
+ notAvailable: false,
59
+ automaticLinking: {
60
+ path: "associatedSubjects",
61
+ nature: "activity",
62
+ },
63
+ ajaxOptionsKey: "id",
52
64
  mandatory: true,
53
- onNewSetValueKey: "name",
54
- store: {
55
- location: {
56
- path: "name",
57
- global: true,
58
- },
65
+ versioning: true,
66
+ disableEdit: {
67
+ create: false,
68
+ edit: true,
69
+ },
70
+ tableKeys: ["datastakeId", "locationId"],
71
+ optionsView: {
72
+ editInputType: "ajaxSelect",
73
+ editInputKey: "locationId",
74
+ onViewInputType: "table",
59
75
  },
60
- call: 'LOCATION::getOptions({\n "country": "country",\n "category": "category",\n "administrativeLevel1": "administrativeLevel1",\n "administrativeLevel2": "administrativeLevel2"\n })::{\n "label": "name",\n "value": "_id",\n "datastakeId": "datastakeId",\n "gps": "gps",\n "_id": "_id",\n "parent": "parent",\n "administrativeLevel1": "administrativeLevel1",\n "administrativeLevel2": "administrativeLevel2",\n "category":"category",\n "users": "users",\n "country": "country"\n }::["datastakeId", "gps", "administrativeLevel1", "administrativeLevel2", "category", "parent", "country", "_id"]',
76
+ application: "sbg",
77
+ noAddNew: true,
78
+ call: 'LOCATION::getOptions({\n "ownAccount": "true",\n "category": "mineSite"\n })::{\n "label": "name",\n "name": "name",\n "value": "_id",\n "datastakeId": "datastakeId",\n "gps": "gps",\n "_id": "_id",\n "id": "id",\n "parent": "parent",\n "administrativeLevel1": "administrativeLevel1",\n "administrativeLevel2": "administrativeLevel2",\n "category":"category",\n "users": "users",\n "country": "country"\n }::["datastakeId", "gps", "administrativeLevel1", "administrativeLevel2", "category","parent", "_id"]',
61
79
  },
62
- position: 5,
63
- dataLink: {
64
- entity: "Location",
65
- createUserVersion: true,
66
- createNew: true,
67
- collection: "nashiriki.global_location",
68
- formNamespace: "location",
69
- keys: [
70
- "name",
71
- "country",
72
- "category",
73
- "administrativeLevel1",
74
- "administrativeLevel2",
75
- ],
80
+ position: 2,
81
+ scope: ["modalActivity", "activityInfo", "modalFromMineSection"],
82
+ label: {
83
+ "scope is modalActivity": "Mine",
84
+ "scope not modalActivity": "Associated Mine",
76
85
  },
77
- rules: [
86
+ createdAt: "2025-08-08T15:54:02.839Z",
87
+ updatedAt: "2025-08-08T15:54:02.839Z",
88
+ __v: 0,
89
+ },
90
+ type: {
91
+ _id: "68961d98fb2b209b19efa495",
92
+ id: "8e421077-c542-46c0-a515-151cf2741f7d",
93
+ dataId: "type",
94
+ section: "identification",
95
+ type: "select",
96
+ meta: {
97
+ group: "identification",
98
+ notApplicable: false,
99
+ notAvailable: false,
100
+ comment: false,
101
+ versioning: true,
102
+ mandatory: true,
103
+ defaultValue: "visit",
104
+ disableEdit: {
105
+ create: false,
106
+ edit: true,
107
+ },
108
+ },
109
+ position: 1,
110
+ scope: ["modalActivity", "activityInfo"],
111
+ label: "Type",
112
+ options: [
78
113
  {
79
- required: true,
80
- message: "errors::field is required",
114
+ label: "Visit",
115
+ value: "visit",
81
116
  },
82
117
  ],
83
- scope: [
84
- "nashirikiOperatorLocation",
85
- "nashirikiWorkerLocation",
86
- "modalNashiriki",
87
- "locationAssociatedVillage",
88
- "locationAssociatedExportTown",
89
- "workerPlaceOfBirth",
90
- "armedGroups",
91
- "locationSupplierTrade",
92
- "modal",
93
- "location",
94
- "conflictArea",
95
- ],
96
- label: "Name of the location",
97
- tableLabel: "Name",
98
- createdAt: "2025-09-26T13:48:44.502Z",
99
- updatedAt: "2025-09-26T13:48:44.502Z",
118
+ createdAt: "2025-08-08T15:54:04.374Z",
119
+ updatedAt: "2025-08-08T15:54:04.374Z",
100
120
  __v: 0,
101
121
  },
102
122
  label: "Identification",
103
- subTitle: "Identification",
123
+ subTitle: "Identificación",
104
124
  },
105
125
  },
106
126
  data: {
@@ -560,8 +560,6 @@ export const EditForm = ({
560
560
  }
561
561
  };
562
562
 
563
- console.log("values", values);
564
-
565
563
  return (
566
564
  <EditProvider
567
565
  t={t}
package/.env DELETED
@@ -1,8 +0,0 @@
1
- REACT_APP_API_KEY=
2
- REACT_APP_AUTH_DOMAIN=
3
- REACT_APP_PROJECT_ID=
4
- REACT_APP_STORAGE_BUCKED=
5
- REACT_APP_SENDER_ID=
6
- REACT_APP_APP_ID=
7
- REACT_APP_MEASUREMENT_ID=
8
- REACT_APP_VAPID_KEY=
@@ -1,13 +0,0 @@
1
- {
2
- "cSpell.words": ["cukura"],
3
- "files.autoSave": "afterDelay",
4
- "editor.wordWrap": "on",
5
- "editor.autoClosingBrackets": "always",
6
- "editor.autoClosingComments": "always",
7
- "editor.autoClosingQuotes": "always",
8
- "editor.defaultFormatter": "esbenp.prettier-vscode",
9
- "editor.formatOnPaste": true,
10
- "editor.formatOnSave": true,
11
- "notebook.defaultFormatter": "esbenp.prettier-vscode",
12
- "javascript.format.semicolons": "insert"
13
- }