oxy-uni-ui 1.1.0 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/attributes.json +1 -1
  2. package/components/common/abstracts/variable.scss +59 -1
  3. package/components/common/path.ts +9 -0
  4. package/components/common/util.ts +42 -0
  5. package/components/composables/index.ts +1 -0
  6. package/components/composables/useGlobalLoading.ts +42 -0
  7. package/components/composables/useGlobalMessage.ts +48 -0
  8. package/components/composables/useGlobalToast.ts +84 -0
  9. package/components/composables/useVirtualScroll.ts +173 -0
  10. package/components/oxy-cell/oxy-cell.vue +15 -2
  11. package/components/oxy-cell/types.ts +4 -0
  12. package/components/oxy-checkbox/index.scss +1 -1
  13. package/components/oxy-checkbox/oxy-checkbox.vue +2 -2
  14. package/components/oxy-col-picker/oxy-col-picker.vue +3 -0
  15. package/components/oxy-col-picker/types.ts +5 -1
  16. package/components/oxy-corner/index.scss +121 -1
  17. package/components/oxy-corner/oxy-corner.vue +18 -5
  18. package/components/oxy-corner/types.ts +24 -3
  19. package/components/oxy-date-strip/index.scss +10 -0
  20. package/components/oxy-date-strip/oxy-date-strip.vue +198 -0
  21. package/components/oxy-date-strip/types.ts +98 -0
  22. package/components/oxy-date-strip/utils.ts +67 -0
  23. package/components/oxy-date-strip-item/index.scss +94 -0
  24. package/components/oxy-date-strip-item/oxy-date-strip-item.vue +102 -0
  25. package/components/oxy-date-strip-item/types.ts +53 -0
  26. package/components/oxy-datetime-picker/oxy-datetime-picker.vue +3 -1
  27. package/components/oxy-datetime-picker/types.ts +5 -1
  28. package/components/oxy-echarts/index.scss +17 -0
  29. package/components/oxy-echarts/index.ts +1 -0
  30. package/components/oxy-echarts/oxy-echarts.vue +32 -0
  31. package/components/oxy-echarts/types.ts +12 -0
  32. package/components/oxy-file-list/index.scss +26 -0
  33. package/components/oxy-file-list/oxy-file-list.vue +208 -34
  34. package/components/oxy-file-list/types.ts +58 -2
  35. package/components/oxy-global-loading/oxy-global-loading.vue +53 -0
  36. package/components/oxy-global-message/oxy-global-message.vue +64 -0
  37. package/components/oxy-global-toast/oxy-global-toast.vue +53 -0
  38. package/components/oxy-img-lazy/index.scss +17 -0
  39. package/components/oxy-img-lazy/oxy-img-lazy.vue +332 -0
  40. package/components/oxy-img-lazy/types.ts +69 -0
  41. package/components/oxy-link/index.scss +57 -0
  42. package/components/oxy-link/oxy-link.vue +130 -0
  43. package/components/oxy-link/types.ts +81 -0
  44. package/components/oxy-list/index.scss +8 -1
  45. package/components/oxy-list/oxy-list.vue +121 -40
  46. package/components/oxy-list/types.ts +3 -15
  47. package/components/oxy-picker/oxy-picker.vue +3 -0
  48. package/components/oxy-picker/types.ts +5 -1
  49. package/components/oxy-radio/index.scss +3 -3
  50. package/components/oxy-radio/oxy-radio.vue +1 -1
  51. package/components/oxy-rich-text/icon/emjio.svg +1 -0
  52. package/components/oxy-rich-text/icon/quote.svg +1 -0
  53. package/components/oxy-rich-text/icon/text.svg +1 -0
  54. package/components/oxy-rich-text/icon/title.svg +1 -0
  55. package/components/oxy-rich-text/index.scss +159 -0
  56. package/components/oxy-rich-text/mp-html/card/card.vue +122 -0
  57. package/components/oxy-rich-text/mp-html/card/index.js +7 -0
  58. package/components/oxy-rich-text/mp-html/editable/config.js +15 -0
  59. package/components/oxy-rich-text/mp-html/editable/index.js +553 -0
  60. package/components/oxy-rich-text/mp-html/emoji/index.js +203 -0
  61. package/components/oxy-rich-text/mp-html/highlight/config.js +5 -0
  62. package/components/oxy-rich-text/mp-html/highlight/index.js +96 -0
  63. package/components/oxy-rich-text/mp-html/highlight/prism.css +1 -0
  64. package/components/oxy-rich-text/mp-html/highlight/prism.min.js +7 -0
  65. package/components/oxy-rich-text/mp-html/img-cache/index.js +138 -0
  66. package/components/oxy-rich-text/mp-html/latex/index.js +80 -0
  67. package/components/oxy-rich-text/mp-html/latex/katex.css +1 -0
  68. package/components/oxy-rich-text/mp-html/latex/katex.min.js +1 -0
  69. package/components/oxy-rich-text/mp-html/markdown/index.js +50 -0
  70. package/components/oxy-rich-text/mp-html/markdown/marked.min.js +71 -0
  71. package/components/oxy-rich-text/mp-html/mp-html.d.ts +184 -0
  72. package/components/oxy-rich-text/mp-html/mp-html.vue +675 -0
  73. package/components/oxy-rich-text/mp-html/node/node.vue +1161 -0
  74. package/components/oxy-rich-text/mp-html/parser.js +1428 -0
  75. package/components/oxy-rich-text/mp-html/search/index.js +132 -0
  76. package/components/oxy-rich-text/mp-html/style/index.js +129 -0
  77. package/components/oxy-rich-text/mp-html/style/parser.js +175 -0
  78. package/components/oxy-rich-text/mp-html/template/index.js +67 -0
  79. package/components/oxy-rich-text/mp-html/txv-video/index.js +46 -0
  80. package/components/oxy-rich-text/oxy-rich-text.vue +642 -0
  81. package/components/oxy-rich-text/types.ts +71 -0
  82. package/components/oxy-select/index.scss +255 -0
  83. package/components/oxy-select/oxy-select.vue +421 -0
  84. package/components/oxy-select/types.ts +71 -0
  85. package/components/oxy-select-picker/oxy-select-picker.vue +3 -0
  86. package/components/oxy-select-picker/types.ts +5 -1
  87. package/components/oxy-stream-render/index.scss +6 -0
  88. package/components/oxy-stream-render/oxy-stream-render.vue +204 -0
  89. package/components/oxy-stream-render/types.ts +5 -0
  90. package/components/oxy-tree/index.scss +43 -5
  91. package/components/oxy-tree/oxy-tree.vue +233 -35
  92. package/components/oxy-tree/types.ts +54 -7
  93. package/components/oxy-tree/utils.ts +51 -0
  94. package/components/oxy-virtual-scroll/index.scss +1 -1
  95. package/components/oxy-virtual-scroll/oxy-virtual-scroll.vue +69 -110
  96. package/components/oxy-virtual-scroll/types.ts +95 -5
  97. package/components/oxy-waterfall/index.scss +18 -0
  98. package/components/oxy-waterfall/oxy-waterfall.vue +218 -0
  99. package/components/oxy-waterfall/types.ts +90 -0
  100. package/components/oxy-waterfall-item/index.scss +8 -0
  101. package/components/oxy-waterfall-item/oxy-waterfall-item.vue +89 -0
  102. package/components/oxy-waterfall-item/types.ts +16 -0
  103. package/global.d.ts +7 -0
  104. package/index.ts +3 -0
  105. package/locale/lang/en-US.ts +35 -9
  106. package/locale/lang/zh-CN.ts +31 -5
  107. package/oxy-uni-ui.zip +0 -0
  108. package/package.json +1 -1
  109. package/tags.json +1 -1
  110. package/uni-echarts/changelog.md +2 -0
  111. package/uni-echarts/components/index.js +1 -0
  112. package/uni-echarts/components/uni-echarts/events.js +95 -0
  113. package/uni-echarts/components/uni-echarts/types.d.ts +183 -0
  114. package/uni-echarts/components/uni-echarts/types.js +1 -0
  115. package/uni-echarts/components/uni-echarts/uni-echarts.vue +530 -0
  116. package/uni-echarts/components/uni-echarts/uni-echarts.vue.d.ts +19 -0
  117. package/uni-echarts/global.d.ts +7 -0
  118. package/uni-echarts/index.d.ts +440 -0
  119. package/uni-echarts/index.js +2 -0
  120. package/uni-echarts/package.json +105 -0
  121. package/uni-echarts/shared-core.d.ts +269 -0
  122. package/uni-echarts/shared-core.js +900 -0
  123. package/web-types.json +1 -1
