@fbkworks/dashboard 0.0.0-stage → 0.3.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.
Files changed (44) hide show
  1. package/LICENSE +21 -0
  2. package/dist/BarChart.d.ts +31 -0
  3. package/dist/BarChart.vue.mjs +97 -0
  4. package/dist/BarChart.vue.mjs.map +1 -0
  5. package/dist/BarChart2.vue.mjs +5 -0
  6. package/dist/BarChart2.vue.mjs.map +1 -0
  7. package/dist/ChartCard.d.ts +26 -0
  8. package/dist/ChartCard.vue.mjs +54 -0
  9. package/dist/ChartCard.vue.mjs.map +1 -0
  10. package/dist/ChartCard2.vue.mjs +5 -0
  11. package/dist/ChartCard2.vue.mjs.map +1 -0
  12. package/dist/PieChart.d.ts +32 -0
  13. package/dist/PieChart.vue.mjs +117 -0
  14. package/dist/PieChart.vue.mjs.map +1 -0
  15. package/dist/PieChart2.vue.mjs +5 -0
  16. package/dist/PieChart2.vue.mjs.map +1 -0
  17. package/dist/RankList.d.ts +7 -0
  18. package/dist/RankList.vue.mjs +63 -0
  19. package/dist/RankList.vue.mjs.map +1 -0
  20. package/dist/RankList2.vue.mjs +5 -0
  21. package/dist/RankList2.vue.mjs.map +1 -0
  22. package/dist/StatCard.d.ts +32 -0
  23. package/dist/StatCard.vue.mjs +149 -0
  24. package/dist/StatCard.vue.mjs.map +1 -0
  25. package/dist/StatCard2.vue.mjs +5 -0
  26. package/dist/StatCard2.vue.mjs.map +1 -0
  27. package/dist/StatGroup.d.ts +26 -0
  28. package/dist/StatGroup.vue.mjs +27 -0
  29. package/dist/StatGroup.vue.mjs.map +1 -0
  30. package/dist/StatGroup2.vue.mjs +5 -0
  31. package/dist/StatGroup2.vue.mjs.map +1 -0
  32. package/dist/TrendChart.d.ts +34 -0
  33. package/dist/TrendChart.vue.mjs +103 -0
  34. package/dist/TrendChart.vue.mjs.map +1 -0
  35. package/dist/TrendChart2.vue.mjs +5 -0
  36. package/dist/TrendChart2.vue.mjs.map +1 -0
  37. package/dist/index.d.ts +12 -0
  38. package/dist/index.mjs +17 -0
  39. package/dist/index.mjs.map +1 -0
  40. package/dist/style.css +1059 -0
  41. package/dist/styles/index.css +3 -0
  42. package/dist/types.d.ts +126 -0
  43. package/package.json +61 -3
  44. package/README.md +0 -3
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 54356
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,31 @@
1
+ import { BarChartProps } from './types.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ extra?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<BarChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ error: (error: unknown) => any;
13
+ }, string, import('vue').PublicProps, Readonly<BarChartProps> & Readonly<{
14
+ onError?: ((error: unknown) => any) | undefined;
15
+ }>, {
16
+ title: string;
17
+ height: string | number;
18
+ loading: boolean;
19
+ emptyText: string;
20
+ direction: "vertical" | "horizontal";
21
+ stacked: boolean;
22
+ subtitle: string;
23
+ empty: boolean;
24
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
26
+ export default _default;
27
+ type __VLS_WithTemplateSlots<T, S> = T & {
28
+ new (): {
29
+ $slots: S;
30
+ };
31
+ };
@@ -0,0 +1,97 @@
1
+ import { defineComponent, useAttrs, computed, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, createVNode, renderSlot } from "vue";
2
+ import { CHART_AXIS_LABEL, CHART_AXIS_LINE, CHART_SPLIT_LINE, stackedBarRadius, barRadius, seriesColor, FbkChart } from "@fbkworks/chart-core";
3
+ import _sfc_main$1 from "./ChartCard.vue.mjs";
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ ...{ name: "FbkBarChart", inheritAttrs: false },
6
+ __name: "BarChart",
7
+ props: {
8
+ categories: {},
9
+ series: {},
10
+ direction: { default: "vertical" },
11
+ stacked: { type: Boolean, default: false },
12
+ title: { default: void 0 },
13
+ subtitle: { default: void 0 },
14
+ height: { default: void 0 },
15
+ loading: { type: Boolean, default: false },
16
+ empty: { type: Boolean, default: false },
17
+ emptyText: { default: "暂无数据" }
18
+ },
19
+ emits: ["error"],
20
+ setup(__props, { emit: __emit }) {
21
+ const emit = __emit;
22
+ const props = __props;
23
+ const attrs = useAttrs();
24
+ const isHorizontal = computed(() => props.direction === "horizontal");
25
+ const option = computed(() => {
26
+ const categoryAxis = {
27
+ type: "category",
28
+ data: props.categories,
29
+ axisLine: { lineStyle: { color: CHART_AXIS_LINE } },
30
+ axisLabel: {
31
+ color: CHART_AXIS_LABEL,
32
+ // 横向条形图类目名较长,超长省略而不是旋转
33
+ ...isHorizontal.value ? { width: 90, overflow: "truncate" } : {}
34
+ },
35
+ axisTick: { show: false }
36
+ };
37
+ const valueAxis = {
38
+ type: "value",
39
+ axisLine: { show: false },
40
+ axisLabel: { color: CHART_AXIS_LABEL },
41
+ splitLine: { lineStyle: { color: CHART_SPLIT_LINE, type: "dashed" } }
42
+ };
43
+ return {
44
+ grid: { left: 8, right: 16, top: props.series.length > 1 ? 40 : 16, bottom: 8, containLabel: true },
45
+ tooltip: { trigger: "axis", axisPointer: { type: "shadow" } },
46
+ legend: props.series.length > 1 ? { top: 0, right: 0, itemGap: 16, icon: "roundRect" } : void 0,
47
+ xAxis: isHorizontal.value ? valueAxis : categoryAxis,
48
+ yAxis: isHorizontal.value ? categoryAxis : valueAxis,
49
+ series: props.series.map((s, i) => ({
50
+ name: s.name,
51
+ type: "bar",
52
+ data: s.data,
53
+ stack: props.stacked ? "total" : void 0,
54
+ itemStyle: {
55
+ color: seriesColor(i, s.color),
56
+ /* 堆叠时只有最外段该有圆角,全加会在接缝处出现"双圆角" */
57
+ borderRadius: props.stacked ? stackedBarRadius(i, props.series.length, isHorizontal.value) : barRadius(isHorizontal.value)
58
+ },
59
+ barMaxWidth: 32
60
+ }))
61
+ };
62
+ });
63
+ return (_ctx, _cache) => {
64
+ return openBlock(), createBlock(_sfc_main$1, mergeProps(unref(attrs), {
65
+ title: __props.title,
66
+ subtitle: __props.subtitle,
67
+ loading: __props.loading,
68
+ empty: __props.empty,
69
+ "empty-text": __props.emptyText
70
+ }), createSlots({
71
+ default: withCtx(() => [
72
+ createVNode(unref(FbkChart), {
73
+ onError: _cache[0] || (_cache[0] = (e) => emit("error", e)),
74
+ option: option.value,
75
+ height: __props.height,
76
+ loading: __props.loading,
77
+ "is-empty": __props.empty || !__props.categories.length,
78
+ "empty-text": __props.emptyText
79
+ }, null, 8, ["option", "height", "loading", "is-empty", "empty-text"])
80
+ ]),
81
+ _: 2
82
+ }, [
83
+ _ctx.$slots.extra ? {
84
+ name: "extra",
85
+ fn: withCtx(() => [
86
+ renderSlot(_ctx.$slots, "extra")
87
+ ]),
88
+ key: "0"
89
+ } : void 0
90
+ ]), 1040, ["title", "subtitle", "loading", "empty", "empty-text"]);
91
+ };
92
+ }
93
+ });
94
+ export {
95
+ _sfc_main as default
96
+ };
97
+ //# sourceMappingURL=BarChart.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BarChart.vue.mjs","sources":["../src/BarChart.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 FbkChartCard from './ChartCard.vue'\nimport type { BarChartProps } from './types'\n\n/**\n * 柱状 / 条形图。\n *\n * 支持分组与堆叠。横向条形图在类目名较长时更可读(标签不用旋转)。\n */\nconst emit = defineEmits<{ error: [error: unknown] }>()\n\ndefineOptions({ name: 'FbkBarChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<BarChartProps>(), {\n title: undefined,\n subtitle: undefined,\n height: undefined,\n loading: false,\n empty: false,\n emptyText: '暂无数据',\n direction: 'vertical',\n stacked: false,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst isHorizontal = computed(() => props.direction === 'horizontal')\n\nconst option = computed(() => {\n /* 横向时类目轴与数值轴互换。\n 注意 xAxis/yAxis 的配置也要跟着换 —— 只换 series 的 type\n 会导致轴标签还是竖向排列,看起来像坏了。 */\n const categoryAxis = {\n type: 'category',\n data: props.categories,\n axisLine: { lineStyle: { color: CHART_AXIS_LINE } },\n axisLabel: {\n color: CHART_AXIS_LABEL,\n // 横向条形图类目名较长,超长省略而不是旋转\n ...(isHorizontal.value ? { width: 90, overflow: 'truncate' } : {}),\n },\n axisTick: { show: false },\n }\n const valueAxis = {\n type: 'value',\n axisLine: { show: false },\n axisLabel: { color: CHART_AXIS_LABEL },\n splitLine: { lineStyle: { color: CHART_SPLIT_LINE, type: 'dashed' } },\n }\n\n return {\n grid: { left: 8, right: 16, top: props.series.length > 1 ? 40 : 16, bottom: 8, containLabel: true },\n tooltip: { trigger: 'axis', axisPointer: { type: 'shadow' } },\n legend:\n props.series.length > 1\n ? { top: 0, right: 0, itemGap: 16, icon: 'roundRect' }\n : undefined,\n xAxis: isHorizontal.value ? valueAxis : categoryAxis,\n yAxis: isHorizontal.value ? categoryAxis : valueAxis,\n series: props.series.map((s, i) => ({\n name: s.name,\n type: 'bar',\n data: s.data,\n stack: props.stacked ? 'total' : undefined,\n itemStyle: {\n color: seriesColor(i, s.color),\n /* 堆叠时只有最外段该有圆角,全加会在接缝处出现\"双圆角\" */\n borderRadius: props.stacked\n ? stackedBarRadius(i, props.series.length, isHorizontal.value)\n : barRadius(isHorizontal.value),\n },\n barMaxWidth: 32,\n })),\n }\n})\n</script>\n\n<template>\n <FbkChartCard v-bind=\"attrs\"\n :title=\"title\"\n :subtitle=\"subtitle\"\n :loading=\"loading\"\n :empty=\"empty\"\n :empty-text=\"emptyText\"\n >\n <template v-if=\"$slots.extra\" #extra><slot name=\"extra\" /></template>\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=\"emptyText\"\n />\n </FbkChartCard>\n</template>\n"],"names":["_createBlock","FbkChartCard","_mergeProps","_unref","_createVNode","$slots","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;AAmBA,UAAM,OAAO;AAIb,UAAM,QAAQ;AAYd,UAAM,QAAQ,SAAA;AAEd,UAAM,eAAe,SAAS,MAAM,MAAM,cAAc,YAAY;AAEpE,UAAM,SAAS,SAAS,MAAM;AAI5B,YAAM,eAAe;AAAA,QACnB,MAAM;AAAA,QACN,MAAM,MAAM;AAAA,QACZ,UAAU,EAAE,WAAW,EAAE,OAAO,kBAAgB;AAAA,QAChD,WAAW;AAAA,UACT,OAAO;AAAA;AAAA,UAEP,GAAI,aAAa,QAAQ,EAAE,OAAO,IAAI,UAAU,eAAe,CAAA;AAAA,QAAC;AAAA,QAElE,UAAU,EAAE,MAAM,MAAA;AAAA,MAAM;AAE1B,YAAM,YAAY;AAAA,QAChB,MAAM;AAAA,QACN,UAAU,EAAE,MAAM,MAAA;AAAA,QAClB,WAAW,EAAE,OAAO,iBAAA;AAAA,QACpB,WAAW,EAAE,WAAW,EAAE,OAAO,kBAAkB,MAAM,WAAS;AAAA,MAAE;AAGtE,aAAO;AAAA,QACL,MAAM,EAAE,MAAM,GAAG,OAAO,IAAI,KAAK,MAAM,OAAO,SAAS,IAAI,KAAK,IAAI,QAAQ,GAAG,cAAc,KAAA;AAAA,QAC7F,SAAS,EAAE,SAAS,QAAQ,aAAa,EAAE,MAAM,WAAS;AAAA,QAC1D,QACE,MAAM,OAAO,SAAS,IAClB,EAAE,KAAK,GAAG,OAAO,GAAG,SAAS,IAAI,MAAM,gBACvC;AAAA,QACN,OAAO,aAAa,QAAQ,YAAY;AAAA,QACxC,OAAO,aAAa,QAAQ,eAAe;AAAA,QAC3C,QAAQ,MAAM,OAAO,IAAI,CAAC,GAAG,OAAO;AAAA,UAClC,MAAM,EAAE;AAAA,UACR,MAAM;AAAA,UACN,MAAM,EAAE;AAAA,UACR,OAAO,MAAM,UAAU,UAAU;AAAA,UACjC,WAAW;AAAA,YACT,OAAO,YAAY,GAAG,EAAE,KAAK;AAAA;AAAA,YAE7B,cAAc,MAAM,UAChB,iBAAiB,GAAG,MAAM,OAAO,QAAQ,aAAa,KAAK,IAC3D,UAAU,aAAa,KAAK;AAAA,UAAA;AAAA,UAElC,aAAa;AAAA,QAAA,EACb;AAAA,MAAA;AAAA,IAEN,CAAC;;0BAICA,YAgBeC,aAhBfC,WAgBeC,MAAA,KAAA,GAhBY;AAAA,QACxB,OAAO,QAAA;AAAA,QACP,UAAU,QAAA;AAAA,QACV,SAAS,QAAA;AAAA,QACT,OAAO,QAAA;AAAA,QACP,cAAY,QAAA;AAAA,MAAA;yBAGb,MAOE;AAAA,UAPFC,YAOED,MAAA,QAAA,GAAA;AAAA,YANC,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAG,MAAe,cAAc,CAAC;AAAA,YACtC,QAAQ,OAAA;AAAA,YACR,QAAQ,QAAA;AAAA,YACR,SAAS,QAAA;AAAA,YACT,YAAU,QAAA,SAAK,CAAK,QAAA,WAAW;AAAA,YAC/B,cAAY,QAAA;AAAA,UAAA;;;;QAPCE,KAAAA,OAAO;gBAAQ;AAAA,sBAAM,MAAqB;AAAA,YAArBC,WAAqB,KAAA,QAAA,OAAA;AAAA,UAAA;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./BarChart.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
5
+ //# sourceMappingURL=BarChart2.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BarChart2.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,26 @@
1
+ import { ChartCardProps } from './types.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ extra?(_: {}): any;
6
+ default?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<ChartCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ChartCardProps> & Readonly<{}>, {
13
+ title: string;
14
+ height: string | number;
15
+ loading: boolean;
16
+ emptyText: string;
17
+ subtitle: string;
18
+ empty: boolean;
19
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
20
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
21
+ export default _default;
22
+ type __VLS_WithTemplateSlots<T, S> = T & {
23
+ new (): {
24
+ $slots: S;
25
+ };
26
+ };
@@ -0,0 +1,54 @@
1
+ import { defineComponent, useAttrs, openBlock, createElementBlock, mergeProps, unref, createElementVNode, toDisplayString, createCommentVNode, renderSlot } from "vue";
2
+ const _hoisted_1 = {
3
+ key: 0,
4
+ class: "fbk-chart-card__header"
5
+ };
6
+ const _hoisted_2 = { class: "fbk-chart-card__heading" };
7
+ const _hoisted_3 = {
8
+ key: 0,
9
+ class: "fbk-chart-card__title"
10
+ };
11
+ const _hoisted_4 = {
12
+ key: 1,
13
+ class: "fbk-chart-card__subtitle"
14
+ };
15
+ const _hoisted_5 = {
16
+ key: 0,
17
+ class: "fbk-chart-card__extra"
18
+ };
19
+ const _hoisted_6 = { class: "fbk-chart-card__body" };
20
+ const _sfc_main = /* @__PURE__ */ defineComponent({
21
+ ...{ name: "FbkChartCard", inheritAttrs: false },
22
+ __name: "ChartCard",
23
+ props: {
24
+ title: { default: void 0 },
25
+ subtitle: { default: void 0 },
26
+ height: { default: void 0 },
27
+ loading: { type: Boolean, default: false },
28
+ empty: { type: Boolean, default: false },
29
+ emptyText: { default: "暂无数据" }
30
+ },
31
+ setup(__props) {
32
+ const attrs = useAttrs();
33
+ return (_ctx, _cache) => {
34
+ return openBlock(), createElementBlock("section", mergeProps({ class: "fbk-chart-card" }, unref(attrs)), [
35
+ __props.title || _ctx.$slots.extra ? (openBlock(), createElementBlock("header", _hoisted_1, [
36
+ createElementVNode("div", _hoisted_2, [
37
+ __props.title ? (openBlock(), createElementBlock("h3", _hoisted_3, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
38
+ __props.subtitle ? (openBlock(), createElementBlock("p", _hoisted_4, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
39
+ ]),
40
+ _ctx.$slots.extra ? (openBlock(), createElementBlock("div", _hoisted_5, [
41
+ renderSlot(_ctx.$slots, "extra")
42
+ ])) : createCommentVNode("", true)
43
+ ])) : createCommentVNode("", true),
44
+ createElementVNode("div", _hoisted_6, [
45
+ renderSlot(_ctx.$slots, "default")
46
+ ])
47
+ ], 16);
48
+ };
49
+ }
50
+ });
51
+ export {
52
+ _sfc_main as default
53
+ };
54
+ //# sourceMappingURL=ChartCard.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartCard.vue.mjs","sources":["../src/ChartCard.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { useAttrs } from 'vue'\nimport type { ChartCardProps } from './types'\n\n/**\n * 图表卡片外壳。\n *\n * 所有图表组件(TrendChart / BarChart / PieChart)共用它,\n * 保证标题区高度、内边距、空态表现完全一致 —— 否则并排摆放时\n * 标题基线会错位。\n */\ndefineOptions({ name: 'FbkChartCard', inheritAttrs: false })\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nwithDefaults(defineProps<ChartCardProps>(), {\n title: undefined,\n subtitle: undefined,\n height: undefined,\n loading: false,\n empty: false,\n emptyText: '暂无数据',\n})\n</script>\n\n<template>\n <section class=\"fbk-chart-card\" v-bind=\"attrs\">\n <header v-if=\"title || $slots.extra\" class=\"fbk-chart-card__header\">\n <div class=\"fbk-chart-card__heading\">\n <h3 v-if=\"title\" class=\"fbk-chart-card__title\">{{ title }}</h3>\n <p v-if=\"subtitle\" class=\"fbk-chart-card__subtitle\">{{ subtitle }}</p>\n </div>\n <div v-if=\"$slots.extra\" class=\"fbk-chart-card__extra\">\n <slot name=\"extra\" />\n </div>\n </header>\n\n <div class=\"fbk-chart-card__body\">\n <slot />\n </div>\n </section>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","$slots","_createElementVNode","_toDisplayString","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAcA,UAAM,QAAQ,SAAA;;AAaZ,aAAAA,UAAA,GAAAC,mBAcU,WAdVC,WAcU,EAdD,OAAM,iBAAA,GAAyBC,MAAA,KAAA,CAAK,GAAA;AAAA,QAC7B,QAAA,SAASC,KAAAA,OAAO,SAA9BJ,aAAAC,mBAQS,UART,YAQS;AAAA,UAPPI,mBAGM,OAHN,YAGM;AAAA,YAFM,QAAA,sBAAVJ,mBAA+D,MAA/D,YAA+DK,gBAAb,QAAA,KAAK,GAAA,CAAA;YAC9C,QAAA,yBAATL,mBAAsE,KAAtE,YAAsEK,gBAAf,QAAA,QAAQ,GAAA,CAAA;;UAEtDF,KAAAA,OAAO,SAAlBJ,aAAAC,mBAEM,OAFN,YAEM;AAAA,YADJM,WAAqB,KAAA,QAAA,OAAA;AAAA,UAAA;;QAIzBF,mBAEM,OAFN,YAEM;AAAA,UADJE,WAAQ,KAAA,QAAA,SAAA;AAAA,QAAA;;;;;"}
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./ChartCard.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
5
+ //# sourceMappingURL=ChartCard2.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChartCard2.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,32 @@
1
+ import { PieChartProps } from './types.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ extra?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: any;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<PieChartProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
+ error: (error: unknown) => any;
13
+ }, string, import('vue').PublicProps, Readonly<PieChartProps> & Readonly<{
14
+ onError?: ((error: unknown) => any) | undefined;
15
+ }>, {
16
+ title: string;
17
+ height: string | number;
18
+ loading: boolean;
19
+ emptyText: string;
20
+ innerRadius: number;
21
+ centerLabel: string;
22
+ centerValue: string | number;
23
+ subtitle: string;
24
+ empty: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };
@@ -0,0 +1,117 @@
1
+ import { defineComponent, useAttrs, computed, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, createElementVNode, createVNode, createElementBlock, toDisplayString, createCommentVNode, renderSlot } from "vue";
2
+ import { CHART_AXIS_LABEL, seriesColor, FbkChart } from "@fbkworks/chart-core";
3
+ import _sfc_main$1 from "./ChartCard.vue.mjs";
4
+ const _hoisted_1 = { class: "fbk-pie-chart" };
5
+ const _hoisted_2 = {
6
+ key: 0,
7
+ class: "fbk-pie-chart__center"
8
+ };
9
+ const _hoisted_3 = {
10
+ key: 0,
11
+ class: "fbk-pie-chart__value"
12
+ };
13
+ const _hoisted_4 = {
14
+ key: 1,
15
+ class: "fbk-pie-chart__label"
16
+ };
17
+ const _sfc_main = /* @__PURE__ */ defineComponent({
18
+ ...{ name: "FbkPieChart", inheritAttrs: false },
19
+ __name: "PieChart",
20
+ props: {
21
+ data: {},
22
+ innerRadius: { default: 0.62 },
23
+ centerLabel: { default: void 0 },
24
+ centerValue: { default: void 0 },
25
+ title: { default: void 0 },
26
+ subtitle: { default: void 0 },
27
+ height: { default: void 0 },
28
+ loading: { type: Boolean, default: false },
29
+ empty: { type: Boolean, default: false },
30
+ emptyText: { default: "暂无数据" }
31
+ },
32
+ emits: ["error"],
33
+ setup(__props, { emit: __emit }) {
34
+ const emit = __emit;
35
+ const props = __props;
36
+ const attrs = useAttrs();
37
+ const option = computed(() => {
38
+ const inner = Math.round(props.innerRadius * 100);
39
+ return {
40
+ tooltip: { trigger: "item", formatter: "{b}: {c} ({d}%)" },
41
+ legend: {
42
+ // 图例放右侧竖排:饼图本身要占满左侧空间
43
+ orient: "vertical",
44
+ right: 0,
45
+ top: "middle",
46
+ itemGap: 12,
47
+ icon: "circle",
48
+ itemWidth: 8,
49
+ itemHeight: 8,
50
+ textStyle: { color: CHART_AXIS_LABEL }
51
+ },
52
+ series: [
53
+ {
54
+ type: "pie",
55
+ // 环形图才有内径
56
+ radius: [`${inner}%`, "72%"],
57
+ center: ["38%", "50%"],
58
+ avoidLabelOverlap: true,
59
+ itemStyle: {
60
+ // 分隔线用卡片底色,形成"切开的缝"效果
61
+ borderColor: "var(--fbk-color-bg-container)",
62
+ borderWidth: 2,
63
+ borderRadius: 2
64
+ },
65
+ label: { show: false },
66
+ labelLine: { show: false },
67
+ data: props.data.map((d, i) => ({
68
+ name: d.name,
69
+ value: d.value,
70
+ itemStyle: { color: seriesColor(i, d.color) }
71
+ }))
72
+ }
73
+ ]
74
+ };
75
+ });
76
+ const showCenter = computed(() => props.innerRadius > 0 && (props.centerValue !== void 0 || props.centerLabel));
77
+ return (_ctx, _cache) => {
78
+ return openBlock(), createBlock(_sfc_main$1, mergeProps(unref(attrs), {
79
+ title: __props.title,
80
+ subtitle: __props.subtitle,
81
+ loading: __props.loading,
82
+ empty: __props.empty,
83
+ "empty-text": __props.emptyText
84
+ }), createSlots({
85
+ default: withCtx(() => [
86
+ createElementVNode("div", _hoisted_1, [
87
+ createVNode(unref(FbkChart), {
88
+ onError: _cache[0] || (_cache[0] = (e) => emit("error", e)),
89
+ option: option.value,
90
+ height: __props.height,
91
+ loading: __props.loading,
92
+ "is-empty": __props.empty || !__props.data.length,
93
+ "empty-text": __props.emptyText
94
+ }, null, 8, ["option", "height", "loading", "is-empty", "empty-text"]),
95
+ showCenter.value ? (openBlock(), createElementBlock("div", _hoisted_2, [
96
+ __props.centerValue !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(__props.centerValue), 1)) : createCommentVNode("", true),
97
+ __props.centerLabel ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(__props.centerLabel), 1)) : createCommentVNode("", true)
98
+ ])) : createCommentVNode("", true)
99
+ ])
100
+ ]),
101
+ _: 2
102
+ }, [
103
+ _ctx.$slots.extra ? {
104
+ name: "extra",
105
+ fn: withCtx(() => [
106
+ renderSlot(_ctx.$slots, "extra")
107
+ ]),
108
+ key: "0"
109
+ } : void 0
110
+ ]), 1040, ["title", "subtitle", "loading", "empty", "empty-text"]);
111
+ };
112
+ }
113
+ });
114
+ export {
115
+ _sfc_main as default
116
+ };
117
+ //# sourceMappingURL=PieChart.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PieChart.vue.mjs","sources":["../src/PieChart.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport { FbkChart, CHART_AXIS_LABEL, seriesColor } from '@fbkworks/chart-core'\nimport FbkChartCard from './ChartCard.vue'\nimport type { PieChartProps } from './types'\n\n/**\n * 饼图 / 环形图。\n *\n * 默认环形(innerRadius 0.62):环形比实心饼更容易读,\n * 而且中心可以放总计 —— 这是数据看板的高频需求。\n */\nconst emit = defineEmits<{ error: [error: unknown] }>()\n\ndefineOptions({ name: 'FbkPieChart', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<PieChartProps>(), {\n title: undefined,\n subtitle: undefined,\n height: undefined,\n loading: false,\n empty: false,\n emptyText: '暂无数据',\n innerRadius: 0.62,\n centerLabel: undefined,\n centerValue: undefined,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst option = computed(() => {\n const inner = Math.round(props.innerRadius * 100)\n return {\n tooltip: { trigger: 'item', formatter: '{b}: {c} ({d}%)' },\n legend: {\n // 图例放右侧竖排:饼图本身要占满左侧空间\n orient: 'vertical',\n right: 0,\n top: 'middle',\n itemGap: 12,\n icon: 'circle',\n itemWidth: 8,\n itemHeight: 8,\n textStyle: { color: CHART_AXIS_LABEL },\n },\n series: [\n {\n type: 'pie',\n // 环形图才有内径\n radius: [`${inner}%`, '72%'],\n center: ['38%', '50%'],\n avoidLabelOverlap: true,\n itemStyle: {\n // 分隔线用卡片底色,形成\"切开的缝\"效果\n borderColor: 'var(--fbk-color-bg-container)',\n borderWidth: 2,\n borderRadius: 2,\n },\n label: { show: false },\n labelLine: { show: false },\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})\n\nconst showCenter = computed(() => props.innerRadius > 0 && (props.centerValue !== undefined || props.centerLabel))\n</script>\n\n<template>\n <FbkChartCard v-bind=\"attrs\"\n :title=\"title\"\n :subtitle=\"subtitle\"\n :loading=\"loading\"\n :empty=\"empty\"\n :empty-text=\"emptyText\"\n >\n <template v-if=\"$slots.extra\" #extra><slot name=\"extra\" /></template>\n <div class=\"fbk-pie-chart\">\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=\"emptyText\"\n />\n <!-- 中心文案叠在图表上,而不是用 ECharts 的 graphic ——\n 用 DOM 才能跟随主题变量与字体设置 -->\n <div v-if=\"showCenter\" class=\"fbk-pie-chart__center\">\n <span v-if=\"centerValue !== undefined\" class=\"fbk-pie-chart__value\">{{ centerValue }}</span>\n <span v-if=\"centerLabel\" class=\"fbk-pie-chart__label\">{{ centerLabel }}</span>\n </div>\n </div>\n </FbkChartCard>\n</template>\n"],"names":["_createBlock","FbkChartCard","_mergeProps","_unref","_createElementVNode","_createVNode","_openBlock","_createElementBlock","_toDisplayString","$slots","_renderSlot"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYA,UAAM,OAAO;AAIb,UAAM,QAAQ;AAad,UAAM,QAAQ,SAAA;AAEd,UAAM,SAAS,SAAS,MAAM;AAC5B,YAAM,QAAQ,KAAK,MAAM,MAAM,cAAc,GAAG;AAChD,aAAO;AAAA,QACL,SAAS,EAAE,SAAS,QAAQ,WAAW,kBAAA;AAAA,QACvC,QAAQ;AAAA;AAAA,UAEN,QAAQ;AAAA,UACR,OAAO;AAAA,UACP,KAAK;AAAA,UACL,SAAS;AAAA,UACT,MAAM;AAAA,UACN,WAAW;AAAA,UACX,YAAY;AAAA,UACZ,WAAW,EAAE,OAAO,iBAAA;AAAA,QAAiB;AAAA,QAEvC,QAAQ;AAAA,UACN;AAAA,YACE,MAAM;AAAA;AAAA,YAEN,QAAQ,CAAC,GAAG,KAAK,KAAK,KAAK;AAAA,YAC3B,QAAQ,CAAC,OAAO,KAAK;AAAA,YACrB,mBAAmB;AAAA,YACnB,WAAW;AAAA;AAAA,cAET,aAAa;AAAA,cACb,aAAa;AAAA,cACb,cAAc;AAAA,YAAA;AAAA,YAEhB,OAAO,EAAE,MAAM,MAAA;AAAA,YACf,WAAW,EAAE,MAAM,MAAA;AAAA,YACnB,MAAM,MAAM,KAAK,IAAI,CAAC,GAAG,OAAO;AAAA,cAC9B,MAAM,EAAE;AAAA,cACR,OAAO,EAAE;AAAA,cACT,WAAW,EAAE,OAAO,YAAY,GAAG,EAAE,KAAK,EAAA;AAAA,YAAE,EAC5C;AAAA,UAAA;AAAA,QACJ;AAAA,MACF;AAAA,IAEJ,CAAC;AAED,UAAM,aAAa,SAAS,MAAM,MAAM,cAAc,MAAM,MAAM,gBAAgB,UAAa,MAAM,YAAY;;0BAI/GA,YAwBeC,aAxBfC,WAwBeC,MAAA,KAAA,GAxBY;AAAA,QACxB,OAAO,QAAA;AAAA,QACP,UAAU,QAAA;AAAA,QACV,SAAS,QAAA;AAAA,QACT,OAAO,QAAA;AAAA,QACP,cAAY,QAAA;AAAA,MAAA;yBAGb,MAeM;AAAA,UAfNC,mBAeM,OAfN,YAeM;AAAA,YAdJC,YAOEF,MAAA,QAAA,GAAA;AAAA,cAND,SAAK,OAAA,CAAA,MAAA,OAAA,CAAA,IAAA,CAAG,MAAe,cAAc,CAAC;AAAA,cACpC,QAAQ,OAAA;AAAA,cACR,QAAQ,QAAA;AAAA,cACR,SAAS,QAAA;AAAA,cACT,YAAU,QAAA,SAAK,CAAK,QAAA,KAAK;AAAA,cACzB,cAAY,QAAA;AAAA,YAAA;YAIJ,WAAA,SAAXG,UAAA,GAAAC,mBAGM,OAHN,YAGM;AAAA,cAFQ,QAAA,gBAAgB,uBAA5BA,mBAA4F,QAA5F,YAA4FC,gBAArB,QAAA,WAAW,GAAA,CAAA;cACtE,QAAA,4BAAZD,mBAA8E,QAA9E,YAA8EC,gBAArB,QAAA,WAAW,GAAA,CAAA;;;;;;QAdxDC,KAAAA,OAAO;gBAAQ;AAAA,sBAAM,MAAqB;AAAA,YAArBC,WAAqB,KAAA,QAAA,OAAA;AAAA,UAAA;;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./PieChart.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
5
+ //# sourceMappingURL=PieChart2.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PieChart2.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,7 @@
1
+ import { RankListProps } from './types.js';
2
+ declare const _default: import('vue').DefineComponent<RankListProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<RankListProps> & Readonly<{}>, {
3
+ max: number;
4
+ formatter: (value: number) => string;
5
+ limit: number;
6
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
7
+ export default _default;
@@ -0,0 +1,63 @@
1
+ import { defineComponent, useAttrs, computed, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, createElementVNode, normalizeClass, toDisplayString, normalizeStyle } from "vue";
2
+ const _hoisted_1 = ["data-rank"];
3
+ const _hoisted_2 = ["title"];
4
+ const _hoisted_3 = { class: "fbk-rank-list__bar" };
5
+ const _hoisted_4 = { class: "fbk-rank-list__value" };
6
+ const _sfc_main = /* @__PURE__ */ defineComponent({
7
+ ...{ name: "FbkRankList", inheritAttrs: false },
8
+ __name: "RankList",
9
+ props: {
10
+ data: {},
11
+ max: { default: void 0 },
12
+ formatter: { type: Function, default: void 0 },
13
+ limit: { default: void 0 }
14
+ },
15
+ setup(__props) {
16
+ const props = __props;
17
+ const attrs = useAttrs();
18
+ const rows = computed(() => {
19
+ const list = props.limit ? props.data.slice(0, props.limit) : props.data;
20
+ const maxValue = props.max ?? Math.max(...list.map((d) => d.value), 0);
21
+ return list.map((item, index) => ({
22
+ ...item,
23
+ rank: index + 1,
24
+ // 宽度百分比。maxValue 为 0 时全部为 0,避免除零得到 NaN
25
+ percent: maxValue > 0 ? Math.max(item.value / maxValue * 100, 2) : 0,
26
+ display: props.formatter ? props.formatter(item.value) : String(item.value)
27
+ }));
28
+ });
29
+ function barColor(rank) {
30
+ return rank <= 3 ? `var(--fbk-chart-${rank})` : "var(--fbk-color-border)";
31
+ }
32
+ return (_ctx, _cache) => {
33
+ return openBlock(), createElementBlock("ol", mergeProps({ class: "fbk-rank-list" }, unref(attrs)), [
34
+ (openBlock(true), createElementBlock(Fragment, null, renderList(rows.value, (row) => {
35
+ return openBlock(), createElementBlock("li", {
36
+ key: row.name,
37
+ class: "fbk-rank-list__row",
38
+ "data-rank": row.rank
39
+ }, [
40
+ createElementVNode("span", {
41
+ class: normalizeClass(["fbk-rank-list__rank", { "is-top": row.rank <= 3 }])
42
+ }, toDisplayString(row.rank), 3),
43
+ createElementVNode("span", {
44
+ class: "fbk-rank-list__name",
45
+ title: row.name
46
+ }, toDisplayString(row.name), 9, _hoisted_2),
47
+ createElementVNode("span", _hoisted_3, [
48
+ createElementVNode("span", {
49
+ class: "fbk-rank-list__bar-fill",
50
+ style: normalizeStyle({ width: `${row.percent}%`, background: row.color ?? barColor(row.rank) })
51
+ }, null, 4)
52
+ ]),
53
+ createElementVNode("span", _hoisted_4, toDisplayString(row.display), 1)
54
+ ], 8, _hoisted_1);
55
+ }), 128))
56
+ ], 16);
57
+ };
58
+ }
59
+ });
60
+ export {
61
+ _sfc_main as default
62
+ };
63
+ //# sourceMappingURL=RankList.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RankList.vue.mjs","sources":["../src/RankList.vue"],"sourcesContent":["<script setup lang=\"ts\">\nimport { computed, useAttrs } from 'vue'\nimport type { RankListProps } from './types'\n\n/**\n * 排行榜。\n *\n * 用 DOM + CSS 而不是图表:条形图能画,但排行榜需要\"名次 + 名称 + 数值\"\n * 三列对齐,用图表实现反而要手工算布局。DOM 天然满足可访问性与响应式。\n */\ndefineOptions({ name: 'FbkRankList', inheritAttrs: false })\n\nconst props = withDefaults(defineProps<RankListProps>(), {\n max: undefined,\n formatter: undefined,\n limit: undefined,\n})\n\n/* inheritAttrs: false 时必须手动转发 attrs,否则调用方的 class/style 会丢失 */\nconst attrs = useAttrs()\n\nconst rows = computed(() => {\n const list = props.limit ? props.data.slice(0, props.limit) : props.data\n const maxValue = props.max ?? Math.max(...list.map((d) => d.value), 0)\n return list.map((item, index) => ({\n ...item,\n rank: index + 1,\n // 宽度百分比。maxValue 为 0 时全部为 0,避免除零得到 NaN\n percent: maxValue > 0 ? Math.max((item.value / maxValue) * 100, 2) : 0,\n display: props.formatter ? props.formatter(item.value) : String(item.value),\n }))\n})\n\n/** 前三名用色板前三位,其余用中性色 —— 超过三个高亮等于没有高亮 */\nfunction barColor(rank: number) {\n return rank <= 3 ? `var(--fbk-chart-${rank})` : 'var(--fbk-color-border)'\n}\n</script>\n\n<template>\n <ol class=\"fbk-rank-list\" v-bind=\"attrs\">\n <li v-for=\"row in rows\" :key=\"row.name\" class=\"fbk-rank-list__row\" :data-rank=\"row.rank\">\n <span class=\"fbk-rank-list__rank\" :class=\"{ 'is-top': row.rank <= 3 }\">{{ row.rank }}</span>\n <span class=\"fbk-rank-list__name\" :title=\"row.name\">{{ row.name }}</span>\n <span class=\"fbk-rank-list__bar\">\n <span\n class=\"fbk-rank-list__bar-fill\"\n :style=\"{ width: `${row.percent}%`, background: row.color ?? barColor(row.rank) }\"\n />\n </span>\n <span class=\"fbk-rank-list__value\">{{ row.display }}</span>\n </li>\n </ol>\n</template>\n"],"names":["_openBlock","_createElementBlock","_mergeProps","_unref","_Fragment","_renderList","_createElementVNode","_normalizeClass","_toDisplayString","_normalizeStyle"],"mappings":";;;;;;;;;;;;;;;AAYA,UAAM,QAAQ;AAOd,UAAM,QAAQ,SAAA;AAEd,UAAM,OAAO,SAAS,MAAM;AAC1B,YAAM,OAAO,MAAM,QAAQ,MAAM,KAAK,MAAM,GAAG,MAAM,KAAK,IAAI,MAAM;AACpE,YAAM,WAAW,MAAM,OAAO,KAAK,IAAI,GAAG,KAAK,IAAI,CAAC,MAAM,EAAE,KAAK,GAAG,CAAC;AACrE,aAAO,KAAK,IAAI,CAAC,MAAM,WAAW;AAAA,QAChC,GAAG;AAAA,QACH,MAAM,QAAQ;AAAA;AAAA,QAEd,SAAS,WAAW,IAAI,KAAK,IAAK,KAAK,QAAQ,WAAY,KAAK,CAAC,IAAI;AAAA,QACrE,SAAS,MAAM,YAAY,MAAM,UAAU,KAAK,KAAK,IAAI,OAAO,KAAK,KAAK;AAAA,MAAA,EAC1E;AAAA,IACJ,CAAC;AAGD,aAAS,SAAS,MAAc;AAC9B,aAAO,QAAQ,IAAI,mBAAmB,IAAI,MAAM;AAAA,IAClD;;AAIE,aAAAA,UAAA,GAAAC,mBAYK,MAZLC,WAYK,EAZD,OAAM,gBAAA,GAAwBC,MAAA,KAAA,CAAK,GAAA;AAAA,0BACrCF,mBAUKG,UAAA,MAAAC,WAVa,KAAA,OAAI,CAAX,QAAG;8BAAdJ,mBAUK,MAAA;AAAA,YAVoB,KAAK,IAAI;AAAA,YAAM,OAAM;AAAA,YAAsB,aAAW,IAAI;AAAA,UAAA;YACjFK,mBAA4F,QAAA;AAAA,cAAtF,OAAKC,eAAA,CAAC,uBAAqB,EAAA,UAAqB,IAAI,QAAI,GAAA,CAAA;AAAA,YAAA,GAAYC,gBAAA,IAAI,IAAI,GAAA,CAAA;AAAA,YAClFF,mBAAyE,QAAA;AAAA,cAAnE,OAAM;AAAA,cAAuB,OAAO,IAAI;AAAA,YAAA,GAASE,gBAAA,IAAI,IAAI,GAAA,GAAA,UAAA;AAAA,YAC/DF,mBAKO,QALP,YAKO;AAAA,cAJLA,mBAGE,QAAA;AAAA,gBAFA,OAAM;AAAA,gBACL,OAAKG,eAAA,EAAA,OAAA,GAAc,IAAI,OAAO,KAAA,YAAiB,IAAI,SAAS,SAAS,IAAI,IAAI,GAAA;AAAA,cAAA;;YAGlFH,mBAA2D,QAA3D,YAA2DE,gBAArB,IAAI,OAAO,GAAA,CAAA;AAAA,UAAA;;;;;;"}
@@ -0,0 +1,5 @@
1
+ import _sfc_main from "./RankList.vue.mjs";
2
+ export {
3
+ _sfc_main as default
4
+ };
5
+ //# sourceMappingURL=RankList2.vue.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RankList2.vue.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -0,0 +1,32 @@
1
+ import { StatCardProps } from './types.js';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: {
5
+ icon?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: any;
10
+ };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
12
+ declare const __VLS_component: import('vue').DefineComponent<StatCardProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
13
+ click: () => any;
14
+ }, string, import('vue').PublicProps, Readonly<StatCardProps> & Readonly<{
15
+ onClick?: (() => any) | undefined;
16
+ }>, {
17
+ loading: boolean;
18
+ prefix: string;
19
+ suffix: string;
20
+ precision: number;
21
+ change: number | null;
22
+ changeTone: import('./types.js').ChangeTone;
23
+ trend: number[];
24
+ clickable: boolean;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
26
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
27
+ export default _default;
28
+ type __VLS_WithTemplateSlots<T, S> = T & {
29
+ new (): {
30
+ $slots: S;
31
+ };
32
+ };