@alauda/ui 6.0.2-beta.9 → 6.0.3-beta.1

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 (65) hide show
  1. package/alauda-ui.metadata.json +1 -1
  2. package/bundles/alauda-ui.umd.js +33 -32
  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/button/button.component.js +3 -3
  13. package/esm2015/button/button.component.ngfactory.js +2 -2
  14. package/esm2015/button/button.component.scss.ngstyle.js +1 -1
  15. package/esm2015/card/card.component.js +1 -1
  16. package/esm2015/card/card.component.scss.ngstyle.js +1 -1
  17. package/esm2015/checkbox/checkbox.component.js +1 -1
  18. package/esm2015/checkbox/checkbox.component.scss.ngstyle.js +1 -1
  19. package/esm2015/drawer/component/drawer.service.js +6 -7
  20. package/esm2015/dropdown/dropdown-button/dropdown-button.component.js +1 -1
  21. package/esm2015/dropdown/dropdown-button/dropdown-button.component.scss.ngstyle.js +1 -1
  22. package/esm2015/form/form-item/form-item.component.js +1 -1
  23. package/esm2015/form/form-item/form-item.component.scss.ngstyle.js +1 -1
  24. package/esm2015/input/search/search.component.js +1 -1
  25. package/esm2015/input/search/search.component.scss.ngstyle.js +1 -1
  26. package/esm2015/radio/radio-button/radio-button.component.js +1 -1
  27. package/esm2015/radio/radio-button/radio-button.component.scss.ngstyle.js +1 -1
  28. package/esm2015/radio/radio.component.js +1 -1
  29. package/esm2015/radio/radio.component.scss.ngstyle.js +1 -1
  30. package/esm2015/select/multi-select/multi-select.component.js +1 -1
  31. package/esm2015/select/multi-select/multi-select.component.scss.ngstyle.js +1 -1
  32. package/esm2015/select/option/option.component.js +1 -1
  33. package/esm2015/select/option/option.component.scss.ngstyle.js +1 -1
  34. package/esm2015/select/option-group/option-group.component.js +5 -7
  35. package/esm2015/select/option-group/option-group.component.ngfactory.js +3 -3
  36. package/esm2015/select/option-group/option-group.component.ngsummary.json +1 -1
  37. package/esm2015/select/option-group/option-group.component.scss.ngstyle.js +1 -1
  38. package/esm2015/select/select.component.js +1 -1
  39. package/esm2015/select/select.component.scss.ngstyle.js +1 -1
  40. package/esm2015/select/select.module.ngfactory.js +1 -1
  41. package/esm2015/switch/switch.component.js +1 -1
  42. package/esm2015/switch/switch.component.scss.ngstyle.js +1 -1
  43. package/esm2015/table/table-cell.component.js +6 -1
  44. package/esm2015/table/table-cell.component.ngfactory.js +4 -4
  45. package/esm2015/table/table-cell.component.ngsummary.json +1 -1
  46. package/esm2015/table/table-scroll.scss.ngstyle.js +1 -1
  47. package/esm2015/table/table.component.js +1 -1
  48. package/esm2015/table/table.component.scss.ngstyle.js +1 -1
  49. package/esm2015/tabs/tab-header.component.js +1 -1
  50. package/esm2015/tabs/tab-header.component.scss.ngstyle.js +1 -1
  51. package/esm2015/time-picker/panel/panel.component.js +1 -1
  52. package/esm2015/time-picker/panel/panel.style.scss.ngstyle.js +1 -1
  53. package/esm2015/tree-select/tree-node/tree-node.component.js +1 -1
  54. package/esm2015/tree-select/tree-node/tree-node.component.scss.ngstyle.js +1 -1
  55. package/esm2015/tree-select/tree-select.component.js +1 -1
  56. package/esm2015/tree-select/tree-select.component.scss.ngstyle.js +1 -1
  57. package/fesm2015/alauda-ui.js +34 -31
  58. package/fesm2015/alauda-ui.js.map +1 -1
  59. package/package.json +1 -1
  60. package/select/option-group/option-group.component.d.ts +0 -2
  61. package/table/table-cell.component.d.ts +1 -0
  62. package/theme/_base-var.scss +0 -4
  63. package/theme/_pattern.scss +56 -83
  64. package/theme/_var.scss +5 -14
  65. 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.9",
3
+ "version": "6.0.3-beta.1",
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,73 +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-m);
20
- aui-icon {
21
- margin-right: get-size(spacing-m);
22
- }
23
- }
1
+ @import 'var';
2
+ @import 'mixin';
24
3
 
25
4
  @mixin shadow-0 {
26
- border-radius: $border-radius;
27
- background-color: $color-white;
5
+ border-radius: get-size(border-radius-m);
6
+ background-color: get-color(n-10);
28
7
  }
