@hlw-vue/crud 1.0.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 (66) hide show
  1. package/README.md +4 -0
  2. package/dist/index.css +1 -0
  3. package/dist/index.es.js +6531 -0
  4. package/dist/index.es.js.map +1 -0
  5. package/dist/index.umd.js +2 -0
  6. package/dist/index.umd.js.map +1 -0
  7. package/index.d.ts +811 -0
  8. package/package.json +51 -0
  9. package/types/App.vue.d.ts +2 -0
  10. package/types/components/add-btn/index.d.ts +2 -0
  11. package/types/components/adv/btn.d.ts +4 -0
  12. package/types/components/adv/search.d.ts +42 -0
  13. package/types/components/context-menu/index.d.ts +30 -0
  14. package/types/components/crud/helper.d.ts +23 -0
  15. package/types/components/crud/index.d.ts +19 -0
  16. package/types/components/dialog/index.d.ts +93 -0
  17. package/types/components/error-message/index.d.ts +6 -0
  18. package/types/components/filter/index.d.ts +6 -0
  19. package/types/components/flex1/index.d.ts +2 -0
  20. package/types/components/form/helper/action.d.ts +17 -0
  21. package/types/components/form/helper/api.d.ts +3 -0
  22. package/types/components/form/helper/index.d.ts +237 -0
  23. package/types/components/form/helper/plugins.d.ts +7 -0
  24. package/types/components/form/helper/tabs.d.ts +19 -0
  25. package/types/components/form/index.d.ts +22 -0
  26. package/types/components/form-card/index.d.ts +28 -0
  27. package/types/components/form-tabs/index.d.ts +38 -0
  28. package/types/components/index.d.ts +5 -0
  29. package/types/components/multi-delete-btn/index.d.ts +2 -0
  30. package/types/components/pagination/index.d.ts +4 -0
  31. package/types/components/refresh-btn/index.d.ts +2 -0
  32. package/types/components/row/index.d.ts +2 -0
  33. package/types/components/search/helper/plugins.d.ts +3 -0
  34. package/types/components/search/index.d.ts +66 -0
  35. package/types/components/search-key/index.d.ts +55 -0
  36. package/types/components/table/helper/data.d.ts +7 -0
  37. package/types/components/table/helper/header.d.ts +1 -0
  38. package/types/components/table/helper/height.d.ts +7 -0
  39. package/types/components/table/helper/index.d.ts +191 -0
  40. package/types/components/table/helper/op.d.ts +9 -0
  41. package/types/components/table/helper/plugins.d.ts +3 -0
  42. package/types/components/table/helper/render.d.ts +7 -0
  43. package/types/components/table/helper/row.d.ts +13 -0
  44. package/types/components/table/helper/selection.d.ts +6 -0
  45. package/types/components/table/helper/sort.d.ts +18 -0
  46. package/types/components/table/index.d.ts +62 -0
  47. package/types/components/upsert/index.d.ts +38 -0
  48. package/types/emitter.d.ts +2 -0
  49. package/types/entry.d.ts +13 -0
  50. package/types/hooks/crud.d.ts +10 -0
  51. package/types/hooks/index.d.ts +16 -0
  52. package/types/index.d.ts +1 -0
  53. package/types/locale/en.d.ts +33 -0
  54. package/types/locale/index.d.ts +130 -0
  55. package/types/locale/ja.d.ts +33 -0
  56. package/types/locale/zh-cn.d.ts +33 -0
  57. package/types/locale/zh-tw.d.ts +33 -0
  58. package/types/main.d.ts +0 -0
  59. package/types/provide.d.ts +2 -0
  60. package/types/test/service.d.ts +52 -0
  61. package/types/utils/form-hook.d.ts +9 -0
  62. package/types/utils/global.d.ts +7 -0
  63. package/types/utils/index.d.ts +14 -0
  64. package/types/utils/mitt.d.ts +10 -0
  65. package/types/utils/parse.d.ts +5 -0
  66. package/types/utils/vnode.d.ts +14 -0
