@microsoft/windows-admin-center-sdk
Version:
Microsoft - Windows Admin Center Shell
160 lines (159 loc) • 4.84 kB
TypeScript
import { OnDestroy, OnInit } from '@angular/core';
import { DataSchema } from '../schema/schema-models';
import * as i0 from "@angular/core";
export declare class SchemaFormEditorSchemaTextComponent implements OnInit, OnDestroy {
strings: {
Title: string;
SwitchToCodeViewMessage: string;
PreviewForm: {
Title: string;
EmptySchemaMessage: string;
ValidationResult: {
Passed: string;
Failed: string;
Title: string;
};
};
Welcome: {
Title: string;
Row1: string;
Row2: string;
Row3: string;
Row4: string;
Row5: string;
Row6: string;
Row7: string;
Row8: string;
Row9: string;
Row10: string;
Row11: string;
};
SchemaView: {
Title: string;
Visual: string;
Code: string;
};
ApplySchemaButton: {
Text: string;
};
GoToCodeViewButton: {
Text: string;
};
CloseButton: {
Text: string;
};
SchemaTree: {
Welcome: {
Row1: string;
Row2: string;
Row3: string;
Row4: string;
Row5: string;
};
};
PropertyForm: {
Header: string;
Footer: string;
DataType: string;
Advance: string;
Required: string;
DefaultValue: string;
Description: string;
HideCondition: string;
ConditionForDisabled: string;
CustomValidation: string;
ReadonlyCondition: string;
MoreOptions: string;
EmptyByDefault: string;
NoOptionSchema: string;
Welcome: {
Row1: string;
Row2: string;
Row3: string;
Row4: string;
Row5: string;
Row6: string;
Row7: string;
};
Type: {
Description: string;
};
Format: {
Description: string;
};
Name: {
Description: string;
};
Label: {
Description: string;
};
MultipleLine: {
Title: string;
};
ObjectType: {
ColumnCount: string;
Collapsible: string;
HideHeader: string;
Yes: string;
State: string;
Collapsed: string;
Expanded: string;
};
Options: {
StaticOptions: string;
DynamicOptions: string;
Label: string;
Value: string;
};
CodeEditor: {
Language: {
label: string;
description: string;
};
Options: {
label: string;
description: string;
};
};
};
SchemaText: {
Message1: string;
Message2: string;
LintMessage: string;
CopyToClipboardButton: {
Text: string;
};
};
ViewModel: {
Message: string;
GenerateButton: {
Text: string;
};
};
ResourceStringPicker: {
ActualTextPrefix: string;
InvalidResourceKey: string;
NoResourceKeyMessage: string;
CannotFindResourceKey: string;
WrongFormatActualText: string;
};
};
private isInitialized;
private timer;
private internalSchema;
private editingSchemaHTMLOld;
private editingSchemaHTML;
private schemaTextEditorElement;
get schema(): DataSchema;
set schema(value: DataSchema);
ngOnInit(): void;
ngOnDestroy(): void;
generateSchema(): DataSchema;
copySchemaToClipboard(): void;
private refreshSchema;
private convertDataToText;
private getTypeScriptInterfaceForSchemaObject;
private handleEditingSchemaTextHTMLChange;
static ɵfac: i0.ɵɵFactoryDeclaration<SchemaFormEditorSchemaTextComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<SchemaFormEditorSchemaTextComponent, "sme-schema-form-editor-schema-text", never, { "schema": "schema"; }, {}, never, never, false, never>;
}