@blueking/bkflow-canvas-editor 1.1.0-beta.43 → 1.1.0-beta.44
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/README.md +18 -1
- package/dist/advanced.cjs.js +1 -1
- package/dist/advanced.d.ts +48 -3
- package/dist/advanced.esm.js +1 -1
- package/dist/{context-iqnF_HqS.cjs → context-CGIQsuRc.cjs} +1 -1
- package/dist/{context-Bg6nsbrK.js → context-Ce_Xpx5d.js} +220 -184
- package/dist/index-B1K53ttM.cjs +1 -0
- package/dist/index-B5-BwbW-.js +607 -0
- package/dist/index-B7cHQkaD.cjs +2 -0
- package/dist/index-BhOE6_v7.cjs +1 -0
- package/dist/index-BiOM182-.js +135 -0
- package/dist/index-Bit4HgBF.cjs +82 -0
- package/dist/index-CLiOiJR2.js +125 -0
- package/dist/index-CbEGVZdT.cjs +1 -0
- package/dist/{index-Bqm08e7H.js → index-DEh6TdMZ.js} +20798 -20312
- package/dist/index-DVeWB2dR.js +73 -0
- package/dist/{index-BBNwbryo.cjs → index-DjIpWxVu.cjs} +1 -1
- package/dist/{index-Ckij2Mxn.cjs → index-Dmx7sjvz.cjs} +1 -1
- package/dist/{index-D7t1wcMU.js → index-DubPNExB.js} +1 -1
- package/dist/{index-DgQ-ScE5.js → index-sEixnRd3.js} +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +57 -2
- package/dist/index.esm.js +9 -9
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-B0DQFaEe.cjs +0 -82
- package/dist/index-BSJC2Tb-.js +0 -512
- package/dist/index-BycpBKMO.cjs +0 -1
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { defineComponent as b, reactive as k, ref as V, watch as f, resolveComponent as i, openBlock as v, createBlock as E, withCtx as d, createElementVNode as o, unref as x, normalizeClass as M, createTextVNode as c, createVNode as a, createElementBlock as y, toDisplayString as B, createCommentVNode as D } from "vue";
|
|
2
|
+
import { _ as N } from "./index-DEh6TdMZ.js";
|
|
3
|
+
const F = "data:image/svg+xml,%3csvg%20width='48'%20height='48'%20viewBox='0%200%2048%2048'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M47.3922%202.00779L47.193%200.806571L45.9918%200.607344C35.1926%20-1.7951%2023.3914%203.00979%2014.397%2013.604C9.79721%2013.4048%205.79512%2015.0044%201.99812%2018.403L0%2020.2019L10.4007%2026.9991C9.00031%2029.4015%209.80307%2032.9994%2012.3989%2035.601C15.0005%2038.0035%2018.5983%2038.9996%2021.0007%2037.5992L27.7978%2048L29.3975%2046.2011C32.9953%2042.199%2034.5949%2038.4019%2034.3957%2033.6029C44.9957%2024.4033%2049.7947%2012.602%2047.3922%202.00779ZM33.0832%2031.6927L31.5304%2033.0228V35.2436C31.753%2038.5719%2030.1358%2040.9391%2028.3603%2043.5994L21.7097%2033.6205L18.4635%2035.3022C17.5787%2035.7475%2015.5806%2035.3022%2014.0278%2033.7494C12.2524%2032.1966%2012.0297%2030.2043%2012.475%2029.5363L14.1685%2026.3018L4.41226%2019.6511C7.07251%2017.8757%209.73275%2016.6862%2012.8383%2016.6862H14.8364L16.3892%2014.9107C24.8153%204.93175%2035.9016%200.572186%2045.6637%202.12499C47.2165%2011.8871%2042.8394%2023.2665%2033.0832%2031.6927Z'%20fill='%23DCDEE5'/%3e%3cpath%20d='M41.6673%205.44539C35.3228%204.41268%2024.824%2010.6861%2019.3428%2017.3334L18.3346%2018.5145H17.0367C15.0204%2018.5145%2013.288%2019.3039%2011.5556%2020.4909L17.9001%2024.9244L16.7992%2027.0788C16.5095%2027.524%2016.6543%2028.8534%2017.8074%2029.8862C18.8155%2030.9189%2020.1134%2031.2156%2020.6928%2030.9189L22.8018%2029.7971L27.13%2036.4444C28.283%2034.6698%2029.3318%2033.0911%2029.1869%2030.8773V29.3995L30.1951%2028.5151C36.5454%2022.9005%2042.6813%2011.9503%2041.6673%205.44539Z'%20fill='%23A3C5FD'/%3e%3cpath%20d='M8.59356%2037.5135C7.21124%2038.9237%206.22222%2043.5556%206.22222%2043.5556C6.22222%2043.5556%2010.5658%2042.7472%2012.1448%2041.1364C13.3304%2039.9268%2013.5271%2038.1153%2012.7347%2037.1063C11.5548%2036.1033%209.77922%2036.3098%208.59356%2037.5135ZM32.7812%2013.8467C31.6129%2013.1622%2030.1785%2013.1622%2029.016%2013.8467C27.8476%2014.5311%2027.1305%2015.7997%2027.1305%2017.1745C27.1305%2018.5494%2027.8476%2019.818%2029.016%2020.5024C30.1785%2021.1869%2031.6186%2021.1869%2032.7812%2020.5024C33.9495%2019.818%2034.6667%2018.5494%2034.6667%2017.1745C34.6667%2015.8056%2033.9495%2014.537%2032.7812%2013.8467Z'%20fill='%23E1ECFF'/%3e%3c/svg%3e", H = { class: "release-dialog-body" }, I = { class: "release-illustration" }, Z = { class: "release-rocket-badge" }, A = ["src"], S = { class: "release-form" }, O = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "form-error"
|
|
6
|
+
}, R = { class: "form-item" }, T = { class: "release-footer" }, q = 32, G = 255, U = `在此处填写你本次 FLOW 的关键信息!
|
|
7
|
+
养成良好的“变更日志”书写习惯,有助于提升信息的管理效率,完善的版本信息能够帮助提升版本管理的有效性和可靠性!`, X = /* @__PURE__ */ b({
|
|
8
|
+
__name: "index",
|
|
9
|
+
props: {
|
|
10
|
+
show: { type: Boolean },
|
|
11
|
+
defaultVersion: { default: "" },
|
|
12
|
+
pending: { type: Boolean, default: !1 },
|
|
13
|
+
errorMessage: { default: "" }
|
|
14
|
+
},
|
|
15
|
+
emits: ["update:show", "confirm"],
|
|
16
|
+
setup(_, { emit: g }) {
|
|
17
|
+
const s = _, m = g, t = k({ version: "", desc: "" }), l = V("");
|
|
18
|
+
f(
|
|
19
|
+
() => s.show,
|
|
20
|
+
(n) => {
|
|
21
|
+
n && (t.version = s.defaultVersion, t.desc = "", l.value = s.errorMessage);
|
|
22
|
+
}
|
|
23
|
+
), f(
|
|
24
|
+
() => s.errorMessage,
|
|
25
|
+
(n) => {
|
|
26
|
+
l.value = n;
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
const L = () => {
|
|
30
|
+
l.value = "";
|
|
31
|
+
}, h = () => {
|
|
32
|
+
if (s.pending) return;
|
|
33
|
+
const n = t.version.trim();
|
|
34
|
+
if (!n) {
|
|
35
|
+
l.value = "请输入版本号";
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
m("confirm", { version: n, desc: t.desc.trim() });
|
|
39
|
+
}, u = () => {
|
|
40
|
+
s.pending || m("update:show", !1);
|
|
41
|
+
};
|
|
42
|
+
return (n, e) => {
|
|
43
|
+
const p = i("bk-input"), C = i("bk-button"), w = i("bk-dialog");
|
|
44
|
+
return v(), E(w, {
|
|
45
|
+
"is-show": s.show,
|
|
46
|
+
"dialog-type": "show",
|
|
47
|
+
width: 480,
|
|
48
|
+
"esc-close": !1,
|
|
49
|
+
"quick-close": !1,
|
|
50
|
+
class: "flow-release-dialog",
|
|
51
|
+
onClosed: u
|
|
52
|
+
}, {
|
|
53
|
+
default: d(() => [
|
|
54
|
+
o("div", H, [
|
|
55
|
+
o("div", I, [
|
|
56
|
+
o("div", Z, [
|
|
57
|
+
o("img", {
|
|
58
|
+
src: x(F),
|
|
59
|
+
alt: ""
|
|
60
|
+
}, null, 8, A)
|
|
61
|
+
])
|
|
62
|
+
]),
|
|
63
|
+
e[6] || (e[6] = o("h3", { class: "release-title" }, "Flow 即将发布上线", -1)),
|
|
64
|
+
o("div", S, [
|
|
65
|
+
o("div", {
|
|
66
|
+
class: M(["form-item", { "is-error": !!l.value }])
|
|
67
|
+
}, [
|
|
68
|
+
e[2] || (e[2] = o("label", { class: "form-label" }, [
|
|
69
|
+
c(" 版本号 "),
|
|
70
|
+
o("span", { class: "required-mark" }, "*")
|
|
71
|
+
], -1)),
|
|
72
|
+
a(p, {
|
|
73
|
+
modelValue: t.version,
|
|
74
|
+
"onUpdate:modelValue": e[0] || (e[0] = (r) => t.version = r),
|
|
75
|
+
"data-test": "release-version-input",
|
|
76
|
+
placeholder: "请输入",
|
|
77
|
+
maxlength: q,
|
|
78
|
+
onInput: L
|
|
79
|
+
}, null, 8, ["modelValue"]),
|
|
80
|
+
l.value ? (v(), y("p", O, B(l.value), 1)) : D("", !0)
|
|
81
|
+
], 2),
|
|
82
|
+
o("div", R, [
|
|
83
|
+
e[3] || (e[3] = o("label", { class: "form-label" }, "版本描述", -1)),
|
|
84
|
+
a(p, {
|
|
85
|
+
modelValue: t.desc,
|
|
86
|
+
"onUpdate:modelValue": e[1] || (e[1] = (r) => t.desc = r),
|
|
87
|
+
type: "textarea",
|
|
88
|
+
rows: 4,
|
|
89
|
+
maxlength: G,
|
|
90
|
+
placeholder: U
|
|
91
|
+
}, null, 8, ["modelValue"])
|
|
92
|
+
])
|
|
93
|
+
]),
|
|
94
|
+
o("div", T, [
|
|
95
|
+
a(C, {
|
|
96
|
+
theme: "primary",
|
|
97
|
+
"data-test": "release-confirm",
|
|
98
|
+
loading: s.pending,
|
|
99
|
+
onClick: h
|
|
100
|
+
}, {
|
|
101
|
+
default: d(() => [...e[4] || (e[4] = [
|
|
102
|
+
c(" 提交并上线 ", -1)
|
|
103
|
+
])]),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 8, ["loading"]),
|
|
106
|
+
a(C, {
|
|
107
|
+
disabled: s.pending,
|
|
108
|
+
onClick: u
|
|
109
|
+
}, {
|
|
110
|
+
default: d(() => [...e[5] || (e[5] = [
|
|
111
|
+
c("取消发布", -1)
|
|
112
|
+
])]),
|
|
113
|
+
_: 1
|
|
114
|
+
}, 8, ["disabled"])
|
|
115
|
+
])
|
|
116
|
+
])
|
|
117
|
+
]),
|
|
118
|
+
_: 1
|
|
119
|
+
}, 8, ["is-show"]);
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
}), W = /* @__PURE__ */ N(X, [["__scopeId", "data-v-37e4b277"]]);
|
|
123
|
+
export {
|
|
124
|
+
W as default
|
|
125
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),a=require("./index-Bit4HgBF.cjs"),b={},_={class:"redo-icon"};function h(l,t){return e.openBlock(),e.createElementBlock("span",_,[...t[0]||(t[0]=[e.createElementVNode("svg",{width:"11",height:"10",viewBox:"0 0 11 10",fill:"none","aria-hidden":"true"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.5 5L0 2.5L3.5 0V2H7C9.20914 2 11 3.79086 11 6C11 8.20914 9.20914 10 7 10H4V9H7C8.65685 9 10 7.65685 10 6C10 4.34315 8.65685 3 7 3H3.5V5Z",fill:"currentColor"})],-1)])])}const v=a._export_sfc(b,[["render",h],["__scopeId","data-v-8e982205"]]),u="data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3ccircle%20opacity='0.2'%20cx='8'%20cy='8'%20r='6'%20fill='%23C4C6CC'%20/%3e%3ccircle%20cx='8'%20cy='8'%20r='3'%20fill='%23979BA5'%20/%3e%3c/svg%3e",f={class:"version-history-item"},y=["src"],B={class:"item-head"},g={key:0,class:"item-online-tag"},w={class:"item-meta"},V={key:0,class:"item-desc"},D=e.defineComponent({__name:"version-history-item",props:{snapshot:{},online:{type:Boolean,default:!1},active:{type:Boolean,default:!1},showRollback:{type:Boolean,default:!1},rollbackDisabled:{type:Boolean,default:!1},rollbackDisabledTip:{default:""}},emits:["rollback"],setup(l,{emit:t}){const o=l,s=t,i=e.computed(()=>a.dayjs(o.snapshot.create_time).format("YYYY-MM-DD HH:mm:ss")),c=()=>{o.rollbackDisabled||!o.snapshot.version||s("rollback",o.snapshot.version)};return(r,d)=>{const p=e.resolveDirective("bk-tooltips");return e.openBlock(),e.createElementBlock("div",f,[e.createElementVNode("img",{class:"item-dot",src:e.unref(u),alt:""},null,8,y),e.createElementVNode("div",B,[e.createElementVNode("span",{class:e.normalizeClass(["item-version",{"is-active":o.active}])},"V"+e.toDisplayString(o.snapshot.version),3),o.online?(e.openBlock(),e.createElementBlock("span",g,"线上版本")):e.createCommentVNode("",!0),o.showRollback?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["item-rollback",{"is-disabled":o.rollbackDisabled}]),"data-test":"version-history-rollback",onClick:c},[e.createVNode(v),d[0]||(d[0]=e.createElementVNode("span",null,"加载至草稿",-1))],2)),[[p,{content:o.rollbackDisabledTip,disabled:!o.rollbackDisabledTip}]]):e.createCommentVNode("",!0)]),e.createElementVNode("div",w,[e.createElementVNode("span",null,e.toDisplayString(i.value),1),e.createElementVNode("span",null,e.toDisplayString(o.snapshot.operator),1)]),o.snapshot.desc?(e.openBlock(),e.createElementBlock("div",V,e.toDisplayString(o.snapshot.desc),1)):e.createCommentVNode("",!0)])}}}),C=a._export_sfc(D,[["__scopeId","data-v-fc0f5db5"]]),x={class:"version-history-slider"},E={key:1},N=e.defineComponent({__name:"index",props:{show:{type:Boolean},snapshots:{},onlineVersion:{default:null},activeVersion:{default:void 0},loading:{type:Boolean,default:!1},showRollback:{type:Boolean,default:!1},rollbackDisabled:{type:Boolean,default:!1},rollbackDisabledTip:{default:""}},emits:["update:show","rollback"],setup(l,{emit:t}){const o=l,s=t,i=()=>{s("update:show",!1)},c=r=>{s("rollback",r)};return(r,d)=>{const p=e.resolveComponent("bk-exception"),m=e.resolveComponent("bk-sideslider"),k=e.resolveDirective("bkloading");return e.openBlock(),e.createBlock(m,{title:"版本历史","is-show":o.show,width:640,"esc-close":!1,"before-close":i},{default:e.withCtx(()=>[e.withDirectives((e.openBlock(),e.createElementBlock("div",x,[!o.loading&&o.snapshots.length===0?(e.openBlock(),e.createBlock(p,{key:0,class:"history-empty",scene:"part",type:"empty",title:"暂无历史版本"})):(e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.snapshots,n=>(e.openBlock(),e.createBlock(C,{key:n.id,snapshot:n,online:n.version===o.onlineVersion,active:n.version===o.activeVersion,"show-rollback":o.showRollback,"rollback-disabled":o.rollbackDisabled,"rollback-disabled-tip":o.rollbackDisabledTip,onRollback:c},null,8,["snapshot","online","active","show-rollback","rollback-disabled","rollback-disabled-tip"]))),128))]))])),[[k,{loading:o.loading}]])]),_:1},8,["is-show"])}}}),R=a._export_sfc(N,[["__scopeId","data-v-8efd434a"]]);exports.default=R;
|