@delon/theme 18.1.0 → 18.2.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 (51) hide show
  1. package/compact.css +22 -0
  2. package/compact.min.css +1 -1
  3. package/dark.css +22 -0
  4. package/dark.min.css +1 -1
  5. package/default.css +22 -0
  6. package/default.min.css +1 -1
  7. package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +3 -3
  8. package/esm2022/layout-default/layout-header-item.component.mjs +3 -3
  9. package/esm2022/layout-default/layout-header.component.mjs +3 -3
  10. package/esm2022/layout-default/layout-nav.component.mjs +3 -3
  11. package/esm2022/layout-default/layout-top-menu-item.mjs +3 -3
  12. package/esm2022/layout-default/layout.component.mjs +3 -3
  13. package/esm2022/layout-default/layout.module.mjs +4 -4
  14. package/esm2022/layout-default/layout.service.mjs +3 -3
  15. package/esm2022/setting-drawer/setting-drawer-item.component.mjs +3 -3
  16. package/esm2022/setting-drawer/setting-drawer.component.mjs +3 -3
  17. package/esm2022/setting-drawer/setting-drawer.module.mjs +4 -4
  18. package/esm2022/src/locale/locale.module.mjs +4 -4
  19. package/esm2022/src/locale/locale.service.mjs +3 -3
  20. package/esm2022/src/pipes/date/date.pipe.mjs +3 -3
  21. package/esm2022/src/pipes/keys/keys.pipe.mjs +3 -3
  22. package/esm2022/src/pipes/safe/html.pipe.mjs +3 -3
  23. package/esm2022/src/pipes/safe/url.pipe.mjs +3 -3
  24. package/esm2022/src/pipes/yn/yn.pipe.mjs +3 -3
  25. package/esm2022/src/services/drawer/drawer.helper.mjs +3 -3
  26. package/esm2022/src/services/http/http.client.mjs +3 -3
  27. package/esm2022/src/services/http/http.decorator.mjs +3 -3
  28. package/esm2022/src/services/i18n/i18n-url.guard.mjs +3 -3
  29. package/esm2022/src/services/i18n/i18n.mjs +6 -6
  30. package/esm2022/src/services/i18n/i18n.pipe.mjs +3 -3
  31. package/esm2022/src/services/menu/menu.service.mjs +9 -6
  32. package/esm2022/src/services/modal/modal.helper.mjs +33 -12
  33. package/esm2022/src/services/responsive/responsive.mjs +3 -3
  34. package/esm2022/src/services/rtl/rtl.service.mjs +3 -3
  35. package/esm2022/src/services/settings/settings.service.mjs +3 -3
  36. package/esm2022/src/services/title/title.service.mjs +3 -3
  37. package/esm2022/src/theme.module.mjs +4 -4
  38. package/esm2022/src/version.mjs +1 -1
  39. package/esm2022/theme-btn/theme-btn.component.mjs +3 -3
  40. package/esm2022/theme-btn/theme-btn.module.mjs +4 -4
  41. package/fesm2022/layout-default.mjs +25 -25
  42. package/fesm2022/setting-drawer.mjs +10 -10
  43. package/fesm2022/theme-btn.mjs +7 -7
  44. package/fesm2022/theme.mjs +99 -75
  45. package/fesm2022/theme.mjs.map +1 -1
  46. package/package.json +6 -6
  47. package/src/services/menu/menu.service.d.ts +6 -0
  48. package/src/services/modal/modal.helper.d.ts +5 -1
  49. package/system/utils/_scrollbar.less +22 -0
  50. package/variable.css +22 -0
  51. package/variable.min.css +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delon/theme",
3
- "version": "18.1.0",
3
+ "version": "18.2.0",
4
4
  "author": "cipchk<cipchk@qq.com>",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,11 +21,11 @@
21
21
  "component"
22
22
  ],
23
23
  "dependencies": {
24
- "ng-zorro-antd": "^18.1.0",
25
- "@delon/acl": "^18.1.0",
26
- "@delon/abc": "^18.1.0",
27
- "@delon/form": "^18.1.0",
28
- "@delon/util": "^18.1.0",
24
+ "ng-zorro-antd": "^18.1.1",
25
+ "@delon/acl": "^18.2.0",
26
+ "@delon/abc": "^18.2.0",
27
+ "@delon/form": "^18.2.0",
28
+ "@delon/util": "^18.2.0",
29
29
  "tslib": "^2.3.0"
30
30
  },
