@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.cjs CHANGED
@@ -495,10 +495,10 @@ function invokeFunction(fn, args) {
495
495
  return fn.apply(null, args);
496
496
  }
497
497
 
498
- /**
499
- * A factory to create a configurable debouncer.
500
- *
501
- * @param {number|boolean} [config=true]
498
+ /**
499
+ * A factory to create a configurable debouncer.
500
+ *
501
+ * @param {number|boolean} [config=true]
502
502
  */
503
503
 
504
504
  function DebounceFactory(config = true) {
@@ -513,11 +513,11 @@ function DebounceFactory(config = true) {
513
513
  DebounceFactory.$inject = ['config.debounce'];
514
514
 
515
515
  class FieldFactory {
516
- /**
517
- * @constructor
518
- *
519
- * @param { import('./FormFieldRegistry').default } formFieldRegistry
520
- * @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
516
+ /**
517
+ * @constructor
518
+ *
519
+ * @param { import('./FormFieldRegistry').default } formFieldRegistry
520
+ * @param { import('@bpmn-io/form-js-viewer').FormFields } formFields
521
521
  */
522
522
  constructor(formFieldRegistry, formFields) {
523
523
  this._formFieldRegistry = formFieldRegistry;
@@ -594,11 +594,11 @@ class FieldFactory {
594
594
  FieldFactory.$inject = ['formFieldRegistry', 'formFields'];
595
595
 
596
596
  class FormFieldRegistry extends formJsViewer.FormFieldRegistry {
597
- /**
598
- * Updates a form fields id.
599
- *
600
- * @param {Object} formField
601
- * @param {string} newId
597
+ /**
598
+ * Updates a form fields id.
599
+ *
600
+ * @param {Object} formField
601
+ * @param {string} newId
602
602
  */
603
603
  updateId(formField, newId) {
604
604
  this._validateId(newId);
@@ -619,13 +619,13 @@ class FormFieldRegistry extends formJsViewer.FormFieldRegistry {
619
619
  }
620
620
  }
621
621
  }
622
- /**
623
- * Validate the suitability of the given id and signals a problem
624
- * with an exception.
625
- *
626
- * @param {string} id
627
- *
628
- * @throws {Error} if id is empty or already assigned
622
+ /**
623
+ * Validate the suitability of the given id and signals a problem
624
+ * with an exception.
625
+ *
626
+ * @param {string} id
627
+ *
628
+ * @throws {Error} if id is empty or already assigned
629
629
  */
630
630
 
631
631
 
@@ -642,30 +642,30 @@ class FormFieldRegistry extends formJsViewer.FormFieldRegistry {
642
642
  }
643
643
 
644
644
  class Importer {
645
- /**
646
- * @constructor
647
- * @param { import('../core/FormFieldRegistry').default } formFieldRegistry
648
- * @param { import('../core/FieldFactory').default } fieldFactory
645
+ /**
646
+ * @constructor
647
+ * @param { import('../core/FormFieldRegistry').default } formFieldRegistry
648
+ * @param { import('../core/FieldFactory').default } fieldFactory
649
649
  */
650
650
  constructor(formFieldRegistry, fieldFactory) {
651
651
  this._formFieldRegistry = formFieldRegistry;
652
652
  this._fieldFactory = fieldFactory;
653
653
  }
654
- /**
655
- * Import schema creating fields, attaching additional
656
- * information to each field and adding fields to the
657
- * field registry.
658
- *
659
- * Additional information attached:
660
- *
661
- * * `id` (unless present)
662
- * * `_parent`
663
- * * `_path`
664
- *
665
- * @param {any} schema
666
- *
667
- * @typedef {{ warnings: Error[], schema: any }} ImportResult
668
- * @returns {ImportResult}
654
+ /**
655
+ * Import schema creating fields, attaching additional
656
+ * information to each field and adding fields to the
657
+ * field registry.
658
+ *
659
+ * Additional information attached:
660
+ *
661
+ * * `id` (unless present)
662
+ * * `_parent`
663
+ * * `_path`
664
+ *
665
+ * @param {any} schema
666
+ *
667
+ * @typedef {{ warnings: Error[], schema: any }} ImportResult
668
+ * @returns {ImportResult}
669
669
  */
670
670
 
671
671
 
@@ -684,12 +684,12 @@ class Importer {
684
684
  throw err;
685
685
  }
686
686
  }
687
- /**
688
- * @param {{[x: string]: any}} fieldAttrs
689
- * @param {String} [parentId]
690
- * @param {number} [index]
691
- *
692
- * @return {any} field
687
+ /**
688
+ * @param {{[x: string]: any}} fieldAttrs
689
+ * @param {String} [parentId]
690
+ * @param {number} [index]
691
+ *
692
+ * @return {any} field
693
693
  */
694
694
 
695
695
 
@@ -731,11 +731,11 @@ class Importer {
731
731
 
732
732
  return field;
733
733
  }
734
- /**
735
- * @param {Array<any>} components
736
- * @param {string} parentId
737
- *
738
- * @return {Array<any>} imported components
734
+ /**
735
+ * @param {Array<any>} components
736
+ * @param {string} parentId
737
+ *
738
+ * @return {Array<any>} imported components
739
739
  */
740
740
 
741
741
 
@@ -756,11 +756,11 @@ const DragAndDropContext = preact.createContext({
756
756
  drake: null
757
757
  });
758
758
 
759
- /**
760
- * @param {string} type
761
- * @param {boolean} [strict]
762
- *
763
- * @returns {any}
759
+ /**
760
+ * @param {string} type
761
+ * @param {boolean} [strict]
762
+ *
763
+ * @returns {any}
764
764
  */
765
765
 
766
766
  function getService$1(type, strict) {}
@@ -2090,10 +2090,10 @@ function updatePath(formFieldRegistry, formField, index) {
2090
2090
  }
2091
2091
 
2092
2092
  class AddFormFieldHandler {
2093
- /**
2094
- * @constructor
2095
- * @param { import('../../../FormEditor').default } formEditor
2096
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2093
+ /**
2094
+ * @constructor
2095
+ * @param { import('../../../FormEditor').default } formEditor
2096
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2097
2097
  */
2098
2098
  constructor(formEditor, formFieldRegistry) {
2099
2099
  this._formEditor = formEditor;
@@ -2155,10 +2155,10 @@ class AddFormFieldHandler {
2155
2155
  AddFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2156
2156
 
2157
2157
  class EditFormFieldHandler {
2158
- /**
2159
- * @constructor
2160
- * @param { import('../../../FormEditor').default } formEditor
2161
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2158
+ /**
2159
+ * @constructor
2160
+ * @param { import('../../../FormEditor').default } formEditor
2161
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2162
2162
  */
2163
2163
  constructor(formEditor, formFieldRegistry) {
2164
2164
  this._formEditor = formEditor;
@@ -2233,10 +2233,10 @@ class EditFormFieldHandler {
2233
2233
  EditFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2234
2234
 
2235
2235
  class MoveFormFieldHandler {
2236
- /**
2237
- * @constructor
2238
- * @param { import('../../../FormEditor').default } formEditor
2239
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2236
+ /**
2237
+ * @constructor
2238
+ * @param { import('../../../FormEditor').default } formEditor
2239
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2240
2240
  */
2241
2241
  constructor(formEditor, formFieldRegistry) {
2242
2242
  this._formEditor = formEditor;
@@ -2315,10 +2315,10 @@ class MoveFormFieldHandler {
2315
2315
  MoveFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2316
2316
 
2317
2317
  class RemoveFormFieldHandler {
2318
- /**
2319
- * @constructor
2320
- * @param { import('../../../FormEditor').default } formEditor
2321
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2318
+ /**
2319
+ * @constructor
2320
+ * @param { import('../../../FormEditor').default } formEditor
2321
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2322
2322
  */
2323
2323
  constructor(formEditor, formFieldRegistry) {
2324
2324
  this._formEditor = formEditor;
@@ -2379,9 +2379,9 @@ class RemoveFormFieldHandler {
2379
2379
  RemoveFormFieldHandler.$inject = ['formEditor', 'formFieldRegistry'];
2380
2380
 
2381
2381
  class UpdateIdClaimHandler {
2382
- /**
2383
- * @constructor
2384
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2382
+ /**
2383
+ * @constructor
2384
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2385
2385
  */
2386
2386
  constructor(formFieldRegistry) {
2387
2387
  this._formFieldRegistry = formFieldRegistry;
@@ -2419,9 +2419,9 @@ class UpdateIdClaimHandler {
2419
2419
  UpdateIdClaimHandler.$inject = ['formFieldRegistry'];
2420
2420
 
2421
2421
  class UpdateKeyClaimHandler {
2422
- /**
2423
- * @constructor
2424
- * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2422
+ /**
2423
+ * @constructor
2424
+ * @param { import('../../../core/FormFieldRegistry').default } formFieldRegistry
2425
2425
  */
2426
2426
  constructor(formFieldRegistry) {
2427
2427
  this._formFieldRegistry = formFieldRegistry;
@@ -3414,7 +3414,7 @@ function Palette(props) {
3414
3414
  height: "36",
3415
3415
  viewBox: "0 0 54 54"
3416
3416
  }) : null, jsxRuntime.jsx("span", {
3417
- class: "fjs-palette-field-text fjs-hide-compact",
3417
+ class: "fjs-palette-field-text",
3418
3418
  children: label
3419
3419
  })]
3420
3420
  });
@@ -3439,10 +3439,10 @@ class PaletteRenderer {
3439
3439
  this._render();
3440
3440
  });
3441
3441
  }
3442
- /**
3443
- * Attach the palette to a parent node.
3444
- *
3445
- * @param {HTMLElement} container
3442
+ /**
3443
+ * Attach the palette to a parent node.
3444
+ *
3445
+ * @param {HTMLElement} container
3446
3446
  */
3447
3447
 
3448
3448
 
@@ -3462,8 +3462,8 @@ class PaletteRenderer {
3462
3462
 
3463
3463
  this._eventBus.fire('palette.attach');
3464
3464
  }
3465
- /**
3466
- * Detach the palette from its parent node.
3465
+ /**
3466
+ * Detach the palette from its parent node.
3467
3467
  */
3468
3468
 
3469
3469
 
@@ -5119,11 +5119,11 @@ function prefixId$1(id) {
5119
5119
  return `bio-properties-panel-${id}`;
5120
5120
  }
5121
5121
 
5122
- /**
5123
- * @param {string} type
5124
- * @param {boolean} [strict]
5125
- *
5126
- * @returns {any}
5122
+ /**
5123
+ * @param {string} type
5124
+ * @param {boolean} [strict]
5125
+ *
5126
+ * @returns {any}
5127
5127
  */
5128
5128
 
5129
5129
  function getService(type, strict) {}
@@ -5198,8 +5198,8 @@ const PropertiesPanelHeaderProvider = {
5198
5198
  }
5199
5199
  };
5200
5200
 
5201
- /**
5202
- * Provide placeholders for empty and multiple state.
5201
+ /**
5202
+ * Provide placeholders for empty and multiple state.
5203
5203
  */
5204
5204
  const PropertiesPanelPlaceholderProvider = {
5205
5205
  getEmpty: () => {
@@ -6081,14 +6081,14 @@ function Value(props) {
6081
6081
  });
6082
6082
  } // helpers //////////
6083
6083
 
6084
- /**
6085
- * Returns copy of object with updated value.
6086
- *
6087
- * @param {Object} properties
6088
- * @param {string} key
6089
- * @param {string} value
6090
- *
6091
- * @returns {Object}
6084
+ /**
6085
+ * Returns copy of object with updated value.
6086
+ *
6087
+ * @param {Object} properties
6088
+ * @param {string} key
6089
+ * @param {string} value
6090
+ *
6091
+ * @returns {Object}
6092
6092
  */
6093
6093
 
6094
6094
 
@@ -6097,14 +6097,14 @@ function updateValue(properties, key, value) {
6097
6097
  [key]: value
6098
6098
  };
6099
6099
  }
6100
- /**
6101
- * Returns copy of object with updated key.
6102
- *
6103
- * @param {Object} properties
6104
- * @param {string} oldKey
6105
- * @param {string} newKey
6106
- *
6107
- * @returns {Object}
6100
+ /**
6101
+ * Returns copy of object with updated key.
6102
+ *
6103
+ * @param {Object} properties
6104
+ * @param {string} oldKey
6105
+ * @param {string} newKey
6106
+ *
6107
+ * @returns {Object}
6108
6108
  */
6109
6109
 
6110
6110
 
@@ -6544,8 +6544,8 @@ function ValuesGroups(field, editField) {
6544
6544
  field
6545
6545
  };
6546
6546
  const valuesSourceId = `${fieldId}-valuesSource`;
6547
- /**
6548
- * @type {Array<Group|ListGroup>}
6547
+ /**
6548
+ * @type {Array<Group|ListGroup>}
6549
6549
  */
6550
6550
 
6551
6551
  const groups = [{
@@ -6650,13 +6650,13 @@ function CustomValuesGroup(field, editField) {
6650
6650
  };
6651
6651
  } // helpers //////////
6652
6652
 
6653
- /**
6654
- * Returns copy of object without key.
6655
- *
6656
- * @param {Object} properties
6657
- * @param {string} oldKey
6658
- *
6659
- * @returns {Object}
6653
+ /**
6654
+ * Returns copy of object without key.
6655
+ *
6656
+ * @param {Object} properties
6657
+ * @param {string} oldKey
6658
+ *
6659
+ * @returns {Object}
6660
6660
  */
6661
6661
 
6662
6662
  function removeKey(properties, oldKey) {
@@ -6722,9 +6722,9 @@ function FormPropertiesPanel(props) {
6722
6722
  }, []);
6723
6723
  hooks$1.useLayoutEffect(() => {
6724
6724
  const onFieldChanged = () => {
6725
- /**
6726
- * TODO(pinussilvestrus): update with actual updated element,
6727
- * once we have a proper updater/change support
6725
+ /**
6726
+ * TODO(pinussilvestrus): update with actual updated element,
6727
+ * once we have a proper updater/change support
6728
6728
  */
6729
6729
  _update(selection.get() || schema);
6730
6730
  };
@@ -6782,10 +6782,10 @@ class PropertiesPanelRenderer {
6782
6782
  this._render();
6783
6783
  });
6784
6784
  }
6785
- /**
6786
- * Attach the properties panel to a parent node.
6787
- *
6788
- * @param {HTMLElement} container
6785
+ /**
6786
+ * Attach the properties panel to a parent node.
6787
+ *
6788
+ * @param {HTMLElement} container
6789
6789
  */
6790
6790
 
6791
6791
 
@@ -6805,8 +6805,8 @@ class PropertiesPanelRenderer {
6805
6805
 
6806
6806
  this._eventBus.fire('propertiesPanel.attach');
6807
6807
  }
6808
- /**
6809
- * Detach the properties panel from its parent node.
6808
+ /**
6809
+ * Detach the properties panel from its parent node.
6810
6810
  */
6811
6811
 
6812
6812
 
@@ -6846,48 +6846,48 @@ var PropertiesPanelModule = {
6846
6846
  };
6847
6847
 
6848
6848
  const ids = new Ids__default['default']([32, 36, 1]);
6849
- /**
6850
- * @typedef { import('./types').Injector } Injector
6851
- * @typedef { import('./types').Module } Module
6852
- * @typedef { import('./types').Schema } Schema
6853
- *
6854
- * @typedef { import('./types').FormEditorOptions } FormEditorOptions
6855
- * @typedef { import('./types').FormEditorProperties } FormEditorProperties
6856
- *
6857
- * @typedef { {
6858
- * properties: FormEditorProperties,
6859
- * schema: Schema
6860
- * } } State
6861
- *
6862
- * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
6863
- * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
6864
- * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
6849
+ /**
6850
+ * @typedef { import('./types').Injector } Injector
6851
+ * @typedef { import('./types').Module } Module
6852
+ * @typedef { import('./types').Schema } Schema
6853
+ *
6854
+ * @typedef { import('./types').FormEditorOptions } FormEditorOptions
6855
+ * @typedef { import('./types').FormEditorProperties } FormEditorProperties
6856
+ *
6857
+ * @typedef { {
6858
+ * properties: FormEditorProperties,
6859
+ * schema: Schema
6860
+ * } } State
6861
+ *
6862
+ * @typedef { (type:string, priority:number, handler:Function) => void } OnEventWithPriority
6863
+ * @typedef { (type:string, handler:Function) => void } OnEventWithOutPriority
6864
+ * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
6865
6865
  */
6866
6866
 
6867
- /**
6868
- * The form editor.
6867
+ /**
6868
+ * The form editor.
6869
6869
  */
6870
6870
 
6871
6871
  class FormEditor {
6872
- /**
6873
- * @constructor
6874
- * @param {FormEditorOptions} options
6872
+ /**
6873
+ * @constructor
6874
+ * @param {FormEditorOptions} options
6875
6875
  */
6876
6876
  constructor(options = {}) {
6877
- /**
6878
- * @public
6879
- * @type {OnEventType}
6877
+ /**
6878
+ * @public
6879
+ * @type {OnEventType}
6880
6880
  */
6881
6881
  this.on = this._onEvent;
6882
- /**
6883
- * @public
6884
- * @type {String}
6882
+ /**
6883
+ * @public
6884
+ * @type {String}
6885
6885
  */
6886
6886
 
6887
6887
  this._id = ids.next();
6888
- /**
6889
- * @private
6890
- * @type {Element}
6888
+ /**
6889
+ * @private
6890
+ * @type {Element}
6891
6891
  */
6892
6892
 
6893
6893
  this._container = formJsViewer.createFormContainer();
@@ -6900,15 +6900,15 @@ class FormEditor {
6900
6900
  injector = this._createInjector(options, this._container),
6901
6901
  properties = {}
6902
6902
  } = options;
6903
- /**
6904
- * @private
6905
- * @type {any}
6903
+ /**
6904
+ * @private
6905
+ * @type {any}
6906
6906
  */
6907
6907
 
6908
6908
  this.exporter = exporter;
6909
- /**
6910
- * @private
6911
- * @type {State}
6909
+ /**
6910
+ * @private
6911
+ * @type {State}
6912
6912
  */
6913
6913
 
6914
6914
  this._state = {
@@ -6940,10 +6940,10 @@ class FormEditor {
6940
6940
 
6941
6941
  this._detach(false);
6942
6942
  }
6943
- /**
6944
- * @param {Schema} schema
6945
- *
6946
- * @return {Promise<{ warnings: Array<any> }>}
6943
+ /**
6944
+ * @param {Schema} schema
6945
+ *
6946
+ * @return {Promise<{ warnings: Array<any> }>}
6947
6947
  */
6948
6948
 
6949
6949
 
@@ -6977,16 +6977,16 @@ class FormEditor {
6977
6977
  }
6978
6978
  });
6979
6979
  }
6980
- /**
6981
- * @returns {Schema}
6980
+ /**
6981
+ * @returns {Schema}
6982
6982
  */
6983
6983
 
6984
6984
 
6985
6985
  saveSchema() {
6986
6986
  return this.getSchema();
6987
6987
  }
6988
- /**
6989
- * @returns {Schema}
6988
+ /**
6989
+ * @returns {Schema}
6990
6990
  */
6991
6991
 
6992
6992
 
@@ -6997,8 +6997,8 @@ class FormEditor {
6997
6997
 
6998
6998
  return exportSchema(schema, this.exporter, formJsViewer.schemaVersion);
6999
6999
  }
7000
- /**
7001
- * @param {Element|string} parentNode
7000
+ /**
7001
+ * @param {Element|string} parentNode
7002
7002
  */
7003
7003
 
7004
7004
 
@@ -7022,10 +7022,10 @@ class FormEditor {
7022
7022
  detach() {
7023
7023
  this._detach();
7024
7024
  }
7025
- /**
7026
- * @internal
7027
- *
7028
- * @param {boolean} [emit]
7025
+ /**
7026
+ * @internal
7027
+ *
7028
+ * @param {boolean} [emit]
7029
7029
  */
7030
7030
 
7031
7031
 
@@ -7043,9 +7043,9 @@ class FormEditor {
7043
7043
 
7044
7044
  parentNode.removeChild(container);
7045
7045
  }
7046
- /**
7047
- * @param {any} property
7048
- * @param {any} value
7046
+ /**
7047
+ * @param {any} property
7048
+ * @param {any} value
7049
7049
  */
7050
7050
 
7051
7051
 
@@ -7056,22 +7056,22 @@ class FormEditor {
7056
7056
  properties
7057
7057
  });
7058
7058
  }
7059
- /**
7060
- * @param {string} type
7061
- * @param {Function} handler
7059
+ /**
7060
+ * @param {string} type
7061
+ * @param {Function} handler
7062
7062
  */
7063
7063
 
7064
7064
 
7065
7065
  off(type, handler) {
7066
7066
  this.get('eventBus').off(type, handler);
7067
7067
  }
7068
- /**
7069
- * @internal
7070
- *
7071
- * @param {FormEditorOptions} options
7072
- * @param {Element} container
7073
- *
7074
- * @returns {Injector}
7068
+ /**
7069
+ * @internal
7070
+ *
7071
+ * @param {FormEditorOptions} options
7072
+ * @param {Element} container
7073
+ *
7074
+ * @returns {Injector}
7075
7075
  */
7076
7076
 
7077
7077
 
@@ -7092,24 +7092,24 @@ class FormEditor {
7092
7092
  formEditor: ['value', this]
7093
7093
  }, core, ...modules, ...additionalModules]);
7094
7094
  }
7095
- /**
7096
- * @internal
7095
+ /**
7096
+ * @internal
7097
7097
  */
7098
7098
 
7099
7099
 
7100
7100
  _emit(type, data) {
7101
7101
  this.get('eventBus').fire(type, data);
7102
7102
  }
7103
- /**
7104
- * @internal
7103
+ /**
7104
+ * @internal
7105
7105
  */
7106
7106
 
7107
7107
 
7108
7108
  _getState() {
7109
7109
  return this._state;
7110
7110
  }
7111
- /**
7112
- * @internal
7111
+ /**
7112
+ * @internal
7113
7113
  */
7114
7114
 
7115
7115
 
@@ -7120,16 +7120,16 @@ class FormEditor {
7120
7120
 
7121
7121
  this._emit('changed', this._getState());
7122
7122
  }
7123
- /**
7124
- * @internal
7123
+ /**
7124
+ * @internal
7125
7125
  */
7126
7126
 
7127
7127
 
7128
7128
  _getModules() {
7129
7129
  return [ModelingModule, EditorActionsModule, KeyboardModule, SelectionModule, PaletteModule, PropertiesPanelModule];
7130
7130
  }
7131
- /**
7132
- * @internal
7131
+ /**
7132
+ * @internal
7133
7133
  */
7134
7134
 
7135
7135