@dataloop-ai/components 0.19.276 → 0.19.277

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.276",
3
+ "version": "0.19.277",
4
4
  "exports": {
5
5
  ".": "./index.ts",
6
6
  "./models": "./models.ts",
@@ -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
  <Bar
@@ -25,6 +13,7 @@
25
13
  :style="(chartStyles, `max-height: ${wrapperHeight}`)"
26
14
  :data="chartData"
27
15
  :options="chartOptions"
16
+ :plugins="chartPlugins"
28
17
  @mouseout="onChartLeave"
29
18
  />
30
19
  <slot
@@ -484,6 +473,8 @@ export default defineComponent({
484
473
  )
485
474
  )
486
475
 
476
+ const chartPlugins = props.plugins || []
477
+
487
478
  watch(
488
479
  () => chart.value?.scales?.x?.width,
489
480
  (val: string) => {
@@ -627,6 +618,7 @@ export default defineComponent({
627
618
  variables,
628
619
  chartData,
629
620
  chartOptions,
621
+ chartPlugins,
630
622
  brush,
631
623
  xLabels,
632
624
  columnChart,