@@ -0,0 +1,38 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: (NumberConstructor | StringConstructor)[];
4
+ labels: {
5
+ type: ArrayConstructor;
6
+ default: () => any[];
7
+ };
8
+ justify: {
9
+ type: PropType<"start" | "end" | "left" | "right" | "center" | "justify" | "match-parent">;
10
+ default: string;
11
+ };
12
+ type: {
13
+ type: PropType<"card" | "default">;
14
+ default: string;
15
+ };
16
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ modelValue: (NumberConstructor | StringConstructor)[];
18
+ labels: {
19
+ type: ArrayConstructor;
20
+ default: () => any[];
21
+ };
22
+ justify: {
23
+ type: PropType<"start" | "end" | "left" | "right" | "center" | "justify" | "match-parent">;
24
+ default: string;
25
+ };
26
+ type: {
27
+ type: PropType<"card" | "default">;
28
+ default: string;
29
+ };
30
+ }>> & Readonly<{
31
+ onChange?: (...args: any[]) => any;
32
+ "onUpdate:modelValue"?: (...args: any[]) => any;
33
+ }>, {
34
+ type: "default" | "card";
35
+ labels: unknown[];
36
+ justify: "left" | "center" | "right" | "justify" | "start" | "end" | "match-parent";
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import { App } from 'vue';
2
+ export declare const components: {
3
+ [key: string]: any;
4
+ };
5
+ export declare function useComponent(app: App): void;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ declare const _default: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
2
+ [key: string]: any;
3
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ export declare function usePlugins(): {
2
+ create: (plugins?: HlwSearch.Plugin[]) => void;
3
+ };
@@ -0,0 +1,66 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ inline: {
4
+ type: BooleanConstructor;
5
+ default: boolean;
6
+ };
7
+ props: {
8
+ type: ObjectConstructor;
9
+ default: () => {};
10
+ };
11
+ data: {
12
+ type: ObjectConstructor;
13
+ default: () => {};
14
+ };
15
+ items: {
16
+ type: PropType<HlwForm.Item[]>;
17
+ default: () => any[];
18
+ };
19
+ resetBtn: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ collapse: {
24
+ type: BooleanConstructor;
25
+ default: boolean;
26
+ };
27
+ onLoad: FunctionConstructor;
28
+ onSearch: FunctionConstructor;
29
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "reset"[], "reset", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
30
+ inline: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ props: {
35
+ type: ObjectConstructor;
36
+ default: () => {};
37
+ };
38
+ data: {
39
+ type: ObjectConstructor;
40
+ default: () => {};
41
+ };
42
+ items: {
43
+ type: PropType<HlwForm.Item[]>;
44
+ default: () => any[];
45
+ };
46
+ resetBtn: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ collapse: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ onLoad: FunctionConstructor;
55
+ onSearch: FunctionConstructor;
56
+ }>> & Readonly<{
57
+ onReset?: (...args: any[]) => any;
58
+ }>, {
59
+ data: Record<string, any>;
60
+ props: Record<string, any>;
61
+ items: HlwForm.Item<any>[];
62
+ inline: boolean;
63
+ resetBtn: boolean;
64
+ collapse: boolean;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
66
+ export default _default;
@@ -0,0 +1,55 @@
1
+ import { PropType } from 'vue';
2
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
3
+ modelValue: StringConstructor;
4
+ field: {
5
+ type: StringConstructor;
6
+ default: string;
7
+ };
8
+ fieldList: {
9
+ type: PropType<Array<{
10
+ label: string;
11
+ value: string;
12
+ }>>;
13
+ default: () => any[];
14
+ };
15
+ onSearch: FunctionConstructor;
16
+ placeholder: StringConstructor;
17
+ width: {
18
+ type: (NumberConstructor | StringConstructor)[];
19
+ default: number;
20
+ };
21
+ refreshOnInput: BooleanConstructor;
22
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("change" | "update:modelValue" | "field-change")[], "change" | "update:modelValue" | "field-change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ modelValue: StringConstructor;
24
+ field: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ fieldList: {
29
+ type: PropType<Array<{
30
+ label: string;
31
+ value: string;
32
+ }>>;
33
+ default: () => any[];
34
+ };
35
+ onSearch: FunctionConstructor;
36
+ placeholder: StringConstructor;
37
+ width: {
38
+ type: (NumberConstructor | StringConstructor)[];
39
+ default: number;
40
+ };
41
+ refreshOnInput: BooleanConstructor;
42
+ }>> & Readonly<{
43
+ onChange?: (...args: any[]) => any;
44
+ "onUpdate:modelValue"?: (...args: any[]) => any;
45
+ "onField-change"?: (...args: any[]) => any;
46
+ }>, {
47
+ width: string | number;
48
+ refreshOnInput: boolean;
49
+ field: string;
50
+ fieldList: {
51
+ label: string;
52
+ value: string;
53
+ }[];
54
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
55
+ export default _default;
@@ -0,0 +1,7 @@
1
+ export declare function useData({ config, Table }: {
2
+ config: HlwTable.Config;
3
+ Table: Vue.Ref<any>;
4
+ }): {
5
+ data: import('vue').Ref<obj[], obj[]>;
6
+ setData: (list: obj[]) => void;
7
+ };
@@ -0,0 +1 @@
1
+ export declare function renderHeader(item: HlwTable.Column, { scope, slots }: any): any;
@@ -0,0 +1,7 @@
1
+ export declare function useHeight({ config, Table }: {
2
+ Table: Vue.Ref<any>;
3
+ config: HlwTable.Config;
4
+ }): {
5
+ maxHeight: import('vue').Ref<number, number>;
6
+ calcMaxHeight: import('lodash-es').DebouncedFunc<() => Promise<void>>;
7
+ };
@@ -0,0 +1,191 @@
1
+ import { TableInstance } from 'element-plus';
2
+ export declare function useTable(props: any): {
3
+ Table: import('vue').Ref<TableInstance, TableInstance>;
4
+ config: {
5
+ columns: {
6
+ [x: string]: any;
7
+ type: HlwTable.ColumnType;
8
+ hidden: boolean | {
9
+ value: boolean;
10
+ };
11
+ component: {
12
+ [x: string]: any;
13
+ name?: string;
14
+ options?: {
15
+ [x: string]: any;
16
+ label?: string;
17
+ value?: any;
18
+ color?: string;
19
+ type?: string;
20
+ }[] | {
21
+ value: {
22
+ [x: string]: any;
23
+ label?: string;
24
+ value?: any;
25
+ color?: string;
26
+ type?: string;
27
+ }[];
28
+ };
29
+ props?: {
30
+ [x: string]: any;
31
+ onChange?: (value: any) => void;
32
+ } | {
33
+ value: {
34
+ [x: string]: any;
35
+ onChange?: (value: any) => void;
36
+ };
37
+ };
38
+ style?: obj;
39
+ slots?: {
40
+ [key: string]: (data?: any) => any;
41
+ };
42
+ vm?: any;
43
+ };
44
+ search: {
45
+ isInput: boolean;
46
+ value: any;
47
+ icon: () => any;
48
+ refreshOnChange: boolean;
49
+ component: {
50
+ [x: string]: any;
51
+ name?: string;
52
+ options?: {
53
+ [x: string]: any;
54
+ label?: string;
55
+ value?: any;
56
+ color?: string;
57
+ type?: string;
58
+ }[] | {
59
+ value: {
60
+ [x: string]: any;
61
+ label?: string;
62
+ value?: any;
63
+ color?: string;
64
+ type?: string;
65
+ }[];
66
+ };
67
+ props?: {
68
+ [x: string]: any;
69
+ onChange?: (value: any) => void;
70
+ } | {
71
+ value: {
72
+ [x: string]: any;
73
+ onChange?: (value: any) => void;
74
+ };
75
+ };
76
+ style?: obj;
77
+ slots?: {
78
+ [key: string]: (data?: any) => any;
79
+ };
80
+ vm?: any;
81
+ };
82
+ };
83
+ dict: {
84
+ [x: string]: any;
85
+ label?: string;
86
+ value?: any;
87
+ color?: string;
88
+ type?: string;
89
+ }[] | {
90
+ value: {
91
+ [x: string]: any;
92
+ label?: string;
93
+ value?: any;
94
+ color?: string;
95
+ type?: string;
96
+ }[];
97
+ };
98
+ dictFormatter: (values: DictOptions) => string;
99
+ dictColor: boolean;
100
+ dictSeparator: string;
101
+ dictAllLevels: boolean;
102
+ buttons: ((options: {
103
+ scope: any;
104
+ }) => HlwTable.OpButton) | ("info" | "delete" | "edit" | AnyString | `slot-${string}` | {
105
+ [x: string]: any;
106
+ label: string;
107
+ type?: string;
108
+ hidden?: boolean;
109
+ onClick: (options: {
110
+ scope: obj;
111
+ }) => void;
112
+ })[];
113
+ align: ElementPlus.Align;
114
+ label: any;
115
+ renderLabel: (options: {
116
+ column: any;
117
+ $index: number;
118
+ }) => any;
119
+ className: string;
120
+ prop: string & {};
121
+ orderNum: number;
122
+ width: string | number | {
123
+ value: string | number;
124
+ };
125
+ minWidth: string | number | {
126
+ value: string | number;
127
+ };
128
+ renderHeader: (options: {
129
+ column: any;
130
+ $index: number;
131
+ }) => any;
132
+ sortable: boolean | "desc" | "descending" | "ascending" | "asc" | "custom";
133
+ sortMethod: fn;
134
+ sortBy: string | any[] | ((row: any, index: number) => any);
135
+ resizable: boolean;
136
+ columnKey: string;
137
+ headerAlign: ElementPlus.Align;
138
+ showOverflowTooltip: boolean;
139
+ fixed: boolean | string;
140
+ render: (row: any, column: any, value: any, index: number) => any;
141
+ formatter: (row: any, column: any, value: any, index: number) => any;
142
+ selectable: (row: any, index: number) => boolean;
143
+ reserveSelection: boolean;
144
+ filterMethod: fn;
145
+ filteredValue: unknown[];
146
+ filters: unknown[];
147
+ filterPlacement: string;
148
+ filterMultiple: boolean;
149
+ index: ((index: number) => number) | number;
150
+ sortOrders: unknown[];
151
+ children: any[];
152
+ }[];
153
+ autoHeight: boolean;
154
+ height: any;
155
+ contextMenu: ("info" | "update" | "delete" | "edit" | "refresh" | {
156
+ [x: string]: any;
157
+ label: string;
158
+ prefixIcon?: any;
159
+ suffixIcon?: any;
160
+ ellipsis?: boolean;
161
+ disabled?: boolean;
162
+ hidden?: boolean;
163
+ children?: any[];
164
+ showChildren?: boolean;
165
+ callback?: (done: fn) => void;
166
+ } | ((row: obj, column: obj, event: PointerEvent) => ClContextMenu.Item) | "check" | "order-desc" | "order-asc")[];
167
+ defaultSort: {
168
+ prop: string;
169
+ order: "descending" | "ascending";
170
+ };
171
+ sortRefresh: boolean;
172
+ emptyText: string;
173
+ rowKey: string;
174
+ on?: {
175
+ [key: string]: (...args: any[]) => void;
176
+ };
177
+ props?: {
178
+ [key: string]: any;
179
+ };
180
+ plugins?: HlwTable.Plugin[];
181
+ onRowContextmenu?: (row: any, column: any, event: any) => void;
182
+ };
183
+ };
184
+ export * from './data';
185
+ export * from './height';
186
+ export * from './op';
187
+ export * from './render';
188
+ export * from './row';
189
+ export * from './selection';
190
+ export * from './sort';
191
+ export * from './header';
@@ -0,0 +1,9 @@
1
+ export declare function useOp({ config }: {
2
+ config: HlwTable.Config;
3
+ }): {
4
+ visible: import('vue').Ref<boolean, boolean>;
5
+ reBuild: (cb?: fn) => Promise<void>;
6
+ showColumn: (prop: string | string[], status?: boolean) => void;
7
+ hideColumn: (prop: string | string[]) => void;
8
+ setColumns: (list: HlwTable.Column[]) => void;
9
+ };
@@ -0,0 +1,3 @@
1
+ export declare function usePlugins(): {
2
+ create: (plugins?: HlwTable.Plugin[]) => void;
3
+ };
@@ -0,0 +1,7 @@
1
+ export declare function useRender(): {
2
+ renderColumn: (columns: HlwTable.Column[]) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
3
+ [key: string]: any;
4
+ }>[];
5
+ renderEmpty: (emptyText: string) => any;
6
+ renderAppend: () => any;
7
+ };
@@ -0,0 +1,13 @@
1
+ export declare function useRow({ Table, config, Sort }: {
2
+ Table: Vue.Ref<any>;
3
+ config: HlwTable.Config;
4
+ Sort: {
5
+ defaultSort: {
6
+ prop?: string;
7
+ order?: string;
8
+ };
9
+ changeSort(prop: string, order: string): void;
10
+ };
11
+ }): {
12
+ onRowContextMenu: (row: obj, column: obj, event: PointerEvent) => void;
13
+ };
@@ -0,0 +1,6 @@
1
+ export declare function useSelection({ emit }: {
2
+ emit: Vue.Emit;
3
+ }): {
4
+ selection: obj[];
5
+ onSelectionChange: (selection: any[]) => void;
6
+ };
@@ -0,0 +1,18 @@
1
+ export declare function useSort({ config, Table, emit }: {
2
+ config: HlwTable.Config;
3
+ Table: Vue.Ref<any>;
4
+ emit: Vue.Emit;
5
+ }): {
6
+ defaultSort: {
7
+ prop: string;
8
+ order: "descending" | "ascending";
9
+ } | {
10
+ prop?: undefined;
11
+ order?: undefined;
12
+ };
13
+ onSortChange: ({ prop, order }: {
14
+ prop: string | undefined;
15
+ order: string;
16
+ }) => void;
17
+ changeSort: (prop: string, order: string) => void;
18
+ };
@@ -0,0 +1,62 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ columns: {
3
+ type: ArrayConstructor;
4
+ default: () => any[];
5
+ };
6
+ autoHeight: {
7
+ type: BooleanConstructor;
8
+ default: any;
9
+ };
10
+ height: any;
11
+ contextMenu: {
12
+ type: (ArrayConstructor | BooleanConstructor)[];
13
+ default: any;
14
+ };
15
+ defaultSort: ObjectConstructor;
16
+ sortRefresh: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ emptyText: StringConstructor;
21
+ rowKey: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
26
+ [key: string]: any;
27
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("selection-change" | "sort-change")[], "selection-change" | "sort-change", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
28
+ columns: {
29
+ type: ArrayConstructor;
30
+ default: () => any[];
31
+ };
32
+ autoHeight: {
33
+ type: BooleanConstructor;
34
+ default: any;
35
+ };
36
+ height: any;
37
+ contextMenu: {
38
+ type: (ArrayConstructor | BooleanConstructor)[];
39
+ default: any;
40
+ };
41
+ defaultSort: ObjectConstructor;
42
+ sortRefresh: {
43
+ type: BooleanConstructor;
44
+ default: boolean;
45
+ };
46
+ emptyText: StringConstructor;
47
+ rowKey: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ }>> & Readonly<{
52
+ "onSelection-change"?: (...args: any[]) => any;
53
+ "onSort-change"?: (...args: any[]) => any;
54
+ }>, {
55
+ columns: unknown[];
56
+ autoHeight: boolean;
57
+ height: any;
58
+ contextMenu: boolean | unknown[];
59
+ sortRefresh: boolean;
60
+ rowKey: string;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
62
+ export default _default;
@@ -0,0 +1,38 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ items: {
3
+ type: ArrayConstructor;
4
+ default: () => any[];
5
+ };
6
+ props: ObjectConstructor;
7
+ sync: BooleanConstructor;
8
+ op: ObjectConstructor;
9
+ dialog: ObjectConstructor;
10
+ onOpen: FunctionConstructor;
11
+ onOpened: FunctionConstructor;
12
+ onClose: FunctionConstructor;
13
+ onClosed: FunctionConstructor;
14
+ onInfo: FunctionConstructor;
15
+ onSubmit: FunctionConstructor;
16
+ }>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("opened" | "closed")[], "opened" | "closed", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ items: {
18
+ type: ArrayConstructor;
19
+ default: () => any[];
20
+ };
21
+ props: ObjectConstructor;
22
+ sync: BooleanConstructor;
23
+ op: ObjectConstructor;
24
+ dialog: ObjectConstructor;
25
+ onOpen: FunctionConstructor;
26
+ onOpened: FunctionConstructor;
27
+ onClose: FunctionConstructor;
28
+ onClosed: FunctionConstructor;
29
+ onInfo: FunctionConstructor;
30
+ onSubmit: FunctionConstructor;
31
+ }>> & Readonly<{
32
+ onOpened?: (...args: any[]) => any;
33
+ onClosed?: (...args: any[]) => any;
34
+ }>, {
35
+ sync: boolean;
36
+ items: unknown[];
37
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
38
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export declare const crudList: HlwCrud.Ref[];
2
+ export declare const emitter: Emitter;
@@ -0,0 +1,13 @@
1
+ import { App } from 'vue';
2
+ declare const Crud: {
3
+ install(app: App, options?: any): {
4
+ name: string;
5
+ };
6
+ };
7
+ export { Crud };
8
+ export * from './emitter';
9
+ export * from './hooks';
10
+ export * from './locale';
11
+ export { registerFormHook } from './utils/form-hook';
12
+ export { renderNode } from './utils/vnode';
13
+ export { ContextMenu } from './components/context-menu';
@@ -0,0 +1,10 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useCrud(options?: HlwCrud.Options, cb?: (app: HlwCrud.Ref) => void): Ref<HlwCrud.Ref, HlwCrud.Ref>;
3
+ export declare function useUpsert<T = any>(options?: HlwUpsert.Options<T>): Ref<HlwUpsert.Ref<any>, HlwUpsert.Ref<any>>;
4
+ export declare function useTable<T = any>(options?: HlwTable.Options<T>, cb?: (table: HlwTable.Ref) => void): Ref<HlwTable.Ref<T>, HlwTable.Ref<T>>;
5
+ export declare function useForm<T = any>(cb?: (app: HlwForm.Ref<T>) => void): Ref<HlwForm.Ref<T>, HlwForm.Ref<T>>;
6
+ export declare function useAdvSearch<T = any>(options?: HlwAdvSearch.Options<T>): Ref<HlwAdvSearch.Ref<T>, HlwAdvSearch.Ref<T>>;
7
+ export declare function useSearch<T = any>(options?: HlwSearch.Options<T>): Ref<HlwSearch.Ref<T>, HlwSearch.Ref<T>>;
8
+ export declare function useDialog(options?: {
9
+ onFullscreen(visible: boolean): void;
10
+ }): HlwDialog.Provide;
@@ -0,0 +1,16 @@
1
+ import { Mitt } from '../utils/mitt';
2
+ export declare function useCore(): {
3
+ crud: HlwCrud.Ref;
4
+ mitt: Mitt;
5
+ };
6
+ export declare function useConfig(): Config;
7
+ export declare function useBrowser(): Browser;
8
+ export declare function useRefs(): {
9
+ refs: {
10
+ [key: string]: obj;
11
+ };
12
+ setRefs: (name: string) => (el: any) => void;
13
+ };
14
+ export declare function useProxy(ctx: any): any;
15
+ export declare function useElApi(keys: string[], el: any): obj;
16
+ export * from './crud';
@@ -0,0 +1 @@
1
+ export * from "./entry";
@@ -0,0 +1,33 @@
1
+ declare const _default: {
2
+ op: string;
3
+ add: string;
4
+ delete: string;
5
+ multiDelete: string;
6
+ update: string;
7
+ refresh: string;
8
+ info: string;
9
+ search: string;
10
+ reset: string;
11
+ clear: string;
12
+ save: string;
13
+ close: string;
14
+ confirm: string;
15
+ advSearch: string;
16
+ searchKey: string;
17
+ placeholder: string;
18
+ tips: string;
19
+ saveSuccess: string;
20
+ deleteSuccess: string;
21
+ deleteConfirm: string;
22
+ empty: string;
23
+ desc: string;
24
+ asc: string;
25
+ select: string;
26
+ deselect: string;
27
+ seeMore: string;
28
+ hideContent: string;
29
+ nonEmpty: string;
30
+ collapse: string;
31
+ expand: string;
32
+ };
33
+ export default _default;