@delon/theme 19.0.1 → 19.2.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.
@@ -72,9 +72,9 @@
72
72
  display: block;
73
73
  min-width: 50px;
74
74
  padding: 8px 2px;
75
+ border-radius: 2px;
75
76
  line-height: 100%;
76
77
  text-align: center;
77
- border-radius: 2px;
78
78
  outline: none;
79
79
  transition: background-color 300ms;
80
80
 
@@ -129,9 +129,9 @@
129
129
  .@{ant-prefix}-input,
130
130
  .@{ant-prefix}-input-group-addon,
131
131
  .@{ant-prefix}-input-affix-wrapper {
132
- color: #fff;
133
- background-color: rgba(255, 255, 255, 0.2);
134
132
  border: none;
133
+ color: #fff;
134
+ background-color: rgb(255, 255, 255, 0.2);
135
135
 
136
136
  &::placeholder {
137
137
  color: #fff;
@@ -48,9 +48,9 @@ body {
48
48
  padding: @alain-default-content-padding;
49
49
  padding-top: @alain-default-content-padding - 12;
50
50
  padding-bottom: @alain-default-content-padding - 12;
51
+ border-bottom: 1px solid @alain-default-content-heading-border;
51
52
  color: #929292;
52
53
  background-color: @alain-default-content-heading-bg;
53
- border-bottom: 1px solid @alain-default-content-heading-border;
54
54
 
55
55
  >h1 {
56
56
  margin-bottom: 0;
@@ -61,8 +61,8 @@
61
61
 
62
62
  // Selected
63
63
  &__selected {
64
- background-color: @alain-default-aside-nav-selected-bg;
65
64
  border-left-color: @alain-default-aside-nav-selected-text-color;
65
+ background-color: @alain-default-aside-nav-selected-bg;
66
66
 
67
67
  > @{sidebar-nav-prefix}__item-link {
68
68
  color: @alain-default-aside-nav-selected-text-color;
@@ -117,9 +117,9 @@
117
117
  position: absolute;
118
118
  width: 6px;
119
119
  height: 1.5px;
120
+ border-radius: 2px;
120
121
  background: #fff;
121
122
  background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
122
- border-radius: 2px;
123
123
  transition: background-color 0.3s @ease-in-out, transform 0.3s @ease-in-out, top 0.3s @ease-in-out;
124
124
  }
125
125
 
@@ -182,9 +182,9 @@
182
182
  z-index: @zindex + 7;
183
183
  display: none;
184
184
  min-width: 160px;
185
- background-color: @alain-default-aside-bg;
186
185
  border: 1px solid @alain-default-content-heading-border;
187
186
  border-radius: 4px;
187
+ background-color: @alain-default-aside-bg;
188
188
 
189
189
  @{sidebar-nav-prefix}__item {
190
190
  &-link {
@@ -4,8 +4,8 @@
4
4
  .@{ant-prefix}-col-6 {
5
5
  cursor: pointer;
6
6
  padding: (@layout-gutter * 2) 0;
7
- text-align: center;
8
7
  border-radius: 4px;
8
+ text-align: center;
9
9
  transition: background-color 300ms;
10
10
 
11
11
  &:hover {
@@ -15,8 +15,8 @@
15
15
 
16
16
  i {
17
17
  padding: 15px;
18
- font-size: 22px;
19
18
  border-radius: 50%;
19
+ font-size: 22px;
20
20
  }
21
21
 
22
22
  small {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/theme",
3
- "version": "19.0.1",
3
+ "version": "19.2.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "component"
22
22
  ],
23
23
  "dependencies": {
24
- "ng-zorro-antd": "^19.0.2",
25
- "@delon/acl": "^19.0.1",
26
- "@delon/abc": "^19.0.1",
27
- "@delon/form": "^19.0.1",
28
- "@delon/util": "^19.0.1",
24
+ "ng-zorro-antd": "^19.2.1",
25
+ "@delon/acl": "^19.2.0",
26
+ "@delon/abc": "^19.2.0",
27
+ "@delon/form": "^19.2.0",
28
+ "@delon/util": "^19.2.0",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "module": "fesm2022/theme.mjs",
@@ -4,6 +4,4 @@ export declare const DEFAULT_COLORS: {
4
4
  key: string;
5
5
  color: string;
6
6
  }[];
7
- export declare const DEFAULT_VARS: {
8
- [key: string]: NzSafeAny;
9
- };
7
+ export declare const DEFAULT_VARS: Record<string, NzSafeAny>;
@@ -43,10 +43,10 @@
43
43
  width: 20px;
44
44
  height: 20px;
45
45
  margin-right: 8px;
46
+ border-radius: 2px;
46
47
  font-weight: bold;
47
48
  color: #fff;
48
49
  text-align: center;
49
- border-radius: 2px;
50
50
  }
51
51
  }
52
52
 
@@ -62,10 +62,10 @@
62
62
  justify-content: center;
63
63
  width: 48px;
64
64
  height: 48px;
65
+ border-radius: 4px 0 0 4px;
65
66
  font-size: 16px;
66
67
  text-align: center;
67
68
  background: @primary-color;
68
- border-radius: 4px 0 0 4px;
69
69
  transition: right @animation-duration-slow @ease-base-in;
70
70
 
71
71
  &-icon {
@@ -1,7 +1,5 @@
1
1
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
2
- export interface LocaleData {
3
- [key: string]: NzSafeAny;
4
- }
2
+ export type LocaleData = Record<string, NzSafeAny>;
5
3
  export interface ExceptionLocaleData extends LocaleData {
6
4
  403: string;
7
5
  404: string;
@@ -3,9 +3,7 @@ import { Observable } from 'rxjs';
3
3
  import { AlainConfigService } from '@delon/util/config';
4
4
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
5
5
  import * as i0 from "@angular/core";
6
- export type _HttpHeaders = HttpHeaders | {
7
- [header: string]: string | string[];
8
- };
6
+ export type _HttpHeaders = HttpHeaders | Record<string, string | string[]>;
9
7
  export type HttpObserve = 'body' | 'events' | 'response';
10
8
  /**
11
9
  * 封装HttpClient,主要解决:
@@ -32,9 +32,7 @@ export declare function BaseUrl(url: string): <TClass extends new (...args: any[
32
32
  * 默认 `headers`
33
33
  * - 有效范围:类
34
34
  */
35
- export declare function BaseHeaders(headers: HttpHeaders | {
36
- [header: string]: string | string[];
37
- }): <TClass extends new (...args: any[]) => BaseApi>(target: TClass) => TClass;
35
+ export declare function BaseHeaders(headers: HttpHeaders | Record<string, string | string[]>): <TClass extends new (...args: any[]) => BaseApi>(target: TClass) => TClass;
38
36
  /**
39
37
  * URL路由参数
40
38
  * - 有效范围:方法参数
@@ -43,6 +43,8 @@ export interface Menu {
43
43
  badgeDot?: boolean;
44
44
  /** Badge [color](https://ng.ant.design/components/badge/en#nz-badge) */
45
45
  badgeStatus?: 'success' | 'processing' | 'default' | 'error' | 'warning';
46
+ /** Maximum count to show in badge, show `${badgeOverflowCount}+` when exceed */
47
+ badgeOverflowCount?: number;
46
48
  /** Whether disable for the menu item */
47
49
  disabled?: boolean;
48
50
  /** Whether hidden for the menu item */
@@ -128,9 +128,9 @@
128
128
  left: 0;
129
129
  width: 100%;
130
130
  padding: @drawer-footer-padding-vertical @drawer-body-padding;
131
- text-align: right;
132
- background: @popover-background;
133
131
  border-top: @border-width-base @border-style-base @border-color-split;
134
132
  border-radius: 0 0 @border-radius-base @border-radius-base;
133
+ text-align: right;
134
+ background: @popover-background;
135
135
  }
136
136
  }
@@ -51,9 +51,9 @@
51
51
  justify-content: space-between;
52
52
  margin: -@margin-lg -@margin-lg @margin-lg -@margin-lg;
53
53
  padding: @modal-header-padding;
54
- background: @component-background;
55
54
  border-bottom: @border-width-base @border-style-base @border-color-split;
56
55
  border-radius: @border-radius-base @border-radius-base 0 0;
56
+ background: @component-background;
57
57
  }
58
58
 
59
59
  &-title {
@@ -96,9 +96,9 @@
96
96
  */
97
97
  margin: @margin-lg -@margin-lg -@margin-lg -@margin-lg;
98
98
  padding: @modal-footer-padding-vertical @modal-footer-padding-horizontal;
99
- text-align: right;
100
99
  border-top: @border-width-base @border-style-base @border-color-split;
101
100
  border-radius: 0 0 @border-radius-base @border-radius-base;
101
+ text-align: right;
102
102
  }
103
103
 
104
104
  &-include-tabs {
@@ -11,8 +11,8 @@
11
11
  .img {
12
12
  max-width: @nz-table-img-max-width;
13
13
  max-height: @nz-table-img-max-height;
14
- vertical-align: middle;
15
14
  border-radius: @nz-table-img-radius;
15
+ vertical-align: middle;
16
16
 
17
17
  &:not(:last-child) {
18
18
  margin-right: @nz-table-img-margin-right;
@@ -98,9 +98,9 @@
98
98
  align-items: center;
99
99
  width: 100%;
100
100
  padding: @nz-table-rep-padding-vertical @nz-table-rep-padding-horizontal;
101
+ border-bottom: none;
101
102
  text-align: left !important;
102
103
  white-space: inherit;
103
- border-bottom: none;
104
104
 
105
105
  .@{ant-prefix}-table-rep__title + *:not(.@{ant-prefix}-avatar) {
106
106
  flex: 1;
@@ -6,8 +6,8 @@
6
6
  * 标签:【+】的样式
7
7
  */
8
8
  .@{ant-prefix}-tag {
9
- background: #fff;
10
9
  border-style: dashed;
10
+ background: #fff;
11
11
  }
12
12
  }
13
13
  }
@@ -2,8 +2,8 @@
2
2
  code {
3
3
  margin: 0 4px;
4
4
  padding: 2px 4px;
5
- font-size: 90%;
6
- background-color: @code-bg;
7
5
  border: 1px solid @code-border-color;
8
6
  border-radius: @border-radius-base;
7
+ font-size: 90%;
8
+ background-color: @code-bg;
9
9
  }
@@ -58,8 +58,8 @@
58
58
  * 隐藏滚动条
59
59
  */
60
60
  .hide-scrollbar {
61
- scrollbar-width: none;
62
61
  scrollbar-color: transparent transparent;
62
+ scrollbar-width: none;
63
63
 
64
64
  &::-webkit-scrollbar {
65
65
  width: 1px;
@@ -1,6 +1,6 @@
1
1
  .header-dropdown {
2
- background-color: @popover-background;
3
2
  border-radius: 4px;
3
+ background-color: @popover-background;
4
4
  box-shadow: @shadow-1-down;
5
5
  }
6
6