@visns-studio/visns-components 5.11.14 → 5.11.16
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/package.json
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
88
88
|
},
|
|
89
89
|
"name": "@visns-studio/visns-components",
|
|
90
|
-
"version": "5.11.
|
|
90
|
+
"version": "5.11.16",
|
|
91
91
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
92
92
|
"main": "src/index.js",
|
|
93
93
|
"files": [
|
|
@@ -2826,7 +2826,7 @@ const DataGrid = forwardRef(
|
|
|
2826
2826
|
.catch((error) => {
|
|
2827
2827
|
console.error('Error in fetching dropdown data: ', error);
|
|
2828
2828
|
});
|
|
2829
|
-
}, [columns, filterDataSource
|
|
2829
|
+
}, [columns, filterDataSource]);
|
|
2830
2830
|
|
|
2831
2831
|
useEffect(() => {
|
|
2832
2832
|
if (setFilterData) {
|
|
@@ -3072,7 +3072,6 @@ const DataGrid = forwardRef(
|
|
|
3072
3072
|
{...tableSetting}
|
|
3073
3073
|
columns={gridColumns}
|
|
3074
3074
|
dataSource={dataSource}
|
|
3075
|
-
defaultFilterValue={filterValue}
|
|
3076
3075
|
{...(ajaxSetting && ajaxSetting.groupBy
|
|
3077
3076
|
? {
|
|
3078
3077
|
defaultGroupBy: ajaxSetting.groupBy,
|
|
@@ -106,6 +106,7 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
106
106
|
});
|
|
107
107
|
const [modalFormShow, setModalFormShow] = useState(false);
|
|
108
108
|
const [roles, setRoles] = useState([]);
|
|
109
|
+
const [hoveredField, setHoveredField] = useState(null);
|
|
109
110
|
|
|
110
111
|
const canvasTypes = SketchConfig.canvasTypes;
|
|
111
112
|
|
|
@@ -249,9 +250,10 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
249
250
|
className={`${fieldClassName} ${styles.interactiveField} ${
|
|
250
251
|
styles.previewField
|
|
251
252
|
} ${isDragging ? styles.dragging : ''}`}
|
|
252
|
-
data-tooltip-id="field-tooltip"
|
|
253
|
-
data-tooltip-content={getFieldTooltip(field)}
|
|
253
|
+
data-tooltip-id={hoveredField === field.id ? null : "field-tooltip"}
|
|
254
|
+
data-tooltip-content={hoveredField === field.id ? null : getFieldTooltip(field)}
|
|
254
255
|
data-tooltip-place="top"
|
|
256
|
+
data-tooltip-delay-show={200}
|
|
255
257
|
data-field-size={field.size}
|
|
256
258
|
>
|
|
257
259
|
{/* Field info - always visible */}
|
|
@@ -270,6 +272,8 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
270
272
|
data-tooltip-id="action-tooltip"
|
|
271
273
|
data-tooltip-content="Drag to Reorder"
|
|
272
274
|
data-tooltip-place="top"
|
|
275
|
+
onMouseEnter={() => setHoveredField(field.id)}
|
|
276
|
+
onMouseLeave={() => setHoveredField(null)}
|
|
273
277
|
>
|
|
274
278
|
<ChevronVertical strokeWidth={3} size={24} />
|
|
275
279
|
</div>
|
|
@@ -286,6 +290,8 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
286
290
|
data-tooltip-id="action-tooltip"
|
|
287
291
|
data-tooltip-content="Edit Field"
|
|
288
292
|
data-tooltip-place="top"
|
|
293
|
+
onMouseEnter={() => setHoveredField(field.id)}
|
|
294
|
+
onMouseLeave={() => setHoveredField(null)}
|
|
289
295
|
/>
|
|
290
296
|
<TrashCan
|
|
291
297
|
className={styles.deleteIcon}
|
|
@@ -299,6 +305,8 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
299
305
|
data-tooltip-id="action-tooltip"
|
|
300
306
|
data-tooltip-content="Delete Field"
|
|
301
307
|
data-tooltip-place="top"
|
|
308
|
+
onMouseEnter={() => setHoveredField(field.id)}
|
|
309
|
+
onMouseLeave={() => setHoveredField(null)}
|
|
302
310
|
/>
|
|
303
311
|
</div>
|
|
304
312
|
</div>
|
|
@@ -2314,10 +2322,16 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
2314
2322
|
lineHeight: '1.4',
|
|
2315
2323
|
maxWidth: '300px',
|
|
2316
2324
|
whiteSpace: 'pre-line',
|
|
2317
|
-
zIndex:
|
|
2325
|
+
zIndex: 200000,
|
|
2318
2326
|
}}
|
|
2319
2327
|
place="top"
|
|
2320
|
-
offset={
|
|
2328
|
+
offset={15}
|
|
2329
|
+
float={true}
|
|
2330
|
+
noArrow={false}
|
|
2331
|
+
clickable={false}
|
|
2332
|
+
positionStrategy="fixed"
|
|
2333
|
+
delayShow={200}
|
|
2334
|
+
delayHide={50}
|
|
2321
2335
|
/>
|
|
2322
2336
|
<Tooltip
|
|
2323
2337
|
id="action-tooltip"
|
|
@@ -2327,8 +2341,33 @@ function GenericFormBuilder({ setting, urlParam, userProfile }) {
|
|
|
2327
2341
|
borderRadius: '6px',
|
|
2328
2342
|
padding: '8px 12px',
|
|
2329
2343
|
fontSize: '13px',
|
|
2330
|
-
zIndex:
|
|
2344
|
+
zIndex: 200001,
|
|
2345
|
+
}}
|
|
2346
|
+
place="top"
|
|
2347
|
+
offset={10}
|
|
2348
|
+
float={true}
|
|
2349
|
+
noArrow={false}
|
|
2350
|
+
clickable={false}
|
|
2351
|
+
positionStrategy="fixed"
|
|
2352
|
+
delayShow={100}
|
|
2353
|
+
delayHide={50}
|
|
2354
|
+
/>
|
|
2355
|
+
<Tooltip
|
|
2356
|
+
id="system-tooltip"
|
|
2357
|
+
style={{
|
|
2358
|
+
backgroundColor: 'rgba(0, 0, 0, 0.9)',
|
|
2359
|
+
color: 'white',
|
|
2360
|
+
borderRadius: '6px',
|
|
2361
|
+
padding: '8px 12px',
|
|
2362
|
+
fontSize: '13px',
|
|
2363
|
+
zIndex: 200000,
|
|
2331
2364
|
}}
|
|
2365
|
+
place="top"
|
|
2366
|
+
offset={10}
|
|
2367
|
+
float={true}
|
|
2368
|
+
noArrow={false}
|
|
2369
|
+
clickable={false}
|
|
2370
|
+
positionStrategy="fixed"
|
|
2332
2371
|
/>
|
|
2333
2372
|
</div>
|
|
2334
2373
|
);
|
|
@@ -1195,7 +1195,7 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1195
1195
|
flex-direction: column;
|
|
1196
1196
|
min-height: 100px;
|
|
1197
1197
|
height: 100%;
|
|
1198
|
-
margin-top:
|
|
1198
|
+
margin-top: 5px; // Reduced from 15px for better tooltip positioning
|
|
1199
1199
|
|
|
1200
1200
|
// Ensure proper layout during sorting
|
|
1201
1201
|
&.sortableHelper {
|
|
@@ -1289,25 +1289,25 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1289
1289
|
.dragHandle {
|
|
1290
1290
|
color: var(--primary-color) !important;
|
|
1291
1291
|
cursor: grab;
|
|
1292
|
-
padding:
|
|
1293
|
-
border-radius:
|
|
1292
|
+
padding: 4px;
|
|
1293
|
+
border-radius: 6px;
|
|
1294
1294
|
background: white;
|
|
1295
1295
|
border: 2px solid var(--primary-color);
|
|
1296
|
-
box-shadow: 0
|
|
1296
|
+
box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.2);
|
|
1297
1297
|
transition: all 0.2s ease;
|
|
1298
1298
|
font-weight: bold;
|
|
1299
1299
|
display: flex !important;
|
|
1300
1300
|
align-items: center;
|
|
1301
1301
|
justify-content: center;
|
|
1302
|
-
min-width:
|
|
1303
|
-
min-height:
|
|
1302
|
+
min-width: 28px;
|
|
1303
|
+
min-height: 28px;
|
|
1304
1304
|
position: relative;
|
|
1305
1305
|
z-index: 1003; // Reduced from 10001 to be below modals but above content
|
|
1306
1306
|
|
|
1307
1307
|
svg {
|
|
1308
1308
|
display: block !important;
|
|
1309
|
-
width:
|
|
1310
|
-
height:
|
|
1309
|
+
width: 16px !important;
|
|
1310
|
+
height: 16px !important;
|
|
1311
1311
|
stroke: currentColor !important;
|
|
1312
1312
|
fill: none !important;
|
|
1313
1313
|
|
|
@@ -1320,8 +1320,8 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1320
1320
|
background: var(--primary-color);
|
|
1321
1321
|
color: white;
|
|
1322
1322
|
border-color: var(--primary-color);
|
|
1323
|
-
transform: scale(1.
|
|
1324
|
-
box-shadow: 0
|
|
1323
|
+
transform: scale(1.05);
|
|
1324
|
+
box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
|
|
1325
1325
|
}
|
|
1326
1326
|
|
|
1327
1327
|
&:active {
|
|
@@ -1338,26 +1338,26 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1338
1338
|
|
|
1339
1339
|
.editIcon,
|
|
1340
1340
|
.deleteIcon {
|
|
1341
|
-
padding:
|
|
1342
|
-
border-radius:
|
|
1341
|
+
padding: 4px;
|
|
1342
|
+
border-radius: 6px;
|
|
1343
1343
|
background: white;
|
|
1344
1344
|
border: 2px solid;
|
|
1345
1345
|
cursor: pointer;
|
|
1346
1346
|
transition: all 0.2s ease;
|
|
1347
|
-
box-shadow: 0
|
|
1347
|
+
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
1348
1348
|
font-weight: bold;
|
|
1349
1349
|
display: flex !important;
|
|
1350
1350
|
align-items: center;
|
|
1351
1351
|
justify-content: center;
|
|
1352
|
-
min-width:
|
|
1353
|
-
min-height:
|
|
1352
|
+
min-width: 28px;
|
|
1353
|
+
min-height: 28px;
|
|
1354
1354
|
position: relative;
|
|
1355
1355
|
z-index: 1003; // Reduced from 10001 to be below modals but above content
|
|
1356
1356
|
|
|
1357
1357
|
svg {
|
|
1358
1358
|
display: block !important;
|
|
1359
|
-
width:
|
|
1360
|
-
height:
|
|
1359
|
+
width: 16px !important;
|
|
1360
|
+
height: 16px !important;
|
|
1361
1361
|
stroke: currentColor !important;
|
|
1362
1362
|
fill: none !important;
|
|
1363
1363
|
}
|
|
@@ -1371,8 +1371,8 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1371
1371
|
background: var(--primary-color);
|
|
1372
1372
|
color: white !important;
|
|
1373
1373
|
border-color: var(--primary-color);
|
|
1374
|
-
transform: scale(1.
|
|
1375
|
-
box-shadow: 0
|
|
1374
|
+
transform: scale(1.05);
|
|
1375
|
+
box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
|
|
1376
1376
|
}
|
|
1377
1377
|
}
|
|
1378
1378
|
|
|
@@ -1384,8 +1384,8 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1384
1384
|
background: #d32f2f;
|
|
1385
1385
|
color: white !important;
|
|
1386
1386
|
border-color: #d32f2f;
|
|
1387
|
-
transform: scale(1.
|
|
1388
|
-
box-shadow: 0
|
|
1387
|
+
transform: scale(1.05);
|
|
1388
|
+
box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
|
|
1389
1389
|
}
|
|
1390
1390
|
}
|
|
1391
1391
|
|
|
@@ -1527,7 +1527,7 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1527
1527
|
.fieldContent {
|
|
1528
1528
|
position: relative;
|
|
1529
1529
|
z-index: 1;
|
|
1530
|
-
padding-top:
|
|
1530
|
+
padding-top: 45px; /* Reduced from 55px for better tooltip positioning */
|
|
1531
1531
|
flex-grow: 1;
|
|
1532
1532
|
display: flex;
|
|
1533
1533
|
flex-direction: column;
|
|
@@ -1767,3 +1767,29 @@ select:not(:placeholder-shown) + .fi__span {
|
|
|
1767
1767
|
}
|
|
1768
1768
|
}
|
|
1769
1769
|
}
|
|
1770
|
+
|
|
1771
|
+
/* Tooltip positioning fixes */
|
|
1772
|
+
[data-tooltip-id] {
|
|
1773
|
+
position: relative;
|
|
1774
|
+
z-index: 200000; /* Ensure tooltips are above all other elements */
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
/* React Tooltip specific z-index override */
|
|
1778
|
+
:global([data-tooltip-id="field-tooltip"]),
|
|
1779
|
+
:global([data-tooltip-id="action-tooltip"]),
|
|
1780
|
+
:global([data-tooltip-id="system-tooltip"]) {
|
|
1781
|
+
position: relative;
|
|
1782
|
+
z-index: 200000 !important;
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
/* Ensure action tooltips take priority over field tooltips */
|
|
1786
|
+
.dragHandle,
|
|
1787
|
+
.editIcon,
|
|
1788
|
+
.deleteIcon {
|
|
1789
|
+
position: relative;
|
|
1790
|
+
z-index: 200002;
|
|
1791
|
+
|
|
1792
|
+
&:hover {
|
|
1793
|
+
z-index: 200003;
|
|
1794
|
+
}
|
|
1795
|
+
}
|