@bpmn-io/form-js-editor 1.17.0 → 1.18.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.
@@ -2268,7 +2268,7 @@ textarea.bio-properties-panel-input {
2268
2268
  top: 0;
2269
2269
  right: 0;
2270
2270
  line-height: 1;
2271
- padding: 2px 4px;
2271
+ padding: 3px 4px;
2272
2272
  margin: 3px;
2273
2273
  display: none;
2274
2274
  background: none;
@@ -2277,6 +2277,12 @@ textarea.bio-properties-panel-input {
2277
2277
  cursor: pointer;
2278
2278
  }
2279
2279
 
2280
+ .bio-properties-panel-feelers-editor-container .bio-properties-panel-open-feel-popup svg,
2281
+ .bio-properties-panel-feel-container .bio-properties-panel-open-feel-popup svg {
2282
+ width: 16px;
2283
+ height: 16px;
2284
+ }
2285
+
2280
2286
  .bio-properties-panel-feelers-editor-container:hover .bio-properties-panel-open-feel-popup,
2281
2287
  .bio-properties-panel-feel-container:hover .bio-properties-panel-open-feel-popup,
2282
2288
  .bio-properties-panel-feelers-editor-container:focus-within .bio-properties-panel-open-feel-popup,
@@ -1467,7 +1467,7 @@ textarea.bio-properties-panel-input {
1467
1467
  top: 0;
1468
1468
  right: 0;
1469
1469
  line-height: 1;
1470
- padding: 2px 4px;
1470
+ padding: 3px 4px;
1471
1471
  margin: 3px;
1472
1472
  display: none;
1473
1473
  background: none;
@@ -1476,6 +1476,12 @@ textarea.bio-properties-panel-input {
1476
1476
  cursor: pointer;
1477
1477
  }
1478
1478
 
1479
+ .bio-properties-panel-feelers-editor-container .bio-properties-panel-open-feel-popup svg,
1480
+ .bio-properties-panel-feel-container .bio-properties-panel-open-feel-popup svg {
1481
+ width: 16px;
1482
+ height: 16px;
1483
+ }
1484
+
1479
1485
  .bio-properties-panel-feelers-editor-container:hover .bio-properties-panel-open-feel-popup,
1480
1486
  .bio-properties-panel-feel-container:hover .bio-properties-panel-open-feel-popup,
1481
1487
  .bio-properties-panel-feelers-editor-container:focus-within .bio-properties-panel-open-feel-popup,
package/dist/index.cjs CHANGED
@@ -5462,22 +5462,16 @@ LaunchIcon.defaultProps = {
5462
5462
  viewBox: "0 0 32 32"
5463
5463
  };
5464
5464
  var OpenPopupIcon = function OpenPopupIcon(props) {
5465
- return jsxRuntime.jsxs("svg", {
5465
+ return jsxRuntime.jsx("svg", {
5466
5466
  ...props,
5467
- children: [jsxRuntime.jsx("path", {
5468
- fill: "currentColor",
5469
- d: "M28 4H10a2.006 2.006 0 0 0-2 2v14a2.006 2.006 0 0 0 2 2h18a2.006 2.006 0 0 0 2-2V6a2.006 2.006 0 0 0-2-2Zm0 16H10V6h18Z"
5470
- }), jsxRuntime.jsx("path", {
5471
- fill: "currentColor",
5472
- d: "M18 26H4V16h2v-2H4a2.006 2.006 0 0 0-2 2v10a2.006 2.006 0 0 0 2 2h14a2.006 2.006 0 0 0 2-2v-2h-2Z"
5473
- })]
5467
+ children: jsxRuntime.jsx("path", {
5468
+ d: "M6 15v-1H2.7L7 9.7 6.3 9 2 13.3V10H1v5zm4-14v1h3.3L9 6.3l.7.7L14 2.7V6h1V1z"
5469
+ })
5474
5470
  });
5475
5471
  };
5476
5472
  OpenPopupIcon.defaultProps = {
5477
5473
  xmlns: "http://www.w3.org/2000/svg",
5478
- width: "16",
5479
- height: "16",
5480
- viewBox: "0 0 32 32"
5474
+ viewBox: "0 0 16 16"
5481
5475
  };
5482
5476
  function Header(props) {
5483
5477
  const {
@@ -11475,7 +11469,14 @@ function Value$1(props) {
11475
11469
  if (error) {
11476
11470
  return;
11477
11471
  }
11472
+ const {
11473
+ defaultValue
11474
+ } = field;
11478
11475
  const values = minDash.get(field, ['values']);
11476
+ const previousValue = minDash.get(field, ['values', index, 'value']);
11477
+ if (!minDash.isNil(defaultValue) && defaultValue === previousValue) {
11478
+ minDash.set(field, ['defaultValue'], value);
11479
+ }
11479
11480
  return editField(field, 'values', minDash.set(values, [index, 'value'], value));
11480
11481
  };
11481
11482
  const getValue = () => {
@@ -12885,7 +12886,7 @@ function DocumentsDataSource(props) {
12885
12886
  children: "When using Camunda Tasklist UI, additional document reference attributes are automatically handled. Modifying the document reference may affect the document preview functionality."
12886
12887
  }), jsxRuntime.jsxs("p", {
12887
12888
  children: ["Learn more in our", ' ', jsxRuntime.jsx("a", {
12888
- href: "https://docs.camunda.io/docs/8.7/components/modeler/forms/form-element-library/forms-element-library-document-preview/",
12889
+ href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-document-preview/",
12889
12890
  target: "_blank",
12890
12891
  rel: "noopener noreferrer",
12891
12892
  children: "documentation"
@@ -13497,7 +13498,7 @@ function CustomPropertiesGroup(field, editField) {
13497
13498
  event.stopPropagation();
13498
13499
  return editField(field, ['properties'], removeKey(properties, key));
13499
13500
  };
13500
- const id = `property-${index}`;
13501
+ const id = `property-${field.id}-${index}`;
13501
13502
  return {
13502
13503
  autoFocusEntry: id + '-key',
13503
13504
  entries: CustomValueEntry({