@bpmn-io/form-js-editor 1.5.0-alpha.0 → 1.6.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-base.css +44 -13
- package/dist/assets/form-js-editor.css +44 -13
- package/dist/index.cjs +1550 -334
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1552 -336
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +16 -4
- package/dist/types/core/Debounce.d.ts +1 -1
- package/dist/types/core/FormLayoutValidator.d.ts +2 -2
- package/dist/types/core/index.d.ts +9 -9
- package/dist/types/features/dragging/Dragging.d.ts +3 -3
- package/dist/types/features/dragging/index.d.ts +2 -2
- package/dist/types/features/editor-actions/FormEditorActions.d.ts +1 -1
- package/dist/types/features/editor-actions/index.d.ts +2 -2
- package/dist/types/features/expression-language/EditorTemplating.d.ts +1 -1
- package/dist/types/features/expression-language/index.d.ts +3 -3
- package/dist/types/features/keyboard/FormEditorKeyboardBindings.d.ts +1 -1
- package/dist/types/features/keyboard/index.d.ts +3 -3
- package/dist/types/features/modeling/FormLayoutUpdater.d.ts +1 -1
- package/dist/types/features/modeling/Modeling.d.ts +1 -1
- package/dist/types/features/modeling/behavior/ColumnsSourceBehavior.d.ts +7 -0
- package/dist/types/features/modeling/behavior/IdBehavior.d.ts +1 -1
- package/dist/types/features/modeling/behavior/KeyBehavior.d.ts +1 -1
- package/dist/types/features/modeling/behavior/OptionsSourceBehavior.d.ts +8 -0
- package/dist/types/features/modeling/behavior/PathBehavior.d.ts +1 -1
- package/dist/types/features/modeling/behavior/TableDataSourceBehavior.d.ts +7 -0
- package/dist/types/features/modeling/behavior/ValidateBehavior.d.ts +1 -1
- package/dist/types/features/modeling/behavior/index.d.ts +11 -7
- package/dist/types/features/modeling/cmd/AddFormFieldHandler.d.ts +1 -1
- package/dist/types/features/modeling/cmd/EditFormFieldHandler.d.ts +1 -1
- package/dist/types/features/modeling/cmd/MoveFormFieldHandler.d.ts +1 -1
- package/dist/types/features/modeling/cmd/RemoveFormFieldHandler.d.ts +1 -1
- package/dist/types/features/modeling/cmd/UpdateIdClaimHandler.d.ts +1 -1
- package/dist/types/features/modeling/cmd/UpdateKeyClaimHandler.d.ts +1 -1
- package/dist/types/features/modeling/cmd/UpdatePathClaimHandler.d.ts +1 -1
- package/dist/types/features/modeling/index.d.ts +7 -5
- package/dist/types/features/palette/PaletteModule.d.ts +1 -1
- package/dist/types/features/palette/index.d.ts +1 -1
- package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +1 -1
- package/dist/types/features/properties-panel/PropertiesProvider.d.ts +1 -1
- package/dist/types/features/properties-panel/Util.d.ts +11 -3
- package/dist/types/features/properties-panel/entries/ColumnEntry.d.ts +11 -0
- package/dist/types/features/properties-panel/entries/ColumnsExpressionEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/ConditionEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/{GroupEntries.d.ts → GroupAppearanceEntry.d.ts} +3 -1
- package/dist/types/features/properties-panel/entries/HeadersSourceSelectEntry.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/HeightEntry.d.ts +12 -0
- package/dist/types/features/properties-panel/entries/IFrameHeightEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/IFrameUrlEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/{InputKeyValuesSourceEntry.d.ts → InputKeyOptionsSourceEntry.d.ts} +1 -1
- package/dist/types/features/properties-panel/entries/LayouterAppearanceEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/OptionsExpressionEntry.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/{ValuesSourceSelectEntry.d.ts → OptionsSourceSelectEntry.d.ts} +1 -1
- package/dist/types/features/properties-panel/entries/PaginationEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/RepeatableEntry.d.ts +24 -0
- package/dist/types/features/properties-panel/entries/RowCountEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/SelectEntries.d.ts +2 -0
- package/dist/types/features/properties-panel/entries/StaticColumnsSourceEntry.d.ts +5 -0
- package/dist/types/features/properties-panel/entries/{StaticValuesSourceEntry.d.ts → StaticOptionsSourceEntry.d.ts} +1 -1
- package/dist/types/features/properties-panel/entries/TableDataSourceEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/factories/index.d.ts +3 -0
- package/dist/types/features/properties-panel/entries/factories/simpleBoolEntryFactory.d.ts +2 -0
- package/dist/types/features/properties-panel/entries/factories/simpleRangeIntegerEntryFactory.d.ts +12 -0
- package/dist/types/features/properties-panel/entries/factories/simpleSelectEntryFactory.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/factories/zeroPositiveIntegerEntryFactory.d.ts +9 -0
- package/dist/types/features/properties-panel/entries/index.d.ts +17 -7
- package/dist/types/features/properties-panel/groups/AppearanceGroup.d.ts +24 -3
- package/dist/types/features/properties-panel/groups/GeneralGroup.d.ts +13 -0
- package/dist/types/features/properties-panel/groups/OptionsGroups.d.ts +1 -0
- package/dist/types/features/properties-panel/groups/TableHeaderGroups.d.ts +1 -0
- package/dist/types/features/properties-panel/groups/index.d.ts +2 -1
- package/dist/types/features/properties-panel/index.d.ts +4 -4
- package/dist/types/features/render-injection/RenderInjector.d.ts +1 -1
- package/dist/types/features/render-injection/index.d.ts +2 -2
- package/dist/types/features/repeat-render/EditorRepeatRenderManager.d.ts +17 -0
- package/dist/types/features/repeat-render/index.d.ts +7 -0
- package/dist/types/features/selection/Selection.d.ts +1 -1
- package/dist/types/features/selection/SelectionBehavior.d.ts +1 -1
- package/dist/types/features/selection/index.d.ts +3 -3
- package/dist/types/render/Renderer.d.ts +1 -1
- package/dist/types/render/components/ModularSection.d.ts +1 -1
- package/dist/types/render/components/editor-form-fields/EditorIFrame.d.ts +6 -0
- package/dist/types/render/components/editor-form-fields/EditorTable.d.ts +10 -0
- package/dist/types/render/components/editor-form-fields/EditorText.d.ts +1 -1
- package/dist/types/render/components/editor-form-fields/index.d.ts +3 -1
- package/dist/types/render/index.d.ts +3 -3
- package/package.json +3 -3
- package/dist/types/features/modeling/behavior/ValuesSourceBehavior.d.ts +0 -8
- package/dist/types/features/properties-panel/entries/SpacerEntry.d.ts +0 -10
- package/dist/types/features/properties-panel/entries/ValuesExpressionEntry.d.ts +0 -9
- package/dist/types/features/properties-panel/groups/ValuesGroups.d.ts +0 -1
|
@@ -1,2 +1,5 @@
|
|
|
1
1
|
export { default as simpleStringEntryFactory } from "./simpleStringEntryFactory";
|
|
2
2
|
export { default as simpleBoolEntryFactory } from "./simpleBoolEntryFactory";
|
|
3
|
+
export { default as zeroPositiveIntegerEntryFactory } from "./zeroPositiveIntegerEntryFactory";
|
|
4
|
+
export { default as simpleSelectEntryFactory } from "./simpleSelectEntryFactory";
|
|
5
|
+
export { simpleRangeIntegerEntryFactory } from "./simpleRangeIntegerEntryFactory";
|
|
@@ -7,11 +7,13 @@ export { default as DisabledEntry } from "./DisabledEntry";
|
|
|
7
7
|
export { default as IdEntry } from "./IdEntry";
|
|
8
8
|
export { default as KeyEntry } from "./KeyEntry";
|
|
9
9
|
export { default as PathEntry } from "./PathEntry";
|
|
10
|
-
export { default as
|
|
10
|
+
export { default as GroupAppearanceEntry } from "./GroupAppearanceEntry";
|
|
11
11
|
export { default as LabelEntry } from "./LabelEntry";
|
|
12
|
+
export { default as IFrameHeightEntry } from "./IFrameHeightEntry";
|
|
13
|
+
export { default as IFrameUrlEntry } from "./IFrameUrlEntry";
|
|
12
14
|
export { default as ImageSourceEntry } from "./ImageSourceEntry";
|
|
13
15
|
export { default as TextEntry } from "./TextEntry";
|
|
14
|
-
export { default as
|
|
16
|
+
export { default as HeightEntry } from "./HeightEntry";
|
|
15
17
|
export { default as NumberEntries } from "./NumberEntries";
|
|
16
18
|
export { default as NumberSerializationEntry } from "./NumberSerializationEntry";
|
|
17
19
|
export { default as DateTimeEntry } from "./DateTimeEntry";
|
|
@@ -20,10 +22,18 @@ export { default as DateTimeSerializationEntry } from "./DateTimeSerializationEn
|
|
|
20
22
|
export { default as SelectEntries } from "./SelectEntries";
|
|
21
23
|
export { default as ValueEntry } from "./ValueEntry";
|
|
22
24
|
export { default as CustomValueEntry } from "./CustomValueEntry";
|
|
23
|
-
export { default as
|
|
24
|
-
export { default as
|
|
25
|
-
export { default as
|
|
25
|
+
export { default as OptionsSourceSelectEntry } from "./OptionsSourceSelectEntry";
|
|
26
|
+
export { default as InputKeyOptionsSourceEntry } from "./InputKeyOptionsSourceEntry";
|
|
27
|
+
export { default as StaticOptionsSourceEntry } from "./StaticOptionsSourceEntry";
|
|
26
28
|
export { default as AdornerEntry } from "./AdornerEntry";
|
|
27
29
|
export { default as ReadonlyEntry } from "./ReadonlyEntry";
|
|
28
|
-
export {
|
|
29
|
-
export { default as
|
|
30
|
+
export { default as LayouterAppearanceEntry } from "./LayouterAppearanceEntry";
|
|
31
|
+
export { default as RepeatableEntry } from "./RepeatableEntry";
|
|
32
|
+
export { default as ConditionEntry } from "./ConditionEntry";
|
|
33
|
+
export { default as OptionsExpressionEntry } from "./OptionsExpressionEntry";
|
|
34
|
+
export { TableDataSourceEntry } from "./TableDataSourceEntry";
|
|
35
|
+
export { PaginationEntry } from "./PaginationEntry";
|
|
36
|
+
export { RowCountEntry } from "./RowCountEntry";
|
|
37
|
+
export { HeadersSourceSelectEntry } from "./HeadersSourceSelectEntry";
|
|
38
|
+
export { ColumnsExpressionEntry } from "./ColumnsExpressionEntry";
|
|
39
|
+
export { StaticColumnsSourceEntry } from "./StaticColumnsSourceEntry";
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
export default function AppearanceGroup(field: any, editField: any): {
|
|
1
|
+
export default function AppearanceGroup(field: any, editField: any, getService: any): {
|
|
2
2
|
id: string;
|
|
3
3
|
label: string;
|
|
4
|
-
entries: {
|
|
4
|
+
entries: ({
|
|
5
|
+
id: any;
|
|
6
|
+
label: any;
|
|
7
|
+
path: any;
|
|
8
|
+
field: any;
|
|
9
|
+
editField: any;
|
|
10
|
+
description: any;
|
|
11
|
+
component: (props: any) => any;
|
|
12
|
+
isEdited: any;
|
|
13
|
+
isDefaultVisible: any;
|
|
14
|
+
getValue: any;
|
|
15
|
+
setValue: any;
|
|
16
|
+
} | {
|
|
17
|
+
id: any;
|
|
18
|
+
label: any;
|
|
19
|
+
path: any;
|
|
20
|
+
field: any;
|
|
21
|
+
editField: any;
|
|
22
|
+
optionsArray: any;
|
|
23
|
+
component: (props: any) => any;
|
|
24
|
+
isEdited: any;
|
|
25
|
+
} | {
|
|
5
26
|
id: string;
|
|
6
27
|
component: (props: any) => any;
|
|
7
28
|
isEdited: any;
|
|
@@ -10,5 +31,5 @@ export default function AppearanceGroup(field: any, editField: any): {
|
|
|
10
31
|
onChange: (key: any) => (value: any) => void;
|
|
11
32
|
getValue: (key: any) => () => any;
|
|
12
33
|
isDefaultVisible: {};
|
|
13
|
-
}[];
|
|
34
|
+
})[];
|
|
14
35
|
};
|
|
@@ -17,5 +17,18 @@ export default function GeneralGroup(field: any, editField: any, getService: any
|
|
|
17
17
|
component: (props: any) => any;
|
|
18
18
|
isEdited: any;
|
|
19
19
|
isDefaultVisible: any;
|
|
20
|
+
getValue: any;
|
|
21
|
+
setValue: any;
|
|
22
|
+
} | {
|
|
23
|
+
id: any;
|
|
24
|
+
label: any;
|
|
25
|
+
path: any;
|
|
26
|
+
field: any;
|
|
27
|
+
editField: any;
|
|
28
|
+
min: any;
|
|
29
|
+
max: any;
|
|
30
|
+
defaultValue: any;
|
|
31
|
+
component: (props: any) => any;
|
|
32
|
+
isEdited: any;
|
|
20
33
|
})[];
|
|
21
34
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function OptionsGroups(field: any, editField: any, getService: any): any[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function TableHeaderGroups(field: any, editField: any): Group[];
|
|
@@ -2,8 +2,9 @@ export { default as GeneralGroup } from "./GeneralGroup";
|
|
|
2
2
|
export { default as SerializationGroup } from "./SerializationGroup";
|
|
3
3
|
export { default as ConstraintsGroup } from "./ConstraintsGroup";
|
|
4
4
|
export { default as ValidationGroup } from "./ValidationGroup";
|
|
5
|
-
export { default as
|
|
5
|
+
export { default as OptionsGroups } from "./OptionsGroups";
|
|
6
6
|
export { default as CustomPropertiesGroup } from "./CustomPropertiesGroup";
|
|
7
7
|
export { default as AppearanceGroup } from "./AppearanceGroup";
|
|
8
8
|
export { default as LayoutGroup } from "./LayoutGroup";
|
|
9
9
|
export { ConditionGroup } from "./ConditionGroup";
|
|
10
|
+
export { TableHeaderGroups } from "./TableHeaderGroups";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
let __depends__: any[];
|
|
3
|
+
let __init__: string[];
|
|
4
|
+
let propertiesPanel: (string | typeof PropertiesPanelModule)[];
|
|
5
|
+
let propertiesProvider: (string | typeof PropertiesProvider)[];
|
|
6
6
|
}
|
|
7
7
|
export default _default;
|
|
8
8
|
import PropertiesPanelModule from './PropertiesPanelRenderer';
|
|
@@ -24,7 +24,7 @@ declare class RenderInjector extends SectionModuleBase {
|
|
|
24
24
|
fetchRenderers(): any[];
|
|
25
25
|
}
|
|
26
26
|
declare namespace RenderInjector {
|
|
27
|
-
|
|
27
|
+
let $inject: string[];
|
|
28
28
|
}
|
|
29
29
|
export default RenderInjector;
|
|
30
30
|
import SectionModuleBase from '../SectionModuleBase';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let renderInjector: (string | typeof RenderInjector)[];
|
|
4
4
|
}
|
|
5
5
|
export default _default;
|
|
6
6
|
import RenderInjector from './RenderInjector';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare class RepeatRenderManager {
|
|
2
|
+
constructor(formFields: any, formFieldRegistry: any);
|
|
3
|
+
_formFields: any;
|
|
4
|
+
_formFieldRegistry: any;
|
|
5
|
+
RepeatFooter(): import("preact").JSX.Element;
|
|
6
|
+
/**
|
|
7
|
+
* Checks whether a field should be repeatable.
|
|
8
|
+
*
|
|
9
|
+
* @param {string} id - The id of the field to check
|
|
10
|
+
* @returns {boolean} - True if repeatable, false otherwise
|
|
11
|
+
*/
|
|
12
|
+
isFieldRepeating(id: string): boolean;
|
|
13
|
+
}
|
|
14
|
+
declare namespace RepeatRenderManager {
|
|
15
|
+
let $inject: string[];
|
|
16
|
+
}
|
|
17
|
+
export default RepeatRenderManager;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let repeatRenderManager: (string | typeof EditorRepeatRenderManager)[];
|
|
4
|
+
}
|
|
5
|
+
export default _default;
|
|
6
|
+
export { EditorRepeatRenderManager };
|
|
7
|
+
import EditorRepeatRenderManager from './EditorRepeatRenderManager';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let selection: (string | typeof Selection)[];
|
|
4
|
+
let selectionBehavior: (string | typeof SelectionBehavior)[];
|
|
5
5
|
}
|
|
6
6
|
export default _default;
|
|
7
7
|
import Selection from './Selection';
|
|
@@ -14,7 +14,7 @@ declare class Renderer {
|
|
|
14
14
|
constructor(renderConfig: any, eventBus: any, formEditor: any, injector: any);
|
|
15
15
|
}
|
|
16
16
|
declare namespace Renderer {
|
|
17
|
-
|
|
17
|
+
let $inject: string[];
|
|
18
18
|
}
|
|
19
19
|
export default Renderer;
|
|
20
20
|
export type RenderConfig = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare function _default(props: any): import("preact").
|
|
1
|
+
declare function _default(props: any): import("preact/compat").JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @param {import('@bpmn-io/form-js-viewer/src/render/components/form-fields/Table').Props} props
|
|
3
|
+
* @returns {import("preact").JSX.Element}
|
|
4
|
+
*/
|
|
5
|
+
declare function EditorTable(props: any): import("preact").JSX.Element;
|
|
6
|
+
declare namespace EditorTable {
|
|
7
|
+
let config: typeof Table.config;
|
|
8
|
+
}
|
|
9
|
+
export default EditorTable;
|
|
10
|
+
import { Table } from '@bpmn-io/form-js-viewer';
|
|
@@ -1,2 +1,4 @@
|
|
|
1
|
-
export const editorFormFields: (typeof EditorText)[];
|
|
1
|
+
export const editorFormFields: (typeof EditorIFrame | typeof EditorText | typeof EditorTable)[];
|
|
2
|
+
import EditorIFrame from './EditorIFrame';
|
|
2
3
|
import EditorText from './EditorText';
|
|
4
|
+
import EditorTable from './EditorTable';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let formFields: (string | typeof EditorFormFields)[];
|
|
4
|
+
let renderer: (string | typeof Renderer)[];
|
|
5
5
|
}
|
|
6
6
|
export default _default;
|
|
7
7
|
import EditorFormFields from './EditorFormFields';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-editor",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Edit forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@bpmn-io/draggle": "^4.0.0",
|
|
50
|
-
"@bpmn-io/form-js-viewer": "^1.
|
|
50
|
+
"@bpmn-io/form-js-viewer": "^1.6.0",
|
|
51
51
|
"@bpmn-io/properties-panel": "^3.13.0",
|
|
52
52
|
"array-move": "^3.0.1",
|
|
53
53
|
"big.js": "^6.2.1",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "0f868b4c5679af5366998253e7a602f1375754a7"
|
|
66
66
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare class ValuesSourceBehavior extends CommandInterceptor {
|
|
2
|
-
constructor(eventBus: any);
|
|
3
|
-
}
|
|
4
|
-
declare namespace ValuesSourceBehavior {
|
|
5
|
-
const $inject: string[];
|
|
6
|
-
}
|
|
7
|
-
export default ValuesSourceBehavior;
|
|
8
|
-
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function ValuesGroups(field: any, editField: any, getService: any): any[];
|