jojotaoo_components 0.0.1-beta.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 (115) hide show
  1. package/dist/assets/maps/heilongjiang.json +25543 -0
  2. package/dist/components/charts/BackgroundCard.vue.d.ts +17 -0
  3. package/dist/components/charts/BackgroundCard.vue.d.ts.map +1 -0
  4. package/dist/components/charts/BackgroundCard.vue.js +140 -0
  5. package/dist/components/charts/BarChart.vue.d.ts +20 -0
  6. package/dist/components/charts/BarChart.vue.d.ts.map +1 -0
  7. package/dist/components/charts/BarChart.vue.js +109 -0
  8. package/dist/components/charts/CustomLegend.vue.d.ts +28 -0
  9. package/dist/components/charts/CustomLegend.vue.d.ts.map +1 -0
  10. package/dist/components/charts/CustomLegend.vue.js +198 -0
  11. package/dist/components/charts/DataFetchManager.vue.d.ts +10 -0
  12. package/dist/components/charts/DataFetchManager.vue.d.ts.map +1 -0
  13. package/dist/components/charts/DataFetchManager.vue.js +127 -0
  14. package/dist/components/charts/DateTimeDisplay.vue.d.ts +17 -0
  15. package/dist/components/charts/DateTimeDisplay.vue.d.ts.map +1 -0
  16. package/dist/components/charts/DateTimeDisplay.vue.js +112 -0
  17. package/dist/components/charts/GroupComponent.vue.d.ts +13 -0
  18. package/dist/components/charts/GroupComponent.vue.d.ts.map +1 -0
  19. package/dist/components/charts/GroupComponent.vue.js +106 -0
  20. package/dist/components/charts/GroupPreview.vue.d.ts +10 -0
  21. package/dist/components/charts/GroupPreview.vue.d.ts.map +1 -0
  22. package/dist/components/charts/GroupPreview.vue.js +76 -0
  23. package/dist/components/charts/HeaderLineChart.vue.d.ts +17 -0
  24. package/dist/components/charts/HeaderLineChart.vue.d.ts.map +1 -0
  25. package/dist/components/charts/HeaderLineChart.vue.js +62 -0
  26. package/dist/components/charts/ImageDisplay.vue.d.ts +17 -0
  27. package/dist/components/charts/ImageDisplay.vue.d.ts.map +1 -0
  28. package/dist/components/charts/ImageDisplay.vue.js +106 -0
  29. package/dist/components/charts/LineChart.vue.d.ts +20 -0
  30. package/dist/components/charts/LineChart.vue.d.ts.map +1 -0
  31. package/dist/components/charts/LineChart.vue.js +116 -0
  32. package/dist/components/charts/MapChart.vue.d.ts +22 -0
  33. package/dist/components/charts/MapChart.vue.d.ts.map +1 -0
  34. package/dist/components/charts/MapChart.vue.js +680 -0
  35. package/dist/components/charts/PieChart.vue.d.ts +20 -0
  36. package/dist/components/charts/PieChart.vue.d.ts.map +1 -0
  37. package/dist/components/charts/PieChart.vue.js +106 -0
  38. package/dist/components/charts/PieGridChart.vue.d.ts +20 -0
  39. package/dist/components/charts/PieGridChart.vue.d.ts.map +1 -0
  40. package/dist/components/charts/PieGridChart.vue.js +214 -0
  41. package/dist/components/charts/RiskScrollList.vue.d.ts +15 -0
  42. package/dist/components/charts/RiskScrollList.vue.d.ts.map +1 -0
  43. package/dist/components/charts/RiskScrollList.vue.js +294 -0
  44. package/dist/components/charts/ScrollList.vue.d.ts +15 -0
  45. package/dist/components/charts/ScrollList.vue.d.ts.map +1 -0
  46. package/dist/components/charts/ScrollList.vue.js +149 -0
  47. package/dist/components/charts/TextDisplay.vue.d.ts +17 -0
  48. package/dist/components/charts/TextDisplay.vue.d.ts.map +1 -0
  49. package/dist/components/charts/TextDisplay.vue.js +209 -0
  50. package/dist/composables/useChartDataFetch.d.ts +18 -0
  51. package/dist/composables/useChartDataFetch.d.ts.map +1 -0
  52. package/dist/composables/useChartDataFetch.js +131 -0
  53. package/dist/composables/useComponentRender.d.ts +20 -0
  54. package/dist/composables/useComponentRender.d.ts.map +1 -0
  55. package/dist/composables/useComponentRender.js +45 -0
  56. package/dist/composables/useDataPondManager.d.ts +20 -0
  57. package/dist/composables/useDataPondManager.d.ts.map +1 -0
  58. package/dist/composables/useDataPondManager.js +105 -0
  59. package/dist/composables/useECharts.d.ts +9 -0
  60. package/dist/composables/useECharts.d.ts.map +1 -0
  61. package/dist/composables/useECharts.js +118 -0
  62. package/dist/composables/useEventListener.d.ts +2 -0
  63. package/dist/composables/useEventListener.d.ts.map +1 -0
  64. package/dist/composables/useEventListener.js +5 -0
  65. package/dist/composables/useId.d.ts +3 -0
  66. package/dist/composables/useId.d.ts.map +1 -0
  67. package/dist/composables/useId.js +6 -0
  68. package/dist/composables/useInteractClear.d.ts +4 -0
  69. package/dist/composables/useInteractClear.d.ts.map +1 -0
  70. package/dist/composables/useInteractClear.js +26 -0
  71. package/dist/composables/useInteractDispatch.d.ts +5 -0
  72. package/dist/composables/useInteractDispatch.d.ts.map +1 -0
  73. package/dist/composables/useInteractDispatch.js +44 -0
  74. package/dist/composables/useInteractFilter.d.ts +5 -0
  75. package/dist/composables/useInteractFilter.d.ts.map +1 -0
  76. package/dist/composables/useInteractFilter.js +24 -0
  77. package/dist/composables/usePollingManager.d.ts +10 -0
  78. package/dist/composables/usePollingManager.d.ts.map +1 -0
  79. package/dist/composables/usePollingManager.js +42 -0
  80. package/dist/composables/useRequestMerge.d.ts +32 -0
  81. package/dist/composables/useRequestMerge.d.ts.map +1 -0
  82. package/dist/composables/useRequestMerge.js +131 -0
  83. package/dist/config/chartThemes.d.ts +26 -0
  84. package/dist/config/chartThemes.d.ts.map +1 -0
  85. package/dist/config/chartThemes.js +221 -0
  86. package/dist/config/componentDefinitions.d.ts +12 -0
  87. package/dist/config/componentDefinitions.d.ts.map +1 -0
  88. package/dist/config/componentDefinitions.js +503 -0
  89. package/dist/index.cjs +1 -0
  90. package/dist/index.css +2 -0
  91. package/dist/index.d.ts +33 -0
  92. package/dist/index.d.ts.map +1 -0
  93. package/dist/index.js +38 -0
  94. package/dist/stores/dashboard.d.ts +3240 -0
  95. package/dist/stores/dashboard.d.ts.map +1 -0
  96. package/dist/stores/dashboard.js +666 -0
  97. package/dist/stores/utils.d.ts +15 -0
  98. package/dist/stores/utils.d.ts.map +1 -0
  99. package/dist/stores/utils.js +28 -0
  100. package/dist/types/canvas.d.ts +36 -0
  101. package/dist/types/canvas.d.ts.map +1 -0
  102. package/dist/types/canvas.js +1 -0
  103. package/dist/types/component.d.ts +175 -0
  104. package/dist/types/component.d.ts.map +1 -0
  105. package/dist/types/component.js +63 -0
  106. package/dist/types/events.d.ts +43 -0
  107. package/dist/types/events.d.ts.map +1 -0
  108. package/dist/types/events.js +1 -0
  109. package/dist/types/index.d.ts +5 -0
  110. package/dist/types/index.d.ts.map +1 -0
  111. package/dist/types/index.js +4 -0
  112. package/dist/types/request.d.ts +43 -0
  113. package/dist/types/request.d.ts.map +1 -0
  114. package/dist/types/request.js +18 -0
  115. package/package.json +33 -0
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ componentId?: string;
3
+ option?: Record<string, any>;
4
+ width?: number;
5
+ height?: number;
6
+ datetimeProps?: Record<string, any>;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ height: number;
10
+ option: Record<string, any>;
11
+ width: number;
12
+ componentId: string;
13
+ datetimeProps: Record<string, any>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ //# sourceMappingURL=DateTimeDisplay.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DateTimeDisplay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/DateTimeDisplay.vue"],"names":[],"mappings":"AAuGA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACpC,CAAC;AA+IF,QAAA,MAAM,YAAY;YAjJP,MAAM;YAFN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACpB,MAAM;iBAFA,MAAM;mBAIJ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;6EAmJnC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,112 @@
1
+ import { ref, computed, onMounted, onUnmounted, watch } from 'vue';
2
+ const props = withDefaults(defineProps(), {
3
+ componentId: '',
4
+ option: () => ({}),
5
+ width: 400,
6
+ height: 60,
7
+ datetimeProps: () => ({}),
8
+ });
9
+ const now = ref(new Date());
10
+ let timer = null;
11
+ const dp = computed(() => props.datetimeProps ?? {});
12
+ const showYear = computed(() => dp.value.showYear !== false);
13
+ const showDate = computed(() => dp.value.showDate !== false);
14
+ const showWeekday = computed(() => dp.value.showWeekday !== false);
15
+ const showTime = computed(() => dp.value.showTime !== false);
16
+ const autoUpdate = computed(() => dp.value.autoUpdate !== false);
17
+ const refreshInterval = computed(() => dp.value.refreshInterval ?? 1000);
18
+ const year = computed(() => now.value.getFullYear());
19
+ const month = computed(() => String(now.value.getMonth() + 1).padStart(2, '0'));
20
+ const day = computed(() => String(now.value.getDate()).padStart(2, '0'));
21
+ const hour = computed(() => String(now.value.getHours()).padStart(2, '0'));
22
+ const minute = computed(() => String(now.value.getMinutes()).padStart(2, '0'));
23
+ const second = computed(() => String(now.value.getSeconds()).padStart(2, '0'));
24
+ const weekdayNames = ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
25
+ const weekday = computed(() => weekdayNames[now.value.getDay()]);
26
+ const wrapStyle = computed(() => ({
27
+ fontSize: (dp.value.fontSize ?? 24) + 'px',
28
+ color: dp.value.textColor ?? '#cdd6f4',
29
+ justifyContent: dp.value.textAlign === 'left' ? 'flex-start' : dp.value.textAlign === 'right' ? 'flex-end' : 'center',
30
+ }));
31
+ function startTimer() {
32
+ stopTimer();
33
+ if (autoUpdate.value) {
34
+ timer = setInterval(() => {
35
+ now.value = new Date();
36
+ }, refreshInterval.value);
37
+ }
38
+ }
39
+ function stopTimer() {
40
+ if (timer !== null) {
41
+ clearInterval(timer);
42
+ timer = null;
43
+ }
44
+ }
45
+ watch([autoUpdate, refreshInterval], () => {
46
+ startTimer();
47
+ });
48
+ onMounted(() => {
49
+ startTimer();
50
+ });
51
+ onUnmounted(() => {
52
+ stopTimer();
53
+ });
54
+ const __VLS_defaults = {
55
+ componentId: '',
56
+ option: () => ({}),
57
+ width: 400,
58
+ height: 60,
59
+ datetimeProps: () => ({}),
60
+ };
61
+ const __VLS_ctx = {
62
+ ...{},
63
+ ...{},
64
+ ...{},
65
+ ...{},
66
+ };
67
+ let __VLS_components;
68
+ let __VLS_intrinsics;
69
+ let __VLS_directives;
70
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
71
+ ...{ class: "datetime-wrap" },
72
+ ...{ style: (__VLS_ctx.wrapStyle) },
73
+ });
74
+ /** @type {__VLS_StyleScopedClasses['datetime-wrap']} */ ;
75
+ if (__VLS_ctx.showYear) {
76
+ __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
77
+ ...{ class: "dt-part" },
78
+ });
79
+ /** @type {__VLS_StyleScopedClasses['dt-part']} */ ;
80
+ (__VLS_ctx.year);
81
+ }
82
+ if (__VLS_ctx.showDate) {
83
+ __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
84
+ ...{ class: "dt-part" },
85
+ });
86
+ /** @type {__VLS_StyleScopedClasses['dt-part']} */ ;
87
+ (__VLS_ctx.month);
88
+ (__VLS_ctx.day);
89
+ }
90
+ if (__VLS_ctx.showWeekday) {
91
+ __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
92
+ ...{ class: "dt-part" },
93
+ });
94
+ /** @type {__VLS_StyleScopedClasses['dt-part']} */ ;
95
+ (__VLS_ctx.weekday);
96
+ }
97
+ if (__VLS_ctx.showTime) {
98
+ __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
99
+ ...{ class: "dt-part" },
100
+ });
101
+ /** @type {__VLS_StyleScopedClasses['dt-part']} */ ;
102
+ (__VLS_ctx.hour);
103
+ (__VLS_ctx.minute);
104
+ (__VLS_ctx.second);
105
+ }
106
+ // @ts-ignore
107
+ [wrapStyle, showYear, year, showDate, month, day, showWeekday, weekday, showTime, hour, minute, second,];
108
+ const __VLS_export = (await import('vue')).defineComponent({
109
+ __typeProps: {},
110
+ props: {},
111
+ });
112
+ export default {};
@@ -0,0 +1,13 @@
1
+ import type { CanvasComponent } from '../../types';
2
+ import type { CreateComponentType } from '../../types';
3
+ type __VLS_Props = {
4
+ component?: CanvasComponent | CreateComponentType;
5
+ scale?: number;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
8
+ component: CanvasComponent | CreateComponentType;
9
+ scale: number;
10
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
11
+ declare const _default: typeof __VLS_export;
12
+ export default _default;
13
+ //# sourceMappingURL=GroupComponent.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupComponent.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/GroupComponent.vue"],"names":[],"mappings":"AAqGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAA;AAClD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAItD,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,eAAe,GAAG,mBAAmB,CAAA;IACjD,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAC;AAuHF,QAAA,MAAM,YAAY;eAzHJ,eAAe,GAAG,mBAAmB;WACzC,MAAM;6EA2Hd,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,106 @@
1
+ import { computed } from 'vue';
2
+ import { componentMap, getComponentProps } from '../../composables/useComponentRender';
3
+ import GroupComponent from './GroupComponent.vue';
4
+ import DataFetchManager from './DataFetchManager.vue';
5
+ import { useDashboardStore } from '../../stores/dashboard';
6
+ const store = useDashboardStore();
7
+ const props = withDefaults(defineProps(), {
8
+ component: undefined,
9
+ scale: 1,
10
+ });
11
+ const groupList = computed(() => props.component?.groupList ?? []);
12
+ function childStyle(child) {
13
+ return {
14
+ left: child.attr.x + 'px',
15
+ top: child.attr.y + 'px',
16
+ width: child.attr.w + 'px',
17
+ height: child.attr.h + 'px',
18
+ };
19
+ }
20
+ function isSelected(id) {
21
+ return store.selectedIds.includes(id);
22
+ }
23
+ function onChildClick(event, id) {
24
+ if (event.ctrlKey || event.metaKey) {
25
+ store.toggleSelectComponent(id);
26
+ }
27
+ else {
28
+ store.selectComponent(id);
29
+ }
30
+ }
31
+ const __VLS_defaults = {
32
+ component: undefined,
33
+ scale: 1,
34
+ };
35
+ const __VLS_ctx = {
36
+ ...{},
37
+ ...{},
38
+ ...{},
39
+ ...{},
40
+ };
41
+ let __VLS_components;
42
+ let __VLS_intrinsics;
43
+ let __VLS_directives;
44
+ /** @type {__VLS_StyleScopedClasses['group-child']} */ ;
45
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
46
+ ...{ class: "group-component" },
47
+ ...{ style: ({ backgroundColor: 'rgba(137, 180, 250, 0.06)' }) },
48
+ });
49
+ /** @type {__VLS_StyleScopedClasses['group-component']} */ ;
50
+ for (const [child] of __VLS_vFor((__VLS_ctx.groupList))) {
51
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
52
+ ...{ onClick: (...[$event]) => {
53
+ return __VLS_ctx.onChildClick($event, child.id);
54
+ // @ts-ignore
55
+ [groupList, onChildClick,];
56
+ } },
57
+ key: (child.id),
58
+ ...{ class: "group-child" },
59
+ ...{ class: ({ selected: __VLS_ctx.isSelected(child.id) }) },
60
+ ...{ style: (__VLS_ctx.childStyle(child)) },
61
+ 'data-comp-id': (child.id),
62
+ });
63
+ /** @type {__VLS_StyleScopedClasses['group-child']} */ ;
64
+ /** @type {__VLS_StyleScopedClasses['selected']} */ ;
65
+ if (child.isGroup) {
66
+ const __VLS_0 = GroupComponent;
67
+ // @ts-ignore
68
+ const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
69
+ component: (child),
70
+ scale: (__VLS_ctx.scale),
71
+ }));
72
+ const __VLS_2 = __VLS_1({
73
+ component: (child),
74
+ scale: (__VLS_ctx.scale),
75
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
76
+ }
77
+ else {
78
+ const __VLS_5 = (__VLS_ctx.componentMap[child.key]);
79
+ // @ts-ignore
80
+ const __VLS_6 = __VLS_asFunctionalComponent1(__VLS_5, new __VLS_5({
81
+ ...(__VLS_ctx.getComponentProps(child)),
82
+ }));
83
+ const __VLS_7 = __VLS_6({
84
+ ...(__VLS_ctx.getComponentProps(child)),
85
+ }, ...__VLS_functionalComponentArgsRest(__VLS_6));
86
+ }
87
+ const __VLS_10 = DataFetchManager;
88
+ // @ts-ignore
89
+ const __VLS_11 = __VLS_asFunctionalComponent1(__VLS_10, new __VLS_10({
90
+ componentId: (child.id),
91
+ mode: "design",
92
+ }));
93
+ const __VLS_12 = __VLS_11({
94
+ componentId: (child.id),
95
+ mode: "design",
96
+ }, ...__VLS_functionalComponentArgsRest(__VLS_11));
97
+ // @ts-ignore
98
+ [isSelected, childStyle, scale, componentMap, getComponentProps,];
99
+ }
100
+ // @ts-ignore
101
+ [];
102
+ const __VLS_export = (await import('vue')).defineComponent({
103
+ __typeProps: {},
104
+ props: {},
105
+ });
106
+ export default {};
@@ -0,0 +1,10 @@
1
+ import type { CreateComponentType } from '../../types';
2
+ type __VLS_Props = {
3
+ component?: CreateComponentType;
4
+ };
5
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
6
+ component: CreateComponentType;
7
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
8
+ declare const _default: typeof __VLS_export;
9
+ export default _default;
10
+ //# sourceMappingURL=GroupPreview.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GroupPreview.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/GroupPreview.vue"],"names":[],"mappings":"AAiEA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AAEtD,KAAK,WAAW,GAAG;IACjB,SAAS,CAAC,EAAE,mBAAmB,CAAA;CAChC,CAAC;AAqFF,QAAA,MAAM,YAAY;eAtFJ,mBAAmB;6EAyF/B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,76 @@
1
+ import { computed } from 'vue';
2
+ import { componentMap, getComponentProps } from '../../composables/useComponentRender';
3
+ import GroupPreview from './GroupPreview.vue';
4
+ import DataFetchManager from './DataFetchManager.vue';
5
+ const props = withDefaults(defineProps(), {
6
+ component: undefined,
7
+ });
8
+ const groupList = computed(() => props.component?.groupList ?? []);
9
+ const __VLS_defaults = {
10
+ component: undefined,
11
+ };
12
+ const __VLS_ctx = {
13
+ ...{},
14
+ ...{},
15
+ ...{},
16
+ ...{},
17
+ };
18
+ let __VLS_components;
19
+ let __VLS_intrinsics;
20
+ let __VLS_directives;
21
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
22
+ ...{ class: "group-preview" },
23
+ });
24
+ /** @type {__VLS_StyleScopedClasses['group-preview']} */ ;
25
+ for (const [child] of __VLS_vFor((__VLS_ctx.groupList))) {
26
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
27
+ key: (child.id),
28
+ ...{ class: "preview-child" },
29
+ ...{ style: ({
30
+ left: child.attr.x + 'px',
31
+ top: child.attr.y + 'px',
32
+ width: child.attr.w + 'px',
33
+ height: child.attr.h + 'px',
34
+ }) },
35
+ });
36
+ /** @type {__VLS_StyleScopedClasses['preview-child']} */ ;
37
+ if (child.isGroup) {
38
+ const __VLS_0 = GroupPreview;
39
+ // @ts-ignore
40
+ const __VLS_1 = __VLS_asFunctionalComponent1(__VLS_0, new __VLS_0({
41
+ component: (child),
42
+ }));
43
+ const __VLS_2 = __VLS_1({
44
+ component: (child),
45
+ }, ...__VLS_functionalComponentArgsRest(__VLS_1));
46
+ }
47
+ else {
48
+ const __VLS_5 = (__VLS_ctx.componentMap[child.key]);
49
+ // @ts-ignore
50
+ const __VLS_6 = __VLS_asFunctionalComponent1(__VLS_5, new __VLS_5({
51
+ ...(__VLS_ctx.getComponentProps(child)),
52
+ }));
53
+ const __VLS_7 = __VLS_6({
54
+ ...(__VLS_ctx.getComponentProps(child)),
55
+ }, ...__VLS_functionalComponentArgsRest(__VLS_6));
56
+ }
57
+ const __VLS_10 = DataFetchManager;
58
+ // @ts-ignore
59
+ const __VLS_11 = __VLS_asFunctionalComponent1(__VLS_10, new __VLS_10({
60
+ componentId: (child.id),
61
+ mode: "preview",
62
+ }));
63
+ const __VLS_12 = __VLS_11({
64
+ componentId: (child.id),
65
+ mode: "preview",
66
+ }, ...__VLS_functionalComponentArgsRest(__VLS_11));
67
+ // @ts-ignore
68
+ [groupList, componentMap, getComponentProps,];
69
+ }
70
+ // @ts-ignore
71
+ [];
72
+ const __VLS_export = (await import('vue')).defineComponent({
73
+ __typeProps: {},
74
+ props: {},
75
+ });
76
+ export default {};
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ componentId?: string;
3
+ option?: Record<string, any>;
4
+ width?: number;
5
+ height?: number;
6
+ lineProps?: Record<string, any>;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ height: number;
10
+ option: Record<string, any>;
11
+ width: number;
12
+ componentId: string;
13
+ lineProps: Record<string, any>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ //# sourceMappingURL=HeaderLineChart.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"HeaderLineChart.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/HeaderLineChart.vue"],"names":[],"mappings":"AAsEA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CAChC,CAAC;AA2EF,QAAA,MAAM,YAAY;YA7EP,MAAM;YAFN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACpB,MAAM;iBAFA,MAAM;eAIR,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;6EA+E/B,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,62 @@
1
+ import { computed } from 'vue';
2
+ const props = withDefaults(defineProps(), {
3
+ componentId: '',
4
+ option: () => ({}),
5
+ width: 400,
6
+ height: 1,
7
+ lineProps: () => ({}),
8
+ });
9
+ const lp = computed(() => props.lineProps ?? {});
10
+ const lineStyle = computed(() => {
11
+ const color = lp.value.lineColor ?? '#00c8ff';
12
+ const opacity = lp.value.lineOpacity ?? 0.3;
13
+ const direction = lp.value.lineDirection ?? 'right';
14
+ const h = lp.value.height ?? 1;
15
+ const marginX = lp.value.marginX ?? 24;
16
+ const dir = direction === 'left' ? '270deg' : direction === 'center' ? '90deg' : '90deg';
17
+ const dirLabel = direction === 'left' ? 'left' : 'center';
18
+ const gradient = dirLabel === 'center'
19
+ ? `linear-gradient(90deg, transparent, ${color}, transparent)`
20
+ : direction === 'left'
21
+ ? `linear-gradient(270deg, transparent, ${color})`
22
+ : `linear-gradient(90deg, transparent, ${color})`;
23
+ return {
24
+ height: h + 'px',
25
+ background: gradient,
26
+ opacity,
27
+ marginRight: direction === 'right' ? marginX + 'px' : '0',
28
+ marginLeft: direction === 'left' ? marginX + 'px' : '0',
29
+ };
30
+ });
31
+ const __VLS_defaults = {
32
+ componentId: '',
33
+ option: () => ({}),
34
+ width: 400,
35
+ height: 1,
36
+ lineProps: () => ({}),
37
+ };
38
+ const __VLS_ctx = {
39
+ ...{},
40
+ ...{},
41
+ ...{},
42
+ ...{},
43
+ };
44
+ let __VLS_components;
45
+ let __VLS_intrinsics;
46
+ let __VLS_directives;
47
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
48
+ ...{ class: "header-line-wrap" },
49
+ });
50
+ /** @type {__VLS_StyleScopedClasses['header-line-wrap']} */ ;
51
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
52
+ ...{ class: "header-line" },
53
+ ...{ style: (__VLS_ctx.lineStyle) },
54
+ });
55
+ /** @type {__VLS_StyleScopedClasses['header-line']} */ ;
56
+ // @ts-ignore
57
+ [lineStyle,];
58
+ const __VLS_export = (await import('vue')).defineComponent({
59
+ __typeProps: {},
60
+ props: {},
61
+ });
62
+ export default {};
@@ -0,0 +1,17 @@
1
+ type __VLS_Props = {
2
+ componentId?: string;
3
+ option?: Record<string, any>;
4
+ width?: number;
5
+ height?: number;
6
+ imageProps?: Record<string, any>;
7
+ };
8
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
9
+ height: number;
10
+ option: Record<string, any>;
11
+ width: number;
12
+ componentId: string;
13
+ imageProps: Record<string, any>;
14
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
+ declare const _default: typeof __VLS_export;
16
+ export default _default;
17
+ //# sourceMappingURL=ImageDisplay.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageDisplay.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/ImageDisplay.vue"],"names":[],"mappings":"AA4HA,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;CACjC,CAAC;AAgIF,QAAA,MAAM,YAAY;YAlIP,MAAM;YAFN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WACpB,MAAM;iBAFA,MAAM;gBAIP,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;6EAoIhC,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,106 @@
1
+ import { ref, watch } from 'vue';
2
+ const props = withDefaults(defineProps(), {
3
+ componentId: '',
4
+ option: () => ({}),
5
+ width: 400,
6
+ height: 300,
7
+ imageProps: () => ({}),
8
+ });
9
+ const imageUrl = ref('');
10
+ const localImageScale = ref('cover');
11
+ const localBorderRadius = ref(0);
12
+ const localOpacity = ref(1);
13
+ const localBorderWidth = ref(0);
14
+ const localBorderColor = ref('#45475a');
15
+ const localBgColor = ref('transparent');
16
+ function syncFromProps() {
17
+ const ip = props.imageProps ?? {};
18
+ imageUrl.value = props.option?.dataset ?? '';
19
+ localImageScale.value = ip.imageScale ?? 'cover';
20
+ localBorderRadius.value = ip.borderRadius ?? 0;
21
+ localOpacity.value = ip.opacity ?? 1;
22
+ localBorderWidth.value = ip.borderWidth ?? 0;
23
+ localBorderColor.value = ip.borderColor ?? '#45475a';
24
+ localBgColor.value = ip.bgColor ?? 'transparent';
25
+ }
26
+ function onImageError() {
27
+ imageUrl.value = '';
28
+ }
29
+ const containerStyle = ref({});
30
+ const imageStyle = ref({});
31
+ function rebuildStyles() {
32
+ containerStyle.value = {
33
+ backgroundColor: localBgColor.value,
34
+ borderRadius: `${localBorderRadius.value}px`,
35
+ width: '100%',
36
+ height: '100%',
37
+ boxSizing: 'border-box',
38
+ overflow: 'hidden',
39
+ display: 'flex',
40
+ alignItems: 'center',
41
+ justifyContent: 'center',
42
+ };
43
+ imageStyle.value = {
44
+ width: '100%',
45
+ height: '100%',
46
+ objectFit: localImageScale.value,
47
+ borderRadius: `${localBorderRadius.value}px`,
48
+ opacity: localOpacity.value,
49
+ border: localBorderWidth.value > 0 ? `${localBorderWidth.value}px solid ${localBorderColor.value}` : 'none',
50
+ };
51
+ }
52
+ watch(() => props.imageProps, syncFromProps, { deep: true, immediate: true });
53
+ watch(() => props.option, syncFromProps, { deep: true, immediate: true });
54
+ watch([imageUrl, localImageScale, localBorderRadius, localOpacity, localBorderWidth, localBorderColor, localBgColor], rebuildStyles, { immediate: true });
55
+ const __VLS_defaults = {
56
+ componentId: '',
57
+ option: () => ({}),
58
+ width: 400,
59
+ height: 300,
60
+ imageProps: () => ({}),
61
+ };
62
+ const __VLS_ctx = {
63
+ ...{},
64
+ ...{},
65
+ ...{},
66
+ ...{},
67
+ };
68
+ let __VLS_components;
69
+ let __VLS_intrinsics;
70
+ let __VLS_directives;
71
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
72
+ ...{ class: "image-display" },
73
+ ...{ style: (__VLS_ctx.containerStyle) },
74
+ });
75
+ /** @type {__VLS_StyleScopedClasses['image-display']} */ ;
76
+ if (__VLS_ctx.imageUrl) {
77
+ __VLS_asFunctionalElement1(__VLS_intrinsics.img)({
78
+ ...{ onError: (__VLS_ctx.onImageError) },
79
+ ...{ class: "image-content" },
80
+ src: (__VLS_ctx.imageUrl),
81
+ ...{ style: (__VLS_ctx.imageStyle) },
82
+ alt: "",
83
+ });
84
+ /** @type {__VLS_StyleScopedClasses['image-content']} */ ;
85
+ }
86
+ else {
87
+ __VLS_asFunctionalElement1(__VLS_intrinsics.div, __VLS_intrinsics.div)({
88
+ ...{ class: "image-placeholder" },
89
+ });
90
+ /** @type {__VLS_StyleScopedClasses['image-placeholder']} */ ;
91
+ __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
92
+ ...{ class: "placeholder-icon" },
93
+ });
94
+ /** @type {__VLS_StyleScopedClasses['placeholder-icon']} */ ;
95
+ __VLS_asFunctionalElement1(__VLS_intrinsics.span, __VLS_intrinsics.span)({
96
+ ...{ class: "placeholder-text" },
97
+ });
98
+ /** @type {__VLS_StyleScopedClasses['placeholder-text']} */ ;
99
+ }
100
+ // @ts-ignore
101
+ [containerStyle, imageUrl, imageUrl, onImageError, imageStyle,];
102
+ const __VLS_export = (await import('vue')).defineComponent({
103
+ __typeProps: {},
104
+ props: {},
105
+ });
106
+ export default {};
@@ -0,0 +1,20 @@
1
+ import type { ChartStyleConfig } from '../../types';
2
+ type __VLS_Props = {
3
+ componentId?: string;
4
+ option?: Record<string, any>;
5
+ width?: number;
6
+ height?: number;
7
+ bgColor?: string;
8
+ chartStyle?: ChartStyleConfig;
9
+ };
10
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
11
+ bgColor: string;
12
+ height: number;
13
+ option: Record<string, any>;
14
+ chartStyle: ChartStyleConfig;
15
+ width: number;
16
+ componentId: string;
17
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;
20
+ //# sourceMappingURL=LineChart.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LineChart.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/LineChart.vue"],"names":[],"mappings":"AA4HA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAGnD,KAAK,WAAW,GAAG;IACjB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAA;IAC5B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,gBAAgB,CAAA;CAC9B,CAAC;AAgIF,QAAA,MAAM,YAAY;aAlIN,MAAM;YADP,MAAM;YAFN,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;gBAIf,gBAAgB;WAHrB,MAAM;iBAFA,MAAM;6EAyIpB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}