@ibiz-template/vue3-components 0.7.41-alpha.25 → 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 (86) 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-8Ebtgl0o.js → wang-editor-cE7s2d6m.js} +1 -1
  5. package/dist/{xlsx-util-_DMqcSDQ.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/control/tree-grid/tree-grid.mjs +16 -2
  22. package/es/control/tree-grid-ex/tree-grid-ex.mjs +26 -5
  23. package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +4 -1
  24. package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +4 -1
  25. package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
  26. package/es/locale/en/index.d.ts +1 -0
  27. package/es/locale/zh-CN/index.d.ts +1 -0
  28. package/es/panel-component/app-switch/app-switch.controller.mjs +3 -0
  29. package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +2 -2
  30. package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.mjs +2 -2
  31. package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +3 -3
  32. package/es/panel-component/panel-tab-panel/panel-tab-panel.state.mjs +2 -2
  33. package/es/panel-component/panel-view-content/index.d.ts +2 -2
  34. package/es/panel-component/panel-view-content/panel-view-content.d.ts +3 -3
  35. package/es/panel-component/panel-view-content/panel-view-content.mjs +5 -5
  36. package/es/panel-component/panel-view-content/panel-view-content.provider.d.ts +2 -2
  37. package/es/panel-component/panel-view-content/panel-view-content.provider.mjs +2 -2
  38. package/es/panel-component/panel-view-header/index.d.ts +2 -2
  39. package/es/panel-component/panel-view-header/panel-view-header.d.ts +3 -3
  40. package/es/panel-component/panel-view-header/panel-view-header.mjs +5 -5
  41. package/es/panel-component/panel-view-header/panel-view-header.provider.d.ts +2 -2
  42. package/es/panel-component/panel-view-header/panel-view-header.provider.mjs +2 -2
  43. package/es/panel-component/split-container/split-container.controller.d.ts +3 -3
  44. package/es/panel-component/split-container/split-container.controller.mjs +2 -2
  45. package/es/panel-component/split-container/split-container.mjs +3 -3
  46. package/es/panel-component/split-container/split-container.state.d.ts +3 -3
  47. package/es/panel-component/split-container/split-container.state.mjs +2 -2
  48. package/es/util/fullscreen/fullscreen-util.mjs +1 -1
  49. package/es/view-engine/md-custom-view.engine.d.ts +23 -1
  50. package/es/view-engine/md-custom-view.engine.mjs +69 -0
  51. package/es/view-engine/mpickup-view-engine.mjs +1 -1
  52. package/lib/common/action-toolbar/action-toolbar.cjs +22 -13
  53. package/lib/common/action-toolbar/action-toolbar.css +1 -1
  54. package/lib/common/button-list/button-list.cjs +7 -4
  55. package/lib/common/button-list/button-list.css +1 -1
  56. package/lib/common/rawitem/rawitem.cjs +5 -1
  57. package/lib/control/app-menu/app-menu.css +1 -1
  58. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +45 -7
  59. package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
  60. package/lib/control/drtab/drtab-control.util.cjs +1 -1
  61. package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +2 -2
  62. package/lib/control/form/form-detail/form-page/form-page-item/form-page.item.cjs +2 -2
  63. package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +2 -2
  64. package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
  65. package/lib/control/tree-grid/tree-grid.cjs +15 -1
  66. package/lib/control/tree-grid-ex/tree-grid-ex.cjs +25 -4
  67. package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +4 -1
  68. package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +4 -1
  69. package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
  70. package/lib/panel-component/app-switch/app-switch.controller.cjs +3 -0
  71. package/lib/panel-component/panel-tab-panel/panel-tab-panel.controller.cjs +1 -1
  72. package/lib/panel-component/panel-tab-panel/panel-tab-panel.state.cjs +1 -1
  73. package/lib/panel-component/panel-view-content/panel-view-content.cjs +3 -3
  74. package/lib/panel-component/panel-view-content/panel-view-content.provider.cjs +1 -1
  75. package/lib/panel-component/panel-view-header/panel-view-header.cjs +3 -3
  76. package/lib/panel-component/panel-view-header/panel-view-header.provider.cjs +1 -1
  77. package/lib/panel-component/split-container/split-container.cjs +2 -2
  78. package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
  79. package/lib/panel-component/split-container/split-container.state.cjs +1 -1
  80. package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
  81. package/lib/view-engine/md-custom-view.engine.cjs +69 -0
  82. package/lib/view-engine/mpickup-view-engine.cjs +1 -1
  83. package/package.json +6 -6
  84. package/dist/index-8V2VOkJ3.js +0 -11
  85. /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
  86. /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
@@ -127,7 +127,10 @@ const IBizPickerEmbedView = /* @__PURE__ */ vue.defineComponent({
127
127
  "class": this.ns.b("view")
128
128
  }, [vue.h(viewShell, {
129
129
  context: this.context,
130
- params: this.cloneParams,
130
+ params: {
131
+ checkstrictly: true,
132
+ ...this.cloneParams
133
+ },
131
134
  viewId: this.c.model.pickupAppViewId,
132
135
  state: {
133
136
  singleSelect: this.singleSelect,
@@ -495,7 +495,10 @@ const IBizPickerSelectView = /* @__PURE__ */ vue.defineComponent({
495
495
  return this.c.pickupView && vue.h(viewShell, {
496
496
  modal: this.modal,
497
497
  context: this.context,
498
- params: this.cloneParams,
498
+ params: {
499
+ checkstrictly: true,
500
+ ...this.cloneParams
501
+ },
499
502
  viewId: this.c.pickupView.id,
500
503
  style: {
501
504
  height: "".concat(((_a = this.c.editorParams) == null ? void 0 : _a.pickupViewHeight) || ((_b = this.c.editorParams) == null ? void 0 : _b.pickupviewheight) || 500, "px"),
@@ -277,7 +277,7 @@ class PickerEditorController extends runtime.EditorController {
277
277
  runtime.OpenAppViewCommand.TAG,
278
278
  this.pickupView.id,
279
279
  context,
280
- params,
280
+ { checkstrictly: true, ...params },
281
281
  { openMode: "POPUPMODAL" }
282
282
  );
283
283
  if (res && res.ok && res.data) {
@@ -194,6 +194,9 @@ class AppSwitchController extends runtime.PanelItemController {
194
194
  return result;
195
195
  }
196
196
  const defaultAppModel = ibiz.hub.getAppSourceModel(defaultApp.appId);
197
+ if (!defaultAppModel || !defaultAppModel.cache) {
198
+ return result;
199
+ }
197
200
  const allAppIndexViews = (_b = (_a = defaultAppModel.cache) == null ? void 0 : _a.getPSAppViews) == null ? void 0 : _b.filter(
198
201
  (appView) => {
199
202
  return appView.viewType === "APPINDEXVIEW";
@@ -4,7 +4,7 @@ var runtime = require('@ibiz-template/runtime');
4
4
  var panelTabPanel_state = require('./panel-tab-panel.state.cjs');
5
5
 
6
6
  "use strict";
7
- class PanelTabPanelController extends runtime.PanelItemController {
7
+ class PanelTabPanelController extends runtime.PanelContainerController {
8
8
  /**
9
9
  * 新建状态
10
10
  *
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
10
  return value;
11
11
  };
12
- class PanelTabPanelState extends runtime.PanelItemState {
12
+ class PanelTabPanelState extends runtime.PanelContainerState {
13
13
  constructor() {
14
14
  super(...arguments);
15
15
  /**
@@ -23,7 +23,7 @@ const PanelViewContent = /* @__PURE__ */ vue.defineComponent({
23
23
  * @description 容器控制器
24
24
  */
25
25
  controller: {
26
- type: runtime.PanelItemController,
26
+ type: runtime.PanelContainerController,
27
27
  required: true
28
28
  }
29
29
  },
@@ -82,9 +82,9 @@ const PanelViewContent = /* @__PURE__ */ vue.defineComponent({
82
82
  })) ? _slot : {
83
83
  default: () => [_slot]
84
84
  });
85
- return vue.createVNode("div", {
85
+ return vue.withDirectives(vue.createVNode("div", {
86
86
  "class": this.classArr
87
- }, [content]);
87
+ }, [content]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
88
88
  }
89
89
  });
90
90
 
@@ -14,7 +14,7 @@ class PanelViewContentProvider {
14
14
  __publicField(this, "component", "IBizPanelViewContent");
15
15
  }
16
16
  async createController(panelItem, panel, parent) {
17
- const c = new runtime.PanelItemController(panelItem, panel, parent);
17
+ const c = new runtime.PanelContainerController(panelItem, panel, parent);
18
18
  await c.init();
19
19
  return c;
20
20
  }
@@ -23,7 +23,7 @@ const PanelViewHeader = /* @__PURE__ */ vue.defineComponent({
23
23
  * @description 容器控制器
24
24
  */
25
25
  controller: {
26
- type: runtime.PanelItemController,
26
+ type: runtime.PanelContainerController,
27
27
  required: true
28
28
  }
29
29
  },
@@ -76,9 +76,9 @@ const PanelViewHeader = /* @__PURE__ */ vue.defineComponent({
76
76
  })) ? _slot : {
77
77
  default: () => [_slot]
78
78
  });
79
- return vue.createVNode("div", {
79
+ return vue.withDirectives(vue.createVNode("div", {
80
80
  "class": this.classArr
81
- }, [content]);
81
+ }, [content]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
82
82
  }
83
83
  });
84
84
 
@@ -14,7 +14,7 @@ class PanelViewHeaderProvider {
14
14
  __publicField(this, "component", "IBizPanelViewHeader");
15
15
  }
16
16
  async createController(panelItem, panel, parent) {
17
- const c = new runtime.PanelItemController(panelItem, panel, parent);
17
+ const c = new runtime.PanelContainerController(panelItem, panel, parent);
18
18
  await c.init();
19
19
  return c;
20
20
  }
@@ -42,7 +42,7 @@ const SplitContainer = /* @__PURE__ */ vue.defineComponent({
42
42
  render() {
43
43
  var _a, _b;
44
44
  const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
45
- return vue.createVNode("div", {
45
+ return vue.withDirectives(vue.createVNode("div", {
46
46
  "class": this.classArr
47
47
  }, [vue.createVNode(vue.resolveComponent("iBizSplit"), {
48
48
  "modelValue": this.controller.state.splitValue,
@@ -53,7 +53,7 @@ const SplitContainer = /* @__PURE__ */ vue.defineComponent({
53
53
  right: () => defaultSlots[1],
54
54
  top: () => defaultSlots[0],
55
55
  bottom: () => defaultSlots[1]
56
- })]);
56
+ })]), [[vue.resolveDirective("loading"), this.controller.state.loading]]);
57
57
  }
58
58
  });
59
59
 
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
10
  return value;
11
11
  };
12
- class SplitContainerController extends runtime.PanelItemController {
12
+ class SplitContainerController extends runtime.PanelContainerController {
13
13
  constructor() {
14
14
  super(...arguments);
15
15
  /**
@@ -9,7 +9,7 @@ var __publicField = (obj, key, value) => {
9
9
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
10
10
  return value;
11
11
  };
12
- class SplitContainerState extends runtime.PanelItemState {
12
+ class SplitContainerState extends runtime.PanelContainerState {
13
13
  constructor() {
14
14
  super(...arguments);
15
15
  /**
@@ -2,7 +2,7 @@
2
2
 
3
3
  var vue = require('vue');
4
4
  var ElementPlus = require('element-plus');
5
- var namespace = require('../../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/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
5
+ var namespace = require('../../node_modules/.pnpm/@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');
6
6
  var fullscreenToolbar = require('../../common/fullscreen-toolbar/fullscreen-toolbar.cjs');
7
7
 
8
8
  "use strict";
@@ -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.25",
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.24",
40
- "@ibiz-template/runtime": "0.7.41-alpha.24",
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.24",
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",