@ibiz-template/vue3-components 0.6.15 → 0.6.16

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.
Files changed (50) hide show
  1. package/dist/index-l_9Kqet_.js +4 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/dist/{xlsx-util-hUT-k6qF.js → xlsx-util-94ZSfJEl.js} +1 -1
  5. package/es/common/coop-alert/coop-alert.css +1 -0
  6. package/es/common/coop-alert/coop-alert.d.ts +41 -0
  7. package/es/common/coop-alert/coop-alert.mjs +41 -0
  8. package/es/common/index.mjs +2 -0
  9. package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +7 -0
  10. package/es/control/toolbar/toolbar.css +1 -1
  11. package/es/control/toolbar/toolbar.mjs +37 -21
  12. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.d.ts +1 -0
  13. package/es/editor/text-box/input/input.mjs +3 -20
  14. package/es/panel-component/coop-pos/coop-pos.controller.d.ts +15 -0
  15. package/es/panel-component/coop-pos/coop-pos.controller.mjs +24 -0
  16. package/es/panel-component/coop-pos/coop-pos.css +1 -0
  17. package/es/panel-component/coop-pos/coop-pos.d.ts +25 -0
  18. package/es/panel-component/coop-pos/coop-pos.mjs +35 -0
  19. package/es/panel-component/coop-pos/coop-pos.provider.d.ts +7 -0
  20. package/es/panel-component/coop-pos/coop-pos.provider.mjs +21 -0
  21. package/es/panel-component/coop-pos/coop-pos.state.d.ts +19 -0
  22. package/es/panel-component/coop-pos/coop-pos.state.mjs +33 -0
  23. package/es/panel-component/coop-pos/index.d.ts +26 -0
  24. package/es/panel-component/coop-pos/index.mjs +14 -0
  25. package/es/panel-component/index.mjs +2 -0
  26. package/es/panel-component/nav-tabs/index.d.ts +1 -1
  27. package/es/panel-component/panel-button/index.d.ts +1 -1
  28. package/es/panel-component/panel-button/panel-button.d.ts +1 -1
  29. package/es/panel-component/panel-remember-me/index.mjs +4 -0
  30. package/es/view-engine/edit-view.engine.d.ts +9 -1
  31. package/es/view-engine/edit-view.engine.mjs +78 -6
  32. package/es/web-app/App.css +1 -1
  33. package/lib/common/coop-alert/coop-alert.cjs +43 -0
  34. package/lib/common/coop-alert/coop-alert.css +1 -0
  35. package/lib/common/index.cjs +2 -0
  36. package/lib/control/toolbar/toolbar.cjs +37 -21
  37. package/lib/control/toolbar/toolbar.css +1 -1
  38. package/lib/editor/text-box/input/input.cjs +3 -20
  39. package/lib/panel-component/coop-pos/coop-pos.cjs +37 -0
  40. package/lib/panel-component/coop-pos/coop-pos.controller.cjs +26 -0
  41. package/lib/panel-component/coop-pos/coop-pos.css +1 -0
  42. package/lib/panel-component/coop-pos/coop-pos.provider.cjs +23 -0
  43. package/lib/panel-component/coop-pos/coop-pos.state.cjs +35 -0
  44. package/lib/panel-component/coop-pos/index.cjs +21 -0
  45. package/lib/panel-component/index.cjs +2 -0
  46. package/lib/panel-component/panel-remember-me/index.cjs +4 -0
  47. package/lib/view-engine/edit-view.engine.cjs +78 -6
  48. package/lib/web-app/App.css +1 -1
  49. package/package.json +5 -5
  50. package/dist/index-3K521QVy.js +0 -4
@@ -18,6 +18,10 @@ const IBizPanelRememberMe = vue3Util.withInstall(
18
18
  "CONTAINER_REMEMBER_ME",
19
19
  () => new panelRememberMe_provider.PanelRememberMeProvider()
20
20
  );
21
+ runtime.registerPanelItemProvider(
22
+ "FIELD_AUTH_REMEMBERME",
23
+ () => new panelRememberMe_provider.PanelRememberMeProvider()
24
+ );
21
25
  }
22
26
  );
23
27
 
