@ibiz-template/vue3-components 0.7.41-alpha.26 → 0.7.41-alpha.27

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 (80) hide show
  1. package/dist/index-QWKV4tFl.js +11 -0
  2. package/dist/index.min.css +1 -1
  3. package/dist/index.system.min.js +1 -1
  4. package/dist/{wang-editor-3ZSVyG8N.js → wang-editor-cE7s2d6m.js} +1 -1
  5. package/dist/{xlsx-util-Ia8Tdyju.js → xlsx-util-hFsCMRuN.js} +1 -1
  6. package/es/common/action-toolbar/action-toolbar.css +1 -1
  7. package/es/common/action-toolbar/action-toolbar.d.ts +1 -0
  8. package/es/common/action-toolbar/action-toolbar.mjs +22 -13
  9. package/es/common/button-list/button-list.css +1 -1
  10. package/es/common/button-list/button-list.mjs +7 -4
  11. package/es/common/rawitem/rawitem.mjs +5 -1
  12. package/es/control/app-menu/app-menu.css +1 -1
  13. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  14. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +6 -1
  15. package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +47 -9
  16. package/es/control/drtab/drtab-control.util.mjs +1 -1
  17. package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +3 -3
  18. package/es/control/form/form-detail/form-page/form-page-item/form-page.item.mjs +3 -3
  19. package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +3 -3
  20. package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +6 -5
  21. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +4 -1
  22. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +4 -1
  23. package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
  24. package/es/locale/en/index.d.ts +1 -0
  25. package/es/locale/zh-CN/index.d.ts +1 -0
  26. package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +2 -2
  27. package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.mjs +2 -2
  28. package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +3 -3
  29. package/es/panel-component/panel-tab-panel/panel-tab-panel.state.mjs +2 -2
  30. package/es/panel-component/panel-view-content/index.d.ts +2 -2
  31. package/es/panel-component/panel-view-content/panel-view-content.d.ts +3 -3
  32. package/es/panel-component/panel-view-content/panel-view-content.mjs +5 -5
  33. package/es/panel-component/panel-view-content/panel-view-content.provider.d.ts +2 -2
  34. package/es/panel-component/panel-view-content/panel-view-content.provider.mjs +2 -2
  35. package/es/panel-component/panel-view-header/index.d.ts +2 -2
  36. package/es/panel-component/panel-view-header/panel-view-header.d.ts +3 -3
  37. package/es/panel-component/panel-view-header/panel-view-header.mjs +5 -5
  38. package/es/panel-component/panel-view-header/panel-view-header.provider.d.ts +2 -2
  39. package/es/panel-component/panel-view-header/panel-view-header.provider.mjs +2 -2
  40. package/es/panel-component/split-container/split-container.controller.d.ts +3 -3
  41. package/es/panel-component/split-container/split-container.controller.mjs +2 -2
  42. package/es/panel-component/split-container/split-container.mjs +3 -3
  43. package/es/panel-component/split-container/split-container.state.d.ts +3 -3
  44. package/es/panel-component/split-container/split-container.state.mjs +2 -2
  45. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  46. package/es/view-engine/md-custom-view.engine.d.ts +23 -1
  47. package/es/view-engine/md-custom-view.engine.mjs +69 -0
  48. package/es/view-engine/mpickup-view-engine.mjs +1 -1
  49. package/lib/common/action-toolbar/action-toolbar.cjs +22 -13
  50. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  51. package/lib/common/button-list/button-list.cjs +7 -4
  52. package/lib/common/button-list/button-list.css +1 -1
  53. package/lib/common/rawitem/rawitem.cjs +5 -1
  54. package/lib/control/app-menu/app-menu.css +1 -1
  55. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +45 -7
  56. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  57. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  58. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +2 -2
  59. package/lib/control/form/form-detail/form-page/form-page-item/form-page.item.cjs +2 -2
  60. package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +2 -2
  61. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
  62. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +4 -1
  63. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +4 -1
  64. package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
  65. package/lib/panel-component/panel-tab-panel/panel-tab-panel.controller.cjs +1 -1
  66. package/lib/panel-component/panel-tab-panel/panel-tab-panel.state.cjs +1 -1
  67. package/lib/panel-component/panel-view-content/panel-view-content.cjs +3 -3
  68. package/lib/panel-component/panel-view-content/panel-view-content.provider.cjs +1 -1
  69. package/lib/panel-component/panel-view-header/panel-view-header.cjs +3 -3
  70. package/lib/panel-component/panel-view-header/panel-view-header.provider.cjs +1 -1
  71. package/lib/panel-component/split-container/split-container.cjs +2 -2
  72. package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
  73. package/lib/panel-component/split-container/split-container.state.cjs +1 -1
  74. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  75. package/lib/view-engine/md-custom-view.engine.cjs +69 -0
  76. package/lib/view-engine/mpickup-view-engine.cjs +1 -1
  77. package/package.json +6 -6
  78. package/dist/index-i-UdTGjq.js +0 -11
  79. /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.23_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
  80. /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.23_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.26_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
@@ -22,6 +22,16 @@ class MDCustomViewEngine extends runtime.ViewEngineBase {
22
22
  */
23
23
  __publicField(this, "controls", []);
24
24
  }