31
31
  "module": "fesm2022/theme.mjs",
@@ -66,6 +66,12 @@ export declare class MenuService implements OnDestroy {
66
66
  * 是否忽略隐藏的项,默认:`false`
67
67
  */
68
68
  ignoreHide?: boolean;
69
+ /**
70
+ * Whether to return the last one, default: `false`
71
+ *
72
+ * 是否返回最后一个,默认:`false`
73
+ */
74
+ last?: boolean;
69
75
  }): Menu | null;
70
76
  /**
71
77
  * 根据url获取菜单列表
@@ -20,6 +20,10 @@ export interface ModalHelperOptions {
20
20
  * 是否强制使用 `nzData` 传递参数,若为 `false` 表示参数会直接映射到组件实例中,其他值只能通过 `NZ_MODAL_DATA` 的方式来获取参数,默认:`false`
21
21
  */
22
22
  useNzData?: boolean;
23
+ /**
24
+ * 设置焦点按钮
25
+ */
26
+ focus?: 'ok' | 'cancel';
23
27
  }
24
28
  export interface ModalHelperDragOptions {
25
29
  /**
@@ -51,7 +55,7 @@ export declare class ModalHelper {
51
55
  * // 关闭
52
56
  * this.nzModalRef.destroy();
53
57
  */
54
- create(comp: TemplateRef<NzSafeAny> | Type<NzSafeAny>, params?: NzSafeAny, options?: ModalHelperOptions): Observable<NzSafeAny>;
58
+ create(comp?: TemplateRef<NzSafeAny> | Type<NzSafeAny> | 'confirm' | 'info' | 'success' | 'error' | 'warning', params?: NzSafeAny | ModalHelperOptions | null, options?: ModalHelperOptions): Observable<NzSafeAny>;
55
59
  /**
56
60
  * 构建静态框,点击蒙层不允许关闭
57
61
  *
@@ -51,3 +51,25 @@
51
51
  .scrollbar-mixin(~'.@{ant-prefix}-table-header, .@{ant-prefix}-table-body');
52
52
  }
53
53
  .scrollbar-table-mixin(@scrollbar-table-enabled);
54
+
55
+ /**
56
+ * Hide scrollbar
57
+ *
58
+ * 隐藏滚动条
59
+ */
60
+ .hide-scrollbar {
61
+ scrollbar-width: none;
62
+ scrollbar-color: transparent transparent;
63
+
64
+ &::-webkit-scrollbar {
65
+ width: 1px;
66
+ }
67
+
68
+ &::-webkit-scrollbar-track {
69
+ background: transparent;
70
+ }
71
+
72
+ &::-webkit-scrollbar-thumb {
73
+ background-color: transparent;
74
+ }
75
+ }
package/variable.css CHANGED
@@ -33402,6 +33402,24 @@ textarea.ant-input::-webkit-scrollbar-thumb {
33402
33402
  background-color: transparent;
33403
33403
  outline: 1px solid #333;
33404
33404
  }
33405
+ /**
33406
+ * Hide scrollbar
33407
+ *
33408
+ * 隐藏滚动条
33409
+ */
33410
+ .hide-scrollbar {
33411
+ scrollbar-width: none;
33412
+ scrollbar-color: transparent transparent;
33413
+ }
33414
+ .hide-scrollbar::-webkit-scrollbar {
33415
+ width: 1px;
33416
+ }
33417
+ .hide-scrollbar::-webkit-scrollbar-track {
33418
+ background: transparent;
33419
+ }
33420
+ .hide-scrollbar::-webkit-scrollbar-thumb {
33421
+ background-color: transparent;
33422
+ }
33405
33423
  html {
33406
33424
  touch-action: manipulation;
33407
33425
  direction: ltr;
@@ -34202,9 +34220,13 @@ body {
34202
34220
  display: block;
34203
34221
  text-align: center;
34204
34222
  }
34223
+ .st__btn-sub .ant-menu-title-content {
34224
+ width: 100%;
34225
+ }
34205
34226
  .st__btn-sub .st__btn-text {
34206
34227
  width: 100%;
34207
34228
  color: inherit;
34229
+ display: block;
34208
34230
  }
34209
34231
  .st__btn-disabled .st__btn-text {
34210
34232
  pointer-events: none;