@alauda/ui 6.4.6-beta.2 → 6.4.6-beta.3

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 (102) hide show
  1. package/alauda-ui.d.ts +0 -3
  2. package/button/button.types.d.ts +0 -9
  3. package/esm2020/accordion/accordion-item/accordion-item.component.mjs +1 -3
  4. package/esm2020/alauda-ui.mjs +1 -4
  5. package/esm2020/anchor/anchor.component.mjs +1 -2
  6. package/esm2020/back-top/back-top.component.mjs +2 -4
  7. package/esm2020/button/button.component.mjs +1 -2
  8. package/esm2020/button/button.types.mjs +1 -10
  9. package/esm2020/date-picker/calendar/constant.mjs +1 -2
  10. package/esm2020/date-picker/calendar/header/component.mjs +1 -5
  11. package/esm2020/date-picker/calendar/panel/picker-panel.mjs +1 -5
  12. package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +1 -3
  13. package/esm2020/date-picker/calendar/util.mjs +1 -2
  14. package/esm2020/dialog/dialog-content/dialog-content.component.mjs +1 -2
  15. package/esm2020/dialog/dialog.component.mjs +2 -2
  16. package/esm2020/dialog/dialog.service.mjs +1 -2
  17. package/esm2020/drawer/component/drawer.component.mjs +1 -4
  18. package/esm2020/drawer/component/helper-directives.mjs +1 -5
  19. package/esm2020/form/common-form.mjs +1 -8
  20. package/esm2020/icon/icon-register.service.mjs +1 -2
  21. package/esm2020/input/autosize.directive.mjs +2 -7
  22. package/esm2020/input/input.component.mjs +1 -5
  23. package/esm2020/input/tags-input/tags-input.component.mjs +2 -7
  24. package/esm2020/message/message.config.mjs +1 -6
  25. package/esm2020/notification/notification.component.mjs +1 -5
  26. package/esm2020/paginator/paginator-intl.mjs +1 -12
  27. package/esm2020/paginator/paginator.component.mjs +1 -9
  28. package/esm2020/radio/radio-button/radio-button.component.mjs +1 -2
  29. package/esm2020/radio/radio-group/radio-group.component.mjs +1 -4
  30. package/esm2020/radio/radio.component.mjs +1 -2
  31. package/esm2020/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +1 -3
  32. package/esm2020/scrolling/fixed-size-table-virtual-scroll.directive.mjs +1 -3
  33. package/esm2020/scrolling/fixed-size-virtual-scroll.directive.mjs +1 -2
  34. package/esm2020/select/base-select.mjs +2 -5
  35. package/esm2020/select/multi-select/multi-select.component.mjs +2 -4
  36. package/esm2020/select/select.component.mjs +1 -2
  37. package/esm2020/select/validators.mjs +2 -6
  38. package/esm2020/sort/sort-errors.mjs +1 -5
  39. package/esm2020/sort/sort-header.component.mjs +1 -5
  40. package/esm2020/sort/sort.directive.mjs +1 -2
  41. package/esm2020/steps/steps.component.mjs +1 -5
  42. package/esm2020/table/table-cell-def.directive.mjs +1 -5
  43. package/esm2020/table/table-cell.directive.mjs +1 -3
  44. package/esm2020/table/table-column-def.directive.mjs +1 -7
  45. package/esm2020/table/table-header-cell-def.directive.mjs +1 -5
  46. package/esm2020/table/table-header-cell.directive.mjs +1 -3
  47. package/esm2020/table/table-header-row-def.directive.mjs +1 -5
  48. package/esm2020/table/table-header-row.component.mjs +1 -2
  49. package/esm2020/table/table-row-def.directive.mjs +1 -6
  50. package/esm2020/table/table-row.component.mjs +1 -2
  51. package/esm2020/table/table-scroll.directive.mjs +3 -4
  52. package/esm2020/table/table.component.mjs +1 -4
  53. package/esm2020/tabs/tab-body.component.mjs +1 -19
  54. package/esm2020/tabs/tab-context.service.mjs +1 -4
  55. package/esm2020/tabs/tab-group.component.mjs +1 -46
  56. package/esm2020/tabs/tab-header-active-indicator.component.mjs +1 -10
  57. package/esm2020/tabs/tab-header.component.mjs +3 -106
  58. package/esm2020/tabs/tab.component.mjs +1 -15
  59. package/esm2020/tabs/tabs.types.mjs +1 -4
  60. package/esm2020/tag/tag.component.mjs +1 -2
  61. package/esm2020/time-picker/panel/panel.component.mjs +1 -3
  62. package/esm2020/tooltip/tooltip-intl.mjs +1 -7
  63. package/esm2020/tree-select/tree-select.component.mjs +1 -2
  64. package/esm2020/types.mjs +1 -4
  65. package/esm2020/utils/bem.mjs +1 -2
  66. package/esm2020/utils/coercion.mjs +1 -5
  67. package/fesm2015/alauda-ui.mjs +11 -376
  68. package/fesm2015/alauda-ui.mjs.map +1 -1
  69. package/fesm2020/alauda-ui.mjs +11 -376
  70. package/fesm2020/alauda-ui.mjs.map +1 -1
  71. package/form/common-form.d.ts +0 -7
  72. package/input/autosize.directive.d.ts +0 -3
  73. package/input/input.component.d.ts +0 -3
  74. package/message/message.config.d.ts +0 -20
  75. package/notification/notification.component.d.ts +0 -4
  76. package/package.json +3 -2
  77. package/paginator/paginator-intl.d.ts +0 -9
  78. package/paginator/paginator.component.d.ts +0 -14
  79. package/radio/radio-group/radio-group.component.d.ts +0 -3
  80. package/select/base-select.d.ts +0 -3
  81. package/sort/sort-errors.d.ts +0 -4
  82. package/steps/steps.component.d.ts +0 -3
  83. package/steps/types.d.ts +0 -3
  84. package/table/table-cell-def.directive.d.ts +0 -4
  85. package/table/table-cell.directive.d.ts +0 -1
  86. package/table/table-column-def.directive.d.ts +0 -4
  87. package/table/table-header-cell-def.directive.d.ts +0 -4
  88. package/table/table-header-cell.directive.d.ts +0 -1
  89. package/table/table-header-row-def.directive.d.ts +0 -4
  90. package/table/table-header-row.component.d.ts +0 -1
  91. package/table/table-row-def.directive.d.ts +0 -5
  92. package/table/table-row.component.d.ts +0 -1
  93. package/table/table-scroll.directive.d.ts +2 -2
  94. package/tabs/tab-body.component.d.ts +0 -16
  95. package/tabs/tab-context.service.d.ts +0 -3
  96. package/tabs/tab-group.component.d.ts +0 -28
  97. package/tabs/tab-header-active-indicator.component.d.ts +0 -9
  98. package/tabs/tab-header.component.d.ts +0 -83
  99. package/tabs/tab.component.d.ts +0 -18
  100. package/tabs/tabs.types.d.ts +0 -3
  101. package/tooltip/tooltip-intl.d.ts +0 -4
  102. package/types.d.ts +0 -3
