@visns-studio/visns-components 1.1.7 → 1.1.9
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.
|
@@ -360,7 +360,7 @@ const DataGrid = (props) => {
|
|
|
360
360
|
header: column.label,
|
|
361
361
|
defaultFlex: 1,
|
|
362
362
|
link: column.link ? column.link : {},
|
|
363
|
-
|
|
363
|
+
minWidth:
|
|
364
364
|
column.width && column.width > 0
|
|
365
365
|
? column.width
|
|
366
366
|
: undefined,
|
|
@@ -383,7 +383,7 @@ const DataGrid = (props) => {
|
|
|
383
383
|
name: column.id,
|
|
384
384
|
header: column.label,
|
|
385
385
|
defaultFlex: 1,
|
|
386
|
-
|
|
386
|
+
minWidth:
|
|
387
387
|
column.width && column.width > 0
|
|
388
388
|
? column.width
|
|
389
389
|
: undefined,
|
|
@@ -405,7 +405,7 @@ const DataGrid = (props) => {
|
|
|
405
405
|
name: column.id,
|
|
406
406
|
header: column.label,
|
|
407
407
|
defaultFlex: 1,
|
|
408
|
-
|
|
408
|
+
minWidth:
|
|
409
409
|
column.width && column.width > 0
|
|
410
410
|
? column.width
|
|
411
411
|
: undefined,
|
|
@@ -427,7 +427,7 @@ const DataGrid = (props) => {
|
|
|
427
427
|
name: column.id,
|
|
428
428
|
header: column.label,
|
|
429
429
|
defaultFlex: 1,
|
|
430
|
-
|
|
430
|
+
minWidth:
|
|
431
431
|
column.width && column.width > 0
|
|
432
432
|
? column.width
|
|
433
433
|
: undefined,
|
|
@@ -451,7 +451,7 @@ const DataGrid = (props) => {
|
|
|
451
451
|
name: column.id,
|
|
452
452
|
header: column.label,
|
|
453
453
|
defaultFlex: 1,
|
|
454
|
-
|
|
454
|
+
minWidth:
|
|
455
455
|
column.width && column.width > 0
|
|
456
456
|
? column.width
|
|
457
457
|
: undefined,
|
|
@@ -479,7 +479,7 @@ const DataGrid = (props) => {
|
|
|
479
479
|
name: column.id,
|
|
480
480
|
header: column.label,
|
|
481
481
|
defaultFlex: 1,
|
|
482
|
-
|
|
482
|
+
minWidth:
|
|
483
483
|
column.width && column.width > 0
|
|
484
484
|
? column.width
|
|
485
485
|
: undefined,
|
|
@@ -508,7 +508,7 @@ const DataGrid = (props) => {
|
|
|
508
508
|
name: column.id,
|
|
509
509
|
header: column.label,
|
|
510
510
|
defaultFlex: 1,
|
|
511
|
-
|
|
511
|
+
minWidth:
|
|
512
512
|
column.width && column.width > 0
|
|
513
513
|
? column.width
|
|
514
514
|
: undefined,
|
|
@@ -532,7 +532,7 @@ const DataGrid = (props) => {
|
|
|
532
532
|
name: column.id,
|
|
533
533
|
header: column.label,
|
|
534
534
|
defaultFlex: 1,
|
|
535
|
-
|
|
535
|
+
minWidth:
|
|
536
536
|
column.width && column.width > 0
|
|
537
537
|
? column.width
|
|
538
538
|
: undefined,
|
|
@@ -544,7 +544,7 @@ const DataGrid = (props) => {
|
|
|
544
544
|
name: column.id,
|
|
545
545
|
header: column.label,
|
|
546
546
|
defaultFlex: 1,
|
|
547
|
-
|
|
547
|
+
minWidth:
|
|
548
548
|
column.width && column.width > 0
|
|
549
549
|
? column.width
|
|
550
550
|
: undefined,
|
|
@@ -568,7 +568,7 @@ const DataGrid = (props) => {
|
|
|
568
568
|
name: column.id,
|
|
569
569
|
header: column.label,
|
|
570
570
|
defaultFlex: 1,
|
|
571
|
-
|
|
571
|
+
minWidth:
|
|
572
572
|
column.width && column.width > 0
|
|
573
573
|
? column.width
|
|
574
574
|
: undefined,
|
|
@@ -588,31 +588,38 @@ const DataGrid = (props) => {
|
|
|
588
588
|
name: relationName,
|
|
589
589
|
header: column.label,
|
|
590
590
|
defaultFlex: 1,
|
|
591
|
-
|
|
591
|
+
minWidth:
|
|
592
592
|
column.width && column.width > 0
|
|
593
593
|
? column.width
|
|
594
594
|
: undefined,
|
|
595
595
|
link: column.link ? column.link : {},
|
|
596
596
|
render: ({ data }) => {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
597
|
+
if (
|
|
598
|
+
column.placeholder &&
|
|
599
|
+
column.placeholder !== ""
|
|
600
|
+
) {
|
|
601
|
+
return <span>{column.placeholder}</span>;
|
|
602
|
+
} else {
|
|
603
|
+
let value = column.id.reduce((acc, id) => {
|
|
604
|
+
if (acc === "") {
|
|
605
|
+
return data[id];
|
|
606
|
+
} else {
|
|
607
|
+
return acc[id];
|
|
608
|
+
}
|
|
609
|
+
}, "");
|
|
610
|
+
|
|
611
|
+
if (value) {
|
|
612
|
+
if (Array.isArray(column.nameFrom)) {
|
|
613
|
+
value = column.nameFrom
|
|
614
|
+
.map((nf) => value[nf])
|
|
615
|
+
.join(" ");
|
|
616
|
+
} else {
|
|
617
|
+
value = value[column.nameFrom];
|
|
618
|
+
}
|
|
612
619
|
}
|
|
613
|
-
}
|
|
614
620
|
|
|
615
|
-
|
|
621
|
+
return <span>{value}</span>;
|
|
622
|
+
}
|
|
616
623
|
},
|
|
617
624
|
};
|
|
618
625
|
case "stage":
|
|
@@ -620,7 +627,7 @@ const DataGrid = (props) => {
|
|
|
620
627
|
name: column.id,
|
|
621
628
|
header: column.label,
|
|
622
629
|
defaultFlex: 1,
|
|
623
|
-
|
|
630
|
+
minWidth:
|
|
624
631
|
column.width && column.width > 0
|
|
625
632
|
? column.width
|
|
626
633
|
: undefined,
|
|
@@ -642,7 +649,7 @@ const DataGrid = (props) => {
|
|
|
642
649
|
name: column.id,
|
|
643
650
|
header: column.label,
|
|
644
651
|
defaultFlex: 1,
|
|
645
|
-
|
|
652
|
+
minWidth:
|
|
646
653
|
column.width && column.width > 0
|
|
647
654
|
? column.width
|
|
648
655
|
: undefined,
|
|
@@ -664,7 +671,7 @@ const DataGrid = (props) => {
|
|
|
664
671
|
name: column.id,
|
|
665
672
|
header: column.label,
|
|
666
673
|
defaultFlex: 1,
|
|
667
|
-
|
|
674
|
+
minWidth:
|
|
668
675
|
column.width && column.width > 0
|
|
669
676
|
? column.width
|
|
670
677
|
: undefined,
|
|
@@ -688,7 +695,7 @@ const DataGrid = (props) => {
|
|
|
688
695
|
name: column.id,
|
|
689
696
|
header: column.label,
|
|
690
697
|
defaultFlex: 1,
|
|
691
|
-
|
|
698
|
+
minWidth:
|
|
692
699
|
column.width && column.width > 0
|
|
693
700
|
? column.width
|
|
694
701
|
: undefined,
|
package/package.json
CHANGED
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"react-dom": ">=18.2.0"
|
|
33
33
|
},
|
|
34
34
|
"name": "@visns-studio/visns-components",
|
|
35
|
-
"version": "1.1.
|
|
35
|
+
"version": "1.1.9",
|
|
36
36
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
37
37
|
"main": "index.js",
|
|
38
38
|
"devDependencies": {},
|