@carbon/charts-svelte 1.22.16 → 1.22.18

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +4 -2
  3. package/dist/AlluvialChart.svelte +6 -11
  4. package/dist/AlluvialChart.svelte.d.ts +34 -31
  5. package/dist/AreaChart.svelte +6 -11
  6. package/dist/AreaChart.svelte.d.ts +34 -31
  7. package/dist/BarChartGrouped.svelte +6 -11
  8. package/dist/BarChartGrouped.svelte.d.ts +34 -31
  9. package/dist/BarChartSimple.svelte +6 -11
  10. package/dist/BarChartSimple.svelte.d.ts +34 -31
  11. package/dist/BarChartStacked.svelte +6 -10
  12. package/dist/BarChartStacked.svelte.d.ts +34 -31
  13. package/dist/BaseChart.svelte +9 -24
  14. package/dist/BaseChart.svelte.d.ts +31 -35
  15. package/dist/BoxplotChart.svelte +6 -11
  16. package/dist/BoxplotChart.svelte.d.ts +34 -31
  17. package/dist/BubbleChart.svelte +6 -11
  18. package/dist/BubbleChart.svelte.d.ts +34 -31
  19. package/dist/BulletChart.svelte +6 -11
  20. package/dist/BulletChart.svelte.d.ts +34 -31
  21. package/dist/ChoroplethChart.svelte +6 -11
  22. package/dist/ChoroplethChart.svelte.d.ts +34 -31
  23. package/dist/CirclePackChart.svelte +6 -11
  24. package/dist/CirclePackChart.svelte.d.ts +34 -31
  25. package/dist/ComboChart.svelte +6 -11
  26. package/dist/ComboChart.svelte.d.ts +34 -31
  27. package/dist/DonutChart.svelte +6 -11
  28. package/dist/DonutChart.svelte.d.ts +34 -31
  29. package/dist/GaugeChart.svelte +6 -11
  30. package/dist/GaugeChart.svelte.d.ts +34 -31
  31. package/dist/HeatmapChart.svelte +6 -11
  32. package/dist/HeatmapChart.svelte.d.ts +34 -31
  33. package/dist/HistogramChart.svelte +6 -11
  34. package/dist/HistogramChart.svelte.d.ts +34 -31
  35. package/dist/LineChart.svelte +6 -11
  36. package/dist/LineChart.svelte.d.ts +34 -31
  37. package/dist/LollipopChart.svelte +6 -11
  38. package/dist/LollipopChart.svelte.d.ts +34 -31
  39. package/dist/MeterChart.svelte +6 -11
  40. package/dist/MeterChart.svelte.d.ts +34 -31
  41. package/dist/PieChart.svelte +6 -11
  42. package/dist/PieChart.svelte.d.ts +34 -31
  43. package/dist/RadarChart.svelte +6 -11
  44. package/dist/RadarChart.svelte.d.ts +34 -31
  45. package/dist/ScatterChart.svelte +6 -11
  46. package/dist/ScatterChart.svelte.d.ts +34 -31
  47. package/dist/StackedAreaChart.svelte +6 -11
  48. package/dist/StackedAreaChart.svelte.d.ts +34 -31
  49. package/dist/TreeChart.svelte +6 -11
  50. package/dist/TreeChart.svelte.d.ts +34 -31
  51. package/dist/TreemapChart.svelte +6 -11
  52. package/dist/TreemapChart.svelte.d.ts +34 -31
  53. package/dist/WordCloudChart.svelte +6 -12
  54. package/dist/WordCloudChart.svelte.d.ts +35 -31
  55. package/dist/index.d.ts +141 -36
  56. package/dist/index.js +109 -31
  57. package/dist/styles.css +4458 -4357
  58. package/dist/styles.min.css +6900 -1
  59. package/package.json +14 -10
