@ostack.tech/ui-kform 0.13.1 → 0.14.0
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/ostack-ui-kform.css +1 -0
- package/dist/ostack-ui-kform.js +21 -16
- package/dist/ostack-ui-kform.js.map +1 -1
- package/dist/types/components/CheckboxControl/CheckboxControl.d.ts +1 -1
- package/dist/types/components/CheckboxGroupControl/CheckboxGroupControl.d.ts +1 -1
- package/dist/types/components/DateControl/DateControl.d.ts +1 -1
- package/dist/types/components/DateRangeControl/DateRangeControl.d.ts +1 -1
- package/dist/types/components/FileControl/FileControl.d.ts +1 -1
- package/dist/types/components/FormPages/FormPagesSelect.d.ts +2 -3
- package/dist/types/components/NumericControl/NumericControl.d.ts +1 -1
- package/dist/types/components/RadioGroupControl/RadioGroupControl.d.ts +1 -1
- package/dist/types/components/SelectControl/SelectControl.d.ts +1 -1
- package/dist/types/components/SelectMultipleControl/SelectMultipleControl.d.ts +1 -1
- package/dist/types/components/TextControl/TextControl.d.ts +2 -2
- package/package.json +8 -8
- package/scss/components/IssuesPanel/_IssuesPanel.scss +1 -0
package/dist/ostack-ui-kform.css
CHANGED
package/dist/ostack-ui-kform.js
CHANGED
|
@@ -1519,14 +1519,14 @@ function useFormLoader({
|
|
|
1519
1519
|
if (message != null) {
|
|
1520
1520
|
addToast(message, { severity: "success" });
|
|
1521
1521
|
}
|
|
1522
|
-
} catch (
|
|
1523
|
-
if (
|
|
1522
|
+
} catch (error) {
|
|
1523
|
+
if (error instanceof DOMException && error.name === "AbortError") {
|
|
1524
1524
|
return;
|
|
1525
1525
|
}
|
|
1526
1526
|
if (process.env.NODE_ENV !== "production") {
|
|
1527
|
-
console.error(
|
|
1527
|
+
console.error(error);
|
|
1528
1528
|
}
|
|
1529
|
-
const message = typeof errorMessage2 === "function" ? errorMessage2(file,
|
|
1529
|
+
const message = typeof errorMessage2 === "function" ? errorMessage2(file, error) : errorMessage2;
|
|
1530
1530
|
if (message != null) {
|
|
1531
1531
|
addToast(message, { severity: "danger" });
|
|
1532
1532
|
}
|
|
@@ -6370,11 +6370,19 @@ const RadioGroupControl = forwardRef(function RadioGroupControl2({
|
|
|
6370
6370
|
preventAutoFocus,
|
|
6371
6371
|
apiRef
|
|
6372
6372
|
});
|
|
6373
|
+
const { onChange: inputOnChange } = inputProps;
|
|
6373
6374
|
const handleValueChange = useCallback(
|
|
6374
|
-
(formattedValue2) =>
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6375
|
+
(formattedValue2) => {
|
|
6376
|
+
inputOnChange(formattedValue2 ?? "");
|
|
6377
|
+
setValue(
|
|
6378
|
+
parseSelectionValueFromOptionIndex(
|
|
6379
|
+
formattedValue2 ?? "",
|
|
6380
|
+
schema,
|
|
6381
|
+
options
|
|
6382
|
+
)
|
|
6383
|
+
);
|
|
6384
|
+
},
|
|
6385
|
+
[inputOnChange, options, schema]
|
|
6378
6386
|
);
|
|
6379
6387
|
const clearedValue = nullable ? null : schema.initialValue;
|
|
6380
6388
|
const clearedIdx = useMemo(
|
|
@@ -6408,10 +6416,7 @@ const RadioGroupControl = forwardRef(function RadioGroupControl2({
|
|
|
6408
6416
|
readOnly: displayReadOnly || readOnly || inputProps.readOnly,
|
|
6409
6417
|
status: displayStatusToControlStatus(displayStatusToDisplay),
|
|
6410
6418
|
showClearButton: showClearButton === "auto" ? formattedValue !== clearedFormattedValue : showClearButton,
|
|
6411
|
-
onValueChange:
|
|
6412
|
-
inputProps.onChange,
|
|
6413
|
-
handleValueChange
|
|
6414
|
-
),
|
|
6419
|
+
onValueChange: handleValueChange,
|
|
6415
6420
|
onFocus: combineEventHandlers(onFocus, handleFocus),
|
|
6416
6421
|
onBlurToOutside: combineEventHandlers(
|
|
6417
6422
|
onBlurToOutside,
|
|
@@ -6511,14 +6516,14 @@ function useFormSaver({
|
|
|
6511
6516
|
addToast(message, { severity: "success" });
|
|
6512
6517
|
}
|
|
6513
6518
|
}
|
|
6514
|
-
} catch (
|
|
6515
|
-
if (
|
|
6519
|
+
} catch (error) {
|
|
6520
|
+
if (error instanceof DOMException && error.name === "AbortError") {
|
|
6516
6521
|
return;
|
|
6517
6522
|
}
|
|
6518
6523
|
if (process.env.NODE_ENV !== "production") {
|
|
6519
|
-
console.error(
|
|
6524
|
+
console.error(error);
|
|
6520
6525
|
}
|
|
6521
|
-
const message = typeof errorMessage2 == "function" ? errorMessage2(fileHandle,
|
|
6526
|
+
const message = typeof errorMessage2 == "function" ? errorMessage2(fileHandle, error) : errorMessage2;
|
|
6522
6527
|
if (message != null) {
|
|
6523
6528
|
addToast(message, { severity: "danger" });
|
|
6524
6529
|
}
|