@bpmn-io/form-js-editor 1.0.0-alpha.6 → 1.0.0-alpha.7
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 +116 -116
- package/dist/assets/form-js-editor-base.css +734 -734
- package/dist/index.cjs +289 -289
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +289 -289
- 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
|
@@ -514,10 +514,10 @@ function invokeFunction(fn, args) {
|
|
|
514
514
|
return fn.apply(null, args);
|
|
515
515
|
}
|
|
516
516
|
|
|
517
|
-
/**
|
|
518
|
-
* A factory to create a configurable debouncer.
|
|
519
|
-
*
|
|
520
|
-
* @param {number|boolean} [config=true]
|
|
517
|
+
/**
|
|
518
|
+
* A factory to create a configurable debouncer.
|
|
519
|
+
*
|
|
520
|
+
* @param {number|boolean} [config=true]
|
|
521
521
|
*/
|
|
522
522
|
function DebounceFactory(config = true) {
|
|
523
523
|
const timeout = typeof config === 'number' ? config : config ? 300 : 0;
|
|
@@ -530,11 +530,11 @@ function DebounceFactory(config = true) {
|
|
|
530
530
|
DebounceFactory.$inject = ['config.debounce'];
|
|
531
531
|
|
|
532
532
|
class FieldFactory {
|
|
533
|
-
/**
|
|
534
|
-
* @constructor
|
|
535
|
-
*
|
|
536
|
-
* @param { import('./FormFieldRegistry').default } formFieldRegistry
|
|
537
|
-
* @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
|
|
533
|
+
/**
|
|
534
|
+
* @constructor
|
|
535
|
+
*
|
|
536
|
+
* @param { import('./FormFieldRegistry').default } formFieldRegistry
|
|
537
|
+
* @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
|
|
538
538
|
*/
|
|
539
539
|
constructor(formFieldRegistry, formFields) {
|
|
540
540
|
this._formFieldRegistry = formFieldRegistry;
|
|
@@ -597,11 +597,11 @@ class FieldFactory {
|
|
|
597
597
|
FieldFactory.$inject = ['formFieldRegistry', 'formFields'];
|
|
598
598
|
|
|
599
599
|
class FormFieldRegistry extends FormFieldRegistry$1 {
|
|
600
|
-
/**
|
|
601
|
-
* Updates a form fields id.
|
|
602
|
-
*
|
|
603
|
-
* @param {Object} formField
|
|
604
|
-
* @param {string} newId
|
|
600
|
+
/**
|
|
601
|
+
* Updates a form fields id.
|
|
602
|
+
*
|
|
603
|
+
* @param {Object} formField
|
|
604
|
+
* @param {string} newId
|
|
605
605
|
*/
|
|
606
606
|
updateId(formField, newId) {
|
|
607
607
|
this._validateId(newId);
|
|
@@ -622,13 +622,13 @@ class FormFieldRegistry extends FormFieldRegistry$1 {
|
|
|
622
622
|
}
|
|
623
623
|
}
|
|
624
624
|
|
|
625
|
-
/**
|
|
626
|
-
* Validate the suitability of the given id and signals a problem
|
|
627
|
-
* with an exception.
|
|
628
|
-
*
|
|
629
|
-
* @param {string} id
|
|
630
|
-
*
|
|
631
|
-
* @throws {Error} if id is empty or already assigned
|
|
625
|
+
/**
|
|
626
|
+
* Validate the suitability of the given id and signals a problem
|
|
627
|
+
* with an exception.
|
|
628
|
+
*
|
|
629
|
+
* @param {string} id
|
|
630
|
+
*
|
|
631
|
+
* @throws {Error} if id is empty or already assigned
|
|
632
632
|
*/
|
|
633
633
|
_validateId(id) {
|
|
634
634
|
if (!id) {
|
|
@@ -645,11 +645,11 @@ const MAX_COLUMNS = 16;
|
|
|
645
645
|
const MIN_COLUMNS = 2;
|
|
646
646
|
const MAX_FIELDS_PER_ROW = 4;
|
|
647
647
|
class FormLayoutValidator {
|
|
648
|
-
/**
|
|
649
|
-
* @constructor
|
|
650
|
-
*
|
|
651
|
-
* @param { import('./FormLayouter').default } formLayouter
|
|
652
|
-
* @param { import('./FormFieldRegistry').default } formFieldRegistry
|
|
648
|
+
/**
|
|
649
|
+
* @constructor
|
|
650
|
+
*
|
|
651
|
+
* @param { import('./FormLayouter').default } formLayouter
|
|
652
|
+
* @param { import('./FormFieldRegistry').default } formFieldRegistry
|
|
653
653
|
*/
|
|
654
654
|
constructor(formLayouter, formFieldRegistry) {
|
|
655
655
|
this._formLayouter = formLayouter;
|
|
@@ -709,11 +709,11 @@ function calculateMaxColumnsWithAuto(autoCols) {
|
|
|
709
709
|
}
|
|
710
710
|
|
|
711
711
|
class Importer {
|
|
712
|
-
/**
|
|
713
|
-
* @constructor
|
|
714
|
-
* @param { import('../core/FormFieldRegistry').default } formFieldRegistry
|
|
715
|
-
* @param { import('../core/FieldFactory').default } fieldFactory
|
|
716
|
-
* @param { import('../core/FormLayouter').default } formLayouter
|
|
712
|
+
/**
|
|
713
|
+
* @constructor
|
|
714
|
+
* @param { import('../core/FormFieldRegistry').default } formFieldRegistry
|
|
715
|
+
* @param { import('../core/FieldFactory').default } fieldFactory
|
|
716
|
+
* @param { import('../core/FormLayouter').default } formLayouter
|
|
717
717
|
*/
|
|
718
718
|
constructor(formFieldRegistry, fieldFactory, formLayouter) {
|
|
719
719
|
this._formFieldRegistry = formFieldRegistry;
|
|
@@ -721,21 +721,21 @@ class Importer {
|
|
|
721
721
|
this._formLayouter = formLayouter;
|
|
722
722
|
}
|
|
723
723
|
|
|
724
|
-
/**
|
|
725
|
-
* Import schema creating rows, fields, attaching additional
|
|
726
|
-
* information to each field and adding fields to the
|
|
727
|
-
* field registry.
|
|
728
|
-
*
|
|
729
|
-
* Additional information attached:
|
|
730
|
-
*
|
|
731
|
-
* * `id` (unless present)
|
|
732
|
-
* * `_parent`
|
|
733
|
-
* * `_path`
|
|
734
|
-
*
|
|
735
|
-
* @param {any} schema
|
|
736
|
-
*
|
|
737
|
-
* @typedef {{ warnings: Error[], schema: any }} ImportResult
|
|
738
|
-
* @returns {ImportResult}
|
|
724
|
+
/**
|
|
725
|
+
* Import schema creating rows, fields, attaching additional
|
|
726
|
+
* information to each field and adding fields to the
|
|
727
|
+
* field registry.
|
|
728
|
+
*
|
|
729
|
+
* Additional information attached:
|
|
730
|
+
*
|
|
731
|
+
* * `id` (unless present)
|
|
732
|
+
* * `_parent`
|
|
733
|
+
* * `_path`
|
|
734
|
+
*
|
|
735
|
+
* @param {any} schema
|
|
736
|
+
*
|
|
737
|
+
* @typedef {{ warnings: Error[], schema: any }} ImportResult
|
|
738
|
+
* @returns {ImportResult}
|
|
739
739
|
*/
|
|
740
740
|
importSchema(schema) {
|
|
741
741
|
// TODO: Add warnings
|
|
@@ -753,12 +753,12 @@ class Importer {
|
|
|
753
753
|
}
|
|
754
754
|
}
|
|
755
755
|
|
|
756
|
-
/**
|
|
757
|
-
* @param {{[x: string]: any}} fieldAttrs
|
|
758
|
-
* @param {String} [parentId]
|
|
759
|
-
* @param {number} [index]
|
|
760
|
-
*
|
|
761
|
-
* @return {any} field
|
|
756
|
+
/**
|
|
757
|
+
* @param {{[x: string]: any}} fieldAttrs
|
|
758
|
+
* @param {String} [parentId]
|
|
759
|
+
* @param {number} [index]
|
|
760
|
+
*
|
|
761
|
+
* @return {any} field
|
|
762
762
|
*/
|
|
763
763
|
importFormField(fieldAttrs, parentId, index) {
|
|
764
764
|
const {
|
|
@@ -795,11 +795,11 @@ class Importer {
|
|
|
795
795
|
return field;
|
|
796
796
|
}
|
|
797
797
|
|
|
798
|
-
/**
|
|
799
|
-
* @param {Array<any>} components
|
|
800
|
-
* @param {string} parentId
|
|
801
|
-
*
|
|
802
|
-
* @return {Array<any>} imported components
|
|
798
|
+
/**
|
|
799
|
+
* @param {Array<any>} components
|
|
800
|
+
* @param {string} parentId
|
|
801
|
+
*
|
|
802
|
+
* @return {Array<any>} imported components
|
|
803
803
|
*/
|
|
804
804
|
importFormFields(components, parentId) {
|
|
805
805
|
return components.map((component, index) => {
|
|
@@ -824,22 +824,22 @@ function editorFormFieldClasses(type, {
|
|
|
824
824
|
});
|
|
825
825
|
}
|
|
826
826
|
|
|
827
|
-
/**
|
|
828
|
-
* Add a dragger that calls back the passed function with
|
|
829
|
-
* { event, delta } on drag.
|
|
830
|
-
*
|
|
831
|
-
* @example
|
|
832
|
-
*
|
|
833
|
-
* function dragMove(event, delta) {
|
|
834
|
-
* // we are dragging (!!)
|
|
835
|
-
* }
|
|
836
|
-
*
|
|
837
|
-
* domElement.addEventListener('dragstart', dragger(dragMove));
|
|
838
|
-
*
|
|
839
|
-
* @param {Function} fn
|
|
840
|
-
* @param {Element} dragPreview
|
|
841
|
-
*
|
|
842
|
-
* @return {Function} drag start callback function
|
|
827
|
+
/**
|
|
828
|
+
* Add a dragger that calls back the passed function with
|
|
829
|
+
* { event, delta } on drag.
|
|
830
|
+
*
|
|
831
|
+
* @example
|
|
832
|
+
*
|
|
833
|
+
* function dragMove(event, delta) {
|
|
834
|
+
* // we are dragging (!!)
|
|
835
|
+
* }
|
|
836
|
+
*
|
|
837
|
+
* domElement.addEventListener('dragstart', dragger(dragMove));
|
|
838
|
+
*
|
|
839
|
+
* @param {Function} fn
|
|
840
|
+
* @param {Element} dragPreview
|
|
841
|
+
*
|
|
842
|
+
* @return {Function} drag start callback function
|
|
843
843
|
*/
|
|
844
844
|
function createDragger(fn, dragPreview) {
|
|
845
845
|
let self;
|
|
@@ -880,12 +880,12 @@ function createDragger(fn, dragPreview) {
|
|
|
880
880
|
return onDragStart;
|
|
881
881
|
}
|
|
882
882
|
|
|
883
|
-
/**
|
|
884
|
-
* Throttle function call according UI update cycle.
|
|
885
|
-
*
|
|
886
|
-
* @param {Function} fn
|
|
887
|
-
*
|
|
888
|
-
* @return {Function} throttled fn
|
|
883
|
+
/**
|
|
884
|
+
* Throttle function call according UI update cycle.
|
|
885
|
+
*
|
|
886
|
+
* @param {Function} fn
|
|
887
|
+
*
|
|
888
|
+
* @return {Function} throttled fn
|
|
889
889
|
*/
|
|
890
890
|
function throttle(fn) {
|
|
891
891
|
let active = false;
|
|
@@ -914,11 +914,11 @@ const DragAndDropContext = createContext({
|
|
|
914
914
|
});
|
|
915
915
|
var DragAndDropContext$1 = DragAndDropContext;
|
|
916
916
|
|
|
917
|
-
/**
|
|
918
|
-
* @param {string} type
|
|
919
|
-
* @param {boolean} [strict]
|
|
920
|
-
*
|
|
921
|
-
* @returns {any}
|
|
917
|
+
/**
|
|
918
|
+
* @param {string} type
|
|
919
|
+
* @param {boolean} [strict]
|
|
920
|
+
*
|
|
921
|
+
* @returns {any}
|
|
922
922
|
*/
|
|
923
923
|
function getService(type, strict) {}
|
|
924
924
|
const FormEditorContext = createContext({
|
|
@@ -1205,23 +1205,23 @@ var Slot = (props => {
|
|
|
1205
1205
|
return fillsAndSeparators;
|
|
1206
1206
|
});
|
|
1207
1207
|
|
|
1208
|
-
/**
|
|
1209
|
-
* Creates a Fragment for a fill.
|
|
1210
|
-
*
|
|
1211
|
-
* @param {Object} fill Fill to be rendered
|
|
1212
|
-
* @returns {Object} Preact Fragment containing fill's children
|
|
1208
|
+
/**
|
|
1209
|
+
* Creates a Fragment for a fill.
|
|
1210
|
+
*
|
|
1211
|
+
* @param {Object} fill Fill to be rendered
|
|
1212
|
+
* @returns {Object} Preact Fragment containing fill's children
|
|
1213
1213
|
*/
|
|
1214
1214
|
const FillFragment = fill => jsx(Fragment, {
|
|
1215
1215
|
children: fill.children
|
|
1216
1216
|
}, fill.id);
|
|
1217
1217
|
|
|
1218
|
-
/**
|
|
1219
|
-
* Creates an array of fills, with separators inserted between groups.
|
|
1220
|
-
*
|
|
1221
|
-
* @param {Array} groups Groups of fills
|
|
1222
|
-
* @param {Function} fillRenderer Function to create a fill
|
|
1223
|
-
* @param {Function} separatorRenderer Function to create a separator
|
|
1224
|
-
* @returns {Array} Array of fills and separators
|
|
1218
|
+
/**
|
|
1219
|
+
* Creates an array of fills, with separators inserted between groups.
|
|
1220
|
+
*
|
|
1221
|
+
* @param {Array} groups Groups of fills
|
|
1222
|
+
* @param {Function} fillRenderer Function to create a fill
|
|
1223
|
+
* @param {Function} separatorRenderer Function to create a separator
|
|
1224
|
+
* @returns {Array} Array of fills and separators
|
|
1225
1225
|
*/
|
|
1226
1226
|
const buildFills = (groups, fillRenderer, separatorRenderer) => {
|
|
1227
1227
|
const result = [];
|
|
@@ -1239,8 +1239,8 @@ const buildFills = (groups, fillRenderer, separatorRenderer) => {
|
|
|
1239
1239
|
return result;
|
|
1240
1240
|
};
|
|
1241
1241
|
|
|
1242
|
-
/**
|
|
1243
|
-
* Groups fills by group name property.
|
|
1242
|
+
/**
|
|
1243
|
+
* Groups fills by group name property.
|
|
1244
1244
|
*/
|
|
1245
1245
|
const _groupByGroupName = fills => {
|
|
1246
1246
|
const groups = [];
|
|
@@ -1260,8 +1260,8 @@ const _groupByGroupName = fills => {
|
|
|
1260
1260
|
return Object.keys(groupsById).sort().map(id => groupsById[id]);
|
|
1261
1261
|
};
|
|
1262
1262
|
|
|
1263
|
-
/**
|
|
1264
|
-
* Compares fills by priority.
|
|
1263
|
+
/**
|
|
1264
|
+
* Compares fills by priority.
|
|
1265
1265
|
*/
|
|
1266
1266
|
const _comparePriority = (a, b) => {
|
|
1267
1267
|
return (b.priority || 0) - (a.priority || 0);
|
|
@@ -4014,10 +4014,10 @@ function prefixId(id) {
|
|
|
4014
4014
|
return `bio-properties-panel-${id}`;
|
|
4015
4015
|
}
|
|
4016
4016
|
|
|
4017
|
-
/**
|
|
4018
|
-
* Retrieve list of variables from the form schema.
|
|
4019
|
-
*
|
|
4020
|
-
* @returns { string[] } list of variables used in form schema
|
|
4017
|
+
/**
|
|
4018
|
+
* Retrieve list of variables from the form schema.
|
|
4019
|
+
*
|
|
4020
|
+
* @returns { string[] } list of variables used in form schema
|
|
4021
4021
|
*/
|
|
4022
4022
|
function useVariables() {
|
|
4023
4023
|
const form = useService('formEditor');
|
|
@@ -4106,8 +4106,8 @@ const PropertiesPanelHeaderProvider = {
|
|
|
4106
4106
|
}
|
|
4107
4107
|
};
|
|
4108
4108
|
|
|
4109
|
-
/**
|
|
4110
|
-
* Provide placeholders for empty and multiple state.
|
|
4109
|
+
/**
|
|
4110
|
+
* Provide placeholders for empty and multiple state.
|
|
4111
4111
|
*/
|
|
4112
4112
|
const PropertiesPanelPlaceholderProvider = {
|
|
4113
4113
|
getEmpty: () => {
|
|
@@ -5614,14 +5614,14 @@ function Value(props) {
|
|
|
5614
5614
|
|
|
5615
5615
|
// helpers //////////
|
|
5616
5616
|
|
|
5617
|
-
/**
|
|
5618
|
-
* Returns copy of object with updated value.
|
|
5619
|
-
*
|
|
5620
|
-
* @param {Object} properties
|
|
5621
|
-
* @param {string} key
|
|
5622
|
-
* @param {string} value
|
|
5623
|
-
*
|
|
5624
|
-
* @returns {Object}
|
|
5617
|
+
/**
|
|
5618
|
+
* Returns copy of object with updated value.
|
|
5619
|
+
*
|
|
5620
|
+
* @param {Object} properties
|
|
5621
|
+
* @param {string} key
|
|
5622
|
+
* @param {string} value
|
|
5623
|
+
*
|
|
5624
|
+
* @returns {Object}
|
|
5625
5625
|
*/
|
|
5626
5626
|
function updateValue(properties, key, value) {
|
|
5627
5627
|
return {
|
|
@@ -5630,14 +5630,14 @@ function updateValue(properties, key, value) {
|
|
|
5630
5630
|
};
|
|
5631
5631
|
}
|
|
5632
5632
|
|
|
5633
|
-
/**
|
|
5634
|
-
* Returns copy of object with updated key.
|
|
5635
|
-
*
|
|
5636
|
-
* @param {Object} properties
|
|
5637
|
-
* @param {string} oldKey
|
|
5638
|
-
* @param {string} newKey
|
|
5639
|
-
*
|
|
5640
|
-
* @returns {Object}
|
|
5633
|
+
/**
|
|
5634
|
+
* Returns copy of object with updated key.
|
|
5635
|
+
*
|
|
5636
|
+
* @param {Object} properties
|
|
5637
|
+
* @param {string} oldKey
|
|
5638
|
+
* @param {string} newKey
|
|
5639
|
+
*
|
|
5640
|
+
* @returns {Object}
|
|
5641
5641
|
*/
|
|
5642
5642
|
function updateKey(properties, oldKey, newKey) {
|
|
5643
5643
|
return Object.entries(properties).reduce((newProperties, entry) => {
|
|
@@ -6331,8 +6331,8 @@ function ValuesGroups(field, editField) {
|
|
|
6331
6331
|
};
|
|
6332
6332
|
const valuesSourceId = `${fieldId}-valuesSource`;
|
|
6333
6333
|
|
|
6334
|
-
/**
|
|
6335
|
-
* @type {Array<Group|ListGroup>}
|
|
6334
|
+
/**
|
|
6335
|
+
* @type {Array<Group|ListGroup>}
|
|
6336
6336
|
*/
|
|
6337
6337
|
const groups = [{
|
|
6338
6338
|
id: valuesSourceId,
|
|
@@ -6434,13 +6434,13 @@ function CustomValuesGroup(field, editField) {
|
|
|
6434
6434
|
|
|
6435
6435
|
// helpers //////////
|
|
6436
6436
|
|
|
6437
|
-
/**
|
|
6438
|
-
* Returns copy of object without key.
|
|
6439
|
-
*
|
|
6440
|
-
* @param {Object} properties
|
|
6441
|
-
* @param {string} oldKey
|
|
6442
|
-
*
|
|
6443
|
-
* @returns {Object}
|
|
6437
|
+
/**
|
|
6438
|
+
* Returns copy of object without key.
|
|
6439
|
+
*
|
|
6440
|
+
* @param {Object} properties
|
|
6441
|
+
* @param {string} oldKey
|
|
6442
|
+
*
|
|
6443
|
+
* @returns {Object}
|
|
6444
6444
|
*/
|
|
6445
6445
|
function removeKey(properties, oldKey) {
|
|
6446
6446
|
return Object.entries(properties).reduce((newProperties, entry) => {
|
|
@@ -6552,9 +6552,9 @@ function FormPropertiesPanel() {
|
|
|
6552
6552
|
}, []);
|
|
6553
6553
|
useLayoutEffect(() => {
|
|
6554
6554
|
const onFieldChanged = () => {
|
|
6555
|
-
/**
|
|
6556
|
-
* TODO(pinussilvestrus): update with actual updated element,
|
|
6557
|
-
* once we have a proper updater/change support
|
|
6555
|
+
/**
|
|
6556
|
+
* TODO(pinussilvestrus): update with actual updated element,
|
|
6557
|
+
* once we have a proper updater/change support
|
|
6558
6558
|
*/
|
|
6559
6559
|
_update(selection.get() || schema);
|
|
6560
6560
|
};
|
|
@@ -6625,19 +6625,19 @@ const DRAG_NO_DROP_CLS = 'fjs-no-drop';
|
|
|
6625
6625
|
const DRAG_NO_MOVE_CLS = 'fjs-no-move';
|
|
6626
6626
|
const ERROR_DROP_CLS = 'fjs-error-drop';
|
|
6627
6627
|
|
|
6628
|
-
/**
|
|
6629
|
-
* @typedef { { id: String, components: Array<any> } } FormRow
|
|
6628
|
+
/**
|
|
6629
|
+
* @typedef { { id: String, components: Array<any> } } FormRow
|
|
6630
6630
|
*/
|
|
6631
6631
|
|
|
6632
6632
|
class Dragging {
|
|
6633
|
-
/**
|
|
6634
|
-
* @constructor
|
|
6635
|
-
*
|
|
6636
|
-
* @param { import('../../core/FormFieldRegistry').default } formFieldRegistry
|
|
6637
|
-
* @param { import('../../core/FormLayouter').default } formLayouter
|
|
6638
|
-
* @param { import('../../core/FormLayoutValidator').default } formLayoutValidator
|
|
6639
|
-
* @param { import('../../core/EventBus').default } eventBus
|
|
6640
|
-
* @param { import('../modeling/Modeling').default } modeling
|
|
6633
|
+
/**
|
|
6634
|
+
* @constructor
|
|
6635
|
+
*
|
|
6636
|
+
* @param { import('../../core/FormFieldRegistry').default } formFieldRegistry
|
|
6637
|
+
* @param { import('../../core/FormLayouter').default } formLayouter
|
|
6638
|
+
* @param { import('../../core/FormLayoutValidator').default } formLayoutValidator
|
|
6639
|
+
* @param { import('../../core/EventBus').default } eventBus
|
|
6640
|
+
* @param { import('../modeling/Modeling').default } modeling
|
|
6641
6641
|
*/
|
|
6642
6642
|
constructor(formFieldRegistry, formLayouter, formLayoutValidator, eventBus, modeling) {
|
|
6643
6643
|
this._formFieldRegistry = formFieldRegistry;
|
|
@@ -6647,13 +6647,13 @@ class Dragging {
|
|
|
6647
6647
|
this._modeling = modeling;
|
|
6648
6648
|
}
|
|
6649
6649
|
|
|
6650
|
-
/**
|
|
6651
|
-
* Calculcates position in form schema given the dropped place.
|
|
6652
|
-
*
|
|
6653
|
-
* @param { FormRow } targetRow
|
|
6654
|
-
* @param { any } targetFormField
|
|
6655
|
-
* @param { HTMLElement } sibling
|
|
6656
|
-
* @returns { number }
|
|
6650
|
+
/**
|
|
6651
|
+
* Calculcates position in form schema given the dropped place.
|
|
6652
|
+
*
|
|
6653
|
+
* @param { FormRow } targetRow
|
|
6654
|
+
* @param { any } targetFormField
|
|
6655
|
+
* @param { HTMLElement } sibling
|
|
6656
|
+
* @returns { number }
|
|
6657
6657
|
*/
|
|
6658
6658
|
getTargetIndex(targetRow, targetFormField, sibling) {
|
|
6659
6659
|
/** @type HTMLElement */
|
|
@@ -6755,8 +6755,8 @@ class Dragging {
|
|
|
6755
6755
|
}
|
|
6756
6756
|
}
|
|
6757
6757
|
|
|
6758
|
-
/**
|
|
6759
|
-
* @param { { container: Array<string>, direction: string, mirrorContainer: string } } options
|
|
6758
|
+
/**
|
|
6759
|
+
* @param { { container: Array<string>, direction: string, mirrorContainer: string } } options
|
|
6760
6760
|
*/
|
|
6761
6761
|
createDragulaInstance(options) {
|
|
6762
6762
|
const {
|
|
@@ -7153,7 +7153,7 @@ function DebugColumns(props) {
|
|
|
7153
7153
|
return null;
|
|
7154
7154
|
}
|
|
7155
7155
|
return jsx("div", {
|
|
7156
|
-
style: "width: fit-content
|
|
7156
|
+
style: "width: fit-content;\r padding: 2px 6px;\r height: 16px;\r background: var(--color-blue-205-100-95);\r display: flex;\r justify-content: center;\r align-items: center;\r position: absolute;\r bottom: -2px;\r z-index: 2;\r font-size: 10px;\r right: 3px;",
|
|
7157
7157
|
class: "fjs-debug-columns",
|
|
7158
7158
|
children: (field.layout || {}).columns || 'auto'
|
|
7159
7159
|
});
|
|
@@ -8199,10 +8199,10 @@ function updateRow(formField, rowId) {
|
|
|
8199
8199
|
}
|
|
8200
8200
|
|
|
8201
8201
|
class AddFormFieldHandler {
|
|
8202
|
-
/**
|
|
8203
|
-
* @constructor
|
|
8204
|
-
* @param { import('../../../FormEditor').default } formEditor
|
|
8205
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8202
|
+
/**
|
|
8203
|
+
* @constructor
|
|
8204
|
+
* @param { import('../../../FormEditor').default } formEditor
|
|
8205
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8206
8206
|
*/
|
|
8207
8207
|
constructor(formEditor, formFieldRegistry) {
|
|
8208
8208
|
this._formEditor = formEditor;
|
|
@@ -8263,10 +8263,10 @@ class AddFormFieldHandler {
|
|
|
8263
8263
|
AddFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
|
|
8264
8264
|
|
|
8265
8265
|
class EditFormFieldHandler {
|
|
8266
|
-
/**
|
|
8267
|
-
* @constructor
|
|
8268
|
-
* @param { import('../../../FormEditor').default } formEditor
|
|
8269
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8266
|
+
/**
|
|
8267
|
+
* @constructor
|
|
8268
|
+
* @param { import('../../../FormEditor').default } formEditor
|
|
8269
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8270
8270
|
*/
|
|
8271
8271
|
constructor(formEditor, formFieldRegistry) {
|
|
8272
8272
|
this._formEditor = formEditor;
|
|
@@ -8329,10 +8329,10 @@ class EditFormFieldHandler {
|
|
|
8329
8329
|
EditFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
|
|
8330
8330
|
|
|
8331
8331
|
class MoveFormFieldHandler {
|
|
8332
|
-
/**
|
|
8333
|
-
* @constructor
|
|
8334
|
-
* @param { import('../../../FormEditor').default } formEditor
|
|
8335
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8332
|
+
/**
|
|
8333
|
+
* @constructor
|
|
8334
|
+
* @param { import('../../../FormEditor').default } formEditor
|
|
8335
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8336
8336
|
*/
|
|
8337
8337
|
constructor(formEditor, formFieldRegistry) {
|
|
8338
8338
|
this._formEditor = formEditor;
|
|
@@ -8421,10 +8421,10 @@ class MoveFormFieldHandler {
|
|
|
8421
8421
|
MoveFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
|
|
8422
8422
|
|
|
8423
8423
|
class RemoveFormFieldHandler {
|
|
8424
|
-
/**
|
|
8425
|
-
* @constructor
|
|
8426
|
-
* @param { import('../../../FormEditor').default } formEditor
|
|
8427
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8424
|
+
/**
|
|
8425
|
+
* @constructor
|
|
8426
|
+
* @param { import('../../../FormEditor').default } formEditor
|
|
8427
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8428
8428
|
*/
|
|
8429
8429
|
constructor(formEditor, formFieldRegistry) {
|
|
8430
8430
|
this._formEditor = formEditor;
|
|
@@ -8484,9 +8484,9 @@ class RemoveFormFieldHandler {
|
|
|
8484
8484
|
RemoveFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
|
|
8485
8485
|
|
|
8486
8486
|
class UpdateIdClaimHandler {
|
|
8487
|
-
/**
|
|
8488
|
-
* @constructor
|
|
8489
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8487
|
+
/**
|
|
8488
|
+
* @constructor
|
|
8489
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8490
8490
|
*/
|
|
8491
8491
|
constructor(formFieldRegistry) {
|
|
8492
8492
|
this._formFieldRegistry = formFieldRegistry;
|
|
@@ -8519,9 +8519,9 @@ class UpdateIdClaimHandler {
|
|
|
8519
8519
|
UpdateIdClaimHandler.$inject = ['formFieldRegistry'];
|
|
8520
8520
|
|
|
8521
8521
|
class UpdateKeyClaimHandler {
|
|
8522
|
-
/**
|
|
8523
|
-
* @constructor
|
|
8524
|
-
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8522
|
+
/**
|
|
8523
|
+
* @constructor
|
|
8524
|
+
* @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
|
|
8525
8525
|
*/
|
|
8526
8526
|
constructor(formFieldRegistry) {
|
|
8527
8527
|
this._formFieldRegistry = formFieldRegistry;
|
|
@@ -8987,8 +8987,8 @@ class ValidateBehavior extends CommandInterceptor {
|
|
|
8987
8987
|
constructor(eventBus) {
|
|
8988
8988
|
super(eventBus);
|
|
8989
8989
|
|
|
8990
|
-
/**
|
|
8991
|
-
* Remove custom validation if <validationType> is about to be added.
|
|
8990
|
+
/**
|
|
8991
|
+
* Remove custom validation if <validationType> is about to be added.
|
|
8992
8992
|
*/
|
|
8993
8993
|
// @ts-ignore-next-line
|
|
8994
8994
|
this.preExecute('formField.edit', function (context) {
|
|
@@ -9568,22 +9568,22 @@ var SelectionModule = {
|
|
|
9568
9568
|
selectionBehavior: ['type', SelectionBehavior]
|
|
9569
9569
|
};
|
|
9570
9570
|
|
|
9571
|
-
/**
|
|
9572
|
-
* Base class for sectionable UI modules.
|
|
9573
|
-
*
|
|
9574
|
-
* @property {EventBus} _eventBus - EventBus instance used for event handling.
|
|
9575
|
-
* @property {string} managerType - Type of the render manager. Used to form event names.
|
|
9576
|
-
*
|
|
9577
|
-
* @class SectionModuleBase
|
|
9571
|
+
/**
|
|
9572
|
+
* Base class for sectionable UI modules.
|
|
9573
|
+
*
|
|
9574
|
+
* @property {EventBus} _eventBus - EventBus instance used for event handling.
|
|
9575
|
+
* @property {string} managerType - Type of the render manager. Used to form event names.
|
|
9576
|
+
*
|
|
9577
|
+
* @class SectionModuleBase
|
|
9578
9578
|
*/
|
|
9579
9579
|
class SectionModuleBase {
|
|
9580
|
-
/**
|
|
9581
|
-
* Create a SectionModuleBase instance.
|
|
9582
|
-
*
|
|
9583
|
-
* @param {any} eventBus - The EventBus instance used for event handling.
|
|
9584
|
-
* @param {string} sectionKey - The type of render manager. Used to form event names.
|
|
9585
|
-
*
|
|
9586
|
-
* @constructor
|
|
9580
|
+
/**
|
|
9581
|
+
* Create a SectionModuleBase instance.
|
|
9582
|
+
*
|
|
9583
|
+
* @param {any} eventBus - The EventBus instance used for event handling.
|
|
9584
|
+
* @param {string} sectionKey - The type of render manager. Used to form event names.
|
|
9585
|
+
*
|
|
9586
|
+
* @constructor
|
|
9587
9587
|
*/
|
|
9588
9588
|
constructor(eventBus, sectionKey) {
|
|
9589
9589
|
this._eventBus = eventBus;
|
|
@@ -9596,10 +9596,10 @@ class SectionModuleBase {
|
|
|
9596
9596
|
});
|
|
9597
9597
|
}
|
|
9598
9598
|
|
|
9599
|
-
/**
|
|
9600
|
-
* Attach the managed section to a parent node.
|
|
9601
|
-
*
|
|
9602
|
-
* @param {HTMLElement} container - The parent node to attach to.
|
|
9599
|
+
/**
|
|
9600
|
+
* Attach the managed section to a parent node.
|
|
9601
|
+
*
|
|
9602
|
+
* @param {HTMLElement} container - The parent node to attach to.
|
|
9603
9603
|
*/
|
|
9604
9604
|
attachTo(container) {
|
|
9605
9605
|
this._onceSectionRendered(() => this._eventBus.fire(`${this._sectionKey}.attach`, {
|
|
@@ -9607,22 +9607,22 @@ class SectionModuleBase {
|
|
|
9607
9607
|
}));
|
|
9608
9608
|
}
|
|
9609
9609
|
|
|
9610
|
-
/**
|
|
9611
|
-
* Detach the managed section from its parent node.
|
|
9610
|
+
/**
|
|
9611
|
+
* Detach the managed section from its parent node.
|
|
9612
9612
|
*/
|
|
9613
9613
|
detach() {
|
|
9614
9614
|
this._onceSectionRendered(() => this._eventBus.fire(`${this._sectionKey}.detach`));
|
|
9615
9615
|
}
|
|
9616
9616
|
|
|
9617
|
-
/**
|
|
9618
|
-
* Reset the managed section to its initial state.
|
|
9617
|
+
/**
|
|
9618
|
+
* Reset the managed section to its initial state.
|
|
9619
9619
|
*/
|
|
9620
9620
|
reset() {
|
|
9621
9621
|
this._onceSectionRendered(() => this._eventBus.fire(`${this._sectionKey}.reset`));
|
|
9622
9622
|
}
|
|
9623
9623
|
|
|
9624
|
-
/**
|
|
9625
|
-
* Circumvents timing issues.
|
|
9624
|
+
/**
|
|
9625
|
+
* Circumvents timing issues.
|
|
9626
9626
|
*/
|
|
9627
9627
|
_onceSectionRendered(callback) {
|
|
9628
9628
|
if (this.isSectionRendered) {
|
|
@@ -9656,10 +9656,10 @@ var PropertiesPanelModule = {
|
|
|
9656
9656
|
propertiesPanel: ['type', PropertiesPanelModule$1]
|
|
9657
9657
|
};
|
|
9658
9658
|
|
|
9659
|
-
/**
|
|
9660
|
-
* Manages the rendering of visual plugins.
|
|
9661
|
-
* @constructor
|
|
9662
|
-
* @param {Object} eventBus - Event bus for the application.
|
|
9659
|
+
/**
|
|
9660
|
+
* Manages the rendering of visual plugins.
|
|
9661
|
+
* @constructor
|
|
9662
|
+
* @param {Object} eventBus - Event bus for the application.
|
|
9663
9663
|
*/
|
|
9664
9664
|
class RenderInjector extends SectionModuleBase {
|
|
9665
9665
|
constructor(eventBus) {
|
|
@@ -9668,10 +9668,10 @@ class RenderInjector extends SectionModuleBase {
|
|
|
9668
9668
|
this.registeredRenderers = [];
|
|
9669
9669
|
}
|
|
9670
9670
|
|
|
9671
|
-
/**
|
|
9672
|
-
* Inject a new renderer into the injector.
|
|
9673
|
-
* @param {string} identifier - Identifier for the renderer.
|
|
9674
|
-
* @param {Function} Renderer - The renderer function.
|
|
9671
|
+
/**
|
|
9672
|
+
* Inject a new renderer into the injector.
|
|
9673
|
+
* @param {string} identifier - Identifier for the renderer.
|
|
9674
|
+
* @param {Function} Renderer - The renderer function.
|
|
9675
9675
|
*/
|
|
9676
9676
|
attachRenderer(identifier, Renderer) {
|
|
9677
9677
|
this.registeredRenderers = [...this.registeredRenderers, {
|
|
@@ -9680,17 +9680,17 @@ class RenderInjector extends SectionModuleBase {
|
|
|
9680
9680
|
}];
|
|
9681
9681
|
}
|
|
9682
9682
|
|
|
9683
|
-
/**
|
|
9684
|
-
* Detach a renderer from the by key injector.
|
|
9685
|
-
* @param {string} identifier - Identifier for the renderer.
|
|
9683
|
+
/**
|
|
9684
|
+
* Detach a renderer from the by key injector.
|
|
9685
|
+
* @param {string} identifier - Identifier for the renderer.
|
|
9686
9686
|
*/
|
|
9687
9687
|
detachRenderer(identifier) {
|
|
9688
9688
|
this.registeredRenderers = this.registeredRenderers.filter(r => r.identifier !== identifier);
|
|
9689
9689
|
}
|
|
9690
9690
|
|
|
9691
|
-
/**
|
|
9692
|
-
* Returns the registered renderers.
|
|
9693
|
-
* @returns {Array} Array of registered renderers.
|
|
9691
|
+
/**
|
|
9692
|
+
* Returns the registered renderers.
|
|
9693
|
+
* @returns {Array} Array of registered renderers.
|
|
9694
9694
|
*/
|
|
9695
9695
|
fetchRenderers() {
|
|
9696
9696
|
return this.registeredRenderers;
|
|
@@ -9724,48 +9724,48 @@ var ExpressionLanguageModule = {
|
|
|
9724
9724
|
|
|
9725
9725
|
const ids = new Ids([32, 36, 1]);
|
|
9726
9726
|
|
|
9727
|
-
/**
|
|
9728
|
-
* @typedef { import('./types').Injector } Injector
|
|
9729
|
-
* @typedef { import('./types').Module } Module
|
|
9730
|
-
* @typedef { import('./types').Schema } Schema
|
|
9731
|
-
*
|
|
9732
|
-
* @typedef { import('./types').FormEditorOptions } FormEditorOptions
|
|
9733
|
-
* @typedef { import('./types').FormEditorProperties } FormEditorProperties
|
|
9734
|
-
*
|
|
9735
|
-
* @typedef { {
|
|
9736
|
-
* properties: FormEditorProperties,
|
|
9737
|
-
* schema: Schema
|
|
9738
|
-
* } } State
|
|
9739
|
-
*
|
|
9740
|
-
* @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
|
|
9741
|
-
* @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
|
|
9742
|
-
* @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
|
|
9727
|
+
/**
|
|
9728
|
+
* @typedef { import('./types').Injector } Injector
|
|
9729
|
+
* @typedef { import('./types').Module } Module
|
|
9730
|
+
* @typedef { import('./types').Schema } Schema
|
|
9731
|
+
*
|
|
9732
|
+
* @typedef { import('./types').FormEditorOptions } FormEditorOptions
|
|
9733
|
+
* @typedef { import('./types').FormEditorProperties } FormEditorProperties
|
|
9734
|
+
*
|
|
9735
|
+
* @typedef { {
|
|
9736
|
+
* properties: FormEditorProperties,
|
|
9737
|
+
* schema: Schema
|
|
9738
|
+
* } } State
|
|
9739
|
+
*
|
|
9740
|
+
* @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
|
|
9741
|
+
* @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
|
|
9742
|
+
* @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
|
|
9743
9743
|
*/
|
|
9744
9744
|
|
|
9745
|
-
/**
|
|
9746
|
-
* The form editor.
|
|
9745
|
+
/**
|
|
9746
|
+
* The form editor.
|
|
9747
9747
|
*/
|
|
9748
9748
|
class FormEditor {
|
|
9749
|
-
/**
|
|
9750
|
-
* @constructor
|
|
9751
|
-
* @param {FormEditorOptions} options
|
|
9749
|
+
/**
|
|
9750
|
+
* @constructor
|
|
9751
|
+
* @param {FormEditorOptions} options
|
|
9752
9752
|
*/
|
|
9753
9753
|
constructor(options = {}) {
|
|
9754
|
-
/**
|
|
9755
|
-
* @public
|
|
9756
|
-
* @type {OnEventType}
|
|
9754
|
+
/**
|
|
9755
|
+
* @public
|
|
9756
|
+
* @type {OnEventType}
|
|
9757
9757
|
*/
|
|
9758
9758
|
this.on = this._onEvent;
|
|
9759
9759
|
|
|
9760
|
-
/**
|
|
9761
|
-
* @public
|
|
9762
|
-
* @type {String}
|
|
9760
|
+
/**
|
|
9761
|
+
* @public
|
|
9762
|
+
* @type {String}
|
|
9763
9763
|
*/
|
|
9764
9764
|
this._id = ids.next();
|
|
9765
9765
|
|
|
9766
|
-
/**
|
|
9767
|
-
* @private
|
|
9768
|
-
* @type {Element}
|
|
9766
|
+
/**
|
|
9767
|
+
* @private
|
|
9768
|
+
* @type {Element}
|
|
9769
9769
|
*/
|
|
9770
9770
|
this._container = createFormContainer();
|
|
9771
9771
|
this._container.setAttribute('input-handle-modified-keys', 'z,y');
|
|
@@ -9776,15 +9776,15 @@ class FormEditor {
|
|
|
9776
9776
|
properties = {}
|
|
9777
9777
|
} = options;
|
|
9778
9778
|
|
|
9779
|
-
/**
|
|
9780
|
-
* @private
|
|
9781
|
-
* @type {any}
|
|
9779
|
+
/**
|
|
9780
|
+
* @private
|
|
9781
|
+
* @type {any}
|
|
9782
9782
|
*/
|
|
9783
9783
|
this.exporter = exporter;
|
|
9784
9784
|
|
|
9785
|
-
/**
|
|
9786
|
-
* @private
|
|
9787
|
-
* @type {State}
|
|
9785
|
+
/**
|
|
9786
|
+
* @private
|
|
9787
|
+
* @type {State}
|
|
9788
9788
|
*/
|
|
9789
9789
|
this._state = {
|
|
9790
9790
|
properties,
|
|
@@ -9813,10 +9813,10 @@ class FormEditor {
|
|
|
9813
9813
|
this._detach(false);
|
|
9814
9814
|
}
|
|
9815
9815
|
|
|
9816
|
-
/**
|
|
9817
|
-
* @param {Schema} schema
|
|
9818
|
-
*
|
|
9819
|
-
* @return {Promise<{ warnings: Array<any> }>}
|
|
9816
|
+
/**
|
|
9817
|
+
* @param {Schema} schema
|
|
9818
|
+
*
|
|
9819
|
+
* @return {Promise<{ warnings: Array<any> }>}
|
|
9820
9820
|
*/
|
|
9821
9821
|
importSchema(schema) {
|
|
9822
9822
|
return new Promise((resolve, reject) => {
|
|
@@ -9845,15 +9845,15 @@ class FormEditor {
|
|
|
9845
9845
|
});
|
|
9846
9846
|
}
|
|
9847
9847
|
|
|
9848
|
-
/**
|
|
9849
|
-
* @returns {Schema}
|
|
9848
|
+
/**
|
|
9849
|
+
* @returns {Schema}
|
|
9850
9850
|
*/
|
|
9851
9851
|
saveSchema() {
|
|
9852
9852
|
return this.getSchema();
|
|
9853
9853
|
}
|
|
9854
9854
|
|
|
9855
|
-
/**
|
|
9856
|
-
* @returns {Schema}
|
|
9855
|
+
/**
|
|
9856
|
+
* @returns {Schema}
|
|
9857
9857
|
*/
|
|
9858
9858
|
getSchema() {
|
|
9859
9859
|
const {
|
|
@@ -9862,8 +9862,8 @@ class FormEditor {
|
|
|
9862
9862
|
return exportSchema(schema, this.exporter, schemaVersion);
|
|
9863
9863
|
}
|
|
9864
9864
|
|
|
9865
|
-
/**
|
|
9866
|
-
* @param {Element|string} parentNode
|
|
9865
|
+
/**
|
|
9866
|
+
* @param {Element|string} parentNode
|
|
9867
9867
|
*/
|
|
9868
9868
|
attachTo(parentNode) {
|
|
9869
9869
|
if (!parentNode) {
|
|
@@ -9881,10 +9881,10 @@ class FormEditor {
|
|
|
9881
9881
|
this._detach();
|
|
9882
9882
|
}
|
|
9883
9883
|
|
|
9884
|
-
/**
|
|
9885
|
-
* @internal
|
|
9886
|
-
*
|
|
9887
|
-
* @param {boolean} [emit]
|
|
9884
|
+
/**
|
|
9885
|
+
* @internal
|
|
9886
|
+
*
|
|
9887
|
+
* @param {boolean} [emit]
|
|
9888
9888
|
*/
|
|
9889
9889
|
_detach(emit = true) {
|
|
9890
9890
|
const container = this._container,
|
|
@@ -9898,9 +9898,9 @@ class FormEditor {
|
|
|
9898
9898
|
parentNode.removeChild(container);
|
|
9899
9899
|
}
|
|
9900
9900
|
|
|
9901
|
-
/**
|
|
9902
|
-
* @param {any} property
|
|
9903
|
-
* @param {any} value
|
|
9901
|
+
/**
|
|
9902
|
+
* @param {any} property
|
|
9903
|
+
* @param {any} value
|
|
9904
9904
|
*/
|
|
9905
9905
|
setProperty(property, value) {
|
|
9906
9906
|
const properties = set$1(this._getState().properties, [property], value);
|
|
@@ -9909,21 +9909,21 @@ class FormEditor {
|
|
|
9909
9909
|
});
|
|
9910
9910
|
}
|
|
9911
9911
|
|
|
9912
|
-
/**
|
|
9913
|
-
* @param {string} type
|
|
9914
|
-
* @param {Function} handler
|
|
9912
|
+
/**
|
|
9913
|
+
* @param {string} type
|
|
9914
|
+
* @param {Function} handler
|
|
9915
9915
|
*/
|
|
9916
9916
|
off(type, handler) {
|
|
9917
9917
|
this.get('eventBus').off(type, handler);
|
|
9918
9918
|
}
|
|
9919
9919
|
|
|
9920
|
-
/**
|
|
9921
|
-
* @internal
|
|
9922
|
-
*
|
|
9923
|
-
* @param {FormEditorOptions} options
|
|
9924
|
-
* @param {Element} container
|
|
9925
|
-
*
|
|
9926
|
-
* @returns {Injector}
|
|
9920
|
+
/**
|
|
9921
|
+
* @internal
|
|
9922
|
+
*
|
|
9923
|
+
* @param {FormEditorOptions} options
|
|
9924
|
+
* @param {Element} container
|
|
9925
|
+
*
|
|
9926
|
+
* @returns {Injector}
|
|
9927
9927
|
*/
|
|
9928
9928
|
_createInjector(options, container) {
|
|
9929
9929
|
const {
|
|
@@ -9945,22 +9945,22 @@ class FormEditor {
|
|
|
9945
9945
|
}, core, ...modules, ...additionalModules]);
|
|
9946
9946
|
}
|
|
9947
9947
|
|
|
9948
|
-
/**
|
|
9949
|
-
* @internal
|
|
9948
|
+
/**
|
|
9949
|
+
* @internal
|
|
9950
9950
|
*/
|
|
9951
9951
|
_emit(type, data) {
|
|
9952
9952
|
this.get('eventBus').fire(type, data);
|
|
9953
9953
|
}
|
|
9954
9954
|
|
|
9955
|
-
/**
|
|
9956
|
-
* @internal
|
|
9955
|
+
/**
|
|
9956
|
+
* @internal
|
|
9957
9957
|
*/
|
|
9958
9958
|
_getState() {
|
|
9959
9959
|
return this._state;
|
|
9960
9960
|
}
|
|
9961
9961
|
|
|
9962
|
-
/**
|
|
9963
|
-
* @internal
|
|
9962
|
+
/**
|
|
9963
|
+
* @internal
|
|
9964
9964
|
*/
|
|
9965
9965
|
_setState(state) {
|
|
9966
9966
|
this._state = {
|
|
@@ -9970,15 +9970,15 @@ class FormEditor {
|
|
|
9970
9970
|
this._emit('changed', this._getState());
|
|
9971
9971
|
}
|
|
9972
9972
|
|
|
9973
|
-
/**
|
|
9974
|
-
* @internal
|
|
9973
|
+
/**
|
|
9974
|
+
* @internal
|
|
9975
9975
|
*/
|
|
9976
9976
|
_getModules() {
|
|
9977
9977
|
return [ModelingModule, EditorActionsModule, DraggingModule, KeyboardModule, SelectionModule, PaletteModule, ExpressionLanguageModule, MarkdownModule, PropertiesPanelModule, RenderInjectionModule];
|
|
9978
9978
|
}
|
|
9979
9979
|
|
|
9980
|
-
/**
|
|
9981
|
-
* @internal
|
|
9980
|
+
/**
|
|
9981
|
+
* @internal
|
|
9982
9982
|
*/
|
|
9983
9983
|
_onEvent(type, priority, handler) {
|
|
9984
9984
|
this.get('eventBus').on(type, priority, handler);
|