@bpmn-io/form-js-editor 1.17.0 → 1.18.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/assets/form-js-editor.css +7 -1
- package/dist/assets/properties-panel.css +7 -1
- package/dist/index.cjs +14 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +15 -14
- package/dist/index.es.js.map +1 -1
- package/package.json +4 -4
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import Ids from 'ids';
|
|
2
2
|
import { FormFieldRegistry as FormFieldRegistry$1, iconsByType, Label as Label$3, IFrame, Text as Text$1, Html, Table, ExpressionField, DocumentPreview, FormFields, sanitizeImageSource, getAncestryList, FormContext, FormRenderContext, FormComponent, getScrollContainer, FieldFactory, FormLayouter, PathRegistry, Importer, FeelExpressionLanguage, OPTIONS_SOURCES, OPTIONS_SOURCES_PATHS, clone, runRecursively, getSchemaVariables, DATETIME_SUBTYPES, DATE_LABEL_PATH, TIME_LABEL_PATH, TEXT_VIEW_DEFAULT_TEXT, TIME_USE24H_PATH, DATETIME_SUBTYPE_PATH, DATETIME_SUBTYPES_LABELS, TIME_INTERVAL_PATH, TIME_SERIALISING_FORMAT_PATH, DATE_DISALLOW_PAST_PATH, TIME_SERIALISING_FORMATS, TIME_SERIALISINGFORMAT_LABELS, getOptionsSource, OPTIONS_SOURCES_DEFAULTS, OPTIONS_SOURCES_LABELS, SECURITY_ATTRIBUTES_DEFINITIONS, createFormContainer, createInjector, MarkdownRendererModule, schemaVersion } from '@bpmn-io/form-js-viewer';
|
|
3
3
|
export { schemaVersion } from '@bpmn-io/form-js-viewer';
|
|
4
|
-
import { isArray, isFunction, isNumber, bind, assign, debounce, forEach, isString, uniqueBy, isObject, get, isDefined, set as set$1, reduce,
|
|
4
|
+
import { isArray, isFunction, isNumber, bind, assign, debounce, forEach, isString, uniqueBy, isObject, get, isDefined, set as set$1, reduce, isNil, without, has } from 'min-dash';
|
|
5
5
|
import classnames from 'classnames';
|
|
6
6
|
import { jsxs, jsx, Fragment as Fragment$1 } from 'preact/jsx-runtime';
|
|
7
7
|
import { useContext, useRef, useEffect, useMemo, useState, useCallback, useLayoutEffect } from 'preact/hooks';
|
|
@@ -5442,22 +5442,16 @@ LaunchIcon.defaultProps = {
|
|
|
5442
5442
|
viewBox: "0 0 32 32"
|
|
5443
5443
|
};
|
|
5444
5444
|
var OpenPopupIcon = function OpenPopupIcon(props) {
|
|
5445
|
-
return
|
|
5445
|
+
return jsx("svg", {
|
|
5446
5446
|
...props,
|
|
5447
|
-
children:
|
|
5448
|
-
|
|
5449
|
-
|
|
5450
|
-
}), jsx("path", {
|
|
5451
|
-
fill: "currentColor",
|
|
5452
|
-
d: "M18 26H4V16h2v-2H4a2.006 2.006 0 0 0-2 2v10a2.006 2.006 0 0 0 2 2h14a2.006 2.006 0 0 0 2-2v-2h-2Z"
|
|
5453
|
-
})]
|
|
5447
|
+
children: jsx("path", {
|
|
5448
|
+
d: "M6 15v-1H2.7L7 9.7 6.3 9 2 13.3V10H1v5zm4-14v1h3.3L9 6.3l.7.7L14 2.7V6h1V1z"
|
|
5449
|
+
})
|
|
5454
5450
|
});
|
|
5455
5451
|
};
|
|
5456
5452
|
OpenPopupIcon.defaultProps = {
|
|
5457
5453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5458
|
-
|
|
5459
|
-
height: "16",
|
|
5460
|
-
viewBox: "0 0 32 32"
|
|
5454
|
+
viewBox: "0 0 16 16"
|
|
5461
5455
|
};
|
|
5462
5456
|
function Header(props) {
|
|
5463
5457
|
const {
|
|
@@ -11455,7 +11449,14 @@ function Value$1(props) {
|
|
|
11455
11449
|
if (error) {
|
|
11456
11450
|
return;
|
|
11457
11451
|
}
|
|
11452
|
+
const {
|
|
11453
|
+
defaultValue
|
|
11454
|
+
} = field;
|
|
11458
11455
|
const values = get(field, ['values']);
|
|
11456
|
+
const previousValue = get(field, ['values', index, 'value']);
|
|
11457
|
+
if (!isNil(defaultValue) && defaultValue === previousValue) {
|
|
11458
|
+
set$1(field, ['defaultValue'], value);
|
|
11459
|
+
}
|
|
11459
11460
|
return editField(field, 'values', set$1(values, [index, 'value'], value));
|
|
11460
11461
|
};
|
|
11461
11462
|
const getValue = () => {
|
|
@@ -12865,7 +12866,7 @@ function DocumentsDataSource(props) {
|
|
|
12865
12866
|
children: "When using Camunda Tasklist UI, additional document reference attributes are automatically handled. Modifying the document reference may affect the document preview functionality."
|
|
12866
12867
|
}), jsxs("p", {
|
|
12867
12868
|
children: ["Learn more in our", ' ', jsx("a", {
|
|
12868
|
-
href: "https://docs.camunda.io/docs/
|
|
12869
|
+
href: "https://docs.camunda.io/docs/components/modeler/forms/form-element-library/forms-element-library-document-preview/",
|
|
12869
12870
|
target: "_blank",
|
|
12870
12871
|
rel: "noopener noreferrer",
|
|
12871
12872
|
children: "documentation"
|
|
@@ -13477,7 +13478,7 @@ function CustomPropertiesGroup(field, editField) {
|
|
|
13477
13478
|
event.stopPropagation();
|
|
13478
13479
|
return editField(field, ['properties'], removeKey(properties, key));
|
|
13479
13480
|
};
|
|
13480
|
-
const id = `property-${index}`;
|
|
13481
|
+
const id = `property-${field.id}-${index}`;
|
|
13481
13482
|
return {
|
|
13482
13483
|
autoFocusEntry: id + '-key',
|
|
13483
13484
|
entries: CustomValueEntry({
|