@bpmn-io/form-js-viewer 1.11.0-alpha.0 → 1.11.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/README.md +1 -0
- package/dist/assets/form-js-base.css +5 -0
- package/dist/assets/form-js.css +5 -0
- package/dist/index.cjs +316 -427
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +316 -427
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +1 -2
- package/dist/types/core/FieldFactory.d.ts +1 -1
- package/dist/types/core/FormFieldInstanceRegistry.d.ts +2 -3
- package/dist/types/core/index.d.ts +0 -1
- package/dist/types/features/repeatRender/RepeatRenderManager.d.ts +4 -9
- package/dist/types/index.d.ts +1 -1
- package/dist/types/render/components/Util.d.ts +1 -0
- package/dist/types/render/components/form-fields/Button.d.ts +2 -1
- package/dist/types/render/components/form-fields/Checkbox.d.ts +4 -2
- package/dist/types/render/components/form-fields/Checklist.d.ts +2 -3
- package/dist/types/render/components/form-fields/Datetime.d.ts +3 -2
- package/dist/types/render/components/form-fields/Default.d.ts +1 -0
- package/dist/types/render/components/form-fields/DynamicList.d.ts +2 -1
- package/dist/types/render/components/form-fields/ExpressionField.d.ts +1 -1
- package/dist/types/render/components/form-fields/FilePicker.d.ts +5 -4
- package/dist/types/render/components/form-fields/Group.d.ts +2 -1
- package/dist/types/render/components/form-fields/Html.d.ts +1 -1
- package/dist/types/render/components/form-fields/IFrame.d.ts +2 -1
- package/dist/types/render/components/form-fields/Image.d.ts +2 -1
- package/dist/types/render/components/form-fields/Number.d.ts +4 -2
- package/dist/types/render/components/form-fields/Radio.d.ts +2 -3
- package/dist/types/render/components/form-fields/Select.d.ts +2 -3
- package/dist/types/render/components/form-fields/Separator.d.ts +1 -1
- package/dist/types/render/components/form-fields/Spacer.d.ts +1 -1
- package/dist/types/render/components/form-fields/Table.d.ts +2 -1
- package/dist/types/render/components/form-fields/Taglist.d.ts +2 -3
- package/dist/types/render/components/form-fields/Text.d.ts +2 -1
- package/dist/types/render/components/form-fields/Textarea.d.ts +4 -2
- package/dist/types/render/components/form-fields/Textfield.d.ts +4 -2
- package/dist/types/render/components/index.d.ts +1 -1
- package/dist/types/render/hooks/index.d.ts +0 -1
- package/dist/types/render/hooks/useExpressionEvaluation.d.ts +4 -3
- package/dist/types/render/hooks/useService.d.ts +1 -7
- package/dist/types/render/index.d.ts +0 -2
- package/dist/types/util/expressions.d.ts +4 -3
- package/package.json +8 -8
- package/dist/types/render/FileRegistry.d.ts +0 -52
- package/dist/types/render/hooks/useBooleanExpressionEvaluation.d.ts +0 -9
- package/dist/types/util/constants/FilePickerConstants.d.ts +0 -1
- package/dist/types/util/extractFileReferencesFromRemovedData.d.ts +0 -7
package/dist/types/Form.d.ts
CHANGED
|
@@ -55,12 +55,11 @@ export class Form {
|
|
|
55
55
|
/**
|
|
56
56
|
* Submit the form, triggering all field validations.
|
|
57
57
|
*
|
|
58
|
-
* @returns { { data: Data, errors: Errors
|
|
58
|
+
* @returns { { data: Data, errors: Errors } }
|
|
59
59
|
*/
|
|
60
60
|
submit(): {
|
|
61
61
|
data: Data;
|
|
62
62
|
errors: Errors;
|
|
63
|
-
files: Map<string, File[]>;
|
|
64
63
|
};
|
|
65
64
|
reset(): void;
|
|
66
65
|
/**
|
|
@@ -9,7 +9,7 @@ export class FieldFactory {
|
|
|
9
9
|
_formFieldRegistry: any;
|
|
10
10
|
_pathRegistry: any;
|
|
11
11
|
_formFields: any;
|
|
12
|
-
create(attrs: any,
|
|
12
|
+
create(attrs: any, isNewField?: boolean): any;
|
|
13
13
|
_ensureId(field: any): void;
|
|
14
14
|
_ensureKey(field: any): void;
|
|
15
15
|
_enforceDefaultPath(field: any): void;
|
|
@@ -4,9 +4,8 @@ export class FormFieldInstanceRegistry {
|
|
|
4
4
|
_formFieldRegistry: any;
|
|
5
5
|
_formFields: any;
|
|
6
6
|
_formFieldInstances: {};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
get(instanceId: any): any;
|
|
7
|
+
add(instance: any): string;
|
|
8
|
+
remove(instanceId: any): void;
|
|
10
9
|
getAll(): any[];
|
|
11
10
|
getAllKeyed(): any[];
|
|
12
11
|
clear(): void;
|
|
@@ -3,7 +3,6 @@ export namespace CoreModule {
|
|
|
3
3
|
__init__: string[];
|
|
4
4
|
formFields: (string | typeof import("../render").FormFields)[];
|
|
5
5
|
renderer: (string | typeof import("../render/Renderer").Renderer)[];
|
|
6
|
-
fileRegistry: (string | typeof import("../render/FileRegistry").FileRegistry)[];
|
|
7
6
|
}[];
|
|
8
7
|
let eventBus: (string | typeof EventBus)[];
|
|
9
8
|
let importer: (string | typeof Importer)[];
|
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
export class RepeatRenderManager {
|
|
2
|
-
constructor(form: any, formFields: any, formFieldRegistry: any, pathRegistry: any
|
|
2
|
+
constructor(form: any, formFields: any, formFieldRegistry: any, pathRegistry: any);
|
|
3
3
|
_form: any;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
_formFieldRegistry: import('../../core/FormFieldRegistry').FormFieldRegistry;
|
|
8
|
-
/** @type {import('../../core/PathRegistry').PathRegistry} */
|
|
9
|
-
_pathRegistry: import('../../core/PathRegistry').PathRegistry;
|
|
10
|
-
/** @type {import('../../core/EventBus').EventBus} */
|
|
11
|
-
_eventBus: import('../../core/EventBus').EventBus;
|
|
4
|
+
_formFields: any;
|
|
5
|
+
_formFieldRegistry: any;
|
|
6
|
+
_pathRegistry: any;
|
|
12
7
|
Repeater(props: any): import("preact").JSX.Element;
|
|
13
8
|
RepeatFooter(props: any): import("preact").JSX.Element;
|
|
14
9
|
/**
|
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: 17;
|
|
18
18
|
export { Form };
|
|
19
19
|
export { FormFieldRegistry, FormLayouter, Importer, FieldFactory, PathRegistry } from "./core";
|
|
@@ -4,4 +4,5 @@ export function formFieldClasses(type: any, { errors, disabled, readonly }?: {
|
|
|
4
4
|
readonly?: boolean;
|
|
5
5
|
}): string;
|
|
6
6
|
export function gridColumnClasses(formField: any): string;
|
|
7
|
+
export function textToLabel(text: any): string;
|
|
7
8
|
export function prefixId(id: any, formId: any, indexes: any): string;
|
|
@@ -3,9 +3,10 @@ export namespace Button {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export function create(options?: {}): {
|
|
9
|
+
label: string;
|
|
9
10
|
action: string;
|
|
10
11
|
};
|
|
11
12
|
}
|
|
@@ -3,13 +3,15 @@ export namespace Checkbox {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: boolean;
|
|
9
9
|
export function sanitizeValue({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}): boolean;
|
|
12
|
-
export function create(options?: {}): {
|
|
12
|
+
export function create(options?: {}): {
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
declare const type: "checkbox";
|
|
@@ -3,14 +3,13 @@ export namespace Checklist {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: any[];
|
|
9
9
|
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
10
|
-
export
|
|
10
|
+
export function create(options?: {}): any;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
declare const type: "checklist";
|
|
14
14
|
import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
|
|
15
|
-
import { createEmptyOptions } from '../util/optionsUtil';
|
|
16
15
|
export {};
|
|
@@ -3,11 +3,12 @@ export namespace Datetime {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: any;
|
|
9
9
|
export { sanitizeDateTimePickerValue as sanitizeValue };
|
|
10
|
-
export function create(options
|
|
10
|
+
export function create(options: {}, isNewField: any): {};
|
|
11
|
+
export function getSubheading(field: any): any;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
declare const type: "datetime";
|
|
@@ -4,9 +4,10 @@ export namespace DynamicList {
|
|
|
4
4
|
let type: string;
|
|
5
5
|
let pathed: boolean;
|
|
6
6
|
let repeatable: boolean;
|
|
7
|
-
let
|
|
7
|
+
let name: string;
|
|
8
8
|
let group: string;
|
|
9
9
|
function create(options?: {}): {
|
|
10
|
+
label: string;
|
|
10
11
|
components: any[];
|
|
11
12
|
showOutline: boolean;
|
|
12
13
|
isRepeating: boolean;
|
|
@@ -2,7 +2,7 @@ export function ExpressionField(props: any): any;
|
|
|
2
2
|
export namespace ExpressionField {
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
|
-
export let
|
|
5
|
+
export let name: string;
|
|
6
6
|
export let group: string;
|
|
7
7
|
export let keyed: boolean;
|
|
8
8
|
export let emptyValue: any;
|
|
@@ -10,8 +10,7 @@
|
|
|
10
10
|
* @property {string} field.id
|
|
11
11
|
* @property {string} [field.label]
|
|
12
12
|
* @property {string} [field.accept]
|
|
13
|
-
* @property {
|
|
14
|
-
* @property {string} [value]
|
|
13
|
+
* @property {boolean} [field.multiple]
|
|
15
14
|
*
|
|
16
15
|
* @param {Props} props
|
|
17
16
|
* @returns {import("preact").JSX.Element}
|
|
@@ -24,6 +23,9 @@ export namespace FilePicker {
|
|
|
24
23
|
let label: string;
|
|
25
24
|
let group: string;
|
|
26
25
|
let emptyValue: any;
|
|
26
|
+
function sanitizeValue({ value }: {
|
|
27
|
+
value: any;
|
|
28
|
+
}): any;
|
|
27
29
|
function create(options?: {}): {};
|
|
28
30
|
}
|
|
29
31
|
}
|
|
@@ -40,7 +42,6 @@ export type Props = {
|
|
|
40
42
|
id: string;
|
|
41
43
|
label?: string;
|
|
42
44
|
accept?: string;
|
|
43
|
-
multiple?:
|
|
45
|
+
multiple?: boolean;
|
|
44
46
|
};
|
|
45
|
-
value?: string;
|
|
46
47
|
};
|
|
@@ -3,9 +3,10 @@ export namespace IFrame {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export function create(options?: {}): {
|
|
9
|
+
label: string;
|
|
9
10
|
security: {
|
|
10
11
|
allowScripts: boolean;
|
|
11
12
|
};
|
|
@@ -3,9 +3,10 @@ export namespace Image {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export function create(options?: {}): {};
|
|
9
|
+
export function getSubheading(field: any): any;
|
|
9
10
|
}
|
|
10
11
|
}
|
|
11
12
|
declare const type: "image";
|
|
@@ -3,14 +3,16 @@ export namespace Numberfield {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: any;
|
|
9
9
|
export function sanitizeValue({ value, formField }: {
|
|
10
10
|
value: any;
|
|
11
11
|
formField: any;
|
|
12
12
|
}): any;
|
|
13
|
-
export function create(options?: {}): {
|
|
13
|
+
export function create(options?: {}): {
|
|
14
|
+
label: string;
|
|
15
|
+
};
|
|
14
16
|
}
|
|
15
17
|
}
|
|
16
18
|
declare const type: "number";
|
|
@@ -3,14 +3,13 @@ export namespace Radio {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: any;
|
|
9
9
|
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
10
|
-
export
|
|
10
|
+
export function create(options?: {}): any;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
declare const type: "radio";
|
|
14
14
|
import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
|
|
15
|
-
import { createEmptyOptions } from '../util/optionsUtil';
|
|
16
15
|
export {};
|
|
@@ -3,14 +3,13 @@ export namespace Select {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: any;
|
|
9
9
|
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
10
|
-
export
|
|
10
|
+
export function create(options?: {}): any;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
declare const type: "select";
|
|
14
14
|
import { sanitizeSingleSelectValue } from '../util/sanitizerUtil';
|
|
15
|
-
import { createEmptyOptions } from '../util/optionsUtil';
|
|
16
15
|
export {};
|
|
@@ -28,7 +28,7 @@ export namespace Table {
|
|
|
28
28
|
namespace config {
|
|
29
29
|
export { type };
|
|
30
30
|
export let keyed: boolean;
|
|
31
|
-
export let
|
|
31
|
+
export let name: string;
|
|
32
32
|
export let group: string;
|
|
33
33
|
export function create(options?: {}): {
|
|
34
34
|
id: any;
|
|
@@ -37,6 +37,7 @@ export namespace Table {
|
|
|
37
37
|
id: any;
|
|
38
38
|
columns: Column[];
|
|
39
39
|
} | {
|
|
40
|
+
label: string;
|
|
40
41
|
rowCount: number;
|
|
41
42
|
columns: {
|
|
42
43
|
label: string;
|
|
@@ -3,14 +3,13 @@ export namespace Taglist {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: any[];
|
|
9
9
|
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
10
|
-
export
|
|
10
|
+
export function create(options?: {}): any;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
declare const type: "taglist";
|
|
14
14
|
import { sanitizeMultiSelectValue } from '../util/sanitizerUtil';
|
|
15
|
-
import { createEmptyOptions } from '../util/optionsUtil';
|
|
16
15
|
export {};
|
|
@@ -3,11 +3,12 @@ export namespace Text {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export function create(options?: {}): {
|
|
9
9
|
text: string;
|
|
10
10
|
};
|
|
11
|
+
export function getSubheading(field: any): void;
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
14
|
declare const type: "text";
|
|
@@ -3,13 +3,15 @@ export namespace Textarea {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: string;
|
|
9
9
|
export function sanitizeValue({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}): string;
|
|
12
|
-
export function create(options?: {}): {
|
|
12
|
+
export function create(options?: {}): {
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
declare const type: "textarea";
|
|
@@ -3,13 +3,15 @@ export namespace Textfield {
|
|
|
3
3
|
namespace config {
|
|
4
4
|
export { type };
|
|
5
5
|
export let keyed: boolean;
|
|
6
|
-
export let
|
|
6
|
+
export let name: string;
|
|
7
7
|
export let group: string;
|
|
8
8
|
export let emptyValue: string;
|
|
9
9
|
export function sanitizeValue({ value }: {
|
|
10
10
|
value: any;
|
|
11
11
|
}): string;
|
|
12
|
-
export function create(options?: {}): {
|
|
12
|
+
export function create(options?: {}): {
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
13
15
|
}
|
|
14
16
|
}
|
|
15
17
|
declare const type: "textfield";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export const formFields: (typeof Default | typeof Group | typeof Image | typeof Radio | typeof ExpressionField)[];
|
|
1
|
+
export const formFields: (typeof Button | typeof Default | typeof Datetime | typeof Group | typeof IFrame | typeof Image | typeof Radio | typeof Separator | typeof Spacer | typeof Html | typeof ExpressionField | typeof Table | typeof FilePicker)[];
|
|
2
2
|
export * from "./icons";
|
|
3
3
|
export * from "./Sanitizer";
|
|
4
4
|
export * from "./util/domUtil";
|
|
@@ -4,7 +4,6 @@ export { useSecurityAttributesMap } from "./useSecurityAttributesMap";
|
|
|
4
4
|
export { useGetLabelCorrelation } from "./useGetLabelCorrelation";
|
|
5
5
|
export { useScrollIntoView } from "./useScrollIntoView";
|
|
6
6
|
export { useExpressionEvaluation } from "./useExpressionEvaluation";
|
|
7
|
-
export { useBooleanExpressionEvaluation } from "./useBooleanExpressionEvaluation";
|
|
8
7
|
export { useFilteredFormData } from "./useFilteredFormData";
|
|
9
8
|
export { useKeyDownAction } from "./useKeyDownAction";
|
|
10
9
|
export { useReadonly } from "./useReadonly";
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Evaluate a string reactively based on the expressionLanguage and form data.
|
|
3
|
+
* If the string is not an expression, it is returned as is.
|
|
3
4
|
* The function is memoized to minimize re-renders.
|
|
4
5
|
*
|
|
5
|
-
* @param {
|
|
6
|
+
* @param {string} value - The string to evaluate.
|
|
6
7
|
* @returns {any} - Evaluated value or the original value if not an expression.
|
|
7
8
|
*/
|
|
8
|
-
export function useExpressionEvaluation(value:
|
|
9
|
+
export function useExpressionEvaluation(value: string): any;
|
|
@@ -5,9 +5,7 @@ export namespace RenderModule {
|
|
|
5
5
|
let __init__: string[];
|
|
6
6
|
let formFields: (string | typeof FormFields)[];
|
|
7
7
|
let renderer: (string | typeof Renderer)[];
|
|
8
|
-
let fileRegistry: (string | typeof FileRegistry)[];
|
|
9
8
|
}
|
|
10
9
|
import { FormFields } from './FormFields';
|
|
11
10
|
import { Renderer } from './Renderer';
|
|
12
|
-
import { FileRegistry } from './FileRegistry';
|
|
13
11
|
export { useExpressionEvaluation, useSingleLineTemplateEvaluation, useTemplateEvaluation } from "./hooks";
|
|
@@ -6,11 +6,12 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export function buildExpressionContext(context: any): any;
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Evaluate a string based on the expressionLanguage and context information.
|
|
10
|
+
* If the string is not an expression, it is returned as is.
|
|
10
11
|
*
|
|
11
12
|
* @param {any} expressionLanguage - The expression language to use.
|
|
12
|
-
* @param {
|
|
13
|
+
* @param {string} value - The string to evaluate.
|
|
13
14
|
* @param {Object} expressionContextInfo - The context information to use.
|
|
14
15
|
* @returns {any} - Evaluated value or the original value if not an expression.
|
|
15
16
|
*/
|
|
16
|
-
export function runExpressionEvaluation(expressionLanguage: any, value:
|
|
17
|
+
export function runExpressionEvaluation(expressionLanguage: any, value: string, expressionContextInfo: any): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-viewer",
|
|
3
|
-
"version": "1.11.0
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "View forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -45,19 +45,19 @@
|
|
|
45
45
|
"url": "https://github.com/bpmn-io"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@carbon/grid": "^11.
|
|
49
|
-
"big.js": "^6.2.
|
|
48
|
+
"@carbon/grid": "^11.27.0",
|
|
49
|
+
"big.js": "^6.2.2",
|
|
50
50
|
"classnames": "^2.5.1",
|
|
51
51
|
"didi": "^10.2.2",
|
|
52
|
-
"dompurify": "^3.1.
|
|
53
|
-
"feelers": "^1.
|
|
52
|
+
"dompurify": "^3.1.6",
|
|
53
|
+
"feelers": "^1.4.0",
|
|
54
54
|
"feelin": "^3.1.2",
|
|
55
55
|
"flatpickr": "^4.6.13",
|
|
56
56
|
"ids": "^1.0.5",
|
|
57
57
|
"lodash": "^4.17.21",
|
|
58
58
|
"luxon": "^3.5.0",
|
|
59
|
-
"marked": "^14.
|
|
60
|
-
"min-dash": "^4.2.
|
|
59
|
+
"marked": "^14.1.2",
|
|
60
|
+
"min-dash": "^4.2.2",
|
|
61
61
|
"preact": "^10.5.14"
|
|
62
62
|
},
|
|
63
63
|
"sideEffects": [
|
|
@@ -66,5 +66,5 @@
|
|
|
66
66
|
"files": [
|
|
67
67
|
"dist"
|
|
68
68
|
],
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d1731fe95e832b1408564d14dc6d4a139a6a90ab"
|
|
70
70
|
}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export class FileRegistry {
|
|
2
|
-
/**
|
|
3
|
-
* @param {import('../core/EventBus').EventBus} eventBus
|
|
4
|
-
* @param {import('../core/FormFieldRegistry').FormFieldRegistry} formFieldRegistry
|
|
5
|
-
* @param {import('../core/FormFieldInstanceRegistry').FormFieldInstanceRegistry} formFieldInstanceRegistry
|
|
6
|
-
*/
|
|
7
|
-
constructor(eventBus: import('../core/EventBus').EventBus, formFieldRegistry: import('../core/FormFieldRegistry').FormFieldRegistry, formFieldInstanceRegistry: import('../core/FormFieldInstanceRegistry').FormFieldInstanceRegistry);
|
|
8
|
-
/**
|
|
9
|
-
* @param {string} id
|
|
10
|
-
* @param {File[]} files
|
|
11
|
-
*/
|
|
12
|
-
setFiles(id: string, files: File[]): void;
|
|
13
|
-
/**
|
|
14
|
-
* @param {string} id
|
|
15
|
-
* @returns {File[]}
|
|
16
|
-
*/
|
|
17
|
-
getFiles(id: string): File[];
|
|
18
|
-
/**
|
|
19
|
-
* @returns {string[]}
|
|
20
|
-
*/
|
|
21
|
-
getKeys(): string[];
|
|
22
|
-
/**
|
|
23
|
-
* @param {string} id
|
|
24
|
-
* @returns {boolean}
|
|
25
|
-
*/
|
|
26
|
-
hasKey(id: string): boolean;
|
|
27
|
-
/**
|
|
28
|
-
* @param {string} id
|
|
29
|
-
*/
|
|
30
|
-
deleteFiles(id: string): void;
|
|
31
|
-
/**
|
|
32
|
-
* @returns {Map<string, File[]>}
|
|
33
|
-
*/
|
|
34
|
-
getAllFiles(): Map<string, File[]>;
|
|
35
|
-
clear(): void;
|
|
36
|
-
/** @type {Map<string, File[]>} */
|
|
37
|
-
[fileRegistry]: Map<string, File[]>;
|
|
38
|
-
/** @type {import('../core/EventBus').EventBus} */
|
|
39
|
-
[eventBusSymbol]: import('../core/EventBus').EventBus;
|
|
40
|
-
/** @type {import('../core/FormFieldRegistry').FormFieldRegistry} */
|
|
41
|
-
[formFieldRegistrySymbol]: import('../core/FormFieldRegistry').FormFieldRegistry;
|
|
42
|
-
/** @type {import('../core/FormFieldInstanceRegistry').FormFieldInstanceRegistry} */
|
|
43
|
-
[formFieldInstanceRegistrySymbol]: import('../core/FormFieldInstanceRegistry').FormFieldInstanceRegistry;
|
|
44
|
-
}
|
|
45
|
-
export namespace FileRegistry {
|
|
46
|
-
let $inject: string[];
|
|
47
|
-
}
|
|
48
|
-
declare const fileRegistry: unique symbol;
|
|
49
|
-
declare const eventBusSymbol: unique symbol;
|
|
50
|
-
declare const formFieldRegistrySymbol: unique symbol;
|
|
51
|
-
declare const formFieldInstanceRegistrySymbol: unique symbol;
|
|
52
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* If the value is a valid expression, we evaluate it. Otherwise, we continue with the value as-is.
|
|
3
|
-
* If the resulting value isn't a boolean, we return 'false'
|
|
4
|
-
* The function is memoized to minimize re-renders.
|
|
5
|
-
*
|
|
6
|
-
* @param {boolean | string} value - A static boolean or expression to evaluate.
|
|
7
|
-
* @returns {boolean} - Evaluated boolean result.
|
|
8
|
-
*/
|
|
9
|
-
export function useBooleanExpressionEvaluation(value: boolean | string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const FILE_PICKER_FILE_KEY_PREFIX: "files::";
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export type RemovedData = Record<PropertyKey, unknown>;
|
|
2
|
-
/**
|
|
3
|
-
* @typedef {Record<PropertyKey, unknown>} RemovedData
|
|
4
|
-
* @param {RemovedData} removedData
|
|
5
|
-
* @returns {string[]}
|
|
6
|
-
*/
|
|
7
|
-
export function extractFileReferencesFromRemovedData(removedData: RemovedData): string[];
|