@partex/one-core 2.1.19 → 2.1.22

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 (81) hide show
  1. package/lib/components/actionButton/function.d.ts +3 -2
  2. package/lib/components/actionButton/index.vue.d.ts +7 -6
  3. package/lib/components/actionButton/interface.d.ts +2 -1
  4. package/lib/components/auth/index.vue.d.ts +2 -2
  5. package/lib/components/back/index.vue.d.ts +1489 -6
  6. package/lib/components/circle/index.vue.d.ts +337 -7
  7. package/lib/components/common.d.ts +2 -1
  8. package/lib/components/create.d.ts +2 -1
  9. package/lib/components/echarts/echarts.d.ts +10 -9
  10. package/lib/components/error/index.vue.d.ts +1425 -6
  11. package/lib/components/fetch.d.ts +4 -3
  12. package/lib/components/footer/index.vue.d.ts +6 -5
  13. package/lib/components/form/interface.d.ts +3 -2
  14. package/lib/components/header/interface.d.ts +1 -0
  15. package/lib/components/hooks/memoryCache.d.ts +0 -1
  16. package/lib/components/hooks/useDebounceFn.d.ts +3 -2
  17. package/lib/components/hooks/useLocalStorage.d.ts +2 -1
  18. package/lib/components/hooks/useQuery.d.ts +3 -2
  19. package/lib/components/hooks/useThrottleFn.d.ts +3 -2
  20. package/lib/components/icon/Add.vue.d.ts +2 -2
  21. package/lib/components/icon/Alert.vue.d.ts +2 -2
  22. package/lib/components/icon/ArrowClockwise.vue.d.ts +2 -2
  23. package/lib/components/icon/ArrowDown.vue.d.ts +2 -2
  24. package/lib/components/icon/ArrowSquareDown.vue.d.ts +2 -2
  25. package/lib/components/icon/ArrowUp.vue.d.ts +2 -2
  26. package/lib/components/icon/CalendarArrowDown.vue.d.ts +2 -2
  27. package/lib/components/icon/ChevronLeft.vue.d.ts +2 -2
  28. package/lib/components/icon/Clear.vue.d.ts +2 -2
  29. package/lib/components/icon/CloudArrowDown.vue.d.ts +2 -2
  30. package/lib/components/icon/Delete.vue.d.ts +2 -2
  31. package/lib/components/icon/Dismiss.vue.d.ts +2 -2
  32. package/lib/components/icon/Drafts.vue.d.ts +2 -2
  33. package/lib/components/icon/Eye.vue.d.ts +2 -2
  34. package/lib/components/icon/EyeOff.vue.d.ts +2 -2
  35. package/lib/components/icon/Filter.vue.d.ts +2 -2
  36. package/lib/components/icon/FullScreenMaximize.vue.d.ts +2 -2
  37. package/lib/components/icon/GridDots.vue.d.ts +2 -2
  38. package/lib/components/icon/MailInboxAdd.vue.d.ts +2 -2
  39. package/lib/components/icon/Navigation.vue.d.ts +2 -2
  40. package/lib/components/icon/Pin.vue.d.ts +2 -2
  41. package/lib/components/icon/PinOff.vue.d.ts +2 -2
  42. package/lib/components/icon/Reset.vue.d.ts +2 -2
  43. package/lib/components/icon/Search.vue.d.ts +2 -2
  44. package/lib/components/icon/User.vue.d.ts +2 -2
  45. package/lib/components/icon/WeatherMoon.vue.d.ts +2 -2
  46. package/lib/components/icon/WeatherSunny.vue.d.ts +2 -2
  47. package/lib/components/index.d.ts +1 -0
  48. package/lib/components/interface.d.ts +2 -1
  49. package/lib/components/my/api.d.ts +2 -1
  50. package/lib/components/numberRoll/index.vue.d.ts +10 -9
  51. package/lib/components/preset.d.ts +2 -2
  52. package/lib/components/searchBar/components/timePickRange.vue.d.ts +2406 -9
  53. package/lib/components/searchBar/interface.d.ts +3 -2
  54. package/lib/components/searchBar/pop.vue.d.ts +6 -6
  55. package/lib/components/store/api.d.ts +7 -6
  56. package/lib/components/store/common.d.ts +2 -1
  57. package/lib/components/store/user.d.ts +4 -3
  58. package/lib/components/table/interface.d.ts +4 -3
  59. package/lib/components/theme.d.ts +2 -1
  60. package/lib/components/utils/fetch.d.ts +2 -1
  61. package/lib/components/utils/localStorage.d.ts +2 -1
  62. package/lib/index.d.ts +2 -0
  63. package/lib/one-core.js +1580 -1579
  64. package/lib/style.css +1 -1
  65. package/package.json +22 -22
  66. package/lib/components/form/index.vue.d.ts +0 -394
  67. package/lib/components/form/item.vue.d.ts +0 -48
  68. package/lib/components/header/index.vue.d.ts +0 -135
  69. package/lib/components/header/message.vue.d.ts +0 -49
  70. package/lib/components/header/pop.vue.d.ts +0 -51
  71. package/lib/components/importer/index.vue.d.ts +0 -103
  72. package/lib/components/login/index.vue.d.ts +0 -108
  73. package/lib/components/logo/index.vue.d.ts +0 -18
  74. package/lib/components/main/index.vue.d.ts +0 -154
  75. package/lib/components/my/index.vue.d.ts +0 -30
  76. package/lib/components/report/index.vue.d.ts +0 -9
  77. package/lib/components/scan/index.vue.d.ts +0 -12
  78. package/lib/components/searchBar/index.vue.d.ts +0 -126
  79. package/lib/components/searchBar/item.vue.d.ts +0 -47
  80. package/lib/components/skeleton/index.vue.d.ts +0 -24
  81. package/lib/components/table/index.vue.d.ts +0 -283
