@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
@@ -1,9 +1,9 @@
1
- export default function LabelEntry(props: any): {
2
- id: string;
3
- component: typeof Label;
4
- editField: any;
5
- field: any;
6
- isEdited: any;
7
- }[];
8
- declare function Label(props: any): any;
9
- export {};
1
+ export default function LabelEntry(props: any): {
2
+ id: string;
3
+ component: typeof Label;
4
+ editField: any;
5
+ field: any;
6
+ isEdited: any;
7
+ }[];
8
+ declare function Label(props: any): any;
9
+ export {};
@@ -1,4 +1,4 @@
1
- export default function StaticValuesSourceEntry(props: any): {
2
- items: any;
3
- add: (e: any) => void;
4
- };
1
+ export default function StaticValuesSourceEntry(props: any): {
2
+ items: any;
3
+ add: (e: any) => void;
4
+ };
@@ -1,9 +1,9 @@
1
- export default function TextEntry(props: any): {
2
- id: string;
3
- component: typeof Text;
4
- editField: any;
5
- field: any;
6
- isEdited: any;
7
- }[];
8
- declare function Text(props: any): any;
9
- export {};
1
+ export default function TextEntry(props: any): {
2
+ id: string;
3
+ component: typeof Text;
4
+ editField: any;
5
+ field: any;
6
+ isEdited: any;
7
+ }[];
8
+ declare function Text(props: any): any;
9
+ export {};
@@ -1,11 +1,11 @@
1
- export default function ValueEntry(props: any): {
2
- component: typeof Label;
3
- editField: any;
4
- field: any;
5
- id: string;
6
- idPrefix: any;
7
- index: any;
8
- validateFactory: any;
9
- }[];
10
- declare function Label(props: any): any;
11
- export {};
1
+ export default function ValueEntry(props: any): {
2
+ component: typeof Label;
3
+ editField: any;
4
+ field: any;
5
+ id: string;
6
+ idPrefix: any;
7
+ index: any;
8
+ validateFactory: any;
9
+ }[];
10
+ declare function Label(props: any): any;
11
+ export {};
@@ -1,9 +1,9 @@
1
- export default function ValuesSourceSelectEntry(props: any): {
2
- id: string;
3
- component: typeof ValuesSourceSelect;
4
- isEdited: any;
5
- editField: any;
6
- field: any;
7
- }[];
8
- declare function ValuesSourceSelect(props: any): any;
9
- export {};
1
+ export default function ValuesSourceSelectEntry(props: any): {
2
+ id: string;
3
+ component: typeof ValuesSourceSelect;
4
+ isEdited: any;
5
+ editField: any;
6
+ field: any;
7
+ }[];
8
+ declare function ValuesSourceSelect(props: any): any;
9
+ export {};
@@ -1,15 +1,15 @@
1
- export function getValuesSource(field: any): string;
2
- export namespace VALUES_SOURCES {
3
- const STATIC: string;
4
- const INPUT: string;
5
- }
6
- export const VALUES_SOURCE_DEFAULT: string;
7
- export const VALUES_SOURCES_LABELS: {
8
- [x: string]: string;
9
- };
10
- export const VALUES_SOURCES_PATHS: {
11
- [x: string]: string[];
12
- };
13
- export const VALUES_SOURCES_DEFAULTS: {
14
- [x: string]: string | any[];
15
- };
1
+ export function getValuesSource(field: any): string;
2
+ export namespace VALUES_SOURCES {
3
+ const STATIC: string;
4
+ const INPUT: string;
5
+ }
6
+ export const VALUES_SOURCE_DEFAULT: string;
7
+ export const VALUES_SOURCES_LABELS: {
8
+ [x: string]: string;
9
+ };
10
+ export const VALUES_SOURCES_PATHS: {
11
+ [x: string]: string[];
12
+ };
13
+ export const VALUES_SOURCES_DEFAULTS: {
14
+ [x: string]: string | any[];
15
+ };
@@ -1,14 +1,14 @@
1
- export { default as ActionEntry } from "./ActionEntry";
2
- export { default as ColumnsEntry } from "./ColumnsEntry";
3
- export { default as DescriptionEntry } from "./DescriptionEntry";
4
- export { default as DefaultValueEntry } from "./DefaultValueEntry";
5
- export { default as DisabledEntry } from "./DisabledEntry";
6
- export { default as IdEntry } from "./IdEntry";
7
- export { default as KeyEntry } from "./KeyEntry";
8
- export { default as LabelEntry } from "./LabelEntry";
9
- export { default as TextEntry } from "./TextEntry";
10
- export { default as ValueEntry } from "./ValueEntry";
11
- export { default as CustomValueEntry } from "./CustomValueEntry";
12
- export { default as ValuesSourceSelectEntry } from "./ValuesSourceSelectEntry";
13
- export { default as InputKeyValuesSourceEntry } from "./InputKeyValuesSourceEntry";
14
- export { default as StaticValuesSourceEntry } from "./StaticValuesSourceEntry";
1
+ export { default as ActionEntry } from "./ActionEntry";
2
+ export { default as ColumnsEntry } from "./ColumnsEntry";
3
+ export { default as DescriptionEntry } from "./DescriptionEntry";
4
+ export { default as DefaultValueEntry } from "./DefaultValueEntry";
5
+ export { default as DisabledEntry } from "./DisabledEntry";
6
+ export { default as IdEntry } from "./IdEntry";
7
+ export { default as KeyEntry } from "./KeyEntry";
8
+ export { default as LabelEntry } from "./LabelEntry";
9
+ export { default as TextEntry } from "./TextEntry";
10
+ export { default as ValueEntry } from "./ValueEntry";
11
+ export { default as CustomValueEntry } from "./CustomValueEntry";
12
+ export { default as ValuesSourceSelectEntry } from "./ValuesSourceSelectEntry";
13
+ export { default as InputKeyValuesSourceEntry } from "./InputKeyValuesSourceEntry";
14
+ export { default as StaticValuesSourceEntry } from "./StaticValuesSourceEntry";
@@ -1,31 +1,31 @@
1
- export default function CustomValuesGroup(field: any, editField: any): {
2
- add: (event: any) => void;
3
- component: any;
4
- id: string;
5
- items: {
6
- autoFocusEntry: string;
7
- entries: {
8
- component: (props: any) => any;
9
- editField: any;
10
- field: any;
11
- id: string;
12
- idPrefix: any;
13
- index: any;
14
- validateFactory: any;
15
- }[];
16
- id: string;
17
- label: string;
18
- remove: (event: any) => any;
19
- }[];
20
- label: string;
21
- shouldSort: boolean;
22
- };
23
- /**
24
- * Returns copy of object without key.
25
- *
26
- * @param {Object} properties
27
- * @param {string} oldKey
28
- *
29
- * @returns {Object}
30
- */
31
- export function removeKey(properties: any, oldKey: string): any;
1
+ export default function CustomValuesGroup(field: any, editField: any): {
2
+ add: (event: any) => void;
3
+ component: any;
4
+ id: string;
5
+ items: {
6
+ autoFocusEntry: string;
7
+ entries: {
8
+ component: (props: any) => any;
9
+ editField: any;
10
+ field: any;
11
+ id: string;
12
+ idPrefix: any;
13
+ index: any;
14
+ validateFactory: any;
15
+ }[];
16
+ id: string;
17
+ label: string;
18
+ remove: (event: any) => any;
19
+ }[];
20
+ label: string;
21
+ shouldSort: boolean;
22
+ };
23
+ /**
24
+ * Returns copy of object without key.
25
+ *
26
+ * @param {Object} properties
27
+ * @param {string} oldKey
28
+ *
29
+ * @returns {Object}
30
+ */
31
+ export function removeKey(properties: any, oldKey: string): any;
@@ -1,5 +1,5 @@
1
- export default function GeneralGroup(field: any, editField: any): {
2
- id: string;
3
- label: string;
4
- entries: any[];
5
- };
1
+ export default function GeneralGroup(field: any, editField: any): {
2
+ id: string;
3
+ label: string;
4
+ entries: any[];
5
+ };
@@ -1,14 +1,14 @@
1
- export default function ValidationGroup(field: any, editField: any): {
2
- id: string;
3
- label: string;
4
- entries: {
5
- id: string;
6
- component: typeof Required;
7
- getValue: (key: any) => () => any;
8
- field: any;
9
- isEdited: any;
10
- onChange: (key: any) => (value: any) => void;
11
- }[];
12
- };
13
- declare function Required(props: any): any;
14
- export {};
1
+ export default function ValidationGroup(field: any, editField: any): {
2
+ id: string;
3
+ label: string;
4
+ entries: {
5
+ id: string;
6
+ component: typeof Required;
7
+ getValue: (key: any) => () => any;
8
+ field: any;
9
+ isEdited: any;
10
+ onChange: (key: any) => (value: any) => void;
11
+ }[];
12
+ };
13
+ declare function Required(props: any): any;
14
+ export {};
@@ -1 +1 @@
1
- export default function ValuesGroups(field: any, editField: any): any[];
1
+ export default function ValuesGroups(field: any, editField: any): any[];
@@ -1,4 +1,4 @@
1
- export { default as GeneralGroup } from "./GeneralGroup";
2
- export { default as ValidationGroup } from "./ValidationGroup";
3
- export { default as ValuesGroups } from "./ValuesGroups";
4
- export { default as CustomValuesGroup } from "./CustomValuesGroup";
1
+ export { default as GeneralGroup } from "./GeneralGroup";
2
+ export { default as ValidationGroup } from "./ValidationGroup";
3
+ export { default as ValuesGroups } from "./ValuesGroups";
4
+ export { default as CustomValuesGroup } from "./CustomValuesGroup";
@@ -1 +1 @@
1
- export { default as useService } from "./usePropertiesPanelService";
1
+ export { default as useService } from "./usePropertiesPanelService";
@@ -1 +1 @@
1
- export default function _default(type: any, strict: any): any;
1
+ export default function _default(type: any, strict: any): any;
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,6 +1,6 @@
1
- declare namespace _default {
2
- const __init__: string[];
3
- const propertiesPanel: (string | typeof PropertiesPanelRenderer)[];
4
- }
5
- export default _default;
6
- import PropertiesPanelRenderer from "./PropertiesPanelRenderer";
1
+ declare namespace _default {
2
+ const __init__: string[];
3
+ const propertiesPanel: (string | typeof PropertiesPanelRenderer)[];
4
+ }
5
+ export default _default;
6
+ import PropertiesPanelRenderer from "./PropertiesPanelRenderer";
@@ -1,14 +1,14 @@
1
- declare class Selection {
2
- constructor(eventBus: any);
3
- _eventBus: any;
4
- _selection: any;
5
- get(): any;
6
- set(selection: any): void;
7
- toggle(selection: any): void;
8
- clear(): void;
9
- isSelected(formField: any): boolean;
10
- }
11
- declare namespace Selection {
12
- const $inject: string[];
13
- }
14
- export default Selection;
1
+ declare class Selection {
2
+ constructor(eventBus: any);
3
+ _eventBus: any;
4
+ _selection: any;
5
+ get(): any;
6
+ set(selection: any): void;
7
+ toggle(selection: any): void;
8
+ clear(): void;
9
+ isSelected(formField: any): boolean;
10
+ }
11
+ declare namespace Selection {
12
+ const $inject: string[];
13
+ }
14
+ export default Selection;
@@ -1,7 +1,7 @@
1
- declare class SelectionBehavior {
2
- constructor(eventBus: any, selection: any);
3
- }
4
- declare namespace SelectionBehavior {
5
- const $inject: string[];
6
- }
7
- export default SelectionBehavior;
1
+ declare class SelectionBehavior {
2
+ constructor(eventBus: any, selection: any);
3
+ }
4
+ declare namespace SelectionBehavior {
5
+ const $inject: string[];
6
+ }
7
+ export default SelectionBehavior;
@@ -1,8 +1,8 @@
1
- declare namespace _default {
2
- const __init__: string[];
3
- const selection: (string | typeof Selection)[];
4
- const selectionBehavior: (string | typeof SelectionBehavior)[];
5
- }
6
- export default _default;
7
- import Selection from "./Selection";
8
- import SelectionBehavior from "./SelectionBehavior";
1
+ declare namespace _default {
2
+ const __init__: string[];
3
+ const selection: (string | typeof Selection)[];
4
+ const selectionBehavior: (string | typeof SelectionBehavior)[];
5
+ }
6
+ export default _default;
7
+ import Selection from "./Selection";
8
+ import SelectionBehavior from "./SelectionBehavior";
@@ -1,51 +1,51 @@
1
- declare class Importer {
2
- /**
3
- * @constructor
4
- * @param { import('../core/FormFieldRegistry').default } formFieldRegistry
5
- * @param { import('../core/FieldFactory').default } fieldFactory
6
- */
7
- constructor(formFieldRegistry: import('../core/FormFieldRegistry').default, fieldFactory: import('../core/FieldFactory').default);
8
- _formFieldRegistry: import("../core/FormFieldRegistry").default;
9
- _fieldFactory: import("../core/FieldFactory").default;
10
- /**
11
- * Import schema creating fields, attaching additional
12
- * information to each field and adding fields to the
13
- * field registry.
14
- *
15
- * Additional information attached:
16
- *
17
- * * `id` (unless present)
18
- * * `_parent`
19
- * * `_path`
20
- *
21
- * @param {any} schema
22
- *
23
- * @typedef {{ warnings: Error[], schema: any }} ImportResult
24
- * @returns {ImportResult}
25
- */
26
- importSchema(schema: any): {
27
- warnings: Error[];
28
- schema: any;
29
- };
30
- /**
31
- * @param {{[x: string]: any}} fieldAttrs
32
- * @param {String} [parentId]
33
- * @param {number} [index]
34
- *
35
- * @return {any} field
36
- */
37
- importFormField(fieldAttrs: {
38
- [x: string]: any;
39
- }, parentId?: string, index?: number): any;
40
- /**
41
- * @param {Array<any>} components
42
- * @param {string} parentId
43
- *
44
- * @return {Array<any>} imported components
45
- */
46
- importFormFields(components: Array<any>, parentId: string): Array<any>;
47
- }
48
- declare namespace Importer {
49
- const $inject: string[];
50
- }
51
- export default Importer;
1
+ declare class Importer {
2
+ /**
3
+ * @constructor
4
+ * @param { import('../core/FormFieldRegistry').default } formFieldRegistry
5
+ * @param { import('../core/FieldFactory').default } fieldFactory
6
+ */
7
+ constructor(formFieldRegistry: import('../core/FormFieldRegistry').default, fieldFactory: import('../core/FieldFactory').default);
8
+ _formFieldRegistry: import("../core/FormFieldRegistry").default;
9
+ _fieldFactory: import("../core/FieldFactory").default;
10
+ /**
11
+ * Import schema creating fields, attaching additional
12
+ * information to each field and adding fields to the
13
+ * field registry.
14
+ *
15
+ * Additional information attached:
16
+ *
17
+ * * `id` (unless present)
18
+ * * `_parent`
19
+ * * `_path`
20
+ *
21
+ * @param {any} schema
22
+ *
23
+ * @typedef {{ warnings: Error[], schema: any }} ImportResult
24
+ * @returns {ImportResult}
25
+ */
26
+ importSchema(schema: any): {
27
+ warnings: Error[];
28
+ schema: any;
29
+ };
30
+ /**
31
+ * @param {{[x: string]: any}} fieldAttrs
32
+ * @param {String} [parentId]
33
+ * @param {number} [index]
34
+ *
35
+ * @return {any} field
36
+ */
37
+ importFormField(fieldAttrs: {
38
+ [x: string]: any;
39
+ }, parentId?: string, index?: number): any;
40
+ /**
41
+ * @param {Array<any>} components
42
+ * @param {string} parentId
43
+ *
44
+ * @return {Array<any>} imported components
45
+ */
46
+ importFormFields(components: Array<any>, parentId: string): Array<any>;
47
+ }
48
+ declare namespace Importer {
49
+ const $inject: string[];
50
+ }
51
+ export default Importer;
@@ -1,5 +1,5 @@
1
- declare namespace _default {
2
- const importer: (string | typeof Importer)[];
3
- }
4
- export default _default;
5
- import Importer from "./Importer";
1
+ declare namespace _default {
2
+ const importer: (string | typeof Importer)[];
3
+ }
4
+ export default _default;
5
+ import Importer from "./Importer";
@@ -1,15 +1,15 @@
1
- /**
2
- * @typedef { import('./types').CreateFormEditorOptions } CreateFormEditorOptions
3
- */
4
- /**
5
- * Create a form editor.
6
- *
7
- * @param {CreateFormEditorOptions} options
8
- *
9
- * @return {Promise<FormEditor>}
10
- */
11
- export function createFormEditor(options: CreateFormEditorOptions): Promise<FormEditor>;
12
- export type CreateFormEditorOptions = import('./types').CreateFormEditorOptions;
13
- import FormEditor from "./FormEditor";
14
- import { schemaVersion } from "@bpmn-io/form-js-viewer";
15
- export { FormEditor, schemaVersion };
1
+ /**
2
+ * @typedef { import('./types').CreateFormEditorOptions } CreateFormEditorOptions
3
+ */
4
+ /**
5
+ * Create a form editor.
6
+ *
7
+ * @param {CreateFormEditorOptions} options
8
+ *
9
+ * @return {Promise<FormEditor>}
10
+ */
11
+ export function createFormEditor(options: CreateFormEditorOptions): Promise<FormEditor>;
12
+ export type CreateFormEditorOptions = import('./types').CreateFormEditorOptions;
13
+ import FormEditor from "./FormEditor";
14
+ import { schemaVersion } from "@bpmn-io/form-js-viewer";
15
+ export { FormEditor, schemaVersion };
@@ -1,26 +1,26 @@
1
- /**
2
- * @typedef { { container: Element, compact?: boolean } } RenderConfig
3
- * @typedef { import('didi').Injector } Injector
4
- * @typedef { import('../core/EventBus').default } EventBus
5
- * @typedef { import('../FormEditor').default } FormEditor
6
- */
7
- /**
8
- * @param {RenderConfig} renderConfig
9
- * @param {EventBus} eventBus
10
- * @param {FormEditor} formEditor
11
- * @param {Injector} injector
12
- */
13
- declare class Renderer {
14
- constructor(renderConfig: any, eventBus: any, formEditor: any, injector: any);
15
- }
16
- declare namespace Renderer {
17
- const $inject: string[];
18
- }
19
- export default Renderer;
20
- export type RenderConfig = {
21
- container: Element;
22
- compact?: boolean;
23
- };
24
- export type Injector = import('didi').Injector;
25
- export type EventBus = any;
26
- export type FormEditor = import('../FormEditor').default;
1
+ /**
2
+ * @typedef { { container: Element, compact?: boolean } } RenderConfig
3
+ * @typedef { import('didi').Injector } Injector
4
+ * @typedef { import('../core/EventBus').default } EventBus
5
+ * @typedef { import('../FormEditor').default } FormEditor
6
+ */
7
+ /**
8
+ * @param {RenderConfig} renderConfig
9
+ * @param {EventBus} eventBus
10
+ * @param {FormEditor} formEditor
11
+ * @param {Injector} injector
12
+ */
13
+ declare class Renderer {
14
+ constructor(renderConfig: any, eventBus: any, formEditor: any, injector: any);
15
+ }
16
+ declare namespace Renderer {
17
+ const $inject: string[];
18
+ }
19
+ export default Renderer;
20
+ export type RenderConfig = {
21
+ container: Element;
22
+ compact?: boolean;
23
+ };
24
+ export type Injector = import('didi').Injector;
25
+ export type EventBus = any;
26
+ export type FormEditor = import('../FormEditor').default;
@@ -1 +1 @@
1
- export default function FormEditor(props: any): any;
1
+ export default function FormEditor(props: any): any;
@@ -1,13 +1,13 @@
1
- export namespace iconsByType {
2
- export { ButtonIcon as button };
3
- export { CheckboxIcon as checkbox };
4
- export { ChecklistIcon as checklist };
5
- export { ColumnsIcon as columns };
6
- export { NumberIcon as number };
7
- export { RadioIcon as radio };
8
- export { SelectIcon as select };
9
- export { TaglistIcon as taglist };
10
- export { TextIcon as text };
11
- export { TextfieldIcon as textfield };
12
- export { FormIcon as default };
13
- }
1
+ export namespace iconsByType {
2
+ export { ButtonIcon as button };
3
+ export { CheckboxIcon as checkbox };
4
+ export { ChecklistIcon as checklist };
5
+ export { ColumnsIcon as columns };
6
+ export { NumberIcon as number };
7
+ export { RadioIcon as radio };
8
+ export { SelectIcon as select };
9
+ export { TaglistIcon as taglist };
10
+ export { TextIcon as text };
11
+ export { TextfieldIcon as textfield };
12
+ export { FormIcon as default };
13
+ }
@@ -1,4 +1,4 @@
1
- export default DragAndDropContext;
2
- declare const DragAndDropContext: import("preact").Context<{
3
- drake: any;
4
- }>;
1
+ export default DragAndDropContext;
2
+ declare const DragAndDropContext: import("preact").Context<{
3
+ drake: any;
4
+ }>;
@@ -1,11 +1,11 @@
1
- export default FormEditorContext;
2
- declare const FormEditorContext: import("preact").Context<{
3
- getService: typeof getService;
4
- }>;
5
- /**
6
- * @param {string} type
7
- * @param {boolean} [strict]
8
- *
9
- * @returns {any}
10
- */
11
- declare function getService(type: string, strict?: boolean): any;
1
+ export default FormEditorContext;
2
+ declare const FormEditorContext: import("preact").Context<{
3
+ getService: typeof getService;
4
+ }>;
5
+ /**
6
+ * @param {string} type
7
+ * @param {boolean} [strict]
8
+ *
9
+ * @returns {any}
10
+ */
11
+ declare function getService(type: string, strict?: boolean): any;
@@ -1,2 +1,2 @@
1
- export { default as DragAndDropContext } from "./DragAndDropContext";
2
- export { default as FormEditorContext } from "./FormEditorContext";
1
+ export { default as DragAndDropContext } from "./DragAndDropContext";
2
+ export { default as FormEditorContext } from "./FormEditorContext";
@@ -1 +1 @@
1
- export default function _default(type: any, strict: any): any;
1
+ export default function _default(type: any, strict: any): any;