@alauda/ui 6.0.4-beta.2 → 6.0.4-beta.20
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 +442 -382
- 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/card/card.component.js +1 -1
- package/esm2015/card/card.component.scss.ngstyle.js +1 -1
- package/esm2015/date-picker/calendar/date-picker-panel/component.js +1 -1
- package/esm2015/date-picker/calendar/date-picker-panel/style.scss.ngstyle.js +1 -1
- package/esm2015/date-picker/calendar/footer/component.js +1 -1
- package/esm2015/date-picker/calendar/footer/style.scss.ngstyle.js +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/date-picker.module.ngfactory.js +1 -1
- package/esm2015/date-picker/trigger/trigger.component.js +3 -3
- package/esm2015/date-picker/trigger/trigger.component.ngfactory.js +4 -4
- package/esm2015/date-picker/trigger/trigger.style.scss.shim.ngstyle.js +1 -1
- package/esm2015/dialog/confirm-dialog/confirm-dialog.component.js +1 -1
- package/esm2015/dialog/confirm-dialog/confirm-dialog.component.scss.ngstyle.js +1 -1
- package/esm2015/dialog/dialog.component.js +1 -1
- package/esm2015/dialog/dialog.component.scss.ngstyle.js +1 -1
- package/esm2015/input/input.module.ngfactory.js +1 -1
- package/esm2015/input/number-input/number-input.component.js +3 -3
- package/esm2015/input/number-input/number-input.component.ngfactory.js +2 -2
- package/esm2015/input/number-input/number-input.component.scss.ngstyle.js +1 -1
- package/esm2015/input/tags-input/tags-input.component.js +1 -1
- package/esm2015/paginator/paginator.component.js +1 -1
- package/esm2015/paginator/paginator.component.scss.ngstyle.js +1 -1
- package/esm2015/select/multi-select/multi-select.component.js +1 -1
- package/esm2015/steps/steps.component.js +1 -1
- package/esm2015/steps/steps.component.scss.ngstyle.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 +25 -3
- package/esm2015/tabs/tab-group.component.ngfactory.js +1 -1
- package/esm2015/tabs/tab-group.component.ngsummary.json +1 -1
- package/esm2015/tabs/tab.component.js +2 -1
- package/esm2015/tabs/tab.component.ngfactory.js +1 -1
- package/esm2015/tabs/tab.component.ngsummary.json +1 -1
- 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 +392 -344
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table-cell.component.d.ts +6 -2
- package/tabs/tab-group.component.d.ts +6 -1
- package/tabs/tab.component.d.ts +1 -0
- 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
|
+
}
|
|
@@ -25,6 +25,8 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
|
|
|
25
25
|
private _tabsSubscription;
|
|
26
26
|
/** Subscription to changes in the tab labels. */
|
|
27
27
|
private _tabLabelSubscription;
|
|
28
|
+
private _selectedIndex;
|
|
29
|
+
private _tab;
|
|
28
30
|
private _type;
|
|
29
31
|
private _size;
|
|
30
32
|
/** true lazy mode for template ref children */
|
|
@@ -37,7 +39,8 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
|
|
|
37
39
|
/** The index of the active tab. */
|
|
38
40
|
get selectedIndex(): number | null;
|
|
39
41
|
set selectedIndex(value: number | null);
|
|
40
|
-
|
|
42
|
+
get tab(): string;
|
|
43
|
+
set tab(value: string);
|
|
41
44
|
get type(): TabType;
|
|
42
45
|
set type(type: TabType);
|
|
43
46
|
title: string | TemplateRef<unknown>;
|
|
@@ -55,6 +58,7 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
|
|
|
55
58
|
set lazy(lazy: boolean);
|
|
56
59
|
/** Output to enable support for two-way binding on `[(selectedIndex)]` */
|
|
57
60
|
readonly selectedIndexChange: EventEmitter<number>;
|
|
61
|
+
readonly tabChange: EventEmitter<string>;
|
|
58
62
|
/** Event emitted when the tab selection has changed. */
|
|
59
63
|
readonly selectedTabChange: EventEmitter<TabChangeEvent>;
|
|
60
64
|
/** Event emitted when focus has changed within a tab group. */
|
|
@@ -79,6 +83,7 @@ export declare class TabGroupComponent implements OnChanges, AfterContentChecked
|
|
|
79
83
|
private _changeActivatedTabs;
|
|
80
84
|
/** Clamps the given index to the bounds of 0 and the tabs length. */
|
|
81
85
|
private _clampTabIndex;
|
|
86
|
+
private _findIndexByTab;
|
|
82
87
|
private _createChangeEvent;
|
|
83
88
|
/**
|
|
84
89
|
* Subscribes to changes in the tab labels. This is needed, because the @Input for the label is
|
package/tabs/tab.component.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ import { TabLabelDirective } from './tab-directives';
|
|
|
6
6
|
export declare class TabComponent implements AfterContentInit, OnDestroy, OnChanges {
|
|
7
7
|
private readonly _viewContainerRef;
|
|
8
8
|
readonly tabContext: TabContextService;
|
|
9
|
+
name: string;
|
|
9
10
|
/** Plain text label for the tab, used when there is no template label. */
|
|
10
11
|
textLabel: string;
|
|
11
12
|
/** Whether or not to show the close button in the header */
|
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;
|