@alauda/ui 6.0.2-beta.18 → 6.0.2-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 (53) hide show
  1. package/alauda-ui.metadata.json +1 -1
  2. package/bundles/alauda-ui.umd.js +22 -20
  3. package/bundles/alauda-ui.umd.js.map +1 -1
  4. package/bundles/alauda-ui.umd.min.js +1 -1
  5. package/bundles/alauda-ui.umd.min.js.map +1 -1
  6. package/esm2015/autocomplete/autocomplete.component.js +1 -1
  7. package/esm2015/autocomplete/autocomplete.component.scss.ngstyle.js +1 -1
  8. package/esm2015/autocomplete/suggestion/suggestion.component.js +1 -1
  9. package/esm2015/autocomplete/suggestion/suggestion.component.scss.ngstyle.js +1 -1
  10. package/esm2015/autocomplete/suggestion-group/suggestion-group.component.js +1 -1
  11. package/esm2015/autocomplete/suggestion-group/suggestion-group.component.scss.ngstyle.js +1 -1
  12. package/esm2015/checkbox/checkbox.component.js +1 -1
  13. package/esm2015/checkbox/checkbox.component.scss.ngstyle.js +1 -1
  14. package/esm2015/dropdown/dropdown-button/dropdown-button.component.js +1 -1
  15. package/esm2015/dropdown/dropdown-button/dropdown-button.component.scss.ngstyle.js +1 -1
  16. package/esm2015/input/search/search.component.js +1 -1
  17. package/esm2015/input/search/search.component.scss.ngstyle.js +1 -1
  18. package/esm2015/radio/radio-button/radio-button.component.js +1 -1
  19. package/esm2015/radio/radio-button/radio-button.component.scss.ngstyle.js +1 -1
  20. package/esm2015/radio/radio.component.js +1 -1
  21. package/esm2015/radio/radio.component.scss.ngstyle.js +1 -1
  22. package/esm2015/select/multi-select/multi-select.component.js +1 -1
  23. package/esm2015/select/multi-select/multi-select.component.scss.ngstyle.js +1 -1
  24. package/esm2015/select/option/option.component.js +1 -1
  25. package/esm2015/select/option/option.component.scss.ngstyle.js +1 -1
  26. package/esm2015/select/option-group/option-group.component.js +5 -7
  27. package/esm2015/select/option-group/option-group.component.ngfactory.js +3 -3
  28. package/esm2015/select/option-group/option-group.component.ngsummary.json +1 -1
  29. package/esm2015/select/option-group/option-group.component.scss.ngstyle.js +1 -1
  30. package/esm2015/select/select.component.js +1 -1
  31. package/esm2015/select/select.component.scss.ngstyle.js +1 -1
  32. package/esm2015/select/select.module.ngfactory.js +1 -1
  33. package/esm2015/table/table-cell.component.js +6 -1
  34. package/esm2015/table/table-cell.component.ngfactory.js +4 -4
  35. package/esm2015/table/table-cell.component.ngsummary.json +1 -1
  36. package/esm2015/table/table-scroll.scss.ngstyle.js +1 -1
  37. package/esm2015/table/table.component.js +1 -1
  38. package/esm2015/table/table.component.scss.ngstyle.js +1 -1
  39. package/esm2015/time-picker/panel/panel.component.js +1 -1
  40. package/esm2015/time-picker/panel/panel.style.scss.ngstyle.js +1 -1
  41. package/esm2015/tree-select/tree-node/tree-node.component.js +1 -1
  42. package/esm2015/tree-select/tree-node/tree-node.component.scss.ngstyle.js +1 -1
  43. package/esm2015/tree-select/tree-select.component.js +1 -1
  44. package/esm2015/tree-select/tree-select.component.scss.ngstyle.js +1 -1
  45. package/fesm2015/alauda-ui.js +23 -19
  46. package/fesm2015/alauda-ui.js.map +1 -1
  47. package/package.json +1 -1
  48. package/select/option-group/option-group.component.d.ts +0 -2
  49. package/table/table-cell.component.d.ts +1 -0
  50. package/theme/_base-var.scss +0 -4
  51. package/theme/_pattern.scss +55 -82
  52. package/theme/_var.scss +5 -14
  53. package/theme/style.css +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alauda/ui",
3
- "version": "6.0.2-beta.18",
3
+ "version": "6.0.2-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,10 +1,8 @@
1
1
  import { AfterContentInit, QueryList } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { OptionGroupTitleDirective } from '../helper-directives';
4
3
  import { OptionComponent } from '../option/option.component';
5
4
  export declare class OptionGroupComponent<T> implements AfterContentInit {
6
5
  options: QueryList<OptionComponent<T>>;
7
- groupTitle: OptionGroupTitleDirective;
8
6
  hasVisibleOption$: Observable<boolean>;
9
7
  ngAfterContentInit(): void;
10
8
  }
@@ -2,6 +2,7 @@ import { CdkCell } from '@angular/cdk/table';
2
2
  import { EventEmitter } from '@angular/core';
