@ibiz-template/runtime 0.2.10 → 0.2.11
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 +11 -5
- 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 +4 -0
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +6 -5
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.d.ts +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.js +5 -2
- package/package.json +2 -2
- package/src/controller/control/form/edit-form/edit-form.controller.ts +4 -0
- package/src/controller/control/form/form-detail/form-item/form-item.controller.ts +6 -4
- package/src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.ts +5 -1
package/dist/index.esm.js
CHANGED
|
@@ -35986,6 +35986,10 @@ var FormItemController = class extends FormDetailController {
|
|
|
35986
35986
|
async onInit() {
|
|
35987
35987
|
await super.onInit();
|
|
35988
35988
|
this.state.required = !this.model.allowEmpty;
|
|
35989
|
+
const { enableCond } = this.model;
|
|
35990
|
+
if (!enableCond) {
|
|
35991
|
+
this.state.enableCondDisabled = true;
|
|
35992
|
+
}
|
|
35989
35993
|
if (this.model.editor && this.model.editor.editorType !== "HIDDEN") {
|
|
35990
35994
|
this.editorProvider = await getEditorProvider(this.model.editor);
|
|
35991
35995
|
if (this.editorProvider) {
|
|
@@ -36034,9 +36038,7 @@ var FormItemController = class extends FormDetailController {
|
|
|
36034
36038
|
calcEnableCond() {
|
|
36035
36039
|
const { enableCond } = this.model;
|
|
36036
36040
|
const isNew = this.data.srfuf === 0 /* CREATE */;
|
|
36037
|
-
if (!enableCond) {
|
|
36038
|
-
this.state.enableCondDisabled = true;
|
|
36039
|
-
} else if (isNew && enableCond === 2 || !isNew && enableCond === 1) {
|
|
36041
|
+
if (isNew && enableCond === 2 || !isNew && enableCond === 1) {
|
|
36040
36042
|
this.state.enableCondDisabled = true;
|
|
36041
36043
|
}
|
|
36042
36044
|
}
|
|
@@ -36996,6 +36998,7 @@ var EditFormController = class extends FormController {
|
|
|
36996
36998
|
await this.service.wfStart(context, params, this.data);
|
|
36997
36999
|
if (this.view.modal.mode === "ROUTE") {
|
|
36998
37000
|
ibiz.mc.command.send(this.data.$origin, "OBJECTUPDATED");
|
|
37001
|
+
ibiz.mc.command.send({ srfdecodename: "SysTodo" }, "OBJECTUPDATED");
|
|
36999
37002
|
}
|
|
37000
37003
|
} catch (error) {
|
|
37001
37004
|
this.actionNotification("WFSTARTERROR", {
|
|
@@ -37026,6 +37029,7 @@ var EditFormController = class extends FormController {
|
|
|
37026
37029
|
await this.service.wfSubmit(context, params, this.data);
|
|
37027
37030
|
if (this.view.modal.mode === "ROUTE") {
|
|
37028
37031
|
ibiz.mc.command.send(this.data.$origin, "OBJECTUPDATED");
|
|
37032
|
+
ibiz.mc.command.send({ srfdecodename: "SysTodo" }, "OBJECTUPDATED");
|
|
37029
37033
|
}
|
|
37030
37034
|
} catch (error) {
|
|
37031
37035
|
this.actionNotification("WFSUBMITERROR", {
|
|
@@ -37817,8 +37821,10 @@ var FormMDCtrlController = class extends FormDetailController {
|
|
|
37817
37821
|
|
|
37818
37822
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-item.controller.ts
|
|
37819
37823
|
var FormMDCtrlItemController = class extends EditFormController {
|
|
37820
|
-
constructor(model, context, params, ctx, data) {
|
|
37821
|
-
|
|
37824
|
+
constructor(model, context, params, ctx, data, form) {
|
|
37825
|
+
const { model: _model } = form;
|
|
37826
|
+
Object.assign(_model, model);
|
|
37827
|
+
super(_model, context, params, ctx);
|
|
37822
37828
|
this.state.data = data;
|
|
37823
37829
|
this.state.isSimple = true;
|
|
37824
37830
|
}
|