@devtron-labs/devtron-fe-common-lib 1.19.4-pre-8 → 1.20.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/{@code-editor-C76zAfYW.js → @code-editor-3C-BQlAW.js} +7853 -8344
- package/dist/{@common-rjsf-BL7kwKZW.js → @common-rjsf-Bka55zwe.js} +46 -46
- package/dist/{@framer-motion-D-YaCAW-.js → @framer-motion-DZveCoIL.js} +90 -92
- package/dist/{@react-dates-Bo3yT8LF.js → @react-dates-CZ1bNWJM.js} +1 -1
- package/dist/{@react-select-DTi_5fIc.js → @react-select-DS68hCUM.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CuvDiqTo.js → @react-virtualized-sticky-tree-V-8klKy9.js} +1 -1
- package/dist/{@vendor-DMIFbFhR.js → @vendor-3ORIJA0h.js} +17976 -26066
- package/dist/Common/API/reactQueryHooks.d.ts +1 -1
- package/dist/Common/Constants.d.ts +14 -40
- package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +0 -1
- package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +0 -4
- package/dist/Common/Types.d.ts +3 -0
- package/dist/Pages/ResourceBrowser/constants.d.ts +8 -8
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -2
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +5 -21
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +0 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +0 -10
- package/dist/Shared/Components/Illustration/Illustration.d.ts +0 -1
- package/dist/Shared/Components/TreeView/TreeView.component.d.ts +1 -1
- package/dist/Shared/Components/TreeView/TreeViewNodeContent.d.ts +1 -1
- package/dist/Shared/Components/TreeView/constants.d.ts +0 -3
- package/dist/Shared/Components/TreeView/types.d.ts +3 -17
- package/dist/Shared/Components/index.d.ts +0 -2
- package/dist/Shared/Hooks/useUserPreferences/service.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -31
- package/dist/Shared/Providers/MainContextProvider/types.d.ts +0 -9
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +825 -830
- package/package.json +1 -2
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/ApplicationManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/Automation&Enablement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +0 -11
- package/dist/Pages-Devtron-2.0/CostVisibility/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalConfiguration/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/GlobalOverview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/GlobalOverview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/InfrastructureManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SecurityCenter/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/Overview.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/Overview/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/SoftwareReleaseManagement/index.d.ts +0 -1
- package/dist/Pages-Devtron-2.0/index.d.ts +0 -1
- package/dist/Shared/Components/Charts/Chart.component.d.ts +0 -102
- package/dist/Shared/Components/Charts/constants.d.ts +0 -16
- package/dist/Shared/Components/Charts/index.d.ts +0 -2
- package/dist/Shared/Components/Charts/types.d.ts +0 -56
- package/dist/Shared/Components/Charts/utils.d.ts +0 -11
- package/dist/Shared/Components/KeyboardShortcut/KeyboardShortcut.component.d.ts +0 -3
- package/dist/Shared/Components/KeyboardShortcut/index.d.ts +0 -1
- package/dist/Shared/Components/KeyboardShortcut/types.d.ts +0 -4
- package/dist/assets/ic-bot.65f403dd.svg +0 -3
- package/dist/assets/ic-building.2405d07b.svg +0 -3
- package/dist/assets/ic-clipboard.2869fa7d.svg +0 -3
- package/dist/assets/ic-cloud.aa7acc8a.svg +0 -3
- package/dist/assets/ic-coins.2c15f406.svg +0 -3
- package/dist/assets/ic-database-backup.b9e7c558.svg +0 -3
- package/dist/assets/ic-devtron-text.67a413b6.svg +0 -3
- package/dist/assets/ic-files-changed.04e6de3f.svg +0 -3
- package/dist/assets/ic-right-panel-collapse.0ecf8ceb.svg +0 -3
- package/dist/assets/ic-trend-up.5752ef30.svg +0 -3
- package/dist/assets/no-cluster-cost-enabled.038c73db.webp +0 -0
@@ -1,7 +1,7 @@
|
|
1
|
-
import { j as n,
|
1
|
+
import { j as n, au as T, aw as J, av as K } from "./@vendor-3ORIJA0h.js";
|
2
2
|
import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
|
3
3
|
import z, { getDefaultRegistry as Q } from "@rjsf/core";
|
4
|
-
import { T as O, j as F, c as
|
4
|
+
import { T as O, j as F, c as w, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-3C-BQlAW.js";
|
5
5
|
import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
|
6
6
|
import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
|
7
7
|
import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
|
@@ -10,7 +10,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
10
10
|
SELECT: "Please select an option",
|
11
11
|
INPUT: "Please enter an input",
|
12
12
|
OBJECT_KEY: "Please enter a value for the key"
|
13
|
-
}, pe = "Key not available",
|
13
|
+
}, pe = "Key not available", Je = {
|
14
14
|
"ui:submitButtonOptions": {
|
15
15
|
norender: !0
|
16
16
|
}
|
@@ -38,7 +38,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
38
38
|
}
|
39
39
|
) })
|
40
40
|
] });
|
41
|
-
},
|
41
|
+
}, S = ({
|
42
42
|
showLabel: e,
|
43
43
|
label: t,
|
44
44
|
required: s,
|
@@ -58,7 +58,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
58
58
|
r
|
59
59
|
]
|
60
60
|
}
|
61
|
-
),
|
61
|
+
), A = ({ label: e, canAdd: t, onAddClick: s, disabled: r, readonly: a, uiSchema: i, registry: l }) => {
|
62
62
|
const {
|
63
63
|
ButtonTemplates: { AddButton: o }
|
64
64
|
} = l.templates;
|
@@ -97,7 +97,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
97
97
|
return /* @__PURE__ */ n.jsx(h, { ...p, children: _ }, x);
|
98
98
|
}),
|
99
99
|
/* @__PURE__ */ n.jsx(
|
100
|
-
|
100
|
+
A,
|
101
101
|
{
|
102
102
|
label: u,
|
103
103
|
canAdd: e,
|
@@ -108,8 +108,8 @@ import './assets/@common-rjsf.css';const P = {
|
|
108
108
|
registry: c
|
109
109
|
}
|
110
110
|
)
|
111
|
-
] }) : /* @__PURE__ */ n.jsx(
|
112
|
-
|
111
|
+
] }) : /* @__PURE__ */ n.jsx(S, { label: u, required: d, showLabel: !0, id: r.$id, children: /* @__PURE__ */ n.jsx(
|
112
|
+
A,
|
113
113
|
{
|
114
114
|
label: u,
|
115
115
|
canAdd: e,
|
@@ -200,7 +200,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
200
200
|
}
|
201
201
|
),
|
202
202
|
/* @__PURE__ */ n.jsx(
|
203
|
-
|
203
|
+
S,
|
204
204
|
{
|
205
205
|
label: s,
|
206
206
|
showLabel: j,
|
@@ -222,7 +222,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
222
222
|
r
|
223
223
|
] })
|
224
224
|
] }, a)) });
|
225
|
-
},
|
225
|
+
}, ve = (e, t) => {
|
226
226
|
switch (e) {
|
227
227
|
case oe.NewStringDefault:
|
228
228
|
return "";
|
@@ -257,33 +257,33 @@ import './assets/@common-rjsf.css';const P = {
|
|
257
257
|
default:
|
258
258
|
return "null";
|
259
259
|
}
|
260
|
-
},
|
260
|
+
}, v = (e) => {
|
261
261
|
if (!e)
|
262
262
|
return "";
|
263
263
|
const t = e.trim(), r = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
|
264
264
|
return /(\/(([^/~])|(~[01]))*)/g.test(r) ? r : "";
|
265
|
-
},
|
265
|
+
}, I = {
|
266
266
|
value: !1,
|
267
267
|
path: ""
|
268
|
-
},
|
268
|
+
}, Te = (e) => {
|
269
269
|
if (!e)
|
270
270
|
return null;
|
271
271
|
const t = structuredClone(e);
|
272
272
|
return typeof t == "string" ? {
|
273
273
|
value: !0,
|
274
|
-
path:
|
275
|
-
} : typeof t != "object" ? structuredClone(
|
274
|
+
path: v(t)
|
275
|
+
} : typeof t != "object" ? structuredClone(I) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
|
276
276
|
value: t.condition,
|
277
|
-
path:
|
277
|
+
path: v(t.value)
|
278
278
|
} : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
|
279
279
|
value: t.value,
|
280
|
-
path:
|
281
|
-
} : structuredClone(
|
280
|
+
path: v(t.path)
|
281
|
+
} : structuredClone(I);
|
282
282
|
}, H = (e, t, s) => {
|
283
283
|
e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([r, a]) => {
|
284
284
|
H(a, `${t}/${r}`, s);
|
285
|
-
}), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] =
|
286
|
-
},
|
285
|
+
}), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (s[t] = v(e.updatePath ?? t)));
|
286
|
+
}, we = (e) => {
|
287
287
|
const t = {};
|
288
288
|
return H(e, "", t), t;
|
289
289
|
}, M = (e, t, s) => {
|
@@ -299,7 +299,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
299
299
|
return delete a[r], a;
|
300
300
|
}
|
301
301
|
return e;
|
302
|
-
},
|
302
|
+
}, Se = (e, t) => {
|
303
303
|
if (!e || typeof e != "object" || Array.isArray(e))
|
304
304
|
throw new Error("Invalid object");
|
305
305
|
if (!t || !t.startsWith("/"))
|
@@ -315,28 +315,28 @@ import './assets/@common-rjsf.css';const P = {
|
|
315
315
|
return r && (Object.entries(s).forEach(([a, i]) => {
|
316
316
|
if (a === i || !i)
|
317
317
|
return;
|
318
|
-
const l =
|
318
|
+
const l = T({
|
319
319
|
json: t,
|
320
|
-
path:
|
320
|
+
path: w(a),
|
321
321
|
resultType: "value",
|
322
322
|
wrap: !1
|
323
323
|
});
|
324
|
-
l === void 0 ? r =
|
325
|
-
const o =
|
324
|
+
l === void 0 ? r = Se(r, a) : r = F([N(a, l), r]);
|
325
|
+
const o = T({
|
326
326
|
json: e,
|
327
|
-
path:
|
327
|
+
path: w(a),
|
328
328
|
resultType: "value",
|
329
329
|
wrap: !1
|
330
330
|
});
|
331
331
|
o !== void 0 && (r = F([N(i, o), r]));
|
332
|
-
}), t && r ?
|
332
|
+
}), t && r ? J(t, K(t, r), !1, !1).newDocument : r);
|
333
333
|
}, Fe = ({ formData: e, schemaPathToUpdatePathMap: t }) => F([
|
334
334
|
...Object.entries(t).map(([s, r]) => {
|
335
335
|
if (s === r || !r)
|
336
336
|
return {};
|
337
|
-
const a =
|
337
|
+
const a = T({
|
338
338
|
json: e,
|
339
|
-
path:
|
339
|
+
path: w(r),
|
340
340
|
resultType: "value",
|
341
341
|
wrap: !1
|
342
342
|
});
|
@@ -372,11 +372,11 @@ import './assets/@common-rjsf.css';const P = {
|
|
372
372
|
if (!j)
|
373
373
|
return !0;
|
374
374
|
try {
|
375
|
-
const _ =
|
375
|
+
const _ = Te(j);
|
376
376
|
if (!_.path)
|
377
377
|
throw new Error("Empty path property of hidden descriptor field");
|
378
|
-
const y =
|
379
|
-
path:
|
378
|
+
const y = T({
|
379
|
+
path: w(_.path),
|
380
380
|
json: m,
|
381
381
|
resultType: "value",
|
382
382
|
wrap: !1
|
@@ -388,7 +388,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
388
388
|
}).map((p) => p.content);
|
389
389
|
return h ? a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
390
390
|
/* @__PURE__ */ n.jsx(
|
391
|
-
|
391
|
+
S,
|
392
392
|
{
|
393
393
|
label: d,
|
394
394
|
required: o,
|
@@ -399,7 +399,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
399
399
|
}
|
400
400
|
),
|
401
401
|
u
|
402
|
-
] }) : /* @__PURE__ */ n.jsx(
|
402
|
+
] }) : /* @__PURE__ */ n.jsx(S, { label: d, required: o, showLabel: !0, id: s.$id, children: u }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
403
403
|
x,
|
404
404
|
u
|
405
405
|
] });
|
@@ -507,7 +507,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
507
507
|
Y(() => {
|
508
508
|
_(ee(8));
|
509
509
|
}, []);
|
510
|
-
const y = (g) => s ? u.filter((b) => g.some((
|
510
|
+
const y = (g) => s ? u.filter((b) => g.some((W) => R(W, b.value))) : u.find((b) => R(g, b.value));
|
511
511
|
return /* @__PURE__ */ n.jsx(
|
512
512
|
te,
|
513
513
|
{
|
@@ -527,10 +527,10 @@ import './assets/@common-rjsf.css';const P = {
|
|
527
527
|
},
|
528
528
|
j
|
529
529
|
);
|
530
|
-
},
|
530
|
+
}, Re = {
|
531
531
|
CheckboxWidget: Ce,
|
532
532
|
SelectWidget: Ee
|
533
|
-
},
|
533
|
+
}, Ae = {
|
534
534
|
ArrayFieldItemTemplate: fe,
|
535
535
|
ArrayFieldTemplate: he,
|
536
536
|
BaseInputTemplate: xe,
|
@@ -540,9 +540,9 @@ import './assets/@common-rjsf.css';const P = {
|
|
540
540
|
ObjectFieldTemplate: Oe,
|
541
541
|
TitleFieldTemplate: C,
|
542
542
|
WrapIfAdditionalTemplate: Pe
|
543
|
-
},
|
543
|
+
}, Ie = z, De = ne, qe = G((e, t) => {
|
544
544
|
const { schemaPathToUpdatePathMap: s, isUpdatePathKeywordPresent: r } = E(() => {
|
545
|
-
const o =
|
545
|
+
const o = we(e.schema);
|
546
546
|
return {
|
547
547
|
schemaPathToUpdatePathMap: o,
|
548
548
|
isUpdatePathKeywordPresent: Object.entries(o).some(([c, d]) => c !== d)
|
@@ -568,7 +568,7 @@ import './assets/@common-rjsf.css';const P = {
|
|
568
568
|
};
|
569
569
|
return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
570
570
|
/* @__PURE__ */ n.jsx(
|
571
|
-
|
571
|
+
Ie,
|
572
572
|
{
|
573
573
|
noHtml5Validate: !0,
|
574
574
|
showErrorList: !1,
|
@@ -582,12 +582,12 @@ import './assets/@common-rjsf.css';const P = {
|
|
582
582
|
className: `rjsf-form-template__container ${e.className || ""}`,
|
583
583
|
validator: De,
|
584
584
|
templates: {
|
585
|
-
...
|
585
|
+
...Ae,
|
586
586
|
...e.templates
|
587
587
|
},
|
588
588
|
formContext: a,
|
589
|
-
widgets: { ...
|
590
|
-
translateString:
|
589
|
+
widgets: { ...Re, ...e.widgets },
|
590
|
+
translateString: ve,
|
591
591
|
ref: t
|
592
592
|
}
|
593
593
|
),
|
@@ -595,10 +595,10 @@ import './assets/@common-rjsf.css';const P = {
|
|
595
595
|
] });
|
596
596
|
});
|
597
597
|
export {
|
598
|
-
|
598
|
+
Je as H,
|
599
599
|
qe as R,
|
600
600
|
Ke as a,
|
601
|
-
|
602
|
-
|
601
|
+
we as b,
|
602
|
+
v as c,
|
603
603
|
Ve as g
|
604
604
|
};
|