@bpmn-io/form-js-editor 0.8.0 → 0.9.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.
Files changed (80) hide show
  1. package/LICENSE +22 -22
  2. package/README.md +118 -118
  3. package/dist/assets/form-js-editor.css +272 -267
  4. package/dist/index.cjs +199 -199
  5. package/dist/index.cjs.map +1 -1
  6. package/dist/index.es.js +199 -199
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/types/FormEditor.d.ts +155 -155
  9. package/dist/types/core/Debounce.d.ts +10 -10
  10. package/dist/types/core/EventBus.d.ts +1 -1
  11. package/dist/types/core/FieldFactory.d.ts +18 -18
  12. package/dist/types/core/FormFieldRegistry.d.ts +19 -19
  13. package/dist/types/core/index.d.ts +17 -17
  14. package/dist/types/features/editor-actions/FormEditorActions.d.ts +8 -8
  15. package/dist/types/features/editor-actions/index.d.ts +6 -6
  16. package/dist/types/features/keyboard/FormEditorKeyboardBindings.d.ts +8 -8
  17. package/dist/types/features/keyboard/index.d.ts +7 -7
  18. package/dist/types/features/modeling/Modeling.d.ts +34 -34
  19. package/dist/types/features/modeling/behavior/IdBehavior.d.ts +7 -7
  20. package/dist/types/features/modeling/behavior/KeyBehavior.d.ts +7 -7
  21. package/dist/types/features/modeling/behavior/index.d.ts +8 -8
  22. package/dist/types/features/modeling/cmd/AddFormFieldHandler.d.ts +16 -16
  23. package/dist/types/features/modeling/cmd/EditFormFieldHandler.d.ts +16 -16
  24. package/dist/types/features/modeling/cmd/MoveFormFieldHandler.d.ts +17 -17
  25. package/dist/types/features/modeling/cmd/RemoveFormFieldHandler.d.ts +16 -16
  26. package/dist/types/features/modeling/cmd/UpdateIdClaimHandler.d.ts +14 -14
  27. package/dist/types/features/modeling/cmd/UpdateKeyClaimHandler.d.ts +14 -14
  28. package/dist/types/features/modeling/cmd/Util.d.ts +4 -4
  29. package/dist/types/features/modeling/index.d.ts +7 -7
  30. package/dist/types/features/palette/PaletteRenderer.d.ts +33 -33
  31. package/dist/types/features/palette/components/Palette.d.ts +1 -1
  32. package/dist/types/features/palette/index.d.ts +5 -5
  33. package/dist/types/features/properties-panel/PropertiesPanel.d.ts +1 -1
  34. package/dist/types/features/properties-panel/PropertiesPanelHeaderProvider.d.ts +5 -5
  35. package/dist/types/features/properties-panel/PropertiesPanelPlaceholderProvider.d.ts +8 -8
  36. package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +37 -37
  37. package/dist/types/features/properties-panel/Util.d.ts +7 -7
  38. package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +11 -11
  39. package/dist/types/features/properties-panel/context/index.d.ts +1 -1
  40. package/dist/types/features/properties-panel/entries/ActionEntry.d.ts +9 -9
  41. package/dist/types/features/properties-panel/entries/ColumnsEntry.d.ts +9 -9
  42. package/dist/types/features/properties-panel/entries/CustomValueEntry.d.ts +11 -11
  43. package/dist/types/features/properties-panel/entries/DefaultValueEntry.d.ts +1 -1
  44. package/dist/types/features/properties-panel/entries/DescriptionEntry.d.ts +9 -9
  45. package/dist/types/features/properties-panel/entries/DisabledEntry.d.ts +9 -9
  46. package/dist/types/features/properties-panel/entries/IdEntry.d.ts +9 -9
  47. package/dist/types/features/properties-panel/entries/InputKeyValuesSourceEntry.d.ts +11 -11
  48. package/dist/types/features/properties-panel/entries/KeyEntry.d.ts +9 -9
  49. package/dist/types/features/properties-panel/entries/LabelEntry.d.ts +9 -9
  50. package/dist/types/features/properties-panel/entries/StaticValuesSourceEntry.d.ts +4 -4
  51. package/dist/types/features/properties-panel/entries/TextEntry.d.ts +9 -9
  52. package/dist/types/features/properties-panel/entries/ValueEntry.d.ts +11 -11
  53. package/dist/types/features/properties-panel/entries/ValuesSourceSelectEntry.d.ts +9 -9
  54. package/dist/types/features/properties-panel/entries/ValuesSourceUtil.d.ts +15 -15
  55. package/dist/types/features/properties-panel/entries/index.d.ts +14 -14
  56. package/dist/types/features/properties-panel/groups/CustomValuesGroup.d.ts +31 -31
  57. package/dist/types/features/properties-panel/groups/GeneralGroup.d.ts +5 -5
  58. package/dist/types/features/properties-panel/groups/ValidationGroup.d.ts +14 -14
  59. package/dist/types/features/properties-panel/groups/ValuesGroups.d.ts +1 -1
  60. package/dist/types/features/properties-panel/groups/index.d.ts +4 -4
  61. package/dist/types/features/properties-panel/hooks/index.d.ts +1 -1
  62. package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +1 -1
  63. package/dist/types/features/properties-panel/icons/index.d.ts +1 -1
  64. package/dist/types/features/properties-panel/index.d.ts +6 -6
  65. package/dist/types/features/selection/Selection.d.ts +14 -14
  66. package/dist/types/features/selection/SelectionBehavior.d.ts +7 -7
  67. package/dist/types/features/selection/index.d.ts +8 -8
  68. package/dist/types/import/Importer.d.ts +51 -51
  69. package/dist/types/import/index.d.ts +5 -5
  70. package/dist/types/index.d.ts +15 -15
  71. package/dist/types/render/Renderer.d.ts +26 -26
  72. package/dist/types/render/components/FormEditor.d.ts +1 -1
  73. package/dist/types/render/components/icons/index.d.ts +13 -13
  74. package/dist/types/render/context/DragAndDropContext.d.ts +4 -4
  75. package/dist/types/render/context/FormEditorContext.d.ts +11 -11
  76. package/dist/types/render/context/index.d.ts +2 -2
  77. package/dist/types/render/hooks/useService.d.ts +1 -1
  78. package/dist/types/render/index.d.ts +8 -8
  79. package/dist/types/types.d.ts +28 -28
  80. package/package.json +3 -3
