@dataloop-ai/components 0.19.83 → 0.19.85
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
|
@@ -81,7 +81,8 @@ export default defineComponent({
|
|
|
81
81
|
.avatar {
|
|
82
82
|
width: var(--dl-avatar-size);
|
|
83
83
|
height: var(--dl-avatar-size);
|
|
84
|
-
|
|
84
|
+
// important needed for vue2 ordering with table conflict
|
|
85
|
+
border-radius: 50% !important;
|
|
85
86
|
user-select: none;
|
|
86
87
|
overflow: hidden;
|
|
87
88
|
color: var(--dl-avatar-text-color);
|
|
@@ -187,7 +187,7 @@ export default defineComponent({
|
|
|
187
187
|
from: CustomDate.subtract(7, 'day')
|
|
188
188
|
.startOf('day')
|
|
189
189
|
.toDate(),
|
|
190
|
-
to: today
|
|
190
|
+
to: new CustomDate(today).endOf('day').toDate()
|
|
191
191
|
}
|
|
192
192
|
},
|
|
193
193
|
{
|
|
@@ -197,7 +197,7 @@ export default defineComponent({
|
|
|
197
197
|
from: CustomDate.subtract(14, 'day')
|
|
198
198
|
.startOf('day')
|
|
199
199
|
.toDate(),
|
|
200
|
-
to: today
|
|
200
|
+
to: new CustomDate(today).endOf('day').toDate()
|
|
201
201
|
}
|
|
202
202
|
},
|
|
203
203
|
{
|
|
@@ -207,7 +207,7 @@ export default defineComponent({
|
|
|
207
207
|
from: CustomDate.subtract(1, 'months')
|
|
208
208
|
.startOf('day')
|
|
209
209
|
.toDate(),
|
|
210
|
-
to: today
|
|
210
|
+
to: new CustomDate(today).endOf('day').toDate()
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
{ title: 'custom by day', key: DAY_SIDEBAR_OPTION.custom },
|
|
@@ -235,7 +235,10 @@ export default defineComponent({
|
|
|
235
235
|
{
|
|
236
236
|
title: 'this month',
|
|
237
237
|
key: MONTH_SIDEBAR_OPTION.this_month,
|
|
238
|
-
value: {
|
|
238
|
+
value: {
|
|
239
|
+
from: thisMonth,
|
|
240
|
+
to: new CustomDate(today).endOf('day').toDate()
|
|
241
|
+
}
|
|
239
242
|
},
|
|
240
243
|
{
|
|
241
244
|
title: 'last month',
|
|
@@ -47,7 +47,7 @@ export const replaceDateInterval = (str: string, date: DateInterval) => {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
const formatDate = (date: Date | string | number): string => {
|
|
50
|
-
return moment
|
|
50
|
+
return moment(date).format('DD/MM/YYYY')
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
const replaceFirstOrLastOccurrence = (
|
|
@@ -115,7 +115,7 @@ export function replaceStringifiedDatesWithJSDates(str: string) {
|
|
|
115
115
|
|
|
116
116
|
export function formatToNumericDate(str: string) {
|
|
117
117
|
const dateString = str.replace(/['"\(\)]+/g, '')
|
|
118
|
-
const newDate = moment
|
|
118
|
+
const newDate = moment(dateString, 'DD/MM/YYYY')
|
|
119
119
|
const ms = newDate.toDate().getTime()
|
|
120
120
|
return ms
|
|
121
121
|
}
|