@gct-paas/core-web 0.1.6-dev.15 → 0.1.6-dev.16
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-uRTV30Ek.js → ColorPicker-D_YhW6KI.js} +2 -2
- package/dist/{JsBarcode-COunfKNO.js → JsBarcode-DAYpP8-F.js} +2 -2
- package/dist/{_plugin-vue_export-helper-DMiyj2_E.js → _plugin-vue_export-helper-BQU8xCzQ.js} +1 -1
- package/dist/{chunk-CeX__g8u.js → chunk-CH9A7dlZ.js} +1 -1
- package/dist/components-lzdV4jsd.js +2 -0
- package/dist/{cropper-CVnZnyhI.js → cropper-CVLHkp07.js} +2 -2
- package/dist/{de_DE-CXxQwKMQ.js → de_DE-DXY_MBpZ.js} +2 -2
- package/dist/{defineProperty-DDBtkzz5.js → defineProperty-dfGP_BWZ.js} +1 -1
- package/dist/{diagram-config-item-Bmn1dfVu.js → diagram-config-item-DK9U0X3D.js} +2 -2
- package/dist/{diagram-config-item-reverse-2DZGf6tV.js → diagram-config-item-reverse-DuhxK75W.js} +2 -2
- package/dist/{diagram-config-item-virtual-BcVn7C3j.js → diagram-config-item-virtual-BDkAi_sY.js} +2 -2
- package/dist/{en_US-3Q4NcT39.js → en_US-B60297aE.js} +2 -2
- package/dist/{es_ES-C93EhKUt.js → es_ES-BsEPbujH.js} +2 -2
- package/dist/event-8H8kNezf.js +2 -0
- package/dist/event-DXj07y2x.js +2 -0
- package/dist/event-DrAlag2g.js +2 -0
- package/dist/event-config-BYm-jQQ9.js +2 -0
- package/dist/field-permission-OYTC7N-F.js +2 -0
- package/dist/{fr_FR-D2dS74tH.js → fr_FR-CLxJ5w_x.js} +2 -2
- package/dist/global-modal-D6huXKix.js +2 -0
- package/dist/hook-2yPS_tBM.js +2 -0
- package/dist/{hooks-Dlci7Y_k.js → hooks-C_lZMyr4.js} +2 -2
- package/dist/{icon-next-picker-C0xMEvp7.js → icon-next-picker-CWLMAGdN.js} +1 -1
- package/dist/index.min.css +1 -1
- package/dist/{ja_JP-C7ON9ru7.js → ja_JP-5FNqXz5U.js} +2 -2
- package/dist/loader.esm.min.js +2 -2
- package/dist/{monaco-editor-BcDFov5A.js → monaco-editor-B3oyWnvP.js} +2 -2
- package/dist/node-basic-info-D2u-k1_f.js +2 -0
- package/dist/node-binding-page-A1-kjZKB.js +2 -0
- package/dist/node-btns-efVCZJYK.js +2 -0
- package/dist/{objectSpread2-C8eu0aH8.js → objectSpread2-BV1lwEwB.js} +1 -1
- package/dist/{overlayscrollbars-vue-CaFsDgU3.js → overlayscrollbars-vue-DiQitz9V.js} +1 -1
- package/dist/paas-bpmn-runtime-Dgt6HlXb.js +2 -0
- package/dist/{perm-CYQVUPZR.js → perm-NbolTHX_.js} +2 -2
- package/dist/{perm-Dhu5vcqq.js → perm-n1u9sxns.js} +2 -2
- package/dist/process-designer-CoQJ5rtK.js +2 -0
- package/dist/prop-72inYfIT.js +2 -0
- package/dist/prop-Bo4E97rG.js +2 -0
- package/dist/{prop-CXaVOYud.js → prop-BoFyW0Ra.js} +2 -2
- package/dist/prop-By1NogLy.js +2 -0
- package/dist/{prop-DuAVrO3B.js → prop-C4CHJ2Fh.js} +2 -2
- package/dist/prop-CQQEZ_-i.js +2 -0
- package/dist/{prop-f5r9vRs4.js → prop-CfOgV9Cz.js} +2 -2
- package/dist/{pt_PT-8ZpsbQuO.js → pt_PT-BBpzdjBt.js} +2 -2
- package/dist/{relationship-diagram-config-TD_kmHSY.js → relationship-diagram-config-DcJA222B.js} +2 -2
- package/dist/{rich-editor-Zvvtfl11.js → rich-editor-D0DdDp6m.js} +2 -2
- package/dist/{ru_RU-ClPC9fIj.js → ru_RU-CLdyecfV.js} +2 -2
- package/dist/{select-script-B5aeNjn5.js → select-script-C8g8BaRF.js} +2 -2
- package/dist/{simple-collapse-Cwn3DXVw.js → simple-collapse-DlD8p22o.js} +2 -2
- package/dist/{template-C0L8wwo4.js → template-B86xuMSD.js} +2 -2
- package/dist/{tr_TR-IdN74S9H.js → tr_TR-4Cn_msHz.js} +2 -2
- package/dist/{useMonacoEditor-C73zvdQc.js → useMonacoEditor-D3FJiex1.js} +2 -2
- package/dist/{utils-1hIMq32P.js → utils-BbeZSSeJ.js} +2 -2
- package/dist/{vi_VN-5jRSXykJ.js → vi_VN-DlIrp-yN.js} +2 -2
- package/dist/{zh_CN-BOOnrmuK.js → zh_CN-iflonF5E.js} +2 -2
- package/dist/{zh_TW-BeWiTMnz.js → zh_TW-NDaibQ8_.js} +2 -2
- package/es/components/BpmnRuntime/paas/paas-bpmn-runtime.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/components/field-tree-select/field-tree-select.vue.mjs +2 -2
- package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +2 -2
- package/es/components/field-tree-select/{field-tree-select.vue_vue_type_style_index_0_scoped_898030d3_lang.css → field-tree-select.vue_vue_type_style_index_0_scoped_24efd443_lang.css} +20 -20
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +2 -2
- package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +13 -13
- package/es/components/paas-bpmn-log/{paas-bpmn-log.vue_vue_type_style_index_0_scoped_eb574523_lang.css → paas-bpmn-log.vue_vue_type_style_index_0_scoped_3882c856_lang.css} +9 -9
- package/es/modules/global-modal/src/BasicModal.vue_vue_type_script_setup_true_name_BasicModal_lang.mjs +55 -70
- package/es/modules/process-designer/components/event-config.vue.d.ts +7 -0
- package/es/modules/process-designer/components/event-config.vue.mjs +2 -2
- package/es/modules/process-designer/components/event-config.vue_vue_type_script_setup_true_lang.mjs +6 -5
- package/es/modules/process-designer/components/{event-config.vue_vue_type_style_index_0_scoped_572d5ffd_lang.css → event-config.vue_vue_type_style_index_0_scoped_160c18a9_lang.css} +3 -3
- package/es/modules/process-designer/components/field-permission.vue.d.ts +6 -0
- package/es/modules/process-designer/components/field-permission.vue.mjs +2 -2
- package/es/modules/process-designer/components/field-permission.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/es/modules/process-designer/components/field-permission.vue_vue_type_style_index_0_scoped_b8e5c15f_lang.css +46 -0
- package/es/modules/process-designer/components/form-item.vue.d.ts +32 -0
- package/es/modules/process-designer/components/node-basic-info.vue.d.ts +6 -0
- package/es/modules/process-designer/components/node-basic-info.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/modules/process-designer/components/node-binding-page.vue.d.ts +5 -0
- package/es/modules/process-designer/components/node-binding-page.vue.mjs +2 -2
- package/es/modules/process-designer/components/node-binding-page.vue_vue_type_script_setup_true_lang.mjs +17 -17
- package/es/modules/process-designer/components/{node-binding-page.vue_vue_type_style_index_0_scoped_9c31c6c8_lang.css → node-binding-page.vue_vue_type_style_index_0_scoped_2010f0e2_lang.css} +1 -1
- package/es/modules/process-designer/components/node-btns.vue.d.ts +6 -0
- package/es/modules/process-designer/components/node-btns.vue.mjs +2 -2
- package/es/modules/process-designer/components/node-btns.vue_vue_type_script_setup_true_lang.mjs +3 -2
- package/es/modules/process-designer/components/{node-btns.vue_vue_type_style_index_0_scoped_6d0b3f3b_lang.css → node-btns.vue_vue_type_style_index_0_scoped_5951a254_lang.css} +2 -2
- package/es/modules/process-designer/components/select-script.vue.d.ts +10 -0
- package/es/modules/process-designer/components/simple-collapse.vue.d.ts +24 -0
- package/es/modules/process-designer/design/bmpn-panel.vue.mjs +2 -2
- package/es/modules/process-designer/design/bmpn-panel.vue_vue_type_script_setup_true_lang.mjs +20 -13
- package/es/modules/process-designer/design/{bmpn-panel.vue_vue_type_style_index_0_scoped_eba73224_lang.css → bmpn-panel.vue_vue_type_style_index_0_scoped_e7f6ce74_lang.css} +20 -20
- package/es/modules/process-designer/design/bpmn-global.vue.mjs +2 -2
- package/es/modules/process-designer/design/bpmn-global.vue_vue_type_script_setup_true_lang.mjs +3 -2
- package/es/modules/process-designer/design/{bpmn-global.vue_vue_type_style_index_0_scoped_c9d6d005_lang.css → bpmn-global.vue_vue_type_style_index_0_scoped_bc3e00ee_lang.css} +2 -2
- package/es/modules/process-designer/design/bpmn-header.vue.mjs +2 -2
- package/es/modules/process-designer/design/bpmn-header.vue_vue_type_script_setup_true_lang.mjs +13 -12
- package/es/modules/process-designer/design/{bpmn-header.vue_vue_type_style_index_0_scoped_92044d4c_lang.css → bpmn-header.vue_vue_type_style_index_0_scoped_e9436d99_lang.css} +6 -6
- package/es/modules/process-designer/design/bpmn-versions.vue.mjs +2 -2
- package/es/modules/process-designer/design/bpmn-versions.vue_vue_type_script_setup_true_lang.mjs +14 -14
- package/es/modules/process-designer/design/{bpmn-versions.vue_vue_type_style_index_0_scoped_c8252604_lang.css → bpmn-versions.vue_vue_type_style_index_0_scoped_8a62d94b_lang.css} +23 -23
- package/es/modules/process-designer/hook/index.d.ts +5 -0
- package/es/modules/process-designer/hook/index.mjs +18 -0
- package/es/modules/process-designer/hook/useProcess.d.ts +197 -34
- package/es/modules/process-designer/hook/useProcess.mjs +296 -292
- package/es/modules/process-designer/index.d.ts +5 -0
- package/es/modules/process-designer/panels/bpmnApproval/event.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnApproval/perm.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnApproval/prop.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnApproval/prop.vue_vue_type_script_setup_true_lang.mjs +4 -4
- package/es/modules/process-designer/panels/bpmnEnd/prop.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnJoin/prop.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnJs/prop.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnJs/prop.vue_vue_type_script_setup_true_lang.mjs +3 -3
- package/es/modules/process-designer/panels/bpmnMessage/prop.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnMessage/prop.vue_vue_type_script_setup_true_lang.mjs +6 -6
- package/es/modules/process-designer/panels/bpmnSubmit/event.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnSubmit/perm.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/bpmnSubmit/prop.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/global/event.vue.d.ts +6 -0
- package/es/modules/process-designer/panels/global/prop.vue.d.ts +4 -0
- package/es/modules/process-designer/panels/global/prop.vue_vue_type_script_setup_true_lang.mjs +16 -16
- package/es/modules/process-designer/panels/index.d.ts +8 -4
- package/es/modules/process-designer/panels/index.mjs +41 -34
- package/es/modules/process-designer/panels/interfaces/i-panel-extension.d.ts +21 -0
- package/es/modules/process-designer/panels/interfaces/i-panel-extension.mjs +7 -0
- package/es/modules/process-designer/process-designer.vue.d.ts +5 -0
- package/es/modules/process-designer/process-designer.vue_vue_type_script_setup_true_lang.mjs +22 -10
- package/package.json +8 -8
- package/dist/components-DAMtsLWz.js +0 -2
- package/dist/event-B7FDoAwS.js +0 -2
- package/dist/event-BG4yEFkW.js +0 -2
- package/dist/event-config-BX4ZNl-X.js +0 -2
- package/dist/event-l3QZLg2C.js +0 -2
- package/dist/field-permission-GbxXo2GX.js +0 -2
- package/dist/global-modal-b7mA5_Bp.js +0 -2
- package/dist/node-basic-info-wXj70byk.js +0 -2
- package/dist/node-binding-page-BPi81gHU.js +0 -2
- package/dist/node-btns-BZZkBDUc.js +0 -2
- package/dist/paas-bpmn-runtime-DYHPmrd-.js +0 -2
- package/dist/process-designer-CoCJM0jR.js +0 -2
- package/dist/prop-9RS10yk0.js +0 -2
- package/dist/prop-B8lmM6h4.js +0 -2
- package/dist/prop-CrNWtARu.js +0 -2
- package/dist/prop-LtDc8or1.js +0 -2
- package/dist/useProcess-CSoUgJu4.js +0 -2
- package/es/modules/process-designer/components/field-permission.vue_vue_type_style_index_0_scoped_d8767690_lang.css +0 -46
package/es/modules/process-designer/design/bpmn-header.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BpmnVersionStatusEnum } from "../constants/index.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { useProcessStore } from "../hook/index.mjs";
|
|
3
3
|
import { createCommentVNode, createElementBlock, createElementVNode, createTextVNode, defineComponent, openBlock, toDisplayString, unref } from "vue";
|
|
4
|
+
import { t } from "@gct-paas/core";
|
|
4
5
|
//#region src/modules/process-designer/design/bpmn-header.vue?vue&type=script&setup=true&lang.ts
|
|
5
6
|
var _hoisted_1 = { class: "bpmn-header pl24px ks-row-middle relative" };
|
|
6
7
|
var _hoisted_2 = { class: "text-[#FFFFFF] ks-col" };
|
|
@@ -12,25 +13,25 @@ var _hoisted_4 = { key: 1 };
|
|
|
12
13
|
var bpmn_header_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
13
14
|
__name: "bpmn-header",
|
|
14
15
|
setup(__props) {
|
|
15
|
-
const
|
|
16
|
+
const store = useProcessStore();
|
|
16
17
|
return (_ctx, _cache) => {
|
|
17
18
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
18
19
|
createElementVNode("div", _hoisted_2, [
|
|
19
|
-
createTextVNode(toDisplayString(unref(
|
|
20
|
+
createTextVNode(toDisplayString(unref(store).processInfo.categoryName) + " ", 1),
|
|
20
21
|
_cache[3] || (_cache[3] = createElementVNode("span", { class: "mx8px" }, "/", -1)),
|
|
21
|
-
createTextVNode(" " + toDisplayString(unref(
|
|
22
|
+
createTextVNode(" " + toDisplayString(unref(store).processInfo.name), 1)
|
|
22
23
|
]),
|
|
23
|
-
unref(
|
|
24
|
+
unref(store).curVersionInfo.status === unref(BpmnVersionStatusEnum).DRAFT ? (openBlock(), createElementBlock("div", _hoisted_3, [createElementVNode("div", {
|
|
24
25
|
class: "button ml-16px cursor-pointer btn-block",
|
|
25
|
-
onClick: _cache[0] || (_cache[0] = ($event) => unref(saveProcess
|
|
26
|
-
}, [_cache[4] || (_cache[4] = createElementVNode("i", { class: "iconfont icon-baocun1" }, null, -1)), createTextVNode(" " + toDisplayString(
|
|
26
|
+
onClick: _cache[0] || (_cache[0] = ($event) => unref(store).saveProcess())
|
|
27
|
+
}, [_cache[4] || (_cache[4] = createElementVNode("i", { class: "iconfont icon-baocun1" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("sys.saveText")), 1)]), createElementVNode("div", {
|
|
27
28
|
class: "button ml-16px cursor-pointer btn-block",
|
|
28
|
-
onClick: _cache[1] || (_cache[1] = ($event) => unref(publishProcess
|
|
29
|
-
}, [_cache[5] || (_cache[5] = createElementVNode("i", { class: "iconfont icon-fasong" }, null, -1)), createTextVNode(" " + toDisplayString(
|
|
30
|
-
unref(isFrontPage
|
|
29
|
+
onClick: _cache[1] || (_cache[1] = ($event) => unref(store).publishProcess())
|
|
30
|
+
}, [_cache[5] || (_cache[5] = createElementVNode("i", { class: "iconfont icon-fasong" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("sys.ipaas.saveAndPublish")), 1)])])) : createCommentVNode("", true),
|
|
31
|
+
unref(store).isFrontPage && unref(store).curVersionInfo.status === unref(BpmnVersionStatusEnum).PUBLISHED ? (openBlock(), createElementBlock("div", _hoisted_4, [createElementVNode("div", {
|
|
31
32
|
class: "button mr-16px cursor-pointer btn-block",
|
|
32
|
-
onClick: _cache[2] || (_cache[2] = ($event) => unref(saveUsers
|
|
33
|
-
}, [_cache[6] || (_cache[6] = createElementVNode("i", { class: "iconfont icon-baocun1" }, null, -1)), createTextVNode(" " + toDisplayString(
|
|
33
|
+
onClick: _cache[2] || (_cache[2] = ($event) => unref(store).saveUsers())
|
|
34
|
+
}, [_cache[6] || (_cache[6] = createElementVNode("i", { class: "iconfont icon-baocun1" }, null, -1)), createTextVNode(" " + toDisplayString(unref(t)("sys.saveText")), 1)])])) : createCommentVNode("", true)
|
|
34
35
|
]);
|
|
35
36
|
};
|
|
36
37
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.buttons[data-v-
|
|
1
|
+
.buttons[data-v-e9436d99] {
|
|
2
2
|
position: absolute;
|
|
3
3
|
display: flex;
|
|
4
4
|
align-items: center;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
top: 0;
|
|
8
8
|
right: 12px;
|
|
9
9
|
}
|
|
10
|
-
.button[data-v-
|
|
10
|
+
.button[data-v-e9436d99] {
|
|
11
11
|
height: 26px;
|
|
12
12
|
background: transparent;
|
|
13
13
|
border-radius: 4px;
|
|
@@ -19,19 +19,19 @@
|
|
|
19
19
|
line-height: 1em;
|
|
20
20
|
transition: all 0.3s;
|
|
21
21
|
}
|
|
22
|
-
.button i[data-v-
|
|
22
|
+
.button i[data-v-e9436d99] {
|
|
23
23
|
margin-right: 6px;
|
|
24
24
|
display: flex;
|
|
25
25
|
font-size: 12px;
|
|
26
26
|
}
|
|
27
|
-
.button[data-v-
|
|
27
|
+
.button[data-v-e9436d99]:hover {
|
|
28
28
|
border-color: #fff;
|
|
29
29
|
}
|
|
30
|
-
.button.btn-block[data-v-
|
|
30
|
+
.button.btn-block[data-v-e9436d99] {
|
|
31
31
|
background: #444444;
|
|
32
32
|
border: 1px solid #444444;
|
|
33
33
|
}
|
|
34
|
-
.button.btn-block[data-v-
|
|
34
|
+
.button.btn-block[data-v-e9436d99]:hover {
|
|
35
35
|
background: var(--ant-primary-color-hover);
|
|
36
36
|
border-color: var(--ant-primary-color-hover);
|
|
37
37
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import _plugin_vue_export_helper_default from "../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
2
2
|
import bpmn_versions_vue_vue_type_script_setup_true_lang_default from "./bpmn-versions.vue_vue_type_script_setup_true_lang.mjs";
|
|
3
|
-
import './bpmn-versions.
|
|
3
|
+
import './bpmn-versions.vue_vue_type_style_index_0_scoped_8a62d94b_lang.css';/* empty css */
|
|
4
4
|
//#region src/modules/process-designer/design/bpmn-versions.vue
|
|
5
|
-
var bpmn_versions_default = /* @__PURE__ */ _plugin_vue_export_helper_default(bpmn_versions_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
5
|
+
var bpmn_versions_default = /* @__PURE__ */ _plugin_vue_export_helper_default(bpmn_versions_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-8a62d94b"]]);
|
|
6
6
|
//#endregion
|
|
7
7
|
export { bpmn_versions_default as default };
|
package/es/modules/process-designer/design/bpmn-versions.vue_vue_type_script_setup_true_lang.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BpmnVersionStatusEnum } from "../constants/index.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { useProcessStore } from "../hook/index.mjs";
|
|
3
3
|
import { Fragment, computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
4
4
|
import { t } from "@gct-paas/core";
|
|
5
5
|
//#region src/modules/process-designer/design/bpmn-versions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -36,13 +36,13 @@ var _hoisted_15 = ["title"];
|
|
|
36
36
|
var bpmn_versions_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
37
37
|
__name: "bpmn-versions",
|
|
38
38
|
setup(__props) {
|
|
39
|
-
const
|
|
39
|
+
const store = useProcessStore();
|
|
40
40
|
const isExpand = ref(true);
|
|
41
41
|
const publishedVersion = computed(() => {
|
|
42
|
-
return versionList.
|
|
42
|
+
return store.versionList.find((item) => item.status === BpmnVersionStatusEnum.PUBLISHED);
|
|
43
43
|
});
|
|
44
44
|
const copyAvailable = computed(() => {
|
|
45
|
-
return versionList.
|
|
45
|
+
return store.versionList.every((item) => item.status !== BpmnVersionStatusEnum.DRAFT);
|
|
46
46
|
});
|
|
47
47
|
return (_ctx, _cache) => {
|
|
48
48
|
const _component_DownOutlined = resolveComponent("DownOutlined");
|
|
@@ -50,25 +50,25 @@ var bpmn_versions_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
50
50
|
return openBlock(), createElementBlock("div", null, [createElementVNode("div", _hoisted_1, [createElementVNode("div", {
|
|
51
51
|
class: "version-current cursor-pointer",
|
|
52
52
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => isExpand.value = !isExpand.value, ["prevent"]))
|
|
53
|
-
}, [publishedVersion.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_2, toDisplayString(unref(t)("sys.ipaas.currentVersionWithColon")), 1), createElementVNode("span", _hoisted_3, [createTextVNode(toDisplayString(publishedVersion.value.version) + " ", 1), !unref(isFrontPage
|
|
53
|
+
}, [publishedVersion.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_2, toDisplayString(unref(t)("sys.ipaas.currentVersionWithColon")), 1), createElementVNode("span", _hoisted_3, [createTextVNode(toDisplayString(publishedVersion.value.version) + " ", 1), !unref(store).isFrontPage ? (openBlock(), createElementBlock("span", _hoisted_4, "(" + toDisplayString(unref(t)("sys.bpmn.versionStatus.PUBLISHED")) + ")", 1)) : createCommentVNode("", true)])], 64)) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(unref(t)("sys.bpmn.noPublishedVersion")), 1)), !unref(store).isFrontPage ? (openBlock(), createElementBlock("div", _hoisted_6, [copyAvailable.value ? (openBlock(), createElementBlock("a", {
|
|
54
54
|
key: 0,
|
|
55
|
-
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => unref(createVersion
|
|
56
|
-
}, toDisplayString(unref(t)("sys.insert")), 1)) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_DownOutlined, { class: normalizeClass(["scale-y-80", { "rotate-180": isExpand.value }]) }, null, 8, ["class"])])])) : createCommentVNode("", true)]), !unref(isFrontPage
|
|
55
|
+
onClick: _cache[0] || (_cache[0] = withModifiers((...args) => unref(store).createVersion && unref(store).createVersion(...args), ["stop"]))
|
|
56
|
+
}, toDisplayString(unref(t)("sys.insert")), 1)) : createCommentVNode("", true), createElementVNode("div", _hoisted_7, [createVNode(_component_DownOutlined, { class: normalizeClass(["scale-y-80", { "rotate-180": isExpand.value }]) }, null, 8, ["class"])])])) : createCommentVNode("", true)]), !unref(store).isFrontPage ? (openBlock(), createElementBlock("div", {
|
|
57
57
|
key: 0,
|
|
58
58
|
class: normalizeClass(["version-list", { "is-expand": isExpand.value }])
|
|
59
|
-
}, [createElementVNode("div", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(versionList
|
|
59
|
+
}, [createElementVNode("div", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(unref(store).versionList, (item) => {
|
|
60
60
|
return openBlock(), createElementBlock("div", {
|
|
61
61
|
key: item.id,
|
|
62
|
-
class: normalizeClass(["version-item", { active: item.id === unref(curVersionId
|
|
63
|
-
onClick: () => unref(toggleVersion
|
|
62
|
+
class: normalizeClass(["version-item", { active: item.id === unref(store).curVersionId }]),
|
|
63
|
+
onClick: () => unref(store).toggleVersion(item.id)
|
|
64
64
|
}, [
|
|
65
65
|
createElementVNode("span", {
|
|
66
66
|
title: item.id,
|
|
67
67
|
class: "version-item__name"
|
|
68
68
|
}, toDisplayString(item.version), 9, _hoisted_9),
|
|
69
69
|
item.status !== unref(BpmnVersionStatusEnum).HISTORY ? (openBlock(), createElementBlock("span", _hoisted_10, "(" + toDisplayString(unref(t)("sys.bpmn.versionStatus." + item.status)) + ")", 1)) : createCommentVNode("", true),
|
|
70
|
-
item.id === unref(curVersionId
|
|
71
|
-
item.id === unref(curVersionId
|
|
70
|
+
item.id === unref(store).curVersionId ? (openBlock(), createElementBlock("span", _hoisted_11, toDisplayString(unref(t)("sys.ipaas.operating")), 1)) : createCommentVNode("", true),
|
|
71
|
+
item.id === unref(store).curVersionId ? (openBlock(), createElementBlock("i", {
|
|
72
72
|
key: 2,
|
|
73
73
|
title: unref(t)("sys.ipaas.operating"),
|
|
74
74
|
class: "iconfont icon-dingwei primary-color"
|
|
@@ -77,10 +77,10 @@ var bpmn_versions_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */
|
|
|
77
77
|
key: 0,
|
|
78
78
|
title: unref(t)("sys.copy"),
|
|
79
79
|
class: "iconfont icon-fuzhi1",
|
|
80
|
-
onClick: withModifiers(() => unref(copyVersion
|
|
80
|
+
onClick: withModifiers(() => unref(store).copyVersion(item.id), ["stop"])
|
|
81
81
|
}, null, 8, _hoisted_14)) : createCommentVNode("", true), createVNode(_component_a_popconfirm, {
|
|
82
82
|
title: unref(t)("sys.sureToDelete"),
|
|
83
|
-
onConfirm: () => unref(deleteVersion
|
|
83
|
+
onConfirm: () => unref(store).deleteVersion(item.id)
|
|
84
84
|
}, {
|
|
85
85
|
default: withCtx(() => [item.status === unref(BpmnVersionStatusEnum).DRAFT ? (openBlock(), createElementBlock("i", {
|
|
86
86
|
key: 0,
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
.primary-color[data-v-
|
|
1
|
+
.primary-color[data-v-8a62d94b] {
|
|
2
2
|
color: var(--ant-primary-color);
|
|
3
3
|
}
|
|
4
|
-
.error-color[data-v-
|
|
4
|
+
.error-color[data-v-8a62d94b] {
|
|
5
5
|
color: var(--ant-error-color);
|
|
6
6
|
}
|
|
7
|
-
.text-color[data-v-
|
|
7
|
+
.text-color[data-v-8a62d94b] {
|
|
8
8
|
color: #212528;
|
|
9
9
|
}
|
|
10
|
-
.version-wrapper[data-v-
|
|
10
|
+
.version-wrapper[data-v-8a62d94b] {
|
|
11
11
|
width: 246px;
|
|
12
12
|
box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.12);
|
|
13
13
|
border-radius: 4px;
|
|
14
14
|
overflow: hidden;
|
|
15
15
|
}
|
|
16
|
-
.version-current[data-v-
|
|
16
|
+
.version-current[data-v-8a62d94b] {
|
|
17
17
|
height: 36px;
|
|
18
18
|
background-color: #fafafa;
|
|
19
19
|
display: flex;
|
|
20
20
|
align-items: center;
|
|
21
21
|
padding: 0 12px;
|
|
22
22
|
}
|
|
23
|
-
.version-list[data-v-
|
|
23
|
+
.version-list[data-v-8a62d94b] {
|
|
24
24
|
max-height: 60vh;
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
display: grid;
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
transition: 0.3s ease;
|
|
30
30
|
background-color: #fff;
|
|
31
31
|
}
|
|
32
|
-
.version-list.is-expand[data-v-
|
|
32
|
+
.version-list.is-expand[data-v-8a62d94b] {
|
|
33
33
|
grid-template-rows: 1fr;
|
|
34
34
|
}
|
|
35
|
-
.version-list > div[data-v-
|
|
35
|
+
.version-list > div[data-v-8a62d94b] {
|
|
36
36
|
overflow: hidden;
|
|
37
37
|
}
|
|
38
|
-
.version-list > div[data-v-
|
|
38
|
+
.version-list > div[data-v-8a62d94b]:hover {
|
|
39
39
|
overflow: auto;
|
|
40
40
|
}
|
|
41
|
-
.version-item[data-v-
|
|
41
|
+
.version-item[data-v-8a62d94b] {
|
|
42
42
|
height: 40px;
|
|
43
43
|
display: flex;
|
|
44
44
|
align-items: center;
|
|
@@ -48,49 +48,49 @@
|
|
|
48
48
|
color: #474747;
|
|
49
49
|
line-height: 1em;
|
|
50
50
|
}
|
|
51
|
-
.version-item[data-v-
|
|
51
|
+
.version-item[data-v-8a62d94b]:first-child {
|
|
52
52
|
border-top: 1px solid #f0f0f0;
|
|
53
53
|
}
|
|
54
|
-
.version-item[data-v-
|
|
54
|
+
.version-item[data-v-8a62d94b]:hover {
|
|
55
55
|
color: #212528;
|
|
56
56
|
background-color: hsl(from var(--ant-primary-color) h s 98%);
|
|
57
57
|
}
|
|
58
|
-
.version-item:hover .icon-dingwei[data-v-
|
|
58
|
+
.version-item:hover .icon-dingwei[data-v-8a62d94b] {
|
|
59
59
|
display: none;
|
|
60
60
|
}
|
|
61
|
-
.version-item:hover .actions[data-v-
|
|
61
|
+
.version-item:hover .actions[data-v-8a62d94b] {
|
|
62
62
|
display: flex;
|
|
63
63
|
}
|
|
64
|
-
.version-item.active .version-item__name[data-v-
|
|
65
|
-
.version-item.active .version-item__status[data-v-
|
|
64
|
+
.version-item.active .version-item__name[data-v-8a62d94b],
|
|
65
|
+
.version-item.active .version-item__status[data-v-8a62d94b] {
|
|
66
66
|
color: #212528;
|
|
67
67
|
font-weight: 500;
|
|
68
68
|
}
|
|
69
|
-
.version-item .icon-dingwei[data-v-
|
|
69
|
+
.version-item .icon-dingwei[data-v-8a62d94b] {
|
|
70
70
|
position: absolute;
|
|
71
71
|
top: 50%;
|
|
72
72
|
right: 12px;
|
|
73
73
|
transform: translateY(-50%);
|
|
74
74
|
line-height: 1em;
|
|
75
75
|
}
|
|
76
|
-
.version-item .actions[data-v-
|
|
76
|
+
.version-item .actions[data-v-8a62d94b] {
|
|
77
77
|
position: absolute;
|
|
78
78
|
top: 50%;
|
|
79
79
|
right: 12px;
|
|
80
80
|
transform: translateY(-50%);
|
|
81
81
|
display: none;
|
|
82
82
|
}
|
|
83
|
-
.version-item .actions .iconfont[data-v-
|
|
83
|
+
.version-item .actions .iconfont[data-v-8a62d94b] {
|
|
84
84
|
cursor: pointer;
|
|
85
85
|
line-height: 1em;
|
|
86
86
|
}
|
|
87
|
-
.version-item .actions .iconfont.icon-fuzhi1[data-v-
|
|
88
|
-
.version-item .actions .iconfont.icon-shanchu2[data-v-
|
|
87
|
+
.version-item .actions .iconfont.icon-fuzhi1[data-v-8a62d94b],
|
|
88
|
+
.version-item .actions .iconfont.icon-shanchu2[data-v-8a62d94b] {
|
|
89
89
|
color: #8f8f8f;
|
|
90
90
|
}
|
|
91
|
-
.version-item .actions .iconfont.icon-fuzhi1[data-v-
|
|
91
|
+
.version-item .actions .iconfont.icon-fuzhi1[data-v-8a62d94b]:hover {
|
|
92
92
|
color: var(--ant-primary-color);
|
|
93
93
|
}
|
|
94
|
-
.version-item .actions .iconfont.icon-shanchu2[data-v-
|
|
94
|
+
.version-item .actions .iconfont.icon-shanchu2[data-v-8a62d94b]:hover {
|
|
95
95
|
color: var(--ant-error-color);
|
|
96
96
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { createProcessStore } from "./useProcess.mjs";
|
|
2
|
+
import { inject, provide } from "vue";
|
|
3
|
+
import { useGctFlowKey } from "@gct-paas/flow";
|
|
4
|
+
//#region src/modules/process-designer/hook/index.ts
|
|
5
|
+
/**
|
|
6
|
+
* 获取当前作用域下唯一的 useProcess Store 实例
|
|
7
|
+
*/
|
|
8
|
+
function useProcessStore() {
|
|
9
|
+
const key = useGctFlowKey();
|
|
10
|
+
let store = inject(key);
|
|
11
|
+
if (!store) {
|
|
12
|
+
store = createProcessStore(key)();
|
|
13
|
+
provide(key, store);
|
|
14
|
+
}
|
|
15
|
+
return store;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { useProcessStore };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IGctBpmnEventConfig } from '@gct-paas/flow';
|
|
2
2
|
import { PmProcessDefinition, ProcessDefinitionVerListResponse, ProcessDefinitionVersionResponse } from '@gct-paas/api/apaas';
|
|
3
|
-
|
|
3
|
+
import { defineStore, Store } from 'pinia';
|
|
4
|
+
export interface GlobalConfig {
|
|
4
5
|
id: string;
|
|
5
6
|
type: string;
|
|
6
7
|
data: {
|
|
@@ -20,26 +21,186 @@ export interface Global {
|
|
|
20
21
|
buttonConfig?: IObject[];
|
|
21
22
|
};
|
|
22
23
|
}
|
|
23
|
-
declare function addPaasBpmnNode(): void;
|
|
24
|
-
/**
|
|
25
|
-
* 创建节点后,给节点添加默认值
|
|
26
|
-
* @param node
|
|
27
|
-
*/
|
|
28
|
-
declare function onNodeCreated(node: IObject): void;
|
|
29
|
-
declare function addNodeDefaultValue(data: IObject): IObject;
|
|
30
|
-
declare function loadVersionList(): Promise<void>;
|
|
31
|
-
declare function toggleVersion(id: string): void;
|
|
32
|
-
declare function createVersion(): Promise<void>;
|
|
33
|
-
declare function deleteVersion(ids: string): Promise<void>;
|
|
34
|
-
declare function copyVersion(id: string): Promise<void>;
|
|
35
|
-
declare function initProcess(id: string, readonly?: boolean): Promise<void>;
|
|
36
|
-
declare function saveProcess(): Promise<void>;
|
|
37
|
-
declare function publishProcess(): Promise<void>;
|
|
38
|
-
declare function saveUsers(): Promise<void>;
|
|
39
|
-
declare function validNodeData(nodeId: string): void;
|
|
40
24
|
export declare function useProcess(): {
|
|
41
|
-
|
|
42
|
-
|
|
25
|
+
init: (options: import('@gct-paas/flow').IGctFlowOptions) => void;
|
|
26
|
+
initData: (json?: string | object, isBusiness?: boolean, extraPlugins?: import('@gct-paas/flow').FlowPlugin[]) => void;
|
|
27
|
+
toJson: () => string;
|
|
28
|
+
toBpmnData: (options?: import('@gct-paas/flow').ITransformOpts, isBusiness?: boolean) => import('@gct-paas/flow').ITransformResult;
|
|
29
|
+
validateNode: (node: string | import('@gct-paas/flow').IGctBpmnNode, getExtraTips?: any) => {
|
|
30
|
+
valid: boolean;
|
|
31
|
+
};
|
|
32
|
+
validate: (getExtraTips?: any) => {
|
|
33
|
+
valid: boolean;
|
|
34
|
+
};
|
|
35
|
+
toFlowPathNodeIds: () => {
|
|
36
|
+
bpmnFlowPathNodeIds: any[];
|
|
37
|
+
bpmnNodes: any[];
|
|
38
|
+
};
|
|
39
|
+
getI18nName: (data: any) => any;
|
|
40
|
+
reset: () => void;
|
|
41
|
+
destroy: () => void;
|
|
42
|
+
gctFlowOpts: import('vue').Ref<{
|
|
43
|
+
data?: {
|
|
44
|
+
[x: string]: any;
|
|
45
|
+
type: import("@gct-paas/flow").FlowNodeTypeEnum.Flow;
|
|
46
|
+
children: {
|
|
47
|
+
[x: string]: any;
|
|
48
|
+
id: string;
|
|
49
|
+
type: import('@gct-paas/flow').FlowNodeTypeEnum | string;
|
|
50
|
+
data?: any;
|
|
51
|
+
tooltips?: string[];
|
|
52
|
+
allowNext?: boolean;
|
|
53
|
+
allowDelete?: boolean;
|
|
54
|
+
syncDeleteById?: string;
|
|
55
|
+
hidden?: boolean;
|
|
56
|
+
fold?: boolean;
|
|
57
|
+
}[];
|
|
58
|
+
id: string;
|
|
59
|
+
data?: any;
|
|
60
|
+
tooltips?: string[];
|
|
61
|
+
allowNext?: boolean;
|
|
62
|
+
allowDelete?: boolean;
|
|
63
|
+
syncDeleteById?: string;
|
|
64
|
+
hidden?: boolean;
|
|
65
|
+
fold?: boolean;
|
|
66
|
+
};
|
|
67
|
+
readonly?: boolean;
|
|
68
|
+
instMode?: boolean;
|
|
69
|
+
actions?: {
|
|
70
|
+
key: string;
|
|
71
|
+
name: string;
|
|
72
|
+
icon: string;
|
|
73
|
+
color: string;
|
|
74
|
+
hide?: boolean | ((props: any) => boolean);
|
|
75
|
+
}[];
|
|
76
|
+
onNodeCreate?: any;
|
|
77
|
+
onNodeClick?: any;
|
|
78
|
+
}, import('@gct-paas/flow').IGctFlowOptions | {
|
|
79
|
+
data?: {
|
|
80
|
+
[x: string]: any;
|
|
81
|
+
type: import("@gct-paas/flow").FlowNodeTypeEnum.Flow;
|
|
82
|
+
children: {
|
|
83
|
+
[x: string]: any;
|
|
84
|
+
id: string;
|
|
85
|
+
type: import('@gct-paas/flow').FlowNodeTypeEnum | string;
|
|
86
|
+
data?: any;
|
|
87
|
+
tooltips?: string[];
|
|
88
|
+
allowNext?: boolean;
|
|
89
|
+
allowDelete?: boolean;
|
|
90
|
+
syncDeleteById?: string;
|
|
91
|
+
hidden?: boolean;
|
|
92
|
+
fold?: boolean;
|
|
93
|
+
}[];
|
|
94
|
+
id: string;
|
|
95
|
+
data?: any;
|
|
96
|
+
tooltips?: string[];
|
|
97
|
+
allowNext?: boolean;
|
|
98
|
+
allowDelete?: boolean;
|
|
99
|
+
syncDeleteById?: string;
|
|
100
|
+
hidden?: boolean;
|
|
101
|
+
fold?: boolean;
|
|
102
|
+
};
|
|
103
|
+
readonly?: boolean;
|
|
104
|
+
instMode?: boolean;
|
|
105
|
+
actions?: {
|
|
106
|
+
key: string;
|
|
107
|
+
name: string;
|
|
108
|
+
icon: string;
|
|
109
|
+
color: string;
|
|
110
|
+
hide?: boolean | ((props: any) => boolean);
|
|
111
|
+
}[];
|
|
112
|
+
onNodeCreate?: any;
|
|
113
|
+
onNodeClick?: any;
|
|
114
|
+
}>;
|
|
115
|
+
gctFlowData: import('vue').Ref<{
|
|
116
|
+
[x: string]: any;
|
|
117
|
+
type: import("@gct-paas/flow").FlowNodeTypeEnum.Flow;
|
|
118
|
+
children: {
|
|
119
|
+
[x: string]: any;
|
|
120
|
+
id: string;
|
|
121
|
+
type: import('@gct-paas/flow').FlowNodeTypeEnum | string;
|
|
122
|
+
data?: any;
|
|
123
|
+
tooltips?: string[];
|
|
124
|
+
allowNext?: boolean;
|
|
125
|
+
allowDelete?: boolean;
|
|
126
|
+
syncDeleteById?: string;
|
|
127
|
+
hidden?: boolean;
|
|
128
|
+
fold?: boolean;
|
|
129
|
+
}[];
|
|
130
|
+
id: string;
|
|
131
|
+
data?: any;
|
|
132
|
+
tooltips?: string[];
|
|
133
|
+
allowNext?: boolean;
|
|
134
|
+
allowDelete?: boolean;
|
|
135
|
+
syncDeleteById?: string;
|
|
136
|
+
hidden?: boolean;
|
|
137
|
+
fold?: boolean;
|
|
138
|
+
}, import("@gct-paas/flow").GctFlowNode.Flow | {
|
|
139
|
+
[x: string]: any;
|
|
140
|
+
type: import("@gct-paas/flow").FlowNodeTypeEnum.Flow;
|
|
141
|
+
children: {
|
|
142
|
+
[x: string]: any;
|
|
143
|
+
id: string;
|
|
144
|
+
type: import('@gct-paas/flow').FlowNodeTypeEnum | string;
|
|
145
|
+
data?: any;
|
|
146
|
+
tooltips?: string[];
|
|
147
|
+
allowNext?: boolean;
|
|
148
|
+
allowDelete?: boolean;
|
|
149
|
+
syncDeleteById?: string;
|
|
150
|
+
hidden?: boolean;
|
|
151
|
+
fold?: boolean;
|
|
152
|
+
}[];
|
|
153
|
+
id: string;
|
|
154
|
+
data?: any;
|
|
155
|
+
tooltips?: string[];
|
|
156
|
+
allowNext?: boolean;
|
|
157
|
+
allowDelete?: boolean;
|
|
158
|
+
syncDeleteById?: string;
|
|
159
|
+
hidden?: boolean;
|
|
160
|
+
fold?: boolean;
|
|
161
|
+
}>;
|
|
162
|
+
gctFlowDataLastNode: import('vue').ComputedRef<import("@gct-paas/flow").GctFlowNode.Basic>;
|
|
163
|
+
gctFlowDataMap: import('vue').ComputedRef<Record<string, {
|
|
164
|
+
idx: number;
|
|
165
|
+
pIds: string[];
|
|
166
|
+
prev?: string;
|
|
167
|
+
next?: string;
|
|
168
|
+
node: import("@gct-paas/flow").GctFlowNode.Basic;
|
|
169
|
+
mainFlowNode: boolean;
|
|
170
|
+
}>>;
|
|
171
|
+
setGctFlowData: (data: import("@gct-paas/flow").GctFlowNode.Flow) => void;
|
|
172
|
+
resetGctFlowData: () => void;
|
|
173
|
+
nodeDefinitionMap: import('vue').ShallowRef<Map<string, import('@gct-paas/flow').FlowNodeDefinition<import("@gct-paas/flow").GctFlowNode.Basic>>, Map<string, import('@gct-paas/flow').FlowNodeDefinition<import("@gct-paas/flow").GctFlowNode.Basic>>>;
|
|
174
|
+
customNodeViewMap: import('vue').ComputedRef<Record<string, any>>;
|
|
175
|
+
actionList: import('vue').ComputedRef<import('@gct-paas/flow').ActionItem[]>;
|
|
176
|
+
registerNodeDefinition: (def: import('@gct-paas/flow').FlowNodeDefinition) => void;
|
|
177
|
+
registerNodeDefinitions: (defs: import('@gct-paas/flow').FlowNodeDefinition[]) => void;
|
|
178
|
+
usePlugin: (plugin: import('@gct-paas/flow').FlowPlugin) => void;
|
|
179
|
+
nodeRenderMap: import('vue').ShallowRef<{}, {}>;
|
|
180
|
+
registerNodeRender: (render: Partial<Record<import('@gct-paas/flow').FlowNodeTypeEnum, any>>) => void;
|
|
181
|
+
nodeContentRenderDescMap: import('vue').ShallowRef<Record<string, any>, Record<string, any>>;
|
|
182
|
+
registerNodeContentRender: (render: Partial<Record<string, any>>) => void;
|
|
183
|
+
addNode: (type: import('@gct-paas/flow').FlowNodeTypeEnum | string, payload?: Partial<import("@gct-paas/flow").GctFlowNode.Basic>, afterAdd?: any) => import("@gct-paas/flow").GctFlowNode.Basic;
|
|
184
|
+
addNextNode: (id: string, type: import('@gct-paas/flow').FlowNodeTypeEnum | string, payload?: Partial<import("@gct-paas/flow").GctFlowNode.Basic>, front?: boolean) => import("@gct-paas/flow").GctFlowNode.Basic;
|
|
185
|
+
deleteNodeById: (id: string) => void;
|
|
186
|
+
nodeSelectedId: import('vue').Ref<string, string>;
|
|
187
|
+
setNodeSelected: (id?: string) => void;
|
|
188
|
+
flowSelectedId: import('vue').Ref<string, string>;
|
|
189
|
+
setFlowSelected: (id?: string) => void;
|
|
190
|
+
nodeSelectedData: import('vue').ComputedRef<import("@gct-paas/flow").GctFlowNode.Basic>;
|
|
191
|
+
isReadonly: import('vue').ComputedRef<boolean>;
|
|
192
|
+
setReadonly: (readonly: boolean) => void;
|
|
193
|
+
displayScale: import('vue').Ref<number, number>;
|
|
194
|
+
displayScaleText: import('vue').ComputedRef<string>;
|
|
195
|
+
changeDisplayScale: (step: -1 | 1) => void;
|
|
196
|
+
onNodeClick: (node: import("@gct-paas/flow").GctFlowNode.Basic) => void;
|
|
197
|
+
onNodeCreate: (node: import("@gct-paas/flow").GctFlowNode.Basic, parent?: any, flow?: any) => void;
|
|
198
|
+
isInstMode: import('vue').ComputedRef<boolean>;
|
|
199
|
+
setInstMode: (val: boolean) => void;
|
|
200
|
+
nodeInstStatusMap: import('vue').Ref<import('@gct-paas/flow').NodeInstStatusMap, import('@gct-paas/flow').NodeInstStatusMap>;
|
|
201
|
+
setNodeInstStatusMap: (data: import('@gct-paas/flow').NodeInstStatusMap) => void;
|
|
202
|
+
addPaasBpmnNode: () => void;
|
|
203
|
+
onNodeCreated: (node: IObject) => void;
|
|
43
204
|
globalData: import('vue').Ref<{
|
|
44
205
|
id: string;
|
|
45
206
|
type: string;
|
|
@@ -68,7 +229,7 @@ export declare function useProcess(): {
|
|
|
68
229
|
mobileViewPageKey: string;
|
|
69
230
|
buttonConfig?: IObject[] | undefined;
|
|
70
231
|
};
|
|
71
|
-
},
|
|
232
|
+
}, GlobalConfig | {
|
|
72
233
|
id: string;
|
|
73
234
|
type: string;
|
|
74
235
|
data: {
|
|
@@ -97,11 +258,10 @@ export declare function useProcess(): {
|
|
|
97
258
|
buttonConfig?: IObject[] | undefined;
|
|
98
259
|
};
|
|
99
260
|
}>;
|
|
100
|
-
|
|
101
|
-
addNodeDefaultValue: typeof addNodeDefaultValue;
|
|
261
|
+
addNodeDefaultValue: (data: IObject) => IObject;
|
|
102
262
|
bpmnReadonly: import('vue').ComputedRef<boolean>;
|
|
103
263
|
isFrontPage: import('vue').Ref<boolean, boolean>;
|
|
104
|
-
initProcess:
|
|
264
|
+
initProcess: (id: string, readonly?: boolean) => Promise<void>;
|
|
105
265
|
processInfo: import('vue').Ref<{
|
|
106
266
|
activeDefVersion?: {
|
|
107
267
|
builtinMsgEnabled?: number | undefined;
|
|
@@ -395,11 +555,11 @@ export declare function useProcess(): {
|
|
|
395
555
|
titleConfig?: string | undefined;
|
|
396
556
|
type?: string | undefined;
|
|
397
557
|
}>;
|
|
398
|
-
saveProcess:
|
|
399
|
-
publishProcess:
|
|
400
|
-
saveUsers:
|
|
401
|
-
validNodeData:
|
|
402
|
-
loadVersionList:
|
|
558
|
+
saveProcess: () => Promise<void>;
|
|
559
|
+
publishProcess: () => Promise<void>;
|
|
560
|
+
saveUsers: () => Promise<void>;
|
|
561
|
+
validNodeData: (nodeId: string) => void;
|
|
562
|
+
loadVersionList: () => Promise<void>;
|
|
403
563
|
versionList: import('vue').Ref<{
|
|
404
564
|
createTime?: string | undefined;
|
|
405
565
|
createUserId?: string | undefined;
|
|
@@ -655,9 +815,12 @@ export declare function useProcess(): {
|
|
|
655
815
|
xml?: string | undefined;
|
|
656
816
|
xmlHash?: string | undefined;
|
|
657
817
|
}>;
|
|
658
|
-
createVersion:
|
|
659
|
-
deleteVersion:
|
|
660
|
-
copyVersion:
|
|
661
|
-
toggleVersion:
|
|
818
|
+
createVersion: () => Promise<void>;
|
|
819
|
+
deleteVersion: (ids: string) => Promise<void>;
|
|
820
|
+
copyVersion: (id: string) => Promise<void>;
|
|
821
|
+
toggleVersion: (id: string) => void;
|
|
662
822
|
};
|
|
663
|
-
export
|
|
823
|
+
export type UseProcessReturn = ReturnType<typeof useProcess>;
|
|
824
|
+
export type PiniaBpmnVariableStore = ReturnType<typeof defineStore<string, UseProcessReturn>>;
|
|
825
|
+
export type UseProcessStoreType = Store<string, UseProcessReturn>;
|
|
826
|
+
export declare function createProcessStore(key: string): PiniaBpmnVariableStore;
|