@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.
- package/compact.css +7 -4
- package/compact.min.css +1 -1
- package/dark.css +7 -4
- package/dark.min.css +1 -1
- package/default.css +7 -4
- package/default.less +0 -1
- package/default.min.css +1 -1
- package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
- package/esm2022/layout-default/layout-header-item.component.mjs +3 -3
- package/esm2022/layout-default/layout-header.component.mjs +3 -3
- package/esm2022/layout-default/layout-nav.component.mjs +3 -3
- package/esm2022/layout-default/layout-top-menu-item.mjs +3 -3
- package/esm2022/layout-default/layout.component.mjs +3 -3
- package/esm2022/layout-default/layout.module.mjs +4 -4
- package/esm2022/layout-default/layout.service.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer-item.component.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer.component.mjs +3 -3
- package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
- package/esm2022/src/locale/locale.module.mjs +4 -4
- package/esm2022/src/locale/locale.service.mjs +3 -3
- package/esm2022/src/pipes/date/date.pipe.mjs +3 -3
- package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/html.pipe.mjs +3 -3
- package/esm2022/src/pipes/safe/url.pipe.mjs +3 -3
- package/esm2022/src/pipes/yn/yn.pipe.mjs +3 -3
- package/esm2022/src/services/drawer/drawer.helper.mjs +3 -3
- package/esm2022/src/services/http/http.client.mjs +3 -3
- package/esm2022/src/services/http/http.decorator.mjs +3 -3
- package/esm2022/src/services/i18n/i18n-url.guard.mjs +3 -3
- package/esm2022/src/services/i18n/i18n.mjs +6 -6
- package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
- package/esm2022/src/services/menu/menu.service.mjs +3 -3
- package/esm2022/src/services/modal/modal.helper.mjs +47 -11
- package/esm2022/src/services/responsive/responsive.mjs +3 -3
- package/esm2022/src/services/rtl/rtl.service.mjs +3 -3
- package/esm2022/src/services/settings/settings.service.mjs +3 -3
- package/esm2022/src/services/title/title.service.mjs +3 -3
- package/esm2022/src/theme.module.mjs +4 -4
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/theme-btn/theme-btn.component.mjs +3 -3
- package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
- package/fesm2022/layout-default.mjs +25 -25
- package/fesm2022/setting-drawer.mjs +10 -10
- package/fesm2022/theme-btn.mjs +7 -7
- package/fesm2022/theme.mjs +107 -72
- package/fesm2022/theme.mjs.map +1 -1
- package/layout-blank/style/index.less +0 -1
- package/layout-default/style/_aside.less +1 -0
- package/layout-default/style/_layout.less +1 -0
- package/layout-default/style/fix/_sidebar-nav.less +1 -0
- package/layout-default/style/index.less +3 -3
- package/layout-default/style/widgets/_user.less +1 -0
- package/package.json +3 -3
- package/src/services/modal/modal.helper.d.ts +16 -1
- package/system/antd/_drawer.less +8 -0
- package/system/antd/_modal.less +4 -0
- package/system/antd/index.less +0 -1
- package/system/ng/_preserve-white-spaces.less +4 -4
|
@@ -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';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delon/theme",
|
|
3
|
-
"version": "16.
|
|
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.
|
|
26
|
-
"@delon/util": "^16.
|
|
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
|
-
|
|
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
|
*
|
package/system/antd/_drawer.less
CHANGED
|
@@ -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;
|
package/system/antd/_modal.less
CHANGED
package/system/antd/index.less
CHANGED
|
@@ -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 {
|