datastake-daf 0.6.271 → 0.6.272
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/.env +8 -0
- package/.vscode/settings.json +13 -0
- package/dist/components/index.js +294 -359
- package/package.json +1 -1
- package/src/@daf/core/components/Dashboard/Globe/Globe.stories.js +5 -30
- package/src/@daf/core/components/Dashboard/Globe/hook.js +7 -63
- package/src/@daf/core/components/Dashboard/Globe/index.jsx +6 -24
- package/src/@daf/core/components/EditForm/EditForm.stories.js +1 -0
- package/src/@daf/core/components/EditForm/_index.scss +64 -18
- package/src/@daf/core/components/EditForm/form.jsx +3 -2
- package/src/@daf/core/components/ViewForm/ViewForm.stories.js +1 -0
- package/src/@daf/core/components/ViewForm/content.jsx +386 -346
- package/src/index.js +0 -1
- package/src/@daf/core/components/Dashboard/Globe/README.md +0 -106
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobe.jsx +0 -245
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobe.stories.js +0 -202
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobeDebug.jsx +0 -85
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobeExample.jsx +0 -75
- package/src/@daf/core/components/Dashboard/Globe/SimpleGlobeTest.jsx +0 -48
- package/src/@daf/core/components/Dashboard/Globe/storyConfig.js +0 -243
- package/src/@daf/core/components/Dashboard/Globe/storyConfig1.js +0 -354
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import Globe from "./index";
|
|
|
2
2
|
import ThemeLayout from "../../ThemeLayout";
|
|
3
3
|
import Widget from "../Widget";
|
|
4
4
|
|
|
5
|
-
import * as configs from "
|
|
5
|
+
import * as configs from "../Map/storyConfig";
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: "Dashboard/Globe",
|
|
@@ -29,14 +29,14 @@ export default {
|
|
|
29
29
|
export const DefaultGlobe = {
|
|
30
30
|
name: "Default Globe",
|
|
31
31
|
args: {
|
|
32
|
-
...configs.
|
|
32
|
+
...configs.DefaultMapConfig,
|
|
33
33
|
},
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
export const SatelliteGlobe = {
|
|
37
37
|
name: "Satellite Globe",
|
|
38
38
|
args: {
|
|
39
|
-
...configs.
|
|
39
|
+
...configs.DefaultMapConfig,
|
|
40
40
|
isSatellite: true,
|
|
41
41
|
},
|
|
42
42
|
};
|
|
@@ -44,19 +44,11 @@ export const SatelliteGlobe = {
|
|
|
44
44
|
export const TerritoryGlobe = {
|
|
45
45
|
name: "Territory Globe",
|
|
46
46
|
args: {
|
|
47
|
-
...configs.
|
|
47
|
+
...configs.TerritoryMapConfig,
|
|
48
48
|
type: "territory",
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
export const StakeholderGlobe = {
|
|
53
|
-
name: "Stakeholder Globe",
|
|
54
|
-
args: {
|
|
55
|
-
...configs.StakeholderGlobeConfig,
|
|
56
|
-
type: "stakeholder",
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
52
|
export const EventGlobe = {
|
|
61
53
|
name: "Event Globe",
|
|
62
54
|
args: {
|
|
@@ -65,27 +57,10 @@ export const EventGlobe = {
|
|
|
65
57
|
},
|
|
66
58
|
};
|
|
67
59
|
|
|
68
|
-
export const ChainGlobe = {
|
|
69
|
-
name: "Supply Chain Globe",
|
|
70
|
-
args: {
|
|
71
|
-
...configs.ChainGlobeConfig,
|
|
72
|
-
type: "chain",
|
|
73
|
-
},
|
|
74
|
-
};
|
|
75
|
-
|
|
76
60
|
export const LocationGlobe = {
|
|
77
61
|
name: "Location Globe",
|
|
78
62
|
args: {
|
|
79
|
-
...configs.
|
|
63
|
+
...configs.DefaultMapConfig,
|
|
80
64
|
type: "location",
|
|
81
65
|
},
|
|
82
66
|
};
|
|
83
|
-
|
|
84
|
-
export const ProjectGlobe = {
|
|
85
|
-
name: "Project Globe",
|
|
86
|
-
args: {
|
|
87
|
-
...configs.ProjectGlobeConfig,
|
|
88
|
-
type: "project",
|
|
89
|
-
},
|
|
90
|
-
};
|
|
91
|
-
|
|
@@ -48,30 +48,15 @@ export const useGlobe = ({
|
|
|
48
48
|
const isMounted = useRef(true);
|
|
49
49
|
|
|
50
50
|
const addAllDataToMap = useCallback(() => {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
console.log('🚀 [GLOBE HOOK] mapRef exists:', !!mapRef);
|
|
54
|
-
console.log('🚀 [GLOBE HOOK] style loaded:', mapRef?.isStyleLoaded());
|
|
55
|
-
|
|
56
|
-
if (!data || !mapRef) {
|
|
57
|
-
console.log('❌ [GLOBE HOOK] addAllDataToMap early return - missing data or mapRef');
|
|
58
|
-
return;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
if (!mapRef.isStyleLoaded()) {
|
|
62
|
-
console.log('⏳ [GLOBE HOOK] Style not loaded yet, retrying in 100ms...');
|
|
63
|
-
setTimeout(() => {
|
|
64
|
-
addAllDataToMap();
|
|
65
|
-
}, 100);
|
|
51
|
+
|
|
52
|
+
if (!data || !mapRef || !mapRef.isStyleLoaded()) {
|
|
66
53
|
return;
|
|
67
54
|
}
|
|
68
55
|
|
|
56
|
+
// Prevent multiple calls with empty data
|
|
69
57
|
if (data.length === 0) {
|
|
70
|
-
console.log('❌ [GLOBE HOOK] addAllDataToMap early return - no data');
|
|
71
58
|
return;
|
|
72
59
|
}
|
|
73
|
-
|
|
74
|
-
console.log('✅ [GLOBE HOOK] Starting to add markers to map...');
|
|
75
60
|
|
|
76
61
|
// Clear existing markers using functional update to avoid dependency issues
|
|
77
62
|
setMapMarkers(currentMarkers => {
|
|
@@ -123,14 +108,8 @@ export const useGlobe = ({
|
|
|
123
108
|
const newMarkers = [];
|
|
124
109
|
const maxTotal = Math.max(...(data || []).map((d) => d.total || 0));
|
|
125
110
|
|
|
126
|
-
console.log('🎯 [GLOBE HOOK] Processing data items:', data.length);
|
|
127
111
|
data.forEach((d, i) => {
|
|
128
|
-
console.log(`🎯 [GLOBE HOOK] Processing item ${i}:`, d);
|
|
129
|
-
console.log(`🎯 [GLOBE HOOK] Item ${i} marker:`, d?.marker);
|
|
130
|
-
console.log(`🎯 [GLOBE HOOK] Item ${i} lat/lng:`, d?.marker?.lat, d?.marker?.lng);
|
|
131
|
-
|
|
132
112
|
if (d?.marker?.lat && d?.marker?.lng) {
|
|
133
|
-
console.log(`✅ [GLOBE HOOK] Item ${i} has valid coordinates, creating marker...`);
|
|
134
113
|
let marker;
|
|
135
114
|
let iconClassName = "";
|
|
136
115
|
let innerHtml = "";
|
|
@@ -233,8 +212,6 @@ export const useGlobe = ({
|
|
|
233
212
|
.setLngLat([d.marker.lng, d.marker.lat])
|
|
234
213
|
.setPopup(new mapboxgl.Popup().setDOMContent(div))
|
|
235
214
|
.addTo(mapRef);
|
|
236
|
-
|
|
237
|
-
console.log(`🎉 [GLOBE HOOK] Marker ${i} added to map at:`, [d.marker.lng, d.marker.lat]);
|
|
238
215
|
|
|
239
216
|
} else if (type === "territory") {
|
|
240
217
|
// Handle territory polygons
|
|
@@ -320,8 +297,6 @@ export const useGlobe = ({
|
|
|
320
297
|
.setLngLat([d.marker.lng, d.marker.lat])
|
|
321
298
|
.setPopup(new mapboxgl.Popup().setDOMContent(div))
|
|
322
299
|
.addTo(mapRef);
|
|
323
|
-
|
|
324
|
-
console.log(`🎉 [GLOBE HOOK] Default marker ${i} added to map at:`, [d.marker.lng, d.marker.lat]);
|
|
325
300
|
}
|
|
326
301
|
|
|
327
302
|
// Add click handler
|
|
@@ -355,7 +330,6 @@ export const useGlobe = ({
|
|
|
355
330
|
mapboxgl.accessToken = MAP_TOKEN;
|
|
356
331
|
|
|
357
332
|
// Create the map with Mapbox GL JS - 3D globe
|
|
358
|
-
console.log('🗺️ [GLOBE HOOK] Creating map with style:', STYLE_URL);
|
|
359
333
|
const map = new mapboxgl.Map({
|
|
360
334
|
container: container.current,
|
|
361
335
|
style: STYLE_URL,
|
|
@@ -374,13 +348,9 @@ export const useGlobe = ({
|
|
|
374
348
|
|
|
375
349
|
// Configure the map when style loads
|
|
376
350
|
map.on('style.load', () => {
|
|
377
|
-
console.log('🎨 [GLOBE HOOK] Style loaded event triggered');
|
|
378
|
-
console.log('🎨 [GLOBE HOOK] Map style loaded:', map.isStyleLoaded());
|
|
379
351
|
|
|
380
352
|
// Wait a bit for the style to fully load
|
|
381
353
|
setTimeout(() => {
|
|
382
|
-
console.log('🎨 [GLOBE HOOK] After timeout - Map style loaded:', map.isStyleLoaded());
|
|
383
|
-
|
|
384
354
|
// Set fog for the space background effect with stars - simplified to avoid errors
|
|
385
355
|
try {
|
|
386
356
|
map.setFog({
|
|
@@ -475,10 +445,9 @@ export const useGlobe = ({
|
|
|
475
445
|
// Add navigation controls
|
|
476
446
|
map.addControl(new mapboxgl.NavigationControl(), 'top-right');
|
|
477
447
|
|
|
478
|
-
console.log('🗺️ [GLOBE HOOK] Map created successfully');
|
|
479
448
|
return map;
|
|
480
449
|
} catch (error) {
|
|
481
|
-
console.error('
|
|
450
|
+
console.error('Error creating Mapbox GL JS globe:', error);
|
|
482
451
|
return null;
|
|
483
452
|
}
|
|
484
453
|
}, []);
|
|
@@ -491,13 +460,10 @@ export const useGlobe = ({
|
|
|
491
460
|
// }, [initialMarkerSetIsDone]);
|
|
492
461
|
|
|
493
462
|
useEffect(() => {
|
|
494
|
-
console.log('🔄 [GLOBE HOOK] useEffect for map creation - mapRef:', !!mapRef);
|
|
495
463
|
|
|
496
464
|
if (!mapRef) {
|
|
497
|
-
console.log('🔄 [GLOBE HOOK] Creating map instance...');
|
|
498
465
|
const instance = createInstance();
|
|
499
466
|
if (instance) {
|
|
500
|
-
console.log('🔄 [GLOBE HOOK] Map instance created, setting mapRef');
|
|
501
467
|
setMapRef(instance);
|
|
502
468
|
|
|
503
469
|
// Add comprehensive resize detection for Mapbox GL JS responsiveness
|
|
@@ -586,24 +552,15 @@ export const useGlobe = ({
|
|
|
586
552
|
}, [polygon, mapRef]);
|
|
587
553
|
|
|
588
554
|
useEffect(() => {
|
|
589
|
-
|
|
590
|
-
console.log('📥 [GLOBE HOOK] allData length:', allData?.length);
|
|
591
|
-
|
|
555
|
+
|
|
592
556
|
if (allData) {
|
|
593
557
|
if (allData.length === 0) {
|
|
594
|
-
console.log('⚠️ [GLOBE HOOK] Empty data array');
|
|
595
558
|
setEmptyStateIsVisible(true);
|
|
596
559
|
} else if (emptyStateIsVisible) {
|
|
597
560
|
setEmptyStateIsVisible(false);
|
|
598
561
|
}
|
|
599
|
-
|
|
600
|
-
console.log('🔍 [GLOBE HOOK] Filtering data with filterValidGPS...');
|
|
601
|
-
const filteredData = filterValidGPS(allData);
|
|
602
|
-
console.log('🔍 [GLOBE HOOK] filtered data result:', filteredData);
|
|
603
|
-
console.log('🔍 [GLOBE HOOK] filtered data length:', filteredData.length);
|
|
604
|
-
setData(filteredData);
|
|
562
|
+
setData(filterValidGPS(allData));
|
|
605
563
|
} else {
|
|
606
|
-
console.log('❌ [GLOBE HOOK] No allData provided');
|
|
607
564
|
setData(null);
|
|
608
565
|
}
|
|
609
566
|
}, [allData, emptyStateIsVisible]);
|
|
@@ -634,20 +591,7 @@ export const useGlobe = ({
|
|
|
634
591
|
}, [user, mapRef, allData]);
|
|
635
592
|
|
|
636
593
|
useEffect(() => {
|
|
637
|
-
|
|
638
|
-
mapRef: !!mapRef,
|
|
639
|
-
data: !!data,
|
|
640
|
-
dataLength: data?.length,
|
|
641
|
-
initialMarkerSetIsDone,
|
|
642
|
-
styleLoaded: mapRef?.isStyleLoaded()
|
|
643
|
-
});
|
|
644
|
-
|
|
645
|
-
if (mapRef && data && !initialMarkerSetIsDone) {
|
|
646
|
-
console.log('🚀 [GLOBE HOOK] Attempting to add markers...');
|
|
647
|
-
console.log('🚀 [GLOBE HOOK] Style loaded check:', mapRef.isStyleLoaded());
|
|
648
|
-
|
|
649
|
-
// Try to add markers immediately, and if style isn't loaded,
|
|
650
|
-
// the addAllDataToMap function will handle it
|
|
594
|
+
if (mapRef && data && !initialMarkerSetIsDone && mapRef.isStyleLoaded()) {
|
|
651
595
|
setInitialMarkerSetIsDone(true);
|
|
652
596
|
addAllDataToMap();
|
|
653
597
|
}
|
|
@@ -111,7 +111,7 @@ function Globe({
|
|
|
111
111
|
renderSider = null,
|
|
112
112
|
renderMarker = null,
|
|
113
113
|
type = "default",
|
|
114
|
-
showSider =
|
|
114
|
+
showSider = true,
|
|
115
115
|
filtersConfig,
|
|
116
116
|
onFilterChange = () => { },
|
|
117
117
|
isSatellite = false,
|
|
@@ -122,29 +122,11 @@ function Globe({
|
|
|
122
122
|
}) {
|
|
123
123
|
// Map data to include marker coordinates
|
|
124
124
|
const mappedData = useMemo(
|
|
125
|
-
() =>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
console.log('❌ [GLOBE COMPONENT] No data to map');
|
|
131
|
-
return [];
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
const mapped = data.map((d, i) => {
|
|
135
|
-
console.log(`📊 [GLOBE COMPONENT] Mapping item ${i}:`, d);
|
|
136
|
-
console.log(`📊 [GLOBE COMPONENT] Item ${i} GPS:`, d?.gps);
|
|
137
|
-
const result = {
|
|
138
|
-
...d,
|
|
139
|
-
marker: { lat: d?.gps?.latitude, lng: d?.gps?.longitude },
|
|
140
|
-
};
|
|
141
|
-
console.log(`📊 [GLOBE COMPONENT] Item ${i} mapped result:`, result);
|
|
142
|
-
return result;
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
console.log('📊 [GLOBE COMPONENT] Final mapped data:', mapped);
|
|
146
|
-
return mapped;
|
|
147
|
-
},
|
|
125
|
+
() =>
|
|
126
|
+
data.map((d) => ({
|
|
127
|
+
...d,
|
|
128
|
+
marker: { lat: d?.gps?.latitude, lng: d?.gps?.longitude },
|
|
129
|
+
})),
|
|
148
130
|
[data],
|
|
149
131
|
);
|
|
150
132
|
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
line-height: 20px !important;
|
|
54
54
|
color: #001529;
|
|
55
55
|
}
|
|
56
|
+
|
|
56
57
|
.ant-page-header {
|
|
57
58
|
.ant-page-header-heading-left {
|
|
58
59
|
overflow: initial;
|
|
@@ -355,6 +356,7 @@
|
|
|
355
356
|
overflow: auto;
|
|
356
357
|
flex-direction: column;
|
|
357
358
|
padding: 20px 100px 0 100px;
|
|
359
|
+
|
|
358
360
|
&.has-section {
|
|
359
361
|
width: calc(100% - 200px);
|
|
360
362
|
}
|
|
@@ -366,6 +368,10 @@
|
|
|
366
368
|
min-height: 100%;
|
|
367
369
|
margin: auto;
|
|
368
370
|
|
|
371
|
+
&.full-width-form {
|
|
372
|
+
max-width: unset;
|
|
373
|
+
}
|
|
374
|
+
|
|
369
375
|
@media screen and (max-width: 1200px) {
|
|
370
376
|
min-width: 700px;
|
|
371
377
|
}
|
|
@@ -375,16 +381,16 @@
|
|
|
375
381
|
}
|
|
376
382
|
|
|
377
383
|
.with-comment {
|
|
378
|
-
|
|
384
|
+
&>.ant-form-item-label>label {
|
|
379
385
|
width: 100%;
|
|
380
386
|
|
|
381
|
-
|
|
387
|
+
&>span {
|
|
382
388
|
display: flex;
|
|
383
389
|
justify-content: space-between;
|
|
384
390
|
width: 100%;
|
|
385
391
|
|
|
386
|
-
|
|
387
|
-
|
|
392
|
+
&>span {
|
|
393
|
+
&>button {
|
|
388
394
|
line-height: 1;
|
|
389
395
|
height: inherit;
|
|
390
396
|
font-size: 14px;
|
|
@@ -394,7 +400,7 @@
|
|
|
394
400
|
}
|
|
395
401
|
}
|
|
396
402
|
|
|
397
|
-
&.i-radioGroup
|
|
403
|
+
&.i-radioGroup>.ant-form-item-label>label>span {
|
|
398
404
|
font-style: normal;
|
|
399
405
|
font-weight: bold;
|
|
400
406
|
font-size: 18px;
|
|
@@ -473,20 +479,25 @@
|
|
|
473
479
|
width: 100%;
|
|
474
480
|
display: flex;
|
|
475
481
|
flex-direction: column;
|
|
482
|
+
|
|
476
483
|
.ant-transfer-list {
|
|
477
484
|
height: 300px;
|
|
485
|
+
|
|
478
486
|
.ant-transfer-list-body {
|
|
479
487
|
overflow-y: auto;
|
|
488
|
+
|
|
480
489
|
.ant-transfer-list-body-customize-wrapper {
|
|
481
490
|
padding: 0;
|
|
482
491
|
}
|
|
483
492
|
}
|
|
493
|
+
|
|
484
494
|
.ant-transfer-list-header {
|
|
485
495
|
.ant-transfer-list-header-selected {
|
|
486
496
|
display: flex;
|
|
487
497
|
flex-direction: row-reverse;
|
|
488
498
|
width: 100%;
|
|
489
499
|
justify-content: space-between;
|
|
500
|
+
|
|
490
501
|
.ant-transfer-list-header-title {
|
|
491
502
|
position: inherit;
|
|
492
503
|
font-size: var(--font-size-lg);
|
|
@@ -496,13 +507,16 @@
|
|
|
496
507
|
}
|
|
497
508
|
}
|
|
498
509
|
}
|
|
510
|
+
|
|
499
511
|
.ant-transfer-operation {
|
|
500
512
|
display: flex;
|
|
501
513
|
justify-content: space-around;
|
|
502
514
|
width: 100px;
|
|
503
515
|
margin: 10px;
|
|
516
|
+
|
|
504
517
|
button {
|
|
505
518
|
transform: rotate(90deg);
|
|
519
|
+
|
|
506
520
|
.anticon {
|
|
507
521
|
position: absolute;
|
|
508
522
|
top: 4px;
|
|
@@ -513,6 +527,7 @@
|
|
|
513
527
|
}
|
|
514
528
|
}
|
|
515
529
|
}
|
|
530
|
+
|
|
516
531
|
.ant-row.ant-form-item.comment-textarea {
|
|
517
532
|
margin-top: -12px;
|
|
518
533
|
|
|
@@ -556,7 +571,8 @@
|
|
|
556
571
|
align-self: stretch;
|
|
557
572
|
flex-grow: 0;
|
|
558
573
|
}
|
|
559
|
-
|
|
574
|
+
|
|
575
|
+
.i-transfer>.ant-form-item-label>label {
|
|
560
576
|
padding: 14px 0;
|
|
561
577
|
}
|
|
562
578
|
|
|
@@ -568,7 +584,7 @@
|
|
|
568
584
|
}
|
|
569
585
|
|
|
570
586
|
.i-modal {
|
|
571
|
-
|
|
587
|
+
&>.ant-col.ant-form-item-label label {
|
|
572
588
|
margin-top: 1.5rem !important;
|
|
573
589
|
font-size: 18px;
|
|
574
590
|
font-weight: 700;
|
|
@@ -576,7 +592,7 @@
|
|
|
576
592
|
line-height: 22px;
|
|
577
593
|
color: #001529;
|
|
578
594
|
|
|
579
|
-
span
|
|
595
|
+
span>span {
|
|
580
596
|
font-size: 18px;
|
|
581
597
|
font-weight: 700;
|
|
582
598
|
font-style: normal;
|
|
@@ -600,6 +616,7 @@
|
|
|
600
616
|
line-height: var(--size);
|
|
601
617
|
min-height: 32px;
|
|
602
618
|
padding: 5px 0;
|
|
619
|
+
|
|
603
620
|
&.even {
|
|
604
621
|
background: #f9fafc;
|
|
605
622
|
}
|
|
@@ -701,20 +718,25 @@
|
|
|
701
718
|
}
|
|
702
719
|
}
|
|
703
720
|
}
|
|
721
|
+
|
|
704
722
|
.total100 {
|
|
705
723
|
display: flex;
|
|
706
724
|
flex-direction: column;
|
|
707
725
|
width: 100%;
|
|
726
|
+
|
|
708
727
|
.ant-space-item:nth-of-type(3n) {
|
|
709
728
|
flex-grow: initial;
|
|
710
729
|
}
|
|
730
|
+
|
|
711
731
|
.ant-space-item:not(:last-of-type) {
|
|
712
732
|
width: calc(50% - 4px);
|
|
713
733
|
}
|
|
734
|
+
|
|
714
735
|
.ant-space {
|
|
715
736
|
margin-top: 8px;
|
|
716
737
|
}
|
|
717
738
|
}
|
|
739
|
+
|
|
718
740
|
.risk-plan {
|
|
719
741
|
display: flex;
|
|
720
742
|
flex-direction: row;
|
|
@@ -725,10 +747,12 @@
|
|
|
725
747
|
border-radius: 2px;
|
|
726
748
|
color: #001529;
|
|
727
749
|
flex-wrap: wrap;
|
|
750
|
+
|
|
728
751
|
.subScore {
|
|
729
752
|
display: flex;
|
|
730
753
|
min-width: 100px;
|
|
731
754
|
padding-top: 3.5px;
|
|
755
|
+
|
|
732
756
|
p {
|
|
733
757
|
margin: 0;
|
|
734
758
|
margin-bottom: 4px;
|
|
@@ -752,10 +776,12 @@
|
|
|
752
776
|
}
|
|
753
777
|
}
|
|
754
778
|
}
|
|
779
|
+
|
|
755
780
|
.risk-name {
|
|
756
781
|
color: #001529;
|
|
757
782
|
font-style: italic;
|
|
758
783
|
}
|
|
784
|
+
|
|
759
785
|
.i-imageUpload {
|
|
760
786
|
margin-top: 22px;
|
|
761
787
|
}
|
|
@@ -908,9 +934,11 @@
|
|
|
908
934
|
line-height: 20px !important;
|
|
909
935
|
color: #001529;
|
|
910
936
|
}
|
|
937
|
+
|
|
911
938
|
.ant-page-header {
|
|
912
939
|
.ant-space {
|
|
913
940
|
width: 100%;
|
|
941
|
+
|
|
914
942
|
.ant-space-item {
|
|
915
943
|
width: 100%;
|
|
916
944
|
}
|
|
@@ -1238,6 +1266,10 @@
|
|
|
1238
1266
|
min-height: 100%;
|
|
1239
1267
|
margin: auto;
|
|
1240
1268
|
|
|
1269
|
+
&.full-width-form {
|
|
1270
|
+
max-width: unset;
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1241
1273
|
.ant-input-number-group-wrapper {
|
|
1242
1274
|
width: 100%;
|
|
1243
1275
|
}
|
|
@@ -1258,13 +1290,13 @@
|
|
|
1258
1290
|
.ant-form-item-label label {
|
|
1259
1291
|
width: 100%;
|
|
1260
1292
|
|
|
1261
|
-
|
|
1293
|
+
&>span {
|
|
1262
1294
|
display: flex;
|
|
1263
1295
|
justify-content: space-between;
|
|
1264
1296
|
width: 100%;
|
|
1265
1297
|
|
|
1266
|
-
|
|
1267
|
-
|
|
1298
|
+
&>span {
|
|
1299
|
+
&>button {
|
|
1268
1300
|
line-height: 1;
|
|
1269
1301
|
height: inherit;
|
|
1270
1302
|
font-size: 14px;
|
|
@@ -1274,7 +1306,7 @@
|
|
|
1274
1306
|
}
|
|
1275
1307
|
}
|
|
1276
1308
|
|
|
1277
|
-
&.i-radioGroup
|
|
1309
|
+
&.i-radioGroup>.ant-form-item-label>label>span {
|
|
1278
1310
|
font-style: normal;
|
|
1279
1311
|
font-weight: bold;
|
|
1280
1312
|
font-size: 18px;
|
|
@@ -1353,20 +1385,25 @@
|
|
|
1353
1385
|
width: 100%;
|
|
1354
1386
|
display: flex;
|
|
1355
1387
|
flex-direction: column;
|
|
1388
|
+
|
|
1356
1389
|
.ant-transfer-list {
|
|
1357
1390
|
height: 300px;
|
|
1391
|
+
|
|
1358
1392
|
.ant-transfer-list-body {
|
|
1359
1393
|
overflow-y: auto;
|
|
1394
|
+
|
|
1360
1395
|
.ant-transfer-list-body-customize-wrapper {
|
|
1361
1396
|
padding: 0;
|
|
1362
1397
|
}
|
|
1363
1398
|
}
|
|
1399
|
+
|
|
1364
1400
|
.ant-transfer-list-header {
|
|
1365
1401
|
.ant-transfer-list-header-selected {
|
|
1366
1402
|
display: flex;
|
|
1367
1403
|
flex-direction: row-reverse;
|
|
1368
1404
|
width: 100%;
|
|
1369
1405
|
justify-content: space-between;
|
|
1406
|
+
|
|
1370
1407
|
.ant-transfer-list-header-title {
|
|
1371
1408
|
position: inherit;
|
|
1372
1409
|
font-size: var(--font-size-lg);
|
|
@@ -1376,13 +1413,16 @@
|
|
|
1376
1413
|
}
|
|
1377
1414
|
}
|
|
1378
1415
|
}
|
|
1416
|
+
|
|
1379
1417
|
.ant-transfer-operation {
|
|
1380
1418
|
display: flex;
|
|
1381
1419
|
justify-content: space-around;
|
|
1382
1420
|
width: 100px;
|
|
1383
1421
|
margin: 10px;
|
|
1422
|
+
|
|
1384
1423
|
button {
|
|
1385
1424
|
transform: rotate(90deg);
|
|
1425
|
+
|
|
1386
1426
|
.anticon {
|
|
1387
1427
|
position: absolute;
|
|
1388
1428
|
top: 4px;
|
|
@@ -1410,6 +1450,7 @@
|
|
|
1410
1450
|
display: none;
|
|
1411
1451
|
}
|
|
1412
1452
|
}
|
|
1453
|
+
|
|
1413
1454
|
.ant-form-item-control-input {
|
|
1414
1455
|
max-width: 100%;
|
|
1415
1456
|
}
|
|
@@ -1456,7 +1497,7 @@
|
|
|
1456
1497
|
flex: 1;
|
|
1457
1498
|
}
|
|
1458
1499
|
|
|
1459
|
-
.i-transfer
|
|
1500
|
+
.i-transfer>.ant-form-item-label>label {
|
|
1460
1501
|
padding: 14px 0;
|
|
1461
1502
|
}
|
|
1462
1503
|
|
|
@@ -1499,7 +1540,7 @@
|
|
|
1499
1540
|
}
|
|
1500
1541
|
|
|
1501
1542
|
.i-modal {
|
|
1502
|
-
|
|
1543
|
+
&>.ant-col.ant-form-item-label label {
|
|
1503
1544
|
margin-top: 1.5rem !important;
|
|
1504
1545
|
font-size: 18px;
|
|
1505
1546
|
font-weight: 700;
|
|
@@ -1507,7 +1548,7 @@
|
|
|
1507
1548
|
line-height: 22px;
|
|
1508
1549
|
color: #001529;
|
|
1509
1550
|
|
|
1510
|
-
span
|
|
1551
|
+
span>span {
|
|
1511
1552
|
font-size: 18px;
|
|
1512
1553
|
font-weight: 700;
|
|
1513
1554
|
font-style: normal;
|
|
@@ -1563,6 +1604,7 @@
|
|
|
1563
1604
|
.ajax-modal-view {
|
|
1564
1605
|
padding-top: 0px;
|
|
1565
1606
|
}
|
|
1607
|
+
|
|
1566
1608
|
.total-inputs-1 {
|
|
1567
1609
|
.ajax-modal-view {
|
|
1568
1610
|
.remove-button-row {
|
|
@@ -1827,16 +1869,20 @@
|
|
|
1827
1869
|
display: flex;
|
|
1828
1870
|
flex-direction: column;
|
|
1829
1871
|
width: 100%;
|
|
1872
|
+
|
|
1830
1873
|
.ant-space-item:nth-of-type(3n) {
|
|
1831
1874
|
flex-grow: initial;
|
|
1832
1875
|
}
|
|
1876
|
+
|
|
1833
1877
|
.ant-space-item:not(:last-of-type) {
|
|
1834
1878
|
width: calc(50% - 4px);
|
|
1835
1879
|
}
|
|
1880
|
+
|
|
1836
1881
|
.ant-space {
|
|
1837
1882
|
margin-top: 8px;
|
|
1838
1883
|
}
|
|
1839
1884
|
}
|
|
1885
|
+
|
|
1840
1886
|
.risk-plan {
|
|
1841
1887
|
padding: var(--size-lg);
|
|
1842
1888
|
border-radius: 4px;
|
|
@@ -1908,11 +1954,11 @@
|
|
|
1908
1954
|
}
|
|
1909
1955
|
|
|
1910
1956
|
.ant-upload-list {
|
|
1911
|
-
width: var(--static-width, 614px) !important;
|
|
1957
|
+
width: var(--static-width, 614px) !important;
|
|
1912
1958
|
}
|
|
1913
1959
|
|
|
1914
1960
|
.ant-select-selector {
|
|
1915
|
-
width: var(--static-width) !important;
|
|
1961
|
+
width: var(--static-width) !important;
|
|
1916
1962
|
}
|
|
1917
1963
|
|
|
1918
1964
|
.ant-upload-list-item-container {
|
|
@@ -2082,4 +2128,4 @@
|
|
|
2082
2128
|
flex: 1;
|
|
2083
2129
|
}
|
|
2084
2130
|
}
|
|
2085
|
-
}
|
|
2131
|
+
}
|
|
@@ -54,6 +54,7 @@ export const EditForm = ({
|
|
|
54
54
|
changeErrors = () => {},
|
|
55
55
|
evaluationConfig = [],
|
|
56
56
|
staticWidth = "614px",
|
|
57
|
+
fullWidth = false,
|
|
57
58
|
}) => {
|
|
58
59
|
const [isSubmitting] = useState(false);
|
|
59
60
|
const formData = JSON.parse(JSON.stringify(convertUndefinedToNull(data) || {}));
|
|
@@ -342,8 +343,8 @@ export const EditForm = ({
|
|
|
342
343
|
key={id}
|
|
343
344
|
name={id}
|
|
344
345
|
layout="vertical"
|
|
345
|
-
style={{ maxWidth: 700 }}
|
|
346
|
-
className={`main-form${formClass ? ` ${formClass}` : ""}`}
|
|
346
|
+
style={{ maxWidth: fullWidth ? "unset" : 700 }}
|
|
347
|
+
className={`main-form${formClass ? ` ${formClass}` : ""} `}
|
|
347
348
|
onValuesChange={(_changedValue, _allValues) => {
|
|
348
349
|
const changedValue = { ..._changedValue };
|
|
349
350
|
const allValues = { ..._allValues };
|