@gct-paas/core-web 0.1.6-dev.5 → 0.1.6-dev.6
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/ColorPicker-DGQQb8I7.js +1 -0
- package/dist/{_plugin-vue_export-helper-59SbqtUR.js → _plugin-vue_export-helper-C9hXqKoS.js} +1 -1
- package/dist/{de_DE-BnwOalCV.js → de_DE-B3f8kAv-.js} +1 -1
- package/dist/diagram-config-item-C5Ha2XJq.js +1 -0
- package/dist/diagram-config-item-reverse-ChoxnW-Z.js +1 -0
- package/dist/diagram-config-item-virtual-Cbmggfwt.js +1 -0
- package/dist/{en_US-6Hw6WWah.js → en_US-BSG3Kz6v.js} +1 -1
- package/dist/{es_ES-tAqXFGrR.js → es_ES-BGP8IOmQ.js} +1 -1
- package/dist/{fr_FR-BkDgVS_P.js → fr_FR-Y-6CzjUq.js} +1 -1
- package/dist/hooks-yX21uJ6d.js +1 -0
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-AsmV92nC.js → ja_JP-CDlH1v8M.js} +1 -1
- package/dist/loader.esm.min.js +1 -1
- package/dist/{monaco-editor-CgESUPw_.js → monaco-editor-BTqXEIZI.js} +1 -1
- package/dist/{pt_PT-CCVWOJzE.js → pt_PT-N-iIoE2_.js} +1 -1
- package/dist/relationship-diagram-config-DstwwXCO.js +1 -0
- package/dist/{ru_RU-w4sUgbzL.js → ru_RU--ESLRHrj.js} +1 -1
- package/dist/template-1ZQd8Z1w.js +1 -0
- package/dist/{tr_TR-CGZch3eB.js → tr_TR-BOIykdZO.js} +1 -1
- package/dist/{vi_VN-DONxIDR7.js → vi_VN-CmVoM2Rw.js} +1 -1
- package/dist/{zh_CN-BxdD8hqG.js → zh_CN-DhsO5Qwx.js} +1 -1
- package/dist/{zh_TW-D5Y8j-oG.js → zh_TW-DWdp2kVo.js} +1 -1
- package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/base-button/base-button.vue.mjs +1 -1
- package/es/components/field-cascader/src/hooks.d.ts +1 -0
- package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
- package/es/components/label-design/panels/widget/controls/ImageData.vue.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_script_setup_true_name_image-data_lang.mjs +2 -2
- package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_9232a443_lang.css +3 -0
- package/es/components/label-design/stage/stage.vue.d.ts +9 -0
- package/es/components/label-design/stage/stage.vue.mjs +2 -2
- package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +2 -1
- package/es/components/label-design/stage/{stage.vue_vue_type_style_index_0_scoped_53b1f897_lang.css → stage.vue_vue_type_style_index_0_scoped_9275e9fb_lang.css} +8 -8
- package/es/components/layout/view-container/view-container.d.ts +1 -11
- package/es/components/layout/view-container/view-container.mjs +10 -14
- package/es/create-app-vue.mjs +4 -2
- package/es/index.d.ts +3 -2
- package/es/index.mjs +25 -24
- package/es/modules/color-picker/src/color-editor.vue.mjs +1 -1
- package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +2 -0
- package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +1 -0
- package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +1 -0
- package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +2 -0
- package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +3 -0
- package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -4
- package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs +2 -2
- package/es/modules/relationship-diagram-config/cache.controller.d.ts +70 -0
- package/es/modules/relationship-diagram-config/cache.controller.mjs +128 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.css +123 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.d.ts +381 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.mjs +98 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.css +71 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.d.ts +28 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.mjs +53 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.d.ts +27 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.mjs +2 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.css +107 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.d.ts +34 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.mjs +198 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.css +68 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.d.ts +31 -0
- package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.mjs +53 -0
- package/es/modules/relationship-diagram-config/components/index.d.ts +5 -0
- package/es/modules/relationship-diagram-config/components/index.mjs +5 -0
- package/es/modules/relationship-diagram-config/constant/index.d.ts +72 -0
- package/es/modules/relationship-diagram-config/constant/index.mjs +70 -0
- package/es/modules/relationship-diagram-config/hooks/index.d.ts +10 -0
- package/es/modules/relationship-diagram-config/hooks/index.mjs +19 -0
- package/es/modules/relationship-diagram-config/index.d.ts +6 -0
- package/es/modules/relationship-diagram-config/index.mjs +28 -0
- package/es/modules/relationship-diagram-config/interface/i-link-provider/i-link-provider.d.ts +57 -0
- package/es/modules/relationship-diagram-config/interface/i-node-provider/i-node-provider.d.ts +18 -0
- package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-link/i-relationship-diagram-link.d.ts +80 -0
- package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-node/i-relationship-diagram-node.d.ts +82 -0
- package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-options/i-relationship-diagram-options.d.ts +51 -0
- package/es/modules/relationship-diagram-config/interface/i-rule-config/i-rule-config.d.ts +135 -0
- package/es/modules/relationship-diagram-config/interface/index.d.ts +6 -0
- package/es/modules/relationship-diagram-config/link.controller.d.ts +75 -0
- package/es/modules/relationship-diagram-config/link.controller.mjs +121 -0
- package/es/modules/relationship-diagram-config/node.controller.d.ts +102 -0
- package/es/modules/relationship-diagram-config/node.controller.mjs +189 -0
- package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.d.ts +23 -0
- package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.mjs +33 -0
- package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.d.ts +1 -0
- package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.mjs +27 -0
- package/es/modules/relationship-diagram-config/plumb-plugin/index.d.ts +3 -0
- package/es/modules/relationship-diagram-config/plumb-plugin/index.mjs +2 -0
- package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.css +132 -0
- package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.d.ts +21 -0
- package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.mjs +184 -0
- package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.d.ts +14 -0
- package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.mjs +17 -0
- package/es/modules/relationship-diagram-config/providers/index.d.ts +5 -0
- package/es/modules/relationship-diagram-config/providers/index.mjs +5 -0
- package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.d.ts +14 -0
- package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.mjs +17 -0
- package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.d.ts +16 -0
- package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.mjs +26 -0
- package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.d.ts +14 -0
- package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.mjs +17 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.d.ts +119 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.mjs +199 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.css +113 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.d.ts +102 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.mjs +104 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.state.d.ts +44 -0
- package/es/modules/relationship-diagram-config/relationship-diagram-config.state.mjs +46 -0
- package/es/modules/relationship-diagram-config/utils/index.d.ts +1 -0
- package/es/modules/relationship-diagram-config/utils/register/register.d.ts +71 -0
- package/es/modules/relationship-diagram-config/utils/register/register.mjs +81 -0
- package/es/utils/recursive.mjs +1 -0
- package/package.json +10 -9
- package/dist/components-Dw_doMp_.js +0 -1
- package/dist/template-tzWsbHZE.js +0 -1
- package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_3c4a9733_lang.css +0 -3
- /package/dist/{JsBarcode-DlXSdlvD.js → JsBarcode-DY53cVJ6.js} +0 -0
- /package/dist/{cropper-tw7tUDDe.js → cropper-DK_hFgpO.js} +0 -0
- /package/dist/{icon-next-picker-B_S_yInJ.js → icon-next-picker-DYiHqnNR.js} +0 -0
- /package/dist/{objectSpread2-DxfE1S3_.js → objectSpread2-DARadIQB.js} +0 -0
- /package/dist/{overlayscrollbars-vue-DtKFrHnA.js → overlayscrollbars-vue-Df-3wShc.js} +0 -0
- /package/dist/{rich-editor-K2Pv0Uja.js → rich-editor-DVOriJH0.js} +0 -0
- /package/dist/{useMonacoEditor-BO2ALW-7.js → useMonacoEditor-DqSQTg7b.js} +0 -0
|
@@ -33,10 +33,10 @@ var ImageData_vue_vue_type_script_setup_true_name_image_data_lang_default = /* @
|
|
|
33
33
|
};
|
|
34
34
|
metaData(props.src);
|
|
35
35
|
const uploadFile = async (data) => {
|
|
36
|
-
if (beforeUpload(data.file)) onUploadImgSuccess(await _api.apaas.fileResource.postUpload({
|
|
36
|
+
if (beforeUpload(data.file)) onUploadImgSuccess((await _api.apaas.fileResource.postUpload({
|
|
37
37
|
type: "LABEL_IMAGE",
|
|
38
38
|
...project.value?.modelKey ? { modelKey: project.value.modelKey } : {}
|
|
39
|
-
}, { file: data.file }));
|
|
39
|
+
}, { file: data.file })).data);
|
|
40
40
|
};
|
|
41
41
|
const beforeUpload = (file) => {
|
|
42
42
|
const isJPG = ["image/jpeg", "image/png"].includes(file.type);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
id?: string;
|
|
3
|
+
readonly?: boolean;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
|
+
container: HTMLDivElement;
|
|
7
|
+
sketchRuleRef: unknown;
|
|
8
|
+
}, HTMLDivElement>;
|
|
9
|
+
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import stage_vue_vue_type_script_setup_true_lang_default from "./stage.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './stage.
|
|
3
|
+
import './stage.vue_vue_type_style_index_0_scoped_9275e9fb_lang.css';/* empty css */
|
|
4
4
|
//#region src/components/label-design/stage/stage.vue
|
|
5
|
-
var stage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(stage_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var stage_default = /* @__PURE__ */ _plugin_vue_export_helper_default(stage_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9275e9fb"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { stage_default as default };
|
|
@@ -19,6 +19,7 @@ var stage_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
19
19
|
readonly: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
setup(__props) {
|
|
22
|
+
const SketchRuleComp = SketchRule;
|
|
22
23
|
const defProps = __props;
|
|
23
24
|
const sketchRuleRef = ref();
|
|
24
25
|
const count = ref(0);
|
|
@@ -154,7 +155,7 @@ var stage_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
|
|
|
154
155
|
onZoomAuto: zoomAuto,
|
|
155
156
|
onZoomIn: zoomIn,
|
|
156
157
|
onZoomOut: zoomOut
|
|
157
|
-
}, null, 8, ["zoom"]), createVNode(unref(
|
|
158
|
+
}, null, 8, ["zoom"]), createVNode(unref(SketchRuleComp), mergeProps({
|
|
158
159
|
ref_key: "sketchRuleRef",
|
|
159
160
|
ref: sketchRuleRef
|
|
160
161
|
}, rulerProps.value, { onZoomchange: updateZoom }), {
|
|
@@ -62,33 +62,33 @@
|
|
|
62
62
|
* }
|
|
63
63
|
*/
|
|
64
64
|
/* stylelint-disable scss/no-global-function-names */
|
|
65
|
-
.designer-stage[data-v-
|
|
65
|
+
.designer-stage[data-v-9275e9fb] {
|
|
66
66
|
display: flex;
|
|
67
67
|
background-color: #fff;
|
|
68
68
|
}
|
|
69
|
-
.designer-state-canvas[data-v-
|
|
69
|
+
.designer-state-canvas[data-v-9275e9fb] {
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
72
72
|
flex-grow: 1;
|
|
73
73
|
width: 100%;
|
|
74
74
|
}
|
|
75
|
-
.designer-stage-header[data-v-
|
|
75
|
+
.designer-stage-header[data-v-9275e9fb] {
|
|
76
76
|
flex-shrink: 0;
|
|
77
77
|
height: 42px;
|
|
78
78
|
}
|
|
79
|
-
.designer-canvas[data-v-
|
|
79
|
+
.designer-canvas[data-v-9275e9fb] {
|
|
80
80
|
position: relative;
|
|
81
81
|
flex-grow: 1;
|
|
82
82
|
background-color: #f2f4f7;
|
|
83
83
|
}
|
|
84
|
-
.designer-canvas[data-v-
|
|
84
|
+
.designer-canvas[data-v-9275e9fb] .sketch-ruler {
|
|
85
85
|
width: 100%;
|
|
86
86
|
}
|
|
87
|
-
.designer-canvas[data-v-
|
|
88
|
-
.designer-canvas[data-v-
|
|
87
|
+
.designer-canvas[data-v-9275e9fb] .sketch-ruler > .defaultCursor,
|
|
88
|
+
.designer-canvas[data-v-9275e9fb] .sketch-ruler > .grabCursor {
|
|
89
89
|
background-color: #f2f4f7 !important;
|
|
90
90
|
}
|
|
91
|
-
.designer-panel[data-v-
|
|
91
|
+
.designer-panel[data-v-9275e9fb] {
|
|
92
92
|
flex-shrink: 0;
|
|
93
93
|
width: 248px;
|
|
94
94
|
border-left: 1px solid #eaeaea;
|
|
@@ -5,21 +5,11 @@ export declare const ViewContainer: import('vue').DefineComponent<import('vue').
|
|
|
5
5
|
params: {
|
|
6
6
|
type: ObjectConstructor;
|
|
7
7
|
};
|
|
8
|
-
|
|
9
|
-
type: ObjectConstructor;
|
|
10
|
-
required: true;
|
|
11
|
-
};
|
|
12
|
-
}>, {
|
|
13
|
-
ns: import('@gct-paas/core').Namespace;
|
|
14
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
8
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
15
9
|
context: {
|
|
16
10
|
type: ObjectConstructor;
|
|
17
11
|
};
|
|
18
12
|
params: {
|
|
19
13
|
type: ObjectConstructor;
|
|
20
14
|
};
|
|
21
|
-
modal: {
|
|
22
|
-
type: ObjectConstructor;
|
|
23
|
-
required: true;
|
|
24
|
-
};
|
|
25
15
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
@@ -6,21 +6,17 @@ var ViewContainer = /* @__PURE__ */ defineComponent({
|
|
|
6
6
|
name: "ViewContainer",
|
|
7
7
|
props: {
|
|
8
8
|
context: { type: Object },
|
|
9
|
-
params: { type: Object }
|
|
10
|
-
modal: {
|
|
11
|
-
type: Object,
|
|
12
|
-
required: true
|
|
13
|
-
}
|
|
9
|
+
params: { type: Object }
|
|
14
10
|
},
|
|
15
|
-
setup() {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
setup(_, { slots }) {
|
|
12
|
+
const ns = useNamespace("view-container");
|
|
13
|
+
return () => {
|
|
14
|
+
return createVNode("div", { "class": ns.b() }, [
|
|
15
|
+
slots.header ? createVNode("div", { "class": ns.b("header") }, [slots.header()]) : null,
|
|
16
|
+
createVNode("div", { "class": ns.b("content") }, [slots.default?.()]),
|
|
17
|
+
slots.footer ? createVNode("div", { "class": ns.b("footer") }, [slots.footer()]) : null
|
|
18
|
+
]);
|
|
19
|
+
};
|
|
24
20
|
}
|
|
25
21
|
});
|
|
26
22
|
//#endregion
|
package/es/create-app-vue.mjs
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import gct_form_default from "./modules/gct-form/index.mjs";
|
|
2
2
|
import gct_table_default from "./modules/gct-table/index.mjs";
|
|
3
|
+
import { BasicModal } from "./modules/global-modal/index.mjs";
|
|
4
|
+
import components_default from "./components/index.mjs";
|
|
3
5
|
import color_editor_default from "./modules/color-picker/src/color-editor.vue.mjs";
|
|
4
6
|
import ColorPicker_default from "./modules/color-picker/src/ColorPicker.vue.mjs";
|
|
5
7
|
import "./modules/color-picker/index.mjs";
|
|
6
|
-
import
|
|
7
|
-
import components_default from "./components/index.mjs";
|
|
8
|
+
import relationship_diagram_config_default from "./modules/relationship-diagram-config/index.mjs";
|
|
8
9
|
import { GctOverlayScrollbars } from "./components/overlay-scrollbars/gct-overlay-scrollbars.mjs";
|
|
9
10
|
import { setupDirectives } from "./directives/index.mjs";
|
|
10
11
|
import Antdv from "ant-design-vue";
|
|
@@ -29,6 +30,7 @@ async function coreWebCreateAppVue(app) {
|
|
|
29
30
|
app.component(ColorPicker_default.name, ColorPicker_default);
|
|
30
31
|
app.component(color_editor_default.name, color_editor_default);
|
|
31
32
|
app.component("OverlayScrollbarsComponent", GctOverlayScrollbars);
|
|
33
|
+
app.use(relationship_diagram_config_default);
|
|
32
34
|
await coreComponentsCreateAppVue(app);
|
|
33
35
|
app.use(gct_form_default);
|
|
34
36
|
app.use(gct_table_default);
|
package/es/index.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export * from './hooks';
|
|
2
2
|
export * from './utils';
|
|
3
|
+
export * from './components';
|
|
4
|
+
export * from './modules/category';
|
|
3
5
|
export * from './modules/code-editor';
|
|
4
6
|
export * from './modules/color-picker';
|
|
5
7
|
export * from './modules/formula-editor';
|
|
@@ -9,8 +11,7 @@ export * from './modules/gct-table';
|
|
|
9
11
|
export * from './modules/global-modal';
|
|
10
12
|
export * from './modules/picture-cropper';
|
|
11
13
|
export * from './modules/picture-preview';
|
|
12
|
-
export * from './components';
|
|
13
14
|
export * from './modules/print-tmpl';
|
|
14
|
-
export * from './modules/
|
|
15
|
+
export * from './modules/relationship-diagram-config';
|
|
15
16
|
export { coreWebCreateAppVue } from './create-app-vue';
|
|
16
17
|
export { coreWebSetupApp } from './setup-app';
|
package/es/index.mjs
CHANGED
|
@@ -68,30 +68,6 @@ import { withInstall } from "./utils/with-install.mjs";
|
|
|
68
68
|
import { filterTreeData, findRecursiveChild, recursiveIterate, recursiveTransfer } from "./utils/recursive.mjs";
|
|
69
69
|
import "./utils/index.mjs";
|
|
70
70
|
import './styles/index.css';/* empty css */
|
|
71
|
-
import { useEditorConsole, useEditorConsoleInner } from "./modules/code-editor/useEditorConsole.mjs";
|
|
72
|
-
import { Lang, Prop, Theme } from "./modules/code-editor/useMonacoEditor.mjs";
|
|
73
|
-
import { MonacoEditor } from "./modules/code-editor/index.mjs";
|
|
74
|
-
import color_editor_default from "./modules/color-picker/src/color-editor.vue.mjs";
|
|
75
|
-
import ColorPicker_default from "./modules/color-picker/src/ColorPicker.vue.mjs";
|
|
76
|
-
import "./modules/color-picker/index.mjs";
|
|
77
|
-
import { GCT_DND_INSERT_POS } from "./modules/gct-dnd/constants/index.mjs";
|
|
78
|
-
import GctDndItem from "./modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs";
|
|
79
|
-
import { GctDndDropLine } from "./modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs";
|
|
80
|
-
import GctDndContainer from "./modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs";
|
|
81
|
-
import "./modules/gct-dnd/index.mjs";
|
|
82
|
-
import { useModalDragMove } from "./modules/global-modal/src/hooks/useModalDrag.mjs";
|
|
83
|
-
import { useModalContext } from "./modules/global-modal/src/hooks/useModalContext.mjs";
|
|
84
|
-
import { useModal, useModalInner } from "./modules/global-modal/src/hooks/useModal.mjs";
|
|
85
|
-
import { BasicModal } from "./modules/global-modal/index.mjs";
|
|
86
|
-
import Cropper_default from "./modules/picture-cropper/src/Cropper.vue.mjs";
|
|
87
|
-
import CopperFreeModal_default from "./modules/picture-cropper/src/CopperFreeModal.vue.mjs";
|
|
88
|
-
import CopperModal_default from "./modules/picture-cropper/src/CopperModal.vue.mjs";
|
|
89
|
-
import CropperAvatar_default from "./modules/picture-cropper/src/CropperAvatar.vue.mjs";
|
|
90
|
-
import picture_preview_default from "./modules/picture-preview/src/picture-preview.vue.mjs";
|
|
91
|
-
import { createImgPreview } from "./modules/picture-preview/src/functional.mjs";
|
|
92
|
-
import "./modules/picture-preview/index.mjs";
|
|
93
|
-
import CropperFree_default from "./modules/picture-cropper/src/CropperFree.vue.mjs";
|
|
94
|
-
import "./modules/picture-cropper/index.mjs";
|
|
95
71
|
import base_button_default from "./components/base-button/base-button.vue.mjs";
|
|
96
72
|
import basic_button_default from "./components/basic-button/basic-button.vue.mjs";
|
|
97
73
|
import double_input_default from "./components/double-input/double-input.vue.mjs";
|
|
@@ -107,6 +83,10 @@ import FieldCascader_default from "./components/field-cascader/src/FieldCascader
|
|
|
107
83
|
import stage_view_default from "./components/label-design/stage/stage-view.vue.mjs";
|
|
108
84
|
import { useModalPicker } from "./components/label-design/modal/index.mjs";
|
|
109
85
|
import { setIdentify } from "./components/label-design/identify-config.mjs";
|
|
86
|
+
import { useModalDragMove } from "./modules/global-modal/src/hooks/useModalDrag.mjs";
|
|
87
|
+
import { useModalContext } from "./modules/global-modal/src/hooks/useModalContext.mjs";
|
|
88
|
+
import { useModal, useModalInner } from "./modules/global-modal/src/hooks/useModal.mjs";
|
|
89
|
+
import { BasicModal } from "./modules/global-modal/index.mjs";
|
|
110
90
|
import { PickType } from "./components/UserPick/src/constants/index.mjs";
|
|
111
91
|
import { useModalPicker as useModalPicker$1 } from "./components/UserPick/index.mjs";
|
|
112
92
|
import paas_bpmn_runtime_default from "./components/BpmnRuntime/paas/paas-bpmn-runtime.vue.mjs";
|
|
@@ -126,8 +106,29 @@ import "./components/index.mjs";
|
|
|
126
106
|
import category_modal_default from "./modules/category/category-modal.vue.mjs";
|
|
127
107
|
import category_sider_default from "./modules/category/category-sider.vue.mjs";
|
|
128
108
|
import "./modules/category/index.mjs";
|
|
109
|
+
import { useEditorConsole, useEditorConsoleInner } from "./modules/code-editor/useEditorConsole.mjs";
|
|
110
|
+
import { Lang, Prop, Theme } from "./modules/code-editor/useMonacoEditor.mjs";
|
|
111
|
+
import { MonacoEditor } from "./modules/code-editor/index.mjs";
|
|
112
|
+
import color_editor_default from "./modules/color-picker/src/color-editor.vue.mjs";
|
|
113
|
+
import ColorPicker_default from "./modules/color-picker/src/ColorPicker.vue.mjs";
|
|
114
|
+
import "./modules/color-picker/index.mjs";
|
|
115
|
+
import { GCT_DND_INSERT_POS } from "./modules/gct-dnd/constants/index.mjs";
|
|
116
|
+
import GctDndItem from "./modules/gct-dnd/components/gct-dnd-item/gct-dnd-item.mjs";
|
|
117
|
+
import { GctDndDropLine } from "./modules/gct-dnd/components/gct-dnd-drop-line/gct-dnd-drop-line.mjs";
|
|
118
|
+
import GctDndContainer from "./modules/gct-dnd/components/gct-dnd-container/gct-dnd-container.mjs";
|
|
119
|
+
import "./modules/gct-dnd/index.mjs";
|
|
120
|
+
import Cropper_default from "./modules/picture-cropper/src/Cropper.vue.mjs";
|
|
121
|
+
import CopperFreeModal_default from "./modules/picture-cropper/src/CopperFreeModal.vue.mjs";
|
|
122
|
+
import CopperModal_default from "./modules/picture-cropper/src/CopperModal.vue.mjs";
|
|
123
|
+
import CropperAvatar_default from "./modules/picture-cropper/src/CropperAvatar.vue.mjs";
|
|
124
|
+
import picture_preview_default from "./modules/picture-preview/src/picture-preview.vue.mjs";
|
|
125
|
+
import { createImgPreview } from "./modules/picture-preview/src/functional.mjs";
|
|
126
|
+
import "./modules/picture-preview/index.mjs";
|
|
127
|
+
import CropperFree_default from "./modules/picture-cropper/src/CropperFree.vue.mjs";
|
|
128
|
+
import "./modules/picture-cropper/index.mjs";
|
|
129
129
|
import print_tmpl_modal_default from "./modules/print-tmpl/print-tmpl-modal.vue.mjs";
|
|
130
130
|
import "./modules/print-tmpl/index.mjs";
|
|
131
|
+
import "./modules/relationship-diagram-config/index.mjs";
|
|
131
132
|
import { coreWebCreateAppVue } from "./create-app-vue.mjs";
|
|
132
133
|
import { coreWebSetupApp } from "./setup-app.mjs";
|
|
133
134
|
//#region src/index.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
1
2
|
import color_editor_vue_vue_type_script_setup_true_name_color_editor_lang_default from "./color-editor.vue_vue_type_script_setup_true_name_color-editor_lang.mjs";
|
|
2
3
|
import './color-editor.vue_vue_type_style_index_0_scoped_7b102f87_lang.css';/* empty css */
|
|
3
|
-
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
4
4
|
//#region src/modules/color-picker/src/color-editor.vue
|
|
5
5
|
var color_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(color_editor_vue_vue_type_script_setup_true_name_color_editor_lang_default, [["__scopeId", "data-v-7b102f87"]]);
|
|
6
6
|
//#endregion
|
|
@@ -10,6 +10,8 @@ import { TableITemState } from "../../state/table-item/table-item.state.mjs";
|
|
|
10
10
|
* @implements {ITableItemController}
|
|
11
11
|
*/
|
|
12
12
|
var TableItemController = class {
|
|
13
|
+
row;
|
|
14
|
+
model;
|
|
13
15
|
state = this.createState();
|
|
14
16
|
get value() {
|
|
15
17
|
return this.row.data[this.model.dataIndex];
|
|
@@ -40,7 +40,6 @@ var ModalWrapper_vue_vue_type_script_lang_default = defineComponent({
|
|
|
40
40
|
const minRealHeightRef = ref(0);
|
|
41
41
|
const ns = useNamespace("basic-modal-wrapper");
|
|
42
42
|
let realHeight = 0;
|
|
43
|
-
let stopElResizeFn = () => {};
|
|
44
43
|
const spinStyle = ref();
|
|
45
44
|
const { width, height } = useWindowSize();
|
|
46
45
|
watch([height, width], () => {
|
|
@@ -80,9 +79,7 @@ var ModalWrapper_vue_vue_type_script_lang_default = defineComponent({
|
|
|
80
79
|
const { modalHeaderHeight, modalFooterHeight } = props;
|
|
81
80
|
emit("ext-height", modalHeaderHeight + modalFooterHeight);
|
|
82
81
|
});
|
|
83
|
-
onUnmounted(() => {
|
|
84
|
-
stopElResizeFn && stopElResizeFn();
|
|
85
|
-
});
|
|
82
|
+
onUnmounted(() => {});
|
|
86
83
|
async function scrollTop() {
|
|
87
84
|
nextTick(() => {
|
|
88
85
|
if (wrapperRef.value) wrapperRef.value.getElement()?.scrollTo(0, 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import icon_print_folder_default from "./icon-print-folder.svg.mjs";
|
|
2
|
-
import icon_print_printer_default from "./icon-print-printer.svg.mjs";
|
|
3
1
|
import category_sider_default from "../category/category-sider.vue.mjs";
|
|
4
2
|
import "../category/index.mjs";
|
|
3
|
+
import icon_print_folder_default from "./icon-print-folder.svg.mjs";
|
|
4
|
+
import icon_print_printer_default from "./icon-print-printer.svg.mjs";
|
|
5
5
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, nextTick, normalizeClass, onMounted, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, watch, withCtx, withKeys } from "vue";
|
|
6
6
|
import { isNil } from "lodash-es";
|
|
7
7
|
import { FormDesignEnum, PrintModeEnums, PrintTypeEnum, t, useModal, useNamespace } from "@gct-paas/core";
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { IRelationshipDiagramNode } from './interface';
|
|
2
|
+
import { RelationshipDiagramConfigController } from './relationship-diagram-config.controller';
|
|
3
|
+
/**
|
|
4
|
+
* 所有的缓存操作,目前均会从
|
|
5
|
+
*
|
|
6
|
+
* @author zhanghanrui
|
|
7
|
+
* @date 2024-06-30 11:06:52
|
|
8
|
+
* @export
|
|
9
|
+
* @class CacheController
|
|
10
|
+
*/
|
|
11
|
+
export declare class CacheController {
|
|
12
|
+
protected c: RelationshipDiagramConfigController;
|
|
13
|
+
/**
|
|
14
|
+
* 正向节点的缓存
|
|
15
|
+
*
|
|
16
|
+
* @author zhanghanrui
|
|
17
|
+
* @date 2024-06-30 11:06:15
|
|
18
|
+
* @protected
|
|
19
|
+
* @type {Map<string, IRelationshipDiagramNode[]>}
|
|
20
|
+
*/
|
|
21
|
+
protected nodeCache: Map<string, IRelationshipDiagramNode[]>;
|
|
22
|
+
/**
|
|
23
|
+
* 反转节点的缓存
|
|
24
|
+
*
|
|
25
|
+
* @author zhanghanrui
|
|
26
|
+
* @date 2024-06-30 11:06:28
|
|
27
|
+
* @protected
|
|
28
|
+
* @type {Map<string, IRelationshipDiagramNode[]>}
|
|
29
|
+
*/
|
|
30
|
+
protected reverseNodeCache: Map<string, IRelationshipDiagramNode[]>;
|
|
31
|
+
constructor(c: RelationshipDiagramConfigController);
|
|
32
|
+
/**
|
|
33
|
+
* 清空指定节点后的所有数据并进行备份
|
|
34
|
+
*
|
|
35
|
+
* @author zhanghanrui
|
|
36
|
+
* @date 2024-06-30 12:06:00
|
|
37
|
+
* @param {IRelationshipDiagramNode} node 正向节点,清空属性之前的数据
|
|
38
|
+
* @return {*} {boolean} 表示是否有后续节点被清空和缓存
|
|
39
|
+
*/
|
|
40
|
+
clear(node: IRelationshipDiagramNode): boolean;
|
|
41
|
+
/**
|
|
42
|
+
* 根据指定节点恢复缓存的后续节点
|
|
43
|
+
*
|
|
44
|
+
* @author zhanghanrui
|
|
45
|
+
* @date 2024-06-30 12:06:24
|
|
46
|
+
* @param {IRelationshipDiagramNode} node 重新选择属性后的节点数据
|
|
47
|
+
* @return {*} {boolean} 有无数据恢复
|
|
48
|
+
*/
|
|
49
|
+
reset(node: IRelationshipDiagramNode): boolean;
|
|
50
|
+
/**
|
|
51
|
+
* 清空指定节点后的所有数据并进行备份,备份包含节点和后续节点
|
|
52
|
+
*
|
|
53
|
+
* @author zhanghanrui
|
|
54
|
+
* @date 2024-06-30 12:06:25
|
|
55
|
+
* @param {IRelationshipDiagramNode} node 反向节点,修改前包含字段的节点
|
|
56
|
+
* @param {string} [prefix='']
|
|
57
|
+
* @return {*} {boolean} 表示是否有后续节点被清空和缓存
|
|
58
|
+
*/
|
|
59
|
+
reverseClear(node: IRelationshipDiagramNode, prefix?: string): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 回填反向节点的缓存
|
|
62
|
+
*
|
|
63
|
+
* @author zhanghanrui
|
|
64
|
+
* @date 2024-06-30 12:06:20
|
|
65
|
+
* @param {IRelationshipDiagramNode} node 修改后带字段的反向节点
|
|
66
|
+
* @param {string} [prefix='']
|
|
67
|
+
* @return {*} {boolean} 是否后后续节点恢复
|
|
68
|
+
*/
|
|
69
|
+
reverseReset(node: IRelationshipDiagramNode, prefix?: string): boolean;
|
|
70
|
+
}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import "./relationship-diagram-config.controller.mjs";
|
|
2
|
+
import { cloneDeep } from "lodash-es";
|
|
3
|
+
//#region src/modules/relationship-diagram-config/cache.controller.ts
|
|
4
|
+
/**
|
|
5
|
+
* 所有的缓存操作,目前均会从
|
|
6
|
+
*
|
|
7
|
+
* @author zhanghanrui
|
|
8
|
+
* @date 2024-06-30 11:06:52
|
|
9
|
+
* @export
|
|
10
|
+
* @class CacheController
|
|
11
|
+
*/
|
|
12
|
+
var CacheController = class {
|
|
13
|
+
c;
|
|
14
|
+
/**
|
|
15
|
+
* 正向节点的缓存
|
|
16
|
+
*
|
|
17
|
+
* @author zhanghanrui
|
|
18
|
+
* @date 2024-06-30 11:06:15
|
|
19
|
+
* @protected
|
|
20
|
+
* @type {Map<string, IRelationshipDiagramNode[]>}
|
|
21
|
+
*/
|
|
22
|
+
nodeCache = /* @__PURE__ */ new Map();
|
|
23
|
+
/**
|
|
24
|
+
* 反转节点的缓存
|
|
25
|
+
*
|
|
26
|
+
* @author zhanghanrui
|
|
27
|
+
* @date 2024-06-30 11:06:28
|
|
28
|
+
* @protected
|
|
29
|
+
* @type {Map<string, IRelationshipDiagramNode[]>}
|
|
30
|
+
*/
|
|
31
|
+
reverseNodeCache = /* @__PURE__ */ new Map();
|
|
32
|
+
constructor(c) {
|
|
33
|
+
this.c = c;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* 清空指定节点后的所有数据并进行备份
|
|
37
|
+
*
|
|
38
|
+
* @author zhanghanrui
|
|
39
|
+
* @date 2024-06-30 12:06:00
|
|
40
|
+
* @param {IRelationshipDiagramNode} node 正向节点,清空属性之前的数据
|
|
41
|
+
* @return {*} {boolean} 表示是否有后续节点被清空和缓存
|
|
42
|
+
*/
|
|
43
|
+
clear(node) {
|
|
44
|
+
const nextNode = this.c.node.get(node.id, 1);
|
|
45
|
+
if (nextNode) {
|
|
46
|
+
const key = `${node.id}:${node.value}`;
|
|
47
|
+
const i = this.c.node.getNodes().findIndex((n) => n.id === node.id);
|
|
48
|
+
const nodes = this.c.state.nodes.slice(i + 1, this.c.state.nodes.length);
|
|
49
|
+
if (nodes.length > 0) {
|
|
50
|
+
this.nodeCache.set(key, cloneDeep(nodes));
|
|
51
|
+
this.c.node.delete(nextNode.id);
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* 根据指定节点恢复缓存的后续节点
|
|
59
|
+
*
|
|
60
|
+
* @author zhanghanrui
|
|
61
|
+
* @date 2024-06-30 12:06:24
|
|
62
|
+
* @param {IRelationshipDiagramNode} node 重新选择属性后的节点数据
|
|
63
|
+
* @return {*} {boolean} 有无数据恢复
|
|
64
|
+
*/
|
|
65
|
+
reset(node) {
|
|
66
|
+
if (node.value) {
|
|
67
|
+
const key = `${node.id}:${node.value}`;
|
|
68
|
+
if (this.nodeCache.has(key)) {
|
|
69
|
+
const nodes = this.nodeCache.get(key);
|
|
70
|
+
if (nodes && nodes.length > 0) {
|
|
71
|
+
this.c.node.setNodes([node, ...nodes], false);
|
|
72
|
+
this.nodeCache.delete(key);
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return false;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* 清空指定节点后的所有数据并进行备份,备份包含节点和后续节点
|
|
81
|
+
*
|
|
82
|
+
* @author zhanghanrui
|
|
83
|
+
* @date 2024-06-30 12:06:25
|
|
84
|
+
* @param {IRelationshipDiagramNode} node 反向节点,修改前包含字段的节点
|
|
85
|
+
* @param {string} [prefix='']
|
|
86
|
+
* @return {*} {boolean} 表示是否有后续节点被清空和缓存
|
|
87
|
+
*/
|
|
88
|
+
reverseClear(node, prefix = "") {
|
|
89
|
+
const key = `${prefix}${node.id}${node.modelKey ? `:${node.modelKey}` : ""}`;
|
|
90
|
+
const nextNode = this.c.node.get(node.id, 1);
|
|
91
|
+
if (nextNode) {
|
|
92
|
+
const i = this.c.node.getNodes().findIndex((n) => n.id === node.id);
|
|
93
|
+
const nodes = this.c.state.nodes.slice(i + 1, this.c.state.nodes.length);
|
|
94
|
+
if (nodes.length > 0) {
|
|
95
|
+
this.reverseNodeCache.set(key, [cloneDeep(node), ...cloneDeep(nodes)]);
|
|
96
|
+
this.c.node.delete(nextNode.id);
|
|
97
|
+
return true;
|
|
98
|
+
}
|
|
99
|
+
} else if (node.modelKey && node.value) this.reverseNodeCache.set(key, [cloneDeep(node)]);
|
|
100
|
+
return false;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* 回填反向节点的缓存
|
|
104
|
+
*
|
|
105
|
+
* @author zhanghanrui
|
|
106
|
+
* @date 2024-06-30 12:06:20
|
|
107
|
+
* @param {IRelationshipDiagramNode} node 修改后带字段的反向节点
|
|
108
|
+
* @param {string} [prefix='']
|
|
109
|
+
* @return {*} {boolean} 是否后后续节点恢复
|
|
110
|
+
*/
|
|
111
|
+
reverseReset(node, prefix = "") {
|
|
112
|
+
const key = `${prefix}${node.id}${node.modelKey ? `:${node.modelKey}` : ""}`;
|
|
113
|
+
if (this.reverseNodeCache.has(key)) {
|
|
114
|
+
const nodes = cloneDeep(this.reverseNodeCache.get(key));
|
|
115
|
+
if (nodes.length > 0) {
|
|
116
|
+
const first = nodes[0];
|
|
117
|
+
if (first.modelKey !== node.modelKey) return false;
|
|
118
|
+
this.c.node.update(first);
|
|
119
|
+
this.c.node.setNodes(nodes, false);
|
|
120
|
+
this.reverseNodeCache.delete(key);
|
|
121
|
+
return true;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
return false;
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
//#endregion
|
|
128
|
+
export { CacheController };
|