@ibiz-template/runtime 0.5.6 → 0.5.7-alpha.1
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 +597 -448
- 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/form/form-detail/form-item/form-item.controller.d.ts +0 -8
- package/out/controller/control/form/form-detail/form-item/form-item.controller.d.ts.map +1 -1
- package/out/controller/control/form/form-detail/form-item/form-item.controller.js +1 -22
- package/out/controller/control/search-bar/search-bar.controller.d.ts +7 -0
- package/out/controller/control/search-bar/search-bar.controller.d.ts.map +1 -1
- package/out/controller/control/search-bar/search-bar.controller.js +19 -3
- package/out/controller/control/tree/tree.controller.d.ts.map +1 -1
- package/out/controller/control/tree/tree.controller.js +8 -1
- package/out/engine/md-view.engine.d.ts.map +1 -1
- package/out/engine/md-view.engine.js +10 -4
- package/out/install.d.ts.map +1 -1
- package/out/install.js +3 -1
- package/out/interface/controller/controller/control/i-search-bar.controller.d.ts +7 -0
- package/out/interface/controller/controller/control/i-search-bar.controller.d.ts.map +1 -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/entity/method/de-action.d.ts.map +1 -1
- package/out/service/service/entity/method/de-action.js +4 -4
- 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/utils/de-cache/de-cache.d.ts +4 -2
- package/out/service/utils/de-cache/de-cache.d.ts.map +1 -1
- package/out/service/utils/de-cache/de-cache.js +9 -5
- 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/form/form-detail/form-item/form-item.controller.ts +1 -31
- package/src/controller/control/search-bar/search-bar.controller.ts +20 -3
- package/src/controller/control/tree/tree.controller.ts +7 -1
- package/src/engine/md-view.engine.ts +11 -6
- package/src/install.ts +3 -0
- package/src/interface/controller/controller/control/i-search-bar.controller.ts +8 -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/entity/method/de-action.ts +12 -2
- package/src/service/service/index.ts +1 -0
- package/src/service/service/internal-message/internal-message.service.ts +69 -0
- package/src/service/utils/de-cache/de-cache.ts +19 -5
- 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
|
|
@@ -4911,14 +4958,15 @@ var DECache = class {
|
|
|
4911
4958
|
*
|
|
4912
4959
|
* @param {*} context
|
|
4913
4960
|
* @param {IDataEntity} entity
|
|
4961
|
+
* @param {boolean} [ignoreDuplicate=true] 是否忽略主键重复(不忽略报错,忽略则覆盖)
|
|
4914
4962
|
* @return {*} {boolean}
|
|
4915
4963
|
* @memberof EntityCache
|
|
4916
4964
|
*/
|
|
4917
|
-
add(context, entity) {
|
|
4965
|
+
add(context, entity, ignoreDuplicate = true) {
|
|
4918
4966
|
if (this.isUnionKey) {
|
|
4919
4967
|
this.calcUnionKey(entity);
|
|
4920
|
-
if (this.checkData(context, entity.srfkey)) {
|
|
4921
|
-
throw new
|
|
4968
|
+
if (ignoreDuplicate === false && this.checkData(context, entity.srfkey)) {
|
|
4969
|
+
throw new RuntimeError15(
|
|
4922
4970
|
"\u65B0\u5EFA\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
4923
4971
|
);
|
|
4924
4972
|
}
|
|
@@ -4971,15 +5019,16 @@ var DECache = class {
|
|
|
4971
5019
|
*
|
|
4972
5020
|
* @param {IContext} context
|
|
4973
5021
|
* @param {IDataEntity} entity
|
|
5022
|
+
* @param {boolean} [ignoreDuplicate=true] 是否忽略主键重复(不忽略报错,忽略则覆盖)
|
|
4974
5023
|
* @return {*} {IDataEntity}
|
|
4975
5024
|
* @memberof EntityCache
|
|
4976
5025
|
*/
|
|
4977
|
-
update(context, entity) {
|
|
5026
|
+
update(context, entity, ignoreDuplicate = true) {
|
|
4978
5027
|
const oldKey = entity.srfkey;
|
|
4979
5028
|
if (this.isUnionKey) {
|
|
4980
5029
|
this.calcUnionKey(entity);
|
|
4981
|
-
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
4982
|
-
throw new
|
|
5030
|
+
if (ignoreDuplicate === false && oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
5031
|
+
throw new RuntimeError15(
|
|
4983
5032
|
"\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
4984
5033
|
);
|
|
4985
5034
|
}
|
|
@@ -5115,7 +5164,7 @@ var DECache = class {
|
|
|
5115
5164
|
if (this.isUnionKey) {
|
|
5116
5165
|
this.calcUnionKey(entity);
|
|
5117
5166
|
if (oldKey !== entity.srfkey && this.checkData(context, entity.srfkey)) {
|
|
5118
|
-
throw new
|
|
5167
|
+
throw new RuntimeError15(
|
|
5119
5168
|
"\u66F4\u65B0\u8054\u5408\u4E3B\u952E\u6570\u636E\u5931\u8D25\uFF0C\u5DF2\u6709\u4E3B\u952E\u4E3A".concat(entity.srfkey, "\u7684\u6570\u636E")
|
|
5120
5169
|
);
|
|
5121
5170
|
}
|
|
@@ -5429,7 +5478,7 @@ function fieldValueToBoolean(value) {
|
|
|
5429
5478
|
}
|
|
5430
5479
|
|
|
5431
5480
|
// src/service/service/code-list/code-list.service.ts
|
|
5432
|
-
import { RuntimeError as
|
|
5481
|
+
import { RuntimeError as RuntimeError16 } from "@ibiz-template/core";
|
|
5433
5482
|
var CodeListService = class {
|
|
5434
5483
|
constructor(appModel) {
|
|
5435
5484
|
this.appModel = appModel;
|
|
@@ -5576,7 +5625,7 @@ var CodeListService = class {
|
|
|
5576
5625
|
async get(tag, context, params) {
|
|
5577
5626
|
const codeList = this.allCodeLists.get(tag);
|
|
5578
5627
|
if (!codeList) {
|
|
5579
|
-
throw new
|
|
5628
|
+
throw new RuntimeError16("\u627E\u4E0D\u5230".concat(tag, "\u4EE3\u7801\u8868"));
|
|
5580
5629
|
}
|
|
5581
5630
|
if (codeList.codeListType === "STATIC") {
|
|
5582
5631
|
return this.getStatic(codeList);
|
|
@@ -5698,12 +5747,12 @@ CounterService.counterMap = /* @__PURE__ */ new Map();
|
|
|
5698
5747
|
// src/service/service/entity/de.service.ts
|
|
5699
5748
|
import {
|
|
5700
5749
|
ModelError as ModelError7,
|
|
5701
|
-
RuntimeError as
|
|
5750
|
+
RuntimeError as RuntimeError18,
|
|
5702
5751
|
RuntimeModelError as RuntimeModelError10
|
|
5703
5752
|
} from "@ibiz-template/core";
|
|
5704
5753
|
|
|
5705
5754
|
// src/service/service/work-flow/work-flow.service.ts
|
|
5706
|
-
import { RuntimeError as
|
|
5755
|
+
import { RuntimeError as RuntimeError17 } from "@ibiz-template/core";
|
|
5707
5756
|
var WorkFlowService = class {
|
|
5708
5757
|
/**
|
|
5709
5758
|
* Creates an instance of WorkFlowService.
|
|
@@ -6025,7 +6074,7 @@ var WorkFlowService = class {
|
|
|
6025
6074
|
case "sendcopy":
|
|
6026
6075
|
return this.wfSendCopy(context, params, data);
|
|
6027
6076
|
default: {
|
|
6028
|
-
throw new
|
|
6077
|
+
throw new RuntimeError17("\u300C".concat(methodName, "\u300D\u672A\u5B9E\u73B0"));
|
|
6029
6078
|
}
|
|
6030
6079
|
}
|
|
6031
6080
|
}
|
|
@@ -6597,7 +6646,7 @@ var DEService = class {
|
|
|
6597
6646
|
if (method) {
|
|
6598
6647
|
return method.exec(context, params, params2);
|
|
6599
6648
|
}
|
|
6600
|
-
throw new
|
|
6649
|
+
throw new RuntimeError18("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
6601
6650
|
}
|
|
6602
6651
|
getDraft(context, params, params2) {
|
|
6603
6652
|
return this.exec("GetDraft", context, params, params2);
|
|
@@ -6651,7 +6700,7 @@ var DEService = class {
|
|
|
6651
6700
|
if (method) {
|
|
6652
6701
|
return method.exec(context, params, params2);
|
|
6653
6702
|
}
|
|
6654
|
-
throw new
|
|
6703
|
+
throw new RuntimeError18("".concat(this.model.codeName, "\u672A\u652F\u6301\u300C").concat(id, "\u300D\u65B9\u6CD5"));
|
|
6655
6704
|
}
|
|
6656
6705
|
/**
|
|
6657
6706
|
* 实体级别 AI 聊天会话
|
|
@@ -7044,7 +7093,7 @@ var ControlService = class {
|
|
|
7044
7093
|
};
|
|
7045
7094
|
|
|
7046
7095
|
// src/service/service/control/md-control.service.ts
|
|
7047
|
-
import { RuntimeError as
|
|
7096
|
+
import { RuntimeError as RuntimeError19 } from "@ibiz-template/core";
|
|
7048
7097
|
import { isArray as isArray3 } from "qx-util";
|
|
7049
7098
|
var MDControlService = class extends ControlService {
|
|
7050
7099
|
/**
|
|
@@ -7173,7 +7222,7 @@ var MDControlService = class extends ControlService {
|
|
|
7173
7222
|
* @returns {*} {Promise<IHttpResponse>}
|
|
7174
7223
|
*/
|
|
7175
7224
|
async exportData(_dataExport, _context, _params = {}) {
|
|
7176
|
-
throw new
|
|
7225
|
+
throw new RuntimeError19("\u672A\u5B9E\u73B0");
|
|
7177
7226
|
}
|
|
7178
7227
|
/**
|
|
7179
7228
|
* 处理响应
|
|
@@ -7208,7 +7257,7 @@ var MDControlService = class extends ControlService {
|
|
|
7208
7257
|
};
|
|
7209
7258
|
|
|
7210
7259
|
// src/service/service/authority/authority.service.ts
|
|
7211
|
-
import { RuntimeError as
|
|
7260
|
+
import { RuntimeError as RuntimeError20 } from "@ibiz-template/core";
|
|
7212
7261
|
|
|
7213
7262
|
// src/service/service/authority/de-authority.service.ts
|
|
7214
7263
|
var DeAuthorityService = class {
|
|
@@ -7344,7 +7393,7 @@ var AuthorityService = class {
|
|
|
7344
7393
|
this.appModel.appId
|
|
7345
7394
|
);
|
|
7346
7395
|
if (!entityModel) {
|
|
7347
|
-
throw new
|
|
7396
|
+
throw new RuntimeError20("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
7348
7397
|
}
|
|
7349
7398
|
const constructor = this.constructorCache.get(id);
|
|
7350
7399
|
let service;
|
|
@@ -7575,7 +7624,7 @@ var AsyncActionService = class {
|
|
|
7575
7624
|
import {
|
|
7576
7625
|
HttpError as HttpError5,
|
|
7577
7626
|
HttpResponse as HttpResponse3,
|
|
7578
|
-
RuntimeError as
|
|
7627
|
+
RuntimeError as RuntimeError22,
|
|
7579
7628
|
RuntimeModelError as RuntimeModelError22
|
|
7580
7629
|
} from "@ibiz-template/core";
|
|
7581
7630
|
import { isArray as isArray6, isNil as isNil10 } from "lodash-es";
|
|
@@ -7806,7 +7855,7 @@ var Method = class {
|
|
|
7806
7855
|
};
|
|
7807
7856
|
|
|
7808
7857
|
// src/de-logic/index.ts
|
|
7809
|
-
import { HttpError as HttpError4, HttpResponse as HttpResponse2, RuntimeError as
|
|
7858
|
+
import { HttpError as HttpError4, HttpResponse as HttpResponse2, RuntimeError as RuntimeError21 } from "@ibiz-template/core";
|
|
7810
7859
|
import { isArray as isArray5 } from "lodash-es";
|
|
7811
7860
|
import { clone as clone13 } from "ramda";
|
|
7812
7861
|
|
|
@@ -8868,7 +8917,7 @@ async function execDELogicById(deDELogicId, dataEntityId, context, data, params)
|
|
|
8868
8917
|
context.srfappid
|
|
8869
8918
|
);
|
|
8870
8919
|
if (!deLogic) {
|
|
8871
|
-
throw new
|
|
8920
|
+
throw new RuntimeError21("".concat(dataEntityId, "\u627E\u4E0D\u5230\u5B9E\u4F53\u903B\u8F91").concat(deDELogicId));
|
|
8872
8921
|
}
|
|
8873
8922
|
return execDELogic(deLogic, context, data, params);
|
|
8874
8923
|
}
|
|
@@ -9013,7 +9062,7 @@ var DEActionMethod = class extends Method {
|
|
|
9013
9062
|
*/
|
|
9014
9063
|
async create(context, data, params) {
|
|
9015
9064
|
if (!data) {
|
|
9016
|
-
throw new
|
|
9065
|
+
throw new RuntimeError22("create\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
9017
9066
|
}
|
|
9018
9067
|
if (this.isLocalMode) {
|
|
9019
9068
|
return this.createTemp(context, this.createEntity(data));
|
|
@@ -9055,7 +9104,7 @@ var DEActionMethod = class extends Method {
|
|
|
9055
9104
|
*/
|
|
9056
9105
|
async update(context, data, params) {
|
|
9057
9106
|
if (!data) {
|
|
9058
|
-
throw new
|
|
9107
|
+
throw new RuntimeError22("update\u884C\u4E3A\u6CA1\u6709\u4F20data");
|
|
9059
9108
|
}
|
|
9060
9109
|
if (this.isLocalMode) {
|
|
9061
9110
|
return this.updateTemp(context, this.createEntity(data));
|
|
@@ -9124,13 +9173,18 @@ var DEActionMethod = class extends Method {
|
|
|
9124
9173
|
if (isArray6(addData)) {
|
|
9125
9174
|
resultData = await Promise.all(
|
|
9126
9175
|
addData.map(
|
|
9127
|
-
(item) => this.service.local.add(
|
|
9176
|
+
(item) => this.service.local.add(
|
|
9177
|
+
context,
|
|
9178
|
+
this.attach(context, item),
|
|
9179
|
+
false
|
|
9180
|
+
)
|
|
9128
9181
|
)
|
|
9129
9182
|
);
|
|
9130
9183
|
} else {
|
|
9131
9184
|
resultData = await this.service.local.add(
|
|
9132
9185
|
context,
|
|
9133
|
-
this.attach(context, addData)
|
|
9186
|
+
this.attach(context, addData),
|
|
9187
|
+
false
|
|
9134
9188
|
);
|
|
9135
9189
|
}
|
|
9136
9190
|
return new HttpResponse3(resultData);
|
|
@@ -9302,13 +9356,18 @@ var DEActionMethod = class extends Method {
|
|
|
9302
9356
|
if (isArray6(updateData)) {
|
|
9303
9357
|
resultData = await Promise.all(
|
|
9304
9358
|
updateData.map(
|
|
9305
|
-
(item) => this.service.local.update(
|
|
9359
|
+
(item) => this.service.local.update(
|
|
9360
|
+
context,
|
|
9361
|
+
this.attach(context, item),
|
|
9362
|
+
false
|
|
9363
|
+
)
|
|
9306
9364
|
)
|
|
9307
9365
|
);
|
|
9308
9366
|
} else {
|
|
9309
9367
|
resultData = await this.service.local.update(
|
|
9310
9368
|
context,
|
|
9311
|
-
this.attach(context, updateData)
|
|
9369
|
+
this.attach(context, updateData),
|
|
9370
|
+
false
|
|
9312
9371
|
);
|
|
9313
9372
|
}
|
|
9314
9373
|
if (resultData) {
|
|
@@ -9545,6 +9604,67 @@ function presetDEMethodProvider() {
|
|
|
9545
9604
|
registerDEMethodProvider("FETCHTEMP", () => fetchDeMethodProvider);
|
|
9546
9605
|
}
|
|
9547
9606
|
|
|
9607
|
+
// src/service/service/internal-message/internal-message.service.ts
|
|
9608
|
+
import { isNil as isNil12 } from "ramda";
|
|
9609
|
+
var InternalMessageService = class {
|
|
9610
|
+
constructor() {
|
|
9611
|
+
/**
|
|
9612
|
+
* 基础路径
|
|
9613
|
+
* @author lxm
|
|
9614
|
+
* @date 2024-01-23 02:06:47
|
|
9615
|
+
*/
|
|
9616
|
+
this.baseUrl = "/extension/internal_messages";
|
|
9617
|
+
}
|
|
9618
|
+
/**
|
|
9619
|
+
* 获取站内信的集合
|
|
9620
|
+
* @author lxm
|
|
9621
|
+
* @date 2023-11-15 10:55:25
|
|
9622
|
+
* @param {IParams} [params={}]
|
|
9623
|
+
* @return {*} {Promise<IHttpResponse<IInternalMessage[]>>}
|
|
9624
|
+
*/
|
|
9625
|
+
async fetch(params = {}) {
|
|
9626
|
+
const res = {
|
|
9627
|
+
ok: true
|
|
9628
|
+
};
|
|
9629
|
+
if (res.headers) {
|
|
9630
|
+
if (res.headers["x-page"]) {
|
|
9631
|
+
res.page = Number(res.headers["x-page"]);
|
|
9632
|
+
}
|
|
9633
|
+
if (res.headers["x-per-page"]) {
|
|
9634
|
+
res.size = Number(res.headers["x-per-page"]);
|
|
9635
|
+
}
|
|
9636
|
+
if (res.headers["x-total"]) {
|
|
9637
|
+
res.total = Number(res.headers["x-total"]);
|
|
9638
|
+
}
|
|
9639
|
+
}
|
|
9640
|
+
if (isNil12(res.data)) {
|
|
9641
|
+
res.data = [];
|
|
9642
|
+
}
|
|
9643
|
+
res.page = params.page;
|
|
9644
|
+
res.total = 34;
|
|
9645
|
+
res.data = Array.from({ length: params.size }, (_, i) => ({
|
|
9646
|
+
id: i + 1,
|
|
9647
|
+
status: "RECEIVED",
|
|
9648
|
+
title: "\u6807\u9898".concat(i + 1),
|
|
9649
|
+
content: "\u5185\u5BB9".concat(i + 1, "\u957F\u5185\u5BB9"),
|
|
9650
|
+
short_content: "\u5185\u5BB9".concat(i + 1, "\u77ED\u5185\u5BB9"),
|
|
9651
|
+
create_time: (/* @__PURE__ */ new Date()).toISOString()
|
|
9652
|
+
}));
|
|
9653
|
+
return res;
|
|
9654
|
+
}
|
|
9655
|
+
/**
|
|
9656
|
+
* 获取单条站内信
|
|
9657
|
+
* @author lxm
|
|
9658
|
+
* @date 2023-11-15 10:57:08
|
|
9659
|
+
* @param {string} messageId
|
|
9660
|
+
* @return {*} {Promise<IHttpResponse<IInternalMessage[]>>}
|
|
9661
|
+
*/
|
|
9662
|
+
async get(messageId) {
|
|
9663
|
+
const res = await ibiz.net.get("".concat(this.baseUrl, "/").concat(messageId));
|
|
9664
|
+
return res;
|
|
9665
|
+
}
|
|
9666
|
+
};
|
|
9667
|
+
|
|
9548
9668
|
// src/service/vo/tree-node-data/tree-node-data.ts
|
|
9549
9669
|
import { createUUID as createUUID5 } from "qx-util";
|
|
9550
9670
|
var TreeNodeData = class {
|
|
@@ -9620,7 +9740,7 @@ var TreeCodeListNodeData = class extends TreeNodeData {
|
|
|
9620
9740
|
|
|
9621
9741
|
// src/service/vo/tree-node-data/tree-data-set-node-data.ts
|
|
9622
9742
|
import { updateKeyDefine } from "@ibiz-template/core";
|
|
9623
|
-
import { clone as clone16, isNil as
|
|
9743
|
+
import { clone as clone16, isNil as isNil13 } from "ramda";
|
|
9624
9744
|
var CloneExcludeKeys = ["_id", "_value", "_text", "_deData", "clone"];
|
|
9625
9745
|
var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
9626
9746
|
constructor(model, parentNodeData, opts) {
|
|
@@ -9695,6 +9815,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9695
9815
|
nodeColumnKeyMap.set(columnKey, dataItemKey);
|
|
9696
9816
|
}
|
|
9697
9817
|
});
|
|
9818
|
+
const presetItemMap = /* @__PURE__ */ new Map();
|
|
9819
|
+
presetItemMap.set("srfuf", "srfuf");
|
|
9698
9820
|
const getDeKey = (key) => {
|
|
9699
9821
|
if (nodeColumnKeyMap.has(key)) {
|
|
9700
9822
|
return dataItemKeyMap.get(nodeColumnKeyMap.get(key));
|
|
@@ -9705,6 +9827,9 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9705
9827
|
if (Object.prototype.hasOwnProperty.call(this._deData, key)) {
|
|
9706
9828
|
return key;
|
|
9707
9829
|
}
|
|
9830
|
+
if (presetItemMap.has(key)) {
|
|
9831
|
+
return presetItemMap.get(key);
|
|
9832
|
+
}
|
|
9708
9833
|
};
|
|
9709
9834
|
const getKeyDefault = (key) => {
|
|
9710
9835
|
if (nodeColumnKeyMap.has(key)) {
|
|
@@ -9724,7 +9849,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9724
9849
|
});
|
|
9725
9850
|
Object.keys(this).forEach((key) => {
|
|
9726
9851
|
const deKey = getDeKey(key);
|
|
9727
|
-
if (
|
|
9852
|
+
if (isNil13(deKey) && !CloneExcludeKeys.includes(key)) {
|
|
9728
9853
|
cloneNodeData[key] = this[key];
|
|
9729
9854
|
}
|
|
9730
9855
|
});
|
|
@@ -9733,7 +9858,7 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9733
9858
|
return new Proxy(this, {
|
|
9734
9859
|
set(target, p, value) {
|
|
9735
9860
|
const deKey = getDeKey(p);
|
|
9736
|
-
if (!
|
|
9861
|
+
if (!isNil13(deKey)) {
|
|
9737
9862
|
target._deData[deKey] = value;
|
|
9738
9863
|
} else {
|
|
9739
9864
|
target[p] = value;
|
|
@@ -9742,8 +9867,8 @@ var TreeDataSetNodeData = class _TreeDataSetNodeData extends TreeNodeData {
|
|
|
9742
9867
|
},
|
|
9743
9868
|
get(target, p, _receiver) {
|
|
9744
9869
|
const deKey = getDeKey(p);
|
|
9745
|
-
if (!
|
|
9746
|
-
return
|
|
9870
|
+
if (!isNil13(deKey)) {
|
|
9871
|
+
return isNil13(target._deData[deKey]) ? getKeyDefault(p) : target._deData[deKey];
|
|
9747
9872
|
}
|
|
9748
9873
|
return target[p];
|
|
9749
9874
|
},
|
|
@@ -9847,7 +9972,7 @@ var TreeStaticNodeData = class extends TreeNodeData {
|
|
|
9847
9972
|
|
|
9848
9973
|
// src/service/vo/ui-map-field.ts
|
|
9849
9974
|
import { DataTypes as DataTypes2 } from "@ibiz-template/core";
|
|
9850
|
-
import { isNil as
|
|
9975
|
+
import { isNil as isNil14 } from "ramda";
|
|
9851
9976
|
var UIMapField = class {
|
|
9852
9977
|
constructor(uiKey, dataKey, opts = {}) {
|
|
9853
9978
|
/**
|
|
@@ -9868,10 +9993,10 @@ var UIMapField = class {
|
|
|
9868
9993
|
this.isRequestNeed = true;
|
|
9869
9994
|
this.uiKey = uiKey;
|
|
9870
9995
|
this.dataKey = dataKey;
|
|
9871
|
-
if (!
|
|
9996
|
+
if (!isNil14(opts.isOriginField)) {
|
|
9872
9997
|
this.isOriginField = opts.isOriginField;
|
|
9873
9998
|
}
|
|
9874
|
-
if (!
|
|
9999
|
+
if (!isNil14(opts.dataType)) {
|
|
9875
10000
|
this.dataType = opts.dataType;
|
|
9876
10001
|
}
|
|
9877
10002
|
}
|
|
@@ -9886,7 +10011,7 @@ var UIMapField = class {
|
|
|
9886
10011
|
return value;
|
|
9887
10012
|
}
|
|
9888
10013
|
if (DataTypes2.isNumber(this.dataType)) {
|
|
9889
|
-
const numVal = !
|
|
10014
|
+
const numVal = !isNil14(value) && value !== "" ? Number(value) : value;
|
|
9890
10015
|
if (Number.isNaN(numVal)) {
|
|
9891
10016
|
ibiz.log.debug("".concat(value, "\u4E0D\u80FD\u8F6C\u6362\u6210\u6570\u5B57"));
|
|
9892
10017
|
return value;
|
|
@@ -10057,7 +10182,7 @@ var MapData = class {
|
|
|
10057
10182
|
};
|
|
10058
10183
|
|
|
10059
10184
|
// src/service/vo/panel-data/panel-data.ts
|
|
10060
|
-
import { QXEvent as
|
|
10185
|
+
import { QXEvent as QXEvent3 } from "qx-util";
|
|
10061
10186
|
function updateKeyDefine3(target, keys) {
|
|
10062
10187
|
keys.forEach((key) => {
|
|
10063
10188
|
if (!Object.prototype.hasOwnProperty.call(target, key)) {
|
|
@@ -10072,7 +10197,7 @@ function updateKeyDefine3(target, keys) {
|
|
|
10072
10197
|
}
|
|
10073
10198
|
var PanelData = class {
|
|
10074
10199
|
constructor(fields, origin) {
|
|
10075
|
-
const _evt = new
|
|
10200
|
+
const _evt = new QXEvent3();
|
|
10076
10201
|
const keyMap = {};
|
|
10077
10202
|
const reverseKeyMap = {};
|
|
10078
10203
|
fields.forEach((field) => {
|
|
@@ -10294,7 +10419,7 @@ var GanttCodeListNodeData = class extends TreeCodeListNodeData {
|
|
|
10294
10419
|
};
|
|
10295
10420
|
|
|
10296
10421
|
// src/service/mqtt/mqtt.service.ts
|
|
10297
|
-
import { QXEvent as
|
|
10422
|
+
import { QXEvent as QXEvent4, createUUID as createUUID7 } from "qx-util";
|
|
10298
10423
|
var MqttService = class {
|
|
10299
10424
|
/**
|
|
10300
10425
|
* Creates an instance of MqttService.
|
|
@@ -10315,7 +10440,7 @@ var MqttService = class {
|
|
|
10315
10440
|
* @author chitanda
|
|
10316
10441
|
* @date 2023-10-23 15:10:06
|
|
10317
10442
|
*/
|
|
10318
|
-
this.evt = new
|
|
10443
|
+
this.evt = new QXEvent4();
|
|
10319
10444
|
/**
|
|
10320
10445
|
* 连接选项
|
|
10321
10446
|
*
|
|
@@ -10384,7 +10509,7 @@ var MqttService = class {
|
|
|
10384
10509
|
};
|
|
10385
10510
|
|
|
10386
10511
|
// src/service/de-service-util.ts
|
|
10387
|
-
import { RuntimeError as
|
|
10512
|
+
import { RuntimeError as RuntimeError23 } from "@ibiz-template/core";
|
|
10388
10513
|
var _DEServiceUtil = class _DEServiceUtil {
|
|
10389
10514
|
/**
|
|
10390
10515
|
* Creates an instance of DEServiceUtil.
|
|
@@ -10437,7 +10562,7 @@ var _DEServiceUtil = class _DEServiceUtil {
|
|
|
10437
10562
|
this.appModel.appId
|
|
10438
10563
|
);
|
|
10439
10564
|
if (!entityModel) {
|
|
10440
|
-
throw new
|
|
10565
|
+
throw new RuntimeError23("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
10441
10566
|
}
|
|
10442
10567
|
const constructor = _DEServiceUtil.constructorCache.get(id.toUpperCase());
|
|
10443
10568
|
let service;
|
|
@@ -10569,7 +10694,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10569
10694
|
const context = clone17(_context);
|
|
10570
10695
|
const appView = await ibiz.hub.config.view.get(appViewId);
|
|
10571
10696
|
if (!appView) {
|
|
10572
|
-
throw new
|
|
10697
|
+
throw new RuntimeError24("\u5E94\u7528\u89C6\u56FE[".concat(appViewId, "]\u4E0D\u5B58\u5728"));
|
|
10573
10698
|
}
|
|
10574
10699
|
if ((context.srfkey || params.srfuf === 0 /* CREATE */) && appView.appDataEntityId) {
|
|
10575
10700
|
const deName = calcDeCodeNameById(appView.appDataEntityId);
|
|
@@ -10600,11 +10725,14 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10600
10725
|
}
|
|
10601
10726
|
switch (viewOpenMode) {
|
|
10602
10727
|
case "INDEXVIEWTAB":
|
|
10728
|
+
case "INDEXVIEWTAB_POPUP":
|
|
10603
10729
|
if (opts.noWaitRoute) {
|
|
10604
10730
|
this.openIndexViewTab(appView, context, params);
|
|
10605
10731
|
return { ok: true };
|
|
10606
10732
|
}
|
|
10607
10733
|
return this.openIndexViewTab(appView, context, params);
|
|
10734
|
+
case "INDEXVIEWTAB_POPUPMODAL":
|
|
10735
|
+
return this.openIndexViewTabByModal(appView, context, params);
|
|
10608
10736
|
case "POPUP":
|
|
10609
10737
|
throw new ModelError15(appView, "\u672A\u652F\u6301\u7684\u89C6\u56FE\u6253\u5F00\u6A21\u5F0F: POPUP");
|
|
10610
10738
|
case "POPUPMODAL":
|
|
@@ -10637,6 +10765,20 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10637
10765
|
openIndexViewTab(appView, context, params = {}) {
|
|
10638
10766
|
return ibiz.openView.root(appView.id, context, params);
|
|
10639
10767
|
}
|
|
10768
|
+
/**
|
|
10769
|
+
* 模态路由打开视图,路由拼接于当前视图路由后。再由特殊解析呈现
|
|
10770
|
+
*
|
|
10771
|
+
* @author chitanda
|
|
10772
|
+
* @date 2024-01-23 11:01:07
|
|
10773
|
+
* @protected
|
|
10774
|
+
* @param {IViewConfig} appView
|
|
10775
|
+
* @param {IContext} context
|
|
10776
|
+
* @param {IParams} [params={}]
|
|
10777
|
+
* @return {*} {Promise<IModalData>}
|
|
10778
|
+
*/
|
|
10779
|
+
openIndexViewTabByModal(appView, context, params = {}) {
|
|
10780
|
+
return ibiz.openView.rootByModal(appView.id, context, params);
|
|
10781
|
+
}
|
|
10640
10782
|
/**
|
|
10641
10783
|
* 模态窗口打开
|
|
10642
10784
|
*
|
|
@@ -10664,7 +10806,7 @@ var _OpenAppViewCommand = class _OpenAppViewCommand {
|
|
|
10664
10806
|
*/
|
|
10665
10807
|
async openPopover(appView, event, context, params = {}) {
|
|
10666
10808
|
if (!event) {
|
|
10667
|
-
throw new
|
|
10809
|
+
throw new RuntimeError24("\u6C14\u6CE1\u6253\u5F00\u7F3A\u5C11event");
|
|
10668
10810
|
}
|
|
10669
10811
|
return ibiz.openView.popover(appView.id, event, context, params);
|
|
10670
10812
|
}
|
|
@@ -10720,7 +10862,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10720
10862
|
const app = await ibiz.hub.getAppAsync(context.srfappid);
|
|
10721
10863
|
const appFunc = app.getAppFunc(appFuncId);
|
|
10722
10864
|
if (!appFunc) {
|
|
10723
|
-
throw new
|
|
10865
|
+
throw new RuntimeError25("\u627E\u4E0D\u5230\u53EB".concat(appFuncId, "\u7684\u5E94\u7528\u529F\u80FD"));
|
|
10724
10866
|
}
|
|
10725
10867
|
const { navigateContexts, navigateParams, appFuncType } = appFunc;
|
|
10726
10868
|
const _context = context.clone();
|
|
@@ -10754,7 +10896,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10754
10896
|
*/
|
|
10755
10897
|
async openAppView(appFunc, context, params, opts) {
|
|
10756
10898
|
if (!appFunc.appViewId) {
|
|
10757
|
-
throw new
|
|
10899
|
+
throw new RuntimeError25("\u5E94\u7528\u89C6\u56FE[".concat(appFunc.appViewId, "]\u4E0D\u5B58\u5728"));
|
|
10758
10900
|
}
|
|
10759
10901
|
return ibiz.commands.execute(
|
|
10760
10902
|
OpenAppViewCommand.TAG,
|
|
@@ -10788,7 +10930,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10788
10930
|
*/
|
|
10789
10931
|
openPdAppFunc(appFunc, context, params) {
|
|
10790
10932
|
ibiz.log.warn("openPdAppFunc", appFunc, context, params);
|
|
10791
|
-
throw new
|
|
10933
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10792
10934
|
}
|
|
10793
10935
|
/**
|
|
10794
10936
|
* 执行 JavaScript 脚本
|
|
@@ -10802,7 +10944,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10802
10944
|
*/
|
|
10803
10945
|
executeJavaScript(appFunc, context, params) {
|
|
10804
10946
|
ibiz.log.warn("executeJavaScript", appFunc, context, params);
|
|
10805
|
-
throw new
|
|
10947
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10806
10948
|
}
|
|
10807
10949
|
/**
|
|
10808
10950
|
* 自定义应用功能
|
|
@@ -10816,7 +10958,7 @@ var _AppFuncCommand = class _AppFuncCommand {
|
|
|
10816
10958
|
*/
|
|
10817
10959
|
custom(appFunc, context, params) {
|
|
10818
10960
|
ibiz.log.warn("custom", appFunc, context, params);
|
|
10819
|
-
throw new
|
|
10961
|
+
throw new RuntimeError25("\u672A\u5B9E\u73B0");
|
|
10820
10962
|
}
|
|
10821
10963
|
};
|
|
10822
10964
|
/**
|
|
@@ -10837,7 +10979,7 @@ function installCommand() {
|
|
|
10837
10979
|
}
|
|
10838
10980
|
|
|
10839
10981
|
// src/app-hub.ts
|
|
10840
|
-
import { RuntimeError as
|
|
10982
|
+
import { RuntimeError as RuntimeError64 } from "@ibiz-template/core";
|
|
10841
10983
|
|
|
10842
10984
|
// src/application.ts
|
|
10843
10985
|
import { Net, getToken } from "@ibiz-template/core";
|
|
@@ -11029,7 +11171,7 @@ var Convert = class {
|
|
|
11029
11171
|
};
|
|
11030
11172
|
|
|
11031
11173
|
// src/hub/config/app-view-config-service.ts
|
|
11032
|
-
import { RuntimeError as
|
|
11174
|
+
import { RuntimeError as RuntimeError26 } from "@ibiz-template/core";
|
|
11033
11175
|
var AppViewConfigService = class {
|
|
11034
11176
|
constructor() {
|
|
11035
11177
|
/**
|
|
@@ -11071,7 +11213,7 @@ var AppViewConfigService = class {
|
|
|
11071
11213
|
if (!this.viewConfigs.has(id)) {
|
|
11072
11214
|
const model = await ibiz.hub.getAppView(id);
|
|
11073
11215
|
if (!model) {
|
|
11074
|
-
throw new
|
|
11216
|
+
throw new RuntimeError26("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
11075
11217
|
}
|
|
11076
11218
|
this.set(model.id, {
|
|
11077
11219
|
id: model.id,
|
|
@@ -11135,14 +11277,14 @@ var TreeGridExNotifyState = /* @__PURE__ */ ((TreeGridExNotifyState2) => {
|
|
|
11135
11277
|
|
|
11136
11278
|
// src/controller/common/view/view.controller.ts
|
|
11137
11279
|
import { notNilEmpty as notNilEmpty6 } from "qx-util";
|
|
11138
|
-
import { IBizContext as IBizContext2, RuntimeError as
|
|
11139
|
-
import { isEmpty as isEmpty8, isNil as
|
|
11280
|
+
import { IBizContext as IBizContext2, RuntimeError as RuntimeError33 } from "@ibiz-template/core";
|
|
11281
|
+
import { isEmpty as isEmpty8, isNil as isNil20, isNotNil as isNotNil2 } from "ramda";
|
|
11140
11282
|
|
|
11141
11283
|
// src/controller/utils/loading/loading.state.ts
|
|
11142
11284
|
import { NOOP } from "@ibiz-template/core";
|
|
11143
11285
|
|
|
11144
11286
|
// src/controller/utils/counter/counter.ts
|
|
11145
|
-
import { RuntimeError as
|
|
11287
|
+
import { RuntimeError as RuntimeError27 } from "@ibiz-template/core";
|
|
11146
11288
|
var Counter = class {
|
|
11147
11289
|
/**
|
|
11148
11290
|
* Creates an instance of Counter.
|
|
@@ -11204,7 +11346,7 @@ var Counter = class {
|
|
|
11204
11346
|
return;
|
|
11205
11347
|
}
|
|
11206
11348
|
if (this.count === 0) {
|
|
11207
|
-
throw new
|
|
11349
|
+
throw new RuntimeError27("\u9519\u8BEF\u7684\u8C03\u7528\uFF01decrement\u4E0D\u80FD\u5BF9count\u4E3A0\u8C03\u7528");
|
|
11208
11350
|
}
|
|
11209
11351
|
this.count -= 1;
|
|
11210
11352
|
if (this.count === 0) {
|
|
@@ -11274,7 +11416,7 @@ var LoadingState = class {
|
|
|
11274
11416
|
};
|
|
11275
11417
|
|
|
11276
11418
|
// src/controller/ctx/ctx.ts
|
|
11277
|
-
import { QXEvent as
|
|
11419
|
+
import { QXEvent as QXEvent5 } from "qx-util";
|
|
11278
11420
|
|
|
11279
11421
|
// src/controller/ctx/ctx.state.ts
|
|
11280
11422
|
var CTXState = class {
|
|
@@ -11304,7 +11446,7 @@ var CTX = class {
|
|
|
11304
11446
|
* @date 2023-04-26 07:54:46
|
|
11305
11447
|
* @protected
|
|
11306
11448
|
*/
|
|
11307
|
-
this.evt = new
|
|
11449
|
+
this.evt = new QXEvent5(3e3);
|
|
11308
11450
|
/**
|
|
11309
11451
|
* 当前视图控制器集合(包含自身视图控制器,部件控制器,和下一层级的视图的控制器)
|
|
11310
11452
|
* @author lxm
|
|
@@ -11629,8 +11771,8 @@ var ButtonContainerState = class {
|
|
|
11629
11771
|
};
|
|
11630
11772
|
|
|
11631
11773
|
// src/controller/utils/event/qx-event-ex.ts
|
|
11632
|
-
import { clearAll, QXEvent as
|
|
11633
|
-
var QXEventEx = class extends
|
|
11774
|
+
import { clearAll, QXEvent as QXEvent6 } from "qx-util";
|
|
11775
|
+
var QXEventEx = class extends QXEvent6 {
|
|
11634
11776
|
constructor() {
|
|
11635
11777
|
super(...arguments);
|
|
11636
11778
|
this.anyEventFns = [];
|
|
@@ -11768,9 +11910,9 @@ function hasSubRoute(routeDepth) {
|
|
|
11768
11910
|
}
|
|
11769
11911
|
|
|
11770
11912
|
// src/controller/utils/util/util.ts
|
|
11771
|
-
import { isNil as
|
|
11913
|
+
import { isNil as isNil15 } from "ramda";
|
|
11772
11914
|
function isValueChange(value, value2) {
|
|
11773
|
-
if ((
|
|
11915
|
+
if ((isNil15(value) || value === "") && (isNil15(value2) || value2 === "")) {
|
|
11774
11916
|
return false;
|
|
11775
11917
|
}
|
|
11776
11918
|
return value !== value2;
|
|
@@ -11784,9 +11926,9 @@ function getOriginData(data) {
|
|
|
11784
11926
|
}
|
|
11785
11927
|
|
|
11786
11928
|
// src/controller/utils/value-rule/value-rule.ts
|
|
11787
|
-
import { RuntimeError as
|
|
11929
|
+
import { RuntimeError as RuntimeError28 } from "@ibiz-template/core";
|
|
11788
11930
|
import { isNilOrEmpty as isNilOrEmpty6, isNumber } from "qx-util";
|
|
11789
|
-
import { isNil as
|
|
11931
|
+
import { isNil as isNil16 } from "ramda";
|
|
11790
11932
|
function generateRules(itemVRs, name, valueItemName) {
|
|
11791
11933
|
const rules = [];
|
|
11792
11934
|
itemVRs.forEach((item) => {
|
|
@@ -11834,7 +11976,7 @@ function generateRules(itemVRs, name, valueItemName) {
|
|
|
11834
11976
|
deRule.groupCond
|
|
11835
11977
|
);
|
|
11836
11978
|
if (!isPast) {
|
|
11837
|
-
callback(new
|
|
11979
|
+
callback(new RuntimeError28(infoMessage || deRule.ruleInfo));
|
|
11838
11980
|
}
|
|
11839
11981
|
return true;
|
|
11840
11982
|
},
|
|
@@ -11851,7 +11993,7 @@ function generateEditorRules(editor) {
|
|
|
11851
11993
|
if (maxLength) {
|
|
11852
11994
|
rules.push({
|
|
11853
11995
|
validator: (rule, value, callback) => {
|
|
11854
|
-
if (!
|
|
11996
|
+
if (!isNil16(value) && value.length > maxLength) {
|
|
11855
11997
|
callback(
|
|
11856
11998
|
new Error(
|
|
11857
11999
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -11866,7 +12008,7 @@ function generateEditorRules(editor) {
|
|
|
11866
12008
|
if (minLength) {
|
|
11867
12009
|
rules.push({
|
|
11868
12010
|
validator: (rule, value, callback) => {
|
|
11869
|
-
if (!
|
|
12011
|
+
if (!isNil16(value) && value.length < minLength) {
|
|
11870
12012
|
callback(
|
|
11871
12013
|
new Error(
|
|
11872
12014
|
"\u5185\u5BB9\u957F\u5EA6\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minLength, ",\u5F53\u524D\u957F\u5EA6\u4E3A").concat(value.length)
|
|
@@ -11878,10 +12020,10 @@ function generateEditorRules(editor) {
|
|
|
11878
12020
|
}
|
|
11879
12021
|
});
|
|
11880
12022
|
}
|
|
11881
|
-
if (!
|
|
12023
|
+
if (!isNil16(maxValue)) {
|
|
11882
12024
|
rules.push({
|
|
11883
12025
|
validator: (rule, value, callback) => {
|
|
11884
|
-
if (!
|
|
12026
|
+
if (!isNil16(value) && isNumber(value) && value > maxValue) {
|
|
11885
12027
|
callback(new Error("\u503C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E".concat(maxValue)));
|
|
11886
12028
|
} else {
|
|
11887
12029
|
return true;
|
|
@@ -11889,10 +12031,10 @@ function generateEditorRules(editor) {
|
|
|
11889
12031
|
}
|
|
11890
12032
|
});
|
|
11891
12033
|
}
|
|
11892
|
-
if (!
|
|
12034
|
+
if (!isNil16(minValue)) {
|
|
11893
12035
|
rules.push({
|
|
11894
12036
|
validator: (rule, value, callback) => {
|
|
11895
|
-
if (!
|
|
12037
|
+
if (!isNil16(value) && isNumber(value) && value < minValue) {
|
|
11896
12038
|
callback(new Error("\u503C\u5FC5\u987B\u5927\u4E8E\u7B49\u4E8E".concat(minValue)));
|
|
11897
12039
|
} else {
|
|
11898
12040
|
return true;
|
|
@@ -11904,8 +12046,8 @@ function generateEditorRules(editor) {
|
|
|
11904
12046
|
}
|
|
11905
12047
|
|
|
11906
12048
|
// src/controller/utils/value-ex/value-ex.ts
|
|
11907
|
-
import { RuntimeError as
|
|
11908
|
-
import { isNil as
|
|
12049
|
+
import { RuntimeError as RuntimeError29 } from "@ibiz-template/core";
|
|
12050
|
+
import { isNil as isNil17, mergeLeft } from "ramda";
|
|
11909
12051
|
var ValueExUtil = class {
|
|
11910
12052
|
/**
|
|
11911
12053
|
* 合并默认值
|
|
@@ -11930,13 +12072,13 @@ var ValueExUtil = class {
|
|
|
11930
12072
|
* @return {*} {string}
|
|
11931
12073
|
*/
|
|
11932
12074
|
static toText(options, value) {
|
|
11933
|
-
if (
|
|
12075
|
+
if (isNil17(value) || value === "") {
|
|
11934
12076
|
return "";
|
|
11935
12077
|
}
|
|
11936
12078
|
const { valueType, objectNameField, textSeparator } = this.mergeDefault(options);
|
|
11937
12079
|
if (["OBJECTS", "OBJECT"].includes(valueType)) {
|
|
11938
12080
|
if (!objectNameField) {
|
|
11939
|
-
throw new
|
|
12081
|
+
throw new RuntimeError29("\u7F3A\u5C11objectNameField");
|
|
11940
12082
|
}
|
|
11941
12083
|
const textKey = objectNameField.toLowerCase();
|
|
11942
12084
|
if (valueType === "OBJECTS") {
|
|
@@ -11952,15 +12094,15 @@ var ValueExUtil = class {
|
|
|
11952
12094
|
};
|
|
11953
12095
|
|
|
11954
12096
|
// src/controller/utils/value-default/value-default.ts
|
|
11955
|
-
import { RuntimeError as
|
|
12097
|
+
import { RuntimeError as RuntimeError30, ModelError as ModelError17 } from "@ibiz-template/core";
|
|
11956
12098
|
import dayjs from "dayjs";
|
|
11957
12099
|
import { createUUID as createUUID8 } from "qx-util";
|
|
11958
|
-
import { isNil as
|
|
12100
|
+
import { isNil as isNil18, isNotNil } from "ramda";
|
|
11959
12101
|
function getDefaultValue(opts, origins) {
|
|
11960
12102
|
var _a;
|
|
11961
12103
|
const { name, valueType, defaultValue, valueFormat } = opts;
|
|
11962
12104
|
const { data, context, params } = origins;
|
|
11963
|
-
if (
|
|
12105
|
+
if (isNil18(valueType) && isNil18(defaultValue)) {
|
|
11964
12106
|
return;
|
|
11965
12107
|
}
|
|
11966
12108
|
if (valueType === "RESET") {
|
|
@@ -11993,7 +12135,7 @@ function getDefaultValue(opts, origins) {
|
|
|
11993
12135
|
case "SESSION":
|
|
11994
12136
|
case "APPLICATION":
|
|
11995
12137
|
if (!((_a = ibiz.appData) == null ? void 0 : _a.context)) {
|
|
11996
|
-
throw new
|
|
12138
|
+
throw new RuntimeError30("appdata.context\u4E0D\u5B58\u5728");
|
|
11997
12139
|
}
|
|
11998
12140
|
return ibiz.appData.context[defaultValue];
|
|
11999
12141
|
case "CONTEXT":
|
|
@@ -12007,7 +12149,7 @@ function getDefaultValue(opts, origins) {
|
|
|
12007
12149
|
|
|
12008
12150
|
// src/controller/utils/data-file-util/data-file-util.ts
|
|
12009
12151
|
import {
|
|
12010
|
-
RuntimeError as
|
|
12152
|
+
RuntimeError as RuntimeError31
|
|
12011
12153
|
} from "@ibiz-template/core";
|
|
12012
12154
|
var asyncImportUrl = "asyncimportdata2";
|
|
12013
12155
|
var importUrl = "importdata2";
|
|
@@ -12061,11 +12203,11 @@ async function importData(file, appDataEntity, dataImport) {
|
|
|
12061
12203
|
}
|
|
12062
12204
|
async function exportData(header, data, fileName) {
|
|
12063
12205
|
if (!ibiz.util.getExcelUtil) {
|
|
12064
|
-
throw new
|
|
12206
|
+
throw new RuntimeError31("ibiz.util.getExportExcel\u4E0D\u5B58\u5728");
|
|
12065
12207
|
}
|
|
12066
12208
|
const exportExcel = await ibiz.util.getExcelUtil();
|
|
12067
12209
|
if (!exportExcel) {
|
|
12068
|
-
throw new
|
|
12210
|
+
throw new RuntimeError31("\u5BFC\u51FA\u6A21\u5757\u52A0\u8F7D\u9519\u8BEF");
|
|
12069
12211
|
}
|
|
12070
12212
|
try {
|
|
12071
12213
|
exportExcel.exportJsonToExcel({
|
|
@@ -12313,8 +12455,8 @@ var BaseController = class {
|
|
|
12313
12455
|
};
|
|
12314
12456
|
|
|
12315
12457
|
// src/controller/utils/view-msg/view-msg-controller.ts
|
|
12316
|
-
import { RuntimeError as
|
|
12317
|
-
import { isNil as
|
|
12458
|
+
import { RuntimeError as RuntimeError32, RuntimeModelError as RuntimeModelError24 } from "@ibiz-template/core";
|
|
12459
|
+
import { isNil as isNil19, mergeRight as mergeRight2 } from "ramda";
|
|
12318
12460
|
var ViewMsgController = class _ViewMsgController {
|
|
12319
12461
|
constructor(msgGroupId) {
|
|
12320
12462
|
this.msgGroupId = msgGroupId;
|
|
@@ -12339,7 +12481,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12339
12481
|
(item) => item.id === this.msgGroupId
|
|
12340
12482
|
);
|
|
12341
12483
|
if (!msgGroup) {
|
|
12342
|
-
throw new
|
|
12484
|
+
throw new RuntimeError32("\u627E\u4E0D\u5230\u89C6\u56FE\u6D88\u606F\u7EC4".concat(this.msgGroupId, "\u7684\u6A21\u578B"));
|
|
12343
12485
|
}
|
|
12344
12486
|
this.msgGroup = msgGroup;
|
|
12345
12487
|
const msgDetailsViewMsgIds = msgGroup.appViewMsgGroupDetails.map(
|
|
@@ -12353,7 +12495,7 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12353
12495
|
}
|
|
12354
12496
|
});
|
|
12355
12497
|
if (msgDetailsViewMsgIds.length) {
|
|
12356
|
-
throw new
|
|
12498
|
+
throw new RuntimeError32(
|
|
12357
12499
|
"\u6CA1\u6709\u627E\u5230".concat(msgDetailsViewMsgIds.join(","), "\u89C6\u56FE\u6D88\u606F\u6A21\u578B")
|
|
12358
12500
|
);
|
|
12359
12501
|
}
|
|
@@ -12499,19 +12641,19 @@ var ViewMsgController = class _ViewMsgController {
|
|
|
12499
12641
|
const removeModeField = this.getDeFieldName(entity, removeFlagAppDEFieldId);
|
|
12500
12642
|
const deViewMessages = dataSet.map((item) => {
|
|
12501
12643
|
const message = {};
|
|
12502
|
-
if (positionField && !
|
|
12644
|
+
if (positionField && !isNil19(item[positionField])) {
|
|
12503
12645
|
message.position = item[positionField];
|
|
12504
12646
|
}
|
|
12505
|
-
if (titleField && !
|
|
12647
|
+
if (titleField && !isNil19(item[titleField])) {
|
|
12506
12648
|
message.title = item[titleField];
|
|
12507
12649
|
}
|
|
12508
|
-
if (messageField && !
|
|
12650
|
+
if (messageField && !isNil19(item[messageField])) {
|
|
12509
12651
|
message.message = item[messageField];
|
|
12510
12652
|
}
|
|
12511
|
-
if (typeField && !
|
|
12653
|
+
if (typeField && !isNil19(item[typeField])) {
|
|
12512
12654
|
message.messageType = item[typeField];
|
|
12513
12655
|
}
|
|
12514
|
-
if (removeModeField && !
|
|
12656
|
+
if (removeModeField && !isNil19(item[removeModeField])) {
|
|
12515
12657
|
message.removeMode = item[removeModeField];
|
|
12516
12658
|
}
|
|
12517
12659
|
return mergeRight2(basicMsg, message);
|
|
@@ -12750,7 +12892,7 @@ var ViewController = class extends BaseController {
|
|
|
12750
12892
|
*/
|
|
12751
12893
|
handleContextParams() {
|
|
12752
12894
|
this.context.srfappid = this.model.appId;
|
|
12753
|
-
if (
|
|
12895
|
+
if (isNil20(this.context.srfsessionid) || isEmpty8(this.context.srfsessionid)) {
|
|
12754
12896
|
const domain = ibiz.uiDomainManager.create(this.id);
|
|
12755
12897
|
this.context.srfsessionid = domain.id;
|
|
12756
12898
|
}
|
|
@@ -12783,7 +12925,7 @@ var ViewController = class extends BaseController {
|
|
|
12783
12925
|
async callUIAction(key, args) {
|
|
12784
12926
|
const result = this.call(key, args);
|
|
12785
12927
|
if (result === void 0) {
|
|
12786
|
-
throw new
|
|
12928
|
+
throw new RuntimeError33("\u6CA1\u6709\u5F15\u64CE\u652F\u6301\u9884\u7F6E\u754C\u9762\u884C\u4E3A".concat(key));
|
|
12787
12929
|
}
|
|
12788
12930
|
return result;
|
|
12789
12931
|
}
|
|
@@ -13134,7 +13276,7 @@ var CodeListEditorController = class extends EditorController {
|
|
|
13134
13276
|
|
|
13135
13277
|
// src/controller/common/control/control.controller.ts
|
|
13136
13278
|
import { IBizContext as IBizContext3, IBizParams, NoticeError as NoticeError2 } from "@ibiz-template/core";
|
|
13137
|
-
import { clone as clone18, isNil as
|
|
13279
|
+
import { clone as clone18, isNil as isNil21 } from "ramda";
|
|
13138
13280
|
import { notNilEmpty as notNilEmpty7 } from "qx-util";
|
|
13139
13281
|
var ControlController = class extends BaseController {
|
|
13140
13282
|
/**
|
|
@@ -13422,7 +13564,7 @@ var ControlController = class extends BaseController {
|
|
|
13422
13564
|
let message;
|
|
13423
13565
|
let duration;
|
|
13424
13566
|
if (msgItem && msgItem.content) {
|
|
13425
|
-
duration =
|
|
13567
|
+
duration = isNil21(msgItem.timeout) ? void 0 : msgItem.timeout / 1e3;
|
|
13426
13568
|
const scriptParams = { ...this.getEventArgs() };
|
|
13427
13569
|
if (opts == null ? void 0 : opts.data) {
|
|
13428
13570
|
scriptParams.data = opts.data;
|
|
@@ -13461,7 +13603,7 @@ var ControlController = class extends BaseController {
|
|
|
13461
13603
|
};
|
|
13462
13604
|
|
|
13463
13605
|
// src/controller/common/control/md-control.controller.ts
|
|
13464
|
-
import { isElementSame, RuntimeError as
|
|
13606
|
+
import { isElementSame, RuntimeError as RuntimeError34 } from "@ibiz-template/core";
|
|
13465
13607
|
import { debounce } from "lodash-es";
|
|
13466
13608
|
var MDControlController = class extends ControlController {
|
|
13467
13609
|
constructor() {
|
|
@@ -13744,7 +13886,7 @@ var MDControlController = class extends ControlController {
|
|
|
13744
13886
|
async remove(args) {
|
|
13745
13887
|
const { context, params, data } = this.handlerAbilityParams(args);
|
|
13746
13888
|
if (!(data == null ? void 0 : data.length)) {
|
|
13747
|
-
throw new
|
|
13889
|
+
throw new RuntimeError34("\u672A\u9009\u4E2D\u6570\u636E");
|
|
13748
13890
|
}
|
|
13749
13891
|
if ((args == null ? void 0 : args.silent) !== true) {
|
|
13750
13892
|
const del = await ibiz.confirm.error({
|
|
@@ -13893,7 +14035,7 @@ var MDControlController = class extends ControlController {
|
|
|
13893
14035
|
(importItem) => importItem.id === dedataImportId
|
|
13894
14036
|
);
|
|
13895
14037
|
if (!dataImport) {
|
|
13896
|
-
throw new
|
|
14038
|
+
throw new RuntimeError34("\u65E0\u5BFC\u5165\u6A21\u578B\uFF01");
|
|
13897
14039
|
}
|
|
13898
14040
|
let importName = "DataImport";
|
|
13899
14041
|
if (dataImport.enableCustomized) {
|
|
@@ -13927,7 +14069,7 @@ var MDControlController = class extends ControlController {
|
|
|
13927
14069
|
// src/controller/control/app-menu/app-menu.controller.ts
|
|
13928
14070
|
import {
|
|
13929
14071
|
findRecursiveChild,
|
|
13930
|
-
RuntimeError as
|
|
14072
|
+
RuntimeError as RuntimeError35,
|
|
13931
14073
|
RuntimeModelError as RuntimeModelError26
|
|
13932
14074
|
} from "@ibiz-template/core";
|
|
13933
14075
|
var AppMenuController = class extends ControlController {
|
|
@@ -13996,7 +14138,7 @@ var AppMenuController = class extends ControlController {
|
|
|
13996
14138
|
childrenFields: ["appMenuItems"]
|
|
13997
14139
|
});
|
|
13998
14140
|
if (!menuItem) {
|
|
13999
|
-
throw new
|
|
14141
|
+
throw new RuntimeError35("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
14000
14142
|
}
|
|
14001
14143
|
this.evt.emit("onClick", {
|
|
14002
14144
|
eventArg: id,
|
|
@@ -14125,7 +14267,7 @@ var AppMenuController = class extends ControlController {
|
|
|
14125
14267
|
// src/controller/control/app-menu-icon-view/app-menu-icon-view.controller.ts
|
|
14126
14268
|
import {
|
|
14127
14269
|
findRecursiveChild as findRecursiveChild2,
|
|
14128
|
-
RuntimeError as
|
|
14270
|
+
RuntimeError as RuntimeError36,
|
|
14129
14271
|
RuntimeModelError as RuntimeModelError27
|
|
14130
14272
|
} from "@ibiz-template/core";
|
|
14131
14273
|
var AppMenuIconViewController = class extends AppMenuController {
|
|
@@ -14135,7 +14277,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
14135
14277
|
childrenFields: ["appMenuItems"]
|
|
14136
14278
|
});
|
|
14137
14279
|
if (!menuItem) {
|
|
14138
|
-
throw new
|
|
14280
|
+
throw new RuntimeError36("\u627E\u4E0D\u5230\u540D\u4E3A".concat(id, "\u7684\u83DC\u5355\u9879"));
|
|
14139
14281
|
}
|
|
14140
14282
|
this.evt.emit("onClick", {
|
|
14141
14283
|
eventArg: id,
|
|
@@ -14163,7 +14305,7 @@ var AppMenuIconViewController = class extends AppMenuController {
|
|
|
14163
14305
|
import dayjs3 from "dayjs";
|
|
14164
14306
|
|
|
14165
14307
|
// src/controller/control/calendar/calendar.service.ts
|
|
14166
|
-
import { RuntimeError as
|
|
14308
|
+
import { RuntimeError as RuntimeError37 } from "@ibiz-template/core";
|
|
14167
14309
|
var CalendarService = class extends MDControlService {
|
|
14168
14310
|
/**
|
|
14169
14311
|
* 执行查询多条数据的方法
|
|
@@ -14213,11 +14355,11 @@ var CalendarService = class extends MDControlService {
|
|
|
14213
14355
|
setCalendarConfigData(items, index) {
|
|
14214
14356
|
const { sysCalendarItems } = this.model;
|
|
14215
14357
|
if (!sysCalendarItems) {
|
|
14216
|
-
throw new
|
|
14358
|
+
throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
14217
14359
|
}
|
|
14218
14360
|
const calendarItem = sysCalendarItems[index];
|
|
14219
14361
|
if (!calendarItem) {
|
|
14220
|
-
throw new
|
|
14362
|
+
throw new RuntimeError37("\u672A\u627E\u5230\u65E5\u5386\u9879\u6A21\u578B");
|
|
14221
14363
|
}
|
|
14222
14364
|
return items.map((item) => {
|
|
14223
14365
|
return new CalendarItemData(calendarItem, item);
|
|
@@ -14431,11 +14573,11 @@ var CalendarController = class extends MDControlController {
|
|
|
14431
14573
|
};
|
|
14432
14574
|
|
|
14433
14575
|
// src/controller/control/chart/chart.controller.ts
|
|
14434
|
-
import { RuntimeError as
|
|
14576
|
+
import { RuntimeError as RuntimeError39 } from "@ibiz-template/core";
|
|
14435
14577
|
|
|
14436
14578
|
// src/controller/control/chart/generator/chart-options-generator.ts
|
|
14437
14579
|
import { mergeDeepRight as mergeDeepRight3 } from "ramda";
|
|
14438
|
-
import { RuntimeError as
|
|
14580
|
+
import { RuntimeError as RuntimeError38 } from "@ibiz-template/core";
|
|
14439
14581
|
|
|
14440
14582
|
// src/controller/control/chart/generator/line-series-generator.ts
|
|
14441
14583
|
import { RuntimeModelError as RuntimeModelError29 } from "@ibiz-template/core";
|
|
@@ -14448,7 +14590,7 @@ import isSameOrBefore from "dayjs/plugin/isSameOrBefore";
|
|
|
14448
14590
|
import quarterOfYear from "dayjs/plugin/quarterOfYear";
|
|
14449
14591
|
import weekOfYear from "dayjs/plugin/weekOfYear";
|
|
14450
14592
|
import isoWeek from "dayjs/plugin/isoWeek";
|
|
14451
|
-
import { clone as clone19, isNil as
|
|
14593
|
+
import { clone as clone19, isNil as isNil22, mergeDeepRight } from "ramda";
|
|
14452
14594
|
dayjs4.extend(minMax);
|
|
14453
14595
|
dayjs4.extend(isSameOrBefore);
|
|
14454
14596
|
dayjs4.extend(quarterOfYear);
|
|
@@ -14544,10 +14686,10 @@ var BaseSeriesGenerator = class {
|
|
|
14544
14686
|
* @return {*} {(string | undefined)}
|
|
14545
14687
|
*/
|
|
14546
14688
|
translateVal(codeListKey, val, isExclude = false) {
|
|
14547
|
-
if (
|
|
14689
|
+
if (isNil22(val)) {
|
|
14548
14690
|
return void 0;
|
|
14549
14691
|
}
|
|
14550
|
-
if (
|
|
14692
|
+
if (isNil22(codeListKey)) {
|
|
14551
14693
|
return val;
|
|
14552
14694
|
}
|
|
14553
14695
|
const codeListItems = this.chartGenerator.codeListMap.get(codeListKey);
|
|
@@ -14596,7 +14738,7 @@ var BaseSeriesGenerator = class {
|
|
|
14596
14738
|
seriesCodeListId,
|
|
14597
14739
|
item[this.groupField]
|
|
14598
14740
|
);
|
|
14599
|
-
if (
|
|
14741
|
+
if (isNil22(groupVal)) {
|
|
14600
14742
|
return;
|
|
14601
14743
|
}
|
|
14602
14744
|
group = groupVal;
|
|
@@ -15444,7 +15586,7 @@ var ChartOptionsGenerator2 = class {
|
|
|
15444
15586
|
getChartDataByParams(params) {
|
|
15445
15587
|
const generator = this.seriesGeneratorIndexMap.get(params.seriesIndex);
|
|
15446
15588
|
if (!generator) {
|
|
15447
|
-
throw new
|
|
15589
|
+
throw new RuntimeError38("\u627E\u4E0D\u5230".concat(params.seriesIndex, "\u5E8F\u5217\u7684generator\uFF01"));
|
|
15448
15590
|
}
|
|
15449
15591
|
return generator.getChartDataByParams(params);
|
|
15450
15592
|
}
|
|
@@ -15557,10 +15699,10 @@ var ChartController = class extends MDControlController {
|
|
|
15557
15699
|
*/
|
|
15558
15700
|
updateChart() {
|
|
15559
15701
|
if (!this.chart) {
|
|
15560
|
-
throw new
|
|
15702
|
+
throw new RuntimeError39("chart\u5BF9\u8C61\u6CA1\u6709\u6B63\u786E\u521D\u59CB\u5316");
|
|
15561
15703
|
}
|
|
15562
15704
|
if (!this.options) {
|
|
15563
|
-
throw new
|
|
15705
|
+
throw new RuntimeError39("options\u8FD8\u6CA1\u8BA1\u7B97");
|
|
15564
15706
|
}
|
|
15565
15707
|
this.chart.setOption(this.options, { notMerge: true });
|
|
15566
15708
|
this.resizeChart();
|
|
@@ -15598,7 +15740,7 @@ var CaptionBarController = class extends ControlController {
|
|
|
15598
15740
|
};
|
|
15599
15741
|
|
|
15600
15742
|
// src/controller/control/toolbar/toolbar.controllerr.ts
|
|
15601
|
-
import { recursiveIterate as recursiveIterate2, RuntimeError as
|
|
15743
|
+
import { recursiveIterate as recursiveIterate2, RuntimeError as RuntimeError48 } from "@ibiz-template/core";
|
|
15602
15744
|
|
|
15603
15745
|
// src/ui-action/provider/backend-ui-action-provider.ts
|
|
15604
15746
|
import { RuntimeModelError as RuntimeModelError50 } from "@ibiz-template/core";
|
|
@@ -15608,7 +15750,7 @@ import { isArray as isArray8 } from "qx-util";
|
|
|
15608
15750
|
import { RuntimeModelError as RuntimeModelError49 } from "@ibiz-template/core";
|
|
15609
15751
|
|
|
15610
15752
|
// src/ui-logic/index.ts
|
|
15611
|
-
import { RuntimeError as
|
|
15753
|
+
import { RuntimeError as RuntimeError45 } from "@ibiz-template/core";
|
|
15612
15754
|
|
|
15613
15755
|
// src/ui-logic/ui-logic.ts
|
|
15614
15756
|
import { ModelError as ModelError25, RuntimeModelError as RuntimeModelError48 } from "@ibiz-template/core";
|
|
@@ -16159,7 +16301,7 @@ var EndNode2 = class extends UILogicNode {
|
|
|
16159
16301
|
};
|
|
16160
16302
|
|
|
16161
16303
|
// src/ui-logic/ui-logic-node/prepare-js-param-node/prepare-js-param-node.ts
|
|
16162
|
-
import { ModelError as ModelError22, RuntimeError as
|
|
16304
|
+
import { ModelError as ModelError22, RuntimeError as RuntimeError40 } from "@ibiz-template/core";
|
|
16163
16305
|
import { clone as clone21 } from "ramda";
|
|
16164
16306
|
var PrepareJSParamNode = class extends UILogicNode {
|
|
16165
16307
|
async exec(ctx) {
|
|
@@ -16209,7 +16351,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
16209
16351
|
setParamValue(nodeParam, ctx) {
|
|
16210
16352
|
const { dstFieldName, dstDEUILogicParamId } = nodeParam;
|
|
16211
16353
|
if (!dstDEUILogicParamId) {
|
|
16212
|
-
throw new
|
|
16354
|
+
throw new RuntimeError40("\u6CA1\u6709\u76EE\u6807\u53C2\u6570\u5BF9\u8C61id");
|
|
16213
16355
|
}
|
|
16214
16356
|
let dstField = dstFieldName;
|
|
16215
16357
|
if (ctx.isEntityParam(dstDEUILogicParamId)) {
|
|
@@ -16326,7 +16468,7 @@ var PrepareJSParamNode = class extends UILogicNode {
|
|
|
16326
16468
|
};
|
|
16327
16469
|
|
|
16328
16470
|
// src/ui-logic/ui-logic-node/view-ctrl-invoke-node/view-ctrl-invoke-node.ts
|
|
16329
|
-
import { RuntimeError as
|
|
16471
|
+
import { RuntimeError as RuntimeError41, RuntimeModelError as RuntimeModelError36 } from "@ibiz-template/core";
|
|
16330
16472
|
import { isFunction } from "lodash-es";
|
|
16331
16473
|
var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
16332
16474
|
async exec(ctx) {
|
|
@@ -16343,14 +16485,14 @@ var ViewCtrlInvokeNode = class extends UILogicNode {
|
|
|
16343
16485
|
}
|
|
16344
16486
|
const invokeParam = ctx.params[invokeParamId];
|
|
16345
16487
|
if (!invokeParam) {
|
|
16346
|
-
throw new
|
|
16488
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u64CD\u4F5C\u53C2\u6570".concat(invokeParamId));
|
|
16347
16489
|
}
|
|
16348
16490
|
const invokeCtrl = ctx.params[invokeCtrlId];
|
|
16349
16491
|
if (!invokeCtrl) {
|
|
16350
|
-
throw new
|
|
16492
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u754C\u9762\u5BF9\u8C61".concat(invokeCtrlId));
|
|
16351
16493
|
}
|
|
16352
16494
|
if (!invokeCtrl[invokeMethod] || !isFunction(invokeCtrl[invokeMethod])) {
|
|
16353
|
-
throw new
|
|
16495
|
+
throw new RuntimeError41("\u6CA1\u6709\u627E\u5230\u8C03\u7528\u65B9\u6CD5".concat(invokeMethod));
|
|
16354
16496
|
}
|
|
16355
16497
|
await invokeCtrl[invokeMethod](invokeParam);
|
|
16356
16498
|
}
|
|
@@ -16576,16 +16718,16 @@ var DataSetNode2 = class extends UILogicNode {
|
|
|
16576
16718
|
};
|
|
16577
16719
|
|
|
16578
16720
|
// src/ui-logic/ui-logic-node/throw-exception-node/throw-exception-node.ts
|
|
16579
|
-
import { RuntimeError as
|
|
16721
|
+
import { RuntimeError as RuntimeError42 } from "@ibiz-template/core";
|
|
16580
16722
|
var ThrowExceptionNode2 = class extends UILogicNode {
|
|
16581
16723
|
async exec(_ctx) {
|
|
16582
16724
|
const { errorInfo } = this.model;
|
|
16583
|
-
throw new
|
|
16725
|
+
throw new RuntimeError42(errorInfo);
|
|
16584
16726
|
}
|
|
16585
16727
|
};
|
|
16586
16728
|
|
|
16587
16729
|
// src/ui-logic/ui-logic-node/view-ctrl-fire-event-node/view-ctrl-fire-event-node.ts
|
|
16588
|
-
import { RuntimeError as
|
|
16730
|
+
import { RuntimeError as RuntimeError43, RuntimeModelError as RuntimeModelError46 } from "@ibiz-template/core";
|
|
16589
16731
|
var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
16590
16732
|
async exec(ctx) {
|
|
16591
16733
|
ctx.isEndNode = true;
|
|
@@ -16601,18 +16743,18 @@ var ViewCtrlFireEventNode = class extends UILogicNode {
|
|
|
16601
16743
|
}
|
|
16602
16744
|
const invokeCtrl = ctx.params[fireCtrlId];
|
|
16603
16745
|
if (!invokeCtrl) {
|
|
16604
|
-
throw new
|
|
16746
|
+
throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u89E6\u53D1\u5BF9\u8C61".concat(fireCtrlId));
|
|
16605
16747
|
}
|
|
16606
16748
|
const eventParam = ctx.params[eventParamId];
|
|
16607
16749
|
if (!eventParam) {
|
|
16608
|
-
throw new
|
|
16750
|
+
throw new RuntimeError43("\u6CA1\u6709\u627E\u5230\u4E8B\u4EF6\u53C2\u6570\u5BF9\u8C61".concat(eventParamId));
|
|
16609
16751
|
}
|
|
16610
16752
|
await invokeCtrl.evt.emit(eventName, eventParam);
|
|
16611
16753
|
}
|
|
16612
16754
|
};
|
|
16613
16755
|
|
|
16614
16756
|
// src/ui-logic/ui-logic-node/execute-de-logic-node/execute-de-logic-node.ts
|
|
16615
|
-
import { RuntimeError as
|
|
16757
|
+
import { RuntimeError as RuntimeError44, RuntimeModelError as RuntimeModelError47 } from "@ibiz-template/core";
|
|
16616
16758
|
var ExecuteDELogicNode = class extends UILogicNode {
|
|
16617
16759
|
async exec(ctx) {
|
|
16618
16760
|
const {
|
|
@@ -16632,7 +16774,7 @@ var ExecuteDELogicNode = class extends UILogicNode {
|
|
|
16632
16774
|
}
|
|
16633
16775
|
const dstParam = ctx.params[dstDEUILogicParamId];
|
|
16634
16776
|
if (!dstParam) {
|
|
16635
|
-
throw new
|
|
16777
|
+
throw new RuntimeError44("\u6CA1\u6709\u627E\u5230\u4F20\u5165\u53C2\u6570".concat(dstDEUILogicParamId));
|
|
16636
16778
|
}
|
|
16637
16779
|
const result = await execDELogicById(
|
|
16638
16780
|
dstAppDELogicId,
|
|
@@ -16955,7 +17097,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
16955
17097
|
const app = ibiz.hub.getApp(parameters.context.srfappid);
|
|
16956
17098
|
const deUILogic = await app.getDEUILogic(deUILogicId, appDataEntityId);
|
|
16957
17099
|
if (!deUILogic) {
|
|
16958
|
-
throw new
|
|
17100
|
+
throw new RuntimeError45(
|
|
16959
17101
|
"\u627E\u4E0D\u5230\u5B9E\u4F53".concat(appDataEntityId, "\u7684\u754C\u9762\u903B\u8F91").concat(deUILogicId)
|
|
16960
17102
|
);
|
|
16961
17103
|
}
|
|
@@ -16968,7 +17110,7 @@ async function execUILogic(deUILogicId, appDataEntityId, parameters) {
|
|
|
16968
17110
|
}
|
|
16969
17111
|
|
|
16970
17112
|
// src/ui-action/uiaction-util.ts
|
|
16971
|
-
import { RuntimeError as
|
|
17113
|
+
import { RuntimeError as RuntimeError46 } from "@ibiz-template/core";
|
|
16972
17114
|
var UIActionUtil = class {
|
|
16973
17115
|
/**
|
|
16974
17116
|
* 执行界面行为
|
|
@@ -16983,7 +17125,7 @@ var UIActionUtil = class {
|
|
|
16983
17125
|
static async exec(actionId, params, appId2) {
|
|
16984
17126
|
const action = await getUIActionById(actionId, appId2);
|
|
16985
17127
|
if (!action) {
|
|
16986
|
-
throw new
|
|
17128
|
+
throw new RuntimeError46("\u6CA1\u627E\u5230".concat(actionId, "\u7684\u754C\u9762\u884C\u4E3A\u6A21\u578B"));
|
|
16987
17129
|
}
|
|
16988
17130
|
if (action.actionTarget === "SINGLEDATA") {
|
|
16989
17131
|
const validateResult = await params.view.call("Validate" /* VALIDATE */);
|
|
@@ -17411,7 +17553,7 @@ import {
|
|
|
17411
17553
|
StringUtil,
|
|
17412
17554
|
RuntimeModelError as RuntimeModelError51,
|
|
17413
17555
|
ModelError as ModelError26,
|
|
17414
|
-
RuntimeError as
|
|
17556
|
+
RuntimeError as RuntimeError47
|
|
17415
17557
|
} from "@ibiz-template/core";
|
|
17416
17558
|
var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
17417
17559
|
async execAction(action, args) {
|
|
@@ -17521,7 +17663,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17521
17663
|
if (resultContext && resultContext[appDataEntity.codeName.toLowerCase()]) {
|
|
17522
17664
|
requestUrl += "/".concat((_b = appDataEntity.codeName2) == null ? void 0 : _b.toLowerCase(), "/printdata/").concat(resultContext[appDataEntity.codeName.toLowerCase()]);
|
|
17523
17665
|
} else {
|
|
17524
|
-
throw new
|
|
17666
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u6570\u636E\u4E3B\u952E");
|
|
17525
17667
|
}
|
|
17526
17668
|
const res = await ibiz.net.request(requestUrl, {
|
|
17527
17669
|
method: "get",
|
|
@@ -17548,10 +17690,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17548
17690
|
window.open(link, "_blank");
|
|
17549
17691
|
}
|
|
17550
17692
|
} else {
|
|
17551
|
-
throw new
|
|
17693
|
+
throw new RuntimeError47("\u6253\u5370\u5931\u8D25");
|
|
17552
17694
|
}
|
|
17553
17695
|
} else {
|
|
17554
|
-
throw new
|
|
17696
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u6253\u5370\u9879");
|
|
17555
17697
|
}
|
|
17556
17698
|
}
|
|
17557
17699
|
/**
|
|
@@ -17602,7 +17744,7 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17602
17744
|
refreshMode: 1
|
|
17603
17745
|
};
|
|
17604
17746
|
}
|
|
17605
|
-
throw new
|
|
17747
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u5165\u9879");
|
|
17606
17748
|
}
|
|
17607
17749
|
/**
|
|
17608
17750
|
* 执行导出行为
|
|
@@ -17653,10 +17795,10 @@ var FrontUIActionProvider = class extends UIActionProviderBase {
|
|
|
17653
17795
|
URL.revokeObjectURL(elink.href);
|
|
17654
17796
|
document.body.removeChild(elink);
|
|
17655
17797
|
} else {
|
|
17656
|
-
throw new
|
|
17798
|
+
throw new RuntimeError47("\u5BFC\u51FA\u8BF7\u6C42\u5931\u8D25");
|
|
17657
17799
|
}
|
|
17658
17800
|
} else {
|
|
17659
|
-
throw new
|
|
17801
|
+
throw new RuntimeError47("\u6CA1\u6709\u627E\u5230\u5B9E\u4F53\u5BFC\u51FA\u9879");
|
|
17660
17802
|
}
|
|
17661
17803
|
}
|
|
17662
17804
|
};
|
|
@@ -17743,7 +17885,7 @@ var ToolbarController = class extends ControlController {
|
|
|
17743
17885
|
const actionId = item.uiactionId;
|
|
17744
17886
|
const uiAction = await getUIActionById(actionId, item.appId);
|
|
17745
17887
|
if (!uiAction) {
|
|
17746
|
-
throw new
|
|
17888
|
+
throw new RuntimeError48("\u6CA1\u6709\u627E\u5230\u754C\u9762\u884C\u4E3A\u6A21\u578B".concat(actionId));
|
|
17747
17889
|
}
|
|
17748
17890
|
const enableLoading = ["SYS", "BACKEND", "WFBACKEND"].includes(uiAction.uiactionMode) && uiAction.showBusyIndicator !== false;
|
|
17749
17891
|
if (enableLoading) {
|
|
@@ -18342,7 +18484,7 @@ var RawItemPortletController = class extends PortletPartController {
|
|
|
18342
18484
|
|
|
18343
18485
|
// src/controller/control/data-view/data-view.controller.ts
|
|
18344
18486
|
import { RuntimeModelError as RuntimeModelError52 } from "@ibiz-template/core";
|
|
18345
|
-
import { isNil as
|
|
18487
|
+
import { isNil as isNil23 } from "ramda";
|
|
18346
18488
|
|
|
18347
18489
|
// src/controller/control/data-view/data-view.service.ts
|
|
18348
18490
|
var DataViewControlService = class extends MDControlService {
|
|
@@ -18630,7 +18772,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
18630
18772
|
const groupMap = /* @__PURE__ */ new Map();
|
|
18631
18773
|
items.forEach((item) => {
|
|
18632
18774
|
const groupVal = item[groupAppDEFieldId];
|
|
18633
|
-
if (
|
|
18775
|
+
if (isNil23(groupVal)) {
|
|
18634
18776
|
return;
|
|
18635
18777
|
}
|
|
18636
18778
|
if (!groupMap.has(groupVal)) {
|
|
@@ -18803,7 +18945,7 @@ var DataViewControlController = class extends MDControlController {
|
|
|
18803
18945
|
import { RuntimeModelError as RuntimeModelError54 } from "@ibiz-template/core";
|
|
18804
18946
|
|
|
18805
18947
|
// src/controller/control/exp-bar/exp-bar.controller.ts
|
|
18806
|
-
import { RuntimeError as
|
|
18948
|
+
import { RuntimeError as RuntimeError49, RuntimeModelError as RuntimeModelError53 } from "@ibiz-template/core";
|
|
18807
18949
|
var ExpBarControlController = class extends ControlController {
|
|
18808
18950
|
constructor() {
|
|
18809
18951
|
super(...arguments);
|
|
@@ -19129,7 +19271,7 @@ var ExpBarControlController = class extends ControlController {
|
|
|
19129
19271
|
if (["GRID", "DATAVIEW", "LIST"].includes(((_a = this.XDataModel) == null ? void 0 : _a.controlType) || "")) {
|
|
19130
19272
|
return this.XDataModel.navAppViewId;
|
|
19131
19273
|
}
|
|
19132
|
-
throw new
|
|
19274
|
+
throw new RuntimeError49("\u591A\u8282\u70B9\u89C6\u56FE\u7531\u5B50\u7C7B\u5B9E\u73B0");
|
|
19133
19275
|
}
|
|
19134
19276
|
/**
|
|
19135
19277
|
* 获取导航视图
|
|
@@ -19272,7 +19414,7 @@ var CalendarExpBarController = class extends ExpBarControlController {
|
|
|
19272
19414
|
};
|
|
19273
19415
|
|
|
19274
19416
|
// src/controller/control/exp-bar/tree-exp-bar.controller.ts
|
|
19275
|
-
import { RuntimeError as
|
|
19417
|
+
import { RuntimeError as RuntimeError50, RuntimeModelError as RuntimeModelError55 } from "@ibiz-template/core";
|
|
19276
19418
|
var TreeExpBarController = class extends ExpBarControlController {
|
|
19277
19419
|
constructor() {
|
|
19278
19420
|
super(...arguments);
|
|
@@ -19346,7 +19488,7 @@ var TreeExpBarController = class extends ExpBarControlController {
|
|
|
19346
19488
|
const deData = node._deData || node;
|
|
19347
19489
|
const nodeModel = this.getNodeModel(node._nodeId);
|
|
19348
19490
|
if (!nodeModel) {
|
|
19349
|
-
throw new
|
|
19491
|
+
throw new RuntimeError50("\u627E\u4E0D\u5230".concat(node._nodeId, "\u7684\u8282\u70B9\u6A21\u578B"));
|
|
19350
19492
|
}
|
|
19351
19493
|
const result = this.prepareParams(nodeModel, deData, context, params);
|
|
19352
19494
|
result.context.currentSrfNav = nodeId;
|
|
@@ -19537,7 +19679,7 @@ var ChartExpBarController = class extends ExpBarControlController {
|
|
|
19537
19679
|
};
|
|
19538
19680
|
|
|
19539
19681
|
// src/controller/control/form/search-form/search-form.controller.ts
|
|
19540
|
-
import { RuntimeError as
|
|
19682
|
+
import { RuntimeError as RuntimeError51 } from "@ibiz-template/core";
|
|
19541
19683
|
|
|
19542
19684
|
// src/controller/control/form/form/form.controller.ts
|
|
19543
19685
|
import {
|
|
@@ -20108,7 +20250,7 @@ var SearchFormController = class extends FormController {
|
|
|
20108
20250
|
applyStoredFilter(index) {
|
|
20109
20251
|
const filter = this.state.storedFilters[index];
|
|
20110
20252
|
if (!filter) {
|
|
20111
|
-
throw new
|
|
20253
|
+
throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u53EF\u4EE5\u5E94\u7528\u7684\u641C\u7D22\u6761\u4EF6");
|
|
20112
20254
|
}
|
|
20113
20255
|
if (filter.data) {
|
|
20114
20256
|
Object.assign(this.data, filter.data);
|
|
@@ -20124,7 +20266,7 @@ var SearchFormController = class extends FormController {
|
|
|
20124
20266
|
async removeStoredFilter(index) {
|
|
20125
20267
|
const filter = this.state.storedFilters[index];
|
|
20126
20268
|
if (!filter) {
|
|
20127
|
-
throw new
|
|
20269
|
+
throw new RuntimeError51("\u6CA1\u6709\u627E\u5230\u4FDD\u5B58\u7684\u641C\u7D22\u6761\u4EF6");
|
|
20128
20270
|
}
|
|
20129
20271
|
this.state.storedFilters.splice(index, 1);
|
|
20130
20272
|
await this.saveConfig();
|
|
@@ -21154,30 +21296,6 @@ var FormItemController = class extends FormDetailController {
|
|
|
21154
21296
|
formDetailEventName: "onChange" /* CHANGE */
|
|
21155
21297
|
});
|
|
21156
21298
|
}
|
|
21157
|
-
/**
|
|
21158
|
-
* 设置默认值
|
|
21159
|
-
*
|
|
21160
|
-
* @author lxm
|
|
21161
|
-
* @date 2022-09-15 22:09:52
|
|
21162
|
-
* @param {boolean} isCreate 新建默认值还是更新默认值
|
|
21163
|
-
*/
|
|
21164
|
-
setDefaultValue(isCreate, data = this.data) {
|
|
21165
|
-
const { createDVT, createDV, updateDVT, updateDV } = this.model;
|
|
21166
|
-
const valueType = isCreate ? createDVT : updateDVT;
|
|
21167
|
-
const defaultValue = isCreate ? createDV : updateDV;
|
|
21168
|
-
const defaultVal = getDefaultValue(
|
|
21169
|
-
{
|
|
21170
|
-
name: this.name,
|
|
21171
|
-
valueType,
|
|
21172
|
-
defaultValue,
|
|
21173
|
-
valueFormat: this.model.valueFormat
|
|
21174
|
-
},
|
|
21175
|
-
{ data, context: this.context, params: this.params }
|
|
21176
|
-
);
|
|
21177
|
-
if (defaultVal !== void 0) {
|
|
21178
|
-
data[this.name] = defaultVal;
|
|
21179
|
-
}
|
|
21180
|
-
}
|
|
21181
21299
|
/**
|
|
21182
21300
|
* 聚焦事件
|
|
21183
21301
|
* @author lxm
|
|
@@ -21437,7 +21555,7 @@ var FormMDCtrlMDController = class extends FormMDCtrlController {
|
|
|
21437
21555
|
};
|
|
21438
21556
|
|
|
21439
21557
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.controller.ts
|
|
21440
|
-
import { RuntimeError as
|
|
21558
|
+
import { RuntimeError as RuntimeError52, RuntimeModelError as RuntimeModelError58 } from "@ibiz-template/core";
|
|
21441
21559
|
import { createUUID as createUUID11 } from "qx-util";
|
|
21442
21560
|
|
|
21443
21561
|
// src/controller/control/form/form-detail/form-mdctrl/form-mdctrl-form.state.ts
|
|
@@ -21554,7 +21672,7 @@ var FormMDCtrlFormController = class extends FormMDCtrlController {
|
|
|
21554
21672
|
async remove(id) {
|
|
21555
21673
|
const controller = this.formMap.get(id);
|
|
21556
21674
|
if (!controller) {
|
|
21557
|
-
throw new
|
|
21675
|
+
throw new RuntimeError52("\u6CA1\u6709\u627E\u5230\u5BF9\u5E94".concat(id, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
21558
21676
|
}
|
|
21559
21677
|
await controller.remove();
|
|
21560
21678
|
const index = this.state.items.findIndex((item) => item.id === id);
|
|
@@ -21856,7 +21974,7 @@ var FormTabPanelController = class extends FormDetailController {
|
|
|
21856
21974
|
import {
|
|
21857
21975
|
awaitTimeout,
|
|
21858
21976
|
mergeInLeft as mergeInLeft2,
|
|
21859
|
-
RuntimeError as
|
|
21977
|
+
RuntimeError as RuntimeError53
|
|
21860
21978
|
} from "@ibiz-template/core";
|
|
21861
21979
|
import { debounce as debounce2 } from "lodash-es";
|
|
21862
21980
|
import { createUUID as createUUID12 } from "qx-util";
|
|
@@ -22321,7 +22439,7 @@ var EditFormController = class extends FormController {
|
|
|
22321
22439
|
}
|
|
22322
22440
|
const isValid = await this.validate();
|
|
22323
22441
|
if (!isValid) {
|
|
22324
|
-
throw new
|
|
22442
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22325
22443
|
}
|
|
22326
22444
|
if (!silent) {
|
|
22327
22445
|
await this.startLoading();
|
|
@@ -22444,7 +22562,7 @@ var EditFormController = class extends FormController {
|
|
|
22444
22562
|
(item) => item.id === formItemUpdateId
|
|
22445
22563
|
);
|
|
22446
22564
|
if (!formItemUpdate) {
|
|
22447
|
-
throw new
|
|
22565
|
+
throw new RuntimeError53("\u6CA1\u627E\u5230".concat(formItemUpdateId, "\u8868\u5355\u9879\u66F4\u65B0"));
|
|
22448
22566
|
}
|
|
22449
22567
|
const {
|
|
22450
22568
|
appDEMethodId,
|
|
@@ -22503,7 +22621,7 @@ var EditFormController = class extends FormController {
|
|
|
22503
22621
|
async wfStart(args) {
|
|
22504
22622
|
const isValid = await this.validate();
|
|
22505
22623
|
if (!isValid) {
|
|
22506
|
-
throw new
|
|
22624
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22507
22625
|
}
|
|
22508
22626
|
await this.startLoading();
|
|
22509
22627
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -22532,7 +22650,7 @@ var EditFormController = class extends FormController {
|
|
|
22532
22650
|
async wfSubmit(args) {
|
|
22533
22651
|
const isValid = await this.validate();
|
|
22534
22652
|
if (!isValid) {
|
|
22535
|
-
throw new
|
|
22653
|
+
throw new RuntimeError53("\u8BF7\u68C0\u67E5\u8868\u5355\u586B\u5199\uFF01");
|
|
22536
22654
|
}
|
|
22537
22655
|
await this.startLoading();
|
|
22538
22656
|
const { context, params } = this.handlerAbilityParams(args);
|
|
@@ -22848,7 +22966,7 @@ import {
|
|
|
22848
22966
|
debounceAndAsyncMerge as debounceAndAsyncMerge2,
|
|
22849
22967
|
mergeDefaultInLeft,
|
|
22850
22968
|
recursiveIterate as recursiveIterate7,
|
|
22851
|
-
RuntimeError as
|
|
22969
|
+
RuntimeError as RuntimeError54,
|
|
22852
22970
|
RuntimeModelError as RuntimeModelError61
|
|
22853
22971
|
} from "@ibiz-template/core";
|
|
22854
22972
|
import { clone as clone25 } from "ramda";
|
|
@@ -23374,7 +23492,7 @@ var GridController = class extends MDControlController {
|
|
|
23374
23492
|
if (editShowMode === "row") {
|
|
23375
23493
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
23376
23494
|
if (editingRow) {
|
|
23377
|
-
throw new
|
|
23495
|
+
throw new RuntimeError54("\u8BF7\u5148\u5B8C\u6210\u5F53\u524D\u884C\u7F16\u8F91\u4E2D\u7684\u884C\u7684\u64CD\u4F5C");
|
|
23378
23496
|
}
|
|
23379
23497
|
}
|
|
23380
23498
|
const queryParams = { ...this.params };
|
|
@@ -23415,7 +23533,7 @@ var GridController = class extends MDControlController {
|
|
|
23415
23533
|
const isCreate = data.srfuf === 0 /* CREATE */;
|
|
23416
23534
|
const rowState = this.findRowState(data);
|
|
23417
23535
|
if (!rowState) {
|
|
23418
|
-
throw new
|
|
23536
|
+
throw new RuntimeError54("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
23419
23537
|
}
|
|
23420
23538
|
if (!rowState.modified) {
|
|
23421
23539
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -23427,7 +23545,7 @@ var GridController = class extends MDControlController {
|
|
|
23427
23545
|
}
|
|
23428
23546
|
const isValid = await this.validate(rowState);
|
|
23429
23547
|
if (!isValid) {
|
|
23430
|
-
throw new
|
|
23548
|
+
throw new RuntimeError54("\u884C\u6570\u636E\u6821\u9A8C\u4E0D\u901A\u8FC7\uFF0C\u4FDD\u5B58\u53D6\u6D88");
|
|
23431
23549
|
}
|
|
23432
23550
|
let res;
|
|
23433
23551
|
const deName = calcDeCodeNameById(this.model.appDataEntityId);
|
|
@@ -23640,7 +23758,7 @@ var GridController = class extends MDControlController {
|
|
|
23640
23758
|
}
|
|
23641
23759
|
async toggleRowEdit() {
|
|
23642
23760
|
if (!this.model.enableRowNew) {
|
|
23643
|
-
throw new
|
|
23761
|
+
throw new RuntimeError54("\u5F53\u524D\u8868\u683C\u4E0D\u652F\u6301\u884C\u7F16\u8F91\uFF0C\u65E0\u6CD5\u5207\u6362\u5F00\u542F\u884C\u7F16\u8F91");
|
|
23644
23762
|
}
|
|
23645
23763
|
this.state.rowEditOpen = !this.state.rowEditOpen;
|
|
23646
23764
|
}
|
|
@@ -23673,7 +23791,7 @@ var GridController = class extends MDControlController {
|
|
|
23673
23791
|
} else {
|
|
23674
23792
|
const editingRow = this.state.rows.find((item) => item.showRowEdit);
|
|
23675
23793
|
if (editingRow) {
|
|
23676
|
-
throw new
|
|
23794
|
+
throw new RuntimeError54("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
23677
23795
|
}
|
|
23678
23796
|
if (row.data.srfuf === 1 /* UPDATE */) {
|
|
23679
23797
|
row.cacheData = clone25(row.data);
|
|
@@ -23728,7 +23846,7 @@ var GridController = class extends MDControlController {
|
|
|
23728
23846
|
(item) => item.id === updateId
|
|
23729
23847
|
);
|
|
23730
23848
|
if (!findUpdate) {
|
|
23731
|
-
throw new
|
|
23849
|
+
throw new RuntimeError54("\u6CA1\u627E\u5230".concat(updateId, "\u7F16\u8F91\u5217\u66F4\u65B0"));
|
|
23732
23850
|
}
|
|
23733
23851
|
const { appDEMethodId, degeiupdateDetails, customCode, scriptCode } = findUpdate;
|
|
23734
23852
|
const updateItems = degeiupdateDetails.map((item) => item.id);
|
|
@@ -23884,7 +24002,7 @@ var GridController = class extends MDControlController {
|
|
|
23884
24002
|
data2 = this.getData();
|
|
23885
24003
|
}
|
|
23886
24004
|
if (data2.length === 0) {
|
|
23887
|
-
throw new
|
|
24005
|
+
throw new RuntimeError54("\u65E0\u5BFC\u51FA\u6570\u636E");
|
|
23888
24006
|
}
|
|
23889
24007
|
return formatExcelData(data2);
|
|
23890
24008
|
};
|
|
@@ -24083,7 +24201,7 @@ var GridController = class extends MDControlController {
|
|
|
24083
24201
|
import { DataTypes as DataTypes4, ModelError as ModelError29, plus as plus2 } from "@ibiz-template/core";
|
|
24084
24202
|
import dayjs5 from "dayjs";
|
|
24085
24203
|
import { debounce as debounce3 } from "lodash-es";
|
|
24086
|
-
import { clone as clone26, isNil as
|
|
24204
|
+
import { clone as clone26, isNil as isNil24 } from "ramda";
|
|
24087
24205
|
var GridFieldColumnController = class extends GridColumnController {
|
|
24088
24206
|
constructor() {
|
|
24089
24207
|
super(...arguments);
|
|
@@ -24295,11 +24413,11 @@ var GridFieldColumnController = class extends GridColumnController {
|
|
|
24295
24413
|
*/
|
|
24296
24414
|
calcFieldAgg(items) {
|
|
24297
24415
|
const { aggField, aggMode, aggValueFormat, unitName } = this.model;
|
|
24298
|
-
if (
|
|
24416
|
+
if (isNil24(aggMode) || aggMode === "NONE") {
|
|
24299
24417
|
return;
|
|
24300
24418
|
}
|
|
24301
24419
|
const fieldName = aggField || this.model.id;
|
|
24302
|
-
items = items.filter((item) => !
|
|
24420
|
+
items = items.filter((item) => !isNil24(item[fieldName]));
|
|
24303
24421
|
let aggValue;
|
|
24304
24422
|
if (this.grid.model.aggMode === "PAGE") {
|
|
24305
24423
|
switch (aggMode) {
|
|
@@ -24450,7 +24568,7 @@ var GridUAColumnController = class extends GridColumnController {
|
|
|
24450
24568
|
};
|
|
24451
24569
|
|
|
24452
24570
|
// src/controller/control/grid/grid-column/grid-field-edit-column/grid-field-edit-column.controller.ts
|
|
24453
|
-
import { RuntimeError as
|
|
24571
|
+
import { RuntimeError as RuntimeError55 } from "@ibiz-template/core";
|
|
24454
24572
|
import Schema2 from "async-validator";
|
|
24455
24573
|
import { isNilOrEmpty as isNilOrEmpty8 } from "qx-util";
|
|
24456
24574
|
var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
@@ -24590,7 +24708,7 @@ var GridFieldEditColumnController = class extends GridFieldColumnController {
|
|
|
24590
24708
|
if (requiredChanged || names.includes(this.fieldName) || names.includes(this.valueItemName)) {
|
|
24591
24709
|
const result = await this.validate(row);
|
|
24592
24710
|
if (!result) {
|
|
24593
|
-
throw new
|
|
24711
|
+
throw new RuntimeError55(
|
|
24594
24712
|
"".concat(this.editItem.codeName, "\u6821\u9A8C\u62A5\u9519,").concat(row.errors[this.fieldName])
|
|
24595
24713
|
);
|
|
24596
24714
|
}
|
|
@@ -24888,7 +25006,7 @@ var ListController = class extends MDControlController {
|
|
|
24888
25006
|
};
|
|
24889
25007
|
|
|
24890
25008
|
// src/controller/control/panel/panel/panel.controller.ts
|
|
24891
|
-
import { recursiveIterate as recursiveIterate8, RuntimeError as
|
|
25009
|
+
import { recursiveIterate as recursiveIterate8, RuntimeError as RuntimeError56 } from "@ibiz-template/core";
|
|
24892
25010
|
var PanelController = class extends ControlController {
|
|
24893
25011
|
constructor(model, context, params, ctx, container) {
|
|
24894
25012
|
super(model, context, params, ctx);
|
|
@@ -25012,7 +25130,7 @@ var PanelController = class extends ControlController {
|
|
|
25012
25130
|
var _a, _b;
|
|
25013
25131
|
const data = await this.prepareData();
|
|
25014
25132
|
if (!data) {
|
|
25015
|
-
throw new
|
|
25133
|
+
throw new RuntimeError56("\u672A\u83B7\u53D6\u5230\u9762\u677F\u6570\u636E");
|
|
25016
25134
|
}
|
|
25017
25135
|
const panelData = this.convertData(data);
|
|
25018
25136
|
(_b = (_a = this.data).destroy) == null ? void 0 : _b.call(_a);
|
|
@@ -25608,11 +25726,11 @@ var PickupViewPanelController = class extends ControlController {
|
|
|
25608
25726
|
|
|
25609
25727
|
// src/controller/control/search-bar/search-bar.controller.ts
|
|
25610
25728
|
import {
|
|
25611
|
-
RuntimeError as
|
|
25729
|
+
RuntimeError as RuntimeError57,
|
|
25612
25730
|
mergeInLeft as mergeInLeft3,
|
|
25613
25731
|
recursiveIterate as recursiveIterate9
|
|
25614
25732
|
} from "@ibiz-template/core";
|
|
25615
|
-
import { clone as clone27, isNil as
|
|
25733
|
+
import { clone as clone27, isNil as isNil25 } from "ramda";
|
|
25616
25734
|
|
|
25617
25735
|
// src/controller/control/search-bar/search-bar-filter.controller.ts
|
|
25618
25736
|
import { RuntimeModelError as RuntimeModelError63 } from "@ibiz-template/core";
|
|
@@ -26214,7 +26332,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26214
26332
|
if (this.state.query) {
|
|
26215
26333
|
params.query = this.state.query;
|
|
26216
26334
|
}
|
|
26217
|
-
if (((_a = this.state.selectedGroupItem) == null ? void 0 : _a.data) && typeof this.state.selectedGroupItem.data === "string") {
|
|
26335
|
+
if (((_a = this.state.selectedGroupItem) == null ? void 0 : _a.data) && typeof this.state.selectedGroupItem.data === "string" && !this.isBackendSearchGroup) {
|
|
26218
26336
|
const navParams = ScriptFactory.execSingleLine(
|
|
26219
26337
|
this.state.selectedGroupItem.data
|
|
26220
26338
|
);
|
|
@@ -26269,7 +26387,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26269
26387
|
let hasError = false;
|
|
26270
26388
|
recursiveIterate9(this.state.filterNodes[0], (node) => {
|
|
26271
26389
|
if (node.leaf) {
|
|
26272
|
-
if (node.field && node.valueOP && !
|
|
26390
|
+
if (node.field && node.valueOP && !isNil25(node.value)) {
|
|
26273
26391
|
hasFilter = true;
|
|
26274
26392
|
} else {
|
|
26275
26393
|
hasError = true;
|
|
@@ -26329,7 +26447,7 @@ var SearchBarController = class extends ControlController {
|
|
|
26329
26447
|
value: data.value || null
|
|
26330
26448
|
};
|
|
26331
26449
|
}
|
|
26332
|
-
throw new
|
|
26450
|
+
throw new RuntimeError57("\u65E0\u6548\u7684condtype:".concat(data.condtype));
|
|
26333
26451
|
}
|
|
26334
26452
|
/**
|
|
26335
26453
|
* 获取初始过滤项树节点数据集合
|
|
@@ -26431,11 +26549,26 @@ var SearchBarController = class extends ControlController {
|
|
|
26431
26549
|
});
|
|
26432
26550
|
if (defaultSelectedGroup) {
|
|
26433
26551
|
this.hasDefaultSelect = true;
|
|
26434
|
-
this.handleGroupClick(defaultSelectedGroup);
|
|
26435
26552
|
}
|
|
26436
26553
|
}
|
|
26437
26554
|
}
|
|
26438
26555
|
}
|
|
26556
|
+
/**
|
|
26557
|
+
* 点击默认选中
|
|
26558
|
+
* @return {*}
|
|
26559
|
+
* @author: zhujiamin
|
|
26560
|
+
* @Date: 2024-01-24 11:12:43
|
|
26561
|
+
*/
|
|
26562
|
+
setDefaultSelect() {
|
|
26563
|
+
if (this.state.searchBarGroups && this.state.searchBarGroups.length > 0) {
|
|
26564
|
+
const defaultSelectedGroup = this.state.searchBarGroups.find((group) => {
|
|
26565
|
+
return group.defaultSelect;
|
|
26566
|
+
});
|
|
26567
|
+
if (defaultSelectedGroup) {
|
|
26568
|
+
this.handleGroupClick(defaultSelectedGroup);
|
|
26569
|
+
}
|
|
26570
|
+
}
|
|
26571
|
+
}
|
|
26439
26572
|
/**
|
|
26440
26573
|
* 处理保存
|
|
26441
26574
|
* @return {*}
|
|
@@ -26743,7 +26876,7 @@ var TabExpPanelController = class extends ControlController {
|
|
|
26743
26876
|
|
|
26744
26877
|
// src/controller/control/tree/tree.controller.ts
|
|
26745
26878
|
import {
|
|
26746
|
-
RuntimeError as
|
|
26879
|
+
RuntimeError as RuntimeError58,
|
|
26747
26880
|
RuntimeModelError as RuntimeModelError64,
|
|
26748
26881
|
recursiveIterate as recursiveIterate10
|
|
26749
26882
|
} from "@ibiz-template/core";
|
|
@@ -27458,8 +27591,14 @@ var TreeController = class extends MDControlController {
|
|
|
27458
27591
|
* @param {ITreeNodeData} nodeData
|
|
27459
27592
|
*/
|
|
27460
27593
|
parseTreeNodeData(nodeData) {
|
|
27594
|
+
let tempData = null;
|
|
27595
|
+
if (nodeData._nodeType === "DE") {
|
|
27596
|
+
tempData = nodeData;
|
|
27597
|
+
} else {
|
|
27598
|
+
tempData = { ...nodeData, ...nodeData._deData || {} };
|
|
27599
|
+
}
|
|
27461
27600
|
return {
|
|
27462
|
-
data: [
|
|
27601
|
+
data: [tempData],
|
|
27463
27602
|
context: Object.assign(this.context.clone(), nodeData._context || {}),
|
|
27464
27603
|
params: { ...this.params, ...nodeData._params || {} }
|
|
27465
27604
|
};
|
|
@@ -27731,7 +27870,7 @@ var TreeController = class extends MDControlController {
|
|
|
27731
27870
|
throw new RuntimeModelError64(model, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u7F16\u8F91\u6A21\u5F0F\uFF1A\u540D\u79F0");
|
|
27732
27871
|
}
|
|
27733
27872
|
if (nodeData._nodeType !== "DE") {
|
|
27734
|
-
throw new
|
|
27873
|
+
throw new RuntimeError58("\u4E0D\u662F\u5B9E\u4F53\u6811\u8282\u70B9\u6570\u636E");
|
|
27735
27874
|
}
|
|
27736
27875
|
nodeData._text = text;
|
|
27737
27876
|
await this.updateDeNodeData([nodeData]);
|
|
@@ -27739,7 +27878,7 @@ var TreeController = class extends MDControlController {
|
|
|
27739
27878
|
};
|
|
27740
27879
|
|
|
27741
27880
|
// src/controller/control/wizard-panel/wizard-panel.controller.ts
|
|
27742
|
-
import { RuntimeError as
|
|
27881
|
+
import { RuntimeError as RuntimeError59 } from "@ibiz-template/core";
|
|
27743
27882
|
|
|
27744
27883
|
// src/controller/control/wizard-panel/wizard-panel.service.ts
|
|
27745
27884
|
var WizardPanelService = class extends ControlService {
|
|
@@ -27905,7 +28044,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27905
28044
|
const { activeFormTag } = this.state;
|
|
27906
28045
|
const controller = this.formControllers.get(activeFormTag);
|
|
27907
28046
|
if (!controller) {
|
|
27908
|
-
throw new
|
|
28047
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230".concat(activeFormTag, "\u7684\u8868\u5355\u63A7\u5236\u5668"));
|
|
27909
28048
|
}
|
|
27910
28049
|
return controller;
|
|
27911
28050
|
}
|
|
@@ -27947,7 +28086,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27947
28086
|
getWizardFormByTag(tag) {
|
|
27948
28087
|
var _a;
|
|
27949
28088
|
if (!((_a = this.model.dewizard) == null ? void 0 : _a.dewizardForms)) {
|
|
27950
|
-
throw new
|
|
28089
|
+
throw new RuntimeError59("\u6CA1\u6709\u914D\u7F6E\u5411\u5BFC\u8868\u5355\u96C6\u5408");
|
|
27951
28090
|
return;
|
|
27952
28091
|
}
|
|
27953
28092
|
const wizardForm = this.model.dewizard.dewizardForms.find(
|
|
@@ -27956,7 +28095,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
27956
28095
|
}
|
|
27957
28096
|
);
|
|
27958
28097
|
if (!wizardForm) {
|
|
27959
|
-
throw new
|
|
28098
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u6807\u8BC6\u4E3A".concat(tag, "\u7684\u5411\u5BFC\u8868\u5355"));
|
|
27960
28099
|
}
|
|
27961
28100
|
return wizardForm;
|
|
27962
28101
|
}
|
|
@@ -28027,7 +28166,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28027
28166
|
prevTag = this.tagHistory[this.tagHistory.length - 1];
|
|
28028
28167
|
}
|
|
28029
28168
|
if (!prevTag) {
|
|
28030
|
-
throw new
|
|
28169
|
+
throw new RuntimeError59("\u6CA1\u6709\u4E0A\u4E00\u4E2A\u8868\u5355");
|
|
28031
28170
|
}
|
|
28032
28171
|
this.state.activeFormTag = prevTag;
|
|
28033
28172
|
}
|
|
@@ -28063,7 +28202,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28063
28202
|
});
|
|
28064
28203
|
const nextWizardStep = wizardSteps[index + 1];
|
|
28065
28204
|
if (!nextWizardStep) {
|
|
28066
|
-
throw new
|
|
28205
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u6B65\u9AA4");
|
|
28067
28206
|
}
|
|
28068
28207
|
const nextWizardForm = this.getWizardFormByTag(nextWizardStep.stepTag);
|
|
28069
28208
|
if (nextWizardForm && nextWizardForm.formTag) {
|
|
@@ -28072,7 +28211,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28072
28211
|
}
|
|
28073
28212
|
}
|
|
28074
28213
|
if (!nextTag) {
|
|
28075
|
-
throw new
|
|
28214
|
+
throw new RuntimeError59("\u627E\u4E0D\u5230\u4E0B\u4E00\u4E2A\u5411\u5BFC\u8868\u5355");
|
|
28076
28215
|
}
|
|
28077
28216
|
this.state.activeFormTag = nextTag;
|
|
28078
28217
|
this.tagHistory.push(nextTag);
|
|
@@ -28092,7 +28231,7 @@ var WizardPanelController = class extends ControlController {
|
|
|
28092
28231
|
|
|
28093
28232
|
// src/controller/control/md-ctrl/md-ctrl.controller.ts
|
|
28094
28233
|
import { RuntimeModelError as RuntimeModelError65 } from "@ibiz-template/core";
|
|
28095
|
-
import { isNil as
|
|
28234
|
+
import { isNil as isNil26 } from "ramda";
|
|
28096
28235
|
|
|
28097
28236
|
// src/controller/control/md-ctrl/md-ctrl.service.ts
|
|
28098
28237
|
var MDCtrlService = class extends MDControlService {
|
|
@@ -28319,7 +28458,7 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28319
28458
|
const groupMap = /* @__PURE__ */ new Map();
|
|
28320
28459
|
items.forEach((item) => {
|
|
28321
28460
|
const groupVal = item[groupAppDEFieldId];
|
|
28322
|
-
if (
|
|
28461
|
+
if (isNil26(groupVal)) {
|
|
28323
28462
|
return;
|
|
28324
28463
|
}
|
|
28325
28464
|
if (!groupMap.has(groupVal)) {
|
|
@@ -28395,8 +28534,8 @@ var MDCtrlController = class extends MDControlController {
|
|
|
28395
28534
|
};
|
|
28396
28535
|
|
|
28397
28536
|
// src/controller/control/kanban/kanban.controller.ts
|
|
28398
|
-
import { RuntimeError as
|
|
28399
|
-
import { isNil as
|
|
28537
|
+
import { RuntimeError as RuntimeError60, RuntimeModelError as RuntimeModelError66 } from "@ibiz-template/core";
|
|
28538
|
+
import { isNil as isNil27 } from "ramda";
|
|
28400
28539
|
|
|
28401
28540
|
// src/controller/control/kanban/kanban.service.ts
|
|
28402
28541
|
var KanbanService = class extends DataViewControlService {
|
|
@@ -28481,12 +28620,12 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28481
28620
|
const isAsc = minorSortDir === "ASC";
|
|
28482
28621
|
items.forEach((item) => {
|
|
28483
28622
|
const sortValue = item[sortField];
|
|
28484
|
-
if (
|
|
28623
|
+
if (isNil27(sortValue)) {
|
|
28485
28624
|
item[sortField] = 0;
|
|
28486
28625
|
} else {
|
|
28487
28626
|
const toNum = Number(sortValue);
|
|
28488
28627
|
if (Number.isNaN(toNum)) {
|
|
28489
|
-
throw new
|
|
28628
|
+
throw new RuntimeError60(
|
|
28490
28629
|
"".concat(item.srfmajortext, "\u7684\u6392\u5E8F\u5C5E\u6027\u65E0\u6CD5\u8F6C\u6362\u6210\u6570\u503C")
|
|
28491
28630
|
);
|
|
28492
28631
|
}
|
|
@@ -28572,7 +28711,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28572
28711
|
}
|
|
28573
28712
|
handleDataGroup() {
|
|
28574
28713
|
if (!this.model.enableGroup || this.model.groupMode === "NONE") {
|
|
28575
|
-
throw new
|
|
28714
|
+
throw new RuntimeError60("\u770B\u677F\u90E8\u4EF6\u5FC5\u987B\u5F00\u542F\u5206\u7EC4");
|
|
28576
28715
|
}
|
|
28577
28716
|
return super.handleDataGroup();
|
|
28578
28717
|
}
|
|
@@ -28588,7 +28727,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28588
28727
|
const groupMap = /* @__PURE__ */ new Map();
|
|
28589
28728
|
items.forEach((item) => {
|
|
28590
28729
|
const groupVal = item[groupAppDEFieldId];
|
|
28591
|
-
if (
|
|
28730
|
+
if (isNil27(groupVal)) {
|
|
28592
28731
|
return;
|
|
28593
28732
|
}
|
|
28594
28733
|
if (!groupMap.has(groupVal)) {
|
|
@@ -28915,7 +29054,7 @@ var KanbanController = class extends DataViewControlController {
|
|
|
28915
29054
|
|
|
28916
29055
|
// src/controller/control/tree-grid-ex/tree-grid-ex.controller.ts
|
|
28917
29056
|
import {
|
|
28918
|
-
RuntimeError as
|
|
29057
|
+
RuntimeError as RuntimeError61,
|
|
28919
29058
|
RuntimeModelError as RuntimeModelError67,
|
|
28920
29059
|
awaitTimeout as awaitTimeout3,
|
|
28921
29060
|
recursiveIterate as recursiveIterate11
|
|
@@ -29175,11 +29314,11 @@ var TreeGridExController = class extends TreeController {
|
|
|
29175
29314
|
return;
|
|
29176
29315
|
}
|
|
29177
29316
|
if (nodeData._nodeType !== "DE") {
|
|
29178
|
-
throw new
|
|
29317
|
+
throw new RuntimeError61("\u975E\u5B9E\u4F53\u8282\u70B9\u6570\u636E\u4E0D\u80FD\u4FDD\u5B58");
|
|
29179
29318
|
}
|
|
29180
29319
|
const rowState = this.state.rows[nodeData._uuid];
|
|
29181
29320
|
if (!rowState) {
|
|
29182
|
-
throw new
|
|
29321
|
+
throw new RuntimeError61("\u884C\u6570\u636E\u4E0D\u5B58\u5728");
|
|
29183
29322
|
}
|
|
29184
29323
|
if (!rowState.modified) {
|
|
29185
29324
|
ibiz.log.debug("\u503C\u6CA1\u6709\u53D1\u751F\u6539\u53D8");
|
|
@@ -29193,7 +29332,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
29193
29332
|
const { appDataEntityId, updateAppDEActionId } = nodeModel;
|
|
29194
29333
|
const isCreate = nodeData._deData.srfuf === 0 /* CREATE */;
|
|
29195
29334
|
if (isCreate) {
|
|
29196
|
-
throw new
|
|
29335
|
+
throw new RuntimeError61("\u6682\u4E0D\u652F\u6301\u65B0\u5EFA");
|
|
29197
29336
|
}
|
|
29198
29337
|
if (!updateAppDEActionId) {
|
|
29199
29338
|
throw new RuntimeModelError67(nodeModel, "\u6811\u8282\u70B9\u6CA1\u6709\u914D\u7F6E\u66F4\u65B0\u5B9E\u4F53\u884C\u4E3A");
|
|
@@ -29353,7 +29492,7 @@ var TreeGridExController = class extends TreeController {
|
|
|
29353
29492
|
(item) => item.showRowEdit
|
|
29354
29493
|
);
|
|
29355
29494
|
if (editingRow) {
|
|
29356
|
-
throw new
|
|
29495
|
+
throw new RuntimeError61("\u540C\u65F6\u53EA\u80FD\u6709\u4E00\u884C\u5F00\u542F\u884C\u7F16\u8F91");
|
|
29357
29496
|
}
|
|
29358
29497
|
if (row.data._deData.srfuf === 1 /* UPDATE */) {
|
|
29359
29498
|
row.cacheData = clone28(row.data);
|
|
@@ -29466,7 +29605,7 @@ var TreeGridExColumnController = class {
|
|
|
29466
29605
|
// src/controller/control/tree-grid-ex/tree-grid-ex-column/tree-grid-ex-field-column/tree-grid-ex-node-column.controller.ts
|
|
29467
29606
|
import {
|
|
29468
29607
|
DataTypes as DataTypes5,
|
|
29469
|
-
RuntimeError as
|
|
29608
|
+
RuntimeError as RuntimeError62,
|
|
29470
29609
|
RuntimeModelError as RuntimeModelError68
|
|
29471
29610
|
} from "@ibiz-template/core";
|
|
29472
29611
|
import { clone as clone29 } from "ramda";
|
|
@@ -29667,7 +29806,7 @@ var TreeGridExNodeColumnController = class {
|
|
|
29667
29806
|
const valueItem = this.nodeColumn.linkValueItem || "srfkey";
|
|
29668
29807
|
const value = row.data[valueItem];
|
|
29669
29808
|
if (value == null) {
|
|
29670
|
-
throw new
|
|
29809
|
+
throw new RuntimeError62("\u672A\u5728\u884C\u6570\u636E\u4E2D\u53D6\u5230 ".concat(valueItem, " \u7684\u503C"));
|
|
29671
29810
|
}
|
|
29672
29811
|
const { linkAppViewId } = this.nodeColumn;
|
|
29673
29812
|
if (!linkAppViewId) {
|
|
@@ -30048,7 +30187,7 @@ var TreeGridService = class extends GridService {
|
|
|
30048
30187
|
};
|
|
30049
30188
|
|
|
30050
30189
|
// src/controller/control/medit-view-panel/medit-view-panel.controller.ts
|
|
30051
|
-
import { RuntimeError as
|
|
30190
|
+
import { RuntimeError as RuntimeError63 } from "@ibiz-template/core";
|
|
30052
30191
|
import { createUUID as createUUID13 } from "qx-util";
|
|
30053
30192
|
|
|
30054
30193
|
// src/controller/control/medit-view-panel/medit-view-panel.service.ts
|
|
@@ -30264,7 +30403,7 @@ var MEditViewPanelController = class extends MDControlController {
|
|
|
30264
30403
|
(item) => item.id === id
|
|
30265
30404
|
);
|
|
30266
30405
|
if (panelUiItemIndex < 0) {
|
|
30267
|
-
throw new
|
|
30406
|
+
throw new RuntimeError63("\u7F16\u8F91\u89C6\u56FE\u9762\u677F\u90E8\u4EF6UI\u6570\u636E\u4E0D\u5B58\u5728");
|
|
30268
30407
|
}
|
|
30269
30408
|
const tempUiItem = this.state.panelUiItems[panelUiItemIndex];
|
|
30270
30409
|
if (tempUiItem.id.startsWith("mockId:")) {
|
|
@@ -31346,7 +31485,7 @@ var AppHub = class {
|
|
|
31346
31485
|
this.registerAppView(appView);
|
|
31347
31486
|
return appView;
|
|
31348
31487
|
}
|
|
31349
|
-
throw new
|
|
31488
|
+
throw new RuntimeError64("\u89C6\u56FE[".concat(id, "]\u4E0D\u5B58\u5728"));
|
|
31350
31489
|
}
|
|
31351
31490
|
/**
|
|
31352
31491
|
* 根据视图模型路径,加参数重新计算视图模型
|
|
@@ -31367,7 +31506,7 @@ var AppHub = class {
|
|
|
31367
31506
|
);
|
|
31368
31507
|
return model;
|
|
31369
31508
|
}
|
|
31370
|
-
throw new
|
|
31509
|
+
throw new RuntimeError64("\u89C6\u56FE[".concat(modelPath, "]\u4E0D\u5B58\u5728"));
|
|
31371
31510
|
}
|
|
31372
31511
|
/**
|
|
31373
31512
|
* 根据应用实体代码名称查找应用视图
|
|
@@ -31398,7 +31537,7 @@ var AppHub = class {
|
|
|
31398
31537
|
this.registerAppDataEntity(entity, appId2);
|
|
31399
31538
|
return entity;
|
|
31400
31539
|
}
|
|
31401
|
-
throw new
|
|
31540
|
+
throw new RuntimeError64("\u672A\u627E\u5230\u5E94\u7528\u5B9E\u4F53[".concat(id, "]"));
|
|
31402
31541
|
}
|
|
31403
31542
|
/**
|
|
31404
31543
|
* 新建 hub 应用
|
|
@@ -31413,7 +31552,7 @@ var AppHub = class {
|
|
|
31413
31552
|
return this.appMap.get(id);
|
|
31414
31553
|
}
|
|
31415
31554
|
if (!this.modelLoaderProvider) {
|
|
31416
|
-
throw new
|
|
31555
|
+
throw new RuntimeError64("\u8BF7\u5148\u6CE8\u518C\u6A21\u578B\u52A0\u8F7D\u9002\u914D\u5668");
|
|
31417
31556
|
}
|
|
31418
31557
|
const appModel = await this.modelLoaderProvider.getApp(id);
|
|
31419
31558
|
const app = new Application(appModel);
|
|
@@ -31544,7 +31683,7 @@ var EngineFactory = class {
|
|
|
31544
31683
|
};
|
|
31545
31684
|
|
|
31546
31685
|
// src/engine/view-base.engine.ts
|
|
31547
|
-
import { RuntimeError as
|
|
31686
|
+
import { RuntimeError as RuntimeError65 } from "@ibiz-template/core";
|
|
31548
31687
|
var ViewEngineBase = class {
|
|
31549
31688
|
/**
|
|
31550
31689
|
* 构造函数在视图控制器的构造函数逻辑内部执行
|
|
@@ -31732,7 +31871,7 @@ var ViewEngineBase = class {
|
|
|
31732
31871
|
const { appDataEntityId } = this.view.model;
|
|
31733
31872
|
const { evt, context, params } = this.view;
|
|
31734
31873
|
if (!appDataEntityId) {
|
|
31735
|
-
throw new
|
|
31874
|
+
throw new RuntimeError65("\u8BE5\u89C6\u56FE\u6CA1\u6709\u5B9E\u4F53\uFF0C\u65E0\u6CD5\u52A0\u8F7D\u5B9E\u4F53\u6570\u636E");
|
|
31736
31875
|
}
|
|
31737
31876
|
const app = ibiz.hub.getApp(context.srfappid);
|
|
31738
31877
|
const res = await app.deService.exec(
|
|
@@ -31846,8 +31985,12 @@ var MDViewEngine = class extends ViewEngineBase {
|
|
|
31846
31985
|
this.reLoad();
|
|
31847
31986
|
});
|
|
31848
31987
|
}
|
|
31849
|
-
if (!this.view.state.noLoadDefault && model.loadDefault
|
|
31850
|
-
this.
|
|
31988
|
+
if (!this.view.state.noLoadDefault && model.loadDefault) {
|
|
31989
|
+
if (this.searchBar && this.searchBar.hasDefaultSelect && this.xdataControlName === "grid") {
|
|
31990
|
+
this.searchBar.setDefaultSelect();
|
|
31991
|
+
} else {
|
|
31992
|
+
this.load();
|
|
31993
|
+
}
|
|
31851
31994
|
}
|
|
31852
31995
|
}
|
|
31853
31996
|
/**
|
|
@@ -32180,7 +32323,7 @@ var GlobalUtil = class {
|
|
|
32180
32323
|
};
|
|
32181
32324
|
|
|
32182
32325
|
// src/logic-scheduler/executor/logic-executor.ts
|
|
32183
|
-
import { RuntimeError as
|
|
32326
|
+
import { RuntimeError as RuntimeError66 } from "@ibiz-template/core";
|
|
32184
32327
|
var LogicExecutor = class {
|
|
32185
32328
|
/**
|
|
32186
32329
|
* @author lxm
|
|
@@ -32201,7 +32344,7 @@ var LogicExecutor = class {
|
|
|
32201
32344
|
*/
|
|
32202
32345
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
32203
32346
|
execute(_executeParams) {
|
|
32204
|
-
throw new
|
|
32347
|
+
throw new RuntimeError66("Method not implemented.");
|
|
32205
32348
|
}
|
|
32206
32349
|
/**
|
|
32207
32350
|
* 销毁方法
|
|
@@ -32638,7 +32781,7 @@ var LogicSchedulerCenter = class {
|
|
|
32638
32781
|
};
|
|
32639
32782
|
|
|
32640
32783
|
// src/logic-scheduler/trigger/logic-trigger.ts
|
|
32641
|
-
import { RuntimeError as
|
|
32784
|
+
import { RuntimeError as RuntimeError67 } from "@ibiz-template/core";
|
|
32642
32785
|
var LogicTrigger = class {
|
|
32643
32786
|
/**
|
|
32644
32787
|
* @author lxm
|
|
@@ -32698,7 +32841,7 @@ var LogicTrigger = class {
|
|
|
32698
32841
|
if (this.executor) {
|
|
32699
32842
|
return this.executor.execute(executeParams);
|
|
32700
32843
|
}
|
|
32701
|
-
throw new
|
|
32844
|
+
throw new RuntimeError67("".concat(this.logic.id, "\u6CA1\u6709\u7ED1\u5B9Aexecutor"));
|
|
32702
32845
|
}
|
|
32703
32846
|
/**
|
|
32704
32847
|
* 销毁方法
|
|
@@ -32715,12 +32858,12 @@ var CustomTrigger = class extends LogicTrigger {
|
|
|
32715
32858
|
};
|
|
32716
32859
|
|
|
32717
32860
|
// src/logic-scheduler/trigger/item-dyna-logic-trigger.ts
|
|
32718
|
-
import { RuntimeError as
|
|
32861
|
+
import { RuntimeError as RuntimeError68 } from "@ibiz-template/core";
|
|
32719
32862
|
var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
32720
32863
|
bindExecutor(executor) {
|
|
32721
32864
|
super.bindExecutor(executor);
|
|
32722
32865
|
if (this.executor.type !== "SCRIPT") {
|
|
32723
|
-
throw new
|
|
32866
|
+
throw new RuntimeError68(
|
|
32724
32867
|
"\u9884\u5B9A\u4E49\u903B\u8F91\u7C7B\u578B".concat(this.type, "\u7684\u89E6\u53D1\u5668\u7C7B\u578B\u53EA\u80FD\u662F\u811A\u672C")
|
|
32725
32868
|
);
|
|
32726
32869
|
}
|
|
@@ -32756,7 +32899,7 @@ var ItemDynaLogicTrigger = class extends LogicTrigger {
|
|
|
32756
32899
|
};
|
|
32757
32900
|
|
|
32758
32901
|
// src/logic-scheduler/trigger/timer-trigger.ts
|
|
32759
|
-
import { RuntimeError as
|
|
32902
|
+
import { RuntimeError as RuntimeError69, RuntimeModelError as RuntimeModelError73 } from "@ibiz-template/core";
|
|
32760
32903
|
var TimerTrigger = class extends LogicTrigger {
|
|
32761
32904
|
constructor() {
|
|
32762
32905
|
super(...arguments);
|
|
@@ -32768,7 +32911,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
32768
32911
|
}
|
|
32769
32912
|
this.timer = setInterval(() => {
|
|
32770
32913
|
if (!this.scheduler.defaultParamsCb) {
|
|
32771
|
-
throw new
|
|
32914
|
+
throw new RuntimeError69("\u5B9A\u65F6\u5668\u7F3A\u5C11\u9ED8\u8BA4\u53C2\u6570\u56DE\u8C03");
|
|
32772
32915
|
}
|
|
32773
32916
|
const params = this.scheduler.defaultParamsCb();
|
|
32774
32917
|
this.executor.execute(params);
|
|
@@ -32785,7 +32928,7 @@ var TimerTrigger = class extends LogicTrigger {
|
|
|
32785
32928
|
// src/logic-scheduler/executor/app-ui-logic-executor.ts
|
|
32786
32929
|
import {
|
|
32787
32930
|
ModelError as ModelError34,
|
|
32788
|
-
RuntimeError as
|
|
32931
|
+
RuntimeError as RuntimeError70,
|
|
32789
32932
|
RuntimeModelError as RuntimeModelError74
|
|
32790
32933
|
} from "@ibiz-template/core";
|
|
32791
32934
|
import { notNilEmpty as notNilEmpty9 } from "qx-util";
|
|
@@ -32823,7 +32966,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32823
32966
|
const { context, params, ...rest } = parameters;
|
|
32824
32967
|
const { data } = parameters;
|
|
32825
32968
|
if (!(data == null ? void 0 : data[0])) {
|
|
32826
|
-
throw new
|
|
32969
|
+
throw new RuntimeError70("opendata\u6CA1\u6709\u53EF\u64CD\u4F5C\u6570\u636E\uFF01");
|
|
32827
32970
|
}
|
|
32828
32971
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
32829
32972
|
let openViewRef;
|
|
@@ -32883,7 +33026,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
32883
33026
|
const openViewRefs = appUILogic.openDataAppViews;
|
|
32884
33027
|
const findView = openViewRefs == null ? void 0 : openViewRefs.find((item) => item.refMode === formTypeValue);
|
|
32885
33028
|
if (!findView) {
|
|
32886
|
-
throw new
|
|
33029
|
+
throw new RuntimeError70(
|
|
32887
33030
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u8868\u5355\u7C7B\u578B".concat(formTypeValue, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
32888
33031
|
);
|
|
32889
33032
|
}
|
|
@@ -33008,7 +33151,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33008
33151
|
}
|
|
33009
33152
|
const selectData = (_a = result.data) == null ? void 0 : _a[0];
|
|
33010
33153
|
if (!selectData) {
|
|
33011
|
-
throw new
|
|
33154
|
+
throw new RuntimeError70("\u8BF7\u9009\u4E2D\u4E00\u6761\u6570\u636E");
|
|
33012
33155
|
}
|
|
33013
33156
|
const indexType = selectData.srfkey;
|
|
33014
33157
|
const findView = newDataAppViews == null ? void 0 : newDataAppViews.find(
|
|
@@ -33018,7 +33161,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33018
33161
|
}
|
|
33019
33162
|
);
|
|
33020
33163
|
if (!findView) {
|
|
33021
|
-
throw new
|
|
33164
|
+
throw new RuntimeError70(
|
|
33022
33165
|
"\u6CA1\u6709\u627E\u5230\u4E0E\u7D22\u5F15\u7C7B\u578B".concat(indexType, "\u76F8\u5173\u7684\u5B9E\u4F53\u7684\u7F16\u8F91\u89C6\u56FE")
|
|
33023
33166
|
);
|
|
33024
33167
|
}
|
|
@@ -33055,7 +33198,7 @@ var AppUILogicExecutor = class extends LogicExecutor {
|
|
|
33055
33198
|
}
|
|
33056
33199
|
});
|
|
33057
33200
|
if (pickParentFieldName === void 0) {
|
|
33058
|
-
throw new
|
|
33201
|
+
throw new RuntimeError70(
|
|
33059
33202
|
"\u6CA1\u6709\u627E\u5230".concat(pickParentDeName, "\u5728\u5F53\u524D\u5B9E\u4F53\u7684\u5916\u952E\u5C5E\u6027")
|
|
33060
33203
|
);
|
|
33061
33204
|
}
|
|
@@ -33222,6 +33365,7 @@ function install2() {
|
|
|
33222
33365
|
ibiz2.config = new GlobalConfig();
|
|
33223
33366
|
ibiz2.auth = new V7AuthService();
|
|
33224
33367
|
ibiz2.asyncAction = new AsyncActionService();
|
|
33368
|
+
ibiz2.internalMessage = new InternalMessageService();
|
|
33225
33369
|
ibiz2.engine = new EngineFactory();
|
|
33226
33370
|
ibiz2.uiDomainManager = new UIDomainManager();
|
|
33227
33371
|
installCommand();
|
|
@@ -33429,6 +33573,8 @@ export {
|
|
|
33429
33573
|
HandlebarsUtil,
|
|
33430
33574
|
HtmlPortletController,
|
|
33431
33575
|
HubController,
|
|
33576
|
+
INTERNAL_MESSAGE_PROVIDER_PREFIX,
|
|
33577
|
+
InternalMessageService,
|
|
33432
33578
|
KanbanController,
|
|
33433
33579
|
KanbanService,
|
|
33434
33580
|
LayoutPanelUtil,
|
|
@@ -33479,6 +33625,7 @@ export {
|
|
|
33479
33625
|
RemotePluginItem,
|
|
33480
33626
|
ReportPanelController,
|
|
33481
33627
|
ReportPanelService,
|
|
33628
|
+
RouteConst,
|
|
33482
33629
|
ScriptFactory,
|
|
33483
33630
|
ScriptFunction,
|
|
33484
33631
|
SearchBarController,
|
|
@@ -33589,6 +33736,7 @@ export {
|
|
|
33589
33736
|
getEntitySchema,
|
|
33590
33737
|
getFormDetailProvider,
|
|
33591
33738
|
getGridColumnProvider,
|
|
33739
|
+
getInternalMessageProvider,
|
|
33592
33740
|
getMatchResPath,
|
|
33593
33741
|
getOriginData,
|
|
33594
33742
|
getPFPlugin,
|
|
@@ -33631,6 +33779,7 @@ export {
|
|
|
33631
33779
|
registerEditorProvider,
|
|
33632
33780
|
registerFormDetailProvider,
|
|
33633
33781
|
registerGridColumnProvider,
|
|
33782
|
+
registerInternalMessageProvider,
|
|
33634
33783
|
registerPanelItemProvider,
|
|
33635
33784
|
registerPlatformProvider,
|
|
33636
33785
|
registerPortletProvider,
|