@bpmn-io/form-js-editor 1.6.4 → 1.7.0-alpha.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 +23 -2
- package/dist/assets/form-js-editor.css +60 -17
- package/dist/assets/properties-panel.css +40 -17
- package/dist/index.cjs +1770 -1432
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1774 -1436
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +29 -29
- package/dist/types/core/Debounce.d.ts +2 -3
- package/dist/types/core/EventBus.d.ts +1 -1
- package/dist/types/core/FormFieldRegistry.d.ts +1 -1
- package/dist/types/core/FormLayoutValidator.d.ts +7 -8
- package/dist/types/core/FormLayouter.d.ts +1 -1
- package/dist/types/core/index.d.ts +8 -9
- package/dist/types/features/SectionModuleBase.d.ts +1 -1
- package/dist/types/features/dragging/Dragging.d.ts +13 -14
- package/dist/types/features/dragging/index.d.ts +2 -3
- package/dist/types/features/editor-actions/FormEditorActions.d.ts +2 -3
- package/dist/types/features/editor-actions/index.d.ts +2 -3
- package/dist/types/features/expression-language/EditorTemplating.d.ts +2 -3
- package/dist/types/features/expression-language/index.d.ts +2 -3
- package/dist/types/features/keyboard/FormEditorKeyboardBindings.d.ts +2 -3
- package/dist/types/features/keyboard/index.d.ts +2 -3
- package/dist/types/features/modeling/FormLayoutUpdater.d.ts +2 -3
- package/dist/types/features/modeling/Modeling.d.ts +9 -10
- package/dist/types/features/modeling/behavior/IdBehavior.d.ts +2 -3
- package/dist/types/features/modeling/behavior/KeyBehavior.d.ts +2 -3
- package/dist/types/features/modeling/behavior/OptionsSourceBehavior.d.ts +2 -3
- package/dist/types/features/modeling/behavior/PathBehavior.d.ts +2 -3
- package/dist/types/features/modeling/behavior/ValidateBehavior.d.ts +2 -3
- package/dist/types/features/modeling/behavior/index.d.ts +6 -7
- package/dist/types/features/modeling/cmd/AddFormFieldHandler.d.ts +7 -8
- package/dist/types/features/modeling/cmd/EditFormFieldHandler.d.ts +7 -8
- package/dist/types/features/modeling/cmd/MoveFormFieldHandler.d.ts +9 -10
- package/dist/types/features/modeling/cmd/RemoveFormFieldHandler.d.ts +7 -8
- package/dist/types/features/modeling/cmd/UpdateIdClaimHandler.d.ts +5 -6
- package/dist/types/features/modeling/cmd/UpdateKeyClaimHandler.d.ts +3 -4
- package/dist/types/features/modeling/cmd/UpdatePathClaimHandler.d.ts +3 -4
- package/dist/types/features/modeling/index.d.ts +8 -9
- package/dist/types/features/palette/PaletteRenderer.d.ts +7 -0
- package/dist/types/features/palette/components/Palette.d.ts +2 -2
- package/dist/types/features/palette/components/PaletteEntry.d.ts +1 -1
- package/dist/types/features/palette/index.d.ts +3 -4
- package/dist/types/features/properties-panel/PropertiesPanel.d.ts +1 -1
- package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +4 -5
- package/dist/types/features/properties-panel/PropertiesProvider.d.ts +2 -3
- package/dist/types/features/properties-panel/Util.d.ts +6 -1
- package/dist/types/features/properties-panel/components/AutoFocusSelect.d.ts +1 -1
- package/dist/types/features/properties-panel/components/index.d.ts +1 -1
- package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +2 -2
- package/dist/types/features/properties-panel/context/index.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/ActionEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/AdornerEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/AltTextEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/ColumnEntry.d.ts +0 -1
- package/dist/types/features/properties-panel/entries/ColumnsEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/ConditionEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/CustomValueEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/DateTimeConstraintsEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/DateTimeEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/{DateTimeSerializationEntry.d.ts → DateTimeFormatEntry.d.ts} +1 -1
- package/dist/types/features/properties-panel/entries/DefaultValueEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/DescriptionEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/DisabledEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/GroupAppearanceEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/HeightEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/HtmlEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/IFrameHeightEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/IFrameUrlEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/IdEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/ImageSourceEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/InputKeyOptionsSourceEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/KeyEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/LabelEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/LayouterAppearanceEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/NumberEntries.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/NumberSerializationEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/OptionsExpressionEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/OptionsSourceSelectEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/PathEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/ReadonlyEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/RepeatableEntry.d.ts +1 -2
- package/dist/types/features/properties-panel/entries/SelectEntries.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/StaticOptionsSourceEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/TextEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/ValueEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/factories/index.d.ts +4 -4
- package/dist/types/features/properties-panel/entries/factories/simpleBoolEntryFactory.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/factories/simpleRangeIntegerEntryFactory.d.ts +0 -1
- package/dist/types/features/properties-panel/entries/factories/simpleSelectEntryFactory.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/factories/simpleStringEntryFactory.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/factories/zeroPositiveIntegerEntryFactory.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/index.d.ts +34 -33
- package/dist/types/features/properties-panel/groups/AppearanceGroup.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/ConstraintsGroup.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/CustomPropertiesGroup.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/GeneralGroup.d.ts +1 -2
- package/dist/types/features/properties-panel/groups/LayoutGroup.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/OptionsGroups.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/SecurityAttributesGroup.d.ts +20 -0
- package/dist/types/features/properties-panel/groups/SerializationGroup.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/ValidationGroup.d.ts +1 -1
- package/dist/types/features/properties-panel/groups/index.d.ts +9 -8
- package/dist/types/features/properties-panel/hooks/index.d.ts +1 -1
- package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +1 -1
- package/dist/types/features/properties-panel/index.d.ts +4 -5
- package/dist/types/features/render-injection/RenderInjector.d.ts +3 -4
- package/dist/types/features/render-injection/components/InjectedRendersRoot.d.ts +1 -2
- package/dist/types/features/render-injection/index.d.ts +2 -3
- package/dist/types/features/render-injection/slot-fill/Fill.d.ts +1 -2
- package/dist/types/features/render-injection/slot-fill/FillContext.d.ts +1 -2
- package/dist/types/features/render-injection/slot-fill/Slot.d.ts +1 -2
- package/dist/types/features/render-injection/slot-fill/SlotContext.d.ts +1 -2
- package/dist/types/features/render-injection/slot-fill/SlotFillRoot.d.ts +1 -2
- package/dist/types/features/render-injection/slot-fill/index.d.ts +5 -5
- package/dist/types/features/repeat-render/EditorRepeatRenderManager.d.ts +2 -3
- package/dist/types/features/repeat-render/index.d.ts +2 -3
- package/dist/types/features/selection/Selection.d.ts +2 -3
- package/dist/types/features/selection/SelectionBehavior.d.ts +2 -3
- package/dist/types/features/selection/index.d.ts +3 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/render/EditorFormFields.d.ts +1 -1
- package/dist/types/render/Renderer.d.ts +6 -7
- package/dist/types/render/components/FormEditor.d.ts +1 -1
- package/dist/types/render/components/ModularSection.d.ts +1 -2
- package/dist/types/render/components/editor-form-fields/EditorHtml.d.ts +5 -0
- package/dist/types/render/components/editor-form-fields/EditorIFrame.d.ts +2 -3
- package/dist/types/render/components/editor-form-fields/EditorTable.d.ts +2 -3
- package/dist/types/render/components/editor-form-fields/EditorText.d.ts +2 -3
- package/dist/types/render/components/editor-form-fields/index.d.ts +5 -4
- package/dist/types/render/context/DragAndDropContext.d.ts +1 -2
- package/dist/types/render/context/FormEditorContext.d.ts +2 -2
- package/dist/types/render/context/index.d.ts +2 -2
- package/dist/types/render/hooks/index.d.ts +3 -3
- package/dist/types/render/hooks/useDebounce.d.ts +4 -1
- package/dist/types/render/hooks/usePrevious.d.ts +1 -1
- package/dist/types/render/hooks/useService.d.ts +1 -1
- package/dist/types/render/index.d.ts +3 -4
- package/package.json +6 -6
- package/dist/types/features/palette/PaletteModule.d.ts +0 -8
|
@@ -19,7 +19,7 @@ export function exportSchema(schema: any, exporter: any, schemaVersion: any): an
|
|
|
19
19
|
/**
|
|
20
20
|
* The form editor.
|
|
21
21
|
*/
|
|
22
|
-
export
|
|
22
|
+
export class FormEditor {
|
|
23
23
|
/**
|
|
24
24
|
* @constructor
|
|
25
25
|
* @param {FormEditorOptions} options
|
|
@@ -123,51 +123,51 @@ export default class FormEditor {
|
|
|
123
123
|
* @internal
|
|
124
124
|
*/
|
|
125
125
|
_getModules(): ({
|
|
126
|
-
__depends__: (import("didi").ModuleDeclaration | {
|
|
127
|
-
__init__: string[];
|
|
128
|
-
idBehavior: (string | typeof import("./features/modeling/behavior/IdBehavior").default)[];
|
|
129
|
-
keyBehavior: (string | typeof import("./features/modeling/behavior/KeyBehavior").default)[];
|
|
130
|
-
pathBehavior: (string | typeof import("./features/modeling/behavior/PathBehavior").default)[];
|
|
131
|
-
validateBehavior: (string | typeof import("./features/modeling/behavior/ValidateBehavior").default)[];
|
|
132
|
-
optionsSourceBehavior: (string | typeof import("./features/modeling/behavior/OptionsSourceBehavior").default)[];
|
|
133
|
-
columnsSourceBehavior: (string | typeof import("./features/modeling/behavior/ColumnsSourceBehavior").ColumnsSourceBehavior)[];
|
|
134
|
-
tableDataSourceBehavior: (string | typeof import("./features/modeling/behavior/TableDataSourceBehavior").TableDataSourceBehavior)[];
|
|
135
|
-
})[];
|
|
136
|
-
__init__: string[];
|
|
137
|
-
formLayoutUpdater: (string | typeof import("./features/modeling/FormLayoutUpdater").default)[];
|
|
138
|
-
modeling: (string | typeof import("./features/modeling/Modeling").default)[];
|
|
139
|
-
} | {
|
|
140
126
|
__depends__: import("didi").ModuleDeclaration[];
|
|
141
|
-
editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").
|
|
127
|
+
editorActions: (string | typeof import("./features/editor-actions/FormEditorActions").FormEditorActions)[];
|
|
142
128
|
} | {
|
|
143
129
|
__init__: string[];
|
|
144
|
-
|
|
130
|
+
expressionLanguage: (string | typeof import("@bpmn-io/form-js-viewer").FeelExpressionLanguage)[];
|
|
131
|
+
templating: (string | typeof import("./features/expression-language/EditorTemplating").EditorTemplating)[];
|
|
145
132
|
} | {
|
|
146
133
|
__depends__: import("didi").ModuleDeclaration[];
|
|
147
134
|
__init__: string[];
|
|
148
|
-
keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").
|
|
135
|
+
keyboardBindings: (string | typeof import("./features/keyboard/FormEditorKeyboardBindings").FormEditorKeyboardBindings)[];
|
|
149
136
|
} | {
|
|
150
137
|
__init__: string[];
|
|
151
|
-
|
|
152
|
-
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").default)[];
|
|
138
|
+
dragging: (string | typeof import("./features/dragging/Dragging").Dragging)[];
|
|
153
139
|
} | {
|
|
154
|
-
|
|
140
|
+
__depends__: (import("didi").ModuleDeclaration | {
|
|
141
|
+
__init__: string[];
|
|
142
|
+
idBehavior: (string | typeof import("./features/modeling/behavior/IdBehavior").IdBehavior)[];
|
|
143
|
+
keyBehavior: (string | typeof import("./features/modeling/behavior/KeyBehavior").KeyBehavior)[];
|
|
144
|
+
pathBehavior: (string | typeof import("./features/modeling/behavior/PathBehavior").PathBehavior)[];
|
|
145
|
+
validateBehavior: (string | typeof import("./features/modeling/behavior/ValidateBehavior").ValidateBehavior)[];
|
|
146
|
+
optionsSourceBehavior: (string | typeof import("./features/modeling/behavior/OptionsSourceBehavior").OptionsSourceBehavior)[];
|
|
147
|
+
columnsSourceBehavior: (string | typeof import("./features/modeling/behavior/ColumnsSourceBehavior").ColumnsSourceBehavior)[];
|
|
148
|
+
tableDataSourceBehavior: (string | typeof import("./features/modeling/behavior/TableDataSourceBehavior").TableDataSourceBehavior)[];
|
|
149
|
+
})[];
|
|
150
|
+
__init__: string[];
|
|
151
|
+
formLayoutUpdater: (string | typeof import("./features/modeling/FormLayoutUpdater").FormLayoutUpdater)[];
|
|
152
|
+
modeling: (string | typeof import("./features/modeling/Modeling").Modeling)[];
|
|
155
153
|
} | {
|
|
156
154
|
__init__: string[];
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
} |
|
|
155
|
+
selection: (string | typeof import("./features/selection/Selection").Selection)[];
|
|
156
|
+
selectionBehavior: (string | typeof import("./features/selection/SelectionBehavior").SelectionBehavior)[];
|
|
157
|
+
} | {
|
|
158
|
+
palette: (string | typeof import("./features/palette/PaletteRenderer").PaletteRenderer)[];
|
|
159
|
+
} | {
|
|
160
160
|
__depends__: any[];
|
|
161
161
|
__init__: string[];
|
|
162
|
-
propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelRenderer").
|
|
163
|
-
propertiesProvider: (string | typeof import("./features/properties-panel/PropertiesProvider").
|
|
162
|
+
propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelRenderer").PropertiesPanelRenderer)[];
|
|
163
|
+
propertiesProvider: (string | typeof import("./features/properties-panel/PropertiesProvider").PropertiesProvider)[];
|
|
164
164
|
} | {
|
|
165
165
|
__init__: string[];
|
|
166
|
-
renderInjector: (string | typeof import("./features/render-injection/RenderInjector").
|
|
166
|
+
renderInjector: (string | typeof import("./features/render-injection/RenderInjector").RenderInjector)[];
|
|
167
167
|
} | {
|
|
168
168
|
__init__: string[];
|
|
169
169
|
repeatRenderManager: (string | typeof import("./features/repeat-render").EditorRepeatRenderManager)[];
|
|
170
|
-
})[];
|
|
170
|
+
} | typeof MarkdownRendererModule)[];
|
|
171
171
|
/**
|
|
172
172
|
* @internal
|
|
173
173
|
*/
|
|
@@ -185,4 +185,4 @@ export type State = {
|
|
|
185
185
|
export type OnEventWithPriority = (type: string, priority: number, handler: Function) => void;
|
|
186
186
|
export type OnEventWithOutPriority = (type: string, handler: Function) => void;
|
|
187
187
|
export type OnEventType = OnEventWithPriority & OnEventWithOutPriority;
|
|
188
|
-
import {
|
|
188
|
+
import { MarkdownRendererModule } from '@bpmn-io/form-js-viewer';
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* @param {number|boolean} [config=true]
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
export function DebounceFactory(config?: number | boolean): (fn: any) => any;
|
|
7
|
+
export namespace DebounceFactory {
|
|
8
8
|
let $inject: string[];
|
|
9
9
|
}
|
|
10
|
-
export default DebounceFactory;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default } from "diagram-js/lib/core/EventBus";
|
|
1
|
+
export { default as EventBus } from "diagram-js/lib/core/EventBus";
|
|
@@ -2,19 +2,18 @@ export const MAX_COLUMNS_PER_ROW: 16;
|
|
|
2
2
|
export const MAX_COLUMNS: 16;
|
|
3
3
|
export const MIN_COLUMNS: 2;
|
|
4
4
|
export const MAX_FIELDS_PER_ROW: 4;
|
|
5
|
-
|
|
5
|
+
export class FormLayoutValidator {
|
|
6
6
|
/**
|
|
7
7
|
* @constructor
|
|
8
8
|
*
|
|
9
|
-
* @param { import('./FormLayouter').
|
|
10
|
-
* @param { import('./FormFieldRegistry').
|
|
9
|
+
* @param { import('./FormLayouter').FormLayouter } formLayouter
|
|
10
|
+
* @param { import('./FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
11
11
|
*/
|
|
12
|
-
constructor(formLayouter: import('./FormLayouter').
|
|
13
|
-
_formLayouter: import("@bpmn-io/form-js-viewer/dist/types/core/FormLayouter").
|
|
14
|
-
_formFieldRegistry: import("./FormFieldRegistry").
|
|
12
|
+
constructor(formLayouter: import('./FormLayouter').FormLayouter, formFieldRegistry: import('./FormFieldRegistry').FormFieldRegistry);
|
|
13
|
+
_formLayouter: import("@bpmn-io/form-js-viewer/dist/types/core/FormLayouter").FormLayouter;
|
|
14
|
+
_formFieldRegistry: import("./FormFieldRegistry").FormFieldRegistry;
|
|
15
15
|
validateField(field: {}, columns: any, row: any): "Minimum 2 columns are allowed" | "Maximum 16 columns are allowed" | "New value exceeds the maximum of 16 columns per row" | "Maximum 4 fields per row are allowed";
|
|
16
16
|
}
|
|
17
|
-
|
|
17
|
+
export namespace FormLayoutValidator {
|
|
18
18
|
let $inject: string[];
|
|
19
19
|
}
|
|
20
|
-
export default FormLayoutValidator;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { FormLayouter
|
|
1
|
+
export { FormLayouter } from "@bpmn-io/form-js-viewer";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export namespace CoreModule {
|
|
2
2
|
let __depends__: {
|
|
3
3
|
__init__: string[];
|
|
4
|
-
formFields: (string | typeof import("../render/EditorFormFields").
|
|
5
|
-
renderer: (string | typeof import("../render/Renderer").
|
|
4
|
+
formFields: (string | typeof import("../render/EditorFormFields").EditorFormFields)[];
|
|
5
|
+
renderer: (string | typeof import("../render/Renderer").Renderer)[];
|
|
6
6
|
}[];
|
|
7
7
|
let debounce: (string | typeof DebounceFactory)[];
|
|
8
8
|
let eventBus: (string | typeof EventBus)[];
|
|
@@ -13,12 +13,11 @@ declare namespace _default {
|
|
|
13
13
|
let formLayoutValidator: (string | typeof FormLayoutValidator)[];
|
|
14
14
|
let fieldFactory: (string | typeof FieldFactory)[];
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
import
|
|
18
|
-
import EventBus from './EventBus';
|
|
16
|
+
import { DebounceFactory } from './Debounce';
|
|
17
|
+
import { EventBus } from './EventBus';
|
|
19
18
|
import { Importer } from '@bpmn-io/form-js-viewer';
|
|
20
|
-
import FormFieldRegistry from './FormFieldRegistry';
|
|
19
|
+
import { FormFieldRegistry } from './FormFieldRegistry';
|
|
21
20
|
import { PathRegistry } from '@bpmn-io/form-js-viewer';
|
|
22
|
-
import FormLayouter from './FormLayouter';
|
|
23
|
-
import FormLayoutValidator from './FormLayoutValidator';
|
|
21
|
+
import { FormLayouter } from './FormLayouter';
|
|
22
|
+
import { FormLayoutValidator } from './FormLayoutValidator';
|
|
24
23
|
import { FieldFactory } from '@bpmn-io/form-js-viewer';
|
|
@@ -10,24 +10,24 @@ export const ERROR_DROP_CLS: "fjs-error-drop";
|
|
|
10
10
|
/**
|
|
11
11
|
* @typedef { { id: String, components: Array<any> } } FormRow
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
export class Dragging {
|
|
14
14
|
/**
|
|
15
15
|
* @constructor
|
|
16
16
|
*
|
|
17
|
-
* @param { import('../../core/FormFieldRegistry').
|
|
18
|
-
* @param { import('../../core/FormLayouter').
|
|
19
|
-
* @param { import('../../core/FormLayoutValidator').
|
|
20
|
-
* @param { import('../../core/EventBus').
|
|
21
|
-
* @param { import('../modeling/Modeling').
|
|
17
|
+
* @param { import('../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
18
|
+
* @param { import('../../core/FormLayouter').FormLayouter } formLayouter
|
|
19
|
+
* @param { import('../../core/FormLayoutValidator').FormLayoutValidator } formLayoutValidator
|
|
20
|
+
* @param { import('../../core/EventBus').EventBus } eventBus
|
|
21
|
+
* @param { import('../modeling/Modeling').Modeling } modeling
|
|
22
22
|
* @param { import('@bpmn-io/form-js-viewer').PathRegistry } pathRegistry
|
|
23
23
|
*/
|
|
24
|
-
constructor(formFieldRegistry: import('../../core/FormFieldRegistry').
|
|
25
|
-
_formFieldRegistry: import("../../core/FormFieldRegistry").
|
|
26
|
-
_formLayouter: import("@bpmn-io/form-js-viewer
|
|
27
|
-
_formLayoutValidator: import("../../core/FormLayoutValidator").
|
|
24
|
+
constructor(formFieldRegistry: import('../../core/FormFieldRegistry').FormFieldRegistry, formLayouter: import('../../core/FormLayouter').FormLayouter, formLayoutValidator: import('../../core/FormLayoutValidator').FormLayoutValidator, eventBus: import('../../core/EventBus').EventBus, modeling: import('../modeling/Modeling').Modeling, pathRegistry: import('@bpmn-io/form-js-viewer').PathRegistry);
|
|
25
|
+
_formFieldRegistry: import("../../core/FormFieldRegistry").FormFieldRegistry;
|
|
26
|
+
_formLayouter: import("@bpmn-io/form-js-viewer").FormLayouter;
|
|
27
|
+
_formLayoutValidator: import("../../core/FormLayoutValidator").FormLayoutValidator;
|
|
28
28
|
_eventBus: import("diagram-js/lib/core/EventBus").default;
|
|
29
|
-
_modeling: import("../modeling/Modeling").
|
|
30
|
-
_pathRegistry: import("@bpmn-io/form-js-viewer
|
|
29
|
+
_modeling: import("../modeling/Modeling").Modeling;
|
|
30
|
+
_pathRegistry: import("@bpmn-io/form-js-viewer").PathRegistry;
|
|
31
31
|
/**
|
|
32
32
|
* Calculates position in form schema given the dropped place.
|
|
33
33
|
*
|
|
@@ -52,10 +52,9 @@ declare class Dragging {
|
|
|
52
52
|
}): any;
|
|
53
53
|
emit(event: any, context: any): void;
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
export namespace Dragging {
|
|
56
56
|
let $inject: string[];
|
|
57
57
|
}
|
|
58
|
-
export default Dragging;
|
|
59
58
|
export type FormRow = {
|
|
60
59
|
id: string;
|
|
61
60
|
components: Array<any>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
export class FormEditorActions extends EditorActions {
|
|
2
2
|
constructor(eventBus: any, injector: any);
|
|
3
3
|
_registerDefaultActions(injector: any): void;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
export namespace FormEditorActions {
|
|
6
6
|
let $inject: string[];
|
|
7
7
|
}
|
|
8
|
-
export default FormEditorActions;
|
|
9
8
|
import EditorActions from 'diagram-js/lib/features/editor-actions/EditorActions';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
export namespace EditorActionsModule {
|
|
2
2
|
let __depends__: import("didi").ModuleDeclaration[];
|
|
3
3
|
let editorActions: (string | typeof FormEditorActions)[];
|
|
4
4
|
}
|
|
5
|
-
|
|
6
|
-
import FormEditorActions from './FormEditorActions';
|
|
5
|
+
import { FormEditorActions } from './FormEditorActions';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class EditorTemplating {
|
|
2
2
|
isTemplate(value: any): boolean;
|
|
3
3
|
evaluate(template: any): any;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
export namespace EditorTemplating {
|
|
6
6
|
let $inject: any[];
|
|
7
7
|
}
|
|
8
|
-
export default EditorTemplating;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export namespace EditorExpressionLanguageModule {
|
|
2
2
|
let __init__: string[];
|
|
3
3
|
let expressionLanguage: (string | typeof FeelExpressionLanguage)[];
|
|
4
4
|
let templating: (string | typeof EditorTemplating)[];
|
|
5
5
|
}
|
|
6
|
-
export default _default;
|
|
7
6
|
import { FeelExpressionLanguage } from '@bpmn-io/form-js-viewer';
|
|
8
|
-
import EditorTemplating from './EditorTemplating';
|
|
7
|
+
import { EditorTemplating } from './EditorTemplating';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class FormEditorKeyboardBindings {
|
|
2
2
|
constructor(eventBus: any, keyboard: any);
|
|
3
3
|
registerBindings(keyboard: any, editorActions: any): void;
|
|
4
4
|
}
|
|
5
|
-
|
|
5
|
+
export namespace FormEditorKeyboardBindings {
|
|
6
6
|
let $inject: string[];
|
|
7
7
|
}
|
|
8
|
-
export default FormEditorKeyboardBindings;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
export namespace FormEditorKeyboardModule {
|
|
2
2
|
let __depends__: import("didi").ModuleDeclaration[];
|
|
3
3
|
let __init__: string[];
|
|
4
4
|
let keyboardBindings: (string | typeof FormEditorKeyboardBindings)[];
|
|
5
5
|
}
|
|
6
|
-
|
|
7
|
-
import FormEditorKeyboardBindings from './FormEditorKeyboardBindings';
|
|
6
|
+
import { FormEditorKeyboardBindings } from './FormEditorKeyboardBindings';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export class FormLayoutUpdater extends CommandInterceptor {
|
|
2
2
|
constructor(eventBus: any, formLayouter: any, modeling: any, formEditor: any);
|
|
3
3
|
_eventBus: any;
|
|
4
4
|
_formLayouter: any;
|
|
@@ -7,8 +7,7 @@ declare class FormLayoutUpdater extends CommandInterceptor {
|
|
|
7
7
|
updateLayout(schema: any): void;
|
|
8
8
|
updateRowIds(event: any): void;
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
export namespace FormLayoutUpdater {
|
|
11
11
|
let $inject: string[];
|
|
12
12
|
}
|
|
13
|
-
export default FormLayoutUpdater;
|
|
14
13
|
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export class Modeling {
|
|
2
2
|
constructor(commandStack: any, eventBus: any, formEditor: any, formFieldRegistry: any, fieldFactory: any);
|
|
3
3
|
_commandStack: any;
|
|
4
4
|
_formEditor: any;
|
|
@@ -25,14 +25,13 @@ declare class Modeling {
|
|
|
25
25
|
claimPath(formField: any, path: any): void;
|
|
26
26
|
unclaimPath(formField: any, path: any): void;
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
export namespace Modeling {
|
|
29
29
|
let $inject: string[];
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import UpdatePathClaimHandler from './cmd/UpdatePathClaimHandler';
|
|
31
|
+
import { AddFormFieldHandler } from './cmd/AddFormFieldHandler';
|
|
32
|
+
import { EditFormFieldHandler } from './cmd/EditFormFieldHandler';
|
|
33
|
+
import { MoveFormFieldHandler } from './cmd/MoveFormFieldHandler';
|
|
34
|
+
import { RemoveFormFieldHandler } from './cmd/RemoveFormFieldHandler';
|
|
35
|
+
import { UpdateIdClaimHandler } from './cmd/UpdateIdClaimHandler';
|
|
36
|
+
import { UpdateKeyClaimHandler } from './cmd/UpdateKeyClaimHandler';
|
|
37
|
+
import { UpdatePathClaimHandler } from './cmd/UpdatePathClaimHandler';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class IdBehavior extends CommandInterceptor {
|
|
2
2
|
constructor(eventBus: any, modeling: any);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export namespace IdBehavior {
|
|
5
5
|
let $inject: string[];
|
|
6
6
|
}
|
|
7
|
-
export default IdBehavior;
|
|
8
7
|
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class KeyBehavior extends CommandInterceptor {
|
|
2
2
|
constructor(eventBus: any, modeling: any, formFields: any);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export namespace KeyBehavior {
|
|
5
5
|
let $inject: string[];
|
|
6
6
|
}
|
|
7
|
-
export default KeyBehavior;
|
|
8
7
|
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class OptionsSourceBehavior extends CommandInterceptor {
|
|
2
2
|
constructor(eventBus: any);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export namespace OptionsSourceBehavior {
|
|
5
5
|
let $inject: string[];
|
|
6
6
|
}
|
|
7
|
-
export default OptionsSourceBehavior;
|
|
8
7
|
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class PathBehavior extends CommandInterceptor {
|
|
2
2
|
constructor(eventBus: any, modeling: any, formFields: any);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export namespace PathBehavior {
|
|
5
5
|
let $inject: string[];
|
|
6
6
|
}
|
|
7
|
-
export default PathBehavior;
|
|
8
7
|
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
export class ValidateBehavior extends CommandInterceptor {
|
|
2
2
|
constructor(eventBus: any);
|
|
3
3
|
}
|
|
4
|
-
|
|
4
|
+
export namespace ValidateBehavior {
|
|
5
5
|
let $inject: string[];
|
|
6
6
|
}
|
|
7
|
-
export default ValidateBehavior;
|
|
8
7
|
import CommandInterceptor from 'diagram-js/lib/command/CommandInterceptor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export namespace BehaviorModule {
|
|
2
2
|
let __init__: string[];
|
|
3
3
|
let idBehavior: (string | typeof IdBehavior)[];
|
|
4
4
|
let keyBehavior: (string | typeof KeyBehavior)[];
|
|
@@ -8,11 +8,10 @@ declare namespace _default {
|
|
|
8
8
|
let columnsSourceBehavior: (string | typeof ColumnsSourceBehavior)[];
|
|
9
9
|
let tableDataSourceBehavior: (string | typeof TableDataSourceBehavior)[];
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import OptionsSourceBehavior from './OptionsSourceBehavior';
|
|
11
|
+
import { IdBehavior } from './IdBehavior';
|
|
12
|
+
import { KeyBehavior } from './KeyBehavior';
|
|
13
|
+
import { PathBehavior } from './PathBehavior';
|
|
14
|
+
import { ValidateBehavior } from './ValidateBehavior';
|
|
15
|
+
import { OptionsSourceBehavior } from './OptionsSourceBehavior';
|
|
17
16
|
import { ColumnsSourceBehavior } from './ColumnsSourceBehavior';
|
|
18
17
|
import { TableDataSourceBehavior } from './TableDataSourceBehavior';
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
export class AddFormFieldHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
|
-
* @param { import('../../../FormEditor').
|
|
5
|
-
* @param { import('../../../core/FormFieldRegistry').
|
|
4
|
+
* @param { import('../../../FormEditor').FormEditor } formEditor
|
|
5
|
+
* @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
6
6
|
*/
|
|
7
|
-
constructor(formEditor: import('../../../FormEditor').
|
|
8
|
-
_formEditor: import("../../../FormEditor").
|
|
9
|
-
_formFieldRegistry: import("../../../core/FormFieldRegistry").
|
|
7
|
+
constructor(formEditor: import('../../../FormEditor').FormEditor, formFieldRegistry: import('../../../core/FormFieldRegistry').FormFieldRegistry);
|
|
8
|
+
_formEditor: import("../../../FormEditor").FormEditor;
|
|
9
|
+
_formFieldRegistry: import("../../../core/FormFieldRegistry").FormFieldRegistry;
|
|
10
10
|
execute(context: any): void;
|
|
11
11
|
revert(context: any): void;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
export namespace AddFormFieldHandler {
|
|
14
14
|
let $inject: string[];
|
|
15
15
|
}
|
|
16
|
-
export default AddFormFieldHandler;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
export class EditFormFieldHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
|
-
* @param { import('../../../FormEditor').
|
|
5
|
-
* @param { import('../../../core/FormFieldRegistry').
|
|
4
|
+
* @param { import('../../../FormEditor').FormEditor } formEditor
|
|
5
|
+
* @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
6
6
|
*/
|
|
7
|
-
constructor(formEditor: import('../../../FormEditor').
|
|
8
|
-
_formEditor: import("../../../FormEditor").
|
|
9
|
-
_formFieldRegistry: import("../../../core/FormFieldRegistry").
|
|
7
|
+
constructor(formEditor: import('../../../FormEditor').FormEditor, formFieldRegistry: import('../../../core/FormFieldRegistry').FormFieldRegistry);
|
|
8
|
+
_formEditor: import("../../../FormEditor").FormEditor;
|
|
9
|
+
_formFieldRegistry: import("../../../core/FormFieldRegistry").FormFieldRegistry;
|
|
10
10
|
execute(context: any): any;
|
|
11
11
|
revert(context: any): any;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
export namespace EditFormFieldHandler {
|
|
14
14
|
let $inject: string[];
|
|
15
15
|
}
|
|
16
|
-
export default EditFormFieldHandler;
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
export class MoveFormFieldHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
|
-
* @param { import('../../../FormEditor').
|
|
5
|
-
* @param { import('../../../core/FormFieldRegistry').
|
|
4
|
+
* @param { import('../../../FormEditor').FormEditor } formEditor
|
|
5
|
+
* @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
6
6
|
* @param { import('@bpmn-io/form-js-viewer').PathRegistry } pathRegistry
|
|
7
7
|
* @param { import('@bpmn-io/form-js-viewer').FormLayouter } formLayouter
|
|
8
8
|
*/
|
|
9
|
-
constructor(formEditor: import('../../../FormEditor').
|
|
10
|
-
_formEditor: import("../../../FormEditor").
|
|
11
|
-
_formFieldRegistry: import("../../../core/FormFieldRegistry").
|
|
12
|
-
_pathRegistry: import("@bpmn-io/form-js-viewer
|
|
13
|
-
_formLayouter: import("@bpmn-io/form-js-viewer
|
|
9
|
+
constructor(formEditor: import('../../../FormEditor').FormEditor, formFieldRegistry: import('../../../core/FormFieldRegistry').FormFieldRegistry, pathRegistry: import('@bpmn-io/form-js-viewer').PathRegistry, formLayouter: import('@bpmn-io/form-js-viewer').FormLayouter);
|
|
10
|
+
_formEditor: import("../../../FormEditor").FormEditor;
|
|
11
|
+
_formFieldRegistry: import("../../../core/FormFieldRegistry").FormFieldRegistry;
|
|
12
|
+
_pathRegistry: import("@bpmn-io/form-js-viewer").PathRegistry;
|
|
13
|
+
_formLayouter: import("@bpmn-io/form-js-viewer").FormLayouter;
|
|
14
14
|
execute(context: any): void;
|
|
15
15
|
revert(context: any): void;
|
|
16
16
|
moveFormField(context: any, revert: any): void;
|
|
17
17
|
}
|
|
18
|
-
|
|
18
|
+
export namespace MoveFormFieldHandler {
|
|
19
19
|
let $inject: string[];
|
|
20
20
|
}
|
|
21
|
-
export default MoveFormFieldHandler;
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
export class RemoveFormFieldHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
|
-
* @param { import('../../../FormEditor').
|
|
5
|
-
* @param { import('../../../core/FormFieldRegistry').
|
|
4
|
+
* @param { import('../../../FormEditor').FormEditor } formEditor
|
|
5
|
+
* @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
6
6
|
*/
|
|
7
|
-
constructor(formEditor: import('../../../FormEditor').
|
|
8
|
-
_formEditor: import("../../../FormEditor").
|
|
9
|
-
_formFieldRegistry: import("../../../core/FormFieldRegistry").
|
|
7
|
+
constructor(formEditor: import('../../../FormEditor').FormEditor, formFieldRegistry: import('../../../core/FormFieldRegistry').FormFieldRegistry);
|
|
8
|
+
_formEditor: import("../../../FormEditor").FormEditor;
|
|
9
|
+
_formFieldRegistry: import("../../../core/FormFieldRegistry").FormFieldRegistry;
|
|
10
10
|
execute(context: any): void;
|
|
11
11
|
revert(context: any): void;
|
|
12
12
|
}
|
|
13
|
-
|
|
13
|
+
export namespace RemoveFormFieldHandler {
|
|
14
14
|
let $inject: string[];
|
|
15
15
|
}
|
|
16
|
-
export default RemoveFormFieldHandler;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export class UpdateIdClaimHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
|
-
* @param { import('../../../core/FormFieldRegistry').
|
|
4
|
+
* @param { import('../../../core/FormFieldRegistry').FormFieldRegistry } formFieldRegistry
|
|
5
5
|
*/
|
|
6
|
-
constructor(formFieldRegistry: import('../../../core/FormFieldRegistry').
|
|
7
|
-
_formFieldRegistry: import("../../../core/FormFieldRegistry").
|
|
6
|
+
constructor(formFieldRegistry: import('../../../core/FormFieldRegistry').FormFieldRegistry);
|
|
7
|
+
_formFieldRegistry: import("../../../core/FormFieldRegistry").FormFieldRegistry;
|
|
8
8
|
execute(context: any): void;
|
|
9
9
|
revert(context: any): void;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
export namespace UpdateIdClaimHandler {
|
|
12
12
|
let $inject: string[];
|
|
13
13
|
}
|
|
14
|
-
export default UpdateIdClaimHandler;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export class UpdateKeyClaimHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
4
|
* @param { import('@bpmn-io/form-js-viewer').PathRegistry } pathRegistry
|
|
5
5
|
*/
|
|
6
6
|
constructor(pathRegistry: import('@bpmn-io/form-js-viewer').PathRegistry);
|
|
7
|
-
_pathRegistry: import("@bpmn-io/form-js-viewer
|
|
7
|
+
_pathRegistry: import("@bpmn-io/form-js-viewer").PathRegistry;
|
|
8
8
|
execute(context: any): void;
|
|
9
9
|
revert(context: any): void;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
export namespace UpdateKeyClaimHandler {
|
|
12
12
|
let $inject: string[];
|
|
13
13
|
}
|
|
14
|
-
export default UpdateKeyClaimHandler;
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
export class UpdatePathClaimHandler {
|
|
2
2
|
/**
|
|
3
3
|
* @constructor
|
|
4
4
|
* @param { import('@bpmn-io/form-js-viewer').PathRegistry } pathRegistry
|
|
5
5
|
*/
|
|
6
6
|
constructor(pathRegistry: import('@bpmn-io/form-js-viewer').PathRegistry);
|
|
7
|
-
_pathRegistry: import("@bpmn-io/form-js-viewer
|
|
7
|
+
_pathRegistry: import("@bpmn-io/form-js-viewer").PathRegistry;
|
|
8
8
|
execute(context: any): void;
|
|
9
9
|
revert(context: any): void;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
export namespace UpdatePathClaimHandler {
|
|
12
12
|
let $inject: string[];
|
|
13
13
|
}
|
|
14
|
-
export default UpdatePathClaimHandler;
|