@alauda/ui 9.1.2-beta.0 → 9.1.2-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/fesm2022/alauda-ui.mjs +917 -922
  2. package/fesm2022/alauda-ui.mjs.map +1 -1
  3. package/index.d.ts +3673 -38
  4. package/package.json +3 -3
  5. package/theme/_mixin.scss +68 -61
  6. package/theme/_pattern.scss +20 -22
  7. package/theme/_theme-preset.scss +2 -1
  8. package/theme/_var.scss +30 -30
  9. package/theme/overlay-prebuilt.css +1 -0
  10. package/theme/style.css +1 -441
  11. package/tsconfig.lib.tsbuildinfo +1 -1
  12. package/accordion/accordion-item/accordion-item.component.d.ts +0 -22
  13. package/accordion/accordion.component.d.ts +0 -10
  14. package/accordion/accordion.module.d.ts +0 -15
  15. package/accordion/index.d.ts +0 -3
  16. package/anchor/anchor.component.d.ts +0 -37
  17. package/anchor/anchor.directive.d.ts +0 -57
  18. package/anchor/anchor.module.d.ts +0 -12
  19. package/anchor/index.d.ts +0 -5
  20. package/anchor/types.d.ts +0 -14
  21. package/anchor/utils.d.ts +0 -2
  22. package/autocomplete/autocomplete-placeholder.component.d.ts +0 -5
  23. package/autocomplete/autocomplete.component.d.ts +0 -21
  24. package/autocomplete/autocomplete.directive.d.ts +0 -54
  25. package/autocomplete/autocomplete.module.d.ts +0 -22
  26. package/autocomplete/autocomplete.types.d.ts +0 -4
  27. package/autocomplete/helper-directives.d.ts +0 -5
  28. package/autocomplete/index.d.ts +0 -8
  29. package/autocomplete/suggestion/suggestion.component.d.ts +0 -28
  30. package/autocomplete/suggestion-group/suggestion-group.component.d.ts +0 -11
  31. package/back-top/back-top.component.d.ts +0 -32
  32. package/back-top/back-top.module.d.ts +0 -10
  33. package/back-top/index.d.ts +0 -2
  34. package/breadcrumb/breadcrumb-item.component.d.ts +0 -14
  35. package/breadcrumb/breadcrumb.component.d.ts +0 -15
  36. package/breadcrumb/breadcrumb.module.d.ts +0 -13
  37. package/breadcrumb/index.d.ts +0 -3
  38. package/button/button-group/button-group.component.d.ts +0 -5
  39. package/button/button.component.d.ts +0 -33
  40. package/button/button.module.d.ts +0 -10
  41. package/button/button.types.d.ts +0 -15
  42. package/button/index.d.ts +0 -4
  43. package/card/card.component.d.ts +0 -6
  44. package/card/card.module.d.ts +0 -14
  45. package/card/helper-directives.d.ts +0 -13
  46. package/card/index.d.ts +0 -4
  47. package/card/section.component.d.ts +0 -5
  48. package/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -16
  49. package/checkbox/checkbox.component.d.ts +0 -28
  50. package/checkbox/checkbox.module.d.ts +0 -13
  51. package/checkbox/index.d.ts +0 -3
  52. package/color-picker/color-picker.component.d.ts +0 -7
  53. package/color-picker/color-picker.module.d.ts +0 -9
  54. package/color-picker/index.d.ts +0 -2
  55. package/core/animation/animation-consts.d.ts +0 -9
  56. package/date-picker/calendar/constant.d.ts +0 -21
  57. package/date-picker/calendar/date-picker-panel/component.d.ts +0 -44
  58. package/date-picker/calendar/footer/component.d.ts +0 -11
  59. package/date-picker/calendar/header/component.d.ts +0 -40
  60. package/date-picker/calendar/panel/picker-panel.d.ts +0 -35
  61. package/date-picker/calendar/range-picker-panel/component.d.ts +0 -51
  62. package/date-picker/calendar/util.d.ts +0 -34
  63. package/date-picker/date-picker/date-picker.component.d.ts +0 -32
  64. package/date-picker/date-picker.module.d.ts +0 -22
  65. package/date-picker/date-picker.type.d.ts +0 -20
  66. package/date-picker/index.d.ts +0 -11
  67. package/date-picker/range-picker/range-picker.component.d.ts +0 -30
  68. package/date-picker/trigger/trigger.component.d.ts +0 -39
  69. package/dialog/confirm-dialog/confirm-dialog-config.d.ts +0 -13
  70. package/dialog/confirm-dialog/confirm-dialog.component.d.ts +0 -24
  71. package/dialog/dialog-animations.d.ts +0 -31
  72. package/dialog/dialog-config.d.ts +0 -14
  73. package/dialog/dialog-container.component.d.ts +0 -7
  74. package/dialog/dialog-content/dialog-close.directive.d.ts +0 -15
  75. package/dialog/dialog-content/dialog-content.component.d.ts +0 -11
  76. package/dialog/dialog-content/dialog-footer.component.d.ts +0 -7
  77. package/dialog/dialog-content/dialog-header.component.d.ts +0 -18
  78. package/dialog/dialog-ref.d.ts +0 -18
  79. package/dialog/dialog.component.d.ts +0 -48
  80. package/dialog/dialog.module.d.ts +0 -23
  81. package/dialog/dialog.service.d.ts +0 -28
  82. package/dialog/dialog.types.d.ts +0 -18
  83. package/dialog/index.d.ts +0 -11
  84. package/dialog/utils/errors.d.ts +0 -1
  85. package/dialog/utils/index.d.ts +0 -4
  86. package/drawer/component/drawer.component.d.ts +0 -33
  87. package/drawer/component/internal/internal.component.d.ts +0 -36
  88. package/drawer/drawer-ref.d.ts +0 -13
  89. package/drawer/drawer.module.d.ts +0 -15
  90. package/drawer/drawer.service.d.ts +0 -24
  91. package/drawer/helper-directives.d.ts +0 -13
  92. package/drawer/index.d.ts +0 -6
  93. package/drawer/types.d.ts +0 -26
  94. package/dropdown/dropdown-active.directive.d.ts +0 -7
  95. package/dropdown/dropdown-button/dropdown-button.component.d.ts +0 -21
  96. package/dropdown/dropdown.directive.d.ts +0 -13
  97. package/dropdown/dropdown.module.d.ts +0 -27
  98. package/dropdown/dropdown.types.d.ts +0 -9
  99. package/dropdown/helper-directives.d.ts +0 -5
  100. package/dropdown/index.d.ts +0 -10
  101. package/dropdown/menu/menu.component.d.ts +0 -9
  102. package/dropdown/menu-group/menu-group.component.d.ts +0 -5
  103. package/dropdown/menu-item/menu-item.component.d.ts +0 -15
  104. package/dropdown/submenu/submenu.component.d.ts +0 -16
  105. package/form/common-form.d.ts +0 -36
  106. package/form/form-item/form-item.component.d.ts +0 -37
  107. package/form/form.directive.d.ts +0 -21
  108. package/form/form.module.d.ts +0 -14
  109. package/form/form.types.d.ts +0 -16
  110. package/form/helper-directives.d.ts +0 -23
  111. package/form/index.d.ts +0 -6
  112. package/i18n/i18n.module.d.ts +0 -7
  113. package/i18n/i18n.pipe.d.ts +0 -10
  114. package/i18n/i18n.service.d.ts +0 -11
  115. package/i18n/i18n.type.d.ts +0 -6
  116. package/i18n/index.d.ts +0 -6
  117. package/i18n/language/en.d.ts +0 -2
  118. package/i18n/language/zh.d.ts +0 -2
  119. package/icon/icon-register.service.d.ts +0 -15
  120. package/icon/icon.component.d.ts +0 -25
  121. package/icon/icon.module.d.ts +0 -9
  122. package/icon/icons.d.ts +0 -1
  123. package/icon/index.d.ts +0 -3
  124. package/icon/utils.d.ts +0 -2
  125. package/inline-alert/helper-directives.d.ts +0 -5
  126. package/inline-alert/index.d.ts +0 -4
  127. package/inline-alert/inline-alert.component.d.ts +0 -19
  128. package/inline-alert/inline-alert.module.d.ts +0 -13
  129. package/inline-alert/inline-alert.types.d.ts +0 -10
  130. package/input/autosize.directive.d.ts +0 -24
  131. package/input/helper-directives.d.ts +0 -17
  132. package/input/index.d.ts +0 -8
  133. package/input/input-group/input-group.component.d.ts +0 -22
  134. package/input/input.component.d.ts +0 -19
  135. package/input/input.module.d.ts +0 -18
  136. package/input/number-input/number-input.component.d.ts +0 -39
  137. package/input/search/search.component.d.ts +0 -28
  138. package/input/tags-input/tags-input.component.d.ts +0 -64
  139. package/input/tags-input/with-max-row-count.d.ts +0 -10
  140. package/input/utils/index.d.ts +0 -5
  141. package/internal/types/index.d.ts +0 -12
  142. package/internal/utils/animations.d.ts +0 -2
  143. package/internal/utils/async.d.ts +0 -1
  144. package/internal/utils/bem.d.ts +0 -12
  145. package/internal/utils/coercion.d.ts +0 -4
  146. package/internal/utils/fn.d.ts +0 -9
  147. package/internal/utils/index.d.ts +0 -9
  148. package/internal/utils/observe-dom.d.ts +0 -3
  149. package/internal/utils/operators.d.ts +0 -7
  150. package/internal/utils/scroll-into-view.d.ts +0 -1
  151. package/internal/utils/styles-renderer.d.ts +0 -18
  152. package/internal/utils/watch-content-exist.d.ts +0 -2
  153. package/message/base-message.d.ts +0 -33
  154. package/message/index.d.ts +0 -3
  155. package/message/message-animations.d.ts +0 -4
  156. package/message/message-wrapper.component.d.ts +0 -8
  157. package/message/message.component.d.ts +0 -30
  158. package/message/message.config.d.ts +0 -44
  159. package/message/message.module.d.ts +0 -11
  160. package/message/message.service.d.ts +0 -12
  161. package/notification/index.d.ts +0 -4
  162. package/notification/notification-wrapper.component.d.ts +0 -9
  163. package/notification/notification.component.d.ts +0 -34
  164. package/notification/notification.config.d.ts +0 -16
  165. package/notification/notification.module.d.ts +0 -12
  166. package/notification/notification.service.d.ts +0 -12
  167. package/paginator/index.d.ts +0 -3
  168. package/paginator/paginator-intl.d.ts +0 -20
  169. package/paginator/paginator.component.d.ts +0 -37
  170. package/paginator/paginator.module.d.ts +0 -12
  171. package/radio/base-radio.d.ts +0 -28
  172. package/radio/index.d.ts +0 -5
  173. package/radio/radio-button/radio-button.component.d.ts +0 -17
  174. package/radio/radio-group/radio-group.component.d.ts +0 -20
  175. package/radio/radio.component.d.ts +0 -13
  176. package/radio/radio.module.d.ts +0 -15
  177. package/radio/radio.types.d.ts +0 -7
  178. package/scrolling/fixed-size-table-virtual-scroll-strategy.d.ts +0 -28
  179. package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +0 -24
  180. package/scrolling/fixed-size-virtual-scroll.directive.d.ts +0 -6
  181. package/scrolling/index.d.ts +0 -6
  182. package/scrolling/scrolling.module.d.ts +0 -10
  183. package/scrolling/virtual-for-of.directive.d.ts +0 -13
  184. package/scrolling/virtual-scroll-viewport.component.d.ts +0 -6
  185. package/select/base-select.d.ts +0 -83
  186. package/select/helper-directives.d.ts +0 -22
  187. package/select/index.d.ts +0 -9
  188. package/select/multi-select/multi-select.component.d.ts +0 -57
  189. package/select/option/option.component.d.ts +0 -46
  190. package/select/option-group/option-group.component.d.ts +0 -11
  191. package/select/option-placeholder.component.d.ts +0 -5
  192. package/select/select.component.d.ts +0 -23
  193. package/select/select.module.d.ts +0 -27
  194. package/select/select.types.d.ts +0 -19
  195. package/select/validators.d.ts +0 -22
  196. package/shared/click-outside.directive.d.ts +0 -10
  197. package/shared/shared.module.d.ts +0 -7
  198. package/sort/index.d.ts +0 -5
  199. package/sort/sort-errors.d.ts +0 -8
  200. package/sort/sort-header.component.d.ts +0 -24
  201. package/sort/sort.directive.d.ts +0 -21
  202. package/sort/sort.module.d.ts +0 -12
  203. package/sort/sort.types.d.ts +0 -10
  204. package/status-bar/index.d.ts +0 -3
  205. package/status-bar/status-bar.component.d.ts +0 -13
  206. package/status-bar/status-bar.module.d.ts +0 -9
  207. package/status-bar/status-bar.types.d.ts +0 -21
  208. package/steps/index.d.ts +0 -3
  209. package/steps/steps.component.d.ts +0 -35
  210. package/steps/steps.module.d.ts +0 -9
  211. package/steps/types.d.ts +0 -16
  212. package/switch/index.d.ts +0 -2
  213. package/switch/switch.component.d.ts +0 -11
  214. package/switch/switch.module.d.ts +0 -8
  215. package/table/index.d.ts +0 -15
  216. package/table/table-cell-def.directive.d.ts +0 -10
  217. package/table/table-cell.component.d.ts +0 -18
  218. package/table/table-cell.directive.d.ts +0 -10
  219. package/table/table-column-def.directive.d.ts +0 -11
  220. package/table/table-column-resizable.directive.d.ts +0 -30
  221. package/table/table-header-cell-def.directive.d.ts +0 -10
  222. package/table/table-header-cell.directive.d.ts +0 -9
  223. package/table/table-header-row-def.directive.d.ts +0 -13
  224. package/table/table-header-row.component.d.ts +0 -7
  225. package/table/table-placeholder.directive.d.ts +0 -16
  226. package/table/table-row-def.directive.d.ts +0 -13
  227. package/table/table-row.component.d.ts +0 -13
  228. package/table/table-scroll.directive.d.ts +0 -33
  229. package/table/table.component.d.ts +0 -20
  230. package/table/table.module.d.ts +0 -35
  231. package/table-of-contents/index.d.ts +0 -4
  232. package/table-of-contents/table-of-contents.module.d.ts +0 -14
  233. package/table-of-contents/toc-container.directive.d.ts +0 -28
  234. package/table-of-contents/toc-content.directive.d.ts +0 -14
  235. package/table-of-contents/toc-link.directive.d.ts +0 -16
  236. package/tabs/index.d.ts +0 -8
  237. package/tabs/tab-body.component.d.ts +0 -71
  238. package/tabs/tab-context.service.d.ts +0 -15
  239. package/tabs/tab-group.component.d.ts +0 -92
  240. package/tabs/tab-header-active-indicator.component.d.ts +0 -25
  241. package/tabs/tab-header.component.d.ts +0 -137
  242. package/tabs/tab.component.d.ts +0 -48
  243. package/tabs/tabs.module.d.ts +0 -23
  244. package/tabs/tabs.types.d.ts +0 -15
  245. package/tag/check-tag/check-tag.component.d.ts +0 -15
  246. package/tag/index.d.ts +0 -4
  247. package/tag/tag.component.d.ts +0 -27
  248. package/tag/tag.module.d.ts +0 -10
  249. package/tag/tag.types.d.ts +0 -9
  250. package/theme/index.d.ts +0 -5
  251. package/theme/theme.module.d.ts +0 -8
  252. package/theme/theme.pipe.d.ts +0 -28
  253. package/theme/theme.service.d.ts +0 -15
  254. package/theme/theme.types.d.ts +0 -3
  255. package/theme/utils.d.ts +0 -3
  256. package/time-picker/component.d.ts +0 -38
  257. package/time-picker/constant.d.ts +0 -4
  258. package/time-picker/index.d.ts +0 -5
  259. package/time-picker/panel/panel.component.d.ts +0 -56
  260. package/time-picker/time-picker.module.d.ts +0 -20
  261. package/time-picker/time-picker.type.d.ts +0 -13
  262. package/tooltip/animations.d.ts +0 -4
  263. package/tooltip/base-tooltip.d.ts +0 -86
  264. package/tooltip/index.d.ts +0 -8
  265. package/tooltip/tooltip-active.directive.d.ts +0 -16
  266. package/tooltip/tooltip-copy.directive.d.ts +0 -26
  267. package/tooltip/tooltip-intl.d.ts +0 -11
  268. package/tooltip/tooltip.component.d.ts +0 -46
  269. package/tooltip/tooltip.directive.d.ts +0 -10
  270. package/tooltip/tooltip.module.d.ts +0 -16
  271. package/tooltip/tooltip.types.d.ts +0 -16
  272. package/tooltip/utils/index.d.ts +0 -15
  273. package/tree-select/index.d.ts +0 -4
  274. package/tree-select/tree-node-placeholder.component.d.ts +0 -5
  275. package/tree-select/tree-select.component.d.ts +0 -94
  276. package/tree-select/tree-select.module.d.ts +0 -12
  277. package/tree-select/tree-select.types.d.ts +0 -11
