@ibiz-template/runtime 0.5.5 → 0.5.7-alpha.0
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 +580 -417
- package/dist/index.system.min.js +1 -1
- package/out/command/app/open-app-view/open-app-view.d.ts +12 -0
- package/out/command/app/open-app-view/open-app-view.d.ts.map +1 -1
- package/out/command/app/open-app-view/open-app-view.js +17 -0
- package/out/constant/index.d.ts +6 -5
- package/out/constant/index.d.ts.map +1 -1
- package/out/constant/index.js +6 -5
- package/out/constant/route.d.ts +15 -0
- package/out/constant/route.d.ts.map +1 -0
- package/out/constant/route.js +16 -0
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +9 -3
- package/out/controller/control/tree/tree.service.d.ts.map +1 -1
- package/out/controller/control/tree/tree.service.js +7 -0
- package/out/install.d.ts.map +1 -1
- package/out/install.js +3 -1
- package/out/interface/provider/i-internal-message.provider.d.ts +28 -0
- package/out/interface/provider/i-internal-message.provider.d.ts.map +1 -0
- package/out/interface/provider/i-internal-message.provider.js +1 -0
- package/out/interface/provider/index.d.ts +1 -0
- package/out/interface/provider/index.d.ts.map +1 -1
- package/out/interface/service/service/i-internal-message.service.d.ts +28 -0
- package/out/interface/service/service/i-internal-message.service.d.ts.map +1 -0
- package/out/interface/service/service/i-internal-message.service.js +1 -0
- package/out/interface/service/service/index.d.ts +1 -0
- package/out/interface/service/service/index.d.ts.map +1 -1
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts +11 -0
- package/out/interface/util/i-open-view-util/i-open-view-util.d.ts.map +1 -1
- package/out/interface/util/i-view-stack/i-view-stack.d.ts +20 -0
- package/out/interface/util/i-view-stack/i-view-stack.d.ts.map +1 -1
- package/out/interface/util/index.d.ts +1 -1
- package/out/interface/util/index.d.ts.map +1 -1
- package/out/register/helper/index.d.ts +1 -0
- package/out/register/helper/index.d.ts.map +1 -1
- package/out/register/helper/index.js +1 -0
- package/out/register/helper/internal-message-register.d.ts +23 -0
- package/out/register/helper/internal-message-register.d.ts.map +1 -0
- package/out/register/helper/internal-message-register.js +35 -0
- package/out/service/service/index.d.ts +1 -0
- package/out/service/service/index.d.ts.map +1 -1
- package/out/service/service/index.js +1 -0
- package/out/service/service/internal-message/internal-message.service.d.ts +27 -0
- package/out/service/service/internal-message/internal-message.service.d.ts.map +1 -0
- package/out/service/service/internal-message/internal-message.service.js +63 -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 +28 -3
- package/out/types.d.ts +9 -1
- package/out/types.d.ts.map +1 -1
- package/out/ui-logic/ui-logic-node/debug-param-node/debug-param-node.js +1 -1
- package/out/utils/view-stack/view-stack.d.ts +5 -3
- package/out/utils/view-stack/view-stack.d.ts.map +1 -1
- package/out/utils/view-stack/view-stack.js +20 -4
- package/package.json +6 -5
- package/src/command/app/open-app-view/open-app-view.ts +22 -0
- package/src/constant/index.ts +6 -5
- package/src/constant/route.ts +15 -0
- package/src/controller/control/tree/tree.controller.ts +8 -3
- package/src/controller/control/tree/tree.service.ts +12 -0
- package/src/install.ts +3 -0
- package/src/interface/provider/i-internal-message.provider.ts +30 -0
- package/src/interface/provider/index.ts +1 -0
- package/src/interface/service/service/i-internal-message.service.ts +29 -0
- package/src/interface/service/service/index.ts +1 -0
- package/src/interface/util/i-open-view-util/i-open-view-util.ts +16 -0
- package/src/interface/util/i-view-stack/i-view-stack.ts +22 -0
- package/src/interface/util/index.ts +1 -1
- package/src/register/helper/index.ts +1 -0
- package/src/register/helper/internal-message-register.ts +52 -0
- package/src/service/service/index.ts +1 -0
- package/src/service/service/internal-message/internal-message.service.ts +69 -0
- package/src/service/vo/tree-node-data/tree-data-set-node-data.ts +27 -3
- package/src/types.ts +10 -0
- package/src/ui-logic/ui-logic-node/debug-param-node/debug-param-node.ts +1 -1
- package/src/utils/view-stack/view-stack.ts +22 -4
package/dist/index.esm.js
CHANGED
|
@@ -76,7 +76,7 @@ var RegisterCenter = class {
|
|
|
76
76
|
};
|
|
77
77
|
|
|
78
78
|
// src/command/app/app-func/app-func.ts
|
|
79
|
-
import { ModelError as ModelError16, RuntimeError as
|
|
79
|
+
import { ModelError as ModelError16, RuntimeError as RuntimeError25 } from "@ibiz-template/core";
|
|
80
80
|
|
|
81
81
|
// src/utils/error-handler/default-error-handler.ts
|
|
82
82
|
import {
|
|
@@ -2284,6 +2284,196 @@ var ControlType = /* @__PURE__ */ ((ControlType2) => {
|
|
|
2284
2284
|
return ControlType2;
|
|
2285
2285
|
})(ControlType || {});
|
|
2286
2286
|
|
|
2287
|
+
// src/constant/platform-type.ts
|
|
2288
|
+
var PlatformType = /* @__PURE__ */ ((PlatformType2) => {
|
|
2289
|
+
PlatformType2["IOS"] = "IOS";
|
|
2290
|
+
PlatformType2["ANDROID"] = "Android";
|
|
2291
|
+
PlatformType2["WECHAT"] = "WeChat";
|
|
2292
|
+
PlatformType2["QQ"] = "QQ";
|
|
2293
|
+
PlatformType2["DINGTALK"] = "DingTalk";
|
|
2294
|
+
PlatformType2["BROWSER"] = "Browser";
|
|
2295
|
+
PlatformType2["WCMP"] = "WeChatMiniProgram";
|
|
2296
|
+
PlatformType2["DESKTOP"] = "Desktop";
|
|
2297
|
+
return PlatformType2;
|
|
2298
|
+
})(PlatformType || {});
|
|
2299
|
+
|
|
2300
|
+
// src/constant/route.ts
|
|
2301
|
+
var RouteConst = /* @__PURE__ */ ((RouteConst2) => {
|
|
2302
|
+
RouteConst2["ROUTE_MODAL_TAG"] = "route-modal";
|
|
2303
|
+
return RouteConst2;
|
|
2304
|
+
})(RouteConst || {});
|
|
2305
|
+
|
|
2306
|
+
// src/constant/studio-event.ts
|
|
2307
|
+
var StudioViewEvents = class {
|
|
2308
|
+
};
|
|
2309
|
+
/**
|
|
2310
|
+
* 视图加载
|
|
2311
|
+
*/
|
|
2312
|
+
StudioViewEvents.onViewMounted = "onMounted";
|
|
2313
|
+
/**
|
|
2314
|
+
* 视图销毁
|
|
2315
|
+
*/
|
|
2316
|
+
StudioViewEvents.onViewDestroyed = "onDestroyed";
|
|
2317
|
+
var StudioPanelEvents = class {
|
|
2318
|
+
};
|
|
2319
|
+
/**
|
|
2320
|
+
* 点击事件
|
|
2321
|
+
*/
|
|
2322
|
+
StudioPanelEvents.onClick = "onClick";
|
|
2323
|
+
/**
|
|
2324
|
+
* 值变更事件
|
|
2325
|
+
*/
|
|
2326
|
+
StudioPanelEvents.onChange = "onChange";
|
|
2327
|
+
/**
|
|
2328
|
+
* 输入事件
|
|
2329
|
+
*/
|
|
2330
|
+
StudioPanelEvents.onEnter = "onEnter";
|
|
2331
|
+
/**
|
|
2332
|
+
* 离开事件
|
|
2333
|
+
*/
|
|
2334
|
+
StudioPanelEvents.onLeave = "onLeave";
|
|
2335
|
+
var StudioControlEvents = class {
|
|
2336
|
+
};
|
|
2337
|
+
/**
|
|
2338
|
+
* 加载之前
|
|
2339
|
+
*/
|
|
2340
|
+
StudioControlEvents.onBeforeLoad = "onBeforeLoad";
|
|
2341
|
+
/**
|
|
2342
|
+
* 加载成功
|
|
2343
|
+
*/
|
|
2344
|
+
StudioControlEvents.onLoadSuccess = "onLoadSuccess";
|
|
2345
|
+
/**
|
|
2346
|
+
* 加载失败
|
|
2347
|
+
*/
|
|
2348
|
+
StudioControlEvents.onLoadError = "onLoadError";
|
|
2349
|
+
/**
|
|
2350
|
+
* 加载草稿之前
|
|
2351
|
+
*/
|
|
2352
|
+
StudioControlEvents.onBeforeLoadDraft = "onBeforeLoadDraft";
|
|
2353
|
+
/**
|
|
2354
|
+
* 加载草稿成功
|
|
2355
|
+
*/
|
|
2356
|
+
StudioControlEvents.onLoadDraftSuccess = "onLoadDraftSuccess";
|
|
2357
|
+
/**
|
|
2358
|
+
* 加载草稿失败
|
|
2359
|
+
*/
|
|
2360
|
+
StudioControlEvents.onLoadDraftError = "onLoadDraftError";
|
|
2361
|
+
/**
|
|
2362
|
+
* 保存之前
|
|
2363
|
+
*/
|
|
2364
|
+
StudioControlEvents.onBeforeSave = "onBeforeSave";
|
|
2365
|
+
/**
|
|
2366
|
+
* 保存成功
|
|
2367
|
+
*/
|
|
2368
|
+
StudioControlEvents.onSaveSuccess = "onSaveSuccess";
|
|
2369
|
+
/**
|
|
2370
|
+
* 保存失败
|
|
2371
|
+
*/
|
|
2372
|
+
StudioControlEvents.onSaveError = "onSaveError";
|
|
2373
|
+
/**
|
|
2374
|
+
* 删除之前
|
|
2375
|
+
*/
|
|
2376
|
+
StudioControlEvents.onBeforeRemove = "onBeforeRemove";
|
|
2377
|
+
/**
|
|
2378
|
+
* 删除成功
|
|
2379
|
+
*/
|
|
2380
|
+
StudioControlEvents.onRemoveSuccess = "onRemoveSuccess";
|
|
2381
|
+
/**
|
|
2382
|
+
* 删除失败
|
|
2383
|
+
*/
|
|
2384
|
+
StudioControlEvents.onRemoveError = "onRemoveError";
|
|
2385
|
+
/**
|
|
2386
|
+
* 原生默认工具栏的点击事件名称
|
|
2387
|
+
*/
|
|
2388
|
+
StudioControlEvents.CLICK = "onClick";
|
|
2389
|
+
|
|
2390
|
+
// src/constant/sys-uiaction-tag.ts
|
|
2391
|
+
var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
|
|
2392
|
+
SysUIActionTag2["NEW"] = "New";
|
|
2393
|
+
SysUIActionTag2["EDIT"] = "Edit";
|
|
2394
|
+
SysUIActionTag2["REFRESH"] = "Refresh";
|
|
2395
|
+
SysUIActionTag2["EXIT"] = "Exit";
|
|
2396
|
+
SysUIActionTag2["SAVE_AND_EXIT"] = "SaveAndExit";
|
|
2397
|
+
SysUIActionTag2["SAVE_AND_NEW"] = "SaveAndNew";
|
|
2398
|
+
SysUIActionTag2["SAVE"] = "Save";
|
|
2399
|
+
SysUIActionTag2["SAVE_ROW"] = "SaveRow";
|
|
2400
|
+
SysUIActionTag2["REMOVE"] = "Remove";
|
|
2401
|
+
SysUIActionTag2["REMOVE_AND_EXIT"] = "RemoveAndExit";
|
|
2402
|
+
SysUIActionTag2["NEW_ROW"] = "NewRow";
|
|
2403
|
+
SysUIActionTag2["TOGGLE_FILTER"] = "ToggleFilter";
|
|
2404
|
+
SysUIActionTag2["IMPORT"] = "Import";
|
|
2405
|
+
SysUIActionTag2["EXPORT_EXCEL"] = "ExportExcel";
|
|
2406
|
+
SysUIActionTag2["SAVE_AND_START"] = "SaveAndStart";
|
|
2407
|
+
SysUIActionTag2["VIEW_WF_STEP"] = "ViewWFStep";
|
|
2408
|
+
SysUIActionTag2["NO"] = "No";
|
|
2409
|
+
SysUIActionTag2["YES"] = "Yes";
|
|
2410
|
+
SysUIActionTag2["CANCEL"] = "Cancel";
|
|
2411
|
+
SysUIActionTag2["OK"] = "Ok";
|
|
2412
|
+
SysUIActionTag2["SEARCH"] = "Search";
|
|
2413
|
+
SysUIActionTag2["RESET"] = "Reset";
|
|
2414
|
+
SysUIActionTag2["FINISH"] = "Finish";
|
|
2415
|
+
SysUIActionTag2["NEXT_STEP"] = "NextStep";
|
|
2416
|
+
SysUIActionTag2["PREV_STEP"] = "PrevStep";
|
|
2417
|
+
SysUIActionTag2["ADD_SELECTION"] = "AddSelection";
|
|
2418
|
+
SysUIActionTag2["REMOVE_SELECTION"] = "RemoveSelection";
|
|
2419
|
+
SysUIActionTag2["REMOVE_ALL"] = "RemoveAll";
|
|
2420
|
+
SysUIActionTag2["ADD_ALL"] = "AddAll";
|
|
2421
|
+
SysUIActionTag2["LOGOUT"] = "Logout";
|
|
2422
|
+
SysUIActionTag2["LOGIN"] = "Login";
|
|
2423
|
+
SysUIActionTag2["CANCEL_CHANGES"] = "CancelChanges";
|
|
2424
|
+
SysUIActionTag2["COPY"] = "Copy";
|
|
2425
|
+
SysUIActionTag2["VIEW"] = "View";
|
|
2426
|
+
SysUIActionTag2["TOGGLE_ROW_EDIT"] = "ToggleRowEdit";
|
|
2427
|
+
SysUIActionTag2["REFRESH_ALL"] = "RefreshAll";
|
|
2428
|
+
SysUIActionTag2["REFRESH_PARENT"] = "RefreshParent";
|
|
2429
|
+
SysUIActionTag2["LOAD_MORE"] = "LoadMore";
|
|
2430
|
+
return SysUIActionTag2;
|
|
2431
|
+
})(SysUIActionTag || {});
|
|
2432
|
+
|
|
2433
|
+
// src/constant/value-op.ts
|
|
2434
|
+
var ValueOP = /* @__PURE__ */ ((ValueOP2) => {
|
|
2435
|
+
ValueOP2["EQ"] = "EQ";
|
|
2436
|
+
ValueOP2["NOT_EQ"] = "NOTEQ";
|
|
2437
|
+
ValueOP2["GT"] = "GT";
|
|
2438
|
+
ValueOP2["GT_AND_EQ"] = "GTANDEQ";
|
|
2439
|
+
ValueOP2["LT"] = "LT";
|
|
2440
|
+
ValueOP2["LT_AND_EQ"] = "LTANDEQ";
|
|
2441
|
+
ValueOP2["IS_NULL"] = "ISNULL";
|
|
2442
|
+
ValueOP2["IS_NOT_NULL"] = "ISNOTNULL";
|
|
2443
|
+
ValueOP2["IN"] = "IN";
|
|
2444
|
+
ValueOP2["NOT_IN"] = "NOTIN";
|
|
2445
|
+
ValueOP2["LIKE"] = "LIKE";
|
|
2446
|
+
ValueOP2["LIFT_LIKE"] = "LIFTLIKE";
|
|
2447
|
+
ValueOP2["RIGHT_LIKE"] = "RIGHT_LIKE";
|
|
2448
|
+
ValueOP2["CHILD_OF"] = "CHILDOF";
|
|
2449
|
+
ValueOP2["USER_LIKE"] = "USERLIKE";
|
|
2450
|
+
ValueOP2["BIT_AND"] = "BITAND";
|
|
2451
|
+
ValueOP2["EXISTS"] = "EXISTS";
|
|
2452
|
+
ValueOP2["NOT_EXISTS"] = "NOTEXISTS";
|
|
2453
|
+
return ValueOP2;
|
|
2454
|
+
})(ValueOP || {});
|
|
2455
|
+
|
|
2456
|
+
// src/constant/view-call-tag.ts
|
|
2457
|
+
var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
|
|
2458
|
+
ViewCallTag2["LOAD"] = "Load";
|
|
2459
|
+
ViewCallTag2["GET_DATA"] = "GetData";
|
|
2460
|
+
ViewCallTag2["GET_ALL_DATA"] = "GetAllData";
|
|
2461
|
+
ViewCallTag2["VALIDATE"] = "Validate";
|
|
2462
|
+
ViewCallTag2["TOGGLE_COLLAPSE"] = "ToggleCollapse";
|
|
2463
|
+
ViewCallTag2["WF_WITHDRAW"] = "WFWithdraw";
|
|
2464
|
+
return ViewCallTag2;
|
|
2465
|
+
})(ViewCallTag || {});
|
|
2466
|
+
|
|
2467
|
+
// src/constant/view-mode.ts
|
|
2468
|
+
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
|
2469
|
+
ViewMode2["ROUTE"] = "ROUTE";
|
|
2470
|
+
ViewMode2["MODAL"] = "MODAL";
|
|
2471
|
+
ViewMode2["DRAWER"] = "DRAWER";
|
|
2472
|
+
ViewMode2["EMBED"] = "EMBED";
|
|
2473
|
+
ViewMode2["POPOVER"] = "POPOVER";
|
|
2474
|
+
return ViewMode2;
|
|
2475
|
+
})(ViewMode || {});
|
|
2476
|
+
|
|
2287
2477
|
// src/constant/view-type.ts
|
|
2288
2478
|
var ViewType = /* @__PURE__ */ ((ViewType2) => {
|
|
2289
2479
|
ViewType2["APP_INDEX_VIEW"] = "APPINDEXVIEW";
|
|
@@ -2454,190 +2644,6 @@ var ViewType = /* @__PURE__ */ ((ViewType2) => {
|
|
|
2454
2644
|
return ViewType2;
|
|
2455
2645
|
})(ViewType || {});
|
|
2456
2646
|
|
|
2457
|
-
// src/constant/view-mode.ts
|
|
2458
|
-
var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
|
|
2459
|
-
ViewMode2["ROUTE"] = "ROUTE";
|
|
2460
|
-
ViewMode2["MODAL"] = "MODAL";
|
|
2461
|
-
ViewMode2["DRAWER"] = "DRAWER";
|
|
2462
|
-
ViewMode2["EMBED"] = "EMBED";
|
|
2463
|
-
ViewMode2["POPOVER"] = "POPOVER";
|
|
2464
|
-
return ViewMode2;
|
|
2465
|
-
})(ViewMode || {});
|
|
2466
|
-
|
|
2467
|
-
// src/constant/sys-uiaction-tag.ts
|
|
2468
|
-
var SysUIActionTag = /* @__PURE__ */ ((SysUIActionTag2) => {
|
|
2469
|
-
SysUIActionTag2["NEW"] = "New";
|
|
2470
|
-
SysUIActionTag2["EDIT"] = "Edit";
|
|
2471
|
-
SysUIActionTag2["REFRESH"] = "Refresh";
|
|
2472
|
-
SysUIActionTag2["EXIT"] = "Exit";
|
|
2473
|
-
SysUIActionTag2["SAVE_AND_EXIT"] = "SaveAndExit";
|
|
2474
|
-
SysUIActionTag2["SAVE_AND_NEW"] = "SaveAndNew";
|
|
2475
|
-
SysUIActionTag2["SAVE"] = "Save";
|
|
2476
|
-
SysUIActionTag2["SAVE_ROW"] = "SaveRow";
|
|
2477
|
-
SysUIActionTag2["REMOVE"] = "Remove";
|
|
2478
|
-
SysUIActionTag2["REMOVE_AND_EXIT"] = "RemoveAndExit";
|
|
2479
|
-
SysUIActionTag2["NEW_ROW"] = "NewRow";
|
|
2480
|
-
SysUIActionTag2["TOGGLE_FILTER"] = "ToggleFilter";
|
|
2481
|
-
SysUIActionTag2["IMPORT"] = "Import";
|
|
2482
|
-
SysUIActionTag2["EXPORT_EXCEL"] = "ExportExcel";
|
|
2483
|
-
SysUIActionTag2["SAVE_AND_START"] = "SaveAndStart";
|
|
2484
|
-
SysUIActionTag2["VIEW_WF_STEP"] = "ViewWFStep";
|
|
2485
|
-
SysUIActionTag2["NO"] = "No";
|
|
2486
|
-
SysUIActionTag2["YES"] = "Yes";
|
|
2487
|
-
SysUIActionTag2["CANCEL"] = "Cancel";
|
|
2488
|
-
SysUIActionTag2["OK"] = "Ok";
|
|
2489
|
-
SysUIActionTag2["SEARCH"] = "Search";
|
|
2490
|
-
SysUIActionTag2["RESET"] = "Reset";
|
|
2491
|
-
SysUIActionTag2["FINISH"] = "Finish";
|
|
2492
|
-
SysUIActionTag2["NEXT_STEP"] = "NextStep";
|
|
2493
|
-
SysUIActionTag2["PREV_STEP"] = "PrevStep";
|
|
2494
|
-
SysUIActionTag2["ADD_SELECTION"] = "AddSelection";
|
|
2495
|
-
SysUIActionTag2["REMOVE_SELECTION"] = "RemoveSelection";
|
|
2496
|
-
SysUIActionTag2["REMOVE_ALL"] = "RemoveAll";
|
|
2497
|
-
SysUIActionTag2["ADD_ALL"] = "AddAll";
|
|
2498
|
-
SysUIActionTag2["LOGOUT"] = "Logout";
|
|
2499
|
-
SysUIActionTag2["LOGIN"] = "Login";
|
|
2500
|
-
SysUIActionTag2["CANCEL_CHANGES"] = "CancelChanges";
|
|
2501
|
-
SysUIActionTag2["COPY"] = "Copy";
|
|
2502
|
-
SysUIActionTag2["VIEW"] = "View";
|
|
2503
|
-
SysUIActionTag2["TOGGLE_ROW_EDIT"] = "ToggleRowEdit";
|
|
2504
|
-
SysUIActionTag2["REFRESH_ALL"] = "RefreshAll";
|
|
2505
|
-
SysUIActionTag2["REFRESH_PARENT"] = "RefreshParent";
|
|
2506
|
-
SysUIActionTag2["LOAD_MORE"] = "LoadMore";
|
|
2507
|
-
return SysUIActionTag2;
|
|
2508
|
-
})(SysUIActionTag || {});
|
|
2509
|
-
|
|
2510
|
-
// src/constant/view-call-tag.ts
|
|
2511
|
-
var ViewCallTag = /* @__PURE__ */ ((ViewCallTag2) => {
|
|
2512
|
-
ViewCallTag2["LOAD"] = "Load";
|
|
2513
|
-
ViewCallTag2["GET_DATA"] = "GetData";
|
|
2514
|
-
ViewCallTag2["GET_ALL_DATA"] = "GetAllData";
|
|
2515
|
-
ViewCallTag2["VALIDATE"] = "Validate";
|
|
2516
|
-
ViewCallTag2["TOGGLE_COLLAPSE"] = "ToggleCollapse";
|
|
2517
|
-
ViewCallTag2["WF_WITHDRAW"] = "WFWithdraw";
|
|
2518
|
-
return ViewCallTag2;
|
|
2519
|
-
})(ViewCallTag || {});
|
|
2520
|
-
|
|
2521
|
-
// src/constant/value-op.ts
|
|
2522
|
-
var ValueOP = /* @__PURE__ */ ((ValueOP2) => {
|
|
2523
|
-
ValueOP2["EQ"] = "EQ";
|
|
2524
|
-
ValueOP2["NOT_EQ"] = "NOTEQ";
|
|
2525
|
-
ValueOP2["GT"] = "GT";
|
|
2526
|
-
ValueOP2["GT_AND_EQ"] = "GTANDEQ";
|
|
2527
|
-
ValueOP2["LT"] = "LT";
|
|
2528
|
-
ValueOP2["LT_AND_EQ"] = "LTANDEQ";
|
|
2529
|
-
ValueOP2["IS_NULL"] = "ISNULL";
|
|
2530
|
-
ValueOP2["IS_NOT_NULL"] = "ISNOTNULL";
|
|
2531
|
-
ValueOP2["IN"] = "IN";
|
|
2532
|
-
ValueOP2["NOT_IN"] = "NOTIN";
|
|
2533
|
-
ValueOP2["LIKE"] = "LIKE";
|
|
2534
|
-
ValueOP2["LIFT_LIKE"] = "LIFTLIKE";
|
|
2535
|
-
ValueOP2["RIGHT_LIKE"] = "RIGHT_LIKE";
|
|
2536
|
-
ValueOP2["CHILD_OF"] = "CHILDOF";
|
|
2537
|
-
ValueOP2["USER_LIKE"] = "USERLIKE";
|
|
2538
|
-
ValueOP2["BIT_AND"] = "BITAND";
|
|
2539
|
-
ValueOP2["EXISTS"] = "EXISTS";
|
|
2540
|
-
ValueOP2["NOT_EXISTS"] = "NOTEXISTS";
|
|
2541
|
-
return ValueOP2;
|
|
2542
|
-
})(ValueOP || {});
|
|
2543
|
-
|
|
2544
|
-
// src/constant/platform-type.ts
|
|
2545
|
-
var PlatformType = /* @__PURE__ */ ((PlatformType2) => {
|
|
2546
|
-
PlatformType2["IOS"] = "IOS";
|
|
2547
|
-
PlatformType2["ANDROID"] = "Android";
|
|
2548
|
-
PlatformType2["WECHAT"] = "WeChat";
|
|
2549
|
-
PlatformType2["QQ"] = "QQ";
|
|
2550
|
-
PlatformType2["DINGTALK"] = "DingTalk";
|
|
2551
|
-
PlatformType2["BROWSER"] = "Browser";
|
|
2552
|
-
PlatformType2["WCMP"] = "WeChatMiniProgram";
|
|
2553
|
-
PlatformType2["DESKTOP"] = "Desktop";
|
|
2554
|
-
return PlatformType2;
|
|
2555
|
-
})(PlatformType || {});
|
|
2556
|
-
|
|
2557
|
-
// src/constant/studio-event.ts
|
|
2558
|
-
var StudioViewEvents = class {
|
|
2559
|
-
};
|
|
2560
|
-
/**
|
|
2561
|
-
* 视图加载
|
|
2562
|
-
*/
|
|
2563
|
-
StudioViewEvents.onViewMounted = "onMounted";
|
|
2564
|
-
/**
|
|
2565
|
-
* 视图销毁
|
|
2566
|
-
*/
|
|
2567
|
-
StudioViewEvents.onViewDestroyed = "onDestroyed";
|
|
2568
|
-
var StudioPanelEvents = class {
|
|
2569
|
-
};
|
|
2570
|
-
/**
|
|
2571
|
-
* 点击事件
|
|
2572
|
-
*/
|
|
2573
|
-
StudioPanelEvents.onClick = "onClick";
|
|
2574
|
-
/**
|
|
2575
|
-
* 值变更事件
|
|
2576
|
-
*/
|
|
2577
|
-
StudioPanelEvents.onChange = "onChange";
|
|
2578
|
-
/**
|
|
2579
|
-
* 输入事件
|
|
2580
|
-
*/
|
|
2581
|
-
StudioPanelEvents.onEnter = "onEnter";
|
|
2582
|
-
/**
|
|
2583
|
-
* 离开事件
|
|
2584
|
-
*/
|
|
2585
|
-
StudioPanelEvents.onLeave = "onLeave";
|
|
2586
|
-
var StudioControlEvents = class {
|
|
2587
|
-
};
|
|
2588
|
-
/**
|
|
2589
|
-
* 加载之前
|
|
2590
|
-
*/
|
|
2591
|
-
StudioControlEvents.onBeforeLoad = "onBeforeLoad";
|
|
2592
|
-
/**
|
|
2593
|
-
* 加载成功
|
|
2594
|
-
*/
|
|
2595
|
-
StudioControlEvents.onLoadSuccess = "onLoadSuccess";
|
|
2596
|
-
/**
|
|
2597
|
-
* 加载失败
|
|
2598
|
-
*/
|
|
2599
|
-
StudioControlEvents.onLoadError = "onLoadError";
|
|
2600
|
-
/**
|
|
2601
|
-
* 加载草稿之前
|
|
2602
|
-
*/
|
|
2603
|
-
StudioControlEvents.onBeforeLoadDraft = "onBeforeLoadDraft";
|
|
2604
|
-
/**
|
|
2605
|
-
* 加载草稿成功
|
|
2606
|
-
*/
|
|
2607
|
-
StudioControlEvents.onLoadDraftSuccess = "onLoadDraftSuccess";
|
|
2608
|
-
/**
|
|
2609
|
-
* 加载草稿失败
|
|
2610
|
-
*/
|
|
2611
|
-
StudioControlEvents.onLoadDraftError = "onLoadDraftError";
|
|
2612
|
-
/**
|
|
2613
|
-
* 保存之前
|
|
2614
|
-
*/
|
|
2615
|
-
StudioControlEvents.onBeforeSave = "onBeforeSave";
|
|
2616
|
-
/**
|
|
2617
|
-
* 保存成功
|
|
2618
|
-
*/
|
|
2619
|
-
StudioControlEvents.onSaveSuccess = "onSaveSuccess";
|
|
2620
|
-
/**
|
|
2621
|
-
* 保存失败
|
|
2622
|
-
*/
|
|
2623
|
-
StudioControlEvents.onSaveError = "onSaveError";
|
|
2624
|
-
/**
|
|
2625
|
-
* 删除之前
|
|
2626
|
-
*/
|
|
2627
|
-
StudioControlEvents.onBeforeRemove = "onBeforeRemove";
|
|
2628
|
-
/**
|
|
2629
|
-
* 删除成功
|
|
2630
|
-
*/
|
|
2631
|
-
StudioControlEvents.onRemoveSuccess = "onRemoveSuccess";
|
|
2632
|
-
/**
|
|
2633
|
-
* 删除失败
|
|
2634
|
-
*/
|
|
2635
|
-
StudioControlEvents.onRemoveError = "onRemoveError";
|
|
2636
|
-
/**
|
|
2637
|
-
* 原生默认工具栏的点击事件名称
|
|
2638
|
-
*/
|
|
2639
|
-
StudioControlEvents.CLICK = "onClick";
|
|
2640
|
-
|
|
2641
2647
|
// src/utils/modal/modal.ts
|
|
2642
2648
|
var Modal = class {
|
|
2643
2649
|
constructor(opts) {
|
|
@@ -3151,16 +3157,20 @@ var RawValueUtil = class {
|
|
|
3151
3157
|
};
|
|
3152
3158
|
|
|
3153
3159
|
// src/utils/view-stack/view-stack.ts
|
|
3160
|
+
import { QXEvent } from "qx-util";
|
|
3154
3161
|
var ViewStack = class {
|
|
3155
3162
|
constructor() {
|
|
3156
3163
|
this.stackMap = /* @__PURE__ */ new Map();
|
|
3157
3164
|
this.stack = [];
|
|
3158
3165
|
this.activeStack = [];
|
|
3166
|
+
this.evt = new QXEvent();
|
|
3159
3167
|
}
|
|
3160
3168
|
add(id, view) {
|
|
3161
3169
|
this.stack.push(view);
|
|
3162
3170
|
this.stackMap.set(id, view);
|
|
3163
3171
|
this.recalculateActiveStack();
|
|
3172
|
+
this.evt.emit("add", view);
|
|
3173
|
+
this.evt.emit("change", { type: "add", view });
|
|
3164
3174
|
}
|
|
3165
3175
|
remove(id) {
|
|
3166
3176
|
const view = this.stackMap.get(id);
|
|
@@ -3168,16 +3178,28 @@ var ViewStack = class {
|
|
|
3168
3178
|
this.stack.splice(this.stack.indexOf(view), 1);
|
|
3169
3179
|
this.stackMap.delete(id);
|
|
3170
3180
|
this.recalculateActiveStack();
|
|
3181
|
+
this.evt.emit("remove", view);
|
|
3182
|
+
this.evt.emit("change", { type: "remove", view });
|
|
3171
3183
|
}
|
|
3172
3184
|
}
|
|
3173
3185
|
getActives() {
|
|
3174
3186
|
return this.activeStack;
|
|
3175
3187
|
}
|
|
3176
|
-
active(
|
|
3177
|
-
this.
|
|
3188
|
+
active(id) {
|
|
3189
|
+
const view = this.stackMap.get(id);
|
|
3190
|
+
if (view) {
|
|
3191
|
+
this.recalculateActiveStack();
|
|
3192
|
+
this.evt.emit("active", view);
|
|
3193
|
+
this.evt.emit("change", { type: "active", view });
|
|
3194
|
+
}
|
|
3178
3195
|
}
|
|
3179
|
-
deactivate(
|
|
3180
|
-
this.
|
|
3196
|
+
deactivate(id) {
|
|
3197
|
+
const view = this.stackMap.get(id);
|
|
3198
|
+
if (view) {
|
|
3199
|
+
this.recalculateActiveStack();
|
|
3200
|
+
this.evt.emit("deactivate", view);
|
|
3201
|
+
this.evt.emit("change", { type: "deactivate", view });
|
|
3202
|
+
}
|
|
3181
3203
|
}
|
|
3182
3204
|
/**
|
|
3183
3205
|
* 重新计算激活视图堆栈
|
|
@@ -3215,7 +3237,7 @@ async function handleAllSettled(values, isThrow = true) {
|
|
|
3215
3237
|
}
|
|
3216
3238
|
|
|
3217
3239
|
// src/command/app/open-app-view/open-app-view.ts
|
|
3218
|
-
import { ModelError as ModelError15, RuntimeError as
|
|
3240
|
+
import { ModelError as ModelError15, RuntimeError as RuntimeError24 } from "@ibiz-template/core";
|
|
3219
3241
|
import { clone as clone17 } from "ramda";
|
|
3220
3242
|
|
|
3221
3243
|
// src/service/utils/de-dq-cond/ps-de-dq-cond-engine.ts
|
|
@@ -4250,9 +4272,34 @@ async function getAppMenuItemProvider(model) {
|
|
|
4250
4272
|
return provider;
|
|
4251
4273
|
}
|
|
4252
4274
|
|
|
4275
|
+
// src/register/helper/internal-message-register.ts
|
|
4276
|
+
import { RuntimeError as RuntimeError12 } from "@ibiz-template/core";
|
|
4277
|
+
var INTERNAL_MESSAGE_PROVIDER_PREFIX = "INTERNAL_MESSAGE";
|
|
4278
|
+
function registerInternalMessageProvider(key, callback) {
|
|
4279
|
+
ibiz.register.register(
|
|
4280
|
+
"".concat(INTERNAL_MESSAGE_PROVIDER_PREFIX, "_").concat(key),
|
|
4281
|
+
callback
|
|
4282
|
+
);
|
|
4283
|
+
}
|
|
4284
|
+
function getProvider15(key) {
|
|
4285
|
+
return ibiz.register.get(
|
|
4286
|
+
"".concat(INTERNAL_MESSAGE_PROVIDER_PREFIX, "_").concat(key)
|
|
4287
|
+
);
|
|
4288
|
+
}
|
|
4289
|
+
function getInternalMessageProvider(msg) {
|
|
4290
|
+
const provider = getProvider15(
|
|
4291
|
+
msg.message_type || "DEFAULT"
|
|
4292
|
+
);
|
|
4293
|
+
if (!provider) {
|
|
4294
|
+
throw new RuntimeError12("\u627E\u4E0D\u7AD9\u5185\u4FE1\u7C7B\u578B".concat(msg.message_type, "\u5BF9\u5E94\u7684\u9002\u914D\u5668"));
|
|
4295
|
+
} else {
|
|
4296
|
+
return provider;
|
|
4297
|
+
}
|
|
4298
|
+
}
|
|
4299
|
+
|
|
4253
4300
|
// src/service/utils/app-counter/app-counter.ts
|
|
4254
|
-
import { IBizContext, RuntimeError as
|
|
4255
|
-
import { notNilEmpty as notNilEmpty5, QXEvent } from "qx-util";
|
|
4301
|
+
import { IBizContext, RuntimeError as RuntimeError13 } from "@ibiz-template/core";
|
|
4302
|
+
import { notNilEmpty as notNilEmpty5, QXEvent as QXEvent2 } from "qx-util";
|
|
4256
4303
|
import { clone as clone3 } from "ramda";
|
|
4257
4304
|
var AppCounter = class {
|
|
4258
4305
|
/**
|
|
@@ -4267,7 +4314,7 @@ var AppCounter = class {
|
|
|
4267
4314
|
this.destroyed = false;
|
|
4268
4315
|
this.context = IBizContext.create();
|
|
4269
4316
|
this.params = {};
|
|
4270
|
-
this.evt = new
|
|
4317
|
+
this.evt = new QXEvent2();
|
|
4271
4318
|
/**
|
|
4272
4319
|
* 计数器数据
|
|
4273
4320
|
*
|
|
@@ -4356,7 +4403,7 @@ var AppCounter = class {
|
|
|
4356
4403
|
* @return {*} {Promise<IData>}
|
|
4357
4404
|
*/
|
|
4358
4405
|
async load() {
|
|
4359
|
-
throw new
|
|
4406
|
+
throw new RuntimeError13("\u672A\u5B9E\u73B0\u8BA1\u6570\u5668\u52A0\u8F7D\u65B9\u6CD5");
|
|
4360
4407
|
}
|
|
4361
4408
|
/**
|
|
4362
4409
|
* 计数器刷新
|
|
@@ -4813,10 +4860,10 @@ var DynamicCodeListCache = class {
|
|
|
4813
4860
|
// src/service/utils/de-cache/de-cache.ts
|
|
4814
4861
|
import { where, equals, clone as clone4, isNil as isNil5, isEmpty as isEmpty5 } from "ramda";
|
|
4815
4862
|
import { createUUID as createUUID2 } from "qx-util";
|
|
4816
|
-
import { RuntimeError as
|
|
4863
|
+
import { RuntimeError as RuntimeError15 } from "@ibiz-template/core";
|
|
4817
4864
|
|
|
4818
4865
|
// src/service/utils/service-exist-util/service-exist-util.ts
|
|
4819
|
-
import { RuntimeError as
|
|
4866
|
+
import { RuntimeError as RuntimeError14 } from "@ibiz-template/core";
|
|
4820
4867
|
import { isEmpty as isEmpty4, isNil as isNil4 } from "ramda";
|
|
4821
4868
|
function isExistSrfKey(funcName, entity) {
|
|
4822
4869
|
if (entity != null) {
|
|
@@ -4825,14 +4872,14 @@ function isExistSrfKey(funcName, entity) {
|
|
|
4825
4872
|
return true;
|
|
4826
4873
|
}
|
|
4827
4874
|
}
|
|
4828
|
-
throw new
|
|
4875
|
+
throw new RuntimeError14("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfkey\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
4829
4876
|
}
|
|
4830
4877
|
function isExistSessionId(funcName, context) {
|
|
4831
4878
|
const { srfsessionid } = context;
|
|
4832
4879
|
if (!isNil4(srfsessionid) && !isEmpty4(srfsessionid)) {
|
|
4833
4880
|
return true;
|
|
4834
4881
|
}
|
|
4835
|
-
throw new
|
|
4882
|
+
throw new RuntimeError14("\u6267\u884C\u300C".concat(funcName, "\u300D\u4E0D\u5B58\u5728\u300Csrfsessionid\u300D\u65E0\u6CD5\u5904\u7406"));
|
|
4836
4883
|
}
|
|
4837
4884
|
|
|
4838
4885
|
// src/service/utils/de-cache/de-cache.ts
|
|
@@ -4918,7 +4965,7 @@ var DECache = class {
|
|
|
4918
4965
|
if (this.isUnionKey) {
|
|
4919
4966
|
this.calcUnionKey(entity);
|
|
4920
4967
|
if (this.checkData(context, entity.srfkey)) {
|
|
4921
|
-
throw new
|
|
4968
|
+
throw new RuntimeError15(
|
|
4922
4969
|
"\u65B0\u5EFA\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
4923
4970
|
);
|
|
4924
4971
|
}
|
|
@@ -4979,7 +5026,7 @@ var DECache = class {
|
|
|
4979
5026
|
if (this.isUnionKey) {
|
|
4980
5027
|
this.calcUnionKey(entity);
|
|
4981
5028
|
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
4982
|
-
throw new
|
|
5029
|
+
throw new RuntimeError15(
|
|
4983
5030
|
"\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
4984
5031
|
);
|
|
4985
5032
|
}
|
|
@@ -5115,7 +5162,7 @@ var DECache = class {
|
|
|
5115
5162
|
if (this.isUnionKey) {
|
|
5116
5163
|
this.calcUnionKey(entity);
|
|
5117
5164
|
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
5118
|
-
throw new
|
|
5165
|
+
throw new RuntimeError15(
|
|
5119
5166
|
"\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
5120
5167
|
);
|
|
5121
5168
|
}
|
|
@@ -5429,7 +5476,7 @@ function fieldValueToBoolean(value) {
|
|
|
5429
5476
|
}
|
|
5430
5477
|
|
|
5431
5478
|
// src/service/service/code-list/code-list.service.ts
|
|
5432
|
-
import { RuntimeError as
|
|
5479
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
5433
5480
|
var CodeListService = class {
|
|
5434
5481
|
constructor(appModel) {
|
|
5435
5482
|
this.appModel = appModel;
|
|
@@ -5576,7 +5623,7 @@ var CodeListService = class {
|
|
|
5576
5623
|
async get(tag, context, params) {
|
|
5577
5624
|
const codeList = this.allCodeLists.get(tag);
|
|
5578
5625
|
if (!codeList) {
|
|
5579
|
-
throw new
|
|
5626
|
+
throw new RuntimeError16("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
5580
5627
|
}
|
|
5581
5628
|
if (codeList.codeListType === "STATIC") {
|
|
5582
5629
|
return this.getStatic(codeList);
|
|
@@ -5698,12 +5745,12 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
5698
5745
|
// src/service/service/entity/de.service.ts
|
|
5699
5746
|
import {
|
|
5700
5747
|
ModelError as ModelError7,
|
|
5701
|
-
RuntimeError as
|
|
5748
|
+
RuntimeError as RuntimeError18,
|
|
5702
5749
|
RuntimeModelError as RuntimeModelError10
|
|
5703
5750
|
} from "@ibiz-template/core";
|
|
5704
5751
|
|
|
5705
5752
|
// src/service/service/work-flow/work-flow.service.ts
|
|
5706
|
-
import { RuntimeError as
|
|
5753
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
5707
5754
|
var WorkFlowService = class {
|
|
5708
5755
|
/**
|
|
5709
5756
|
* Creates an instance of WorkFlowService.
|
|
@@ -6025,7 +6072,7 @@ var WorkFlowService = class {
|
|
|
6025
6072
|
case "sendcopy":
|
|
6026
6073
|
return this.wfSendCopy(context, params, data);
|
|
6027
6074
|
default: {
|
|
6028
|
-
throw new
|
|
6075
|
+
throw new RuntimeError17("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
6029
6076
|
}
|
|
6030
6077
|
}
|
|
6031
6078
|
}
|
|
@@ -6597,7 +6644,7 @@ var DEService = class {
|
|
|
6597
6644
|
if (method) {
|
|
6598
6645
|
return method.exec(context, params, params2);
|
|
6599
6646
|
}
|
|
6600
|
-
throw new
|
|
6647
|
+
throw new RuntimeError18("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
6601
6648
|
}
|
|
6602
6649
|
getDraft(context, params, params2) {
|
|
6603
6650
|
return this.exec("GetDraft", context, params, params2);
|
|
@@ -6651,7 +6698,7 @@ var DEService = class {
|
|
|
6651
6698
|
if (method) {
|
|
6652
6699
|
return method.exec(context, params, params2);
|
|
6653
6700
|
}
|
|
6654
|
-
throw new
|
|
6701
|
+
throw new RuntimeError18("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
6655
6702
|
}
|
|
6656
6703
|
/**
|
|
6657
6704
|
* 实体级别 AI 聊天会话
|
|
@@ -7044,7 +7091,7 @@ var ControlService = class {
|
|
|
7044
7091
|
};
|
|
7045
7092
|
|
|
7046
7093
|
// src/service/service/control/md-control.service.ts
|
|
7047
|
-
import { RuntimeError as
|
|
7094
|
+
import { RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
7048
7095
|
import { isArray as isArray3 } from "qx-util";
|
|
7049
7096
|
var MDControlService = class extends ControlService {
|
|
7050
7097
|
/**
|
|
@@ -7173,7 +7220,7 @@ var MDControlService = class extends ControlService {
|
|
|
7173
7220
|
* @returns {*} {Promise<IHttpResponse>}
|
|
7174
7221
|
*/
|
|
7175
7222
|
async exportData(_dataExport, _context, _params = {}) {
|
|
7176
|
-
throw new
|
|
7223
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
7177
7224
|
}
|
|
7178
7225
|
/**
|
|
7179
7226
|
* 处理响应
|
|
@@ -7208,7 +7255,7 @@ var MDControlService = class extends ControlService {
|
|
|
7208
7255
|
};
|
|
7209
7256
|
|
|
7210
7257
|
// src/service/service/authority/authority.service.ts
|
|
7211
|
-
import { RuntimeError as
|
|
7258
|
+
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
7212
7259
|
|
|
7213
7260
|
// src/service/service/authority/de-authority.service.ts
|
|
7214
7261
|
var DeAuthorityService = class {
|
|
@@ -7344,7 +7391,7 @@ var AuthorityService = class {
|
|
|
7344
7391
|
this.appModel.appId
|
|
7345
7392
|
);
|
|
7346
7393
|
if (!entityModel) {
|
|
7347
|
-
throw new
|
|
7394
|
+
throw new RuntimeError20("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
7348
7395
|
}
|
|
7349
7396
|
const constructor = this.constructorCache.get(id);
|
|
7350
7397
|
let service;
|
|
@@ -7575,7 +7622,7 @@ var AsyncActionService = class {
|
|
|
7575
7622
|
import {
|
|
7576
7623
|
HttpError as HttpError5,
|
|
7577
7624
|
HttpResponse as HttpResponse3,
|
|
7578
|
-
RuntimeError as
|
|
7625
|
+
RuntimeError as RuntimeError22,
|
|
7579
7626
|
RuntimeModelError as RuntimeModelError22
|
|
7580
7627
|
} from "@ibiz-template/core";
|
|
7581
7628
|
import { isArray as isArray6, isNil as isNil10 } from "lodash-es";
|
|
@@ -7806,7 +7853,7 @@ var Method = class {
|
|
|
7806
7853
|
};
|
|
7807
7854
|
|
|
7808
7855
|
// src/de-logic/index.ts
|
|
7809
|
-
import { HttpError as HttpError4, HttpResponse as HttpResponse2, RuntimeError as
|
|
7856
|
+
import { HttpError as HttpError4, HttpResponse as HttpResponse2, RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
7810
7857
|
import { isArray as isArray5 } from "lodash-es";
|
|
7811
7858
|
import { clone as clone13 } from "ramda";
|
|
7812
7859
|
|
|
@@ -8868,7 +8915,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
8868
8915
|
context.srfappid
|
|
8869
8916
|
);
|
|
8870
8917
|
if (!deLogic) {
|
|
8871
|
-
throw new
|
|
8918
|
+
throw new RuntimeError21("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
8872
8919
|
}
|
|
8873
8920
|
return execDELogic(deLogic, context, data, params);
|
|
8874
8921
|
}
|
|
@@ -9013,7 +9060,7 @@ var DEActionMethod = class extends Method {
|
|
|
9013
9060
|
*/
|
|
9014
9061
|
async create(context, data, params) {
|
|
9015
9062
|
if (!data) {
|
|
9016
|
-
throw new
|
|
9063
|
+
throw new RuntimeError22("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
9017
9064
|
}
|
|
9018
9065
|
if (this.isLocalMode) {
|
|
9019
9066
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -9055,7 +9102,7 @@ var DEActionMethod = class extends Method {
|
|
|
9055
9102
|
*/
|
|
9056
9103
|
async update(context, data, params) {
|
|
9057
9104
|
if (!data) {
|
|
9058
|
-
throw new
|
|
9105
|
+
throw new RuntimeError22("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
9059
9106
|
}
|
|
9060
9107
|
if (this.isLocalMode) {
|
|
9061
9108
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -9545,6 +9592,67 @@ function presetDEMethodProvider() {
|
|
|
9545
9592
|
registerDEMethodProvider("FETCHTEMP", () => fetchDeMethodProvider);
|
|
9546
9593
|
}
|
|
9547
9594
|
|
|
9595
|
+
// src/service/service/internal-message/internal-message.service.ts
|
|
9596
|
+
import { isNil as isNil12 } from "ramda";
|
|
9597
|
+
var InternalMessageService = class {
|
|
9598
|
+
constructor() {
|
|
9599
|
+
/**
|
|
9600
|
+
* 基础路径
|
|
9601
|
+
* @author lxm
|
|
9602
|
+
* @date 2024-01-23 02:06:47
|
|
9603
|
+
*/
|
|
9604
|
+
this.baseUrl = "/extension/internal_messages";
|
|
9605
|
+
}
|
|
9606
|
+
/**
|
|
9607
|
+
* 获取站内信的集合
|
|
9608
|
+
* @author lxm
|
|
9609
|
+
* @date 2023-11-15 10:55:25
|
|
9610
|
+
* @param {IParams} [params={}]
|
|
9611
|
+
* @return {*} {Promise<IHttpResponse<IInternalMessage[]>>}
|
|
9612
|
+
*/
|
|
9613
|
+
async fetch(params = {}) {
|
|
9614
|
+
const res = {
|
|
9615
|
+
ok: true
|
|
9616
|
+
};
|
|
9617
|
+
if (res.headers) {
|
|
9618
|
+
if (res.headers["x-page"]) {
|
|
9619
|
+
res.page = Number(res.headers["x-page"]);
|
|
9620
|
+
}
|
|
9621
|
+
if (res.headers["x-per-page"]) {
|
|
9622
|
+
res.size = Number(res.headers["x-per-page"]);
|
|
9623
|
+
}
|
|
9624
|
+
if (res.headers["x-total"]) {
|
|
9625
|
+
res.total = Number(res.headers["x-total"]);
|
|
9626
|
+
}
|
|
9627
|
+
}
|
|
9628
|
+
if (isNil12(res.data)) {
|
|
9629
|
+
res.data = [];
|
|
9630
|
+
}
|
|
9631
|
+
res.page = params.page;
|
|
9632
|
+
res.total = 34;
|
|
9633
|
+
res.data = Array.from({ length: params.size }, (_, i) => ({
|
|
9634
|
+
id: i + 1,
|
|
9635
|
+
status: "RECEIVED",
|
|
9636
|
+
title: "\u6807\u9898".concat(i + 1),
|
|
9637
|
+
content: "\u5185\u5BB9".concat(i + 1, "\u957F\u5185\u5BB9"),
|
|
9638
|
+
short_content: "\u5185\u5BB9".concat(i + 1, "\u77ED\u5185\u5BB9"),
|
|
9639
|
+
create_time: (/* @__PURE__ */ new Date()).toISOString()
|
|
9640
|
+
}));
|
|
9641
|
+
return res;
|
|
9642
|
+
}
|
|
9643
|
+
/**
|
|
9644
|
+
* 获取单条站内信
|
|
9645
|
+
* @author lxm
|
|
9646
|
+
* @date 2023-11-15 10:57:08
|
|
9647
|
+
* @param {string} messageId
|
|
9648
|
+
* @return {*} {Promise<IHttpResponse<IInternalMessage[]>>}
|
|
9649
|
+
*/
|
|
9650
|
+
async get(messageId) {
|
|
9651
|
+
const res = await ibiz.net.get("".concat(this.baseUrl, "/").concat(messageId));
|
|
9652
|
+
return res;
|
|
9653
|
+
}
|
|
9654
|
+
};
|
|
9655
|
+
|
|
9548
9656
|
// src/service/vo/tree-node-data/tree-node-data.ts
|
|
9549
9657
|
import { createUUID as createUUID5 } from "qx-util";
|
|
9550
9658
|
var TreeNodeData = class {
|
|
@@ -9620,7 +9728,7 @@ var TreeCodeListNodeData = class extends TreeNodeData {
|
|
|
9620
9728
|
|
|
9621
9729
|
// src/service/vo/tree-node-data/tree-data-set-node-data.ts
|
|
9622
9730
|
import { updateKeyDefine } from "@ibiz-template/core";
|
|
9623
|
-
import { clone as clone16, isNil as
|
|
9731
|
+
import { clone as clone16, isNil as isNil13 } from "ramda";
|
|
9624
9732
|
var CloneExcludeKeys = ["_id", "_value", "_text", "_deData", "clone"];
|
|
9625
9733
|
var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
9626
9734
|
constructor(model, parentNodeData, opts) {
|
|
@@ -9638,14 +9746,28 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9638
9746
|
});
|
|
9639
9747
|
Object.defineProperty(this, "_text", {
|
|
9640
9748
|
get() {
|
|
9641
|
-
return model.textAppDEFieldId ?
|
|
9749
|
+
return model.textAppDEFieldId ? this._deData[model.textAppDEFieldId] : this._deData.srfmajortext;
|
|
9750
|
+
},
|
|
9751
|
+
set(v) {
|
|
9752
|
+
if (model.textAppDEFieldId) {
|
|
9753
|
+
this._deData[model.textAppDEFieldId] = v;
|
|
9754
|
+
} else {
|
|
9755
|
+
this._deData.srfmajortext = v;
|
|
9756
|
+
}
|
|
9642
9757
|
},
|
|
9643
9758
|
enumerable: true,
|
|
9644
9759
|
configurable: true
|
|
9645
9760
|
});
|
|
9646
9761
|
Object.defineProperty(this, "_value", {
|
|
9647
9762
|
get() {
|
|
9648
|
-
return model.idAppDEFieldId ?
|
|
9763
|
+
return model.idAppDEFieldId ? this._deData[model.idAppDEFieldId] : this._deData.srfkey;
|
|
9764
|
+
},
|
|
9765
|
+
set(v) {
|
|
9766
|
+
if (model.idAppDEFieldId) {
|
|
9767
|
+
this._deData[model.idAppDEFieldId] = v;
|
|
9768
|
+
} else {
|
|
9769
|
+
this._deData.srfkey = v;
|
|
9770
|
+
}
|
|
9649
9771
|
},
|
|
9650
9772
|
enumerable: true,
|
|
9651
9773
|
configurable: true
|
|
@@ -9681,6 +9803,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9681
9803
|
nodeColumnKeyMap.set(columnKey, dataItemKey);
|
|
9682
9804
|
}
|
|
9683
9805
|
});
|
|
9806
|
+
const presetItemMap = /* @__PURE__ */ new Map();
|
|
9807
|
+
presetItemMap.set("srfuf", "srfuf");
|
|
9684
9808
|
const getDeKey = (key) => {
|
|
9685
9809
|
if (nodeColumnKeyMap.has(key)) {
|
|
9686
9810
|
return dataItemKeyMap.get(nodeColumnKeyMap.get(key));
|
|
@@ -9691,6 +9815,9 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9691
9815
|
if (Object.prototype.hasOwnProperty.call(this._deData, key)) {
|
|
9692
9816
|
return key;
|
|
9693
9817
|
}
|
|
9818
|
+
if (presetItemMap.has(key)) {
|
|
9819
|
+
return presetItemMap.get(key);
|
|
9820
|
+
}
|
|
9694
9821
|
};
|
|
9695
9822
|
const getKeyDefault = (key) => {
|
|
9696
9823
|
if (nodeColumnKeyMap.has(key)) {
|
|
@@ -9710,7 +9837,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9710
9837
|
});
|
|
9711
9838
|
Object.keys(this).forEach((key) => {
|
|
9712
9839
|
const deKey = getDeKey(key);
|
|
9713
|
-
if (
|
|
9840
|
+
if (isNil13(deKey) && !CloneExcludeKeys.includes(key)) {
|
|
9714
9841
|
cloneNodeData[key] = this[key];
|
|
9715
9842
|
}
|
|
9716
9843
|
});
|
|
@@ -9719,7 +9846,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9719
9846
|
return new Proxy(this, {
|
|
9720
9847
|
set(target, p, value) {
|
|
9721
9848
|
const deKey = getDeKey(p);
|
|
9722
|
-
if (!
|
|
9849
|
+
if (!isNil13(deKey)) {
|
|
9723
9850
|
target._deData[deKey] = value;
|
|
9724
9851
|
} else {
|
|
9725
9852
|
target[p] = value;
|
|
@@ -9728,8 +9855,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9728
9855
|
},
|
|
9729
9856
|
get(target, p, _receiver) {
|
|
9730
9857
|
const deKey = getDeKey(p);
|
|
9731
|
-
if (!
|
|
9732
|
-
return
|
|
9858
|
+
if (!isNil13(deKey)) {
|
|
9859
|
+
return isNil13(target._deData[deKey]) ? getKeyDefault(p) : target._deData[deKey];
|
|
9733
9860
|
}
|
|
9734
9861
|
return target[p];
|
|
9735
9862
|
},
|
|
@@ -9833,7 +9960,7 @@ var TreeStaticNodeData = class extends TreeNodeData {
|
|
|
9833
9960
|
|
|
9834
9961
|
// src/service/vo/ui-map-field.ts
|
|
9835
9962
|
import { DataTypes as DataTypes2 } from "@ibiz-template/core";
|
|
9836
|
-
import { isNil as
|
|
9963
|
+
import { isNil as isNil14 } from "ramda";
|
|
9837
9964
|
var UIMapField = class {
|
|
9838
9965
|
constructor(uiKey, dataKey, opts = {}) {
|
|
9839
9966
|
/**
|
|
@@ -9854,10 +9981,10 @@ var UIMapField = class {
|
|
|
9854
9981
|
this.isRequestNeed = true;
|
|
9855
9982
|
this.uiKey = uiKey;
|
|
9856
9983
|
this.dataKey = dataKey;
|
|
9857
|
-
if (!
|
|
9984
|
+
if (!isNil14(opts.isOriginField)) {
|
|
9858
9985
|
this.isOriginField = opts.isOriginField;
|
|
9859
9986
|
}
|
|
9860
|
-
if (!
|
|
9987
|
+
if (!isNil14(opts.dataType)) {
|
|
9861
9988
|
this.dataType = opts.dataType;
|
|
9862
9989
|
}
|
|
9863
9990
|
}
|
|
@@ -9872,7 +9999,7 @@ var UIMapField = class {
|
|
|
9872
9999
|
return value;
|
|
9873
10000
|
}
|
|
9874
10001
|
if (DataTypes2.isNumber(this.dataType)) {
|
|
9875
|
-
const numVal = !
|
|
10002
|
+
const numVal = !isNil14(value) && value !== "" ? Number(value) : value;
|
|
9876
10003
|
if (Number.isNaN(numVal)) {
|
|
9877
10004
|
ibiz.log.debug("".concat(value, "\u4E0D\u80FD\u8F6C\u6362\u6210\u6570\u5B57"));
|
|
9878
10005
|
return value;
|
|
@@ -10043,7 +10170,7 @@ var MapData = class {
|
|
|
10043
10170
|
};
|
|
10044
10171
|
|
|
10045
10172
|
// src/service/vo/panel-data/panel-data.ts
|
|
10046
|
-
import { QXEvent as
|
|
10173
|
+
import { QXEvent as QXEvent3 } from "qx-util";
|
|
10047
10174
|
function updateKeyDefine3(target, keys) {
|
|
10048
10175
|
keys.forEach((key) => {
|
|
10049
10176
|
if (!Object.prototype.hasOwnProperty.call(target, key)) {
|
|
@@ -10058,7 +10185,7 @@ function updateKeyDefine3(target, keys) {
|
|
|
10058
10185
|
}
|
|
10059
10186
|
var PanelData = class {
|
|
10060
10187
|
constructor(fields, origin) {
|
|
10061
|
-
const _evt = new
|
|
10188
|
+
const _evt = new QXEvent3();
|
|
10062
10189
|
const keyMap = {};
|
|
10063
10190
|
const reverseKeyMap = {};
|
|
10064
10191
|
fields.forEach((field) => {
|
|
@@ -10280,7 +10407,7 @@ var GanttCodeListNodeData = class extends TreeCodeListNodeData {
|
|
|
10280
10407
|
};
|
|
10281
10408
|
|
|
10282
10409
|
// src/service/mqtt/mqtt.service.ts
|
|
10283
|
-
import { QXEvent as
|
|
10410
|
+
import { QXEvent as QXEvent4, createUUID as createUUID7 } from "qx-util";
|
|
10284
10411
|
var MqttService = class {
|
|
10285
10412
|
/**
|
|
10286
10413
|
* Creates an instance of MqttService.
|
|
@@ -10301,7 +10428,7 @@ var MqttService = class {
|
|
|
10301
10428
|
* @author chitanda
|
|
10302
10429
|
* @date 2023-10-23 15:10:06
|
|
10303
10430
|
*/
|
|
10304
|
-
this.evt = new
|
|
10431
|
+
this.evt = new QXEvent4();
|
|
10305
10432
|
/**
|
|
10306
10433
|
* 连接选项
|
|
10307
10434
|
*
|
|
@@ -10370,7 +10497,7 @@ var MqttService = class {
|
|
|
10370
10497
|
};
|
|
10371
10498
|
|
|
10372
10499
|
// src/service/de-service-util.ts
|
|
10373
|
-
import { RuntimeError as
|
|
10500
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
10374
10501
|
var _DEServiceUtil = class _DEServiceUtil {
|
|
10375
10502
|
/**
|
|
10376
10503
|
* Creates an instance of DEServiceUtil.
|
|
@@ -10423,7 +10550,7 @@ var _DEServiceUtil = class _DEServiceUtil {
|
|
|
10423
10550
|
this.appModel.appId
|
|
10424
10551
|
);
|
|
10425
10552
|
if (!entityModel) {
|
|
10426
|
-
throw new
|
|
10553
|
+
throw new RuntimeError23("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
10427
10554
|
}
|
|
10428
10555
|
const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
|
|
10429
10556
|
let service;
|
|
@@ -10555,7 +10682,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10555
10682
|
const context = clone17(_context);
|
|
10556
10683
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
10557
10684
|
if (!appView) {
|
|
10558
|
-
throw new
|
|
10685
|
+
throw new RuntimeError24("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
10559
10686
|
}
|
|
10560
10687
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
10561
10688
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -10586,11 +10713,14 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10586
10713
|
}
|
|
10587
10714
|
switch (viewOpenMode) {
|
|
10588
10715
|
case "INDEXVIEWTAB":
|
|
10716
|
+
case "INDEXVIEWTAB_POPUP":
|
|
10589
10717
|
if (opts.noWaitRoute) {
|
|
10590
10718
|
this.openIndexViewTab(appView, context, params);
|
|
10591
10719
|
return { ok: true };
|
|
10592
10720
|
}
|
|
10593
10721
|
return this.openIndexViewTab(appView, context, params);
|
|
10722
|
+
case "INDEXVIEWTAB_POPUPMODAL":
|
|
10723
|
+
return this.openIndexViewTabByModal(appView, context, params);
|
|
10594
10724
|
case "POPUP":
|
|
10595
10725
|
throw new ModelError15(appView, "\u672A\u652F\u6301\u7684\u89C6\u56FE\u6253\u5F00\u6A21\u5F0F: POPUP");
|
|
10596
10726
|
case "POPUPMODAL":
|
|
@@ -10623,6 +10753,20 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10623
10753
|
openIndexViewTab(appView, context, params = {}) {
|
|
10624
10754
|
return ibiz.openView.root(appView.id, context, params);
|
|
10625
10755
|
}
|
|
10756
|
+
/**
|
|
10757
|
+
* 模态路由打开视图,路由拼接于当前视图路由后。再由特殊解析呈现
|
|
10758
|
+
*
|
|
10759
|
+
* @author chitanda
|
|
10760
|
+
* @date 2024-01-23 11:01:07
|
|
10761
|
+
* @protected
|
|
10762
|
+
* @param {IViewConfig} appView
|
|
10763
|
+
* @param {IContext} context
|
|
10764
|
+
* @param {IParams} [params={}]
|
|
10765
|
+
* @return {*} {Promise<IModalData>}
|
|
10766
|
+
*/
|
|
10767
|
+
openIndexViewTabByModal(appView, context, params = {}) {
|
|
10768
|
+
return ibiz.openView.rootByModal(appView.id, context, params);
|
|
10769
|
+
}
|
|
10626
10770
|
/**
|
|
10627
10771
|
* 模态窗口打开
|
|
10628
10772
|
*
|
|
@@ -10650,7 +10794,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10650
10794
|
*/
|
|
10651
10795
|
async openPopover(appView, event, context, params = {}) {
|
|
10652
10796
|
if (!event) {
|
|
10653
|
-
throw new
|
|
10797
|
+
throw new RuntimeError24("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
10654
10798
|
}
|
|
10655
10799
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
10656
10800
|
}
|
|
@@ -10706,7 +10850,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10706
10850
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
10707
10851
|
const appFunc = app.getAppFunc(appFuncId);
|
|
10708
10852
|
if (!appFunc) {
|
|
10709
|
-
throw new
|
|
10853
|
+
throw new RuntimeError25("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
10710
10854
|
}
|
|
10711
10855
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
10712
10856
|
const _context = context.clone();
|
|
@@ -10740,7 +10884,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10740
10884
|
*/
|
|
10741
10885
|
async openAppView(appFunc, context, params, opts) {
|
|
10742
10886
|
if (!appFunc.appViewId) {
|
|
10743
|
-
throw new
|
|
10887
|
+
throw new RuntimeError25("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
10744
10888
|
}
|
|
10745
10889
|
return ibiz.commands.execute(
|
|
10746
10890
|
OpenAppViewCommand.TAG,
|
|
@@ -10774,7 +10918,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10774
10918
|
*/
|
|
10775
10919
|
openPdAppFunc(appFunc, context, params) {
|
|
10776
10920
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
10777
|
-
throw new
|
|
10921
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10778
10922
|
}
|
|
10779
10923
|
/**
|
|
10780
10924
|
* 执行 JavaScript 脚本
|
|
@@ -10788,7 +10932,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10788
10932
|
*/
|
|
10789
10933
|
executeJavaScript(appFunc, context, params) {
|
|
10790
10934
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
10791
|
-
throw new
|
|
10935
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10792
10936
|
}
|
|
10793
10937
|
/**
|
|
10794
10938
|
* 自定义应用功能
|
|
@@ -10802,7 +10946,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10802
10946
|
*/
|
|
10803
10947
|
custom(appFunc, context, params) {
|
|
10804
10948
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
10805
|
-
throw new
|
|
10949
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10806
10950
|
}
|
|
10807
10951
|
};
|
|
10808
10952
|
/**
|
|
@@ -10823,7 +10967,7 @@ function installCommand() {
|
|
|
10823
10967
|
}
|
|
10824
10968
|
|
|
10825
10969
|
// src/app-hub.ts
|
|
10826
|
-
import { RuntimeError as
|
|
10970
|
+
import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
|
|
10827
10971
|
|
|
10828
10972
|
// src/application.ts
|
|
10829
10973
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -11015,7 +11159,7 @@ var Convert = class {
|
|
|
11015
11159
|
};
|
|
11016
11160
|
|
|
11017
11161
|
// src/hub/config/app-view-config-service.ts
|
|
11018
|
-
import { RuntimeError as
|
|
11162
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
11019
11163
|
var AppViewConfigService = class {
|
|
11020
11164
|
constructor() {
|
|
11021
11165
|
/**
|
|
@@ -11057,7 +11201,7 @@ var AppViewConfigService = class {
|
|
|
11057
11201
|
if (!this.viewConfigs.has(id)) {
|
|
11058
11202
|
const model = await ibiz.hub.getAppView(id);
|
|
11059
11203
|
if (!model) {
|
|
11060
|
-
throw new
|
|
11204
|
+
throw new RuntimeError26("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
11061
11205
|
}
|
|
11062
11206
|
this.set(model.id, {
|
|
11063
11207
|
id: model.id,
|
|
@@ -11121,14 +11265,14 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
|
|
|
11121
11265
|
|
|
11122
11266
|
// src/controller/common/view/view.controller.ts
|
|
11123
11267
|
import { notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
11124
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
11125
|
-
import { isEmpty as isEmpty8, isNil as
|
|
11268
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
11269
|
+
import { isEmpty as isEmpty8, isNil as isNil20, isNotNil as isNotNil2 } from "ramda";
|
|
11126
11270
|
|
|
11127
11271
|
// src/controller/utils/loading/loading.state.ts
|
|
11128
11272
|
import { NOOP } from "@ibiz-template/core";
|
|
11129
11273
|
|
|
11130
11274
|
// src/controller/utils/counter/counter.ts
|
|
11131
|
-
import { RuntimeError as
|
|
11275
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
11132
11276
|
var Counter = class {
|
|
11133
11277
|
/**
|
|
11134
11278
|
* Creates an instance of Counter.
|
|
@@ -11190,7 +11334,7 @@ var Counter = class {
|
|
|
11190
11334
|
return;
|
|
11191
11335
|
}
|
|
11192
11336
|
if (this.count === 0) {
|
|
11193
|
-
throw new
|
|
11337
|
+
throw new RuntimeError27("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
11194
11338
|
}
|
|
11195
11339
|
this.count -= 1;
|
|
11196
11340
|
if (this.count === 0) {
|
|
@@ -11260,7 +11404,7 @@ var LoadingState = class {
|
|
|
11260
11404
|
};
|
|
11261
11405
|
|
|
11262
11406
|
// src/controller/ctx/ctx.ts
|
|
11263
|
-
import { QXEvent as
|
|
11407
|
+
import { QXEvent as QXEvent5 } from "qx-util";
|
|
11264
11408
|
|
|
11265
11409
|
// src/controller/ctx/ctx.state.ts
|
|
11266
11410
|
var CTXState = class {
|
|
@@ -11290,7 +11434,7 @@ var CTX = class {
|
|
|
11290
11434
|
* @date 2023-04-26 07:54:46
|
|
11291
11435
|
* @protected
|
|
11292
11436
|
*/
|
|
11293
|
-
this.evt = new
|
|
11437
|
+
this.evt = new QXEvent5(3e3);
|
|
11294
11438
|
/**
|
|
11295
11439
|
* 当前视图控制器集合(包含自身视图控制器,部件控制器,和下一层级的视图的控制器)
|
|
11296
11440
|
* @author lxm
|
|
@@ -11615,8 +11759,8 @@ var ButtonContainerState = class {
|
|
|
11615
11759
|
};
|
|
11616
11760
|
|
|
11617
11761
|
// src/controller/utils/event/qx-event-ex.ts
|
|
11618
|
-
import { clearAll, QXEvent as
|
|
11619
|
-
var QXEventEx = class extends
|
|
11762
|
+
import { clearAll, QXEvent as QXEvent6 } from "qx-util";
|
|
11763
|
+
var QXEventEx = class extends QXEvent6 {
|
|
11620
11764
|
constructor() {
|
|
11621
11765
|
super(...arguments);
|
|
11622
11766
|
this.anyEventFns = [];
|
|
@@ -11754,9 +11898,9 @@ function hasSubRoute(routeDepth) {
|
|
|
11754
11898
|
}
|
|
11755
11899
|
|
|
11756
11900
|
// src/controller/utils/util/util.ts
|
|
11757
|
-
import { isNil as
|
|
11901
|
+
import { isNil as isNil15 } from "ramda";
|
|
11758
11902
|
function isValueChange(value, value2) {
|
|
11759
|
-
if ((
|
|
11903
|
+
if ((isNil15(value) || value === "") && (isNil15(value2) || value2 === "")) {
|
|
11760
11904
|
return false;
|
|
11761
11905
|
}
|
|
11762
11906
|
return value !== value2;
|
|
@@ -11770,9 +11914,9 @@ function getOriginData(data) {
|
|
|
11770
11914
|
}
|
|
11771
11915
|
|
|
11772
11916
|
// src/controller/utils/value-rule/value-rule.ts
|
|
11773
|
-
import { RuntimeError as
|
|
11917
|
+
import { RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
11774
11918
|
import { isNilOrEmpty as isNilOrEmpty6, isNumber } from "qx-util";
|
|
11775
|
-
import { isNil as
|
|
11919
|
+
import { isNil as isNil16 } from "ramda";
|
|
11776
11920
|
function generateRules(itemVRs, name, valueItemName) {
|
|
11777
11921
|
const rules = [];
|
|
11778
11922
|
itemVRs.forEach((item) => {
|
|
@@ -11820,7 +11964,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
11820
11964
|
deRule.groupCond
|
|
11821
11965
|
);
|
|
11822
11966
|
if (!isPast) {
|
|
11823
|
-
callback(new
|
|
11967
|
+
callback(new RuntimeError28(infoMessage || deRule.ruleInfo));
|
|
11824
11968
|
}
|
|
11825
11969
|
return true;
|
|
11826
11970
|
},
|
|
@@ -11837,7 +11981,7 @@ function generateEditorRules(editor) {
|
|
|
11837
11981
|
if (maxLength) {
|
|
11838
11982
|
rules.push({
|
|
11839
11983
|
validator: (rule, value, callback) => {
|
|
11840
|
-
if (!
|
|
11984
|
+
if (!isNil16(value) && value.length > maxLength) {
|
|
11841
11985
|
callback(
|
|
11842
11986
|
new Error(
|
|
11843
11987
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -11852,7 +11996,7 @@ function generateEditorRules(editor) {
|
|
|
11852
11996
|
if (minLength) {
|
|
11853
11997
|
rules.push({
|
|
11854
11998
|
validator: (rule, value, callback) => {
|
|
11855
|
-
if (!
|
|
11999
|
+
if (!isNil16(value) && value.length < minLength) {
|
|
11856
12000
|
callback(
|
|
11857
12001
|
new Error(
|
|
11858
12002
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -11864,10 +12008,10 @@ function generateEditorRules(editor) {
|
|
|
11864
12008
|
}
|
|
11865
12009
|
});
|
|
11866
12010
|
}
|
|
11867
|
-
if (!
|
|
12011
|
+
if (!isNil16(maxValue)) {
|
|
11868
12012
|
rules.push({
|
|
11869
12013
|
validator: (rule, value, callback) => {
|
|
11870
|
-
if (!
|
|
12014
|
+
if (!isNil16(value) && isNumber(value) && value > maxValue) {
|
|
11871
12015
|
callback(new Error("\u503C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxValue)));
|
|
11872
12016
|
} else {
|
|
11873
12017
|
return true;
|
|
@@ -11875,10 +12019,10 @@ function generateEditorRules(editor) {
|
|
|
11875
12019
|
}
|
|
11876
12020
|
});
|
|
11877
12021
|
}
|
|
11878
|
-
if (!
|
|
12022
|
+
if (!isNil16(minValue)) {
|
|
11879
12023
|
rules.push({
|
|
11880
12024
|
validator: (rule, value, callback) => {
|
|
11881
|
-
if (!
|
|
12025
|
+
if (!isNil16(value) && isNumber(value) && value < minValue) {
|
|
11882
12026
|
callback(new Error("\u503C\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minValue)));
|
|
11883
12027
|
} else {
|
|
11884
12028
|
return true;
|
|
@@ -11890,8 +12034,8 @@ function generateEditorRules(editor) {
|
|
|
11890
12034
|
}
|
|
11891
12035
|
|
|
11892
12036
|
// src/controller/utils/value-ex/value-ex.ts
|
|
11893
|
-
import { RuntimeError as
|
|
11894
|
-
import { isNil as
|
|
12037
|
+
import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
12038
|
+
import { isNil as isNil17, mergeLeft } from "ramda";
|
|
11895
12039
|
var ValueExUtil = class {
|
|
11896
12040
|
/**
|
|
11897
12041
|
* 合并默认值
|
|
@@ -11916,13 +12060,13 @@ var ValueExUtil = class {
|
|
|
11916
12060
|
* @return {*} {string}
|
|
11917
12061
|
*/
|
|
11918
12062
|
static toText(options, value) {
|
|
11919
|
-
if (
|
|
12063
|
+
if (isNil17(value) || value === "") {
|
|
11920
12064
|
return "";
|
|
11921
12065
|
}
|
|
11922
12066
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
11923
12067
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
11924
12068
|
if (!objectNameField) {
|
|
11925
|
-
throw new
|
|
12069
|
+
throw new RuntimeError29("\u7F3A\u5C11objectNameField");
|
|
11926
12070
|
}
|
|
11927
12071
|
const textKey = objectNameField.toLowerCase();
|
|
11928
12072
|
if (valueType === "OBJECTS") {
|
|
@@ -11938,15 +12082,15 @@ var ValueExUtil = class {
|
|
|
11938
12082
|
};
|
|
11939
12083
|
|
|
11940
12084
|
// src/controller/utils/value-default/value-default.ts
|
|
11941
|
-
import { RuntimeError as
|
|
12085
|
+
import { RuntimeError as RuntimeError30, ModelError as ModelError17 } from "@ibiz-template/core";
|
|
11942
12086
|
import dayjs from "dayjs";
|
|
11943
12087
|
import { createUUID as createUUID8 } from "qx-util";
|
|
11944
|
-
import { isNil as
|
|
12088
|
+
import { isNil as isNil18, isNotNil } from "ramda";
|
|
11945
12089
|
function getDefaultValue(opts, origins) {
|
|
11946
12090
|
var _a;
|
|
11947
12091
|
const { name, valueType, defaultValue, valueFormat } = opts;
|
|
11948
12092
|
const { data, context, params } = origins;
|
|
11949
|
-
if (
|
|
12093
|
+
if (isNil18(valueType) && isNil18(defaultValue)) {
|
|
11950
12094
|
return;
|
|
11951
12095
|
}
|
|
11952
12096
|
if (valueType === "RESET") {
|
|
@@ -11979,7 +12123,7 @@ function getDefaultValue(opts, origins) {
|
|
|
11979
12123
|
case "SESSION":
|
|
11980
12124
|
case "APPLICATION":
|
|
11981
12125
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
11982
|
-
throw new
|
|
12126
|
+
throw new RuntimeError30("appdata.context\u4E0D\u5B58\u5728");
|
|
11983
12127
|
}
|
|
11984
12128
|
return ibiz.appData.context[defaultValue];
|
|
11985
12129
|
case "CONTEXT":
|
|
@@ -11993,7 +12137,7 @@ function getDefaultValue(opts, origins) {
|
|
|
11993
12137
|
|
|
11994
12138
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
11995
12139
|
import {
|
|
11996
|
-
RuntimeError as
|
|
12140
|
+
RuntimeError as RuntimeError31
|
|
11997
12141
|
} from "@ibiz-template/core";
|
|
11998
12142
|
var asyncImportUrl = "asyncimportdata2";
|
|
11999
12143
|
var importUrl = "importdata2";
|
|
@@ -12047,11 +12191,11 @@ async function importData(file, appDataEntity, dataImport) {
|
|
|
12047
12191
|
}
|
|
12048
12192
|
async function exportData(header, data, fileName) {
|
|
12049
12193
|
if (!ibiz.util.getExcelUtil) {
|
|
12050
|
-
throw new
|
|
12194
|
+
throw new RuntimeError31("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
12051
12195
|
}
|
|
12052
12196
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
12053
12197
|
if (!exportExcel) {
|
|
12054
|
-
throw new
|
|
12198
|
+
throw new RuntimeError31("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
12055
12199
|
}
|
|
12056
12200
|
try {
|
|
12057
12201
|
exportExcel.exportJsonToExcel({
|
|
@@ -12299,8 +12443,8 @@ var BaseController = class {
|
|
|
12299
12443
|
};
|
|
12300
12444
|
|
|
12301
12445
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
12302
|
-
import { RuntimeError as
|
|
12303
|
-
import { isNil as
|
|
12446
|
+
import { RuntimeError as RuntimeError32, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
12447
|
+
import { isNil as isNil19, mergeRight as mergeRight2 } from "ramda";
|
|
12304
12448
|
var ViewMsgController = class _ViewMsgController {
|
|
12305
12449
|
constructor(msgGroupId) {
|
|
12306
12450
|
this.msgGroupId = msgGroupId;
|
|
@@ -12325,7 +12469,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12325
12469
|
(item) => item.id === this.msgGroupId
|
|
12326
12470
|
);
|
|
12327
12471
|
if (!msgGroup) {
|
|
12328
|
-
throw new
|
|
12472
|
+
throw new RuntimeError32("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
12329
12473
|
}
|
|
12330
12474
|
this.msgGroup = msgGroup;
|
|
12331
12475
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -12339,7 +12483,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12339
12483
|
}
|
|
12340
12484
|
});
|
|
12341
12485
|
if (msgDetailsViewMsgIds.length) {
|
|
12342
|
-
throw new
|
|
12486
|
+
throw new RuntimeError32(
|
|
12343
12487
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
12344
12488
|
);
|
|
12345
12489
|
}
|
|
@@ -12485,19 +12629,19 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12485
12629
|
const removeModeField = this.getDeFieldName(entity, removeFlagAppDEFieldId);
|
|
12486
12630
|
const deViewMessages = dataSet.map((item) => {
|
|
12487
12631
|
const message = {};
|
|
12488
|
-
if (positionField && !
|
|
12632
|
+
if (positionField && !isNil19(item[positionField])) {
|
|
12489
12633
|
message.position = item[positionField];
|
|
12490
12634
|
}
|
|
12491
|
-
if (titleField && !
|
|
12635
|
+
if (titleField && !isNil19(item[titleField])) {
|
|
12492
12636
|
message.title = item[titleField];
|
|
12493
12637
|
}
|
|
12494
|
-
if (messageField && !
|
|
12638
|
+
if (messageField && !isNil19(item[messageField])) {
|
|
12495
12639
|
message.message = item[messageField];
|
|
12496
12640
|
}
|
|
12497
|
-
if (typeField && !
|
|
12641
|
+
if (typeField && !isNil19(item[typeField])) {
|
|
12498
12642
|
message.messageType = item[typeField];
|
|
12499
12643
|
}
|
|
12500
|
-
if (removeModeField && !
|
|
12644
|
+
if (removeModeField && !isNil19(item[removeModeField])) {
|
|
12501
12645
|
message.removeMode = item[removeModeField];
|
|
12502
12646
|
}
|
|
12503
12647
|
return mergeRight2(basicMsg, message);
|
|
@@ -12736,7 +12880,7 @@ var ViewController = class extends BaseController {
|
|
|
12736
12880
|
*/
|
|
12737
12881
|
handleContextParams() {
|
|
12738
12882
|
this.context.srfappid = this.model.appId;
|
|
12739
|
-
if (
|
|
12883
|
+
if (isNil20(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
|
|
12740
12884
|
const domain = ibiz.uiDomainManager.create(this.id);
|
|
12741
12885
|
this.context.srfsessionid = domain.id;
|
|
12742
12886
|
}
|
|
@@ -12769,7 +12913,7 @@ var ViewController = class extends BaseController {
|
|
|
12769
12913
|
async callUIAction(key, args) {
|
|
12770
12914
|
const result = this.call(key, args);
|
|
12771
12915
|
if (result === void 0) {
|
|
12772
|
-
throw new
|
|
12916
|
+
throw new RuntimeError33("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
12773
12917
|
}
|
|
12774
12918
|
return result;
|
|
12775
12919
|
}
|
|
@@ -13120,7 +13264,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
13120
13264
|
|
|
13121
13265
|
// src/controller/common/control/control.controller.ts
|
|
13122
13266
|
import { IBizContext as IBizContext3, IBizParams, NoticeError as NoticeError2 } from "@ibiz-template/core";
|
|
13123
|
-
import { clone as clone18, isNil as
|
|
13267
|
+
import { clone as clone18, isNil as isNil21 } from "ramda";
|
|
13124
13268
|
import { notNilEmpty as notNilEmpty7 } from "qx-util";
|
|
13125
13269
|
var ControlController = class extends BaseController {
|
|
13126
13270
|
/**
|
|
@@ -13408,7 +13552,7 @@ var ControlController = class extends BaseController {
|
|
|
13408
13552
|
let message;
|
|
13409
13553
|
let duration;
|
|
13410
13554
|
if (msgItem && msgItem.content) {
|
|
13411
|
-
duration =
|
|
13555
|
+
duration = isNil21(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
|
|
13412
13556
|
const scriptParams = { ...this.getEventArgs() };
|
|
13413
13557
|
if (opts == null ? void 0 : opts.data) {
|
|
13414
13558
|
scriptParams.data = opts.data;
|
|
@@ -13447,7 +13591,7 @@ var ControlController = class extends BaseController {
|
|
|
13447
13591
|
};
|
|
13448
13592
|
|
|
13449
13593
|
// src/controller/common/control/md-control.controller.ts
|
|
13450
|
-
import { isElementSame, RuntimeError as
|
|
13594
|
+
import { isElementSame, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
13451
13595
|
import { debounce } from "lodash-es";
|
|
13452
13596
|
var MDControlController = class extends ControlController {
|
|
13453
13597
|
constructor() {
|
|
@@ -13730,7 +13874,7 @@ var MDControlController = class extends ControlController {
|
|
|
13730
13874
|
async remove(args) {
|
|
13731
13875
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
13732
13876
|
if (!(data == null ? void 0 : data.length)) {
|
|
13733
|
-
throw new
|
|
13877
|
+
throw new RuntimeError34("\u672A\u9009\u4E2D\u6570\u636E");
|
|
13734
13878
|
}
|
|
13735
13879
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
13736
13880
|
const del = await ibiz.confirm.error({
|
|
@@ -13879,7 +14023,7 @@ var MDControlController = class extends ControlController {
|
|
|
13879
14023
|
(importItem) => importItem.id === dedataImportId
|
|
13880
14024
|
);
|
|
13881
14025
|
if (!dataImport) {
|
|
13882
|
-
throw new
|
|
14026
|
+
throw new RuntimeError34("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
13883
14027
|
}
|
|
13884
14028
|
let importName = "DataImport";
|
|
13885
14029
|
if (dataImport.enableCustomized) {
|
|
@@ -13913,7 +14057,7 @@ var MDControlController = class extends ControlController {
|
|
|
13913
14057
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
13914
14058
|
import {
|
|
13915
14059
|
findRecursiveChild,
|
|
13916
|
-
RuntimeError as
|
|
14060
|
+
RuntimeError as RuntimeError35,
|
|
13917
14061
|
RuntimeModelError as RuntimeModelError26
|
|
13918
14062
|
} from "@ibiz-template/core";
|
|
13919
14063
|
var AppMenuController = class extends ControlController {
|
|
@@ -13982,7 +14126,7 @@ var AppMenuController = class extends ControlController {
|
|
|
13982
14126
|
childrenFields: ["appMenuItems"]
|
|
13983
14127
|
});
|
|
13984
14128
|
if (!menuItem) {
|
|
13985
|
-
throw new
|
|
14129
|
+
throw new RuntimeError35("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
13986
14130
|
}
|
|
13987
14131
|
this.evt.emit("onClick", {
|
|
13988
14132
|
eventArg: id,
|
|
@@ -14111,7 +14255,7 @@ var AppMenuController = class extends ControlController {
|
|
|
14111
14255
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
14112
14256
|
import {
|
|
14113
14257
|
findRecursiveChild as findRecursiveChild2,
|
|
14114
|
-
RuntimeError as
|
|
14258
|
+
RuntimeError as RuntimeError36,
|
|
14115
14259
|
RuntimeModelError as RuntimeModelError27
|
|
14116
14260
|
} from "@ibiz-template/core";
|
|
14117
14261
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -14121,7 +14265,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
14121
14265
|
childrenFields: ["appMenuItems"]
|
|
14122
14266
|
});
|
|
14123
14267
|
if (!menuItem) {
|
|
14124
|
-
throw new
|
|
14268
|
+
throw new RuntimeError36("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
14125
14269
|
}
|
|
14126
14270
|
this.evt.emit("onClick", {
|
|
14127
14271
|
eventArg: id,
|
|
@@ -14149,7 +14293,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
14149
14293
|
import dayjs3 from "dayjs";
|
|
14150
14294
|
|
|
14151
14295
|
// src/controller/control/calendar/calendar.service.ts
|
|
14152
|
-
import { RuntimeError as
|
|
14296
|
+
import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
14153
14297
|
var CalendarService = class extends MDControlService {
|
|
14154
14298
|
/**
|
|
14155
14299
|
* 执行查询多条数据的方法
|
|
@@ -14199,11 +14343,11 @@ var CalendarService = class extends MDControlService {
|
|
|
14199
14343
|
setCalendarConfigData(items, index) {
|
|
14200
14344
|
const { sysCalendarItems } = this.model;
|
|
14201
14345
|
if (!sysCalendarItems) {
|
|
14202
|
-
throw new
|
|
14346
|
+
throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
14203
14347
|
}
|
|
14204
14348
|
const calendarItem = sysCalendarItems[index];
|
|
14205
14349
|
if (!calendarItem) {
|
|
14206
|
-
throw new
|
|
14350
|
+
throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
14207
14351
|
}
|
|
14208
14352
|
return items.map((item) => {
|
|
14209
14353
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -14417,11 +14561,11 @@ var CalendarController = class extends MDControlController {
|
|
|
14417
14561
|
};
|
|
14418
14562
|
|
|
14419
14563
|
// src/controller/control/chart/chart.controller.ts
|
|
14420
|
-
import { RuntimeError as
|
|
14564
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
14421
14565
|
|
|
14422
14566
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
14423
14567
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
14424
|
-
import { RuntimeError as
|
|
14568
|
+
import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
|
|
14425
14569
|
|
|
14426
14570
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
14427
14571
|
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
@@ -14434,7 +14578,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
14434
14578
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
14435
14579
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
14436
14580
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
14437
|
-
import { clone as clone19, isNil as
|
|
14581
|
+
import { clone as clone19, isNil as isNil22, mergeDeepRight } from "ramda";
|
|
14438
14582
|
dayjs4.extend(minMax);
|
|
14439
14583
|
dayjs4.extend(isSameOrBefore);
|
|
14440
14584
|
dayjs4.extend(quarterOfYear);
|
|
@@ -14530,10 +14674,10 @@ var BaseSeriesGenerator = class {
|
|
|
14530
14674
|
* @return {*} {(string | undefined)}
|
|
14531
14675
|
*/
|
|
14532
14676
|
translateVal(codeListKey, val, isExclude = false) {
|
|
14533
|
-
if (
|
|
14677
|
+
if (isNil22(val)) {
|
|
14534
14678
|
return void 0;
|
|
14535
14679
|
}
|
|
14536
|
-
if (
|
|
14680
|
+
if (isNil22(codeListKey)) {
|
|
14537
14681
|
return val;
|
|
14538
14682
|
}
|
|
14539
14683
|
const codeListItems = this.chartGenerator.codeListMap.get(codeListKey);
|
|
@@ -14582,7 +14726,7 @@ var BaseSeriesGenerator = class {
|
|
|
14582
14726
|
seriesCodeListId,
|
|
14583
14727
|
item[this.groupField]
|
|
14584
14728
|
);
|
|
14585
|
-
if (
|
|
14729
|
+
if (isNil22(groupVal)) {
|
|
14586
14730
|
return;
|
|
14587
14731
|
}
|
|
14588
14732
|
group = groupVal;
|
|
@@ -15430,7 +15574,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
15430
15574
|
getChartDataByParams(params) {
|
|
15431
15575
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
15432
15576
|
if (!generator) {
|
|
15433
|
-
throw new
|
|
15577
|
+
throw new RuntimeError38("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
15434
15578
|
}
|
|
15435
15579
|
return generator.getChartDataByParams(params);
|
|
15436
15580
|
}
|
|
@@ -15543,10 +15687,10 @@ var ChartController = class extends MDControlController {
|
|
|
15543
15687
|
*/
|
|
15544
15688
|
updateChart() {
|
|
15545
15689
|
if (!this.chart) {
|
|
15546
|
-
throw new
|
|
15690
|
+
throw new RuntimeError39("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
15547
15691
|
}
|
|
15548
15692
|
if (!this.options) {
|
|
15549
|
-
throw new
|
|
15693
|
+
throw new RuntimeError39("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
15550
15694
|
}
|
|
15551
15695
|
this.chart.setOption(this.options, { notMerge: true });
|
|
15552
15696
|
this.resizeChart();
|
|
@@ -15584,7 +15728,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
15584
15728
|
};
|
|
15585
15729
|
|
|
15586
15730
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
15587
|
-
import { recursiveIterate as recursiveIterate2, RuntimeError as
|
|
15731
|
+
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
15588
15732
|
|
|
15589
15733
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
15590
15734
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
@@ -15594,7 +15738,7 @@ import { isArray as isArray8 } from "qx-util";
|
|
|
15594
15738
|
import { RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
15595
15739
|
|
|
15596
15740
|
// src/ui-logic/index.ts
|
|
15597
|
-
import { RuntimeError as
|
|
15741
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
15598
15742
|
|
|
15599
15743
|
// src/ui-logic/ui-logic.ts
|
|
15600
15744
|
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
@@ -16145,7 +16289,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
16145
16289
|
};
|
|
16146
16290
|
|
|
16147
16291
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
16148
|
-
import { ModelError as ModelError22, RuntimeError as
|
|
16292
|
+
import { ModelError as ModelError22, RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
16149
16293
|
import { clone as clone21 } from "ramda";
|
|
16150
16294
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
16151
16295
|
async exec(ctx) {
|
|
@@ -16195,7 +16339,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
16195
16339
|
setParamValue(nodeParam, ctx) {
|
|
16196
16340
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
16197
16341
|
if (!dstDEUILogicParamId) {
|
|
16198
|
-
throw new
|
|
16342
|
+
throw new RuntimeError40("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
16199
16343
|
}
|
|
16200
16344
|
let dstField = dstFieldName;
|
|
16201
16345
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -16312,7 +16456,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
16312
16456
|
};
|
|
16313
16457
|
|
|
16314
16458
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
16315
|
-
import { RuntimeError as
|
|
16459
|
+
import { RuntimeError as RuntimeError41, RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
16316
16460
|
import { isFunction } from "lodash-es";
|
|
16317
16461
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
16318
16462
|
async exec(ctx) {
|
|
@@ -16329,14 +16473,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
16329
16473
|
}
|
|
16330
16474
|
const invokeParam = ctx.params[invokeParamId];
|
|
16331
16475
|
if (!invokeParam) {
|
|
16332
|
-
throw new
|
|
16476
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
16333
16477
|
}
|
|
16334
16478
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
16335
16479
|
if (!invokeCtrl) {
|
|
16336
|
-
throw new
|
|
16480
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
16337
16481
|
}
|
|
16338
16482
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
16339
|
-
throw new
|
|
16483
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
16340
16484
|
}
|
|
16341
16485
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
16342
16486
|
}
|
|
@@ -16444,7 +16588,7 @@ var DebugParamNode = class extends UILogicNode {
|
|
|
16444
16588
|
throw new RuntimeModelError39(this.model, "\u7F3A\u5C11\u76EE\u6807\u53C2\u6570\u5BF9\u8C61\u914D\u7F6E");
|
|
16445
16589
|
}
|
|
16446
16590
|
const param = ctx.params[dstDEUILogicParamId];
|
|
16447
|
-
ibiz.log.
|
|
16591
|
+
ibiz.log.info("\u903B\u8F91\u8282\u70B9".concat(name, "\u64CD\u4F5C\u53C2\u6570\u503C:"), param);
|
|
16448
16592
|
}
|
|
16449
16593
|
};
|
|
16450
16594
|
|
|
@@ -16562,16 +16706,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
16562
16706
|
};
|
|
16563
16707
|
|
|
16564
16708
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
16565
|
-
import { RuntimeError as
|
|
16709
|
+
import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
16566
16710
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
16567
16711
|
async exec(_ctx) {
|
|
16568
16712
|
const { errorInfo } = this.model;
|
|
16569
|
-
throw new
|
|
16713
|
+
throw new RuntimeError42(errorInfo);
|
|
16570
16714
|
}
|
|
16571
16715
|
};
|
|
16572
16716
|
|
|
16573
16717
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
16574
|
-
import { RuntimeError as
|
|
16718
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
16575
16719
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
16576
16720
|
async exec(ctx) {
|
|
16577
16721
|
ctx.isEndNode = true;
|
|
@@ -16587,18 +16731,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
16587
16731
|
}
|
|
16588
16732
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
16589
16733
|
if (!invokeCtrl) {
|
|
16590
|
-
throw new
|
|
16734
|
+
throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
16591
16735
|
}
|
|
16592
16736
|
const eventParam = ctx.params[eventParamId];
|
|
16593
16737
|
if (!eventParam) {
|
|
16594
|
-
throw new
|
|
16738
|
+
throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
16595
16739
|
}
|
|
16596
16740
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
16597
16741
|
}
|
|
16598
16742
|
};
|
|
16599
16743
|
|
|
16600
16744
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
16601
|
-
import { RuntimeError as
|
|
16745
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
16602
16746
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
16603
16747
|
async exec(ctx) {
|
|
16604
16748
|
const {
|
|
@@ -16618,7 +16762,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
16618
16762
|
}
|
|
16619
16763
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
16620
16764
|
if (!dstParam) {
|
|
16621
|
-
throw new
|
|
16765
|
+
throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
16622
16766
|
}
|
|
16623
16767
|
const result = await execDELogicById(
|
|
16624
16768
|
dstAppDELogicId,
|
|
@@ -16941,7 +17085,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
16941
17085
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
16942
17086
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
16943
17087
|
if (!deUILogic) {
|
|
16944
|
-
throw new
|
|
17088
|
+
throw new RuntimeError45(
|
|
16945
17089
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
16946
17090
|
);
|
|
16947
17091
|
}
|
|
@@ -16954,7 +17098,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
16954
17098
|
}
|
|
16955
17099
|
|
|
16956
17100
|
// src/ui-action/uiaction-util.ts
|
|
16957
|
-
import { RuntimeError as
|
|
17101
|
+
import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
|
|
16958
17102
|
var UIActionUtil = class {
|
|
16959
17103
|
/**
|
|
16960
17104
|
* 执行界面行为
|
|
@@ -16969,7 +17113,7 @@ var UIActionUtil = class {
|
|
|
16969
17113
|
static async exec(actionId, params, appId2) {
|
|
16970
17114
|
const action = await getUIActionById(actionId, appId2);
|
|
16971
17115
|
if (!action) {
|
|
16972
|
-
throw new
|
|
17116
|
+
throw new RuntimeError46("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
16973
17117
|
}
|
|
16974
17118
|
if (action.actionTarget === "SINGLEDATA") {
|
|
16975
17119
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -17397,7 +17541,7 @@ import {
|
|
|
17397
17541
|
StringUtil,
|
|
17398
17542
|
RuntimeModelError as RuntimeModelError51,
|
|
17399
17543
|
ModelError as ModelError26,
|
|
17400
|
-
RuntimeError as
|
|
17544
|
+
RuntimeError as RuntimeError47
|
|
17401
17545
|
} from "@ibiz-template/core";
|
|
17402
17546
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
17403
17547
|
async execAction(action, args) {
|
|
@@ -17507,7 +17651,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17507
17651
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
17508
17652
|
requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
17509
17653
|
} else {
|
|
17510
|
-
throw new
|
|
17654
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
|
|
17511
17655
|
}
|
|
17512
17656
|
const res = await ibiz.net.request(requestUrl, {
|
|
17513
17657
|
method: "get",
|
|
@@ -17534,10 +17678,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17534
17678
|
window.open(link, "_blank");
|
|
17535
17679
|
}
|
|
17536
17680
|
} else {
|
|
17537
|
-
throw new
|
|
17681
|
+
throw new RuntimeError47("\u6253\u5370\u5931\u8D25");
|
|
17538
17682
|
}
|
|
17539
17683
|
} else {
|
|
17540
|
-
throw new
|
|
17684
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
|
|
17541
17685
|
}
|
|
17542
17686
|
}
|
|
17543
17687
|
/**
|
|
@@ -17588,7 +17732,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17588
17732
|
refreshMode: 1
|
|
17589
17733
|
};
|
|
17590
17734
|
}
|
|
17591
|
-
throw new
|
|
17735
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
|
|
17592
17736
|
}
|
|
17593
17737
|
/**
|
|
17594
17738
|
* 执行导出行为
|
|
@@ -17639,10 +17783,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17639
17783
|
URL.revokeObjectURL(elink.href);
|
|
17640
17784
|
document.body.removeChild(elink);
|
|
17641
17785
|
} else {
|
|
17642
|
-
throw new
|
|
17786
|
+
throw new RuntimeError47("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
|
|
17643
17787
|
}
|
|
17644
17788
|
} else {
|
|
17645
|
-
throw new
|
|
17789
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
|
|
17646
17790
|
}
|
|
17647
17791
|
}
|
|
17648
17792
|
};
|
|
@@ -17729,7 +17873,7 @@ var ToolbarController = class extends ControlController {
|
|
|
17729
17873
|
const actionId = item.uiactionId;
|
|
17730
17874
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
17731
17875
|
if (!uiAction) {
|
|
17732
|
-
throw new
|
|
17876
|
+
throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
17733
17877
|
}
|
|
17734
17878
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
17735
17879
|
if (enableLoading) {
|
|
@@ -18328,7 +18472,7 @@ var RawItemPortletController = class extends PortletPartController {
|
|
|
18328
18472
|
|
|
18329
18473
|
// src/controller/control/data-view/data-view.controller.ts
|
|
18330
18474
|
import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
18331
|
-
import { isNil as
|
|
18475
|
+
import { isNil as isNil23 } from "ramda";
|
|
18332
18476
|
|
|
18333
18477
|
// src/controller/control/data-view/data-view.service.ts
|
|
18334
18478
|
var DataViewControlService = class extends MDControlService {
|
|
@@ -18616,7 +18760,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
18616
18760
|
const groupMap = /* @__PURE__ */ new Map();
|
|
18617
18761
|
items.forEach((item) => {
|
|
18618
18762
|
const groupVal = item[groupAppDEFieldId];
|
|
18619
|
-
if (
|
|
18763
|
+
if (isNil23(groupVal)) {
|
|
18620
18764
|
return;
|
|
18621
18765
|
}
|
|
18622
18766
|
if (!groupMap.has(groupVal)) {
|
|
@@ -18789,7 +18933,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
18789
18933
|
import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
18790
18934
|
|
|
18791
18935
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
18792
|
-
import { RuntimeError as
|
|
18936
|
+
import { RuntimeError as RuntimeError49, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
18793
18937
|
var ExpBarControlController = class extends ControlController {
|
|
18794
18938
|
constructor() {
|
|
18795
18939
|
super(...arguments);
|
|
@@ -19115,7 +19259,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
19115
19259
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
19116
19260
|
return this.XDataModel.navAppViewId;
|
|
19117
19261
|
}
|
|
19118
|
-
throw new
|
|
19262
|
+
throw new RuntimeError49("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
19119
19263
|
}
|
|
19120
19264
|
/**
|
|
19121
19265
|
* 获取导航视图
|
|
@@ -19258,7 +19402,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
19258
19402
|
};
|
|
19259
19403
|
|
|
19260
19404
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
19261
|
-
import { RuntimeError as
|
|
19405
|
+
import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
19262
19406
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
19263
19407
|
constructor() {
|
|
19264
19408
|
super(...arguments);
|
|
@@ -19332,7 +19476,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
19332
19476
|
const deData = node._deData || node;
|
|
19333
19477
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
19334
19478
|
if (!nodeModel) {
|
|
19335
|
-
throw new
|
|
19479
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230".concat(node._nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
19336
19480
|
}
|
|
19337
19481
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
19338
19482
|
result.context.currentSrfNav = nodeId;
|
|
@@ -19523,7 +19667,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
19523
19667
|
};
|
|
19524
19668
|
|
|
19525
19669
|
// src/controller/control/form/search-form/search-form.controller.ts
|
|
19526
|
-
import { RuntimeError as
|
|
19670
|
+
import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
19527
19671
|
|
|
19528
19672
|
// src/controller/control/form/form/form.controller.ts
|
|
19529
19673
|
import {
|
|
@@ -20094,7 +20238,7 @@ var SearchFormController = class extends FormController {
|
|
|
20094
20238
|
applyStoredFilter(index) {
|
|
20095
20239
|
const filter = this.state.storedFilters[index];
|
|
20096
20240
|
if (!filter) {
|
|
20097
|
-
throw new
|
|
20241
|
+
throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6");
|
|
20098
20242
|
}
|
|
20099
20243
|
if (filter.data) {
|
|
20100
20244
|
Object.assign(this.data, filter.data);
|
|
@@ -20110,7 +20254,7 @@ var SearchFormController = class extends FormController {
|
|
|
20110
20254
|
async removeStoredFilter(index) {
|
|
20111
20255
|
const filter = this.state.storedFilters[index];
|
|
20112
20256
|
if (!filter) {
|
|
20113
|
-
throw new
|
|
20257
|
+
throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6");
|
|
20114
20258
|
}
|
|
20115
20259
|
this.state.storedFilters.splice(index, 1);
|
|
20116
20260
|
await this.saveConfig();
|
|
@@ -21423,7 +21567,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
21423
21567
|
};
|
|
21424
21568
|
|
|
21425
21569
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
21426
|
-
import { RuntimeError as
|
|
21570
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
21427
21571
|
import { createUUID as createUUID11 } from "qx-util";
|
|
21428
21572
|
|
|
21429
21573
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -21540,7 +21684,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
21540
21684
|
async remove(id) {
|
|
21541
21685
|
const controller = this.formMap.get(id);
|
|
21542
21686
|
if (!controller) {
|
|
21543
|
-
throw new
|
|
21687
|
+
throw new RuntimeError52("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94".concat(id, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
21544
21688
|
}
|
|
21545
21689
|
await controller.remove();
|
|
21546
21690
|
const index = this.state.items.findIndex((item) => item.id === id);
|
|
@@ -21842,7 +21986,7 @@ var FormTabPanelController = class extends FormDetailController {
|
|
|
21842
21986
|
import {
|
|
21843
21987
|
awaitTimeout,
|
|
21844
21988
|
mergeInLeft as mergeInLeft2,
|
|
21845
|
-
RuntimeError as
|
|
21989
|
+
RuntimeError as RuntimeError53
|
|
21846
21990
|
} from "@ibiz-template/core";
|
|
21847
21991
|
import { debounce as debounce2 } from "lodash-es";
|
|
21848
21992
|
import { createUUID as createUUID12 } from "qx-util";
|
|
@@ -22307,7 +22451,7 @@ var EditFormController = class extends FormController {
|
|
|
22307
22451
|
}
|
|
22308
22452
|
const isValid = await this.validate();
|
|
22309
22453
|
if (!isValid) {
|
|
22310
|
-
throw new
|
|
22454
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22311
22455
|
}
|
|
22312
22456
|
if (!silent) {
|
|
22313
22457
|
await this.startLoading();
|
|
@@ -22430,7 +22574,7 @@ var EditFormController = class extends FormController {
|
|
|
22430
22574
|
(item) => item.id === formItemUpdateId
|
|
22431
22575
|
);
|
|
22432
22576
|
if (!formItemUpdate) {
|
|
22433
|
-
throw new
|
|
22577
|
+
throw new RuntimeError53("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
22434
22578
|
}
|
|
22435
22579
|
const {
|
|
22436
22580
|
appDEMethodId,
|
|
@@ -22489,7 +22633,7 @@ var EditFormController = class extends FormController {
|
|
|
22489
22633
|
async wfStart(args) {
|
|
22490
22634
|
const isValid = await this.validate();
|
|
22491
22635
|
if (!isValid) {
|
|
22492
|
-
throw new
|
|
22636
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22493
22637
|
}
|
|
22494
22638
|
await this.startLoading();
|
|
22495
22639
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -22518,7 +22662,7 @@ var EditFormController = class extends FormController {
|
|
|
22518
22662
|
async wfSubmit(args) {
|
|
22519
22663
|
const isValid = await this.validate();
|
|
22520
22664
|
if (!isValid) {
|
|
22521
|
-
throw new
|
|
22665
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22522
22666
|
}
|
|
22523
22667
|
await this.startLoading();
|
|
22524
22668
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -22834,7 +22978,7 @@ import {
|
|
|
22834
22978
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
22835
22979
|
mergeDefaultInLeft,
|
|
22836
22980
|
recursiveIterate as recursiveIterate7,
|
|
22837
|
-
RuntimeError as
|
|
22981
|
+
RuntimeError as RuntimeError54,
|
|
22838
22982
|
RuntimeModelError as RuntimeModelError61
|
|
22839
22983
|
} from "@ibiz-template/core";
|
|
22840
22984
|
import { clone as clone25 } from "ramda";
|
|
@@ -23360,7 +23504,7 @@ var GridController = class extends MDControlController {
|
|
|
23360
23504
|
if (editShowMode === "row") {
|
|
23361
23505
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
23362
23506
|
if (editingRow) {
|
|
23363
|
-
throw new
|
|
23507
|
+
throw new RuntimeError54("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
23364
23508
|
}
|
|
23365
23509
|
}
|
|
23366
23510
|
const queryParams = { ...this.params };
|
|
@@ -23401,7 +23545,7 @@ var GridController = class extends MDControlController {
|
|
|
23401
23545
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
23402
23546
|
const rowState = this.findRowState(data);
|
|
23403
23547
|
if (!rowState) {
|
|
23404
|
-
throw new
|
|
23548
|
+
throw new RuntimeError54("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
23405
23549
|
}
|
|
23406
23550
|
if (!rowState.modified) {
|
|
23407
23551
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -23413,7 +23557,7 @@ var GridController = class extends MDControlController {
|
|
|
23413
23557
|
}
|
|
23414
23558
|
const isValid = await this.validate(rowState);
|
|
23415
23559
|
if (!isValid) {
|
|
23416
|
-
throw new
|
|
23560
|
+
throw new RuntimeError54("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
23417
23561
|
}
|
|
23418
23562
|
let res;
|
|
23419
23563
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
@@ -23626,7 +23770,7 @@ var GridController = class extends MDControlController {
|
|
|
23626
23770
|
}
|
|
23627
23771
|
async toggleRowEdit() {
|
|
23628
23772
|
if (!this.model.enableRowNew) {
|
|
23629
|
-
throw new
|
|
23773
|
+
throw new RuntimeError54("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
23630
23774
|
}
|
|
23631
23775
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
23632
23776
|
}
|
|
@@ -23659,7 +23803,7 @@ var GridController = class extends MDControlController {
|
|
|
23659
23803
|
} else {
|
|
23660
23804
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
23661
23805
|
if (editingRow) {
|
|
23662
|
-
throw new
|
|
23806
|
+
throw new RuntimeError54("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
23663
23807
|
}
|
|
23664
23808
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
23665
23809
|
row.cacheData = clone25(row.data);
|
|
@@ -23714,7 +23858,7 @@ var GridController = class extends MDControlController {
|
|
|
23714
23858
|
(item) => item.id === updateId
|
|
23715
23859
|
);
|
|
23716
23860
|
if (!findUpdate) {
|
|
23717
|
-
throw new
|
|
23861
|
+
throw new RuntimeError54("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
23718
23862
|
}
|
|
23719
23863
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
23720
23864
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -23870,7 +24014,7 @@ var GridController = class extends MDControlController {
|
|
|
23870
24014
|
data2 = this.getData();
|
|
23871
24015
|
}
|
|
23872
24016
|
if (data2.length === 0) {
|
|
23873
|
-
throw new
|
|
24017
|
+
throw new RuntimeError54("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
23874
24018
|
}
|
|
23875
24019
|
return formatExcelData(data2);
|
|
23876
24020
|
};
|
|
@@ -24069,7 +24213,7 @@ var GridController = class extends MDControlController {
|
|
|
24069
24213
|
import { DataTypes as DataTypes4, ModelError as ModelError29, plus as plus2 } from "@ibiz-template/core";
|
|
24070
24214
|
import dayjs5 from "dayjs";
|
|
24071
24215
|
import { debounce as debounce3 } from "lodash-es";
|
|
24072
|
-
import { clone as clone26, isNil as
|
|
24216
|
+
import { clone as clone26, isNil as isNil24 } from "ramda";
|
|
24073
24217
|
var GridFieldColumnController = class extends GridColumnController {
|
|
24074
24218
|
constructor() {
|
|
24075
24219
|
super(...arguments);
|
|
@@ -24281,11 +24425,11 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
24281
24425
|
*/
|
|
24282
24426
|
calcFieldAgg(items) {
|
|
24283
24427
|
const { aggField, aggMode, aggValueFormat, unitName } = this.model;
|
|
24284
|
-
if (
|
|
24428
|
+
if (isNil24(aggMode) || aggMode === "NONE") {
|
|
24285
24429
|
return;
|
|
24286
24430
|
}
|
|
24287
24431
|
const fieldName = aggField || this.model.id;
|
|
24288
|
-
items = items.filter((item) => !
|
|
24432
|
+
items = items.filter((item) => !isNil24(item[fieldName]));
|
|
24289
24433
|
let aggValue;
|
|
24290
24434
|
if (this.grid.model.aggMode === "PAGE") {
|
|
24291
24435
|
switch (aggMode) {
|
|
@@ -24436,7 +24580,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
24436
24580
|
};
|
|
24437
24581
|
|
|
24438
24582
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
24439
|
-
import { RuntimeError as
|
|
24583
|
+
import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
24440
24584
|
import Schema2 from "async-validator";
|
|
24441
24585
|
import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
|
|
24442
24586
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -24576,7 +24720,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
24576
24720
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
24577
24721
|
const result = await this.validate(row);
|
|
24578
24722
|
if (!result) {
|
|
24579
|
-
throw new
|
|
24723
|
+
throw new RuntimeError55(
|
|
24580
24724
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
24581
24725
|
);
|
|
24582
24726
|
}
|
|
@@ -24874,7 +25018,7 @@ var ListController = class extends MDControlController {
|
|
|
24874
25018
|
};
|
|
24875
25019
|
|
|
24876
25020
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
24877
|
-
import { recursiveIterate as recursiveIterate8, RuntimeError as
|
|
25021
|
+
import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError56 } from "@ibiz-template/core";
|
|
24878
25022
|
var PanelController = class extends ControlController {
|
|
24879
25023
|
constructor(model, context, params, ctx, container) {
|
|
24880
25024
|
super(model, context, params, ctx);
|
|
@@ -24998,7 +25142,7 @@ var PanelController = class extends ControlController {
|
|
|
24998
25142
|
var _a, _b;
|
|
24999
25143
|
const data = await this.prepareData();
|
|
25000
25144
|
if (!data) {
|
|
25001
|
-
throw new
|
|
25145
|
+
throw new RuntimeError56("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
25002
25146
|
}
|
|
25003
25147
|
const panelData = this.convertData(data);
|
|
25004
25148
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -25594,11 +25738,11 @@ var PickupViewPanelController = class extends ControlController {
|
|
|
25594
25738
|
|
|
25595
25739
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
25596
25740
|
import {
|
|
25597
|
-
RuntimeError as
|
|
25741
|
+
RuntimeError as RuntimeError57,
|
|
25598
25742
|
mergeInLeft as mergeInLeft3,
|
|
25599
25743
|
recursiveIterate as recursiveIterate9
|
|
25600
25744
|
} from "@ibiz-template/core";
|
|
25601
|
-
import { clone as clone27, isNil as
|
|
25745
|
+
import { clone as clone27, isNil as isNil25 } from "ramda";
|
|
25602
25746
|
|
|
25603
25747
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
25604
25748
|
import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
@@ -26255,7 +26399,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26255
26399
|
let hasError = false;
|
|
26256
26400
|
recursiveIterate9(this.state.filterNodes[0], (node) => {
|
|
26257
26401
|
if (node.leaf) {
|
|
26258
|
-
if (node.field && node.valueOP && !
|
|
26402
|
+
if (node.field && node.valueOP && !isNil25(node.value)) {
|
|
26259
26403
|
hasFilter = true;
|
|
26260
26404
|
} else {
|
|
26261
26405
|
hasError = true;
|
|
@@ -26315,7 +26459,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26315
26459
|
value: data.value || null
|
|
26316
26460
|
};
|
|
26317
26461
|
}
|
|
26318
|
-
throw new
|
|
26462
|
+
throw new RuntimeError57("\u65E0\u6548\u7684condtype:".concat(data.condtype));
|
|
26319
26463
|
}
|
|
26320
26464
|
/**
|
|
26321
26465
|
* 获取初始过滤项树节点数据集合
|
|
@@ -26729,7 +26873,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26729
26873
|
|
|
26730
26874
|
// src/controller/control/tree/tree.controller.ts
|
|
26731
26875
|
import {
|
|
26732
|
-
RuntimeError as
|
|
26876
|
+
RuntimeError as RuntimeError58,
|
|
26733
26877
|
RuntimeModelError as RuntimeModelError64,
|
|
26734
26878
|
recursiveIterate as recursiveIterate10
|
|
26735
26879
|
} from "@ibiz-template/core";
|
|
@@ -26803,6 +26947,14 @@ var TreeService = class extends MDControlService {
|
|
|
26803
26947
|
}).length === 0;
|
|
26804
26948
|
const tempOpts = { ...opts, leaf };
|
|
26805
26949
|
let result = [];
|
|
26950
|
+
if (nodeModel.accessKey) {
|
|
26951
|
+
const permitted = this.app.authority.calcByResCode(
|
|
26952
|
+
nodeModel.accessKey
|
|
26953
|
+
);
|
|
26954
|
+
if (!permitted) {
|
|
26955
|
+
return result;
|
|
26956
|
+
}
|
|
26957
|
+
}
|
|
26806
26958
|
switch (nodeModel.treeNodeType) {
|
|
26807
26959
|
case "STATIC":
|
|
26808
26960
|
{
|
|
@@ -27436,8 +27588,14 @@ var TreeController = class extends MDControlController {
|
|
|
27436
27588
|
* @param {ITreeNodeData} nodeData
|
|
27437
27589
|
*/
|
|
27438
27590
|
parseTreeNodeData(nodeData) {
|
|
27591
|
+
let tempData = null;
|
|
27592
|
+
if (nodeData._nodeType === "DE") {
|
|
27593
|
+
tempData = nodeData;
|
|
27594
|
+
} else {
|
|
27595
|
+
tempData = { ...nodeData, ...nodeData._deData || {} };
|
|
27596
|
+
}
|
|
27439
27597
|
return {
|
|
27440
|
-
data: [
|
|
27598
|
+
data: [tempData],
|
|
27441
27599
|
context: Object.assign(this.context.clone(), nodeData._context || {}),
|
|
27442
27600
|
params: { ...this.params, ...nodeData._params || {} }
|
|
27443
27601
|
};
|
|
@@ -27708,17 +27866,16 @@ var TreeController = class extends MDControlController {
|
|
|
27708
27866
|
if (!model.allowEditText) {
|
|
27709
27867
|
throw new RuntimeModelError64(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
|
|
27710
27868
|
}
|
|
27711
|
-
if (
|
|
27712
|
-
throw new
|
|
27869
|
+
if (nodeData._nodeType !== "DE") {
|
|
27870
|
+
throw new RuntimeError58("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
|
|
27713
27871
|
}
|
|
27714
27872
|
nodeData._text = text;
|
|
27715
|
-
nodeData._deData[model.textAppDEFieldId] = text;
|
|
27716
27873
|
await this.updateDeNodeData([nodeData]);
|
|
27717
27874
|
}
|
|
27718
27875
|
};
|
|
27719
27876
|
|
|
27720
27877
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
27721
|
-
import { RuntimeError as
|
|
27878
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
27722
27879
|
|
|
27723
27880
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
27724
27881
|
var WizardPanelService = class extends ControlService {
|
|
@@ -27884,7 +28041,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27884
28041
|
const { activeFormTag } = this.state;
|
|
27885
28042
|
const controller = this.formControllers.get(activeFormTag);
|
|
27886
28043
|
if (!controller) {
|
|
27887
|
-
throw new
|
|
28044
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
27888
28045
|
}
|
|
27889
28046
|
return controller;
|
|
27890
28047
|
}
|
|
@@ -27926,7 +28083,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27926
28083
|
getWizardFormByTag(tag) {
|
|
27927
28084
|
var _a;
|
|
27928
28085
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
27929
|
-
throw new
|
|
28086
|
+
throw new RuntimeError59("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
|
|
27930
28087
|
return;
|
|
27931
28088
|
}
|
|
27932
28089
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -27935,7 +28092,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27935
28092
|
}
|
|
27936
28093
|
);
|
|
27937
28094
|
if (!wizardForm) {
|
|
27938
|
-
throw new
|
|
28095
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
27939
28096
|
}
|
|
27940
28097
|
return wizardForm;
|
|
27941
28098
|
}
|
|
@@ -28006,7 +28163,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28006
28163
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
28007
28164
|
}
|
|
28008
28165
|
if (!prevTag) {
|
|
28009
|
-
throw new
|
|
28166
|
+
throw new RuntimeError59("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
28010
28167
|
}
|
|
28011
28168
|
this.state.activeFormTag = prevTag;
|
|
28012
28169
|
}
|
|
@@ -28042,7 +28199,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28042
28199
|
});
|
|
28043
28200
|
const nextWizardStep = wizardSteps[index + 1];
|
|
28044
28201
|
if (!nextWizardStep) {
|
|
28045
|
-
throw new
|
|
28202
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
28046
28203
|
}
|
|
28047
28204
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
28048
28205
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -28051,7 +28208,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28051
28208
|
}
|
|
28052
28209
|
}
|
|
28053
28210
|
if (!nextTag) {
|
|
28054
|
-
throw new
|
|
28211
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
28055
28212
|
}
|
|
28056
28213
|
this.state.activeFormTag = nextTag;
|
|
28057
28214
|
this.tagHistory.push(nextTag);
|
|
@@ -28071,7 +28228,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28071
28228
|
|
|
28072
28229
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
28073
28230
|
import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
28074
|
-
import { isNil as
|
|
28231
|
+
import { isNil as isNil26 } from "ramda";
|
|
28075
28232
|
|
|
28076
28233
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
28077
28234
|
var MDCtrlService = class extends MDControlService {
|
|
@@ -28298,7 +28455,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28298
28455
|
const groupMap = /* @__PURE__ */ new Map();
|
|
28299
28456
|
items.forEach((item) => {
|
|
28300
28457
|
const groupVal = item[groupAppDEFieldId];
|
|
28301
|
-
if (
|
|
28458
|
+
if (isNil26(groupVal)) {
|
|
28302
28459
|
return;
|
|
28303
28460
|
}
|
|
28304
28461
|
if (!groupMap.has(groupVal)) {
|
|
@@ -28374,8 +28531,8 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28374
28531
|
};
|
|
28375
28532
|
|
|
28376
28533
|
// src/controller/control/kanban/kanban.controller.ts
|
|
28377
|
-
import { RuntimeError as
|
|
28378
|
-
import { isNil as
|
|
28534
|
+
import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
|
|
28535
|
+
import { isNil as isNil27 } from "ramda";
|
|
28379
28536
|
|
|
28380
28537
|
// src/controller/control/kanban/kanban.service.ts
|
|
28381
28538
|
var KanbanService = class extends DataViewControlService {
|
|
@@ -28460,12 +28617,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28460
28617
|
const isAsc = minorSortDir === "ASC";
|
|
28461
28618
|
items.forEach((item) => {
|
|
28462
28619
|
const sortValue = item[sortField];
|
|
28463
|
-
if (
|
|
28620
|
+
if (isNil27(sortValue)) {
|
|
28464
28621
|
item[sortField] = 0;
|
|
28465
28622
|
} else {
|
|
28466
28623
|
const toNum = Number(sortValue);
|
|
28467
28624
|
if (Number.isNaN(toNum)) {
|
|
28468
|
-
throw new
|
|
28625
|
+
throw new RuntimeError60(
|
|
28469
28626
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
28470
28627
|
);
|
|
28471
28628
|
}
|
|
@@ -28551,7 +28708,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28551
28708
|
}
|
|
28552
28709
|
handleDataGroup() {
|
|
28553
28710
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
28554
|
-
throw new
|
|
28711
|
+
throw new RuntimeError60("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
28555
28712
|
}
|
|
28556
28713
|
return super.handleDataGroup();
|
|
28557
28714
|
}
|
|
@@ -28567,7 +28724,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28567
28724
|
const groupMap = /* @__PURE__ */ new Map();
|
|
28568
28725
|
items.forEach((item) => {
|
|
28569
28726
|
const groupVal = item[groupAppDEFieldId];
|
|
28570
|
-
if (
|
|
28727
|
+
if (isNil27(groupVal)) {
|
|
28571
28728
|
return;
|
|
28572
28729
|
}
|
|
28573
28730
|
if (!groupMap.has(groupVal)) {
|
|
@@ -28894,7 +29051,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28894
29051
|
|
|
28895
29052
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
28896
29053
|
import {
|
|
28897
|
-
RuntimeError as
|
|
29054
|
+
RuntimeError as RuntimeError61,
|
|
28898
29055
|
RuntimeModelError as RuntimeModelError67,
|
|
28899
29056
|
awaitTimeout as awaitTimeout3,
|
|
28900
29057
|
recursiveIterate as recursiveIterate11
|
|
@@ -29154,11 +29311,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
29154
29311
|
return;
|
|
29155
29312
|
}
|
|
29156
29313
|
if (nodeData._nodeType !== "DE") {
|
|
29157
|
-
throw new
|
|
29314
|
+
throw new RuntimeError61("\u975E\u5B9E\u4F53\u8282\u70B9\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58");
|
|
29158
29315
|
}
|
|
29159
29316
|
const rowState = this.state.rows[nodeData._uuid];
|
|
29160
29317
|
if (!rowState) {
|
|
29161
|
-
throw new
|
|
29318
|
+
throw new RuntimeError61("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
29162
29319
|
}
|
|
29163
29320
|
if (!rowState.modified) {
|
|
29164
29321
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -29172,7 +29329,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
29172
29329
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
29173
29330
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
29174
29331
|
if (isCreate) {
|
|
29175
|
-
throw new
|
|
29332
|
+
throw new RuntimeError61("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
|
|
29176
29333
|
}
|
|
29177
29334
|
if (!updateAppDEActionId) {
|
|
29178
29335
|
throw new RuntimeModelError67(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
|
|
@@ -29332,7 +29489,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
29332
29489
|
(item) => item.showRowEdit
|
|
29333
29490
|
);
|
|
29334
29491
|
if (editingRow) {
|
|
29335
|
-
throw new
|
|
29492
|
+
throw new RuntimeError61("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
29336
29493
|
}
|
|
29337
29494
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
29338
29495
|
row.cacheData = clone28(row.data);
|
|
@@ -29445,7 +29602,7 @@ var TreeGridExColumnController = class {
|
|
|
29445
29602
|
// src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
|
|
29446
29603
|
import {
|
|
29447
29604
|
DataTypes as DataTypes5,
|
|
29448
|
-
RuntimeError as
|
|
29605
|
+
RuntimeError as RuntimeError62,
|
|
29449
29606
|
RuntimeModelError as RuntimeModelError68
|
|
29450
29607
|
} from "@ibiz-template/core";
|
|
29451
29608
|
import { clone as clone29 } from "ramda";
|
|
@@ -29646,7 +29803,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
29646
29803
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
29647
29804
|
const value = row.data[valueItem];
|
|
29648
29805
|
if (value == null) {
|
|
29649
|
-
throw new
|
|
29806
|
+
throw new RuntimeError62("\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 ".concat(valueItem, " \u7684\u503C"));
|
|
29650
29807
|
}
|
|
29651
29808
|
const { linkAppViewId } = this.nodeColumn;
|
|
29652
29809
|
if (!linkAppViewId) {
|
|
@@ -30027,7 +30184,7 @@ var TreeGridService = class extends GridService {
|
|
|
30027
30184
|
};
|
|
30028
30185
|
|
|
30029
30186
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
30030
|
-
import { RuntimeError as
|
|
30187
|
+
import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
|
|
30031
30188
|
import { createUUID as createUUID13 } from "qx-util";
|
|
30032
30189
|
|
|
30033
30190
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -30243,7 +30400,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
30243
30400
|
(item) => item.id === id
|
|
30244
30401
|
);
|
|
30245
30402
|
if (panelUiItemIndex < 0) {
|
|
30246
|
-
throw new
|
|
30403
|
+
throw new RuntimeError63("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
30247
30404
|
}
|
|
30248
30405
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
30249
30406
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -31325,7 +31482,7 @@ var AppHub = class {
|
|
|
31325
31482
|
this.registerAppView(appView);
|
|
31326
31483
|
return appView;
|
|
31327
31484
|
}
|
|
31328
|
-
throw new
|
|
31485
|
+
throw new RuntimeError64("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
31329
31486
|
}
|
|
31330
31487
|
/**
|
|
31331
31488
|
* 根据视图模型路径,加参数重新计算视图模型
|
|
@@ -31346,7 +31503,7 @@ var AppHub = class {
|
|
|
31346
31503
|
);
|
|
31347
31504
|
return model;
|
|
31348
31505
|
}
|
|
31349
|
-
throw new
|
|
31506
|
+
throw new RuntimeError64("\u89C6\u56FE[".concat(modelPath, "]\u4E0D\u5B58\u5728"));
|
|
31350
31507
|
}
|
|
31351
31508
|
/**
|
|
31352
31509
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -31377,7 +31534,7 @@ var AppHub = class {
|
|
|
31377
31534
|
this.registerAppDataEntity(entity, appId2);
|
|
31378
31535
|
return entity;
|
|
31379
31536
|
}
|
|
31380
|
-
throw new
|
|
31537
|
+
throw new RuntimeError64("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
31381
31538
|
}
|
|
31382
31539
|
/**
|
|
31383
31540
|
* 新建 hub 应用
|
|
@@ -31392,7 +31549,7 @@ var AppHub = class {
|
|
|
31392
31549
|
return this.appMap.get(id);
|
|
31393
31550
|
}
|
|
31394
31551
|
if (!this.modelLoaderProvider) {
|
|
31395
|
-
throw new
|
|
31552
|
+
throw new RuntimeError64("\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668");
|
|
31396
31553
|
}
|
|
31397
31554
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
31398
31555
|
const app = new Application(appModel);
|
|
@@ -31523,7 +31680,7 @@ var EngineFactory = class {
|
|
|
31523
31680
|
};
|
|
31524
31681
|
|
|
31525
31682
|
// src/engine/view-base.engine.ts
|
|
31526
|
-
import { RuntimeError as
|
|
31683
|
+
import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
|
|
31527
31684
|
var ViewEngineBase = class {
|
|
31528
31685
|
/**
|
|
31529
31686
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -31711,7 +31868,7 @@ var ViewEngineBase = class {
|
|
|
31711
31868
|
const { appDataEntityId } = this.view.model;
|
|
31712
31869
|
const { evt, context, params } = this.view;
|
|
31713
31870
|
if (!appDataEntityId) {
|
|
31714
|
-
throw new
|
|
31871
|
+
throw new RuntimeError65("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
31715
31872
|
}
|
|
31716
31873
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
31717
31874
|
const res = await app.deService.exec(
|
|
@@ -32159,7 +32316,7 @@ var GlobalUtil = class {
|
|
|
32159
32316
|
};
|
|
32160
32317
|
|
|
32161
32318
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
32162
|
-
import { RuntimeError as
|
|
32319
|
+
import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
|
|
32163
32320
|
var LogicExecutor = class {
|
|
32164
32321
|
/**
|
|
32165
32322
|
* @author lxm
|
|
@@ -32180,7 +32337,7 @@ var LogicExecutor = class {
|
|
|
32180
32337
|
*/
|
|
32181
32338
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32182
32339
|
execute(_executeParams) {
|
|
32183
|
-
throw new
|
|
32340
|
+
throw new RuntimeError66("Method not implemented.");
|
|
32184
32341
|
}
|
|
32185
32342
|
/**
|
|
32186
32343
|
* 销毁方法
|
|
@@ -32617,7 +32774,7 @@ var LogicSchedulerCenter = class {
|
|
|
32617
32774
|
};
|
|
32618
32775
|
|
|
32619
32776
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
32620
|
-
import { RuntimeError as
|
|
32777
|
+
import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
|
|
32621
32778
|
var LogicTrigger = class {
|
|
32622
32779
|
/**
|
|
32623
32780
|
* @author lxm
|
|
@@ -32677,7 +32834,7 @@ var LogicTrigger = class {
|
|
|
32677
32834
|
if (this.executor) {
|
|
32678
32835
|
return this.executor.execute(executeParams);
|
|
32679
32836
|
}
|
|
32680
|
-
throw new
|
|
32837
|
+
throw new RuntimeError67("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
32681
32838
|
}
|
|
32682
32839
|
/**
|
|
32683
32840
|
* 销毁方法
|
|
@@ -32694,12 +32851,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
32694
32851
|
};
|
|
32695
32852
|
|
|
32696
32853
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
32697
|
-
import { RuntimeError as
|
|
32854
|
+
import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
|
|
32698
32855
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
32699
32856
|
bindExecutor(executor) {
|
|
32700
32857
|
super.bindExecutor(executor);
|
|
32701
32858
|
if (this.executor.type !== "SCRIPT") {
|
|
32702
|
-
throw new
|
|
32859
|
+
throw new RuntimeError68(
|
|
32703
32860
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
32704
32861
|
);
|
|
32705
32862
|
}
|
|
@@ -32735,7 +32892,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
32735
32892
|
};
|
|
32736
32893
|
|
|
32737
32894
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
32738
|
-
import { RuntimeError as
|
|
32895
|
+
import { RuntimeError as RuntimeError69, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
32739
32896
|
var TimerTrigger = class extends LogicTrigger {
|
|
32740
32897
|
constructor() {
|
|
32741
32898
|
super(...arguments);
|
|
@@ -32747,7 +32904,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
32747
32904
|
}
|
|
32748
32905
|
this.timer = setInterval(() => {
|
|
32749
32906
|
if (!this.scheduler.defaultParamsCb) {
|
|
32750
|
-
throw new
|
|
32907
|
+
throw new RuntimeError69("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
32751
32908
|
}
|
|
32752
32909
|
const params = this.scheduler.defaultParamsCb();
|
|
32753
32910
|
this.executor.execute(params);
|
|
@@ -32764,7 +32921,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
32764
32921
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
32765
32922
|
import {
|
|
32766
32923
|
ModelError as ModelError34,
|
|
32767
|
-
RuntimeError as
|
|
32924
|
+
RuntimeError as RuntimeError70,
|
|
32768
32925
|
RuntimeModelError as RuntimeModelError74
|
|
32769
32926
|
} from "@ibiz-template/core";
|
|
32770
32927
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -32802,7 +32959,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32802
32959
|
const { context, params, ...rest } = parameters;
|
|
32803
32960
|
const { data } = parameters;
|
|
32804
32961
|
if (!(data == null ? void 0 : data[0])) {
|
|
32805
|
-
throw new
|
|
32962
|
+
throw new RuntimeError70("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
32806
32963
|
}
|
|
32807
32964
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
32808
32965
|
let openViewRef;
|
|
@@ -32862,7 +33019,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32862
33019
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
32863
33020
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
32864
33021
|
if (!findView) {
|
|
32865
|
-
throw new
|
|
33022
|
+
throw new RuntimeError70(
|
|
32866
33023
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
32867
33024
|
);
|
|
32868
33025
|
}
|
|
@@ -32987,7 +33144,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32987
33144
|
}
|
|
32988
33145
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
32989
33146
|
if (!selectData) {
|
|
32990
|
-
throw new
|
|
33147
|
+
throw new RuntimeError70("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
32991
33148
|
}
|
|
32992
33149
|
const indexType = selectData.srfkey;
|
|
32993
33150
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
|
|
@@ -32997,7 +33154,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32997
33154
|
}
|
|
32998
33155
|
);
|
|
32999
33156
|
if (!findView) {
|
|
33000
|
-
throw new
|
|
33157
|
+
throw new RuntimeError70(
|
|
33001
33158
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
33002
33159
|
);
|
|
33003
33160
|
}
|
|
@@ -33034,7 +33191,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33034
33191
|
}
|
|
33035
33192
|
});
|
|
33036
33193
|
if (pickParentFieldName === void 0) {
|
|
33037
|
-
throw new
|
|
33194
|
+
throw new RuntimeError70(
|
|
33038
33195
|
"\u6CA1\u6709\u627E\u5230".concat(pickParentDeName, "\u5728\u5F53\u524D\u5B9E\u4F53\u7684\u5916\u952E\u5C5E\u6027")
|
|
33039
33196
|
);
|
|
33040
33197
|
}
|
|
@@ -33201,6 +33358,7 @@ function install2() {
|
|
|
33201
33358
|
ibiz2.config = new GlobalConfig();
|
|
33202
33359
|
ibiz2.auth = new V7AuthService();
|
|
33203
33360
|
ibiz2.asyncAction = new AsyncActionService();
|
|
33361
|
+
ibiz2.internalMessage = new InternalMessageService();
|
|
33204
33362
|
ibiz2.engine = new EngineFactory();
|
|
33205
33363
|
ibiz2.uiDomainManager = new UIDomainManager();
|
|
33206
33364
|
installCommand();
|
|
@@ -33408,6 +33566,8 @@ export {
|
|
|
33408
33566
|
HandlebarsUtil,
|
|
33409
33567
|
HtmlPortletController,
|
|
33410
33568
|
HubController,
|
|
33569
|
+
INTERNAL_MESSAGE_PROVIDER_PREFIX,
|
|
33570
|
+
InternalMessageService,
|
|
33411
33571
|
KanbanController,
|
|
33412
33572
|
KanbanService,
|
|
33413
33573
|
LayoutPanelUtil,
|
|
@@ -33458,6 +33618,7 @@ export {
|
|
|
33458
33618
|
RemotePluginItem,
|
|
33459
33619
|
ReportPanelController,
|
|
33460
33620
|
ReportPanelService,
|
|
33621
|
+
RouteConst,
|
|
33461
33622
|
ScriptFactory,
|
|
33462
33623
|
ScriptFunction,
|
|
33463
33624
|
SearchBarController,
|
|
@@ -33568,6 +33729,7 @@ export {
|
|
|
33568
33729
|
getEntitySchema,
|
|
33569
33730
|
getFormDetailProvider,
|
|
33570
33731
|
getGridColumnProvider,
|
|
33732
|
+
getInternalMessageProvider,
|
|
33571
33733
|
getMatchResPath,
|
|
33572
33734
|
getOriginData,
|
|
33573
33735
|
getPFPlugin,
|
|
@@ -33610,6 +33772,7 @@ export {
|
|
|
33610
33772
|
registerEditorProvider,
|
|
33611
33773
|
registerFormDetailProvider,
|
|
33612
33774
|
registerGridColumnProvider,
|
|
33775
|
+
registerInternalMessageProvider,
|
|
33613
33776
|
registerPanelItemProvider,
|
|
33614
33777
|
registerPlatformProvider,
|
|
33615
33778
|
registerPortletProvider,
|