@@ -24,6 +24,10 @@ class EditViewEngine extends runtime.ViewEngineBase {
24
24
  get form() {
25
25
  return this.view.getController("form");
26
26
  }
27
+ get coopPos() {
28
+ var _a;
29
+ return (_a = this.view.layoutPanel) == null ? void 0 : _a.panelItems.coop_pos;
30
+ }
27
31
  init() {
28
32
  super.init();
29
33
  if (this.view.model.multiFormMode === 1 && this.view.params.srfdatatype) {
@@ -156,6 +160,10 @@ class EditViewEngine extends runtime.ViewEngineBase {
156
160
  await this.wfStart();
157
161
  return null;
158
162
  }
163
+ if (key === runtime.SysUIActionTag.FIRST_RECORD || key === runtime.SysUIActionTag.LAST_RECORD || key === runtime.SysUIActionTag.PREV_RECORD || key === runtime.SysUIActionTag.NEXT_RECORD) {
164
+ await this.changeRecord(key);
165
+ return null;
166
+ }
159
167
  if (key === runtime.SysUIActionTag.VIEW_WF_STEP) {
160
168
  await this.wfSubmit();
161
169
  return null;
@@ -303,12 +311,19 @@ class EditViewEngine extends runtime.ViewEngineBase {
303
311
  default:
304
312
  break;
305
313
  }
306
- ibiz.message.notice({
307
- message: "".concat(modes.includes("DISPLAYOPPERSON") ? data.username : "\u6709\u4EBA", " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo),
308
- showClose: true,
309
- duration: 3,
310
- styleType: "alert"
311
- });
314
+ const message = "".concat(modes.includes("DISPLAYOPPERSON") ? data.username : "\u6709\u4EBA", " ").concat(actionMsg, " ").concat(this.view.state.caption, "-").concat(dataInfo);
315
+ if (this.coopPos) {
316
+ this.coopPos.updateMessage({
317
+ title: message
318
+ });
319
+ } else {
320
+ ibiz.message.notice({
321
+ message,
322
+ showClose: true,
323
+ duration: 3,
324
+ styleType: "alert"
325
+ });
326
+ }
312
327
  if (hasOpenConfirm === false && data.action === "UPDATE" && modes.includes("NOTICERELOAD")) {
313
328
  hasOpenConfirm = true;
314
329
  const isReload = await this.reloadConfirm();
@@ -394,6 +409,63 @@ class EditViewEngine extends runtime.ViewEngineBase {
394
409
  }
395
410
  return result;
396
411
  }
412
+ /**
413
+ * 变更当前页面的数据
414
+ * @author lxm
415
+ * @date 2024-04-01 01:11:58
416
+ * @param {string} type
417
+ */
418
+ async changeRecord(type) {
419
+ const viewId = this.view.context.srfpaginationviewid;
420
+ if (!viewId) {
421
+ throw new core.RuntimeError("context\u7F3A\u5C11srfpaginationviewid");
422
+ }
423
+ const view = ibiz.util.viewStack.getView(viewId);
424
+ if (!view) {
425
+ throw new core.RuntimeError("\u627E\u4E0D\u5230id\u662F".concat(viewId, "\u7684\u89C6\u56FE"));
426
+ }
427
+ const items = await view.call(runtime.ViewCallTag.GET_ALL_DATA);
428
+ const index = items.findIndex(
429
+ (item) => item.srfkey === this.form.state.data.srfkey
430
+ );
431
+ let targetItem;
432
+ switch (type) {
433
+ case runtime.SysUIActionTag.FIRST_RECORD:
434
+ if (index === 0) {
435
+ ibiz.message.info("\u5DF2\u7ECF\u662F\u7B2C\u4E00\u6761\u6570\u636E\u4E86");
436
+ return;
437
+ }
438
+ targetItem = items[0];
439
+ break;
440
+ case runtime.SysUIActionTag.LAST_RECORD:
441
+ if (index === items.length - 1) {
442
+ ibiz.message.info("\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u6761\u6570\u636E\u4E86");
443
+ return;
444
+ }
445
+ targetItem = items[items.length - 1];
446
+ break;
447
+ case runtime.SysUIActionTag.PREV_RECORD:
448
+ if (index === 0) {
449
+ ibiz.message.info("\u5DF2\u7ECF\u662F\u7B2C\u4E00\u6761\u6570\u636E\u4E86");
450
+ return;
451
+ }
452
+ targetItem = items[index - 1];
453
+ break;
454
+ case runtime.SysUIActionTag.NEXT_RECORD:
455
+ if (index === items.length - 1) {
456
+ ibiz.message.info("\u5DF2\u7ECF\u662F\u6700\u540E\u4E00\u6761\u6570\u636E\u4E86");
457
+ return;
458
+ }
459
+ targetItem = items[index + 1];
460
+ break;
461
+ default:
462
+ break;
463
+ }
464
+ if (targetItem) {
465
+ this.view.context[this.deName] = targetItem.srfkey;
466
+ this.load();
467
+ }
468
+ }
397
469
  }
398
470
 
399
471
  exports.EditViewEngine = EditViewEngine;
@@ -1 +1 @@
1
- #app{width:100vw;height:100vh;background-color:var(--ibiz-color-bg-0)}body,html{padding:0;margin:0;border:0}.ibiz-message--alert.el-message{--el-message-padding:8px 16px}.ibiz-message--alert.el-message .el-message__content,.ibiz-message--alert.el-message .el-message__icon{color:inherit}.ibiz-message--alert.el-message .el-message__closeBtn{color:#a8abb2}.ibiz-message--alert .el-message__content{line-height:24px}.ibiz-message--alert.el-message--info{color:#909399;background-color:#f4f4f5}.ibiz-message--alert.el-message--success{color:#67c23a;background-color:#f0f9eb}.ibiz-message--alert.el-message--warning{color:#e6a23c;background-color:#fdf6ec}.ibiz-message--alert.el-message--error{color:#f56c6c;background-color:#fef0f0}
1
+ #app{width:100vw;height:100vh;background-color:var(--ibiz-color-bg-0)}body,html{padding:0;margin:0;border:0}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.6.15",
3
+ "version": "0.6.16",
4
4
  "description": "使用 rollup 编译 vue 组件或者 jsx",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,12 +30,12 @@
30
30
  "@floating-ui/dom": "^1.5.3",
31
31
  "@ibiz-template-plugin/ai-chat": "^0.0.1",
32
32
  "@ibiz-template-plugin/gantt": "0.1.3-alpha.46",
33
- "@ibiz-template/core": "0.6.16",
33
+ "@ibiz-template/core": "0.6.17",
34
34
  "@ibiz-template/devtool": "0.0.1-dev.6",
35
- "@ibiz-template/model-helper": "0.6.16",
36
- "@ibiz-template/runtime": "0.6.16",
35
+ "@ibiz-template/model-helper": "0.6.17",
36
+ "@ibiz-template/runtime": "0.6.17",
37
37
  "@ibiz-template/theme": "^0.6.0",
38
- "@ibiz-template/vue3-util": "0.6.16",
38
+ "@ibiz-template/vue3-util": "0.6.17",
39
39
  "@ibiz-template/web-theme": "^1.1.14",
40
40
  "@ibiz/model-core": "^0.1.19",
41
41
  "@imengyu/vue3-context-menu": "^1.3.5",