@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
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { EventBase, FormMDCtrlRepeaterController } from '@ibiz-template/runtime';
|
|
3
|
+
import './repeater-single-form.scss';
|
|
4
|
+
export declare const RepeaterSingleForm: import("vue").DefineComponent<{
|
|
5
|
+
data: {
|
|
6
|
+
type: PropType<IData>;
|
|
7
|
+
required: true;
|
|
8
|
+
};
|
|
9
|
+
controller: {
|
|
10
|
+
type: typeof FormMDCtrlRepeaterController;
|
|
11
|
+
required: true;
|
|
12
|
+
};
|
|
13
|
+
}, {
|
|
14
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
15
|
+
onFormDataChange: (event: EventBase) => void;
|
|
16
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
|
+
change: (_value: IData) => true;
|
|
18
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
data: {
|
|
20
|
+
type: PropType<IData>;
|
|
21
|
+
required: true;
|
|
22
|
+
};
|
|
23
|
+
controller: {
|
|
24
|
+
type: typeof FormMDCtrlRepeaterController;
|
|
25
|
+
required: true;
|
|
26
|
+
};
|
|
27
|
+
}>> & {
|
|
28
|
+
onChange?: ((_value: IData) => any) | undefined;
|
|
29
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { FormMDCtrlRepeaterController } from '@ibiz-template/runtime';
|
|
3
|
+
import { RuntimeError } from '@ibiz-template/core';
|
|
4
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
5
|
+
import './repeater-single-form.css';
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
const RepeaterSingleForm = /* @__PURE__ */ defineComponent({
|
|
9
|
+
name: "IBizRepeaterSingleForm",
|
|
10
|
+
props: {
|
|
11
|
+
data: {
|
|
12
|
+
type: Object,
|
|
13
|
+
required: true
|
|
14
|
+
},
|
|
15
|
+
controller: {
|
|
16
|
+
type: FormMDCtrlRepeaterController,
|
|
17
|
+
required: true
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
emits: {
|
|
21
|
+
change: (_value) => true
|
|
22
|
+
},
|
|
23
|
+
setup(_props, {
|
|
24
|
+
emit
|
|
25
|
+
}) {
|
|
26
|
+
const ns = useNamespace("repeater-single-form");
|
|
27
|
+
const onFormDataChange = (event) => {
|
|
28
|
+
const formData = {
|
|
29
|
+
...event.data[0]
|
|
30
|
+
};
|
|
31
|
+
emit("change", formData);
|
|
32
|
+
};
|
|
33
|
+
return {
|
|
34
|
+
ns,
|
|
35
|
+
onFormDataChange
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
render() {
|
|
39
|
+
if (!this.controller.repeatedForm) {
|
|
40
|
+
throw new RuntimeError("\u6CA1\u6709repeatedForm");
|
|
41
|
+
}
|
|
42
|
+
return createVNode(resolveComponent("iBizControlShell"), {
|
|
43
|
+
"class": this.ns.b(),
|
|
44
|
+
"context": this.controller.context,
|
|
45
|
+
"params": this.controller.params,
|
|
46
|
+
"modelData": this.controller.repeatedForm,
|
|
47
|
+
"isSimple": true,
|
|
48
|
+
"data": this.data,
|
|
49
|
+
"onFormDataChange": this.onFormDataChange
|
|
50
|
+
}, null);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export { RepeaterSingleForm };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-form-mdctrl{--ibiz-form-mdctrl-header-height:32px}.ibiz-form-mdctrl-header{height:var(--ibiz-form-mdctrl-header-height);line-height:var(--ibiz-form-mdctrl-header-height)}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { IDEFormMDCtrl } from '@ibiz/model-core';
|
|
3
3
|
import { FormMDCtrlController } from '@ibiz-template/runtime';
|
|
4
|
+
import './form-mdctrl.scss';
|
|
4
5
|
export declare const FormMDCtrl: import("vue").DefineComponent<{
|
|
5
6
|
modelData: {
|
|
6
7
|
type: PropType<IDEFormMDCtrl>;
|
|
@@ -12,7 +13,8 @@ export declare const FormMDCtrl: import("vue").DefineComponent<{
|
|
|
12
13
|
};
|
|
13
14
|
}, {
|
|
14
15
|
c: FormMDCtrlController;
|
|
15
|
-
|
|
16
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
17
|
+
hasCaption: boolean | undefined;
|
|
16
18
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
17
19
|
modelData: {
|
|
18
20
|
type: PropType<IDEFormMDCtrl>;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useController } from '@ibiz-template/vue3-util';
|
|
1
|
+
import { createTextVNode, createVNode, resolveComponent, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace, useController } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { FormMDCtrlController } from '@ibiz-template/runtime';
|
|
4
|
+
import './form-mdctrl.css';
|
|
4
5
|
|
|
5
6
|
"use strict";
|
|
6
7
|
const FormMDCtrl = /* @__PURE__ */ defineComponent({
|
|
@@ -16,65 +17,50 @@ const FormMDCtrl = /* @__PURE__ */ defineComponent({
|
|
|
16
17
|
}
|
|
17
18
|
},
|
|
18
19
|
setup(props) {
|
|
20
|
+
const ns = useNamespace("form-mdctrl");
|
|
19
21
|
useController(props.controller);
|
|
20
22
|
const c = props.controller;
|
|
21
|
-
const
|
|
22
|
-
switch (c.model.detailStyle) {
|
|
23
|
-
case "STYLE2":
|
|
24
|
-
return createVNode(resolveComponent("iBizFormMDCtrlRepeaterGrid"), {
|
|
25
|
-
"controller": c.mdCtrlContentController
|
|
26
|
-
}, null);
|
|
27
|
-
case "STYLE3":
|
|
28
|
-
return createVNode(resolveComponent("iBizFormMDCtrlRepeaterFormOne"), {
|
|
29
|
-
"controller": c.mdCtrlContentController
|
|
30
|
-
}, null);
|
|
31
|
-
default:
|
|
32
|
-
return createVNode(resolveComponent("iBizFormMDCtrlRepeaterForm"), {
|
|
33
|
-
"controller": c.mdCtrlContentController
|
|
34
|
-
}, null);
|
|
35
|
-
}
|
|
36
|
-
};
|
|
23
|
+
const hasCaption = c.model.showCaption && !!c.model.caption;
|
|
37
24
|
return {
|
|
38
25
|
c,
|
|
39
|
-
|
|
26
|
+
ns,
|
|
27
|
+
hasCaption
|
|
40
28
|
};
|
|
41
29
|
},
|
|
42
30
|
render() {
|
|
43
|
-
const
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
};
|
|
77
|
-
return renderContentByType();
|
|
31
|
+
const {
|
|
32
|
+
model
|
|
33
|
+
} = this.c;
|
|
34
|
+
let content;
|
|
35
|
+
switch (model.contentType) {
|
|
36
|
+
case "GRID":
|
|
37
|
+
case "LIST":
|
|
38
|
+
case "DATAVIEW":
|
|
39
|
+
content = createVNode(resolveComponent("iBizFormMDCtrlMD"), {
|
|
40
|
+
"controller": this.c
|
|
41
|
+
}, null);
|
|
42
|
+
break;
|
|
43
|
+
case "FORM":
|
|
44
|
+
content = createVNode(resolveComponent("iBizFormMDCtrlForm"), {
|
|
45
|
+
"controller": this.c
|
|
46
|
+
}, null);
|
|
47
|
+
break;
|
|
48
|
+
case "REPEATER":
|
|
49
|
+
content = createVNode(resolveComponent("iBizFormMDCtrlRepeater"), {
|
|
50
|
+
"controller": this.c
|
|
51
|
+
}, null);
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
createVNode("div", null, [model.contentType, createTextVNode("\u6682\u672A\u652F\u6301")]);
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
return createVNode("div", {
|
|
58
|
+
"class": [this.ns.b(), this.ns.m(this.modelData.codeName), ...this.controller.containerClass, this.hasCaption ? this.ns.m("show-caption") : ""]
|
|
59
|
+
}, [this.hasCaption && createVNode("div", {
|
|
60
|
+
"class": this.ns.b("header")
|
|
61
|
+
}, [createVNode("span", {
|
|
62
|
+
"class": this.ns.e("title")
|
|
63
|
+
}, [this.c.model.caption])]), content]);
|
|
78
64
|
}
|
|
79
65
|
});
|
|
80
66
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ModelError } from '@ibiz-template/core';
|
|
2
|
+
import { FormMDCtrlRepeaterController, FormMDCtrlFormController, FormMDCtrlMDController } from '@ibiz-template/runtime';
|
|
2
3
|
|
|
3
4
|
"use strict";
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
@@ -12,7 +13,25 @@ class FormMDCtrlProvider {
|
|
|
12
13
|
__publicField(this, "component", "IBizFormMDCtrl");
|
|
13
14
|
}
|
|
14
15
|
async createController(detailModel, form, parent) {
|
|
15
|
-
|
|
16
|
+
let c;
|
|
17
|
+
switch (detailModel.contentType) {
|
|
18
|
+
case "LIST":
|
|
19
|
+
case "GRID":
|
|
20
|
+
case "DATAVIEW":
|
|
21
|
+
c = new FormMDCtrlMDController(detailModel, form, parent);
|
|
22
|
+
break;
|
|
23
|
+
case "FORM":
|
|
24
|
+
c = new FormMDCtrlFormController(detailModel, form, parent);
|
|
25
|
+
break;
|
|
26
|
+
case "REPEATER":
|
|
27
|
+
c = new FormMDCtrlRepeaterController(detailModel, form, parent);
|
|
28
|
+
break;
|
|
29
|
+
default:
|
|
30
|
+
throw new ModelError(
|
|
31
|
+
detailModel,
|
|
32
|
+
`\u6682\u672A\u652F\u6301\u5185\u5BB9\u7C7B\u578B\u4E3A${detailModel.contentType}`
|
|
33
|
+
);
|
|
34
|
+
}
|
|
16
35
|
await c.init();
|
|
17
36
|
return c;
|
|
18
37
|
}
|
|
@@ -9,9 +9,8 @@ export declare const IBizFormMDCtrl: import("@ibiz-template/vue3-util").TypeWith
|
|
|
9
9
|
};
|
|
10
10
|
}, {
|
|
11
11
|
c: import("@ibiz-template/runtime").FormMDCtrlController;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}> | undefined;
|
|
12
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
13
|
+
hasCaption: boolean | undefined;
|
|
15
14
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
16
15
|
modelData: {
|
|
17
16
|
type: import("vue").PropType<import("@ibiz/model-core").IDEFormMDCtrl>;
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
import { registerFormDetailProvider } from '@ibiz-template/runtime';
|
|
2
2
|
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
3
|
import { FormMDCtrl } from './form-mdctrl.mjs';
|
|
4
|
-
import { FormMDCtrlDataView } from './form-mdctrl-data-view/form-mdctrl-data-view.mjs';
|
|
5
4
|
import { FormMDCtrlForm } from './form-mdctrl-form/form-mdctrl-form.mjs';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { FormMDCtrlRepeaterFormOne } from './form-mdctrl-repeater/form-mdctrl-repeater-form-one/form-mdctrl-repeater-form-one.mjs';
|
|
9
|
-
import { FormMDCtrlRepeaterForm } from './form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form.mjs';
|
|
10
|
-
import { FormMDCtrlRepeaterFormShell } from './form-mdctrl-repeater/form-mdctrl-repeater-form/form-mdctrl-repeater-form-shell.mjs';
|
|
11
|
-
import { FormMDCtrlRepeaterGrid } from './form-mdctrl-repeater/form-mdctrl-repeater-grid/form-mdctrl-repeater-grid.mjs';
|
|
5
|
+
import { FormMDCtrlMD } from './form-mdctrl-md/form-mdctrl-md.mjs';
|
|
6
|
+
import { FormMDCtrlRepeater } from './form-mdctrl-repeater/form-mdctrl-repeater.mjs';
|
|
12
7
|
import { FormMDCtrlProvider } from './form-mdctrl.provider.mjs';
|
|
8
|
+
import { MDCtrlContainer } from './mdctrl-container/mdctrl-container.mjs';
|
|
13
9
|
|
|
14
10
|
"use strict";
|
|
15
11
|
const IBizFormMDCtrl = withInstall(FormMDCtrl, function(v) {
|
|
16
12
|
v.component(FormMDCtrl.name, FormMDCtrl);
|
|
17
13
|
v.component(FormMDCtrlForm.name, FormMDCtrlForm);
|
|
18
|
-
v.component(
|
|
19
|
-
v.component(
|
|
20
|
-
v.component(
|
|
21
|
-
v.component(FormMDCtrlRepeaterForm.name, FormMDCtrlRepeaterForm);
|
|
22
|
-
v.component(FormMDCtrlRepeaterFormOne.name, FormMDCtrlRepeaterFormOne);
|
|
23
|
-
v.component(FormMDCtrlRepeaterGrid.name, FormMDCtrlRepeaterGrid);
|
|
24
|
-
v.component(FormMDCtrlRepeaterFormShell.name, FormMDCtrlRepeaterFormShell);
|
|
14
|
+
v.component(FormMDCtrlMD.name, FormMDCtrlMD);
|
|
15
|
+
v.component(FormMDCtrlRepeater.name, FormMDCtrlRepeater);
|
|
16
|
+
v.component(MDCtrlContainer.name, MDCtrlContainer);
|
|
25
17
|
registerFormDetailProvider("MDCTRL", () => new FormMDCtrlProvider());
|
|
26
18
|
});
|
|
27
19
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-mdctrl-container-item{display:flex}.ibiz-mdctrl-container-item__form{flex-grow:1}.ibiz-mdctrl-container-item-actions{flex-shrink:0;width:80px;text-align:center}.ibiz-mdctrl-container-item-actions .el-button+.el-button{margin-left:0}.ibiz-mdctrl-container-item-actions__btn{margin-top:var(--ibiz-spacing-tight)}.ibiz-mdctrl-container-no-data{width:100%;display:flex;justify-content:flex-end}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import './mdctrl-container.scss';
|
|
3
|
+
export declare const MDCtrlContainer: import("vue").DefineComponent<{
|
|
4
|
+
enableCreate: {
|
|
5
|
+
type: BooleanConstructor;
|
|
6
|
+
required: true;
|
|
7
|
+
};
|
|
8
|
+
enableDelete: {
|
|
9
|
+
type: BooleanConstructor;
|
|
10
|
+
required: true;
|
|
11
|
+
};
|
|
12
|
+
items: {
|
|
13
|
+
type: PropType<IData[]>;
|
|
14
|
+
required: true;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
18
|
+
showActions: import("vue").ComputedRef<boolean>;
|
|
19
|
+
renderAddBtn: () => JSX.Element;
|
|
20
|
+
renderRemoveBtn: (item: IData, index: number) => JSX.Element | null;
|
|
21
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
|
+
addClick: () => true;
|
|
23
|
+
removeClick: (_data: IData, _index: number) => true;
|
|
24
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
enableCreate: {
|
|
26
|
+
type: BooleanConstructor;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
enableDelete: {
|
|
30
|
+
type: BooleanConstructor;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
items: {
|
|
34
|
+
type: PropType<IData[]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
}>> & {
|
|
38
|
+
onAddClick?: (() => any) | undefined;
|
|
39
|
+
onRemoveClick?: ((_data: IData, _index: number) => any) | undefined;
|
|
40
|
+
}, {}, {}>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { computed, resolveComponent, createTextVNode, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './mdctrl-container.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const MDCtrlContainer = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "IBizMDCtrlContainer",
|
|
8
|
+
props: {
|
|
9
|
+
enableCreate: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
required: true
|
|
12
|
+
},
|
|
13
|
+
enableDelete: {
|
|
14
|
+
type: Boolean,
|
|
15
|
+
required: true
|
|
16
|
+
},
|
|
17
|
+
items: {
|
|
18
|
+
type: Object,
|
|
19
|
+
required: true
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: {
|
|
23
|
+
addClick: () => true,
|
|
24
|
+
removeClick: (_data, _index) => true
|
|
25
|
+
},
|
|
26
|
+
setup(props, {
|
|
27
|
+
emit
|
|
28
|
+
}) {
|
|
29
|
+
const ns = useNamespace("mdctrl-container");
|
|
30
|
+
const showActions = computed(() => {
|
|
31
|
+
return props.enableCreate || props.enableDelete;
|
|
32
|
+
});
|
|
33
|
+
const renderAddBtn = () => {
|
|
34
|
+
return createVNode(resolveComponent("el-button"), {
|
|
35
|
+
"class": [ns.be("item-actions", "create"), ns.be("item-actions", "btn")],
|
|
36
|
+
"onClick": () => emit("addClick")
|
|
37
|
+
}, {
|
|
38
|
+
default: () => [createTextVNode("\u6DFB\u52A0")]
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
const renderRemoveBtn = (item, index) => {
|
|
42
|
+
if (!props.enableDelete) {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
if (ibiz.config.form.mdCtrlConfirmBeforeRemove) {
|
|
46
|
+
return createVNode(resolveComponent("el-popconfirm"), {
|
|
47
|
+
"title": "\u662F\u5426\u5220\u9664\u9009\u4E2D\u9879",
|
|
48
|
+
"confirm-button-text": "\u786E\u8BA4",
|
|
49
|
+
"cancel-button-text": "\u53D6\u6D88",
|
|
50
|
+
"onConfirm": () => emit("removeClick", item, index)
|
|
51
|
+
}, {
|
|
52
|
+
reference: () => {
|
|
53
|
+
return createVNode(resolveComponent("el-button"), {
|
|
54
|
+
"type": "danger",
|
|
55
|
+
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")]
|
|
56
|
+
}, {
|
|
57
|
+
default: () => [createTextVNode("\u5220\u9664")]
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
return createVNode(resolveComponent("el-button"), {
|
|
63
|
+
"type": "danger",
|
|
64
|
+
"class": [ns.be("item-actions", "remove"), ns.be("item-actions", "btn")],
|
|
65
|
+
"onClick": () => emit("removeClick", item, index)
|
|
66
|
+
}, {
|
|
67
|
+
default: () => [createTextVNode("\u5220\u9664")]
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
return {
|
|
71
|
+
ns,
|
|
72
|
+
showActions,
|
|
73
|
+
renderAddBtn,
|
|
74
|
+
renderRemoveBtn
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
render() {
|
|
78
|
+
var _a;
|
|
79
|
+
return createVNode("div", {
|
|
80
|
+
"class": this.ns.b()
|
|
81
|
+
}, [((_a = this.items) == null ? void 0 : _a.length) ? this.items.map((item, index) => {
|
|
82
|
+
const formComponent = this.$slots.item ? this.$slots.item({
|
|
83
|
+
data: item,
|
|
84
|
+
index
|
|
85
|
+
}) : createVNode("div", null, [createTextVNode("\u672A\u63D0\u4F9Bitem\u63D2\u69FD")]);
|
|
86
|
+
return createVNode("div", {
|
|
87
|
+
"class": this.ns.b("item")
|
|
88
|
+
}, [formComponent, this.showActions && createVNode("div", {
|
|
89
|
+
"class": this.ns.b("item-actions")
|
|
90
|
+
}, [index === 0 && this.enableCreate && this.renderAddBtn(), this.renderRemoveBtn(item, index)])]);
|
|
91
|
+
}) : createVNode("div", {
|
|
92
|
+
"class": this.ns.b("no-data")
|
|
93
|
+
}, [this.enableCreate && createVNode("div", {
|
|
94
|
+
"class": this.ns.b("item-actions")
|
|
95
|
+
}, [this.renderAddBtn()])])]);
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export { MDCtrlContainer };
|
|
@@ -34,7 +34,7 @@ const GridFieldColumn = /* @__PURE__ */ defineComponent({
|
|
|
34
34
|
const CustomHtml = computed(() => {
|
|
35
35
|
return props.controller.getCustomHtml(props.row);
|
|
36
36
|
});
|
|
37
|
-
const fieldValue = computed(() => props.row.data[props.controller.model.codeName]);
|
|
37
|
+
const fieldValue = computed(() => props.row.data[props.controller.model.codeName.toLowerCase()]);
|
|
38
38
|
const formatValue = computed(() => props.controller.formatValue(fieldValue.value));
|
|
39
39
|
const codeListText = ref("");
|
|
40
40
|
const onInfoTextChange = (text) => {
|
package/es/control/index.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export * from './grid';
|
|
|
4
4
|
export * from './list';
|
|
5
5
|
export * from './form';
|
|
6
6
|
export * from './toolbar';
|
|
7
|
-
export * from './panel';
|
|
8
7
|
export * from './caption-bar';
|
|
9
8
|
export * from './data-view';
|
|
10
9
|
export * from './tree';
|
|
@@ -23,3 +22,4 @@ export * from './tree-grid-ex';
|
|
|
23
22
|
export * from './tree-grid';
|
|
24
23
|
export * from './medit-view-panel';
|
|
25
24
|
export * from './map';
|
|
25
|
+
export * from './report-panel';
|
package/es/control/index.mjs
CHANGED
|
@@ -4,7 +4,6 @@ import './grid/index.mjs';
|
|
|
4
4
|
export { IBizListControl } from './list/index.mjs';
|
|
5
5
|
import './form/index.mjs';
|
|
6
6
|
export { IBizToolbarControl } from './toolbar/index.mjs';
|
|
7
|
-
import './panel/index.mjs';
|
|
8
7
|
export { IBizCaptionBarControl } from './caption-bar/index.mjs';
|
|
9
8
|
export { IBizDataViewControl } from './data-view/index.mjs';
|
|
10
9
|
export { IBizTreeControl } from './tree/index.mjs';
|
|
@@ -23,6 +22,7 @@ export { IBizTreeGridExControl } from './tree-grid-ex/index.mjs';
|
|
|
23
22
|
export { IBizTreeGridControl } from './tree-grid/index.mjs';
|
|
24
23
|
export { IBizMEditViewPanelControl } from './medit-view-panel/index.mjs';
|
|
25
24
|
export { IBizMapControl } from './map/index.mjs';
|
|
25
|
+
export { IBizReportPanelControl } from './report-panel/index.mjs';
|
|
26
26
|
export { useAppGridBase, useAppGridPagination, useITableEvent } from './grid/grid/grid-control.util.mjs';
|
|
27
27
|
export { IBizGridControl } from './grid/grid/index.mjs';
|
|
28
28
|
export { IBizGridFieldColumn } from './grid/grid-column/grid-field-column/index.mjs';
|
|
@@ -43,8 +43,6 @@ export { IBizFormTabPanel } from './form/form-detail/form-tab-panel/index.mjs';
|
|
|
43
43
|
export { IBizFormTabPage } from './form/form-detail/form-tab-page/index.mjs';
|
|
44
44
|
export { IBizEditFormControl } from './form/edit-form/index.mjs';
|
|
45
45
|
export { IBizFormControl } from './form/form/index.mjs';
|
|
46
|
-
export { IBizViewLayoutPanelControl } from './panel/view-layout-panel/index.mjs';
|
|
47
|
-
export { IBizPanelControl } from './panel/panel/index.mjs';
|
|
48
46
|
export { DataViewControlProvider } from './data-view/data-view.provider.mjs';
|
|
49
47
|
export { IBizTreeExpBarControl } from './exp-bar/tree-exp-bar/index.mjs';
|
|
50
48
|
export { IBizListExpBarControl } from './exp-bar/list-exp-bar/index.mjs';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ControlType, registerControlProvider } from '@ibiz-template/runtime';
|
|
2
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
3
|
+
import { ReportPanelControl } from './report-panel.mjs';
|
|
4
|
+
import { ReportPanelProvider } from './report-panel.provider.mjs';
|
|
5
|
+
import './report-detail/index.mjs';
|
|
6
|
+
import { IBizUserReportPanel } from './report-detail/user-report-panel/index.mjs';
|
|
7
|
+
import { IBizUser2ReportPanel } from './report-detail/user2-report-panel/index.mjs';
|
|
8
|
+
|
|
9
|
+
"use strict";
|
|
10
|
+
const IBizReportPanelControl = withInstall(
|
|
11
|
+
ReportPanelControl,
|
|
12
|
+
function(v) {
|
|
13
|
+
v.use(IBizUserReportPanel);
|
|
14
|
+
v.use(IBizUser2ReportPanel);
|
|
15
|
+
v.component(ReportPanelControl.name, ReportPanelControl);
|
|
16
|
+
registerControlProvider(
|
|
17
|
+
ControlType.REPORT_PANEL,
|
|
18
|
+
() => new ReportPanelProvider()
|
|
19
|
+
);
|
|
20
|
+
}
|
|
21
|
+
);
|
|
22
|
+
|
|
23
|
+
export { IBizReportPanelControl, IBizReportPanelControl as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare const IBizUserReportPanel: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
controller: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").ReportPanelController>;
|
|
4
|
+
};
|
|
5
|
+
}, {
|
|
6
|
+
c: import("@ibiz-template/runtime").ReportPanelController | undefined;
|
|
7
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
8
|
+
generator: import("@ibiz-template/runtime/out/controller/control/report-panel/generator/base-generator").ReportPanelBaseGenerator | undefined;
|
|
9
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
controller: {
|
|
11
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").ReportPanelController>;
|
|
12
|
+
};
|
|
13
|
+
}>>, {}, {}>>;
|
|
14
|
+
export default IBizUserReportPanel;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
+
import { UserReportPanel } from './user-report-panel.mjs';
|
|
3
|
+
|
|
4
|
+
"use strict";
|
|
5
|
+
const IBizUserReportPanel = withInstall(
|
|
6
|
+
UserReportPanel,
|
|
7
|
+
function(v) {
|
|
8
|
+
v.component(UserReportPanel.name, UserReportPanel);
|
|
9
|
+
}
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
export { IBizUserReportPanel, IBizUserReportPanel as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-user-report-panel__container{width:100%;height:100%}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { ReportPanelController } from '@ibiz-template/runtime';
|
|
3
|
+
import './user-report-panel.scss';
|
|
4
|
+
export declare const UserReportPanel: import("vue").DefineComponent<{
|
|
5
|
+
controller: {
|
|
6
|
+
type: PropType<ReportPanelController>;
|
|
7
|
+
};
|
|
8
|
+
}, {
|
|
9
|
+
c: ReportPanelController | undefined;
|
|
10
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
11
|
+
generator: import("@ibiz-template/runtime/out/controller/control/report-panel/generator/base-generator").ReportPanelBaseGenerator | undefined;
|
|
12
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
13
|
+
controller: {
|
|
14
|
+
type: PropType<ReportPanelController>;
|
|
15
|
+
};
|
|
16
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { resolveComponent, createVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './user-report-panel.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
const UserReportPanel = /* @__PURE__ */ defineComponent({
|
|
7
|
+
name: "IBizUserReportPanel",
|
|
8
|
+
props: {
|
|
9
|
+
controller: {
|
|
10
|
+
type: Object
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
setup(props) {
|
|
14
|
+
const c = props.controller;
|
|
15
|
+
const ns = useNamespace(`user-report-panel`);
|
|
16
|
+
const generator = c && c.generator;
|
|
17
|
+
return {
|
|
18
|
+
c,
|
|
19
|
+
ns,
|
|
20
|
+
generator
|
|
21
|
+
};
|
|
22
|
+
},
|
|
23
|
+
render() {
|
|
24
|
+
if (!this.c) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
const state = this.c.state;
|
|
28
|
+
return createVNode("div", {
|
|
29
|
+
"class": this.ns.e("container")
|
|
30
|
+
}, [createVNode(resolveComponent("iBizRelationshipDesign"), {
|
|
31
|
+
"data": state.data,
|
|
32
|
+
"config": this.generator && this.generator.config.CONFIG,
|
|
33
|
+
"pluginConfig": this.generator && this.generator.config.PLUGINCONFIG,
|
|
34
|
+
"nodeLegendConfig": this.generator && this.generator.config.NODELEGENDCONFIG,
|
|
35
|
+
"edgeLegendConfig": this.generator && this.generator.config.EDGELEGENDCONFIG,
|
|
36
|
+
"hooks": this.generator && this.generator.config.HOOKS,
|
|
37
|
+
"showLoading": true,
|
|
38
|
+
"onInit": (args) => {
|
|
39
|
+
this.generator && this.generator.init(args);
|
|
40
|
+
}
|
|
41
|
+
}, null)]);
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export { UserReportPanel };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const IBizUser2ReportPanel: import("@ibiz-template/vue3-util").TypeWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
controller: {
|
|
3
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").ReportPanelController>;
|
|
4
|
+
};
|
|
5
|
+
}, {
|
|
6
|
+
c: import("@ibiz-template/runtime").ReportPanelController | undefined;
|
|
7
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
8
|
+
generator: import("@ibiz-template/runtime/out/controller/control/report-panel/generator/base-generator").ReportPanelBaseGenerator | undefined;
|
|
9
|
+
computedValue: import("vue").ComputedRef<any>;
|
|
10
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
controller: {
|
|
12
|
+
type: import("vue").PropType<import("@ibiz-template/runtime").ReportPanelController>;
|
|
13
|
+
};
|
|
14
|
+
}>>, {}, {}>>;
|
|
15
|
+
export default IBizUser2ReportPanel;
|