@ibiz-template/runtime 0.2.16 → 0.2.17
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 +56 -8
- package/dist/index.system.min.js +1 -1
- package/dist/index.system.min.js.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/edit-form/edit-form.controller.js +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.d.ts +6 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.js +8 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.js +3 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.d.ts +1 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.js +4 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts +6 -0
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.js +8 -0
- package/out/register/helper/panel-item-register.d.ts.map +1 -1
- package/out/register/helper/panel-item-register.js +12 -2
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +12 -5
- package/package.json +2 -2
- package/src/controller/control/form/edit-form/edit-form.controller.ts +1 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-content-type.controller.ts +9 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts +9 -0
- package/src/register/helper/panel-item-register.ts +21 -3
- package/src/ui-action/provider/ui-action-provider-base.ts +12 -6
package/dist/index.esm.js
CHANGED
|
@@ -21173,7 +21173,9 @@ async function getPanelItemProvider(model) {
|
|
|
21173
21173
|
const key = "CONTAINER_".concat(predefinedType);
|
|
21174
21174
|
provider = getProvider6(key);
|
|
21175
21175
|
if (!provider) {
|
|
21176
|
-
ibiz.log.error(
|
|
21176
|
+
ibiz.log.error(
|
|
21177
|
+
"\u627E\u4E0D\u5230\u9762\u677F\u5BB9\u5668\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668\uFF0C\u6CE8\u518Ckey\u4E3A").concat(key)
|
|
21178
|
+
);
|
|
21177
21179
|
} else {
|
|
21178
21180
|
return provider;
|
|
21179
21181
|
}
|
|
@@ -21184,12 +21186,22 @@ async function getPanelItemProvider(model) {
|
|
|
21184
21186
|
provider = getProvider6(key);
|
|
21185
21187
|
if (!provider) {
|
|
21186
21188
|
ibiz.log.error(
|
|
21187
|
-
"\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u76F4\u63A5\u5185\u5BB9\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668")
|
|
21189
|
+
"\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u76F4\u63A5\u5185\u5BB9\u9884\u7F6E\u7C7B\u578B\u4E3A".concat(predefinedType, "\u7684\u9002\u914D\u5668\uFF0C\u6CE8\u518Ckey\u4E3A").concat(key)
|
|
21188
21190
|
);
|
|
21189
21191
|
} else {
|
|
21190
21192
|
return provider;
|
|
21191
21193
|
}
|
|
21192
21194
|
}
|
|
21195
|
+
if (itemType === "FIELD") {
|
|
21196
|
+
const { editor } = model;
|
|
21197
|
+
if (editor && editor.predefinedType) {
|
|
21198
|
+
const key = "FIELD_".concat(editor.predefinedType.toUpperCase());
|
|
21199
|
+
provider = getProvider6(key);
|
|
21200
|
+
if (provider) {
|
|
21201
|
+
return provider;
|
|
21202
|
+
}
|
|
21203
|
+
}
|
|
21204
|
+
}
|
|
21193
21205
|
provider = getProvider6(itemType);
|
|
21194
21206
|
if (!provider) {
|
|
21195
21207
|
ibiz.log.error("\u627E\u4E0D\u5230\u9762\u677F\u6210\u5458\u7C7B\u578B".concat(itemType, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
@@ -32725,16 +32737,21 @@ var UIActionProviderBase = class {
|
|
|
32725
32737
|
if (result.cancel === true) {
|
|
32726
32738
|
return this.returnError(result);
|
|
32727
32739
|
}
|
|
32728
|
-
const
|
|
32740
|
+
const nextActionParams = {
|
|
32729
32741
|
...args,
|
|
32730
32742
|
context: result.nextContext || context,
|
|
32731
32743
|
data: result.data || data,
|
|
32732
32744
|
params: result.nextParams || params
|
|
32733
|
-
}
|
|
32734
|
-
if (
|
|
32735
|
-
|
|
32736
|
-
|
|
32737
|
-
|
|
32745
|
+
};
|
|
32746
|
+
if (action.closeEditView) {
|
|
32747
|
+
this.doNextAction(action, nextActionParams);
|
|
32748
|
+
} else {
|
|
32749
|
+
const nextResult = await this.doNextAction(action, nextActionParams);
|
|
32750
|
+
if (nextResult) {
|
|
32751
|
+
Object.assign(result, nextResult);
|
|
32752
|
+
if (nextResult.cancel === true) {
|
|
32753
|
+
return this.returnError(result);
|
|
32754
|
+
}
|
|
32738
32755
|
}
|
|
32739
32756
|
}
|
|
32740
32757
|
if (action.uilogicAttachMode === "AFTER") {
|
|
@@ -36340,6 +36357,13 @@ var FormMDCtrlContentTypeController = class {
|
|
|
36340
36357
|
async validate() {
|
|
36341
36358
|
return true;
|
|
36342
36359
|
}
|
|
36360
|
+
/**
|
|
36361
|
+
* 刷新数据
|
|
36362
|
+
* @author lxm
|
|
36363
|
+
* @date 2023-11-13 11:25:57
|
|
36364
|
+
*/
|
|
36365
|
+
refresh() {
|
|
36366
|
+
}
|
|
36343
36367
|
};
|
|
36344
36368
|
|
|
36345
36369
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl.controller.ts
|
|
@@ -36465,6 +36489,10 @@ var FormMDCtrlDataViewController = class extends FormMDCtrlControlController {
|
|
|
36465
36489
|
*/
|
|
36466
36490
|
async onDataInsert() {
|
|
36467
36491
|
}
|
|
36492
|
+
refresh() {
|
|
36493
|
+
var _a;
|
|
36494
|
+
(_a = this.dataViewController) == null ? void 0 : _a.refresh();
|
|
36495
|
+
}
|
|
36468
36496
|
};
|
|
36469
36497
|
|
|
36470
36498
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.controller.ts
|
|
@@ -36948,6 +36976,7 @@ var EditFormController = class extends FormController {
|
|
|
36948
36976
|
if (res.data) {
|
|
36949
36977
|
if (noFillBack) {
|
|
36950
36978
|
this.data.updatedate = res.data.updatedate;
|
|
36979
|
+
this.data.srfkey = res.data.srfkey;
|
|
36951
36980
|
} else {
|
|
36952
36981
|
mergeInLeft(this.data, res.data);
|
|
36953
36982
|
}
|
|
@@ -37347,6 +37376,9 @@ var FormMDCtrlFormController = class extends FormMDCtrlControlController {
|
|
|
37347
37376
|
);
|
|
37348
37377
|
return values.findIndex((value) => !value) === -1;
|
|
37349
37378
|
}
|
|
37379
|
+
refresh() {
|
|
37380
|
+
this.initData();
|
|
37381
|
+
}
|
|
37350
37382
|
};
|
|
37351
37383
|
|
|
37352
37384
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.controller.ts
|
|
@@ -37488,6 +37520,10 @@ var FormMDCtrlGridController = class extends FormMDCtrlControlController {
|
|
|
37488
37520
|
);
|
|
37489
37521
|
return values.findIndex((value) => !value) === -1;
|
|
37490
37522
|
}
|
|
37523
|
+
refresh() {
|
|
37524
|
+
var _a;
|
|
37525
|
+
(_a = this.gridController) == null ? void 0 : _a.refresh();
|
|
37526
|
+
}
|
|
37491
37527
|
};
|
|
37492
37528
|
|
|
37493
37529
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.controller.ts
|
|
@@ -37584,6 +37620,10 @@ var FormMDCtrlListController = class extends FormMDCtrlControlController {
|
|
|
37584
37620
|
*/
|
|
37585
37621
|
async onDataInsert() {
|
|
37586
37622
|
}
|
|
37623
|
+
refresh() {
|
|
37624
|
+
var _a;
|
|
37625
|
+
(_a = this.listController) == null ? void 0 : _a.refresh();
|
|
37626
|
+
}
|
|
37587
37627
|
};
|
|
37588
37628
|
|
|
37589
37629
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form.controller.ts
|
|
@@ -37931,6 +37971,14 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
37931
37971
|
);
|
|
37932
37972
|
}
|
|
37933
37973
|
}
|
|
37974
|
+
/**
|
|
37975
|
+
*
|
|
37976
|
+
* @author lxm
|
|
37977
|
+
* @date 2023-11-13 11:21:06
|
|
37978
|
+
*/
|
|
37979
|
+
refresh() {
|
|
37980
|
+
this.mdCtrlContentController.refresh();
|
|
37981
|
+
}
|
|
37934
37982
|
};
|
|
37935
37983
|
|
|
37936
37984
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.ts
|