@delon/theme 16.0.1 → 16.1.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.
Files changed (58) hide show
  1. package/compact.css +7 -4
  2. package/compact.min.css +1 -1
  3. package/dark.css +7 -4
  4. package/dark.min.css +1 -1
  5. package/default.css +7 -4
  6. package/default.less +0 -1
  7. package/default.min.css +1 -1
  8. package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
  9. package/esm2022/layout-default/layout-header-item.component.mjs +3 -3
  10. package/esm2022/layout-default/layout-header.component.mjs +3 -3
  11. package/esm2022/layout-default/layout-nav.component.mjs +3 -3
  12. package/esm2022/layout-default/layout-top-menu-item.mjs +3 -3
  13. package/esm2022/layout-default/layout.component.mjs +3 -3
  14. package/esm2022/layout-default/layout.module.mjs +4 -4
  15. package/esm2022/layout-default/layout.service.mjs +3 -3
  16. package/esm2022/setting-drawer/setting-drawer-item.component.mjs +3 -3
  17. package/esm2022/setting-drawer/setting-drawer.component.mjs +3 -3
  18. package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
  19. package/esm2022/src/locale/locale.module.mjs +4 -4
  20. package/esm2022/src/locale/locale.service.mjs +3 -3
  21. package/esm2022/src/pipes/date/date.pipe.mjs +3 -3
  22. package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
  23. package/esm2022/src/pipes/safe/html.pipe.mjs +3 -3
  24. package/esm2022/src/pipes/safe/url.pipe.mjs +3 -3
  25. package/esm2022/src/pipes/yn/yn.pipe.mjs +3 -3
  26. package/esm2022/src/services/drawer/drawer.helper.mjs +3 -3
  27. package/esm2022/src/services/http/http.client.mjs +3 -3
  28. package/esm2022/src/services/http/http.decorator.mjs +3 -3
  29. package/esm2022/src/services/i18n/i18n-url.guard.mjs +3 -3
  30. package/esm2022/src/services/i18n/i18n.mjs +6 -6
  31. package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
  32. package/esm2022/src/services/menu/menu.service.mjs +3 -3
  33. package/esm2022/src/services/modal/modal.helper.mjs +47 -11
  34. package/esm2022/src/services/responsive/responsive.mjs +3 -3
  35. package/esm2022/src/services/rtl/rtl.service.mjs +3 -3
  36. package/esm2022/src/services/settings/settings.service.mjs +3 -3
  37. package/esm2022/src/services/title/title.service.mjs +3 -3
  38. package/esm2022/src/theme.module.mjs +4 -4
  39. package/esm2022/src/version.mjs +1 -1
  40. package/esm2022/theme-btn/theme-btn.component.mjs +3 -3
  41. package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
  42. package/fesm2022/layout-default.mjs +25 -25
  43. package/fesm2022/setting-drawer.mjs +10 -10
  44. package/fesm2022/theme-btn.mjs +7 -7
  45. package/fesm2022/theme.mjs +107 -72
  46. package/fesm2022/theme.mjs.map +1 -1
  47. package/layout-blank/style/index.less +0 -1
  48. package/layout-default/style/_aside.less +1 -0
  49. package/layout-default/style/_layout.less +1 -0
  50. package/layout-default/style/fix/_sidebar-nav.less +1 -0
  51. package/layout-default/style/index.less +3 -3
  52. package/layout-default/style/widgets/_user.less +1 -0
  53. package/package.json +3 -3
  54. package/src/services/modal/modal.helper.d.ts +16 -1
  55. package/system/antd/_drawer.less +8 -0
  56. package/system/antd/_modal.less +4 -0
  57. package/system/antd/index.less +0 -1
  58. package/system/ng/_preserve-white-spaces.less +4 -4
@@ -1,4 +1,3 @@
1
1
  @import './theme-default.less';
2
-
3
2
  @import './_layout.less';
4
3
  @import './fix/index.less';
@@ -98,6 +98,7 @@
98
98
  left: 0;
99
99
  }
100
100
  }
