/** * DevExpress Analytics (property-grid\widgets\editor.d.ts) * Version: 25.2.7 * Build date: May 5, 2026 * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { IControlPropertiesViewModel, IModelAction } from './internal/_utils'; import { IPropertiesAccessibilityProvider } from '../_propertiesAccessibilityProvider'; import { ISerializationInfo } from '../../serializer/serializationInfo'; import { getLocalization } from '../localization/localization_utils'; import { BaseRenderingMultiplatformModel, EngineType } from '../../serializer/native/models/base.model'; import { IViewModel } from '../../serializer/native/models/interfaces.model'; import { getParentContainer } from '../../widgets/_utils'; import { IEditorAddon } from '../internal/_addon'; import { MultiPlatformComputed, MultiPlatformObservable } from '../../serializer/native/multiplatformEngine'; import { PopupService } from '../internal/_popupService'; import { PropertyChangedEventArgs, ArrayPropertyChangedEventArgs } from '../../serializer/propertyChangedEvents'; import { Popover } from '../../core/widgets/popover'; export interface ICollapsedViewModel { collapsed: boolean; setCollapsedChangedEvent: (callback: () => void) => () => void; setCollapsed: (newVal: boolean) => void; getCollapsed: () => boolean; alwaysShow?: boolean; } export interface IEditorViewModel extends IViewModel, ICollapsedViewModel { getOptions(options: any): any; value: T; onValueChanged: (e: any) => void; disabled: boolean; displayName: string; description: string; editorDescriptionAddon: IEditorAddon; editorTemplate: string; createEditorAddOn: (editor: IEditorViewModel) => IEditorAddon; createDescriptionAddOn: (editor: IEditorViewModel) => IEditorAddon; validationRules: any; getLocalization: typeof getLocalization; getPopupContainer: typeof getParentContainer; editorInputId: string; padding: any; values: any[]; validatorOptions: any; getValidatorOptions: (validatorOptions: any, validationRules?: any) => any; onCustomItemCreating: (e: any) => void; level: number; info: ISerializationInfo; templateName: string; editorOptions: any; extendedOptions: any; contentTemplateName: string; isPropertyHighlighted: boolean; labelAttributes: { title: string; for: string | null; 'data-dx-for': string | null; }; isComplexEditor: boolean; headerId: string; contentId: string; textToSearch: string; isRequired: boolean; isPropertyModified: boolean; editorCreated: boolean; visible: boolean; setIsRendered: (val: boolean) => void; visibilityChanged: (newValue: boolean) => void; } export declare function unwrapEditor(editor: IEditorViewModel | Editor): Editor; export declare class Editor extends BaseRenderingMultiplatformModel { createViewModel(): IEditorViewModel; _setPadding(position: string, value: any): {}; _model: MultiPlatformObservable; _parent: MultiPlatformObservable; isSearchedProperty: MultiPlatformObservable | MultiPlatformComputed; isParentSearched: MultiPlatformObservable; rtl: boolean; _accessibilityProvider: MultiPlatformObservable; _editorOptions: MultiPlatformComputed; private _validator; dispose(): void; constructor(modelPropertyInfo: ISerializationInfo, level: any, parentDisabled?: any, textToSearch?: any, popupService?: PopupService, popover?: Popover, engineType?: EngineType); protected _checkVisibility(): any; protected _shouldSkipHighlighting(propertyName: string): boolean; private _cachedValue; private _assignValue; private _roundTwoDecimalsForUnitProperties; private _init; private _getInfoFromModel; private _getModelSubscribableProperties; onPropertyChanged(args: PropertyChangedEventArgs | ArrayPropertyChangedEventArgs): void; update(viewModel: IControlPropertiesViewModel): void; getOptions(templateOptions: any): object; _getExtendedOptions(): object; getValidatorOptions(templateValidatorOptions: any): any; registerAccessibilityProvider(accessibilityProvider: IPropertiesAccessibilityProvider): void; assignParent(parent: Editor): void; _getEditorValidationRules(): any[]; getValidationRules(): any; setIsRendered(val: boolean): void; get validationRules(): any; get fullDisplayName(): string; padding: any; level: any; textToSearch: MultiPlatformObservable | MultiPlatformComputed; info: MultiPlatformObservable; name: string; displayName: MultiPlatformComputed; description: MultiPlatformComputed; editorDescriptionAddon: IEditorAddon; templateName: string; contentTemplateName: string; editorTemplate: string; viewmodel: any; values: MultiPlatformComputed<{ displayValue: string; value: string; }[]>; value: MultiPlatformComputed; isEditorSelected: MultiPlatformObservable; isRequired: boolean; isPropertyModified: MultiPlatformComputed; isPropertyHighlighted: MultiPlatformComputed; labelAttributes: MultiPlatformComputed<{ title: string; for: string | null; 'data-dx-for': string | null; }>; disabled: MultiPlatformComputed; visible: MultiPlatformComputed; isRendered: MultiPlatformObservable; headerId: string; contentId: string; editorInputId: string; parentName: string; editorCreated: boolean; getPopupServiceActions(): IModelAction[]; get editorOptions(): any; validatorOptions: any; defaultValue: any; get isComplexEditor(): boolean; collapsed: MultiPlatformObservable; alwaysShow: MultiPlatformObservable; _isSearchedPropertySubscription: () => void; } export declare function createEditorDescriptionAddOn(editor: IEditorViewModel | Editor, popover: Popover): IEditorAddon;