@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.cjs
CHANGED
|
@@ -1779,6 +1779,9 @@ class Dragging {
|
|
|
1779
1779
|
let targetParentId;
|
|
1780
1780
|
if (formFieldNode) {
|
|
1781
1781
|
formField = this._formFieldRegistry.get(formFieldNode.dataset.id);
|
|
1782
|
+
if (!formField) {
|
|
1783
|
+
return 'No associated form field in the registry';
|
|
1784
|
+
}
|
|
1782
1785
|
columns = (formField.layout || {}).columns;
|
|
1783
1786
|
|
|
1784
1787
|
// (1) check for row constraints
|
|
@@ -12498,10 +12501,60 @@ function StaticColumnsSourceEntry(props) {
|
|
|
12498
12501
|
};
|
|
12499
12502
|
}
|
|
12500
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
|
+
|
|
12501
12551
|
function GeneralGroup(field, editField, getService) {
|
|
12502
12552
|
const entries = [...IdEntry({
|
|
12503
12553
|
field,
|
|
12504
12554
|
editField
|
|
12555
|
+
}), ...VersionTagEntry({
|
|
12556
|
+
field,
|
|
12557
|
+
editField
|
|
12505
12558
|
}), ...LabelEntry({
|
|
12506
12559
|
field,
|
|
12507
12560
|
editField
|