@ibiz-template/runtime 0.7.41-alpha.10 → 0.7.41-alpha.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.esm.js +58 -10
- package/dist/index.system.min.js +1 -1
- package/out/application.d.ts +7 -0
- package/out/application.d.ts.map +1 -1
- package/out/application.js +21 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts +8 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.js +16 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts +4 -4
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +1 -1
- package/out/controller/control/list/list.controller.d.ts.map +1 -1
- package/out/controller/control/list/list.controller.js +8 -0
- package/out/interface/api/common/global-config/i-api-global-config.d.ts +6 -0
- package/out/interface/api/common/global-config/i-api-global-config.d.ts.map +1 -1
- package/out/interface/common/i-plugin-factory/i-plugin-factory.d.ts +2 -1
- package/out/interface/common/i-plugin-factory/i-plugin-factory.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +1 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +1 -0
- package/out/locale/zh-CN/index.d.ts +1 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +1 -0
- package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts +6 -0
- package/out/plugin/remote-plugin-item/remote-plugin-item.d.ts.map +1 -1
- package/out/service/service/control/md-control.service.d.ts +3 -3
- package/out/service/service/control/md-control.service.d.ts.map +1 -1
- package/out/service/service/control/md-control.service.js +3 -2
- package/out/ui-action/provider/front-ui-action-provider.d.ts.map +1 -1
- package/out/ui-action/provider/front-ui-action-provider.js +4 -1
- package/package.json +4 -4
package/dist/index.esm.js
CHANGED
|
@@ -28917,7 +28917,7 @@ var MDControlService = class extends ControlService {
|
|
|
28917
28917
|
*
|
|
28918
28918
|
* @author lxm
|
|
28919
28919
|
* @date 2022-11-25 14:11:09
|
|
28920
|
-
* @param {
|
|
28920
|
+
* @param {IAppDEDataExport} dataExport 导出模型
|
|
28921
28921
|
* @param {IContext} context 上下文
|
|
28922
28922
|
* @param {IParams} [params={}] 请求参数
|
|
28923
28923
|
* @returns {*} {Promise<IHttpResponse>}
|
|
@@ -28929,7 +28929,7 @@ var MDControlService = class extends ControlService {
|
|
|
28929
28929
|
);
|
|
28930
28930
|
return entityService.file.exportData(
|
|
28931
28931
|
dataExport,
|
|
28932
|
-
this.model.fetchControlAction.appDEMethodId,
|
|
28932
|
+
dataExport.appDEDataSetId || this.model.fetchControlAction.appDEMethodId,
|
|
28933
28933
|
context,
|
|
28934
28934
|
params
|
|
28935
28935
|
);
|
|
@@ -41631,6 +41631,9 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
41631
41631
|
});
|
|
41632
41632
|
if (appDEDataExport) {
|
|
41633
41633
|
let exportDatasetCodeName = presetParams.srfexportdataset;
|
|
41634
|
+
if (!exportDatasetCodeName && appDEDataExport.appDEDataSetId) {
|
|
41635
|
+
exportDatasetCodeName = appDEDataExport.appDEDataSetId;
|
|
41636
|
+
}
|
|
41634
41637
|
if (!exportDatasetCodeName) {
|
|
41635
41638
|
const defaultDataset = (_b2 = appDataEntity.appDEMethods) == null ? void 0 : _b2.find((appDEMethod) => {
|
|
41636
41639
|
return appDEMethod.dataSetTag === "Default";
|
|
@@ -53512,7 +53515,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
53512
53515
|
*/
|
|
53513
53516
|
this.repeaterStyle = "MultiForm";
|
|
53514
53517
|
/**
|
|
53515
|
-
* @description 重复器的值是否是单项数据类型,true
|
|
53518
|
+
* @description 重复器的值是否是单项数据类型,true为对象格式,false为数组格式
|
|
53516
53519
|
* @type {boolean}
|
|
53517
53520
|
* @memberof FormMDCtrlRepeaterController
|
|
53518
53521
|
*/
|
|
@@ -53700,6 +53703,21 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
53700
53703
|
args: newArr
|
|
53701
53704
|
});
|
|
53702
53705
|
}
|
|
53706
|
+
/**
|
|
53707
|
+
* @description 拖拽变更
|
|
53708
|
+
* @param {number} _draggedIndex 当前拖拽元素的下标
|
|
53709
|
+
* @param {number} _targetIndex 拖拽元素放入位置的下标
|
|
53710
|
+
* @memberof FormMDCtrlRepeaterController
|
|
53711
|
+
*/
|
|
53712
|
+
dragChange(_draggedIndex, _targetIndex) {
|
|
53713
|
+
if (this.isSingleData) {
|
|
53714
|
+
return;
|
|
53715
|
+
}
|
|
53716
|
+
const arrData = [...this.value];
|
|
53717
|
+
const movedItem = arrData.splice(_draggedIndex, 1)[0];
|
|
53718
|
+
arrData.splice(_targetIndex, 0, movedItem);
|
|
53719
|
+
this.setValue(arrData);
|
|
53720
|
+
}
|
|
53703
53721
|
/**
|
|
53704
53722
|
* @description 表单数据变更通知
|
|
53705
53723
|
* @param {string[]} names
|
|
@@ -55984,7 +56002,7 @@ var GridController = class extends MDControlController {
|
|
|
55984
56002
|
* 数据导出列
|
|
55985
56003
|
* @author lxm
|
|
55986
56004
|
* @date 2023-08-07 04:11:00
|
|
55987
|
-
* @type {
|
|
56005
|
+
* @type {IAppDEDataExport}
|
|
55988
56006
|
*/
|
|
55989
56007
|
this.allExportColumns = [];
|
|
55990
56008
|
/**
|
|
@@ -58416,6 +58434,7 @@ var GridGroupColumnController = class extends GridColumnController {
|
|
|
58416
58434
|
import { createUUID as createUUID15, isBoolean as isBoolean3 } from "qx-util";
|
|
58417
58435
|
import { clone as clone44, isNil as isNil34 } from "ramda";
|
|
58418
58436
|
import { isElementSame as isElementSame4 } from "@ibiz-template/core";
|
|
58437
|
+
import dayjs8 from "dayjs";
|
|
58419
58438
|
|
|
58420
58439
|
// src/controller/control/list/list.service.ts
|
|
58421
58440
|
var ListService = class extends MDControlService {
|
|
@@ -58688,6 +58707,11 @@ var ListController = class extends MDControlController {
|
|
|
58688
58707
|
let groupVal = item[textDEFieldId || groupAppDEFieldId];
|
|
58689
58708
|
if (dateFormat)
|
|
58690
58709
|
groupVal = formatDate(groupVal, dateFormat);
|
|
58710
|
+
if (this.model.groupStyle === "STYLE2" && dayjs8(groupVal).isValid()) {
|
|
58711
|
+
groupVal = formatDate(groupVal, "day");
|
|
58712
|
+
if (dayjs8(groupVal).isSame(dayjs8(), "day"))
|
|
58713
|
+
groupVal = ibiz.i18n.t("runtime.controller.common.md.today");
|
|
58714
|
+
}
|
|
58691
58715
|
if (isNil34(groupVal)) {
|
|
58692
58716
|
unclassified.children.push(item);
|
|
58693
58717
|
return;
|
|
@@ -64005,7 +64029,7 @@ import {
|
|
|
64005
64029
|
RuntimeModelError as RuntimeModelError71
|
|
64006
64030
|
} from "@ibiz-template/core";
|
|
64007
64031
|
import { clone as clone48 } from "ramda";
|
|
64008
|
-
import
|
|
64032
|
+
import dayjs9 from "dayjs";
|
|
64009
64033
|
var TreeGridExNodeColumnController = class {
|
|
64010
64034
|
/**
|
|
64011
64035
|
* @author lxm
|
|
@@ -64303,7 +64327,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
64303
64327
|
}
|
|
64304
64328
|
const isDate = DataTypes7.isDate(this.dataType);
|
|
64305
64329
|
if (isDate || this.fieldColumn.name === "createdate") {
|
|
64306
|
-
const formatVal =
|
|
64330
|
+
const formatVal = dayjs9(strVal).format(this.valueFormat);
|
|
64307
64331
|
if (formatVal !== "Invalid Date") {
|
|
64308
64332
|
return formatVal;
|
|
64309
64333
|
}
|
|
@@ -74925,6 +74949,7 @@ var Application = class {
|
|
|
74925
74949
|
await this.authority.init();
|
|
74926
74950
|
await this.loadAppModelStyle();
|
|
74927
74951
|
await this.loadGlobalAppUtil();
|
|
74952
|
+
await this.loadReplaceDefaultPlugin();
|
|
74928
74953
|
}
|
|
74929
74954
|
/**
|
|
74930
74955
|
* 加载应用模型全局样式
|
|
@@ -74964,6 +74989,27 @@ var Application = class {
|
|
|
74964
74989
|
return;
|
|
74965
74990
|
await ibiz.plugin.loadPlugin(globalAppUtilPlugin);
|
|
74966
74991
|
}
|
|
74992
|
+
/**
|
|
74993
|
+
* @description 加载替换默认插件(仅主应用执行)
|
|
74994
|
+
* @protected
|
|
74995
|
+
* @returns {*} {Promise<void>}
|
|
74996
|
+
* @memberof Application
|
|
74997
|
+
*/
|
|
74998
|
+
async loadReplaceDefaultPlugin() {
|
|
74999
|
+
var _a3;
|
|
75000
|
+
if (this.appId !== ibiz.env.appId)
|
|
75001
|
+
return;
|
|
75002
|
+
const tempPlugins = (_a3 = this.model.appPFPluginRefs) == null ? void 0 : _a3.filter(
|
|
75003
|
+
(appPFPluginRef) => {
|
|
75004
|
+
return appPFPluginRef.replaceDefault === true && appPFPluginRef.runtimeObject === true;
|
|
75005
|
+
}
|
|
75006
|
+
);
|
|
75007
|
+
if (tempPlugins && tempPlugins.length > 0) {
|
|
75008
|
+
for (let i = 0; i < tempPlugins.length; i++) {
|
|
75009
|
+
await ibiz.plugin.loadPlugin(tempPlugins[i]);
|
|
75010
|
+
}
|
|
75011
|
+
}
|
|
75012
|
+
}
|
|
74967
75013
|
/**
|
|
74968
75014
|
* 根据 id 查找应用功能
|
|
74969
75015
|
*
|
|
@@ -75219,7 +75265,7 @@ import { QXEvent as QXEvent14 } from "qx-util";
|
|
|
75219
75265
|
import { QXEvent as QXEvent12 } from "qx-util";
|
|
75220
75266
|
import { clone as clone53 } from "ramda";
|
|
75221
75267
|
import { isNil as isNil38, isNumber as isNumber5 } from "lodash-es";
|
|
75222
|
-
import
|
|
75268
|
+
import dayjs10 from "dayjs";
|
|
75223
75269
|
var AsyncActionController = class {
|
|
75224
75270
|
constructor() {
|
|
75225
75271
|
this.evt = new QXEvent12();
|
|
@@ -75293,7 +75339,7 @@ var AsyncActionController = class {
|
|
|
75293
75339
|
];
|
|
75294
75340
|
dateFields.forEach((key) => {
|
|
75295
75341
|
if (isNumber5(data[key])) {
|
|
75296
|
-
data[key] =
|
|
75342
|
+
data[key] = dayjs10(data[key]).format("YYYY-MM-DD HH:mm:ss");
|
|
75297
75343
|
}
|
|
75298
75344
|
});
|
|
75299
75345
|
if (!isNil38(data.actionresult)) {
|
|
@@ -79315,7 +79361,8 @@ var en = {
|
|
|
79315
79361
|
exportRequestFailed: "Export request failed",
|
|
79316
79362
|
changeGroupError: "Failed to switch the group",
|
|
79317
79363
|
computeMoveMetaError: "Error in calculating target position and movement type",
|
|
79318
|
-
unclassified: "Unclassified"
|
|
79364
|
+
unclassified: "Unclassified",
|
|
79365
|
+
today: "Today"
|
|
79319
79366
|
},
|
|
79320
79367
|
editor: {
|
|
79321
79368
|
editorNoConfigured: "Editor type [{editorType}], code table not configured",
|
|
@@ -79964,7 +80011,8 @@ var zhCn = {
|
|
|
79964
80011
|
exportRequestFailed: "\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25",
|
|
79965
80012
|
changeGroupError: "\u5207\u6362\u5206\u7EC4\u5931\u8D25",
|
|
79966
80013
|
computeMoveMetaError: "\u8BA1\u7B97\u76EE\u6807\u4F4D\u7F6E\u548C\u79FB\u52A8\u7C7B\u578B\u53D1\u751F\u9519\u8BEF",
|
|
79967
|
-
unclassified: "\u672A\u5206\u7C7B"
|
|
80014
|
+
unclassified: "\u672A\u5206\u7C7B",
|
|
80015
|
+
today: "\u4ECA\u5929"
|
|
79968
80016
|
},
|
|
79969
80017
|
editor: {
|
|
79970
80018
|
editorNoConfigured: "\u7F16\u8F91\u5668\u7C7B\u578B[{editorType}]\uFF0C\u672A\u914D\u7F6E\u4EE3\u7801\u8868",
|