@opennsw/jsonforms-renderers 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +22 -2
- package/dist/renderers.cjs.js +2 -2
- package/dist/renderers.es.js +1995 -1759
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -32,6 +32,12 @@ export declare const ComputedControl: ComponentType<OwnPropsOfControl>;
|
|
|
32
32
|
|
|
33
33
|
export declare const ComputedControlTester: (uischema: UISchemaElement, schema: JsonSchema, context: TesterContext) => number;
|
|
34
34
|
|
|
35
|
+
export declare interface ContentsLink {
|
|
36
|
+
label: string;
|
|
37
|
+
/** The id of the element on the page to scroll to. */
|
|
38
|
+
targetId: string;
|
|
39
|
+
}
|
|
40
|
+
|
|
35
41
|
export declare const DateControl: ({ data, handleChange, path, label, required, errors, schema, uischema, enabled, visible, }: ControlProps) => JSX.Element | null;
|
|
36
42
|
|
|
37
43
|
export declare const DateControlTester: RankedTester;
|
|
@@ -41,11 +47,17 @@ export declare interface DownloadUrlResult {
|
|
|
41
47
|
expiresAt: number;
|
|
42
48
|
/**
|
|
43
49
|
* The file's extension with its dot (`.xlsx`), when known. A saved form's
|
|
44
|
-
* value is an opaque reference, so
|
|
45
|
-
*
|
|
50
|
+
* value is an opaque reference, so the control names a saved file's download
|
|
51
|
+
* from this.
|
|
46
52
|
*/
|
|
47
53
|
extension?: string;
|
|
48
54
|
mimeType?: string;
|
|
55
|
+
/**
|
|
56
|
+
* How the server serves the file: `inline` when a browser may open it, and
|
|
57
|
+
* `attachment` when it is only saved. A saved file's View opens it in a tab
|
|
58
|
+
* only for `inline`, and downloads it for `attachment` or when this is absent.
|
|
59
|
+
*/
|
|
60
|
+
disposition?: 'inline' | 'attachment';
|
|
49
61
|
}
|
|
50
62
|
|
|
51
63
|
export declare const FileControl: React_2.ComponentType<OwnPropsOfControl>;
|
|
@@ -62,6 +74,12 @@ export declare interface FormStepsContextValue {
|
|
|
62
74
|
actions?: ReactNode;
|
|
63
75
|
/** Continue was pressed on a step that still has errors. */
|
|
64
76
|
onInvalidStep?: () => void;
|
|
77
|
+
/**
|
|
78
|
+
* Entries a read-only stepper's contents list ends with, for other parts of
|
|
79
|
+
* the host's page (such as a form to fill in below the one being read). Each
|
|
80
|
+
* scrolls to the element with that id.
|
|
81
|
+
*/
|
|
82
|
+
contentsLinks?: ContentsLink[];
|
|
65
83
|
}
|
|
66
84
|
|
|
67
85
|
/** Gives a stepper form under it the host's callbacks and buttons (see formSteps.ts). */
|
|
@@ -221,6 +239,8 @@ export declare const STEPPER_MESSAGES: {
|
|
|
221
239
|
readonly reviewHint: "Check your answers below, then submit.";
|
|
222
240
|
readonly edit: "Edit";
|
|
223
241
|
readonly editStep: "Edit {step}";
|
|
242
|
+
readonly contentsLabel: "Sections";
|
|
243
|
+
readonly jumpTo: "Jump to section";
|
|
224
244
|
};
|
|
225
245
|
|
|
226
246
|
export declare type StepperMessage = keyof typeof STEPPER_MESSAGES;
|