@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
|
@@ -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";
|
|
@@ -4,8 +4,9 @@
|
|
|
4
4
|
export default class ConceptRelationModel {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
constructor(relation: Object, entryDate?: ISO_DATE);
|
|
7
|
+
constructor(relation: Object, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
8
8
|
_relation: Object;
|
|
9
|
+
_modelOptions: ModelOptions;
|
|
9
10
|
_concept: ConceptLinkModel;
|
|
10
11
|
/**
|
|
11
12
|
*/
|
|
@@ -52,6 +53,7 @@ export default class ConceptRelationModel {
|
|
|
52
53
|
*/
|
|
53
54
|
get properties(): propertyJSON[];
|
|
54
55
|
}
|
|
56
|
+
import { ModelOptions } from "../types";
|
|
55
57
|
import ConceptLinkModel from "./ConceptLinkModel";
|
|
56
58
|
import LinkModel from "../links/LinkModel";
|
|
57
59
|
import { ModularUIModel } from "../types";
|
|
@@ -7,7 +7,11 @@ declare class ConceptTypeDetailModel extends ResourceModel {
|
|
|
7
7
|
* The name of the concept type consists of the functional id of the kmt and the functional id of the concept type separated by a #.<br>
|
|
8
8
|
* For example BEI_CaseManagement#Case
|
|
9
9
|
*/
|
|
10
|
-
get
|
|
10
|
+
get kmtId(): string;
|
|
11
|
+
/**
|
|
12
|
+
* Get model category of the concept type
|
|
13
|
+
*/
|
|
14
|
+
get modelCategory(): string;
|
|
11
15
|
/**
|
|
12
16
|
*/
|
|
13
17
|
get isCoreTaxonomy(): boolean;
|
|
@@ -43,16 +47,8 @@ declare class ConceptTypeDetailModel extends ResourceModel {
|
|
|
43
47
|
* Get sectionReferenceTypes
|
|
44
48
|
*/
|
|
45
49
|
get sectionReferenceTypes(): Object[];
|
|
46
|
-
/**
|
|
47
|
-
*/
|
|
48
|
-
get conceptTypeHierarchy(): LinkCollection;
|
|
49
50
|
/**
|
|
50
51
|
*/
|
|
51
52
|
isOfConceptType(conceptTypeId: string): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Indicates if the given metamodel functional identifier exists in the hierarchy of concept types
|
|
54
|
-
*/
|
|
55
|
-
hasMetamodelIdInHierarchy(metamodelId: string): boolean;
|
|
56
53
|
}
|
|
57
54
|
import ResourceModel from "../base/ResourceModel";
|
|
58
|
-
import LinkCollection from "../links/LinkCollection";
|
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
export default class SourceReferenceCollection extends BaseCollection<SourceReferenceModel> {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
constructor(sourceReferences?: Array<Object>, entryDate?: ISO_DATE);
|
|
7
|
+
constructor(sourceReferences?: Array<Object>, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
8
8
|
/**
|
|
9
9
|
*/
|
|
10
10
|
byTypes(types: string): Array<SourceReferenceModel>;
|
|
11
11
|
}
|
|
12
12
|
import SourceReferenceModel from "./SourceReferenceModel";
|
|
13
13
|
import BaseCollection from "../base/BaseCollection";
|
|
14
|
+
import { ModelOptions } from "../types";
|
|
@@ -4,9 +4,10 @@ export default SourceReferenceModel;
|
|
|
4
4
|
declare class SourceReferenceModel {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
constructor(sourceReference: Object, entryDate?: ISO_DATE);
|
|
7
|
+
constructor(sourceReference: Object, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
8
8
|
_sourceReference: Object;
|
|
9
9
|
_entryDate: ISO_DATE;
|
|
10
|
+
_modelOptions: ModelOptions;
|
|
10
11
|
/**
|
|
11
12
|
*/
|
|
12
13
|
get link(): ContentLinkModel;
|
|
@@ -26,5 +27,6 @@ declare class SourceReferenceModel {
|
|
|
26
27
|
*/
|
|
27
28
|
get referenceHash(): number;
|
|
28
29
|
}
|
|
30
|
+
import { ModelOptions } from "../types";
|
|
29
31
|
import ContentLinkModel from "../content/ContentLinkModel";
|
|
30
32
|
import Href from "../href/Href";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
export default class ContentLinkModel extends BaseModel {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
constructor(data: Object, entryDate?: ISO_DATE);
|
|
7
|
+
constructor(data: Object, entryDate?: ISO_DATE, modelOptions?: ModelOptions);
|
|
8
8
|
_links: LinkCollection | null;
|
|
9
9
|
_entryDate: ISO_DATE;
|
|
10
10
|
_contentType: ContentTypeModel | null;
|
|
@@ -82,3 +82,4 @@ import ContentTypeModel from "./ContentTypeModel";
|
|
|
82
82
|
import LinkModel from "../links/LinkModel";
|
|
83
83
|
import { ModularUIModel } from "../types";
|
|
84
84
|
import Href from "../href/Href";
|
|
85
|
+
import { ModelOptions } from "../types";
|
|
@@ -2,7 +2,7 @@ export default SectionModel;
|
|
|
2
2
|
/**
|
|
3
3
|
*/
|
|
4
4
|
declare class SectionModel extends BaseModel {
|
|
5
|
-
constructor(data: Object, entryDate: ISO_DATE | null);
|
|
5
|
+
constructor(data: Object, entryDate: ISO_DATE | null, modelOptions?: ModelOptions);
|
|
6
6
|
_entryDate: ISO_DATE | null;
|
|
7
7
|
_selflink: LinkModel | null;
|
|
8
8
|
_childSections: Array<SectionModel>;
|
|
@@ -73,3 +73,4 @@ import LinkModel from "../links/LinkModel";
|
|
|
73
73
|
import Href from "../href/Href";
|
|
74
74
|
import ContentLinkModel from "./ContentLinkModel";
|
|
75
75
|
import SubSectionModel from "./SubSectionModel";
|
|
76
|
+
import { ModelOptions } from "../types";
|
|
@@ -4,7 +4,8 @@
|
|
|
4
4
|
export default class SubSectionModel extends BaseModel {
|
|
5
5
|
/**
|
|
6
6
|
*/
|
|
7
|
-
constructor(data: Object);
|
|
7
|
+
constructor(data: Object, entryDate: ISO_DATE | null, modelOptions?: ModelOptions);
|
|
8
|
+
_entryDate: ISO_DATE | null;
|
|
8
9
|
_links: LinkCollection;
|
|
9
10
|
/**
|
|
10
11
|
*/
|
|
@@ -44,6 +45,9 @@ export default class SubSectionModel extends BaseModel {
|
|
|
44
45
|
* Return default self link of resource
|
|
45
46
|
*/
|
|
46
47
|
get selfhref(): Href;
|
|
48
|
+
/**
|
|
49
|
+
*/
|
|
50
|
+
get entryDate(): any;
|
|
47
51
|
/**
|
|
48
52
|
*/
|
|
49
53
|
get relatedConceptsHrefs(): Href[];
|
|
@@ -62,3 +66,4 @@ import BaseModel from "../base/BaseModel";
|
|
|
62
66
|
import LinkCollection from "../links/LinkCollection";
|
|
63
67
|
import LinkModel from "../links/LinkModel";
|
|
64
68
|
import Href from "../href/Href";
|
|
69
|
+
import { ModelOptions } from "../types";
|