@beinformed/ui 1.59.1 → 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 +7 -0
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.js +7 -2
- package/esm/models/attributes/input-constraints/DateBoundaryConstraint.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/package.json +1 -1
- package/src/models/attributes/input-constraints/DateBoundaryConstraint.js +5 -2
- 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
|
@@ -6,57 +6,68 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
6
6
|
*/
|
|
7
7
|
get formatUtil(): {
|
|
8
8
|
_isoFormat: string;
|
|
9
|
-
|
|
9
|
+
_timeZone: string;
|
|
10
10
|
getOptions(): {
|
|
11
|
-
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
12
|
-
*/
|
|
11
|
+
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
13
12
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
14
13
|
};
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
getIsoFormat(): string;
|
|
15
|
+
convertFormat(sourceFormat: string): string;
|
|
16
|
+
getLocale(): import("date-fns").Locale;
|
|
17
|
+
toDate(date: string | Date, inputFormat?: string): Date;
|
|
18
|
+
toFormat(isoDate: string | Date, targetFormat: string, inputFormat?: string): string;
|
|
17
19
|
toISO(date: string | Date, sourceFormat?: string): string;
|
|
18
20
|
now(): string;
|
|
19
|
-
convertFormat(sourceFormat: string): string;
|
|
20
21
|
hasFormat(date: string, sourceFormat: string): boolean;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
startOfMonth(date: string, inputFormat?: string): string;
|
|
48
|
-
endOfMonth(date: string, inputFormat?: string): string;
|
|
49
|
-
startOfWeek(date: string, inputFormat?: string): string;
|
|
50
|
-
getHours(date: string | Date): number;
|
|
51
|
-
getMinutes(date: string | Date): number;
|
|
52
|
-
getWeek(date: string): number;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
22
|
+
isValid(date: string | void | Date, inputFormat?: string): boolean;
|
|
23
|
+
isAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
24
|
+
isSameOrAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
25
|
+
isBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
26
|
+
isSameOrBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
27
|
+
isSame(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
28
|
+
isSameDay(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
29
|
+
isOther(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
30
|
+
isWeekend(inputDate: string | Date): boolean;
|
|
31
|
+
isAmbiguous(inputDate: string | Date, inputFormat?: string): boolean;
|
|
32
|
+
_calculate(date: string | Date, calculationFn: Function, property: string, value: number, inputFormat?: string): string;
|
|
33
|
+
addSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
34
|
+
addMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
35
|
+
addHours(date: string, amount: number, inputFormat?: string): string;
|
|
36
|
+
addDays(date: string, amount: number, inputFormat?: string): string;
|
|
37
|
+
addWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
38
|
+
addMonths(date: string, amount: number, inputFormat?: string): string;
|
|
39
|
+
addYears(date: string, amount: number, inputFormat?: string): string;
|
|
40
|
+
subtractSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
41
|
+
subtractMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
42
|
+
subtractHours(date: string, amount: number, inputFormat?: string): string;
|
|
43
|
+
subtractDays(date: string, amount: number, inputFormat?: string): string;
|
|
44
|
+
subtractWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
45
|
+
subtractMonths(date: string, amount: number, inputFormat?: string): string;
|
|
46
|
+
subtractYears(date: string, amount: number, inputFormat?: string): string;
|
|
47
|
+
_get(date: string | Date, method: Function, inputFormat?: string, options?: Object): string;
|
|
48
|
+
startOfMonth(date: string | Date, inputFormat?: string): string;
|
|
49
|
+
endOfMonth(date: string | Date, inputFormat?: string): string;
|
|
50
|
+
startOfWeek(date: string | Date, inputFormat?: string): string;
|
|
51
|
+
getHours(date: string | Date, inputFormat?: string): number;
|
|
52
|
+
getMinutes(date: string | Date, inputFormat?: string): number;
|
|
53
|
+
getWeek(date: string | Date, inputFormat?: string): number;
|
|
54
|
+
_set(date: string | Date, property: string, value: number, inputFormat?: string): string;
|
|
55
|
+
setYear(date: string | Date, year: number, inputFormat?: string): string;
|
|
56
|
+
setMonth(date: string | Date, month: number, inputFormat?: string): string;
|
|
57
|
+
setDay(date: string | Date, day: number, inputFormat?: string): string;
|
|
58
|
+
setHour(date: string | Date, hour: number, inputFormat?: string): string;
|
|
59
|
+
setMinute(date: string | Date, minute: number, inputFormat?: string): string;
|
|
60
|
+
setSecond(date: string | Date, second: number, inputFormat?: string): string;
|
|
61
|
+
setMilliseconds(date: string | Date, millisecond: number, inputFormat?: string): string;
|
|
62
|
+
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number, inputFormat?: string): string;
|
|
63
|
+
getTimeZone(): string;
|
|
64
|
+
setTimeZone(timeZone: string): void;
|
|
65
|
+
getDateFnsContext(): Function;
|
|
66
|
+
getOffset(date: string | Date, inputFormat?: string): OffsetInfo;
|
|
67
|
+
getTimezoneOffsets(): {
|
|
68
|
+
standard?: OffsetInfo;
|
|
69
|
+
daylight?: OffsetInfo;
|
|
70
|
+
};
|
|
60
71
|
};
|
|
61
72
|
/**
|
|
62
73
|
*/
|
|
@@ -78,6 +89,9 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
78
89
|
/**
|
|
79
90
|
*/
|
|
80
91
|
get hasTime(): boolean;
|
|
92
|
+
/**
|
|
93
|
+
*/
|
|
94
|
+
get inputFormatWithoutOffset(): string;
|
|
81
95
|
/**
|
|
82
96
|
*/
|
|
83
97
|
get inputFormat(): string;
|
|
@@ -99,6 +113,12 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
99
113
|
/**
|
|
100
114
|
*/
|
|
101
115
|
get timeInputValue(): string;
|
|
116
|
+
/**
|
|
117
|
+
*/
|
|
118
|
+
get isAmbiguous(): boolean;
|
|
119
|
+
/**
|
|
120
|
+
*/
|
|
121
|
+
get offset(): OffsetInfo;
|
|
102
122
|
/**
|
|
103
123
|
* Get minimum date
|
|
104
124
|
*/
|
|
@@ -112,4 +132,5 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
112
132
|
getFormatConstraint(): IConstraintModel;
|
|
113
133
|
}
|
|
114
134
|
import StringAttributeModel from "./StringAttributeModel";
|
|
135
|
+
import { OffsetInfo } from "../../utils/datetime/DateTimeUtil";
|
|
115
136
|
import { IConstraintModel } from "../types";
|
|
@@ -2,5 +2,6 @@ export default createAttribute;
|
|
|
2
2
|
/**
|
|
3
3
|
* Create an attribute based on data and contributions
|
|
4
4
|
*/
|
|
5
|
-
declare function createAttribute(key: string, data: Object | Array<Object>, contributions: Object): AttributeType;
|
|
5
|
+
declare function createAttribute(key: string, data: Object | Array<Object>, contributions: Object, modelOptions?: ModelOptions): AttributeType;
|
|
6
|
+
import { ModelOptions } from "../types";
|
|
6
7
|
import { AttributeType } from "../types";
|
|
@@ -7,6 +7,7 @@ declare class DateBoundaryConstraint {
|
|
|
7
7
|
constructor(type: string, minDate?: string | null, maxDate?: string | null, format?: string);
|
|
8
8
|
_type: string;
|
|
9
9
|
_format: string;
|
|
10
|
+
_formatNoOffset: string;
|
|
10
11
|
_minDate: string | null;
|
|
11
12
|
_maxDate: string | null;
|
|
12
13
|
/**
|
|
@@ -52,53 +53,68 @@ declare class DateBoundaryConstraint {
|
|
|
52
53
|
*/
|
|
53
54
|
get formatUtil(): {
|
|
54
55
|
_isoFormat: string;
|
|
55
|
-
|
|
56
|
+
_timeZone: string;
|
|
56
57
|
getOptions(): {
|
|
57
58
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
58
59
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
59
60
|
};
|
|
60
|
-
|
|
61
|
-
|
|
61
|
+
getIsoFormat(): string;
|
|
62
|
+
convertFormat(sourceFormat: string): string;
|
|
63
|
+
getLocale(): import("date-fns").Locale;
|
|
64
|
+
toDate(date: string | Date, inputFormat?: string): Date;
|
|
65
|
+
toFormat(isoDate: string | Date, targetFormat: string, inputFormat?: string): string;
|
|
62
66
|
toISO(date: string | Date, sourceFormat?: string): string;
|
|
63
67
|
now(): string;
|
|
64
|
-
convertFormat(sourceFormat: string): string;
|
|
65
68
|
hasFormat(date: string, sourceFormat: string): boolean;
|
|
66
|
-
isValid(date: string, inputFormat?: string): boolean;
|
|
67
|
-
isAfter(inputDate: string, afterISODate: string, inputFormat?: string): boolean;
|
|
68
|
-
isSameOrAfter(inputDate: string, afterISODate: string, inputFormat?: string): boolean;
|
|
69
|
-
isBefore(inputDate: string, beforeISODate: string, inputFormat?: string): boolean;
|
|
70
|
-
isSameOrBefore(inputDate: string, beforeISODate: string, inputFormat?: string): boolean;
|
|
71
|
-
isSame(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
72
|
-
isSameDay(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
73
|
-
isOther(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
74
|
-
isWeekend(inputDate: string): boolean;
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
69
|
+
isValid(date: string | void | Date, inputFormat?: string): boolean;
|
|
70
|
+
isAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
71
|
+
isSameOrAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
72
|
+
isBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
73
|
+
isSameOrBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
74
|
+
isSame(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
75
|
+
isSameDay(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
76
|
+
isOther(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
77
|
+
isWeekend(inputDate: string | Date): boolean;
|
|
78
|
+
isAmbiguous(inputDate: string | Date, inputFormat?: string): boolean;
|
|
79
|
+
_calculate(date: string | Date, calculationFn: Function, property: string, value: number, inputFormat?: string): string;
|
|
80
|
+
addSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
81
|
+
addMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
82
|
+
addHours(date: string, amount: number, inputFormat?: string): string;
|
|
83
|
+
addDays(date: string, amount: number, inputFormat?: string): string;
|
|
84
|
+
addWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
85
|
+
addMonths(date: string, amount: number, inputFormat?: string): string;
|
|
86
|
+
addYears(date: string, amount: number, inputFormat?: string): string;
|
|
87
|
+
subtractSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
88
|
+
subtractMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
89
|
+
subtractHours(date: string, amount: number, inputFormat?: string): string;
|
|
90
|
+
subtractDays(date: string, amount: number, inputFormat?: string): string;
|
|
91
|
+
subtractWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
92
|
+
subtractMonths(date: string, amount: number, inputFormat?: string): string;
|
|
93
|
+
subtractYears(date: string, amount: number, inputFormat?: string): string;
|
|
94
|
+
_get(date: string | Date, method: Function, inputFormat?: string, options?: Object): string;
|
|
95
|
+
startOfMonth(date: string | Date, inputFormat?: string): string;
|
|
96
|
+
endOfMonth(date: string | Date, inputFormat?: string): string;
|
|
97
|
+
startOfWeek(date: string | Date, inputFormat?: string): string;
|
|
98
|
+
getHours(date: string | Date, inputFormat?: string): number;
|
|
99
|
+
getMinutes(date: string | Date, inputFormat?: string): number;
|
|
100
|
+
getWeek(date: string | Date, inputFormat?: string): number;
|
|
101
|
+
_set(date: string | Date, property: string, value: number, inputFormat?: string): string;
|
|
102
|
+
setYear(date: string | Date, year: number, inputFormat?: string): string;
|
|
103
|
+
setMonth(date: string | Date, month: number, inputFormat?: string): string;
|
|
104
|
+
setDay(date: string | Date, day: number, inputFormat?: string): string;
|
|
105
|
+
setHour(date: string | Date, hour: number, inputFormat?: string): string;
|
|
106
|
+
setMinute(date: string | Date, minute: number, inputFormat?: string): string;
|
|
107
|
+
setSecond(date: string | Date, second: number, inputFormat?: string): string;
|
|
108
|
+
setMilliseconds(date: string | Date, millisecond: number, inputFormat?: string): string;
|
|
109
|
+
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number, inputFormat?: string): string;
|
|
110
|
+
getTimeZone(): string;
|
|
111
|
+
setTimeZone(timeZone: string): void;
|
|
112
|
+
getDateFnsContext(): Function;
|
|
113
|
+
getOffset(date: string | Date, inputFormat?: string): import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
114
|
+
getTimezoneOffsets(): {
|
|
115
|
+
standard?: import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
116
|
+
daylight?: import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
117
|
+
};
|
|
102
118
|
};
|
|
103
119
|
/**
|
|
104
120
|
*/
|
|
@@ -7,7 +7,9 @@ declare class DatetimeFormatConstraint {
|
|
|
7
7
|
constructor(type: string, format: string, formatLabel: string);
|
|
8
8
|
_type: string;
|
|
9
9
|
_format: string;
|
|
10
|
+
_formatNoOffset: string;
|
|
10
11
|
_formatLabel: string;
|
|
12
|
+
_id: string;
|
|
11
13
|
/**
|
|
12
14
|
*/
|
|
13
15
|
get type(): string;
|
|
@@ -30,58 +32,78 @@ declare class DatetimeFormatConstraint {
|
|
|
30
32
|
*/
|
|
31
33
|
get parameters(): {
|
|
32
34
|
format: string;
|
|
35
|
+
} | {
|
|
36
|
+
"daylight-label": string | null;
|
|
37
|
+
"standard-label": string | null;
|
|
33
38
|
};
|
|
34
39
|
/**
|
|
35
40
|
*/
|
|
36
41
|
get formatUtil(): {
|
|
37
42
|
_isoFormat: string;
|
|
38
|
-
|
|
43
|
+
_timeZone: string;
|
|
39
44
|
getOptions(): {
|
|
40
45
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
41
|
-
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
46
|
+
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7; /**
|
|
47
|
+
*/
|
|
48
|
+
}; /**
|
|
49
|
+
*/
|
|
50
|
+
getIsoFormat(): string;
|
|
51
|
+
convertFormat(sourceFormat: string): string;
|
|
52
|
+
getLocale(): import("date-fns").Locale;
|
|
53
|
+
toDate(date: string | Date, inputFormat?: string): Date;
|
|
54
|
+
toFormat(isoDate: string | Date, targetFormat: string, inputFormat?: string): string;
|
|
45
55
|
toISO(date: string | Date, sourceFormat?: string): string;
|
|
46
56
|
now(): string;
|
|
47
|
-
convertFormat(sourceFormat: string): string;
|
|
48
57
|
hasFormat(date: string, sourceFormat: string): boolean;
|
|
49
|
-
isValid(date: string, inputFormat?: string): boolean;
|
|
50
|
-
isAfter(inputDate: string, afterISODate: string, inputFormat?: string): boolean;
|
|
51
|
-
isSameOrAfter(inputDate: string, afterISODate: string, inputFormat?: string): boolean;
|
|
52
|
-
isBefore(inputDate: string, beforeISODate: string, inputFormat?: string): boolean;
|
|
53
|
-
isSameOrBefore(inputDate: string, beforeISODate: string, inputFormat?: string): boolean;
|
|
54
|
-
isSame(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
55
|
-
isSameDay(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
56
|
-
isOther(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
57
|
-
isWeekend(inputDate: string): boolean;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
58
|
+
isValid(date: string | void | Date, inputFormat?: string): boolean;
|
|
59
|
+
isAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
60
|
+
isSameOrAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
61
|
+
isBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
62
|
+
isSameOrBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
63
|
+
isSame(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
64
|
+
isSameDay(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
65
|
+
isOther(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
66
|
+
isWeekend(inputDate: string | Date): boolean;
|
|
67
|
+
isAmbiguous(inputDate: string | Date, inputFormat?: string): boolean;
|
|
68
|
+
_calculate(date: string | Date, calculationFn: Function, property: string, value: number, inputFormat?: string): string;
|
|
69
|
+
addSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
70
|
+
addMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
71
|
+
addHours(date: string, amount: number, inputFormat?: string): string;
|
|
72
|
+
addDays(date: string, amount: number, inputFormat?: string): string;
|
|
73
|
+
addWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
74
|
+
addMonths(date: string, amount: number, inputFormat?: string): string;
|
|
75
|
+
addYears(date: string, amount: number, inputFormat?: string): string;
|
|
76
|
+
subtractSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
77
|
+
subtractMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
78
|
+
subtractHours(date: string, amount: number, inputFormat?: string): string;
|
|
79
|
+
subtractDays(date: string, amount: number, inputFormat?: string): string;
|
|
80
|
+
subtractWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
81
|
+
subtractMonths(date: string, amount: number, inputFormat?: string): string;
|
|
82
|
+
subtractYears(date: string, amount: number, inputFormat?: string): string;
|
|
83
|
+
_get(date: string | Date, method: Function, inputFormat?: string, options?: Object): string;
|
|
84
|
+
startOfMonth(date: string | Date, inputFormat?: string): string;
|
|
85
|
+
endOfMonth(date: string | Date, inputFormat?: string): string;
|
|
86
|
+
startOfWeek(date: string | Date, inputFormat?: string): string;
|
|
87
|
+
getHours(date: string | Date, inputFormat?: string): number;
|
|
88
|
+
getMinutes(date: string | Date, inputFormat?: string): number;
|
|
89
|
+
getWeek(date: string | Date, inputFormat?: string): number;
|
|
90
|
+
_set(date: string | Date, property: string, value: number, inputFormat?: string): string;
|
|
91
|
+
setYear(date: string | Date, year: number, inputFormat?: string): string;
|
|
92
|
+
setMonth(date: string | Date, month: number, inputFormat?: string): string;
|
|
93
|
+
setDay(date: string | Date, day: number, inputFormat?: string): string;
|
|
94
|
+
setHour(date: string | Date, hour: number, inputFormat?: string): string;
|
|
95
|
+
setMinute(date: string | Date, minute: number, inputFormat?: string): string;
|
|
96
|
+
setSecond(date: string | Date, second: number, inputFormat?: string): string;
|
|
97
|
+
setMilliseconds(date: string | Date, millisecond: number, inputFormat?: string): string;
|
|
98
|
+
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number, inputFormat?: string): string;
|
|
99
|
+
getTimeZone(): string;
|
|
100
|
+
setTimeZone(timeZone: string): void;
|
|
101
|
+
getDateFnsContext(): Function;
|
|
102
|
+
getOffset(date: string | Date, inputFormat?: string): import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
103
|
+
getTimezoneOffsets(): {
|
|
104
|
+
standard?: import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
105
|
+
daylight?: import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
106
|
+
};
|
|
85
107
|
};
|
|
86
108
|
/**
|
|
87
109
|
*/
|
|
@@ -35,54 +35,68 @@ declare class RangeConstraint {
|
|
|
35
35
|
*/
|
|
36
36
|
get util(): {
|
|
37
37
|
_isoFormat: string;
|
|
38
|
-
|
|
38
|
+
_timeZone: string;
|
|
39
39
|
getOptions(): {
|
|
40
40
|
weekStartsOn: 0 | 2 | 1 | 3 | 4 | 5 | 6;
|
|
41
41
|
firstWeekContainsDate: 2 | 1 | 3 | 4 | 5 | 6 | 7;
|
|
42
42
|
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
getIsoFormat(): string;
|
|
44
|
+
convertFormat(sourceFormat: string): string;
|
|
45
|
+
getLocale(): import("date-fns").Locale;
|
|
46
|
+
toDate(date: string | Date, inputFormat?: string): Date;
|
|
47
|
+
toFormat(isoDate: string | Date, targetFormat: string, inputFormat?: string): string;
|
|
46
48
|
toISO(date: string | Date, sourceFormat?: string): string;
|
|
47
49
|
now(): string;
|
|
48
|
-
convertFormat(sourceFormat: string): string;
|
|
49
50
|
hasFormat(date: string, sourceFormat: string): boolean;
|
|
50
|
-
isValid(date: string, inputFormat?: string): boolean;
|
|
51
|
-
isAfter(inputDate: string, afterISODate: string, inputFormat?: string): boolean;
|
|
52
|
-
isSameOrAfter(inputDate: string, afterISODate: string, inputFormat?: string): boolean;
|
|
53
|
-
isBefore(inputDate: string, beforeISODate: string, inputFormat?: string): boolean;
|
|
54
|
-
isSameOrBefore(inputDate: string, beforeISODate: string, inputFormat?: string): boolean;
|
|
55
|
-
isSame(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
56
|
-
isSameDay(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
57
|
-
isOther(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
58
|
-
isWeekend(inputDate: string): boolean;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
51
|
+
isValid(date: string | void | Date, inputFormat?: string): boolean;
|
|
52
|
+
isAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
53
|
+
isSameOrAfter(inputDate: string | Date, afterISODate: string | Date, inputFormat?: string): boolean;
|
|
54
|
+
isBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
55
|
+
isSameOrBefore(inputDate: string | Date, beforeISODate: string | Date, inputFormat?: string): boolean;
|
|
56
|
+
isSame(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
57
|
+
isSameDay(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
58
|
+
isOther(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
59
|
+
isWeekend(inputDate: string | Date): boolean;
|
|
60
|
+
isAmbiguous(inputDate: string | Date, inputFormat?: string): boolean;
|
|
61
|
+
_calculate(date: string | Date, calculationFn: Function, property: string, value: number, inputFormat?: string): string;
|
|
62
|
+
addSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
63
|
+
addMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
64
|
+
addHours(date: string, amount: number, inputFormat?: string): string;
|
|
65
|
+
addDays(date: string, amount: number, inputFormat?: string): string;
|
|
66
|
+
addWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
67
|
+
addMonths(date: string, amount: number, inputFormat?: string): string;
|
|
68
|
+
addYears(date: string, amount: number, inputFormat?: string): string;
|
|
69
|
+
subtractSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
70
|
+
subtractMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
71
|
+
subtractHours(date: string, amount: number, inputFormat?: string): string;
|
|
72
|
+
subtractDays(date: string, amount: number, inputFormat?: string): string;
|
|
73
|
+
subtractWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
74
|
+
subtractMonths(date: string, amount: number, inputFormat?: string): string;
|
|
75
|
+
subtractYears(date: string, amount: number, inputFormat?: string): string;
|
|
76
|
+
_get(date: string | Date, method: Function, inputFormat?: string, options?: Object): string;
|
|
77
|
+
startOfMonth(date: string | Date, inputFormat?: string): string;
|
|
78
|
+
endOfMonth(date: string | Date, inputFormat?: string): string;
|
|
79
|
+
startOfWeek(date: string | Date, inputFormat?: string): string;
|
|
80
|
+
getHours(date: string | Date, inputFormat?: string): number;
|
|
81
|
+
getMinutes(date: string | Date, inputFormat?: string): number;
|
|
82
|
+
getWeek(date: string | Date, inputFormat?: string): number;
|
|
83
|
+
_set(date: string | Date, property: string, value: number, inputFormat?: string): string;
|
|
84
|
+
setYear(date: string | Date, year: number, inputFormat?: string): string;
|
|
85
|
+
setMonth(date: string | Date, month: number, inputFormat?: string): string;
|
|
86
|
+
setDay(date: string | Date, day: number, inputFormat?: string): string;
|
|
87
|
+
setHour(date: string | Date, hour: number, inputFormat?: string): string;
|
|
88
|
+
setMinute(date: string | Date, minute: number, inputFormat?: string): string;
|
|
89
|
+
setSecond(date: string | Date, second: number, inputFormat?: string): string;
|
|
90
|
+
setMilliseconds(date: string | Date, millisecond: number, inputFormat?: string): string;
|
|
91
|
+
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number, inputFormat?: string): string;
|
|
92
|
+
getTimeZone(): string;
|
|
93
|
+
setTimeZone(timeZone: string): void;
|
|
94
|
+
getDateFnsContext(): Function;
|
|
95
|
+
getOffset(date: string | Date, inputFormat?: string): import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
96
|
+
getTimezoneOffsets(): {
|
|
97
|
+
standard?: import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
98
|
+
daylight?: import("../../../utils/datetime/DateTimeUtil").OffsetInfo;
|
|
99
|
+
};
|
|
86
100
|
};
|
|
87
101
|
/**
|
|
88
102
|
*/
|
|
@@ -10,11 +10,12 @@ declare class BaseModel {
|
|
|
10
10
|
/**
|
|
11
11
|
* constructor
|
|
12
12
|
*/
|
|
13
|
-
constructor(data: Object, contributions: Object);
|
|
13
|
+
constructor(data: Object, contributions: Object, modelOptions?: ModelOptions);
|
|
14
14
|
_data: Object;
|
|
15
15
|
_contributions: Object;
|
|
16
16
|
_layouthint: LayoutHintCollection;
|
|
17
17
|
_connectKey: string;
|
|
18
|
+
_modelOptions: ModelOptions;
|
|
18
19
|
/**
|
|
19
20
|
* Retrieve data
|
|
20
21
|
*/
|
|
@@ -31,6 +32,15 @@ declare class BaseModel {
|
|
|
31
32
|
* Retrieve property from the contributions of the model, mostly used internal
|
|
32
33
|
*/
|
|
33
34
|
getContribution(propName: string, defaultValue?: any): any;
|
|
35
|
+
/**
|
|
36
|
+
*/
|
|
37
|
+
get modelOptions(): ModelOptions;
|
|
38
|
+
/**
|
|
39
|
+
*/
|
|
40
|
+
get origin(): string;
|
|
41
|
+
/**
|
|
42
|
+
*/
|
|
43
|
+
get contextPath(): string;
|
|
34
44
|
/**
|
|
35
45
|
* Set the layouthint
|
|
36
46
|
*/
|
|
@@ -65,3 +75,4 @@ declare class BaseModel {
|
|
|
65
75
|
clone(): any;
|
|
66
76
|
}
|
|
67
77
|
import LayoutHintCollection from "../layouthint/LayoutHintCollection";
|
|
78
|
+
import { ModelOptions } from "../types";
|
|
@@ -16,6 +16,10 @@ export default class ConceptDetailModel extends ResourceModel {
|
|
|
16
16
|
* Available diagrams for the concept, most of the time just one
|
|
17
17
|
*/
|
|
18
18
|
get diagramLinks(): LinkCollection;
|
|
19
|
+
/**
|
|
20
|
+
* Get model category of the concept
|
|
21
|
+
*/
|
|
22
|
+
get modelCategory(): string;
|
|
19
23
|
/**
|
|
20
24
|
* Get taxonomy type
|
|
21
25
|
*/
|
|
@@ -67,10 +71,6 @@ export default class ConceptDetailModel extends ResourceModel {
|
|
|
67
71
|
* Indicates if the given concept type id or href exists in the hierarchy of concept types for this concept
|
|
68
72
|
*/
|
|
69
73
|
isOfConceptType(conceptTypeId: string): boolean;
|
|
70
|
-
/**
|
|
71
|
-
* Indicates if the given metamodel functional identifier exists in the hierarchy of concept types for this concept
|
|
72
|
-
*/
|
|
73
|
-
hasMetamodelIdInConceptTypeHierarchy(metamodelId: string): boolean;
|
|
74
74
|
}
|
|
75
75
|
import ResourceModel from "../base/ResourceModel";
|
|
76
76
|
import ConceptRelationCollection from "./ConceptRelationCollection";
|
|
@@ -20,6 +20,10 @@ export default class ConceptIndexModel extends ResourceModel {
|
|
|
20
20
|
* get searchterm filter
|
|
21
21
|
*/
|
|
22
22
|
get searchtermfilter(): FilterType;
|
|
23
|
+
/**
|
|
24
|
+
* Get model category filter
|
|
25
|
+
*/
|
|
26
|
+
get modelCategoryFilter(): FilterType;
|
|
23
27
|
/**
|
|
24
28
|
* Replace the items collection
|
|
25
29
|
*/
|
|
@@ -5,7 +5,7 @@ export default class ConceptLinkModel extends BaseModel {
|
|
|
5
5
|
/**
|
|
6
6
|
* Construct ConceptLinkModel
|
|
7
7
|
*/
|
|
8
|
-
constructor(data: Object, entryDate?: ISO_DATE);
|
|
8
|
+
constructor(data: Object, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
9
9
|
_links: LinkCollection | null;
|
|
10
10
|
_entryDate: ISO_DATE;
|
|
11
11
|
_conceptType: ConceptTypeDetailModel | null;
|
|
@@ -60,10 +60,6 @@ export default class ConceptLinkModel extends BaseModel {
|
|
|
60
60
|
* Indicates if the given concept type id or href exists in the hierarchy of concept types for this concept
|
|
61
61
|
*/
|
|
62
62
|
isOfConceptType(conceptTypeId: string): boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Indicates if the given metamodel functional identifier exists in the hierarchy of concept types for this concept
|
|
65
|
-
*/
|
|
66
|
-
hasMetamodelIdInConceptTypeHierarchy(metamodelId: string): boolean;
|
|
67
63
|
}
|
|
68
64
|
import BaseModel from "../base/BaseModel";
|
|
69
65
|
import LinkCollection from "../links/LinkCollection";
|
|
@@ -71,3 +67,4 @@ import ConceptTypeDetailModel from "./ConceptTypeDetailModel";
|
|
|
71
67
|
import LinkModel from "../links/LinkModel";
|
|
72
68
|
import { ModularUIModel } from "../types";
|
|
73
69
|
import Href from "../href/Href";
|
|
70
|
+
import { ModelOptions } from "../types";
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
export default class ConceptRelationCollection extends ResourceCollection<ConceptRelationModel, any> {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
constructor(relations?: Array<Object>, entryDate?: ISO_DATE);
|
|
7
|
+
constructor(relations?: Array<Object>, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
8
8
|
_entryDate: ISO_DATE;
|
|
9
|
+
_modelOptions: ModelOptions;
|
|
9
10
|
/**
|
|
10
11
|
* Get unique list of relation types
|
|
11
12
|
*/
|
|
@@ -32,3 +33,4 @@ export default class ConceptRelationCollection extends ResourceCollection<Concep
|
|
|
32
33
|
}
|
|
33
34
|
import ConceptRelationModel from "./ConceptRelationModel";
|
|
34
35
|
import ResourceCollection from "../base/ResourceCollection";
|
|
36
|
+
import { ModelOptions } from "../types";
|