datastake-daf 0.6.359 → 0.6.361
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 +30 -54
- package/dist/style/datastake/mapbox-gl.css +330 -0
- package/package.json +1 -1
- package/src/@daf/core/components/Charts/ColumnChart/ColumnChart.stories.jsx +0 -28
- package/src/@daf/core/components/Graphs/StakeholderMappings/index.jsx +7 -15
- package/src/@daf/core/components/Graphs/components/BaseGraph.jsx +37 -40
- package/src/@daf/core/components/Graphs/components/Nodes/NameNode.jsx +32 -42
- package/src/@daf/core/components/Graphs/components/Nodes/PrimaryNode.jsx +3 -4
- package/src/@daf/core/components/Screens/Admin/AdminModals/AddUser/index.jsx +2 -2
package/dist/components/index.js
CHANGED
|
@@ -51038,7 +51038,6 @@ function PrimaryNode({
|
|
|
51038
51038
|
}
|
|
51039
51039
|
}), /*#__PURE__*/jsxRuntime.jsxs(Style$f, {
|
|
51040
51040
|
className: "flex",
|
|
51041
|
-
$isPdf: data?.isPdf,
|
|
51042
51041
|
children: [/*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51043
51042
|
className: "left flex flex-column justify-center",
|
|
51044
51043
|
style: {
|
|
@@ -51149,7 +51148,6 @@ function PrimaryNode({
|
|
|
51149
51148
|
}
|
|
51150
51149
|
const Style$f = dt.div`
|
|
51151
51150
|
width: ${MAIN_NODE_WIDTH}px;
|
|
51152
|
-
height: ${props => props.$isPdf ? `${MAIN_NODE_HEIGHT}px` : 'auto'};
|
|
51153
51151
|
display: flex;
|
|
51154
51152
|
background: white;
|
|
51155
51153
|
border-radius: 8px;
|
|
@@ -51169,7 +51167,7 @@ const Style$f = dt.div`
|
|
|
51169
51167
|
flex: 1;
|
|
51170
51168
|
|
|
51171
51169
|
.top {
|
|
51172
|
-
padding:
|
|
51170
|
+
padding: 16px 12px;
|
|
51173
51171
|
border-bottom: 1px solid var(--base-gray-30);
|
|
51174
51172
|
|
|
51175
51173
|
span {
|
|
@@ -51196,7 +51194,7 @@ const Style$f = dt.div`
|
|
|
51196
51194
|
}
|
|
51197
51195
|
|
|
51198
51196
|
.bottom {
|
|
51199
|
-
padding:
|
|
51197
|
+
padding: 16px;
|
|
51200
51198
|
display: flex;
|
|
51201
51199
|
margin-top: 6px;
|
|
51202
51200
|
margin-bottom: 6px;
|
|
@@ -51380,7 +51378,6 @@ function NameNode({
|
|
|
51380
51378
|
token
|
|
51381
51379
|
} = useToken$7();
|
|
51382
51380
|
const translateFN = typeof data?.t === "function" ? data.t : key => key;
|
|
51383
|
-
const isPdf = data?.isPdf;
|
|
51384
51381
|
return /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
|
|
51385
51382
|
children: [/*#__PURE__*/jsxRuntime.jsx(react.Handle, {
|
|
51386
51383
|
type: "source",
|
|
@@ -51399,7 +51396,6 @@ function NameNode({
|
|
|
51399
51396
|
opacity: 0
|
|
51400
51397
|
}
|
|
51401
51398
|
}), /*#__PURE__*/jsxRuntime.jsxs(Style$d, {
|
|
51402
|
-
$isPdf: isPdf,
|
|
51403
51399
|
style: {
|
|
51404
51400
|
opacity: data.isEmpty ? 0.5 : 1
|
|
51405
51401
|
},
|
|
@@ -51450,7 +51446,7 @@ function NameNode({
|
|
|
51450
51446
|
}
|
|
51451
51447
|
})
|
|
51452
51448
|
}) : null]
|
|
51453
|
-
}),
|
|
51449
|
+
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
51454
51450
|
style: {
|
|
51455
51451
|
marginLeft: "auto"
|
|
51456
51452
|
},
|
|
@@ -51487,32 +51483,27 @@ function NameNode({
|
|
|
51487
51483
|
});
|
|
51488
51484
|
}
|
|
51489
51485
|
const Style$d = dt.div`
|
|
51490
|
-
|
|
51491
|
-
|
|
51492
|
-
|
|
51493
|
-
|
|
51494
|
-
|
|
51495
|
-
|
|
51496
|
-
|
|
51497
|
-
|
|
51498
|
-
box-shadow: 0px 5.64px 17.56px 5.02px #0000000d;
|
|
51499
|
-
/* Ensure borders/colors survive PDF rendering */
|
|
51500
|
-
border: ${props => props.$isPdf ? '1px solid var(--base-gray-30)' : 'none'};
|
|
51501
|
-
-webkit-print-color-adjust: exact;
|
|
51502
|
-
print-color-adjust: exact;
|
|
51486
|
+
width: ${NAME_CARD_WIDTH}px;
|
|
51487
|
+
display: flex;
|
|
51488
|
+
background: white;
|
|
51489
|
+
border-radius: 8px;
|
|
51490
|
+
box-shadow: 0px 3.76px 10.03px 0px #00000014;
|
|
51491
|
+
box-shadow: 0px 1.88px 3.76px -2.51px #0000001f;
|
|
51492
|
+
overflow: hidden;
|
|
51493
|
+
box-shadow: 0px 5.64px 17.56px 5.02px #0000000d;
|
|
51503
51494
|
|
|
51504
|
-
|
|
51505
|
-
|
|
51506
|
-
|
|
51507
|
-
|
|
51508
|
-
|
|
51509
|
-
|
|
51495
|
+
.left {
|
|
51496
|
+
width: 32px;
|
|
51497
|
+
background: red;
|
|
51498
|
+
border-top-left-radius: 12px;
|
|
51499
|
+
border-bottom-left-radius: 12px;
|
|
51500
|
+
}
|
|
51510
51501
|
|
|
51511
|
-
|
|
51512
|
-
|
|
51513
|
-
|
|
51514
|
-
|
|
51515
|
-
|
|
51502
|
+
.right {
|
|
51503
|
+
padding: 16px 12px;
|
|
51504
|
+
width: 100%
|
|
51505
|
+
border-bottom: 1px solid var(--base-gray-30);
|
|
51506
|
+
}
|
|
51516
51507
|
`;
|
|
51517
51508
|
|
|
51518
51509
|
const Style$c = dt.div`
|
|
@@ -52087,7 +52078,6 @@ const BaseGraph = /*#__PURE__*/React.forwardRef(function BaseGraph({
|
|
|
52087
52078
|
t,
|
|
52088
52079
|
withDuration = true,
|
|
52089
52080
|
onFilterChange,
|
|
52090
|
-
isPdf,
|
|
52091
52081
|
...props
|
|
52092
52082
|
}, ref) {
|
|
52093
52083
|
const {
|
|
@@ -52144,7 +52134,7 @@ const BaseGraph = /*#__PURE__*/React.forwardRef(function BaseGraph({
|
|
|
52144
52134
|
duration: withDuration ? 300 : undefined
|
|
52145
52135
|
},
|
|
52146
52136
|
...props,
|
|
52147
|
-
children:
|
|
52137
|
+
children: /*#__PURE__*/jsxRuntime.jsxs(react.Controls, {
|
|
52148
52138
|
position: "bottom-right",
|
|
52149
52139
|
showFitView: false,
|
|
52150
52140
|
showInteractive: false,
|
|
@@ -52661,8 +52651,7 @@ function positionDataNodes(_ref2) {
|
|
|
52661
52651
|
total,
|
|
52662
52652
|
mainNode,
|
|
52663
52653
|
type,
|
|
52664
|
-
hasContent
|
|
52665
|
-
isPdf = false
|
|
52654
|
+
hasContent
|
|
52666
52655
|
} = _ref2;
|
|
52667
52656
|
const DATA_NODE_WIDTH = DATA_NODE_SIZE[type].width;
|
|
52668
52657
|
const DATA_NODE_HEIGHT = DATA_NODE_SIZE[type].height;
|
|
@@ -52684,7 +52673,7 @@ function positionDataNodes(_ref2) {
|
|
|
52684
52673
|
const X_SPACE_FROM_ICON_NODE = 130;
|
|
52685
52674
|
const MIN_SPACE_REQUIRED = Y_SPACE_FROM_SIBLINGS + DATA_NODE_HEIGHT;
|
|
52686
52675
|
const totalHeight = total * MIN_SPACE_REQUIRED;
|
|
52687
|
-
const iconNodeCenterY =
|
|
52676
|
+
const iconNodeCenterY = iconNode.position.y + ICON_NODE_HEIGHT / 2 + (hasContent ? 26.5 : type === "primaryNode" ? 15 : 16.5);
|
|
52688
52677
|
const startY = iconNodeCenterY - totalHeight / 2;
|
|
52689
52678
|
const END_Y = startY + totalHeight;
|
|
52690
52679
|
const yOffset = index * MIN_SPACE_REQUIRED;
|
|
@@ -52760,8 +52749,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52760
52749
|
onClick: (data === null || data === void 0 ? void 0 : data.onClick) || undefined,
|
|
52761
52750
|
totalSources: data === null || data === void 0 ? void 0 : data.totalSources,
|
|
52762
52751
|
backgroundColor: (data === null || data === void 0 ? void 0 : data.backgroundColor) || "#ade9e1",
|
|
52763
|
-
iconColor: (data === null || data === void 0 ? void 0 : data.iconColor) || "#08949a"
|
|
52764
|
-
isPdf
|
|
52752
|
+
iconColor: (data === null || data === void 0 ? void 0 : data.iconColor) || "#08949a"
|
|
52765
52753
|
},
|
|
52766
52754
|
position: {
|
|
52767
52755
|
x: centerX - MAIN_NODE_WIDTH / 2,
|
|
@@ -52783,7 +52771,6 @@ function StakeholderMappings(_ref3) {
|
|
|
52783
52771
|
order: child.order,
|
|
52784
52772
|
isLeftSide: child.order % 2 !== 0,
|
|
52785
52773
|
emptyName: child.emptyName,
|
|
52786
|
-
isPdf,
|
|
52787
52774
|
onSelect: !isSelectable ? undefined : nodeId => {
|
|
52788
52775
|
if (selectedIconNodes.includes(nodeId)) {
|
|
52789
52776
|
setSelectedIconNodes(prev => prev.filter(id => id !== nodeId));
|
|
@@ -52846,8 +52833,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52846
52833
|
total: 1,
|
|
52847
52834
|
mainNode,
|
|
52848
52835
|
type: "nameNode",
|
|
52849
|
-
hasContent: (node === null || node === void 0 || (_node$data4 = node.data) === null || _node$data4 === void 0 ? void 0 : _node$data4.content) !== undefined && (node === null || node === void 0 || (_node$data5 = node.data) === null || _node$data5 === void 0 ? void 0 : _node$data5.content) !== null ? true : false
|
|
52850
|
-
isPdf
|
|
52836
|
+
hasContent: (node === null || node === void 0 || (_node$data4 = node.data) === null || _node$data4 === void 0 ? void 0 : _node$data4.content) !== undefined && (node === null || node === void 0 || (_node$data5 = node.data) === null || _node$data5 === void 0 ? void 0 : _node$data5.content) !== null ? true : false
|
|
52851
52837
|
})
|
|
52852
52838
|
}];
|
|
52853
52839
|
}
|
|
@@ -52861,8 +52847,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52861
52847
|
data: {
|
|
52862
52848
|
name: node === null || node === void 0 || (_node$data6 = node.data) === null || _node$data6 === void 0 ? void 0 : _node$data6.name,
|
|
52863
52849
|
content: node === null || node === void 0 || (_node$data7 = node.data) === null || _node$data7 === void 0 ? void 0 : _node$data7.content,
|
|
52864
|
-
isOnlyOne: true
|
|
52865
|
-
isPdf: true
|
|
52850
|
+
isOnlyOne: true
|
|
52866
52851
|
},
|
|
52867
52852
|
targetHandle: node.data.order % 2 === 0 ? "left-handle-target" : "right-handle-target"
|
|
52868
52853
|
});
|
|
@@ -52941,8 +52926,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52941
52926
|
total,
|
|
52942
52927
|
mainNode,
|
|
52943
52928
|
type: child.type || "primaryNode",
|
|
52944
|
-
hasContent: node !== null && node !== void 0 && (_node$data15 = node.data) !== null && _node$data15 !== void 0 && _node$data15.content ? true : false
|
|
52945
|
-
isPdf
|
|
52929
|
+
hasContent: node !== null && node !== void 0 && (_node$data15 = node.data) !== null && _node$data15 !== void 0 && _node$data15.content ? true : false
|
|
52946
52930
|
})
|
|
52947
52931
|
};
|
|
52948
52932
|
});
|
|
@@ -52982,8 +52966,7 @@ function StakeholderMappings(_ref3) {
|
|
|
52982
52966
|
duration: 300
|
|
52983
52967
|
});
|
|
52984
52968
|
},
|
|
52985
|
-
ref: reactFlowWrapper
|
|
52986
|
-
isPdf: isPdf
|
|
52969
|
+
ref: reactFlowWrapper
|
|
52987
52970
|
});
|
|
52988
52971
|
}
|
|
52989
52972
|
var index$1 = withProvider(StakeholderMappings);
|
|
@@ -54022,13 +54005,6 @@ function AddUserModal({
|
|
|
54022
54005
|
}
|
|
54023
54006
|
}
|
|
54024
54007
|
})
|
|
54025
|
-
}), accountUsed && /*#__PURE__*/jsxRuntime.jsx(antd.Alert, {
|
|
54026
|
-
message: t("FB00001"),
|
|
54027
|
-
type: "error",
|
|
54028
|
-
className: "mb-2",
|
|
54029
|
-
showIcon: true,
|
|
54030
|
-
closable: true,
|
|
54031
|
-
onClose: () => setAccountUsed(false)
|
|
54032
54008
|
}), /*#__PURE__*/jsxRuntime.jsx(antd.Form.Item, {
|
|
54033
54009
|
name: "role",
|
|
54034
54010
|
label: t("Role"),
|
|
@@ -0,0 +1,330 @@
|
|
|
1
|
+
/* Isolated Mapbox GL CSS - Scoped to prevent Leaflet conflicts */
|
|
2
|
+
|
|
3
|
+
/* Mapbox GL Core Styles - Scoped with .mapbox-gl-scope */
|
|
4
|
+
.mapbox-gl-scope .mapboxgl-map {
|
|
5
|
+
font: 12px/20px Helvetica Neue, Arial, Helvetica, sans-serif;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
position: relative;
|
|
8
|
+
-webkit-tap-highlight-color: rgb(0 0 0/0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.mapbox-gl-scope .mapboxgl-canvas {
|
|
12
|
+
left: 0;
|
|
13
|
+
position: absolute;
|
|
14
|
+
top: 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.mapbox-gl-scope .mapboxgl-map:-webkit-full-screen {
|
|
18
|
+
height: 100%;
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.mapbox-gl-scope .mapboxgl-canary {
|
|
23
|
+
background-color: salmon;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive,
|
|
27
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button.mapboxgl-ctrl-compass {
|
|
28
|
+
cursor: grab;
|
|
29
|
+
-webkit-user-select: none;
|
|
30
|
+
user-select: none;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive.mapboxgl-track-pointer {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-interactive:active,
|
|
38
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button.mapboxgl-ctrl-compass:active {
|
|
39
|
+
cursor: grabbing;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate,
|
|
43
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate .mapboxgl-canvas {
|
|
44
|
+
touch-action: pan-x pan-y;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-drag-pan,
|
|
48
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-drag-pan .mapboxgl-canvas {
|
|
49
|
+
touch-action: pinch-zoom;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan,
|
|
53
|
+
.mapbox-gl-scope .mapboxgl-canvas-container.mapboxgl-touch-zoom-rotate.mapboxgl-touch-drag-pan .mapboxgl-canvas {
|
|
54
|
+
touch-action: none;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* Control positioning */
|
|
58
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom,
|
|
59
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left,
|
|
60
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right,
|
|
61
|
+
.mapbox-gl-scope .mapboxgl-ctrl-left,
|
|
62
|
+
.mapbox-gl-scope .mapboxgl-ctrl-right,
|
|
63
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top,
|
|
64
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top-left,
|
|
65
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top-right {
|
|
66
|
+
pointer-events: none;
|
|
67
|
+
position: absolute;
|
|
68
|
+
z-index: 2;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top-left {
|
|
72
|
+
left: 0;
|
|
73
|
+
top: 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top {
|
|
77
|
+
left: 50%;
|
|
78
|
+
top: 0;
|
|
79
|
+
transform: translateX(-50%);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top-right {
|
|
83
|
+
right: 0;
|
|
84
|
+
top: 0;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.mapbox-gl-scope .mapboxgl-ctrl-right {
|
|
88
|
+
right: 0;
|
|
89
|
+
top: 50%;
|
|
90
|
+
transform: translateY(-50%);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right {
|
|
94
|
+
bottom: 0;
|
|
95
|
+
right: 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom {
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 50%;
|
|
101
|
+
transform: translateX(-50%);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left {
|
|
105
|
+
bottom: 0;
|
|
106
|
+
left: 0;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.mapbox-gl-scope .mapboxgl-ctrl-left {
|
|
110
|
+
left: 0;
|
|
111
|
+
top: 50%;
|
|
112
|
+
transform: translateY(-50%);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.mapbox-gl-scope .mapboxgl-ctrl {
|
|
116
|
+
clear: both;
|
|
117
|
+
pointer-events: auto;
|
|
118
|
+
transform: translate(0);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top-left .mapboxgl-ctrl {
|
|
122
|
+
float: left;
|
|
123
|
+
margin: 10px 0 0 10px;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top .mapboxgl-ctrl {
|
|
127
|
+
float: left;
|
|
128
|
+
margin: 10px 0;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.mapbox-gl-scope .mapboxgl-ctrl-top-right .mapboxgl-ctrl {
|
|
132
|
+
float: right;
|
|
133
|
+
margin: 10px 10px 0 0;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom-right .mapboxgl-ctrl,
|
|
137
|
+
.mapbox-gl-scope .mapboxgl-ctrl-right .mapboxgl-ctrl {
|
|
138
|
+
float: right;
|
|
139
|
+
margin: 0 10px 10px 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom .mapboxgl-ctrl {
|
|
143
|
+
float: left;
|
|
144
|
+
margin: 10px 0;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.mapbox-gl-scope .mapboxgl-ctrl-bottom-left .mapboxgl-ctrl,
|
|
148
|
+
.mapbox-gl-scope .mapboxgl-ctrl-left .mapboxgl-ctrl {
|
|
149
|
+
float: left;
|
|
150
|
+
margin: 0 0 10px 10px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Control group styling */
|
|
154
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group {
|
|
155
|
+
background: #fff;
|
|
156
|
+
border-radius: 4px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group:not(:empty) {
|
|
160
|
+
box-shadow: 0 0 0 2px #0000001a;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button {
|
|
164
|
+
background-color: initial;
|
|
165
|
+
border: 0;
|
|
166
|
+
box-sizing: border-box;
|
|
167
|
+
cursor: pointer;
|
|
168
|
+
display: block;
|
|
169
|
+
height: 29px;
|
|
170
|
+
outline: none;
|
|
171
|
+
overflow: hidden;
|
|
172
|
+
padding: 0;
|
|
173
|
+
width: 29px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button+button {
|
|
177
|
+
border-top: 1px solid #ddd;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.mapbox-gl-scope .mapboxgl-ctrl button .mapboxgl-ctrl-icon {
|
|
181
|
+
background-position: 50%;
|
|
182
|
+
background-repeat: no-repeat;
|
|
183
|
+
display: block;
|
|
184
|
+
height: 100%;
|
|
185
|
+
width: 100%;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attrib-button:focus,
|
|
189
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button:focus {
|
|
190
|
+
box-shadow: 0 0 2px 2px #0096ff;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mapbox-gl-scope .mapboxgl-ctrl button:disabled {
|
|
194
|
+
cursor: not-allowed;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.mapbox-gl-scope .mapboxgl-ctrl button:disabled .mapboxgl-ctrl-icon {
|
|
198
|
+
opacity: .25;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button:first-child {
|
|
202
|
+
border-radius: 4px 4px 0 0;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button:last-child {
|
|
206
|
+
border-radius: 0 0 4px 4px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.mapbox-gl-scope .mapboxgl-ctrl-group button:only-child {
|
|
210
|
+
border-radius: inherit;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
.mapbox-gl-scope .mapboxgl-ctrl button:not(:disabled):hover {
|
|
214
|
+
background-color: #0000000d;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/* Marker styles */
|
|
218
|
+
.mapbox-gl-scope .mapboxgl-marker {
|
|
219
|
+
position: absolute;
|
|
220
|
+
z-index: 1;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
.mapbox-gl-scope .mapboxgl-marker svg {
|
|
224
|
+
display: block;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/* Popup styles */
|
|
228
|
+
.mapbox-gl-scope .mapboxgl-popup {
|
|
229
|
+
position: absolute;
|
|
230
|
+
text-align: center;
|
|
231
|
+
margin-bottom: 20px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
.mapbox-gl-scope .mapboxgl-popup-content-wrapper {
|
|
235
|
+
padding: 1px;
|
|
236
|
+
text-align: left;
|
|
237
|
+
border-radius: 12px;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.mapbox-gl-scope .mapboxgl-popup-content {
|
|
241
|
+
margin: 13px 24px 13px 20px;
|
|
242
|
+
line-height: 1.3;
|
|
243
|
+
font-size: 13px;
|
|
244
|
+
min-height: 1px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
.mapbox-gl-scope .mapboxgl-popup-content p {
|
|
248
|
+
margin: 17px 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.mapbox-gl-scope .mapboxgl-popup-tip-container {
|
|
252
|
+
width: 40px;
|
|
253
|
+
height: 20px;
|
|
254
|
+
position: absolute;
|
|
255
|
+
left: 50%;
|
|
256
|
+
margin-top: -1px;
|
|
257
|
+
margin-left: -20px;
|
|
258
|
+
overflow: hidden;
|
|
259
|
+
pointer-events: none;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
.mapbox-gl-scope .mapboxgl-popup-tip {
|
|
263
|
+
width: 17px;
|
|
264
|
+
height: 17px;
|
|
265
|
+
padding: 1px;
|
|
266
|
+
margin: -10px auto 0;
|
|
267
|
+
pointer-events: auto;
|
|
268
|
+
-webkit-transform: rotate(45deg);
|
|
269
|
+
-moz-transform: rotate(45deg);
|
|
270
|
+
-ms-transform: rotate(45deg);
|
|
271
|
+
transform: rotate(45deg);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
.mapbox-gl-scope .mapboxgl-popup-content-wrapper,
|
|
275
|
+
.mapbox-gl-scope .mapboxgl-popup-tip {
|
|
276
|
+
background: white;
|
|
277
|
+
color: #333;
|
|
278
|
+
box-shadow: 0 3px 14px rgba(0, 0, 0, 0.4);
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.mapbox-gl-scope .mapboxgl-popup-close-button {
|
|
282
|
+
position: absolute;
|
|
283
|
+
top: 0;
|
|
284
|
+
right: 0;
|
|
285
|
+
border: none;
|
|
286
|
+
text-align: center;
|
|
287
|
+
width: 24px;
|
|
288
|
+
height: 24px;
|
|
289
|
+
font: 16px/24px Tahoma, Verdana, sans-serif;
|
|
290
|
+
color: #757575;
|
|
291
|
+
text-decoration: none;
|
|
292
|
+
background: transparent;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.mapbox-gl-scope .mapboxgl-popup-close-button:hover,
|
|
296
|
+
.mapbox-gl-scope .mapboxgl-popup-close-button:focus {
|
|
297
|
+
color: #585858;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/* Attribution */
|
|
301
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attribution {
|
|
302
|
+
background: #fff;
|
|
303
|
+
background: rgba(255, 255, 255, 0.8);
|
|
304
|
+
margin: 0;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attribution,
|
|
308
|
+
.mapbox-gl-scope .mapboxgl-ctrl-scale-line {
|
|
309
|
+
padding: 0 5px;
|
|
310
|
+
color: #333;
|
|
311
|
+
line-height: 1.4;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attribution a {
|
|
315
|
+
text-decoration: none;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attribution a:hover,
|
|
319
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attribution a:focus {
|
|
320
|
+
text-decoration: underline;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
/* Hide attribution by default */
|
|
324
|
+
.mapbox-gl-scope .mapboxgl-ctrl-attribution {
|
|
325
|
+
display: none !important;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
.mapbox-gl-scope .mapboxgl-ctrl-logo {
|
|
329
|
+
display: none !important;
|
|
330
|
+
}
|
package/package.json
CHANGED
|
@@ -457,34 +457,6 @@ export const Pdf = {
|
|
|
457
457
|
showBackground: true,
|
|
458
458
|
isPercentage: true,
|
|
459
459
|
shouldSeperateLegendName: true,
|
|
460
|
-
formattedXAxis: (s) => {
|
|
461
|
-
if (!s) return "";
|
|
462
|
-
|
|
463
|
-
const limit = 20;
|
|
464
|
-
let result = "";
|
|
465
|
-
let line = "";
|
|
466
|
-
|
|
467
|
-
for (let word of s.split(" ")) {
|
|
468
|
-
if ((line + word).length <= limit) {
|
|
469
|
-
line += (line ? " " : "") + word;
|
|
470
|
-
} else if (word.length > limit) {
|
|
471
|
-
// break long word with hyphen
|
|
472
|
-
while (word.length > limit) {
|
|
473
|
-
result += word.slice(0, limit - 1) + "-\n";
|
|
474
|
-
word = word.slice(limit - 1);
|
|
475
|
-
}
|
|
476
|
-
line = word;
|
|
477
|
-
} else {
|
|
478
|
-
// move current line into result
|
|
479
|
-
if (line) result += line + "\n";
|
|
480
|
-
line = word;
|
|
481
|
-
}
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
if (line) result += line;
|
|
485
|
-
|
|
486
|
-
return result;
|
|
487
|
-
},
|
|
488
460
|
},
|
|
489
461
|
render: (args) => {
|
|
490
462
|
return <Widget title="Pdf Column Chart" className={"with-border-header"}>
|
|
@@ -72,7 +72,6 @@ function positionDataNodes({
|
|
|
72
72
|
mainNode,
|
|
73
73
|
type,
|
|
74
74
|
hasContent,
|
|
75
|
-
isPdf = false,
|
|
76
75
|
}) {
|
|
77
76
|
const DATA_NODE_WIDTH = DATA_NODE_SIZE[type].width;
|
|
78
77
|
const DATA_NODE_HEIGHT = DATA_NODE_SIZE[type].height;
|
|
@@ -96,11 +95,10 @@ function positionDataNodes({
|
|
|
96
95
|
|
|
97
96
|
const totalHeight = total * MIN_SPACE_REQUIRED;
|
|
98
97
|
|
|
99
|
-
const iconNodeCenterY =
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
(hasContent ? 26.5 : type === "primaryNode" ? 15 : 16.5);
|
|
98
|
+
const iconNodeCenterY =
|
|
99
|
+
iconNode.position.y +
|
|
100
|
+
ICON_NODE_HEIGHT / 2 +
|
|
101
|
+
(hasContent ? 26.5 : type === "primaryNode" ? 15 : 16.5);
|
|
104
102
|
const startY = iconNodeCenterY - totalHeight / 2;
|
|
105
103
|
const END_Y = startY + totalHeight;
|
|
106
104
|
|
|
@@ -185,7 +183,6 @@ function StakeholderMappings({
|
|
|
185
183
|
totalSources: data?.totalSources,
|
|
186
184
|
backgroundColor: data?.backgroundColor || "#ade9e1",
|
|
187
185
|
iconColor: data?.iconColor || "#08949a",
|
|
188
|
-
isPdf,
|
|
189
186
|
},
|
|
190
187
|
position: {
|
|
191
188
|
x: centerX - MAIN_NODE_WIDTH / 2,
|
|
@@ -209,7 +206,6 @@ function StakeholderMappings({
|
|
|
209
206
|
order: child.order,
|
|
210
207
|
isLeftSide: child.order % 2 !== 0,
|
|
211
208
|
emptyName: child.emptyName,
|
|
212
|
-
isPdf,
|
|
213
209
|
onSelect: !isSelectable
|
|
214
210
|
? undefined
|
|
215
211
|
: (nodeId) => {
|
|
@@ -289,8 +285,7 @@ function StakeholderMappings({
|
|
|
289
285
|
hasContent:
|
|
290
286
|
node?.data?.content !== undefined && node?.data?.content !== null
|
|
291
287
|
? true
|
|
292
|
-
|
|
293
|
-
isPdf,
|
|
288
|
+
: false,
|
|
294
289
|
}),
|
|
295
290
|
},
|
|
296
291
|
];
|
|
@@ -306,7 +301,6 @@ function StakeholderMappings({
|
|
|
306
301
|
name: node?.data?.name,
|
|
307
302
|
content: node?.data?.content,
|
|
308
303
|
isOnlyOne: true,
|
|
309
|
-
isPdf: true,
|
|
310
304
|
},
|
|
311
305
|
targetHandle:
|
|
312
306
|
node.data.order % 2 === 0 ? "left-handle-target" : "right-handle-target",
|
|
@@ -377,7 +371,7 @@ function StakeholderMappings({
|
|
|
377
371
|
|
|
378
372
|
return {
|
|
379
373
|
id: `${child.id}-${iconNodeId}`,
|
|
380
|
-
|
|
374
|
+
type: child.type || "primaryNode",
|
|
381
375
|
data: {
|
|
382
376
|
name: child.name,
|
|
383
377
|
id: child.id,
|
|
@@ -397,8 +391,7 @@ function StakeholderMappings({
|
|
|
397
391
|
total,
|
|
398
392
|
mainNode,
|
|
399
393
|
type: child.type || "primaryNode",
|
|
400
|
-
|
|
401
|
-
isPdf,
|
|
394
|
+
hasContent: node?.data?.content ? true : false,
|
|
402
395
|
}),
|
|
403
396
|
};
|
|
404
397
|
});
|
|
@@ -451,7 +444,6 @@ function StakeholderMappings({
|
|
|
451
444
|
});
|
|
452
445
|
}}
|
|
453
446
|
ref={reactFlowWrapper}
|
|
454
|
-
isPdf={isPdf}
|
|
455
447
|
/>
|
|
456
448
|
);
|
|
457
449
|
}
|
|
@@ -32,7 +32,6 @@ const BaseGraph = forwardRef(function BaseGraph(
|
|
|
32
32
|
t,
|
|
33
33
|
withDuration = true,
|
|
34
34
|
onFilterChange,
|
|
35
|
-
isPdf,
|
|
36
35
|
...props
|
|
37
36
|
},
|
|
38
37
|
ref,
|
|
@@ -88,45 +87,43 @@ const BaseGraph = forwardRef(function BaseGraph(
|
|
|
88
87
|
}}
|
|
89
88
|
{...props}
|
|
90
89
|
>
|
|
91
|
-
{
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
>
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
>
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
</Controls>
|
|
129
|
-
)}
|
|
90
|
+
<Controls position="bottom-right" showFitView={false} showInteractive={false}>
|
|
91
|
+
<ControlButton
|
|
92
|
+
onClick={() => {
|
|
93
|
+
fitView({
|
|
94
|
+
padding: 0.1,
|
|
95
|
+
nodes: [...nodesToFit],
|
|
96
|
+
duration: withDuration ? 300 : undefined,
|
|
97
|
+
});
|
|
98
|
+
}}
|
|
99
|
+
>
|
|
100
|
+
<AimOutlined height={20} width={20} />
|
|
101
|
+
</ControlButton>
|
|
102
|
+
<ControlButton
|
|
103
|
+
onClick={() => {
|
|
104
|
+
const viewport = getViewport();
|
|
105
|
+
setViewport({
|
|
106
|
+
x: viewport.x,
|
|
107
|
+
y: viewport.y + 20,
|
|
108
|
+
zoom: viewport.zoom,
|
|
109
|
+
});
|
|
110
|
+
}}
|
|
111
|
+
>
|
|
112
|
+
<UpOutlined height={20} width={20}></UpOutlined>
|
|
113
|
+
</ControlButton>
|
|
114
|
+
<ControlButton
|
|
115
|
+
onClick={() => {
|
|
116
|
+
const viewport = getViewport();
|
|
117
|
+
setViewport({
|
|
118
|
+
x: viewport.x,
|
|
119
|
+
y: viewport.y - 20,
|
|
120
|
+
zoom: viewport.zoom,
|
|
121
|
+
});
|
|
122
|
+
}}
|
|
123
|
+
>
|
|
124
|
+
<DownOutlined height={20} width={20}></DownOutlined>
|
|
125
|
+
</ControlButton>
|
|
126
|
+
</Controls>
|
|
130
127
|
</ReactFlow>
|
|
131
128
|
</div>
|
|
132
129
|
</ComponentWithFocus>
|
|
@@ -13,8 +13,6 @@ const { useToken } = theme;
|
|
|
13
13
|
export default function NameNode({ data }) {
|
|
14
14
|
const { token } = useToken();
|
|
15
15
|
const translateFN = typeof data?.t === "function" ? data.t : (key) => key;
|
|
16
|
-
const isPdf = data?.isPdf;
|
|
17
|
-
|
|
18
16
|
return (
|
|
19
17
|
<>
|
|
20
18
|
<Handle
|
|
@@ -36,7 +34,6 @@ export default function NameNode({ data }) {
|
|
|
36
34
|
}}
|
|
37
35
|
/>
|
|
38
36
|
<Style
|
|
39
|
-
$isPdf={isPdf}
|
|
40
37
|
style={{
|
|
41
38
|
opacity: data.isEmpty ? 0.5 : 1,
|
|
42
39
|
}}
|
|
@@ -98,21 +95,19 @@ export default function NameNode({ data }) {
|
|
|
98
95
|
) : null}
|
|
99
96
|
</div>
|
|
100
97
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
</div>
|
|
115
|
-
)}
|
|
98
|
+
<div
|
|
99
|
+
style={{
|
|
100
|
+
marginLeft: "auto",
|
|
101
|
+
}}
|
|
102
|
+
className="go-to"
|
|
103
|
+
onClick={() => {
|
|
104
|
+
if (typeof data.onClick === "function") {
|
|
105
|
+
data.onClick();
|
|
106
|
+
}
|
|
107
|
+
}}
|
|
108
|
+
>
|
|
109
|
+
<CustomIcon height={14} width={14} name="LinkNewTab" />
|
|
110
|
+
</div>
|
|
116
111
|
</div>
|
|
117
112
|
</Style>
|
|
118
113
|
<Handle
|
|
@@ -134,30 +129,25 @@ export default function NameNode({ data }) {
|
|
|
134
129
|
}
|
|
135
130
|
|
|
136
131
|
const Style = styled.div`
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
box-shadow: 0px 5.64px 17.56px 5.02px #0000000d;
|
|
146
|
-
/* Ensure borders/colors survive PDF rendering */
|
|
147
|
-
border: ${(props) => (props.$isPdf ? '1px solid var(--base-gray-30)' : 'none')};
|
|
148
|
-
-webkit-print-color-adjust: exact;
|
|
149
|
-
print-color-adjust: exact;
|
|
132
|
+
width: ${NAME_CARD_WIDTH}px;
|
|
133
|
+
display: flex;
|
|
134
|
+
background: white;
|
|
135
|
+
border-radius: 8px;
|
|
136
|
+
box-shadow: 0px 3.76px 10.03px 0px #00000014;
|
|
137
|
+
box-shadow: 0px 1.88px 3.76px -2.51px #0000001f;
|
|
138
|
+
overflow: hidden;
|
|
139
|
+
box-shadow: 0px 5.64px 17.56px 5.02px #0000000d;
|
|
150
140
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
141
|
+
.left {
|
|
142
|
+
width: 32px;
|
|
143
|
+
background: red;
|
|
144
|
+
border-top-left-radius: 12px;
|
|
145
|
+
border-bottom-left-radius: 12px;
|
|
146
|
+
}
|
|
157
147
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
148
|
+
.right {
|
|
149
|
+
padding: 16px 12px;
|
|
150
|
+
width: 100%
|
|
151
|
+
border-bottom: 1px solid var(--base-gray-30);
|
|
152
|
+
}
|
|
163
153
|
`;
|
|
@@ -30,7 +30,7 @@ export default function PrimaryNode({ id, data }) {
|
|
|
30
30
|
opacity: 0,
|
|
31
31
|
}}
|
|
32
32
|
/>
|
|
33
|
-
<Style className="flex"
|
|
33
|
+
<Style className="flex">
|
|
34
34
|
<div
|
|
35
35
|
className="left flex flex-column justify-center"
|
|
36
36
|
style={{
|
|
@@ -133,7 +133,6 @@ export default function PrimaryNode({ id, data }) {
|
|
|
133
133
|
|
|
134
134
|
const Style = styled.div`
|
|
135
135
|
width: ${MAIN_NODE_WIDTH}px;
|
|
136
|
-
height: ${(props) => (props.$isPdf ? `${MAIN_NODE_HEIGHT}px` : 'auto')};
|
|
137
136
|
display: flex;
|
|
138
137
|
background: white;
|
|
139
138
|
border-radius: 8px;
|
|
@@ -153,7 +152,7 @@ const Style = styled.div`
|
|
|
153
152
|
flex: 1;
|
|
154
153
|
|
|
155
154
|
.top {
|
|
156
|
-
padding:
|
|
155
|
+
padding: 16px 12px;
|
|
157
156
|
border-bottom: 1px solid var(--base-gray-30);
|
|
158
157
|
|
|
159
158
|
span {
|
|
@@ -180,7 +179,7 @@ const Style = styled.div`
|
|
|
180
179
|
}
|
|
181
180
|
|
|
182
181
|
.bottom {
|
|
183
|
-
padding:
|
|
182
|
+
padding: 16px;
|
|
184
183
|
display: flex;
|
|
185
184
|
margin-top: 6px;
|
|
186
185
|
margin-bottom: 6px;
|
|
@@ -55,7 +55,7 @@ export default function AddUserModal({ isOpen, defaultData = {}, userRoles = [],
|
|
|
55
55
|
}}
|
|
56
56
|
/>
|
|
57
57
|
</Form.Item>
|
|
58
|
-
{accountUsed && (
|
|
58
|
+
{/* {accountUsed && (
|
|
59
59
|
<Alert
|
|
60
60
|
message={t("FB00001")}
|
|
61
61
|
type="error"
|
|
@@ -64,7 +64,7 @@ export default function AddUserModal({ isOpen, defaultData = {}, userRoles = [],
|
|
|
64
64
|
closable
|
|
65
65
|
onClose={() => setAccountUsed(false)}
|
|
66
66
|
/>
|
|
67
|
-
)}
|
|
67
|
+
)} */}
|
|
68
68
|
|
|
69
69
|
<Form.Item name="role" label={t("Role")} rules={[{ required: true }]}>
|
|
70
70
|
<Select
|