@visns-studio/visns-components 3.1.12 → 3.1.14
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/components/crm/DataGrid.jsx +29 -26
- package/package.json +1 -1
|
@@ -14,7 +14,6 @@ import numeral from 'numeral';
|
|
|
14
14
|
import Popup from 'reactjs-popup';
|
|
15
15
|
import parse from 'html-react-parser';
|
|
16
16
|
import { saveAs } from 'file-saver';
|
|
17
|
-
import pluralize from 'pluralize';
|
|
18
17
|
import NumberFilter from '@inovua/reactdatagrid-community/NumberFilter';
|
|
19
18
|
import SelectFilter from '@inovua/reactdatagrid-community/SelectFilter';
|
|
20
19
|
import DateFilter from '@inovua/reactdatagrid-community/DateFilter';
|
|
@@ -669,32 +668,32 @@ const DataGrid = forwardRef(
|
|
|
669
668
|
{(form.create &&
|
|
670
669
|
form.create.title &&
|
|
671
670
|
form.create.title !== '') ||
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
} else {
|
|
682
|
-
modalOpen('create', 0);
|
|
683
|
-
}
|
|
671
|
+
form.url ? (
|
|
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);
|
|
684
680
|
} else {
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
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
|
+
);
|
|
692
690
|
}
|
|
693
|
-
}
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
691
|
+
}
|
|
692
|
+
}}
|
|
693
|
+
>
|
|
694
|
+
<div className="icon-plus"></div> Create
|
|
695
|
+
</button>
|
|
696
|
+
) : null}
|
|
698
697
|
</div>
|
|
699
698
|
);
|
|
700
699
|
};
|
|
@@ -721,7 +720,11 @@ const DataGrid = forwardRef(
|
|
|
721
720
|
return (
|
|
722
721
|
<div
|
|
723
722
|
className="filterInput--alt"
|
|
724
|
-
style={{
|
|
723
|
+
style={{
|
|
724
|
+
height: style.data_grid_search_height
|
|
725
|
+
? style.data_grid_search_height
|
|
726
|
+
: '58px',
|
|
727
|
+
}}
|
|
725
728
|
></div>
|
|
726
729
|
);
|
|
727
730
|
}
|
package/package.json
CHANGED