@nubisco/ui 1.43.0 → 1.45.0

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
@@ -19259,13 +19259,8 @@ var dXt = { class: "nb-command-palette__input-row" }, fXt = ["placeholder"], pXt
19259
19259
  },
19260
19260
  emits: ["close"],
19261
19261
  setup(e, { emit: t }) {
19262
- let n = e, i = t, o = {
19263
- sm: "400px",
19264
- md: "520px",
19265
- lg: "720px",
19266
- xl: "960px"
19267
- };
19268
- function p() {
19262
+ let n = e, i = t;
19263
+ function o() {
19269
19264
  n.closeOnOverlay && i("close");
19270
19265
  }
19271
19266
  V(() => n.open, (e) => {
@@ -19273,34 +19268,33 @@ var dXt = { class: "nb-command-palette__input-row" }, fXt = ["placeholder"], pXt
19273
19268
  }), w(() => {
19274
19269
  document.body.style.overflow = "";
19275
19270
  });
19276
- function m(e) {
19271
+ function p(e) {
19277
19272
  e.key === "Escape" && n.open && i("close");
19278
19273
  }
19279
19274
  return C(() => {
19280
- document.addEventListener("keydown", m);
19275
+ document.addEventListener("keydown", p);
19281
19276
  }), w(() => {
19282
- document.removeEventListener("keydown", m);
19277
+ document.removeEventListener("keydown", p);
19283
19278
  }), (t, n) => {
19284
- let m = j("NbIcon"), h = j("NbGrid");
19279
+ let p = j("NbIcon"), m = j("NbGrid");
19285
19280
  return T(), s(r, { to: "body" }, [f(a, { name: "nb-modal" }, {
19286
19281
  default: H(() => [e.open ? (T(), l("div", {
19287
19282
  key: 0,
19288
19283
  class: "nb-modal--overlay",
19289
- onClick: G(p, ["self"])
19284
+ onClick: G(o, ["self"])
19290
19285
  }, [u("div", {
19291
- class: "nb-modal--content",
19286
+ class: b(["nb-modal--content", `nb-modal--content--${e.size}`]),
19292
19287
  role: "dialog",
19293
19288
  "aria-modal": "true",
19294
- style: x({ maxWidth: o[e.size] }),
19295
19289
  onClick: n[1] ||= G(() => {}, ["stop"])
19296
19290
  }, [
19297
19291
  t.$slots.header || e.title ? (T(), l("header", bXt, [u("span", xXt, [A(t.$slots, "header", {}, () => [d(P(e.title), 1)], !0)]), u("button", {
19298
19292
  class: "nb-modal--close",
19299
19293
  "aria-label": "Close",
19300
19294
  onClick: n[0] ||= (e) => i("close")
19301
- }, [f(m, { name: "x" })])])) : c("", !0),
19295
+ }, [f(p, { name: "x" })])])) : c("", !0),
19302
19296
  u("main", SXt, [A(t.$slots, "default", {}, void 0, !0)]),
19303
- t.$slots.footer ? (T(), s(h, {
19297
+ t.$slots.footer ? (T(), s(m, {
19304
19298
  key: 1,
19305
19299
  is: "footer",
19306
19300
  justify: "end",
@@ -19310,12 +19304,12 @@ var dXt = { class: "nb-command-palette__input-row" }, fXt = ["placeholder"], pXt
19310
19304
  default: H(() => [A(t.$slots, "footer", {}, void 0, !0)]),
19311
19305
  _: 3
19312
19306
  })) : c("", !0)
19313
- ], 4)])) : c("", !0)]),
19307
+ ], 2)])) : c("", !0)]),
19314
19308
  _: 3
19315
19309
  })]);
19316
19310
  };
19317
19311
  }
19318
- }), [["__scopeId", "data-v-bdebdfa6"]]), CXt = [
19312
+ }), [["__scopeId", "data-v-24bdff10"]]), CXt = [
19319
19313
  "id",
19320
19314
  "placeholder",
19321
19315
  "min",
@@ -21946,6 +21940,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
21946
21940
  visibleCards: {},
21947
21941
  dragWire: {},
21948
21942
  shouldFlow: { type: Function },
21943
+ levelColoring: { type: Boolean },
21944
+ activityStyle: {},
21945
+ animateConnections: {},
21949
21946
  background: {},
21950
21947
  liveData: {}
21951
21948
  },
@@ -22042,6 +22039,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22042
22039
  visibleCards: {},
22043
22040
  dragWire: {},
22044
22041
  shouldFlow: { type: Function },
22042
+ levelColoring: { type: Boolean },
22043
+ activityStyle: {},
22044
+ animateConnections: {},
22045
22045
  background: {},
