@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.cjs CHANGED
@@ -12501,10 +12501,60 @@ function StaticColumnsSourceEntry(props) {
12501
12501
  };
12502
12502
  }
12503
12503
 
12504
+ function VersionTagEntry(props) {
12505
+ const {
12506
+ editField,
12507
+ field
12508
+ } = props;
12509
+ const entries = [];
12510
+ entries.push({
12511
+ id: 'versionTag',
12512
+ component: VersionTag,
12513
+ editField: editField,
12514
+ field: field,
12515
+ isEdited: isEdited,
12516
+ isDefaultVisible: field => field.type === 'default'
12517
+ });
12518
+ return entries;
12519
+ }
12520
+ function VersionTag(props) {
12521
+ const {
12522
+ editField,
12523
+ field,
12524
+ id
12525
+ } = props;
12526
+ const debounce = useService('debounce');
12527
+ const path = ['versionTag'];
12528
+ const getValue = () => {
12529
+ return minDash.get(field, path, '');
12530
+ };
12531
+ const setValue = (value, error) => {
12532
+ if (error) {
12533
+ return;
12534
+ }
12535
+ return editField(field, path, value);
12536
+ };
12537
+ const tooltip = jsxRuntime.jsx("div", {
12538
+ children: "Version tag by which this form can be referenced."
12539
+ });
12540
+ return TextfieldEntry({
12541
+ debounce,
12542
+ element: field,
12543
+ getValue,
12544
+ id,
12545
+ label: 'Version tag',
12546
+ setValue,
12547
+ tooltip
12548
+ });
12549
+ }
12550
+
12504
12551
  function GeneralGroup(field, editField, getService) {
12505
12552
  const entries = [...IdEntry({
12506
12553
  field,
12507
12554
  editField
12555
+ }), ...VersionTagEntry({
12556
+ field,
12557
+ editField
12508
12558
  }), ...LabelEntry({
12509
12559
  field,
12510
12560
  editField