@gct-paas/core 0.1.5-test.1 → 0.1.6-dev.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.
- package/dist/index.esm.min.js +1 -1
- package/es/enums/app-designer/index.d.ts +11 -0
- package/es/enums/app-designer/index.mjs +14 -1
- package/es/enums/appEnum.d.ts +8 -0
- package/es/enums/appEnum.mjs +10 -1
- package/es/enums/page-designer/designer.d.ts +13 -13
- package/es/index.mjs +13 -6
- package/es/interface/i-popover-options/i-popover-options.d.ts +98 -0
- package/es/interface/index.d.ts +2 -1
- package/es/interface/index.mjs +1 -0
- package/es/interface/model-designer/entity.d.ts +87 -79
- package/es/interface/model-designer/serial.d.ts +22 -0
- package/es/interface/model-designer/serial.mjs +49 -0
- package/es/interface/open-util/i-app-full-screen-container-options/i-app-full-screen-container-options.d.ts +26 -0
- package/es/interface/open-util/i-overlay-controller/i-overlay-controller.d.ts +52 -0
- package/es/interface/open-util/i-overlay-popover-container/i-overlay-popover-container.d.ts +21 -0
- package/es/interface/open-util/index.d.ts +3 -1
- package/es/locale/index.d.ts +23 -0
- package/es/locale/index.mjs +38 -1
- package/es/locale/sys/model.d.ts +5 -0
- package/es/locale/sys.d.ts +5 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.d.ts +1 -0
- package/es/modules/mqtt/enums/mqtt-status.enum.mjs +2 -1
- package/es/modules/mqtt/mqtt-manager.d.ts +1 -1
- package/es/modules/mqtt/mqtt-manager.mjs +2 -1
- package/es/modules/platform-config/store.mjs +0 -1
- package/es/modules/user-stores/store/user.store.d.ts +11 -2
- package/es/modules/user-stores/store/user.store.mjs +15 -4
- package/es/router/index.mjs +2 -2
- package/es/setup-app.mjs +6 -3
- package/es/store/index.d.ts +1 -0
- package/es/store/index.mjs +1 -0
- package/es/store/session-store.d.ts +7 -0
- package/es/store/session-store.mjs +7 -0
- package/es/store/storage-store.d.ts +2 -0
- package/es/store/storage-store.mjs +3 -2
- package/es/types/index.d.ts +0 -1
- package/es/utils/data-prems/const.d.ts +26 -0
- package/es/utils/data-prems/const.mjs +79 -0
- package/es/utils/i18n/index.mjs +3 -0
- package/es/utils/index.d.ts +3 -0
- package/es/utils/index.mjs +4 -0
- package/es/utils/kit-pkg-util/kit-pkg-util.mjs +6 -2
- package/es/utils/openUtil/index.d.ts +1 -0
- package/es/utils/openUtil/index.mjs +1 -0
- package/es/utils/openUtil/overlay-popover-container/overlay-popover-container.d.ts +15 -0
- package/es/utils/openUtil/overlay-popover-container/overlay-popover-container.mjs +19 -0
- package/es/utils/plugin-pkg-util/plugin-pkg-util.d.ts +1 -1
- package/es/utils/plugin-pkg-util/plugin-pkg-util.mjs +1 -1
- package/es/utils/script-loader/script-loader.d.ts +62 -0
- package/es/utils/script-loader/script-loader.mjs +92 -0
- package/es/utils/style/index.d.ts +8 -0
- package/es/utils/style/index.mjs +67 -1
- package/es/utils/text-measure/text-measure.d.ts +141 -0
- package/es/utils/text-measure/text-measure.mjs +191 -0
- package/es/utils/tools/tools.d.ts +1 -1
- package/es/utils/uploader/uploader.mjs +3 -5
- package/es/utils/util.d.ts +1 -0
- package/es/utils/util.mjs +9 -1
- package/package.json +4 -3
- package/es/interface/i-import-style-map/i-import-style-map.d.ts +0 -15
package/es/utils/util.mjs
CHANGED
|
@@ -56,5 +56,13 @@ function openWindow(url, options) {
|
|
|
56
56
|
if (optionStr) featuresStr = featuresStr ? `${featuresStr},${optionStr}` : optionStr;
|
|
57
57
|
return window.open(finalUrl, target, featuresStr);
|
|
58
58
|
}
|
|
59
|
+
var deleteAndInsertArr = (arr, deleteIndex, insertIndex) => {
|
|
60
|
+
if (deleteIndex < 0 || deleteIndex >= arr.length || insertIndex < 0 || insertIndex > arr.length) {
|
|
61
|
+
console.log("下标超出数组范围");
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
const deletedElement = arr.splice(deleteIndex, 1)[0];
|
|
65
|
+
arr.splice(insertIndex, 0, deletedElement);
|
|
66
|
+
};
|
|
59
67
|
//#endregion
|
|
60
|
-
export { genUrl, openWindow };
|
|
68
|
+
export { deleteAndInsertArr, genUrl, openWindow };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gct-paas/core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6-dev.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "paas 平台核心包",
|
|
6
6
|
"loader": "dist/index.esm.min.js",
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
"author": "gct",
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@fingerprintjs/fingerprintjs": "^5.1.0",
|
|
35
|
-
"@
|
|
35
|
+
"@floating-ui/dom": "^1.7.6",
|
|
36
|
+
"@gct-paas/api": "^0.1.4-dev.4",
|
|
36
37
|
"@module-federation/runtime": "^2.2.3",
|
|
37
38
|
"@vueuse/core": "^14.1.0",
|
|
38
39
|
"async-validator": "^4.2.5",
|
|
@@ -57,7 +58,7 @@
|
|
|
57
58
|
"playwright": "^1.58.0"
|
|
58
59
|
},
|
|
59
60
|
"peerDependencies": {
|
|
60
|
-
"@gct-paas/api": "0.1.4-
|
|
61
|
+
"@gct-paas/api": "^0.1.4-dev.4",
|
|
61
62
|
"vue": ">=3",
|
|
62
63
|
"vue-i18n": ">=11",
|
|
63
64
|
"vue-router": ">=4"
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* systemjs 扩展样式模块加载声明
|
|
3
|
-
*
|
|
4
|
-
* @export
|
|
5
|
-
* @interface IStyleIMportMap
|
|
6
|
-
* @extends {System.ImportMap}
|
|
7
|
-
*/
|
|
8
|
-
export interface IStyleIMportMap extends System.ImportMap {
|
|
9
|
-
/**
|
|
10
|
-
* 样式静态资源相对或者绝对路径与 imports 里边对应,会在加载 import 脚本时,自动加载样式文件
|
|
11
|
-
*
|
|
12
|
-
* @type {(Record<string, string[] | string>)}
|
|
13
|
-
*/
|
|
14
|
-
styles?: Record<string, string[] | string>;
|
|
15
|
-
}
|