@alauda/ui 6.5.4-beta.30 → 6.5.4-beta.32

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 (62) hide show
  1. package/esm2020/accordion/accordion-item/accordion-item.component.mjs +3 -3
  2. package/esm2020/autocomplete/suggestion/suggestion.component.mjs +2 -2
  3. package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +2 -2
  4. package/esm2020/back-top/back-top.component.mjs +2 -2
  5. package/esm2020/breadcrumb/breadcrumb.component.mjs +2 -2
  6. package/esm2020/button/button.component.mjs +2 -2
  7. package/esm2020/card/card.component.mjs +2 -2
  8. package/esm2020/card/section.component.mjs +2 -2
  9. package/esm2020/checkbox/checkbox.component.mjs +2 -2
  10. package/esm2020/color-picker/color-picker.component.mjs +2 -2
  11. package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +2 -2
  12. package/esm2020/date-picker/calendar/header/component.mjs +2 -2
  13. package/esm2020/date-picker/calendar/panel/picker-panel.mjs +2 -2
  14. package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +2 -2
  15. package/esm2020/date-picker/trigger/trigger.component.mjs +2 -2
  16. package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +2 -2
  17. package/esm2020/dialog/dialog.component.mjs +3 -3
  18. package/esm2020/drawer/component/drawer.component.mjs +2 -2
  19. package/esm2020/form/form-item/form-item.component.mjs +2 -2
  20. package/esm2020/inline-alert/inline-alert.component.mjs +2 -2
  21. package/esm2020/input/input-group/input-group.component.mjs +2 -2
  22. package/esm2020/input/input.component.mjs +2 -2
  23. package/esm2020/input/number-input/number-input.component.mjs +2 -2
  24. package/esm2020/input/tags-input/tags-input.component.mjs +2 -2
  25. package/esm2020/message/message.component.mjs +3 -3
  26. package/esm2020/notification/notification.component.mjs +3 -3
  27. package/esm2020/paginator/paginator.component.mjs +2 -2
  28. package/esm2020/radio/radio-button/radio-button.component.mjs +2 -2
  29. package/esm2020/radio/radio.component.mjs +2 -2
  30. package/esm2020/select/multi-select/multi-select.component.mjs +2 -2
  31. package/esm2020/select/option/option.component.mjs +2 -2
  32. package/esm2020/select/option-group/option-group.component.mjs +2 -2
  33. package/esm2020/steps/steps.component.mjs +2 -2
  34. package/esm2020/table/index.mjs +6 -1
  35. package/esm2020/table/new/table-cell.directive.mjs +30 -0
  36. package/esm2020/table/new/table-header-cell.directive.mjs +26 -0
  37. package/esm2020/table/new/table-header-row.component.mjs +26 -0
  38. package/esm2020/table/new/table-row.component.mjs +44 -0
  39. package/esm2020/table/new/table.component.mjs +79 -0
  40. package/esm2020/table/table.component.mjs +2 -2
  41. package/esm2020/table/table.module.mjs +28 -3
  42. package/esm2020/tabs/tab-header.component.mjs +2 -2
  43. package/esm2020/tag/check-tag/check-tag.component.mjs +2 -2
  44. package/esm2020/tag/tag.component.mjs +2 -2
  45. package/esm2020/time-picker/panel/panel.component.mjs +2 -2
  46. package/esm2020/tooltip/tooltip.component.mjs +2 -2
  47. package/esm2020/tree-select/tree-select.component.mjs +3 -3
  48. package/fesm2015/alauda-ui.mjs +297 -97
  49. package/fesm2015/alauda-ui.mjs.map +1 -1
  50. package/fesm2020/alauda-ui.mjs +297 -97
  51. package/fesm2020/alauda-ui.mjs.map +1 -1
  52. package/package.json +1 -1
  53. package/table/index.d.ts +5 -0
  54. package/table/new/table-cell.directive.d.ts +10 -0
  55. package/table/new/table-header-cell.directive.d.ts +9 -0
  56. package/table/new/table-header-row.component.d.ts +7 -0
  57. package/table/new/table-row.component.d.ts +13 -0
  58. package/table/new/table.component.d.ts +17 -0
  59. package/table/table.module.d.ts +18 -13
  60. package/theme/_mixin.scss +3 -4
  61. package/theme/_theme-preset.scss +0 -3
  62. package/theme/style.css +1 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.5.4-beta.30",
