@nubisco/ui 1.20.0 → 1.20.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
@@ -19923,31 +19923,25 @@ var Mqt = { class: "nb-command-palette__input-row" }, Nqt = ["placeholder"], Pqt
19923
19923
  "title",
19924
19924
  "onMousedown",
19925
19925
  "onMouseup"
19926
- ], UYt = {
19927
- key: 0,
19928
- class: "nb-blueprint-card__port-label nb-blueprint-card__port-label--input"
19929
- }, WYt = { class: "nb-blueprint-card__body" }, GYt = { class: "nb-blueprint-card__header" }, KYt = ["title"], qYt = {
19926
+ ], UYt = { class: "nb-blueprint-card__body" }, WYt = { class: "nb-blueprint-card__header" }, GYt = ["title"], KYt = {
19930
19927
  width: "8",
19931
19928
  height: "8",
19932
19929
  viewBox: "0 0 8 8"
19933
- }, JYt = ["d"], YYt = { class: "nb-blueprint-card__title" }, XYt = ["checked"], ZYt = {
19930
+ }, qYt = ["d"], JYt = { class: "nb-blueprint-card__title" }, YYt = ["checked"], XYt = {
19934
19931
  key: 0,
19935
19932
  class: "nb-blueprint-card__category"
19936
- }, QYt = {
19933
+ }, ZYt = {
19937
19934
  key: 1,
19938
19935
  class: "nb-blueprint-card__preview"
19939
- }, $Yt = {
19936
+ }, QYt = {
19940
19937
  key: 2,
19941
19938
  class: "nb-blueprint-card__content"
19942
- }, eXt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, tXt = [
19939
+ }, $Yt = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, eXt = [
19943
19940
  "data-port",
19944
19941
  "title",
19945
19942
  "onMousedown",
19946
19943
  "onMouseup"
19947
- ], nXt = {
19948
- key: 0,
19949
- class: "nb-blueprint-card__port-label nb-blueprint-card__port-label--output"
19950
- }, W9 = /* @__PURE__ */ H(/* @__PURE__ */ m({
19944
+ ], W9 = /* @__PURE__ */ H(/* @__PURE__ */ m({
19951
19945
  __name: "BlueprintCard",
19952
19946
  props: {
19953
19947
  id: {},
@@ -20044,25 +20038,25 @@ var Mqt = { class: "nb-command-palette__input-row" }, Nqt = ["placeholder"], Pqt
20044
20038
  portId: n.id,
20045
20039
  type: "input"
20046
20040
  }), ["stop"])
20047
- }, [e.collapsed ? c("", !0) : (T(), l("span", UYt, P(n.label), 1))], 46, HYt))), 128))]),
20048
- u("div", WYt, [u("div", GYt, [
20041
+ }, null, 46, HYt))), 128))]),
20042
+ u("div", UYt, [u("div", WYt, [
20049
20043
  u("button", {
20050
20044
  class: "nb-blueprint-card__collapse",
20051
20045
  title: e.collapsed ? "Expand" : "Collapse",
20052
20046
  onClick: a[0] ||= V((n) => t.$emit("toggle-collapse", e.id), ["stop"])
20053
- }, [(T(), l("svg", qYt, [u("path", {
20047
+ }, [(T(), l("svg", KYt, [u("path", {
20054
20048
  d: e.collapsed ? "M2 1L6 4L2 7" : "M1 2L4 6L7 2",
20055
20049
  fill: "none",
20056
20050
  stroke: "currentColor",
20057
20051
  "stroke-width": "1.5",
20058
20052
  "stroke-linecap": "round",
20059
20053
  "stroke-linejoin": "round"
20060
- }, null, 8, JYt)]))], 8, KYt),
20054
+ }, null, 8, qYt)]))], 8, GYt),
20061
20055
  e.status && e.status !== "none" ? (T(), l("span", {
20062
20056
  key: 0,
20063
20057
  class: b(["nb-blueprint-card__status", `nb-blueprint-card__status--${e.status}`])
20064
20058
  }, null, 2)) : c("", !0),
20065
- u("span", YYt, P(e.title), 1),
20059
+ u("span", JYt, P(e.title), 1),
20066
20060
  e.enabled === void 0 ? c("", !0) : (T(), l("label", {
20067
20061
  key: 1,
20068
20062
  class: "nb-blueprint-card__toggle",
@@ -20071,7 +20065,7 @@ var Mqt = { class: "nb-command-palette__input-row" }, Nqt = ["placeholder"], Pqt
20071
20065
  type: "checkbox",
20072
20066
  checked: e.enabled,
20073
20067
  onChange: a[1] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
20074
- }, null, 40, XYt), a[5] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)])),
20068
+ }, null, 40, YYt), a[5] ||= u("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)])),
20075
20069
  e.removable ? (T(), l("button", {
20076
20070
  key: 2,
20077
20071
  class: "nb-blueprint-card__remove",
@@ -20079,11 +20073,11 @@ var Mqt = { class: "nb-command-palette__input-row" }, Nqt = ["placeholder"], Pqt
20079
20073
  onClick: a[3] ||= V((n) => t.$emit("remove", e.id), ["stop"])
20080
20074
  }, " × ")) : c("", !0)
20081
20075
  ]), e.collapsed ? c("", !0) : (T(), l(n, { key: 0 }, [
20082
- e.category ? (T(), l("span", ZYt, P(e.category), 1)) : c("", !0),
20083
- e.preview ? (T(), l("span", QYt, P(e.preview), 1)) : c("", !0),
20084
- t.$slots.default ? (T(), l("div", $Yt, [A(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
20076
+ e.category ? (T(), l("span", XYt, P(e.category), 1)) : c("", !0),
20077
+ e.preview ? (T(), l("span", ZYt, P(e.preview), 1)) : c("", !0),
20078
+ t.$slots.default ? (T(), l("div", QYt, [A(t.$slots, "default", {}, void 0, !0)])) : c("", !0)
20085
20079
  ], 64))]),
20086
- u("div", eXt, [(T(!0), l(n, null, k(i.value, (n) => (T(), l("div", {
20080
+ u("div", $Yt, [(T(!0), l(n, null, k(i.value, (n) => (T(), l("div", {
20087
20081
  key: n.id,
20088
20082
  "data-port": `${e.id}:${n.id}`,
20089
20083
  class: b(["nb-blueprint-card__port", [`nb-blueprint-card__port--${f(n)}`]]),
@@ -20099,10 +20093,10 @@ var Mqt = { class: "nb-command-palette__input-row" }, Nqt = ["placeholder"], Pqt
20099
20093
  portId: n.id,
20100
20094
  type: "output"
20101
20095
  }), ["stop"])
20102
- }, [e.collapsed ? c("", !0) : (T(), l("span", nXt, P(n.label), 1))], 46, tXt))), 128))])
20096
+ }, null, 46, eXt))), 128))])
20103
20097
  ], 38));
