@bpmn-io/form-js-editor 1.7.0 → 1.7.2
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/LICENSE +22 -22
- package/README.md +152 -152
- package/dist/index.cjs +21 -15
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +21 -15
- package/dist/index.es.js.map +1 -1
- package/dist/types/types.d.ts +28 -28
- package/package.json +3 -3
package/dist/index.es.js
CHANGED
|
@@ -1390,6 +1390,7 @@ function PaletteEntry(props) {
|
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
1392
|
return jsxs("button", {
|
|
1393
|
+
type: "button",
|
|
1393
1394
|
class: "fjs-palette-field fjs-drag-copy fjs-no-drop",
|
|
1394
1395
|
"data-field-type": type,
|
|
1395
1396
|
title: `Create ${getIndefiniteArticle(type)} ${label} element`,
|
|
@@ -1482,6 +1483,7 @@ function Palette(props) {
|
|
|
1482
1483
|
value: searchTerm,
|
|
1483
1484
|
onInput: handleInput
|
|
1484
1485
|
}), searchTerm && jsx("button", {
|
|
1486
|
+
type: "button",
|
|
1485
1487
|
title: "Clear content",
|
|
1486
1488
|
class: "fjs-palette-search-clear",
|
|
1487
1489
|
onClick: handleClear,
|
|
@@ -2232,6 +2234,7 @@ function Element$1(props) {
|
|
|
2232
2234
|
field: field
|
|
2233
2235
|
}), jsx(ContextPad, {
|
|
2234
2236
|
children: selection.isSelected(field) && field.type !== 'default' ? jsx("button", {
|
|
2237
|
+
type: "button",
|
|
2235
2238
|
title: getRemoveButtonTitle(field, formFields),
|
|
2236
2239
|
class: "fjs-context-pad-item",
|
|
2237
2240
|
onClick: onRemove,
|
|
@@ -9704,7 +9707,7 @@ function Disabled(props) {
|
|
|
9704
9707
|
getValue,
|
|
9705
9708
|
id,
|
|
9706
9709
|
label: 'Disabled',
|
|
9707
|
-
tooltip: 'Field cannot be edited by the end-user, and the data is not submitted.',
|
|
9710
|
+
tooltip: 'Field cannot be edited by the end-user, and the data is not submitted. Takes precedence over read only.',
|
|
9708
9711
|
inline: true,
|
|
9709
9712
|
setValue
|
|
9710
9713
|
});
|
|
@@ -10343,11 +10346,10 @@ function Height(props) {
|
|
|
10343
10346
|
description,
|
|
10344
10347
|
editField,
|
|
10345
10348
|
field,
|
|
10346
|
-
id
|
|
10347
|
-
defaultValue = 60 // default value for spacer
|
|
10349
|
+
id
|
|
10348
10350
|
} = props;
|
|
10349
10351
|
const debounce = useService('debounce');
|
|
10350
|
-
const getValue = e => get(field, ['height'],
|
|
10352
|
+
const getValue = e => get(field, ['height'], null);
|
|
10351
10353
|
const setValue = (value, error) => {
|
|
10352
10354
|
if (error) {
|
|
10353
10355
|
return;
|
|
@@ -10374,7 +10376,7 @@ function Height(props) {
|
|
|
10374
10376
|
*/
|
|
10375
10377
|
const validate$7 = value => {
|
|
10376
10378
|
if (typeof value !== 'number') {
|
|
10377
|
-
return
|
|
10379
|
+
return 'A number is required.';
|
|
10378
10380
|
}
|
|
10379
10381
|
if (!Number.isInteger(value)) {
|
|
10380
10382
|
return 'Should be an integer.';
|
|
@@ -10387,7 +10389,6 @@ const validate$7 = value => {
|
|
|
10387
10389
|
function IFrameHeightEntry(props) {
|
|
10388
10390
|
return [...HeightEntry({
|
|
10389
10391
|
...props,
|
|
10390
|
-
defaultValue: 300,
|
|
10391
10392
|
description: 'Height of the container in pixels.',
|
|
10392
10393
|
isDefaultVisible: field => field.type === 'iframe'
|
|
10393
10394
|
})];
|
|
@@ -10624,7 +10625,7 @@ function Content(props) {
|
|
|
10624
10625
|
|
|
10625
10626
|
const description = jsxs(Fragment$1, {
|
|
10626
10627
|
children: ["Supports HTML, styling, and templating. Styles are automatically scoped to the HTML component. ", jsx("a", {
|
|
10627
|
-
href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-html/",
|
|
10628
|
+
href: "https://docs.camunda.io/docs/next/components/modeler/forms/form-element-library/forms-element-library-html/",
|
|
10628
10629
|
target: "_blank",
|
|
10629
10630
|
children: "Learn more"
|
|
10630
10631
|
})]
|
|
@@ -11581,15 +11582,20 @@ function ReadonlyEntry(props) {
|
|
|
11581
11582
|
editField,
|
|
11582
11583
|
field
|
|
11583
11584
|
} = props;
|
|
11585
|
+
const {
|
|
11586
|
+
disabled
|
|
11587
|
+
} = field;
|
|
11584
11588
|
const entries = [];
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11589
|
+
if (!disabled) {
|
|
11590
|
+
entries.push({
|
|
11591
|
+
id: 'readonly',
|
|
11592
|
+
component: Readonly,
|
|
11593
|
+
editField: editField,
|
|
11594
|
+
field: field,
|
|
11595
|
+
isEdited: isEdited$6,
|
|
11596
|
+
isDefaultVisible: field => INPUTS.includes(field.type)
|
|
11597
|
+
});
|
|
11598
|
+
}
|
|
11593
11599
|
return entries;
|
|
11594
11600
|
}
|
|
11595
11601
|
function Readonly(props) {
|