@alauda/ui 8.0.1-beta.2 → 8.0.1-beta.21

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 (307) hide show
  1. package/anchor/anchor.directive.d.ts +2 -2
  2. package/button/button.types.d.ts +3 -0
  3. package/date-picker/calendar/panel/picker-panel.d.ts +1 -1
  4. package/date-picker/calendar/range-picker-panel/component.d.ts +1 -1
  5. package/dialog/dialog-container.component.d.ts +7 -0
  6. package/dialog/dialog-ref.d.ts +2 -4
  7. package/dialog/dialog.service.d.ts +3 -5
  8. package/fesm2022/alauda-ui.mjs +1091 -737
  9. package/fesm2022/alauda-ui.mjs.map +1 -1
  10. package/form/common-form.d.ts +5 -1
  11. package/input/autosize.directive.d.ts +4 -1
  12. package/internal/types/index.d.ts +3 -0
  13. package/message/message.config.d.ts +20 -0
  14. package/notification/notification.component.d.ts +4 -0
  15. package/package.json +2 -9
  16. package/paginator/paginator-intl.d.ts +9 -0
  17. package/radio/base-radio.d.ts +1 -1
  18. package/select/base-select.d.ts +3 -0
  19. package/select/validators.d.ts +1 -1
  20. package/sort/sort-errors.d.ts +4 -0
  21. package/table/table-cell-def.directive.d.ts +4 -0
  22. package/table/table-cell.directive.d.ts +1 -0
  23. package/table/table-column-def.directive.d.ts +4 -0
  24. package/table/table-header-cell-def.directive.d.ts +4 -0
  25. package/table/table-header-cell.directive.d.ts +1 -0
  26. package/table/table-header-row-def.directive.d.ts +4 -0
  27. package/table/table-header-row.component.d.ts +1 -0
  28. package/table/table-row-def.directive.d.ts +5 -0
  29. package/table/table-row.component.d.ts +1 -0
  30. package/table/table-scroll.directive.d.ts +1 -1
  31. package/tabs/tab-body.component.d.ts +16 -0
  32. package/tabs/tab-context.service.d.ts +3 -0
  33. package/tabs/tab-group.component.d.ts +28 -0
  34. package/tabs/tab-header-active-indicator.component.d.ts +9 -0
  35. package/tabs/tab-header.component.d.ts +79 -0
  36. package/tabs/tab.component.d.ts +18 -0
  37. package/tabs/tabs.types.d.ts +3 -0
  38. package/theme/style.css +10 -9
  39. package/tooltip/tooltip-intl.d.ts +3 -0
  40. package/tsconfig.lib.tsbuildinfo +1 -1
  41. package/esm2022/accordion/accordion-item/accordion-item.component.mjs +0 -73
  42. package/esm2022/accordion/accordion.component.mjs +0 -27
  43. package/esm2022/accordion/accordion.module.mjs +0 -54
  44. package/esm2022/accordion/index.mjs +0 -4
  45. package/esm2022/alauda-ui.mjs +0 -2
  46. package/esm2022/anchor/anchor.component.mjs +0 -137
  47. package/esm2022/anchor/anchor.directive.mjs +0 -184
  48. package/esm2022/anchor/anchor.module.mjs +0 -42
  49. package/esm2022/anchor/index.mjs +0 -6
  50. package/esm2022/anchor/types.mjs +0 -2
  51. package/esm2022/anchor/utils.mjs +0 -26
  52. package/esm2022/autocomplete/autocomplete-placeholder.component.mjs +0 -18
  53. package/esm2022/autocomplete/autocomplete.component.mjs +0 -52
  54. package/esm2022/autocomplete/autocomplete.directive.mjs +0 -282
  55. package/esm2022/autocomplete/autocomplete.module.mjs +0 -69
  56. package/esm2022/autocomplete/autocomplete.types.mjs +0 -2
  57. package/esm2022/autocomplete/helper-directives.mjs +0 -18
  58. package/esm2022/autocomplete/index.mjs +0 -9
  59. package/esm2022/autocomplete/suggestion/suggestion.component.mjs +0 -74
  60. package/esm2022/autocomplete/suggestion-group/suggestion-group.component.mjs +0 -23
  61. package/esm2022/back-top/back-top.component.mjs +0 -84
  62. package/esm2022/back-top/back-top.module.mjs +0 -19
  63. package/esm2022/back-top/index.mjs +0 -3
  64. package/esm2022/breadcrumb/breadcrumb-item.component.mjs +0 -32
  65. package/esm2022/breadcrumb/breadcrumb.component.mjs +0 -57
  66. package/esm2022/breadcrumb/breadcrumb.module.mjs +0 -32
  67. package/esm2022/breadcrumb/index.mjs +0 -4
  68. package/esm2022/button/button-group/button-group.component.mjs +0 -11
  69. package/esm2022/button/button.component.mjs +0 -121
  70. package/esm2022/button/button.module.mjs +0 -19
  71. package/esm2022/button/button.types.mjs +0 -11
  72. package/esm2022/button/index.mjs +0 -5
  73. package/esm2022/card/card.component.mjs +0 -16
  74. package/esm2022/card/card.module.mjs +0 -48
  75. package/esm2022/card/helper-directives.mjs +0 -45
  76. package/esm2022/card/index.mjs +0 -5
  77. package/esm2022/card/section.component.mjs +0 -11
  78. package/esm2022/checkbox/checkbox-group/checkbox-group.component.mjs +0 -61
  79. package/esm2022/checkbox/checkbox.component.mjs +0 -112
  80. package/esm2022/checkbox/checkbox.module.mjs +0 -32
  81. package/esm2022/checkbox/index.mjs +0 -4
  82. package/esm2022/color-picker/color-picker.component.mjs +0 -28
  83. package/esm2022/color-picker/color-picker.module.mjs +0 -18
  84. package/esm2022/color-picker/index.mjs +0 -3
  85. package/esm2022/core/animation/animation-consts.mjs +0 -12
  86. package/esm2022/date-picker/calendar/constant.mjs +0 -31
  87. package/esm2022/date-picker/calendar/date-picker-panel/component.mjs +0 -173
  88. package/esm2022/date-picker/calendar/footer/component.mjs +0 -29
  89. package/esm2022/date-picker/calendar/header/component.mjs +0 -136
  90. package/esm2022/date-picker/calendar/panel/picker-panel.mjs +0 -154
  91. package/esm2022/date-picker/calendar/range-picker-panel/component.mjs +0 -218
  92. package/esm2022/date-picker/calendar/util.mjs +0 -145
  93. package/esm2022/date-picker/date-picker/date-picker.component.mjs +0 -100
  94. package/esm2022/date-picker/date-picker.module.mjs +0 -85
  95. package/esm2022/date-picker/date-picker.type.mjs +0 -12
  96. package/esm2022/date-picker/index.mjs +0 -12
  97. package/esm2022/date-picker/range-picker/range-picker.component.mjs +0 -90
  98. package/esm2022/date-picker/trigger/trigger.component.mjs +0 -122
  99. package/esm2022/dialog/confirm-dialog/confirm-dialog-config.mjs +0 -12
  100. package/esm2022/dialog/confirm-dialog/confirm-dialog.component.mjs +0 -95
  101. package/esm2022/dialog/dialog-animations.mjs +0 -57
  102. package/esm2022/dialog/dialog-config.mjs +0 -15
  103. package/esm2022/dialog/dialog-content/dialog-close.directive.mjs +0 -39
  104. package/esm2022/dialog/dialog-content/dialog-content.component.mjs +0 -19
  105. package/esm2022/dialog/dialog-content/dialog-footer.component.mjs +0 -15
  106. package/esm2022/dialog/dialog-content/dialog-header.component.mjs +0 -39
  107. package/esm2022/dialog/dialog-ref.mjs +0 -48
  108. package/esm2022/dialog/dialog.component.mjs +0 -154
  109. package/esm2022/dialog/dialog.module.mjs +0 -72
  110. package/esm2022/dialog/dialog.service.mjs +0 -120
  111. package/esm2022/dialog/dialog.types.mjs +0 -17
  112. package/esm2022/dialog/index.mjs +0 -12
  113. package/esm2022/dialog/utils/errors.mjs +0 -4
  114. package/esm2022/dialog/utils/index.mjs +0 -11
  115. package/esm2022/drawer/component/drawer.component.mjs +0 -88
  116. package/esm2022/drawer/component/internal/internal.component.mjs +0 -184
  117. package/esm2022/drawer/drawer-ref.mjs +0 -28
  118. package/esm2022/drawer/drawer.module.mjs +0 -41
  119. package/esm2022/drawer/drawer.service.mjs +0 -114
  120. package/esm2022/drawer/helper-directives.mjs +0 -36
  121. package/esm2022/drawer/index.mjs +0 -7
  122. package/esm2022/drawer/types.mjs +0 -6
  123. package/esm2022/dropdown/dropdown-active.directive.mjs +0 -22
  124. package/esm2022/dropdown/dropdown-button/dropdown-button.component.mjs +0 -47
  125. package/esm2022/dropdown/dropdown.directive.mjs +0 -53
  126. package/esm2022/dropdown/dropdown.module.mjs +0 -80
  127. package/esm2022/dropdown/dropdown.types.mjs +0 -8
  128. package/esm2022/dropdown/helper-directives.mjs +0 -18
  129. package/esm2022/dropdown/index.mjs +0 -11
  130. package/esm2022/dropdown/menu/menu.component.mjs +0 -19
  131. package/esm2022/dropdown/menu-group/menu-group.component.mjs +0 -11
  132. package/esm2022/dropdown/menu-item/menu-item.component.mjs +0 -37
  133. package/esm2022/dropdown/submenu/submenu.component.mjs +0 -45
  134. package/esm2022/form/common-form.mjs +0 -87
  135. package/esm2022/form/form-item/form-item.component.mjs +0 -108
  136. package/esm2022/form/form.directive.mjs +0 -70
  137. package/esm2022/form/form.module.mjs +0 -58
  138. package/esm2022/form/form.types.mjs +0 -11
  139. package/esm2022/form/helper-directives.mjs +0 -77
  140. package/esm2022/form/index.mjs +0 -7
  141. package/esm2022/i18n/i18n.module.mjs +0 -16
  142. package/esm2022/i18n/i18n.pipe.mjs +0 -22
  143. package/esm2022/i18n/i18n.service.mjs +0 -40
  144. package/esm2022/i18n/i18n.type.mjs +0 -6
  145. package/esm2022/i18n/index.mjs +0 -7
  146. package/esm2022/i18n/language/en.mjs +0 -25
  147. package/esm2022/i18n/language/zh.mjs +0 -25
  148. package/esm2022/icon/icon-register.service.mjs +0 -63
  149. package/esm2022/icon/icon.component.mjs +0 -65
  150. package/esm2022/icon/icon.module.mjs +0 -18
  151. package/esm2022/icon/icons.mjs +0 -2
  152. package/esm2022/icon/index.mjs +0 -4
  153. package/esm2022/icon/utils.mjs +0 -7
  154. package/esm2022/index.mjs +0 -39
  155. package/esm2022/inline-alert/helper-directives.mjs +0 -15
  156. package/esm2022/inline-alert/index.mjs +0 -5
  157. package/esm2022/inline-alert/inline-alert.component.mjs +0 -57
  158. package/esm2022/inline-alert/inline-alert.module.mjs +0 -32
  159. package/esm2022/inline-alert/inline-alert.types.mjs +0 -9
  160. package/esm2022/input/autosize.directive.mjs +0 -55
  161. package/esm2022/input/helper-directives.mjs +0 -47
  162. package/esm2022/input/index.mjs +0 -9
  163. package/esm2022/input/input-group/input-group.component.mjs +0 -46
  164. package/esm2022/input/input.component.mjs +0 -57
  165. package/esm2022/input/input.module.mjs +0 -85
  166. package/esm2022/input/number-input/number-input.component.mjs +0 -130
  167. package/esm2022/input/search/search.component.mjs +0 -89
  168. package/esm2022/input/tags-input/tags-input.component.mjs +0 -255
  169. package/esm2022/input/tags-input/with-max-row-count.mjs +0 -50
  170. package/esm2022/input/utils/index.mjs +0 -67
  171. package/esm2022/internal/types/index.mjs +0 -8
  172. package/esm2022/internal/utils/animations.mjs +0 -2
  173. package/esm2022/internal/utils/async.mjs +0 -6
  174. package/esm2022/internal/utils/bem.mjs +0 -43
  175. package/esm2022/internal/utils/coercion.mjs +0 -5
  176. package/esm2022/internal/utils/fn.mjs +0 -16
  177. package/esm2022/internal/utils/index.mjs +0 -10
  178. package/esm2022/internal/utils/observe-dom.mjs +0 -23
  179. package/esm2022/internal/utils/operators.mjs +0 -15
  180. package/esm2022/internal/utils/scroll-into-view.mjs +0 -17
  181. package/esm2022/internal/utils/styles-renderer.mjs +0 -40
  182. package/esm2022/internal/utils/watch-content-exist.mjs +0 -6
  183. package/esm2022/message/base-message.mjs +0 -90
  184. package/esm2022/message/index.mjs +0 -4
  185. package/esm2022/message/message-animations.mjs +0 -32
  186. package/esm2022/message/message-wrapper.component.mjs +0 -14
  187. package/esm2022/message/message.component.mjs +0 -70
  188. package/esm2022/message/message.config.mjs +0 -16
  189. package/esm2022/message/message.module.mjs +0 -31
  190. package/esm2022/message/message.service.mjs +0 -29
  191. package/esm2022/notification/index.mjs +0 -5
  192. package/esm2022/notification/notification-wrapper.component.mjs +0 -16
  193. package/esm2022/notification/notification.component.mjs +0 -103
  194. package/esm2022/notification/notification.config.mjs +0 -7
  195. package/esm2022/notification/notification.module.mjs +0 -36
  196. package/esm2022/notification/notification.service.mjs +0 -29
  197. package/esm2022/paginator/index.mjs +0 -4
  198. package/esm2022/paginator/paginator-intl.mjs +0 -21
  199. package/esm2022/paginator/paginator.component.mjs +0 -134
  200. package/esm2022/paginator/paginator.module.mjs +0 -37
  201. package/esm2022/radio/base-radio.mjs +0 -67
  202. package/esm2022/radio/index.mjs +0 -6
  203. package/esm2022/radio/radio-button/radio-button.component.mjs +0 -41
  204. package/esm2022/radio/radio-group/radio-group.component.mjs +0 -68
  205. package/esm2022/radio/radio.component.mjs +0 -23
  206. package/esm2022/radio/radio.module.mjs +0 -36
  207. package/esm2022/radio/radio.types.mjs +0 -6
  208. package/esm2022/scrolling/fixed-size-table-virtual-scroll-strategy.mjs +0 -81
  209. package/esm2022/scrolling/fixed-size-table-virtual-scroll.directive.mjs +0 -120
  210. package/esm2022/scrolling/fixed-size-virtual-scroll.directive.mjs +0 -28
  211. package/esm2022/scrolling/index.mjs +0 -7
  212. package/esm2022/scrolling/scrolling.module.mjs +0 -30
  213. package/esm2022/scrolling/virtual-for-of.directive.mjs +0 -35
  214. package/esm2022/scrolling/virtual-scroll-viewport.component.mjs +0 -26
  215. package/esm2022/select/base-select.mjs +0 -327
  216. package/esm2022/select/helper-directives.mjs +0 -67
  217. package/esm2022/select/index.mjs +0 -10
  218. package/esm2022/select/multi-select/multi-select.component.mjs +0 -313
  219. package/esm2022/select/option/option.component.mjs +0 -113
  220. package/esm2022/select/option-group/option-group.component.mjs +0 -23
  221. package/esm2022/select/option-placeholder.component.mjs +0 -18
  222. package/esm2022/select/select.component.mjs +0 -116
  223. package/esm2022/select/select.module.mjs +0 -87
  224. package/esm2022/select/select.types.mjs +0 -7
  225. package/esm2022/select/validators.mjs +0 -79
  226. package/esm2022/shared/click-outside.directive.mjs +0 -29
  227. package/esm2022/shared/shared.module.mjs +0 -16
  228. package/esm2022/sort/index.mjs +0 -6
  229. package/esm2022/sort/sort-errors.mjs +0 -13
  230. package/esm2022/sort/sort-header.component.mjs +0 -68
  231. package/esm2022/sort/sort.directive.mjs +0 -75
  232. package/esm2022/sort/sort.module.mjs +0 -19
  233. package/esm2022/sort/sort.types.mjs +0 -2
  234. package/esm2022/status-bar/index.mjs +0 -4
  235. package/esm2022/status-bar/status-bar.component.mjs +0 -29
  236. package/esm2022/status-bar/status-bar.module.mjs +0 -18
  237. package/esm2022/status-bar/status-bar.types.mjs +0 -13
  238. package/esm2022/steps/index.mjs +0 -4
  239. package/esm2022/steps/steps.component.mjs +0 -173
  240. package/esm2022/steps/steps.module.mjs +0 -18
  241. package/esm2022/steps/types.mjs +0 -7
  242. package/esm2022/switch/index.mjs +0 -3
  243. package/esm2022/switch/switch.component.mjs +0 -46
  244. package/esm2022/switch/switch.module.mjs +0 -17
  245. package/esm2022/table/index.mjs +0 -16
  246. package/esm2022/table/table-cell-def.directive.mjs +0 -26
  247. package/esm2022/table/table-cell.component.mjs +0 -125
  248. package/esm2022/table/table-cell.directive.mjs +0 -29
  249. package/esm2022/table/table-column-def.directive.mjs +0 -32
  250. package/esm2022/table/table-column-resizable.directive.mjs +0 -150
  251. package/esm2022/table/table-header-cell-def.directive.mjs +0 -26
  252. package/esm2022/table/table-header-cell.directive.mjs +0 -25
  253. package/esm2022/table/table-header-row-def.directive.mjs +0 -42
  254. package/esm2022/table/table-header-row.component.mjs +0 -26
  255. package/esm2022/table/table-placeholder.directive.mjs +0 -32
  256. package/esm2022/table/table-row-def.directive.mjs +0 -38
  257. package/esm2022/table/table-row.component.mjs +0 -44
  258. package/esm2022/table/table-scroll.directive.mjs +0 -131
  259. package/esm2022/table/table.component.mjs +0 -83
  260. package/esm2022/table/table.module.mjs +0 -82
  261. package/esm2022/table-of-contents/index.mjs +0 -5
  262. package/esm2022/table-of-contents/table-of-contents.module.mjs +0 -32
  263. package/esm2022/table-of-contents/toc-container.directive.mjs +0 -110
  264. package/esm2022/table-of-contents/toc-content.directive.mjs +0 -36
  265. package/esm2022/table-of-contents/toc-link.directive.mjs +0 -45
  266. package/esm2022/tabs/index.mjs +0 -9
  267. package/esm2022/tabs/tab-body.component.mjs +0 -148
  268. package/esm2022/tabs/tab-context.service.mjs +0 -28
  269. package/esm2022/tabs/tab-group.component.mjs +0 -258
  270. package/esm2022/tabs/tab-header-active-indicator.component.mjs +0 -39
  271. package/esm2022/tabs/tab-header.component.mjs +0 -264
  272. package/esm2022/tabs/tab.component.mjs +0 -65
  273. package/esm2022/tabs/tabs.module.mjs +0 -97
  274. package/esm2022/tabs/tabs.types.mjs +0 -10
  275. package/esm2022/tag/check-tag/check-tag.component.mjs +0 -33
  276. package/esm2022/tag/index.mjs +0 -5
  277. package/esm2022/tag/tag.component.mjs +0 -65
  278. package/esm2022/tag/tag.module.mjs +0 -19
  279. package/esm2022/tag/tag.types.mjs +0 -8
  280. package/esm2022/theme/index.mjs +0 -6
  281. package/esm2022/theme/theme.module.mjs +0 -27
  282. package/esm2022/theme/theme.pipe.mjs +0 -85
  283. package/esm2022/theme/theme.service.mjs +0 -56
  284. package/esm2022/theme/theme.types.mjs +0 -2
  285. package/esm2022/theme/utils.mjs +0 -10
  286. package/esm2022/time-picker/component.mjs +0 -190
  287. package/esm2022/time-picker/constant.mjs +0 -5
  288. package/esm2022/time-picker/index.mjs +0 -6
  289. package/esm2022/time-picker/panel/panel.component.mjs +0 -236
  290. package/esm2022/time-picker/time-picker.module.mjs +0 -64
  291. package/esm2022/time-picker/time-picker.type.mjs +0 -13
  292. package/esm2022/tooltip/animations.mjs +0 -57
  293. package/esm2022/tooltip/base-tooltip.mjs +0 -325
  294. package/esm2022/tooltip/index.mjs +0 -9
  295. package/esm2022/tooltip/tooltip-active.directive.mjs +0 -50
  296. package/esm2022/tooltip/tooltip-copy.directive.mjs +0 -79
  297. package/esm2022/tooltip/tooltip-intl.mjs +0 -18
  298. package/esm2022/tooltip/tooltip.component.mjs +0 -75
  299. package/esm2022/tooltip/tooltip.directive.mjs +0 -48
  300. package/esm2022/tooltip/tooltip.module.mjs +0 -39
  301. package/esm2022/tooltip/tooltip.types.mjs +0 -19
  302. package/esm2022/tooltip/utils/index.mjs +0 -58
  303. package/esm2022/tree-select/index.mjs +0 -5
  304. package/esm2022/tree-select/tree-node-placeholder.component.mjs +0 -18
  305. package/esm2022/tree-select/tree-select.component.mjs +0 -324
  306. package/esm2022/tree-select/tree-select.module.mjs +0 -44
  307. package/esm2022/tree-select/tree-select.types.mjs +0 -2
