@dataloop-ai/components 0.20.287 → 0.20.289

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/.nvmrc CHANGED
@@ -1 +1 @@
1
- v20.11.0
1
+ v24.22.1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dataloop-ai/components",
3
- "version": "0.20.287",
3
+ "version": "0.20.289",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -23,7 +23,7 @@
23
23
  "check-only": "node misc/check-only.js"
24
24
  },
25
25
  "dependencies": {
26
- "@dataloop-ai/icons": "^3.1.115",
26
+ "@dataloop-ai/icons": "^3.1.119",
27
27
  "@monaco-editor/loader": "^1.4.0",
28
28
  "@types/flat": "^5.0.2",
29
29
  "@types/lodash": "^4.14.184",
@@ -175,7 +175,7 @@ export default defineComponent({
175
175
  ...CommonProps,
176
176
  ...ColumnChartProps
177
177
  } as { [key: string]: any },
178
- setup(props) {
178
+ setup(props: Record<string, any>) {
179
179
  const { variables } = useThemeVariables()
180
180
 
181
181
  const chartWidth = ref('100%')
@@ -99,7 +99,7 @@ import DlEmptyState from '../../../../basic/DlEmptyState/DlEmptyState.vue'
99
99
  import { DlEmptyStateProps } from '../../../../basic/DlEmptyState/types'
100
100
 
101
101
  type SetupParams = {
102
- attrs: { onItemClick?: (index: number) => void }
102
+ attrs: { onItemClick?: (index: number) => void; [key: string]: unknown }
103
103
  listeners?: { itemClick?: (index: number) => void }
104
104
  }
105
105
 
@@ -1,20 +1,8 @@
1
1
  <template>
2
- <div
3
- :style="cssVars"
4
- :class="chartWrapperClasses"
5
- >
6
- <dl-empty-state
7
- v-if="isEmpty"
8
- v-bind="emptyStateProps"
9
- >
10
- <template
11
- v-for="(_, slot) in $slots"
12
- #[slot]="props"
13
- >
14
- <slot
15
- :name="slot"
16
- v-bind="props"
17
- />
2
+ <div :style="cssVars" :class="chartWrapperClasses">
3
+ <dl-empty-state v-if="isEmpty" v-bind="emptyStateProps">
4
+ <template v-for="(_, slot) in $slots" #[slot]="props">
5
+ <slot :name="slot" v-bind="props" />
18
6
  </template>
19
7
  </dl-empty-state>
20
8
  <DlLine
@@ -186,7 +174,7 @@ export default defineComponent({
186
174
  ...CommonProps,
187
175
  ...ColumnChartProps
188
176
  } as { [key: string]: any },
189
- setup(props) {
177
+ setup(props: Record<string, any>) {
190
178
  const { variables } = useThemeVariables()
191
179
  const {
192
180
  data,
@@ -1,20 +1,8 @@
1
1
  <template>
2
- <div
3
- :style="cssVars"
4
- :class="chartWrapperClasses"
5
- >
6
- <dl-empty-state
7
- v-if="isEmpty"
8
- v-bind="emptyStateProps"
9
- >
10
- <template
11
- v-for="(_, slot) in $slots"
12
- #[slot]="props"
13
- >
14
- <slot
15
- :name="slot"
16
- v-bind="props"
17
- />
2
+ <div :style="cssVars" :class="chartWrapperClasses">
3
+ <dl-empty-state v-if="isEmpty" v-bind="emptyStateProps">
4
+ <template v-for="(_, slot) in $slots" #[slot]="props">
5
+ <slot :name="slot" v-bind="props" />
18
6
  </template>
19
7
  </dl-empty-state>
20
8
  <DLScatter
@@ -178,7 +166,7 @@ export default defineComponent({
178
166
  ...CommonProps,
179
167
  ...ColumnChartProps
180
168
  } as { [key: string]: any },
181
- setup(props) {
169
+ setup(props: Record<string, any>) {
182
170
  const { variables } = useThemeVariables()
183
171
  const {
184
172
  data,
@@ -189,8 +189,12 @@ export default defineComponent({
189
189
  this.calendarTo.activeDate = cDateTo
190
190
 
191
191
  if (this.activeDateFrom && this.activeDateTo) {
192
- this.calendarFrom.activeDate = new CalendarDate(this.activeDateFrom)
193
- this.calendarTo.activeDate = new CalendarDate(this.activeDateTo)
192
+ this.calendarFrom.activeDate = new CalendarDate(
193
+ this.activeDateFrom as CalendarDate
194
+ )
195
+ this.calendarTo.activeDate = new CalendarDate(
196
+ this.activeDateTo as CalendarDate
197
+ )
194
198
  }
195
199
  },
196
200
  beforeUnmount() {