@jiaozhiye/qm-design-react 1.11.8 → 1.11.10

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 (40) hide show
  1. package/lib/_utils/motion.d.ts +7 -0
  2. package/lib/collapse/style/index.less +24 -24
  3. package/lib/collapse/style/motion.less +11 -0
  4. package/lib/color-picker/index.d.ts +3 -0
  5. package/lib/color-picker/src/color-picker.d.ts +26 -0
  6. package/lib/color-picker/style/index.less +117 -0
  7. package/lib/guide-tracker/src/guideTracker.d.ts +1 -1
  8. package/lib/index.d.ts +4 -0
  9. package/lib/index.esm.js +1 -1
  10. package/lib/index.full.js +1 -1
  11. package/lib/index.js +1 -1
  12. package/lib/locale/lang/en.d.ts +1 -0
  13. package/lib/locale/lang/en.js +6 -5
  14. package/lib/locale/lang/zh-cn.d.ts +1 -0
  15. package/lib/locale/lang/zh-cn.js +6 -5
  16. package/lib/pivot-grid/src/grid-layout/Context.d.ts +3 -0
  17. package/lib/pivot-grid/src/hooks/use-export.d.ts +11 -0
  18. package/lib/pivot-grid/src/main/Context.d.ts +20 -2
  19. package/lib/pivot-grid/src/main/Main.d.ts +3 -0
  20. package/lib/pivot-grid/src/main/types.d.ts +19 -3
  21. package/lib/pivot-grid/src/top-bar/AlertInfo.d.ts +3 -0
  22. package/lib/pivot-grid/src/top-bar/ConfigInfo.d.ts +3 -0
  23. package/lib/pivot-grid/src/top-bar/FillColor.d.ts +3 -0
  24. package/lib/pivot-grid/src/utils/index.d.ts +3 -6
  25. package/lib/pivot-grid/style/grid-layout.less +2 -2
  26. package/lib/pivot-grid/style/main.less +33 -43
  27. package/lib/pivot-grid/style/top-bar.less +45 -1
  28. package/lib/style/index.css +174 -34
  29. package/lib/style/index.less +44 -43
  30. package/lib/style/index.min.css +1 -1
  31. package/lib/table/src/utils/index.d.ts +2 -1
  32. package/lib/tour/src/Tour.d.ts +1 -1
  33. package/lib/tour/src/TourStep/index.d.ts +1 -1
  34. package/lib/tour/src/util.d.ts +1 -1
  35. package/lib/virtual-list/style/index.less +2 -1
  36. package/package.json +2 -1
  37. package/lib/collapse/src/_util/motion.less +0 -13
  38. package/lib/collapse/src/_util/motionUtil.d.ts +0 -3
  39. /package/lib/{tour/src → _utils}/placements.d.ts +0 -0
  40. /package/lib/pivot-grid/src/top-bar/{exportPanel.d.ts → ExportPanel.d.ts} +0 -0
@@ -2,7 +2,7 @@
2
2
  * @Author: 焦质晔
3
3
  * @Date: 2021-07-23 18:23:59
4
4
  * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-12-02 09:06:40
5
+ * @Last Modified time: 2024-12-26 11:04:29
6
6
  */
7
7
  /*
8
8
  * @Author: 焦质晔
@@ -28466,15 +28466,15 @@ body {
28466
28466
  * @Author: 焦质晔
28467
28467
  * @Date: 2021-07-23 19:05:57
28468
28468
  * @Last Modified by: 焦质晔
28469
- * @Last Modified time: 2022-06-01 20:04:55
28469
+ * @Last Modified time: 2024-12-26 14:20:20
28470
28470
  */
28471
28471
  /*
28472
28472
  * @Author: 焦质晔
28473
28473
  * @Date: 2022-06-01 20:17:51
28474
- * @Last Modified by: 焦质晔
28475
- * @Last Modified time: 2022-06-01 20:17:51
28474
+ * @Last Modified by: 焦质晔
28475
+ * @Last Modified time: 2024-12-26 14:19:50
28476
28476
  */
