Set autosize and min two rows in textarea controls (#1604)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2022-12-23 01:01:53 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 7bbab6423e
commit 475059a974
111 changed files with 915 additions and 634 deletions
@@ -49,7 +49,9 @@ export class CreateDataTableComponent implements OnInit, AfterViewInit {
columnLength: undefined,
columnCode: undefined,
columnCodes: undefined,
type: undefined
type: undefined,
isColumnUnique: undefined,
isColumnIndexed: undefined
};
/** Columns to be displayed in columns table. */
displayedColumns: string[] = ['name', 'type', 'mandatory', 'length', 'code', 'actions'];
@@ -127,9 +129,13 @@ export class CreateDataTableComponent implements OnInit, AfterViewInit {
this.dataForDialog.columnDisplayType = undefined;
this.dataForDialog.columnLength = undefined;
this.dataForDialog.columnCode = undefined;
this.dataForDialog.isColumnUnique = undefined;
this.dataForDialog.isColumnIndexed = undefined;
this.dataForDialog.type = 'new';
const addColumnDialogRef = this.dialog.open(ColumnDialogComponent, {
data: this.dataForDialog
data: this.dataForDialog,
height: '450px',
width: '400px'
});
addColumnDialogRef.afterClosed().subscribe((response: any) => {
if (response !== '') {
@@ -137,6 +143,8 @@ export class CreateDataTableComponent implements OnInit, AfterViewInit {
columnName: response.name,
columnDisplayType: response.type,
isColumnNullable: !response.mandatory,
isColumnUnique: response.unique,
isColumnIndexed: response.indexed,
columnLength: response.length,
columnCode: response.code,
type: 'new'
@@ -155,9 +163,13 @@ export class CreateDataTableComponent implements OnInit, AfterViewInit {
this.dataForDialog.columnDisplayType = column.type;
this.dataForDialog.columnLength = column.length;
this.dataForDialog.columnCode = column.code;
this.dataForDialog.isColumnUnique = column.unique;
this.dataForDialog.isColumnIndexed = column.indexed;
this.dataForDialog.type = 'new';
const editColumnDialogRef = this.dialog.open(ColumnDialogComponent, {
data: this.dataForDialog
data: this.dataForDialog,
height: '450px',
width: '400px'
});
editColumnDialogRef.afterClosed().subscribe((response: any) => {
if (response !== '') {
@@ -165,6 +177,8 @@ export class CreateDataTableComponent implements OnInit, AfterViewInit {
columnName: response.name,
columnDisplayType: response.type,
isColumnNullable: !response.mandatory,
isColumnUnique: response.unique,
isColumnIndexed: response.indexed,
columnLength: response.length,
columnCode: response.code,
type: 'existing'
@@ -203,6 +217,8 @@ export class CreateDataTableComponent implements OnInit, AfterViewInit {
code: column.columnCode,
length: column.columnLength,
mandatory: !column.isColumnNullable,
unique: column.isColumnUnique,
indexed: column.isColumnIndexed
});
});
this.dataTableForm.value.columns = columns;