@bpmn-io/form-js-viewer 1.5.0-alpha.0 → 1.6.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 (78) hide show
  1. package/dist/assets/form-js-base.css +244 -16
  2. package/dist/assets/form-js.css +676 -670
  3. package/dist/index.cjs +2100 -722
  4. package/dist/index.cjs.map +1 -1
  5. package/dist/index.es.js +2083 -717
  6. package/dist/index.es.js.map +1 -1
  7. package/dist/types/Form.d.ts +15 -4
  8. package/dist/types/core/FieldFactory.d.ts +3 -1
  9. package/dist/types/core/FormFieldRegistry.d.ts +2 -1
  10. package/dist/types/core/FormLayouter.d.ts +2 -2
  11. package/dist/types/core/Importer.d.ts +1 -1
  12. package/dist/types/core/PathRegistry.d.ts +8 -4
  13. package/dist/types/core/Validator.d.ts +1 -1
  14. package/dist/types/core/index.d.ts +8 -8
  15. package/dist/types/features/{expression-language → expressionLanguage}/ConditionChecker.d.ts +9 -5
  16. package/dist/types/features/{expression-language → expressionLanguage}/FeelExpressionLanguage.d.ts +1 -1
  17. package/dist/types/features/{expression-language → expressionLanguage}/FeelersTemplating.d.ts +1 -1
  18. package/dist/types/features/{expression-language → expressionLanguage}/index.d.ts +4 -4
  19. package/dist/types/features/index.d.ts +4 -2
  20. package/dist/types/features/markdown/MarkdownRenderer.d.ts +1 -1
  21. package/dist/types/features/markdown/index.d.ts +2 -2
  22. package/dist/types/features/repeatRender/RepeatRenderManager.d.ts +21 -0
  23. package/dist/types/features/repeatRender/index.d.ts +7 -0
  24. package/dist/types/features/viewerCommands/ViewerCommands.d.ts +2 -2
  25. package/dist/types/features/viewerCommands/cmd/UpdateFieldValidationHandler.d.ts +1 -1
  26. package/dist/types/features/viewerCommands/index.d.ts +3 -3
  27. package/dist/types/index.d.ts +1 -1
  28. package/dist/types/render/Renderer.d.ts +1 -1
  29. package/dist/types/render/components/Label.d.ts +21 -1
  30. package/dist/types/render/components/Sanitizer.d.ts +8 -0
  31. package/dist/types/render/components/Util.d.ts +1 -1
  32. package/dist/types/render/components/form-fields/Button.d.ts +3 -3
  33. package/dist/types/render/components/form-fields/Checkbox.d.ts +4 -4
  34. package/dist/types/render/components/form-fields/Checklist.d.ts +5 -5
  35. package/dist/types/render/components/form-fields/Datetime.d.ts +4 -4
  36. package/dist/types/render/components/form-fields/Default.d.ts +4 -4
  37. package/dist/types/render/components/form-fields/DynamicList.d.ts +18 -0
  38. package/dist/types/render/components/form-fields/Group.d.ts +4 -4
  39. package/dist/types/render/components/form-fields/IFrame.d.ts +12 -0
  40. package/dist/types/render/components/form-fields/Image.d.ts +3 -3
  41. package/dist/types/render/components/form-fields/Number.d.ts +4 -4
  42. package/dist/types/render/components/form-fields/Radio.d.ts +5 -5
  43. package/dist/types/render/components/form-fields/Select.d.ts +5 -5
  44. package/dist/types/render/components/form-fields/Separator.d.ts +3 -3
  45. package/dist/types/render/components/form-fields/Spacer.d.ts +3 -3
  46. package/dist/types/render/components/form-fields/Table.d.ts +71 -0
  47. package/dist/types/render/components/form-fields/Taglist.d.ts +5 -5
  48. package/dist/types/render/components/form-fields/Text.d.ts +3 -3
  49. package/dist/types/render/components/form-fields/Textarea.d.ts +4 -4
  50. package/dist/types/render/components/form-fields/Textfield.d.ts +4 -4
  51. package/dist/types/render/components/form-fields/parts/ChildrenRenderer.d.ts +1 -0
  52. package/dist/types/render/components/index.d.ts +5 -2
  53. package/dist/types/render/components/util/optionsUtil.d.ts +8 -0
  54. package/dist/types/render/context/FormRenderContext.d.ts +4 -3
  55. package/dist/types/render/context/LocalExpressionContext.d.ts +7 -0
  56. package/dist/types/render/context/index.d.ts +1 -0
  57. package/dist/types/render/hooks/index.d.ts +1 -0
  58. package/dist/types/render/hooks/useCleanupMultiSelectValues.d.ts +1 -0
  59. package/dist/types/render/hooks/useCleanupSingleSelectValue.d.ts +1 -0
  60. package/dist/types/render/hooks/useExpressionEvaluation.d.ts +3 -3
  61. package/dist/types/render/hooks/useFilteredFormData.d.ts +1 -0
  62. package/dist/types/render/hooks/useOptionsAsync.d.ts +28 -0
  63. package/dist/types/render/hooks/useScrollIntoView.d.ts +18 -0
  64. package/dist/types/render/hooks/useTemplateEvaluation.d.ts +1 -1
  65. package/dist/types/render/index.d.ts +4 -3
  66. package/dist/types/util/constants/DatetimeConstants.d.ts +6 -6
  67. package/dist/types/util/constants/OptionsSourceConstants.d.ts +19 -0
  68. package/dist/types/util/constants/index.d.ts +1 -1
  69. package/dist/types/util/getSchemaVariables.d.ts +39 -0
  70. package/dist/types/util/index.d.ts +3 -52
  71. package/dist/types/util/simple.d.ts +20 -0
  72. package/dist/types/util/structure.d.ts +1 -0
  73. package/package.json +5 -5
  74. package/dist/types/render/components/form-fields/parts/Grid.d.ts +0 -1
  75. package/dist/types/render/components/util/valuesUtil.d.ts +0 -8
  76. package/dist/types/render/hooks/useValuesAsync.d.ts +0 -28
  77. package/dist/types/util/constants/ValuesSourceConstants.d.ts +0 -19
  78. /package/dist/types/features/{expression-language → expressionLanguage}/variableExtractionHelpers.d.ts +0 -0
