@cratis/stage.runtime 4.189.1 → 4.189.2
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/src/StageCommandForm.d.ts +10 -1
- package/dist/src/index.js +456 -450
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ export declare function StageCommandForm({ element }: StageCommandFormProps): im
|
|
|
28
28
|
* reference to another entity gets only what the address or the session supplies. A schema that marks none - an authored form's - leaves
|
|
29
29
|
* every identifier it does not show to the session, as it always has.
|
|
30
30
|
*/
|
|
31
|
-
export declare function sessionIdentifiers(fields: FormField[], schema: SchemaProperty[], parameters: Record<string, string>): StageCommandContent;
|
|
31
|
+
export declare function sessionIdentifiers(fields: FormField[], schema: SchemaProperty[], parameters: Record<string, string>, selectedRows?: Record<string, unknown>[]): StageCommandContent;
|
|
32
32
|
/**
|
|
33
33
|
* Whether a task dialog leaves an identifier out of what it asks: the identifier the command acts on (`x-identity`) - the shopper's basket,
|
|
34
34
|
* which the session supplies or creates - or one the address or the session already supplies. Every other identifier is a reference to
|
|
@@ -49,3 +49,12 @@ export declare function suppliedWithoutAsking(property: SchemaProperty, paramete
|
|
|
49
49
|
* @returns The value, or nothing when the property is not an identifier or nothing supplies it.
|
|
50
50
|
*/
|
|
51
51
|
export declare function suppliedIdentifier(property: SchemaProperty, parameters: Record<string, string>): string | undefined;
|
|
52
|
+
/**
|
|
53
|
+
* The identifier of the row the person selected on the screen: an action on a list acts on the selected item, so the identifier property of the same
|
|
54
|
+
* name takes that row's value and the session never invents the key of an entity that already exists. Rows that disagree about it supply nothing.
|
|
55
|
+
*
|
|
56
|
+
* @param property The property of the command.
|
|
57
|
+
* @param selectedRows The rows currently selected on the screen.
|
|
58
|
+
* @returns The selected row's value, or nothing when no selected row (or more than one, differently) carries one.
|
|
59
|
+
*/
|
|
60
|
+
export declare function selectedIdentifier(property: SchemaProperty, selectedRows: Record<string, unknown>[]): string | undefined;
|