star-horse-lowcode 3.1.9 → 3.1.10
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.
- package/README.md +5 -0
- package/dist/api/star_horse_utils.d.ts +2 -2
- package/dist/assets/index.css +1 -1
- package/dist/components/comp/StarHorseTableComp.vue.d.ts +1 -0
- package/dist/components/formcomp/utils/ItemRelationEventUtils.d.ts +17 -2
- package/dist/components/system/code-editor/index.d.ts +1 -1
- package/dist/components/types/ItemPreps.d.ts +3 -3
- package/dist/components/types/PreOrPendType.d.ts +31 -0
- package/dist/index.es.js +6 -6
- package/dist/lang/en_US.d.ts +4 -0
- package/dist/lang/zh_CN.d.ts +4 -0
- package/dist/types/api/star_horse_utils.d.ts +2 -2
- package/dist/types/components/comp/StarHorseDataView.vue.d.ts +1 -1
- package/dist/types/components/comp/StarHorseStaticTable.vue.d.ts +1 -1
- package/dist/types/components/comp/StarHorseTableComp.vue.d.ts +1 -0
- package/dist/types/components/formcomp/utils/ItemRelationEventUtils.d.ts +17 -2
- package/dist/types/components/system/code-editor/index.d.ts +1 -1
- package/dist/types/components/types/ItemPreps.d.ts +3 -3
- package/dist/types/components/types/PreOrPendType.d.ts +31 -0
- package/dist/types/lang/en_US.d.ts +4 -0
- package/dist/types/lang/zh_CN.d.ts +4 -0
- package/package.json +1 -3
package/dist/lang/en_US.d.ts
CHANGED
|
@@ -845,6 +845,10 @@ declare const _default: {
|
|
|
845
845
|
"item.theme": string;
|
|
846
846
|
"item.language": string;
|
|
847
847
|
"item.dataSelect": string;
|
|
848
|
+
"item.selectedData": string;
|
|
849
|
+
"item.searchSelected": string;
|
|
850
|
+
"item.noSelectedData": string;
|
|
851
|
+
"item.removeSelected": string;
|
|
848
852
|
"item.dataLoading": string;
|
|
849
853
|
"item.propertyNeedsParams": string;
|
|
850
854
|
"item.propertyNeedsParamsSuffix": string;
|
package/dist/lang/zh_CN.d.ts
CHANGED
|
@@ -846,6 +846,10 @@ declare const _default: {
|
|
|
846
846
|
"item.theme": string;
|
|
847
847
|
"item.language": string;
|
|
848
848
|
"item.dataSelect": string;
|
|
849
|
+
"item.selectedData": string;
|
|
850
|
+
"item.searchSelected": string;
|
|
851
|
+
"item.noSelectedData": string;
|
|
852
|
+
"item.removeSelected": string;
|
|
849
853
|
"item.dataLoading": string;
|
|
850
854
|
"item.propertyNeedsParams": string;
|
|
851
855
|
"item.propertyNeedsParamsSuffix": string;
|
|
@@ -158,7 +158,7 @@ export declare function dynamicUrlOperation(preps: any, queryInfo?: SearchParams
|
|
|
158
158
|
* 创建过滤器
|
|
159
159
|
* @param queryString 查询参数
|
|
160
160
|
*/
|
|
161
|
-
export declare function createFilter(queryString: string):
|
|
161
|
+
export declare function createFilter(queryString: string): (data: SelectOption) => number;
|
|
162
162
|
/**
|
|
163
163
|
* 公共 Api 接口
|
|
164
164
|
* @param appName 应用名称或者接口前缀
|
|
@@ -200,7 +200,7 @@ export declare function base64Decode(param: string): string;
|
|
|
200
200
|
* @param images 图片URL数组或单个URL
|
|
201
201
|
*/
|
|
202
202
|
export { ImagePreview, imagesPreview } from "../utils/ImagePreview";
|
|
203
|
-
export type { ImagePreviewOptions, ImageTransition } from "../utils/ImagePreview";
|
|
203
|
+
export type { ImagePreviewOptions, ImageTransition, } from "../utils/ImagePreview";
|
|
204
204
|
/**
|
|
205
205
|
* 设置css 全局变量
|
|
206
206
|
* @param name 变量名称
|
|
@@ -143,8 +143,8 @@ declare const __VLS_base: import("vue").DefineComponent<import("vue").ExtractPro
|
|
|
143
143
|
primaryKey: any;
|
|
144
144
|
subFormFlag: string;
|
|
145
145
|
dynamicForm: boolean;
|
|
146
|
-
labelPosition: string;
|
|
147
146
|
dataFormat: Function;
|
|
147
|
+
labelPosition: string;
|
|
148
148
|
batchFieldName: string;
|
|
149
149
|
formSize: string;
|
|
150
150
|
preview: boolean;
|
|
@@ -89,8 +89,8 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
89
89
|
type: ArrayConstructor;
|
|
90
90
|
};
|
|
91
91
|
}>> & Readonly<{}>, {
|
|
92
|
-
height: string;
|
|
93
92
|
dataFormat: Function;
|
|
93
|
+
height: string;
|
|
94
94
|
compSize: string;
|
|
95
95
|
dialogInput: boolean;
|
|
96
96
|
expand: boolean;
|
|
@@ -9,6 +9,7 @@ declare const __VLS_export: import("vue").DefineComponent<DataListProps, {
|
|
|
9
9
|
getIds: () => any;
|
|
10
10
|
assignStaticData: (data: any) => void;
|
|
11
11
|
getSelectedDatas: () => any;
|
|
12
|
+
removeSelection: (row: any) => void;
|
|
12
13
|
multipleSelection: import("vue").Ref<any, any>;
|
|
13
14
|
setDataInfo: (fieldName: string, val: any) => void;
|
|
14
15
|
deleteById: (id: any, isExpand?: boolean) => Promise<void>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ItemRelation, RelationDetail } from "../../../components/types";
|
|
1
|
+
import { ApiLinkageDetail, ItemRelation, RelationDetail } from "../../../components/types";
|
|
2
2
|
import { Ref } from "vue";
|
|
3
3
|
import { executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers } from "../../../components/formcomp/utils/FormulaEngine";
|
|
4
|
+
import { PreOrPendEventConfig } from "../../../components/types/PreOrPendType";
|
|
4
5
|
/**
|
|
5
6
|
* 联动事件分发函数
|
|
6
7
|
* @param props
|
|
@@ -10,6 +11,12 @@ import { executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers }
|
|
|
10
11
|
* @param actionName
|
|
11
12
|
*/
|
|
12
13
|
declare const relationEventDispatcher: (props: any, item: ItemRelation, e: any, formData: Ref<Record<string, any>>, actionName: string) => void;
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @param apiLinkage
|
|
17
|
+
* @param formData
|
|
18
|
+
*/
|
|
19
|
+
export declare const apiLinkageOperation: (apiLinkage: ApiLinkageDetail, formData: Ref<Record<string, any>>) => void;
|
|
13
20
|
declare const relationEvent: (props: any, relationDetails: RelationDetail[], e: any, formData: Ref<Record<string, any>>, actionName: string) => void;
|
|
14
21
|
/** 所有触发的事件 */
|
|
15
22
|
declare const allAction: (context: any, emits: any, formData: any, actionName: string, _isInit?: boolean) => void;
|
|
@@ -23,4 +30,12 @@ declare const useFormField: (context: any, field: any) => {
|
|
|
23
30
|
declare const initCompCallEvent: (props: any, emits: any, formData: any) => void;
|
|
24
31
|
declare const prepsFilter: (preps: any) => any;
|
|
25
32
|
declare const convertData: (data: any) => any;
|
|
26
|
-
|
|
33
|
+
/**
|
|
34
|
+
* 自定义事件
|
|
35
|
+
* @param action
|
|
36
|
+
* @param props
|
|
37
|
+
* @param emits
|
|
38
|
+
* @param formData
|
|
39
|
+
*/
|
|
40
|
+
declare const userActionEvent: (action: PreOrPendEventConfig, props: any, emits: any, formData: any) => void;
|
|
41
|
+
export { allAction, buttonAction, checkIsDisabled, initCompCallEvent, prepsFilter, relationEvent, relationEventDispatcher, useFormField, convertData, executeFormulaWithFill, initFormFormulaWatchers, setupFormulaWatchers, userActionEvent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { FileNode, TabInfo, MenuItemDef, IdeTheme } from "./types";
|
|
2
2
|
export { IDE_THEMES, getThemeByValue, applyThemeVars } from "./theme";
|
|
3
|
-
export { LANG_MAP, FILE_ICONS, FOLDER_ICONS, getFileExt, detectLanguage, getFileIcon } from "./constants";
|
|
3
|
+
export { LANG_MAP, FILE_ICONS, FOLDER_ICONS, getFileExt, detectLanguage, getFileIcon, } from "./constants";
|
|
4
4
|
export { useFileTree } from "./useFileTree";
|
|
5
5
|
export { useFileApi } from "./useFileApi";
|
|
6
6
|
export type { ContextMenuItem } from "./ContextMenu.vue";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ItemRelation } from "../../components/types/ItemPreps";
|
|
2
|
+
/**
|
|
3
|
+
* 前后缀事件类型
|
|
4
|
+
* - none: 无事件
|
|
5
|
+
* - linkage: 调用联动策略配置
|
|
6
|
+
* - dataSource: 调用数据源配置
|
|
7
|
+
* - custom: 自定义实现(JS 代码)
|
|
8
|
+
*/
|
|
9
|
+
export type PreOrPendEventType = "none" | "linkage" | "dataSource" | "custom" | "function";
|
|
10
|
+
/**
|
|
11
|
+
* 前后缀元素事件配置
|
|
12
|
+
*
|
|
13
|
+
* 直接存储在按钮项的 `actions` 字段上,运行时通过 `eventType` 分发请求
|
|
14
|
+
*/
|
|
15
|
+
export interface PreOrPendEventConfig {
|
|
16
|
+
/** 事件类别(用于运行时分发) */
|
|
17
|
+
eventType: PreOrPendEventType;
|
|
18
|
+
/** 联动策略配置(eventType = "linkage") */
|
|
19
|
+
dataRelation?: ItemRelation;
|
|
20
|
+
/** 数据源配置(eventType = "dataSource") */
|
|
21
|
+
dataSourceConfig?: any;
|
|
22
|
+
/** 自定义 JS 代码(eventType = "custom") */
|
|
23
|
+
customCode?: string;
|
|
24
|
+
/**
|
|
25
|
+
* 自定义函数
|
|
26
|
+
* 第一个参数 是上下文props
|
|
27
|
+
* 第二个参数 是表单实例数据
|
|
28
|
+
* 第三个参数 是整个表单信息
|
|
29
|
+
*/
|
|
30
|
+
funcInfo?: Function;
|
|
31
|
+
}
|
|
@@ -845,6 +845,10 @@ declare const _default: {
|
|
|
845
845
|
"item.theme": string;
|
|
846
846
|
"item.language": string;
|
|
847
847
|
"item.dataSelect": string;
|
|
848
|
+
"item.selectedData": string;
|
|
849
|
+
"item.searchSelected": string;
|
|
850
|
+
"item.noSelectedData": string;
|
|
851
|
+
"item.removeSelected": string;
|
|
848
852
|
"item.dataLoading": string;
|
|
849
853
|
"item.propertyNeedsParams": string;
|
|
850
854
|
"item.propertyNeedsParamsSuffix": string;
|
|
@@ -846,6 +846,10 @@ declare const _default: {
|
|
|
846
846
|
"item.theme": string;
|
|
847
847
|
"item.language": string;
|
|
848
848
|
"item.dataSelect": string;
|
|
849
|
+
"item.selectedData": string;
|
|
850
|
+
"item.searchSelected": string;
|
|
851
|
+
"item.noSelectedData": string;
|
|
852
|
+
"item.removeSelected": string;
|
|
849
853
|
"item.dataLoading": string;
|
|
850
854
|
"item.propertyNeedsParams": string;
|
|
851
855
|
"item.propertyNeedsParamsSuffix": string;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "star-horse-lowcode",
|
|
3
3
|
"private": false,
|
|
4
4
|
"author": "l_1019@163.com",
|
|
5
|
-
"version": "3.1.
|
|
5
|
+
"version": "3.1.10",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "星马低代码核心库,提供了低代码平台的基础功能和组件库。此库可引用到您的项目中,快速构建表单和列表。",
|
|
8
8
|
"keywords": [
|
|
@@ -86,7 +86,6 @@
|
|
|
86
86
|
"camelcase": "^9.0.0",
|
|
87
87
|
"codemirror": "^6.0.2",
|
|
88
88
|
"element-plus": "^2.14.2",
|
|
89
|
-
"jquery": "^4.0.0",
|
|
90
89
|
"json5": "^2.2.3",
|
|
91
90
|
"markdown-it": "^14.2.0",
|
|
92
91
|
"md-editor-v3": "^6.5.3",
|
|
@@ -116,7 +115,6 @@
|
|
|
116
115
|
"@microsoft/api-extractor": "^7.58.9",
|
|
117
116
|
"@rollup/plugin-inject": "^5.0.5",
|
|
118
117
|
"@tailwindcss/vite": "^4.3.1",
|
|
119
|
-
"@types/jquery": "^4.0.1",
|
|
120
118
|
"@types/node": "^26.0.1",
|
|
121
119
|
"@types/prismjs": "^1.26.6",
|
|
122
120
|
"@types/sortablejs": "^1.15.9",
|