@etsoo/materialui 1.3.57 → 1.3.59

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.
Files changed (171) hide show
  1. package/__tests__/ResponsePage.tsx +12 -3
  2. package/lib/AddresSelector.d.ts +1 -1
  3. package/lib/AddresSelector.js +9 -18
  4. package/lib/AuditDisplay.d.ts +1 -1
  5. package/lib/AuditDisplay.js +12 -15
  6. package/lib/BackButton.d.ts +1 -2
  7. package/lib/BackButton.js +3 -4
  8. package/lib/BridgeCloseButton.d.ts +1 -2
  9. package/lib/BridgeCloseButton.js +3 -4
  10. package/lib/ButtonLink.d.ts +1 -2
  11. package/lib/ButtonLink.js +2 -2
  12. package/lib/ComboBox.d.ts +1 -2
  13. package/lib/ComboBox.js +12 -16
  14. package/lib/ComboBoxMultiple.d.ts +1 -2
  15. package/lib/ComboBoxMultiple.js +15 -19
  16. package/lib/ComboBoxPro.d.ts +1 -2
  17. package/lib/ComboBoxPro.js +3 -2
  18. package/lib/CountdownButton.js +4 -3
  19. package/lib/CountryList.d.ts +1 -2
  20. package/lib/CountryList.js +2 -1
  21. package/lib/CultureDataTable.d.ts +1 -2
  22. package/lib/CultureDataTable.js +2 -1
  23. package/lib/DataGridEx.d.ts +1 -1
  24. package/lib/DataGridEx.js +55 -58
  25. package/lib/DataGridRenderers.js +5 -5
  26. package/lib/DataSteps.d.ts +1 -2
  27. package/lib/DataSteps.js +20 -23
  28. package/lib/DataTable.d.ts +1 -1
  29. package/lib/DataTable.js +2 -1
  30. package/lib/DialogButton.d.ts +1 -1
  31. package/lib/DialogButton.js +6 -13
  32. package/lib/DnDList.d.ts +1 -1
  33. package/lib/DnDList.js +8 -8
  34. package/lib/DraggablePaperComponent.d.ts +1 -2
  35. package/lib/DraggablePaperComponent.js +2 -2
  36. package/lib/EmailInput.d.ts +1 -2
  37. package/lib/EmailInput.js +2 -2
  38. package/lib/FabBox.d.ts +1 -2
  39. package/lib/FabBox.js +4 -3
  40. package/lib/FieldSetEx.d.ts +1 -1
  41. package/lib/FieldSetEx.js +13 -16
  42. package/lib/FileUploadButton.d.ts +1 -1
  43. package/lib/FileUploadButton.js +27 -29
  44. package/lib/FlexBox.d.ts +2 -3
  45. package/lib/FlexBox.js +3 -3
  46. package/lib/GridDataFormat.js +2 -2
  47. package/lib/HiSelector.d.ts +1 -1
  48. package/lib/HiSelector.js +2 -12
  49. package/lib/HiSelectorTL.d.ts +1 -1
  50. package/lib/HiSelectorTL.js +2 -12
  51. package/lib/IconButtonLink.d.ts +1 -2
  52. package/lib/IconButtonLink.js +2 -2
  53. package/lib/InputField.js +2 -1
  54. package/lib/InputTipField.d.ts +1 -1
  55. package/lib/InputTipField.js +12 -14
  56. package/lib/IntInputField.js +28 -33
  57. package/lib/ItemList.d.ts +1 -1
  58. package/lib/ItemList.js +6 -11
  59. package/lib/LineChart.d.ts +1 -2
  60. package/lib/LineChart.js +2 -1
  61. package/lib/ListChooser.d.ts +1 -1
  62. package/lib/ListChooser.js +4 -7
  63. package/lib/ListMoreDisplay.d.ts +1 -1
  64. package/lib/ListMoreDisplay.js +5 -10
  65. package/lib/LoadingButton.d.ts +1 -2
  66. package/lib/LoadingButton.js +3 -2
  67. package/lib/MaskInput.d.ts +1 -2
  68. package/lib/MaskInput.js +2 -1
  69. package/lib/MenuButton.d.ts +1 -1
  70. package/lib/MenuButton.js +30 -31
  71. package/lib/MobileListItemRenderer.d.ts +1 -1
  72. package/lib/MobileListItemRenderer.js +15 -18
  73. package/lib/MoneyInputField.js +2 -1
  74. package/lib/MoreFab.d.ts +1 -1
  75. package/lib/MoreFab.js +21 -24
  76. package/lib/NotifierMU.d.ts +2 -2
  77. package/lib/NotifierMU.js +27 -67
  78. package/lib/NumberInputField.d.ts +1 -1
  79. package/lib/NumberInputField.js +4 -4
  80. package/lib/OptionBool.d.ts +1 -2
  81. package/lib/OptionBool.js +2 -2
  82. package/lib/OptionGroup.d.ts +1 -1
  83. package/lib/OptionGroup.js +17 -20
  84. package/lib/OptionGroupFlag.d.ts +1 -1
  85. package/lib/OptionGroupFlag.js +15 -18
  86. package/lib/PList.d.ts +1 -2
  87. package/lib/PList.js +5 -4
  88. package/lib/PercentCircularProgress.d.ts +1 -2
  89. package/lib/PercentCircularProgress.js +11 -14
  90. package/lib/PercentLinearProgress.d.ts +1 -2
  91. package/lib/PercentLinearProgress.js +2 -6
  92. package/lib/ProgressCount.d.ts +1 -2
  93. package/lib/ProgressCount.js +12 -18
  94. package/lib/PullToRefreshUI.d.ts +1 -2
  95. package/lib/PullToRefreshUI.js +2 -1
  96. package/lib/QuickList.d.ts +1 -1
  97. package/lib/QuickList.js +12 -14
  98. package/lib/ResponsibleContainer.d.ts +1 -1
  99. package/lib/ResponsibleContainer.js +11 -16
  100. package/lib/ScrollTopFab.d.ts +1 -2
  101. package/lib/ScrollTopFab.js +2 -3
  102. package/lib/ScrollerListEx.d.ts +1 -1
  103. package/lib/ScrollerListEx.js +3 -2
  104. package/lib/SearchBar.d.ts +1 -1
  105. package/lib/SearchBar.js +27 -35
  106. package/lib/SearchField.d.ts +1 -2
  107. package/lib/SearchField.js +2 -1
  108. package/lib/SearchOptionGroup.d.ts +1 -2
  109. package/lib/SearchOptionGroup.js +2 -2
  110. package/lib/SelectBool.d.ts +1 -2
  111. package/lib/SelectBool.js +2 -2
  112. package/lib/SelectEx.d.ts +1 -1
  113. package/lib/SelectEx.js +47 -55
  114. package/lib/ShowDataComparison.js +2 -11
  115. package/lib/Switch.d.ts +1 -2
  116. package/lib/Switch.js +3 -2
  117. package/lib/SwitchAnt.d.ts +1 -2
  118. package/lib/SwitchAnt.js +12 -14
  119. package/lib/SwitchField.d.ts +1 -1
  120. package/lib/SwitchField.js +13 -16
  121. package/lib/TabBox.d.ts +1 -1
  122. package/lib/TabBox.js +6 -9
  123. package/lib/TableEx.d.ts +1 -1
  124. package/lib/TableEx.js +79 -89
  125. package/lib/TagList.d.ts +1 -2
  126. package/lib/TagList.js +4 -5
  127. package/lib/TagListPro.d.ts +1 -2
  128. package/lib/TagListPro.js +4 -6
  129. package/lib/TextFieldEx.js +3 -6
  130. package/lib/Tiplist.d.ts +1 -2
  131. package/lib/Tiplist.js +39 -40
  132. package/lib/TiplistPro.d.ts +2 -2
  133. package/lib/TiplistPro.js +48 -49
  134. package/lib/TooltipClick.d.ts +1 -1
  135. package/lib/TooltipClick.js +3 -3
  136. package/lib/TwoFieldInput.d.ts +1 -2
  137. package/lib/TwoFieldInput.js +4 -5
  138. package/lib/UserAvatar.d.ts +1 -2
  139. package/lib/UserAvatar.js +3 -3
  140. package/lib/UserAvatarEditor.d.ts +1 -2
  141. package/lib/UserAvatarEditor.js +2 -19
  142. package/lib/messages/OperationMessageContainer.d.ts +1 -2
  143. package/lib/messages/OperationMessageContainer.js +2 -1
  144. package/lib/pages/CommonPage.d.ts +1 -2
  145. package/lib/pages/CommonPage.js +15 -24
  146. package/lib/pages/DataGridPage.d.ts +1 -2
  147. package/lib/pages/DataGridPage.js +5 -8
  148. package/lib/pages/EditPage.d.ts +1 -1
  149. package/lib/pages/EditPage.js +6 -15
  150. package/lib/pages/FixedListPage.d.ts +1 -2
  151. package/lib/pages/FixedListPage.js +5 -9
  152. package/lib/pages/LeftDrawer.d.ts +1 -1
  153. package/lib/pages/LeftDrawer.js +3 -10
  154. package/lib/pages/ListPage.d.ts +1 -2
  155. package/lib/pages/ListPage.js +4 -7
  156. package/lib/pages/ResponsivePage.d.ts +1 -2
  157. package/lib/pages/ResponsivePage.js +25 -26
  158. package/lib/pages/TablePage.d.ts +1 -2
  159. package/lib/pages/TablePage.js +5 -8
  160. package/lib/pages/UserMenu.d.ts +1 -1
  161. package/lib/pages/UserMenu.js +33 -35
  162. package/lib/pages/ViewPage.d.ts +2 -2
  163. package/lib/pages/ViewPage.js +29 -37
  164. package/lib/texts/DateText.d.ts +1 -2
  165. package/lib/texts/DateText.js +2 -2
  166. package/lib/texts/MoneyText.d.ts +1 -2
  167. package/lib/texts/MoneyText.js +4 -4
  168. package/lib/texts/NumberText.d.ts +1 -2
  169. package/lib/texts/NumberText.js +2 -2
  170. package/package.json +9 -9
  171. package/tsconfig.json +1 -1
