@delon/theme 12.4.2 → 13.1.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.
Files changed (219) hide show
  1. package/compact.css +1278 -750
  2. package/compact.min.css +1 -1
  3. package/dark.css +1325 -797
  4. package/dark.min.css +1 -1
  5. package/default.css +1286 -758
  6. package/default.min.css +1 -1
  7. package/{esm2015/layout-blank/layout-blank.js → esm2020/layout-blank/layout-blank.mjs} +0 -0
  8. package/{esm2015/layout-blank/public_api.js → esm2020/layout-blank/public_api.mjs} +0 -0
  9. package/{esm2015/layout-default/layout-default.js → esm2020/layout-default/layout-default.mjs} +0 -0
  10. package/esm2020/layout-default/layout-header-item-trigger.directive.mjs +16 -0
  11. package/esm2020/layout-default/layout-header-item.component.mjs +33 -0
  12. package/esm2020/layout-default/layout-header.component.mjs +123 -0
  13. package/esm2020/layout-default/layout-nav.component.mjs +307 -0
  14. package/esm2020/layout-default/layout.component.mjs +132 -0
  15. package/esm2020/layout-default/layout.module.mjs +69 -0
  16. package/{esm2015/layout-default/public_api.js → esm2020/layout-default/public_api.mjs} +0 -0
  17. package/{esm2015/layout-default/types.js → esm2020/layout-default/types.mjs} +0 -0
  18. package/esm2020/public_api.mjs +25 -0
  19. package/{esm2015/setting-drawer/public_api.js → esm2020/setting-drawer/public_api.mjs} +0 -0
  20. package/esm2020/setting-drawer/setting-drawer-item.component.mjs +35 -0
  21. package/esm2020/setting-drawer/setting-drawer.component.mjs +192 -0
  22. package/{esm2015/setting-drawer/setting-drawer.js → esm2020/setting-drawer/setting-drawer.mjs} +0 -0
  23. package/esm2020/setting-drawer/setting-drawer.module.mjs +68 -0
  24. package/{esm2015/setting-drawer/setting-drawer.types.js → esm2020/setting-drawer/setting-drawer.types.mjs} +0 -0
  25. package/{esm2015/src/config.js → esm2020/src/config.mjs} +0 -0
  26. package/{esm2015/src/locale/index.js → esm2020/src/locale/index.mjs} +0 -0
  27. package/{esm2015/src/locale/languages/el-GR.js → esm2020/src/locale/languages/el-GR.mjs} +0 -0
  28. package/{esm2015/src/locale/languages/en-US.js → esm2020/src/locale/languages/en-US.mjs} +0 -0
  29. package/{esm2015/src/locale/languages/es-ES.js → esm2020/src/locale/languages/es-ES.mjs} +0 -0
  30. package/{esm2015/src/locale/languages/fr-FR.js → esm2020/src/locale/languages/fr-FR.mjs} +0 -0
  31. package/{esm2015/src/locale/languages/hr-HR.js → esm2020/src/locale/languages/hr-HR.mjs} +0 -0
  32. package/{esm2015/src/locale/languages/it-IT.js → esm2020/src/locale/languages/it-IT.mjs} +0 -0
  33. package/{esm2015/src/locale/languages/ja-JP.js → esm2020/src/locale/languages/ja-JP.mjs} +0 -0
  34. package/{esm2015/src/locale/languages/ko-KR.js → esm2020/src/locale/languages/ko-KR.mjs} +0 -0
  35. package/{esm2015/src/locale/languages/pl-PL.js → esm2020/src/locale/languages/pl-PL.mjs} +0 -0
  36. package/{esm2015/src/locale/languages/sl-SI.js → esm2020/src/locale/languages/sl-SI.mjs} +0 -0
  37. package/{esm2015/src/locale/languages/tr-TR.js → esm2020/src/locale/languages/tr-TR.mjs} +0 -0
  38. package/{esm2015/src/locale/languages/zh-CN.js → esm2020/src/locale/languages/zh-CN.mjs} +0 -0
  39. package/{esm2015/src/locale/languages/zh-TW.js → esm2020/src/locale/languages/zh-TW.mjs} +0 -0
  40. package/esm2020/src/locale/locale.module.mjs +17 -0
  41. package/esm2020/src/locale/locale.service.mjs +45 -0
  42. package/{esm2015/src/locale/locale.tokens.js → esm2020/src/locale/locale.tokens.mjs} +0 -0
  43. package/{esm2015/src/locale/locale.types.js → esm2020/src/locale/locale.types.mjs} +0 -0
  44. package/{esm2015/src/locale/public_api.js → esm2020/src/locale/public_api.mjs} +0 -0
  45. package/esm2020/src/pipes/date/date.pipe.mjs +24 -0
  46. package/esm2020/src/pipes/keys/keys.pipe.mjs +21 -0
  47. package/esm2020/src/pipes/safe/html.pipe.mjs +18 -0
  48. package/esm2020/src/pipes/safe/url.pipe.mjs +18 -0
  49. package/esm2020/src/pipes/yn/yn.pipe.mjs +38 -0
  50. package/esm2020/src/router/optional-preloader.mjs +22 -0
  51. package/esm2020/src/services/drawer/drawer.helper.mjs +91 -0
  52. package/esm2020/src/services/http/http.client.mjs +154 -0
  53. package/esm2020/src/services/http/http.decorator.mjs +215 -0
  54. package/esm2020/src/services/i18n/i18n.mjs +97 -0
  55. package/esm2020/src/services/i18n/i18n.pipe.mjs +21 -0
  56. package/{esm2015/src/services/menu/interface.js → esm2020/src/services/menu/interface.mjs} +0 -0
  57. package/esm2020/src/services/menu/menu.service.mjs +252 -0
  58. package/esm2020/src/services/modal/modal.helper.mjs +106 -0
  59. package/{esm2015/src/services/preloader/preloader.js → esm2020/src/services/preloader/preloader.mjs} +0 -0
  60. package/esm2020/src/services/responsive/responsive.mjs +46 -0
  61. package/esm2020/src/services/rtl/rtl.service.mjs +101 -0
  62. package/esm2020/src/services/settings/settings.service.mjs +100 -0
  63. package/{esm2015/src/services/settings/types.js → esm2020/src/services/settings/types.mjs} +0 -0
  64. package/esm2020/src/services/title/title.service.mjs +124 -0
  65. package/esm2020/src/theme.module.mjs +76 -0
  66. package/{esm2015/src/version.js → esm2020/src/version.mjs} +1 -1
  67. package/{esm2015/theme-btn/public_api.js → esm2020/theme-btn/public_api.mjs} +0 -0
  68. package/esm2020/theme-btn/theme-btn.component.mjs +106 -0
  69. package/esm2020/theme-btn/theme-btn.mjs +5 -0
  70. package/esm2020/theme-btn/theme-btn.module.mjs +32 -0
  71. package/esm2020/theme.mjs +5 -0
  72. package/fesm2015/{layout-blank.js → layout-blank.mjs} +1 -1
  73. package/fesm2015/layout-blank.mjs.map +1 -0
  74. package/fesm2015/layout-default.mjs +654 -0
  75. package/fesm2015/layout-default.mjs.map +1 -0
  76. package/fesm2015/setting-drawer.mjs +487 -0
  77. package/fesm2015/setting-drawer.mjs.map +1 -0
  78. package/fesm2015/theme-btn.mjs +144 -0
  79. package/fesm2015/theme-btn.mjs.map +1 -0
  80. package/fesm2015/{theme.js → theme.mjs} +226 -188
  81. package/fesm2015/theme.mjs.map +1 -0
  82. package/fesm2020/layout-blank.mjs +7 -0
  83. package/fesm2020/layout-blank.mjs.map +1 -0
  84. package/fesm2020/layout-default.mjs +654 -0
  85. package/fesm2020/layout-default.mjs.map +1 -0
  86. package/fesm2020/setting-drawer.mjs +482 -0
  87. package/fesm2020/setting-drawer.mjs.map +1 -0
  88. package/fesm2020/theme-btn.mjs +141 -0
  89. package/fesm2020/theme-btn.mjs.map +1 -0
  90. package/fesm2020/theme.mjs +2575 -0
  91. package/fesm2020/theme.mjs.map +1 -0
  92. package/layout-blank/layout-blank.d.ts +1 -0
  93. package/layout-blank/package.json +5 -6
  94. package/layout-default/layout-default.d.ts +1 -0
  95. package/layout-default/layout-header-item-trigger.directive.d.ts +3 -0
  96. package/layout-default/layout-header-item.component.d.ts +3 -0
  97. package/layout-default/layout-header.component.d.ts +8 -5
  98. package/layout-default/layout-nav.component.d.ts +4 -1
  99. package/layout-default/layout.component.d.ts +6 -3
  100. package/layout-default/layout.module.d.ts +17 -0
  101. package/layout-default/package.json +5 -6
  102. package/layout-default/style/_aside.less +7 -10
  103. package/layout-default/style/_fixed.less +2 -0
  104. package/layout-default/style/_header.less +21 -0
  105. package/layout-default/style/_layout.less +7 -0
  106. package/layout-default/style/_progress-bar.less +6 -0
  107. package/layout-default/style/fix/_full-content.less +4 -0
  108. package/layout-default/style/widgets/_app-icons.less +3 -0
  109. package/layout-default/style/widgets/_user.less +5 -0
  110. package/package.json +55 -11
  111. package/public_api.d.ts +1 -0
  112. package/setting-drawer/package.json +5 -6
  113. package/setting-drawer/setting-drawer-item.component.d.ts +3 -0
  114. package/setting-drawer/setting-drawer.component.d.ts +3 -0
  115. package/setting-drawer/setting-drawer.d.ts +1 -0
  116. package/setting-drawer/setting-drawer.module.d.ts +18 -0
  117. package/setting-drawer/style/index.less +9 -0
  118. package/setting-drawer/style/rtl.less +1 -0
  119. package/src/locale/locale.module.d.ts +4 -0
  120. package/src/locale/locale.service.d.ts +3 -0
  121. package/src/pipes/date/date.pipe.d.ts +3 -0
  122. package/src/pipes/keys/keys.pipe.d.ts +3 -0
  123. package/src/pipes/safe/html.pipe.d.ts +3 -0
  124. package/src/pipes/safe/url.pipe.d.ts +3 -0
  125. package/src/pipes/yn/style/index.less +3 -0
  126. package/src/pipes/yn/yn.pipe.d.ts +3 -0
  127. package/src/services/drawer/drawer.helper.d.ts +3 -0
  128. package/src/services/http/http.client.d.ts +3 -0
  129. package/src/services/http/http.decorator.d.ts +3 -0
  130. package/src/services/i18n/i18n.d.ts +5 -0
  131. package/src/services/i18n/i18n.pipe.d.ts +3 -0
  132. package/src/services/menu/menu.service.d.ts +5 -0
  133. package/src/services/modal/modal.helper.d.ts +3 -0
  134. package/src/services/responsive/responsive.d.ts +3 -0
  135. package/src/services/rtl/rtl.service.d.ts +3 -0
  136. package/src/services/settings/settings.service.d.ts +9 -0
  137. package/src/services/title/title.service.d.ts +3 -0
  138. package/src/theme.module.d.ts +15 -0
  139. package/system/_preloader.less +10 -0
  140. package/system/_type.less +5 -0
  141. package/system/antd/_modal.less +5 -0
  142. package/system/antd/_table.less +7 -0
  143. package/system/index.less +3 -3
  144. package/system/mixins/_freak.less +2 -2
  145. package/system/mixins/_text-truncate.less +2 -0
  146. package/system/ng/_form.less +1 -0
  147. package/system/theme-default.less +3 -1
  148. package/system/utils/_display.less +9 -0
  149. package/system/utils/_other.less +2 -0
  150. package/system/utils/_scrollbar.less +3 -0
  151. package/system/widgets/_abs.less +3 -0
  152. package/system/widgets/_half-float.less +2 -0
  153. package/system/widgets/_masonry-grid.less +2 -0
  154. package/theme-btn/package.json +6 -7
  155. package/theme-btn/style/index.less +1 -0
  156. package/theme-btn/theme-btn.component.d.ts +3 -0
  157. package/theme-btn/{layout-theme-btn.d.ts → theme-btn.d.ts} +1 -0
  158. package/theme-btn/theme-btn.module.d.ts +8 -0
  159. package/theme-compact.less +1 -1
  160. package/theme-dark.less +1 -1
  161. package/theme-default.less +1 -1
  162. package/theme.d.ts +1 -1
  163. package/bundles/layout-blank.umd.js +0 -19
  164. package/bundles/layout-blank.umd.js.map +0 -1
  165. package/bundles/layout-default.umd.js +0 -876
  166. package/bundles/layout-default.umd.js.map +0 -1
  167. package/bundles/layout-theme-btn.umd.js +0 -141
  168. package/bundles/layout-theme-btn.umd.js.map +0 -1
  169. package/bundles/setting-drawer.umd.js +0 -789
  170. package/bundles/setting-drawer.umd.js.map +0 -1
  171. package/bundles/theme.umd.js +0 -3075
  172. package/bundles/theme.umd.js.map +0 -1
  173. package/esm2015/layout-default/layout-header-item-trigger.directive.js +0 -12
  174. package/esm2015/layout-default/layout-header-item.component.js +0 -23
  175. package/esm2015/layout-default/layout-header.component.js +0 -94
  176. package/esm2015/layout-default/layout-nav.component.js +0 -306
  177. package/esm2015/layout-default/layout.component.js +0 -102
  178. package/esm2015/layout-default/layout.module.js +0 -40
  179. package/esm2015/public_api.js +0 -24
  180. package/esm2015/setting-drawer/setting-drawer-item.component.js +0 -30
  181. package/esm2015/setting-drawer/setting-drawer.component.js +0 -185
  182. package/esm2015/setting-drawer/setting-drawer.module.js +0 -39
  183. package/esm2015/src/locale/locale.module.js +0 -14
  184. package/esm2015/src/locale/locale.service.js +0 -42
  185. package/esm2015/src/pipes/date/date.pipe.js +0 -23
  186. package/esm2015/src/pipes/keys/keys.pipe.js +0 -17
  187. package/esm2015/src/pipes/safe/html.pipe.js +0 -17
  188. package/esm2015/src/pipes/safe/url.pipe.js +0 -17
  189. package/esm2015/src/pipes/yn/yn.pipe.js +0 -37
  190. package/esm2015/src/router/optional-preloader.js +0 -23
  191. package/esm2015/src/services/drawer/drawer.helper.js +0 -90
  192. package/esm2015/src/services/http/http.client.js +0 -138
  193. package/esm2015/src/services/http/http.decorator.js +0 -207
  194. package/esm2015/src/services/i18n/i18n.js +0 -96
  195. package/esm2015/src/services/i18n/i18n.pipe.js +0 -17
  196. package/esm2015/src/services/menu/menu.service.js +0 -252
  197. package/esm2015/src/services/modal/modal.helper.js +0 -105
  198. package/esm2015/src/services/responsive/responsive.js +0 -48
  199. package/esm2015/src/services/rtl/rtl.service.js +0 -110
  200. package/esm2015/src/services/settings/settings.service.js +0 -82
  201. package/esm2015/src/services/title/title.service.js +0 -125
  202. package/esm2015/src/theme.module.js +0 -67
  203. package/esm2015/theme-btn/layout-theme-btn.js +0 -5
  204. package/esm2015/theme-btn/theme-btn.component.js +0 -103
  205. package/esm2015/theme-btn/theme-btn.module.js +0 -22
  206. package/esm2015/theme.js +0 -6
  207. package/fesm2015/layout-blank.js.map +0 -1
  208. package/fesm2015/layout-default.js +0 -561
  209. package/fesm2015/layout-default.js.map +0 -1
  210. package/fesm2015/layout-theme-btn.js +0 -129
  211. package/fesm2015/layout-theme-btn.js.map +0 -1
  212. package/fesm2015/setting-drawer.js +0 -448
  213. package/fesm2015/setting-drawer.js.map +0 -1
  214. package/fesm2015/theme.js.map +0 -1
  215. package/layout-blank/layout-blank.metadata.json +0 -1
  216. package/layout-default/layout-default.metadata.json +0 -1
  217. package/setting-drawer/setting-drawer.metadata.json +0 -1
  218. package/theme-btn/layout-theme-btn.metadata.json +0 -1
  219. package/theme.metadata.json +0 -1