@@ -2,10 +2,6 @@ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { ReplaySubject } from 'rxjs';
4
4
  import * as i0 from "@angular/core";
5
- /**
6
- * form control 内部不保持 value 属性,当不使用 ngModel 时可以通过 [(value)] 实现双向绑定;
7
- * 也可以分别传入 value 和 监听 valueChange 事件以实现阻断用户操作的功能。
8
- */
9
5
  export declare class CommonFormControl<V, M = V> implements ControlValueAccessor {
10
6
  protected cdr: ChangeDetectorRef;
11
7
  get disabled(): boolean | '';
@@ -33,7 +29,4 @@ export declare class CommonFormControl<V, M = V> implements ControlValueAccessor
33
29
  static ɵfac: i0.ɵɵFactoryDeclaration<CommonFormControl<any, any>, never>;
34
30
  static ɵdir: i0.ɵɵDirectiveDeclaration<CommonFormControl<any, any>, never, never, { "disabled": "disabled"; "readonly": "readonly"; "propValue": "value"; }, { "valueChange": "valueChange"; }, never>;
35
31
  }
36
- /**
37
- * @deprecated use {@link CommonFormControl} instead
38
- */
39
32
  export declare const CommonForm: typeof CommonFormControl;
@@ -5,9 +5,6 @@ export interface AutoSizeValue {
5
5
  minRows: number;
6
6
  maxRows?: number;
7
7
  }
