@bpmn-io/form-js-viewer 1.0.0-alpha.9 → 1.0.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.
@@ -117,6 +117,28 @@ export default class Form {
117
117
  _getModules(): ({
118
118
  __init__: string[];
119
119
  expressionLanguage: (string | typeof import("./features/expression-language").FeelExpressionLanguage)[];
120
+ /**
121
+ * @typedef { import('./types').Injector } Injector
122
+ * @typedef { import('./types').Data } Data
123
+ * @typedef { import('./types').Errors } Errors
124
+ * @typedef { import('./types').Schema } Schema
125
+ * @typedef { import('./types').FormProperties } FormProperties
126
+ * @typedef { import('./types').FormProperty } FormProperty
127
+ * @typedef { import('./types').FormEvent } FormEvent
128
+ * @typedef { import('./types').FormOptions } FormOptions
129
+ *
130
+ * @typedef { {
131
+ * data: Data,
132
+ * initialData: Data,
133
+ * errors: Errors,
134
+ * properties: FormProperties,
135
+ * schema: Schema
136
+ * } } State
137
+ *
138
+ * @typedef { (type:FormEvent, priority:number, handler:Function) => void } OnEventWithPriority
139
+ * @typedef { (type:FormEvent, handler:Function) => void } OnEventWithOutPriority
140
+ * @typedef { OnEventWithPriority & OnEventWithOutPriority } OnEventType
141
+ */
120
142
  templating: (string | typeof import("./features/expression-language").FeelersTemplating)[];
121
143
  conditionChecker: (string | typeof import("./features/expression-language").ConditionChecker)[];
122
144
  } | {
@@ -1,7 +1,11 @@
1
1
  declare class Validator {
2
+ constructor(expressionLanguage: any, conditionChecker: any, form: any);
3
+ _expressionLanguage: any;
4
+ _conditionChecker: any;
5
+ _form: any;
2
6
  validateField(field: any, value: any): any[];
3
7
  }
4
8
  declare namespace Validator {
5
- const $inject: any[];
9
+ const $inject: string[];
6
10
  }
7
11
  export default Validator;
@@ -0,0 +1 @@
1
+ export default function TemplatedInputAdorner(props: any): import("preact").JSX.Element;
@@ -1,36 +1,36 @@
1
- import { Injector } from 'didi';
2
-
3
- export type Module = any;
4
- export type Schema = any;
5
-
6
- export interface Data {
7
- [x: string]: any;
8
- }
9
-
10
- export interface Errors {
11
- [x: string]: string[];
12
- }
13
-
14
- export type FormProperty = ('readOnly' | 'disabled' | string);
15
- export type FormEvent = ('submit' | 'changed' | string);
16
-
17
- export interface FormProperties {
18
- [x: string]: any;
19
- }
20
-
21
- export interface FormOptions {
22
- additionalModules?: Module[];
23
- container?: Element | null | string;
24
- injector?: Injector;
25
- modules?: Module[];
26
- properties?: FormProperties;
27
- }
28
-
29
- export interface CreateFormOptions extends FormOptions {
30
- data?: Data;
31
- schema: Schema;
32
- }
33
-
34
- export {
35
- Injector
1
+ import { Injector } from 'didi';
2
+
3
+ export type Module = any;
4
+ export type Schema = any;
5
+
6
+ export interface Data {
7
+ [x: string]: any;
8
+ }
9
+
10
+ export interface Errors {
11
+ [x: string]: string[];
12
+ }
13
+
14
+ export type FormProperty = ('readOnly' | 'disabled' | string);
15
+ export type FormEvent = ('submit' | 'changed' | string);
16
+
17
+ export interface FormProperties {
18
+ [x: string]: any;
19
+ }
20
+
21
+ export interface FormOptions {
22
+ additionalModules?: Module[];
23
+ container?: Element | null | string;
24
+ injector?: Injector;
25
+ modules?: Module[];
26
+ properties?: FormProperties;
27
+ }
28
+
29
+ export interface CreateFormOptions extends FormOptions {
30
+ data?: Data;
31
+ schema: Schema;
32
+ }
33
+
34
+ export {
35
+ Injector
36
36
  };
@@ -2,6 +2,7 @@ export function getValuesSource(field: any): string;
2
2
  export namespace VALUES_SOURCES {
3
3
  const STATIC: string;
4
4
  const INPUT: string;
5
+ const EXPRESSION: string;
5
6
  }
6
7
  export const VALUES_SOURCE_DEFAULT: string;
7
8
  export const VALUES_SOURCES_LABELS: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-viewer",
3
- "version": "1.0.0-alpha.9",
3
+ "version": "1.0.0",
4
4
  "description": "View forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -62,5 +62,5 @@
62
62
  "files": [
63
63
  "dist"
64
64
  ],
65
- "gitHead": "5b714f952e6f153644e8fbbfd6bc983d90fac62b"
65
+ "gitHead": "3a6af85bb648af7fd35347556dc36384da5ee64f"
66
66
  }