@@ -1,2 +1,19 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./layout.component";
3
+ import * as i2 from "./layout-nav.component";
4
+ import * as i3 from "./layout-header.component";
5
+ import * as i4 from "./layout-header-item.component";
6
+ import * as i5 from "./layout-header-item-trigger.directive";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@angular/router";
9
+ import * as i8 from "ng-zorro-antd/tooltip";
10
+ import * as i9 from "ng-zorro-antd/icon";
11
+ import * as i10 from "ng-zorro-antd/avatar";
12
+ import * as i11 from "ng-zorro-antd/dropdown";
13
+ import * as i12 from "ng-zorro-antd/message";
14
+ import * as i13 from "ng-zorro-antd/badge";
1
15
  export declare class LayoutDefaultModule {
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<LayoutDefaultModule, never>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<LayoutDefaultModule, [typeof i1.LayoutDefaultComponent, typeof i2.LayoutDefaultNavComponent, typeof i3.LayoutDefaultHeaderComponent, typeof i4.LayoutDefaultHeaderItemComponent, typeof i5.LayoutDefaultHeaderItemTriggerDirective], [typeof i6.CommonModule, typeof i7.RouterModule, typeof i8.NzToolTipModule, typeof i9.NzIconModule, typeof i10.NzAvatarModule, typeof i11.NzDropDownModule, typeof i12.NzMessageModule, typeof i13.NzBadgeModule], [typeof i1.LayoutDefaultComponent, typeof i2.LayoutDefaultNavComponent, typeof i3.LayoutDefaultHeaderComponent, typeof i4.LayoutDefaultHeaderItemComponent, typeof i5.LayoutDefaultHeaderItemTriggerDirective]>;
18
+ static ɵinj: i0.ɵɵInjectorDeclaration<LayoutDefaultModule>;
2
19
  }
