@ibiz-template/runtime 0.7.41-alpha.47 → 0.7.41-alpha.51
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 +35 -4
- package/dist/index.system.min.js +1 -1
- package/out/command/app/open-app-view/open-app-view.js +4 -4
- package/out/controller/control/toolbar/toolbar.controller.d.ts.map +1 -1
- package/out/controller/control/toolbar/toolbar.controller.js +4 -0
- package/out/controller/utils/jsonschema/entity.d.ts.map +1 -1
- package/out/controller/utils/jsonschema/entity.js +4 -0
- package/out/ui-action/provider/ui-action-provider-base.d.ts.map +1 -1
- package/out/ui-action/provider/ui-action-provider-base.js +2 -1
- package/out/utils/index.d.ts +1 -0
- package/out/utils/index.d.ts.map +1 -1
- package/out/utils/index.js +1 -0
- package/out/utils/stringify-util/stringify-util.d.ts +8 -0
- package/out/utils/stringify-util/stringify-util.d.ts.map +1 -0
- package/out/utils/stringify-util/stringify-util.js +18 -0
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -36505,6 +36505,9 @@ async function fetchImportSchemas(opts) {
|
|
|
36505
36505
|
// src/controller/utils/jsonschema/entity.ts
|
|
36506
36506
|
import qs3 from "qs";
|
|
36507
36507
|
async function getEntitySchema(entityId, context, params = {}) {
|
|
36508
|
+
if (params && Object.prototype.hasOwnProperty.call(params, "srfdefdata")) {
|
|
36509
|
+
delete params.srfdefdata;
|
|
36510
|
+
}
|
|
36508
36511
|
const strParams = qs3.stringify(params);
|
|
36509
36512
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
36510
36513
|
const entity = await ibiz.hub.getAppDataEntity(entityId, context.srfappid);
|
|
@@ -42636,7 +42639,17 @@ var UIActionProviderBase = class {
|
|
|
42636
42639
|
ibiz.i18n.t("runtime.logicScheduler.executor.noConfiguredLogic")
|
|
42637
42640
|
);
|
|
42638
42641
|
}
|
|
42639
|
-
const
|
|
42642
|
+
const { resultContext, resultParams } = await this.handleParams(
|
|
42643
|
+
action,
|
|
42644
|
+
context,
|
|
42645
|
+
data,
|
|
42646
|
+
params
|
|
42647
|
+
);
|
|
42648
|
+
const res = await execUILogic(appDEUILogicId, appDataEntityId, {
|
|
42649
|
+
...args,
|
|
42650
|
+
context: resultContext,
|
|
42651
|
+
params: { ...params, ...resultParams }
|
|
42652
|
+
});
|
|
42640
42653
|
if (res)
|
|
42641
42654
|
result.data = Array.isArray(res) ? res : [res];
|
|
42642
42655
|
return result;
|
|
@@ -43727,6 +43740,9 @@ var ToolbarController = class extends ControlController {
|
|
|
43727
43740
|
}
|
|
43728
43741
|
try {
|
|
43729
43742
|
const args = await this.getToolbarEventArgs();
|
|
43743
|
+
args.context = Object.assign(args.context, {
|
|
43744
|
+
srfappid: item.appId
|
|
43745
|
+
});
|
|
43730
43746
|
args.params = Object.assign(param, args.params);
|
|
43731
43747
|
await UIActionUtil.execAndResolved(
|
|
43732
43748
|
actionId,
|
|
@@ -83286,6 +83302,20 @@ var JsonUtil = class {
|
|
|
83286
83302
|
}
|
|
83287
83303
|
};
|
|
83288
83304
|
|
|
83305
|
+
// src/utils/stringify-util/stringify-util.ts
|
|
83306
|
+
function stringifyObj(obj) {
|
|
83307
|
+
const set = /* @__PURE__ */ new WeakSet();
|
|
83308
|
+
return JSON.stringify(obj, (_key, value) => {
|
|
83309
|
+
if (typeof value === "object" && value !== null) {
|
|
83310
|
+
if (set.has(value)) {
|
|
83311
|
+
return "[Circular]";
|
|
83312
|
+
}
|
|
83313
|
+
set.add(value);
|
|
83314
|
+
}
|
|
83315
|
+
return value;
|
|
83316
|
+
});
|
|
83317
|
+
}
|
|
83318
|
+
|
|
83289
83319
|
// src/command/app/open-app-view/open-app-view.ts
|
|
83290
83320
|
import { ModelError as ModelError30, RuntimeError as RuntimeError71 } from "@ibiz-template/core";
|
|
83291
83321
|
import { clone as clone59 } from "ramda";
|
|
@@ -83419,7 +83449,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
83419
83449
|
async openModal(appView, context, params = {}, opts = {}) {
|
|
83420
83450
|
const { modalOption } = opts;
|
|
83421
83451
|
if (opts.parentData) {
|
|
83422
|
-
params.parentData =
|
|
83452
|
+
params.parentData = stringifyObj(opts.parentData);
|
|
83423
83453
|
}
|
|
83424
83454
|
return ibiz.openView.modal(appView.id, context, params, {
|
|
83425
83455
|
...modalOption,
|
|
@@ -83444,7 +83474,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
83444
83474
|
throw new RuntimeError71(ibiz.i18n.t("runtime.command.app.missingEvent"));
|
|
83445
83475
|
}
|
|
83446
83476
|
if (opts.parentData) {
|
|
83447
|
-
params.parentData =
|
|
83477
|
+
params.parentData = stringifyObj(opts.parentData);
|
|
83448
83478
|
}
|
|
83449
83479
|
return ibiz.openView.popover(appView.id, event, context, params, {
|
|
83450
83480
|
...modalOption,
|
|
@@ -83466,7 +83496,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
83466
83496
|
async openDrawer(appView, context, params = {}, opts = {}) {
|
|
83467
83497
|
const { modalOption } = opts;
|
|
83468
83498
|
if (opts.parentData) {
|
|
83469
|
-
params.parentData =
|
|
83499
|
+
params.parentData = stringifyObj(opts.parentData);
|
|
83470
83500
|
}
|
|
83471
83501
|
return ibiz.openView.drawer(appView.id, context, params, {
|
|
83472
83502
|
...modalOption,
|
|
@@ -90307,6 +90337,7 @@ export {
|
|
|
90307
90337
|
registerViewProvider,
|
|
90308
90338
|
selectAndImport,
|
|
90309
90339
|
strContain,
|
|
90340
|
+
stringifyObj,
|
|
90310
90341
|
testCond,
|
|
90311
90342
|
toLocalOpenWFRedirectView,
|
|
90312
90343
|
ua,
|