@gct-paas/render 0.1.5-dev.1 → 0.1.5-dev.11
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/dist/index.min.css +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/es/Event/Dependency/controller.mjs +2 -2
- package/es/Event/Dependency/displayRule.d.ts +1 -1
- package/es/Event/Dependency/displayRule.mjs +3 -3
- package/es/Event/Dependency/useDependency.mjs +2 -2
- package/es/Event/Dependency/useDependencyToShow.d.ts +2 -2
- package/es/Event/Dependency/useDependencyToShow.mjs +7 -4
- package/es/Event/baseEvent.d.ts +4 -4
- package/es/Event/baseEvent.mjs +5 -5
- package/es/Event/bizServiceRequest.d.ts +4 -4
- package/es/Event/bizServiceRequest.mjs +19 -10
- package/es/Event/utils/runGlobalByPage.d.ts +4 -4
- package/es/Event/utils/runGlobalByPage.mjs +1 -1
- package/es/controller/design-render/design-render.controller.d.ts +1 -1
- package/es/hooks/useStorageRef.mjs +1 -1
- package/es/hooks/widgets/useFileAttrsHooks.d.ts +6 -6
- package/es/hooks/widgets/useFileAttrsHooks.mjs +1 -1
- package/es/index.d.ts +4 -3
- package/es/index.mjs +12 -15
- package/es/locale/sys/process.d.ts +8 -0
- package/es/locale/sys.d.ts +4 -0
- package/es/modules/vue3-dnd/components/vue3-dnd-draggable/vue3-dnd-draggable.css +73 -0
- package/es/modules/vue3-dnd/components/vue3-dnd-draggable/vue3-dnd-draggable.d.ts +70 -0
- package/es/modules/vue3-dnd/components/vue3-dnd-draggable/vue3-dnd-draggable.mjs +119 -0
- package/es/modules/vue3-dnd/components/vue3-dnd-draggable-item/vue3-dnd-draggable-item.css +74 -0
- package/es/modules/vue3-dnd/components/vue3-dnd-draggable-item/vue3-dnd-draggable-item.d.ts +69 -0
- package/es/modules/vue3-dnd/components/vue3-dnd-draggable-item/vue3-dnd-draggable-item.mjs +165 -0
- package/es/modules/vue3-dnd/index.d.ts +3 -0
- package/es/modules/vue3-dnd/index.mjs +2 -0
- package/es/modules/vue3-dnd/interface/i-vue3-dnd-draggable-options.d.ts +294 -0
- package/es/modules/vue3-dnd/interface/index.d.ts +1 -0
- package/es/register/render-register/render-register.mjs +3 -1
- package/es/utils/expression/index.mjs +3 -2
- package/es/utils/expression/regularExpression/methods.mjs +1 -1
- package/es/utils/field-empty-value.d.ts +6 -0
- package/es/utils/field-empty-value.mjs +17 -0
- package/es/utils/index.d.ts +2 -0
- package/es/utils/index.mjs +2 -0
- package/es/utils/is.d.ts +21 -0
- package/es/utils/is.mjs +70 -0
- package/es/utils/model-transformer.d.ts +1 -1
- package/es/utils/search/listhook.d.ts +6 -0
- package/es/utils/search/listhook.mjs +18 -1
- package/package.json +26 -26
package/es/utils/is.mjs
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
//#region src/utils/is.ts
|
|
2
|
+
var toString = Object.prototype.toString;
|
|
3
|
+
function is(val, type) {
|
|
4
|
+
return toString.call(val) === `[object ${type}]`;
|
|
5
|
+
}
|
|
6
|
+
function isDef(val) {
|
|
7
|
+
return typeof val !== "undefined";
|
|
8
|
+
}
|
|
9
|
+
function isUnDef(val) {
|
|
10
|
+
return !isDef(val);
|
|
11
|
+
}
|
|
12
|
+
function isObject(val) {
|
|
13
|
+
return val !== null && is(val, "Object");
|
|
14
|
+
}
|
|
15
|
+
function isEmpty(val) {
|
|
16
|
+
if (isArray(val) || isString(val)) return val.length === 0;
|
|
17
|
+
if (val instanceof Map || val instanceof Set) return val.size === 0;
|
|
18
|
+
if (isObject(val)) return Object.keys(val).length === 0;
|
|
19
|
+
return false;
|
|
20
|
+
}
|
|
21
|
+
function isDate(val) {
|
|
22
|
+
return is(val, "Date");
|
|
23
|
+
}
|
|
24
|
+
function isNull(val) {
|
|
25
|
+
return val === null;
|
|
26
|
+
}
|
|
27
|
+
function isNullAndUnDef(val) {
|
|
28
|
+
return isUnDef(val) && isNull(val);
|
|
29
|
+
}
|
|
30
|
+
function isNullOrUnDef(val) {
|
|
31
|
+
return isUnDef(val) || isNull(val);
|
|
32
|
+
}
|
|
33
|
+
function isNumber(val) {
|
|
34
|
+
return is(val, "Number");
|
|
35
|
+
}
|
|
36
|
+
function isPromise(val) {
|
|
37
|
+
return is(val, "Promise") && isObject(val) && isFunction(val.then) && isFunction(val.then);
|
|
38
|
+
}
|
|
39
|
+
function isString(val) {
|
|
40
|
+
return is(val, "String");
|
|
41
|
+
}
|
|
42
|
+
function isFunction(val) {
|
|
43
|
+
return typeof val === "function";
|
|
44
|
+
}
|
|
45
|
+
function isBoolean(val) {
|
|
46
|
+
return is(val, "Boolean");
|
|
47
|
+
}
|
|
48
|
+
function isRegExp(val) {
|
|
49
|
+
return is(val, "RegExp");
|
|
50
|
+
}
|
|
51
|
+
function isArray(val) {
|
|
52
|
+
return !!val && Array.isArray(val);
|
|
53
|
+
}
|
|
54
|
+
function isWindow(val) {
|
|
55
|
+
return typeof window !== "undefined" && is(val, "Window");
|
|
56
|
+
}
|
|
57
|
+
function isElement(val) {
|
|
58
|
+
return isObject(val) && !!val.tagName;
|
|
59
|
+
}
|
|
60
|
+
function isMap(val) {
|
|
61
|
+
return is(val, "Map");
|
|
62
|
+
}
|
|
63
|
+
function isUrl(path) {
|
|
64
|
+
return /^http(s)?:\/\/([\w-]+\.)+[\w-]+(\/[\w- ./?%&=]*)?/.test(path);
|
|
65
|
+
}
|
|
66
|
+
function isEmptyStr(str) {
|
|
67
|
+
return str === void 0 || !str && str !== 0 && str !== "0" || !/[^\s]/.test(str + "");
|
|
68
|
+
}
|
|
69
|
+
//#endregion
|
|
70
|
+
export { is, isArray, isBoolean, isDate, isDef, isElement, isEmpty, isEmptyStr, isFunction, isMap, isNull, isNullAndUnDef, isNullOrUnDef, isNumber, isObject, isPromise, isRegExp, isString, isUnDef, isUrl, isWindow };
|
|
@@ -13,7 +13,7 @@ export declare function transformSourceData(data: RowData[], dict: DictMap): Row
|
|
|
13
13
|
*/
|
|
14
14
|
export declare function transformData(row?: RowData, dict?: DictMap): RowData;
|
|
15
15
|
export declare function addDataByForm(formState: RowData, data: RowData, dict: DictMap): void;
|
|
16
|
-
export declare function setDataByForm(formState:
|
|
16
|
+
export declare function setDataByForm(formState: IObject, data: RowData, dict: DictMap): void;
|
|
17
17
|
/**
|
|
18
18
|
* 表单 select 数据处理
|
|
19
19
|
* @param data 数据信息
|
|
@@ -15,3 +15,9 @@ export declare const useQueryfilter: (datafilter: IObject[] | IObject) => {
|
|
|
15
15
|
query: IObject;
|
|
16
16
|
getExp: (...arg: string[]) => string;
|
|
17
17
|
};
|
|
18
|
+
/**
|
|
19
|
+
* 生成排序查询条件
|
|
20
|
+
* @param param0
|
|
21
|
+
* @returns
|
|
22
|
+
*/
|
|
23
|
+
export declare const getQuerySort: ({ collation, collationSort, collationField, }: IObject) => any;
|
|
@@ -66,5 +66,22 @@ var useQueryfilter = (datafilter) => {
|
|
|
66
66
|
getExp
|
|
67
67
|
};
|
|
68
68
|
};
|
|
69
|
+
/**
|
|
70
|
+
* 生成排序查询条件
|
|
71
|
+
* @param param0
|
|
72
|
+
* @returns
|
|
73
|
+
*/
|
|
74
|
+
var getQuerySort = ({ collation, collationSort, collationField }) => {
|
|
75
|
+
if (collation) return collation.filter((i) => i.collationField).map((i) => {
|
|
76
|
+
return {
|
|
77
|
+
sortField: i.collationField,
|
|
78
|
+
sortType: i.collationSort
|
|
79
|
+
};
|
|
80
|
+
});
|
|
81
|
+
else return collationSort ? [{
|
|
82
|
+
sortField: collationField,
|
|
83
|
+
sortType: collationSort
|
|
84
|
+
}] : [];
|
|
85
|
+
};
|
|
69
86
|
//#endregion
|
|
70
|
-
export { getIExp, getIKeywordFieldKeys, getQueryDateByKeyWord, useQueryfilter };
|
|
87
|
+
export { getIExp, getIKeywordFieldKeys, getQueryDateByKeyWord, getQuerySort, useQueryfilter };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/render",
|
|
3
|
-
"version": "0.1.5-dev.
|
|
3
|
+
"version": "0.1.5-dev.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台网页端底包",
|
|
6
6
|
"loader": "dist/loader.esm.min.js",
|
|
@@ -30,23 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"author": "gct",
|
|
33
|
-
"scripts": {
|
|
34
|
-
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|
|
35
|
-
"es:build": "vite build --config vite.dev.config.ts",
|
|
36
|
-
"build": "npm run lint && vite build --config vite.dev.config.ts && vite build --config vite.config.ts",
|
|
37
|
-
"lint": "eslint src/",
|
|
38
|
-
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
39
|
-
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
40
|
-
"publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
|
|
41
|
-
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
|
|
42
|
-
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
43
|
-
},
|
|
44
33
|
"dependencies": {
|
|
45
|
-
"@gct-paas/api": "^0.1.
|
|
46
|
-
"@gct-paas/core": "0.1.5-dev.1",
|
|
47
|
-
"@gct-paas/core-web": "0.1.5-dev.1",
|
|
48
|
-
"@gct-paas/schema": "0.1.5-dev.1",
|
|
49
|
-
"@gct-paas/scss": "0.1.5-dev.1",
|
|
34
|
+
"@gct-paas/api": "^0.1.4-dev.4",
|
|
50
35
|
"@vueuse/core": "^14.1.0",
|
|
51
36
|
"axios": "^1.13.2",
|
|
52
37
|
"bignumber.js": "^10.0.2",
|
|
@@ -57,7 +42,12 @@
|
|
|
57
42
|
"lodash-es": "^4.17.23",
|
|
58
43
|
"qs": "^6.15.0",
|
|
59
44
|
"qx-util": "^0.4.8",
|
|
60
|
-
"vue": "^3.5.30"
|
|
45
|
+
"vue": "^3.5.30",
|
|
46
|
+
"vue3-dnd": "^2.1.0",
|
|
47
|
+
"@gct-paas/core": "0.1.5-dev.11",
|
|
48
|
+
"@gct-paas/core-web": "0.1.5-dev.11",
|
|
49
|
+
"@gct-paas/schema": "0.1.5-dev.11",
|
|
50
|
+
"@gct-paas/scss": "0.1.5-dev.11"
|
|
61
51
|
},
|
|
62
52
|
"devDependencies": {
|
|
63
53
|
"@types/escodegen": "^0.0.10",
|
|
@@ -65,12 +55,22 @@
|
|
|
65
55
|
"@types/estree": "^1.0.8"
|
|
66
56
|
},
|
|
67
57
|
"peerDependencies": {
|
|
68
|
-
"@gct-paas/api": "^0.1.
|
|
69
|
-
"
|
|
70
|
-
"@gct-paas/core-web": "
|
|
71
|
-
"@gct-paas/
|
|
72
|
-
"@gct-paas/
|
|
73
|
-
"
|
|
58
|
+
"@gct-paas/api": "^0.1.4-dev.4",
|
|
59
|
+
"vue": ">=3",
|
|
60
|
+
"@gct-paas/core-web": "0.1.5-dev.11",
|
|
61
|
+
"@gct-paas/core": "0.1.5-dev.11",
|
|
62
|
+
"@gct-paas/schema": "0.1.5-dev.11",
|
|
63
|
+
"@gct-paas/scss": "0.1.5-dev.11"
|
|
74
64
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
65
|
+
"scripts": {
|
|
66
|
+
"dev": "cross-env NODE_ENV=development vite build --watch --config vite.dev.config.ts",
|
|
67
|
+
"es:build": "vite build --config vite.dev.config.ts",
|
|
68
|
+
"build": "npm run lint && vue-tsc --noEmit && vite build --config vite.dev.config.ts && vite build --config vite.config.ts",
|
|
69
|
+
"lint": "eslint src/",
|
|
70
|
+
"publish:next": "npm run build && npm publish --access public --tag=next --registry=https://registry.npmjs.org/",
|
|
71
|
+
"publish:dev": "npm run build && npm publish --access public --tag=dev --registry=https://registry.npmjs.org/",
|
|
72
|
+
"publish:alpha": "npm run build && npm publish --access public --tag=alpha --registry=https://registry.npmjs.org/",
|
|
73
|
+
"publish:beta": "npm run build && npm publish --access public --tag=beta --registry=https://registry.npmjs.org/",
|
|
74
|
+
"publish:npm": "npm run build && npm publish --access public --registry=https://registry.npmjs.org/"
|
|
75
|
+
}
|
|
76
|
+
}
|