@@ -27,8 +27,15 @@ export default class Form {
27
27
  * @type {State}
28
28
  */
29
29
  private _state;
30
- get: <T>(name: string, strict?: boolean) => T;
31
- invoke: <T_1>(func: (...args: any[]) => T_1, context?: unknown, locals?: import("didi").LocalsMap) => T_1;
30
+ get: {
31
+ <T>(name: string): T;
32
+ <T_1>(name: string, strict: true): T_1;
33
+ <T_2>(name: string, strict: boolean): T_2;
34
+ };
35
+ invoke: {
36
+ <T_3>(func: import("didi").FactoryFunction<T_3>, context?: unknown, locals?: import("didi").LocalsMap): T_3;
37
+ <T_4>(func: import("didi").ArrayFunc<T_4>, context?: unknown, locals?: import("didi").LocalsMap): T_4;
38
+ };
32
39
  clear(): void;
33
40
  /**
34
41
  * Destroy the form, removing it from DOM,
@@ -95,11 +102,12 @@ export default class Form {
95
102
  /**
96
103
  * @internal
97
104
  *
98
- * @param { { add?: boolean, field: any, remove?: number, value?: any } } update
105
+ * @param { { add?: boolean, field: any, indexes: object, remove?: number, value?: any } } update
99
106
  */
100
107
  _update(update: {
101
108
  add?: boolean;
102
109
  field: any;
110
+ indexes: object;
103
111
  remove?: number;
104
112
  value?: any;
105
113
  }): void;
@@ -126,6 +134,9 @@ export default class Form {
126
134
  __depends__: import("didi").ModuleDeclaration[];
127
135
  __init__: string[];
128
136
  viewerCommands: (string | typeof import("./features").ViewerCommands)[];
137
+ } | {
138
+ __init__: string[];
139
+ repeatRenderManager: (string | typeof import("./features").RepeatRenderManager)[];
129
140
  })[];