@@ -1,11 +1,10 @@
1
1
  {
2
- "main": "../bundles/layout-default.umd.js",
3
- "module": "../fesm2015/layout-default.js",
4
- "es2015": "../fesm2015/layout-default.js",
5
- "esm2015": "../esm2015/layout-default/layout-default.js",
6
- "fesm2015": "../fesm2015/layout-default.js",
2
+ "module": "../fesm2015/layout-default.mjs",
3
+ "es2020": "../fesm2020/layout-default.mjs",
4
+ "esm2020": "../esm2020/layout-default/layout-default.mjs",
5
+ "fesm2020": "../fesm2020/layout-default.mjs",
6
+ "fesm2015": "../fesm2015/layout-default.mjs",
7
7
  "typings": "layout-default.d.ts",
8
- "metadata": "layout-default.metadata.json",
9
8
  "sideEffects": false,
10
9
  "name": "@delon/theme/layout-default"
11
10
  }
@@ -10,6 +10,7 @@
10
10
  backface-visibility: hidden;
11
11
  transition: width 0.2s @alain-default-ease, translate 0.2s @alain-default-ease;
12
12
  -webkit-overflow-scrolling: touch;
13
+
13
14
  &::after {
14
15
  position: absolute;
15
16
  top: 0;
@@ -18,20 +19,14 @@
18
19
  border-right: 1px solid @alain-default-content-heading-border;
19
20
  content: '';
20
21
  }
