@partex/one-core 2.0.14 → 2.0.16

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 (88) hide show
  1. package/README.md +1 -1
  2. package/lib/components/actionButton/function.d.ts +1 -1
  3. package/lib/components/actionButton/interface.d.ts +1 -1
  4. package/lib/components/circle/index.d.ts +1 -0
  5. package/lib/components/circle/index.vue.d.ts +72 -0
  6. package/lib/components/common.d.ts +1 -59
  7. package/lib/components/components.d.ts +5 -4
  8. package/lib/components/create.d.ts +2 -1
  9. package/lib/components/error/index.d.ts +1 -0
  10. package/lib/components/error/index.vue.d.ts +23 -0
  11. package/lib/components/fetch.d.ts +7 -0
  12. package/lib/components/form/index.vue.d.ts +13 -13
  13. package/lib/components/form/interface.d.ts +1 -1
  14. package/lib/components/header/index.d.ts +0 -2
  15. package/lib/components/header/index.vue.d.ts +7 -15
  16. package/lib/components/icon/Add.vue.d.ts +3 -0
  17. package/lib/components/icon/Alert.vue.d.ts +3 -0
  18. package/lib/components/icon/ArrowClockwise.vue.d.ts +3 -0
  19. package/lib/components/icon/ArrowDown.vue.d.ts +3 -0
  20. package/lib/components/icon/ArrowSquareDown.vue.d.ts +3 -0
  21. package/lib/components/icon/ArrowUp.vue.d.ts +3 -0
  22. package/lib/components/icon/Bar.vue.d.ts +3 -0
  23. package/lib/components/icon/CalendarArrowDown.vue.d.ts +3 -0
  24. package/lib/components/icon/ChevronLeft.vue.d.ts +3 -0
  25. package/lib/components/icon/Clear.vue.d.ts +3 -0
  26. package/lib/components/icon/CloudArrowDown.vue.d.ts +3 -0
  27. package/lib/components/icon/Delete.vue.d.ts +3 -0
  28. package/lib/components/icon/Dismiss.vue.d.ts +3 -0
  29. package/lib/components/icon/Drafts.vue.d.ts +3 -0
  30. package/lib/components/icon/Eye.vue.d.ts +3 -0
  31. package/lib/components/icon/Filter.vue.d.ts +3 -0
  32. package/lib/components/icon/FullScreenMaximize.vue.d.ts +3 -0
  33. package/lib/components/icon/GridDots.vue.d.ts +3 -0
  34. package/lib/components/icon/MailInboxAdd.vue.d.ts +3 -0
  35. package/lib/components/icon/Navigation.vue.d.ts +3 -0
  36. package/lib/components/icon/Pin.vue.d.ts +3 -0
  37. package/lib/components/icon/Reset.vue.d.ts +3 -0
  38. package/lib/components/icon/Search.vue.d.ts +3 -0
  39. package/lib/components/icon/WeatherMoon.vue.d.ts +3 -0
  40. package/lib/components/icon/WeatherSunny.vue.d.ts +3 -0
  41. package/lib/components/icon/index.d.ts +25 -0
  42. package/lib/components/importer/api.d.ts +1 -1
  43. package/lib/components/importer/index.vue.d.ts +1 -1
  44. package/lib/components/index.d.ts +5 -0
  45. package/lib/components/interface.d.ts +45 -0
  46. package/lib/components/local/index.d.ts +181 -177
  47. package/lib/components/login/index.d.ts +0 -2
  48. package/lib/components/login/index.vue.d.ts +14 -0
  49. package/lib/components/main/index.d.ts +1 -0
  50. package/lib/components/main/index.vue.d.ts +157 -0
  51. package/lib/components/numberRoll/index.vue.d.ts +1 -1
  52. package/lib/components/role.d.ts +5 -0
  53. package/lib/components/searchBar/index.vue.d.ts +3 -2
  54. package/lib/components/{header → store}/api.d.ts +8 -1
  55. package/lib/components/{header/store.d.ts → store/common.d.ts} +7 -4
  56. package/lib/components/store/index.d.ts +4 -0
  57. package/lib/components/{login/store.d.ts → store/user.d.ts} +1 -1
  58. package/lib/components/table/index.d.ts +1 -1
  59. package/lib/components/table/index.vue.d.ts +1 -1
  60. package/lib/components/table/interface.d.ts +25 -1
  61. package/lib/components/theme.d.ts +4 -0
  62. package/lib/components/utils/fetch.d.ts +4 -0
  63. package/lib/components/utils/localStorage.d.ts +15 -0
  64. package/lib/components/utils/router.d.ts +3 -0
  65. package/lib/one-core.cjs +1 -98
  66. package/lib/one-core.js +4084 -6698
  67. package/lib/one-core.umd.cjs +1 -98
  68. package/lib/style.css +1 -1
  69. package/package.json +4 -1
  70. package/volar.d.ts +56 -18
  71. package/lib/components/dashboard/index.d.ts +0 -1
  72. package/lib/components/error404/index.d.ts +0 -1
  73. package/lib/components/error404/index.vue.d.ts +0 -5
  74. package/lib/components/error500/index.d.ts +0 -1
  75. package/lib/components/error500/index.vue.d.ts +0 -5
  76. package/lib/components/icon.d.ts +0 -25
  77. package/lib/components/login/api.d.ts +0 -7
  78. package/lib/components/tableEdit/common.d.ts +0 -1
  79. package/lib/components/tableEdit/components/action.vue.d.ts +0 -79
  80. package/lib/components/tableEdit/components/code.vue.d.ts +0 -42
  81. package/lib/components/tableEdit/components/form.vue.d.ts +0 -254
  82. package/lib/components/tableEdit/components/header.vue.d.ts +0 -270
  83. package/lib/components/tableEdit/index.d.ts +0 -2
  84. package/lib/components/tableEdit/index.vue.d.ts +0 -610
  85. package/lib/components/tableEdit/interface.d.ts +0 -25
  86. package/lib/src/monaco.d.ts +0 -2
  87. /package/lib/components/{dashboard/store.d.ts → scale.d.ts} +0 -0
  88. /package/lib/components/{login → store}/interface.d.ts +0 -0