130
141
  /**
131
142
  * @internal
@@ -142,7 +153,7 @@ export default class Form {
142
153
  /**
143
154
  * @internal
144
155
  */
145
- _initializeFieldData(data: any): any;
156
+ _getInitializedFieldData(data: any, options?: {}): any;
146
157
  }
147
158
  export type Injector = import('./types').Injector;
148
159
  export type Data = import('./types').Data;
@@ -12,8 +12,10 @@ declare class FieldFactory {
12
12
  create(attrs: any, applyDefaults?: boolean): any;
13
13
  _ensureId(field: any): void;
14
14
  _ensureKey(field: any): void;
15
+ _enforceDefaultPath(field: any): void;
16
+ _getUniqueKeyPath(field: any): string;
15
17
  }
16
18
  declare namespace FieldFactory {
17
- const $inject: string[];
19
+ let $inject: string[];
18
20
  }
19
21
  export default FieldFactory;
@@ -7,10 +7,11 @@ declare class FormFieldRegistry {
7
7
  remove(formField: any): void;
8
8
  get(id: any): any;
9
9
  getAll(): any[];
10
+ getForm(): any;
10
11
  forEach(callback: any): void;
11
12
  clear(): void;
12
13
  }
13
14
  declare namespace FormFieldRegistry {
14
- const $inject: string[];
15
+ let $inject: string[];
15
16
  }
16
17
  export default FormFieldRegistry;
