@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.
- package/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +22 -20
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/esm2015/autocomplete/autocomplete.component.js +1 -1
- package/esm2015/autocomplete/autocomplete.component.scss.ngstyle.js +1 -1
- package/esm2015/autocomplete/suggestion/suggestion.component.js +1 -1
- package/esm2015/autocomplete/suggestion/suggestion.component.scss.ngstyle.js +1 -1
- package/esm2015/autocomplete/suggestion-group/suggestion-group.component.js +1 -1
- package/esm2015/autocomplete/suggestion-group/suggestion-group.component.scss.ngstyle.js +1 -1
- package/esm2015/checkbox/checkbox.component.js +1 -1
- package/esm2015/checkbox/checkbox.component.scss.ngstyle.js +1 -1
- package/esm2015/dropdown/dropdown-button/dropdown-button.component.js +1 -1
- package/esm2015/dropdown/dropdown-button/dropdown-button.component.scss.ngstyle.js +1 -1
- package/esm2015/input/search/search.component.js +1 -1
- package/esm2015/input/search/search.component.scss.ngstyle.js +1 -1
- package/esm2015/radio/radio-button/radio-button.component.js +1 -1
- package/esm2015/radio/radio-button/radio-button.component.scss.ngstyle.js +1 -1
- package/esm2015/radio/radio.component.js +1 -1
- package/esm2015/radio/radio.component.scss.ngstyle.js +1 -1
- package/esm2015/select/multi-select/multi-select.component.js +1 -1
- package/esm2015/select/multi-select/multi-select.component.scss.ngstyle.js +1 -1
- package/esm2015/select/option/option.component.js +1 -1
- package/esm2015/select/option/option.component.scss.ngstyle.js +1 -1
- package/esm2015/select/option-group/option-group.component.js +5 -7
- package/esm2015/select/option-group/option-group.component.ngfactory.js +3 -3
- package/esm2015/select/option-group/option-group.component.ngsummary.json +1 -1
- package/esm2015/select/option-group/option-group.component.scss.ngstyle.js +1 -1
- package/esm2015/select/select.component.js +1 -1
- package/esm2015/select/select.component.scss.ngstyle.js +1 -1
- package/esm2015/select/select.module.ngfactory.js +1 -1
- package/esm2015/table/table-cell.component.js +6 -1
- package/esm2015/table/table-cell.component.ngfactory.js +4 -4
- package/esm2015/table/table-cell.component.ngsummary.json +1 -1
- package/esm2015/table/table-scroll.scss.ngstyle.js +1 -1
- package/esm2015/table/table.component.js +1 -1
- package/esm2015/table/table.component.scss.ngstyle.js +1 -1
- package/esm2015/time-picker/panel/panel.component.js +1 -1
- package/esm2015/time-picker/panel/panel.style.scss.ngstyle.js +1 -1
- package/esm2015/tree-select/tree-node/tree-node.component.js +1 -1
- package/esm2015/tree-select/tree-node/tree-node.component.scss.ngstyle.js +1 -1
- package/esm2015/tree-select/tree-select.component.js +1 -1
- package/esm2015/tree-select/tree-select.component.scss.ngstyle.js +1 -1
- package/fesm2015/alauda-ui.js +23 -19
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/select/option-group/option-group.component.d.ts +0 -2
- package/table/table-cell.component.d.ts +1 -0
- package/theme/_base-var.scss +0 -4
- package/theme/_pattern.scss +55 -82
- package/theme/_var.scss +5 -14
- package/theme/style.css +0 -12
package/package.json
CHANGED
|
@@ -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;
|
package/theme/_base-var.scss
CHANGED
package/theme/_pattern.scss
CHANGED
|
@@ -1,74 +1,27 @@
|
|
|
1
|
-
@import 'var
|
|
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:
|
|
28
|
-
background-color:
|
|
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:
|
|
33
|
-
background-color:
|
|
34
|
-
box-shadow: 0 0 2px 0 rgba(
|
|
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:
|
|
39
|
-
background-color:
|
|
40
|
-
box-shadow: 0 2px 8px 0 rgba(
|
|
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:
|
|
45
|
-
background-color:
|
|
46
|
-
box-shadow: 0 4px 16px 0 rgba(
|
|
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
|
|
87
|
-
#{$
|
|
88
|
-
|
|
89
|
-
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
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(
|
|
135
|
-
height: get-size(
|
|
100
|
+
width: get-size(icon-size-m);
|
|
101
|
+
height: get-size(icon-size-m);
|
|
102
|
+
|
|
136
103
|
&.collapsed {
|
|
137
|
-
background-color: get-
|
|
138
|
-
border-color: get-
|
|
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-
|
|
39
|
-
$table-
|
|
40
|
-
$table-cell-
|
|
41
|
-
$table-
|
|
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-
|
|
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);
|