@@ -1,11 +1,18 @@
1
- import { DefineComponent, Ref, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
1
+ import { PropType, DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, CSSProperties, ComputedRef, ComponentProvideOptions } from 'vue';
2
+ import { InternalRenderBody } from 'naive-ui/es/popover/src/interface';
3
+ import { PopoverTrigger, PopoverPlacement } from 'naive-ui';
4
+ import { MaybeArray } from 'naive-ui/es/_utils';
5
+ import { TriggerEventHandlers } from 'naive-ui/es/popover/src/Popover';
6
+ import { Theme } from 'naive-ui/es/_mixins';
7
+ import { ExtractThemeOverrides } from 'naive-ui/es/_mixins/use-theme';
8
+
2
9
  type ICircle = {
3
10
  backgroundBg: string;
4
11
  processBg: string;
5
12
  pointABg: string;
6
13
  pointBBg: string;
7
14
  };
8
- declare const _default: DefineComponent<{
15
+ declare const _default: DefineComponent<ExtractPropTypes<{
9
16
  circle: {
10
17
  required: true;
11
18
  type: PropType<number>;
@@ -36,19 +43,29 @@ declare const _default: DefineComponent<{
36
43
  pointBBg: string;
37
44
  };
38
45
  };
39
- }, {
46
+ }>, {
40
47
  popover: Ref<{
41
48
  show: boolean;
42
49
  text: string;
43
50
  x: number;
44
51
  y: number;
52
+ }, {
53
+ show: boolean;
54
+ text: string;
55
+ x: number;
56
+ y: number;
57
+ } | {
58
+ show: boolean;
59
+ text: string;
60
+ x: number;
61
+ y: number;
45
62
  }>;
46
63
  calculateCircle: () => string;
47
64
  calculatePointA: () => string;
48
65
  calculatePointB: () => string;
49
- mouseOver: (e: MouseEvent, type: 'a' | 'b') => void;
66
+ mouseOver: (e: MouseEvent, type: "a" | "b") => void;
50
67
  mouseOut: () => void;
51
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
68
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
52
69
  circle: {
53
70
  required: true;
54
71
  type: PropType<number>;
@@ -79,12 +96,325 @@ declare const _default: DefineComponent<{
79
96
  pointBBg: string;
80
97
  };
81
98
  };
82
- }>>, {
99
+ }>> & Readonly<{}>, {
83
100
  circle: number;
84
101
  circleTxt: string;
85
102
  pointA: number;
86
103
  pointB: number;
87
104
  pointSize: number;
88
105
  styles: ICircle;
89
- }, {}>;
106
+ }, {}, {
107
+ NPopover: DefineComponent<{
108
+ internalOnAfterLeave: PropType<() => void>;
109
+ internalRenderBody: PropType< InternalRenderBody>;
110
+ show: {
111
+ type: PropType<boolean | undefined>;
112
+ default: undefined;
113
+ };
114
+ defaultShow: BooleanConstructor;
115
+ showArrow: {
116
+ type: BooleanConstructor;
117
+ default: boolean;
118
+ };
119
+ trigger: {
120
+ type: PropType< PopoverTrigger>;
121
+ default: string;
122
+ };
123
+ delay: {
124
+ type: NumberConstructor;
125
+ default: number;
126
+ };
127
+ duration: {
128
+ type: NumberConstructor;
129
+ default: number;
130
+ };
131
+ raw: BooleanConstructor;
132
+ placement: {
133
+ type: PropType< PopoverPlacement>;
134
+ default: string;
135
+ };
136
+ x: NumberConstructor;
137
+ y: NumberConstructor;
138
+ arrowPointToCenter: BooleanConstructor;
139
+ disabled: BooleanConstructor;
140
+ getDisabled: PropType<() => boolean>;
141
+ displayDirective: {
142
+ type: PropType<"if" | "show">;
143
+ default: string;
144
+ };
145
+ arrowClass: StringConstructor;
146
+ arrowStyle: PropType<string | CSSProperties>;
147
+ arrowWrapperClass: StringConstructor;
148
+ arrowWrapperStyle: PropType<string | CSSProperties>;
149
+ flip: {
150
+ type: BooleanConstructor;
151
+ default: boolean;
152
+ };
153
+ animated: {
154
+ type: BooleanConstructor;
155
+ default: boolean;
156
+ };
157
+ width: {
158
+ type: PropType<number | "trigger">;
159
+ default: undefined;
160
+ };
161
+ overlap: BooleanConstructor;
162
+ keepAliveOnHover: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ zIndex: NumberConstructor;
167
+ to: {
168
+ type: PropType<HTMLElement | string | boolean>;
169
+ default: undefined;
170
+ };
171
+ scrollable: BooleanConstructor;
172
+ contentClass: StringConstructor;
173
+ contentStyle: PropType< CSSProperties | string>;
174
+ headerClass: StringConstructor;
175
+ headerStyle: PropType< CSSProperties | string>;
176
+ footerClass: StringConstructor;
177
+ footerStyle: PropType< CSSProperties | string>;
178
+ onClickoutside: PropType<(e: MouseEvent) => void>;
179
+ 'onUpdate:show': PropType< MaybeArray<(value: boolean) => void>>;
180
+ onUpdateShow: PropType< MaybeArray<(value: boolean) => void>>;
181
+ internalDeactivateImmediately: BooleanConstructor;
182
+ internalSyncTargetWithParent: BooleanConstructor;
183
+ internalInheritedEventHandlers: {
184
+ type: PropType< TriggerEventHandlers[]>;
185
+ default: () => never[];
186
+ };
187
+ internalTrapFocus: BooleanConstructor;
188
+ internalExtraClass: {
189
+ type: PropType<string[]>;
190
+ default: () => never[];
191
+ };
192
+ onShow: PropType< MaybeArray<(value: boolean) => void> | undefined>;
193
+ onHide: PropType< MaybeArray<(value: boolean) => void> | undefined>;
194
+ arrow: {
195
+ type: PropType<boolean | undefined>;
196
+ default: undefined;
197
+ };
198
+ minWidth: NumberConstructor;
199
+ maxWidth: NumberConstructor;
200
+ theme: PropType< Theme<"Popover", {
201
+ fontSize: string;
202
+ borderRadius: string;
203
+ color: string;
204
+ dividerColor: string;
205
+ textColor: string;
206
+ boxShadow: string;
207
+ space: string;
208
+ spaceArrow: string;
209
+ arrowOffset: string;
210
+ arrowOffsetVertical: string;
211
+ arrowHeight: string;
212
+ padding: string;
213
+ }, any>>;
214
+ themeOverrides: PropType< ExtractThemeOverrides<Theme<"Popover", {
215
+ fontSize: string;
216
+ borderRadius: string;
217
+ color: string;
218
+ dividerColor: string;
219
+ textColor: string;
220
+ boxShadow: string;
221
+ space: string;
222
+ spaceArrow: string;
223
+ arrowOffset: string;
224
+ arrowOffsetVertical: string;
225
+ arrowHeight: string;
226
+ padding: string;
227
+ }, any>>>;
228
+ builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Popover", {
229
+ fontSize: string;
230
+ borderRadius: string;
231
+ color: string;
232
+ dividerColor: string;
233
+ textColor: string;
234
+ boxShadow: string;
235
+ space: string;
236
+ spaceArrow: string;
237
+ arrowOffset: string;
238
+ arrowOffsetVertical: string;
239
+ arrowHeight: string;
240
+ padding: string;
241
+ }, any>>>;
242
+ }, {
243
+ binderInstRef: Ref<{
244
+ targetRef: HTMLElement | null;
245
+ } | null>;
246
+ positionManually: ComputedRef<boolean>;
247
+ mergedShowConsideringDisabledProp: ComputedRef<boolean>;
248
+ uncontrolledShow: Ref<boolean>;
249
+ mergedShowArrow: ComputedRef<boolean>;
250
+ getMergedShow: () => boolean;
251
+ setShow: (value: boolean) => void;
252
+ handleClick: () => void;
253
+ handleMouseEnter: () => void;
254
+ handleMouseLeave: () => void;
255
+ handleFocus: () => void;
256
+ handleBlur: () => void;
257
+ syncPosition: () => void;
258
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
259
+ internalOnAfterLeave: PropType<() => void>;
260
+ internalRenderBody: PropType< InternalRenderBody>;
261
+ show: {
262
+ type: PropType<boolean | undefined>;
263
+ default: undefined;
264
+ };
265
+ defaultShow: BooleanConstructor;
266
+ showArrow: {
267
+ type: BooleanConstructor;
268
+ default: boolean;
269
+ };
270
+ trigger: {
271
+ type: PropType< PopoverTrigger>;
272
+ default: string;
273
+ };
274
+ delay: {
275
+ type: NumberConstructor;
276
+ default: number;
277
+ };
278
+ duration: {
279
+ type: NumberConstructor;
280
+ default: number;
281
+ };
282
+ raw: BooleanConstructor;
283
+ placement: {
284
+ type: PropType< PopoverPlacement>;
285
+ default: string;
286
+ };
287
+ x: NumberConstructor;
288
+ y: NumberConstructor;
289
+ arrowPointToCenter: BooleanConstructor;
290
+ disabled: BooleanConstructor;
291
+ getDisabled: PropType<() => boolean>;
292
+ displayDirective: {
293
+ type: PropType<"if" | "show">;
294
+ default: string;
295
+ };
296
+ arrowClass: StringConstructor;
297
+ arrowStyle: PropType<string | CSSProperties>;
298
+ arrowWrapperClass: StringConstructor;
299
+ arrowWrapperStyle: PropType<string | CSSProperties>;
300
+ flip: {
301
+ type: BooleanConstructor;
302
+ default: boolean;
303
+ };
304
+ animated: {
305
+ type: BooleanConstructor;
306
+ default: boolean;
307
+ };
308
+ width: {
309
+ type: PropType<number | "trigger">;
310
+ default: undefined;
311
+ };
312
+ overlap: BooleanConstructor;
313
+ keepAliveOnHover: {
314
+ type: BooleanConstructor;
315
+ default: boolean;
316
+ };
317
+ zIndex: NumberConstructor;
318
+ to: {
319
+ type: PropType<HTMLElement | string | boolean>;
320
+ default: undefined;
321
+ };
322
+ scrollable: BooleanConstructor;
323
+ contentClass: StringConstructor;
324
+ contentStyle: PropType< CSSProperties | string>;
325
+ headerClass: StringConstructor;
326
+ headerStyle: PropType< CSSProperties | string>;
327
+ footerClass: StringConstructor;
328
+ footerStyle: PropType< CSSProperties | string>;
329
+ onClickoutside: PropType<(e: MouseEvent) => void>;
330
+ 'onUpdate:show': PropType< MaybeArray<(value: boolean) => void>>;
331
+ onUpdateShow: PropType< MaybeArray<(value: boolean) => void>>;
332
+ internalDeactivateImmediately: BooleanConstructor;
333
+ internalSyncTargetWithParent: BooleanConstructor;
334
+ internalInheritedEventHandlers: {
335
+ type: PropType< TriggerEventHandlers[]>;
336
+ default: () => never[];
337
+ };
338
+ internalTrapFocus: BooleanConstructor;
339
+ internalExtraClass: {
340
+ type: PropType<string[]>;
341
+ default: () => never[];
342
+ };
343
+ onShow: PropType< MaybeArray<(value: boolean) => void> | undefined>;
344
+ onHide: PropType< MaybeArray<(value: boolean) => void> | undefined>;
345
+ arrow: {
346
+ type: PropType<boolean | undefined>;
347
+ default: undefined;
348
+ };
349
+ minWidth: NumberConstructor;
350
+ maxWidth: NumberConstructor;
351
+ theme: PropType< Theme<"Popover", {
352
+ fontSize: string;
353
+ borderRadius: string;
354
+ color: string;
355
+ dividerColor: string;
356
+ textColor: string;
357
+ boxShadow: string;
358
+ space: string;
359
+ spaceArrow: string;
360
+ arrowOffset: string;
361
+ arrowOffsetVertical: string;
362
+ arrowHeight: string;
363
+ padding: string;
364
+ }, any>>;
365
+ themeOverrides: PropType< ExtractThemeOverrides<Theme<"Popover", {
366
+ fontSize: string;
367
+ borderRadius: string;
368
+ color: string;
369
+ dividerColor: string;
370
+ textColor: string;
371
+ boxShadow: string;
372
+ space: string;
373
+ spaceArrow: string;
374
+ arrowOffset: string;
375
+ arrowOffsetVertical: string;
376
+ arrowHeight: string;
377
+ padding: string;
378
+ }, any>>>;
379
+ builtinThemeOverrides: PropType< ExtractThemeOverrides<Theme<"Popover", {
380
+ fontSize: string;
381
+ borderRadius: string;
382
+ color: string;
383
+ dividerColor: string;
384
+ textColor: string;
385
+ boxShadow: string;
386
+ space: string;
387
+ spaceArrow: string;
388
+ arrowOffset: string;
389
+ arrowOffsetVertical: string;
390
+ arrowHeight: string;
391
+ padding: string;
392
+ }, any>>>;
393
+ }>>, {
394
+ show: boolean | undefined;
395
+ flip: boolean;
396
+ width: number | "trigger";
397
+ disabled: boolean;
398
+ duration: number;
399
+ to: string | boolean | HTMLElement;
400
+ raw: boolean;
401
+ placement: PopoverPlacement;
402
+ overlap: boolean;
403
+ scrollable: boolean;
404
+ trigger: PopoverTrigger;
405
+ showArrow: boolean;
406
+ delay: number;
407
+ arrowPointToCenter: boolean;
408
+ displayDirective: "show" | "if";
409
+ keepAliveOnHover: boolean;
410
+ internalDeactivateImmediately: boolean;
411
+ animated: boolean;
412
+ internalTrapFocus: boolean;
413
+ defaultShow: boolean;
414
+ internalSyncTargetWithParent: boolean;
415
+ internalInheritedEventHandlers: TriggerEventHandlers[];
416
+ internalExtraClass: string[];
417
+ arrow: boolean | undefined;
418
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
419
+ }, {}, string, ComponentProvideOptions, true, {}, any>;
90
420
  export default _default;
@@ -1,4 +1,5 @@
1
- import type { ObjectKey, PageModel, PageRecords, Query, Fn } from './interface';
1
+ import { ObjectKey, PageModel, PageRecords, Query, Fn } from './interface';
2
+
2
3
  export declare const getDefaultDate: (year?: number, month?: number, date?: number) => number;
3
4
  export declare function fnSetStorage<T>(key: string, value: T, expired?: number | string): void;
4
5
  export declare function fnGetStorage<T = any>(key: string, defaultValue: any): T;
@@ -1,5 +1,6 @@
1
- import type { IPlatform, ICommonOptions } from '../store/common';
1
+ import { IPlatform, ICommonOptions } from '../store/common';
2
2
  import { App } from 'vue';
3
+
3
4
  type ComponentType = any;
4
5
  export interface InstallOptions {
5
6
  platform?: string | IPlatform;
@@ -1,7 +1,8 @@
1
- import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
2
- import type { ObjectKey, Fn } from '../interface';
1
+ import { PropType, CSSProperties, DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ import { ObjectKey, Fn } from '../interface';
3
+
3
4
  import * as echarts from 'echarts/core';
4
- declare const _default: DefineComponent<{
5
+ declare const _default: DefineComponent<ExtractPropTypes<{
5
6
  options: {
6
7
  type: PropType<ObjectKey>;
7
8
  required: true;
@@ -47,14 +48,14 @@ declare const _default: DefineComponent<{
47
48
  * event事件
48
49
  */
49
50
  events: {
50
- type: PropType<ObjectKey<Fn<any, any>>>;
51
+ type: PropType<ObjectKey<Fn>>;
51
52
  default: () => {};
52
53
  };
53
54
  theme: {
54
55
  type: PropType<"white" | "dark">;
55
56
  default: undefined;
56
57
  };
57
- }, unknown, unknown, {}, {
58
+ }>, {}, {}, {}, {
58
59
  init(): void;
59
60
  initChart(el: HTMLDivElement): Promise<echarts.ECharts>;
60
61
  setOption(): void;
@@ -62,7 +63,7 @@ declare const _default: DefineComponent<{
62
63
  getInstance(): any;
63
64
  dispose(): void;
64
65
  bindEvents(instance: echarts.ECharts, events: ObjectKey<Fn>): void;
65
- }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
66
+ }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
66
67
  options: {
67
68
  type: PropType<ObjectKey>;
68
69
  required: true;
@@ -108,14 +109,14 @@ declare const _default: DefineComponent<{
108
109
  * event事件
109
110
  */
110
111
  events: {
111
- type: PropType<ObjectKey<Fn<any, any>>>;
112
+ type: PropType<ObjectKey<Fn>>;
112
113
  default: () => {};
113
114
  };
114
115
  theme: {
115
116
  type: PropType<"white" | "dark">;
116
117
  default: undefined;
117
118
  };
118
- }>>, {
119
+ }>> & Readonly<{}>, {
119
120
  style: CSSProperties | null;
120
121
  theme: "white" | "dark";
121
122
  renderer: "canvas" | "svg";
@@ -125,5 +126,5 @@ declare const _default: DefineComponent<{
125
126
  silent: boolean;
126
127
  resizeAble: boolean;
127
128
  events: ObjectKey<Fn<any, any>>;
128
- }, {}>;
129
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
129
130
  export default _default;