@@ -1,7 +1,7 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { NotificationMessageType } from "@etsoo/notificationbase";
2
3
  import { Utils } from "@etsoo/shared";
3
4
  import { Table, TableBody, TableCell, TableHead, TableRow } from "@mui/material";
4
- import React from "react";
5
5
  import { globalApp } from "./app/ReactApp";
6
6
  /**
7
7
  * Check obj is instance of AuditLineChangesDto
@@ -53,15 +53,6 @@ export const ShowDataComparison = (data, modelTitle, getLabel, equalCheck = true
53
53
  }));
54
54
  if (equalCheck)
55
55
  rows = rows.filter((item) => !Utils.equals(item.oldValue, item.newValue));
56
- const inputs = (React.createElement(Table, null,
57
- React.createElement(TableHead, null,
58
- React.createElement(TableRow, null,
59
- React.createElement(TableCell, { width: "18%" }, field),
60
- React.createElement(TableCell, { width: "41%", align: "right" }, oldValue),
61
- React.createElement(TableCell, { width: "41%", align: "right" }, newValue))),
62
- React.createElement(TableBody, null, rows.map((row) => (React.createElement(TableRow, { key: row.field },
63
- React.createElement(TableCell, null, getLabel(row.field)),
64
- React.createElement(TableCell, { align: "right" }, formatValue(row.oldValue, app)),
65
- React.createElement(TableCell, { align: "right" }, formatValue(row.newValue, app))))))));
56
+ const inputs = (_jsxs(Table, { children: [_jsx(TableHead, { children: _jsxs(TableRow, { children: [_jsx(TableCell, { width: "18%", children: field }), _jsx(TableCell, { width: "41%", align: "right", children: oldValue }), _jsx(TableCell, { width: "41%", align: "right", children: newValue })] }) }), _jsx(TableBody, { children: rows.map((row) => (_jsxs(TableRow, { children: [_jsx(TableCell, { children: getLabel(row.field) }), _jsx(TableCell, { align: "right", children: formatValue(row.oldValue, app) }), _jsx(TableCell, { align: "right", children: formatValue(row.newValue, app) })] }, row.field))) })] }));
66
57
  app.notifier.alert([undefined, modelTitle], undefined, NotificationMessageType.Info, { fullScreen: app.smDown, inputs });
67
58
  };
package/lib/Switch.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { FormControlLabelProps } from '@mui/material';
3
2
  /**
4
3
  * Switch props
@@ -26,4 +25,4 @@ export interface SwitchProps extends Omit<FormControlLabelProps, 'control'> {
26
25
  * @param props Props
27
26
  * @returns Component
28
27
  */
