@visns-studio/visns-components 3.1.8 → 3.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.
@@ -610,7 +610,9 @@ const DataGrid = forwardRef(
610
610
  try {
611
611
  toast.success('Starting export please wait...');
612
612
 
613
- const res = await Download(form.export.url, 'POST', {});
613
+ const res = await Download(form.export.url, 'POST', {
614
+ filter: filterValue,
615
+ });
614
616
 
615
617
  if (res.data.error) {
616
618
  toast.error(res.data.error);
@@ -663,30 +665,35 @@ const DataGrid = forwardRef(
663
665
  <div className="icon-plus"></div> Sort Order
664
666
  </button>
665
667
  )}
666
- <button
667
- className="btn"
668
- onClick={(e) => {
669
- e.preventDefault();
670
-
671
- if (form.create) {
672
- if (form.create.url) {
673
- navigate(form.create.url);
674
- } else {
675
- modalOpen('create', 0);
676
- }
677
- } else {
678
- if (form.url) {
679
- window.open(
680
- form.url,
681
- '',
682
- 'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
683
- );
684
- }
685
- }
686
- }}
687
- >
688
- <div className="icon-plus"></div> Create
689
- </button>
668
+
669
+ {form.create &&
670
+ form.create.title &&
671
+ form.create.title !== '' && (
672
+ <button
673
+ className="btn"
674
+ onClick={(e) => {
675
+ e.preventDefault();
676
+
677
+ if (form.create) {
678
+ if (form.create.url) {
679
+ navigate(form.create.url);
680
+ } else {
681
+ modalOpen('create', 0);
682
+ }
683
+ } else {
684
+ if (form.url) {
685
+ window.open(
686
+ form.url,
687
+ '',
688
+ 'width=1440,height=1024,menubar=1,resizable=1,status=1,titlebar=1,toolbar=1'
689
+ );
690
+ }
691
+ }
692
+ }}
693
+ >
694
+ <div className="icon-plus"></div> Create
695
+ </button>
696
+ )}
690
697
  </div>
691
698
  );
692
699
  };
@@ -713,7 +720,7 @@ const DataGrid = forwardRef(
713
720
  return (
714
721
  <div
715
722
  className="filterInput--alt"
716
- style={{ height: '37px' }}
723
+ style={{ height: '58px' }}
717
724
  ></div>
718
725
  );
719
726
  }
package/package.json CHANGED
@@ -48,7 +48,7 @@
48
48
  "react-dom": "^17.0.1"
49
49
  },
50
50
  "name": "@visns-studio/visns-components",
51
- "version": "3.1.8",
51
+ "version": "3.1.9",
52
52
  "description": "Various packages to assist in the development of our Custom Applications.",
53
53
  "main": "index.js",
54
54
  "scripts": {