@etsoo/materialui 1.1.87 → 1.1.89
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/lib/ComboBox.js +1 -2
- package/lib/ComboBoxMultiple.js +1 -2
- package/lib/DataSteps.js +1 -1
- package/lib/IntInputField.js +1 -1
- package/lib/Tiplist.js +1 -1
- package/package.json +6 -6
- package/src/ComboBox.tsx +1 -1
- package/src/ComboBoxMultiple.tsx +1 -1
- package/src/DataSteps.tsx +1 -1
- package/src/IntInputField.tsx +1 -0
- package/src/Tiplist.tsx +1 -1
package/lib/ComboBox.js
CHANGED
|
@@ -15,8 +15,7 @@ export function ComboBox(props) {
|
|
|
15
15
|
// Labels
|
|
16
16
|
const labels = globalApp === null || globalApp === void 0 ? void 0 : globalApp.getLabels("noOptions", "loading", "open");
|
|
17
17
|
// Destruct
|
|
18
|
-
const { search = false, autoAddBlankItem = search, idField = "id", idValue, inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, defaultValue, label, labelField = "label", loadData, onLoadData, name, inputAutoComplete = "
|
|
19
|
-
options, dataReadonly = true, readOnly, onChange, openOnFocus = true, value, disableCloseOnSelect = false, getOptionLabel = (option) => `${option[labelField]}`, sx = { minWidth: "150px" }, noOptionsText = labels === null || labels === void 0 ? void 0 : labels.noOptions, loadingText = labels === null || labels === void 0 ? void 0 : labels.loading, openText = labels === null || labels === void 0 ? void 0 : labels.open, ...rest } = props;
|
|
18
|
+
const { search = false, autoAddBlankItem = search, idField = "id", idValue, inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, defaultValue, label, labelField = "label", loadData, onLoadData, name, inputAutoComplete = "off", options, dataReadonly = true, readOnly, onChange, openOnFocus = true, value, disableCloseOnSelect = false, getOptionLabel = (option) => `${option[labelField]}`, sx = { minWidth: "150px" }, noOptionsText = labels === null || labels === void 0 ? void 0 : labels.noOptions, loadingText = labels === null || labels === void 0 ? void 0 : labels.loading, openText = labels === null || labels === void 0 ? void 0 : labels.open, ...rest } = props;
|
|
20
19
|
// Value input ref
|
|
21
20
|
const inputRef = React.createRef();
|
|
22
21
|
// Options state
|
package/lib/ComboBoxMultiple.js
CHANGED
|
@@ -19,8 +19,7 @@ export function ComboBoxMultiple(props) {
|
|
|
19
19
|
// Labels
|
|
20
20
|
const labels = globalApp === null || globalApp === void 0 ? void 0 : globalApp.getLabels("noOptions", "loading");
|
|
21
21
|
// Destruct
|
|
22
|
-
const { search = false, autoAddBlankItem = search, idField = "id", idValue, idValues, inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, defaultValue, label, labelField = "label", loadData, onLoadData, name, inputAutoComplete = "
|
|
23
|
-
options, dataReadonly = true, readOnly, onChange, openOnFocus = true, value, disableCloseOnSelect = true, renderOption = (props, option, { selected }) => (React.createElement("li", { ...props },
|
|
22
|
+
const { search = false, autoAddBlankItem = search, idField = "id", idValue, idValues, inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, defaultValue, label, labelField = "label", loadData, onLoadData, name, inputAutoComplete = "off", options, dataReadonly = true, readOnly, onChange, openOnFocus = true, value, disableCloseOnSelect = true, renderOption = (props, option, { selected }) => (React.createElement("li", { ...props },
|
|
24
23
|
React.createElement(React.Fragment, null,
|
|
25
24
|
React.createElement(Checkbox, { icon: icon, checkedIcon: checkedIcon, style: { marginRight: 8 }, checked: selected }),
|
|
26
25
|
option[labelField]))), getOptionLabel = (option) => `${option[labelField]}`, sx = { minWidth: "150px" }, noOptionsText = labels === null || labels === void 0 ? void 0 : labels.noOptions, loadingText = labels === null || labels === void 0 ? void 0 : labels.loading, ...rest } = props;
|
package/lib/DataSteps.js
CHANGED
|
@@ -77,7 +77,7 @@ export function DataSteps(props) {
|
|
|
77
77
|
React.useEffect(() => {
|
|
78
78
|
setLocalValue(valueFormatter(jsonRef.current));
|
|
79
79
|
}, [valueFormatter]);
|
|
80
|
-
return (React.createElement(TextField, { autoComplete: "
|
|
80
|
+
return (React.createElement(TextField, { autoComplete: "off", InputLabelProps: InputLabelProps, inputProps: { style: { cursor: "pointer" } }, InputProps: {
|
|
81
81
|
onKeyDown: (event) => {
|
|
82
82
|
if (event.key === "Tab")
|
|
83
83
|
return;
|
package/lib/IntInputField.js
CHANGED
|
@@ -69,7 +69,7 @@ export const IntInputField = React.forwardRef((props, ref) => {
|
|
|
69
69
|
setValue(value, source);
|
|
70
70
|
if (onChangeDelay)
|
|
71
71
|
onChangeDelay(event);
|
|
72
|
-
}, ...rest }));
|
|
72
|
+
}, required: required, ...rest }));
|
|
73
73
|
if (buttons)
|
|
74
74
|
return (React.createElement(Box, { sx: { display: "flex", alignItems: "flex-end", gap: 0.5 } },
|
|
75
75
|
React.createElement(IconButton, { size: "small", onClick: () => {
|
package/lib/Tiplist.js
CHANGED
|
@@ -15,7 +15,7 @@ export function Tiplist(props) {
|
|
|
15
15
|
// Labels
|
|
16
16
|
const { noOptions, loading, more, open: openDefault } = (_a = globalApp === null || globalApp === void 0 ? void 0 : globalApp.getLabels("noOptions", "loading", "more", "open")) !== null && _a !== void 0 ? _a : {};
|
|
17
17
|
// Destruct
|
|
18
|
-
const { search = false, idField = "id", idValue, inputAutoComplete = "
|
|
18
|
+
const { search = false, idField = "id", idValue, inputAutoComplete = "off", inputError, inputHelperText, inputMargin, inputOnChange, inputRequired, inputVariant, label, loadData, defaultValue, value, maxItems = 16, width, name, readOnly, onChange, openOnFocus = true, noOptionsText = noOptions, loadingText = loading, openText = openDefault, getOptionLabel, getOptionDisabled, sx = {}, ...rest } = props;
|
|
19
19
|
if (width && sx)
|
|
20
20
|
Object.assign(sx, { width: `${width}px` });
|
|
21
21
|
// Value input ref
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@etsoo/materialui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.89",
|
|
4
4
|
"description": "TypeScript Material-UI Implementation",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"@emotion/css": "^11.10.6",
|
|
51
51
|
"@emotion/react": "^11.10.6",
|
|
52
52
|
"@emotion/styled": "^11.10.6",
|
|
53
|
-
"@etsoo/appscript": "^1.3.
|
|
53
|
+
"@etsoo/appscript": "^1.3.88",
|
|
54
54
|
"@etsoo/notificationbase": "^1.1.24",
|
|
55
55
|
"@etsoo/react": "^1.6.58",
|
|
56
|
-
"@etsoo/shared": "^1.1.
|
|
56
|
+
"@etsoo/shared": "^1.1.96",
|
|
57
57
|
"@mui/icons-material": "^5.11.11",
|
|
58
58
|
"@mui/material": "^5.11.15",
|
|
59
59
|
"@mui/x-data-grid": "^6.0.4",
|
|
60
60
|
"@types/pica": "^9.0.1",
|
|
61
61
|
"@types/pulltorefreshjs": "^0.1.5",
|
|
62
|
-
"@types/react": "^18.0.
|
|
62
|
+
"@types/react": "^18.0.33",
|
|
63
63
|
"@types/react-avatar-editor": "^13.0.0",
|
|
64
64
|
"@types/react-dom": "^18.0.11",
|
|
65
65
|
"@types/react-input-mask": "^3.0.2",
|
|
@@ -85,8 +85,8 @@
|
|
|
85
85
|
"@testing-library/jest-dom": "^5.16.5",
|
|
86
86
|
"@testing-library/react": "^14.0.0",
|
|
87
87
|
"@types/jest": "^29.5.0",
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "^5.57.
|
|
89
|
-
"@typescript-eslint/parser": "^5.57.
|
|
88
|
+
"@typescript-eslint/eslint-plugin": "^5.57.1",
|
|
89
|
+
"@typescript-eslint/parser": "^5.57.1",
|
|
90
90
|
"jest": "^29.5.0",
|
|
91
91
|
"jest-environment-jsdom": "^29.5.0",
|
|
92
92
|
"typescript": "^5.0.3"
|
package/src/ComboBox.tsx
CHANGED
package/src/ComboBoxMultiple.tsx
CHANGED
|
@@ -100,7 +100,7 @@ export function ComboBoxMultiple<
|
|
|
100
100
|
loadData,
|
|
101
101
|
onLoadData,
|
|
102
102
|
name,
|
|
103
|
-
inputAutoComplete = "
|
|
103
|
+
inputAutoComplete = "off",
|
|
104
104
|
options,
|
|
105
105
|
dataReadonly = true,
|
|
106
106
|
readOnly,
|
package/src/DataSteps.tsx
CHANGED
|
@@ -184,7 +184,7 @@ export function DataSteps<T extends object>(props: DataStepsProps<T>) {
|
|
|
184
184
|
|
|
185
185
|
return (
|
|
186
186
|
<TextField
|
|
187
|
-
autoComplete="
|
|
187
|
+
autoComplete="off"
|
|
188
188
|
InputLabelProps={InputLabelProps}
|
|
189
189
|
inputProps={{ style: { cursor: "pointer" } }}
|
|
190
190
|
InputProps={{
|
package/src/IntInputField.tsx
CHANGED