29
- export declare function Switch(props: SwitchProps): React.JSX.Element;
28
+ export declare function Switch(props: SwitchProps): import("react/jsx-runtime").JSX.Element;
package/lib/Switch.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
1
2
  import React from 'react';
2
3
  import { FormControlLabel } from '@mui/material';
3
4
  import MuiCheckbox from '@mui/material/Checkbox';
@@ -23,11 +24,11 @@ export function Switch(props) {
23
24
  setControlChecked(checked);
24
25
  };
25
26
  // Control
26
- const control = checkbox ? (React.createElement(MuiCheckbox, { readOnly: readOnly, checked: controlChecked, onChange: handleChange, size: size, value: value })) : (React.createElement(MuiSwitch, { readOnly: readOnly, checked: controlChecked, onChange: handleChange, size: size, value: value }));
27
+ const control = checkbox ? (_jsx(MuiCheckbox, { readOnly: readOnly, checked: controlChecked, onChange: handleChange, size: size, value: value })) : (_jsx(MuiSwitch, { readOnly: readOnly, checked: controlChecked, onChange: handleChange, size: size, value: value }));
27
28
  // Default state
28
29
  React.useEffect(() => {
29
30
  setControlChecked(controlChecked);
30
31
  }, [controlChecked]);
31
32
  // Layout
32
- return React.createElement(FormControlLabel, { control: control, ...rest });
33
+ return _jsx(FormControlLabel, { control: control, ...rest });
33
34
  }
@@ -1,5 +1,4 @@
1
1
  import { SwitchProps } from "@mui/material/Switch";
2
- import React from "react";
3
2
  /**
4
3
  * Ant style switch props
5
4
  */
@@ -22,4 +21,4 @@ export interface SwitchAntProps extends SwitchProps {
22
21
  * @param props Props
23
22
  * @returns Component
24
23
  */
25
- export declare function SwitchAnt(props: SwitchAntProps): React.JSX.Element;
24
+ export declare function SwitchAnt(props: SwitchAntProps): import("react/jsx-runtime").JSX.Element;
package/lib/SwitchAnt.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Stack, Typography } from "@mui/material";
2
3
  import Switch from "@mui/material/Switch";
3
4
  import React from "react";
@@ -27,18 +28,15 @@ export function SwitchAnt(props) {
27
28
  setControlChecked(checked);
28
29
  };
29
30
  // Layout
30
- return (React.createElement(Stack, { direction: "row", spacing: 1, alignItems: "center" },
31
- React.createElement(Typography, { onClick: () => controlChecked && ref.current?.click(), sx: {
32
- cursor: "pointer",
33
- color: controlChecked
34
- ? undefined
35
- : (theme) => activeColor ?? theme.palette.warning.main
36
- } }, startLabel),
37
- React.createElement(Switch, { checked: controlChecked, inputRef: ref, value: value, onChange: onChangeLocal, ...rest }),
38
- React.createElement(Typography, { onClick: () => !controlChecked && ref.current?.click(), sx: {
39
- cursor: "pointer",
40
- color: controlChecked
41
- ? (theme) => activeColor ?? theme.palette.warning.main
42
- : undefined
43
- } }, endLabel)));
31
+ return (_jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [_jsx(Typography, { onClick: () => controlChecked && ref.current?.click(), sx: {
32
+ cursor: "pointer",
33
+ color: controlChecked
34
+ ? undefined
35
+ : (theme) => activeColor ?? theme.palette.warning.main
36
+ }, children: startLabel }), _jsx(Switch, { checked: controlChecked, inputRef: ref, value: value, onChange: onChangeLocal, ...rest }), _jsx(Typography, { onClick: () => !controlChecked && ref.current?.click(), sx: {
37
+ cursor: "pointer",
38
+ color: controlChecked
39
+ ? (theme) => activeColor ?? theme.palette.warning.main
40
+ : undefined
41
+ }, children: endLabel })] }));
44
42
  }
