@wise/dynamic-flow-client 3.28.1 → 3.28.3
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 +13 -3
- package/build/main.min.js +1 -1
- package/build/main.mjs +13 -3
- package/build/types/legacy/layout/button/utils.d.ts +1 -1
- package/package.json +16 -16
package/build/main.js
CHANGED
|
@@ -8482,6 +8482,9 @@ var isPartialModelMatch = (localModel, incomingModel) => {
|
|
|
8482
8482
|
return localModel.length === incomingModel.length && localModel.every((value, index) => isPartialModelMatch(value, incomingModel[index]));
|
|
8483
8483
|
}
|
|
8484
8484
|
if (isObjectModel(localModel) && isObjectModel(incomingModel)) {
|
|
8485
|
+
if (Object.keys(localModel).length === 0 && Object.keys(incomingModel).length === 0) {
|
|
8486
|
+
return true;
|
|
8487
|
+
}
|
|
8485
8488
|
const nonNullishKeysInBoth = nonNullishKeys(localModel).filter(
|
|
8486
8489
|
(key) => nonNullishKeys(incomingModel).includes(key)
|
|
8487
8490
|
);
|
|
@@ -11685,7 +11688,7 @@ function ButtonRendererComponent({
|
|
|
11685
11688
|
block: true,
|
|
11686
11689
|
className,
|
|
11687
11690
|
disabled: isLoading || disabled,
|
|
11688
|
-
priority
|
|
11691
|
+
priority,
|
|
11689
11692
|
size: mapSize(size2),
|
|
11690
11693
|
type,
|
|
11691
11694
|
onClick,
|
|
@@ -11707,6 +11710,8 @@ var mapControl = (control) => {
|
|
|
11707
11710
|
case "primary":
|
|
11708
11711
|
case "tertiary":
|
|
11709
11712
|
return control;
|
|
11713
|
+
case "minimal":
|
|
11714
|
+
return "tertiary";
|
|
11710
11715
|
default:
|
|
11711
11716
|
return "secondary";
|
|
11712
11717
|
}
|
|
@@ -15458,6 +15463,9 @@ var priorities = {
|
|
|
15458
15463
|
};
|
|
15459
15464
|
var getButtonPriority = (control, action) => {
|
|
15460
15465
|
const actionType = action ? action.type : void 0;
|
|
15466
|
+
if (control === "minimal") {
|
|
15467
|
+
return "tertiary";
|
|
15468
|
+
}
|
|
15461
15469
|
return control != null ? control : actionType ? priorities[actionType] : "secondary";
|
|
15462
15470
|
};
|
|
15463
15471
|
var contextToType = {
|
|
@@ -16158,10 +16166,12 @@ function MultiSelectSchema({
|
|
|
16158
16166
|
const shouldShowInitialError = Boolean(errors) && !changed;
|
|
16159
16167
|
const shouldShowValidationError = Boolean(validations.length) && submitted;
|
|
16160
16168
|
const formGroupClasses = {
|
|
16161
|
-
"
|
|
16169
|
+
"form-group": true,
|
|
16170
|
+
"has-error": shouldShowInitialError || shouldShowValidationError,
|
|
16171
|
+
"has-info": !!schema.description
|
|
16162
16172
|
};
|
|
16163
16173
|
return /* @__PURE__ */ (0, import_jsx_runtime82.jsxs)("div", { className: (0, import_classnames8.default)("d-flex flex-column", formGroupClasses), children: [
|
|
16164
|
-
schema.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { htmlFor: id, children: schema.title }) : void 0,
|
|
16174
|
+
schema.title ? /* @__PURE__ */ (0, import_jsx_runtime82.jsx)("label", { className: "control-label d-inline m-b-1", htmlFor: id, children: schema.title }) : void 0,
|
|
16165
16175
|
/* @__PURE__ */ (0, import_jsx_runtime82.jsx)(
|
|
16166
16176
|
import_components51.SelectInput,
|
|
16167
16177
|
{
|