22
+
21
23
  &-inner {
22
24
  height: 100%;
23
25
  overflow-x: hidden;
24
26
  overflow-y: scroll;
25
27
  -webkit-overflow-scrolling: touch;
26
- // IE
27
- -ms-scroll-chaining: chained;
28
- -ms-overflow-style: none;
29
- -ms-content-zooming: zoom;
30
- -ms-scroll-rails: none;
31
- -ms-content-zoom-limit-min: 100%;
32
- -ms-content-zoom-limit-max: 500%;
33
- -ms-scroll-snap-type: proximity;
34
- -ms-scroll-snap-points-x: snaplist(100%, 200%, 300%, 400%, 500%);
28
+ scroll-snap-type: proximity;
29
+ scroll-snap-points-x: snaplist(100%, 200%, 300%, 400%, 500%);
35
30
  // Firefox
36
31
  scrollbar-width: none;
37
32
  // Chrome
@@ -39,9 +34,11 @@
39
34
  width: @alain-default-aside-scrollbar-height;
40
35
  height: @alain-default-aside-scrollbar-width;
41
36
  }
37
+
42
38
  &::-webkit-scrollbar-track {
43
- -webkit-box-shadow: inset 0 0 @alain-default-aside-scrollbar-width @alain-default-aside-scrollbar-track-color;
39
+ box-shadow: inset 0 0 @alain-default-aside-scrollbar-width @alain-default-aside-scrollbar-track-color;
44
40
  }
41
+
45
42
  &::-webkit-scrollbar-thumb {
46
43
  background-color: @alain-default-aside-scrollbar-thumb-color;
47
44
  }
@@ -5,9 +5,11 @@
5
5
  top: 0;
6
6
  left: 0;
