@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,79 @@
1
+ import { PropType } from 'vue';
2
+ import { TableAction, ButtonType } from './interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ actions: {
5
+ type: PropType<TableAction[]>;
6
+ required: true;
7
+ default: () => any[];
8
+ };
9
+ moreButtonText: {
10
+ type: StringConstructor;
11
+ required: false;
12
+ default: string;
13
+ };
14
+ buttonType: {
15
+ type: PropType<ButtonType>;
16
+ required: false;
17
+ default: string;
18
+ };
19
+ plain: {
20
+ type: BooleanConstructor;
21
+ required: false;
22
+ default: boolean;
23
+ };
24
+ space: {
25
+ type: NumberConstructor;
26
+ required: false;
27
+ default: number;
28
+ };
29
+ rows: {
30
+ type: PropType<any[]>;
31
+ required: false;
32
+ default: () => any[];
33
+ };
34
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
+ command: (...args: any[]) => void;
36
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
37
+ actions: {
38
+ type: PropType<TableAction[]>;
39
+ required: true;
40
+ default: () => any[];
41
+ };
42
+ moreButtonText: {
43
+ type: StringConstructor;
44
+ required: false;
45
+ default: string;
46
+ };
47
+ buttonType: {
48
+ type: PropType<ButtonType>;
49
+ required: false;
50
+ default: string;
51
+ };
52
+ plain: {
53
+ type: BooleanConstructor;
54
+ required: false;
55
+ default: boolean;
56
+ };
57
+ space: {
58
+ type: NumberConstructor;
59
+ required: false;
60
+ default: number;
61
+ };
62
+ rows: {
63
+ type: PropType<any[]>;
64
+ required: false;
65
+ default: () => any[];
66
+ };
67
+ }>> & Readonly<{
68
+ onCommand?: (...args: any[]) => any;
69
+ }>, {
70
+ actions: TableAction[];
71
+ moreButtonText: string;
72
+ buttonType: "" | "default" | "text" | "primary" | "success" | "warning" | "info" | "danger";
73
+ plain: boolean;
74
+ space: number;
75
+ rows: any[];
76
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
77
+ groupRef: HTMLDivElement;
78
+ }, HTMLDivElement>;
79
+ export default _default;
@@ -0,0 +1,21 @@
1
+ import { ButtonType } from 'element-plus';
2
+ import { Component } from 'vue';
3
+ export type TableActionMode = 'none' | 'one' | 'more';
4
+ export type ActionPosition = 'left' | 'right';
5
+ export type ActionEvent = (row?: any, index?: number) => void;
6
+ export type ActionMouseEvent = (row?: any, index?: number, event?: MouseEvent) => void;
7
+ export interface TableAction {
8
+ key: string;
9
+ type?: ButtonType;
10
+ position?: ActionPosition;
11
+ limit?: TableActionMode;
12
+ icon?: string | Component;
13
+ plain?: boolean;
14
+ text?: string;
15
+ tooltip?: string;
16
+ disabled?: boolean | ((row?: any) => boolean);
17
+ confirm?: boolean | string;
18
+ onclick: string | ActionEvent | ActionMouseEvent;
19
+ children?: Array<TableAction>;
20
+ }
21
+ export type { ButtonType };
@@ -0,0 +1,71 @@
1
+ import { PropType } from 'vue';
2
+ import { TableAction } from './interface';
3
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
+ actions: {
5
+ type: PropType<TableAction[]>;
6
+ required: false;
7
+ default: () => any[];
8
+ };
9
+ moreButtonText: {
10
+ type: StringConstructor;
11
+ required: false;
12
+ default: string;
13
+ };
14
+ primaryColSpan: {
15
+ type: NumberConstructor;
16
+ required: false;
17
+ };
18
+ secondaryColSpan: {
19
+ type: NumberConstructor;
20
+ required: false;
21
+ };
22
+ rows: {
23
+ type: PropType<any[]>;
24
+ required: false;
25
+ default: () => any[];
26
+ };
27
+ space: {
28
+ type: NumberConstructor;
29
+ required: false;
30
+ default: number;
31
+ };
32
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
33
+ "on-command": (...args: any[]) => void;
34
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
35
+ actions: {
36
+ type: PropType<TableAction[]>;
37
+ required: false;
38
+ default: () => any[];
39
+ };
40
+ moreButtonText: {
41
+ type: StringConstructor;
42
+ required: false;
43
+ default: string;
44
+ };
45
+ primaryColSpan: {
46
+ type: NumberConstructor;
47
+ required: false;
48
+ };
49
+ secondaryColSpan: {
50
+ type: NumberConstructor;
51
+ required: false;
52
+ };
53
+ rows: {
54
+ type: PropType<any[]>;
55
+ required: false;
56
+ default: () => any[];
57
+ };
58
+ space: {
59
+ type: NumberConstructor;
60
+ required: false;
61
+ default: number;
62
+ };
63
+ }>> & Readonly<{
64
+ "onOn-command"?: (...args: any[]) => any;
65
+ }>, {
66
+ actions: TableAction[];
67
+ moreButtonText: string;
68
+ space: number;
69
+ rows: any[];
70
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
71
+ export default _default;
@@ -0,0 +1,17 @@
1
+ export declare const EVENT_CODE: {
2
+ tab: string;
3
+ enter: string;
4
+ space: string;
5
+ left: string;
6
+ up: string;
7
+ right: string;
8
+ down: string;
9
+ esc: string;
10
+ delete: string;
11
+ backspace: string;
12
+ numpadEnter: string;
13
+ pageUp: string;
14
+ pageDown: string;
15
+ home: string;
16
+ end: string;
17
+ };
@@ -0,0 +1,3 @@
1
+ export declare const datePickTypes: readonly ["year", "years", "month", "months", "date", "dates", "week", "datetime", "datetimerange", "daterange", "monthrange", "yearrange"];
2
+ export declare const WEEK_DAYS: readonly ["sun", "mon", "tue", "wed", "thu", "fri", "sat"];
3
+ export type DatePickType = typeof datePickTypes[number];
@@ -0,0 +1,3 @@
1
+ export declare const UPDATE_MODEL_EVENT = "update:modelValue";
2
+ export declare const CHANGE_EVENT = "change";
3
+ export declare const INPUT_EVENT = "input";
@@ -0,0 +1,5 @@
1
+ export * from './aria';
2
+ export * from './date';
3
+ export * from './event';
4
+ export * from './key';
5
+ export * from './size';
@@ -0,0 +1 @@
1
+ export declare const INSTALLED_KEY: unique symbol;
@@ -0,0 +1,7 @@
1
+ export declare const componentSizes: readonly ["", "default", "small", "large"];
2
+ export type ComponentSize = typeof componentSizes[number];
3
+ export declare const componentSizeMap: {
4
+ readonly large: 40;
5
+ readonly default: 32;
6
+ readonly small: 24;
7
+ };
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ version: string;
3
+ install: (app: import('vue').App) => void;
4
+ };
5
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import { ZjhcConfig, PageInfo } from '../../types';
2
+ export declare function useComplexTable<T>(config: ZjhcConfig): {
3
+ tableData: import('vue').Ref<import('@vue/reactivity').UnwrapRefSimple<T>[], T[] | import('@vue/reactivity').UnwrapRefSimple<T>[]>;
4
+ tablePagination: {
5
+ readonly small?: boolean;
6
+ readonly background?: boolean;
7
+ readonly pagerCount?: number;
8
+ readonly layout?: string;
9
+ readonly pageSizes?: number[];
10
+ readonly popperClass?: "";
11
+ readonly prevText?: string;
12
+ readonly prevIcon?: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ readonly nextText?: string;
14
+ readonly nextIcon?: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
15
+ readonly teleported?: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
16
+ readonly disabled?: boolean;
17
+ readonly hideOnSinglePage?: boolean;
18
+ readonly pageSize?: number;
19
+ readonly defaultPageSize?: number;
20
+ readonly total?: number;
21
+ readonly pageCount?: number;
22
+ readonly currentPage?: number;
23
+ readonly defaultCurrentPage?: number;
24
+ readonly popperStyle?: any;
25
+ readonly size?: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>;
26
+ readonly appendSizeTo?: string;
27
+ visible?: boolean;
28
+ };
29
+ setData: (data?: Array<T>) => void;
30
+ setPagination: (pageData?: PageInfo<T>) => void;
31
+ setPageIndex: (pageIndex: number) => void;
32
+ setPageSizes: (pageSize: number) => void;
33
+ };
@@ -0,0 +1,4 @@
1
+ type Callback = (value: string | null) => void;
2
+ export declare function getTopCookie(name: string, callback: Callback): void;
3
+ export declare function initCookieListen(): void;
4
+ export {};
@@ -0,0 +1,6 @@
1
+ export * from './use-namespace';
2
+ export * from './use-draggable-resize';
3
+ export * from './use-loading';
4
+ export * from './oper-modal';
5
+ export * from './complex-table';
6
+ export * from './set-theme';
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ export declare function useOperModal<T extends object>(initValue: T): {
3
+ mode: Ref<string, string>;
4
+ visible: Ref<boolean, boolean>;
5
+ info: Ref<T, T>;
6
+ setOperModal: (m: string, v: boolean, i: T) => void;
7
+ clearOperModal: () => void;
8
+ };
@@ -0,0 +1,19 @@
1
+ import { FrameUserInfo } from '../../types';
2
+ export interface MessageType {
3
+ type: string;
4
+ data: Record<string, unknown>;
5
+ }
6
+ export declare const COOKIE_TYPE = "cookie";
7
+ export declare const GET_COOKIE_TYPE = "get-top-cookie";
8
+ export declare const FRAME_USER_INFO_TYPE = "frame-user-info";
9
+ export declare const FRAME_REFRESH = "frame-refresh";
10
+ export type ToRecord<T> = {
11
+ [K in keyof T]: unknown;
12
+ };
13
+ export declare function postMessage(target: MessageEventSource | null, message: MessageType, origin?: string): void;
14
+ export declare function addMessageListener(): void;
15
+ export declare function postUserInfoMessage(target: MessageEventSource | null, frameUserInfo: FrameUserInfo): void;
16
+ export declare const COOKIE_NAME = "x-customs-user";
17
+ export declare function getTopCookie(name?: string): void;
18
+ export declare function postCookieMessage(target: MessageEventSource | null, cookieName?: string): void;
19
+ export declare function postRefreshMessage(target: MessageEventSource | null): void;
@@ -0,0 +1,2 @@
1
+ import { FrameThemeInfo } from '../../types';
2
+ export declare function setTheme(theme: FrameThemeInfo | undefined): void;
@@ -0,0 +1,10 @@
1
+ import { ComputedRef, Ref } from 'vue';
2
+ export declare const useDraggableAndResizable: (targetRef: Ref<HTMLElement | undefined>, dragRef: Ref<HTMLElement | undefined>, draggable: ComputedRef<boolean>, resizable: ComputedRef<boolean>, isFullscreen: ComputedRef<boolean>, alignCenter: ComputedRef<boolean>, overflow?: ComputedRef<boolean>) => {
3
+ resetPosition: () => void;
4
+ resetSize: () => void;
5
+ onExpand: () => void;
6
+ onCompress: () => void;
7
+ onMinus: () => void;
8
+ fullscreen: Ref<boolean, boolean>;
9
+ minus: Ref<boolean, boolean>;
10
+ };
@@ -0,0 +1,4 @@
1
+ export declare function useLoading(initValue?: boolean): {
2
+ loading: import('vue').Ref<boolean, boolean>;
3
+ setLoading: (value: boolean) => void;
4
+ };
@@ -0,0 +1,20 @@
1
+ export declare const defaultNamespace = "zjhc";
2
+ /**
3
+ * 用于创建和管理BEM类名的工具函数
4
+ * @param {string} block 块名
5
+ * @returns 返回一个对象,包含用于创建BEM类名的各种方法
6
+ */
7
+ export declare const useNamespace: (block: string) => {
8
+ namespace: import('vue').ComputedRef<string>;
9
+ b: (blockSuffix?: string) => string;
10
+ e: (element?: string) => string;
11
+ m: (modifier?: string) => string;
12
+ be: (blockSuffix?: string, element?: string) => string;
13
+ em: (element?: string, modifier?: string) => string;
14
+ bm: (blockSuffix?: string, modifier?: string) => string;
15
+ bem: (blockSuffix?: string, element?: string, modifier?: string) => string;
16
+ is: {
17
+ (name: string, state: boolean | undefined): string;
18
+ (name: string): string;
19
+ };
20
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, 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,9 @@
1
+ export { default as Loading } from './loading.vue';
2
+ export { default as Check } from './check.vue';
3
+ export { default as ArrowDown } from './arrow-down.vue';
4
+ export { default as ArrowUp } from './arrow-up.vue';
5
+ export { default as Filter } from './filter.vue';
6
+ export { default as Close } from './close.vue';
7
+ export { default as Minus } from './minus.vue';
8
+ export { default as CopyDocument } from './copy-document.vue';
9
+ export { default as FullScreen } from './full-screen.vue';
@@ -0,0 +1,2 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, 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<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
2
+ export default _default;