3
+ "version": "6.5.4-beta.32",
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",
package/table/index.d.ts CHANGED
@@ -1,3 +1,8 @@
1
+ export * from './new/table.component';
2
+ export * from './new/table-cell.directive';
3
+ export * from './new/table-header-cell.directive';
4
+ export * from './new/table-header-row.component';
5
+ export * from './new/table-row.component';
1
6
  export * from './table.component';
2
7
  export * from './table.module';
3
8
  export * from './table-cell.component';
@@ -0,0 +1,10 @@
1
+ import { CdkCell, CdkColumnDef } from '@angular/cdk/table';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ /** Cell template container that adds the right classes and role. */
5
+ export declare class NewTableCellDirective extends CdkCell {
6
+ direction: 'row' | 'column';
7
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewTableCellDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NewTableCellDirective, "[auiTableCell]", never, { "direction": "direction"; }, {}, never>;
10
+ }
@@ -0,0 +1,9 @@
1
+ import { CdkColumnDef, CdkHeaderCell } from '@angular/cdk/table';
2
+ import { ElementRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ /** Header cell template container that adds the right classes and role. */
5
+ export declare class NewTableHeaderCellDirective extends CdkHeaderCell {
6
+ constructor(columnDef: CdkColumnDef, elementRef: ElementRef<HTMLElement>);
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewTableHeaderCellDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NewTableHeaderCellDirective, "[auiTableHeaderCell]", never, {}, {}, never>;
9
+ }
@@ -0,0 +1,7 @@
1
+ import { CdkHeaderRow } from '@angular/cdk/table';
2
+ import * as i0 from "@angular/core";
3
+ /** Header template container that contains the cell outlet. Adds the right class and role. */
4
+ export declare class NewTableHeaderRowComponent extends CdkHeaderRow {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewTableHeaderRowComponent, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewTableHeaderRowComponent, "tr[auiTableHeaderRow]", ["auiTableHeaderRow"], {}, {}, never, never>;
7
+ }
@@ -0,0 +1,13 @@
1
+ import { CdkRow } from '@angular/cdk/table';
2
+ import { AfterContentInit, ElementRef } from '@angular/core';
3
+ import * as i0 from "@angular/core";
4
+ /** Data row template container that contains the cell outlet. Adds the right class and role. */
5
+ export declare class NewTableRowComponent extends CdkRow implements AfterContentInit {
6
+ private readonly elRef;
7
+ disabled: boolean;
8
+ hasPanel: boolean;
9
+ constructor(elRef: ElementRef<HTMLElement>);
10
+ ngAfterContentInit(): void;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewTableRowComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewTableRowComponent, "tr[auiTableRow]", ["auiTableRow"], { "disabled": "disabled"; }, {}, never, never>;
13
+ }
@@ -0,0 +1,17 @@
1
+ import { CdkTable } from '@angular/cdk/table';
2
+ import { AfterContentInit, OnDestroy } from '@angular/core';
3
+ import { TablePlaceholderDefDirective, TablePlaceholderOutletDirective } from '../table-placeholder.directive';
4
+ import * as i0 from "@angular/core";
5
+ export declare class NewTableComponent<T> extends CdkTable<T> implements AfterContentInit, OnDestroy {
6
+ enableScrollWrapper: boolean;
7
+ _placeholderOutlet: TablePlaceholderOutletDirective;
8
+ _placeholderDef: TablePlaceholderDefDirective;
9
+ protected get stickyCssClass(): string;
10
+ protected set stickyCssClass(_: string);
11
+ ngAfterContentInit(): void;
12
+ private _createPlaceholder;
13
+ private _clearPlaceholder;
14
+ ngOnDestroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewTableComponent<any>, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewTableComponent<any>, "table[auiTable]", ["auiTable"], { "enableScrollWrapper": "enableScrollWrapper"; }, {}, ["_placeholderDef"], ["caption", "colgroup, col"]>;
17
+ }
@@ -3,20 +3,25 @@ import * as i1 from "./table.component";
3
3
  import * as i2 from "./table-row.component";
4
4
  import * as i3 from "./table-header-row.component";
5
5
  import * as i4 from "./table-cell.component";
6
- import * as i5 from "./table-cell.directive";
7
- import * as i6 from "./table-cell-def.directive";
8
- import * as i7 from "./table-header-cell.directive";
9
- import * as i8 from "./table-row-def.directive";
10
- import * as i9 from "./table-header-row-def.directive";
11
- import * as i10 from "./table-header-cell-def.directive";
12
- import * as i11 from "./table-column-def.directive";
13
- import * as i12 from "./table-scroll.directive";
14
- import * as i13 from "./table-placeholder.directive";
15
- import * as i14 from "@angular/common";
16
- import * as i15 from "../icon/icon.module";
17
- import * as i16 from "@angular/cdk/table";
6
+ import * as i5 from "./new/table.component";
7
+ import * as i6 from "./new/table-header-row.component";
8
+ import * as i7 from "./new/table-row.component";
9
+ import * as i8 from "./table-cell.directive";
10
+ import * as i9 from "./table-cell-def.directive";
11
+ import * as i10 from "./table-header-cell.directive";
12
+ import * as i11 from "./table-row-def.directive";
13
+ import * as i12 from "./table-header-row-def.directive";
14
+ import * as i13 from "./table-header-cell-def.directive";
15
+ import * as i14 from "./table-column-def.directive";
16
+ import * as i15 from "./table-scroll.directive";
17
+ import * as i16 from "./table-placeholder.directive";
18
+ import * as i17 from "./new/table-cell.directive";
19
+ import * as i18 from "./new/table-header-cell.directive";
20
+ import * as i19 from "@angular/common";
21
+ import * as i20 from "../icon/icon.module";
22
+ import * as i21 from "@angular/cdk/table";
18
23
  export declare class TableModule {
19
24
  static ɵfac: i0.ɵɵFactoryDeclaration<TableModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.TableRowComponent, typeof i3.TableHeaderRowComponent, typeof i4.TableExpandButtonCellComponent, typeof i4.TableExpandPanelCellComponent, typeof i5.TableCellDirective, typeof i6.TableCellDefDirective, typeof i7.TableHeaderCellDirective, typeof i8.TableRowDefDirective, typeof i9.TableHeaderRowDefDirective, typeof i10.TableHeaderCellDefDirective, typeof i11.TableColumnDefDirective, typeof i12.TableScrollableDirective, typeof i13.TablePlaceholderOutletDirective, typeof i13.TablePlaceholderDefDirective, typeof i12.TableScrollWrapperDirective], [typeof i14.CommonModule, typeof i15.IconModule, typeof i16.CdkTableModule], [typeof i1.TableComponent, typeof i2.TableRowComponent, typeof i3.TableHeaderRowComponent, typeof i4.TableExpandButtonCellComponent, typeof i4.TableExpandPanelCellComponent, typeof i5.TableCellDirective, typeof i6.TableCellDefDirective, typeof i7.TableHeaderCellDirective, typeof i8.TableRowDefDirective, typeof i9.TableHeaderRowDefDirective, typeof i10.TableHeaderCellDefDirective, typeof i11.TableColumnDefDirective, typeof i12.TableScrollableDirective, typeof i13.TablePlaceholderOutletDirective, typeof i13.TablePlaceholderDefDirective, typeof i12.TableScrollWrapperDirective]>;
25
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TableModule, [typeof i1.TableComponent, typeof i2.TableRowComponent, typeof i3.TableHeaderRowComponent, typeof i4.TableExpandButtonCellComponent, typeof i4.TableExpandPanelCellComponent, typeof i5.NewTableComponent, typeof i6.NewTableHeaderRowComponent, typeof i7.NewTableRowComponent, typeof i8.TableCellDirective, typeof i9.TableCellDefDirective, typeof i10.TableHeaderCellDirective, typeof i11.TableRowDefDirective, typeof i12.TableHeaderRowDefDirective, typeof i13.TableHeaderCellDefDirective, typeof i14.TableColumnDefDirective, typeof i15.TableScrollableDirective, typeof i16.TablePlaceholderOutletDirective, typeof i16.TablePlaceholderDefDirective, typeof i15.TableScrollWrapperDirective, typeof i17.NewTableCellDirective, typeof i18.NewTableHeaderCellDirective], [typeof i19.CommonModule, typeof i20.IconModule, typeof i21.CdkTableModule], [typeof i1.TableComponent, typeof i2.TableRowComponent, typeof i3.TableHeaderRowComponent, typeof i4.TableExpandButtonCellComponent, typeof i4.TableExpandPanelCellComponent, typeof i5.NewTableComponent, typeof i6.NewTableHeaderRowComponent, typeof i7.NewTableRowComponent, typeof i8.TableCellDirective, typeof i9.TableCellDefDirective, typeof i10.TableHeaderCellDirective, typeof i11.TableRowDefDirective, typeof i12.TableHeaderRowDefDirective, typeof i13.TableHeaderCellDefDirective, typeof i14.TableColumnDefDirective, typeof i15.TableScrollableDirective, typeof i16.TablePlaceholderOutletDirective, typeof i16.TablePlaceholderDefDirective, typeof i15.TableScrollWrapperDirective, typeof i17.NewTableCellDirective, typeof i18.NewTableHeaderCellDirective]>;
21
26
  static ɵinj: i0.ɵɵInjectorDeclaration<TableModule>;
22
27
  }
