@opendesign-plus-test/components 0.0.1-rc.131 → 0.0.1-rc.132

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 (31) hide show
  1. package/dist/chunk-OElCookieNotice.cjs.js +1 -1
  2. package/dist/chunk-OElCookieNotice.es.js +5 -1
  3. package/dist/components/meeting/OMeetingCalendar.vue.d.ts +1 -0
  4. package/dist/components/meeting/OMeetingSigCalendar.vue.d.ts +8 -1
  5. package/dist/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -0
  6. package/dist/components/meeting/index.d.ts +25 -3
  7. package/dist/components/meeting/types.d.ts +1 -0
  8. package/dist/components/sig/types.d.ts +1 -0
  9. package/dist/components.cjs.js +39 -39
  10. package/dist/components.css +1 -1
  11. package/dist/components.es.js +5934 -5916
  12. package/dist/treeshaking/_virtual/icon-forum.mjs +21 -0
  13. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.d.ts +1 -0
  14. package/dist/treeshaking/components/meeting/OMeetingCalendar.vue.mjs +5 -3
  15. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.d.ts +8 -1
  16. package/dist/treeshaking/components/meeting/OMeetingSigCalendar.vue.mjs +8 -3
  17. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.d.ts +1 -0
  18. package/dist/treeshaking/components/meeting/components/OMeetingCalendarList.vue.mjs +4 -3
  19. package/dist/treeshaking/components/meeting/index.d.ts +25 -3
  20. package/dist/treeshaking/components/meeting/types.d.ts +1 -0
  21. package/dist/treeshaking/components/sig/OSigDetail.css +3 -0
  22. package/dist/treeshaking/components/sig/OSigDetail.vue.mjs +2 -1
  23. package/dist/treeshaking/components/sig/components/OSigMember.css +3 -0
  24. package/dist/treeshaking/components/sig/components/OSigMember.vue.mjs +2 -2
  25. package/dist/treeshaking/components/sig/components/OSigRepo.vue.mjs +2 -2
  26. package/dist/treeshaking/components/sig/components/OSigUserContribute.css +47 -315
  27. package/dist/treeshaking/components/sig/components/OSigUserContribute.vue.mjs +69 -72
  28. package/dist/treeshaking/components/sig/types.d.ts +1 -0
  29. package/dist/treeshaking/i18n/en.mjs +3 -1
  30. package/dist/treeshaking/i18n/zh.mjs +2 -0
  31. package/package.json +1 -1
@@ -6,297 +6,6 @@
6
6
  transform: rotate(-180deg);
7
7
  }
8
8
  }
