@wise/dynamic-flow-client 3.19.1 → 3.19.2
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/build/main.js +6 -6
- package/build/main.min.js +1 -1
- package/build/main.mjs +6 -6
- package/package.json +1 -1
package/build/main.mjs
CHANGED
|
@@ -6992,7 +6992,11 @@ var getActionByReference = ($ref, actions = []) => {
|
|
|
6992
6992
|
// src/revamp/domain/mappers/layout/buttonLayoutToComponent.ts
|
|
6993
6993
|
var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
6994
6994
|
const { context, control, disabled, margin = "md", pinOrder, size, title } = button;
|
|
6995
|
-
const action = inlineAction(button.action, step == null ? void 0 : step.actions);
|
|
6995
|
+
const action = button.action ? inlineAction(button.action, step == null ? void 0 : step.actions) : {};
|
|
6996
|
+
const onClick = button.action ? () => {
|
|
6997
|
+
void onAction(action);
|
|
6998
|
+
} : () => {
|
|
6999
|
+
};
|
|
6996
7000
|
return createButtonComponent({
|
|
6997
7001
|
uid,
|
|
6998
7002
|
context: getButtonContext({ context, action }),
|
|
@@ -7002,9 +7006,7 @@ var buttonLayoutToComponent = (uid, button, { onAction, step }) => {
|
|
|
7002
7006
|
pinOrder,
|
|
7003
7007
|
size,
|
|
7004
7008
|
title: getButtonTitle({ title, action }),
|
|
7005
|
-
onClick
|
|
7006
|
-
void onAction(action);
|
|
7007
|
-
}
|
|
7009
|
+
onClick
|
|
7008
7010
|
});
|
|
7009
7011
|
};
|
|
7010
7012
|
var getButtonTitle = ({ title, action }) => {
|
|
@@ -11886,7 +11888,6 @@ var MultiUploadInputRenderer = {
|
|
|
11886
11888
|
{
|
|
11887
11889
|
id,
|
|
11888
11890
|
"aria-describedby": descriptionId,
|
|
11889
|
-
className: "form-control",
|
|
11890
11891
|
description,
|
|
11891
11892
|
disabled,
|
|
11892
11893
|
fileTypes: getAcceptsString(accepts),
|
|
@@ -15056,7 +15057,6 @@ function MultipleFileUploadSchema(props) {
|
|
|
15056
15057
|
const maxSize = "maxSize" in fileSchemaDescriptor && fileSchemaDescriptor.maxSize;
|
|
15057
15058
|
const uploadInputProps = __spreadProps(__spreadValues(__spreadValues({
|
|
15058
15059
|
multiple: true,
|
|
15059
|
-
className: "form-control",
|
|
15060
15060
|
files,
|
|
15061
15061
|
fileInputName: uid,
|
|
15062
15062
|
id: uid
|