@easy-editor/materials-dashboard-bar-chart 0.0.2 → 0.0.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.
- package/CHANGELOG.md +6 -0
- package/dist/component.esm.js +1 -1
- package/dist/component.js +2 -2
- package/dist/component.min.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.js +3 -3
- package/dist/index.min.js +2 -2
- package/dist/meta.esm.js +2 -2
- package/dist/meta.js +3 -3
- package/dist/meta.min.js +1 -1
- package/dist/meta.min.js.map +1 -1
- package/package.json +1 -1
- package/rollup.config.js +9 -9
package/dist/meta.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @easy-editor/materials-dashboard-
|
|
1
|
+
/* @easy-editor/materials-dashboard-bar-chart v0.0.2 (meta, esm) */
|
|
2
2
|
const MaterialGroup = {
|
|
3
3
|
CHART: 'chart'};
|
|
4
4
|
|
|
@@ -418,7 +418,7 @@ const snippets = [{
|
|
|
418
418
|
}
|
|
419
419
|
}];
|
|
420
420
|
|
|
421
|
-
var version = "0.0.
|
|
421
|
+
var version = "0.0.2";
|
|
422
422
|
var pkg = {
|
|
423
423
|
version: version};
|
|
424
424
|
|
package/dist/meta.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/* @easy-editor/materials-dashboard-
|
|
1
|
+
/* @easy-editor/materials-dashboard-bar-chart v0.0.2 (meta) */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.
|
|
5
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.EasyEditorMaterialsBarChartMeta = {}));
|
|
6
6
|
})(this, (function (exports) { 'use strict';
|
|
7
7
|
|
|
8
8
|
const MaterialGroup = {
|
|
@@ -424,7 +424,7 @@
|
|
|
424
424
|
}
|
|
425
425
|
}];
|
|
426
426
|
|
|
427
|
-
var version = "0.0.
|
|
427
|
+
var version = "0.0.2";
|
|
428
428
|
var pkg = {
|
|
429
429
|
version: version};
|
|
430
430
|
|
package/dist/meta.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).EasyEditorMaterialsBarChartMeta={})}(this,function(e){"use strict";const t="EasyEditorMaterialsBarChart",a=[{name:"A",value1:120,value2:80},{name:"B",value1:200,value2:120},{name:"C",value1:150,value2:100},{name:"D",value1:280,value2:180},{name:"E",value1:220,value2:140}];const r={componentName:t,title:"柱状图",group:"chart",devMode:"proCode",npm:{package:"@easy-editor/materials-dashboard-bar-chart",version:"0.0.2",globalName:t,componentName:t},snippets:[{title:"柱状图",screenshot:"",schema:{componentName:t,props:{data:a,xField:"name",yFields:["value1","value2"],layout:"vertical",stacked:!1,gradient:!0,borderRadius:4,showGrid:!0,showLegend:!0},$dashboard:{rect:{width:400,height:300}}}},{title:"堆叠柱状图",screenshot:"",schema:{componentName:t,props:{data:a,xField:"name",yFields:["value1","value2"],layout:"vertical",stacked:!0,gradient:!0,borderRadius:4,showGrid:!0,showLegend:!0},$dashboard:{rect:{width:400,height:300}}}},{title:"水平柱状图",screenshot:"",schema:{componentName:t,props:{data:a,xField:"name",yFields:["value1"],layout:"horizontal",stacked:!1,gradient:!0,borderRadius:4,showGrid:!0,showLegend:!1},$dashboard:{rect:{width:400,height:250}}}}],configure:{props:[{type:"group",title:"属性",setter:"TabSetter",items:[{type:"group",key:"config",title:"配置",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"id",title:"ID",setter:"NodeIdSetter",extraProps:{label:!1}},{name:"title",title:"标题",setter:"StringSetter",extraProps:{getValue:e=>e.getExtraPropValue("title"),setValue(e,t){e.setExtraPropValue("title",t)}}},{type:"group",title:"基础属性",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"rect",title:"位置尺寸",setter:"RectSetter",extraProps:{getValue:e=>e.getExtraPropValue("$dashboard.rect"),setValue(e,t){e.setExtraPropValue("$dashboard.rect",t)}}}]},{type:"group",title:"数据",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"data",title:"数据",setter:"JsonSetter"},{name:"xField",title:"X轴字段",setter:"StringSetter",extraProps:{defaultValue:"name"}},{name:"yFields",title:"Y轴字段",setter:{componentName:"ArraySetter",props:{itemSetter:"StringSetter"}}}]},{type:"group",title:"坐标轴",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"xAxisLabel",title:"X轴标签",setter:"StringSetter"},{name:"yAxisLabel",title:"Y轴标签",setter:"StringSetter"},{name:"xAxisVisible",title:"显示X轴",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"yAxisVisible",title:"显示Y轴",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"axisLabelRotate",title:"标签旋转",setter:{componentName:"SliderSetter",props:{min:-90,max:90,step:15,suffix:"°"}},extraProps:{defaultValue:0}}]},{type:"group",title:"数值格式",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"valuePrefix",title:"前缀",setter:"StringSetter"},{name:"valueSuffix",title:"后缀",setter:"StringSetter"},{name:"valueDecimals",title:"小数位数",setter:{componentName:"NumberSetter",props:{suffix:"位"}},extraProps:{defaultValue:0}},{name:"valueSeparator",title:"千分位分隔",setter:"SwitchSetter",extraProps:{defaultValue:!1}}]},{type:"group",title:"样式",setter:{componentName:"CollapseSetter",props:{icon:!1}},items:[{name:"layout",title:"布局方向",setter:{componentName:"SegmentedSetter",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},extraProps:{defaultValue:"vertical"}},{name:"stacked",title:"堆叠模式",setter:"SwitchSetter",extraProps:{defaultValue:!1}},{name:"gradient",title:"渐变填充",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"borderRadius",title:"圆角",setter:{componentName:"SliderSetter",props:{min:0,max:20,step:1,suffix:"px"}},extraProps:{defaultValue:4}},{name:"barGap",title:"柱间距",setter:{componentName:"SliderSetter",props:{min:0,max:20,step:1,suffix:"px"}},extraProps:{defaultValue:4}},{name:"colors",title:"颜色",setter:{componentName:"ArraySetter",props:{itemSetter:"ColorSetter"}}},{name:"showGrid",title:"显示网格",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"showLegend",title:"显示图例",setter:"SwitchSetter",extraProps:{defaultValue:!0}},{name:"legendPosition",title:"图例位置",setter:{componentName:"SelectSetter",props:{options:[{label:"顶部",value:"top"},{label:"底部",value:"bottom"},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]}},extraProps:{defaultValue:"bottom"}}]}]},{type:"group",key:"data",title:"数据",items:[{name:"dataBinding",title:"数据绑定",setter:"DataBindingSetter"}]},{type:"group",key:"advanced",title:"高级",items:[{name:"condition",title:"显隐控制",setter:"SwitchSetter",extraProps:{defaultValue:!0,supportVariable:!0}}]}]}],component:{},supports:{},advanced:{}}};e.default=r,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
2
2
|
//# sourceMappingURL=meta.min.js.map
|
package/dist/meta.min.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.min.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/meta.ts","../src/snippets.ts","../src/configure.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsBarChart'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-bar-chart'\n\n/**\n * 默认颜色\n */\nexport const DEFAULT_COLORS = ['#00d4ff', '#00ff88', '#ff6b6b', '#ffd93d', '#6bcbff', '#c56bff']\n\n/**\n * 数据点类型\n */\nexport interface DataPoint {\n name: string\n [key: string]: number | string | undefined\n}\n\n/**\n * 默认数据\n */\nexport const DEFAULT_DATA: DataPoint[] = [\n { name: 'A', value1: 120, value2: 80 },\n { name: 'B', value1: 200, value2: 120 },\n { name: 'C', value1: 150, value2: 100 },\n { name: 'D', value1: 280, value2: 180 },\n { name: 'E', value1: 220, value2: 140 },\n]\n","import type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nconst meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '柱状图',\n group: MaterialGroup.CHART,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n","import type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME, DEFAULT_DATA } from './constants'\n\nconst snippets: Snippet[] = [\n {\n title: '柱状图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n xField: 'name',\n yFields: ['value1', 'value2'],\n layout: 'vertical',\n stacked: false,\n gradient: true,\n borderRadius: 4,\n showGrid: true,\n showLegend: true,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n {\n title: '堆叠柱状图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n xField: 'name',\n yFields: ['value1', 'value2'],\n layout: 'vertical',\n stacked: true,\n gradient: true,\n borderRadius: 4,\n showGrid: true,\n showLegend: true,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n {\n title: '水平柱状图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n xField: 'name',\n yFields: ['value1'],\n layout: 'horizontal',\n stacked: false,\n gradient: true,\n borderRadius: 4,\n showGrid: true,\n showLegend: false,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 250,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Bar Chart Configure\n * 柱状图组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nconst configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'data',\n title: '数据',\n setter: 'JsonSetter',\n },\n {\n name: 'xField',\n title: 'X轴字段',\n setter: 'StringSetter',\n extraProps: {\n defaultValue: 'name',\n },\n },\n {\n name: 'yFields',\n title: 'Y轴字段',\n setter: {\n componentName: 'ArraySetter',\n props: {\n itemSetter: 'StringSetter',\n },\n },\n },\n ],\n },\n {\n type: 'group',\n title: '坐标轴',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'xAxisLabel',\n title: 'X轴标签',\n setter: 'StringSetter',\n },\n {\n name: 'yAxisLabel',\n title: 'Y轴标签',\n setter: 'StringSetter',\n },\n {\n name: 'xAxisVisible',\n title: '显示X轴',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'yAxisVisible',\n title: '显示Y轴',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'axisLabelRotate',\n title: '标签旋转',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: -90,\n max: 90,\n step: 15,\n suffix: '°',\n },\n },\n extraProps: {\n defaultValue: 0,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '数值格式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'valuePrefix',\n title: '前缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueSuffix',\n title: '后缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueDecimals',\n title: '小数位数',\n setter: {\n componentName: 'NumberSetter',\n props: {\n suffix: '位',\n },\n },\n extraProps: {\n defaultValue: 0,\n },\n },\n {\n name: 'valueSeparator',\n title: '千分位分隔',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '样式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'layout',\n title: '布局方向',\n setter: {\n componentName: 'SegmentedSetter',\n props: {\n options: [\n { label: '垂直', value: 'vertical' },\n { label: '水平', value: 'horizontal' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'vertical',\n },\n },\n {\n name: 'stacked',\n title: '堆叠模式',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'gradient',\n title: '渐变填充',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'borderRadius',\n title: '圆角',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: 0,\n max: 20,\n step: 1,\n suffix: 'px',\n },\n },\n extraProps: {\n defaultValue: 4,\n },\n },\n {\n name: 'barGap',\n title: '柱间距',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: 0,\n max: 20,\n step: 1,\n suffix: 'px',\n },\n },\n extraProps: {\n defaultValue: 4,\n },\n },\n {\n name: 'colors',\n title: '颜色',\n setter: {\n componentName: 'ArraySetter',\n props: {\n itemSetter: 'ColorSetter',\n },\n },\n },\n {\n name: 'showGrid',\n title: '显示网格',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'showLegend',\n title: '显示图例',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'legendPosition',\n title: '图例位置',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '顶部', value: 'top' },\n { label: '底部', value: 'bottom' },\n { label: '左侧', value: 'left' },\n { label: '右侧', value: 'right' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'bottom',\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n"],"names":["COMPONENT_NAME","DEFAULT_DATA","name","value1","value2","meta","componentName","title","group","devMode","npm","package","version","globalName","snippets","screenshot","schema","props","data","xField","yFields","layout","stacked","gradient","borderRadius","showGrid","showLegend","$dashboard","rect","width","height","configure","type","setter","items","key","icon","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","itemSetter","min","max","step","suffix","options","supportVariable","component","supports","advanced"],"mappings":"0QAMO,MCEMA,EAAiB,8BAuBjBC,EAA4B,CACvC,CAAEC,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,IAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,KAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,KAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,KAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,MC7BpC,MAAMC,EAA0B,CAC9BC,cAAeN,EACfO,MAAO,MACPC,MFEO,QEDPC,QAAS,UACTC,IAAK,CACHC,QDAwB,6CCCxBC,gBACAC,WAAYb,EACZM,cAAeN,GAEjBc,SCf0B,CAC1B,CACEP,MAAO,MACPQ,WAAY,GACZC,OAAQ,CACNV,cAAeN,EACfiB,MAAO,CACLC,KAAMjB,EACNkB,OAAQ,OACRC,QAAS,CAAC,SAAU,UACpBC,OAAQ,WACRC,SAAS,EACTC,UAAU,EACVC,aAAc,EACdC,UAAU,EACVC,YAAY,GAEdC,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,QAKhB,CACEvB,MAAO,QACPQ,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OACP0B,OAAQ,eACRI,WAAY,CACVQ,cAAc,EACdO,iBAAiB,SAQ/BC,UAAW,CAAA,EACXC,SAAU,CAAA,EACVC,SAAU,CAAA"}
|
|
1
|
+
{"version":3,"file":"meta.min.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/meta.ts","../src/snippets.ts","../src/configure.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsBarChart'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-bar-chart'\n\n/**\n * 默认颜色\n */\nexport const DEFAULT_COLORS = ['#00d4ff', '#00ff88', '#ff6b6b', '#ffd93d', '#6bcbff', '#c56bff']\n\n/**\n * 数据点类型\n */\nexport interface DataPoint {\n name: string\n [key: string]: number | string | undefined\n}\n\n/**\n * 默认数据\n */\nexport const DEFAULT_DATA: DataPoint[] = [\n { name: 'A', value1: 120, value2: 80 },\n { name: 'B', value1: 200, value2: 120 },\n { name: 'C', value1: 150, value2: 100 },\n { name: 'D', value1: 280, value2: 180 },\n { name: 'E', value1: 220, value2: 140 },\n]\n","import type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nconst meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '柱状图',\n group: MaterialGroup.CHART,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n","import type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME, DEFAULT_DATA } from './constants'\n\nconst snippets: Snippet[] = [\n {\n title: '柱状图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n xField: 'name',\n yFields: ['value1', 'value2'],\n layout: 'vertical',\n stacked: false,\n gradient: true,\n borderRadius: 4,\n showGrid: true,\n showLegend: true,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n {\n title: '堆叠柱状图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n xField: 'name',\n yFields: ['value1', 'value2'],\n layout: 'vertical',\n stacked: true,\n gradient: true,\n borderRadius: 4,\n showGrid: true,\n showLegend: true,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 300,\n },\n },\n },\n },\n {\n title: '水平柱状图',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n data: DEFAULT_DATA,\n xField: 'name',\n yFields: ['value1'],\n layout: 'horizontal',\n stacked: false,\n gradient: true,\n borderRadius: 4,\n showGrid: true,\n showLegend: false,\n },\n $dashboard: {\n rect: {\n width: 400,\n height: 250,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Bar Chart Configure\n * 柱状图组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nconst configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'data',\n title: '数据',\n setter: 'JsonSetter',\n },\n {\n name: 'xField',\n title: 'X轴字段',\n setter: 'StringSetter',\n extraProps: {\n defaultValue: 'name',\n },\n },\n {\n name: 'yFields',\n title: 'Y轴字段',\n setter: {\n componentName: 'ArraySetter',\n props: {\n itemSetter: 'StringSetter',\n },\n },\n },\n ],\n },\n {\n type: 'group',\n title: '坐标轴',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'xAxisLabel',\n title: 'X轴标签',\n setter: 'StringSetter',\n },\n {\n name: 'yAxisLabel',\n title: 'Y轴标签',\n setter: 'StringSetter',\n },\n {\n name: 'xAxisVisible',\n title: '显示X轴',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'yAxisVisible',\n title: '显示Y轴',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'axisLabelRotate',\n title: '标签旋转',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: -90,\n max: 90,\n step: 15,\n suffix: '°',\n },\n },\n extraProps: {\n defaultValue: 0,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '数值格式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'valuePrefix',\n title: '前缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueSuffix',\n title: '后缀',\n setter: 'StringSetter',\n },\n {\n name: 'valueDecimals',\n title: '小数位数',\n setter: {\n componentName: 'NumberSetter',\n props: {\n suffix: '位',\n },\n },\n extraProps: {\n defaultValue: 0,\n },\n },\n {\n name: 'valueSeparator',\n title: '千分位分隔',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '样式',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'layout',\n title: '布局方向',\n setter: {\n componentName: 'SegmentedSetter',\n props: {\n options: [\n { label: '垂直', value: 'vertical' },\n { label: '水平', value: 'horizontal' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'vertical',\n },\n },\n {\n name: 'stacked',\n title: '堆叠模式',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: false,\n },\n },\n {\n name: 'gradient',\n title: '渐变填充',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'borderRadius',\n title: '圆角',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: 0,\n max: 20,\n step: 1,\n suffix: 'px',\n },\n },\n extraProps: {\n defaultValue: 4,\n },\n },\n {\n name: 'barGap',\n title: '柱间距',\n setter: {\n componentName: 'SliderSetter',\n props: {\n min: 0,\n max: 20,\n step: 1,\n suffix: 'px',\n },\n },\n extraProps: {\n defaultValue: 4,\n },\n },\n {\n name: 'colors',\n title: '颜色',\n setter: {\n componentName: 'ArraySetter',\n props: {\n itemSetter: 'ColorSetter',\n },\n },\n },\n {\n name: 'showGrid',\n title: '显示网格',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'showLegend',\n title: '显示图例',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'legendPosition',\n title: '图例位置',\n setter: {\n componentName: 'SelectSetter',\n props: {\n options: [\n { label: '顶部', value: 'top' },\n { label: '底部', value: 'bottom' },\n { label: '左侧', value: 'left' },\n { label: '右侧', value: 'right' },\n ],\n },\n },\n extraProps: {\n defaultValue: 'bottom',\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n"],"names":["COMPONENT_NAME","DEFAULT_DATA","name","value1","value2","meta","componentName","title","group","devMode","npm","package","version","globalName","snippets","screenshot","schema","props","data","xField","yFields","layout","stacked","gradient","borderRadius","showGrid","showLegend","$dashboard","rect","width","height","configure","type","setter","items","key","icon","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","itemSetter","min","max","step","suffix","options","supportVariable","component","supports","advanced"],"mappings":"sQAMO,MCEMA,EAAiB,8BAuBjBC,EAA4B,CACvC,CAAEC,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,IAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,KAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,KAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,KAClC,CAAEF,KAAM,IAAKC,OAAQ,IAAKC,OAAQ,MC7BpC,MAAMC,EAA0B,CAC9BC,cAAeN,EACfO,MAAO,M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N3B,cAAe,eACfW,MAAO,CACLkC,QAAS,CACP,CAAEb,MAAO,KAAMK,MAAO,OACtB,CAAEL,MAAO,KAAMK,MAAO,UACtB,CAAEL,MAAO,KAAMK,MAAO,QACtB,CAAEL,MAAO,KAAMK,MAAO,YAI5BN,WAAY,CACVQ,aAAc,eAO1B,CACEb,KAAM,QACNG,IAAK,OACL5B,MAAO,KACP2B,MAAO,CACL,CACEhC,KAAM,cACNK,MAAO,OACP0B,OAAQ,uBAId,CACED,KAAM,QACNG,IAAK,WACL5B,MAAO,KACP2B,MAAO,CACL,CACEhC,KAAM,YACNK,MAAO,OACP0B,OAAQ,eACRI,WAAY,CACVQ,cAAc,EACdO,iBAAiB,SAQ/BC,UAAW,CAAA,EACXC,SAAU,CAAA,EACVC,SAAU,CAAA"}
|
package/package.json
CHANGED
package/rollup.config.js
CHANGED
|
@@ -7,7 +7,7 @@ import cleanup from 'rollup-plugin-cleanup'
|
|
|
7
7
|
import postcss from 'rollup-plugin-postcss'
|
|
8
8
|
import pkg from './package.json' with { type: 'json' }
|
|
9
9
|
|
|
10
|
-
const GLOBAL_NAME = '
|
|
10
|
+
const GLOBAL_NAME = 'EasyEditorMaterialsBarChart'
|
|
11
11
|
|
|
12
12
|
// 外部依赖(不打包进组件)
|
|
13
13
|
const external = ['react', 'react-dom', 'react/jsx-runtime', '@easy-editor/core']
|
|
@@ -63,7 +63,7 @@ export default [
|
|
|
63
63
|
file: 'dist/meta.esm.js',
|
|
64
64
|
format: 'esm',
|
|
65
65
|
sourcemap: true,
|
|
66
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
66
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (meta, esm) */`,
|
|
67
67
|
exports: 'named',
|
|
68
68
|
},
|
|
69
69
|
],
|
|
@@ -79,7 +79,7 @@ export default [
|
|
|
79
79
|
name: `${GLOBAL_NAME}Meta`,
|
|
80
80
|
globals,
|
|
81
81
|
sourcemap: true,
|
|
82
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
82
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (meta) */`,
|
|
83
83
|
exports: 'named',
|
|
84
84
|
},
|
|
85
85
|
],
|
|
@@ -95,7 +95,7 @@ export default [
|
|
|
95
95
|
name: `${GLOBAL_NAME}Meta`,
|
|
96
96
|
globals,
|
|
97
97
|
sourcemap: true,
|
|
98
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
98
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (meta, minified) */`,
|
|
99
99
|
exports: 'named',
|
|
100
100
|
},
|
|
101
101
|
],
|
|
@@ -111,7 +111,7 @@ export default [
|
|
|
111
111
|
file: 'dist/component.esm.js',
|
|
112
112
|
format: 'esm',
|
|
113
113
|
sourcemap: true,
|
|
114
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
114
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (component, esm) */`,
|
|
115
115
|
exports: 'named',
|
|
116
116
|
},
|
|
117
117
|
],
|
|
@@ -127,7 +127,7 @@ export default [
|
|
|
127
127
|
name: `${GLOBAL_NAME}Component`,
|
|
128
128
|
globals,
|
|
129
129
|
sourcemap: true,
|
|
130
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
130
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (component) */`,
|
|
131
131
|
exports: 'named',
|
|
132
132
|
},
|
|
133
133
|
],
|
|
@@ -143,7 +143,7 @@ export default [
|
|
|
143
143
|
name: `${GLOBAL_NAME}Component`,
|
|
144
144
|
globals,
|
|
145
145
|
sourcemap: true,
|
|
146
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
146
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (component, minified) */`,
|
|
147
147
|
exports: 'named',
|
|
148
148
|
},
|
|
149
149
|
],
|
|
@@ -161,7 +161,7 @@ export default [
|
|
|
161
161
|
name: GLOBAL_NAME,
|
|
162
162
|
globals,
|
|
163
163
|
sourcemap: true,
|
|
164
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
164
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} */`,
|
|
165
165
|
exports: 'named',
|
|
166
166
|
},
|
|
167
167
|
],
|
|
@@ -202,7 +202,7 @@ export default [
|
|
|
202
202
|
name: GLOBAL_NAME,
|
|
203
203
|
globals,
|
|
204
204
|
sourcemap: true,
|
|
205
|
-
banner: `/* @easy-editor/materials-dashboard-
|
|
205
|
+
banner: `/* @easy-editor/materials-dashboard-bar-chart v${pkg.version} (minified) */`,
|
|
206
206
|
exports: 'named',
|
|
207
207
|
},
|
|
208
208
|
],
|