9
- :root {
10
- --el-color-primary: var(--o-color-primary1);
11
- --el-border-color: var(--o-color-control1);
12
- --el-input-placeholder-color: var(--el-text-color-placeholder);
13
- --el-input-hover-border-color: var(--el-border-color-hover);
14
- --el-input-clear-hover-color: var(--el-text-color-secondary);
15
- --el-component-size-large: 36px;
16
- }
17
- @media (max-width: 840px) {
18
- :root {
19
- --el-component-size-large: var(--o-control_size-l);
20
- }
21
- }
22
- :root .el-date-editor.el-date-editor--daterange {
23
- padding: 0 13px 0 15px;
24
- }
25
- :root .el-date-editor.el-date-editor--timerange {
26
- padding: 0 16px;
27
- }
28
- :root .el-date-editor input {
29
- text-align: left;
30
- font-size: 16px;
31
- line-height: 24px;
32
- }
33
- @media (min-width: 1201px) and (max-width: 1680px) {
34
- :root .el-date-editor input {
35
- font-size: 14px;
36
- line-height: 22px;
37
- }
38
- }
39
- @media (min-width: 841px) and (max-width: 1200px) {
40
- :root .el-date-editor input {
41
- font-size: 14px;
42
- line-height: 22px;
43
- }
44
- }
45
- @media (min-width: 601px) and (max-width: 840px) {
46
- :root .el-date-editor input {
47
- font-size: 14px;
48
- line-height: 22px;
49
- }
50
- }
51
- @media (max-width: 600px) {
52
- :root .el-date-editor input {
53
- font-size: 12px;
54
- line-height: 18px;
55
- }
56
- }
57
- @media (max-width: 600px) {
58
- :root .el-date-editor input {
59
- font-size: 18px;
60
- line-height: 26px;
61
- }
62
- }
63
- @media (max-width: 600px) and (min-width: 1201px) and (max-width: 1680px) {
64
- :root .el-date-editor input {
65
- font-size: 16px;
66
- line-height: 24px;
67
- }
68
- }
69
- @media (max-width: 600px) and (min-width: 841px) and (max-width: 1200px) {
70
- :root .el-date-editor input {
71
- font-size: 14px;
72
- line-height: 22px;
73
- }
74
- }
75
- @media (max-width: 600px) and (min-width: 601px) and (max-width: 840px) {
76
- :root .el-date-editor input {
77
- font-size: 14px;
78
- line-height: 22px;
79
- }
80
- }
81
- @media (max-width: 600px) and (max-width: 600px) {
82
- :root .el-date-editor input {
83
- font-size: 14px;
84
- line-height: 22px;
85
- }
86
- }
87
- :root .el-date-editor .el-select__wrapper {
88
- gap: 0;
89
- }
90
- :root .el-date-editor .el-input__wrapper .el-input__prefix {
91
- order: 1;
92
- font-size: 16px;
93
- }
94
- :root .el-date-editor .el-input__icon {
95
- height: 100%;
96
- order: 1;
97
- font-size: 24px;
98
- margin-right: 2px;
99
- color: var(--o-color-info1);
100
- background-color: var(--o-color-info2);
101
- mask: url("data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiAgdmlld0JveD0iMCAwIDI0IDI0Ij4KICAgIDxwYXRoIGQ9Ik02LjQ2MyA0Ljk3NmEuNy43IDAgMCAxIC4wOTUgMS4zOTRsLS4wOTUuMDA2SDQuNDcxYS4xNC4xNCAwIDAgMC0uMTMuMDkzbC0uMDA3LjA0M3YxLjg1NmgxNS4zMjlsLjAwMS0xLjg1NmEuMTQuMTQgMCAwIDAtLjA5My0uMTNsLS4wNDMtLjAwN2gtMi4wNTVhLjcuNyAwIDAgMS0uMDk1LTEuMzk0bC4wOTUtLjAwNmgyLjA1NWMuODAxIDAgMS40Ni42MTQgMS41MyAxLjM5N2wuMDA2LjE0djEyLjM1OWMwIC44MDEtLjYxNCAxLjQ2LTEuMzk3IDEuNTNsLS4xNC4wMDZINC40N2MtLjgwMSAwLTEuNDYtLjYxNC0xLjUzLTEuMzk3bC0uMDA2LS4xNFY2LjUxMWMwLS44MDEuNjE0LTEuNDYgMS4zOTctMS41M2wuMTQtLjAwNnptMTMuMjAxIDQuNzkySDQuMzM1djkuMTAzYzAgLjA2LjAzOS4xMTEuMDkzLjEzbC4wNDMuMDA3aDE1LjA1N2MuMDYgMCAuMTExLS4wMzkuMTMtLjA5M2wuMDA3LS4wNDMtLjAwMS05LjEwM3ptLTMuNDgyIDUuNjYzYS43LjcgMCAwIDEgLjA5NSAxLjM5NGwtLjA5NS4wMDZINy44MTdhLjcuNyAwIDAgMS0uMDk1LTEuMzk0bC4wOTUtLjAwNnptMC0zLjM0NmEuNy43IDAgMCAxIC4wOTUgMS4zOTRsLS4wOTUuMDA2SDcuODE3YS43LjcgMCAwIDEtLjA5NS0xLjM5NGwuMDk1LS4wMDZ6bS0uNjk2LTguNDY3Yy4zNTQgMCAuNjQ3LjI2My42OTQuNjA1bC4wMDYuMDk1djIuODA0YS43LjcgMCAwIDEtMS4zOTQuMDk1bC0uMDA2LS4wOTVWNC4zMThhLjcuNyAwIDAgMSAuNy0uN20tNi45MzctLjAyNmMuMzU0IDAgLjY0Ny4yNjMuNjk0LjYwNWwuMDA2LjA5NXYyLjgwNGEuNy43IDAgMCAxLTEuMzk0LjA5NWwtLjAwNi0uMDk1VjQuMjkyYS43LjcgMCAwIDEgLjctLjdtNC45NDYgMS4zODRhLjcuNyAwIDAgMSAuMDk1IDEuMzk0bC0uMDk1LjAwNkgxMC41M2EuNy43IDAgMCAxLS4wOTUtMS4zOTRsLjA5NS0uMDA2eiI+PC9wYXRoPgo8L3N2Zz4=") no-repeat center;
102
- background-size: 24px;
103
- background-repeat: no-repeat;
104
- background-position: center center;
105
- }
106
- :root .el-date-editor .el-input__icon svg {
107
- display: none;
108
- }
109
- :root .el-popper .el-popper__arrow {
110
- display: none;
111
- }
112
- :root .el-popper .el-picker-panel {
113
- --cell-row-gap: 6px;
114
- --cell-radius: var(--o-radius-xs);
115
- color: var(--o-color-info1);
116
- }
117
- :root .el-popper .el-picker-panel .el-date-picker__header {
118
- padding: 12px 24px;
119
- height: 48px;
120
- border-bottom: 1px solid var(--o-color-control4);
121
- }
122
- :root .el-popper .el-picker-panel .el-date-picker__header .el-date-picker__header-label {
123
- font-weight: 500;
124
- }
125
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table th {
126
- border-bottom: none;
127
- height: 24px;
128
- color: inherit;
129
- padding: 0 0 var(--cell-row-gap);
130
- }
131
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td {
132
- padding: var(--cell-row-gap) 0px;
133
- }
134
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td .el-date-table-cell {
135
- padding: 0;
136
- height: 24px;
137
- line-height: 22px;
138
- border: 1px solid transparent;
139
- border-radius: var(--cell-radius);
140
- }
141
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td:hover:not(.disabled) .el-date-table-cell {
142
- border-color: var(--o-color-primary1);
143
- }
144
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.disabled .el-date-table-cell, :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.prev-month .el-date-table-cell, :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.next-month .el-date-table-cell {
145
- background: none;
146
- color: var(--o-color-info4);
147
- }
148
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.today .el-date-table-cell {
149
- background: var(--o-color-control2-light);
150
- }
151
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.today .el-date-table-cell .el-date-table-cell__text {
152
- font-weight: normal;
153
- color: var(--o-color-info1);
154
- }
155
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.current .el-date-table-cell, :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.start-date .el-date-table-cell, :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.end-date .el-date-table-cell {
156
- background: var(--o-color-primary1);
157
- }
158
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.current .el-date-table-cell .el-date-table-cell__text, :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.start-date .el-date-table-cell .el-date-table-cell__text, :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.end-date .el-date-table-cell .el-date-table-cell__text {
159
- background: none;
160
- color: #fff;
161
- }
162
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.in-range:not(:hover) .el-date-table-cell {
163
- border-radius: 0;
164
- }
165
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.in-range:not(:hover).start-date .el-date-table-cell {
166
- border-radius: var(--cell-radius);
167
- }
168
- :root .el-popper .el-picker-panel .el-picker-panel__content .el-date-table td.in-range:not(:hover).end-date .el-date-table-cell {
169
- border-radius: var(--cell-radius);
170
- }
171
- :root .el-input {
172
- --el-border-color: var(--o-color-control1);
173
- --el-input-border-color: var(--o-color-control1);
174
- --el-input-hover-border-color: var(--o-color-primary2);
175
- --el-input-focus-border-color: var(--o-color-primary3);
176
- }
177
- :root .el-table {
178
- --el-table-border-color: var(--o-color-control4) ;
179
- }
180
- :root .el-input__wrapper {
181
- background: var(--o-color-fill2);
182
- box-shadow: none;
183
- border: 1px solid var(--el-input-border-color);
184
- }
185
- :root .el-date-editor.is-focus .el-input__wrapper {
186
- box-shadow: none;
187
- --el-input-border-color: var(--o-color-primary3);
188
- }
189
- :root .el-date-editor:hover .el-input__wrapper {
190
- box-shadow: none;
191
- --el-input-border-color: var(--o-color-primary2);
192
- }
193
- :root .el-date-editor.el-input__wrapper:hover {
194
- box-shadow: none;
195
- --el-input-border-color: var(--o-color-primary2);
196
- }
197
- :root .el-date-editor.el-input__wrapper.is-active {
198
- --el-input-border-color: var(--o-color-primary3);
199
- }
200
- :root .el-select__wrapper {
201
- background: var(--o-color-fill2);
202
- }
203
- :root .el-calendar .el-calendar-table {
204
- width: 100%;
205
- }
206
- :root .el-calendar .el-calendar-table th {
207
- color: var(--o-color-info3);
208
- font-weight: 400;
209
- padding: 4px 0 16px 0;
210
- text-align: center;
211
- }
212
- :root .el-calendar .el-calendar-table td.prev .date-calender, :root .el-calendar .el-calendar-table td.next .date-calender {
213
- color: var(--o-color-info4);
214
- }
215
- :root .el-select .el-select__placeholder {
216
- font-size: 16px;
217
- line-height: 24px;
218
- }
219
- @media (min-width: 1201px) and (max-width: 1680px) {
220
- :root .el-select .el-select__placeholder {
221
- font-size: 14px;
222
- line-height: 22px;
223
- }
224
- }
225
- @media (min-width: 841px) and (max-width: 1200px) {
226
- :root .el-select .el-select__placeholder {
227
- font-size: 14px;
228
- line-height: 22px;
229
- }
230
- }
231
- @media (min-width: 601px) and (max-width: 840px) {
232
- :root .el-select .el-select__placeholder {
233
- font-size: 14px;
234
- line-height: 22px;
235
- }
236
- }
237
- @media (max-width: 600px) {
238
- :root .el-select .el-select__placeholder {
239
- font-size: 12px;
240
- line-height: 18px;
241
- }
242
- }
243
- @media (max-width: 600px) {
244
- :root .el-select .el-select__placeholder {
245
- font-size: 18px;
246
- line-height: 26px;
247
- }
248
- }
249
- @media (max-width: 600px) and (min-width: 1201px) and (max-width: 1680px) {
250
- :root .el-select .el-select__placeholder {
251
- font-size: 16px;
252
- line-height: 24px;
253
- }
254
- }
255
- @media (max-width: 600px) and (min-width: 841px) and (max-width: 1200px) {
256
- :root .el-select .el-select__placeholder {
257
- font-size: 14px;
258
- line-height: 22px;
259
- }
260
- }
261
- @media (max-width: 600px) and (min-width: 601px) and (max-width: 840px) {
262
- :root .el-select .el-select__placeholder {
263
- font-size: 14px;
264
- line-height: 22px;
265
- }
266
- }
267
- @media (max-width: 600px) and (max-width: 600px) {
268
- :root .el-select .el-select__placeholder {
269
- font-size: 14px;
270
- line-height: 22px;
271
- }
272
- }
273
- :root .el-input-number {
274
- --el-component-size-large: 34px;
275
- }
276
- @media (max-width: 840px) {
277
- :root .el-input-number {
278
- --el-component-size-large: calc(var(--o-control_size-l) - 2px);
279
- }
280
- }
281
- :root .el-input-number .el-input__wrapper:hover {
282
- --el-input-border-color: var(--o-color-primary2);
283
- }
284
- :root .el-input-number .el-input__wrapper.is-focus {
285
- --el-input-border-color: var(--o-color-primary3);
286
- }
287
- :root .el-input-number .el-input-number__decrease:hover ~ .el-input:not(.is-disabled) .el-input__wrapper,
288
- :root .el-input-number .el-input-number__increase:hover ~ .el-input:not(.is-disabled) .el-input__wrapper {
289
- box-shadow: none;
290
- }
291
- :root .el-input-number .el-input__wrapper {
292
- box-shadow: none;
293
- }
294
- :root .el-input-number .el-input__wrapper.is-focus {
295
- box-shadow: none;
296
- }
297
- :root .el-input-number.el-input-number--large {
298
- line-height: var(--el-component-size-large);
299
- }
300
9
  .o-sig-detail-contribute .o-sig-detail-contribute-title {
301
10
  font-weight: 600;
302
11
  font-size: 20px;
@@ -376,15 +85,31 @@
376
85
  }
