@nubisco/ui 1.44.0 → 1.45.1

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.mjs CHANGED
@@ -21940,6 +21940,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
21940
21940
  visibleCards: {},
21941
21941
  dragWire: {},
21942
21942
  shouldFlow: { type: Function },
21943
+ levelColoring: { type: Boolean },
21944
+ activityStyle: {},
21945
+ animateConnections: {},
21943
21946
  background: {},
21944
21947
  liveData: {}
21945
21948
  },
@@ -22036,6 +22039,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22036
22039
  visibleCards: {},
22037
22040
  dragWire: {},
22038
22041
  shouldFlow: { type: Function },
22042
+ levelColoring: { type: Boolean },
22043
+ activityStyle: {},
22044
+ animateConnections: {},
22039
22045
  background: {},
22040
22046
  liveData: {}
22041
22047
  },
@@ -22062,7 +22068,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22062
22068
  async function g() {
22063
22069
  let e = a.value, t = s.value;
22064
22070
  if (!(!e || !t)) try {
22065
- let [n, { PixiScene: i }] = await Promise.all([import("pixi.js"), import("./pixi-scene-BKcn6pWT.js")]), { width: o, height: s } = h(), c = await i.create(n, {
22071
+ let [n, { PixiScene: i }] = await Promise.all([import("pixi.js"), import("./pixi-scene-CK6-CaUQ.js")]), { width: o, height: s } = h(), c = await i.create(n, {
22066
22072
  canvas: e,
22067
22073
  el: t,
22068
22074
  width: o,
@@ -22081,7 +22087,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22081
22087
  }
22082
22088
  }
22083
22089
  function _() {
22084
- f && (f.setCamera(r.panX, r.panY, r.zoom), f.setWires(r.wires, r.shouldFlow), f.setMeters(r.visibleCards));
22090
+ f && (f.setCamera(r.panX, r.panY, r.zoom), f.setLevelColoring(r.levelColoring ?? !1), f.setActivityStyle(r.activityStyle ?? "flow"), f.setWires(r.wires, r.shouldFlow), f.setMeters(r.visibleCards));
22085
22091
  }
22086
22092
  function v() {
22087
22093
  let e = a.value?.parentElement;
@@ -22095,7 +22101,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22095
22101
  r.panX,
22096
22102
  r.panY,
22097
22103
  r.zoom
22098
- ], ([e, t, n]) => f?.setCamera(e, t, n)), V(() => r.wires, (e) => f?.setWires(e, r.shouldFlow)), V(() => r.visibleCards, (e) => f?.setMeters(e)), V(() => r.background, (e) => f?.setBackground(e)), C(g), S(() => {
22104
+ ], ([e, t, n]) => f?.setCamera(e, t, n)), V(() => r.wires, (e) => f?.setWires(e, r.shouldFlow)), V(() => r.visibleCards, (e) => f?.setMeters(e)), V(() => r.levelColoring, (e) => f?.setLevelColoring(e ?? !1)), V(() => r.activityStyle, (e) => f?.setActivityStyle(e ?? "flow")), V(() => r.animateConnections, () => f?.setWires(r.wires, r.shouldFlow)), V(() => r.background, (e) => f?.setBackground(e)), C(g), S(() => {
22099
22105
  p?.disconnect(), f?.destroy(), f = null;
22100
22106
  }), (t, r) => (T(), l(n, null, [u("canvas", {
22101
22107
  ref_key: "canvasRef",
@@ -22148,7 +22154,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22148
22154
  })
22149
22155
  }, [A(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : A(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
22150
22156
  }
22151
- }), [["__scopeId", "data-v-205c97b6"]]), E9 = class {
22157
+ }), [["__scopeId", "data-v-6fdf251d"]]), E9 = class {
22152
22158
  values = /* @__PURE__ */ new Map();
22153
22159
  epoch = 0;
22154
22160
  onChange = void 0;
@@ -22181,6 +22187,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22181
22187
  cards: {},
22182
22188
  cardSizeEstimate: {},
22183
22189
  animateConnections: { default: "never" },
22190
+ activityStyle: {},
22184
22191
  wheelMode: { default: "auto" },
22185
22192
  editable: {
22186
22193
  type: Boolean,
@@ -22776,7 +22783,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22776
22783
  return e.filter((e) => u.has(e.id));
22777
22784
  });
22778
22785
  function yt(e) {
22779
- return r.animateConnections === "never" ? !1 : r.animateConnections === "always" ? !0 : e.active !== !1;
22786
+ return r.animateConnections === "never" ? !1 : r.animateConnections === "always" ? !0 : r.animateConnections === "levels" ? !1 : e.active !== !1;
22780
22787
  }
22781
22788
  function bt() {
22782
22789
  let e = Infinity, t = Infinity, n = -Infinity, i = -Infinity;
@@ -23052,6 +23059,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23052
23059
  "visible-cards": vt.value,
23053
23060
  "drag-wire": qe.value,
23054
23061
  "should-flow": yt,
23062
+ "level-coloring": e.animateConnections === "levels",
23063
+ "activity-style": e.activityStyle ?? "flow",
23064
+ "animate-connections": e.animateConnections,
23055
23065
  background: e.background,
23056
23066
  onWireMousedown: Ze,
23057
23067
  onWireContextmenu: tt,
@@ -23070,6 +23080,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23070
23080
  "windowed",
23071
23081
  "visible-cards",
23072
23082
  "drag-wire",
23083
+ "level-coloring",
23084
+ "activity-style",
23085
+ "animate-connections",
23073
23086
  "background"
23074
23087
  ])) : (T(), s(VQt, {
23075
23088
  key: 1,
@@ -23082,6 +23095,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23082
23095
  "visible-cards": vt.value,
23083
23096
  "drag-wire": qe.value,
23084
23097
  "should-flow": yt,
23098
+ "level-coloring": e.animateConnections === "levels",
23099
+ "activity-style": e.activityStyle ?? "flow",
23100
+ "animate-connections": e.animateConnections,
23085
23101
  background: e.background,
23086
23102
  "live-data": I(k),
23087
23103
  onWireMousedown: Ze,
@@ -23102,6 +23118,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23102
23118
  "windowed",
23103
23119
  "visible-cards",
23104
23120
  "drag-wire",
23121
+ "level-coloring",
23122
+ "activity-style",
23123
+ "animate-connections",
23105
23124
  "background",
23106
23125
  "live-data"
23107
23126
  ])),
@@ -23149,7 +23168,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23149
23168
  u("div", HQt, [A(t.$slots, "chrome", {}, void 0, !0)])
23150
23169
  ], 34));
23151
23170
  }
23152
- }), [["__scopeId", "data-v-6df9ac5f"]]), qQt = ["data-card-id"], JQt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, YQt = ["title"], XQt = [
23171
+ }), [["__scopeId", "data-v-196fc7de"]]), qQt = ["data-card-id"], JQt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, YQt = ["title"], XQt = [
23153
23172
  "data-port",
23154
23173
  "data-port-data-type",
23155
23174
  "title",
@@ -23465,7 +23484,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23465
23484
  }, [t.showLabel ? (T(), l("span", h$t, P(I(t)), 1)) : c("", !0)], 46, m$t))), 128))])
23466
23485
  ], 46, qQt));
23467
23486
  }
23468
- }), [["__scopeId", "data-v-208ce340"]]);
23487
+ }), [["__scopeId", "data-v-48339b5e"]]);
23469
23488
  //#endregion
23470
23489
  //#region src/composables/useBlueprint.composable.ts
23471
23490
  function N9() {