@bpmn-io/form-js-editor 1.9.1 → 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 +53 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +53 -0
- package/dist/index.es.js.map +1 -1
- package/dist/types/features/dragging/Dragging.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/VersionTagEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/index.d.ts +1 -0
- package/package.json +4 -3
package/dist/index.es.js
CHANGED
|
@@ -1759,6 +1759,9 @@ class Dragging {
|
|
|
1759
1759
|
let targetParentId;
|
|
1760
1760
|
if (formFieldNode) {
|
|
1761
1761
|
formField = this._formFieldRegistry.get(formFieldNode.dataset.id);
|
|
1762
|
+
if (!formField) {
|
|
1763
|
+
return 'No associated form field in the registry';
|
|
1764
|
+
}
|
|
1762
1765
|
columns = (formField.layout || {}).columns;
|
|
1763
1766
|
|
|
1764
1767
|
// (1) check for row constraints
|
|
@@ -12478,10 +12481,60 @@ function StaticColumnsSourceEntry(props) {
|
|
|
12478
12481
|
};
|
|
12479
12482
|
}
|
|
12480
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
|
+
|
|
12481
12531
|
function GeneralGroup(field, editField, getService) {
|
|
12482
12532
|
const entries = [...IdEntry({
|
|
12483
12533
|
field,
|
|
12484
12534
|
editField
|
|
12535
|
+
}), ...VersionTagEntry({
|
|
12536
|
+
field,
|
|
12537
|
+
editField
|
|
12485
12538
|
}), ...LabelEntry({
|
|
12486
12539
|
field,
|
|
12487
12540
|
editField
|