377
86
  @media (max-width: 1200px) {
378
87
  .o-sig-detail-contribute .o-form {
379
- --form-item-gap: var(--o-gap-3);
88
+ --form-item-gap: var(--o-gap-2);
380
89
  }
381
90
  }
382
91
  .o-sig-detail-contribute .o-form .o-form-item-label {
383
92
  --form-label-width: 4em;
93
+ margin-bottom: 0;
94
+ margin-top: 0;
95
+ line-height: 32px;
96
+ }
97
+ @media (max-width: 600px) {
98
+ .o-sig-detail-contribute .o-form .o-form-item-label {
99
+ line-height: 1.5;
100
+ }
101
+ }
102
+ .o-sig-detail-contribute .o-form .contribute-type-item {
103
+ margin-bottom: calc(var(--form-item-gap) - var(--o-gap-2));
104
+ }
105
+ @media (max-width: 600px) {
106
+ .o-sig-detail-contribute .o-form .comment-type-item .o-form-item-label {
107
+ display: none;
108
+ }
384
109
  }
385
110
  @media (max-width: 600px) {
386
111
  .o-sig-detail-contribute .o-form .o-form-item-main {
387
- margin-top: 0;
112
+ margin-top: var(--o-gap-2);
388
113
  }
389
114
  }