@@ -42,4 +42,4 @@ export type SwitchFieldProps = Omit<FormControlProps, "defaultValue"> & {
42
42
  * @param props Props
43
43
  * @returns Component
44
44
  */
45
- export declare function SwitchField(props: SwitchFieldProps): React.JSX.Element;
45
+ export declare function SwitchField(props: SwitchFieldProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Box, FormControl, FormHelperText, InputLabel } from "@mui/material";
2
3
  import NotchedOutline from "@mui/material/OutlinedInput";
3
4
  import React from "react";
@@ -13,21 +14,17 @@ export function SwitchField(props) {
13
14
  // Outlined
14
15
  const outlined = variant === "outlined";
15
16
  // Group
16
- const group = (React.createElement(SwitchAnt, { activeColor: activeColor, name: name, startLabel: startLabel, endLabel: endLabel, value: value, checked: checked }));
17
+ const group = (_jsx(SwitchAnt, { activeColor: activeColor, name: name, startLabel: startLabel, endLabel: endLabel, value: value, checked: checked }));
17
18
  // Layout
18
- return (React.createElement(React.Fragment, null,
19
- React.createElement(FormControl, { fullWidth: fullWidth, ...rest },
20
- label && (React.createElement(InputLabel, { required: required, variant: variant, shrink: true }, label)),
21
- outlined ? (React.createElement(NotchedOutline, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
22
- cursor: "default",
23
- display: "flex",
24
- gap: 1,
25
- paddingX: 2,
26
- paddingY: "7px",
27
- width: fullWidth ? "100%" : "auto",
28
- "& input": {
29
- display: "none"
30
- }
31
- } })) : (React.createElement(Box, { paddingLeft: 2, paddingY: "7px" }, group))),
32
- helperText && React.createElement(FormHelperText, null, helperText)));
19
+ return (_jsxs(React.Fragment, { children: [_jsxs(FormControl, { fullWidth: fullWidth, ...rest, children: [label && (_jsx(InputLabel, { required: required, variant: variant, shrink: true, children: label })), outlined ? (_jsx(NotchedOutline, { label: label && required ? label + " *" : label, notched: true, endAdornment: group, sx: {
20
+ cursor: "default",
21
+ display: "flex",
22
+ gap: 1,
23
+ paddingX: 2,
24
+ paddingY: "7px",
25
+ width: fullWidth ? "100%" : "auto",
26
+ "& input": {
27
+ display: "none"
28
+ }
29
+ } })) : (_jsx(Box, { paddingLeft: 2, paddingY: "7px", children: group }))] }), helperText && _jsx(FormHelperText, { children: helperText })] }));
33
30
  }
package/lib/TabBox.d.ts CHANGED
@@ -51,4 +51,4 @@ export interface TabBoxPros extends BoxProps {
51
51
  * @param props Props
52
52
  * @returns Component
53
53
  */
54
- export declare function TabBox(props: TabBoxPros): React.JSX.Element;
54
+ export declare function TabBox(props: TabBoxPros): import("react/jsx-runtime").JSX.Element;
package/lib/TabBox.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Utils } from '@etsoo/shared';
2
3
  import { Box, Tab, Tabs } from '@mui/material';
3
4
  import React from 'react';
@@ -19,13 +20,9 @@ export function TabBox(props) {
19
20
  setValue(index);
20
21
  }, [index]);
21
22
  // Layout
22
- return (React.createElement(React.Fragment, null,
23
- inputName && (React.createElement("input", { type: "hidden", name: inputName, value: value })),
24
- React.createElement(Box, { ...root },
25
- React.createElement(Tabs, { value: value, onChange: (event, newValue) => {
26
- setValue(newValue);
27
- if (onChange)
28
- onChange(event, newValue);
29
- }, ...rest }, tabs.map(({ children, panel, ...tabRest }, index) => (React.createElement(Tab, { key: index, value: index, LinkComponent: tabRest.to ? Link : undefined, ...tabRest }))))),
30
- tabs.map(({ children, panel }, index) => (React.createElement(Box, { key: index, hidden: value !== index, ...panel }, Utils.getResult(children, value === index))))));
23
+ return (_jsxs(React.Fragment, { children: [inputName && (_jsx("input", { type: "hidden", name: inputName, value: value })), _jsx(Box, { ...root, children: _jsx(Tabs, { value: value, onChange: (event, newValue) => {
24
+ setValue(newValue);
25
+ if (onChange)
26
+ onChange(event, newValue);
27
+ }, ...rest, children: tabs.map(({ children, panel, ...tabRest }, index) => (_jsx(Tab, { value: index, LinkComponent: tabRest.to ? Link : undefined, ...tabRest }, index))) }) }), tabs.map(({ children, panel }, index) => (_jsx(Box, { hidden: value !== index, ...panel, children: Utils.getResult(children, value === index) }, index)))] }));
31
28
  }
package/lib/TableEx.d.ts CHANGED
@@ -62,4 +62,4 @@ export type TableExProps<T extends object, D extends DataTypes.Keys<T>> = TableP
62
62
  * @param props Props
63
63
  * @returns Component
64
64
  */
65
- export declare function TableEx<T extends object, D extends DataTypes.Keys<T> = IdDefaultType<T>>(props: TableExProps<T, D>): React.JSX.Element;
65
+ export declare function TableEx<T extends object, D extends DataTypes.Keys<T> = IdDefaultType<T>>(props: TableExProps<T, D>): import("react/jsx-runtime").JSX.Element;
package/lib/TableEx.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { GridAlignGet, GridSizeGet } from "@etsoo/react";
2
3
  import { DataTypes } from "@etsoo/shared";
3
4
  import { Checkbox, Paper, Table, TableBody, TableCell, TableContainer, TableHead, TablePagination, TableRow, TableSortLabel, useTheme } from "@mui/material";
@@ -208,93 +209,82 @@ export function TableEx(props) {
208
209
  };
209
210
  }, []);
210
211
  // Layout