22046
22046
  liveData: {}
22047
22047
  },
@@ -22068,7 +22068,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22068
22068
  async function g() {
22069
22069
  let e = a.value, t = s.value;
22070
22070
  if (!(!e || !t)) try {
22071
- 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, {
22072
22072
  canvas: e,
22073
22073
  el: t,
22074
22074
  width: o,
@@ -22087,7 +22087,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22087
22087
  }
22088
22088
  }
22089
22089
  function _() {
22090
- 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));
22091
22091
  }
22092
22092
  function v() {
22093
22093
  let e = a.value?.parentElement;
@@ -22101,7 +22101,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22101
22101
  r.panX,
22102
22102
  r.panY,
22103
22103
  r.zoom
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.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(() => {
22105
22105
  p?.disconnect(), f?.destroy(), f = null;
22106
22106
  }), (t, r) => (T(), l(n, null, [u("canvas", {
22107
22107
  ref_key: "canvasRef",
@@ -22154,7 +22154,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22154
22154
  })
22155
22155
  }, [A(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : A(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
22156
22156
  }
22157
- }), [["__scopeId", "data-v-205c97b6"]]), E9 = class {
22157
+ }), [["__scopeId", "data-v-6fdf251d"]]), E9 = class {
22158
22158
  values = /* @__PURE__ */ new Map();
22159
22159
  epoch = 0;
22160
22160
  onChange = void 0;
@@ -22187,6 +22187,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22187
22187
  cards: {},
22188
22188
  cardSizeEstimate: {},
22189
22189
  animateConnections: { default: "never" },
22190
+ activityStyle: {},
22190
22191
  wheelMode: { default: "auto" },
22191
22192
  editable: {
22192
22193
  type: Boolean,
@@ -22782,7 +22783,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
22782
22783
  return e.filter((e) => u.has(e.id));
22783
22784
  });
22784
22785
  function yt(e) {
22785
- 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;
22786
22787
  }
22787
22788
  function bt() {
22788
22789
  let e = Infinity, t = Infinity, n = -Infinity, i = -Infinity;
@@ -23058,6 +23059,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23058
23059
  "visible-cards": vt.value,
23059
23060
  "drag-wire": qe.value,
23060
23061
  "should-flow": yt,
23062
+ "level-coloring": e.animateConnections === "levels",
23063
+ "activity-style": e.activityStyle ?? "flow",
23064
+ "animate-connections": e.animateConnections,
23061
23065
  background: e.background,
23062
23066
  onWireMousedown: Ze,
23063
23067
  onWireContextmenu: tt,
@@ -23076,6 +23080,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23076
23080
  "windowed",
23077
23081
  "visible-cards",
23078
23082
  "drag-wire",
23083
+ "level-coloring",
23084
+ "activity-style",
23085
+ "animate-connections",
23079
23086
  "background"
23080
23087
  ])) : (T(), s(VQt, {
23081
23088
  key: 1,
@@ -23088,6 +23095,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23088
23095
  "visible-cards": vt.value,
23089
23096
  "drag-wire": qe.value,
23090
23097
  "should-flow": yt,
23098
+ "level-coloring": e.animateConnections === "levels",
23099
+ "activity-style": e.activityStyle ?? "flow",
23100
+ "animate-connections": e.animateConnections,
23091
23101
  background: e.background,
23092
23102
  "live-data": I(k),
23093
23103
  onWireMousedown: Ze,
@@ -23108,6 +23118,9 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23108
23118
  "windowed",
23109
23119
  "visible-cards",
23110
23120
  "drag-wire",
23121
+ "level-coloring",
23122
+ "activity-style",
23123
+ "animate-connections",
23111
23124
  "background",
23112
23125
  "live-data"
23113
23126
  ])),
@@ -23155,7 +23168,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23155
23168
  u("div", HQt, [A(t.$slots, "chrome", {}, void 0, !0)])
23156
23169
  ], 34));
23157
23170
  }
23158
- }), [["__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 = [
23159
23172
  "data-port",
23160
23173
  "data-port-data-type",
23161
23174
  "title",
@@ -23471,7 +23484,7 @@ var jQt = { class: "nb-blueprint__wires" }, MQt = [
23471
23484
  }, [t.showLabel ? (T(), l("span", h$t, P(I(t)), 1)) : c("", !0)], 46, m$t))), 128))])
23472
23485
  ], 46, qQt));
23473
23486
  }
23474
- }), [["__scopeId", "data-v-208ce340"]]);
23487
+ }), [["__scopeId", "data-v-9a68353f"]]);
23475
23488
  //#endregion
23476
23489
  //#region src/composables/useBlueprint.composable.ts
23477
23490
  function N9() {