@beinformed/ui 1.59.0 → 1.59.2
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/input-constraints/DateBoundaryConstraint.js +7 -2
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/esm/utils/datetime/DateTimeUtil.js +7 -1
- package/esm/utils/datetime/DateTimeUtil.js.map +1 -1
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js +7 -2
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.flow +5 -2
- package/lib/models/attributes/input-constraints/DateBoundaryConstraint.js.map +1 -1
- package/lib/utils/datetime/DateTimeUtil.js +7 -1
- package/lib/utils/datetime/DateTimeUtil.js.flow +7 -1
- package/lib/utils/datetime/DateTimeUtil.js.map +1 -1
- package/package.json +1 -1
- package/src/models/attributes/input-constraints/DateBoundaryConstraint.js +5 -2
- package/src/utils/datetime/DateTimeUtil.js +7 -1
- package/types/constants/Constants.d.ts +9 -0
- package/types/constants/Settings.d.ts +6 -3
- package/types/models/actions/ActionCollection.d.ts +2 -1
- package/types/models/actions/ActionModel.d.ts +1 -1
- package/types/models/attributes/AttributeCollection.d.ts +5 -1
- package/types/models/attributes/AttributeSetModel.d.ts +2 -1
- package/types/models/attributes/ChoiceAttributeOptionCollection.d.ts +7 -5
- package/types/models/attributes/ChoiceAttributeOptionModel.d.ts +7 -3
- package/types/models/attributes/CompositeAttributeChildCollection.d.ts +4 -3
- package/types/models/attributes/DatetimeAttributeModel.d.ts +66 -45
- package/types/models/attributes/_createAttribute.d.ts +2 -1
- package/types/models/attributes/input-constraints/DateBoundaryConstraint.d.ts +56 -40
- package/types/models/attributes/input-constraints/DatetimeFormatConstraint.d.ts +64 -42
- package/types/models/attributes/input-constraints/RangeConstraint.d.ts +55 -41
- package/types/models/base/BaseModel.d.ts +12 -1
- package/types/models/concepts/ConceptDetailModel.d.ts +4 -4
- package/types/models/concepts/ConceptIndexModel.d.ts +4 -0
- package/types/models/concepts/ConceptLinkModel.d.ts +2 -5
- package/types/models/concepts/ConceptRelationCollection.d.ts +3 -1
- package/types/models/concepts/ConceptRelationModel.d.ts +3 -1
- package/types/models/concepts/ConceptTypeDetailModel.d.ts +5 -9
- package/types/models/concepts/SourceReferenceCollection.d.ts +2 -1
- package/types/models/concepts/SourceReferenceModel.d.ts +3 -1
- package/types/models/content/ContentLinkModel.d.ts +2 -1
- package/types/models/content/SectionModel.d.ts +2 -1
- package/types/models/content/SubSectionModel.d.ts +6 -1
- package/types/models/error/ErrorResponse.d.ts +9 -1
- package/types/models/filters/FilterCollection.d.ts +3 -2
- package/types/models/grouping/GroupingModel.d.ts +4 -3
- package/types/models/href/Href.d.ts +26 -3
- package/types/models/index.d.ts +1 -0
- package/types/models/links/LinkCollection.d.ts +2 -1
- package/types/models/links/LinkModel.d.ts +3 -2
- package/types/models/list/ListItemModel.d.ts +2 -1
- package/types/models/lookup/LookupOptionCollection.d.ts +2 -1
- package/types/models/modelcatalog/ModelCatalogModel.d.ts +5 -0
- package/types/models/modelcatalog/ModelCategoryCollection.d.ts +11 -0
- package/types/models/modelcatalog/ModelCategoryModel.d.ts +39 -0
- package/types/models/taskgroup/TaskGroupModel.d.ts +2 -1
- package/types/models/types.d.ts +4 -0
- package/types/modularui/CaptchaRequest.d.ts +9 -0
- package/types/modularui/ModularUIRequest.d.ts +14 -1
- package/types/modularui/ModularUIResponse.d.ts +22 -0
- package/types/modularui/UploadRequest.d.ts +7 -1
- package/types/redux/_modularui/types.d.ts +3 -0
- package/types/redux/types.d.ts +8 -1
- package/types/utils/datetime/DateTimeUtil.d.ts +91 -45
- package/types/utils/fetch/types.d.ts +2 -0
- package/types/utils/helpers/createHref.d.ts +4 -3
- package/types/utils/helpers/repositoryResource.d.ts +1 -1
|
@@ -8,15 +8,22 @@ export default class ErrorResponse {
|
|
|
8
8
|
/**
|
|
9
9
|
* Construct ErrorResponse
|
|
10
10
|
*/
|
|
11
|
-
constructor(data: Object, connectKey?: string);
|
|
11
|
+
constructor(data: Object, connectKey?: string, modelOptions?: ModelOptions);
|
|
12
12
|
_error: Object;
|
|
13
13
|
_connectKey: string | null;
|
|
14
|
+
_modelOptions: ModelOptions | null;
|
|
14
15
|
/**
|
|
15
16
|
*/
|
|
16
17
|
set connectKey(key: string);
|
|
17
18
|
/**
|
|
18
19
|
*/
|
|
19
20
|
get connectKey(): string;
|
|
21
|
+
/**
|
|
22
|
+
*/
|
|
23
|
+
get origin(): string;
|
|
24
|
+
/**
|
|
25
|
+
*/
|
|
26
|
+
get contextPath(): string;
|
|
20
27
|
/**
|
|
21
28
|
* Return error information
|
|
22
29
|
*/
|
|
@@ -142,6 +149,7 @@ export default class ErrorResponse {
|
|
|
142
149
|
*/
|
|
143
150
|
get shouldThrowOnServer(): boolean;
|
|
144
151
|
}
|
|
152
|
+
import { ModelOptions } from "../types";
|
|
145
153
|
import Href from "../href/Href";
|
|
146
154
|
import LayoutHintCollection from "../layouthint/LayoutHintCollection";
|
|
147
155
|
import { MessageParameters } from "../../i18n/types";
|
|
@@ -5,11 +5,11 @@ export default class FilterCollection extends BaseCollection<FilterType> {
|
|
|
5
5
|
/**
|
|
6
6
|
* Construct a collection of filters
|
|
7
7
|
*/
|
|
8
|
-
constructor(data?: Object, contributions?: Object);
|
|
8
|
+
constructor(data?: Object, contributions?: Object, modelOptions?: ModelOptions);
|
|
9
9
|
collection: any;
|
|
10
10
|
/**
|
|
11
11
|
*/
|
|
12
|
-
createFilter(filterKey: string, data: Object, contributions: Object): FilterType;
|
|
12
|
+
createFilter(filterKey: string, data: Object, contributions: Object, modelOptions?: ModelOptions): FilterType;
|
|
13
13
|
/**
|
|
14
14
|
* Call the reset function on all filters
|
|
15
15
|
*
|
|
@@ -43,6 +43,7 @@ export default class FilterCollection extends BaseCollection<FilterType> {
|
|
|
43
43
|
}
|
|
44
44
|
import { FilterType } from "../types";
|
|
45
45
|
import BaseCollection from "../base/BaseCollection";
|
|
46
|
+
import { ModelOptions } from "../types";
|
|
46
47
|
import RangeFilterModel from "../filters/RangeFilterModel";
|
|
47
48
|
import AssignmentFilterModel from "../filters/AssignmentFilterModel";
|
|
48
49
|
import { AttributeType } from "../types";
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
export class GroupModel {
|
|
6
6
|
/**
|
|
7
7
|
*/
|
|
8
|
-
constructor(group: Object, context: Object, contributions: Array<Object
|
|
8
|
+
constructor(group: Object, context: Object, contributions: Array<Object>, modelOptions?: ModelOptions);
|
|
9
9
|
_group: Object;
|
|
10
10
|
_context: Object;
|
|
11
11
|
_attributeCollection: AttributeCollection;
|
|
@@ -42,12 +42,12 @@ export class GroupModel {
|
|
|
42
42
|
export default class GroupingModel {
|
|
43
43
|
/**
|
|
44
44
|
*/
|
|
45
|
-
constructor(data: Object, contexts: Array<Context
|
|
45
|
+
constructor(data: Object, contexts: Array<Context>, modelOptions?: ModelOptions);
|
|
46
46
|
_prefix: string | null;
|
|
47
47
|
_groups: Array<GroupModel>;
|
|
48
48
|
/**
|
|
49
49
|
*/
|
|
50
|
-
createGroup(data: Object, contributions: Array<Context
|
|
50
|
+
createGroup(data: Object, contributions: Array<Context>, modelOptions?: ModelOptions): Array<Object>;
|
|
51
51
|
/**
|
|
52
52
|
* add grouped prefix to the dynamicschema
|
|
53
53
|
*/
|
|
@@ -76,6 +76,7 @@ export default class GroupingModel {
|
|
|
76
76
|
}
|
|
77
77
|
import AttributeCollection from "../attributes/AttributeCollection";
|
|
78
78
|
import { AttributeType } from "../types";
|
|
79
|
+
import { ModelOptions } from "../types";
|
|
79
80
|
type Context = {
|
|
80
81
|
prefix: string;
|
|
81
82
|
label: string;
|
|
@@ -22,7 +22,7 @@ declare class Href {
|
|
|
22
22
|
/**
|
|
23
23
|
* Create a Href
|
|
24
24
|
*/
|
|
25
|
-
constructor(href?: HrefInput, resourcetype?: string);
|
|
25
|
+
constructor(href?: HrefInput, resourcetype?: string, modelOptions?: ModelOptions | null);
|
|
26
26
|
_path: string;
|
|
27
27
|
_hash: string;
|
|
28
28
|
_parameters: Array<Parameter>;
|
|
@@ -33,6 +33,8 @@ declare class Href {
|
|
|
33
33
|
}>;
|
|
34
34
|
_state: any;
|
|
35
35
|
_referenceHash: number | null;
|
|
36
|
+
_origin: string;
|
|
37
|
+
_contextPath: string;
|
|
36
38
|
/**
|
|
37
39
|
* Set resourctype
|
|
38
40
|
*/
|
|
@@ -41,6 +43,23 @@ declare class Href {
|
|
|
41
43
|
* Retrieve resourceType
|
|
42
44
|
*/
|
|
43
45
|
get resourcetype(): string;
|
|
46
|
+
/**
|
|
47
|
+
* Set the origin (e.g. http://example.com:18080)
|
|
48
|
+
*/
|
|
49
|
+
set origin(origin: string);
|
|
50
|
+
/**
|
|
51
|
+
* Retrieve the origin (e.g. http://example.com:18080)<br>
|
|
52
|
+
* Empty when the default must be used
|
|
53
|
+
*/
|
|
54
|
+
get origin(): string;
|
|
55
|
+
/**
|
|
56
|
+
* Set the context path if different from default
|
|
57
|
+
*/
|
|
58
|
+
set contextPath(contextPath: string);
|
|
59
|
+
/**
|
|
60
|
+
* Get the context path
|
|
61
|
+
*/
|
|
62
|
+
get contextPath(): string;
|
|
44
63
|
/**
|
|
45
64
|
* Set parameters from Href model input
|
|
46
65
|
*/
|
|
@@ -78,6 +97,9 @@ declare class Href {
|
|
|
78
97
|
/**
|
|
79
98
|
*/
|
|
80
99
|
setFromLocationOrObject(href: LocationShape | HrefObject): void;
|
|
100
|
+
/**
|
|
101
|
+
*/
|
|
102
|
+
setStateFromLocationOrObject(state?: any): void;
|
|
81
103
|
/**
|
|
82
104
|
* Set parameters from string input
|
|
83
105
|
*/
|
|
@@ -164,10 +186,10 @@ declare class Href {
|
|
|
164
186
|
/**
|
|
165
187
|
* Checks if the given Href equals this Href
|
|
166
188
|
*/
|
|
167
|
-
equals(href: Href | string): boolean;
|
|
189
|
+
equals(href: Href | string | null): boolean;
|
|
168
190
|
/**
|
|
169
191
|
*/
|
|
170
|
-
equalsWithParameters(
|
|
192
|
+
equalsWithParameters(other: Href | string | null): boolean;
|
|
171
193
|
/**
|
|
172
194
|
* Indicates if the link is a content link
|
|
173
195
|
*/
|
|
@@ -201,3 +223,4 @@ type HrefObject = {
|
|
|
201
223
|
};
|
|
202
224
|
pathname: string;
|
|
203
225
|
};
|
|
226
|
+
import { ModelOptions } from "../types";
|
package/types/models/index.d.ts
CHANGED
|
@@ -41,6 +41,7 @@ export { default as ListItemCollection } from "./list/ListItemCollection";
|
|
|
41
41
|
export { default as ListItemModel } from "./list/ListItemModel";
|
|
42
42
|
export { default as LookupOptionsModel } from "./lookup/LookupOptionsModel";
|
|
43
43
|
export { default as LookupOptionCollection } from "./lookup/LookupOptionCollection";
|
|
44
|
+
export { default as ModelCategory } from "./modelcatalog/ModelCategoryModel";
|
|
44
45
|
export { default as ProcessStatusSettingsModel } from "./process/ProcessStatusSettingsModel";
|
|
45
46
|
export { default as PagesizeModel } from "./paging/PagesizeModel";
|
|
46
47
|
export { default as PagingModel } from "./paging/PagingModel";
|
|
@@ -7,7 +7,7 @@ export default class LinkCollection extends BaseCollection<LinkModel> {
|
|
|
7
7
|
/**
|
|
8
8
|
* Constructs the link collection
|
|
9
9
|
*/
|
|
10
|
-
constructor(linkData?: Object, linkContributions?: Object);
|
|
10
|
+
constructor(linkData?: Object, linkContributions?: Object, modelOptions?: ModelOptions);
|
|
11
11
|
/**
|
|
12
12
|
* Set Link collection
|
|
13
13
|
*/
|
|
@@ -68,3 +68,4 @@ export default class LinkCollection extends BaseCollection<LinkModel> {
|
|
|
68
68
|
import LinkModel from "./LinkModel";
|
|
69
69
|
import BaseCollection from "../base/BaseCollection";
|
|
70
70
|
import Href from "../href/Href";
|
|
71
|
+
import { ModelOptions } from "../types";
|
|
@@ -11,14 +11,14 @@ declare class LinkModel extends BaseModel {
|
|
|
11
11
|
/**
|
|
12
12
|
* Create a simple Link Model
|
|
13
13
|
*/
|
|
14
|
-
static create(name: string, href: string | Href, label: string): LinkModel;
|
|
14
|
+
static create(name: string, href: string | Href, label: string, modelOptions?: ModelOptions): LinkModel;
|
|
15
15
|
_href: Href;
|
|
16
16
|
_isCacheable: boolean;
|
|
17
17
|
_icon: string;
|
|
18
18
|
_targetModel: Class<ModularUIModel>;
|
|
19
19
|
/**
|
|
20
20
|
*/
|
|
21
|
-
createHref(): void;
|
|
21
|
+
createHref(modelOptions: ModelOptions | null): void;
|
|
22
22
|
/**
|
|
23
23
|
* Set the href of the Link
|
|
24
24
|
*/
|
|
@@ -88,5 +88,6 @@ declare class LinkModel extends BaseModel {
|
|
|
88
88
|
import BaseModel from "../base/BaseModel";
|
|
89
89
|
import Href from "../href/Href";
|
|
90
90
|
import { ModularUIModel } from "../types";
|
|
91
|
+
import { ModelOptions } from "../types";
|
|
91
92
|
import LinkCollection from "../links/LinkCollection";
|
|
92
93
|
import ProcessStatusSettingsModel from "../process/ProcessStatusSettingsModel";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export default class ListItemModel extends DetailModel {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
static createFromListResult(key: string, data: Object, contributions: Object): ListItemModel;
|
|
7
|
+
static createFromListResult(key: string, data: Object, contributions: Object, modelOptions?: ModelOptions): ListItemModel;
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
static createFromChoiceAttributeOption(option: ChoiceAttributeOptionModel): ListItemModel;
|
|
@@ -31,4 +31,5 @@ import DetailModel from "../detail/DetailModel";
|
|
|
31
31
|
import Href from "../href/Href";
|
|
32
32
|
import LinkCollection from "../links/LinkCollection";
|
|
33
33
|
import ActionCollection from "../actions/ActionCollection";
|
|
34
|
+
import { ModelOptions } from "../types";
|
|
34
35
|
import ChoiceAttributeOptionModel from "../attributes/ChoiceAttributeOptionModel";
|
|
@@ -4,7 +4,7 @@ export default LookupOptionCollection;
|
|
|
4
4
|
declare class LookupOptionCollection extends ResourceCollection<ChoiceAttributeOptionModel, any> {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
static create(data: Object, contributions: Object): LookupOptionCollection;
|
|
7
|
+
static create(data: Object, contributions: Object, modelOptions?: ModelOptions): LookupOptionCollection;
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
static getOptionType(option: Object, contributions: Object): string;
|
|
@@ -12,3 +12,4 @@ declare class LookupOptionCollection extends ResourceCollection<ChoiceAttributeO
|
|
|
12
12
|
}
|
|
13
13
|
import ChoiceAttributeOptionModel from "../attributes/ChoiceAttributeOptionModel";
|
|
14
14
|
import ResourceCollection from "../base/ResourceCollection";
|
|
15
|
+
import { ModelOptions } from "../types";
|
|
@@ -13,6 +13,11 @@ export default class ModelCatalogModel extends ResourceModel {
|
|
|
13
13
|
* Retrieve link to Content Index model
|
|
14
14
|
*/
|
|
15
15
|
get contentIndexLink(): LinkModel;
|
|
16
|
+
/**
|
|
17
|
+
* Retrieve model categories as a collection
|
|
18
|
+
*/
|
|
19
|
+
get modelcategories(): ModelCategoryCollection;
|
|
16
20
|
}
|
|
17
21
|
import ResourceModel from "../base/ResourceModel";
|
|
18
22
|
import LinkModel from "../links/LinkModel";
|
|
23
|
+
import ModelCategoryCollection from "./ModelCategoryCollection";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Model category collection
|
|
3
|
+
*/
|
|
4
|
+
export default class ModelCategoryCollection extends BaseCollection<ModelCategoryModel> {
|
|
5
|
+
/**
|
|
6
|
+
*/
|
|
7
|
+
constructor(modelCategories?: Array<ModelCategory>);
|
|
8
|
+
}
|
|
9
|
+
import ModelCategoryModel from "./ModelCategoryModel";
|
|
10
|
+
import BaseCollection from "../base/BaseCollection";
|
|
11
|
+
import { ModelCategory } from "./ModelCategoryModel";
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
type ModelCategory = {
|
|
2
|
+
_id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
description: string;
|
|
5
|
+
iconSmall: string;
|
|
6
|
+
iconMedium: string;
|
|
7
|
+
iconLarge: string;
|
|
8
|
+
};
|
|
9
|
+
export default ModelCategoryModel;
|
|
10
|
+
/**
|
|
11
|
+
*/
|
|
12
|
+
declare class ModelCategoryModel {
|
|
13
|
+
constructor(modelCategory: ModelCategory);
|
|
14
|
+
_modelCategory: ModelCategory;
|
|
15
|
+
/**
|
|
16
|
+
* Id of the category
|
|
17
|
+
*/
|
|
18
|
+
get key(): string;
|
|
19
|
+
/**
|
|
20
|
+
* Label of the category
|
|
21
|
+
*/
|
|
22
|
+
get label(): string;
|
|
23
|
+
/**
|
|
24
|
+
* Description of the category
|
|
25
|
+
*/
|
|
26
|
+
get description(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Small icon of the category
|
|
29
|
+
*/
|
|
30
|
+
get iconSmall(): string;
|
|
31
|
+
/**
|
|
32
|
+
* Medium icon of the category
|
|
33
|
+
*/
|
|
34
|
+
get iconMedium(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Large icon of the category
|
|
37
|
+
*/
|
|
38
|
+
get iconLarge(): string;
|
|
39
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export default class TaskGroupModel extends ResourceModel {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
static create(key: string, data: Object, contributions: Object): TaskGroupModel;
|
|
7
|
+
static create(key: string, data: Object, contributions: Object, modelOptions?: ModelOptions): TaskGroupModel;
|
|
8
8
|
_actionCollection: ActionCollection;
|
|
9
9
|
/**
|
|
10
10
|
* Retrieve actions of taskgroup
|
|
@@ -18,3 +18,4 @@ export default class TaskGroupModel extends ResourceModel {
|
|
|
18
18
|
}
|
|
19
19
|
import ResourceModel from "../base/ResourceModel";
|
|
20
20
|
import ActionCollection from "../actions/ActionCollection";
|
|
21
|
+
import { ModelOptions } from "../types";
|
package/types/models/types.d.ts
CHANGED
|
@@ -155,6 +155,10 @@ type ContentData = {
|
|
|
155
155
|
label?: string;
|
|
156
156
|
elements: (PropertyElement | TextFragmentElement | ContentElement)[];
|
|
157
157
|
};
|
|
158
|
+
type ModelOptions = {
|
|
159
|
+
origin?: string;
|
|
160
|
+
contextPath?: string;
|
|
161
|
+
};
|
|
158
162
|
import AttributeModel from "./attributes/AttributeModel";
|
|
159
163
|
import AttributeCollection from "./attributes/AttributeCollection";
|
|
160
164
|
import LinkModel from "./links/LinkModel";
|
|
@@ -4,6 +4,11 @@ export default CaptchaRequest;
|
|
|
4
4
|
declare class CaptchaRequest {
|
|
5
5
|
_tokenId: string;
|
|
6
6
|
_image: string;
|
|
7
|
+
_origin: string;
|
|
8
|
+
_contextPath: string;
|
|
9
|
+
/**
|
|
10
|
+
*/
|
|
11
|
+
CaptchaRequest(options?: CaptchaRequestOptions): void;
|
|
7
12
|
/**
|
|
8
13
|
*/
|
|
9
14
|
captchaResponse(response: CaptchaInitialResponse | CaptchaValidResponse | CaptchaInvalidResponse): CaptchaResponse;
|
|
@@ -20,6 +25,10 @@ declare class CaptchaRequest {
|
|
|
20
25
|
*/
|
|
21
26
|
refresh(): Promise<CaptchaResponse>;
|
|
22
27
|
}
|
|
28
|
+
type CaptchaRequestOptions = {
|
|
29
|
+
origin?: string;
|
|
30
|
+
contextPath?: string;
|
|
31
|
+
};
|
|
23
32
|
type CaptchaInitialResponse = {
|
|
24
33
|
tokenId: string;
|
|
25
34
|
image: string;
|
|
@@ -19,7 +19,8 @@ declare class ModularUIRequest {
|
|
|
19
19
|
GET: string;
|
|
20
20
|
}>;
|
|
21
21
|
_progressEvent: ProgressEventHandler;
|
|
22
|
-
|
|
22
|
+
_origin: string;
|
|
23
|
+
_contextPath: string;
|
|
23
24
|
/**
|
|
24
25
|
*/
|
|
25
26
|
set options(options: RequestModularUIOptions);
|
|
@@ -38,6 +39,18 @@ declare class ModularUIRequest {
|
|
|
38
39
|
/**
|
|
39
40
|
*/
|
|
40
41
|
get locale(): string;
|
|
42
|
+
/**
|
|
43
|
+
*/
|
|
44
|
+
set contextPath(contextPath: string);
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
get contextPath(): string;
|
|
48
|
+
/**
|
|
49
|
+
*/
|
|
50
|
+
set origin(origin: string);
|
|
51
|
+
/**
|
|
52
|
+
*/
|
|
53
|
+
get origin(): string;
|
|
41
54
|
/**
|
|
42
55
|
*/
|
|
43
56
|
set targetModel(targetModel: any);
|
|
@@ -8,6 +8,8 @@ declare class ModularUIResponse {
|
|
|
8
8
|
key: string;
|
|
9
9
|
data: Object;
|
|
10
10
|
contributions: Object;
|
|
11
|
+
origin?: string;
|
|
12
|
+
contextPath?: string;
|
|
11
13
|
}): ModularUIResponse;
|
|
12
14
|
/**
|
|
13
15
|
*/
|
|
@@ -16,12 +18,31 @@ declare class ModularUIResponse {
|
|
|
16
18
|
locale: string;
|
|
17
19
|
data: Object;
|
|
18
20
|
contributions: Object;
|
|
21
|
+
origin?: string;
|
|
22
|
+
contextPath?: string;
|
|
19
23
|
}): ModularUIResponse;
|
|
20
24
|
_key: string;
|
|
21
25
|
_data: Object;
|
|
22
26
|
_contributions: Object;
|
|
23
27
|
_locale: string;
|
|
24
28
|
_parameters: Array<Parameter>;
|
|
29
|
+
_contextPath: string;
|
|
30
|
+
_origin: string;
|
|
31
|
+
/**
|
|
32
|
+
*/
|
|
33
|
+
get modelOptions(): ModelOptions;
|
|
34
|
+
/**
|
|
35
|
+
*/
|
|
36
|
+
set origin(origin: string);
|
|
37
|
+
/**
|
|
38
|
+
*/
|
|
39
|
+
get origin(): string;
|
|
40
|
+
/**
|
|
41
|
+
*/
|
|
42
|
+
set contextPath(contextPath: string);
|
|
43
|
+
/**
|
|
44
|
+
*/
|
|
45
|
+
get contextPath(): string;
|
|
25
46
|
/**
|
|
26
47
|
*/
|
|
27
48
|
set locale(locale: string);
|
|
@@ -54,3 +75,4 @@ declare class ModularUIResponse {
|
|
|
54
75
|
get parameters(): Parameter[];
|
|
55
76
|
}
|
|
56
77
|
import Parameter from "../models/parameter/Parameter";
|
|
78
|
+
import { ModelOptions } from "../models";
|
|
@@ -7,13 +7,15 @@ declare class UploadRequest {
|
|
|
7
7
|
fileTypes: FiletypeConstraintsType;
|
|
8
8
|
maxFileSize: FilesizeConstraintsType;
|
|
9
9
|
acceptedFiles: Array<string>;
|
|
10
|
-
}, progressHandler: ProgressHandler);
|
|
10
|
+
}, progressHandler: ProgressHandler, options?: UploadRequestOptions);
|
|
11
11
|
_uploadConstraints: {
|
|
12
12
|
fileTypes: FiletypeConstraintsType;
|
|
13
13
|
maxFileSize: FilesizeConstraintsType;
|
|
14
14
|
acceptedFiles: Array<string>;
|
|
15
15
|
};
|
|
16
16
|
_progressHandler: ProgressHandler;
|
|
17
|
+
_origin: string;
|
|
18
|
+
_contextPath: string;
|
|
17
19
|
/**
|
|
18
20
|
*/
|
|
19
21
|
getFileExtension(file: File): string;
|
|
@@ -33,3 +35,7 @@ type ProgressHandler = (file: File, uploadInfo: Object) => void;
|
|
|
33
35
|
type UploadResponse = {
|
|
34
36
|
token: string;
|
|
35
37
|
};
|
|
38
|
+
type UploadRequestOptions = {
|
|
39
|
+
origin?: string;
|
|
40
|
+
contextPath?: string;
|
|
41
|
+
};
|
|
@@ -32,6 +32,9 @@ type ErrorAction = (error: FetchException) => UpdateStatusAction | RemoveModelBy
|
|
|
32
32
|
type ModularUIAction = {
|
|
33
33
|
type: "MODULARUI/FETCH";
|
|
34
34
|
payload: {
|
|
35
|
+
key: string;
|
|
36
|
+
origin?: string;
|
|
37
|
+
contextPath?: string;
|
|
35
38
|
href: Href;
|
|
36
39
|
method?: $Keys<HTTP_METHODS>;
|
|
37
40
|
data?: any;
|
package/types/redux/types.d.ts
CHANGED
|
@@ -85,7 +85,11 @@ type UpdateAutosaveAction = {
|
|
|
85
85
|
model: FormModel;
|
|
86
86
|
};
|
|
87
87
|
};
|
|
88
|
-
type
|
|
88
|
+
type UpdateEntryDateAction = {
|
|
89
|
+
type: "UPDATE_ENTRYDATE";
|
|
90
|
+
payload: ISO_DATE;
|
|
91
|
+
};
|
|
92
|
+
type ReduxAction = UpdateLocaleAction | SetLocalesAction | SetModelAction | InitModelAction | UpdateModelAction | UpdateFormAction | UpdateStatusAction | RemoveModelByKeyAction | NoAction | ModularUIAction | ResetModularUIAction | LocationChangeAction | PushAction | ReplaceAction | GoAction | GoBackAction | GoForwardAction | SaveErrorAction | ShowModalAction | CloseModalAction | DismissNotificationAction | ShowNotificationAction | SetPreferenceAction | SetPreferencesAction | StartProgressAction | FinishProgressAction | ResetProgressAction | UpdateProgressAction | SendAuthenticationErrorAction | ResetAuthErrorsAction | LoginSuccessAction | ChangePasswordAction | LogoutSuccessAction | UpdateAutosaveAction | UpdateEntryDateAction;
|
|
89
93
|
type AuthState = {};
|
|
90
94
|
type ErrorState = ErrorResponse;
|
|
91
95
|
type ModalState = {};
|
|
@@ -93,6 +97,9 @@ type ModalsState = {};
|
|
|
93
97
|
type NotificationState = {};
|
|
94
98
|
type PreferencesState = {};
|
|
95
99
|
type ProgressIndicatorState = {};
|
|
100
|
+
type ModelCatalogState = {
|
|
101
|
+
entryDate: any;
|
|
102
|
+
};
|
|
96
103
|
type ReduxState = {};
|
|
97
104
|
type GetState = () => ReduxState;
|
|
98
105
|
type ThunkAction = (dispatch: DispatchAPI<PossibleAction>, getState: GetState) => any;
|