star-horse-lowcode 3.0.3 → 3.0.5

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 (173) hide show
  1. package/README.md +10 -0
  2. package/dist/api/WebSocketUtils.d.ts +100 -0
  3. package/dist/api/date_utils.d.ts +58 -0
  4. package/dist/api/device.d.ts +21 -0
  5. package/dist/api/finger_utils.d.ts +9 -0
  6. package/dist/api/form_utils.d.ts +140 -0
  7. package/dist/api/pcas-code.json.d.ts +185519 -0
  8. package/dist/api/settings.d.ts +1 -0
  9. package/dist/api/star_horse_apis.d.ts +93 -0
  10. package/dist/api/star_horse_utils.d.ts +213 -0
  11. package/dist/api/system.d.ts +78 -0
  12. package/dist/api/user_func.d.ts +22 -0
  13. package/dist/api/valid_utils.d.ts +7 -0
  14. package/dist/assets/index.css +1 -1
  15. package/dist/components/comp/ShDynamicForm.vue.d.ts +56 -0
  16. package/dist/components/comp/ShForm.vue.d.ts +58 -0
  17. package/dist/components/comp/ShTableListColumn.vue.d.ts +79 -0
  18. package/dist/components/comp/StarHorseDataSelector.vue.d.ts +107 -0
  19. package/dist/components/comp/StarHorseDataView.vue.d.ts +161 -0
  20. package/dist/components/comp/StarHorseDialog.vue.d.ts +231 -0
  21. package/dist/components/comp/StarHorseDraggable.vue.d.ts +82 -0
  22. package/dist/components/comp/StarHorseForm.vue.d.ts +176 -0
  23. package/dist/components/comp/StarHorseFormItem.vue.d.ts +26 -0
  24. package/dist/components/comp/StarHorseFormList.vue.d.ts +165 -0
  25. package/dist/components/comp/StarHorseFormTable.vue.d.ts +71 -0
  26. package/dist/components/comp/StarHorseIcon.vue.d.ts +119 -0
  27. package/dist/components/comp/StarHorseItem.vue.d.ts +106 -0
  28. package/dist/components/comp/StarHorseJsonEditor.vue.d.ts +44 -0
  29. package/dist/components/comp/StarHorsePopover.vue.d.ts +50 -0
  30. package/dist/components/comp/StarHorseSearchComp.vue.d.ts +48 -0
  31. package/dist/components/comp/StarHorseSearchForm.vue.d.ts +77 -0
  32. package/dist/components/comp/StarHorseStaticTable.vue.d.ts +101 -0
  33. package/dist/components/comp/StarHorseTableColumn.vue.d.ts +106 -0
  34. package/dist/components/comp/StarHorseTableComp.vue.d.ts +42 -0
  35. package/dist/components/comp/StarHorseTree.vue.d.ts +264 -0
  36. package/dist/components/comp/app/MainBar.vue.d.ts +20 -0
  37. package/dist/components/comp/app/MainContainer.vue.d.ts +18 -0
  38. package/dist/components/comp/app/MainContent.vue.d.ts +26 -0
  39. package/dist/components/comp/app/MainSubBar.vue.d.ts +38 -0
  40. package/dist/components/comp/app/MenuShot.vue.d.ts +64 -0
  41. package/dist/components/comp/index.d.ts +25 -0
  42. package/dist/components/comp/items/UTableColumn.vue.d.ts +72 -0
  43. package/dist/components/comp/items/boxItem.vue.d.ts +22 -0
  44. package/dist/components/comp/items/callitem.d.ts +2 -0
  45. package/dist/components/comp/items/dytableItem.vue.d.ts +22 -0
  46. package/dist/components/comp/items/tableColumn.vue.d.ts +86 -0
  47. package/dist/components/comp/items/tablebtn.vue.d.ts +60 -0
  48. package/dist/components/comp/selfcomp.d.ts +2 -0
  49. package/dist/components/comp/utils/DataPicker.vue.d.ts +85 -0
  50. package/dist/components/cron/Crontab-Day.vue.d.ts +29 -0
  51. package/dist/components/cron/Crontab-Hour.vue.d.ts +28 -0
  52. package/dist/components/cron/Crontab-Min.vue.d.ts +28 -0
  53. package/dist/components/cron/Crontab-Month.vue.d.ts +28 -0
  54. package/dist/components/cron/Crontab-Second.vue.d.ts +31 -0
  55. package/dist/components/cron/Crontab-Week.vue.d.ts +29 -0
  56. package/dist/components/cron/Crontab-Year.vue.d.ts +30 -0
  57. package/dist/components/cron/Crontab.vue.d.ts +15 -0
  58. package/dist/components/enums/ModuleEnums.d.ts +10 -0
  59. package/dist/components/enums/ServiceEnums.d.ts +18 -0
  60. package/dist/components/formcomp/items/allitem.d.ts +2 -0
  61. package/dist/components/formcomp/items/area-item.vue.d.ts +23 -0
  62. package/dist/components/formcomp/items/audio-item.vue.d.ts +23 -0
  63. package/dist/components/formcomp/items/autocomplete-item.vue.d.ts +23 -0
  64. package/dist/components/formcomp/items/barcode-item.vue.d.ts +23 -0
  65. package/dist/components/formcomp/items/button-item.vue.d.ts +23 -0
  66. package/dist/components/formcomp/items/cascade-item.vue.d.ts +23 -0
  67. package/dist/components/formcomp/items/checkbox-item.vue.d.ts +23 -0
  68. package/dist/components/formcomp/items/color-item.vue.d.ts +23 -0
  69. package/dist/components/formcomp/items/cron-item.vue.d.ts +23 -0
  70. package/dist/components/formcomp/items/datapicker-item.vue.d.ts +23 -0
  71. package/dist/components/formcomp/items/datetime-item.vue.d.ts +23 -0
  72. package/dist/components/formcomp/items/depart-item.vue.d.ts +16 -0
  73. package/dist/components/formcomp/items/dialog-input-item.vue.d.ts +23 -0
  74. package/dist/components/formcomp/items/dialog-item.vue.d.ts +23 -0
  75. package/dist/components/formcomp/items/divider-item.vue.d.ts +23 -0
  76. package/dist/components/formcomp/items/drawer-item.vue.d.ts +23 -0
  77. package/dist/components/formcomp/items/empty-item.vue.d.ts +16 -0
  78. package/dist/components/formcomp/items/html-item.vue.d.ts +23 -0
  79. package/dist/components/formcomp/items/htmleditor-item.vue.d.ts +23 -0
  80. package/dist/components/formcomp/items/icon-item.vue.d.ts +23 -0
  81. package/dist/components/formcomp/items/image-item.vue.d.ts +23 -0
  82. package/dist/components/formcomp/items/index.d.ts +50 -0
  83. package/dist/components/formcomp/items/input-item.vue.d.ts +17 -0
  84. package/dist/components/formcomp/items/input-tag-item.vue.d.ts +23 -0
  85. package/dist/components/formcomp/items/json-array-item.vue.d.ts +23 -0
  86. package/dist/components/formcomp/items/json-item.vue.d.ts +23 -0
  87. package/dist/components/formcomp/items/markdown-item.vue.d.ts +23 -0
  88. package/dist/components/formcomp/items/number-item.vue.d.ts +23 -0
  89. package/dist/components/formcomp/items/number-range-item.vue.d.ts +23 -0
  90. package/dist/components/formcomp/items/page-select-item.vue.d.ts +23 -0
  91. package/dist/components/formcomp/items/password-item.vue.d.ts +23 -0
  92. package/dist/components/formcomp/items/qrcode-item.vue.d.ts +23 -0
  93. package/dist/components/formcomp/items/radio-item.vue.d.ts +23 -0
  94. package/dist/components/formcomp/items/rate-item.vue.d.ts +23 -0
  95. package/dist/components/formcomp/items/select-item.vue.d.ts +23 -0
  96. package/dist/components/formcomp/items/signature-item.vue.d.ts +23 -0
  97. package/dist/components/formcomp/items/slider-item.vue.d.ts +23 -0
  98. package/dist/components/formcomp/items/starhorse-form-item.vue.d.ts +23 -0
  99. package/dist/components/formcomp/items/switch-item.vue.d.ts +23 -0
  100. package/dist/components/formcomp/items/tag-item.vue.d.ts +23 -0
  101. package/dist/components/formcomp/items/text-item.vue.d.ts +23 -0
  102. package/dist/components/formcomp/items/textarea-item.vue.d.ts +23 -0
  103. package/dist/components/formcomp/items/time-item.vue.d.ts +23 -0
  104. package/dist/components/formcomp/items/time-picker-item.vue.d.ts +23 -0
  105. package/dist/components/formcomp/items/transfer-item.vue.d.ts +23 -0
  106. package/dist/components/formcomp/items/tselect-item.vue.d.ts +23 -0
  107. package/dist/components/formcomp/items/unknown-item.vue.d.ts +16 -0
  108. package/dist/components/formcomp/items/upload-item.vue.d.ts +23 -0
  109. package/dist/components/formcomp/items/user-item.vue.d.ts +23 -0
  110. package/dist/components/formcomp/items/usercomp-item.vue.d.ts +24 -0
  111. package/dist/components/formcomp/items/view-markdown-item.vue.d.ts +23 -0
  112. package/dist/components/formcomp/utils/EditDataDialog.vue.d.ts +55 -0
  113. package/dist/components/formcomp/utils/FieldList.vue.d.ts +7 -0
  114. package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +32 -0
  115. package/dist/components/formcomp/utils/prefixSuffixUtils.d.ts +28 -0
  116. package/dist/components/help.vue.d.ts +26 -0
  117. package/dist/components/menu/MenuItem.vue.d.ts +49 -0
  118. package/dist/components/system/ContentMenu.vue.d.ts +77 -0
  119. package/dist/components/system/PageConfig.vue.d.ts +66 -0
  120. package/dist/components/system/StarHorseButtonList.vue.d.ts +72 -0
  121. package/dist/components/system/StarHorseEditor.vue.d.ts +82 -0
  122. package/dist/components/system/StarHorseMenu.vue.d.ts +40 -0
  123. package/dist/components/system/StarHorseSidebar.vue.d.ts +13 -0
  124. package/dist/components/system/StarHorseSvg.vue.d.ts +112 -0
  125. package/dist/components/system/SvgLoader.vue.d.ts +59 -0
  126. package/dist/components/system/SystemComp.d.ts +2 -0
  127. package/dist/components/system/index.d.ts +8 -0
  128. package/dist/components/types/ApiUrls.d.ts +171 -0
  129. package/dist/components/types/BtnAction.d.ts +35 -0
  130. package/dist/components/types/BtnAuth.d.ts +43 -0
  131. package/dist/components/types/CompInfo.d.ts +50 -0
  132. package/dist/components/types/DialogProps.d.ts +54 -0
  133. package/dist/components/types/DyCompField.d.ts +14 -0
  134. package/dist/components/types/DynamicNode.d.ts +34 -0
  135. package/dist/components/types/FormType.d.ts +113 -0
  136. package/dist/components/types/ItemPreps.d.ts +151 -0
  137. package/dist/components/types/MenusInfo.d.ts +44 -0
  138. package/dist/components/types/PageFieldInfo.d.ts +547 -0
  139. package/dist/components/types/PageProps.d.ts +177 -0
  140. package/dist/components/types/Params.d.ts +146 -0
  141. package/dist/components/types/RuleType.d.ts +10 -0
  142. package/dist/components/types/SearchProps.d.ts +59 -0
  143. package/dist/components/types/ShortKey.d.ts +30 -0
  144. package/dist/components/types/StarHorseType.d.ts +18 -0
  145. package/dist/components/types/UserinfoType.d.ts +46 -0
  146. package/dist/components/types/index.d.ts +18 -0
  147. package/dist/index.d.ts +53 -0
  148. package/dist/index.es.js +8 -8
  149. package/dist/lang/en_US.d.ts +730 -0
  150. package/dist/lang/index.d.ts +17 -0
  151. package/dist/lang/zh_CN.d.ts +731 -0
  152. package/dist/main.d.ts +0 -0
  153. package/dist/plugins/AblesPlugin.d.ts +48 -0
  154. package/dist/plugins/registerCompPlugin.d.ts +10 -0
  155. package/dist/router/index.d.ts +2 -0
  156. package/dist/store/ButtonPermission.d.ts +32 -0
  157. package/dist/store/ConsumerView.d.ts +22 -0
  158. package/dist/store/CopyerOperation.d.ts +35 -0
  159. package/dist/store/DesignForm.d.ts +1728 -0
  160. package/dist/store/DesignPage.d.ts +149 -0
  161. package/dist/store/DynamicForm.d.ts +52 -0
  162. package/dist/store/GlobalConfig.d.ts +13 -0
  163. package/dist/store/SelfOperation.d.ts +651 -0
  164. package/dist/store/UserInfo.d.ts +44 -0
  165. package/dist/store/index.d.ts +2 -0
  166. package/dist/theme/localStorge.d.ts +10 -0
  167. package/dist/theme/theme.d.ts +24 -0
  168. package/dist/types/index.d.ts +6 -10604
  169. package/dist/utils/FieldOperationUtils.d.ts +6 -0
  170. package/dist/utils/auth.d.ts +25 -0
  171. package/dist/utils/message.d.ts +25 -0
  172. package/dist/utils/preview.d.ts +16 -0
  173. package/package.json +18 -16
