@delon/theme 16.4.2 → 17.0.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.
- 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
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
@{alain-default-prefix}__aside {
|
|
2
2
|
position: absolute;
|
|
3
|
+
z-index: @zindex + 5;
|
|
3
4
|
top: 0;
|
|
4
5
|
bottom: 0;
|
|
5
|
-
|
|
6
|
+
overflow: hidden;
|
|
6
7
|
width: @alain-default-aside-wd;
|
|
7
8
|
margin-top: @alain-default-header-hg;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
background-color: @alain-default-aside-bg;
|
|
10
9
|
backface-visibility: hidden;
|
|
10
|
+
background-color: @alain-default-aside-bg;
|
|
11
11
|
transition: width 0.2s @alain-default-ease, translate 0.2s @alain-default-ease;
|
|
12
12
|
-webkit-overflow-scrolling: touch;
|
|
13
13
|
|
|
14
14
|
&::after {
|
|
15
|
+
content: '';
|
|
15
16
|
position: absolute;
|
|
16
17
|
top: 0;
|
|
17
18
|
right: 0;
|
|
18
19
|
bottom: 0;
|
|
19
20
|
border-right: 1px solid @alain-default-content-heading-border;
|
|
20
|
-
content: '';
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&-wrap {
|
|
@@ -27,13 +27,13 @@
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
&-inner {
|
|
30
|
+
// Firefox
|
|
31
|
+
scrollbar-width: none;
|
|
32
|
+
scroll-snap-type: proximity;
|
|
33
|
+
overflow: hidden scroll;
|
|
30
34
|
flex: 1 1 0%;
|
|
31
|
-
overflow-x: hidden scroll;
|
|
32
35
|
-webkit-overflow-scrolling: touch;
|
|
33
|
-
scroll-snap-type: proximity;
|
|
34
36
|
scroll-snap-points-x: snaplist(100%, 200%, 300%, 400%, 500%);
|
|
35
|
-
// Firefox
|
|
36
|
-
scrollbar-width: none;
|
|
37
37
|
// Chrome
|
|
38
38
|
&::-webkit-scrollbar {
|
|
39
39
|
width: @alain-default-aside-scrollbar-height;
|
|
@@ -53,10 +53,10 @@
|
|
|
53
53
|
border-top: 1px solid @alain-default-content-heading-border;
|
|
54
54
|
|
|
55
55
|
&-collapsed {
|
|
56
|
+
cursor: pointer;
|
|
56
57
|
padding: 8px 0;
|
|
57
58
|
font-size: 16px;
|
|
58
59
|
text-align: center;
|
|
59
|
-
cursor: pointer;
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
&-item {
|
|
71
|
+
cursor: pointer;
|
|
71
72
|
display: block;
|
|
72
73
|
min-width: 50px;
|
|
73
74
|
padding: 8px 2px;
|
|
@@ -75,7 +76,6 @@
|
|
|
75
76
|
text-align: center;
|
|
76
77
|
border-radius: 2px;
|
|
77
78
|
outline: none;
|
|
78
|
-
cursor: pointer;
|
|
79
79
|
transition: background-color 300ms;
|
|
80
80
|
|
|
81
81
|
&:hover {
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
|
|
86
86
|
> i,
|
|
87
87
|
&-icon {
|
|
88
|
-
font-size: @alain-default-header-icon-fs !important;
|
|
89
88
|
// fix ant-dropdown-trigger
|
|
90
89
|
transform: none !important;
|
|
90
|
+
font-size: @alain-default-header-icon-fs !important;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
@@ -105,8 +105,8 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
&-disabled {
|
|
108
|
-
opacity: .5;
|
|
109
108
|
pointer-events: none;
|
|
109
|
+
opacity: .5;
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
}
|
|
@@ -166,8 +166,8 @@
|
|
|
166
166
|
.@{ant-prefix}-input-group-addon,
|
|
167
167
|
.@{ant-prefix}-input-affix-wrapper {
|
|
168
168
|
i {
|
|
169
|
-
color: @grey-8;
|
|
170
169
|
transform: rotate(90deg);
|
|
170
|
+
color: @grey-8;
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -176,9 +176,9 @@
|
|
|
176
176
|
@media (max-width: @mobile-max) {
|
|
177
177
|
@{alain-default-prefix}__search {
|
|
178
178
|
position: absolute;
|
|
179
|
+
z-index: @zindex+20;
|
|
179
180
|
top: 0;
|
|
180
181
|
left: 0;
|
|
181
|
-
z-index: @zindex+20;
|
|
182
182
|
align-items: center;
|
|
183
183
|
width: 100%;
|
|
184
184
|
height: 100%;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
html {
|
|
2
|
-
height: 100%; // http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away
|
|
3
|
-
direction: ltr;
|
|
4
2
|
touch-action: manipulation;
|
|
3
|
+
direction: ltr;
|
|
4
|
+
height: 100%; // http://updates.html5rocks.com/2013/12/300ms-tap-delay-gone-away
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
html,
|
|
@@ -18,11 +18,11 @@ body {
|
|
|
18
18
|
|
|
19
19
|
@{alain-default-prefix} {
|
|
20
20
|
position: relative;
|
|
21
|
+
overflow-x: hidden;
|
|
21
22
|
display: block;
|
|
22
23
|
width: 100%;
|
|
23
24
|
height: auto;
|
|
24
25
|
min-height: 100%;
|
|
25
|
-
overflow-x: hidden;
|
|
26
26
|
|
|
27
27
|
&__unwrap {
|
|
28
28
|
margin-right: -@alain-default-content-padding;
|
|
@@ -36,6 +36,7 @@ body {
|
|
|
36
36
|
|
|
37
37
|
&__content {
|
|
38
38
|
margin: 0 @alain-default-content-padding @alain-default-content-padding @alain-default-content-padding;
|
|
39
|
+
.router-ant();
|
|
39
40
|
|
|
40
41
|
&-title {
|
|
41
42
|
display: flex;
|
|
@@ -53,13 +54,13 @@ body {
|
|
|
53
54
|
|
|
54
55
|
> h1 {
|
|
55
56
|
margin-bottom: 0;
|
|
56
|
-
font-weight: normal;
|
|
57
57
|
font-size: 18px;
|
|
58
|
+
font-weight: normal;
|
|
58
59
|
|
|
59
60
|
> small {
|
|
60
61
|
display: block;
|
|
61
|
-
color: @muted-color;
|
|
62
62
|
font-size: 12px;
|
|
63
|
+
color: @muted-color;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
}
|
|
@@ -67,13 +68,12 @@ body {
|
|
|
67
68
|
nz-input-group {
|
|
68
69
|
width: auto;
|
|
69
70
|
}
|
|
70
|
-
.router-ant();
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&__hide-aside {
|
|
74
74
|
@{alain-default-prefix}__content {
|
|
75
|
-
margin-left: @alain-default-content-padding !important;
|
|
76
75
|
transform: none !important;
|
|
76
|
+
margin-left: @alain-default-content-padding !important;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
@{alain-default-prefix}__progress-bar {
|
|
2
2
|
position: fixed;
|
|
3
3
|
z-index: @zindex-base + 20;
|
|
4
|
+
overflow: hidden;
|
|
4
5
|
width: 100vw;
|
|
5
6
|
height: 4px;
|
|
6
|
-
overflow: hidden;
|
|
7
7
|
background: fade(#ddd, 40%);
|
|
8
8
|
|
|
9
9
|
&::after {
|
|
10
|
+
content: ' ';
|
|
11
|
+
transform-origin: top left;
|
|
10
12
|
display: block;
|
|
11
13
|
width: 33.3vw;
|
|
12
14
|
height: 100%;
|
|
13
|
-
transform-origin: top left;
|
|
14
15
|
animation: gradcolours 5s steps(1) infinite, loadthird 1s infinite linear;
|
|
15
|
-
content: ' ';
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
@{alain-default-prefix}__fixed {
|
|
9
9
|
@{reuse-tab-prefix} {
|
|
10
10
|
position: fixed;
|
|
11
|
+
z-index: @zindex-fixed + 1;
|
|
11
12
|
top: @alain-default-header-hg;
|
|
12
13
|
right: @alain-default-content-padding;
|
|
13
14
|
left: @alain-default-aside-width;
|
|
14
|
-
z-index: @zindex-fixed + 1;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
transition: border-left-color 0.4s ease;
|
|
16
16
|
|
|
17
17
|
&-link {
|
|
18
|
+
user-select: none;
|
|
18
19
|
position: relative;
|
|
20
|
+
overflow: hidden;
|
|
19
21
|
display: block;
|
|
20
22
|
padding: @alain-default-aside-nav-padding-top-bottom @alain-default-aside-nav-padding-left-right * 2
|
|
21
23
|
@alain-default-aside-nav-padding-top-bottom @alain-default-aside-nav-padding-left-right;
|
|
22
|
-
overflow: hidden;
|
|
23
24
|
color: @alain-default-aside-nav-text-color;
|
|
24
|
-
white-space: nowrap;
|
|
25
25
|
text-decoration: none !important;
|
|
26
26
|
text-overflow: ellipsis;
|
|
27
|
-
|
|
27
|
+
white-space: nowrap;
|
|
28
28
|
|
|
29
29
|
&:hover {
|
|
30
30
|
color: @alain-default-aside-nav-text-hover-color;
|
|
@@ -97,8 +97,8 @@
|
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
&__sub {
|
|
100
|
-
display: none;
|
|
101
100
|
overflow: hidden;
|
|
101
|
+
display: none;
|
|
102
102
|
|
|
103
103
|
@{sidebar-nav-prefix}__item {
|
|
104
104
|
border-left: 0 !important;
|
|
@@ -113,6 +113,7 @@
|
|
|
113
113
|
|
|
114
114
|
&::before,
|
|
115
115
|
&::after {
|
|
116
|
+
content: '';
|
|
116
117
|
position: absolute;
|
|
117
118
|
width: 6px;
|
|
118
119
|
height: 1.5px;
|
|
@@ -120,7 +121,6 @@
|
|
|
120
121
|
background-image: linear-gradient(to right, @menu-item-color, @menu-item-color);
|
|
121
122
|
border-radius: 2px;
|
|
122
123
|
transition: background-color 0.3s @ease-in-out, transform 0.3s @ease-in-out, top 0.3s @ease-in-out;
|
|
123
|
-
content: '';
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
&::before {
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
.app-icons {
|
|
3
3
|
padding: @layout-gutter * 2;
|
|
4
4
|
.@{ant-prefix}-col-6 {
|
|
5
|
+
cursor: pointer;
|
|
5
6
|
padding: (@layout-gutter * 2) 0;
|
|
6
7
|
text-align: center;
|
|
7
8
|
border-radius: 4px;
|
|
8
|
-
cursor: pointer;
|
|
9
9
|
transition: background-color 300ms;
|
|
10
10
|
|
|
11
11
|
&:hover {
|
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
small {
|
|
23
23
|
display: block;
|
|
24
24
|
padding-top: 4px;
|
|
25
|
-
color: #9c9c9c;
|
|
26
25
|
font-size: 14px;
|
|
26
|
+
color: #9c9c9c;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}
|
|
@@ -3,22 +3,23 @@
|
|
|
3
3
|
|
|
4
4
|
.alain-default-aside-user-mixin(@enabled) when(@enabled=true) {
|
|
5
5
|
@{alain-default-prefix}__aside-user {
|
|
6
|
+
cursor: pointer;
|
|
6
7
|
display: flex;
|
|
7
8
|
align-items: center;
|
|
8
9
|
justify-content: center;
|
|
9
10
|
margin: @alain-default-user-block-margin @alain-default-user-block-margin 0 @alain-default-user-block-margin;
|
|
10
|
-
|
|
11
|
+
|
|
11
12
|
.@{ant-prefix}-dropdown-trigger {
|
|
12
13
|
display: flex;
|
|
13
14
|
align-items: center;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
&-info {
|
|
17
|
-
flex: 1;
|
|
18
18
|
overflow: hidden;
|
|
19
|
+
flex: 1;
|
|
19
20
|
color: @text-color;
|
|
20
|
-
white-space: nowrap;
|
|
21
21
|
text-overflow: ellipsis;
|
|
22
|
+
white-space: nowrap;
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
&-avatar {
|
|
@@ -26,24 +27,6 @@
|
|
|
26
27
|
}
|
|
27
28
|
}
|
|
28
29
|
|
|
29
|
-
// Desktop
|
|
30
|
-
@media (min-width: @mobile-min) {
|
|
31
|
-
@{alain-default-prefix}__collapsed {
|
|
32
|
-
@{alain-default-prefix}__aside-user {
|
|
33
|
-
width: @alain-default-aside-collapsed-wd;
|
|
34
|
-
margin-left: 0;
|
|
35
|
-
|
|
36
|
-
&-info {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
&-avatar {
|
|
41
|
-
margin: 0 auto;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
30
|
[dir='rtl'] {
|
|
48
31
|
@{alain-default-prefix}__aside-user {
|
|
49
32
|
&-avatar {
|
|
@@ -64,5 +47,23 @@
|
|
|
64
47
|
}
|
|
65
48
|
}
|
|
66
49
|
}
|
|
50
|
+
|
|
51
|
+
// Desktop
|
|
52
|
+
@media (min-width: @mobile-min) {
|
|
53
|
+
@{alain-default-prefix}__collapsed {
|
|
54
|
+
@{alain-default-prefix}__aside-user {
|
|
55
|
+
width: @alain-default-aside-collapsed-wd;
|
|
56
|
+
margin-left: 0;
|
|
57
|
+
|
|
58
|
+
&-info {
|
|
59
|
+
display: none;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&-avatar {
|
|
63
|
+
margin: 0 auto;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
67
68
|
}
|
|
68
69
|
.alain-default-aside-user-mixin(@alain-default-aside-user-enabled);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "17.0.0",
|
|
4
4
|
"author": "cipchk<cipchk@qq.com>",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
"component"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"ng-zorro-antd": "^
|
|
25
|
-
"@delon/acl": "^
|
|
26
|
-
"@delon/util": "^
|
|
24
|
+
"ng-zorro-antd": "^17.0.1",
|
|
25
|
+
"@delon/acl": "^17.0.0",
|
|
26
|
+
"@delon/util": "^17.0.0",
|
|
27
27
|
"tslib": "^2.3.0"
|
|
28
28
|
},
|
|
29
29
|
"module": "fesm2022/theme.mjs",
|
package/public_api.d.ts
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export * from './src/services/menu/interface';
|
|
3
|
-
export * from './src/services/menu/menu.service';
|
|
4
|
-
export * from './src/services/settings/types';
|
|
5
|
-
export * from './src/services/settings/settings.service';
|
|
6
|
-
export * from './src/services/responsive/responsive';
|
|
7
|
-
export * from './src/services/rtl/rtl.service';
|
|
8
|
-
export * from './src/services/title/title.service';
|
|
9
|
-
export * from './src/services/i18n/index';
|
|
1
|
+
export * from './src/services/index';
|
|
10
2
|
export * from './src/locale/index';
|
|
11
|
-
export * from './src/
|
|
12
|
-
export * from './src/services/drawer/drawer.helper';
|
|
13
|
-
export * from './src/services/http/index';
|
|
14
|
-
export * from './src/pipes/date/date.pipe';
|
|
15
|
-
export * from './src/pipes/keys/keys.pipe';
|
|
16
|
-
export * from './src/pipes/yn/yn.pipe';
|
|
17
|
-
export * from './src/pipes/safe/html.pipe';
|
|
18
|
-
export * from './src/pipes/safe/url.pipe';
|
|
3
|
+
export * from './src/pipes/index';
|
|
19
4
|
export * from './src/config';
|
|
20
5
|
export * from './src/theme.module';
|
|
6
|
+
export * from './src/provide';
|
|
21
7
|
export * from './src/router/optional-preloader';
|
|
22
8
|
export { VERSION } from './src/version';
|
|
@@ -28,33 +28,35 @@
|
|
|
28
28
|
|
|
29
29
|
&__title {
|
|
30
30
|
margin-bottom: 12px;
|
|
31
|
-
color: @heading-color;
|
|
32
31
|
font-size: 14px;
|
|
33
32
|
line-height: 22px;
|
|
33
|
+
color: @heading-color;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
&__theme {
|
|
37
|
-
margin-top: 24px;
|
|
38
37
|
overflow: hidden;
|
|
38
|
+
margin-top: 24px;
|
|
39
39
|
|
|
40
40
|
&-tag {
|
|
41
|
+
cursor: pointer;
|
|
41
42
|
float: left;
|
|
42
43
|
width: 20px;
|
|
43
44
|
height: 20px;
|
|
44
45
|
margin-right: 8px;
|
|
45
|
-
color: #fff;
|
|
46
46
|
font-weight: bold;
|
|
47
|
+
color: #fff;
|
|
47
48
|
text-align: center;
|
|
48
49
|
border-radius: 2px;
|
|
49
|
-
cursor: pointer;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&__handle {
|
|
54
|
+
pointer-events: auto;
|
|
55
|
+
cursor: pointer;
|
|
54
56
|
position: fixed;
|
|
57
|
+
z-index: @zindex-modal-mask - 1;
|
|
55
58
|
top: 240px;
|
|
56
59
|
right: 0;
|
|
57
|
-
z-index: @zindex-modal-mask - 1;
|
|
58
60
|
display: flex;
|
|
59
61
|
align-items: center;
|
|
60
62
|
justify-content: center;
|
|
@@ -64,18 +66,16 @@
|
|
|
64
66
|
text-align: center;
|
|
65
67
|
background: @primary-color;
|
|
66
68
|
border-radius: 4px 0 0 4px;
|
|
67
|
-
cursor: pointer;
|
|
68
69
|
transition: right @animation-duration-slow @ease-base-in;
|
|
69
|
-
pointer-events: auto;
|
|
70
70
|
|
|
71
71
|
&-icon {
|
|
72
|
-
color: #fff;
|
|
73
72
|
font-size: 20px;
|
|
73
|
+
color: #fff;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&-opened {
|
|
77
|
-
right: @setting-drawer-width;
|
|
78
77
|
z-index: @zindex-modal-mask + 1;
|
|
78
|
+
right: @setting-drawer-width;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
}
|
package/src/config.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { HttpInterceptorFn } from '@angular/common/http';
|
|
2
|
+
import type { EnvironmentProviders, ModuleWithProviders, Provider, Type } from '@angular/core';
|
|
2
3
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
3
4
|
export interface Environment {
|
|
4
5
|
[key: string]: NzSafeAny;
|
|
@@ -21,11 +22,23 @@ export interface Environment {
|
|
|
21
22
|
*/
|
|
22
23
|
api: ApiConfig;
|
|
23
24
|
/**
|
|
24
|
-
* Defined imported modules in `
|
|
25
|
+
* Defined imported modules in `app-config.ts`
|
|
25
26
|
*
|
|
26
|
-
* 定义在 `
|
|
27
|
+
* 定义在 `app-config.ts` 导入的模块列表
|
|
27
28
|
*/
|
|
28
29
|
modules?: Array<Type<NzSafeAny> | ModuleWithProviders<NzSafeAny> | NzSafeAny[]>;
|
|
30
|
+
/**
|
|
31
|
+
* Defined providers in `app-config.ts`
|
|
32
|
+
*
|
|
33
|
+
* 定义在 `app-config.ts` 导入的 providers 列表
|
|
34
|
+
*/
|
|
35
|
+
providers?: Array<Provider | EnvironmentProviders>;
|
|
36
|
+
/**
|
|
37
|
+
* Defined interceptorFns in `app-config.ts`
|
|
38
|
+
*
|
|
39
|
+
* 定义在 `app-config.ts` 导入的 interceptorFns 列表
|
|
40
|
+
*/
|
|
41
|
+
interceptorFns?: HttpInterceptorFn[];
|
|
29
42
|
}
|
|
30
43
|
export interface ApiConfig {
|
|
31
44
|
[key: string]: NzSafeAny;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { NzI18nService } from 'ng-zorro-antd/i18n';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class DatePipe implements PipeTransform {
|
|
5
4
|
private nzI18n;
|
|
6
|
-
|
|
7
|
-
transform(value: Date | string | number, formatString?: string): string;
|
|
5
|
+
private defFormat;
|
|
6
|
+
transform(value: Date | string | number, formatString?: string | null): string;
|
|
8
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date",
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date", true>;
|
|
10
9
|
}
|
|
@@ -7,5 +7,5 @@ import * as i0 from "@angular/core";
|
|
|
7
7
|
export declare class KeysPipe implements PipeTransform {
|
|
8
8
|
transform(value: NzSafeAny, keyIsNumber?: boolean): NzSafeAny[];
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
|
|
10
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys",
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys", true>;
|
|
11
11
|
}
|
|
@@ -6,5 +6,5 @@ export declare class HTMLPipe implements PipeTransform {
|
|
|
6
6
|
constructor(dom: DomSanitizer);
|
|
7
7
|
transform(html: string): string | SafeHtml;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTMLPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html",
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HTMLPipe, "html", true>;
|
|
10
10
|
}
|
|
@@ -6,5 +6,5 @@ export declare class URLPipe implements PipeTransform {
|
|
|
6
6
|
constructor(dom: DomSanitizer);
|
|
7
7
|
transform(url: string): string | SafeUrl;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<URLPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url",
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<URLPipe, "url", true>;
|
|
10
10
|
}
|
|
@@ -13,5 +13,5 @@ export declare class YNPipe implements PipeTransform {
|
|
|
13
13
|
constructor(dom: DomSanitizer);
|
|
14
14
|
transform(value: boolean, yes?: string, no?: string, mode?: YNMode, isSafeHtml?: boolean): SafeHtml;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<YNPipe, never>;
|
|
16
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn",
|
|
16
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<YNPipe, "yn", true>;
|
|
17
17
|
}
|
package/src/provide.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { EnvironmentProviders, Type } from '@angular/core';
|
|
2
|
+
import type { IconDefinition } from '@ant-design/icons-angular';
|
|
3
|
+
import { AlainConfig } from '@delon/util/config';
|
|
4
|
+
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
|
+
export interface AlainProvideOptions {
|
|
6
|
+
config?: AlainConfig;
|
|
7
|
+
/**
|
|
8
|
+
* Initialize default language
|
|
9
|
+
*
|
|
10
|
+
* 初始化默认语言
|
|
11
|
+
*/
|
|
12
|
+
defaultLang?: AlainProvideLang;
|
|
13
|
+
i18nClass?: Type<NzSafeAny>;
|
|
14
|
+
icons?: IconDefinition[];
|
|
15
|
+
}
|
|
16
|
+
export interface AlainProvideLang {
|
|
17
|
+
abbr: string;
|
|
18
|
+
ng: NzSafeAny;
|
|
19
|
+
zorro: NzSafeAny;
|
|
20
|
+
date: NzSafeAny;
|
|
21
|
+
delon: NzSafeAny;
|
|
22
|
+
}
|
|
23
|
+
export declare function provideAlain(options: AlainProvideOptions): EnvironmentProviders;
|
|
@@ -6,5 +6,5 @@ export declare class I18nPipe implements PipeTransform {
|
|
|
6
6
|
constructor(i18n: AlainI18NService);
|
|
7
7
|
transform(key: string, params?: Record<string, unknown>): string;
|
|
8
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<I18nPipe, never>;
|
|
9
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n",
|
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<I18nPipe, "i18n", true>;
|
|
10
10
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './preloader/preloader';
|
|
2
|
+
export * from './menu/index';
|
|
3
|
+
export * from './settings/index';
|
|
4
|
+
export * from './responsive/responsive';
|
|
5
|
+
export * from './rtl/rtl.service';
|
|
6
|
+
export * from './title/title.service';
|
|
7
|
+
export * from './i18n/index';
|
|
8
|
+
export * from './modal/modal.helper';
|
|
9
|
+
export * from './drawer/drawer.helper';
|
|
10
|
+
export * from './http/index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function stepPreloader(): () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Platform } from '@angular/cdk/platform';
|
|
2
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { InjectionToken, Provider } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
|
5
5
|
import { App, Layout, SettingsNotify, User } from './types';
|
|
@@ -13,6 +13,7 @@ export interface SettingsKeys {
|
|
|
13
13
|
app: string;
|
|
14
14
|
}
|
|
15
15
|
export declare const ALAIN_SETTING_KEYS: InjectionToken<SettingsKeys>;
|
|
16
|
+
export declare const ALAIN_SETTING_DEFAULT: Provider;
|
|
16
17
|
export declare class SettingsService<L extends Layout = Layout, U extends User = User, A extends App = App> {
|
|
17
18
|
private platform;
|
|
18
19
|
private KEYS;
|
package/src/theme.module.d.ts
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { NzIconService } from 'ng-zorro-antd/icon';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
import * as i3 from "
|
|
7
|
-
import * as i4 from "
|
|
8
|
-
import * as i5 from "./pipes/
|
|
9
|
-
import * as i6 from "./pipes/
|
|
10
|
-
import * as i7 from "
|
|
11
|
-
import * as i8 from "
|
|
12
|
-
import * as i9 from "
|
|
13
|
-
import * as i10 from "
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/router";
|
|
6
|
+
import * as i3 from "@angular/cdk/overlay";
|
|
7
|
+
import * as i4 from "ng-zorro-antd/i18n";
|
|
8
|
+
import * as i5 from "./pipes/date/date.pipe";
|
|
9
|
+
import * as i6 from "./pipes/keys/keys.pipe";
|
|
10
|
+
import * as i7 from "./pipes/yn/yn.pipe";
|
|
11
|
+
import * as i8 from "./services/i18n/i18n.pipe";
|
|
12
|
+
import * as i9 from "./pipes/safe/html.pipe";
|
|
13
|
+
import * as i10 from "./pipes/safe/url.pipe";
|
|
14
14
|
import * as i11 from "./locale/locale.module";
|
|
15
15
|
export declare class AlainThemeModule {
|
|
16
16
|
constructor(iconSrv: NzIconService);
|
|
17
17
|
static forRoot(): ModuleWithProviders<AlainThemeModule>;
|
|
18
18
|
static forChild(): ModuleWithProviders<AlainThemeModule>;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<AlainThemeModule, never>;
|
|
20
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AlainThemeModule, [typeof i1.
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AlainThemeModule, never, [typeof i1.CommonModule, typeof i2.RouterModule, typeof i3.OverlayModule, typeof i4.NzI18nModule, typeof i5.DatePipe, typeof i6.KeysPipe, typeof i7.YNPipe, typeof i8.I18nPipe, typeof i9.HTMLPipe, typeof i10.URLPipe], [typeof i5.DatePipe, typeof i6.KeysPipe, typeof i7.YNPipe, typeof i8.I18nPipe, typeof i9.HTMLPipe, typeof i10.URLPipe, typeof i11.DelonLocaleModule]>;
|
|
21
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<AlainThemeModule>;
|
|
22
22
|
}
|