@researchdatabox/sails-ng-common 0.2.1 → 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 -3
- package/dist/src/validation/index.js +0 -20
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
2
|
+
import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
|
|
3
|
+
import { SaveStatusFieldComponentConfigOutline, SaveStatusFieldComponentDefinitionOutline, SaveStatusFormComponentDefinitionOutline } from "./save-status.outline";
|
|
4
|
+
import { FormComponentDefinition } from "../form-component.model";
|
|
5
|
+
import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
6
|
+
export declare class SaveStatusFieldComponentConfig extends FieldComponentConfig implements SaveStatusFieldComponentConfigOutline {
|
|
7
|
+
successDisplayDurationMs: number;
|
|
8
|
+
constructor();
|
|
9
|
+
}
|
|
10
|
+
export declare class SaveStatusFieldComponentDefinition extends FieldComponentDefinition implements SaveStatusFieldComponentDefinitionOutline {
|
|
11
|
+
class: "SaveStatusComponent";
|
|
12
|
+
config?: SaveStatusFieldComponentConfigOutline;
|
|
13
|
+
constructor();
|
|
14
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
15
|
+
}
|
|
16
|
+
export declare class SaveStatusFormComponentDefinition extends FormComponentDefinition implements SaveStatusFormComponentDefinitionOutline {
|
|
17
|
+
component: SaveStatusFieldComponentDefinitionOutline;
|
|
18
|
+
model?: never;
|
|
19
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
20
|
+
constructor();
|
|
21
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
22
|
+
}
|
|
23
|
+
export declare const SaveStatusMap: ({
|
|
24
|
+
kind: "FieldComponentConfigKind";
|
|
25
|
+
def: typeof SaveStatusFieldComponentConfig;
|
|
26
|
+
class?: undefined;
|
|
27
|
+
} | {
|
|
28
|
+
kind: "FieldComponentDefinitionKind";
|
|
29
|
+
def: typeof SaveStatusFieldComponentDefinition;
|
|
30
|
+
class: "SaveStatusComponent";
|
|
31
|
+
} | {
|
|
32
|
+
kind: "FormComponentDefinitionKind";
|
|
33
|
+
def: typeof SaveStatusFormComponentDefinition;
|
|
34
|
+
class: "SaveStatusComponent";
|
|
35
|
+
})[];
|
|
36
|
+
export declare const SaveStatusDefaults: {
|
|
37
|
+
FormComponentDefinitionKind: {
|
|
38
|
+
SaveStatusComponent: {
|
|
39
|
+
FieldComponentDefinitionKind: "SaveStatusComponent";
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SaveStatusDefaults = exports.SaveStatusMap = exports.SaveStatusFormComponentDefinition = exports.SaveStatusFieldComponentDefinition = exports.SaveStatusFieldComponentConfig = void 0;
|
|
4
|
+
const shared_outline_1 = require("../shared.outline");
|
|
5
|
+
const field_component_model_1 = require("../field-component.model");
|
|
6
|
+
const save_status_outline_1 = require("./save-status.outline");
|
|
7
|
+
const form_component_model_1 = require("../form-component.model");
|
|
8
|
+
/* Save Status Component */
|
|
9
|
+
class SaveStatusFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
10
|
+
successDisplayDurationMs = 3000;
|
|
11
|
+
constructor() {
|
|
12
|
+
super();
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.SaveStatusFieldComponentConfig = SaveStatusFieldComponentConfig;
|
|
16
|
+
class SaveStatusFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
17
|
+
class = save_status_outline_1.SaveStatusComponentName;
|
|
18
|
+
config;
|
|
19
|
+
constructor() {
|
|
20
|
+
super();
|
|
21
|
+
}
|
|
22
|
+
async accept(visitor) {
|
|
23
|
+
await visitor.visitSaveStatusFieldComponentDefinition(this);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.SaveStatusFieldComponentDefinition = SaveStatusFieldComponentDefinition;
|
|
27
|
+
/* Save Status Form Component */
|
|
28
|
+
class SaveStatusFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
29
|
+
component;
|
|
30
|
+
model;
|
|
31
|
+
layout;
|
|
32
|
+
constructor() {
|
|
33
|
+
super();
|
|
34
|
+
}
|
|
35
|
+
async accept(visitor) {
|
|
36
|
+
await visitor.visitSaveStatusFormComponentDefinition(this);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.SaveStatusFormComponentDefinition = SaveStatusFormComponentDefinition;
|
|
40
|
+
exports.SaveStatusMap = [
|
|
41
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: SaveStatusFieldComponentConfig },
|
|
42
|
+
{
|
|
43
|
+
kind: shared_outline_1.FieldComponentDefinitionKind,
|
|
44
|
+
def: SaveStatusFieldComponentDefinition,
|
|
45
|
+
class: save_status_outline_1.SaveStatusComponentName
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
kind: shared_outline_1.FormComponentDefinitionKind,
|
|
49
|
+
def: SaveStatusFormComponentDefinition,
|
|
50
|
+
class: save_status_outline_1.SaveStatusComponentName
|
|
51
|
+
},
|
|
52
|
+
];
|
|
53
|
+
exports.SaveStatusDefaults = {
|
|
54
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
55
|
+
[save_status_outline_1.SaveStatusComponentName]: {
|
|
56
|
+
[shared_outline_1.Fie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NLE9BQU8sQ0FBQyxzQ0FBc0MsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUMvRCxDQUFDO0NBQ0o7QUFaRCw4RUFZQztBQUVZLFFBQUEsYUFBYSxHQUFHO0lBQ3pCLEVBQUMsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSw4QkFBOEIsRUFBQztJQUNyRTtRQUNJLElBQUksRUFBRSw2Q0FBNEI7UUFDbEMsR0FBRyxFQUFFLGtDQUFrQztRQUN2QyxLQUFLLEVBQUUsNkNBQXVCO0tBQ2pDO0lBQ0Q7UUFDSSxJQUFJLEVBQUUsNENBQTJCO1FBQ2pDLEdBQUcsRUFBRSxpQ0FBaUM7UUFDdEMsS0FBSyxFQUFFLDZDQUF1QjtLQUNqQztDQUNKLENBQUM7QUFDVyxRQUFBLGtCQUFrQixHQUFHO0lBQzlCLENBQUMsNENBQTJCLENBQUMsRUFBRTtRQUMzQixDQUFDLDZDQUF1QixDQUFDLEVBQUU7WUFDdkIsQ0FBQyw2Q0FBNEIsQ0FBQyxFQUFFLDZDQUF1QjtTQUMxRDtLQUNKO0NBQ0osQ0FBQyJ9
|
|
@@ -0,0 +1,58 @@
|
|
|
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 SaveStatusComponentName: "SaveStatusComponent";
|
|
6
|
+
export type SaveStatusComponentNameType = typeof SaveStatusComponentName;
|
|
7
|
+
export interface SaveStatusFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
8
|
+
/**
|
|
9
|
+
* How long to keep the success message visible after a save succeeds.
|
|
10
|
+
* Defaults to 3000 milliseconds.
|
|
11
|
+
*/
|
|
12
|
+
successDisplayDurationMs?: number;
|
|
13
|
+
}
|
|
14
|
+
export interface SaveStatusFieldComponentConfigOutline extends SaveStatusFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
15
|
+
}
|
|
16
|
+
export interface SaveStatusFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
17
|
+
class: SaveStatusComponentNameType;
|
|
18
|
+
config?: SaveStatusFieldComponentConfigFrame;
|
|
19
|
+
}
|
|
20
|
+
export interface SaveStatusFieldComponentDefinitionOutline extends SaveStatusFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
21
|
+
class: SaveStatusComponentNameType;
|
|
22
|
+
config?: SaveStatusFieldComponentConfigOutline;
|
|
23
|
+
}
|
|
24
|
+
export interface SaveStatusFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
25
|
+
component: SaveStatusFieldComponentDefinitionFrame;
|
|
26
|
+
model?: never;
|
|
27
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Displays current form save progress and result state.
|
|
31
|
+
*
|
|
32
|
+
* @extensionPoint Use `SaveStatusComponent` alongside save controls without adding a submitted model value.
|
|
33
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
34
|
+
*/
|
|
35
|
+
export interface SaveStatusFormComponentDefinitionOutline extends SaveStatusFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
36
|
+
component: SaveStatusFieldComponentDefinitionOutline;
|
|
37
|
+
model?: never;
|
|
38
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
39
|
+
}
|
|
40
|
+
export type SaveStatusTypes = {
|
|
41
|
+
kind: FieldComponentConfigFrameKindType;
|
|
42
|
+
class: SaveStatusFieldComponentConfigFrame;
|
|
43
|
+
} | {
|
|
44
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
45
|
+
class: SaveStatusFieldComponentDefinitionFrame;
|
|
46
|
+
} | {
|
|
47
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
48
|
+
class: SaveStatusFormComponentDefinitionFrame;
|
|
49
|
+
} | {
|
|
50
|
+
kind: FieldComponentConfigKindType;
|
|
51
|
+
class: SaveStatusFieldComponentConfigOutline;
|
|
52
|
+
} | {
|
|
53
|
+
kind: FieldComponentDefinitionKindType;
|
|
54
|
+
class: SaveStatusFieldComponentDefinitionOutline;
|
|
55
|
+
} | {
|
|
56
|
+
kind: FormComponentDefinitionKindType;
|
|
57
|
+
class: SaveStatusFormComponentDefinitionOutline;
|
|
58
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SaveStatusComponentName = void 0;
|
|
4
|
+
/* Save Status Component */
|
|
5
|
+
exports.SaveStatusComponentName = "SaveStatusComponent";
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2F2ZS1zdGF0dXMub3V0bGluZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L3NhdmUtc3RhdHVzLm91dGxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBY0EsMkJBQTJCO0FBRWQsUUFBQSx1QkFBdUIsR0FBRyxxQkFBOEIsQ0FBQyJ9
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { FieldModelConfig, FieldModelDefinition } from "../field-model.model";
|
|
2
|
+
import { FormComponentDefinition } from "../form-component.model";
|
|
3
|
+
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
4
|
+
import { SimpleInputFieldComponentConfigOutline, SimpleInputFieldComponentConfigType, SimpleInputFieldComponentDefinitionOutline, SimpleInputFieldModelConfigOutline, SimpleInputFieldModelDefinitionOutline, SimpleInputFormComponentDefinitionOutline, SimpleInputModelValueType } from "./simple-input.outline";
|
|
5
|
+
import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
|
|
6
|
+
import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
7
|
+
export declare class SimpleInputFieldComponentConfig extends FieldComponentConfig implements SimpleInputFieldComponentConfigOutline {
|
|
8
|
+
type?: SimpleInputFieldComponentConfigType;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export declare class SimpleInputFieldComponentDefinition extends FieldComponentDefinition implements SimpleInputFieldComponentDefinitionOutline {
|
|
13
|
+
class: "SimpleInputComponent";
|
|
14
|
+
config?: SimpleInputFieldComponentConfigOutline;
|
|
15
|
+
constructor();
|
|
16
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export declare class SimpleInputFieldModelConfig extends FieldModelConfig<SimpleInputModelValueType> implements SimpleInputFieldModelConfigOutline {
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
|
+
export declare class SimpleInputFieldModelDefinition extends FieldModelDefinition<SimpleInputModelValueType> implements SimpleInputFieldModelDefinitionOutline {
|
|
22
|
+
class: "SimpleInputModel";
|
|
23
|
+
config?: SimpleInputFieldModelConfigOutline;
|
|
24
|
+
constructor();
|
|
25
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export declare class SimpleInputFormComponentDefinition extends FormComponentDefinition implements SimpleInputFormComponentDefinitionOutline {
|
|
28
|
+
component: SimpleInputFieldComponentDefinitionOutline;
|
|
29
|
+
model?: SimpleInputFieldModelDefinitionOutline;
|
|
30
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
31
|
+
constructor();
|
|
32
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
33
|
+
}
|
|
34
|
+
export declare const SimpleInputMap: ({
|
|
35
|
+
kind: "FieldComponentConfigKind";
|
|
36
|
+
def: typeof SimpleInputFieldComponentConfig;
|
|
37
|
+
class?: undefined;
|
|
38
|
+
} | {
|
|
39
|
+
kind: "FieldComponentDefinitionKind";
|
|
40
|
+
def: typeof SimpleInputFieldComponentDefinition;
|
|
41
|
+
class: "SimpleInputComponent";
|
|
42
|
+
} | {
|
|
43
|
+
kind: "FieldModelConfigKind";
|
|
44
|
+
def: typeof SimpleInputFieldModelConfig;
|
|
45
|
+
class?: undefined;
|
|
46
|
+
} | {
|
|
47
|
+
kind: "FieldModelDefinitionKind";
|
|
48
|
+
def: typeof SimpleInputFieldModelDefinition;
|
|
49
|
+
class: "SimpleInputModel";
|
|
50
|
+
} | {
|
|
51
|
+
kind: "FormComponentDefinitionKind";
|
|
52
|
+
def: typeof SimpleInputFormComponentDefinition;
|
|
53
|
+
class: "SimpleInputComponent";
|
|
54
|
+
})[];
|
|
55
|
+
export declare const SimpleInputDefaults: {
|
|
56
|
+
FormComponentDefinitionKind: {
|
|
57
|
+
SimpleInputComponent: {
|
|
58
|
+
FieldComponentDefinitionKind: "SimpleInputComponent";
|
|
59
|
+
FieldModelDefinitionKind: "SimpleInputModel";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimpleInputDefaults = exports.SimpleInputMap = exports.SimpleInputFormComponentDefinition = exports.SimpleInputFieldModelDefinition = exports.SimpleInputFieldModelConfig = exports.SimpleInputFieldComponentDefinition = exports.SimpleInputFieldComponentConfig = void 0;
|
|
4
|
+
const field_model_model_1 = require("../field-model.model");
|
|
5
|
+
const form_component_model_1 = require("../form-component.model");
|
|
6
|
+
const shared_outline_1 = require("../shared.outline");
|
|
7
|
+
const simple_input_outline_1 = require("./simple-input.outline");
|
|
8
|
+
const field_component_model_1 = require("../field-component.model");
|
|
9
|
+
/* Simple Input Component */
|
|
10
|
+
class SimpleInputFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
11
|
+
type = "text";
|
|
12
|
+
placeholder = '';
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.SimpleInputFieldComponentConfig = SimpleInputFieldComponentConfig;
|
|
18
|
+
class SimpleInputFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
19
|
+
class = simple_input_outline_1.SimpleInputComponentName;
|
|
20
|
+
config;
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
}
|
|
24
|
+
async accept(visitor) {
|
|
25
|
+
await visitor.visitSimpleInputFieldComponentDefinition(this);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.SimpleInputFieldComponentDefinition = SimpleInputFieldComponentDefinition;
|
|
29
|
+
/* Simple Input Model */
|
|
30
|
+
class SimpleInputFieldModelConfig extends field_model_model_1.FieldModelConfig {
|
|
31
|
+
constructor() {
|
|
32
|
+
super();
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.SimpleInputFieldModelConfig = SimpleInputFieldModelConfig;
|
|
36
|
+
class SimpleInputFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
|
|
37
|
+
class = simple_input_outline_1.SimpleInputModelName;
|
|
38
|
+
config;
|
|
39
|
+
constructor() {
|
|
40
|
+
super();
|
|
41
|
+
}
|
|
42
|
+
async accept(visitor) {
|
|
43
|
+
await visitor.visitSimpleInputFieldModelDefinition(this);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.SimpleInputFieldModelDefinition = SimpleInputFieldModelDefinition;
|
|
47
|
+
/* Simple Input Form Component */
|
|
48
|
+
class SimpleInputFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
49
|
+
component;
|
|
50
|
+
model;
|
|
51
|
+
layout;
|
|
52
|
+
constructor() {
|
|
53
|
+
super();
|
|
54
|
+
}
|
|
55
|
+
async accept(visitor) {
|
|
56
|
+
await visitor.visitSimpleInputFormComponentDefinition(this);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.SimpleInputFormComponentDefinition = SimpleInputFormComponentDefinition;
|
|
60
|
+
exports.SimpleInputMap = [
|
|
61
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: SimpleInputFieldComponentConfig },
|
|
62
|
+
{ kind: shared_outline_1.FieldComponentDefinitionKind, def: SimpleInputFieldComponentDefinition, class: simple_input_outline_1.SimpleInputComponentName },
|
|
63
|
+
{ kind: shared_outline_1.FieldModelConfigKind, def: SimpleInputFieldModelConfig },
|
|
64
|
+
{ kind: shared_outline_1.FieldModelDefinitionKind, def: SimpleInputFieldModelDefinition, class: simple_input_outline_1.SimpleInputModelName },
|
|
65
|
+
{ kind: shared_outline_1.FormComponentDefinitionKind, def: SimpleInputFormComponentDefinition, class: simple_input_outline_1.SimpleInputComponentName },
|
|
66
|
+
];
|
|
67
|
+
exports.SimpleInputDefaults = {
|
|
68
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
69
|
+
[simple_input_outline_1.SimpleInputComponentName]: {
|
|
70
|
+
[shared_outline_1.FieldComponentDefinitionKind]: simple_input_outline_1.SimpleInputComponentName,
|
|
71
|
+
[shared_outline_1.FieldModelDefinitionKind]: simple_input_outline_1.SimpleInputModelName,
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLWlucHV0Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvc2ltcGxlLWlucHV0Lm1vZGVsLnRzIl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
|
1
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
2
|
+
import { FieldModelConfigFrame, FieldModelConfigOutline, FieldModelDefinitionFrame, FieldModelDefinitionOutline } from "../field-model.outline";
|
|
3
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from "../field-component.outline";
|
|
4
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from "../form-component.outline";
|
|
5
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FieldModelConfigFrameKindType, FieldModelConfigKindType, FieldModelDefinitionFrameKindType, FieldModelDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from "../shared.outline";
|
|
6
|
+
export declare const SimpleInputComponentName: "SimpleInputComponent";
|
|
7
|
+
export type SimpleInputComponentNameType = typeof SimpleInputComponentName;
|
|
8
|
+
export declare const SimpleInputFieldComponentConfigTypeNames: readonly ["email", "text", "tel", "number", "password", "url", "hidden"];
|
|
9
|
+
export type SimpleInputFieldComponentConfigType = typeof SimpleInputFieldComponentConfigTypeNames[number];
|
|
10
|
+
export interface SimpleInputFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
11
|
+
type?: SimpleInputFieldComponentConfigType;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface SimpleInputFieldComponentConfigOutline extends SimpleInputFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
}
|
|
17
|
+
export interface SimpleInputFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
18
|
+
class: SimpleInputComponentNameType;
|
|
19
|
+
config?: SimpleInputFieldComponentConfigFrame;
|
|
20
|
+
}
|
|
21
|
+
export interface SimpleInputFieldComponentDefinitionOutline extends SimpleInputFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
22
|
+
class: SimpleInputComponentNameType;
|
|
23
|
+
config?: SimpleInputFieldComponentConfigOutline;
|
|
24
|
+
}
|
|
25
|
+
export declare const SimpleInputModelName: "SimpleInputModel";
|
|
26
|
+
export type SimpleInputModelNameType = typeof SimpleInputModelName;
|
|
27
|
+
export type SimpleInputModelValueType = string;
|
|
28
|
+
export interface SimpleInputFieldModelConfigFrame extends FieldModelConfigFrame<SimpleInputModelValueType> {
|
|
29
|
+
}
|
|
30
|
+
export interface SimpleInputFieldModelConfigOutline extends SimpleInputFieldModelConfigFrame, FieldModelConfigOutline<SimpleInputModelValueType> {
|
|
31
|
+
}
|
|
32
|
+
export interface SimpleInputFieldModelDefinitionFrame extends FieldModelDefinitionFrame<SimpleInputModelValueType> {
|
|
33
|
+
class: SimpleInputModelNameType;
|
|
34
|
+
config?: SimpleInputFieldModelConfigFrame;
|
|
35
|
+
}
|
|
36
|
+
export interface SimpleInputFieldModelDefinitionOutline extends SimpleInputFieldModelDefinitionFrame, FieldModelDefinitionOutline<SimpleInputModelValueType> {
|
|
37
|
+
class: SimpleInputModelNameType;
|
|
38
|
+
config?: SimpleInputFieldModelConfigOutline;
|
|
39
|
+
}
|
|
40
|
+
export interface SimpleInputFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
41
|
+
component: SimpleInputFieldComponentDefinitionFrame;
|
|
42
|
+
model?: SimpleInputFieldModelDefinitionFrame;
|
|
43
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Configures a single-line textual, numeric, password, URL, telephone, or hidden input.
|
|
47
|
+
*
|
|
48
|
+
* @extensionPoint Use `SimpleInputComponent` with `SimpleInputModel` in a FormConfig component definition; hooks may extend its configuration through the normal form component registration path.
|
|
49
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
50
|
+
*/
|
|
51
|
+
export interface SimpleInputFormComponentDefinitionOutline extends SimpleInputFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
52
|
+
component: SimpleInputFieldComponentDefinitionOutline;
|
|
53
|
+
model?: SimpleInputFieldModelDefinitionOutline;
|
|
54
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
55
|
+
}
|
|
56
|
+
export type SimpleInputTypes = {
|
|
57
|
+
kind: FieldComponentConfigFrameKindType;
|
|
58
|
+
class: SimpleInputFieldComponentConfigFrame;
|
|
59
|
+
} | {
|
|
60
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
61
|
+
class: SimpleInputFieldComponentDefinitionFrame;
|
|
62
|
+
} | {
|
|
63
|
+
kind: FieldModelConfigFrameKindType;
|
|
64
|
+
class: SimpleInputFieldModelConfigFrame;
|
|
65
|
+
} | {
|
|
66
|
+
kind: FieldModelDefinitionFrameKindType;
|
|
67
|
+
class: SimpleInputFieldModelDefinitionFrame;
|
|
68
|
+
} | {
|
|
69
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
70
|
+
class: SimpleInputFormComponentDefinitionFrame;
|
|
71
|
+
} | {
|
|
72
|
+
kind: FieldComponentConfigKindType;
|
|
73
|
+
class: SimpleInputFieldComponentConfigOutline;
|
|
74
|
+
} | {
|
|
75
|
+
kind: FieldComponentDefinitionKindType;
|
|
76
|
+
class: SimpleInputFieldComponentDefinitionOutline;
|
|
77
|
+
} | {
|
|
78
|
+
kind: FieldModelConfigKindType;
|
|
79
|
+
class: SimpleInputFieldModelConfigOutline;
|
|
80
|
+
} | {
|
|
81
|
+
kind: FieldModelDefinitionKindType;
|
|
82
|
+
class: SimpleInputFieldModelDefinitionOutline;
|
|
83
|
+
} | {
|
|
84
|
+
kind: FormComponentDefinitionKindType;
|
|
85
|
+
class: SimpleInputFormComponentDefinitionOutline;
|
|
86
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SimpleInputModelName = exports.SimpleInputFieldComponentConfigTypeNames = exports.SimpleInputComponentName = void 0;
|
|
4
|
+
/* Simple Input Component */
|
|
5
|
+
exports.SimpleInputComponentName = "SimpleInputComponent";
|
|
6
|
+
exports.SimpleInputFieldComponentConfigTypeNames = ["email", "text", "tel", "number", "password", "url", "hidden"];
|
|
7
|
+
/* Simple Input Model */
|
|
8
|
+
exports.SimpleInputModelName = "SimpleInputModel";
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLWlucHV0Lm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9zaW1wbGUtaW5wdXQub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFzQkEsNEJBQTRCO0FBQ2YsUUFBQSx3QkFBd0IsR0FBRyxzQkFBK0IsQ0FBQztBQUczRCxRQUFBLHdDQUF3QyxHQUFHLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxLQUFLLEVBQUUsUUFBUSxFQUFFLFVBQVUsRUFBRSxLQUFLLEVBQUUsUUFBUSxDQUFVLENBQUM7QUF1QmpJLHdCQUF3QjtBQUNYLFFBQUEsb0JBQW9CLEdBQUcsa0JBQTJCLENBQUMifQ==
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
2
|
+
import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
|
|
3
|
+
import { FormComponentDefinition } from "../form-component.model";
|
|
4
|
+
import { AvailableFieldLayoutDefinitionOutlines } from "../dictionary.outline";
|
|
5
|
+
import { SuggestedValidationSummaryFieldComponentConfigOutline, SuggestedValidationSummaryFieldComponentDefinitionOutline, SuggestedValidationSummaryFormComponentDefinitionOutline } from "./suggested-validation-summary.outline";
|
|
6
|
+
export declare class SuggestedValidationSummaryFieldComponentConfig extends FieldComponentConfig implements SuggestedValidationSummaryFieldComponentConfigOutline {
|
|
7
|
+
enabledValidationGroups: string[];
|
|
8
|
+
includeTabLabel: boolean;
|
|
9
|
+
showWhenValid: boolean;
|
|
10
|
+
header: string;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
13
|
+
export declare class SuggestedValidationSummaryFieldComponentDefinition extends FieldComponentDefinition implements SuggestedValidationSummaryFieldComponentDefinitionOutline {
|
|
14
|
+
class: "SuggestedValidationSummaryComponent";
|
|
15
|
+
config?: SuggestedValidationSummaryFieldComponentConfigOutline;
|
|
16
|
+
constructor();
|
|
17
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
export declare class SuggestedValidationSummaryFormComponentDefinition extends FormComponentDefinition implements SuggestedValidationSummaryFormComponentDefinitionOutline {
|
|
20
|
+
component: SuggestedValidationSummaryFieldComponentDefinitionOutline;
|
|
21
|
+
model?: never;
|
|
22
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
23
|
+
constructor();
|
|
24
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
25
|
+
}
|
|
26
|
+
export declare const SuggestedValidationSummaryMap: ({
|
|
27
|
+
kind: "FieldComponentConfigKind";
|
|
28
|
+
def: typeof SuggestedValidationSummaryFieldComponentConfig;
|
|
29
|
+
class?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
kind: "FieldComponentDefinitionKind";
|
|
32
|
+
def: typeof SuggestedValidationSummaryFieldComponentDefinition;
|
|
33
|
+
class: "SuggestedValidationSummaryComponent";
|
|
34
|
+
} | {
|
|
35
|
+
kind: "FormComponentDefinitionKind";
|
|
36
|
+
def: typeof SuggestedValidationSummaryFormComponentDefinition;
|
|
37
|
+
class: "SuggestedValidationSummaryComponent";
|
|
38
|
+
})[];
|
|
39
|
+
export declare const SuggestedValidationSummaryDefaults: {
|
|
40
|
+
FormComponentDefinitionKind: {
|
|
41
|
+
SuggestedValidationSummaryComponent: {
|
|
42
|
+
FieldComponentDefinitionKind: "SuggestedValidationSummaryComponent";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SuggestedValidationSummaryDefaults = exports.SuggestedValidationSummaryMap = exports.SuggestedValidationSummaryFormComponentDefinition = exports.SuggestedValidationSummaryFieldComponentDefinition = exports.SuggestedValidationSummaryFieldComponentConfig = void 0;
|
|
4
|
+
const shared_outline_1 = require("../shared.outline");
|
|
5
|
+
const field_component_model_1 = require("../field-component.model");
|
|
6
|
+
const form_component_model_1 = require("../form-component.model");
|
|
7
|
+
const suggested_validation_summary_outline_1 = require("./suggested-validation-summary.outline");
|
|
8
|
+
class SuggestedValidationSummaryFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
9
|
+
enabledValidationGroups = [];
|
|
10
|
+
includeTabLabel = false;
|
|
11
|
+
showWhenValid = false;
|
|
12
|
+
header = "@dmpt-form-suggested-validation-summary-header";
|
|
13
|
+
constructor() {
|
|
14
|
+
super();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.SuggestedValidationSummaryFieldComponentConfig = SuggestedValidationSummaryFieldComponentConfig;
|
|
18
|
+
class SuggestedValidationSummaryFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
19
|
+
class = suggested_validation_summary_outline_1.SuggestedValidationSummaryComponentName;
|
|
20
|
+
config;
|
|
21
|
+
constructor() {
|
|
22
|
+
super();
|
|
23
|
+
}
|
|
24
|
+
async accept(visitor) {
|
|
25
|
+
await visitor.visitSuggestedValidationSummaryFieldComponentDefinition(this);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.SuggestedValidationSummaryFieldComponentDefinition = SuggestedValidationSummaryFieldComponentDefinition;
|
|
29
|
+
class SuggestedValidationSummaryFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
30
|
+
component;
|
|
31
|
+
model;
|
|
32
|
+
layout;
|
|
33
|
+
constructor() {
|
|
34
|
+
super();
|
|
35
|
+
}
|
|
36
|
+
async accept(visitor) {
|
|
37
|
+
await visitor.visitSuggestedValidationSummaryFormComponentDefinition(this);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.SuggestedValidationSummaryFormComponentDefinition = SuggestedValidationSummaryFormComponentDefinition;
|
|
41
|
+
exports.SuggestedValidationSummaryMap = [
|
|
42
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: SuggestedValidationSummaryFieldComponentConfig },
|
|
43
|
+
{
|
|
44
|
+
kind: shared_outline_1.FieldComponentDefinitionKind,
|
|
45
|
+
def: SuggestedValidationSummaryFieldComponentDefinition,
|
|
46
|
+
class: suggested_validation_summary_outline_1.SuggestedValidationSummaryComponentName,
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
kind: shared_outline_1.FormComponentDefinitionKind,
|
|
50
|
+
def: SuggestedValidationSummaryFormComponentDefinition,
|
|
51
|
+
class: suggested_validation_summary_outline_1.SuggestedValidationSummaryComponentName,
|
|
52
|
+
},
|
|
53
|
+
];
|
|
54
|
+
exports.SuggestedValidationSummaryDefaults = {
|
|
55
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
56
|
+
[suggested_validation_summary_outline_1.SuggestedValidationSummaryComponentName]: {
|
|
57
|
+
[shared_outline_1.FieldComponentDefinitionKind]: suggested_validation_summary_outline_1.SuggestedValidationSummaryComponentName,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VnZ2VzdGVkLXZhbGlkYXRpb24tc3VtbWFyeS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29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sSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSw4Q0FBOEMsRUFBRTtJQUN2RjtRQUNFLElBQUksRUFBRSw2Q0FBNEI7UUFDbEMsR0FBRyxFQUFFLGtEQUFrRDtRQUN2RCxLQUFLLEVBQUUsOEVBQXVDO0tBQy9DO0lBQ0Q7UUFDRSxJQUFJLEVBQUUsNENBQTJCO1FBQ2pDLEdBQUcsRUFBRSxpREFBaUQ7UUFDdEQsS0FBSyxFQUFFLDhFQUF1QztLQUMvQztDQUNGLENBQUM7QUFFVyxRQUFBLGtDQUFrQyxHQUFHO0lBQ2hELENBQUMsNENBQTJCLENBQUMsRUFBRTtRQUM3QixDQUFDLDhFQUF1QyxDQUFDLEVBQUU7WUFDekMsQ0FBQyw2Q0FBNEIsQ0FBQyxFQUFFLDhFQUF1QztTQUN4RTtLQUNGO0NBQ0YsQ0FBQyJ9
|
|
@@ -0,0 +1,57 @@
|
|
|
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 SuggestedValidationSummaryComponentName: "SuggestedValidationSummaryComponent";
|
|
6
|
+
export type SuggestedValidationSummaryComponentNameType = typeof SuggestedValidationSummaryComponentName;
|
|
7
|
+
export interface SuggestedValidationSummaryFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
8
|
+
enabledValidationGroups?: string[];
|
|
9
|
+
includeTabLabel?: boolean;
|
|
10
|
+
showWhenValid?: boolean;
|
|
11
|
+
header?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface SuggestedValidationSummaryFieldComponentConfigOutline extends SuggestedValidationSummaryFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
14
|
+
}
|
|
15
|
+
export interface SuggestedValidationSummaryFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
16
|
+
class: SuggestedValidationSummaryComponentNameType;
|
|
17
|
+
config?: SuggestedValidationSummaryFieldComponentConfigFrame;
|
|
18
|
+
}
|
|
19
|
+
export interface SuggestedValidationSummaryFieldComponentDefinitionOutline extends SuggestedValidationSummaryFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
20
|
+
class: SuggestedValidationSummaryComponentNameType;
|
|
21
|
+
config?: SuggestedValidationSummaryFieldComponentConfigOutline;
|
|
22
|
+
}
|
|
23
|
+
export interface SuggestedValidationSummaryFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
24
|
+
component: SuggestedValidationSummaryFieldComponentDefinitionFrame;
|
|
25
|
+
model?: never;
|
|
26
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Displays advisory validation suggestions separately from blocking errors.
|
|
30
|
+
*
|
|
31
|
+
* @extensionPoint Use `SuggestedValidationSummaryComponent` to present configured non-blocking validation feedback.
|
|
32
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
33
|
+
*/
|
|
34
|
+
export interface SuggestedValidationSummaryFormComponentDefinitionOutline extends SuggestedValidationSummaryFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
35
|
+
component: SuggestedValidationSummaryFieldComponentDefinitionOutline;
|
|
36
|
+
model?: never;
|
|
37
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
38
|
+
}
|
|
39
|
+
export type SuggestedValidationSummaryTypes = {
|
|
40
|
+
kind: FieldComponentConfigFrameKindType;
|
|
41
|
+
class: SuggestedValidationSummaryFieldComponentConfigFrame;
|
|
42
|
+
} | {
|
|
43
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
44
|
+
class: SuggestedValidationSummaryFieldComponentDefinitionFrame;
|
|
45
|
+
} | {
|
|
46
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
47
|
+
class: SuggestedValidationSummaryFormComponentDefinitionFrame;
|
|
48
|
+
} | {
|
|
49
|
+
kind: FieldComponentConfigKindType;
|
|
50
|
+
class: SuggestedValidationSummaryFieldComponentConfigOutline;
|
|
51
|
+
} | {
|
|
52
|
+
kind: FieldComponentDefinitionKindType;
|
|
53
|
+
class: SuggestedValidationSummaryFieldComponentDefinitionOutline;
|
|
54
|
+
} | {
|
|
55
|
+
kind: FormComponentDefinitionKindType;
|
|
56
|
+
class: SuggestedValidationSummaryFormComponentDefinitionOutline;
|
|
57
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SuggestedValidationSummaryComponentName = void 0;
|
|
4
|
+
exports.SuggestedValidationSummaryComponentName = "SuggestedValidationSummaryComponent";
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VnZ2VzdGVkLXZhbGlkYXRpb24tc3VtbWFyeS5vdXRsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvc3VnZ2VzdGVkLXZhbGlkYXRpb24tc3VtbWFyeS5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQWlCYSxRQUFBLHVDQUF1QyxHQUFHLHFDQUE4QyxDQUFDIn0=
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { FormConfigVisitorOutline } from "../visitor/base.outline";
|
|
2
|
+
import { AvailableFormComponentDefinitionOutlines } from "../dictionary.outline";
|
|
3
|
+
import { FieldComponentConfig, FieldComponentDefinition } from "../field-component.model";
|
|
4
|
+
import { FieldLayoutConfig, FieldLayoutDefinition } from "../field-layout.model";
|
|
5
|
+
import { FormComponentDefinition } from "../form-component.model";
|
|
6
|
+
import { TabContentFieldComponentConfigOutline, TabContentFieldComponentDefinitionOutline, TabContentFieldLayoutConfigOutline, TabContentFieldLayoutDefinitionOutline, TabContentFormComponentDefinitionOutline } from "./tab-content.outline";
|
|
7
|
+
export declare class TabContentFieldComponentConfig extends FieldComponentConfig implements TabContentFieldComponentConfigOutline {
|
|
8
|
+
componentDefinitions: AvailableFormComponentDefinitionOutlines[];
|
|
9
|
+
selected?: boolean;
|
|
10
|
+
constructor();
|
|
11
|
+
}
|
|
12
|
+
export declare class TabContentFieldComponentDefinition extends FieldComponentDefinition implements TabContentFieldComponentDefinitionOutline {
|
|
13
|
+
class: "TabContentComponent";
|
|
14
|
+
config?: TabContentFieldComponentConfig;
|
|
15
|
+
constructor();
|
|
16
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
export declare class TabContentFieldLayoutConfig extends FieldLayoutConfig implements TabContentFieldLayoutConfigOutline {
|
|
19
|
+
buttonLabel?: string;
|
|
20
|
+
constructor();
|
|
21
|
+
}
|
|
22
|
+
export declare class TabContentFieldLayoutDefinition extends FieldLayoutDefinition implements TabContentFieldLayoutDefinitionOutline {
|
|
23
|
+
class: "TabContentLayout";
|
|
24
|
+
config?: TabContentFieldLayoutConfig;
|
|
25
|
+
constructor();
|
|
26
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
27
|
+
}
|
|
28
|
+
export declare class TabContentFormComponentDefinition extends FormComponentDefinition implements TabContentFormComponentDefinitionOutline {
|
|
29
|
+
component: TabContentFieldComponentDefinitionOutline;
|
|
30
|
+
model?: never;
|
|
31
|
+
layout?: TabContentFieldLayoutDefinitionOutline;
|
|
32
|
+
constructor();
|
|
33
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
34
|
+
}
|
|
35
|
+
export declare const TabContentMap: ({
|
|
36
|
+
kind: "FieldComponentConfigKind";
|
|
37
|
+
def: typeof TabContentFieldComponentConfig;
|
|
38
|
+
class?: undefined;
|
|
39
|
+
} | {
|
|
40
|
+
kind: "FieldComponentDefinitionKind";
|
|
41
|
+
def: typeof TabContentFieldComponentDefinition;
|
|
42
|
+
class: "TabContentComponent";
|
|
43
|
+
} | {
|
|
44
|
+
kind: "FieldLayoutConfigKind";
|
|
45
|
+
def: typeof TabContentFieldLayoutConfig;
|
|
46
|
+
class?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
kind: "FieldLayoutDefinitionKind";
|
|
49
|
+
def: typeof TabContentFieldLayoutDefinition;
|
|
50
|
+
class: "TabContentLayout";
|
|
51
|
+
} | {
|
|
52
|
+
kind: "FormComponentDefinitionKind";
|
|
53
|
+
def: typeof TabContentFormComponentDefinition;
|
|
54
|
+
class: "TabContentComponent";
|
|
55
|
+
})[];
|
|
56
|
+
export declare const TabContentDefaults: {
|
|
57
|
+
FormComponentDefinitionKind: {
|
|
58
|
+
TabContentComponent: {
|
|
59
|
+
FieldComponentDefinitionKind: "TabContentComponent";
|
|
60
|
+
FieldLayoutDefinitionKind: "TabContentLayout";
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|