8
- /**
9
- * Directive to automatically resize a textarea to fit its content.
10
- */
11
8
  export declare class AutosizeDirective implements AfterViewInit, OnDestroy {
12
9
  private readonly elRef;
13
10
  private readonly ngControl;
@@ -12,9 +12,6 @@ export declare class InputComponent {
12
12
  private _size;
13
13
  private _disabled;
14
14
  size$: BehaviorSubject<ComponentSize>;
15
- /**
16
- * workaround for @link https://github.com/microsoft/TypeScript/pull/42425
17
- */
18
15
  disabled$: BehaviorSubject<boolean>;
19
16
  constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2);
20
17
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent, never>;
@@ -5,33 +5,13 @@ export declare enum MessageType {
5
5
  Warning = "warning",
6
6
  Info = "info"
7
7
  }
8
- /**
9
- * messageOptions: contains Basic configuration
10
- * Just for some containers like Message-Container
11
- * Detailed document: http://confluence.alaudatech.com/pages/viewpage.action?pageId=23383163
12
- */
13
8
  export declare class MessageConfig {
14
- /**
15
- * the message type
16
- */
17
9
  type?: MessageType;
18
- /**
19
- * The id of this message, The same ID can only have one at the same time
20
- */
21
10
  id?: string | number;
22
- /**
23
- * automatically shut down after a few seconds, if <= 0 ,non automatic closure
24
- */
25
11
  duration?: number;
26
- /**
27
- * message content
28
- */
29
12
  content?: string;
30
13
  }
31
14
  export interface MessageGlobalConfig {
32
- /**
33
- * max instance in one time
34
- */
35
15
  maxStack: number;
36
16
  duration: number | {
37
17
  [key in MessageType]: number;
@@ -22,10 +22,6 @@ export declare class NotificationComponent extends MessageComponent implements A
22
22
  onMouseLeave(): void;
23
23
  ngAfterViewInit(): void;
24
24
  setConfig(config: NotificationConfig): void;
25
- /**
26
- * Attach a TemplatePortal as content to this modal container.
27
- * @param portal Portal to be attached as the modal content.
28
- */
29
25
  private attachTemplatePortal;
30
26
  private attachComponentRef;
31
27
  private countDown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.4.6-beta.2",
3
+ "version": "6.4.6-beta.3",
4
4
  "description": "Angular UI components by Alauda Frontend Team.",
5
5
  "repository": "git+https://github.com/alauda/alauda-ui.git",
6
6
  "author": "Alauda Frontend",
@@ -26,7 +26,8 @@
26
26
  "rxjs": "^7.0.0"
27
27
  },
28
28
  "resolutions": {
29
- "prettier": "^2.6.2"
29
+ "eslint": "8.22.0",
30
+ "prettier": "^2.7.1"
30
31
  },
31
32
  "publishConfig": {
32
33
  "access": "public",
@@ -1,17 +1,8 @@
1
1
  import { Optional } from '@angular/core';
2
2
  import { Subject } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
- /**
5
- * To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
6
- * include it in a custom provider
7
- */
8
4
  export declare class PaginatorIntl {
9
- /**
10
- * Stream that emits whenever the labels here are changed. Use this to notify
11
- * components if the labels have changed after initialization.
12
- */
13
5
  readonly changes: Subject<void>;
14
- /** A label for the page size selector. */
15
6
  itemsPerPageLabel: string;
16
7
  jumperLabelPrefix: string;
17
8
  jumperLabelSuffix: string;
@@ -2,21 +2,10 @@ import { ChangeDetectorRef, EventEmitter, OnDestroy } from '@angular/core';
2
2
  import { Bem } from '../utils';
3
3
  import { PaginatorIntl } from './paginator-intl';
4
4
  import * as i0 from "@angular/core";
5
- /**
6
- * Change event object that is emitted when the user selects a
7
- * different page size or navigates to another page.
8
- * @deprecated use Output events directly instead
9
- */
10
5
  export declare class PageEvent {
11
- /** The current page index. */
12
6
  pageIndex: number;
13
- /**
14
- * Index of the page that was selected previously.
15
- */
16
7
  previousPageIndex: number;
17
- /** The current page size */
18
8
  pageSize: number;
19
- /** The current total number of items being paged */
20
9
  length: number;
21
10
  }
22
11
  export declare class PaginatorComponent implements OnDestroy {
@@ -29,9 +18,6 @@ export declare class PaginatorComponent implements OnDestroy {
29
18
  pageSize: number;
30
19
  pageSizeOptions: number[];
31
20
  total: number;
32
- /**
33
- * @deprecated use `total` instead
34
- */
35
21
  get length(): number;
36
22
  set length(val: number);
37
23
  layout: string | string[];
@@ -8,9 +8,6 @@ export declare class RadioGroupComponent extends CommonFormControl<any> {
8
8
  private readonly name$$;
9
9
  set size(val: RadioSize);
10
10
  direction: 'row' | 'column';
11
- /**
12
- * @deprecated use `plain` instead
13
- */
14
11
  set isPlain(val: boolean);
15
12
  set plain(val: boolean);
16
13
  set name(val: string);
@@ -40,9 +40,6 @@ export declare abstract class BaseSelect<T, V = T> extends CommonFormControl<V>
40
40
  contentOptions: QueryList<OptionComponent<T>>;
41
41
  isTemplateRef: (label: any) => label is import("@angular/core").TemplateRef<unknown>;
42
42
  isMulti: boolean;
43
- /**
44
- * Utility field to make sure the users always see the value as type array
45
- */
46
43
  abstract readonly values$: Observable<T[]>;
47
44
  allOptions$: Observable<Array<OptionComponent<T>>>;
48
45
  protected focusedOption: OptionComponent<T>;
@@ -1,8 +1,4 @@
1
- /** @docs-private */
2
1
  export declare function getSortDuplicateSortableIdError(id: string): Error;
3
- /** @docs-private */
4
2
  export declare function getSortHeaderNotContainedWithinSortError(): Error;
5
- /** @docs-private */
6
3
  export declare function getSortHeaderMissingIdError(): Error;
7
- /** @docs-private */
8
4
  export declare function getSortInvalidDirectionError(direction: string): Error;
@@ -7,9 +7,6 @@ export declare class StepsComponent implements OnInit, OnDestroy {
7
7
  private _steps;
8
8
  get steps(): StepItem[];
9
9
  set steps(val: StepItem[]);
10
- /**
11
- * @deprecated type 为 step 时一般在使用上下文中控制是否可以进行下一步;type 为 progress 时强制按顺序执行
12
- */
13
10
  linear: boolean;
14
11
  get currentIndex(): number;
15
12
  set currentIndex(index: number);
package/steps/types.d.ts CHANGED
@@ -11,9 +11,6 @@ export interface StepItem {
11
11
  description?: string;
12
12
  state?: StepState;
13
13
  optional?: boolean;
14
- /**
15
- * @deprecated 每个步骤不再需要单独控制。通过组件参数 selectable 统一控制
16
- */
17
14
  editable?: boolean;
18
15
  }
19
16
  export declare type StepsOrientation = 'horizontal' | 'vertical';
@@ -1,9 +1,5 @@
1
1
  import { CdkCellDef } from '@angular/cdk/table';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Cell definition for the aui-table.
5
- * Captures the template of a column's data row cell as well as cell-specific properties.
6
- */
7
3
  export declare class TableCellDefDirective extends CdkCellDef {
8
4
  static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDefDirective, never>;
9
5
  static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDefDirective, "[auiTableCellDef]", never, {}, {}, never>;
@@ -1,7 +1,6 @@
1
1
  import { CdkCell, CdkColumnDef } from '@angular/cdk/table';
2
2
  import { ElementRef } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- /** Cell template container that adds the right classes and role. */
5
4
  export declare class TableCellDirective extends CdkCell {
6
5
  direction: 'row' | 'column';
7
6
  constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
@@ -1,9 +1,5 @@
1
1
  import { CdkColumnDef } from '@angular/cdk/table';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Column definition for the aui-table.
5
- * Defines a set of cells available for a table column.
6
- */
7
3
  export declare class TableColumnDefDirective extends CdkColumnDef {
8
4
  set auiTableColumnDef(value: string);
9
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnDefDirective, never>;
@@ -1,9 +1,5 @@
1
1
  import { CdkHeaderCellDef } from '@angular/cdk/table';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Header cell definition for the aui-table.
5
- * Captures the template of a column's header cell and as well as cell-specific properties.
6
- */
7
3
  export declare class TableHeaderCellDefDirective extends CdkHeaderCellDef {
8
4
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCellDefDirective, never>;
9
5
  static ɵdir: i0.ɵɵDirectiveDeclaration<TableHeaderCellDefDirective, "[auiTableHeaderCellDef]", never, {}, {}, never>;
@@ -1,7 +1,6 @@
1
1
  import { CdkColumnDef, CdkHeaderCell } from '@angular/cdk/table';
2
2
  import { ElementRef } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- /** Header cell template container that adds the right classes and role. */
5
4
  export declare class TableHeaderCellDirective extends CdkHeaderCell {
6
5
  constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
7
6
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCellDirective, never>;
@@ -1,9 +1,5 @@
1
1
  import { CdkHeaderRowDef } from '@angular/cdk/table';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Header row definition for the aui-table.
5
- * Captures the header row's template and other header properties such as the columns to display.
6
- */
7
3
  export declare class TableHeaderRowDefDirective extends CdkHeaderRowDef {
8
4
  columns: Iterable<string>;
9
5
  sticky: boolean;
@@ -1,6 +1,5 @@
1
1
  import { CdkHeaderRow } from '@angular/cdk/table';
2
2
  import * as i0 from "@angular/core";
3
- /** Header template container that contains the cell outlet. Adds the right class and role. */
4
3
  export declare class TableHeaderRowComponent extends CdkHeaderRow {
5
4
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderRowComponent, never>;
6
5
  static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderRowComponent, "aui-table-header-row", ["auiTableHeaderRow"], {}, {}, never, never>;
@@ -1,10 +1,5 @@
1
1
  import { CdkRowDef } from '@angular/cdk/table';
2
2
  import * as i0 from "@angular/core";
3
- /**
4
- * Data row definition for the aui-table.
5
- * Captures the header row's template and other row properties such as the columns to display and
6
- * a when predicate that describes when this row should be used.
7
- */
8
3
  export declare class TableRowDefDirective<T> extends CdkRowDef<T> {
9
4
  columns: Iterable<string>;
10
5
  set auiTableRowDefWhen(v: (index: number, rowData: T) => boolean);
@@ -1,7 +1,6 @@
1
1
  import { CdkRow } from '@angular/cdk/table';
2
2
  import { AfterContentInit, ElementRef } from '@angular/core';
3
3
  import * as i0 from "@angular/core";
4
- /** Data row template container that contains the cell outlet. Adds the right class and role. */
5
4
  export declare class TableRowComponent extends CdkRow implements AfterContentInit {
6
5
  private readonly elRef;
7
6
  disabled: boolean;
@@ -1,5 +1,5 @@
1
1
  import { AfterViewInit, ElementRef, OnDestroy } from '@angular/core';
2
- import { Subject, BehaviorSubject } from 'rxjs';
2
+ import { Subject } from 'rxjs';
3
3
  import { TableComponent } from './table.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TableScrollWrapperDirective {
@@ -10,7 +10,7 @@ export declare class TableScrollWrapperDirective {
10
10
  export declare class TableScrollShadowDirective implements AfterViewInit, OnDestroy {
11
11
  private readonly el;
12
12
  private readonly table;
13
- scrollShadow$$: BehaviorSubject<boolean>;
13
+ scrollShadow$$: Subject<boolean>;
14
14
  destroy$$: Subject<void>;
15
15
  set auiTableScrollShadow(scrollShadow: boolean | '');
16
16
  constructor(el: ElementRef<HTMLElement>, table: TableComponent<unknown>);
@@ -5,48 +5,36 @@ import * as i0 from "@angular/core";
5
5
  export declare class TabBodyComponent implements OnDestroy {
6
6
  private _content;
7
7
  content$: BehaviorSubject<TemplatePortal<any>>;
8
- /** The portal host inside of this container into which the tab body content will be loaded. */
9
8
  _portalOutlet: CdkPortalOutlet;
10
- /** The tab body content to display. */
11
9
  get content(): TemplatePortal;
12
10
  set content(content: TemplatePortal);
13
11
  ngOnDestroy(): void;
14
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TabBodyComponent, never>;
15
13
  static ɵcmp: i0.ɵɵComponentDeclaration<TabBodyComponent, "aui-tab-body", never, { "content": "content"; }, {}, never, never>;
16
14
  }
17
- /** Used to flag tab labels for use with the portal directive */
18
15
  export declare class TabLabelDirective extends CdkPortal {
19
16
  constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
20
17
  static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelDirective, never>;
21
18
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabLabelDirective, "[auiTabLabel]", never, {}, {}, never>;
22
19
  }
23
- /**
24
- * Lazy load the embedded template for a tab content.
25
- */
26
20
  export declare class TabContentDirective {
27
21
  template: TemplateRef<any>;
28
22
  constructor(template: TemplateRef<any>);
29
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TabContentDirective, never>;
30
24
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentDirective, "[auiTabContent]", never, {}, {}, never>;
31
25
  }
32
- /** Used to project additional template from host to the tab header. */
33
26
  export declare class TabHeaderAddonDirective extends CdkPortal {
34
27
  constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
35
28
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderAddonDirective, never>;
36
29
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabHeaderAddonDirective, "[auiTabHeaderAddon]", never, {}, {}, never>;
37
30
  }
38
- /**
39
- * Used in the `aui-tab-group` view to display tab labels.
40
- */
41
31
  export declare class TabLabelWrapperDirective {
42
32
  elementRef: ElementRef<HTMLElement>;
43
33
  private _disabled;
44
- /** Whether or not the tab is disabled */
45
34
  get disabled(): boolean | '';
46
35
  set disabled(value: boolean | '');
47
36
  getOffsetLeft(): number;
48
37
  getOffsetWidth(): number;
49
- /** Sets focus on the wrapper element */
50
38
  focus(): void;
51
39
  constructor(elementRef: ElementRef<HTMLElement>);
52
40
  static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelWrapperDirective, never>;
@@ -57,14 +45,10 @@ export declare class TabTitleDirective extends CdkPortal {
57
45
  static ɵfac: i0.ɵɵFactoryDeclaration<TabTitleDirective, never>;
58
46
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabTitleDirective, "[auiTabTitle]", never, {}, {}, never>;
59
47
  }
60
- /**
61
- * The portal host directive for the contents of the tab.
62
- */
63
48
  export declare class TabBodyPortalDirective extends CdkPortalOutlet implements OnInit, OnDestroy {
64
49
  private readonly _host;
65
50
  private _hostSubscription;
66
51
  constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, _host: TabBodyComponent);
67
- /** Set initial visibility or set up subscription for changing visibility. */
68
52
  ngOnInit(): void;
69
53
  ngOnDestroy(): void;
70
54
  static ɵfac: i0.ɵɵFactoryDeclaration<TabBodyPortalDirective, never>;
@@ -3,9 +3,6 @@ import * as i0 from "@angular/core";
3
3
  export declare class TabContextService {
4
4
  readonly _parent: TabContextService;
5
5
  private readonly active$$;
6
- /**
7
- * Whether the tab is currently active.
8
- */
9
6
  get isActive(): boolean;
10
7
  set isActive(isActive: boolean);
11
8
  readonly active$: Observable<boolean>;
@@ -6,11 +6,8 @@ import { TabHeaderComponent } from './tab-header.component';
6
6
  import { TabComponent } from './tab.component';
7
7
  import { TabSize, TabType } from './tabs.types';
8
8
  import * as i0 from "@angular/core";
9
- /** A simple change event emitted on focus or selection changes. */
10
9
  export declare class TabChangeEvent {
11
- /** Index of the currently-selected tab. */
12
10
  index: number;
13
- /** Reference to the currently-selected tab. */
14
11
  tab: TabComponent;
15
12
  }
16
13
  export declare class TabGroupComponent implements OnChanges, AfterContentChecked, AfterContentInit, OnDestroy {
@@ -20,24 +17,17 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
20
17
  _headerAddon: TabHeaderAddonDirective;
21
18
  _tabHeader: TabHeaderComponent;
22
19
  _tabTitle: TabTitleDirective;
23
- /** The tab index that should be selected after the content has been checked. */
24
20
  private _indexToSelect;
25
- /** Subscription to tabs being added/removed. */
26
21
  private _tabsSubscription;
27
- /** Subscription to changes in the tab labels. */
28
22
  private _tabLabelSubscription;
29
23
  private _selectedIndex;
30
24
  private _tab;
31
25
  private _type;
32
26
  private _size;
33
- /** true lazy mode for template ref children */
34
27
  private _lazy;
35
28
  private _previousHeaderAddon;
36
- /** Emits whenever the type changes */
37
29
  readonly _typeChange: Subject<void>;
38
- /** Emits whenever the size changes */
39
30
  readonly _sizeChange: Subject<void>;
40
- /** The index of the active tab. */
41
31
  get selectedIndex(): number | null;
42
32
  set selectedIndex(value: number | null);
43
33
  get tab(): string;
@@ -49,43 +39,25 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
49
39
  set size(val: TabSize);
50
40
  get lazy(): boolean;
51
41
  set lazy(lazy: boolean);
52
- /** Output to enable support for two-way binding on `[(selectedIndex)]` */
53
42
  readonly selectedIndexChange: EventEmitter<number>;
54
43
  readonly tabChange: EventEmitter<string>;
55
- /** Event emitted when the tab selection has changed. */
56
44
  readonly selectedTabChange: EventEmitter<TabChangeEvent>;
57
- /** Event emitted when focus has changed within a tab group. */
58
45
  readonly focusChange: EventEmitter<TabChangeEvent>;
59
46
  constructor(_changeDetectorRef: ChangeDetectorRef);
60
47
  activatedTabs: TabComponent[];
61
48
  get activeTab(): TabComponent;
62
49
  ngOnChanges(changes: SimpleChanges): void;
63
- /**
64
- * After the content is checked, this component knows what tabs have been defined
65
- * and what the selected index should be. This is where we can know exactly what position
66
- * each tab should be in according to the new selected index.
67
- */
68
50
  ngAfterContentChecked(): void;
69
51
  ngAfterContentInit(): void;
70
52
  ngOnDestroy(): void;
71
- /** Handle click events, setting new selected index if appropriate. */
72
53
  _handleClick(tab: TabComponent, idx: number): void;
73
54
  _focusChanged(index: number): void;
74
- /** Re-aligns the ink bar to the selected tab element. */
75
55
  realignActiveIndicator(): void;
76
56
  private _changeActivatedTabs;
77
- /** Clamps the given index to the bounds of 0 and the tabs length. */
78
57
  private _clampTabIndex;
79
58
  private _findIndexByTab;
80
59
  private _createChangeEvent;
81
- /**
82
- * Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
83
- * on the Tab component, whereas the data binding is inside the TabGroup. In order for the
84
- * binding to be updated, we need to subscribe to changes in it and trigger change detection
85
- * manually.
86
- */
87
60
  private _subscribeToTabLabels;
88
- /** Retrieves the tabindex for the tab. */
89
61
  _getTabIndex(tab: TabComponent, idx: number): number | null;
90
62
  static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
91
63
  static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "aui-tab-group", ["auiTabGroup"], { "selectedIndex": "selectedIndex"; "tab": "tab"; "type": "type"; "title": "title"; "size": "size"; "lazy": "lazy"; }, { "selectedIndexChange": "selectedIndexChange"; "tabChange": "tabChange"; "selectedTabChange": "selectedTabChange"; "focusChange": "focusChange"; }, ["_headerAddon", "_tabTitle", "_tabs"], never>;
@@ -8,16 +8,7 @@ export declare class TabHeaderActiveIndicatorComponent {
8
8
  type: TabType;
9
9
  bem: Bem;
10
10
  constructor(_elementRef: ElementRef<HTMLElement>, _ngZone: NgZone);
11
- /**
12
- * Calculates the styles from the provided element in order to align the indicator to that element.
13
- * Shows the indicator if previously set as hidden.
14
- * @param element
15
- */
16
11
  alignToElement(element: HTMLElement): void;
17
- /**
18
- * Sets the proper styles to the element.
19
- * @param element
20
- */
21
12
  private _setStyles;
22
13
  private _getElementPosition;
23
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderActiveIndicatorComponent, never>;
@@ -5,53 +5,30 @@ import { TabHeaderAddonDirective, TabLabelWrapperDirective, TabTitleDirective }
5
5
  import { TabHeaderActiveIndicatorComponent } from './tab-header-active-indicator.component';
6
6
  import { TabSize, TabType } from './tabs.types';
7
7
  import * as i0 from "@angular/core";
8
- /**
9
- * The directions that scrolling can go in when the header's tabs exceed the header width. 'After'
10
- * will scroll the header towards the end of the tabs list and 'before' will scroll towards the
11
- * beginning of the list.
12
- */
13
8
  export declare type ScrollDirection = 'after' | 'before';
14
9
  export declare class TabHeaderComponent implements OnDestroy, AfterContentChecked, AfterContentInit {
15
10
  private readonly _changeDetectorRef;
16
11
  private readonly _viewportRuler;
17
12
  bem: Bem;
18
13
  _showAddon: boolean;
19
- /** Whether the controls for pagination should be displayed */
20
14
  _showPaginationControls: boolean;
21
- /** Whether the tab list can be scrolled more towards the end of the tab label list. */
22
15
  _disableScrollAfter: boolean;
23
- /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */
24
16
  _disableScrollBefore: boolean;
25
- /** Whether the scroll distance has changed and should be applied after the view is checked. */
26
17
  private _scrollDistanceChanged;
27
- /** Whether the header should scroll to the selected index after the view has been checked. */
28
18
  private _selectedIndexChanged;
29
- /** The distance in pixels that the tab labels should be translated to the left. */
30
19
  private _scrollDistance;
31
20
  private _selectedIndex;
32
- /** Emits when the component is destroyed. */
33
21
  private readonly _destroyed;
34
- /** Used to manage focus between the tabs. */
35
22
  private _keyManager;
36
- /**
37
- * The number of tab labels that are displayed on the header. When this changes, the header
38
- * should re-evaluate the scroll position.
39
- */
40
23
  private _tabLabelCount;
41
24
  type: TabType;
42
25
  size: TabSize;
43
- /** The index of the active tab. */
44
26
  get selectedIndex(): number;
45
27
  set selectedIndex(value: number);
46
- /** Event emitted when the option is selected. */
47
28
  readonly selectFocusedIndex: EventEmitter<number>;
48
- /** Event emitted when a label is focused. */
49
29
  readonly indexFocused: EventEmitter<number>;
50
30
  _headerAddon: TabHeaderAddonDirective;
51
31
  _title: TabTitleDirective;
52
- /**
53
- * workaround for @link https://github.com/microsoft/TypeScript/pull/42425
54
- */
55
32
  _labelWrappers: QueryList<TabLabelWrapperDirective & {
56
33
  disabled?: boolean;
57
34
  }>;
@@ -61,82 +38,22 @@ export declare class TabHeaderComponent implements OnDestroy, AfterContentChecke
61
38
  _activeIndicator: TabHeaderActiveIndicatorComponent;
62
39
  ngOnDestroy(): void;
63
40
  ngAfterContentChecked(): void;
64
- /**
65
- * Aligns the ink bar to the selected tab on load.
66
- */
67
41
  ngAfterContentInit(): void;
68
- /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
69
42
  get scrollDistance(): number;
70
43
  set scrollDistance(v: number);
71
- /** Tracks which element has focus; used for keyboard navigation */
72
44
  get focusIndex(): number;
73
- /** When the focus index is set, we must manually send focus to the correct label */
74
45
  set focusIndex(value: number);
75
- /**
76
- * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
77
- * providing a valid index and return true.
78
- */
79
46
  _isValidIndex(index: number): boolean;
80
47
  _handleKeydown(event: KeyboardEvent): void;
81
- /**
82
- * Sets focus on the HTML element for the label wrapper and scrolls it into the view if
83
- * scrolling is enabled.
84
- */
85
48
  _setTabFocus(tabIndex: number): void;
86
- /**
87
- * Moves the tab list such that the desired tab label (marked by index) is moved into view.
88
- *
89
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
90
- * should be called sparingly.
91
- */
92
49
  _scrollToLabel(labelIndex: number): void;
93
- /**
94
- * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
95
- * the end of the list, respectively). The distance to scroll is computed to be a third of the
96
- * length of the tab list view window.
97
- *
98
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
99
- * should be called sparingly.
100
- */
101
50
  _scrollHeader(scrollDir: ScrollDirection): void;
102
- /**
103
- * Callback for when the MutationObserver detects that the content has changed.
104
- */
105
51
  _onContentChanges(): void;
106
- /**
107
- * Updating the view whether pagination should be enabled or not
108
- */
109
52
  _updatePagination(): void;
110
- /**
111
- * Evaluate whether the pagination controls should be displayed. If the scroll width of the
112
- * tab list is wider than the size of the header container, then the pagination controls should
113
- * be shown.
114
- *
115
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
116
- * should be called sparingly.
117
- */
118
53
  _checkPaginationEnabled(): void;
119
- /**
120
- * Evaluate whether the before and after controls should be enabled or disabled.
121
- * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
122
- * before button. If the header is at the end of the list (scroll distance is equal to the
123
- * maximum distance we can scroll), then disable the after button.
124
- *
125
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
126
- * should be called sparingly.
127
- */
128
54
  _checkScrollingControls(): void;
129
- /**
130
- * Determines what is the maximum length in pixels that can be set for the scroll distance. This
131
- * is equal to the difference in width between the tab list container and tab header container.
132
- *
133
- * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
134
- * should be called sparingly.
135
- */
136
55
  _getMaxScrollDistance(): number;
137
- /** Performs the CSS transformation on the tab list that will cause the list to scroll. */
138
56
  _updateTabScrollPosition(): void;
139
- /** Tells the active indicator to align itself to the current label wrapper */
140
57
  _alignActiveIndicatorToSelectedTab(): void;
141
58
  constructor(_changeDetectorRef: ChangeDetectorRef, _viewportRuler: ViewportRuler);
142
59
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderComponent, never>;