@bpmn-io/form-js-viewer 0.10.0-alpha.3 → 0.10.1
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 +165 -164
- package/dist/assets/flatpickr/light.css +809 -0
- package/dist/assets/form-js.css +611 -498
- package/dist/index.cjs +1493 -369
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +1475 -372
- package/dist/index.es.js.map +1 -1
- package/dist/types/Form.d.ts +144 -144
- package/dist/types/core/ConditionChecker.d.ts +57 -57
- package/dist/types/core/EventBus.d.ts +1 -1
- package/dist/types/core/FormFieldRegistry.d.ts +17 -17
- package/dist/types/core/Validator.d.ts +7 -7
- package/dist/types/core/index.d.ts +18 -18
- package/dist/types/import/Importer.d.ts +43 -43
- package/dist/types/import/index.d.ts +5 -5
- package/dist/types/index.d.ts +18 -18
- package/dist/types/render/FormFields.d.ts +5 -5
- package/dist/types/render/Renderer.d.ts +23 -23
- package/dist/types/render/components/Description.d.ts +1 -1
- package/dist/types/render/components/Errors.d.ts +1 -1
- package/dist/types/render/components/FormComponent.d.ts +1 -1
- package/dist/types/render/components/FormField.d.ts +1 -1
- package/dist/types/render/components/Label.d.ts +1 -1
- package/dist/types/render/components/PoweredBy.d.ts +1 -1
- package/dist/types/render/components/Sanitizer.d.ts +8 -8
- package/dist/types/render/components/Util.d.ts +17 -19
- package/dist/types/render/components/form-fields/Button.d.ts +11 -11
- package/dist/types/render/components/form-fields/Checkbox.d.ts +13 -13
- package/dist/types/render/components/form-fields/Checklist.d.ts +12 -12
- package/dist/types/render/components/form-fields/Datetime.d.ts +11 -0
- package/dist/types/render/components/form-fields/Default.d.ts +9 -9
- package/dist/types/render/components/form-fields/Image.d.ts +8 -8
- package/dist/types/render/components/form-fields/Number.d.ts +14 -14
- package/dist/types/render/components/form-fields/Radio.d.ts +12 -12
- package/dist/types/render/components/form-fields/Select.d.ts +12 -12
- package/dist/types/render/components/form-fields/Taglist.d.ts +12 -12
- package/dist/types/render/components/form-fields/Text.d.ts +10 -10
- package/dist/types/render/components/form-fields/Textarea.d.ts +13 -13
- package/dist/types/render/components/form-fields/Textfield.d.ts +13 -13
- package/dist/types/render/components/form-fields/parts/Datepicker.d.ts +1 -0
- package/dist/types/render/components/form-fields/parts/DropdownList.d.ts +1 -1
- package/dist/types/render/components/form-fields/parts/InputAdorner.d.ts +1 -0
- package/dist/types/render/components/form-fields/parts/Timepicker.d.ts +1 -0
- package/dist/types/render/components/icons/index.d.ts +16 -0
- package/dist/types/render/components/index.d.ts +17 -15
- package/dist/types/render/components/util/dateTimeUtil.d.ts +12 -0
- package/dist/types/render/components/util/numberFieldUtil.d.ts +4 -4
- package/dist/types/render/components/util/sanitizerUtil.d.ts +3 -0
- package/dist/types/render/context/FormContext.d.ts +12 -12
- package/dist/types/render/context/FormRenderContext.d.ts +6 -6
- package/dist/types/render/context/index.d.ts +2 -2
- package/dist/types/render/hooks/useCondition.d.ts +9 -9
- package/dist/types/render/hooks/useEvaluation.d.ts +6 -6
- package/dist/types/render/hooks/useExpressionValue.d.ts +5 -5
- package/dist/types/render/hooks/useKeyDownAction.d.ts +1 -1
- package/dist/types/render/hooks/useService.d.ts +1 -1
- package/dist/types/render/hooks/useValuesAsync.d.ts +28 -28
- package/dist/types/render/index.d.ts +11 -11
- package/dist/types/src/types.d.ts +35 -35
- package/dist/types/util/constants/DatetimeConstants.d.ts +24 -0
- package/dist/types/util/constants/ValuesSourceConstants.d.ts +15 -0
- package/dist/types/util/constants/index.d.ts +2 -0
- package/dist/types/util/feel.d.ts +15 -14
- package/dist/types/util/form.d.ts +6 -6
- package/dist/types/util/index.d.ts +25 -24
- package/dist/types/util/injector.d.ts +2 -2
- package/package.json +4 -2
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { { container } } Config
|
|
3
|
-
* @typedef { import('didi').Injector } Injector
|
|
4
|
-
* @typedef { import('../core/EventBus').default } EventBus
|
|
5
|
-
* @typedef { import('../Form').default } Form
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* @param {Config} config
|
|
9
|
-
* @param {EventBus} eventBus
|
|
10
|
-
* @param {Form} form
|
|
11
|
-
* @param {Injector} injector
|
|
12
|
-
*/
|
|
13
|
-
declare function Renderer(config: Config, eventBus: any, form: Form, injector: Injector): void;
|
|
14
|
-
declare namespace Renderer {
|
|
15
|
-
const $inject: string[];
|
|
16
|
-
}
|
|
17
|
-
export default Renderer;
|
|
18
|
-
export type Config = {
|
|
19
|
-
container;
|
|
20
|
-
};
|
|
21
|
-
export type Injector = import('didi').Injector;
|
|
22
|
-
export type EventBus = any;
|
|
23
|
-
export type Form = import('../Form').default;
|
|
1
|
+
/**
|
|
2
|
+
* @typedef { { container } } Config
|
|
3
|
+
* @typedef { import('didi').Injector } Injector
|
|
4
|
+
* @typedef { import('../core/EventBus').default } EventBus
|
|
5
|
+
* @typedef { import('../Form').default } Form
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* @param {Config} config
|
|
9
|
+
* @param {EventBus} eventBus
|
|
10
|
+
* @param {Form} form
|
|
11
|
+
* @param {Injector} injector
|
|
12
|
+
*/
|
|
13
|
+
declare function Renderer(config: Config, eventBus: any, form: Form, injector: Injector): void;
|
|
14
|
+
declare namespace Renderer {
|
|
15
|
+
const $inject: string[];
|
|
16
|
+
}
|
|
17
|
+
export default Renderer;
|
|
18
|
+
export type Config = {
|
|
19
|
+
container;
|
|
20
|
+
};
|
|
21
|
+
export type Injector = import('didi').Injector;
|
|
22
|
+
export type EventBus = any;
|
|
23
|
+
export type Form = import('../Form').default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Description(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function Description(props: any): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Errors(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function Errors(props: any): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FormComponent(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function FormComponent(props: any): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FormField(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function FormField(props: any): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function Label(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function Label(props: any): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function PoweredBy(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function PoweredBy(props: any): import("preact").JSX.Element;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sanitize a HTML string and return the cleaned, safe version.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} html
|
|
5
|
-
* @return {string}
|
|
6
|
-
*/
|
|
7
|
-
export function sanitizeHTML(html: string): string;
|
|
8
|
-
export function sanitizeImageSource(src: any): any;
|
|
1
|
+
/**
|
|
2
|
+
* Sanitize a HTML string and return the cleaned, safe version.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} html
|
|
5
|
+
* @return {string}
|
|
6
|
+
*/
|
|
7
|
+
export function sanitizeHTML(html: string): string;
|
|
8
|
+
export function sanitizeImageSource(src: any): any;
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
export function formFieldClasses(type: any, { errors, disabled }?: {
|
|
2
|
-
errors?: any[];
|
|
3
|
-
disabled?: boolean;
|
|
4
|
-
}): string;
|
|
5
|
-
export function prefixId(id: any, formId: any): string;
|
|
6
|
-
export function markdownToHTML(markdown: any): any;
|
|
7
|
-
export function safeMarkdown(markdown: any): string;
|
|
8
|
-
/**
|
|
9
|
-
* Sanitizes an image source to ensure we only allow for data URI and links
|
|
10
|
-
* that start with http(s).
|
|
11
|
-
*
|
|
12
|
-
* Note: Most browsers anyway do not support script execution in <img> elements.
|
|
13
|
-
*
|
|
14
|
-
* @param {string} src
|
|
15
|
-
* @returns {string}
|
|
16
|
-
*/
|
|
17
|
-
export function safeImageSource(src: string): string;
|
|
18
|
-
export function sanitizeSingleSelectValue(options: any): any;
|
|
19
|
-
export function sanitizeMultiSelectValue(options: any): any;
|
|
1
|
+
export function formFieldClasses(type: any, { errors, disabled }?: {
|
|
2
|
+
errors?: any[];
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
}): string;
|
|
5
|
+
export function prefixId(id: any, formId: any): string;
|
|
6
|
+
export function markdownToHTML(markdown: any): any;
|
|
7
|
+
export function safeMarkdown(markdown: any): string;
|
|
8
|
+
/**
|
|
9
|
+
* Sanitizes an image source to ensure we only allow for data URI and links
|
|
10
|
+
* that start with http(s).
|
|
11
|
+
*
|
|
12
|
+
* Note: Most browsers anyway do not support script execution in <img> elements.
|
|
13
|
+
*
|
|
14
|
+
* @param {string} src
|
|
15
|
+
* @returns {string}
|
|
16
|
+
*/
|
|
17
|
+
export function safeImageSource(src: string): string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
declare function Button(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Button {
|
|
3
|
-
export function create(options?: {}): {
|
|
4
|
-
action: string;
|
|
5
|
-
};
|
|
6
|
-
export { type };
|
|
7
|
-
export const label: string;
|
|
8
|
-
export const keyed: boolean;
|
|
9
|
-
}
|
|
10
|
-
export default Button;
|
|
11
|
-
declare const type: "button";
|
|
1
|
+
declare function Button(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Button {
|
|
3
|
+
export function create(options?: {}): {
|
|
4
|
+
action: string;
|
|
5
|
+
};
|
|
6
|
+
export { type };
|
|
7
|
+
export const label: string;
|
|
8
|
+
export const keyed: boolean;
|
|
9
|
+
}
|
|
10
|
+
export default Button;
|
|
11
|
+
declare const type: "button";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare function Checkbox(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Checkbox {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: boolean;
|
|
8
|
-
export function sanitizeValue({ value }: {
|
|
9
|
-
value: any;
|
|
10
|
-
}): boolean;
|
|
11
|
-
}
|
|
12
|
-
export default Checkbox;
|
|
13
|
-
declare const type: "checkbox";
|
|
1
|
+
declare function Checkbox(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Checkbox {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: boolean;
|
|
8
|
+
export function sanitizeValue({ value }: {
|
|
9
|
+
value: any;
|
|
10
|
+
}): boolean;
|
|
11
|
+
}
|
|
12
|
+
export default Checkbox;
|
|
13
|
+
declare const type: "checkbox";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare function Checklist(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Checklist {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: any[];
|
|
8
|
-
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
9
|
-
}
|
|
10
|
-
export default Checklist;
|
|
11
|
-
declare const type: "checklist";
|
|
12
|
-
import { sanitizeMultiSelectValue } from "../
|
|
1
|
+
declare function Checklist(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Checklist {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: any[];
|
|
8
|
+
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
9
|
+
}
|
|
10
|
+
export default Checklist;
|
|
11
|
+
declare const type: "checklist";
|
|
12
|
+
import { sanitizeMultiSelectValue } from "../util/sanitizerUtil";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare function Datetime(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Datetime {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const keyed: boolean;
|
|
6
|
+
export const emptyValue: any;
|
|
7
|
+
export { sanitizeDateTimePickerValue as sanitizeValue };
|
|
8
|
+
}
|
|
9
|
+
export default Datetime;
|
|
10
|
+
declare const type: "datetime";
|
|
11
|
+
import { sanitizeDateTimePickerValue } from "../util/sanitizerUtil";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
declare function Default(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Default {
|
|
3
|
-
function create(options?: {}): {
|
|
4
|
-
components: any[];
|
|
5
|
-
};
|
|
6
|
-
const type: string;
|
|
7
|
-
const keyed: boolean;
|
|
8
|
-
}
|
|
9
|
-
export default Default;
|
|
1
|
+
declare function Default(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Default {
|
|
3
|
+
function create(options?: {}): {
|
|
4
|
+
components: any[];
|
|
5
|
+
};
|
|
6
|
+
const type: string;
|
|
7
|
+
const keyed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default Default;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
declare function Image(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Image {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const keyed: boolean;
|
|
6
|
-
}
|
|
7
|
-
export default Image;
|
|
8
|
-
declare const type: "image";
|
|
1
|
+
declare function Image(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Image {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const keyed: boolean;
|
|
6
|
+
}
|
|
7
|
+
export default Image;
|
|
8
|
+
declare const type: "image";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare function Numberfield(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Numberfield {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export function sanitizeValue({ value, formField }: {
|
|
5
|
-
value: any;
|
|
6
|
-
formField: any;
|
|
7
|
-
}): any;
|
|
8
|
-
export { type };
|
|
9
|
-
export const keyed: boolean;
|
|
10
|
-
export const label: string;
|
|
11
|
-
export const emptyValue: any;
|
|
12
|
-
}
|
|
13
|
-
export default Numberfield;
|
|
14
|
-
declare const type: "number";
|
|
1
|
+
declare function Numberfield(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Numberfield {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export function sanitizeValue({ value, formField }: {
|
|
5
|
+
value: any;
|
|
6
|
+
formField: any;
|
|
7
|
+
}): any;
|
|
8
|
+
export { type };
|
|
9
|
+
export const keyed: boolean;
|
|
10
|
+
export const label: string;
|
|
11
|
+
export const emptyValue: any;
|
|
12
|
+
}
|
|
13
|
+
export default Numberfield;
|
|
14
|
+
declare const type: "number";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare function Radio(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Radio {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: any;
|
|
8
|
-
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
9
|
-
}
|
|
10
|
-
export default Radio;
|
|
11
|
-
declare const type: "radio";
|
|
12
|
-
import { sanitizeSingleSelectValue } from "../
|
|
1
|
+
declare function Radio(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Radio {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: any;
|
|
8
|
+
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
9
|
+
}
|
|
10
|
+
export default Radio;
|
|
11
|
+
declare const type: "radio";
|
|
12
|
+
import { sanitizeSingleSelectValue } from "../util/sanitizerUtil";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare function Select(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Select {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: any;
|
|
8
|
-
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
9
|
-
}
|
|
10
|
-
export default Select;
|
|
11
|
-
declare const type: "select";
|
|
12
|
-
import { sanitizeSingleSelectValue } from "../
|
|
1
|
+
declare function Select(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Select {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: any;
|
|
8
|
+
export { sanitizeSingleSelectValue as sanitizeValue };
|
|
9
|
+
}
|
|
10
|
+
export default Select;
|
|
11
|
+
declare const type: "select";
|
|
12
|
+
import { sanitizeSingleSelectValue } from "../util/sanitizerUtil";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
declare function Taglist(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Taglist {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: any[];
|
|
8
|
-
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
9
|
-
}
|
|
10
|
-
export default Taglist;
|
|
11
|
-
declare const type: "taglist";
|
|
12
|
-
import { sanitizeMultiSelectValue } from "../
|
|
1
|
+
declare function Taglist(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Taglist {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: any[];
|
|
8
|
+
export { sanitizeMultiSelectValue as sanitizeValue };
|
|
9
|
+
}
|
|
10
|
+
export default Taglist;
|
|
11
|
+
declare const type: "taglist";
|
|
12
|
+
import { sanitizeMultiSelectValue } from "../util/sanitizerUtil";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare function Text(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Text {
|
|
3
|
-
export function create(options?: {}): {
|
|
4
|
-
text: string;
|
|
5
|
-
};
|
|
6
|
-
export { type };
|
|
7
|
-
export const keyed: boolean;
|
|
8
|
-
}
|
|
9
|
-
export default Text;
|
|
10
|
-
declare const type: "text";
|
|
1
|
+
declare function Text(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Text {
|
|
3
|
+
export function create(options?: {}): {
|
|
4
|
+
text: string;
|
|
5
|
+
};
|
|
6
|
+
export { type };
|
|
7
|
+
export const keyed: boolean;
|
|
8
|
+
}
|
|
9
|
+
export default Text;
|
|
10
|
+
declare const type: "text";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare function Textarea(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Textarea {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: string;
|
|
8
|
-
export function sanitizeValue({ value }: {
|
|
9
|
-
value: any;
|
|
10
|
-
}): string;
|
|
11
|
-
}
|
|
12
|
-
export default Textarea;
|
|
13
|
-
declare const type: "textarea";
|
|
1
|
+
declare function Textarea(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Textarea {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: string;
|
|
8
|
+
export function sanitizeValue({ value }: {
|
|
9
|
+
value: any;
|
|
10
|
+
}): string;
|
|
11
|
+
}
|
|
12
|
+
export default Textarea;
|
|
13
|
+
declare const type: "textarea";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
declare function Textfield(props: any): import("preact").JSX.Element;
|
|
2
|
-
declare namespace Textfield {
|
|
3
|
-
export function create(options?: {}): {};
|
|
4
|
-
export { type };
|
|
5
|
-
export const label: string;
|
|
6
|
-
export const keyed: boolean;
|
|
7
|
-
export const emptyValue: string;
|
|
8
|
-
export function sanitizeValue({ value }: {
|
|
9
|
-
value: any;
|
|
10
|
-
}): string;
|
|
11
|
-
}
|
|
12
|
-
export default Textfield;
|
|
13
|
-
declare const type: "textfield";
|
|
1
|
+
declare function Textfield(props: any): import("preact").JSX.Element;
|
|
2
|
+
declare namespace Textfield {
|
|
3
|
+
export function create(options?: {}): {};
|
|
4
|
+
export { type };
|
|
5
|
+
export const label: string;
|
|
6
|
+
export const keyed: boolean;
|
|
7
|
+
export const emptyValue: string;
|
|
8
|
+
export function sanitizeValue({ value }: {
|
|
9
|
+
value: any;
|
|
10
|
+
}): string;
|
|
11
|
+
}
|
|
12
|
+
export default Textfield;
|
|
13
|
+
declare const type: "textfield";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Datepicker(props: any): import("preact").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function DropdownList(props: any): import("preact").JSX.Element;
|
|
1
|
+
export default function DropdownList(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function InputAdorner(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function Timepicker(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export namespace iconsByType {
|
|
2
|
+
export { ButtonIcon as button };
|
|
3
|
+
export { CheckboxIcon as checkbox };
|
|
4
|
+
export { ChecklistIcon as checklist };
|
|
5
|
+
export { ColumnsIcon as columns };
|
|
6
|
+
export { DatetimeIcon as datetime };
|
|
7
|
+
export { ImageIcon as image };
|
|
8
|
+
export { NumberIcon as number };
|
|
9
|
+
export { RadioIcon as radio };
|
|
10
|
+
export { SelectIcon as select };
|
|
11
|
+
export { TaglistIcon as taglist };
|
|
12
|
+
export { TextIcon as text };
|
|
13
|
+
export { TextfieldIcon as textfield };
|
|
14
|
+
export { TextareaIcon as textarea };
|
|
15
|
+
export { FormIcon as default };
|
|
16
|
+
}
|
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
export const formFields: (typeof Image)[];
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
|
|
1
|
+
export const formFields: (typeof Image)[];
|
|
2
|
+
export * from "./icons";
|
|
3
|
+
import Button from "./form-fields/Button";
|
|
4
|
+
import Checkbox from "./form-fields/Checkbox";
|
|
5
|
+
import Checklist from "./form-fields/Checklist";
|
|
6
|
+
import Default from "./form-fields/Default";
|
|
7
|
+
import Datetime from "./form-fields/Datetime";
|
|
8
|
+
import FormComponent from "./FormComponent";
|
|
9
|
+
import Image from "./form-fields/Image";
|
|
10
|
+
import Numberfield from "./form-fields/Number";
|
|
11
|
+
import Radio from "./form-fields/Radio";
|
|
12
|
+
import Select from "./form-fields/Select";
|
|
13
|
+
import Taglist from "./form-fields/Taglist";
|
|
14
|
+
import Text from "./form-fields/Text";
|
|
15
|
+
import Textfield from "./form-fields/Textfield";
|
|
16
|
+
import Textarea from "./form-fields/Textarea";
|
|
17
|
+
export { Button, Checkbox, Checklist, Default, Datetime, FormComponent, Image, Numberfield, Radio, Select, Taglist, Text, Textfield, Textarea };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function focusRelevantFlatpickerDay(flatpickrInstance: any): void;
|
|
2
|
+
export function formatTime(use24h: any, minutes: any): string;
|
|
3
|
+
export function parseInputTime(stringTime: any): number;
|
|
4
|
+
export function serializeTime(minutes: any, offset: any, timeSerializingFormat: any): string;
|
|
5
|
+
export function parseIsoTime(isoTimeString: any): number;
|
|
6
|
+
export function serializeDate(date: any): string;
|
|
7
|
+
export function isDateTimeInputInformationSufficient(value: any): boolean;
|
|
8
|
+
export function isDateInputInformationMatching(value: any): boolean;
|
|
9
|
+
export function serializeDateTime(date: any, time: any, timeSerializingFormat: any): string;
|
|
10
|
+
export function formatTimezoneOffset(minutes: any): string;
|
|
11
|
+
export function isInvalidDateString(value: any): boolean;
|
|
12
|
+
export const ENTER_KEYDOWN_EVENT: KeyboardEvent;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export function countDecimals(number: any): any;
|
|
2
|
-
export function isValidNumber(value: any): boolean;
|
|
3
|
-
export function willKeyProduceValidNumber(key: any, previousValue: any, caretIndex: any, selectionWidth: any, decimalDigits: any): boolean;
|
|
4
|
-
export function isNullEquivalentValue(value: any): boolean;
|
|
1
|
+
export function countDecimals(number: any): any;
|
|
2
|
+
export function isValidNumber(value: any): boolean;
|
|
3
|
+
export function willKeyProduceValidNumber(key: any, previousValue: any, caretIndex: any, selectionWidth: any, decimalDigits: any): boolean;
|
|
4
|
+
export function isNullEquivalentValue(value: any): boolean;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export default FormContext;
|
|
2
|
-
declare const FormContext: import("preact").Context<{
|
|
3
|
-
getService: typeof getService;
|
|
4
|
-
formId: any;
|
|
5
|
-
}>;
|
|
6
|
-
/**
|
|
7
|
-
* @param {string} type
|
|
8
|
-
* @param {boolean} [strict]
|
|
9
|
-
*
|
|
10
|
-
* @returns {any}
|
|
11
|
-
*/
|
|
12
|
-
declare function getService(type: string, strict?: boolean): any;
|
|
1
|
+
export default FormContext;
|
|
2
|
+
declare const FormContext: import("preact").Context<{
|
|
3
|
+
getService: typeof getService;
|
|
4
|
+
formId: any;
|
|
5
|
+
}>;
|
|
6
|
+
/**
|
|
7
|
+
* @param {string} type
|
|
8
|
+
* @param {boolean} [strict]
|
|
9
|
+
*
|
|
10
|
+
* @returns {any}
|
|
11
|
+
*/
|
|
12
|
+
declare function getService(type: string, strict?: boolean): any;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export default FormRenderContext;
|
|
2
|
-
declare const FormRenderContext: import("preact").Context<{
|
|
3
|
-
Empty: (props: any) => any;
|
|
4
|
-
Children: (props: any) => any;
|
|
5
|
-
Element: (props: any) => any;
|
|
6
|
-
}>;
|
|
1
|
+
export default FormRenderContext;
|
|
2
|
+
declare const FormRenderContext: import("preact").Context<{
|
|
3
|
+
Empty: (props: any) => any;
|
|
4
|
+
Children: (props: any) => any;
|
|
5
|
+
Element: (props: any) => any;
|
|
6
|
+
}>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as FormRenderContext } from "./FormRenderContext";
|
|
2
|
-
export { default as FormContext } from "./FormContext";
|
|
1
|
+
export { default as FormRenderContext } from "./FormRenderContext";
|
|
2
|
+
export { default as FormContext } from "./FormContext";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Check if condition is met with given variables.
|
|
3
|
-
*
|
|
4
|
-
* @param {string | undefined} condition
|
|
5
|
-
* @param {import('../../types').Data} data
|
|
6
|
-
*
|
|
7
|
-
* @returns {boolean} true if condition is met or no condition or condition checker exists
|
|
8
|
-
*/
|
|
9
|
-
export function useCondition(condition: string | undefined, data: import('../../types').Data): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Check if condition is met with given variables.
|
|
3
|
+
*
|
|
4
|
+
* @param {string | undefined} condition
|
|
5
|
+
* @param {import('../../types').Data} data
|
|
6
|
+
*
|
|
7
|
+
* @returns {boolean} true if condition is met or no condition or condition checker exists
|
|
8
|
+
*/
|
|
9
|
+
export function useCondition(condition: string | undefined, data: import('../../types').Data): boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {string | undefined} expression
|
|
4
|
-
* @param {import('../../types').Data} data
|
|
5
|
-
*/
|
|
6
|
-
export function useEvaluation(expression: string | undefined, data: import('../../types').Data): any;
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {string | undefined} expression
|
|
4
|
+
* @param {import('../../types').Data} data
|
|
5
|
+
*/
|
|
6
|
+
export function useEvaluation(expression: string | undefined, data: import('../../types').Data): any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @param {string} value
|
|
4
|
-
*/
|
|
5
|
-
export function useExpressionValue(value: string): any;
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @param {string} value
|
|
4
|
+
*/
|
|
5
|
+
export function useExpressionValue(value: string): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function useKeyDownAction(targetKey: any, action: any, listenerElement?: Window & typeof globalThis): void;
|
|
1
|
+
export default function useKeyDownAction(targetKey: any, action: any, listenerElement?: Window & typeof globalThis): void;
|