@bpmn-io/form-js-viewer 0.14.1 → 0.15.0-alpha.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.
@@ -28,7 +28,7 @@ export default class Form {
28
28
  */
29
29
  private _state;
30
30
  get: <T>(name: string, strict?: boolean) => T;
31
- invoke: <T_1>(func: (...args: unknown[]) => T_1, context: unknown, locals: import("didi").LocalsMap) => T_1;
31
+ invoke: <T_1>(func: (...args: any[]) => T_1, context?: unknown, locals?: import("didi").LocalsMap) => T_1;
32
32
  clear(): void;
33
33
  /**
34
34
  * Destroy the form, removing it from DOM,
@@ -1 +1 @@
1
- export {};
1
+ export { default } from "diagram-js/lib/core/EventBus";
@@ -6,7 +6,7 @@ declare namespace _default {
6
6
  formFields: (string | typeof import("../render").FormFields)[];
7
7
  renderer: (string | typeof import("../render/Renderer").default)[];
8
8
  })[];
9
- const eventBus: any[];
9
+ const eventBus: (string | typeof EventBus)[];
10
10
  const formFieldRegistry: (string | typeof FormFieldRegistry)[];
11
11
  const formLayouter: (string | typeof FormLayouter)[];
12
12
  const validator: (string | typeof Validator)[];
@@ -14,5 +14,6 @@ declare namespace _default {
14
14
  export default _default;
15
15
  import FormFieldRegistry from './FormFieldRegistry';
16
16
  import FormLayouter from './FormLayouter';
17
+ import EventBus from './EventBus';
17
18
  import Validator from './Validator';
18
19
  export { FormFieldRegistry, FormLayouter };
@@ -10,7 +10,7 @@
10
10
  * @param {Form} form
11
11
  * @param {Injector} injector
12
12
  */
13
- declare function Renderer(config: Config, eventBus: any, form: Form, injector: Injector): void;
13
+ declare function Renderer(config: Config, eventBus: EventBus, form: Form, injector: Injector): void;
14
14
  declare namespace Renderer {
15
15
  const $inject: string[];
16
16
  }
@@ -19,5 +19,5 @@ export type Config = {
19
19
  container;
20
20
  };
21
21
  export type Injector = import('didi').Injector;
22
- export type EventBus = any;
22
+ export type EventBus = import('../core/EventBus').default;
23
23
  export type Form = import('../Form').default;
@@ -1,6 +1,6 @@
1
1
  export function formFieldClasses(type: any, { errors, disabled }?: {
2
2
  errors?: any[];
3
3
  disabled?: boolean;
4
- }): string;
5
- export function gridColumnClasses(formField: any): string;
4
+ }): any;
5
+ export function gridColumnClasses(formField: any): any;
6
6
  export function prefixId(id: any, formId: any): string;
@@ -1,12 +1,14 @@
1
1
  declare function Button(props: any): import("preact").JSX.Element;
2
2
  declare namespace Button {
3
- export function create(options?: {}): {
4
- action: string;
5
- };
6
- export { type };
7
- export const label: string;
8
- export const keyed: boolean;
9
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export function create(options?: {}): {
9
+ action: string;
10
+ };
11
+ }
10
12
  }
11
13
  export default Button;
12
14
  declare const type: "button";
@@ -1,14 +1,16 @@
1
1
  declare function Checkbox(props: any): import("preact").JSX.Element;
2
2
  declare namespace Checkbox {
3
- export function create(options?: {}): {};
4
- export { type };
5
- export const label: string;
6
- export const keyed: boolean;
7
- export const emptyValue: boolean;
8
- export function sanitizeValue({ value }: {
9
- value: any;
10
- }): boolean;
11
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: boolean;
9
+ export function sanitizeValue({ value }: {
10
+ value: any;
11
+ }): boolean;
12
+ export function create(options?: {}): {};
13
+ }
12
14
  }
13
15
  export default Checkbox;
