@blueking/bkflow-canvas-editor 1.1.0-beta.44 → 1.1.0-beta.45

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.
Files changed (46) hide show
  1. package/README.md +41 -1
  2. package/dist/advanced.cjs.js +1 -1
  3. package/dist/advanced.d.ts +22 -1
  4. package/dist/advanced.esm.js +1 -1
  5. package/dist/bkflow-canvas-editor_false-B70uLuHL.cjs +1 -0
  6. package/dist/bkflow-canvas-editor_false-BlC281Zg.cjs +1 -0
  7. package/dist/bkflow-canvas-editor_false-Casww7p4.js +5 -0
  8. package/dist/bkflow-canvas-editor_false-i9G8sqQi.js +5 -0
  9. package/dist/context-Bu4mmo1Q.js +1593 -0
  10. package/dist/context-bUpcrt8M.cjs +6 -0
  11. package/dist/index-Bb8gt0ZM.cjs +2 -0
  12. package/dist/index-BynYn4VD.cjs +1 -0
  13. package/dist/index-C1q_QVHM.cjs +1 -0
  14. package/dist/index-C8XJMS_J.js +236 -0
  15. package/dist/index-CddPhY6u.cjs +1 -0
  16. package/dist/{index-DEh6TdMZ.js → index-CgRqOi-E.js} +28949 -29515
  17. package/dist/index-Ci_fP1q2.js +127 -0
  18. package/dist/index-ClbXmmTg.js +168 -0
  19. package/dist/index-DQG9J2SZ.js +137 -0
  20. package/dist/index-FcnoAxWL.cjs +82 -0
  21. package/dist/index-Htumo8sH.cjs +1 -0
  22. package/dist/index-_LhW2Gn_.js +647 -0
  23. package/dist/index-pYNKHhNh.js +73 -0
  24. package/dist/index-rLG78MgZ.cjs +1 -0
  25. package/dist/index.cjs.js +1 -1
  26. package/dist/index.d.ts +47 -2
  27. package/dist/index.esm.js +42 -33
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/context-CGIQsuRc.cjs +0 -1
  31. package/dist/context-Ce_Xpx5d.js +0 -724
  32. package/dist/index-B1K53ttM.cjs +0 -1
  33. package/dist/index-B5-BwbW-.js +0 -607
  34. package/dist/index-B7cHQkaD.cjs +0 -2
  35. package/dist/index-BhOE6_v7.cjs +0 -1
  36. package/dist/index-BiOM182-.js +0 -135
  37. package/dist/index-Bit4HgBF.cjs +0 -82
  38. package/dist/index-CLiOiJR2.js +0 -125
  39. package/dist/index-CbEGVZdT.cjs +0 -1
  40. package/dist/index-DVeWB2dR.js +0 -73
  41. package/dist/index-DjIpWxVu.cjs +0 -1
  42. package/dist/index-Dmx7sjvz.cjs +0 -1
  43. package/dist/index-DubPNExB.js +0 -234
  44. package/dist/index-sEixnRd3.js +0 -162
  45. package/dist/index.es.min-BpHMrg2Y.cjs +0 -2
  46. package/dist/index.es.min-DYp0DL9J.js +0 -3543
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),c=require("bkui-vue/lib/icon"),p=require("./index-Bit4HgBF.cjs"),m={class:"rollback-dialog-body"},u={class:"rollback-icon-wrap"},f={class:"rollback-desc"},b={class:"rollback-version"},k={class:"rollback-footer"},g=e.defineComponent({__name:"index",props:{show:{type:Boolean},version:{default:""},pending:{type:Boolean,default:!1}},emits:["update:show","confirm"],setup(i,{emit:r}){const t=i,n=r,d=()=>{t.pending||!t.version||n("confirm",t.version)},s=()=>{t.pending||n("update:show",!1)};return(V,o)=>{const l=e.resolveComponent("bk-button"),a=e.resolveComponent("bk-dialog");return e.openBlock(),e.createBlock(a,{"is-show":t.show,"dialog-type":"show",width:440,"esc-close":!1,"quick-close":!1,class:"flow-rollback-confirm-dialog",onClosed:s},{default:e.withCtx(()=>[e.createElementVNode("div",m,[e.createElementVNode("div",u,[e.createVNode(e.unref(c.ExclamationCircleShape),{class:"rollback-icon"})]),o[6]||(o[6]=e.createElementVNode("h3",{class:"rollback-title"},"确认加载至草稿?",-1)),e.createElementVNode("p",f,[o[0]||(o[0]=e.createTextVNode(" 将版本 ",-1)),e.createElementVNode("span",b,e.toDisplayString(t.version||"--"),1),o[1]||(o[1]=e.createTextVNode(" 的内容加载至草稿,",-1)),o[2]||(o[2]=e.createElementVNode("strong",null,"当前草稿中未发布的改动将被覆盖",-1)),o[3]||(o[3]=e.createTextVNode(",该操作不可撤销。 ",-1))]),e.createElementVNode("div",k,[e.createVNode(l,{theme:"primary","data-test":"rollback-confirm",loading:t.pending,onClick:d},{default:e.withCtx(()=>[...o[4]||(o[4]=[e.createTextVNode(" 确认恢复 ",-1)])]),_:1},8,["loading"]),e.createVNode(l,{disabled:t.pending,onClick:s},{default:e.withCtx(()=>[...o[5]||(o[5]=[e.createTextVNode("取消",-1)])]),_:1},8,["disabled"])])])]),_:1},8,["is-show"])}}}),N=p._export_sfc(g,[["__scopeId","data-v-98919657"]]);exports.default=N;
@@ -1,135 +0,0 @@
1
- import { openBlock as o, createElementBlock as t, createElementVNode as s, defineComponent as u, computed as D, resolveDirective as y, unref as C, normalizeClass as f, toDisplayString as c, createCommentVNode as h, withDirectives as w, createVNode as B, resolveComponent as v, createBlock as m, withCtx as V, Fragment as R, renderList as H } from "vue";
2
- import { _ as k, e as T } from "./index-DEh6TdMZ.js";
3
- const I = {}, $ = { class: "redo-icon" };
4
- function Y(i, l) {
5
- return o(), t("span", $, [...l[0] || (l[0] = [
6
- s("svg", {
7
- width: "11",
8
- height: "10",
9
- viewBox: "0 0 11 10",
10
- fill: "none",
11
- "aria-hidden": "true"
12
- }, [
13
- s("path", {
14
- "fill-rule": "evenodd",
15
- "clip-rule": "evenodd",
16
- 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",
17
- fill: "currentColor"
18
- })
19
- ], -1)
20
- ])]);
21
- }
22
- const L = /* @__PURE__ */ k(I, [["render", Y], ["__scopeId", "data-v-8e982205"]]), M = "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", N = { class: "version-history-item" }, E = ["src"], j = { class: "item-head" }, z = {
23
- key: 0,
24
- class: "item-online-tag"
25
- }, A = { class: "item-meta" }, F = {
26
- key: 0,
27
- class: "item-desc"
28
- }, S = /* @__PURE__ */ u({
29
- __name: "version-history-item",
30
- props: {
31
- snapshot: {},
32
- online: { type: Boolean, default: !1 },
33
- active: { type: Boolean, default: !1 },
34
- showRollback: { type: Boolean, default: !1 },
35
- rollbackDisabled: { type: Boolean, default: !1 },
36
- rollbackDisabledTip: { default: "" }
37
- },
38
- emits: ["rollback"],
39
- setup(i, { emit: l }) {
40
- const e = i, a = l, r = D(() => T(e.snapshot.create_time).format("YYYY-MM-DD HH:mm:ss")), d = () => {
41
- e.rollbackDisabled || !e.snapshot.version || a("rollback", e.snapshot.version);
42
- };
43
- return (p, b) => {
44
- const _ = y("bk-tooltips");
45
- return o(), t("div", N, [
46
- s("img", {
47
- class: "item-dot",
48
- src: C(M),
49
- alt: ""
50
- }, null, 8, E),
51
- s("div", j, [
52
- s("span", {
53
- class: f(["item-version", { "is-active": e.active }])
54
- }, "V" + c(e.snapshot.version), 3),
55
- e.online ? (o(), t("span", z, "线上版本")) : h("", !0),
56
- e.showRollback ? w((o(), t("div", {
57
- key: 1,
58
- class: f(["item-rollback", { "is-disabled": e.rollbackDisabled }]),
59
- "data-test": "version-history-rollback",
60
- onClick: d
61
- }, [
62
- B(L),
63
- b[0] || (b[0] = s("span", null, "加载至草稿", -1))
64
- ], 2)), [
65
- [_, { content: e.rollbackDisabledTip, disabled: !e.rollbackDisabledTip }]
66
- ]) : h("", !0)
67
- ]),
68
- s("div", A, [
69
- s("span", null, c(r.value), 1),
70
- s("span", null, c(e.snapshot.operator), 1)
71
- ]),
72
- e.snapshot.desc ? (o(), t("div", F, c(e.snapshot.desc), 1)) : h("", !0)
73
- ]);
74
- };
75
- }
76
- }), Z = /* @__PURE__ */ k(S, [["__scopeId", "data-v-fc0f5db5"]]), q = { class: "version-history-slider" }, G = { key: 1 }, J = /* @__PURE__ */ u({
77
- __name: "index",
78
- props: {
79
- show: { type: Boolean },
80
- snapshots: {},
81
- onlineVersion: { default: null },
82
- activeVersion: { default: void 0 },
83
- loading: { type: Boolean, default: !1 },
84
- showRollback: { type: Boolean, default: !1 },
85
- rollbackDisabled: { type: Boolean, default: !1 },
86
- rollbackDisabledTip: { default: "" }
87
- },
88
- emits: ["update:show", "rollback"],
89
- setup(i, { emit: l }) {
90
- const e = i, a = l, r = () => {
91
- a("update:show", !1);
92
- }, d = (p) => {
93
- a("rollback", p);
94
- };
95
- return (p, b) => {
96
- const _ = v("bk-exception"), g = v("bk-sideslider"), x = y("bkloading");
97
- return o(), m(g, {
98
- title: "版本历史",
99
- "is-show": e.show,
100
- width: 640,
101
- "esc-close": !1,
102
- "before-close": r
103
- }, {
104
- default: V(() => [
105
- w((o(), t("div", q, [
106
- !e.loading && e.snapshots.length === 0 ? (o(), m(_, {
107
- key: 0,
108
- class: "history-empty",
109
- scene: "part",
110
- type: "empty",
111
- title: "暂无历史版本"
112
- })) : (o(), t("div", G, [
113
- (o(!0), t(R, null, H(e.snapshots, (n) => (o(), m(Z, {
114
- key: n.id,
115
- snapshot: n,
116
- online: n.version === e.onlineVersion,
117
- active: n.version === e.activeVersion,
118
- "show-rollback": e.showRollback,
119
- "rollback-disabled": e.rollbackDisabled,
120
- "rollback-disabled-tip": e.rollbackDisabledTip,
121
- onRollback: d
122
- }, null, 8, ["snapshot", "online", "active", "show-rollback", "rollback-disabled", "rollback-disabled-tip"]))), 128))
123
- ]))
124
- ])), [
125
- [x, { loading: e.loading }]
126
- ])
127
- ]),
128
- _: 1
129
- }, 8, ["is-show"]);
130
- };
131
- }
132
- }), P = /* @__PURE__ */ k(J, [["__scopeId", "data-v-8efd434a"]]);
133
- export {
134
- P as default
135
- };