@devtron-labs/devtron-fe-common-lib 1.10.0-beta-1 → 1.10.0-beta-2
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.
@@ -65,14 +65,14 @@ import './assets/@common-rjsf.css';const O = {
|
|
65
65
|
}) => {
|
66
66
|
const u = B(a), f = $("ArrayFieldItemTemplate", c, u), p = u.title || x;
|
67
67
|
return /* @__PURE__ */ n.jsx("fieldset", { className: t, id: r.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
68
|
-
i.map(({ key:
|
68
|
+
i.map(({ key: j, ..._ }, h) => {
|
69
69
|
const m = {
|
70
|
-
...
|
70
|
+
..._.children,
|
71
71
|
props: {
|
72
|
-
...
|
72
|
+
..._.children.props
|
73
73
|
}
|
74
74
|
};
|
75
|
-
return /* @__PURE__ */ n.jsx(f, { ...
|
75
|
+
return /* @__PURE__ */ n.jsx(f, { ..._, children: m }, j);
|
76
76
|
}),
|
77
77
|
/* @__PURE__ */ n.jsx(
|
78
78
|
A,
|
@@ -178,11 +178,11 @@ import './assets/@common-rjsf.css';const O = {
|
|
178
178
|
classNames: x,
|
179
179
|
schema: u,
|
180
180
|
rawDescription: f
|
181
|
-
} = e, p = B(d),
|
181
|
+
} = e, p = B(d), j = $(
|
182
182
|
"WrapIfAdditionalTemplate",
|
183
183
|
c,
|
184
184
|
p
|
185
|
-
),
|
185
|
+
), _ = L in u, h = (o || u.type === "boolean") && !_, m = u.type === "array";
|
186
186
|
return i ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: r }) : (
|
187
187
|
// NOTE: need to override the margins of default rjsf css
|
188
188
|
/* @__PURE__ */ n.jsxs("div", { className: `${x} mb-0`, children: [
|
@@ -206,7 +206,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
206
206
|
id: t,
|
207
207
|
required: l,
|
208
208
|
rawDescription: f,
|
209
|
-
children: /* @__PURE__ */ n.jsx(
|
209
|
+
children: /* @__PURE__ */ n.jsx(j, { ...e, children: r })
|
210
210
|
}
|
211
211
|
),
|
212
212
|
a
|
@@ -366,8 +366,8 @@ import './assets/@common-rjsf.css';const O = {
|
|
366
366
|
uiSchema: x,
|
367
367
|
registry: l
|
368
368
|
}
|
369
|
-
),
|
370
|
-
const h = c.properties?.[
|
369
|
+
), j = a.filter((_) => {
|
370
|
+
const h = c.properties?.[_.name]?.hidden;
|
371
371
|
if (!h)
|
372
372
|
return !0;
|
373
373
|
try {
|
@@ -384,7 +384,7 @@ import './assets/@common-rjsf.css';const O = {
|
|
384
384
|
} catch {
|
385
385
|
return !0;
|
386
386
|
}
|
387
|
-
}).
|
387
|
+
}).map((_) => _.content);
|
388
388
|
return f ? a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
389
389
|
/* @__PURE__ */ n.jsx(
|
390
390
|
T,
|
@@ -394,12 +394,12 @@ import './assets/@common-rjsf.css';const O = {
|
|
394
394
|
showLabel: !0,
|
395
395
|
id: s.$id,
|
396
396
|
shouldAlignCenter: !1,
|
397
|
-
children: /* @__PURE__ */ n.jsx("div", { children:
|
397
|
+
children: /* @__PURE__ */ n.jsx("div", { children: j })
|
398
398
|
}
|
399
399
|
),
|
400
400
|
p
|
401
401
|
] }) : /* @__PURE__ */ n.jsx(T, { label: d, required: o, showLabel: !0, id: s.$id, children: p }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
402
|
-
|
402
|
+
j,
|
403
403
|
p
|
404
404
|
] });
|
405
405
|
}, we = (e) => {
|
@@ -473,8 +473,8 @@ import './assets/@common-rjsf.css';const O = {
|
|
473
473
|
onFocus: c
|
474
474
|
}) => {
|
475
475
|
const d = (u, f) => {
|
476
|
-
const { id: p, checked:
|
477
|
-
f === "blur" ? o(p,
|
476
|
+
const { id: p, checked: j } = u.target;
|
477
|
+
f === "blur" ? o(p, j) : f === "focus" && c(p, j);
|
478
478
|
}, x = z(s) ? !1 : s;
|
479
479
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
480
480
|
/* @__PURE__ */ n.jsx(
|
@@ -507,18 +507,18 @@ import './assets/@common-rjsf.css';const O = {
|
|
507
507
|
onBlur: d,
|
508
508
|
onFocus: x,
|
509
509
|
placeholder: u
|
510
|
-
} = e, { enumOptions: f = [] } = r, p = s ? [] : "",
|
510
|
+
} = e, { enumOptions: f = [] } = r, p = s ? [] : "", j = (h) => {
|
511
511
|
c(s ? h.map((m) => m.value) : h.value);
|
512
|
-
},
|
512
|
+
}, _ = (h) => s ? f.filter((m) => h.some((g) => E(g, m.value))) : f.find((m) => E(h, m.value));
|
513
513
|
return /* @__PURE__ */ n.jsx(
|
514
514
|
Q,
|
515
515
|
{
|
516
516
|
id: t,
|
517
517
|
name: t,
|
518
518
|
isMulti: s,
|
519
|
-
value: typeof a > "u" ? p :
|
519
|
+
value: typeof a > "u" ? p : _(a),
|
520
520
|
autoFocus: o,
|
521
|
-
onChange:
|
521
|
+
onChange: j,
|
522
522
|
options: f,
|
523
523
|
onBlur: () => d(t, a),
|
524
524
|
onFocus: () => x(t, a),
|
package/dist/index.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { kB as s, a2 as t, d_ as i, eo as o, lu as r, lj as n, f5 as l, ad as T, l3 as g, Y as S, fd as p, lf as d, kZ as E, aO as _, fx as c, cO as I, aM as A, aN as u, kt as C, ir as D, fI as O, mj as m, lL as y, lh as R, fe as f, ff as P, iZ as N, fW as L, kQ as M, ki as h, cB as F, az as U, aA as b, fs as B, h5 as v, fR as k, lz as V, dN as G, dV as j, dQ as H, dY as K, dK as Y, dW as W, dZ as w, dP as x, dO as X, e7 as z, dU as q, dM as Z, fl as J, fp as Q, j9 as $, ic as aa, B as ea, g as sa, h as ta, dJ as ia, df as oa, dy as ra, dd as na, de as la, di as Ta, dA as ga, dz as Sa, dF as pa, dh as da, dI as Ea, dg as _a, dB as ca, dD as Ia, dC as Aa, dk as ua, V as Ca, dE as Da, iJ as Oa, fg as ma, fj as ya, fm as Ra, fi as fa, i2 as Pa, i5 as Na, i4 as La, i3 as Ma, fJ as ha, fK as Fa, hU as Ua, fU as ba, aG as Ba, aF as va, aE as ka, ko as Va, aw as Ga, lq as ja, au as Ha, cy as Ka, kn as Ya, kE as Wa, fq as wa, lS as xa, lO as Xa, e4 as za, e5 as qa, lT as Za, lU as Ja, ll as Qa, ln as $a, lm as ae, kz as ee, ls as se, eT as te, iF as ie, iC as oe, lG as re, eq as ne, dT as le, ig as Te, q as ge, cm as Se, gK as pe, b_ as de, C as Ee, et as _e, ev as ce, j6 as Ie, cZ as Ae, cY as ue, hK as Ce, ht as De, h3 as Oe, fc as me, eJ as ye, lk as Re, cu as fe, aQ as Pe, ji as Ne, eO as Le, is as Me, lP as he, eR as Fe, ky as Ue, bT as be, ib as Be, ii as ve, ih as ke, cD as Ve, d9 as Ge, ja as je, j3 as He, c2 as Ke, h1 as Ye, h0 as We, aj as we, l2 as xe, lE as Xe, a0 as ze, ai as qe, x as Ze, lt as Je, hl as Qe, hj as $e, hk as as, dL as es, lD as ss, l4 as ts, J as is, gU as os, d$ as rs, e0 as ns, er as ls, hG as Ts, lb as gs, ld as Ss, a3 as ps, ip as ds, lA as Es, ei as _s, t as cs, w as Is, y as As, s as us, v as Cs, ep as Ds, eF as Os, gQ as ms, D as ys, kk as Rs, da as fs, lH as Ps, id as Ns, kv as Ls, aI as Ms, hu as hs, hv as Fs, fX as Us, gJ as bs, gI as Bs, ax as vs, bS as ks, l6 as Vs, i_ as Gs, fV as js, l7 as Hs, bG as Ks, hH as Ys, r as Ws, jd as ws, cN as xs, bU as Xs, bV as zs, ij as qs, lN as Zs, lM as Js, cR as Qs, cS as $s, cQ as at, bH as et, bt as st, eK as tt, ik as it, il as ot, la as rt, lJ as nt, N as lt, L as Tt, lF as gt, ac as St, l0 as pt, lc as dt, hJ as Et, fA as _t, ia as ct, kC as It, lR as At, kg as ut, fL as Ct, l8 as Dt, gN as Ot, E as mt, f as yt, fu as Rt, F as ft, a6 as Pt, fP as Nt, fO as Lt, f$ as Mt, f4 as ht, cw as Ft, iq as Ut, fw as bt, aJ as Bt, ho as vt, aB as kt, jc as Vt, iH as Gt, ie as jt, ek as Ht, eG as Kt, eN as Yt, cV as Wt, G as wt, m as xt, iU as Xt, iT as zt, fy as qt, eS as Zt, gr as Jt, gM as Qt, ku as $t, j2 as ai, an as ei, iS as si, o as ti, f9 as ii, fC as oi, f_ as ri, H as ni, k$ as li, e2 as Ti, e1 as gi, e3 as Si, lK as pi, f1 as di, f2 as Ei, am as _i, iW as ci, h7 as Ii, fr as Ai, ft as ui, h4 as Ci, aD as Di, kN as Oi, kP as mi, cF as yi, cE as Ri, av as fi, fN as Pi, md as Ni, j5 as Li, I as Mi, fz as hi, cA as Fi, eu as Ui, kK as bi, jf as Bi, i8 as vi, i6 as ki, li as Vi, K as Gi, hm as ji, ah as Hi, kH as Ki, jg as Yi, kI as Wi, f8 as wi, gp as xi, jh as Xi, fY as zi, lg as qi, jk as Zi, ag as Ji, Z as Qi, cW as $i, jj as ao, a1 as eo, X as so, g_ as to, gT as io, kM as oo, ay as ro, cU as no, aC as lo, h6 as To, fa as go, bI as So, fM as po, l1 as Eo, km as _o, gR as co, ct as Io, fb as Ao, c0 as uo, bY as Co, bZ as Do, b$ as Oo, es as mo, dR as yo, ej as Ro, g5 as fo, dG as Po, g4 as No, g3 as Lo, kh as Mo, i9 as ho, lv as Fo, bW as Uo, eQ as bo, eD as Bo, z as vo, lo as ko, af as Vo, dS as Go, fB as jo, cT as Ho, j4 as Ko, l5 as Yo, jb as Wo, eI as wo, hc as xo, aK as Xo, hb as zo, ha as qo, h8 as Zo, cC as Jo, h9 as Qo, cr as $o, kr as ar, P as er, bF as sr, kw as tr, bM as ir, eP as or, lx as rr, j1 as nr, A as lr, k as Tr, l as gr, aa as Sr, cv as pr, cq as dr, j0 as Er, kj as _r, eZ as cr, R as Ir, W as Ar, bR as ur, kp as Cr, kq as Dr, kJ as Or, lI as mr, kA as yr, S as Rr, jz as fr, iD as Pr, _ as Nr, fn as Lr, ak as Mr, ae as hr, lB as Fr, aq as Ur, j8 as br, eX as Br, k_ as vr, g6 as kr, fv as Vr, ef as Gr, cs as jr, gq as Hr, cn as Kr, i0 as Yr, i1 as Wr, hN as wr, cX as xr, d0 as Xr, c$ as zr, p as qr, fk as Zr, lp as Jr, hn as Qr, hq as $r, hr as an, ml as en, ar as sn, as as tn, hR as on, kl as rn, hs as nn, fQ as ln, gP as Tn, bX as gn, co as Sn, $ as pn, c4 as dn, g7 as En, iY as _n, gL as cn, i$ as In, n as An, f3 as un, ly as Cn, dX as Dn, kT as On, l9 as mn, a8 as yn, g$ as Rn, M as fn, O as Pn, c_ as Nn, lr as Ln, hI as Mn, bP as hn, bQ as Fn, im as Un, iO as bn, iP as Bn, lQ as vn, iM as kn, kU as Vn, iN as Gn, gS as jn, bL as Hn, at as Kn, m3 as Yn, m4 as Wn, m5 as wn, a as xn, iI as Xn, dH as zn, T as qn, aH as Zn, fT as Jn, fS as Qn, kF as $n, Q as al, ap as el, lC as sl, kx as tl, U as il, e6 as ol, iQ as rl, iR as nl, cL as ll, kX as Tl, ea as gl, ed as Sl, ec as pl, eb as dl, e8 as El, lw as _l, al as cl, eH as Il, cx as Al, kG as ul, iL as Cl, bJ as Dl, bK as Ol, hL as ml, a5 as yl, cz as Rl, ks as fl, g2 as Pl, g0 as Nl, aL as Ll, iK as Ml, g1 as hl, kD as Fl, bn as Ul, ab as bl, d7 as Bl, jV as vl, bj as kl, a4 as Vl, bv as Gl, gu as jl, b as Hl, gc as Kl, gd as Yl, bl as Wl, k9 as wl, b7 as xl, kf as Xl, b5 as zl, d as ql, bo as Zl, iE as Jl, iG as Ql, eg as $l, c as aT, iw as eT, iz as sT, b8 as tT, eA as iT, dn as oT, cc as rT, ex as nT, en as lT, gZ as TT, bd as gT, bk as ST, jW as pT, e as dT, ez as ET, ey as _T, dc as cT, kd as IT, hD as AT, hF as uT, hC as CT, hE as DT, jA as OT, eB as mT, jF as yT, cb as RT, cd as fT, bi as PT, ca as NT, d4 as LT, eW as MT, el as hT, aW as FT, lX as UT, hz as bT, gG as BT, lW as vT, hf as kT, by as VT, dx as GT, dm as jT, dw as HT, dv as KT, du as YT, lV as WT, hW as wT, ke as xT, cg as XT, eC as zT, f6 as qT, lY as ZT, hZ as JT, kR as QT, ix as $T, it as ag, iB as eg, iy as sg, b1 as tg, f7 as ig, fD as og, ce as rg, gY as ng, k3 as lg, hA as Tg, gm as gg, gh as Sg, gg as pg, eL as dg, eE as Eg, ge as _g, iX as cg, hw as Ig, ds as Ag, hx as ug, iA as Cg, aX as Dg, io as Og, m0 as mg, cf as yg, jZ as Rg, be as fg, ao as Pg, gD as Ng, b3 as Lg, ck as Mg, jK as hg, cl as Fg, bC as Ug, eh as bg, k2 as Bg, bD as vg, fH as kg, gA as Vg, gz as Gg, bA as jg, fo as Hg, i7 as Kg, k1 as Yg, k0 as Wg, jJ as wg, d6 as xg, fG as Xg, ew as zg, em as qg, jS as Zg, gx as Jg, k6 as Qg, gf as $g, go as aS, ci as eS, gE as sS, k5 as tS, a7 as iS, hg as oS, m6 as rS, gt as nS, dr as lS, he as TS, hd as gS, mc as SS, mb as pS, l_ as dS, hT as ES, aV as _S, bg as cS, eM as IS, lZ as AS, ch as uS, bz as CS, iv as DS, hY as OS, hV as mS, hO as yS, h$ as RS, hp as fS, hS as PS, hM as NS, gw as LS, bB as MS, gF as hS, h_ as FS, bE as US, gb as bS, c3 as BS, m7 as vS, kS, jY as VS, a9 as GS, gV as jS, hX as HS, hP as KS, dt as YS, ga as WS, gn as wS, gs as xS, gH as XS, k8 as zS, hi as qS, bb as ZS, e9 as JS, ee as QS, m1 as $S, c5 as ap, k7 as ep, jO as sp, cj as tp, gB as ip, gC as op, ma as rp, m8 as np, k4 as lp, cP as Tp, jR as gp, fE as Sp, d8 as pp, bm as dp, mk as Ep, b2 as _p, eV as cp, eU as Ip, jG as Ap, iV as up, kb as Cp, j7 as Dp, eY as Op, i as mp, jX as yp, j as Rp, bc as fp, bu as Pp, hy as Np, c1 as Lp, aY as Mp, aZ as hp, jM as Fp, je as Up, hQ as bp, dq as Bp, hh as vp, c8 as kp, d3 as Vp, d1 as Gp, bh as jp, bw as Hp, gk as Kp, gi as Yp, gl as Wp, gj as wp, jH as xp, aT as Xp, jI as zp, c9 as qp, ba as Zp, jU as Jp, d2 as Qp, h2 as $p, bf as ad, m9 as ed, a_ as sd, hB as td, gO as id, iu as od, gv as rd, kc as nd, jT as ld, a$ as Td, jn as gd, j$ as Sd, ka as pd, j_ as dd, c7 as Ed, gy as _d, l$ as cd, db as Id, fF as Ad, c6 as ud, bp as Cd, aP as Dd, aR as Od, fZ as md, le as yd, g9 as Rd, aS as fd, jL as Pd, g8 as Nd, bx as Ld, d5 as Md, e$ as hd, gX as Fd, gW as Ud, m2 as bd, e_ as Bd, f0 as vd, dp as kd, b9 as Vd, u as Gd, dj as jd, dl as Hd, fh as Kd, cH as Yd, mg as Wd, b0 as wd, mh as xd, mf as Xd, cG as zd, kO as qd, jQ as Zd, bq as Jd, b6 as Qd, bs as $d, kL as aE, me as eE, cK as sE, cp as tE, br as iE, b4 as oE, cM as rE, mi as nE, kV as lE, aU as TE, cJ as gE, kW as SE, cI as pE, jD as dE, jB as EE, jp as _E, jy as cE, jv as IE, jC as AE, jm as uE, jl as CE, jo as DE, ju as OE, js as mE, jr as yE, jx as RE, jq as fE, bN as PE, bO as NE, jt as LE, jw as ME, jE as hE, jN as FE, kY as UE, jP as bE } from "./@code-editor-DRt5IoO7.js";
|
2
|
-
import { H as vE, R as kE, c as VE, g as GE, a as jE, b as HE } from "./@common-rjsf-
|
2
|
+
import { H as vE, R as kE, c as VE, g as GE, a as jE, b as HE } from "./@common-rjsf-JkVClwt2.js";
|
3
3
|
export {
|
4
4
|
s as ACCESS_TYPE_MAP,
|
5
5
|
t as ACTION_STATE,
|