validation-summary.d.ts 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. /*!
  2. * devextreme-angular
  3. * Version: 19.1.16
  4. * Build date: Tue Oct 18 2022
  5. *
  6. * Copyright (c) 2012 - 2022 Developer Express Inc. ALL RIGHTS RESERVED
  7. *
  8. * This software may be modified and distributed under the terms
  9. * of the MIT license. See the LICENSE file in the root of the project for details.
  10. *
  11. * https://github.com/DevExpress/devextreme-angular
  12. */
  13. import { TransferState } from '@angular/platform-browser';
  14. import { ElementRef, NgZone, OnDestroy, EventEmitter, OnChanges, DoCheck, SimpleChanges, QueryList } from '@angular/core';
  15. import DxValidationSummary from 'devextreme/ui/validation_summary';
  16. import { DxComponent } from '../core/component';
  17. import { DxTemplateHost } from '../core/template-host';
  18. import { NestedOptionHost } from '../core/nested-option';
  19. import { WatcherHelper } from '../core/watcher-helper';
  20. import { IterableDifferHelper } from '../core/iterable-differ-helper';
  21. import { DxiItemComponent } from './nested/item-dxi';
  22. /**
  23. * A widget for displaying the result of checking validation rules for editors.
  24. */
  25. export declare class DxValidationSummaryComponent extends DxComponent implements OnDestroy, OnChanges, DoCheck {
  26. private _watcherHelper;
  27. private _idh;
  28. instance: DxValidationSummary;
  29. /**
  30. * Specifies the attributes to be attached to the widget's root element.
  31. */
  32. elementAttr: any;
  33. /**
  34. * Specifies whether the widget changes its state when a user pauses on it.
  35. */
  36. hoverStateEnabled: boolean;
  37. /**
  38. * An array of items displayed by the widget.
  39. */
  40. items: Array<string | any | {
  41. disabled?: boolean;
  42. html?: string;
  43. template?: any;
  44. text?: string;
  45. visible?: boolean;
  46. }>;
  47. /**
  48. * Specifies a custom template for items.
  49. */
  50. itemTemplate: any;
  51. /**
  52. * Specifies the validation group for which summary should be generated.
  53. */
  54. validationGroup: string;
  55. /**
  56. * A function that is executed when the widget's content is ready and each time the content is changed.
  57. */
  58. onContentReady: EventEmitter<any>;
  59. /**
  60. * A function that is executed before the widget is disposed of.
  61. */
  62. onDisposing: EventEmitter<any>;
  63. /**
  64. * A function used in JavaScript frameworks to save the widget instance.
  65. */
  66. onInitialized: EventEmitter<any>;
  67. /**
  68. * A function that is executed when a collection item is clicked or tapped.
  69. */
  70. onItemClick: EventEmitter<any>;
  71. /**
  72. * A function that is executed after a widget option is changed.
  73. */
  74. onOptionChanged: EventEmitter<any>;
  75. /**
  76. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  77. */
  78. elementAttrChange: EventEmitter<any>;
  79. /**
  80. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  81. */
  82. hoverStateEnabledChange: EventEmitter<boolean>;
  83. /**
  84. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  85. */
  86. itemsChange: EventEmitter<Array<string | any | {
  87. disabled?: boolean;
  88. html?: string;
  89. template?: any;
  90. text?: string;
  91. visible?: boolean;
  92. }>>;
  93. /**
  94. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  95. */
  96. itemTemplateChange: EventEmitter<any>;
  97. /**
  98. * This member supports the internal infrastructure and is not intended to be used directly from your code.
  99. */
  100. validationGroupChange: EventEmitter<string>;
  101. itemsChildren: QueryList<DxiItemComponent>;
  102. constructor(elementRef: ElementRef, ngZone: NgZone, templateHost: DxTemplateHost, _watcherHelper: WatcherHelper, _idh: IterableDifferHelper, optionHost: NestedOptionHost, transferState: TransferState, platformId: any);
  103. protected _createInstance(element: any, options: any): DxValidationSummary;
  104. ngOnDestroy(): void;
  105. ngOnChanges(changes: SimpleChanges): void;
  106. setupChanges(prop: string, changes: SimpleChanges): void;
  107. ngDoCheck(): void;
  108. _setOption(name: string, value: any): void;
  109. }
  110. export declare class DxValidationSummaryModule {
  111. }