datastake-daf 0.6.241 → 0.6.243
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 +634 -769
- package/dist/utils/index.js +494 -525
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Map/helper.js +0 -1
- package/src/@daf/core/components/Dashboard/Map/hook.js +3 -1
- package/src/@daf/core/components/Dashboard/Widget/SDGWidget/index.jsx +3 -3
- package/src/@daf/core/components/Dashboard/Widget/WidgetCard/index.js +12 -10
- package/src/@daf/core/components/EditForm/helper.js +2732 -3290
- package/src/@daf/core/components/EditForm/storyConfig.js +1 -1
- package/src/@daf/core/components/EditForm/storyConfig2.js +58 -5
- package/src/@daf/core/components/Icon/configs/index.js +2 -3
- package/src/@daf/core/components/ViewForm/components/input.js +1 -3
- package/.env +0 -8
- package/.vscode/settings.json +0 -13
- package/src/@daf/core/components/EditForm/components/Smart/index.js +0 -93
- package/src/@daf/core/components/Icon/configs/Lightning.js +0 -14
|
@@ -18,12 +18,65 @@ export const storyData = {
|
|
|
18
18
|
"options": {
|
|
19
19
|
"id": "identification",
|
|
20
20
|
"position": 1,
|
|
21
|
-
"
|
|
22
|
-
"_id": "
|
|
23
|
-
"id": "
|
|
24
|
-
"dataId": "
|
|
21
|
+
"documents": {
|
|
22
|
+
"_id": "68b80b53fb611cf05f6d0483",
|
|
23
|
+
"id": "a4432e33-89e2-433c-9fba-d86d3b955af3",
|
|
24
|
+
"dataId": "documents",
|
|
25
25
|
"section": "identification",
|
|
26
|
-
"type": "
|
|
26
|
+
"type": "upload",
|
|
27
|
+
"meta": {
|
|
28
|
+
"comment": false,
|
|
29
|
+
"notApplicable": false,
|
|
30
|
+
"notAvailable": false,
|
|
31
|
+
"group": "documentation",
|
|
32
|
+
"versioning": true,
|
|
33
|
+
"mandatory": true
|
|
34
|
+
},
|
|
35
|
+
"showIf": "type is documents",
|
|
36
|
+
"position": 6,
|
|
37
|
+
"dataLink": {
|
|
38
|
+
"entity": "Documents",
|
|
39
|
+
"createUserVersion": false,
|
|
40
|
+
"createNew": true,
|
|
41
|
+
"collection": "documents",
|
|
42
|
+
"formNamespace": "DOCUMENTS",
|
|
43
|
+
"keys": [
|
|
44
|
+
"title"
|
|
45
|
+
],
|
|
46
|
+
"pickKeys": []
|
|
47
|
+
},
|
|
48
|
+
"rules": [
|
|
49
|
+
{
|
|
50
|
+
"message": "errors::field is required",
|
|
51
|
+
"required": true
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"accept": ".doc,.docx,.pdf,.xls,.xlsx",
|
|
55
|
+
"type": "any"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"max": 5,
|
|
59
|
+
"type": "any"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"scope": [
|
|
63
|
+
"global",
|
|
64
|
+
"modal",
|
|
65
|
+
"registrationFormDocuments",
|
|
66
|
+
"evaluationDocumentation",
|
|
67
|
+
"documents",
|
|
68
|
+
"createDocument",
|
|
69
|
+
"evidenceAmoundGoldProduced",
|
|
70
|
+
"investmentNote",
|
|
71
|
+
"financialAnalysis",
|
|
72
|
+
"linkedDocumentation",
|
|
73
|
+
"activityDocumentation"
|
|
74
|
+
],
|
|
75
|
+
"label": "Cargar Archivo",
|
|
76
|
+
"tableLabel": "Contenido",
|
|
77
|
+
"createdAt": "2025-09-03T09:33:24.308Z",
|
|
78
|
+
"updatedAt": "2025-09-03T09:33:24.308Z",
|
|
79
|
+
"__v": 0
|
|
27
80
|
},
|
|
28
81
|
},
|
|
29
82
|
"subTitle": "Identificación"
|
|
@@ -207,7 +207,7 @@ import LinkChain from "./LinkChain";
|
|
|
207
207
|
import Robot from "./Robot";
|
|
208
208
|
import Hedera01 from "./Hedera01";
|
|
209
209
|
import Records from "./Records";
|
|
210
|
-
|
|
210
|
+
|
|
211
211
|
const config = {
|
|
212
212
|
Right,
|
|
213
213
|
ApplicationForm,
|
|
@@ -417,8 +417,7 @@ const config = {
|
|
|
417
417
|
LinkChain,
|
|
418
418
|
Robot,
|
|
419
419
|
Hedera01,
|
|
420
|
-
Records
|
|
421
|
-
Lightning,
|
|
420
|
+
Records
|
|
422
421
|
};
|
|
423
422
|
|
|
424
423
|
export default config;
|
|
@@ -5,7 +5,7 @@ import { Button, Tag, Tooltip, Image, Popover } from 'antd';
|
|
|
5
5
|
import { UpOutlined, DownOutlined, PaperClipOutlined, LinkOutlined } from '@ant-design/icons'
|
|
6
6
|
import moment from 'moment';
|
|
7
7
|
import _ from 'lodash';
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
import { types, repeatObjects, verifyConditional, renderPlaceholder, showHideInput, getSelectOptions, getImageUploadViewValue, numberWithCommas, noLabelInputTypes, renderDate } from '../helper';
|
|
10
10
|
import Geolocation from './geolocation';
|
|
11
11
|
import DataLink from './DataLink';
|
|
@@ -658,8 +658,6 @@ export const BasicInput = ({
|
|
|
658
658
|
console.log(e);
|
|
659
659
|
return '';
|
|
660
660
|
}
|
|
661
|
-
case 'smartHelp':
|
|
662
|
-
return <Smart />;
|
|
663
661
|
default:
|
|
664
662
|
return input.type;
|
|
665
663
|
}
|
package/.env
DELETED
package/.vscode/settings.json
DELETED
|
@@ -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
|
-
}
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import CustomIcon from "../../../Icon/CustomIcon.jsx";
|
|
2
|
-
import { theme } from "antd";
|
|
3
|
-
import { useState } from "react";
|
|
4
|
-
import Widget from "../../../Dashboard/Widget/index.jsx";
|
|
5
|
-
const { useToken } = theme;
|
|
6
|
-
export default function Smart() {
|
|
7
|
-
const { token } = useToken();
|
|
8
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
9
|
-
return (
|
|
10
|
-
<div
|
|
11
|
-
style={{
|
|
12
|
-
border: "1px solid #E5E7EB",
|
|
13
|
-
width: "100%",
|
|
14
|
-
borderRadius: "4px",
|
|
15
|
-
boxShadow:
|
|
16
|
-
"0px 1px 2px 0px #00000008, 0px 1px 6px -1px #00000005, 0px 2px 4px 0px #00000005",
|
|
17
|
-
}}
|
|
18
|
-
>
|
|
19
|
-
<div
|
|
20
|
-
style={{
|
|
21
|
-
display: "flex",
|
|
22
|
-
alignItems: "center",
|
|
23
|
-
gap: "8px",
|
|
24
|
-
padding: "8px",
|
|
25
|
-
}}
|
|
26
|
-
onClick={() => setIsOpen(!isOpen)}
|
|
27
|
-
>
|
|
28
|
-
<CustomIcon name="Lightning" size={16} color={token.colorPrimary7} />
|
|
29
|
-
<span style={{ marginRight: "auto" }}>Smart Help</span>
|
|
30
|
-
<div>
|
|
31
|
-
<CustomIcon
|
|
32
|
-
name="ChevronRight"
|
|
33
|
-
size={12}
|
|
34
|
-
color={token.colorPrimary7}
|
|
35
|
-
style={{
|
|
36
|
-
transform: isOpen ? "rotate(90deg)" : "rotate(0deg)",
|
|
37
|
-
transition: "transform 0.3s ease-in-out",
|
|
38
|
-
}}
|
|
39
|
-
/>
|
|
40
|
-
</div>
|
|
41
|
-
</div>
|
|
42
|
-
{isOpen && (
|
|
43
|
-
<div
|
|
44
|
-
style={{
|
|
45
|
-
padding: "8px",
|
|
46
|
-
display: "flex",
|
|
47
|
-
flexDirection: "column",
|
|
48
|
-
gap: "12px",
|
|
49
|
-
}}
|
|
50
|
-
>
|
|
51
|
-
<span
|
|
52
|
-
style={{
|
|
53
|
-
paddingLeft: "4px",
|
|
54
|
-
color: "#6C737F",
|
|
55
|
-
fontFamily: "SF UI Display",
|
|
56
|
-
fontWeight: "500",
|
|
57
|
-
fontStyle: "Medium",
|
|
58
|
-
fontSize: "14px",
|
|
59
|
-
leadingTrim: "NONE",
|
|
60
|
-
lineHeight: "20px",
|
|
61
|
-
letterSpacing: "0%",
|
|
62
|
-
}}
|
|
63
|
-
>
|
|
64
|
-
The information available here has been identified as matching the
|
|
65
|
-
requirements of this question.
|
|
66
|
-
</span>
|
|
67
|
-
<SmartWidget label="Operational Activities" icon="AimOutlined" link="Link" />
|
|
68
|
-
<SmartWidget label="Monitoring Activities" icon="Eye" link="Link" />
|
|
69
|
-
<SmartWidget label="Project Locations" icon="DashboardLocations" link="Link" />
|
|
70
|
-
<SmartWidget label="Documents & Media" icon="DashboardDocuments" link="Link" />
|
|
71
|
-
</div>
|
|
72
|
-
)}
|
|
73
|
-
</div>
|
|
74
|
-
);
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
function SmartWidget({ label, icon, link }) {
|
|
78
|
-
const { token } = useToken();
|
|
79
|
-
return (
|
|
80
|
-
<Widget noTitle className={"no-p-body p-xs"}>
|
|
81
|
-
<div style={{ display: "flex", alignItems: "center", gap: "8px" }}>
|
|
82
|
-
<CustomIcon name={icon} size={16} color={"#384250"} />
|
|
83
|
-
<span style={{ marginRight: "auto" }}>{label}</span>
|
|
84
|
-
<CustomIcon
|
|
85
|
-
name={link}
|
|
86
|
-
size={16}
|
|
87
|
-
color={token.baseGray50}
|
|
88
|
-
style={{ cursor: "not-allowed" }}
|
|
89
|
-
/>
|
|
90
|
-
</div>
|
|
91
|
-
</Widget>
|
|
92
|
-
);
|
|
93
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
viewBox: "0 0 16 16",
|
|
3
|
-
children: (
|
|
4
|
-
<path
|
|
5
|
-
d="M9.49968 1.33331H5.66264C5.54298 1.33331 5.48316 1.33331 5.43034 1.35153C5.38363 1.36764 5.34109 1.39393 5.30579 1.42851C5.26587 1.4676 5.23912 1.52111 5.18561 1.62813L2.38561 7.22813C2.25782 7.4837 2.19393 7.61149 2.20927 7.71537C2.22268 7.80607 2.27285 7.88725 2.34798 7.9398C2.43403 7.99998 2.5769 7.99998 2.86264 7.99998H6.99968L4.99968 14.6666L13.1284 6.23685C13.4027 5.95245 13.5398 5.81025 13.5478 5.68857C13.5548 5.58295 13.5112 5.4803 13.4303 5.412C13.3371 5.33331 13.1396 5.33331 12.7445 5.33331H7.99968L9.49968 1.33331Z"
|
|
6
|
-
stroke="currentColor"
|
|
7
|
-
strokeWidth="1.2"
|
|
8
|
-
strokeLinecap="round"
|
|
9
|
-
strokeLinejoin="round"
|
|
10
|
-
/>
|
|
11
|
-
),
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
export default config;
|