@farm-investimentos/front-mfe-components 15.13.0 → 15.13.1
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/front-mfe-components.common.js +103 -104
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +103 -104
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/GanttChart/GanttChart.scss +24 -47
- package/src/components/GanttChart/GanttChart.vue +1 -1
- package/src/components/GanttChart/composition/buildBarPositioning.ts +0 -1
package/package.json
CHANGED
|
@@ -6,16 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
.farm-gantt-chart {
|
|
8
8
|
width: 100%;
|
|
9
|
-
height: 100%;
|
|
10
9
|
min-height: 500px;
|
|
11
10
|
position: relative;
|
|
12
11
|
overflow-x: auto;
|
|
13
|
-
overflow-y:
|
|
12
|
+
overflow-y: visible;
|
|
14
13
|
|
|
15
14
|
&__header {
|
|
16
15
|
display: flex;
|
|
17
|
-
width: fit-content;
|
|
18
|
-
min-width: 100%;
|
|
16
|
+
width: fit-content;
|
|
17
|
+
min-width: 100%;
|
|
19
18
|
margin-bottom: gutter('sm');
|
|
20
19
|
position: relative;
|
|
21
20
|
z-index: 2;
|
|
@@ -37,14 +36,14 @@
|
|
|
37
36
|
&__month-header {
|
|
38
37
|
display: flex;
|
|
39
38
|
align-items: center;
|
|
40
|
-
justify-content: flex-start;
|
|
39
|
+
justify-content: flex-start;
|
|
41
40
|
padding-right: 8px;
|
|
42
41
|
height: fit-content;
|
|
43
42
|
position: relative;
|
|
44
|
-
min-width: 0;
|
|
43
|
+
min-width: 0;
|
|
45
44
|
|
|
46
45
|
.farm-typography {
|
|
47
|
-
white-space: nowrap;
|
|
46
|
+
white-space: nowrap;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
49
|
&::after {
|
|
@@ -68,11 +67,10 @@
|
|
|
68
67
|
|
|
69
68
|
&__content {
|
|
70
69
|
position: relative;
|
|
71
|
-
width: fit-content;
|
|
72
|
-
min-width: 100%;
|
|
70
|
+
width: fit-content;
|
|
71
|
+
min-width: 100%;
|
|
73
72
|
display: flex;
|
|
74
73
|
flex-direction: column;
|
|
75
|
-
/* overflow: hidden; // Remove this to allow content to scroll with parent */
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
&__group {
|
|
@@ -130,22 +128,6 @@
|
|
|
130
128
|
transform: translateY(-2px);
|
|
131
129
|
}
|
|
132
130
|
|
|
133
|
-
// Bar types using library theme colors blended with white (matching Figma approach)
|
|
134
|
-
&--campaign {
|
|
135
|
-
background-color: #7BC4F7; // Info blended with white (73% + 27% white) - Vigência da Campanha
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
&--product {
|
|
139
|
-
background-color: #8BB455; // Primary blended with white (73% + 27% white) - Vigência do Produto Comercial
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&--disbursement {
|
|
143
|
-
background-color: #FFB84D; // Warning blended with white (73% + 27% white) - Período de Desembolso
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
&--maturity {
|
|
147
|
-
background-color: #F7857F; // Error blended with white (73% + 27% white) - Intervalo Vencimento
|
|
148
|
-
}
|
|
149
131
|
}
|
|
150
132
|
|
|
151
133
|
&__legend {
|
|
@@ -169,8 +151,8 @@
|
|
|
169
151
|
margin-bottom: gutter('xs');
|
|
170
152
|
position: relative;
|
|
171
153
|
padding: 0 12px;
|
|
172
|
-
flex-shrink: 0;
|
|
173
|
-
white-space: nowrap;
|
|
154
|
+
flex-shrink: 0;
|
|
155
|
+
white-space: nowrap;
|
|
174
156
|
|
|
175
157
|
&:not(:last-child)::after {
|
|
176
158
|
content: '';
|
|
@@ -197,7 +179,6 @@
|
|
|
197
179
|
align-items: center;
|
|
198
180
|
}
|
|
199
181
|
|
|
200
|
-
// NEW: Tooltip container styles - specific to GanttChart positioning
|
|
201
182
|
&__tooltip-container {
|
|
202
183
|
position: absolute;
|
|
203
184
|
z-index: 999;
|
|
@@ -207,40 +188,36 @@
|
|
|
207
188
|
}
|
|
208
189
|
|
|
209
190
|
&__tooltip {
|
|
210
|
-
// Reutiliza estilos base do farm-tooltip__popup mas com customizações específicas
|
|
211
191
|
@extend .farm-tooltip__popup;
|
|
212
192
|
@extend .farm-tooltip__popup--visible;
|
|
213
193
|
@extend .farm-tooltip__popup--fluid;
|
|
214
|
-
|
|
215
|
-
// Customizações específicas para GanttChart
|
|
194
|
+
|
|
216
195
|
pointer-events: auto;
|
|
217
196
|
position: relative;
|
|
218
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
197
|
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
|
198
|
+
|
|
199
|
+
width: auto !important;
|
|
200
|
+
max-width: 400px !important;
|
|
201
|
+
|
|
202
|
+
.farm-tooltip__content {
|
|
203
|
+
white-space: nowrap;
|
|
204
|
+
}
|
|
219
205
|
|
|
220
|
-
// NEW: Structured tooltip data styling - específico para dados estruturados
|
|
221
206
|
.tooltip-data-row {
|
|
222
207
|
display: flex;
|
|
223
|
-
justify-content:
|
|
208
|
+
justify-content: flex-start;
|
|
224
209
|
align-items: center;
|
|
225
210
|
margin-bottom: 4px;
|
|
226
|
-
|
|
211
|
+
|
|
227
212
|
&:last-child {
|
|
228
213
|
margin-bottom: 0;
|
|
229
214
|
}
|
|
230
215
|
}
|
|
231
|
-
|
|
232
|
-
.tooltip-
|
|
216
|
+
|
|
217
|
+
.tooltip-text {
|
|
233
218
|
font-weight: 500;
|
|
234
|
-
margin-right: 8px;
|
|
235
|
-
color: #f5f5f5;
|
|
236
|
-
opacity: 0.9;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
.tooltip-value {
|
|
240
|
-
font-weight: 600;
|
|
241
219
|
color: #ffffff;
|
|
242
|
-
|
|
243
|
-
flex-shrink: 0;
|
|
220
|
+
white-space: nowrap;
|
|
244
221
|
}
|
|
245
222
|
}
|
|
246
223
|
}
|
|
@@ -231,7 +231,7 @@ export default defineComponent({
|
|
|
231
231
|
|
|
232
232
|
const onBarMouseEnter = (bar: GanttBar, event: MouseEvent) => {
|
|
233
233
|
tooltipState.visible = true;
|
|
234
|
-
tooltipState.title = bar.label;
|
|
234
|
+
tooltipState.title = bar.tooltipTitle || bar.label;
|
|
235
235
|
tooltipState.barData = bar;
|
|
236
236
|
updateTooltipPosition(event);
|
|
237
237
|
};
|
|
@@ -128,7 +128,6 @@ export default function buildBarPositioning(dateRange, monthColumns) {
|
|
|
128
128
|
|
|
129
129
|
const positionedBars = JSON.parse(JSON.stringify(bars));
|
|
130
130
|
|
|
131
|
-
// Assign each bar to its own unique row position in the original order
|
|
132
131
|
positionedBars.forEach((bar: GanttBar, index: number) => {
|
|
133
132
|
bar.rowPosition = index;
|
|
134
133
|
});
|