390
115
  .o-sig-detail-contribute .o-form .o-toggle {
@@ -400,7 +125,7 @@
400
125
  margin-right: var(--o-gap-2);
401
126
  margin-bottom: var(--o-gap-2);
402
127
  }
403
- .o-sig-detail-contribute .o-form .el-date-editor {
128
+ .o-sig-detail-contribute .o-form .o-date-range-picker {
404
129
  width: 100%;
405
130
  max-width: 280px;
406
131
  }
@@ -416,19 +141,20 @@
416
141
  }
417
142
  @media (max-width: 600px) {
418
143
  .o-sig-detail-contribute .o-sig-detail-contribute-input-filter {
419
- flex-direction: row;
420
- flex-wrap: wrap;
144
+ gap: var(--o-gap-2);
145
+ flex-direction: column;
146
+ align-items: flex-start;
421
147
  }
422
148
  }
423
149
  .o-sig-detail-contribute .o-sig-detail-contribute-input-filter .o-input {
424
- flex-grow: 1;
425
- flex-shrink: 1;
426
- flex-basis: 320px;
150
+ flex: 1;
151
+ max-width: 320px;
152
+ width: 100%;
427
153
  --_box-height: 32px;
428
154
  }
429
155
  @media (max-width: 600px) {
430
156
  .o-sig-detail-contribute .o-sig-detail-contribute-input-filter .o-input {
431
- flex: 1 0 100%;
157
+ max-width: 100%;
432
158
  }
433
159
  }
