@luomus/laji-form 15.1.24 → 15.1.26
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/laji-form.js +1 -1
- package/dist/styles.css +96 -5
- package/lib/ApiClient.d.ts +2 -1
- package/lib/components/BaseComponent.d.ts +1 -1
- package/lib/components/LajiForm.d.ts +3 -13
- package/lib/components/VirtualSchemaField.d.ts +10 -10
- package/lib/components/fields/AsArrayField.d.ts +131 -7
- package/lib/components/fields/ExtraLabelRowField.d.ts +1 -1
- package/lib/components/fields/ImageArrayField.d.ts +12 -12
- package/lib/components/fields/InitiallyHiddenField.d.ts +1 -1
- package/lib/components/fields/LocationChooserField.d.ts +1 -1
- package/lib/components/fields/MultiTagArrayField.d.ts +2 -2
- package/lib/components/fields/MultiTagArrayField.js +2 -1
- package/lib/components/fields/NamedPlaceChooserField.d.ts +88 -2
- package/lib/components/fields/NamedPlaceChooserField.js +1 -1
- package/lib/components/fields/NamedPlaceSaverField.d.ts +44 -1
- package/lib/components/fields/PdfArrayField.d.ts +2 -2
- package/lib/components/fields/ScopeField.d.ts +1 -1
- package/lib/components/fields/SingleActiveArrayField.js +1 -1
- package/lib/components/fields/SortArrayField.d.ts +93 -6
- package/lib/components/fields/SortArrayField.js +1 -1
- package/lib/components/fields/SplitField.d.ts +1 -1
- package/lib/components/fields/SplitField.js +3 -2
- package/lib/components/fields/StringToArrayField.d.ts +44 -1
- package/lib/components/fields/TagArrayField.js +1 -1
- package/lib/components/fields/ToggleAdditionalArrayFieldsField.d.ts +1 -1
- package/lib/components/fields/UnitListShorthandArrayField.d.ts +44 -1
- package/lib/components/widgets/AutosuggestWidget.js +1 -1
- package/lib/components/widgets/CheckboxWidget.js +7 -6
- package/lib/components/widgets/SelectWidget.d.ts +13 -52
- package/lib/components/widgets/SelectWidget.js +234 -145
- package/lib/services/focus-service.js +3 -2
- package/lib/services/settings-service.d.ts +2 -2
- package/lib/services/submit-hook-service.d.ts +1 -1
- package/lib/themes/theme.d.ts +4 -7
- package/lib/types.d.ts +59 -0
- package/lib/types.js +11 -0
- package/lib/utils.d.ts +13 -7
- package/lib/utils.js +19 -7
- package/package.json +3 -3
- package/test-export/test-utils.js +4 -4
package/dist/styles.css
CHANGED
|
@@ -2070,7 +2070,7 @@ body .laji-form {
|
|
|
2070
2070
|
width: 0px;
|
|
2071
2071
|
}
|
|
2072
2072
|
|
|
2073
|
-
.laji-form .form-control, .laji-form .rw-widget, .laji-form .rw-widget-container, .laji-form
|
|
2073
|
+
.laji-form .form-control, .laji-form .rw-widget, .laji-form .rw-widget-container, .laji-form-multiselect-input-wrapper {
|
|
2074
2074
|
border-radius: 2px !important;
|
|
2075
2075
|
}
|
|
2076
2076
|
.laji-form label[type="button"] {
|
|
@@ -2115,7 +2115,7 @@ body .laji-form {
|
|
|
2115
2115
|
border-color: #e6e6e6;
|
|
2116
2116
|
}
|
|
2117
2117
|
.laji-form ul.rw-list > li.rw-list-option, .rw-selectlist > li.rw-list-option {
|
|
2118
|
-
min-height: 20px;
|
|
2118
|
+
min-height: 20px;
|
|
2119
2119
|
}
|
|
2120
2120
|
.laji-form .rw-combobox .rw-list, .laji-form .rw-datetimepicker .rw-list, .laji-form .rw-numberpicker .rw-list, .laji-form .rw-dropdownlist .rw-list, .laji-form .rw-multiselect .rw-list {
|
|
2121
2121
|
max-height: 50vh;
|
|
@@ -2466,7 +2466,7 @@ min-height: 20px;
|
|
|
2466
2466
|
.laji-form .laji-form-drop-zone:hover:not(.disabled) span, .laji-form .laji-form-drop-zone.dragging:not(.disabled) span {
|
|
2467
2467
|
color: #a7d490;
|
|
2468
2468
|
}
|
|
2469
|
-
.laji-form .laji-form-drop-zone.disabled, .laji-form .laji-form-drop-zone.disabled .glyphicon {
|
|
2469
|
+
.laji-form .laji-form-drop-zone.disabled, .laji-form .laji-form-drop-zone.disabled .glyphicon, .laji-form-multiselect-input-wrapper-readonly {
|
|
2470
2470
|
cursor: not-allowed;
|
|
2471
2471
|
}
|
|
2472
2472
|
|
|
@@ -2746,7 +2746,7 @@ min-height: 20px;
|
|
|
2746
2746
|
padding-top: 3px;
|
|
2747
2747
|
}
|
|
2748
2748
|
|
|
2749
|
-
.laji-form .has-error .rw-widget {
|
|
2749
|
+
.laji-form .has-error .rw-widget .laji-form .has-error .laji-form-multiselect-input-wrapper {
|
|
2750
2750
|
border-color: #a94442 !important;
|
|
2751
2751
|
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !important;
|
|
2752
2752
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !important;
|
|
@@ -2815,7 +2815,7 @@ min-height: 20px;
|
|
|
2815
2815
|
.laji-form .laji-form-error-list .warning-panel .panel-heading {
|
|
2816
2816
|
background-color: #f0ad4e;
|
|
2817
2817
|
}
|
|
2818
|
-
.laji-form .laji-form-warning-container .rw-widget, .laji-form .laji-form-warning-container .form-control {
|
|
2818
|
+
.laji-form .laji-form-warning-container .rw-widget, .laji-form .laji-form-warning-container .form-control, .laji-form-warning-container .laji-form-multiselect-input-wrapper {
|
|
2819
2819
|
border-color: #f0ad4e !important;
|
|
2820
2820
|
-webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !important;
|
|
2821
2821
|
box-shadow: inset 0 1px 1px rgba(0,0,0,.075) !important;
|
|
@@ -3769,3 +3769,94 @@ min-height: 20px;
|
|
|
3769
3769
|
border-left: 15px solid rgb(220, 53, 69);
|
|
3770
3770
|
}
|
|
3771
3771
|
|
|
3772
|
+
.laji-form .rw-state-disabled .rw-widget-container {
|
|
3773
|
+
background-color: #eee;
|
|
3774
|
+
}
|
|
3775
|
+
|
|
3776
|
+
.laji-form-dropdown {
|
|
3777
|
+
max-height: 0;
|
|
3778
|
+
z-index: 1006;
|
|
3779
|
+
overflow: hidden;
|
|
3780
|
+
box-shadow: 0 5px 6px #0003;
|
|
3781
|
+
background: white;
|
|
3782
|
+
min-width: 100%;
|
|
3783
|
+
max-width: 50vw;
|
|
3784
|
+
}
|
|
3785
|
+
.laji-form-dropdown-open {
|
|
3786
|
+
display: block;
|
|
3787
|
+
overflow: auto;
|
|
3788
|
+
transform: translateY(0);
|
|
3789
|
+
max-height: 400px;
|
|
3790
|
+
}
|
|
3791
|
+
.laji-form-dropdown-item {
|
|
3792
|
+
height: 26px;
|
|
3793
|
+
line-height: 26px;
|
|
3794
|
+
padding: 0px;
|
|
3795
|
+
padding-left: 8px;
|
|
3796
|
+
border-top: none;
|
|
3797
|
+
white-space: nowrap;
|
|
3798
|
+
cursor: pointer;
|
|
3799
|
+
}
|
|
3800
|
+
.laji-form-dropdown-item:hover {
|
|
3801
|
+
background-color: #f5f5f5;
|
|
3802
|
+
}
|
|
3803
|
+
.laji-form-dropdown-item.active {
|
|
3804
|
+
background-color: #337ab7;
|
|
3805
|
+
color: white;
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
.laji-form-multiselect-input-wrapper ul {
|
|
3809
|
+
padding-left: 2px;
|
|
3810
|
+
margin-bottom: 0px;
|
|
3811
|
+
}
|
|
3812
|
+
|
|
3813
|
+
.laji-form-multiselect ul li {
|
|
3814
|
+
border: 1px solid;
|
|
3815
|
+
margin: 0px 1px;
|
|
3816
|
+
font-size: 11px;
|
|
3817
|
+
padding: 0px;
|
|
3818
|
+
height: 18px;
|
|
3819
|
+
line-height: 18px;
|
|
3820
|
+
background-color: #eee;
|
|
3821
|
+
border: 1px solid #ccc;
|
|
3822
|
+
border-radius: 2px;
|
|
3823
|
+
border-collapse: separate;
|
|
3824
|
+
padding: 0px 2px;
|
|
3825
|
+
}
|
|
3826
|
+
.laji-form-multiselect ul li span {
|
|
3827
|
+
margin: 0px 2px;
|
|
3828
|
+
}
|
|
3829
|
+
|
|
3830
|
+
.laji-form-multiselect-input-wrapper {
|
|
3831
|
+
background: white;
|
|
3832
|
+
border: #ccc 1px solid;
|
|
3833
|
+
}
|
|
3834
|
+
.laji-form-multiselect-input-wrapper input {
|
|
3835
|
+
border: none;
|
|
3836
|
+
}
|
|
3837
|
+
.laji-form-multiselect-input-wrapper input:focus {
|
|
3838
|
+
outline: none;
|
|
3839
|
+
}
|
|
3840
|
+
|
|
3841
|
+
.laji-form-dropdown-caret-container {
|
|
3842
|
+
background-color: white;
|
|
3843
|
+
right: 1px;
|
|
3844
|
+
bottom: 1px;
|
|
3845
|
+
height: 23px;
|
|
3846
|
+
width: 23px;
|
|
3847
|
+
line-height: initial;
|
|
3848
|
+
font-size: 20px;
|
|
3849
|
+
}
|
|
3850
|
+
.laji-form-dropdown-caret {
|
|
3851
|
+
bottom: 2px;
|
|
3852
|
+
position: absolute;
|
|
3853
|
+
right: 3px;
|
|
3854
|
+
}
|
|
3855
|
+
|
|
3856
|
+
.laji-form-multiselect-input-wrapper-focus {
|
|
3857
|
+
border: #66afe9 1px solid;
|
|
3858
|
+
}
|
|
3859
|
+
.laji-form-multiselect-input-wrapper-readonly {
|
|
3860
|
+
background-color: #eee;
|
|
3861
|
+
}
|
|
3862
|
+
|
package/lib/ApiClient.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { FieldProps, WidgetProps } from "
|
|
2
|
+
import { FieldProps, WidgetProps } from "../types";
|
|
3
3
|
declare type Constructor<T> = new (...args: any[]) => T;
|
|
4
4
|
interface LajiFormComponentForBaseComponent<P, S> extends React.Component<P, S> {
|
|
5
5
|
getStateFromProps?(props: P): S;
|
|
@@ -2,10 +2,10 @@ import * as React from "react";
|
|
|
2
2
|
import * as PropTypes from "prop-types";
|
|
3
3
|
import { FailedBackgroundJobsPanel } from "./components";
|
|
4
4
|
import { ReactUtilsType } from "../utils";
|
|
5
|
-
import {
|
|
5
|
+
import { Theme } from "../themes/theme";
|
|
6
6
|
import { ContextProps } from "../ReactContext";
|
|
7
7
|
import Form from "@rjsf/core";
|
|
8
|
-
import {
|
|
8
|
+
import { Field, Widget, TemplatesType } from "@rjsf/utils";
|
|
9
9
|
import ApiClient, { ApiClientImplementation } from "../ApiClient";
|
|
10
10
|
import KeyHandlerService, { ShortcutKeys } from "../services/key-handler-service";
|
|
11
11
|
import SettingsService, { Settings } from "../services/settings-service";
|
|
@@ -17,6 +17,7 @@ import DOMIdService from "../services/dom-id-service";
|
|
|
17
17
|
import IdService from "../services/id-service";
|
|
18
18
|
import RootInstanceService from "../services/root-instance-service";
|
|
19
19
|
import SingletonMapService from "../services/singleton-map-service";
|
|
20
|
+
import { HasMaybeChildren, Lang } from "../types";
|
|
20
21
|
export interface LajiFormProps extends HasMaybeChildren {
|
|
21
22
|
apiClient?: ApiClientImplementation;
|
|
22
23
|
lang?: Lang;
|
|
@@ -106,17 +107,6 @@ export interface FormContext {
|
|
|
106
107
|
singletonMap: SingletonMapService;
|
|
107
108
|
};
|
|
108
109
|
}
|
|
109
|
-
export declare type Lang = "fi" | "en" | "sv";
|
|
110
|
-
export interface FieldProps extends RJSFFieldProps<any, any, FormContext> {
|
|
111
|
-
uiSchema: any;
|
|
112
|
-
errorSchema: any;
|
|
113
|
-
formContext: FormContext;
|
|
114
|
-
}
|
|
115
|
-
export interface WidgetProps extends RJSFWidgetProps<any, any, FormContext> {
|
|
116
|
-
uiSchema: any;
|
|
117
|
-
errorSchema: any;
|
|
118
|
-
formContext: FormContext;
|
|
119
|
-
}
|
|
120
110
|
export declare type NotifyMessager = (msg: string) => void;
|
|
121
111
|
export interface Notifier {
|
|
122
112
|
success: NotifyMessager;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
-
import { FieldProps } from "
|
|
2
|
+
import { FieldProps } from "../types";
|
|
3
3
|
export declare function getPropsWithInnerUiSchema(props: FieldProps): FieldProps;
|
|
4
4
|
declare type Constructor<LFC> = new (...args: any[]) => LFC;
|
|
5
5
|
interface LajiFormComponentForVirtualSchemaField extends Omit<React.Component<FieldProps>, "render"> {
|
|
@@ -15,27 +15,27 @@ export default function VirtualSchemaField<LFC extends Constructor<LajiFormCompo
|
|
|
15
15
|
getStateFromProps: (props: FieldProps) => any;
|
|
16
16
|
render: () => React.ReactNode;
|
|
17
17
|
context: any;
|
|
18
|
-
readonly props: Readonly<FieldProps
|
|
18
|
+
readonly props: Readonly<FieldProps<import("../types").JSONSchema<any>>> & Readonly<{
|
|
19
19
|
children?: React.ReactNode;
|
|
20
20
|
}>;
|
|
21
21
|
state: Readonly<{}>;
|
|
22
22
|
componentDidMount?: (() => void) | undefined;
|
|
23
|
-
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<FieldProps
|
|
23
|
+
setState: <K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<FieldProps<import("../types").JSONSchema<any>>>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined) => void;
|
|
24
24
|
forceUpdate: (callback?: (() => void) | undefined) => void;
|
|
25
25
|
refs: {
|
|
26
26
|
[key: string]: React.ReactInstance;
|
|
27
27
|
};
|
|
28
|
-
shouldComponentUpdate?: ((nextProps: Readonly<FieldProps
|
|
28
|
+
shouldComponentUpdate?: ((nextProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, nextState: Readonly<{}>, nextContext: any) => boolean) | undefined;
|
|
29
29
|
componentWillUnmount?: (() => void) | undefined;
|
|
30
30
|
componentDidCatch?: ((error: Error, errorInfo: React.ErrorInfo) => void) | undefined;
|
|
31
|
-
getSnapshotBeforeUpdate?: ((prevProps: Readonly<FieldProps
|
|
32
|
-
componentDidUpdate?: ((prevProps: Readonly<FieldProps
|
|
31
|
+
getSnapshotBeforeUpdate?: ((prevProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, prevState: Readonly<{}>) => any) | undefined;
|
|
32
|
+
componentDidUpdate?: ((prevProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, prevState: Readonly<{}>, snapshot?: any) => void) | undefined;
|
|
33
33
|
componentWillMount?: (() => void) | undefined;
|
|
34
34
|
UNSAFE_componentWillMount?: (() => void) | undefined;
|
|
35
|
-
componentWillReceiveProps?: ((nextProps: Readonly<FieldProps
|
|
36
|
-
UNSAFE_componentWillReceiveProps?: ((nextProps: Readonly<FieldProps
|
|
37
|
-
componentWillUpdate?: ((nextProps: Readonly<FieldProps
|
|
38
|
-
UNSAFE_componentWillUpdate?: ((nextProps: Readonly<FieldProps
|
|
35
|
+
componentWillReceiveProps?: ((nextProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, nextContext: any) => void) | undefined;
|
|
36
|
+
UNSAFE_componentWillReceiveProps?: ((nextProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, nextContext: any) => void) | undefined;
|
|
37
|
+
componentWillUpdate?: ((nextProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, nextState: Readonly<{}>, nextContext: any) => void) | undefined;
|
|
38
|
+
UNSAFE_componentWillUpdate?: ((nextProps: Readonly<FieldProps<import("../types").JSONSchema<any>>>, nextState: Readonly<{}>, nextContext: any) => void) | undefined;
|
|
39
39
|
};
|
|
40
40
|
displayName: string;
|
|
41
41
|
} & LFC;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PropTypes from "prop-types";
|
|
3
|
-
import { FieldProps } from "
|
|
3
|
+
import { FieldProps } from "../../types";
|
|
4
4
|
export default class AsArrayField extends React.Component<FieldProps> {
|
|
5
5
|
static propTypes: {
|
|
6
6
|
schema: PropTypes.Validator<PropTypes.InferProps<{
|
|
@@ -12,18 +12,142 @@ export default class AsArrayField extends React.Component<FieldProps> {
|
|
|
12
12
|
getStateFromProps(props: FieldProps): {
|
|
13
13
|
formData: any[];
|
|
14
14
|
schema: {
|
|
15
|
-
title:
|
|
15
|
+
title: string | undefined;
|
|
16
16
|
type: string;
|
|
17
|
-
items:
|
|
17
|
+
items: {
|
|
18
|
+
title: undefined;
|
|
19
|
+
type: "object";
|
|
20
|
+
default?: Record<string, import("../../types").JSONObject> | undefined;
|
|
21
|
+
properties: Record<string, import("../../types").JSONSchema<any>>;
|
|
22
|
+
required?: string[] | undefined;
|
|
23
|
+
} | {
|
|
24
|
+
title: undefined;
|
|
25
|
+
type: "number";
|
|
26
|
+
default?: number | undefined;
|
|
27
|
+
} | {
|
|
28
|
+
title: undefined;
|
|
29
|
+
type: "integer";
|
|
30
|
+
default?: number | undefined;
|
|
31
|
+
} | {
|
|
32
|
+
title: undefined;
|
|
33
|
+
type: "boolean";
|
|
34
|
+
default?: boolean | undefined;
|
|
35
|
+
} | {
|
|
36
|
+
title: undefined;
|
|
37
|
+
type: "string";
|
|
38
|
+
default?: string | undefined;
|
|
39
|
+
} | {
|
|
40
|
+
title: undefined;
|
|
41
|
+
type: "string";
|
|
42
|
+
default?: string | undefined;
|
|
43
|
+
oneOf: import("../../types").JSONSchemaEnumOneOf[];
|
|
44
|
+
} | {
|
|
45
|
+
title: undefined;
|
|
46
|
+
type: "array";
|
|
47
|
+
default?: never[] | undefined;
|
|
48
|
+
items: any;
|
|
49
|
+
uniqueItems?: boolean | undefined;
|
|
50
|
+
maxItems?: number | undefined;
|
|
51
|
+
};
|
|
18
52
|
maxItems: number;
|
|
19
53
|
};
|
|
20
54
|
onChange: (formData: any[]) => void;
|
|
21
|
-
uiSchema:
|
|
22
|
-
|
|
23
|
-
|
|
55
|
+
uiSchema: import("@rjsf/utils").GenericObjectType & {
|
|
56
|
+
"ui:ArrayFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
57
|
+
"ui:ArrayFieldDescriptionTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldDescriptionProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
58
|
+
"ui:ArrayFieldItemTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateItemType<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
59
|
+
"ui:ArrayFieldTitleTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTitleProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
60
|
+
"ui:BaseInputTemplate"?: React.ComponentType<import("@rjsf/utils").WidgetProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
61
|
+
"ui:DescriptionFieldTemplate"?: React.ComponentType<import("@rjsf/utils").DescriptionFieldProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
62
|
+
"ui:ErrorListTemplate"?: React.ComponentType<import("@rjsf/utils").ErrorListProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
63
|
+
"ui:FieldErrorTemplate"?: React.ComponentType<import("@rjsf/utils").FieldErrorProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
64
|
+
"ui:FieldHelpTemplate"?: React.ComponentType<import("@rjsf/utils").FieldHelpProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
65
|
+
"ui:FieldTemplate"?: React.ComponentType<import("@rjsf/utils").FieldTemplateProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
66
|
+
"ui:ObjectFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ObjectFieldTemplateProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
67
|
+
"ui:TitleFieldTemplate"?: React.ComponentType<import("@rjsf/utils").TitleFieldProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
68
|
+
"ui:UnsupportedFieldTemplate"?: React.ComponentType<import("@rjsf/utils").UnsupportedFieldProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
69
|
+
"ui:WrapIfAdditionalTemplate"?: React.ComponentType<import("@rjsf/utils").WrapIfAdditionalTemplateProps<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>> | undefined;
|
|
70
|
+
"ui:classNames"?: string | undefined;
|
|
71
|
+
"ui:style"?: React.StyleHTMLAttributes<any> | undefined;
|
|
72
|
+
"ui:title"?: string | undefined;
|
|
73
|
+
"ui:description"?: string | undefined;
|
|
74
|
+
"ui:placeholder"?: string | undefined;
|
|
75
|
+
"ui:help"?: string | undefined;
|
|
76
|
+
"ui:autofocus"?: boolean | undefined;
|
|
77
|
+
"ui:autocomplete"?: string | undefined;
|
|
78
|
+
"ui:disabled"?: boolean | undefined;
|
|
79
|
+
"ui:emptyValue"?: any;
|
|
80
|
+
"ui:enumDisabled"?: (string | number | boolean)[] | undefined;
|
|
81
|
+
"ui:hideError"?: boolean | undefined;
|
|
82
|
+
"ui:readonly"?: boolean | undefined;
|
|
83
|
+
"ui:order"?: string[] | undefined;
|
|
84
|
+
"ui:addable"?: boolean | undefined;
|
|
85
|
+
"ui:orderable"?: boolean | undefined;
|
|
86
|
+
"ui:removable"?: boolean | undefined;
|
|
87
|
+
"ui:inline"?: boolean | undefined;
|
|
88
|
+
"ui:inputType"?: string | undefined;
|
|
89
|
+
"ui:label"?: boolean | undefined;
|
|
90
|
+
"ui:rows"?: number | undefined;
|
|
91
|
+
"ui:submitButtonOptions"?: import("@rjsf/utils").UISchemaSubmitButtonOptions | undefined;
|
|
92
|
+
"ui:widget"?: string | import("@rjsf/utils").Widget<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext> | undefined;
|
|
93
|
+
"ui:duplicateKeySuffixSeparator"?: string | undefined;
|
|
94
|
+
} & {
|
|
95
|
+
"ui:rootFieldId"?: string | undefined;
|
|
96
|
+
"ui:field"?: string | import("@rjsf/utils").Field<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext> | undefined;
|
|
97
|
+
"ui:fieldReplacesAnyOrOneOf"?: boolean | undefined;
|
|
98
|
+
"ui:options"?: import("@rjsf/utils").UIOptionsType<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext> | undefined;
|
|
99
|
+
} & {
|
|
100
|
+
"ui:ArrayFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
101
|
+
"ui:ArrayFieldDescriptionTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldDescriptionProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
102
|
+
"ui:ArrayFieldItemTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateItemType<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
103
|
+
"ui:ArrayFieldTitleTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTitleProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
104
|
+
"ui:BaseInputTemplate"?: React.ComponentType<import("@rjsf/utils").WidgetProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
105
|
+
"ui:DescriptionFieldTemplate"?: React.ComponentType<import("@rjsf/utils").DescriptionFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
106
|
+
"ui:ErrorListTemplate"?: React.ComponentType<import("@rjsf/utils").ErrorListProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
107
|
+
"ui:FieldErrorTemplate"?: React.ComponentType<import("@rjsf/utils").FieldErrorProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
108
|
+
"ui:FieldHelpTemplate"?: React.ComponentType<import("@rjsf/utils").FieldHelpProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
109
|
+
"ui:FieldTemplate"?: React.ComponentType<import("@rjsf/utils").FieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
110
|
+
"ui:ObjectFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ObjectFieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
111
|
+
"ui:TitleFieldTemplate"?: React.ComponentType<import("@rjsf/utils").TitleFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
112
|
+
"ui:UnsupportedFieldTemplate"?: React.ComponentType<import("@rjsf/utils").UnsupportedFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
113
|
+
"ui:WrapIfAdditionalTemplate"?: React.ComponentType<import("@rjsf/utils").WrapIfAdditionalTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
114
|
+
"ui:classNames"?: string | undefined;
|
|
115
|
+
"ui:style"?: React.StyleHTMLAttributes<any> | undefined;
|
|
116
|
+
"ui:title"?: string | undefined;
|
|
117
|
+
"ui:description"?: string | undefined;
|
|
118
|
+
"ui:placeholder"?: string | undefined;
|
|
119
|
+
"ui:help"?: string | undefined;
|
|
120
|
+
"ui:autofocus"?: boolean | undefined;
|
|
121
|
+
"ui:autocomplete"?: string | undefined;
|
|
122
|
+
"ui:disabled"?: boolean | undefined;
|
|
123
|
+
"ui:emptyValue"?: any;
|
|
124
|
+
"ui:enumDisabled"?: (string | number | boolean)[] | undefined;
|
|
125
|
+
"ui:hideError"?: boolean | undefined;
|
|
126
|
+
"ui:readonly"?: boolean | undefined;
|
|
127
|
+
"ui:order"?: string[] | undefined;
|
|
128
|
+
"ui:addable"?: boolean | undefined;
|
|
129
|
+
"ui:orderable"?: boolean | undefined;
|
|
130
|
+
"ui:removable"?: boolean | undefined;
|
|
131
|
+
"ui:inline"?: boolean | undefined;
|
|
132
|
+
"ui:inputType"?: string | undefined;
|
|
133
|
+
"ui:label"?: boolean | undefined;
|
|
134
|
+
"ui:rows"?: number | undefined;
|
|
135
|
+
"ui:submitButtonOptions"?: import("@rjsf/utils").UISchemaSubmitButtonOptions | undefined;
|
|
136
|
+
"ui:widget"?: string | import("@rjsf/utils").Widget<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
137
|
+
"ui:duplicateKeySuffixSeparator"?: string | undefined;
|
|
138
|
+
} & {
|
|
139
|
+
"ui:rootFieldId"?: string | undefined;
|
|
140
|
+
"ui:field"?: string | import("@rjsf/utils").Field<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
141
|
+
"ui:fieldReplacesAnyOrOneOf"?: boolean | undefined;
|
|
142
|
+
"ui:options"?: import("@rjsf/utils").UIOptionsType<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
143
|
+
};
|
|
24
144
|
idSchema: import("@rjsf/utils").IdSchema<any>;
|
|
145
|
+
errorSchema: import("@rjsf/utils").FieldErrors & {
|
|
146
|
+
[x: string]: import("@rjsf/utils").ErrorSchema<any> | undefined;
|
|
147
|
+
};
|
|
25
148
|
onBlur: (id: string, value: any) => void;
|
|
26
149
|
onFocus: (id: string, value: any) => void;
|
|
150
|
+
formContext: import("../LajiForm").FormContext;
|
|
27
151
|
autofocus?: boolean | undefined;
|
|
28
152
|
disabled: boolean;
|
|
29
153
|
hideError?: boolean | undefined;
|
|
@@ -33,7 +157,7 @@ export default class AsArrayField extends React.Component<FieldProps> {
|
|
|
33
157
|
idPrefix?: string | undefined;
|
|
34
158
|
idSeparator?: string | undefined;
|
|
35
159
|
rawErrors?: string[] | undefined;
|
|
36
|
-
registry: import("@rjsf/utils").Registry<any, any
|
|
160
|
+
registry: import("@rjsf/utils").Registry<any, import("../../types").JSONSchema<any>, import("../LajiForm").FormContext>;
|
|
37
161
|
hidden?: boolean | undefined;
|
|
38
162
|
dir?: string | undefined;
|
|
39
163
|
slot?: string | undefined;
|
|
@@ -20,7 +20,7 @@ export default class ExtraLabelRowField extends React.Component<any, any, any> {
|
|
|
20
20
|
constructor(props: any, context: any);
|
|
21
21
|
getStateFromProps(props: any): {
|
|
22
22
|
schema: any;
|
|
23
|
-
uiSchema:
|
|
23
|
+
uiSchema: import("../../types").UiSchema;
|
|
24
24
|
options: any;
|
|
25
25
|
};
|
|
26
26
|
setContainerRef: (elem: any) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PropTypes from "prop-types";
|
|
3
|
-
import { FieldProps } from "
|
|
3
|
+
import { FieldProps, JSONSchemaArray, JSONSchemaObject } from "../../types";
|
|
4
4
|
import ApiClient from "../../ApiClient";
|
|
5
5
|
interface ProcessedFile {
|
|
6
6
|
dataURL: string;
|
|
@@ -16,7 +16,7 @@ interface MediaMetadataSchema {
|
|
|
16
16
|
intellectualOwner?: string;
|
|
17
17
|
intellectualRights?: string;
|
|
18
18
|
}
|
|
19
|
-
export default class ImageArrayField extends React.Component<FieldProps
|
|
19
|
+
export default class ImageArrayField extends React.Component<FieldProps<JSONSchemaArray<JSONSchemaObject>>, ImageArrayFieldState> {
|
|
20
20
|
ALLOWED_FILE_TYPES: string[];
|
|
21
21
|
ACCEPT_FILE_TYPES: string[];
|
|
22
22
|
MAX_FILE_SIZE: number;
|
|
@@ -48,7 +48,7 @@ export interface MediaArrayState {
|
|
|
48
48
|
alertMsg?: string;
|
|
49
49
|
}
|
|
50
50
|
declare type Constructor<LFC> = new (...args: any[]) => LFC;
|
|
51
|
-
export declare function MediaArrayField<LFC extends Constructor<React.Component<FieldProps
|
|
51
|
+
export declare function MediaArrayField<LFC extends Constructor<React.Component<FieldProps<JSONSchemaArray<JSONSchemaObject>>, MediaArrayState>>>(ComposedComponent: LFC): {
|
|
52
52
|
new (...args: any[]): {
|
|
53
53
|
ALLOWED_FILE_TYPES: string[];
|
|
54
54
|
ACCEPT_FILE_TYPES: string[];
|
|
@@ -105,25 +105,25 @@ export declare function MediaArrayField<LFC extends Constructor<React.Component<
|
|
|
105
105
|
getAllowedMediaFormatsTranslationKey: () => "AllowedFileFormat" | "AllowedFileFormats";
|
|
106
106
|
getAllowedMediaFormatsAsString: () => string;
|
|
107
107
|
context: any;
|
|
108
|
-
setState<K extends keyof MediaArrayState>(state: MediaArrayState | ((prevState: Readonly<MediaArrayState>, props: Readonly<FieldProps
|
|
108
|
+
setState<K extends keyof MediaArrayState>(state: MediaArrayState | ((prevState: Readonly<MediaArrayState>, props: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>) => MediaArrayState | Pick<MediaArrayState, K> | null) | Pick<MediaArrayState, K> | null, callback?: (() => void) | undefined): void;
|
|
109
109
|
forceUpdate(callback?: (() => void) | undefined): void;
|
|
110
|
-
readonly props: Readonly<FieldProps
|
|
110
|
+
readonly props: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>> & Readonly<{
|
|
111
111
|
children?: React.ReactNode;
|
|
112
112
|
}>;
|
|
113
113
|
state: Readonly<MediaArrayState>;
|
|
114
114
|
refs: {
|
|
115
115
|
[key: string]: React.ReactInstance;
|
|
116
116
|
};
|
|
117
|
-
shouldComponentUpdate?(nextProps: Readonly<FieldProps
|
|
117
|
+
shouldComponentUpdate?(nextProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, nextState: Readonly<MediaArrayState>, nextContext: any): boolean;
|
|
118
118
|
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
|
|
119
|
-
getSnapshotBeforeUpdate?(prevProps: Readonly<FieldProps
|
|
120
|
-
componentDidUpdate?(prevProps: Readonly<FieldProps
|
|
119
|
+
getSnapshotBeforeUpdate?(prevProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, prevState: Readonly<MediaArrayState>): any;
|
|
120
|
+
componentDidUpdate?(prevProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, prevState: Readonly<MediaArrayState>, snapshot?: any): void;
|
|
121
121
|
componentWillMount?(): void;
|
|
122
122
|
UNSAFE_componentWillMount?(): void;
|
|
123
|
-
componentWillReceiveProps?(nextProps: Readonly<FieldProps
|
|
124
|
-
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<FieldProps
|
|
125
|
-
componentWillUpdate?(nextProps: Readonly<FieldProps
|
|
126
|
-
UNSAFE_componentWillUpdate?(nextProps: Readonly<FieldProps
|
|
123
|
+
componentWillReceiveProps?(nextProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, nextContext: any): void;
|
|
124
|
+
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, nextContext: any): void;
|
|
125
|
+
componentWillUpdate?(nextProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, nextState: Readonly<MediaArrayState>, nextContext: any): void;
|
|
126
|
+
UNSAFE_componentWillUpdate?(nextProps: Readonly<FieldProps<JSONSchemaArray<JSONSchemaObject, never>>>, nextState: Readonly<MediaArrayState>, nextContext: any): void;
|
|
127
127
|
};
|
|
128
128
|
contextType: React.Context<import("../../ReactContext").ContextProps>;
|
|
129
129
|
propTypes: {
|
|
@@ -20,7 +20,7 @@ export default class LocationChooserField extends React.Component<any, any, any>
|
|
|
20
20
|
constructor(props: any);
|
|
21
21
|
constructor(props: any, context: any);
|
|
22
22
|
getStateFromProps(props: any): {
|
|
23
|
-
uiSchema:
|
|
23
|
+
uiSchema: import("../../types").UiSchema;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
import * as React from "react";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import * as PropTypes from "prop-types";
|
|
3
|
-
import { FieldProps } from "../LajiForm";
|
|
4
3
|
import { ReactInstance } from "react";
|
|
5
4
|
import * as memoize from "memoizee";
|
|
5
|
+
import { FieldProps, JSONSchemaObject } from "../../types";
|
|
6
6
|
interface State {
|
|
7
7
|
activeButtonIdx?: number;
|
|
8
8
|
}
|
|
9
|
-
export default class MultiTagArrayField extends React.Component<FieldProps
|
|
9
|
+
export default class MultiTagArrayField extends React.Component<FieldProps<JSONSchemaObject>, State> {
|
|
10
10
|
static contextType: React.Context<import("../../ReactContext").ContextProps>;
|
|
11
11
|
static propTypes: {
|
|
12
12
|
uiSchema: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -96,7 +96,8 @@ let MultiTagArrayField = class MultiTagArrayField extends React.Component {
|
|
|
96
96
|
const { buttons = [] } = uiOptions;
|
|
97
97
|
const { activeButtonIdx } = this.state;
|
|
98
98
|
const propertyKeys = Object.keys(schema.properties);
|
|
99
|
-
|
|
99
|
+
const containerClassNames = utils_1.classNames("laji-form-multi-tag-array-field", activeButtonIdx !== undefined && "laji-form-multi-tag-array-field-active", (disabled || readonly) && "laji-form-multi-tag-array-field-disabled");
|
|
100
|
+
return (React.createElement(Row, { className: containerClassNames, ref: this.setAffixContainer },
|
|
100
101
|
React.createElement(Col, { xs: 3, sm: 3, md: 2, lg: 2, className: "laji-form-multi-tag-array-field-buttons" },
|
|
101
102
|
React.createElement(components_1.Affix, { getContainer: this.getAffixContainer, topOffset: this.props.formContext.topOffset + 15, bottomOffset: this.props.formContext.bottomOffset },
|
|
102
103
|
React.createElement("div", { className: "btn-group-vertical" }, buttons.map((btnProps, idx) => (React.createElement(components_1.Button, { key: idx, onClick: this.onButtonClick(idx), variant: btnProps.operation === "delete" ? "outline-danger" : "default", className: utils_1.classNames(btnProps.className, activeButtonIdx === idx ? "active" : ""), disabled: disabled || readonly }, btnProps.label)))))),
|
|
@@ -13,9 +13,95 @@ export default class NamedPlaceChooserField extends React.Component<any, any, an
|
|
|
13
13
|
apiClient: any;
|
|
14
14
|
removeIds: {};
|
|
15
15
|
getStateFromProps(props: any): {
|
|
16
|
-
uiSchema:
|
|
16
|
+
uiSchema: import("../../types").UiSchema | {
|
|
17
|
+
"ui:options": any;
|
|
18
|
+
"ui:ArrayFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
19
|
+
"ui:ArrayFieldDescriptionTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldDescriptionProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
20
|
+
"ui:ArrayFieldItemTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateItemType<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
21
|
+
"ui:ArrayFieldTitleTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTitleProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
22
|
+
"ui:BaseInputTemplate"?: React.ComponentType<import("@rjsf/utils").WidgetProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
23
|
+
"ui:DescriptionFieldTemplate"?: React.ComponentType<import("@rjsf/utils").DescriptionFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
24
|
+
"ui:ErrorListTemplate"?: React.ComponentType<import("@rjsf/utils").ErrorListProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
25
|
+
"ui:FieldErrorTemplate"?: React.ComponentType<import("@rjsf/utils").FieldErrorProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
26
|
+
"ui:FieldHelpTemplate"?: React.ComponentType<import("@rjsf/utils").FieldHelpProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
27
|
+
"ui:FieldTemplate"?: React.ComponentType<import("@rjsf/utils").FieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
28
|
+
"ui:ObjectFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ObjectFieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
29
|
+
"ui:TitleFieldTemplate"?: React.ComponentType<import("@rjsf/utils").TitleFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
30
|
+
"ui:UnsupportedFieldTemplate"?: React.ComponentType<import("@rjsf/utils").UnsupportedFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
31
|
+
"ui:WrapIfAdditionalTemplate"?: React.ComponentType<import("@rjsf/utils").WrapIfAdditionalTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
32
|
+
"ui:classNames"?: string | undefined;
|
|
33
|
+
"ui:style"?: React.StyleHTMLAttributes<any> | undefined;
|
|
34
|
+
"ui:title"?: string | undefined;
|
|
35
|
+
"ui:description"?: string | undefined;
|
|
36
|
+
"ui:placeholder"?: string | undefined;
|
|
37
|
+
"ui:help"?: string | undefined;
|
|
38
|
+
"ui:autofocus"?: boolean | undefined;
|
|
39
|
+
"ui:autocomplete"?: string | undefined;
|
|
40
|
+
"ui:disabled"?: boolean | undefined;
|
|
41
|
+
"ui:emptyValue"?: any;
|
|
42
|
+
"ui:enumDisabled"?: (string | number | boolean)[] | undefined;
|
|
43
|
+
"ui:hideError"?: boolean | undefined;
|
|
44
|
+
"ui:readonly"?: boolean | undefined;
|
|
45
|
+
"ui:order"?: string[] | undefined;
|
|
46
|
+
"ui:addable"?: boolean | undefined;
|
|
47
|
+
"ui:orderable"?: boolean | undefined;
|
|
48
|
+
"ui:removable"?: boolean | undefined;
|
|
49
|
+
"ui:inline"?: boolean | undefined;
|
|
50
|
+
"ui:inputType"?: string | undefined;
|
|
51
|
+
"ui:label"?: boolean | undefined;
|
|
52
|
+
"ui:rows"?: number | undefined;
|
|
53
|
+
"ui:submitButtonOptions"?: import("@rjsf/utils").UISchemaSubmitButtonOptions | undefined;
|
|
54
|
+
"ui:widget"?: string | import("@rjsf/utils").Widget<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
55
|
+
"ui:duplicateKeySuffixSeparator"?: string | undefined;
|
|
56
|
+
"ui:rootFieldId"?: string | undefined;
|
|
57
|
+
"ui:field"?: string | import("@rjsf/utils").Field<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
58
|
+
"ui:fieldReplacesAnyOrOneOf"?: boolean | undefined;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
getUiSchema: (props: any) => import("../../types").UiSchema | {
|
|
62
|
+
"ui:options": any;
|
|
63
|
+
"ui:ArrayFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
64
|
+
"ui:ArrayFieldDescriptionTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldDescriptionProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
65
|
+
"ui:ArrayFieldItemTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTemplateItemType<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
66
|
+
"ui:ArrayFieldTitleTemplate"?: React.ComponentType<import("@rjsf/utils").ArrayFieldTitleProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
67
|
+
"ui:BaseInputTemplate"?: React.ComponentType<import("@rjsf/utils").WidgetProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
68
|
+
"ui:DescriptionFieldTemplate"?: React.ComponentType<import("@rjsf/utils").DescriptionFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
69
|
+
"ui:ErrorListTemplate"?: React.ComponentType<import("@rjsf/utils").ErrorListProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
70
|
+
"ui:FieldErrorTemplate"?: React.ComponentType<import("@rjsf/utils").FieldErrorProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
71
|
+
"ui:FieldHelpTemplate"?: React.ComponentType<import("@rjsf/utils").FieldHelpProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
72
|
+
"ui:FieldTemplate"?: React.ComponentType<import("@rjsf/utils").FieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
73
|
+
"ui:ObjectFieldTemplate"?: React.ComponentType<import("@rjsf/utils").ObjectFieldTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
74
|
+
"ui:TitleFieldTemplate"?: React.ComponentType<import("@rjsf/utils").TitleFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
75
|
+
"ui:UnsupportedFieldTemplate"?: React.ComponentType<import("@rjsf/utils").UnsupportedFieldProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
76
|
+
"ui:WrapIfAdditionalTemplate"?: React.ComponentType<import("@rjsf/utils").WrapIfAdditionalTemplateProps<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext>> | undefined;
|
|
77
|
+
"ui:classNames"?: string | undefined;
|
|
78
|
+
"ui:style"?: React.StyleHTMLAttributes<any> | undefined;
|
|
79
|
+
"ui:title"?: string | undefined;
|
|
80
|
+
"ui:description"?: string | undefined;
|
|
81
|
+
"ui:placeholder"?: string | undefined;
|
|
82
|
+
"ui:help"?: string | undefined;
|
|
83
|
+
"ui:autofocus"?: boolean | undefined;
|
|
84
|
+
"ui:autocomplete"?: string | undefined;
|
|
85
|
+
"ui:disabled"?: boolean | undefined;
|
|
86
|
+
"ui:emptyValue"?: any;
|
|
87
|
+
"ui:enumDisabled"?: (string | number | boolean)[] | undefined;
|
|
88
|
+
"ui:hideError"?: boolean | undefined;
|
|
89
|
+
"ui:readonly"?: boolean | undefined;
|
|
90
|
+
"ui:order"?: string[] | undefined;
|
|
91
|
+
"ui:addable"?: boolean | undefined;
|
|
92
|
+
"ui:orderable"?: boolean | undefined;
|
|
93
|
+
"ui:removable"?: boolean | undefined;
|
|
94
|
+
"ui:inline"?: boolean | undefined;
|
|
95
|
+
"ui:inputType"?: string | undefined;
|
|
96
|
+
"ui:label"?: boolean | undefined;
|
|
97
|
+
"ui:rows"?: number | undefined;
|
|
98
|
+
"ui:submitButtonOptions"?: import("@rjsf/utils").UISchemaSubmitButtonOptions | undefined;
|
|
99
|
+
"ui:widget"?: string | import("@rjsf/utils").Widget<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
100
|
+
"ui:duplicateKeySuffixSeparator"?: string | undefined;
|
|
101
|
+
"ui:rootFieldId"?: string | undefined;
|
|
102
|
+
"ui:field"?: string | import("@rjsf/utils").Field<any, import("../../types").JSONSchemaObject, import("../LajiForm").FormContext> | undefined;
|
|
103
|
+
"ui:fieldReplacesAnyOrOneOf"?: boolean | undefined;
|
|
17
104
|
};
|
|
18
|
-
getUiSchema: (props: any) => any;
|
|
19
105
|
buttonDefinition: any;
|
|
20
106
|
isGatheringsArray: () => boolean;
|
|
21
107
|
onPlaceSelected: (place: any) => void;
|