g-ui-web 1.4.44 → 1.4.46

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/lib/style.css.gz CHANGED
Binary file
@@ -123,6 +123,10 @@ declare const GSubmarketMap: ({
123
123
  };
124
124
  default: () => {};
125
125
  };
126
+ blockLabelClass: {
127
+ type: StringConstructor;
128
+ default: string;
129
+ };
126
130
  }>> & Readonly<{
127
131
  "onHover-marker"?: ((...args: any[]) => any) | undefined;
128
132
  "onBlock-select"?: ((...args: any[]) => any) | undefined;
@@ -169,6 +173,7 @@ declare const GSubmarketMap: ({
169
173
  nameColor?: string;
170
174
  borderColor?: string;
171
175
  };
176
+ blockLabelClass: string;
172
177
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
173
178
  P: {};
174
179
  B: {};
@@ -300,6 +305,10 @@ declare const GSubmarketMap: ({
300
305
  };
301
306
  default: () => {};
302
307
  };
308
+ blockLabelClass: {
309
+ type: StringConstructor;
310
+ default: string;
311
+ };
303
312
  }>> & Readonly<{
304
313
  "onHover-marker"?: ((...args: any[]) => any) | undefined;
305
314
  "onBlock-select"?: ((...args: any[]) => any) | undefined;
@@ -339,6 +348,7 @@ declare const GSubmarketMap: ({
339
348
  nameColor?: string;
340
349
  borderColor?: string;
341
350
  };
351
+ blockLabelClass: string;
342
352
  }>;
343
353
  __isFragment?: never;
344
354
  __isTeleport?: never;
@@ -467,6 +477,10 @@ declare const GSubmarketMap: ({
467
477
  };
468
478
  default: () => {};
469
479
  };
480
+ blockLabelClass: {
481
+ type: StringConstructor;
482
+ default: string;
483
+ };
470
484
  }>> & Readonly<{
471
485
  "onHover-marker"?: ((...args: any[]) => any) | undefined;
472
486
  "onBlock-select"?: ((...args: any[]) => any) | undefined;
@@ -513,6 +527,7 @@ declare const GSubmarketMap: ({
513
527
  nameColor?: string;
514
528
  borderColor?: string;
515
529
  };
530
+ blockLabelClass: string;
516
531
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
517
532
  $slots: {
518
533
  "block-info"?(_: {
@@ -134,6 +134,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
134
134
  };
135
135
  default: () => {};
136
136
  };
137
+ blockLabelClass: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
137
141
  }>, {
138
142
  createInfoWindow: (opts?: any) => any;
139
143
  openInfoWindow: (content: any, position: any, opts?: any) => void;
@@ -270,6 +274,10 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
270
274
  };
271
275
  default: () => {};
272
276
  };
277
+ blockLabelClass: {
278
+ type: StringConstructor;
279
+ default: string;
280
+ };
273
281
  }>> & Readonly<{
274
282
  "onHover-marker"?: ((...args: any[]) => any) | undefined;
275
283
  "onBlock-select"?: ((...args: any[]) => any) | undefined;
@@ -304,6 +312,7 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
304
312
  nameColor?: string;
305
313
  borderColor?: string;
306
314
  };
315
+ blockLabelClass: string;
307
316
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
308
317
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
309
318
  export default _default;
@@ -28,11 +28,11 @@ declare const GTargetDeviation: ({
28
28
  props: any;
29
29
  targetDeviationRef: globalThis.Ref<null, null>;
30
30
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
31
+ max: string;
31
32
  type: string;
32
33
  size: string;
33
34
  dbOptions: Record<string, any>;
34
35
  tooltip: unknown[];
35
- max: string;
36
36
  min: string;
37
37
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
38
38
  P: {};
@@ -70,11 +70,11 @@ declare const GTargetDeviation: ({
70
70
  props: any;
71
71
  targetDeviationRef: globalThis.Ref<null, null>;
72
72
  }, {}, {}, {}, {
73
+ max: string;
73
74
  type: string;
74
75
  size: string;
75
76
  dbOptions: Record<string, any>;
76
77
  tooltip: unknown[];
77
- max: string;
78
78
  min: string;
79
79
  }>;
80
80
  __isFragment?: never;
@@ -109,11 +109,11 @@ declare const GTargetDeviation: ({
109
109
  props: any;
110
110
  targetDeviationRef: globalThis.Ref<null, null>;
111
111
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
112
+ max: string;
112
113
  type: string;
113
114
  size: string;
114
115
  dbOptions: Record<string, any>;
115
116
  tooltip: unknown[];
116
- max: string;
117
117
  min: string;
118
118
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & import('vue').Plugin) & Record<string, any>;
119
119
  export default GTargetDeviation;
@@ -52,11 +52,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
52
52
  default: () => {};
53
53
  };
54
54
  }>> & Readonly<{}>, {
55
+ max: string;
55
56
  type: string;
56
57
  size: string;
57
58
  dbOptions: Record<string, any>;
58
59
  tooltip: unknown[];
59
- max: string;
60
60
  min: string;
61
61
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
62
62
  export default _default;
@@ -54,4 +54,66 @@ export declare const typeIsEmpty: (item: any) => boolean;
54
54
  export default class ExportTable {
55
55
  constructor(exportConfig: any, searchParam: any[], header: any);
56
56
  }
57
+ /**
58
+ * 单位配置项
59
+ */
60
+ interface UnitConfig {
61
+ field: string;
62
+ unit: string;
63
+ }
64
+ /**
65
+ * 单位处理结果
66
+ */
67
+ interface UnitResult {
68
+ data: Record<string, any>[];
69
+ unitMap: Record<string, string>;
70
+ }
71
+ /**
72
+ * 合计配置
73
+ */
74
+ interface SummaryConfig {
75
+ sumFields: string[];
76
+ avgFields?: string[];
77
+ labelField?: string;
78
+ labelText?: string;
79
+ }
80
+ /**
81
+ * 单位处理函数
82
+ * @param data 原始数据数组
83
+ * @param unitConfigs 单位配置数组
84
+ * @param options.inferBy 推断方式:'avg' 按平均值(默认),'max' 按最大值
85
+ * @returns 处理后的数据和单位映射
86
+ */
87
+ export declare const formatUnit: (data: Record<string, any>[], unitConfigs: UnitConfig[], options?: {
88
+ inferBy?: "avg" | "max";
89
+ }) => UnitResult;
90
+ /**
91
+ * 同比计算函数
92
+ * @param data 原始数据数组
93
+ * @param config 配置项
94
+ * @returns 添加同比结果的数据数组
95
+ */
96
+ export declare const calcYearOverYear: (data: Record<string, any>[], config: {
97
+ timeField: string;
98
+ valueFields: string[];
99
+ }) => Record<string, any>[];
100
+ /**
101
+ * 环比计算函数
102
+ * @param data 原始数据数组
103
+ * @param config 配置项
104
+ * @returns 添加环比结果的数据数组
105
+ */
106
+ export declare const calcPeriodOverPeriod: (data: Record<string, any>[], config: {
107
+ timeField: string;
108
+ valueFields: string[];
109
+ }) => Record<string, any>[];
110
+ /**
111
+ * 合计计算函数
112
+ * @param data 原始数据数组
113
+ * @param config 合计配置
114
+ * @returns 添加合计行的数据数组
115
+ * @note sumFields 仅适用于可累加的数值字段(如金额、数量等)
116
+ * 百分比、比率类字段请使用 avgFields 求平均,不可放入 sumFields 求和
117
+ */
118
+ export declare const calcSummary: (data: Record<string, any>[], config: SummaryConfig) => Record<string, any>[];
57
119
  export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "g-ui-web",
3
3
  "private": false,
4
4
  "description": "可视化组件库",
5
- "version": "1.4.44",
5
+ "version": "1.4.46",
6
6
  "author": "wyu",
7
7
  "license": "MIT",
8
8
  "type": "module",