7
7
  }
8
+
8
9
  &__aside {
9
10
  position: fixed;
10
11
  }
12
+
11
13
  &__content {
12
14
  margin-top: @alain-default-header-hg;
13
15
  }
@@ -8,14 +8,17 @@
8
8
  padding: 0 @alain-default-header-padding;
9
9
  background-color: @alain-default-header-bg;
10
10
  box-shadow: @alain-default-header-box-shadow;
11
+
11
12
  &-logo {
12
13
  width: @alain-default-aside-wd;
13
14
  margin-left: -@alain-default-header-padding;
14
15
  transition: width 0.2s @alain-default-ease;
16
+
15
17
  &-link {
16
18
  display: block;
17
19
  text-align: center;
18
20
  }
21
+
19
22
  &-expanded,
20
23
  &-collapsed {
21
24
  max-width: 100%;
@@ -23,14 +26,17 @@
23
26
  vertical-align: middle;
24
27
  animation: fadeIn 1s;
25
28
  }
29
+
26
30
  &-collapsed {
27
31
  display: none;
28
32
  }
33
+
29
34
  &-expanded {
30
35
  display: inline-block;
31
36
  }
32
37
  }
33
38
  }
39
+
34
40
  &__nav {
35
41
  display: flex;
36
42
  align-items: center;
@@ -46,14 +52,17 @@
46
52
  flex: 1;
47
53
  justify-content: space-between;
48
54
  }
55
+
49
56
  > li {
50
57
  display: inline-block;
51
58
  vertical-align: middle;
52
59
  }
60
+
53
61
  &-item,
54
62
  nz-badge {
55
63
  color: #fff;
56
64
  }
