@crystaldesign/grid 24.12.0-beta.9 → 24.13.0-beta.1
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/build/esm/index.js +173 -187
- package/build/types/grid/src/Grid.d.ts +1 -1
- package/build/types/grid/src/Grid.d.ts.map +1 -1
- package/build/types/grid/src/hooks/useApiInterface/apiFetchData.d.ts.map +1 -1
- package/build/types/grid/src/hooks/useParsedOptions.d.ts.map +1 -1
- package/build/types/grid/src/index.d.ts +1 -2
- package/build/types/grid/src/index.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/CustomCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/CustomCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/action/ActionCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/action/ActionCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/boolean/BooleanCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/boolean/BooleanCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/date/DateCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/date/DateCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/formular/FormularCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/formular/FormularCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/image/ImgCell.d.ts +3 -2
- package/build/types/grid/src/ui/cells/image/ImgCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/media/MediaViewerCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/media/MediaViewerCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/price/PriceCell.d.ts +6 -3
- package/build/types/grid/src/ui/cells/price/PriceCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/selection/SelectionCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/selection/SelectionCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/cells/text/TextCell.d.ts +2 -1
- package/build/types/grid/src/ui/cells/text/TextCell.d.ts.map +1 -1
- package/build/types/grid/src/ui/components/Footerbar.d.ts +2 -1
- package/build/types/grid/src/ui/components/Footerbar.d.ts.map +1 -1
- package/build/types/grid/src/ui/components/Gallery.d.ts +2 -1
- package/build/types/grid/src/ui/components/Gallery.d.ts.map +1 -1
- package/build/types/grid/src/ui/components/NoData.d.ts +2 -1
- package/build/types/grid/src/ui/components/NoData.d.ts.map +1 -1
- package/build/types/grid/src/ui/components/OverflowTooltip.d.ts +1 -1
- package/build/types/grid/src/ui/components/OverflowTooltip.d.ts.map +1 -1
- package/build/types/grid/src/ui/components/Table.d.ts +2 -1
- package/build/types/grid/src/ui/components/Table.d.ts.map +1 -1
- package/build/types/grid/src/ui/components/Toolbar.d.ts +1 -1
- package/build/types/grid/src/ui/components/Toolbar.d.ts.map +1 -1
- package/build/types/grid/src/ui/filter/BooleanFilter.d.ts +2 -1
- package/build/types/grid/src/ui/filter/BooleanFilter.d.ts.map +1 -1
- package/build/types/grid/src/ui/filter/DateRangeFilter.d.ts +2 -1
- package/build/types/grid/src/ui/filter/DateRangeFilter.d.ts.map +1 -1
- package/build/types/grid/src/ui/filter/DefaultColumnFilter.d.ts +2 -1
- package/build/types/grid/src/ui/filter/DefaultColumnFilter.d.ts.map +1 -1
- package/build/types/grid/src/ui/filter/GlobalFilter.d.ts +2 -1
- package/build/types/grid/src/ui/filter/GlobalFilter.d.ts.map +1 -1
- package/build/types/grid/src/ui/filter/SelectColumnFilter.d.ts +2 -1
- package/build/types/grid/src/ui/filter/SelectColumnFilter.d.ts.map +1 -1
- package/package.json +25 -27
- package/build/types/grid/src/extendedReactTableTypes.d.ts +0 -121
package/build/esm/index.js
CHANGED
|
@@ -42,8 +42,8 @@ import Menu from '@material-ui/core/Menu';
|
|
|
42
42
|
import MenuItem from '@material-ui/core/MenuItem';
|
|
43
43
|
import Tooltip from '@material-ui/core/Tooltip';
|
|
44
44
|
import classNames from 'classnames';
|
|
45
|
-
import
|
|
46
|
-
import
|
|
45
|
+
import ImageList from '@material-ui/core/ImageList';
|
|
46
|
+
import ImageListItem from '@material-ui/core/ImageListItem';
|
|
47
47
|
import Grid$1 from '@material-ui/core/Grid';
|
|
48
48
|
import _typeof from '@babel/runtime/helpers/typeof';
|
|
49
49
|
import Select from '@material-ui/core/Select';
|
|
@@ -62,12 +62,12 @@ import { useHover, useLayer } from 'react-laag';
|
|
|
62
62
|
import { ContentBoxComponent } from '@crystaldesign/content-box';
|
|
63
63
|
import { NavigateBefore, NavigateNext } from '@material-ui/icons';
|
|
64
64
|
import TextareaAutosize from '@material-ui/core/TextareaAutosize';
|
|
65
|
-
import
|
|
66
|
-
import
|
|
65
|
+
import RTFEditor from '@crystaldesign/rtf-editor';
|
|
66
|
+
import { NumericFormat } from 'react-number-format';
|
|
67
67
|
import format from 'date-fns/format';
|
|
68
68
|
import { enGB, fr, it, de } from 'date-fns/locale';
|
|
69
69
|
import CustomDataFields from '@crystaldesign/diva-seller/components/ProductCreator/components/BasedataForms/GroupedFileds/CustomDataFields';
|
|
70
|
-
import deepEqual from '
|
|
70
|
+
import deepEqual from 'lodash/isEqual';
|
|
71
71
|
import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';
|
|
72
72
|
import EditIcon from '@material-ui/icons/EditOutlined';
|
|
73
73
|
import AddIcon from '@material-ui/icons/NoteAdd';
|
|
@@ -238,71 +238,71 @@ function Table(_ref2) {
|
|
|
238
238
|
whiteSpace: 'nowrap'
|
|
239
239
|
},
|
|
240
240
|
children: headerGroups.map(function (headerGroup) {
|
|
241
|
-
return /*#__PURE__*/
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
}
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
width: 1,
|
|
253
|
-
padding: 0,
|
|
254
|
-
position: 'relative',
|
|
255
|
-
zIndex: 5
|
|
256
|
-
}
|
|
257
|
-
})), {}, {
|
|
258
|
-
key: column.getHeaderProps().key + '_a'
|
|
259
|
-
}), /*#__PURE__*/jsx("div", {
|
|
260
|
-
style: {
|
|
261
|
-
width: 1
|
|
262
|
-
}
|
|
263
|
-
})));
|
|
264
|
-
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, column.getHeaderProps({
|
|
265
|
-
style: {
|
|
266
|
-
width: 1,
|
|
267
|
-
padding: 0,
|
|
268
|
-
position: 'sticky',
|
|
269
|
-
zIndex: 4,
|
|
270
|
-
right: 242
|
|
271
|
-
}
|
|
272
|
-
})), {}, {
|
|
273
|
-
key: column.getHeaderProps().key + '_b'
|
|
274
|
-
}), /*#__PURE__*/jsx("div", {
|
|
275
|
-
style: {
|
|
276
|
-
position: 'absolute',
|
|
277
|
-
top: 0,
|
|
278
|
-
left: 0,
|
|
279
|
-
bottom: 0,
|
|
280
|
-
width: 1,
|
|
281
|
-
boxShadow: '-1px 0px 0px 0px rgba(224, 224, 224, 1)'
|
|
282
|
-
}
|
|
283
|
-
})));
|
|
284
|
-
}
|
|
285
|
-
cells.push(/*#__PURE__*/jsxs(TableCell, _objectSpread$e(_objectSpread$e({}, column.getHeaderProps({
|
|
241
|
+
return /*#__PURE__*/createElement(TableRow, _objectSpread$e(_objectSpread$e({}, headerGroup.getHeaderGroupProps()), {}, {
|
|
242
|
+
key: headerGroup.getHeaderGroupProps().key
|
|
243
|
+
}), dragDropRows && /*#__PURE__*/jsx(TableCell, {
|
|
244
|
+
style: {
|
|
245
|
+
width: '8px',
|
|
246
|
+
padding: '16px 0px 16px 5px'
|
|
247
|
+
}
|
|
248
|
+
}), headerGroup.headers.flatMap(function (column, i) {
|
|
249
|
+
var cells = [];
|
|
250
|
+
if (column.fixed) {
|
|
251
|
+
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, column.getHeaderProps({
|
|
286
252
|
style: {
|
|
287
|
-
width:
|
|
288
|
-
padding:
|
|
289
|
-
|
|
290
|
-
zIndex:
|
|
291
|
-
minWidth: column.fixed ? column.width : undefined
|
|
253
|
+
width: 1,
|
|
254
|
+
padding: 0,
|
|
255
|
+
position: 'relative',
|
|
256
|
+
zIndex: 5
|
|
292
257
|
}
|
|
293
258
|
})), {}, {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
active: column.isSorted,
|
|
300
|
-
direction: column.isSortedDesc ? 'desc' : 'asc',
|
|
301
|
-
children: column.render('Header')
|
|
302
|
-
})), !column.canSort && column.render('Header')]
|
|
259
|
+
key: column.getHeaderProps().key + '_a'
|
|
260
|
+
}), /*#__PURE__*/jsx("div", {
|
|
261
|
+
style: {
|
|
262
|
+
width: 1
|
|
263
|
+
}
|
|
303
264
|
})));
|
|
304
|
-
|
|
305
|
-
|
|
265
|
+
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, column.getHeaderProps({
|
|
266
|
+
style: {
|
|
267
|
+
width: 1,
|
|
268
|
+
padding: 0,
|
|
269
|
+
position: 'sticky',
|
|
270
|
+
zIndex: 4,
|
|
271
|
+
right: 242
|
|
272
|
+
}
|
|
273
|
+
})), {}, {
|
|
274
|
+
key: column.getHeaderProps().key + '_b'
|
|
275
|
+
}), /*#__PURE__*/jsx("div", {
|
|
276
|
+
style: {
|
|
277
|
+
position: 'absolute',
|
|
278
|
+
top: 0,
|
|
279
|
+
left: 0,
|
|
280
|
+
bottom: 0,
|
|
281
|
+
width: 1,
|
|
282
|
+
boxShadow: '-1px 0px 0px 0px rgba(224, 224, 224, 1)'
|
|
283
|
+
}
|
|
284
|
+
})));
|
|
285
|
+
}
|
|
286
|
+
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, column.getHeaderProps({
|
|
287
|
+
style: {
|
|
288
|
+
width: column.width,
|
|
289
|
+
padding: column.padding,
|
|
290
|
+
right: column.fixed ? 0 : undefined,
|
|
291
|
+
zIndex: column.fixed ? 5 : 4,
|
|
292
|
+
minWidth: column.fixed ? column.width : undefined
|
|
293
|
+
}
|
|
294
|
+
})), {}, {
|
|
295
|
+
key: column.getHeaderProps().key,
|
|
296
|
+
sortDirection: column.isSorted ? column.isSortedDesc ? 'desc' : 'asc' : false
|
|
297
|
+
}),
|
|
298
|
+
// only wrap in tableSortLabel if it is actually sortable, otherwise other functionalities (e.g. select) don't work
|
|
299
|
+
column.canSort && /*#__PURE__*/jsx(TableSortLabel, _objectSpread$e(_objectSpread$e({}, column.getSortByToggleProps()), {}, {
|
|
300
|
+
disabled: !column.canSort,
|
|
301
|
+
active: column.isSorted,
|
|
302
|
+
direction: column.isSortedDesc ? 'desc' : 'asc',
|
|
303
|
+
children: column.render('Header')
|
|
304
|
+
})), !column.canSort && column.render('Header')));
|
|
305
|
+
return cells;
|
|
306
306
|
}));
|
|
307
307
|
})
|
|
308
308
|
}), !dragDropRows && /*#__PURE__*/jsxs(TableBody, _objectSpread$e(_objectSpread$e({}, getTableBodyProps()), {}, {
|
|
@@ -391,89 +391,88 @@ var MyRow = /*#__PURE__*/forwardRef(function (_ref4, ref) {
|
|
|
391
391
|
others = _objectWithoutProperties(_ref4, _excluded3);
|
|
392
392
|
prepareRow(row);
|
|
393
393
|
return /*#__PURE__*/jsxs(React.Fragment, {
|
|
394
|
-
children: [/*#__PURE__*/
|
|
394
|
+
children: [/*#__PURE__*/createElement(TableRow, _objectSpread$e(_objectSpread$e({}, row.getRowProps()), {}, {
|
|
395
|
+
key: row.getRowProps().key,
|
|
395
396
|
selected: row.isSelected,
|
|
396
397
|
onClick: function onClick() {
|
|
397
398
|
return toggleSelected(row.id);
|
|
398
399
|
},
|
|
399
400
|
ref: ref
|
|
400
|
-
}, others), {}, {
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
}
|
|
420
|
-
})), {}, {
|
|
421
|
-
key: cell.getCellProps().key + '_a'
|
|
422
|
-
})));
|
|
423
|
-
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, cell.getCellProps({
|
|
424
|
-
style: {
|
|
425
|
-
width: 1,
|
|
426
|
-
padding: 0,
|
|
427
|
-
position: 'sticky',
|
|
428
|
-
backgroundColor: 'white',
|
|
429
|
-
zIndex: 3,
|
|
430
|
-
right: 242
|
|
431
|
-
}
|
|
432
|
-
})), {}, {
|
|
433
|
-
key: cell.getCellProps().key + '_b'
|
|
434
|
-
}), /*#__PURE__*/jsx("div", {
|
|
435
|
-
style: {
|
|
436
|
-
position: 'absolute',
|
|
437
|
-
top: 0,
|
|
438
|
-
left: 0,
|
|
439
|
-
bottom: 0,
|
|
440
|
-
width: 1,
|
|
441
|
-
boxShadow: '-1px 0px 0px 0px rgba(224, 224, 224, 1)'
|
|
442
|
-
}
|
|
443
|
-
})));
|
|
444
|
-
}
|
|
445
|
-
cells.push(/*#__PURE__*/jsx(TableCell, _objectSpread$e(_objectSpread$e({}, cell.getCellProps({
|
|
446
|
-
style: _objectSpread$e({}, cellStyleHelper(cell))
|
|
401
|
+
}, others), dragDropRows && /*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e(_objectSpread$e({}, provided.dragHandleProps), row.cells[0].getCellProps({
|
|
402
|
+
//use first cell to get the highlight color
|
|
403
|
+
style: {
|
|
404
|
+
padding: 0,
|
|
405
|
+
userSelect: 'unset'
|
|
406
|
+
}
|
|
407
|
+
})), {}, {
|
|
408
|
+
key: row.cells[0].getCellProps().key
|
|
409
|
+
}), /*#__PURE__*/jsx(DragIndicatorIcon, {})), row.cells.flatMap(function (cell, i) {
|
|
410
|
+
var cells = [];
|
|
411
|
+
if (cell.column.fixed) {
|
|
412
|
+
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, cell.getCellProps({
|
|
413
|
+
style: {
|
|
414
|
+
width: 1,
|
|
415
|
+
padding: 0,
|
|
416
|
+
position: 'relative',
|
|
417
|
+
backgroundColor: 'white',
|
|
418
|
+
zIndex: 4
|
|
419
|
+
}
|
|
447
420
|
})), {}, {
|
|
448
|
-
|
|
449
|
-
/*#__PURE__*/
|
|
450
|
-
// If it's a grouped cell, add an expander and row count
|
|
451
|
-
jsxs("div", {
|
|
452
|
-
style: {
|
|
453
|
-
display: 'flex'
|
|
454
|
-
},
|
|
455
|
-
children: [/*#__PURE__*/jsx(IconButton, _objectSpread$e(_objectSpread$e({
|
|
456
|
-
"aria-label": "expand row",
|
|
457
|
-
size: "small"
|
|
458
|
-
}, row.getToggleRowExpandedProps()), {}, {
|
|
459
|
-
onClick: undefined,
|
|
460
|
-
children: row.isExpanded ? /*#__PURE__*/jsx(KeyboardArrowUpIcon, {}) : /*#__PURE__*/jsx(KeyboardArrowDownIcon, {})
|
|
461
|
-
})), /*#__PURE__*/jsxs("div", {
|
|
462
|
-
style: {
|
|
463
|
-
marginRight: '5px'
|
|
464
|
-
},
|
|
465
|
-
children: ["(", row.subRows.length, ")"]
|
|
466
|
-
}), cell.render('Cell')]
|
|
467
|
-
}) : cell.isAggregated ?
|
|
468
|
-
// If the cell is aggregated, use the Aggregated
|
|
469
|
-
// renderer for cell
|
|
470
|
-
cell.render('Aggregated') : cell.isPlaceholder ? /*#__PURE__*/jsx(Fragment, {}) // For cells with repeated values, render null
|
|
471
|
-
:
|
|
472
|
-
// Otherwise, just render the regular cell
|
|
473
|
-
cell.render('Cell')
|
|
421
|
+
key: cell.getCellProps().key + '_a'
|
|
474
422
|
})));
|
|
475
|
-
|
|
476
|
-
|
|
423
|
+
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, cell.getCellProps({
|
|
424
|
+
style: {
|
|
425
|
+
width: 1,
|
|
426
|
+
padding: 0,
|
|
427
|
+
position: 'sticky',
|
|
428
|
+
backgroundColor: 'white',
|
|
429
|
+
zIndex: 3,
|
|
430
|
+
right: 242
|
|
431
|
+
}
|
|
432
|
+
})), {}, {
|
|
433
|
+
key: cell.getCellProps().key + '_b'
|
|
434
|
+
}), /*#__PURE__*/jsx("div", {
|
|
435
|
+
style: {
|
|
436
|
+
position: 'absolute',
|
|
437
|
+
top: 0,
|
|
438
|
+
left: 0,
|
|
439
|
+
bottom: 0,
|
|
440
|
+
width: 1,
|
|
441
|
+
boxShadow: '-1px 0px 0px 0px rgba(224, 224, 224, 1)'
|
|
442
|
+
}
|
|
443
|
+
})));
|
|
444
|
+
}
|
|
445
|
+
cells.push(/*#__PURE__*/createElement(TableCell, _objectSpread$e(_objectSpread$e({}, cell.getCellProps({
|
|
446
|
+
style: _objectSpread$e({}, cellStyleHelper(cell))
|
|
447
|
+
})), {}, {
|
|
448
|
+
key: cell.getCellProps().key
|
|
449
|
+
}), cell.isGrouped ?
|
|
450
|
+
/*#__PURE__*/
|
|
451
|
+
// If it's a grouped cell, add an expander and row count
|
|
452
|
+
jsxs("div", {
|
|
453
|
+
style: {
|
|
454
|
+
display: 'flex'
|
|
455
|
+
},
|
|
456
|
+
children: [/*#__PURE__*/jsx(IconButton, _objectSpread$e(_objectSpread$e({
|
|
457
|
+
"aria-label": "expand row",
|
|
458
|
+
size: "small"
|
|
459
|
+
}, row.getToggleRowExpandedProps()), {}, {
|
|
460
|
+
onClick: undefined,
|
|
461
|
+
children: row.isExpanded ? /*#__PURE__*/jsx(KeyboardArrowUpIcon, {}) : /*#__PURE__*/jsx(KeyboardArrowDownIcon, {})
|
|
462
|
+
})), /*#__PURE__*/jsxs("div", {
|
|
463
|
+
style: {
|
|
464
|
+
marginRight: '5px'
|
|
465
|
+
},
|
|
466
|
+
children: ["(", row.subRows.length, ")"]
|
|
467
|
+
}), cell.render('Cell')]
|
|
468
|
+
}) : cell.isAggregated ?
|
|
469
|
+
// If the cell is aggregated, use the Aggregated
|
|
470
|
+
// renderer for cell
|
|
471
|
+
cell.render('Aggregated') : cell.isPlaceholder ? /*#__PURE__*/jsx(Fragment, {}) // For cells with repeated values, render null
|
|
472
|
+
:
|
|
473
|
+
// Otherwise, just render the regular cell
|
|
474
|
+
cell.render('Cell')));
|
|
475
|
+
return cells;
|
|
477
476
|
})), row.isExpanded && renderSubComponent && !row.isGrouped && /*#__PURE__*/jsx(Fragment, {
|
|
478
477
|
children: renderSubComponent(row)
|
|
479
478
|
})]
|
|
@@ -922,15 +921,15 @@ function SimpleGallery(_ref3) {
|
|
|
922
921
|
})
|
|
923
922
|
});
|
|
924
923
|
} else {
|
|
925
|
-
return /*#__PURE__*/jsx(
|
|
924
|
+
return /*#__PURE__*/jsx(ImageList, {
|
|
926
925
|
className: className,
|
|
927
926
|
component: "div",
|
|
928
|
-
|
|
927
|
+
rowHeight: "auto",
|
|
929
928
|
cols: 0,
|
|
930
|
-
|
|
929
|
+
gap: 0,
|
|
931
930
|
children: rows.map(function (row) {
|
|
932
931
|
prepareRow(row);
|
|
933
|
-
return /*#__PURE__*/jsx(
|
|
932
|
+
return /*#__PURE__*/jsx(ImageListItem, {
|
|
934
933
|
component: "div",
|
|
935
934
|
onClick: function onClick() {
|
|
936
935
|
return toggleSelected(row.id);
|
|
@@ -1536,7 +1535,7 @@ function BooleanCell (_ref) {
|
|
|
1536
1535
|
setValue(!!stateValue);
|
|
1537
1536
|
}, [stateValue]);
|
|
1538
1537
|
var disabled = false;
|
|
1539
|
-
if (custom && !!column.disabled && column.disabled.type === 'MAX_COUNT' && column.disabled.count <= custom[column.disabled.key]) {
|
|
1538
|
+
if (custom && !!column.disabled && column.disabled.type === 'MAX_COUNT' && column.disabled.count <= +custom[column.disabled.key]) {
|
|
1540
1539
|
if ((!column.disabled.valueOfOtherColum || !row.values[column.disabled.valueOfOtherColum]) && !value) disabled = column.disabled.text;
|
|
1541
1540
|
}
|
|
1542
1541
|
var isEditalbe = column.editable && inlineEditing;
|
|
@@ -1855,7 +1854,7 @@ function SelectionCell (_ref) {
|
|
|
1855
1854
|
value: s.key,
|
|
1856
1855
|
children: props.column.localePrefix != '' ? t(props.column.localePrefix + s.value, {
|
|
1857
1856
|
defaultValue: s.value
|
|
1858
|
-
}) : s
|
|
1857
|
+
}) : s.value
|
|
1859
1858
|
}, s.key);
|
|
1860
1859
|
})]
|
|
1861
1860
|
}), showArrows && /*#__PURE__*/jsx(NavigateNext, {
|
|
@@ -1939,18 +1938,16 @@ function Text(_ref3) {
|
|
|
1939
1938
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
1940
1939
|
value = _useState8[0],
|
|
1941
1940
|
setValue = _useState8[1];
|
|
1942
|
-
var _useState9 = useState(valueOutside),
|
|
1943
|
-
_useState10 = _slicedToArray(_useState9, 2),
|
|
1944
|
-
tempRichText = _useState10[0],
|
|
1945
|
-
setTempRichText = _useState10[1];
|
|
1946
|
-
var _useDivaCore2 = useDivaCore(),
|
|
1947
|
-
tinyMceApiKey = _useDivaCore2.state.tinyMceApiKey;
|
|
1948
1941
|
useEffect(function () {
|
|
1949
1942
|
setValueOutside(value);
|
|
1950
1943
|
}, [value]);
|
|
1951
|
-
|
|
1952
|
-
if (
|
|
1953
|
-
|
|
1944
|
+
function changeText(text) {
|
|
1945
|
+
if (translation) {
|
|
1946
|
+
setValue(_objectSpread$7(_objectSpread$7({}, value), {}, _defineProperty({}, languages[curLangIndex], text)));
|
|
1947
|
+
} else {
|
|
1948
|
+
setValue(text);
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1954
1951
|
return /*#__PURE__*/jsxs(Fragment, {
|
|
1955
1952
|
children: [translation && /*#__PURE__*/jsx(TranslationSelector, {
|
|
1956
1953
|
state: [curLangIndex, setLang],
|
|
@@ -1974,28 +1971,9 @@ function Text(_ref3) {
|
|
|
1974
1971
|
fontSize: 'inherit',
|
|
1975
1972
|
overflow: 'auto'
|
|
1976
1973
|
}
|
|
1977
|
-
}, curLangIndex), rich && /*#__PURE__*/jsx(
|
|
1978
|
-
apiKey: tinyMceApiKey,
|
|
1974
|
+
}, curLangIndex), rich && /*#__PURE__*/jsx(RTFEditor, {
|
|
1979
1975
|
initialValue: translation ? value[languages[curLangIndex]] : value,
|
|
1980
|
-
onChange:
|
|
1981
|
-
if (translation) {
|
|
1982
|
-
setTempRichText(_objectSpread$7(_objectSpread$7({}, value), {}, _defineProperty({}, languages[curLangIndex], e.target.getContent())));
|
|
1983
|
-
} else setTempRichText(e.target.getContent());
|
|
1984
|
-
},
|
|
1985
|
-
onSubmit: function onSubmit(e) {
|
|
1986
|
-
setValue(tempRichText);
|
|
1987
|
-
},
|
|
1988
|
-
textareaName: "text",
|
|
1989
|
-
init: {
|
|
1990
|
-
height: 500,
|
|
1991
|
-
menubar: false,
|
|
1992
|
-
plugins: ['advlist autolink lists link table paste'],
|
|
1993
|
-
contextmenu: '',
|
|
1994
|
-
resize: false,
|
|
1995
|
-
statusbar: false,
|
|
1996
|
-
toolbar: 'undo redo | formatselect | ' + 'bold italic backcolor | alignleft aligncenter ' + 'alignright alignjustify | bullist numlist outdent indent | table ',
|
|
1997
|
-
content_style: 'body { font-family:Helvetica,Arial,sans-serif; font-size:14px }'
|
|
1998
|
-
}
|
|
1976
|
+
onChange: changeText
|
|
1999
1977
|
}, curLangIndex)]
|
|
2000
1978
|
});
|
|
2001
1979
|
}
|
|
@@ -2154,7 +2132,7 @@ function ControlledNumberFormat(_ref2) {
|
|
|
2154
2132
|
}
|
|
2155
2133
|
(_props$onBlur = props.onBlur) === null || _props$onBlur === void 0 || _props$onBlur.call(props, e);
|
|
2156
2134
|
};
|
|
2157
|
-
return /*#__PURE__*/jsx(
|
|
2135
|
+
return /*#__PURE__*/jsx(NumericFormat, _objectSpread$6(_objectSpread$6({}, props), {}, {
|
|
2158
2136
|
value: value,
|
|
2159
2137
|
customInput: StyledTextFiled,
|
|
2160
2138
|
onChange: function onChange() {
|
|
@@ -2330,10 +2308,10 @@ function useParsedOptions(options) {
|
|
|
2330
2308
|
}, [options]);
|
|
2331
2309
|
}
|
|
2332
2310
|
function parseColumn(value) {
|
|
2333
|
-
var _value$columns, _value$type, _value$type2;
|
|
2311
|
+
var _value$label, _value$columns, _value$type, _value$type2;
|
|
2334
2312
|
return {
|
|
2335
2313
|
accessor: value.accessor,
|
|
2336
|
-
Header: value.label
|
|
2314
|
+
Header: (_value$label = value.label) !== null && _value$label !== void 0 ? _value$label : value.accessor,
|
|
2337
2315
|
disableFilters: !value.filterable,
|
|
2338
2316
|
disableGlobalFilter: !value.globalFilterable,
|
|
2339
2317
|
disableSortBy: !value.sortable,
|
|
@@ -2361,23 +2339,31 @@ function getFilterComponent(value) {
|
|
|
2361
2339
|
switch (value.filterType) {
|
|
2362
2340
|
case 'exists':
|
|
2363
2341
|
case 'boolean':
|
|
2364
|
-
return
|
|
2342
|
+
return function (props) {
|
|
2343
|
+
return BooleanFilter(value.defaultFilterValue, props);
|
|
2344
|
+
};
|
|
2365
2345
|
case 'dateRange':
|
|
2366
2346
|
return DateRangeFilter;
|
|
2367
2347
|
case 'select':
|
|
2368
2348
|
case 'selectArrows':
|
|
2369
|
-
return
|
|
2349
|
+
return function (props) {
|
|
2350
|
+
return SelectColumnFilter(value.selectValues || [], value.format || '', value.defaultFilterValue, props);
|
|
2351
|
+
};
|
|
2370
2352
|
}
|
|
2371
2353
|
} else if (value.type) {
|
|
2372
2354
|
switch (value.type) {
|
|
2373
2355
|
case 'boolean':
|
|
2374
2356
|
case 'exists':
|
|
2375
|
-
return
|
|
2357
|
+
return function (props) {
|
|
2358
|
+
return BooleanFilter(value.defaultFilterValue, props);
|
|
2359
|
+
};
|
|
2376
2360
|
case 'date':
|
|
2377
2361
|
return DateRangeFilter;
|
|
2378
2362
|
case 'select':
|
|
2379
2363
|
case 'selectArrows':
|
|
2380
|
-
return
|
|
2364
|
+
return function (props) {
|
|
2365
|
+
return SelectColumnFilter(value.selectValues || [], value.format || '', value.defaultFilterValue, props);
|
|
2366
|
+
};
|
|
2381
2367
|
}
|
|
2382
2368
|
}
|
|
2383
2369
|
return DefaultColumnFilter;
|
|
@@ -3543,8 +3529,8 @@ function Grid(_ref) {
|
|
|
3543
3529
|
count: options.apiInterface.filterServerSide ? total : rows.length,
|
|
3544
3530
|
rowsPerPage: pageSize,
|
|
3545
3531
|
page: pageIndex,
|
|
3546
|
-
|
|
3547
|
-
|
|
3532
|
+
onPageChange: handleChangePage,
|
|
3533
|
+
onRowsPerPageChange: handleChangeRowsPerPage,
|
|
3548
3534
|
labelRowsPerPage: shortPaging ? /*#__PURE__*/jsx(Fragment, {}) : undefined
|
|
3549
3535
|
}), /*#__PURE__*/jsx(Footerbar, {
|
|
3550
3536
|
actions: footerActions === null || footerActions === void 0 ? void 0 : footerActions.map(function (a) {
|
|
@@ -83,5 +83,5 @@ export interface GridProps<D extends object> {
|
|
|
83
83
|
*/
|
|
84
84
|
noData?: any;
|
|
85
85
|
}
|
|
86
|
-
export default function Grid<D extends object>({ options, gallery, table, columnActions, toolbarActions, footerActions, selected, onSelect, onEdit, onDelete, onUpdate, onNew, prepareRow: prepareRowHook, customElement, noData, }: GridProps<D>): JSX.Element;
|
|
86
|
+
export default function Grid<D extends object>({ options, gallery, table, columnActions, toolbarActions, footerActions, selected, onSelect, onEdit, onDelete, onUpdate, onNew, prepareRow: prepareRowHook, customElement, noData, }: GridProps<D>): React.JSX.Element;
|
|
87
87
|
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAIjF,OAAO,EAWL,GAAG,EAEH,QAAQ,EAGT,MAAM,aAAa,CAAC;AAmBrB,OAAO,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQ/D,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,MAAM;IACzC;;OAEG;IACH,OAAO,EAAE,WAAW,CAAC,CAA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AED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,EAC7C,OAAO,EACP,OAAO,EACP,KAAK,EACL,aAAa,EACb,cAAc,EACd,aAAa,EACb,QAAQ,EACR,QAAmB,EACnB,MAAM,EACN,QAAQ,EACR,QAAQ,EACR,KAAK,EACL,UAAU,EAAE,cAAc,EAC1B,aAAa,EACb,MAAM,GACP,EAAE,SAAS,CAAC,CAAC,CAAC,qBAsWd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apiFetchData.d.ts","sourceRoot":"","sources":["../../../../../../src/hooks/useApiInterface/apiFetchData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAa,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,yBAA+B,CAAC,SAAS,MAAM,EAAE,EAC/C,YAAY,EACZ,OAAO,EACP,wBAAwB,EACxB,WAAW,GACZ,EAAE;IACD,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IACvB,wBAAwB,EAAE,uBAAuB,CAAC;IAClD,WAAW,EAAE,WAAW,CAAC;CAC1B
|
|
1
|
+
{"version":3,"file":"apiFetchData.d.ts","sourceRoot":"","sources":["../../../../../../src/hooks/useApiInterface/apiFetchData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAa,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,GAAG,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,yBAA+B,CAAC,SAAS,MAAM,EAAE,EAC/C,YAAY,EACZ,OAAO,EACP,wBAAwB,EACxB,WAAW,GACZ,EAAE;IACD,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC,CAAC;IAC9B,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;IACvB,wBAAwB,EAAE,uBAAuB,CAAC;IAClD,WAAW,EAAE,WAAW,CAAC;CAC1B;UAkBiB,GAAG,EAAE;;GAsCtB;AAkCD,wBAAgB,YAAY,CAC1B,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,EAC/B,OAAO,EAAE,MAAM,CAAC,GAAG,CAAC,EAAE,EACtB,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,MAAM,EACb,MAAM,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAA;CAAE,EAAE,EACxC,OAAO,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,GAAG,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EACnD,YAAY,CAAC,EAAE,MAAM,EACrB,cAAc,CAAC,EAAE,aAAa,EAAE,mBA8CjC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useParsedOptions.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useParsedOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4C,MAAM,gBAAgB,CAAC;AAEvF,OAAO,
|
|
1
|
+
{"version":3,"file":"useParsedOptions.d.ts","sourceRoot":"","sources":["../../../../../src/hooks/useParsedOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4C,MAAM,gBAAgB,CAAC;AAEvF,OAAO,EAAe,MAAM,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQ9D,MAAM,WAAW,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC;IAC1F,OAAO,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,UAAU,CAAC,EAAE;QACX,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;QACvB,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,IAAI,CAAC,EAAE,OAAO,CAAC;KAChB,CAAC;CACH;AAED,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,SAAS,MAAM,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC,wBAoBjF"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
import 'core-js-pure/stable';
|
|
4
4
|
import 'regenerator-runtime/runtime';
|
|
5
|
-
import './extendedReactTableTypes.d.ts';
|
|
6
5
|
import Grid from './Grid';
|
|
7
6
|
export * from './GirdOptions';
|
|
8
7
|
export type { Row } from 'react-table';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,6BAA6B,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,6BAA6B,CAAC;AACrC,OAAO,IAAI,MAAM,QAAQ,CAAC;AAC1B,cAAc,eAAe,CAAC;AAG9B,YAAY,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAEvC,eAAe,IAAI,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CellProps } from 'react-table';
|
|
2
|
-
export default function <D extends object>(props: CellProps<D, any>): JSX.Element;
|
|
3
|
+
export default function <D extends object>(props: CellProps<D, any>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=CustomCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CustomCell.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/cells/CustomCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"CustomCell.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/cells/CustomCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAWxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,qBAOlE"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { CellProps } from 'react-table';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { GridColumnActions } from '../../../GirdOptions';
|
|
3
4
|
export default function ActionCell<D extends object>({ row, actions, updateData, deleteData, groupActions, }: CellProps<D, any> & {
|
|
4
5
|
actions: GridColumnActions<D>[];
|
|
5
6
|
updateData?: (item: D, index?: number, id?: string) => Promise<void>;
|
|
6
7
|
deleteData?: (index: number) => any;
|
|
7
8
|
groupActions?: number;
|
|
8
|
-
}): JSX.Element;
|
|
9
|
+
}): React.JSX.Element;
|
|
9
10
|
//# sourceMappingURL=ActionCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/action/ActionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ActionCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/action/ActionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAKzD,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,EACnD,GAAG,EACH,OAAO,EACP,UAAU,EACV,UAAU,EACV,YAAgB,GACjB,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG;IACrB,OAAO,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC;IAChC,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,GAAG,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,qBA6GA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CellProps } from 'react-table';
|
|
2
|
-
export default function <D extends object = any>({ value: val, column, row, updateData, inlineEditing, custom }: CellProps<D>): JSX.Element;
|
|
3
|
+
export default function <D extends object = any>({ value: val, column, row, updateData, inlineEditing, custom }: CellProps<D>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=BooleanCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/boolean/BooleanCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BooleanCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/boolean/BooleanCell.tsx"],"names":[],"mappings":"AACA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,qBAoE5H"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CellProps } from 'react-table';
|
|
2
|
-
export default function DateCell<D extends object>({ value, column, inlineEditing }: CellProps<D, Date | number>): JSX.Element;
|
|
3
|
+
export default function DateCell<D extends object>({ value, column, inlineEditing }: CellProps<D, Date | number>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=DateCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/date/DateCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/date/DateCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAMxC,MAAM,CAAC,OAAO,UAAU,QAAQ,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,SAAS,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,qBAa/G"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CellProps } from 'react-table';
|
|
2
|
-
export default function <D extends object = any>(props: CellProps<D>): JSX.Element;
|
|
3
|
+
export default function <D extends object = any>(props: CellProps<D>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=FormularCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormularCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/formular/FormularCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormularCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/formular/FormularCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,qBA4BnE"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CellProps } from 'react-table';
|
|
2
|
-
|
|
3
|
-
export
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function ImgCell<D extends object>({ value, column, inlineEditing }: CellProps<D, string>): React.JSX.Element;
|
|
4
|
+
export declare const LazyImage: ({ src, alt }: any) => React.JSX.Element;
|
|
4
5
|
//# sourceMappingURL=ImgCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImgCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/image/ImgCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"ImgCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/image/ImgCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAsC,MAAM,OAAO,CAAC;AAK3D,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,SAAS,CAAC,CAAC,EAAE,MAAM,CAAC,qBAWvG;AAED,eAAO,MAAM,SAAS,iBAAkB,GAAG,sBA+C1C,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { CellProps } from 'react-table';
|
|
2
|
-
export default function <D extends object = any>(props: CellProps<D>): JSX.Element;
|
|
3
|
+
export default function <D extends object = any>(props: CellProps<D>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=MediaViewerCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MediaViewerCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/media/MediaViewerCell.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MediaViewerCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/media/MediaViewerCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAKxC,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,qBAyDnE"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { TextFieldProps } from '@material-ui/core/TextField';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
import { CellProps } from 'react-table';
|
|
3
|
-
import {
|
|
4
|
-
export default function <D extends object = any>(props: CellProps<D>): JSX.Element;
|
|
4
|
+
import { NumericFormatProps } from 'react-number-format';
|
|
5
|
+
export default function <D extends object = any>(props: CellProps<D>): React.JSX.Element;
|
|
5
6
|
/**
|
|
6
7
|
*
|
|
7
8
|
* NumberFormat fires onValueChange also onChanges cause by formatting, e.g. decimal rounding,
|
|
8
9
|
* onChange on the other hand fires only if the actual value changes, however it returns only the formated value.
|
|
9
10
|
* So we have to combine them here
|
|
10
11
|
*/
|
|
11
|
-
export declare function ControlledNumberFormat({ onValueChange, value: origValue, ...props }:
|
|
12
|
+
export declare function ControlledNumberFormat({ onValueChange, value: origValue, ...props }: Omit<NumericFormatProps, 'onValueChange'> & TextFieldProps & {
|
|
13
|
+
onValueChange?: (value: any) => void;
|
|
14
|
+
}): React.JSX.Element;
|
|
12
15
|
//# sourceMappingURL=PriceCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PriceCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/price/PriceCell.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"PriceCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/price/PriceCell.tsx"],"names":[],"mappings":"AAAA,OAAkB,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAExE,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAiB,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAIxE,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,qBA4CnE;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CAAC,EACrC,aAAa,EACb,KAAK,EAAE,SAAS,EAChB,GAAG,KAAK,EACT,EAAE,IAAI,CAAC,kBAAkB,EAAE,eAAe,CAAC,GAAG,cAAc,GAAG;IAAE,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAA;CAAE,qBAiCvG"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CellProps } from 'react-table';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export default function <D extends object>({ showArrows, ...props }: CellProps<D, any> & {
|
|
3
4
|
showArrows?: boolean;
|
|
4
|
-
}): JSX.Element;
|
|
5
|
+
}): React.JSX.Element;
|
|
5
6
|
//# sourceMappingURL=SelectionCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectionCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/selection/SelectionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectionCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/selection/SelectionCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,qBAuEhH"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { CellProps } from 'react-table';
|
|
2
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function <D extends object>(props: CellProps<D, any>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=TextCell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/text/TextCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"TextCell.d.ts","sourceRoot":"","sources":["../../../../../../../src/ui/cells/text/TextCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,KAAsC,MAAM,OAAO,CAAC;AAQ3D,MAAM,CAAC,OAAO,WAAW,CAAC,SAAS,MAAM,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,EAAE,GAAG,CAAC,qBA4DlE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface FooterbarProps {
|
|
2
3
|
/**
|
|
3
4
|
* A list of settings for the action buttons
|
|
@@ -10,5 +11,5 @@ export interface FooterbarProps {
|
|
|
10
11
|
/**
|
|
11
12
|
* The footerbar component for the grid, it holds general action buttons.
|
|
12
13
|
*/
|
|
13
|
-
export default function Footerbar({ actions }: FooterbarProps): JSX.Element;
|
|
14
|
+
export default function Footerbar({ actions }: FooterbarProps): React.JSX.Element;
|
|
14
15
|
//# sourceMappingURL=Footerbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Footerbar.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Footerbar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Footerbar.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Footerbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,OAAO,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAA;KAAE,EAAE,CAAC;CACpD;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,EAAE,OAAY,EAAE,EAAE,cAAc,qBAkBjE"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { Row } from 'react-table';
|
|
2
3
|
interface Props<D extends object> {
|
|
3
4
|
isLoading?: boolean;
|
|
@@ -18,6 +19,6 @@ interface Props<D extends object> {
|
|
|
18
19
|
*/
|
|
19
20
|
noData?: any;
|
|
20
21
|
}
|
|
21
|
-
export default function Gallery<D extends object>({ isLoading, noData, ...props }: Props<D>): JSX.Element;
|
|
22
|
+
export default function Gallery<D extends object>({ isLoading, noData, ...props }: Props<D>): React.JSX.Element;
|
|
22
23
|
export {};
|
|
23
24
|
//# sourceMappingURL=Gallery.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Gallery.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Gallery.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Gallery.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,GAAG,EAAE,MAAM,aAAa,CAAC;AAKlC,UAAU,KAAK,CAAC,CAAC,SAAS,MAAM;IAC9B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACpB,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAClC,UAAU,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IAC1C,WAAW,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IAC5C;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,IAAI,CAAC,EAAE;QACL,QAAQ,EAAE,MAAM,CAAC;QACjB,GAAG,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;IACF;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC,CAAC,qBAuB1F"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/NoData.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NoData.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/NoData.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,CAAC,OAAO,UAAU,MAAM,sBAS7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverflowTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/OverflowTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,cAAsB,GACvB,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,
|
|
1
|
+
{"version":3,"file":"OverflowTooltip.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/OverflowTooltip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAI3D,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,KAAK,EACL,QAAQ,EACR,cAAsB,GACvB,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,KAAK,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B,qBA8CA"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { TablePropGetter, TableProps as RtTableProps, HeaderGroup, Row, TableBodyPropGetter, TableBodyProps } from 'react-table';
|
|
2
3
|
export interface TableProps<D extends object> {
|
|
3
4
|
/**
|
|
@@ -41,5 +42,5 @@ export interface TableProps<D extends object> {
|
|
|
41
42
|
*/
|
|
42
43
|
noData?: any;
|
|
43
44
|
}
|
|
44
|
-
export default function MemoizedTable<D extends object>({ headerGroups, rows, isLoading, selectedFlatRows, ...others }: TableProps<D>): JSX.Element;
|
|
45
|
+
export default function MemoizedTable<D extends object>({ headerGroups, rows, isLoading, selectedFlatRows, ...others }: TableProps<D>): React.JSX.Element;
|
|
45
46
|
//# sourceMappingURL=Table.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Table.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Table.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AASnD,OAAO,EAAE,eAAe,EAAE,UAAU,IAAI,YAAY,EAAE,WAAW,EAAE,GAAG,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUjI,MAAM,WAAW,UAAU,CAAC,CAAC,SAAS,MAAM;IAC1C;;OAEG;IACH,aAAa,EAAE,CAAC,UAAU,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC,KAAK,YAAY,CAAC;IACjE;;OAEG;IACH,iBAAiB,EAAE,CAAC,UAAU,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,cAAc,CAAC;IAC3E;;OAEG;IACH,UAAU,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAClC;;OAEG;IACH,YAAY,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAErB,gBAAgB,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;IAE3C;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,CAAC,OAAO,CAAC;IAEnD,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB,eAAe,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC;IAErE,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,GAAG,CAAC;CACd;AAED,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,qBAKpI"}
|
|
@@ -43,5 +43,5 @@ export interface ToolbarProps {
|
|
|
43
43
|
* The toolbar component for the grid, it holds filters and general action buttons.
|
|
44
44
|
* If there are filters specified it is expandable, otherwise it its a simple toolbar.
|
|
45
45
|
*/
|
|
46
|
-
export default function Toolbar({ globalFilter, filters, actions, views, onViewSwitch, selectedView, customElement, }: ToolbarProps): JSX.Element;
|
|
46
|
+
export default function Toolbar({ globalFilter, filters, actions, views, onViewSwitch, selectedView, customElement, }: ToolbarProps): React.JSX.Element;
|
|
47
47
|
//# sourceMappingURL=Toolbar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toolbar.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/Toolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAA+B,MAAM,OAAO,CAAC;AAYtE,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,eAAe,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,IAAI,CAAC;QAC5C,KAAK,EAAE,GAAG,CAAC;KACZ,CAAC;IACF;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,EAAE,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,SAAS,CAAA;KAAE,EAAE,CAAC;IAC7C;;OAEG;IACH,YAA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M,GAAG,GAAG,CAAC,OAAO,CAAC;QAAC,OAAO,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAE7G;;OAEG;IACH,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,EAC9B,YAAY,EACZ,OAAY,EACZ,OAAY,EACZ,KAAU,EACV,YAAuB,EACvB,YAAY,EACZ,aAAa,GACd,EAAE,YAAY,qBA4Dd"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { FilterProps } from 'react-table';
|
|
2
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function BooleanFilter<D extends object>(defaultValue: any, { column: { filterValue, setFilter, Header } }: FilterProps<D>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=BooleanFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BooleanFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/BooleanFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"BooleanFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/BooleanFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAA4B,MAAM,OAAO,CAAC;AAQjD,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,YAAY,EAAE,GAAG,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,qBA6BxI"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FilterProps, Row, IdType, FilterValue } from 'react-table';
|
|
2
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function DateRangeFilter<D extends object>({ column: { filterValue, setFilter, Header } }: FilterProps<D>): React.JSX.Element;
|
|
3
4
|
export declare function dateRangeFilterMethod<D extends object>(rows: Array<Row<D>>, columnIds: Array<IdType<D>>, filterValue: FilterValue): Array<Row<D>>;
|
|
4
5
|
//# sourceMappingURL=DateRangeFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateRangeFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/DateRangeFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"DateRangeFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/DateRangeFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,KAAK,MAAM,OAAO,CAAC;AAiC1B,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,qBAoDvH;AAED,wBAAgB,qBAAqB,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,WAAW,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAQjJ"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { FilterProps } from 'react-table';
|
|
2
|
-
|
|
2
|
+
import React from 'react';
|
|
3
|
+
export default function DefaultColumnFilter<D extends object>({ column: { filter, filterValue, setFilter, Header } }: FilterProps<D>): React.JSX.Element;
|
|
3
4
|
//# sourceMappingURL=DefaultColumnFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultColumnFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/DefaultColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"DefaultColumnFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/DefaultColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAoB,MAAM,aAAa,CAAC;AAC5D,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,qBA2BnI"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface Props {
|
|
2
3
|
setGlobalFilter: (filterValue: any) => void;
|
|
3
4
|
value: any;
|
|
4
5
|
}
|
|
5
|
-
export default function GlobalFilter({ value, setGlobalFilter }: Props): JSX.Element;
|
|
6
|
+
export default function GlobalFilter({ value, setGlobalFilter }: Props): React.JSX.Element;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=GlobalFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/GlobalFilter.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/GlobalFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,KAAK;IACb,eAAe,EAAE,CAAC,WAAW,EAAE,GAAG,KAAK,IAAI,CAAC;IAC5C,KAAK,EAAE,GAAG,CAAC;CACZ;AAED,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,EAAE,KAAK,EAAE,eAAe,EAAE,EAAE,KAAK,qBA6BrE"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { FilterProps } from 'react-table';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export default function SelectColumnFilter<D extends object>(values: (string | number)[] | {
|
|
3
4
|
key: string;
|
|
4
5
|
value: string;
|
|
5
|
-
}[], prefix: string, defaultValue: any, { column: { preFilteredRows, filterValue, setFilter, Header, id } }: FilterProps<D>): JSX.Element;
|
|
6
|
+
}[], prefix: string, defaultValue: any, { column: { preFilteredRows, filterValue, setFilter, Header, id } }: FilterProps<D>): React.JSX.Element;
|
|
6
7
|
//# sourceMappingURL=SelectColumnFilter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectColumnFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/SelectColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectColumnFilter.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/filter/SelectColumnFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,MAAM,CAAC,OAAO,UAAU,kBAAkB,CAAC,CAAC,SAAS,MAAM,EACzD,MAAM,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,EAC9D,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,GAAG,EACjB,EAAE,MAAM,EAAE,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,qBAwDpF"}
|
package/package.json
CHANGED
|
@@ -1,47 +1,45 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystaldesign/grid",
|
|
3
|
-
"version": "24.
|
|
3
|
+
"version": "24.13.0-beta.1",
|
|
4
4
|
"license": "COMMERCIAL",
|
|
5
5
|
"devDependencies": {
|
|
6
6
|
"@material-ui/pickers": "^3.2.10",
|
|
7
|
-
"@testing-library/jest-dom": "^5.
|
|
8
|
-
"@testing-library/react": "^
|
|
9
|
-
"@
|
|
10
|
-
"@types/
|
|
11
|
-
"
|
|
12
|
-
"react": "
|
|
13
|
-
"react-dom": "17.0.2"
|
|
7
|
+
"@testing-library/jest-dom": "^6.5.0",
|
|
8
|
+
"@testing-library/react": "^16.0.1",
|
|
9
|
+
"@types/flat": "^5.0.2",
|
|
10
|
+
"@types/react-table": "^7.7.20",
|
|
11
|
+
"react": "18.3.1",
|
|
12
|
+
"react-dom": "18.3.1"
|
|
14
13
|
},
|
|
15
14
|
"dependencies": {
|
|
16
|
-
"@crystaldesign/
|
|
15
|
+
"@crystaldesign/content-box": "24.13.0-beta.1",
|
|
16
|
+
"@crystaldesign/rtf-editor": "24.13.0-beta.1",
|
|
17
|
+
"@crystaldesign/searchfield": "24.13.0-beta.1",
|
|
17
18
|
"@date-io/core": "^1.3.13",
|
|
18
19
|
"@date-io/date-fns": "^1.3.13",
|
|
19
|
-
"@
|
|
20
|
+
"@material-ui/core": "^4.12.4",
|
|
21
|
+
"@material-ui/icons": "^4.9.1",
|
|
22
|
+
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
23
|
+
"@material-ui/pickers": "^3.2.10",
|
|
20
24
|
"assign-deep": "^1.0.1",
|
|
21
|
-
"classnames": "^2.
|
|
22
|
-
"core-js-pure": "^3.
|
|
23
|
-
"date-fns": "^
|
|
24
|
-
"deep-equal": "^2.0.4",
|
|
25
|
+
"classnames": "^2.5.1",
|
|
26
|
+
"core-js-pure": "^3.38.1",
|
|
27
|
+
"date-fns": "^3.6.0",
|
|
25
28
|
"flat": "^5.0.2",
|
|
26
29
|
"jsonpath": "^1.0.2",
|
|
27
30
|
"prop-types": "^15.6.0",
|
|
28
31
|
"react-beautiful-dnd": "^13.0.0",
|
|
29
|
-
"react-laag": "^2.0.
|
|
30
|
-
"react-number-format": "^
|
|
31
|
-
"react-table": "^7.
|
|
32
|
-
"regenerator-runtime": "^0.
|
|
32
|
+
"react-laag": "^2.0.5",
|
|
33
|
+
"react-number-format": "^5.4.2",
|
|
34
|
+
"react-table": "^7.8.0",
|
|
35
|
+
"regenerator-runtime": "^0.14.1"
|
|
33
36
|
},
|
|
34
37
|
"peerDependencies": {
|
|
35
|
-
"@crystaldesign/
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
"@material-ui/icons": "^4.9.1",
|
|
39
|
-
"@material-ui/lab": "^4.0.0-alpha.56",
|
|
40
|
-
"@material-ui/pickers": "^3.2.10",
|
|
41
|
-
"react": "17.0.2",
|
|
42
|
-
"react-dom": "17.0.2"
|
|
38
|
+
"@crystaldesign/diva-core": "*",
|
|
39
|
+
"react": "^18.3.1",
|
|
40
|
+
"react-dom": "^18.3.1"
|
|
43
41
|
},
|
|
44
42
|
"module": "build/esm/index.js",
|
|
45
43
|
"types": "./build/types/grid/src/index.d.ts",
|
|
46
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "890fd64a8b0f1f53b90abb01093113754c065b7e"
|
|
47
45
|
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
UseColumnOrderInstanceProps,
|
|
3
|
-
UseColumnOrderState,
|
|
4
|
-
UseExpandedHooks,
|
|
5
|
-
UseExpandedInstanceProps,
|
|
6
|
-
UseExpandedOptions,
|
|
7
|
-
UseExpandedRowProps,
|
|
8
|
-
UseExpandedState,
|
|
9
|
-
UseFiltersColumnOptions,
|
|
10
|
-
UseFiltersColumnProps,
|
|
11
|
-
UseFiltersInstanceProps,
|
|
12
|
-
UseFiltersOptions,
|
|
13
|
-
UseFiltersState,
|
|
14
|
-
UseGlobalFiltersColumnOptions,
|
|
15
|
-
UseGlobalFiltersInstanceProps,
|
|
16
|
-
UseGlobalFiltersOptions,
|
|
17
|
-
UseGlobalFiltersState,
|
|
18
|
-
UseGroupByCellProps,
|
|
19
|
-
UseGroupByColumnOptions,
|
|
20
|
-
UseGroupByColumnProps,
|
|
21
|
-
UseGroupByHooks,
|
|
22
|
-
UseGroupByInstanceProps,
|
|
23
|
-
UseGroupByOptions,
|
|
24
|
-
UseGroupByRowProps,
|
|
25
|
-
UseGroupByState,
|
|
26
|
-
UsePaginationInstanceProps,
|
|
27
|
-
UsePaginationOptions,
|
|
28
|
-
UsePaginationState,
|
|
29
|
-
UseResizeColumnsColumnOptions,
|
|
30
|
-
UseResizeColumnsColumnProps,
|
|
31
|
-
UseResizeColumnsOptions,
|
|
32
|
-
UseResizeColumnsState,
|
|
33
|
-
UseRowSelectHooks,
|
|
34
|
-
UseRowSelectInstanceProps,
|
|
35
|
-
UseRowSelectOptions,
|
|
36
|
-
UseRowSelectRowProps,
|
|
37
|
-
UseRowSelectState,
|
|
38
|
-
UseRowStateCellProps,
|
|
39
|
-
UseRowStateInstanceProps,
|
|
40
|
-
UseRowStateOptions,
|
|
41
|
-
UseRowStateRowProps,
|
|
42
|
-
UseRowStateState,
|
|
43
|
-
UseSortByColumnOptions,
|
|
44
|
-
UseSortByColumnProps,
|
|
45
|
-
UseSortByHooks,
|
|
46
|
-
UseSortByInstanceProps,
|
|
47
|
-
UseSortByOptions,
|
|
48
|
-
UseSortByState,
|
|
49
|
-
} from 'react-table';
|
|
50
|
-
|
|
51
|
-
import { UseEditableInstanceProps, UseEditableTableOptions, UseEditableColumnOptions } from './hooks/useEditActions';
|
|
52
|
-
|
|
53
|
-
import { UseHightlightTableOptions, UseHightlightInstanceProps } from './hooks/useHightlight';
|
|
54
|
-
|
|
55
|
-
declare module 'react-table' {
|
|
56
|
-
// take this file as-is, or comment out the sections that don't apply to your plugin configuration
|
|
57
|
-
|
|
58
|
-
export interface TableOptions<D extends object>
|
|
59
|
-
extends UseExpandedOptions<D>,
|
|
60
|
-
UseFiltersOptions<D>,
|
|
61
|
-
UseGlobalFiltersOptions<D>,
|
|
62
|
-
UseGroupByOptions<D>,
|
|
63
|
-
UsePaginationOptions<D>,
|
|
64
|
-
UseResizeColumnsOptions<D>,
|
|
65
|
-
UseRowSelectOptions<D>,
|
|
66
|
-
UseRowStateOptions<D>,
|
|
67
|
-
UseSortByOptions<D>,
|
|
68
|
-
UseHightlightTableOptions<D>,
|
|
69
|
-
UseEditableTableOptions<D> {}
|
|
70
|
-
|
|
71
|
-
export interface Hooks<D extends object = {}> extends UseExpandedHooks<D>, UseGroupByHooks<D>, UseRowSelectHooks<D>, UseSortByHooks<D> {}
|
|
72
|
-
|
|
73
|
-
export interface TableInstance<D extends object = {}>
|
|
74
|
-
extends UseColumnOrderInstanceProps<D>,
|
|
75
|
-
UseExpandedInstanceProps<D>,
|
|
76
|
-
UseFiltersInstanceProps<D>,
|
|
77
|
-
UseGlobalFiltersInstanceProps<D>,
|
|
78
|
-
UseGroupByInstanceProps<D>,
|
|
79
|
-
UsePaginationInstanceProps<D>,
|
|
80
|
-
UseRowSelectInstanceProps<D>,
|
|
81
|
-
UseRowStateInstanceProps<D>,
|
|
82
|
-
UseSortByInstanceProps<D>,
|
|
83
|
-
UseEditableInstanceProps<D>,
|
|
84
|
-
UseHightlightInstanceProps<D> {}
|
|
85
|
-
|
|
86
|
-
export interface TableState<D extends object = {}>
|
|
87
|
-
extends UseColumnOrderState<D>,
|
|
88
|
-
UseExpandedState<D>,
|
|
89
|
-
UseFiltersState<D>,
|
|
90
|
-
UseGlobalFiltersState<D>,
|
|
91
|
-
UseGroupByState<D>,
|
|
92
|
-
UsePaginationState<D>,
|
|
93
|
-
UseResizeColumnsState<D>,
|
|
94
|
-
UseRowSelectState<D>,
|
|
95
|
-
UseRowStateState<D>,
|
|
96
|
-
UseSortByState<D> {}
|
|
97
|
-
|
|
98
|
-
export interface ColumnInterface<D extends object = {}>
|
|
99
|
-
extends UseFiltersColumnOptions<D>,
|
|
100
|
-
UseGlobalFiltersColumnOptions<D>,
|
|
101
|
-
UseGroupByColumnOptions<D>,
|
|
102
|
-
UseResizeColumnsColumnOptions<D>,
|
|
103
|
-
UseSortByColumnOptions<D>,
|
|
104
|
-
UseEditableColumnOptions<D> {
|
|
105
|
-
fixed?: boolean;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export interface ColumnInstance<D extends object = {}>
|
|
109
|
-
extends UseFiltersColumnProps<D>,
|
|
110
|
-
UseGroupByColumnProps<D>,
|
|
111
|
-
UseResizeColumnsColumnProps<D>,
|
|
112
|
-
UseSortByColumnProps<D> {}
|
|
113
|
-
|
|
114
|
-
export interface Cell<D extends object = {}, V = any> extends UseGroupByCellProps<D>, UseRowStateCellProps<D> {}
|
|
115
|
-
|
|
116
|
-
export interface Row<D extends object = {}>
|
|
117
|
-
extends UseExpandedRowProps<D>,
|
|
118
|
-
UseGroupByRowProps<D>,
|
|
119
|
-
UseRowSelectRowProps<D>,
|
|
120
|
-
UseRowStateRowProps<D> {}
|
|
121
|
-
}
|