101
+
101
102
  @media (max-width: @mobile-max) {
102
103
  @{alain-default-prefix}__content {
103
104
  transform: translate3d(-@alain-default-aside-wd, 0, 0);
@@ -27,6 +27,7 @@ body {
27
27
  &__unwrap {
28
28
  margin-right: -@alain-default-content-padding;
29
29
  margin-left: -@alain-default-content-padding;
30
+
30
31
  @media (max-width: @mobile-max) {
31
32
  margin-right: 0;
32
33
  margin-left: 0;
@@ -285,6 +285,7 @@
285
285
  left: @layout-gutter * 2;
286
286
  }
287
287
  }
288
+
288
289
  @media (min-width: @mobile-min) {
289
290
  @{alain-default-prefix}__collapsed {
290
291
  @{sidebar-nav-prefix}:not(@{sidebar-nav-prefix}__sub) {
@@ -1,11 +1,11 @@
1
1
  @import './theme-default.less';
2
-
2
+ // Layout
3
3
  @import './_layout.less';
4
4
  @import './_header.less';
5
5
  @import './_aside.less';
6
-
6
+ // Widgets
7
7
  @import './_progress-bar.less';
8
8
  @import './fix/index.less';
9
9
  @import './widgets/index.less';
10
-
10
+ // Fix
11
11
  @import './_fixed.less';
@@ -51,6 +51,7 @@
51
51
  margin-left: @layout-gutter;
52
52
  }
53
53
  }
54
+
54
55
  @media (min-width: @mobile-min) {
55
56
  @{alain-default-prefix}__collapsed {
56
57
  @{alain-default-prefix}__aside-user {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/theme",
3
- "version": "16.0.1",
3
+ "version": "16.1.1",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -22,8 +22,8 @@
22
22
  ],
23
23
  "dependencies": {
24
24
  "ng-zorro-antd": "^16.0.0",
25
- "@delon/acl": "^16.0.1",
26
- "@delon/util": "^16.0.1",
25
+ "@delon/acl": "^16.1.1",
26
+ "@delon/util": "^16.1.1",
27
27
  "tslib": "^2.3.0"
28
28
  },
29
29
  "module": "fesm2022/theme.mjs",
@@ -1,3 +1,4 @@
1
+ import { DragDrop } from '@angular/cdk/drag-drop';
1
2
  import { TemplateRef, Type } from '@angular/core';
2
3
  import { Observable } from 'rxjs';
3
4
  import type { NzSafeAny } from 'ng-zorro-antd/core/types';
@@ -12,13 +13,27 @@ export interface ModalHelperOptions {
12
13
  exact?: boolean;
13
14
  /** 是否包裹标签页,修复模态包含标签间距问题 */
14
15
  includeTabs?: boolean;
16
+ /**
17
+ * 是否支持拖动,默认是通过标题来触发
18
+ */
19
+ drag?: ModalHelperDragOptions | boolean;
20
+ }
21
+ export interface ModalHelperDragOptions {
22
+ /**
23
+ * 指定拖地区域的类名,若指定为 `null` 时表示整个对话框,默认:`.modal-header, .ant-modal-title`
24
+ */
25
+ handleCls?: string | null;
15
26
  }
16
27
  /**
17
28
  * 对话框辅助类
18
29
  */
19
30
  export declare class ModalHelper {
20
31
  private srv;
21
- constructor(srv: NzModalService);
32
+ private drag;
33
+ private document;
34
+ private dragClsPrefix;
35
+ constructor(srv: NzModalService, drag: DragDrop, doc: NzSafeAny);
36
+ private createDragRef;
22
37
  /**
23
38
  * 构建一个对话框
24
39
  *
@@ -7,6 +7,7 @@
7
7
  max-width: @drawer-sm;
8
8
  }
9
9
  }
10
+
10
11
  @media (max-width: (@drawer-sm - 1)) {
11
12
  .drawer-sm {
12
13
  width: 100% !important;
@@ -19,6 +20,7 @@
19
20
  max-width: @drawer-md;
20
21
  }
21
22
  }
23
+
22
24
  @media (max-width: (@drawer-md - 1)) {
23
25
  .drawer-md {
24
26
  width: 100% !important;
@@ -31,6 +33,7 @@
31
33
  max-width: @drawer-lg;
32
34
  }
33
35
  }
36
+
34
37
  @media (max-width: (@drawer-lg - 1)) {
35
38
  .drawer-lg {
36
39
  width: 100% !important;
@@ -43,6 +46,7 @@
43
46
  max-width: @drawer-xl;
44
47
  }
45
48
  }
49
+
46
50
  @media (max-width: (@drawer-xl - 1)) {
47
51
  .drawer-xl {
48
52
  width: 100% !important;
@@ -58,6 +62,7 @@
58
62
  max-height: @drawer-sm-height;
59
63
  }
60
64
  }
65
+
61
66
  @media (max-height: (@drawer-sm-height - 1)) {
62
67
  .drawer-sm {
63
68
  height: 100% !important;
@@ -70,6 +75,7 @@
70
75
  max-height: @drawer-md-height;
71
76
  }
72
77
  }
78
+
73
79
  @media (max-height: (@drawer-md-height - 1)) {
74
80
  .drawer-md {
75
81
  height: 100% !important;
@@ -82,6 +88,7 @@
82
88
  max-height: @drawer-lg-height;
83
89
  }
84
90
  }
91
+
85
92
  @media (max-height: (@drawer-lg-height - 1)) {
86
93
  .drawer-lg {
87
94
  height: 100% !important;
@@ -94,6 +101,7 @@
94
101
  max-height: @drawer-xl-height;
95
102
  }
96
103
  }
104
+
97
105
  @media (max-height: (@drawer-xl-height - 1)) {
98
106
  .drawer-xl {
99
107
  height: 100% !important;
@@ -123,3 +123,7 @@
123
123
  }
124
124
  }
125
125
  }
126
+
127
+ .MODAL-DRAG-HANDLE {
128
+ cursor: move;
129
+ }
@@ -1,5 +1,4 @@
1
1
  @import './_link.less';
2
-
3
2
  @import './_input-number.less';
4
3
  @import './_card.less';
5
4
  @import './_drawer.less';
@@ -4,13 +4,13 @@
4
4
  }
5
5
 
6
6
  // button + button
7
- .@{ant-prefix}-btn + .@{ant-prefix}-btn,
8
- .@{ant-prefix}-btn + nz-popconfirm,
7
+ .@{ant-prefix}-btn:not(.ant-btn-link) + .@{ant-prefix}-btn,
8
+ .@{ant-prefix}-btn:not(.ant-btn-link) + nz-popconfirm,
9
9
  nz-popconfirm + .@{ant-prefix}-btn,
10
10
  nz-popconfirm + nz-popconfirm,
11
- .@{ant-prefix}-btn + nz-button-group,
11
+ .@{ant-prefix}-btn:not(.ant-btn-link) + nz-button-group,
12
12
  nz-button-group + .@{ant-prefix}-btn,
13
- .@{ant-prefix}-btn + nz-dropdown,
13
+ .@{ant-prefix}-btn:not(.ant-btn-link) + nz-dropdown,
14
14
  nz-dropdown + .@{ant-prefix}-btn,
15
15
  nz-popconfirm + nz-button-group,
16
16
  nz-button-group + nz-popconfirm {