@@ -1,18 +0,0 @@
1
- import { ElementRef, OnInit } from '@angular/core';
2
- import { Bem } from '../../internal/utils';
3
- import { DialogRef } from '../dialog-ref';
4
- import { DialogService } from '../dialog.service';
5
- import * as i0 from "@angular/core";
6
- export declare class DialogHeaderComponent implements OnInit {
7
- dialogRef: DialogRef<any>;
8
- private readonly elementRef;
9
- private readonly dialogService;
10
- bem: Bem;
11
- divider: boolean;
12
- closeable: boolean;
13
- result: any;
14
- constructor(dialogRef: DialogRef<any>, elementRef: ElementRef, dialogService: DialogService);
15
- ngOnInit(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, [{ optional: true; }, null, null]>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "aui-dialog-header", never, { "divider": { "alias": "divider"; "required": false; }; "closeable": { "alias": "closeable"; "required": false; }; "result": { "alias": "result"; "required": false; }; }, {}, never, ["*"], true, never>;
18
- }
@@ -1,18 +0,0 @@
1
- import { ComponentType, OverlayRef } from '@angular/cdk/overlay';
2
- import { Observable } from 'rxjs';
3
- import { DialogComponent } from './dialog.component';
4
- export declare class DialogRef<T = ComponentType<any>, R = any> {
5
- private readonly overlayRef;
6
- dialogInstance: DialogComponent;
7
- componentInstance?: T;
8
- readonly id: string;
9
- private readonly afterOpen$;
10
- private readonly afterClosed$;
11
- constructor(overlayRef: OverlayRef, dialogInstance: DialogComponent);
12
- close(result?: R): void;
13
- afterOpen(): Observable<void>;
14
- afterClosed(): Observable<R>;
15
- updatePosition(): this;
16
- updateSize(): this;
17
- private getPositionStrategy;
18
- }
@@ -1,48 +0,0 @@
1
- import { AnimationEvent } from '@angular/animations';
2
- import { OverlayRef } from '@angular/cdk/overlay';
3
- import { CdkPortalOutlet, ComponentPortal, TemplatePortal } from '@angular/cdk/portal';
4
- import { ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, Renderer2 } from '@angular/core';
5
- import { Bem } from '../internal/utils';
6
- import { DialogConfig } from './dialog-config';
7
- import * as i0 from "@angular/core";
8
- export declare class DialogComponent {
9
- private readonly elementRef;
10
- private readonly render;
11
- portalOutlet: CdkPortalOutlet;
12
- bem: Bem;
13
- config: DialogConfig;
14
- state: 'enter' | 'exit' | 'void';
15
- animationStateChanged: EventEmitter<AnimationEvent>;
16
- elementFocusedBeforeModalWasOpened: HTMLElement;
17
- overlayRef: OverlayRef;
18
- get id(): string;
19
- set id(value: string);
20
- private readonly _id;
21
- get rootClass(): string;
22
- get zoomClassMap(): {
23
- enter: string;
24
- enterActive: string;
25
- leave: string;
26
- leaveActive: string;
27
- };
28
- get fadeClassMap(): {
29
- enter: string;
30
- enterActive: string;
31
- leave: string;
32
- leaveActive: string;
33
- };
34
- constructor(elementRef: ElementRef<HTMLElement>, render: Renderer2);
35
- attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
36
- attachTemplatePortal<T>(portal: TemplatePortal<T>): EmbeddedViewRef<T>;
37
- onAnimationDone(event: AnimationEvent): void;
38
- onAnimationStart(event: AnimationEvent): void;
39
- startExitAnimation(): void;
40
- private blurActiveElement;
41
- private cleanAnimationClass;
42
- private setEnterAnimationClass;
43
- private setExitAnimationClass;
44
- private setMaskExitAnimationClass;
45
- private setModalTransformOrigin;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
47
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "aui-dialog", never, {}, {}, never, never, true, never>;
48
- }
@@ -1,23 +0,0 @@
1
- import { DialogCloseDirective } from './dialog-content/dialog-close.directive';
2
- import { DialogContentComponent } from './dialog-content/dialog-content.component';
3
- import { DialogFooterComponent } from './dialog-content/dialog-footer.component';
4
- import { DialogHeaderComponent } from './dialog-content/dialog-header.component';
5
- import { DialogComponent } from './dialog.component';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@angular/common";
8
- import * as i2 from "@angular/cdk/overlay";
9
- import * as i3 from "@angular/cdk/portal";
10
- import * as i4 from "../icon/icon.module";
11
- import * as i5 from "../button/button.module";
12
- import * as i6 from "./dialog.component";
13
- import * as i7 from "./dialog-content/dialog-header.component";
14
- import * as i8 from "./dialog-content/dialog-content.component";
15
- import * as i9 from "./dialog-content/dialog-footer.component";
16
- import * as i10 from "./dialog-content/dialog-close.directive";
17
- import * as i11 from "./confirm-dialog/confirm-dialog.component";
18
- export declare class DialogModule {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialogModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.IconModule, typeof i5.ButtonModule, typeof i6.DialogComponent, typeof i7.DialogHeaderComponent, typeof i8.DialogContentComponent, typeof i9.DialogFooterComponent, typeof i10.DialogCloseDirective, typeof i11.ConfirmDialogComponent], [typeof i6.DialogComponent, typeof i7.DialogHeaderComponent, typeof i8.DialogContentComponent, typeof i9.DialogFooterComponent, typeof i10.DialogCloseDirective]>;
21
- static ɵinj: i0.ɵɵInjectorDeclaration<DialogModule>;
22
- }
23
- export declare const DIALOG_MODULE: readonly [typeof DialogComponent, typeof DialogHeaderComponent, typeof DialogContentComponent, typeof DialogFooterComponent, typeof DialogCloseDirective];
@@ -1,28 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ComponentType } from '@angular/cdk/portal';
3
- import { InjectionToken, Injector, TemplateRef } from '@angular/core';
4
- import { ConfirmDialogConfig } from './confirm-dialog/confirm-dialog-config';
5
- import { DialogConfig } from './dialog-config';
6
- import { DialogRef } from './dialog-ref';
7
- import * as i0 from "@angular/core";
8
- export declare const DIALOG_DATA: InjectionToken<any>;
9
- export declare class DialogService {
10
- private readonly overlay;
11
- private readonly injector;
12
- static readonly DIALOG_OVERLAY_PANE_CLASS = "aui-dialog-overlay-pane";
13
- static readonly DIALOG_BACKDROP_CLASS = "aui-dialog-backdrop";
14
- static readonly DIALOG_OVERLAY_PANE_FIT_VIEWPORT_CLASS = "aui-dialog-overlay-pane--fit-viewport";
15
- openDialogs: Array<DialogRef<any>>;
16
- constructor(overlay: Overlay, injector: Injector);
17
- open<T, D = any, R = any>(compOrTempRef: ComponentType<T> | TemplateRef<T>, config?: DialogConfig<D>): DialogRef<T, R>;
18
- confirm<T = unknown, R = unknown>(config: ConfirmDialogConfig<T, R>): Promise<T>;
19
- closeAll(): void;
20
- private createOverlay;
21
- private getOverlayConfig;
22
- private attachDialog;
23
- private attachDialogContent;
24
- private createInjector;
25
- private removeDialog;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
27
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
28
- }
@@ -1,18 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- export declare enum DialogSize {
3
- Small = "small",
4
- Medium = "medium",
5
- Big = "big",
6
- Large = "large",
7
- Fullscreen = "fullscreen",
8
- FitContent = "fit-content"
9
- }
10
- export declare enum ConfirmType {
11
- Primary = "primary",
12
- Success = "success",
13
- Warning = "warning",
14
- Danger = "danger"
15
- }
16
- export type PromiseExecutor<T> = (resolve: (result?: PromiseLike<T> | T) => void, reject: (reason?: unknown) => void) => void;
17
- export type CustomBeforeAction<T> = () => Observable<T> | PromiseLike<T>;
18
- export type BeforeAction<T> = CustomBeforeAction<T> | PromiseExecutor<T>;
package/dialog/index.d.ts DELETED
@@ -1,11 +0,0 @@
1
- export * from './confirm-dialog/confirm-dialog-config';
2
- export * from './dialog.component';
3
- export * from './dialog.module';
4
- export * from './dialog.service';
5
- export * from './dialog.types';
6
- export * from './dialog-config';
7
- export * from './dialog-content/dialog-close.directive';
8
- export * from './dialog-content/dialog-content.component';
9
- export * from './dialog-content/dialog-footer.component';
10
- export * from './dialog-content/dialog-header.component';
11
- export * from './dialog-ref';
@@ -1 +0,0 @@
1
- export declare function throwDialogContentAlreadyAttachedError(): void;
@@ -1,4 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { DialogRef } from '../dialog-ref';
3
- export declare function getClosestDialog(element: ElementRef, openDialogs: Array<DialogRef<any>>): DialogRef<any, any>;
4
- export * from './errors';
@@ -1,33 +0,0 @@
1
- import { ComponentType } from '@angular/cdk/overlay';
2
- import { AfterViewInit, EventEmitter, OnChanges, SimpleChanges, TemplateRef } from '@angular/core';
3
- import { DrawerService } from '../drawer.service';
4
- import { DrawerOptions, DrawerSize } from '../types';
5
- import * as i0 from "@angular/core";
6
- export declare class DrawerComponent<T = unknown, C extends object = object, R = unknown> implements AfterViewInit, OnChanges, Required<DrawerOptions<T, C>> {
7
- private readonly drawerService;
8
- title: TemplateRef<C> | string;
9
- footer: TemplateRef<C> | string;
10
- size: DrawerSize;
11
- offsetY: string;
12
- visible: boolean;
13
- content: ComponentType<T> | TemplateRef<C>;
14
- hideOnClickOutside: boolean;
15
- showClose: boolean;
16
- drawerClass: string;
17
- mask: boolean;
18
- maskClosable: boolean;
19
- divider: boolean;
20
- width: number;
21
- contentParams: C;
22
- disposeWhenHide: boolean;
23
- readonly close: EventEmitter<R>;
24
- private readonly titleTemplate;
25
- private readonly contentTemplateOrComponent;
26
- private readonly footerTemplate;
27
- private drawerRef;
28
- constructor(drawerService: DrawerService<T, C, R>);
29
- ngOnChanges(changes: SimpleChanges): void;
30
- ngAfterViewInit(): void;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerComponent<any, any, any>, never>;
32
- static ɵcmp: i0.ɵɵComponentDeclaration<DrawerComponent<any, any, any>, "aui-drawer", never, { "title": { "alias": "title"; "required": false; }; "footer": { "alias": "footer"; "required": false; }; "size": { "alias": "size"; "required": false; }; "offsetY": { "alias": "offsetY"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; "content": { "alias": "content"; "required": false; }; "hideOnClickOutside": { "alias": "hideOnClickOutside"; "required": false; }; "showClose": { "alias": "showClose"; "required": false; }; "drawerClass": { "alias": "drawerClass"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "maskClosable": { "alias": "maskClosable"; "required": false; }; "divider": { "alias": "divider"; "required": false; }; "width": { "alias": "width"; "required": false; }; "contentParams": { "alias": "contentParams"; "required": false; }; "disposeWhenHide": { "alias": "disposeWhenHide"; "required": false; }; }, { "close": "close"; }, ["titleTemplate", "contentTemplateOrComponent", "footerTemplate"], ["*"], true, never>;
33
- }
@@ -1,36 +0,0 @@
1
- import { AnimationEvent } from '@angular/animations';
2
- import { CdkPortalOutlet } from '@angular/cdk/portal';
3
- import { ChangeDetectorRef, ElementRef, InjectionToken, Injector, AfterViewInit } from '@angular/core';
4
- import { BehaviorSubject, Subject } from 'rxjs';
5
- import { DrawerOptions } from '../../types';
6
- import * as i0 from "@angular/core";
7
- export declare const DATA: InjectionToken<unknown>;
8
- export declare const duration = "300ms";
9
- type Step = 'hideDone' | 'hideStart' | 'showDone' | 'showStart';
10
- export declare class DrawerInternalComponent<T = unknown, C extends object = object> implements AfterViewInit {
11
- private readonly injector;
12
- private readonly cdr;
13
- bodyPortalOutlet: CdkPortalOutlet;
14
- mask: ElementRef<HTMLDivElement>;
15
- animationStep$: Subject<Step>;
16
- options: DrawerOptions<T, C>;
17
- showHide$$: BehaviorSubject<"show" | "hide">;
18
- maskVisible$: Subject<boolean>;
19
- get drawerClasses(): Record<string, boolean>;
20
- get width(): string;
21
- get context(): {
22
- $implicit: C;
23
- } & C;
24
- isTemplateRef: (label: any) => label is import("@angular/core").TemplateRef<unknown>;
25
- constructor(injector: Injector, cdr: ChangeDetectorRef);
26
- ngAfterViewInit(): void;
27
- private attachBodyContent;
28
- onAnimation(event: AnimationEvent): void;
29
- updateOptions(options: DrawerOptions<T, C>): void;
30
- show(): void;
31
- hide(): void;
32
- maskClick(): void;
33
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerInternalComponent<any, any>, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<DrawerInternalComponent<any, any>, "ng-component", never, {}, {}, never, never, true, never>;
35
- }
36
- export {};
@@ -1,13 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DrawerInternalComponent } from './component/internal/internal.component';
3
- export declare class DrawerRef<T = unknown, C extends object = object, R = unknown> {
4
- drawerInstance: DrawerInternalComponent<T, C>;
5
- private result;
6
- private readonly afterOpen$;
7
- private readonly afterClosed$;
8
- get afterOpen(): Observable<void>;
9
- get afterClosed(): Observable<R>;
10
- constructor(drawerInstance: DrawerInternalComponent<T, C>);
11
- open(): void;
12
- close(result?: R): void;
13
- }
@@ -1,15 +0,0 @@
1
- import { DrawerComponent } from './component/drawer.component';
2
- import { DrawerContentDirective, DrawerFooterDirective, DrawerHeaderDirective } from './helper-directives';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "@angular/common";
5
- import * as i2 from "../icon/icon.module";
6
- import * as i3 from "@angular/cdk/overlay";
7
- import * as i4 from "@angular/cdk/portal";
8
- import * as i5 from "./component/drawer.component";
9
- import * as i6 from "./helper-directives";
10
- export declare class DrawerModule {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<DrawerModule, never, [typeof i1.CommonModule, typeof i2.IconModule, typeof i3.OverlayModule, typeof i4.PortalModule, typeof i5.DrawerComponent, typeof i6.DrawerHeaderDirective, typeof i6.DrawerContentDirective, typeof i6.DrawerFooterDirective], [typeof i5.DrawerComponent, typeof i6.DrawerHeaderDirective, typeof i6.DrawerContentDirective, typeof i6.DrawerFooterDirective]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<DrawerModule>;
14
- }
15
- export declare const DRAWER_MODULE: readonly [typeof DrawerComponent, typeof DrawerHeaderDirective, typeof DrawerContentDirective, typeof DrawerFooterDirective];
@@ -1,24 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { OnDestroy } from '@angular/core';
3
- import { Subject } from 'rxjs';
4
- import { DrawerRef } from './drawer-ref';
5
- import { DrawerOptions } from './types';
6
- import * as i0 from "@angular/core";
7
- export declare class DrawerService<T = unknown, C extends object = object, R = unknown> implements OnDestroy {
8
- private readonly overlay;
9
- private overlayRef;
10
- options: DrawerOptions<T, C>;
11
- drawerRef: DrawerRef<T, C, R>;
12
- invisible$: Subject<void>;
13
- private drawerInternalComponentRef;
14
- constructor(overlay: Overlay);
15
- open(options: DrawerOptions<T, C>): DrawerRef<T, C, R>;
16
- updateOptions(options: DrawerOptions<T, C>): void;
17
- private createOverlay;
18
- private createDrawer;
19
- private getOverlayConfig;
20
- private dispose;
21
- ngOnDestroy(): void;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerService<any, any, any>, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<DrawerService<any, any, any>>;
24
- }
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class DrawerHeaderDirective {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerHeaderDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerHeaderDirective, "[auiDrawerHeader]", never, {}, {}, never, never, true, never>;
5
- }
6
- export declare class DrawerContentDirective {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerContentDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerContentDirective, "[auiDrawerContent]", never, {}, {}, never, never, true, never>;
9
- }
10
- export declare class DrawerFooterDirective {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DrawerFooterDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<DrawerFooterDirective, "[auiDrawerFooter]", never, {}, {}, never, never, true, never>;
13
- }
package/drawer/index.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from './component/drawer.component';
2
- export * from './drawer.module';
3
- export * from './drawer.service';
4
- export * from './drawer-ref';
5
- export * from './helper-directives';
6
- export * from './types';
package/drawer/types.d.ts DELETED
@@ -1,26 +0,0 @@
1
- import { ComponentType } from '@angular/cdk/portal';
2
- import { TemplateRef } from '@angular/core';
3
- import { ValueOf } from '../internal/types';
4
- export declare const DrawerSize: {
5
- readonly Small: "small";
6
- readonly Medium: "medium";
7
- readonly Big: "big";
8
- };
9
- export type DrawerSize = ValueOf<typeof DrawerSize>;
10
- export interface DrawerOptions<T = unknown, C extends object = object> {
11
- title?: TemplateRef<C> | string;
12
- content?: ComponentType<T> | TemplateRef<C>;
13
- footer?: TemplateRef<C> | string;
14
- contentParams?: C;
15
- width?: number;
16
- size?: DrawerSize;
17
- offsetY?: string;
18
- divider?: boolean;
19
- drawerClass?: string;
20
- visible?: boolean;
21
- showClose?: boolean;
22
- mask?: boolean;
23
- maskClosable?: boolean;
24
- hideOnClickOutside?: boolean;
25
- disposeWhenHide?: boolean;
26
- }
@@ -1,7 +0,0 @@
1
- import { TooltipActiveDirective } from '../tooltip';
2
- import * as i0 from "@angular/core";
3
- export declare class DropdownActiveDirective extends TooltipActiveDirective {
4
- customClass: string[] | string;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownActiveDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownActiveDirective, "[auiDropdownActive]", never, { "customClass": { "alias": "auiDropdownActive"; "required": false; }; }, {}, never, never, true, never>;
7
- }
@@ -1,21 +0,0 @@
1
- import { AfterContentInit, EventEmitter } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { ButtonType } from '../../button';
4
- import { ComponentSize } from '../../internal/types';
5
- import { Bem } from '../../internal/utils';
6
- import * as i0 from "@angular/core";
7
- export declare class DropdownButtonComponent implements AfterContentInit {
8
- bem: Bem;
9
- type: ButtonType;
10
- plain: boolean;
11
- size: ComponentSize;
12
- loading: boolean;
13
- disabled: boolean;
14
- buttonClick: EventEmitter<Event>;
15
- private readonly menuItems;
16
- disableTrigger$: Observable<boolean>;
17
- ngAfterContentInit(): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownButtonComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<DropdownButtonComponent, "aui-dropdown-button", never, { "type": { "alias": "type"; "required": false; }; "plain": { "alias": "plain"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "buttonClick": "buttonClick"; }, ["menuItems"], ["*", "aui-menu"], true, never>;
20
- static ngAcceptInputType_disabled: unknown;
21
- }
@@ -1,13 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { ChangeDetectorRef, ElementRef, EventEmitter, NgZone, Renderer2, ViewContainerRef } from '@angular/core';
3
- import { BaseTooltip } from '../tooltip';
4
- import { AnimationType } from '../tooltip/animations';
5
- import * as i0 from "@angular/core";
6
- export declare class DropdownDirective extends BaseTooltip {
7
- hideOnClick: boolean;
8
- visibleChange: EventEmitter<boolean>;
9
- animationType: AnimationType;
10
- constructor(overlay: Overlay, viewContainerRef: ViewContainerRef, elRef: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef, ngZone: NgZone);
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownDirective, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<DropdownDirective, "[auiDropdown]", ["auiDropdown"], { "class": { "alias": "auiDropdownClass"; "required": false; }; "disabled": { "alias": "auiDropdownDisabled"; "required": false; }; "position": { "alias": "auiDropdownPosition"; "required": false; }; "trigger": { "alias": "auiDropdownTrigger"; "required": false; }; "context": { "alias": "auiDropdownContext"; "required": false; }; "content": { "alias": "auiDropdown"; "required": false; }; "hideOnClick": { "alias": "auiDropdownHideOnClick"; "required": false; }; }, { "visibleChange": "auiDropdownVisibleChange"; }, never, never, true, never>;
13
- }
@@ -1,27 +0,0 @@
1
- import { DropdownActiveDirective } from './dropdown-active.directive';
2
- import { DropdownButtonComponent } from './dropdown-button/dropdown-button.component';
3
- import { DropdownDirective } from './dropdown.directive';
4
- import { MenuGroupTitleDirective } from './helper-directives';
5
- import { MenuComponent } from './menu/menu.component';
6
- import { MenuGroupComponent } from './menu-group/menu-group.component';
7
- import { MenuItemComponent } from './menu-item/menu-item.component';
8
- import { SubmenuComponent } from './submenu/submenu.component';
9
- import * as i0 from "@angular/core";
10
- import * as i1 from "@angular/common";
11
- import * as i2 from "../tooltip/tooltip.module";
12
- import * as i3 from "../icon/icon.module";
13
- import * as i4 from "../button/button.module";
14
- import * as i5 from "./dropdown.directive";
15
- import * as i6 from "./dropdown-active.directive";
16
- import * as i7 from "./dropdown-button/dropdown-button.component";
17
- import * as i8 from "./menu/menu.component";
18
- import * as i9 from "./menu-group/menu-group.component";
19
- import * as i10 from "./helper-directives";
20
- import * as i11 from "./menu-item/menu-item.component";
21
- import * as i12 from "./submenu/submenu.component";
22
- export declare class DropdownModule {
23
- static ɵfac: i0.ɵɵFactoryDeclaration<DropdownModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<DropdownModule, never, [typeof i1.CommonModule, typeof i2.TooltipModule, typeof i3.IconModule, typeof i4.ButtonModule, typeof i5.DropdownDirective, typeof i6.DropdownActiveDirective, typeof i7.DropdownButtonComponent, typeof i8.MenuComponent, typeof i9.MenuGroupComponent, typeof i10.MenuGroupTitleDirective, typeof i11.MenuItemComponent, typeof i12.SubmenuComponent], [typeof i5.DropdownDirective, typeof i6.DropdownActiveDirective, typeof i7.DropdownButtonComponent, typeof i8.MenuComponent, typeof i9.MenuGroupComponent, typeof i10.MenuGroupTitleDirective, typeof i11.MenuItemComponent, typeof i12.SubmenuComponent]>;
25
- static ɵinj: i0.ɵɵInjectorDeclaration<DropdownModule>;
26
- }
27
- export declare const DROPDOWN_MODULE: readonly [typeof DropdownDirective, typeof DropdownActiveDirective, typeof DropdownButtonComponent, typeof MenuComponent, typeof MenuGroupComponent, typeof MenuGroupTitleDirective, typeof MenuItemComponent, typeof SubmenuComponent];
@@ -1,9 +0,0 @@
1
- import { ValueOf } from '../internal/types';
2
- export declare const MenuItemType: {
3
- readonly Default: "default";
4
- readonly Primary: "primary";
5
- readonly Success: "success";
6
- readonly Warning: "warning";
7
- readonly Danger: "danger";
8
- };
9
- export type MenuItemType = ValueOf<typeof MenuItemType>;
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class MenuGroupTitleDirective {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuGroupTitleDirective, never>;
4
- static ɵdir: i0.ɵɵDirectiveDeclaration<MenuGroupTitleDirective, "[auiMenuGroupTitle]", ["auiMenuGroupTitle"], {}, {}, never, never, true, never>;
5
- }
@@ -1,10 +0,0 @@
1
- export * from './dropdown.directive';
2
- export * from './dropdown.module';
3
- export * from './dropdown.types';
4
- export * from './dropdown-active.directive';
5
- export * from './dropdown-button/dropdown-button.component';
6
- export * from './helper-directives';
7
- export * from './menu/menu.component';
8
- export * from './menu-group/menu-group.component';
9
- export * from './menu-item/menu-item.component';
10
- export * from './submenu/submenu.component';
@@ -1,9 +0,0 @@
1
- import { ComponentSize } from '../../internal/types';
2
- import { Bem } from '../../internal/utils';
3
- import * as i0 from "@angular/core";
4
- export declare class MenuComponent {
5
- bem: Bem;
6
- size: ComponentSize;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
8
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "aui-menu", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], true, never>;
9
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class MenuGroupComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuGroupComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuGroupComponent, "aui-menu-group", never, {}, {}, never, ["[auiMenuGroupTitle]", "*"], true, never>;
5
- }
@@ -1,15 +0,0 @@
1
- import { Bem } from '../../internal/utils';
2
- import { MenuItemType } from '../dropdown.types';
3
- import * as i0 from "@angular/core";
4
- export declare class MenuItemComponent {
5
- bem: Bem;
6
- protected _disabled: boolean;
7
- get disabled(): boolean;
8
- set disabled(value: boolean);
9
- divide: boolean;
10
- type: MenuItemType;
11
- actived: boolean;
12
- get className(): string;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "aui-menu-item", never, { "disabled": { "alias": "disabled"; "required": false; }; "divide": { "alias": "divide"; "required": false; }; "type": { "alias": "type"; "required": false; }; "actived": { "alias": "actived"; "required": false; }; }, {}, never, ["*"], true, never>;
15
- }
@@ -1,16 +0,0 @@
1
- import { QueryList } from '@angular/core';
2
- import { ComponentSize } from '../../internal/types';
3
- import { Bem } from '../../internal/utils';
4
- import { TooltipTrigger } from '../../tooltip';
5
- import { MenuItemComponent } from '../menu-item/menu-item.component';
6
- import * as i0 from "@angular/core";
7
- export declare class SubmenuComponent extends MenuItemComponent {
8
- bem: Bem;
9
- trigger: TooltipTrigger;
10
- size: ComponentSize;
11
- get disabled(): boolean;
12
- menuItems: QueryList<MenuItemComponent>;
13
- get hasEnabledItem(): boolean;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SubmenuComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<SubmenuComponent, "aui-submenu", never, { "trigger": { "alias": "trigger"; "required": false; }; "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["menuItems"], ["*", "aui-menu-item"], true, never>;
16
- }
@@ -1,36 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { ReplaySubject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * form control 内部不保持 value 属性,当不使用 ngModel 时可以通过 [(value)] 实现双向绑定;
7
- * 也可以分别传入 value 和 监听 valueChange 事件以实现阻断用户操作的功能。
8
- */
9
- export declare class CommonFormControl<V, M = V> implements ControlValueAccessor {
10
- protected cdr: ChangeDetectorRef;
11
- get disabled(): boolean | "";
12
- set disabled(val: boolean | '');
13
- get readonly(): boolean;
14
- set readonly(val: boolean);
15
- get propValue(): V;
16
- set propValue(val: V);
17
- valueChange: EventEmitter<V>;
18
- protected onChange: (_: V) => void;
19
- protected onTouched: () => void;
20
- private _propValue;
21
- private _disabled;
22
- private _readonly;
23
- model: M;
24
- model$: ReplaySubject<M>;
25
- constructor(cdr: ChangeDetectorRef);
26
- registerOnChange(fn: (_: V) => void): void;
27
- registerOnTouched(fn: () => void): void;
28
- setDisabledState(isDisabled: boolean): void;
29
- writeValue(value: V): void;
30
- emitModel(model: M): void;
31
- emitValue(value: V): void;
32
- protected valueIn(value: V): M;
33
- protected modelOut(model: M): V;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<CommonFormControl<any, any>, never>;
35
- static ɵdir: i0.ɵɵDirectiveDeclaration<CommonFormControl<any, any>, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "propValue": { "alias": "value"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
36
- }
@@ -1,37 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, OnDestroy, QueryList } from '@angular/core';
2
- import { FormGroupDirective, NgControl, NgForm } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { Bem } from '../../internal/utils';
5
- import { FormDirective } from '../form.directive';
6
- import { FormItemWidth, LabelPosition } from '../form.types';
7
- import { FormItemAddonDirective, FormItemControlDirective, FormItemErrorDirective, FormItemHintDirective, FormItemLabelDirective } from '../helper-directives';
8
- import * as i0 from "@angular/core";
9
- export declare class FormItemComponent implements AfterContentInit, OnDestroy {
10
- private readonly cdr;
11
- private readonly auiForm;
12
- bem: Bem;
13
- labelWidth: string;
14
- width: FormItemWidth;
15
- labelPosition: LabelPosition;
16
- emptyAddon: boolean;
17
- plain: boolean;
18
- itemLabel: FormItemLabelDirective;
19
- itemControl: FormItemControlDirective;
20
- ngControls: QueryList<NgControl>;
21
- addons: QueryList<FormItemAddonDirective>;
22
- errors: QueryList<FormItemErrorDirective>;
23
- hints: QueryList<FormItemHintDirective>;
24
- hasError$: Observable<boolean>;
25
- errorCount$: Observable<number>;
26
- hintCount$: Observable<number>;
27
- parentForm: FormGroupDirective | NgForm;
28
- private readonly destroy$$;
29
- get formItemWidthClass(): string;
30
- constructor(cdr: ChangeDetectorRef, auiForm: FormDirective, ngForm: NgForm, formGroup: FormGroupDirective);
31
- ngAfterContentInit(): void;
32
- subscribeInputsFromParent(): void;
33
- mapControlStatus(control: NgControl): Observable<boolean>;
34
- ngOnDestroy(): void;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<FormItemComponent, [null, { optional: true; }, { optional: true; }, { optional: true; }]>;
36
- static ɵcmp: i0.ɵɵComponentDeclaration<FormItemComponent, "aui-form-item", never, { "labelWidth": { "alias": "labelWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "labelPosition": { "alias": "labelPosition"; "required": false; }; "emptyAddon": { "alias": "emptyAddon"; "required": false; }; "plain": { "alias": "plain"; "required": false; }; }, {}, ["itemLabel", "itemControl", "ngControls", "addons", "errors", "hints"], ["label[auiFormItemLabel]", "*", "[auiFormItemAddon]", "[auiFormItemError]", "[auiFormItemHint]"], true, never>;
37
- }
@@ -1,21 +0,0 @@
1
- import { ControlContainer } from '@angular/forms';
2
- import { Observable } from 'rxjs';
3
- import { LabelPosition } from './form.types';
4
- import * as i0 from "@angular/core";
5
- export declare class FormDirective {
6
- controlContainer?: ControlContainer;
7
- get ngClassSubmitted(): boolean;
8
- private readonly labelWidth$$;
9
- private readonly labelPosition$$;
10
- private readonly emptyAddon$$;
11
- set labelWidth(val: string);
12
- set labelPosition(val: LabelPosition);
13
- set emptyAddon(val: boolean);
14
- inline: boolean;
15
- labelWidth$: Observable<string>;
16
- labelPosition$: Observable<LabelPosition>;
17
- emptyAddon$: Observable<boolean>;
18
- constructor(controlContainer?: ControlContainer);
19
- static ɵfac: i0.ɵɵFactoryDeclaration<FormDirective, [{ optional: true; }]>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<FormDirective, "form[auiForm]", ["auiForm"], { "labelWidth": { "alias": "auiFormLabelWidth"; "required": false; }; "labelPosition": { "alias": "auiFormLabelPosition"; "required": false; }; "emptyAddon": { "alias": "auiFormEmptyAddon"; "required": false; }; "inline": { "alias": "auiFormInline"; "required": false; }; }, {}, never, never, true, never>;
21
- }