@dataloop-ai/components 0.20.196 → 0.20.197
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/package.json +1 -1
- package/src/assets/globals.scss +2 -10
- package/src/components/compound/DlInput/DlInput.vue +5 -5
- package/src/components/compound/DlPagination/DlPagination.vue +3 -3
- package/src/components/compound/DlPagination/components/PageNavigation.vue +55 -39
- package/src/components/compound/DlPagination/components/PaginationLegend.vue +1 -1
- package/src/components/compound/DlPagination/components/QuickNavigation.vue +19 -17
- package/src/components/compound/DlPagination/components/RowsSelector.vue +4 -5
- package/src/components/compound/DlSelect/DlSelect.vue +12 -8
- package/src/components/compound/DlTable/DlTable.vue +21 -17
- package/src/components/compound/DlTable/styles/dl-table-styles.scss +21 -21
- package/src/components/essential/DlCheckbox/DlCheckbox.vue +8 -23
- package/src/components/essential/DlIcon/DlIcon.vue +1 -1
- package/src/components/essential/DlLink/DlLink.vue +14 -8
- package/src/components/essential/DlTypography/DlTypography.vue +1 -1
package/package.json
CHANGED
package/src/assets/globals.scss
CHANGED
|
@@ -440,22 +440,14 @@ html {
|
|
|
440
440
|
flex-direction: row;
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
// maybe add this in the future
|
|
444
|
-
// .disabled {
|
|
445
|
-
// opacity: 0.6 !important;
|
|
446
|
-
// }
|
|
447
|
-
// .disabled, .disabled * {
|
|
448
|
-
// outline: 0 !important;
|
|
449
|
-
// cursor: not-allowed !important;
|
|
450
|
-
// }
|
|
451
|
-
|
|
452
443
|
[disabled] {
|
|
453
|
-
opacity:
|
|
444
|
+
opacity: 1 !important;
|
|
454
445
|
}
|
|
455
446
|
[disabled],
|
|
456
447
|
[disabled] * {
|
|
457
448
|
outline: 0 !important;
|
|
458
449
|
cursor: not-allowed !important;
|
|
450
|
+
opacity: 1 !important;
|
|
459
451
|
}
|
|
460
452
|
|
|
461
453
|
@import 'grid';
|
|
@@ -1443,18 +1443,18 @@ export default defineComponent({
|
|
|
1443
1443
|
position: relative;
|
|
1444
1444
|
display: flex;
|
|
1445
1445
|
justify-content: space-between;
|
|
1446
|
-
border: 1px solid var(--
|
|
1446
|
+
border: 1px solid var(--dell-gray-500);
|
|
1447
1447
|
min-width: var(--dl-input-width);
|
|
1448
1448
|
max-width: var(--dl-input-max-width);
|
|
1449
1449
|
max-height: var(--dl-input-max-height);
|
|
1450
1450
|
height: var(--dl-input-height);
|
|
1451
1451
|
|
|
1452
1452
|
&--readonly {
|
|
1453
|
-
border-color: var(--
|
|
1453
|
+
border-color: var(--dell-gray-500) !important;
|
|
1454
1454
|
}
|
|
1455
1455
|
|
|
1456
1456
|
&:hover {
|
|
1457
|
-
border-color: var(--
|
|
1457
|
+
border-color: var(--dell-gray-800);
|
|
1458
1458
|
}
|
|
1459
1459
|
&--error {
|
|
1460
1460
|
border-color: var(--dl-color-negative);
|
|
@@ -1463,7 +1463,7 @@ export default defineComponent({
|
|
|
1463
1463
|
border-color: var(--dl-input-border-color-hover);
|
|
1464
1464
|
}
|
|
1465
1465
|
&--disabled {
|
|
1466
|
-
border-color: var(--
|
|
1466
|
+
border-color: var(--dell-gray-500);
|
|
1467
1467
|
color: var(--dl-color-disabled);
|
|
1468
1468
|
cursor: not-allowed;
|
|
1469
1469
|
}
|
|
@@ -1476,7 +1476,7 @@ export default defineComponent({
|
|
|
1476
1476
|
display: inline-block;
|
|
1477
1477
|
font-family: Arial, Helvetica, sans-serif;
|
|
1478
1478
|
border-right: none;
|
|
1479
|
-
border-radius:
|
|
1479
|
+
border-radius: 0px;
|
|
1480
1480
|
color: var(--dl-color-darker);
|
|
1481
1481
|
white-space: var(--dl-input-white-space);
|
|
1482
1482
|
font-size: var(--dl-font-size-body);
|
|
@@ -115,15 +115,15 @@ export default defineComponent({
|
|
|
115
115
|
},
|
|
116
116
|
textColor: {
|
|
117
117
|
type: String,
|
|
118
|
-
default: '
|
|
118
|
+
default: 'dell-gray-800'
|
|
119
119
|
},
|
|
120
120
|
activeColor: {
|
|
121
121
|
type: String,
|
|
122
|
-
default: '
|
|
122
|
+
default: 'dell-blue-500'
|
|
123
123
|
},
|
|
124
124
|
activeTextColor: {
|
|
125
125
|
type: String,
|
|
126
|
-
default: '
|
|
126
|
+
default: 'dell-white'
|
|
127
127
|
},
|
|
128
128
|
totalItems: {
|
|
129
129
|
type: Number,
|
|
@@ -1,18 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
class="dl-pagination--page_navigation"
|
|
4
|
-
:style="cssVars"
|
|
5
|
-
>
|
|
2
|
+
<div class="dl-pagination--page_navigation" :style="cssVars">
|
|
6
3
|
<button
|
|
7
4
|
v-if="boundaryLinks"
|
|
8
5
|
class="dl-pagination--nav_button"
|
|
9
6
|
:disabled="disabled || isFirstPage"
|
|
10
7
|
@click="setPage(min)"
|
|
11
8
|
>
|
|
12
|
-
<dl-icon
|
|
13
|
-
icon="icon-dl-first-page"
|
|
14
|
-
size="16px"
|
|
15
|
-
/>
|
|
9
|
+
<dl-icon icon="icon-dl-first-page" size="16px" />
|
|
16
10
|
</button>
|
|
17
11
|
<button
|
|
18
12
|
v-if="directionLinks"
|
|
@@ -20,10 +14,7 @@
|
|
|
20
14
|
:disabled="disabled || isFirstPage"
|
|
21
15
|
@click="setPage(value - 1)"
|
|
22
16
|
>
|
|
23
|
-
<dl-icon
|
|
24
|
-
icon="icon-dl-previous-page"
|
|
25
|
-
size="16px"
|
|
26
|
-
/>
|
|
17
|
+
<dl-icon icon="icon-dl-previous-page" size="16px" />
|
|
27
18
|
</button>
|
|
28
19
|
<div class="dl-pagination--page_buttons_wrapper">
|
|
29
20
|
<button
|
|
@@ -92,10 +83,7 @@
|
|
|
92
83
|
:disabled="disabled || isLastPage"
|
|
93
84
|
@click="setPage(value + 1)"
|
|
94
85
|
>
|
|
95
|
-
<dl-icon
|
|
96
|
-
icon="icon-dl-right-next-page"
|
|
97
|
-
size="16px"
|
|
98
|
-
/>
|
|
86
|
+
<dl-icon icon="icon-dl-right-next-page" size="16px" />
|
|
99
87
|
</button>
|
|
100
88
|
<button
|
|
101
89
|
v-if="boundaryLinks"
|
|
@@ -103,10 +91,7 @@
|
|
|
103
91
|
:disabled="disabled || isLastPage"
|
|
104
92
|
@click="setPage(max)"
|
|
105
93
|
>
|
|
106
|
-
<dl-icon
|
|
107
|
-
icon="icon-dl-last-page"
|
|
108
|
-
size="16px"
|
|
109
|
-
/>
|
|
94
|
+
<dl-icon icon="icon-dl-last-page" size="16px" />
|
|
110
95
|
</button>
|
|
111
96
|
</div>
|
|
112
97
|
</template>
|
|
@@ -155,15 +140,15 @@ export default defineComponent({
|
|
|
155
140
|
},
|
|
156
141
|
textColor: {
|
|
157
142
|
type: String,
|
|
158
|
-
default: '
|
|
143
|
+
default: 'dell-gray-800'
|
|
159
144
|
},
|
|
160
145
|
activeColor: {
|
|
161
146
|
type: String,
|
|
162
|
-
default: '
|
|
147
|
+
default: 'dell-blue-500'
|
|
163
148
|
},
|
|
164
149
|
activeTextColor: {
|
|
165
150
|
type: String,
|
|
166
|
-
default: '
|
|
151
|
+
default: 'dell-white'
|
|
167
152
|
}
|
|
168
153
|
},
|
|
169
154
|
emits: ['update:model-value'],
|
|
@@ -194,12 +179,12 @@ export default defineComponent({
|
|
|
194
179
|
),
|
|
195
180
|
'--dl-active-button-bg-color': getColor(
|
|
196
181
|
this.activeColor,
|
|
197
|
-
'
|
|
182
|
+
'dell-blue-500'
|
|
198
183
|
),
|
|
199
|
-
'--dl-text-color': getColor(this.textColor, '
|
|
184
|
+
'--dl-text-color': getColor(this.textColor, 'dell-gray-800'),
|
|
200
185
|
'--dl-active-text-color': getColor(
|
|
201
186
|
this.activeTextColor,
|
|
202
|
-
'
|
|
187
|
+
'dell-white'
|
|
203
188
|
),
|
|
204
189
|
'--dl-button-min-width': this.buttonMinWidth
|
|
205
190
|
}
|
|
@@ -319,44 +304,75 @@ export default defineComponent({
|
|
|
319
304
|
}
|
|
320
305
|
|
|
321
306
|
&--active {
|
|
322
|
-
color: var(--
|
|
323
|
-
background-color: var(--
|
|
307
|
+
color: var(--dell-white) !important;
|
|
308
|
+
background-color: var(--dell-blue-500) !important;
|
|
324
309
|
}
|
|
325
310
|
|
|
326
|
-
&--page_button,
|
|
327
311
|
&--nav_button {
|
|
312
|
+
display: flex;
|
|
313
|
+
align-items: center;
|
|
314
|
+
justify-content: center;
|
|
328
315
|
min-width: var(--dl-button-min-width);
|
|
329
316
|
padding: 0;
|
|
330
317
|
cursor: pointer;
|
|
331
318
|
border: none;
|
|
332
319
|
border-radius: 2px;
|
|
333
|
-
color: var(--
|
|
320
|
+
color: var(--dell-blue-500) !important;
|
|
334
321
|
background-color: var(--dl-button-bg-color);
|
|
335
322
|
|
|
336
|
-
&:
|
|
337
|
-
|
|
338
|
-
|
|
323
|
+
&:hover:not(:disabled) {
|
|
324
|
+
color: var(--dell-blue-600);
|
|
325
|
+
border-radius: 2px;
|
|
326
|
+
background-color: var(--dell-gray-100);
|
|
327
|
+
border: 1px solid var(--dell-gray-100);
|
|
339
328
|
|
|
340
329
|
::v-deep .dl-icon {
|
|
341
|
-
color: var(--
|
|
330
|
+
color: var(--dell-blue-600);
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&:disabled {
|
|
335
|
+
color: var(--dell-gray-500);
|
|
336
|
+
cursor: default;
|
|
337
|
+
|
|
338
|
+
::v-deep .dl-icon {
|
|
339
|
+
color: var(--dell-gray-500);
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
&--page_button {
|
|
345
|
+
min-width: var(--dl-button-min-width);
|
|
346
|
+
padding: 0;
|
|
347
|
+
cursor: pointer;
|
|
348
|
+
border: none;
|
|
349
|
+
border-radius: 2px;
|
|
350
|
+
color: var(--dell-gray-800);
|
|
351
|
+
background-color: var(--dl-button-bg-color);
|
|
352
|
+
|
|
353
|
+
&:active:not(:disabled) {
|
|
354
|
+
background-color: var(--dell-blue-500);
|
|
355
|
+
color: var(--dell-white);
|
|
356
|
+
::v-deep .dl-icon {
|
|
357
|
+
color: var(--dell-white);
|
|
342
358
|
}
|
|
343
359
|
}
|
|
344
360
|
|
|
345
361
|
&:disabled {
|
|
346
|
-
color: var(--
|
|
362
|
+
color: var(--dell-gray-500);
|
|
347
363
|
cursor: default;
|
|
348
364
|
|
|
349
365
|
::v-deep .dl-icon {
|
|
350
|
-
color: var(--
|
|
366
|
+
color: var(--dell-gray-500);
|
|
351
367
|
}
|
|
352
368
|
}
|
|
353
369
|
|
|
354
370
|
&:hover:not(:disabled):not(.active) {
|
|
355
|
-
background-color: var(--
|
|
356
|
-
color: var(--
|
|
371
|
+
background-color: var(--dell-gray-100);
|
|
372
|
+
color: var(--dell-gray-800);
|
|
357
373
|
|
|
358
374
|
::v-deep .dl-icon {
|
|
359
|
-
color: var(--
|
|
375
|
+
color: var(--dell-gray-800);
|
|
360
376
|
}
|
|
361
377
|
}
|
|
362
378
|
}
|
|
@@ -10,32 +10,31 @@
|
|
|
10
10
|
:disabled="disabled"
|
|
11
11
|
@keydown="handleKeyDown"
|
|
12
12
|
@keyup="handleKeyUp"
|
|
13
|
-
|
|
14
|
-
<dl-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
margin="0"
|
|
18
|
-
class="dl-pagination--quick_nav_button"
|
|
13
|
+
/>
|
|
14
|
+
<dl-link
|
|
15
|
+
class="dl-pagination--quick_nav_link"
|
|
16
|
+
color="dell-blue-600"
|
|
19
17
|
:disabled="disabled"
|
|
18
|
+
hover-color="dell-blue-700"
|
|
20
19
|
@click="handleNavigation"
|
|
21
20
|
>
|
|
22
21
|
Go
|
|
23
|
-
</dl-
|
|
22
|
+
</dl-link>
|
|
24
23
|
</div>
|
|
25
24
|
</template>
|
|
26
25
|
|
|
27
26
|
<script lang="ts">
|
|
28
27
|
import { defineComponent } from 'vue-demi'
|
|
29
|
-
import { DlButton } from '../../../basic'
|
|
30
28
|
import { DlTypography } from '../../../essential'
|
|
31
29
|
import { stopAndPrevent } from '../../../../utils'
|
|
32
30
|
import { admissibleKeys } from '../../../../utils/nav-keys-constants'
|
|
31
|
+
import { DlLink } from '../../../essential'
|
|
33
32
|
|
|
34
33
|
export default defineComponent({
|
|
35
34
|
name: 'QuickNavigation',
|
|
36
35
|
components: {
|
|
37
36
|
DlTypography,
|
|
38
|
-
|
|
37
|
+
DlLink
|
|
39
38
|
},
|
|
40
39
|
model: {
|
|
41
40
|
prop: 'modelValue',
|
|
@@ -96,16 +95,16 @@ export default defineComponent({
|
|
|
96
95
|
&--quick_navigation {
|
|
97
96
|
display: flex;
|
|
98
97
|
align-items: center;
|
|
99
|
-
color: var(--
|
|
98
|
+
color: var(--dell-gray-800);
|
|
100
99
|
padding-right: 16px;
|
|
101
100
|
& p {
|
|
102
101
|
padding-right: 4px;
|
|
103
102
|
}
|
|
104
103
|
}
|
|
105
104
|
&--navigation_input {
|
|
106
|
-
border: 1px solid var(--
|
|
105
|
+
border: 1px solid var(--dell-gray-500);
|
|
107
106
|
border-radius: 2px;
|
|
108
|
-
color: var(--
|
|
107
|
+
color: var(--dell-gray-800);
|
|
109
108
|
outline: none;
|
|
110
109
|
background: none;
|
|
111
110
|
padding-top: 3px;
|
|
@@ -121,23 +120,26 @@ export default defineComponent({
|
|
|
121
120
|
margin: 0;
|
|
122
121
|
}
|
|
123
122
|
&:hover {
|
|
124
|
-
border-color: var(--
|
|
123
|
+
border-color: var(--dell-blue-600);
|
|
125
124
|
}
|
|
126
125
|
|
|
127
126
|
&:focus {
|
|
128
|
-
border-color: var(--
|
|
127
|
+
border-color: var(--dell-blue-500);
|
|
129
128
|
}
|
|
130
129
|
|
|
131
130
|
&:disabled {
|
|
132
|
-
border-color: var(--
|
|
133
|
-
color: var(--
|
|
131
|
+
border-color: var(--dell-gray-500);
|
|
132
|
+
color: var(--dell-gray-500);
|
|
134
133
|
cursor: not-allowed;
|
|
135
134
|
|
|
136
135
|
&:hover {
|
|
137
|
-
border-color: var(--
|
|
136
|
+
border-color: var(--dell-gray-500);
|
|
138
137
|
}
|
|
139
138
|
}
|
|
140
139
|
}
|
|
140
|
+
&--quick_nav_link {
|
|
141
|
+
margin-left: 5px;
|
|
142
|
+
}
|
|
141
143
|
}
|
|
142
144
|
|
|
143
145
|
::v-deep .dl-button {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="dl-pagination--rows_selector">
|
|
3
|
-
<span class="dl-pagination--rows_per_page_label"
|
|
4
|
-
|
|
5
|
-
v-if="hasSingeValue"
|
|
6
|
-
color="dl-color-darker"
|
|
3
|
+
<span class="dl-pagination--rows_per_page_label"
|
|
4
|
+
>{{ itemsName }} per page:</span
|
|
7
5
|
>
|
|
6
|
+
<dl-typography v-if="hasSingeValue" color="dell-gray-800">
|
|
8
7
|
{{ modelValue }}
|
|
9
8
|
</dl-typography>
|
|
10
9
|
<dl-select
|
|
@@ -72,7 +71,7 @@ export default defineComponent({
|
|
|
72
71
|
&--rows_selector {
|
|
73
72
|
display: flex;
|
|
74
73
|
align-items: center;
|
|
75
|
-
color: var(--
|
|
74
|
+
color: var(--dell-gray-800);
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
&--rows_per_page_label {
|
|
@@ -807,7 +807,7 @@ export default defineComponent({
|
|
|
807
807
|
return {
|
|
808
808
|
'--placeholder-color': getColor(
|
|
809
809
|
this.modelValueLength > 0 || this.selectedIndex !== -1
|
|
810
|
-
? '
|
|
810
|
+
? 'dell-gray-800'
|
|
811
811
|
: 'dl-color-lighter'
|
|
812
812
|
)
|
|
813
813
|
}
|
|
@@ -929,7 +929,7 @@ export default defineComponent({
|
|
|
929
929
|
return !!this.$slots.prepend && !this.isSmall
|
|
930
930
|
},
|
|
931
931
|
chevronIconColor(): string {
|
|
932
|
-
return `${this.disabled ? '
|
|
932
|
+
return `${this.disabled ? 'dell-gray-500' : null}`
|
|
933
933
|
},
|
|
934
934
|
showMenuList(): boolean {
|
|
935
935
|
if (
|
|
@@ -1048,7 +1048,11 @@ export default defineComponent({
|
|
|
1048
1048
|
return !!option?.readonly
|
|
1049
1049
|
},
|
|
1050
1050
|
isDisableRowOption(option: DlSelectOptionType) {
|
|
1051
|
-
return
|
|
1051
|
+
return (
|
|
1052
|
+
typeof option === 'object' &&
|
|
1053
|
+
option !== null &&
|
|
1054
|
+
!!option.disableRow
|
|
1055
|
+
)
|
|
1052
1056
|
},
|
|
1053
1057
|
getOptionCount(option: any) {
|
|
1054
1058
|
return option?.count ?? null
|
|
@@ -1323,10 +1327,10 @@ export default defineComponent({
|
|
|
1323
1327
|
}
|
|
1324
1328
|
|
|
1325
1329
|
.dl_select__select {
|
|
1326
|
-
border: 1px solid var(--
|
|
1327
|
-
border-radius:
|
|
1330
|
+
border: 1px solid var(--dell-gray-500);
|
|
1331
|
+
border-radius: 0px;
|
|
1328
1332
|
cursor: pointer;
|
|
1329
|
-
color: var(--
|
|
1333
|
+
color: var(--dell-gray-800);
|
|
1330
1334
|
height: 12px;
|
|
1331
1335
|
width: 100%;
|
|
1332
1336
|
box-sizing: content-box;
|
|
@@ -1415,11 +1419,11 @@ export default defineComponent({
|
|
|
1415
1419
|
}
|
|
1416
1420
|
|
|
1417
1421
|
&:hover {
|
|
1418
|
-
border-color: var(--
|
|
1422
|
+
border-color: var(--dell-gray-800);
|
|
1419
1423
|
}
|
|
1420
1424
|
|
|
1421
1425
|
&--focused {
|
|
1422
|
-
border-color: var(--
|
|
1426
|
+
border-color: var(--dell-blue-500) !important;
|
|
1423
1427
|
}
|
|
1424
1428
|
|
|
1425
1429
|
&--disabled {
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
v-bind="getHeaderScope({})"
|
|
89
89
|
>
|
|
90
90
|
<DlCheckbox
|
|
91
|
-
:color="
|
|
91
|
+
:color="checkboxColor"
|
|
92
92
|
:model-value="headerSelectedValue"
|
|
93
93
|
:indeterminate-value="true"
|
|
94
94
|
@update:model-value="
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
<div
|
|
162
162
|
v-if="
|
|
163
163
|
visibleColumns &&
|
|
164
|
-
|
|
164
|
+
visibleColumns.length
|
|
165
165
|
"
|
|
166
166
|
class="visible-columns-justify-end"
|
|
167
167
|
style="width: 100%; display: flex"
|
|
@@ -169,8 +169,8 @@
|
|
|
169
169
|
<dl-button
|
|
170
170
|
:text-color="
|
|
171
171
|
isVisibleColumnsOpen
|
|
172
|
-
? '
|
|
173
|
-
: '
|
|
172
|
+
? 'dell-blue-600'
|
|
173
|
+
: 'dell-gray-600'
|
|
174
174
|
"
|
|
175
175
|
flat
|
|
176
176
|
icon="icon-dl-column"
|
|
@@ -274,8 +274,8 @@
|
|
|
274
274
|
isRowSelected(getRowKey(props.item))
|
|
275
275
|
? 'selected'
|
|
276
276
|
: hasAnyAction
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
? ' cursor-pointer'
|
|
278
|
+
: ''
|
|
279
279
|
"
|
|
280
280
|
:no-hover="noHover"
|
|
281
281
|
@click="
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
"
|
|
326
326
|
>
|
|
327
327
|
<DlCheckbox
|
|
328
|
-
:color="
|
|
328
|
+
:color="checkboxColor"
|
|
329
329
|
:model-value="
|
|
330
330
|
isRowSelected(
|
|
331
331
|
getRowKey(props.item)
|
|
@@ -490,7 +490,7 @@
|
|
|
490
490
|
v-bind="getHeaderScope({})"
|
|
491
491
|
>
|
|
492
492
|
<DlCheckbox
|
|
493
|
-
:color="
|
|
493
|
+
:color="checkboxColor"
|
|
494
494
|
:model-value="headerSelectedValue"
|
|
495
495
|
:indeterminate-value="true"
|
|
496
496
|
@update:model-value="
|
|
@@ -565,7 +565,7 @@
|
|
|
565
565
|
<div
|
|
566
566
|
v-if="
|
|
567
567
|
visibleColumns &&
|
|
568
|
-
|
|
568
|
+
visibleColumns.length
|
|
569
569
|
"
|
|
570
570
|
class="visible-columns-justify-end"
|
|
571
571
|
style="width: 100%; display: flex"
|
|
@@ -674,8 +674,8 @@
|
|
|
674
674
|
<dl-top-scroll
|
|
675
675
|
v-if="
|
|
676
676
|
tableScroll &&
|
|
677
|
-
|
|
678
|
-
|
|
677
|
+
infiniteScroll &&
|
|
678
|
+
!isDataEmpty
|
|
679
679
|
"
|
|
680
680
|
:container-ref="tableScroll"
|
|
681
681
|
@scroll-to-top="
|
|
@@ -709,8 +709,8 @@
|
|
|
709
709
|
isRowSelected(getRowKey(row))
|
|
710
710
|
? 'selected'
|
|
711
711
|
: hasAnyAction
|
|
712
|
-
|
|
713
|
-
|
|
712
|
+
? ' cursor-pointer'
|
|
713
|
+
: ''
|
|
714
714
|
"
|
|
715
715
|
:no-hover="noHover"
|
|
716
716
|
@click="onTrClick($event, row, pageIndex)"
|
|
@@ -747,7 +747,7 @@
|
|
|
747
747
|
"
|
|
748
748
|
>
|
|
749
749
|
<DlCheckbox
|
|
750
|
-
:color="
|
|
750
|
+
:color="checkboxColor"
|
|
751
751
|
:model-value="
|
|
752
752
|
isRowSelected(
|
|
753
753
|
getRowKey(row)
|
|
@@ -845,8 +845,8 @@
|
|
|
845
845
|
<dl-bottom-scroll
|
|
846
846
|
v-if="
|
|
847
847
|
tableScroll &&
|
|
848
|
-
|
|
849
|
-
|
|
848
|
+
infiniteScroll &&
|
|
849
|
+
!isDataEmpty
|
|
850
850
|
"
|
|
851
851
|
:container-ref="tableScroll"
|
|
852
852
|
@scroll-to-bottom="
|
|
@@ -903,7 +903,7 @@
|
|
|
903
903
|
<div
|
|
904
904
|
v-if="
|
|
905
905
|
hasBottomSelectionBanner &&
|
|
906
|
-
|
|
906
|
+
selectedRowsLabel(rowsSelectedNumber)
|
|
907
907
|
"
|
|
908
908
|
class="dl-table__control"
|
|
909
909
|
>
|
|
@@ -1285,6 +1285,10 @@ export default defineComponent({
|
|
|
1285
1285
|
validator: (value: string) =>
|
|
1286
1286
|
['first', 'last', 'both'].includes(value)
|
|
1287
1287
|
},
|
|
1288
|
+
checkboxColor: {
|
|
1289
|
+
type: String,
|
|
1290
|
+
default: 'dell-blue-500'
|
|
1291
|
+
},
|
|
1288
1292
|
...useTableActionsProps,
|
|
1289
1293
|
...commonVirtScrollProps,
|
|
1290
1294
|
...useTableRowExpandProps,
|
|
@@ -9,20 +9,20 @@
|
|
|
9
9
|
border-spacing: 0;
|
|
10
10
|
|
|
11
11
|
.vertical-border {
|
|
12
|
-
border-left: 1px solid var(--
|
|
13
|
-
border-right: 1px solid var(--
|
|
12
|
+
border-left: 1px solid var(--dell-gray-300);
|
|
13
|
+
border-right: 1px solid var(--dell-gray-300);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
thead {
|
|
17
17
|
position: sticky;
|
|
18
18
|
top: 0;
|
|
19
|
-
background-color: var(--
|
|
19
|
+
background-color: var(--dell-white);
|
|
20
20
|
z-index: 50;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
.sticky-col {
|
|
24
24
|
position: sticky;
|
|
25
|
-
background-color: var(--
|
|
25
|
+
background-color: var(--dell-white);
|
|
26
26
|
z-index: 50;
|
|
27
27
|
}
|
|
28
28
|
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
//markup-table
|
|
85
85
|
|
|
86
86
|
&__card {
|
|
87
|
-
background-color: var(--
|
|
87
|
+
background-color: var(--dell-white);
|
|
88
88
|
border-radius: 2px;
|
|
89
89
|
|
|
90
90
|
.dl-table__middle {
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
.dl-table__bottom,
|
|
102
102
|
thead tr:first-child th {
|
|
103
103
|
/* bg color is important for th; just specify one */
|
|
104
|
-
background-color: var(--
|
|
104
|
+
background-color: var(--dell-white);
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
thead tr th {
|
|
@@ -134,14 +134,14 @@
|
|
|
134
134
|
opacity: 1;
|
|
135
135
|
}
|
|
136
136
|
td:not(.dl-td--no-hover) {
|
|
137
|
-
background-color: var(--
|
|
137
|
+
background-color: var(--dell-blue-100);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
tbody tr.highlighted {
|
|
143
143
|
td {
|
|
144
|
-
background-color: var(--
|
|
144
|
+
background-color: var(--dell-blue-100);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
font-weight: 400;
|
|
159
159
|
font-size: 14px;
|
|
160
160
|
line-height: 14px;
|
|
161
|
-
color: var(--
|
|
161
|
+
color: var(--dell-gray-900);
|
|
162
162
|
background-color: inherit;
|
|
163
163
|
user-select: none;
|
|
164
164
|
|
|
@@ -197,7 +197,7 @@
|
|
|
197
197
|
}
|
|
198
198
|
|
|
199
199
|
.dl-td {
|
|
200
|
-
background-color: var(--
|
|
200
|
+
background-color: var(--dell-white);
|
|
201
201
|
&--no-hover {
|
|
202
202
|
&:hover {
|
|
203
203
|
background-color: none !important;
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
|
|
212
212
|
tbody {
|
|
213
213
|
tr.selected td {
|
|
214
|
-
background-color: var(--
|
|
214
|
+
background-color: var(--dell-blue-100);
|
|
215
215
|
}
|
|
216
216
|
|
|
217
217
|
tr.selected td:after {
|
|
@@ -264,11 +264,11 @@
|
|
|
264
264
|
font-size: 20px;
|
|
265
265
|
letter-spacing: 0.005em;
|
|
266
266
|
font-weight: 400;
|
|
267
|
-
color: var(--
|
|
267
|
+
color: var(--dell-gray-800);
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
&--bordered {
|
|
271
|
-
border: 1px solid var(--
|
|
271
|
+
border: 1px solid var(--dell-gray-300);
|
|
272
272
|
border-radius: 2px;
|
|
273
273
|
}
|
|
274
274
|
|
|
@@ -321,7 +321,7 @@
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
&__bottom {
|
|
324
|
-
border-top: 1px solid var(--
|
|
324
|
+
border-top: 1px solid var(--dell-gray-300);
|
|
325
325
|
min-height: 50px;
|
|
326
326
|
padding: 4px 14px 4px 16px;
|
|
327
327
|
font-size: 12px;
|
|
@@ -364,7 +364,7 @@
|
|
|
364
364
|
tr,
|
|
365
365
|
th,
|
|
366
366
|
td {
|
|
367
|
-
border-color: var(--
|
|
367
|
+
border-color: var(--dell-gray-300);
|
|
368
368
|
|
|
369
369
|
&>label {
|
|
370
370
|
padding: 0;
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
font-size: 12px;
|
|
378
378
|
line-height: 14px;
|
|
379
379
|
background-color: inherit;
|
|
380
|
-
color: var(--
|
|
380
|
+
color: var(--dell-gray-800);
|
|
381
381
|
|
|
382
382
|
text-overflow: ellipsis;
|
|
383
383
|
white-space: nowrap;
|
|
@@ -400,13 +400,13 @@
|
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
&__is-dragging {
|
|
403
|
-
background-color: var(--
|
|
403
|
+
background-color: var(--dell-blue-200);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
406
|
&__selected {
|
|
407
|
-
background-color: var(--
|
|
407
|
+
background-color: var(--dell-blue-100) !important;
|
|
408
408
|
color: var(--dl-color-fill) !important;
|
|
409
|
-
border-color: var(--
|
|
409
|
+
border-color: var(--dell-gray-300) !important;
|
|
410
410
|
}
|
|
411
411
|
|
|
412
412
|
&__drag {
|
|
@@ -419,7 +419,7 @@
|
|
|
419
419
|
box-shadow: 0px 3px 6px rgba(16, 30, 115, 0.15);
|
|
420
420
|
border-radius: 2px;
|
|
421
421
|
font-size: 12px;
|
|
422
|
-
background-color: var(--
|
|
422
|
+
background-color: var(--dell-white);
|
|
423
423
|
|
|
424
424
|
& th {
|
|
425
425
|
cursor: grabbing !important;
|
|
@@ -554,7 +554,7 @@
|
|
|
554
554
|
|
|
555
555
|
.dl-table__top {
|
|
556
556
|
position: relative;
|
|
557
|
-
border-bottom: 1px solid var(--
|
|
557
|
+
border-bottom: 1px solid var(--dell-gray-300);
|
|
558
558
|
}
|
|
559
559
|
}
|
|
560
560
|
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
:id="uuid"
|
|
4
|
-
:class="identifierClass"
|
|
5
|
-
class="container-wrapper"
|
|
6
|
-
>
|
|
2
|
+
<div :id="uuid" :class="identifierClass" class="container-wrapper">
|
|
7
3
|
<label
|
|
8
4
|
ref="container"
|
|
9
5
|
:for="computedId"
|
|
@@ -15,10 +11,7 @@
|
|
|
15
11
|
@keydown="onKeydown"
|
|
16
12
|
@keyup="onKeyup"
|
|
17
13
|
>
|
|
18
|
-
<span
|
|
19
|
-
class="checkbox-wrapper"
|
|
20
|
-
:style="cssSvgVars"
|
|
21
|
-
>
|
|
14
|
+
<span class="checkbox-wrapper" :style="cssSvgVars">
|
|
22
15
|
<input
|
|
23
16
|
:id="computedId"
|
|
24
17
|
:value="value"
|
|
@@ -27,7 +20,7 @@
|
|
|
27
20
|
tabindex="-1"
|
|
28
21
|
:disabled="disabled"
|
|
29
22
|
:style="cssSvgVars"
|
|
30
|
-
|
|
23
|
+
/>
|
|
31
24
|
<svg
|
|
32
25
|
class="check"
|
|
33
26
|
:class="{ active: isTrue }"
|
|
@@ -56,21 +49,13 @@
|
|
|
56
49
|
/>
|
|
57
50
|
</svg>
|
|
58
51
|
</span>
|
|
59
|
-
<span
|
|
60
|
-
v-if="hasLabel"
|
|
61
|
-
class="checkbox-label"
|
|
62
|
-
:for="computedId"
|
|
63
|
-
>
|
|
52
|
+
<span v-if="hasLabel" class="checkbox-label" :for="computedId">
|
|
64
53
|
<slot>
|
|
65
54
|
{{ label }}
|
|
66
55
|
</slot>
|
|
67
56
|
</span>
|
|
68
57
|
</label>
|
|
69
|
-
<div
|
|
70
|
-
v-if="hasSubLabel"
|
|
71
|
-
:style="subLabelStyle"
|
|
72
|
-
class="sub-text"
|
|
73
|
-
>
|
|
58
|
+
<div v-if="hasSubLabel" :style="subLabelStyle" class="sub-text">
|
|
74
59
|
<slot name="sub-label">
|
|
75
60
|
<span>{{ subLabel }}</span>
|
|
76
61
|
</slot>
|
|
@@ -93,7 +78,7 @@ export default defineComponent({
|
|
|
93
78
|
event: 'update:model-value'
|
|
94
79
|
},
|
|
95
80
|
props: {
|
|
96
|
-
color: { type: String, default: '
|
|
81
|
+
color: { type: String, default: 'dell-blue-500' },
|
|
97
82
|
disabled: { type: Boolean, default: false },
|
|
98
83
|
id: { type: [String, Number], default: null },
|
|
99
84
|
modelValue: { type: ValueTypes, required: false, default: null },
|
|
@@ -174,9 +159,9 @@ export default defineComponent({
|
|
|
174
159
|
methods: {
|
|
175
160
|
getCurrentColor() {
|
|
176
161
|
if (this.disabled) {
|
|
177
|
-
return 'var(--
|
|
162
|
+
return 'var(--dell-gray-500)'
|
|
178
163
|
}
|
|
179
|
-
return getColor(this.color, '
|
|
164
|
+
return getColor(this.color, 'dell-blue-500')
|
|
180
165
|
},
|
|
181
166
|
onClick(e: Event) {
|
|
182
167
|
if (e) {
|
|
@@ -1,13 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div
|
|
3
|
-
:id="uuid"
|
|
4
|
-
class="link-wrapper"
|
|
5
|
-
>
|
|
2
|
+
<div :id="uuid" class="link-wrapper">
|
|
6
3
|
<a
|
|
7
4
|
:href="link"
|
|
8
5
|
:target="target"
|
|
9
6
|
:rel="rel"
|
|
10
|
-
:style="
|
|
7
|
+
:style="linkStyles"
|
|
11
8
|
:class="`${disabled ? 'disabled' : ''}`"
|
|
12
9
|
@click="$emit('click')"
|
|
13
10
|
>
|
|
@@ -28,7 +25,8 @@ export default defineComponent({
|
|
|
28
25
|
newtab: { required: false, default: false, type: Boolean },
|
|
29
26
|
external: { required: false, default: false, type: Boolean },
|
|
30
27
|
disabled: { required: false, default: false, type: Boolean },
|
|
31
|
-
color: { required: false, type: String, default: null }
|
|
28
|
+
color: { required: false, type: String, default: null },
|
|
29
|
+
hoverColor: { required: false, type: String, default: null }
|
|
32
30
|
},
|
|
33
31
|
data() {
|
|
34
32
|
return {
|
|
@@ -44,8 +42,13 @@ export default defineComponent({
|
|
|
44
42
|
? `${this.href}`
|
|
45
43
|
: `${window.origin}/${this.href}`
|
|
46
44
|
},
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
linkStyles(): Record<string, string> {
|
|
46
|
+
const textColor = this.color ?? 'dl-color-studio-secondary'
|
|
47
|
+
const hoverTextColor = this.hoverColor ?? textColor
|
|
48
|
+
return {
|
|
49
|
+
'--link-color': `var(--${textColor})`,
|
|
50
|
+
'--link-hover-color': `var(--${hoverTextColor})`
|
|
51
|
+
}
|
|
49
52
|
},
|
|
50
53
|
target(): string | null {
|
|
51
54
|
if (!this.href) {
|
|
@@ -68,16 +71,19 @@ export default defineComponent({
|
|
|
68
71
|
a {
|
|
69
72
|
text-decoration: none;
|
|
70
73
|
font-size: var(--dl-font-size-body);
|
|
74
|
+
color: var(--link-color) !important;
|
|
71
75
|
}
|
|
72
76
|
|
|
73
77
|
a:hover {
|
|
74
78
|
text-decoration: underline;
|
|
75
79
|
cursor: pointer;
|
|
80
|
+
color: var(--link-hover-color) !important;
|
|
76
81
|
}
|
|
77
82
|
|
|
78
83
|
.disabled {
|
|
79
84
|
pointer-events: none;
|
|
80
85
|
color: var(--dl-color-disabled) !important;
|
|
86
|
+
text-decoration: none !important;
|
|
81
87
|
}
|
|
82
88
|
|
|
83
89
|
.link-wrapper {
|