@delon/theme 16.3.0 → 16.4.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 (53) hide show
  1. package/compact.css +300 -54
  2. package/compact.min.css +1 -1
  3. package/dark.css +301 -55
  4. package/dark.min.css +1 -1
  5. package/default.css +300 -54
  6. package/default.min.css +1 -1
  7. package/esm2022/layout-default/layout-header-item-trigger.directive.mjs +4 -4
  8. package/esm2022/layout-default/layout-header-item.component.mjs +4 -4
  9. package/esm2022/layout-default/layout-header.component.mjs +4 -4
  10. package/esm2022/layout-default/layout-nav.component.mjs +4 -4
  11. package/esm2022/layout-default/layout-top-menu-item.mjs +4 -4
  12. package/esm2022/layout-default/layout.component.mjs +4 -4
  13. package/esm2022/layout-default/layout.module.mjs +5 -5
  14. package/esm2022/layout-default/layout.service.mjs +4 -4
  15. package/esm2022/setting-drawer/setting-drawer-item.component.mjs +4 -4
  16. package/esm2022/setting-drawer/setting-drawer.component.mjs +4 -4
  17. package/esm2022/setting-drawer/setting-drawer.module.mjs +5 -5
  18. package/esm2022/src/locale/locale.module.mjs +5 -5
  19. package/esm2022/src/locale/locale.service.mjs +4 -4
  20. package/esm2022/src/pipes/date/date.pipe.mjs +4 -4
  21. package/esm2022/src/pipes/keys/keys.pipe.mjs +4 -4
  22. package/esm2022/src/pipes/safe/html.pipe.mjs +4 -4
  23. package/esm2022/src/pipes/safe/url.pipe.mjs +4 -4
  24. package/esm2022/src/pipes/yn/yn.pipe.mjs +4 -4
  25. package/esm2022/src/services/drawer/drawer.helper.mjs +4 -4
  26. package/esm2022/src/services/http/http.client.mjs +4 -4
  27. package/esm2022/src/services/http/http.decorator.mjs +4 -4
  28. package/esm2022/src/services/i18n/i18n-url.guard.mjs +10 -6
  29. package/esm2022/src/services/i18n/i18n.mjs +7 -7
  30. package/esm2022/src/services/i18n/i18n.pipe.mjs +4 -4
  31. package/esm2022/src/services/menu/menu.service.mjs +4 -4
  32. package/esm2022/src/services/modal/modal.helper.mjs +4 -4
  33. package/esm2022/src/services/responsive/responsive.mjs +4 -4
  34. package/esm2022/src/services/rtl/rtl.service.mjs +4 -4
  35. package/esm2022/src/services/settings/settings.service.mjs +4 -4
  36. package/esm2022/src/services/title/title.service.mjs +4 -4
  37. package/esm2022/src/theme.module.mjs +5 -5
  38. package/esm2022/src/version.mjs +1 -1
  39. package/esm2022/theme-btn/theme-btn.component.mjs +4 -4
  40. package/esm2022/theme-btn/theme-btn.module.mjs +5 -5
  41. package/fesm2022/layout-default.mjs +25 -25
  42. package/fesm2022/layout-default.mjs.map +1 -1
  43. package/fesm2022/setting-drawer.mjs +10 -10
  44. package/fesm2022/setting-drawer.mjs.map +1 -1
  45. package/fesm2022/theme-btn.mjs +7 -7
  46. package/fesm2022/theme-btn.mjs.map +1 -1
  47. package/fesm2022/theme.mjs +72 -68
  48. package/fesm2022/theme.mjs.map +1 -1
  49. package/layout-default/style/_aside.less +1 -2
  50. package/package.json +4 -4
  51. package/src/services/i18n/i18n-url.guard.d.ts +6 -2
  52. package/system/antd/_tag.less +13 -0
  53. package/system/utils/_scrollbar.less +2 -4
