@ibiz-template/runtime 0.1.31 → 0.1.32
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 +13 -4
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/constant/view-call-tag.d.ts +5 -1
- package/out/constant/view-call-tag.d.ts.map +1 -1
- package/out/constant/view-call-tag.js +4 -0
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.d.ts.map +1 -1
- package/out/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.js +3 -1
- package/out/interface/service/code-list-item/code-list-item.d.ts +7 -0
- package/out/interface/service/code-list-item/code-list-item.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.d.ts.map +1 -1
- package/out/service/service/code-list/code-list.service.js +1 -0
- package/out/ui-action/uiaction-util.d.ts.map +1 -1
- package/out/ui-action/uiaction-util.js +8 -1
- package/package.json +3 -3
- package/src/constant/view-call-tag.ts +4 -0
- package/src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts +5 -1
- package/src/interface/service/code-list-item/code-list-item.ts +8 -0
- package/src/service/service/code-list/code-list.service.ts +1 -0
- package/src/ui-action/uiaction-util.ts +8 -1
package/dist/index.esm.js
CHANGED
|
@@ -8385,6 +8385,7 @@ var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
|
|
|
8385
8385
|
ViewCallTag2["LOAD"] = "Load";
|
|
8386
8386
|
ViewCallTag2["GET_DATA"] = "GetData";
|
|
8387
8387
|
ViewCallTag2["GET_ALL_DATA"] = "GetAllData";
|
|
8388
|
+
ViewCallTag2["VALIDATE"] = "Validate";
|
|
8388
8389
|
return ViewCallTag2;
|
|
8389
8390
|
})(ViewCallTag || {});
|
|
8390
8391
|
|
|
@@ -10471,7 +10472,8 @@ var CodeListService = class {
|
|
|
10471
10472
|
value: isValueNumber ? Number(codeItem.value) : codeItem.value,
|
|
10472
10473
|
color: codeItem.color,
|
|
10473
10474
|
id: codeItem.codeName,
|
|
10474
|
-
textCls: codeItem.textCls
|
|
10475
|
+
textCls: codeItem.textCls,
|
|
10476
|
+
disableSelect: codeItem.disableSelect
|
|
10475
10477
|
};
|
|
10476
10478
|
if ((_a = codeItem.codeItems) == null ? void 0 : _a.length) {
|
|
10477
10479
|
_codeItem.children = this.formatStaticItems(
|
|
@@ -19802,6 +19804,12 @@ var UIActionUtil = class {
|
|
|
19802
19804
|
if (!action) {
|
|
19803
19805
|
throw new RuntimeError36("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
19804
19806
|
}
|
|
19807
|
+
if (action.actionTarget === "SINGLEDATA") {
|
|
19808
|
+
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
19809
|
+
if (validateResult === false) {
|
|
19810
|
+
return { cancel: true };
|
|
19811
|
+
}
|
|
19812
|
+
}
|
|
19805
19813
|
const provider = await getUIActionProvider(action);
|
|
19806
19814
|
return provider.exec(action, params);
|
|
19807
19815
|
}
|
|
@@ -25902,7 +25910,7 @@ var GridController = class extends MDControlController {
|
|
|
25902
25910
|
// src/controller/control/grid/grid-column/grid-field-column/grid-field-column.controller.ts
|
|
25903
25911
|
import { DataTypes as DataTypes3, ModelError as ModelError26 } from "@ibiz-template/core";
|
|
25904
25912
|
import dayjs4 from "dayjs";
|
|
25905
|
-
import { clone as clone18 } from "ramda";
|
|
25913
|
+
import { clone as clone18, isNil as isNil19 } from "ramda";
|
|
25906
25914
|
var GridFieldColumnController = class extends GridColumnController {
|
|
25907
25915
|
constructor() {
|
|
25908
25916
|
super(...arguments);
|
|
@@ -26072,6 +26080,7 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
26072
26080
|
return;
|
|
26073
26081
|
}
|
|
26074
26082
|
const fieldName = aggField || this.model.id;
|
|
26083
|
+
items = items.filter((item) => !isNil19(item[fieldName]));
|
|
26075
26084
|
let aggValue;
|
|
26076
26085
|
if (this.grid.model.aggMode === "PAGE") {
|
|
26077
26086
|
switch (aggMode) {
|
|
@@ -28684,7 +28693,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28684
28693
|
|
|
28685
28694
|
// src/controller/control/kanban/kanban.controller.ts
|
|
28686
28695
|
import { RuntimeError as RuntimeError47, RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
28687
|
-
import { isNil as
|
|
28696
|
+
import { isNil as isNil20 } from "ramda";
|
|
28688
28697
|
|
|
28689
28698
|
// src/controller/control/kanban/kanban.service.ts
|
|
28690
28699
|
var KanbanService = class extends DataViewControlService {
|
|
@@ -28766,7 +28775,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28766
28775
|
const isAsc = minorSortDir === "ASC";
|
|
28767
28776
|
items.forEach((item) => {
|
|
28768
28777
|
const sortValue = item[sortField];
|
|
28769
|
-
if (
|
|
28778
|
+
if (isNil20(sortValue)) {
|
|
28770
28779
|
item[sortField] = 0;
|
|
28771
28780
|
} else {
|
|
28772
28781
|
const toNum = Number(sortValue);
|