@dataloop-ai/components 0.19.40 → 0.19.42
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
CHANGED
|
@@ -195,11 +195,11 @@ export default defineComponent({
|
|
|
195
195
|
updateModelValue(value: DateInterval) {
|
|
196
196
|
if (this.disabled) return
|
|
197
197
|
const valueToUse = value
|
|
198
|
-
if (value
|
|
199
|
-
if (this.type === 'day')
|
|
200
|
-
valueToUse.to = moment(value.
|
|
201
|
-
else {
|
|
202
|
-
valueToUse.to = moment(value.
|
|
198
|
+
if (value) {
|
|
199
|
+
if (this.type === 'day') {
|
|
200
|
+
valueToUse.to = moment(value.to).endOf('day').toDate()
|
|
201
|
+
} else {
|
|
202
|
+
valueToUse.to = moment(value.to).endOf('month').toDate()
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
this.$emit('update:model-value', valueToUse)
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="dl-pagination--legend">
|
|
3
|
-
|
|
4
|
-
}}<span v-if="total"> of {{ total }} {{ itemsName }} </span></span>
|
|
3
|
+
{{ paginationContent }}
|
|
5
4
|
</div>
|
|
6
5
|
</template>
|
|
7
6
|
|
|
@@ -27,6 +26,14 @@ export default defineComponent({
|
|
|
27
26
|
type: String,
|
|
28
27
|
default: 'rows'
|
|
29
28
|
}
|
|
29
|
+
},
|
|
30
|
+
computed: {
|
|
31
|
+
paginationContent() {
|
|
32
|
+
return (
|
|
33
|
+
`Showing ${this.from}-${this.to}` +
|
|
34
|
+
(this.total ? ` of ${this.total} ${this.itemsName}` : '')
|
|
35
|
+
)
|
|
36
|
+
}
|
|
30
37
|
}
|
|
31
38
|
})
|
|
32
39
|
</script>
|
|
@@ -36,5 +43,8 @@ export default defineComponent({
|
|
|
36
43
|
justify-content: flex-end;
|
|
37
44
|
display: flex;
|
|
38
45
|
color: var(--dl-color-lighter);
|
|
46
|
+
height: 100%;
|
|
47
|
+
min-width: min-content;
|
|
48
|
+
overflow-y: scroll;
|
|
39
49
|
}
|
|
40
50
|
</style>
|
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div style="align-items: stretch">
|
|
3
|
-
<div
|
|
3
|
+
<div>
|
|
4
4
|
<dl-input
|
|
5
5
|
v-model="rowsPerPage"
|
|
6
|
+
width="100px"
|
|
6
7
|
title="rowsPerPage"
|
|
7
8
|
/>
|
|
8
9
|
<dl-input
|
|
9
10
|
v-model="total"
|
|
11
|
+
width="100px"
|
|
10
12
|
title="total items"
|
|
11
13
|
/>
|
|
12
14
|
<dl-input
|
|
13
15
|
v-model="max"
|
|
16
|
+
width="100px"
|
|
14
17
|
title="max"
|
|
15
18
|
/>
|
|
16
19
|
<dl-input
|
|
17
20
|
v-model="maxDisplayRange"
|
|
21
|
+
width="100px"
|
|
18
22
|
title="maxDisplayRange"
|
|
19
23
|
/>
|
|
20
24
|
<dl-input
|
|
21
25
|
v-model="itemsName"
|
|
26
|
+
width="100px"
|
|
22
27
|
title="itemsName"
|
|
23
28
|
/>
|
|
24
29
|
</div>
|
|
@@ -106,7 +111,7 @@ export default defineComponent({
|
|
|
106
111
|
boundaryNumbers: true,
|
|
107
112
|
boundaryLinks: true,
|
|
108
113
|
directionLinks: true,
|
|
109
|
-
total:
|
|
114
|
+
total: 999,
|
|
110
115
|
withQuickNavigation: true,
|
|
111
116
|
disabled: false,
|
|
112
117
|
itemsName: 'Rows',
|