@beinformed/ui 1.38.0 → 1.40.0
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/CHANGELOG.md +14 -0
- package/esm/models/attributes/AttributeModel.js +1 -2
- package/esm/models/attributes/AttributeModel.js.map +1 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js +0 -1
- package/esm/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/esm/models/content/ContentModel.js +1 -0
- package/esm/models/content/ContentModel.js.map +1 -1
- package/esm/models/content/SubSectionModel.js +5 -1
- package/esm/models/content/SubSectionModel.js.map +1 -1
- package/esm/models/href/Href.js +13 -0
- package/esm/models/href/Href.js.map +1 -1
- package/esm/react-client/contextPath.js +0 -2
- package/esm/react-client/contextPath.js.map +1 -1
- package/esm/react-client/rehydrate.js +0 -2
- package/esm/react-client/rehydrate.js.map +1 -1
- package/esm/react-server/contextPath.js +0 -1
- package/esm/react-server/contextPath.js.map +1 -1
- package/lib/models/attributes/AttributeModel.js +1 -2
- package/lib/models/attributes/AttributeModel.js.flow +1 -3
- package/lib/models/attributes/AttributeModel.js.map +1 -1
- package/lib/models/attributes/__tests__/AttributeModel.spec.js.flow +0 -3
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js +0 -1
- package/lib/models/attributes/input-constraints/FileSizeConstraint.js.map +1 -1
- package/lib/models/content/ContentModel.js +1 -0
- package/lib/models/content/ContentModel.js.flow +1 -0
- package/lib/models/content/ContentModel.js.map +1 -1
- package/lib/models/content/SubSectionModel.js +5 -1
- package/lib/models/content/SubSectionModel.js.flow +3 -2
- package/lib/models/content/SubSectionModel.js.map +1 -1
- package/lib/models/content/__tests__/ContentModel.spec.js.flow +3 -0
- package/lib/models/href/Href.js +13 -0
- package/lib/models/href/Href.js.flow +13 -0
- package/lib/models/href/Href.js.map +1 -1
- package/lib/react-client/contextPath.js +0 -1
- package/lib/react-client/contextPath.js.map +1 -1
- package/lib/react-client/rehydrate.js +0 -2
- package/lib/react-client/rehydrate.js.map +1 -1
- package/package.json +17 -17
- package/src/models/attributes/AttributeModel.js +1 -3
- package/src/models/attributes/__tests__/AttributeModel.spec.js +0 -3
- package/src/models/content/ContentModel.js +1 -0
- package/src/models/content/SubSectionModel.js +3 -2
- package/src/models/content/__tests__/ContentModel.spec.js +3 -0
- package/src/models/href/Href.js +13 -0
- package/types/constants/LayoutHintConfig.d.ts +15 -0
- package/types/constants/LayoutHints.d.ts +4 -0
- package/types/models/actions/ActionModel.d.ts +3 -3
- package/types/models/application/ApplicationModel.d.ts +1 -1
- package/types/models/attributes/AttributeCollection.d.ts +1 -1
- package/types/models/attributes/AttributeModel.d.ts +14 -14
- package/types/models/attributes/AttributeSetModel.d.ts +9 -2
- package/types/models/attributes/BooleanAttributeModel.d.ts +1 -1
- package/types/models/attributes/ChoiceAttributeOptionCollection.d.ts +2 -2
- package/types/models/attributes/ChoiceAttributeOptionModel.d.ts +7 -7
- package/types/models/attributes/CompositeAttributeModel.d.ts +1 -1
- package/types/models/attributes/DatetimeAttributeModel.d.ts +1 -1
- package/types/models/attributes/PasswordAttributeModel.d.ts +3 -3
- package/types/models/attributes/StringAttributeModel.d.ts +1 -1
- package/types/models/attributes/UploadAttributeModel.d.ts +3 -3
- package/types/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +1 -1
- package/types/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +1 -1
- package/types/models/attributes/input-constraints/RangeConstraint.d.ts +1 -1
- package/types/models/attributes/layouthint-rules/DependentAttribute.d.ts +4 -4
- package/types/models/base/BaseCollection.d.ts +1 -1
- package/types/models/base/BaseModel.d.ts +2 -2
- package/types/models/base/ResourceModel.d.ts +2 -2
- package/types/models/caseview/CaseViewModel.d.ts +1 -1
- package/types/models/concepts/BusinessScenarioModel.d.ts +1 -1
- package/types/models/concepts/ConceptDetailModel.d.ts +1 -1
- package/types/models/concepts/ConceptIndexModel.d.ts +1 -1
- package/types/models/concepts/ConceptLinkModel.d.ts +1 -1
- package/types/models/concepts/ConceptRelationModel.d.ts +1 -1
- package/types/models/content/ContentLinkModel.d.ts +3 -3
- package/types/models/content/ContentModel.d.ts +2 -2
- package/types/models/content/ContentTOCModel.d.ts +1 -1
- package/types/models/content/SectionModel.d.ts +1 -1
- package/types/models/detail/DetailModel.d.ts +3 -3
- package/types/models/error/ErrorResponse.d.ts +1 -1
- package/types/models/filters/BaseFilterModel.d.ts +2 -2
- package/types/models/filters/StringFilterModel.d.ts +2 -2
- package/types/models/form/FormModel.d.ts +14 -14
- package/types/models/form/FormObjectModel.d.ts +3 -3
- package/types/models/href/Href.d.ts +13 -6
- package/types/models/href/ListHref.d.ts +4 -4
- package/types/models/links/LinkCollection.d.ts +1 -1
- package/types/models/links/LinkModel.d.ts +4 -4
- package/types/models/list/ListDetailModel.d.ts +2 -2
- package/types/models/list/ListModel.d.ts +3 -3
- package/types/models/paging/PagesizeModel.d.ts +1 -1
- package/types/models/paging/PagingModel.d.ts +1 -1
- package/types/models/panels/GroupingPanelModel.d.ts +1 -1
- package/types/models/sorting/SortOptionModel.d.ts +2 -2
- package/types/models/tab/TabModel.d.ts +1 -1
- package/types/models/taskgroup/TaskGroupModel.d.ts +5 -0
- package/types/models/user/UserServicesModel.d.ts +1 -1
- package/types/modularui/Authenticate.d.ts +1 -1
- package/types/modularui/ModularUIRequest.d.ts +8 -8
- package/types/modularui/ModularUIResponse.d.ts +5 -5
- package/types/utils/datetime/DateTimeUtil.d.ts +0 -1
|
@@ -19,7 +19,7 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
19
19
|
_content: AttributeContent;
|
|
20
20
|
/**
|
|
21
21
|
*/
|
|
22
|
-
set code(
|
|
22
|
+
set code(code: string);
|
|
23
23
|
/**
|
|
24
24
|
* Get code of option
|
|
25
25
|
*/
|
|
@@ -38,7 +38,7 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
38
38
|
/**
|
|
39
39
|
* Set the concept
|
|
40
40
|
*/
|
|
41
|
-
set concept(
|
|
41
|
+
set concept(concept: ConceptDetailModel);
|
|
42
42
|
/**
|
|
43
43
|
* Get concept information
|
|
44
44
|
*/
|
|
@@ -48,7 +48,7 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
48
48
|
equals(model: ChoiceAttributeOptionModel): boolean;
|
|
49
49
|
/**
|
|
50
50
|
*/
|
|
51
|
-
set attributeCollection(
|
|
51
|
+
set attributeCollection(attributeCollection: AttributeCollection);
|
|
52
52
|
/**
|
|
53
53
|
* Retrieve attributes for Composite codemaps (e.g. table and case list codemaps)
|
|
54
54
|
*/
|
|
@@ -68,7 +68,7 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
68
68
|
/**
|
|
69
69
|
* Set selected property of option
|
|
70
70
|
*/
|
|
71
|
-
set selected(
|
|
71
|
+
set selected(selected: boolean);
|
|
72
72
|
/**
|
|
73
73
|
* Indicates if option is selected
|
|
74
74
|
*/
|
|
@@ -86,14 +86,14 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
86
86
|
get children(): ChoiceAttributeOptionCollection;
|
|
87
87
|
/**
|
|
88
88
|
*/
|
|
89
|
-
set links(
|
|
89
|
+
set links(links: LinkCollection);
|
|
90
90
|
/**
|
|
91
91
|
* Retrieve links of attribute
|
|
92
92
|
*/
|
|
93
93
|
get links(): LinkCollection;
|
|
94
94
|
/**
|
|
95
95
|
*/
|
|
96
|
-
set referenceDate(
|
|
96
|
+
set referenceDate(date: ISO_DATE);
|
|
97
97
|
/**
|
|
98
98
|
* referenceDate received from attribute
|
|
99
99
|
*/
|
|
@@ -105,7 +105,7 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
105
105
|
/**
|
|
106
106
|
* Set level of option
|
|
107
107
|
*/
|
|
108
|
-
set level(
|
|
108
|
+
set level(level: number);
|
|
109
109
|
/**
|
|
110
110
|
* Get level of option, used in tree view choice attributes (taxonomy)
|
|
111
111
|
*/
|
|
@@ -8,7 +8,7 @@ declare class CompositeAttributeModel extends AttributeModel {
|
|
|
8
8
|
get isRange(): boolean;
|
|
9
9
|
/**
|
|
10
10
|
*/
|
|
11
|
-
set children(
|
|
11
|
+
set children(children: CompositeAttributeChildCollection);
|
|
12
12
|
/**
|
|
13
13
|
*/
|
|
14
14
|
get children(): CompositeAttributeChildCollection;
|
|
@@ -7,7 +7,7 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
7
7
|
get formatUtil(): {
|
|
8
8
|
_isoFormat: string; /**
|
|
9
9
|
*/
|
|
10
|
-
getLocale(): Locale;
|
|
10
|
+
getLocale(): import("date-fns").Locale;
|
|
11
11
|
getOptions(): {
|
|
12
12
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
13
13
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -40,19 +40,19 @@ export default class PasswordAttributeModel extends StringAttributeModel {
|
|
|
40
40
|
getStandardPasswordConstraints(): ConstraintCollection;
|
|
41
41
|
/**
|
|
42
42
|
*/
|
|
43
|
-
set isConfirmPassword(
|
|
43
|
+
set isConfirmPassword(isConfirmPassword: boolean);
|
|
44
44
|
/**
|
|
45
45
|
*/
|
|
46
46
|
get isConfirmPassword(): boolean;
|
|
47
47
|
/**
|
|
48
48
|
*/
|
|
49
|
-
set confirmValue(
|
|
49
|
+
set confirmValue(confirmValue: string);
|
|
50
50
|
/**
|
|
51
51
|
*/
|
|
52
52
|
get confirmValue(): string;
|
|
53
53
|
/**
|
|
54
54
|
*/
|
|
55
|
-
set otherLabel(
|
|
55
|
+
set otherLabel(otherLabel: string);
|
|
56
56
|
/**
|
|
57
57
|
*/
|
|
58
58
|
get otherLabel(): string;
|
|
@@ -11,13 +11,13 @@ export default class UploadAttributeModel extends StringAttributeModel {
|
|
|
11
11
|
get multiple(): boolean;
|
|
12
12
|
/**
|
|
13
13
|
*/
|
|
14
|
-
set initialTotalFileSize(
|
|
14
|
+
set initialTotalFileSize(initialTotalFileSize: number);
|
|
15
15
|
/**
|
|
16
16
|
*/
|
|
17
17
|
get initialTotalFileSize(): number;
|
|
18
18
|
/**
|
|
19
19
|
*/
|
|
20
|
-
set maxTotalFileSize(
|
|
20
|
+
set maxTotalFileSize(maxTotalFileSize: number);
|
|
21
21
|
/**
|
|
22
22
|
*/
|
|
23
23
|
get maxTotalFileSize(): number;
|
|
@@ -45,7 +45,7 @@ export default class UploadAttributeModel extends StringAttributeModel {
|
|
|
45
45
|
get acceptedFiles(): string[];
|
|
46
46
|
/**
|
|
47
47
|
*/
|
|
48
|
-
set files(
|
|
48
|
+
set files(files: FilesType);
|
|
49
49
|
/**
|
|
50
50
|
*/
|
|
51
51
|
get files(): FilesType;
|
|
@@ -52,7 +52,7 @@ declare class DateBoundaryConstraint {
|
|
|
52
52
|
*/
|
|
53
53
|
get formatUtil(): {
|
|
54
54
|
_isoFormat: string;
|
|
55
|
-
getLocale(): Locale;
|
|
55
|
+
getLocale(): import("date-fns").Locale;
|
|
56
56
|
getOptions(): {
|
|
57
57
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
58
58
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -35,7 +35,7 @@ declare class DatetimeFormatConstraint {
|
|
|
35
35
|
*/
|
|
36
36
|
get formatUtil(): {
|
|
37
37
|
_isoFormat: string;
|
|
38
|
-
getLocale(): Locale;
|
|
38
|
+
getLocale(): import("date-fns").Locale;
|
|
39
39
|
getOptions(): {
|
|
40
40
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
41
41
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -35,7 +35,7 @@ declare class RangeConstraint {
|
|
|
35
35
|
*/
|
|
36
36
|
get util(): {
|
|
37
37
|
_isoFormat: string;
|
|
38
|
-
getLocale(): Locale;
|
|
38
|
+
getLocale(): import("date-fns").Locale;
|
|
39
39
|
getOptions(): {
|
|
40
40
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
41
41
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
@@ -16,25 +16,25 @@ declare class DependentAttribute extends BaseLayoutHintRule {
|
|
|
16
16
|
_options: Array<string>;
|
|
17
17
|
/**
|
|
18
18
|
*/
|
|
19
|
-
set action(
|
|
19
|
+
set action(action: string);
|
|
20
20
|
/**
|
|
21
21
|
*/
|
|
22
22
|
get action(): string;
|
|
23
23
|
/**
|
|
24
24
|
*/
|
|
25
|
-
set control(
|
|
25
|
+
set control(control: string);
|
|
26
26
|
/**
|
|
27
27
|
*/
|
|
28
28
|
get control(): string;
|
|
29
29
|
/**
|
|
30
30
|
*/
|
|
31
|
-
set operator(
|
|
31
|
+
set operator(operator: string);
|
|
32
32
|
/**
|
|
33
33
|
*/
|
|
34
34
|
get operator(): string;
|
|
35
35
|
/**
|
|
36
36
|
*/
|
|
37
|
-
set options(
|
|
37
|
+
set options(options: string[]);
|
|
38
38
|
/**
|
|
39
39
|
*/
|
|
40
40
|
get options(): string[];
|
|
@@ -34,7 +34,7 @@ declare class BaseModel {
|
|
|
34
34
|
/**
|
|
35
35
|
* Set the layouthint
|
|
36
36
|
*/
|
|
37
|
-
set layouthint(
|
|
37
|
+
set layouthint(layouthint: LayoutHintCollection);
|
|
38
38
|
/**
|
|
39
39
|
* Getting the layouthint
|
|
40
40
|
*/
|
|
@@ -46,7 +46,7 @@ declare class BaseModel {
|
|
|
46
46
|
/**
|
|
47
47
|
* Set the unique key for this model
|
|
48
48
|
*/
|
|
49
|
-
set connectKey(
|
|
49
|
+
set connectKey(key: string);
|
|
50
50
|
/**
|
|
51
51
|
* Get the unique key of this model
|
|
52
52
|
*/
|
|
@@ -24,7 +24,7 @@ declare class ResourceModel extends BaseModel {
|
|
|
24
24
|
_lastServerUpdate: number;
|
|
25
25
|
/**
|
|
26
26
|
*/
|
|
27
|
-
set lastServerUpdate(
|
|
27
|
+
set lastServerUpdate(lastServerUpdate: number);
|
|
28
28
|
/**
|
|
29
29
|
*/
|
|
30
30
|
get lastServerUpdate(): number;
|
|
@@ -50,7 +50,7 @@ declare class ResourceModel extends BaseModel {
|
|
|
50
50
|
get label(): string;
|
|
51
51
|
/**
|
|
52
52
|
*/
|
|
53
|
-
set links(
|
|
53
|
+
set links(links: LinkCollection);
|
|
54
54
|
/**
|
|
55
55
|
* Getting the links of the resource
|
|
56
56
|
*/
|
|
@@ -29,7 +29,7 @@ export default class CaseViewModel extends DetailModel {
|
|
|
29
29
|
/**
|
|
30
30
|
* Setting the taskgroup panel collection
|
|
31
31
|
*/
|
|
32
|
-
set taskGroupCollection(
|
|
32
|
+
set taskGroupCollection(taskgroups: TaskGroupCollection);
|
|
33
33
|
/**
|
|
34
34
|
* Getting the taskgrouppanels on the tab
|
|
35
35
|
*/
|
|
@@ -8,7 +8,7 @@ declare class BusinessScenarioModel extends ConceptDetailModel {
|
|
|
8
8
|
_scenarioSteps: Array<ConceptDetailModel>;
|
|
9
9
|
/**
|
|
10
10
|
*/
|
|
11
|
-
set scenarioSteps(
|
|
11
|
+
set scenarioSteps(models: ConceptDetailModel[]);
|
|
12
12
|
/**
|
|
13
13
|
*/
|
|
14
14
|
get scenarioSteps(): ConceptDetailModel[];
|
|
@@ -7,7 +7,7 @@ export default class ConceptDetailModel extends ResourceModel {
|
|
|
7
7
|
_sourceReferences: SourceReferenceCollection;
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
|
-
set conceptType(
|
|
10
|
+
set conceptType(conceptType: ConceptTypeDetailModel);
|
|
11
11
|
/**
|
|
12
12
|
* Get conceptType of concept
|
|
13
13
|
*/
|
|
@@ -23,7 +23,7 @@ export default class ConceptIndexModel extends ResourceModel {
|
|
|
23
23
|
/**
|
|
24
24
|
* Replace the items collection
|
|
25
25
|
*/
|
|
26
|
-
set items(
|
|
26
|
+
set items(itemCollection: ResourceCollection<ConceptLinkModel, any>);
|
|
27
27
|
/**
|
|
28
28
|
* Get concept links found by index filter
|
|
29
29
|
*/
|
|
@@ -18,14 +18,14 @@ export default class ContentLinkModel extends BaseModel {
|
|
|
18
18
|
/**
|
|
19
19
|
* Set concept type
|
|
20
20
|
*/
|
|
21
|
-
set contentType(
|
|
21
|
+
set contentType(contentType: ContentTypeModel);
|
|
22
22
|
/**
|
|
23
23
|
* Retrieve content type
|
|
24
24
|
*/
|
|
25
25
|
get contentType(): ContentTypeModel;
|
|
26
26
|
/**
|
|
27
27
|
*/
|
|
28
|
-
set entryDate(
|
|
28
|
+
set entryDate(entryDate: ISO_DATE);
|
|
29
29
|
/**
|
|
30
30
|
* Retrieve key
|
|
31
31
|
*/
|
|
@@ -68,7 +68,7 @@ export default class ContentLinkModel extends BaseModel {
|
|
|
68
68
|
/**
|
|
69
69
|
* Children of link model in TOC
|
|
70
70
|
*/
|
|
71
|
-
set items(
|
|
71
|
+
set items(items: ContentLinkModel[]);
|
|
72
72
|
/**
|
|
73
73
|
*/
|
|
74
74
|
get items(): ContentLinkModel[];
|
|
@@ -8,7 +8,7 @@ export default class ContentModel extends ResourceModel {
|
|
|
8
8
|
/**
|
|
9
9
|
* Set concept type
|
|
10
10
|
*/
|
|
11
|
-
set contentType(
|
|
11
|
+
set contentType(contentType: ContentTypeModel);
|
|
12
12
|
/**
|
|
13
13
|
* Get conceptType of concept
|
|
14
14
|
*/
|
|
@@ -45,7 +45,7 @@ export default class ContentModel extends ResourceModel {
|
|
|
45
45
|
/**
|
|
46
46
|
* set resolved child sections
|
|
47
47
|
*/
|
|
48
|
-
set childSections(
|
|
48
|
+
set childSections(sections: SectionModel[]);
|
|
49
49
|
/**
|
|
50
50
|
* Get tree of child sections
|
|
51
51
|
*/
|
|
@@ -17,7 +17,7 @@ export default class DetailModel extends ResourceModel {
|
|
|
17
17
|
createAttributeCollection(): void;
|
|
18
18
|
/**
|
|
19
19
|
*/
|
|
20
|
-
set attributeCollection(
|
|
20
|
+
set attributeCollection(collection: AttributeCollection);
|
|
21
21
|
/**
|
|
22
22
|
*/
|
|
23
23
|
get attributeCollection(): AttributeCollection;
|
|
@@ -35,7 +35,7 @@ export default class DetailModel extends ResourceModel {
|
|
|
35
35
|
createMetadataCollection(): void;
|
|
36
36
|
/**
|
|
37
37
|
*/
|
|
38
|
-
set metadataCollection(
|
|
38
|
+
set metadataCollection(collection: AttributeCollection);
|
|
39
39
|
/**
|
|
40
40
|
*/
|
|
41
41
|
get metadataCollection(): AttributeCollection;
|
|
@@ -45,7 +45,7 @@ export default class DetailModel extends ResourceModel {
|
|
|
45
45
|
createActionCollection(): void;
|
|
46
46
|
/**
|
|
47
47
|
*/
|
|
48
|
-
set actionCollection(
|
|
48
|
+
set actionCollection(actionCollection: ActionCollection);
|
|
49
49
|
/**
|
|
50
50
|
*/
|
|
51
51
|
get actionCollection(): ActionCollection;
|
|
@@ -8,7 +8,7 @@ export default class BaseFilterModel extends BaseModel {
|
|
|
8
8
|
/**
|
|
9
9
|
* Set key of list this filter belongs to
|
|
10
10
|
*/
|
|
11
|
-
set listkey(
|
|
11
|
+
set listkey(key: string);
|
|
12
12
|
/**
|
|
13
13
|
* Getting key of the list these filters apply to
|
|
14
14
|
*/
|
|
@@ -28,7 +28,7 @@ export default class BaseFilterModel extends BaseModel {
|
|
|
28
28
|
/**
|
|
29
29
|
* Set context of filter
|
|
30
30
|
*/
|
|
31
|
-
set context(
|
|
31
|
+
set context(context: Object);
|
|
32
32
|
/**
|
|
33
33
|
* Getting context data
|
|
34
34
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* StringFilterModel can handle string filters with multiple setting
|
|
3
3
|
*/
|
|
4
|
-
export default class StringFilterModel extends
|
|
4
|
+
export default class StringFilterModel extends FilterModel {
|
|
5
5
|
_isValid: boolean;
|
|
6
6
|
_value: string | null;
|
|
7
7
|
_inputvalue: string;
|
|
@@ -27,4 +27,4 @@ export default class StringFilterModel extends BaseFilterModel {
|
|
|
27
27
|
*/
|
|
28
28
|
shouldHandleFormat(): boolean;
|
|
29
29
|
}
|
|
30
|
-
import
|
|
30
|
+
import FilterModel from "./FilterModel";
|
|
@@ -23,31 +23,31 @@ declare class FormModel extends ResourceModel {
|
|
|
23
23
|
_tokens: Array<string>;
|
|
24
24
|
/**
|
|
25
25
|
*/
|
|
26
|
-
set lastUpdate(
|
|
26
|
+
set lastUpdate(lastUpdate: number);
|
|
27
27
|
/**
|
|
28
28
|
*/
|
|
29
29
|
get lastUpdate(): number;
|
|
30
30
|
/**
|
|
31
31
|
*/
|
|
32
|
-
set currentFormObject(
|
|
32
|
+
set currentFormObject(formObject: FormObjectModel);
|
|
33
33
|
/**
|
|
34
34
|
*/
|
|
35
35
|
get currentFormObject(): FormObjectModel;
|
|
36
36
|
/**
|
|
37
37
|
*/
|
|
38
|
-
set endResultFormObjects(
|
|
38
|
+
set endResultFormObjects(endResultFormObjects: FormObjectModel[]);
|
|
39
39
|
/**
|
|
40
40
|
*/
|
|
41
41
|
get endResultFormObjects(): FormObjectModel[];
|
|
42
42
|
/**
|
|
43
43
|
*/
|
|
44
|
-
set parameters(
|
|
44
|
+
set parameters(parameters: Parameter[]);
|
|
45
45
|
/**
|
|
46
46
|
*/
|
|
47
47
|
get parameters(): Parameter[];
|
|
48
48
|
/**
|
|
49
49
|
*/
|
|
50
|
-
set isComplete(
|
|
50
|
+
set isComplete(isComplete: boolean);
|
|
51
51
|
/**
|
|
52
52
|
* Indicates if form is completely entered
|
|
53
53
|
*/
|
|
@@ -98,7 +98,7 @@ declare class FormModel extends ResourceModel {
|
|
|
98
98
|
addFormObject(formObjectModel: FormObjectModel): void;
|
|
99
99
|
/**
|
|
100
100
|
*/
|
|
101
|
-
set completedFormObjects(
|
|
101
|
+
set completedFormObjects(formObjects: FormObjectModel[]);
|
|
102
102
|
/**
|
|
103
103
|
* Completed objects are previously entered questions
|
|
104
104
|
*/
|
|
@@ -116,7 +116,7 @@ declare class FormModel extends ResourceModel {
|
|
|
116
116
|
removeFormObject(formObjectModel: FormObjectModel | null): void;
|
|
117
117
|
/**
|
|
118
118
|
*/
|
|
119
|
-
set previouslyEnteredFormObjects(
|
|
119
|
+
set previouslyEnteredFormObjects(formObjects: FormObjectModel[]);
|
|
120
120
|
/**
|
|
121
121
|
* Previously entered objects are questions that have been entered before,
|
|
122
122
|
* but are currently not applicable for the form.
|
|
@@ -135,7 +135,7 @@ declare class FormModel extends ResourceModel {
|
|
|
135
135
|
getEndResultFormObjects(): Array<FormObjectModel>;
|
|
136
136
|
/**
|
|
137
137
|
*/
|
|
138
|
-
set previousEndResultKeys(
|
|
138
|
+
set previousEndResultKeys(endResultFormObjectKeys: string[]);
|
|
139
139
|
/**
|
|
140
140
|
*/
|
|
141
141
|
get previousEndResultKeys(): string[];
|
|
@@ -159,20 +159,20 @@ declare class FormModel extends ResourceModel {
|
|
|
159
159
|
resetErrors(): void;
|
|
160
160
|
/**
|
|
161
161
|
*/
|
|
162
|
-
set errorCollection(
|
|
162
|
+
set errorCollection(errorCollection: ErrorCollection);
|
|
163
163
|
/**
|
|
164
164
|
*/
|
|
165
165
|
get errorCollection(): ErrorCollection;
|
|
166
166
|
/**
|
|
167
167
|
*/
|
|
168
|
-
set commit(
|
|
168
|
+
set commit(commit: boolean);
|
|
169
169
|
/**
|
|
170
170
|
* Indicates if the form needs to be committed
|
|
171
171
|
*/
|
|
172
172
|
get commit(): boolean;
|
|
173
173
|
/**
|
|
174
174
|
*/
|
|
175
|
-
set isFinished(
|
|
175
|
+
set isFinished(isFinished: boolean);
|
|
176
176
|
/**
|
|
177
177
|
* Inidicates if form is finished: Form is completely entered and committed
|
|
178
178
|
*/
|
|
@@ -210,7 +210,7 @@ declare class FormModel extends ResourceModel {
|
|
|
210
210
|
/**
|
|
211
211
|
* Replaces all tokens with the given collection of tokens
|
|
212
212
|
*/
|
|
213
|
-
set tokens(
|
|
213
|
+
set tokens(tokens: string[]);
|
|
214
214
|
/**
|
|
215
215
|
* Handle form tokens to indicate concurrent form use
|
|
216
216
|
*/
|
|
@@ -260,7 +260,7 @@ declare class FormModel extends ResourceModel {
|
|
|
260
260
|
* Set success information, contains redirect and event data
|
|
261
261
|
* @param success
|
|
262
262
|
*/
|
|
263
|
-
set success(
|
|
263
|
+
set success(success: {
|
|
264
264
|
redirect: string;
|
|
265
265
|
data: Object;
|
|
266
266
|
});
|
|
@@ -313,7 +313,7 @@ declare class FormModel extends ResourceModel {
|
|
|
313
313
|
handleNewFormObject(receivedForm: FormModel): void;
|
|
314
314
|
/**
|
|
315
315
|
*/
|
|
316
|
-
set mergePreviouslyEnteredObjects(
|
|
316
|
+
set mergePreviouslyEnteredObjects(mergePreviouslyEnteredObjects: boolean);
|
|
317
317
|
/**
|
|
318
318
|
* Indicate if a new form object model should be merged with a previousled entered form object model
|
|
319
319
|
* Set this property to false on the form that receives the new form to skip the merge behavior
|
|
@@ -65,7 +65,7 @@ export default class FormObjectModel extends BaseModel {
|
|
|
65
65
|
get isRepeatable(): boolean;
|
|
66
66
|
/**
|
|
67
67
|
*/
|
|
68
|
-
set repeatIndex(
|
|
68
|
+
set repeatIndex(repeatIndex: number);
|
|
69
69
|
/**
|
|
70
70
|
*/
|
|
71
71
|
get repeatIndex(): number;
|
|
@@ -102,7 +102,7 @@ export default class FormObjectModel extends BaseModel {
|
|
|
102
102
|
get buttonLabels(): Object;
|
|
103
103
|
/**
|
|
104
104
|
*/
|
|
105
|
-
set attributeCollection(
|
|
105
|
+
set attributeCollection(attributeCollection: AttributeCollection);
|
|
106
106
|
/**
|
|
107
107
|
* get attribute collection
|
|
108
108
|
*/
|
|
@@ -141,7 +141,7 @@ export default class FormObjectModel extends BaseModel {
|
|
|
141
141
|
get isValid(): boolean;
|
|
142
142
|
/**
|
|
143
143
|
*/
|
|
144
|
-
set dynamicValidationsLoaded(
|
|
144
|
+
set dynamicValidationsLoaded(dynamicValidationsLoaded: boolean);
|
|
145
145
|
/**
|
|
146
146
|
*/
|
|
147
147
|
get dynamicValidationsLoaded(): boolean;
|
|
@@ -32,10 +32,11 @@ declare class Href {
|
|
|
32
32
|
GET: string;
|
|
33
33
|
}>;
|
|
34
34
|
_state: any;
|
|
35
|
+
_referenceHash: number | null;
|
|
35
36
|
/**
|
|
36
37
|
* Set resourctype
|
|
37
38
|
*/
|
|
38
|
-
set resourcetype(
|
|
39
|
+
set resourcetype(resourcetype: string);
|
|
39
40
|
/**
|
|
40
41
|
* Retrieve resourceType
|
|
41
42
|
*/
|
|
@@ -47,7 +48,7 @@ declare class Href {
|
|
|
47
48
|
/**
|
|
48
49
|
* Set the path of the Href, the part before the querystring question mark
|
|
49
50
|
*/
|
|
50
|
-
set path(
|
|
51
|
+
set path(path: string);
|
|
51
52
|
/**
|
|
52
53
|
* Retrieve the path
|
|
53
54
|
*/
|
|
@@ -55,7 +56,7 @@ declare class Href {
|
|
|
55
56
|
/**
|
|
56
57
|
* Replace parameters of Href
|
|
57
58
|
*/
|
|
58
|
-
set parameters(
|
|
59
|
+
set parameters(parameters: Parameter[]);
|
|
59
60
|
/**
|
|
60
61
|
* Retrieve all paremters
|
|
61
62
|
*/
|
|
@@ -63,14 +64,14 @@ declare class Href {
|
|
|
63
64
|
/**
|
|
64
65
|
* Set hash
|
|
65
66
|
*/
|
|
66
|
-
set hash(
|
|
67
|
+
set hash(hash: string);
|
|
67
68
|
/**
|
|
68
69
|
* Retrieve hash
|
|
69
70
|
*/
|
|
70
71
|
get hash(): string;
|
|
71
72
|
/**
|
|
72
73
|
*/
|
|
73
|
-
set state(
|
|
74
|
+
set state(state: any);
|
|
74
75
|
/**
|
|
75
76
|
*/
|
|
76
77
|
get state(): any;
|
|
@@ -110,7 +111,7 @@ declare class Href {
|
|
|
110
111
|
/**
|
|
111
112
|
* Set request method
|
|
112
113
|
*/
|
|
113
|
-
set method(
|
|
114
|
+
set method(method: $Keys<{
|
|
114
115
|
POST: string;
|
|
115
116
|
GET: string;
|
|
116
117
|
}>);
|
|
@@ -171,6 +172,12 @@ declare class Href {
|
|
|
171
172
|
* Indicates if the link is a content link
|
|
172
173
|
*/
|
|
173
174
|
get isContent(): boolean;
|
|
175
|
+
/**
|
|
176
|
+
*/
|
|
177
|
+
getReferenceHash(): number | null;
|
|
178
|
+
/**
|
|
179
|
+
*/
|
|
180
|
+
setReferenceHash(referenceHash: number): void;
|
|
174
181
|
/**
|
|
175
182
|
* Returns a complete url from the Href
|
|
176
183
|
*/
|