|
|
@ -22,6 +22,7 @@ import { |
|
|
Inject, |
|
|
Inject, |
|
|
OnDestroy, |
|
|
OnDestroy, |
|
|
ViewChild, |
|
|
ViewChild, |
|
|
|
|
|
ViewEncapsulation, |
|
|
} from '@angular/core'; |
|
|
} from '@angular/core'; |
|
|
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; |
|
|
import { MAT_DIALOG_DATA, MatDialog, MatDialogRef } from '@angular/material/dialog'; |
|
|
import { Store } from '@ngrx/store'; |
|
|
import { Store } from '@ngrx/store'; |
|
|
@ -49,6 +50,7 @@ import { |
|
|
selector: 'tb-calculated-field-script-test-dialog', |
|
|
selector: 'tb-calculated-field-script-test-dialog', |
|
|
templateUrl: './calculated-field-script-test-dialog.component.html', |
|
|
templateUrl: './calculated-field-script-test-dialog.component.html', |
|
|
styleUrls: ['./calculated-field-script-test-dialog.component.scss'], |
|
|
styleUrls: ['./calculated-field-script-test-dialog.component.scss'], |
|
|
|
|
|
encapsulation: ViewEncapsulation.None |
|
|
}) |
|
|
}) |
|
|
export class CalculatedFieldScriptTestDialogComponent extends DialogComponent<CalculatedFieldScriptTestDialogComponent, |
|
|
export class CalculatedFieldScriptTestDialogComponent extends DialogComponent<CalculatedFieldScriptTestDialogComponent, |
|
|
string> implements AfterViewInit, OnDestroy { |
|
|
string> implements AfterViewInit, OnDestroy { |
|
|
@ -70,7 +72,7 @@ export class CalculatedFieldScriptTestDialogComponent extends DialogComponent<Ca |
|
|
|
|
|
|
|
|
readonly ContentType = ContentType; |
|
|
readonly ContentType = ContentType; |
|
|
readonly ScriptLanguage = ScriptLanguage; |
|
|
readonly ScriptLanguage = ScriptLanguage; |
|
|
readonly functionArgs = Object.keys(this.data.arguments); |
|
|
readonly functionArgs = ['ctx', ...Object.keys(this.data.arguments)]; |
|
|
|
|
|
|
|
|
private testScriptResize: ResizeObserver; |
|
|
private testScriptResize: ResizeObserver; |
|
|
private splitObjects: SplitObject[] = []; |
|
|
private splitObjects: SplitObject[] = []; |
|
|
|