|
|
@ -101,17 +101,14 @@ export default class CSVTemplateAdapter { |
|
|
|
} else if (colProps.uidt === UITypes.SingleLineText) { |
|
|
|
} else if (colProps.uidt === UITypes.SingleLineText) { |
|
|
|
if (isEmailType(colData)) { |
|
|
|
if (isEmailType(colData)) { |
|
|
|
colProps.uidt = UITypes.Email |
|
|
|
colProps.uidt = UITypes.Email |
|
|
|
} |
|
|
|
} else if (isUrlType(colData)) { |
|
|
|
if (isUrlType(colData)) { |
|
|
|
|
|
|
|
colProps.uidt = UITypes.URL |
|
|
|
colProps.uidt = UITypes.URL |
|
|
|
|
|
|
|
} else if (isCheckboxType(colData)) { |
|
|
|
|
|
|
|
colProps.uidt = UITypes.Checkbox |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (isCheckboxType(colData)) { |
|
|
|
if (data[columnIdx] && columnIdx < this.config.maxRowsToParse) { |
|
|
|
colProps.uidt = UITypes.Checkbox |
|
|
|
this.columnValues[columnIdx].push(data[columnIdx]) |
|
|
|
} else { |
|
|
|
colProps.uidt = UITypes.SingleSelect |
|
|
|
if (data[columnIdx] && columnIdx < this.config.maxRowsToParse) { |
|
|
|
|
|
|
|
this.columnValues[columnIdx].push(data[columnIdx]) |
|
|
|
|
|
|
|
colProps.uidt = UITypes.SingleSelect |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} else if (colProps.uidt === UITypes.Number) { |
|
|
|
} else if (colProps.uidt === UITypes.Number) { |
|
|
|