@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 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 = "new-password", // disable autocomplete and autofill, 'off' does not work
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
@@ -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 = "new-password", // disable autocomplete and autofill, 'off' does not work
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: "new-password", InputLabelProps: InputLabelProps, inputProps: { style: { cursor: "pointer" } }, InputProps: {
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;
@@ -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 = "new-password", 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;
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.87",
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.87",
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.95",
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.31",
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.0",
89
- "@typescript-eslint/parser": "^5.57.0",
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
@@ -84,7 +84,7 @@ export function ComboBox<
84
84
  loadData,
85
85
  onLoadData,
86
86
  name,
87
- inputAutoComplete = "new-password", // disable autocomplete and autofill, 'off' does not work
87
+ inputAutoComplete = "off",
88
88
  options,
89
89
  dataReadonly = true,
90
90
  readOnly,
@@ -100,7 +100,7 @@ export function ComboBoxMultiple<
100
100
  loadData,
101
101
  onLoadData,
102
102
  name,
103
- inputAutoComplete = "new-password", // disable autocomplete and autofill, 'off' does not work
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="new-password"
187
+ autoComplete="off"
188
188
  InputLabelProps={InputLabelProps}
189
189
  inputProps={{ style: { cursor: "pointer" } }}
190
190
  InputProps={{
@@ -167,6 +167,7 @@ export const IntInputField = React.forwardRef<
167
167
 
168
168
  if (onChangeDelay) onChangeDelay(event);
169
169
  }}
170
+ required={required}
170
171
  {...rest}
171
172
  />
172
173
  );
package/src/Tiplist.tsx CHANGED
@@ -65,7 +65,7 @@ export function Tiplist<
65
65
  search = false,
66
66
  idField = "id" as D,
67
67
  idValue,
68
- inputAutoComplete = "new-password",
68
+ inputAutoComplete = "off",
69
69
  inputError,
70
70
  inputHelperText,
71
71
  inputMargin,