@kestra-io/ui-libs 0.0.260 → 0.0.262

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.
@@ -6480,7 +6480,7 @@ const R1 = {
6480
6480
  }, 8, ["id", "default-marker-color"]));
6481
6481
  }
6482
6482
  }), A_ = /* @__PURE__ */ H(P1, [["__scopeId", "data-v-ccfc7443"]]), M1 = {
6483
- name: "ContentCopyIcon",
6483
+ name: "MenuRightIcon",
6484
6484
  emits: ["click"],
6485
6485
  props: {
6486
6486
  title: {
@@ -6495,12 +6495,12 @@ const R1 = {
6495
6495
  default: 24
6496
6496
  }
6497
6497
  }
6498
- }, V1 = ["aria-hidden", "aria-label"], x1 = ["fill", "width", "height"], U1 = { d: "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" }, F1 = { key: 0 };
6498
+ }, V1 = ["aria-hidden", "aria-label"], x1 = ["fill", "width", "height"], U1 = { d: "M10,17L15,12L10,7V17Z" }, F1 = { key: 0 };
6499
6499
  function H1(e, t, n, l, o, i) {
6500
6500
  return u(), d("span", K(e.$attrs, {
6501
6501
  "aria-hidden": n.title ? null : "true",
6502
6502
  "aria-label": n.title,
6503
- class: "material-design-icon content-copy-icon",
6503
+ class: "material-design-icon menu-right-icon",
6504
6504
  role: "img",
6505
6505
  onClick: t[0] || (t[0] = (r) => e.$emit("click", r))
6506
6506
  }), [
@@ -6518,109 +6518,6 @@ function H1(e, t, n, l, o, i) {
6518
6518
  ], 16, V1);
6519
6519
  }
6520
6520
  const B1 = /* @__PURE__ */ H(M1, [["render", H1]]), z1 = {
6521
- key: 0,
6522
- class: "language"
6523
- }, G1 = ["innerHTML"], W1 = /* @__PURE__ */ de({
6524
- __name: "SchemaToCode",
6525
- props: {
6526
- highlighter: {},
6527
- code: { default: "" },
6528
- language: { default: null },
6529
- filename: { default: null },
6530
- highlights: { default: () => [] },
6531
- meta: { default: null },
6532
- theme: { default: "github-dark" }
6533
- },
6534
- setup(e) {
6535
- const t = {
6536
- ContentCopy: qt(B1),
6537
- Check: qt(co)
6538
- }, n = e, l = te(!1), o = te(), i = qt(t.ContentCopy.value), r = te(), a = te(), s = G(() => n.highlighter.codeToHtml(n.code, {
6539
- lang: n.language,
6540
- theme: n.theme
6541
- }));
6542
- function c() {
6543
- l.value = !0, o.value && dn(() => {
6544
- r.value && a.value && Vr(r.value, a.value, {
6545
- placement: "left"
6546
- });
6547
- });
6548
- }
6549
- function m() {
6550
- clearTimeout(o.value), navigator.clipboard.writeText(n.code.trimEnd()), i.value = t.Check.value, o.value = setTimeout(() => {
6551
- i.value = t.ContentCopy.value, o.value = void 0;
6552
- }, 2e3);
6553
- }
6554
- return (_, h) => (u(), d("div", {
6555
- class: "code-block",
6556
- onMouseover: c,
6557
- onMouseleave: h[0] || (h[0] = (C) => l.value = !1)
6558
- }, [
6559
- _.language && !l.value ? (u(), d("div", z1, V(_.language), 1)) : w("", !0),
6560
- l.value ? (u(), d(Ee, { key: 1 }, [
6561
- v("button", {
6562
- ref_key: "copyButton",
6563
- ref: r,
6564
- class: "copy"
6565
- }, [
6566
- (u(), q(mt(i.value), { onClick: m }))
6567
- ], 512),
6568
- o.value ? (u(), d("div", {
6569
- key: 0,
6570
- ref_key: "copyTooltip",
6571
- ref: a,
6572
- id: "copied-tooltip",
6573
- role: "tooltip"
6574
- }, [...h[1] || (h[1] = [
6575
- Ze(" Copied! ", -1),
6576
- v("div", {
6577
- id: "arrow",
6578
- "data-popper-arrow": ""
6579
- }, null, -1)
6580
- ])], 512)) : w("", !0)
6581
- ], 64)) : w("", !0),
6582
- v("div", { innerHTML: s.value }, null, 8, G1)
6583
- ], 32));
6584
- }
6585
- }), gi = /* @__PURE__ */ H(W1, [["__scopeId", "data-v-a899f6a1"]]), j1 = {
6586
- name: "MenuRightIcon",
6587
- emits: ["click"],
6588
- props: {
6589
- title: {
6590
- type: String
6591
- },
6592
- fillColor: {
6593
- type: String,
6594
- default: "currentColor"
6595
- },
6596
- size: {
6597
- type: Number,
6598
- default: 24
6599
- }
6600
- }
6601
- }, K1 = ["aria-hidden", "aria-label"], Y1 = ["fill", "width", "height"], q1 = { d: "M10,17L15,12L10,7V17Z" }, X1 = { key: 0 };
6602
- function Z1(e, t, n, l, o, i) {
6603
- return u(), d("span", K(e.$attrs, {
6604
- "aria-hidden": n.title ? null : "true",
6605
- "aria-label": n.title,
6606
- class: "material-design-icon menu-right-icon",
6607
- role: "img",
6608
- onClick: t[0] || (t[0] = (r) => e.$emit("click", r))
6609
- }), [
6610
- (u(), d("svg", {
6611
- fill: n.fillColor,
6612
- class: "material-design-icon__svg",
6613
- width: n.size,
6614
- height: n.size,
6615
- viewBox: "0 0 24 24"
6616
- }, [
6617
- v("path", q1, [
6618
- n.title ? (u(), d("title", X1, V(n.title), 1)) : w("", !0)
6619
- ])
6620
- ], 8, Y1))
6621
- ], 16, K1);
6622
- }
6623
- const J1 = /* @__PURE__ */ H(j1, [["render", Z1]]), Q1 = {
6624
6521
  name: "MenuDownIcon",
6625
6522
  emits: ["click"],
6626
6523
  props: {
@@ -6636,8 +6533,8 @@ const J1 = /* @__PURE__ */ H(j1, [["render", Z1]]), Q1 = {
6636
6533
  default: 24
6637
6534
  }
6638
6535
  }
6639
- }, ep = ["aria-hidden", "aria-label"], tp = ["fill", "width", "height"], np = { d: "M7,10L12,15L17,10H7Z" }, lp = { key: 0 };
6640
- function ip(e, t, n, l, o, i) {
6536
+ }, G1 = ["aria-hidden", "aria-label"], W1 = ["fill", "width", "height"], j1 = { d: "M7,10L12,15L17,10H7Z" }, K1 = { key: 0 };
6537
+ function Y1(e, t, n, l, o, i) {
6641
6538
  return u(), d("span", K(e.$attrs, {
6642
6539
  "aria-hidden": n.title ? null : "true",
6643
6540
  "aria-label": n.title,
@@ -6652,45 +6549,45 @@ function ip(e, t, n, l, o, i) {
6652
6549
  height: n.size,
6653
6550
  viewBox: "0 0 24 24"
6654
6551
  }, [
6655
- v("path", np, [
6656
- n.title ? (u(), d("title", lp, V(n.title), 1)) : w("", !0)
6552
+ v("path", j1, [
6553
+ n.title ? (u(), d("title", K1, V(n.title), 1)) : w("", !0)
6657
6554
  ])
6658
- ], 8, tp))
6659
- ], 16, ep);
6555
+ ], 8, W1))
6556
+ ], 16, G1);
6660
6557
  }
