@insticc/react-datagrid-2 1.1.5 → 1.1.7

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.
@@ -189,7 +189,7 @@ ActionButton.propTypes = {
189
189
  // the action button icon
190
190
  selectionMode: _propTypes["default"].oneOf(['single', 'multi', 'always']),
191
191
  // the action button selection mode
192
- confirmMessage: _propTypes["default"].string,
192
+ confirmMessage: _propTypes["default"].oneOfType([_propTypes["default"].element, _propTypes["default"].string]),
193
193
  // the action confirming message
194
194
  hasConfirmMessage: _propTypes["default"].bool,
195
195
  // defines whether there is a confirm message for the action button
@@ -8,6 +8,8 @@ exports["default"] = void 0;
8
8
  var _react = _interopRequireWildcard(require("react"));
9
9
  var _propTypes = _interopRequireWildcard(require("prop-types"));
10
10
  var _materialReactTable = require("material-react-table");
11
+ var _xDatePickers = require("@mui/x-date-pickers");
12
+ var _AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
11
13
  var _semanticUiReact = require("semantic-ui-react");
12
14
  var _material = require("@mui/material");
13
15
  var _ColumnFilter = _interopRequireDefault(require("./ColumnFilter"));
@@ -203,7 +205,7 @@ var DataGrid = function DataGrid(_ref) {
203
205
  enableSorting: (_column$enableSorting = column.enableSorting) !== null && _column$enableSorting !== void 0 ? _column$enableSorting : true,
204
206
  enableColumnFilter: (_column$enableColumnF = column.enableColumnFilter) !== null && _column$enableColumnF !== void 0 ? _column$enableColumnF : true,
205
207
  enableColumnFilterModes: (_column$enableColumnF2 = column.enableColumnFilterModes) !== null && _column$enableColumnF2 !== void 0 ? _column$enableColumnF2 : true,
206
- filterFn: (_column$filterFn = column.filterFn) !== null && _column$filterFn !== void 0 ? _column$filterFn : 'contains',
208
+ filterFn: column.isDateColumn ? undefined : (_column$filterFn = column.filterFn) !== null && _column$filterFn !== void 0 ? _column$filterFn : 'contains',
207
209
  enableResizing: (_column$enableResizin = column.enableResizing) !== null && _column$enableResizin !== void 0 ? _column$enableResizin : true,
208
210
  grow: (_column$grow = column.grow) !== null && _column$grow !== void 0 ? _column$grow : true,
209
211
  enableClickToCopy: (_column$enableClickTo = column.enableClickToCopy) !== null && _column$enableClickTo !== void 0 ? _column$enableClickTo : false,
@@ -579,7 +581,9 @@ var DataGrid = function DataGrid(_ref) {
579
581
  // </div>
580
582
  // )}
581
583
  });
582
- return /*#__PURE__*/_react["default"].createElement("div", null, open && /*#__PURE__*/_react["default"].createElement(_GridHelper["default"], {
584
+ return /*#__PURE__*/_react["default"].createElement(_xDatePickers.LocalizationProvider, {
585
+ dateAdapter: _AdapterDateFns.AdapterDateFns
586
+ }, open && /*#__PURE__*/_react["default"].createElement(_GridHelper["default"], {
583
587
  onClose: function onClose() {
584
588
  return setOpen(false);
585
589
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insticc/react-datagrid-2",
3
- "version": "1.1.5",
3
+ "version": "1.1.7",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "scripts": {
@@ -13,13 +13,13 @@
13
13
  "author": "Bernardo Lagos",
14
14
  "license": "ISC",
15
15
  "peerDependencies": {
16
+ "bootstrap": "^5.3.3",
17
+ "prop-types": "^15.6.1",
16
18
  "react": "^18.2.0",
17
- "react-dom": "^18.2.0",
18
- "semantic-ui-react": "^2.1.5",
19
19
  "react-bootstrap": "^2.10.2",
20
+ "react-dom": "^18.2.0",
20
21
  "semantic-ui-css": "^2.5.0",
21
- "bootstrap": "^5.3.3",
22
- "prop-types": "^15.6.1"
22
+ "semantic-ui-react": "^2.1.5"
23
23
  },
24
24
  "devDependencies": {
25
25
  "@babel/cli": "^7.26.4",
@@ -28,23 +28,24 @@
28
28
  "@babel/preset-react": "^7.26.3"
29
29
  },
30
30
  "dependencies": {
31
- "react": "^18.2.0",
32
- "react-dom": "^18.2.0",
33
31
  "@emotion/react": "^11.11.4",
34
32
  "@emotion/styled": "^11.11.5",
35
33
  "@mui/icons-material": "^5.15.15",
36
- "@mui/x-data-grid": "^7.1.0",
37
- "@mui/x-date-pickers": "^7.1.0",
38
34
  "@mui/material": "^5.15.15",
39
35
  "@mui/styled-engine-sc": "^6.0.0-alpha.18",
36
+ "@mui/x-data-grid": "^7.1.0",
37
+ "@mui/x-date-pickers": "^7.1.0",
38
+ "bootstrap": "^5.3.3",
39
+ "date-fns": "^2.29.3",
40
40
  "jspdf": "^2.5.1",
41
41
  "jspdf-autotable": "^3.8.2",
42
42
  "material-react-table": "^2.12.1",
43
- "xlsx": "^0.18.5",
44
- "semantic-ui-react": "^2.1.5",
43
+ "prop-types": "^15.6.1",
44
+ "react": "^18.2.0",
45
45
  "react-bootstrap": "^2.10.2",
46
+ "react-dom": "^18.2.0",
46
47
  "semantic-ui-css": "^2.5.0",
47
- "bootstrap": "^5.3.3",
48
- "prop-types": "^15.6.1"
48
+ "semantic-ui-react": "^2.1.5",
49
+ "xlsx": "^0.18.5"
49
50
  }
50
- }
51
+ }