@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/dark.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
  }
@@ -13306,6 +13270,14 @@ textarea.ant-input-affix-wrapper {
13306
13270
  .ant-input-affix-wrapper-rtl {
13307
13271
  direction: rtl;
13308
13272
  }
13273
+ .ant-input-affix-wrapper-stepperless[type='number'] {
13274
+ -moz-appearance: textfield;
13275
+ }
13276
+ .ant-input-affix-wrapper-stepperless[type='number']::-webkit-inner-spin-button,
13277
+ .ant-input-affix-wrapper-stepperless[type='number'] ::-webkit-outer-spin-button {
13278
+ -webkit-appearance: none;
13279
+ margin: 0;
13280
+ }
13309
13281
  .ant-input-affix-wrapper:not(.ant-input-affix-wrapper-disabled):hover {
13310
13282
  border-color: #165996;
13311
13283
  border-right-width: 1px;
@@ -13586,6 +13558,14 @@ textarea.ant-input {
13586
13558
  .ant-input-rtl {
13587
13559
  direction: rtl;
13588
13560
  }
13561
+ .ant-input-stepperless[type='number'] {
13562
+ -moz-appearance: textfield;
13563
+ }
13564
+ .ant-input-stepperless[type='number']::-webkit-inner-spin-button,
13565
+ .ant-input-stepperless[type='number'] ::-webkit-outer-spin-button {
13566
+ -webkit-appearance: none;
13567
+ margin: 0;
13568
+ }
13589
13569
  .ant-input-group {
13590
13570
  box-sizing: border-box;
13591
13571
  margin: 0;
@@ -14240,6 +14220,14 @@ textarea.ant-input-number-affix-wrapper {
14240
14220
  .ant-input-number-affix-wrapper-rtl {
14241
14221
  direction: rtl;
14242
14222
  }
14223
+ .ant-input-number-affix-wrapper-stepperless[type='number'] {
14224
+ -moz-appearance: textfield;
14225
+ }
14226
+ .ant-input-number-affix-wrapper-stepperless[type='number']::-webkit-inner-spin-button,
14227
+ .ant-input-number-affix-wrapper-stepperless[type='number'] ::-webkit-outer-spin-button {
14228
+ -webkit-appearance: none;
14229
+ margin: 0;
14230
+ }
14243
14231
  .ant-input-number-affix-wrapper:not(.ant-input-number-affix-wrapper-disabled):hover {
14244
14232
  border-color: #165996;
14245
14233
  border-right-width: 1px;
@@ -14483,6 +14471,14 @@ textarea.ant-input-number {
14483
14471
  .ant-input-number-rtl {
14484
14472
  direction: rtl;
14485
14473
  }
14474
+ .ant-input-number-stepperless[type='number'] {
14475
+ -moz-appearance: textfield;
14476
+ }
14477
+ .ant-input-number-stepperless[type='number']::-webkit-inner-spin-button,
14478
+ .ant-input-number-stepperless[type='number'] ::-webkit-outer-spin-button {
14479
+ -webkit-appearance: none;
14480
+ margin: 0;
14481
+ }
14486
14482
  .ant-input-number-group {
14487
14483
  box-sizing: border-box;
14488
14484
  margin: 0;
@@ -17234,6 +17230,14 @@ textarea.ant-mentions {
17234
17230
  .ant-mentions-rtl {
17235
17231
  direction: rtl;
17236
17232
  }
17233
+ .ant-mentions-stepperless[type='number'] {
17234
+ -moz-appearance: textfield;
17235
+ }
17236
+ .ant-mentions-stepperless[type='number']::-webkit-inner-spin-button,
17237
+ .ant-mentions-stepperless[type='number'] ::-webkit-outer-spin-button {
17238
+ -webkit-appearance: none;
17239
+ margin: 0;
17240
+ }
17237
17241
  .ant-mentions-disabled > textarea {
17238
17242
  background-color: rgba(255, 255, 255, 0.08);
17239
17243
  border-color: #434343;
@@ -18966,6 +18970,14 @@ textarea.ant-pagination-options-quick-jumper input {
18966
18970
  .ant-pagination-options-quick-jumper input-rtl {
18967
18971
  direction: rtl;
18968
18972
  }
18973
+ .ant-pagination-options-quick-jumper input-stepperless[type='number'] {
18974
+ -moz-appearance: textfield;
18975
+ }
18976
+ .ant-pagination-options-quick-jumper input-stepperless[type='number']::-webkit-inner-spin-button,
18977
+ .ant-pagination-options-quick-jumper input-stepperless[type='number'] ::-webkit-outer-spin-button {
18978
+ -webkit-appearance: none;
18979
+ margin: 0;
18980
+ }
18969
18981
  .ant-pagination-simple .ant-pagination-prev,
18970
18982
  .ant-pagination-simple .ant-pagination-next {
18971
18983
  height: 24px;
@@ -28244,7 +28256,6 @@ nz-space-item {
28244
28256
  .ant-qrcode {
28245
28257
  display: inline-block;
28246
28258
  position: relative;
28247
- background-color: #fff;
28248
28259
  padding: 12px;
28249
28260
  }
28250
28261
  .ant-qrcode > canvas {
@@ -28274,6 +28285,234 @@ nz-space-item {
28274
28285
  .ant-water-mark {
28275
28286
  position: relative;
28276
28287
  }
28288
+ .ant-color-picker {
28289
+ position: absolute;
28290
+ z-index: 1;
28291
+ display: block;
28292
+ width: max-content;
28293
+ min-width: 250px;
28294
+ visibility: visible;
28295
+ }
28296
+ .ant-color-picker-hidden {
28297
+ display: none;
28298
+ }
28299
+ .ant-color-picker-panel {
28300
+ display: flex;
28301
+ flex-direction: column;
28302
+ width: 250px;
28303
+ border-radius: 2px;
28304
+ }
28305
+ .ant-color-picker-panel-disabled {
28306
+ cursor: not-allowed;
28307
+ }
28308
+ .ant-color-picker-select {
28309
+ margin-bottom: 12px;
28310
+ }
28311
+ .ant-color-picker-select .ant-color-picker-palette {
28312
+ min-height: 160px;
28313
+ overflow: hidden;
28314
+ border-radius: 2px;
28315
+ }
28316
+ .ant-color-picker-select .ant-color-picker-palette > .ant-color-picker-gradient {
28317
+ border-top-left-radius: 5px;
28318
+ }
28319
+ .ant-color-picker-saturation {
28320
+ position: absolute;
28321
+ border-radius: inherit;
28322
+ top: 0;
28323
+ left: 0;
28324
+ right: 0;
28325
+ bottom: 0;
28326
+ }
28327
+ .ant-color-picker-handler {
28328
+ box-sizing: border-box;
28329
+ width: 16px;
28330
+ height: 16px;
28331
+ border: 1px solid #fff;
28332
+ border-radius: 50%;
28333
+ }
28334
+ .ant-color-picker-handler-sm {
28335
+ width: 12px;
28336
+ height: 12px;
28337
+ }
28338
+ .ant-color-picker-slider {
28339
+ width: 100%;
28340
+ margin-bottom: 12px;
28341
+ }
28342
+ .ant-color-picker-slider .ant-color-picker-palette {
28343
+ height: 8px;
28344
+ }
28345
+ .ant-color-picker-slider .ant-color-picker-gradient {
28346
+ border-radius: 2px;
28347
+ }
28348
+ .ant-color-picker-slider-alpha {
28349
+ 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);
28350
+ background-size: 8px 8px;
28351
+ }
28352
+ .ant-color-picker-trigger {
28353
+ min-width: 32px;
28354
+ height: 32px;
28355
+ border-radius: 2px;
28356
+ border: 1px solid #303030;
28357
+ cursor: pointer;
28358
+ display: flex;
28359
+ align-items: center;
28360
+ justify-content: center;
28361
+ transition: all 0.2s;
28362
+ padding: 3px;
28363
+ }
28364
+ .ant-color-picker-trigger:hover {
28365
+ border-color: #177ddc;
28366
+ }
28367
+ .ant-color-picker-trigger-text {
28368
+ margin: 0 4px 0 8px;
28369
+ font-size: 14px;
28370
+ }
28371
+ .ant-color-picker-sm {
28372
+ min-width: 24px;
28373
+ height: 24px;
28374
+ }
28375
+ .ant-color-picker-lg {
28376
+ min-width: 40px;
28377
+ height: 40px;
28378
+ }
28379
+ .ant-color-picker-lg .ant-color-picker-trigger-text {
28380
+ font-size: 16px;
28381
+ }
28382
+ .ant-color-picker-color-block {
28383
+ position: relative;
28384
+ width: 28px;
28385
+ height: 28px;
28386
+ margin-left: 8px;
28387
+ 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);
28388
+ background-size: 50% 50%;
28389
+ overflow: hidden;
28390
+ border-radius: 2px;
28391
+ }
28392
+ .ant-color-picker-color-block-inner {
28393
+ box-sizing: border-box;
28394
+ width: 100%;
28395
+ height: 100%;
28396
+ border: 1px solid #303030;
28397
+ }
28398
+ .ant-color-picker-slider-container {
28399
+ display: flex;
28400
+ }
28401
+ .ant-color-picker-slider-container .ant-color-picker-slider-group {
28402
+ flex: 1;
28403
+ }
28404
+ .ant-color-picker-slider-container .ant-color-picker-slider-group-disabled-alpha {
28405
+ display: flex;
28406
+ align-items: center;
28407
+ }
28408
+ .ant-color-picker-slider-container .ant-color-picker-slider-group-disabled-alpha .ant-color-picker-slider {
28409
+ margin-bottom: 0;
28410
+ }
28411
+ .ant-color-picker-title {
28412
+ display: flex;
28413
+ }
28414
+ .ant-color-picker-title-content {
28415
+ flex: 1;
28416
+ margin-bottom: 8px;
28417
+ }
28418
+ .ant-color-picker-title .ant-color-picker-clear {
28419
+ flex: 0 0 18px;
28420
+ margin-left: 8px;
28421
+ }
28422
+ .ant-color-picker-clear {
28423
+ width: 18px;
28424
+ height: 18px;
28425
+ border-radius: 2px;
28426
+ border: 1px solid #303030;
28427
+ position: relative;
28428
+ cursor: pointer;
28429
+ overflow: hidden;
28430
+ margin-bottom: 8px;
28431
+ }
28432
+ .ant-color-picker-clear::after {
28433
+ content: "";
28434
+ position: absolute;
28435
+ inset-inline-end: 1px;
28436
+ top: 0;
28437
+ display: block;
28438
+ width: 40px;
28439
+ height: 2px;
28440
+ transform-origin: right;
28441
+ transform: rotate(-45deg);
28442
+ background-color: #f5222d;
28443
+ }
28444
+ .ant-color-picker-input-container {
28445
+ display: flex;
28446
+ }
28447
+ .ant-color-picker-input-container .ant-select {
28448
+ font-size: 12px;
28449
+ }
28450
+ .ant-color-picker-input-container .ant-input {
28451
+ font-size: 12px;
28452
+ }
28453
+ .ant-color-picker-input-container .ant-input-number {
28454
+ font-size: 12px;
28455
+ width: auto;
28456
+ }
28457
+ .ant-color-picker-input-container .ant-input-number-sm input {
28458
+ padding: 0 0 0 4px;
28459
+ }
28460
+ .ant-color-picker-input-container .ant-select-selector {
28461
+ padding: 0;
28462
+ }
28463
+ .ant-color-picker-input-container .ant-color-picker-format-select {
28464
+ width: auto;
28465
+ }
28466
+ .ant-color-picker-input-container .ant-color-picker-input {
28467
+ flex: 1;
28468
+ }
28469
+ .ant-color-picker-input-container .ant-color-picker-input .ant-color-picker-hex-input {
28470
+ padding: 0;
28471
+ margin-right: 4px;
28472
+ }
28473
+ .ant-color-picker-input-container .ant-color-picker-input .ant-color-picker-hsb-input {
28474
+ display: flex;
28475
+ gap: 4px;
28476
+ align-items: center;
28477
+ }
28478
+ .ant-color-picker-input-container .ant-color-picker-input .ant-color-picker-rgb-input {
28479
+ display: flex;
28480
+ gap: 4px;
28481
+ align-items: center;
28482
+ }
28483
+ .ant-color-picker-input-container .ant-color-picker-steppers {
28484
+ flex: 0 0 44px;
28485
+ }
28486
+ .ant-color-picker-input-container .ant-color-picker-alpha-input {
28487
+ flex: 0 0 44px;
28488
+ }
28489
+ .ant-color-picker-disabled {
28490
+ color: rgba(255, 255, 255, 0.3);
28491
+ background: rgba(255, 255, 255, 0.08);
28492
+ cursor: not-allowed;
28493
+ }
28494
+ .ant-color-picker-disabled .ant-color-picker-trigger {
28495
+ cursor: not-allowed;
28496
+ }
28497
+ .ant-color-picker-disabled .ant-color-picker-trigger:hover {
28498
+ border-color: #303030;
28499
+ }
28500
+ .ant-color-picker-inline {
28501
+ display: inline-block;
28502
+ }
28503
+ .ant-color-picker-inline .ant-color-picker-color-block {
28504
+ margin: 0;
28505
+ width: 24px;
28506
+ height: 24px;
28507
+ }
28508
+ .ant-color-picker-inline-lg .ant-color-picker-color-block {
28509
+ width: 32px;
28510
+ height: 32px;
28511
+ }
28512
+ .ant-color-picker-inline-sm .ant-color-picker-color-block {
28513
+ width: 16px;
28514
+ height: 16px;
28515
+ }
28277
28516
  sf + st {
28278
28517
  margin-top: 16px;
28279
28518
  }
@@ -28656,6 +28895,17 @@ a:focus {
28656
28895
  background: #fff;
28657
28896
  border-style: dashed;
28658
28897
  }
28898
+ /**
28899
+ * Corrected `ng-tag` list line wrapping spacing
28900
+ *
28901
+ * 纠正 `ng-tag` 列表换行间距问题
28902
+ */
28903
+ .tag-wrap-list-spacing {
28904
+ margin-top: -8px;
28905
+ }
28906
+ .tag-wrap-list-spacing .ant-tag {
28907
+ margin-top: 8px;
28908
+ }
28659
28909
  .h1 small,
28660
28910
  .h2 small,
28661
28911
  .h3 small,
@@ -32030,12 +32280,10 @@ code {
32030
32280
  overflow: auto;
32031
32281
  }
32032
32282
  .scrollbar-x {
32033
- overflow-x: auto;
32034
- overflow-y: hidden;
32283
+ overflow: auto hidden;
32035
32284
  }
32036
32285
  .scrollbar-y {
32037
- overflow-x: hidden;
32038
- overflow-y: auto;
32286
+ overflow: hidden auto;
32039
32287
  }
32040
32288
  body,
32041
32289
  .scrollbar,
@@ -32382,8 +32630,7 @@ body {
32382
32630
  }
32383
32631
  .alain-default__aside-inner {
32384
32632
  flex: 1 1 0%;
32385
- overflow-x: hidden;
32386
- overflow-y: scroll;
32633
+ overflow-x: hidden scroll;
32387
32634
  -webkit-overflow-scrolling: touch;
32388
32635
  scroll-snap-type: proximity;
32389
32636
  scroll-snap-points-x: snaplist(100%, 200%, 300%, 400%, 500%);
@@ -32923,8 +33170,7 @@ body {
32923
33170
  right: 0;
32924
33171
  bottom: 0;
32925
33172
  display: flex;
32926
- align-items: center;
32927
- justify-items: center;
33173
+ place-items: center center;
32928
33174
  }
32929
33175
  .st__has-filter .ant-table-filter-trigger {
32930
33176
  height: 100%;
@@ -34014,7 +34260,7 @@ ellipsis {
34014
34260
  .onboarding__light {
34015
34261
  position: absolute;
34016
34262
  z-index: 99999;
34017
- background-color: #141414;
34263
+ background-color: rgba(0, 0, 0, 0.1);
34018
34264
  animation: 2500ms cubic-bezier(0.55, 0.05, 0.6, 0.2) 0s infinite normal none running onboardingAnt;
34019
34265
  pointer-events: none;
34020
34266
  }