29
8
 
30
9
  @mixin shadow-2 {
31
- border-radius: $border-radius;
32
- background-color: $color-white;
33
- 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);
34
13
  }
35
14
 
36
15
  @mixin shadow-8 {
37
- border-radius: $border-radius;
38
- background-color: $color-white;
39
- 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);
40
19
  }
41
20
 
42
21
  @mixin shadow-16 {
43
- border-radius: $border-radius;
44
- background-color: $color-white;
45
- box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.16);
46
- }
47
-
48
- @mixin feat-stage-tag {
49
- display: inline-block;
50
- padding: 0 4px * 1.2;
51
- border-radius: 6px * 1.2;
52
- // stylelint-disable-next-line font-family-no-missing-generic-family-keyword
53
- font-family: Calibri;
54
- font-size: 12px;
55
- font-weight: bold;
56
- font-style: italic;
57
- line-height: 12px * 1.2;
58
- color: #333;
59
- background-color: #ffdf00;
60
- transform: scale(0.8333, 0.8333);
61
- }
62
-
63
- @mixin feat-stage-text {
64
- // stylelint-disable-next-line font-family-no-missing-generic-family-keyword
65
- font-family: Calibri;
66
- font-size: 12px;
67
- font-weight: bold;
68
- font-style: italic;
69
- color: #ffdf00;
70
- 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);
71
25
  }
72
26
 
73
27
  @mixin zh-form-label-width($parent) {
@@ -82,29 +36,47 @@
82
36
  }
83
37
  }
84
38
 
85
- @mixin form-width($selector: '.aui-form') {
86
- #{$selector} {
87
- margin: auto;
88
- 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;
89
57
  }
90
58
  }
91
59
 
92
- @mixin with-detail($detailColumn: 'detail') {
93
- ::ng-deep .aui-table {
60
+ @mixin table-with-detail($detailColumn: 'detail') {
61
+ .aui-table {
94
62
  &__row {
95
63
  flex-wrap: wrap;
96
64
  }
65
+
97
66
  &__column-#{$detailColumn} {
98
67
  &.aui-table__header-cell {
99
68
  display: none;
100
69
  }
70
+
101
71
  &.aui-table__cell {
102
72
  width: 100%;
103
73
  flex-shrink: 0;
104
74
  flex-basis: 100%;
105
- padding: 0 calc(#{get-size(table-cell-padding-lr)} / 2);
75
+ padding: 0 $table-cell-padding-h;
106
76
  overflow: hidden;
77
+
107
78
  .aui-table__cell-expand-detail {
79
+ border-radius: get-size(border-radius-l);
108
80
  background-color: get-color(n-9);
109
81
  }
110
82
  }
@@ -112,31 +84,32 @@
112
84
  }
113
85
  }
114
86
 
115
- @mixin with-expand($expandColumn: 'expand') {
116
- ::ng-deep .aui-table {
87
+ @mixin table-with-expand($expandColumn: 'expand') {
88
+ .aui-table {
117
89
  &__cell,
118
90
  &__header-cell {
119
91
  &.aui-table__column-#{$expandColumn} {
120
- max-width: calc(
121
- var(--aui-table-cell-padding-lr) / 2 + var(--aui-font-size-l)
122
- );
123
- padding-right: 0;
124
- /* stylelint-disable function-calc-no-unspaced-operator */
125
- line-height: calc(
126
- #{get-size(table-row-min-height-m)} - 2 * #{get-size(
127
- table-cell-padding-tb-m
128
- )}
129
- );
130
- /* stylelint-enable function-calc-no-unspaced-operator */
92
+ display: flex;
93
+ align-items: center;
94
+ height: $table-row-min-height - 2px;
95
+ max-width: calc(#{$table-cell-padding-h} + #{get-size(icon-size-m)});
96
+ margin-right: -2px;
131
97
 
132
98
  .aui-table__cell-expand-button {
133
- width: get-size(font-size-l);
134
- height: get-size(font-size-l);
99
+ width: get-size(icon-size-m);
100
+ height: get-size(icon-size-m);
101
+
135
102
  &.collapsed {
136
- background-color: get-rgba(primary, 0.1);
137
- border-color: get-rgba(primary, 0.1);
103
+ background-color: get-color(p-6);
104
+ border-color: get-color(p-6);
138
105
  color: get-color(primary);
139
106
  }
107
+
108
+ &[disabled] {
109
+ background-color: get-color(n-8);
110
+ border-color: get-color(n-8);
111
+ color: get-color(n-6);
112
+ }
140
113
  }
141
114
  }
142
115
  }
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);