package/compact.css CHANGED
@@ -2,6 +2,7 @@
2
2
  /* stylelint-disable no-duplicate-selectors */
3
3
  /* stylelint-disable */
4
4
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ @import '~@angular/cdk/overlay-prebuilt.css';
5
6
  [class^=ant-]::-ms-clear,
6
7
  [class*= ant-]::-ms-clear,
7
8
  [class^=ant-] input::-ms-clear,
@@ -1596,15 +1597,6 @@ html {
1596
1597
  /* stylelint-disable no-duplicate-selectors */
1597
1598
  /* stylelint-disable */
1598
1599
  /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
1599
- .cdk-overlay-container {
1600
- pointer-events: none;
1601
- top: 0;
1602
- left: 0;
1603
- height: 100%;
1604
- width: 100%;
1605
- position: fixed;
1606
- z-index: 1000;
1607
- }
1608
1600
  .cdk-visually-hidden {
1609
1601
  border: 0;
1610
1602
  clip: rect(0 0 0 0);
@@ -1618,42 +1610,6 @@ html {
1618
1610
  -webkit-appearance: none;
1619
1611
  -moz-appearance: none;
1620
1612
  }
1621
- .cdk-overlay-backdrop {
1622
- top: 0;
1623
- bottom: 0;
1624
- left: 0;
1625
- right: 0;
1626
- -webkit-tap-highlight-color: transparent;
1627
- transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
1628
- opacity: 0;
1629
- position: absolute;
1630
- pointer-events: auto;
1631
- z-index: 1000;
1632
- }
1633
- .cdk-overlay-backdrop.ant-modal-mask {
1634
- opacity: 1;
1635
- }
1636
- .cdk-overlay-pane {
1637
- position: absolute;
1638
- pointer-events: auto;
1639
- z-index: 1000;
1640
- }
1641
- .cdk-overlay-connected-position-bounding-box {
1642
- position: absolute;
1643
- z-index: 1000;
1644
- display: flex;
1645
- flex-direction: column;
1646
- min-width: 1px;
1647
- min-height: 1px;
1648
- }
1649
- .cdk-global-scrollblock {
1650
- position: fixed;
1651
- width: 100%;
1652
- overflow-y: scroll;
1653
- }
1654
- .cdk-global-scrollblock body {
1655
- overflow-x: visible;
1656
- }
1657
1613
  .nz-overlay-transparent-backdrop,
1658
1614
  .nz-overlay-transparent-backdrop.cdk-overlay-backdrop-showing {
1659
1615
  opacity: 0;
@@ -5964,6 +5920,14 @@ textarea.ant-picker-input > input {
5964
5920
  .ant-picker-input > input-rtl {
5965
5921
  direction: rtl;
5966
5922
  }
5923
+ .ant-picker-input > input-stepperless[type='number'] {
5924
+ -moz-appearance: textfield;
5925
+ }
5926
+ .ant-picker-input > input-stepperless[type='number']::-webkit-inner-spin-button,
5927
+ .ant-picker-input > input-stepperless[type='number'] ::-webkit-outer-spin-button {
5928
+ -webkit-appearance: none;
5929
+ margin: 0;
5930
+ }
5967
5931
  .ant-picker-input > input:focus {
5968
5932
  box-shadow: none;
5969
5933
  }
@@ -13118,6 +13082,14 @@ textarea.ant-input-affix-wrapper {
13118
13082
  .ant-input-affix-wrapper-rtl {
13119
13083
  direction: rtl;
13120
13084
  }
13085
+ .ant-input-affix-wrapper-stepperless[type='number'] {
13086
+ -moz-appearance: textfield;
13087
+ }
13088
+ .ant-input-affix-wrapper-stepperless[type='number']::-webkit-inner-spin-button,
13089
+ .ant-input-affix-wrapper-stepperless[type='number'] ::-webkit-outer-spin-button {
13090
+ -webkit-appearance: none;
13091
+ margin: 0;
13092
+ }
13121
13093
  .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
13122
13094
  border-color: #40a9ff;
13123
13095
  border-right-width: 1px;
@@ -13398,6 +13370,14 @@ textarea.ant-input {
13398
13370
  .ant-input-rtl {
13399
13371
  direction: rtl;
13400
13372
  }
13373
+ .ant-input-stepperless[type='number'] {
13374
+ -moz-appearance: textfield;
13375
+ }
13376
+ .ant-input-stepperless[type='number']::-webkit-inner-spin-button,
13377
+ .ant-input-stepperless[type='number'] ::-webkit-outer-spin-button {
13378
+ -webkit-appearance: none;
13379
+ margin: 0;
13380
+ }
13401
13381
  .ant-input-group {
13402
13382
  box-sizing: border-box;
13403
13383
  margin: 0;
@@ -14052,6 +14032,14 @@ textarea.ant-input-number-affix-wrapper {
14052
14032
  .ant-input-number-affix-wrapper-rtl {
14053
14033
  direction: rtl;
14054
14034
  }
14035
+ .ant-input-number-affix-wrapper-stepperless[type='number'] {
14036
+ -moz-appearance: textfield;
14037
+ }
14038
+ .ant-input-number-affix-wrapper-stepperless[type='number']::-webkit-inner-spin-button,
14039
+ .ant-input-number-affix-wrapper-stepperless[type='number'] ::-webkit-outer-spin-button {
14040
+ -webkit-appearance: none;
14041
+ margin: 0;
14042
+ }
14055
14043
  .ant-input-number-affix-wrapper:not(.ant-input-number-affix-wrapper-disabled):hover {
14056
14044
  border-color: #40a9ff;
14057
14045
  border-right-width: 1px;
@@ -14295,6 +14283,14 @@ textarea.ant-input-number {
14295
14283
  .ant-input-number-rtl {
14296
14284
  direction: rtl;
14297
14285
  }
14286
+ .ant-input-number-stepperless[type='number'] {
14287
+ -moz-appearance: textfield;
14288
+ }
14289
+ .ant-input-number-stepperless[type='number']::-webkit-inner-spin-button,
14290
+ .ant-input-number-stepperless[type='number'] ::-webkit-outer-spin-button {
14291
+ -webkit-appearance: none;
14292
+ margin: 0;
14293
+ }
14298
14294
  .ant-input-number-group {
14299
14295
  box-sizing: border-box;
14300
14296
  margin: 0;
@@ -17043,6 +17039,14 @@ textarea.ant-mentions {
17043
17039
  .ant-mentions-rtl {
17044
17040
  direction: rtl;
17045
17041
  }
17042
+ .ant-mentions-stepperless[type='number'] {
17043
+ -moz-appearance: textfield;
17044
+ }
17045
+ .ant-mentions-stepperless[type='number']::-webkit-inner-spin-button,
17046
+ .ant-mentions-stepperless[type='number'] ::-webkit-outer-spin-button {
17047
+ -webkit-appearance: none;
17048
+ margin: 0;
17049
+ }
17046
17050
  .ant-mentions-disabled > textarea {
17047
17051
  background-color: #f5f5f5;
17048
17052
  border-color: #d9d9d9;
@@ -18402,6 +18406,14 @@ textarea.ant-pagination-options-quick-jumper input {
18402
18406
  .ant-pagination-options-quick-jumper input-rtl {
18403
18407
  direction: rtl;
18404
18408
  }
18409
+ .ant-pagination-options-quick-jumper input-stepperless[type='number'] {
18410
+ -moz-appearance: textfield;
18411
+ }
18412
+ .ant-pagination-options-quick-jumper input-stepperless[type='number']::-webkit-inner-spin-button,
18413
+ .ant-pagination-options-quick-jumper input-stepperless[type='number'] ::-webkit-outer-spin-button {
18414
+ -webkit-appearance: none;
18415
+ margin: 0;
18416
+ }
18405
18417
  .ant-pagination-simple .ant-pagination-prev,
18406
18418
  .ant-pagination-simple .ant-pagination-next {
18407
18419
  height: 22px;
@@ -27680,7 +27692,6 @@ nz-space-item {
27680
27692
  .ant-qrcode {
27681
27693
  display: inline-block;
27682
27694
  position: relative;
27683
- background-color: #fff;
27684
27695
  padding: 8px;
27685
27696
  }
27686
27697
  .ant-qrcode > canvas {
@@ -27710,6 +27721,234 @@ nz-space-item {
27710
27721
  .ant-water-mark {
27711
27722
  position: relative;
27712
27723
  }
27724
+ .ant-color-picker {
27725
+ position: absolute;
27726
+ z-index: 1;
27727
+ display: block;
27728
+ width: max-content;
27729
+ min-width: 250px;
27730
+ visibility: visible;
27731
+ }
27732
+ .ant-color-picker-hidden {
27733
+ display: none;
27734
+ }
27735
+ .ant-color-picker-panel {
27736
+ display: flex;
27737
+ flex-direction: column;
27738
+ width: 250px;
27739
+ border-radius: 2px;
27740
+ }
27741
+ .ant-color-picker-panel-disabled {
27742
+ cursor: not-allowed;
27743
+ }
27744
+ .ant-color-picker-select {
27745
+ margin-bottom: 8px;
27746
+ }
27747
+ .ant-color-picker-select .ant-color-picker-palette {
27748
+ min-height: 160px;
27749
+ overflow: hidden;
27750
+ border-radius: 2px;
27751
+ }
27752
+ .ant-color-picker-select .ant-color-picker-palette > .ant-color-picker-gradient {
27753
+ border-top-left-radius: 5px;
27754
+ }
27755
+ .ant-color-picker-saturation {
27756
+ position: absolute;
27757
+ border-radius: inherit;
27758
+ top: 0;
27759
+ left: 0;
27760
+ right: 0;
27761
+ bottom: 0;
27762
+ }
27763
+ .ant-color-picker-handler {
27764
+ box-sizing: border-box;
27765
+ width: 16px;
27766
+ height: 16px;
27767
+ border: 1px solid #fff;
27768
+ border-radius: 50%;
27769
+ }
27770
+ .ant-color-picker-handler-sm {
27771
+ width: 12px;
27772
+ height: 12px;
27773
+ }
27774
+ .ant-color-picker-slider {
27775
+ width: 100%;
27776
+ margin-bottom: 8px;
27777
+ }
27778
+ .ant-color-picker-slider .ant-color-picker-palette {
27779
+ height: 8px;
27780
+ }
27781
+ .ant-color-picker-slider .ant-color-picker-gradient {
27782
+ border-radius: 2px;
27783
+ }
27784
+ .ant-color-picker-slider-alpha {
27785
+ background-image: conic-gradient(rgba(0, 0, 0, 0.06) 0 25%, transparent 0 50%, rgba(0, 0, 0, 0.06) 0 75%, transparent 0);
27786
+ background-size: 8px 8px;
27787
+ }
27788
+ .ant-color-picker-trigger {
27789
+ min-width: 32px;
27790
+ height: 32px;
27791
+ border-radius: 2px;
27792
+ border: 1px solid #f0f0f0;
27793
+ cursor: pointer;
27794
+ display: flex;
27795
+ align-items: center;
27796
+ justify-content: center;
27797
+ transition: all 0.2s;
27798
+ padding: 3px;
27799
+ }
27800
+ .ant-color-picker-trigger:hover {
27801
+ border-color: #1890ff;
27802
+ }
27803
+ .ant-color-picker-trigger-text {
27804
+ margin: 0 0px 0 4px;
27805
+ font-size: 12px;
27806
+ }
27807
+ .ant-color-picker-sm {
27808
+ min-width: 24px;
27809
+ height: 24px;
27810
+ }
27811
+ .ant-color-picker-lg {
27812
+ min-width: 40px;
27813
+ height: 40px;
27814
+ }
27815
+ .ant-color-picker-lg .ant-color-picker-trigger-text {
27816
+ font-size: 14px;
27817
+ }
27818
+ .ant-color-picker-color-block {
27819
+ position: relative;
27820
+ width: 28px;
27821
+ height: 28px;
27822
+ margin-left: 4px;
27823
+ background-image: conic-gradient(rgba(0, 0, 0, 0.06) 0 25%, transparent 0 50%, rgba(0, 0, 0, 0.06) 0 75%, transparent 0);
27824
+ background-size: 50% 50%;
27825
+ overflow: hidden;
27826
+ border-radius: 2px;
27827
+ }
27828
+ .ant-color-picker-color-block-inner {
27829
+ box-sizing: border-box;
27830
+ width: 100%;
27831
+ height: 100%;
27832
+ border: 1px solid #f0f0f0;
27833
+ }
27834
+ .ant-color-picker-slider-container {
27835
+ display: flex;
27836
+ }
27837
+ .ant-color-picker-slider-container .ant-color-picker-slider-group {
27838
+ flex: 1;
27839
+ }
27840
+ .ant-color-picker-slider-container .ant-color-picker-slider-group-disabled-alpha {
27841
+ display: flex;
27842
+ align-items: center;
27843
+ }
27844
+ .ant-color-picker-slider-container .ant-color-picker-slider-group-disabled-alpha .ant-color-picker-slider {
27845
+ margin-bottom: 0;
27846
+ }
27847
+ .ant-color-picker-title {
27848
+ display: flex;
27849
+ }
27850
+ .ant-color-picker-title-content {
27851
+ flex: 1;
27852
+ margin-bottom: 4px;
27853
+ }
27854
+ .ant-color-picker-title .ant-color-picker-clear {
27855
+ flex: 0 0 18px;
27856
+ margin-left: 4px;
27857
+ }
27858
+ .ant-color-picker-clear {
27859
+ width: 18px;
27860
+ height: 18px;
27861
+ border-radius: 2px;
27862
+ border: 1px solid #f0f0f0;
27863
+ position: relative;
27864
+ cursor: pointer;
27865
+ overflow: hidden;
27866
+ margin-bottom: 4px;
27867
+ }
27868
+ .ant-color-picker-clear::after {
27869
+ content: "";
27870
+ position: absolute;
27871
+ inset-inline-end: 1px;
27872
+ top: 0;
27873
+ display: block;
27874
+ width: 40px;
27875
+ height: 2px;
27876
+ transform-origin: right;
27877
+ transform: rotate(-45deg);
27878
+ background-color: #f5222d;
27879
+ }
27880
+ .ant-color-picker-input-container {
27881
+ display: flex;
27882
+ }
27883
+ .ant-color-picker-input-container .ant-select {
27884
+ font-size: 12px;
27885
+ }
27886
+ .ant-color-picker-input-container .ant-input {
27887
+ font-size: 12px;
27888
+ }
27889
+ .ant-color-picker-input-container .ant-input-number {
27890
+ font-size: 12px;
27891
+ width: auto;
27892
+ }
27893
+ .ant-color-picker-input-container .ant-input-number-sm input {
27894
+ padding: 0 0 0 4px;
27895
+ }
27896
+ .ant-color-picker-input-container .ant-select-selector {
27897
+ padding: 0;
27898
+ }
27899
+ .ant-color-picker-input-container .ant-color-picker-format-select {
27900
+ width: auto;
27901
+ }
27902
+ .ant-color-picker-input-container .ant-color-picker-input {
27903
+ flex: 1;
27904
+ }
27905
+ .ant-color-picker-input-container .ant-color-picker-input .ant-color-picker-hex-input {
27906
+ padding: 0;
27907
+ margin-right: 0px;
27908
+ }
27909
+ .ant-color-picker-input-container .ant-color-picker-input .ant-color-picker-hsb-input {
27910
+ display: flex;
27911
+ gap: 4px;
27912
+ align-items: center;
27913
+ }
27914
+ .ant-color-picker-input-container .ant-color-picker-input .ant-color-picker-rgb-input {
27915
+ display: flex;
27916
+ gap: 4px;
27917
+ align-items: center;
27918
+ }
27919
+ .ant-color-picker-input-container .ant-color-picker-steppers {
27920
+ flex: 0 0 44px;
27921
+ }
27922
+ .ant-color-picker-input-container .ant-color-picker-alpha-input {
27923
+ flex: 0 0 44px;
27924
+ }
27925
+ .ant-color-picker-disabled {
27926
+ color: rgba(0, 0, 0, 0.25);
27927
+ background: #f5f5f5;
27928
+ cursor: not-allowed;
27929
+ }
27930
+ .ant-color-picker-disabled .ant-color-picker-trigger {
27931
+ cursor: not-allowed;
27932
+ }
27933
+ .ant-color-picker-disabled .ant-color-picker-trigger:hover {
27934
+ border-color: #f0f0f0;
27935
+ }
27936
+ .ant-color-picker-inline {
27937
+ display: inline-block;
27938
+ }
27939
+ .ant-color-picker-inline .ant-color-picker-color-block {
27940
+ margin: 0;
27941
+ width: 24px;
27942
+ height: 24px;
27943
+ }
27944
+ .ant-color-picker-inline-lg .ant-color-picker-color-block {
27945
+ width: 32px;
27946
+ height: 32px;
27947
+ }
27948
+ .ant-color-picker-inline-sm .ant-color-picker-color-block {
27949
+ width: 16px;
27950
+ height: 16px;
27951
+ }
27713
27952
  sf + st {
27714
27953
  margin-top: 16px;
27715
27954
  }
@@ -28092,6 +28331,17 @@ a:focus {
28092
28331
  background: #fff;
28093
28332
  border-style: dashed;
28094
28333
  }
28334
+ /**
28335
+ * Corrected `ng-tag` list line wrapping spacing
28336
+ *
28337
+ * 纠正 `ng-tag` 列表换行间距问题
28338
+ */
28339
+ .tag-wrap-list-spacing {
28340
+ margin-top: -8px;
28341
+ }
28342
+ .tag-wrap-list-spacing .ant-tag {
28343
+ margin-top: 8px;
28344
+ }
28095
28345
  .h1 small,
28096
28346
  .h2 small,
28097
28347
  .h3 small,
@@ -31466,12 +31716,10 @@ code {
31466
31716
  overflow: auto;
31467
31717
  }
31468
31718
  .scrollbar-x {
31469
- overflow-x: auto;
31470
- overflow-y: hidden;
31719
+ overflow: auto hidden;
31471
31720
  }
31472
31721
  .scrollbar-y {
31473
- overflow-x: hidden;
31474
- overflow-y: auto;
31722
+ overflow: hidden auto;
31475
31723
  }
31476
31724
  body,
31477
31725
  .scrollbar,
@@ -31818,8 +32066,7 @@ body {
31818
32066
  }
31819
32067
  .alain-default__aside-inner {
31820
32068
  flex: 1 1 0%;
31821
- overflow-x: hidden;
31822
- overflow-y: scroll;
32069
+ overflow-x: hidden scroll;
31823
32070
  -webkit-overflow-scrolling: touch;
31824
32071
  scroll-snap-type: proximity;
31825
32072
  scroll-snap-points-x: snaplist(100%, 200%, 300%, 400%, 500%);
@@ -32359,8 +32606,7 @@ body {
32359
32606
  right: 0;
32360
32607
  bottom: 0;
32361
32608
  display: flex;
32362
- align-items: center;
32363
- justify-items: center;
32609
+ place-items: center center;
32364
32610
  }
32365
32611
  .st__has-filter .ant-table-filter-trigger {
32366
32612
  height: 100%;