tp-react-elements 1.1.0 → 1.1.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/dist/_virtual/index.esm10.js +2 -2
- package/dist/_virtual/index.esm12.js +2 -2
- package/dist/_virtual/index.esm13.js +2 -2
- package/dist/_virtual/index.esm14.js +2 -2
- package/dist/_virtual/index.esm4.js +2 -2
- package/dist/_virtual/index.esm5.js +2 -2
- package/dist/_virtual/index.esm6.js +2 -2
- package/dist/_virtual/index.esm7.js +2 -2
- package/dist/_virtual/index.esm9.js +2 -2
- package/dist/components/FormComponents/Select/MultiSelectTable.esm.js +42 -13
- package/dist/node_modules/prop-types/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/accessibility/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/Calendar/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DateInput/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DateRange/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DateRangePicker/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/DefinedRange/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/InputRangeField/index.esm.js +1 -1
- package/dist/node_modules/react-date-range/dist/components/Month/index.esm.js +1 -1
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var accessibility = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { accessibility as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DateInput = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DateInput as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var InputRangeField = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { InputRangeField as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Month = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { Month as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Calendar = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { Calendar as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DefinedRange = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DefinedRange as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DateRangePicker = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DateRangePicker as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var DateRange = {};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { DateRange as __exports };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
var
|
|
1
|
+
var propTypes = {exports: {}};
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { propTypes as __module };
|
|
@@ -19,7 +19,9 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
19
19
|
PaperProps: {
|
|
20
20
|
style: {
|
|
21
21
|
maxHeight: ITEM_HEIGHT * 8 + ITEM_PADDING_TOP,
|
|
22
|
-
|
|
22
|
+
width: '100%',
|
|
23
|
+
minWidth: '280px',
|
|
24
|
+
maxWidth: '450px',
|
|
23
25
|
},
|
|
24
26
|
},
|
|
25
27
|
autoFocus: false,
|
|
@@ -125,7 +127,9 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
125
127
|
const selectColumn = {
|
|
126
128
|
id: 'select',
|
|
127
129
|
header: '',
|
|
128
|
-
size:
|
|
130
|
+
size: 40,
|
|
131
|
+
minSize: 40,
|
|
132
|
+
maxSize: 40,
|
|
129
133
|
enableSorting: false,
|
|
130
134
|
enableColumnFilter: false,
|
|
131
135
|
Cell: ({ row }) => {
|
|
@@ -154,9 +158,9 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
154
158
|
const dataColumns = columns.map((col) => ({
|
|
155
159
|
accessorKey: col.field,
|
|
156
160
|
header: col.headerName,
|
|
157
|
-
size: col.width ||
|
|
158
|
-
minSize:
|
|
159
|
-
maxSize:
|
|
161
|
+
size: col.width || 100,
|
|
162
|
+
minSize: 60,
|
|
163
|
+
maxSize: 150,
|
|
160
164
|
}));
|
|
161
165
|
return [selectColumn, ...dataColumns];
|
|
162
166
|
}, [columns, selectedValues, valueField, handleRowSelect, handleSelectAll, getIsAllSelected, getIsIndeterminate]);
|
|
@@ -183,7 +187,8 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
183
187
|
placeholder: 'Search...',
|
|
184
188
|
size: 'small',
|
|
185
189
|
sx: {
|
|
186
|
-
width: '100%',
|
|
190
|
+
width: 'calc(100% - 24px)',
|
|
191
|
+
margin: '0 12px',
|
|
187
192
|
'& .MuiInputBase-root': {
|
|
188
193
|
fontSize: '11px',
|
|
189
194
|
height: '28px',
|
|
@@ -194,12 +199,33 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
194
199
|
},
|
|
195
200
|
},
|
|
196
201
|
},
|
|
202
|
+
globalFilterFn: 'contains',
|
|
197
203
|
muiTopToolbarProps: {
|
|
198
204
|
sx: {
|
|
199
|
-
padding: '
|
|
200
|
-
minHeight: '
|
|
205
|
+
padding: '8px 12px',
|
|
206
|
+
minHeight: '44px',
|
|
207
|
+
width: '100%',
|
|
208
|
+
boxSizing: 'border-box',
|
|
209
|
+
'& .Mui-Toolbar': {
|
|
210
|
+
width: '100%',
|
|
211
|
+
},
|
|
212
|
+
'& .MuiBox-root': {
|
|
213
|
+
width: '100%',
|
|
214
|
+
maxWidth: '100%',
|
|
215
|
+
},
|
|
216
|
+
'& > div': {
|
|
217
|
+
width: '100%',
|
|
218
|
+
},
|
|
201
219
|
},
|
|
202
220
|
},
|
|
221
|
+
mrtTheme: {
|
|
222
|
+
baseBackgroundColor: '#fff',
|
|
223
|
+
},
|
|
224
|
+
defaultColumn: {
|
|
225
|
+
size: 120,
|
|
226
|
+
minSize: 80,
|
|
227
|
+
maxSize: 200,
|
|
228
|
+
},
|
|
203
229
|
paginationDisplayMode: 'pages',
|
|
204
230
|
muiPaginationProps: {
|
|
205
231
|
rowsPerPageOptions: [10, 25, 50],
|
|
@@ -226,10 +252,11 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
226
252
|
muiTableContainerProps: {
|
|
227
253
|
sx: {
|
|
228
254
|
maxHeight: 400,
|
|
229
|
-
|
|
255
|
+
width: '100%',
|
|
256
|
+
overflowX: 'hidden',
|
|
230
257
|
},
|
|
231
258
|
},
|
|
232
|
-
layoutMode: '
|
|
259
|
+
layoutMode: 'semantic',
|
|
233
260
|
muiTableHeadCellProps: {
|
|
234
261
|
sx: {
|
|
235
262
|
backgroundColor: headerColor,
|
|
@@ -302,9 +329,11 @@ const MultiSelectTable = ({ props, variant, }) => {
|
|
|
302
329
|
props?.item?.onCloseMenu && props?.item?.onCloseMenu();
|
|
303
330
|
}, input: jsx(OutlinedInput, { label: variant !== 'standard' ? props.item.label : '' }), renderValue: () => (jsx(Tooltip, { title: selectedDisplayText, children: jsx("span", { children: selectedRows.length > (props.item.multiSelectLabelLength || 2)
|
|
304
331
|
? `${selectedRows.length} Selected`
|
|
305
|
-
: selectedDisplayText || placeholder }) })), MenuProps: MenuProps, autoFocus: false, children: jsx(Box, { sx: {
|
|
306
|
-
|
|
307
|
-
|
|
332
|
+
: selectedDisplayText || placeholder }) })), MenuProps: MenuProps, autoFocus: false, children: jsx(Box, { sx: {
|
|
333
|
+
maxHeight: 450, width: '100%', overflow: 'hidden', '.MuiTextField-root': {
|
|
334
|
+
width: '260% !important'
|
|
335
|
+
}
|
|
336
|
+
}, children: rows.length > 0 ? (jsx(MaterialReactTable, { table: table })) : (jsx(Box, { sx: { padding: '16px', textAlign: 'center', color: '#999', fontSize: '11px' }, children: "No Options found" })) }) }), jsx(FormBottomField, { ...props })] }) }, props.item.name));
|
|
308
337
|
};
|
|
309
338
|
|
|
310
339
|
export { MultiSelectTable as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __module as propTypes } from '../../_virtual/index.
|
|
1
|
+
import { __module as propTypes } from '../../_virtual/index.esm9.js';
|
|
2
2
|
import { __require as requireReactIs } from './node_modules/react-is/index.esm.js';
|
|
3
3
|
import { __require as requireFactoryWithTypeCheckers } from './factoryWithTypeCheckers.esm.js';
|
|
4
4
|
import { __require as requireFactoryWithThrowingShims } from './factoryWithThrowingShims.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as accessibility } from '../../../../_virtual/index.
|
|
1
|
+
import { __exports as accessibility } from '../../../../_virtual/index.esm10.js';
|
|
2
2
|
import { __require as requirePropTypes } from '../../../prop-types/index.esm.js';
|
|
3
3
|
|
|
4
4
|
var hasRequiredAccessibility;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as Calendar } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as Calendar } from '../../../../../_virtual/index.esm4.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireDayCell } from '../DayCell/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DateInput } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DateInput } from '../../../../../_virtual/index.esm12.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireClassnames } from '../../../../classnames/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DateRange } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DateRange } from '../../../../../_virtual/index.esm7.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireCalendar } from '../Calendar/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DateRangePicker } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DateRangePicker } from '../../../../../_virtual/index.esm6.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireDateRange } from '../DateRange/index.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as DefinedRange } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as DefinedRange } from '../../../../../_virtual/index.esm5.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireStyles } from '../../styles.esm.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as InputRangeField } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as InputRangeField } from '../../../../../_virtual/index.esm13.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __exports as Month } from '../../../../../_virtual/index.
|
|
1
|
+
import { __exports as Month } from '../../../../../_virtual/index.esm14.js';
|
|
2
2
|
import require$$0__default from 'react';
|
|
3
3
|
import { __require as requirePropTypes } from '../../../../prop-types/index.esm.js';
|
|
4
4
|
import { __require as requireDayCell } from '../DayCell/index.esm.js';
|