datastake-daf 0.6.272 → 0.6.274

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.
@@ -3479,13 +3479,13 @@ const renderTooltipJsx = ({
3479
3479
  }
3480
3480
  })
3481
3481
  }), /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
3482
- title: item.label,
3482
+ title: item.tooltipLabel || item.label,
3483
3483
  children: /*#__PURE__*/jsxRuntime.jsx("span", {
3484
3484
  className: "daf-tooltip-name",
3485
3485
  children: item.label
3486
3486
  })
3487
3487
  }), /*#__PURE__*/jsxRuntime.jsx(antd.Tooltip, {
3488
- title: item.value,
3488
+ title: item.tooltipValue || item.value,
3489
3489
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
3490
3490
  style: {
3491
3491
  height: "20px",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "datastake-daf",
3
- "version": "0.6.272",
3
+ "version": "0.6.274",
4
4
  "dependencies": {
5
5
  "@ant-design/icons": "^5.2.5",
6
6
  "@antv/g2": "^5.1.1",
@@ -93,7 +93,6 @@ const EForm = () => {
93
93
  data={editValues}
94
94
  getAppHeader={storyData.getAppHeader}
95
95
  getApiBaseUrl={storyData.getApiBaseUrl}
96
- fullWidth={true}
97
96
  evaluationConfig={
98
97
  [
99
98
  // {
@@ -53,7 +53,6 @@
53
53
  line-height: 20px !important;
54
54
  color: #001529;
55
55
  }
56
-
57
56
  .ant-page-header {
58
57
  .ant-page-header-heading-left {
59
58
  overflow: initial;
@@ -356,7 +355,6 @@
356
355
  overflow: auto;
357
356
  flex-direction: column;
358
357
  padding: 20px 100px 0 100px;
359
-
360
358
  &.has-section {
361
359
  width: calc(100% - 200px);
362
360
  }
@@ -368,10 +366,6 @@
368
366
  min-height: 100%;
369
367
  margin: auto;
370
368
 
371
- &.full-width-form {
372
- max-width: unset;
373
- }
374
-
375
369
  @media screen and (max-width: 1200px) {
376
370
  min-width: 700px;
377
371
  }
@@ -381,16 +375,16 @@
381
375
  }
382
376
 
383
377
  .with-comment {
384
- &>.ant-form-item-label>label {
378
+ & > .ant-form-item-label > label {
385
379
  width: 100%;
386
380
 
387
- &>span {
381
+ & > span {
388
382
  display: flex;
389
383
  justify-content: space-between;
390
384
  width: 100%;
391
385
 
392
- &>span {
393
- &>button {
386
+ & > span {
387
+ & > button {
394
388
  line-height: 1;
395
389
  height: inherit;
396
390
  font-size: 14px;
@@ -400,7 +394,7 @@
400
394
  }
401
395
  }
402
396
 
403
- &.i-radioGroup>.ant-form-item-label>label>span {
397
+ &.i-radioGroup > .ant-form-item-label > label > span {
404
398
  font-style: normal;
405
399
  font-weight: bold;
406
400
  font-size: 18px;
@@ -479,25 +473,20 @@
479
473
  width: 100%;
480
474
  display: flex;
481
475
  flex-direction: column;
482
-
483
476
  .ant-transfer-list {
484
477
  height: 300px;
485
-
486
478
  .ant-transfer-list-body {
487
479
  overflow-y: auto;
488
-
489
480
  .ant-transfer-list-body-customize-wrapper {
490
481
  padding: 0;
491
482
  }
492
483
  }
493
-
494
484
  .ant-transfer-list-header {
495
485
  .ant-transfer-list-header-selected {
496
486
  display: flex;
497
487
  flex-direction: row-reverse;
498
488
  width: 100%;
499
489
  justify-content: space-between;
500
-
501
490
  .ant-transfer-list-header-title {
502
491
  position: inherit;
503
492
  font-size: var(--font-size-lg);
@@ -507,16 +496,13 @@
507
496
  }
508
497
  }
509
498
  }
510
-
511
499
  .ant-transfer-operation {
512
500
  display: flex;
513
501
  justify-content: space-around;
514
502
  width: 100px;
515
503
  margin: 10px;
516
-
517
504
  button {
518
505
  transform: rotate(90deg);
519
-
520
506
  .anticon {
521
507
  position: absolute;
522
508
  top: 4px;
@@ -527,7 +513,6 @@
527
513
  }
528
514
  }
529
515
  }
530
-
531
516
  .ant-row.ant-form-item.comment-textarea {
532
517
  margin-top: -12px;
533
518
 
@@ -571,8 +556,7 @@
571
556
  align-self: stretch;
572
557
  flex-grow: 0;
573
558
  }
574
-
575
- .i-transfer>.ant-form-item-label>label {
559
+ .i-transfer > .ant-form-item-label > label {
576
560
  padding: 14px 0;
577
561
  }
578
562
 
@@ -584,7 +568,7 @@
584
568
  }
585
569
 
586
570
  .i-modal {
587
- &>.ant-col.ant-form-item-label label {
571
+ & > .ant-col.ant-form-item-label label {
588
572
  margin-top: 1.5rem !important;
589
573
  font-size: 18px;
590
574
  font-weight: 700;
@@ -592,7 +576,7 @@
592
576
  line-height: 22px;
593
577
  color: #001529;
594
578
 
595
- span>span {
579
+ span > span {
596
580
  font-size: 18px;
597
581
  font-weight: 700;
598
582
  font-style: normal;
@@ -616,7 +600,6 @@
616
600
  line-height: var(--size);
617
601
  min-height: 32px;
618
602
  padding: 5px 0;
619
-
620
603
  &.even {
621
604
  background: #f9fafc;
622
605
  }
@@ -718,25 +701,20 @@
718
701
  }
719
702
  }
720
703
  }
721
-
722
704
  .total100 {
723
705
  display: flex;
724
706
  flex-direction: column;
725
707
  width: 100%;
726
-
727
708
  .ant-space-item:nth-of-type(3n) {
728
709
  flex-grow: initial;
729
710
  }
730
-
731
711
  .ant-space-item:not(:last-of-type) {
732
712
  width: calc(50% - 4px);
733
713
  }
734
-
735
714
  .ant-space {
736
715
  margin-top: 8px;
737
716
  }
738
717
  }
739
-
740
718
  .risk-plan {
741
719
  display: flex;
742
720
  flex-direction: row;
@@ -747,12 +725,10 @@
747
725
  border-radius: 2px;
748
726
  color: #001529;
749
727
  flex-wrap: wrap;
750
-
751
728
  .subScore {
752
729
  display: flex;
753
730
  min-width: 100px;
754
731
  padding-top: 3.5px;
755
-
756
732
  p {
757
733
  margin: 0;
758
734
  margin-bottom: 4px;
@@ -776,12 +752,10 @@
776
752
  }
777
753
  }
778
754
  }
779
-
780
755
  .risk-name {
781
756
  color: #001529;
782
757
  font-style: italic;
783
758
  }
784
-
785
759
  .i-imageUpload {
786
760
  margin-top: 22px;
787
761
  }
@@ -934,11 +908,9 @@
934
908
  line-height: 20px !important;
935
909
  color: #001529;
936
910
  }
937
-
938
911
  .ant-page-header {
939
912
  .ant-space {
940
913
  width: 100%;
941
-
942
914
  .ant-space-item {
943
915
  width: 100%;
944
916
  }
@@ -1266,10 +1238,6 @@
1266
1238
  min-height: 100%;
1267
1239
  margin: auto;
1268
1240
 
1269
- &.full-width-form {
1270
- max-width: unset;
1271
- }
1272
-
1273
1241
  .ant-input-number-group-wrapper {
1274
1242
  width: 100%;
1275
1243
  }
@@ -1290,13 +1258,13 @@
1290
1258
  .ant-form-item-label label {
1291
1259
  width: 100%;
1292
1260
 
1293
- &>span {
1261
+ & > span {
1294
1262
  display: flex;
1295
1263
  justify-content: space-between;
1296
1264
  width: 100%;
1297
1265
 
1298
- &>span {
1299
- &>button {
1266
+ & > span {
1267
+ & > button {
1300
1268
  line-height: 1;
1301
1269
  height: inherit;
1302
1270
  font-size: 14px;
@@ -1306,7 +1274,7 @@
1306
1274
  }
1307
1275
  }
1308
1276
 
1309
- &.i-radioGroup>.ant-form-item-label>label>span {
1277
+ &.i-radioGroup > .ant-form-item-label > label > span {
1310
1278
  font-style: normal;
1311
1279
  font-weight: bold;
1312
1280
  font-size: 18px;
@@ -1385,25 +1353,20 @@
1385
1353
  width: 100%;
1386
1354
  display: flex;
1387
1355
  flex-direction: column;
1388
-
1389
1356
  .ant-transfer-list {
1390
1357
  height: 300px;
1391
-
1392
1358
  .ant-transfer-list-body {
1393
1359
  overflow-y: auto;
1394
-
1395
1360
  .ant-transfer-list-body-customize-wrapper {
1396
1361
  padding: 0;
1397
1362
  }
1398
1363
  }
1399
-
1400
1364
  .ant-transfer-list-header {
1401
1365
  .ant-transfer-list-header-selected {
1402
1366
  display: flex;
1403
1367
  flex-direction: row-reverse;
1404
1368
  width: 100%;
1405
1369
  justify-content: space-between;
1406
-
1407
1370
  .ant-transfer-list-header-title {
1408
1371
  position: inherit;
1409
1372
  font-size: var(--font-size-lg);
@@ -1413,16 +1376,13 @@
1413
1376
  }
1414
1377
  }
1415
1378
  }
1416
-
1417
1379
  .ant-transfer-operation {
1418
1380
  display: flex;
1419
1381
  justify-content: space-around;
1420
1382
  width: 100px;
1421
1383
  margin: 10px;
1422
-
1423
1384
  button {
1424
1385
  transform: rotate(90deg);
1425
-
1426
1386
  .anticon {
1427
1387
  position: absolute;
1428
1388
  top: 4px;
@@ -1450,7 +1410,6 @@
1450
1410
  display: none;
1451
1411
  }
1452
1412
  }
1453
-
1454
1413
  .ant-form-item-control-input {
1455
1414
  max-width: 100%;
1456
1415
  }
@@ -1497,7 +1456,7 @@
1497
1456
  flex: 1;
1498
1457
  }
1499
1458
 
1500
- .i-transfer>.ant-form-item-label>label {
1459
+ .i-transfer > .ant-form-item-label > label {
1501
1460
  padding: 14px 0;
1502
1461
  }
1503
1462
 
@@ -1540,7 +1499,7 @@
1540
1499
  }
1541
1500
 
1542
1501
  .i-modal {
1543
- &>.ant-col.ant-form-item-label label {
1502
+ & > .ant-col.ant-form-item-label label {
1544
1503
  margin-top: 1.5rem !important;
1545
1504
  font-size: 18px;
1546
1505
  font-weight: 700;
@@ -1548,7 +1507,7 @@
1548
1507
  line-height: 22px;
1549
1508
  color: #001529;
1550
1509
 
1551
- span>span {
1510
+ span > span {
1552
1511
  font-size: 18px;
1553
1512
  font-weight: 700;
1554
1513
  font-style: normal;
@@ -1604,7 +1563,6 @@
1604
1563
  .ajax-modal-view {
1605
1564
  padding-top: 0px;
1606
1565
  }
1607
-
1608
1566
  .total-inputs-1 {
1609
1567
  .ajax-modal-view {
1610
1568
  .remove-button-row {
@@ -1869,20 +1827,16 @@
1869
1827
  display: flex;
1870
1828
  flex-direction: column;
1871
1829
  width: 100%;
1872
-
1873
1830
  .ant-space-item:nth-of-type(3n) {
1874
1831
  flex-grow: initial;
1875
1832
  }
1876
-
1877
1833
  .ant-space-item:not(:last-of-type) {
1878
1834
  width: calc(50% - 4px);
1879
1835
  }
1880
-
1881
1836
  .ant-space {
1882
1837
  margin-top: 8px;
1883
1838
  }
1884
1839
  }
1885
-
1886
1840
  .risk-plan {
1887
1841
  padding: var(--size-lg);
1888
1842
  border-radius: 4px;
@@ -1954,11 +1908,11 @@
1954
1908
  }
1955
1909
 
1956
1910
  .ant-upload-list {
1957
- width: var(--static-width, 614px) !important;
1911
+ width: var(--static-width, 614px) !important;
1958
1912
  }
1959
1913
 
1960
1914
  .ant-select-selector {
1961
- width: var(--static-width) !important;
1915
+ width: var(--static-width) !important;
1962
1916
  }
1963
1917
 
1964
1918
  .ant-upload-list-item-container {
@@ -2128,4 +2082,4 @@
2128
2082
  flex: 1;
2129
2083
  }
2130
2084
  }
2131
- }
2085
+ }
@@ -54,7 +54,6 @@ export const EditForm = ({
54
54
  changeErrors = () => {},
55
55
  evaluationConfig = [],
56
56
  staticWidth = "614px",
57
- fullWidth = false,
58
57
  }) => {
59
58
  const [isSubmitting] = useState(false);
60
59
  const formData = JSON.parse(JSON.stringify(convertUndefinedToNull(data) || {}));
@@ -343,8 +342,8 @@ export const EditForm = ({
343
342
  key={id}
344
343
  name={id}
345
344
  layout="vertical"
346
- style={{ maxWidth: fullWidth ? "unset" : 700 }}
347
- className={`main-form${formClass ? ` ${formClass}` : ""} `}
345
+ style={{ maxWidth: 700 }}
346
+ className={`main-form${formClass ? ` ${formClass}` : ""}`}
348
347
  onValuesChange={(_changedValue, _allValues) => {
349
348
  const changedValue = { ..._changedValue };
350
349
  const allValues = { ..._allValues };
@@ -35,7 +35,6 @@ const ViewForm = ({ evalConfig }) => {
35
35
  user={{ language: "en" }}
36
36
  getApiBaseUrl={storyData.getApiBaseUrl}
37
37
  evaluationConfig={evalConfig}
38
- fullWidth={true}
39
38
  />
40
39
  );
41
40
  };