@ibiz-template/runtime 0.7.41-alpha.128 → 0.7.41-alpha.130
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 +334 -72
- package/dist/index.system.min.js +1 -1
- package/out/constant/predefined-attributes.d.ts +5 -1
- package/out/constant/predefined-attributes.d.ts.map +1 -1
- package/out/constant/predefined-attributes.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.d.ts +6 -0
- 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 +25 -0
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar-filter.controller.js +1 -1
- package/out/controller/control/tree/tree.controller.d.ts +16 -1
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +22 -0
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.js +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.js +2 -3
- package/out/interface/provider/i-md-ctrl-item.provider.d.ts +14 -0
- package/out/interface/provider/i-md-ctrl-item.provider.d.ts.map +1 -0
- package/out/interface/provider/i-md-ctrl-item.provider.js +1 -0
- package/out/interface/provider/i-tree-node.provider.d.ts +14 -0
- package/out/interface/provider/i-tree-node.provider.d.ts.map +1 -0
- package/out/interface/provider/i-tree-node.provider.js +1 -0
- package/out/interface/provider/index.d.ts +2 -0
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/interface/register/i-register-params.d.ts +7 -3
- package/out/interface/register/i-register-params.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +6 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +6 -0
- package/out/locale/zh-CN/index.d.ts +6 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +6 -0
- package/out/register/custom-register.d.ts +16 -0
- package/out/register/custom-register.d.ts.map +1 -1
- package/out/register/custom-register.js +62 -16
- package/out/register/helper/ac-item-register.d.ts +2 -5
- package/out/register/helper/ac-item-register.d.ts.map +1 -1
- package/out/register/helper/ac-item-register.js +16 -5
- package/out/register/helper/app-counter-register.d.ts +5 -9
- package/out/register/helper/app-counter-register.d.ts.map +1 -1
- package/out/register/helper/app-counter-register.js +19 -9
- package/out/register/helper/app-menu-item-register.d.ts +3 -5
- package/out/register/helper/app-menu-item-register.d.ts.map +1 -1
- package/out/register/helper/app-menu-item-register.js +14 -19
- package/out/register/helper/error-view-register.d.ts +5 -9
- package/out/register/helper/error-view-register.d.ts.map +1 -1
- package/out/register/helper/error-view-register.js +5 -9
- package/out/register/helper/index.d.ts +2 -0
- package/out/register/helper/index.d.ts.map +1 -1
- package/out/register/helper/index.js +2 -0
- package/out/register/helper/md-ctrl-item-register.d.ts +19 -0
- package/out/register/helper/md-ctrl-item-register.d.ts.map +1 -0
- package/out/register/helper/md-ctrl-item-register.js +41 -0
- package/out/register/helper/tree-grid-ex-column-register.d.ts +6 -7
- package/out/register/helper/tree-grid-ex-column-register.d.ts.map +1 -1
- package/out/register/helper/tree-grid-ex-column-register.js +20 -6
- package/out/register/helper/tree-node-register.d.ts +20 -0
- package/out/register/helper/tree-node-register.d.ts.map +1 -0
- package/out/register/helper/tree-node-register.js +59 -0
- package/package.json +2 -2
- package/src/constant/predefined-attributes.ts +5 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts +31 -0
- package/src/controller/control/search-bar/search-bar-filter.controller.ts +4 -1
- package/src/controller/control/tree/tree.controller.ts +26 -0
- package/src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts +4 -1
- package/src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts +2 -4
- package/src/interface/provider/i-md-ctrl-item.provider.ts +14 -0
- package/src/interface/provider/i-tree-node.provider.ts +14 -0
- package/src/interface/provider/index.ts +2 -0
- package/src/interface/register/i-register-params.ts +14 -2
- package/src/locale/en/index.ts +11 -0
- package/src/locale/zh-CN/index.ts +11 -0
- package/src/register/custom-register.ts +73 -15
- package/src/register/helper/ac-item-register.ts +18 -5
- package/src/register/helper/app-counter-register.ts +23 -9
- package/src/register/helper/app-menu-item-register.ts +18 -19
- package/src/register/helper/error-view-register.ts +5 -9
- package/src/register/helper/index.ts +2 -0
- package/src/register/helper/md-ctrl-item-register.ts +61 -0
- package/src/register/helper/tree-grid-ex-column-register.ts +25 -6
- package/src/register/helper/tree-node-register.ts +78 -0
package/dist/index.esm.js
CHANGED
|
@@ -21351,6 +21351,7 @@ var PredefinedAttributes = /* @__PURE__ */ ((PredefinedAttributes2) => {
|
|
|
21351
21351
|
PredefinedAttributes2["CLASSNAMES"] = "classNames";
|
|
21352
21352
|
PredefinedAttributes2["STYLES"] = "styles";
|
|
21353
21353
|
PredefinedAttributes2["BEFORE_FRONT_EXPORT"] = "before-front-export";
|
|
21354
|
+
PredefinedAttributes2["ENABLE_ROW_DELETE"] = "enableRowDelete";
|
|
21354
21355
|
return PredefinedAttributes2;
|
|
21355
21356
|
})(PredefinedAttributes || {});
|
|
21356
21357
|
|
|
@@ -24087,56 +24088,6 @@ async function getPluginRegisterKey(pluginId, appId2) {
|
|
|
24087
24088
|
return "".concat(plugin.pluginType, "_").concat(plugin.pluginCode);
|
|
24088
24089
|
}
|
|
24089
24090
|
|
|
24090
|
-
// src/register/helper/app-counter-register.ts
|
|
24091
|
-
var APP_COUNTER_PROVIDER_PREFIX = "APPCOUNTER";
|
|
24092
|
-
function registerAppCounterProvider(key, callback) {
|
|
24093
|
-
ibiz.register.register("".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
24094
|
-
}
|
|
24095
|
-
function getProvider(key) {
|
|
24096
|
-
return ibiz.register.get(
|
|
24097
|
-
"".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key)
|
|
24098
|
-
);
|
|
24099
|
-
}
|
|
24100
|
-
async function getAppCounterProvider(model) {
|
|
24101
|
-
let provider;
|
|
24102
|
-
const { codeName, counterType, sysPFPluginId, appId: appId2 } = model;
|
|
24103
|
-
if (sysPFPluginId) {
|
|
24104
|
-
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
24105
|
-
if (pluginKey) {
|
|
24106
|
-
provider = getProvider(pluginKey);
|
|
24107
|
-
}
|
|
24108
|
-
if (!provider) {
|
|
24109
|
-
ibiz.log.warn(
|
|
24110
|
-
ibiz.i18n.t("runtime.register.helper.adapter", { pluginKey })
|
|
24111
|
-
);
|
|
24112
|
-
} else {
|
|
24113
|
-
return provider;
|
|
24114
|
-
}
|
|
24115
|
-
}
|
|
24116
|
-
if (counterType === "CUSTOM") {
|
|
24117
|
-
provider = getProvider(codeName);
|
|
24118
|
-
if (!provider) {
|
|
24119
|
-
throw new RuntimeError6(
|
|
24120
|
-
ibiz.i18n.t("runtime.register.helper.customizedSystemAdapter", {
|
|
24121
|
-
codeName
|
|
24122
|
-
})
|
|
24123
|
-
);
|
|
24124
|
-
} else {
|
|
24125
|
-
return provider;
|
|
24126
|
-
}
|
|
24127
|
-
}
|
|
24128
|
-
provider = getProvider(counterType);
|
|
24129
|
-
if (!provider) {
|
|
24130
|
-
throw new RuntimeError6(
|
|
24131
|
-
ibiz.i18n.t("runtime.register.helper.noFoundSystemCounter", {
|
|
24132
|
-
counterType
|
|
24133
|
-
})
|
|
24134
|
-
);
|
|
24135
|
-
} else {
|
|
24136
|
-
return provider;
|
|
24137
|
-
}
|
|
24138
|
-
}
|
|
24139
|
-
|
|
24140
24091
|
// src/register/custom-register.ts
|
|
24141
24092
|
var CustomRegister = class {
|
|
24142
24093
|
/**
|
|
@@ -24149,14 +24100,15 @@ var CustomRegister = class {
|
|
|
24149
24100
|
*/
|
|
24150
24101
|
static getRegisterKey(registerType, opts) {
|
|
24151
24102
|
const { mainModel } = opts;
|
|
24152
|
-
if (mainModel && mainModel.
|
|
24153
|
-
return mainModel.
|
|
24103
|
+
if (mainModel && mainModel.extPFPluginId) {
|
|
24104
|
+
return mainModel.extPFPluginId;
|
|
24154
24105
|
}
|
|
24155
24106
|
switch (registerType) {
|
|
24156
24107
|
case VIEW_PROVIDER_PREFIX:
|
|
24157
24108
|
return this.calcExtensionViewKey(opts);
|
|
24158
24109
|
case CONTROL_PROVIDER_PREFIX:
|
|
24159
24110
|
case PORTLET_PROVIDER_PREFIX:
|
|
24111
|
+
case MDCTRL_ITEM_PROVIDER_PREFIX:
|
|
24160
24112
|
return this.calcExtensionControlKey(opts);
|
|
24161
24113
|
case PANELITEM_PROVIDER_PREFIX:
|
|
24162
24114
|
return this.calcExtensionPanelItemKey(opts);
|
|
@@ -24164,6 +24116,8 @@ var CustomRegister = class {
|
|
|
24164
24116
|
case GRIDCOLUMN_PROVIDER_PREFIX:
|
|
24165
24117
|
case APPMENUITEM_PROVIDER_PREFIX:
|
|
24166
24118
|
case TOOLBAR_ITEM_PROVIDER_PREFIX:
|
|
24119
|
+
case TREEGRIDEX_COLUMN_PROVIDER_PREFIX:
|
|
24120
|
+
case TREE_NODE_PROVIDER_PREFIX:
|
|
24167
24121
|
return this.calcExtensionControlItemKey(opts);
|
|
24168
24122
|
case EDITOR_PROVIDER_PREFIX:
|
|
24169
24123
|
return this.calcExtensionEditorKey(opts);
|
|
@@ -24177,6 +24131,10 @@ var CustomRegister = class {
|
|
|
24177
24131
|
case UILOGICNODE_PROVIDER_PREFIX:
|
|
24178
24132
|
case DELOGICNODE_PROVIDER_PREFIX:
|
|
24179
24133
|
return this.calcExtensionLogicNodeKey(opts);
|
|
24134
|
+
case APP_COUNTER_PROVIDER_PREFIX:
|
|
24135
|
+
return this.calcExtensionCounterKey(opts);
|
|
24136
|
+
case AC_ITEM_PROVIDER_PREFIX:
|
|
24137
|
+
return this.calcExtensionACItemKey(opts);
|
|
24180
24138
|
default:
|
|
24181
24139
|
return "";
|
|
24182
24140
|
}
|
|
@@ -24259,22 +24217,24 @@ var CustomRegister = class {
|
|
|
24259
24217
|
let key = "";
|
|
24260
24218
|
if (mainModel) {
|
|
24261
24219
|
key = (mainModel.appId || "DEFAULT").toUpperCase();
|
|
24262
|
-
|
|
24263
|
-
|
|
24264
|
-
|
|
24265
|
-
|
|
24266
|
-
|
|
24267
|
-
|
|
24268
|
-
|
|
24269
|
-
|
|
24220
|
+
if (control) {
|
|
24221
|
+
const { appDataEntityId, controlType, codeName: codeName2 } = control;
|
|
24222
|
+
if (appDataEntityId) {
|
|
24223
|
+
key += "@".concat(calcDeCodeNameById(appDataEntityId).toUpperCase());
|
|
24224
|
+
} else {
|
|
24225
|
+
key += "@APP";
|
|
24226
|
+
}
|
|
24227
|
+
if (controlType) {
|
|
24228
|
+
key += "@".concat(controlType.toUpperCase());
|
|
24229
|
+
}
|
|
24230
|
+
if (codeName2) {
|
|
24231
|
+
key += "@".concat(codeName2.toUpperCase());
|
|
24232
|
+
}
|
|
24270
24233
|
}
|
|
24234
|
+
const codeName = mainModel.codeName || mainModel.id;
|
|
24271
24235
|
if (codeName) {
|
|
24272
24236
|
key += "@".concat(codeName.toUpperCase());
|
|
24273
24237
|
}
|
|
24274
|
-
const _codeName = mainModel.codeName || mainModel.id;
|
|
24275
|
-
if (_codeName) {
|
|
24276
|
-
key += "@".concat(_codeName.toUpperCase());
|
|
24277
|
-
}
|
|
24278
24238
|
}
|
|
24279
24239
|
return key;
|
|
24280
24240
|
}
|
|
@@ -24388,8 +24348,111 @@ var CustomRegister = class {
|
|
|
24388
24348
|
}
|
|
24389
24349
|
return key;
|
|
24390
24350
|
}
|
|
24351
|
+
/**
|
|
24352
|
+
* @description 计算计数器key,(appId/DEFAULT@计数器codeName)全大写
|
|
24353
|
+
* @static
|
|
24354
|
+
* @param {IRegisterParams} opts
|
|
24355
|
+
* @returns {*} {string}
|
|
24356
|
+
* @memberof CustomRegister
|
|
24357
|
+
*/
|
|
24358
|
+
static calcExtensionCounterKey(opts) {
|
|
24359
|
+
const { mainModel } = opts;
|
|
24360
|
+
let key = (mainModel.appId || "DEFAULT").toUpperCase();
|
|
24361
|
+
if (mainModel.codeName) {
|
|
24362
|
+
key += "@".concat(mainModel.codeName.toUpperCase());
|
|
24363
|
+
}
|
|
24364
|
+
return key;
|
|
24365
|
+
}
|
|
24366
|
+
/**
|
|
24367
|
+
* @description 计算自填列表项key,(appId/DEFAULT@实体codeName@实体自填模式codeName)全大写
|
|
24368
|
+
* @static
|
|
24369
|
+
* @param {IRegisterParams} opts
|
|
24370
|
+
* @returns {*} {string}
|
|
24371
|
+
* @memberof CustomRegister
|
|
24372
|
+
*/
|
|
24373
|
+
static calcExtensionACItemKey(opts) {
|
|
24374
|
+
const { mainModel } = opts;
|
|
24375
|
+
let key = "";
|
|
24376
|
+
if (mainModel) {
|
|
24377
|
+
const { appId: appId2, appDataEntityId, codeName } = mainModel;
|
|
24378
|
+
key = (appId2 || "DEFAULT").toUpperCase();
|
|
24379
|
+
if (appDataEntityId) {
|
|
24380
|
+
key += "@".concat(calcDeCodeNameById(appDataEntityId).toUpperCase());
|
|
24381
|
+
}
|
|
24382
|
+
if (codeName) {
|
|
24383
|
+
key += "@".concat(codeName.toUpperCase());
|
|
24384
|
+
}
|
|
24385
|
+
}
|
|
24386
|
+
return key;
|
|
24387
|
+
}
|
|
24391
24388
|
};
|
|
24392
24389
|
|
|
24390
|
+
// src/register/helper/app-counter-register.ts
|
|
24391
|
+
var APP_COUNTER_PROVIDER_PREFIX = "APPCOUNTER";
|
|
24392
|
+
function registerAppCounterProvider(key, callback) {
|
|
24393
|
+
ibiz.register.register("".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
24394
|
+
}
|
|
24395
|
+
function getProvider(key) {
|
|
24396
|
+
return ibiz.register.get(
|
|
24397
|
+
"".concat(APP_COUNTER_PROVIDER_PREFIX, "_").concat(key)
|
|
24398
|
+
);
|
|
24399
|
+
}
|
|
24400
|
+
async function getAppCounterProvider(model) {
|
|
24401
|
+
let provider;
|
|
24402
|
+
const { codeName, counterType, sysPFPluginId, appId: appId2 } = model;
|
|
24403
|
+
const registerKey = CustomRegister.getRegisterKey(
|
|
24404
|
+
APP_COUNTER_PROVIDER_PREFIX,
|
|
24405
|
+
{
|
|
24406
|
+
mainModel: model
|
|
24407
|
+
}
|
|
24408
|
+
);
|
|
24409
|
+
provider = getProvider(registerKey);
|
|
24410
|
+
if (!provider) {
|
|
24411
|
+
ibiz.log.debug(
|
|
24412
|
+
ibiz.i18n.t("runtime.register.helper.counterCustomRegistration", {
|
|
24413
|
+
registerKey
|
|
24414
|
+
})
|
|
24415
|
+
);
|
|
24416
|
+
} else {
|
|
24417
|
+
return provider;
|
|
24418
|
+
}
|
|
24419
|
+
if (sysPFPluginId) {
|
|
24420
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
24421
|
+
if (pluginKey) {
|
|
24422
|
+
provider = getProvider(pluginKey);
|
|
24423
|
+
}
|
|
24424
|
+
if (!provider) {
|
|
24425
|
+
ibiz.log.warn(
|
|
24426
|
+
ibiz.i18n.t("runtime.register.helper.adapter", { pluginKey })
|
|
24427
|
+
);
|
|
24428
|
+
} else {
|
|
24429
|
+
return provider;
|
|
24430
|
+
}
|
|
24431
|
+
}
|
|
24432
|
+
if (counterType === "CUSTOM") {
|
|
24433
|
+
provider = getProvider(codeName);
|
|
24434
|
+
if (!provider) {
|
|
24435
|
+
throw new RuntimeError6(
|
|
24436
|
+
ibiz.i18n.t("runtime.register.helper.customizedSystemAdapter", {
|
|
24437
|
+
codeName
|
|
24438
|
+
})
|
|
24439
|
+
);
|
|
24440
|
+
} else {
|
|
24441
|
+
return provider;
|
|
24442
|
+
}
|
|
24443
|
+
}
|
|
24444
|
+
provider = getProvider(counterType);
|
|
24445
|
+
if (!provider) {
|
|
24446
|
+
throw new RuntimeError6(
|
|
24447
|
+
ibiz.i18n.t("runtime.register.helper.noFoundSystemCounter", {
|
|
24448
|
+
counterType
|
|
24449
|
+
})
|
|
24450
|
+
);
|
|
24451
|
+
} else {
|
|
24452
|
+
return provider;
|
|
24453
|
+
}
|
|
24454
|
+
}
|
|
24455
|
+
|
|
24393
24456
|
// src/register/helper/control-register.ts
|
|
24394
24457
|
var CONTROL_PROVIDER_PREFIX = "CONTROL";
|
|
24395
24458
|
function registerControlProvider(key, callback) {
|
|
@@ -38699,7 +38762,10 @@ var SearchBarFilterController = class {
|
|
|
38699
38762
|
ibiz.i18n.t("runtime.controller.control.searchBar.missingModel")
|
|
38700
38763
|
);
|
|
38701
38764
|
}
|
|
38702
|
-
this.editorProvider = await getEditorProvider(
|
|
38765
|
+
this.editorProvider = await getEditorProvider(
|
|
38766
|
+
this.model.editor,
|
|
38767
|
+
this.model
|
|
38768
|
+
);
|
|
38703
38769
|
if (this.editorProvider) {
|
|
38704
38770
|
this.editor = await this.editorProvider.createController(
|
|
38705
38771
|
this.model.editor,
|
|
@@ -46552,6 +46618,35 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
46552
46618
|
}
|
|
46553
46619
|
);
|
|
46554
46620
|
}
|
|
46621
|
+
/**
|
|
46622
|
+
* 获取行删除状态(基于注入属性enableRowDelete计算,返回boolean值)
|
|
46623
|
+
* @param args 行数据
|
|
46624
|
+
* @returns 能否删除
|
|
46625
|
+
*/
|
|
46626
|
+
getRowEnableDelete(args = {}) {
|
|
46627
|
+
let result = true;
|
|
46628
|
+
if (this.model && this.model.controlAttributes) {
|
|
46629
|
+
const target = this.model.controlAttributes.find(
|
|
46630
|
+
(item) => item.attrName === "enableRowDelete" /* ENABLE_ROW_DELETE */
|
|
46631
|
+
);
|
|
46632
|
+
if (!target || !target.attrValue)
|
|
46633
|
+
return result;
|
|
46634
|
+
result = ScriptFactory.execScriptFn(
|
|
46635
|
+
{
|
|
46636
|
+
context: this.context,
|
|
46637
|
+
params: this.params,
|
|
46638
|
+
data: this.data,
|
|
46639
|
+
args
|
|
46640
|
+
},
|
|
46641
|
+
target.attrValue,
|
|
46642
|
+
{
|
|
46643
|
+
isAsync: false
|
|
46644
|
+
}
|
|
46645
|
+
);
|
|
46646
|
+
return result;
|
|
46647
|
+
}
|
|
46648
|
+
return result;
|
|
46649
|
+
}
|
|
46555
46650
|
/**
|
|
46556
46651
|
* @description 设置重复器控制器
|
|
46557
46652
|
* @param {string} id
|
|
@@ -56065,6 +56160,12 @@ var TreeController = class extends MDControlController {
|
|
|
56065
56160
|
* @type {{ [p: string]: ContextMenuController }}
|
|
56066
56161
|
*/
|
|
56067
56162
|
this.contextMenus = {};
|
|
56163
|
+
/**
|
|
56164
|
+
* @description 树节点适配器
|
|
56165
|
+
* @type {{ [p: string]: ITreeNodeProvider }}
|
|
56166
|
+
* @memberof TreeController
|
|
56167
|
+
*/
|
|
56168
|
+
this.nodeProvider = {};
|
|
56068
56169
|
/**
|
|
56069
56170
|
* 是否启用快速搜索
|
|
56070
56171
|
* @author lxm
|
|
@@ -56142,6 +56243,7 @@ var TreeController = class extends MDControlController {
|
|
|
56142
56243
|
await this.initQuickSearch();
|
|
56143
56244
|
await this.initService();
|
|
56144
56245
|
await this.initCounter();
|
|
56246
|
+
await this.initTreeNodeProvider();
|
|
56145
56247
|
this.model.detreeNodes.forEach((node) => {
|
|
56146
56248
|
var _a3, _b2;
|
|
56147
56249
|
if ((_b2 = (_a3 = node.decontextMenu) == null ? void 0 : _a3.detoolbarItems) == null ? void 0 : _b2.length) {
|
|
@@ -56157,6 +56259,22 @@ var TreeController = class extends MDControlController {
|
|
|
56157
56259
|
Object.values(this.contextMenus).map((menu) => menu.created())
|
|
56158
56260
|
);
|
|
56159
56261
|
}
|
|
56262
|
+
/**
|
|
56263
|
+
* @description 初始化树节点适配器
|
|
56264
|
+
* @protected
|
|
56265
|
+
* @returns {*} {Promise<void>}
|
|
56266
|
+
* @memberof TreeController
|
|
56267
|
+
*/
|
|
56268
|
+
async initTreeNodeProvider() {
|
|
56269
|
+
const { detreeNodes = [] } = this.model;
|
|
56270
|
+
await Promise.all(
|
|
56271
|
+
detreeNodes.map(async (node) => {
|
|
56272
|
+
const provider = await getTreeNodeProvider(node, this.model);
|
|
56273
|
+
if (node.id && provider)
|
|
56274
|
+
this.nodeProvider[node.id] = provider;
|
|
56275
|
+
})
|
|
56276
|
+
);
|
|
56277
|
+
}
|
|
56160
56278
|
/**
|
|
56161
56279
|
* @description 初始化界面行为组
|
|
56162
56280
|
* @protected
|
|
@@ -59488,10 +59606,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
59488
59606
|
* @memberof TreeGridExController
|
|
59489
59607
|
*/
|
|
59490
59608
|
async initColumnsController(column) {
|
|
59491
|
-
const provider = await getTreeGridExColumnProvider(column);
|
|
59492
|
-
if (!provider)
|
|
59609
|
+
const provider = await getTreeGridExColumnProvider(column, this.model);
|
|
59610
|
+
if (!provider)
|
|
59493
59611
|
return;
|
|
59494
|
-
}
|
|
59495
59612
|
this.providers[column.codeName] = provider;
|
|
59496
59613
|
const controller = await provider.createController(column, this);
|
|
59497
59614
|
this.columns[column.codeName] = controller;
|
|
@@ -60111,7 +60228,10 @@ var TreeGridExNodeColumnController = class {
|
|
|
60111
60228
|
async init() {
|
|
60112
60229
|
var _a3;
|
|
60113
60230
|
if (((_a3 = this.nodeEditItem) == null ? void 0 : _a3.editor) && this.nodeEditItem.editor.editorType !== "HIDDEN") {
|
|
60114
|
-
this.editorProvider = await getEditorProvider(
|
|
60231
|
+
this.editorProvider = await getEditorProvider(
|
|
60232
|
+
this.nodeEditItem.editor,
|
|
60233
|
+
this.treeGrid.model
|
|
60234
|
+
);
|
|
60115
60235
|
if (this.editorProvider) {
|
|
60116
60236
|
this.editor = await this.editorProvider.createController(
|
|
60117
60237
|
this.nodeEditItem.editor,
|
|
@@ -65859,9 +65979,26 @@ function getProvider14(key) {
|
|
|
65859
65979
|
"".concat(TREEGRIDEX_COLUMN_PROVIDER_PREFIX, "_").concat(key)
|
|
65860
65980
|
);
|
|
65861
65981
|
}
|
|
65862
|
-
async function getTreeGridExColumnProvider(model) {
|
|
65982
|
+
async function getTreeGridExColumnProvider(model, grid) {
|
|
65863
65983
|
let provider;
|
|
65864
65984
|
const { columnType, appId: appId2, renderSysPFPluginId } = model;
|
|
65985
|
+
const registerKey = CustomRegister.getRegisterKey(
|
|
65986
|
+
TREEGRIDEX_COLUMN_PROVIDER_PREFIX,
|
|
65987
|
+
{
|
|
65988
|
+
mainModel: model,
|
|
65989
|
+
control: grid
|
|
65990
|
+
}
|
|
65991
|
+
);
|
|
65992
|
+
provider = getProvider14(registerKey);
|
|
65993
|
+
if (!provider) {
|
|
65994
|
+
ibiz.log.debug(
|
|
65995
|
+
ibiz.i18n.t("runtime.register.helper.treeTableColumnCustomRegistration", {
|
|
65996
|
+
registerKey
|
|
65997
|
+
})
|
|
65998
|
+
);
|
|
65999
|
+
} else {
|
|
66000
|
+
return provider;
|
|
66001
|
+
}
|
|
65865
66002
|
if (renderSysPFPluginId) {
|
|
65866
66003
|
const pluginKey = await getPluginRegisterKey(renderSysPFPluginId, appId2);
|
|
65867
66004
|
if (pluginKey) {
|
|
@@ -65902,6 +66039,21 @@ function getProvider15(key) {
|
|
|
65902
66039
|
async function getAppMenuItemProvider(model, control) {
|
|
65903
66040
|
let provider;
|
|
65904
66041
|
const { sysPFPluginId, appId: appId2, itemType } = model;
|
|
66042
|
+
const registerKey = CustomRegister.getRegisterKey(
|
|
66043
|
+
APPMENUITEM_PROVIDER_PREFIX,
|
|
66044
|
+
{
|
|
66045
|
+
mainModel: model,
|
|
66046
|
+
control
|
|
66047
|
+
}
|
|
66048
|
+
);
|
|
66049
|
+
provider = getProvider15(registerKey);
|
|
66050
|
+
if (provider)
|
|
66051
|
+
return provider;
|
|
66052
|
+
ibiz.log.debug(
|
|
66053
|
+
ibiz.i18n.t("runtime.register.helper.menuItemCustomRegistration", {
|
|
66054
|
+
registerKey
|
|
66055
|
+
})
|
|
66056
|
+
);
|
|
65905
66057
|
if (sysPFPluginId) {
|
|
65906
66058
|
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
65907
66059
|
if (pluginKey)
|
|
@@ -66022,6 +66174,19 @@ function getProvider19(key) {
|
|
|
66022
66174
|
async function getAcItemProvider(model) {
|
|
66023
66175
|
let provider;
|
|
66024
66176
|
const { itemSysPFPluginId, appId: appId2 } = model;
|
|
66177
|
+
const registerKey = CustomRegister.getRegisterKey(AC_ITEM_PROVIDER_PREFIX, {
|
|
66178
|
+
mainModel: model
|
|
66179
|
+
});
|
|
66180
|
+
provider = getProvider19(registerKey);
|
|
66181
|
+
if (!provider) {
|
|
66182
|
+
ibiz.log.debug(
|
|
66183
|
+
ibiz.i18n.t("runtime.register.helper.acItemCustomRegistration", {
|
|
66184
|
+
registerKey
|
|
66185
|
+
})
|
|
66186
|
+
);
|
|
66187
|
+
} else {
|
|
66188
|
+
return provider;
|
|
66189
|
+
}
|
|
66025
66190
|
if (itemSysPFPluginId) {
|
|
66026
66191
|
const pluginKey = await getPluginRegisterKey(itemSysPFPluginId, appId2);
|
|
66027
66192
|
if (pluginKey) {
|
|
@@ -66164,6 +66329,85 @@ async function getDELogicNodeProvider(model, logic, entity) {
|
|
|
66164
66329
|
);
|
|
66165
66330
|
}
|
|
66166
66331
|
|
|
66332
|
+
// src/register/helper/tree-node-register.ts
|
|
66333
|
+
var TREE_NODE_PROVIDER_PREFIX = "TREE_NODE";
|
|
66334
|
+
function registerTreeNodeProvider(key, callback) {
|
|
66335
|
+
ibiz.register.register("".concat(TREE_NODE_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
66336
|
+
}
|
|
66337
|
+
function getProvider23(key) {
|
|
66338
|
+
return ibiz.register.get(
|
|
66339
|
+
"".concat(TREE_NODE_PROVIDER_PREFIX, "_").concat(key)
|
|
66340
|
+
);
|
|
66341
|
+
}
|
|
66342
|
+
async function getTreeNodeProvider(model, tree) {
|
|
66343
|
+
let provider;
|
|
66344
|
+
const { sysPFPluginId, appId: appId2, treeNodeType } = model;
|
|
66345
|
+
const registerKey = CustomRegister.getRegisterKey(TREE_NODE_PROVIDER_PREFIX, {
|
|
66346
|
+
mainModel: model,
|
|
66347
|
+
control: tree
|
|
66348
|
+
});
|
|
66349
|
+
provider = getProvider23(registerKey);
|
|
66350
|
+
if (!provider) {
|
|
66351
|
+
ibiz.log.debug(
|
|
66352
|
+
ibiz.i18n.t("runtime.register.helper.treeNodeCustomRegistration", {
|
|
66353
|
+
registerKey
|
|
66354
|
+
})
|
|
66355
|
+
);
|
|
66356
|
+
} else {
|
|
66357
|
+
return provider;
|
|
66358
|
+
}
|
|
66359
|
+
if (sysPFPluginId) {
|
|
66360
|
+
const pluginKey = await getPluginRegisterKey(sysPFPluginId, appId2);
|
|
66361
|
+
if (pluginKey) {
|
|
66362
|
+
provider = getProvider23(pluginKey);
|
|
66363
|
+
}
|
|
66364
|
+
if (!provider) {
|
|
66365
|
+
ibiz.log.warn(
|
|
66366
|
+
ibiz.i18n.t("runtime.register.helper.treeNodePlugin", {
|
|
66367
|
+
pluginKey
|
|
66368
|
+
})
|
|
66369
|
+
);
|
|
66370
|
+
} else {
|
|
66371
|
+
return provider;
|
|
66372
|
+
}
|
|
66373
|
+
}
|
|
66374
|
+
provider = getProvider23(treeNodeType);
|
|
66375
|
+
return provider;
|
|
66376
|
+
}
|
|
66377
|
+
|
|
66378
|
+
// src/register/helper/md-ctrl-item-register.ts
|
|
66379
|
+
var MDCTRL_ITEM_PROVIDER_PREFIX = "MDCTRL_ITEM";
|
|
66380
|
+
function registerMDCtrlItemProvider(key, callback) {
|
|
66381
|
+
ibiz.register.register("".concat(MDCTRL_ITEM_PROVIDER_PREFIX, "_").concat(key), callback);
|
|
66382
|
+
}
|
|
66383
|
+
function getProvider24(key) {
|
|
66384
|
+
return ibiz.register.get(
|
|
66385
|
+
"".concat(MDCTRL_ITEM_PROVIDER_PREFIX, "_").concat(key)
|
|
66386
|
+
);
|
|
66387
|
+
}
|
|
66388
|
+
function getMDCtrlItemProvider(model) {
|
|
66389
|
+
let provider;
|
|
66390
|
+
const { controlType } = model;
|
|
66391
|
+
const registerKey = CustomRegister.getRegisterKey(
|
|
66392
|
+
MDCTRL_ITEM_PROVIDER_PREFIX,
|
|
66393
|
+
{
|
|
66394
|
+
mainModel: model
|
|
66395
|
+
}
|
|
66396
|
+
);
|
|
66397
|
+
provider = getProvider24(registerKey);
|
|
66398
|
+
if (!provider) {
|
|
66399
|
+
ibiz.log.debug(
|
|
66400
|
+
ibiz.i18n.t("runtime.register.helper.mdCtrlItemCustomRegistration", {
|
|
66401
|
+
registerKey
|
|
66402
|
+
})
|
|
66403
|
+
);
|
|
66404
|
+
} else {
|
|
66405
|
+
return provider;
|
|
66406
|
+
}
|
|
66407
|
+
provider = getProvider24(controlType);
|
|
66408
|
+
return provider;
|
|
66409
|
+
}
|
|
66410
|
+
|
|
66167
66411
|
// src/service/utils/app-counter/app-counter.ts
|
|
66168
66412
|
import { IBizContext as IBizContext6, RuntimeError as RuntimeError53 } from "@ibiz-template/core";
|
|
66169
66413
|
import { notNilEmpty as notNilEmpty8, QXEvent as QXEvent4 } from "qx-util";
|
|
@@ -92339,7 +92583,13 @@ var en = {
|
|
|
92339
92583
|
deLogic: "Cannot find an adapter for the corresponding entity logic",
|
|
92340
92584
|
deLogicNodeCustomRegistration: "[Custom Extended DELogic Node] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92341
92585
|
portalCustomRegistration: "[Custom Extended Portlet] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92342
|
-
toolbarItemCustomRegistration: "[Custom Extended Toolbar Item] Cannot find an adapter with a custom registration ID of [{registerKey}]."
|
|
92586
|
+
toolbarItemCustomRegistration: "[Custom Extended Toolbar Item] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92587
|
+
treeTableColumnCustomRegistration: "[Custom Extended TreeGrid Column] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92588
|
+
counterCustomRegistration: "[Custom Extended Counter] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92589
|
+
acItemCustomRegistration: "[Custom Extended AC Item] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92590
|
+
treeNodePlugin: "No adapter found for the tree node plugin {pluginKey}",
|
|
92591
|
+
treeNodeCustomRegistration: "[Custom Extended Tree Node] Cannot find an adapter with a custom registration ID of [{registerKey}].",
|
|
92592
|
+
mdCtrlItemCustomRegistration: "[Custom Extended MDCtrl Item] Cannot find an adapter with a custom registration ID of [{registerKey}]."
|
|
92343
92593
|
}
|
|
92344
92594
|
},
|
|
92345
92595
|
service: {
|
|
@@ -93047,7 +93297,13 @@ var zhCn = {
|
|
|
93047
93297
|
deLogic: "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93048
93298
|
deLogicNodeCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u5B9E\u4F53\u903B\u8F91\u8282\u70B9] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93049
93299
|
portalCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u95E8\u6237\u90E8\u4EF6] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93050
|
-
toolbarItemCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u5DE5\u5177\u680F\u9879] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668"
|
|
93300
|
+
toolbarItemCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u5DE5\u5177\u680F\u9879] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93301
|
+
treeTableColumnCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u6811\u8868\u683C\u5217] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93302
|
+
counterCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u8BA1\u6570\u5668] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93303
|
+
acItemCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u81EA\u586B\u5217\u8868\u9879] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93304
|
+
treeNodePlugin: "\u627E\u4E0D\u5230\u6811\u8282\u70B9\u63D2\u4EF6{pluginKey}\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93305
|
+
treeNodeCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u6811\u8282\u70B9] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668",
|
|
93306
|
+
mdCtrlItemCustomRegistration: "[\u81EA\u5B9A\u4E49\u6269\u5C55\u591A\u6570\u636E\u90E8\u4EF6\u9879] \u627E\u4E0D\u5230\u81EA\u5B9A\u4E49\u6CE8\u518C\u6807\u8BC6\u4E3A[{registerKey}]\u5BF9\u5E94\u7684\u9002\u914D\u5668"
|
|
93051
93307
|
}
|
|
93052
93308
|
},
|
|
93053
93309
|
service: {
|
|
@@ -93461,6 +93717,7 @@ export {
|
|
|
93461
93717
|
ListPortletController,
|
|
93462
93718
|
ListService,
|
|
93463
93719
|
LoadingState,
|
|
93720
|
+
MDCTRL_ITEM_PROVIDER_PREFIX,
|
|
93464
93721
|
MDControlController,
|
|
93465
93722
|
MDControlService2 as MDControlService,
|
|
93466
93723
|
MDControlTypes,
|
|
@@ -93550,6 +93807,7 @@ export {
|
|
|
93550
93807
|
SysUIActionTag,
|
|
93551
93808
|
TOOLBAR_ITEM_PROVIDER_PREFIX,
|
|
93552
93809
|
TREEGRIDEX_COLUMN_PROVIDER_PREFIX,
|
|
93810
|
+
TREE_NODE_PROVIDER_PREFIX,
|
|
93553
93811
|
TabExpPanelController,
|
|
93554
93812
|
TextUtil,
|
|
93555
93813
|
ThemeUtil,
|
|
@@ -93713,6 +93971,7 @@ export {
|
|
|
93713
93971
|
getGridColumnProvider,
|
|
93714
93972
|
getImportSchema,
|
|
93715
93973
|
getInternalMessageProvider,
|
|
93974
|
+
getMDCtrlItemProvider,
|
|
93716
93975
|
getMatchResPath,
|
|
93717
93976
|
getOriginData,
|
|
93718
93977
|
getOriginFilterNodes,
|
|
@@ -93727,6 +93986,7 @@ export {
|
|
|
93727
93986
|
getToolbarItemProvider,
|
|
93728
93987
|
getTreeGridExColumnProvider,
|
|
93729
93988
|
getTreeNode,
|
|
93989
|
+
getTreeNodeProvider,
|
|
93730
93990
|
getUIActionById,
|
|
93731
93991
|
getUIActionItemsByActionLevel,
|
|
93732
93992
|
getUIActionProvider,
|
|
@@ -93783,11 +94043,13 @@ export {
|
|
|
93783
94043
|
registerFormDetailProvider,
|
|
93784
94044
|
registerGridColumnProvider,
|
|
93785
94045
|
registerInternalMessageProvider,
|
|
94046
|
+
registerMDCtrlItemProvider,
|
|
93786
94047
|
registerPanelItemProvider,
|
|
93787
94048
|
registerPlatformProvider,
|
|
93788
94049
|
registerPortletProvider,
|
|
93789
94050
|
registerToolbarItemProvider,
|
|
93790
94051
|
registerTreeGridExColumnProvider,
|
|
94052
|
+
registerTreeNodeProvider,
|
|
93791
94053
|
registerUIActionProvider,
|
|
93792
94054
|
registerUILogicNodeProvider,
|
|
93793
94055
|
registerUILogicProvider,
|