@ibiz-template/runtime 0.5.6 → 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 +554 -412
- 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 +8 -1
- 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 +7 -0
- package/out/types.d.ts +9 -1
- package/out/types.d.ts.map +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 +7 -1
- 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 +8 -0
- package/src/types.ts +10 -0
- 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) {
|
|
@@ -9695,6 +9803,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9695
9803
|
nodeColumnKeyMap.set(columnKey, dataItemKey);
|
|
9696
9804
|
}
|
|
9697
9805
|
});
|
|
9806
|
+
const presetItemMap = /* @__PURE__ */ new Map();
|
|
9807
|
+
presetItemMap.set("srfuf", "srfuf");
|
|
9698
9808
|
const getDeKey = (key) => {
|
|
9699
9809
|
if (nodeColumnKeyMap.has(key)) {
|
|
9700
9810
|
return dataItemKeyMap.get(nodeColumnKeyMap.get(key));
|
|
@@ -9705,6 +9815,9 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9705
9815
|
if (Object.prototype.hasOwnProperty.call(this._deData, key)) {
|
|
9706
9816
|
return key;
|
|
9707
9817
|
}
|
|
9818
|
+
if (presetItemMap.has(key)) {
|
|
9819
|
+
return presetItemMap.get(key);
|
|
9820
|
+
}
|
|
9708
9821
|
};
|
|
9709
9822
|
const getKeyDefault = (key) => {
|
|
9710
9823
|
if (nodeColumnKeyMap.has(key)) {
|
|
@@ -9724,7 +9837,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9724
9837
|
});
|
|
9725
9838
|
Object.keys(this).forEach((key) => {
|
|
9726
9839
|
const deKey = getDeKey(key);
|
|
9727
|
-
if (
|
|
9840
|
+
if (isNil13(deKey) && !CloneExcludeKeys.includes(key)) {
|
|
9728
9841
|
cloneNodeData[key] = this[key];
|
|
9729
9842
|
}
|
|
9730
9843
|
});
|
|
@@ -9733,7 +9846,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9733
9846
|
return new Proxy(this, {
|
|
9734
9847
|
set(target, p, value) {
|
|
9735
9848
|
const deKey = getDeKey(p);
|
|
9736
|
-
if (!
|
|
9849
|
+
if (!isNil13(deKey)) {
|
|
9737
9850
|
target._deData[deKey] = value;
|
|
9738
9851
|
} else {
|
|
9739
9852
|
target[p] = value;
|
|
@@ -9742,8 +9855,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9742
9855
|
},
|
|
9743
9856
|
get(target, p, _receiver) {
|
|
9744
9857
|
const deKey = getDeKey(p);
|
|
9745
|
-
if (!
|
|
9746
|
-
return
|
|
9858
|
+
if (!isNil13(deKey)) {
|
|
9859
|
+
return isNil13(target._deData[deKey]) ? getKeyDefault(p) : target._deData[deKey];
|
|
9747
9860
|
}
|
|
9748
9861
|
return target[p];
|
|
9749
9862
|
},
|
|
@@ -9847,7 +9960,7 @@ var TreeStaticNodeData = class extends TreeNodeData {
|
|
|
9847
9960
|
|
|
9848
9961
|
// src/service/vo/ui-map-field.ts
|
|
9849
9962
|
import { DataTypes as DataTypes2 } from "@ibiz-template/core";
|
|
9850
|
-
import { isNil as
|
|
9963
|
+
import { isNil as isNil14 } from "ramda";
|
|
9851
9964
|
var UIMapField = class {
|
|
9852
9965
|
constructor(uiKey, dataKey, opts = {}) {
|
|
9853
9966
|
/**
|
|
@@ -9868,10 +9981,10 @@ var UIMapField = class {
|
|
|
9868
9981
|
this.isRequestNeed = true;
|
|
9869
9982
|
this.uiKey = uiKey;
|
|
9870
9983
|
this.dataKey = dataKey;
|
|
9871
|
-
if (!
|
|
9984
|
+
if (!isNil14(opts.isOriginField)) {
|
|
9872
9985
|
this.isOriginField = opts.isOriginField;
|
|
9873
9986
|
}
|
|
9874
|
-
if (!
|
|
9987
|
+
if (!isNil14(opts.dataType)) {
|
|
9875
9988
|
this.dataType = opts.dataType;
|
|
9876
9989
|
}
|
|
9877
9990
|
}
|
|
@@ -9886,7 +9999,7 @@ var UIMapField = class {
|
|
|
9886
9999
|
return value;
|
|
9887
10000
|
}
|
|
9888
10001
|
if (DataTypes2.isNumber(this.dataType)) {
|
|
9889
|
-
const numVal = !
|
|
10002
|
+
const numVal = !isNil14(value) && value !== "" ? Number(value) : value;
|
|
9890
10003
|
if (Number.isNaN(numVal)) {
|
|
9891
10004
|
ibiz.log.debug("".concat(value, "\u4E0D\u80FD\u8F6C\u6362\u6210\u6570\u5B57"));
|
|
9892
10005
|
return value;
|
|
@@ -10057,7 +10170,7 @@ var MapData = class {
|
|
|
10057
10170
|
};
|
|
10058
10171
|
|
|
10059
10172
|
// src/service/vo/panel-data/panel-data.ts
|
|
10060
|
-
import { QXEvent as
|
|
10173
|
+
import { QXEvent as QXEvent3 } from "qx-util";
|
|
10061
10174
|
function updateKeyDefine3(target, keys) {
|
|
10062
10175
|
keys.forEach((key) => {
|
|
10063
10176
|
if (!Object.prototype.hasOwnProperty.call(target, key)) {
|
|
@@ -10072,7 +10185,7 @@ function updateKeyDefine3(target, keys) {
|
|
|
10072
10185
|
}
|
|
10073
10186
|
var PanelData = class {
|
|
10074
10187
|
constructor(fields, origin) {
|
|
10075
|
-
const _evt = new
|
|
10188
|
+
const _evt = new QXEvent3();
|
|
10076
10189
|
const keyMap = {};
|
|
10077
10190
|
const reverseKeyMap = {};
|
|
10078
10191
|
fields.forEach((field) => {
|
|
@@ -10294,7 +10407,7 @@ var GanttCodeListNodeData = class extends TreeCodeListNodeData {
|
|
|
10294
10407
|
};
|
|
10295
10408
|
|
|
10296
10409
|
// src/service/mqtt/mqtt.service.ts
|
|
10297
|
-
import { QXEvent as
|
|
10410
|
+
import { QXEvent as QXEvent4, createUUID as createUUID7 } from "qx-util";
|
|
10298
10411
|
var MqttService = class {
|
|
10299
10412
|
/**
|
|
10300
10413
|
* Creates an instance of MqttService.
|
|
@@ -10315,7 +10428,7 @@ var MqttService = class {
|
|
|
10315
10428
|
* @author chitanda
|
|
10316
10429
|
* @date 2023-10-23 15:10:06
|
|
10317
10430
|
*/
|
|
10318
|
-
this.evt = new
|
|
10431
|
+
this.evt = new QXEvent4();
|
|
10319
10432
|
/**
|
|
10320
10433
|
* 连接选项
|
|
10321
10434
|
*
|
|
@@ -10384,7 +10497,7 @@ var MqttService = class {
|
|
|
10384
10497
|
};
|
|
10385
10498
|
|
|
10386
10499
|
// src/service/de-service-util.ts
|
|
10387
|
-
import { RuntimeError as
|
|
10500
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
10388
10501
|
var _DEServiceUtil = class _DEServiceUtil {
|
|
10389
10502
|
/**
|
|
10390
10503
|
* Creates an instance of DEServiceUtil.
|
|
@@ -10437,7 +10550,7 @@ var _DEServiceUtil = class _DEServiceUtil {
|
|
|
10437
10550
|
this.appModel.appId
|
|
10438
10551
|
);
|
|
10439
10552
|
if (!entityModel) {
|
|
10440
|
-
throw new
|
|
10553
|
+
throw new RuntimeError23("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
10441
10554
|
}
|
|
10442
10555
|
const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
|
|
10443
10556
|
let service;
|
|
@@ -10569,7 +10682,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10569
10682
|
const context = clone17(_context);
|
|
10570
10683
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
10571
10684
|
if (!appView) {
|
|
10572
|
-
throw new
|
|
10685
|
+
throw new RuntimeError24("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
10573
10686
|
}
|
|
10574
10687
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
10575
10688
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -10600,11 +10713,14 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10600
10713
|
}
|
|
10601
10714
|
switch (viewOpenMode) {
|
|
10602
10715
|
case "INDEXVIEWTAB":
|
|
10716
|
+
case "INDEXVIEWTAB_POPUP":
|
|
10603
10717
|
if (opts.noWaitRoute) {
|
|
10604
10718
|
this.openIndexViewTab(appView, context, params);
|
|
10605
10719
|
return { ok: true };
|
|
10606
10720
|
}
|
|
10607
10721
|
return this.openIndexViewTab(appView, context, params);
|
|
10722
|
+
case "INDEXVIEWTAB_POPUPMODAL":
|
|
10723
|
+
return this.openIndexViewTabByModal(appView, context, params);
|
|
10608
10724
|
case "POPUP":
|
|
10609
10725
|
throw new ModelError15(appView, "\u672A\u652F\u6301\u7684\u89C6\u56FE\u6253\u5F00\u6A21\u5F0F: POPUP");
|
|
10610
10726
|
case "POPUPMODAL":
|
|
@@ -10637,6 +10753,20 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10637
10753
|
openIndexViewTab(appView, context, params = {}) {
|
|
10638
10754
|
return ibiz.openView.root(appView.id, context, params);
|
|
10639
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
|
+
}
|
|
10640
10770
|
/**
|
|
10641
10771
|
* 模态窗口打开
|
|
10642
10772
|
*
|
|
@@ -10664,7 +10794,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10664
10794
|
*/
|
|
10665
10795
|
async openPopover(appView, event, context, params = {}) {
|
|
10666
10796
|
if (!event) {
|
|
10667
|
-
throw new
|
|
10797
|
+
throw new RuntimeError24("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
10668
10798
|
}
|
|
10669
10799
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
10670
10800
|
}
|
|
@@ -10720,7 +10850,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10720
10850
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
10721
10851
|
const appFunc = app.getAppFunc(appFuncId);
|
|
10722
10852
|
if (!appFunc) {
|
|
10723
|
-
throw new
|
|
10853
|
+
throw new RuntimeError25("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
10724
10854
|
}
|
|
10725
10855
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
10726
10856
|
const _context = context.clone();
|
|
@@ -10754,7 +10884,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10754
10884
|
*/
|
|
10755
10885
|
async openAppView(appFunc, context, params, opts) {
|
|
10756
10886
|
if (!appFunc.appViewId) {
|
|
10757
|
-
throw new
|
|
10887
|
+
throw new RuntimeError25("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
10758
10888
|
}
|
|
10759
10889
|
return ibiz.commands.execute(
|
|
10760
10890
|
OpenAppViewCommand.TAG,
|
|
@@ -10788,7 +10918,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10788
10918
|
*/
|
|
10789
10919
|
openPdAppFunc(appFunc, context, params) {
|
|
10790
10920
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
10791
|
-
throw new
|
|
10921
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10792
10922
|
}
|
|
10793
10923
|
/**
|
|
10794
10924
|
* 执行 JavaScript 脚本
|
|
@@ -10802,7 +10932,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10802
10932
|
*/
|
|
10803
10933
|
executeJavaScript(appFunc, context, params) {
|
|
10804
10934
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
10805
|
-
throw new
|
|
10935
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10806
10936
|
}
|
|
10807
10937
|
/**
|
|
10808
10938
|
* 自定义应用功能
|
|
@@ -10816,7 +10946,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10816
10946
|
*/
|
|
10817
10947
|
custom(appFunc, context, params) {
|
|
10818
10948
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
10819
|
-
throw new
|
|
10949
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10820
10950
|
}
|
|
10821
10951
|
};
|
|
10822
10952
|
/**
|
|
@@ -10837,7 +10967,7 @@ function installCommand() {
|
|
|
10837
10967
|
}
|
|
10838
10968
|
|
|
10839
10969
|
// src/app-hub.ts
|
|
10840
|
-
import { RuntimeError as
|
|
10970
|
+
import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
|
|
10841
10971
|
|
|
10842
10972
|
// src/application.ts
|
|
10843
10973
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -11029,7 +11159,7 @@ var Convert = class {
|
|
|
11029
11159
|
};
|
|
11030
11160
|
|
|
11031
11161
|
// src/hub/config/app-view-config-service.ts
|
|
11032
|
-
import { RuntimeError as
|
|
11162
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
11033
11163
|
var AppViewConfigService = class {
|
|
11034
11164
|
constructor() {
|
|
11035
11165
|
/**
|
|
@@ -11071,7 +11201,7 @@ var AppViewConfigService = class {
|
|
|
11071
11201
|
if (!this.viewConfigs.has(id)) {
|
|
11072
11202
|
const model = await ibiz.hub.getAppView(id);
|
|
11073
11203
|
if (!model) {
|
|
11074
|
-
throw new
|
|
11204
|
+
throw new RuntimeError26("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
11075
11205
|
}
|
|
11076
11206
|
this.set(model.id, {
|
|
11077
11207
|
id: model.id,
|
|
@@ -11135,14 +11265,14 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
|
|
|
11135
11265
|
|
|
11136
11266
|
// src/controller/common/view/view.controller.ts
|
|
11137
11267
|
import { notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
11138
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
11139
|
-
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";
|
|
11140
11270
|
|
|
11141
11271
|
// src/controller/utils/loading/loading.state.ts
|
|
11142
11272
|
import { NOOP } from "@ibiz-template/core";
|
|
11143
11273
|
|
|
11144
11274
|
// src/controller/utils/counter/counter.ts
|
|
11145
|
-
import { RuntimeError as
|
|
11275
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
11146
11276
|
var Counter = class {
|
|
11147
11277
|
/**
|
|
11148
11278
|
* Creates an instance of Counter.
|
|
@@ -11204,7 +11334,7 @@ var Counter = class {
|
|
|
11204
11334
|
return;
|
|
11205
11335
|
}
|
|
11206
11336
|
if (this.count === 0) {
|
|
11207
|
-
throw new
|
|
11337
|
+
throw new RuntimeError27("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
11208
11338
|
}
|
|
11209
11339
|
this.count -= 1;
|
|
11210
11340
|
if (this.count === 0) {
|
|
@@ -11274,7 +11404,7 @@ var LoadingState = class {
|
|
|
11274
11404
|
};
|
|
11275
11405
|
|
|
11276
11406
|
// src/controller/ctx/ctx.ts
|
|
11277
|
-
import { QXEvent as
|
|
11407
|
+
import { QXEvent as QXEvent5 } from "qx-util";
|
|
11278
11408
|
|
|
11279
11409
|
// src/controller/ctx/ctx.state.ts
|
|
11280
11410
|
var CTXState = class {
|
|
@@ -11304,7 +11434,7 @@ var CTX = class {
|
|
|
11304
11434
|
* @date 2023-04-26 07:54:46
|
|
11305
11435
|
* @protected
|
|
11306
11436
|
*/
|
|
11307
|
-
this.evt = new
|
|
11437
|
+
this.evt = new QXEvent5(3e3);
|
|
11308
11438
|
/**
|
|
11309
11439
|
* 当前视图控制器集合(包含自身视图控制器,部件控制器,和下一层级的视图的控制器)
|
|
11310
11440
|
* @author lxm
|
|
@@ -11629,8 +11759,8 @@ var ButtonContainerState = class {
|
|
|
11629
11759
|
};
|
|
11630
11760
|
|
|
11631
11761
|
// src/controller/utils/event/qx-event-ex.ts
|
|
11632
|
-
import { clearAll, QXEvent as
|
|
11633
|
-
var QXEventEx = class extends
|
|
11762
|
+
import { clearAll, QXEvent as QXEvent6 } from "qx-util";
|
|
11763
|
+
var QXEventEx = class extends QXEvent6 {
|
|
11634
11764
|
constructor() {
|
|
11635
11765
|
super(...arguments);
|
|
11636
11766
|
this.anyEventFns = [];
|
|
@@ -11768,9 +11898,9 @@ function hasSubRoute(routeDepth) {
|
|
|
11768
11898
|
}
|
|
11769
11899
|
|
|
11770
11900
|
// src/controller/utils/util/util.ts
|
|
11771
|
-
import { isNil as
|
|
11901
|
+
import { isNil as isNil15 } from "ramda";
|
|
11772
11902
|
function isValueChange(value, value2) {
|
|
11773
|
-
if ((
|
|
11903
|
+
if ((isNil15(value) || value === "") && (isNil15(value2) || value2 === "")) {
|
|
11774
11904
|
return false;
|
|
11775
11905
|
}
|
|
11776
11906
|
return value !== value2;
|
|
@@ -11784,9 +11914,9 @@ function getOriginData(data) {
|
|
|
11784
11914
|
}
|
|
11785
11915
|
|
|
11786
11916
|
// src/controller/utils/value-rule/value-rule.ts
|
|
11787
|
-
import { RuntimeError as
|
|
11917
|
+
import { RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
11788
11918
|
import { isNilOrEmpty as isNilOrEmpty6, isNumber } from "qx-util";
|
|
11789
|
-
import { isNil as
|
|
11919
|
+
import { isNil as isNil16 } from "ramda";
|
|
11790
11920
|
function generateRules(itemVRs, name, valueItemName) {
|
|
11791
11921
|
const rules = [];
|
|
11792
11922
|
itemVRs.forEach((item) => {
|
|
@@ -11834,7 +11964,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
11834
11964
|
deRule.groupCond
|
|
11835
11965
|
);
|
|
11836
11966
|
if (!isPast) {
|
|
11837
|
-
callback(new
|
|
11967
|
+
callback(new RuntimeError28(infoMessage || deRule.ruleInfo));
|
|
11838
11968
|
}
|
|
11839
11969
|
return true;
|
|
11840
11970
|
},
|
|
@@ -11851,7 +11981,7 @@ function generateEditorRules(editor) {
|
|
|
11851
11981
|
if (maxLength) {
|
|
11852
11982
|
rules.push({
|
|
11853
11983
|
validator: (rule, value, callback) => {
|
|
11854
|
-
if (!
|
|
11984
|
+
if (!isNil16(value) && value.length > maxLength) {
|
|
11855
11985
|
callback(
|
|
11856
11986
|
new Error(
|
|
11857
11987
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -11866,7 +11996,7 @@ function generateEditorRules(editor) {
|
|
|
11866
11996
|
if (minLength) {
|
|
11867
11997
|
rules.push({
|
|
11868
11998
|
validator: (rule, value, callback) => {
|
|
11869
|
-
if (!
|
|
11999
|
+
if (!isNil16(value) && value.length < minLength) {
|
|
11870
12000
|
callback(
|
|
11871
12001
|
new Error(
|
|
11872
12002
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -11878,10 +12008,10 @@ function generateEditorRules(editor) {
|
|
|
11878
12008
|
}
|
|
11879
12009
|
});
|
|
11880
12010
|
}
|
|
11881
|
-
if (!
|
|
12011
|
+
if (!isNil16(maxValue)) {
|
|
11882
12012
|
rules.push({
|
|
11883
12013
|
validator: (rule, value, callback) => {
|
|
11884
|
-
if (!
|
|
12014
|
+
if (!isNil16(value) && isNumber(value) && value > maxValue) {
|
|
11885
12015
|
callback(new Error("\u503C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxValue)));
|
|
11886
12016
|
} else {
|
|
11887
12017
|
return true;
|
|
@@ -11889,10 +12019,10 @@ function generateEditorRules(editor) {
|
|
|
11889
12019
|
}
|
|
11890
12020
|
});
|
|
11891
12021
|
}
|
|
11892
|
-
if (!
|
|
12022
|
+
if (!isNil16(minValue)) {
|
|
11893
12023
|
rules.push({
|
|
11894
12024
|
validator: (rule, value, callback) => {
|
|
11895
|
-
if (!
|
|
12025
|
+
if (!isNil16(value) && isNumber(value) && value < minValue) {
|
|
11896
12026
|
callback(new Error("\u503C\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minValue)));
|
|
11897
12027
|
} else {
|
|
11898
12028
|
return true;
|
|
@@ -11904,8 +12034,8 @@ function generateEditorRules(editor) {
|
|
|
11904
12034
|
}
|
|
11905
12035
|
|
|
11906
12036
|
// src/controller/utils/value-ex/value-ex.ts
|
|
11907
|
-
import { RuntimeError as
|
|
11908
|
-
import { isNil as
|
|
12037
|
+
import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
12038
|
+
import { isNil as isNil17, mergeLeft } from "ramda";
|
|
11909
12039
|
var ValueExUtil = class {
|
|
11910
12040
|
/**
|
|
11911
12041
|
* 合并默认值
|
|
@@ -11930,13 +12060,13 @@ var ValueExUtil = class {
|
|
|
11930
12060
|
* @return {*} {string}
|
|
11931
12061
|
*/
|
|
11932
12062
|
static toText(options, value) {
|
|
11933
|
-
if (
|
|
12063
|
+
if (isNil17(value) || value === "") {
|
|
11934
12064
|
return "";
|
|
11935
12065
|
}
|
|
11936
12066
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
11937
12067
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
11938
12068
|
if (!objectNameField) {
|
|
11939
|
-
throw new
|
|
12069
|
+
throw new RuntimeError29("\u7F3A\u5C11objectNameField");
|
|
11940
12070
|
}
|
|
11941
12071
|
const textKey = objectNameField.toLowerCase();
|
|
11942
12072
|
if (valueType === "OBJECTS") {
|
|
@@ -11952,15 +12082,15 @@ var ValueExUtil = class {
|
|
|
11952
12082
|
};
|
|
11953
12083
|
|
|
11954
12084
|
// src/controller/utils/value-default/value-default.ts
|
|
11955
|
-
import { RuntimeError as
|
|
12085
|
+
import { RuntimeError as RuntimeError30, ModelError as ModelError17 } from "@ibiz-template/core";
|
|
11956
12086
|
import dayjs from "dayjs";
|
|
11957
12087
|
import { createUUID as createUUID8 } from "qx-util";
|
|
11958
|
-
import { isNil as
|
|
12088
|
+
import { isNil as isNil18, isNotNil } from "ramda";
|
|
11959
12089
|
function getDefaultValue(opts, origins) {
|
|
11960
12090
|
var _a;
|
|
11961
12091
|
const { name, valueType, defaultValue, valueFormat } = opts;
|
|
11962
12092
|
const { data, context, params } = origins;
|
|
11963
|
-
if (
|
|
12093
|
+
if (isNil18(valueType) && isNil18(defaultValue)) {
|
|
11964
12094
|
return;
|
|
11965
12095
|
}
|
|
11966
12096
|
if (valueType === "RESET") {
|
|
@@ -11993,7 +12123,7 @@ function getDefaultValue(opts, origins) {
|
|
|
11993
12123
|
case "SESSION":
|
|
11994
12124
|
case "APPLICATION":
|
|
11995
12125
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
11996
|
-
throw new
|
|
12126
|
+
throw new RuntimeError30("appdata.context\u4E0D\u5B58\u5728");
|
|
11997
12127
|
}
|
|
11998
12128
|
return ibiz.appData.context[defaultValue];
|
|
11999
12129
|
case "CONTEXT":
|
|
@@ -12007,7 +12137,7 @@ function getDefaultValue(opts, origins) {
|
|
|
12007
12137
|
|
|
12008
12138
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
12009
12139
|
import {
|
|
12010
|
-
RuntimeError as
|
|
12140
|
+
RuntimeError as RuntimeError31
|
|
12011
12141
|
} from "@ibiz-template/core";
|
|
12012
12142
|
var asyncImportUrl = "asyncimportdata2";
|
|
12013
12143
|
var importUrl = "importdata2";
|
|
@@ -12061,11 +12191,11 @@ async function importData(file, appDataEntity, dataImport) {
|
|
|
12061
12191
|
}
|
|
12062
12192
|
async function exportData(header, data, fileName) {
|
|
12063
12193
|
if (!ibiz.util.getExcelUtil) {
|
|
12064
|
-
throw new
|
|
12194
|
+
throw new RuntimeError31("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
12065
12195
|
}
|
|
12066
12196
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
12067
12197
|
if (!exportExcel) {
|
|
12068
|
-
throw new
|
|
12198
|
+
throw new RuntimeError31("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
12069
12199
|
}
|
|
12070
12200
|
try {
|
|
12071
12201
|
exportExcel.exportJsonToExcel({
|
|
@@ -12313,8 +12443,8 @@ var BaseController = class {
|
|
|
12313
12443
|
};
|
|
12314
12444
|
|
|
12315
12445
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
12316
|
-
import { RuntimeError as
|
|
12317
|
-
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";
|
|
12318
12448
|
var ViewMsgController = class _ViewMsgController {
|
|
12319
12449
|
constructor(msgGroupId) {
|
|
12320
12450
|
this.msgGroupId = msgGroupId;
|
|
@@ -12339,7 +12469,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12339
12469
|
(item) => item.id === this.msgGroupId
|
|
12340
12470
|
);
|
|
12341
12471
|
if (!msgGroup) {
|
|
12342
|
-
throw new
|
|
12472
|
+
throw new RuntimeError32("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
12343
12473
|
}
|
|
12344
12474
|
this.msgGroup = msgGroup;
|
|
12345
12475
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -12353,7 +12483,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12353
12483
|
}
|
|
12354
12484
|
});
|
|
12355
12485
|
if (msgDetailsViewMsgIds.length) {
|
|
12356
|
-
throw new
|
|
12486
|
+
throw new RuntimeError32(
|
|
12357
12487
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
12358
12488
|
);
|
|
12359
12489
|
}
|
|
@@ -12499,19 +12629,19 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12499
12629
|
const removeModeField = this.getDeFieldName(entity, removeFlagAppDEFieldId);
|
|
12500
12630
|
const deViewMessages = dataSet.map((item) => {
|
|
12501
12631
|
const message = {};
|
|
12502
|
-
if (positionField && !
|
|
12632
|
+
if (positionField && !isNil19(item[positionField])) {
|
|
12503
12633
|
message.position = item[positionField];
|
|
12504
12634
|
}
|
|
12505
|
-
if (titleField && !
|
|
12635
|
+
if (titleField && !isNil19(item[titleField])) {
|
|
12506
12636
|
message.title = item[titleField];
|
|
12507
12637
|
}
|
|
12508
|
-
if (messageField && !
|
|
12638
|
+
if (messageField && !isNil19(item[messageField])) {
|
|
12509
12639
|
message.message = item[messageField];
|
|
12510
12640
|
}
|
|
12511
|
-
if (typeField && !
|
|
12641
|
+
if (typeField && !isNil19(item[typeField])) {
|
|
12512
12642
|
message.messageType = item[typeField];
|
|
12513
12643
|
}
|
|
12514
|
-
if (removeModeField && !
|
|
12644
|
+
if (removeModeField && !isNil19(item[removeModeField])) {
|
|
12515
12645
|
message.removeMode = item[removeModeField];
|
|
12516
12646
|
}
|
|
12517
12647
|
return mergeRight2(basicMsg, message);
|
|
@@ -12750,7 +12880,7 @@ var ViewController = class extends BaseController {
|
|
|
12750
12880
|
*/
|
|
12751
12881
|
handleContextParams() {
|
|
12752
12882
|
this.context.srfappid = this.model.appId;
|
|
12753
|
-
if (
|
|
12883
|
+
if (isNil20(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
|
|
12754
12884
|
const domain = ibiz.uiDomainManager.create(this.id);
|
|
12755
12885
|
this.context.srfsessionid = domain.id;
|
|
12756
12886
|
}
|
|
@@ -12783,7 +12913,7 @@ var ViewController = class extends BaseController {
|
|
|
12783
12913
|
async callUIAction(key, args) {
|
|
12784
12914
|
const result = this.call(key, args);
|
|
12785
12915
|
if (result === void 0) {
|
|
12786
|
-
throw new
|
|
12916
|
+
throw new RuntimeError33("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
12787
12917
|
}
|
|
12788
12918
|
return result;
|
|
12789
12919
|
}
|
|
@@ -13134,7 +13264,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
13134
13264
|
|
|
13135
13265
|
// src/controller/common/control/control.controller.ts
|
|
13136
13266
|
import { IBizContext as IBizContext3, IBizParams, NoticeError as NoticeError2 } from "@ibiz-template/core";
|
|
13137
|
-
import { clone as clone18, isNil as
|
|
13267
|
+
import { clone as clone18, isNil as isNil21 } from "ramda";
|
|
13138
13268
|
import { notNilEmpty as notNilEmpty7 } from "qx-util";
|
|
13139
13269
|
var ControlController = class extends BaseController {
|
|
13140
13270
|
/**
|
|
@@ -13422,7 +13552,7 @@ var ControlController = class extends BaseController {
|
|
|
13422
13552
|
let message;
|
|
13423
13553
|
let duration;
|
|
13424
13554
|
if (msgItem && msgItem.content) {
|
|
13425
|
-
duration =
|
|
13555
|
+
duration = isNil21(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
|
|
13426
13556
|
const scriptParams = { ...this.getEventArgs() };
|
|
13427
13557
|
if (opts == null ? void 0 : opts.data) {
|
|
13428
13558
|
scriptParams.data = opts.data;
|
|
@@ -13461,7 +13591,7 @@ var ControlController = class extends BaseController {
|
|
|
13461
13591
|
};
|
|
13462
13592
|
|
|
13463
13593
|
// src/controller/common/control/md-control.controller.ts
|
|
13464
|
-
import { isElementSame, RuntimeError as
|
|
13594
|
+
import { isElementSame, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
13465
13595
|
import { debounce } from "lodash-es";
|
|
13466
13596
|
var MDControlController = class extends ControlController {
|
|
13467
13597
|
constructor() {
|
|
@@ -13744,7 +13874,7 @@ var MDControlController = class extends ControlController {
|
|
|
13744
13874
|
async remove(args) {
|
|
13745
13875
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
13746
13876
|
if (!(data == null ? void 0 : data.length)) {
|
|
13747
|
-
throw new
|
|
13877
|
+
throw new RuntimeError34("\u672A\u9009\u4E2D\u6570\u636E");
|
|
13748
13878
|
}
|
|
13749
13879
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
13750
13880
|
const del = await ibiz.confirm.error({
|
|
@@ -13893,7 +14023,7 @@ var MDControlController = class extends ControlController {
|
|
|
13893
14023
|
(importItem) => importItem.id === dedataImportId
|
|
13894
14024
|
);
|
|
13895
14025
|
if (!dataImport) {
|
|
13896
|
-
throw new
|
|
14026
|
+
throw new RuntimeError34("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
13897
14027
|
}
|
|
13898
14028
|
let importName = "DataImport";
|
|
13899
14029
|
if (dataImport.enableCustomized) {
|
|
@@ -13927,7 +14057,7 @@ var MDControlController = class extends ControlController {
|
|
|
13927
14057
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
13928
14058
|
import {
|
|
13929
14059
|
findRecursiveChild,
|
|
13930
|
-
RuntimeError as
|
|
14060
|
+
RuntimeError as RuntimeError35,
|
|
13931
14061
|
RuntimeModelError as RuntimeModelError26
|
|
13932
14062
|
} from "@ibiz-template/core";
|
|
13933
14063
|
var AppMenuController = class extends ControlController {
|
|
@@ -13996,7 +14126,7 @@ var AppMenuController = class extends ControlController {
|
|
|
13996
14126
|
childrenFields: ["appMenuItems"]
|
|
13997
14127
|
});
|
|
13998
14128
|
if (!menuItem) {
|
|
13999
|
-
throw new
|
|
14129
|
+
throw new RuntimeError35("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
14000
14130
|
}
|
|
14001
14131
|
this.evt.emit("onClick", {
|
|
14002
14132
|
eventArg: id,
|
|
@@ -14125,7 +14255,7 @@ var AppMenuController = class extends ControlController {
|
|
|
14125
14255
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
14126
14256
|
import {
|
|
14127
14257
|
findRecursiveChild as findRecursiveChild2,
|
|
14128
|
-
RuntimeError as
|
|
14258
|
+
RuntimeError as RuntimeError36,
|
|
14129
14259
|
RuntimeModelError as RuntimeModelError27
|
|
14130
14260
|
} from "@ibiz-template/core";
|
|
14131
14261
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -14135,7 +14265,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
14135
14265
|
childrenFields: ["appMenuItems"]
|
|
14136
14266
|
});
|
|
14137
14267
|
if (!menuItem) {
|
|
14138
|
-
throw new
|
|
14268
|
+
throw new RuntimeError36("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
14139
14269
|
}
|
|
14140
14270
|
this.evt.emit("onClick", {
|
|
14141
14271
|
eventArg: id,
|
|
@@ -14163,7 +14293,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
14163
14293
|
import dayjs3 from "dayjs";
|
|
14164
14294
|
|
|
14165
14295
|
// src/controller/control/calendar/calendar.service.ts
|
|
14166
|
-
import { RuntimeError as
|
|
14296
|
+
import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
14167
14297
|
var CalendarService = class extends MDControlService {
|
|
14168
14298
|
/**
|
|
14169
14299
|
* 执行查询多条数据的方法
|
|
@@ -14213,11 +14343,11 @@ var CalendarService = class extends MDControlService {
|
|
|
14213
14343
|
setCalendarConfigData(items, index) {
|
|
14214
14344
|
const { sysCalendarItems } = this.model;
|
|
14215
14345
|
if (!sysCalendarItems) {
|
|
14216
|
-
throw new
|
|
14346
|
+
throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
14217
14347
|
}
|
|
14218
14348
|
const calendarItem = sysCalendarItems[index];
|
|
14219
14349
|
if (!calendarItem) {
|
|
14220
|
-
throw new
|
|
14350
|
+
throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
14221
14351
|
}
|
|
14222
14352
|
return items.map((item) => {
|
|
14223
14353
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -14431,11 +14561,11 @@ var CalendarController = class extends MDControlController {
|
|
|
14431
14561
|
};
|
|
14432
14562
|
|
|
14433
14563
|
// src/controller/control/chart/chart.controller.ts
|
|
14434
|
-
import { RuntimeError as
|
|
14564
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
14435
14565
|
|
|
14436
14566
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
14437
14567
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
14438
|
-
import { RuntimeError as
|
|
14568
|
+
import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
|
|
14439
14569
|
|
|
14440
14570
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
14441
14571
|
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
@@ -14448,7 +14578,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
14448
14578
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
14449
14579
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
14450
14580
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
14451
|
-
import { clone as clone19, isNil as
|
|
14581
|
+
import { clone as clone19, isNil as isNil22, mergeDeepRight } from "ramda";
|
|
14452
14582
|
dayjs4.extend(minMax);
|
|
14453
14583
|
dayjs4.extend(isSameOrBefore);
|
|
14454
14584
|
dayjs4.extend(quarterOfYear);
|
|
@@ -14544,10 +14674,10 @@ var BaseSeriesGenerator = class {
|
|
|
14544
14674
|
* @return {*} {(string | undefined)}
|
|
14545
14675
|
*/
|
|
14546
14676
|
translateVal(codeListKey, val, isExclude = false) {
|
|
14547
|
-
if (
|
|
14677
|
+
if (isNil22(val)) {
|
|
14548
14678
|
return void 0;
|
|
14549
14679
|
}
|
|
14550
|
-
if (
|
|
14680
|
+
if (isNil22(codeListKey)) {
|
|
14551
14681
|
return val;
|
|
14552
14682
|
}
|
|
14553
14683
|
const codeListItems = this.chartGenerator.codeListMap.get(codeListKey);
|
|
@@ -14596,7 +14726,7 @@ var BaseSeriesGenerator = class {
|
|
|
14596
14726
|
seriesCodeListId,
|
|
14597
14727
|
item[this.groupField]
|
|
14598
14728
|
);
|
|
14599
|
-
if (
|
|
14729
|
+
if (isNil22(groupVal)) {
|
|
14600
14730
|
return;
|
|
14601
14731
|
}
|
|
14602
14732
|
group = groupVal;
|
|
@@ -15444,7 +15574,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
15444
15574
|
getChartDataByParams(params) {
|
|
15445
15575
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
15446
15576
|
if (!generator) {
|
|
15447
|
-
throw new
|
|
15577
|
+
throw new RuntimeError38("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
15448
15578
|
}
|
|
15449
15579
|
return generator.getChartDataByParams(params);
|
|
15450
15580
|
}
|
|
@@ -15557,10 +15687,10 @@ var ChartController = class extends MDControlController {
|
|
|
15557
15687
|
*/
|
|
15558
15688
|
updateChart() {
|
|
15559
15689
|
if (!this.chart) {
|
|
15560
|
-
throw new
|
|
15690
|
+
throw new RuntimeError39("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
15561
15691
|
}
|
|
15562
15692
|
if (!this.options) {
|
|
15563
|
-
throw new
|
|
15693
|
+
throw new RuntimeError39("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
15564
15694
|
}
|
|
15565
15695
|
this.chart.setOption(this.options, { notMerge: true });
|
|
15566
15696
|
this.resizeChart();
|
|
@@ -15598,7 +15728,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
15598
15728
|
};
|
|
15599
15729
|
|
|
15600
15730
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
15601
|
-
import { recursiveIterate as recursiveIterate2, RuntimeError as
|
|
15731
|
+
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
15602
15732
|
|
|
15603
15733
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
15604
15734
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
@@ -15608,7 +15738,7 @@ import { isArray as isArray8 } from "qx-util";
|
|
|
15608
15738
|
import { RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
15609
15739
|
|
|
15610
15740
|
// src/ui-logic/index.ts
|
|
15611
|
-
import { RuntimeError as
|
|
15741
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
15612
15742
|
|
|
15613
15743
|
// src/ui-logic/ui-logic.ts
|
|
15614
15744
|
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
@@ -16159,7 +16289,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
16159
16289
|
};
|
|
16160
16290
|
|
|
16161
16291
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
16162
|
-
import { ModelError as ModelError22, RuntimeError as
|
|
16292
|
+
import { ModelError as ModelError22, RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
16163
16293
|
import { clone as clone21 } from "ramda";
|
|
16164
16294
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
16165
16295
|
async exec(ctx) {
|
|
@@ -16209,7 +16339,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
16209
16339
|
setParamValue(nodeParam, ctx) {
|
|
16210
16340
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
16211
16341
|
if (!dstDEUILogicParamId) {
|
|
16212
|
-
throw new
|
|
16342
|
+
throw new RuntimeError40("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
16213
16343
|
}
|
|
16214
16344
|
let dstField = dstFieldName;
|
|
16215
16345
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -16326,7 +16456,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
16326
16456
|
};
|
|
16327
16457
|
|
|
16328
16458
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
16329
|
-
import { RuntimeError as
|
|
16459
|
+
import { RuntimeError as RuntimeError41, RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
16330
16460
|
import { isFunction } from "lodash-es";
|
|
16331
16461
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
16332
16462
|
async exec(ctx) {
|
|
@@ -16343,14 +16473,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
16343
16473
|
}
|
|
16344
16474
|
const invokeParam = ctx.params[invokeParamId];
|
|
16345
16475
|
if (!invokeParam) {
|
|
16346
|
-
throw new
|
|
16476
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
16347
16477
|
}
|
|
16348
16478
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
16349
16479
|
if (!invokeCtrl) {
|
|
16350
|
-
throw new
|
|
16480
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
16351
16481
|
}
|
|
16352
16482
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
16353
|
-
throw new
|
|
16483
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
16354
16484
|
}
|
|
16355
16485
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
16356
16486
|
}
|
|
@@ -16576,16 +16706,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
16576
16706
|
};
|
|
16577
16707
|
|
|
16578
16708
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
16579
|
-
import { RuntimeError as
|
|
16709
|
+
import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
16580
16710
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
16581
16711
|
async exec(_ctx) {
|
|
16582
16712
|
const { errorInfo } = this.model;
|
|
16583
|
-
throw new
|
|
16713
|
+
throw new RuntimeError42(errorInfo);
|
|
16584
16714
|
}
|
|
16585
16715
|
};
|
|
16586
16716
|
|
|
16587
16717
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
16588
|
-
import { RuntimeError as
|
|
16718
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
16589
16719
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
16590
16720
|
async exec(ctx) {
|
|
16591
16721
|
ctx.isEndNode = true;
|
|
@@ -16601,18 +16731,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
16601
16731
|
}
|
|
16602
16732
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
16603
16733
|
if (!invokeCtrl) {
|
|
16604
|
-
throw new
|
|
16734
|
+
throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
16605
16735
|
}
|
|
16606
16736
|
const eventParam = ctx.params[eventParamId];
|
|
16607
16737
|
if (!eventParam) {
|
|
16608
|
-
throw new
|
|
16738
|
+
throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
16609
16739
|
}
|
|
16610
16740
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
16611
16741
|
}
|
|
16612
16742
|
};
|
|
16613
16743
|
|
|
16614
16744
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
16615
|
-
import { RuntimeError as
|
|
16745
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
16616
16746
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
16617
16747
|
async exec(ctx) {
|
|
16618
16748
|
const {
|
|
@@ -16632,7 +16762,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
16632
16762
|
}
|
|
16633
16763
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
16634
16764
|
if (!dstParam) {
|
|
16635
|
-
throw new
|
|
16765
|
+
throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
16636
16766
|
}
|
|
16637
16767
|
const result = await execDELogicById(
|
|
16638
16768
|
dstAppDELogicId,
|
|
@@ -16955,7 +17085,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
16955
17085
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
16956
17086
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
16957
17087
|
if (!deUILogic) {
|
|
16958
|
-
throw new
|
|
17088
|
+
throw new RuntimeError45(
|
|
16959
17089
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
16960
17090
|
);
|
|
16961
17091
|
}
|
|
@@ -16968,7 +17098,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
16968
17098
|
}
|
|
16969
17099
|
|
|
16970
17100
|
// src/ui-action/uiaction-util.ts
|
|
16971
|
-
import { RuntimeError as
|
|
17101
|
+
import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
|
|
16972
17102
|
var UIActionUtil = class {
|
|
16973
17103
|
/**
|
|
16974
17104
|
* 执行界面行为
|
|
@@ -16983,7 +17113,7 @@ var UIActionUtil = class {
|
|
|
16983
17113
|
static async exec(actionId, params, appId2) {
|
|
16984
17114
|
const action = await getUIActionById(actionId, appId2);
|
|
16985
17115
|
if (!action) {
|
|
16986
|
-
throw new
|
|
17116
|
+
throw new RuntimeError46("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
16987
17117
|
}
|
|
16988
17118
|
if (action.actionTarget === "SINGLEDATA") {
|
|
16989
17119
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -17411,7 +17541,7 @@ import {
|
|
|
17411
17541
|
StringUtil,
|
|
17412
17542
|
RuntimeModelError as RuntimeModelError51,
|
|
17413
17543
|
ModelError as ModelError26,
|
|
17414
|
-
RuntimeError as
|
|
17544
|
+
RuntimeError as RuntimeError47
|
|
17415
17545
|
} from "@ibiz-template/core";
|
|
17416
17546
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
17417
17547
|
async execAction(action, args) {
|
|
@@ -17521,7 +17651,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17521
17651
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
17522
17652
|
requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
17523
17653
|
} else {
|
|
17524
|
-
throw new
|
|
17654
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
|
|
17525
17655
|
}
|
|
17526
17656
|
const res = await ibiz.net.request(requestUrl, {
|
|
17527
17657
|
method: "get",
|
|
@@ -17548,10 +17678,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17548
17678
|
window.open(link, "_blank");
|
|
17549
17679
|
}
|
|
17550
17680
|
} else {
|
|
17551
|
-
throw new
|
|
17681
|
+
throw new RuntimeError47("\u6253\u5370\u5931\u8D25");
|
|
17552
17682
|
}
|
|
17553
17683
|
} else {
|
|
17554
|
-
throw new
|
|
17684
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
|
|
17555
17685
|
}
|
|
17556
17686
|
}
|
|
17557
17687
|
/**
|
|
@@ -17602,7 +17732,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17602
17732
|
refreshMode: 1
|
|
17603
17733
|
};
|
|
17604
17734
|
}
|
|
17605
|
-
throw new
|
|
17735
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
|
|
17606
17736
|
}
|
|
17607
17737
|
/**
|
|
17608
17738
|
* 执行导出行为
|
|
@@ -17653,10 +17783,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17653
17783
|
URL.revokeObjectURL(elink.href);
|
|
17654
17784
|
document.body.removeChild(elink);
|
|
17655
17785
|
} else {
|
|
17656
|
-
throw new
|
|
17786
|
+
throw new RuntimeError47("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
|
|
17657
17787
|
}
|
|
17658
17788
|
} else {
|
|
17659
|
-
throw new
|
|
17789
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
|
|
17660
17790
|
}
|
|
17661
17791
|
}
|
|
17662
17792
|
};
|
|
@@ -17743,7 +17873,7 @@ var ToolbarController = class extends ControlController {
|
|
|
17743
17873
|
const actionId = item.uiactionId;
|
|
17744
17874
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
17745
17875
|
if (!uiAction) {
|
|
17746
|
-
throw new
|
|
17876
|
+
throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
17747
17877
|
}
|
|
17748
17878
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
17749
17879
|
if (enableLoading) {
|
|
@@ -18342,7 +18472,7 @@ var RawItemPortletController = class extends PortletPartController {
|
|
|
18342
18472
|
|
|
18343
18473
|
// src/controller/control/data-view/data-view.controller.ts
|
|
18344
18474
|
import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
18345
|
-
import { isNil as
|
|
18475
|
+
import { isNil as isNil23 } from "ramda";
|
|
18346
18476
|
|
|
18347
18477
|
// src/controller/control/data-view/data-view.service.ts
|
|
18348
18478
|
var DataViewControlService = class extends MDControlService {
|
|
@@ -18630,7 +18760,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
18630
18760
|
const groupMap = /* @__PURE__ */ new Map();
|
|
18631
18761
|
items.forEach((item) => {
|
|
18632
18762
|
const groupVal = item[groupAppDEFieldId];
|
|
18633
|
-
if (
|
|
18763
|
+
if (isNil23(groupVal)) {
|
|
18634
18764
|
return;
|
|
18635
18765
|
}
|
|
18636
18766
|
if (!groupMap.has(groupVal)) {
|
|
@@ -18803,7 +18933,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
18803
18933
|
import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
18804
18934
|
|
|
18805
18935
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
18806
|
-
import { RuntimeError as
|
|
18936
|
+
import { RuntimeError as RuntimeError49, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
18807
18937
|
var ExpBarControlController = class extends ControlController {
|
|
18808
18938
|
constructor() {
|
|
18809
18939
|
super(...arguments);
|
|
@@ -19129,7 +19259,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
19129
19259
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
19130
19260
|
return this.XDataModel.navAppViewId;
|
|
19131
19261
|
}
|
|
19132
|
-
throw new
|
|
19262
|
+
throw new RuntimeError49("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
19133
19263
|
}
|
|
19134
19264
|
/**
|
|
19135
19265
|
* 获取导航视图
|
|
@@ -19272,7 +19402,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
19272
19402
|
};
|
|
19273
19403
|
|
|
19274
19404
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
19275
|
-
import { RuntimeError as
|
|
19405
|
+
import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
19276
19406
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
19277
19407
|
constructor() {
|
|
19278
19408
|
super(...arguments);
|
|
@@ -19346,7 +19476,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
19346
19476
|
const deData = node._deData || node;
|
|
19347
19477
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
19348
19478
|
if (!nodeModel) {
|
|
19349
|
-
throw new
|
|
19479
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230".concat(node._nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
19350
19480
|
}
|
|
19351
19481
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
19352
19482
|
result.context.currentSrfNav = nodeId;
|
|
@@ -19537,7 +19667,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
19537
19667
|
};
|
|
19538
19668
|
|
|
19539
19669
|
// src/controller/control/form/search-form/search-form.controller.ts
|
|
19540
|
-
import { RuntimeError as
|
|
19670
|
+
import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
19541
19671
|
|
|
19542
19672
|
// src/controller/control/form/form/form.controller.ts
|
|
19543
19673
|
import {
|
|
@@ -20108,7 +20238,7 @@ var SearchFormController = class extends FormController {
|
|
|
20108
20238
|
applyStoredFilter(index) {
|
|
20109
20239
|
const filter = this.state.storedFilters[index];
|
|
20110
20240
|
if (!filter) {
|
|
20111
|
-
throw new
|
|
20241
|
+
throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6");
|
|
20112
20242
|
}
|
|
20113
20243
|
if (filter.data) {
|
|
20114
20244
|
Object.assign(this.data, filter.data);
|
|
@@ -20124,7 +20254,7 @@ var SearchFormController = class extends FormController {
|
|
|
20124
20254
|
async removeStoredFilter(index) {
|
|
20125
20255
|
const filter = this.state.storedFilters[index];
|
|
20126
20256
|
if (!filter) {
|
|
20127
|
-
throw new
|
|
20257
|
+
throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6");
|
|
20128
20258
|
}
|
|
20129
20259
|
this.state.storedFilters.splice(index, 1);
|
|
20130
20260
|
await this.saveConfig();
|
|
@@ -21437,7 +21567,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
21437
21567
|
};
|
|
21438
21568
|
|
|
21439
21569
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
21440
|
-
import { RuntimeError as
|
|
21570
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
21441
21571
|
import { createUUID as createUUID11 } from "qx-util";
|
|
21442
21572
|
|
|
21443
21573
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -21554,7 +21684,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
21554
21684
|
async remove(id) {
|
|
21555
21685
|
const controller = this.formMap.get(id);
|
|
21556
21686
|
if (!controller) {
|
|
21557
|
-
throw new
|
|
21687
|
+
throw new RuntimeError52("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94".concat(id, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
21558
21688
|
}
|
|
21559
21689
|
await controller.remove();
|
|
21560
21690
|
const index = this.state.items.findIndex((item) => item.id === id);
|
|
@@ -21856,7 +21986,7 @@ var FormTabPanelController = class extends FormDetailController {
|
|
|
21856
21986
|
import {
|
|
21857
21987
|
awaitTimeout,
|
|
21858
21988
|
mergeInLeft as mergeInLeft2,
|
|
21859
|
-
RuntimeError as
|
|
21989
|
+
RuntimeError as RuntimeError53
|
|
21860
21990
|
} from "@ibiz-template/core";
|
|
21861
21991
|
import { debounce as debounce2 } from "lodash-es";
|
|
21862
21992
|
import { createUUID as createUUID12 } from "qx-util";
|
|
@@ -22321,7 +22451,7 @@ var EditFormController = class extends FormController {
|
|
|
22321
22451
|
}
|
|
22322
22452
|
const isValid = await this.validate();
|
|
22323
22453
|
if (!isValid) {
|
|
22324
|
-
throw new
|
|
22454
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22325
22455
|
}
|
|
22326
22456
|
if (!silent) {
|
|
22327
22457
|
await this.startLoading();
|
|
@@ -22444,7 +22574,7 @@ var EditFormController = class extends FormController {
|
|
|
22444
22574
|
(item) => item.id === formItemUpdateId
|
|
22445
22575
|
);
|
|
22446
22576
|
if (!formItemUpdate) {
|
|
22447
|
-
throw new
|
|
22577
|
+
throw new RuntimeError53("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
22448
22578
|
}
|
|
22449
22579
|
const {
|
|
22450
22580
|
appDEMethodId,
|
|
@@ -22503,7 +22633,7 @@ var EditFormController = class extends FormController {
|
|
|
22503
22633
|
async wfStart(args) {
|
|
22504
22634
|
const isValid = await this.validate();
|
|
22505
22635
|
if (!isValid) {
|
|
22506
|
-
throw new
|
|
22636
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22507
22637
|
}
|
|
22508
22638
|
await this.startLoading();
|
|
22509
22639
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -22532,7 +22662,7 @@ var EditFormController = class extends FormController {
|
|
|
22532
22662
|
async wfSubmit(args) {
|
|
22533
22663
|
const isValid = await this.validate();
|
|
22534
22664
|
if (!isValid) {
|
|
22535
|
-
throw new
|
|
22665
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22536
22666
|
}
|
|
22537
22667
|
await this.startLoading();
|
|
22538
22668
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -22848,7 +22978,7 @@ import {
|
|
|
22848
22978
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
22849
22979
|
mergeDefaultInLeft,
|
|
22850
22980
|
recursiveIterate as recursiveIterate7,
|
|
22851
|
-
RuntimeError as
|
|
22981
|
+
RuntimeError as RuntimeError54,
|
|
22852
22982
|
RuntimeModelError as RuntimeModelError61
|
|
22853
22983
|
} from "@ibiz-template/core";
|
|
22854
22984
|
import { clone as clone25 } from "ramda";
|
|
@@ -23374,7 +23504,7 @@ var GridController = class extends MDControlController {
|
|
|
23374
23504
|
if (editShowMode === "row") {
|
|
23375
23505
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
23376
23506
|
if (editingRow) {
|
|
23377
|
-
throw new
|
|
23507
|
+
throw new RuntimeError54("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
23378
23508
|
}
|
|
23379
23509
|
}
|
|
23380
23510
|
const queryParams = { ...this.params };
|
|
@@ -23415,7 +23545,7 @@ var GridController = class extends MDControlController {
|
|
|
23415
23545
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
23416
23546
|
const rowState = this.findRowState(data);
|
|
23417
23547
|
if (!rowState) {
|
|
23418
|
-
throw new
|
|
23548
|
+
throw new RuntimeError54("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
23419
23549
|
}
|
|
23420
23550
|
if (!rowState.modified) {
|
|
23421
23551
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -23427,7 +23557,7 @@ var GridController = class extends MDControlController {
|
|
|
23427
23557
|
}
|
|
23428
23558
|
const isValid = await this.validate(rowState);
|
|
23429
23559
|
if (!isValid) {
|
|
23430
|
-
throw new
|
|
23560
|
+
throw new RuntimeError54("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
23431
23561
|
}
|
|
23432
23562
|
let res;
|
|
23433
23563
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
@@ -23640,7 +23770,7 @@ var GridController = class extends MDControlController {
|
|
|
23640
23770
|
}
|
|
23641
23771
|
async toggleRowEdit() {
|
|
23642
23772
|
if (!this.model.enableRowNew) {
|
|
23643
|
-
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");
|
|
23644
23774
|
}
|
|
23645
23775
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
23646
23776
|
}
|
|
@@ -23673,7 +23803,7 @@ var GridController = class extends MDControlController {
|
|
|
23673
23803
|
} else {
|
|
23674
23804
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
23675
23805
|
if (editingRow) {
|
|
23676
|
-
throw new
|
|
23806
|
+
throw new RuntimeError54("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
23677
23807
|
}
|
|
23678
23808
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
23679
23809
|
row.cacheData = clone25(row.data);
|
|
@@ -23728,7 +23858,7 @@ var GridController = class extends MDControlController {
|
|
|
23728
23858
|
(item) => item.id === updateId
|
|
23729
23859
|
);
|
|
23730
23860
|
if (!findUpdate) {
|
|
23731
|
-
throw new
|
|
23861
|
+
throw new RuntimeError54("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
23732
23862
|
}
|
|
23733
23863
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
23734
23864
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -23884,7 +24014,7 @@ var GridController = class extends MDControlController {
|
|
|
23884
24014
|
data2 = this.getData();
|
|
23885
24015
|
}
|
|
23886
24016
|
if (data2.length === 0) {
|
|
23887
|
-
throw new
|
|
24017
|
+
throw new RuntimeError54("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
23888
24018
|
}
|
|
23889
24019
|
return formatExcelData(data2);
|
|
23890
24020
|
};
|
|
@@ -24083,7 +24213,7 @@ var GridController = class extends MDControlController {
|
|
|
24083
24213
|
import { DataTypes as DataTypes4, ModelError as ModelError29, plus as plus2 } from "@ibiz-template/core";
|
|
24084
24214
|
import dayjs5 from "dayjs";
|
|
24085
24215
|
import { debounce as debounce3 } from "lodash-es";
|
|
24086
|
-
import { clone as clone26, isNil as
|
|
24216
|
+
import { clone as clone26, isNil as isNil24 } from "ramda";
|
|
24087
24217
|
var GridFieldColumnController = class extends GridColumnController {
|
|
24088
24218
|
constructor() {
|
|
24089
24219
|
super(...arguments);
|
|
@@ -24295,11 +24425,11 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
24295
24425
|
*/
|
|
24296
24426
|
calcFieldAgg(items) {
|
|
24297
24427
|
const { aggField, aggMode, aggValueFormat, unitName } = this.model;
|
|
24298
|
-
if (
|
|
24428
|
+
if (isNil24(aggMode) || aggMode === "NONE") {
|
|
24299
24429
|
return;
|
|
24300
24430
|
}
|
|
24301
24431
|
const fieldName = aggField || this.model.id;
|
|
24302
|
-
items = items.filter((item) => !
|
|
24432
|
+
items = items.filter((item) => !isNil24(item[fieldName]));
|
|
24303
24433
|
let aggValue;
|
|
24304
24434
|
if (this.grid.model.aggMode === "PAGE") {
|
|
24305
24435
|
switch (aggMode) {
|
|
@@ -24450,7 +24580,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
24450
24580
|
};
|
|
24451
24581
|
|
|
24452
24582
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
24453
|
-
import { RuntimeError as
|
|
24583
|
+
import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
24454
24584
|
import Schema2 from "async-validator";
|
|
24455
24585
|
import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
|
|
24456
24586
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -24590,7 +24720,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
24590
24720
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
24591
24721
|
const result = await this.validate(row);
|
|
24592
24722
|
if (!result) {
|
|
24593
|
-
throw new
|
|
24723
|
+
throw new RuntimeError55(
|
|
24594
24724
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
24595
24725
|
);
|
|
24596
24726
|
}
|
|
@@ -24888,7 +25018,7 @@ var ListController = class extends MDControlController {
|
|
|
24888
25018
|
};
|
|
24889
25019
|
|
|
24890
25020
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
24891
|
-
import { recursiveIterate as recursiveIterate8, RuntimeError as
|
|
25021
|
+
import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError56 } from "@ibiz-template/core";
|
|
24892
25022
|
var PanelController = class extends ControlController {
|
|
24893
25023
|
constructor(model, context, params, ctx, container) {
|
|
24894
25024
|
super(model, context, params, ctx);
|
|
@@ -25012,7 +25142,7 @@ var PanelController = class extends ControlController {
|
|
|
25012
25142
|
var _a, _b;
|
|
25013
25143
|
const data = await this.prepareData();
|
|
25014
25144
|
if (!data) {
|
|
25015
|
-
throw new
|
|
25145
|
+
throw new RuntimeError56("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
25016
25146
|
}
|
|
25017
25147
|
const panelData = this.convertData(data);
|
|
25018
25148
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -25608,11 +25738,11 @@ var PickupViewPanelController = class extends ControlController {
|
|
|
25608
25738
|
|
|
25609
25739
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
25610
25740
|
import {
|
|
25611
|
-
RuntimeError as
|
|
25741
|
+
RuntimeError as RuntimeError57,
|
|
25612
25742
|
mergeInLeft as mergeInLeft3,
|
|
25613
25743
|
recursiveIterate as recursiveIterate9
|
|
25614
25744
|
} from "@ibiz-template/core";
|
|
25615
|
-
import { clone as clone27, isNil as
|
|
25745
|
+
import { clone as clone27, isNil as isNil25 } from "ramda";
|
|
25616
25746
|
|
|
25617
25747
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
25618
25748
|
import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
@@ -26269,7 +26399,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26269
26399
|
let hasError = false;
|
|
26270
26400
|
recursiveIterate9(this.state.filterNodes[0], (node) => {
|
|
26271
26401
|
if (node.leaf) {
|
|
26272
|
-
if (node.field && node.valueOP && !
|
|
26402
|
+
if (node.field && node.valueOP && !isNil25(node.value)) {
|
|
26273
26403
|
hasFilter = true;
|
|
26274
26404
|
} else {
|
|
26275
26405
|
hasError = true;
|
|
@@ -26329,7 +26459,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26329
26459
|
value: data.value || null
|
|
26330
26460
|
};
|
|
26331
26461
|
}
|
|
26332
|
-
throw new
|
|
26462
|
+
throw new RuntimeError57("\u65E0\u6548\u7684condtype:".concat(data.condtype));
|
|
26333
26463
|
}
|
|
26334
26464
|
/**
|
|
26335
26465
|
* 获取初始过滤项树节点数据集合
|
|
@@ -26743,7 +26873,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26743
26873
|
|
|
26744
26874
|
// src/controller/control/tree/tree.controller.ts
|
|
26745
26875
|
import {
|
|
26746
|
-
RuntimeError as
|
|
26876
|
+
RuntimeError as RuntimeError58,
|
|
26747
26877
|
RuntimeModelError as RuntimeModelError64,
|
|
26748
26878
|
recursiveIterate as recursiveIterate10
|
|
26749
26879
|
} from "@ibiz-template/core";
|
|
@@ -27458,8 +27588,14 @@ var TreeController = class extends MDControlController {
|
|
|
27458
27588
|
* @param {ITreeNodeData} nodeData
|
|
27459
27589
|
*/
|
|
27460
27590
|
parseTreeNodeData(nodeData) {
|
|
27591
|
+
let tempData = null;
|
|
27592
|
+
if (nodeData._nodeType === "DE") {
|
|
27593
|
+
tempData = nodeData;
|
|
27594
|
+
} else {
|
|
27595
|
+
tempData = { ...nodeData, ...nodeData._deData || {} };
|
|
27596
|
+
}
|
|
27461
27597
|
return {
|
|
27462
|
-
data: [
|
|
27598
|
+
data: [tempData],
|
|
27463
27599
|
context: Object.assign(this.context.clone(), nodeData._context || {}),
|
|
27464
27600
|
params: { ...this.params, ...nodeData._params || {} }
|
|
27465
27601
|
};
|
|
@@ -27731,7 +27867,7 @@ var TreeController = class extends MDControlController {
|
|
|
27731
27867
|
throw new RuntimeModelError64(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
|
|
27732
27868
|
}
|
|
27733
27869
|
if (nodeData._nodeType !== "DE") {
|
|
27734
|
-
throw new
|
|
27870
|
+
throw new RuntimeError58("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
|
|
27735
27871
|
}
|
|
27736
27872
|
nodeData._text = text;
|
|
27737
27873
|
await this.updateDeNodeData([nodeData]);
|
|
@@ -27739,7 +27875,7 @@ var TreeController = class extends MDControlController {
|
|
|
27739
27875
|
};
|
|
27740
27876
|
|
|
27741
27877
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
27742
|
-
import { RuntimeError as
|
|
27878
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
27743
27879
|
|
|
27744
27880
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
27745
27881
|
var WizardPanelService = class extends ControlService {
|
|
@@ -27905,7 +28041,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27905
28041
|
const { activeFormTag } = this.state;
|
|
27906
28042
|
const controller = this.formControllers.get(activeFormTag);
|
|
27907
28043
|
if (!controller) {
|
|
27908
|
-
throw new
|
|
28044
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
27909
28045
|
}
|
|
27910
28046
|
return controller;
|
|
27911
28047
|
}
|
|
@@ -27947,7 +28083,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27947
28083
|
getWizardFormByTag(tag) {
|
|
27948
28084
|
var _a;
|
|
27949
28085
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
27950
|
-
throw new
|
|
28086
|
+
throw new RuntimeError59("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
|
|
27951
28087
|
return;
|
|
27952
28088
|
}
|
|
27953
28089
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -27956,7 +28092,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27956
28092
|
}
|
|
27957
28093
|
);
|
|
27958
28094
|
if (!wizardForm) {
|
|
27959
|
-
throw new
|
|
28095
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
27960
28096
|
}
|
|
27961
28097
|
return wizardForm;
|
|
27962
28098
|
}
|
|
@@ -28027,7 +28163,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28027
28163
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
28028
28164
|
}
|
|
28029
28165
|
if (!prevTag) {
|
|
28030
|
-
throw new
|
|
28166
|
+
throw new RuntimeError59("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
28031
28167
|
}
|
|
28032
28168
|
this.state.activeFormTag = prevTag;
|
|
28033
28169
|
}
|
|
@@ -28063,7 +28199,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28063
28199
|
});
|
|
28064
28200
|
const nextWizardStep = wizardSteps[index + 1];
|
|
28065
28201
|
if (!nextWizardStep) {
|
|
28066
|
-
throw new
|
|
28202
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
28067
28203
|
}
|
|
28068
28204
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
28069
28205
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -28072,7 +28208,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28072
28208
|
}
|
|
28073
28209
|
}
|
|
28074
28210
|
if (!nextTag) {
|
|
28075
|
-
throw new
|
|
28211
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
28076
28212
|
}
|
|
28077
28213
|
this.state.activeFormTag = nextTag;
|
|
28078
28214
|
this.tagHistory.push(nextTag);
|
|
@@ -28092,7 +28228,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28092
28228
|
|
|
28093
28229
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
28094
28230
|
import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
28095
|
-
import { isNil as
|
|
28231
|
+
import { isNil as isNil26 } from "ramda";
|
|
28096
28232
|
|
|
28097
28233
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
28098
28234
|
var MDCtrlService = class extends MDControlService {
|
|
@@ -28319,7 +28455,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28319
28455
|
const groupMap = /* @__PURE__ */ new Map();
|
|
28320
28456
|
items.forEach((item) => {
|
|
28321
28457
|
const groupVal = item[groupAppDEFieldId];
|
|
28322
|
-
if (
|
|
28458
|
+
if (isNil26(groupVal)) {
|
|
28323
28459
|
return;
|
|
28324
28460
|
}
|
|
28325
28461
|
if (!groupMap.has(groupVal)) {
|
|
@@ -28395,8 +28531,8 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28395
28531
|
};
|
|
28396
28532
|
|
|
28397
28533
|
// src/controller/control/kanban/kanban.controller.ts
|
|
28398
|
-
import { RuntimeError as
|
|
28399
|
-
import { isNil as
|
|
28534
|
+
import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
|
|
28535
|
+
import { isNil as isNil27 } from "ramda";
|
|
28400
28536
|
|
|
28401
28537
|
// src/controller/control/kanban/kanban.service.ts
|
|
28402
28538
|
var KanbanService = class extends DataViewControlService {
|
|
@@ -28481,12 +28617,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28481
28617
|
const isAsc = minorSortDir === "ASC";
|
|
28482
28618
|
items.forEach((item) => {
|
|
28483
28619
|
const sortValue = item[sortField];
|
|
28484
|
-
if (
|
|
28620
|
+
if (isNil27(sortValue)) {
|
|
28485
28621
|
item[sortField] = 0;
|
|
28486
28622
|
} else {
|
|
28487
28623
|
const toNum = Number(sortValue);
|
|
28488
28624
|
if (Number.isNaN(toNum)) {
|
|
28489
|
-
throw new
|
|
28625
|
+
throw new RuntimeError60(
|
|
28490
28626
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
28491
28627
|
);
|
|
28492
28628
|
}
|
|
@@ -28572,7 +28708,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28572
28708
|
}
|
|
28573
28709
|
handleDataGroup() {
|
|
28574
28710
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
28575
|
-
throw new
|
|
28711
|
+
throw new RuntimeError60("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
28576
28712
|
}
|
|
28577
28713
|
return super.handleDataGroup();
|
|
28578
28714
|
}
|
|
@@ -28588,7 +28724,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28588
28724
|
const groupMap = /* @__PURE__ */ new Map();
|
|
28589
28725
|
items.forEach((item) => {
|
|
28590
28726
|
const groupVal = item[groupAppDEFieldId];
|
|
28591
|
-
if (
|
|
28727
|
+
if (isNil27(groupVal)) {
|
|
28592
28728
|
return;
|
|
28593
28729
|
}
|
|
28594
28730
|
if (!groupMap.has(groupVal)) {
|
|
@@ -28915,7 +29051,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28915
29051
|
|
|
28916
29052
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
28917
29053
|
import {
|
|
28918
|
-
RuntimeError as
|
|
29054
|
+
RuntimeError as RuntimeError61,
|
|
28919
29055
|
RuntimeModelError as RuntimeModelError67,
|
|
28920
29056
|
awaitTimeout as awaitTimeout3,
|
|
28921
29057
|
recursiveIterate as recursiveIterate11
|
|
@@ -29175,11 +29311,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
29175
29311
|
return;
|
|
29176
29312
|
}
|
|
29177
29313
|
if (nodeData._nodeType !== "DE") {
|
|
29178
|
-
throw new
|
|
29314
|
+
throw new RuntimeError61("\u975E\u5B9E\u4F53\u8282\u70B9\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58");
|
|
29179
29315
|
}
|
|
29180
29316
|
const rowState = this.state.rows[nodeData._uuid];
|
|
29181
29317
|
if (!rowState) {
|
|
29182
|
-
throw new
|
|
29318
|
+
throw new RuntimeError61("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
29183
29319
|
}
|
|
29184
29320
|
if (!rowState.modified) {
|
|
29185
29321
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -29193,7 +29329,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
29193
29329
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
29194
29330
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
29195
29331
|
if (isCreate) {
|
|
29196
|
-
throw new
|
|
29332
|
+
throw new RuntimeError61("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
|
|
29197
29333
|
}
|
|
29198
29334
|
if (!updateAppDEActionId) {
|
|
29199
29335
|
throw new RuntimeModelError67(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
|
|
@@ -29353,7 +29489,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
29353
29489
|
(item) => item.showRowEdit
|
|
29354
29490
|
);
|
|
29355
29491
|
if (editingRow) {
|
|
29356
|
-
throw new
|
|
29492
|
+
throw new RuntimeError61("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
29357
29493
|
}
|
|
29358
29494
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
29359
29495
|
row.cacheData = clone28(row.data);
|
|
@@ -29466,7 +29602,7 @@ var TreeGridExColumnController = class {
|
|
|
29466
29602
|
// src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
|
|
29467
29603
|
import {
|
|
29468
29604
|
DataTypes as DataTypes5,
|
|
29469
|
-
RuntimeError as
|
|
29605
|
+
RuntimeError as RuntimeError62,
|
|
29470
29606
|
RuntimeModelError as RuntimeModelError68
|
|
29471
29607
|
} from "@ibiz-template/core";
|
|
29472
29608
|
import { clone as clone29 } from "ramda";
|
|
@@ -29667,7 +29803,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
29667
29803
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
29668
29804
|
const value = row.data[valueItem];
|
|
29669
29805
|
if (value == null) {
|
|
29670
|
-
throw new
|
|
29806
|
+
throw new RuntimeError62("\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 ".concat(valueItem, " \u7684\u503C"));
|
|
29671
29807
|
}
|
|
29672
29808
|
const { linkAppViewId } = this.nodeColumn;
|
|
29673
29809
|
if (!linkAppViewId) {
|
|
@@ -30048,7 +30184,7 @@ var TreeGridService = class extends GridService {
|
|
|
30048
30184
|
};
|
|
30049
30185
|
|
|
30050
30186
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
30051
|
-
import { RuntimeError as
|
|
30187
|
+
import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
|
|
30052
30188
|
import { createUUID as createUUID13 } from "qx-util";
|
|
30053
30189
|
|
|
30054
30190
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -30264,7 +30400,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
30264
30400
|
(item) => item.id === id
|
|
30265
30401
|
);
|
|
30266
30402
|
if (panelUiItemIndex < 0) {
|
|
30267
|
-
throw new
|
|
30403
|
+
throw new RuntimeError63("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
30268
30404
|
}
|
|
30269
30405
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
30270
30406
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -31346,7 +31482,7 @@ var AppHub = class {
|
|
|
31346
31482
|
this.registerAppView(appView);
|
|
31347
31483
|
return appView;
|
|
31348
31484
|
}
|
|
31349
|
-
throw new
|
|
31485
|
+
throw new RuntimeError64("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
31350
31486
|
}
|
|
31351
31487
|
/**
|
|
31352
31488
|
* 根据视图模型路径,加参数重新计算视图模型
|
|
@@ -31367,7 +31503,7 @@ var AppHub = class {
|
|
|
31367
31503
|
);
|
|
31368
31504
|
return model;
|
|
31369
31505
|
}
|
|
31370
|
-
throw new
|
|
31506
|
+
throw new RuntimeError64("\u89C6\u56FE[".concat(modelPath, "]\u4E0D\u5B58\u5728"));
|
|
31371
31507
|
}
|
|
31372
31508
|
/**
|
|
31373
31509
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -31398,7 +31534,7 @@ var AppHub = class {
|
|
|
31398
31534
|
this.registerAppDataEntity(entity, appId2);
|
|
31399
31535
|
return entity;
|
|
31400
31536
|
}
|
|
31401
|
-
throw new
|
|
31537
|
+
throw new RuntimeError64("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
31402
31538
|
}
|
|
31403
31539
|
/**
|
|
31404
31540
|
* 新建 hub 应用
|
|
@@ -31413,7 +31549,7 @@ var AppHub = class {
|
|
|
31413
31549
|
return this.appMap.get(id);
|
|
31414
31550
|
}
|
|
31415
31551
|
if (!this.modelLoaderProvider) {
|
|
31416
|
-
throw new
|
|
31552
|
+
throw new RuntimeError64("\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668");
|
|
31417
31553
|
}
|
|
31418
31554
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
31419
31555
|
const app = new Application(appModel);
|
|
@@ -31544,7 +31680,7 @@ var EngineFactory = class {
|
|
|
31544
31680
|
};
|
|
31545
31681
|
|
|
31546
31682
|
// src/engine/view-base.engine.ts
|
|
31547
|
-
import { RuntimeError as
|
|
31683
|
+
import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
|
|
31548
31684
|
var ViewEngineBase = class {
|
|
31549
31685
|
/**
|
|
31550
31686
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -31732,7 +31868,7 @@ var ViewEngineBase = class {
|
|
|
31732
31868
|
const { appDataEntityId } = this.view.model;
|
|
31733
31869
|
const { evt, context, params } = this.view;
|
|
31734
31870
|
if (!appDataEntityId) {
|
|
31735
|
-
throw new
|
|
31871
|
+
throw new RuntimeError65("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
31736
31872
|
}
|
|
31737
31873
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
31738
31874
|
const res = await app.deService.exec(
|
|
@@ -32180,7 +32316,7 @@ var GlobalUtil = class {
|
|
|
32180
32316
|
};
|
|
32181
32317
|
|
|
32182
32318
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
32183
|
-
import { RuntimeError as
|
|
32319
|
+
import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
|
|
32184
32320
|
var LogicExecutor = class {
|
|
32185
32321
|
/**
|
|
32186
32322
|
* @author lxm
|
|
@@ -32201,7 +32337,7 @@ var LogicExecutor = class {
|
|
|
32201
32337
|
*/
|
|
32202
32338
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32203
32339
|
execute(_executeParams) {
|
|
32204
|
-
throw new
|
|
32340
|
+
throw new RuntimeError66("Method not implemented.");
|
|
32205
32341
|
}
|
|
32206
32342
|
/**
|
|
32207
32343
|
* 销毁方法
|
|
@@ -32638,7 +32774,7 @@ var LogicSchedulerCenter = class {
|
|
|
32638
32774
|
};
|
|
32639
32775
|
|
|
32640
32776
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
32641
|
-
import { RuntimeError as
|
|
32777
|
+
import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
|
|
32642
32778
|
var LogicTrigger = class {
|
|
32643
32779
|
/**
|
|
32644
32780
|
* @author lxm
|
|
@@ -32698,7 +32834,7 @@ var LogicTrigger = class {
|
|
|
32698
32834
|
if (this.executor) {
|
|
32699
32835
|
return this.executor.execute(executeParams);
|
|
32700
32836
|
}
|
|
32701
|
-
throw new
|
|
32837
|
+
throw new RuntimeError67("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
32702
32838
|
}
|
|
32703
32839
|
/**
|
|
32704
32840
|
* 销毁方法
|
|
@@ -32715,12 +32851,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
32715
32851
|
};
|
|
32716
32852
|
|
|
32717
32853
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
32718
|
-
import { RuntimeError as
|
|
32854
|
+
import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
|
|
32719
32855
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
32720
32856
|
bindExecutor(executor) {
|
|
32721
32857
|
super.bindExecutor(executor);
|
|
32722
32858
|
if (this.executor.type !== "SCRIPT") {
|
|
32723
|
-
throw new
|
|
32859
|
+
throw new RuntimeError68(
|
|
32724
32860
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
32725
32861
|
);
|
|
32726
32862
|
}
|
|
@@ -32756,7 +32892,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
32756
32892
|
};
|
|
32757
32893
|
|
|
32758
32894
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
32759
|
-
import { RuntimeError as
|
|
32895
|
+
import { RuntimeError as RuntimeError69, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
32760
32896
|
var TimerTrigger = class extends LogicTrigger {
|
|
32761
32897
|
constructor() {
|
|
32762
32898
|
super(...arguments);
|
|
@@ -32768,7 +32904,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
32768
32904
|
}
|
|
32769
32905
|
this.timer = setInterval(() => {
|
|
32770
32906
|
if (!this.scheduler.defaultParamsCb) {
|
|
32771
|
-
throw new
|
|
32907
|
+
throw new RuntimeError69("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
32772
32908
|
}
|
|
32773
32909
|
const params = this.scheduler.defaultParamsCb();
|
|
32774
32910
|
this.executor.execute(params);
|
|
@@ -32785,7 +32921,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
32785
32921
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
32786
32922
|
import {
|
|
32787
32923
|
ModelError as ModelError34,
|
|
32788
|
-
RuntimeError as
|
|
32924
|
+
RuntimeError as RuntimeError70,
|
|
32789
32925
|
RuntimeModelError as RuntimeModelError74
|
|
32790
32926
|
} from "@ibiz-template/core";
|
|
32791
32927
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -32823,7 +32959,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32823
32959
|
const { context, params, ...rest } = parameters;
|
|
32824
32960
|
const { data } = parameters;
|
|
32825
32961
|
if (!(data == null ? void 0 : data[0])) {
|
|
32826
|
-
throw new
|
|
32962
|
+
throw new RuntimeError70("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
32827
32963
|
}
|
|
32828
32964
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
32829
32965
|
let openViewRef;
|
|
@@ -32883,7 +33019,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32883
33019
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
32884
33020
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
32885
33021
|
if (!findView) {
|
|
32886
|
-
throw new
|
|
33022
|
+
throw new RuntimeError70(
|
|
32887
33023
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
32888
33024
|
);
|
|
32889
33025
|
}
|
|
@@ -33008,7 +33144,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33008
33144
|
}
|
|
33009
33145
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
33010
33146
|
if (!selectData) {
|
|
33011
|
-
throw new
|
|
33147
|
+
throw new RuntimeError70("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
33012
33148
|
}
|
|
33013
33149
|
const indexType = selectData.srfkey;
|
|
33014
33150
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
|
|
@@ -33018,7 +33154,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33018
33154
|
}
|
|
33019
33155
|
);
|
|
33020
33156
|
if (!findView) {
|
|
33021
|
-
throw new
|
|
33157
|
+
throw new RuntimeError70(
|
|
33022
33158
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
33023
33159
|
);
|
|
33024
33160
|
}
|
|
@@ -33055,7 +33191,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33055
33191
|
}
|
|
33056
33192
|
});
|
|
33057
33193
|
if (pickParentFieldName === void 0) {
|
|
33058
|
-
throw new
|
|
33194
|
+
throw new RuntimeError70(
|
|
33059
33195
|
"\u6CA1\u6709\u627E\u5230".concat(pickParentDeName, "\u5728\u5F53\u524D\u5B9E\u4F53\u7684\u5916\u952E\u5C5E\u6027")
|
|
33060
33196
|
);
|
|
33061
33197
|
}
|
|
@@ -33222,6 +33358,7 @@ function install2() {
|
|
|
33222
33358
|
ibiz2.config = new GlobalConfig();
|
|
33223
33359
|
ibiz2.auth = new V7AuthService();
|
|
33224
33360
|
ibiz2.asyncAction = new AsyncActionService();
|
|
33361
|
+
ibiz2.internalMessage = new InternalMessageService();
|
|
33225
33362
|
ibiz2.engine = new EngineFactory();
|
|
33226
33363
|
ibiz2.uiDomainManager = new UIDomainManager();
|
|
33227
33364
|
installCommand();
|
|
@@ -33429,6 +33566,8 @@ export {
|
|
|
33429
33566
|
HandlebarsUtil,
|
|
33430
33567
|
HtmlPortletController,
|
|
33431
33568
|
HubController,
|
|
33569
|
+
INTERNAL_MESSAGE_PROVIDER_PREFIX,
|
|
33570
|
+
InternalMessageService,
|
|
33432
33571
|
KanbanController,
|
|
33433
33572
|
KanbanService,
|
|
33434
33573
|
LayoutPanelUtil,
|
|
@@ -33479,6 +33618,7 @@ export {
|
|
|
33479
33618
|
RemotePluginItem,
|
|
33480
33619
|
ReportPanelController,
|
|
33481
33620
|
ReportPanelService,
|
|
33621
|
+
RouteConst,
|
|
33482
33622
|
ScriptFactory,
|
|
33483
33623
|
ScriptFunction,
|
|
33484
33624
|
SearchBarController,
|
|
@@ -33589,6 +33729,7 @@ export {
|
|
|
33589
33729
|
getEntitySchema,
|
|
33590
33730
|
getFormDetailProvider,
|
|
33591
33731
|
getGridColumnProvider,
|
|
33732
|
+
getInternalMessageProvider,
|
|
33592
33733
|
getMatchResPath,
|
|
33593
33734
|
getOriginData,
|
|
33594
33735
|
getPFPlugin,
|
|
@@ -33631,6 +33772,7 @@ export {
|
|
|
33631
33772
|
registerEditorProvider,
|
|
33632
33773
|
registerFormDetailProvider,
|
|
33633
33774
|
registerGridColumnProvider,
|
|
33775
|
+
registerInternalMessageProvider,
|
|
33634
33776
|
registerPanelItemProvider,
|
|
33635
33777
|
registerPlatformProvider,
|
|
33636
33778
|
registerPortletProvider,
|