6661
- const op = /* @__PURE__ */ H(Q1, [["render", ip]]);
6662
- function rp(e) {
6558
+ const q1 = /* @__PURE__ */ H(z1, [["render", Y1]]);
6559
+ function X1(e) {
6663
6560
  return wr() ? (Nr(e), !0) : !1;
6664
6561
  }
6665
6562
  function bo(e) {
6666
6563
  return typeof e == "function" ? e() : $(e);
6667
6564
  }
6668
- const ap = typeof window < "u" && typeof document < "u";
6565
+ const Z1 = typeof window < "u" && typeof document < "u";
6669
6566
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
6670
- const sp = Object.prototype.toString, up = (e) => sp.call(e) === "[object Object]", cp = () => {
6567
+ const J1 = Object.prototype.toString, Q1 = (e) => J1.call(e) === "[object Object]", ep = () => {
6671
6568
  };
6672
- function dp(e) {
6569
+ function tp(e) {
6673
6570
  return Object.entries(e);
6674
6571
  }
6675
- function fp(e) {
6572
+ function np(e) {
6676
6573
  var t;
6677
6574
  const n = bo(e);
6678
6575
  return (t = n?.$el) != null ? t : n;
6679
6576
  }
6680
- const ko = ap ? window : void 0;
6681
- function hi(...e) {
6577
+ const ko = Z1 ? window : void 0;
6578
+ function gi(...e) {
6682
6579
  let t, n, l, o;
6683
6580
  if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, l, o] = e, t = ko) : [t, n, l, o] = e, !t)
6684
- return cp;
6581
+ return ep;
6685
6582
  Array.isArray(n) || (n = [n]), Array.isArray(l) || (l = [l]);
6686
6583
  const i = [], r = () => {
6687
6584
  i.forEach((m) => m()), i.length = 0;
6688
6585
  }, a = (m, _, h, C) => (m.addEventListener(_, h, C), () => m.removeEventListener(_, h, C)), s = Ue(
6689
- () => [fp(t), bo(o)],
6586
+ () => [np(t), bo(o)],
6690
6587
  ([m, _]) => {
6691
6588
  if (r(), !m)
6692
6589
  return;
6693
- const h = up(_) ? { ..._ } : _;
6590
+ const h = Q1(_) ? { ..._ } : _;
6694
6591
  i.push(
6695
6592
  ...n.flatMap((C) => l.map((b) => a(m, C, b, h)))
6696
6593
  );
@@ -6699,9 +6596,9 @@ function hi(...e) {
6699
6596
  ), c = () => {
6700
6597
  s(), r();
6701
6598
  };
6702
- return rp(c), c;
6599
+ return X1(c), c;
6703
6600
  }
6704
- const _i = [
6601
+ const hi = [
6705
6602
  "hash",
6706
6603
  "host",
6707
6604
  "hostname",
@@ -6711,18 +6608,18 @@ const _i = [
6711
6608
  "protocol",
6712
6609
  "search"
6713
6610
  ];
6714
- function mp(e = {}) {
6611
+ function lp(e = {}) {
6715
6612
  const { window: t = ko } = e, n = Object.fromEntries(
6716
- _i.map((i) => [i, te()])
6613
+ hi.map((i) => [i, te()])
6717
6614
  );
6718
- for (const [i, r] of dp(n))
6615
+ for (const [i, r] of tp(n))
6719
6616
  Ue(r, (a) => {
6720
6617
  !t?.location || t.location[i] === a || (t.location[i] = a);
6721
6618
  });
6722
6619
  const l = (i) => {
6723
6620
  var r;
6724
6621
  const { state: a, length: s } = t?.history || {}, { origin: c } = t?.location || {};
6725
- for (const m of _i)
6622
+ for (const m of hi)
6726
6623
  n[m].value = (r = t?.location) == null ? void 0 : r[m];
6727
6624
  return wi({
6728
6625
  trigger: i,
@@ -6732,12 +6629,12 @@ function mp(e = {}) {
6732
6629
  ...n
6733
6630
  });
6734
6631
  }, o = te(l("load"));
6735
- return t && (hi(t, "popstate", () => o.value = l("popstate"), { passive: !0 }), hi(t, "hashchange", () => o.value = l("hashchange"), { passive: !0 })), o;
6632
+ return t && (gi(t, "popstate", () => o.value = l("popstate"), { passive: !0 }), gi(t, "hashchange", () => o.value = l("hashchange"), { passive: !0 })), o;
6736
6633
  }
6737
- const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp = {
6634
+ const ip = ["id", "open"], op = { class: "d-flex gap-2 align-items-center" }, rp = {
6738
6635
  key: 0,
6739
6636
  class: "d-flex flex-grow-1"
6740
- }, _p = ["id"], yp = /* @__PURE__ */ de({
6637
+ }, ap = ["id"], sp = /* @__PURE__ */ de({
6741
6638
  __name: "Collapsible",
6742
6639
  props: {
6743
6640
  href: { default: Math.random().toString(36).substring(2, 5) },
@@ -6748,7 +6645,7 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
6748
6645
  },
6749
6646
  emits: ["expand"],
6750
6647
  setup(e, { emit: t }) {
6751
- const n = e, l = te(!0), o = mp(), i = t, r = G(() => `#${n.href}-body`), a = (c) => {
6648
+ const n = e, l = te(!0), o = lp(), i = t, r = G(() => `#${n.href}-body`), a = (c) => {
6752
6649
  c.preventDefault(), l.value = !l.value, s.value = !l.value, l.value || i("expand"), !n.noUrlChange && (window.location.hash = l.value ? "" : r.value);
6753
6650
  }, s = te(!1);
6754
6651
  return Ue(
@@ -6771,15 +6668,15 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
6771
6668
  class: re(["d-flex align-items-center justify-content-between fw-bold gap-2 collapse-button", { collapsed: l.value }]),
6772
6669
  onClick: a
6773
6670
  }, [
6774
- v("span", gp, [
6775
- c.arrow ? (u(), q(mt(l.value ? J1 : op), {
6671
+ v("span", op, [
6672
+ c.arrow ? (u(), q(mt(l.value ? B1 : q1), {
6776
6673
  key: 0,
6777
6674
  class: "arrow"
6778
6675
  })) : w("", !0),
6779
6676
  Ze(" " + V(c.clickableText) + " ", 1),
6780
6677
  ae(c.$slots, "additionalButtonText", {}, void 0, !0)
6781
6678
  ]),
6782
- c.$slots.buttonRight ? (u(), d("span", hp, [
6679
+ c.$slots.buttonRight ? (u(), d("span", rp, [
6783
6680
  ae(c.$slots, "buttonRight", { collapsed: l.value }, void 0, !0)
6784
6681
  ])) : w("", !0)
6785
6682
  ], 2),
@@ -6790,10 +6687,113 @@ const pp = ["id", "open"], gp = { class: "d-flex gap-2 align-items-center" }, hp
6790
6687
  v("div", null, [
6791
6688
  ae(c.$slots, "content", {}, void 0, !0)
6792
6689
  ])
6793
- ], 8, _p)) : w("", !0)
6794
- ], 8, pp));
6690
+ ], 8, ap)) : w("", !0)
6691
+ ], 8, ip));
6692
+ }
6693
+ }), an = /* @__PURE__ */ H(sp, [["__scopeId", "data-v-4b935a77"]]), up = {
6694
+ name: "ContentCopyIcon",
6695
+ emits: ["click"],
6696
+ props: {
6697
+ title: {
6698
+ type: String
6699
+ },
6700
+ fillColor: {
6701
+ type: String,
6702
+ default: "currentColor"
6703
+ },
6704
+ size: {
6705
+ type: Number,
6706
+ default: 24
6707
+ }
6708
+ }
6709
+ }, cp = ["aria-hidden", "aria-label"], dp = ["fill", "width", "height"], fp = { d: "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z" }, mp = { key: 0 };
6710
+ function pp(e, t, n, l, o, i) {
6711
+ return u(), d("span", K(e.$attrs, {
6712
+ "aria-hidden": n.title ? null : "true",
6713
+ "aria-label": n.title,
6714
+ class: "material-design-icon content-copy-icon",
6715
+ role: "img",
6716
+ onClick: t[0] || (t[0] = (r) => e.$emit("click", r))
6717
+ }), [
6718
+ (u(), d("svg", {
6719
+ fill: n.fillColor,
6720
+ class: "material-design-icon__svg",
6721
+ width: n.size,
6722
+ height: n.size,
6723
+ viewBox: "0 0 24 24"
6724
+ }, [
6725
+ v("path", fp, [
6726
+ n.title ? (u(), d("title", mp, V(n.title), 1)) : w("", !0)
6727
+ ])
6728
+ ], 8, dp))
6729
+ ], 16, cp);
6730
+ }
6731
+ const gp = /* @__PURE__ */ H(up, [["render", pp]]), hp = {
6732
+ key: 0,
6733
+ class: "language"
6734
+ }, _p = ["innerHTML"], yp = /* @__PURE__ */ de({
6735
+ __name: "SchemaToCode",
6736
+ props: {
6737
+ highlighter: {},
6738
+ code: { default: "" },
6739
+ language: { default: null },
6740
+ filename: { default: null },
6741
+ highlights: { default: () => [] },
6742
+ meta: { default: null },
6743
+ theme: { default: "github-dark" }
6744
+ },
6745
+ setup(e) {
6746
+ const t = {
6747
+ ContentCopy: qt(gp),
6748
+ Check: qt(co)
6749
+ }, n = e, l = te(!1), o = te(), i = qt(t.ContentCopy.value), r = te(), a = te(), s = G(() => n.highlighter.codeToHtml(n.code, {
6750
+ lang: n.language,
6751
+ theme: n.theme
6752
+ }));
6753
+ function c() {
6754
+ l.value = !0, o.value && dn(() => {
6755
+ r.value && a.value && Vr(r.value, a.value, {
6756
+ placement: "left"
6757
+ });
6758
+ });
6759
+ }
6760
+ function m() {
6761
+ clearTimeout(o.value), navigator.clipboard.writeText(n.code.trimEnd()), i.value = t.Check.value, o.value = setTimeout(() => {
6762
+ i.value = t.ContentCopy.value, o.value = void 0;
6763
+ }, 2e3);
6764
+ }
6765
+ return (_, h) => (u(), d("div", {
6766
+ class: "code-block",
6767
+ onMouseover: c,
6768
+ onMouseleave: h[0] || (h[0] = (C) => l.value = !1)
6769
+ }, [
6770
+ _.language && !l.value ? (u(), d("div", hp, V(_.language), 1)) : w("", !0),
6771
+ l.value ? (u(), d(Ee, { key: 1 }, [
6772
+ v("button", {
6773
+ ref_key: "copyButton",
6774
+ ref: r,
6775
+ class: "copy"
6776
+ }, [
6777
+ (u(), q(mt(i.value), { onClick: m }))
6778
+ ], 512),
6779
+ o.value ? (u(), d("div", {
6780
+ key: 0,
6781
+ ref_key: "copyTooltip",
6782
+ ref: a,
6783
+ id: "copied-tooltip",
6784
+ role: "tooltip"
6785
+ }, [...h[1] || (h[1] = [
6786
+ Ze(" Copied! ", -1),
6787
+ v("div", {
6788
+ id: "arrow",
6789
+ "data-popper-arrow": ""
6790
+ }, null, -1)
6791
+ ])], 512)) : w("", !0)
6792
+ ], 64)) : w("", !0),
6793
+ v("div", { innerHTML: s.value }, null, 8, _p)
6794
+ ], 32));
6795
6795
  }
6796
- }), an = /* @__PURE__ */ H(yp, [["__scopeId", "data-v-4b935a77"]]);
6796
+ }), _i = /* @__PURE__ */ H(yp, [["__scopeId", "data-v-a899f6a1"]]);
6797
6797
  function Kt(e) {
6798
6798
  if (e.type)
6799
6799
  return Array.isArray(e.type) ? e.type : [e.type];
@@ -7301,7 +7301,7 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
7301
7301
  (u(!0), d(Ee, null, Xe($(So)(c).types, (h) => (u(), d(Ee, { key: h }, [
7302
7302
  h.startsWith("#") ? (u(), d("a", {
7303
7303
  key: 0,
7304
- class: "d-flex fw-bold type-box rounded fs-7 px-2 py-1",
7304
+ class: "d-flex fw-bold ref-type-box rounded fs-7 px-2 py-1",
7305
7305
  href: h,
7306
7306
  onClick: s[0] || (s[0] = Ni(() => {
7307
7307
  }, ["stop"]))
@@ -7330,7 +7330,7 @@ const Yg = /* @__PURE__ */ H(Bg, [["render", Kg]]), qg = { class: "border overfl
7330
7330
  } : void 0
7331
7331
  ]), 1032, ["clickable-text", "href", "initially-expanded", "no-url-change"]));
7332
7332
  }
7333
- }), Yt = /* @__PURE__ */ H(nh, [["__scopeId", "data-v-1b987541"]]), lh = { class: "d-flex flex-column gap-6" }, ih = { class: "d-flex flex-column gap-3" }, oh = {
7333
+ }), Yt = /* @__PURE__ */ H(nh, [["__scopeId", "data-v-41e2cdcf"]]), lh = { class: "d-flex flex-column gap-6" }, ih = { class: "d-flex flex-column gap-3" }, oh = {
7334
7334
  key: 0,
7335
7335
  class: "alert alert-info mb-2",
7336
7336
  role: "alert"
@@ -7404,7 +7404,7 @@ type: "${l.pluginType}"
7404
7404
  content: b.schema.properties.description.replace(/ *:(?![ /])/g, ": ")
7405
7405
  }, void 0, !0)
7406
7406
  ])) : w("", !0),
7407
- (u(), q(gi, {
7407
+ (u(), q(_i, {
7408
7408
  highlighter: c.value,
7409
7409
  language: "yaml",
7410
7410
  theme: C,
@@ -7435,7 +7435,7 @@ type: "${l.pluginType}"
7435
7435
  content: y.title.replace(/ *:(?![ /])/g, ": ")
7436
7436
  }, void 0, !0) : w("", !0)
7437
7437
  ]),
7438
- y.code ? (u(), q(gi, {
7438
+ y.code ? (u(), q(_i, {
7439
7439
  key: 0,
7440
7440
  highlighter: c.value,
7441
7441
  language: y.lang ?? "yaml",
@@ -9326,6 +9326,7 @@ const $_ = /* @__PURE__ */ de({
9326
9326
  });
9327
9327
  export {
9328
9328
  Cl as CLUSTER_PREFIX,
9329
+ an as Collapsible,
9329
9330
  T_ as DependenciesNode,
9330
9331
  U as EVENTS,
9331
9332
  $_ as MDCRenderer,