14
16
  declare const type: "checkbox";
@@ -1,17 +1,19 @@
1
1
  declare function Checklist(props: any): import("preact").JSX.Element;
2
2
  declare namespace Checklist {
3
- export function create(options?: {}): {
4
- values: {
5
- label: string;
6
- value: string;
7
- }[];
8
- };
9
- export { type };
10
- export const label: string;
11
- export const keyed: boolean;
12
- export const emptyValue: any[];
13
- export { sanitizeMultiSelectValue as sanitizeValue };
14
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: any[];
9
+ export { sanitizeMultiSelectValue as sanitizeValue };
10
+ export function create(options?: {}): {
11
+ values: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ };
16
+ }
15
17
  }
16
18
  export default Checklist;
17
19
  declare const type: "checklist";
@@ -1,12 +1,14 @@
1
1
  declare function Datetime(props: any): import("preact").JSX.Element;
2
2
  declare namespace Datetime {
3
- export function create(options?: {}): {};
4
- export { type };
5
- export const keyed: boolean;
6
- export const emptyValue: any;
7
- export { sanitizeDateTimePickerValue as sanitizeValue };
8
- export const label: string;
9
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: any;
9
+ export { sanitizeDateTimePickerValue as sanitizeValue };
10
+ export function create(options?: {}): {};
11
+ }
10
12
  }
11
13
  export default Datetime;
12
14
  declare const type: "datetime";
@@ -1,11 +1,13 @@
1
1
  declare function Default(props: any): import("preact").JSX.Element;
2
2
  declare namespace Default {
3
- function create(options?: {}): {
4
- components: any[];
5
- };
6
- const type: string;
7
- const keyed: boolean;
8
- const label: any;
9
- const group: any;
3
+ namespace config {
4
+ const type: string;
5
+ const keyed: boolean;
6
+ const label: any;
7
+ const group: any;
8
+ function create(options?: {}): {
9
+ components: any[];
10
+ };
11
+ }
10
12
  }
11
13
  export default Default;
@@ -1,10 +1,12 @@
1
1
  declare function Image(props: any): import("preact").JSX.Element;
2
2
  declare namespace Image {
3
- export function create(options?: {}): {};
4
- export { type };
5
- export const keyed: boolean;
6
- export const label: string;
7
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export function create(options?: {}): {};
9
+ }
8
10
  }
9
11
  export default Image;
10
12
  declare const type: "image";
@@ -1,15 +1,17 @@
1
1
  declare function Numberfield(props: any): import("preact").JSX.Element;
2
2
  declare namespace Numberfield {
3
- export function create(options?: {}): {};
4
- export function sanitizeValue({ value, formField }: {
5
- value: any;
6
- formField: any;
7
- }): any;
8
- export { type };
9
- export const keyed: boolean;
10
- export const label: string;
11
- export const emptyValue: any;
12
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: any;
9
+ export function sanitizeValue({ value, formField }: {
10
+ value: any;
11
+ formField: any;
12
+ }): any;
13
+ export function create(options?: {}): {};
14
+ }
13
15
  }
14
16
  export default Numberfield;
15
17
  declare const type: "number";
@@ -1,17 +1,19 @@
1
1
  declare function Radio(props: any): import("preact").JSX.Element;
2
2
  declare namespace Radio {
3
- export function create(options?: {}): {
4
- values: {
5
- label: string;
6
- value: string;
7
- }[];
8
- };
9
- export { type };
10
- export const label: string;
11
- export const keyed: boolean;
12
- export const emptyValue: any;
13
- export { sanitizeSingleSelectValue as sanitizeValue };
14
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: any;
9
+ export { sanitizeSingleSelectValue as sanitizeValue };
10
+ export function create(options?: {}): {
11
+ values: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ };
16
+ }
15
17
  }
16
18
  export default Radio;
17
19
  declare const type: "radio";
