@bpmn-io/form-js-editor 1.7.1 → 1.7.3
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 +17 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +17 -9
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1410,6 +1410,7 @@ function PaletteEntry(props) {
|
|
|
1410
1410
|
}
|
|
1411
1411
|
};
|
|
1412
1412
|
return jsxRuntime.jsxs("button", {
|
|
1413
|
+
type: "button",
|
|
1413
1414
|
class: "fjs-palette-field fjs-drag-copy fjs-no-drop",
|
|
1414
1415
|
"data-field-type": type,
|
|
1415
1416
|
title: `Create ${getIndefiniteArticle(type)} ${label} element`,
|
|
@@ -1502,6 +1503,7 @@ function Palette(props) {
|
|
|
1502
1503
|
value: searchTerm,
|
|
1503
1504
|
onInput: handleInput
|
|
1504
1505
|
}), searchTerm && jsxRuntime.jsx("button", {
|
|
1506
|
+
type: "button",
|
|
1505
1507
|
title: "Clear content",
|
|
1506
1508
|
class: "fjs-palette-search-clear",
|
|
1507
1509
|
onClick: handleClear,
|
|
@@ -2252,6 +2254,7 @@ function Element$1(props) {
|
|
|
2252
2254
|
field: field
|
|
2253
2255
|
}), jsxRuntime.jsx(ContextPad, {
|
|
2254
2256
|
children: selection.isSelected(field) && field.type !== 'default' ? jsxRuntime.jsx("button", {
|
|
2257
|
+
type: "button",
|
|
2255
2258
|
title: getRemoveButtonTitle(field, formFields),
|
|
2256
2259
|
class: "fjs-context-pad-item",
|
|
2257
2260
|
onClick: onRemove,
|
|
@@ -9724,7 +9727,7 @@ function Disabled(props) {
|
|
|
9724
9727
|
getValue,
|
|
9725
9728
|
id,
|
|
9726
9729
|
label: 'Disabled',
|
|
9727
|
-
tooltip: 'Field cannot be edited by the end-user, and the data is not submitted.',
|
|
9730
|
+
tooltip: 'Field cannot be edited by the end-user, and the data is not submitted. Takes precedence over read only.',
|
|
9728
9731
|
inline: true,
|
|
9729
9732
|
setValue
|
|
9730
9733
|
});
|
|
@@ -11599,15 +11602,20 @@ function ReadonlyEntry(props) {
|
|
|
11599
11602
|
editField,
|
|
11600
11603
|
field
|
|
11601
11604
|
} = props;
|
|
11605
|
+
const {
|
|
11606
|
+
disabled
|
|
11607
|
+
} = field;
|
|
11602
11608
|
const entries = [];
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11609
|
+
if (!disabled) {
|
|
11610
|
+
entries.push({
|
|
11611
|
+
id: 'readonly',
|
|
11612
|
+
component: Readonly,
|
|
11613
|
+
editField: editField,
|
|
11614
|
+
field: field,
|
|
11615
|
+
isEdited: isEdited$6,
|
|
11616
|
+
isDefaultVisible: field => INPUTS.includes(field.type)
|
|
11617
|
+
});
|
|
11618
|
+
}
|
|
11611
11619
|
return entries;
|
|
11612
11620
|
}
|
|
11613
11621
|
function Readonly(props) {
|