@medplum/react 3.0.2 → 3.0.3
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/cjs/index.cjs +5 -5
- package/dist/cjs/index.cjs.map +4 -4
- package/dist/cjs/index.d.ts +10 -10
- package/dist/esm/index.d.ts +10 -10
- package/dist/esm/index.mjs +5 -5
- package/dist/esm/index.mjs.map +4 -4
- package/package.json +18 -18
package/dist/cjs/index.d.ts
CHANGED
|
@@ -285,6 +285,8 @@ export declare function BackboneElementInput(props: BackboneElementInputProps):
|
|
|
285
285
|
export declare interface BackboneElementInputProps {
|
|
286
286
|
/** Type name the backbone element represents */
|
|
287
287
|
readonly typeName: string;
|
|
288
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
289
|
+
readonly path: string;
|
|
288
290
|
/** (optional) The contents of the resource represented by the backbone element */
|
|
289
291
|
readonly defaultValue?: any;
|
|
290
292
|
/** (optional) OperationOutcome from the last attempted system action*/
|
|
@@ -349,9 +351,8 @@ export declare interface CodeableConceptDisplayProps {
|
|
|
349
351
|
|
|
350
352
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
351
353
|
|
|
352
|
-
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
353
|
-
readonly
|
|
354
|
-
readonly onChange?: (value: CodeableConcept | undefined) => void;
|
|
354
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'name' | 'defaultValue' | 'onChange'>, ComplexTypeInputProps<CodeableConcept> {
|
|
355
|
+
readonly onChange: ((value: CodeableConcept | undefined) => void) | undefined;
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
@@ -376,6 +377,7 @@ export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps
|
|
|
376
377
|
|
|
377
378
|
export declare interface ComplexTypeInputProps<ValueType> {
|
|
378
379
|
name: string;
|
|
380
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
379
381
|
path: string;
|
|
380
382
|
defaultValue?: ValueType;
|
|
381
383
|
onChange: ((value: ValueType, propName?: string) => void) | undefined;
|
|
@@ -498,17 +500,12 @@ export declare interface ElementDefinitionSelectorProps extends ResourceProperty
|
|
|
498
500
|
|
|
499
501
|
export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
|
|
500
502
|
|
|
501
|
-
export declare
|
|
502
|
-
readonly name: ResourcePropertyInputProps['name'];
|
|
503
|
-
readonly path: string;
|
|
504
|
-
readonly defaultValue: ResourcePropertyInputProps['defaultValue'];
|
|
505
|
-
readonly onChange: ResourcePropertyInputProps['onChange'];
|
|
506
|
-
readonly outcome: ResourcePropertyInputProps['outcome'];
|
|
503
|
+
export declare interface ElementDefinitionTypeInputProps extends Pick<ResourcePropertyInputProps, 'name' | 'path' | 'defaultValue' | 'onChange' | 'outcome'> {
|
|
507
504
|
readonly elementDefinitionType: ElementDefinitionType;
|
|
508
505
|
readonly min: number;
|
|
509
506
|
readonly max: number;
|
|
510
507
|
readonly binding: ElementDefinitionBinding | undefined;
|
|
511
|
-
}
|
|
508
|
+
}
|
|
512
509
|
|
|
513
510
|
export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
|
|
514
511
|
|
|
@@ -1017,6 +1014,7 @@ export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.
|
|
|
1017
1014
|
export declare interface ResourceArrayInputProps {
|
|
1018
1015
|
readonly property: InternalSchemaElement;
|
|
1019
1016
|
readonly name: string;
|
|
1017
|
+
readonly path: string;
|
|
1020
1018
|
readonly defaultValue?: any[];
|
|
1021
1019
|
readonly indent?: boolean;
|
|
1022
1020
|
readonly outcome: OperationOutcome | undefined;
|
|
@@ -1116,6 +1114,8 @@ export declare function ResourcePropertyInput(props: ResourcePropertyInputProps)
|
|
|
1116
1114
|
export declare interface ResourcePropertyInputProps {
|
|
1117
1115
|
readonly property: InternalSchemaElement;
|
|
1118
1116
|
readonly name: string;
|
|
1117
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
1118
|
+
readonly path: string;
|
|
1119
1119
|
readonly defaultPropertyType?: string | undefined;
|
|
1120
1120
|
readonly defaultValue: any;
|
|
1121
1121
|
readonly arrayElement?: boolean | undefined;
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -285,6 +285,8 @@ export declare function BackboneElementInput(props: BackboneElementInputProps):
|
|
|
285
285
|
export declare interface BackboneElementInputProps {
|
|
286
286
|
/** Type name the backbone element represents */
|
|
287
287
|
readonly typeName: string;
|
|
288
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
289
|
+
readonly path: string;
|
|
288
290
|
/** (optional) The contents of the resource represented by the backbone element */
|
|
289
291
|
readonly defaultValue?: any;
|
|
290
292
|
/** (optional) OperationOutcome from the last attempted system action*/
|
|
@@ -349,9 +351,8 @@ export declare interface CodeableConceptDisplayProps {
|
|
|
349
351
|
|
|
350
352
|
export declare function CodeableConceptInput(props: CodeableConceptInputProps): JSX.Element;
|
|
351
353
|
|
|
352
|
-
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'defaultValue' | 'onChange'> {
|
|
353
|
-
readonly
|
|
354
|
-
readonly onChange?: (value: CodeableConcept | undefined) => void;
|
|
354
|
+
export declare interface CodeableConceptInputProps extends Omit<ValueSetAutocompleteProps, 'name' | 'defaultValue' | 'onChange'>, ComplexTypeInputProps<CodeableConcept> {
|
|
355
|
+
readonly onChange: ((value: CodeableConcept | undefined) => void) | undefined;
|
|
355
356
|
}
|
|
356
357
|
|
|
357
358
|
export declare function CodeInput(props: CodeInputProps): JSX.Element;
|
|
@@ -376,6 +377,7 @@ export declare interface CodingInputProps extends Omit<ValueSetAutocompleteProps
|
|
|
376
377
|
|
|
377
378
|
export declare interface ComplexTypeInputProps<ValueType> {
|
|
378
379
|
name: string;
|
|
380
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
379
381
|
path: string;
|
|
380
382
|
defaultValue?: ValueType;
|
|
381
383
|
onChange: ((value: ValueType, propName?: string) => void) | undefined;
|
|
@@ -498,17 +500,12 @@ export declare interface ElementDefinitionSelectorProps extends ResourceProperty
|
|
|
498
500
|
|
|
499
501
|
export declare function ElementDefinitionTypeInput(props: ElementDefinitionTypeInputProps): JSX.Element;
|
|
500
502
|
|
|
501
|
-
export declare
|
|
502
|
-
readonly name: ResourcePropertyInputProps['name'];
|
|
503
|
-
readonly path: string;
|
|
504
|
-
readonly defaultValue: ResourcePropertyInputProps['defaultValue'];
|
|
505
|
-
readonly onChange: ResourcePropertyInputProps['onChange'];
|
|
506
|
-
readonly outcome: ResourcePropertyInputProps['outcome'];
|
|
503
|
+
export declare interface ElementDefinitionTypeInputProps extends Pick<ResourcePropertyInputProps, 'name' | 'path' | 'defaultValue' | 'onChange' | 'outcome'> {
|
|
507
504
|
readonly elementDefinitionType: ElementDefinitionType;
|
|
508
505
|
readonly min: number;
|
|
509
506
|
readonly max: number;
|
|
510
507
|
readonly binding: ElementDefinitionBinding | undefined;
|
|
511
|
-
}
|
|
508
|
+
}
|
|
512
509
|
|
|
513
510
|
export declare function EncounterTimeline(props: EncounterTimelineProps): JSX.Element;
|
|
514
511
|
|
|
@@ -1017,6 +1014,7 @@ export declare function ResourceArrayInput(props: ResourceArrayInputProps): JSX.
|
|
|
1017
1014
|
export declare interface ResourceArrayInputProps {
|
|
1018
1015
|
readonly property: InternalSchemaElement;
|
|
1019
1016
|
readonly name: string;
|
|
1017
|
+
readonly path: string;
|
|
1020
1018
|
readonly defaultValue?: any[];
|
|
1021
1019
|
readonly indent?: boolean;
|
|
1022
1020
|
readonly outcome: OperationOutcome | undefined;
|
|
@@ -1116,6 +1114,8 @@ export declare function ResourcePropertyInput(props: ResourcePropertyInputProps)
|
|
|
1116
1114
|
export declare interface ResourcePropertyInputProps {
|
|
1117
1115
|
readonly property: InternalSchemaElement;
|
|
1118
1116
|
readonly name: string;
|
|
1117
|
+
/** The path identifies the element and is expressed as a "."-separated list of ancestor elements, beginning with the name of the resource or extension. */
|
|
1118
|
+
readonly path: string;
|
|
1119
1119
|
readonly defaultPropertyType?: string | undefined;
|
|
1120
1120
|
readonly defaultValue: any;
|
|
1121
1121
|
readonly arrayElement?: boolean | undefined;
|