@luomus/laji-form 15.1.61 → 15.1.63

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/themes/bs5.js CHANGED
@@ -53,10 +53,7 @@ const mapValidationStateToClass = (validationState) => {
53
53
  }
54
54
  return "text-" + (validationState === "error" ? "danger" : validationState);
55
55
  };
56
- const _Card = React.forwardRef((_a, ref) => {
57
- var { variant } = _a, props = __rest(_a, ["variant"]);
58
- return (React.createElement(react_bootstrap_5_1.Card, Object.assign({}, props, { bg: mapVariant(variant, ""), ref: ref })));
59
- });
56
+ const _Card = React.forwardRef((props, ref) => (React.createElement(react_bootstrap_5_1.Card, Object.assign({}, props, { ref: ref }))));
60
57
  let Panel = _Card;
61
58
  Panel.Body = react_bootstrap_5_1.Card.Body;
62
59
  Panel.Heading = React.forwardRef((props, ref) => (React.createElement(react_bootstrap_5_1.Card.Header, Object.assign({ className: "panel-heading" }, props, { ref: ref }))));
package/lib/utils.js CHANGED
@@ -761,7 +761,7 @@ function formatValue(props, _formatter, parentProps) {
761
761
  formatted = "";
762
762
  }
763
763
  else if (isMultiSelect(schema)) {
764
- formatted = formData.map((_val) => schema.items.oneOf.find((one) => one.const === _val).title).join(", ");
764
+ formatted = formData.filter((s) => s !== undefined).map((_val) => schema.items.oneOf.find((one) => one.const === _val).title).join(", ");
765
765
  }
766
766
  else if (schema.type === "object") {
767
767
  const keys = Object.keys(formData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luomus/laji-form",
3
- "version": "15.1.61",
3
+ "version": "15.1.63",
4
4
  "description": "React module capable of building dynamic forms from Laji form json schemas",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -40,7 +40,7 @@
40
40
  "license": "MIT",
41
41
  "dependencies": {
42
42
  "@luomus/laji-map": "^5.1.17",
43
- "@luomus/laji-validate": "^0.0.122",
43
+ "@luomus/laji-validate": "^0.0.123",
44
44
  "@rjsf/core": "~5.1.0",
45
45
  "@rjsf/utils": "~5.1.0",
46
46
  "@rjsf/validator-ajv6": "~5.1.0",