@opennsw/jsonforms-renderers 0.15.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 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 this and `mimeType` are how the control
45
- * names a saved file's download and decides whether View opens or downloads it.
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). */
@@ -107,12 +125,21 @@ export declare const LIST_MESSAGES: {
107
125
  readonly addItem: "Add Item";
108
126
  readonly remove: "Remove";
109
127
  readonly removeItem: "Remove {item}";
128
+ readonly openItem: "Open {item}";
110
129
  readonly confirmTitle: "Remove {item}?";
111
130
  readonly confirmDescription: "Its answers are removed too. This can't be undone.";
112
131
  readonly keepItem: "Keep item";
113
132
  readonly removeConfirmed: "Remove item";
114
133
  readonly removed: "{item} removed.";
134
+ readonly removedTotals: "{item} removed. Now {totals}.";
115
135
  readonly empty: "No items have been added yet.";
136
+ readonly countOne: "{count} item";
137
+ readonly countOther: "{count} items";
138
+ readonly needsAttention: "Needs attention";
139
+ readonly done: "Done";
140
+ readonly add: "Add";
141
+ readonly cancel: "Cancel";
142
+ readonly close: "Close";
116
143
  };
117
144
 
118
145
  export declare type ListMessage = keyof typeof LIST_MESSAGES;
@@ -212,6 +239,8 @@ export declare const STEPPER_MESSAGES: {
212
239
  readonly reviewHint: "Check your answers below, then submit.";
213
240
  readonly edit: "Edit";
214
241
  readonly editStep: "Edit {step}";
242
+ readonly contentsLabel: "Sections";
243
+ readonly jumpTo: "Jump to section";
215
244
  };
216
245
 
217
246
  export declare type StepperMessage = keyof typeof STEPPER_MESSAGES;