dashboard-shell-shell 1.0.114 → 1.0.115
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.
- package/components/ResourceTable.vue +68 -22
- package/components/SideNav.vue +35 -14
- package/components/SortableTable/THead.vue +25 -2
- package/components/SortableTable/index.vue +763 -356
- package/components/SortableTable/paging.js +36 -28
- package/components/nav/Group.vue +45 -25
- package/components/nav/Type.vue +19 -35
- package/package.json +1 -1
- package/public/index.html +3 -3
|
@@ -15,7 +15,8 @@ export default {
|
|
|
15
15
|
},
|
|
16
16
|
|
|
17
17
|
indexTo() {
|
|
18
|
-
return Math.min(this.totalRows, this.indexFrom + this.perPage - 1);
|
|
18
|
+
// return Math.min(this.totalRows, this.indexFrom + this.perPage - 1);
|
|
19
|
+
return Math.min(this.totalRows, this.indexFrom + Number(this.perPage) - 1);
|
|
19
20
|
},
|
|
20
21
|
|
|
21
22
|
totalPages() {
|
|
@@ -23,17 +24,18 @@ export default {
|
|
|
23
24
|
},
|
|
24
25
|
|
|
25
26
|
showPaging() {
|
|
26
|
-
if (!this.paging) {
|
|
27
|
-
|
|
28
|
-
}
|
|
27
|
+
// if (!this.paging) {
|
|
28
|
+
// return false;
|
|
29
|
+
// }
|
|
29
30
|
|
|
30
|
-
const havePages = this.totalPages > 1;
|
|
31
|
+
// const havePages = this.totalPages > 1;
|
|
31
32
|
|
|
32
|
-
if (this.altLoading) {
|
|
33
|
-
|
|
34
|
-
}
|
|
33
|
+
// if (this.altLoading) {
|
|
34
|
+
// return havePages;
|
|
35
|
+
// }
|
|
35
36
|
|
|
36
|
-
return !this.loading && havePages;
|
|
37
|
+
// return !this.loading && havePages;
|
|
38
|
+
return !this.loading && this.paging && this.totalPages >= 1;
|
|
37
39
|
},
|
|
38
40
|
|
|
39
41
|
pagingDisplay() {
|
|
@@ -61,9 +63,9 @@ export default {
|
|
|
61
63
|
},
|
|
62
64
|
|
|
63
65
|
data() {
|
|
64
|
-
const perPage = this.getPerPage();
|
|
66
|
+
// const perPage = this.getPerPage();
|
|
65
67
|
|
|
66
|
-
return { page: 1, perPage };
|
|
68
|
+
return { page: 1, perPage:10 };
|
|
67
69
|
},
|
|
68
70
|
|
|
69
71
|
watch: {
|
|
@@ -78,31 +80,37 @@ export default {
|
|
|
78
80
|
}
|
|
79
81
|
},
|
|
80
82
|
|
|
81
|
-
page() {
|
|
82
|
-
|
|
83
|
-
},
|
|
83
|
+
// page() {
|
|
84
|
+
// this.debouncedPaginationChanged();
|
|
85
|
+
// },
|
|
84
86
|
|
|
85
|
-
perPage() {
|
|
86
|
-
|
|
87
|
-
},
|
|
87
|
+
// perPage() {
|
|
88
|
+
// this.debouncedPaginationChanged();
|
|
89
|
+
// },
|
|
88
90
|
|
|
89
91
|
},
|
|
90
92
|
|
|
91
93
|
methods: {
|
|
92
|
-
getPerPage() {
|
|
93
|
-
|
|
94
|
-
|
|
94
|
+
// getPerPage() {
|
|
95
|
+
// // perPage can not change while the list is displayed
|
|
96
|
+
// let out = this.rowsPerPage || 0;
|
|
95
97
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
// if ( out <= 0 ) {
|
|
99
|
+
// out = parseInt(this.$store.getters['prefs/get'](ROWS_PER_PAGE), 10) || 0;
|
|
100
|
+
// }
|
|
101
|
+
|
|
102
|
+
// // This should ideally never happen, but the preference value could be invalid, so return something...
|
|
103
|
+
// if ( out <= 0 ) {
|
|
104
|
+
// out = 10;
|
|
105
|
+
// }
|
|
106
|
+
|
|
107
|
+
// return out;
|
|
108
|
+
// },
|
|
99
109
|
|
|
100
|
-
// This should ideally never happen, but the preference value could be invalid, so return something...
|
|
101
|
-
if ( out <= 0 ) {
|
|
102
|
-
out = 10;
|
|
103
|
-
}
|
|
104
110
|
|
|
105
|
-
|
|
111
|
+
setgetPerPage(num) {
|
|
112
|
+
this.setPage(1);
|
|
113
|
+
this.perPage = num;
|
|
106
114
|
},
|
|
107
115
|
|
|
108
116
|
setPage(num) {
|
package/components/nav/Group.vue
CHANGED
|
@@ -231,8 +231,11 @@ export default {
|
|
|
231
231
|
</router-link>
|
|
232
232
|
<h6
|
|
233
233
|
v-else
|
|
234
|
+
@click="peek($event, true)"
|
|
234
235
|
>
|
|
235
|
-
|
|
236
|
+
<i :class="'nav-icon icon-'+group.name.replace(/\s+/g, '').toLowerCase()" />
|
|
237
|
+
{{ group.labelDisplay || group.label }}
|
|
238
|
+
<!-- <span v-clean-html="group.labelDisplay || group.label" /> -->
|
|
236
239
|
</h6>
|
|
237
240
|
</slot>
|
|
238
241
|
<i
|
|
@@ -342,21 +345,28 @@ export default {
|
|
|
342
345
|
}
|
|
343
346
|
|
|
344
347
|
&.active {
|
|
345
|
-
color: var(--
|
|
346
|
-
background-color: var(--
|
|
348
|
+
color: var(--nav-hover-color);
|
|
349
|
+
background-color: var(--nav-active);
|
|
347
350
|
|
|
348
351
|
h6 {
|
|
349
|
-
padding: 8px 0 8px 16px;
|
|
350
|
-
font-weight: bold;
|
|
351
|
-
color: var(--
|
|
352
|
+
/* padding: 8px 0 8px 16px;
|
|
353
|
+
font-weight: bold; */
|
|
354
|
+
color: var(--nav-hover-color);
|
|
355
|
+
}
|
|
356
|
+
I{
|
|
357
|
+
color: var(--nav-hover-color);
|
|
352
358
|
}
|
|
353
359
|
|
|
354
|
-
&:hover {
|
|
360
|
+
/* &:hover {
|
|
355
361
|
background-color: var(--primary-hover-bg);
|
|
356
|
-
}
|
|
362
|
+
} */
|
|
357
363
|
}
|
|
358
364
|
&:hover:not(.active) {
|
|
359
|
-
background-color: var(--nav-
|
|
365
|
+
background-color: var(--nav-active);
|
|
366
|
+
color: var(--nav-hover-color);
|
|
367
|
+
h6{
|
|
368
|
+
color: var(--nav-hover-color);
|
|
369
|
+
}
|
|
360
370
|
}
|
|
361
371
|
}
|
|
362
372
|
}
|
|
@@ -364,49 +374,53 @@ export default {
|
|
|
364
374
|
.accordion {
|
|
365
375
|
&.depth-0 {
|
|
366
376
|
> .header {
|
|
377
|
+
/* padding: 8px 0; */
|
|
378
|
+
padding: 0px 0px 0px 20px;
|
|
379
|
+
height: 50px;
|
|
367
380
|
|
|
368
381
|
&.noHover {
|
|
369
382
|
cursor: default;
|
|
370
383
|
}
|
|
371
384
|
|
|
372
385
|
> H6 {
|
|
386
|
+
font-size: 14px;
|
|
373
387
|
text-transform: none;
|
|
374
|
-
|
|
388
|
+
line-height: 50px;
|
|
389
|
+
display: flex;
|
|
390
|
+
align-items: center;
|
|
375
391
|
}
|
|
376
392
|
|
|
377
393
|
> I {
|
|
378
394
|
position: absolute;
|
|
379
395
|
right: 0;
|
|
380
396
|
top: 0;
|
|
381
|
-
padding:
|
|
397
|
+
padding: 0px 20px 0px 0px;
|
|
382
398
|
user-select: none;
|
|
399
|
+
line-height: 50px;
|
|
383
400
|
}
|
|
384
401
|
}
|
|
385
402
|
|
|
386
403
|
> .body {
|
|
387
404
|
margin-left: 0;
|
|
388
405
|
}
|
|
389
|
-
|
|
390
|
-
&.group-highlight {
|
|
391
|
-
background: var(--nav-active);
|
|
392
|
-
}
|
|
393
406
|
}
|
|
394
407
|
|
|
395
408
|
&.depth-1 {
|
|
396
409
|
> .header {
|
|
397
|
-
padding-left: 20px;
|
|
398
410
|
> H6 {
|
|
399
|
-
|
|
411
|
+
font-size: 13px;
|
|
412
|
+
line-height: 16px;
|
|
400
413
|
padding: 8px 0 7px 5px !important;
|
|
401
414
|
}
|
|
402
415
|
> I {
|
|
403
|
-
padding:
|
|
416
|
+
padding: 9px 7px 8px 7px !important;
|
|
404
417
|
}
|
|
405
418
|
}
|
|
406
419
|
}
|
|
407
420
|
|
|
408
421
|
&:not(.depth-0) {
|
|
409
422
|
> .header {
|
|
423
|
+
padding-left: 10px;
|
|
410
424
|
> H6 {
|
|
411
425
|
// Child groups that aren't linked themselves
|
|
412
426
|
display: inline-block;
|
|
@@ -428,13 +442,16 @@ export default {
|
|
|
428
442
|
padding: 0;
|
|
429
443
|
|
|
430
444
|
A, A I {
|
|
431
|
-
color: var(--primary-hover-text);
|
|
445
|
+
/* color: var(--primary-hover-text); */
|
|
446
|
+
color: var(--nav-hover-color);
|
|
432
447
|
}
|
|
433
448
|
|
|
434
449
|
A {
|
|
435
|
-
color: var(--
|
|
436
|
-
|
|
437
|
-
|
|
450
|
+
background-color: var(--nav-active);
|
|
451
|
+
::v-deep .icon {
|
|
452
|
+
/* color: var(--body-text); */
|
|
453
|
+
color: var(--nav-hover-color);
|
|
454
|
+
}
|
|
438
455
|
}
|
|
439
456
|
}
|
|
440
457
|
|
|
@@ -443,9 +460,6 @@ export default {
|
|
|
443
460
|
border-left: solid 5px transparent;
|
|
444
461
|
line-height: 16px;
|
|
445
462
|
font-size: 14px;
|
|
446
|
-
padding-left: 24px;
|
|
447
|
-
display: flex;
|
|
448
|
-
justify-content: space-between;
|
|
449
463
|
}
|
|
450
464
|
|
|
451
465
|
A:focus {
|
|
@@ -459,4 +473,10 @@ export default {
|
|
|
459
473
|
}
|
|
460
474
|
}
|
|
461
475
|
}
|
|
476
|
+
.nav-icon{
|
|
477
|
+
font-size: 32px;
|
|
478
|
+
margin-top: -11px;
|
|
479
|
+
color: #a8abb2;
|
|
480
|
+
}
|
|
462
481
|
</style>
|
|
482
|
+
|
package/components/nav/Type.vue
CHANGED
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
class="label"
|
|
137
137
|
:class="{'no-icon': !type.icon}"
|
|
138
138
|
/>
|
|
139
|
-
<span
|
|
139
|
+
<!-- <span
|
|
140
140
|
v-if="showFavorite || namespaceIcon || showCount"
|
|
141
141
|
class="count"
|
|
142
142
|
>
|
|
@@ -154,7 +154,7 @@ export default {
|
|
|
154
154
|
v-if="showCount"
|
|
155
155
|
data-testid="type-count"
|
|
156
156
|
>{{ count }}</span>
|
|
157
|
-
</span>
|
|
157
|
+
</span> -->
|
|
158
158
|
</a>
|
|
159
159
|
</li>
|
|
160
160
|
</router-link>
|
|
@@ -177,7 +177,6 @@ export default {
|
|
|
177
177
|
{{ type }}?
|
|
178
178
|
</li>
|
|
179
179
|
</template>
|
|
180
|
-
|
|
181
180
|
<style lang="scss" scoped>
|
|
182
181
|
.ns-and-icon {
|
|
183
182
|
margin-right: 4px;
|
|
@@ -199,6 +198,7 @@ export default {
|
|
|
199
198
|
.label {
|
|
200
199
|
align-items: center;
|
|
201
200
|
grid-area: label;
|
|
201
|
+
display: flex;
|
|
202
202
|
overflow: hidden;
|
|
203
203
|
text-overflow: ellipsis;
|
|
204
204
|
|
|
@@ -206,13 +206,13 @@ export default {
|
|
|
206
206
|
padding-left: 3px;
|
|
207
207
|
}
|
|
208
208
|
|
|
209
|
-
|
|
209
|
+
::v-deep .highlight {
|
|
210
210
|
background: var(--diff-ins-bg);
|
|
211
211
|
color: var(--body-text);
|
|
212
212
|
padding: 2px;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
|
|
215
|
+
::v-deep .icon {
|
|
216
216
|
position: relative;
|
|
217
217
|
color: var(--muted);
|
|
218
218
|
}
|
|
@@ -225,20 +225,24 @@ export default {
|
|
|
225
225
|
grid-column-gap: 5px;
|
|
226
226
|
font-size: 14px;
|
|
227
227
|
line-height: 24px;
|
|
228
|
-
padding: 7.5px 7px 7.5px 10px;
|
|
228
|
+
/* padding: 7.5px 7px 7.5px 10px; */
|
|
229
|
+
padding: 0px 16px 0px 40px;
|
|
230
|
+
height: 50px;
|
|
229
231
|
margin: 0 0 0 -3px;
|
|
230
232
|
overflow: hidden;
|
|
231
233
|
text-overflow: ellipsis;
|
|
232
234
|
white-space: nowrap;
|
|
233
235
|
color: var(--body-text);
|
|
234
|
-
height: 33px;
|
|
235
236
|
|
|
236
237
|
&:hover {
|
|
237
|
-
background: var(--nav-
|
|
238
|
+
background: var(--nav-active);
|
|
239
|
+
color: var(--nav-hover-color);
|
|
240
|
+
/* background: var(--nav-hover); */
|
|
238
241
|
text-decoration: none;
|
|
239
242
|
|
|
240
|
-
|
|
241
|
-
color: var(--body-text);
|
|
243
|
+
::v-deep .icon {
|
|
244
|
+
/* color: var(--body-text); */
|
|
245
|
+
color: var(--nav-hover-color);
|
|
242
246
|
}
|
|
243
247
|
}
|
|
244
248
|
}
|
|
@@ -247,44 +251,24 @@ export default {
|
|
|
247
251
|
grid-area: favorite;
|
|
248
252
|
font-size: 12px;
|
|
249
253
|
position: relative;
|
|
250
|
-
vertical-align: middle;
|
|
251
|
-
margin-right: 4px;
|
|
252
254
|
}
|
|
253
255
|
|
|
254
256
|
.count {
|
|
257
|
+
grid-area: count;
|
|
255
258
|
font-size: 12px;
|
|
259
|
+
text-align: right;
|
|
256
260
|
justify-items: center;
|
|
257
261
|
padding-right: 4px;
|
|
258
|
-
display: flex;
|
|
259
|
-
align-items: center;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
&.nav-type.nav-link {
|
|
263
|
-
a .label {
|
|
264
|
-
display: flex;
|
|
265
|
-
}
|
|
266
262
|
}
|
|
267
263
|
|
|
268
264
|
&.nav-type:not(.depth-0) {
|
|
269
|
-
A {
|
|
270
|
-
padding-left: 16px;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
:deep() .label I {
|
|
274
|
-
padding-right: 2px;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
&.nav-type:is(.depth-1) {
|
|
279
265
|
A {
|
|
280
266
|
font-size: 13px;
|
|
281
|
-
padding
|
|
267
|
+
padding: 5.5px 7px 5.5px 10px;
|
|
282
268
|
}
|
|
283
|
-
}
|
|
284
269
|
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
padding-left: 14px;
|
|
270
|
+
::v-deep .label I {
|
|
271
|
+
padding-right: 2px;
|
|
288
272
|
}
|
|
289
273
|
}
|
|
290
274
|
}
|
package/package.json
CHANGED
package/public/index.html
CHANGED
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
|
|
49
49
|
.initial-load-spinner {
|
|
50
50
|
animation: initial-load-animate 1s infinite linear;
|
|
51
|
-
background-color:
|
|
51
|
+
background-color: transparent;
|
|
52
52
|
box-sizing: border-box;
|
|
53
|
-
border: 5px solid #
|
|
53
|
+
border: 5px solid #1890FF;
|
|
54
54
|
border-radius: 50%;
|
|
55
|
-
border-top-color:
|
|
55
|
+
border-top-color: transparent;
|
|
56
56
|
display: inline-block;
|
|
57
57
|
height: 80px;
|
|
58
58
|
margin: 0 auto;
|