@carbon/charts-svelte 1.22.0 → 1.22.3

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 (60) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/README.md +3 -2
  3. package/dist/AlluvialChart.svelte +12 -8
  4. package/dist/AlluvialChart.svelte.d.ts +29 -27
  5. package/dist/AreaChart.svelte +12 -8
  6. package/dist/AreaChart.svelte.d.ts +29 -27
  7. package/dist/BarChartGrouped.svelte +12 -8
  8. package/dist/BarChartGrouped.svelte.d.ts +29 -27
  9. package/dist/BarChartSimple.svelte +12 -8
  10. package/dist/BarChartSimple.svelte.d.ts +29 -27
  11. package/dist/BarChartStacked.svelte +11 -8
  12. package/dist/BarChartStacked.svelte.d.ts +29 -27
  13. package/dist/BaseChart.svelte +54 -37
  14. package/dist/BaseChart.svelte.d.ts +14 -7
  15. package/dist/BoxplotChart.svelte +12 -8
  16. package/dist/BoxplotChart.svelte.d.ts +29 -27
  17. package/dist/BubbleChart.svelte +12 -8
  18. package/dist/BubbleChart.svelte.d.ts +29 -27
  19. package/dist/BulletChart.svelte +12 -8
  20. package/dist/BulletChart.svelte.d.ts +29 -27
  21. package/dist/ChoroplethChart.svelte +12 -8
  22. package/dist/ChoroplethChart.svelte.d.ts +29 -27
  23. package/dist/CirclePackChart.svelte +12 -8
  24. package/dist/CirclePackChart.svelte.d.ts +29 -27
  25. package/dist/ComboChart.svelte +12 -8
  26. package/dist/ComboChart.svelte.d.ts +29 -27
  27. package/dist/DonutChart.svelte +12 -8
  28. package/dist/DonutChart.svelte.d.ts +29 -27
  29. package/dist/GaugeChart.svelte +12 -8
  30. package/dist/GaugeChart.svelte.d.ts +29 -27
  31. package/dist/HeatmapChart.svelte +12 -8
  32. package/dist/HeatmapChart.svelte.d.ts +29 -27
  33. package/dist/HistogramChart.svelte +12 -8
  34. package/dist/HistogramChart.svelte.d.ts +29 -27
  35. package/dist/LineChart.svelte +12 -8
  36. package/dist/LineChart.svelte.d.ts +29 -27
  37. package/dist/LollipopChart.svelte +12 -8
  38. package/dist/LollipopChart.svelte.d.ts +29 -27
  39. package/dist/MeterChart.svelte +12 -8
  40. package/dist/MeterChart.svelte.d.ts +29 -27
  41. package/dist/PieChart.svelte +12 -8
  42. package/dist/PieChart.svelte.d.ts +29 -27
  43. package/dist/RadarChart.svelte +12 -8
  44. package/dist/RadarChart.svelte.d.ts +29 -27
  45. package/dist/ScatterChart.svelte +12 -8
  46. package/dist/ScatterChart.svelte.d.ts +29 -27
  47. package/dist/StackedAreaChart.svelte +12 -8
  48. package/dist/StackedAreaChart.svelte.d.ts +29 -27
  49. package/dist/TreeChart.svelte +12 -8
  50. package/dist/TreeChart.svelte.d.ts +29 -27
  51. package/dist/TreemapChart.svelte +12 -8
  52. package/dist/TreemapChart.svelte.d.ts +29 -27
  53. package/dist/WordCloudChart.svelte +13 -8
  54. package/dist/WordCloudChart.svelte.d.ts +29 -27
  55. package/dist/styles.css +294 -288
  56. package/dist/styles.css.map +1 -1
  57. package/dist/styles.min.css +1 -1
  58. package/dist/styles.min.css.map +1 -1
  59. package/package.json +17 -17
  60. package/telemetry.yml +1 -1
@@ -1,30 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import { ScatterChart as ScatterChartCore, type ScatterChartOptions, type ChartTabularData } from '@carbon/charts';
3
- declare const __propDef: {
4
- props: {
5
- [x: string]: any;
6
- options: ScatterChartOptions;
7
- data: ChartTabularData;
8
- chart?: ScatterChartCore | undefined;
9
- ref?: HTMLDivElement | undefined;
10
- };
11
- events: {
12
- load: CustomEvent<null>;
13
- update: CustomEvent<{
14
- data: ChartTabularData;
15
- options: import("@carbon/charts").BaseChartOptions;
16
- }>;
17
- destroy: CustomEvent<null>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
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;
20
12
  };
21
- slots: {};
22
- exports?: undefined;
23
- bindings?: undefined;
24
- };
25
- export type ScatterChartProps = typeof __propDef.props;
26
- export type ScatterChartEvents = typeof __propDef.events;
27
- export type ScatterChartSlots = typeof __propDef.slots;
28
- export default class ScatterChart extends SvelteComponent<ScatterChartProps, ScatterChartEvents, ScatterChartSlots> {
13
+ z_$$bindings?: Bindings;
29
14
  }