3
3
  export declare class TableCellComponent extends CdkCell {
4
4
  expand: boolean;
5
+ disabled: boolean;
5
6
  template: boolean;
6
7
  expandChange: EventEmitter<any>;
7
8
  get expanded(): string;
@@ -29,10 +29,6 @@
29
29
  @return rgba(var(--aui-color-#{$name}), $opacity);
30
30
  }
31
31
 
32
- @function get-neg-size($name) {
33
- @return calc(var(--aui-#{$name}) * -1);
34
- }
35
-
36
32
  $divider-line: 1px solid get-color(n-8);
37
33
 
38
34
  /**
@@ -1,74 +1,27 @@
1
- @import 'var.scss';
2
-
3
- @mixin table-card-header {
4
- display: flex;
5
- justify-content: space-between;
6
- align-items: center;
7
- margin-bottom: 12px;
8
- font-size: $font-size-larger;
9
- color: $color-text-main;
10
- }
11
-
12
- @mixin table-placeholder {
13
- padding: calc(#{get-size(spacing-xxl)} - 1px) 0;
14
- text-align: center;
15
- font-size: get-size(font-size-m);
16
- color: get-color(n-4);
17
- background: get-color(n-10);
18
- border: solid 1px get-color(n-8);
19
- border-radius: get-size(border-radius-l);
20
-
21
- aui-icon {
22
- margin-right: get-size(spacing-m);
23
- }
24
- }
1
+ @import 'var';
2
+ @import 'mixin';
25
3
 
26
4
  @mixin shadow-0 {
27
- border-radius: $border-radius;
28
- background-color: $color-white;
5
+ border-radius: get-size(border-radius-m);
6
+ background-color: get-color(n-10);
29
7
  }
30
8
 
31
9
  @mixin shadow-2 {
32
- border-radius: $border-radius;
33
- background-color: $color-white;
34
- box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.24);
10
+ border-radius: get-size(border-radius-m);
11
+ background-color: get-color(n-10);
12
+ box-shadow: 0 0 2px 0 get-rgba(n-1, 0.24);
35
13
  }
36
14
 
37
15
  @mixin shadow-8 {
38
- border-radius: $border-radius;
39
- background-color: $color-white;
40
- box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.16);
16
+ border-radius: get-size(border-radius-m);
17
+ background-color: get-color(n-10);
18
+ box-shadow: 0 2px 8px 0 get-rgba(n-1, 0.16);
41
19
  }
42
20
 
43
21
  @mixin shadow-16 {
44
- border-radius: $border-radius;
45
- background-color: $color-white;
46
- box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.16);
47
- }
48
-
49
- @mixin feat-stage-tag {
50
- display: inline-block;
51
- padding: 0 4px * 1.2;
52
- border-radius: 6px * 1.2;
53
- // stylelint-disable-next-line font-family-no-missing-generic-family-keyword
54
- font-family: Calibri;
55
- font-size: 12px;
56
- font-weight: bold;
57
- font-style: italic;
58
- line-height: 12px * 1.2;
59
- color: #333;
60
- background-color: #ffdf00;
61
- transform: scale(0.8333, 0.8333);
62
- }
63
-
64
- @mixin feat-stage-text {
65
- // stylelint-disable-next-line font-family-no-missing-generic-family-keyword
66
- font-family: Calibri;
67
- font-size: 12px;
68
- font-weight: bold;
69
- font-style: italic;
70
- color: #ffdf00;
71
- transform: scale(0.8333, 0.8333);
22
+ border-radius: get-size(border-radius-m);
23
+ background-color: get-color(n-10);
24
+ box-shadow: 0 4px 16px 0 get-rgba(n-1, 0.16);
72
25
  }
73
26
 
74
27
  @mixin zh-form-label-width($parent) {
@@ -83,29 +36,47 @@
83
36
  }
84
37
  }
85
38
 
86
- @mixin form-width($selector: '.aui-form') {
87
- #{$selector} {
88
- margin: auto;
89
- max-width: 960px;
39
+ @mixin table-placeholder($className) {
40
+ #{$className} {
41
+ box-sizing: border-box;
42
+ display: flex;
43
+ justify-content: center;
44
+ align-items: center;
45
+ padding: $table-cell-padding-v $table-cell-padding-h;
46
+ min-height: $table-row-min-height;
47
+ @include text-set(m, placeholder);
48
+
49
+ background-color: get-color(n-10);
50
+ border: solid 1px get-color(n-8);
51
+ border-radius: get-size(border-radius-l);
52
+ }
53
+
54
+ .aui-table .aui-table__row + #{$className} {
55
+ border-top-left-radius: 0;
56
+ border-top-right-radius: 0;
90
57
  }
91
58
  }
92
59
 
93
- @mixin with-detail($detailColumn: 'detail') {
94
- ::ng-deep .aui-table {
60
+ @mixin table-with-detail($detailColumn: 'detail') {
61
+ .aui-table {
95
62
  &__row {
96
63
  flex-wrap: wrap;
97
64
  }
65
+
98
66
  &__column-#{$detailColumn} {
99
67
  &.aui-table__header-cell {
100
68
  display: none;
101
69
  }
70
+
102
71
  &.aui-table__cell {
103
72
  width: 100%;
104
73
  flex-shrink: 0;
105
74
  flex-basis: 100%;
106
- padding: 0 calc(#{get-size(table-cell-padding-lr)} / 2);
75
+ padding: 0 $table-cell-padding-h;
107
76
  overflow: hidden;
77
+
108
78
  .aui-table__cell-expand-detail {
79
+ border-radius: get-size(border-radius-l);
109
80
  background-color: get-color(n-9);
110
81
  }
111
82
  }
@@ -113,31 +84,33 @@
113
84
  }
114
85
  }
115
86
 
116
- @mixin with-expand($expandColumn: 'expand') {
117
- ::ng-deep .aui-table {
87
+ @mixin table-with-expand($expandColumn: 'expand') {
88
+ .aui-table {
118
89
  &__cell,
119
90
  &__header-cell {
120
91
  &.aui-table__column-#{$expandColumn} {
92
+ display: flex;
93
+ align-items: center;
94
+ height: $table-row-min-height - 2px;
121
95
  max-width: calc(
122
- var(--aui-table-cell-padding-lr) / 2 + var(--aui-font-size-l)
96
+ #{$table-cell-padding-h * 2} + #{get-size(icon-size-m)}
123
97
  );
124
- padding-right: 0;
125
- /* stylelint-disable function-calc-no-unspaced-operator */
126
- line-height: calc(
127
- #{get-size(table-row-min-height-m)} - 2 * #{get-size(
128
- table-cell-padding-tb-m
129
- )}
130
- );
131
- /* stylelint-enable function-calc-no-unspaced-operator */
132
98
 
133
99
  .aui-table__cell-expand-button {
134
- width: get-size(font-size-l);
135
- height: get-size(font-size-l);
100
+ width: get-size(icon-size-m);
101
+ height: get-size(icon-size-m);
102
+
136
103
  &.collapsed {
137
- background-color: get-rgba(primary, 0.1);
138
- border-color: get-rgba(primary, 0.1);
104
+ background-color: get-color(p-6);
105
+ border-color: get-color(p-6);
139
106
  color: get-color(primary);
140
107
  }
108
+
109
+ &[disabled] {
110
+ background-color: get-color(n-8);
111
+ border-color: get-color(n-8);
112
+ color: get-color(n-6);
113
+ }
141
114
  }
142
115
  }
143
116
  }
