- fixed displaying tables;

- fixed uploading signed pdf for application;
- added downloading modullistica archive;
- added basic table related validator;
This commit is contained in:
Vitalii Kiiko
2024-10-13 12:20:47 +02:00
parent 2bedcee172
commit cd54246313
16 changed files with 194 additions and 56 deletions

View File

@@ -65,4 +65,14 @@ export const minChecks = (v, num) => {
export const maxChecks = (v, num) => {
return is(Array, v) ? v.length <= parseInt(num) : false;
}
export const nonEmptyTables = (v = [], colsCfg = []) => {
//console.log('nonEmptyTables',v)
/*const cellValues = v.map(row => {
return isEmpty(row)
});
console.log('cellValues', cellValues, colsCfg)*/
return is(Array, v) ? v.length >= 1 : false;
}