package/dist/index.es.js CHANGED
@@ -485,10 +485,10 @@ function invokeFunction(fn, args) {
485
485
  return fn.apply(null, args);
486
486
  }
487
487
 
488
- /**
489
- * A factory to create a configurable debouncer.
490
- *
491
- * @param {number|boolean} [config=true]
488
+ /**
489
+ * A factory to create a configurable debouncer.
490
+ *
491
+ * @param {number|boolean} [config=true]
492
492
  */
493
493
 
494
494
  function DebounceFactory(config = true) {
@@ -503,11 +503,11 @@ function DebounceFactory(config = true) {
503
503
  DebounceFactory.$inject = ['config.debounce'];
504
504
 
505
505
  class FieldFactory {
506
- /**
507
- * @constructor
508
- *
509
- * @param { import('./FormFieldRegistry').default } formFieldRegistry
510
- * @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
506
+ /**
507
+ * @constructor
508
+ *
509
+ * @param { import('./FormFieldRegistry').default } formFieldRegistry
510
+ * @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
511
511
  */
512
512
  constructor(formFieldRegistry, formFields) {
513
513
  this._formFieldRegistry = formFieldRegistry;
@@ -584,11 +584,11 @@ class FieldFactory {
584
584
  FieldFactory.$inject = ['formFieldRegistry', 'formFields'];
585
585
 
586
586
  class FormFieldRegistry extends FormFieldRegistry$1 {
587
- /**
588
- * Updates a form fields id.
589
- *
590
- * @param {Object} formField
591
- * @param {string} newId
587
+ /**
588
+ * Updates a form fields id.
589
+ *
590
+ * @param {Object} formField
591
+ * @param {string} newId
592
592
  */
593
593
  updateId(formField, newId) {
594
594
  this._validateId(newId);
@@ -609,13 +609,13 @@ class FormFieldRegistry extends FormFieldRegistry$1 {
609
609
  }
610
610
  }
611
611
  }
612
- /**
613
- * Validate the suitability of the given id and signals a problem
614
- * with an exception.
615
- *
616
- * @param {string} id
617
- *
618
- * @throws {Error} if id is empty or already assigned
612
+ /**
613
+ * Validate the suitability of the given id and signals a problem
614
+ * with an exception.
615
+ *
616
+ * @param {string} id
617
+ *
618
+ * @throws {Error} if id is empty or already assigned
619
619
  */
620
620
 
621
621
 
@@ -632,30 +632,30 @@ class FormFieldRegistry extends FormFieldRegistry$1 {
632
632
  }
633
633
 
634
634
  class Importer {
635
- /**
636
- * @constructor
637
- * @param { import('../core/FormFieldRegistry').default } formFieldRegistry
638
- * @param { import('../core/FieldFactory').default } fieldFactory
635
+ /**
636
+ * @constructor
637
+ * @param { import('../core/FormFieldRegistry').default } formFieldRegistry
638
+ * @param { import('../core/FieldFactory').default } fieldFactory
639
639
  */
640
640
  constructor(formFieldRegistry, fieldFactory) {
641
641
  this._formFieldRegistry = formFieldRegistry;
642
642
  this._fieldFactory = fieldFactory;
643
643
  }
644
- /**
645
- * Import schema creating fields, attaching additional
646
- * information to each field and adding fields to the
647
- * field registry.
648
- *
649
- * Additional information attached:
650
- *
651
- * * `id` (unless present)
652
- * * `_parent`
653
- * * `_path`
654
- *
655
- * @param {any} schema
656
- *
657
- * @typedef {{ warnings: Error[], schema: any }} ImportResult
658
- * @returns {ImportResult}
644
+ /**
645
+ * Import schema creating fields, attaching additional
646
+ * information to each field and adding fields to the
647
+ * field registry.
648
+ *
649
+ * Additional information attached:
650
+ *
651
+ * * `id` (unless present)
652
+ * * `_parent`
653
+ * * `_path`
654
+ *
655
+ * @param {any} schema
656
+ *
657
+ * @typedef {{ warnings: Error[], schema: any }} ImportResult
658
+ * @returns {ImportResult}
659
659
  */
660
660
 
661
661
 
@@ -674,12 +674,12 @@ class Importer {
674
674
  throw err;
675
675
  }
676
676
  }
677
- /**
678
- * @param {{[x: string]: any}} fieldAttrs
679
- * @param {String} [parentId]
680
- * @param {number} [index]
681
- *
682
- * @return {any} field
677
+ /**
678
+ * @param {{[x: string]: any}} fieldAttrs
679
+ * @param {String} [parentId]
680
+ * @param {number} [index]
681
+ *
682
+ * @return {any} field
683
683
  */
684
684
 
685
685
 
@@ -721,11 +721,11 @@ class Importer {
721
721
 
722
722
  return field;
723
723
  }
724
- /**
725
- * @param {Array<any>} components
726
- * @param {string} parentId
727
- *
728
- * @return {Array<any>} imported components
724
+ /**
725
+ * @param {Array<any>} components
726
+ * @param {string} parentId
727
+ *
728
+ * @return {Array<any>} imported components
729
729
  */
730
730
 
731
731
 
@@ -746,11 +746,11 @@ const DragAndDropContext = createContext({
746
746
  drake: null
747
747
  });
748
748
 
749
- /**
750
- * @param {string} type
751
- * @param {boolean} [strict]
752
- *
753
- * @returns {any}
749
+ /**
750
+ * @param {string} type
751
+ * @param {boolean} [strict]
752
+ *
753
+ * @returns {any}
754
754
  */
755
755
 
756
756
  function getService$1(type, strict) {}
@@ -2080,10 +2080,10 @@ function updatePath(formFieldRegistry, formField, index) {
2080
2080
  }
2081
2081
 
2082
2082
  class AddFormFieldHandler {
2083
- /**
2084
- * @constructor
2085
- * @param { import('../../../FormEditor').default } formEditor
2086
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2083
+ /**
2084
+ * @constructor
2085
+ * @param { import('../../../FormEditor').default } formEditor
2086
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2087
2087
  */
2088
2088
  constructor(formEditor, formFieldRegistry) {
2089
2089
  this._formEditor = formEditor;
@@ -2145,10 +2145,10 @@ class AddFormFieldHandler {
2145
2145
  AddFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2146
2146
 
2147
2147
  class EditFormFieldHandler {
2148
- /**
2149
- * @constructor
2150
- * @param { import('../../../FormEditor').default } formEditor
2151
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2148
+ /**
2149
+ * @constructor
2150
+ * @param { import('../../../FormEditor').default } formEditor
2151
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2152
2152
  */
2153
2153
  constructor(formEditor, formFieldRegistry) {
2154
2154
  this._formEditor = formEditor;
@@ -2223,10 +2223,10 @@ class EditFormFieldHandler {
2223
2223
  EditFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2224
2224
 
2225
2225
  class MoveFormFieldHandler {
2226
- /**
2227
- * @constructor
2228
- * @param { import('../../../FormEditor').default } formEditor
2229
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2226
+ /**
2227
+ * @constructor
2228
+ * @param { import('../../../FormEditor').default } formEditor
2229
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2230
2230
  */
2231
2231
  constructor(formEditor, formFieldRegistry) {
2232
2232
  this._formEditor = formEditor;
@@ -2305,10 +2305,10 @@ class MoveFormFieldHandler {
2305
2305
  MoveFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2306
2306
 
2307
2307
  class RemoveFormFieldHandler {
2308
- /**
2309
- * @constructor
2310
- * @param { import('../../../FormEditor').default } formEditor
2311
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2308
+ /**
2309
+ * @constructor
2310
+ * @param { import('../../../FormEditor').default } formEditor
2311
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2312
2312
  */
2313
2313
  constructor(formEditor, formFieldRegistry) {
2314
2314
  this._formEditor = formEditor;
@@ -2369,9 +2369,9 @@ class RemoveFormFieldHandler {
2369
2369
  RemoveFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2370
2370
 
2371
2371
  class UpdateIdClaimHandler {
2372
- /**
2373
- * @constructor
2374
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2372
+ /**
2373
+ * @constructor
2374
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2375
2375
  */
2376
2376
  constructor(formFieldRegistry) {
2377
2377
  this._formFieldRegistry = formFieldRegistry;
@@ -2409,9 +2409,9 @@ class UpdateIdClaimHandler {
2409
2409
  UpdateIdClaimHandler.$inject = ['formFieldRegistry'];
2410
2410
 
2411
2411
  class UpdateKeyClaimHandler {
2412
- /**
2413
- * @constructor
2414
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2412
+ /**
2413
+ * @constructor
2414
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2415
2415
  */
2416
2416
  constructor(formFieldRegistry) {
2417
2417
  this._formFieldRegistry = formFieldRegistry;
@@ -3404,7 +3404,7 @@ function Palette(props) {
3404
3404
  height: "36",
3405
3405
  viewBox: "0 0 54 54"
3406
3406
  }) : null, jsx("span", {
3407
- class: "fjs-palette-field-text fjs-hide-compact",
3407
+ class: "fjs-palette-field-text",
3408
3408
  children: label
3409
3409
  })]
3410
3410
  });
@@ -3429,10 +3429,10 @@ class PaletteRenderer {
3429
3429
  this._render();
3430
3430
  });
3431
3431
  }
3432
- /**
3433
- * Attach the palette to a parent node.
3434
- *
3435
- * @param {HTMLElement} container
3432
+ /**
3433
+ * Attach the palette to a parent node.
3434
+ *
3435
+ * @param {HTMLElement} container
3436
3436
  */
3437
3437
 
3438
3438
 
@@ -3452,8 +3452,8 @@ class PaletteRenderer {
3452
3452
 
3453
3453
  this._eventBus.fire('palette.attach');
3454
3454
  }
3455
- /**
3456
- * Detach the palette from its parent node.
3455
+ /**
3456
+ * Detach the palette from its parent node.
3457
3457
  */
3458
3458
 
3459
3459
 
@@ -5109,11 +5109,11 @@ function prefixId$1(id) {
5109
5109
  return `bio-properties-panel-${id}`;
5110
5110
  }
5111
5111
 
5112
- /**
5113
- * @param {string} type
5114
- * @param {boolean} [strict]
5115
- *
5116
- * @returns {any}
5112
+ /**
5113
+ * @param {string} type
5114
+ * @param {boolean} [strict]
5115
+ *
5116
+ * @returns {any}
5117
5117
  */
5118
5118
 
5119
5119
  function getService(type, strict) {}
@@ -5188,8 +5188,8 @@ const PropertiesPanelHeaderProvider = {
5188
5188
  }
5189
5189
  };
5190
5190
 
5191
- /**
5192
- * Provide placeholders for empty and multiple state.
5191
+ /**
5192
+ * Provide placeholders for empty and multiple state.
5193
5193
  */
5194
5194
  const PropertiesPanelPlaceholderProvider = {
5195
5195
  getEmpty: () => {
@@ -6071,14 +6071,14 @@ function Value(props) {
6071
6071
  });
6072
6072
  } // helpers //////////
6073
6073
 
6074
- /**
6075
- * Returns copy of object with updated value.
6076
- *
6077
- * @param {Object} properties
6078
- * @param {string} key
6079
- * @param {string} value
6080
- *
6081
- * @returns {Object}
6074
+ /**
6075
+ * Returns copy of object with updated value.
6076
+ *
6077
+ * @param {Object} properties
6078
+ * @param {string} key
6079
+ * @param {string} value
6080
+ *
6081
+ * @returns {Object}
6082
6082
  */
6083
6083
 
6084
6084
 
@@ -6087,14 +6087,14 @@ function updateValue(properties, key, value) {
6087
6087
  [key]: value
6088
6088
  };
6089
6089
  }
6090
- /**
6091
- * Returns copy of object with updated key.
6092
- *
6093
- * @param {Object} properties
6094
- * @param {string} oldKey
6095
- * @param {string} newKey
6096
- *
6097
- * @returns {Object}
6090
+ /**
6091
+ * Returns copy of object with updated key.
6092
+ *
6093
+ * @param {Object} properties
6094
+ * @param {string} oldKey
6095
+ * @param {string} newKey
6096
+ *
6097
+ * @returns {Object}
6098
6098
  */
6099
6099
 
6100
6100
 
@@ -6534,8 +6534,8 @@ function ValuesGroups(field, editField) {
6534
6534
  field
6535
6535
  };
6536
6536
  const valuesSourceId = `${fieldId}-valuesSource`;
6537
- /**
6538
- * @type {Array<Group|ListGroup>}
6537
+ /**
6538
+ * @type {Array<Group|ListGroup>}
6539
6539
  */
6540
6540
 
6541
6541
  const groups = [{
@@ -6640,13 +6640,13 @@ function CustomValuesGroup(field, editField) {
6640
6640
  };
6641
6641
  } // helpers //////////
6642
6642
 
6643
- /**
6644
- * Returns copy of object without key.
6645
- *
6646
- * @param {Object} properties
6647
- * @param {string} oldKey
6648
- *
6649
- * @returns {Object}
6643
+ /**
6644
+ * Returns copy of object without key.
6645
+ *
6646
+ * @param {Object} properties
6647
+ * @param {string} oldKey
6648
+ *
6649
+ * @returns {Object}
6650
6650
  */
6651
6651
 
6652
6652
  function removeKey(properties, oldKey) {
@@ -6712,9 +6712,9 @@ function FormPropertiesPanel(props) {
6712
6712
  }, []);
6713
6713
  useLayoutEffect(() => {
6714
6714
  const onFieldChanged = () => {
6715
- /**
6716
- * TODO(pinussilvestrus): update with actual updated element,
6717
- * once we have a proper updater/change support
6715
+ /**
6716
+ * TODO(pinussilvestrus): update with actual updated element,
6717
+ * once we have a proper updater/change support
6718
6718
  */
6719
6719
  _update(selection.get() || schema);
6720
6720
  };
@@ -6772,10 +6772,10 @@ class PropertiesPanelRenderer {
6772
6772
  this._render();
6773
6773
  });
6774
6774
  }
6775
- /**
6776
- * Attach the properties panel to a parent node.
6777
- *
6778
- * @param {HTMLElement} container
6775
+ /**
6776
+ * Attach the properties panel to a parent node.
6777
+ *
6778
+ * @param {HTMLElement} container
6779
6779
  */
6780
6780
 
6781
6781
 
@@ -6795,8 +6795,8 @@ class PropertiesPanelRenderer {
6795
6795
 
6796
6796
  this._eventBus.fire('propertiesPanel.attach');
6797
6797
  }
6798
- /**
6799
- * Detach the properties panel from its parent node.
6798
+ /**
6799
+ * Detach the properties panel from its parent node.
6800
6800
  */
6801
6801
 
6802
6802
 
@@ -6836,48 +6836,48 @@ var PropertiesPanelModule = {
6836
6836
  };
6837
6837
 
6838
6838
  const ids = new Ids([32, 36, 1]);
6839
- /**
6840
- * @typedef { import('./types').Injector } Injector
6841
- * @typedef { import('./types').Module } Module
6842
- * @typedef { import('./types').Schema } Schema
6843
- *
6844
- * @typedef { import('./types').FormEditorOptions } FormEditorOptions
6845
- * @typedef { import('./types').FormEditorProperties } FormEditorProperties
6846
- *
6847
- * @typedef { {
6848
- * properties: FormEditorProperties,
6849
- * schema: Schema
6850
- * } } State
6851
- *
6852
- * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
6853
- * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
6854
- * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
6839
+ /**
6840
+ * @typedef { import('./types').Injector } Injector
6841
+ * @typedef { import('./types').Module } Module
6842
+ * @typedef { import('./types').Schema } Schema
6843
+ *
6844
+ * @typedef { import('./types').FormEditorOptions } FormEditorOptions
6845
+ * @typedef { import('./types').FormEditorProperties } FormEditorProperties
6846
+ *
6847
+ * @typedef { {
6848
+ * properties: FormEditorProperties,
6849
+ * schema: Schema
6850
+ * } } State
6851
+ *
6852
+ * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
6853
+ * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
6854
+ * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
6855
6855
  */
6856
6856
 
6857
- /**
6858
- * The form editor.
6857
+ /**
6858
+ * The form editor.
6859
6859
  */
6860
6860
 
6861
6861
  class FormEditor {
6862
- /**
6863
- * @constructor
6864
- * @param {FormEditorOptions} options
6862
+ /**
6863
+ * @constructor
6864
+ * @param {FormEditorOptions} options
6865
6865
  */
6866
6866
  constructor(options = {}) {
6867
- /**
6868
- * @public
6869
- * @type {OnEventType}
6867
+ /**
6868
+ * @public
6869
+ * @type {OnEventType}
6870
6870
  */
6871
6871
  this.on = this._onEvent;
6872
- /**
6873
- * @public
6874
- * @type {String}
6872
+ /**
6873
+ * @public
6874
+ * @type {String}
6875
6875
  */
6876
6876
 
6877
6877
  this._id = ids.next();
6878
- /**
6879
- * @private
6880
- * @type {Element}
6878
+ /**
6879
+ * @private
6880
+ * @type {Element}
6881
6881
  */
6882
6882
 
6883
6883
  this._container = createFormContainer();
@@ -6890,15 +6890,15 @@ class FormEditor {
6890
6890
  injector = this._createInjector(options, this._container),
6891
6891
  properties = {}
6892
6892
  } = options;
6893
- /**
6894
- * @private
6895
- * @type {any}
6893
+ /**
6894
+ * @private
6895
+ * @type {any}
6896
6896
  */
6897
6897
 
6898
6898
  this.exporter = exporter;
6899
- /**
6900
- * @private
6901
- * @type {State}
6899
+ /**
6900
+ * @private
6901
+ * @type {State}
6902
6902
  */
6903
6903
 
6904
6904
  this._state = {
@@ -6930,10 +6930,10 @@ class FormEditor {
6930
6930
 
6931
6931
  this._detach(false);
6932
6932
  }
6933
- /**
6934
- * @param {Schema} schema
6935
- *
6936
- * @return {Promise<{ warnings: Array<any> }>}
6933
+ /**
6934
+ * @param {Schema} schema
6935
+ *
6936
+ * @return {Promise<{ warnings: Array<any> }>}
6937
6937
  */
6938
6938
 
6939
6939
 
@@ -6967,16 +6967,16 @@ class FormEditor {
6967
6967
  }
6968
6968
  });
6969
6969
  }
6970
- /**
6971
- * @returns {Schema}
6970
+ /**
6971
+ * @returns {Schema}
6972
6972
  */
6973
6973
 
6974
6974
 
6975
6975
  saveSchema() {
6976
6976
  return this.getSchema();
6977
6977
  }
6978
- /**
6979
- * @returns {Schema}
6978
+ /**
6979
+ * @returns {Schema}
6980
6980
  */
6981
6981
 
6982
6982
 
@@ -6987,8 +6987,8 @@ class FormEditor {
6987
6987
 
6988
6988
  return exportSchema(schema, this.exporter, schemaVersion);
6989
6989
  }
6990
- /**
6991
- * @param {Element|string} parentNode
6990
+ /**
6991
+ * @param {Element|string} parentNode
6992
6992
  */
6993
6993
 
6994
6994
 
@@ -7012,10 +7012,10 @@ class FormEditor {
7012
7012
  detach() {
7013
7013
  this._detach();
7014
7014
  }
7015
- /**
7016
- * @internal
7017
- *
7018
- * @param {boolean} [emit]
7015
+ /**
7016
+ * @internal
7017
+ *
7018
+ * @param {boolean} [emit]
7019
7019
  */
7020
7020
 
7021
7021
 
@@ -7033,9 +7033,9 @@ class FormEditor {
7033
7033
 
7034
7034
  parentNode.removeChild(container);
7035
7035
  }
7036
- /**
7037
- * @param {any} property
7038
- * @param {any} value
7036
+ /**
7037
+ * @param {any} property
7038
+ * @param {any} value
7039
7039
  */
7040
7040
 
7041
7041
 
@@ -7046,22 +7046,22 @@ class FormEditor {
7046
7046
  properties
7047
7047
  });
7048
7048
  }
7049
- /**
7050
- * @param {string} type
7051
- * @param {Function} handler
7049
+ /**
7050
+ * @param {string} type
7051
+ * @param {Function} handler
7052
7052
  */
7053
7053
 
7054
7054
 
7055
7055
  off(type, handler) {
7056
7056
  this.get('eventBus').off(type, handler);
7057
7057
  }
7058
- /**
7059
- * @internal
7060
- *
7061
- * @param {FormEditorOptions} options
7062
- * @param {Element} container
7063
- *
7064
- * @returns {Injector}
7058
+ /**
7059
+ * @internal
7060
+ *
7061
+ * @param {FormEditorOptions} options
7062
+ * @param {Element} container
7063
+ *
7064
+ * @returns {Injector}
7065
7065
  */
7066
7066
 
7067
7067
 
@@ -7082,24 +7082,24 @@ class FormEditor {
7082
7082
  formEditor: ['value', this]
7083
7083
  }, core, ...modules, ...additionalModules]);
7084
7084
  }
7085
- /**
7086
- * @internal
7085
+ /**
7086
+ * @internal
7087
7087
  */
7088
7088
 
7089
7089
 
7090
7090
  _emit(type, data) {
7091
7091
  this.get('eventBus').fire(type, data);
7092
7092
  }
7093
- /**
7094
- * @internal
7093
+ /**
7094
+ * @internal
7095
7095
  */
7096
7096
 
7097
7097
 
7098
7098
  _getState() {
7099
7099
  return this._state;
7100
7100
  }
7101
- /**
7102
- * @internal
7101
+ /**
7102
+ * @internal
7103
7103
  */
7104
7104
 
7105
7105
 
@@ -7110,16 +7110,16 @@ class FormEditor {
7110
7110
 
7111
7111
  this._emit('changed', this._getState());
7112
7112
  }
7113
- /**
7114
- * @internal
7113
+ /**
7114
+ * @internal
7115
7115
  */
7116
7116
 
7117
7117
 
7118
7118
  _getModules() {
7119
7119
  return [ModelingModule, EditorActionsModule, KeyboardModule, SelectionModule, PaletteModule, PropertiesPanelModule];
7120
7120
  }
7121
- /**
7122
- * @internal
7121
+ /**
7122
+ * @internal
7123
7123
  */
7124
7124
 
7125
7125