@@ -0,0 +1,440 @@
1
+ import * as Echarts from 'echarts/core';
2
+ import { ECElementEvent, ElementEvent } from 'echarts/core';
3
+ import { InjectionKey, MaybeRefOrGetter, ComponentPublicInstance, Ref, ComputedRef, Reactive, StyleValue } from 'vue';
4
+
5
+ type OptionalValue<T> = T | undefined;
6
+ type NullableValue<T> = T | null;
7
+ type ExtractValue<T> = T[keyof T];
8
+
9
+ interface AllowedComponentProps {
10
+ class?: any;
11
+ style?: StyleValue;
12
+ }
13
+ type Injection<T> = MaybeRefOrGetter<NullableValue<T>>;
14
+
15
+ type InitType = typeof Echarts["init"];
16
+ type InitParameters = Parameters<InitType>;
17
+ type ChartTheme = NonNullable<InitParameters[1]>;
18
+ type ChartThemeInjection = Injection<ChartTheme>;
19
+ type InitOptions = NonNullable<InitParameters[2]>;
20
+ type InitOptionsInjection = Injection<InitOptions>;
21
+ type UpdateOptions = Echarts.SetOptionOpts;
22
+ type UpdateOptionsInjection = Injection<UpdateOptions>;
23
+ type EChartsType = ReturnType<InitType>;
24
+ type ZRenderType = ReturnType<EChartsType["getZr"]>;
25
+ type ZRenderHandler = ZRenderType["handler"];
26
+ type SetOptionType = EChartsType["setOption"];
27
+ type ChartOption = Parameters<SetOptionType>[0];
28
+ type ChartOptionInjection = Injection<ChartOption>;
29
+ interface LoadingOptions {
30
+ text?: string;
31
+ textColor?: string;
32
+ fontSize?: number | string;
33
+ fontWeight?: number | string;
34
+ fontStyle?: string;
35
+ fontFamily?: string;
36
+ maskColor?: string;
37
+ showSpinner?: boolean;
38
+ color?: string;
39
+ spinnerRadius?: number;
40
+ lineWidth?: number;
41
+ zlevel?: number;
42
+ }
43
+ type LoadingOptionsInjection = Injection<LoadingOptions>;
44
+
45
+ type CoreEcharts = typeof Echarts;
46
+ declare const ECHARTS_KEY: InjectionKey<CoreEcharts>;
47
+ declare function provideEcharts(echarts: CoreEcharts): void;
48
+ declare function useEcharts(): CoreEcharts;
49
+
50
+ type AutoResize = boolean | {
51
+ throttle?: number;
52
+ onResize?: () => void;
53
+ };
54
+ declare function useAutoresize(chart: Ref<NullableValue<EChartsType>>, { echarts, autoresize, root }: {
55
+ echarts: CoreEcharts;
56
+ autoresize: MaybeRefOrGetter<AutoResize>;
57
+ root: Ref<NullableValue<ComponentPublicInstance>>;
58
+ }): void;
59
+
60
+ declare const INIT_OPTIONS_KEY: InjectionKey<InitOptionsInjection>;
61
+ declare function provideEchartsInitOptions(value: InitOptionsInjection): void;
62
+ declare function useEchartsInitOptions(value: MaybeRefOrGetter<OptionalValue<InitOptions>>): {
63
+ injectInitOptions: ComputedRef<NullableValue<InitOptions>>;
64
+ innerInitOptions: ComputedRef<InitOptions>;
65
+ };
66
+
67
+ type VueThis = ComponentPublicInstance;
68
+ declare function useVueThis(): VueThis;
69
+
70
+ interface CanvasRect {
71
+ top: number;
72
+ left: number;
73
+ width: number;
74
+ height: number;
75
+ }
76
+ interface NormalizedTouch {
77
+ x: number;
78
+ y: number;
79
+ wheelDelta: number;
80
+ }
81
+ interface GetTouchFuc {
82
+ (event: TouchEvent, touches: Touch[]): NormalizedTouch;
83
+ (event: MouseEvent): NormalizedTouch;
84
+ (event: TouchEvent | MouseEvent, touches?: Touch[]): NormalizedTouch;
85
+ }
86
+ declare function useEchartsTouch({ vueThis, supportHover, isPc, canvasId, chart, canvasRect, getTouch }: {
87
+ vueThis: VueThis;
88
+ supportHover: MaybeRefOrGetter<boolean>;
89
+ isPc: boolean;
90
+ canvasId: string;
91
+ chart: Ref<NullableValue<EChartsType>>;
92
+ canvasRect: Reactive<CanvasRect>;
93
+ getTouch: GetTouchFuc;
94
+ }): {
95
+ onStart: (event: TouchEvent) => void;
96
+ onMove: (event: TouchEvent) => void;
97
+ onEnd: (event: TouchEvent) => void;
98
+ cleanup: () => void;
99
+ };
100
+
101
+ declare function useEchartsMouseWheel({ isPc, chart, getTouch }: {
102
+ isPc: boolean;
103
+ chart: Ref<NullableValue<EChartsType>>;
104
+ getTouch: GetTouchFuc;
105
+ }): void;
106
+
107
+ declare const OPTION_KEY = "UniEcharts.option";
108
+ declare function getEchartsOptionKey(key?: string): string;
109
+ declare function provideEchartsOption(value: ChartOptionInjection): void;
110
+ declare function provideEchartsOption(key: string, value: ChartOptionInjection): void;
111
+ declare function useEchartsOption(key: OptionalValue<string>, value: MaybeRefOrGetter<OptionalValue<ChartOption>>): {
112
+ injectOption: ComputedRef<NullableValue<ChartOption>>;
113
+ innerOption: ComputedRef<NullableValue<ChartOption>>;
114
+ };
115
+
116
+ declare const THEME_KEY: InjectionKey<ChartThemeInjection>;
117
+ declare function provideEchartsTheme(value: ChartThemeInjection): void;
118
+ declare function useEchartsTheme(value: MaybeRefOrGetter<OptionalValue<ChartTheme>>): {
119
+ injectTheme: ComputedRef<NullableValue<ChartTheme>>;
120
+ innerTheme: ComputedRef<ChartTheme>;
121
+ };
122
+
123
+ declare const UPDATE_OPTIONS_KEY: InjectionKey<UpdateOptionsInjection>;
124
+ declare function provideEchartsUpdateOptions(value: UpdateOptionsInjection): void;
125
+ declare function useEchartsUpdateOptions(value: MaybeRefOrGetter<OptionalValue<UpdateOptions>>): {
126
+ injectUpdateOptions: ComputedRef<NullableValue<UpdateOptions>>;
127
+ innerUpdateOptions: ComputedRef<UpdateOptions>;
128
+ };
129
+
130
+ declare const LOADING_OPTIONS_KEY: InjectionKey<LoadingOptionsInjection>;
131
+ declare function provideEchartsLoadingOptions(value: LoadingOptionsInjection): void;
132
+ declare function useLoading(chart: Ref<NullableValue<EChartsType>>, { loading, loadingOptions }: {
133
+ loading: MaybeRefOrGetter<boolean>;
134
+ loadingOptions: MaybeRefOrGetter<OptionalValue<LoadingOptions>>;
135
+ }): void;
136
+
137
+ declare const ECHARTS_APIS: readonly ["getWidth", "getHeight", "getDom", "getOption", "dispatchAction", "convertToPixel", "convertFromPixel", "containPixel", "getDataURL", "getConnectedDataURL", "appendData", "clear", "isDisposed", "dispose"];
138
+ type EChartsApi = (typeof ECHARTS_APIS)[number];
139
+ type PublicApi = Pick<EChartsType, EChartsApi>;
140
+ declare function usePublicApi(chart: Ref<NullableValue<EChartsType>>): PublicApi;
141
+
142
+ declare function useUid(): number;
143
+
144
+ type CanvasNode = UniApp.NodeCallbackResult["node"];
145
+ type CanvasContext = UniApp.CanvasContext;
146
+ declare class UniCanvas {
147
+ tagName: "canvas";
148
+ attrs: Record<string, any>;
149
+ canvasId: string;
150
+ context: CanvasContext;
151
+ canvasNode: NullableValue<CanvasNode>;
152
+ private _emitter;
153
+ constructor(canvasId: string, context: CanvasContext, canvasNode: NullableValue<CanvasNode>);
154
+ private _setupContext;
155
+ get width(): number;
156
+ set width(value: number);
157
+ get height(): number;
158
+ set height(value: number);
159
+ getContext(type: "2d"): OptionalValue<CanvasContext>;
160
+ setAttribute(key: string, value: any): void;
161
+ getAttribute(key: string): any;
162
+ addEventListener(type: string, listener: (event: Event) => void): void;
163
+ removeEventListener(type: string, listener: (event: Event) => void): void;
164
+ dispatchEvent(type: string | Event, event?: Event): boolean;
165
+ attachEvent(): void;
166
+ detachEvent(): void;
167
+ requestAnimationFrame(callback: () => void): number;
168
+ cancelAnimationFrame(id: number): void;
169
+ toTempFilePath(options?: Omit<UniApp.CanvasToTempFilePathOptions, "canvasId" | "canvas">): Promise<UniApp.CanvasToTempFilePathRes>;
170
+ static parseFontSize(font: OptionalValue<string>): number;
171
+ static normalizeColor(context: CanvasContext, color: string): string;
172
+ static normalizeColor(context: CanvasContext, color: object): object;
173
+ static dispatch(handler: ZRenderHandler, event: Parameters<ZRenderHandler["dispatch"]>[0], touch: Parameters<ZRenderHandler["dispatch"]>[1]): void;
174
+ }
175
+ declare class UniImage {
176
+ tagName: "img";
177
+ width: number;
178
+ height: number;
179
+ onload?: (res: UniApp.GetImageInfoSuccessData) => void;
180
+ onerror?: (err: any) => void;
181
+ private _src;
182
+ constructor();
183
+ get src(): NullableValue<string>;
184
+ set src(value: string);
185
+ }
186
+ declare function setupEchartsCanvas(echarts: CoreEcharts, { canvas, node }: {
187
+ canvas: UniCanvas;
188
+ node: NullableValue<CanvasNode>;
189
+ }): void;
190
+
191
+ declare function getIsPc(): boolean;
192
+
193
+ type BuiltInPlatform = "app" | "app-harmony" | "app-plus" | "h5" | "web" | "mp-360" | "mp-alipay" | "mp-baidu" | "mp-harmony" | "mp-jd" | "mp-kuaishou" | "mp-lark" | "mp-qq" | "mp-toutiao" | "mp-weixin" | "mp-xhs" | "quickapp-webview" | "quickapp-webview-huawei" | "quickapp-webview-union";
194
+ type AppPlatform = "android" | "ios" | "harmony" | undefined;
195
+ declare const platform: BuiltInPlatform;
196
+ declare const appPlatform: AppPlatform;
197
+ /** App */
198
+ declare const isApp: boolean;
199
+ /** Web */
200
+ declare const isWeb: boolean;
201
+ /** 小程序 */
202
+ declare const isMp: boolean;
203
+ /** 快应用 */
204
+ declare const isQuickapp: boolean;
205
+ /** App Android */
206
+ declare const isAppAndroid: boolean;
207
+ /** App iOS */
208
+ declare const isAppIos: boolean;
209
+ /** App HarmonyOS Next */
210
+ declare const isAppHarmony: boolean;
211
+ /** 360 小程序 */
212
+ declare const isMp360: boolean;
213
+ /** 支付宝小程序 */
214
+ declare const isMpAlipay: boolean;
215
+ /** 百度小程序 */
216
+ declare const isMpBaidu: boolean;
217
+ /** 鸿蒙元服务 */
218
+ declare const isMpHarmony: boolean;
219
+ /** 京东小程序 */
220
+ declare const isMpJd: boolean;
221
+ /** 快手小程序 */
222
+ declare const isMpKuaishou: boolean;
223
+ /** 飞书小程序 */
224
+ declare const isMpLark: boolean;
225
+ /** QQ 小程序 */
226
+ declare const isMpQq: boolean;
227
+ /** 头条小程序 */
228
+ declare const isMpToutiao: boolean;
229
+ /** 微信小程序 */
230
+ declare const isMpWeixin: boolean;
231
+ /** 小红书小程序 */
232
+ declare const isMpXhs: boolean;
233
+ /** 华为快应用 */
234
+ declare const isQuickappHuawei: boolean;
235
+ /** 快应用联盟 */
236
+ declare const isQuickappUnion: boolean;
237
+
238
+ declare function isEmpty(value: unknown): boolean;
239
+ declare function defaultTo<T = any>(value: unknown, ...defaultValues: unknown[]): T;
240
+ declare function sleep(timeout?: number): Promise<void>;
241
+ declare function upperFirst(value: string): string;
242
+ declare function lowerFirst(value: string): string;
243
+
244
+ type EventType = string | symbol;
245
+ type Handler<T = unknown> = (event: T) => void;
246
+ type WildcardHandler<T = Record<string, unknown>> = (topic: keyof T, event: T[keyof T]) => void;
247
+ type EventHandlerList<T = unknown> = Array<Handler<T>>;
248
+ type WildCardEventHandlerList<T = Record<string, unknown>> = Array<WildcardHandler<T>>;
249
+ type EventHandlerMap<Events extends Record<EventType, unknown>> = Map<keyof Events | "*", EventHandlerList<Events[keyof Events]> | WildCardEventHandlerList<Events>>;
250
+ interface Emitter<Events extends Record<EventType, unknown>> {
251
+ events: EventHandlerMap<Events>;
252
+ on<Topic extends keyof Events>(topic: Topic, handler: Handler<Events[Topic]>): void;
253
+ on(topic: "*", handler: WildcardHandler<Events>): void;
254
+ off<Topic extends keyof Events>(topic: Topic, handler?: Handler<Events[Topic]>): void;
255
+ off(topic: "*", handler: WildcardHandler<Events>): void;
256
+ emit<Topic extends keyof Events>(topic: Topic, event: Events[Topic]): void;
257
+ emit<Topic extends keyof Events>(topic: undefined extends Events[Topic] ? Topic : never): void;
258
+ }
259
+ declare function mitt<Events extends Record<EventType, unknown>>(events?: EventHandlerMap<Events>): Emitter<Events>;
260
+
261
+ declare function getDeviceInfo(): UniApp.GetDeviceInfoResult | UniApp.GetSystemInfoResult;
262
+ declare function getWindowInfo(): UniApp.GetWindowInfoResult | UniApp.GetSystemInfoResult;
263
+ declare function getAppBaseInfo(): UniApp.GetAppBaseInfoResult | UniApp.GetSystemInfoResult;
264
+ declare function getVersion(): string;
265
+ declare function compareVersion(v1: string, v2: string): 0 | 1 | -1;
266
+ declare function canIUseCanvas2d(): boolean;
267
+ declare function querySelect(component: VueThis, selector: string, fields: UniApp.NodeField): Promise<UniApp.NodeInfo>;
268
+
269
+ interface UniEchartsProps {
270
+ /**
271
+ * Custom root el class.
272
+ */
273
+ customClass?: any;
274
+ /**
275
+ * Custom root el style.
276
+ */
277
+ customStyle?: StyleValue;
278
+ /**
279
+ * Same as the option of echarts.
280
+ */
281
+ option?: ChartOption;
282
+ /**
283
+ * Option inject key.
284
+ */
285
+ optionKey?: string;
286
+ /**
287
+ * Theme to be applied.
288
+ */
289
+ theme?: ChartTheme;
290
+ /**
291
+ * Optional chart init configurations.
292
+ */
293
+ initOptions?: InitOptions;
294
+ /**
295
+ * Options for updating chart option.
296
+ */
297
+ updateOptions?: UpdateOptions;
298
+ /**
299
+ * Group name to be used in chart connection.
300
+ */
301
+ group?: string;
302
+ /**
303
+ * For performance critical scenarios (having a large dataset) we'd better bypass Vue's reactivity system for `option` prop.
304
+ */
305
+ manualUpdate?: boolean;
306
+ /**
307
+ * Whether the chart should be resized automatically whenever its root is resized.
308
+ */
309
+ autoresize?: AutoResize;
310
+ /**
311
+ * Whether the chart is in loading state.
312
+ */
313
+ loading?: boolean;
314
+ /**
315
+ * Configuration item of loading animation.
316
+ */
317
+ loadingOptions?: LoadingOptions;
318
+ /**
319
+ * Canvas type.
320
+ */
321
+ canvasType?: "2d" | "legacy";
322
+ /**
323
+ * Prevent screen scroll when touching the canvas.
324
+ */
325
+ disableScroll?: boolean;
326
+ /**
327
+ * Support mouse hover behavior in PC.
328
+ */
329
+ supportHover?: boolean;
330
+ /**
331
+ * Init delay time(ms).
332
+ */
333
+ initDelay?: number;
334
+ }
335
+
336
+ type MouseEventName =
337
+ | "click"
338
+ | "dblclick"
339
+ | "mouseout"
340
+ | "mouseover"
341
+ | "mouseup"
342
+ | "mousedown"
343
+ | "mousemove"
344
+ | "contextmenu"
345
+ | "globalout";
346
+
347
+ type ElementEventName =
348
+ | MouseEventName
349
+ | "mousewheel"
350
+ | "drag"
351
+ | "dragstart"
352
+ | "dragend"
353
+ | "dragenter"
354
+ | "dragleave"
355
+ | "dragover"
356
+ | "drop";
357
+
358
+ type ZRenderEventName = `zr:${ElementEventName}`;
359
+
360
+ type OtherEventName =
361
+ | "highlight"
362
+ | "downplay"
363
+ | "selectchanged"
364
+ | "legendselectchanged"
365
+ | "legendselected"
366
+ | "legendunselected"
367
+ | "legendselectall"
368
+ | "legendinverseselect"
369
+ | "legendscroll"
370
+ | "datazoom"
371
+ | "datarangeselected"
372
+ | "graphroam"
373
+ | "georoam"
374
+ | "treeroam"
375
+ | "timelinechanged"
376
+ | "timelineplaychanged"
377
+ | "restore"
378
+ | "dataviewchanged"
379
+ | "magictypechanged"
380
+ | "geoselectchanged"
381
+ | "geoselected"
382
+ | "geounselected"
383
+ | "axisareaselected"
384
+ | "brush"
385
+ | "brushEnd"
386
+ | "brushselected"
387
+ | "globalcursortaken"
388
+ | "showtip"
389
+ | "hidetip";
390
+
391
+ type UniEventName =
392
+ | "touchstart"
393
+ | "touchmove"
394
+ | "touchcancel"
395
+ | "touchend"
396
+ | "tap"
397
+ | "longpress"
398
+ | "longtap"
399
+ | "transitionend"
400
+ | "animationstart"
401
+ | "animationiteration"
402
+ | "animationend"
403
+ | "touchforcechange";
404
+
405
+ type NativeEventName = `native:${ElementEventName}` | `native:${UniEventName}`;
406
+
407
+ type MouseEmits = {
408
+ [key in MouseEventName]: (params: ECElementEvent) => void;
409
+ };
410
+
411
+ type ZRenderEmits = {
412
+ [key in ZRenderEventName]: (params: ElementEvent) => void;
413
+ };
414
+
415
+ type OtherEmits = {
416
+ [key in OtherEventName]: (params: any) => void;
417
+ };
418
+
419
+ type NativeEmits = {
420
+ [key in NativeEventName]: (params: any) => void;
421
+ };
422
+
423
+ type UniEchartsEmits = MouseEmits & ZRenderEmits & OtherEmits & NativeEmits & {
424
+ rendered: (params: { elapsedTime: number }) => void;
425
+ finished: () => void;
426
+ inited: () => void;
427
+ };
428
+
429
+ interface UniEchartsInst extends PublicApi, Pick<
430
+ EChartsType,
431
+ "setOption" | "resize"
432
+ > {
433
+ root: NullableValue<HTMLElement>;
434
+ canvasId: string;
435
+ chart: NullableValue<EChartsType>;
436
+ toTempFilePath: (options?: Omit<UniApp.CanvasToTempFilePathOptions, "canvasId" | "canvas">) => Promise<UniApp.CanvasToTempFilePathRes>;
437
+ }
438
+
439
+ export { ECHARTS_KEY, INIT_OPTIONS_KEY, LOADING_OPTIONS_KEY, OPTION_KEY, THEME_KEY, UPDATE_OPTIONS_KEY, UniCanvas, UniImage, appPlatform, canIUseCanvas2d, compareVersion, defaultTo, getAppBaseInfo, getDeviceInfo, getEchartsOptionKey, getIsPc, getVersion, getWindowInfo, isApp, isAppAndroid, isAppHarmony, isAppIos, isEmpty, isMp, isMp360, isMpAlipay, isMpBaidu, isMpHarmony, isMpJd, isMpKuaishou, isMpLark, isMpQq, isMpToutiao, isMpWeixin, isMpXhs, isQuickapp, isQuickappHuawei, isQuickappUnion, isWeb, lowerFirst, mitt, platform, provideEcharts, provideEchartsInitOptions, provideEchartsLoadingOptions, provideEchartsOption, provideEchartsTheme, provideEchartsUpdateOptions, querySelect, setupEchartsCanvas, sleep, upperFirst, useAutoresize, useEcharts, useEchartsInitOptions, useEchartsMouseWheel, useEchartsOption, useEchartsTheme, useEchartsTouch, useEchartsUpdateOptions, useLoading, usePublicApi, useUid, useVueThis };
440
+ export type { AllowedComponentProps, AppPlatform, AutoResize, BuiltInPlatform, CanvasContext, CanvasNode, CanvasRect, ChartOption, ChartOptionInjection, ChartTheme, ChartThemeInjection, CoreEcharts, EChartsType, ElementEventName, Emitter, EventHandlerList, EventHandlerMap, EventType, ExtractValue, GetTouchFuc, Handler, InitOptions, InitOptionsInjection, InitParameters, Injection, LoadingOptions, LoadingOptionsInjection, MouseEmits, MouseEventName, NativeEmits, NativeEventName, NormalizedTouch, NullableValue, OptionalValue, OtherEmits, OtherEventName, PublicApi, UniEchartsEmits, UniEchartsInst, UniEchartsProps, UniEventName, UpdateOptions, UpdateOptionsInjection, VueThis, WildCardEventHandlerList, WildcardHandler, ZRenderEmits, ZRenderEventName, ZRenderHandler, ZRenderType };
@@ -0,0 +1,2 @@
1
+ export * from "./components";
2
+ export * from "./shared-core";
@@ -0,0 +1,105 @@
1
+ {
2
+ "id": "xiaohe-echarts",
3
+ "name": "uni-echarts",
4
+ "displayName": "xiaohe-echarts",
5
+ "type": "module",
6
+ "version": "2.3.0",
7
+ "description": "适用于 uni-app 的 ECharts 组件,支持 Web、小程序、APP,支持鸿蒙,支持 TypeScript。与 Vue ECharts 近乎一致的使用体验!",
8
+ "author": "xiaohe0601 <xiaohe0601@outlook.com>",
9
+ "license": "MIT",
10
+ "homepage": "https://uni-echarts.xiaohe.ink",
11
+ "repository": "https://github.com/xiaohe0601/uni-echarts",
12
+ "bugs": "https://github.com/xiaohe0601/uni-echarts/issues",
13
+ "keywords": [
14
+ "echarts",
15
+ "vue-echarts",
16
+ "uni-echarts"
17
+ ],
18
+ "dcloudext": {
19
+ "type": "component-vue",
20
+ "sale": {
21
+ "regular": {
22
+ "price": "0.00"
23
+ },
24
+ "sourcecode": {
25
+ "price": "0.00"
26
+ }
27
+ },
28
+ "contact": {
29
+ "qq": ""
30
+ },
31
+ "declaration": {
32
+ "ads": "无",
33
+ "data": "无",
34
+ "permissions": "无"
35
+ },
36
+ "npmurl": "https://www.npmjs.com/package/uni-echarts",
37
+ "darkmode": "√",
38
+ "i18n": "√",
39
+ "widescreen": "√"
40
+ },
41
+ "uni_modules": {
42
+ "dependencies": [],
43
+ "encrypt": [],
44
+ "platforms": {
45
+ "client": {
46
+ "uni-app": {
47
+ "vue": {
48
+ "vue2": "x",
49
+ "vue3": "√"
50
+ },
51
+ "web": {
52
+ "safari": "√",
53
+ "chrome": "√"
54
+ },
55
+ "app": {
56
+ "vue": "√",
57
+ "nvue": "x",
58
+ "android": "√",
59
+ "ios": "√",
60
+ "harmony": "√"
61
+ },
62
+ "mp": {
63
+ "weixin": "√",
64
+ "alipay": "√",
65
+ "toutiao": "√",
66
+ "baidu": "√",
67
+ "kuaishou": "√",
68
+ "jd": "√",
69
+ "harmony": "√",
70
+ "qq": "√",
71
+ "lark": "√"
72
+ },
73
+ "quickapp": {
74
+ "huawei": "√",
75
+ "union": "√"
76
+ }
77
+ },
78
+ "uni-app-x": {
79
+ "web": {
80
+ "safari": "x",
81
+ "chrome": "x"
82
+ },
83
+ "app": {
84
+ "android": "x",
85
+ "ios": "x",
86
+ "harmony": "x"
87
+ },
88
+ "mp": {
89
+ "weixin": "x"
90
+ }
91
+ }
92
+ },
93
+ "cloud": {
94
+ "aliyun": "√",
95
+ "tcb": "√",
96
+ "alipay": "√"
97
+ }
98
+ }
99
+ },
100
+ "engines": {
101
+ "HBuilderX": "^3.1.0",
102
+ "uni-app": "^3.6.15",
103
+ "uni-app-x": "^3.6.15"
104
+ }
105
+ }