@bpmn-io/form-js-editor 1.5.0 → 1.6.1
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/assets/form-js-editor-base.css +863 -832
- package/dist/assets/form-js-editor.css +38 -7
- package/dist/index.cjs +1619 -549
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1621 -551
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +36 -4
- package/dist/types/features/dragging/Dragging.d.ts +1 -1
- package/dist/types/features/modeling/behavior/ColumnsSourceBehavior.d.ts +7 -0
- package/dist/types/features/modeling/behavior/OptionsSourceBehavior.d.ts +8 -0
- package/dist/types/features/modeling/behavior/TableDataSourceBehavior.d.ts +7 -0
- package/dist/types/features/modeling/behavior/index.d.ts +6 -2
- package/dist/types/features/modeling/index.d.ts +3 -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} +1 -1
- package/dist/types/features/properties-panel/entries/HeadersSourceSelectEntry.d.ts +9 -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/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/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 +14 -6
- package/dist/types/features/properties-panel/groups/AppearanceGroup.d.ts +24 -3
- package/dist/types/features/properties-panel/groups/GeneralGroup.d.ts +11 -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/repeat-render/EditorRepeatRenderManager.d.ts +17 -0
- package/dist/types/features/repeat-render/index.d.ts +7 -0
- package/dist/types/render/components/editor-form-fields/EditorTable.d.ts +10 -0
- package/dist/types/render/components/editor-form-fields/index.d.ts +2 -1
- package/dist/types/types.d.ts +28 -28
- package/package.json +3 -3
- package/dist/types/features/modeling/behavior/ValuesSourceBehavior.d.ts +0 -8
- package/dist/types/features/properties-panel/entries/ValuesExpressionEntry.d.ts +0 -9
- package/dist/types/features/properties-panel/groups/ValuesGroups.d.ts +0 -1
|
@@ -50,8 +50,15 @@ export default class FormEditor {
|
|
|
50
50
|
* @type {State}
|
|
51
51
|
*/
|
|
52
52
|
private _state;
|
|
53
|
-
get:
|
|
54
|
-
|
|
53
|
+
get: {
|
|
54
|
+
<T>(name: string): T;
|
|
55
|
+
<T_1>(name: string, strict: true): T_1;
|
|
56
|
+
<T_2>(name: string, strict: boolean): T_2;
|
|
57
|
+
};
|
|
58
|
+
invoke: {
|
|
59
|
+
<T_3>(func: import("didi").FactoryFunction<T_3>, context?: unknown, locals?: import("didi").LocalsMap): T_3;
|
|
60
|
+
<T_4>(func: import("didi").ArrayFunc<T_4>, context?: unknown, locals?: import("didi").LocalsMap): T_4;
|
|
61
|
+
};
|
|
55
62
|
clear(): void;
|
|
56
63
|
destroy(): void;
|
|
57
64
|
/**
|
|
@@ -122,7 +129,29 @@ export default class FormEditor {
|
|
|
122
129
|
keyBehavior: (string | typeof import("./features/modeling/behavior/KeyBehavior").default)[];
|
|
123
130
|
pathBehavior: (string | typeof import("./features/modeling/behavior/PathBehavior").default)[];
|
|
124
131
|
validateBehavior: (string | typeof import("./features/modeling/behavior/ValidateBehavior").default)[];
|
|
125
|
-
|
|
132
|
+
optionsSourceBehavior: (string | typeof import("./features/modeling/behavior/OptionsSourceBehavior").default)[];
|
|
133
|
+
columnsSourceBehavior: (string | typeof import("./features/modeling/behavior/ColumnsSourceBehavior").ColumnsSourceBehavior)[];
|
|
134
|
+
/**
|
|
135
|
+
* @typedef { import('./types').Injector } Injector
|
|
136
|
+
* @typedef { import('./types').Module } Module
|
|
137
|
+
* @typedef { import('./types').Schema } Schema
|
|
138
|
+
*
|
|
139
|
+
* @typedef { import('./types').FormEditorOptions } FormEditorOptions
|
|
140
|
+
* @typedef { import('./types').FormEditorProperties } FormEditorProperties
|
|
141
|
+
*
|
|
142
|
+
* @typedef { {
|
|
143
|
+
* properties: FormEditorProperties,
|
|
144
|
+
* schema: Schema
|
|
145
|
+
* } } State
|
|
146
|
+
*
|
|
147
|
+
* @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
|
|
148
|
+
* @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
|
|
149
|
+
* @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
|
|
150
|
+
*/
|
|
151
|
+
/**
|
|
152
|
+
* The form editor.
|
|
153
|
+
*/
|
|
154
|
+
tableDataSourceBehavior: (string | typeof import("./features/modeling/behavior/TableDataSourceBehavior").TableDataSourceBehavior)[];
|
|
126
155
|
})[];
|
|
127
156
|
__init__: string[];
|
|
128
157
|
formLayoutUpdater: (string | typeof import("./features/modeling/FormLayoutUpdater").default)[];
|
|
@@ -145,7 +174,7 @@ export default class FormEditor {
|
|
|
145
174
|
palette: (string | typeof import("./features/palette/PaletteModule").default)[];
|
|
146
175
|
} | {
|
|
147
176
|
__init__: string[];
|
|
148
|
-
expressionLanguage: (string | typeof import("@bpmn-io/form-js-viewer/dist/types/features/
|
|
177
|
+
expressionLanguage: (string | typeof import("@bpmn-io/form-js-viewer/dist/types/features/expressionLanguage/FeelExpressionLanguage").default)[];
|
|
149
178
|
templating: (string | typeof import("./features/expression-language/EditorTemplating").default)[];
|
|
150
179
|
} | typeof MarkdownModule | {
|
|
151
180
|
__depends__: any[];
|
|
@@ -155,6 +184,9 @@ export default class FormEditor {
|
|
|
155
184
|
} | {
|
|
156
185
|
__init__: string[];
|
|
157
186
|
renderInjector: (string | typeof import("./features/render-injection/RenderInjector").default)[];
|
|
187
|
+
} | {
|
|
188
|
+
__init__: string[];
|
|
189
|
+
repeatRenderManager: (string | typeof import("./features/repeat-render").EditorRepeatRenderManager)[];
|
|
158
190
|
})[];
|
|
159
191
|
/**
|
|
160
192
|
* @internal
|
|
@@ -29,7 +29,7 @@ declare class Dragging {
|
|
|
29
29
|
_modeling: import("../modeling/Modeling").default;
|
|
30
30
|
_pathRegistry: import("@bpmn-io/form-js-viewer/dist/types/core/PathRegistry").default;
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* Calculates position in form schema given the dropped place.
|
|
33
33
|
*
|
|
34
34
|
* @param { FormRow } targetRow
|
|
35
35
|
* @param { any } targetFormField
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare class OptionsSourceBehavior extends CommandInterceptor {
|
|
2
|
+
constructor(eventBus: any);
|
|
3
|
+
}
|
|
4
|
+
declare namespace OptionsSourceBehavior {
|
|
5
|
+
let $inject: string[];
|
|
6
|
+
}
|
|
7
|
+
export default OptionsSourceBehavior;
|
|
8
|
+
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -4,11 +4,15 @@ declare namespace _default {
|
|
|
4
4
|
let keyBehavior: (string | typeof KeyBehavior)[];
|
|
5
5
|
let pathBehavior: (string | typeof PathBehavior)[];
|
|
6
6
|
let validateBehavior: (string | typeof ValidateBehavior)[];
|
|
7
|
-
let
|
|
7
|
+
let optionsSourceBehavior: (string | typeof OptionsSourceBehavior)[];
|
|
8
|
+
let columnsSourceBehavior: (string | typeof ColumnsSourceBehavior)[];
|
|
9
|
+
let tableDataSourceBehavior: (string | typeof TableDataSourceBehavior)[];
|
|
8
10
|
}
|
|
9
11
|
export default _default;
|
|
10
12
|
import IdBehavior from './IdBehavior';
|
|
11
13
|
import KeyBehavior from './KeyBehavior';
|
|
12
14
|
import PathBehavior from './PathBehavior';
|
|
13
15
|
import ValidateBehavior from './ValidateBehavior';
|
|
14
|
-
import
|
|
16
|
+
import OptionsSourceBehavior from './OptionsSourceBehavior';
|
|
17
|
+
import { ColumnsSourceBehavior } from './ColumnsSourceBehavior';
|
|
18
|
+
import { TableDataSourceBehavior } from './TableDataSourceBehavior';
|
|
@@ -5,7 +5,9 @@ declare namespace _default {
|
|
|
5
5
|
keyBehavior: (string | typeof import("./behavior/KeyBehavior").default)[];
|
|
6
6
|
pathBehavior: (string | typeof import("./behavior/PathBehavior").default)[];
|
|
7
7
|
validateBehavior: (string | typeof import("./behavior/ValidateBehavior").default)[];
|
|
8
|
-
|
|
8
|
+
optionsSourceBehavior: (string | typeof import("./behavior/OptionsSourceBehavior").default)[];
|
|
9
|
+
columnsSourceBehavior: (string | typeof import("./behavior/ColumnsSourceBehavior").ColumnsSourceBehavior)[];
|
|
10
|
+
tableDataSourceBehavior: (string | typeof import("./behavior/TableDataSourceBehavior").TableDataSourceBehavior)[];
|
|
9
11
|
})[];
|
|
10
12
|
let __init__: string[];
|
|
11
13
|
let formLayoutUpdater: (string | typeof FormLayoutUpdater)[];
|
|
@@ -5,8 +5,16 @@ export function countDecimals(number: any): any;
|
|
|
5
5
|
export function isValidNumber(value: any): boolean;
|
|
6
6
|
export function stopPropagation(listener: any): (event: any) => void;
|
|
7
7
|
export function textToLabel(text: any): string;
|
|
8
|
-
|
|
8
|
+
/**
|
|
9
|
+
* @param {string} path
|
|
10
|
+
*/
|
|
11
|
+
export function isValidDotPath(path: string): boolean;
|
|
9
12
|
export function hasEntryConfigured(formFieldDefinition: any, entryId: any): any;
|
|
10
|
-
export function
|
|
13
|
+
export function hasOptionsGroupsConfigured(formFieldDefinition: any): any;
|
|
14
|
+
/**
|
|
15
|
+
* @param {string} path
|
|
16
|
+
*/
|
|
17
|
+
export function hasIntegerPathSegment(path: string): boolean;
|
|
18
|
+
export const LABELED_NON_INPUTS: string[];
|
|
11
19
|
export const INPUTS: string[];
|
|
12
|
-
export const
|
|
20
|
+
export const OPTIONS_INPUTS: string[];
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export default function RepeatableEntry(props: any): ({
|
|
2
|
+
id: any;
|
|
3
|
+
label: any;
|
|
4
|
+
path: any;
|
|
5
|
+
field: any;
|
|
6
|
+
editField: any;
|
|
7
|
+
description: any;
|
|
8
|
+
component: (props: any) => any;
|
|
9
|
+
isEdited: any;
|
|
10
|
+
isDefaultVisible: any;
|
|
11
|
+
getValue: any;
|
|
12
|
+
setValue: any;
|
|
13
|
+
} | {
|
|
14
|
+
id: any;
|
|
15
|
+
label: any;
|
|
16
|
+
path: any;
|
|
17
|
+
field: any;
|
|
18
|
+
editField: any;
|
|
19
|
+
min: any;
|
|
20
|
+
max: any;
|
|
21
|
+
defaultValue: any;
|
|
22
|
+
component: (props: any) => any;
|
|
23
|
+
isEdited: any;
|
|
24
|
+
})[];
|
|
@@ -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,7 +7,7 @@ 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
12
|
export { default as IFrameHeightEntry } from "./IFrameHeightEntry";
|
|
13
13
|
export { default as IFrameUrlEntry } from "./IFrameUrlEntry";
|
|
@@ -22,10 +22,18 @@ export { default as DateTimeSerializationEntry } from "./DateTimeSerializationEn
|
|
|
22
22
|
export { default as SelectEntries } from "./SelectEntries";
|
|
23
23
|
export { default as ValueEntry } from "./ValueEntry";
|
|
24
24
|
export { default as CustomValueEntry } from "./CustomValueEntry";
|
|
25
|
-
export { default as
|
|
26
|
-
export { default as
|
|
27
|
-
export { default as
|
|
25
|
+
export { default as OptionsSourceSelectEntry } from "./OptionsSourceSelectEntry";
|
|
26
|
+
export { default as InputKeyOptionsSourceEntry } from "./InputKeyOptionsSourceEntry";
|
|
27
|
+
export { default as StaticOptionsSourceEntry } from "./StaticOptionsSourceEntry";
|
|
28
28
|
export { default as AdornerEntry } from "./AdornerEntry";
|
|
29
29
|
export { default as ReadonlyEntry } from "./ReadonlyEntry";
|
|
30
|
-
export {
|
|
31
|
-
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
|
};
|
|
@@ -19,5 +19,16 @@ export default function GeneralGroup(field: any, editField: any, getService: any
|
|
|
19
19
|
isDefaultVisible: any;
|
|
20
20
|
getValue: any;
|
|
21
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;
|
|
22
33
|
})[];
|
|
23
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";
|
|
@@ -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';
|
|
@@ -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,3 +1,4 @@
|
|
|
1
|
-
export const editorFormFields: (typeof EditorIFrame | typeof EditorText)[];
|
|
1
|
+
export const editorFormFields: (typeof EditorIFrame | typeof EditorText | typeof EditorTable)[];
|
|
2
2
|
import EditorIFrame from './EditorIFrame';
|
|
3
3
|
import EditorText from './EditorText';
|
|
4
|
+
import EditorTable from './EditorTable';
|
package/dist/types/types.d.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { Injector } from 'didi';
|
|
2
|
-
|
|
3
|
-
export type Module = any;
|
|
4
|
-
export type Schema = any;
|
|
5
|
-
|
|
6
|
-
export interface FormEditorProperties {
|
|
7
|
-
[x: string]: any
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface FormEditorOptions {
|
|
11
|
-
additionalModules?: Module[];
|
|
12
|
-
container?: Element | null | string;
|
|
13
|
-
exporter?: {
|
|
14
|
-
name: string,
|
|
15
|
-
version: string
|
|
16
|
-
};
|
|
17
|
-
injector?: Injector;
|
|
18
|
-
modules?: Module[];
|
|
19
|
-
properties?: FormEditorProperties;
|
|
20
|
-
[x:string]: any;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export interface CreateFormEditorOptions extends FormEditorOptions {
|
|
24
|
-
schema?: Schema
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export {
|
|
28
|
-
Injector
|
|
1
|
+
import { Injector } from 'didi';
|
|
2
|
+
|
|
3
|
+
export type Module = any;
|
|
4
|
+
export type Schema = any;
|
|
5
|
+
|
|
6
|
+
export interface FormEditorProperties {
|
|
7
|
+
[x: string]: any
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface FormEditorOptions {
|
|
11
|
+
additionalModules?: Module[];
|
|
12
|
+
container?: Element | null | string;
|
|
13
|
+
exporter?: {
|
|
14
|
+
name: string,
|
|
15
|
+
version: string
|
|
16
|
+
};
|
|
17
|
+
injector?: Injector;
|
|
18
|
+
modules?: Module[];
|
|
19
|
+
properties?: FormEditorProperties;
|
|
20
|
+
[x:string]: any;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface CreateFormEditorOptions extends FormEditorOptions {
|
|
24
|
+
schema?: Schema
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
Injector
|
|
29
29
|
};
|
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.1",
|
|
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.1",
|
|
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": "c59b08af1e6ca1c2259db942686d0b2151a4a64b"
|
|
66
66
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare class ValuesSourceBehavior extends CommandInterceptor {
|
|
2
|
-
constructor(eventBus: any);
|
|
3
|
-
}
|
|
4
|
-
declare namespace ValuesSourceBehavior {
|
|
5
|
-
let $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[];
|