@ibiz-template/runtime 0.7.41-alpha.94 → 0.7.41-alpha.96
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 +347 -215
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/calendar/calendar.controller.d.ts +6 -0
- package/out/controller/control/calendar/calendar.controller.d.ts.map +1 -1
- package/out/controller/control/calendar/calendar.controller.js +13 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts +6 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +16 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +4 -8
- package/out/controller/control/gantt/gantt.controller.d.ts +31 -39
- package/out/controller/control/gantt/gantt.controller.d.ts.map +1 -1
- package/out/controller/control/gantt/gantt.controller.js +31 -39
- package/out/controller/control/kanban/kanban.controller.d.ts +5 -0
- package/out/controller/control/kanban/kanban.controller.d.ts.map +1 -1
- package/out/controller/control/kanban/kanban.controller.js +6 -1
- package/out/controller/control/map/map.controller.d.ts.map +1 -1
- package/out/controller/control/map/map.controller.js +7 -2
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts +2 -2
- package/out/controller/control/search-bar/search-bar-filter.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.d.ts +29 -40
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +28 -39
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts +2 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-column/tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/controller/control/tree-grid-ex/tree-grid-ex.controller.d.ts +84 -63
- 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 +86 -80
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts +11 -3
- package/out/interface/api/controller/control/i-api-drbar.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-drtab.controller.d.ts +2 -2
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts +19 -5
- package/out/interface/api/controller/control/i-api-gantt.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts +0 -7
- package/out/interface/api/controller/control/i-api-kanban.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-map.controller.d.ts +8 -2
- package/out/interface/api/controller/control/i-api-map.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts +52 -3
- package/out/interface/api/controller/control/i-api-search-bar.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts +58 -2
- package/out/interface/api/controller/control/i-api-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts +39 -1
- package/out/interface/api/controller/control/i-api-wizard-panel.controller.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.d.ts +2 -1
- package/out/interface/api/controller/control/index.d.ts.map +1 -1
- package/out/interface/api/controller/control/index.js +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts +47 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/i-api-grid-ex-column.controller.js +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts +2 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.d.ts.map +1 -0
- package/out/interface/api/controller/control/tree-grid-ex-column/index.js +1 -0
- package/out/interface/api/state/control/i-api-drbar.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-drtab.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-gantt.state.d.ts +6 -0
- package/out/interface/api/state/control/i-api-gantt.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-kanban.state.d.ts +49 -0
- package/out/interface/api/state/control/i-api-kanban.state.d.ts.map +1 -1
- package/out/interface/api/state/control/i-api-map.state.d.ts +1 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts +8 -1
- package/out/interface/api/state/control/i-api-tree-grid-ex.state.d.ts.map +1 -1
- package/out/interface/api/state/control/index.d.ts +1 -1
- package/out/interface/api/state/control/index.d.ts.map +1 -1
- package/out/interface/api/state/control/search-bar/i-api-search-bar.state.d.ts +2 -2
- package/out/interface/api/util/i-api-app-util.d.ts +7 -0
- package/out/interface/api/util/i-api-app-util.d.ts.map +1 -1
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts +1 -3
- package/out/interface/controller/controller/common/i-drag-change-info.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts +8 -0
- package/out/interface/controller/controller/control/i-gantt.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-kanban.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts +0 -14
- package/out/interface/controller/controller/control/i-tree-grid-ex.controller.d.ts.map +1 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts +2 -1
- package/out/interface/controller/controller/control/tree-grid-ex-column/i-tree-grid-ex-column.controller.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts +1 -1
- package/out/interface/controller/state/control/i-gantt.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-kanban.state.d.ts +2 -38
- package/out/interface/controller/state/control/i-kanban.state.d.ts.map +1 -1
- package/out/interface/controller/state/control/i-tree-grid-ex.state.d.ts.map +1 -1
- package/out/locale/en/index.d.ts +17 -0
- package/out/locale/en/index.d.ts.map +1 -1
- package/out/locale/en/index.js +17 -0
- package/out/locale/zh-CN/index.d.ts +17 -0
- package/out/locale/zh-CN/index.d.ts.map +1 -1
- package/out/locale/zh-CN/index.js +17 -0
- package/out/model/utils/util.d.ts +2 -4
- package/out/model/utils/util.d.ts.map +1 -1
- package/out/model/utils/util.js +11 -1
- package/out/utils/jsonschema-util/jsonschema-util.d.ts +4 -6
- package/out/utils/jsonschema-util/jsonschema-util.d.ts.map +1 -1
- package/out/utils/jsonschema-util/jsonschema-util.js +71 -25
- package/package.json +2 -2
package/dist/index.esm.js
CHANGED
|
@@ -20796,7 +20796,13 @@ function getPFPlugin(id, appId2) {
|
|
|
20796
20796
|
function getControlPanel(control) {
|
|
20797
20797
|
let layoutPanel;
|
|
20798
20798
|
if (control.controlRenders) {
|
|
20799
|
-
|
|
20799
|
+
let { controlRenders } = control;
|
|
20800
|
+
if (controlRenders && controlRenders.length > 0 && control.controlType === "DASHBOARD") {
|
|
20801
|
+
controlRenders = controlRenders.filter(
|
|
20802
|
+
(item) => !(item.id.endsWith("_header") || item.id.endsWith("_header_caption") || item.id.endsWith("_header_bg") || item.id.endsWith("_header_action"))
|
|
20803
|
+
);
|
|
20804
|
+
}
|
|
20805
|
+
const panelRender = controlRenders.find(
|
|
20800
20806
|
(item) => item.renderType === "LAYOUTPANEL" && !!item.layoutPanel && !Object.values(PredefinedControlRender).includes(
|
|
20801
20807
|
item.id
|
|
20802
20808
|
)
|
|
@@ -36176,6 +36182,19 @@ var CalendarController = class extends MDControlController {
|
|
|
36176
36182
|
async goToLastPage() {
|
|
36177
36183
|
return [];
|
|
36178
36184
|
}
|
|
36185
|
+
/**
|
|
36186
|
+
* @description 转换各类多语言
|
|
36187
|
+
* @protected
|
|
36188
|
+
* @memberof CalendarController
|
|
36189
|
+
*/
|
|
36190
|
+
convertMultipleLanguages() {
|
|
36191
|
+
const { sysCalendarItems = [] } = this.model;
|
|
36192
|
+
sysCalendarItems.forEach((item) => {
|
|
36193
|
+
var _a3;
|
|
36194
|
+
if ((_a3 = item.nameLanguageRes) == null ? void 0 : _a3.lanResTag)
|
|
36195
|
+
item.name = ibiz.i18n.t(item.nameLanguageRes.lanResTag, item.name);
|
|
36196
|
+
});
|
|
36197
|
+
}
|
|
36179
36198
|
};
|
|
36180
36199
|
|
|
36181
36200
|
// src/controller/control/chart/chart.controller.ts
|
|
@@ -39088,6 +39107,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
39088
39107
|
|
|
39089
39108
|
// src/controller/control/dashboard/dashboard.controller.ts
|
|
39090
39109
|
import { clone as clone20 } from "ramda";
|
|
39110
|
+
import { recursiveIterate as recursiveIterate4 } from "@ibiz-template/core";
|
|
39091
39111
|
|
|
39092
39112
|
// src/controller/control/dashboard/dashboard.util.ts
|
|
39093
39113
|
import { clone as clone19 } from "ramda";
|
|
@@ -39769,6 +39789,25 @@ var DashboardController = class extends ControlController {
|
|
|
39769
39789
|
getPortlet(type, id) {
|
|
39770
39790
|
return this.portlets[id];
|
|
39771
39791
|
}
|
|
39792
|
+
/**
|
|
39793
|
+
* @description 转换各类多语言
|
|
39794
|
+
* @protected
|
|
39795
|
+
* @memberof IDashboardController
|
|
39796
|
+
*/
|
|
39797
|
+
convertMultipleLanguages() {
|
|
39798
|
+
recursiveIterate4(
|
|
39799
|
+
this.model,
|
|
39800
|
+
(item) => {
|
|
39801
|
+
var _a3;
|
|
39802
|
+
if ((_a3 = item.titleLanguageRes) == null ? void 0 : _a3.lanResTag) {
|
|
39803
|
+
item.title = ibiz.i18n.t(item.titleLanguageRes.lanResTag, item.title);
|
|
39804
|
+
}
|
|
39805
|
+
},
|
|
39806
|
+
{
|
|
39807
|
+
childrenFields: ["controls"]
|
|
39808
|
+
}
|
|
39809
|
+
);
|
|
39810
|
+
}
|
|
39772
39811
|
};
|
|
39773
39812
|
|
|
39774
39813
|
// src/controller/control/dashboard/custom-dashboard.controller.ts
|
|
@@ -40212,7 +40251,7 @@ var PortletPartController = class {
|
|
|
40212
40251
|
*/
|
|
40213
40252
|
async onInit() {
|
|
40214
40253
|
this.onDataChange = this.onDataChange.bind(this);
|
|
40215
|
-
const { layoutPos, sysCss, title
|
|
40254
|
+
const { layoutPos, sysCss, title } = this.model;
|
|
40216
40255
|
if (layoutPos) {
|
|
40217
40256
|
const { width, height } = calcLayoutHeightWidth(this.model);
|
|
40218
40257
|
this.state.layout.width = "".concat(width);
|
|
@@ -40221,7 +40260,7 @@ var PortletPartController = class {
|
|
|
40221
40260
|
if (sysCss == null ? void 0 : sysCss.cssName) {
|
|
40222
40261
|
this.state.class.container.push(sysCss.cssName);
|
|
40223
40262
|
}
|
|
40224
|
-
this.state.title =
|
|
40263
|
+
this.state.title = title;
|
|
40225
40264
|
this.config = { srftitle: this.state.title };
|
|
40226
40265
|
Object.assign(this.params, this.config);
|
|
40227
40266
|
await this.initUIActions();
|
|
@@ -40296,9 +40335,9 @@ var PortletPartController = class {
|
|
|
40296
40335
|
* @memberof PortletPartController
|
|
40297
40336
|
*/
|
|
40298
40337
|
resetConfig() {
|
|
40299
|
-
const { title
|
|
40338
|
+
const { title } = this.model;
|
|
40300
40339
|
this.params = new IBizParams2({}, this.dashboard.params);
|
|
40301
|
-
this.state.title =
|
|
40340
|
+
this.state.title = title;
|
|
40302
40341
|
this.config = { srftitle: this.state.title };
|
|
40303
40342
|
Object.assign(this.params, this.config);
|
|
40304
40343
|
}
|
|
@@ -40638,10 +40677,10 @@ var ReportPortletController = class extends PortletPartController {
|
|
|
40638
40677
|
};
|
|
40639
40678
|
|
|
40640
40679
|
// src/controller/control/dashboard/portlet/filter-portlet/filter-portlet.controller.ts
|
|
40641
|
-
import { recursiveIterate as
|
|
40680
|
+
import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
|
|
40642
40681
|
|
|
40643
40682
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
40644
|
-
import { mergeInLeft, recursiveIterate as
|
|
40683
|
+
import { mergeInLeft, recursiveIterate as recursiveIterate6 } from "@ibiz-template/core";
|
|
40645
40684
|
import { clone as clone23 } from "ramda";
|
|
40646
40685
|
import { isString as isString3 } from "lodash-es";
|
|
40647
40686
|
|
|
@@ -41278,7 +41317,7 @@ var SearchBarFilterItemsController = class extends SearchBarFilterController {
|
|
|
41278
41317
|
};
|
|
41279
41318
|
|
|
41280
41319
|
// src/controller/control/search-bar/interface-util.ts
|
|
41281
|
-
import { recursiveIterate as
|
|
41320
|
+
import { recursiveIterate as recursiveIterate5 } from "@ibiz-template/core";
|
|
41282
41321
|
import { isNil as isNil17 } from "ramda";
|
|
41283
41322
|
function getOriginFilterNodes() {
|
|
41284
41323
|
return [
|
|
@@ -41295,7 +41334,7 @@ function validateFilterNodes(filterNodes) {
|
|
|
41295
41334
|
const result = { pass: false };
|
|
41296
41335
|
let hasFilter = false;
|
|
41297
41336
|
let hasError = false;
|
|
41298
|
-
|
|
41337
|
+
recursiveIterate5(filterNodes[0], (node) => {
|
|
41299
41338
|
if (hasError) {
|
|
41300
41339
|
return;
|
|
41301
41340
|
}
|
|
@@ -41816,31 +41855,26 @@ var SearchBarController = class extends ControlController {
|
|
|
41816
41855
|
}
|
|
41817
41856
|
}
|
|
41818
41857
|
/**
|
|
41819
|
-
*
|
|
41858
|
+
* @description 处理快速搜索值输入
|
|
41820
41859
|
* @param {string} val
|
|
41821
|
-
* @
|
|
41822
|
-
* @author: zhujiamin
|
|
41823
|
-
* @Date: 2023-06-01 18:08:07
|
|
41860
|
+
* @memberof SearchBarController
|
|
41824
41861
|
*/
|
|
41825
41862
|
handleInput(val) {
|
|
41826
41863
|
this.state.query = val;
|
|
41827
41864
|
}
|
|
41828
41865
|
/**
|
|
41829
|
-
*
|
|
41830
|
-
* @
|
|
41831
|
-
* @author: zhujiamin
|
|
41832
|
-
* @Date: 2023-06-01 18:08:18
|
|
41866
|
+
* @description 搜索
|
|
41867
|
+
* @memberof SearchBarController
|
|
41833
41868
|
*/
|
|
41834
41869
|
onSearch() {
|
|
41835
41870
|
this.evt.emit("onSearch", void 0);
|
|
41836
41871
|
}
|
|
41837
41872
|
/**
|
|
41838
|
-
*
|
|
41839
|
-
* @author lxm
|
|
41840
|
-
* @date 2024-02-04 11:29:31
|
|
41873
|
+
* @description 查找过滤项控制器
|
|
41841
41874
|
* @param {(string | null)} fieldName
|
|
41842
41875
|
* @param {(string | null)} valueOP
|
|
41843
|
-
* @
|
|
41876
|
+
* @returns {*} {(SearchBarFilterController | undefined)}
|
|
41877
|
+
* @memberof SearchBarController
|
|
41844
41878
|
*/
|
|
41845
41879
|
findFilterController(fieldName, valueOP) {
|
|
41846
41880
|
return this.filterControllers.find((item) => {
|
|
@@ -41851,10 +41885,9 @@ var SearchBarController = class extends ControlController {
|
|
|
41851
41885
|
});
|
|
41852
41886
|
}
|
|
41853
41887
|
/**
|
|
41854
|
-
*
|
|
41855
|
-
* @
|
|
41856
|
-
* @
|
|
41857
|
-
* @return {*} {IParams}
|
|
41888
|
+
* @description 获取搜索栏当前的过滤条件参数
|
|
41889
|
+
* @returns {*} {IParams}
|
|
41890
|
+
* @memberof SearchBarController
|
|
41858
41891
|
*/
|
|
41859
41892
|
getFilterParams() {
|
|
41860
41893
|
var _a3, _b2, _c;
|
|
@@ -41888,9 +41921,8 @@ var SearchBarController = class extends ControlController {
|
|
|
41888
41921
|
return params;
|
|
41889
41922
|
}
|
|
41890
41923
|
/**
|
|
41891
|
-
*
|
|
41892
|
-
* @
|
|
41893
|
-
* @date 2023-10-16 03:52:44
|
|
41924
|
+
* @description 重置
|
|
41925
|
+
* @memberof SearchBarController
|
|
41894
41926
|
*/
|
|
41895
41927
|
resetFilter() {
|
|
41896
41928
|
this.state.filterNodes = getOriginFilterNodes();
|
|
@@ -42159,10 +42191,9 @@ var SearchBarController = class extends ControlController {
|
|
|
42159
42191
|
}
|
|
42160
42192
|
}
|
|
42161
42193
|
/**
|
|
42162
|
-
*
|
|
42163
|
-
* @
|
|
42164
|
-
* @
|
|
42165
|
-
* @Date: 2024-01-24 11:12:43
|
|
42194
|
+
* @description 设置默认选中
|
|
42195
|
+
* @returns {*} {void}
|
|
42196
|
+
* @memberof SearchBarController
|
|
42166
42197
|
*/
|
|
42167
42198
|
setDefaultSelect() {
|
|
42168
42199
|
var _a3;
|
|
@@ -42191,10 +42222,9 @@ var SearchBarController = class extends ControlController {
|
|
|
42191
42222
|
}
|
|
42192
42223
|
}
|
|
42193
42224
|
/**
|
|
42194
|
-
*
|
|
42195
|
-
* @
|
|
42196
|
-
* @
|
|
42197
|
-
* @Date: 2023-12-19 16:17:15
|
|
42225
|
+
* @description 处理后台分组保存
|
|
42226
|
+
* @returns {*} {Promise<void>}
|
|
42227
|
+
* @memberof SearchBarController
|
|
42198
42228
|
*/
|
|
42199
42229
|
async handleSave() {
|
|
42200
42230
|
if (this.grid && this.state.selectedSearchGroupItem) {
|
|
@@ -42258,10 +42288,10 @@ var SearchBarController = class extends ControlController {
|
|
|
42258
42288
|
}
|
|
42259
42289
|
}
|
|
42260
42290
|
/**
|
|
42261
|
-
* 处理点击后台分组
|
|
42262
|
-
* @
|
|
42263
|
-
* @
|
|
42264
|
-
* @
|
|
42291
|
+
* @description 处理点击后台分组
|
|
42292
|
+
* @param {IBackendSearchBarGroup} groupItem
|
|
42293
|
+
* @returns {*} {Promise<void>}
|
|
42294
|
+
* @memberof SearchBarController
|
|
42265
42295
|
*/
|
|
42266
42296
|
async handleGroupClick(groupItem) {
|
|
42267
42297
|
var _a3, _b2;
|
|
@@ -42305,7 +42335,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42305
42335
|
this.state.customCond = "";
|
|
42306
42336
|
this.state.filterMode = "default";
|
|
42307
42337
|
}
|
|
42308
|
-
|
|
42338
|
+
recursiveIterate6(this.state.filterNodes[0], (node) => {
|
|
42309
42339
|
if (node.nodeType === "FIELD") {
|
|
42310
42340
|
if (node.field && node.valueOP && isString3(node.value) && ScriptValueRegex2.test(node.value)) {
|
|
42311
42341
|
node.disabled = true;
|
|
@@ -42321,10 +42351,9 @@ var SearchBarController = class extends ControlController {
|
|
|
42321
42351
|
}
|
|
42322
42352
|
}
|
|
42323
42353
|
/**
|
|
42324
|
-
* 初始化高级搜索
|
|
42325
|
-
* @author lxm
|
|
42326
|
-
* @date 2024-04-11 11:44:10
|
|
42354
|
+
* @description 初始化高级搜索
|
|
42327
42355
|
* @protected
|
|
42356
|
+
* @memberof SearchBarController
|
|
42328
42357
|
*/
|
|
42329
42358
|
initAdvancedQuickSearch() {
|
|
42330
42359
|
var _a3;
|
|
@@ -42345,9 +42374,8 @@ var SearchBarController = class extends ControlController {
|
|
|
42345
42374
|
}
|
|
42346
42375
|
}
|
|
42347
42376
|
/**
|
|
42348
|
-
* 计算快速搜索占位符
|
|
42349
|
-
* @
|
|
42350
|
-
* @date 2024-04-11 05:36:52
|
|
42377
|
+
* @description 计算快速搜索占位符
|
|
42378
|
+
* @memberof SearchBarController
|
|
42351
42379
|
*/
|
|
42352
42380
|
calcQuickSearchPlaceHolder() {
|
|
42353
42381
|
if (this.state.advancedQuickSearch) {
|
|
@@ -42365,7 +42393,7 @@ var SearchBarController = class extends ControlController {
|
|
|
42365
42393
|
}
|
|
42366
42394
|
}
|
|
42367
42395
|
/**
|
|
42368
|
-
* @description
|
|
42396
|
+
* @description 切换后台分组项
|
|
42369
42397
|
* @param {string} tabId
|
|
42370
42398
|
* @memberof SearchBarController
|
|
42371
42399
|
*/
|
|
@@ -42525,7 +42553,7 @@ var FilterPortletController = class extends PortletPartController {
|
|
|
42525
42553
|
);
|
|
42526
42554
|
if (modelSearchConds && modelSearchConds.length > 0) {
|
|
42527
42555
|
const tempFieldSearchConds = [];
|
|
42528
|
-
|
|
42556
|
+
recursiveIterate7(
|
|
42529
42557
|
modelSearchConds[0],
|
|
42530
42558
|
(item) => {
|
|
42531
42559
|
if (item.condtype === "DEFIELD") {
|
|
@@ -44726,7 +44754,7 @@ import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
|
44726
44754
|
import {
|
|
44727
44755
|
RuntimeModelError as RuntimeModelError50,
|
|
44728
44756
|
debounceAndAsyncMerge,
|
|
44729
|
-
recursiveIterate as
|
|
44757
|
+
recursiveIterate as recursiveIterate8,
|
|
44730
44758
|
EntityError,
|
|
44731
44759
|
RuntimeError as RuntimeError36
|
|
44732
44760
|
} from "@ibiz-template/core";
|
|
@@ -45225,7 +45253,7 @@ var FormController = class extends ControlController {
|
|
|
45225
45253
|
*/
|
|
45226
45254
|
initControlScheduler(logics = []) {
|
|
45227
45255
|
const actualLogics = [...logics];
|
|
45228
|
-
|
|
45256
|
+
recursiveIterate8(
|
|
45229
45257
|
this.model,
|
|
45230
45258
|
(item) => {
|
|
45231
45259
|
if (item.controlLogics) {
|
|
@@ -45384,10 +45412,10 @@ var FormController = class extends ControlController {
|
|
|
45384
45412
|
};
|
|
45385
45413
|
|
|
45386
45414
|
// src/controller/control/form/search-form/search-form.service.ts
|
|
45387
|
-
import { recursiveIterate as
|
|
45415
|
+
import { recursiveIterate as recursiveIterate10 } from "@ibiz-template/core";
|
|
45388
45416
|
|
|
45389
45417
|
// src/controller/control/form/form/form.service.ts
|
|
45390
|
-
import { recursiveIterate as
|
|
45418
|
+
import { recursiveIterate as recursiveIterate9 } from "@ibiz-template/core";
|
|
45391
45419
|
import { clone as clone27, isNil as isNil19, isNotNil as isNotNil5 } from "ramda";
|
|
45392
45420
|
var FormService = class extends ControlService {
|
|
45393
45421
|
constructor() {
|
|
@@ -45411,7 +45439,7 @@ var FormService = class extends ControlService {
|
|
|
45411
45439
|
*/
|
|
45412
45440
|
setDefault(data, context, params, type) {
|
|
45413
45441
|
const { defaultData } = this.getLoadParams(params);
|
|
45414
|
-
|
|
45442
|
+
recursiveIterate9(
|
|
45415
45443
|
this.model,
|
|
45416
45444
|
(item, parent) => {
|
|
45417
45445
|
if (parent.detailType === "MDCTRL")
|
|
@@ -45470,7 +45498,7 @@ var FormService = class extends ControlService {
|
|
|
45470
45498
|
*/
|
|
45471
45499
|
initUIDataMap() {
|
|
45472
45500
|
super.initUIDataMap();
|
|
45473
|
-
|
|
45501
|
+
recursiveIterate9(
|
|
45474
45502
|
this.model,
|
|
45475
45503
|
(item, parent) => {
|
|
45476
45504
|
if (parent.detailType === "MDCTRL")
|
|
@@ -45553,7 +45581,7 @@ var SearchFormService = class extends FormService {
|
|
|
45553
45581
|
* @date 2022-08-31 18:08:37
|
|
45554
45582
|
*/
|
|
45555
45583
|
initUIDataMap() {
|
|
45556
|
-
|
|
45584
|
+
recursiveIterate10(
|
|
45557
45585
|
this.model,
|
|
45558
45586
|
(item) => {
|
|
45559
45587
|
if (item.detailType === "FORMITEM") {
|
|
@@ -48332,7 +48360,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
48332
48360
|
};
|
|
48333
48361
|
|
|
48334
48362
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater.controller.ts
|
|
48335
|
-
import { ModelError as ModelError21, recursiveIterate as
|
|
48363
|
+
import { ModelError as ModelError21, recursiveIterate as recursiveIterate11 } from "@ibiz-template/core";
|
|
48336
48364
|
import { clone as clone29, isNil as isNil20 } from "ramda";
|
|
48337
48365
|
var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
48338
48366
|
constructor() {
|
|
@@ -48458,7 +48486,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
48458
48486
|
* @memberof FormMDCtrlRepeaterController
|
|
48459
48487
|
*/
|
|
48460
48488
|
convertMultipleLanguages() {
|
|
48461
|
-
|
|
48489
|
+
recursiveIterate11(
|
|
48462
48490
|
this.repeatedForm,
|
|
48463
48491
|
(item) => {
|
|
48464
48492
|
var _a3;
|
|
@@ -48626,7 +48654,7 @@ var FormMDCtrlRepeaterController = class extends FormMDCtrlController {
|
|
|
48626
48654
|
* @memberof FormMDCtrlRepeaterController
|
|
48627
48655
|
*/
|
|
48628
48656
|
setDefaultValue(data, type) {
|
|
48629
|
-
|
|
48657
|
+
recursiveIterate11(
|
|
48630
48658
|
this.model,
|
|
48631
48659
|
(item, parent) => {
|
|
48632
48660
|
if (parent.detailType === "MDCTRL" && parent.id !== this.model.id)
|
|
@@ -49117,7 +49145,7 @@ import { clone as clone30, isNil as isNil21 } from "ramda";
|
|
|
49117
49145
|
|
|
49118
49146
|
// src/controller/control/form/edit-form/edit-form.service.ts
|
|
49119
49147
|
import {
|
|
49120
|
-
recursiveIterate as
|
|
49148
|
+
recursiveIterate as recursiveIterate12,
|
|
49121
49149
|
RuntimeModelError as RuntimeModelError53
|
|
49122
49150
|
} from "@ibiz-template/core";
|
|
49123
49151
|
var EditFormService = class extends FormService {
|
|
@@ -49351,7 +49379,7 @@ var EditFormService = class extends FormService {
|
|
|
49351
49379
|
// 向导预置
|
|
49352
49380
|
"srfnextform"
|
|
49353
49381
|
];
|
|
49354
|
-
|
|
49382
|
+
recursiveIterate12(
|
|
49355
49383
|
this.model,
|
|
49356
49384
|
(item, parent) => {
|
|
49357
49385
|
if (parent.detailType === "MDCTRL") {
|
|
@@ -50497,7 +50525,7 @@ import {
|
|
|
50497
50525
|
EntityError as EntityError2,
|
|
50498
50526
|
awaitTimeout as awaitTimeout2,
|
|
50499
50527
|
RuntimeError as RuntimeError40,
|
|
50500
|
-
recursiveIterate as
|
|
50528
|
+
recursiveIterate as recursiveIterate13,
|
|
50501
50529
|
RuntimeModelError as RuntimeModelError55,
|
|
50502
50530
|
mergeDefaultInLeft as mergeDefaultInLeft2,
|
|
50503
50531
|
debounceAndAsyncMerge as debounceAndAsyncMerge2
|
|
@@ -51264,7 +51292,7 @@ var GridController = class extends MDControlController {
|
|
|
51264
51292
|
*/
|
|
51265
51293
|
async initUIActions() {
|
|
51266
51294
|
const asyncTasks = [];
|
|
51267
|
-
|
|
51295
|
+
recursiveIterate13(
|
|
51268
51296
|
this.model,
|
|
51269
51297
|
(column) => {
|
|
51270
51298
|
if (column.deuiactionGroup) {
|
|
@@ -51859,7 +51887,7 @@ var GridController = class extends MDControlController {
|
|
|
51859
51887
|
*/
|
|
51860
51888
|
initControlScheduler(logics = []) {
|
|
51861
51889
|
const actualLogics = [...logics];
|
|
51862
|
-
|
|
51890
|
+
recursiveIterate13(
|
|
51863
51891
|
this.model,
|
|
51864
51892
|
(item) => {
|
|
51865
51893
|
if (item.controlLogics) {
|
|
@@ -51880,7 +51908,7 @@ var GridController = class extends MDControlController {
|
|
|
51880
51908
|
initColumnStates() {
|
|
51881
51909
|
this.state.columnStates = [];
|
|
51882
51910
|
if (this.state.columnStates.length === 0) {
|
|
51883
|
-
|
|
51911
|
+
recursiveIterate13(
|
|
51884
51912
|
this.model,
|
|
51885
51913
|
(column) => {
|
|
51886
51914
|
if (column.columnType !== "GROUPGRIDCOLUMN" && !(column.hiddenDataItem || column.hideMode === 2)) {
|
|
@@ -52530,7 +52558,7 @@ var GridController = class extends MDControlController {
|
|
|
52530
52558
|
emptyText
|
|
52531
52559
|
);
|
|
52532
52560
|
}
|
|
52533
|
-
|
|
52561
|
+
recursiveIterate13(
|
|
52534
52562
|
this.model,
|
|
52535
52563
|
(item) => {
|
|
52536
52564
|
var _a3;
|
|
@@ -54410,7 +54438,7 @@ var ListController = class extends MDControlController {
|
|
|
54410
54438
|
import {
|
|
54411
54439
|
RuntimeError as RuntimeError42,
|
|
54412
54440
|
recursiveExecute,
|
|
54413
|
-
recursiveIterate as
|
|
54441
|
+
recursiveIterate as recursiveIterate14
|
|
54414
54442
|
} from "@ibiz-template/core";
|
|
54415
54443
|
import { AsyncSeriesHook as AsyncSeriesHook2 } from "qx-util";
|
|
54416
54444
|
|
|
@@ -55981,7 +56009,7 @@ var PanelController = class extends ControlController {
|
|
|
55981
56009
|
}
|
|
55982
56010
|
initControlScheduler(logics = []) {
|
|
55983
56011
|
const actualLogics = [...logics];
|
|
55984
|
-
|
|
56012
|
+
recursiveIterate14(
|
|
55985
56013
|
this.model,
|
|
55986
56014
|
(item) => {
|
|
55987
56015
|
if (item.controlLogics) {
|
|
@@ -57000,7 +57028,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
57000
57028
|
// src/controller/control/tree/tree.controller.ts
|
|
57001
57029
|
import {
|
|
57002
57030
|
RuntimeError as RuntimeError43,
|
|
57003
|
-
recursiveIterate as
|
|
57031
|
+
recursiveIterate as recursiveIterate15,
|
|
57004
57032
|
RuntimeModelError as RuntimeModelError58
|
|
57005
57033
|
} from "@ibiz-template/core";
|
|
57006
57034
|
import { isNil as isNil27 } from "ramda";
|
|
@@ -57855,7 +57883,7 @@ var TreeController = class extends MDControlController {
|
|
|
57855
57883
|
this.model.detreeNodes.forEach((node) => {
|
|
57856
57884
|
var _a3, _b2;
|
|
57857
57885
|
if ((_b2 = (_a3 = node.decontextMenu) == null ? void 0 : _a3.detoolbarItems) == null ? void 0 : _b2.length) {
|
|
57858
|
-
|
|
57886
|
+
recursiveIterate15(
|
|
57859
57887
|
node.decontextMenu,
|
|
57860
57888
|
(item) => {
|
|
57861
57889
|
const groupItem = item;
|
|
@@ -58043,7 +58071,7 @@ var TreeController = class extends MDControlController {
|
|
|
58043
58071
|
if ((_a4 = contextMenu == null ? void 0 : contextMenu.detoolbarItems) == null ? void 0 : _a4.length) {
|
|
58044
58072
|
let itemNum = 0;
|
|
58045
58073
|
const items = [];
|
|
58046
|
-
|
|
58074
|
+
recursiveIterate15(
|
|
58047
58075
|
contextMenu,
|
|
58048
58076
|
(item) => {
|
|
58049
58077
|
if (item.itemType === "DEUIACTION") {
|
|
@@ -58167,7 +58195,7 @@ var TreeController = class extends MDControlController {
|
|
|
58167
58195
|
*/
|
|
58168
58196
|
async afterLoadNodes(nodes) {
|
|
58169
58197
|
this.state.items = [];
|
|
58170
|
-
|
|
58198
|
+
recursiveIterate15(
|
|
58171
58199
|
{ _children: this.state.rootNodes },
|
|
58172
58200
|
(node) => {
|
|
58173
58201
|
this.state.items.push(node);
|
|
@@ -58403,7 +58431,7 @@ var TreeController = class extends MDControlController {
|
|
|
58403
58431
|
*/
|
|
58404
58432
|
calcExpandedKeys(nodes) {
|
|
58405
58433
|
let expandedKeys = [...this.state.expandedKeys];
|
|
58406
|
-
|
|
58434
|
+
recursiveIterate15(
|
|
58407
58435
|
{ _children: nodes },
|
|
58408
58436
|
(node) => {
|
|
58409
58437
|
var _a3;
|
|
@@ -58494,7 +58522,7 @@ var TreeController = class extends MDControlController {
|
|
|
58494
58522
|
*/
|
|
58495
58523
|
validateDrop(draggingNode, dropNode) {
|
|
58496
58524
|
let state = true;
|
|
58497
|
-
|
|
58525
|
+
recursiveIterate15(
|
|
58498
58526
|
{ _children: [draggingNode] },
|
|
58499
58527
|
(node) => {
|
|
58500
58528
|
if (node._id === dropNode._id) {
|
|
@@ -60506,7 +60534,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60506
60534
|
detail.appId
|
|
60507
60535
|
);
|
|
60508
60536
|
}
|
|
60509
|
-
|
|
60537
|
+
/**
|
|
60538
|
+
* @description 处理数据分组
|
|
60539
|
+
* @returns {*} {Promise<void>}
|
|
60540
|
+
* @memberof KanbanController
|
|
60541
|
+
*/
|
|
60542
|
+
async handleDataGroup() {
|
|
60510
60543
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
60511
60544
|
throw new RuntimeError46(
|
|
60512
60545
|
ibiz.i18n.t("runtime.controller.control.kanban.groupedOn")
|
|
@@ -60865,7 +60898,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
60865
60898
|
import {
|
|
60866
60899
|
RuntimeError as RuntimeError47,
|
|
60867
60900
|
awaitTimeout as awaitTimeout3,
|
|
60868
|
-
recursiveIterate as
|
|
60901
|
+
recursiveIterate as recursiveIterate16,
|
|
60869
60902
|
RuntimeModelError as RuntimeModelError61
|
|
60870
60903
|
} from "@ibiz-template/core";
|
|
60871
60904
|
import { clone as clone40 } from "ramda";
|
|
@@ -61039,6 +61072,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61039
61072
|
get allowRowEdit() {
|
|
61040
61073
|
return this.state.rowEditOpen;
|
|
61041
61074
|
}
|
|
61075
|
+
/**
|
|
61076
|
+
* @description 初始化state
|
|
61077
|
+
* @protected
|
|
61078
|
+
* @memberof TreeGridExController
|
|
61079
|
+
*/
|
|
61042
61080
|
initState() {
|
|
61043
61081
|
super.initState();
|
|
61044
61082
|
this.state.columnStates = [];
|
|
@@ -61046,11 +61084,23 @@ var TreeGridExController = class extends TreeController {
|
|
|
61046
61084
|
this.state.rows = {};
|
|
61047
61085
|
this.state.rowEditOpen = true;
|
|
61048
61086
|
}
|
|
61087
|
+
/**
|
|
61088
|
+
* @description 生命周期-创建完成
|
|
61089
|
+
* @protected
|
|
61090
|
+
* @returns {*} {Promise<void>}
|
|
61091
|
+
* @memberof TreeGridExController
|
|
61092
|
+
*/
|
|
61049
61093
|
async onCreated() {
|
|
61050
61094
|
await super.onCreated();
|
|
61051
61095
|
await this.initGridColumns();
|
|
61052
61096
|
this.initColumnStates();
|
|
61053
61097
|
}
|
|
61098
|
+
/**
|
|
61099
|
+
* @description 初始化部件服务
|
|
61100
|
+
* @protected
|
|
61101
|
+
* @returns {*} {Promise<void>}
|
|
61102
|
+
* @memberof TreeGridExController
|
|
61103
|
+
*/
|
|
61054
61104
|
async initService() {
|
|
61055
61105
|
this.service = new TreeGridExService(this.model);
|
|
61056
61106
|
await this.service.init(this.context);
|
|
@@ -61085,12 +61135,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
61085
61135
|
await Promise.all(asyncTasks);
|
|
61086
61136
|
}
|
|
61087
61137
|
/**
|
|
61088
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61089
|
-
*
|
|
61090
|
-
* @author zk
|
|
61091
|
-
* @date 2023-09-21 06:09:28
|
|
61138
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61092
61139
|
* @protected
|
|
61093
|
-
* @
|
|
61140
|
+
* @returns {*} {Promise<void>}
|
|
61094
61141
|
* @memberof TreeGridExController
|
|
61095
61142
|
*/
|
|
61096
61143
|
async initGridColumns() {
|
|
@@ -61103,13 +61150,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61103
61150
|
}
|
|
61104
61151
|
}
|
|
61105
61152
|
/**
|
|
61106
|
-
* 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61107
|
-
*
|
|
61108
|
-
* @author zk
|
|
61109
|
-
* @date 2023-09-21 06:09:37
|
|
61153
|
+
* @description 初始化树表格(增强)属性列,操作列,编辑项控制器
|
|
61110
61154
|
* @protected
|
|
61111
61155
|
* @param {IDETreeColumn} column
|
|
61112
|
-
* @
|
|
61156
|
+
* @returns {*} {Promise<void>}
|
|
61113
61157
|
* @memberof TreeGridExController
|
|
61114
61158
|
*/
|
|
61115
61159
|
async initColumnsController(column) {
|
|
@@ -61127,11 +61171,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61127
61171
|
}
|
|
61128
61172
|
}
|
|
61129
61173
|
/**
|
|
61130
|
-
*
|
|
61131
|
-
*
|
|
61174
|
+
* @description 部件加载之后
|
|
61132
61175
|
* @param {MDCtrlLoadParams} args
|
|
61133
61176
|
* @param {IData[]} items
|
|
61134
|
-
* @
|
|
61177
|
+
* @returns {*} {Promise<IData[]>}
|
|
61135
61178
|
* @memberof TreeGridExController
|
|
61136
61179
|
*/
|
|
61137
61180
|
async afterLoad(args, items) {
|
|
@@ -61140,10 +61183,9 @@ var TreeGridExController = class extends TreeController {
|
|
|
61140
61183
|
return items;
|
|
61141
61184
|
}
|
|
61142
61185
|
/**
|
|
61143
|
-
* 更新列状态
|
|
61144
|
-
*
|
|
61186
|
+
* @description 更新列状态
|
|
61145
61187
|
* @param {IData} rows
|
|
61146
|
-
* @
|
|
61188
|
+
* @returns {*} {Promise<void>}
|
|
61147
61189
|
* @memberof TreeGridExController
|
|
61148
61190
|
*/
|
|
61149
61191
|
async updateRows(rows) {
|
|
@@ -61160,10 +61202,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61160
61202
|
});
|
|
61161
61203
|
}
|
|
61162
61204
|
/**
|
|
61163
|
-
* 初始化树表格(增强)列状态
|
|
61164
|
-
*
|
|
61165
|
-
* @author zk
|
|
61166
|
-
* @date 2023-09-21 06:09:43
|
|
61205
|
+
* @description 初始化树表格(增强)列状态
|
|
61167
61206
|
* @protected
|
|
61168
61207
|
* @memberof TreeGridExController
|
|
61169
61208
|
*/
|
|
@@ -61184,10 +61223,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
61184
61223
|
this.calcColumnFixed();
|
|
61185
61224
|
}
|
|
61186
61225
|
/**
|
|
61187
|
-
* 计算列的固定状态
|
|
61188
|
-
*
|
|
61189
|
-
* @author zk
|
|
61190
|
-
* @date 2023-09-21 06:09:50
|
|
61226
|
+
* @description 计算列的固定状态
|
|
61191
61227
|
* @protected
|
|
61192
61228
|
* @memberof TreeGridExController
|
|
61193
61229
|
*/
|
|
@@ -61203,11 +61239,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61203
61239
|
});
|
|
61204
61240
|
}
|
|
61205
61241
|
/**
|
|
61206
|
-
*
|
|
61207
|
-
* @
|
|
61208
|
-
* @
|
|
61209
|
-
* @
|
|
61210
|
-
* @return {*} {(ITreeGridExRowState | undefined)}
|
|
61242
|
+
* @description 获取表格行状态
|
|
61243
|
+
* @param {string} key
|
|
61244
|
+
* @returns {*} {(ITreeGridExRowState | undefined)}
|
|
61245
|
+
* @memberof TreeGridExController
|
|
61211
61246
|
*/
|
|
61212
61247
|
getRowState(key) {
|
|
61213
61248
|
const nodeData = this.getNodeData(key);
|
|
@@ -61215,9 +61250,15 @@ var TreeGridExController = class extends TreeController {
|
|
|
61215
61250
|
return this.state.rows[nodeData._uuid];
|
|
61216
61251
|
}
|
|
61217
61252
|
}
|
|
61253
|
+
/**
|
|
61254
|
+
* @description 节点加载之后
|
|
61255
|
+
* @param {ITreeNodeData[]} nodes 树节点数据
|
|
61256
|
+
* @returns {*} {Promise<void>}
|
|
61257
|
+
* @memberof TreeGridExController
|
|
61258
|
+
*/
|
|
61218
61259
|
async afterLoadNodes(nodes) {
|
|
61219
61260
|
await super.afterLoadNodes(nodes);
|
|
61220
|
-
|
|
61261
|
+
recursiveIterate16(
|
|
61221
61262
|
{ _children: nodes },
|
|
61222
61263
|
(node) => {
|
|
61223
61264
|
this.state.rows[node._uuid] = new TreeGridExRowState(node, this);
|
|
@@ -61248,6 +61289,12 @@ var TreeGridExController = class extends TreeController {
|
|
|
61248
61289
|
);
|
|
61249
61290
|
});
|
|
61250
61291
|
}
|
|
61292
|
+
/**
|
|
61293
|
+
* @description 保存数据
|
|
61294
|
+
* @param {ITreeNodeData} nodeData 树节点数据
|
|
61295
|
+
* @returns {*} {Promise<void>}
|
|
61296
|
+
* @memberof TreeGridExController
|
|
61297
|
+
*/
|
|
61251
61298
|
async save(nodeData) {
|
|
61252
61299
|
if (this.state.isSimple) {
|
|
61253
61300
|
ibiz.log.debug(ibiz.i18n.t("runtime.controller.common.md.simpleMode"));
|
|
@@ -61312,6 +61359,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61312
61359
|
await this.updateRows(this.state.rows);
|
|
61313
61360
|
await this._evt.emit("onSaveSuccess", void 0);
|
|
61314
61361
|
}
|
|
61362
|
+
/**
|
|
61363
|
+
* @description 保存所有变更数据
|
|
61364
|
+
* @returns {*} {Promise<void>}
|
|
61365
|
+
* @memberof TreeGridExController
|
|
61366
|
+
*/
|
|
61315
61367
|
async saveAll() {
|
|
61316
61368
|
const needSaveData = Object.values(this.state.rows).filter((row) => row.modified).map((row) => row.data);
|
|
61317
61369
|
if (!needSaveData.length) {
|
|
@@ -61324,10 +61376,10 @@ var TreeGridExController = class extends TreeController {
|
|
|
61324
61376
|
);
|
|
61325
61377
|
}
|
|
61326
61378
|
/**
|
|
61327
|
-
* 树表格状态变更通知
|
|
61328
|
-
*
|
|
61329
|
-
* @
|
|
61330
|
-
* @
|
|
61379
|
+
* @description 树表格状态变更通知
|
|
61380
|
+
* @param {TreeGridExRowState} row
|
|
61381
|
+
* @param {TreeGridExNotifyState} state
|
|
61382
|
+
* @memberof TreeGridExController
|
|
61331
61383
|
*/
|
|
61332
61384
|
gridStateNotify(row, state) {
|
|
61333
61385
|
Object.values(this.columns).forEach((column) => {
|
|
@@ -61335,14 +61387,13 @@ var TreeGridExController = class extends TreeController {
|
|
|
61335
61387
|
});
|
|
61336
61388
|
}
|
|
61337
61389
|
/**
|
|
61338
|
-
* 设置行属性的值
|
|
61339
|
-
*
|
|
61340
|
-
* @
|
|
61341
|
-
* @
|
|
61342
|
-
* @param {
|
|
61343
|
-
* @
|
|
61344
|
-
* @
|
|
61345
|
-
* @param {boolean} ignore 忽略脏值检查
|
|
61390
|
+
* @description 设置行属性的值
|
|
61391
|
+
* @param {TreeGridExRowState} row 行状态
|
|
61392
|
+
* @param {string} name 属性名称
|
|
61393
|
+
* @param {unknown} value 值
|
|
61394
|
+
* @param {boolean} [ignore=false] 忽略脏值检查
|
|
61395
|
+
* @returns {*} {Promise<void>}
|
|
61396
|
+
* @memberof TreeGridExController
|
|
61346
61397
|
*/
|
|
61347
61398
|
async setRowValue(row, name2, value, ignore = false) {
|
|
61348
61399
|
if (Object.prototype.hasOwnProperty.call(row.data, name2) && !isValueChange(row.data[name2], value)) {
|
|
@@ -61360,12 +61411,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61360
61411
|
}
|
|
61361
61412
|
}
|
|
61362
61413
|
/**
|
|
61363
|
-
* 通知所有表格编辑项成员表格编辑项数据变更
|
|
61364
|
-
*
|
|
61365
|
-
* @
|
|
61366
|
-
* @
|
|
61367
|
-
* @
|
|
61368
|
-
* @param {string[]} names 更新的属性
|
|
61414
|
+
* @description 通知所有表格编辑项成员表格编辑项数据变更
|
|
61415
|
+
* @param {TreeGridExRowState} row
|
|
61416
|
+
* @param {string[]} names
|
|
61417
|
+
* @returns {*} {Promise<void>}
|
|
61418
|
+
* @memberof TreeGridExController
|
|
61369
61419
|
*/
|
|
61370
61420
|
async dataChangeNotify(row, names) {
|
|
61371
61421
|
await handleAllSettled(
|
|
@@ -61374,17 +61424,20 @@ var TreeGridExController = class extends TreeController {
|
|
|
61374
61424
|
})
|
|
61375
61425
|
);
|
|
61376
61426
|
}
|
|
61427
|
+
/**
|
|
61428
|
+
* @description 切换行编辑状态
|
|
61429
|
+
* @returns {*} {Promise<void>}
|
|
61430
|
+
* @memberof TreeGridExController
|
|
61431
|
+
*/
|
|
61377
61432
|
async toggleRowEdit() {
|
|
61378
61433
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
61379
61434
|
}
|
|
61380
61435
|
/**
|
|
61381
|
-
*
|
|
61382
|
-
*
|
|
61383
|
-
* @
|
|
61384
|
-
* @
|
|
61385
|
-
* @
|
|
61386
|
-
* @param {boolean} isCreate
|
|
61387
|
-
* @return {*} {IData}
|
|
61436
|
+
* @description 计算默认值
|
|
61437
|
+
* @param {ITreeNodeData} data 节点数据
|
|
61438
|
+
* @param {boolean} isCreate 是否为新建
|
|
61439
|
+
* @returns {*} {IData}
|
|
61440
|
+
* @memberof TreeGridExController
|
|
61388
61441
|
*/
|
|
61389
61442
|
calcDefaultValue(data, isCreate) {
|
|
61390
61443
|
const result = {};
|
|
@@ -61412,23 +61465,19 @@ var TreeGridExController = class extends TreeController {
|
|
|
61412
61465
|
return result;
|
|
61413
61466
|
}
|
|
61414
61467
|
/**
|
|
61415
|
-
* 切换单行的编辑状态
|
|
61416
|
-
* @
|
|
61417
|
-
* @
|
|
61418
|
-
* @param {
|
|
61419
|
-
* @
|
|
61468
|
+
* @description 切换单行的编辑状态
|
|
61469
|
+
* @param {TreeGridExRowState} row 行状态
|
|
61470
|
+
* @param {boolean} [editable] 是否为编辑状态
|
|
61471
|
+
* @param {boolean} [isSave=true] 是否保存数据
|
|
61472
|
+
* @returns {*} {Promise<void>}
|
|
61473
|
+
* @memberof TreeGridExController
|
|
61420
61474
|
*/
|
|
61421
61475
|
async switchRowEdit(row, editable, isSave = true) {
|
|
61422
|
-
if (!this.allowRowEdit)
|
|
61423
|
-
return;
|
|
61424
|
-
}
|
|
61425
|
-
if (row.data._nodeType !== "DE") {
|
|
61476
|
+
if (!this.allowRowEdit || row.data._nodeType !== "DE")
|
|
61426
61477
|
return;
|
|
61427
|
-
}
|
|
61428
61478
|
const toState = editable === void 0 ? !row.showRowEdit : editable;
|
|
61429
|
-
if (row.showRowEdit === toState)
|
|
61479
|
+
if (row.showRowEdit === toState)
|
|
61430
61480
|
return;
|
|
61431
|
-
}
|
|
61432
61481
|
if (toState === false) {
|
|
61433
61482
|
if (isSave) {
|
|
61434
61483
|
await this.save(row.data);
|
|
@@ -61462,11 +61511,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
61462
61511
|
this._evt.emit("onRowEditChange", { row });
|
|
61463
61512
|
}
|
|
61464
61513
|
/**
|
|
61465
|
-
* 树节点点击事件
|
|
61466
|
-
*
|
|
61467
|
-
* @param {
|
|
61514
|
+
* @description 树节点点击事件
|
|
61515
|
+
* @param {ITreeNodeData} _nodeData
|
|
61516
|
+
* @param {MouseEvent} event
|
|
61468
61517
|
* @returns {*} {Promise<void>}
|
|
61469
|
-
* @memberof
|
|
61518
|
+
* @memberof TreeGridExController
|
|
61470
61519
|
*/
|
|
61471
61520
|
async onTreeNodeClick(_nodeData, event) {
|
|
61472
61521
|
var _a3, _b2;
|
|
@@ -62668,7 +62717,10 @@ var MapController = class extends MDControlController {
|
|
|
62668
62717
|
this.state.isLoaded = true;
|
|
62669
62718
|
return [];
|
|
62670
62719
|
}
|
|
62671
|
-
|
|
62720
|
+
const silent = this.getSilent(args) === true;
|
|
62721
|
+
if (!silent) {
|
|
62722
|
+
await this.startLoading();
|
|
62723
|
+
}
|
|
62672
62724
|
try {
|
|
62673
62725
|
const isInitialLoad = args.isInitialLoad === true;
|
|
62674
62726
|
const { context } = this.handlerAbilityParams(args);
|
|
@@ -62694,7 +62746,9 @@ var MapController = class extends MDControlController {
|
|
|
62694
62746
|
});
|
|
62695
62747
|
throw error;
|
|
62696
62748
|
} finally {
|
|
62697
|
-
|
|
62749
|
+
if (!silent) {
|
|
62750
|
+
await this.endLoading();
|
|
62751
|
+
}
|
|
62698
62752
|
}
|
|
62699
62753
|
this.actionNotification("FETCHSUCCESS");
|
|
62700
62754
|
return this.state.items;
|
|
@@ -66008,7 +66062,7 @@ var ReportPanelController = class extends ControlController {
|
|
|
66008
66062
|
import {
|
|
66009
66063
|
awaitTimeout as awaitTimeout4,
|
|
66010
66064
|
RuntimeError as RuntimeError50,
|
|
66011
|
-
recursiveIterate as
|
|
66065
|
+
recursiveIterate as recursiveIterate17
|
|
66012
66066
|
} from "@ibiz-template/core";
|
|
66013
66067
|
|
|
66014
66068
|
// src/controller/control/gantt/gantt.service.ts
|
|
@@ -66441,8 +66495,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66441
66495
|
await this.service.init(this.context);
|
|
66442
66496
|
}
|
|
66443
66497
|
/**
|
|
66444
|
-
* 设置甘特图样式
|
|
66445
|
-
*
|
|
66498
|
+
* @description 设置甘特图样式
|
|
66446
66499
|
* @param {IGanttStyle} style
|
|
66447
66500
|
* @memberof GanttController
|
|
66448
66501
|
*/
|
|
@@ -66450,10 +66503,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66450
66503
|
this.state.ganttStyle = style;
|
|
66451
66504
|
}
|
|
66452
66505
|
/**
|
|
66453
|
-
* 设置激活数据
|
|
66454
|
-
*
|
|
66506
|
+
* @description 设置激活数据
|
|
66455
66507
|
* @param {IGanttNodeData} item
|
|
66456
|
-
* @
|
|
66508
|
+
* @returns {*} {Promise<void>}
|
|
66457
66509
|
* @memberof GanttController
|
|
66458
66510
|
*/
|
|
66459
66511
|
async setActive(item) {
|
|
@@ -66466,11 +66518,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66466
66518
|
return this.evt.emit("onActive", { ...nodeParams, nodeData: item });
|
|
66467
66519
|
}
|
|
66468
66520
|
/**
|
|
66469
|
-
* 部件刷新,走初始加载(规避预置后续刷新和通知刷新同时进行)
|
|
66470
|
-
*
|
|
66471
|
-
* @
|
|
66472
|
-
* @date 2024-05-06 20:28:59
|
|
66473
|
-
* @return {*} {Promise<void>}
|
|
66521
|
+
* @description 部件刷新,走初始加载(规避预置后续刷新和通知刷新同时进行)
|
|
66522
|
+
* @returns {*} {Promise<void>}
|
|
66523
|
+
* @memberof GanttController
|
|
66474
66524
|
*/
|
|
66475
66525
|
async refresh() {
|
|
66476
66526
|
this.doNextActive(
|
|
@@ -66489,11 +66539,11 @@ var GanttController = class extends TreeGridExController {
|
|
|
66489
66539
|
);
|
|
66490
66540
|
}
|
|
66491
66541
|
/**
|
|
66492
|
-
* 刷新指定树节点的子节点数据
|
|
66493
|
-
*
|
|
66494
|
-
* @param {(ITreeNodeData | IData)} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
66542
|
+
* @description 刷新指定树节点的子节点数据
|
|
66543
|
+
* @param {{ _id?: string; srfkey?: string }} nodeData 指定树节点数据,可以是节点数据,也可以是对应的实体数据
|
|
66495
66544
|
* @param {boolean} [refreshParent=false] 是否是刷新给定节点数据的父节点的子节点数据
|
|
66496
|
-
* @
|
|
66545
|
+
* @returns {*} {Promise<void>}
|
|
66546
|
+
* @memberof GanttController
|
|
66497
66547
|
*/
|
|
66498
66548
|
async refreshNodeChildren(nodeData, refreshParent = false) {
|
|
66499
66549
|
const key = nodeData.srfkey ? "srfkey" : "_id";
|
|
@@ -66523,10 +66573,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66523
66573
|
});
|
|
66524
66574
|
}
|
|
66525
66575
|
/**
|
|
66526
|
-
* 处理默认展开
|
|
66527
|
-
*
|
|
66528
|
-
* @
|
|
66529
|
-
* @
|
|
66576
|
+
* @description 处理默认展开
|
|
66577
|
+
* @param {IGanttNodeData[]} data 节点数据
|
|
66578
|
+
* @returns {*} {Promise<void>}
|
|
66579
|
+
* @memberof GanttController
|
|
66530
66580
|
*/
|
|
66531
66581
|
async handleDefaultExpandNodes(data) {
|
|
66532
66582
|
for (let i = 0; i < data.length; i++) {
|
|
@@ -66542,11 +66592,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66542
66592
|
}
|
|
66543
66593
|
}
|
|
66544
66594
|
/**
|
|
66545
|
-
* 甘特图树节点点击事件
|
|
66546
|
-
*
|
|
66595
|
+
* @description 甘特图树节点点击事件
|
|
66547
66596
|
* @param {IGanttNodeData} _nodeData
|
|
66548
66597
|
* @param {MouseEvent} event
|
|
66549
|
-
* @
|
|
66598
|
+
* @returns {*} {Promise<void>}
|
|
66550
66599
|
* @memberof GanttController
|
|
66551
66600
|
*/
|
|
66552
66601
|
async onTreeNodeClick(_nodeData, event) {
|
|
@@ -66585,12 +66634,12 @@ var GanttController = class extends TreeGridExController {
|
|
|
66585
66634
|
}
|
|
66586
66635
|
}
|
|
66587
66636
|
/**
|
|
66588
|
-
* 设置行属性的值
|
|
66589
|
-
*
|
|
66637
|
+
* @description 设置行属性的值
|
|
66590
66638
|
* @param {TreeGridExRowState} row
|
|
66591
66639
|
* @param {string} name
|
|
66592
66640
|
* @param {unknown} value
|
|
66593
|
-
* @
|
|
66641
|
+
* @param {boolean} [ignore=false]
|
|
66642
|
+
* @returns {*} {Promise<void>}
|
|
66594
66643
|
* @memberof GanttController
|
|
66595
66644
|
*/
|
|
66596
66645
|
async setRowValue(row, name2, value, ignore = false) {
|
|
@@ -66615,9 +66664,10 @@ var GanttController = class extends TreeGridExController {
|
|
|
66615
66664
|
}
|
|
66616
66665
|
}
|
|
66617
66666
|
/**
|
|
66618
|
-
* 修改节点时间
|
|
66619
|
-
*
|
|
66620
|
-
* @param {
|
|
66667
|
+
* @description 修改节点时间
|
|
66668
|
+
* @param {IGanttNodeData} nodeData 节点数据
|
|
66669
|
+
* @param {{ begin?: string; end?: string }} { begin, end } 开始时间,结束时间
|
|
66670
|
+
* @returns {*} {Promise<void>}
|
|
66621
66671
|
* @memberof GanttController
|
|
66622
66672
|
*/
|
|
66623
66673
|
async modifyNodeTime(nodeData, { begin, end }) {
|
|
@@ -66638,10 +66688,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66638
66688
|
await this.save(rowState.data);
|
|
66639
66689
|
}
|
|
66640
66690
|
/**
|
|
66641
|
-
*
|
|
66642
|
-
*
|
|
66643
|
-
* @
|
|
66644
|
-
* @return {*} {Promise<void>}
|
|
66691
|
+
* @description 保存数据
|
|
66692
|
+
* @param {IGanttNodeData} nodeData 节点数据
|
|
66693
|
+
* @returns {*} {Promise<void>}
|
|
66645
66694
|
* @memberof GanttController
|
|
66646
66695
|
*/
|
|
66647
66696
|
async save(nodeData) {
|
|
@@ -66699,10 +66748,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66699
66748
|
await this.evt.emit("onSaveSuccess", void 0);
|
|
66700
66749
|
}
|
|
66701
66750
|
/**
|
|
66702
|
-
* 删除
|
|
66703
|
-
*
|
|
66751
|
+
* @description 删除
|
|
66704
66752
|
* @param {MDCtrlRemoveParams} [args]
|
|
66705
|
-
* @
|
|
66753
|
+
* @returns {*} {Promise<void>}
|
|
66706
66754
|
* @memberof GanttController
|
|
66707
66755
|
*/
|
|
66708
66756
|
async remove(args) {
|
|
@@ -66790,8 +66838,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
66790
66838
|
await this.evt.emit("onRemoveSuccess", void 0);
|
|
66791
66839
|
}
|
|
66792
66840
|
/**
|
|
66793
|
-
* 后台删除结束后界面删除逻辑
|
|
66794
|
-
*
|
|
66841
|
+
* @description 后台删除结束后界面删除逻辑
|
|
66795
66842
|
* @param {GanttDataSetNodeData} data
|
|
66796
66843
|
* @memberof GanttController
|
|
66797
66844
|
*/
|
|
@@ -66817,10 +66864,9 @@ var GanttController = class extends TreeGridExController {
|
|
|
66817
66864
|
}
|
|
66818
66865
|
}
|
|
66819
66866
|
/**
|
|
66820
|
-
* 新建行
|
|
66821
|
-
*
|
|
66867
|
+
* @description 新建行
|
|
66822
66868
|
* @param {MDCtrlLoadParams} [args={}]
|
|
66823
|
-
* @
|
|
66869
|
+
* @returns {*} {Promise<void>}
|
|
66824
66870
|
* @memberof GanttController
|
|
66825
66871
|
*/
|
|
66826
66872
|
async newRow(args = {}) {
|
|
@@ -67054,7 +67100,7 @@ var GanttController = class extends TreeGridExController {
|
|
|
67054
67100
|
break;
|
|
67055
67101
|
case "NODEDATA":
|
|
67056
67102
|
default:
|
|
67057
|
-
|
|
67103
|
+
recursiveIterate17(
|
|
67058
67104
|
{ _children: this.state.rootNodes },
|
|
67059
67105
|
(node) => {
|
|
67060
67106
|
var _a3, _b2;
|
|
@@ -78817,30 +78863,6 @@ import qs5 from "qs";
|
|
|
78817
78863
|
import { clone as clone58 } from "ramda";
|
|
78818
78864
|
var JsonSchemaUtil = class {
|
|
78819
78865
|
constructor() {
|
|
78820
|
-
/**
|
|
78821
|
-
* 值操作数组
|
|
78822
|
-
*
|
|
78823
|
-
* @author tony001
|
|
78824
|
-
* @date 2024-07-25 00:07:57
|
|
78825
|
-
* @private
|
|
78826
|
-
*/
|
|
78827
|
-
this.valueOPArray = [
|
|
78828
|
-
{ valueOP: "EQ" /* EQ */, label: "\u7B49\u4E8E", sqlOP: "=" },
|
|
78829
|
-
{ valueOP: "NOTEQ" /* NOT_EQ */, label: "\u4E0D\u7B49\u4E8E", sqlOP: "<>" },
|
|
78830
|
-
{ valueOP: "GT" /* GT */, label: "\u5927\u4E8E", sqlOP: ">" },
|
|
78831
|
-
{ valueOP: "GTANDEQ" /* GT_AND_EQ */, label: "\u5927\u4E8E\u7B49\u4E8E", sqlOP: ">=" },
|
|
78832
|
-
{ valueOP: "LT" /* LT */, label: "\u5C0F\u4E8E", sqlOP: "<" },
|
|
78833
|
-
{ valueOP: "LTANDEQ" /* LT_AND_EQ */, label: "\u5C0F\u4E8E\u7B49\u4E8E", sqlOP: "<=" },
|
|
78834
|
-
{ valueOP: "ISNULL" /* IS_NULL */, label: "\u4E3A\u7A7A", sqlOP: "IS NULL" },
|
|
78835
|
-
{ valueOP: "ISNOTNULL" /* IS_NOT_NULL */, label: "\u975E\u7A7A", sqlOP: "IS NOT NULL" },
|
|
78836
|
-
{ valueOP: "IN" /* IN */, label: "\u5C5E\u4E8E", sqlOP: "IN" },
|
|
78837
|
-
{ valueOP: "NOTIN" /* NOT_IN */, label: "\u4E0D\u5C5E\u4E8E", sqlOP: "NOT IN" },
|
|
78838
|
-
{ valueOP: "LIKE" /* LIKE */, label: "\u6587\u672C\u5305\u542B", sqlOP: "LIKE" },
|
|
78839
|
-
{ valueOP: "LIFTLIKE" /* LIFT_LIKE */, label: "\u6587\u672C\u5DE6\u5305\u542B", sqlOP: "" },
|
|
78840
|
-
{ valueOP: "RIGHT_LIKE" /* RIGHT_LIKE */, label: "\u6587\u672C\u53F3\u5305\u542B", sqlOP: "" },
|
|
78841
|
-
{ valueOP: "EXISTS" /* EXISTS */, label: "\u5B58\u5728", sqlOP: "" },
|
|
78842
|
-
{ valueOP: "NOTEXISTS" /* NOT_EXISTS */, label: "\u4E0D\u5B58\u5728", sqlOP: "" }
|
|
78843
|
-
];
|
|
78844
78866
|
/**
|
|
78845
78867
|
* 数据类型映射操作符
|
|
78846
78868
|
*
|
|
@@ -78965,6 +78987,81 @@ var JsonSchemaUtil = class {
|
|
|
78965
78987
|
["CHILD" /* CHILD */]: void 0
|
|
78966
78988
|
};
|
|
78967
78989
|
}
|
|
78990
|
+
/**
|
|
78991
|
+
* @description 获取值操作数组
|
|
78992
|
+
* @returns {*} {IData[]}
|
|
78993
|
+
* @memberof JsonSchemaUtil
|
|
78994
|
+
*/
|
|
78995
|
+
getValueOPArray() {
|
|
78996
|
+
return [
|
|
78997
|
+
{
|
|
78998
|
+
valueOP: "EQ" /* EQ */,
|
|
78999
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.eq")
|
|
79000
|
+
},
|
|
79001
|
+
{
|
|
79002
|
+
valueOP: "NOTEQ" /* NOT_EQ */,
|
|
79003
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.not_eq")
|
|
79004
|
+
},
|
|
79005
|
+
{
|
|
79006
|
+
valueOP: "GT" /* GT */,
|
|
79007
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.gt")
|
|
79008
|
+
},
|
|
79009
|
+
{
|
|
79010
|
+
valueOP: "GTANDEQ" /* GT_AND_EQ */,
|
|
79011
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.gt_and_eq")
|
|
79012
|
+
},
|
|
79013
|
+
{
|
|
79014
|
+
valueOP: "LT" /* LT */,
|
|
79015
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lt")
|
|
79016
|
+
},
|
|
79017
|
+
{
|
|
79018
|
+
valueOP: "LTANDEQ" /* LT_AND_EQ */,
|
|
79019
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lt_and_eq")
|
|
79020
|
+
},
|
|
79021
|
+
{
|
|
79022
|
+
valueOP: "ISNULL" /* IS_NULL */,
|
|
79023
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.is_null")
|
|
79024
|
+
},
|
|
79025
|
+
{
|
|
79026
|
+
valueOP: "ISNOTNULL" /* IS_NOT_NULL */,
|
|
79027
|
+
label: ibiz.i18n.t(
|
|
79028
|
+
"runtime.controller.utils.jsonSchemaUtil.is_not_null"
|
|
79029
|
+
)
|
|
79030
|
+
},
|
|
79031
|
+
{
|
|
79032
|
+
valueOP: "IN" /* IN */,
|
|
79033
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.in")
|
|
79034
|
+
},
|
|
79035
|
+
{
|
|
79036
|
+
valueOP: "NOTIN" /* NOT_IN */,
|
|
79037
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.not_in")
|
|
79038
|
+
},
|
|
79039
|
+
{
|
|
79040
|
+
valueOP: "LIKE" /* LIKE */,
|
|
79041
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.like")
|
|
79042
|
+
},
|
|
79043
|
+
{
|
|
79044
|
+
valueOP: "LIFTLIKE" /* LIFT_LIKE */,
|
|
79045
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.lift_like")
|
|
79046
|
+
},
|
|
79047
|
+
{
|
|
79048
|
+
valueOP: "RIGHT_LIKE" /* RIGHT_LIKE */,
|
|
79049
|
+
label: ibiz.i18n.t(
|
|
79050
|
+
"runtime.controller.utils.jsonSchemaUtil.right_like"
|
|
79051
|
+
)
|
|
79052
|
+
},
|
|
79053
|
+
{
|
|
79054
|
+
valueOP: "EXISTS" /* EXISTS */,
|
|
79055
|
+
label: ibiz.i18n.t("runtime.controller.utils.jsonSchemaUtil.exists")
|
|
79056
|
+
},
|
|
79057
|
+
{
|
|
79058
|
+
valueOP: "NOTEXISTS" /* NOT_EXISTS */,
|
|
79059
|
+
label: ibiz.i18n.t(
|
|
79060
|
+
"runtime.controller.utils.jsonSchemaUtil.not_exists"
|
|
79061
|
+
)
|
|
79062
|
+
}
|
|
79063
|
+
];
|
|
79064
|
+
}
|
|
78968
79065
|
/**
|
|
78969
79066
|
* 获取jsonschema属性数据
|
|
78970
79067
|
*
|
|
@@ -79050,7 +79147,8 @@ var JsonSchemaUtil = class {
|
|
|
79050
79147
|
*/
|
|
79051
79148
|
getValueOPsByDataType(dataType) {
|
|
79052
79149
|
let result = [];
|
|
79053
|
-
|
|
79150
|
+
const valueOPArray = this.getValueOPArray();
|
|
79151
|
+
result = valueOPArray.filter(
|
|
79054
79152
|
(mode) => this.DataTypeToOPs[dataType].includes(mode.valueOP)
|
|
79055
79153
|
);
|
|
79056
79154
|
return result;
|
|
@@ -90103,6 +90201,23 @@ var en = {
|
|
|
90103
90201
|
quarter: "Quarter",
|
|
90104
90202
|
month: "Month",
|
|
90105
90203
|
week: "Week"
|
|
90204
|
+
},
|
|
90205
|
+
jsonSchemaUtil: {
|
|
90206
|
+
eq: "Equal to (=)",
|
|
90207
|
+
not_eq: "Not equal to (<> )",
|
|
90208
|
+
gt: "Greater than (>)",
|
|
90209
|
+
gt_and_eq: "Greater than or equal to (>=)",
|
|
90210
|
+
lt: "Less than (<)",
|
|
90211
|
+
lt_and_eq: "Less than or equal to (<=)",
|
|
90212
|
+
is_null: "Value is Nil",
|
|
90213
|
+
is_not_null: "Value not null (NotNil)",
|
|
90214
|
+
IN: "Value In range (In)",
|
|
90215
|
+
not_in: "Value not in range (NotIn)",
|
|
90216
|
+
like: "Text contains (%)",
|
|
90217
|
+
lift_like: "Text left contained (%#)",
|
|
90218
|
+
right_like: "Text right included (#%)",
|
|
90219
|
+
exists: "exists(EXISTS)",
|
|
90220
|
+
not_exists: "Does not exist (NOTEXISTS)"
|
|
90106
90221
|
}
|
|
90107
90222
|
}
|
|
90108
90223
|
},
|
|
@@ -90769,6 +90884,23 @@ var zhCn = {
|
|
|
90769
90884
|
quarter: "\u5B63\u5EA6",
|
|
90770
90885
|
month: "\u6708",
|
|
90771
90886
|
week: "\u5468"
|
|
90887
|
+
},
|
|
90888
|
+
jsonSchemaUtil: {
|
|
90889
|
+
eq: "\u7B49\u4E8E(=)",
|
|
90890
|
+
not_eq: "\u4E0D\u7B49\u4E8E(<>)",
|
|
90891
|
+
gt: "\u5927\u4E8E(>)",
|
|
90892
|
+
gt_and_eq: "\u5927\u4E8E\u7B49\u4E8E(>=)",
|
|
90893
|
+
lt: "\u5C0F\u4E8E(<)",
|
|
90894
|
+
lt_and_eq: "\u5C0F\u4E8E\u7B49\u4E8E(<=)",
|
|
90895
|
+
is_null: "\u503C\u4E3A\u7A7A(Nil)",
|
|
90896
|
+
is_not_null: "\u503C\u4E0D\u4E3A\u7A7A(NotNil)",
|
|
90897
|
+
IN: "\u503C\u5728\u8303\u56F4\u4E2D(In)",
|
|
90898
|
+
not_in: "\u503C\u4E0D\u5728\u8303\u56F4\u4E2D(NotIn)",
|
|
90899
|
+
like: "\u6587\u672C\u5305\u542B(%)",
|
|
90900
|
+
lift_like: "\u6587\u672C\u5DE6\u5305\u542B(%#)",
|
|
90901
|
+
right_like: "\u6587\u672C\u53F3\u5305\u542B(#%)",
|
|
90902
|
+
exists: "\u5B58\u5728(EXISTS)",
|
|
90903
|
+
not_exists: "\u4E0D\u5B58\u5728(NOTEXISTS)"
|
|
90772
90904
|
}
|
|
90773
90905
|
}
|
|
90774
90906
|
},
|