@dataloop-ai/components 0.19.84 → 0.19.86

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.19.84",
3
+ "version": "0.19.86",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -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: { from: thisMonth, to: today }
238
+ value: {
239
+ from: thisMonth,
240
+ to: new CustomDate(today).endOf('day').toDate()
241
+ }
239
242
  },
240
243
  {
241
244
  title: 'last month',
@@ -46,5 +46,6 @@ export default defineComponent({
46
46
  height: 100%;
47
47
  min-width: min-content;
48
48
  overflow-y: scroll;
49
+ align-items: center;
49
50
  }
50
51
  </style>
@@ -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.utc(date).format('DD/MM/YYYY')
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.utc(dateString, 'DD/MM/YYYY')
118
+ const newDate = moment(dateString, 'DD/MM/YYYY')
119
119
  const ms = newDate.toDate().getTime()
120
120
  return ms
121
121
  }
@@ -1114,7 +1114,7 @@ export default defineComponent({
1114
1114
  */
1115
1115
  selectedRowsLabel: {
1116
1116
  type: Function,
1117
- default: (val: number) => `${val} records selected`
1117
+ default: (val: number) => null
1118
1118
  },
1119
1119
  /**
1120
1120
  * Label visible when loading is active
@@ -276,7 +276,6 @@
276
276
  line-height: 14px;
277
277
 
278
278
  .dl-table__control {
279
- width: 100%;
280
279
  min-height: 24px;
281
280
  }
282
281
  }