@beinformed/ui 1.33.0-beta.4 → 1.33.0-beta.6
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 +9 -0
- package/esm/models/filters/BaseFilterModel.js +21 -0
- package/esm/models/filters/BaseFilterModel.js.map +1 -1
- package/esm/models/filters/StringFilterModel.js +36 -13
- package/esm/models/filters/StringFilterModel.js.map +1 -1
- package/lib/models/filters/BaseFilterModel.js +21 -0
- package/lib/models/filters/BaseFilterModel.js.flow +21 -0
- package/lib/models/filters/BaseFilterModel.js.map +1 -1
- package/lib/models/filters/StringFilterModel.js +36 -13
- package/lib/models/filters/StringFilterModel.js.flow +43 -14
- package/lib/models/filters/StringFilterModel.js.map +1 -1
- package/lib/models/filters/__tests__/FilterModel.spec.js.flow +2 -2
- package/lib/models/filters/__tests__/ZipcodeFilter.spec.js.flow +31 -13
- package/package.json +1 -1
- package/src/models/filters/BaseFilterModel.js +21 -0
- package/src/models/filters/StringFilterModel.js +43 -14
- package/src/models/filters/__tests__/FilterModel.spec.js +2 -2
- package/src/models/filters/__tests__/ZipcodeFilter.spec.js +31 -13
- package/types/constants/Constants.d.ts +11 -11
- package/types/constants/LayoutHintConfig.d.ts +75 -75
- package/types/hooks/useI18n.d.ts +4 -0
- package/types/i18n/index.d.ts +1 -1
- package/types/i18n/languages.d.ts +196 -196
- package/types/models/attributes/BooleanAttributeModel.d.ts +0 -1
- package/types/models/attributes/ChoiceAttributeModel.d.ts +0 -1
- package/types/models/attributes/ChoiceAttributeOptionModel.d.ts +5 -0
- package/types/models/attributes/CompositeAttributeModel.d.ts +0 -5
- package/types/models/attributes/DatetimeAttributeModel.d.ts +1 -6
- package/types/models/attributes/layouthint-rules/BaseLayoutHintRule.d.ts +0 -1
- package/types/models/filters/BaseFilterModel.d.ts +16 -0
- package/types/models/filters/StringFilterModel.d.ts +15 -0
- package/types/models/form/FormModel.d.ts +0 -2
- package/types/models/form/FormObjectModel.d.ts +1 -1
- package/types/models/href/Href.d.ts +1 -1
- package/types/models/index.d.ts +1 -1
- package/types/models/layouthint/LayoutHintCollection.d.ts +4 -4
- package/types/models/sorting/SortingModel.d.ts +1 -1
- package/types/modularui/UploadRequest.d.ts +2 -2
- package/types/utils/index.d.ts +1 -1
package/types/hooks/useI18n.d.ts
CHANGED
package/types/i18n/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { default as Message } from "./Message";
|
|
2
2
|
export { default as withMessage } from "./withMessage";
|
|
3
|
-
export * from "./types";
|
|
3
|
+
export type * from "./types";
|
|
4
4
|
export { default as Locales, availableLocales, createLocalesWithConfiguredErrors } from "./Locales";
|
|
5
5
|
export { useMessage, useTranslate } from "../hooks/useI18n";
|
|
@@ -1,215 +1,215 @@
|
|
|
1
1
|
export default languages;
|
|
2
2
|
declare namespace languages {
|
|
3
3
|
namespace attribute {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
let name: number;
|
|
5
|
+
let nativeName: number;
|
|
6
6
|
}
|
|
7
7
|
namespace rtl {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
let ar: number;
|
|
9
|
+
let dv: number;
|
|
10
|
+
let fa: number;
|
|
11
|
+
let ha: number;
|
|
12
|
+
let he: number;
|
|
13
|
+
let ks: number;
|
|
14
|
+
let ku: number;
|
|
15
|
+
let ps: number;
|
|
16
|
+
let ur: number;
|
|
17
|
+
let yi: number;
|
|
18
18
|
}
|
|
19
19
|
namespace lang {
|
|
20
|
-
export
|
|
21
|
-
export
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export
|
|
25
|
-
export
|
|
26
|
-
|
|
20
|
+
export let aa: string[];
|
|
21
|
+
export let ab: string[];
|
|
22
|
+
export let af: string[];
|
|
23
|
+
export let ak: string[];
|
|
24
|
+
export let am: string[];
|
|
25
|
+
export let an: string[];
|
|
26
|
+
let ar_1: string[];
|
|
27
27
|
export { ar_1 as ar };
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export
|
|
35
|
-
export
|
|
36
|
-
export
|
|
37
|
-
export
|
|
38
|
-
export
|
|
39
|
-
export
|
|
40
|
-
export
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
47
|
-
export
|
|
48
|
-
export
|
|
49
|
-
export
|
|
50
|
-
export
|
|
51
|
-
export
|
|
52
|
-
export
|
|
53
|
-
|
|
28
|
+
export let as: string[];
|
|
29
|
+
export let av: string[];
|
|
30
|
+
export let ay: string[];
|
|
31
|
+
export let az: string[];
|
|
32
|
+
export let ba: string[];
|
|
33
|
+
export let be: string[];
|
|
34
|
+
export let bg: string[];
|
|
35
|
+
export let bh: string[];
|
|
36
|
+
export let bi: string[];
|
|
37
|
+
export let bm: string[];
|
|
38
|
+
export let bn: string[];
|
|
39
|
+
export let bo: string[];
|
|
40
|
+
export let br: string[];
|
|
41
|
+
export let bs: string[];
|
|
42
|
+
export let ca: string[];
|
|
43
|
+
export let ce: string[];
|
|
44
|
+
export let ch: string[];
|
|
45
|
+
export let co: string[];
|
|
46
|
+
export let cr: string[];
|
|
47
|
+
export let cs: string[];
|
|
48
|
+
export let cu: string[];
|
|
49
|
+
export let cv: string[];
|
|
50
|
+
export let cy: string[];
|
|
51
|
+
export let da: string[];
|
|
52
|
+
export let de: string[];
|
|
53
|
+
let dv_1: string[];
|
|
54
54
|
export { dv_1 as dv };
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
59
|
-
export
|
|
60
|
-
export
|
|
61
|
-
export
|
|
62
|
-
export
|
|
63
|
-
|
|
55
|
+
export let dz: string[];
|
|
56
|
+
export let ee: string[];
|
|
57
|
+
export let el: string[];
|
|
58
|
+
export let en: string[];
|
|
59
|
+
export let eo: string[];
|
|
60
|
+
export let es: string[];
|
|
61
|
+
export let et: string[];
|
|
62
|
+
export let eu: string[];
|
|
63
|
+
let fa_1: string[];
|
|
64
64
|
export { fa_1 as fa };
|
|
65
|
-
export
|
|
66
|
-
export
|
|
67
|
-
export
|
|
68
|
-
export
|
|
69
|
-
export
|
|
70
|
-
export
|
|
71
|
-
export
|
|
72
|
-
export
|
|
73
|
-
export
|
|
74
|
-
export
|
|
75
|
-
export
|
|
76
|
-
export
|
|
77
|
-
|
|
65
|
+
export let ff: string[];
|
|
66
|
+
export let fi: string[];
|
|
67
|
+
export let fj: string[];
|
|
68
|
+
export let fo: string[];
|
|
69
|
+
export let fr: string[];
|
|
70
|
+
export let fy: string[];
|
|
71
|
+
export let ga: string[];
|
|
72
|
+
export let gd: string[];
|
|
73
|
+
export let gl: string[];
|
|
74
|
+
export let gn: string[];
|
|
75
|
+
export let gu: string[];
|
|
76
|
+
export let gv: string[];
|
|
77
|
+
let ha_1: string[];
|
|
78
78
|
export { ha_1 as ha };
|
|
79
|
-
|
|
79
|
+
let he_1: string[];
|
|
80
80
|
export { he_1 as he };
|
|
81
|
-
export
|
|
82
|
-
export
|
|
83
|
-
export
|
|
84
|
-
export
|
|
85
|
-
export
|
|
86
|
-
export
|
|
87
|
-
export
|
|
88
|
-
export
|
|
89
|
-
export
|
|
90
|
-
export
|
|
91
|
-
export
|
|
92
|
-
export
|
|
93
|
-
export
|
|
94
|
-
export
|
|
95
|
-
export
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
100
|
-
export
|
|
101
|
-
export
|
|
102
|
-
export
|
|
103
|
-
export
|
|
104
|
-
export
|
|
105
|
-
export
|
|
106
|
-
export
|
|
107
|
-
export
|
|
108
|
-
export
|
|
109
|
-
export
|
|
110
|
-
|
|
81
|
+
export let hi: string[];
|
|
82
|
+
export let ho: string[];
|
|
83
|
+
export let hr: string[];
|
|
84
|
+
export let ht: string[];
|
|
85
|
+
export let hu: string[];
|
|
86
|
+
export let hy: string[];
|
|
87
|
+
export let hz: string[];
|
|
88
|
+
export let ia: string[];
|
|
89
|
+
export let id: string[];
|
|
90
|
+
export let ie: string[];
|
|
91
|
+
export let ig: string[];
|
|
92
|
+
export let ii: string[];
|
|
93
|
+
export let ik: string[];
|
|
94
|
+
export let io: string[];
|
|
95
|
+
export let is: string[];
|
|
96
|
+
export let it: string[];
|
|
97
|
+
export let iu: string[];
|
|
98
|
+
export let ja: string[];
|
|
99
|
+
export let jv: string[];
|
|
100
|
+
export let ka: string[];
|
|
101
|
+
export let kg: string[];
|
|
102
|
+
export let ki: string[];
|
|
103
|
+
export let kj: string[];
|
|
104
|
+
export let kk: string[];
|
|
105
|
+
export let kl: string[];
|
|
106
|
+
export let km: string[];
|
|
107
|
+
export let kn: string[];
|
|
108
|
+
export let ko: string[];
|
|
109
|
+
export let kr: string[];
|
|
110
|
+
let ks_1: string[];
|
|
111
111
|
export { ks_1 as ks };
|
|
112
|
-
|
|
112
|
+
let ku_1: string[];
|
|
113
113
|
export { ku_1 as ku };
|
|
114
|
-
export
|
|
115
|
-
export
|
|
116
|
-
export
|
|
117
|
-
export
|
|
118
|
-
export
|
|
119
|
-
export
|
|
120
|
-
export
|
|
121
|
-
export
|
|
122
|
-
export
|
|
123
|
-
export
|
|
124
|
-
export
|
|
125
|
-
export
|
|
126
|
-
export
|
|
127
|
-
export
|
|
128
|
-
export
|
|
129
|
-
export
|
|
130
|
-
export
|
|
131
|
-
export
|
|
132
|
-
export
|
|
133
|
-
export
|
|
134
|
-
export
|
|
135
|
-
export
|
|
136
|
-
export
|
|
137
|
-
export
|
|
138
|
-
export
|
|
139
|
-
export
|
|
140
|
-
export
|
|
141
|
-
export
|
|
142
|
-
export
|
|
143
|
-
export
|
|
144
|
-
export
|
|
145
|
-
export
|
|
146
|
-
export
|
|
147
|
-
export
|
|
148
|
-
export
|
|
149
|
-
export
|
|
150
|
-
export
|
|
151
|
-
export
|
|
152
|
-
export
|
|
153
|
-
export
|
|
154
|
-
|
|
114
|
+
export let kv: string[];
|
|
115
|
+
export let kw: string[];
|
|
116
|
+
export let ky: string[];
|
|
117
|
+
export let la: string[];
|
|
118
|
+
export let lb: string[];
|
|
119
|
+
export let lg: string[];
|
|
120
|
+
export let li: string[];
|
|
121
|
+
export let ln: string[];
|
|
122
|
+
export let lo: string[];
|
|
123
|
+
export let lt: string[];
|
|
124
|
+
export let lv: string[];
|
|
125
|
+
export let mg: string[];
|
|
126
|
+
export let mh: string[];
|
|
127
|
+
export let mi: string[];
|
|
128
|
+
export let mk: string[];
|
|
129
|
+
export let ml: string[];
|
|
130
|
+
export let mn: string[];
|
|
131
|
+
export let mo: string[];
|
|
132
|
+
export let mr: string[];
|
|
133
|
+
export let ms: string[];
|
|
134
|
+
export let mt: string[];
|
|
135
|
+
export let my: string[];
|
|
136
|
+
export let na: string[];
|
|
137
|
+
export let nd: string[];
|
|
138
|
+
export let ne: string[];
|
|
139
|
+
export let ng: string[];
|
|
140
|
+
export let nl: string[];
|
|
141
|
+
export let nn: string[];
|
|
142
|
+
export let no: string[];
|
|
143
|
+
export let nr: string[];
|
|
144
|
+
export let nv: string[];
|
|
145
|
+
export let ny: string[];
|
|
146
|
+
export let oc: string[];
|
|
147
|
+
export let oj: string[];
|
|
148
|
+
export let om: string[];
|
|
149
|
+
export let or: string[];
|
|
150
|
+
export let os: string[];
|
|
151
|
+
export let pa: string[];
|
|
152
|
+
export let pi: string[];
|
|
153
|
+
export let pl: string[];
|
|
154
|
+
let ps_1: string[];
|
|
155
155
|
export { ps_1 as ps };
|
|
156
|
-
export
|
|
157
|
-
export
|
|
158
|
-
export
|
|
159
|
-
export
|
|
160
|
-
export
|
|
161
|
-
export
|
|
162
|
-
export
|
|
163
|
-
export
|
|
164
|
-
export
|
|
165
|
-
export
|
|
166
|
-
export
|
|
167
|
-
export
|
|
168
|
-
export
|
|
169
|
-
export
|
|
170
|
-
export
|
|
171
|
-
export
|
|
172
|
-
export
|
|
173
|
-
export
|
|
174
|
-
export
|
|
175
|
-
export
|
|
176
|
-
export
|
|
177
|
-
export
|
|
178
|
-
export
|
|
179
|
-
export
|
|
180
|
-
export
|
|
181
|
-
export
|
|
182
|
-
export
|
|
183
|
-
export
|
|
184
|
-
export
|
|
185
|
-
export
|
|
186
|
-
export
|
|
187
|
-
export
|
|
188
|
-
export
|
|
189
|
-
export
|
|
190
|
-
export
|
|
191
|
-
export
|
|
192
|
-
export
|
|
193
|
-
export
|
|
194
|
-
export
|
|
195
|
-
export
|
|
196
|
-
export
|
|
197
|
-
export
|
|
198
|
-
|
|
156
|
+
export let pt: string[];
|
|
157
|
+
export let qu: string[];
|
|
158
|
+
export let rm: string[];
|
|
159
|
+
export let rn: string[];
|
|
160
|
+
export let ro: string[];
|
|
161
|
+
export let ru: string[];
|
|
162
|
+
export let rw: string[];
|
|
163
|
+
export let sa: string[];
|
|
164
|
+
export let sc: string[];
|
|
165
|
+
export let sd: string[];
|
|
166
|
+
export let se: string[];
|
|
167
|
+
export let sg: string[];
|
|
168
|
+
export let sh: string[];
|
|
169
|
+
export let si: string[];
|
|
170
|
+
export let sk: string[];
|
|
171
|
+
export let sl: string[];
|
|
172
|
+
export let sm: string[];
|
|
173
|
+
export let sn: string[];
|
|
174
|
+
export let so: string[];
|
|
175
|
+
export let sq: string[];
|
|
176
|
+
export let sr: string[];
|
|
177
|
+
export let ss: string[];
|
|
178
|
+
export let st: string[];
|
|
179
|
+
export let su: string[];
|
|
180
|
+
export let sv: string[];
|
|
181
|
+
export let sw: string[];
|
|
182
|
+
export let ta: string[];
|
|
183
|
+
export let te: string[];
|
|
184
|
+
export let tg: string[];
|
|
185
|
+
export let th: string[];
|
|
186
|
+
export let ti: string[];
|
|
187
|
+
export let tk: string[];
|
|
188
|
+
export let tl: string[];
|
|
189
|
+
export let tn: string[];
|
|
190
|
+
export let to: string[];
|
|
191
|
+
export let tr: string[];
|
|
192
|
+
export let ts: string[];
|
|
193
|
+
export let tt: string[];
|
|
194
|
+
export let tw: string[];
|
|
195
|
+
export let ty: string[];
|
|
196
|
+
export let ug: string[];
|
|
197
|
+
export let uk: string[];
|
|
198
|
+
let ur_1: string[];
|
|
199
199
|
export { ur_1 as ur };
|
|
200
|
-
export
|
|
201
|
-
export
|
|
202
|
-
export
|
|
203
|
-
export
|
|
204
|
-
export
|
|
205
|
-
export
|
|
206
|
-
export
|
|
207
|
-
|
|
200
|
+
export let uz: string[];
|
|
201
|
+
export let ve: string[];
|
|
202
|
+
export let vi: string[];
|
|
203
|
+
export let vo: string[];
|
|
204
|
+
export let wa: string[];
|
|
205
|
+
export let wo: string[];
|
|
206
|
+
export let xh: string[];
|
|
207
|
+
let yi_1: string[];
|
|
208
208
|
export { yi_1 as yi };
|
|
209
|
-
export
|
|
210
|
-
export
|
|
211
|
-
export
|
|
212
|
-
export
|
|
213
|
-
export
|
|
209
|
+
export let yo: string[];
|
|
210
|
+
export let za: string[];
|
|
211
|
+
export let zh: string[];
|
|
212
|
+
export let zu: string[];
|
|
213
|
+
export let pap: string[];
|
|
214
214
|
}
|
|
215
215
|
}
|
|
@@ -24,6 +24,11 @@ declare class ChoiceAttributeOptionModel extends BaseModel {
|
|
|
24
24
|
* Get code of option
|
|
25
25
|
*/
|
|
26
26
|
get code(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Indicates that this a choice attribute option model, used when adding options to a choice attribute
|
|
29
|
+
* @returns {boolean}
|
|
30
|
+
*/
|
|
31
|
+
get isChoiceAttributeOptionModel(): boolean;
|
|
27
32
|
/**
|
|
28
33
|
*/
|
|
29
34
|
getInitialChildModelLinks(): Array<LinkModel>;
|
|
@@ -21,17 +21,12 @@ declare class CompositeAttributeModel extends AttributeModel {
|
|
|
21
21
|
/**
|
|
22
22
|
*/
|
|
23
23
|
get end(): AttributeType;
|
|
24
|
-
/**
|
|
25
|
-
* Validate input
|
|
26
|
-
*/
|
|
27
|
-
validate(): boolean;
|
|
28
24
|
/**
|
|
29
25
|
*/
|
|
30
26
|
getChildByAttribute(attribute: AttributeType): AttributeType | null;
|
|
31
27
|
/**
|
|
32
28
|
*/
|
|
33
29
|
getChildByKey(key: string): AttributeType | null;
|
|
34
|
-
concept: any;
|
|
35
30
|
/**
|
|
36
31
|
*/
|
|
37
32
|
update(value: string, changedAttribute: AttributeType | null): CompositeAttributeModel;
|
|
@@ -27,9 +27,7 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
27
27
|
isSameDay(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
28
28
|
isOther(inputDate: string, compareDate: string, inputFormat?: string): boolean;
|
|
29
29
|
isWeekend(inputDate: string): boolean;
|
|
30
|
-
addSeconds(date: string, amount: number): string;
|
|
31
|
-
* Set placeholder text
|
|
32
|
-
*/
|
|
30
|
+
addSeconds(date: string, amount: number): string;
|
|
33
31
|
addMinutes(date: string, amount: number): string;
|
|
34
32
|
addHours(date: string, amount: number): string;
|
|
35
33
|
addDays(date: string, amount: number): string;
|
|
@@ -54,9 +52,6 @@ declare class DatetimeAttributeModel extends StringAttributeModel {
|
|
|
54
52
|
setHour(date: string, hour: number): string;
|
|
55
53
|
setMinute(date: string, minute: number): string;
|
|
56
54
|
setSecond(date: string, second: number): string;
|
|
57
|
-
/**
|
|
58
|
-
* Add Date constraints for attribute
|
|
59
|
-
*/
|
|
60
55
|
setMilliseconds(date: string, milliseconds: number): string;
|
|
61
56
|
setTime(date: string, hours: number, minutes: number, seconds: number, milliseconds: number): string;
|
|
62
57
|
};
|
|
@@ -12,7 +12,6 @@ declare class BaseLayoutHintRule {
|
|
|
12
12
|
static checkHintApplicability: boolean;
|
|
13
13
|
/**
|
|
14
14
|
* Indicates if the rule instance is applicable for a specific attribute<br>
|
|
15
|
-
* @default true
|
|
16
15
|
*/
|
|
17
16
|
static isApplicableForAttribute(attribute: AttributeType): boolean;
|
|
18
17
|
/**
|
|
@@ -21,6 +21,10 @@ export default class BaseFilterModel extends BaseModel {
|
|
|
21
21
|
* Create attribute through the attribute factory. Create type based on filter key without the filter suffix
|
|
22
22
|
*/
|
|
23
23
|
createAttribute(type: string, param: string, data: Object, contributions: Object): AttributeType | null;
|
|
24
|
+
/**
|
|
25
|
+
* Inidiates if filter is multiplechoice
|
|
26
|
+
*/
|
|
27
|
+
get isMultiple(): boolean;
|
|
24
28
|
/**
|
|
25
29
|
* Set context of filter
|
|
26
30
|
*/
|
|
@@ -56,6 +60,14 @@ export default class BaseFilterModel extends BaseModel {
|
|
|
56
60
|
name: string;
|
|
57
61
|
value: string | null;
|
|
58
62
|
}[];
|
|
63
|
+
/**
|
|
64
|
+
* Getting the value of the filter
|
|
65
|
+
*/
|
|
66
|
+
get value(): string;
|
|
67
|
+
/**
|
|
68
|
+
* Getting the inputvalue of the filter
|
|
69
|
+
*/
|
|
70
|
+
get inputvalue(): string;
|
|
59
71
|
/**
|
|
60
72
|
* Reset the value of this filter to undefined
|
|
61
73
|
*/
|
|
@@ -79,6 +91,10 @@ export default class BaseFilterModel extends BaseModel {
|
|
|
79
91
|
/**
|
|
80
92
|
*/
|
|
81
93
|
get readonlyvalue(): string;
|
|
94
|
+
/**
|
|
95
|
+
* Get assistant message
|
|
96
|
+
*/
|
|
97
|
+
get assistantMessage(): string;
|
|
82
98
|
}
|
|
83
99
|
import BaseModel from "../base/BaseModel";
|
|
84
100
|
import { AttributeType } from "../types";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* StringFilterModel can handle string filters with multiple setting
|
|
3
|
+
*/
|
|
4
|
+
export default class StringFilterModel extends BaseFilterModel {
|
|
5
|
+
_isValid: boolean;
|
|
6
|
+
_value: string | null;
|
|
7
|
+
_inputvalue: string;
|
|
8
|
+
/**
|
|
9
|
+
*/
|
|
10
|
+
get operator(): string;
|
|
11
|
+
/**
|
|
12
|
+
*/
|
|
13
|
+
formatValue(value: string): string;
|
|
14
|
+
}
|
|
15
|
+
import BaseFilterModel from "./BaseFilterModel";
|
|
@@ -280,7 +280,6 @@ declare class FormModel extends ResourceModel {
|
|
|
280
280
|
* Merge existing form with new form
|
|
281
281
|
*/
|
|
282
282
|
update(receivedForm: ModularUIModel): FormModel;
|
|
283
|
-
lastServerUpdate: any;
|
|
284
283
|
/**
|
|
285
284
|
*/
|
|
286
285
|
updateValidations(data: any): FormModel;
|
|
@@ -291,7 +290,6 @@ declare class FormModel extends ResourceModel {
|
|
|
291
290
|
* Process finished form
|
|
292
291
|
*/
|
|
293
292
|
handleFinished(receivedForm: FormModel): void;
|
|
294
|
-
_data: any;
|
|
295
293
|
/**
|
|
296
294
|
*/
|
|
297
295
|
handleRootErrors(errors: Array<Object>): void;
|
|
@@ -193,4 +193,4 @@ import { AttributeType } from "../types";
|
|
|
193
193
|
import LinkModel from "../links/LinkModel";
|
|
194
194
|
import { ModularUIModel } from "../types";
|
|
195
195
|
import { FormErrorAnchor } from "../types";
|
|
196
|
-
import { MessageParameters } from "../../i18n
|
|
196
|
+
import { MessageParameters } from "../../i18n";
|
|
@@ -124,7 +124,7 @@ declare class Href {
|
|
|
124
124
|
/**
|
|
125
125
|
* Remove a parameter from the parameter collection
|
|
126
126
|
*/
|
|
127
|
-
removeParameter(name: string, prefix: string | null): Href;
|
|
127
|
+
removeParameter(name: string, prefix: string | null, value: string | null): Href;
|
|
128
128
|
/**
|
|
129
129
|
* Get the parameters as a querystring, e.g. param1=value1¶m2=value2, optionally with prefix
|
|
130
130
|
*/
|
package/types/models/index.d.ts
CHANGED
|
@@ -48,7 +48,7 @@ export { default as Parameter } from "./parameter/Parameter";
|
|
|
48
48
|
export { default as SortingModel } from "./sorting/SortingModel";
|
|
49
49
|
export { default as SortOptionModel } from "./sorting/SortOptionModel";
|
|
50
50
|
export { default as TaskGroupCollection } from "./taskgroup/TaskGroupCollection";
|
|
51
|
-
export * from "./types";
|
|
51
|
+
export type * from "./types";
|
|
52
52
|
import { default as ApplicationModel } from "./application/ApplicationModel";
|
|
53
53
|
import { default as CaseSearchModel } from "./search/CaseSearchModel";
|
|
54
54
|
import { default as CaseViewModel } from "./caseview/CaseViewModel";
|
|
@@ -13,14 +13,14 @@ export default class LayoutHintCollection extends BaseCollection<string> {
|
|
|
13
13
|
/**
|
|
14
14
|
* Checks if a specific layouthint exists in the component configuration
|
|
15
15
|
* This method matches all exact matches and hints starting with. For example
|
|
16
|
-
* when calling layouth.has("hide"), this will return true for both "hide" and "hide-when-empty"
|
|
17
|
-
* If only exact matches are required, use the method {@link hasExact}.
|
|
16
|
+
* when calling layouth.has("hide"), this will return true for both "hide" and "hide-when-empty".<br>
|
|
17
|
+
* If only exact matches are required, use the method {@link LayoutHintCollection#hasExact}.
|
|
18
18
|
*/
|
|
19
19
|
has(...hints: Array<string>): boolean;
|
|
20
20
|
/**
|
|
21
21
|
* Checks if a specific layouthint exists in the component configuration,
|
|
22
|
-
* only checks on exact matches
|
|
23
|
-
* If layouthints that start with the given hint should also match, use {@link has}.
|
|
22
|
+
* only checks on exact matches.<br>
|
|
23
|
+
* If layouthints that start with the given hint should also match, use {@link LayoutHintCollection#has}.
|
|
24
24
|
* @param hints
|
|
25
25
|
* @returns {boolean}
|
|
26
26
|
*/
|
|
@@ -29,7 +29,7 @@ declare class SortingModel extends BaseCollection<SortOptionModel> {
|
|
|
29
29
|
*/
|
|
30
30
|
getUpdateQuerystring(optionKey: string): string;
|
|
31
31
|
/**
|
|
32
|
-
* @see {@link getUpdateQuerystring}
|
|
32
|
+
* @see {@link SortingModel#getUpdateQuerystring}
|
|
33
33
|
*/
|
|
34
34
|
getUpdateQuerystringBySortOption(sortOption: SortOptionModel): string;
|
|
35
35
|
/**
|
|
@@ -27,8 +27,8 @@ declare class UploadRequest {
|
|
|
27
27
|
*/
|
|
28
28
|
uploadFile(file: File): Promise<UploadResponse>;
|
|
29
29
|
}
|
|
30
|
-
import { FiletypeConstraintsType } from "../models
|
|
31
|
-
import { FilesizeConstraintsType } from "../models
|
|
30
|
+
import { FiletypeConstraintsType } from "../models";
|
|
31
|
+
import { FilesizeConstraintsType } from "../models";
|
|
32
32
|
type ProgressHandler = (file: File, uploadInfo: Object) => void;
|
|
33
33
|
type UploadResponse = {
|
|
34
34
|
token: string;
|