@ibiz-template/vue3-components 0.2.18-dev.1 → 0.2.18-dev.2
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-Zu7Tav62.js → index-fpKu7BNf.js} +5 -5
- package/dist/index-fpKu7BNf.js.map +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-ShOHD7Yn.js → xlsx-util-sbOxK5Ae.js} +2 -2
- package/dist/{xlsx-util-ShOHD7Yn.js.map → xlsx-util-sbOxK5Ae.js.map} +1 -1
- package/es/control/form/form-detail/form-druipart/form-druipart.mjs +2 -1
- package/es/control/form/form-detail/form-group-panel/form-group-panel.mjs +2 -1
- package/es/control/form/form-detail/form-item/form-item.mjs +5 -2
- package/es/control/form/form-detail/form-rawitem/form-rawitem.mjs +2 -1
- package/es/control/form/form-detail/form-tab-page/form-tab-page.mjs +2 -1
- package/es/control/form/form-detail/form-tab-panel/form-tab-panel.mjs +2 -1
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/map-view.engine.d.ts +7 -0
- package/es/view-engine/map-view.engine.mjs +16 -0
- package/lib/control/form/form-detail/form-druipart/form-druipart.cjs +2 -1
- package/lib/control/form/form-detail/form-group-panel/form-group-panel.cjs +2 -1
- package/lib/control/form/form-detail/form-item/form-item.cjs +5 -2
- package/lib/control/form/form-detail/form-rawitem/form-rawitem.cjs +2 -1
- package/lib/control/form/form-detail/form-tab-page/form-tab-page.cjs +2 -1
- package/lib/control/form/form-detail/form-tab-panel/form-tab-panel.cjs +2 -1
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/map-view.engine.cjs +18 -0
- package/package.json +4 -4
- package/dist/index-Zu7Tav62.js.map +0 -1
|
@@ -33,7 +33,8 @@ const FormDRUIPart = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
}
|
|
34
34
|
const viewShell = resolveComponent("IBizViewShell");
|
|
35
35
|
return createVNode("div", {
|
|
36
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass]
|
|
36
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
37
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
37
38
|
}, [h(viewShell, {
|
|
38
39
|
context: this.controller.navContext,
|
|
39
40
|
params: this.controller.navParams,
|
|
@@ -125,7 +125,8 @@ const FormGroupPanel = /* @__PURE__ */ defineComponent({
|
|
|
125
125
|
}, [!state.isShowMore ? "\u663E\u793A\u66F4\u591A" : "\u6536\u8D77"])]);
|
|
126
126
|
}
|
|
127
127
|
return createVNode("div", {
|
|
128
|
-
"class": classArr
|
|
128
|
+
"class": classArr,
|
|
129
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
129
130
|
}, [header, createVNode("div", {
|
|
130
131
|
"class": [this.ns.b("content")]
|
|
131
132
|
}, [content]), footer]);
|
|
@@ -43,7 +43,9 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
43
43
|
controller: this.controller.editor,
|
|
44
44
|
disabled: this.controller.state.disabled,
|
|
45
45
|
readonly: this.controller.model.editor.readOnly,
|
|
46
|
-
onChange: this.onValueChange
|
|
46
|
+
onChange: this.onValueChange,
|
|
47
|
+
onFocus: (event) => this.c.onFocus(event),
|
|
48
|
+
onBlur: (event) => this.c.onBlur(event)
|
|
47
49
|
};
|
|
48
50
|
if (this.c.form.state.isLoaded) {
|
|
49
51
|
if (this.$slots.default) {
|
|
@@ -66,7 +68,8 @@ const FormItem = /* @__PURE__ */ defineComponent({
|
|
|
66
68
|
"label": this.modelData.caption,
|
|
67
69
|
"labelClass": this.controller.labelClass,
|
|
68
70
|
"label-pos": this.c.model.labelPos,
|
|
69
|
-
"label-width": this.c.model.labelWidth
|
|
71
|
+
"label-width": this.c.model.labelWidth,
|
|
72
|
+
"onClick": (event) => this.c.onClick(event)
|
|
70
73
|
}, _isSlot(editor) ? editor : {
|
|
71
74
|
default: () => [editor]
|
|
72
75
|
});
|
|
@@ -28,7 +28,8 @@ const FormRawItem = /* @__PURE__ */ defineComponent({
|
|
|
28
28
|
}
|
|
29
29
|
return createVNode(resolveComponent("iBizRawItem"), {
|
|
30
30
|
"class": [this.ns.b(), ...this.controller.containerClass],
|
|
31
|
-
"rawItem": this.modelData
|
|
31
|
+
"rawItem": this.modelData,
|
|
32
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
32
33
|
}, null);
|
|
33
34
|
}
|
|
34
35
|
});
|
|
@@ -32,7 +32,8 @@ const FormTabPage = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
33
33
|
return createVNode(resolveComponent("iBizRow"), {
|
|
34
34
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
35
|
-
"layout": this.modelData.layout
|
|
35
|
+
"layout": this.modelData.layout,
|
|
36
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
36
37
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
37
38
|
const props = slot.props;
|
|
38
39
|
if (!props || !props.controller) {
|
|
@@ -32,7 +32,8 @@ const FormTabPanel = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
33
33
|
return createVNode(resolveComponent("el-tabs"), {
|
|
34
34
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
35
|
-
"model-value": (_c = this.modelData.deformTabPages) == null ? void 0 : _c[0].id
|
|
35
|
+
"model-value": (_c = this.modelData.deformTabPages) == null ? void 0 : _c[0].id,
|
|
36
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
36
37
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
37
38
|
const props = slot.props;
|
|
38
39
|
if (!props || !props.controller) {
|
package/es/view-engine/index.mjs
CHANGED
|
@@ -37,6 +37,7 @@ import { TreeGridExViewEngine } from './tree-grid-ex-view.engine.mjs';
|
|
|
37
37
|
import { TreeGridViewEngine } from './tree-grid-view.engine.mjs';
|
|
38
38
|
import { MEditView9Engine } from './medit-view9.engine.mjs';
|
|
39
39
|
import { ChartExpViewEngine } from './chart-exp-view.engine.mjs';
|
|
40
|
+
import { MapViewEngine } from './map-view.engine.mjs';
|
|
40
41
|
|
|
41
42
|
"use strict";
|
|
42
43
|
const IBizViewEngine = {
|
|
@@ -249,6 +250,10 @@ const IBizViewEngine = {
|
|
|
249
250
|
"VIEW_DEMEDITVIEW9",
|
|
250
251
|
(c) => new MEditView9Engine(c)
|
|
251
252
|
);
|
|
253
|
+
ibiz.engine.register(
|
|
254
|
+
"VIEW_DEMAPVIEW",
|
|
255
|
+
(c) => new MapViewEngine(c)
|
|
256
|
+
);
|
|
252
257
|
}
|
|
253
258
|
};
|
|
254
259
|
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ViewController, IMapViewEvent, IMapViewState, MDViewEngine, IMapController } from '@ibiz-template/runtime';
|
|
2
|
+
import { IAppDEMapView } from '@ibiz/model-core';
|
|
3
|
+
export declare class MapViewEngine extends MDViewEngine {
|
|
4
|
+
protected view: ViewController<IAppDEMapView, IMapViewState, IMapViewEvent>;
|
|
5
|
+
get map(): IMapController;
|
|
6
|
+
onCreated(): Promise<void>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { MDViewEngine } from '@ibiz-template/runtime';
|
|
2
|
+
|
|
3
|
+
"use strict";
|
|
4
|
+
class MapViewEngine extends MDViewEngine {
|
|
5
|
+
get map() {
|
|
6
|
+
return this.view.getController("map");
|
|
7
|
+
}
|
|
8
|
+
async onCreated() {
|
|
9
|
+
super.onCreated();
|
|
10
|
+
if (!this.view.slotProps.map) {
|
|
11
|
+
this.view.slotProps.map = {};
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { MapViewEngine };
|
|
@@ -37,7 +37,8 @@ const FormDRUIPart = /* @__PURE__ */ vue.defineComponent({
|
|
|
37
37
|
}
|
|
38
38
|
const viewShell = vue.resolveComponent("IBizViewShell");
|
|
39
39
|
return vue.createVNode("div", {
|
|
40
|
-
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass]
|
|
40
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
41
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
41
42
|
}, [vue.h(viewShell, {
|
|
42
43
|
context: this.controller.navContext,
|
|
43
44
|
params: this.controller.navParams,
|
|
@@ -129,7 +129,8 @@ const FormGroupPanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
129
129
|
}, [!state.isShowMore ? "\u663E\u793A\u66F4\u591A" : "\u6536\u8D77"])]);
|
|
130
130
|
}
|
|
131
131
|
return vue.createVNode("div", {
|
|
132
|
-
"class": classArr
|
|
132
|
+
"class": classArr,
|
|
133
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
133
134
|
}, [header, vue.createVNode("div", {
|
|
134
135
|
"class": [this.ns.b("content")]
|
|
135
136
|
}, [content]), footer]);
|
|
@@ -47,7 +47,9 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
47
47
|
controller: this.controller.editor,
|
|
48
48
|
disabled: this.controller.state.disabled,
|
|
49
49
|
readonly: this.controller.model.editor.readOnly,
|
|
50
|
-
onChange: this.onValueChange
|
|
50
|
+
onChange: this.onValueChange,
|
|
51
|
+
onFocus: (event) => this.c.onFocus(event),
|
|
52
|
+
onBlur: (event) => this.c.onBlur(event)
|
|
51
53
|
};
|
|
52
54
|
if (this.c.form.state.isLoaded) {
|
|
53
55
|
if (this.$slots.default) {
|
|
@@ -70,7 +72,8 @@ const FormItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
70
72
|
"label": this.modelData.caption,
|
|
71
73
|
"labelClass": this.controller.labelClass,
|
|
72
74
|
"label-pos": this.c.model.labelPos,
|
|
73
|
-
"label-width": this.c.model.labelWidth
|
|
75
|
+
"label-width": this.c.model.labelWidth,
|
|
76
|
+
"onClick": (event) => this.c.onClick(event)
|
|
74
77
|
}, _isSlot(editor) ? editor : {
|
|
75
78
|
default: () => [editor]
|
|
76
79
|
});
|
|
@@ -32,7 +32,8 @@ const FormRawItem = /* @__PURE__ */ vue.defineComponent({
|
|
|
32
32
|
}
|
|
33
33
|
return vue.createVNode(vue.resolveComponent("iBizRawItem"), {
|
|
34
34
|
"class": [this.ns.b(), ...this.controller.containerClass],
|
|
35
|
-
"rawItem": this.modelData
|
|
35
|
+
"rawItem": this.modelData,
|
|
36
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
36
37
|
}, null);
|
|
37
38
|
}
|
|
38
39
|
});
|
|
@@ -36,7 +36,8 @@ const FormTabPage = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
37
37
|
return vue.createVNode(vue.resolveComponent("iBizRow"), {
|
|
38
38
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
39
|
-
"layout": this.modelData.layout
|
|
39
|
+
"layout": this.modelData.layout,
|
|
40
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
40
41
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
41
42
|
const props = slot.props;
|
|
42
43
|
if (!props || !props.controller) {
|
|
@@ -36,7 +36,8 @@ const FormTabPanel = /* @__PURE__ */ vue.defineComponent({
|
|
|
36
36
|
const defaultSlots = ((_b = (_a = this.$slots).default) == null ? void 0 : _b.call(_a)) || [];
|
|
37
37
|
return vue.createVNode(vue.resolveComponent("el-tabs"), {
|
|
38
38
|
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass],
|
|
39
|
-
"model-value": (_c = this.modelData.deformTabPages) == null ? void 0 : _c[0].id
|
|
39
|
+
"model-value": (_c = this.modelData.deformTabPages) == null ? void 0 : _c[0].id,
|
|
40
|
+
"onClick": (event) => this.controller.onClick(event)
|
|
40
41
|
}, _isSlot(_slot = defaultSlots.map((slot) => {
|
|
41
42
|
const props = slot.props;
|
|
42
43
|
if (!props || !props.controller) {
|
|
@@ -39,6 +39,7 @@ var treeGridExView_engine = require('./tree-grid-ex-view.engine.cjs');
|
|
|
39
39
|
var treeGridView_engine = require('./tree-grid-view.engine.cjs');
|
|
40
40
|
var meditView9_engine = require('./medit-view9.engine.cjs');
|
|
41
41
|
var chartExpView_engine = require('./chart-exp-view.engine.cjs');
|
|
42
|
+
var mapView_engine = require('./map-view.engine.cjs');
|
|
42
43
|
|
|
43
44
|
"use strict";
|
|
44
45
|
const IBizViewEngine = {
|
|
@@ -251,6 +252,10 @@ const IBizViewEngine = {
|
|
|
251
252
|
"VIEW_DEMEDITVIEW9",
|
|
252
253
|
(c) => new meditView9_engine.MEditView9Engine(c)
|
|
253
254
|
);
|
|
255
|
+
ibiz.engine.register(
|
|
256
|
+
"VIEW_DEMAPVIEW",
|
|
257
|
+
(c) => new mapView_engine.MapViewEngine(c)
|
|
258
|
+
);
|
|
254
259
|
}
|
|
255
260
|
};
|
|
256
261
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var runtime = require('@ibiz-template/runtime');
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
class MapViewEngine extends runtime.MDViewEngine {
|
|
7
|
+
get map() {
|
|
8
|
+
return this.view.getController("map");
|
|
9
|
+
}
|
|
10
|
+
async onCreated() {
|
|
11
|
+
super.onCreated();
|
|
12
|
+
if (!this.view.slotProps.map) {
|
|
13
|
+
this.view.slotProps.map = {};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
exports.MapViewEngine = MapViewEngine;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ibiz-template/vue3-components",
|
|
3
|
-
"version": "0.2.18-dev.
|
|
3
|
+
"version": "0.2.18-dev.2",
|
|
4
4
|
"description": "使用 rollup 编译 vue 组件或者 jsx",
|
|
5
5
|
"main": "lib/index.cjs",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"@floating-ui/dom": "^1.5.3",
|
|
27
27
|
"@ibiz-template-plugin/ai-chat": "^0.0.1",
|
|
28
28
|
"@ibiz-template/core": "^0.2.18-dev.1",
|
|
29
|
-
"@ibiz-template/model-helper": "^0.2.18-dev.
|
|
30
|
-
"@ibiz-template/runtime": "^0.2.18-dev.
|
|
29
|
+
"@ibiz-template/model-helper": "^0.2.18-dev.2",
|
|
30
|
+
"@ibiz-template/runtime": "^0.2.18-dev.2",
|
|
31
31
|
"@ibiz-template/theme": "^0.2.13",
|
|
32
|
-
"@ibiz-template/vue3-util": "^0.2.18-dev.
|
|
32
|
+
"@ibiz-template/vue3-util": "^0.2.18-dev.2",
|
|
33
33
|
"@ibiz/model-core": "^0.0.20",
|
|
34
34
|
"@imengyu/vue3-context-menu": "^1.3.3",
|
|
35
35
|
"@monaco-editor/loader": "^1.4.0",
|