diff --git a/packages/devextreme-angular/src/ui/form/index.ts b/packages/devextreme-angular/src/ui/form/index.ts index 8932bfb0ddac..985edf5d11a7 100644 --- a/packages/devextreme-angular/src/ui/form/index.ts +++ b/packages/devextreme-angular/src/ui/form/index.ts @@ -98,7 +98,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.accessKey] - + */ @Input() get accessKey(): string { @@ -111,7 +111,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.activeStateEnabled] - + */ @Input() get activeStateEnabled(): boolean { @@ -124,7 +124,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.alignItemLabels] - + */ @Input() get alignItemLabels(): boolean { @@ -137,7 +137,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.alignItemLabelsInAllGroups] - + */ @Input() get alignItemLabelsInAllGroups(): boolean { @@ -150,7 +150,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.colCount] - + */ @Input() get colCount(): number | "auto" { @@ -163,7 +163,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.colCountByScreen] - + */ @Input() get colCountByScreen(): Record | { lg?: number, md?: number, sm?: number, xs?: number } { @@ -176,7 +176,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.customizeItem] - + */ @Input() get customizeItem(): ((item: dxFormSimpleItem | dxFormGroupItem | dxFormTabbedItem | dxFormEmptyItem | dxFormButtonItem) => void) { @@ -189,7 +189,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.disabled] - + */ @Input() get disabled(): boolean { @@ -202,7 +202,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:DOMComponentOptions.elementAttr] - + */ @Input() get elementAttr(): Record { @@ -215,7 +215,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.focusStateEnabled] - + */ @Input() get focusStateEnabled(): boolean { @@ -228,7 +228,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.formData] - + */ @Input() get formData(): any { @@ -241,7 +241,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:DOMComponentOptions.height] - + */ @Input() get height(): (() => number | string) | number | string { @@ -254,7 +254,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.hint] - + */ @Input() get hint(): string { @@ -267,7 +267,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.hoverStateEnabled] - + */ @Input() get hoverStateEnabled(): boolean { @@ -280,7 +280,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.isDirty] - + */ @Input() get isDirty(): boolean { @@ -293,7 +293,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.items] - + */ @Input() get items(): Array { @@ -306,7 +306,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.labelLocation] - + */ @Input() get labelLocation(): "left" | "right" | "top" { @@ -319,7 +319,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.labelMode] - + */ @Input() get labelMode(): "static" | "floating" | "hidden" | "outside" { @@ -332,7 +332,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.minColWidth] - + */ @Input() get minColWidth(): number { @@ -345,7 +345,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.optionalMark] - + */ @Input() get optionalMark(): string { @@ -358,7 +358,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.readOnly] - + */ @Input() get readOnly(): boolean { @@ -371,7 +371,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.requiredMark] - + */ @Input() get requiredMark(): string { @@ -384,7 +384,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.requiredMessage] - + */ @Input() get requiredMessage(): string { @@ -397,7 +397,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:DOMComponentOptions.rtlEnabled] - + */ @Input() get rtlEnabled(): boolean { @@ -410,7 +410,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.screenByWidth] - + */ @Input() get screenByWidth(): (() => void) { @@ -423,7 +423,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.scrollingEnabled] - + */ @Input() get scrollingEnabled(): boolean { @@ -436,7 +436,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.showColonAfterLabel] - + */ @Input() get showColonAfterLabel(): boolean { @@ -449,7 +449,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.showOptionalMark] - + */ @Input() get showOptionalMark(): boolean { @@ -462,7 +462,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.showRequiredMark] - + */ @Input() get showRequiredMark(): boolean { @@ -475,7 +475,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.showValidationSummary] - + */ @Input() get showValidationSummary(): boolean { @@ -488,7 +488,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.tabIndex] - + */ @Input() get tabIndex(): number { @@ -501,7 +501,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:dxFormOptions.validationGroup] - + */ @Input() get validationGroup(): string { @@ -514,7 +514,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:WidgetOptions.visible] - + */ @Input() get visible(): boolean { @@ -527,7 +527,7 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges /** * [descr:DOMComponentOptions.width] - + */ @Input() get width(): (() => number | string) | number | string { @@ -538,321 +538,292 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges } /** - + * [descr:dxFormOptions.onContentReady] - - + + */ @Output() onContentReady: EventEmitter; /** - + * [descr:dxFormOptions.onDisposing] - - + + */ @Output() onDisposing: EventEmitter; /** - + * [descr:dxFormOptions.onEditorEnterKey] - - + + */ @Output() onEditorEnterKey: EventEmitter; /** - + * [descr:dxFormOptions.onFieldDataChanged] - - + + */ @Output() onFieldDataChanged: EventEmitter; /** - + * [descr:dxFormOptions.onInitialized] - - + + */ @Output() onInitialized: EventEmitter; /** - + * [descr:dxFormOptions.onOptionChanged] - - + + */ @Output() onOptionChanged: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() accessKeyChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() activeStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() alignItemLabelsChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() alignItemLabelsInAllGroupsChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() colCountChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() colCountByScreenChange: EventEmitter | { lg?: number, md?: number, sm?: number, xs?: number }>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() customizeItemChange: EventEmitter<((item: dxFormSimpleItem | dxFormGroupItem | dxFormTabbedItem | dxFormEmptyItem | dxFormButtonItem) => void)>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() disabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() elementAttrChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() focusStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() formDataChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() heightChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hintChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hoverStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() isDirtyChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() itemsChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() labelLocationChange: EventEmitter<"left" | "right" | "top">; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() labelModeChange: EventEmitter<"static" | "floating" | "hidden" | "outside">; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() minColWidthChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() optionalMarkChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() readOnlyChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() requiredMarkChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() requiredMessageChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() rtlEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() screenByWidthChange: EventEmitter<(() => void)>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() scrollingEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() showColonAfterLabelChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() showOptionalMarkChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() showRequiredMarkChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() showValidationSummaryChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() tabIndexChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() validationGroupChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() visibleChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() widthChange: EventEmitter<(() => number | string) | number | string>; - - - @ContentChildren(DxiFormButtonItemComponent) - get itemsChildren(): QueryList { - return this._getOption('items'); - } - set itemsChildren(value) { - this.setContentChildren('items', value, 'DxiFormButtonItemComponent'); - this.setChildren('items', value); - } - - @ContentChildren(DxiFormEmptyItemComponent) - get itemsChildren(): QueryList { - return this._getOption('items'); - } - set itemsChildren(value) { - this.setContentChildren('items', value, 'DxiFormEmptyItemComponent'); - this.setChildren('items', value); - } - - @ContentChildren(DxiFormGroupItemComponent) - get itemsChildren(): QueryList { - return this._getOption('items'); - } - set itemsChildren(value) { - this.setContentChildren('items', value, 'DxiFormGroupItemComponent'); - this.setChildren('items', value); - } - @ContentChildren(DxiFormItemComponent) get itemsChildren(): QueryList { return this._getOption('items'); @@ -862,34 +833,6 @@ export class DxFormComponent extends DxComponent implements OnDestroy, OnChanges this.setChildren('items', value); } - @ContentChildren(DxiFormSimpleItemComponent) - get itemsChildren(): QueryList { - return this._getOption('items'); - } - set itemsChildren(value) { - this.setContentChildren('items', value, 'DxiFormSimpleItemComponent'); - this.setChildren('items', value); - } - - @ContentChildren(DxiFormTabbedItemComponent) - get itemsChildren(): QueryList { - return this._getOption('items'); - } - set itemsChildren(value) { - this.setContentChildren('items', value, 'DxiFormTabbedItemComponent'); - this.setChildren('items', value); - } - - @ContentChildren(DxiFormTabPanelOptionsItemComponent) - get itemsChildren(): QueryList { - return this._getOption('items'); - } - set itemsChildren(value) { - this.setContentChildren('items', value, 'DxiFormTabPanelOptionsItemComponent'); - this.setChildren('items', value); - } - - @ContentChildren(DxiItemComponent) get itemsLegacyChildren(): QueryList { return this._getOption('items'); diff --git a/packages/devextreme-angular/src/ui/pagination/index.ts b/packages/devextreme-angular/src/ui/pagination/index.ts index b8abcf8e6784..1fcec5e76e9d 100644 --- a/packages/devextreme-angular/src/ui/pagination/index.ts +++ b/packages/devextreme-angular/src/ui/pagination/index.ts @@ -20,9 +20,7 @@ import { } from '@angular/core'; -import DOMComponent from 'devextreme/core/dom_component'; import { EventInfo } from 'devextreme/events/index'; -import { Component } from 'devextreme/core/component'; import DxPagination from 'devextreme/ui/pagination'; @@ -61,7 +59,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.accessKey] - + */ @Input() get accessKey(): string { @@ -74,7 +72,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.activeStateEnabled] - + */ @Input() get activeStateEnabled(): boolean { @@ -87,7 +85,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:dxPaginationOptions.allowedPageSizes] - + */ @Input() get allowedPageSizes(): Array { @@ -100,7 +98,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.disabled] - + */ @Input() get disabled(): boolean { @@ -113,7 +111,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:DOMComponentOptions.elementAttr] - + */ @Input() get elementAttr(): Record { @@ -126,7 +124,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.focusStateEnabled] - + */ @Input() get focusStateEnabled(): boolean { @@ -139,7 +137,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:DOMComponentOptions.height] - + */ @Input() get height(): (() => number | string) | number | string { @@ -152,7 +150,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.hint] - + */ @Input() get hint(): string { @@ -165,7 +163,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.hoverStateEnabled] - + */ @Input() get hoverStateEnabled(): boolean { @@ -178,7 +176,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:dxPaginationOptions.itemCount] - + */ @Input() get itemCount(): number { @@ -191,7 +189,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:dxPaginationOptions.pageIndex] - + */ @Input() get pageIndex(): number { @@ -204,7 +202,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:dxPaginationOptions.pageSize] - + */ @Input() get pageSize(): number { @@ -217,7 +215,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:DOMComponentOptions.rtlEnabled] - + */ @Input() get rtlEnabled(): boolean { @@ -230,7 +228,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.tabIndex] - + */ @Input() get tabIndex(): number { @@ -243,7 +241,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:WidgetOptions.visible] - + */ @Input() get visible(): boolean { @@ -256,7 +254,7 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC /** * [descr:DOMComponentOptions.width] - + */ @Input() get width(): (() => number | string) | number | string { @@ -267,146 +265,146 @@ export class DxPaginationComponent extends DxComponent implements OnDestroy, OnC } /** - + * [descr:WidgetOptions.onContentReady] - - + + */ @Output() onContentReady: EventEmitter>; /** - + * [descr:DOMComponentOptions.onDisposing] - - + + */ @Output() onDisposing: EventEmitter>; /** - + * [descr:ComponentOptions.onInitialized] - - + + */ @Output() onInitialized: EventEmitter; /** - + * [descr:DOMComponentOptions.onOptionChanged] - - + + */ @Output() onOptionChanged: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() accessKeyChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() activeStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() allowedPageSizesChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() disabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() elementAttrChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() focusStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() heightChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hintChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hoverStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() itemCountChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() pageIndexChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() pageSizeChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() rtlEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() tabIndexChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() visibleChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() widthChange: EventEmitter<(() => number | string) | number | string>; diff --git a/packages/devextreme-angular/src/ui/popup/component.ts b/packages/devextreme-angular/src/ui/popup/component.ts index 2c256da4ec78..66c3f84c2560 100644 --- a/packages/devextreme-angular/src/ui/popup/component.ts +++ b/packages/devextreme-angular/src/ui/popup/component.ts @@ -22,12 +22,8 @@ import { } from '@angular/core'; -import dxOverlay from 'devextreme/ui/overlay'; -import DOMComponent from 'devextreme/core/dom_component'; -import dxPopup from 'devextreme/ui/popup'; import { AnimationConfig } from 'devextreme/animation/fx'; import { event, EventInfo } from 'devextreme/events/index'; -import { Component } from 'devextreme/core/component'; import { PositionConfig } from 'devextreme/animation/position'; import { dxPopupToolbarItem } from 'devextreme/ui/popup'; @@ -92,7 +88,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:WidgetOptions.accessKey] - + */ @Input() get accessKey(): string { @@ -105,7 +101,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.animation] - + */ @Input() get animation(): Record | { hide?: AnimationConfig, show?: AnimationConfig } { @@ -118,9 +114,9 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.closeOnOutsideClick] - + * @deprecated [depNote:dxOverlayOptions.closeOnOutsideClick] - + */ @Input() get closeOnOutsideClick(): boolean | ((event: event) => boolean) { @@ -133,7 +129,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.container] - + */ @Input() get container(): any | string { @@ -146,7 +142,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.contentTemplate] - + */ @Input() get contentTemplate(): any { @@ -159,7 +155,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.deferRendering] - + */ @Input() get deferRendering(): boolean { @@ -172,7 +168,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:WidgetOptions.disabled] - + */ @Input() get disabled(): boolean { @@ -185,7 +181,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.dragAndResizeArea] - + */ @Input() get dragAndResizeArea(): any | string { @@ -198,7 +194,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.dragEnabled] - + */ @Input() get dragEnabled(): boolean { @@ -211,7 +207,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.dragOutsideBoundary] - + */ @Input() get dragOutsideBoundary(): boolean { @@ -224,7 +220,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.enableBodyScroll] - + */ @Input() get enableBodyScroll(): boolean { @@ -237,7 +233,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.focusStateEnabled] - + */ @Input() get focusStateEnabled(): boolean { @@ -250,7 +246,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.fullScreen] - + */ @Input() get fullScreen(): boolean { @@ -263,7 +259,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.height] - + */ @Input() get height(): (() => number | string) | number | string { @@ -276,7 +272,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.hideOnOutsideClick] - + */ @Input() get hideOnOutsideClick(): boolean | ((event: event) => boolean) { @@ -289,7 +285,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.hideOnParentScroll] - + */ @Input() get hideOnParentScroll(): boolean { @@ -302,7 +298,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:WidgetOptions.hint] - + */ @Input() get hint(): string { @@ -315,7 +311,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:WidgetOptions.hoverStateEnabled] - + */ @Input() get hoverStateEnabled(): boolean { @@ -328,7 +324,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.maxHeight] - + */ @Input() get maxHeight(): (() => number | string) | number | string { @@ -341,7 +337,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.maxWidth] - + */ @Input() get maxWidth(): (() => number | string) | number | string { @@ -354,7 +350,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.minHeight] - + */ @Input() get minHeight(): (() => number | string) | number | string { @@ -367,7 +363,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.minWidth] - + */ @Input() get minWidth(): (() => number | string) | number | string { @@ -380,7 +376,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.position] - + */ @Input() get position(): (() => void) | PositionConfig | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top" { @@ -393,7 +389,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.resizeEnabled] - + */ @Input() get resizeEnabled(): boolean { @@ -406,7 +402,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.restorePosition] - + */ @Input() get restorePosition(): boolean { @@ -419,7 +415,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:DOMComponentOptions.rtlEnabled] - + */ @Input() get rtlEnabled(): boolean { @@ -432,7 +428,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.shading] - + */ @Input() get shading(): boolean { @@ -445,7 +441,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.shadingColor] - + */ @Input() get shadingColor(): string { @@ -458,7 +454,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.showCloseButton] - + */ @Input() get showCloseButton(): boolean { @@ -471,7 +467,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.showTitle] - + */ @Input() get showTitle(): boolean { @@ -484,7 +480,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:WidgetOptions.tabIndex] - + */ @Input() get tabIndex(): number { @@ -497,7 +493,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.title] - + */ @Input() get title(): string { @@ -510,7 +506,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.titleTemplate] - + */ @Input() get titleTemplate(): any { @@ -523,7 +519,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.toolbarItems] - + */ @Input() get toolbarItems(): Array { @@ -536,7 +532,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.visible] - + */ @Input() get visible(): boolean { @@ -549,7 +545,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxPopupOptions.width] - + */ @Input() get width(): (() => number | string) | number | string { @@ -562,7 +558,7 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange /** * [descr:dxOverlayOptions.wrapperAttr] - + */ @Input() get wrapperAttr(): any { @@ -573,357 +569,357 @@ export class DxPopupComponent extends DxComponent implements OnDestroy, OnChange } /** - + * [descr:WidgetOptions.onContentReady] - - + + */ @Output() onContentReady: EventEmitter>; /** - + * [descr:DOMComponentOptions.onDisposing] - - + + */ @Output() onDisposing: EventEmitter>; /** - + * [descr:dxOverlayOptions.onHidden] - - + + */ @Output() onHidden: EventEmitter>; /** - + * [descr:dxOverlayOptions.onHiding] - - + + */ @Output() onHiding: EventEmitter; /** - + * [descr:ComponentOptions.onInitialized] - - + + */ @Output() onInitialized: EventEmitter; /** - + * [descr:DOMComponentOptions.onOptionChanged] - - + + */ @Output() onOptionChanged: EventEmitter; /** - + * [descr:dxPopupOptions.onResize] - - + + */ @Output() onResize: EventEmitter; /** - + * [descr:dxPopupOptions.onResizeEnd] - - + + */ @Output() onResizeEnd: EventEmitter; /** - + * [descr:dxPopupOptions.onResizeStart] - - + + */ @Output() onResizeStart: EventEmitter; /** - + * [descr:dxOverlayOptions.onShowing] - - + + */ @Output() onShowing: EventEmitter; /** - + * [descr:dxOverlayOptions.onShown] - - + + */ @Output() onShown: EventEmitter>; /** - + * [descr:dxPopupOptions.onTitleRendered] - - + + */ @Output() onTitleRendered: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() accessKeyChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() animationChange: EventEmitter | { hide?: AnimationConfig, show?: AnimationConfig }>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() closeOnOutsideClickChange: EventEmitter boolean)>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() containerChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() contentTemplateChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() deferRenderingChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() disabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() dragAndResizeAreaChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() dragEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() dragOutsideBoundaryChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() enableBodyScrollChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() focusStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() fullScreenChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() heightChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hideOnOutsideClickChange: EventEmitter boolean)>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hideOnParentScrollChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hintChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() hoverStateEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() maxHeightChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() maxWidthChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() minHeightChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() minWidthChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() positionChange: EventEmitter<(() => void) | PositionConfig | "bottom" | "center" | "left" | "left bottom" | "left top" | "right" | "right bottom" | "right top" | "top">; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() resizeEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() restorePositionChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() rtlEnabledChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() shadingChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() shadingColorChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() showCloseButtonChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() showTitleChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() tabIndexChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() titleChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() titleTemplateChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() toolbarItemsChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() visibleChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() widthChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() wrapperAttrChange: EventEmitter; diff --git a/packages/devextreme-angular/src/ui/validator/index.ts b/packages/devextreme-angular/src/ui/validator/index.ts index 2c01666b7798..5db50e435279 100644 --- a/packages/devextreme-angular/src/ui/validator/index.ts +++ b/packages/devextreme-angular/src/ui/validator/index.ts @@ -24,11 +24,8 @@ import { QueryList } from '@angular/core'; - -import DOMComponent from 'devextreme/core/dom_component'; import * as CommonTypes from 'devextreme/common'; import { EventInfo } from 'devextreme/events/index'; -import { Component } from 'devextreme/core/component'; import DxValidator from 'devextreme/ui/validator'; @@ -91,7 +88,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:dxValidatorOptions.adapter] - + */ @Input() get adapter(): Record | { applyValidationResults?: (() => void), bypass?: (() => void), focus?: (() => void), getValue?: (() => void), reset?: (() => void), validationRequestsCallbacks?: Array<(() => void)> } { @@ -104,7 +101,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:DOMComponentOptions.elementAttr] - + */ @Input() get elementAttr(): Record { @@ -117,7 +114,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:DOMComponentOptions.height] - + */ @Input() get height(): (() => number | string) | number | string { @@ -130,7 +127,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:dxValidatorOptions.name] - + */ @Input() get name(): string { @@ -143,7 +140,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:dxValidatorOptions.validationGroup] - + */ @Input() get validationGroup(): string { @@ -156,7 +153,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:dxValidatorOptions.validationRules] - + */ @Input() get validationRules(): Array { @@ -169,7 +166,7 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest /** * [descr:DOMComponentOptions.width] - + */ @Input() get width(): (() => number | string) | number | string { @@ -180,170 +177,87 @@ export class DxValidatorComponent extends DxComponentExtension implements OnDest } /** - + * [descr:DOMComponentOptions.onDisposing] - - + + */ @Output() onDisposing: EventEmitter>; /** - + * [descr:ComponentOptions.onInitialized] - - + + */ @Output() onInitialized: EventEmitter; /** - + * [descr:DOMComponentOptions.onOptionChanged] - - + + */ @Output() onOptionChanged: EventEmitter; /** - + * [descr:dxValidatorOptions.onValidated] - - + + */ @Output() onValidated: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() adapterChange: EventEmitter | { applyValidationResults?: (() => void), bypass?: (() => void), focus?: (() => void), getValue?: (() => void), reset?: (() => void), validationRequestsCallbacks?: Array<(() => void)> }>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() elementAttrChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() heightChange: EventEmitter<(() => number | string) | number | string>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() nameChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() validationGroupChange: EventEmitter; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() validationRulesChange: EventEmitter>; /** - + * This member supports the internal infrastructure and is not intended to be used directly from your code. - + */ @Output() widthChange: EventEmitter<(() => number | string) | number | string>; - - - @ContentChildren(DxiValidatorAsyncRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorAsyncRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorCompareRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorCompareRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorCustomRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorCustomRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorEmailRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorEmailRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorNumericRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorNumericRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorPatternRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorPatternRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorRangeRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorRangeRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorRequiredRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorRequiredRuleComponent'); - this.setChildren('validationRules', value); - } - - @ContentChildren(DxiValidatorStringLengthRuleComponent) - get validationRulesChildren(): QueryList { - return this._getOption('validationRules'); - } - set validationRulesChildren(value) { - this.setContentChildren('validationRules', value, 'DxiValidatorStringLengthRuleComponent'); - this.setChildren('validationRules', value); - } - @ContentChildren(DxiValidatorValidationRuleComponent) get validationRulesChildren(): QueryList { return this._getOption('validationRules');