@bpmn-io/form-js-viewer 1.4.0 → 1.5.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 +24 -0
- package/dist/assets/form-js.css +457 -654
- package/dist/index.cjs +394 -230
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +391 -232
- package/dist/index.es.js.map +1 -1
- package/dist/types/core/FieldFactory.d.ts +1 -1
- package/dist/types/core/FormFieldRegistry.d.ts +1 -1
- package/dist/types/core/FormLayouter.d.ts +2 -2
- package/dist/types/core/Importer.d.ts +1 -1
- package/dist/types/core/PathRegistry.d.ts +1 -1
- package/dist/types/core/Validator.d.ts +1 -1
- package/dist/types/core/index.d.ts +8 -8
- package/dist/types/features/expression-language/ConditionChecker.d.ts +1 -1
- package/dist/types/features/expression-language/FeelExpressionLanguage.d.ts +1 -1
- package/dist/types/features/expression-language/FeelersTemplating.d.ts +1 -1
- package/dist/types/features/expression-language/index.d.ts +4 -4
- package/dist/types/features/markdown/MarkdownRenderer.d.ts +1 -1
- package/dist/types/features/markdown/index.d.ts +2 -2
- package/dist/types/features/viewerCommands/ViewerCommands.d.ts +1 -1
- package/dist/types/features/viewerCommands/cmd/UpdateFieldValidationHandler.d.ts +1 -1
- package/dist/types/features/viewerCommands/index.d.ts +3 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/render/Renderer.d.ts +1 -1
- package/dist/types/render/components/Sanitizer.d.ts +8 -0
- package/dist/types/render/components/form-fields/Button.d.ts +3 -3
- package/dist/types/render/components/form-fields/Checkbox.d.ts +4 -4
- package/dist/types/render/components/form-fields/Checklist.d.ts +5 -5
- package/dist/types/render/components/form-fields/Datetime.d.ts +4 -4
- package/dist/types/render/components/form-fields/Default.d.ts +4 -4
- package/dist/types/render/components/form-fields/Group.d.ts +4 -4
- package/dist/types/render/components/form-fields/IFrame.d.ts +12 -0
- package/dist/types/render/components/form-fields/Image.d.ts +3 -3
- package/dist/types/render/components/form-fields/Number.d.ts +4 -4
- package/dist/types/render/components/form-fields/Radio.d.ts +5 -5
- package/dist/types/render/components/form-fields/Select.d.ts +5 -5
- package/dist/types/render/components/form-fields/Separator.d.ts +3 -3
- package/dist/types/render/components/form-fields/Spacer.d.ts +3 -3
- package/dist/types/render/components/form-fields/Taglist.d.ts +5 -5
- package/dist/types/render/components/form-fields/Text.d.ts +3 -3
- package/dist/types/render/components/form-fields/Textarea.d.ts +4 -4
- package/dist/types/render/components/form-fields/Textfield.d.ts +4 -4
- package/dist/types/render/components/index.d.ts +3 -2
- package/dist/types/render/components/util/optionsUtil.d.ts +8 -0
- package/dist/types/render/hooks/useCleanupMultiSelectValues.d.ts +1 -0
- package/dist/types/render/hooks/useCleanupSingleSelectValue.d.ts +1 -0
- package/dist/types/render/hooks/useOptionsAsync.d.ts +28 -0
- package/dist/types/render/index.d.ts +4 -3
- package/dist/types/util/constants/DatetimeConstants.d.ts +6 -6
- package/dist/types/util/constants/ValuesSourceConstants.d.ts +3 -3
- package/package.json +4 -4
- package/dist/types/render/components/util/valuesUtil.d.ts +0 -8
- package/dist/types/render/hooks/useValuesAsync.d.ts +0 -28
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
declare class FormLayouter {
|
|
19
19
|
constructor(eventBus: any);
|
|
20
20
|
/** @type Array<FormRows> */
|
|
21
|
-
_rows: FormRows
|
|
21
|
+
_rows: Array<FormRows>;
|
|
22
22
|
_ids: any;
|
|
23
23
|
_eventBus: any;
|
|
24
24
|
/**
|
|
@@ -51,7 +51,7 @@ declare class FormLayouter {
|
|
|
51
51
|
clear(): void;
|
|
52
52
|
}
|
|
53
53
|
declare namespace FormLayouter {
|
|
54
|
-
|
|
54
|
+
let $inject: string[];
|
|
55
55
|
}
|
|
56
56
|
export default FormLayouter;
|
|
57
57
|
export type FormRow = {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
2
|
+
let __depends__: {
|
|
3
3
|
__init__: string[];
|
|
4
4
|
formFields: (string | typeof import("../render").FormFields)[];
|
|
5
5
|
renderer: (string | typeof import("../render/Renderer").default)[];
|
|
6
6
|
}[];
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
7
|
+
let eventBus: (string | typeof EventBus)[];
|
|
8
|
+
let importer: (string | typeof Importer)[];
|
|
9
|
+
let fieldFactory: (string | typeof FieldFactory)[];
|
|
10
|
+
let formFieldRegistry: (string | typeof FormFieldRegistry)[];
|
|
11
|
+
let pathRegistry: (string | typeof PathRegistry)[];
|
|
12
|
+
let formLayouter: (string | typeof FormLayouter)[];
|
|
13
|
+
let validator: (string | typeof Validator)[];
|
|
14
14
|
}
|
|
15
15
|
export default _default;
|
|
16
16
|
import Importer from './Importer';
|
|
@@ -46,7 +46,7 @@ declare class ConditionChecker {
|
|
|
46
46
|
_clearObjectValueRecursively(valuePath: any, obj: any): void;
|
|
47
47
|
}
|
|
48
48
|
declare namespace ConditionChecker {
|
|
49
|
-
|
|
49
|
+
let $inject: string[];
|
|
50
50
|
}
|
|
51
51
|
export default ConditionChecker;
|
|
52
52
|
export type Condition = {
|
|
@@ -32,6 +32,6 @@ declare class FeelExpressionLanguage {
|
|
|
32
32
|
evaluate(expression: string, data?: import('../../types').Data): any;
|
|
33
33
|
}
|
|
34
34
|
declare namespace FeelExpressionLanguage {
|
|
35
|
-
|
|
35
|
+
let $inject: string[];
|
|
36
36
|
}
|
|
37
37
|
export default FeelExpressionLanguage;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let expressionLanguage: (string | typeof FeelExpressionLanguage)[];
|
|
4
|
+
let templating: (string | typeof FeelersTemplating)[];
|
|
5
|
+
let conditionChecker: (string | typeof ConditionChecker)[];
|
|
6
6
|
}
|
|
7
7
|
export default _default;
|
|
8
8
|
import FeelExpressionLanguage from './FeelExpressionLanguage';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
let __init__: string[];
|
|
3
|
+
let markdownRenderer: (string | typeof MarkdownRenderer)[];
|
|
4
4
|
}
|
|
5
5
|
export default _default;
|
|
6
6
|
export { MarkdownRenderer };
|
|
@@ -8,7 +8,7 @@ declare class ViewerCommands {
|
|
|
8
8
|
updateFieldValidation(field: any, value: any): void;
|
|
9
9
|
}
|
|
10
10
|
declare namespace ViewerCommands {
|
|
11
|
-
|
|
11
|
+
let $inject: string[];
|
|
12
12
|
}
|
|
13
13
|
export default ViewerCommands;
|
|
14
14
|
import UpdateFieldValidationHandler from './cmd/UpdateFieldValidationHandler';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
let __depends__: import("didi").ModuleDeclaration[];
|
|
3
|
+
let __init__: string[];
|
|
4
|
+
let viewerCommands: (string | typeof ViewerCommands)[];
|
|
5
5
|
}
|
|
6
6
|
export default _default;
|
|
7
7
|
export { 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: 13;
|
|
18
18
|
export { Form };
|
|
19
19
|
export { FormFieldRegistry, FormLayouter, Importer, FieldFactory, PathRegistry } from "./core";
|
|
@@ -15,3 +15,11 @@ export function sanitizeHTML(html: string): string;
|
|
|
15
15
|
* @returns {string}
|
|
16
16
|
*/
|
|
17
17
|
export function sanitizeImageSource(src: string): string;
|
|
18
|
+
/**
|
|
19
|
+
* Sanitizes an iframe source to ensure we only allow for links
|
|
20
|
+
* that start with http(s).
|
|
21
|
+
*
|
|
22
|
+
* @param {string} src
|
|
23
|
+
* @returns {string}
|
|
24
|
+
*/
|
|
25
|
+
export function sanitizeIFrameSource(src: string): string;
|
|
@@ -2,9 +2,9 @@ declare function Button(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Button {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
8
|
export function create(options?: {}): {
|
|
9
9
|
action: string;
|
|
10
10
|
};
|
|
@@ -2,10 +2,10 @@ declare function Checkbox(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Checkbox {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: boolean;
|
|
9
9
|
export function sanitizeValue({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}): boolean;
|
|
@@ -2,10 +2,10 @@ declare function Checklist(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Checklist {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: any[];
|
|
9
9
|
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
10
10
|
export { createEmptyOptions as create };
|
|
11
11
|
}
|
|
@@ -13,4 +13,4 @@ declare namespace Checklist {
|
|
|
13
13
|
export default Checklist;
|
|
14
14
|
declare const type: "checklist";
|
|
15
15
|
import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
|
|
16
|
-
import { createEmptyOptions } from '../util/
|
|
16
|
+
import { createEmptyOptions } from '../util/optionsUtil';
|
|
@@ -2,10 +2,10 @@ declare function Datetime(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Datetime {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: any;
|
|
9
9
|
export { sanitizeDateTimePickerValue as sanitizeValue };
|
|
10
10
|
export function create(options?: {}): {};
|
|
11
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare function FormComponent(props: any): import("preact").JSX.Element;
|
|
2
2
|
declare namespace FormComponent {
|
|
3
3
|
namespace config {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
let type: string;
|
|
5
|
+
let keyed: boolean;
|
|
6
|
+
let label: any;
|
|
7
|
+
let group: any;
|
|
8
8
|
function create(options?: {}): {
|
|
9
9
|
components: any[];
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
declare function Group(props: any): import("preact").JSX.Element;
|
|
2
2
|
declare namespace Group {
|
|
3
3
|
namespace config {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
let type: string;
|
|
5
|
+
let pathed: boolean;
|
|
6
|
+
let label: string;
|
|
7
|
+
let group: string;
|
|
8
8
|
function create(options?: {}): {
|
|
9
9
|
components: any[];
|
|
10
10
|
showOutline: boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare function IFrame(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace IFrame {
|
|
3
|
+
namespace config {
|
|
4
|
+
export { type };
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export function create(options?: {}): {};
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export default IFrame;
|
|
12
|
+
declare const type: "iframe";
|
|
@@ -2,9 +2,9 @@ declare function Image(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Image {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
8
|
export function create(options?: {}): {};
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -2,10 +2,10 @@ declare function Numberfield(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Numberfield {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: any;
|
|
9
9
|
export function sanitizeValue({ value, formField }: {
|
|
10
10
|
value: any;
|
|
11
11
|
formField: any;
|
|
@@ -2,10 +2,10 @@ declare function Radio(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Radio {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: any;
|
|
9
9
|
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
10
10
|
export { createEmptyOptions as create };
|
|
11
11
|
}
|
|
@@ -13,4 +13,4 @@ declare namespace Radio {
|
|
|
13
13
|
export default Radio;
|
|
14
14
|
declare const type: "radio";
|
|
15
15
|
import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
|
|
16
|
-
import { createEmptyOptions } from '../util/
|
|
16
|
+
import { createEmptyOptions } from '../util/optionsUtil';
|
|
@@ -2,10 +2,10 @@ declare function Select(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Select {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: any;
|
|
9
9
|
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
10
10
|
export { createEmptyOptions as create };
|
|
11
11
|
}
|
|
@@ -13,4 +13,4 @@ declare namespace Select {
|
|
|
13
13
|
export default Select;
|
|
14
14
|
declare const type: "select";
|
|
15
15
|
import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
|
|
16
|
-
import { createEmptyOptions } from '../util/
|
|
16
|
+
import { createEmptyOptions } from '../util/optionsUtil';
|
|
@@ -2,9 +2,9 @@ declare function Separator(): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Separator {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
8
|
export function create(options?: {}): {};
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -2,9 +2,9 @@ declare function Spacer(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Spacer {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
8
|
export function create(options?: {}): {
|
|
9
9
|
height: number;
|
|
10
10
|
};
|
|
@@ -2,10 +2,10 @@ declare function Taglist(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Taglist {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: any[];
|
|
9
9
|
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
10
10
|
export { createEmptyOptions as create };
|
|
11
11
|
}
|
|
@@ -13,4 +13,4 @@ declare namespace Taglist {
|
|
|
13
13
|
export default Taglist;
|
|
14
14
|
declare const type: "taglist";
|
|
15
15
|
import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
|
|
16
|
-
import { createEmptyOptions } from '../util/
|
|
16
|
+
import { createEmptyOptions } from '../util/optionsUtil';
|
|
@@ -2,9 +2,9 @@ declare function Text(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Text {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
8
|
export function create(options?: {}): {
|
|
9
9
|
text: string;
|
|
10
10
|
};
|
|
@@ -2,10 +2,10 @@ declare function Textarea(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Textarea {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: string;
|
|
9
9
|
export function sanitizeValue({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}): string;
|
|
@@ -2,10 +2,10 @@ declare function Textfield(props: any): import("preact").JSX.Element;
|
|
|
2
2
|
declare namespace Textfield {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
5
|
+
export let keyed: boolean;
|
|
6
|
+
export let label: string;
|
|
7
|
+
export let group: string;
|
|
8
|
+
export let emptyValue: string;
|
|
9
9
|
export function sanitizeValue({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const formFields: (typeof Default | typeof Group | typeof
|
|
1
|
+
export const formFields: (typeof Default | typeof Group | typeof IFrame)[];
|
|
2
2
|
export * from "./icons";
|
|
3
3
|
export * from "./Sanitizer";
|
|
4
4
|
import Label from './Label';
|
|
@@ -12,6 +12,7 @@ import Datetime from './form-fields/Datetime';
|
|
|
12
12
|
import FormComponent from './FormComponent';
|
|
13
13
|
import FormField from './FormField';
|
|
14
14
|
import Group from './form-fields/Group';
|
|
15
|
+
import IFrame from './form-fields/IFrame';
|
|
15
16
|
import Image from './form-fields/Image';
|
|
16
17
|
import Numberfield from './form-fields/Number';
|
|
17
18
|
import Radio from './form-fields/Radio';
|
|
@@ -22,4 +23,4 @@ import Taglist from './form-fields/Taglist';
|
|
|
22
23
|
import Text from './form-fields/Text';
|
|
23
24
|
import Textfield from './form-fields/Textfield';
|
|
24
25
|
import Textarea from './form-fields/Textarea';
|
|
25
|
-
export { Label, Description, Errors, Button, Checkbox, Checklist, Default, Datetime, FormComponent, FormField, Group, Image, Numberfield, Radio, Select, Separator, Spacer, Taglist, Text, Textfield, Textarea };
|
|
26
|
+
export { Label, Description, Errors, Button, Checkbox, Checklist, Default, Datetime, FormComponent, FormField, Group, IFrame, Image, Numberfield, Radio, Select, Separator, Spacer, Taglist, Text, Textfield, Textarea };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(props: any): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(props: any): void;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef {Object} OptionsGetter
|
|
3
|
+
* @property {Object[]} options - The options data
|
|
4
|
+
* @property {(LOAD_STATES)} loadState - The options data's loading state, to use for conditional rendering
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* A hook to load options for single and multiselect components.
|
|
8
|
+
*
|
|
9
|
+
* @param {Object} field - The form field to handle options for
|
|
10
|
+
* @return {OptionsGetter} optionsGetter - A options getter object providing loading state and options
|
|
11
|
+
*/
|
|
12
|
+
export default function _default(field: any): OptionsGetter;
|
|
13
|
+
export type LOAD_STATES = string;
|
|
14
|
+
export namespace LOAD_STATES {
|
|
15
|
+
let LOADING: string;
|
|
16
|
+
let LOADED: string;
|
|
17
|
+
let ERROR: string;
|
|
18
|
+
}
|
|
19
|
+
export type OptionsGetter = {
|
|
20
|
+
/**
|
|
21
|
+
* - The options data
|
|
22
|
+
*/
|
|
23
|
+
options: any[];
|
|
24
|
+
/**
|
|
25
|
+
* - The options data's loading state, to use for conditional rendering
|
|
26
|
+
*/
|
|
27
|
+
loadState: (LOAD_STATES);
|
|
28
|
+
};
|
|
@@ -2,10 +2,11 @@ export { FormFields };
|
|
|
2
2
|
export * from "./components";
|
|
3
3
|
export * from "./context";
|
|
4
4
|
declare namespace _default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
let __init__: string[];
|
|
6
|
+
let formFields: (string | typeof FormFields)[];
|
|
7
|
+
let renderer: (string | typeof Renderer)[];
|
|
8
8
|
}
|
|
9
9
|
export default _default;
|
|
10
10
|
import FormFields from './FormFields';
|
|
11
11
|
import Renderer from './Renderer';
|
|
12
|
+
export { useExpressionEvaluation, useSingleLineTemplateEvaluation, useTemplateEvaluation } from "./hooks";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export const MINUTES_IN_DAY: number;
|
|
2
2
|
export namespace DATETIME_SUBTYPES {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
let DATE: string;
|
|
4
|
+
let TIME: string;
|
|
5
|
+
let DATETIME: string;
|
|
6
6
|
}
|
|
7
7
|
export namespace TIME_SERIALISING_FORMATS {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
let UTC_OFFSET: string;
|
|
9
|
+
let UTC_NORMALIZED: string;
|
|
10
|
+
let NO_TIMEZONE: string;
|
|
11
11
|
}
|
|
12
12
|
export const DATETIME_SUBTYPES_LABELS: {
|
|
13
13
|
[x: string]: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export function getValuesSource(field: any): string;
|
|
2
2
|
export namespace VALUES_SOURCES {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
let STATIC: string;
|
|
4
|
+
let INPUT: string;
|
|
5
|
+
let EXPRESSION: string;
|
|
6
6
|
}
|
|
7
7
|
export const VALUES_SOURCE_DEFAULT: string;
|
|
8
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.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "View forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"big.js": "^6.2.1",
|
|
49
49
|
"classnames": "^2.3.1",
|
|
50
50
|
"didi": "^9.0.0",
|
|
51
|
-
"feelers": "^1.
|
|
52
|
-
"feelin": "^
|
|
51
|
+
"feelers": "^1.2.0",
|
|
52
|
+
"feelin": "^2.3.0",
|
|
53
53
|
"flatpickr": "^4.6.13",
|
|
54
54
|
"ids": "^1.0.0",
|
|
55
55
|
"min-dash": "^4.0.0",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"files": [
|
|
64
64
|
"dist"
|
|
65
65
|
],
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "02814e168dd3078869fede070bcc6d8f1f741ec7"
|
|
67
67
|
}
|