@@ -0,0 +1,4 @@
1
+ export { userStore, fnSetUser, fnGetUser, fnClearUser, fnUserLogout } from './user';
2
+ export { commonStore, fnSetTheme, fnSetPlatform, fnSetLang } from './common';
3
+ export type { IUserModel, IUserTenant } from './interface';
4
+ export { fnDownload } from './api';
@@ -34,7 +34,7 @@ export declare const userStore: {
34
34
  id: string | string[];
35
35
  interval: number;
36
36
  viewType: 1 | 2;
37
- theme: "light" | "dark";
37
+ theme: "dark" | "light";
38
38
  };
39
39
  endTime: number;
40
40
  tenantStatus: 0 | 1 | 2;
@@ -1,2 +1,2 @@
1
1
  export { default as OcTable } from './index.vue';
2
- export type { IOcDataTableColumn, IOcDataTableColumns } from './interface';
2
+ export type { IOcDataTableColumn, IOcDataTableColumns, IOcDataTableColumnEdit } from './interface';
@@ -1,6 +1,6 @@
1
1
  import { DefineComponent, Ref, VNodeChild, ComputedRef, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
2
2
  import type { DataTableSortState } from 'naive-ui';
3
- import type { ObjectKey, Fn } from '../common';
3
+ import type { ObjectKey, Fn } from '../interface';
4
4
  import type { TableQuery, IOcDataTableColumns } from './interface';
5
5
  import type { IActionButton } from '../actionButton';
6
6
  declare const _default: DefineComponent<{
@@ -1,5 +1,5 @@
1
1
  import type { VNodeChild } from 'vue';
2
- import type { Query } from '../common';
2
+ import type { Query } from '../interface';
3
3
  import type { ISearchBarTypes } from '../searchBar/interface';
4
4
  type TableColumnTitle<T = InternalRowData> = string | ((column: IOcDataTableColumns<T>) => VNodeChild);
5
5
  type ColumnKey = string | number;
@@ -29,4 +29,28 @@ export interface IOcDataTableColumn<T = InternalRowData> {
29
29
  search?: ISearchBarTypes;
30
30
  }
31
31
  export type IOcDataTableColumns<T = InternalRowData> = Array<IOcDataTableColumn<T>>;
32
+ export interface IOcDataTableColumnEdit {
33
+ title: string;
34
+ key: string;
35
+ align: 'left' | 'right' | 'center' | null;
36
+ titleAlign: 'left' | 'right' | 'center' | null;
37
+ fixed: string | null;
38
+ width: number | null;
39
+ ellipsis: boolean | {
40
+ tooltip: boolean;
41
+ };
42
+ sorter: boolean;
43
+ titleColSpan?: number;
44
+ type?: never;
45
+ tree?: boolean;
46
+ resizable?: boolean;
47
+ show?: boolean;
48
+ hide?: boolean;
49
+ minWidth?: string | number;
50
+ maxWidth?: string | number;
51
+ render?: string;
52
+ search: ISearchBarTypes | {
53
+ type: '';
54
+ };
55
+ }
32
56
  export {};
@@ -0,0 +1,4 @@
1
+ import { BuiltInGlobalTheme } from 'naive-ui/es/themes/interface';
2
+ import type { GlobalThemeOverrides } from 'naive-ui';
3
+ export declare const lightTheme: GlobalThemeOverrides;
4
+ export declare const darkTheme: BuiltInGlobalTheme;
@@ -0,0 +1,4 @@
1
+ import type { AxiosInstance } from 'axios';
2
+ declare const fetch: AxiosInstance;
3
+ export default fetch;
4
+ export declare const fnCancelFetch: () => void;
@@ -0,0 +1,15 @@
1
+ type ObjectKey<T = any> = {
2
+ [x in string | number]: T;
3
+ };
4
+ export default class LzLocalStorage {
5
+ namespace: string;
6
+ mapKey: string;
7
+ map: ObjectKey;
8
+ constructor(namespace?: string);
9
+ set(key: string, value: string | ObjectKey | boolean, expires?: number): void;
10
+ getReallyKey(key: string): string;
11
+ get<T>(key: string, defaultValue: T): T;
12
+ delete(key: string): void;
13
+ deleteAll(): void;
14
+ }
15
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Router } from 'vue-router';
2
+ declare const router: Router;
3
+ export default router;