@ibiz-template/runtime 0.3.0 → 0.3.2
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 +65 -46
- package/dist/index.system.min.js +2 -2
- package/dist/index.system.min.js.map +1 -1
- package/out/config/global-config.d.ts.map +1 -1
- package/out/config/global-config.js +1 -0
- package/out/controller/control/form/edit-form/edit-form.service.js +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +1 -1
- package/out/controller/control/grid/grid/grid.controller.d.ts +8 -0
- package/out/controller/control/grid/grid/grid.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid/grid.controller.js +10 -0
- package/out/interface/common/i-global-config/i-global-grid-config.d.ts +9 -0
- package/out/interface/common/i-global-config/i-global-grid-config.d.ts.map +1 -1
- package/out/model/utils/util.js +2 -2
- package/out/service/service/async-action/async-action.service.d.ts.map +1 -1
- package/out/service/service/async-action/async-action.service.js +4 -0
- package/out/service/vo/tree-node-data/tree-data-set-node-data.d.ts.map +1 -1
- package/out/service/vo/tree-node-data/tree-data-set-node-data.js +5 -0
- package/package.json +3 -3
- package/src/config/global-config.ts +1 -0
- package/src/controller/control/form/edit-form/edit-form.service.ts +1 -1
- package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +1 -1
- package/src/controller/control/grid/grid/grid.controller.ts +11 -0
- package/src/interface/common/i-global-config/i-global-grid-config.ts +10 -0
- package/src/model/utils/util.ts +2 -2
- package/src/service/service/async-action/async-action.service.ts +4 -0
- package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +7 -1
package/dist/index.esm.js
CHANGED
|
@@ -9,7 +9,8 @@ var GlobalConfig = class {
|
|
|
9
9
|
// 全局表格配置
|
|
10
10
|
this.grid = {
|
|
11
11
|
editShowMode: "row",
|
|
12
|
-
editSaveMode: "cell-blur"
|
|
12
|
+
editSaveMode: "cell-blur",
|
|
13
|
+
overflowMode: "wrap"
|
|
13
14
|
};
|
|
14
15
|
// 全局菜单配置
|
|
15
16
|
this.appMenu = {
|
|
@@ -667,10 +668,10 @@ function parseUserParams(userParams) {
|
|
|
667
668
|
const splitArr = key.split(".");
|
|
668
669
|
switch (splitArr[0]) {
|
|
669
670
|
case "SRFNAVPARAM":
|
|
670
|
-
Object.assign(
|
|
671
|
+
Object.assign(navigateParams, { [splitArr[1]]: param });
|
|
671
672
|
break;
|
|
672
673
|
case "SRFNAVCTX":
|
|
673
|
-
Object.assign(
|
|
674
|
+
Object.assign(navigateContexts, { [splitArr[1]]: param });
|
|
674
675
|
break;
|
|
675
676
|
default:
|
|
676
677
|
Object.assign(other, { key: param });
|
|
@@ -8173,6 +8174,7 @@ var V7AuthService = class {
|
|
|
8173
8174
|
};
|
|
8174
8175
|
|
|
8175
8176
|
// src/service/service/async-action/async-action.service.ts
|
|
8177
|
+
import { isNil as isNil11 } from "ramda";
|
|
8176
8178
|
var AsyncActionService = class {
|
|
8177
8179
|
/**
|
|
8178
8180
|
* 获取异步操作的集合
|
|
@@ -8183,6 +8185,9 @@ var AsyncActionService = class {
|
|
|
8183
8185
|
*/
|
|
8184
8186
|
async fetch(params = {}) {
|
|
8185
8187
|
const res = await ibiz.net.post("/portal/asyncaction/all", params);
|
|
8188
|
+
if (isNil11(res.data)) {
|
|
8189
|
+
res.data = [];
|
|
8190
|
+
}
|
|
8186
8191
|
return res;
|
|
8187
8192
|
}
|
|
8188
8193
|
/**
|
|
@@ -8279,6 +8284,10 @@ var TreeDataSetNodeData = class extends TreeNodeData {
|
|
|
8279
8284
|
this.srfmajortext = this.deData.srfmajortext;
|
|
8280
8285
|
this.icon = this.calcIcon(model);
|
|
8281
8286
|
this.textHtml = this.calcTextHtml(model);
|
|
8287
|
+
if (model.leafFlagAppDEFieldId) {
|
|
8288
|
+
const value = data[model.leafFlagAppDEFieldId];
|
|
8289
|
+
this.leaf = [1, "1", true, "true"].includes(value);
|
|
8290
|
+
}
|
|
8282
8291
|
}
|
|
8283
8292
|
calcIcon(model) {
|
|
8284
8293
|
const icon = super.calcIcon(model) || {};
|
|
@@ -8361,7 +8370,7 @@ var TreeStaticNodeData = class extends TreeNodeData {
|
|
|
8361
8370
|
|
|
8362
8371
|
// src/service/vo/ui-map-field.ts
|
|
8363
8372
|
import { DataTypes as DataTypes2 } from "@ibiz-template/core";
|
|
8364
|
-
import { isNil as
|
|
8373
|
+
import { isNil as isNil12 } from "ramda";
|
|
8365
8374
|
var UIMapField = class {
|
|
8366
8375
|
constructor(uiKey, dataKey, opts = {}) {
|
|
8367
8376
|
/**
|
|
@@ -8382,10 +8391,10 @@ var UIMapField = class {
|
|
|
8382
8391
|
this.isRequestNeed = true;
|
|
8383
8392
|
this.uiKey = uiKey;
|
|
8384
8393
|
this.dataKey = dataKey;
|
|
8385
|
-
if (!
|
|
8394
|
+
if (!isNil12(opts.isOriginField)) {
|
|
8386
8395
|
this.isOriginField = opts.isOriginField;
|
|
8387
8396
|
}
|
|
8388
|
-
if (!
|
|
8397
|
+
if (!isNil12(opts.dataType)) {
|
|
8389
8398
|
this.dataType = opts.dataType;
|
|
8390
8399
|
}
|
|
8391
8400
|
}
|
|
@@ -8400,7 +8409,7 @@ var UIMapField = class {
|
|
|
8400
8409
|
return value;
|
|
8401
8410
|
}
|
|
8402
8411
|
if (DataTypes2.isNumber(this.dataType)) {
|
|
8403
|
-
const numVal = !
|
|
8412
|
+
const numVal = !isNil12(value) && value !== "" ? Number(value) : value;
|
|
8404
8413
|
if (Number.isNaN(numVal)) {
|
|
8405
8414
|
ibiz.log.debug("".concat(value, "\u4E0D\u80FD\u8F6C\u6362\u6210\u6570\u5B57"));
|
|
8406
8415
|
return value;
|
|
@@ -9382,7 +9391,7 @@ var PanelNotifyState = /* @__PURE__ */ ((PanelNotifyState2) => {
|
|
|
9382
9391
|
// src/controller/common/view/view.controller.ts
|
|
9383
9392
|
import { createUUID as createUUID6, notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
9384
9393
|
import { IBizContext as IBizContext2, RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
9385
|
-
import { isEmpty as isEmpty8, isNil as
|
|
9394
|
+
import { isEmpty as isEmpty8, isNil as isNil18, isNotNil as isNotNil2 } from "ramda";
|
|
9386
9395
|
|
|
9387
9396
|
// src/controller/utils/loading/loading.state.ts
|
|
9388
9397
|
import { NOOP } from "@ibiz-template/core";
|
|
@@ -9994,9 +10003,9 @@ function hasSubRoute(routeDepth) {
|
|
|
9994
10003
|
}
|
|
9995
10004
|
|
|
9996
10005
|
// src/controller/utils/util/util.ts
|
|
9997
|
-
import { isNil as
|
|
10006
|
+
import { isNil as isNil13 } from "ramda";
|
|
9998
10007
|
function isValueChange(value, value2) {
|
|
9999
|
-
if ((
|
|
10008
|
+
if ((isNil13(value) || value === "") && (isNil13(value2) || value2 === "")) {
|
|
10000
10009
|
return false;
|
|
10001
10010
|
}
|
|
10002
10011
|
return value !== value2;
|
|
@@ -10012,7 +10021,7 @@ function getOriginData(data) {
|
|
|
10012
10021
|
// src/controller/utils/value-rule/value-rule.ts
|
|
10013
10022
|
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
10014
10023
|
import { isNilOrEmpty as isNilOrEmpty7, isNumber } from "qx-util";
|
|
10015
|
-
import { isNil as
|
|
10024
|
+
import { isNil as isNil14 } from "ramda";
|
|
10016
10025
|
function generateRules(itemVRs, name, valueItemName) {
|
|
10017
10026
|
const rules = [];
|
|
10018
10027
|
itemVRs.forEach((item) => {
|
|
@@ -10077,7 +10086,7 @@ function generateEditorRules(editor) {
|
|
|
10077
10086
|
if (maxLength) {
|
|
10078
10087
|
rules.push({
|
|
10079
10088
|
validator: (rule, value, callback) => {
|
|
10080
|
-
if (!
|
|
10089
|
+
if (!isNil14(value) && value.length > maxLength) {
|
|
10081
10090
|
callback(
|
|
10082
10091
|
new Error(
|
|
10083
10092
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -10092,7 +10101,7 @@ function generateEditorRules(editor) {
|
|
|
10092
10101
|
if (minLength) {
|
|
10093
10102
|
rules.push({
|
|
10094
10103
|
validator: (rule, value, callback) => {
|
|
10095
|
-
if (!
|
|
10104
|
+
if (!isNil14(value) && value.length < minLength) {
|
|
10096
10105
|
callback(
|
|
10097
10106
|
new Error(
|
|
10098
10107
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -10104,10 +10113,10 @@ function generateEditorRules(editor) {
|
|
|
10104
10113
|
}
|
|
10105
10114
|
});
|
|
10106
10115
|
}
|
|
10107
|
-
if (!
|
|
10116
|
+
if (!isNil14(maxValue)) {
|
|
10108
10117
|
rules.push({
|
|
10109
10118
|
validator: (rule, value, callback) => {
|
|
10110
|
-
if (!
|
|
10119
|
+
if (!isNil14(value) && isNumber(value) && value > maxValue) {
|
|
10111
10120
|
callback(new Error("\u503C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxValue)));
|
|
10112
10121
|
} else {
|
|
10113
10122
|
return true;
|
|
@@ -10115,10 +10124,10 @@ function generateEditorRules(editor) {
|
|
|
10115
10124
|
}
|
|
10116
10125
|
});
|
|
10117
10126
|
}
|
|
10118
|
-
if (!
|
|
10127
|
+
if (!isNil14(minValue)) {
|
|
10119
10128
|
rules.push({
|
|
10120
10129
|
validator: (rule, value, callback) => {
|
|
10121
|
-
if (!
|
|
10130
|
+
if (!isNil14(value) && isNumber(value) && value < minValue) {
|
|
10122
10131
|
callback(new Error("\u503C\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minValue)));
|
|
10123
10132
|
} else {
|
|
10124
10133
|
return true;
|
|
@@ -10131,7 +10140,7 @@ function generateEditorRules(editor) {
|
|
|
10131
10140
|
|
|
10132
10141
|
// src/controller/utils/value-ex/value-ex.ts
|
|
10133
10142
|
import { RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
10134
|
-
import { isNil as
|
|
10143
|
+
import { isNil as isNil15, mergeLeft } from "ramda";
|
|
10135
10144
|
var ValueExUtil = class {
|
|
10136
10145
|
/**
|
|
10137
10146
|
* 合并默认值
|
|
@@ -10156,7 +10165,7 @@ var ValueExUtil = class {
|
|
|
10156
10165
|
* @return {*} {string}
|
|
10157
10166
|
*/
|
|
10158
10167
|
static toText(options, value) {
|
|
10159
|
-
if (
|
|
10168
|
+
if (isNil15(value) || value === "") {
|
|
10160
10169
|
return "";
|
|
10161
10170
|
}
|
|
10162
10171
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
@@ -10181,12 +10190,12 @@ var ValueExUtil = class {
|
|
|
10181
10190
|
import { RuntimeError as RuntimeError25, ModelError as ModelError16 } from "@ibiz-template/core";
|
|
10182
10191
|
import dayjs from "dayjs";
|
|
10183
10192
|
import { createUUID as createUUID5 } from "qx-util";
|
|
10184
|
-
import { isNil as
|
|
10193
|
+
import { isNil as isNil16, isNotNil } from "ramda";
|
|
10185
10194
|
function getDefaultValue(opts, origins) {
|
|
10186
10195
|
var _a;
|
|
10187
10196
|
const { name, valueType, defaultValue, valueFormat } = opts;
|
|
10188
10197
|
const { data, context, params } = origins;
|
|
10189
|
-
if (
|
|
10198
|
+
if (isNil16(valueType) && isNil16(defaultValue)) {
|
|
10190
10199
|
return;
|
|
10191
10200
|
}
|
|
10192
10201
|
if (valueType === "RESET") {
|
|
@@ -10512,7 +10521,7 @@ var BaseController = class {
|
|
|
10512
10521
|
|
|
10513
10522
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
10514
10523
|
import { RuntimeError as RuntimeError27, RuntimeModelError as RuntimeModelError20 } from "@ibiz-template/core";
|
|
10515
|
-
import { isNil as
|
|
10524
|
+
import { isNil as isNil17, mergeRight as mergeRight2 } from "ramda";
|
|
10516
10525
|
var ViewMsgController = class _ViewMsgController {
|
|
10517
10526
|
constructor(msgGroupId) {
|
|
10518
10527
|
this.msgGroupId = msgGroupId;
|
|
@@ -10697,19 +10706,19 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
10697
10706
|
const removeModeField = this.getDeFieldName(entity, removeFlagAppDEFieldId);
|
|
10698
10707
|
const deViewMessages = dataSet.map((item) => {
|
|
10699
10708
|
const message = {};
|
|
10700
|
-
if (positionField && !
|
|
10709
|
+
if (positionField && !isNil17(item[positionField])) {
|
|
10701
10710
|
message.position = item[positionField];
|
|
10702
10711
|
}
|
|
10703
|
-
if (titleField && !
|
|
10712
|
+
if (titleField && !isNil17(item[titleField])) {
|
|
10704
10713
|
message.title = item[titleField];
|
|
10705
10714
|
}
|
|
10706
|
-
if (messageField && !
|
|
10715
|
+
if (messageField && !isNil17(item[messageField])) {
|
|
10707
10716
|
message.message = item[messageField];
|
|
10708
10717
|
}
|
|
10709
|
-
if (typeField && !
|
|
10718
|
+
if (typeField && !isNil17(item[typeField])) {
|
|
10710
10719
|
message.messageType = item[typeField];
|
|
10711
10720
|
}
|
|
10712
|
-
if (removeModeField && !
|
|
10721
|
+
if (removeModeField && !isNil17(item[removeModeField])) {
|
|
10713
10722
|
message.removeMode = item[removeModeField];
|
|
10714
10723
|
}
|
|
10715
10724
|
return mergeRight2(basicMsg, message);
|
|
@@ -10931,7 +10940,7 @@ var ViewController = class extends BaseController {
|
|
|
10931
10940
|
*/
|
|
10932
10941
|
handleContextParams() {
|
|
10933
10942
|
this.context.srfappid = this.model.appId;
|
|
10934
|
-
if (
|
|
10943
|
+
if (isNil18(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
|
|
10935
10944
|
this.context.srfsessionid = createUUID6();
|
|
10936
10945
|
}
|
|
10937
10946
|
const navContexts = this.model.appViewNavContexts;
|
|
@@ -11251,7 +11260,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
11251
11260
|
|
|
11252
11261
|
// src/controller/common/control/control.controller.ts
|
|
11253
11262
|
import { IBizContext as IBizContext3, IBizParams, NoticeError } from "@ibiz-template/core";
|
|
11254
|
-
import { isNil as
|
|
11263
|
+
import { isNil as isNil19 } from "ramda";
|
|
11255
11264
|
import { notNilEmpty as notNilEmpty7 } from "qx-util";
|
|
11256
11265
|
var ControlController = class extends BaseController {
|
|
11257
11266
|
/**
|
|
@@ -11515,7 +11524,7 @@ var ControlController = class extends BaseController {
|
|
|
11515
11524
|
let message;
|
|
11516
11525
|
let duration;
|
|
11517
11526
|
if (msgItem && msgItem.content) {
|
|
11518
|
-
duration =
|
|
11527
|
+
duration = isNil19(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
|
|
11519
11528
|
const scriptParams = { ...this.getEventArgs() };
|
|
11520
11529
|
if (opts == null ? void 0 : opts.data) {
|
|
11521
11530
|
scriptParams.data = opts.data;
|
|
@@ -12341,7 +12350,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
12341
12350
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
12342
12351
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
12343
12352
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
12344
|
-
import { clone as clone14, isNil as
|
|
12353
|
+
import { clone as clone14, isNil as isNil20, mergeDeepRight } from "ramda";
|
|
12345
12354
|
dayjs3.extend(minMax);
|
|
12346
12355
|
dayjs3.extend(isSameOrBefore);
|
|
12347
12356
|
dayjs3.extend(quarterOfYear);
|
|
@@ -12430,10 +12439,10 @@ var BaseSeriesGenerator = class {
|
|
|
12430
12439
|
* @return {*} {(string | undefined)}
|
|
12431
12440
|
*/
|
|
12432
12441
|
translateVal(codeListKey, val, isExclude = false) {
|
|
12433
|
-
if (
|
|
12442
|
+
if (isNil20(val)) {
|
|
12434
12443
|
return void 0;
|
|
12435
12444
|
}
|
|
12436
|
-
if (
|
|
12445
|
+
if (isNil20(codeListKey)) {
|
|
12437
12446
|
return val;
|
|
12438
12447
|
}
|
|
12439
12448
|
const codeListItems = this.chartGenerator.codeListMap.get(codeListKey);
|
|
@@ -12463,7 +12472,7 @@ var BaseSeriesGenerator = class {
|
|
|
12463
12472
|
seriesCodeListId,
|
|
12464
12473
|
item[this.groupField]
|
|
12465
12474
|
);
|
|
12466
|
-
if (
|
|
12475
|
+
if (isNil20(groupVal)) {
|
|
12467
12476
|
return;
|
|
12468
12477
|
}
|
|
12469
12478
|
group = groupVal;
|
|
@@ -15890,7 +15899,7 @@ var RawItemPortletController = class extends PortletPartController {
|
|
|
15890
15899
|
|
|
15891
15900
|
// src/controller/control/data-view/data-view.controller.ts
|
|
15892
15901
|
import { RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
15893
|
-
import { isNil as
|
|
15902
|
+
import { isNil as isNil21 } from "ramda";
|
|
15894
15903
|
|
|
15895
15904
|
// src/controller/control/data-view/data-view.service.ts
|
|
15896
15905
|
var DataViewControlService = class extends MDControlService {
|
|
@@ -16174,7 +16183,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
16174
16183
|
const groupMap = /* @__PURE__ */ new Map();
|
|
16175
16184
|
items.forEach((item) => {
|
|
16176
16185
|
const groupVal = item[groupAppDEFieldId];
|
|
16177
|
-
if (
|
|
16186
|
+
if (isNil21(groupVal)) {
|
|
16178
16187
|
return;
|
|
16179
16188
|
}
|
|
16180
16189
|
if (!groupMap.has(groupVal)) {
|
|
@@ -18184,7 +18193,7 @@ var FormItemController = class extends FormDetailController {
|
|
|
18184
18193
|
* @readonly
|
|
18185
18194
|
*/
|
|
18186
18195
|
get name() {
|
|
18187
|
-
return this.model.
|
|
18196
|
+
return this.model.id;
|
|
18188
18197
|
}
|
|
18189
18198
|
/**
|
|
18190
18199
|
* 表单项对应属性的值
|
|
@@ -18939,7 +18948,7 @@ var EditFormService = class extends ControlService {
|
|
|
18939
18948
|
(item) => {
|
|
18940
18949
|
if (item.detailType === "FORMITEM" || item.detailType === "MDCTRL") {
|
|
18941
18950
|
const formItem = item;
|
|
18942
|
-
const uiKey = formItem.
|
|
18951
|
+
const uiKey = formItem.id.toLowerCase();
|
|
18943
18952
|
const deField = formItem.fieldName || item.appDEFieldId;
|
|
18944
18953
|
let mapField;
|
|
18945
18954
|
if (deField) {
|
|
@@ -20642,6 +20651,16 @@ var GridController = class extends MDControlController {
|
|
|
20642
20651
|
get allowRowEdit() {
|
|
20643
20652
|
return !!this.model.enableRowEdit && this.state.rowEditOpen;
|
|
20644
20653
|
}
|
|
20654
|
+
/**
|
|
20655
|
+
* 单元格超出呈现模式
|
|
20656
|
+
* @author lxm
|
|
20657
|
+
* @date 2023-11-17 01:56:26
|
|
20658
|
+
* @readonly
|
|
20659
|
+
* @type {('wrap' | 'ellipsis')}
|
|
20660
|
+
*/
|
|
20661
|
+
get overflowMode() {
|
|
20662
|
+
return ibiz.config.grid.overflowMode;
|
|
20663
|
+
}
|
|
20645
20664
|
initState() {
|
|
20646
20665
|
super.initState();
|
|
20647
20666
|
this.state.rows = [];
|
|
@@ -21374,7 +21393,7 @@ var GridController = class extends MDControlController {
|
|
|
21374
21393
|
import { DataTypes as DataTypes3, ModelError as ModelError26, plus as plus2 } from "@ibiz-template/core";
|
|
21375
21394
|
import dayjs4 from "dayjs";
|
|
21376
21395
|
import { debounce as debounce3 } from "lodash-es";
|
|
21377
|
-
import { clone as clone22, isNil as
|
|
21396
|
+
import { clone as clone22, isNil as isNil22 } from "ramda";
|
|
21378
21397
|
var GridFieldColumnController = class extends GridColumnController {
|
|
21379
21398
|
constructor() {
|
|
21380
21399
|
super(...arguments);
|
|
@@ -21552,7 +21571,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
21552
21571
|
return;
|
|
21553
21572
|
}
|
|
21554
21573
|
const fieldName = aggField || this.model.id;
|
|
21555
|
-
items = items.filter((item) => !
|
|
21574
|
+
items = items.filter((item) => !isNil22(item[fieldName]));
|
|
21556
21575
|
let aggValue;
|
|
21557
21576
|
if (this.grid.model.aggMode === "PAGE") {
|
|
21558
21577
|
switch (aggMode) {
|
|
@@ -22888,7 +22907,7 @@ var PickupViewPanelController = class extends ControlController {
|
|
|
22888
22907
|
|
|
22889
22908
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
22890
22909
|
import { recursiveIterate as recursiveIterate7 } from "@ibiz-template/core";
|
|
22891
|
-
import { isNil as
|
|
22910
|
+
import { isNil as isNil23 } from "ramda";
|
|
22892
22911
|
|
|
22893
22912
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
22894
22913
|
import { RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
@@ -23095,7 +23114,7 @@ var SearchBarController = class extends ControlController {
|
|
|
23095
23114
|
let hasError = false;
|
|
23096
23115
|
recursiveIterate7(this.state.filterNodes[0], (node) => {
|
|
23097
23116
|
if (node.leaf) {
|
|
23098
|
-
if (node.field && node.valueOP && !
|
|
23117
|
+
if (node.field && node.valueOP && !isNil23(node.value)) {
|
|
23099
23118
|
hasFilter = true;
|
|
23100
23119
|
} else {
|
|
23101
23120
|
hasError = true;
|
|
@@ -24289,7 +24308,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
24289
24308
|
|
|
24290
24309
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
24291
24310
|
import { RuntimeModelError as RuntimeModelError56 } from "@ibiz-template/core";
|
|
24292
|
-
import { isNil as
|
|
24311
|
+
import { isNil as isNil24 } from "ramda";
|
|
24293
24312
|
|
|
24294
24313
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
24295
24314
|
var MDCtrlService = class extends MDControlService {
|
|
@@ -24532,7 +24551,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
24532
24551
|
const groupMap = /* @__PURE__ */ new Map();
|
|
24533
24552
|
items.forEach((item) => {
|
|
24534
24553
|
const groupVal = item[groupAppDEFieldId];
|
|
24535
|
-
if (
|
|
24554
|
+
if (isNil24(groupVal)) {
|
|
24536
24555
|
return;
|
|
24537
24556
|
}
|
|
24538
24557
|
if (!groupMap.has(groupVal)) {
|
|
@@ -24609,7 +24628,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
24609
24628
|
|
|
24610
24629
|
// src/controller/control/kanban/kanban.controller.ts
|
|
24611
24630
|
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError57 } from "@ibiz-template/core";
|
|
24612
|
-
import { isNil as
|
|
24631
|
+
import { isNil as isNil25 } from "ramda";
|
|
24613
24632
|
|
|
24614
24633
|
// src/controller/control/kanban/kanban.service.ts
|
|
24615
24634
|
var KanbanService = class extends DataViewControlService {
|
|
@@ -24691,7 +24710,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
24691
24710
|
const isAsc = minorSortDir === "ASC";
|
|
24692
24711
|
items.forEach((item) => {
|
|
24693
24712
|
const sortValue = item[sortField];
|
|
24694
|
-
if (
|
|
24713
|
+
if (isNil25(sortValue)) {
|
|
24695
24714
|
item[sortField] = 0;
|
|
24696
24715
|
} else {
|
|
24697
24716
|
const toNum = Number(sortValue);
|