|
|
@ -101,11 +101,9 @@ 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 { |
|
|
|
} else if (isCheckboxType(colData)) { |
|
|
|
if (isCheckboxType(colData)) { |
|
|
|
|
|
|
|
colProps.uidt = UITypes.Checkbox |
|
|
|
colProps.uidt = UITypes.Checkbox |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (data[columnIdx] && columnIdx < this.config.maxRowsToParse) { |
|
|
|
if (data[columnIdx] && columnIdx < this.config.maxRowsToParse) { |
|
|
@ -113,7 +111,6 @@ export default class CSVTemplateAdapter { |
|
|
|
colProps.uidt = UITypes.SingleSelect |
|
|
|
colProps.uidt = UITypes.SingleSelect |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} else if (colProps.uidt === UITypes.Number) { |
|
|
|
} else if (colProps.uidt === UITypes.Number) { |
|
|
|
if (isDecimalType(colData)) { |
|
|
|
if (isDecimalType(colData)) { |
|
|
|
colProps.uidt = UITypes.Decimal |
|
|
|
colProps.uidt = UITypes.Decimal |
|
|
|