@ibiz-template/runtime 0.7.41-alpha.89 → 0.7.41-alpha.90
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 +159 -97
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/app-menu/app-menu.controller.d.ts +4 -5
- package/out/controller/control/app-menu/app-menu.controller.d.ts.map +1 -1
- package/out/controller/control/app-menu/app-menu.controller.js +12 -18
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.d.ts +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.js +1 -1
- 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 +15 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +7 -15
- package/out/controller/control/toolbar/toolbar.controller.d.ts +2 -3
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +12 -20
- package/out/controller/control/tree/tree.controller.d.ts +6 -0
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +16 -0
- 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 +6 -12
- package/out/interface/api/common/i-api-from-mdctrl-form-item.d.ts +1 -1
- package/out/interface/api/controller/control/form-detail/i-api-form-detail.controller.d.ts +1 -1
- package/out/interface/api/controller/control/i-api-form.controller.d.ts +5 -5
- package/out/service/mqtt/collaborate.service.d.ts +8 -0
- package/out/service/mqtt/collaborate.service.d.ts.map +1 -1
- package/out/service/mqtt/collaborate.service.js +15 -0
- package/out/service/mqtt/mqtt.service.d.ts +8 -0
- package/out/service/mqtt/mqtt.service.d.ts.map +1 -1
- package/out/service/mqtt/mqtt.service.js +15 -0
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -30615,9 +30615,10 @@ var MDControlController = class extends ControlController {
|
|
|
30615
30615
|
|
|
30616
30616
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
30617
30617
|
import {
|
|
30618
|
-
findRecursiveChild,
|
|
30619
30618
|
RuntimeError as RuntimeError18,
|
|
30620
|
-
|
|
30619
|
+
recursiveIterate as recursiveIterate2,
|
|
30620
|
+
RuntimeModelError as RuntimeModelError18,
|
|
30621
|
+
findRecursiveChild
|
|
30621
30622
|
} from "@ibiz-template/core";
|
|
30622
30623
|
|
|
30623
30624
|
// src/controller/control/app-menu/custom-app-menu.controller.ts
|
|
@@ -31208,17 +31209,16 @@ var AppMenuController = class extends ControlController {
|
|
|
31208
31209
|
return null;
|
|
31209
31210
|
}
|
|
31210
31211
|
/**
|
|
31211
|
-
* 转换各类多语言
|
|
31212
|
-
*
|
|
31213
|
-
* @date 2023-05-18 02:57:00
|
|
31212
|
+
* @description 转换各类多语言
|
|
31214
31213
|
* @protected
|
|
31214
|
+
* @memberof AppMenuController
|
|
31215
31215
|
*/
|
|
31216
31216
|
convertMultipleLanguages() {
|
|
31217
|
-
|
|
31218
|
-
|
|
31219
|
-
|
|
31220
|
-
var
|
|
31221
|
-
if ((
|
|
31217
|
+
recursiveIterate2(
|
|
31218
|
+
this.model,
|
|
31219
|
+
(item) => {
|
|
31220
|
+
var _a3, _b2;
|
|
31221
|
+
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
31222
31222
|
item.caption = ibiz.i18n.t(
|
|
31223
31223
|
item.capLanguageRes.lanResTag,
|
|
31224
31224
|
item.caption
|
|
@@ -31228,12 +31228,11 @@ var AppMenuController = class extends ControlController {
|
|
|
31228
31228
|
item.tooltipLanguageRes.lanResTag,
|
|
31229
31229
|
item.tooltip
|
|
31230
31230
|
);
|
|
31231
|
-
|
|
31232
|
-
|
|
31233
|
-
|
|
31234
|
-
|
|
31235
|
-
|
|
31236
|
-
convertItemLang(this.model.appMenuItems);
|
|
31231
|
+
},
|
|
31232
|
+
{
|
|
31233
|
+
childrenFields: ["appMenuItems"]
|
|
31234
|
+
}
|
|
31235
|
+
);
|
|
31237
31236
|
}
|
|
31238
31237
|
/**
|
|
31239
31238
|
* @description 获取默认打开菜单项
|
|
@@ -32109,7 +32108,7 @@ var CalendarService = class extends MDControlService2 {
|
|
|
32109
32108
|
};
|
|
32110
32109
|
|
|
32111
32110
|
// src/controller/control/toolbar/toolbar.controller.ts
|
|
32112
|
-
import { recursiveIterate as
|
|
32111
|
+
import { recursiveIterate as recursiveIterate3, RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
32113
32112
|
|
|
32114
32113
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
32115
32114
|
import { RuntimeModelError as RuntimeModelError38 } from "@ibiz-template/core";
|
|
@@ -35292,7 +35291,7 @@ var ToolbarController = class extends ControlController {
|
|
|
35292
35291
|
*/
|
|
35293
35292
|
async initButtonState() {
|
|
35294
35293
|
const asyncTasks = [];
|
|
35295
|
-
|
|
35294
|
+
recursiveIterate3(
|
|
35296
35295
|
this.model,
|
|
35297
35296
|
(item) => {
|
|
35298
35297
|
this.allToolbarItems.push(item);
|
|
@@ -35430,7 +35429,7 @@ var ToolbarController = class extends ControlController {
|
|
|
35430
35429
|
if (_data) {
|
|
35431
35430
|
logicParams.data = [_data];
|
|
35432
35431
|
}
|
|
35433
|
-
|
|
35432
|
+
recursiveIterate3(
|
|
35434
35433
|
this.model,
|
|
35435
35434
|
(item) => {
|
|
35436
35435
|
const itemState = this.state.buttonsState[item.id];
|
|
@@ -35480,7 +35479,7 @@ var ToolbarController = class extends ControlController {
|
|
|
35480
35479
|
}
|
|
35481
35480
|
initControlScheduler(logics = []) {
|
|
35482
35481
|
const actualLogics = [...logics];
|
|
35483
|
-
|
|
35482
|
+
recursiveIterate3(
|
|
35484
35483
|
this.model,
|
|
35485
35484
|
(item) => {
|
|
35486
35485
|
if (item.controlLogics) {
|
|
@@ -35492,17 +35491,16 @@ var ToolbarController = class extends ControlController {
|
|
|
35492
35491
|
super.initControlScheduler(actualLogics);
|
|
35493
35492
|
}
|
|
35494
35493
|
/**
|
|
35495
|
-
* 转换各类多语言
|
|
35496
|
-
*
|
|
35497
|
-
* @date 2023-05-18 02:57:00
|
|
35494
|
+
* @description 转换各类多语言
|
|
35498
35495
|
* @protected
|
|
35496
|
+
* @memberof ToolbarController
|
|
35499
35497
|
*/
|
|
35500
35498
|
convertMultipleLanguages() {
|
|
35501
|
-
|
|
35502
|
-
|
|
35503
|
-
|
|
35504
|
-
var
|
|
35505
|
-
if ((
|
|
35499
|
+
recursiveIterate3(
|
|
35500
|
+
this.model,
|
|
35501
|
+
(item) => {
|
|
35502
|
+
var _a3, _b2;
|
|
35503
|
+
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
35506
35504
|
item.caption = ibiz.i18n.t(
|
|
35507
35505
|
item.capLanguageRes.lanResTag,
|
|
35508
35506
|
item.caption
|
|
@@ -35512,13 +35510,11 @@ var ToolbarController = class extends ControlController {
|
|
|
35512
35510
|
item.tooltipLanguageRes.lanResTag,
|
|
35513
35511
|
item.tooltip
|
|
35514
35512
|
);
|
|
35515
|
-
|
|
35516
|
-
|
|
35517
|
-
|
|
35518
|
-
}
|
|
35519
|
-
|
|
35520
|
-
if ((_a3 = this.model.detoolbarItems) == null ? void 0 : _a3.length)
|
|
35521
|
-
convertItemLang(this.model.detoolbarItems);
|
|
35513
|
+
},
|
|
35514
|
+
{
|
|
35515
|
+
childrenFields: ["detoolbarItems"]
|
|
35516
|
+
}
|
|
35517
|
+
);
|
|
35522
35518
|
}
|
|
35523
35519
|
};
|
|
35524
35520
|
|
|
@@ -40583,10 +40579,10 @@ var ReportPortletController = class extends PortletPartController {
|
|
|
40583
40579
|
};
|
|
40584
40580
|
|
|
40585
40581
|
// src/controller/control/dashboard/portlet/filter-portlet/filter-portlet.controller.ts
|
|
40586
|
-
import { recursiveIterate as
|
|
40582
|
+
import { recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
|
|
40587
40583
|
|
|
40588
40584
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
40589
|
-
import { mergeInLeft, recursiveIterate as
|
|
40585
|
+
import { mergeInLeft, recursiveIterate as recursiveIterate5 } from "@ibiz-template/core";
|
|
40590
40586
|
import { clone as clone23 } from "ramda";
|
|
40591
40587
|
import { isString as isString3 } from "lodash-es";
|
|
40592
40588
|
|
|
@@ -41223,7 +41219,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
41223
41219
|
};
|
|
41224
41220
|
|
|
41225
41221
|
// src/controller/control/search-bar/interface-util.ts
|
|
41226
|
-
import { recursiveIterate as
|
|
41222
|
+
import { recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
|
|
41227
41223
|
import { isNil as isNil17 } from "ramda";
|
|
41228
41224
|
function getOriginFilterNodes() {
|
|
41229
41225
|
return [
|
|
@@ -41240,7 +41236,7 @@ function validateFilterNodes(filterNodes) {
|
|
|
41240
41236
|
const result = { pass: false };
|
|
41241
41237
|
let hasFilter = false;
|
|
41242
41238
|
let hasError = false;
|
|
41243
|
-
|
|
41239
|
+
recursiveIterate4(filterNodes[0], (node) => {
|
|
41244
41240
|
if (hasError) {
|
|
41245
41241
|
return;
|
|
41246
41242
|
}
|
|
@@ -42250,7 +42246,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42250
42246
|
this.state.customCond = "";
|
|
42251
42247
|
this.state.filterMode = "default";
|
|
42252
42248
|
}
|
|
42253
|
-
|
|
42249
|
+
recursiveIterate5(this.state.filterNodes[0], (node) => {
|
|
42254
42250
|
if (node.nodeType === "FIELD") {
|
|
42255
42251
|
if (node.field && node.valueOP && isString3(node.value) && ScriptValueRegex2.test(node.value)) {
|
|
42256
42252
|
node.disabled = true;
|
|
@@ -42450,7 +42446,7 @@ var FilterPortletController = class extends PortletPartController {
|
|
|
42450
42446
|
);
|
|
42451
42447
|
if (modelSearchConds && modelSearchConds.length > 0) {
|
|
42452
42448
|
const tempFieldSearchConds = [];
|
|
42453
|
-
|
|
42449
|
+
recursiveIterate6(
|
|
42454
42450
|
modelSearchConds[0],
|
|
42455
42451
|
(item) => {
|
|
42456
42452
|
if (item.condtype === "DEFIELD") {
|
|
@@ -44637,7 +44633,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
|
44637
44633
|
import {
|
|
44638
44634
|
RuntimeModelError as RuntimeModelError50,
|
|
44639
44635
|
debounceAndAsyncMerge,
|
|
44640
|
-
recursiveIterate as
|
|
44636
|
+
recursiveIterate as recursiveIterate7,
|
|
44641
44637
|
EntityError,
|
|
44642
44638
|
RuntimeError as RuntimeError36
|
|
44643
44639
|
} from "@ibiz-template/core";
|
|
@@ -45136,7 +45132,7 @@ var FormController = class extends ControlController {
|
|
|
45136
45132
|
*/
|
|
45137
45133
|
initControlScheduler(logics = []) {
|
|
45138
45134
|
const actualLogics = [...logics];
|
|
45139
|
-
|
|
45135
|
+
recursiveIterate7(
|
|
45140
45136
|
this.model,
|
|
45141
45137
|
(item) => {
|
|
45142
45138
|
if (item.controlLogics) {
|
|
@@ -45295,10 +45291,10 @@ var FormController = class extends ControlController {
|
|
|
45295
45291
|
};
|
|
45296
45292
|
|
|
45297
45293
|
// src/controller/control/form/search-form/search-form.service.ts
|
|
45298
|
-
import { recursiveIterate as
|
|
45294
|
+
import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
|
|
45299
45295
|
|
|
45300
45296
|
// src/controller/control/form/form/form.service.ts
|
|
45301
|
-
import { recursiveIterate as
|
|
45297
|
+
import { recursiveIterate as recursiveIterate8 } from "@ibiz-template/core";
|
|
45302
45298
|
import { clone as clone27, isNil as isNil19, isNotNil as isNotNil5 } from "ramda";
|
|
45303
45299
|
var FormService = class extends ControlService {
|
|
45304
45300
|
constructor() {
|
|
@@ -45322,7 +45318,7 @@ var FormService = class extends ControlService {
|
|
|
45322
45318
|
*/
|
|
45323
45319
|
setDefault(data, context, params, type) {
|
|
45324
45320
|
const { defaultData } = this.getLoadParams(params);
|
|
45325
|
-
|
|
45321
|
+
recursiveIterate8(
|
|
45326
45322
|
this.model,
|
|
45327
45323
|
(item, parent) => {
|
|
45328
45324
|
if (parent.detailType === "MDCTRL")
|
|
@@ -45381,7 +45377,7 @@ var FormService = class extends ControlService {
|
|
|
45381
45377
|
*/
|
|
45382
45378
|
initUIDataMap() {
|
|
45383
45379
|
super.initUIDataMap();
|
|
45384
|
-
|
|
45380
|
+
recursiveIterate8(
|
|
45385
45381
|
this.model,
|
|
45386
45382
|
(item, parent) => {
|
|
45387
45383
|
if (parent.detailType === "MDCTRL")
|
|
@@ -45464,7 +45460,7 @@ var SearchFormService = class extends FormService {
|
|
|
45464
45460
|
* @date 2022-08-31 18:08:37
|
|
45465
45461
|
*/
|
|
45466
45462
|
initUIDataMap() {
|
|
45467
|
-
|
|
45463
|
+
recursiveIterate9(
|
|
45468
45464
|
this.model,
|
|
45469
45465
|
(item) => {
|
|
45470
45466
|
if (item.detailType === "FORMITEM") {
|
|
@@ -48237,7 +48233,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
48237
48233
|
};
|
|
48238
48234
|
|
|
48239
48235
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts
|
|
48240
|
-
import { ModelError as ModelError21, recursiveIterate as
|
|
48236
|
+
import { ModelError as ModelError21, recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
|
|
48241
48237
|
import { clone as clone29, isNil as isNil20 } from "ramda";
|
|
48242
48238
|
var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
48243
48239
|
constructor() {
|
|
@@ -48355,6 +48351,28 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
48355
48351
|
tempForm[key] = this.form.model[key];
|
|
48356
48352
|
});
|
|
48357
48353
|
this.repeatedForm = clone29(tempForm);
|
|
48354
|
+
this.convertMultipleLanguages();
|
|
48355
|
+
}
|
|
48356
|
+
/**
|
|
48357
|
+
* @description 转化多语言
|
|
48358
|
+
* @protected
|
|
48359
|
+
* @memberof FormMDCtrlRepeaterController
|
|
48360
|
+
*/
|
|
48361
|
+
convertMultipleLanguages() {
|
|
48362
|
+
recursiveIterate10(
|
|
48363
|
+
this.repeatedForm,
|
|
48364
|
+
(item) => {
|
|
48365
|
+
var _a3;
|
|
48366
|
+
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
48367
|
+
item.caption = ibiz.i18n.t(
|
|
48368
|
+
item.capLanguageRes.lanResTag,
|
|
48369
|
+
item.caption
|
|
48370
|
+
);
|
|
48371
|
+
},
|
|
48372
|
+
{
|
|
48373
|
+
childrenFields: ["deformPages", "deformTabPages", "deformDetails"]
|
|
48374
|
+
}
|
|
48375
|
+
);
|
|
48358
48376
|
}
|
|
48359
48377
|
/**
|
|
48360
48378
|
* @description 设置重复器控制器
|
|
@@ -48509,7 +48527,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
48509
48527
|
* @memberof FormMDCtrlRepeaterController
|
|
48510
48528
|
*/
|
|
48511
48529
|
setDefaultValue(data, type) {
|
|
48512
|
-
|
|
48530
|
+
recursiveIterate10(
|
|
48513
48531
|
this.model,
|
|
48514
48532
|
(item, parent) => {
|
|
48515
48533
|
if (parent.detailType === "MDCTRL" && parent.id !== this.model.id)
|
|
@@ -49000,7 +49018,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
|
|
|
49000
49018
|
|
|
49001
49019
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
49002
49020
|
import {
|
|
49003
|
-
recursiveIterate as
|
|
49021
|
+
recursiveIterate as recursiveIterate11,
|
|
49004
49022
|
RuntimeModelError as RuntimeModelError53
|
|
49005
49023
|
} from "@ibiz-template/core";
|
|
49006
49024
|
var EditFormService = class extends FormService {
|
|
@@ -49234,7 +49252,7 @@ var EditFormService = class extends FormService {
|
|
|
49234
49252
|
// 向导预置
|
|
49235
49253
|
"srfnextform"
|
|
49236
49254
|
];
|
|
49237
|
-
|
|
49255
|
+
recursiveIterate11(
|
|
49238
49256
|
this.model,
|
|
49239
49257
|
(item, parent) => {
|
|
49240
49258
|
if (parent.detailType === "MDCTRL") {
|
|
@@ -50380,7 +50398,7 @@ import {
|
|
|
50380
50398
|
EntityError as EntityError2,
|
|
50381
50399
|
awaitTimeout as awaitTimeout2,
|
|
50382
50400
|
RuntimeError as RuntimeError40,
|
|
50383
|
-
recursiveIterate as
|
|
50401
|
+
recursiveIterate as recursiveIterate12,
|
|
50384
50402
|
RuntimeModelError as RuntimeModelError55,
|
|
50385
50403
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
50386
50404
|
debounceAndAsyncMerge as debounceAndAsyncMerge2
|
|
@@ -51147,7 +51165,7 @@ var GridController = class extends MDControlController {
|
|
|
51147
51165
|
*/
|
|
51148
51166
|
async initUIActions() {
|
|
51149
51167
|
const asyncTasks = [];
|
|
51150
|
-
|
|
51168
|
+
recursiveIterate12(
|
|
51151
51169
|
this.model,
|
|
51152
51170
|
(column) => {
|
|
51153
51171
|
if (column.deuiactionGroup) {
|
|
@@ -51742,7 +51760,7 @@ var GridController = class extends MDControlController {
|
|
|
51742
51760
|
*/
|
|
51743
51761
|
initControlScheduler(logics = []) {
|
|
51744
51762
|
const actualLogics = [...logics];
|
|
51745
|
-
|
|
51763
|
+
recursiveIterate12(
|
|
51746
51764
|
this.model,
|
|
51747
51765
|
(item) => {
|
|
51748
51766
|
if (item.controlLogics) {
|
|
@@ -51763,7 +51781,7 @@ var GridController = class extends MDControlController {
|
|
|
51763
51781
|
initColumnStates() {
|
|
51764
51782
|
this.state.columnStates = [];
|
|
51765
51783
|
if (this.state.columnStates.length === 0) {
|
|
51766
|
-
|
|
51784
|
+
recursiveIterate12(
|
|
51767
51785
|
this.model,
|
|
51768
51786
|
(column) => {
|
|
51769
51787
|
if (column.columnType !== "GROUPGRIDCOLUMN" && !(column.hiddenDataItem || column.hideMode === 2)) {
|
|
@@ -52406,23 +52424,20 @@ var GridController = class extends MDControlController {
|
|
|
52406
52424
|
* @protected
|
|
52407
52425
|
*/
|
|
52408
52426
|
convertMultipleLanguages() {
|
|
52409
|
-
|
|
52410
|
-
|
|
52427
|
+
recursiveIterate12(
|
|
52428
|
+
this.model,
|
|
52429
|
+
(item) => {
|
|
52411
52430
|
var _a3;
|
|
52412
|
-
if ((_a3 =
|
|
52413
|
-
|
|
52414
|
-
|
|
52415
|
-
|
|
52431
|
+
if ((_a3 = item.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
52432
|
+
item.caption = ibiz.i18n.t(
|
|
52433
|
+
item.capLanguageRes.lanResTag,
|
|
52434
|
+
item.caption
|
|
52416
52435
|
);
|
|
52417
|
-
|
|
52418
|
-
|
|
52419
|
-
|
|
52420
|
-
|
|
52421
|
-
|
|
52422
|
-
};
|
|
52423
|
-
if (this.model.degridColumns && this.model.degridColumns.length > 0) {
|
|
52424
|
-
convertColumnCaption(this.model.degridColumns);
|
|
52425
|
-
}
|
|
52436
|
+
},
|
|
52437
|
+
{
|
|
52438
|
+
childrenFields: ["degridColumns"]
|
|
52439
|
+
}
|
|
52440
|
+
);
|
|
52426
52441
|
}
|
|
52427
52442
|
/**
|
|
52428
52443
|
* 控制列显示
|
|
@@ -54275,7 +54290,7 @@ var ListController = class extends MDControlController {
|
|
|
54275
54290
|
import {
|
|
54276
54291
|
RuntimeError as RuntimeError42,
|
|
54277
54292
|
recursiveExecute,
|
|
54278
|
-
recursiveIterate as
|
|
54293
|
+
recursiveIterate as recursiveIterate13
|
|
54279
54294
|
} from "@ibiz-template/core";
|
|
54280
54295
|
import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
|
|
54281
54296
|
|
|
@@ -55846,7 +55861,7 @@ var PanelController = class extends ControlController {
|
|
|
55846
55861
|
}
|
|
55847
55862
|
initControlScheduler(logics = []) {
|
|
55848
55863
|
const actualLogics = [...logics];
|
|
55849
|
-
|
|
55864
|
+
recursiveIterate13(
|
|
55850
55865
|
this.model,
|
|
55851
55866
|
(item) => {
|
|
55852
55867
|
if (item.controlLogics) {
|
|
@@ -56863,7 +56878,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
56863
56878
|
// src/controller/control/tree/tree.controller.ts
|
|
56864
56879
|
import {
|
|
56865
56880
|
RuntimeError as RuntimeError43,
|
|
56866
|
-
recursiveIterate as
|
|
56881
|
+
recursiveIterate as recursiveIterate14,
|
|
56867
56882
|
RuntimeModelError as RuntimeModelError58
|
|
56868
56883
|
} from "@ibiz-template/core";
|
|
56869
56884
|
import { isNil as isNil27 } from "ramda";
|
|
@@ -57718,7 +57733,7 @@ var TreeController = class extends MDControlController {
|
|
|
57718
57733
|
this.model.detreeNodes.forEach((node) => {
|
|
57719
57734
|
var _a3, _b2;
|
|
57720
57735
|
if ((_b2 = (_a3 = node.decontextMenu) == null ? void 0 : _a3.detoolbarItems) == null ? void 0 : _b2.length) {
|
|
57721
|
-
|
|
57736
|
+
recursiveIterate14(
|
|
57722
57737
|
node.decontextMenu,
|
|
57723
57738
|
(item) => {
|
|
57724
57739
|
const groupItem = item;
|
|
@@ -57906,7 +57921,7 @@ var TreeController = class extends MDControlController {
|
|
|
57906
57921
|
if ((_a4 = contextMenu == null ? void 0 : contextMenu.detoolbarItems) == null ? void 0 : _a4.length) {
|
|
57907
57922
|
let itemNum = 0;
|
|
57908
57923
|
const items = [];
|
|
57909
|
-
|
|
57924
|
+
recursiveIterate14(
|
|
57910
57925
|
contextMenu,
|
|
57911
57926
|
(item) => {
|
|
57912
57927
|
if (item.itemType === "DEUIACTION") {
|
|
@@ -58030,7 +58045,7 @@ var TreeController = class extends MDControlController {
|
|
|
58030
58045
|
*/
|
|
58031
58046
|
async afterLoadNodes(nodes) {
|
|
58032
58047
|
this.state.items = [];
|
|
58033
|
-
|
|
58048
|
+
recursiveIterate14(
|
|
58034
58049
|
{ _children: this.state.rootNodes },
|
|
58035
58050
|
(node) => {
|
|
58036
58051
|
this.state.items.push(node);
|
|
@@ -58266,7 +58281,7 @@ var TreeController = class extends MDControlController {
|
|
|
58266
58281
|
*/
|
|
58267
58282
|
calcExpandedKeys(nodes) {
|
|
58268
58283
|
let expandedKeys = [...this.state.expandedKeys];
|
|
58269
|
-
|
|
58284
|
+
recursiveIterate14(
|
|
58270
58285
|
{ _children: nodes },
|
|
58271
58286
|
(node) => {
|
|
58272
58287
|
var _a3;
|
|
@@ -58357,7 +58372,7 @@ var TreeController = class extends MDControlController {
|
|
|
58357
58372
|
*/
|
|
58358
58373
|
validateDrop(draggingNode, dropNode) {
|
|
58359
58374
|
let state = true;
|
|
58360
|
-
|
|
58375
|
+
recursiveIterate14(
|
|
58361
58376
|
{ _children: [draggingNode] },
|
|
58362
58377
|
(node) => {
|
|
58363
58378
|
if (node._id === dropNode._id) {
|
|
@@ -58877,6 +58892,24 @@ var TreeController = class extends MDControlController {
|
|
|
58877
58892
|
updateUI() {
|
|
58878
58893
|
this._evt.emit("onUpdateUI", void 0);
|
|
58879
58894
|
}
|
|
58895
|
+
/**
|
|
58896
|
+
* @description 转换各类多语言
|
|
58897
|
+
* @protected
|
|
58898
|
+
* @memberof TreeController
|
|
58899
|
+
*/
|
|
58900
|
+
convertMultipleLanguages() {
|
|
58901
|
+
const { detreeNodes = [] } = this.model;
|
|
58902
|
+
detreeNodes.forEach((item) => {
|
|
58903
|
+
var _a3;
|
|
58904
|
+
if (item.treeNodeType === "STATIC" && ((_a3 = item.nameLanguageRes) == null ? void 0 : _a3.lanResTag)) {
|
|
58905
|
+
item.name = ibiz.i18n.t(item.nameLanguageRes.lanResTag, item.name);
|
|
58906
|
+
item.text = ibiz.i18n.t(
|
|
58907
|
+
item.nameLanguageRes.lanResTag,
|
|
58908
|
+
item.text
|
|
58909
|
+
);
|
|
58910
|
+
}
|
|
58911
|
+
});
|
|
58912
|
+
}
|
|
58880
58913
|
};
|
|
58881
58914
|
|
|
58882
58915
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
@@ -60704,7 +60737,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60704
60737
|
import {
|
|
60705
60738
|
RuntimeError as RuntimeError47,
|
|
60706
60739
|
awaitTimeout as awaitTimeout3,
|
|
60707
|
-
recursiveIterate as
|
|
60740
|
+
recursiveIterate as recursiveIterate15,
|
|
60708
60741
|
RuntimeModelError as RuntimeModelError61
|
|
60709
60742
|
} from "@ibiz-template/core";
|
|
60710
60743
|
import { clone as clone40 } from "ramda";
|
|
@@ -61056,7 +61089,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61056
61089
|
}
|
|
61057
61090
|
async afterLoadNodes(nodes) {
|
|
61058
61091
|
await super.afterLoadNodes(nodes);
|
|
61059
|
-
|
|
61092
|
+
recursiveIterate15(
|
|
61060
61093
|
{ _children: nodes },
|
|
61061
61094
|
(node) => {
|
|
61062
61095
|
this.state.rows[node._uuid] = new TreeGridExRowState(node, this);
|
|
@@ -61072,20 +61105,15 @@ var TreeGridExController = class extends TreeController {
|
|
|
61072
61105
|
* @protected
|
|
61073
61106
|
*/
|
|
61074
61107
|
convertMultipleLanguages() {
|
|
61075
|
-
const
|
|
61076
|
-
|
|
61077
|
-
|
|
61078
|
-
|
|
61079
|
-
|
|
61080
|
-
|
|
61081
|
-
|
|
61082
|
-
|
|
61083
|
-
|
|
61084
|
-
});
|
|
61085
|
-
};
|
|
61086
|
-
if (this.model.detreeColumns && this.model.detreeColumns.length > 0) {
|
|
61087
|
-
convertColumnCaption(this.model.detreeColumns);
|
|
61088
|
-
}
|
|
61108
|
+
const { detreeColumns } = this.model;
|
|
61109
|
+
detreeColumns == null ? void 0 : detreeColumns.forEach((column) => {
|
|
61110
|
+
var _a3;
|
|
61111
|
+
if ((_a3 = column.capLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
61112
|
+
column.caption = ibiz.i18n.t(
|
|
61113
|
+
column.capLanguageRes.lanResTag,
|
|
61114
|
+
column.caption
|
|
61115
|
+
);
|
|
61116
|
+
});
|
|
61089
61117
|
}
|
|
61090
61118
|
async save(nodeData) {
|
|
61091
61119
|
if (this.state.isSimple) {
|
|
@@ -65847,7 +65875,7 @@ var ReportPanelController = class extends ControlController {
|
|
|
65847
65875
|
import {
|
|
65848
65876
|
awaitTimeout as awaitTimeout4,
|
|
65849
65877
|
RuntimeError as RuntimeError50,
|
|
65850
|
-
recursiveIterate as
|
|
65878
|
+
recursiveIterate as recursiveIterate16
|
|
65851
65879
|
} from "@ibiz-template/core";
|
|
65852
65880
|
|
|
65853
65881
|
// src/controller/control/gantt/gantt.service.ts
|
|
@@ -66893,7 +66921,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66893
66921
|
break;
|
|
66894
66922
|
case "NODEDATA":
|
|
66895
66923
|
default:
|
|
66896
|
-
|
|
66924
|
+
recursiveIterate16(
|
|
66897
66925
|
{ _children: this.state.rootNodes },
|
|
66898
66926
|
(node) => {
|
|
66899
66927
|
var _a3, _b2;
|
|
@@ -74028,6 +74056,14 @@ var MqttService = class {
|
|
|
74028
74056
|
this.mqttTopic = mqttTopic;
|
|
74029
74057
|
this.token = token;
|
|
74030
74058
|
this.appId = appId2;
|
|
74059
|
+
/**
|
|
74060
|
+
* 设定最大重连次数
|
|
74061
|
+
*/
|
|
74062
|
+
this.MAX_RECONNECT_TIMES = 3;
|
|
74063
|
+
/**
|
|
74064
|
+
* 重连次数
|
|
74065
|
+
*/
|
|
74066
|
+
this.reconnectCount = 0;
|
|
74031
74067
|
/**
|
|
74032
74068
|
* 接受消息通知
|
|
74033
74069
|
*
|
|
@@ -74107,6 +74143,7 @@ var MqttService = class {
|
|
|
74107
74143
|
* @return {*} {Promise<void>}
|
|
74108
74144
|
*/
|
|
74109
74145
|
async connect() {
|
|
74146
|
+
this.reconnectCount = 0;
|
|
74110
74147
|
const module = await import("mqtt/dist/mqtt.min");
|
|
74111
74148
|
const mqtt = module.default ? module.default : module;
|
|
74112
74149
|
const { location: location2 } = window;
|
|
@@ -74128,7 +74165,15 @@ var MqttService = class {
|
|
|
74128
74165
|
this.evt.emit("message", topic, msg);
|
|
74129
74166
|
});
|
|
74130
74167
|
this.client.on("reconnect", () => {
|
|
74168
|
+
var _a3;
|
|
74131
74169
|
ibiz.log.warn("mqtt reconnect");
|
|
74170
|
+
this.reconnectCount += 1;
|
|
74171
|
+
if (this.reconnectCount >= this.MAX_RECONNECT_TIMES) {
|
|
74172
|
+
(_a3 = this.client) == null ? void 0 : _a3.end(true);
|
|
74173
|
+
ibiz.log.warn(
|
|
74174
|
+
"the maximum number of reconnection attempts has been reached (".concat(this.MAX_RECONNECT_TIMES, "), and reconnection will be stopped.")
|
|
74175
|
+
);
|
|
74176
|
+
}
|
|
74132
74177
|
});
|
|
74133
74178
|
this.client.on("close", () => {
|
|
74134
74179
|
ibiz.log.warn("mqtt close");
|
|
@@ -74164,6 +74209,14 @@ var CollaborateService = class {
|
|
|
74164
74209
|
this.mqttTopic = mqttTopic;
|
|
74165
74210
|
this.token = token;
|
|
74166
74211
|
this.appId = appId2;
|
|
74212
|
+
/**
|
|
74213
|
+
* 设定最大重连次数
|
|
74214
|
+
*/
|
|
74215
|
+
this.MAX_RECONNECT_TIMES = 3;
|
|
74216
|
+
/**
|
|
74217
|
+
* 重连次数
|
|
74218
|
+
*/
|
|
74219
|
+
this.reconnectCount = 0;
|
|
74167
74220
|
/**
|
|
74168
74221
|
* 发送消息
|
|
74169
74222
|
*
|
|
@@ -74220,6 +74273,7 @@ var CollaborateService = class {
|
|
|
74220
74273
|
* @return {*} {Promise<void>}
|
|
74221
74274
|
*/
|
|
74222
74275
|
async connect() {
|
|
74276
|
+
this.reconnectCount = 0;
|
|
74223
74277
|
const module = await import("mqtt/dist/mqtt.min");
|
|
74224
74278
|
const mqtt = module.default ? module.default : module;
|
|
74225
74279
|
const { location: location2 } = window;
|
|
@@ -74249,7 +74303,15 @@ var CollaborateService = class {
|
|
|
74249
74303
|
ibiz.log.debug("collaborate message");
|
|
74250
74304
|
});
|
|
74251
74305
|
this.client.on("reconnect", () => {
|
|
74306
|
+
var _a3;
|
|
74252
74307
|
this.readyState = 0;
|
|
74308
|
+
this.reconnectCount += 1;
|
|
74309
|
+
if (this.reconnectCount >= this.MAX_RECONNECT_TIMES) {
|
|
74310
|
+
(_a3 = this.client) == null ? void 0 : _a3.end(true);
|
|
74311
|
+
ibiz.log.warn(
|
|
74312
|
+
"the maximum number of reconnection attempts has been reached (".concat(this.MAX_RECONNECT_TIMES, "), and reconnection will be stopped.")
|
|
74313
|
+
);
|
|
74314
|
+
}
|
|
74253
74315
|
this.evt.emit("reconnect");
|
|
74254
74316
|
});
|
|
74255
74317
|
this.client.on("close", () => {
|