@bpmn-io/properties-panel 3.44.0 → 3.44.1

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/index.js CHANGED
@@ -3678,6 +3678,7 @@ function List(props) {
3678
3678
  onAdd,
3679
3679
  onRemove,
3680
3680
  autoFocusEntry,
3681
+ translate = translateFallback,
3681
3682
  ...restProps
3682
3683
  } = props;
3683
3684
  const entryRef = hooks.useRef(null);
@@ -3720,12 +3721,12 @@ function List(props) {
3720
3721
  class: "bio-properties-panel-list-entry-header-buttons",
3721
3722
  children: [jsxRuntime.jsxs("button", {
3722
3723
  type: "button",
3723
- title: "Create new list item",
3724
+ title: translate('Create new list item'),
3724
3725
  onClick: addItem,
3725
3726
  class: "bio-properties-panel-add-entry",
3726
3727
  children: [jsxRuntime.jsx(CreateIcon, {}), !hasItems ? jsxRuntime.jsx("span", {
3727
3728
  class: "bio-properties-panel-add-entry-label",
3728
- children: "Create"
3729
+ children: translate('Create')
3729
3730
  }) : null]
3730
3731
  }), hasItems && jsxRuntime.jsx("div", {
3731
3732
  title: `List contains ${items.length} item${items.length != 1 ? 's' : ''}`,
@@ -3733,7 +3734,7 @@ function List(props) {
3733
3734
  children: items.length
3734
3735
  }), hasItems && jsxRuntime.jsx("button", {
3735
3736
  type: "button",
3736
- title: "Toggle list item",
3737
+ title: translate('Toggle list item'),
3737
3738
  class: "bio-properties-panel-arrow",
3738
3739
  children: jsxRuntime.jsx(ArrowIcon, {
3739
3740
  class: open ? 'bio-properties-panel-arrow-down' : 'bio-properties-panel-arrow-right'
@@ -3749,7 +3750,8 @@ function List(props) {
3749
3750
  items: items,
3750
3751
  newItems: newItems,
3751
3752
  onRemove: onRemove,
3752
- open: open
3753
+ open: open,
3754
+ translate: translate
3753
3755
  })]
3754
3756
  });
3755
3757
  }
@@ -3763,6 +3765,7 @@ function ItemsList(props) {
3763
3765
  newItems,
3764
3766
  onRemove,
3765
3767
  open,
3768
+ translate,
3766
3769
  ...restProps
3767
3770
  } = props;
3768
3771
  const getKey = useKeyFactory();
@@ -3801,7 +3804,7 @@ function ItemsList(props) {
3801
3804
  open: item === newItem
3802
3805
  }), onRemove && jsxRuntime.jsx("button", {
3803
3806
  type: "button",
3804
- title: "Delete item",
3807
+ title: translate('Delete item'),
3805
3808
  class: "bio-properties-panel-remove-entry bio-properties-panel-remove-list-entry",
3806
3809
  onClick: () => onRemove && onRemove(item),
3807
3810
  children: jsxRuntime.jsx(DeleteIcon, {})