package/theme/_var.scss CHANGED
@@ -35,18 +35,10 @@ $text-button-mini-height: 16px;
35
35
  $text-button-mini-font-size: 12px;
36
36
 
37
37
  // Table
38
- $table-border-width: 1px;
39
- $table-header-row-height: 42px;
40
- $table-cell-horizontal-padding: 8px;
41
- $table-row-vertical-padding: 12px;
42
-
43
- $table-header-row-bg: #fafafa;
44
- $table-header-row-border-color: #eee;
45
- $table-header-row-color: #333;
46
- $table-row-border-color: #eee;
47
- $table-row-bg: #fff;
48
- $table-row-color: #333;
49
- $table-font-size-base: 14px;
38
+ $table-padding: 12px;
39
+ $table-row-min-height: 60px;
40
+ $table-cell-padding-v: 15px;
41
+ $table-cell-padding-h: 10px;
50
42
 
51
43
  // Sort
52
44
  $sort-indicator-color: #ccc;
@@ -193,8 +185,7 @@ $input-mini-height: $height-mini;
193
185
  $input-mini-font-size: $font-size-small;
194
186
 
195
187
  // Select
196
- $select-width: 100%;
197
- $select-options-padding: $input-padding-hoz;
188
+ $select-options-padding: 8px;
198
189
  $select-options-max-height: $input-medium-height * 8;
199
190
 
200
191
  // Tag
package/theme/style.css CHANGED
@@ -239,18 +239,6 @@ html[aui-color-mode=dark] {
239
239
  --aui-form-item-width-l: 732px;
240
240
  --aui-form-item-width-m: 436px;
241
241
  --aui-form-item-width-s: 140px;
242
- --aui-border-m: 1px;
243
- --aui-table-margin: 12px;
244
- --aui-table-cell-padding-lr: 20px;
245
- --aui-table-cell-padding-tb-s: 11px;
246
- --aui-table-cell-padding-tb-m: 15px;
247
- --aui-table-row-min-height-s: 50px;
248
- --aui-table-row-min-height-m: 58px;
249
- --aui-table-header-cell-padding-tb: 11px;
250
- --aui-table-header-height: 44px;
251
- --aui-table-border-width: 1px;
252
- --aui-select-width: 100%;
253
- --aui-select-options-padding: 8px;
254
242
  --aui-color-primary: var(--aui-color-blue);
255
243
  --aui-color-p-0: var(--aui-color-b-0);
256
244
  --aui-color-p-1: var(--aui-color-b-1);