@visns-studio/visns-components 1.1.4 → 1.1.5
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,6 +360,10 @@ const DataGrid = (props) => {
|
|
|
360
360
|
header: column.label,
|
|
361
361
|
defaultFlex: 1,
|
|
362
362
|
link: column.link ? column.link : {},
|
|
363
|
+
defaultWidth:
|
|
364
|
+
column.width && column.width > 0
|
|
365
|
+
? column.width
|
|
366
|
+
: undefined,
|
|
363
367
|
render: ({ data }) => {
|
|
364
368
|
let value = data.audits[0].user.name;
|
|
365
369
|
|
|
@@ -371,6 +375,10 @@ const DataGrid = (props) => {
|
|
|
371
375
|
name: column.id,
|
|
372
376
|
header: column.label,
|
|
373
377
|
defaultFlex: 1,
|
|
378
|
+
defaultWidth:
|
|
379
|
+
column.width && column.width > 0
|
|
380
|
+
? column.width
|
|
381
|
+
: undefined,
|
|
374
382
|
link: column.link ? column.link : {},
|
|
375
383
|
render: ({ data }) => {
|
|
376
384
|
if (data) {
|
|
@@ -386,6 +394,10 @@ const DataGrid = (props) => {
|
|
|
386
394
|
name: column.id,
|
|
387
395
|
header: column.label,
|
|
388
396
|
defaultFlex: 1,
|
|
397
|
+
defaultWidth:
|
|
398
|
+
column.width && column.width > 0
|
|
399
|
+
? column.width
|
|
400
|
+
: undefined,
|
|
389
401
|
link: column.link ? column.link : {},
|
|
390
402
|
render: ({ data }) => {
|
|
391
403
|
if (data && data[column.id]) {
|
|
@@ -401,6 +413,10 @@ const DataGrid = (props) => {
|
|
|
401
413
|
name: column.id,
|
|
402
414
|
header: column.label,
|
|
403
415
|
defaultFlex: 1,
|
|
416
|
+
defaultWidth:
|
|
417
|
+
column.width && column.width > 0
|
|
418
|
+
? column.width
|
|
419
|
+
: undefined,
|
|
404
420
|
link: column.link ? column.link : {},
|
|
405
421
|
render: ({ data }) => {
|
|
406
422
|
if (data && data[column.id]) {
|
|
@@ -418,6 +434,10 @@ const DataGrid = (props) => {
|
|
|
418
434
|
name: column.id,
|
|
419
435
|
header: column.label,
|
|
420
436
|
defaultFlex: 1,
|
|
437
|
+
defaultWidth:
|
|
438
|
+
column.width && column.width > 0
|
|
439
|
+
? column.width
|
|
440
|
+
: undefined,
|
|
421
441
|
link: column.link ? column.link : {},
|
|
422
442
|
render: ({ data }) => {
|
|
423
443
|
if (data) {
|
|
@@ -442,6 +462,10 @@ const DataGrid = (props) => {
|
|
|
442
462
|
name: column.id,
|
|
443
463
|
header: column.label,
|
|
444
464
|
defaultFlex: 1,
|
|
465
|
+
defaultWidth:
|
|
466
|
+
column.width && column.width > 0
|
|
467
|
+
? column.width
|
|
468
|
+
: undefined,
|
|
445
469
|
link: column.link ? column.link : {},
|
|
446
470
|
render: ({ data }) => {
|
|
447
471
|
let icons = [];
|
|
@@ -467,6 +491,10 @@ const DataGrid = (props) => {
|
|
|
467
491
|
name: column.id,
|
|
468
492
|
header: column.label,
|
|
469
493
|
defaultFlex: 1,
|
|
494
|
+
defaultWidth:
|
|
495
|
+
column.width && column.width > 0
|
|
496
|
+
? column.width
|
|
497
|
+
: undefined,
|
|
470
498
|
link: column.link ? column.link : {},
|
|
471
499
|
render: ({ data }) => {
|
|
472
500
|
if (
|
|
@@ -487,6 +515,10 @@ const DataGrid = (props) => {
|
|
|
487
515
|
name: column.id,
|
|
488
516
|
header: column.label,
|
|
489
517
|
defaultFlex: 1,
|
|
518
|
+
defaultWidth:
|
|
519
|
+
column.width && column.width > 0
|
|
520
|
+
? column.width
|
|
521
|
+
: undefined,
|
|
490
522
|
link: column.link ? column.link : {},
|
|
491
523
|
type: "number",
|
|
492
524
|
};
|
|
@@ -495,6 +527,10 @@ const DataGrid = (props) => {
|
|
|
495
527
|
name: column.id,
|
|
496
528
|
header: column.label,
|
|
497
529
|
defaultFlex: 1,
|
|
530
|
+
defaultWidth:
|
|
531
|
+
column.width && column.width > 0
|
|
532
|
+
? column.width
|
|
533
|
+
: undefined,
|
|
498
534
|
link: column.link ? column.link : {},
|
|
499
535
|
render: ({ data }) => {
|
|
500
536
|
if (data) {
|
|
@@ -508,6 +544,10 @@ const DataGrid = (props) => {
|
|
|
508
544
|
name: column.id,
|
|
509
545
|
header: column.label,
|
|
510
546
|
defaultFlex: 1,
|
|
547
|
+
defaultWidth:
|
|
548
|
+
column.width && column.width > 0
|
|
549
|
+
? column.width
|
|
550
|
+
: undefined,
|
|
511
551
|
link: column.link ? column.link : {},
|
|
512
552
|
render: ({ data }) => {
|
|
513
553
|
return <span>{column.placeholder}</span>;
|
|
@@ -524,6 +564,10 @@ const DataGrid = (props) => {
|
|
|
524
564
|
name: relationName,
|
|
525
565
|
header: column.label,
|
|
526
566
|
defaultFlex: 1,
|
|
567
|
+
defaultWidth:
|
|
568
|
+
column.width && column.width > 0
|
|
569
|
+
? column.width
|
|
570
|
+
: undefined,
|
|
527
571
|
link: column.link ? column.link : {},
|
|
528
572
|
render: ({ data }) => {
|
|
529
573
|
let value = column.id.reduce((acc, id) => {
|
|
@@ -552,6 +596,10 @@ const DataGrid = (props) => {
|
|
|
552
596
|
name: column.id,
|
|
553
597
|
header: column.label,
|
|
554
598
|
defaultFlex: 1,
|
|
599
|
+
defaultWidth:
|
|
600
|
+
column.width && column.width > 0
|
|
601
|
+
? column.width
|
|
602
|
+
: undefined,
|
|
555
603
|
link: column.link ? column.link : {},
|
|
556
604
|
render: ({ data }) => {
|
|
557
605
|
let stage = "";
|
|
@@ -570,6 +618,10 @@ const DataGrid = (props) => {
|
|
|
570
618
|
name: column.id,
|
|
571
619
|
header: column.label,
|
|
572
620
|
defaultFlex: 1,
|
|
621
|
+
defaultWidth:
|
|
622
|
+
column.width && column.width > 0
|
|
623
|
+
? column.width
|
|
624
|
+
: undefined,
|
|
573
625
|
link: column.link ? column.link : {},
|
|
574
626
|
render: ({ data }) => {
|
|
575
627
|
if (data && data[column.id]) {
|
|
@@ -585,6 +637,10 @@ const DataGrid = (props) => {
|
|
|
585
637
|
name: column.id,
|
|
586
638
|
header: column.label,
|
|
587
639
|
defaultFlex: 1,
|
|
640
|
+
defaultWidth:
|
|
641
|
+
column.width && column.width > 0
|
|
642
|
+
? column.width
|
|
643
|
+
: undefined,
|
|
588
644
|
link: column.link ? column.link : {},
|
|
589
645
|
render: ({ data }) => {
|
|
590
646
|
return (
|
|
@@ -601,6 +657,10 @@ const DataGrid = (props) => {
|
|
|
601
657
|
name: column.id,
|
|
602
658
|
header: column.label,
|
|
603
659
|
defaultFlex: 1,
|
|
660
|
+
defaultWidth:
|
|
661
|
+
column.width && column.width > 0
|
|
662
|
+
? column.width
|
|
663
|
+
: undefined,
|
|
604
664
|
link: column.link ? column.link : {},
|
|
605
665
|
};
|
|
606
666
|
}
|
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.5",
|
|
36
36
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
37
37
|
"main": "index.js",
|
|
38
38
|
"devDependencies": {},
|