@researchdatabox/sails-ng-common 0.2.1 → 5.0.0-RC2
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,53 @@
|
|
|
1
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from '../dictionary.outline';
|
|
2
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from '../field-component.outline';
|
|
3
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from '../form-component.outline';
|
|
4
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from '../shared.outline';
|
|
5
|
+
export declare const RecordMetadataRetrieverComponentName: "RecordMetadataRetrieverComponent";
|
|
6
|
+
export type RecordMetadataRetrieverComponentNameType = typeof RecordMetadataRetrieverComponentName;
|
|
7
|
+
export interface RecordMetadataRetrieverFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
8
|
+
}
|
|
9
|
+
export interface RecordMetadataRetrieverFieldComponentConfigOutline extends RecordMetadataRetrieverFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
10
|
+
}
|
|
11
|
+
export interface RecordMetadataRetrieverFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
12
|
+
class: RecordMetadataRetrieverComponentNameType;
|
|
13
|
+
config?: RecordMetadataRetrieverFieldComponentConfigFrame;
|
|
14
|
+
}
|
|
15
|
+
export interface RecordMetadataRetrieverFieldComponentDefinitionOutline extends RecordMetadataRetrieverFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
16
|
+
class: RecordMetadataRetrieverComponentNameType;
|
|
17
|
+
config?: RecordMetadataRetrieverFieldComponentConfigOutline;
|
|
18
|
+
}
|
|
19
|
+
export interface RecordMetadataRetrieverFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
20
|
+
component: RecordMetadataRetrieverFieldComponentDefinitionFrame;
|
|
21
|
+
model?: never;
|
|
22
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Configures retrieval of metadata from a related ReDBox record.
|
|
26
|
+
*
|
|
27
|
+
* @extensionPoint Use `RecordMetadataRetrieverComponent` to populate form state through the supported record metadata lookup contract.
|
|
28
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
29
|
+
*/
|
|
30
|
+
export interface RecordMetadataRetrieverFormComponentDefinitionOutline extends RecordMetadataRetrieverFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
31
|
+
component: RecordMetadataRetrieverFieldComponentDefinitionOutline;
|
|
32
|
+
model?: never;
|
|
33
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
34
|
+
}
|
|
35
|
+
export type RecordMetadataRetrieverTypes = {
|
|
36
|
+
kind: FieldComponentConfigFrameKindType;
|
|
37
|
+
class: RecordMetadataRetrieverFieldComponentConfigFrame;
|
|
38
|
+
} | {
|
|
39
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
40
|
+
class: RecordMetadataRetrieverFieldComponentDefinitionFrame;
|
|
41
|
+
} | {
|
|
42
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
43
|
+
class: RecordMetadataRetrieverFormComponentDefinitionFrame;
|
|
44
|
+
} | {
|
|
45
|
+
kind: FieldComponentConfigKindType;
|
|
46
|
+
class: RecordMetadataRetrieverFieldComponentConfigOutline;
|
|
47
|
+
} | {
|
|
48
|
+
kind: FieldComponentDefinitionKindType;
|
|
49
|
+
class: RecordMetadataRetrieverFieldComponentDefinitionOutline;
|
|
50
|
+
} | {
|
|
51
|
+
kind: FormComponentDefinitionKindType;
|
|
52
|
+
class: RecordMetadataRetrieverFormComponentDefinitionOutline;
|
|
53
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecordMetadataRetrieverComponentName = void 0;
|
|
4
|
+
exports.RecordMetadataRetrieverComponentName = 'RecordMetadataRetrieverComponent';
|
|
5
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkLW1ldGFkYXRhLXJldHJpZXZlci5vdXRsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvcmVjb3JkLW1ldGFkYXRhLXJldHJpZXZlci5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQW9CYSxRQUFBLG9DQUFvQyxHQUFHLGtDQUEyQyxDQUFDIn0=
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { FieldModelConfig, FieldModelDefinition } from '../field-model.model';
|
|
2
|
+
import { FormComponentDefinition } from '../form-component.model';
|
|
3
|
+
import { FormConfigVisitorOutline } from '../visitor/base.outline';
|
|
4
|
+
import { FieldComponentConfig, FieldComponentDefinition } from '../field-component.model';
|
|
5
|
+
import { AvailableFieldLayoutDefinitionOutlines } from '../dictionary.outline';
|
|
6
|
+
import { RecordSelectorFieldComponentConfigOutline, RecordSelectorFieldComponentDefinitionOutline, RecordSelectorFieldModelConfigOutline, RecordSelectorFieldModelDefinitionOutline, RecordSelectorFormComponentDefinitionOutline, RecordSelectorModelValueType } from './record-selector.outline';
|
|
7
|
+
export declare class RecordSelectorFieldComponentConfig extends FieldComponentConfig implements RecordSelectorFieldComponentConfigOutline {
|
|
8
|
+
columnTitle: string;
|
|
9
|
+
relationshipId?: string;
|
|
10
|
+
recordType?: string;
|
|
11
|
+
workflowState: string;
|
|
12
|
+
filterMode: string;
|
|
13
|
+
filterFields: string[];
|
|
14
|
+
}
|
|
15
|
+
export declare class RecordSelectorFieldComponentDefinition extends FieldComponentDefinition implements RecordSelectorFieldComponentDefinitionOutline {
|
|
16
|
+
class: "RecordSelectorComponent";
|
|
17
|
+
config?: RecordSelectorFieldComponentConfigOutline;
|
|
18
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
19
|
+
}
|
|
20
|
+
export declare class RecordSelectorFieldModelConfig extends FieldModelConfig<RecordSelectorModelValueType> implements RecordSelectorFieldModelConfigOutline {
|
|
21
|
+
}
|
|
22
|
+
export declare class RecordSelectorFieldModelDefinition extends FieldModelDefinition<RecordSelectorModelValueType> implements RecordSelectorFieldModelDefinitionOutline {
|
|
23
|
+
class: "RecordSelectorModel";
|
|
24
|
+
config?: RecordSelectorFieldModelConfigOutline;
|
|
25
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
26
|
+
}
|
|
27
|
+
export declare class RecordSelectorFormComponentDefinition extends FormComponentDefinition implements RecordSelectorFormComponentDefinitionOutline {
|
|
28
|
+
component: RecordSelectorFieldComponentDefinitionOutline;
|
|
29
|
+
model?: RecordSelectorFieldModelDefinitionOutline;
|
|
30
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
31
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
export declare const RecordSelectorMap: ({
|
|
34
|
+
kind: "FieldComponentConfigKind";
|
|
35
|
+
def: typeof RecordSelectorFieldComponentConfig;
|
|
36
|
+
class?: undefined;
|
|
37
|
+
} | {
|
|
38
|
+
kind: "FieldComponentDefinitionKind";
|
|
39
|
+
def: typeof RecordSelectorFieldComponentDefinition;
|
|
40
|
+
class: "RecordSelectorComponent";
|
|
41
|
+
} | {
|
|
42
|
+
kind: "FieldModelConfigKind";
|
|
43
|
+
def: typeof RecordSelectorFieldModelConfig;
|
|
44
|
+
class?: undefined;
|
|
45
|
+
} | {
|
|
46
|
+
kind: "FieldModelDefinitionKind";
|
|
47
|
+
def: typeof RecordSelectorFieldModelDefinition;
|
|
48
|
+
class: "RecordSelectorModel";
|
|
49
|
+
} | {
|
|
50
|
+
kind: "FormComponentDefinitionKind";
|
|
51
|
+
def: typeof RecordSelectorFormComponentDefinition;
|
|
52
|
+
class: "RecordSelectorComponent";
|
|
53
|
+
})[];
|
|
54
|
+
export declare const RecordSelectorDefaults: {
|
|
55
|
+
FormComponentDefinitionKind: {
|
|
56
|
+
RecordSelectorComponent: {
|
|
57
|
+
FieldComponentDefinitionKind: "RecordSelectorComponent";
|
|
58
|
+
FieldModelDefinitionKind: "RecordSelectorModel";
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecordSelectorDefaults = exports.RecordSelectorMap = exports.RecordSelectorFormComponentDefinition = exports.RecordSelectorFieldModelDefinition = exports.RecordSelectorFieldModelConfig = exports.RecordSelectorFieldComponentDefinition = exports.RecordSelectorFieldComponentConfig = 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 field_component_model_1 = require("../field-component.model");
|
|
8
|
+
const record_selector_outline_1 = require("./record-selector.outline");
|
|
9
|
+
class RecordSelectorFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
10
|
+
columnTitle = 'Record title';
|
|
11
|
+
relationshipId;
|
|
12
|
+
recordType;
|
|
13
|
+
workflowState = '';
|
|
14
|
+
filterMode = 'default';
|
|
15
|
+
filterFields = [];
|
|
16
|
+
}
|
|
17
|
+
exports.RecordSelectorFieldComponentConfig = RecordSelectorFieldComponentConfig;
|
|
18
|
+
class RecordSelectorFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
19
|
+
class = record_selector_outline_1.RecordSelectorComponentName;
|
|
20
|
+
config;
|
|
21
|
+
async accept(visitor) {
|
|
22
|
+
await visitor.visitRecordSelectorFieldComponentDefinition(this);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
exports.RecordSelectorFieldComponentDefinition = RecordSelectorFieldComponentDefinition;
|
|
26
|
+
class RecordSelectorFieldModelConfig extends field_model_model_1.FieldModelConfig {
|
|
27
|
+
}
|
|
28
|
+
exports.RecordSelectorFieldModelConfig = RecordSelectorFieldModelConfig;
|
|
29
|
+
class RecordSelectorFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
|
|
30
|
+
class = record_selector_outline_1.RecordSelectorModelName;
|
|
31
|
+
config;
|
|
32
|
+
async accept(visitor) {
|
|
33
|
+
await visitor.visitRecordSelectorFieldModelDefinition(this);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
exports.RecordSelectorFieldModelDefinition = RecordSelectorFieldModelDefinition;
|
|
37
|
+
class RecordSelectorFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
38
|
+
component;
|
|
39
|
+
model;
|
|
40
|
+
layout;
|
|
41
|
+
async accept(visitor) {
|
|
42
|
+
await visitor.visitRecordSelectorFormComponentDefinition(this);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.RecordSelectorFormComponentDefinition = RecordSelectorFormComponentDefinition;
|
|
46
|
+
exports.RecordSelectorMap = [
|
|
47
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: RecordSelectorFieldComponentConfig },
|
|
48
|
+
{ kind: shared_outline_1.FieldComponentDefinitionKind, def: RecordSelectorFieldComponentDefinition, class: record_selector_outline_1.RecordSelectorComponentName },
|
|
49
|
+
{ kind: shared_outline_1.FieldModelConfigKind, def: RecordSelectorFieldModelConfig },
|
|
50
|
+
{ kind: shared_outline_1.FieldModelDefinitionKind, def: RecordSelectorFieldModelDefinition, class: record_selector_outline_1.RecordSelectorModelName },
|
|
51
|
+
{ kind: shared_outline_1.FormComponentDefinitionKind, def: RecordSelectorFormComponentDefinition, class: record_selector_outline_1.RecordSelectorComponentName },
|
|
52
|
+
];
|
|
53
|
+
exports.RecordSelectorDefaults = {
|
|
54
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
55
|
+
[record_selector_outline_1.RecordSelectorComponentName]: {
|
|
56
|
+
[shared_outline_1.FieldComponentDefinitionKind]: record_selector_outline_1.RecordSelectorComponentName,
|
|
57
|
+
[shared_outline_1.FieldModelDefinitionKind]: record_selector_outline_1.RecordSelectorModelName,
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkLXNlbGVjdG9yLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvcmVjb3JkLXNlbGVjdG9yLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDREQUE4RTtBQUM5RSxrRUFBa0U7QUFFbEUsc0RBTTJCO0FBQzNCLG9FQUEwRjtBQUUxRix1RUFTbUM7QUFFbkMsTUFBYSxrQ0FDWCxTQUFRLDRDQUFvQjtJQUc1QixXQUFXLEdBQUcsY0FBYyxDQUFDO0lBQzdCLGNBQWMsQ0FBVTtJQUN4QixVQUFVLENBQVU7SUFDcEIsYUFBYSxHQUFHLEVBQUUsQ0FBQztJQUNuQixVQUFVLEdBQUcsU0FBUyxDQUFDO0lBQ3ZCLFlBQVksR0FBYSxFQUFFLENBQUM7Q0FDN0I7QUFWRCxnRkFVQztBQUVELE1BQWEsc0NBQ1gsU0FBUSxnREFBd0I7SUFHaEMsS0FBSyxHQUFHLHFEQUEyQixDQUFDO0lBQ3BDLE1BQU0sQ0FBNkM7SUFFbkQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFpQztRQUM1QyxNQUFNLE9BQU8sQ0FBQywyQ0FBMkMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNsRSxDQUFDO0NBQ0Y7QUFWRCx3RkFVQztBQUVELE1BQWEsOEJBQ1gsU0FBUSxvQ0FBOEM7Q0FDSDtBQUZyRCx3RUFFcUQ7QUFFckQsTUFBYSxrQ0FDWCxTQUFRLHdDQUFrRDtJQUcxRCxLQUFLLEdBQUcsaURBQXVCLENBQUM7SUFDaEMsTUFBTSxDQUF5QztJQUUvQyxLQUFLLENBQUMsTUFBTSxDQUFDLE9BQWlDO1FBQzVDLE1BQU0sT0FBTyxDQUFDLHVDQUF1QyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzlELENBQUM7Q0FDRjtBQVZELGdGQVVDO0FBRUQsTUFBYSxxQ0FDWCxTQUFRLDhDQUF1QjtJQUd4QixTQUFTLENBQWlEO0lBQzFELEtBQUssQ0FBNkM7SUFDbEQsTUFBTSxDQUEwQztJQUV2RCxLQUFLLENBQUMsTUFBTSxDQUFDLE9BQWlDO1FBQzVDLE1BQU0sT0FBTyxDQUFDLDBDQUEwQyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ2pFLENBQUM7Q0FDRjtBQVhELHNGQVdDO0FBRVksUUFBQSxpQkFBaUIsR0FBRztJQUMvQixFQUFFLElBQUksRUFBRSx5Q0FBd0IsRUFBRSxHQUFHLEVBQUUsa0NBQWtDLEVBQUU7SUFDM0UsRUFBRSxJQUFJLEVBQUUsNkNBQTRCLEVBQUUsR0FBRyxFQUFFLHNDQUFzQyxFQUFFLEtBQUssRUFBRSxxREFBMkIsRUFBRTtJQUN2SCxFQUFFLElBQUksRUFBRSxxQ0FBb0IsRUFBRSxHQUFHLEVBQUUsOEJBQThCLEVBQUU7SUFDbkUsRUFBRSxJQUFJLEVBQUUseUNBQXdCLEVBQUUsR0FBRyxFQUFFLGtDQUFrQyxFQUFFLEtBQUssRUFBRSxpREFBdUIsRUFBRTtJQUMzRyxFQUFFLElBQUksRUFBRSw0Q0FBMkIsRUFBRSxHQUFHLEVBQUUscUNBQXFDLEVBQUUsS0FBSyxFQUFFLHFEQUEyQixFQUFFO0NBQ3RILENBQUM7QUFFVyxRQUFBLHNCQUFzQixHQUFHO0lBQ3BDLENBQUMsNENBQTJCLENBQUMsRUFBRTtRQUM3QixDQUFDLHFEQUEyQixDQUFDLEVBQUU7WUFDN0IsQ0FBQyw2Q0FBNEIsQ0FBQyxFQUFFLHFEQUEyQjtZQUMzRCxDQUFDLHlDQUF3QixDQUFDLEVBQUUsaURBQXVCO1NBQ3BEO0tBQ0Y7Q0FDRixDQUFDIn0=
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FieldModelConfigFrameKindType, FieldModelConfigKindType, FieldModelDefinitionFrameKindType, FieldModelDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from '../shared.outline';
|
|
2
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from '../field-component.outline';
|
|
3
|
+
import { FieldModelConfigFrame, FieldModelConfigOutline, FieldModelDefinitionFrame, FieldModelDefinitionOutline } from '../field-model.outline';
|
|
4
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from '../form-component.outline';
|
|
5
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines } from '../dictionary.outline';
|
|
6
|
+
export declare const RecordSelectorComponentName: "RecordSelectorComponent";
|
|
7
|
+
export type RecordSelectorComponentNameType = typeof RecordSelectorComponentName;
|
|
8
|
+
export interface RecordSelectorFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
9
|
+
columnTitle?: string;
|
|
10
|
+
relationshipId?: string;
|
|
11
|
+
recordType?: string;
|
|
12
|
+
workflowState?: string;
|
|
13
|
+
filterMode?: string;
|
|
14
|
+
filterFields?: string[];
|
|
15
|
+
}
|
|
16
|
+
export interface RecordSelectorFieldComponentConfigOutline extends RecordSelectorFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
17
|
+
}
|
|
18
|
+
export interface RecordSelectorFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
19
|
+
class: RecordSelectorComponentNameType;
|
|
20
|
+
config?: RecordSelectorFieldComponentConfigFrame;
|
|
21
|
+
}
|
|
22
|
+
export interface RecordSelectorFieldComponentDefinitionOutline extends RecordSelectorFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
23
|
+
class: RecordSelectorComponentNameType;
|
|
24
|
+
config?: RecordSelectorFieldComponentConfigOutline;
|
|
25
|
+
}
|
|
26
|
+
export declare const RecordSelectorModelName: "RecordSelectorModel";
|
|
27
|
+
export type RecordSelectorModelNameType = typeof RecordSelectorModelName;
|
|
28
|
+
export interface RecordSelectorValue {
|
|
29
|
+
oid: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
}
|
|
32
|
+
export type RecordSelectorModelValueType = RecordSelectorValue | null;
|
|
33
|
+
export interface RecordSelectorFieldModelConfigFrame extends FieldModelConfigFrame<RecordSelectorModelValueType> {
|
|
34
|
+
}
|
|
35
|
+
export interface RecordSelectorFieldModelConfigOutline extends RecordSelectorFieldModelConfigFrame, FieldModelConfigOutline<RecordSelectorModelValueType> {
|
|
36
|
+
}
|
|
37
|
+
export interface RecordSelectorFieldModelDefinitionFrame extends FieldModelDefinitionFrame<RecordSelectorModelValueType> {
|
|
38
|
+
class: RecordSelectorModelNameType;
|
|
39
|
+
config?: RecordSelectorFieldModelConfigFrame;
|
|
40
|
+
}
|
|
41
|
+
export interface RecordSelectorFieldModelDefinitionOutline extends RecordSelectorFieldModelDefinitionFrame, FieldModelDefinitionOutline<RecordSelectorModelValueType> {
|
|
42
|
+
class: RecordSelectorModelNameType;
|
|
43
|
+
config?: RecordSelectorFieldModelConfigOutline;
|
|
44
|
+
}
|
|
45
|
+
export interface RecordSelectorFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
46
|
+
component: RecordSelectorFieldComponentDefinitionFrame;
|
|
47
|
+
model?: RecordSelectorFieldModelDefinitionFrame;
|
|
48
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Configures lookup and selection of another ReDBox record.
|
|
52
|
+
*
|
|
53
|
+
* @extensionPoint Use `RecordSelectorComponent` with `RecordSelectorModel` for relationship or record-reference fields.
|
|
54
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
55
|
+
*/
|
|
56
|
+
export interface RecordSelectorFormComponentDefinitionOutline extends RecordSelectorFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
57
|
+
component: RecordSelectorFieldComponentDefinitionOutline;
|
|
58
|
+
model?: RecordSelectorFieldModelDefinitionOutline;
|
|
59
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
60
|
+
}
|
|
61
|
+
export type RecordSelectorTypes = {
|
|
62
|
+
kind: FieldComponentConfigFrameKindType;
|
|
63
|
+
class: RecordSelectorFieldComponentConfigFrame;
|
|
64
|
+
} | {
|
|
65
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
66
|
+
class: RecordSelectorFieldComponentDefinitionFrame;
|
|
67
|
+
} | {
|
|
68
|
+
kind: FieldModelConfigFrameKindType;
|
|
69
|
+
class: RecordSelectorFieldModelConfigFrame;
|
|
70
|
+
} | {
|
|
71
|
+
kind: FieldModelDefinitionFrameKindType;
|
|
72
|
+
class: RecordSelectorFieldModelDefinitionFrame;
|
|
73
|
+
} | {
|
|
74
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
75
|
+
class: RecordSelectorFormComponentDefinitionFrame;
|
|
76
|
+
} | {
|
|
77
|
+
kind: FieldComponentConfigKindType;
|
|
78
|
+
class: RecordSelectorFieldComponentConfigOutline;
|
|
79
|
+
} | {
|
|
80
|
+
kind: FieldComponentDefinitionKindType;
|
|
81
|
+
class: RecordSelectorFieldComponentDefinitionOutline;
|
|
82
|
+
} | {
|
|
83
|
+
kind: FieldModelConfigKindType;
|
|
84
|
+
class: RecordSelectorFieldModelConfigOutline;
|
|
85
|
+
} | {
|
|
86
|
+
kind: FieldModelDefinitionKindType;
|
|
87
|
+
class: RecordSelectorFieldModelDefinitionOutline;
|
|
88
|
+
} | {
|
|
89
|
+
kind: FormComponentDefinitionKindType;
|
|
90
|
+
class: RecordSelectorFormComponentDefinitionOutline;
|
|
91
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RecordSelectorModelName = exports.RecordSelectorComponentName = void 0;
|
|
4
|
+
exports.RecordSelectorComponentName = 'RecordSelectorComponent';
|
|
5
|
+
exports.RecordSelectorModelName = 'RecordSelectorModel';
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjb3JkLXNlbGVjdG9yLm91dGxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29uZmlnL2NvbXBvbmVudC9yZWNvcmQtc2VsZWN0b3Iub3V0bGluZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUEyQmEsUUFBQSwyQkFBMkIsR0FBRyx5QkFBa0MsQ0FBQztBQTRCakUsUUFBQSx1QkFBdUIsR0FBRyxxQkFBOEIsQ0FBQyJ9
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { FieldComponentConfig, FieldComponentDefinition } from '../field-component.model';
|
|
2
|
+
import { FieldModelConfig, FieldModelDefinition } from '../field-model.model';
|
|
3
|
+
import { FormComponentDefinition } from '../form-component.model';
|
|
4
|
+
import { FieldLayoutDefinition } from '../field-layout.model';
|
|
5
|
+
import { ActionRowFieldLayoutConfig } from './action-row-layout.model';
|
|
6
|
+
import { FormConfigVisitorOutline } from '../visitor/base.outline';
|
|
7
|
+
import { RepeatableElementFieldLayoutConfigOutline, RepeatableElementFieldLayoutDefinitionOutline, RepeatableFieldComponentConfigOutline, RepeatableFieldComponentDefinitionOutline, RepeatableFieldModelConfigOutline, RepeatableFieldModelDefinitionOutline, RepeatableFormComponentDefinitionOutline, RepeatableModelValueType } from './repeatable.outline';
|
|
8
|
+
import { AvailableFieldLayoutDefinitionOutlines, AvailableFormComponentDefinitionOutlines } from '../dictionary.outline';
|
|
9
|
+
export declare class RepeatableFieldComponentConfig extends FieldComponentConfig implements RepeatableFieldComponentConfigOutline {
|
|
10
|
+
elementTemplate: AvailableFormComponentDefinitionOutlines;
|
|
11
|
+
addButtonShow: boolean;
|
|
12
|
+
allowZeroRows: boolean;
|
|
13
|
+
hideWhenZeroRows: boolean;
|
|
14
|
+
canSort?: boolean;
|
|
15
|
+
constructor();
|
|
16
|
+
/**
|
|
17
|
+
* Create a unique ID using the current timestamp and a random number.
|
|
18
|
+
* This unique id must not be stored in the database.
|
|
19
|
+
* It will be different for each form load.
|
|
20
|
+
* It is for distinguishing the repeatable element entries.
|
|
21
|
+
*/
|
|
22
|
+
static getLocalUID(): string;
|
|
23
|
+
}
|
|
24
|
+
export declare class RepeatableFieldComponentDefinition extends FieldComponentDefinition implements RepeatableFieldComponentDefinitionOutline {
|
|
25
|
+
class: "RepeatableComponent";
|
|
26
|
+
config?: RepeatableFieldComponentConfigOutline;
|
|
27
|
+
constructor();
|
|
28
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
29
|
+
}
|
|
30
|
+
export declare class RepeatableFieldModelConfig extends FieldModelConfig<RepeatableModelValueType> implements RepeatableFieldModelConfigOutline {
|
|
31
|
+
constructor();
|
|
32
|
+
}
|
|
33
|
+
export declare class RepeatableFieldModelDefinition extends FieldModelDefinition<RepeatableModelValueType> implements RepeatableFieldModelDefinitionOutline {
|
|
34
|
+
class: "RepeatableModel";
|
|
35
|
+
config?: RepeatableFieldModelConfigOutline;
|
|
36
|
+
constructor();
|
|
37
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
38
|
+
}
|
|
39
|
+
export declare class RepeatableElementFieldLayoutConfig extends ActionRowFieldLayoutConfig implements RepeatableElementFieldLayoutConfigOutline {
|
|
40
|
+
constructor();
|
|
41
|
+
}
|
|
42
|
+
export declare class RepeatableElementFieldLayoutDefinition extends FieldLayoutDefinition implements RepeatableElementFieldLayoutDefinitionOutline {
|
|
43
|
+
class: "RepeatableElementLayout";
|
|
44
|
+
config?: RepeatableElementFieldLayoutConfigOutline;
|
|
45
|
+
constructor();
|
|
46
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
47
|
+
}
|
|
48
|
+
export declare class RepeatableFormComponentDefinition extends FormComponentDefinition implements RepeatableFormComponentDefinitionOutline {
|
|
49
|
+
component: RepeatableFieldComponentDefinitionOutline;
|
|
50
|
+
model?: RepeatableFieldModelDefinitionOutline;
|
|
51
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
52
|
+
constructor();
|
|
53
|
+
accept(visitor: FormConfigVisitorOutline): Promise<void>;
|
|
54
|
+
}
|
|
55
|
+
export declare const RepeatableMap: ({
|
|
56
|
+
kind: "FieldComponentConfigKind";
|
|
57
|
+
def: typeof RepeatableFieldComponentConfig;
|
|
58
|
+
class?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
kind: "FieldComponentDefinitionKind";
|
|
61
|
+
def: typeof RepeatableFieldComponentDefinition;
|
|
62
|
+
class: "RepeatableComponent";
|
|
63
|
+
} | {
|
|
64
|
+
kind: "FieldModelConfigKind";
|
|
65
|
+
def: typeof RepeatableFieldModelConfig;
|
|
66
|
+
class?: undefined;
|
|
67
|
+
} | {
|
|
68
|
+
kind: "FieldModelDefinitionKind";
|
|
69
|
+
def: typeof RepeatableFieldModelDefinition;
|
|
70
|
+
class: "RepeatableModel";
|
|
71
|
+
} | {
|
|
72
|
+
kind: "FieldLayoutConfigKind";
|
|
73
|
+
def: typeof RepeatableElementFieldLayoutConfig;
|
|
74
|
+
class?: undefined;
|
|
75
|
+
} | {
|
|
76
|
+
kind: "FieldLayoutDefinitionKind";
|
|
77
|
+
def: typeof RepeatableElementFieldLayoutDefinition;
|
|
78
|
+
class: "RepeatableElementLayout";
|
|
79
|
+
} | {
|
|
80
|
+
kind: "FormComponentDefinitionKind";
|
|
81
|
+
def: typeof RepeatableFormComponentDefinition;
|
|
82
|
+
class: "RepeatableComponent";
|
|
83
|
+
})[];
|
|
84
|
+
export declare const RepeatableDefaults: {
|
|
85
|
+
FormComponentDefinitionKind: {
|
|
86
|
+
RepeatableComponent: {
|
|
87
|
+
FieldComponentDefinitionKind: "RepeatableComponent";
|
|
88
|
+
FieldModelDefinitionKind: "RepeatableModel";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepeatableDefaults = exports.RepeatableMap = exports.RepeatableFormComponentDefinition = exports.RepeatableElementFieldLayoutDefinition = exports.RepeatableElementFieldLayoutConfig = exports.RepeatableFieldModelDefinition = exports.RepeatableFieldModelConfig = exports.RepeatableFieldComponentDefinition = exports.RepeatableFieldComponentConfig = void 0;
|
|
4
|
+
const field_component_model_1 = require("../field-component.model");
|
|
5
|
+
const field_model_model_1 = require("../field-model.model");
|
|
6
|
+
const form_component_model_1 = require("../form-component.model");
|
|
7
|
+
const field_layout_model_1 = require("../field-layout.model");
|
|
8
|
+
const action_row_layout_model_1 = require("./action-row-layout.model");
|
|
9
|
+
const shared_outline_1 = require("../shared.outline");
|
|
10
|
+
const repeatable_outline_1 = require("./repeatable.outline");
|
|
11
|
+
/* Repeatable Component */
|
|
12
|
+
class RepeatableFieldComponentConfig extends field_component_model_1.FieldComponentConfig {
|
|
13
|
+
elementTemplate;
|
|
14
|
+
addButtonShow = true;
|
|
15
|
+
allowZeroRows = false;
|
|
16
|
+
hideWhenZeroRows = false;
|
|
17
|
+
canSort;
|
|
18
|
+
constructor() {
|
|
19
|
+
super();
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Create a unique ID using the current timestamp and a random number.
|
|
23
|
+
* This unique id must not be stored in the database.
|
|
24
|
+
* It will be different for each form load.
|
|
25
|
+
* It is for distinguishing the repeatable element entries.
|
|
26
|
+
*/
|
|
27
|
+
static getLocalUID() {
|
|
28
|
+
const randomNumber = Math.floor(Math.random() * 10000)
|
|
29
|
+
.toString()
|
|
30
|
+
.padStart(5, '0');
|
|
31
|
+
return `${Date.now()}-${randomNumber}`;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.RepeatableFieldComponentConfig = RepeatableFieldComponentConfig;
|
|
35
|
+
class RepeatableFieldComponentDefinition extends field_component_model_1.FieldComponentDefinition {
|
|
36
|
+
class = repeatable_outline_1.RepeatableComponentName;
|
|
37
|
+
config;
|
|
38
|
+
constructor() {
|
|
39
|
+
super();
|
|
40
|
+
}
|
|
41
|
+
async accept(visitor) {
|
|
42
|
+
await visitor.visitRepeatableFieldComponentDefinition(this);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.RepeatableFieldComponentDefinition = RepeatableFieldComponentDefinition;
|
|
46
|
+
/* Repeatable Model */
|
|
47
|
+
class RepeatableFieldModelConfig extends field_model_model_1.FieldModelConfig {
|
|
48
|
+
constructor() {
|
|
49
|
+
super();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.RepeatableFieldModelConfig = RepeatableFieldModelConfig;
|
|
53
|
+
class RepeatableFieldModelDefinition extends field_model_model_1.FieldModelDefinition {
|
|
54
|
+
class = repeatable_outline_1.RepeatableModelName;
|
|
55
|
+
config;
|
|
56
|
+
constructor() {
|
|
57
|
+
super();
|
|
58
|
+
}
|
|
59
|
+
async accept(visitor) {
|
|
60
|
+
await visitor.visitRepeatableFieldModelDefinition(this);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.RepeatableFieldModelDefinition = RepeatableFieldModelDefinition;
|
|
64
|
+
/* Repeatable Element Layout */
|
|
65
|
+
class RepeatableElementFieldLayoutConfig extends action_row_layout_model_1.ActionRowFieldLayoutConfig {
|
|
66
|
+
constructor() {
|
|
67
|
+
super();
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
exports.RepeatableElementFieldLayoutConfig = RepeatableElementFieldLayoutConfig;
|
|
71
|
+
class RepeatableElementFieldLayoutDefinition extends field_layout_model_1.FieldLayoutDefinition {
|
|
72
|
+
class = repeatable_outline_1.RepeatableElementLayoutName;
|
|
73
|
+
config;
|
|
74
|
+
constructor() {
|
|
75
|
+
super();
|
|
76
|
+
}
|
|
77
|
+
async accept(visitor) {
|
|
78
|
+
await visitor.visitRepeatableElementFieldLayoutDefinition(this);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.RepeatableElementFieldLayoutDefinition = RepeatableElementFieldLayoutDefinition;
|
|
82
|
+
/* Repeatable Form Component */
|
|
83
|
+
class RepeatableFormComponentDefinition extends form_component_model_1.FormComponentDefinition {
|
|
84
|
+
component;
|
|
85
|
+
model;
|
|
86
|
+
layout;
|
|
87
|
+
constructor() {
|
|
88
|
+
super();
|
|
89
|
+
}
|
|
90
|
+
async accept(visitor) {
|
|
91
|
+
await visitor.visitRepeatableFormComponentDefinition(this);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.RepeatableFormComponentDefinition = RepeatableFormComponentDefinition;
|
|
95
|
+
exports.RepeatableMap = [
|
|
96
|
+
{ kind: shared_outline_1.FieldComponentConfigKind, def: RepeatableFieldComponentConfig },
|
|
97
|
+
{ kind: shared_outline_1.FieldComponentDefinitionKind, def: RepeatableFieldComponentDefinition, class: repeatable_outline_1.RepeatableComponentName },
|
|
98
|
+
{ kind: shared_outline_1.FieldModelConfigKind, def: RepeatableFieldModelConfig },
|
|
99
|
+
{ kind: shared_outline_1.FieldModelDefinitionKind, def: RepeatableFieldModelDefinition, class: repeatable_outline_1.RepeatableModelName },
|
|
100
|
+
{ kind: shared_outline_1.FieldLayoutConfigKind, def: RepeatableElementFieldLayoutConfig },
|
|
101
|
+
{ kind: shared_outline_1.FieldLayoutDefinitionKind, def: RepeatableElementFieldLayoutDefinition, class: repeatable_outline_1.RepeatableElementLayoutName },
|
|
102
|
+
{ kind: shared_outline_1.FormComponentDefinitionKind, def: RepeatableFormComponentDefinition, class: repeatable_outline_1.RepeatableComponentName },
|
|
103
|
+
];
|
|
104
|
+
exports.RepeatableDefaults = {
|
|
105
|
+
[shared_outline_1.FormComponentDefinitionKind]: {
|
|
106
|
+
[repeatable_outline_1.RepeatableComponentName]: {
|
|
107
|
+
[shared_outline_1.FieldComponentDefinitionKind]: repeatable_outline_1.RepeatableComponentName,
|
|
108
|
+
[shared_outline_1.FieldModelDefinitionKind]: repeatable_outline_1.RepeatableModelName,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwZWF0YWJsZS5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9jb25maWcvY29tcG9uZW50L3JlcGVhdGFibGUubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsb0VBQTBGO0FBQzFGLDREQUE4RTtBQUM5RSxrRUFBa0U7QUFDbEUsOERBQWlGO0FBQ2pGLHVFQUF1RTtBQUV2RSxzREFRMkI7QUFDM0IsNkRBWThCO0FBTTlCLDBCQUEwQjtBQUMxQixNQUFhLDhCQUNYLFNBQVEsNENBQW9CO0lBRzVCLGVBQWUsQ0FBNEM7SUFDM0QsYUFBYSxHQUFHLElBQUksQ0FBQztJQUNyQixhQUFhLEdBQUcsS0FBSyxDQUFDO0lBQ3RCLGdCQUFnQixHQUFHLEtBQUssQ0FBQztJQUN6QixPQUFPLENBQVc7SUFFbEI7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7SUFFRDs7Ozs7T0FLRztJQUNJLE1BQU0sQ0FBQyxXQUFXO1FBQ3ZCLE1BQU0sWUFBWSxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRSxHQUFHLEtBQUssQ0FBQzthQUNuRCxRQUFRLEVBQUU7YUFDVixRQUFRLENBQUMsQ0FBQyxFQUFFLEdBQUcsQ0FBQyxDQUFDO1FBQ3BCLE9BQU8sR0FBRyxJQUFJLENBQUMsR0FBRyxFQUFFLElBQUksWUFBWSxFQUFFLENBQUM7SUFDekMsQ0FBQztDQUNGO0FBMUJELHdFQTBCQztBQUVELE1BQWEsa0NBQ1gsU0FBUSxnREFBd0I7SUFHaEMsS0FBSyxHQUFHLDRDQUF1QixDQUFDO0lBQ2hDLE1BQU0sQ0FBeUM7SUFFL0M7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7SUFFRCxLQUFLLENBQUMsTUFBTSxDQUFDLE9BQWlDO1FBQzVDLE1BQU0sT0FBTyxDQUFDLHVDQUF1QyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQzlELENBQUM7Q0FDRjtBQWRELGdGQWNDO0FBRUQsc0JBQXNCO0FBQ3RCLE1BQWEsMEJBQ1gsU0FBUSxvQ0FBMEM7SUFHbEQ7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7Q0FDRjtBQVBELGdFQU9DO0FBRUQsTUFBYSw4QkFDWCxTQUFRLHdDQUE4QztJQUd0RCxLQUFLLEdBQUcsd0NBQW1CLENBQUM7SUFDNUIsTUFBTSxDQUFxQztJQUUzQztRQUNFLEtBQUssRUFBRSxDQUFDO0lBQ1YsQ0FBQztJQUVELEtBQUssQ0FBQyxNQUFNLENBQUMsT0FBaUM7UUFDNUMsTUFBTSxPQUFPLENBQUMsbUNBQW1DLENBQUMsSUFBSSxDQUFDLENBQUM7SUFDMUQsQ0FBQztDQUNGO0FBZEQsd0VBY0M7QUFFRCwrQkFBK0I7QUFDL0IsTUFBYSxrQ0FDWCxTQUFRLG9EQUEwQjtJQUdsQztRQUNFLEtBQUssRUFBRSxDQUFDO0lBQ1YsQ0FBQztDQUNGO0FBUEQsZ0ZBT0M7QUFFRCxNQUFhLHNDQUNYLFNBQVEsMENBQXFCO0lBR3RCLEtBQUssR0FBRyxnREFBMkIsQ0FBQztJQUNwQyxNQUFNLENBQTZDO0lBRTFEO1FBQ0UsS0FBSyxFQUFFLENBQUM7SUFDVixDQUFDO0lBRUQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFpQztRQUM1QyxNQUFNLE9BQU8sQ0FBQywyQ0FBMkMsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUNsRSxDQUFDO0NBQ0Y7QUFkRCx3RkFjQztBQUVELCtCQUErQjtBQUMvQixNQUFhLGlDQUNYLFNBQVEsOENBQXVCO0lBR3hCLFNBQVMsQ0FBNkM7SUFDdEQsS0FBSyxDQUF5QztJQUM5QyxNQUFNLENBQTBDO0lBRXZEO1FBQ0UsS0FBSyxFQUFFLENBQUM7SUFDVixDQUFDO0lBRUQsS0FBSyxDQUFDLE1BQU0sQ0FBQyxPQUFpQztRQUM1QyxNQUFNLE9BQU8sQ0FBQyxzQ0FBc0MsQ0FBQyxJQUFJLENBQUMsQ0FBQztJQUM3RCxDQUFDO0NBQ0Y7QUFmRCw4RUFlQztBQUVZLFFBQUEsYUFBYSxHQUFHO0lBQzNCLEVBQUUsSUFBSSxFQUFFLHlDQUF3QixFQUFFLEdBQUcsRUFBRSw4QkFBOEIsRUFBRTtJQUN2RSxFQUFFLElBQUksRUFBRSw2Q0FBNEIsRUFBRSxHQUFHLEVBQUUsa0NBQWtDLEVBQUUsS0FBSyxFQUFFLDRDQUF1QixFQUFFO0lBQy9HLEVBQUUsSUFBSSxFQUFFLHFDQUFvQixFQUFFLEdBQUcsRUFBRSwwQkFBMEIsRUFBRTtJQUMvRCxFQUFFLElBQUksRUFBRSx5Q0FBd0IsRUFBRSxHQUFHLEVBQUUsOEJBQThCLEVBQUUsS0FBSyxFQUFFLHdDQUFtQixFQUFFO0lBQ25HLEVBQUUsSUFBSSxFQUFFLHNDQUFxQixFQUFFLEdBQUcsRUFBRSxrQ0FBa0MsRUFBRTtJQUN4RSxFQUFFLElBQUksRUFBRSwwQ0FBeUIsRUFBRSxHQUFHLEVBQUUsc0NBQXNDLEVBQUUsS0FBSyxFQUFFLGdEQUEyQixFQUFFO0lBQ3BILEVBQUUsSUFBSSxFQUFFLDRDQUEyQixFQUFFLEdBQUcsRUFBRSxpQ0FBaUMsRUFBRSxLQUFLLEVBQUUsNENBQXVCLEVBQUU7Q0FDOUcsQ0FBQztBQUNXLFFBQUEsa0JBQWtCLEdBQUc7SUFDaEMsQ0FBQyw0Q0FBMkIsQ0FBQyxFQUFFO1FBQzdCLENBQUMsNENBQXVCLENBQUMsRUFBRTtZQUN6QixDQUFDLDZDQUE0QixDQUFDLEVBQUUsNENBQXVCO1lBQ3ZELENBQUMseUNBQXdCLENBQUMsRUFBRSx3Q0FBbUI7U0FDaEQ7S0FDRjtDQUNGLENBQUMifQ==
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import { FieldLayoutConfigFrame, FieldLayoutConfigOutline, FieldLayoutDefinitionFrame, FieldLayoutDefinitionOutline } from '../field-layout.outline';
|
|
2
|
+
import { ActionRowFieldLayoutConfigFrame, ActionRowFieldLayoutConfigOutline } from './action-row-layout.outline';
|
|
3
|
+
import { AvailableFieldLayoutDefinitionFrames, AvailableFieldLayoutDefinitionOutlines, AvailableFormComponentDefinitionFrames, AvailableFormComponentDefinitionOutlines } from '../dictionary.outline';
|
|
4
|
+
import { FormComponentDefinitionFrame, FormComponentDefinitionOutline } from '../form-component.outline';
|
|
5
|
+
import { FieldModelConfigFrame, FieldModelConfigOutline, FieldModelDefinitionFrame, FieldModelDefinitionOutline } from '../field-model.outline';
|
|
6
|
+
import { FieldComponentConfigFrame, FieldComponentConfigOutline, FieldComponentDefinitionFrame, FieldComponentDefinitionOutline } from '../field-component.outline';
|
|
7
|
+
import { FieldComponentConfigFrameKindType, FieldComponentConfigKindType, FieldComponentDefinitionFrameKindType, FieldComponentDefinitionKindType, FieldLayoutConfigFrameKindType, FieldLayoutConfigKindType, FieldLayoutDefinitionFrameKindType, FieldLayoutDefinitionKindType, FieldModelConfigFrameKindType, FieldModelConfigKindType, FieldModelDefinitionFrameKindType, FieldModelDefinitionKindType, FormComponentDefinitionFrameKindType, FormComponentDefinitionKindType } from '../shared.outline';
|
|
8
|
+
export declare const RepeatableComponentName: "RepeatableComponent";
|
|
9
|
+
export type RepeatableComponentNameType = typeof RepeatableComponentName;
|
|
10
|
+
export interface RepeatableFieldComponentConfigFrame extends FieldComponentConfigFrame {
|
|
11
|
+
elementTemplate: AvailableFormComponentDefinitionFrames;
|
|
12
|
+
addButtonShow?: boolean;
|
|
13
|
+
allowZeroRows?: boolean;
|
|
14
|
+
hideWhenZeroRows?: boolean;
|
|
15
|
+
canSort?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface RepeatableFieldComponentConfigOutline extends RepeatableFieldComponentConfigFrame, FieldComponentConfigOutline {
|
|
18
|
+
elementTemplate: AvailableFormComponentDefinitionOutlines;
|
|
19
|
+
}
|
|
20
|
+
export interface RepeatableFieldComponentDefinitionFrame extends FieldComponentDefinitionFrame {
|
|
21
|
+
class: RepeatableComponentNameType;
|
|
22
|
+
config?: RepeatableFieldComponentConfigFrame;
|
|
23
|
+
}
|
|
24
|
+
export interface RepeatableFieldComponentDefinitionOutline extends RepeatableFieldComponentDefinitionFrame, FieldComponentDefinitionOutline {
|
|
25
|
+
class: RepeatableComponentNameType;
|
|
26
|
+
config?: RepeatableFieldComponentConfigOutline;
|
|
27
|
+
}
|
|
28
|
+
export declare const RepeatableModelName: "RepeatableModel";
|
|
29
|
+
export type RepeatableModelNameType = typeof RepeatableModelName;
|
|
30
|
+
export type RepeatableModelValueType = unknown[];
|
|
31
|
+
export interface RepeatableFieldModelConfigFrame extends FieldModelConfigFrame<RepeatableModelValueType> {
|
|
32
|
+
}
|
|
33
|
+
export interface RepeatableFieldModelConfigOutline extends RepeatableFieldModelConfigFrame, FieldModelConfigOutline<RepeatableModelValueType> {
|
|
34
|
+
}
|
|
35
|
+
export interface RepeatableFieldModelDefinitionFrame extends FieldModelDefinitionFrame<RepeatableModelValueType> {
|
|
36
|
+
class: RepeatableModelNameType;
|
|
37
|
+
config?: RepeatableFieldModelConfigFrame;
|
|
38
|
+
}
|
|
39
|
+
export interface RepeatableFieldModelDefinitionOutline extends RepeatableFieldModelDefinitionFrame, FieldModelDefinitionOutline<RepeatableModelValueType> {
|
|
40
|
+
class: RepeatableModelNameType;
|
|
41
|
+
config?: RepeatableFieldModelConfigOutline;
|
|
42
|
+
}
|
|
43
|
+
export declare const RepeatableElementLayoutName: "RepeatableElementLayout";
|
|
44
|
+
export type RepeatableElementLayoutNameType = typeof RepeatableElementLayoutName;
|
|
45
|
+
export interface RepeatableElementFieldLayoutConfigFrame extends ActionRowFieldLayoutConfigFrame, FieldLayoutConfigFrame {
|
|
46
|
+
}
|
|
47
|
+
export interface RepeatableElementFieldLayoutConfigOutline extends RepeatableElementFieldLayoutConfigFrame, ActionRowFieldLayoutConfigOutline, FieldLayoutConfigOutline {
|
|
48
|
+
}
|
|
49
|
+
export interface RepeatableElementFieldLayoutDefinitionFrame extends FieldLayoutDefinitionFrame {
|
|
50
|
+
class: RepeatableElementLayoutNameType;
|
|
51
|
+
config?: RepeatableElementFieldLayoutConfigFrame;
|
|
52
|
+
}
|
|
53
|
+
export interface RepeatableElementFieldLayoutDefinitionOutline extends RepeatableElementFieldLayoutDefinitionFrame, FieldLayoutDefinitionOutline {
|
|
54
|
+
class: RepeatableElementLayoutNameType;
|
|
55
|
+
config?: RepeatableElementFieldLayoutConfigOutline;
|
|
56
|
+
}
|
|
57
|
+
export interface RepeatableFormComponentDefinitionFrame extends FormComponentDefinitionFrame {
|
|
58
|
+
component: RepeatableFieldComponentDefinitionFrame;
|
|
59
|
+
model?: RepeatableFieldModelDefinitionFrame;
|
|
60
|
+
layout?: AvailableFieldLayoutDefinitionFrames;
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Repeats a configured element template and models the resulting array of values.
|
|
64
|
+
*
|
|
65
|
+
* @extensionPoint Use `RepeatableComponent` with `RepeatableModel` for zero-or-more structured form entries.
|
|
66
|
+
* @see https://github.com/redbox-mint/redbox-portal/wiki/Configuring-Record-Forms
|
|
67
|
+
*/
|
|
68
|
+
export interface RepeatableFormComponentDefinitionOutline extends RepeatableFormComponentDefinitionFrame, FormComponentDefinitionOutline {
|
|
69
|
+
component: RepeatableFieldComponentDefinitionOutline;
|
|
70
|
+
model?: RepeatableFieldModelDefinitionOutline;
|
|
71
|
+
layout?: AvailableFieldLayoutDefinitionOutlines;
|
|
72
|
+
}
|
|
73
|
+
export type RepeatableTypes = {
|
|
74
|
+
kind: FieldComponentConfigFrameKindType;
|
|
75
|
+
class: RepeatableFieldComponentConfigFrame;
|
|
76
|
+
} | {
|
|
77
|
+
kind: FieldComponentDefinitionFrameKindType;
|
|
78
|
+
class: RepeatableFieldComponentDefinitionFrame;
|
|
79
|
+
} | {
|
|
80
|
+
kind: FieldModelConfigFrameKindType;
|
|
81
|
+
class: RepeatableFieldModelConfigFrame;
|
|
82
|
+
} | {
|
|
83
|
+
kind: FieldModelDefinitionFrameKindType;
|
|
84
|
+
class: RepeatableFieldModelDefinitionFrame;
|
|
85
|
+
} | {
|
|
86
|
+
kind: FieldLayoutConfigFrameKindType;
|
|
87
|
+
class: RepeatableElementFieldLayoutConfigFrame;
|
|
88
|
+
} | {
|
|
89
|
+
kind: FieldLayoutDefinitionFrameKindType;
|
|
90
|
+
class: RepeatableElementFieldLayoutDefinitionFrame;
|
|
91
|
+
} | {
|
|
92
|
+
kind: FormComponentDefinitionFrameKindType;
|
|
93
|
+
class: RepeatableFormComponentDefinitionFrame;
|
|
94
|
+
} | {
|
|
95
|
+
kind: FieldComponentConfigKindType;
|
|
96
|
+
class: RepeatableFieldComponentConfigOutline;
|
|
97
|
+
} | {
|
|
98
|
+
kind: FieldComponentDefinitionKindType;
|
|
99
|
+
class: RepeatableFieldComponentDefinitionOutline;
|
|
100
|
+
} | {
|
|
101
|
+
kind: FieldModelConfigKindType;
|
|
102
|
+
class: RepeatableFieldModelConfigOutline;
|
|
103
|
+
} | {
|
|
104
|
+
kind: FieldModelDefinitionKindType;
|
|
105
|
+
class: RepeatableFieldModelDefinitionOutline;
|
|
106
|
+
} | {
|
|
107
|
+
kind: FieldLayoutConfigKindType;
|
|
108
|
+
class: RepeatableElementFieldLayoutConfigOutline;
|
|
109
|
+
} | {
|
|
110
|
+
kind: FieldLayoutDefinitionKindType;
|
|
111
|
+
class: RepeatableElementFieldLayoutDefinitionOutline;
|
|
112
|
+
} | {
|
|
113
|
+
kind: FormComponentDefinitionKindType;
|
|
114
|
+
class: RepeatableFormComponentDefinitionOutline;
|
|
115
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RepeatableElementLayoutName = exports.RepeatableModelName = exports.RepeatableComponentName = void 0;
|
|
4
|
+
/* Repeatable Component */
|
|
5
|
+
exports.RepeatableComponentName = `RepeatableComponent`;
|
|
6
|
+
/* Repeatable Model */
|
|
7
|
+
exports.RepeatableModelName = `RepeatableModel`;
|
|
8
|
+
/* Repeatable Element Layout */
|
|
9
|
+
exports.RepeatableElementLayoutName = `RepeatableElementLayout`;
|
|
10
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwZWF0YWJsZS5vdXRsaW5lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbmZpZy9jb21wb25lbnQvcmVwZWF0YWJsZS5vdXRsaW5lLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQTJDQSwwQkFBMEI7QUFFYixRQUFBLHVCQUF1QixHQUFHLHFCQUE4QixDQUFDO0FBMkJ0RSxzQkFBc0I7QUFFVCxRQUFBLG1CQUFtQixHQUFHLGlCQUEwQixDQUFDO0FBdUI5RCwrQkFBK0I7QUFDbEIsUUFBQSwyQkFBMkIsR0FBRyx5QkFBa0MsQ0FBQyJ9
|