dcp-design-react 1.10.18 → 1.10.19

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 (46) hide show
  1. package/lib/index.d.ts +4 -0
  2. package/lib/index.esm.js +1 -1
  3. package/lib/index.full.js +1 -1
  4. package/lib/index.js +1 -1
  5. package/lib/locale/lang/en.d.ts +4 -0
  6. package/lib/locale/lang/en.js +9 -5
  7. package/lib/locale/lang/zh-cn.d.ts +4 -0
  8. package/lib/locale/lang/zh-cn.js +9 -5
  9. package/lib/pivot-grid/index.d.ts +3 -0
  10. package/lib/pivot-grid/src/config/index.d.ts +9 -0
  11. package/lib/pivot-grid/src/grid-layout/Body.d.ts +3 -0
  12. package/lib/pivot-grid/src/grid-layout/Context.d.ts +20 -0
  13. package/lib/pivot-grid/src/grid-layout/CountPanel.d.ts +7 -0
  14. package/lib/pivot-grid/src/grid-layout/Footer.d.ts +3 -0
  15. package/lib/pivot-grid/src/grid-layout/GroupCard.d.ts +10 -0
  16. package/lib/pivot-grid/src/grid-layout/Header.d.ts +3 -0
  17. package/lib/pivot-grid/src/grid-layout/List.d.ts +7 -0
  18. package/lib/pivot-grid/src/grid-layout/ResizeBar.d.ts +7 -0
  19. package/lib/pivot-grid/src/grid-layout/index.d.ts +3 -0
  20. package/lib/pivot-grid/src/main/Context.d.ts +39 -0
  21. package/lib/pivot-grid/src/main/index.d.ts +3 -0
  22. package/lib/pivot-grid/src/main/types.d.ts +8 -0
  23. package/lib/pivot-grid/src/top-bar/FieldsPanel.d.ts +3 -0
  24. package/lib/pivot-grid/src/top-bar/FilterPanel.d.ts +3 -0
  25. package/lib/pivot-grid/src/top-bar/GroupPanel.d.ts +3 -0
  26. package/lib/pivot-grid/src/top-bar/LineHeightPanel.d.ts +3 -0
  27. package/lib/pivot-grid/src/top-bar/SearchPanel.d.ts +3 -0
  28. package/lib/pivot-grid/src/top-bar/SorterPanel.d.ts +3 -0
  29. package/lib/pivot-grid/src/top-bar/ViewMode.d.ts +3 -0
  30. package/lib/pivot-grid/src/top-bar/index.d.ts +3 -0
  31. package/lib/pivot-grid/src/utils/index.d.ts +2 -0
  32. package/lib/pivot-grid/style/grid-layout.less +234 -0
  33. package/lib/pivot-grid/style/index.less +10 -0
  34. package/lib/pivot-grid/style/main.less +43 -0
  35. package/lib/pivot-grid/style/top-bar.less +105 -0
  36. package/lib/pivot-grid/style/variable.less +9 -0
  37. package/lib/style/index.css +392 -2
  38. package/lib/style/index.less +2 -1
  39. package/lib/style/index.min.css +1 -1
  40. package/lib/table/src/hooks/useTableMemo.d.ts +1 -0
  41. package/lib/table/src/pivot-grid/index.d.ts +7 -0
  42. package/lib/table/src/table/props.d.ts +1 -0
  43. package/lib/table/src/table/types.d.ts +3 -1
  44. package/lib/table/src/toolbox/index.d.ts +1 -0
  45. package/lib/table/style/index.less +1 -1
  46. package/package.json +1 -1
@@ -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-05-10 15:53:22
5
+ * @Last Modified time: 2024-11-28 20:01:15
6
6
  */
7
7
  /*
8
8
  * @Author: 焦质晔
@@ -28616,7 +28616,7 @@ body {
28616
28616
  * @Author: 焦质晔
28617
28617
  * @Date: 2021-07-23 19:05:57
28618
28618
  * @Last Modified by: 焦质晔
28619
- * @Last Modified time: 2024-07-23 09:28:50
28619
+ * @Last Modified time: 2024-11-28 20:00:14
28620
28620
  */
