@bpmn-io/form-js-viewer 1.0.0-alpha.7 → 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.
- package/LICENSE +22 -22
- package/README.md +164 -164
- package/dist/assets/form-js-base.css +917 -880
- package/dist/assets/form-js.css +38 -1
- package/dist/index.cjs +754 -634
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +738 -636
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +22 -0
- package/dist/types/core/Validator.d.ts +5 -1
- package/dist/types/render/components/form-fields/parts/TemplatedInputAdorner.d.ts +1 -0
- package/dist/types/types.d.ts +35 -35
- package/dist/types/util/constants/ValuesSourceConstants.d.ts +1 -0
- package/package.json +2 -2
package/dist/types/Form.d.ts
CHANGED
|
@@ -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:
|
|
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;
|
package/dist/types/types.d.ts
CHANGED
|
@@ -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
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-viewer",
|
|
3
|
-
"version": "1.0.0
|
|
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": "
|
|
65
|
+
"gitHead": "3a6af85bb648af7fd35347556dc36384da5ee64f"
|
|
66
66
|
}
|