@alauda/ui 6.3.1-beta.9 → 6.3.2
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/esm2020/accordion/accordion-item/accordion-item.component.mjs +3 -3
- package/esm2020/accordion/accordion.component.mjs +2 -2
- package/esm2020/anchor/anchor.component.mjs +3 -3
- package/esm2020/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2020/autocomplete/suggestion/suggestion.component.mjs +2 -2
- package/esm2020/autocomplete/suggestion-group/suggestion-group.component.mjs +2 -2
- package/esm2020/back-top/back-top.component.mjs +2 -2
- package/esm2020/breadcrumb/breadcrumb-item.component.mjs +2 -2
- package/esm2020/breadcrumb/breadcrumb.component.mjs +2 -2
- package/esm2020/button/button-group/button-group.component.mjs +2 -2
- package/esm2020/button/button.component.mjs +2 -2
- package/esm2020/card/card.component.mjs +2 -2
- package/esm2020/card/section.component.mjs +2 -2
- package/esm2020/checkbox/checkbox.component.mjs +7 -7
- package/esm2020/color-picker/color-picker.component.mjs +2 -2
- package/esm2020/date-picker/calendar/date-picker-panel/component.mjs +2 -2
- package/esm2020/date-picker/calendar/footer/component.mjs +2 -2
- package/esm2020/date-picker/calendar/header/component.mjs +2 -2
- package/esm2020/date-picker/calendar/panel/picker-panel.mjs +2 -2
- package/esm2020/date-picker/calendar/range-picker-panel/component.mjs +2 -2
- package/esm2020/date-picker/calendar/util.mjs +5 -2
- package/esm2020/date-picker/trigger/trigger.component.mjs +2 -2
- package/esm2020/dialog/confirm-dialog/confirm-dialog.component.mjs +2 -2
- package/esm2020/dialog/dialog.component.mjs +2 -2
- package/esm2020/drawer/component/drawer.component.mjs +2 -2
- package/esm2020/dropdown/dropdown-button/dropdown-button.component.mjs +2 -2
- package/esm2020/dropdown/menu/menu.component.mjs +2 -2
- package/esm2020/dropdown/menu-group/menu-group.component.mjs +2 -2
- package/esm2020/dropdown/menu-item/menu-item.component.mjs +2 -2
- package/esm2020/dropdown/submenu/submenu.component.mjs +2 -2
- package/esm2020/form/common-form.mjs +12 -11
- package/esm2020/form/form-item/form-item.component.mjs +2 -2
- package/esm2020/icon/icon.component.mjs +2 -2
- package/esm2020/inline-alert/inline-alert.component.mjs +2 -2
- package/esm2020/input/input-group/input-group.component.mjs +2 -2
- package/esm2020/input/input.component.mjs +2 -2
- package/esm2020/input/number-input/number-input.component.mjs +2 -2
- package/esm2020/input/search/search.component.mjs +2 -2
- package/esm2020/input/tags-input/tags-input.component.mjs +9 -9
- package/esm2020/message/message-wrapper.component.mjs +2 -2
- package/esm2020/message/message.component.mjs +3 -3
- package/esm2020/notification/notification-wrapper.component.mjs +2 -2
- package/esm2020/notification/notification.component.mjs +3 -3
- package/esm2020/paginator/paginator.component.mjs +2 -2
- package/esm2020/radio/radio-button/radio-button.component.mjs +2 -2
- package/esm2020/radio/radio.component.mjs +2 -2
- package/esm2020/select/multi-select/multi-select.component.mjs +28 -23
- package/esm2020/select/option/option.component.mjs +2 -2
- package/esm2020/select/option-group/option-group.component.mjs +2 -2
- package/esm2020/select/select.component.mjs +2 -2
- package/esm2020/sort/sort-header.component.mjs +2 -2
- package/esm2020/status-bar/status-bar.component.mjs +2 -2
- package/esm2020/steps/steps.component.mjs +2 -2
- package/esm2020/switch/switch.component.mjs +2 -2
- package/esm2020/table/table.component.mjs +2 -2
- package/esm2020/tabs/tab-group.component.mjs +2 -2
- package/esm2020/tabs/tab-header.component.mjs +2 -2
- package/esm2020/tag/check-tag/check-tag.component.mjs +2 -2
- package/esm2020/tag/tag.component.mjs +2 -2
- package/esm2020/time-picker/component.mjs +2 -2
- package/esm2020/time-picker/panel/panel.component.mjs +2 -2
- package/esm2020/time-picker/time-picker.type.mjs +3 -3
- package/esm2020/tooltip/tooltip.component.mjs +2 -2
- package/esm2020/tree-select/tree-select.component.mjs +5 -5
- package/fesm2015/alauda-ui.mjs +174 -165
- package/fesm2015/alauda-ui.mjs.map +1 -1
- package/fesm2020/alauda-ui.mjs +174 -165
- package/fesm2020/alauda-ui.mjs.map +1 -1
- package/form/common-form.d.ts +4 -4
- package/input/tags-input/tags-input.component.d.ts +2 -1
- package/package.json +1 -1
- package/select/multi-select/multi-select.component.d.ts +4 -3
- package/theme/_base-var.scss +1 -112
- package/theme/_mixin.scss +5 -5
- package/theme/_var.scss +23 -295
- package/theme/style.css +0 -16
package/form/common-form.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import {
|
|
3
|
+
import { ReplaySubject } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
/**
|
|
6
6
|
* form control 内部不保持 value 属性,当不使用 ngModel 时可以通过 [(value)] 实现双向绑定;
|
|
@@ -20,7 +20,7 @@ export declare class CommonFormControl<V, M = V> implements ControlValueAccessor
|
|
|
20
20
|
private _propValue;
|
|
21
21
|
private _disabled;
|
|
22
22
|
model: M;
|
|
23
|
-
model$:
|
|
23
|
+
model$: ReplaySubject<M>;
|
|
24
24
|
constructor(cdr: ChangeDetectorRef);
|
|
25
25
|
registerOnChange(fn: (_: V) => void): void;
|
|
26
26
|
registerOnTouched(fn: () => void): void;
|
|
@@ -28,8 +28,8 @@ export declare class CommonFormControl<V, M = V> implements ControlValueAccessor
|
|
|
28
28
|
writeValue(value: V): void;
|
|
29
29
|
emitModel(model: M): void;
|
|
30
30
|
emitValue(value: V): void;
|
|
31
|
-
protected valueIn(
|
|
32
|
-
protected modelOut(
|
|
31
|
+
protected valueIn(value: V): M;
|
|
32
|
+
protected modelOut(model: M): V;
|
|
33
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonFormControl<any, any>, never>;
|
|
34
34
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CommonFormControl<any, any>, never, never, { "disabled": "disabled"; "readonly": "readonly"; "propValue": "value"; }, { "valueChange": "valueChange"; }, never>;
|
|
35
35
|
}
|
|
@@ -31,6 +31,7 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
|
|
|
31
31
|
get maxHeight(): string;
|
|
32
32
|
private readonly withMaxRowCount;
|
|
33
33
|
focused: boolean;
|
|
34
|
+
model: string[];
|
|
34
35
|
readonly inputControl: FormControl;
|
|
35
36
|
controlContainer: NgControl;
|
|
36
37
|
get rootClass(): string;
|
|
@@ -39,13 +40,13 @@ export declare class TagsInputComponent extends CommonFormControl<string[]> impl
|
|
|
39
40
|
constructor(cdr: ChangeDetectorRef, fb: FormBuilder, renderer: Renderer2, injector: Injector);
|
|
40
41
|
ngOnChanges({ inputValidator, inputAsyncValidator, disabled, }: SimpleChanges): void;
|
|
41
42
|
ngAfterViewInit(): void;
|
|
42
|
-
protected valueIn(v: string[]): string[];
|
|
43
43
|
onRemove(index: number): void;
|
|
44
44
|
onInput(): void;
|
|
45
45
|
onKeyDown(event: KeyboardEvent): void;
|
|
46
46
|
onInputFocus(): void;
|
|
47
47
|
onInputBlur(event: Event): void;
|
|
48
48
|
trackByValue(_: number, value: string): string;
|
|
49
|
+
protected valueIn(v: string[]): string[];
|
|
49
50
|
private sortByReadonly;
|
|
50
51
|
private pushValue;
|
|
51
52
|
private syncControlStatus;
|
package/package.json
CHANGED
|
@@ -15,8 +15,8 @@ export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]
|
|
|
15
15
|
hasEnabledOptions$: Observable<boolean>;
|
|
16
16
|
private _allowSelectAll;
|
|
17
17
|
isMulti: boolean;
|
|
18
|
-
|
|
19
|
-
values$: import("rxjs").
|
|
18
|
+
model: T[];
|
|
19
|
+
values$: import("rxjs").ReplaySubject<T[]>;
|
|
20
20
|
tagClassFn: TagClassFn<T>;
|
|
21
21
|
maxRowCount: number;
|
|
22
22
|
customRowHeight: number;
|
|
@@ -44,12 +44,13 @@ export declare class MultiSelectComponent<T = unknown> extends BaseSelect<T, T[]
|
|
|
44
44
|
onInputFocus(): void;
|
|
45
45
|
onInputBlur(): void;
|
|
46
46
|
onKeyDown(event: KeyboardEvent): void;
|
|
47
|
-
protected valueIn(v: T[]): T[];
|
|
48
47
|
selectOption(option: OptionComponent<T>): void;
|
|
49
48
|
addValue(value: T): void;
|
|
50
49
|
removeValue(value: T): void;
|
|
51
50
|
clearValue(event: Event): void;
|
|
52
51
|
onSelectAllClick(): void;
|
|
52
|
+
private includes;
|
|
53
|
+
protected valueIn(v: T[]): T[];
|
|
53
54
|
private resetInput;
|
|
54
55
|
private setInputWidth;
|
|
55
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent<any>, never>;
|
package/theme/_base-var.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use
|
|
1
|
+
@use 'sass:string';
|
|
2
2
|
|
|
3
3
|
@function use-var($name) {
|
|
4
4
|
@return var(--aui-#{$name});
|
|
@@ -19,117 +19,6 @@
|
|
|
19
19
|
@return use-rgb(#{$level}-text);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
$divider-line: 1px solid use-rgb(n-8);
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
******************************
|
|
26
|
-
* 以下变量不再推荐使用
|
|
27
|
-
******************************
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
// Colors
|
|
31
|
-
$color-white: #fff;
|
|
32
|
-
$color-black: #000;
|
|
33
|
-
|
|
34
|
-
$color-primary: #007af5;
|
|
35
|
-
$color-success: #00c261;
|
|
36
|
-
$color-warning: #f5a300;
|
|
37
|
-
$color-danger: #eb0027;
|
|
38
|
-
$color-error: $color-danger;
|
|
39
|
-
$color-info: #c8cacd;
|
|
40
|
-
|
|
41
|
-
$status-color-map: (
|
|
42
|
-
success: $color-success,
|
|
43
|
-
error: $color-error,
|
|
44
|
-
warning: $color-warning,
|
|
45
|
-
info: $color-primary,
|
|
46
|
-
);
|
|
47
|
-
|
|
48
|
-
$color-primary-light: mix($color-white, $color-primary, 60%);
|
|
49
|
-
$color-success-light: mix($color-white, $color-success, 60%);
|
|
50
|
-
$color-warning-light: mix($color-white, $color-warning, 60%);
|
|
51
|
-
$color-danger-light: mix($color-white, $color-danger, 60%);
|
|
52
|
-
$color-error-light: $color-danger-light;
|
|
53
|
-
$color-info-light: mix($color-white, $color-info, 60%);
|
|
54
|
-
|
|
55
|
-
$color-primary-lighter: mix($color-white, $color-primary, 70%);
|
|
56
|
-
$color-success-lighter: mix($color-white, $color-success, 70%);
|
|
57
|
-
$color-warning-lighter: mix($color-white, $color-warning, 70%);
|
|
58
|
-
$color-danger-lighter: mix($color-white, $color-danger, 70%);
|
|
59
|
-
$color-error-lighter: $color-danger-lighter;
|
|
60
|
-
$color-info-lighter: mix($color-white, $color-info, 70%);
|
|
61
|
-
|
|
62
|
-
$color-primary-extra-light: mix($color-white, $color-primary, 90%);
|
|
63
|
-
$color-success-extra-light: mix($color-white, $color-success, 90%);
|
|
64
|
-
$color-warning-extra-light: mix($color-white, $color-warning, 90%);
|
|
65
|
-
$color-danger-extra-light: mix($color-white, $color-danger, 90%);
|
|
66
|
-
$color-error-extra-light: $color-danger-extra-light;
|
|
67
|
-
$color-info-extra-light: mix($color-white, $color-info, 90%);
|
|
68
|
-
|
|
69
|
-
$color-primary-ultra-light: mix($color-white, $color-primary, 95%);
|
|
70
|
-
$color-success-ultra-light: mix($color-white, $color-success, 95%);
|
|
71
|
-
$color-warning-ultra-light: mix($color-white, $color-warning, 95%);
|
|
72
|
-
$color-danger-ultra-light: mix($color-white, $color-danger, 95%);
|
|
73
|
-
$color-error-ultra-light: $color-danger-ultra-light;
|
|
74
|
-
$color-info-ultra-light: mix($color-white, $color-info, 95%);
|
|
75
|
-
|
|
76
|
-
$color-primary-dark: mix($color-black, $color-primary, 10%);
|
|
77
|
-
$color-success-dark: mix($color-black, $color-primary, 10%);
|
|
78
|
-
$color-warning-dark: mix($color-black, $color-primary, 10%);
|
|
79
|
-
$color-danger-dark: mix($color-black, $color-primary, 10%);
|
|
80
|
-
$color-error-dark: $color-danger-dark;
|
|
81
|
-
$color-info-dark: mix($color-black, $color-primary, 10%);
|
|
82
|
-
|
|
83
|
-
$color-primary-darker: mix($color-black, $color-primary, 20%);
|
|
84
|
-
$color-success-darker: mix($color-black, $color-primary, 20%);
|
|
85
|
-
$color-warning-darker: mix($color-black, $color-primary, 20%);
|
|
86
|
-
$color-danger-darker: mix($color-black, $color-primary, 20%);
|
|
87
|
-
$color-error-darker: $color-danger-dark;
|
|
88
|
-
$color-info-darker: mix($color-black, $color-primary, 20%);
|
|
89
|
-
|
|
90
|
-
$color-text-main: use-text-color(main);
|
|
91
|
-
$color-text-secondary: use-text-color(secondary);
|
|
92
|
-
$color-text-help: use-text-color(help);
|
|
93
|
-
$color-text-disabled: use-text-color(disabled);
|
|
94
|
-
$color-text-placeholder: use-text-color(placeholder);
|
|
95
|
-
|
|
96
|
-
$color-disabled-bg: use-rgb(n-8);
|
|
97
|
-
|
|
98
|
-
// Font
|
|
99
|
-
$font-size-extra-large: 20px;
|
|
100
|
-
$font-size-larger: 18px;
|
|
101
|
-
$font-size-large: 16px;
|
|
102
|
-
$font-size-regular: 14px;
|
|
103
|
-
$font-size-small: 12px;
|
|
104
|
-
|
|
105
|
-
$font-weight-bold: 500;
|
|
106
|
-
$font-weight-normal: 400;
|
|
107
|
-
|
|
108
|
-
$line-height-extra-large: 28px;
|
|
109
|
-
$line-height-larger: 24px;
|
|
110
|
-
$line-height-large: 22px;
|
|
111
|
-
$line-height-regular: 20px;
|
|
112
|
-
$line-height-small: 16px;
|
|
113
|
-
|
|
114
|
-
// Height
|
|
115
|
-
$height-large: 40px;
|
|
116
|
-
$height-medium: 32px;
|
|
117
|
-
$height-small: 28px;
|
|
118
|
-
$height-mini: 24px;
|
|
119
|
-
|
|
120
|
-
// Border
|
|
121
|
-
$border-radius: 2px;
|
|
122
|
-
$border-width: 1px;
|
|
123
|
-
$border-style: solid;
|
|
124
|
-
$border-style-dashed: dashed;
|
|
125
|
-
|
|
126
|
-
// Outline
|
|
127
|
-
$outline-width: 3px;
|
|
128
|
-
$outline-color-primary: primary;
|
|
129
|
-
$outline-color-success: green;
|
|
130
|
-
$outline-color-warning: yellow;
|
|
131
|
-
$outline-color-error: red;
|
|
132
|
-
|
|
133
22
|
// Animation
|
|
134
23
|
$animation-duration: 0.3s;
|
|
135
24
|
$animation-interpolation: ease;
|
package/theme/_mixin.scss
CHANGED
|
@@ -129,13 +129,13 @@
|
|
|
129
129
|
|
|
130
130
|
@mixin clear-button() {
|
|
131
131
|
border-radius: 50%;
|
|
132
|
-
color:
|
|
132
|
+
color: use-text-color(help);
|
|
133
133
|
cursor: pointer;
|
|
134
134
|
@include transition;
|
|
135
135
|
|
|
136
136
|
&:hover {
|
|
137
|
-
color:
|
|
138
|
-
background-color:
|
|
137
|
+
color: use-rgb(main-bg);
|
|
138
|
+
background-color: use-text-color(help);
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
@@ -245,8 +245,8 @@
|
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
@mixin view-readonly {
|
|
248
|
-
background-color:
|
|
249
|
-
border-color:
|
|
248
|
+
background-color: use-rgb(main-bg);
|
|
249
|
+
border-color: use-rgb(border);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
@mixin vertical-dashed-line($width: 1px, $color: 'n-7') {
|
package/theme/_var.scss
CHANGED
|
@@ -2,163 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
@import 'base-var';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
$button-border-width: $border-width;
|
|
12
|
-
|
|
13
|
-
$button-large-height: $height-large;
|
|
14
|
-
$button-large-font-size: $font-size-large;
|
|
15
|
-
$button-large-padding-hoz: 20px - $button-border-width;
|
|
16
|
-
|
|
17
|
-
$button-medium-height: $height-medium;
|
|
18
|
-
$button-medium-font-size: $font-size-regular;
|
|
19
|
-
$button-medium-padding-hoz: 16px - $button-border-width;
|
|
20
|
-
|
|
21
|
-
$button-small-height: $height-small;
|
|
22
|
-
$button-small-font-size: $font-size-regular;
|
|
23
|
-
$button-small-padding-hoz: 12px - $button-border-width;
|
|
24
|
-
|
|
25
|
-
$button-mini-height: $height-mini;
|
|
26
|
-
$button-mini-font-size: $font-size-small;
|
|
27
|
-
$button-mini-padding-hoz: 8px - $button-border-width;
|
|
28
|
-
|
|
29
|
-
$text-button-padding-hoz: 4px - $button-border-width;
|
|
30
|
-
$text-button-large-height: 24px;
|
|
31
|
-
$text-button-large-font-size: 18px;
|
|
32
|
-
$text-button-medium-height: 22px;
|
|
33
|
-
$text-button-medium-font-size: 16px;
|
|
34
|
-
$text-button-small-height: 20px;
|
|
35
|
-
$text-button-small-font-size: 14px;
|
|
36
|
-
$text-button-mini-height: 16px;
|
|
37
|
-
$text-button-mini-font-size: 12px;
|
|
38
|
-
|
|
39
|
-
// Table
|
|
40
|
-
$table-padding: 12px;
|
|
41
|
-
$table-row-min-height: 58px;
|
|
42
|
-
$table-cell-padding-v: 15px;
|
|
43
|
-
$table-cell-padding-h: 10px;
|
|
44
|
-
|
|
45
|
-
// Sort
|
|
46
|
-
$sort-indicator-color: #ccc;
|
|
47
|
-
$sort-indicator-color-active: #2c2f36;
|
|
48
|
-
$sort-indicator-size: 4px;
|
|
49
|
-
$sort-indicator-margin: 4px;
|
|
50
|
-
|
|
51
|
-
// Code editor
|
|
52
|
-
$code-editor-min-height: 400px;
|
|
53
|
-
$code-editor-border: $border-width $border-style #ddd;
|
|
54
|
-
$code-editor-toolbar-padding: 0 20px;
|
|
55
|
-
$code-editor-toolbar-height: 40px;
|
|
56
|
-
$code-editor-toolbar-icon-size: 16px;
|
|
57
|
-
$code-editor-toolbar-font-size: 14px;
|
|
58
|
-
$code-editor-toolbar-control-margin: 4px;
|
|
59
|
-
$code-editor-toolbar-background: #f7f7f7;
|
|
60
|
-
$code-editor-toolbar-background-dark: #333;
|
|
61
|
-
$code-editor-toolbar-color-dark: #fff;
|
|
62
|
-
$code-editor-toolbar-inactive-opacity: 0.6;
|
|
63
|
-
|
|
64
|
-
// Tooltip
|
|
65
|
-
$tooltip-border-width: $border-width;
|
|
66
|
-
$tooltip-border-radius: $border-radius;
|
|
67
|
-
$tooltip-line-height: $line-height-small;
|
|
68
|
-
$tooltip-font-size: $font-size-small;
|
|
69
|
-
$tooltip-padding-hoz: 16px - $tooltip-border-width;
|
|
70
|
-
$tooltip-padding-ver: 8px - $tooltip-border-width;
|
|
71
|
-
$tooltip-offset: 4px;
|
|
72
|
-
$tooltip-max-width: 416px;
|
|
73
|
-
|
|
74
|
-
$tooltip-default-bg: rgb(0 0 0 / 85%);
|
|
75
|
-
$tooltip-default-border: $tooltip-default-bg;
|
|
76
|
-
$tooltip-default-text: $color-white;
|
|
77
|
-
|
|
78
|
-
$tooltip-primary-border: $color-primary;
|
|
79
|
-
$tooltip-primary-bg: $color-white;
|
|
80
|
-
$tooltip-primary-text: $color-primary;
|
|
81
|
-
|
|
82
|
-
$tooltip-success-border: $color-success;
|
|
83
|
-
$tooltip-success-bg: $color-white;
|
|
84
|
-
$tooltip-success-text: $color-success;
|
|
85
|
-
|
|
86
|
-
$tooltip-warning-border: $color-warning;
|
|
87
|
-
$tooltip-warning-bg: $color-white;
|
|
88
|
-
$tooltip-warning-text: $color-warning;
|
|
89
|
-
|
|
90
|
-
$tooltip-error-border: $color-error;
|
|
91
|
-
$tooltip-error-bg: $color-white;
|
|
92
|
-
$tooltip-error-text: $color-error;
|
|
93
|
-
|
|
94
|
-
$tooltip-info-border: $color-white;
|
|
95
|
-
$tooltip-info-bg: $color-white;
|
|
96
|
-
|
|
97
|
-
// Radio
|
|
98
|
-
$radio-margin: 24px;
|
|
99
|
-
$radio-font-size: $font-size-regular;
|
|
100
|
-
$radio-label-margin: 8px;
|
|
101
|
-
$radio-color: $color-text-main;
|
|
102
|
-
$radio-line-height: $height-medium;
|
|
103
|
-
$radio-pointer-outer-radius: 8px;
|
|
104
|
-
$radio-pointer-inner-radius: 3px;
|
|
105
|
-
|
|
106
|
-
$radio-border-color: $color-text-placeholder;
|
|
107
|
-
$radio-border-color-primary: $color-primary;
|
|
108
|
-
$radio-border-style: $border-style;
|
|
109
|
-
$radio-border-width: $border-width;
|
|
110
|
-
$radio-bg-color-disabled: $color-disabled-bg;
|
|
111
|
-
$radio-outline-color: $outline-color-primary;
|
|
112
|
-
|
|
113
|
-
$radio-button-border-radius: $button-border-radius;
|
|
114
|
-
$radio-button-medium-pointer-size: $font-size-large;
|
|
115
|
-
$radio-button-medium-height: $button-medium-height;
|
|
116
|
-
$radio-button-medium-padding-hoz: $button-medium-padding-hoz;
|
|
117
|
-
$radio-button-small-pointer-size: $font-size-regular;
|
|
118
|
-
$radio-button-small-height: $button-small-height;
|
|
119
|
-
$radio-button-small-padding-hoz: $button-small-padding-hoz;
|
|
120
|
-
$radio-button-mini-height: $button-mini-height;
|
|
121
|
-
$radio-button-mini-padding-hoz: $button-mini-padding-hoz;
|
|
122
|
-
|
|
123
|
-
// Checkbox
|
|
124
|
-
$checkbox-margin: 24px;
|
|
125
|
-
$checkbox-font-size: $font-size-regular;
|
|
126
|
-
$checkbox-label-margin: 8px;
|
|
127
|
-
$checkbox-color: $color-text-main;
|
|
128
|
-
$checkbox-line-height: $height-medium;
|
|
129
|
-
$checkbox-pointer-radius: $border-radius;
|
|
130
|
-
$checkbox-pointer-width: 16px;
|
|
131
|
-
|
|
132
|
-
$checkbox-border-color: $color-text-placeholder;
|
|
133
|
-
$checkbox-border-color-primary: $color-primary;
|
|
134
|
-
$checkbox-border-style: $border-style;
|
|
135
|
-
$checkbox-border-width: $border-width;
|
|
136
|
-
$checkbox-bg-color: $color-white;
|
|
137
|
-
$checkbox-bg-color-disabled: $color-disabled-bg;
|
|
138
|
-
$checkbox-outline-color: $outline-color-primary;
|
|
139
|
-
|
|
140
|
-
$checkbox-tag-bg-color: $color-disabled-bg;
|
|
141
|
-
$checkbox-tag-bg-color-hover: $color-primary-extra-light;
|
|
142
|
-
|
|
143
|
-
$default-border-color: #ccc;
|
|
144
|
-
$disabled-border-color: #ccc;
|
|
145
|
-
$hover-border-color: $color-primary;
|
|
146
|
-
$focus-border-color: #b3d4ff;
|
|
147
|
-
|
|
148
|
-
$checked-bg-color: $color-primary;
|
|
149
|
-
$disabled-bg-color: #f2f2f2;
|
|
150
|
-
$checked-inner-bg-color: #fff;
|
|
151
|
-
|
|
152
|
-
$radio-medium-label-padding: 6px 16px;
|
|
153
|
-
$radio-small-label-padding: 4px 12px;
|
|
154
|
-
|
|
155
|
-
// Toast
|
|
156
|
-
$toast-z-index: 1001;
|
|
157
|
-
$toast-close-color: #e2e2e2;
|
|
158
|
-
$alerts-wrapper-top: 20px;
|
|
159
|
-
$alerts-wrapper-right: 0;
|
|
5
|
+
$status-color-map: (
|
|
6
|
+
success: use-rgb(green),
|
|
7
|
+
warning: use-rgb(yellow),
|
|
8
|
+
error: use-rgb(red),
|
|
9
|
+
info: use-rgb(primary),
|
|
10
|
+
);
|
|
160
11
|
|
|
161
|
-
//
|
|
12
|
+
// input
|
|
162
13
|
$input-size: (
|
|
163
14
|
large: (
|
|
164
15
|
height: use-var(inline-height-l),
|
|
@@ -186,161 +37,38 @@ $input-size: (
|
|
|
186
37
|
),
|
|
187
38
|
);
|
|
188
39
|
|
|
189
|
-
|
|
190
|
-
$
|
|
191
|
-
$
|
|
192
|
-
$
|
|
193
|
-
$
|
|
194
|
-
$input-border-color-error: $color-error;
|
|
195
|
-
$input-color: $color-text-main;
|
|
196
|
-
$input-placeholder-color: $color-text-placeholder;
|
|
197
|
-
$input-bg-color: $color-white;
|
|
198
|
-
$input-bg-color-disabled: $color-disabled-bg;
|
|
199
|
-
$input-prefix-icon-color: $input-placeholder-color;
|
|
200
|
-
$input-suffix-icon-color: $color-text-help;
|
|
201
|
-
$input-padding-hoz: 8px - $input-border-width;
|
|
202
|
-
|
|
203
|
-
$input-large-padding-hoz: 12px - $input-border-width;
|
|
204
|
-
$input-large-height: $height-large;
|
|
205
|
-
$input-large-font-size: $font-size-large;
|
|
206
|
-
$input-medium-padding-hoz: 8px - $input-border-width;
|
|
207
|
-
$input-medium-height: $height-medium;
|
|
208
|
-
$input-medium-font-size: $font-size-regular;
|
|
209
|
-
$input-small-padding-hoz: 8px - $input-border-width;
|
|
210
|
-
$input-small-height: $height-small;
|
|
211
|
-
$input-small-font-size: $font-size-regular;
|
|
212
|
-
$input-mini-padding-hoz: 6px - $input-border-width;
|
|
213
|
-
$input-mini-height: $height-mini;
|
|
214
|
-
$input-mini-font-size: $font-size-small;
|
|
215
|
-
|
|
216
|
-
// Select
|
|
217
|
-
$select-options-padding: 8px;
|
|
218
|
-
$select-options-max-height: $input-medium-height * 8;
|
|
219
|
-
|
|
220
|
-
// Tag
|
|
221
|
-
$tag-border-width: $border-width;
|
|
222
|
-
$tag-border-radius: $border-radius;
|
|
223
|
-
$tag-border-style: $border-style;
|
|
224
|
-
$tag-max-width: 300px;
|
|
225
|
-
$tag-close-margin: 4px;
|
|
226
|
-
|
|
227
|
-
$tag-primary-color: $color-primary;
|
|
228
|
-
$tag-primary-bg-color: $color-primary-extra-light;
|
|
229
|
-
$tag-success-color: $color-success;
|
|
230
|
-
$tag-success-bg-color: $color-success-extra-light;
|
|
231
|
-
$tag-warning-color: $color-warning;
|
|
232
|
-
$tag-warning-bg-color: $color-warning-extra-light;
|
|
233
|
-
$tag-error-color: $color-error;
|
|
234
|
-
$tag-error-bg-color: $color-error-extra-light;
|
|
235
|
-
$tag-info-color: $color-text-secondary;
|
|
236
|
-
$tag-info-border-color: $color-info;
|
|
237
|
-
$tag-info-bg-color: $color-disabled-bg;
|
|
238
|
-
|
|
239
|
-
$tag-large-height: $height-medium;
|
|
240
|
-
$tag-large-font-size: $font-size-regular;
|
|
241
|
-
$tag-large-padding: 16px - $tag-border-width;
|
|
242
|
-
|
|
243
|
-
$tag-medium-height: $height-small;
|
|
244
|
-
$tag-medium-padding: 12px - $tag-border-width;
|
|
245
|
-
|
|
246
|
-
$tag-small-height: $height-mini;
|
|
247
|
-
$tag-small-font-size: $font-size-small;
|
|
248
|
-
$tag-margin: 8px;
|
|
249
|
-
|
|
250
|
-
$tag-mini-height: 20px;
|
|
251
|
-
$tag-mini-margin: 6px;
|
|
252
|
-
$tag-mini-padding: 8px - $tag-border-width;
|
|
253
|
-
$tag-mini-font-size: $font-size-small;
|
|
254
|
-
|
|
255
|
-
// Form
|
|
256
|
-
$form-item-margin-vertical: 16px;
|
|
257
|
-
|
|
258
|
-
// Paginator
|
|
259
|
-
$paginator-page-size-select-width: 64px;
|
|
260
|
-
$paginator-outer-block-margin: 12px;
|
|
261
|
-
$paginator-inner-block-margin: 4px;
|
|
262
|
-
|
|
263
|
-
// Menu
|
|
264
|
-
$menu-max-width: 280px;
|
|
265
|
-
$menu-padding: 8px;
|
|
266
|
-
|
|
267
|
-
$menu-group-title-padding: 4px;
|
|
268
|
-
$menu-group-divide-style: $border-style;
|
|
269
|
-
$menu-group-divide-width: $border-width;
|
|
270
|
-
$menu-group-divide-color: #ededed;
|
|
271
|
-
|
|
272
|
-
$menu-item-padding: 0 12px;
|
|
273
|
-
$menu-item-radius: $border-radius;
|
|
274
|
-
$menu-item-large-height: $height-large;
|
|
275
|
-
$menu-item-large-font-size: $font-size-large;
|
|
276
|
-
$menu-item-medium-height: $height-medium;
|
|
277
|
-
$menu-item-medium-font-size: $font-size-regular;
|
|
278
|
-
$menu-item-small-height: $height-small;
|
|
279
|
-
$menu-item-small-font-size: $font-size-regular;
|
|
280
|
-
$menu-item-mini-height: $height-mini;
|
|
281
|
-
$menu-item-mini-font-size: $font-size-small;
|
|
282
|
-
|
|
283
|
-
$menu-item-primary-color: $color-primary;
|
|
284
|
-
$menu-item-primary-bg: $color-primary-extra-light;
|
|
285
|
-
$menu-item-success-color: $color-success;
|
|
286
|
-
$menu-item-success-bg: $color-success-extra-light;
|
|
287
|
-
$menu-item-warning-color: $color-warning;
|
|
288
|
-
$menu-item-warning-bg: $color-warning-extra-light;
|
|
289
|
-
$menu-item-danger-color: $color-error;
|
|
290
|
-
$menu-item-danger-bg: $color-error-extra-light;
|
|
291
|
-
|
|
292
|
-
// Card
|
|
293
|
-
$card-border-color: #ededed;
|
|
294
|
-
$card-border-style: $border-style;
|
|
295
|
-
$card-border-width: $border-width;
|
|
296
|
-
$card-border-radius: $border-radius;
|
|
297
|
-
|
|
298
|
-
// Section
|
|
299
|
-
$section-border-color: $card-border-color;
|
|
300
|
-
$section-border-style: $border-style-dashed;
|
|
301
|
-
$section-border-width: $border-width;
|
|
40
|
+
// Table
|
|
41
|
+
$table-padding: 12px;
|
|
42
|
+
$table-row-min-height: 58px;
|
|
43
|
+
$table-cell-padding-v: 15px;
|
|
44
|
+
$table-cell-padding-h: 10px;
|
|
302
45
|
|
|
303
|
-
//
|
|
304
|
-
$
|
|
46
|
+
// Sort
|
|
47
|
+
$sort-indicator-color: use-text-color(placeholder);
|
|
48
|
+
$sort-indicator-color-active: use-text-color(main);
|
|
49
|
+
$sort-indicator-size: 4px;
|
|
50
|
+
$sort-indicator-margin: 4px;
|
|
305
51
|
|
|
306
52
|
// Tabs
|
|
307
53
|
$tab-label-content-max-width: 160px;
|
|
308
54
|
$tab-label-padding-large: 16px 20px;
|
|
309
55
|
$tab-label-padding-medium: 12px 20px;
|
|
310
56
|
$tab-label-padding-small: 8px 16px;
|
|
311
|
-
$tab-label-font-size-large:
|
|
312
|
-
$tab-label-font-size-medium:
|
|
313
|
-
$tab-label-font-size-small:
|
|
314
|
-
$tab-border: $border-width $border-style #ededed;
|
|
57
|
+
$tab-label-font-size-large: use-var(font-size-xl);
|
|
58
|
+
$tab-label-font-size-medium: use-var(font-size-l);
|
|
59
|
+
$tab-label-font-size-small: use-var(font-size-m);
|
|
315
60
|
$tab-header-type-card-bg-color: use-rgb(n-9);
|
|
316
61
|
$tab-scroll-transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
317
62
|
$tab-pagination-button-z-index: 3;
|
|
318
63
|
$tab-label-z-index: 2;
|
|
319
64
|
$tab-active-indicator-z-index: 1;
|
|
320
|
-
$tab-label-focus-box-shadow: inset 0 0 0 3px rgba(
|
|
65
|
+
$tab-label-focus-box-shadow: inset 0 0 0 3px use-rgba(primary, 0.3);
|
|
321
66
|
$tab-header-close-icon-size: 16px;
|
|
322
|
-
$tab-header-title-font-size:
|
|
67
|
+
$tab-header-title-font-size: use-var(font-size-xxl);
|
|
323
68
|
$tab-header-title-spacing: 20px;
|
|
324
69
|
$tab-header-title-padding: 20px 0 16px;
|
|
325
70
|
|
|
326
|
-
//
|
|
327
|
-
$status-bar-border-radius: $border-radius;
|
|
328
|
-
$status-bar-medium-height: 16px;
|
|
329
|
-
$status-bar-small-height: 8px;
|
|
330
|
-
$status-bar-pending-color: #ccecfb;
|
|
331
|
-
$status-bar-pending-color-light: #e0f5ff;
|
|
332
|
-
$status-bar-pending-gradient-width: 4px;
|
|
333
|
-
|
|
334
|
-
//accordion
|
|
335
|
-
$accordion-item-header-padding: 12px 0;
|
|
336
|
-
$accordion-item-header-color: #666;
|
|
337
|
-
|
|
338
|
-
// timepicker
|
|
339
|
-
$time-picker-icon-size: $font-size-large;
|
|
340
|
-
$time-picker-body-small-width: 278px;
|
|
341
|
-
|
|
342
|
-
// datepicker
|
|
343
|
-
$date-picker-icon-size: $font-size-large;
|
|
71
|
+
// date picker
|
|
344
72
|
$date-picker-body-size: 216px;
|
|
345
73
|
$date-picker-seprator-gap: 20px;
|
|
346
74
|
$date-picker-row-gap: 8px;
|
package/theme/style.css
CHANGED
|
@@ -1,19 +1,3 @@
|
|
|
1
|
-
@charset "UTF-8";
|
|
2
|
-
/**
|
|
3
|
-
******************************
|
|
4
|
-
* 以下变量不再推荐使用
|
|
5
|
-
******************************
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
******************************
|
|
9
|
-
* 以下变量不再推荐使用
|
|
10
|
-
******************************
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
******************************
|
|
14
|
-
* 以下变量不再推荐使用
|
|
15
|
-
******************************
|
|
16
|
-
*/
|
|
17
1
|
:root {
|
|
18
2
|
color-scheme: light;
|
|
19
3
|
--aui-color-blue: 0, 122, 245;
|