@alauda/ui 6.0.4-beta.9 → 6.1.0
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/accordion/accordion-item/accordion-item.component.d.ts +2 -5
- package/accordion/accordion.component.d.ts +1 -0
- package/accordion/accordion.component.scss.ngstyle.d.ts +1 -0
- package/alauda-ui.d.ts +19 -19
- package/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +418 -384
- 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/accordion/accordion-item/accordion-item.component.js +14 -14
- package/esm2015/accordion/accordion-item/accordion-item.component.ngfactory.js +10 -10
- package/esm2015/accordion/accordion-item/accordion-item.component.ngsummary.json +1 -1
- package/esm2015/accordion/accordion-item/accordion-item.component.scss.ngstyle.js +1 -1
- package/esm2015/accordion/accordion.component.js +7 -4
- package/esm2015/accordion/accordion.component.ngfactory.js +9 -8
- package/esm2015/accordion/accordion.component.ngsummary.json +1 -1
- package/esm2015/accordion/accordion.component.scss.ngstyle.js +9 -0
- package/esm2015/accordion/accordion.module.ngfactory.js +1 -1
- package/esm2015/alauda-ui.js +20 -20
- package/esm2015/alauda-ui.ngsummary.json +1 -1
- package/esm2015/date-picker/calendar/header/component.js +3 -3
- package/esm2015/date-picker/calendar/header/component.ngfactory.js +13 -15
- package/esm2015/date-picker/calendar/header/style.scss.ngstyle.js +1 -1
- package/esm2015/date-picker/calendar/panel/picker-panel.js +3 -3
- package/esm2015/date-picker/calendar/panel/picker-panel.ngfactory.js +4 -4
- package/esm2015/date-picker/calendar/panel/picker-panel.style.scss.ngstyle.js +1 -1
- package/esm2015/date-picker/calendar/range-picker-panel/component.js +3 -3
- package/esm2015/date-picker/calendar/range-picker-panel/component.ngfactory.js +3 -3
- package/esm2015/date-picker/calendar/range-picker-panel/style.scss.ngstyle.js +1 -1
- package/esm2015/date-picker/trigger/trigger.component.js +3 -3
- package/esm2015/date-picker/trigger/trigger.component.ngfactory.js +3 -3
- package/esm2015/date-picker/trigger/trigger.style.scss.shim.ngstyle.js +1 -1
- package/esm2015/input/tags-input/tags-input.component.js +1 -1
- package/esm2015/select/multi-select/multi-select.component.js +1 -1
- package/esm2015/table/table-cell.component.js +52 -31
- package/esm2015/table/table-cell.component.ngfactory.js +23 -20
- 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/table/table.module.js +7 -6
- package/esm2015/table/table.module.ngfactory.js +6 -7
- package/esm2015/table/table.module.ngsummary.json +1 -1
- package/esm2015/tabs/tab-group.component.js +6 -5
- package/esm2015/tag/check-tag/check-tag.component.js +1 -1
- package/esm2015/tag/check-tag/check-tag.component.scss.ngstyle.js +1 -1
- package/esm2015/tag/tag.component.js +1 -1
- package/esm2015/tag/tag.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/fesm2015/alauda-ui.js +361 -335
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table-cell.component.d.ts +6 -2
- package/theme/_mixin.scss +51 -0
- package/theme/_pattern.scss +1 -60
- package/theme/_var.scss +6 -4
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { CdkCell } from '@angular/cdk/table';
|
|
2
2
|
import { EventEmitter } from '@angular/core';
|
|
3
|
-
export declare class
|
|
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;
|
package/theme/_pattern.scss
CHANGED
|
@@ -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:
|
|
40
|
+
$table-cell-padding-v: 16px;
|
|
41
41
|
$table-cell-padding-h: 10px;
|
|
42
42
|
|
|
43
43
|
// Sort
|
|
@@ -212,7 +212,6 @@ $tag-large-font-size: $font-size-regular;
|
|
|
212
212
|
$tag-large-padding: 16px - $tag-border-width;
|
|
213
213
|
|
|
214
214
|
$tag-medium-height: $height-small;
|
|
215
|
-
$tag-medium-font-size: $font-size-regular;
|
|
216
215
|
$tag-medium-padding: 12px - $tag-border-width;
|
|
217
216
|
|
|
218
217
|
$tag-small-height: $height-mini;
|
|
@@ -323,5 +322,8 @@ $date-picker-body-size: 216px;
|
|
|
323
322
|
$date-picker-seprator-gap: 20px;
|
|
324
323
|
$date-picker-row-gap: 8px;
|
|
325
324
|
$date-picker-cell-size: 24px;
|
|
326
|
-
$range-picker-body-width:
|
|
327
|
-
$range-picker-
|
|
325
|
+
$range-picker-body-width: 524px;
|
|
326
|
+
$range-picker-panel-spacing: 32px;
|
|
327
|
+
$range-picker-header-width: (
|
|
328
|
+
$range-picker-body-width - $range-picker-panel-spacing
|
|
329
|
+
) / 2;
|