@@ -1,32 +1,35 @@
1
- import { BoxplotChart as BoxplotChartCore, type BoxplotChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ BoxplotChart as BoxplotChartCore,
4
+ type BoxplotChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: BoxplotChartOptions
11
+ data: ChartTabularData
12
+ chart?: BoxplotChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const BoxplotChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: BoxplotChartOptions;
18
- data: ChartTabularData;
19
- chart?: BoxplotChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type BoxplotChart = InstanceType<typeof BoxplotChart>;
32
- export default BoxplotChart;
27
+ export type BoxplotChartProps = typeof __propDef.props
28
+ export type BoxplotChartEvents = typeof __propDef.events
29
+ export type BoxplotChartSlots = typeof __propDef.slots
30
+ export default class BoxplotChart extends SvelteComponentTyped<
31
+ BoxplotChartProps,
32
+ BoxplotChartEvents,
33
+ BoxplotChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- BubbleChart as BubbleChartCore,
4
- type BubbleChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { BubbleChart as BubbleChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: BubbleChartOptions
10
- export let data: ChartTabularData
11
- export let chart: BubbleChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart
@@ -1,32 +1,35 @@
1
- import { BubbleChart as BubbleChartCore, type BubbleChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ BubbleChart as BubbleChartCore,
4
+ type BubbleChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: BubbleChartOptions
11
+ data: ChartTabularData
12
+ chart?: BubbleChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const BubbleChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: BubbleChartOptions;
18
- data: ChartTabularData;
19
- chart?: BubbleChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type BubbleChart = InstanceType<typeof BubbleChart>;
32
- export default BubbleChart;
27
+ export type BubbleChartProps = typeof __propDef.props
28
+ export type BubbleChartEvents = typeof __propDef.events
29
+ export type BubbleChartSlots = typeof __propDef.slots
30
+ export default class BubbleChart extends SvelteComponentTyped<
31
+ BubbleChartProps,
32
+ BubbleChartEvents,
33
+ BubbleChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- BulletChart as BulletChartCore,
4
- type BulletChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { BulletChart as BulletChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: BulletChartOptions
10
- export let data: ChartTabularData
11
- export let chart: BulletChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart
@@ -1,32 +1,35 @@
1
- import { BulletChart as BulletChartCore, type BulletChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ BulletChart as BulletChartCore,
4
+ type BulletChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: BulletChartOptions
11
+ data: ChartTabularData
12
+ chart?: BulletChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const BulletChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: BulletChartOptions;
18
- data: ChartTabularData;
19
- chart?: BulletChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type BulletChart = InstanceType<typeof BulletChart>;
32
- export default BulletChart;
27
+ export type BulletChartProps = typeof __propDef.props
28
+ export type BulletChartEvents = typeof __propDef.events
29
+ export type BulletChartSlots = typeof __propDef.slots
30
+ export default class BulletChart extends SvelteComponentTyped<
31
+ BulletChartProps,
32
+ BulletChartEvents,
33
+ BulletChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- ChoroplethChart as ChoroplethChartCore,
4
- type ChoroplethChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { ChoroplethChart as ChoroplethChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: ChoroplethChartOptions
10
- export let data: ChartTabularData
11
- export let chart: ChoroplethChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart
@@ -1,32 +1,35 @@
1
- import { ChoroplethChart as ChoroplethChartCore, type ChoroplethChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ ChoroplethChart as ChoroplethChartCore,
4
+ type ChoroplethChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: ChoroplethChartOptions
11
+ data: ChartTabularData
12
+ chart?: ChoroplethChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const ChoroplethChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: ChoroplethChartOptions;
18
- data: ChartTabularData;
19
- chart?: ChoroplethChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type ChoroplethChart = InstanceType<typeof ChoroplethChart>;
32
- export default ChoroplethChart;
27
+ export type ChoroplethChartProps = typeof __propDef.props
28
+ export type ChoroplethChartEvents = typeof __propDef.events
29
+ export type ChoroplethChartSlots = typeof __propDef.slots
30
+ export default class ChoroplethChart extends SvelteComponentTyped<
31
+ ChoroplethChartProps,
32
+ ChoroplethChartEvents,
33
+ ChoroplethChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- CirclePackChart as CirclePackChartCore,
4
- type CirclePackChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { CirclePackChart as CirclePackChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: CirclePackChartOptions
10
- export let data: ChartTabularData
11
- export let chart: CirclePackChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart
@@ -1,32 +1,35 @@
1
- import { CirclePackChart as CirclePackChartCore, type CirclePackChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ CirclePackChart as CirclePackChartCore,
4
+ type CirclePackChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: CirclePackChartOptions
11
+ data: ChartTabularData
12
+ chart?: CirclePackChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const CirclePackChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: CirclePackChartOptions;
18
- data: ChartTabularData;
19
- chart?: CirclePackChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type CirclePackChart = InstanceType<typeof CirclePackChart>;
32
- export default CirclePackChart;
27
+ export type CirclePackChartProps = typeof __propDef.props
28
+ export type CirclePackChartEvents = typeof __propDef.events
29
+ export type CirclePackChartSlots = typeof __propDef.slots
30
+ export default class CirclePackChart extends SvelteComponentTyped<
31
+ CirclePackChartProps,
32
+ CirclePackChartEvents,
33
+ CirclePackChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- ComboChart as ComboChartCore,
4
- type ComboChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { ComboChart as ComboChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: ComboChartOptions
10
- export let data: ChartTabularData
11
- export let chart: ComboChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart
@@ -1,32 +1,35 @@
1
- import { ComboChart as ComboChartCore, type ComboChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ ComboChart as ComboChartCore,
4
+ type ComboChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: ComboChartOptions
11
+ data: ChartTabularData
12
+ chart?: ComboChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const ComboChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: ComboChartOptions;
18
- data: ChartTabularData;
19
- chart?: ComboChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type ComboChart = InstanceType<typeof ComboChart>;
32
- export default ComboChart;
27
+ export type ComboChartProps = typeof __propDef.props
28
+ export type ComboChartEvents = typeof __propDef.events
29
+ export type ComboChartSlots = typeof __propDef.slots
30
+ export default class ComboChart extends SvelteComponentTyped<
31
+ ComboChartProps,
32
+ ComboChartEvents,
33
+ ComboChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- DonutChart as DonutChartCore,
4
- type DonutChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { DonutChart as DonutChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: DonutChartOptions
10
- export let data: ChartTabularData
11
- export let chart: DonutChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart
@@ -1,32 +1,35 @@
1
- import { DonutChart as DonutChartCore, type DonutChartOptions, type ChartTabularData } from '@carbon/charts';
2
- interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
3
- new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
4
- $$bindings?: Bindings;
5
- } & Exports;
6
- (internal: unknown, props: Props & {
7
- $$events?: Events;
8
- $$slots?: Slots;
9
- }): Exports & {
10
- $set?: any;
11
- $on?: any;
12
- };
13
- z_$$bindings?: Bindings;
1
+ import { SvelteComponentTyped } from 'svelte'
2
+ import {
3
+ DonutChart as DonutChartCore,
4
+ type DonutChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ declare const __propDef: {
8
+ props: {
9
+ [x: string]: any
10
+ options: DonutChartOptions
11
+ data: ChartTabularData
12
+ chart?: DonutChartCore | undefined
13
+ ref?: HTMLDivElement | undefined
14
+ }
15
+ events: {
16
+ load: CustomEvent<null>
17
+ update: CustomEvent<{
18
+ data: ChartTabularData
19
+ options: import('@carbon/charts').BaseChartOptions
20
+ }>
21
+ destroy: CustomEvent<null>
22
+ } & {
23
+ [evt: string]: CustomEvent<any>
24
+ }
25
+ slots: {}
14
26
  }
15
- declare const DonutChart: $$__sveltets_2_IsomorphicComponent<{
16
- [x: string]: any;
17
- options: DonutChartOptions;
18
- data: ChartTabularData;
19
- chart?: DonutChartCore | undefined;
20
- ref?: HTMLDivElement | undefined;
21
- }, {
22
- load: CustomEvent<null>;
23
- update: CustomEvent<{
24
- data: ChartTabularData;
25
- options: import("@carbon/charts").BaseChartOptions;
26
- }>;
27
- destroy: CustomEvent<null>;
28
- } & {
29
- [evt: string]: CustomEvent<any>;
30
- }, {}, {}, string>;
31
- type DonutChart = InstanceType<typeof DonutChart>;
32
- export default DonutChart;
27
+ export type DonutChartProps = typeof __propDef.props
28
+ export type DonutChartEvents = typeof __propDef.events
29
+ export type DonutChartSlots = typeof __propDef.slots
30
+ export default class DonutChart extends SvelteComponentTyped<
31
+ DonutChartProps,
32
+ DonutChartEvents,
33
+ DonutChartSlots
34
+ > {}
35
+ export {}
@@ -1,15 +1,10 @@
1
- <script lang="ts">
2
- import {
3
- GaugeChart as GaugeChartCore,
4
- type GaugeChartOptions,
5
- type ChartTabularData
6
- } from '@carbon/charts'
1
+ <script>
2
+ import { GaugeChart as GaugeChartCore } from '@carbon/charts'
7
3
  import BaseChart from './BaseChart.svelte'
8
-
9
- export let options: GaugeChartOptions
10
- export let data: ChartTabularData
11
- export let chart: GaugeChartCore | undefined = undefined
12
- export let ref: HTMLDivElement | undefined = undefined
4
+ export let options
5
+ export let data
6
+ export let chart = undefined
7
+ export let ref = undefined
13
8
  </script>
14
9
 
15
10
  <BaseChart