@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.
- package/dist/index-QWKV4tFl.js +11 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-8Ebtgl0o.js → wang-editor-cE7s2d6m.js} +1 -1
- package/dist/{xlsx-util-_DMqcSDQ.js → xlsx-util-hFsCMRuN.js} +1 -1
- package/es/common/action-toolbar/action-toolbar.css +1 -1
- package/es/common/action-toolbar/action-toolbar.d.ts +1 -0
- package/es/common/action-toolbar/action-toolbar.mjs +22 -13
- package/es/common/button-list/button-list.css +1 -1
- package/es/common/button-list/button-list.mjs +7 -4
- package/es/common/rawitem/rawitem.mjs +5 -1
- package/es/control/app-menu/app-menu.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.d.ts +6 -1
- package/es/control/dashboard/portlet/portlet-layout/portlet-layout.mjs +47 -9
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +3 -3
- package/es/control/form/form-detail/form-page/form-page-item/form-page.item.mjs +3 -3
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +3 -3
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +6 -5
- package/es/control/tree-grid/tree-grid.mjs +16 -2
- package/es/control/tree-grid-ex/tree-grid-ex.mjs +26 -5
- package/es/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.mjs +4 -1
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.mjs +4 -1
- package/es/editor/data-picker/picker-editor.controller.mjs +1 -1
- package/es/locale/en/index.d.ts +1 -0
- package/es/locale/zh-CN/index.d.ts +1 -0
- package/es/panel-component/app-switch/app-switch.controller.mjs +3 -0
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.d.ts +2 -2
- package/es/panel-component/panel-tab-panel/panel-tab-panel.controller.mjs +2 -2
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.d.ts +3 -3
- package/es/panel-component/panel-tab-panel/panel-tab-panel.state.mjs +2 -2
- package/es/panel-component/panel-view-content/index.d.ts +2 -2
- package/es/panel-component/panel-view-content/panel-view-content.d.ts +3 -3
- package/es/panel-component/panel-view-content/panel-view-content.mjs +5 -5
- package/es/panel-component/panel-view-content/panel-view-content.provider.d.ts +2 -2
- package/es/panel-component/panel-view-content/panel-view-content.provider.mjs +2 -2
- package/es/panel-component/panel-view-header/index.d.ts +2 -2
- package/es/panel-component/panel-view-header/panel-view-header.d.ts +3 -3
- package/es/panel-component/panel-view-header/panel-view-header.mjs +5 -5
- package/es/panel-component/panel-view-header/panel-view-header.provider.d.ts +2 -2
- package/es/panel-component/panel-view-header/panel-view-header.provider.mjs +2 -2
- package/es/panel-component/split-container/split-container.controller.d.ts +3 -3
- package/es/panel-component/split-container/split-container.controller.mjs +2 -2
- package/es/panel-component/split-container/split-container.mjs +3 -3
- package/es/panel-component/split-container/split-container.state.d.ts +3 -3
- package/es/panel-component/split-container/split-container.state.mjs +2 -2
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +23 -1
- package/es/view-engine/md-custom-view.engine.mjs +69 -0
- package/es/view-engine/mpickup-view-engine.mjs +1 -1
- package/lib/common/action-toolbar/action-toolbar.cjs +22 -13
- package/lib/common/action-toolbar/action-toolbar.css +1 -1
- package/lib/common/button-list/button-list.cjs +7 -4
- package/lib/common/button-list/button-list.css +1 -1
- package/lib/common/rawitem/rawitem.cjs +5 -1
- package/lib/control/app-menu/app-menu.css +1 -1
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.cjs +45 -7
- package/lib/control/dashboard/portlet/portlet-layout/portlet-layout.css +1 -1
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +2 -2
- package/lib/control/form/form-detail/form-page/form-page-item/form-page.item.cjs +2 -2
- package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +2 -2
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +5 -4
- package/lib/control/tree-grid/tree-grid.cjs +15 -1
- package/lib/control/tree-grid-ex/tree-grid-ex.cjs +25 -4
- package/lib/editor/data-picker/ibiz-picker-embed-view/ibiz-picker-embed-view.cjs +4 -1
- package/lib/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.cjs +4 -1
- package/lib/editor/data-picker/picker-editor.controller.cjs +1 -1
- package/lib/panel-component/app-switch/app-switch.controller.cjs +3 -0
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.controller.cjs +1 -1
- package/lib/panel-component/panel-tab-panel/panel-tab-panel.state.cjs +1 -1
- package/lib/panel-component/panel-view-content/panel-view-content.cjs +3 -3
- package/lib/panel-component/panel-view-content/panel-view-content.provider.cjs +1 -1
- package/lib/panel-component/panel-view-header/panel-view-header.cjs +3 -3
- package/lib/panel-component/panel-view-header/panel-view-header.provider.cjs +1 -1
- package/lib/panel-component/split-container/split-container.cjs +2 -2
- package/lib/panel-component/split-container/split-container.controller.cjs +1 -1
- package/lib/panel-component/split-container/split-container.state.cjs +1 -1
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +69 -0
- package/lib/view-engine/mpickup-view-engine.cjs +1 -1
- package/package.json +6 -6
- package/dist/index-8V2VOkJ3.js +0 -11
- /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
- /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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { isVNode, createVNode, resolveComponent, computed, ref, watchEffect, renderSlot, mergeProps, h, defineComponent } from 'vue';
|
|
2
2
|
import { useControlController, useControlPopoverzIndex, useNamespace, hasEmptyPanelRenderer, IBizCustomRender } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { TreeGridExController } from '@ibiz-template/runtime';
|
|
3
|
+
import { ScriptFactory, TreeGridExController } from '@ibiz-template/runtime';
|
|
4
4
|
import { RuntimeError } from '@ibiz-template/core';
|
|
5
5
|
import { createUUID } from 'qx-util';
|
|
6
6
|
import { useRowEditPopover } from './use-row-edit-popover.mjs';
|
|
@@ -10,6 +10,18 @@ import './tree-grid-ex.css';
|
|
|
10
10
|
function _isSlot(s) {
|
|
11
11
|
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
12
12
|
}
|
|
13
|
+
function renderAttrs(model, params) {
|
|
14
|
+
var _a;
|
|
15
|
+
const attrs = {};
|
|
16
|
+
(_a = model.controlAttributes) == null ? void 0 : _a.forEach((item) => {
|
|
17
|
+
if (item.attrName && item.attrValue) {
|
|
18
|
+
attrs[item.attrName] = ScriptFactory.execSingleLine(item.attrValue, {
|
|
19
|
+
...params
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return attrs;
|
|
24
|
+
}
|
|
13
25
|
const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
14
26
|
name: "IBizTreeGridExControl",
|
|
15
27
|
props: {
|
|
@@ -84,7 +96,8 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
84
96
|
const temp = {
|
|
85
97
|
id: node._id,
|
|
86
98
|
_uuid: node._uuid,
|
|
87
|
-
hasChildren: !node._leaf
|
|
99
|
+
hasChildren: !node._leaf,
|
|
100
|
+
_deData: node._deData
|
|
88
101
|
};
|
|
89
102
|
if (!noChild && !node._leaf && node._children !== void 0) {
|
|
90
103
|
temp.children = toElNodes(node._children);
|
|
@@ -249,10 +262,16 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
249
262
|
const rowState = this.c.getRowState(row.id);
|
|
250
263
|
if (rowState) {
|
|
251
264
|
const comp = resolveComponent(this.c.providers[columnName].component);
|
|
265
|
+
const nodeData = rowState.data;
|
|
266
|
+
const nodeModel = this.c.getNodeModel(nodeData._nodeId);
|
|
252
267
|
return h(comp, {
|
|
253
268
|
controller: columnC,
|
|
254
269
|
row: rowState,
|
|
255
|
-
key: rowState.data._uuid + columnName
|
|
270
|
+
key: rowState.data._uuid + columnName,
|
|
271
|
+
attrs: renderAttrs(nodeModel, {
|
|
272
|
+
...this.c.getEventArgs(),
|
|
273
|
+
data: rowState.data
|
|
274
|
+
})
|
|
256
275
|
});
|
|
257
276
|
}
|
|
258
277
|
return null;
|
|
@@ -266,7 +285,7 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
266
285
|
"controller": this.c,
|
|
267
286
|
"class": [this.ns.b()]
|
|
268
287
|
}, {
|
|
269
|
-
default: () => [this.c.state.isLoaded && createVNode(resolveComponent("el-table"), {
|
|
288
|
+
default: () => [this.c.state.isLoaded && createVNode(resolveComponent("el-table"), mergeProps({
|
|
270
289
|
"ref": "tableRef",
|
|
271
290
|
"key": this.tableRefreshKey,
|
|
272
291
|
"class": this.ns.e("table"),
|
|
@@ -282,7 +301,9 @@ const TreeGridExControl = /* @__PURE__ */ defineComponent({
|
|
|
282
301
|
"onExpandChange": this.onExpandChange,
|
|
283
302
|
"row-class-name": this.handleRowClassName,
|
|
284
303
|
"load": this.loadData
|
|
285
|
-
}, {
|
|
304
|
+
}, renderAttrs(this.c.model, {
|
|
305
|
+
...this.c.getEventArgs()
|
|
306
|
+
})), {
|
|
286
307
|
empty: this.renderNoData,
|
|
287
308
|
default: () => {
|
|
288
309
|
return [this.renderColumns.map((model, index) => {
|
|
@@ -125,7 +125,10 @@ const IBizPickerEmbedView = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
"class": this.ns.b("view")
|
|
126
126
|
}, [h(viewShell, {
|
|
127
127
|
context: this.context,
|
|
128
|
-
params:
|
|
128
|
+
params: {
|
|
129
|
+
checkstrictly: true,
|
|
130
|
+
...this.cloneParams
|
|
131
|
+
},
|
|
129
132
|
viewId: this.c.model.pickupAppViewId,
|
|
130
133
|
state: {
|
|
131
134
|
singleSelect: this.singleSelect,
|
|
@@ -493,7 +493,10 @@ const IBizPickerSelectView = /* @__PURE__ */ defineComponent({
|
|
|
493
493
|
return this.c.pickupView && h(viewShell, {
|
|
494
494
|
modal: this.modal,
|
|
495
495
|
context: this.context,
|
|
496
|
-
params:
|
|
496
|
+
params: {
|
|
497
|
+
checkstrictly: true,
|
|
498
|
+
...this.cloneParams
|
|
499
|
+
},
|
|
497
500
|
viewId: this.c.pickupView.id,
|
|
498
501
|
style: {
|
|
499
502
|
height: "".concat(((_a = this.c.editorParams) == null ? void 0 : _a.pickupViewHeight) || ((_b = this.c.editorParams) == null ? void 0 : _b.pickupviewheight) || 500, "px"),
|
package/es/locale/en/index.d.ts
CHANGED
|
@@ -192,6 +192,9 @@ class AppSwitchController extends PanelItemController {
|
|
|
192
192
|
return result;
|
|
193
193
|
}
|
|
194
194
|
const defaultAppModel = ibiz.hub.getAppSourceModel(defaultApp.appId);
|
|
195
|
+
if (!defaultAppModel || !defaultAppModel.cache) {
|
|
196
|
+
return result;
|
|
197
|
+
}
|
|
195
198
|
const allAppIndexViews = (_b = (_a = defaultAppModel.cache) == null ? void 0 : _a.getPSAppViews) == null ? void 0 : _b.filter(
|
|
196
199
|
(appView) => {
|
|
197
200
|
return appView.viewType === "APPINDEXVIEW";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IPanelTabPanel } from '@ibiz/model-core';
|
|
3
3
|
import { PanelTabPanelState } from './panel-tab-panel.state';
|
|
4
|
-
export declare class PanelTabPanelController extends
|
|
4
|
+
export declare class PanelTabPanelController extends PanelContainerController<IPanelTabPanel> {
|
|
5
5
|
state: PanelTabPanelState;
|
|
6
6
|
/**
|
|
7
7
|
* 新建状态
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
2
2
|
import { PanelTabPanelState } from './panel-tab-panel.state.mjs';
|
|
3
3
|
|
|
4
4
|
"use strict";
|
|
5
|
-
class PanelTabPanelController extends
|
|
5
|
+
class PanelTabPanelController extends PanelContainerController {
|
|
6
6
|
/**
|
|
7
7
|
* 新建状态
|
|
8
8
|
*
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerState } from '@ibiz-template/runtime';
|
|
2
2
|
/**
|
|
3
3
|
* 分页面板状态
|
|
4
4
|
*
|
|
@@ -6,9 +6,9 @@ import { PanelItemState } from '@ibiz-template/runtime';
|
|
|
6
6
|
* @date 2024-05-12 14:05:01
|
|
7
7
|
* @export
|
|
8
8
|
* @class PanelTabPanelState
|
|
9
|
-
* @extends {
|
|
9
|
+
* @extends {PanelContainerState}
|
|
10
10
|
*/
|
|
11
|
-
export declare class PanelTabPanelState extends
|
|
11
|
+
export declare class PanelTabPanelState extends PanelContainerState {
|
|
12
12
|
/**
|
|
13
13
|
* @description 当前激活分页
|
|
14
14
|
* @exposedoc
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerState } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
|
-
class PanelTabPanelState extends
|
|
10
|
+
class PanelTabPanelState extends PanelContainerState {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
/**
|
|
@@ -4,7 +4,7 @@ export declare const IBizPanelViewContent: import("@ibiz-template/vue3-util").Ty
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
controller: {
|
|
7
|
-
type: typeof import("@ibiz-template/
|
|
7
|
+
type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
@@ -18,7 +18,7 @@ export declare const IBizPanelViewContent: import("@ibiz-template/vue3-util").Ty
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
controller: {
|
|
21
|
-
type: typeof import("@ibiz-template/
|
|
21
|
+
type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
}>>, {}, {}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
4
4
|
import './panel-view-content.scss';
|
|
5
5
|
/**
|
|
6
6
|
* 面板容器(视图内容)
|
|
@@ -21,7 +21,7 @@ export declare const PanelViewContent: import("vue").DefineComponent<{
|
|
|
21
21
|
* @description 容器控制器
|
|
22
22
|
*/
|
|
23
23
|
controller: {
|
|
24
|
-
type: typeof
|
|
24
|
+
type: typeof PanelContainerController;
|
|
25
25
|
required: true;
|
|
26
26
|
};
|
|
27
27
|
}, {
|
|
@@ -41,7 +41,7 @@ export declare const PanelViewContent: import("vue").DefineComponent<{
|
|
|
41
41
|
* @description 容器控制器
|
|
42
42
|
*/
|
|
43
43
|
controller: {
|
|
44
|
-
type: typeof
|
|
44
|
+
type: typeof PanelContainerController;
|
|
45
45
|
required: true;
|
|
46
46
|
};
|
|
47
47
|
}>>, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isVNode, ref, computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { isVNode, ref, computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import {
|
|
3
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
4
4
|
import './panel-view-content.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -21,7 +21,7 @@ const PanelViewContent = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
* @description 容器控制器
|
|
22
22
|
*/
|
|
23
23
|
controller: {
|
|
24
|
-
type:
|
|
24
|
+
type: PanelContainerController,
|
|
25
25
|
required: true
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -80,9 +80,9 @@ const PanelViewContent = /* @__PURE__ */ defineComponent({
|
|
|
80
80
|
})) ? _slot : {
|
|
81
81
|
default: () => [_slot]
|
|
82
82
|
});
|
|
83
|
-
return createVNode("div", {
|
|
83
|
+
return withDirectives(createVNode("div", {
|
|
84
84
|
"class": this.classArr
|
|
85
|
-
}, [content]);
|
|
85
|
+
}, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
1
|
+
import { IPanelItemProvider, PanelContainerController, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
3
|
/**
|
|
4
4
|
* 面板容器适配器
|
|
@@ -11,5 +11,5 @@ import { IPanelContainer } from '@ibiz/model-core';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class PanelViewContentProvider implements IPanelItemProvider {
|
|
13
13
|
component: string;
|
|
14
|
-
createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<
|
|
14
|
+
createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelContainerController>;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -12,7 +12,7 @@ class PanelViewContentProvider {
|
|
|
12
12
|
__publicField(this, "component", "IBizPanelViewContent");
|
|
13
13
|
}
|
|
14
14
|
async createController(panelItem, panel, parent) {
|
|
15
|
-
const c = new
|
|
15
|
+
const c = new PanelContainerController(panelItem, panel, parent);
|
|
16
16
|
await c.init();
|
|
17
17
|
return c;
|
|
18
18
|
}
|
|
@@ -4,7 +4,7 @@ export declare const IBizPanelViewHeader: import("@ibiz-template/vue3-util").Typ
|
|
|
4
4
|
required: true;
|
|
5
5
|
};
|
|
6
6
|
controller: {
|
|
7
|
-
type: typeof import("@ibiz-template/
|
|
7
|
+
type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
|
|
8
8
|
required: true;
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
@@ -18,7 +18,7 @@ export declare const IBizPanelViewHeader: import("@ibiz-template/vue3-util").Typ
|
|
|
18
18
|
required: true;
|
|
19
19
|
};
|
|
20
20
|
controller: {
|
|
21
|
-
type: typeof import("@ibiz-template/
|
|
21
|
+
type: typeof import("@ibiz-template/vue3-util").PanelContainerController;
|
|
22
22
|
required: true;
|
|
23
23
|
};
|
|
24
24
|
}>>, {}, {}>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
|
-
import {
|
|
3
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
4
4
|
import './panel-view-header.scss';
|
|
5
5
|
/**
|
|
6
6
|
* 面板容器(视图头部)
|
|
@@ -19,7 +19,7 @@ export declare const PanelViewHeader: import("vue").DefineComponent<{
|
|
|
19
19
|
* @description 容器控制器
|
|
20
20
|
*/
|
|
21
21
|
controller: {
|
|
22
|
-
type: typeof
|
|
22
|
+
type: typeof PanelContainerController;
|
|
23
23
|
required: true;
|
|
24
24
|
};
|
|
25
25
|
}, {
|
|
@@ -39,7 +39,7 @@ export declare const PanelViewHeader: import("vue").DefineComponent<{
|
|
|
39
39
|
* @description 容器控制器
|
|
40
40
|
*/
|
|
41
41
|
controller: {
|
|
42
|
-
type: typeof
|
|
42
|
+
type: typeof PanelContainerController;
|
|
43
43
|
required: true;
|
|
44
44
|
};
|
|
45
45
|
}>>, {}, {}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { isVNode, ref, computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { isVNode, ref, computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import {
|
|
3
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
4
4
|
import './panel-view-header.css';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -21,7 +21,7 @@ const PanelViewHeader = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
* @description 容器控制器
|
|
22
22
|
*/
|
|
23
23
|
controller: {
|
|
24
|
-
type:
|
|
24
|
+
type: PanelContainerController,
|
|
25
25
|
required: true
|
|
26
26
|
}
|
|
27
27
|
},
|
|
@@ -74,9 +74,9 @@ const PanelViewHeader = /* @__PURE__ */ defineComponent({
|
|
|
74
74
|
})) ? _slot : {
|
|
75
75
|
default: () => [_slot]
|
|
76
76
|
});
|
|
77
|
-
return createVNode("div", {
|
|
77
|
+
return withDirectives(createVNode("div", {
|
|
78
78
|
"class": this.classArr
|
|
79
|
-
}, [content]);
|
|
79
|
+
}, [content]), [[resolveDirective("loading"), this.controller.state.loading]]);
|
|
80
80
|
}
|
|
81
81
|
});
|
|
82
82
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPanelItemProvider, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
1
|
+
import { IPanelItemProvider, PanelContainerController, PanelController, PanelItemController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IPanelContainer } from '@ibiz/model-core';
|
|
3
3
|
/**
|
|
4
4
|
* 面板容器适配器
|
|
@@ -11,5 +11,5 @@ import { IPanelContainer } from '@ibiz/model-core';
|
|
|
11
11
|
*/
|
|
12
12
|
export declare class PanelViewHeaderProvider implements IPanelItemProvider {
|
|
13
13
|
component: string;
|
|
14
|
-
createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<
|
|
14
|
+
createController(panelItem: IPanelContainer, panel: PanelController, parent: PanelItemController | undefined): Promise<PanelContainerController>;
|
|
15
15
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -12,7 +12,7 @@ class PanelViewHeaderProvider {
|
|
|
12
12
|
__publicField(this, "component", "IBizPanelViewHeader");
|
|
13
13
|
}
|
|
14
14
|
async createController(panelItem, panel, parent) {
|
|
15
|
-
const c = new
|
|
15
|
+
const c = new PanelContainerController(panelItem, panel, parent);
|
|
16
16
|
await c.init();
|
|
17
17
|
return c;
|
|
18
18
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IPanelContainer } from '@ibiz/model-core';
|
|
2
|
-
import {
|
|
2
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
3
3
|
import { SplitContainerState } from './split-container.state';
|
|
4
4
|
/**
|
|
5
5
|
* 分割面板容器控制器
|
|
@@ -8,9 +8,9 @@ import { SplitContainerState } from './split-container.state';
|
|
|
8
8
|
* @date 2023-08-22 17:08:37
|
|
9
9
|
* @export
|
|
10
10
|
* @class SplitContainerController
|
|
11
|
-
* @extends {
|
|
11
|
+
* @extends {PanelContainerController<IPanelContainer>}
|
|
12
12
|
*/
|
|
13
|
-
export declare class SplitContainerController extends
|
|
13
|
+
export declare class SplitContainerController extends PanelContainerController<IPanelContainer> {
|
|
14
14
|
/**
|
|
15
15
|
* @description 分割面板容器状态
|
|
16
16
|
* @exposedoc
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerController } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
|
-
class SplitContainerController extends
|
|
10
|
+
class SplitContainerController extends PanelContainerController {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
1
|
+
import { computed, resolveComponent, createVNode, resolveDirective, withDirectives, defineComponent } from 'vue';
|
|
2
2
|
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { SplitContainerController } from './split-container.controller.mjs';
|
|
4
4
|
import './split-container.css';
|
|
@@ -40,7 +40,7 @@ const SplitContainer = /* @__PURE__ */ defineComponent({
|
|
|
40
40
|
render() {
|
|
41
41
|
var _a, _b;
|
|
42
42
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
43
|
-
return createVNode("div", {
|
|
43
|
+
return withDirectives(createVNode("div", {
|
|
44
44
|
"class": this.classArr
|
|
45
45
|
}, [createVNode(resolveComponent("iBizSplit"), {
|
|
46
46
|
"modelValue": this.controller.state.splitValue,
|
|
@@ -51,7 +51,7 @@ const SplitContainer = /* @__PURE__ */ defineComponent({
|
|
|
51
51
|
right: () => defaultSlots[1],
|
|
52
52
|
top: () => defaultSlots[0],
|
|
53
53
|
bottom: () => defaultSlots[1]
|
|
54
|
-
})]);
|
|
54
|
+
})]), [[resolveDirective("loading"), this.controller.state.loading]]);
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
57
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerState } from '@ibiz-template/runtime';
|
|
2
2
|
/**
|
|
3
3
|
* 分割面板容器状态
|
|
4
4
|
*
|
|
@@ -6,9 +6,9 @@ import { PanelItemState } from '@ibiz-template/runtime';
|
|
|
6
6
|
* @date 2023-10-08 17:10:22
|
|
7
7
|
* @export
|
|
8
8
|
* @class SplitContainerState
|
|
9
|
-
* @extends {
|
|
9
|
+
* @extends {PanelContainerState}
|
|
10
10
|
*/
|
|
11
|
-
export declare class SplitContainerState extends
|
|
11
|
+
export declare class SplitContainerState extends PanelContainerState {
|
|
12
12
|
/**
|
|
13
13
|
* @description 分割值
|
|
14
14
|
* @exposedoc
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PanelContainerState } from '@ibiz-template/runtime';
|
|
2
2
|
|
|
3
3
|
"use strict";
|
|
4
4
|
var __defProp = Object.defineProperty;
|
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
|
-
class SplitContainerState extends
|
|
10
|
+
class SplitContainerState extends PanelContainerState {
|
|
11
11
|
constructor() {
|
|
12
12
|
super(...arguments);
|
|
13
13
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../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.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IViewEvent, ViewEngineBase, IUIActionResult, ViewController, IControlController, IApiMDCustomViewCall, IMDCustomViewState } from '@ibiz-template/runtime';
|
|
1
|
+
import { IViewEvent, ViewEngineBase, IUIActionResult, ViewController, IControlController, IApiMDCustomViewCall, IMDCustomViewState, ISearchBarController } from '@ibiz-template/runtime';
|
|
2
2
|
import { IControl, IMDControl, IAppDECustomView } from '@ibiz/model-core';
|
|
3
3
|
export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
4
4
|
protected view: ViewController<IAppDECustomView, IMDCustomViewState, IViewEvent>;
|
|
@@ -9,6 +9,14 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
|
9
9
|
* @memberof MDCustomViewEngine
|
|
10
10
|
*/
|
|
11
11
|
controls: IControl[];
|
|
12
|
+
/**
|
|
13
|
+
* @description 获取分页搜索视图上移的搜索栏控制器
|
|
14
|
+
* @readonly
|
|
15
|
+
* @protected
|
|
16
|
+
* @type {ISearchBarController}
|
|
17
|
+
* @memberof MDCustomViewEngine
|
|
18
|
+
*/
|
|
19
|
+
protected get tabSearchBar(): ISearchBarController;
|
|
12
20
|
/**
|
|
13
21
|
* 视图created生命周期执行逻辑
|
|
14
22
|
*
|
|
@@ -23,6 +31,13 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
|
23
31
|
* @memberof MDCustomViewEngine
|
|
24
32
|
*/
|
|
25
33
|
onMounted(): Promise<void>;
|
|
34
|
+
/**
|
|
35
|
+
* @description 获取搜索相关的查询参数
|
|
36
|
+
* @protected
|
|
37
|
+
* @returns {*} {IParams}
|
|
38
|
+
* @memberof MDCustomViewEngine
|
|
39
|
+
*/
|
|
40
|
+
protected getSearchParams(): IParams;
|
|
26
41
|
/**
|
|
27
42
|
* @description 初始化部件激活模式
|
|
28
43
|
* @memberof MDCustomViewEngine
|
|
@@ -37,6 +52,13 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
|
37
52
|
*/
|
|
38
53
|
calcToolbarButtonState(control: IMDControl, data: IData | undefined, _params?: IParams): void;
|
|
39
54
|
call(key: keyof IApiMDCustomViewCall, args: any): Promise<IData | null | undefined>;
|
|
55
|
+
/**
|
|
56
|
+
* @description 视图重新加载
|
|
57
|
+
* @protected
|
|
58
|
+
* @returns {*} {Promise<void>}
|
|
59
|
+
* @memberof MDCustomViewEngine
|
|
60
|
+
*/
|
|
61
|
+
protected reLoad(): Promise<void>;
|
|
40
62
|
/**
|
|
41
63
|
* @description 刷新数据
|
|
42
64
|
* @returns {*} {Promise<void>}
|
|
@@ -20,6 +20,16 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
20
20
|
*/
|
|
21
21
|
__publicField(this, "controls", []);
|
|
22
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @description 获取分页搜索视图上移的搜索栏控制器
|
|
25
|
+
* @readonly
|
|
26
|
+
* @protected
|
|
27
|
+
* @type {ISearchBarController}
|
|
28
|
+
* @memberof MDCustomViewEngine
|
|
29
|
+
*/
|
|
30
|
+
get tabSearchBar() {
|
|
31
|
+
return this.view.getController("tabsearchbar");
|
|
32
|
+
}
|
|
23
33
|
/**
|
|
24
34
|
* 视图created生命周期执行逻辑
|
|
25
35
|
*
|
|
@@ -40,6 +50,26 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
40
50
|
async onMounted() {
|
|
41
51
|
await super.onMounted();
|
|
42
52
|
this.calcToolbarState = this.calcToolbarState.bind(this);
|
|
53
|
+
if (this.searchForm) {
|
|
54
|
+
this.searchForm.evt.on("onSearch", () => {
|
|
55
|
+
this.reLoad();
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
if (this.searchBar) {
|
|
59
|
+
this.searchBar.evt.on("onSearch", () => {
|
|
60
|
+
this.reLoad();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
if (this.tabSearchForm) {
|
|
64
|
+
this.tabSearchForm.evt.on("onSearch", () => {
|
|
65
|
+
this.reLoad();
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
if (this.tabSearchBar) {
|
|
69
|
+
this.tabSearchBar.evt.on("onSearch", () => {
|
|
70
|
+
this.reLoad();
|
|
71
|
+
});
|
|
72
|
+
}
|
|
43
73
|
this.controls.forEach((ctrl) => {
|
|
44
74
|
const control = this.view.getController(
|
|
45
75
|
ctrl.name
|
|
@@ -56,8 +86,33 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
56
86
|
"onRefreshSuccess",
|
|
57
87
|
(evt) => this.calcToolbarButtonState(ctrl, evt.data[0], evt)
|
|
58
88
|
);
|
|
89
|
+
control == null ? void 0 : control.evt.on("onBeforeLoad", () => {
|
|
90
|
+
control.state.searchParams = this.getSearchParams();
|
|
91
|
+
});
|
|
59
92
|
});
|
|
60
93
|
}
|
|
94
|
+
/**
|
|
95
|
+
* @description 获取搜索相关的查询参数
|
|
96
|
+
* @protected
|
|
97
|
+
* @returns {*} {IParams}
|
|
98
|
+
* @memberof MDCustomViewEngine
|
|
99
|
+
*/
|
|
100
|
+
getSearchParams() {
|
|
101
|
+
const params = {};
|
|
102
|
+
if (this.searchForm) {
|
|
103
|
+
Object.assign(params, this.searchForm.getFilterParams());
|
|
104
|
+
}
|
|
105
|
+
if (this.searchBar) {
|
|
106
|
+
Object.assign(params, this.searchBar.getFilterParams());
|
|
107
|
+
}
|
|
108
|
+
if (this.tabSearchForm) {
|
|
109
|
+
Object.assign(params, this.tabSearchForm.getFilterParams());
|
|
110
|
+
}
|
|
111
|
+
if (this.tabSearchBar) {
|
|
112
|
+
Object.assign(params, this.tabSearchBar.getFilterParams());
|
|
113
|
+
}
|
|
114
|
+
return params;
|
|
115
|
+
}
|
|
61
116
|
/**
|
|
62
117
|
* @description 初始化部件激活模式
|
|
63
118
|
* @memberof MDCustomViewEngine
|
|
@@ -106,6 +161,20 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
106
161
|
}
|
|
107
162
|
return super.call(key, args);
|
|
108
163
|
}
|
|
164
|
+
/**
|
|
165
|
+
* @description 视图重新加载
|
|
166
|
+
* @protected
|
|
167
|
+
* @returns {*} {Promise<void>}
|
|
168
|
+
* @memberof MDCustomViewEngine
|
|
169
|
+
*/
|
|
170
|
+
async reLoad() {
|
|
171
|
+
if (this.view.state.xdatacontrolname) {
|
|
172
|
+
const xDataCtrl = this.view.getController(
|
|
173
|
+
this.view.state.xdatacontrolname
|
|
174
|
+
);
|
|
175
|
+
await (xDataCtrl == null ? void 0 : xDataCtrl.load({ isInitialLoad: true }));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
109
178
|
/**
|
|
110
179
|
* @description 刷新数据
|
|
111
180
|
* @returns {*} {Promise<void>}
|