@zjhc/ui 0.0.0-stage → 0.1.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 (207) hide show
  1. package/LICENSE +51 -0
  2. package/NOTICE +23 -0
  3. package/README.md +177 -2
  4. package/dist/component.d.ts +3 -0
  5. package/dist/components/autocomplete/index.d.ts +5 -0
  6. package/dist/components/autocomplete/src/autoComplete.vue.d.ts +511 -0
  7. package/dist/components/autocomplete/src/autocomplete.d.ts +50 -0
  8. package/dist/components/collapse-container/index.d.ts +6 -0
  9. package/dist/components/collapse-container/src/collapseContainer.vue.d.ts +47 -0
  10. package/dist/components/collapse-container/src/instance.d.ts +2 -0
  11. package/dist/components/collapse-panel/index.d.ts +6 -0
  12. package/dist/components/collapse-panel/src/collapsePanel.vue.d.ts +68 -0
  13. package/dist/components/collapse-panel/src/instance.d.ts +2 -0
  14. package/dist/components/complex-table/index.d.ts +7 -0
  15. package/dist/components/complex-table/src/ComplexTable.vue.d.ts +1428 -0
  16. package/dist/components/complex-table/src/TableOperator.vue.d.ts +41 -0
  17. package/dist/components/complex-table/src/instance.d.ts +4 -0
  18. package/dist/components/dialog/index.d.ts +5 -0
  19. package/dist/components/dialog/src/dialog-content.d.ts +20 -0
  20. package/dist/components/dialog/src/dialog.d.ts +76 -0
  21. package/dist/components/dialog/src/dialog.vue.d.ts +456 -0
  22. package/dist/components/dialog/src/dialogContent.vue.d.ts +74 -0
  23. package/dist/components/dialog/src/use-dialog.d.ts +23 -0
  24. package/dist/components/edit-table-column/EditTableColumn.vue.d.ts +79 -0
  25. package/dist/components/edit-table-column/index.d.ts +6 -0
  26. package/dist/components/edit-table-column/registerComp.d.ts +3 -0
  27. package/dist/components/edit-table-column/type.d.ts +14 -0
  28. package/dist/components/group-container/index.d.ts +6 -0
  29. package/dist/components/group-container/src/groupContainer.vue.d.ts +43 -0
  30. package/dist/components/group-container/src/instance.d.ts +2 -0
  31. package/dist/components/index.d.ts +13 -0
  32. package/dist/components/loading/index.d.ts +11 -0
  33. package/dist/components/loading/src/directive.d.ts +13 -0
  34. package/dist/components/loading/src/loading.d.ts +27 -0
  35. package/dist/components/loading/src/service.d.ts +3 -0
  36. package/dist/components/loading/src/types.d.ts +61 -0
  37. package/dist/components/search-layout/index.d.ts +6 -0
  38. package/dist/components/search-layout/src/instance.d.ts +2 -0
  39. package/dist/components/search-layout/src/searchLayout.vue.d.ts +22 -0
  40. package/dist/components/search-panel/index.d.ts +6 -0
  41. package/dist/components/search-panel/src/instance.d.ts +2 -0
  42. package/dist/components/search-panel/src/searchPanel.vue.d.ts +17 -0
  43. package/dist/components/search-panel-layout/index.d.ts +6 -0
  44. package/dist/components/search-panel-layout/src/layout.d.ts +95 -0
  45. package/dist/components/sticky-toolbar/index.d.ts +6 -0
  46. package/dist/components/sticky-toolbar/src/instance.d.ts +2 -0
  47. package/dist/components/sticky-toolbar/src/stickyToolbar.vue.d.ts +43 -0
  48. package/dist/components/switch-mode/index.d.ts +7 -0
  49. package/dist/components/switch-theme/index.d.ts +7 -0
  50. package/dist/components/table-toolbar/index.d.ts +7 -0
  51. package/dist/components/table-toolbar/src/buttonGroup.vue.d.ts +79 -0
  52. package/dist/components/table-toolbar/src/interface.d.ts +21 -0
  53. package/dist/components/table-toolbar/src/tableToolbar.vue.d.ts +71 -0
  54. package/dist/constants/aria.d.ts +17 -0
  55. package/dist/constants/date.d.ts +3 -0
  56. package/dist/constants/event.d.ts +3 -0
  57. package/dist/constants/index.d.ts +5 -0
  58. package/dist/constants/key.d.ts +1 -0
  59. package/dist/constants/size.d.ts +7 -0
  60. package/dist/defaults.d.ts +5 -0
  61. package/dist/hooks/complex-table/index.d.ts +33 -0
  62. package/dist/hooks/get-cookie/index.d.ts +4 -0
  63. package/dist/hooks/index.d.ts +6 -0
  64. package/dist/hooks/oper-modal/index.d.ts +8 -0
  65. package/dist/hooks/post-message/index.d.ts +19 -0
  66. package/dist/hooks/set-theme/index.d.ts +2 -0
  67. package/dist/hooks/use-draggable-resize/index.d.ts +10 -0
  68. package/dist/hooks/use-loading/index.d.ts +4 -0
  69. package/dist/hooks/use-namespace/index.d.ts +20 -0
  70. package/dist/icons/arrow-down.vue.d.ts +2 -0
  71. package/dist/icons/arrow-up.vue.d.ts +2 -0
  72. package/dist/icons/check.vue.d.ts +2 -0
  73. package/dist/icons/close.vue.d.ts +2 -0
  74. package/dist/icons/copy-document.vue.d.ts +2 -0
  75. package/dist/icons/filter.vue.d.ts +2 -0
  76. package/dist/icons/full-screen.vue.d.ts +2 -0
  77. package/dist/icons/index.d.ts +9 -0
  78. package/dist/icons/loading.vue.d.ts +2 -0
  79. package/dist/icons/minus.vue.d.ts +2 -0
  80. package/dist/index.cjs +3985 -0
  81. package/dist/index.css +2661 -0
  82. package/dist/index.d.ts +10 -0
  83. package/dist/index.mjs +3985 -0
  84. package/dist/make-installer.d.ts +5 -0
  85. package/dist/plugin.d.ts +3 -0
  86. package/dist/types/enhance/accessory.d.ts +45 -0
  87. package/dist/types/enhance/biztrace.d.ts +75 -0
  88. package/dist/types/enhance/form.d.ts +83 -0
  89. package/dist/types/enhance/heai.d.ts +47 -0
  90. package/dist/types/enhance/workflow.d.ts +385 -0
  91. package/dist/types/extension/extension.d.ts +58 -0
  92. package/dist/types/extension/frame.d.ts +48 -0
  93. package/dist/types/extension/job.d.ts +36 -0
  94. package/dist/types/framework/auth.d.ts +38 -0
  95. package/dist/types/framework/config.d.ts +13 -0
  96. package/dist/types/framework/core.d.ts +24 -0
  97. package/dist/types/index.d.ts +11 -0
  98. package/dist/utils/index.d.ts +6 -0
  99. package/dist/utils/style.d.ts +10 -0
  100. package/dist/utils/tools/istype.d.ts +11 -0
  101. package/dist/utils/tools/security.d.ts +2 -0
  102. package/dist/utils/tools/throw-error.d.ts +1 -0
  103. package/dist/utils/tools/tree.d.ts +2 -0
  104. package/dist/utils/vue/index.d.ts +2 -0
  105. package/dist/utils/vue/install.d.ts +6 -0
  106. package/dist/utils/vue/shared.d.ts +10 -0
  107. package/dist/utils/vue/typescript.d.ts +5 -0
  108. package/dist/version.d.ts +1 -0
  109. package/package.json +76 -4
  110. package/theme-chalk/autocomplete.css +144 -0
  111. package/theme-chalk/base-var.css +1037 -0
  112. package/theme-chalk/base.css +120 -0
  113. package/theme-chalk/collapse-container.css +71 -0
  114. package/theme-chalk/collapse-panel.css +49 -0
  115. package/theme-chalk/complextable.css +72 -0
  116. package/theme-chalk/dark.css +134 -0
  117. package/theme-chalk/dialog.css +0 -0
  118. package/theme-chalk/document-tables.css +175 -0
  119. package/theme-chalk/group-container.css +159 -0
  120. package/theme-chalk/index.css +2661 -0
  121. package/theme-chalk/loading.css +86 -0
  122. package/theme-chalk/page.css +34 -0
  123. package/theme-chalk/pub-class.css +417 -0
  124. package/theme-chalk/reset.css +152 -0
  125. package/theme-chalk/search-panel.css +31 -0
  126. package/theme-chalk/searchlayout.css +125 -0
  127. package/theme-chalk/src/autocomplete.scss +103 -0
  128. package/theme-chalk/src/base-var.scss +489 -0
  129. package/theme-chalk/src/base.scss +1 -0
  130. package/theme-chalk/src/black/index.scss +4 -0
  131. package/theme-chalk/src/collapse-container.scss +44 -0
  132. package/theme-chalk/src/collapse-panel.scss +26 -0
  133. package/theme-chalk/src/common/var.scss +154 -0
  134. package/theme-chalk/src/complextable.scss +47 -0
  135. package/theme-chalk/src/dark/css-vars.scss +35 -0
  136. package/theme-chalk/src/dark/var.scss +198 -0
  137. package/theme-chalk/src/dialog.scss +0 -0
  138. package/theme-chalk/src/document-tables.scss +133 -0
  139. package/theme-chalk/src/group-container.scss +139 -0
  140. package/theme-chalk/src/index.scss +17 -0
  141. package/theme-chalk/src/light/css-vars.scss +4 -0
  142. package/theme-chalk/src/light/var.scss +158 -0
  143. package/theme-chalk/src/loading.scss +68 -0
  144. package/theme-chalk/src/mixins/_var.scss +48 -0
  145. package/theme-chalk/src/mixins/config.scss +5 -0
  146. package/theme-chalk/src/mixins/function.scss +133 -0
  147. package/theme-chalk/src/mixins/mixins.scss +211 -0
  148. package/theme-chalk/src/page.scss +8 -0
  149. package/theme-chalk/src/pub-class.scss +127 -0
  150. package/theme-chalk/src/reset.scss +155 -0
  151. package/theme-chalk/src/search-panel.scss +10 -0
  152. package/theme-chalk/src/searchlayout.scss +114 -0
  153. package/theme-chalk/src/sticky-toolbar.scss +59 -0
  154. package/theme-chalk/src/table-toolbar.scss +36 -0
  155. package/theme-chalk/src/var.scss +32 -0
  156. package/theme-chalk/src/zjhc/alert.scss +16 -0
  157. package/theme-chalk/src/zjhc/anchor.scss +10 -0
  158. package/theme-chalk/src/zjhc/autocomplete.scss +11 -0
  159. package/theme-chalk/src/zjhc/backtop.scss +8 -0
  160. package/theme-chalk/src/zjhc/breadcrumb.scss +3 -0
  161. package/theme-chalk/src/zjhc/button.scss +82 -0
  162. package/theme-chalk/src/zjhc/calendar.scss +5 -0
  163. package/theme-chalk/src/zjhc/card.scss +5 -0
  164. package/theme-chalk/src/zjhc/cascader.scss +26 -0
  165. package/theme-chalk/src/zjhc/checkbox.scss +59 -0
  166. package/theme-chalk/src/zjhc/collapse.scss +8 -0
  167. package/theme-chalk/src/zjhc/dateEditor.scss +14 -0
  168. package/theme-chalk/src/zjhc/descriptions.scss +32 -0
  169. package/theme-chalk/src/zjhc/dialog.scss +148 -0
  170. package/theme-chalk/src/zjhc/drawer.scss +4 -0
  171. package/theme-chalk/src/zjhc/dropdown.scss +16 -0
  172. package/theme-chalk/src/zjhc/empty.scss +3 -0
  173. package/theme-chalk/src/zjhc/fontsize.scss +42 -0
  174. package/theme-chalk/src/zjhc/form.scss +33 -0
  175. package/theme-chalk/src/zjhc/index.scss +48 -0
  176. package/theme-chalk/src/zjhc/input.scss +47 -0
  177. package/theme-chalk/src/zjhc/link.scss +20 -0
  178. package/theme-chalk/src/zjhc/main.scss +3 -0
  179. package/theme-chalk/src/zjhc/mention.scss +9 -0
  180. package/theme-chalk/src/zjhc/menu.scss +0 -0
  181. package/theme-chalk/src/zjhc/message-box.scss +57 -0
  182. package/theme-chalk/src/zjhc/message.scss +13 -0
  183. package/theme-chalk/src/zjhc/notification.scss +4 -0
  184. package/theme-chalk/src/zjhc/number.scss +9 -0
  185. package/theme-chalk/src/zjhc/overlay.scss +3 -0
  186. package/theme-chalk/src/zjhc/page.scss +3 -0
  187. package/theme-chalk/src/zjhc/pagination.scss +64 -0
  188. package/theme-chalk/src/zjhc/picker.scss +85 -0
  189. package/theme-chalk/src/zjhc/popover.scss +13 -0
  190. package/theme-chalk/src/zjhc/popper.scss +13 -0
  191. package/theme-chalk/src/zjhc/radio.scss +49 -0
  192. package/theme-chalk/src/zjhc/scrollbar.scss +5 -0
  193. package/theme-chalk/src/zjhc/segmented.scss +18 -0
  194. package/theme-chalk/src/zjhc/select.scss +49 -0
  195. package/theme-chalk/src/zjhc/steps.scss +40 -0
  196. package/theme-chalk/src/zjhc/switch.scss +11 -0
  197. package/theme-chalk/src/zjhc/table-v2.scss +16 -0
  198. package/theme-chalk/src/zjhc/table.scss +44 -0
  199. package/theme-chalk/src/zjhc/tabs.scss +15 -0
  200. package/theme-chalk/src/zjhc/tags.scss +25 -0
  201. package/theme-chalk/src/zjhc/timeline.scss +16 -0
  202. package/theme-chalk/src/zjhc/tour.scss +9 -0
  203. package/theme-chalk/src/zjhc/tree.scss +6 -0
  204. package/theme-chalk/src/zjhc/upload.scss +6 -0
  205. package/theme-chalk/sticky-toolbar.css +71 -0
  206. package/theme-chalk/table-toolbar.css +53 -0
  207. package/theme-chalk/var.css +120 -0