28621
28621
  /*
28622
28622
  * @Author: 焦质晔
@@ -30909,3 +30909,393 @@ body {
30909
30909
  .qm-signature__popper .content .penColor .dot.active .icon {
30910
30910
  display: block;
30911
30911
  }
30912
+ /*
30913
+ * @Author: 焦质晔
30914
+ * @Date: 2024-11-28 19:27:58
30915
+ * @Last Modified by: 焦质晔
30916
+ * @Last Modified time: 2024-11-28 20:04:56
30917
+ */
30918
+ /*
30919
+ * @Author: 焦质晔
30920
+ * @Date: 2020-02-28 21:58:58
30921
+ * @Last Modified by: 焦质晔
30922
+ * @Last Modified time: 2024-11-28 20:04:56
30923
+ */
30924
+ /*
30925
+ * @Author: 焦质晔
30926
+ * @Date: 2022-03-16 19:05:30
30927
+ * @Last Modified by: 焦质晔
30928
+ * @Last Modified time: 2024-11-29 10:33:42
30929
+ */
30930
+ .qm-pivot-grid__main {
30931
+ height: 100%;
30932
+ display: flex;
30933
+ flex-direction: column;
30934
+ }
30935
+ .qm-pivot-grid__main .top-bar {
30936
+ padding: 8px;
30937
+ border-bottom: 1px solid #e8e8e8;
30938
+ }
30939
+ .qm-pivot-grid__main .top-bar .action-btn {
30940
+ display: inline-flex;
30941
+ align-items: center;
30942
+ padding: 5px 12px;
30943
+ border-radius: 4px;
30944
+ cursor: pointer;
30945
+ transition: all 0.3s ease;
30946
+ }
30947
+ .qm-pivot-grid__main .top-bar .action-btn:hover,
30948
+ .qm-pivot-grid__main .top-bar .action-btn.active,
30949
+ .qm-pivot-grid__main .top-bar .action-btn.ant-dropdown-open {
30950
+ background-color: #f2f2f2;
30951
+ }
30952
+ .qm-pivot-grid__main .top-bar .action-btn .icon {
30953
+ margin-right: 6px;
30954
+ }
30955
+ .qm-pivot-grid__main .top-bar .ant-divider-vertical {
30956
+ margin: 0;
30957
+ height: 1.25em;
30958
+ }
30959
+ .qm-pivot-grid__main .wrapper {
30960
+ flex: auto;
30961
+ height: 0;
30962
+ padding: 10px;
30963
+ background-color: #f5f5f5;
30964
+ }
30965
+ /*
30966
+ * @Author: 焦质晔
30967
+ * @Date: 2022-03-16 19:05:30
30968
+ * @Last Modified by: 焦质晔
30969
+ * @Last Modified time: 2024-11-29 10:34:35
30970
+ */
30971
+ .button-icon {
30972
+ display: inline-block;
30973
+ text-align: center;
30974
+ text-transform: none;
30975
+ text-decoration: none;
30976
+ background: transparent;
30977
+ border: 0;
30978
+ outline: 0;
30979
+ line-height: 0;
30980
+ padding: 5px;
30981
+ color: rgba(0, 0, 0, 0.45);
30982
+ border-radius: 4px;
30983
+ transition: background-color 0.3s ease;
30984
+ cursor: pointer;
30985
+ }
30986
+ .button-icon:not(.no-hover-bg):hover {
30987
+ background-color: #f2f2f2;
30988
+ }
30989
+ .qm-pivot-grid__popper .container {
30990
+ padding: 6px 15px;
30991
+ }
30992
+ .qm-pivot-grid__popper .container > .label {
30993
+ display: flex;
30994
+ justify-content: space-between;
30995
+ align-items: center;
30996
+ padding: 4px 0;
30997
+ }
30998
+ .qm-pivot-grid__popper .container > .list li.item {
30999
+ display: flex;
31000
+ align-items: center;
31001
+ margin: 6px 0;
31002
+ }
31003
+ .qm-pivot-grid__popper .container > .list li.item .icon {
31004
+ padding: 6px 2px;
31005
+ color: rgba(0, 0, 0, 0.45);
31006
+ cursor: pointer;
31007
+ }
31008
+ .qm-pivot-grid__popper .container > .list li.item .close {
31009
+ margin-left: 8px;
31010
+ font-size: 16px;
31011
+ padding: 8px;
31012
+ border-radius: 4px;
31013
+ transition: all 0.3s ease;
31014
+ }
31015
+ .qm-pivot-grid__popper .container > .list li.item .close:hover {
31016
+ background-color: #f2f2f2;
31017
+ }
31018
+ .qm-pivot-grid__popper .container > .list li.check-item {
31019
+ display: flex;
31020
+ align-items: center;
31021
+ justify-content: space-between;
31022
+ border-radius: 4px;
31023
+ }
31024
+ .qm-pivot-grid__popper .container > .list li.check-item.active .icon {
31025
+ display: block;
31026
+ }
31027
+ .qm-pivot-grid__popper .container > .list li.check-item .icon {
31028
+ color: #1890ff;
31029
+ display: none;
31030
+ }
31031
+ .qm-pivot-grid__popper .container > .add-record {
31032
+ display: flex;
31033
+ justify-content: space-between;
31034
+ align-items: center;
31035
+ padding: 10px 0 4px;
31036
+ }
31037
+ .qm-pivot-grid__popper .container > .add-record .insert {
31038
+ color: #69c0ff;
31039
+ cursor: pointer;
31040
+ }
31041
+ .qm-pivot-grid__popper .container > .add-record .insert .icon {
31042
+ margin-right: 4px;
31043
+ }
31044
+ .qm-pivot-grid__popper .container > .search .search-switch {
31045
+ display: inline-flex;
31046
+ align-items: center;
31047
+ margin-right: -7px;
31048
+ }
31049
+ .qm-pivot-grid__popper .container > .search .search-switch.disabled .btn {
31050
+ pointer-events: none;
31051
+ }
31052
+ .qm-pivot-grid__popper .container > .search .search-switch .num {
31053
+ margin: 0 4px;
31054
+ color: rgba(0, 0, 0, 0.45);
31055
+ line-height: 1;
31056
+ }
31057
+ /*
31058
+ * @Author: 焦质晔
31059
+ * @Date: 2022-03-16 19:05:30
31060
+ * @Last Modified by: 焦质晔
31061
+ * @Last Modified time: 2024-11-29 13:20:19
31062
+ */
31063
+ .qm-pivot-grid__layout {
31064
+ box-sizing: border-box;
31065
+ margin: 0;
31066
+ padding: 0;
31067
+ color: rgba(0, 0, 0, 0.85);
31068
+ font-variant: tabular-nums;
31069
+ line-height: 1.5715;
31070
+ list-style: none;
31071
+ font-feature-settings: 'tnum';
31072
+ height: 100%;
31073
+ }
31074
+ .qm-pivot-grid__layout .header,
31075
+ .qm-pivot-grid__layout .footer {
31076
+ overflow: hidden;
31077
+ background-color: #fff;
31078
+ border: 1px solid #e8e8e8;
31079
+ border-radius: 6px;
31080
+ }
31081
+ .qm-pivot-grid__layout .header .table,
31082
+ .qm-pivot-grid__layout .footer .table {
31083
+ table-layout: fixed;
31084
+ display: contents;
31085
+ }
31086
+ .qm-pivot-grid__layout .header .table thead th,
31087
+ .qm-pivot-grid__layout .footer .table thead th,
31088
+ .qm-pivot-grid__layout .header .table tfoot td,
31089
+ .qm-pivot-grid__layout .footer .table tfoot td {
31090
+ text-align: left;
31091
+ font-weight: normal;
31092
+ border-right: 1px solid #e8e8e8;
31093
+ position: relative;
31094
+ }
31095
+ .qm-pivot-grid__layout .header .table thead th.selection-column,
31096
+ .qm-pivot-grid__layout .footer .table thead th.selection-column,
31097
+ .qm-pivot-grid__layout .header .table tfoot td.selection-column,
31098
+ .qm-pivot-grid__layout .footer .table tfoot td.selection-column {
31099
+ text-align: center;
31100
+ justify-content: center;
31101
+ border-right-color: transparent;
31102
+ }
31103
+ .qm-pivot-grid__layout .header {
31104
+ position: sticky;
31105
+ top: 0;
31106
+ z-index: 1;
31107
+ }
31108
+ .qm-pivot-grid__layout .header .resize-bar {
31109
+ position: absolute;
31110
+ top: 0;
31111
+ bottom: 0;
31112
+ right: -3px;
31113
+ width: 6px;
31114
+ z-index: 2;
31115
+ cursor: col-resize;
31116
+ }
31117
+ .qm-pivot-grid__layout .body {
31118
+ min-height: -moz-fit-content;
31119
+ min-height: fit-content;
31120
+ }
31121
+ .qm-pivot-grid__layout .body .group-card {
31122
+ margin: 15px 0;
31123
+ border: 1px solid #e8e8e8;
31124
+ border-radius: 6px;
31125
+ background-color: #fff;
31126
+ }
31127
+ .qm-pivot-grid__layout .body .group-card.inner {
31128
+ margin: 0 12px 12px;
31129
+ }
31130
+ .qm-pivot-grid__layout .body .group-card:has(.inner) > .label-row > .label-cell {
31131
+ border-bottom: 0;
31132
+ }
31133
+ .qm-pivot-grid__layout .body .group-card .label-row {
31134
+ display: flex;
31135
+ align-items: center;
31136
+ }
31137
+ .qm-pivot-grid__layout .body .group-card .label-row .label-cell {
31138
+ align-self: stretch;
31139
+ display: inline-flex;
31140
+ align-items: center;
31141
+ border-bottom: 1px solid #e8e8e8;
31142
+ }
31143
+ .qm-pivot-grid__layout .body .group-card .label-row .label-cell.expandable-column {
31144
+ justify-content: center;
31145
+ }
31146
+ .qm-pivot-grid__layout .body .group-card .label-row .label-cell.expandable-column .button-icon > .anticon {
31147
+ transition: transform 0.3s ease;
31148
+ }
31149
+ .qm-pivot-grid__layout .body .group-card .label-row .label-cell.expandable-column .button-icon.expand > .anticon {
31150
+ transform: rotate(90deg);
31151
+ }
31152
+ .qm-pivot-grid__layout .body .group-card .grid-list {
31153
+ margin: 0;
31154
+ border: 0;
31155
+ border-radius: 0;
31156
+ background: transparent;
31157
+ }
31158
+ .qm-pivot-grid__layout .body .grid-list {
31159
+ margin: 15px 0;
31160
+ border: 1px solid #e8e8e8;
31161
+ border-radius: 6px;
31162
+ background-color: #fff;
31163
+ }
31164
+ .qm-pivot-grid__layout .body .grid-list .table-row {
31165
+ display: flex;
31166
+ align-items: center;
31167
+ }
31168
+ .qm-pivot-grid__layout .body .grid-list .table-row:hover {
31169
+ background-color: #f5f5f5;
31170
+ }
31171
+ .qm-pivot-grid__layout .body .grid-list .table-row:hover .table-cell .order {
31172
+ display: none;
31173
+ }
31174
+ .qm-pivot-grid__layout .body .grid-list .table-row:hover .table-cell .checkbox {
31175
+ display: inline-flex;
31176
+ }
31177
+ .qm-pivot-grid__layout .body .grid-list .table-row.row--selection {
31178
+ background-color: #e6f7ff;
31179
+ }
31180
+ .qm-pivot-grid__layout .body .grid-list .table-row.row--selection .table-cell .order {
31181
+ display: none;
31182
+ }
31183
+ .qm-pivot-grid__layout .body .grid-list .table-row.row--selection .table-cell .checkbox {
31184
+ display: inline-flex;
31185
+ }
31186
+ .qm-pivot-grid__layout .body .grid-list .table-row .table-cell {
31187
+ align-self: stretch;
31188
+ display: inline-flex;
31189
+ align-items: center;
31190
+ border-right: 1px solid #e8e8e8;
31191
+ border-bottom: 1px solid #e8e8e8;
31192
+ }
31193
+ .qm-pivot-grid__layout .body .grid-list .table-row .table-cell:last-child {
31194
+ border-right: 0;
31195
+ }
31196
+ .qm-pivot-grid__layout .body .grid-list .table-row .table-cell.selection-column {
31197
+ justify-content: center;
31198
+ border-right-color: transparent;
31199
+ }
31200
+ .qm-pivot-grid__layout .body .grid-list .table-row .table-cell .order {
31201
+ display: inline-block;
31202
+ }
31203
+ .qm-pivot-grid__layout .body .grid-list .table-row .table-cell .checkbox {
31204
+ display: none;
31205
+ }
31206
+ .qm-pivot-grid__layout .body .grid-list .table-row:last-child .table-cell {
31207
+ border-bottom: 0;
31208
+ }
31209
+ .qm-pivot-grid__layout .footer {
31210
+ position: sticky;
31211
+ bottom: 0;
31212
+ z-index: 1;
31213
+ }
31214
+ .qm-pivot-grid__layout .header .table-cell.col--center,
31215
+ .qm-pivot-grid__layout .body .table-cell.col--center,
31216
+ .qm-pivot-grid__layout .footer .table-cell.col--center {
31217
+ text-align: center !important;
31218
+ justify-content: center;
31219
+ }
31220
+ .qm-pivot-grid__layout .header .table-cell.col--right,
31221
+ .qm-pivot-grid__layout .body .table-cell.col--right,
31222
+ .qm-pivot-grid__layout .footer .table-cell.col--right {
31223
+ text-align: right !important;
31224
+ justify-content: flex-end;
31225
+ }
31226
+ .qm-pivot-grid__layout .header .table-cell .cell,
31227
+ .qm-pivot-grid__layout .body .table-cell .cell,
31228
+ .qm-pivot-grid__layout .footer .table-cell .cell {
31229
+ overflow: hidden;
31230
+ text-overflow: ellipsis;
31231
+ white-space: nowrap;
31232
+ padding: 0 8px;
31233
+ }
31234
+ .qm-pivot-grid__layout .header .table-cell:hover .count-select,
31235
+ .qm-pivot-grid__layout .body .table-cell:hover .count-select,
31236
+ .qm-pivot-grid__layout .footer .table-cell:hover .count-select {
31237
+ visibility: visible;
31238
+ }
31239
+ .qm-pivot-grid__layout .header .count-select,
31240
+ .qm-pivot-grid__layout .body .count-select,
31241
+ .qm-pivot-grid__layout .footer .count-select {
31242
+ overflow: hidden;
31243
+ text-overflow: ellipsis;
31244
+ white-space: nowrap;
31245
+ display: inline-flex;
31246
+ align-items: center;
31247
+ justify-content: flex-end;
31248
+ height: 100%;
31249
+ width: 100%;
31250
+ padding: 0 8px;
31251
+ color: rgba(0, 0, 0, 0.45);
31252
+ cursor: pointer;
31253
+ visibility: hidden;
31254
+ }
31255
+ .qm-pivot-grid__layout .header .count-select:hover,
31256
+ .qm-pivot-grid__layout .body .count-select:hover,
31257
+ .qm-pivot-grid__layout .footer .count-select:hover,
31258
+ .qm-pivot-grid__layout .header .count-select.ant-dropdown-open,
31259
+ .qm-pivot-grid__layout .body .count-select.ant-dropdown-open,
31260
+ .qm-pivot-grid__layout .footer .count-select.ant-dropdown-open {
31261
+ visibility: visible;
31262
+ background-color: #f5f5f5;
31263
+ }
31264
+ .qm-pivot-grid__layout .header .count-select.show,
31265
+ .qm-pivot-grid__layout .body .count-select.show,
31266
+ .qm-pivot-grid__layout .footer .count-select.show {
31267
+ visibility: visible;
31268
+ }
31269
+ .qm-pivot-grid__layout .header .count-select .icon,
31270
+ .qm-pivot-grid__layout .body .count-select .icon,
31271
+ .qm-pivot-grid__layout .footer .count-select .icon {
31272
+ margin-left: 4px;
31273
+ }
31274
+ .qm-pivot-grid__layout .resize-line {
31275
+ position: absolute;
31276
+ left: -2px;
31277
+ top: 0;
31278
+ width: 2px;
31279
+ height: 100%;
31280
+ background-color: #1890ff;
31281
+ cursor: col-resize;
31282
+ z-index: 2;
31283
+ }
31284
+ .qm-pivot-grid__layout.small .header .table th,
31285
+ .qm-pivot-grid__layout.small .footer .table td,
31286
+ .qm-pivot-grid__layout.small .body .grid-list > li,
31287
+ .qm-pivot-grid__layout.small .body .group-card > li {
31288
+ height: 26px;
31289
+ }
31290
+ .qm-pivot-grid__layout.middle .header .table th,
31291
+ .qm-pivot-grid__layout.middle .footer .table td,
31292
+ .qm-pivot-grid__layout.middle .body .grid-list > li,
31293
+ .qm-pivot-grid__layout.middle .body .group-card > li {
31294
+ height: 34px;
31295
+ }
31296
+ .qm-pivot-grid__layout.large .header .table th,
31297
+ .qm-pivot-grid__layout.large .footer .table td,
31298
+ .qm-pivot-grid__layout.large .body .grid-list > li,
31299
+ .qm-pivot-grid__layout.large .body .group-card > li {
31300
+ height: 42px;
31301
+ }
@@ -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-05-10 15:53:22
5
+ * @Last Modified time: 2024-11-28 20:01:15
6
6
  */
7
7
  @import '../antd/index.less';
8
8
  @import './var.less';
@@ -39,3 +39,4 @@
39
39
  @import '../print/style/index.less';
40
40
  @import '../lazy-load/style/index.less';
41
41
  @import '../signature/style/index.less';
42
+ @import '../pivot-grid/style/index.less';