@etsoo/materialui 1.5.36 → 1.5.37

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.
@@ -47,10 +47,10 @@ export type ButtonPopupCheckboxProps<D extends DnDItemType> = Omit<ButtonProps,
47
47
  */
48
48
  onAdd?: (ids: string[]) => Promise<false | D[]>;
49
49
  /**
50
- * On change handler
50
+ * On value change handler
51
51
  * @param ids Ids
52
52
  */
53
- onChange?: (ids: D["id"][]) => void;
53
+ onValueChange?: (ids: D["id"][]) => void;
54
54
  /**
55
55
  * Popup title
56
56
  */
@@ -71,7 +71,7 @@ function ButtonPopupCheckbox(props) {
71
71
  // App
72
72
  const app = (0, ReactApp_1.useRequiredAppContext)();
73
73
  // Destruct
74
- const { addSplitter, ids, inputName, label, labelEnd, labelFormatter, labelField, labels = {}, loadData, onAdd, onChange, popupTitle = label, popupMessage, required = false, sx = { gap: 1, justifyContent: "flex-start" }, variant = "outlined", ...rest } = props;
74
+ const { addSplitter, ids, inputName, label, labelEnd, labelFormatter, labelField, labels = {}, loadData, onAdd, onValueChange, popupTitle = label, popupMessage, required = false, sx = { gap: 1, justifyContent: "flex-start" }, variant = "outlined", ...rest } = props;
75
75
  // Default labels
76
76
  if (!labels.add)
77
77
  labels.add = app.get("add");
@@ -103,7 +103,7 @@ function ButtonPopupCheckbox(props) {
103
103
  return false;
104
104
  }
105
105
  setValues(item);
106
- onChange?.(item);
106
+ onValueChange?.(item);
107
107
  },
108
108
  inputs: ((0, jsx_runtime_1.jsx)(ButtonPopupList, { addSplitter: addSplitter, ids: values, labelFormatter: labelFormatter, labelField: labelField, labels: labels, loadData: loadData, onAdd: onAdd })),
109
109
  fullScreen: app.smDown
@@ -47,10 +47,10 @@ export type ButtonPopupCheckboxProps<D extends DnDItemType> = Omit<ButtonProps,
47
47
  */
48
48
  onAdd?: (ids: string[]) => Promise<false | D[]>;
49
49
  /**
50
- * On change handler
50
+ * On value change handler
51
51
  * @param ids Ids
52
52
  */
53
- onChange?: (ids: D["id"][]) => void;
53
+ onValueChange?: (ids: D["id"][]) => void;
54
54
  /**
55
55
  * Popup title
56
56
  */
@@ -65,7 +65,7 @@ export function ButtonPopupCheckbox(props) {
65
65
  // App
66
66
  const app = useRequiredAppContext();
67
67
  // Destruct
68
- const { addSplitter, ids, inputName, label, labelEnd, labelFormatter, labelField, labels = {}, loadData, onAdd, onChange, popupTitle = label, popupMessage, required = false, sx = { gap: 1, justifyContent: "flex-start" }, variant = "outlined", ...rest } = props;
68
+ const { addSplitter, ids, inputName, label, labelEnd, labelFormatter, labelField, labels = {}, loadData, onAdd, onValueChange, popupTitle = label, popupMessage, required = false, sx = { gap: 1, justifyContent: "flex-start" }, variant = "outlined", ...rest } = props;
69
69
  // Default labels
70
70
  if (!labels.add)
71
71
  labels.add = app.get("add");
@@ -97,7 +97,7 @@ export function ButtonPopupCheckbox(props) {
97
97
  return false;
98
98
  }
99
99
  setValues(item);
100
- onChange?.(item);
100
+ onValueChange?.(item);
101
101
  },
102
102
  inputs: (_jsx(ButtonPopupList, { addSplitter: addSplitter, ids: values, labelFormatter: labelFormatter, labelField: labelField, labels: labels, loadData: loadData, onAdd: onAdd })),
103
103
  fullScreen: app.smDown
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.5.36",
3
+ "version": "1.5.37",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/mjs/index.js",
@@ -75,10 +75,10 @@ export type ButtonPopupCheckboxProps<D extends DnDItemType> = Omit<
75
75
  onAdd?: (ids: string[]) => Promise<false | D[]>;
76
76
 
77
77
  /**
78
- * On change handler
78
+ * On value change handler
79
79
  * @param ids Ids
80
80
  */
81
- onChange?: (ids: D["id"][]) => void;
81
+ onValueChange?: (ids: D["id"][]) => void;
82
82
 
83
83
  /**
84
84
  * Popup title
@@ -258,7 +258,7 @@ export function ButtonPopupCheckbox<D extends DnDItemType>(
258
258
  labels = {},
259
259
  loadData,
260
260
  onAdd,
261
- onChange,
261
+ onValueChange,
262
262
  popupTitle = label,
263
263
  popupMessage,
264
264
  required = false,
@@ -299,7 +299,7 @@ export function ButtonPopupCheckbox<D extends DnDItemType>(
299
299
 
300
300
  setValues(item);
301
301
 
302
- onChange?.(item);
302
+ onValueChange?.(item);
303
303
  },
304
304
  inputs: (
305
305
  <ButtonPopupList