@bpmn-io/form-js-viewer 1.0.0 → 1.1.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/dist/assets/form-js-base.css +15 -0
- package/dist/assets/form-js.css +15 -0
- package/dist/index.cjs +1115 -398
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1116 -402
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +8 -26
- package/dist/types/features/expression-language/variableExtractionHelpers.d.ts +1 -1
- package/dist/types/features/index.d.ts +2 -0
- package/dist/types/features/viewerCommands/ViewerCommands.d.ts +14 -0
- package/dist/types/features/viewerCommands/cmd/UpdateFieldValidationHandler.d.ts +11 -0
- package/dist/types/features/viewerCommands/index.d.ts +8 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/render/components/form-fields/Spacer.d.ts +14 -0
- package/dist/types/render/components/index.d.ts +2 -1
- package/dist/types/util/index.d.ts +1 -3
- package/package.json +4 -4
package/dist/types/Form.d.ts
CHANGED
|
@@ -116,34 +116,16 @@ export default class Form {
|
|
|
116
116
|
*/
|
|
117
117
|
_getModules(): ({
|
|
118
118
|
__init__: string[];
|
|
119
|
-
expressionLanguage: (string | typeof import("./features
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
*/
|
|
142
|
-
templating: (string | typeof import("./features/expression-language").FeelersTemplating)[];
|
|
143
|
-
conditionChecker: (string | typeof import("./features/expression-language").ConditionChecker)[];
|
|
119
|
+
expressionLanguage: (string | typeof import("./features").FeelExpressionLanguage)[];
|
|
120
|
+
templating: (string | typeof import("./features").FeelersTemplating)[];
|
|
121
|
+
conditionChecker: (string | typeof import("./features").ConditionChecker)[];
|
|
144
122
|
} | {
|
|
145
123
|
__init__: string[];
|
|
146
|
-
markdownRenderer: (string | typeof import("./features
|
|
124
|
+
markdownRenderer: (string | typeof import("./features").MarkdownRenderer)[];
|
|
125
|
+
} | {
|
|
126
|
+
__depends__: import("didi").ModuleDeclaration[];
|
|
127
|
+
__init__: string[];
|
|
128
|
+
viewerCommands: (string | typeof import("./features").ViewerCommands)[];
|
|
147
129
|
})[];
|
|
148
130
|
/**
|
|
149
131
|
* @internal
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function getFlavouredFeelVariableNames(feelString: any, feelFlavour
|
|
1
|
+
export function getFlavouredFeelVariableNames(feelString: any, feelFlavour?: string, options?: {}): any[];
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { default as ExpressionLanguageModule } from "./expression-language";
|
|
2
2
|
export { default as MarkdownModule } from "./markdown";
|
|
3
|
+
export { default as ViewerCommandsModule } from "./viewerCommands";
|
|
3
4
|
export * from "./expression-language";
|
|
4
5
|
export * from "./markdown";
|
|
6
|
+
export * from "./viewerCommands";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare class ViewerCommands {
|
|
2
|
+
constructor(commandStack: any, eventBus: any);
|
|
3
|
+
_commandStack: any;
|
|
4
|
+
registerHandlers(): void;
|
|
5
|
+
getHandlers(): {
|
|
6
|
+
'formField.validation.update': typeof UpdateFieldValidationHandler;
|
|
7
|
+
};
|
|
8
|
+
updateFieldValidation(field: any, value: any): void;
|
|
9
|
+
}
|
|
10
|
+
declare namespace ViewerCommands {
|
|
11
|
+
const $inject: string[];
|
|
12
|
+
}
|
|
13
|
+
export default ViewerCommands;
|
|
14
|
+
import UpdateFieldValidationHandler from './cmd/UpdateFieldValidationHandler';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare class UpdateFieldValidationHandler {
|
|
2
|
+
constructor(form: any, validator: any);
|
|
3
|
+
_form: any;
|
|
4
|
+
_validator: any;
|
|
5
|
+
execute(context: any): void;
|
|
6
|
+
revert(context: any): void;
|
|
7
|
+
}
|
|
8
|
+
declare namespace UpdateFieldValidationHandler {
|
|
9
|
+
const $inject: string[];
|
|
10
|
+
}
|
|
11
|
+
export default UpdateFieldValidationHandler;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
const __depends__: import("didi").ModuleDeclaration[];
|
|
3
|
+
const __init__: string[];
|
|
4
|
+
const viewerCommands: (string | typeof ViewerCommands)[];
|
|
5
|
+
}
|
|
6
|
+
export default _default;
|
|
7
|
+
export { ViewerCommands };
|
|
8
|
+
import ViewerCommands from './ViewerCommands';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -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:
|
|
17
|
+
export const schemaVersion: 10;
|
|
18
18
|
export { Form };
|
|
19
19
|
export { FormFieldRegistry, FormLayouter } from "./core";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare function Spacer(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Spacer {
|
|
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
|
+
height: number;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export default Spacer;
|
|
14
|
+
declare const type: "spacer";
|
|
@@ -10,8 +10,9 @@ import Image from './form-fields/Image';
|
|
|
10
10
|
import Numberfield from './form-fields/Number';
|
|
11
11
|
import Radio from './form-fields/Radio';
|
|
12
12
|
import Select from './form-fields/Select';
|
|
13
|
+
import Spacer from './form-fields/Spacer';
|
|
13
14
|
import Taglist from './form-fields/Taglist';
|
|
14
15
|
import Text from './form-fields/Text';
|
|
15
16
|
import Textfield from './form-fields/Textfield';
|
|
16
17
|
import Textarea from './form-fields/Textarea';
|
|
17
|
-
export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, Image, Numberfield, Radio, Select, Taglist, Text, Textfield, Textarea };
|
|
18
|
+
export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, Image, Numberfield, Radio, Select, Spacer, Taglist, Text, Textfield, Textarea };
|
|
@@ -19,9 +19,7 @@ export function clone<T>(data: T, replacer?: (this: any, key: string, value: any
|
|
|
19
19
|
*
|
|
20
20
|
* @return {string[]}
|
|
21
21
|
*/
|
|
22
|
-
export function getSchemaVariables(schema: any,
|
|
22
|
+
export function getSchemaVariables(schema: any, options?: {}): string[];
|
|
23
23
|
export * from "./constants";
|
|
24
24
|
export * from "./injector";
|
|
25
25
|
export * from "./form";
|
|
26
|
-
import FeelExpressionLanguage from '../features/expression-language/FeelExpressionLanguage.js';
|
|
27
|
-
import FeelersTemplating from '../features/expression-language/FeelersTemplating.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-viewer",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "View forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"big.js": "^6.2.1",
|
|
48
48
|
"classnames": "^2.3.1",
|
|
49
49
|
"didi": "^9.0.0",
|
|
50
|
-
"feelers": "^0.1.0
|
|
51
|
-
"feelin": "^0.
|
|
50
|
+
"feelers": "^0.1.0",
|
|
51
|
+
"feelin": "^1.0.0",
|
|
52
52
|
"flatpickr": "^4.6.13",
|
|
53
53
|
"ids": "^1.0.0",
|
|
54
54
|
"min-dash": "^4.0.0",
|
|
@@ -62,5 +62,5 @@
|
|
|
62
62
|
"files": [
|
|
63
63
|
"dist"
|
|
64
64
|
],
|
|
65
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "6bfb194e07fe44d3309744507f9f874cf8e94169"
|
|
66
66
|
}
|