File tree 12 files changed +46
-35
lines changed
acq_invoices/jsonschemas/acq_invoices
acq_order_lines/jsonschemas/acq_order_lines
acq_receipt_lines/jsonschemas/acq_receipt_lines
budgets/jsonschemas/budgets
collections/jsonschemas/collections
documents/jsonschemas/documents
holdings/jsonschemas/holdings
ill_requests/jsonschemas/ill_requests
patrons/jsonschemas/patrons
12 files changed +46
-35
lines changed Original file line number Diff line number Diff line change 165
165
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
166
166
"widget" : {
167
167
"formlyConfig" : {
168
- "type" : " datepicker " ,
168
+ "type" : " datePicker " ,
169
169
"props" : {
170
170
"validation" : {
171
171
"messages" : {
Original file line number Diff line number Diff line change 192
192
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
193
193
"widget" : {
194
194
"formlyConfig" : {
195
- "type" : " datepicker " ,
195
+ "type" : " datePicker " ,
196
196
"expressions" : {
197
197
"props.required" : " field?.parent?.model?.status === 'ordered' || field?.parent?.model?.status === 'received'" ,
198
198
"hide" : " field?.parent?.model?.status !== 'ordered' && field?.parent?.model?.status !== 'received'"
215
215
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
216
216
"widget" : {
217
217
"formlyConfig" : {
218
- "type" : " datepicker " ,
218
+ "type" : " datePicker " ,
219
219
"expressions" : {
220
220
"props.required" : " field?.parent?.model?.status === 'received'" ,
221
221
"hide" : " field?.parent?.model?.status !== 'received'"
279
279
"pattern" : " ^https://bib.rero.ch/api/documents/.+?$" ,
280
280
"widget" : {
281
281
"formlyConfig" : {
282
+ "type" : " remoteAutoComplete" ,
282
283
"props" : {
283
284
"validation" : {
284
285
"messages" : {
285
286
"patternMessage" : " Should be in the following format: https://bib.rero.ch/api/documents/<PID>."
286
287
}
287
288
},
288
- "remoteTypeahead " : {
289
+ "queryOptions " : {
289
290
"type" : " documents" ,
290
291
"filter" : " NOT harvested:true"
291
292
}
Original file line number Diff line number Diff line change 119
119
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
120
120
"widget" : {
121
121
"formlyConfig" : {
122
- "type" : " datepicker " ,
122
+ "type" : " datePicker " ,
123
123
"props" : {
124
124
"validation" : {
125
125
"messages" : {
Original file line number Diff line number Diff line change 59
59
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
60
60
"widget" : {
61
61
"formlyConfig" : {
62
- "type" : " datepicker " ,
62
+ "type" : " datePicker " ,
63
63
"props" : {
64
64
"validation" : {
65
65
"messages" : {
77
77
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
78
78
"widget" : {
79
79
"formlyConfig" : {
80
- "type" : " datepicker " ,
80
+ "type" : " datePicker " ,
81
81
"props" : {
82
82
"validation" : {
83
83
"messages" : {
Original file line number Diff line number Diff line change 159
159
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
160
160
"widget" : {
161
161
"formlyConfig" : {
162
- "type" : " datepicker " ,
162
+ "type" : " datePicker " ,
163
163
"props" : {
164
164
"validation" : {
165
165
"messages" : {
166
166
"patternMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
167
- "dateMustBeLessThan " : " The start date must be less than the end date."
167
+ "datesGreaterThan " : " The start date must be less than the end date."
168
168
},
169
169
"validators" : {
170
- "dateMustBeLessThan " : {
171
- "startDate " : " start_date" ,
172
- "endDate " : " end_date" ,
170
+ "datesGreaterThan " : {
171
+ "dateFirst " : " start_date" ,
172
+ "dateLast " : " end_date" ,
173
173
"strict" : true
174
174
}
175
175
}
185
185
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
186
186
"widget" : {
187
187
"formlyConfig" : {
188
- "type" : " datepicker " ,
188
+ "type" : " datePicker " ,
189
189
"props" : {
190
190
"validation" : {
191
191
"messages" : {
192
192
"patternMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
193
- "datesMustBeGreaterThan " : " The end date must be greater than the start date."
193
+ "datesGreaterThan " : " The end date must be greater than the start date."
194
194
},
195
195
"validators" : {
196
- "dateMustBeGreaterThan " : {
197
- "startDate " : " start_date" ,
198
- "endDate " : " end_date" ,
196
+ "datesGreaterThan " : {
197
+ "dateFirst " : " start_date" ,
198
+ "dateLast " : " end_date" ,
199
199
"strict" : true
200
200
}
201
201
}
255
255
"pattern" : " ^https://bib.rero.ch/api/items/.*?$" ,
256
256
"widget" : {
257
257
"formlyConfig" : {
258
+ "type" : " remoteAutoComplete" ,
258
259
"props" : {
259
- "remoteTypeahead " : {
260
+ "queryOptions " : {
260
261
"type" : " items"
261
262
}
262
263
}
Original file line number Diff line number Diff line change 17
17
"pattern" : " ^(https://mef.rero.ch/api/agents/(gnd|idref|rero)/.*|https://bib.rero.ch/api/local_entities/.*?)$" ,
18
18
"widget" : {
19
19
"formlyConfig" : {
20
- "type" : " entityTypeahead " ,
20
+ "type" : " entity-autocomplete " ,
21
21
"props" : {
22
+ "scrollHeight" : " 600px" ,
23
+ "group" : true ,
22
24
"filters" : {
25
+ "selected" : " bf:Person" ,
23
26
"options" : [
24
27
{
25
28
"label" : " Person" ,
31
34
}
32
35
]
33
36
},
34
- "itemCssClass" : " col-12"
37
+ "queryOptions" : {
38
+ "type" : " mef"
39
+ }
35
40
}
36
41
}
37
42
}
Original file line number Diff line number Diff line change 266
266
"pattern" : " ^https://bib.rero.ch/api/documents/.*?$" ,
267
267
"widget" : {
268
268
"formlyConfig" : {
269
+ "type" : " remoteAutoComplete" ,
269
270
"props" : {
271
+ "scrollHeight" : " 400px" ,
270
272
"validation" : {
271
273
"messages" : {
272
274
"patternMessage" : " Should be in the following format: https://bib.rero.ch/api/documents/<PID>."
273
275
}
274
276
},
275
- "remoteTypeahead " : {
277
+ "queryOptions " : {
276
278
"type" : " documents" ,
277
279
"filter" : " NOT harvested:true"
278
280
},
305
307
}
306
308
}
307
309
}
308
- }
310
+ }
Original file line number Diff line number Diff line change 33
33
"pattern" : " ^https://bib.rero.ch/api/documents/.*?$" ,
34
34
"widget" : {
35
35
"formlyConfig" : {
36
+ "type" : " remoteAutoComplete" ,
36
37
"props" : {
37
38
"validation" : {
38
39
"messages" : {
39
40
"patternMessage" : " Should be in the following format: https://bib.rero.ch/api/documents/<PID>."
40
41
}
41
42
},
42
- "remoteTypeahead " : {
43
+ "queryOptions " : {
43
44
"type" : " documents" ,
44
45
"filter" : " NOT harvested:true"
45
46
}
147
148
}
148
149
}
149
150
}
150
- }
151
+ }
Original file line number Diff line number Diff line change 346
346
"validationMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
347
347
"widget" : {
348
348
"formlyConfig" : {
349
- "type" : " datepicker " ,
349
+ "type" : " datePicker " ,
350
350
"props" : {
351
351
"validation" : {
352
352
"messages" : {
944
944
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
945
945
"widget" : {
946
946
"formlyConfig" : {
947
- "type" : " datepicker " ,
947
+ "type" : " datePicker " ,
948
948
"wrappers" : [
949
949
" form-field"
950
950
],
Original file line number Diff line number Diff line change 92
92
"pattern" : " ^https://bib.rero.ch/api/patrons/.*?$" ,
93
93
"widget" : {
94
94
"formlyConfig" : {
95
+ "type" : " remoteAutoComplete" ,
95
96
"props" : {
96
97
"hideLabel" : true ,
97
98
"validation" : {
98
99
"messages" : {
99
100
"patternMessage" : " Should be in the following format: https://bib.rero.ch/api/patrons/<PID>."
100
101
}
101
102
},
102
- "remoteTypeahead " : {
103
+ "queryOptions " : {
103
104
"type" : " patrons"
104
105
}
105
106
}
Original file line number Diff line number Diff line change 233
233
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
234
234
"widget" : {
235
235
"formlyConfig" : {
236
- "type" : " datepicker " ,
236
+ "type" : " datePicker " ,
237
237
"expressions" : {
238
238
"hide" : " false"
239
239
},
292
292
"pattern" : " ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$" ,
293
293
"widget" : {
294
294
"formlyConfig" : {
295
- "type" : " datepicker " ,
295
+ "type" : " datePicker " ,
296
296
"props" : {
297
297
"validation" : {
298
298
"messages" : {
400
400
"validationMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
401
401
"widget" : {
402
402
"formlyConfig" : {
403
- "type" : " datepicker " ,
403
+ "type" : " datePicker " ,
404
404
"expressions" : {
405
405
"props.required" : " field?.parent?.model?.status === 'received'" ,
406
406
"hide" : " field?.parent?.model?.status !== 'received'"
426
426
"validationMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
427
427
"widget" : {
428
428
"formlyConfig" : {
429
- "type" : " datepicker " ,
429
+ "type" : " datePicker " ,
430
430
"props" : {
431
431
"validation" : {
432
432
"messages" : {
446
446
"validationMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
447
447
"widget" : {
448
448
"formlyConfig" : {
449
- "type" : " datepicker " ,
449
+ "type" : " datePicker " ,
450
450
"props" : {
451
451
"validation" : {
452
452
"messages" : {
693
693
"validationMessage" : " Should be in the following format: 2022-12-31 (YYYY-MM-DD)." ,
694
694
"widget" : {
695
695
"formlyConfig" : {
696
- "type" : " datepicker " ,
696
+ "type" : " datePicker " ,
697
697
"props" : {
698
698
"hideLabel" : true ,
699
699
"defaultValueExpression" : " new Date().toISOString().split('T')[0]" ,
Original file line number Diff line number Diff line change 251
251
"pattern" : " \\ d{4}-((0[1-9])|(1[0-2]))-(((0[1-9])|[1-2][0-9])|(3[0-1]))$" ,
252
252
"widget" : {
253
253
"formlyConfig" : {
254
- "type" : " datepicker " ,
254
+ "type" : " datePicker " ,
255
255
"props" : {
256
256
"validation" : {
257
257
"messages" : {
492
492
},
493
493
"widget" : {
494
494
"formlyConfig" : {
495
- "type" : " multicheckbox " ,
495
+ "type" : " multi-checkbox " ,
496
496
"wrappers" : [
497
497
" card"
498
498
],
You can’t perform that action at this time.
0 commit comments