65
+
57
66
  &-item {
58
67
  display: block;
59
68
  min-width: 50px;
@@ -64,10 +73,12 @@
64
73
  outline: none;
65
74
  cursor: pointer;
66
75
  transition: background-color 300ms;
76
+
67
77
  &:hover {
68
78
  color: #fff;
69
79
  background-color: rgba(255, 255, 255, 0.2) !important;
70
80
  }
81
+
71
82
  > i,
72
83
  &-icon {
73
84
  font-size: @alain-default-header-icon-fs !important;
@@ -88,6 +99,7 @@
88
99
  margin: 0 @layout-gutter * 3;
89
100
  .@{ant-prefix}-input {
90
101
  padding-left: 0;
102
+
91
103
  &:focus {
92
104
  box-shadow: none;
93
105
  }
@@ -98,6 +110,7 @@
98
110
  color: #fff;
99
111
  background-color: rgba(255, 255, 255, 0.2);
100
112
  border: none;
113
+
101
114
  &::placeholder {
102
115
  color: #fff;
103
116
  opacity: 1;
@@ -115,12 +128,14 @@
115
128
  transition: color 300ms, transform 400ms;
116
129
  }
117
130
  }
131
+
118
132
  &-focus {
119
133
  .@{ant-prefix}-input,
120
134
  .@{ant-prefix}-input-group-addon,
121
135
  .@{ant-prefix}-input-affix-wrapper {
122
136
  color: @grey-8;
123
137
  background-color: #f3f3f3;
138
+
124
139
  &::placeholder {
125
140
  color: @grey-8;
126
141
  opacity: 1;
@@ -149,9 +164,11 @@
149
164
  padding: 0 @alain-default-header-padding;
150
165
  background-color: #fff;
151
166
  transition: transform 300ms;
167
+
152
168
  &-toggled {
153
169
  display: flex;
154
170
  }
171
+
155
172
  &:not(&-toggled) {
156
173
  transform: translate3d(0, -105%, 0);
157
174
  }
@@ -166,9 +183,11 @@
166
183
  @{alain-default-prefix}__header {
167
184
  &-logo {
168
185
  width: @alain-default-aside-collapsed-wd;
186
+
169
187
  &-collapsed {
170
188
  display: inline-block;
171
189
  }
190
+
172
191
  &-expanded {
173
192
  display: none;
174
193
  }
@@ -183,9 +202,11 @@
183
202
  @{alain-default-prefix}__header {
184
203
  &-logo {
185
204
  width: @alain-default-aside-collapsed-wd;
205
+
186
206
  &-collapsed {
187
207
  display: inline;
188
208
  }
209
+
189
210
  &-expanded {
190
211
  display: none;
191
212
  }
@@ -23,6 +23,7 @@ body {
23
23
  height: auto;
24
24
  min-height: 100%;
25
25
  overflow-x: hidden;
26
+
26
27
  &__unwrap {
27
28
  margin-right: -@alain-default-content-padding;
28
29
  margin-left: -@alain-default-content-padding;
@@ -31,8 +32,10 @@ body {
31
32
  margin-left: 0;
32
33
  }
33
34
  }
35
+
34
36
  &__content {
35
37
  margin: 0 @alain-default-content-padding @alain-default-content-padding @alain-default-content-padding;
38
+
36
39
  &-title {
37
40
  display: flex;
38
41
  align-items: center;
@@ -46,10 +49,12 @@ body {
46
49
  color: #929292;
47
50
  background-color: @alain-default-content-heading-bg;
48
51
  border-bottom: 1px solid @alain-default-content-heading-border;
52
+
49
53
  > h1 {
50
54
  margin-bottom: 0;
51
55
  font-weight: normal;
52
56
  font-size: 18px;
57
+
53
58
  > small {
54
59
  display: block;
55
60
  color: @muted-color;
@@ -63,6 +68,7 @@ body {
63
68
  }
64
69
  .router-ant();
65
70
  }
71
+
66
72
  &__hide-aside {
67
73
  @{alain-default-prefix}__content {
68
74
  margin-left: @alain-default-content-padding !important;
@@ -81,6 +87,7 @@ body {
81
87
  &__sidebar {
82
88
  width: @alain-default-aside-collapsed-wd;
83
89
  }
90
+
84
91
  &__content {
85
92
  margin-left: (@alain-default-aside-collapsed-wd + @alain-default-content-padding);
86
93
  }
@@ -5,6 +5,7 @@
5
5
  height: 4px;
6
6
  overflow: hidden;
7
7
  background: fade(#ddd, 40%);
8
+
8
9
  &::after {
9
10
  display: block;
10
11
  width: 33.3vw;
@@ -23,6 +24,7 @@
23
24
  0% {
24
25
  transform: translateX(-33.3vw);
25
26
  }
27
+
26
28
  100% {
27
29
  transform: translateX(100vw);
28
30
  }
@@ -32,15 +34,19 @@
32
34
  0% {
33
35
  .grad(#e88098);
34
36
  }
37
+
35
38
  20% {
36
39
  .grad(#84bebe);
37
40
  }
41
+
38
42
  40% {
39
43
  .grad(#e98724);
40
44
  }
45
+
41
46
  60% {
42
47
  .grad(#afc94e);
43
48
  }
49
+
44
50
  80% {
45
51
  .grad(#6297a4);
46
52
  }
@@ -7,20 +7,24 @@
7
7
  height: 100%;
8
8
  }
9
9
  }
10
+
10
11
  .alain-default__content-title {
11
12
  margin-left: -24px;
12
13
  }
13
14
  }
15
+
14
16
  &__opened {
15
17
  .alain-default__header,
16
18
  .alain-default__aside,
17
19
  reuse-tab {
18
20
  display: none !important;
19
21
  }
22
+
20
23
  .alain-default__content {
21
24
  margin: 24px !important;
22
25
  }
23
26
  }
27
+
24
28
  &__hidden-title {
25
29
  .alain-default__content-title,
26
30
  .page-header {
@@ -7,15 +7,18 @@
7
7
  border-radius: 4px;
8
8
  cursor: pointer;
9
9
  transition: background-color 300ms;
10
+
10
11
  &:hover {
11
12
  background-color: @item-hover-bg;
12
13
  }
13
14
  }
15
+
14
16
  i {
15
17
  padding: 15px;
16
18
  font-size: 22px;
17
19
  border-radius: 50%;
18
20
  }
21
+
19
22
  small {
20
23
  display: block;
21
24
  padding-top: 4px;
@@ -12,6 +12,7 @@
12
12
  display: flex;
13
13
  align-items: center;
14
14
  }
15
+
15
16
  &-info {
16
17
  flex: 1;
17
18
  overflow: hidden;
@@ -19,6 +20,7 @@
19
20
  white-space: nowrap;
20
21
  text-overflow: ellipsis;
21
22
  }
23
+
22
24
  &-avatar {
23
25
  margin-right: @layout-gutter;
24
26
  }
@@ -30,9 +32,11 @@
30
32
  @{alain-default-prefix}__aside-user {
31
33
  width: @alain-default-aside-collapsed-wd;
32
34
  margin-left: 0;
35
+
33
36
  &-info {
34
37
  display: none;
35
38
  }
39
+
36
40
  &-avatar {
37
41
  margin: 0 auto;
38
42
  }
@@ -51,6 +55,7 @@
51
55
  @{alain-default-prefix}__collapsed {
52
56
  @{alain-default-prefix}__aside-user {
53
57
  margin-right: 0;
58
+
54
59
  &-avatar {
55
60
  margin: 0 auto;
56
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/theme",
3
- "version": "12.4.2",
3
+ "version": "13.1.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,17 +21,61 @@
21
21
  "component"
22
22
  ],
23
23
  "dependencies": {
24
- "ng-zorro-antd": "^12.0.1",
25
- "@delon/acl": "^12.4.2",
26
- "@delon/util": "^12.4.2",
27
- "tslib": "^2.2.0"
24
+ "ng-zorro-antd": "^13.0.0",
25
+ "@delon/acl": "^13.1.0",
26
+ "@delon/util": "^13.1.0",
27
+ "tslib": "^2.3.0"
28
28
  },
29
- "main": "bundles/theme.umd.js",
30
- "module": "fesm2015/theme.js",
31
- "es2015": "fesm2015/theme.js",
32
- "esm2015": "esm2015/theme.js",
33
- "fesm2015": "fesm2015/theme.js",
29
+ "module": "fesm2015/theme.mjs",
30
+ "es2020": "fesm2020/theme.mjs",
31
+ "esm2020": "esm2020/theme.mjs",
32
+ "fesm2020": "fesm2020/theme.mjs",
33
+ "fesm2015": "fesm2015/theme.mjs",
34
34
  "typings": "theme.d.ts",
35
- "metadata": "theme.metadata.json",
35
+ "exports": {
36
+ "./package.json": {
37
+ "default": "./package.json"
38
+ },
39
+ ".": {
40
+ "types": "./theme.d.ts",
41
+ "esm2020": "./esm2020/theme.mjs",
42
+ "es2020": "./fesm2020/theme.mjs",
43
+ "es2015": "./fesm2015/theme.mjs",
44
+ "node": "./fesm2015/theme.mjs",
45
+ "default": "./fesm2020/theme.mjs"
46
+ },
47
+ "./layout-blank": {
48
+ "types": "./layout-blank/layout-blank.d.ts",
49
+ "esm2020": "./esm2020/layout-blank/layout-blank.mjs",
50
+ "es2020": "./fesm2020/layout-blank.mjs",
51
+ "es2015": "./fesm2015/layout-blank.mjs",
52
+ "node": "./fesm2015/layout-blank.mjs",
53
+ "default": "./fesm2020/layout-blank.mjs"
54
+ },
55
+ "./layout-default": {
56
+ "types": "./layout-default/layout-default.d.ts",
57
+ "esm2020": "./esm2020/layout-default/layout-default.mjs",
58
+ "es2020": "./fesm2020/layout-default.mjs",
59
+ "es2015": "./fesm2015/layout-default.mjs",
60
+ "node": "./fesm2015/layout-default.mjs",
61
+ "default": "./fesm2020/layout-default.mjs"
62
+ },
63
+ "./setting-drawer": {
64
+ "types": "./setting-drawer/setting-drawer.d.ts",
65
+ "esm2020": "./esm2020/setting-drawer/setting-drawer.mjs",
66
+ "es2020": "./fesm2020/setting-drawer.mjs",
67
+ "es2015": "./fesm2015/setting-drawer.mjs",
68
+ "node": "./fesm2015/setting-drawer.mjs",
69
+ "default": "./fesm2020/setting-drawer.mjs"
70
+ },
71
+ "./theme-btn": {
72
+ "types": "./theme-btn/theme-btn.d.ts",
73
+ "esm2020": "./esm2020/theme-btn/theme-btn.mjs",
74
+ "es2020": "./fesm2020/theme-btn.mjs",
75
+ "es2015": "./fesm2015/theme-btn.mjs",
76
+ "node": "./fesm2015/theme-btn.mjs",
77
+ "default": "./fesm2020/theme-btn.mjs"
78
+ }
79
+ },
36
80
  "sideEffects": false
37
81
  }
package/public_api.d.ts CHANGED
@@ -7,6 +7,7 @@ export * from './src/services/responsive/responsive';
7
7
  export * from './src/services/rtl/rtl.service';
8
8
  export * from './src/services/title/title.service';
9
9
  export * from './src/services/i18n/i18n';
10
+ export * from './src/services/i18n/i18n.pipe';
10
11
  export * from './src/locale/index';
11
12
  export * from './src/services/modal/modal.helper';
12
13
  export * from './src/services/drawer/drawer.helper';
@@ -1,11 +1,10 @@
1
1
  {
2
- "main": "../bundles/setting-drawer.umd.js",
3
- "module": "../fesm2015/setting-drawer.js",
4
- "es2015": "../fesm2015/setting-drawer.js",
5
- "esm2015": "../esm2015/setting-drawer/setting-drawer.js",
6
- "fesm2015": "../fesm2015/setting-drawer.js",
2
+ "module": "../fesm2015/setting-drawer.mjs",
3
+ "es2020": "../fesm2020/setting-drawer.mjs",
4
+ "esm2020": "../esm2020/setting-drawer/setting-drawer.mjs",
5
+ "fesm2020": "../fesm2020/setting-drawer.mjs",
6
+ "fesm2015": "../fesm2015/setting-drawer.mjs",
7
7
  "typings": "setting-drawer.d.ts",
8
- "metadata": "setting-drawer.metadata.json",
9
8
  "sideEffects": false,
10
9
  "name": "@delon/theme/setting-drawer"
11
10
  }
@@ -1,8 +1,11 @@
1
1
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
2
+ import * as i0 from "@angular/core";
2
3
  export declare class SettingDrawerItemComponent {
3
4
  i: NzSafeAny;
4
5
  set data(val: NzSafeAny);
5
6
  pxVal: number;
6
7
  pxChange(val: number): void;
7
8
  format: (value: number) => string;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerItemComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerItemComponent, "setting-drawer-item", never, { "data": "data"; }, {}, never, never>;
8
11
  }
@@ -4,6 +4,7 @@ import { Layout, SettingsService } from '@delon/theme';
4
4
  import { LazyService } from '@delon/util/other';
5
5
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
6
6
  import { NzMessageService } from 'ng-zorro-antd/message';
7
+ import * as i0 from "@angular/core";
7
8
  export declare class SettingDrawerComponent implements OnInit, OnDestroy {
8
9
  private cdr;
9
10
  private msg;
@@ -43,4 +44,6 @@ export declare class SettingDrawerComponent implements OnInit, OnDestroy {
43
44
  reset(): void;
44
45
  copyVar(): void;
45
46
  ngOnDestroy(): void;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerComponent, [null, null, null, null, null, null, { optional: true; }]>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<SettingDrawerComponent, "setting-drawer", never, { "autoApplyColor": "autoApplyColor"; "compilingText": "compilingText"; "devTips": "devTips"; }, {}, never, never>;
46
49
  }
@@ -1,4 +1,5 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@delon/theme/setting-drawer" />
4
5
  export * from './public_api';
@@ -1,2 +1,20 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./setting-drawer-item.component";
3
+ import * as i2 from "./setting-drawer.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@angular/forms";
6
+ import * as i5 from "ng-zorro-antd/drawer";
7
+ import * as i6 from "ng-zorro-antd/tooltip";
8
+ import * as i7 from "ng-zorro-antd/divider";
9
+ import * as i8 from "ng-zorro-antd/tabs";
10
+ import * as i9 from "ng-zorro-antd/switch";
11
+ import * as i10 from "ng-zorro-antd/alert";
12
+ import * as i11 from "ng-zorro-antd/icon";
13
+ import * as i12 from "ng-zorro-antd/input";
14
+ import * as i13 from "ng-zorro-antd/input-number";
15
+ import * as i14 from "ng-zorro-antd/button";
1
16
  export declare class SettingDrawerModule {
17
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingDrawerModule, never>;
18
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SettingDrawerModule, [typeof i1.SettingDrawerItemComponent, typeof i2.SettingDrawerComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.NzDrawerModule, typeof i6.NzToolTipModule, typeof i7.NzDividerModule, typeof i8.NzTabsModule, typeof i9.NzSwitchModule, typeof i10.NzAlertModule, typeof i11.NzIconModule, typeof i12.NzInputModule, typeof i13.NzInputNumberModule, typeof i14.NzButtonModule], [typeof i1.SettingDrawerItemComponent, typeof i2.SettingDrawerComponent]>;
19
+ static ɵinj: i0.ɵɵInjectorDeclaration<SettingDrawerModule>;
2
20
  }
@@ -7,6 +7,7 @@
7
7
  min-height: 100%;
8
8
  background: @popover-background;
9
9
  }
10
+
10
11
  &__body {
11
12
  &-item {
12
13
  display: flex;
@@ -14,23 +15,28 @@
14
15
  justify-content: space-between;
15
16
  padding-top: 12px;
16
17
  padding-bottom: 12px;
18
+
17
19
  &:first-child {
18
20
  padding-top: 0;
19
21
  }
22
+
20
23
  &:last-child {
21
24
  padding-bottom: 0;
22
25
  }
23
26
  }
24
27
  }
28
+
25
29
  &__title {
26
30
  margin-bottom: 12px;
27
31
  color: @heading-color;
28
32
  font-size: 14px;
29
33
  line-height: 22px;
30
34
  }
35
+
31
36
  &__theme {
32
37
  margin-top: 24px;
33
38
  overflow: hidden;
39
+
34
40
  &-tag {
35
41
  float: left;
36
42
  width: 20px;
@@ -43,6 +49,7 @@
43
49
  cursor: pointer;
44
50
  }
45
51
  }
52
+
46
53
  &__handle {
47
54
  position: fixed;
48
55
  top: 240px;
@@ -60,10 +67,12 @@
60
67
  cursor: pointer;
61
68
  transition: right @animation-duration-slow @ease-base-in;
62
69
  pointer-events: auto;
70
+
63
71
  &-icon {
64
72
  color: #fff;
65
73
  font-size: 20px;
66
74
  }
75
+
67
76
  &-opened {
68
77
  right: @setting-drawer-width;
69
78
  z-index: @zindex-modal-mask + 1;
@@ -5,6 +5,7 @@
5
5
  right: inherit;
6
6
  left: 0;
7
7
  border-radius: 0 4px 4px 0;
8
+
8
9
  &-opened {
9
10
  right: inherit;
10
11
  left: @setting-drawer-width;
@@ -1,2 +1,6 @@
1
+ import * as i0 from "@angular/core";
1
2
  export declare class DelonLocaleModule {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<DelonLocaleModule, never>;
4
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DelonLocaleModule, never, never, never>;
5
+ static ɵinj: i0.ɵɵInjectorDeclaration<DelonLocaleModule>;
2
6
  }
@@ -1,6 +1,7 @@
1
1
  import { Provider } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { FullLocaleData, LocaleData } from './locale.types';
4
+ import * as i0 from "@angular/core";
4
5
  export declare class DelonLocaleService {
5
6
  private _locale;
6
7
  private change$;
@@ -9,6 +10,8 @@ export declare class DelonLocaleService {
9
10
  setLocale(locale: FullLocaleData): void;
10
11
  get locale(): FullLocaleData;
11
12
  getData(path: keyof FullLocaleData): LocaleData;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<DelonLocaleService, never>;
14
+ static ɵprov: i0.ɵɵInjectableDeclaration<DelonLocaleService>;
12
15
  }
13
16
  export declare function DELON_LOCALE_SERVICE_PROVIDER_FACTORY(exist: DelonLocaleService, locale: FullLocaleData): DelonLocaleService;
14
17
  export declare const DELON_LOCALE_SERVICE_PROVIDER: Provider;
@@ -1,7 +1,10 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import { NzI18nService } from 'ng-zorro-antd/i18n';
3
+ import * as i0 from "@angular/core";
3
4
  export declare class DatePipe implements PipeTransform {
4
5
  private nzI18n;
5
6
  constructor(nzI18n: NzI18nService);
6
7
  transform(value: Date | string | number, formatString?: string): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<DatePipe, "_date">;
7
10
  }
@@ -1,8 +1,11 @@
1
1
  import { PipeTransform } from '@angular/core';
2
2
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
3
+ import * as i0 from "@angular/core";
3
4
  /**
4
5
  * [Document](https://ng-alain.com/theme/keys)
5
6
  */
6
7
  export declare class KeysPipe implements PipeTransform {
7
8
  transform(value: NzSafeAny, keyIsNumber?: boolean): NzSafeAny[];
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys">;
8
11
  }