211
- return (React.createElement(Paper, null,
212
- React.createElement(TableContainer, { sx: { maxHeight } },
213
- React.createElement(Table, { ...rest },
214
- React.createElement(TableHead, null,
215
- React.createElement(TableRow, { sx: {
216
- "& th": {
217
- backgroundColor: headerColors[0],
218
- color: headerColors[1]
219
- }
220
- } },
221
- selectable && (React.createElement(TableCell, { padding: "checkbox" },
222
- React.createElement(Checkbox, { color: "primary", indeterminate: pageSelectedItems > 0 && pageSelectedItems < rows.length, checked: pageSelectedItems > 0, onChange: (_event, checked) => handleSelectAll(checked) }))),
223
- columns.map((column, index) => {
224
- // Destruct
225
- const { align, field, header, minWidth, sortable, sortAsc = true, type, width } = column;
226
- // Header text
227
- const headerText = header ?? field;
228
- // Sortable
229
- let sortLabel;
230
- if (sortable && field != null) {
231
- const active = queryPaging.orderBy === field;
232
- sortLabel = (React.createElement(TableSortLabel, { active: active, direction: sortAsc ? "asc" : "desc", onClick: (_event) => {
233
- if (active)
234
- column.sortAsc = !sortAsc;
235
- handleSort(field, column.sortAsc);
236
- } }, headerText));
237
- }
238
- else {
239
- sortLabel = headerText;
240
- }
241
- return (React.createElement(TableCell, { align: GridAlignGet(align, type), key: field ?? index.toString(), width: width, sx: {
242
- minWidth: minWidth == null
243
- ? width == null
244
- ? TableExMinWidth
245
- : undefined
246
- : minWidth
247
- } }, sortLabel));
248
- }))),
249
- React.createElement(TableBody, { sx: {
250
- "& tr:nth-of-type(odd):not(.Mui-selected)": {
251
- backgroundColor: alternatingColors[0]
252
- },
253
- "& tr:nth-of-type(even):not(.Mui-selected)": {
254
- backgroundColor: alternatingColors[1]
255
- }
256
- } }, [...Array(queryPaging.batchSize)].map((_item, rowIndex) => {
257
- // Row
258
- const row = rowIndex < rows.length ? rows[rowIndex] : undefined;
259
- // Row id field value
260
- const rowId = DataTypes.getValue(row, idField) ?? rowIndex;
261
- // Selected or not
262
- const isItemSelected = selectable
263
- ? selectedItems.some((item) => item[idField] === rowId)
264
- : false;
265
- return (React.createElement(TableRow, { key: rowId, selected: isItemSelected },
266
- selectable && (React.createElement(TableCell, { padding: "checkbox" }, row && (React.createElement(Checkbox, { color: "primary", checked: isItemSelected, onChange: (_event, checked) => handleSelect(row, checked) })))),
267
- columns.map(({ align, cellRenderer = DataGridRenderers.defaultCellRenderer, field, type, valueFormatter }, columnIndex) => {
268
- const formatProps = {
269
- data: row,
270
- field,
271
- rowIndex,
272
- columnIndex
273
- };
274
- const cellProps = {
275
- align: GridAlignGet(align, type),
276
- valign: "middle"
277
- };
278
- const child = row ? (cellRenderer({
279
- data: row,
280
- field,
281
- formattedValue: valueFormatter
282
- ? valueFormatter(formatProps)
283
- : undefined,
284
- selected: isItemSelected,
285
- type,
286
- rowIndex,
287
- columnIndex,
288
- cellProps,
289
- setItems
290
- })) : (React.createElement(React.Fragment, null, "\u00A0"));
291
- return (React.createElement(TableCell, { key: `${rowId}${columnIndex}`, ...cellProps }, child));
292
- })));
293
- })))),
294
- React.createElement(TablePagination, { component: "div", showFirstButton: true, count: totalRows, rowsPerPage: batchSize, page: currentPage, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage, rowsPerPageOptions: [
295
- batchSize,
296
- 2 * batchSize,
297
- 5 * batchSize,
298
- 10 * batchSize
299
- ] })));
212
+ return (_jsxs(Paper, { children: [_jsx(TableContainer, { sx: { maxHeight }, children: _jsxs(Table, { ...rest, children: [_jsx(TableHead, { children: _jsxs(TableRow, { sx: {
213
+ "& th": {
214
+ backgroundColor: headerColors[0],
215
+ color: headerColors[1]
216
+ }
217
+ }, children: [selectable && (_jsx(TableCell, { padding: "checkbox", children: _jsx(Checkbox, { color: "primary", indeterminate: pageSelectedItems > 0 && pageSelectedItems < rows.length, checked: pageSelectedItems > 0, onChange: (_event, checked) => handleSelectAll(checked) }) })), columns.map((column, index) => {
218
+ // Destruct
219
+ const { align, field, header, minWidth, sortable, sortAsc = true, type, width } = column;
220
+ // Header text
221
+ const headerText = header ?? field;
222
+ // Sortable
223
+ let sortLabel;
224
+ if (sortable && field != null) {
225
+ const active = queryPaging.orderBy === field;
226
+ sortLabel = (_jsx(TableSortLabel, { active: active, direction: sortAsc ? "asc" : "desc", onClick: (_event) => {
227
+ if (active)
228
+ column.sortAsc = !sortAsc;
229
+ handleSort(field, column.sortAsc);
230
+ }, children: headerText }));
231
+ }
232
+ else {
233
+ sortLabel = headerText;
234
+ }
235
+ return (_jsx(TableCell, { align: GridAlignGet(align, type), width: width, sx: {
236
+ minWidth: minWidth == null
237
+ ? width == null
238
+ ? TableExMinWidth
239
+ : undefined
240
+ : minWidth
241
+ }, children: sortLabel }, field ?? index.toString()));
242
+ })] }) }), _jsx(TableBody, { sx: {
243
+ "& tr:nth-of-type(odd):not(.Mui-selected)": {
244
+ backgroundColor: alternatingColors[0]
245
+ },
246
+ "& tr:nth-of-type(even):not(.Mui-selected)": {
247
+ backgroundColor: alternatingColors[1]
248
+ }
249
+ }, children: [...Array(queryPaging.batchSize)].map((_item, rowIndex) => {
250
+ // Row
251
+ const row = rowIndex < rows.length ? rows[rowIndex] : undefined;
252
+ // Row id field value
253
+ const rowId = DataTypes.getValue(row, idField) ?? rowIndex;
254
+ // Selected or not
255
+ const isItemSelected = selectable
256
+ ? selectedItems.some((item) => item[idField] === rowId)
257
+ : false;
258
+ return (_jsxs(TableRow, { selected: isItemSelected, children: [selectable && (_jsx(TableCell, { padding: "checkbox", children: row && (_jsx(Checkbox, { color: "primary", checked: isItemSelected, onChange: (_event, checked) => handleSelect(row, checked) })) })), columns.map(({ align, cellRenderer = DataGridRenderers.defaultCellRenderer, field, type, valueFormatter }, columnIndex) => {
259
+ const formatProps = {
260
+ data: row,
261
+ field,
262
+ rowIndex,
263
+ columnIndex
264
+ };
265
+ const cellProps = {
266
+ align: GridAlignGet(align, type),
267
+ valign: "middle"
268
+ };
269
+ const child = row ? (cellRenderer({
270
+ data: row,
271
+ field,
272
+ formattedValue: valueFormatter
273
+ ? valueFormatter(formatProps)
274
+ : undefined,
275
+ selected: isItemSelected,
276
+ type,
277
+ rowIndex,
278
+ columnIndex,
279
+ cellProps,
280
+ setItems
281
+ })) : (_jsx(React.Fragment, { children: "\u00A0" }));
282
+ return (_jsx(TableCell, { ...cellProps, children: child }, `${rowId}${columnIndex}`));
283
+ })] }, rowId));
284
+ }) })] }) }), _jsx(TablePagination, { component: "div", showFirstButton: true, count: totalRows, rowsPerPage: batchSize, page: currentPage, onPageChange: handleChangePage, onRowsPerPageChange: handleChangeRowsPerPage, rowsPerPageOptions: [
285
+ batchSize,
286
+ 2 * batchSize,
287
+ 5 * batchSize,
288
+ 10 * batchSize
289
+ ] })] }));
300
290
  }