25
+ /**
26
+ * @description 获取分页搜索视图上移的搜索栏控制器
27
+ * @readonly
28
+ * @protected
29
+ * @type {ISearchBarController}
30
+ * @memberof MDCustomViewEngine
31
+ */
32
+ get tabSearchBar() {
33
+ return this.view.getController("tabsearchbar");
34
+ }
25
35
  /**
26
36
  * 视图created生命周期执行逻辑
27
37
  *
@@ -42,6 +52,26 @@ class MDCustomViewEngine extends runtime.ViewEngineBase {
42
52
  async onMounted() {
43
53
  await super.onMounted();
44
54
  this.calcToolbarState = this.calcToolbarState.bind(this);
55
+ if (this.searchForm) {
56
+ this.searchForm.evt.on("onSearch", () => {
57
+ this.reLoad();
58
+ });
59
+ }
60
+ if (this.searchBar) {
61
+ this.searchBar.evt.on("onSearch", () => {
62
+ this.reLoad();
63
+ });
64
+ }
65
+ if (this.tabSearchForm) {
66
+ this.tabSearchForm.evt.on("onSearch", () => {
67
+ this.reLoad();
68
+ });
69
+ }
70
+ if (this.tabSearchBar) {
71
+ this.tabSearchBar.evt.on("onSearch", () => {
72
+ this.reLoad();
73
+ });
74
+ }
45
75
  this.controls.forEach((ctrl) => {
46
76
  const control = this.view.getController(
47
77
  ctrl.name
@@ -58,8 +88,33 @@ class MDCustomViewEngine extends runtime.ViewEngineBase {
58
88
  "onRefreshSuccess",
59
89
  (evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
60
90
  );
91
+ control == null ? void 0 : control.evt.on("onBeforeLoad", () => {
92
+ control.state.searchParams = this.getSearchParams();
93
+ });
61
94
  });
62
95
  }
96
+ /**
97
+ * @description 获取搜索相关的查询参数
98
+ * @protected
99
+ * @returns {*} {IParams}
100
+ * @memberof MDCustomViewEngine
101
+ */
102
+ getSearchParams() {
103
+ const params = {};
104
+ if (this.searchForm) {
105
+ Object.assign(params, this.searchForm.getFilterParams());
106
+ }
107
+ if (this.searchBar) {
108
+ Object.assign(params, this.searchBar.getFilterParams());
109
+ }
110
+ if (this.tabSearchForm) {
111
+ Object.assign(params, this.tabSearchForm.getFilterParams());
112
+ }
113
+ if (this.tabSearchBar) {
114
+ Object.assign(params, this.tabSearchBar.getFilterParams());
115
+ }
116
+ return params;
117
+ }
63
118
  /**
64
119
  * @description 初始化部件激活模式
65
120
  * @memberof MDCustomViewEngine
@@ -108,6 +163,20 @@ class MDCustomViewEngine extends runtime.ViewEngineBase {
108
163
  }
109
164
  return super.call(key, args);
110
165
  }
166
+ /**
167
+ * @description 视图重新加载
168
+ * @protected
169
+ * @returns {*} {Promise<void>}
170
+ * @memberof MDCustomViewEngine
171
+ */
172
+ async reLoad() {
173
+ if (this.view.state.xdatacontrolname) {
174
+ const xDataCtrl = this.view.getController(
175
+ this.view.state.xdatacontrolname
176
+ );
177
+ await (xDataCtrl == null ? void 0 : xDataCtrl.load({ isInitialLoad: true }));
178
+ }
179
+ }
111
180
  /**
112
181
  * @description 刷新数据
113
182
  * @returns {*} {Promise<void>}
@@ -19,7 +19,7 @@ class MPickupViewEngine extends pickupView_engine.PickupViewEngine {
19
19
  * @type {boolean}
20
20
  * @memberof MPickupViewEngine
21
21
  */
22
- __publicField(this, "checkStrictly", true);
22
+ __publicField(this, "checkStrictly", false);
23
23
  }
24
24
  /**
25
25
  * 简单列表控制器
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ibiz-template/vue3-components",
3
- "version": "0.7.41-alpha.26",
3
+ "version": "0.7.41-alpha.27",
4
4
  "description": "web端组件库(vue3)",
5
5
  "main": "lib/index.cjs",
6
6
  "module": "es/index.mjs",
@@ -30,16 +30,16 @@
30
30
  "dependencies": {
31
31
  "@amap/amap-jsapi-loader": "^1.0.1",
32
32
  "@floating-ui/dom": "^1.5.3",
33
- "@ibiz-template-plugin/ai-chat": "^0.0.29",
33
+ "@ibiz-template-plugin/ai-chat": "^0.0.30",
34
34
  "@ibiz-template-plugin/gantt": "0.1.8-alpha.316",
35
35
  "@ibiz-template-plugin/bi-report": "0.0.27",
36
36
  "@ibiz-template-plugin/data-view": "0.0.5",
37
- "@ibiz-template/core": "0.7.41-alpha.23",
37
+ "@ibiz-template/core": "0.7.41-alpha.26",
38
38
  "@ibiz-template/devtool": "0.0.11",
39
- "@ibiz-template/model-helper": "0.7.41-alpha.25",
40
- "@ibiz-template/runtime": "0.7.41-alpha.25",
39
+ "@ibiz-template/model-helper": "0.7.41-alpha.27",
40
+ "@ibiz-template/runtime": "0.7.41-alpha.27",
41
41
  "@ibiz-template/theme": "0.7.39",
42
- "@ibiz-template/vue3-util": "0.7.41-alpha.25",
42
+ "@ibiz-template/vue3-util": "0.7.41-alpha.27",
43
43
  "@ibiz-template/web-theme": "3.8.0",
44
44
  "@ibiz/model-core": "^0.1.81",
45
45
  "@imengyu/vue3-context-menu": "^1.3.5",