next-flow-interface 0.23.12 → 0.23.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -18,8 +18,8 @@ class me extends Error {
18
18
  }
19
19
  var or = /* @__PURE__ */ ((t) => (t[t.TOP = 0] = "TOP", t[t.RIGHT = 1] = "RIGHT", t[t.BOTTOM = 2] = "BOTTOM", t[t.LEFT = 3] = "LEFT", t[t.TOP_LEFT = 4] = "TOP_LEFT", t[t.BOTTOM_LEFT = 5] = "BOTTOM_LEFT", t[t.TOP_RIGHT = 6] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 7] = "BOTTOM_RIGHT", t[t.UNKNOWN = 8] = "UNKNOWN", t))(or || {}), ur = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.SWITCH = "SWITCH", t.DRAWER = "DRAWER", t.DIALOG = "DIALOG", t.CONTENT = "CONTENT", t.WINDOW = "WINDOW", t.SERVICE = "SERVICE", t))(ur || {}), j = /* @__PURE__ */ ((t) => (t.Default = "Default", t))(j || {});
20
20
  class we {
21
- constructor(r, n = null, e = "", o = j.Default, s = 0, i = 0) {
22
- this.nid = r, this.node = n, this.text = e, this.theme = o, this.x = s, this.y = i;
21
+ constructor(r, n = null, e = "", o = j.Default, u = 0, i = 0) {
22
+ this.nid = r, this.node = n, this.text = e, this.theme = o, this.x = u, this.y = i;
23
23
  }
24
24
  parentElement = null;
25
25
  pointElement = null;
@@ -34,13 +34,13 @@ class we {
34
34
  }
35
35
  var sr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(sr || {}), ir = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(ir || {}), cr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(cr || {}), ar = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(ar || {});
36
36
  class K {
37
- constructor(r, n, e = [], o = !1, s = 0, i = 0, f = !1, h, E = null, A = /* @__PURE__ */ new Date()) {
38
- this.options = r, this.id = n, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = f, this.theme = h, this.controller = E, this.createTime = A;
37
+ constructor(r, n, e = [], o = !1, u = 0, i = 0, E = !1, h, l = null, A = /* @__PURE__ */ new Date()) {
38
+ this.options = r, this.id = n, this.lines = e, this.showIcon = o, this.x = u, this.y = i, this.closeOnOutsideClick = E, this.theme = h, this.controller = l, this.createTime = A;
39
39
  }
40
40
  static fromOptions(r, n, e) {
41
41
  let { showIcon: o } = n;
42
- return o === void 0 && n.lines?.forEach((s) => {
43
- s.icon && (o = !0);
42
+ return o === void 0 && n.lines?.forEach((u) => {
43
+ u.icon && (o = !0);
44
44
  }), new K(
45
45
  n,
46
46
  r,
@@ -55,12 +55,12 @@ class K {
55
55
  }
56
56
  var V = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.DIVIDER = "DIVIDER", t.CHECKBOX = "CHECKBOX", t.SUB = "SUB", t.VIEW = "VIEW", t))(V || {});
57
57
  class $ {
58
- constructor(r, n, e = V.BUTTON, o = "", s = "", i = void 0, f = void 0, h = "", E = !1, A = "", T = () => {
58
+ constructor(r, n, e = V.BUTTON, o = "", u = "", i = void 0, E = void 0, h = "", l = !1, A = "", T = () => {
59
59
  }, L = () => {
60
60
  }, S = () => {
61
61
  }, B = e === V.BUTTON, b = !1, m = () => {
62
62
  }, w = void 0, G = /* @__PURE__ */ new Date()) {
63
- this.options = r, this.id = n, this.type = e, this.text = o, this.tip = s, this.icon = i, this.view = f, this.color = h, this.disabled = E, this.shortcut = A, this.onClick = T, this.onMouseOver = L, this.onMouseOut = S, this.closeAllOnClick = B, this.checkboxDefaultValue = b, this.onCheckboxChange = m, this.sub = w, this.createTime = G;
63
+ this.options = r, this.id = n, this.type = e, this.text = o, this.tip = u, this.icon = i, this.view = E, this.color = h, this.disabled = l, this.shortcut = A, this.onClick = T, this.onMouseOver = L, this.onMouseOut = S, this.closeAllOnClick = B, this.checkboxDefaultValue = b, this.onCheckboxChange = m, this.sub = w, this.createTime = G;
64
64
  }
65
65
  static fromOptions(r, n) {
66
66
  return new $(
@@ -86,7 +86,7 @@ class $ {
86
86
  }
87
87
  var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}), fr = /* @__PURE__ */ ((t) => (t.LEFT = "LEFT", t.CENTER = "CENTER", t.RIGHT = "RIGHT", t))(fr || {});
88
88
  class Q {
89
- constructor(r, n, e = "", o = void 0, s = "", i = "LEFT", f = void 0, h = void 0, E = void 0, A = J.BLUE, T = !1, L = "", S = {}, B = "", b = "", m = !1, w = "", G = "", mt = m, wt = !1, gt = () => {
89
+ constructor(r, n, e = "", o = void 0, u = "", i = "LEFT", E = void 0, h = void 0, l = void 0, A = J.BLUE, T = !1, L = "", S = {}, B = "", b = "", m = !1, w = "", G = "", mt = m, wt = !1, gt = () => {
90
90
  }, Ut = () => !0, xt = !0, Bt = () => {
91
91
  }, bt = () => {
92
92
  }, Gt = () => {
@@ -94,11 +94,11 @@ class Q {
94
94
  }, Vt = () => {
95
95
  }, Mt = () => {
96
96
  }, kt = () => {
97
- }, yt = () => {
98
- }, Ft = () => () => {
99
- }, Wt = !0, _t = !0, zt = !1, Xt = !0, Yt = !1, jt = w, Kt = /* @__PURE__ */ new Date(), $t = () => {
97
+ }, Wt = () => {
98
+ }, yt = () => () => {
99
+ }, Ft = !0, _t = !0, zt = !1, Xt = !0, Yt = !1, jt = w, Kt = /* @__PURE__ */ new Date(), $t = () => {
100
100
  }, Jt = /* @__PURE__ */ new Map()) {
101
- this.options = r, this.id = n, this.title = e, this.titleIcon = o, this.content = s, this.contentAlign = i, this.contentView = f, this.icon = h, this.view = E, this.theme = A, this.leftMode = T, this.className = L, this.style = S, this.confirmText = B, this.cancelText = b, this.enableInput = m, this.defaultValue = w, this.inputPlaceholder = G, this.autoFocus = mt, this.allowEmpty = wt, this.onChange = gt, this.onCheck = Ut, this.enableCloseButton = xt, this.onConfirm = Bt, this.onCancel = bt, this.onClose = Gt, this.onConfirmButtonClick = Ht, this.onCancelButtonClick = Vt, this.onOutsideClick = Mt, this.onCloseButtonClick = kt, this.onRender = yt, this.onEffect = Ft, this.closeOnConfirm = Wt, this.closeOnCancel = _t, this.closeOnOutsideClick = zt, this.closeOnCloseButtonClick = Xt, this.alignButton = Yt, this.inputValue = jt, this.createTime = Kt, this.focusInput = $t, this.elements = Jt;
101
+ this.options = r, this.id = n, this.title = e, this.titleIcon = o, this.content = u, this.contentAlign = i, this.contentView = E, this.icon = h, this.view = l, this.theme = A, this.leftMode = T, this.className = L, this.style = S, this.confirmText = B, this.cancelText = b, this.enableInput = m, this.defaultValue = w, this.inputPlaceholder = G, this.autoFocus = mt, this.allowEmpty = wt, this.onChange = gt, this.onCheck = Ut, this.enableCloseButton = xt, this.onConfirm = Bt, this.onCancel = bt, this.onClose = Gt, this.onConfirmButtonClick = Ht, this.onCancelButtonClick = Vt, this.onOutsideClick = Mt, this.onCloseButtonClick = kt, this.onRender = Wt, this.onEffect = yt, this.closeOnConfirm = Ft, this.closeOnCancel = _t, this.closeOnOutsideClick = zt, this.closeOnCloseButtonClick = Xt, this.alignButton = Yt, this.inputValue = jt, this.createTime = Kt, this.focusInput = $t, this.elements = Jt;
102
102
  }
103
103
  static fromOptions(r, n) {
104
104
  return new Q(
@@ -145,11 +145,11 @@ class Q {
145
145
  };
146
146
  }
147
147
  var Er = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Er || {}), lr = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(lr || {});
148
- const a = "*/*", u = "unknown/unknown", O = "babylonjs/scene", y = "babylonjs/mesh", q = "babylonjs/light", Z = "babylonjs/camera", D = "babylonjs/texture", C = "babylonjs/material", g = "babylonjs/uv", p = "babylonjs/animation", v = "model/gltf-binary", tt = "model/gltf+json", F = "model/stl", rt = "model/obj", nt = "audio/mpeg", et = "audio/wav", hr = "audio/aac", Ar = "audio/ogg", Or = "audio/flac", Dr = "audio/opus", ot = "image/jpeg", ut = "image/png", Rr = "image/gif", Nr = "image/bmp", Tr = "image/webp", Lr = "image/svg+xml", Sr = "image/tiff", Ir = "image/x-icon", Cr = "image/heif", Pr = "image/avif", st = "video/mp4", dr = "video/webm", mr = "video/x-msvideo", wr = "video/mpeg", gr = "video/quicktime", Ur = "video/x-ms-wmv", xr = "video/x-flv", Br = "video/ogg", br = "video/3gpp", Gr = "video/x-matroska", it = "application/json", ct = "nextflow/sync", at = "text/plain", Hr = "text/markdown", R = [ot, ut], P = [O, v, tt, F, rt], N = [st], W = [O, y, q, Z, D, C, g, p], U = [nt, et], d = [at], x = [it], Vr = [ct], ft = [
148
+ const a = "*/*", s = "unknown/unknown", O = "babylonjs/scene", W = "babylonjs/mesh", q = "babylonjs/light", Z = "babylonjs/camera", D = "babylonjs/texture", C = "babylonjs/material", g = "babylonjs/uv", p = "babylonjs/animation", v = "model/gltf-binary", tt = "model/gltf+json", y = "model/stl", rt = "model/obj", nt = "audio/mpeg", et = "audio/wav", hr = "audio/aac", Ar = "audio/ogg", Or = "audio/flac", Dr = "audio/opus", ot = "image/jpeg", ut = "image/png", Rr = "image/gif", Nr = "image/bmp", Tr = "image/webp", Lr = "image/svg+xml", Sr = "image/tiff", Ir = "image/x-icon", Cr = "image/heif", Pr = "image/avif", st = "video/mp4", dr = "video/webm", mr = "video/x-msvideo", wr = "video/mpeg", gr = "video/quicktime", Ur = "video/x-ms-wmv", xr = "video/x-flv", Br = "video/ogg", br = "video/3gpp", Gr = "video/x-matroska", it = "application/json", ct = "nextflow/sync", at = "text/plain", Hr = "text/markdown", R = [ot, ut], P = [O, v, tt, y, rt], N = [st], F = [O, W, q, Z, D, C, g, p], U = [nt, et], d = [at], x = [it], Vr = [ct], ft = [
149
149
  ...R,
150
150
  ...P,
151
151
  ...N,
152
- ...W,
152
+ ...F,
153
153
  ...U,
154
154
  ...d,
155
155
  ...x
@@ -171,22 +171,22 @@ async function Ot(t) {
171
171
  if (t instanceof File && t.name.endsWith(".babylon"))
172
172
  return O;
173
173
  const r = await vt(t);
174
- return !r && t instanceof File && t.name.endsWith(".stl") ? F : r?.mime ?? u;
174
+ return !r && t instanceof File && t.name.endsWith(".stl") ? y : r?.mime ?? s;
175
175
  }
176
- return u;
176
+ return s;
177
177
  }
178
178
  async function _(t) {
179
- return t ? t.endsWith(".babylon") ? O : (await import("mime")).default.getType(t) ?? u : u;
179
+ return t ? t.endsWith(".babylon") ? O : (await import("mime")).default.getType(t) ?? s : s;
180
180
  }
181
181
  async function Dt(t) {
182
182
  if (!t)
183
- return u;
183
+ return s;
184
184
  if (t.endsWith(".babylon"))
185
185
  return O;
186
186
  try {
187
187
  const r = await fetch(t);
188
188
  if (!r.body)
189
- return u;
189
+ return s;
190
190
  const n = await Y(r.body);
191
191
  if (n?.mime) return n.mime;
192
192
  const o = new URL(t).pathname;
@@ -195,13 +195,13 @@ async function Dt(t) {
195
195
  } catch (r) {
196
196
  console.error("getMimeByUrl", r);
197
197
  }
198
- return u;
198
+ return s;
199
199
  }
200
200
  async function Rt(t) {
201
- return t ? (await tr(t))?.mime ?? u : u;
201
+ return t ? (await tr(t))?.mime ?? s : s;
202
202
  }
203
203
  async function Nt(t) {
204
- return (await Y(t))?.mime ?? u;
204
+ return (await Y(t))?.mime ?? s;
205
205
  }
206
206
  async function Mr(t) {
207
207
  if (t) {
@@ -218,59 +218,59 @@ async function Mr(t) {
218
218
  if (t instanceof qt)
219
219
  return C;
220
220
  if (t instanceof Zt)
221
- return y;
222
- } else return u;
223
- return u;
221
+ return W;
222
+ } else return s;
223
+ return s;
224
224
  }
225
- async function kr(t = u) {
226
- return t === O ? "babylon" : Tt(t) || Lt(t) ? t : t === a || t === u ? "" : (await import("mime")).default.getExtension(t) ?? "";
225
+ async function kr(t = s) {
226
+ return t === O ? "babylon" : Tt(t) || Lt(t) ? t : t === a || t === s ? "" : (await import("mime")).default.getExtension(t) ?? "";
227
227
  }
228
- function yr(t = u) {
229
- return t == a ? !0 : t == u ? !1 : ft.includes(t);
228
+ function Wr(t = s) {
229
+ return t == a ? !0 : t == s ? !1 : ft.includes(t);
230
230
  }
231
- function Fr(t = u) {
232
- return t == a ? !0 : t == u ? !1 : Et.includes(t);
231
+ function yr(t = s) {
232
+ return t == a ? !0 : t == s ? !1 : Et.includes(t);
233
233
  }
234
- function Wr(t = u) {
235
- return t == a ? !0 : t == u ? !1 : R.includes(t);
234
+ function Fr(t = s) {
235
+ return t == a ? !0 : t == s ? !1 : R.includes(t);
236
236
  }
237
- function _r(t = u) {
238
- return t == a ? !0 : t == u ? !1 : P.includes(t);
237
+ function _r(t = s) {
238
+ return t == a ? !0 : t == s ? !1 : P.includes(t);
239
239
  }
240
- function zr(t = u) {
241
- return t == a ? !0 : t == u ? !1 : N.includes(t);
240
+ function zr(t = s) {
241
+ return t == a ? !0 : t == s ? !1 : N.includes(t);
242
242
  }
243
- function Xr(t = u) {
244
- return t == a ? !0 : t == u ? !1 : d.includes(t);
243
+ function Xr(t = s) {
244
+ return t == a ? !0 : t == s ? !1 : d.includes(t);
245
245
  }
246
- function Yr(t = u) {
247
- return t == a ? !0 : t == u ? !1 : x.includes(t);
246
+ function Yr(t = s) {
247
+ return t == a ? !0 : t == s ? !1 : x.includes(t);
248
248
  }
249
- function Tt(t = u) {
250
- return t == a ? !0 : t == u ? !1 : W.includes(t);
249
+ function Tt(t = s) {
250
+ return t == a ? !0 : t == s ? !1 : F.includes(t);
251
251
  }
252
- function jr(t = u) {
253
- return t == a ? !0 : t == u ? !1 : U.includes(t);
252
+ function jr(t = s) {
253
+ return t == a ? !0 : t == s ? !1 : U.includes(t);
254
254
  }
255
- function Kr(t = u) {
256
- return t == a ? !0 : t == u ? !1 : lt.includes(t);
255
+ function Kr(t = s) {
256
+ return t == a ? !0 : t == s ? !1 : lt.includes(t);
257
257
  }
258
- function $r(t = u) {
259
- return t == a ? !0 : t == u ? !1 : ht.includes(t);
258
+ function $r(t = s) {
259
+ return t == a ? !0 : t == s ? !1 : ht.includes(t);
260
260
  }
261
- function Jr(t = u) {
262
- return t == a ? !0 : t == u ? !1 : t == D;
261
+ function Jr(t = s) {
262
+ return t == a ? !0 : t == s ? !1 : t == D;
263
263
  }
264
- function Qr(t = u) {
265
- return t == a ? !0 : t == u ? !1 : t == C;
264
+ function Qr(t = s) {
265
+ return t == a ? !0 : t == s ? !1 : t == C;
266
266
  }
267
- function qr(t = u) {
268
- return t == a ? !0 : t == u ? !1 : t == g;
267
+ function qr(t = s) {
268
+ return t == a ? !0 : t == s ? !1 : t == g;
269
269
  }
270
- function Lt(t = u) {
271
- return t == a ? !0 : t == u ? !1 : At.includes(t);
270
+ function Lt(t = s) {
271
+ return t == a ? !0 : t == s ? !1 : At.includes(t);
272
272
  }
273
- const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, AAC: hr, ANIMATION: p, ANY: a, ATTACH_LIST: At, AVI: mr, AVIF: Pr, BMP: Nr, CAMERA: Z, FLAC: Or, FLV: xr, GIF: Rr, GLB: v, GLTF: tt, GP3: br, HEIF: Cr, ICO: Ir, JPG: ot, JSON: it, LIGHT: q, MARKDOWN: Hr, MATERIAL: C, MESH: y, MKV: Gr, MOV: gr, MP3: nt, MP4: st, MPEG: wr, NF: ct, OBJ: rt, OGG: Ar, OGV: Br, OPUS: Dr, PNG: ut, SCENE: O, STL: F, SUPPORT_ALL_LIST: ft, SUPPORT_AUDIO_LIST: U, SUPPORT_BABYLON_LIST: W, SUPPORT_FILE_LIST: Et, SUPPORT_IMAGE_LIST: R, SUPPORT_JSON_LIST: x, SUPPORT_MODEL_LIST: P, SUPPORT_NEXTFLOW_LIST: Vr, SUPPORT_RENDER_LIST: lt, SUPPORT_TEXTURE_LIST: ht, SUPPORT_TEXT_LIST: d, SUPPORT_VIDEO_LIST: N, SVG: Lr, TEXTURE: D, TIFF: Sr, TXT: at, UNKNOWN: u, UV: g, WAV: et, WMV: Ur, WebM: dr, WebP: Tr, getExtension: kr, getMime: Mr, getMimeByBlob: Ot, getMimeByBuffer: Rt, getMimeByPath: _, getMimeByStream: Nt, getMimeByUrl: Dt, isAttach: Lt, isBabylon: Tt, isMaterial: Qr, isSupport: yr, isSupportAudio: jr, isSupportFile: Fr, isSupportImage: Wr, isSupportJson: Yr, isSupportModel: _r, isSupportRender: Kr, isSupportText: Xr, isSupportTexture: $r, isSupportVideo: zr, isTexture: Jr, isUV: qr }, Symbol.toStringTag, { value: "Module" }));
273
+ const ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, AAC: hr, ANIMATION: p, ANY: a, ATTACH_LIST: At, AVI: mr, AVIF: Pr, BMP: Nr, CAMERA: Z, FLAC: Or, FLV: xr, GIF: Rr, GLB: v, GLTF: tt, GP3: br, HEIF: Cr, ICO: Ir, JPG: ot, JSON: it, LIGHT: q, MARKDOWN: Hr, MATERIAL: C, MESH: W, MKV: Gr, MOV: gr, MP3: nt, MP4: st, MPEG: wr, NF: ct, OBJ: rt, OGG: Ar, OGV: Br, OPUS: Dr, PNG: ut, SCENE: O, STL: y, SUPPORT_ALL_LIST: ft, SUPPORT_AUDIO_LIST: U, SUPPORT_BABYLON_LIST: F, SUPPORT_FILE_LIST: Et, SUPPORT_IMAGE_LIST: R, SUPPORT_JSON_LIST: x, SUPPORT_MODEL_LIST: P, SUPPORT_NEXTFLOW_LIST: Vr, SUPPORT_RENDER_LIST: lt, SUPPORT_TEXTURE_LIST: ht, SUPPORT_TEXT_LIST: d, SUPPORT_VIDEO_LIST: N, SVG: Lr, TEXTURE: D, TIFF: Sr, TXT: at, UNKNOWN: s, UV: g, WAV: et, WMV: Ur, WebM: dr, WebP: Tr, getExtension: kr, getMime: Mr, getMimeByBlob: Ot, getMimeByBuffer: Rt, getMimeByPath: _, getMimeByStream: Nt, getMimeByUrl: Dt, isAttach: Lt, isBabylon: Tt, isMaterial: Qr, isSupport: Wr, isSupportAudio: jr, isSupportFile: yr, isSupportImage: Fr, isSupportJson: Yr, isSupportModel: _r, isSupportRender: Kr, isSupportText: Xr, isSupportTexture: $r, isSupportVideo: zr, isTexture: Jr, isUV: qr }, Symbol.toStringTag, { value: "Module" }));
274
274
  var Zr = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Zr || {}), pr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.PAUSED = "PAUSED", t.LOADED = "LOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(pr || {}), vr = /* @__PURE__ */ ((t) => (t.BLOB = "BLOB", t.OBJECT = "OBJECT", t))(vr || {}), tn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.UPLOADING = "UPLOADING", t.PAUSED = "PAUSED", t.COMPLETED = "COMPLETED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(tn || {}), rn = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.UPLOADED = "UPLOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(rn || {}), nn = /* @__PURE__ */ ((t) => (t.ZH = "zh", t.EN = "en", t))(nn || {}), en = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.PROGRESSING = "PROGRESSING", t.ENDED = "ENDED", t.CANCELED = "CANCELED", t.BANNED = "BANNED", t))(en || {}), on = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.SELF = "SELF", t.ALL = "ALL", t))(on || {});
275
275
  class Ue {
276
276
  constructor(r, n, e, o) {
@@ -317,15 +317,15 @@ function Un(t) {
317
317
  async function It(t) {
318
318
  const r = [0.25, 0.5, 0.75], n = 64 * 1024, e = 1024 * 1024;
319
319
  if (t.size <= e) {
320
- const E = await t.arrayBuffer();
321
- return H.computeSHA256(E);
320
+ const l = await t.arrayBuffer();
321
+ return H.computeSHA256(l);
322
322
  }
323
- const o = r.map((E) => Math.floor(t.size * E)), s = await Promise.all(
324
- o.map(async (E) => {
325
- const A = E, T = Math.min(A + n, t.size), L = t.slice(A, T), S = await L.arrayBuffer();
323
+ const o = r.map((l) => Math.floor(t.size * l)), u = await Promise.all(
324
+ o.map(async (l) => {
325
+ const A = l, T = Math.min(A + n, t.size), L = t.slice(A, T), S = await L.arrayBuffer();
326
326
  return H.computeSHA256(S);
327
327
  })
328
- ), i = new TextEncoder(), f = s.join(""), h = i.encode(f);
328
+ ), i = new TextEncoder(), E = u.join(""), h = i.encode(E);
329
329
  return H.computeSHA256(h);
330
330
  }
331
331
  async function xn(t, r, n, e) {
@@ -375,18 +375,18 @@ function Hn(t, r, n = 1e-6) {
375
375
  function Vn(t, r, n, e) {
376
376
  return Math.sqrt((n - t) ** 2 + (e - r) ** 2);
377
377
  }
378
- function Mn(t, r, n, e, o, s) {
379
- return Math.sqrt((e - t) ** 2 + (o - r) ** 2 + (s - n) ** 2);
378
+ function Mn(t, r, n, e, o, u) {
379
+ return Math.sqrt((e - t) ** 2 + (o - r) ** 2 + (u - n) ** 2);
380
380
  }
381
381
  function kn(t, r) {
382
382
  let n = 1 / 0, e = -1;
383
383
  for (let o = 0; o < r.length; o++) {
384
- const s = Math.abs(t - r[o]);
385
- s < n && (n = s, e = o);
384
+ const u = Math.abs(t - r[o]);
385
+ u < n && (n = u, e = o);
386
386
  }
387
387
  return e;
388
388
  }
389
- const yn = {
389
+ const Wn = {
390
390
  toDegrees: bn,
391
391
  toRadians: Gn,
392
392
  approximatelyEqual: Hn,
@@ -398,20 +398,20 @@ function M(t) {
398
398
  if (t.type.includes("touch")) {
399
399
  const n = t;
400
400
  if (n.touches.length) {
401
- const i = n.touches[0], f = i.clientX, h = i.clientY;
402
- return [f, h];
401
+ const i = n.touches[0], E = i.clientX, h = i.clientY;
402
+ return [E, h];
403
403
  }
404
- const e = n.changedTouches[0], o = e.clientX, s = e.clientY;
405
- return [o, s];
404
+ const e = n.changedTouches[0], o = e.clientX, u = e.clientY;
405
+ return [o, u];
406
406
  }
407
407
  const r = t;
408
408
  return [r.clientX, r.clientY];
409
409
  }
410
- function Fn(t, r) {
411
- const [n, e] = M(t), [o, s] = M(r);
412
- return yn.getDistance(n, e, o, s);
410
+ function yn(t, r) {
411
+ const [n, e] = M(t), [o, u] = M(r);
412
+ return Wn.getDistance(n, e, o, u);
413
413
  }
414
- function Wn(t) {
414
+ function Fn(t) {
415
415
  t.preventDefault();
416
416
  }
417
417
  function _n(t) {
@@ -422,8 +422,8 @@ function zn(t) {
422
422
  }
423
423
  const be = {
424
424
  getEventPosition: M,
425
- getDistanceBetweenEvents: Fn,
426
- preventDefaultListener: Wn,
425
+ getDistanceBetweenEvents: yn,
426
+ preventDefaultListener: Fn,
427
427
  stopPropagationListener: _n,
428
428
  preventDefaultStopPropagationListener: zn
429
429
  };
@@ -488,7 +488,7 @@ const He = {
488
488
  getPageTypeBySpaceText: Jn,
489
489
  getSearchParams: Qn
490
490
  };
491
- class l {
491
+ class f {
492
492
  /**
493
493
  * 将字符串路径转换为 RvPath 数组
494
494
  * @param path - 以点分隔的路径字符串,如 "a.0.b"
@@ -520,7 +520,7 @@ class l {
520
520
  * @returns RvPath 数组
521
521
  */
522
522
  static ensureRvPath(r) {
523
- return typeof r == "string" ? l.makeRvPath(r) : r;
523
+ return typeof r == "string" ? f.makeRvPath(r) : r;
524
524
  }
525
525
  /**
526
526
  * 确保路径为字符串格式
@@ -528,7 +528,7 @@ class l {
528
528
  * @returns 字符串路径
529
529
  */
530
530
  static ensureRvPathString(r) {
531
- return typeof r != "string" ? l.makeRvPathString(r) : r;
531
+ return typeof r != "string" ? f.makeRvPathString(r) : r;
532
532
  }
533
533
  /**
534
534
  * 根据路径从对象中获取值
@@ -540,12 +540,12 @@ class l {
540
540
  * RvUtils.getByRvPath({ a: { b: 1 } }, "a.b") // 1
541
541
  */
542
542
  static getByRvPath(r, n) {
543
- const e = l.ensureRvPath(n);
543
+ const e = f.ensureRvPath(n);
544
544
  let o = r;
545
- for (const s of e) {
545
+ for (const u of e) {
546
546
  if (o == null)
547
547
  return;
548
- o = o[s];
548
+ o = o[u];
549
549
  }
550
550
  return o;
551
551
  }
@@ -559,11 +559,11 @@ class l {
559
559
  * RvUtils.setByRvPath(obj, "a.b", 2) // obj.a.b === 2
560
560
  */
561
561
  static setByRvPath(r, n, e) {
562
- const o = l.ensureRvPath(n);
563
- let s = r;
562
+ const o = f.ensureRvPath(n);
563
+ let u = r;
564
564
  for (let i = 0; i < o.length - 1; i++)
565
- s = s[o[i]];
566
- s[o[o.length - 1]] = e;
565
+ u = u[o[i]];
566
+ u[o[o.length - 1]] = e;
567
567
  }
568
568
  /**
569
569
  * 检查两段路径是否完全重叠
@@ -576,12 +576,21 @@ class l {
576
576
  * RvUtils.checkRvPathOverlay("a.b", "a.c") // false
577
577
  */
578
578
  static checkRvPathOverlay(r, n) {
579
- const e = l.ensureRvPath(r), o = l.ensureRvPath(n), s = e.length > o.length ? o.length : e.length;
580
- for (let i = 0; i < s; i++)
579
+ const e = f.ensureRvPath(r), o = f.ensureRvPath(n), u = e.length > o.length ? o.length : e.length;
580
+ for (let i = 0; i < u; i++)
581
581
  if (e[i] != o[i])
582
582
  return !1;
583
583
  return !0;
584
584
  }
585
+ static checkRvPathStartWith(r, n) {
586
+ const e = f.ensureRvPath(r), o = f.ensureRvPath(n);
587
+ if (e.length < o.length)
588
+ return !1;
589
+ for (let u = 0; u < e.length; u++)
590
+ if (o[u] != e[u])
591
+ return !1;
592
+ return !0;
593
+ }
585
594
  /**
586
595
  * 检查路径是否与目标列表中的任意路径重叠
587
596
  * @param from - 要检查的路径
@@ -589,8 +598,8 @@ class l {
589
598
  * @returns 如果与任意目标路径重叠则返回 true
590
599
  */
591
600
  static checkAnyRvPathOverlay(r, n) {
592
- const e = l.ensureRvPath(r);
593
- return n.some((o) => l.checkRvPathOverlay(e, o));
601
+ const e = f.ensureRvPath(r);
602
+ return n.some((o) => f.checkRvPathOverlay(e, o));
594
603
  }
595
604
  /**
596
605
  * 检查两段路径是否完全相同
@@ -602,11 +611,11 @@ class l {
602
611
  * RvUtils.checkRvPathSame("a.b", "a.b.c") // false
603
612
  */
604
613
  static checkRvPathSame(r, n) {
605
- const e = l.ensureRvPath(r), o = l.ensureRvPath(n);
614
+ const e = f.ensureRvPath(r), o = f.ensureRvPath(n);
606
615
  if (e.length !== o.length)
607
616
  return !1;
608
- for (let s = 0; s < e.length; s++)
609
- if (e[s] !== o[s])
617
+ for (let u = 0; u < e.length; u++)
618
+ if (e[u] !== o[u])
610
619
  return !1;
611
620
  return !0;
612
621
  }
@@ -617,8 +626,8 @@ class l {
617
626
  * @returns 如果与任意目标路径相同则返回 true
618
627
  */
619
628
  static checkAnyRvPathSame(r, n) {
620
- const e = l.ensureRvPath(r);
621
- return n.some((o) => l.checkRvPathSame(e, o));
629
+ const e = f.ensureRvPath(r);
630
+ return n.some((o) => f.checkRvPathSame(e, o));
622
631
  }
623
632
  }
624
633
  function Ve(t) {
@@ -629,18 +638,18 @@ function Ve(t) {
629
638
  function Me(t, r) {
630
639
  if (r === 0)
631
640
  return t;
632
- let n, e = 0, o, s = null;
641
+ let n, e = 0, o, u = null;
633
642
  function i() {
634
643
  e = Date.now(), n && t.apply(o, n);
635
644
  }
636
645
  return function(...h) {
637
- const E = Date.now(), A = E - e;
646
+ const l = Date.now(), A = l - e;
638
647
  if (n = h, o = this, e === 0) {
639
648
  setTimeout(i, 1);
640
649
  return;
641
650
  }
642
- s && (clearTimeout(s), s = null), A < r ? s = setTimeout(() => {
643
- i(), s = null;
651
+ u && (clearTimeout(u), u = null), A < r ? u = setTimeout(() => {
652
+ i(), u = null;
644
653
  }, r - A) : i();
645
654
  };
646
655
  }
@@ -653,12 +662,12 @@ function qn(t) {
653
662
  ].filter(Boolean).join(":");
654
663
  }
655
664
  function Zn(t = /* @__PURE__ */ new Date()) {
656
- const r = t.getFullYear().toString(), n = (t.getMonth() + 1).toString().padStart(2, "0"), e = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), s = t.getMinutes().toString().padStart(2, "0"), i = t.getSeconds().toString().padStart(2, "0"), f = t.getMilliseconds().toString().padStart(3, "0");
657
- return r + n + e + o + s + i + f;
665
+ const r = t.getFullYear().toString(), n = (t.getMonth() + 1).toString().padStart(2, "0"), e = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), u = t.getMinutes().toString().padStart(2, "0"), i = t.getSeconds().toString().padStart(2, "0"), E = t.getMilliseconds().toString().padStart(3, "0");
666
+ return r + n + e + o + u + i + E;
658
667
  }
659
668
  function pn(t, r) {
660
- const n = r - t, e = Math.floor(n / 1e3), o = Math.floor(e / 3600), s = Math.floor(e % 3600 / 60), i = e % 60;
661
- return `${o > 0 ? `${o.toString().padStart(2, "0")}:` : ""}${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
669
+ const n = r - t, e = Math.floor(n / 1e3), o = Math.floor(e / 3600), u = Math.floor(e % 3600 / 60), i = e % 60;
670
+ return `${o > 0 ? `${o.toString().padStart(2, "0")}:` : ""}${u.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
662
671
  }
663
672
  const ke = {
664
673
  convertTimeText: qn,
@@ -705,7 +714,7 @@ function oe(t, r = !0) {
705
714
  return "";
706
715
  }
707
716
  }
708
- const ye = {
717
+ const We = {
709
718
  getParam: vn,
710
719
  getHashParam: te,
711
720
  check: re,
@@ -800,7 +809,7 @@ function Ie(t, r = 0) {
800
809
  c.roundToX(t.w, r)
801
810
  ] : [c.roundToX(t.x, r), c.roundToX(t.y, r), c.roundToX(t.z, r)];
802
811
  }
803
- const Fe = {
812
+ const ye = {
804
813
  xyToArray: ue,
805
814
  xyzToArray: se,
806
815
  xyzwToArray: ie,
@@ -846,7 +855,7 @@ export {
846
855
  pr as LocalDataStatus,
847
856
  vr as LocalDataType,
848
857
  nn as Locale,
849
- yn as MathUtils,
858
+ Wn as MathUtils,
850
859
  en as MeetingStatus,
851
860
  $ as MenuLine,
852
861
  V as MenuLineType,
@@ -873,7 +882,7 @@ export {
873
882
  In as RvPresetType,
874
883
  Cn as RvResourceServiceEventType,
875
884
  Sn as RvResourceType,
876
- l as RvUtils,
885
+ f as RvUtils,
877
886
  an as ScreenSize,
878
887
  on as ShareMode,
879
888
  me as StaticClassInstantiationError,
@@ -883,8 +892,8 @@ export {
883
892
  En as ThemeShape,
884
893
  ke as TimeUtils,
885
894
  rr as TransparencyMode,
886
- ye as UrlUtils,
887
- Fe as VectorUtils,
895
+ We as UrlUtils,
896
+ ye as VectorUtils,
888
897
  Tn as VersionPoint,
889
898
  Ve as sleep,
890
899
  Me as throttle
@@ -35,15 +35,15 @@ export default interface AttributeServiceApi {
35
35
  /**
36
36
  * 已注册的 Node 类型属性列表
37
37
  */
38
- nodeAttributes: INodeAttribute[];
38
+ nodeAttributes: INodeAttribute<any>[];
39
39
  /**
40
40
  * 已注册的 Step 类型属性列表
41
41
  */
42
- stepAttributes: IStepAttribute[];
42
+ stepAttributes: IStepAttribute<any>[];
43
43
  /**
44
44
  * 已注册的 Global 类型属性列表
45
45
  */
46
- globalAttributes: IGlobalAttribute[];
46
+ globalAttributes: IGlobalAttribute<any>[];
47
47
  /**
48
48
  * 注册属性
49
49
  *
@@ -55,7 +55,7 @@ export default interface AttributeServiceApi {
55
55
  * @throws 如果路径与已注册的路径冲突
56
56
  * @throws 如果属性类型与实例类型不匹配
57
57
  */
58
- register(attribute: IAttribute): void;
58
+ register<T extends object = never>(attribute: IAttribute<T>): void;
59
59
  /**
60
60
  * 通过路径精确匹配获取属性
61
61
  *
@@ -63,35 +63,35 @@ export default interface AttributeServiceApi {
63
63
  * @param path - 属性路径,支持 RvPath 数组或字符串格式
64
64
  * @returns 匹配的属性实例,未找到返回 undefined
65
65
  */
66
- get(type: AttributeType, path: RvPath | string): IAttribute | undefined;
66
+ get<T extends object = never>(type: AttributeType, path: RvPath | string): IAttribute<T> | undefined;
67
67
  /**
68
68
  * 通过路径获取 NodeAttribute
69
69
  *
70
70
  * @param path - 属性路径,支持 RvPath 数组或字符串格式
71
71
  * @returns 匹配的 NodeAttribute 实例,未找到返回 undefined
72
72
  */
73
- getNodeAttribute(path: RvPath | string): INodeAttribute | undefined;
73
+ getNodeAttribute<T extends object = never>(path: RvPath | string): INodeAttribute<T> | undefined;
74
74
  /**
75
75
  * 通过路径获取 StepAttribute
76
76
  *
77
77
  * @param path - 属性路径,支持 RvPath 数组或字符串格式
78
78
  * @returns 匹配的 StepAttribute 实例,未找到返回 undefined
79
79
  */
80
- getStepAttribute(path: RvPath | string): IStepAttribute | undefined;
80
+ getStepAttribute<T extends object = never>(path: RvPath | string): IStepAttribute<T> | undefined;
81
81
  /**
82
82
  * 通过路径获取 GlobalAttribute
83
83
  *
84
84
  * @param path - 属性路径,支持 RvPath 数组或字符串格式
85
85
  * @returns 匹配的 GlobalAttribute 实例,未找到返回 undefined
86
86
  */
87
- getGlobalAttribute(path: RvPath | string): IGlobalAttribute | undefined;
87
+ getGlobalAttribute<T extends object = never>(path: RvPath | string): IGlobalAttribute<T> | undefined;
88
88
  /**
89
89
  * 根据类型获取属性列表
90
90
  *
91
91
  * @param type - 属性类型,不传入时返回所有类型的属性
92
92
  * @returns 属性列表
93
93
  */
94
- getList(type?: AttributeType): IAttribute[];
94
+ getList(type?: AttributeType): IAttribute<any>[];
95
95
  /**
96
96
  * 检查路径是否与已注册的属性路径冲突
97
97
  *
@@ -1 +1 @@
1
- {"version":3,"file":"attribute-service-api.d.ts","sourceRoot":"","sources":["../../../../src/service/sync/attribute/attribute-service-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAA;AACtF,OAAO,gBAAgB,MAAM,kEAAkE,CAAA;AAC/F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAC3F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F;;;;;GAKG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB;IAC1C;;;;;OAKG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,EAAE,CAAA;IAEvB;;;OAGG;IACH,aAAa,EAAE,MAAM,EAAE,CAAA;IAEvB;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,cAAc,EAAE,cAAc,EAAE,CAAA;IAEhC;;OAEG;IACH,cAAc,EAAE,cAAc,EAAE,CAAA;IAEhC;;OAEG;IACH,gBAAgB,EAAE,gBAAgB,EAAE,CAAA;IAEpC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,SAAS,EAAE,UAAU,GAAG,IAAI,CAAA;IAErC;;;;;;OAMG;IACH,GAAG,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,CAAA;IAEvE;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,GAAG,SAAS,CAAA;IAEnE;;;;;OAKG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,GAAG,SAAS,CAAA;IAEnE;;;;;OAKG;IACH,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,gBAAgB,GAAG,SAAS,CAAA;IAEvE;;;;;OAKG;IACH,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,EAAE,CAAA;IAE3C;;;;;;OAMG;IACH,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3D"}
1
+ {"version":3,"file":"attribute-service-api.d.ts","sourceRoot":"","sources":["../../../../src/service/sync/attribute/attribute-service-api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,2DAA2D,CAAA;AACtF,OAAO,gBAAgB,MAAM,kEAAkE,CAAA;AAC/F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAC3F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F;;;;;GAKG;AACH,MAAM,CAAC,OAAO,WAAW,mBAAmB;IAC1C;;;;;OAKG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IACH,aAAa,EAAE,MAAM,EAAE,CAAA;IAEvB;;;OAGG;IACH,aAAa,EAAE,MAAM,EAAE,CAAA;IAEvB;;;OAGG;IACH,eAAe,EAAE,MAAM,EAAE,CAAA;IAEzB;;OAEG;IAEH,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;IAErC;;OAEG;IAEH,cAAc,EAAE,cAAc,CAAC,GAAG,CAAC,EAAE,CAAA;IAErC;;OAEG;IAEH,gBAAgB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE,CAAA;IAEzC;;;;;;;;;;OAUG;IACH,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;IAElE;;;;;;OAMG;IACH,GAAG,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,EAC1B,IAAI,EAAE,aAAa,EACnB,IAAI,EAAE,MAAM,GAAG,MAAM,GACpB,UAAU,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAE5B;;;;;OAKG;IACH,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAEhG;;;;;OAKG;IACH,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAEhG;;;;;OAKG;IACH,kBAAkB,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,EACzC,IAAI,EAAE,MAAM,GAAG,MAAM,GACpB,gBAAgB,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAElC;;;;;OAKG;IAEH,OAAO,CAAC,IAAI,CAAC,EAAE,aAAa,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAA;IAEhD;;;;;;OAMG;IACH,cAAc,CAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3D"}
@@ -1,5 +1,5 @@
1
1
  import { default as IGlobalAttribute } from './global-attribute.interface';
2
2
  import { default as INodeAttribute } from './node-attribute.interface';
3
3
  import { default as IStepAttribute } from './step-attribute.interface';
4
- export type IAttribute = INodeAttribute | IStepAttribute | IGlobalAttribute;
4
+ export type IAttribute<T extends object = never> = INodeAttribute<T> | IStepAttribute<T> | IGlobalAttribute<T>;
5
5
  //# sourceMappingURL=attribute.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,kEAAkE,CAAA;AAC/F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAC3F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,MAAM,UAAU,GAAG,cAAc,GAAG,cAAc,GAAG,gBAAgB,CAAA"}
1
+ {"version":3,"file":"attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,gBAAgB,MAAM,kEAAkE,CAAA;AAC/F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAC3F,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,IAC3C,cAAc,CAAC,CAAC,CAAC,GACjB,cAAc,CAAC,CAAC,CAAC,GACjB,gBAAgB,CAAC,CAAC,CAAC,CAAA"}
@@ -1,9 +1,11 @@
1
1
  import { RvPath } from 'rhine-var';
2
2
  import { AttributeType } from '../attribute-type.enum';
3
- export default interface IBaseAttribute<T = unknown> {
3
+ export default interface IBaseAttribute<T extends object = never> {
4
4
  type: AttributeType;
5
5
  path: RvPath;
6
6
  defaultValue?: T;
7
+ getPath(): RvPath;
7
8
  getPathString(): string;
9
+ isMyPath(path: string | RvPath): boolean;
8
10
  }
9
11
  //# sourceMappingURL=base-attribute.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"base-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/base-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAEhF,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO;IACjD,IAAI,EAAE,aAAa,CAAA;IAEnB,IAAI,EAAE,MAAM,CAAA;IAEZ,YAAY,CAAC,EAAE,CAAC,CAAA;IAEhB,aAAa,IAAI,MAAM,CAAA;CACxB"}
1
+ {"version":3,"file":"base-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/base-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,OAAO,EAAE,aAAa,EAAE,MAAM,kDAAkD,CAAA;AAEhF,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK;IAC9D,IAAI,EAAE,aAAa,CAAA;IAEnB,IAAI,EAAE,MAAM,CAAA;IAEZ,YAAY,CAAC,EAAE,CAAC,CAAA;IAEhB,OAAO,IAAI,MAAM,CAAA;IAEjB,aAAa,IAAI,MAAM,CAAA;IAEvB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;CACzC"}
@@ -1,5 +1,5 @@
1
1
  import { default as IBaseAttribute } from './base-attribute.interface';
2
- export default interface IGlobalAttribute<T = unknown> extends IBaseAttribute<T> {
2
+ export default interface IGlobalAttribute<T extends object = never> extends IBaseAttribute<T> {
3
3
  generate(): T;
4
4
  }
5
5
  //# sourceMappingURL=global-attribute.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"global-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/global-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC9E,QAAQ,IAAI,CAAC,CAAA;CACd"}
1
+ {"version":3,"file":"global-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/global-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC3F,QAAQ,IAAI,CAAC,CAAA;CACd"}
@@ -1,5 +1,18 @@
1
+ import { RvPath, StoredRhineVar } from 'rhine-var';
1
2
  import { default as IBaseAttribute } from './base-attribute.interface';
2
- export default interface INodeAttribute<T = unknown> extends IBaseAttribute<T> {
3
+ export default interface INodeAttribute<T extends object = never> extends IBaseAttribute<T> {
3
4
  generate(sid: string, nid: string): T;
5
+ initialize(nid: string): void;
6
+ isInitialized(nid: string): boolean;
7
+ multiInitialize(nidList: string[]): void;
8
+ isAllInitialized(nidList: string[]): boolean;
9
+ mark(sid: string, nid: string, path: string | RvPath): void;
10
+ multiMark(sidList: string[], nidList: string[], path: string | RvPath): void;
11
+ get(sid: string, nid: string): StoredRhineVar<T> | undefined;
12
+ multiGet(sidList: string[], nidList: string[]): Map<string, Map<string, StoredRhineVar<T>>>;
13
+ set(sid: string, nid: string, path: string | RvPath, value: unknown): void;
14
+ multiSet(sidList: string[], nidList: string[], path: string | RvPath, value: unknown): void;
15
+ read(sid: string, nid: string): StoredRhineVar<T> | T | undefined;
16
+ edit(sid: string, nid: string, path: string | RvPath, value: unknown): void;
4
17
  }
5
18
  //# sourceMappingURL=node-attribute.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"node-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/node-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC5E,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;CACtC"}
1
+ {"version":3,"file":"node-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/node-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAElD,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzF,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;IAErC,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAE7B,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;IAEnC,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IAExC,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAA;IAE5C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IAE3D,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAAA;IAE5E,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAE5D,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;IAE3F,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAE1E,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;IAE3F,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;IAEjE,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CAC5E"}
@@ -1,5 +1,5 @@
1
1
  import { default as IBaseAttribute } from './base-attribute.interface';
2
- export default interface IStepAttribute<T = unknown> extends IBaseAttribute<T> {
2
+ export default interface IStepAttribute<T extends object = never> extends IBaseAttribute<T> {
3
3
  generate(sid: string): T;
4
4
  }
5
5
  //# sourceMappingURL=step-attribute.interface.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"step-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/step-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,GAAG,OAAO,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC5E,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;CACzB"}
1
+ {"version":3,"file":"step-attribute.interface.d.ts","sourceRoot":"","sources":["../../../../../../src/service/sync/attribute/dto/instance/step-attribute.interface.ts"],"names":[],"mappings":"AAAA,OAAO,cAAc,MAAM,gEAAgE,CAAA;AAE3F,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC,CAAC,SAAS,MAAM,GAAG,KAAK,CAAE,SAAQ,cAAc,CAAC,CAAC,CAAC;IACzF,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,CAAA;CACzB"}
@@ -41,7 +41,7 @@ export declare class RvUtils {
41
41
  * @example
42
42
  * RvUtils.getByRvPath({ a: { b: 1 } }, "a.b") // 1
43
43
  */
44
- static getByRvPath<T = unknown>(source: StoredRhineVar | Record<string | number, unknown>, path: string | RvPath): T | undefined;
44
+ static getByRvPath<T = unknown>(source: StoredRhineVar, path: string | RvPath): T | undefined;
45
45
  /**
46
46
  * 根据路径设置对象中的值
47
47
  * @param source - 源对象
@@ -63,6 +63,7 @@ export declare class RvUtils {
63
63
  * RvUtils.checkRvPathOverlay("a.b", "a.c") // false
64
64
  */
65
65
  static checkRvPathOverlay(from: RvPath | string, target: RvPath | string): boolean;
66
+ static checkRvPathStartWith(from: RvPath | string, target: RvPath | string): boolean;
66
67
  /**
67
68
  * 检查路径是否与目标列表中的任意路径重叠
68
69
  * @param from - 要检查的路径
@@ -1 +1 @@
1
- {"version":3,"file":"rv-utils.d.ts","sourceRoot":"","sources":["../../src/utils/rv-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAElD;;;GAGG;AAEH,qBAAa,OAAO;IAClB;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAavC;;;;;;OAMG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI7C;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAOlD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAOxD;;;;;;;;OAQG;IACH,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,OAAO,EAC5B,MAAM,EAAE,cAAc,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,EAAE,OAAO,CAAC,EACzD,IAAI,EAAE,MAAM,GAAG,MAAM,GACpB,CAAC,GAAG,SAAS;IAYhB;;;;;;;;OAQG;IACH,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IASvF;;;;;;;;;OASG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAYlF;;;;;OAKG;IACH,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO;IAK7F;;;;;;;;OAQG;IACH,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAc/E;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO;CAI3F;AAED,eAAe,OAAO,CAAA"}
1
+ {"version":3,"file":"rv-utils.d.ts","sourceRoot":"","sources":["../../src/utils/rv-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAElD;;;GAGG;AAEH,qBAAa,OAAO;IAClB;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAavC;;;;;;OAMG;IACH,MAAM,CAAC,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAI7C;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAOlD;;;;OAIG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM;IAOxD;;;;;;;;OAQG;IACH,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,CAAC,GAAG,SAAS;IAY7F;;;;;;;;OAQG;IACH,MAAM,CAAC,WAAW,CAAC,MAAM,EAAE,cAAc,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI;IASvF;;;;;;;;;OASG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAYlF,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAcpF;;;;;OAKG;IACH,MAAM,CAAC,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO;IAK7F;;;;;;;;OAQG;IACH,MAAM,CAAC,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO;IAc/E;;;;;OAKG;IACH,MAAM,CAAC,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,UAAU,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,OAAO;CAI3F;AAED,eAAe,OAAO,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-flow-interface",
3
- "version": "0.23.12",
3
+ "version": "0.23.14",
4
4
  "description": "Interface package for NEXT FlOW. You can use this package to build your own plugin that can control anything.",
5
5
  "type": "module",
6
6
  "module": "dist/index.js",