@@ -2,9 +2,13 @@ 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
+ */
5
9
  export declare class CommonFormControl<V, M = V> implements ControlValueAccessor {
6
10
  protected cdr: ChangeDetectorRef;
7
- get disabled(): boolean | '';
11
+ get disabled(): boolean | "";
8
12
  set disabled(val: boolean | '');
9
13
  get readonly(): boolean;
10
14
  set readonly(val: boolean);
@@ -5,12 +5,15 @@ 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
+ */
8
11
  export declare class AutosizeDirective implements AfterViewInit, OnDestroy {
9
12
  private readonly elRef;
10
13
  private readonly ngControl;
11
14
  private _autoSize;
12
15
  private readonly destroy$$;
13
- get autoSize(): AutoSizeValue | '';
16
+ get autoSize(): AutoSizeValue | "";
14
17
  set autoSize(value: AutoSizeValue | '');
15
18
  constructor(elRef: ElementRef<HTMLTextAreaElement>, ngControl: NgControl);
16
19
  resizeTextarea(): void;
@@ -4,6 +4,9 @@ export declare const ComponentSize: {
4
4
  readonly Medium: "medium";
5
5
  readonly Small: "small";
6
6
  readonly Mini: "mini";
7
+ /**
8
+ * represents default internally, @link https://github.com/angular/vscode-ng-language-service/issues/1147
9
+ */
7
10
  readonly Empty: "";
8
11
  };
9
12
  export type ComponentSize = ValueOf<typeof ComponentSize>;
@@ -5,13 +5,33 @@ 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
+ */
8
13
  export declare class MessageConfig {
14
+ /**
15
+ * the message type
16
+ */
9
17
  type?: MessageType;
18
+ /**
19
+ * The id of this message, The same ID can only have one at the same time
20
+ */
10
21
  id?: number | string;
22
+ /**
23
+ * automatically shut down after a few seconds, if <= 0 ,non automatic closure
24
+ */
11
25
  duration?: number;
26
+ /**
27
+ * message content
28
+ */
12
29
  content?: string;
13
30
  }
14
31
  export interface MessageGlobalConfig {
32
+ /**
33
+ * max instance in one time
34
+ */
15
35
  maxStack: number;
16
36
  duration: number | {
17
37
  [key in MessageType]: number;
@@ -22,6 +22,10 @@ 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
+ */
25
29
  private attachTemplatePortal;
26
30
  private attachComponentRef;
27
31
  private countDown;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "8.0.1-beta.2",
3
+ "version": "8.0.1-beta.21",
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",
@@ -17,12 +17,7 @@
17
17
  "ui"
18
18
  ],
19
19
  "peerDependencies": {
20
- "@angular/animations": ">=18.0.0",
21
- "@angular/cdk": ">=18.0.0",
22
- "@angular/common": ">=18.0.0",
23
- "@angular/core": ">=18.0.0",
24
- "@angular/forms": ">=18.0.0",
25
- "@angular/platform-browser": ">=18.0.0",
20
+ "@angular/cdk": ">=19.0.0",
26
21
  "dayjs": "^1.0.0",
27
22
  "rxjs": "^7.0.0"
28
23
  },
@@ -38,8 +33,6 @@
38
33
  },
39
34
  ".": {
40
35
  "types": "./index.d.ts",
41
- "esm2022": "./esm2022/alauda-ui.mjs",
42
- "esm": "./esm2022/alauda-ui.mjs",
43
36
  "default": "./fesm2022/alauda-ui.mjs"
44
37
  }
45
38
  },
@@ -1,7 +1,16 @@
1
1
  import { Subject } from 'rxjs';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * To modify the labels and text displayed, create a new instance of MatPaginatorIntl and
5
+ * include it in a custom provider
6
+ */
3
7
  export declare class PaginatorIntl {
8
+ /**
9
+ * Stream that emits whenever the labels here are changed. Use this to notify
10
+ * components if the labels have changed after initialization.
11
+ */
4
12
  readonly changes: Subject<void>;
13
+ /** A label for the page size selector. */
5
14
  itemsPerPageLabel: string;
6
15
  jumperLabelPrefix: string;
7
16
  jumperLabelSuffix: string;
@@ -24,5 +24,5 @@ export declare class BaseRadio implements OnInit, AfterViewInit, OnDestroy {
24
24
  onClick(): void;
25
25
  onBlur(): void;
26
26
  static ɵfac: i0.ɵɵFactoryDeclaration<BaseRadio, never>;
27
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRadio, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaseRadio, never, never, { "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
28
28
  }
@@ -37,6 +37,9 @@ export declare abstract class BaseSelect<T, V = T> extends CommonFormControl<V>
37
37
  contentOptions: QueryList<OptionComponent<T>>;
38
38
  isTemplateRef: (label: any) => label is import("@angular/core").TemplateRef<unknown>;
39
39
  isMulti: boolean;
40
+ /**
41
+ * Utility field to make sure the users always see the value as type array
42
+ */
40
43
  abstract readonly values$: Observable<T[]>;
41
44
  allOptions$: Observable<Array<OptionComponent<T>>>;
42
45
  protected focusedOption: OptionComponent<T>;
@@ -8,7 +8,7 @@ export declare class AuiSelectValidators {
8
8
  }
9
9
  export declare class IncludesDirective<T> implements Validator, AfterContentInit {
10
10
  private readonly selectRef;
11
- get includes(): boolean | '';
11
+ get includes(): boolean | "";
12
12
  set includes(val: boolean | '');
13
13
  trackFn: TrackFn<T>;
14
14
  private _includes;
@@ -1,4 +1,8 @@
1
+ /** @docs-private */
1
2
  export declare function getSortDuplicateSortableIdError(id: string): Error;
3
+ /** @docs-private */
2
4
  export declare function getSortHeaderNotContainedWithinSortError(): Error;
5
+ /** @docs-private */
3
6
  export declare function getSortHeaderMissingIdError(): Error;
7
+ /** @docs-private */
4
8
  export declare function getSortInvalidDirectionError(direction: string): Error;
@@ -1,5 +1,9 @@
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
+ */
3
7
  export declare class TableCellDefDirective extends CdkCellDef {
4
8
  static ɵfac: i0.ɵɵFactoryDeclaration<TableCellDefDirective, never>;
5
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<TableCellDefDirective, "[auiTableCellDef]", never, {}, {}, never, never, true, never>;
@@ -1,6 +1,7 @@
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. */
4
5
  export declare class TableCellDirective extends CdkCell {
5
6
  direction: 'column' | 'row';
6
7
  constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
@@ -1,5 +1,9 @@
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
+ */
3
7
  export declare class TableColumnDefDirective extends CdkColumnDef {
4
8
  set auiTableColumnDef(value: string);
5
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnDefDirective, never>;
@@ -1,5 +1,9 @@
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
+ */
3
7
  export declare class TableHeaderCellDefDirective extends CdkHeaderCellDef {
4
8
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCellDefDirective, never>;
5
9
  static ɵdir: i0.ɵɵDirectiveDeclaration<TableHeaderCellDefDirective, "[auiTableHeaderCellDef]", never, {}, {}, never, never, true, never>;
@@ -1,6 +1,7 @@
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. */
4
5
  export declare class TableHeaderCellDirective extends CdkHeaderCell {
5
6
  constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
6
7
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCellDirective, never>;
@@ -1,5 +1,9 @@
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
+ */
3
7
  export declare class TableHeaderRowDefDirective extends CdkHeaderRowDef {
4
8
  columns: Iterable<string>;
5
9
  set auiTableHeaderRowDefSticky(val: boolean);
@@ -1,5 +1,6 @@
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. */
3
4
  export declare class TableHeaderRowComponent extends CdkHeaderRow {
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderRowComponent, never>;
5
6
  static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderRowComponent, "aui-table-header-row", ["auiTableHeaderRow"], {}, {}, never, never, true, never>;
@@ -1,5 +1,10 @@
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
+ */
3
8
  export declare class TableRowDefDirective<T> extends CdkRowDef<T> {
4
9
  columns: Iterable<string>;
5
10
  set auiTableRowDefWhen(v: (index: number, rowData: T) => boolean);
@@ -1,6 +1,7 @@
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. */
4
5
  export declare class TableRowComponent extends CdkRow implements AfterContentInit {
5
6
  private readonly elRef;
6
7
  disabled: boolean;
@@ -14,7 +14,7 @@ export declare class TableScrollableDirective extends CdkScrollable implements A
14
14
  private readonly el;
15
15
  private readonly table;
16
16
  set scrollable(scrollable: boolean | '');
17
- get scrollable(): boolean | '';
17
+ get scrollable(): boolean | "";
18
18
  private _scrollable;
19
19
  scrollable$$: BehaviorSubject<boolean>;
20
20
  destroy$$: Subject<void>;
@@ -5,34 +5,46 @@ 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. */
8
9
  _portalOutlet: CdkPortalOutlet;
10
+ /** The tab body content to display. */
9
11
  get content(): TemplatePortal;
10
12
  set content(content: TemplatePortal);
11
13
  ngOnDestroy(): void;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<TabBodyComponent, never>;
13
15
  static ɵcmp: i0.ɵɵComponentDeclaration<TabBodyComponent, "aui-tab-body", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, true, never>;
14
16
  }
17
+ /** Used to flag tab labels for use with the portal directive */
15
18
  export declare class TabLabelDirective extends CdkPortal {
16
19
  constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
17
20
  static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelDirective, never>;
18
21
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabLabelDirective, "[auiTabLabel]", never, {}, {}, never, never, true, never>;
19
22
  }
23
+ /**
24
+ * Lazy load the embedded template for a tab content.
25
+ */
20
26
  export declare class TabContentDirective {
21
27
  template: TemplateRef<any>;
22
28
  constructor(template: TemplateRef<any>);
23
29
  static ɵfac: i0.ɵɵFactoryDeclaration<TabContentDirective, never>;
24
30
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabContentDirective, "[auiTabContent]", never, {}, {}, never, never, true, never>;
25
31
  }
32
+ /** Used to project additional template from host to the tab header. */
26
33
  export declare class TabHeaderAddonDirective extends CdkPortal {
27
34
  constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
28
35
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderAddonDirective, never>;
29
36
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabHeaderAddonDirective, "[auiTabHeaderAddon]", never, {}, {}, never, never, true, never>;
30
37
  }
38
+ /**
39
+ * Used in the `aui-tab-group` view to display tab labels.
40
+ */
31
41
  export declare class TabLabelWrapperDirective {
32
42
  elementRef: ElementRef<HTMLElement>;
43
+ /** Whether or not the tab is disabled */
33
44
  disabled: boolean;
34
45
  getOffsetLeft(): number;
35
46
  getOffsetWidth(): number;
47
+ /** Sets focus on the wrapper element */
36
48
  focus(): void;
37
49
  constructor(elementRef: ElementRef<HTMLElement>);
38
50
  static ɵfac: i0.ɵɵFactoryDeclaration<TabLabelWrapperDirective, never>;
@@ -44,10 +56,14 @@ export declare class TabTitleDirective extends CdkPortal {
44
56
  static ɵfac: i0.ɵɵFactoryDeclaration<TabTitleDirective, never>;
45
57
  static ɵdir: i0.ɵɵDirectiveDeclaration<TabTitleDirective, "[auiTabTitle]", never, {}, {}, never, never, true, never>;
46
58
  }
59
+ /**
60
+ * The portal host directive for the contents of the tab.
61
+ */
47
62
  export declare class TabBodyPortalDirective extends CdkPortalOutlet implements OnInit, OnDestroy {
48
63
  private readonly _host;
49
64
  private _hostSubscription;
50
65
  constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, _host: TabBodyComponent);
66
+ /** Set initial visibility or set up subscription for changing visibility. */
51
67
  ngOnInit(): void;
52
68
  ngOnDestroy(): void;
53
69
  static ɵfac: i0.ɵɵFactoryDeclaration<TabBodyPortalDirective, never>;
@@ -3,6 +3,9 @@ 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
+ */
6
9
  get isActive(): boolean;
7
10
  set isActive(isActive: boolean);
8
11
  readonly active$: Observable<boolean>;
@@ -6,8 +6,11 @@ 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. */
9
10
  export declare class TabChangeEvent {
11
+ /** Index of the currently-selected tab. */
10
12
  index: number;
13
+ /** Reference to the currently-selected tab. */
11
14
  tab: TabComponent;
12
15
  }
13
16
  export declare class TabGroupComponent implements OnChanges, AfterContentChecked, AfterContentInit, OnDestroy {
@@ -17,17 +20,24 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
17
20
  _headerAddon: TabHeaderAddonDirective;
18
21
  _tabHeader: TabHeaderComponent;
19
22
  _tabTitle: TabTitleDirective;
23
+ /** The tab index that should be selected after the content has been checked. */
20
24
  private _indexToSelect;
25
+ /** Subscription to tabs being added/removed. */
21
26
  private _tabsSubscription;
27
+ /** Subscription to changes in the tab labels. */
22
28
  private _tabLabelSubscription;
23
29
  private _selectedIndex;
24
30
  private _tab;
25
31
  private _type;
26
32
  private _size;
33
+ /** true lazy mode for template ref children */
27
34
  private _lazy;
28
35
  private _previousHeaderAddon;
36
+ /** Emits whenever the type changes */
29
37
  readonly _typeChange: Subject<void>;
38
+ /** Emits whenever the size changes */
30
39
  readonly _sizeChange: Subject<void>;
40
+ /** The index of the active tab. */
31
41
  get selectedIndex(): number;
32
42
  set selectedIndex(value: number);
33
43
  get tab(): string;
@@ -39,25 +49,43 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
39
49
  set size(val: TabSize);
40
50
  get lazy(): boolean;
41
51
  set lazy(lazy: boolean);
52
+ /** Output to enable support for two-way binding on `[(selectedIndex)]` */
42
53
  readonly selectedIndexChange: EventEmitter<number>;
43
54
  readonly tabChange: EventEmitter<string>;
55
+ /** Event emitted when the tab selection has changed. */
44
56
  readonly selectedTabChange: EventEmitter<TabChangeEvent>;
57
+ /** Event emitted when focus has changed within a tab group. */
45
58
  readonly focusChange: EventEmitter<TabChangeEvent>;
46
59
  constructor(_changeDetectorRef: ChangeDetectorRef);
47
60
  activatedTabs: TabComponent[];
48
61
  get activeTab(): TabComponent;
49
62
  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
+ */
50
68
  ngAfterContentChecked(): void;
51
69
  ngAfterContentInit(): void;
52
70
  ngOnDestroy(): void;
71
+ /** Handle click events, setting new selected index if appropriate. */
53
72
  _handleClick(tab: TabComponent, idx: number): void;
54
73
  _focusChanged(index: number): void;
74
+ /** Re-aligns the ink bar to the selected tab element. */
55
75
  realignActiveIndicator(): void;
56
76
  private _changeActivatedTabs;
77
+ /** Clamps the given index to the bounds of 0 and the tabs length. */
57
78
  private _clampTabIndex;
58
79
  private _findIndexByTab;
59
80
  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
+ */
60
87
  private _subscribeToTabLabels;
88
+ /** Retrieves the tabindex for the tab. */
61
89
  _getTabIndex(tab: TabComponent, idx: number): number | null;
62
90
  static ɵfac: i0.ɵɵFactoryDeclaration<TabGroupComponent, never>;
63
91
  static ɵcmp: i0.ɵɵComponentDeclaration<TabGroupComponent, "aui-tab-group", ["auiTabGroup"], { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "tab": { "alias": "tab"; "required": false; }; "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "size": { "alias": "size"; "required": false; }; "lazy": { "alias": "lazy"; "required": false; }; }, { "selectedIndexChange": "selectedIndexChange"; "tabChange": "tabChange"; "selectedTabChange": "selectedTabChange"; "focusChange": "focusChange"; }, ["_headerAddon", "_tabTitle", "_tabs"], never, true, never>;
@@ -8,7 +8,16 @@ 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
+ */
11
16
  alignToElement(element: HTMLElement): void;
17
+ /**
18
+ * Sets the proper styles to the element.
19
+ * @param element
20
+ */
12
21
  private _setStyles;
13
22
  private _getElementPosition;
14
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderActiveIndicatorComponent, never>;
@@ -4,28 +4,47 @@ import { TabHeaderAddonDirective, TabLabelWrapperDirective, TabTitleDirective }
4
4
  import { TabHeaderActiveIndicatorComponent } from './tab-header-active-indicator.component';
5
5
  import { TabSize, TabType } from './tabs.types';
6
6
  import * as i0 from "@angular/core";
7
+ /**
8
+ * The directions that scrolling can go in when the header's tabs exceed the header width. 'After'
9
+ * will scroll the header towards the end of the tabs list and 'before' will scroll towards the
10
+ * beginning of the list.
11
+ */
7
12
  export type ScrollDirection = 'after' | 'before';
8
13
  export declare class TabHeaderComponent implements OnDestroy, AfterContentChecked, AfterContentInit {
9
14
  private readonly _changeDetectorRef;
10
15
  bem: Bem;
11
16
  _showAddon: boolean;
17
+ /** Whether the controls for pagination should be displayed */
12
18
  _showPaginationControls: boolean;
19
+ /** Whether the tab list can be scrolled more towards the end of the tab label list. */
13
20
  _disableScrollAfter: boolean;
21
+ /** Whether the tab list can be scrolled more towards the beginning of the tab label list. */
14
22
  _disableScrollBefore: boolean;
23
+ /** Whether the scroll distance has changed and should be applied after the view is checked. */
15
24
  private _scrollDistanceChanged;
25
+ /** Whether the header should scroll to the selected index after the view has been checked. */
16
26
  private _selectedIndexChanged;
27
+ /** The distance in pixels that the tab labels should be translated to the left. */
17
28
  private _scrollDistance;
18
29
  private _selectedIndex;
30
+ /** Emits when the component is destroyed. */
19
31
  private readonly _destroyed;
32
+ /** Used to manage focus between the tabs. */
20
33
  private _keyManager;
21
34
  type: TabType;
22
35
  size: TabSize;
36
+ /** The index of the active tab. */
23
37
  get selectedIndex(): number;
24
38
  set selectedIndex(value: number);
39
+ /** Event emitted when the option is selected. */
25
40
  readonly selectFocusedIndex: EventEmitter<number>;
41
+ /** Event emitted when a label is focused. */
26
42
  readonly indexFocused: EventEmitter<number>;
27
43
  _headerAddon: TabHeaderAddonDirective;
28
44
  _title: TabTitleDirective;
45
+ /**
46
+ * workaround for @link https://github.com/microsoft/TypeScript/pull/42425
47
+ */
29
48
  _labelWrappers: QueryList<TabLabelWrapperDirective & {
30
49
  disabled?: boolean;
31
50
  }>;
@@ -35,22 +54,82 @@ export declare class TabHeaderComponent implements OnDestroy, AfterContentChecke
35
54
  _activeIndicator: TabHeaderActiveIndicatorComponent;
36
55
  ngOnDestroy(): void;
37
56
  ngAfterContentChecked(): void;
57
+ /**
58
+ * Aligns the ink bar to the selected tab on load.
59
+ */
38
60
  ngAfterContentInit(): void;
61
+ /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
39
62
  get scrollDistance(): number;
40
63
  set scrollDistance(v: number);
64
+ /** Tracks which element has focus; used for keyboard navigation */
41
65
  get focusIndex(): number;
66
+ /** When the focus index is set, we must manually send focus to the correct label */
42
67
  set focusIndex(value: number);
68
+ /**
69
+ * Determines if an index is valid. If the tabs are not ready yet, we assume that the user is
70
+ * providing a valid index and return true.
71
+ */
43
72
  _isValidIndex(index: number): boolean;
44
73
  _handleKeydown(event: KeyboardEvent): void;
74
+ /**
75
+ * Sets focus on the HTML element for the label wrapper and scrolls it into the view if
76
+ * scrolling is enabled.
77
+ */
45
78
  _setTabFocus(tabIndex: number): void;
79
+ /**
80
+ * Moves the tab list such that the desired tab label (marked by index) is moved into view.
81
+ *
82
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
83
+ * should be called sparingly.
84
+ */
46
85
  _scrollToLabel(labelIndex: number): void;
86
+ /**
87
+ * Moves the tab list in the 'before' or 'after' direction (towards the beginning of the list or
88
+ * the end of the list, respectively). The distance to scroll is computed to be a third of the
89
+ * length of the tab list view window.
90
+ *
91
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
92
+ * should be called sparingly.
93
+ */
47
94
  _scrollHeader(scrollDir: ScrollDirection): void;
95
+ /**
96
+ * Callback for when the MutationObserver detects that the content has changed.
97
+ */
48
98
  _onContentChanges(): void;
99
+ /**
100
+ * Updating the view whether pagination should be enabled or not
101
+ */
49
102
  _updatePagination(): void;
103
+ /**
104
+ * Evaluate whether the pagination controls should be displayed. If the scroll width of the
105
+ * tab list is wider than the size of the header container, then the pagination controls should
106
+ * be shown.
107
+ *
108
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
109
+ * should be called sparingly.
110
+ */
50
111
  _checkPaginationEnabled(): void;
112
+ /**
113
+ * Evaluate whether the before and after controls should be enabled or disabled.
114
+ * If the header is at the beginning of the list (scroll distance is equal to 0) then disable the
115
+ * before button. If the header is at the end of the list (scroll distance is equal to the
116
+ * maximum distance we can scroll), then disable the after button.
117
+ *
118
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
119
+ * should be called sparingly.
120
+ */
51
121
  _checkScrollingControls(): void;
122
+ /**
123
+ * Determines what is the maximum length in pixels that can be set for the scroll distance. This
124
+ * is equal to the difference in width between the tab list container and tab header container.
125
+ *
126
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
127
+ * should be called sparingly.
128
+ */
52
129
  _getMaxScrollDistance(): number;
130
+ /** Performs the CSS transformation on the tab list that will cause the list to scroll. */
53
131
  _updateTabScrollPosition(): void;
132
+ /** Tells the active indicator to align itself to the current label wrapper */
54
133
  _alignActiveIndicatorToSelectedTab(): void;
55
134
  constructor(_changeDetectorRef: ChangeDetectorRef);
56
135
  static ɵfac: i0.ɵɵFactoryDeclaration<TabHeaderComponent, never>;
@@ -8,17 +8,35 @@ export declare class TabComponent implements AfterContentInit, OnDestroy, OnChan
8
8
  private readonly _viewContainerRef;
9
9
  readonly tabContext: TabContextService;
10
10
  name: string;
11
+ /** Plain text label for the tab, used when there is no template label. */
11
12
  textLabel: string;
13
+ /** Whether or not to show the close button in the header */
12
14
  closeable: boolean;
15
+ /** Whether or not the tab is disabled */
13
16
  disabled: boolean;
14
17
  close: EventEmitter<void>;
18
+ /** Content for the tab label given by `<ng-template [auiTabLabel]>`. */
15
19
  templateLabel: TabLabelDirective;
20
+ /**
21
+ * Template provided in the tab content that will be used if present, used to enable lazy-loading
22
+ */
16
23
  _explicitContent: TemplateRef<any>;
24
+ /** Template inside the AuiTab view that contains an `<ng-content>`. */
17
25
  _implicitContent: TemplateRef<any>;
18
26
  get content(): TemplatePortal | null;
27
+ /**
28
+ * The relatively indexed position where 0 represents the center, negative is left, and positive
29
+ * represents the right.
30
+ */
19
31
  position: number | null;
32
+ /**
33
+ * The initial relatively index origin of the tab if it was created and selected after there
34
+ * was already a selected tab. Provides context of what position the tab should originate from.
35
+ */
20
36
  origin: number | null;
37
+ /** Emits whenever the internal state of the tab changes. */
21
38
  readonly _stateChanges: Subject<void>;
39
+ /** Portal that will be the hosted content of the tab */
22
40
  private _contentPortal;
23
41
  constructor(_viewContainerRef: ViewContainerRef, tabContext: TabContextService);
24
42
  ngAfterContentInit(): void;
@@ -1,7 +1,10 @@
1
1
  import { ValueOf } from '../internal/types';
2
2
  export declare const TabSize: {
3
+ /** 卡片级尺寸 */
3
4
  readonly Large: "large";
5
+ /** 页面级尺寸 */
4
6
  readonly Medium: "medium";
7
+ /** 小尺寸 */
5
8
  readonly Small: "small";
6
9
  };
7
10
  export type TabSize = ValueOf<typeof TabSize>;