@mekari/pixel3-chart 0.0.10 → 0.0.11
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/chart.js +2 -2
- package/dist/chart.mjs +1 -1
- package/dist/{chunk-CXRIHJSJ.mjs → chunk-K2DBLHKH.mjs} +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +1 -1
- package/dist/metafile-cjs.json +1 -1
- package/dist/metafile-esm.json +1 -1
- package/package.json +3 -3
package/dist/chart.js
CHANGED
|
@@ -863,12 +863,12 @@ var MpChart = (0, import_vue3.defineComponent)({
|
|
|
863
863
|
isShowLegend,
|
|
864
864
|
isShowTooltip
|
|
865
865
|
} = props;
|
|
866
|
-
return (0, import_vue2.createVNode)("div", rootAttrs.value, [(title || slots.action) && (0, import_vue2.createVNode)("div", chartHeaderAttrs.value, [(0, import_vue2.createVNode)(import_pixel3_text.MpText, {
|
|
866
|
+
return (0, import_vue2.createVNode)("div", rootAttrs.value, [(title || slots.header || slots.action) && (0, import_vue2.createVNode)("div", chartHeaderAttrs.value, [title && (0, import_vue2.createVNode)(import_pixel3_text.MpText, {
|
|
867
867
|
"size": "h2",
|
|
868
868
|
"weight": "semiBold"
|
|
869
869
|
}, _isSlot(title) ? title : {
|
|
870
870
|
default: () => [title]
|
|
871
|
-
}), slots.action && slots.action(chart.value)]), (0, import_vue2.createVNode)("div", chartWrapperAttrs.value, [(0, import_vue2.createVNode)("div", chartContainerAttrs.value, [(0, import_vue2.createVNode)("div", canvasContainerAttrs.value, [(0, import_vue2.createVNode)("canvas", canvasAttrs.value, null)]), children]), isShowLegend ? slots.legend ? slots.legend((0, import_lodash_es2.merge)(legend.value)) : (0, import_vue2.createVNode)("div", chartLegendAttrs.value, [
|
|
871
|
+
}), !title && slots.header && slots.header(), slots.action && slots.action(chart.value)]), (0, import_vue2.createVNode)("div", chartWrapperAttrs.value, [(0, import_vue2.createVNode)("div", chartContainerAttrs.value, [(0, import_vue2.createVNode)("div", canvasContainerAttrs.value, [(0, import_vue2.createVNode)("canvas", canvasAttrs.value, null)]), children]), isShowLegend ? slots.legend ? slots.legend((0, import_lodash_es2.merge)(legend.value)) : (0, import_vue2.createVNode)("div", chartLegendAttrs.value, [
|
|
872
872
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
873
873
|
legend.value.map((item, index) => {
|
|
874
874
|
return (0, import_vue2.createVNode)("div", legendWrapperAttrs(item, index), [(0, import_vue2.createVNode)("div", legendBoxAttrs(item), null), (0, import_vue2.createVNode)(import_pixel3_text.MpText, {
|
package/dist/chart.mjs
CHANGED
|
@@ -55,12 +55,12 @@ var MpChart = defineComponent({
|
|
|
55
55
|
isShowLegend,
|
|
56
56
|
isShowTooltip
|
|
57
57
|
} = props;
|
|
58
|
-
return _createVNode("div", rootAttrs.value, [(title || slots.action) && _createVNode("div", chartHeaderAttrs.value, [_createVNode(MpText, {
|
|
58
|
+
return _createVNode("div", rootAttrs.value, [(title || slots.header || slots.action) && _createVNode("div", chartHeaderAttrs.value, [title && _createVNode(MpText, {
|
|
59
59
|
"size": "h2",
|
|
60
60
|
"weight": "semiBold"
|
|
61
61
|
}, _isSlot(title) ? title : {
|
|
62
62
|
default: () => [title]
|
|
63
|
-
}), slots.action && slots.action(chart.value)]), _createVNode("div", chartWrapperAttrs.value, [_createVNode("div", chartContainerAttrs.value, [_createVNode("div", canvasContainerAttrs.value, [_createVNode("canvas", canvasAttrs.value, null)]), children]), isShowLegend ? slots.legend ? slots.legend(merge(legend.value)) : _createVNode("div", chartLegendAttrs.value, [
|
|
63
|
+
}), !title && slots.header && slots.header(), slots.action && slots.action(chart.value)]), _createVNode("div", chartWrapperAttrs.value, [_createVNode("div", chartContainerAttrs.value, [_createVNode("div", canvasContainerAttrs.value, [_createVNode("canvas", canvasAttrs.value, null)]), children]), isShowLegend ? slots.legend ? slots.legend(merge(legend.value)) : _createVNode("div", chartLegendAttrs.value, [
|
|
64
64
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
65
65
|
legend.value.map((item, index) => {
|
|
66
66
|
return _createVNode("div", legendWrapperAttrs(item, index), [_createVNode("div", legendBoxAttrs(item), null), _createVNode(MpText, {
|
package/dist/index.js
CHANGED
|
@@ -865,12 +865,12 @@ var MpChart = (0, import_vue3.defineComponent)({
|
|
|
865
865
|
isShowLegend,
|
|
866
866
|
isShowTooltip
|
|
867
867
|
} = props;
|
|
868
|
-
return (0, import_vue2.createVNode)("div", rootAttrs.value, [(title || slots.action) && (0, import_vue2.createVNode)("div", chartHeaderAttrs.value, [(0, import_vue2.createVNode)(import_pixel3_text.MpText, {
|
|
868
|
+
return (0, import_vue2.createVNode)("div", rootAttrs.value, [(title || slots.header || slots.action) && (0, import_vue2.createVNode)("div", chartHeaderAttrs.value, [title && (0, import_vue2.createVNode)(import_pixel3_text.MpText, {
|
|
869
869
|
"size": "h2",
|
|
870
870
|
"weight": "semiBold"
|
|
871
871
|
}, _isSlot(title) ? title : {
|
|
872
872
|
default: () => [title]
|
|
873
|
-
}), slots.action && slots.action(chart.value)]), (0, import_vue2.createVNode)("div", chartWrapperAttrs.value, [(0, import_vue2.createVNode)("div", chartContainerAttrs.value, [(0, import_vue2.createVNode)("div", canvasContainerAttrs.value, [(0, import_vue2.createVNode)("canvas", canvasAttrs.value, null)]), children]), isShowLegend ? slots.legend ? slots.legend((0, import_lodash_es2.merge)(legend.value)) : (0, import_vue2.createVNode)("div", chartLegendAttrs.value, [
|
|
873
|
+
}), !title && slots.header && slots.header(), slots.action && slots.action(chart.value)]), (0, import_vue2.createVNode)("div", chartWrapperAttrs.value, [(0, import_vue2.createVNode)("div", chartContainerAttrs.value, [(0, import_vue2.createVNode)("div", canvasContainerAttrs.value, [(0, import_vue2.createVNode)("canvas", canvasAttrs.value, null)]), children]), isShowLegend ? slots.legend ? slots.legend((0, import_lodash_es2.merge)(legend.value)) : (0, import_vue2.createVNode)("div", chartLegendAttrs.value, [
|
|
874
874
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
875
875
|
legend.value.map((item, index) => {
|
|
876
876
|
return (0, import_vue2.createVNode)("div", legendWrapperAttrs(item, index), [(0, import_vue2.createVNode)("div", legendBoxAttrs(item), null), (0, import_vue2.createVNode)(import_pixel3_text.MpText, {
|
package/dist/index.mjs
CHANGED
package/dist/metafile-cjs.json
CHANGED
|
@@ -1 +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":24066,"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":
|
|
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":24066,"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":3404,"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":"@mekari/pixel3-utils","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":"@mekari/pixel3-utils","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":4157},"src/modules/chart.props.ts":{"bytesInOutput":1785},"src/modules/chart.hooks.ts":{"bytesInOutput":25105}},"bytes":32732},"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":"@mekari/pixel3-utils","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":4032},"src/modules/chart.props.ts":{"bytesInOutput":1785},"src/modules/chart.hooks.ts":{"bytesInOutput":25105}},"bytes":32743},"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":25250}},"bytes":26869},"dist/modules/chart.props.js":{"imports":[],"exports":[],"entryPoint":"src/modules/chart.props.ts","inputs":{"src/modules/chart.props.ts":{"bytesInOutput":2030}},"bytes":2977}}}
|
package/dist/metafile-esm.json
CHANGED
|
@@ -1 +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":24066,"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":
|
|
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":24066,"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":3404,"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":"@mekari/pixel3-utils","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-K2DBLHKH.mjs","kind":"import-statement"},{"path":"dist/chunk-LU452YL3.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-K2DBLHKH.mjs","kind":"import-statement"},{"path":"dist/chunk-LU452YL3.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-K2DBLHKH.mjs":{"imports":[{"path":"dist/chunk-LU452YL3.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":"@mekari/pixel3-utils","kind":"import-statement","external":true},{"path":"lodash-es","kind":"import-statement","external":true}],"exports":["MpChart"],"inputs":{"src/chart.tsx":{"bytesInOutput":3566}},"bytes":3760},"dist/modules/chart.hooks.mjs":{"imports":[{"path":"dist/chunk-LU452YL3.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-LU452YL3.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":23322}},"bytes":23426},"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}}}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mekari/pixel3-chart",
|
|
3
3
|
"description": "Chart component for mekari pixel 3",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"color": "^4.2.3",
|
|
14
14
|
"lodash-es": "^4.17.21",
|
|
15
15
|
"@mekari/pixel3-text": "0.0.19",
|
|
16
|
-
"@mekari/pixel3-
|
|
17
|
-
"@mekari/pixel3-
|
|
16
|
+
"@mekari/pixel3-styled-system": "0.1.5",
|
|
17
|
+
"@mekari/pixel3-utils": "0.0.7"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"vue": "^3.4.9"
|