Alfresco Angular components ( Documentation -> https://alfresco.github.io/adf-component-catalog )
Can someone please help on this query
Hi All,
I have a question about the multi line text field in APS. Namely, when the APS form is rendered in ADF, in older versions of ADF (3.x), the rows property of the text area would initially be set to 1 (rows="1"), and the field would add additional row as needed, when the user types. In ADF 4.1, the behavior remains the same, but the rows property is initially set to 3 (rows="3"). Is there a way to set the rows property to 1, so the field does not appear with 3 empty rows when there is no text entered?
@DenysVuika Hello again, there is one more pretty nice bug.
From version 3.9 for adf/core/content-services etc npm packages, it is happening.
The problem is displayed file size when editing FOLDER name/properties.
Prior to the 3.9.0 version of ADF libraries, everything worked fine. (so 3.8.0 and below). filesize-cell.component.ts is used to display the size of a file or folder. For the file, it displayed some numbers, for the folder it was empty which is fine. When you want to edit the folder name it will still after the update remain empty.
From 3.9.0 when you update folder name, file size column will get some text displayed "NaN CORE". And it is still in 4.2.0 version.
WHERE IS THE PROBLEM:
file-size.pipe.ts which is setting the display value gets '' as a value to work with for the folders instead of undefined or null. On update name/propties of the folder in DataTableCellComponent (in datatable-cell.component.ts file) in updateValue method function is called and resolves file size value of folder to '', which latter calls this file-size.pipe.ts.
In previous versions (3.8.0 and below) updateValue() was not called. Why? Because ngOnInit of DataTableCellComponent where it should be call throws exception when getting property "content.sizeInBytes" of node, because in payload folder nodes doesn't have even content property. This is fixed in 3.9.0 to get the actual property. But then updateValue is called which will call file-size.pipe with value ''. And that case is not handled there. And that's why we get display text of file size for folder "NaN CORE".