@bpmn-io/form-js-editor 1.9.2 → 1.10.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.
package/dist/index.es.js CHANGED
@@ -12481,10 +12481,60 @@ function StaticColumnsSourceEntry(props) {
12481
12481
  };
12482
12482
  }
12483
12483
 
12484
+ function VersionTagEntry(props) {
12485
+ const {
12486
+ editField,
12487
+ field
12488
+ } = props;
12489
+ const entries = [];
12490
+ entries.push({
12491
+ id: 'versionTag',
12492
+ component: VersionTag,
12493
+ editField: editField,
12494
+ field: field,
12495
+ isEdited: isEdited,
12496
+ isDefaultVisible: field => field.type === 'default'
12497
+ });
12498
+ return entries;
12499
+ }
12500
+ function VersionTag(props) {
12501
+ const {
12502
+ editField,
12503
+ field,
12504
+ id
12505
+ } = props;
12506
+ const debounce = useService('debounce');
12507
+ const path = ['versionTag'];
12508
+ const getValue = () => {
12509
+ return get(field, path, '');
12510
+ };
12511
+ const setValue = (value, error) => {
12512
+ if (error) {
12513
+ return;
12514
+ }
12515
+ return editField(field, path, value);
12516
+ };
12517
+ const tooltip = jsx("div", {
12518
+ children: "Version tag by which this form can be referenced."
12519
+ });
12520
+ return TextfieldEntry({
12521
+ debounce,
12522
+ element: field,
12523
+ getValue,
12524
+ id,
12525
+ label: 'Version tag',
12526
+ setValue,
12527
+ tooltip
12528
+ });
12529
+ }
12530
+
12484
12531
  function GeneralGroup(field, editField, getService) {
12485
12532
  const entries = [...IdEntry({
12486
12533
  field,
12487
12534
  editField
12535
+ }), ...VersionTagEntry({
12536
+ field,
12537
+ editField
12488
12538
  }), ...LabelEntry({
12489
12539
  field,
12490
12540
  editField