434
160
  .o-sig-detail-contribute .o-sig-detail-contribute-input-filter .o-input .o_input-prefix .o-icon {
@@ -452,10 +178,11 @@
452
178
  align-items: center;
453
179
  }
454
180
  .o-sig-detail-contribute .o-sig-detail-contribute-input-filter .o-sig-detail-contribute-user-type .o-sig-detail-contribute-user-type-label {
455
- color: rgba(0, 0, 0, 0.6);
181
+ color: var(--o-color-info3);
456
182
  font-size: 12px;
457
183
  line-height: 18px;
458
184
  margin-bottom: 0;
185
+ margin-top: 0;
459
186
  }
460
187
  .o-sig-detail-contribute .o-sig-detail-contribute-dot {
461
188
  display: inline-block;
@@ -464,12 +191,25 @@
464
191
  border-radius: 2px;
465
192
  margin-right: var(--o-gap-2);
466
193
  }
467
- .o-sig-detail-contribute .el-table {
468
- margin-top: var(--o-gap-5);
194
+ .o-sig-detail-contribute .o-table {
195
+ margin-top: var(--o-gap-3);
196
+ }
197
+ .o-sig-detail-contribute .o-table table {
198
+ display: table;
199
+ width: 100%;
200
+ }
201
+ .o-sig-detail-contribute .o-table thead::after {
202
+ display: none;
469
203
  }
470
204
  .o-sig-detail-contribute .user-id-link {
471
205
  display: flex;
472
206
  flex-wrap: nowrap;
207
+ width: 180px;
208
+ }
209
+ @media (max-width: 840px) {
210
+ .o-sig-detail-contribute .user-id-link {
211
+ width: 120px;
212
+ }
473
213
  }
474
214
  .o-sig-detail-contribute .user-id-link .o-sig-detail-contribute-dot {
475
215
  border-radius: 50%;
@@ -478,14 +218,8 @@
478
218
  }
479
219
  .o-sig-detail-contribute .user-id-link .o-link-main {
480
220
  margin-top: 0;
481
- }
482
- .o-sig-detail-contribute .user-id-link .o-link-label {
483
- overflow: hidden;
484
- text-overflow: ellipsis;
485
- word-break: break-all;
486
- display: -webkit-box;
487
- -webkit-box-orient: vertical;
488
- -webkit-line-clamp: 1;
221
+ flex: 1;
222
+ min-width: 0;
489
223
  }
490
224
  .o-sig-detail-contribute .o-sig-detail-contribute-cell {
491
225
  display: flex;
@@ -496,12 +230,10 @@
496
230
  .o-sig-detail-contribute .o-sig-detail-contribute-cell .o-sig-detail-contribute-data {
497
231
  flex-shrink: 0;
498
232
  }
499
- .o-sig-detail-contribute .o-sig-detail-contribute-cell .el-progress {
233
+ .o-sig-detail-contribute .o-sig-detail-contribute-cell .o-progress {
500
234
  flex-grow: 1;
501
235
  margin-left: var(--o-gap-2);
502
- }
503
- .o-sig-detail-contribute .o-sig-detail-contribute-cell .el-progress .el-progress-bar__outer {
504
- height: var(--o-gap-2) !important;
236
+ --progress-track-bg-color: transparent;
505
237
  }
506
238
  .o-sig-detail-contribute .o-pagination {
507
239
  margin-top: var(--grid-column-gutter);
@@ -1,13 +1,10 @@
1
1
  import { defineComponent, computed, ref, onMounted, openBlock, createElementBlock, createElementVNode, toDisplayString, unref, createVNode, withCtx, normalizeClass, Fragment, renderList, createTextVNode, createBlock, createCommentVNode, normalizeStyle } from "vue";
2
- import { ElDatePicker, ElTable, ElTableColumn, ElProgress } from "element-plus";
3
- import "element-plus/es/components/date-picker/style/css";
4
- import "element-plus/es/components/table/style/css";
5
- import "element-plus/es/components/table-column/style/css";
6
- import "element-plus/es/components/progress/style/css";
7
- import { OCard, OForm, OFormItem, ORadioGroup, ORadio, OToggle, OInput, OIcon, OIconSearch, OCheckboxGroup, OCheckbox, OLink, OPagination } from "@opensig/opendesign";
2
+ import { OCard, OForm, OFormItem, ORadioGroup, ORadio, OToggle, ODateRangePicker, OInput, OIcon, OIconSearch, OCheckboxGroup, OCheckbox, OTable, OProgress, OLink, OPagination } from "@opensig/opendesign";
8
3
  import { refDebounced } from "@vueuse/core";
9
4
  import { useI18n } from "../../../i18n/index.mjs";
10
5
  import { useScreen } from "@opendesign-plus/composables";
6
+ import _sfc_main$1 from "../../common/TooltipText.vue.mjs";
7
+ import '../../common/TooltipText.css';
11
8
  const _hoisted_1 = { class: "o-sig-detail-contribute" };
12
9
  const _hoisted_2 = { class: "o-sig-floor-title" };
13
10
  const _hoisted_3 = { class: "o-sig-detail-contribute-title" };
@@ -52,14 +49,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
52
49
  { label: t("sig.commentCommand"), value: "command" }
53
50
  ];
54
51
  const typeLabel = computed(() => findOpt(contributeType.value, contributionTypeOptions, "alias"));
55
- const dateRange = ref([new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1), /* @__PURE__ */ new Date()]);
52
+ const startDate = ref((/* @__PURE__ */ new Date("2024-11-01")).getTime());
53
+ const endDate = ref(Date.now());
56
54
  const contributionData = ref([]);
57
55
  const changeContributeType = () => {
58
56
  commentType.value = "";
59
57
  getData();
60
58
  };
61
59
  const getData = async () => {
62
- var _a;
63
60
  if (!props.getDataRequest) return;
64
61
  page.value = 1;
65
62
  const params = {
@@ -68,10 +65,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
68
65
  community: "TODO",
69
66
  comment_type: commentType.value
70
67
  };
71
- if (((_a = dateRange.value) == null ? void 0 : _a.length) === 2) {
68
+ if (startDate.value && endDate.value) {
72
69
  Object.assign(params, {
73
- start: dateRange.value[0].getTime(),
74
- end: dateRange.value[1].getTime()
70
+ start: Number(startDate.value),
71
+ end: Number(endDate.value)
75
72
  });
76
73
  }
77
74
  contributionData.value = await props.getDataRequest(params) || [];
@@ -80,6 +77,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
77
  if (contributionData.value.length === 0) return 0;
81
78
  return Math.max(...contributionData.value.map((d) => d.contribute));
82
79
  });
80
+ const columns = computed(() => {
81
+ return [
82
+ { key: "number", label: t("sig.NUMBER"), style: { width: "60px" } },
83
+ { key: "user_login", label: "GitCode ID", style: { width: isPhone.value ? "100px" : "180px" } },
84
+ { key: "contribute", label: typeLabel.value }
85
+ ];
86
+ });
83
87
  const page = ref(1);
84
88
  const pageSize = ref(10);
85
89
  const pageSizes = [10, 15, 30, 50];
@@ -121,7 +125,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
121
125
  default: withCtx(() => [
122
126
  createVNode(unref(OFormItem), {
123
127
  label: unref(t)("sig.METRIC"),
124
- field: "contributeType"
128
+ field: "contributeType",
129
+ class: "contribute-type-item"
125
130
  }, {
126
131
  default: withCtx(() => [
127
132
  createVNode(unref(ORadioGroup), {
@@ -155,7 +160,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
155
160
  contributeType.value === "comment" ? (openBlock(), createBlock(unref(OFormItem), {
156
161
  key: 0,
157
162
  label: "",
158
- field: "commentType"
163
+ field: "commentType",
164
+ class: "comment-type-item"
159
165
  }, {
160
166
  default: withCtx(() => [
161
167
  createVNode(unref(ORadioGroup), {
@@ -186,15 +192,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
186
192
  field: "dateRange"
187
193
  }, {
188
194
  default: withCtx(() => [
189
- createVNode(unref(ElDatePicker), {
190
- modelValue: dateRange.value,
191
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => dateRange.value = $event),
192
- type: "daterange",
193
- "range-separator": "-",
194
- "start-placeholder": unref(t)("sig.startDate"),
195
- "end-placeholder": unref(t)("sig.endDate"),
195
+ createVNode(unref(ODateRangePicker), {
196
+ start: startDate.value,
197
+ "onUpdate:start": _cache[2] || (_cache[2] = ($event) => startDate.value = $event),
198
+ end: endDate.value,
199
+ "onUpdate:end": _cache[3] || (_cache[3] = ($event) => endDate.value = $event),
200
+ clearable: "",
201
+ "placeholder-start": unref(t)("sig.startDate"),
202
+ "placeholder-end": unref(t)("sig.endDate"),
196
203
  onChange: getData
197
- }, null, 8, ["modelValue", "start-placeholder", "end-placeholder"])
204
+ }, null, 8, ["start", "end", "placeholder-start", "placeholder-end"])
198
205
  ]),
199
206
  _: 1
200
207
  }, 8, ["label"])
@@ -209,7 +216,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
209
216
  createElementVNode("div", _hoisted_5, [
210
217
  createVNode(unref(OInput), {
211
218
  modelValue: searchGitcodeId.value,
212
- "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => searchGitcodeId.value = $event),
219
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => searchGitcodeId.value = $event),
213
220
  placeholder: unref(t)("sig.contributePlaceholder"),
214
221
  onInput: changeInput
215
222
  }, {
@@ -225,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
225
232
  }, 8, ["modelValue", "placeholder"]),
226
233
  createVNode(unref(OCheckboxGroup), {
227
234
  modelValue: userType.value,
228
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => userType.value = $event)
235
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => userType.value = $event)
229
236
  }, {
230
237
  default: withCtx(() => [
231
238
  (openBlock(), createElementBlock(Fragment, null, renderList(userTypeOptions, (item) => {
@@ -249,63 +256,53 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
249
256
  _: 1
250
257
  }, 8, ["modelValue"])
251
258
  ]),
252
- createVNode(unref(ElTable), {
259
+ createVNode(unref(OTable), {
253
260
  data: displayContributionData.value,
254
- "header-cell-style": { backgroundColor: "rgb(232, 232, 235)", color: "#000", fontWeight: "500" }
261
+ columns: columns.value,
262
+ border: "row-frame",
263
+ small: ""
255
264
  }, {
256
- default: withCtx(() => [
257
- createVNode(unref(ElTableColumn), {
258
- label: unref(t)("sig.NUMBER"),
259
- width: "60"
265
+ td_number: withCtx(({ rowIndex }) => [
266
+ createElementVNode("span", null, toDisplayString(rowIndex + 1), 1)
267
+ ]),
268
+ td_user_login: withCtx(({ row }) => [
269
+ createVNode(unref(OLink), {
270
+ class: "user-id-link",
271
+ color: "primary",
272
+ target: "_blank",
273
+ rel: "noopener noreferrer",
274
+ href: row.userLink
260
275
  }, {
261
- default: withCtx(({ $index }) => [
262
- createElementVNode("span", null, toDisplayString($index + 1), 1)
276
+ icon: withCtx(() => [
277
+ createElementVNode("div", {
278
+ class: "o-sig-detail-contribute-dot",
279
+ style: normalizeStyle({ backgroundColor: getColor(row.usertype) })
280
+ }, null, 4)
263
281
  ]),
264
- _: 1
265
- }, 8, ["label"]),
266
- createVNode(unref(ElTableColumn), {
267
- label: "GitCode ID",
268
- width: "180"
269
- }, {
270
- default: withCtx(({ row }) => [
271
- createVNode(unref(OLink), {
272
- class: "user-id-link",
273
- color: "primary",
274
- target: "_blank",
275
- rel: "noopener noreferrer",
276
- href: row.userLink
277
- }, {
278
- icon: withCtx(() => [
279
- createElementVNode("div", {
280
- class: "o-sig-detail-contribute-dot",
281
- style: normalizeStyle({ backgroundColor: getColor(row.usertype) })
282
- }, null, 4)
283
- ]),
282
+ default: withCtx(() => [
283
+ createVNode(_sfc_main$1, null, {
284
284
  default: withCtx(() => [
285
- createTextVNode(" " + toDisplayString(row.user_login), 1)
285
+ createTextVNode(toDisplayString(row.user_login), 1)
286
286
  ]),
287
287
  _: 2
288
- }, 1032, ["href"])
289
- ]),
290
- _: 1
291
- }),
292
- createVNode(unref(ElTableColumn), { label: typeLabel.value }, {
293
- default: withCtx(({ row }) => [
294
- createElementVNode("div", _hoisted_8, [
295
- createElementVNode("span", _hoisted_9, toDisplayString(row.contribute), 1),
296
- row.contribute > 0 ? (openBlock(), createBlock(unref(ElProgress), {
297
- key: 0,
298
- "show-text": false,
299
- color: getColor(row.usertype),
300
- percentage: Math.floor(row.contribute * 100 / maxContributionNum.value)
301
- }, null, 8, ["color", "percentage"])) : createCommentVNode("", true)
302
- ])
288
+ }, 1024)
303
289
  ]),
304
- _: 1
305
- }, 8, ["label"])
290
+ _: 2
291
+ }, 1032, ["href"])
292
+ ]),
293
+ td_contribute: withCtx(({ row }) => [
294
+ createElementVNode("div", _hoisted_8, [
295
+ createElementVNode("span", _hoisted_9, toDisplayString(row.contribute), 1),
296
+ row.contribute > 0 ? (openBlock(), createBlock(unref(OProgress), {
297
+ key: 0,
298
+ "show-label": false,
299
+ percentage: Math.floor(row.contribute * 100 / maxContributionNum.value),
300
+ style: normalizeStyle({ "--progress-bar-bg-color": getColor(row.usertype) })
301
+ }, null, 8, ["percentage", "style"])) : createCommentVNode("", true)
302
+ ])
306
303
  ]),
307
304
  _: 1
308
- }, 8, ["data"])
305
+ }, 8, ["data", "columns"])
309
306
  ]),
310
307
  _: 1
311
308
  }),
@@ -314,9 +311,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
314
311
  total: filterData.value.length,
315
312
  "page-sizes": pageSizes,
316
313
  page: page.value,
317
- "onUpdate:page": _cache[5] || (_cache[5] = ($event) => page.value = $event),
314
+ "onUpdate:page": _cache[6] || (_cache[6] = ($event) => page.value = $event),
318
315
  "page-size": pageSize.value,
319
- "onUpdate:pageSize": _cache[6] || (_cache[6] = ($event) => pageSize.value = $event),
316
+ "onUpdate:pageSize": _cache[7] || (_cache[7] = ($event) => pageSize.value = $event),
320
317
  "show-total": "",
321
318
  simple: unref(lePadV)
322
319
  }, null, 8, ["total", "page", "page-size", "simple"])) : createCommentVNode("", true)
@@ -166,4 +166,5 @@ export interface SigContributeItemT {
166
166
  usertype: string;
167
167
  contribute: number;
168
168
  userLink: string;
169
+ [key: string]: unknown;
169
170
  }