28477
- .rc-collapse-motion {
28477
+ .qm-motion-collapse {
28478
28478
  transition: height 0.3s, opacity 0.3s;
28479
28479
  }
28480
28480
  .qm-collapse-content {
@@ -30973,40 +30973,29 @@ body {
30973
30973
  * @Author: 焦质晔
30974
30974
  * @Date: 2022-03-16 19:05:30
30975
30975
  * @Last Modified by: 焦质晔
30976
- * @Last Modified time: 2024-11-29 10:33:42
30976
+ * @Last Modified time: 2024-12-25 14:25:58
30977
30977
  */
30978
- .qm-pivot-grid__main {
30979
- height: 100%;
30978
+ .qm-pivot-grid {
30980
30979
  display: flex;
30981
30980
  flex-direction: column;
30982
30981
  }
30983
- .qm-pivot-grid__main .top-bar {
30984
- padding: 8px;
30985
- border-bottom: 1px solid #e8e8e8;
30982
+ .qm-pivot-grid.is-from-table {
30983
+ height: 100%;
30986
30984
  }
30987
- .qm-pivot-grid__main .top-bar .action-btn {
30988
- display: inline-flex;
30989
- align-items: center;
30990
- padding: 5px 12px;
30985
+ .qm-pivot-grid:not(.is-from-table) {
30986
+ border: 1px solid #e8e8e8;
30991
30987
  border-radius: 4px;
30992
- cursor: pointer;
30993
- transition: all 0.3s ease;
30994
- }
30995
- .qm-pivot-grid__main .top-bar .action-btn:hover,
30996
- .qm-pivot-grid__main .top-bar .action-btn.active,
30997
- .qm-pivot-grid__main .top-bar .action-btn.ant-dropdown-open {
30998
- background-color: #f2f2f2;
30999
- }
31000
- .qm-pivot-grid__main .top-bar .action-btn .icon {
31001
- margin-right: 6px;
31002
30988
  }
31003
- .qm-pivot-grid__main .top-bar .ant-divider-vertical {
31004
- margin: 0;
31005
- height: 1.25em;
30989
+ .qm-pivot-grid .top-bar {
30990
+ display: flex;
30991
+ justify-content: space-between;
30992
+ padding: 8px;
30993
+ border-bottom: 1px solid #e8e8e8;
31006
30994
  }
31007
- .qm-pivot-grid__main .wrapper {
30995
+ .qm-pivot-grid .wrapper {
30996
+ display: flex;
31008
30997
  flex: auto;
31009
- height: 0;
30998
+ min-height: 0;
31010
30999
  padding: 10px;
31011
31000
  background-color: #f5f5f5;
31012
31001
  }
@@ -31014,7 +31003,7 @@ body {
31014
31003
  * @Author: 焦质晔
31015
31004
  * @Date: 2022-03-16 19:05:30
31016
31005
  * @Last Modified by: 焦质晔
31017
- * @Last Modified time: 2024-12-13 14:07:07
31006
+ * @Last Modified time: 2024-12-25 18:46:15
31018
31007
  */
31019
31008
  .button-icon {
31020
31009
  display: inline-flex;
@@ -31037,6 +31026,38 @@ body {
31037
31026
  .button-icon.disabled {
31038
31027
  cursor: not-allowed;
31039
31028
  }
31029
+ .qm-pivot-grid .top-bar .alert-info {
31030
+ background-color: rgba(0, 0, 0, 0.045);
31031
+ border-radius: 2px;
31032
+ display: flex;
31033
+ align-items: center;
31034
+ margin-right: 4px;
31035
+ padding: 5px 8px;
31036
+ }
31037
+ .qm-pivot-grid .top-bar .alert-info .icon {
31038
+ margin-right: 5px;
31039
+ color: #1890ff;
31040
+ }
31041
+ .qm-pivot-grid .top-bar .action-btn {
31042
+ display: inline-flex;
31043
+ align-items: center;
31044
+ padding: 5px 12px;
31045
+ border-radius: 4px;
31046
+ cursor: pointer;
31047
+ transition: all 0.3s ease;
31048
+ }
31049
+ .qm-pivot-grid .top-bar .action-btn:hover,
31050
+ .qm-pivot-grid .top-bar .action-btn.active,
31051
+ .qm-pivot-grid .top-bar .action-btn.ant-dropdown-open {
31052
+ background-color: #f2f2f2;
31053
+ }
31054
+ .qm-pivot-grid .top-bar .action-btn .icon {
31055
+ margin-right: 6px;
31056
+ }
31057
+ .qm-pivot-grid .top-bar .ant-divider-vertical {
31058
+ margin: 0;
31059
+ height: 1.25em;
31060
+ }
31040
31061
  .qm-pivot-grid__popper .container {
31041
31062
  padding: 6px 15px;
31042
31063
  }
@@ -31086,9 +31107,13 @@ body {
31086
31107
  .qm-pivot-grid__popper .container > .list li.sort-item {
31087
31108
  display: flex;
31088
31109
  align-items: center;
31110
+ padding-right: 6px;
31089
31111
  border-radius: 4px;
31090
31112
  transition: none;
31091
31113
  }
31114
+ .qm-pivot-grid__popper .container > .list li.sort-item.active {
31115
+ background-color: #f5f5f5;
31116
+ }
31092
31117
  .qm-pivot-grid__popper .container > .list li.sort-item .handle {
31093
31118
  padding: 5px 6px 5px 2px;
31094
31119
  color: rgba(0, 0, 0, 0.45);
@@ -31102,6 +31127,9 @@ body {
31102
31127
  .qm-pivot-grid__popper .container > .list li.sort-item .label .title {
31103
31128
  flex: 1 0;
31104
31129
  }
31130
+ .qm-pivot-grid__popper .container > .list li.sort-item .button-icon:hover {
31131
+ background-color: #ddd;
31132
+ }
31105
31133
  .qm-pivot-grid__popper .container > .list li.divider {
31106
31134
  padding: 6px;
31107
31135
  }
@@ -31146,7 +31174,7 @@ body {
31146
31174
  * @Author: 焦质晔
31147
31175
  * @Date: 2022-03-16 19:05:30
31148
31176
  * @Last Modified by: 焦质晔
31149
- * @Last Modified time: 2024-12-21 19:46:45
31177
+ * @Last Modified time: 2024-12-25 11:07:14
31150
31178
  */
31151
31179
  .qm-pivot-grid__layout {
31152
31180
  box-sizing: border-box;
@@ -31157,9 +31185,9 @@ body {
31157
31185
  line-height: 1.5715;
31158
31186
  list-style: none;
31159
31187
  font-feature-settings: 'tnum';
31188
+ width: 100%;
31160
31189
  display: flex;
31161
31190
  flex-wrap: nowrap;
31162
- height: 100%;
31163
31191
  }
31164
31192
  .qm-pivot-grid__layout .header,
31165
31193
  .qm-pivot-grid__layout .footer {
@@ -31446,7 +31474,7 @@ body {
31446
31474
  * @Author: 焦质晔
31447
31475
  * @Date: 2024-12-02 09:06:20
31448
31476
  * @Last Modified by: 焦质晔
31449
- * @Last Modified time: 2024-12-02 13:16:55
31477
+ * @Last Modified time: 2024-12-26 14:23:49
31450
31478
  */
31451
31479
  .qm-virtual-list {
31452
31480
  box-sizing: border-box;
@@ -31461,6 +31489,118 @@ body {
31461
31489
  .qm-virtual-list .container {
31462
31490
  display: block;
31463
31491
  }
31492
+ .qm-virtual-list .container ul {
31493
+ will-change: transform;
31494
+ }
31464
31495
  .qm-virtual-list .container ul li.list-item {
31465
31496
  list-style: none;
31466
31497
  }
31498
+ /*
31499
+ * @Author: 焦质晔
31500
+ * @Date: 2024-12-02 09:06:20
31501
+ * @Last Modified by: 焦质晔
31502
+ * @Last Modified time: 2024-12-26 19:26:20
31503
+ */
31504
+ .qm-color-picker {
31505
+ position: absolute;
31506
+ z-index: 9999;
31507
+ display: block;
31508
+ width: -moz-max-content;
31509
+ width: max-content;
31510
+ min-width: 258px;
31511
+ visibility: visible;
31512
+ }
31513
+ .qm-color-picker-btn {
31514
+ display: inline-flex;
31515
+ padding: 3px;
31516
+ border: 1px solid #d9d9d9;
31517
+ border-radius: 6px;
31518
+ cursor: pointer;
31519
+ transition: border-color 0.3s ease;
31520
+ }
31521
+ .qm-color-picker-btn:hover {
31522
+ border-color: #1890ff;
31523
+ }
31524
+ .qm-color-picker-hidden {
31525
+ display: none;
31526
+ }
31527
+ .qm-color-picker-panel {
31528
+ display: flex;
31529
+ flex-direction: column;
31530
+ width: 258px;
31531
+ padding: 12px;
31532
+ background-color: #fff;
31533
+ border-radius: 8px;
31534
+ box-shadow: 0px 3px 6px -4px rgba(0, 0, 0, 0.12), 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 9px 28px 8px rgba(0, 0, 0, 0.05);
31535
+ }
31536
+ .qm-color-picker-panel-disabled {
31537
+ cursor: not-allowed;
31538
+ }
31539
+ .qm-color-picker-select {
31540
+ margin-bottom: 12px;
31541
+ }
31542
+ .qm-color-picker-select .qm-color-picker-palette {
31543
+ min-height: 160px;
31544
+ overflow: hidden;
31545
+ border-radius: 4px;
31546
+ }
31547
+ .qm-color-picker-select .qm-color-picker-palette > .qm-color-picker-gradient {
31548
+ border-top-left-radius: 5px;
31549
+ }
31550
+ .qm-color-picker-saturation {
31551
+ position: absolute;
31552
+ border-radius: inherit;
31553
+ inset: 0px;
31554
+ }
31555
+ .qm-color-picker-handler {
31556
+ width: 16px;
31557
+ height: 16px;
31558
+ border: 2px solid #fff;
31559
+ border-radius: 50%;
31560
+ box-shadow: 0 0 1px 1px rgba(0, 0, 0, 0.06);
31561
+ }
31562
+ .qm-color-picker-handler-sm {
31563
+ width: 12px;
31564
+ height: 12px;
31565
+ }
31566
+ .qm-color-picker-slider {
31567
+ width: 100%;
31568
+ margin-bottom: 12px;
31569
+ }
31570
+ .qm-color-picker-slider .qm-color-picker-palette {
31571
+ height: 8px;
31572
+ }
31573
+ .qm-color-picker-slider .qm-color-picker-gradient {
31574
+ border-radius: 4px;
31575
+ }
31576
+ .qm-color-picker-slider-alpha {
31577
+ background: url('./alpha.svg');
31578
+ }
31579
+ .qm-color-picker-color-block {
31580
+ position: relative;
31581
+ width: 24px;
31582
+ height: 24px;
31583
+ overflow: hidden;
31584
+ background-image: url('./alpha.svg');
31585
+ border-radius: 4px;
31586
+ }
31587
+ .qm-color-picker-color-block-inner {
31588
+ width: 100%;
31589
+ height: 100%;
31590
+ border: 1px solid rgba(0, 0, 0, 0.06);
31591
+ border-radius: 4px;
31592
+ }
31593
+ .qm-color-picker-slider-container {
31594
+ display: flex;
31595
+ }
31596
+ .qm-color-picker-slider-container .qm-color-picker-slider-group {
31597
+ flex: 1;
31598
+ margin-right: 8px;
31599
+ }
31600
+ .qm-color-picker-slider-container .qm-color-picker-slider-group-disabled-alpha {
31601
+ display: flex;
31602
+ align-items: center;
31603
+ }
31604
+ .qm-color-picker-slider-container .qm-color-picker-slider-group-disabled-alpha .qm-color-picker-slider {
31605
+ margin-bottom: 0;
31606
+ }
@@ -1,43 +1,44 @@
1
- /*
2
- * @Author: 焦质晔
3
- * @Date: 2021-07-23 18:23:59
4
- * @Last Modified by: 焦质晔
5
- * @Last Modified time: 2024-12-02 09:06:40
6
- */
7
- @import '../antd/index.less';
8
- @import './var.less';
9
- @import './reset.less';
10
-
11
- /* QmDesign */
12
- @import '../button/style/index.less';
13
- @import '../space/style/index.less';
14
- @import '../divider/style/index.less';
15
- @import '../split/style/index.less';
16
- @import '../countup/style/index.less';
17
- @import '../empty/style/index.less';
18
- @import '../spin/style/index.less';
19
- @import '../scrollbar/style/index.less';
20
- @import '../download/style/index.less';
21
- @import '../anchor/style/index.less';
22
- @import '../tabs/style/index.less';
23
- @import '../drawer/style/index.less';
24
- @import '../modal/style/index.less';
25
- @import '../form/style/index.less';
26
- @import '../tinymce/style/index.less';
27
- @import '../cropper/style/index.less';
28
- @import '../collapse/style/index.less';
29
- @import '../upload-file/style/index.less';
30
- @import '../upload-img/style/index.less';
31
- @import '../table/style/index.less';
32
- @import '../search-helper/style/index.less';
33
- @import '../tree-helper/style/index.less';
34
- @import '../tree-table-helper/style/index.less';
35
- @import '../range-table-helper/style/index.less';
36
- @import '../search-tree/style/index.less';
37
- @import '../tour/style/index.less';
38
- @import '../guide-tracker/style/index.less';
39
- @import '../print/style/index.less';
40
- @import '../lazy-load/style/index.less';
41
- @import '../signature/style/index.less';
42
- @import '../pivot-grid/style/index.less';
43
- @import '../virtual-list/style/index.less';
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 18:23:59
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2024-12-26 11:04:29
6
+ */
7
+ @import '../antd/index.less';
8
+ @import './var.less';
9
+ @import './reset.less';
10
+
11
+ /* QmDesign */
12
+ @import '../button/style/index.less';
13
+ @import '../space/style/index.less';
14
+ @import '../divider/style/index.less';
15
+ @import '../split/style/index.less';
16
+ @import '../countup/style/index.less';
17
+ @import '../empty/style/index.less';
18
+ @import '../spin/style/index.less';
19
+ @import '../scrollbar/style/index.less';
20
+ @import '../download/style/index.less';
21
+ @import '../anchor/style/index.less';
22
+ @import '../tabs/style/index.less';
23
+ @import '../drawer/style/index.less';
24
+ @import '../modal/style/index.less';
25
+ @import '../form/style/index.less';
26
+ @import '../tinymce/style/index.less';
27
+ @import '../cropper/style/index.less';
28
+ @import '../collapse/style/index.less';
29
+ @import '../upload-file/style/index.less';
30
+ @import '../upload-img/style/index.less';
31
+ @import '../table/style/index.less';
32
+ @import '../search-helper/style/index.less';
33
+ @import '../tree-helper/style/index.less';
34
+ @import '../tree-table-helper/style/index.less';
35
+ @import '../range-table-helper/style/index.less';
36
+ @import '../search-tree/style/index.less';
37
+ @import '../tour/style/index.less';
38
+ @import '../guide-tracker/style/index.less';
39
+ @import '../print/style/index.less';
40
+ @import '../lazy-load/style/index.less';
41
+ @import '../signature/style/index.less';
42
+ @import '../pivot-grid/style/index.less';
43
+ @import '../virtual-list/style/index.less';
44
+ @import '../color-picker/style/index.less';