@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
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
type OffsetInfo = {
|
|
2
|
+
abbr: string;
|
|
3
|
+
label: string;
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
1
6
|
/**
|
|
2
7
|
* DateUtil
|
|
3
8
|
*/
|
|
@@ -20,19 +25,29 @@ export const TimestampUtil: BaseDateTimeUtil;
|
|
|
20
25
|
declare class BaseDateTimeUtil {
|
|
21
26
|
constructor(isoFormat: string);
|
|
22
27
|
_isoFormat: string;
|
|
28
|
+
_timeZone: string;
|
|
23
29
|
/**
|
|
30
|
+
* Returns the options defined in settings
|
|
24
31
|
*/
|
|
25
|
-
getLocale(): typeof nl | typeof enGB;
|
|
26
32
|
getOptions(): {
|
|
27
33
|
weekStartsOn: 0 | 1 | 2 | 3 | 4 | 5 | 6;
|
|
28
34
|
firstWeekContainsDate: 1 | 2 | 3 | 4 | 5 | 6 | 7;
|
|
29
35
|
};
|
|
30
36
|
/**
|
|
31
37
|
*/
|
|
32
|
-
|
|
38
|
+
getIsoFormat(): string;
|
|
39
|
+
/**
|
|
40
|
+
*/
|
|
41
|
+
convertFormat(sourceFormat: string): string;
|
|
42
|
+
/**
|
|
43
|
+
*/
|
|
44
|
+
getLocale(): typeof nl | typeof enGB;
|
|
45
|
+
/**
|
|
46
|
+
*/
|
|
47
|
+
toDate(date: string | Date, inputFormat?: string): Date;
|
|
33
48
|
/**
|
|
34
49
|
*/
|
|
35
|
-
toFormat(
|
|
50
|
+
toFormat(isoDate: string | Date, targetFormat: string, inputFormat?: string): string;
|
|
36
51
|
/**
|
|
37
52
|
*/
|
|
38
53
|
toISO(date: string | Date, sourceFormat?: string): string;
|
|
@@ -41,122 +56,153 @@ declare class BaseDateTimeUtil {
|
|
|
41
56
|
now(): string;
|
|
42
57
|
/**
|
|
43
58
|
*/
|
|
44
|
-
|
|
59
|
+
hasFormat(date: string, sourceFormat: string): boolean;
|
|
45
60
|
/**
|
|
46
|
-
* VALIDATION
|
|
47
61
|
*/
|
|
48
|
-
|
|
62
|
+
isValid(date: string | Date | null | void, inputFormat?: string): boolean;
|
|
63
|
+
/**
|
|
64
|
+
*/
|
|
65
|
+
isAfter(inputDate: string | Date, afterISODate: (string | Date) | null, inputFormat?: string): boolean;
|
|
66
|
+
/**
|
|
67
|
+
*/
|
|
68
|
+
isSameOrAfter(inputDate: string | Date, afterISODate: (string | Date) | null, inputFormat?: string): boolean;
|
|
49
69
|
/**
|
|
50
70
|
*/
|
|
51
|
-
|
|
71
|
+
isBefore(inputDate: string | Date, beforeISODate: (string | Date) | null, inputFormat?: string): boolean;
|
|
52
72
|
/**
|
|
53
73
|
*/
|
|
54
|
-
|
|
74
|
+
isSameOrBefore(inputDate: string | Date, beforeISODate: (string | Date) | null, inputFormat?: string): boolean;
|
|
55
75
|
/**
|
|
56
76
|
*/
|
|
57
|
-
|
|
77
|
+
isSame(inputDate: string | Date, compareDate: (string | Date) | null, inputFormat?: string): boolean;
|
|
58
78
|
/**
|
|
59
79
|
*/
|
|
60
|
-
|
|
80
|
+
isSameDay(inputDate: string | Date, compareDate: string | Date, inputFormat?: string): boolean;
|
|
61
81
|
/**
|
|
62
82
|
*/
|
|
63
|
-
|
|
83
|
+
isOther(inputDate: string | Date, compareDate: (string | Date) | null, inputFormat?: string): boolean;
|
|
64
84
|
/**
|
|
65
85
|
*/
|
|
66
|
-
|
|
86
|
+
isWeekend(inputDate: string | Date): boolean;
|
|
67
87
|
/**
|
|
88
|
+
* Checks if a given local date and time is ambiguous in the specified timezone.
|
|
89
|
+
* Ambiguity happens during the end of daylight saving time (DST) transitions.
|
|
68
90
|
*/
|
|
69
|
-
|
|
91
|
+
isAmbiguous(inputDate: string | Date, inputFormat?: string): boolean;
|
|
70
92
|
/**
|
|
93
|
+
* @private
|
|
71
94
|
*/
|
|
72
|
-
|
|
95
|
+
private _calculate;
|
|
73
96
|
/**
|
|
74
97
|
*/
|
|
75
|
-
|
|
98
|
+
addSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
76
99
|
/**
|
|
77
|
-
* CALCULATIONS
|
|
78
100
|
*/
|
|
79
|
-
|
|
101
|
+
addMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
80
102
|
/**
|
|
81
103
|
*/
|
|
82
|
-
|
|
104
|
+
addHours(date: string, amount: number, inputFormat?: string): string;
|
|
83
105
|
/**
|
|
84
106
|
*/
|
|
85
|
-
|
|
107
|
+
addDays(date: string, amount: number, inputFormat?: string): string;
|
|
86
108
|
/**
|
|
87
109
|
*/
|
|
88
|
-
|
|
110
|
+
addWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
89
111
|
/**
|
|
90
112
|
*/
|
|
91
|
-
|
|
113
|
+
addMonths(date: string, amount: number, inputFormat?: string): string;
|
|
92
114
|
/**
|
|
93
115
|
*/
|
|
94
|
-
|
|
116
|
+
addYears(date: string, amount: number, inputFormat?: string): string;
|
|
95
117
|
/**
|
|
96
118
|
*/
|
|
97
|
-
|
|
119
|
+
subtractSeconds(date: string, amount: number, inputFormat?: string): string;
|
|
98
120
|
/**
|
|
99
121
|
*/
|
|
100
|
-
|
|
122
|
+
subtractMinutes(date: string, amount: number, inputFormat?: string): string;
|
|
101
123
|
/**
|
|
102
124
|
*/
|
|
103
|
-
|
|
125
|
+
subtractHours(date: string, amount: number, inputFormat?: string): string;
|
|
104
126
|
/**
|
|
105
127
|
*/
|
|
106
|
-
|
|
128
|
+
subtractDays(date: string, amount: number, inputFormat?: string): string;
|
|
107
129
|
/**
|
|
108
130
|
*/
|
|
109
|
-
|
|
131
|
+
subtractWeeks(date: string, amount: number, inputFormat?: string): string;
|
|
110
132
|
/**
|
|
111
133
|
*/
|
|
112
|
-
|
|
134
|
+
subtractMonths(date: string, amount: number, inputFormat?: string): string;
|
|
113
135
|
/**
|
|
114
136
|
*/
|
|
115
|
-
|
|
137
|
+
subtractYears(date: string, amount: number, inputFormat?: string): string;
|
|
116
138
|
/**
|
|
139
|
+
* @private
|
|
117
140
|
*/
|
|
118
|
-
|
|
141
|
+
private _get;
|
|
119
142
|
/**
|
|
120
|
-
* GETTERS
|
|
121
143
|
*/
|
|
122
|
-
startOfMonth(date: string, inputFormat?: string): string;
|
|
144
|
+
startOfMonth(date: string | Date, inputFormat?: string): string;
|
|
123
145
|
/**
|
|
124
146
|
*/
|
|
125
|
-
endOfMonth(date: string, inputFormat?: string): string;
|
|
147
|
+
endOfMonth(date: string | Date, inputFormat?: string): string;
|
|
126
148
|
/**
|
|
127
149
|
*/
|
|
128
|
-
startOfWeek(date: string, inputFormat?: string): string;
|
|
150
|
+
startOfWeek(date: string | Date, inputFormat?: string): string;
|
|
129
151
|
/**
|
|
130
152
|
*/
|
|
131
|
-
getHours(date: string | Date): number;
|
|
153
|
+
getHours(date: string | Date, inputFormat?: string): number;
|
|
132
154
|
/**
|
|
133
155
|
*/
|
|
134
|
-
getMinutes(date: string | Date): number;
|
|
156
|
+
getMinutes(date: string | Date, inputFormat?: string): number;
|
|
135
157
|
/**
|
|
136
158
|
*/
|
|
137
|
-
getWeek(date: string): number;
|
|
159
|
+
getWeek(date: string | Date, inputFormat?: string): number;
|
|
138
160
|
/**
|
|
139
|
-
*
|
|
161
|
+
* @private
|
|
140
162
|
*/
|
|
141
|
-
|
|
163
|
+
private _set;
|
|
142
164
|
/**
|
|
143
165
|
*/
|
|
144
|
-
|
|
166
|
+
setYear(date: string | Date, year: number, inputFormat?: string): string;
|
|
145
167
|
/**
|
|
146
168
|
*/
|
|
147
|
-
|
|
169
|
+
setMonth(date: string | Date, month: number, inputFormat?: string): string;
|
|
148
170
|
/**
|
|
149
171
|
*/
|
|
150
|
-
|
|
172
|
+
setDay(date: string | Date, day: number, inputFormat?: string): string;
|
|
151
173
|
/**
|
|
152
174
|
*/
|
|
153
|
-
|
|
175
|
+
setHour(date: string | Date, hour: number, inputFormat?: string): string;
|
|
154
176
|
/**
|
|
155
177
|
*/
|
|
156
|
-
|
|
178
|
+
setMinute(date: string | Date, minute: number, inputFormat?: string): string;
|
|
157
179
|
/**
|
|
158
180
|
*/
|
|
159
|
-
|
|
181
|
+
setSecond(date: string | Date, second: number, inputFormat?: string): string;
|
|
182
|
+
/**
|
|
183
|
+
*/
|
|
184
|
+
setMilliseconds(date: string | Date, millisecond: number, inputFormat?: string): string;
|
|
185
|
+
/**
|
|
186
|
+
*/
|
|
187
|
+
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number, inputFormat?: string): string;
|
|
188
|
+
/**
|
|
189
|
+
*/
|
|
190
|
+
getTimeZone(): string;
|
|
191
|
+
/**
|
|
192
|
+
*/
|
|
193
|
+
setTimeZone(timeZone: string): void;
|
|
194
|
+
/**
|
|
195
|
+
*/
|
|
196
|
+
getDateFnsContext(): null | Function;
|
|
197
|
+
/**
|
|
198
|
+
*/
|
|
199
|
+
getOffset(date: string | Date, inputFormat?: string): OffsetInfo | null;
|
|
200
|
+
/**
|
|
201
|
+
*/
|
|
202
|
+
getTimezoneOffsets(): {
|
|
203
|
+
standard?: OffsetInfo;
|
|
204
|
+
daylight?: OffsetInfo;
|
|
205
|
+
};
|
|
160
206
|
}
|
|
161
207
|
import { nl } from "date-fns/locale";
|
|
162
208
|
import { enGB } from "date-fns/locale";
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
export function parseUrl(href: string): {
|
|
1
|
+
export function parseUrl(href: string | Href): {
|
|
2
2
|
path: string;
|
|
3
3
|
querystring: null | string;
|
|
4
4
|
hash: null | string;
|
|
5
5
|
};
|
|
6
|
-
export function filterParameters(href: string, allowedParameters?: Array<string>):
|
|
7
|
-
export function createHref(context: string, dynamicPart: string, location?: Location, allowedParameters?: Array<string>):
|
|
6
|
+
export function filterParameters(href: string | Href, allowedParameters?: Array<string>): Href;
|
|
7
|
+
export function createHref(context: string, dynamicPart: string | Href, entryDate?: ISO_DATE, location?: Location, allowedParameters?: Array<string>): Href;
|
|
8
|
+
import Href from "../../models/href/Href";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export function getRepositoryResourceUrl(resourceUrl: string): string;
|
|
1
|
+
export function getRepositoryResourceUrl(resourceUrl: string, contextPath?: string, origin?: string): string;
|