@@ -0,0 +1,74 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {}): any;
5
+ default?(_: {}): any;
6
+ footer?(_: {}): any;
7
+ };
8
+ refs: {
9
+ headerRef: HTMLElement;
10
+ };
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ readonly center: BooleanConstructor;
16
+ readonly alignCenter: BooleanConstructor;
17
+ readonly closeIcon: {
18
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<import('vue').PropType<string | import('vue').Component>, unknown, unknown>>;
19
+ readonly required: false;
20
+ readonly validator: ((val: unknown) => boolean) | undefined;
21
+ __epPropKey: true;
22
+ };
23
+ readonly draggable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
24
+ readonly resizable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
25
+ readonly overflow: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
26
+ readonly fullscreen: BooleanConstructor;
27
+ readonly showClose: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
28
+ readonly title: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
29
+ readonly ariaLevel: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
30
+ }>, {
31
+ resetPosition: () => void;
32
+ resetSize: () => void;
33
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
34
+ close: (...args: any[]) => void;
35
+ minusChange: (...args: any[]) => void;
36
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ readonly center: BooleanConstructor;
38
+ readonly alignCenter: BooleanConstructor;
39
+ readonly closeIcon: {
40
+ readonly type: import('vue').PropType<import('element-plus/es/utils/index').EpPropMergeType<import('vue').PropType<string | import('vue').Component>, unknown, unknown>>;
41
+ readonly required: false;
42
+ readonly validator: ((val: unknown) => boolean) | undefined;
43
+ __epPropKey: true;
44
+ };
45
+ readonly draggable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
46
+ readonly resizable: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
47
+ readonly overflow: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
48
+ readonly fullscreen: BooleanConstructor;
49
+ readonly showClose: import('element-plus/es/utils/index').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
50
+ readonly title: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
51
+ readonly ariaLevel: import('element-plus/es/utils/index').EpPropFinalized<StringConstructor, unknown, unknown, "2", boolean>;
52
+ }>> & Readonly<{
53
+ onClose?: (...args: any[]) => any;
54
+ onMinusChange?: (...args: any[]) => any;
55
+ }>, {
56
+ readonly overflow: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
57
+ readonly title: string;
58
+ readonly center: boolean;
59
+ readonly resizable: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
60
+ readonly draggable: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
61
+ readonly showClose: import('element-plus/es/utils/index').EpPropMergeType<BooleanConstructor, unknown, unknown>;
62
+ readonly ariaLevel: string;
63
+ readonly alignCenter: boolean;
64
+ readonly fullscreen: boolean;
65
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
66
+ headerRef: HTMLElement;
67
+ }, HTMLDivElement>;
68
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
69
+ export default _default;
70
+ type __VLS_WithTemplateSlots<T, S> = T & {
71
+ new (): {
72
+ $slots: S;
73
+ };
74
+ };
@@ -0,0 +1,23 @@
1
+ import { CSSProperties, Ref } from 'vue';
2
+ import { DialogProps } from './dialog';
3
+ export declare const useDialog: (props: DialogProps, targetRef: Ref<HTMLElement | undefined>) => {
4
+ afterEnter: () => void;
5
+ afterLeave: () => void;
6
+ beforeLeave: () => void;
7
+ handleClose: () => void;
8
+ onModalClick: () => void;
9
+ close: () => void;
10
+ doClose: () => void;
11
+ onOpenAutoFocus: () => void;
12
+ onCloseAutoFocus: () => void;
13
+ onCloseRequested: () => void;
14
+ onFocusoutPrevented: (event: CustomEvent) => void;
15
+ titleId: Ref<string, string>;
16
+ bodyId: Ref<string, string>;
17
+ closed: Ref<boolean, boolean>;
18
+ style: import('vue').ComputedRef<CSSProperties>;
19
+ overlayDialogStyle: import('vue').ComputedRef<CSSProperties>;
20
+ rendered: Ref<boolean, boolean>;
21
+ visible: Ref<boolean, boolean>;
22
+ zIndex: Ref<number, number>;
23
+ };
@@ -0,0 +1,79 @@
1
+ import { PropType } from 'vue';
2
+ import { SelectOptions } from './type';
3
+ declare function __VLS_template(): {
4
+ attrs: Partial<{}>;
5
+ slots: {
6
+ append?(_: any): any;
7
+ append?(_: {}): any;
8
+ default?(_: any): any;
9
+ prepend?(_: {}): any;
10
+ filterIcon?(_: any): any;
11
+ };
12
+ refs: {};
13
+ rootEl: any;
14
+ };
15
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
16
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
17
+ inputName: {
18
+ type: StringConstructor;
19
+ required: false;
20
+ default: string;
21
+ };
22
+ inputProps: {
23
+ type: PropType<Record<string, unknown>>;
24
+ required: false;
25
+ default: () => {};
26
+ };
27
+ inputChild: {
28
+ type: PropType<unknown[]>;
29
+ required: false;
30
+ };
31
+ isEdit: {
32
+ type: BooleanConstructor;
33
+ required: false;
34
+ default: boolean;
35
+ };
36
+ selectOptions: {
37
+ type: PropType<SelectOptions[]>;
38
+ required: false;
39
+ };
40
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
41
+ "on-change": (...args: any[]) => void;
42
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
43
+ inputName: {
44
+ type: StringConstructor;
45
+ required: false;
46
+ default: string;
47
+ };
48
+ inputProps: {
49
+ type: PropType<Record<string, unknown>>;
50
+ required: false;
51
+ default: () => {};
52
+ };
53
+ inputChild: {
54
+ type: PropType<unknown[]>;
55
+ required: false;
56
+ };
57
+ isEdit: {
58
+ type: BooleanConstructor;
59
+ required: false;
60
+ default: boolean;
61
+ };
62
+ selectOptions: {
63
+ type: PropType<SelectOptions[]>;
64
+ required: false;
65
+ };
66
+ }>> & Readonly<{
67
+ "onOn-change"?: (...args: any[]) => any;
68
+ }>, {
69
+ inputName: string;
70
+ inputProps: Record<string, unknown>;
71
+ isEdit: boolean;
72
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
73
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
74
+ export default _default;
75
+ type __VLS_WithTemplateSlots<T, S> = T & {
76
+ new (): {
77
+ $slots: S;
78
+ };
79
+ };
@@ -0,0 +1,6 @@
1
+ import { default as EditTableColumn } from './EditTableColumn.vue';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcEditTableColumn: SFCWithInstall<typeof EditTableColumn>;
4
+ export { registerComp } from './registerComp';
5
+ export * from './type';
6
+ export default EditTableColumn;
@@ -0,0 +1,3 @@
1
+ import { Component } from 'vue';
2
+ export declare function getComp(name: string): Component;
3
+ export declare function registerComp(name: string, comp: Component): void;
@@ -0,0 +1,14 @@
1
+ import { TableColumnCtx } from 'element-plus';
2
+ import { VNode } from 'vue';
3
+ export interface SelectOptions {
4
+ value: string | number | boolean | object;
5
+ label: string | number;
6
+ disabled?: boolean;
7
+ }
8
+ export interface EditTableColumnProps<T = object> extends Omit<TableColumnCtx<T>, 'children'> {
9
+ inputName: string;
10
+ inputProps: object;
11
+ inputChild: VNode[];
12
+ isEdit: boolean;
13
+ selectOptions: SelectOptions[];
14
+ }
@@ -0,0 +1,6 @@
1
+ import { default as GroupContainer } from './src/groupContainer.vue';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcGroupContainer: SFCWithInstall<typeof GroupContainer>;
4
+ export default ZjhcGroupContainer;
5
+ export * from './src/groupContainer.vue';
6
+ export type { GroupContainerInstance } from './src/instance';
@@ -0,0 +1,43 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ toolbar?(_: {}): any;
5
+ content?(_: {}): any;
6
+ };
7
+ refs: {};
8
+ rootEl: HTMLDivElement;
9
+ };
10
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
11
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
12
+ title: {
13
+ type: StringConstructor;
14
+ required: false;
15
+ default: string;
16
+ };
17
+ isBorder: {
18
+ type: BooleanConstructor;
19
+ required: false;
20
+ default: boolean;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
+ title: {
24
+ type: StringConstructor;
25
+ required: false;
26
+ default: string;
27
+ };
28
+ isBorder: {
29
+ type: BooleanConstructor;
30
+ required: false;
31
+ default: boolean;
32
+ };
33
+ }>> & Readonly<{}>, {
34
+ title: string;
35
+ isBorder: boolean;
36
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,2 @@
1
+ import { default as GroupContainer } from './groupContainer.vue';
2
+ export type GroupContainerInstance = InstanceType<typeof GroupContainer>;
@@ -0,0 +1,13 @@
1
+ export * from './search-panel';
2
+ export * from './search-panel-layout';
3
+ export * from './search-layout';
4
+ export * from './collapse-panel';
5
+ export * from './collapse-container';
6
+ export * from './sticky-toolbar';
7
+ export * from './group-container';
8
+ export * from './table-toolbar';
9
+ export * from './dialog';
10
+ export * from './complex-table';
11
+ export * from './autocomplete';
12
+ export * from './loading';
13
+ export * from './edit-table-column';
@@ -0,0 +1,11 @@
1
+ import { Loading } from './src/service';
2
+ import { vLoading as vZjhcLoading } from './src/directive';
3
+ import { App } from 'vue';
4
+ export declare const ZjhcLoading: {
5
+ install(app: App): void;
6
+ directive: import('vue').Directive<import('./src/directive').ElementLoading, import('./src/directive').LoadingBinding>;
7
+ service: (options?: import('.').LoadingOptions) => import('./src/loading').LoadingInstance;
8
+ };
9
+ export default ZjhcLoading;
10
+ export { vZjhcLoading, vZjhcLoading as ZjhcLoadingDirective, Loading as ZjhcLoadingService, };
11
+ export * from './src/types';
@@ -0,0 +1,13 @@
1
+ import { Directive, UnwrapRef } from 'vue';
2
+ import { LoadingOptions } from './types';
3
+ import { LoadingInstance } from './loading';
4
+ declare const INSTANCE_KEY: unique symbol;
5
+ export type LoadingBinding = boolean | UnwrapRef<LoadingOptions>;
6
+ export interface ElementLoading extends HTMLElement {
7
+ [INSTANCE_KEY]?: {
8
+ instance: LoadingInstance;
9
+ options: LoadingOptions;
10
+ };
11
+ }
12
+ export declare const vLoading: Directive<ElementLoading, LoadingBinding>;
13
+ export {};
@@ -0,0 +1,27 @@
1
+ import { LoadingOptionsResolved } from './types';
2
+ export declare function createLoadingComponent(options: LoadingOptionsResolved): {
3
+ setText: (text: string) => void;
4
+ removeElLoadingChild: () => void;
5
+ close: () => void;
6
+ handleAfterLeave: () => void;
7
+ vm: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any>;
8
+ $el: HTMLElement;
9
+ originalPosition: import('vue').Ref<string, string>;
10
+ originalOverflow: import('vue').Ref<string, string>;
11
+ visible: import('vue').Ref<boolean, boolean>;
12
+ parent: import('vue').Ref<import('./types').LoadingParentElement, import('./types').LoadingParentElement>;
13
+ fillColor: import('vue').Ref<string, string>;
14
+ animateColor: import('vue').Ref<string, string>;
15
+ background: import('vue').Ref<string, string>;
16
+ svg: import('vue').Ref<string, string>;
17
+ svgViewBox: import('vue').Ref<string, string>;
18
+ spinner: import('vue').Ref<string | boolean, string | boolean>;
19
+ text: import('vue').Ref<string, string>;
20
+ fullscreen: import('vue').Ref<boolean, boolean>;
21
+ lock: import('vue').Ref<boolean, boolean>;
22
+ customClass: import('vue').Ref<string, string>;
23
+ target: import('vue').Ref<HTMLElement, HTMLElement>;
24
+ beforeClose?: import('vue').Ref<() => boolean, () => boolean>;
25
+ closed?: import('vue').Ref<() => void, () => void>;
26
+ };
27
+ export type LoadingInstance = ReturnType<typeof createLoadingComponent>;
@@ -0,0 +1,3 @@
1
+ import { LoadingInstance } from './loading';
2
+ import { LoadingOptions } from './types';
3
+ export declare const Loading: (options?: LoadingOptions) => LoadingInstance;
@@ -0,0 +1,61 @@
1
+ import { MaybeRef } from '@vueuse/core';
2
+ export type LoadingOptionsResolved = {
3
+ parent: LoadingParentElement;
4
+ /**
5
+ * 图标填充色
6
+ */
7
+ fillColor: MaybeRef<string>;
8
+ /**
9
+ * 图标动画填充色
10
+ */
11
+ animateColor: MaybeRef<string>;
12
+ /**
13
+ * 遮罩背景色
14
+ */
15
+ background: MaybeRef<string>;
16
+ /**
17
+ * 自定义 SVG 元素覆盖默认加载器
18
+ */
19
+ svg: MaybeRef<string>;
20
+ /**
21
+ * 设置用于加载 svg 元素的 viewBox 属性
22
+ */
23
+ svgViewBox: MaybeRef<string>;
24
+ /**
25
+ * 自定义加载图标类名
26
+ */
27
+ spinner: MaybeRef<boolean | string>;
28
+ /**
29
+ * 显示在加载图标下方的加载文案
30
+ */
31
+ text: MaybeRef<string>;
32
+ /**
33
+ * 同 v-zjhcloading 指令中的 fullscreen 修饰符
34
+ */
35
+ fullscreen: boolean;
36
+ /**
37
+ * 同 v-zjhcloading 指令中的 lock 修饰符
38
+ */
39
+ lock: boolean;
40
+ /**
41
+ * Loading 的自定义类名
42
+ */
43
+ customClass: MaybeRef<string>;
44
+ visible: boolean;
45
+ target: HTMLElement;
46
+ beforeClose?: () => boolean;
47
+ closed?: () => void;
48
+ };
49
+ export type LoadingOptions = Partial<Omit<LoadingOptionsResolved, 'parent' | 'target'> & {
50
+ /**
51
+ * @description the DOM node Loading needs to cover. Accepts a DOM object or a string. If it's a string, it will be passed to `document.querySelector` to get the corresponding DOM node
52
+ */
53
+ target: HTMLElement | string;
54
+ /**
55
+ * @description same as the `body` modifier of `v-zjhcloading`
56
+ */
57
+ body: boolean;
58
+ }>;
59
+ export interface LoadingParentElement extends HTMLElement {
60
+ vLoadingAddClassList?: () => void;
61
+ }
@@ -0,0 +1,6 @@
1
+ import { default as SearchLayout } from './src/searchLayout.vue';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcSearchLayout: SFCWithInstall<typeof SearchLayout>;
4
+ export default ZjhcSearchLayout;
5
+ export * from './src/searchLayout.vue';
6
+ export type { SearchLayoutInstance } from './src/instance';
@@ -0,0 +1,2 @@
1
+ import { default as SearchLayout } from './searchLayout.vue';
2
+ export type SearchLayoutInstance = InstanceType<typeof SearchLayout>;
@@ -0,0 +1,22 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ search?(_: {}): any;
5
+ sidebar?(_: {}): any;
6
+ toolbar?(_: {}): any;
7
+ list?(_: {}): any;
8
+ pagination?(_: {}): any;
9
+ default?(_: {}): any;
10
+ };
11
+ refs: {};
12
+ rootEl: HTMLDivElement;
13
+ };
14
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
15
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
16
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
17
+ export default _default;
18
+ type __VLS_WithTemplateSlots<T, S> = T & {
19
+ new (): {
20
+ $slots: S;
21
+ };
22
+ };
@@ -0,0 +1,6 @@
1
+ import { default as SearchPanel } from './src/searchPanel.vue';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcSearchPanel: SFCWithInstall<typeof SearchPanel>;
4
+ export default ZjhcSearchPanel;
5
+ export * from './src/searchPanel.vue';
6
+ export type { SearchPanelInstance } from './src/instance';
@@ -0,0 +1,2 @@
1
+ import { default as SearchPanel } from './searchPanel.vue';
2
+ export type SearchPanelInstance = InstanceType<typeof SearchPanel>;
@@ -0,0 +1,17 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
8
+ };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
10
+ declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
11
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
12
+ export default _default;
13
+ type __VLS_WithTemplateSlots<T, S> = T & {
14
+ new (): {
15
+ $slots: S;
16
+ };
17
+ };
@@ -0,0 +1,6 @@
1
+ import { default as SearchPanelLayout } from './src/layout';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcSearchPanelLayout: SFCWithInstall<typeof SearchPanelLayout>;
4
+ export default ZjhcSearchPanelLayout;
5
+ export * from './src/layout';
6
+ export type { SearchPanelLayoutInstance } from './src/layout';
@@ -0,0 +1,95 @@
1
+ import { RendererElement, RendererNode, VNode } from 'vue';
2
+ import { FormValidateCallback, FormItemProp, FormInstance } from 'element-plus';
3
+ import { Arrayable } from 'element-plus/es/utils';
4
+ declare module 'vue' {
5
+ interface ObjectDirective {
6
+ name?: string;
7
+ }
8
+ }
9
+ interface SearchPanelLayoutExpose {
10
+ formRef: FormInstance | undefined;
11
+ resetFields: () => void;
12
+ validate: (callback?: FormValidateCallback | undefined) => Promise<boolean>;
13
+ validateField: (props?: Arrayable<FormItemProp> | undefined, callback?: FormValidateCallback | undefined) => void;
14
+ scrollToField: (prop: FormItemProp) => void;
15
+ clearValidate: (props?: Arrayable<FormItemProp> | undefined) => void;
16
+ }
17
+ declare const SearchPanelLayout: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
18
+ gutter: {
19
+ type: NumberConstructor;
20
+ default: number;
21
+ };
22
+ enableExpand: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ colSpan: {
27
+ type: (NumberConstructor | {
28
+ (arrayLength: number): number[];
29
+ (...items: number[]): number[];
30
+ new (arrayLength: number): number[];
31
+ new (...items: number[]): number[];
32
+ isArray(arg: any): arg is any[];
33
+ readonly prototype: any[];
34
+ from<T>(arrayLike: ArrayLike<T>): T[];
35
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
36
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
37
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
38
+ of<T>(...items: T[]): T[];
39
+ readonly [Symbol.species]: ArrayConstructor;
40
+ })[];
41
+ default: number;
42
+ };
43
+ collapse: {
44
+ type: BooleanConstructor;
45
+ default: boolean;
46
+ };
47
+ collapseSelector: {
48
+ type: StringConstructor;
49
+ default: string;
50
+ };
51
+ }>, () => VNode<RendererNode, RendererElement, {
52
+ [key: string]: any;
53
+ }>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
54
+ gutter: {
55
+ type: NumberConstructor;
56
+ default: number;
57
+ };
58
+ enableExpand: {
59
+ type: BooleanConstructor;
60
+ default: boolean;
61
+ };
62
+ colSpan: {
63
+ type: (NumberConstructor | {
64
+ (arrayLength: number): number[];
65
+ (...items: number[]): number[];
66
+ new (arrayLength: number): number[];
67
+ new (...items: number[]): number[];
68
+ isArray(arg: any): arg is any[];
69
+ readonly prototype: any[];
70
+ from<T>(arrayLike: ArrayLike<T>): T[];
71
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
72
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
73
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
74
+ of<T>(...items: T[]): T[];
75
+ readonly [Symbol.species]: ArrayConstructor;
76
+ })[];
77
+ default: number;
78
+ };
79
+ collapse: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ };
83
+ collapseSelector: {
84
+ type: StringConstructor;
85
+ default: string;
86
+ };
87
+ }>> & Readonly<{}>, {
88
+ gutter: number;
89
+ collapse: boolean;
90
+ enableExpand: boolean;
91
+ colSpan: number | number[];
92
+ collapseSelector: string;
93
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
94
+ export default SearchPanelLayout;
95
+ export type SearchPanelLayoutInstance = InstanceType<typeof SearchPanelLayout> & SearchPanelLayoutExpose;
@@ -0,0 +1,6 @@
1
+ import { default as StickyToolbar } from './src/stickyToolbar.vue';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcStickyToolbar: SFCWithInstall<typeof StickyToolbar>;
4
+ export default ZjhcStickyToolbar;
5
+ export * from './src/stickyToolbar.vue';
6
+ export type { StickyToolbarInstance } from './src/instance';
@@ -0,0 +1,2 @@
1
+ import { default as StickyToolbar } from './stickyToolbar.vue';
2
+ export type StickyToolbarInstance = InstanceType<typeof StickyToolbar>;
@@ -0,0 +1,43 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ content?(_: {}): any;
5
+ toggle?(_: {}): any;
6
+ side?(_: {}): any;
7
+ };
8
+ refs: {
9
+ wrapperDom: HTMLDivElement;
10
+ };
11
+ rootEl: HTMLDivElement;
12
+ };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
14
+ declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
15
+ selector: {
16
+ type: StringConstructor;
17
+ required: false;
18
+ default: string;
19
+ };
20
+ }>, {
21
+ onToggle: () => void;
22
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ toggleEnd: (...args: any[]) => void;
24
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ selector: {
26
+ type: StringConstructor;
27
+ required: false;
28
+ default: string;
29
+ };
30
+ }>> & Readonly<{
31
+ onToggleEnd?: (...args: any[]) => any;
32
+ }>, {
33
+ selector: string;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
35
+ wrapperDom: HTMLDivElement;
36
+ }, HTMLDivElement>;
37
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
38
+ export default _default;
39
+ type __VLS_WithTemplateSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ export declare function initMode(): void;
3
+ export declare function switchStandardAndCareMode(mode: string, oldMode?: string): void;
4
+ export declare const ZjhcSwitchMode: {
5
+ install(app: App): void;
6
+ };
7
+ export default ZjhcSwitchMode;
@@ -0,0 +1,7 @@
1
+ import { App } from 'vue';
2
+ export declare function initTheme(): void;
3
+ export declare function changeTheme(theme: string, oldTheme?: string): void;
4
+ export declare const ZjhcSwitchTheme: {
5
+ install(app: App): void;
6
+ };
7
+ export default ZjhcSwitchTheme;
@@ -0,0 +1,7 @@
1
+ import { default as TableToolbar } from './src/tableToolbar.vue';
2
+ import { SFCWithInstall } from '../../utils';
3
+ export declare const ZjhcTableToolbar: SFCWithInstall<typeof TableToolbar>;
4
+ export default ZjhcTableToolbar;
5
+ export * from './src/tableToolbar.vue';
6
+ export * from './src/interface';
7
+ export type TableToolbarInstance = InstanceType<typeof TableToolbar>;