@researchdatabox/sails-ng-common 5.0.4-beta.12498 → 5.0.5
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/config/component/checkbox-input.model.d.ts +0 -1
- package/dist/src/config/component/checkbox-input.model.js +1 -2
- package/dist/src/config/component/checkbox-input.outline.d.ts +1 -2
- package/dist/src/config/component/checkbox-input.outline.js +1 -1
- package/dist/src/config/component/data-location.outline.d.ts +0 -1
- package/dist/src/config/component/file-upload.outline.d.ts +0 -2
- package/dist/src/config/component/file-upload.outline.js +1 -1
- package/dist/src/config/component/save-button.model.d.ts +0 -1
- package/dist/src/config/component/save-button.model.js +1 -2
- package/dist/src/config/component/save-button.outline.d.ts +0 -5
- package/dist/src/config/component/save-status.model.d.ts +0 -4
- package/dist/src/config/component/save-status.model.js +1 -5
- package/dist/src/config/component/save-status.outline.d.ts +0 -20
- package/dist/src/config/dictionary.model.d.ts +4 -28
- package/dist/src/config/dictionary.model.js +1 -7
- package/dist/src/config/dictionary.outline.d.ts +3 -5
- package/dist/src/config/form-behaviour.outline.d.ts +7 -120
- package/dist/src/config/form-behaviour.outline.js +5 -13
- package/dist/src/config/form-component.model.d.ts +0 -1
- package/dist/src/config/form-component.model.js +1 -2
- package/dist/src/config/form-component.outline.d.ts +0 -14
- package/dist/src/config/form-config.model.d.ts +0 -3
- package/dist/src/config/form-config.model.js +1 -2
- package/dist/src/config/form-config.outline.d.ts +0 -10
- package/dist/src/config/form-override.model.js +3 -4
- package/dist/src/config/visitor/base.model.d.ts +0 -6
- package/dist/src/config/visitor/base.model.js +1 -13
- package/dist/src/config/visitor/base.outline.d.ts +0 -6
- package/dist/src/config/visitor/common.model.js +1 -2
- package/dist/src/index.d.ts +1 -9
- package/dist/src/index.js +2 -10
- package/dist/src/jsonata-helpers.d.ts +0 -15
- package/dist/src/jsonata-helpers.js +13 -49
- package/dist/src/translation-html.d.ts +23 -0
- package/dist/src/translation-html.js +170 -0
- package/package.json +11 -16
- package/dist/src/config/component/related-object-data.model.d.ts +0 -45
- package/dist/src/config/component/related-object-data.model.js +0 -39
- package/dist/src/config/component/related-object-data.outline.d.ts +0 -59
- package/dist/src/config/component/related-object-data.outline.js +0 -5
- package/dist/src/config/component/workspace.model.d.ts +0 -44
- package/dist/src/config/component/workspace.model.js +0 -44
- package/dist/src/config/component/workspace.outline.d.ts +0 -62
- package/dist/src/config/component/workspace.outline.js +0 -5
- package/dist/src/internal/plain-record.d.ts +0 -11
- package/dist/src/internal/plain-record.js +0 -21
- package/dist/src/jsonata-parity.fixtures.d.ts +0 -9
- package/dist/src/jsonata-parity.fixtures.js +0 -25
- package/dist/src/record-concurrency.model.d.ts +0 -118
- package/dist/src/record-concurrency.model.js +0 -199
- package/dist/src/record-diff.d.ts +0 -69
- package/dist/src/record-diff.js +0 -298
- package/dist/src/record-save.model.d.ts +0 -154
- package/dist/src/record-save.model.js +0 -289
- package/dist/src/testing.d.ts +0 -3
- package/dist/src/testing.js +0 -20
- package/dist/src/validation/record-validation.model.d.ts +0 -84
- package/dist/src/validation/record-validation.model.js +0 -53
- package/dist/src/validation/validation-groups.d.ts +0 -29
- package/dist/src/validation/validation-groups.fixtures.d.ts +0 -20
- package/dist/src/validation/validation-groups.fixtures.js +0 -83
- package/dist/src/validation/validation-groups.js +0 -82
|
@@ -9,7 +9,6 @@ export declare class CheckboxInputFieldComponentConfig extends FieldComponentCon
|
|
|
9
9
|
placeholder?: string;
|
|
10
10
|
options: CheckboxOption[];
|
|
11
11
|
multipleValues?: boolean;
|
|
12
|
-
booleanMode?: boolean;
|
|
13
12
|
vocabRef?: string;
|
|
14
13
|
inlineVocab?: boolean;
|
|
15
14
|
historicalVocabMode?: HistoricalVocabMode;
|
|
@@ -11,7 +11,6 @@ class CheckboxInputFieldComponentConfig extends field_component_model_1.FieldCom
|
|
|
11
11
|
placeholder;
|
|
12
12
|
options = [];
|
|
13
13
|
multipleValues;
|
|
14
|
-
booleanMode;
|
|
15
14
|
vocabRef;
|
|
16
15
|
inlineVocab;
|
|
17
16
|
historicalVocabMode;
|
|
@@ -77,4 +76,4 @@ exports.CheckboxInputDefaults = {
|
|
|
77
76
|
}
|
|
78
77
|
}
|
|
79
78
|
};
|
|
80
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
79
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtaW5wdXQubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9jaGVja2JveC1pbnB1dC5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw0REFBOEU7QUFDOUUsa0VBQWtFO0FBRWxFLHNEQUsyQjtBQUMzQixvRUFBMEY7QUFHMUYscUVBT2tDO0FBRWxDLDhCQUE4QjtBQUc5QixNQUFhLGlDQUFrQyxTQUFRLDRDQUFvQjtJQUN2RSxXQUFXLENBQVU7SUFDckIsT0FBTyxHQUFxQixFQUFFLENBQUM7SUFDL0IsY0FBYyxDQUFXO0lBQ3pCLFFBQVEsQ0FBVTtJQUNsQixXQUFXLENBQVc7SUFDdEIsbUJBQW1CLENBQXVCO0lBRTFDO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0NBQ0o7QUFYRCw4RUFXQztBQUdELE1BQWEscUNBQXNDLFNBQVEsZ0RBQXdCO0lBQy9FLEtBQUssR0FBRyxtREFBMEIsQ0FBQztJQUNuQyxNQUFNLENBQTRDO0lBRWxEO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0lBRUQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFpQztRQUMxQyxNQUFNLE9BQU8sQ0FBQywwQ0FBMEMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNuRSxDQUFDO0NBQ0o7QUFYRCxzRkFXQztBQUdELDB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BRyxFQUFFLGlDQUFpQyxFQUFFLEtBQUssRUFBRSwrQ0FBc0IsRUFBRTtJQUN6RyxFQUFFLElBQUksRUFBRSw0Q0FBMkIsRUFBRSxHQUFHLEVBQUUsb0NBQW9DLEVBQUUsS0FBSyxFQUFFLG1EQUEwQixFQUFFO0NBQ3RILENBQUM7QUFDVyxRQUFBLHFCQUFxQixHQUFHO0lBQ2pDLENBQUMsNENBQTJCLENBQUMsRUFBRTtRQUMzQixDQUFDLG1EQUEwQixDQUFDLEVBQUU7WUFDMUIsQ0FBQyw2Q0FBNEIsQ0FBQyxFQUFFLG1EQUEwQjtZQUMxRCxDQUFDLHlDQUF3QixDQUFDLEVBQUUsK0NBQXNCO1NBQ3JEO0tBQ0o7Q0FDSixDQUFDIn0=
|
|
@@ -15,7 +15,6 @@ export interface CheckboxInputFieldComponentConfigFrame extends FieldComponentCo
|
|
|
15
15
|
placeholder?: string;
|
|
16
16
|
options?: CheckboxOption[];
|
|
17
17
|
multipleValues?: boolean;
|
|
18
|
-
booleanMode?: boolean;
|
|
19
18
|
vocabRef?: string;
|
|
20
19
|
inlineVocab?: boolean;
|
|
21
20
|
historicalVocabMode?: HistoricalVocabMode;
|
|
@@ -32,7 +31,7 @@ export interface CheckboxInputFieldComponentDefinitionOutline extends CheckboxIn
|
|
|
32
31
|
}
|
|
33
32
|
export declare const CheckboxInputModelName: "CheckboxInputModel";
|
|
34
33
|
export type CheckboxInputModelNameType = typeof CheckboxInputModelName;
|
|
35
|
-
export type CheckboxInputModelValueType = string |
|
|
34
|
+
export type CheckboxInputModelValueType = string | null | Array<string>;
|
|
36
35
|
export interface CheckboxInputFieldModelConfigFrame extends FieldModelConfigFrame<CheckboxInputModelValueType> {
|
|
37
36
|
}
|
|
38
37
|
export interface CheckboxInputFieldModelConfigOutline extends CheckboxInputFieldModelConfigFrame, FieldModelConfigOutline<CheckboxInputModelValueType> {
|
|
@@ -5,4 +5,4 @@ exports.CheckboxInputModelName = exports.CheckboxInputComponentName = void 0;
|
|
|
5
5
|
exports.CheckboxInputComponentName = "CheckboxInputComponent";
|
|
6
6
|
/* Checkbox Input Model */
|
|
7
7
|
exports.CheckboxInputModelName = "CheckboxInputModel";
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2hlY2tib3gtaW5wdXQub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L2NoZWNrYm94LWlucHV0Lm91dGxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBdUJBLDhCQUE4QjtBQUNqQixRQUFBLDBCQUEwQixHQUFHLHdCQUFpQyxDQUFDO0FBK0I1RSwwQkFBMEI7QUFDYixRQUFBLHNCQUFzQixHQUFHLG9CQUE2QixDQUFDIn0=
|
|
@@ -8,8 +8,6 @@ export type FileUploadComponentNameType = typeof FileUploadComponentName;
|
|
|
8
8
|
export type FileUploadSourceType = "dropbox" | "googleDrive" | "onedrive";
|
|
9
9
|
export interface FileUploadAttachmentValue {
|
|
10
10
|
type: "attachment";
|
|
11
|
-
/** Stable logical identity used to reconcile save completion. */
|
|
12
|
-
attachmentId?: string;
|
|
13
11
|
location: string;
|
|
14
12
|
uploadUrl: string;
|
|
15
13
|
fileId: string;
|
|
@@ -5,4 +5,4 @@ exports.FileUploadModelName = exports.FileUploadComponentName = void 0;
|
|
|
5
5
|
exports.FileUploadComponentName = "FileUploadComponent";
|
|
6
6
|
/* File Upload Model */
|
|
7
7
|
exports.FileUploadModelName = "FileUploadModel";
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS11cGxvYWQub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L2ZpbGUtdXBsb2FkLm91dGxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBMkJBLDJCQUEyQjtBQUNkLFFBQUEsdUJBQXVCLEdBQUcscUJBQThCLENBQUM7QUF5Q3RFLHVCQUF1QjtBQUNWLFFBQUEsbUJBQW1CLEdBQUcsaUJBQTBCLENBQUMifQ==
|
|
@@ -4,7 +4,6 @@ import { FormComponentDefinition } from "../form-component.model";
|
|
|
4
4
|
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
5
5
|
import { SaveButtonFieldComponentConfigOutline, SaveButtonFieldComponentDefinitionOutline, SaveButtonFormComponentDefinitionOutline } from "./save-button.outline";
|
|
6
6
|
export declare class SaveButtonFieldComponentConfig extends FieldComponentConfig implements SaveButtonFieldComponentConfigOutline {
|
|
7
|
-
operation?: string;
|
|
8
7
|
targetStep?: string;
|
|
9
8
|
forceSave?: boolean;
|
|
10
9
|
labelSaving?: string;
|
|
@@ -7,7 +7,6 @@ const shared_outline_1 = require("../shared.outline");
|
|
|
7
7
|
const save_button_outline_1 = require("./save-button.outline");
|
|
8
8
|
/* Save Button Component */
|
|
9
9
|
class SaveButtonFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
10
|
-
operation;
|
|
11
10
|
targetStep;
|
|
12
11
|
forceSave;
|
|
13
12
|
labelSaving;
|
|
@@ -57,4 +56,4 @@ exports.SaveButtonDefaults = {
|
|
|
57
56
|
},
|
|
58
57
|
},
|
|
59
58
|
};
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F2ZS1idXR0b24ubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9zYXZlLWJ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UVZLFFBQUEsYUFBYSxHQUFHO0lBQ3pCLEVBQUMsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSw4QkFBOEIsRUFBQztJQUNyRSxFQUFDLElBQUksRUFBRSw2Q0FBNEIsRUFBRSxHQUFHLEVBQUUsa0NBQWtDLEVBQUUsS0FBSyxFQUFFLDZDQUF1QixFQUFDO0lBQzdHLEVBQUMsSUFBSSxFQUFFLDRDQUEyQixFQUFFLEdBQUcsRUFBRSxpQ0FBaUMsRUFBRSxLQUFLLEVBQUMsNkNBQXVCLEVBQUM7Q0FDN0csQ0FBQztBQUNXLFFBQUEsa0JBQWtCLEdBQUc7SUFDOUIsQ0FBQyw0Q0FBMkIsQ0FBQyxFQUFFO1FBQzNCLENBQUMsNkNBQXVCLENBQUMsRUFBRTtZQUN2QixDQUFDLDZDQUE0QixDQUFDLEVBQUUsNkNBQXVCO1NBQzFEO0tBQ0o7Q0FDSixDQUFDIn0=
|
|
@@ -5,11 +5,6 @@ import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldC
|
|
|
5
5
|
export declare const SaveButtonComponentName: "SaveButtonComponent";
|
|
6
6
|
export type SaveButtonComponentNameType = typeof SaveButtonComponentName;
|
|
7
7
|
export interface SaveButtonFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
8
|
-
/**
|
|
9
|
-
* Server-owned validation intent to apply to this save.
|
|
10
|
-
* This is independent of targetStep and does not make client validation groups authoritative.
|
|
11
|
-
*/
|
|
12
|
-
operation?: string;
|
|
13
8
|
/**
|
|
14
9
|
* Try to transition to this workflow step as part of the save process on the server.
|
|
15
10
|
*/
|
|
@@ -5,10 +5,6 @@ import { FormComponentDefinition } from "../form-component.model";
|
|
|
5
5
|
import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
6
6
|
export declare class SaveStatusFieldComponentConfig extends FieldComponentConfig implements SaveStatusFieldComponentConfigOutline {
|
|
7
7
|
successDisplayDurationMs: number;
|
|
8
|
-
warningMessageCreate?: string;
|
|
9
|
-
warningMessageUpdate?: string;
|
|
10
|
-
unknownMessageCreate?: string;
|
|
11
|
-
unknownMessageUpdate?: string;
|
|
12
8
|
constructor();
|
|
13
9
|
}
|
|
14
10
|
export declare class SaveStatusFieldComponentDefinition extends FieldComponentDefinition implements SaveStatusFieldComponentDefinitionOutline {
|
|
@@ -8,10 +8,6 @@ const form_component_model_1 = require("../form-component.model");
|
|
|
8
8
|
/* Save Status Component */
|
|
9
9
|
class SaveStatusFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
10
10
|
successDisplayDurationMs = 3000;
|
|
11
|
-
warningMessageCreate;
|
|
12
|
-
warningMessageUpdate;
|
|
13
|
-
unknownMessageCreate;
|
|
14
|
-
unknownMessageUpdate;
|
|
15
11
|
constructor() {
|
|
16
12
|
super();
|
|
17
13
|
}
|
|
@@ -61,4 +57,4 @@ exports.SaveStatusDefaults = {
|
|
|
61
57
|
},
|
|
62
58
|
},
|
|
63
59
|
};
|
|
64
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F2ZS1zdGF0dXMubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9zYXZlLXN0YXR1cy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSxzREFBc0g7QUFDdEgsb0VBQXdGO0FBQ3hGLCtEQUsrQjtBQUMvQixrRUFBZ0U7QUFHaEUsMkJBQTJCO0FBRTNCLE1BQWEsOEJBQStCLFNBQVEsNENBQW9CO0lBQ3BFLHdCQUF3QixHQUFHLElBQUksQ0FBQztJQUVoQztRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztDQUNKO0FBTkQsd0VBTUM7QUFFRCxNQUFhLGtDQUFtQyxTQ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xFQUFFLDZDQUF1QjtTQUMxRDtLQUNKO0NBQ0osQ0FBQyJ9
|
|
@@ -10,26 +10,6 @@ export interface SaveStatusFieldComponentConfigFrame extends FieldComponentConfi
|
|
|
10
10
|
* Defaults to 3000 milliseconds.
|
|
11
11
|
*/
|
|
12
12
|
successDisplayDurationMs?: number;
|
|
13
|
-
/**
|
|
14
|
-
* Translation code for a persisted warning after creating a record.
|
|
15
|
-
* Falls back to the global save warning when not provided.
|
|
16
|
-
*/
|
|
17
|
-
warningMessageCreate?: string;
|
|
18
|
-
/**
|
|
19
|
-
* Translation code for a persisted warning after updating a record.
|
|
20
|
-
* Falls back to the global save warning when not provided.
|
|
21
|
-
*/
|
|
22
|
-
warningMessageUpdate?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Translation code when the result of creating a record cannot be confirmed.
|
|
25
|
-
* Falls back to the global unknown-save message when not provided.
|
|
26
|
-
*/
|
|
27
|
-
unknownMessageCreate?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Translation code when the result of updating a record cannot be confirmed.
|
|
30
|
-
* Falls back to the global unknown-save message when not provided.
|
|
31
|
-
*/
|
|
32
|
-
unknownMessageUpdate?: string;
|
|
33
13
|
}
|
|
34
14
|
export interface SaveStatusFieldComponentConfigOutline extends SaveStatusFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
35
15
|
}
|
|
@@ -110,18 +110,6 @@ export declare const AllDefs: readonly [...({
|
|
|
110
110
|
kind: "FormComponentDefinitionKind";
|
|
111
111
|
def: typeof import("./component/integration-status.model").IntegrationStatusFormComponentDefinition;
|
|
112
112
|
class: "IntegrationStatusComponent";
|
|
113
|
-
} | {
|
|
114
|
-
kind: "FieldComponentConfigKind";
|
|
115
|
-
def: typeof import("./component/workspace.model").WorkspaceFieldComponentConfig;
|
|
116
|
-
class?: undefined;
|
|
117
|
-
} | {
|
|
118
|
-
kind: "FieldComponentDefinitionKind";
|
|
119
|
-
def: typeof import("./component/workspace.model").WorkspaceFieldComponentDefinition;
|
|
120
|
-
class: "WorkspaceSelectorComponent";
|
|
121
|
-
} | {
|
|
122
|
-
kind: "FormComponentDefinitionKind";
|
|
123
|
-
def: typeof import("./component/workspace.model").WorkspaceFormComponentDefinition;
|
|
124
|
-
class: "WorkspaceSelectorComponent";
|
|
125
113
|
} | {
|
|
126
114
|
kind: "FieldComponentConfigKind";
|
|
127
115
|
def: typeof import("./component/text-area.model").TextAreaFieldComponentConfig;
|
|
@@ -154,18 +142,6 @@ export declare const AllDefs: readonly [...({
|
|
|
154
142
|
kind: "FormComponentDefinitionKind";
|
|
155
143
|
def: typeof import("./component/content.model").ContentFormComponentDefinition;
|
|
156
144
|
class: "ContentComponent";
|
|
157
|
-
} | {
|
|
158
|
-
kind: "FieldComponentConfigKind";
|
|
159
|
-
def: typeof import("./component/related-object-data.model").RelatedObjectDataFieldComponentConfig;
|
|
160
|
-
class?: undefined;
|
|
161
|
-
} | {
|
|
162
|
-
kind: "FieldComponentDefinitionKind";
|
|
163
|
-
def: typeof import("./component/related-object-data.model").RelatedObjectDataFieldComponentDefinition;
|
|
164
|
-
class: "RelatedObjectDataComponent";
|
|
165
|
-
} | {
|
|
166
|
-
kind: "FormComponentDefinitionKind";
|
|
167
|
-
def: typeof import("./component/related-object-data.model").RelatedObjectDataFormComponentDefinition;
|
|
168
|
-
class: "RelatedObjectDataComponent";
|
|
169
145
|
} | {
|
|
170
146
|
kind: "FieldComponentConfigKind";
|
|
171
147
|
def: typeof import("./component/simple-input.model").SimpleInputFieldComponentConfig;
|
|
@@ -642,7 +618,7 @@ export declare const AllDefs: readonly [...({
|
|
|
642
618
|
export type KindNameDefaultsMapType = Map<string, Map<string, Map<string, string>>>;
|
|
643
619
|
export declare const KindNameDefaultsMap: KindNameDefaultsMapType;
|
|
644
620
|
export type StaticClassMapType<K extends string, T> = Record<K, T>;
|
|
645
|
-
declare const ComponentClassNames: ("RepeatableComponent" | "GroupComponent" | "TabContentComponent" | "SaveButtonComponent" | "SaveStatusComponent" | "IntegrationStatusComponent" | "
|
|
621
|
+
declare const ComponentClassNames: ("RepeatableComponent" | "GroupComponent" | "TabContentComponent" | "SaveButtonComponent" | "SaveStatusComponent" | "IntegrationStatusComponent" | "CancelButtonComponent" | "DeleteButtonComponent" | "TabNavButtonComponent" | "TextAreaComponent" | "ContentComponent" | "SimpleInputComponent" | "ValidationSummaryComponent" | "SuggestedValidationSummaryComponent" | "TabComponent" | "AccordionComponent" | "AccordionPanelComponent" | "CheckboxInputComponent" | "DropdownInputComponent" | "RadioInputComponent" | "DateInputComponent" | "QuestionTreeComponent" | "CheckboxTreeComponent" | "RecordSelectorComponent" | "TypeaheadInputComponent" | "RichTextEditorComponent" | "MapComponent" | "FileUploadComponent" | "PDFListComponent" | "RecordMetadataRetrieverComponent" | "DataLocationComponent" | "PublishDataLocationRefreshComponent" | "PublishDataLocationSelectorComponent")[];
|
|
646
622
|
export type ComponentClassNamesType = (typeof ComponentClassNames)[number];
|
|
647
623
|
export type StaticComponentClassMapGenType<T> = StaticClassMapType<ComponentClassNamesType, T>;
|
|
648
624
|
declare const ModelClassNames: ("RepeatableModel" | "GroupModel" | "TextAreaModel" | "SimpleInputModel" | "CheckboxInputModel" | "DropdownInputModel" | "RadioInputModel" | "DateInputModel" | "QuestionTreeModel" | "CheckboxTreeModel" | "RecordSelectorModel" | "TypeaheadInputModel" | "RichTextEditorModel" | "MapModel" | "FileUploadModel" | "PDFListModel" | "DataLocationModel" | "PublishDataLocationSelectorModel")[];
|
|
@@ -651,8 +627,8 @@ export type StaticModelClassMapGenType<T> = StaticClassMapType<ModelClassNamesTy
|
|
|
651
627
|
declare const LayoutClassNames: ("DefaultLayout" | "ActionRowLayout" | "InlineLayout" | "RepeatableElementLayout" | "TabContentLayout" | "TabLayout" | "AccordionLayout" | "AccordionPanelLayout")[];
|
|
652
628
|
export type LayoutClassNamesType = (typeof LayoutClassNames)[number];
|
|
653
629
|
export type StaticLayoutClassMapGenType<T> = StaticClassMapType<LayoutClassNamesType, T>;
|
|
654
|
-
declare const VisitorComponentClassNames: ("RepeatableComponent" | "GroupComponent" | "TabContentComponent" | "SaveButtonComponent" | "SaveStatusComponent" | "IntegrationStatusComponent" | "
|
|
655
|
-
declare const VisitorComponentDefItems: (typeof import("./component/repeatable.model").RepeatableFieldComponentDefinition | typeof import("./component/group.model").GroupFieldComponentDefinition | typeof import("./component/save-button.model").SaveButtonFieldComponentDefinition | typeof import("./component/save-status.model").SaveStatusFieldComponentDefinition | typeof import("./component/integration-status.model").IntegrationStatusFieldComponentDefinition | typeof import("./component/
|
|
630
|
+
declare const VisitorComponentClassNames: ("RepeatableComponent" | "GroupComponent" | "TabContentComponent" | "SaveButtonComponent" | "SaveStatusComponent" | "IntegrationStatusComponent" | "CancelButtonComponent" | "DeleteButtonComponent" | "TabNavButtonComponent" | "TextAreaComponent" | "ContentComponent" | "SimpleInputComponent" | "ValidationSummaryComponent" | "SuggestedValidationSummaryComponent" | "TabComponent" | "AccordionComponent" | "AccordionPanelComponent" | "CheckboxInputComponent" | "DropdownInputComponent" | "RadioInputComponent" | "DateInputComponent" | "ReusableComponent" | "QuestionTreeComponent" | "CheckboxTreeComponent" | "RecordSelectorComponent" | "TypeaheadInputComponent" | "RichTextEditorComponent" | "MapComponent" | "FileUploadComponent" | "PDFListComponent" | "RecordMetadataRetrieverComponent" | "DataLocationComponent" | "PublishDataLocationRefreshComponent" | "PublishDataLocationSelectorComponent")[];
|
|
631
|
+
declare const VisitorComponentDefItems: (typeof import("./component/repeatable.model").RepeatableFieldComponentDefinition | typeof import("./component/group.model").GroupFieldComponentDefinition | typeof import("./component/save-button.model").SaveButtonFieldComponentDefinition | typeof import("./component/save-status.model").SaveStatusFieldComponentDefinition | typeof import("./component/integration-status.model").IntegrationStatusFieldComponentDefinition | typeof import("./component/text-area.model").TextAreaFieldComponentDefinition | typeof import("./component/content.model").ContentFieldComponentDefinition | typeof import("./component/simple-input.model").SimpleInputFieldComponentDefinition | typeof import("./component/validation-summary.model").ValidationSummaryFieldComponentDefinition | typeof import("./component/suggested-validation-summary.model").SuggestedValidationSummaryFieldComponentDefinition | typeof import("./component/tab-content.model").TabContentFieldComponentDefinition | typeof import("./component/tab.model").TabFieldComponentDefinition | typeof import("./component/accordion.model").AccordionFieldComponentDefinition | typeof import("./component/accordion.model").AccordionPanelFieldComponentDefinition | typeof import("./component/checkbox-input.model").CheckboxInputFieldComponentDefinition | typeof import("./component/dropdown-input.model").DropdownInputFieldComponentDefinition | typeof import("./component/radio-input.model").RadioInputFieldComponentDefinition | typeof import("./component/date-input.model").DateInputFieldComponentDefinition | typeof import("./component/reusable.model").ReusableFieldComponentDefinition | typeof import("./component/question-tree.model").QuestionTreeFieldComponentDefinition | typeof import("./component/checkbox-tree.model").CheckboxTreeFieldComponentDefinition | typeof import("./component/record-selector.model").RecordSelectorFieldComponentDefinition | typeof import("./component/typeahead-input.model").TypeaheadInputFieldComponentDefinition | typeof import("./component/rich-text-editor.model").RichTextEditorFieldComponentDefinition | typeof import("./component/map.model").MapFieldComponentDefinition | typeof import("./component/file-upload.model").FileUploadFieldComponentDefinition | typeof import("./component/pdf-list.model").PDFListFieldComponentDefinition | typeof import("./component/record-metadata-retriever.model").RecordMetadataRetrieverFieldComponentDefinition | typeof import("./component/data-location.model").DataLocationFieldComponentDefinition | typeof import("./component/publish-data-location-refresh.model").PublishDataLocationRefreshFieldComponentDefinition | typeof import("./component/publish-data-location-selector.model").PublishDataLocationSelectorFieldComponentDefinition | typeof import("./component/cancel-button.model").CancelButtonFieldComponentDefinition | typeof import("./component/tab-nav-button.model").TabNavButtonFieldComponentDefinition | typeof import("./component/delete-button.model").DeleteButtonFieldComponentDefinition)[];
|
|
656
632
|
type VisitorComponentDefItemsType = (typeof VisitorComponentDefItems)[number];
|
|
657
633
|
export type VisitorComponentClassNamesType = (typeof VisitorComponentClassNames)[number];
|
|
658
634
|
export type VisitorComponentClassDefMapType = Map<string, VisitorComponentDefItemsType>;
|
|
@@ -662,7 +638,7 @@ export type VisitorModelClassDefMapType = Map<string, VisitorModelDefItemsType>;
|
|
|
662
638
|
declare const VisitorLayoutDefItems: (typeof import("./component/default-layout.model").DefaultFieldLayoutDefinition | typeof import("./component/action-row-layout.model").ActionRowFieldLayoutDefinition | typeof import("./component/inline-layout.model").InlineFieldLayoutDefinition | typeof import("./component/repeatable.model").RepeatableElementFieldLayoutDefinition | typeof import("./component/tab-content.model").TabContentFieldLayoutDefinition | typeof import("./component/tab.model").TabFieldLayoutDefinition | typeof import("./component/accordion.model").AccordionFieldLayoutDefinition | typeof import("./component/accordion.model").AccordionPanelFieldLayoutDefinition)[];
|
|
663
639
|
type VisitorLayoutDefItemsType = (typeof VisitorLayoutDefItems)[number];
|
|
664
640
|
export type VisitorLayoutClassDefMapType = Map<string, VisitorLayoutDefItemsType>;
|
|
665
|
-
declare const VisitorFormComponentDefItems: (typeof import("./component/repeatable.model").RepeatableFormComponentDefinition | typeof import("./component/group.model").GroupFormComponentDefinition | typeof import("./component/save-button.model").SaveButtonFormComponentDefinition | typeof import("./component/save-status.model").SaveStatusFormComponentDefinition | typeof import("./component/integration-status.model").IntegrationStatusFormComponentDefinition | typeof import("./component/
|
|
641
|
+
declare const VisitorFormComponentDefItems: (typeof import("./component/repeatable.model").RepeatableFormComponentDefinition | typeof import("./component/group.model").GroupFormComponentDefinition | typeof import("./component/save-button.model").SaveButtonFormComponentDefinition | typeof import("./component/save-status.model").SaveStatusFormComponentDefinition | typeof import("./component/integration-status.model").IntegrationStatusFormComponentDefinition | typeof import("./component/text-area.model").TextAreaFormComponentDefinition | typeof import("./component/content.model").ContentFormComponentDefinition | typeof import("./component/simple-input.model").SimpleInputFormComponentDefinition | typeof import("./component/validation-summary.model").ValidationSummaryFormComponentDefinition | typeof import("./component/suggested-validation-summary.model").SuggestedValidationSummaryFormComponentDefinition | typeof import("./component/tab-content.model").TabContentFormComponentDefinition | typeof import("./component/tab.model").TabFormComponentDefinition | typeof import("./component/accordion.model").AccordionFormComponentDefinition | typeof import("./component/accordion.model").AccordionPanelFormComponentDefinition | typeof import("./component/checkbox-input.model").CheckboxInputFormComponentDefinition | typeof import("./component/dropdown-input.model").DropdownInputFormComponentDefinition | typeof import("./component/radio-input.model").RadioInputFormComponentDefinition | typeof import("./component/date-input.model").DateInputFormComponentDefinition | typeof import("./component/reusable.model").ReusableFormComponentDefinition | typeof import("./component/question-tree.model").QuestionTreeFormComponentDefinition | typeof import("./component/checkbox-tree.model").CheckboxTreeFormComponentDefinition | typeof import("./component/record-selector.model").RecordSelectorFormComponentDefinition | typeof import("./component/typeahead-input.model").TypeaheadInputFormComponentDefinition | typeof import("./component/rich-text-editor.model").RichTextEditorFormComponentDefinition | typeof import("./component/map.model").MapFormComponentDefinition | typeof import("./component/file-upload.model").FileUploadFormComponentDefinition | typeof import("./component/pdf-list.model").PDFListFormComponentDefinition | typeof import("./component/record-metadata-retriever.model").RecordMetadataRetrieverFormComponentDefinition | typeof import("./component/data-location.model").DataLocationFormComponentDefinition | typeof import("./component/publish-data-location-refresh.model").PublishDataLocationRefreshFormComponentDefinition | typeof import("./component/publish-data-location-selector.model").PublishDataLocationSelectorFormComponentDefinition | typeof import("./component/cancel-button.model").CancelButtonFormComponentDefinition | typeof import("./component/tab-nav-button.model").TabNavButtonFormComponentDefinition | typeof import("./component/delete-button.model").DeleteButtonFormComponentDefinition)[];
|
|
666
642
|
type VisitorFormComponentDefItemsType = (typeof VisitorFormComponentDefItems)[number];
|
|
667
643
|
export type VisitorFormComponentClassDefMapType = Map<string, VisitorFormComponentDefItemsType>;
|
|
668
644
|
export declare const FieldComponentDefinitionMap: VisitorComponentClassDefMapType;
|
|
@@ -10,10 +10,8 @@ const group_model_1 = require("./component/group.model");
|
|
|
10
10
|
const save_button_model_1 = require("./component/save-button.model");
|
|
11
11
|
const save_status_model_1 = require("./component/save-status.model");
|
|
12
12
|
const integration_status_model_1 = require("./component/integration-status.model");
|
|
13
|
-
const workspace_model_1 = require("./component/workspace.model");
|
|
14
13
|
const text_area_model_1 = require("./component/text-area.model");
|
|
15
14
|
const content_model_1 = require("./component/content.model");
|
|
16
|
-
const related_object_data_model_1 = require("./component/related-object-data.model");
|
|
17
15
|
const simple_input_model_1 = require("./component/simple-input.model");
|
|
18
16
|
const validation_summary_model_1 = require("./component/validation-summary.model");
|
|
19
17
|
const suggested_validation_summary_model_1 = require("./component/suggested-validation-summary.model");
|
|
@@ -54,13 +52,11 @@ exports.AllDefs = [
|
|
|
54
52
|
...save_button_model_1.SaveButtonMap,
|
|
55
53
|
...save_status_model_1.SaveStatusMap,
|
|
56
54
|
...integration_status_model_1.IntegrationStatusMap,
|
|
57
|
-
...workspace_model_1.WorkspaceMap,
|
|
58
55
|
...cancel_button_model_1.CancelButtonMap,
|
|
59
56
|
...delete_button_model_1.DeleteButtonMap,
|
|
60
57
|
...tab_nav_button_model_1.TabNavButtonMap,
|
|
61
58
|
...text_area_model_1.TextAreaMap,
|
|
62
59
|
...content_model_1.ContentMap,
|
|
63
|
-
...related_object_data_model_1.RelatedObjectDataMap,
|
|
64
60
|
...simple_input_model_1.SimpleInputMap,
|
|
65
61
|
...validation_summary_model_1.ValidationSummaryMap,
|
|
66
62
|
...suggested_validation_summary_model_1.SuggestedValidationSummaryMap,
|
|
@@ -98,13 +94,11 @@ const RawDefaults = [
|
|
|
98
94
|
save_button_model_1.SaveButtonDefaults,
|
|
99
95
|
save_status_model_1.SaveStatusDefaults,
|
|
100
96
|
integration_status_model_1.IntegrationStatusDefaults,
|
|
101
|
-
workspace_model_1.WorkspaceDefaults,
|
|
102
97
|
cancel_button_model_1.CancelButtonDefaults,
|
|
103
98
|
delete_button_model_1.DeleteButtonDefaults,
|
|
104
99
|
tab_nav_button_model_1.TabNavButtonDefaults,
|
|
105
100
|
text_area_model_1.TextAreaDefaults,
|
|
106
101
|
content_model_1.ContentDefaults,
|
|
107
|
-
related_object_data_model_1.RelatedObjectDataDefaults,
|
|
108
102
|
simple_input_model_1.SimpleInputDefaults,
|
|
109
103
|
validation_summary_model_1.ValidationSummaryDefaults,
|
|
110
104
|
suggested_validation_summary_model_1.SuggestedValidationSummaryDefaults,
|
|
@@ -184,4 +178,4 @@ exports.FieldComponentDefinitionMap = toClassDefMap(VisitorComponentDefs);
|
|
|
184
178
|
exports.FieldModelDefinitionMap = toClassDefMap(ModelDefs);
|
|
185
179
|
exports.FieldLayoutDefinitionMap = toClassDefMap(LayoutDefs);
|
|
186
180
|
exports.FormComponentDefinitionMap = toClassDefMap(VisitorFormComponentDefs);
|
|
187
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
181
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGljdGlvbmFyeS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25maWcvZGljdGlvbmFyeS5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSxxREFLMEI7QUFFMUIsMkVBQTJGO0FBQzNGLGlGQUF5RTtBQUN6RSx5RUFBa0U7QUFDbEUsbUVBQWlGO0FBQ2pGLHlEQUFrRTtBQUNsRSxxRUFBa0Y7QUFDbEYscUVBQWtGO0FBQ2xGLG1GQUF1RztBQUN2RyxpRUFBNEU7QUFDNUUsNkRBQXdFO0FBQ3hFLHVFQUFxRjtBQUNyRixtRkFBdUc7QUFDdkcsdUdBR3dEO0FBQ3hELHFFQUFrRjtBQUNsRixxREFBNEQ7QUFDNUQsaUVBQThFO0FBQzlFLDJFQUEyRjtBQUMzRiwyRUFBMkY7QUFDM0YscUVBQWtGO0FBQ2xGLG1FQUErRTtBQUMvRSwrREFBMkU7QUFDM0UsbUVBQXFFO0FBQ3JFLHlFQUF3RjtBQUN4Rix5RUFBd0Y7QUFDeEYsNkVBQThGO0FBQzlGLDZFQUE4RjtBQUM5RiwrRUFBK0Y7QUFDL0YscURBQTREO0FBQzVELHFFQUFrRjtBQUNsRiwrREFBeUU7QUFDekUsaUdBR3FEO0FBQ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UFDO0FBQzdGLE1BQU0sNEJBQTRCLEdBQUcsd0JBQXdCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO0FBSWpFLFFBQUEsMkJBQTJCLEdBQ3RDLGFBQWEsQ0FBK0Isb0JBQW9CLENBQUMsQ0FBQztBQUN2RCxRQUFBLHVCQUF1QixHQUFnQyxhQUFhLENBQTJCLFNBQVMsQ0FBQyxDQUFDO0FBQzFHLFFBQUEsd0JBQXdCLEdBQ25DLGFBQWEsQ0FBNEIsVUFBVSxDQUFDLENBQUM7QUFDMUMsUUFBQSwwQkFBMEIsR0FDckMsYUFBYSxDQUFtQyx3QkFBd0IsQ0FBQyxDQUFDIn0=
|
|
@@ -3,10 +3,8 @@ import { GroupTypes } from './component/group.outline';
|
|
|
3
3
|
import { SaveButtonTypes } from './component/save-button.outline';
|
|
4
4
|
import { SaveStatusTypes } from './component/save-status.outline';
|
|
5
5
|
import { IntegrationStatusTypes } from './component/integration-status.outline';
|
|
6
|
-
import { WorkspaceTypes } from './component/workspace.outline';
|
|
7
6
|
import { TextAreaTypes } from './component/text-area.outline';
|
|
8
7
|
import { ContentTypes } from './component/content.outline';
|
|
9
|
-
import { RelatedObjectDataTypes } from './component/related-object-data.outline';
|
|
10
8
|
import { SimpleInputTypes } from './component/simple-input.outline';
|
|
11
9
|
import { ValidationSummaryTypes } from './component/validation-summary.outline';
|
|
12
10
|
import { SuggestedValidationSummaryTypes } from './component/suggested-validation-summary.outline';
|
|
@@ -37,13 +35,13 @@ import { PublishDataLocationSelectorTypes } from './component/publish-data-locat
|
|
|
37
35
|
import { CancelButtonTypes } from './component/cancel-button.outline';
|
|
38
36
|
import { TabNavButtonTypes } from './component/tab-nav-button.outline';
|
|
39
37
|
import { DeleteButtonTypes } from './component/delete-button.outline';
|
|
40
|
-
import { FieldComponentDefinitionFrame } from
|
|
41
|
-
import { FieldLayoutDefinitionFrame } from
|
|
38
|
+
import { FieldComponentDefinitionFrame } from "./field-component.outline";
|
|
39
|
+
import { FieldLayoutDefinitionFrame } from "./field-layout.outline";
|
|
42
40
|
/**
|
|
43
41
|
* The static type union of all available interfaces that provides typing for the object literal and schema.
|
|
44
42
|
* Other convenience mappings are built from this.
|
|
45
43
|
*/
|
|
46
|
-
export type AllTypes = DefaultLayoutTypes | InlineLayoutTypes | ActionRowLayoutTypes | RepeatableTypes | GroupTypes | SaveButtonTypes | SaveStatusTypes | IntegrationStatusTypes |
|
|
44
|
+
export type AllTypes = DefaultLayoutTypes | InlineLayoutTypes | ActionRowLayoutTypes | RepeatableTypes | GroupTypes | SaveButtonTypes | SaveStatusTypes | IntegrationStatusTypes | CancelButtonTypes | DeleteButtonTypes | TabNavButtonTypes | TextAreaTypes | ContentTypes | SimpleInputTypes | ValidationSummaryTypes | SuggestedValidationSummaryTypes | TabContentTypes | TabTypes | AccordionTypes | CheckboxInputTypes | DropdownInputTypes | RadioInputTypes | DateInputTypes | ReusableTypes | QuestionTreeTypes | CheckboxTreeTypes | RecordSelectorTypes | TypeaheadInputTypes | RichTextEditorTypes | MapTypes | FileUploadTypes | PDFListTypes | RecordMetadataRetrieverTypes | DataLocationTypes | PublishDataLocationRefreshTypes | PublishDataLocationSelectorTypes;
|
|
47
45
|
/**
|
|
48
46
|
* The form component definition frames available for use in any list of form components.
|
|
49
47
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ExpressionsConditionKindType
|
|
1
|
+
import { ExpressionsConditionKindType } from './form-component.outline';
|
|
2
2
|
/**
|
|
3
3
|
* Form behaviours are the v1 form-level automation primitive described in
|
|
4
4
|
* `support/specs/form-behaviour/implementation_plan.md`.
|
|
@@ -9,18 +9,14 @@ import { ExpressionsConditionKindType, FormExpressionsTargetType } from './form-
|
|
|
9
9
|
* - keep the configuration serialisable so it can pass through the existing
|
|
10
10
|
* Construct -> Template -> Client visitor pipeline
|
|
11
11
|
*
|
|
12
|
-
* Scope:
|
|
12
|
+
* Scope in v1:
|
|
13
13
|
* - built-in processors only: `jsonataTransform`, `fetchMetadata`
|
|
14
|
-
* - built-in actions only: `setValue`, `
|
|
15
|
-
* `setUIProperty`, `setUIProperties`
|
|
14
|
+
* - built-in actions only: `setValue`, `emitEvent`
|
|
16
15
|
* - event emission is intentionally limited to `field.value.changed`
|
|
17
|
-
* - UI-property actions reuse the expressions target vocabulary
|
|
18
|
-
* (`model.*`, `layout.*`, `component.*`, `field.visible`, `field.disabled`,
|
|
19
|
-
* `form.enabledValidationGroups`)
|
|
20
16
|
*
|
|
21
|
-
* Out of scope:
|
|
17
|
+
* Out of scope in v1:
|
|
22
18
|
* - hook-registered/custom processors and actions
|
|
23
|
-
* - UI
|
|
19
|
+
* - UI-specific actions such as notifications or highlighting
|
|
24
20
|
* - processor-level debounce controls
|
|
25
21
|
*
|
|
26
22
|
* These types are intentionally lightweight outlines rather than runtime
|
|
@@ -33,11 +29,7 @@ export declare const FormBehaviourProcessorType: {
|
|
|
33
29
|
export type FormBehaviourProcessorTypeValue = (typeof FormBehaviourProcessorType)[keyof typeof FormBehaviourProcessorType];
|
|
34
30
|
export declare const FormBehaviourActionType: {
|
|
35
31
|
readonly SetValue: "setValue";
|
|
36
|
-
readonly SetValues: "setValues";
|
|
37
32
|
readonly EmitEvent: "emitEvent";
|
|
38
|
-
readonly RunTemplate: "runTemplate";
|
|
39
|
-
readonly SetUIProperty: "setUIProperty";
|
|
40
|
-
readonly SetUIProperties: "setUIProperties";
|
|
41
33
|
};
|
|
42
34
|
export type FormBehaviourActionTypeValue = (typeof FormBehaviourActionType)[keyof typeof FormBehaviourActionType];
|
|
43
35
|
export declare const FieldPathKind: {
|
|
@@ -96,122 +88,17 @@ export interface FormBehaviourEmitEventActionConfig {
|
|
|
96
88
|
valueTemplate?: string;
|
|
97
89
|
hasValueTemplate?: boolean;
|
|
98
90
|
}
|
|
99
|
-
|
|
100
|
-
* `setValues` applies several `setValue`-style assignments from one action.
|
|
101
|
-
*
|
|
102
|
-
* Each entry mirrors `FormBehaviourSetValueActionConfig` exactly, including
|
|
103
|
-
* `fieldPathKind` resolution modes and per-entry `valueTemplate`. Entries that
|
|
104
|
-
* fail to resolve are warn-and-skipped individually; the remaining entries
|
|
105
|
-
* still run. Entries apply in order, but their templates share the `formData`
|
|
106
|
-
* snapshot taken before this action. Use separate actions when a later
|
|
107
|
-
* template must read a value written by an earlier entry.
|
|
108
|
-
*/
|
|
109
|
-
export interface FormBehaviourSetValuesActionConfig {
|
|
110
|
-
values: FormBehaviourSetValueActionConfig[];
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* `runTemplate` evaluates a JSONata template against the full behaviour
|
|
114
|
-
* pipeline context (`value`, `event`, `formData`, `requestParams`,
|
|
115
|
-
* `runtimeContext`, `querySource`, plus any context keys stored by earlier
|
|
116
|
-
* `runTemplate` actions in the same list execution).
|
|
117
|
-
*
|
|
118
|
-
* Result handling (both optional, may be combined):
|
|
119
|
-
* - `resultKey`: store the result in the pipeline context under this key so
|
|
120
|
-
* later actions and their value templates can read it. The key must match
|
|
121
|
-
* `[A-Za-z_][A-Za-z0-9_]*` and must not be one of the reserved context keys
|
|
122
|
-
* (`value`, `event`, `formData`, `requestParams`, `runtimeContext`,
|
|
123
|
-
* `querySource`); omitting `resultKey` is the explicit way to replace the
|
|
124
|
-
* pipeline `value`.
|
|
125
|
-
* - `applyResults`: treat the result as
|
|
126
|
-
* `FormBehaviourFieldAssignmentInstruction[]` (a single object is wrapped)
|
|
127
|
-
* and apply each instruction. Invalid instructions are warn-and-skipped.
|
|
128
|
-
*
|
|
129
|
-
* When neither is configured the result replaces the pipeline `value`. When
|
|
130
|
-
* `applyResults` is true and no `resultKey` is set, the pipeline `value` is
|
|
131
|
-
* left untouched because the result is consumed by instruction application.
|
|
132
|
-
*/
|
|
133
|
-
export interface FormBehaviourRunTemplateActionConfig {
|
|
134
|
-
/** Raw JSONata source; compiled server-side and stripped by the client visitor. */
|
|
135
|
-
template?: string;
|
|
136
|
-
/** Client-side marker set after the raw template has been stripped. */
|
|
137
|
-
hasTemplate?: boolean;
|
|
138
|
-
resultKey?: string;
|
|
139
|
-
applyResults?: boolean;
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* One assignment produced by a `runTemplate` `applyResults` evaluation.
|
|
143
|
-
*
|
|
144
|
-
* `fieldPath` is a literal `angularComponentsJsonPointer` only — the JSONata
|
|
145
|
-
* template itself is the place to compute pointers. `target` defaults to
|
|
146
|
-
* `model.value`; `fieldPath` may be omitted only for the
|
|
147
|
-
* `form.enabledValidationGroups` target, which is form-scoped.
|
|
148
|
-
*/
|
|
149
|
-
export interface FormBehaviourFieldAssignmentInstruction {
|
|
150
|
-
fieldPath?: string;
|
|
151
|
-
target?: FormExpressionsTargetType;
|
|
152
|
-
value: unknown;
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Shared shape for `setUIProperty` config and `setUIProperties` entries.
|
|
156
|
-
*
|
|
157
|
-
* Value resolution precedence: `valueTemplate` (via `hasValueTemplate`) wins
|
|
158
|
-
* over a literal `value` (when the key is present), which wins over the
|
|
159
|
-
* pipeline `value`.
|
|
160
|
-
*
|
|
161
|
-
* In `setUIProperties` entries the fieldPath pair is all-or-nothing: an entry
|
|
162
|
-
* that provides `fieldPath` (or `hasFieldPathTemplate`) supplies its own
|
|
163
|
-
* `fieldPathKind` too; otherwise both fall back to the action-level defaults.
|
|
164
|
-
*/
|
|
165
|
-
export interface FormBehaviourSetUIPropertyEntry {
|
|
166
|
-
/**
|
|
167
|
-
* Target field. Required except when `target` is
|
|
168
|
-
* `form.enabledValidationGroups`.
|
|
169
|
-
*/
|
|
170
|
-
fieldPath?: string;
|
|
171
|
-
fieldPathKind?: FieldPathKindType;
|
|
172
|
-
hasFieldPathTemplate?: boolean;
|
|
173
|
-
target: FormExpressionsTargetType;
|
|
174
|
-
/** Literal value used when no `valueTemplate` is configured. */
|
|
175
|
-
value?: unknown;
|
|
176
|
-
valueTemplate?: string;
|
|
177
|
-
hasValueTemplate?: boolean;
|
|
178
|
-
}
|
|
179
|
-
export interface FormBehaviourSetUIPropertyActionConfig extends FormBehaviourSetUIPropertyEntry {
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* `setUIProperties` applies several UI-property assignments from one action.
|
|
183
|
-
* The action-level `fieldPath`/`fieldPathKind` act as defaults for entries
|
|
184
|
-
* that do not provide their own.
|
|
185
|
-
*/
|
|
186
|
-
export interface FormBehaviourSetUIPropertiesActionConfig {
|
|
187
|
-
fieldPath?: string;
|
|
188
|
-
fieldPathKind?: FieldPathKindType;
|
|
189
|
-
hasFieldPathTemplate?: boolean;
|
|
190
|
-
properties: FormBehaviourSetUIPropertyEntry[];
|
|
191
|
-
}
|
|
192
|
-
export interface FormBehaviourActionConfigFrame<TConfig = FormBehaviourSetValueActionConfig | FormBehaviourSetValuesActionConfig | FormBehaviourEmitEventActionConfig | FormBehaviourRunTemplateActionConfig | FormBehaviourSetUIPropertyActionConfig | FormBehaviourSetUIPropertiesActionConfig> {
|
|
91
|
+
export interface FormBehaviourActionConfigFrame<TConfig = FormBehaviourSetValueActionConfig | FormBehaviourEmitEventActionConfig> {
|
|
193
92
|
type: FormBehaviourActionTypeValue;
|
|
194
93
|
config: TConfig;
|
|
195
94
|
}
|
|
196
95
|
export type FormBehaviourSetValueAction = FormBehaviourActionConfigFrame<FormBehaviourSetValueActionConfig> & {
|
|
197
96
|
type: typeof FormBehaviourActionType.SetValue;
|
|
198
97
|
};
|
|
199
|
-
export type FormBehaviourSetValuesAction = FormBehaviourActionConfigFrame<FormBehaviourSetValuesActionConfig> & {
|
|
200
|
-
type: typeof FormBehaviourActionType.SetValues;
|
|
201
|
-
};
|
|
202
98
|
export type FormBehaviourEmitEventAction = FormBehaviourActionConfigFrame<FormBehaviourEmitEventActionConfig> & {
|
|
203
99
|
type: typeof FormBehaviourActionType.EmitEvent;
|
|
204
100
|
};
|
|
205
|
-
export type
|
|
206
|
-
type: typeof FormBehaviourActionType.RunTemplate;
|
|
207
|
-
};
|
|
208
|
-
export type FormBehaviourSetUIPropertyAction = FormBehaviourActionConfigFrame<FormBehaviourSetUIPropertyActionConfig> & {
|
|
209
|
-
type: typeof FormBehaviourActionType.SetUIProperty;
|
|
210
|
-
};
|
|
211
|
-
export type FormBehaviourSetUIPropertiesAction = FormBehaviourActionConfigFrame<FormBehaviourSetUIPropertiesActionConfig> & {
|
|
212
|
-
type: typeof FormBehaviourActionType.SetUIProperties;
|
|
213
|
-
};
|
|
214
|
-
export type FormBehaviourActionConfig = FormBehaviourSetValueAction | FormBehaviourSetValuesAction | FormBehaviourEmitEventAction | FormBehaviourRunTemplateAction | FormBehaviourSetUIPropertyAction | FormBehaviourSetUIPropertiesAction;
|
|
101
|
+
export type FormBehaviourActionConfig = FormBehaviourSetValueAction | FormBehaviourEmitEventAction;
|
|
215
102
|
/**
|
|
216
103
|
* Top-level behaviour definition stored on `FormConfigFrame.behaviours`.
|
|
217
104
|
*
|
|
@@ -11,18 +11,14 @@ exports.FieldPathKind = exports.FormBehaviourActionType = exports.FormBehaviourP
|
|
|
11
11
|
* - keep the configuration serialisable so it can pass through the existing
|
|
12
12
|
* Construct -> Template -> Client visitor pipeline
|
|
13
13
|
*
|
|
14
|
-
* Scope:
|
|
14
|
+
* Scope in v1:
|
|
15
15
|
* - built-in processors only: `jsonataTransform`, `fetchMetadata`
|
|
16
|
-
* - built-in actions only: `setValue`, `
|
|
17
|
-
* `setUIProperty`, `setUIProperties`
|
|
16
|
+
* - built-in actions only: `setValue`, `emitEvent`
|
|
18
17
|
* - event emission is intentionally limited to `field.value.changed`
|
|
19
|
-
* - UI-property actions reuse the expressions target vocabulary
|
|
20
|
-
* (`model.*`, `layout.*`, `component.*`, `field.visible`, `field.disabled`,
|
|
21
|
-
* `form.enabledValidationGroups`)
|
|
22
18
|
*
|
|
23
|
-
* Out of scope:
|
|
19
|
+
* Out of scope in v1:
|
|
24
20
|
* - hook-registered/custom processors and actions
|
|
25
|
-
* - UI
|
|
21
|
+
* - UI-specific actions such as notifications or highlighting
|
|
26
22
|
* - processor-level debounce controls
|
|
27
23
|
*
|
|
28
24
|
* These types are intentionally lightweight outlines rather than runtime
|
|
@@ -34,15 +30,11 @@ exports.FormBehaviourProcessorType = {
|
|
|
34
30
|
};
|
|
35
31
|
exports.FormBehaviourActionType = {
|
|
36
32
|
SetValue: 'setValue',
|
|
37
|
-
SetValues: 'setValues',
|
|
38
33
|
EmitEvent: 'emitEvent',
|
|
39
|
-
RunTemplate: 'runTemplate',
|
|
40
|
-
SetUIProperty: 'setUIProperty',
|
|
41
|
-
SetUIProperties: 'setUIProperties',
|
|
42
34
|
};
|
|
43
35
|
exports.FieldPathKind = {
|
|
44
36
|
ComponentJsonPointer: 'componentJsonPointer',
|
|
45
37
|
JSONata: 'jsonata',
|
|
46
38
|
Logical: 'logical',
|
|
47
39
|
};
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1iZWhhdmlvdXIub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb25maWcvZm9ybS1iZWhhdmlvdXIub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztHQXNCRztBQUNVLFFBQUEsMEJBQTBCLEdBQUc7SUFDeEMsZ0JBQWdCLEVBQUUsa0JBQWtCO0lBQ3BDLGFBQWEsRUFBRSxlQUFlO0NBQ3RCLENBQUM7QUFLRSxRQUFBLHVCQUF1QixHQUFHO0lBQ3JDLFFBQVEsRUFBRSxVQUFVO0lBQ3BCLFNBQVMsRUFBRSxXQUFXO0NBQ2QsQ0FBQztBQUlFLFFBQUEsYUFBYSxHQUFHO0lBQzNCLG9CQUFvQixFQUFFLHNCQUFzQjtJQUM1QyxPQUFPLEVBQUUsU0FBUztJQUNsQixPQUFPLEVBQUUsU0FBUztDQUNWLENBQUMifQ==
|
|
@@ -21,7 +21,6 @@ export declare class FormConstraintConfig implements FormConstraintConfigOutline
|
|
|
21
21
|
*/
|
|
22
22
|
export declare class FormConstraintAuthorizationConfig implements FormConstraintAuthorizationConfigOutline {
|
|
23
23
|
allowRoles?: string[];
|
|
24
|
-
denyRoles?: string[];
|
|
25
24
|
}
|
|
26
25
|
/**
|
|
27
26
|
* The form component abstract class is the base for each real component definition class.
|