proje-react-panel 1.4.1 → 1.6.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 (39) hide show
  1. package/.vscode/launch.json +9 -0
  2. package/dist/components/list/CellField.d.ts +2 -2
  3. package/dist/components/list/cells/BooleanCell.d.ts +5 -2
  4. package/dist/components/list/cells/DateCell.d.ts +5 -2
  5. package/dist/components/list/cells/DefaultCell.d.ts +3 -2
  6. package/dist/components/list/cells/DownloadCell.d.ts +3 -2
  7. package/dist/components/list/cells/ImageCell.d.ts +3 -2
  8. package/dist/components/list/cells/LinkCell.d.ts +8 -0
  9. package/dist/components/list/cells/UUIDCell.d.ts +5 -2
  10. package/dist/decorators/details/Details.d.ts +1 -1
  11. package/dist/decorators/list/Cell.d.ts +5 -1
  12. package/dist/decorators/list/List.d.ts +8 -4
  13. package/dist/decorators/list/cells/LinkCell.d.ts +13 -0
  14. package/dist/index.cjs.js +1 -1
  15. package/dist/index.d.ts +2 -1
  16. package/dist/index.esm.js +1 -1
  17. package/package.json +1 -1
  18. package/src/assets/icons/svg/down-arrow-backup-2.svg +3 -0
  19. package/src/components/DetailsPage.tsx +5 -1
  20. package/src/components/list/CellField.tsx +25 -10
  21. package/src/components/list/Datagrid.tsx +83 -53
  22. package/src/components/list/ListPage.tsx +3 -0
  23. package/src/components/list/cells/BooleanCell.tsx +7 -2
  24. package/src/components/list/cells/DateCell.tsx +6 -2
  25. package/src/components/list/cells/DefaultCell.tsx +4 -4
  26. package/src/components/list/cells/DownloadCell.tsx +4 -2
  27. package/src/components/list/cells/ImageCell.tsx +5 -2
  28. package/src/components/list/cells/LinkCell.tsx +31 -0
  29. package/src/components/list/cells/UUIDCell.tsx +6 -2
  30. package/src/decorators/details/Details.ts +1 -1
  31. package/src/decorators/list/Cell.ts +5 -1
  32. package/src/decorators/list/List.ts +4 -4
  33. package/src/decorators/list/cells/LinkCell.ts +22 -0
  34. package/src/index.ts +2 -1
  35. package/src/services/DataService.ts +14 -10
  36. package/src/store/store.ts +1 -1
  37. package/src/styles/components/button.scss +14 -0
  38. package/src/styles/index.scss +1 -1
  39. package/src/styles/list.scss +64 -1
@@ -64,10 +64,16 @@ $datagrid-height: calc(100vh - #{$header-height} - #{$footer-height});
64
64
  align-items: center;
65
65
  height: $footer-height;
66
66
  font-size: 24px;
67
+ padding-right: 12px;
67
68
  font-weight: bold;
68
69
  text-align: center;
69
70
  color: #ffffff;
70
71
  }
72
+ .list-footer-total {
73
+ font-size: 12px;
74
+ font-weight: 500;
75
+ color: #ffffff;
76
+ }
71
77
  .datagrid {
72
78
  padding: 0 0 0 8px;
73
79
  height: $datagrid-height;
@@ -80,14 +86,18 @@ $datagrid-height: calc(100vh - #{$header-height} - #{$footer-height});
80
86
  }
81
87
 
82
88
  .datagrid-table {
83
- width: 100%;
89
+ min-width: 100%;
90
+ table-layout: fixed;
84
91
  border-collapse: collapse;
92
+ position: relative;
85
93
 
86
94
  th,
87
95
  td {
88
96
  padding: 12px 16px;
89
97
  text-align: left;
90
98
  border-bottom: 1px solid #444444;
99
+ text-overflow: ellipsis;
100
+ white-space: nowrap;
91
101
  }
92
102
 
93
103
  th {
@@ -158,6 +168,11 @@ $datagrid-height: calc(100vh - #{$header-height} - #{$footer-height});
158
168
  fill: #ff0000;
159
169
  stroke: none;
160
170
  }
171
+ &.icon-down {
172
+ fill: none;
173
+ stroke: currentColor;
174
+ stroke-width: 2;
175
+ }
161
176
  }
162
177
 
163
178
  .util-cell-label {
@@ -209,3 +224,51 @@ $datagrid-height: calc(100vh - #{$header-height} - #{$footer-height});
209
224
  transition: background-color 0.2s ease;
210
225
  }
211
226
  }
227
+ .util-cell-actions {
228
+ display: flex;
229
+ flex-direction: column;
230
+ gap: 8px;
231
+ position: relative;
232
+ &:hover {
233
+ .util-cell-actions-list {
234
+ display: flex;
235
+ }
236
+ }
237
+ }
238
+ .util-cell-actions-label {
239
+ font-size: 14px;
240
+ font-weight: 500;
241
+ cursor: pointer;
242
+ white-space: nowrap;
243
+ text-decoration: underline;
244
+ }
245
+ .util-cell-actions-list {
246
+ position: absolute;
247
+ top: 100%;
248
+ right: 0;
249
+ display: none;
250
+ flex-direction: column;
251
+ list-style: none;
252
+ margin: 0;
253
+ padding: 0;
254
+ background-color: #2b2b2b;
255
+ border: 1px solid #444444;
256
+ border-radius: 4px;
257
+ z-index: 1000;
258
+ > li {
259
+ display: flex;
260
+ align-items: center;
261
+ padding: 12px 16px;
262
+ border-bottom: 1px solid #444444;
263
+ cursor: pointer;
264
+ &:hover {
265
+ background-color: #444444;
266
+ }
267
+ &:last-child {
268
+ border-bottom: none;
269
+ }
270
+ }
271
+ }
272
+ .util-cell-link {
273
+ cursor: pointer;
274
+ }