@ibiz-template/vue3-components 0.3.4 → 0.3.6-dev.0
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-IQggCeg0.js +14 -0
- package/dist/index-IQggCeg0.js.map +1 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{xlsx-util-SHuu4UVN.js → xlsx-util--ODZUMX_.js} +2 -2
- package/dist/{xlsx-util-SHuu4UVN.js.map → xlsx-util--ODZUMX_.js.map} +1 -1
- package/es/control/form/edit-form/edit-form.mjs +18 -3
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.d.ts +7 -6
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.mjs +51 -53
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.d.ts +19 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.mjs +72 -0
- package/es/control/form/form-detail/form-mdctrl/{form-mdctrl-data-view/form-mdctrl-data-view.d.ts → form-mdctrl-repeater/form-mdctrl-repeater.d.ts} +5 -7
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.mjs +57 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.d.ts +2 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.mjs +203 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.d.ts +19 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.mjs +59 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.d.ts +29 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.mjs +54 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -0
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.d.ts +4 -2
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.mjs +40 -54
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl.provider.mjs +21 -2
- package/es/control/form/form-detail/form-mdctrl/index.d.ts +2 -3
- package/es/control/form/form-detail/form-mdctrl/index.mjs +6 -14
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.d.ts +40 -0
- package/es/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.mjs +99 -0
- package/es/control/grid/grid-column/grid-field-column/grid-field-column.mjs +1 -1
- package/es/control/index.d.ts +1 -1
- package/es/control/index.mjs +1 -3
- package/es/control/report-panel/index.d.ts +2 -0
- package/es/control/report-panel/index.mjs +23 -0
- package/es/control/report-panel/report-detail/index.d.ts +2 -0
- package/es/control/report-panel/report-detail/index.mjs +4 -0
- package/es/control/report-panel/report-detail/user-report-panel/index.d.ts +14 -0
- package/es/control/report-panel/report-detail/user-report-panel/index.mjs +12 -0
- package/es/control/report-panel/report-detail/user-report-panel/user-report-panel.css +1 -0
- package/es/control/report-panel/report-detail/user-report-panel/user-report-panel.d.ts +16 -0
- package/es/control/report-panel/report-detail/user-report-panel/user-report-panel.mjs +45 -0
- package/es/control/report-panel/report-detail/user2-report-panel/index.d.ts +15 -0
- package/es/control/report-panel/report-detail/user2-report-panel/index.mjs +12 -0
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.css +1 -0
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.d.ts +17 -0
- package/es/control/report-panel/report-detail/user2-report-panel/user2-report-panel.mjs +67 -0
- package/es/control/report-panel/report-panel.css +1 -0
- package/es/control/{panel/panel/panel.d.ts → report-panel/report-panel.d.ts} +12 -22
- package/es/control/report-panel/report-panel.mjs +72 -0
- package/es/control/report-panel/report-panel.provider.d.ts +11 -0
- package/es/control/{panel/panel/panel.provider.mjs → report-panel/report-panel.provider.mjs} +3 -3
- package/es/control/tree-grid/tree-grid.mjs +1 -1
- package/es/editor/text-box/input/input.d.ts +1 -0
- package/es/editor/text-box/input/input.mjs +6 -2
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.mjs +7 -2
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.d.ts +1 -0
- package/es/editor/upload/ibiz-image-upload/ibiz-image-upload.mjs +6 -1
- package/es/index.mjs +4 -4
- package/es/panel-component/searchform-buttons/index.d.ts +1 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.controller.d.ts +9 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.controller.mjs +11 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/es/panel-component/searchform-buttons/searchform-buttons.d.ts +1 -0
- package/es/panel-component/searchform-buttons/searchform-buttons.mjs +35 -1
- package/es/view/login-view/login-view.mjs +1 -18
- package/es/view-engine/edit-view.engine.d.ts +9 -0
- package/es/view-engine/edit-view.engine.mjs +28 -0
- package/es/view-engine/index.mjs +5 -0
- package/es/view-engine/login-view.engine.mjs +6 -35
- package/es/view-engine/report-view.engine.d.ts +96 -0
- package/es/view-engine/report-view.engine.mjs +178 -0
- package/es/view-engine/wf-dyna-action-view.engine.mjs +2 -0
- package/lib/control/form/edit-form/edit-form.cjs +17 -2
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.cjs +48 -53
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-form/form-mdctrl-form.css +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.cjs +74 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-md/form-mdctrl-md.css +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater.cjs +59 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.cjs +205 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-grid/repeater-grid.css +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-multi-form/repeater-multi-form.cjs +61 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.cjs +56 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/repeater-single-form/repeater-single-form.css +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.cjs +38 -52
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.css +1 -0
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl.provider.cjs +20 -1
- package/lib/control/form/form-detail/form-mdctrl/index.cjs +6 -14
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.cjs +101 -0
- package/lib/control/form/form-detail/form-mdctrl/mdctrl-container/mdctrl-container.css +1 -0
- package/lib/control/grid/grid-column/grid-field-column/grid-field-column.cjs +1 -1
- package/lib/control/index.cjs +64 -67
- package/lib/control/report-panel/index.cjs +28 -0
- package/lib/control/report-panel/report-detail/index.cjs +9 -0
- package/lib/control/report-panel/report-detail/user-report-panel/index.cjs +17 -0
- package/lib/control/report-panel/report-detail/user-report-panel/user-report-panel.cjs +47 -0
- package/lib/control/report-panel/report-detail/user-report-panel/user-report-panel.css +1 -0
- package/lib/control/report-panel/report-detail/user2-report-panel/index.cjs +17 -0
- package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.cjs +69 -0
- package/lib/control/report-panel/report-detail/user2-report-panel/user2-report-panel.css +1 -0
- package/lib/control/report-panel/report-panel.cjs +74 -0
- package/lib/control/report-panel/report-panel.css +1 -0
- package/lib/control/{panel/panel/panel.provider.cjs → report-panel/report-panel.provider.cjs} +3 -3
- package/lib/control/tree-grid/tree-grid.cjs +1 -1
- package/lib/editor/text-box/input/input.cjs +6 -2
- package/lib/editor/upload/ibiz-file-upload/ibiz-file-upload.cjs +6 -1
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.cjs +5 -0
- package/lib/editor/upload/ibiz-image-upload/ibiz-image-upload.css +1 -1
- package/lib/index.cjs +120 -121
- package/lib/panel-component/searchform-buttons/searchform-buttons.cjs +35 -1
- package/lib/panel-component/searchform-buttons/searchform-buttons.controller.cjs +11 -0
- package/lib/panel-component/searchform-buttons/searchform-buttons.css +1 -1
- package/lib/view/login-view/login-view.cjs +1 -18
- package/lib/view-engine/edit-view.engine.cjs +28 -0
- package/lib/view-engine/index.cjs +5 -0
- package/lib/view-engine/login-view.engine.cjs +6 -35
- package/lib/view-engine/report-view.engine.cjs +180 -0
- package/lib/view-engine/wf-dyna-action-view.engine.cjs +2 -0
- package/package.json +7 -7
- package/dist/index-OcHgH3lj.js +0 -14
- package/dist/index-OcHgH3lj.js.map +0 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.css +0 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.d.ts +0 -36
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.mjs +0 -67
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.mjs +0 -68
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.d.ts +0 -17
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.mjs +0 -70
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.d.ts +0 -17
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.mjs +0 -68
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-shell.d.ts +0 -72
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-shell.mjs +0 -158
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form.d.ts +0 -17
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form.mjs +0 -58
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form-one/form-mdctrl-repeater-form-one.d.ts +0 -17
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form-one/form-mdctrl-repeater-form-one.mjs +0 -55
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-grid/form-mdctrl-repeater-grid.css +0 -1
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-grid/form-mdctrl-repeater-grid.d.ts +0 -19
- package/es/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-grid/form-mdctrl-repeater-grid.mjs +0 -113
- package/es/control/panel/index.d.ts +0 -2
- package/es/control/panel/index.mjs +0 -4
- package/es/control/panel/panel/index.d.ts +0 -56
- package/es/control/panel/panel/index.mjs +0 -12
- package/es/control/panel/panel/panel.css +0 -1
- package/es/control/panel/panel/panel.mjs +0 -133
- package/es/control/panel/panel/panel.provider.d.ts +0 -13
- package/es/control/panel/view-layout-panel/index.d.ts +0 -57
- package/es/control/panel/view-layout-panel/index.mjs +0 -18
- package/es/control/panel/view-layout-panel/view-layout-panel.css +0 -1
- package/es/control/panel/view-layout-panel/view-layout-panel.d.ts +0 -61
- package/es/control/panel/view-layout-panel/view-layout-panel.mjs +0 -135
- package/es/control/panel/view-layout-panel/view-layout-panel.provider.d.ts +0 -13
- package/es/control/panel/view-layout-panel/view-layout-panel.provider.mjs +0 -14
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.cjs +0 -72
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-container/form-mdctrl-container.css +0 -1
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-data-view/form-mdctrl-data-view.cjs +0 -73
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-grid/form-mdctrl-grid.cjs +0 -75
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-list/form-mdctrl-list.cjs +0 -73
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-shell.cjs +0 -160
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form.cjs +0 -63
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-form-one/form-mdctrl-repeater-form-one.cjs +0 -60
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-grid/form-mdctrl-repeater-grid.cjs +0 -118
- package/lib/control/form/form-detail/form-mdctrl/form-mdctrl-repeater/form-mdctrl-repeater-grid/form-mdctrl-repeater-grid.css +0 -1
- package/lib/control/panel/index.cjs +0 -9
- package/lib/control/panel/panel/index.cjs +0 -17
- package/lib/control/panel/panel/panel.cjs +0 -135
- package/lib/control/panel/panel/panel.css +0 -1
- package/lib/control/panel/view-layout-panel/index.cjs +0 -23
- package/lib/control/panel/view-layout-panel/view-layout-panel.cjs +0 -137
- package/lib/control/panel/view-layout-panel/view-layout-panel.css +0 -1
- package/lib/control/panel/view-layout-panel/view-layout-panel.provider.cjs +0 -16
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { isVNode, resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { FormMDCtrlContainer } from '../../form-mdctrl-container/form-mdctrl-container.mjs';
|
|
4
|
-
|
|
5
|
-
"use strict";
|
|
6
|
-
function _isSlot(s) {
|
|
7
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
-
}
|
|
9
|
-
const FormMDCtrlRepeaterFormOne = /* @__PURE__ */ defineComponent({
|
|
10
|
-
name: "IBizFormMDCtrlRepeaterFormOne",
|
|
11
|
-
props: {
|
|
12
|
-
controller: {
|
|
13
|
-
type: Object,
|
|
14
|
-
required: true
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
setup(props) {
|
|
18
|
-
const ns = useNamespace("form-mdctrl");
|
|
19
|
-
useController(props.controller);
|
|
20
|
-
const c = props.controller;
|
|
21
|
-
return {
|
|
22
|
-
ns,
|
|
23
|
-
c
|
|
24
|
-
};
|
|
25
|
-
},
|
|
26
|
-
render() {
|
|
27
|
-
let _slot;
|
|
28
|
-
if (!this.c) {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
const renderContent = () => {
|
|
32
|
-
return createVNode(resolveComponent("iBizFormMDCtrlRepeaterFormShell"), {
|
|
33
|
-
"modelData": this.c.model,
|
|
34
|
-
"context": this.c.parent.form.context,
|
|
35
|
-
"params": this.c.parent.form.params,
|
|
36
|
-
"data": this.c.data,
|
|
37
|
-
"index": 0,
|
|
38
|
-
"controller": this.c,
|
|
39
|
-
"buttonVisible": false,
|
|
40
|
-
"onControllerAppear": (c) => {
|
|
41
|
-
this.c.setFromController(c);
|
|
42
|
-
}
|
|
43
|
-
}, null);
|
|
44
|
-
};
|
|
45
|
-
return createVNode(FormMDCtrlContainer, {
|
|
46
|
-
"class": this.ns.b("repeater-form-one"),
|
|
47
|
-
"controller": this.c.parent,
|
|
48
|
-
"buttonVisible": false
|
|
49
|
-
}, _isSlot(_slot = renderContent()) ? _slot : {
|
|
50
|
-
default: () => [_slot]
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { FormMDCtrlRepeaterFormOne, FormMDCtrlRepeaterFormOne as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-form-mdctrl .ibiz-form-mdctrl-table-left-remove-btn{display:none;padding:0;color:var(--ibiz-color-danger)}.ibiz-form-mdctrl .ibiz-form-mdctrl-table-left-index{display:inline-block}.ibiz-form-mdctrl .ibiz-form-mdctrl-table-left{height:28px}.ibiz-form-mdctrl .el-table__row:hover .ibiz-form-mdctrl-table-left-remove-btn{display:inline-block}.ibiz-form-mdctrl .el-table__row:hover .ibiz-form-mdctrl-table-left-index{display:none}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PropType } from 'vue';
|
|
2
|
-
import { FormMDCtrlRepeaterGridController } from '@ibiz-template/runtime';
|
|
3
|
-
import './form-mdctrl-repeater-grid.scss';
|
|
4
|
-
export declare const FormMDCtrlRepeaterGrid: import("vue").DefineComponent<{
|
|
5
|
-
controller: {
|
|
6
|
-
type: PropType<FormMDCtrlRepeaterGridController>;
|
|
7
|
-
required: true;
|
|
8
|
-
};
|
|
9
|
-
}, {
|
|
10
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
11
|
-
c: FormMDCtrlRepeaterGridController;
|
|
12
|
-
tableData: import("vue").ComputedRef<IData[]>;
|
|
13
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
14
|
-
controller: {
|
|
15
|
-
type: PropType<FormMDCtrlRepeaterGridController>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
}>>, {}, {}>;
|
|
19
|
-
export default FormMDCtrlRepeaterGrid;
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { isVNode, reactive, computed, resolveComponent, h, createVNode, createTextVNode, defineComponent } from 'vue';
|
|
2
|
-
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { FormMDCtrlContainer } from '../../form-mdctrl-container/form-mdctrl-container.mjs';
|
|
4
|
-
import './form-mdctrl-repeater-grid.css';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
function _isSlot(s) {
|
|
8
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
-
}
|
|
10
|
-
const FormMDCtrlRepeaterGrid = /* @__PURE__ */ defineComponent({
|
|
11
|
-
name: "IBizFormMDCtrlRepeaterGrid",
|
|
12
|
-
props: {
|
|
13
|
-
controller: {
|
|
14
|
-
type: Object,
|
|
15
|
-
required: true
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
setup(props) {
|
|
19
|
-
const ns = useNamespace("form-mdctrl");
|
|
20
|
-
useController(props.controller);
|
|
21
|
-
const c = props.controller;
|
|
22
|
-
c.columns = reactive(c.columns);
|
|
23
|
-
const tableData = computed(() => {
|
|
24
|
-
return c.data.map((item) => item);
|
|
25
|
-
});
|
|
26
|
-
return {
|
|
27
|
-
ns,
|
|
28
|
-
c,
|
|
29
|
-
tableData
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
render() {
|
|
33
|
-
let _slot;
|
|
34
|
-
const renderColumn = (model) => {
|
|
35
|
-
const {
|
|
36
|
-
codeName: columnName,
|
|
37
|
-
caption
|
|
38
|
-
} = model;
|
|
39
|
-
return createVNode(resolveComponent("el-table-column"), {
|
|
40
|
-
"label": caption,
|
|
41
|
-
"prop": columnName,
|
|
42
|
-
"align": "center"
|
|
43
|
-
}, {
|
|
44
|
-
default: ({
|
|
45
|
-
row,
|
|
46
|
-
$index
|
|
47
|
-
}) => {
|
|
48
|
-
if (this.c.editorMap[columnName]) {
|
|
49
|
-
const comp = resolveComponent(this.c.editorMap[columnName].provider.gridEditor);
|
|
50
|
-
return h(comp, {
|
|
51
|
-
value: row[columnName],
|
|
52
|
-
data: row,
|
|
53
|
-
controller: this.c.editorMap[columnName].controller,
|
|
54
|
-
onChange: (val) => {
|
|
55
|
-
this.c.rowDataChange(val, columnName, $index);
|
|
56
|
-
}
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
const renderIndex = (index) => {
|
|
63
|
-
return createVNode("div", {
|
|
64
|
-
"class": this.ns.b("table-left")
|
|
65
|
-
}, [createVNode("span", {
|
|
66
|
-
"class": this.ns.b("table-left-index")
|
|
67
|
-
}, [index + 1]), this.controller.parent.isDelete && createVNode(resolveComponent("el-popconfirm"), {
|
|
68
|
-
"title": "\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879",
|
|
69
|
-
"confirm-button-text": "\u786E\u8BA4",
|
|
70
|
-
"cancel-button-text": "\u53D6\u6D88",
|
|
71
|
-
"onConfirm": () => this.c.onDataRemove(index)
|
|
72
|
-
}, {
|
|
73
|
-
reference: () => {
|
|
74
|
-
return createVNode(resolveComponent("el-button"), {
|
|
75
|
-
"size": "mini",
|
|
76
|
-
"type": "danger",
|
|
77
|
-
"text": true,
|
|
78
|
-
"class": this.ns.b("table-left-remove-btn")
|
|
79
|
-
}, {
|
|
80
|
-
default: () => [createTextVNode("\u5220\u9664")]
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
})]);
|
|
84
|
-
};
|
|
85
|
-
const renderContent = () => {
|
|
86
|
-
return createVNode(resolveComponent("el-table"), {
|
|
87
|
-
"class": this.ns.e("table"),
|
|
88
|
-
"show-header": true,
|
|
89
|
-
"data": this.tableData
|
|
90
|
-
}, {
|
|
91
|
-
default: () => {
|
|
92
|
-
return [createVNode(resolveComponent("el-table-column"), {
|
|
93
|
-
"type": "index",
|
|
94
|
-
"index": renderIndex
|
|
95
|
-
}, null), ...this.c.columns.map((model) => {
|
|
96
|
-
return renderColumn(model);
|
|
97
|
-
})];
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
};
|
|
101
|
-
return createVNode(FormMDCtrlContainer, {
|
|
102
|
-
"class": this.ns.b("repeater-grid"),
|
|
103
|
-
"controller": this.c.parent,
|
|
104
|
-
"onInsertButtonClick": () => {
|
|
105
|
-
this.c.onDataInsert();
|
|
106
|
-
}
|
|
107
|
-
}, _isSlot(_slot = renderContent()) ? _slot : {
|
|
108
|
-
default: () => [_slot]
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
export { FormMDCtrlRepeaterGrid, FormMDCtrlRepeaterGrid as default };
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
export declare const IBizPanelControl: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
modelData: {
|
|
3
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanel>;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
context: {
|
|
7
|
-
type: import("vue").PropType<IContext>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
params: {
|
|
11
|
-
type: import("vue").PropType<IParams>;
|
|
12
|
-
default: () => {};
|
|
13
|
-
};
|
|
14
|
-
provider: {
|
|
15
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
|
|
16
|
-
};
|
|
17
|
-
container: {
|
|
18
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
19
|
-
};
|
|
20
|
-
data: import("vue").PropType<IData>;
|
|
21
|
-
loadDefault: {
|
|
22
|
-
type: BooleanConstructor;
|
|
23
|
-
default: boolean;
|
|
24
|
-
};
|
|
25
|
-
}, {
|
|
26
|
-
c: import("@ibiz-template/runtime").PanelController<import("@ibiz/model-core").IPanel, import("@ibiz-template/runtime").IPanelState, import("@ibiz-template/runtime").IPanelEvent>;
|
|
27
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
28
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
|
-
modelData: {
|
|
30
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanel>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
context: {
|
|
34
|
-
type: import("vue").PropType<IContext>;
|
|
35
|
-
required: true;
|
|
36
|
-
};
|
|
37
|
-
params: {
|
|
38
|
-
type: import("vue").PropType<IParams>;
|
|
39
|
-
default: () => {};
|
|
40
|
-
};
|
|
41
|
-
provider: {
|
|
42
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
|
|
43
|
-
};
|
|
44
|
-
container: {
|
|
45
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
46
|
-
};
|
|
47
|
-
data: import("vue").PropType<IData>;
|
|
48
|
-
loadDefault: {
|
|
49
|
-
type: BooleanConstructor;
|
|
50
|
-
default: boolean;
|
|
51
|
-
};
|
|
52
|
-
}>>, {
|
|
53
|
-
params: IParams;
|
|
54
|
-
loadDefault: boolean;
|
|
55
|
-
}, {}>>;
|
|
56
|
-
export default IBizPanelControl;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { PanelControl } from './panel.mjs';
|
|
4
|
-
import { PanelProvider } from './panel.provider.mjs';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
const IBizPanelControl = withInstall(PanelControl, function(v) {
|
|
8
|
-
v.component(PanelControl.name, PanelControl);
|
|
9
|
-
registerControlProvider(ControlType.PANEL, () => new PanelProvider());
|
|
10
|
-
});
|
|
11
|
-
|
|
12
|
-
export { IBizPanelControl, IBizPanelControl as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-control-panel{width:100%;height:100%}.ibiz-control-panel-content{width:100%;height:100%}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { isVNode, createTextVNode, createVNode, resolveComponent, h, watch, reactive, defineComponent } from 'vue';
|
|
2
|
-
import { useControlController, useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
-
import './panel.css';
|
|
4
|
-
import { PanelController } from '@ibiz-template/runtime';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
function _isSlot(s) {
|
|
8
|
-
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
9
|
-
}
|
|
10
|
-
function renderPanelItem(panelItem, c, ins) {
|
|
11
|
-
var _a, _b;
|
|
12
|
-
if (panelItem.hidden) {
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
const {
|
|
16
|
-
providers,
|
|
17
|
-
panelItems
|
|
18
|
-
} = c;
|
|
19
|
-
const provider = providers[panelItem.id];
|
|
20
|
-
if (!provider) {
|
|
21
|
-
return createVNode("div", null, [createTextVNode("\u6682\u672A\u652F\u6301\u7684\u9762\u677F\u9879: "), panelItem.id, createTextVNode(" - "), panelItem.itemType]);
|
|
22
|
-
}
|
|
23
|
-
const component = resolveComponent(provider.component);
|
|
24
|
-
let children;
|
|
25
|
-
if (panelItem.itemType === "CTRLPOS" && ins.$slots[panelItem.id]) {
|
|
26
|
-
children = () => {
|
|
27
|
-
return ins.$slots[panelItem.id]();
|
|
28
|
-
};
|
|
29
|
-
} else if (panelItem.itemType === "TABPANEL" && ((_a = panelItem.panelTabPages) == null ? void 0 : _a.length)) {
|
|
30
|
-
children = () => {
|
|
31
|
-
return panelItem.panelTabPages.map((child) => {
|
|
32
|
-
return renderPanelItem(child, c, ins);
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
} else if ((_b = panelItem.panelItems) == null ? void 0 : _b.length) {
|
|
36
|
-
children = () => {
|
|
37
|
-
return panelItem.panelItems.map((child) => {
|
|
38
|
-
return renderPanelItem(child, c, ins);
|
|
39
|
-
});
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
return h(component, {
|
|
43
|
-
modelData: panelItem,
|
|
44
|
-
controller: panelItems[panelItem.id],
|
|
45
|
-
key: panelItem.id
|
|
46
|
-
}, children);
|
|
47
|
-
}
|
|
48
|
-
const PanelControl = /* @__PURE__ */ defineComponent({
|
|
49
|
-
name: "IBizPanelControl",
|
|
50
|
-
props: {
|
|
51
|
-
modelData: {
|
|
52
|
-
type: Object,
|
|
53
|
-
required: true
|
|
54
|
-
},
|
|
55
|
-
context: {
|
|
56
|
-
type: Object,
|
|
57
|
-
required: true
|
|
58
|
-
},
|
|
59
|
-
params: {
|
|
60
|
-
type: Object,
|
|
61
|
-
default: () => ({})
|
|
62
|
-
},
|
|
63
|
-
provider: {
|
|
64
|
-
type: Object
|
|
65
|
-
},
|
|
66
|
-
container: {
|
|
67
|
-
type: Object
|
|
68
|
-
},
|
|
69
|
-
data: Object,
|
|
70
|
-
loadDefault: {
|
|
71
|
-
type: Boolean,
|
|
72
|
-
default: true
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
setup(props) {
|
|
76
|
-
const c = useControlController((...args) => new PanelController(...args, props.container));
|
|
77
|
-
const ns = useNamespace(`control-${c.model.controlType.toLowerCase()}`);
|
|
78
|
-
watch(() => props.data, (newVal) => {
|
|
79
|
-
if (newVal) {
|
|
80
|
-
c.setInputData(newVal);
|
|
81
|
-
c.load();
|
|
82
|
-
}
|
|
83
|
-
}, {
|
|
84
|
-
immediate: true
|
|
85
|
-
});
|
|
86
|
-
c.evt.on("onCreated", () => {
|
|
87
|
-
const keys = Object.keys(c.panelItems);
|
|
88
|
-
keys.forEach((key) => {
|
|
89
|
-
const panelItem = c.panelItems[key];
|
|
90
|
-
panelItem.state = reactive(panelItem.state);
|
|
91
|
-
});
|
|
92
|
-
});
|
|
93
|
-
return {
|
|
94
|
-
c,
|
|
95
|
-
ns
|
|
96
|
-
};
|
|
97
|
-
},
|
|
98
|
-
render() {
|
|
99
|
-
const {
|
|
100
|
-
state,
|
|
101
|
-
model
|
|
102
|
-
} = this.c;
|
|
103
|
-
return createVNode(resolveComponent("iBizControlBase"), {
|
|
104
|
-
"controller": this.c
|
|
105
|
-
}, {
|
|
106
|
-
default: () => [createVNode(resolveComponent("iBizRow"), {
|
|
107
|
-
"class": this.ns.b("content"),
|
|
108
|
-
"layout": {
|
|
109
|
-
layout: "FLEX"
|
|
110
|
-
}
|
|
111
|
-
}, {
|
|
112
|
-
default: () => {
|
|
113
|
-
var _a;
|
|
114
|
-
return [state.isCreated && (this.$slots.default ? this.$slots.default({
|
|
115
|
-
panelItems: this.c.panelItems
|
|
116
|
-
}) : (_a = model.rootPanelItems) == null ? void 0 : _a.map((panelItem) => {
|
|
117
|
-
let _slot;
|
|
118
|
-
const subC = this.c.panelItems[panelItem.id];
|
|
119
|
-
panelItem.layoutPos.layout = "FLEX";
|
|
120
|
-
return createVNode(resolveComponent("iBizCol"), {
|
|
121
|
-
"layoutPos": panelItem.layoutPos,
|
|
122
|
-
"state": subC.state
|
|
123
|
-
}, _isSlot(_slot = renderPanelItem(panelItem, this.c, this)) ? _slot : {
|
|
124
|
-
default: () => [_slot]
|
|
125
|
-
});
|
|
126
|
-
}))];
|
|
127
|
-
}
|
|
128
|
-
})]
|
|
129
|
-
});
|
|
130
|
-
}
|
|
131
|
-
});
|
|
132
|
-
|
|
133
|
-
export { PanelControl };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { IControlProvider } from '@ibiz-template/runtime';
|
|
2
|
-
/**
|
|
3
|
-
* 面板部件适配器
|
|
4
|
-
*
|
|
5
|
-
* @author lxm
|
|
6
|
-
* @date 2022-10-25 18:10:57
|
|
7
|
-
* @export
|
|
8
|
-
* @class ViewLayoutPanelProvider
|
|
9
|
-
* @implements {IControlProvider}
|
|
10
|
-
*/
|
|
11
|
-
export declare class PanelProvider implements IControlProvider {
|
|
12
|
-
component: string;
|
|
13
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export declare const IBizViewLayoutPanelControl: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
-
modelData: {
|
|
3
|
-
type: import("vue").PropType<import("@ibiz/model-core").IViewLayoutPanel>;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
context: {
|
|
7
|
-
type: import("vue").PropType<IContext>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
params: {
|
|
11
|
-
type: import("vue").PropType<IParams>;
|
|
12
|
-
default: () => {};
|
|
13
|
-
};
|
|
14
|
-
provider: {
|
|
15
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
|
|
16
|
-
};
|
|
17
|
-
container: {
|
|
18
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
19
|
-
};
|
|
20
|
-
data: import("vue").PropType<IData>;
|
|
21
|
-
}, {
|
|
22
|
-
c: import("@ibiz-template/runtime").ViewLayoutPanelController;
|
|
23
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
24
|
-
renderPanelItem: (panelItem: import("@ibiz/model-core").IPanelItem, options?: {
|
|
25
|
-
providers: {
|
|
26
|
-
[key: string]: import("@ibiz-template/runtime").IPanelItemProvider;
|
|
27
|
-
};
|
|
28
|
-
panelItems: {
|
|
29
|
-
[key: string]: import("@ibiz-template/runtime").IPanelItemController;
|
|
30
|
-
};
|
|
31
|
-
} | undefined) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}> | null;
|
|
34
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
-
modelData: {
|
|
36
|
-
type: import("vue").PropType<import("@ibiz/model-core").IViewLayoutPanel>;
|
|
37
|
-
required: true;
|
|
38
|
-
};
|
|
39
|
-
context: {
|
|
40
|
-
type: import("vue").PropType<IContext>;
|
|
41
|
-
required: true;
|
|
42
|
-
};
|
|
43
|
-
params: {
|
|
44
|
-
type: import("vue").PropType<IParams>;
|
|
45
|
-
default: () => {};
|
|
46
|
-
};
|
|
47
|
-
provider: {
|
|
48
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IControlProvider>;
|
|
49
|
-
};
|
|
50
|
-
container: {
|
|
51
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
52
|
-
};
|
|
53
|
-
data: import("vue").PropType<IData>;
|
|
54
|
-
}>>, {
|
|
55
|
-
params: IParams;
|
|
56
|
-
}, {}>>;
|
|
57
|
-
export default IBizViewLayoutPanelControl;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
|
-
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
-
import { ViewLayoutPanelControl } from './view-layout-panel.mjs';
|
|
4
|
-
import { ViewLayoutPanelProvider } from './view-layout-panel.provider.mjs';
|
|
5
|
-
|
|
6
|
-
"use strict";
|
|
7
|
-
const IBizViewLayoutPanelControl = withInstall(
|
|
8
|
-
ViewLayoutPanelControl,
|
|
9
|
-
function(v) {
|
|
10
|
-
v.component(ViewLayoutPanelControl.name, ViewLayoutPanelControl);
|
|
11
|
-
registerControlProvider(
|
|
12
|
-
ControlType.VIEW_LAYOUT_PANEL,
|
|
13
|
-
() => new ViewLayoutPanelProvider()
|
|
14
|
-
);
|
|
15
|
-
}
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
export { IBizViewLayoutPanelControl, IBizViewLayoutPanelControl as default };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.ibiz-control-viewlayoutpanel{width:100%;height:100%}.ibiz-control-viewlayoutpanel-content{width:100%;height:100%}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import { PropType, VNode } from 'vue';
|
|
2
|
-
import { IPanelItem, IViewLayoutPanel } from '@ibiz/model-core';
|
|
3
|
-
import './view-layout-panel.scss';
|
|
4
|
-
import { IController, IControlProvider, IPanelItemController, IPanelItemProvider, ViewLayoutPanelController } from '@ibiz-template/runtime';
|
|
5
|
-
/**
|
|
6
|
-
* 视图布局面板组件
|
|
7
|
-
*/
|
|
8
|
-
export declare const ViewLayoutPanelControl: import("vue").DefineComponent<{
|
|
9
|
-
modelData: {
|
|
10
|
-
type: PropType<IViewLayoutPanel>;
|
|
11
|
-
required: true;
|
|
12
|
-
};
|
|
13
|
-
context: {
|
|
14
|
-
type: PropType<IContext>;
|
|
15
|
-
required: true;
|
|
16
|
-
};
|
|
17
|
-
params: {
|
|
18
|
-
type: PropType<IParams>;
|
|
19
|
-
default: () => {};
|
|
20
|
-
};
|
|
21
|
-
provider: {
|
|
22
|
-
type: PropType<IControlProvider>;
|
|
23
|
-
};
|
|
24
|
-
container: {
|
|
25
|
-
type: PropType<IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
26
|
-
};
|
|
27
|
-
data: PropType<IData>;
|
|
28
|
-
}, {
|
|
29
|
-
c: ViewLayoutPanelController;
|
|
30
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
31
|
-
renderPanelItem: (panelItem: IPanelItem, options?: {
|
|
32
|
-
providers: {
|
|
33
|
-
[key: string]: IPanelItemProvider;
|
|
34
|
-
};
|
|
35
|
-
panelItems: {
|
|
36
|
-
[key: string]: IPanelItemController;
|
|
37
|
-
};
|
|
38
|
-
} | undefined) => VNode | null;
|
|
39
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
-
modelData: {
|
|
41
|
-
type: PropType<IViewLayoutPanel>;
|
|
42
|
-
required: true;
|
|
43
|
-
};
|
|
44
|
-
context: {
|
|
45
|
-
type: PropType<IContext>;
|
|
46
|
-
required: true;
|
|
47
|
-
};
|
|
48
|
-
params: {
|
|
49
|
-
type: PropType<IParams>;
|
|
50
|
-
default: () => {};
|
|
51
|
-
};
|
|
52
|
-
provider: {
|
|
53
|
-
type: PropType<IControlProvider>;
|
|
54
|
-
};
|
|
55
|
-
container: {
|
|
56
|
-
type: PropType<IController<import("@ibiz/model-core").IModelObject, object, import("@ibiz-template/runtime").IComponentEvent>>;
|
|
57
|
-
};
|
|
58
|
-
data: PropType<IData>;
|
|
59
|
-
}>>, {
|
|
60
|
-
params: IParams;
|
|
61
|
-
}, {}>;
|