30
- export {};
15
+ declare const ScatterChart: $$__sveltets_2_IsomorphicComponent<{
16
+ [x: string]: any;
17
+ options: ScatterChartOptions;
18
+ data: ChartTabularData;
19
+ chart?: ScatterChartCore | 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 ScatterChart = InstanceType<typeof ScatterChart>;
32
+ export default ScatterChart;
@@ -1,11 +1,15 @@
1
- <script>import {
2
- StackedAreaChart as StackedAreaChartCore
3
- } from "@carbon/charts";
4
- import BaseChart from "./BaseChart.svelte";
5
- export let options;
6
- export let data;
7
- export let chart = void 0;
8
- export let ref = void 0;
1
+ <script lang="ts">
2
+ import {
3
+ StackedAreaChart as StackedAreaChartCore,
4
+ type StackedAreaChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ import BaseChart from './BaseChart.svelte'
8
+
9
+ export let options: StackedAreaChartOptions
10
+ export let data: ChartTabularData
11
+ export let chart: StackedAreaChartCore | undefined = undefined
12
+ export let ref: HTMLDivElement | undefined = undefined
9
13
  </script>
10
14
 
11
15
  <BaseChart
@@ -1,30 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import { StackedAreaChart as StackedAreaChartCore, type StackedAreaChartOptions, type ChartTabularData } from '@carbon/charts';
3
- declare const __propDef: {
4
- props: {
5
- [x: string]: any;
6
- options: StackedAreaChartOptions;
7
- data: ChartTabularData;
8
- chart?: StackedAreaChartCore | undefined;
9
- ref?: HTMLDivElement | undefined;
10
- };
11
- events: {
12
- load: CustomEvent<null>;
13
- update: CustomEvent<{
14
- data: ChartTabularData;
15
- options: import("@carbon/charts").BaseChartOptions;
16
- }>;
17
- destroy: CustomEvent<null>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
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;
20
12
  };
21
- slots: {};
22
- exports?: undefined;
23
- bindings?: undefined;
24
- };
25
- export type StackedAreaChartProps = typeof __propDef.props;
26
- export type StackedAreaChartEvents = typeof __propDef.events;
27
- export type StackedAreaChartSlots = typeof __propDef.slots;
28
- export default class StackedAreaChart extends SvelteComponent<StackedAreaChartProps, StackedAreaChartEvents, StackedAreaChartSlots> {
13
+ z_$$bindings?: Bindings;
29
14
  }
30
- export {};
15
+ declare const StackedAreaChart: $$__sveltets_2_IsomorphicComponent<{
16
+ [x: string]: any;
17
+ options: StackedAreaChartOptions;
18
+ data: ChartTabularData;
19
+ chart?: StackedAreaChartCore | 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 StackedAreaChart = InstanceType<typeof StackedAreaChart>;
32
+ export default StackedAreaChart;
@@ -1,11 +1,15 @@
1
- <script>import {
2
- TreeChart as TreeChartCore
3
- } from "@carbon/charts";
4
- import BaseChart from "./BaseChart.svelte";
5
- export let options;
6
- export let data;
7
- export let chart = void 0;
8
- export let ref = void 0;
1
+ <script lang="ts">
2
+ import {
3
+ TreeChart as TreeChartCore,
4
+ type TreeChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ import BaseChart from './BaseChart.svelte'
8
+
9
+ export let options: TreeChartOptions
10
+ export let data: ChartTabularData
11
+ export let chart: TreeChartCore | undefined = undefined
12
+ export let ref: HTMLDivElement | undefined = undefined
9
13
  </script>
10
14
 
11
15
  <BaseChart
@@ -1,30 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import { TreeChart as TreeChartCore, type TreeChartOptions, type ChartTabularData } from '@carbon/charts';
3
- declare const __propDef: {
4
- props: {
5
- [x: string]: any;
6
- options: TreeChartOptions;
7
- data: ChartTabularData;
8
- chart?: TreeChartCore | undefined;
9
- ref?: HTMLDivElement | undefined;
10
- };
11
- events: {
12
- load: CustomEvent<null>;
13
- update: CustomEvent<{
14
- data: ChartTabularData;
15
- options: import("@carbon/charts").BaseChartOptions;
16
- }>;
17
- destroy: CustomEvent<null>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
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;
20
12
  };
21
- slots: {};
22
- exports?: undefined;
23
- bindings?: undefined;
24
- };
25
- export type TreeChartProps = typeof __propDef.props;
26
- export type TreeChartEvents = typeof __propDef.events;
27
- export type TreeChartSlots = typeof __propDef.slots;
28
- export default class TreeChart extends SvelteComponent<TreeChartProps, TreeChartEvents, TreeChartSlots> {
13
+ z_$$bindings?: Bindings;
29
14
  }
30
- export {};
15
+ declare const TreeChart: $$__sveltets_2_IsomorphicComponent<{
16
+ [x: string]: any;
17
+ options: TreeChartOptions;
18
+ data: ChartTabularData;
19
+ chart?: TreeChartCore | 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 TreeChart = InstanceType<typeof TreeChart>;
32
+ export default TreeChart;
@@ -1,11 +1,15 @@
1
- <script>import {
2
- TreemapChart as TreemapChartCore
3
- } from "@carbon/charts";
4
- import BaseChart from "./BaseChart.svelte";
5
- export let options;
6
- export let data;
7
- export let chart = void 0;
8
- export let ref = void 0;
1
+ <script lang="ts">
2
+ import {
3
+ TreemapChart as TreemapChartCore,
4
+ type TreemapChartOptions,
5
+ type ChartTabularData
6
+ } from '@carbon/charts'
7
+ import BaseChart from './BaseChart.svelte'
8
+
9
+ export let options: TreemapChartOptions
10
+ export let data: ChartTabularData
11
+ export let chart: TreemapChartCore | undefined = undefined
12
+ export let ref: HTMLDivElement | undefined = undefined
9
13
  </script>
10
14
 
11
15
  <BaseChart
@@ -1,30 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import { TreemapChart as TreemapChartCore, type TreemapChartOptions, type ChartTabularData } from '@carbon/charts';
3
- declare const __propDef: {
4
- props: {
5
- [x: string]: any;
6
- options: TreemapChartOptions;
7
- data: ChartTabularData;
8
- chart?: TreemapChartCore | undefined;
9
- ref?: HTMLDivElement | undefined;
10
- };
11
- events: {
12
- load: CustomEvent<null>;
13
- update: CustomEvent<{
14
- data: ChartTabularData;
15
- options: import("@carbon/charts").BaseChartOptions;
16
- }>;
17
- destroy: CustomEvent<null>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
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;
20
12
  };
21
- slots: {};
22
- exports?: undefined;
23
- bindings?: undefined;
24
- };
25
- export type TreemapChartProps = typeof __propDef.props;
26
- export type TreemapChartEvents = typeof __propDef.events;
27
- export type TreemapChartSlots = typeof __propDef.slots;
28
- export default class TreemapChart extends SvelteComponent<TreemapChartProps, TreemapChartEvents, TreemapChartSlots> {
13
+ z_$$bindings?: Bindings;
29
14
  }
30
- export {};
15
+ declare const TreemapChart: $$__sveltets_2_IsomorphicComponent<{
16
+ [x: string]: any;
17
+ options: TreemapChartOptions;
18
+ data: ChartTabularData;
19
+ chart?: TreemapChartCore | 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 TreemapChart = InstanceType<typeof TreemapChart>;
32
+ export default TreemapChart;
@@ -1,11 +1,16 @@
1
- <script>import {
2
- WordCloudChart as WordCloudChartCore
3
- } from "@carbon/charts";
4
- import BaseChart from "./BaseChart.svelte";
5
- export let options;
6
- export let data;
7
- export let chart = void 0;
8
- export let ref = void 0;
1
+ <script lang="ts">
2
+ import {
3
+ WordCloudChart as WordCloudChartCore,
4
+ type WordCloudChartOptions,
5
+ type WorldCloudChartOptions,
6
+ type ChartTabularData
7
+ } from '@carbon/charts'
8
+ import BaseChart from './BaseChart.svelte'
9
+
10
+ export let options: WordCloudChartOptions | WorldCloudChartOptions
11
+ export let data: ChartTabularData
12
+ export let chart: WordCloudChartCore | undefined = undefined
13
+ export let ref: HTMLDivElement | undefined = undefined
9
14
  </script>
10
15
 
11
16
  <BaseChart
@@ -1,30 +1,32 @@
1
- import { SvelteComponent } from "svelte";
2
1
  import { WordCloudChart as WordCloudChartCore, type WordCloudChartOptions, type WorldCloudChartOptions, type ChartTabularData } from '@carbon/charts';
3
- declare const __propDef: {
4
- props: {
5
- [x: string]: any;
6
- options: WordCloudChartOptions | WorldCloudChartOptions;
7
- data: ChartTabularData;
8
- chart?: WordCloudChartCore | undefined;
9
- ref?: HTMLDivElement | undefined;
10
- };
11
- events: {
12
- load: CustomEvent<null>;
13
- update: CustomEvent<{
14
- data: ChartTabularData;
15
- options: import("@carbon/charts").BaseChartOptions;
16
- }>;
17
- destroy: CustomEvent<null>;
18
- } & {
19
- [evt: string]: CustomEvent<any>;
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;
20
12
  };
21
- slots: {};
22
- exports?: undefined;
23
- bindings?: undefined;
24
- };
25
- export type WordCloudChartProps = typeof __propDef.props;
26
- export type WordCloudChartEvents = typeof __propDef.events;
27
- export type WordCloudChartSlots = typeof __propDef.slots;
28
- export default class WordCloudChart extends SvelteComponent<WordCloudChartProps, WordCloudChartEvents, WordCloudChartSlots> {
13
+ z_$$bindings?: Bindings;
29
14
  }
30
- export {};
15
+ declare const WordCloudChart: $$__sveltets_2_IsomorphicComponent<{
16
+ [x: string]: any;
17
+ options: WordCloudChartOptions | WorldCloudChartOptions;
18
+ data: ChartTabularData;
19
+ chart?: WordCloudChartCore | 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 WordCloudChart = InstanceType<typeof WordCloudChart>;
32
+ export default WordCloudChart;