package/theme/_mixin.scss CHANGED
@@ -39,10 +39,9 @@
39
39
  }
40
40
  }
41
41
 
42
- @mixin text-set($size: m, $color: none, $weight: normal) {
42
+ @mixin text-set($size: m, $color: none) {
43
43
  font-size: use-var(font-size-#{$size});
44
44
  line-height: use-var(line-height-#{$size});
45
- font-weight: use-var(font-weight-#{$weight});
46
45
  @if $color != none {
47
46
  color: use-text-color($color);
48
47
  }
@@ -235,8 +234,8 @@
235
234
 
236
235
  aui-icon {
237
236
  display: block;
238
- font-size: use-var(icon-size-s);
239
- line-height: use-var(icon-size-s);
237
+ width: use-var(icon-size-m);
238
+ height: use-var(icon-size-m);
240
239
  }
241
240
 
242
241
  &:hover {
@@ -20,7 +20,6 @@
20
20
  --aui-spacing-s: 4px;
21
21
  --aui-spacing-xs: 2px;
22
22
  --aui-font-weight-bold: 500;
23
- --aui-font-weight-bolder: 600;
24
23
  --aui-font-weight-normal: 400;
25
24
  --aui-font-size-xxl: 20px;
26
25
  --aui-font-size-xl: 18px;
@@ -51,7 +50,6 @@
51
50
 
52
51
  @mixin light-mode {
53
52
  color-scheme: light;
54
-
55
53
  --aui-color-blue: #{rgb-string(#007af5)};
56
54
  --aui-color-b-0: #{rgb-string(#0067d0)};
57
55
  --aui-color-b-1: #{rgb-string(#268df6)};
@@ -116,7 +114,6 @@
116
114
 
117
115
  @mixin dark-mode {
118
116
  color-scheme: dark;
119
-
120
117
  --aui-color-blue: #{rgb-string(#3d8eff)};
121
118
  --aui-color-b-0: #{rgb-string(#3674cc)};
122
119
  --aui-color-b-1: #{rgb-string(#6daaff)};
package/theme/style.css CHANGED
@@ -276,7 +276,6 @@ html[aui-theme-mode=dark] {
276
276
  --aui-spacing-s: 4px;
277
277
  --aui-spacing-xs: 2px;
278
278
  --aui-font-weight-bold: 500;
279
- --aui-font-weight-bolder: 600;
280
279
  --aui-font-weight-normal: 400;
281
280
  --aui-font-size-xxl: 20px;
282
281
  --aui-font-size-xl: 18px;
@@ -302,19 +301,12 @@ html[aui-theme-mode=dark] {
302
301
  }
303
302
 
304
303
  body {
305
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Arial, "Microsoft YaHei", sans-serif;
304
+ font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Ubuntu, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
306
305
  font-size: 14px;
307
306
  font-weight: 400;
308
307
  line-height: 1.43;
309
308
  }
310
309
 
311
- input,
312
- textarea,
313
- button {
314
- font-size: var(--aui-font-size-m);
315
- font-weight: var(--aui-font-weight-normal);
316
- }
317
-
318
310
  a {
319
311
  color: rgb(var(--aui-color-primary));
320
312
  text-decoration: none;