package/lib/TagList.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { AutocompleteProps } from "@mui/material";
2
- import React from "react";
3
2
  import { InputFieldProps } from "./InputField";
4
3
  export type TagListProps = Omit<AutocompleteProps<string, true, false, true>, "open" | "multiple" | "freeSolo" | "options" | "renderInput"> & {
5
4
  /**
@@ -19,4 +18,4 @@ export type TagListProps = Omit<AutocompleteProps<string, true, false, true>, "o
19
18
  */
20
19
  maxItems?: number;
21
20
  };
22
- export declare function TagList(props: TagListProps): React.JSX.Element;
21
+ export declare function TagList(props: TagListProps): import("react/jsx-runtime").JSX.Element;
package/lib/TagList.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Autocomplete, Checkbox, Chip } from "@mui/material";
2
3
  import CheckBoxOutlineBlankIcon from "@mui/icons-material/CheckBoxOutlineBlank";
3
4
  import CheckBoxIcon from "@mui/icons-material/CheckBox";
@@ -9,9 +10,7 @@ export function TagList(props) {
9
10
  const { noOptions, loading: loadingLabel, more = "More", open: openDefault } = globalApp?.getLabels("noOptions", "loading", "more", "open") ?? {};
10
11
  const moreLabel = more + "...";
11
12
  // Destruct
12
- const { renderOption = (props, option, { selected }) => (React.createElement("li", { ...props },
13
- React.createElement(Checkbox, { icon: React.createElement(CheckBoxOutlineBlankIcon, { fontSize: "small" }), checkedIcon: React.createElement(CheckBoxIcon, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }),
14
- option)), renderTags = (value, getTagProps) => value.map((option, index) => (React.createElement(Chip, { variant: "outlined", label: option, ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
13
+ const { renderOption = (props, option, { selected }) => (_jsxs("li", { ...props, children: [_jsx(Checkbox, { icon: _jsx(CheckBoxOutlineBlankIcon, { fontSize: "small" }), checkedIcon: _jsx(CheckBoxIcon, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), option] })), renderTags = (value, getTagProps) => value.map((option, index) => (_jsx(Chip, { variant: "outlined", label: option, ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
15
14
  const [open, setOpen] = React.useState(false);
16
15
  const [options, setOptions] = React.useState([]);
17
16
  const [loading, setLoading] = React.useState(false);
@@ -35,14 +34,14 @@ export function TagList(props) {
35
34
  setOptions(result);
36
35
  setLoading(false);
37
36
  };
38
- return (React.createElement(Autocomplete, { multiple: true, freeSolo: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
37
+ return (_jsx(Autocomplete, { multiple: true, freeSolo: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
39
38
  setOpen(true);
40
39
  if (options.length === 0) {
41
40
  loadDataLocal();
42
41
  }
43
42
  }, onClose: () => {
44
43
  setOpen(false);
45
- }, options: options, loading: loading, disableCloseOnSelect: disableCloseOnSelect, clearOnBlur: true, openOnFocus: openOnFocus, renderOption: renderOption, renderTags: renderTags, renderInput: (params) => (React.createElement(InputField, { label: label, changeDelay: 480, onChange: async (event) => {
44
+ }, options: options, loading: loading, disableCloseOnSelect: disableCloseOnSelect, clearOnBlur: true, openOnFocus: openOnFocus, renderOption: renderOption, renderTags: renderTags, renderInput: (params) => (_jsx(InputField, { label: label, changeDelay: 480, onChange: async (event) => {
46
45
  // Stop bubble
47
46
  event.preventDefault();
48
47
  event.stopPropagation();
@@ -1,5 +1,4 @@
1
1
  import { AutocompleteProps } from "@mui/material";
2
- import React from "react";
3
2
  import { InputFieldProps } from "./InputField";
4
3
  import { ListType2 } from "@etsoo/shared";
5
4
  export type TagListProProps<D extends ListType2 = ListType2> = Omit<AutocompleteProps<D, true, false, false>, "open" | "multiple" | "options" | "renderInput"> & {
@@ -20,4 +19,4 @@ export type TagListProProps<D extends ListType2 = ListType2> = Omit<Autocomplete
20
19
  */
21
20
  maxItems?: number;
22
21
  };
23
- export declare function TagListPro<D extends ListType2 = ListType2>(props: TagListProProps<D>): React.JSX.Element;
22
+ export declare function TagListPro<D extends ListType2 = ListType2>(props: TagListProProps<D>): import("react/jsx-runtime").JSX.Element;
package/lib/TagListPro.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { Autocomplete, Checkbox, Chip } from "@mui/material";
2
3
  import CheckBoxOutlineBlankIcon from "@mui/icons-material/CheckBoxOutlineBlank";
3
4
  import CheckBoxIcon from "@mui/icons-material/CheckBox";
@@ -11,10 +12,7 @@ export function TagListPro(props) {
11
12
  const moreLabel = more + "...";
12
13
  const getLabel = (item) => DataTypes.getListItemLabel(item);
13
14
  // Destruct
14
- const { renderOption = (props, option, { selected }) => (React.createElement("li", { ...props },
15
- React.createElement(React.Fragment, null,
16
- React.createElement(Checkbox, { icon: React.createElement(CheckBoxOutlineBlankIcon, { fontSize: "small" }), checkedIcon: React.createElement(CheckBoxIcon, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }),
17
- getLabel(option)))), renderTags = (value, getTagProps) => value.map((option, index) => (React.createElement(Chip, { variant: "outlined", label: getLabel(option), ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
15
+ const { renderOption = (props, option, { selected }) => (_jsx("li", { ...props, children: _jsxs(_Fragment, { children: [_jsx(Checkbox, { icon: _jsx(CheckBoxOutlineBlankIcon, { fontSize: "small" }), checkedIcon: _jsx(CheckBoxIcon, { fontSize: "small" }), style: { marginRight: 8 }, checked: selected }), getLabel(option)] }) })), renderTags = (value, getTagProps) => value.map((option, index) => (_jsx(Chip, { variant: "outlined", label: getLabel(option), ...getTagProps({ index }) }))), noOptionsText = noOptions, loadingText = loadingLabel, openText = openDefault, loadData, maxItems = 16, disableCloseOnSelect = true, openOnFocus = true, label, inputProps, onChange, value, ...rest } = props;
18
16
  const [open, setOpen] = React.useState(false);
19
17
  const [options, setOptions] = React.useState([]);
20
18
  const [loading, setLoading] = React.useState(false);
@@ -38,14 +36,14 @@ export function TagListPro(props) {
38
36
  setOptions(result);
39
37
  setLoading(false);
40
38
  };
41
- return (React.createElement(Autocomplete, { multiple: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
39
+ return (_jsx(Autocomplete, { multiple: true, filterOptions: (options, _state) => options, open: open, onOpen: () => {
42
40
  setOpen(true);
43
41
  if (options.length === 0) {
44
42
  loadDataLocal();
45
43
  }
46
44
  }, onClose: () => {
47
45
  setOpen(false);
48
- }, options: options, loading: loading, disableCloseOnSelect: disableCloseOnSelect, openOnFocus: openOnFocus, renderOption: renderOption, renderTags: renderTags, renderInput: (params) => (React.createElement(InputField, { label: label, changeDelay: 480, onChange: async (event) => {
46
+ }, options: options, loading: loading, disableCloseOnSelect: disableCloseOnSelect, openOnFocus: openOnFocus, renderOption: renderOption, renderTags: renderTags, renderInput: (params) => (_jsx(InputField, { label: label, changeDelay: 480, onChange: async (event) => {
49
47
  // Stop bubble
50
48
  event.preventDefault();
51
49
  event.stopPropagation();
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import React from "react";
2
3
  import { IconButton, InputAdornment, TextField } from "@mui/material";
3
4
  import { MUGlobal } from "./MUGlobal";
@@ -72,11 +73,7 @@ export const TextFieldEx = React.forwardRef((props, ref) => {
72
73
  };
73
74
  // Show password and/or clear button
74
75
  if (!empty && (showPassword || showClear)) {
75
- InputProps.endAdornment = (React.createElement(InputAdornment, { position: "end" },
76
- showPassword && (React.createElement(IconButton, { tabIndex: -1, onContextMenu: (event) => event.preventDefault(), onMouseDown: touchStart, onMouseUp: touchEnd, onTouchStart: touchStart, onTouchCancel: touchEnd, onTouchEnd: touchEnd },
77
- React.createElement(Visibility, null))),
78
- showClear && (React.createElement(IconButton, { onClick: clearClick, tabIndex: -1 },
79
- React.createElement(Clear, null)))));
76
+ InputProps.endAdornment = (_jsxs(InputAdornment, { position: "end", children: [showPassword && (_jsx(IconButton, { tabIndex: -1, onContextMenu: (event) => event.preventDefault(), onMouseDown: touchStart, onMouseUp: touchEnd, onTouchStart: touchStart, onTouchCancel: touchEnd, onTouchEnd: touchEnd, children: _jsx(Visibility, {}) })), showClear && (_jsx(IconButton, { onClick: clearClick, tabIndex: -1, children: _jsx(Clear, {}) }))] }));
80
77
  }
81
78
  // Extend key precess
82
79
  const onKeyPressEx = onEnter == null
@@ -132,5 +129,5 @@ export const TextFieldEx = React.forwardRef((props, ref) => {
132
129
  };
133
130
  }, []);
134
131
  // Textfield
135
- return (React.createElement(TextField, { error: errorEx, fullWidth: fullWidth, helperText: helperTextEx, inputRef: useCombinedRefs(inputRef, localRef), InputProps: InputProps, InputLabelProps: InputLabelProps, onChange: onChangeEx, onKeyDown: onKeyPressEx, type: typeEx, variant: variant, ...rest }));
132
+ return (_jsx(TextField, { error: errorEx, fullWidth: fullWidth, helperText: helperTextEx, inputRef: useCombinedRefs(inputRef, localRef), InputProps: InputProps, InputLabelProps: InputLabelProps, onChange: onChangeEx, onKeyDown: onKeyPressEx, type: typeEx, variant: variant, ...rest }));
136
133
  });
package/lib/Tiplist.d.ts CHANGED
@@ -1,5 +1,4 @@
1
1
  import { DataTypes, IdDefaultType, ListType2 } from "@etsoo/shared";
2
- import React from "react";
3
2
  import { AutocompleteExtendedProps } from "./AutocompleteExtendedProps";
4
3
  /**
5
4
  * Tiplist props
@@ -23,4 +22,4 @@ export type TiplistProps<T extends object, D extends DataTypes.Keys<T>> = Omit<A
23
22
  * @param props Props
24
23
  * @returns Component
25
24
  */
26
- export declare function Tiplist<T extends object = ListType2, D extends DataTypes.Keys<T> = IdDefaultType<T>>(props: TiplistProps<T, D>): React.JSX.Element;
25
+ export declare function Tiplist<T extends object = ListType2, D extends DataTypes.Keys<T> = IdDefaultType<T>>(props: TiplistProps<T, D>): import("react/jsx-runtime").JSX.Element;
package/lib/Tiplist.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
2
  import { ReactUtils, useDelayedExecutor } from "@etsoo/react";
2
3
  import { DataTypes } from "@etsoo/shared";
3
4
  import { Autocomplete } from "@mui/material";
@@ -163,44 +164,42 @@ export function Tiplist(props) {
163
164
  };
164
165
  }, []);
165
166
  // Layout
166
- return (React.createElement("div", null,
167
- React.createElement("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: `${inputValue ?? (state.current.idSet ? "" : localIdValue ?? "")}`, readOnly: true, onChange: inputOnChange }),
168
- React.createElement(Autocomplete, { filterOptions: (options, _state) => options, value: states.value, options: states.options, onChange: (event, value, reason, details) => {
169
- // Set value
170
- setInputValue(value);
171
- // Custom
172
- if (onChange != null)
173
- onChange(event, value, reason, details);
174
- if (onValueChange)
175
- onValueChange(value);
176
- // For clear case
177
- if (reason === "clear") {
178
- stateUpdate({ options: [], open: event.type === "click" });
179
- loadDataDirect();
180
- }
181
- }, open: states.open, openOnFocus: openOnFocus, onOpen: () => {
182
- // Should load
183
- const loading = states.loading ? true : states.options.length === 0;
184
- stateUpdate({ open: true, loading });
185
- // If not loading
186
- if (loading)
187
- loadDataDirect(undefined, states.value == null ? undefined : states.value[idField]);
188
- }, onClose: () => {
189
- stateUpdate({
190
- open: false,
191
- ...(!states.value && { options: [] })
192
- });
193
- }, loading: states.loading, renderInput: (params) => search ? (React.createElement(SearchField, { onChange: changeHandle, ...addReadOnly(params), readOnly: readOnly, label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })) : (React.createElement(InputField, { onChange: changeHandle, ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })), isOptionEqualToValue: (option, value) => option[idField] === value[idField], sx: sx, noOptionsText: noOptionsText, loadingText: loadingText, openText: openText, getOptionDisabled: (item) => {
194
- if (item[idField] === "n/a")
195
- return true;
196
- return getOptionDisabled ? getOptionDisabled(item) : false;
197
- }, getOptionLabel: (item) => {
198
- if (typeof item !== "object")
199
- return `${item}`;
200
- if (item[idField] === "n/a")
201
- return (more ?? "More") + "...";
202
- return getOptionLabel
203
- ? getOptionLabel(item)
204
- : DataTypes.getObjectItemLabel(item);
205
- }, ...rest })));
167
+ return (_jsxs("div", { children: [_jsx("input", { ref: inputRef, "data-reset": inputReset ?? true, type: "text", style: { display: "none" }, name: name, value: `${inputValue ?? (state.current.idSet ? "" : localIdValue ?? "")}`, readOnly: true, onChange: inputOnChange }), _jsx(Autocomplete, { filterOptions: (options, _state) => options, value: states.value, options: states.options, onChange: (event, value, reason, details) => {
168
+ // Set value
169
+ setInputValue(value);
170
+ // Custom
171
+ if (onChange != null)
172
+ onChange(event, value, reason, details);
173
+ if (onValueChange)
174
+ onValueChange(value);
175
+ // For clear case
176
+ if (reason === "clear") {
177
+ stateUpdate({ options: [], open: event.type === "click" });
178
+ loadDataDirect();
179
+ }
180
+ }, open: states.open, openOnFocus: openOnFocus, onOpen: () => {
181
+ // Should load
182
+ const loading = states.loading ? true : states.options.length === 0;
183
+ stateUpdate({ open: true, loading });
184
+ // If not loading
185
+ if (loading)
186
+ loadDataDirect(undefined, states.value == null ? undefined : states.value[idField]);
187
+ }, onClose: () => {
188
+ stateUpdate({
189
+ open: false,
190
+ ...(!states.value && { options: [] })
191
+ });
192
+ }, loading: states.loading, renderInput: (params) => search ? (_jsx(SearchField, { onChange: changeHandle, ...addReadOnly(params), readOnly: readOnly, label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })) : (_jsx(InputField, { onChange: changeHandle, ...addReadOnly(params), label: label, name: name + "Input", margin: inputMargin, variant: inputVariant, required: inputRequired, autoComplete: inputAutoComplete, error: inputError, helperText: inputHelperText })), isOptionEqualToValue: (option, value) => option[idField] === value[idField], sx: sx, noOptionsText: noOptionsText, loadingText: loadingText, openText: openText, getOptionDisabled: (item) => {
193
+ if (item[idField] === "n/a")
194
+ return true;
195
+ return getOptionDisabled ? getOptionDisabled(item) : false;
196
+ }, getOptionLabel: (item) => {
197
+ if (typeof item !== "object")
198
+ return `${item}`;
199
+ if (item[idField] === "n/a")
200
+ return (more ?? "More") + "...";
201
+ return getOptionLabel
202
+ ? getOptionLabel(item)
203
+ : DataTypes.getObjectItemLabel(item);
204
+ }, ...rest })] }));
206
205
  }