@@ -0,0 +1,146 @@
1
+ import { OrderByInfo } from './PageFieldInfo';
2
+ /**
3
+ * 查询条件组装数据对象
4
+ */
5
+ export declare interface SearchParams {
6
+ /**
7
+ * 属性名称
8
+ */
9
+ propertyName?: string;
10
+ /**
11
+ * 匹配方式 eq,lk,gt,gte,lt,lte,llk,rlk,in ,nin,exits
12
+ */
13
+ operation?: string | null;
14
+ /**
15
+ * 查询值
16
+ */
17
+ value?: any;
18
+ /**
19
+ * 或查询
20
+ */
21
+ orOperList?: SearchParams[];
22
+ }
23
+ /**
24
+ * 查询条件组装数据对象
25
+ */
26
+ export declare interface JoinSearchParams {
27
+ /**
28
+ * 属性名称
29
+ */
30
+ leftFieldName: string;
31
+ /**
32
+ * 匹配方式 eq,neq,gt,gte,lt,lte
33
+ */
34
+ operation?: string | null;
35
+ /**
36
+ * 查询值
37
+ */
38
+ rightFieldName: string;
39
+ /**
40
+ * 或查询
41
+ */
42
+ or?: JoinSearchParams[];
43
+ }
44
+ /**
45
+ * 查询对象
46
+ */
47
+ export declare interface SearchInfo {
48
+ /**
49
+ * 每页数据量大小
50
+ */
51
+ pageSize?: number;
52
+ /**
53
+ * 页码
54
+ */
55
+ currentPage?: number;
56
+ /**
57
+ * 总数据量
58
+ */
59
+ totalDatas?: number;
60
+ /**
61
+ * 总页数
62
+ */
63
+ totalPages?: number;
64
+ /**
65
+ * 查询条件
66
+ */
67
+ fieldList?: SearchParams[];
68
+ /**
69
+ * 排序条件
70
+ */
71
+ orderBy?: OrderByInfo[];
72
+ }
73
+ /**
74
+ * 列表按钮隐藏条件
75
+ */
76
+ export declare interface BtnHideCondition {
77
+ /**
78
+ * 属性名
79
+ */
80
+ fieldName: string;
81
+ /**
82
+ * 按钮
83
+ */
84
+ btnName: Array<string> | string;
85
+ /**
86
+ * 值
87
+ */
88
+ value: any;
89
+ /**
90
+ * 是否可见
91
+ */
92
+ visible: boolean;
93
+ }
94
+ /**
95
+ * 接口重定向参数
96
+ */
97
+ export declare interface RedirectParams {
98
+ /**
99
+ * 接口地址
100
+ */
101
+ url: string;
102
+ /**
103
+ * 主机或者域名
104
+ */
105
+ host?: string;
106
+ /**
107
+ * 端口
108
+ */
109
+ port?: string;
110
+ /**
111
+ * 协议
112
+ */
113
+ protocol?: string;
114
+ /**
115
+ * 环境
116
+ */
117
+ env?: string;
118
+ /**
119
+ * http方法
120
+ */
121
+ httpMethod?: string;
122
+ /**
123
+ * 数据类型
124
+ */
125
+ dataType?: string;
126
+ /**
127
+ * 查询条件
128
+ */
129
+ queryParams?: SearchParams[];
130
+ /**
131
+ * 分页信息
132
+ */
133
+ searchInfo?: SearchInfo;
134
+ /**
135
+ * 主键
136
+ */
137
+ primaryKey?: any;
138
+ /**
139
+ * 标签名称
140
+ */
141
+ labelName?: string;
142
+ /**
143
+ * 值名称
144
+ */
145
+ valueName?: string;
146
+ }
@@ -0,0 +1,10 @@
1
+ export declare interface RuleType {
2
+ /**
3
+ * 批量表单属性,该属性对应的数据默认是其它表的数据,
4
+ */
5
+ name: any;
6
+ /**
7
+ * 参数
8
+ */
9
+ options?: any;
10
+ }
@@ -0,0 +1,59 @@
1
+ import { CompParams } from './PageFieldInfo';
2
+ import { Ref } from 'vue';
3
+ export type SelectOption = {
4
+ name?: string;
5
+ value?: string | number;
6
+ disabled?: string;
7
+ helpMsg?: string;
8
+ children?: SelectOption[] | Ref<SelectOption[]>;
9
+ };
10
+ /**
11
+ * 查询组件的属性
12
+ */
13
+ export type SearchProps = {
14
+ label?: string;
15
+ fieldName?: string;
16
+ type?: string;
17
+ matchType?: string;
18
+ disabled?: boolean | string;
19
+ defaultValue?: any | null;
20
+ defaultVisible?: boolean;
21
+ helpMsg?: string;
22
+ minWidth?: string;
23
+ /**
24
+ * 表的别名
25
+ */
26
+ prefix?: string;
27
+ /**
28
+ * 弹窗数据配置
29
+ */
30
+ params?: CompParams;
31
+ preps?: any;
32
+ /**
33
+ * 数据类型
34
+ */
35
+ dataType?: string;
36
+ /**
37
+ * 废弃,请根据具体业务在preps 中添加 values 或者data
38
+ */
39
+ optionList?: SelectOption[] | Ref<SelectOption[]>;
40
+ };
41
+ /**
42
+ * 查询属性
43
+ */
44
+ export type SearchFields = {
45
+ fieldList: SearchProps[];
46
+ };
47
+ /**
48
+ * 编辑条件
49
+ */
50
+ export interface EditCondition {
51
+ /**
52
+ * 属性名字
53
+ */
54
+ fieldName: string;
55
+ /**
56
+ * 配置条件
57
+ */
58
+ matchType?: string;
59
+ }
@@ -0,0 +1,30 @@
1
+ export type ShortKey = {
2
+ /**
3
+ * 快捷键
4
+ */
5
+ key: string;
6
+ /**
7
+ * 动作名称
8
+ */
9
+ action: string;
10
+ /**
11
+ * 是否需要alt 键组合
12
+ */
13
+ alt?: boolean;
14
+ /**
15
+ * 是否需要ctrl 键组合
16
+ */
17
+ ctrl?: boolean;
18
+ /**
19
+ * 是否需要shift 键组合
20
+ */
21
+ shift?: boolean;
22
+ /**
23
+ * 其他键
24
+ */
25
+ other?: Array<string> | string;
26
+ /**
27
+ * 处理函数
28
+ */
29
+ handler?: Function;
30
+ };
@@ -0,0 +1,18 @@
1
+ export declare interface Tags {
2
+ /**
3
+ * 中文名字
4
+ */
5
+ name: string;
6
+ /**
7
+ * 路由地址
8
+ */
9
+ path: string;
10
+ /**
11
+ * 组件名称
12
+ */
13
+ componentName: string;
14
+ /**
15
+ * 菜单图标
16
+ */
17
+ menuIcon: string;
18
+ }
@@ -0,0 +1,46 @@
1
+ /**
2
+ * 角色信息
3
+ */
4
+ export interface RoleInfo {
5
+ /**
6
+ * 角色Id
7
+ */
8
+ roleId: string;
9
+ /**
10
+ * 角色名称
11
+ */
12
+ roleName: string;
13
+ /**
14
+ * 角色编码
15
+ */
16
+ roleCode?: string;
17
+ }
18
+ /**
19
+ * 用户信息
20
+ */
21
+ export interface UserInfo {
22
+ /**
23
+ * 用户Id
24
+ */
25
+ userId: string;
26
+ /**
27
+ * 姓名
28
+ */
29
+ name: string;
30
+ /**
31
+ * 用户名
32
+ */
33
+ username: string;
34
+ /**
35
+ * 邮箱地址
36
+ */
37
+ email?: string;
38
+ /**
39
+ * 联系电话
40
+ */
41
+ phone?: string;
42
+ /**
43
+ * 角色信息
44
+ */
45
+ roles?: RoleInfo[];
46
+ }
@@ -0,0 +1,18 @@
1
+ export * from './ApiUrls';
2
+ export * from './BtnAction';
3
+ export * from './CompInfo';
4
+ export * from './DialogProps';
5
+ export * from './DyCompField';
6
+ export * from './DynamicNode';
7
+ export * from './MenusInfo';
8
+ export * from './PageFieldInfo';
9
+ export * from './PageProps';
10
+ export * from './Params';
11
+ export * from './RuleType';
12
+ export * from './SearchProps';
13
+ export * from './ShortKey';
14
+ export * from './StarHorseType';
15
+ export * from './BtnAuth';
16
+ export * from './ItemPreps';
17
+ export * from './FormType';
18
+ export * from './UserinfoType';
@@ -0,0 +1,53 @@
1
+ import { App } from 'vue';
2
+ import { default as piniaInstance } from './store';
3
+ import { AxiosInstance } from 'axios';
4
+ import { Router } from 'vue-router';
5
+ import { starHorseAxios } from './api/star_horse_apis';
6
+ import { LangType } from './theme/theme';
7
+ export * from './api/star_horse_apis';
8
+ export * from './api/star_horse_utils';
9
+ export * from './api/WebSocketUtils';
10
+ export * from './api/date_utils';
11
+ export * from './api/system';
12
+ export * from './api/user_func';
13
+ export * from './utils/message';
14
+ export * from './api/finger_utils';
15
+ export * from './api/form_utils';
16
+ export * from './api/valid_utils';
17
+ export * from './api/device';
18
+ export * from './plugins/AblesPlugin';
19
+ export * from './utils/FieldOperationUtils';
20
+ export * from './components/formcomp/utils/ItemRelationEventUtils';
21
+ export * from './components/formcomp/utils/prefixSuffixUtils';
22
+ declare global {
23
+ var __hostRouter__: Router | undefined;
24
+ var __hostAxios__: AxiosInstance | undefined;
25
+ var __starHorseHostApp__: App<Element> | undefined;
26
+ var __starHorseHostLang__: LangType | undefined;
27
+ }
28
+ export * from './components/comp';
29
+ export * from './components/formcomp/items';
30
+ export * from './components/system';
31
+ export * from './components/types';
32
+ export * from './store/ButtonPermission';
33
+ export * from './store/ConsumerView';
34
+ export * from './store/CopyerOperation';
35
+ export * from './store/DesignForm';
36
+ export * from './store/DesignPage';
37
+ export * from './store/DynamicForm';
38
+ export * from './store/GlobalConfig';
39
+ export * from './store/SelfOperation';
40
+ export * from './store/UserInfo';
41
+ export { piniaInstance, starHorseAxios };
42
+ declare const _default: {
43
+ install: (app: App<Element>, options?: {
44
+ router?: Router;
45
+ axiosInstance?: AxiosInstance;
46
+ elementPlusOptions?: any;
47
+ lang?: LangType;
48
+ initElementPlus?: boolean;
49
+ }) => void;
50
+ piniaInstance: import('pinia').Pinia;
51
+ starHorseAxios: AxiosInstance;
52
+ };
53
+ export default _default;