@mekari/pixel3-chart 0.0.1-dev.0

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/dist/index.mjs ADDED
@@ -0,0 +1,9 @@
1
+ import {
2
+ MpChart
3
+ } from "./chunk-RG3PDKE3.mjs";
4
+ import "./chunk-5SYLA56O.mjs";
5
+ import "./chunk-4Y625OEJ.mjs";
6
+ import "./chunk-QZ7VFGWC.mjs";
7
+ export {
8
+ MpChart
9
+ };
@@ -0,0 +1 @@
1
+ {"inputs":{"src/modules/chart.props.ts":{"bytes":2837,"imports":[{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/chart.hooks.ts":{"bytes":20141,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"lodash-es","kind":"import-statement","external":true},{"path":"color","kind":"import-statement","external":true},{"path":"chart.js/auto","kind":"import-statement","external":true},{"path":"chartjs-plugin-datalabels","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/chart.tsx":{"bytes":3150,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"src/modules/chart.props.ts","kind":"import-statement","original":"./modules/chart.props"},{"path":"src/modules/chart.hooks.ts","kind":"import-statement","original":"./modules/chart.hooks"},{"path":"lodash-es","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":119,"imports":[{"path":"src/chart.tsx","kind":"import-statement","original":"./chart"}],"format":"esm"}},"outputs":{"dist/chart.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"lodash-es","kind":"require-call","external":true},{"path":"color","kind":"require-call","external":true},{"path":"chart.js/auto","kind":"require-call","external":true},{"path":"chartjs-plugin-datalabels","kind":"require-call","external":true},{"path":"lodash-es","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/chart.tsx","inputs":{"src/chart.tsx":{"bytesInOutput":3871},"src/modules/chart.props.ts":{"bytesInOutput":1785},"src/modules/chart.hooks.ts":{"bytesInOutput":20999}},"bytes":28340},"dist/index.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-text","kind":"require-call","external":true},{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"lodash-es","kind":"require-call","external":true},{"path":"color","kind":"require-call","external":true},{"path":"chart.js/auto","kind":"require-call","external":true},{"path":"chartjs-plugin-datalabels","kind":"require-call","external":true},{"path":"lodash-es","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":119},"src/chart.tsx":{"bytesInOutput":3746},"src/modules/chart.props.ts":{"bytesInOutput":1785},"src/modules/chart.hooks.ts":{"bytesInOutput":20999}},"bytes":28351},"dist/modules/chart.hooks.js":{"imports":[{"path":"vue","kind":"require-call","external":true},{"path":"@mekari/pixel3-utils","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"require-call","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"require-call","external":true},{"path":"lodash-es","kind":"require-call","external":true},{"path":"color","kind":"require-call","external":true},{"path":"chart.js/auto","kind":"require-call","external":true},{"path":"chartjs-plugin-datalabels","kind":"require-call","external":true}],"exports":[],"entryPoint":"src/modules/chart.hooks.ts","inputs":{"src/modules/chart.hooks.ts":{"bytesInOutput":21144}},"bytes":22763},"dist/modules/chart.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/chart.props.ts","inputs":{"src/modules/chart.props.ts":{"bytesInOutput":2030}},"bytes":2977}}}
@@ -0,0 +1 @@
1
+ {"inputs":{"src/modules/chart.props.ts":{"bytes":2837,"imports":[{"path":"vue","kind":"import-statement","external":true}],"format":"esm"},"src/modules/chart.hooks.ts":{"bytes":20141,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"lodash-es","kind":"import-statement","external":true},{"path":"color","kind":"import-statement","external":true},{"path":"chart.js/auto","kind":"import-statement","external":true},{"path":"chartjs-plugin-datalabels","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/chart.tsx":{"bytes":3150,"imports":[{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"src/modules/chart.props.ts","kind":"import-statement","original":"./modules/chart.props"},{"path":"src/modules/chart.hooks.ts","kind":"import-statement","original":"./modules/chart.hooks"},{"path":"lodash-es","kind":"import-statement","external":true},{"path":"<runtime>","kind":"import-statement","external":true}],"format":"esm"},"src/index.ts":{"bytes":119,"imports":[{"path":"src/chart.tsx","kind":"import-statement","original":"./chart"}],"format":"esm"}},"outputs":{"dist/chart.mjs":{"imports":[{"path":"dist/chunk-RG3PDKE3.mjs","kind":"import-statement"},{"path":"dist/chunk-5SYLA56O.mjs","kind":"import-statement"},{"path":"dist/chunk-4Y625OEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpChart"],"entryPoint":"src/chart.tsx","inputs":{},"bytes":165},"dist/index.mjs":{"imports":[{"path":"dist/chunk-RG3PDKE3.mjs","kind":"import-statement"},{"path":"dist/chunk-5SYLA56O.mjs","kind":"import-statement"},{"path":"dist/chunk-4Y625OEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["MpChart"],"entryPoint":"src/index.ts","inputs":{"src/index.ts":{"bytesInOutput":0}},"bytes":165},"dist/chunk-RG3PDKE3.mjs":{"imports":[{"path":"dist/chunk-5SYLA56O.mjs","kind":"import-statement"},{"path":"dist/chunk-4Y625OEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-text","kind":"import-statement","external":true},{"path":"lodash-es","kind":"import-statement","external":true}],"exports":["MpChart"],"inputs":{"src/chart.tsx":{"bytesInOutput":3312}},"bytes":3506},"dist/modules/chart.hooks.mjs":{"imports":[{"path":"dist/chunk-5SYLA56O.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["useChart"],"entryPoint":"src/modules/chart.hooks.ts","inputs":{},"bytes":107},"dist/chunk-5SYLA56O.mjs":{"imports":[{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"},{"path":"vue","kind":"import-statement","external":true},{"path":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/recipes","kind":"import-statement","external":true},{"path":"@mekari/pixel3-styled-system/tokens","kind":"import-statement","external":true},{"path":"lodash-es","kind":"import-statement","external":true},{"path":"color","kind":"import-statement","external":true},{"path":"chart.js/auto","kind":"import-statement","external":true},{"path":"chartjs-plugin-datalabels","kind":"import-statement","external":true}],"exports":["useChart"],"inputs":{"src/modules/chart.hooks.ts":{"bytesInOutput":19528}},"bytes":19632},"dist/modules/chart.props.mjs":{"imports":[{"path":"dist/chunk-4Y625OEJ.mjs","kind":"import-statement"},{"path":"dist/chunk-QZ7VFGWC.mjs","kind":"import-statement"}],"exports":["chartEmit","chartProps"],"entryPoint":"src/modules/chart.props.ts","inputs":{},"bytes":137},"dist/chunk-4Y625OEJ.mjs":{"imports":[],"exports":["chartEmit","chartProps"],"inputs":{"src/modules/chart.props.ts":{"bytesInOutput":1851}},"bytes":1920},"dist/chunk-QZ7VFGWC.mjs":{"imports":[],"exports":["__name"],"inputs":{},"bytes":151}}}
@@ -0,0 +1,106 @@
1
+ import * as chart_js_auto from 'chart.js/auto';
2
+ import chart_js_auto__default from 'chart.js/auto';
3
+ import * as vue from 'vue';
4
+ import { ChartProps, ChartEmit } from './chart.props.mjs';
5
+ import 'chart.js/dist/types/utils';
6
+ import 'chart.js';
7
+
8
+ type LegendPosition = 'column' | 'column-reverse' | 'row' | 'row-reverse';
9
+ declare function useChart(props: ChartProps, emit: ChartEmit): {
10
+ rootAttrs: vue.ComputedRef<{
11
+ 'data-pixel-component': string;
12
+ id: string | undefined;
13
+ class: string;
14
+ style: {
15
+ width: string;
16
+ };
17
+ }>;
18
+ chartHeaderAttrs: vue.ComputedRef<{
19
+ class: string;
20
+ }>;
21
+ chartWrapperAttrs: vue.ComputedRef<{
22
+ class: string;
23
+ style: {
24
+ flexDirection: LegendPosition;
25
+ };
26
+ }>;
27
+ chartContainerAttrs: vue.ComputedRef<{
28
+ ref: vue.Ref<any>;
29
+ id: string;
30
+ class: string;
31
+ style: {
32
+ width: string;
33
+ height: string;
34
+ };
35
+ }>;
36
+ canvasContainerAttrs: vue.ComputedRef<{
37
+ id: string;
38
+ class: string;
39
+ style: {
40
+ width: string;
41
+ height: string;
42
+ };
43
+ }>;
44
+ canvasAttrs: vue.ComputedRef<{
45
+ ref: vue.Ref<any>;
46
+ id: string;
47
+ ariaLabel: string;
48
+ role: string;
49
+ }>;
50
+ chartLegendAttrs: vue.ComputedRef<{
51
+ ref: vue.Ref<any>;
52
+ id: string;
53
+ class: string;
54
+ style: {
55
+ justifyContent: string;
56
+ marginTop: string;
57
+ marginBottom: string;
58
+ };
59
+ }>;
60
+ legendWrapperAttrs: (item: any, index: number) => {
61
+ key: number;
62
+ class: string;
63
+ onClick: () => void;
64
+ };
65
+ legendBoxAttrs: (item: any) => {
66
+ class: string;
67
+ style: {
68
+ width: string;
69
+ height: string;
70
+ background: any;
71
+ };
72
+ };
73
+ chartTooltipAttrs: vue.ComputedRef<{
74
+ class: string;
75
+ style: {
76
+ top: string;
77
+ left: string;
78
+ opacity: number;
79
+ };
80
+ }>;
81
+ tooltipWrapperAttrs: vue.ComputedRef<{
82
+ class: string;
83
+ }>;
84
+ tooltipRowAttrs: vue.ComputedRef<{
85
+ class: string;
86
+ }>;
87
+ tooltipItemAttrs: vue.ComputedRef<{
88
+ class: string;
89
+ }>;
90
+ tooltipBoxAttrs: vue.ComputedRef<{
91
+ class: string;
92
+ style: {
93
+ backgroundColor: any;
94
+ };
95
+ }>;
96
+ chart: vue.ShallowRef<chart_js_auto__default<keyof chart_js_auto.ChartTypeRegistry, (number | [number, number] | chart_js_auto.Point | chart_js_auto.BubbleDataPoint | null)[], unknown> | null>;
97
+ legend: vue.Ref<never[]>;
98
+ tooltip: vue.Ref<{
99
+ top: number;
100
+ left: number;
101
+ opacity: number;
102
+ data: any;
103
+ }>;
104
+ };
105
+
106
+ export { useChart };
@@ -0,0 +1,106 @@
1
+ import * as chart_js_auto from 'chart.js/auto';
2
+ import chart_js_auto__default from 'chart.js/auto';
3
+ import * as vue from 'vue';
4
+ import { ChartProps, ChartEmit } from './chart.props.js';
5
+ import 'chart.js/dist/types/utils';
6
+ import 'chart.js';
7
+
8
+ type LegendPosition = 'column' | 'column-reverse' | 'row' | 'row-reverse';
9
+ declare function useChart(props: ChartProps, emit: ChartEmit): {
10
+ rootAttrs: vue.ComputedRef<{
11
+ 'data-pixel-component': string;
12
+ id: string | undefined;
13
+ class: string;
14
+ style: {
15
+ width: string;
16
+ };
17
+ }>;
18
+ chartHeaderAttrs: vue.ComputedRef<{
19
+ class: string;
20
+ }>;
21
+ chartWrapperAttrs: vue.ComputedRef<{
22
+ class: string;
23
+ style: {
24
+ flexDirection: LegendPosition;
25
+ };
26
+ }>;
27
+ chartContainerAttrs: vue.ComputedRef<{
28
+ ref: vue.Ref<any>;
29
+ id: string;
30
+ class: string;
31
+ style: {
32
+ width: string;
33
+ height: string;
34
+ };
35
+ }>;
36
+ canvasContainerAttrs: vue.ComputedRef<{
37
+ id: string;
38
+ class: string;
39
+ style: {
40
+ width: string;
41
+ height: string;
42
+ };
43
+ }>;
44
+ canvasAttrs: vue.ComputedRef<{
45
+ ref: vue.Ref<any>;
46
+ id: string;
47
+ ariaLabel: string;
48
+ role: string;
49
+ }>;
50
+ chartLegendAttrs: vue.ComputedRef<{
51
+ ref: vue.Ref<any>;
52
+ id: string;
53
+ class: string;
54
+ style: {
55
+ justifyContent: string;
56
+ marginTop: string;
57
+ marginBottom: string;
58
+ };
59
+ }>;
60
+ legendWrapperAttrs: (item: any, index: number) => {
61
+ key: number;
62
+ class: string;
63
+ onClick: () => void;
64
+ };
65
+ legendBoxAttrs: (item: any) => {
66
+ class: string;
67
+ style: {
68
+ width: string;
69
+ height: string;
70
+ background: any;
71
+ };
72
+ };
73
+ chartTooltipAttrs: vue.ComputedRef<{
74
+ class: string;
75
+ style: {
76
+ top: string;
77
+ left: string;
78
+ opacity: number;
79
+ };
80
+ }>;
81
+ tooltipWrapperAttrs: vue.ComputedRef<{
82
+ class: string;
83
+ }>;
84
+ tooltipRowAttrs: vue.ComputedRef<{
85
+ class: string;
86
+ }>;
87
+ tooltipItemAttrs: vue.ComputedRef<{
88
+ class: string;
89
+ }>;
90
+ tooltipBoxAttrs: vue.ComputedRef<{
91
+ class: string;
92
+ style: {
93
+ backgroundColor: any;
94
+ };
95
+ }>;
96
+ chart: vue.ShallowRef<chart_js_auto__default<keyof chart_js_auto.ChartTypeRegistry, (number | [number, number] | chart_js_auto.Point | chart_js_auto.BubbleDataPoint | null)[], unknown> | null>;
97
+ legend: vue.Ref<never[]>;
98
+ tooltip: vue.Ref<{
99
+ top: number;
100
+ left: number;
101
+ opacity: number;
102
+ data: any;
103
+ }>;
104
+ };
105
+
106
+ export { useChart };