@conboai/storybook.components 0.4.17 → 0.4.18

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.
@@ -13,6 +13,7 @@ interface IMetroMap {
13
13
  svgAttributes?: {
14
14
  [key: string]: string;
15
15
  };
16
+ showFullNames?: boolean;
16
17
  }
17
18
  interface IElement {
18
19
  tag: string;
@@ -32,6 +33,6 @@ interface IElement {
32
33
  children: IElement[];
33
34
  className?: string;
34
35
  }
35
- declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover, svgAttributes }: IMetroMap): React.JSX.Element | null;
36
+ declare function MetroMap({ elements, onSelect, selectedCluster, minor, major, isMultiSelect, onHover, svgAttributes, showFullNames }: IMetroMap): React.JSX.Element | null;
36
37
  declare const _default: React.MemoExoticComponent<typeof MetroMap>;
37
38
  export default _default;
@@ -2428,6 +2428,7 @@ var XF = {
2428
2428
  opacity: 1,
2429
2429
  order: 1,
2430
2430
  orphans: 1,
2431
+ scale: 1,
2431
2432
  tabSize: 1,
2432
2433
  widows: 1,
2433
2434
  zIndex: 1,
@@ -29777,116 +29778,118 @@ var l7 = { exports: {} };
29777
29778
  (function(n, r) {
29778
29779
  e.exports = r();
29779
29780
  })(jr, function() {
29780
- var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d\d/, i = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, l = {}, c = function(p) {
29781
- return (p = +p) + (p > 68 ? 1900 : 2e3);
29782
- }, u = function(p) {
29783
- return function(m) {
29784
- this[p] = +m;
29781
+ var n = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, r = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, o = /\d/, i = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, c = {}, u = function(m) {
29782
+ return (m = +m) + (m > 68 ? 1900 : 2e3);
29783
+ }, d = function(m) {
29784
+ return function(v) {
29785
+ this[m] = +v;
29785
29786
  };
29786
- }, d = [/[+-]\d\d:?(\d\d)?|Z/, function(p) {
29787
- (this.zone || (this.zone = {})).offset = function(m) {
29788
- if (!m || m === "Z") return 0;
29789
- var v = m.match(/([+-]|\d\d)/g), y = 60 * v[1] + (+v[2] || 0);
29790
- return y === 0 ? 0 : v[0] === "+" ? -y : y;
29791
- }(p);
29792
- }], h = function(p) {
29793
- var m = l[p];
29794
- return m && (m.indexOf ? m : m.s.concat(m.f));
29795
- }, f = function(p, m) {
29796
- var v, y = l.meridiem;
29797
- if (y) {
29798
- for (var C = 1; C <= 24; C += 1) if (p.indexOf(y(C, 0, m)) > -1) {
29799
- v = C > 12;
29787
+ }, h = [/[+-]\d\d:?(\d\d)?|Z/, function(m) {
29788
+ (this.zone || (this.zone = {})).offset = function(v) {
29789
+ if (!v || v === "Z") return 0;
29790
+ var y = v.match(/([+-]|\d\d)/g), C = 60 * y[1] + (+y[2] || 0);
29791
+ return C === 0 ? 0 : y[0] === "+" ? -C : C;
29792
+ }(m);
29793
+ }], f = function(m) {
29794
+ var v = c[m];
29795
+ return v && (v.indexOf ? v : v.s.concat(v.f));
29796
+ }, b = function(m, v) {
29797
+ var y, C = c.meridiem;
29798
+ if (C) {
29799
+ for (var E = 1; E <= 24; E += 1) if (m.indexOf(C(E, 0, v)) > -1) {
29800
+ y = E > 12;
29800
29801
  break;
29801
29802
  }
29802
- } else v = p === (m ? "pm" : "PM");
29803
- return v;
29804
- }, b = { A: [s, function(p) {
29805
- this.afternoon = f(p, !1);
29806
- }], a: [s, function(p) {
29807
- this.afternoon = f(p, !0);
29808
- }], S: [/\d/, function(p) {
29809
- this.milliseconds = 100 * +p;
29810
- }], SS: [o, function(p) {
29811
- this.milliseconds = 10 * +p;
29812
- }], SSS: [/\d{3}/, function(p) {
29813
- this.milliseconds = +p;
29814
- }], s: [i, u("seconds")], ss: [i, u("seconds")], m: [i, u("minutes")], mm: [i, u("minutes")], H: [i, u("hours")], h: [i, u("hours")], HH: [i, u("hours")], hh: [i, u("hours")], D: [i, u("day")], DD: [o, u("day")], Do: [s, function(p) {
29815
- var m = l.ordinal, v = p.match(/\d+/);
29816
- if (this.day = v[0], m) for (var y = 1; y <= 31; y += 1) m(y).replace(/\[|\]/g, "") === p && (this.day = y);
29817
- }], M: [i, u("month")], MM: [o, u("month")], MMM: [s, function(p) {
29818
- var m = h("months"), v = (h("monthsShort") || m.map(function(y) {
29819
- return y.slice(0, 3);
29820
- })).indexOf(p) + 1;
29803
+ } else y = m === (v ? "pm" : "PM");
29804
+ return y;
29805
+ }, g = { A: [l, function(m) {
29806
+ this.afternoon = b(m, !1);
29807
+ }], a: [l, function(m) {
29808
+ this.afternoon = b(m, !0);
29809
+ }], Q: [o, function(m) {
29810
+ this.month = 3 * (m - 1) + 1;
29811
+ }], S: [o, function(m) {
29812
+ this.milliseconds = 100 * +m;
29813
+ }], SS: [i, function(m) {
29814
+ this.milliseconds = 10 * +m;
29815
+ }], SSS: [/\d{3}/, function(m) {
29816
+ this.milliseconds = +m;
29817
+ }], s: [s, d("seconds")], ss: [s, d("seconds")], m: [s, d("minutes")], mm: [s, d("minutes")], H: [s, d("hours")], h: [s, d("hours")], HH: [s, d("hours")], hh: [s, d("hours")], D: [s, d("day")], DD: [i, d("day")], Do: [l, function(m) {
29818
+ var v = c.ordinal, y = m.match(/\d+/);
29819
+ if (this.day = y[0], v) for (var C = 1; C <= 31; C += 1) v(C).replace(/\[|\]/g, "") === m && (this.day = C);
29820
+ }], w: [s, d("week")], ww: [i, d("week")], M: [s, d("month")], MM: [i, d("month")], MMM: [l, function(m) {
29821
+ var v = f("months"), y = (f("monthsShort") || v.map(function(C) {
29822
+ return C.slice(0, 3);
29823
+ })).indexOf(m) + 1;
29824
+ if (y < 1) throw new Error();
29825
+ this.month = y % 12 || y;
29826
+ }], MMMM: [l, function(m) {
29827
+ var v = f("months").indexOf(m) + 1;
29821
29828
  if (v < 1) throw new Error();
29822
29829
  this.month = v % 12 || v;
29823
- }], MMMM: [s, function(p) {
29824
- var m = h("months").indexOf(p) + 1;
29825
- if (m < 1) throw new Error();
29826
- this.month = m % 12 || m;
29827
- }], Y: [/[+-]?\d+/, u("year")], YY: [o, function(p) {
29828
- this.year = c(p);
29829
- }], YYYY: [/\d{4}/, u("year")], Z: d, ZZ: d };
29830
- function g(p) {
29831
- var m, v;
29832
- m = p, v = l && l.formats;
29833
- for (var y = (p = m.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(B, D, O) {
29834
- var I = O && O.toUpperCase();
29835
- return D || v[O] || n[O] || v[I].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, x, T) {
29836
- return x || T.slice(1);
29830
+ }], Y: [/[+-]?\d+/, d("year")], YY: [i, function(m) {
29831
+ this.year = u(m);
29832
+ }], YYYY: [/\d{4}/, d("year")], Z: h, ZZ: h };
29833
+ function p(m) {
29834
+ var v, y;
29835
+ v = m, y = c && c.formats;
29836
+ for (var C = (m = v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(D, O, I) {
29837
+ var M = I && I.toUpperCase();
29838
+ return O || y[I] || n[I] || y[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(x, T, R) {
29839
+ return T || R.slice(1);
29837
29840
  });
29838
- })).match(r), C = y.length, E = 0; E < C; E += 1) {
29839
- var w = y[E], k = b[w], L = k && k[0], _ = k && k[1];
29840
- y[E] = _ ? { regex: L, parser: _ } : w.replace(/^\[|\]$/g, "");
29841
- }
29842
- return function(B) {
29843
- for (var D = {}, O = 0, I = 0; O < C; O += 1) {
29844
- var M = y[O];
29845
- if (typeof M == "string") I += M.length;
29841
+ })).match(r), E = C.length, w = 0; w < E; w += 1) {
29842
+ var k = C[w], L = g[k], _ = L && L[0], B = L && L[1];
29843
+ C[w] = B ? { regex: _, parser: B } : k.replace(/^\[|\]$/g, "");
29844
+ }
29845
+ return function(D) {
29846
+ for (var O = {}, I = 0, M = 0; I < E; I += 1) {
29847
+ var x = C[I];
29848
+ if (typeof x == "string") M += x.length;
29846
29849
  else {
29847
- var x = M.regex, T = M.parser, R = B.slice(I), P = x.exec(R)[0];
29848
- T.call(D, P), B = B.replace(P, "");
29850
+ var T = x.regex, R = x.parser, P = D.slice(M), V = T.exec(P)[0];
29851
+ R.call(O, V), D = D.replace(V, "");
29849
29852
  }
29850
29853
  }
29851
- return function(V) {
29852
- var j = V.afternoon;
29853
- if (j !== void 0) {
29854
- var N = V.hours;
29855
- j ? N < 12 && (V.hours += 12) : N === 12 && (V.hours = 0), delete V.afternoon;
29854
+ return function(j) {
29855
+ var N = j.afternoon;
29856
+ if (N !== void 0) {
29857
+ var z = j.hours;
29858
+ N ? z < 12 && (j.hours += 12) : z === 12 && (j.hours = 0), delete j.afternoon;
29856
29859
  }
29857
- }(D), D;
29860
+ }(O), O;
29858
29861
  };
29859
29862
  }
29860
- return function(p, m, v) {
29861
- v.p.customParseFormat = !0, p && p.parseTwoDigitYear && (c = p.parseTwoDigitYear);
29862
- var y = m.prototype, C = y.parse;
29863
- y.parse = function(E) {
29864
- var w = E.date, k = E.utc, L = E.args;
29865
- this.$u = k;
29866
- var _ = L[1];
29867
- if (typeof _ == "string") {
29868
- var B = L[2] === !0, D = L[3] === !0, O = B || D, I = L[2];
29869
- D && (I = L[2]), l = this.$locale(), !B && I && (l = v.Ls[I]), this.$d = function(R, P, V) {
29863
+ return function(m, v, y) {
29864
+ y.p.customParseFormat = !0, m && m.parseTwoDigitYear && (u = m.parseTwoDigitYear);
29865
+ var C = v.prototype, E = C.parse;
29866
+ C.parse = function(w) {
29867
+ var k = w.date, L = w.utc, _ = w.args;
29868
+ this.$u = L;
29869
+ var B = _[1];
29870
+ if (typeof B == "string") {
29871
+ var D = _[2] === !0, O = _[3] === !0, I = D || O, M = _[2];
29872
+ O && (M = _[2]), c = this.$locale(), !D && M && (c = y.Ls[M]), this.$d = function(P, V, j, N) {
29870
29873
  try {
29871
- if (["x", "X"].indexOf(P) > -1) return new Date((P === "X" ? 1e3 : 1) * R);
29872
- var j = g(P)(R), N = j.year, z = j.month, K = j.day, Y = j.hours, ee = j.minutes, ie = j.seconds, J = j.milliseconds, se = j.zone, G = /* @__PURE__ */ new Date(), q = K || (N || z ? 1 : G.getDate()), oe = N || G.getFullYear(), le = 0;
29873
- N && !z || (le = z > 0 ? z - 1 : G.getMonth());
29874
- var W = Y || 0, Z = ee || 0, F = ie || 0, Q = J || 0;
29875
- return se ? new Date(Date.UTC(oe, le, q, W, Z, F, Q + 60 * se.offset * 1e3)) : V ? new Date(Date.UTC(oe, le, q, W, Z, F, Q)) : new Date(oe, le, q, W, Z, F, Q);
29874
+ if (["x", "X"].indexOf(V) > -1) return new Date((V === "X" ? 1e3 : 1) * P);
29875
+ var z = p(V)(P), K = z.year, Y = z.month, ee = z.day, ie = z.hours, J = z.minutes, se = z.seconds, G = z.milliseconds, q = z.zone, oe = z.week, le = /* @__PURE__ */ new Date(), W = ee || (K || Y ? 1 : le.getDate()), Z = K || le.getFullYear(), F = 0;
29876
+ K && !Y || (F = Y > 0 ? Y - 1 : le.getMonth());
29877
+ var Q, X = ie || 0, ne = J || 0, re = se || 0, ae = G || 0;
29878
+ return q ? new Date(Date.UTC(Z, F, W, X, ne, re, ae + 60 * q.offset * 1e3)) : j ? new Date(Date.UTC(Z, F, W, X, ne, re, ae)) : (Q = new Date(Z, F, W, X, ne, re, ae), oe && (Q = N(Q).week(oe).toDate()), Q);
29876
29879
  } catch {
29877
29880
  return /* @__PURE__ */ new Date("");
29878
29881
  }
29879
- }(w, _, k), this.init(), I && I !== !0 && (this.$L = this.locale(I).$L), O && w != this.format(_) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
29880
- } else if (_ instanceof Array) for (var M = _.length, x = 1; x <= M; x += 1) {
29881
- L[1] = _[x - 1];
29882
- var T = v.apply(this, L);
29883
- if (T.isValid()) {
29884
- this.$d = T.$d, this.$L = T.$L, this.init();
29882
+ }(k, B, L, y), this.init(), M && M !== !0 && (this.$L = this.locale(M).$L), I && k != this.format(B) && (this.$d = /* @__PURE__ */ new Date("")), c = {};
29883
+ } else if (B instanceof Array) for (var x = B.length, T = 1; T <= x; T += 1) {
29884
+ _[1] = B[T - 1];
29885
+ var R = y.apply(this, _);
29886
+ if (R.isValid()) {
29887
+ this.$d = R.$d, this.$L = R.$L, this.init();
29885
29888
  break;
29886
29889
  }
29887
- x === M && (this.$d = /* @__PURE__ */ new Date(""));
29890
+ T === x && (this.$d = /* @__PURE__ */ new Date(""));
29888
29891
  }
29889
- else C.call(this, E);
29892
+ else E.call(this, w);
29890
29893
  };
29891
29894
  };
29892
29895
  });
@@ -67505,42 +67508,43 @@ function Gle({
67505
67508
  major: o,
67506
67509
  isMultiSelect: i = !1,
67507
67510
  onHover: s,
67508
- svgAttributes: l
67511
+ svgAttributes: l,
67512
+ showFullNames: c
67509
67513
  }) {
67510
67514
  if (!e) return null;
67511
- const c = (f, b) => {
67512
- if (f && f.includes("_fill")) {
67513
- const g = OE(f, "_fill");
67514
- if (r != null && r.includes(g)) return Ule;
67515
- if (o != null && o.includes(g)) return zle;
67515
+ const u = (b, g) => {
67516
+ if (b && b.includes("_fill")) {
67517
+ const p = OE(b, "_fill");
67518
+ if (r != null && r.includes(p)) return Ule;
67519
+ if (o != null && o.includes(p)) return zle;
67516
67520
  }
67517
- return b;
67518
- }, u = (f) => f ? f.endsWith("_hover") ? "none" : f.includes("_selected") ? (i ? n && $le(f, n) : n && f.startsWith(n)) ? "block" : "none" : "block" : "block", d = (f) => {
67519
- const { id: b, clusterid: g } = f, p = {};
67520
- return g && (p.className = "svg-clickable", p.onClick = () => {
67521
- var v;
67522
- const m = ((v = g.match(/a2_(x\d+)/)) == null ? void 0 : v[1]) || "";
67523
- t && t(g, m);
67524
- }, p.onMouseEnter = () => {
67525
- b && s && s(b.split("_")[0]);
67526
- }), b != null && b.endsWith("_hover") && (p.className = "svg_hover_area"), p;
67527
- }, h = (f) => {
67528
- if (!f) return null;
67529
- if (typeof f == "string") return f;
67530
- const { tag: b, attributes: g, children: p, text: m } = f, { id: v, fill: y } = g, C = c(v, y), E = u(v), w = d(g), L = {
67531
- ...Hle(g),
67532
- ...w,
67533
- ...b === "svg" && l || {},
67534
- fill: C,
67535
- key: v || Math.random(),
67521
+ return g;
67522
+ }, d = (b) => b ? b === "fullname" ? c ? "block" : "none" : b.endsWith("_hover") ? "none" : b.includes("_selected") ? (i ? n && $le(b, n) : n && b.startsWith(n)) ? "block" : "none" : "block" : "block", h = (b) => {
67523
+ const { id: g, clusterid: p } = b, m = {};
67524
+ return p && (m.className = "svg-clickable", m.onClick = () => {
67525
+ var y;
67526
+ const v = ((y = p.match(/a2_(x\d+)/)) == null ? void 0 : y[1]) || "";
67527
+ t && t(p, v);
67528
+ }, m.onMouseEnter = () => {
67529
+ g && s && s(g.split("_")[0]);
67530
+ }), g != null && g.endsWith("_hover") && (m.className = "svg_hover_area"), m;
67531
+ }, f = (b) => {
67532
+ if (!b) return null;
67533
+ if (typeof b == "string") return b;
67534
+ const { tag: g, attributes: p, children: m, text: v } = b, { id: y, fill: C } = p, E = u(y, C), w = d(y), k = h(p), _ = {
67535
+ ...Hle(p),
67536
+ ...k,
67537
+ ...g === "svg" && l || {},
67538
+ fill: E,
67539
+ key: y || Math.random(),
67536
67540
  style: {
67537
67541
  pointerEvents: "none",
67538
- display: E
67542
+ display: w
67539
67543
  }
67540
- }, _ = b === "tspan" && m ? [m] : p.map(h);
67541
- return cl(b, L, _);
67544
+ }, B = g === "tspan" && v ? [v] : m.map(f);
67545
+ return cl(g, _, B);
67542
67546
  };
67543
- return /* @__PURE__ */ H.jsx(H.Fragment, { children: h(e) });
67547
+ return /* @__PURE__ */ H.jsx(H.Fragment, { children: f(e) });
67544
67548
  }
67545
67549
  const _ye = vr(Gle), Wle = (e, t) => ({
67546
67550
  "&.MuiTextField-root": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conboai/storybook.components",
3
- "version": "0.4.17",
3
+ "version": "0.4.18",
4
4
  "main": "dist/storybook.components.mjs",
5
5
  "types": "dist/build/index.d.ts",
6
6
  "files": [