@bpmn-io/form-js-viewer 1.0.0-alpha.9 → 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.
@@ -116,12 +116,16 @@ export default class Form {
116
116
  */
117
117
  _getModules(): ({
118
118
  __init__: string[];
119
- expressionLanguage: (string | typeof import("./features/expression-language").FeelExpressionLanguage)[];
120
- templating: (string | typeof import("./features/expression-language").FeelersTemplating)[];
121
- 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)[];
122
122
  } | {
123
123
  __init__: string[];
124
- markdownRenderer: (string | typeof import("./features/markdown").MarkdownRenderer)[];
124
+ markdownRenderer: (string | typeof import("./features").MarkdownRenderer)[];
125
+ } | {
126
+ __depends__: import("didi").ModuleDeclaration[];
127
+ __init__: string[];
128
+ viewerCommands: (string | typeof import("./features").ViewerCommands)[];
125
129
  })[];
126
130
  /**
127
131
  * @internal
@@ -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;
@@ -1 +1 @@
1
- export function getFlavouredFeelVariableNames(feelString: any, feelFlavour: any, options?: {}): any;
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';
@@ -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: 9;
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";
@@ -0,0 +1 @@
1
+ export default function TemplatedInputAdorner(props: any): import("preact").JSX.Element;
@@ -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 };
@@ -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: {
@@ -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, expressionLanguage?: FeelExpressionLanguage, templating?: FeelersTemplating): string[];
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.0.0-alpha.9",
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-alpha.8",
51
- "feelin": "^0.41.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": "5b714f952e6f153644e8fbbfd6bc983d90fac62b"
65
+ "gitHead": "6bfb194e07fe44d3309744507f9f874cf8e94169"
66
66
  }