@fbkworks/screen 0.5.0 → 0.7.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/ScreenBarChart.d.ts +5 -1
- package/dist/ScreenBarChart.vue.mjs +4 -1
- package/dist/ScreenBarChart.vue.mjs.map +1 -1
- package/dist/ScreenGaugeChart.d.ts +5 -1
- package/dist/ScreenGaugeChart.vue.mjs +4 -1
- package/dist/ScreenGaugeChart.vue.mjs.map +1 -1
- package/dist/ScreenLineChart.d.ts +5 -1
- package/dist/ScreenLineChart.vue.mjs +4 -1
- package/dist/ScreenLineChart.vue.mjs.map +1 -1
- package/dist/ScreenPieChart.d.ts +5 -1
- package/dist/ScreenPieChart.vue.mjs +4 -1
- package/dist/ScreenPieChart.vue.mjs.map +1 -1
- package/package.json +2 -2
package/dist/ScreenBarChart.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ScreenBarChartProps } from './types.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<ScreenBarChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ScreenBarChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
error: (error: unknown) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<ScreenBarChartProps> & Readonly<{
|
|
5
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
stacked: boolean;
|
|
4
8
|
height: string | number;
|
|
5
9
|
title: string;
|
|
@@ -16,9 +16,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
16
|
loading: { type: Boolean, default: false },
|
|
17
17
|
empty: { type: Boolean, default: false }
|
|
18
18
|
},
|
|
19
|
-
|
|
19
|
+
emits: ["error"],
|
|
20
|
+
setup(__props, { emit: __emit }) {
|
|
20
21
|
const props = __props;
|
|
21
22
|
const attrs = useAttrs();
|
|
23
|
+
const emit = __emit;
|
|
22
24
|
const option = computed(() => ({
|
|
23
25
|
grid: { left: 8, right: 16, top: props.series.length > 1 ? 44 : 20, bottom: 8, containLabel: true },
|
|
24
26
|
tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
|
|
@@ -57,6 +59,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
59
|
return openBlock(), createElementBlock("div", mergeProps({ class: "fbk-screen-chart" }, unref(attrs)), [
|
|
58
60
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
59
61
|
createVNode(unref(FbkChart), {
|
|
62
|
+
onError: _cache[0] || (_cache[0] = (e) => emit("error", e)),
|
|
60
63
|
option: option.value,
|
|
61
64
|
height: __props.height,
|
|
62
65
|
loading: __props.loading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenBarChart.vue.mjs","sources":["../src/ScreenBarChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport {\n FbkChart,\n CHART_AXIS_LABEL,\n CHART_AXIS_LINE,\n CHART_SPLIT_LINE,\n barRadius,\n seriesColor,\n stackedBarRadius,\n} from '@fbkworks/chart-core'\nimport type { ScreenBarChartProps } from './types'\n\n/**\n * 大屏柱状图。\n * 与 dashboard 版本的区别:柱更宽、带发光、轴文字更大。\n */\ndefineOptions({ name: 'FbkScreenBarChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenBarChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n stacked: false,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst option = computed(() => ({\n grid: { left: 8, right: 16, top: props.series.length > 1 ? 44 : 20, bottom: 8, containLabel: true },\n tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },\n legend:\n props.series.length > 1\n ? { top: 0, right: 0, itemGap: 20, icon: 'roundRect', textStyle: { fontSize: 14 } }\n : undefined,\n xAxis: {\n type: 'category',\n data: props.categories,\n axisLine: { lineStyle: { color: CHART_AXIS_LINE } },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n axisTick: { show: false },\n },\n yAxis: {\n type: 'value',\n axisLine: { show: false },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n splitLine: { lineStyle: { color: CHART_SPLIT_LINE, type: 'dashed' } },\n },\n series: props.series.map((s, i) => {\n const color = seriesColor(i, s.color)\n return {\n name: s.name,\n type: 'bar',\n data: s.data,\n stack: props.stacked ? 'total' : undefined,\n barMaxWidth: 28,\n itemStyle: {\n color,\n borderRadius: props.stacked\n ? stackedBarRadius(i, props.series.length, false)\n : barRadius(false),\n shadowColor: color,\n shadowBlur: 8,\n },\n }\n }),\n}))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <FbkChart\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty || !categories.length\"\n empty-text=\"暂无数据\"\n />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createVNode"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScreenBarChart.vue.mjs","sources":["../src/ScreenBarChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport {\n FbkChart,\n CHART_AXIS_LABEL,\n CHART_AXIS_LINE,\n CHART_SPLIT_LINE,\n barRadius,\n seriesColor,\n stackedBarRadius,\n} from '@fbkworks/chart-core'\nimport type { ScreenBarChartProps } from './types'\n\n/**\n * 大屏柱状图。\n * 与 dashboard 版本的区别:柱更宽、带发光、轴文字更大。\n */\ndefineOptions({ name: 'FbkScreenBarChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenBarChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n stacked: false,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n/* 把 FbkChart 的错误转出去。FbkChart 只 emit('error')、不 console,\n 而大屏这四个组件此前**一个都没监听** —— 配置写错时图表静默保留上一帧或空白,\n 生产环境没有任何信号。dashboard 的三个组件本来就有这条转发,这里补齐。 */\nconst emit = defineEmits<{ error: [error: unknown] }>()\n\nconst option = computed(() => ({\n grid: { left: 8, right: 16, top: props.series.length > 1 ? 44 : 20, bottom: 8, containLabel: true },\n tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },\n legend:\n props.series.length > 1\n ? { top: 0, right: 0, itemGap: 20, icon: 'roundRect', textStyle: { fontSize: 14 } }\n : undefined,\n xAxis: {\n type: 'category',\n data: props.categories,\n axisLine: { lineStyle: { color: CHART_AXIS_LINE } },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n axisTick: { show: false },\n },\n yAxis: {\n type: 'value',\n axisLine: { show: false },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n splitLine: { lineStyle: { color: CHART_SPLIT_LINE, type: 'dashed' } },\n },\n series: props.series.map((s, i) => {\n const color = seriesColor(i, s.color)\n return {\n name: s.name,\n type: 'bar',\n data: s.data,\n stack: props.stacked ? 'total' : undefined,\n barMaxWidth: 28,\n itemStyle: {\n color,\n borderRadius: props.stacked\n ? stackedBarRadius(i, props.series.length, false)\n : barRadius(false),\n shadowColor: color,\n shadowBlur: 8,\n },\n }\n }),\n}))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <FbkChart\n @error=\"(e: unknown) => emit('error', e)\"\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty || !categories.length\"\n empty-text=\"暂无数据\"\n />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,UAAM,QAAQ;AASd,UAAM,QAAQ,SAAA;AAId,UAAM,OAAO;AAEb,UAAM,SAAS,SAAS,OAAO;AAAA,MAC7B,MAAM,EAAE,MAAM,GAAG,OAAO,IAAI,KAAK,MAAM,OAAO,SAAS,IAAI,KAAK,IAAI,QAAQ,GAAG,cAAc,KAAA;AAAA,MAC7F,SAAS,EAAE,SAAS,QAAQ,aAAa,EAAE,MAAM,WAAS;AAAA,MAC1D,QACE,MAAM,OAAO,SAAS,IAClB,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,IAAI,MAAM,aAAa,WAAW,EAAE,UAAU,GAAA,MAC3E;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,MAAM,MAAM;AAAA,QACZ,UAAU,EAAE,WAAW,EAAE,OAAO,kBAAgB;AAAA,QAChD,WAAW,EAAE,OAAO,kBAAkB,UAAU,GAAA;AAAA,QAChD,UAAU,EAAE,MAAM,MAAA;AAAA,MAAM;AAAA,MAE1B,OAAO;AAAA,QACL,MAAM;AAAA,QACN,UAAU,EAAE,MAAM,MAAA;AAAA,QAClB,WAAW,EAAE,OAAO,kBAAkB,UAAU,GAAA;AAAA,QAChD,WAAW,EAAE,WAAW,EAAE,OAAO,kBAAkB,MAAM,WAAS;AAAA,MAAE;AAAA,MAEtE,QAAQ,MAAM,OAAO,IAAI,CAAC,GAAG,MAAM;AACjC,cAAM,QAAQ,YAAY,GAAG,EAAE,KAAK;AACpC,eAAO;AAAA,UACL,MAAM,EAAE;AAAA,UACR,MAAM;AAAA,UACN,MAAM,EAAE;AAAA,UACR,OAAO,MAAM,UAAU,UAAU;AAAA,UACjC,aAAa;AAAA,UACb,WAAW;AAAA,YACT;AAAA,YACA,cAAc,MAAM,UAChB,iBAAiB,GAAG,MAAM,OAAO,QAAQ,KAAK,IAC9C,UAAU,KAAK;AAAA,YACnB,aAAa;AAAA,YACb,YAAY;AAAA,UAAA;AAAA,QACd;AAAA,MAEJ,CAAC;AAAA,IAAA,EACD;;AAIA,aAAAA,UAAA,GAAAC,mBAUM,OAVNC,WAUM,EAVD,OAAM,mBAAA,GAA2BC,MAAA,KAAA,CAAK,GAAA;AAAA,QAC9B,QAAA,sBAAXF,mBAAmE,OAAnE,YAAmEG,gBAAd,QAAA,KAAK,GAAA,CAAA;QAC1DC,YAOEF,MAAA,QAAA,GAAA;AAAA,UANC,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAG,MAAe,cAAc,CAAC;AAAA,UACtC,QAAQ,OAAA;AAAA,UACR,QAAQ,QAAA;AAAA,UACR,SAAS,QAAA;AAAA,UACT,YAAU,QAAA,SAAK,CAAK,QAAA,WAAW;AAAA,UAChC,cAAW;AAAA,QAAA;;;;;"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ScreenGaugeChartProps } from './types.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<ScreenGaugeChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ScreenGaugeChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
error: (error: unknown) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<ScreenGaugeChartProps> & Readonly<{
|
|
5
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
max: number;
|
|
4
8
|
unit: string;
|
|
5
9
|
label: string;
|
|
@@ -17,9 +17,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
loading: { type: Boolean, default: false },
|
|
18
18
|
empty: { type: Boolean, default: false }
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
emits: ["error"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
21
22
|
const props = __props;
|
|
22
23
|
const attrs = useAttrs();
|
|
24
|
+
const emit = __emit;
|
|
23
25
|
const option = computed(() => ({
|
|
24
26
|
series: [
|
|
25
27
|
{
|
|
@@ -87,6 +89,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
87
89
|
return openBlock(), createElementBlock("div", mergeProps({ class: "fbk-screen-chart" }, unref(attrs)), [
|
|
88
90
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
89
91
|
createVNode(unref(FbkChart), {
|
|
92
|
+
onError: _cache[0] || (_cache[0] = (e) => emit("error", e)),
|
|
90
93
|
option: option.value,
|
|
91
94
|
height: __props.height,
|
|
92
95
|
loading: __props.loading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenGaugeChart.vue.mjs","sources":["../src/ScreenGaugeChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport {\n FbkChart,\n CHART_AXIS_LABEL,\n CHART_SPLIT_LINE,\n seriesColor,\n} from '@fbkworks/chart-core'\nimport type { ScreenGaugeChartProps } from './types'\n\n/**\n * 仪表盘。大屏常见的\"完成率 / 健康度\"类指标。\n *\n * 用 ECharts gauge 而不是自己画 SVG:\n * 刻度、指针、弧线的数学计算容易出错,交给图表库更稳。\n */\ndefineOptions({ name: 'FbkScreenGaugeChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenGaugeChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n max: 100,\n unit: '%',\n label: undefined,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst option = computed(() => ({\n series: [\n {\n type: 'gauge',\n min: 0,\n max: props.max,\n radius: '88%',\n center: ['50%', '58%'],\n progress: {\n show: true,\n width: 10,\n itemStyle: {\n color: seriesColor(0),\n shadowColor: seriesColor(0),\n shadowBlur: 10,\n },\n },\n axisLine: {\n lineStyle: {\n width: 10,\n color: [[1, CHART_SPLIT_LINE]],\n },\n },\n axisTick: { show: false },\n splitLine: { show: false },\n axisLabel: {\n color: CHART_AXIS_LABEL,\n fontSize: 11,\n // 往内收,避免与 detail/title 抢位置\n distance: 6,\n },\n pointer: {\n width: 4,\n length: '62%',\n itemStyle: { color: seriesColor(0) },\n },\n anchor: {\n show: true,\n size: 10,\n itemStyle: { color: seriesColor(0) },\n },\n /* 标题与数值的纵向位置必须错开:\n detail 在中心偏上,title 在它下方。\n 早期 detail=44% / title=78%,两者与刻度标签(distance 14)\n 挤在一起,实测「转化率」与刻度重叠。 */\n title: {\n show: Boolean(props.label),\n offsetCenter: [0, '72%'],\n color: CHART_AXIS_LABEL,\n fontSize: 13,\n },\n detail: {\n valueAnimation: true,\n offsetCenter: [0, '38%'],\n fontSize: 24,\n fontWeight: 600,\n color: 'var(--fbk-color-text)',\n formatter: `{value}${props.unit}`,\n },\n data: [{ value: props.value, name: props.label ?? '' }],\n },\n ],\n}))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <FbkChart\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty\"\n empty-text=\"暂无数据\"\n />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createVNode"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScreenGaugeChart.vue.mjs","sources":["../src/ScreenGaugeChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport {\n FbkChart,\n CHART_AXIS_LABEL,\n CHART_SPLIT_LINE,\n seriesColor,\n} from '@fbkworks/chart-core'\nimport type { ScreenGaugeChartProps } from './types'\n\n/**\n * 仪表盘。大屏常见的\"完成率 / 健康度\"类指标。\n *\n * 用 ECharts gauge 而不是自己画 SVG:\n * 刻度、指针、弧线的数学计算容易出错,交给图表库更稳。\n */\ndefineOptions({ name: 'FbkScreenGaugeChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenGaugeChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n max: 100,\n unit: '%',\n label: undefined,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n/* 把 FbkChart 的错误转出去。FbkChart 只 emit('error')、不 console,\n 而大屏这四个组件此前**一个都没监听** —— 配置写错时图表静默保留上一帧或空白,\n 生产环境没有任何信号。dashboard 的三个组件本来就有这条转发,这里补齐。 */\nconst emit = defineEmits<{ error: [error: unknown] }>()\n\nconst option = computed(() => ({\n series: [\n {\n type: 'gauge',\n min: 0,\n max: props.max,\n radius: '88%',\n center: ['50%', '58%'],\n progress: {\n show: true,\n width: 10,\n itemStyle: {\n color: seriesColor(0),\n shadowColor: seriesColor(0),\n shadowBlur: 10,\n },\n },\n axisLine: {\n lineStyle: {\n width: 10,\n color: [[1, CHART_SPLIT_LINE]],\n },\n },\n axisTick: { show: false },\n splitLine: { show: false },\n axisLabel: {\n color: CHART_AXIS_LABEL,\n fontSize: 11,\n // 往内收,避免与 detail/title 抢位置\n distance: 6,\n },\n pointer: {\n width: 4,\n length: '62%',\n itemStyle: { color: seriesColor(0) },\n },\n anchor: {\n show: true,\n size: 10,\n itemStyle: { color: seriesColor(0) },\n },\n /* 标题与数值的纵向位置必须错开:\n detail 在中心偏上,title 在它下方。\n 早期 detail=44% / title=78%,两者与刻度标签(distance 14)\n 挤在一起,实测「转化率」与刻度重叠。 */\n title: {\n show: Boolean(props.label),\n offsetCenter: [0, '72%'],\n color: CHART_AXIS_LABEL,\n fontSize: 13,\n },\n detail: {\n valueAnimation: true,\n offsetCenter: [0, '38%'],\n fontSize: 24,\n fontWeight: 600,\n color: 'var(--fbk-color-text)',\n formatter: `{value}${props.unit}`,\n },\n data: [{ value: props.value, name: props.label ?? '' }],\n },\n ],\n}))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <FbkChart\n @error=\"(e: unknown) => emit('error', e)\"\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty\"\n empty-text=\"暂无数据\"\n />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAkBA,UAAM,QAAQ;AAWd,UAAM,QAAQ,SAAA;AAId,UAAM,OAAO;AAEb,UAAM,SAAS,SAAS,OAAO;AAAA,MAC7B,QAAQ;AAAA,QACN;AAAA,UACE,MAAM;AAAA,UACN,KAAK;AAAA,UACL,KAAK,MAAM;AAAA,UACX,QAAQ;AAAA,UACR,QAAQ,CAAC,OAAO,KAAK;AAAA,UACrB,UAAU;AAAA,YACR,MAAM;AAAA,YACN,OAAO;AAAA,YACP,WAAW;AAAA,cACT,OAAO,YAAY,CAAC;AAAA,cACpB,aAAa,YAAY,CAAC;AAAA,cAC1B,YAAY;AAAA,YAAA;AAAA,UACd;AAAA,UAEF,UAAU;AAAA,YACR,WAAW;AAAA,cACT,OAAO;AAAA,cACP,OAAO,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAAA,YAAA;AAAA,UAC/B;AAAA,UAEF,UAAU,EAAE,MAAM,MAAA;AAAA,UAClB,WAAW,EAAE,MAAM,MAAA;AAAA,UACnB,WAAW;AAAA,YACT,OAAO;AAAA,YACP,UAAU;AAAA;AAAA,YAEV,UAAU;AAAA,UAAA;AAAA,UAEZ,SAAS;AAAA,YACP,OAAO;AAAA,YACP,QAAQ;AAAA,YACR,WAAW,EAAE,OAAO,YAAY,CAAC,EAAA;AAAA,UAAE;AAAA,UAErC,QAAQ;AAAA,YACN,MAAM;AAAA,YACN,MAAM;AAAA,YACN,WAAW,EAAE,OAAO,YAAY,CAAC,EAAA;AAAA,UAAE;AAAA;AAAA;AAAA;AAAA;AAAA,UAMrC,OAAO;AAAA,YACL,MAAM,QAAQ,MAAM,KAAK;AAAA,YACzB,cAAc,CAAC,GAAG,KAAK;AAAA,YACvB,OAAO;AAAA,YACP,UAAU;AAAA,UAAA;AAAA,UAEZ,QAAQ;AAAA,YACN,gBAAgB;AAAA,YAChB,cAAc,CAAC,GAAG,KAAK;AAAA,YACvB,UAAU;AAAA,YACV,YAAY;AAAA,YACZ,OAAO;AAAA,YACP,WAAW,UAAU,MAAM,IAAI;AAAA,UAAA;AAAA,UAEjC,MAAM,CAAC,EAAE,OAAO,MAAM,OAAO,MAAM,MAAM,SAAS,GAAA,CAAI;AAAA,QAAA;AAAA,MACxD;AAAA,IACF,EACA;;AAIA,aAAAA,UAAA,GAAAC,mBAUM,OAVNC,WAUM,EAVD,OAAM,mBAAA,GAA2BC,MAAA,KAAA,CAAK,GAAA;AAAA,QAC9B,QAAA,sBAAXF,mBAAmE,OAAnE,YAAmEG,gBAAd,QAAA,KAAK,GAAA,CAAA;QAC1DC,YAOEF,MAAA,QAAA,GAAA;AAAA,UANC,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAG,MAAe,cAAc,CAAC;AAAA,UACtC,QAAQ,OAAA;AAAA,UACR,QAAQ,QAAA;AAAA,UACR,SAAS,QAAA;AAAA,UACT,YAAU,QAAA;AAAA,UACX,cAAW;AAAA,QAAA;;;;;"}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ScreenLineChartProps } from './types.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<ScreenLineChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ScreenLineChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
error: (error: unknown) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<ScreenLineChartProps> & Readonly<{
|
|
5
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
smooth: boolean;
|
|
4
8
|
area: boolean;
|
|
5
9
|
height: string | number;
|
|
@@ -17,9 +17,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
17
|
loading: { type: Boolean, default: false },
|
|
18
18
|
empty: { type: Boolean, default: false }
|
|
19
19
|
},
|
|
20
|
-
|
|
20
|
+
emits: ["error"],
|
|
21
|
+
setup(__props, { emit: __emit }) {
|
|
21
22
|
const props = __props;
|
|
22
23
|
const attrs = useAttrs();
|
|
24
|
+
const emit = __emit;
|
|
23
25
|
const option = computed(() => ({
|
|
24
26
|
grid: { left: 8, right: 16, top: props.series.length > 1 ? 44 : 20, bottom: 8, containLabel: true },
|
|
25
27
|
tooltip: { trigger: "axis" },
|
|
@@ -77,6 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
77
79
|
return openBlock(), createElementBlock("div", mergeProps({ class: "fbk-screen-chart" }, unref(attrs)), [
|
|
78
80
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
79
81
|
createVNode(unref(FbkChart), {
|
|
82
|
+
onError: _cache[0] || (_cache[0] = (e) => emit("error", e)),
|
|
80
83
|
option: option.value,
|
|
81
84
|
height: __props.height,
|
|
82
85
|
loading: __props.loading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenLineChart.vue.mjs","sources":["../src/ScreenLineChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport {\n FbkChart,\n CHART_AXIS_LABEL,\n CHART_AXIS_LINE,\n CHART_SPLIT_LINE,\n seriesColor,\n} from '@fbkworks/chart-core'\nimport type { ScreenLineChartProps } from './types'\n\n/**\n * 大屏折线图。\n *\n * 与 dashboard 的 TrendChart 的区别(不是简单复用):\n * · 线更粗(3px vs 2px)、发光更强 —— 远距离观看需要更重的笔触\n * · 坐标轴文字更大(14px vs 12px)\n * · 默认显示所有数据点符号(大屏不 hover,看不到 tooltip)\n */\ndefineOptions({ name: 'FbkScreenLineChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenLineChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n smooth: true,\n area: true,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst option = computed(() => ({\n grid: { left: 8, right: 16, top: props.series.length > 1 ? 44 : 20, bottom: 8, containLabel: true },\n tooltip: { trigger: 'axis' },\n legend:\n props.series.length > 1\n ? { top: 0, right: 0, itemGap: 20, icon: 'roundRect', textStyle: { fontSize: 14 } }\n : undefined,\n xAxis: {\n type: 'category',\n data: props.categories,\n boundaryGap: false,\n axisLine: { lineStyle: { color: CHART_AXIS_LINE, width: 1 } },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n axisTick: { show: false },\n },\n yAxis: {\n type: 'value',\n min: 0,\n axisLine: { show: false },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n splitLine: { lineStyle: { color: CHART_SPLIT_LINE, type: 'dashed' } },\n },\n series: props.series.map((s, i) => {\n const color = seriesColor(i, s.color)\n return {\n name: s.name,\n type: 'line',\n data: s.data,\n smooth: props.smooth,\n symbol: 'circle',\n symbolSize: 7,\n showSymbol: true,\n itemStyle: { color },\n lineStyle: {\n width: 3,\n // 发光:大屏的视觉语言,浅色主题下不会用到这个组件\n shadowColor: color,\n shadowBlur: 10,\n },\n areaStyle: props.area\n ? {\n opacity: 0.18,\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color },\n { offset: 1, color: 'transparent' },\n ],\n },\n }\n : undefined,\n }\n }),\n}))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <FbkChart\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty || !categories.length\"\n empty-text=\"暂无数据\"\n />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createVNode"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScreenLineChart.vue.mjs","sources":["../src/ScreenLineChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport {\n FbkChart,\n CHART_AXIS_LABEL,\n CHART_AXIS_LINE,\n CHART_SPLIT_LINE,\n seriesColor,\n} from '@fbkworks/chart-core'\nimport type { ScreenLineChartProps } from './types'\n\n/**\n * 大屏折线图。\n *\n * 与 dashboard 的 TrendChart 的区别(不是简单复用):\n * · 线更粗(3px vs 2px)、发光更强 —— 远距离观看需要更重的笔触\n * · 坐标轴文字更大(14px vs 12px)\n * · 默认显示所有数据点符号(大屏不 hover,看不到 tooltip)\n */\ndefineOptions({ name: 'FbkScreenLineChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenLineChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n smooth: true,\n area: true,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n/* 把 FbkChart 的错误转出去。FbkChart 只 emit('error')、不 console,\n 而大屏这四个组件此前**一个都没监听** —— 配置写错时图表静默保留上一帧或空白,\n 生产环境没有任何信号。dashboard 的三个组件本来就有这条转发,这里补齐。 */\nconst emit = defineEmits<{ error: [error: unknown] }>()\n\nconst option = computed(() => ({\n grid: { left: 8, right: 16, top: props.series.length > 1 ? 44 : 20, bottom: 8, containLabel: true },\n tooltip: { trigger: 'axis' },\n legend:\n props.series.length > 1\n ? { top: 0, right: 0, itemGap: 20, icon: 'roundRect', textStyle: { fontSize: 14 } }\n : undefined,\n xAxis: {\n type: 'category',\n data: props.categories,\n boundaryGap: false,\n axisLine: { lineStyle: { color: CHART_AXIS_LINE, width: 1 } },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n axisTick: { show: false },\n },\n yAxis: {\n type: 'value',\n min: 0,\n axisLine: { show: false },\n axisLabel: { color: CHART_AXIS_LABEL, fontSize: 14 },\n splitLine: { lineStyle: { color: CHART_SPLIT_LINE, type: 'dashed' } },\n },\n series: props.series.map((s, i) => {\n const color = seriesColor(i, s.color)\n return {\n name: s.name,\n type: 'line',\n data: s.data,\n smooth: props.smooth,\n symbol: 'circle',\n symbolSize: 7,\n showSymbol: true,\n itemStyle: { color },\n lineStyle: {\n width: 3,\n // 发光:大屏的视觉语言,浅色主题下不会用到这个组件\n shadowColor: color,\n shadowBlur: 10,\n },\n areaStyle: props.area\n ? {\n opacity: 0.18,\n color: {\n type: 'linear',\n x: 0,\n y: 0,\n x2: 0,\n y2: 1,\n colorStops: [\n { offset: 0, color },\n { offset: 1, color: 'transparent' },\n ],\n },\n }\n : undefined,\n }\n }),\n}))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <FbkChart\n @error=\"(e: unknown) => emit('error', e)\"\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty || !categories.length\"\n empty-text=\"暂无数据\"\n />\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAqBA,UAAM,QAAQ;AAUd,UAAM,QAAQ,SAAA;AAId,UAAM,OAAO;AAEb,UAAM,SAAS,SAAS,OAAO;AAAA,MAC7B,MAAM,EAAE,MAAM,GAAG,OAAO,IAAI,KAAK,MAAM,OAAO,SAAS,IAAI,KAAK,IAAI,QAAQ,GAAG,cAAc,KAAA;AAAA,MAC7F,SAAS,EAAE,SAAS,OAAA;AAAA,MACpB,QACE,MAAM,OAAO,SAAS,IAClB,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,IAAI,MAAM,aAAa,WAAW,EAAE,UAAU,GAAA,MAC3E;AAAA,MACN,OAAO;AAAA,QACL,MAAM;AAAA,QACN,MAAM,MAAM;AAAA,QACZ,aAAa;AAAA,QACb,UAAU,EAAE,WAAW,EAAE,OAAO,iBAAiB,OAAO,IAAE;AAAA,QAC1D,WAAW,EAAE,OAAO,kBAAkB,UAAU,GAAA;AAAA,QAChD,UAAU,EAAE,MAAM,MAAA;AAAA,MAAM;AAAA,MAE1B,OAAO;AAAA,QACL,MAAM;AAAA,QACN,KAAK;AAAA,QACL,UAAU,EAAE,MAAM,MAAA;AAAA,QAClB,WAAW,EAAE,OAAO,kBAAkB,UAAU,GAAA;AAAA,QAChD,WAAW,EAAE,WAAW,EAAE,OAAO,kBAAkB,MAAM,WAAS;AAAA,MAAE;AAAA,MAEtE,QAAQ,MAAM,OAAO,IAAI,CAAC,GAAG,MAAM;AACjC,cAAM,QAAQ,YAAY,GAAG,EAAE,KAAK;AACpC,eAAO;AAAA,UACL,MAAM,EAAE;AAAA,UACR,MAAM;AAAA,UACN,MAAM,EAAE;AAAA,UACR,QAAQ,MAAM;AAAA,UACd,QAAQ;AAAA,UACR,YAAY;AAAA,UACZ,YAAY;AAAA,UACZ,WAAW,EAAE,MAAA;AAAA,UACb,WAAW;AAAA,YACT,OAAO;AAAA;AAAA,YAEP,aAAa;AAAA,YACb,YAAY;AAAA,UAAA;AAAA,UAEd,WAAW,MAAM,OACb;AAAA,YACE,SAAS;AAAA,YACT,OAAO;AAAA,cACL,MAAM;AAAA,cACN,GAAG;AAAA,cACH,GAAG;AAAA,cACH,IAAI;AAAA,cACJ,IAAI;AAAA,cACJ,YAAY;AAAA,gBACV,EAAE,QAAQ,GAAG,MAAA;AAAA,gBACb,EAAE,QAAQ,GAAG,OAAO,cAAA;AAAA,cAAc;AAAA,YACpC;AAAA,UACF,IAEF;AAAA,QAAA;AAAA,MAER,CAAC;AAAA,IAAA,EACD;;AAIA,aAAAA,UAAA,GAAAC,mBAUM,OAVNC,WAUM,EAVD,OAAM,mBAAA,GAA2BC,MAAA,KAAA,CAAK,GAAA;AAAA,QAC9B,QAAA,sBAAXF,mBAAmE,OAAnE,YAAmEG,gBAAd,QAAA,KAAK,GAAA,CAAA;QAC1DC,YAOEF,MAAA,QAAA,GAAA;AAAA,UANC,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAG,MAAe,cAAc,CAAC;AAAA,UACtC,QAAQ,OAAA;AAAA,UACR,QAAQ,QAAA;AAAA,UACR,SAAS,QAAA;AAAA,UACT,YAAU,QAAA,SAAK,CAAK,QAAA,WAAW;AAAA,UAChC,cAAW;AAAA,QAAA;;;;;"}
|
package/dist/ScreenPieChart.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ScreenPieChartProps } from './types.js';
|
|
2
|
-
declare const _default: import('vue').DefineComponent<ScreenPieChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
declare const _default: import('vue').DefineComponent<ScreenPieChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
3
|
+
error: (error: unknown) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<ScreenPieChartProps> & Readonly<{
|
|
5
|
+
onError?: ((error: unknown) => any) | undefined;
|
|
6
|
+
}>, {
|
|
3
7
|
innerRadius: number;
|
|
4
8
|
centerValue: string | number;
|
|
5
9
|
centerLabel: string;
|
|
@@ -30,9 +30,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
30
30
|
loading: { type: Boolean, default: false },
|
|
31
31
|
empty: { type: Boolean, default: false }
|
|
32
32
|
},
|
|
33
|
-
|
|
33
|
+
emits: ["error"],
|
|
34
|
+
setup(__props, { emit: __emit }) {
|
|
34
35
|
const props = __props;
|
|
35
36
|
const attrs = useAttrs();
|
|
37
|
+
const emit = __emit;
|
|
36
38
|
const option = computed(() => ({
|
|
37
39
|
tooltip: { trigger: "item", formatter: "{b}: {c} ({d}%)" },
|
|
38
40
|
legend: {
|
|
@@ -75,6 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
75
77
|
__props.title ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
76
78
|
createElementVNode("div", _hoisted_2, [
|
|
77
79
|
createVNode(unref(FbkChart), {
|
|
80
|
+
onError: _cache[0] || (_cache[0] = (e) => emit("error", e)),
|
|
78
81
|
option: option.value,
|
|
79
82
|
height: __props.height,
|
|
80
83
|
loading: __props.loading,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScreenPieChart.vue.mjs","sources":["../src/ScreenPieChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport { FbkChart, CHART_AXIS_LABEL, seriesColor } from '@fbkworks/chart-core'\nimport type { ScreenPieChartProps } from './types'\n\n/**\n * 大屏环形图。\n * 默认带中心数值,图例竖排右侧,与大屏的横向信息流一致。\n */\ndefineOptions({ name: 'FbkScreenPieChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenPieChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n innerRadius: 0.6,\n centerValue: undefined,\n centerLabel: undefined,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst option = computed(() => ({\n tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },\n legend: {\n orient: 'vertical',\n right: 0,\n top: 'middle',\n itemGap: 14,\n icon: 'circle',\n itemWidth: 9,\n itemHeight: 9,\n textStyle: { color: CHART_AXIS_LABEL, fontSize: 14 },\n },\n series: [\n {\n type: 'pie',\n radius: [`${Math.round(props.innerRadius * 100)}%`, '70%'],\n center: ['36%', '50%'],\n itemStyle: {\n borderColor: 'transparent',\n borderWidth: 2,\n borderRadius: 3,\n },\n label: { show: false },\n labelLine: { show: false },\n emphasis: {\n // 大屏常做自动轮播高亮,这里给出放大反馈\n scaleSize: 6,\n },\n data: props.data.map((d, i) => ({\n name: d.name,\n value: d.value,\n itemStyle: { color: seriesColor(i, d.color) },\n })),\n },\n ],\n}))\n\nconst showCenter = computed(() => props.innerRadius > 0 && (props.centerValue !== undefined || props.centerLabel))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <div class=\"fbk-screen-chart__pie\">\n <FbkChart\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty || !data.length\"\n empty-text=\"暂无数据\"\n />\n <div v-if=\"showCenter\" class=\"fbk-screen-chart__center\">\n <span v-if=\"centerValue !== undefined\" class=\"fbk-screen-chart__center-value\">\n {{ centerValue }}\n </span>\n <span v-if=\"centerLabel\" class=\"fbk-screen-chart__center-label\">{{ centerLabel }}</span>\n </div>\n </div>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createElementVNode","_createVNode"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScreenPieChart.vue.mjs","sources":["../src/ScreenPieChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport { FbkChart, CHART_AXIS_LABEL, seriesColor } from '@fbkworks/chart-core'\nimport type { ScreenPieChartProps } from './types'\n\n/**\n * 大屏环形图。\n * 默认带中心数值,图例竖排右侧,与大屏的横向信息流一致。\n */\ndefineOptions({ name: 'FbkScreenPieChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<ScreenPieChartProps>(), {\n title: undefined,\n height: undefined,\n loading: false,\n empty: false,\n innerRadius: 0.6,\n centerValue: undefined,\n centerLabel: undefined,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n/* 把 FbkChart 的错误转出去。FbkChart 只 emit('error')、不 console,\n 而大屏这四个组件此前**一个都没监听** —— 配置写错时图表静默保留上一帧或空白,\n 生产环境没有任何信号。dashboard 的三个组件本来就有这条转发,这里补齐。 */\nconst emit = defineEmits<{ error: [error: unknown] }>()\n\nconst option = computed(() => ({\n tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },\n legend: {\n orient: 'vertical',\n right: 0,\n top: 'middle',\n itemGap: 14,\n icon: 'circle',\n itemWidth: 9,\n itemHeight: 9,\n textStyle: { color: CHART_AXIS_LABEL, fontSize: 14 },\n },\n series: [\n {\n type: 'pie',\n radius: [`${Math.round(props.innerRadius * 100)}%`, '70%'],\n center: ['36%', '50%'],\n itemStyle: {\n borderColor: 'transparent',\n borderWidth: 2,\n borderRadius: 3,\n },\n label: { show: false },\n labelLine: { show: false },\n emphasis: {\n // 大屏常做自动轮播高亮,这里给出放大反馈\n scaleSize: 6,\n },\n data: props.data.map((d, i) => ({\n name: d.name,\n value: d.value,\n itemStyle: { color: seriesColor(i, d.color) },\n })),\n },\n ],\n}))\n\nconst showCenter = computed(() => props.innerRadius > 0 && (props.centerValue !== undefined || props.centerLabel))\n</script>\n\n<template>\n <div class=\"fbk-screen-chart\" v-bind=\"attrs\">\n <div v-if=\"title\" class=\"fbk-screen-chart__title\">{{ title }}</div>\n <div class=\"fbk-screen-chart__pie\">\n <FbkChart\n @error=\"(e: unknown) => emit('error', e)\"\n :option=\"option\"\n :height=\"height\"\n :loading=\"loading\"\n :is-empty=\"empty || !data.length\"\n empty-text=\"暂无数据\"\n />\n <div v-if=\"showCenter\" class=\"fbk-screen-chart__center\">\n <span v-if=\"centerValue !== undefined\" class=\"fbk-screen-chart__center-value\">\n {{ centerValue }}\n </span>\n <span v-if=\"centerLabel\" class=\"fbk-screen-chart__center-label\">{{ centerLabel }}</span>\n </div>\n </div>\n </div>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_toDisplayString","_createElementVNode","_createVNode"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,UAAM,QAAQ;AAWd,UAAM,QAAQ,SAAA;AAId,UAAM,OAAO;AAEb,UAAM,SAAS,SAAS,OAAO;AAAA,MAC7B,SAAS,EAAE,SAAS,QAAQ,WAAW,kBAAA;AAAA,MACvC,QAAQ;AAAA,QACN,QAAQ;AAAA,QACR,OAAO;AAAA,QACP,KAAK;AAAA,QACL,SAAS;AAAA,QACT,MAAM;AAAA,QACN,WAAW;AAAA,QACX,YAAY;AAAA,QACZ,WAAW,EAAE,OAAO,kBAAkB,UAAU,GAAA;AAAA,MAAG;AAAA,MAErD,QAAQ;AAAA,QACN;AAAA,UACE,MAAM;AAAA,UACN,QAAQ,CAAC,GAAG,KAAK,MAAM,MAAM,cAAc,GAAG,CAAC,KAAK,KAAK;AAAA,UACzD,QAAQ,CAAC,OAAO,KAAK;AAAA,UACrB,WAAW;AAAA,YACT,aAAa;AAAA,YACb,aAAa;AAAA,YACb,cAAc;AAAA,UAAA;AAAA,UAEhB,OAAO,EAAE,MAAM,MAAA;AAAA,UACf,WAAW,EAAE,MAAM,MAAA;AAAA,UACnB,UAAU;AAAA;AAAA,YAER,WAAW;AAAA,UAAA;AAAA,UAEb,MAAM,MAAM,KAAK,IAAI,CAAC,GAAG,OAAO;AAAA,YAC9B,MAAM,EAAE;AAAA,YACR,OAAO,EAAE;AAAA,YACT,WAAW,EAAE,OAAO,YAAY,GAAG,EAAE,KAAK,EAAA;AAAA,UAAE,EAC5C;AAAA,QAAA;AAAA,MACJ;AAAA,IACF,EACA;AAEF,UAAM,aAAa,SAAS,MAAM,MAAM,cAAc,MAAM,MAAM,gBAAgB,UAAa,MAAM,YAAY;;AAI/G,aAAAA,UAAA,GAAAC,mBAkBM,OAlBNC,WAkBM,EAlBD,OAAM,mBAAA,GAA2BC,MAAA,KAAA,CAAK,GAAA;AAAA,QAC9B,QAAA,sBAAXF,mBAAmE,OAAnE,YAAmEG,gBAAd,QAAA,KAAK,GAAA,CAAA;QAC1DC,mBAeM,OAfN,YAeM;AAAA,UAdJC,YAOEH,MAAA,QAAA,GAAA;AAAA,YAND,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAG,MAAe,cAAc,CAAC;AAAA,YACpC,QAAQ,OAAA;AAAA,YACR,QAAQ,QAAA;AAAA,YACR,SAAS,QAAA;AAAA,YACT,YAAU,QAAA,SAAK,CAAK,QAAA,KAAK;AAAA,YAC1B,cAAW;AAAA,UAAA;UAEF,WAAA,SAAXH,UAAA,GAAAC,mBAKM,OALN,YAKM;AAAA,YAJQ,QAAA,gBAAgB,uBAA5BA,mBAEO,QAFP,YAEOG,gBADF,QAAA,WAAW,GAAA,CAAA;YAEJ,QAAA,4BAAZH,mBAAwF,QAAxF,YAAwFG,gBAArB,QAAA,WAAW,GAAA,CAAA;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fbkworks/screen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@fbkworks/chart-core": "^0.
|
|
23
|
+
"@fbkworks/chart-core": "^0.7.0",
|
|
24
24
|
"@fbkworks/shared": "^0.3.0",
|
|
25
25
|
"@fbkworks/tokens": "^0.3.0"
|
|
26
26
|
},
|