@alauda/ui 6.0.4-beta.18 → 6.0.4-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 (35) hide show
  1. package/accordion/accordion-item/accordion-item.component.d.ts +2 -5
  2. package/accordion/accordion.component.d.ts +1 -0
  3. package/accordion/accordion.component.scss.ngstyle.d.ts +1 -0
  4. package/alauda-ui.d.ts +19 -19
  5. package/alauda-ui.metadata.json +1 -1
  6. package/bundles/alauda-ui.umd.js +399 -366
  7. package/bundles/alauda-ui.umd.js.map +1 -1
  8. package/bundles/alauda-ui.umd.min.js +1 -1
  9. package/bundles/alauda-ui.umd.min.js.map +1 -1
  10. package/esm2015/accordion/accordion-item/accordion-item.component.js +14 -14
  11. package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +10 -10
  12. package/esm2015/accordion/accordion-item/accordion-item.component.ngsummary.json +1 -1
  13. package/esm2015/accordion/accordion-item/accordion-item.component.scss.ngstyle.js +1 -1
  14. package/esm2015/accordion/accordion.component.js +7 -4
  15. package/esm2015/accordion/accordion.component.ngfactory.js +9 -8
  16. package/esm2015/accordion/accordion.component.ngsummary.json +1 -1
  17. package/esm2015/accordion/accordion.component.scss.ngstyle.js +9 -0
  18. package/esm2015/accordion/accordion.module.ngfactory.js +1 -1
  19. package/esm2015/alauda-ui.js +20 -20
  20. package/esm2015/alauda-ui.ngsummary.json +1 -1
  21. package/esm2015/table/table-cell.component.js +52 -31
  22. package/esm2015/table/table-cell.component.ngfactory.js +23 -20
  23. package/esm2015/table/table-cell.component.ngsummary.json +1 -1
  24. package/esm2015/table/table.component.js +1 -1
  25. package/esm2015/table/table.component.scss.ngstyle.js +1 -1
  26. package/esm2015/table/table.module.js +7 -6
  27. package/esm2015/table/table.module.ngfactory.js +6 -7
  28. package/esm2015/table/table.module.ngsummary.json +1 -1
  29. package/fesm2015/alauda-ui.js +343 -318
  30. package/fesm2015/alauda-ui.js.map +1 -1
  31. package/package.json +1 -1
  32. package/table/table-cell.component.d.ts +6 -2
  33. package/theme/_mixin.scss +51 -0
  34. package/theme/_pattern.scss +1 -60
  35. package/theme/_var.scss +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.0.4-beta.18",
3
+ "version": "6.0.4-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",
@@ -1,9 +1,13 @@
1
1
  import { CdkCell } from '@angular/cdk/table';
2
2
  import { EventEmitter } from '@angular/core';
3
- export declare class TableCellComponent extends CdkCell {
3
+ export declare class TableExpandButtonCellComponent extends CdkCell {
4
4
  expand: boolean;
5
5
  disabled: boolean;
6
- template: boolean;
7
6
  expandChange: EventEmitter<any>;
8
7
  get expanded(): string;
9
8
  }
9
+ export declare class TableExpandPanelCellComponent extends CdkCell {
10
+ expand: boolean;
11
+ background: boolean;
12
+ get expanded(): string;
13
+ }
package/theme/_mixin.scss CHANGED
@@ -98,6 +98,57 @@
98
98
  }
99
99
  }
100
100
 
101
+ @mixin expand-button() {
102
+ display: inline-flex;
103
+ justify-content: center;
104
+ align-items: center;
105
+ width: get-size(icon-size-m);
106
+ height: get-size(icon-size-m);
107
+ font-size: get-size(icon-size-m);
108
+ line-height: get-size(icon-size-m);
109
+ color: get-color(primary);
110
+ background-color: get-color(p-6);
111
+ border-radius: 50%;
112
+ border: none;
113
+ cursor: pointer;
114
+ transition: transform 0.1s ease-in-out;
115
+
116
+ aui-icon {
117
+ display: block;
118
+ width: get-size(icon-size-m);
119
+ height: get-size(icon-size-m);
120
+ }
121
+
122
+ &:hover {
123
+ background-color: get-color(p-7);
124
+ }
125
+
126
+ &:active {
127
+ background-color: get-color(p-5);
128
+ }
129
+
130
+ &.isExpanded {
131
+ transform: rotate(90deg);
132
+ color: get-color(n-10);
133
+ background-color: get-color(primary);
134
+
135
+ &:hover {
136
+ background-color: get-color(p-1);
137
+ }
138
+
139
+ &:active {
140
+ background-color: get-color(p-0);
141
+ }
142
+ }
143
+
144
+ &[disabled],
145
+ &.isExpanded[disabled] {
146
+ background-color: get-color(n-8);
147
+ color: get-color(n-6);
148
+ cursor: not-allowed;
149
+ }
150
+ }
151
+
101
152
  @mixin text-overflow {
102
153
  white-space: nowrap;
103
154
  overflow: hidden;
@@ -43,7 +43,7 @@
43
43
  justify-content: center;
44
44
  align-items: center;
45
45
  padding: $table-cell-padding-v $table-cell-padding-h;
46
- min-height: $table-row-min-height;
46
+ min-height: $table-row-min-height + 2px;
47
47
  @include text-set(m, placeholder);
48
48
 
49
49
  background-color: get-color(n-10);
@@ -60,62 +60,3 @@
60
60
  border-top-right-radius: 0;
61
61
  }
62
62
  }
63
-
64
- @mixin table-with-detail($detailColumn: 'detail') {
65
- .aui-table {
66
- &__row {
67
- flex-wrap: wrap;
68
- }
69
-
70
- &__column-#{$detailColumn} {
71
- &.aui-table__header-cell {
72
- display: none;
73
- }
74
-
75
- &.aui-table__cell {
76
- width: 100%;
77
- flex-shrink: 0;
78
- flex-basis: 100%;
79
- padding: 0 $table-cell-padding-h;
80
- overflow: hidden;
81
-
82
- .aui-table__cell-expand-detail {
83
- border-radius: get-size(border-radius-l);
84
- background-color: get-color(n-9);
85
- }
86
- }
87
- }
88
- }
89
- }
90
-
91
- @mixin table-with-expand($expandColumn: 'expand') {
92
- .aui-table {
93
- &__cell,
94
- &__header-cell {
95
- &.aui-table__column-#{$expandColumn} {
96
- display: flex;
97
- align-items: center;
98
- height: $table-row-min-height - 2px;
99
- max-width: calc(#{$table-cell-padding-h} + #{get-size(icon-size-m)});
100
- margin-right: -2px;
101
-
102
- .aui-table__cell-expand-button {
103
- width: get-size(icon-size-m);
104
- height: get-size(icon-size-m);
105
-
106
- &.collapsed {
107
- background-color: get-color(p-6);
108
- border-color: get-color(p-6);
109
- color: get-color(primary);
110
- }
111
-
112
- &[disabled] {
113
- background-color: get-color(n-8);
114
- border-color: get-color(n-8);
115
- color: get-color(n-6);
116
- }
117
- }
118
- }
119
- }
120
- }
121
- }
package/theme/_var.scss CHANGED
@@ -37,7 +37,7 @@ $text-button-mini-font-size: 12px;
37
37
  // Table
38
38
  $table-padding: 12px;
39
39
  $table-row-min-height: 60px;
40
- $table-cell-padding-v: 15px;
40
+ $table-cell-padding-v: 16px;
41
41
  $table-cell-padding-h: 10px;
42
42
 
43
43
  // Sort