@@ -1,17 +1,19 @@
1
1
  declare function Select(props: any): import("preact").JSX.Element;
2
2
  declare namespace Select {
3
- export function create(options?: {}): {
4
- values: {
5
- label: string;
6
- value: string;
7
- }[];
8
- };
9
- export { type };
10
- export const label: string;
11
- export const keyed: boolean;
12
- export const emptyValue: any;
13
- export { sanitizeSingleSelectValue as sanitizeValue };
14
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: any;
9
+ export { sanitizeSingleSelectValue as sanitizeValue };
10
+ export function create(options?: {}): {
11
+ values: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ };
16
+ }
15
17
  }
16
18
  export default Select;
17
19
  declare const type: "select";
@@ -1,17 +1,19 @@
1
1
  declare function Taglist(props: any): import("preact").JSX.Element;
2
2
  declare namespace Taglist {
3
- export function create(options?: {}): {
4
- values: {
5
- label: string;
6
- value: string;
7
- }[];
8
- };
9
- export { type };
10
- export const label: string;
11
- export const keyed: boolean;
12
- export const emptyValue: any[];
13
- export { sanitizeMultiSelectValue as sanitizeValue };
14
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: any[];
9
+ export { sanitizeMultiSelectValue as sanitizeValue };
10
+ export function create(options?: {}): {
11
+ values: {
12
+ label: string;
13
+ value: string;
14
+ }[];
15
+ };
16
+ }
15
17
  }
16
18
  export default Taglist;
17
19
  declare const type: "taglist";
@@ -1,12 +1,14 @@
1
1
  declare function Text(props: any): import("preact").JSX.Element;
2
2
  declare namespace Text {
3
- export function create(options?: {}): {
4
- text: string;
5
- };
6
- export { type };
7
- export const keyed: boolean;
8
- export const group: string;
9
- export const label: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export function create(options?: {}): {
9
+ text: string;
10
+ };
11
+ }
10
12
  }
11
13
  export default Text;
12
14
  declare const type: "text";
@@ -1,14 +1,16 @@
1
1
  declare function Textarea(props: any): import("preact").JSX.Element;
2
2
  declare namespace Textarea {
3
- export function create(options?: {}): {};
4
- export { type };
5
- export const label: string;
6
- export const keyed: boolean;
7
- export const emptyValue: string;
8
- export function sanitizeValue({ value }: {
9
- value: any;
10
- }): string;
11
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: string;
9
+ export function sanitizeValue({ value }: {
10
+ value: any;
11
+ }): string;
12
+ export function create(options?: {}): {};
13
+ }
12
14
  }
13
15
  export default Textarea;
14
16
  declare const type: "textarea";
@@ -1,14 +1,16 @@
1
1
  declare function Textfield(props: any): import("preact").JSX.Element;
2
2
  declare namespace Textfield {
3
- export function create(options?: {}): {};
4
- export { type };
5
- export const label: string;
6
- export const keyed: boolean;
7
- export const emptyValue: string;
8
- export function sanitizeValue({ value }: {
9
- value: any;
10
- }): string;
11
- export const group: string;
3
+ namespace config {
4
+ export { type };
5
+ export const keyed: boolean;
6
+ export const label: string;
7
+ export const group: string;
8
+ export const emptyValue: string;
9
+ export function sanitizeValue({ value }: {
10
+ value: any;
11
+ }): string;
12
+ export function create(options?: {}): {};
13
+ }
12
14
  }
13
15
  export default Textfield;
14
16
  declare const type: "textfield";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-viewer",
3
- "version": "0.14.1",
3
+ "version": "0.15.0-alpha.0",
4
4
  "description": "View forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -61,5 +61,5 @@
61
61
  "files": [
62
62
  "dist"
63
63
  ],
64
- "gitHead": "a9ad771bc8f87d2fc428bd5bd1429b96bb03fe7a"
64
+ "gitHead": "205275d1b314a512e662758999cd6667894c3695"
65
65
  }