@@ -18,7 +18,7 @@
18
18
  declare class FormLayouter {
19
19
  constructor(eventBus: any);
20
20
  /** @type Array<FormRows> */
21
- _rows: FormRows[];
21
+ _rows: Array<FormRows>;
22
22
  _ids: any;
23
23
  _eventBus: any;
24
24
  /**
@@ -51,7 +51,7 @@ declare class FormLayouter {
51
51
  clear(): void;
52
52
  }
53
53
  declare namespace FormLayouter {
54
- const $inject: string[];
54
+ let $inject: string[];
55
55
  }
56
56
  export default FormLayouter;
57
57
  export type FormRow = {
@@ -51,6 +51,6 @@ declare class Importer {
51
51
  importFormFields(components: Array<any>, parentId: string): Array<any>;
52
52
  }
53
53
  declare namespace Importer {
54
- const $inject: string[];
54
+ let $inject: string[];
55
55
  }
56
56
  export default Importer;
@@ -30,12 +30,13 @@
30
30
  * ]
31
31
  */
32
32
  declare class PathRegistry {
33
- constructor(formFieldRegistry: any, formFields: any);
33
+ constructor(formFieldRegistry: any, formFields: any, injector: any);
34
34
  _formFieldRegistry: any;
35
35
  _formFields: any;
36
+ _injector: any;
36
37
  _dataPaths: any[];
37
- canClaimPath(path: any, closed?: boolean): boolean;
38
- claimPath(path: any, closed?: boolean): void;
38
+ canClaimPath(path: any, options?: {}): boolean;
39
+ claimPath(path: any, options?: {}): void;
39
40
  unclaimPath(path: any): void;
40
41
  /**
41
42
  * Applies a function (fn) recursively on a given field and its children.
@@ -55,17 +56,20 @@ declare class PathRegistry {
55
56
  * @param {Object} field - The field object with properties: `key`, `path`, `id`, and optionally `_parent`.
56
57
  * @param {Object} [options={}] - Configuration options.
57
58
  * @param {Object} [options.replacements={}] - A map of field IDs to alternative path arrays.
59
+ * @param {Object} [options.indexes=null] - A map of parent IDs to the index of the field within said parent, leave null to get an unindexed path.
58
60
  * @param {Object} [options.cutoffNode] - The ID of the parent field at which to stop generating the path.
59
61
  *
60
62
  * @returns {(Array<string>|undefined)} An array of strings representing the binding path, or undefined if not determinable.
61
63
  */
62
64
  getValuePath(field: any, options?: {
63
65
  replacements?: any;
66
+ indexes?: any;
64
67
  cutoffNode?: any;
65
68
  }): (Array<string> | undefined);
66
69
  clear(): void;
70
+ _addIndexes(localValuePath: any, field: any, indexes: any): any;
67
71
  }
68
72
  declare namespace PathRegistry {
69
- const $inject: string[];
73
+ let $inject: string[];
70
74
  }
71
75
  export default PathRegistry;
@@ -6,6 +6,6 @@ declare class Validator {
6
6
  validateField(field: any, value: any): any[];
7
7
  }
8
8
  declare namespace Validator {
9
- const $inject: string[];
9
+ let $inject: string[];
10
10
  }
11
11
  export default Validator;
@@ -1,16 +1,16 @@
1
1
  declare namespace _default {
2
- const __depends__: {
2
+ let __depends__: {
3
3
  __init__: string[];
4
4
  formFields: (string | typeof import("../render").FormFields)[];
5
5
  renderer: (string | typeof import("../render/Renderer").default)[];
6
6
  }[];
7
- const eventBus: (string | typeof EventBus)[];
8
- const importer: (string | typeof Importer)[];
9
- const fieldFactory: (string | typeof FieldFactory)[];
10
- const formFieldRegistry: (string | typeof FormFieldRegistry)[];
11
- const pathRegistry: (string | typeof PathRegistry)[];
12
- const formLayouter: (string | typeof FormLayouter)[];
13
- const validator: (string | typeof Validator)[];
7
+ let eventBus: (string | typeof EventBus)[];
8
+ let importer: (string | typeof Importer)[];
9
+ let fieldFactory: (string | typeof FieldFactory)[];
10
+ let formFieldRegistry: (string | typeof FormFieldRegistry)[];
11
+ let pathRegistry: (string | typeof PathRegistry)[];
12
+ let formLayouter: (string | typeof FormLayouter)[];
13
+ let validator: (string | typeof Validator)[];
14
14
  }
15
15
  export default _default;
16
16
  import Importer from './Importer';
@@ -10,17 +10,19 @@ declare class ConditionChecker {
10
10
  /**
11
11
  * For given data, remove properties based on condition.
12
12
  *
13
- * @param {Object<string, any>} properties
14
13
  * @param {Object<string, any>} data
14
+ * @param {Object<string, any>} contextData
15
15
  * @param {Object} [options]
16
16
  * @param {Function} [options.getFilterPath]
17
+ * @param {boolean} [options.leafNodeDeletionOnly]
17
18
  */
18
- applyConditions(properties: {
19
+ applyConditions(data: {
19
20
  [x: string]: any;
20
- }, data?: {
21
+ }, contextData?: {
21
22
  [x: string]: any;
22
23
  }, options?: {
23
24
  getFilterPath?: Function;
25
+ leafNodeDeletionOnly?: boolean;
24
26
  }): {
25
27
  [x: string]: any;
26
28
  };
@@ -43,10 +45,12 @@ declare class ConditionChecker {
43
45
  _checkHideCondition(condition: Condition, data: {
44
46
  [x: string]: any;
45
47
  }): boolean;
46
- _clearObjectValueRecursively(valuePath: any, obj: any): void;
48
+ _cleanlyClearDataAtPath(valuePath: any, obj: any): void;
49
+ _isEmptyObject(parentObject: any): boolean;
50
+ _isEmptyArray(parentObject: any): boolean;
47
51
  }
48
52
  declare namespace ConditionChecker {
49
- const $inject: string[];
53
+ let $inject: string[];
50
54
  }
51
55
  export default ConditionChecker;
52
56
  export type Condition = {
@@ -32,6 +32,6 @@ declare class FeelExpressionLanguage {
32
32
  evaluate(expression: string, data?: import('../../types').Data): any;
33
33
  }
34
34
  declare namespace FeelExpressionLanguage {
35
- const $inject: string[];
35
+ let $inject: string[];
36
36
  }
37
37
  export default FeelExpressionLanguage;
@@ -63,6 +63,6 @@ declare class FeelersTemplating {
63
63
  }[];
64
64
  }
65
65
  declare namespace FeelersTemplating {
66
- const $inject: any[];
66
+ let $inject: any[];
67
67
  }
68
68
  export default FeelersTemplating;
@@ -1,8 +1,8 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const expressionLanguage: (string | typeof FeelExpressionLanguage)[];
4
- const templating: (string | typeof FeelersTemplating)[];
5
- const conditionChecker: (string | typeof ConditionChecker)[];
2
+ let __init__: string[];
3
+ let expressionLanguage: (string | typeof FeelExpressionLanguage)[];
4
+ let templating: (string | typeof FeelersTemplating)[];
5
+ let conditionChecker: (string | typeof ConditionChecker)[];
6
6
  }
7
7
  export default _default;
8
8
  import FeelExpressionLanguage from './FeelExpressionLanguage';
@@ -1,6 +1,8 @@
1
- export { default as ExpressionLanguageModule } from "./expression-language";
1
+ export { default as ExpressionLanguageModule } from "./expressionLanguage";
2
2
  export { default as MarkdownModule } from "./markdown";
3
3
  export { default as ViewerCommandsModule } from "./viewerCommands";
4
- export * from "./expression-language";
4
+ export { default as RepeatRenderModule } from "./repeatRender";
5
+ export * from "./expressionLanguage";
5
6
  export * from "./markdown";
6
7
  export * from "./viewerCommands";
8
+ export * from "./repeatRender";
@@ -10,6 +10,6 @@ declare class MarkdownRenderer {
10
10
  render(markdown: string): string;
11
11
  }
12
12
  declare namespace MarkdownRenderer {
13
- const $inject: any[];
13
+ let $inject: any[];
14
14
  }
15
15
  export default MarkdownRenderer;
@@ -1,6 +1,6 @@
1
1
  declare namespace _default {
2
- const __init__: string[];
3
- const markdownRenderer: (string | typeof MarkdownRenderer)[];
2
+ let __init__: string[];
3
+ let markdownRenderer: (string | typeof MarkdownRenderer)[];
4
4
  }
5
5
  export default _default;
6
6
  export { MarkdownRenderer };
@@ -0,0 +1,21 @@
1
+ declare class RepeatRenderManager {
2
+ constructor(form: any, formFields: any, formFieldRegistry: any, pathRegistry: any);
3
+ _form: any;
4
+ _formFields: any;
5
+ _formFieldRegistry: any;
6
+ _pathRegistry: any;
7
+ Repeater(props: any): import("preact").JSX.Element;
8
+ RepeatFooter(props: any): import("preact").JSX.Element;
9
+ /**
10
+ * Checks whether a field is currently repeating its children.
11
+ *
12
+ * @param {string} id - The id of the field to check
13
+ * @returns {boolean} - True if repeatable, false otherwise
14
+ */
15
+ isFieldRepeating(id: string): boolean;
16
+ _getNonCollapsedItems(field: any): any;
17
+ }
18
+ declare namespace RepeatRenderManager {
19
+ let $inject: string[];
20
+ }
21
+ export default RepeatRenderManager;
@@ -0,0 +1,7 @@
1
+ declare namespace _default {
2
+ let __init__: string[];
3
+ let repeatRenderManager: (string | typeof RepeatRenderManager)[];
4
+ }
5
+ export default _default;
6
+ export { RepeatRenderManager };
7
+ import RepeatRenderManager from './RepeatRenderManager';
@@ -5,10 +5,10 @@ declare class ViewerCommands {
5
5
  getHandlers(): {
6
6
  'formField.validation.update': typeof UpdateFieldValidationHandler;
7
7
  };
8
- updateFieldValidation(field: any, value: any): void;
8
+ updateFieldValidation(field: any, value: any, indexes: any): void;
9
9
  }
10
10
  declare namespace ViewerCommands {
11
- const $inject: string[];
11
+ let $inject: string[];
12
12
  }
13
13
  export default ViewerCommands;
14
14
  import UpdateFieldValidationHandler from './cmd/UpdateFieldValidationHandler';
@@ -6,6 +6,6 @@ declare class UpdateFieldValidationHandler {
6
6
  revert(context: any): void;
7
7
  }
8
8
  declare namespace UpdateFieldValidationHandler {
9
- const $inject: string[];
9
+ let $inject: string[];
10
10
  }
11
11
  export default UpdateFieldValidationHandler;
@@ -1,7 +1,7 @@
1
1
  declare namespace _default {
2
- const __depends__: import("didi").ModuleDeclaration[];
3
- const __init__: string[];
4
- const viewerCommands: (string | typeof ViewerCommands)[];
2
+ let __depends__: import("didi").ModuleDeclaration[];
3
+ let __init__: string[];
4
+ let viewerCommands: (string | typeof ViewerCommands)[];
5
5
  }
6
6
  export default _default;
7
7
  export { ViewerCommands };
@@ -14,6 +14,6 @@ export * from "./util";
14
14
  export * from "./features";
15
15
  export type CreateFormOptions = import('./types').CreateFormOptions;
16
16
  import Form from './Form';
17
- export const schemaVersion: 12;
17
+ export const schemaVersion: 14;
18
18
  export { Form };
19
19
  export { FormFieldRegistry, FormLayouter, Importer, FieldFactory, PathRegistry } from "./core";
@@ -12,7 +12,7 @@
12
12
  */
13
13
  declare function Renderer(config: Config, eventBus: EventBus, form: Form, injector: Injector): void;
14
14
  declare namespace Renderer {
15
- const $inject: string[];
15
+ let $inject: string[];
16
16
  }
17
17
  export default Renderer;
18
18
  export type Config = {
@@ -1 +1,21 @@
1
- export default function Label(props: any): import("preact").JSX.Element;
1
+ /**
2
+ * @typedef Props
3
+ * @property {string} [id]
4
+ * @property {string|undefined} label
5
+ * @property {string} [class]
6
+ * @property {boolean} [collapseOnEmpty]
7
+ * @property {boolean} [required]
8
+ * @property {import("preact").VNode} [children]
9
+ *
10
+ * @param {Props} props
11
+ * @returns {import("preact").JSX.Element}
12
+ */
13
+ export default function Label(props: Props): import("preact").JSX.Element;
14
+ export type Props = {
15
+ id?: string;
16
+ label: string | undefined;
17
+ class?: string;
18
+ collapseOnEmpty?: boolean;
19
+ required?: boolean;
20
+ children?: import("preact").VNode;
21
+ };
@@ -15,3 +15,11 @@ export function sanitizeHTML(html: string): string;
15
15
  * @returns {string}
16
16
  */
17
17
  export function sanitizeImageSource(src: string): string;
18
+ /**
19
+ * Sanitizes an iframe source to ensure we only allow for links
20
+ * that start with http(s).
21
+ *
22
+ * @param {string} src
23
+ * @returns {string}
24
+ */
25
+ export function sanitizeIFrameSource(src: string): string;
@@ -4,4 +4,4 @@ export function formFieldClasses(type: any, { errors, disabled, readonly }?: {
4
4
  readonly?: boolean;
5
5
  }): any;
6
6
  export function gridColumnClasses(formField: any): any;
7
- export function prefixId(id: any, formId: any): string;
7
+ export function prefixId(id: any, formId: any, indexes: any): string;
@@ -2,9 +2,9 @@ declare function Button(props: any): import("preact").JSX.Element;
2
2
  declare namespace Button {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {
9
9
  action: string;
10
10
  };
@@ -2,10 +2,10 @@ declare function Checkbox(props: any): import("preact").JSX.Element;
2
2
  declare namespace Checkbox {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: boolean;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: boolean;
9
9
  export function sanitizeValue({ value }: {
10
10
  value: any;
11
11
  }): boolean;
@@ -2,10 +2,10 @@ declare function Checklist(props: any): import("preact").JSX.Element;
2
2
  declare namespace Checklist {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any[];
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any[];
9
9
  export { sanitizeMultiSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Checklist {
13
13
  export default Checklist;
14
14
  declare const type: "checklist";
15
15
  import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,10 +2,10 @@ declare function Datetime(props: any): import("preact").JSX.Element;
2
2
  declare namespace Datetime {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export { sanitizeDateTimePickerValue as sanitizeValue };
10
10
  export function create(options?: {}): {};
11
11
  }
@@ -1,10 +1,10 @@
1
1
  declare function FormComponent(props: any): import("preact").JSX.Element;
2
2
  declare namespace FormComponent {
3
3
  namespace config {
4
- const type: string;
5
- const keyed: boolean;
6
- const label: any;
7
- const group: any;
4
+ let type: string;
5
+ let keyed: boolean;
6
+ let label: any;
7
+ let group: any;
8
8
  function create(options?: {}): {
9
9
  components: any[];
10
10
  };
@@ -0,0 +1,18 @@
1
+ declare function DynamicList(props: any): import("preact").JSX.Element;
2
+ declare namespace DynamicList {
3
+ namespace config {
4
+ let type: string;
5
+ let pathed: boolean;
6
+ let repeatable: boolean;
7
+ let label: string;
8
+ let group: string;
9
+ function create(options?: {}): {
10
+ components: any[];
11
+ showOutline: boolean;
12
+ isRepeating: boolean;
13
+ allowAddRemove: boolean;
14
+ defaultRepetitions: number;
15
+ };
16
+ }
17
+ }
18
+ export default DynamicList;
@@ -1,10 +1,10 @@
1
1
  declare function Group(props: any): import("preact").JSX.Element;
2
2
  declare namespace Group {
3
3
  namespace config {
4
- const type: string;
5
- const pathed: boolean;
6
- const label: string;
7
- const group: string;
4
+ let type: string;
5
+ let pathed: boolean;
6
+ let label: string;
7
+ let group: string;
8
8
  function create(options?: {}): {
9
9
  components: any[];
10
10
  showOutline: boolean;
@@ -0,0 +1,12 @@
1
+ declare function IFrame(props: any): import("preact").JSX.Element;
2
+ declare namespace IFrame {
3
+ namespace config {
4
+ export { type };
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export function create(options?: {}): {};
9
+ }
10
+ }
11
+ export default IFrame;
12
+ declare const type: "iframe";
@@ -2,9 +2,9 @@ declare function Image(props: any): import("preact").JSX.Element;
2
2
  declare namespace Image {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {};
9
9
  }
10
10
  }
@@ -2,10 +2,10 @@ declare function Numberfield(props: any): import("preact").JSX.Element;
2
2
  declare namespace Numberfield {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export function sanitizeValue({ value, formField }: {
10
10
  value: any;
11
11
  formField: any;
@@ -2,10 +2,10 @@ declare function Radio(props: any): import("preact").JSX.Element;
2
2
  declare namespace Radio {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export { sanitizeSingleSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Radio {
13
13
  export default Radio;
14
14
  declare const type: "radio";
15
15
  import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,10 +2,10 @@ declare function Select(props: any): import("preact").JSX.Element;
2
2
  declare namespace Select {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
8
- export const emptyValue: any;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
+ export let emptyValue: any;
9
9
  export { sanitizeSingleSelectValue as sanitizeValue };
10
10
  export { createEmptyOptions as create };
11
11
  }
@@ -13,4 +13,4 @@ declare namespace Select {
13
13
  export default Select;
14
14
  declare const type: "select";
15
15
  import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
16
- import { createEmptyOptions } from '../util/valuesUtil';
16
+ import { createEmptyOptions } from '../util/optionsUtil';
@@ -2,9 +2,9 @@ declare function Separator(): import("preact").JSX.Element;
2
2
  declare namespace Separator {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {};
9
9
  }
10
10
  }
@@ -2,9 +2,9 @@ declare function Spacer(props: any): import("preact").JSX.Element;
2
2
  declare namespace Spacer {
3
3
  namespace config {
4
4
  export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
5
+ export let keyed: boolean;
6
+ export let label: string;
7
+ export let group: string;
8
8
  export function create(options?: {}): {
9
9
  height: number;
10
10
  };