20104
20098
  }
20105
- }), [["__scopeId", "data-v-7640362a"]]), rXt = {
20099
+ }), [["__scopeId", "data-v-58ace267"]]), tXt = {
20106
20100
  NbAiLabel: fe,
20107
20101
  NbBadge: ge,
20108
20102
  NbBarChart: De,
@@ -20146,12 +20140,12 @@ var Mqt = { class: "nb-command-palette__input-row" }, Nqt = ["placeholder"], Pqt
20146
20140
  NbShellPanel: H9,
20147
20141
  NbBlueprint: U9,
20148
20142
  NbBlueprintCard: W9
20149
- }, iXt = { install(e) {
20150
- Object.entries(rXt).forEach(([t, n]) => {
20143
+ }, nXt = { install(e) {
20144
+ Object.entries(tXt).forEach(([t, n]) => {
20151
20145
  e.component(t, n);
20152
20146
  });
20153
- } }, aXt = /* @__PURE__ */ se({ default: () => oXt });
20154
- function oXt(e) {
20147
+ } }, rXt = /* @__PURE__ */ se({ default: () => iXt });
20148
+ function iXt(e) {
20155
20149
  e.directive("nb-context-menu", {
20156
20150
  mounted(e, t) {
20157
20151
  let n = (e) => {
@@ -20186,7 +20180,7 @@ function G9(e) {
20186
20180
  }
20187
20181
  //#endregion
20188
20182
  //#region src/directives/ToolTip.directive.ts
20189
- var sXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Set(), q9 = (e) => {
20183
+ var aXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Set(), q9 = (e) => {
20190
20184
  if (Array.isArray(e)) return e.map((e) => q9(e)).join("");
20191
20185
  if (!e || typeof e != "object" || !e.component) return "";
20192
20186
  let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Object.entries(n).map(([e, t]) => `${e}="${G9(String(t))}"`).join(" "), s = Array.isArray(a) ? q9(a) : a === void 0 ? "" : G9(String(a));
@@ -20199,7 +20193,7 @@ var sXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
20199
20193
  mounted(e, t) {
20200
20194
  let n;
20201
20195
  e.__showTooltip__ = () => {
20202
- clearTimeout(n), e.__tooltipBinding__ && cXt(e, e.__tooltipBinding__);
20196
+ clearTimeout(n), e.__tooltipBinding__ && oXt(e, e.__tooltipBinding__);
20203
20197
  }, e.__hideTooltip__ = (t = 150) => {
20204
20198
  n = setTimeout(() => {
20205
20199
  Z9(e, t <= 0);
@@ -20209,7 +20203,7 @@ var sXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
20209
20203
  }, e.__tooltipBinding__ = t.value, e.__showHandler__ = () => e.__showTooltip__?.(), e.__hideHandler__ = () => e.__hideTooltip__?.(), e.addEventListener("mouseenter", e.__showHandler__), e.addEventListener("mouseleave", e.__hideHandler__), e.addEventListener("mousemove", e.__mouseMove__), window.addEventListener("scroll", e.__hideHandler__);
20210
20204
  },
20211
20205
  updated(e, t) {
20212
- e.__tooltipBinding__ = t.value, t.value ? e.tooltipElement && lXt(e, t.value) : Z9(e, !0);
20206
+ e.__tooltipBinding__ = t.value, t.value ? e.tooltipElement && sXt(e, t.value) : Z9(e, !0);
20213
20207
  },
20214
20208
  unmounted(e) {
20215
20209
  Z9(e, !0), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__hideHandler__ && window.removeEventListener("scroll", e.__hideHandler__);
@@ -20221,7 +20215,7 @@ var sXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
20221
20215
  <div class="nb-tooltip-body">${J9(t)}</div>
20222
20216
  <div class="nb-tooltip-tip">${J9(n)}</div>
20223
20217
  </div>
20224
- `, cXt = (e, { header: t, body: n, tip: r, flavor: i = "default", delay: a = 400, animationTime: o = 300, position: s, overflowOnly: c, classExtra: l }) => {
20218
+ `, oXt = (e, { header: t, body: n, tip: r, flavor: i = "default", delay: a = 400, animationTime: o = 300, position: s, overflowOnly: c, classExtra: l }) => {
20225
20219
  let u = e.tooltipElement;
20226
20220
  if (u && u.remove(), c) {
20227
20221
  let t = e.getBoundingClientRect();
@@ -20240,7 +20234,7 @@ var sXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
20240
20234
  clearTimeout(e.__showTimer__), n && (t ? n.remove() : (n.style.animation = "tooltipDisappear 200ms ease-in-out forwards", setTimeout(() => {
20241
20235
  n.remove();
20242
20236
  }, 200)), K9.delete(e));
20243
- }, lXt = (e, { header: t, body: n, tip: r, position: i }) => {
20237
+ }, sXt = (e, { header: t, body: n, tip: r, position: i }) => {
20244
20238
  let a = e.tooltipElement;
20245
20239
  a && (a.innerHTML = X9({
20246
20240
  header: t,
@@ -20267,17 +20261,17 @@ var sXt = /* @__PURE__ */ se({ default: () => Y9 }), K9 = /* @__PURE__ */ new Se
20267
20261
  break;
20268
20262
  }
20269
20263
  t && (t.style.top = `${l}px`, t.style.left = `${u}px`);
20270
- }, uXt = /* @__PURE__ */ Object.assign({
20271
- "./ContextMenu.directive.ts": aXt,
20272
- "./ToolTip.directive.ts": sXt
20273
- }), dXt = { install(e) {
20274
- Object.values(uXt).forEach((t) => {
20264
+ }, cXt = /* @__PURE__ */ Object.assign({
20265
+ "./ContextMenu.directive.ts": rXt,
20266
+ "./ToolTip.directive.ts": aXt
20267
+ }), lXt = { install(e) {
20268
+ Object.values(cXt).forEach((t) => {
20275
20269
  typeof t.default == "function" && t.default(e);
20276
20270
  });
20277
20271
  } };
20278
20272
  //#endregion
20279
20273
  //#region src/composables/useContextMenu.composable.ts
20280
- function fXt() {
20274
+ function uXt() {
20281
20275
  let e = O(!1), t = O({
20282
20276
  x: 0,
20283
20277
  y: 0
@@ -20307,18 +20301,18 @@ function fXt() {
20307
20301
  }
20308
20302
  //#endregion
20309
20303
  //#region src/plugins/commandPalette.ts
20310
- var pXt = { install(e) {
20304
+ var dXt = { install(e) {
20311
20305
  let t = Aqt();
20312
20306
  e.provide(g9, t);
20313
- } }, $9 = /* @__PURE__ */ Object.assign({}), mXt = { install(e) {
20307
+ } }, $9 = /* @__PURE__ */ Object.assign({}), fXt = { install(e) {
20314
20308
  Object.keys($9).forEach((t) => {
20315
20309
  let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = $9[t];
20316
20310
  e.component(n, r.default);
20317
20311
  });
20318
- } }, hXt = { install(e) {
20319
- e.use(iXt), e.use(dXt);
20312
+ } }, pXt = { install(e) {
20313
+ e.use(nXt), e.use(lXt);
20320
20314
  } };
20321
20315
  //#endregion
20322
- export { ge as NbBadge, De as NbBarChart, U9 as NbBlueprint, W9 as NbBlueprintCard, V9 as NbBottomPanel, Oe as NbBreadcrumbs, K8 as NbButton, q8 as NbCheckbox, J8 as NbColorStrip, _9 as NbCommandPalette, pXt as NbCommandPalettePlugin, Z8 as NbFlag, Q8 as NbGrid, G8 as NbIcon, o9 as NbJsonTree, l9 as NbLabel, s9 as NbLineChart, u9 as NbMenu, d9 as NbMenuBar, f9 as NbMenuBarItem, m9 as NbMenuDivider, p9 as NbMenuItem, y9 as NbMessage, b9 as NbModal, x9 as NbNumberInput, S9 as NbPanel, C9 as NbPieChart, T9 as NbRadio, E9 as NbSelect, D9 as NbShell, H9 as NbShellPanel, O9 as NbSidebarLink, k9 as NbSlider, M9 as NbSparkline, h9 as NbSubmenu, F9 as NbTextInput, I9 as NbToast, z9 as NbTree, B9 as NbTreeNode, mXt as NubiscoUILabs, hXt as default, Y9 as nbTooltipDirective, jqt as useCommandPalette, fXt as useContextMenu };
20316
+ export { ge as NbBadge, De as NbBarChart, U9 as NbBlueprint, W9 as NbBlueprintCard, V9 as NbBottomPanel, Oe as NbBreadcrumbs, K8 as NbButton, q8 as NbCheckbox, J8 as NbColorStrip, _9 as NbCommandPalette, dXt as NbCommandPalettePlugin, Z8 as NbFlag, Q8 as NbGrid, G8 as NbIcon, o9 as NbJsonTree, l9 as NbLabel, s9 as NbLineChart, u9 as NbMenu, d9 as NbMenuBar, f9 as NbMenuBarItem, m9 as NbMenuDivider, p9 as NbMenuItem, y9 as NbMessage, b9 as NbModal, x9 as NbNumberInput, S9 as NbPanel, C9 as NbPieChart, T9 as NbRadio, E9 as NbSelect, D9 as NbShell, H9 as NbShellPanel, O9 as NbSidebarLink, k9 as NbSlider, M9 as NbSparkline, h9 as NbSubmenu, F9 as NbTextInput, I9 as NbToast, z9 as NbTree, B9 as NbTreeNode, fXt as NubiscoUILabs, pXt as default, Y9 as nbTooltipDirective, jqt as useCommandPalette, uXt as useContextMenu };
20323
20317
 
20324
20318
  //# sourceMappingURL=index.mjs.map