@researchdatabox/sails-ng-common 0.2.0 → 5.0.0-RC1
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/base-field-component.model.d.ts +26 -0
- package/dist/src/config/base-field-component.model.js +29 -0
- package/dist/src/config/base-field-component.outline.d.ts +108 -0
- package/dist/src/config/base-field-component.outline.js +3 -0
- package/dist/src/config/component/accordion.model.d.ts +103 -0
- package/dist/src/config/component/accordion.model.js +127 -0
- package/dist/src/config/component/accordion.outline.d.ts +162 -0
- package/dist/src/config/component/accordion.outline.js +13 -0
- package/dist/src/config/component/action-row-layout.model.d.ts +28 -0
- package/dist/src/config/component/action-row-layout.model.js +35 -0
- package/dist/src/config/component/action-row-layout.outline.d.ts +36 -0
- package/dist/src/config/component/action-row-layout.outline.js +6 -0
- package/dist/src/config/component/cancel-button.model.d.ts +48 -0
- package/dist/src/config/component/cancel-button.model.js +58 -0
- package/dist/src/config/component/cancel-button.outline.d.ts +85 -0
- package/dist/src/config/component/cancel-button.outline.js +6 -0
- package/dist/src/config/component/checkbox-input.model.d.ts +67 -0
- package/dist/src/config/component/checkbox-input.model.js +79 -0
- package/dist/src/config/component/checkbox-input.outline.d.ts +93 -0
- package/dist/src/config/component/checkbox-input.outline.js +8 -0
- package/dist/src/config/component/checkbox-tree.model.d.ts +68 -0
- package/dist/src/config/component/checkbox-tree.model.js +80 -0
- package/dist/src/config/component/checkbox-tree.outline.d.ts +105 -0
- package/dist/src/config/component/checkbox-tree.outline.js +8 -0
- package/dist/src/config/component/content.model.d.ts +46 -0
- package/dist/src/config/component/content.model.js +56 -0
- package/dist/src/config/component/content.outline.d.ts +74 -0
- package/dist/src/config/component/content.outline.js +6 -0
- package/dist/src/config/component/data-location.model.d.ts +83 -0
- package/dist/src/config/component/data-location.model.js +95 -0
- package/dist/src/config/component/data-location.outline.d.ts +124 -0
- package/dist/src/config/component/data-location.outline.js +6 -0
- package/dist/src/config/component/date-input.model.d.ts +67 -0
- package/dist/src/config/component/date-input.model.js +80 -0
- package/dist/src/config/component/date-input.outline.d.ts +88 -0
- package/dist/src/config/component/date-input.outline.js +8 -0
- package/dist/src/config/component/default-layout.model.d.ts +22 -0
- package/dist/src/config/component/default-layout.model.js +30 -0
- package/dist/src/config/component/default-layout.outline.d.ts +29 -0
- package/dist/src/config/component/default-layout.outline.js +5 -0
- package/dist/src/config/component/delete-button.model.d.ts +46 -0
- package/dist/src/config/component/delete-button.model.js +48 -0
- package/dist/src/config/component/delete-button.outline.d.ts +89 -0
- package/dist/src/config/component/delete-button.outline.js +5 -0
- package/dist/src/config/component/dropdown-input.model.d.ts +65 -0
- package/dist/src/config/component/dropdown-input.model.js +78 -0
- package/dist/src/config/component/dropdown-input.outline.d.ts +92 -0
- package/dist/src/config/component/dropdown-input.outline.js +8 -0
- package/dist/src/config/component/file-upload.model.d.ts +67 -0
- package/dist/src/config/component/file-upload.model.js +81 -0
- package/dist/src/config/component/file-upload.outline.d.ts +99 -0
- package/dist/src/config/component/file-upload.outline.js +8 -0
- package/dist/src/config/component/group.model.d.ts +61 -0
- package/dist/src/config/component/group.model.js +75 -0
- package/dist/src/config/component/group.outline.d.ts +83 -0
- package/dist/src/config/component/group.outline.js +8 -0
- package/dist/src/config/component/inline-layout.model.d.ts +22 -0
- package/dist/src/config/component/inline-layout.model.js +29 -0
- package/dist/src/config/component/inline-layout.outline.d.ts +29 -0
- package/dist/src/config/component/inline-layout.outline.js +5 -0
- package/dist/src/config/component/integration-status.model.d.ts +49 -0
- package/dist/src/config/component/integration-status.model.js +65 -0
- package/dist/src/config/component/integration-status.outline.d.ts +61 -0
- package/dist/src/config/component/integration-status.outline.js +5 -0
- package/dist/src/config/component/map.model.d.ts +69 -0
- package/dist/src/config/component/map.model.js +86 -0
- package/dist/src/config/component/map.outline.d.ts +110 -0
- package/dist/src/config/component/map.outline.js +8 -0
- package/dist/src/config/component/pdf-list.model.d.ts +68 -0
- package/dist/src/config/component/pdf-list.model.js +71 -0
- package/dist/src/config/component/pdf-list.outline.d.ts +97 -0
- package/dist/src/config/component/pdf-list.outline.js +6 -0
- package/dist/src/config/component/publish-data-location-refresh.model.d.ts +39 -0
- package/dist/src/config/component/publish-data-location-refresh.model.js +52 -0
- package/dist/src/config/component/publish-data-location-refresh.outline.d.ts +58 -0
- package/dist/src/config/component/publish-data-location-refresh.outline.js +5 -0
- package/dist/src/config/component/publish-data-location-selector.model.d.ts +78 -0
- package/dist/src/config/component/publish-data-location-selector.model.js +104 -0
- package/dist/src/config/component/publish-data-location-selector.outline.d.ts +110 -0
- package/dist/src/config/component/publish-data-location-selector.outline.js +6 -0
- package/dist/src/config/component/question-tree.helper.d.ts +58 -0
- package/dist/src/config/component/question-tree.helper.js +291 -0
- package/dist/src/config/component/question-tree.model.d.ts +64 -0
- package/dist/src/config/component/question-tree.model.js +80 -0
- package/dist/src/config/component/question-tree.outline.d.ts +314 -0
- package/dist/src/config/component/question-tree.outline.js +9 -0
- package/dist/src/config/component/radio-input.model.d.ts +65 -0
- package/dist/src/config/component/radio-input.model.js +77 -0
- package/dist/src/config/component/radio-input.outline.d.ts +91 -0
- package/dist/src/config/component/radio-input.outline.js +8 -0
- package/dist/src/config/component/record-metadata-retriever.model.d.ts +41 -0
- package/dist/src/config/component/record-metadata-retriever.model.js +57 -0
- package/dist/src/config/component/record-metadata-retriever.outline.d.ts +53 -0
- package/dist/src/config/component/record-metadata-retriever.outline.js +5 -0
- package/dist/src/config/component/record-selector.model.d.ts +61 -0
- package/dist/src/config/component/record-selector.model.js +61 -0
- package/dist/src/config/component/record-selector.outline.d.ts +91 -0
- package/dist/src/config/component/record-selector.outline.js +6 -0
- package/dist/src/config/component/repeatable.model.d.ts +91 -0
- package/dist/src/config/component/repeatable.model.js +112 -0
- package/dist/src/config/component/repeatable.outline.d.ts +115 -0
- package/dist/src/config/component/repeatable.outline.js +10 -0
- package/dist/src/config/component/reusable.model.d.ts +42 -0
- package/dist/src/config/component/reusable.model.js +57 -0
- package/dist/src/config/component/reusable.outline.d.ts +55 -0
- package/dist/src/config/component/reusable.outline.js +6 -0
- package/dist/src/config/component/rich-text-editor.model.d.ts +65 -0
- package/dist/src/config/component/rich-text-editor.model.js +79 -0
- package/dist/src/config/component/rich-text-editor.outline.d.ts +92 -0
- package/dist/src/config/component/rich-text-editor.outline.js +8 -0
- package/dist/src/config/component/save-button.model.d.ts +49 -0
- package/dist/src/config/component/save-button.model.js +59 -0
- package/dist/src/config/component/save-button.outline.d.ts +90 -0
- package/dist/src/config/component/save-button.outline.js +6 -0
- package/dist/src/config/component/save-status.model.d.ts +42 -0
- package/dist/src/config/component/save-status.model.js +60 -0
- package/dist/src/config/component/save-status.outline.d.ts +58 -0
- package/dist/src/config/component/save-status.outline.js +6 -0
- package/dist/src/config/component/simple-input.model.d.ts +62 -0
- package/dist/src/config/component/simple-input.model.js +75 -0
- package/dist/src/config/component/simple-input.outline.d.ts +86 -0
- package/dist/src/config/component/simple-input.outline.js +9 -0
- package/dist/src/config/component/suggested-validation-summary.model.d.ts +45 -0
- package/dist/src/config/component/suggested-validation-summary.model.js +61 -0
- package/dist/src/config/component/suggested-validation-summary.outline.d.ts +57 -0
- package/dist/src/config/component/suggested-validation-summary.outline.js +5 -0
- package/dist/src/config/component/tab-content.model.d.ts +63 -0
- package/dist/src/config/component/tab-content.model.js +77 -0
- package/dist/src/config/component/tab-content.outline.d.ts +98 -0
- package/dist/src/config/component/tab-content.outline.js +8 -0
- package/dist/src/config/component/tab-nav-button.model.d.ts +45 -0
- package/dist/src/config/component/tab-nav-button.model.js +55 -0
- package/dist/src/config/component/tab-nav-button.outline.d.ts +70 -0
- package/dist/src/config/component/tab-nav-button.outline.js +6 -0
- package/dist/src/config/component/tab.model.d.ts +71 -0
- package/dist/src/config/component/tab.model.js +84 -0
- package/dist/src/config/component/tab.outline.d.ts +112 -0
- package/dist/src/config/component/tab.outline.js +9 -0
- package/dist/src/config/component/text-area.model.d.ts +63 -0
- package/dist/src/config/component/text-area.model.js +76 -0
- package/dist/src/config/component/text-area.outline.d.ts +87 -0
- package/dist/src/config/component/text-area.outline.js +8 -0
- package/dist/src/config/component/typeahead-input.model.d.ts +83 -0
- package/dist/src/config/component/typeahead-input.model.js +97 -0
- package/dist/src/config/component/typeahead-input.outline.d.ts +199 -0
- package/dist/src/config/component/typeahead-input.outline.js +10 -0
- package/dist/src/config/component/validation-summary.model.d.ts +42 -0
- package/dist/src/config/component/validation-summary.model.js +60 -0
- package/dist/src/config/component/validation-summary.outline.d.ts +63 -0
- package/dist/src/config/component/validation-summary.outline.js +6 -0
- package/dist/src/config/dictionary.model.d.ts +648 -0
- package/dist/src/config/dictionary.model.js +181 -0
- package/dist/src/config/dictionary.outline.d.ts +96 -0
- package/dist/src/config/dictionary.outline.js +3 -0
- package/dist/src/config/field-component.model.d.ts +7 -0
- package/dist/src/config/field-component.model.js +11 -0
- package/dist/src/config/field-component.outline.d.ts +20 -0
- package/dist/src/config/field-component.outline.js +3 -0
- package/dist/src/config/field-layout.model.d.ts +19 -0
- package/dist/src/config/field-layout.model.js +23 -0
- package/dist/src/config/field-layout.outline.d.ts +42 -0
- package/dist/src/config/field-layout.outline.js +3 -0
- package/dist/src/config/field-model.model.d.ts +21 -0
- package/dist/src/config/field-model.model.js +24 -0
- package/dist/src/config/field-model.outline.d.ts +63 -0
- package/dist/src/config/field-model.outline.js +3 -0
- package/dist/src/config/field.model.d.ts +12 -0
- package/dist/src/config/field.model.js +12 -0
- package/dist/src/config/field.outline.d.ts +19 -0
- package/dist/src/config/field.outline.js +3 -0
- package/dist/src/config/form-behaviour.outline.d.ts +128 -0
- package/dist/src/config/form-behaviour.outline.js +40 -0
- package/dist/src/config/form-component.model.d.ts +38 -0
- package/dist/src/config/form-component.model.js +36 -0
- package/dist/src/config/form-component.outline.d.ts +305 -0
- package/dist/src/config/form-component.outline.js +27 -0
- package/dist/src/config/form-config.model.d.ts +33 -0
- package/dist/src/config/form-config.model.js +36 -0
- package/dist/src/config/form-config.outline.d.ts +111 -0
- package/dist/src/config/form-config.outline.js +3 -0
- package/dist/src/config/form-override.model.d.ts +146 -0
- package/dist/src/config/form-override.model.js +1523 -0
- package/dist/src/config/form-override.outline.d.ts +15 -0
- package/dist/src/config/form-override.outline.js +3 -0
- package/dist/src/config/form-prehydrate.outline.d.ts +17 -0
- package/dist/src/config/form-prehydrate.outline.js +5 -0
- package/dist/src/config/form-types.model.d.ts +6 -0
- package/dist/src/config/form-types.model.js +23 -0
- package/dist/src/config/form-types.outline.d.ts +48 -0
- package/dist/src/config/form-types.outline.js +137 -0
- package/dist/src/config/helpers.d.ts +31 -0
- package/dist/src/config/helpers.js +122 -0
- package/dist/src/config/names/naming-helpers.d.ts +112 -0
- package/dist/src/config/names/naming-helpers.js +188 -0
- package/dist/src/config/names/query-helpers.d.ts +43 -0
- package/dist/src/config/names/query-helpers.js +59 -0
- package/dist/src/config/shared.outline.d.ts +54 -0
- package/dist/src/config/shared.outline.js +41 -0
- package/dist/src/config/visitor/base.model.d.ts +143 -0
- package/dist/src/config/visitor/base.model.js +336 -0
- package/dist/src/config/visitor/base.outline.d.ts +146 -0
- package/dist/src/config/visitor/base.outline.js +3 -0
- package/dist/src/config/visitor/common.model.d.ts +119 -0
- package/dist/src/config/visitor/common.model.js +422 -0
- package/dist/src/date-format-helpers.d.ts +1 -0
- package/dist/src/date-format-helpers.js +21 -0
- package/dist/src/handlebars-helpers.d.ts +258 -0
- package/dist/src/handlebars-helpers.js +715 -0
- package/dist/src/html-helpers.d.ts +15 -0
- package/dist/src/html-helpers.js +42 -0
- package/dist/src/index.d.ts +118 -3
- package/dist/src/index.js +127 -2
- package/dist/src/jsonata-helpers.d.ts +40 -0
- package/dist/src/jsonata-helpers.js +118 -0
- package/dist/src/logger.interface.d.ts +14 -0
- package/dist/src/logger.interface.js +3 -0
- package/dist/src/record.model.d.ts +23 -0
- package/dist/src/record.model.js +19 -1
- package/dist/src/report.model.d.ts +46 -0
- package/dist/src/status.model.d.ts +22 -0
- package/dist/src/status.model.js +28 -0
- package/dist/src/template.outline.d.ts +82 -0
- package/dist/src/template.outline.js +14 -0
- package/dist/src/translation-helpers.d.ts +26 -0
- package/dist/src/translation-helpers.js +71 -0
- package/dist/src/validation/form.model.d.ts +306 -24
- package/dist/src/validation/form.model.js +29 -1
- package/dist/src/validation/helpers.d.ts +15 -7
- package/dist/src/validation/helpers.js +49 -13
- package/dist/src/validation/validators-support.d.ts +39 -2
- package/dist/src/validation/validators-support.js +162 -12
- package/dist/src/validation/validators.d.ts +28 -0
- package/dist/src/validation/validators.js +531 -0
- package/package.json +51 -34
- package/LICENSE +0 -674
- package/dist/src/validation/index.d.ts +0 -1
- package/dist/src/validation/index.js +0 -18
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
2
|
+
import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
|
|
3
|
+
import { ValidationSummaryFieldComponentConfigOutline, ValidationSummaryFieldComponentDefinitionOutline, ValidationSummaryFormComponentDefinitionOutline } from "./validation-summary.outline";
|
|
4
|
+
import { FormComponentDefinition } from "../form-component.model";
|
|
5
|
+
import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
6
|
+
export declare class ValidationSummaryFieldComponentConfig extends FieldComponentConfig implements ValidationSummaryFieldComponentConfigOutline {
|
|
7
|
+
showWhenValid: boolean;
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
export declare class ValidationSummaryFieldComponentDefinition extends FieldComponentDefinition implements ValidationSummaryFieldComponentDefinitionOutline {
|
|
11
|
+
class: "ValidationSummaryComponent";
|
|
12
|
+
config?: ValidationSummaryFieldComponentConfigOutline;
|
|
13
|
+
constructor();
|
|
14
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare class ValidationSummaryFormComponentDefinition extends FormComponentDefinition implements ValidationSummaryFormComponentDefinitionOutline {
|
|
17
|
+
component: ValidationSummaryFieldComponentDefinitionOutline;
|
|
18
|
+
model?: never;
|
|
19
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
20
|
+
constructor();
|
|
21
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export declare const ValidationSummaryMap: ({
|
|
24
|
+
kind: "FieldComponentConfigKind";
|
|
25
|
+
def: typeof ValidationSummaryFieldComponentConfig;
|
|
26
|
+
class?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
kind: "FieldComponentDefinitionKind";
|
|
29
|
+
def: typeof ValidationSummaryFieldComponentDefinition;
|
|
30
|
+
class: "ValidationSummaryComponent";
|
|
31
|
+
} | {
|
|
32
|
+
kind: "FormComponentDefinitionKind";
|
|
33
|
+
def: typeof ValidationSummaryFormComponentDefinition;
|
|
34
|
+
class: "ValidationSummaryComponent";
|
|
35
|
+
})[];
|
|
36
|
+
export declare const ValidationSummaryDefaults: {
|
|
37
|
+
FormComponentDefinitionKind: {
|
|
38
|
+
ValidationSummaryComponent: {
|
|
39
|
+
FieldComponentDefinitionKind: "ValidationSummaryComponent";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationSummaryDefaults = exports.ValidationSummaryMap = exports.ValidationSummaryFormComponentDefinition = exports.ValidationSummaryFieldComponentDefinition = exports.ValidationSummaryFieldComponentConfig = void 0;
|
|
4
|
+
const shared_outline_1 = require("../shared.outline");
|
|
5
|
+
const field_component_model_1 = require("../field-component.model");
|
|
6
|
+
const validation_summary_outline_1 = require("./validation-summary.outline");
|
|
7
|
+
const form_component_model_1 = require("../form-component.model");
|
|
8
|
+
/* Validation Summary Component */
|
|
9
|
+
class ValidationSummaryFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
10
|
+
showWhenValid = false;
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.ValidationSummaryFieldComponentConfig = ValidationSummaryFieldComponentConfig;
|
|
16
|
+
class ValidationSummaryFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
17
|
+
class = validation_summary_outline_1.ValidationSummaryComponentName;
|
|
18
|
+
config;
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
}
|
|
22
|
+
async accept(visitor) {
|
|
23
|
+
await visitor.visitValidationSummaryFieldComponentDefinition(this);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.ValidationSummaryFieldComponentDefinition = ValidationSummaryFieldComponentDefinition;
|
|
27
|
+
/* Validation Summary Form Component */
|
|
28
|
+
class ValidationSummaryFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
29
|
+
component;
|
|
30
|
+
model;
|
|
31
|
+
layout;
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
}
|
|
35
|
+
async accept(visitor) {
|
|
36
|
+
await visitor.visitValidationSummaryFormComponentDefinition(this);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ValidationSummaryFormComponentDefinition = ValidationSummaryFormComponentDefinition;
|
|
40
|
+
exports.ValidationSummaryMap = [
|
|
41
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: ValidationSummaryFieldComponentConfig },
|
|
42
|
+
{
|
|
43
|
+
kind: shared_outline_1.FieldComponentDefinitionKind,
|
|
44
|
+
def: ValidationSummaryFieldComponentDefinition,
|
|
45
|
+
class: validation_summary_outline_1.ValidationSummaryComponentName
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
kind: shared_outline_1.FormComponentDefinitionKind,
|
|
49
|
+
def: ValidationSummaryFormComponentDefinition,
|
|
50
|
+
class: validation_summary_outline_1.ValidationSummaryComponentName
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
exports.ValidationSummaryDefaults = {
|
|
54
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
55
|
+
[validation_summary_outline_1.ValidationSummaryComponentName]: {
|
|
56
|
+
[shared_outline_1.FieldComponentDefinitionKind]: validation_summary_outline_1.ValidationSummaryComponentName,
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1zdW1tYXJ5Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvdmFsaWRhdGlvbi1zdW1tYXJ5Lm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUNBLHNEQUFzSDtBQUN0SCxvRUFBd0Y7QUFDeEYsNkVBSXNDO0FBQ3RDLGtFQUFnRTtBQUtoRSxtQ0FBbUM7QUFFbkMsTUFBYSxxQ0FBc0MsU0FBUSw0Q0FBb0I7SUFDM0UsYUFBYSxHQUFHLEtBQUssQ0FBQztJQUV0QjtRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztDQUNKO0FBTkQsc0ZBTUM7QUFHRCxNQUFhLHlDQUEwQyxTQUFRLGdEQUF3QjtJQUNuRixLQUFLLEdBQUcsMkRBQThCLENBQUM7SUFDdkMsTUFBTSxDQUFnRDtJQUV0RDtRQUNJLEtBQUssRUFBRSxDQUFDO0lBQ1osQ0FBQztJQUdELEtBQUssQ0FBQyxNQUFNLENBQUMsT0FBaUM7UUFDMUMsTUFBTSxPQUFPLENBQUMsOENBQThDLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDdkUsQ0FBQztDQUNKO0FBWkQsOEZBWUM7QUFFRCx1Q0FBdUM7QUFHdkMsTUFBYSx3Q0FBeUMsU0FBUSw4Q0FBdUI7SUFDakYsU0FBUyxDQUFvRDtJQUM3RCxLQUFLLENBQVM7SUFDZCxNQUFNLENBQTBDO0lBRWhEO1FBQ0ksS0FBSyxFQUFFLENBQUM7SUFDWixDQUFDO0lBRUQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFpQztRQUMxQyxNQUFNLE9BQU8sQ0FBQyw2Q0FBNkMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUN0RSxDQUFDO0NBQ0o7QUFaRCw0RkFZQztBQUVZLFFBQUEsb0JBQW9CLEdBQUc7SUFDaEMsRUFBQyxJQUFJLEVBQUUseUNBQXdCLEVBQUUsR0FBRyxFQUFFLHFDQUFxQyxFQUFDO0lBQzVFO1FBQ0ksSUFBSSxFQUFFLDZDQUE0QjtRQUNsQyxHQUFHLEVBQUUseUNBQXlDO1FBQzlDLEtBQUssRUFBRSwyREFBOEI7S0FDeEM7SUFDRDtRQUNJLElBQUksRUFBRSw0Q0FBMkI7UUFDakMsR0FBRyxFQUFFLHdDQUF3QztRQUM3QyxLQUFLLEVBQUUsMkRBQThCO0tBQ3hDO0NBQ0osQ0FBQztBQUNXLFFBQUEseUJBQXlCLEdBQUc7SUFDckMsQ0FBQyw0Q0FBMkIsQ0FBQyxFQUFFO1FBQzNCLENBQUMsMkRBQThCLENBQUMsRUFBRTtZQUM5QixDQUFDLDZDQUE0QixDQUFDLEVBQUUsMkRBQThCO1NBQ2pFO0tBQ0o7Q0FDSixDQUFDIn0=
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from "../field-component.outline";
|
|
2
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from "../form-component.outline";
|
|
3
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
4
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from "../shared.outline";
|
|
5
|
+
export declare const ValidationSummaryComponentName: "ValidationSummaryComponent";
|
|
6
|
+
export type ValidationSummaryComponentNameType = typeof ValidationSummaryComponentName;
|
|
7
|
+
export interface ValidationSummaryFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
8
|
+
/**
|
|
9
|
+
* Whether to include tab labels in validation summary labels.
|
|
10
|
+
* Group labels are always included.
|
|
11
|
+
*/
|
|
12
|
+
includeTabLabel?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Whether to render the informational success message when the form has no validation errors.
|
|
15
|
+
* Defaults to false.
|
|
16
|
+
*/
|
|
17
|
+
showWhenValid?: boolean;
|
|
18
|
+
}
|
|
19
|
+
export interface ValidationSummaryFieldComponentConfigOutline extends ValidationSummaryFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
20
|
+
}
|
|
21
|
+
export interface ValidationSummaryFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
22
|
+
class: ValidationSummaryComponentNameType;
|
|
23
|
+
config?: ValidationSummaryFieldComponentConfigFrame;
|
|
24
|
+
}
|
|
25
|
+
export interface ValidationSummaryFieldComponentDefinitionOutline extends ValidationSummaryFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
26
|
+
class: ValidationSummaryComponentNameType;
|
|
27
|
+
config?: ValidationSummaryFieldComponentConfigOutline;
|
|
28
|
+
}
|
|
29
|
+
export interface ValidationSummaryFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
30
|
+
component: ValidationSummaryFieldComponentDefinitionFrame;
|
|
31
|
+
model?: never;
|
|
32
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Displays the form's current blocking validation errors.
|
|
36
|
+
*
|
|
37
|
+
* @extensionPoint Use `ValidationSummaryComponent` to provide a consolidated accessible validation summary.
|
|
38
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
39
|
+
*/
|
|
40
|
+
export interface ValidationSummaryFormComponentDefinitionOutline extends ValidationSummaryFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
41
|
+
component: ValidationSummaryFieldComponentDefinitionOutline;
|
|
42
|
+
model?: never;
|
|
43
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
44
|
+
}
|
|
45
|
+
export type ValidationSummaryTypes = {
|
|
46
|
+
kind: FieldComponentConfigFrameKindType;
|
|
47
|
+
class: ValidationSummaryFieldComponentConfigFrame;
|
|
48
|
+
} | {
|
|
49
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
50
|
+
class: ValidationSummaryFieldComponentDefinitionFrame;
|
|
51
|
+
} | {
|
|
52
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
53
|
+
class: ValidationSummaryFormComponentDefinitionFrame;
|
|
54
|
+
} | {
|
|
55
|
+
kind: FieldComponentConfigKindType;
|
|
56
|
+
class: ValidationSummaryFieldComponentConfigOutline;
|
|
57
|
+
} | {
|
|
58
|
+
kind: FieldComponentDefinitionKindType;
|
|
59
|
+
class: ValidationSummaryFieldComponentDefinitionOutline;
|
|
60
|
+
} | {
|
|
61
|
+
kind: FormComponentDefinitionKindType;
|
|
62
|
+
class: ValidationSummaryFormComponentDefinitionOutline;
|
|
63
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ValidationSummaryComponentName = void 0;
|
|
4
|
+
/* Validation Summary Component */
|
|
5
|
+
exports.ValidationSummaryComponentName = "ValidationSummaryComponent";
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdGlvbi1zdW1tYXJ5Lm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC92YWxpZGF0aW9uLXN1bW1hcnkub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFhQSxtQ0FBbUM7QUFFdEIsUUFBQSw4QkFBOEIsR0FBRyw0QkFBcUMsQ0FBQyJ9
|