@delon/theme 16.4.3 → 17.0.1
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/compact.css +358 -232
- package/compact.min.css +1 -1
- package/dark.css +358 -232
- package/dark.min.css +1 -1
- package/default.css +358 -232
- package/default.min.css +1 -1
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +4 -4
- package/esm2022/layout-default/layout-header-item.component.mjs +4 -4
- package/esm2022/layout-default/layout-header.component.mjs +48 -32
- package/esm2022/layout-default/layout-nav.component.mjs +7 -7
- package/esm2022/layout-default/layout-top-menu-item.mjs +4 -4
- package/esm2022/layout-default/layout.component.mjs +61 -37
- package/esm2022/layout-default/layout.module.mjs +5 -5
- package/esm2022/layout-default/layout.service.mjs +5 -5
- package/esm2022/public_api.mjs +4 -18
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +10 -11
- package/esm2022/setting-drawer/setting-drawer.component.mjs +7 -7
- package/esm2022/setting-drawer/setting-drawer.module.mjs +5 -5
- package/esm2022/src/config.mjs +1 -1
- package/esm2022/src/locale/locale.module.mjs +5 -5
- package/esm2022/src/locale/locale.service.mjs +6 -6
- package/esm2022/src/pipes/date/date.pipe.mjs +14 -12
- package/esm2022/src/pipes/index.mjs +6 -0
- package/esm2022/src/pipes/keys/keys.pipe.mjs +5 -5
- package/esm2022/src/pipes/safe/html.pipe.mjs +6 -6
- package/esm2022/src/pipes/safe/url.pipe.mjs +6 -6
- package/esm2022/src/pipes/yn/yn.pipe.mjs +6 -6
- package/esm2022/src/provide.mjs +51 -0
- package/esm2022/src/services/drawer/drawer.helper.mjs +6 -6
- package/esm2022/src/services/http/http.client.mjs +12 -10
- package/esm2022/src/services/http/http.decorator.mjs +6 -6
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +6 -6
- package/esm2022/src/services/i18n/i18n.mjs +8 -8
- package/esm2022/src/services/i18n/i18n.pipe.mjs +7 -7
- package/esm2022/src/services/index.mjs +11 -0
- package/esm2022/src/services/menu/index.mjs +3 -0
- package/esm2022/src/services/menu/menu.service.mjs +6 -6
- package/esm2022/src/services/modal/modal.helper.mjs +6 -6
- package/esm2022/src/services/preloader/preloader.mjs +21 -15
- package/esm2022/src/services/responsive/responsive.mjs +5 -5
- package/esm2022/src/services/rtl/rtl.service.mjs +6 -6
- package/esm2022/src/services/settings/index.mjs +3 -0
- package/esm2022/src/services/settings/settings.service.mjs +14 -6
- package/esm2022/src/services/title/title.service.mjs +6 -6
- package/esm2022/src/theme.module.mjs +9 -28
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +22 -18
- package/esm2022/theme-btn/theme-btn.module.mjs +7 -19
- package/fesm2022/layout-default.mjs +131 -91
- package/fesm2022/layout-default.mjs.map +1 -1
- package/fesm2022/setting-drawer.mjs +22 -22
- package/fesm2022/setting-drawer.mjs.map +1 -1
- package/fesm2022/theme-btn.mjs +26 -36
- package/fesm2022/theme-btn.mjs.map +1 -1
- package/fesm2022/theme.mjs +1769 -1732
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-default/style/_aside.less +9 -9
- package/layout-default/style/_header.less +5 -5
- package/layout-default/style/_layout.less +7 -7
- package/layout-default/style/_progress-bar.less +3 -3
- package/layout-default/style/fix/_reuse-tab.less +1 -1
- package/layout-default/style/fix/_sidebar-nav.less +5 -5
- package/layout-default/style/widgets/_app-icons.less +2 -2
- package/layout-default/style/widgets/_user.less +22 -21
- package/package.json +4 -4
- package/public_api.d.ts +3 -17
- package/setting-drawer/style/index.less +9 -9
- package/src/config.d.ts +16 -3
- package/src/pipes/date/date.pipe.d.ts +3 -4
- package/src/pipes/index.d.ts +5 -0
- package/src/pipes/keys/keys.pipe.d.ts +1 -1
- package/src/pipes/safe/html.pipe.d.ts +1 -1
- package/src/pipes/safe/url.pipe.d.ts +1 -1
- package/src/pipes/yn/yn.pipe.d.ts +1 -1
- package/src/provide.d.ts +23 -0
- package/src/services/i18n/i18n.pipe.d.ts +1 -1
- package/src/services/index.d.ts +10 -0
- package/src/services/menu/index.d.ts +2 -0
- package/src/services/preloader/preloader.d.ts +1 -1
- package/src/services/settings/index.d.ts +2 -0
- package/src/services/settings/settings.service.d.ts +2 -1
- package/src/theme.module.d.ts +11 -11
- package/system/_preloader.less +3 -4
- package/system/antd/_modal.less +3 -3
- package/system/antd/_table.less +1 -1
- package/system/ng/_preserve-white-spaces.less +1 -0
- package/system/utils/_other.less +4 -4
- package/system/utils/_position.less +2 -2
- package/system/utils/_scrollbar.less +1 -0
- package/system/widgets/_abs.less +1 -1
- package/system/widgets/_half-float.less +2 -1
- package/system/widgets/_masonry-grid.less +2 -1
- package/theme-btn/style/index.less +3 -3
- package/theme-btn/theme-btn.component.d.ts +3 -3
- package/theme-btn/theme-btn.module.d.ts +5 -5
package/system/_preloader.less
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 未被直接引用,为了尽可快渲染预加载状态,生成的CSS代码已直接在 `index.html` 中引用
|
|
3
3
|
*/
|
|
4
|
-
|
|
5
4
|
.preloader {
|
|
6
5
|
position: fixed;
|
|
6
|
+
z-index: 9999;
|
|
7
7
|
top: 0;
|
|
8
8
|
left: 0;
|
|
9
|
-
|
|
9
|
+
overflow: hidden;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
12
|
-
overflow: hidden;
|
|
13
12
|
background: #49a9ee;
|
|
14
13
|
transition: opacity 0.65s;
|
|
15
14
|
}
|
|
@@ -38,10 +37,10 @@
|
|
|
38
37
|
.cs-loader-inner {
|
|
39
38
|
position: absolute;
|
|
40
39
|
top: 50%;
|
|
40
|
+
transform: translateY(-50%);
|
|
41
41
|
width: 100%;
|
|
42
42
|
color: #fff;
|
|
43
43
|
text-align: center;
|
|
44
|
-
transform: translateY(-50%);
|
|
45
44
|
|
|
46
45
|
label {
|
|
47
46
|
display: inline-block;
|
package/system/antd/_modal.less
CHANGED
|
@@ -68,16 +68,16 @@
|
|
|
68
68
|
* ```
|
|
69
69
|
*/
|
|
70
70
|
margin: 0;
|
|
71
|
-
color: @modal-heading-color;
|
|
72
|
-
font-weight: 500;
|
|
73
71
|
font-size: @font-size-lg;
|
|
72
|
+
font-weight: 500;
|
|
74
73
|
line-height: 22px;
|
|
74
|
+
color: @modal-heading-color;
|
|
75
75
|
word-wrap: break-word;
|
|
76
76
|
|
|
77
77
|
small {
|
|
78
78
|
margin-left: @layout-gutter;
|
|
79
|
-
color: @muted-color;
|
|
80
79
|
font-size: 12px;
|
|
80
|
+
color: @muted-color;
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
|
package/system/antd/_table.less
CHANGED
|
@@ -98,8 +98,8 @@
|
|
|
98
98
|
align-items: center;
|
|
99
99
|
width: 100%;
|
|
100
100
|
padding: @nz-table-rep-padding-vertical @nz-table-rep-padding-horizontal;
|
|
101
|
-
white-space: inherit;
|
|
102
101
|
text-align: left !important;
|
|
102
|
+
white-space: inherit;
|
|
103
103
|
border-bottom: none;
|
|
104
104
|
|
|
105
105
|
.@{ant-prefix}-table-rep__title + *:not(.@{ant-prefix}-avatar) {
|
package/system/utils/_other.less
CHANGED
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
*
|
|
15
15
|
* 元素不能被用户缩放
|
|
16
16
|
*/
|
|
17
|
+
resize: none;
|
|
17
18
|
min-width: 100%;
|
|
18
19
|
max-width: 100%;
|
|
19
|
-
resize: none;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
&-data {
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
*
|
|
26
26
|
* 无数据元素
|
|
27
27
|
*/
|
|
28
|
-
color: rgba(0, 0, 0, 0.25);
|
|
29
28
|
font-size: 16px;
|
|
30
29
|
line-height: 64px;
|
|
30
|
+
color: rgba(0, 0, 0, 0.25);
|
|
31
31
|
text-align: center;
|
|
32
32
|
|
|
33
33
|
i {
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
*/
|
|
66
66
|
.page-loading {
|
|
67
67
|
position: absolute;
|
|
68
|
-
inset: 0;
|
|
69
68
|
z-index: 10000;
|
|
69
|
+
inset: 0;
|
|
70
70
|
padding-top: 200px;
|
|
71
71
|
text-align: center;
|
|
72
72
|
background: @background-color-base;
|
|
@@ -83,6 +83,6 @@
|
|
|
83
83
|
* 禁用样式,不可响应任何事件
|
|
84
84
|
*/
|
|
85
85
|
.disabled {
|
|
86
|
-
color: @disabled-color;
|
|
87
86
|
pointer-events: none;
|
|
87
|
+
color: @disabled-color;
|
|
88
88
|
}
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
*/
|
|
51
51
|
.fixed-top {
|
|
52
52
|
position: fixed;
|
|
53
|
+
z-index: @zindex-fixed;
|
|
53
54
|
top: 0;
|
|
54
55
|
right: 0;
|
|
55
56
|
left: 0;
|
|
56
|
-
z-index: @zindex-fixed;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
/**
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
*/
|
|
64
64
|
.fixed-bottom {
|
|
65
65
|
position: fixed;
|
|
66
|
+
z-index: @zindex-fixed;
|
|
66
67
|
right: 0;
|
|
67
68
|
bottom: 0;
|
|
68
69
|
left: 0;
|
|
69
|
-
z-index: @zindex-fixed;
|
|
70
70
|
}
|
package/system/widgets/_abs.less
CHANGED
|
@@ -24,10 +24,11 @@
|
|
|
24
24
|
|
|
25
25
|
.half-float-bottom {
|
|
26
26
|
position: absolute;
|
|
27
|
-
left: 50%;
|
|
28
27
|
z-index: 2;
|
|
28
|
+
left: 50%;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/* stylelint-disable-next-line order/order */
|
|
31
32
|
.for-each(@hafl-float-size, {
|
|
32
33
|
&.half-float-@{adKey} {
|
|
33
34
|
margin-bottom: ((@adValue / 2) + 10);
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
*/
|
|
16
16
|
.row-masonry {
|
|
17
17
|
position: relative;
|
|
18
|
+
column-gap: @masonry-column-gap;
|
|
18
19
|
width: 100%;
|
|
19
20
|
margin: 0;
|
|
20
21
|
padding: 0;
|
|
21
|
-
column-gap: @masonry-column-gap;
|
|
22
22
|
|
|
23
23
|
> .col-masonry {
|
|
24
24
|
display: inline-block;
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
+
/* stylelint-disable-next-line order/order */
|
|
35
36
|
.for-each(@grid-breakpoints, {
|
|
36
37
|
@media only screen and (min-width: @adValue) {
|
|
37
38
|
.loopColumn(@pos: 1) when (@pos < 10) {
|
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
.widget-theme-btn-mixin(@enabled) when(@enabled=true) {
|
|
4
4
|
@{theme-btn-prefix} {
|
|
5
|
+
cursor: pointer;
|
|
5
6
|
position: fixed;
|
|
7
|
+
z-index: 2147483640;
|
|
6
8
|
right: 32px;
|
|
7
9
|
bottom: 102px;
|
|
8
|
-
z-index: 2147483640;
|
|
9
10
|
display: flex;
|
|
10
11
|
flex-direction: column;
|
|
11
|
-
cursor: pointer;
|
|
12
12
|
|
|
13
13
|
&-active {
|
|
14
14
|
width: 44px;
|
|
15
15
|
height: 44px;
|
|
16
|
-
color: @primary-color;
|
|
17
16
|
font-size: 22px;
|
|
18
17
|
line-height: 44px;
|
|
18
|
+
color: @primary-color;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.ant-avatar {
|
|
@@ -15,7 +15,6 @@ export declare class ThemeBtnComponent implements OnInit, OnDestroy {
|
|
|
15
15
|
private platform;
|
|
16
16
|
private doc;
|
|
17
17
|
private directionality;
|
|
18
|
-
private KEYS;
|
|
19
18
|
private cdr;
|
|
20
19
|
private theme;
|
|
21
20
|
isDev: boolean;
|
|
@@ -25,12 +24,13 @@ export declare class ThemeBtnComponent implements OnInit, OnDestroy {
|
|
|
25
24
|
readonly themeChange: EventEmitter<string>;
|
|
26
25
|
private dir$;
|
|
27
26
|
dir: Direction;
|
|
27
|
+
private key;
|
|
28
28
|
constructor(renderer: Renderer2, configSrv: AlainConfigService, platform: Platform, doc: NzSafeAny, directionality: Directionality, KEYS: string, cdr: ChangeDetectorRef);
|
|
29
29
|
ngOnInit(): void;
|
|
30
30
|
private initTheme;
|
|
31
31
|
private updateChartTheme;
|
|
32
32
|
onThemeChange(theme: string): void;
|
|
33
33
|
ngOnDestroy(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnComponent, [null, null, null, null, { optional: true; },
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ThemeBtnComponent, "theme-btn", never, { "types": { "alias": "types"; "required": false; }; "devTips": { "alias": "devTips"; "required": false; }; "deployUrl": { "alias": "deployUrl"; "required": false; }; }, { "themeChange": "themeChange"; }, never, never,
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnComponent, [null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ThemeBtnComponent, "theme-btn", never, { "types": { "alias": "types"; "required": false; }; "devTips": { "alias": "devTips"; "required": false; }; "deployUrl": { "alias": "deployUrl"; "required": false; }; }, { "themeChange": "themeChange"; }, never, never, true, never>;
|
|
36
36
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "
|
|
4
|
-
import * as i3 from "ng-zorro-antd/
|
|
5
|
-
import * as i4 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "ng-zorro-antd/dropdown";
|
|
4
|
+
import * as i3 from "ng-zorro-antd/tooltip";
|
|
5
|
+
import * as i4 from "./theme-btn.component";
|
|
6
6
|
export declare class ThemeBtnModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeBtnModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ThemeBtnModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ThemeBtnModule, never, [typeof i1.CommonModule, typeof i2.NzDropDownModule, typeof i3.NzToolTipModule, typeof i4.ThemeBtnComponent], [typeof i4.ThemeBtnComponent]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<ThemeBtnModule>;
|
|
10
10
|
}
|