@alauda/ui 9.1.2-beta.1 → 9.1.2-beta.10
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/fesm2022/alauda-ui.mjs +917 -922
- package/fesm2022/alauda-ui.mjs.map +1 -1
- package/index.d.ts +3673 -38
- package/package.json +3 -3
- package/theme/_mixin.scss +68 -61
- package/theme/_pattern.scss +20 -22
- package/theme/_theme-preset.scss +2 -1
- package/theme/_var.scss +30 -30
- package/theme/overlay-prebuilt.css +1 -0
- package/theme/style.css +1 -441
- package/tsconfig.lib.tsbuildinfo +1 -1
- package/accordion/accordion-item/accordion-item.component.d.ts +0 -22
- package/accordion/accordion.component.d.ts +0 -10
- package/accordion/accordion.module.d.ts +0 -15
- package/accordion/index.d.ts +0 -3
- package/anchor/anchor.component.d.ts +0 -37
- package/anchor/anchor.directive.d.ts +0 -57
- package/anchor/anchor.module.d.ts +0 -12
- package/anchor/index.d.ts +0 -5
- package/anchor/types.d.ts +0 -14
- package/anchor/utils.d.ts +0 -2
- package/autocomplete/autocomplete-placeholder.component.d.ts +0 -5
- package/autocomplete/autocomplete.component.d.ts +0 -21
- package/autocomplete/autocomplete.directive.d.ts +0 -54
- package/autocomplete/autocomplete.module.d.ts +0 -22
- package/autocomplete/autocomplete.types.d.ts +0 -4
- package/autocomplete/helper-directives.d.ts +0 -5
- package/autocomplete/index.d.ts +0 -8
- package/autocomplete/suggestion/suggestion.component.d.ts +0 -28
- package/autocomplete/suggestion-group/suggestion-group.component.d.ts +0 -11
- package/back-top/back-top.component.d.ts +0 -32
- package/back-top/back-top.module.d.ts +0 -10
- package/back-top/index.d.ts +0 -2
- package/breadcrumb/breadcrumb-item.component.d.ts +0 -14
- package/breadcrumb/breadcrumb.component.d.ts +0 -15
- package/breadcrumb/breadcrumb.module.d.ts +0 -13
- package/breadcrumb/index.d.ts +0 -3
- package/button/button-group/button-group.component.d.ts +0 -5
- package/button/button.component.d.ts +0 -33
- package/button/button.module.d.ts +0 -10
- package/button/button.types.d.ts +0 -15
- package/button/index.d.ts +0 -4
- package/card/card.component.d.ts +0 -6
- package/card/card.module.d.ts +0 -14
- package/card/helper-directives.d.ts +0 -13
- package/card/index.d.ts +0 -4
- package/card/section.component.d.ts +0 -5
- package/checkbox/checkbox-group/checkbox-group.component.d.ts +0 -16
- package/checkbox/checkbox.component.d.ts +0 -28
- package/checkbox/checkbox.module.d.ts +0 -13
- package/checkbox/index.d.ts +0 -3
- package/color-picker/color-picker.component.d.ts +0 -7
- package/color-picker/color-picker.module.d.ts +0 -9
- package/color-picker/index.d.ts +0 -2
- package/core/animation/animation-consts.d.ts +0 -9
- package/date-picker/calendar/constant.d.ts +0 -21
- package/date-picker/calendar/date-picker-panel/component.d.ts +0 -44
- package/date-picker/calendar/footer/component.d.ts +0 -11
- package/date-picker/calendar/header/component.d.ts +0 -40
- package/date-picker/calendar/panel/picker-panel.d.ts +0 -35
- package/date-picker/calendar/range-picker-panel/component.d.ts +0 -51
- package/date-picker/calendar/util.d.ts +0 -34
- package/date-picker/date-picker/date-picker.component.d.ts +0 -32
- package/date-picker/date-picker.module.d.ts +0 -22
- package/date-picker/date-picker.type.d.ts +0 -20
- package/date-picker/index.d.ts +0 -11
- package/date-picker/range-picker/range-picker.component.d.ts +0 -30
- package/date-picker/trigger/trigger.component.d.ts +0 -39
- package/dialog/confirm-dialog/confirm-dialog-config.d.ts +0 -13
- package/dialog/confirm-dialog/confirm-dialog.component.d.ts +0 -24
- package/dialog/dialog-animations.d.ts +0 -31
- package/dialog/dialog-config.d.ts +0 -14
- package/dialog/dialog-container.component.d.ts +0 -7
- package/dialog/dialog-content/dialog-close.directive.d.ts +0 -15
- package/dialog/dialog-content/dialog-content.component.d.ts +0 -11
- package/dialog/dialog-content/dialog-footer.component.d.ts +0 -7
- package/dialog/dialog-content/dialog-header.component.d.ts +0 -18
- package/dialog/dialog-ref.d.ts +0 -18
- package/dialog/dialog.component.d.ts +0 -48
- package/dialog/dialog.module.d.ts +0 -23
- package/dialog/dialog.service.d.ts +0 -28
- package/dialog/dialog.types.d.ts +0 -18
- package/dialog/index.d.ts +0 -11
- package/dialog/utils/errors.d.ts +0 -1
- package/dialog/utils/index.d.ts +0 -4
- package/drawer/component/drawer.component.d.ts +0 -33
- package/drawer/component/internal/internal.component.d.ts +0 -36
- package/drawer/drawer-ref.d.ts +0 -13
- package/drawer/drawer.module.d.ts +0 -15
- package/drawer/drawer.service.d.ts +0 -24
- package/drawer/helper-directives.d.ts +0 -13
- package/drawer/index.d.ts +0 -6
- package/drawer/types.d.ts +0 -26
- package/dropdown/dropdown-active.directive.d.ts +0 -7
- package/dropdown/dropdown-button/dropdown-button.component.d.ts +0 -21
- package/dropdown/dropdown.directive.d.ts +0 -13
- package/dropdown/dropdown.module.d.ts +0 -27
- package/dropdown/dropdown.types.d.ts +0 -9
- package/dropdown/helper-directives.d.ts +0 -5
- package/dropdown/index.d.ts +0 -10
- package/dropdown/menu/menu.component.d.ts +0 -9
- package/dropdown/menu-group/menu-group.component.d.ts +0 -5
- package/dropdown/menu-item/menu-item.component.d.ts +0 -15
- package/dropdown/submenu/submenu.component.d.ts +0 -16
- package/form/common-form.d.ts +0 -36
- package/form/form-item/form-item.component.d.ts +0 -37
- package/form/form.directive.d.ts +0 -21
- package/form/form.module.d.ts +0 -14
- package/form/form.types.d.ts +0 -16
- package/form/helper-directives.d.ts +0 -23
- package/form/index.d.ts +0 -6
- package/i18n/i18n.module.d.ts +0 -7
- package/i18n/i18n.pipe.d.ts +0 -10
- package/i18n/i18n.service.d.ts +0 -11
- package/i18n/i18n.type.d.ts +0 -6
- package/i18n/index.d.ts +0 -6
- package/i18n/language/en.d.ts +0 -2
- package/i18n/language/zh.d.ts +0 -2
- package/icon/icon-register.service.d.ts +0 -15
- package/icon/icon.component.d.ts +0 -25
- package/icon/icon.module.d.ts +0 -9
- package/icon/icons.d.ts +0 -1
- package/icon/index.d.ts +0 -3
- package/icon/utils.d.ts +0 -2
- package/inline-alert/helper-directives.d.ts +0 -5
- package/inline-alert/index.d.ts +0 -4
- package/inline-alert/inline-alert.component.d.ts +0 -19
- package/inline-alert/inline-alert.module.d.ts +0 -13
- package/inline-alert/inline-alert.types.d.ts +0 -10
- package/input/autosize.directive.d.ts +0 -24
- package/input/helper-directives.d.ts +0 -17
- package/input/index.d.ts +0 -8
- package/input/input-group/input-group.component.d.ts +0 -22
- package/input/input.component.d.ts +0 -19
- package/input/input.module.d.ts +0 -18
- package/input/number-input/number-input.component.d.ts +0 -39
- package/input/search/search.component.d.ts +0 -28
- package/input/tags-input/tags-input.component.d.ts +0 -64
- package/input/tags-input/with-max-row-count.d.ts +0 -10
- package/input/utils/index.d.ts +0 -5
- package/internal/types/index.d.ts +0 -12
- package/internal/utils/animations.d.ts +0 -2
- package/internal/utils/async.d.ts +0 -1
- package/internal/utils/bem.d.ts +0 -12
- package/internal/utils/coercion.d.ts +0 -4
- package/internal/utils/fn.d.ts +0 -9
- package/internal/utils/index.d.ts +0 -9
- package/internal/utils/observe-dom.d.ts +0 -3
- package/internal/utils/operators.d.ts +0 -7
- package/internal/utils/scroll-into-view.d.ts +0 -1
- package/internal/utils/styles-renderer.d.ts +0 -18
- package/internal/utils/watch-content-exist.d.ts +0 -2
- package/message/base-message.d.ts +0 -33
- package/message/index.d.ts +0 -3
- package/message/message-animations.d.ts +0 -4
- package/message/message-wrapper.component.d.ts +0 -8
- package/message/message.component.d.ts +0 -30
- package/message/message.config.d.ts +0 -44
- package/message/message.module.d.ts +0 -11
- package/message/message.service.d.ts +0 -12
- package/notification/index.d.ts +0 -4
- package/notification/notification-wrapper.component.d.ts +0 -9
- package/notification/notification.component.d.ts +0 -34
- package/notification/notification.config.d.ts +0 -16
- package/notification/notification.module.d.ts +0 -12
- package/notification/notification.service.d.ts +0 -12
- package/paginator/index.d.ts +0 -3
- package/paginator/paginator-intl.d.ts +0 -20
- package/paginator/paginator.component.d.ts +0 -37
- package/paginator/paginator.module.d.ts +0 -12
- package/radio/base-radio.d.ts +0 -28
- package/radio/index.d.ts +0 -5
- package/radio/radio-button/radio-button.component.d.ts +0 -17
- package/radio/radio-group/radio-group.component.d.ts +0 -20
- package/radio/radio.component.d.ts +0 -13
- package/radio/radio.module.d.ts +0 -15
- package/radio/radio.types.d.ts +0 -7
- package/scrolling/fixed-size-table-virtual-scroll-strategy.d.ts +0 -28
- package/scrolling/fixed-size-table-virtual-scroll.directive.d.ts +0 -24
- package/scrolling/fixed-size-virtual-scroll.directive.d.ts +0 -6
- package/scrolling/index.d.ts +0 -6
- package/scrolling/scrolling.module.d.ts +0 -10
- package/scrolling/virtual-for-of.directive.d.ts +0 -13
- package/scrolling/virtual-scroll-viewport.component.d.ts +0 -6
- package/select/base-select.d.ts +0 -83
- package/select/helper-directives.d.ts +0 -22
- package/select/index.d.ts +0 -9
- package/select/multi-select/multi-select.component.d.ts +0 -57
- package/select/option/option.component.d.ts +0 -46
- package/select/option-group/option-group.component.d.ts +0 -11
- package/select/option-placeholder.component.d.ts +0 -5
- package/select/select.component.d.ts +0 -23
- package/select/select.module.d.ts +0 -27
- package/select/select.types.d.ts +0 -19
- package/select/validators.d.ts +0 -22
- package/shared/click-outside.directive.d.ts +0 -10
- package/shared/shared.module.d.ts +0 -7
- package/sort/index.d.ts +0 -5
- package/sort/sort-errors.d.ts +0 -8
- package/sort/sort-header.component.d.ts +0 -24
- package/sort/sort.directive.d.ts +0 -21
- package/sort/sort.module.d.ts +0 -12
- package/sort/sort.types.d.ts +0 -10
- package/status-bar/index.d.ts +0 -3
- package/status-bar/status-bar.component.d.ts +0 -13
- package/status-bar/status-bar.module.d.ts +0 -9
- package/status-bar/status-bar.types.d.ts +0 -21
- package/steps/index.d.ts +0 -3
- package/steps/steps.component.d.ts +0 -35
- package/steps/steps.module.d.ts +0 -9
- package/steps/types.d.ts +0 -16
- package/switch/index.d.ts +0 -2
- package/switch/switch.component.d.ts +0 -11
- package/switch/switch.module.d.ts +0 -8
- package/table/index.d.ts +0 -15
- package/table/table-cell-def.directive.d.ts +0 -10
- package/table/table-cell.component.d.ts +0 -18
- package/table/table-cell.directive.d.ts +0 -10
- package/table/table-column-def.directive.d.ts +0 -11
- package/table/table-column-resizable.directive.d.ts +0 -30
- package/table/table-header-cell-def.directive.d.ts +0 -10
- package/table/table-header-cell.directive.d.ts +0 -9
- package/table/table-header-row-def.directive.d.ts +0 -13
- package/table/table-header-row.component.d.ts +0 -7
- package/table/table-placeholder.directive.d.ts +0 -16
- package/table/table-row-def.directive.d.ts +0 -13
- package/table/table-row.component.d.ts +0 -13
- package/table/table-scroll.directive.d.ts +0 -33
- package/table/table.component.d.ts +0 -20
- package/table/table.module.d.ts +0 -35
- package/table-of-contents/index.d.ts +0 -4
- package/table-of-contents/table-of-contents.module.d.ts +0 -14
- package/table-of-contents/toc-container.directive.d.ts +0 -28
- package/table-of-contents/toc-content.directive.d.ts +0 -14
- package/table-of-contents/toc-link.directive.d.ts +0 -16
- package/tabs/index.d.ts +0 -8
- package/tabs/tab-body.component.d.ts +0 -71
- package/tabs/tab-context.service.d.ts +0 -15
- package/tabs/tab-group.component.d.ts +0 -92
- package/tabs/tab-header-active-indicator.component.d.ts +0 -25
- package/tabs/tab-header.component.d.ts +0 -137
- package/tabs/tab.component.d.ts +0 -48
- package/tabs/tabs.module.d.ts +0 -23
- package/tabs/tabs.types.d.ts +0 -15
- package/tag/check-tag/check-tag.component.d.ts +0 -15
- package/tag/index.d.ts +0 -4
- package/tag/tag.component.d.ts +0 -27
- package/tag/tag.module.d.ts +0 -10
- package/tag/tag.types.d.ts +0 -9
- package/theme/index.d.ts +0 -5
- package/theme/theme.module.d.ts +0 -8
- package/theme/theme.pipe.d.ts +0 -28
- package/theme/theme.service.d.ts +0 -15
- package/theme/theme.types.d.ts +0 -3
- package/theme/utils.d.ts +0 -3
- package/time-picker/component.d.ts +0 -38
- package/time-picker/constant.d.ts +0 -4
- package/time-picker/index.d.ts +0 -5
- package/time-picker/panel/panel.component.d.ts +0 -56
- package/time-picker/time-picker.module.d.ts +0 -20
- package/time-picker/time-picker.type.d.ts +0 -13
- package/tooltip/animations.d.ts +0 -4
- package/tooltip/base-tooltip.d.ts +0 -86
- package/tooltip/index.d.ts +0 -8
- package/tooltip/tooltip-active.directive.d.ts +0 -16
- package/tooltip/tooltip-copy.directive.d.ts +0 -26
- package/tooltip/tooltip-intl.d.ts +0 -11
- package/tooltip/tooltip.component.d.ts +0 -46
- package/tooltip/tooltip.directive.d.ts +0 -10
- package/tooltip/tooltip.module.d.ts +0 -16
- package/tooltip/tooltip.types.d.ts +0 -16
- package/tooltip/utils/index.d.ts +0 -15
- package/tree-select/index.d.ts +0 -4
- package/tree-select/tree-node-placeholder.component.d.ts +0 -5
- package/tree-select/tree-select.component.d.ts +0 -94
- package/tree-select/tree-select.module.d.ts +0 -12
- package/tree-select/tree-select.types.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alauda/ui",
|
|
3
|
-
"version": "9.1.2-beta.
|
|
3
|
+
"version": "9.1.2-beta.10",
|
|
4
4
|
"description": "Angular UI components by Alauda Frontend Team.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"JounQin <admin@1stG.me> (https://www.1stG.me)"
|
|
13
13
|
],
|
|
14
14
|
"license": "MIT",
|
|
15
|
-
"packageManager": "yarn@
|
|
15
|
+
"packageManager": "yarn@4.0.1",
|
|
16
16
|
"keywords": [
|
|
17
17
|
"alauda",
|
|
18
18
|
"angular",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"ui"
|
|
21
21
|
],
|
|
22
22
|
"peerDependencies": {
|
|
23
|
-
"@angular/cdk": ">=
|
|
23
|
+
"@angular/cdk": ">=20.0.0",
|
|
24
24
|
"dayjs": "^1.0.0",
|
|
25
25
|
"rxjs": "^7.0.0"
|
|
26
26
|
},
|
package/theme/_mixin.scss
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use 'var' as var;
|
|
2
|
+
@use 'sass:selector';
|
|
3
3
|
|
|
4
4
|
@function theme-selector($theme, $scope) {
|
|
5
5
|
@if ($scope) {
|
|
6
|
-
@return selector
|
|
6
|
+
@return selector.nest($theme, $scope);
|
|
7
7
|
} @else {
|
|
8
8
|
@return $theme;
|
|
9
9
|
}
|
|
@@ -40,96 +40,98 @@
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@mixin text-set($size: m, $color: none, $weight: normal) {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
43
|
+
& {
|
|
44
|
+
font-size: var.use-var(font-size-#{$size});
|
|
45
|
+
line-height: var.use-var(line-height-#{$size});
|
|
46
|
+
font-weight: var.use-var(font-weight-#{$weight});
|
|
47
|
+
@if $color != none {
|
|
48
|
+
color: var.use-text-color($color);
|
|
49
|
+
}
|
|
48
50
|
}
|
|
49
51
|
}
|
|
50
52
|
|
|
51
53
|
@mixin icon-set($size: m, $color: none) {
|
|
52
54
|
display: inline-flex;
|
|
53
55
|
align-items: center;
|
|
54
|
-
height: use-var(line-height-#{$size});
|
|
55
|
-
font-size: use-var(font-size-#{$size});
|
|
56
|
+
height: var.use-var(line-height-#{$size});
|
|
57
|
+
font-size: var.use-var(font-size-#{$size});
|
|
56
58
|
@if $color != none {
|
|
57
|
-
color: use-text-color($color);
|
|
59
|
+
color: var.use-text-color($color);
|
|
58
60
|
}
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
// 使用 box-shadow 模拟带圆角的 outline
|
|
62
64
|
@mixin outline-shadow($color: primary, $theme: auto) {
|
|
63
65
|
@if ($theme == light) {
|
|
64
|
-
box-shadow: 0 0 0 2px use-rgba($color, 0.16);
|
|
66
|
+
box-shadow: 0 0 0 2px var.use-rgba($color, 0.16);
|
|
65
67
|
} @else if($theme == dark) {
|
|
66
|
-
box-shadow: 0 0 0 2px use-rgba($color, 0.3);
|
|
68
|
+
box-shadow: 0 0 0 2px var.use-rgba($color, 0.3);
|
|
67
69
|
} @else {
|
|
68
70
|
@include theme-light {
|
|
69
|
-
box-shadow: 0 0 0 2px use-rgba($color, 0.16);
|
|
71
|
+
box-shadow: 0 0 0 2px var.use-rgba($color, 0.16);
|
|
70
72
|
}
|
|
71
73
|
@include theme-dark {
|
|
72
|
-
box-shadow: 0 0 0 2px use-rgba($color, 0.3);
|
|
74
|
+
box-shadow: 0 0 0 2px var.use-rgba($color, 0.3);
|
|
73
75
|
}
|
|
74
76
|
}
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
@mixin card-shadow($theme: auto) {
|
|
78
80
|
@if ($theme == light) {
|
|
79
|
-
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.1);
|
|
81
|
+
box-shadow: 0 0 4px 0 var.use-rgba(origin-shadow, 0.1);
|
|
80
82
|
} @else if($theme == dark) {
|
|
81
|
-
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.75);
|
|
83
|
+
box-shadow: 0 0 4px 0 var.use-rgba(origin-shadow, 0.75);
|
|
82
84
|
} @else {
|
|
83
85
|
@include theme-light {
|
|
84
|
-
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.1);
|
|
86
|
+
box-shadow: 0 0 4px 0 var.use-rgba(origin-shadow, 0.1);
|
|
85
87
|
}
|
|
86
88
|
@include theme-dark {
|
|
87
|
-
box-shadow: 0 0 4px 0 use-rgba(origin-shadow, 0.75);
|
|
89
|
+
box-shadow: 0 0 4px 0 var.use-rgba(origin-shadow, 0.75);
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
|
|
92
94
|
@mixin popper-shadow($theme: auto) {
|
|
93
95
|
@if ($theme == light) {
|
|
94
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
96
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.2);
|
|
95
97
|
} @else if($theme == dark) {
|
|
96
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.75);
|
|
98
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.75);
|
|
97
99
|
} @else {
|
|
98
100
|
@include theme-light {
|
|
99
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
101
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.2);
|
|
100
102
|
}
|
|
101
103
|
@include theme-dark {
|
|
102
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.75);
|
|
104
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.75);
|
|
103
105
|
}
|
|
104
106
|
}
|
|
105
107
|
}
|
|
106
108
|
|
|
107
109
|
@mixin modal-shadow($theme: auto) {
|
|
108
110
|
@if ($theme == light) {
|
|
109
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
111
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.2);
|
|
110
112
|
} @else if($theme == dark) {
|
|
111
|
-
box-shadow: 0 4px 16px 0 use-rgba(origin-shadow, 0.75);
|
|
113
|
+
box-shadow: 0 4px 16px 0 var.use-rgba(origin-shadow, 0.75);
|
|
112
114
|
} @else {
|
|
113
115
|
@include theme-light {
|
|
114
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.2);
|
|
116
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.2);
|
|
115
117
|
}
|
|
116
118
|
@include theme-dark {
|
|
117
|
-
box-shadow: 0 4px 16px 0 use-rgba(origin-shadow, 0.75);
|
|
119
|
+
box-shadow: 0 4px 16px 0 var.use-rgba(origin-shadow, 0.75);
|
|
118
120
|
}
|
|
119
121
|
}
|
|
120
122
|
}
|
|
121
123
|
|
|
122
124
|
@mixin modal-backdrop($theme: auto) {
|
|
123
125
|
@if ($theme == light) {
|
|
124
|
-
background-color: use-rgba(origin-shadow, 0.4);
|
|
126
|
+
background-color: var.use-rgba(origin-shadow, 0.4);
|
|
125
127
|
} @else if($theme == dark) {
|
|
126
|
-
background-color: use-rgba(origin-shadow, 0.75);
|
|
128
|
+
background-color: var.use-rgba(origin-shadow, 0.75);
|
|
127
129
|
} @else {
|
|
128
130
|
@include theme-light {
|
|
129
|
-
background-color: use-rgba(origin-shadow, 0.4);
|
|
131
|
+
background-color: var.use-rgba(origin-shadow, 0.4);
|
|
130
132
|
}
|
|
131
133
|
@include theme-dark {
|
|
132
|
-
background-color: use-rgba(origin-shadow, 0.75);
|
|
134
|
+
background-color: var.use-rgba(origin-shadow, 0.75);
|
|
133
135
|
}
|
|
134
136
|
}
|
|
135
137
|
}
|
|
@@ -141,7 +143,7 @@
|
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
@mixin transition($target: all) {
|
|
144
|
-
transition: $target
|
|
146
|
+
transition: $target var.$animation-duration-slow var.$animation-interpolation;
|
|
145
147
|
}
|
|
146
148
|
|
|
147
149
|
@mixin absolute-center() {
|
|
@@ -152,7 +154,10 @@
|
|
|
152
154
|
transform: translate(-50%, -50%);
|
|
153
155
|
}
|
|
154
156
|
|
|
155
|
-
@mixin scroll-bar(
|
|
157
|
+
@mixin scroll-bar(
|
|
158
|
+
$color: #{var.use-rgb(n-7)},
|
|
159
|
+
$hover-color: #{var.use-rgb(n-5)}
|
|
160
|
+
) {
|
|
156
161
|
&::-webkit-scrollbar {
|
|
157
162
|
width: 8px;
|
|
158
163
|
height: 4px;
|
|
@@ -174,13 +179,13 @@
|
|
|
174
179
|
|
|
175
180
|
@mixin clear-button() {
|
|
176
181
|
border-radius: 50%;
|
|
177
|
-
color: use-text-color(help);
|
|
182
|
+
color: var.use-text-color(help);
|
|
178
183
|
cursor: pointer;
|
|
179
184
|
@include transition;
|
|
180
185
|
|
|
181
186
|
&:hover {
|
|
182
|
-
color: use-rgb(main-bg);
|
|
183
|
-
background-color: use-text-color(help);
|
|
187
|
+
color: var.use-rgb(main-bg);
|
|
188
|
+
background-color: var.use-text-color(help);
|
|
184
189
|
}
|
|
185
190
|
}
|
|
186
191
|
|
|
@@ -196,7 +201,7 @@
|
|
|
196
201
|
}
|
|
197
202
|
|
|
198
203
|
&.isDisabled &__icon-container {
|
|
199
|
-
color: use-rgb(n-4);
|
|
204
|
+
color: var.use-rgb(n-4);
|
|
200
205
|
}
|
|
201
206
|
|
|
202
207
|
&__indicator {
|
|
@@ -224,7 +229,7 @@
|
|
|
224
229
|
}
|
|
225
230
|
|
|
226
231
|
@mixin input-error() {
|
|
227
|
-
border-color: use-rgb(red) !important;
|
|
232
|
+
border-color: var.use-rgb(red) !important;
|
|
228
233
|
|
|
229
234
|
&:focus,
|
|
230
235
|
&.isFocused {
|
|
@@ -236,10 +241,10 @@
|
|
|
236
241
|
display: inline-flex;
|
|
237
242
|
justify-content: center;
|
|
238
243
|
align-items: center;
|
|
239
|
-
width: use-var(icon-size-m);
|
|
240
|
-
height: use-var(icon-size-m);
|
|
241
|
-
color: use-rgb(primary);
|
|
242
|
-
background-color: use-rgb(p-6);
|
|
244
|
+
width: var.use-var(icon-size-m);
|
|
245
|
+
height: var.use-var(icon-size-m);
|
|
246
|
+
color: var.use-rgb(primary);
|
|
247
|
+
background-color: var.use-rgb(p-6);
|
|
243
248
|
border-radius: 50%;
|
|
244
249
|
border: none;
|
|
245
250
|
cursor: pointer;
|
|
@@ -249,45 +254,47 @@
|
|
|
249
254
|
display: flex;
|
|
250
255
|
justify-content: center;
|
|
251
256
|
align-items: center;
|
|
252
|
-
width: use-var(icon-size-s);
|
|
253
|
-
height: use-var(icon-size-s);
|
|
254
|
-
font-size: use-var(icon-size-s);
|
|
257
|
+
width: var.use-var(icon-size-s);
|
|
258
|
+
height: var.use-var(icon-size-s);
|
|
259
|
+
font-size: var.use-var(icon-size-s);
|
|
255
260
|
}
|
|
256
261
|
|
|
257
262
|
&:hover {
|
|
258
|
-
background-color: use-rgb(p-7);
|
|
263
|
+
background-color: var.use-rgb(p-7);
|
|
259
264
|
}
|
|
260
265
|
|
|
261
266
|
&:active {
|
|
262
|
-
background-color: use-rgb(p-5);
|
|
267
|
+
background-color: var.use-rgb(p-5);
|
|
263
268
|
}
|
|
264
269
|
|
|
265
270
|
&.isExpanded {
|
|
266
271
|
transform: rotate(90deg);
|
|
267
272
|
color: white;
|
|
268
|
-
background-color: use-rgb(primary);
|
|
273
|
+
background-color: var.use-rgb(primary);
|
|
269
274
|
|
|
270
275
|
&:hover {
|
|
271
|
-
background-color: use-rgb(p-1);
|
|
276
|
+
background-color: var.use-rgb(p-1);
|
|
272
277
|
}
|
|
273
278
|
|
|
274
279
|
&:active {
|
|
275
|
-
background-color: use-rgb(p-0);
|
|
280
|
+
background-color: var.use-rgb(p-0);
|
|
276
281
|
}
|
|
277
282
|
}
|
|
278
283
|
|
|
279
284
|
&[disabled],
|
|
280
285
|
&.isExpanded[disabled] {
|
|
281
|
-
background-color: use-rgb(n-8);
|
|
282
|
-
color: use-rgb(n-6);
|
|
286
|
+
background-color: var.use-rgb(n-8);
|
|
287
|
+
color: var.use-rgb(n-6);
|
|
283
288
|
cursor: not-allowed;
|
|
284
289
|
}
|
|
285
290
|
}
|
|
286
291
|
|
|
287
292
|
@mixin text-overflow {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
293
|
+
& {
|
|
294
|
+
white-space: nowrap;
|
|
295
|
+
overflow: hidden;
|
|
296
|
+
text-overflow: ellipsis;
|
|
297
|
+
}
|
|
291
298
|
}
|
|
292
299
|
|
|
293
300
|
@mixin flex-center($alignItems: center) {
|
|
@@ -304,15 +311,15 @@
|
|
|
304
311
|
}
|
|
305
312
|
|
|
306
313
|
@mixin view-readonly {
|
|
307
|
-
background-color: use-rgb(main-bg);
|
|
308
|
-
border-color: use-rgb(border);
|
|
314
|
+
background-color: var.use-rgb(main-bg);
|
|
315
|
+
border-color: var.use-rgb(border);
|
|
309
316
|
}
|
|
310
317
|
|
|
311
318
|
@mixin vertical-dashed-line($width: 1px, $color: 'n-7') {
|
|
312
319
|
background: linear-gradient(
|
|
313
320
|
to bottom,
|
|
314
|
-
use-rgb($color),
|
|
315
|
-
use-rgb($color) 8px,
|
|
321
|
+
var.use-rgb($color),
|
|
322
|
+
var.use-rgb($color) 8px,
|
|
316
323
|
transparent 6px,
|
|
317
324
|
transparent
|
|
318
325
|
);
|
|
@@ -322,7 +329,7 @@
|
|
|
322
329
|
}
|
|
323
330
|
|
|
324
331
|
// Motion
|
|
325
|
-
@mixin motion-common($duration:
|
|
332
|
+
@mixin motion-common($duration: var.$animation-duration-base) {
|
|
326
333
|
animation-duration: $duration;
|
|
327
334
|
animation-fill-mode: both;
|
|
328
335
|
animation-play-state: paused;
|
|
@@ -331,7 +338,7 @@
|
|
|
331
338
|
@mixin make-motion(
|
|
332
339
|
$className,
|
|
333
340
|
$keyframeName,
|
|
334
|
-
$duration:
|
|
341
|
+
$duration: var.$animation-duration-base
|
|
335
342
|
) {
|
|
336
343
|
.#{$className}-enter,
|
|
337
344
|
.#{$className}-leave {
|
package/theme/_pattern.scss
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use 'var' as var;
|
|
2
|
+
@use 'mixin' as mixin;
|
|
3
3
|
|
|
4
4
|
@mixin shadow-0 {
|
|
5
|
-
border-radius: use-var(border-radius-m);
|
|
6
|
-
background-color: use-rgb(n-10);
|
|
5
|
+
border-radius: var.use-var(border-radius-m);
|
|
6
|
+
background-color: var.use-rgb(n-10);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
@mixin shadow-2 {
|
|
10
|
-
border-radius: use-var(border-radius-m);
|
|
11
|
-
background-color: use-rgb(n-10);
|
|
12
|
-
box-shadow: 0 0 2px 0 use-rgba(origin-shadow, 0.24);
|
|
10
|
+
border-radius: var.use-var(border-radius-m);
|
|
11
|
+
background-color: var.use-rgb(n-10);
|
|
12
|
+
box-shadow: 0 0 2px 0 var.use-rgba(origin-shadow, 0.24);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
@mixin shadow-8 {
|
|
16
|
-
border-radius: use-var(border-radius-m);
|
|
17
|
-
background-color: use-rgb(n-10);
|
|
18
|
-
box-shadow: 0 2px 8px 0 use-rgba(origin-shadow, 0.16);
|
|
16
|
+
border-radius: var.use-var(border-radius-m);
|
|
17
|
+
background-color: var.use-rgb(n-10);
|
|
18
|
+
box-shadow: 0 2px 8px 0 var.use-rgba(origin-shadow, 0.16);
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
@mixin shadow-16 {
|
|
22
|
-
border-radius: use-var(border-radius-m);
|
|
23
|
-
background-color: use-rgb(n-10);
|
|
24
|
-
box-shadow: 0 4px 16px 0 use-rgba(origin-shadow, 0.16);
|
|
22
|
+
border-radius: var.use-var(border-radius-m);
|
|
23
|
+
background-color: var.use-rgb(n-10);
|
|
24
|
+
box-shadow: 0 4px 16px 0 var.use-rgba(origin-shadow, 0.16);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
@mixin zh-form-label-width($parent) {
|
|
@@ -42,20 +42,18 @@
|
|
|
42
42
|
display: flex;
|
|
43
43
|
justify-content: center;
|
|
44
44
|
align-items: center;
|
|
45
|
-
padding:
|
|
46
|
-
min-height:
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
border: solid 1px use-rgb(n-8);
|
|
51
|
-
border-radius: use-var(border-radius-l);
|
|
52
|
-
|
|
45
|
+
padding: var.$table-cell-padding-v var.$table-cell-padding-h;
|
|
46
|
+
min-height: var.$table-row-min-height + 2px;
|
|
47
|
+
background-color: var.use-rgb(n-10);
|
|
48
|
+
border: solid 1px var.use-rgb(n-8);
|
|
49
|
+
border-radius: var.use-var(border-radius-l);
|
|
53
50
|
// fixed placeholder to avoid horizontal scrolling
|
|
54
51
|
position: sticky;
|
|
55
52
|
left: 0;
|
|
53
|
+
@include mixin.text-set(m, placeholder);
|
|
56
54
|
|
|
57
55
|
> aui-icon:first-child {
|
|
58
|
-
margin-right: use-var(spacing-m);
|
|
56
|
+
margin-right: var.use-var(spacing-m);
|
|
59
57
|
}
|
|
60
58
|
}
|
|
61
59
|
|
package/theme/_theme-preset.scss
CHANGED
package/theme/_var.scss
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
|
-
|
|
3
|
-
@
|
|
2
|
+
@use 'base-var' as base-var;
|
|
3
|
+
@forward 'base-var';
|
|
4
4
|
|
|
5
5
|
$status-color-map: (
|
|
6
|
-
success: use-rgb(green),
|
|
7
|
-
warning: use-rgb(yellow),
|
|
8
|
-
error: use-rgb(red),
|
|
9
|
-
info: use-rgb(primary),
|
|
6
|
+
success: base-var.use-rgb(green),
|
|
7
|
+
warning: base-var.use-rgb(yellow),
|
|
8
|
+
error: base-var.use-rgb(red),
|
|
9
|
+
info: base-var.use-rgb(primary),
|
|
10
10
|
);
|
|
11
11
|
|
|
12
12
|
// input
|
|
13
13
|
$input-size: (
|
|
14
14
|
large: (
|
|
15
|
-
height: use-var(inline-height-l),
|
|
16
|
-
font-size: use-var(font-size-l),
|
|
17
|
-
line-height: use-var(line-height-l),
|
|
18
|
-
icon-size: use-var(icon-size-l),
|
|
15
|
+
height: base-var.use-var(inline-height-l),
|
|
16
|
+
font-size: base-var.use-var(font-size-l),
|
|
17
|
+
line-height: base-var.use-var(line-height-l),
|
|
18
|
+
icon-size: base-var.use-var(icon-size-l),
|
|
19
19
|
),
|
|
20
20
|
medium: (
|
|
21
|
-
height: use-var(inline-height-m),
|
|
22
|
-
font-size: use-var(font-size-m),
|
|
23
|
-
line-height: use-var(line-height-m),
|
|
24
|
-
icon-size: use-var(icon-size-m),
|
|
21
|
+
height: base-var.use-var(inline-height-m),
|
|
22
|
+
font-size: base-var.use-var(font-size-m),
|
|
23
|
+
line-height: base-var.use-var(line-height-m),
|
|
24
|
+
icon-size: base-var.use-var(icon-size-m),
|
|
25
25
|
),
|
|
26
26
|
small: (
|
|
27
|
-
height: use-var(inline-height-s),
|
|
28
|
-
font-size: use-var(font-size-m),
|
|
29
|
-
line-height: use-var(line-height-m),
|
|
30
|
-
icon-size: use-var(icon-size-m),
|
|
27
|
+
height: base-var.use-var(inline-height-s),
|
|
28
|
+
font-size: base-var.use-var(font-size-m),
|
|
29
|
+
line-height: base-var.use-var(line-height-m),
|
|
30
|
+
icon-size: base-var.use-var(icon-size-m),
|
|
31
31
|
),
|
|
32
32
|
mini: (
|
|
33
|
-
height: use-var(inline-height-xs),
|
|
34
|
-
font-size: use-var(font-size-s),
|
|
35
|
-
line-height: use-var(line-height-s),
|
|
36
|
-
icon-size: use-var(icon-size-s),
|
|
33
|
+
height: base-var.use-var(inline-height-xs),
|
|
34
|
+
font-size: base-var.use-var(font-size-s),
|
|
35
|
+
line-height: base-var.use-var(line-height-s),
|
|
36
|
+
icon-size: base-var.use-var(icon-size-s),
|
|
37
37
|
),
|
|
38
38
|
);
|
|
39
39
|
|
|
@@ -44,8 +44,8 @@ $table-cell-padding-v: 15px;
|
|
|
44
44
|
$table-cell-padding-h: 10px;
|
|
45
45
|
|
|
46
46
|
// Sort
|
|
47
|
-
$sort-indicator-color: use-text-color(placeholder);
|
|
48
|
-
$sort-indicator-color-active: use-text-color(secondary);
|
|
47
|
+
$sort-indicator-color: base-var.use-text-color(placeholder);
|
|
48
|
+
$sort-indicator-color-active: base-var.use-text-color(secondary);
|
|
49
49
|
$sort-indicator-size: 4px;
|
|
50
50
|
$sort-indicator-margin: 4px;
|
|
51
51
|
|
|
@@ -53,17 +53,17 @@ $sort-indicator-margin: 4px;
|
|
|
53
53
|
$tab-label-padding-large: 16px 20px;
|
|
54
54
|
$tab-label-padding-medium: 12px 20px;
|
|
55
55
|
$tab-label-padding-small: 8px 16px;
|
|
56
|
-
$tab-label-font-size-large: use-var(font-size-xl);
|
|
57
|
-
$tab-label-font-size-medium: use-var(font-size-l);
|
|
58
|
-
$tab-label-font-size-small: use-var(font-size-m);
|
|
59
|
-
$tab-header-type-card-bg-color: use-rgb(n-9);
|
|
56
|
+
$tab-label-font-size-large: base-var.use-var(font-size-xl);
|
|
57
|
+
$tab-label-font-size-medium: base-var.use-var(font-size-l);
|
|
58
|
+
$tab-label-font-size-small: base-var.use-var(font-size-m);
|
|
59
|
+
$tab-header-type-card-bg-color: base-var.use-rgb(n-9);
|
|
60
60
|
$tab-scroll-transition: all 0.3s cubic-bezier(0.35, 0, 0.25, 1);
|
|
61
61
|
$tab-pagination-button-z-index: 3;
|
|
62
62
|
$tab-label-z-index: 2;
|
|
63
63
|
$tab-active-indicator-z-index: 1;
|
|
64
|
-
$tab-label-focus-box-shadow: inset 0 0 0 3px use-rgba(primary, 0.3);
|
|
64
|
+
$tab-label-focus-box-shadow: inset 0 0 0 3px base-var.use-rgba(primary, 0.3);
|
|
65
65
|
$tab-header-close-icon-size: 16px;
|
|
66
|
-
$tab-header-title-font-size: use-var(font-size-xxl);
|
|
66
|
+
$tab-header-title-font-size: base-var.use-var(font-size-xxl);
|
|
67
67
|
$tab-header-title-spacing: 20px;
|
|
68
68
|
$tab-header-title-padding: 20px 0 12px;
|
|
69
69
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%;z-index:1000}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation;z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px;z-index:1000}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.cdk-overlay-popover{background:none;border:none;padding:0;outline:0;overflow:visible;position:fixed;pointer-events:none;white-space:normal;color:inherit;text-decoration:none;width:100%;height:100%;inset:auto;top:0;left:0}.cdk-overlay-popover::backdrop{display:none}.cdk-overlay-popover .cdk-overlay-backdrop{position:fixed;z-index:auto}
|