@devtron-labs/devtron-fe-common-lib 1.22.8-beta-13 → 1.22.8-beta-14

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.
Files changed (45) hide show
  1. package/dist/{@code-editor-DvNxRZv9.js → @code-editor-BF03LosD.js} +4693 -4716
  2. package/dist/{@common-rjsf-DBVjyGP9.js → @common-rjsf-Dj7e6o3g.js} +181 -181
  3. package/dist/@framer-motion-DFkGgMz7.js +3606 -0
  4. package/dist/{@react-select-VU7Fmo9p.js → @react-select-BDsfVQrM.js} +1 -1
  5. package/dist/{@react-virtualized-sticky-tree-CAu3_TV1.js → @react-virtualized-sticky-tree-ByqEaVzu.js} +3 -3
  6. package/dist/{@vendor-WBEJ0Pz6.js → @vendor-BgJdIb1H.js} +131407 -179328
  7. package/dist/Common/API/reactQueryHooks.d.ts +1 -1
  8. package/dist/Common/Checkbox/Checkbox.d.ts +1 -1
  9. package/dist/Common/DevtronProgressing/DevtronProgressing.d.ts +0 -1
  10. package/dist/Common/EmptyState/GenericEmptyState.d.ts +0 -1
  11. package/dist/Common/GenericDescription/types.d.ts +0 -1
  12. package/dist/Common/Progressing.d.ts +0 -1
  13. package/dist/Common/RJSF/Form.d.ts +2 -1
  14. package/dist/Common/Types.d.ts +3 -4
  15. package/dist/Pages/ResourceBrowser/types.d.ts +1 -1
  16. package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +1 -1
  17. package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +13 -28
  18. package/dist/Shared/Components/BulkSelection/BulkSelection.d.ts +1 -1
  19. package/dist/Shared/Components/BulkSelection/types.d.ts +0 -2
  20. package/dist/Shared/Components/Button/Button.component.d.ts +388 -2
  21. package/dist/Shared/Components/CICDHistory/BuildAndTaskSummaryTooltipCard.d.ts +0 -1
  22. package/dist/Shared/Components/CICDHistory/GitTriggerList.d.ts +0 -1
  23. package/dist/Shared/Components/CICDHistory/History.components.d.ts +0 -1
  24. package/dist/Shared/Components/CICDHistory/WorkerStatus.d.ts +0 -1
  25. package/dist/Shared/Components/CICDHistory/types.d.ts +1 -1
  26. package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -1
  27. package/dist/Shared/Components/CodeEditor/types.d.ts +1 -1
  28. package/dist/Shared/Components/ExportToCsv/types.d.ts +0 -1
  29. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +1 -1
  30. package/dist/Shared/Components/Header/types.d.ts +0 -1
  31. package/dist/Shared/Components/ImageWithFallback/types.d.ts +1 -1
  32. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
  33. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
  34. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +0 -1
  35. package/dist/Shared/Components/TreeView/types.d.ts +1 -1
  36. package/dist/Shared/Helpers.d.ts +1 -1
  37. package/dist/Shared/Hooks/useForm/useForm.d.ts +1 -1
  38. package/dist/Shared/Providers/MainContextProvider/types.d.ts +1 -1
  39. package/dist/Shared/Services/ToastManager/toastManager.service.d.ts +80 -0
  40. package/dist/assets/@code-editor.css +1 -1
  41. package/dist/assets/@vendor.css +1 -1
  42. package/dist/index.d.ts +13 -15
  43. package/dist/index.js +4 -4
  44. package/package.json +14 -19
  45. package/dist/@framer-motion-wap8UOQD.js +0 -4959
@@ -1,20 +1,20 @@
1
- import { j as n, bV as D, bW as W, bX as J, bY as V, bZ as B, b_ as K, bw as v, b$ as Y, c0 as q, bt as G, bs as z, c1 as X, c2 as Z, Y as Q, c3 as ee } from "./@vendor-WBEJ0Pz6.js";
2
- import te, { useState as ne, useEffect as se, useMemo as E } from "react";
3
- import { T as O, j as w, c as T, b as N, S as ae, i as re, g as oe, a as le, d as R, e as ie } from "./@code-editor-DvNxRZv9.js";
4
- import { ReactComponent as ce } from "./assets/ic-add.cfaa779b.svg";
5
- import { ReactComponent as de } from "./assets/ic-warning.ecf7ff97.svg";
6
- import { ReactComponent as ue } from "./assets/ic-cross.01e03666.svg";
1
+ import { ac as n, ch as $, ci as W, cj as J, ck as K, cl as B, cm as V, bU as v, cn as q, co as Y, bR as G, bQ as z, cp as Q, cq as X, al as Z, cr as ee } from "./@vendor-BgJdIb1H.js";
2
+ import te, { useState as ne, useEffect as se, forwardRef as ae, useMemo as E } from "react";
3
+ import { T as O, j as w, c as T, b as N, S as re, i as oe, g as le, a as ie, d as R, e as ce } from "./@code-editor-BF03LosD.js";
4
+ import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
5
+ import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
6
+ import { ReactComponent as me } from "./assets/ic-cross.01e03666.svg";
7
7
  import './assets/@common-rjsf.css';const F = {
8
8
  SELECT: "Please select an option",
9
9
  INPUT: "Please enter an input",
10
10
  OBJECT_KEY: "Please enter a value for the key"
11
- }, me = "Key not available", ke = {
11
+ }, pe = "Key not available", He = {
12
12
  "ui:submitButtonOptions": {
13
13
  norender: !0
14
14
  }
15
- }, L = "rjsf-form-select-portal-target", pe = ({
16
- children: t,
17
- disabled: e,
15
+ }, L = "rjsf-form-select-portal-target", fe = ({
16
+ children: e,
17
+ disabled: t,
18
18
  hasToolbar: a,
19
19
  hasRemove: s,
20
20
  onRemoveItem: r,
@@ -24,11 +24,11 @@ import './assets/@common-rjsf.css';const F = {
24
24
  }) => {
25
25
  const { RemoveButton: c } = o.templates.ButtonTemplates;
26
26
  return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
27
- t,
27
+ e,
28
28
  /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: a && s && /* @__PURE__ */ n.jsx(
29
29
  c,
30
30
  {
31
- disabled: e || i,
31
+ disabled: t || i,
32
32
  onClick: r,
33
33
  uiSchema: l,
34
34
  registry: o
@@ -36,8 +36,8 @@ import './assets/@common-rjsf.css';const F = {
36
36
  ) })
37
37
  ] });
38
38
  }, S = ({
39
- showLabel: t,
40
- label: e,
39
+ showLabel: e,
40
+ label: t,
41
41
  required: a,
42
42
  children: s,
43
43
  id: r,
@@ -46,32 +46,32 @@ import './assets/@common-rjsf.css';const F = {
46
46
  }) => /* @__PURE__ */ n.jsxs(
47
47
  "div",
48
48
  {
49
- className: t ? `display-grid dc__gap-12 rjsf-form-template__field ${o ? "" : "rjsf-form-template__field--align-top"}` : "",
49
+ className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${o ? "" : "rjsf-form-template__field--align-top"}` : "",
50
50
  children: [
51
- t && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
52
- /* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!i, content: i, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${i ? "dc__underline-dotted" : ""}`, children: e || me }) }),
51
+ e && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
52
+ /* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!i, content: i, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${i ? "dc__underline-dotted" : ""}`, children: t || pe }) }),
53
53
  a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
54
54
  ] }),
55
55
  s
56
56
  ]
57
57
  }
58
- ), A = ({ label: t, canAdd: e, onAddClick: a, disabled: s, readonly: r, uiSchema: i, registry: o }) => {
58
+ ), A = ({ label: e, canAdd: t, onAddClick: a, disabled: s, readonly: r, uiSchema: i, registry: o }) => {
59
59
  const {
60
60
  ButtonTemplates: { AddButton: l }
61
61
  } = o.templates;
62
- return e && /* @__PURE__ */ n.jsx(
62
+ return t && /* @__PURE__ */ n.jsx(
63
63
  l,
64
64
  {
65
- label: t,
65
+ label: e,
66
66
  onClick: a,
67
67
  disabled: s || r,
68
68
  uiSchema: i,
69
69
  registry: o
70
70
  }
71
71
  );
72
- }, fe = ({
73
- canAdd: t,
74
- className: e,
72
+ }, he = ({
73
+ canAdd: e,
74
+ className: t,
75
75
  disabled: a,
76
76
  fieldPathId: s,
77
77
  uiSchema: r,
@@ -82,14 +82,14 @@ import './assets/@common-rjsf.css';const F = {
82
82
  required: d,
83
83
  title: p
84
84
  }) => {
85
- const u = D(r).title || p;
86
- return /* @__PURE__ */ n.jsx("fieldset", { className: e, id: s.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
85
+ const u = $(r).title || p;
86
+ return /* @__PURE__ */ n.jsx("fieldset", { className: t, id: s.$id, children: i.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
87
87
  i,
88
88
  /* @__PURE__ */ n.jsx(
89
89
  A,
90
90
  {
91
91
  label: u,
92
- canAdd: t,
92
+ canAdd: e,
93
93
  onAddClick: o,
94
94
  disabled: a,
95
95
  readonly: l,
@@ -101,7 +101,7 @@ import './assets/@common-rjsf.css';const F = {
101
101
  A,
102
102
  {
103
103
  label: u,
104
- canAdd: t,
104
+ canAdd: e,
105
105
  onAddClick: o,
106
106
  disabled: a,
107
107
  readonly: l,
@@ -110,26 +110,26 @@ import './assets/@common-rjsf.css';const F = {
110
110
  }
111
111
  ) }) });
112
112
  }, {
113
- templates: { BaseInputTemplate: he }
114
- } = W(), _e = ({ placeholder: t, ...e }) => {
115
- const { schema: a } = e;
113
+ templates: { BaseInputTemplate: _e }
114
+ } = W(), xe = ({ placeholder: e, ...t }) => {
115
+ const { schema: a } = t;
116
116
  return /* @__PURE__ */ n.jsx(
117
- he,
117
+ _e,
118
118
  {
119
- placeholder: a.placeholder || t || F.INPUT,
120
- ...e,
119
+ placeholder: a.placeholder || e || F.INPUT,
120
+ ...t,
121
121
  className: "form__input cn-9 fs-13 lh-20 fw-4"
122
122
  }
123
123
  );
124
124
  }, U = ({
125
- label: t,
126
- icon: e,
125
+ label: e,
126
+ icon: t,
127
127
  iconType: a,
128
128
  registry: s,
129
129
  uiSchema: r,
130
130
  ...i
131
131
  }) => {
132
- const o = `Add ${t}`;
132
+ const o = `Add ${e}`;
133
133
  return /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-start", children: /* @__PURE__ */ n.jsxs(
134
134
  "button",
135
135
  {
@@ -138,25 +138,25 @@ import './assets/@common-rjsf.css';const F = {
138
138
  className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor dc__mxw-250",
139
139
  title: "Add",
140
140
  children: [
141
- /* @__PURE__ */ n.jsx(ce, { className: "icon-dim-16 fcb-5" }),
141
+ /* @__PURE__ */ n.jsx(de, { className: "icon-dim-16 fcb-5" }),
142
142
  /* @__PURE__ */ n.jsx(O, { placement: "right", content: o, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: o }) })
143
143
  ]
144
144
  }
145
145
  ) });
146
- }, xe = ({ icon: t, iconType: e, registry: a, uiSchema: s, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(ue, { className: "icon-dim-16 fcn-6" }) }), je = ({ uiSchema: t }) => {
147
- const { submitText: e, norender: a, props: s = {} } = J(t);
148
- return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...s, className: `cta ${s.className || ""}`, children: e }) });
146
+ }, je = ({ icon: e, iconType: t, registry: a, uiSchema: s, ...r }) => /* @__PURE__ */ n.jsx("button", { ...r, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ n.jsx(me, { className: "icon-dim-16 fcn-6" }) }), ge = ({ uiSchema: e }) => {
147
+ const { submitText: t, norender: a, props: s = {} } = J(e);
148
+ return a ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...s, className: `cta ${s.className || ""}`, children: t }) });
149
149
  }, P = ({
150
- id: t,
151
- title: e,
150
+ id: e,
151
+ title: t,
152
152
  required: a,
153
153
  description: s
154
- }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: t, children: [
155
- /* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!s, content: s, children: /* @__PURE__ */ n.jsx("span", { className: `${s ? "dc__underline-dotted" : ""}`, children: e }) }),
154
+ }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: e, children: [
155
+ /* @__PURE__ */ n.jsx(O, { alwaysShowTippyOnHover: !!s, content: s, children: /* @__PURE__ */ n.jsx("span", { className: `${s ? "dc__underline-dotted" : ""}`, children: t }) }),
156
156
  a && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
157
- ] }), be = (t) => {
157
+ ] }), be = (e) => {
158
158
  const {
159
- id: e,
159
+ id: t,
160
160
  label: a,
161
161
  children: s,
162
162
  errors: r,
@@ -168,7 +168,7 @@ import './assets/@common-rjsf.css';const F = {
168
168
  classNames: p,
169
169
  schema: m,
170
170
  rawDescription: u
171
- } = t, f = D(d), h = V(
171
+ } = e, f = $(d), h = K(
172
172
  "WrapIfAdditionalTemplate",
173
173
  c,
174
174
  f
@@ -179,7 +179,7 @@ import './assets/@common-rjsf.css';const F = {
179
179
  j && /* @__PURE__ */ n.jsx(
180
180
  P,
181
181
  {
182
- id: e,
182
+ id: t,
183
183
  title: a,
184
184
  required: o,
185
185
  registry: c,
@@ -193,148 +193,148 @@ import './assets/@common-rjsf.css';const F = {
193
193
  {
194
194
  label: a,
195
195
  showLabel: _,
196
- id: e,
196
+ id: t,
197
197
  required: o,
198
198
  rawDescription: u,
199
- children: /* @__PURE__ */ n.jsx(h, { ...t, children: s })
199
+ children: /* @__PURE__ */ n.jsx(h, { ...e, children: s })
200
200
  }
201
201
  ),
202
202
  r
203
203
  ] })
204
204
  );
205
- }, ge = ({ errors: t = [], fieldPathId: e }) => {
206
- const a = K(e);
207
- return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: t.filter((s) => !!s).map((s, r) => /* @__PURE__ */ n.jsxs(te.Fragment, { children: [
205
+ }, ye = ({ errors: e = [], fieldPathId: t }) => {
206
+ const a = V(t);
207
+ return e.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: a, children: e.filter((s) => !!s).map((s, r) => /* @__PURE__ */ n.jsxs(te.Fragment, { children: [
208
208
  /* @__PURE__ */ n.jsx("span", {}),
209
209
  /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
210
- /* @__PURE__ */ n.jsx(de, { className: "form__icon form__icon--error" }),
210
+ /* @__PURE__ */ n.jsx(ue, { className: "form__icon form__icon--error" }),
211
211
  s
212
212
  ] })
213
213
  ] }, r)) });
214
- }, ye = (t, e) => {
215
- switch (t) {
216
- case q.NewStringDefault:
214
+ }, ve = (e, t) => {
215
+ switch (e) {
216
+ case Y.NewStringDefault:
217
217
  return "";
218
218
  default:
219
- return Y(t, e);
219
+ return q(e, t);
220
220
  }
221
- }, He = (t) => {
221
+ }, Me = (e) => {
222
222
  try {
223
- const e = new URL(t).origin === window.location.origin;
223
+ const t = new URL(e).origin === window.location.origin;
224
224
  return {
225
- href: t,
226
- target: e ? "_self" : "_blank",
227
- rel: e ? void 0 : "external noreferrer",
228
- url: t
225
+ href: e,
226
+ target: t ? "_self" : "_blank",
227
+ rel: t ? void 0 : "external noreferrer",
228
+ url: e
229
229
  };
230
230
  } catch {
231
231
  return {
232
- href: t,
232
+ href: e,
233
233
  target: "_blank",
234
- url: `${t} (Invalid URL)`
234
+ url: `${e} (Invalid URL)`
235
235
  };
236
236
  }
237
- }, Me = (t) => {
238
- const e = typeof t;
239
- switch (e) {
237
+ }, We = (e) => {
238
+ const t = typeof e;
239
+ switch (t) {
240
240
  case "boolean":
241
241
  case "string":
242
242
  case "number":
243
- return e;
243
+ return t;
244
244
  case "object":
245
- return Array.isArray(t) ? "array" : t === null ? "null" : e;
245
+ return Array.isArray(e) ? "array" : e === null ? "null" : t;
246
246
  default:
247
247
  return "null";
248
248
  }
249
- }, y = (t) => {
250
- if (!t)
249
+ }, y = (e) => {
250
+ if (!e)
251
251
  return "";
252
- const e = t.trim(), s = (/^\/.+$/g.test(e) ? e : `/${e}`).replaceAll(/\./g, "/");
252
+ const t = e.trim(), s = (/^\/.+$/g.test(t) ? t : `/${t}`).replaceAll(/\./g, "/");
253
253
  return /(\/(([^/~])|(~[01]))*)/g.test(s) ? s : "";
254
254
  }, I = {
255
255
  value: !1,
256
256
  path: ""
257
- }, ve = (t) => {
258
- if (!t)
257
+ }, Te = (e) => {
258
+ if (!e)
259
259
  return null;
260
- const e = structuredClone(t);
261
- return typeof e == "string" ? {
260
+ const t = structuredClone(e);
261
+ return typeof t == "string" ? {
262
262
  value: !0,
263
- path: y(e)
264
- } : typeof e != "object" ? structuredClone(I) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
265
- value: e.condition,
266
- path: y(e.value)
267
- } : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
268
- value: e.value,
269
- path: y(e.path)
263
+ path: y(t)
264
+ } : typeof t != "object" ? structuredClone(I) : Object.hasOwn(t, "condition") && "condition" in t && Object.hasOwn(t, "value") && "value" in t ? {
265
+ value: t.condition,
266
+ path: y(t.value)
267
+ } : Object.hasOwn(t, "value") && "value" in t && Object.hasOwn(t, "path") && "path" in t ? {
268
+ value: t.value,
269
+ path: y(t.path)
270
270
  } : structuredClone(I);
271
- }, k = (t, e, a) => {
272
- t && (t.type === "object" && t.properties && typeof t.properties == "object" && Object.entries(t.properties).forEach(([s, r]) => {
273
- k(r, `${e}/${s}`, a);
274
- }), (t.type === "boolean" || t.type === "string" || t.type === "number" || t.type === "integer") && (a[e] = y(t.updatePath ?? e)));
275
- }, Te = (t) => {
276
- const e = {};
277
- return k(t, "", e), e;
278
- }, H = (t, e, a) => {
279
- if (e >= a.length)
280
- return t;
281
- const s = a[e];
282
- if (e === a.length - 1) {
283
- const r = structuredClone(t);
271
+ }, k = (e, t, a) => {
272
+ e && (e.type === "object" && e.properties && typeof e.properties == "object" && Object.entries(e.properties).forEach(([s, r]) => {
273
+ k(r, `${t}/${s}`, a);
274
+ }), (e.type === "boolean" || e.type === "string" || e.type === "number" || e.type === "integer") && (a[t] = y(e.updatePath ?? t)));
275
+ }, Se = (e) => {
276
+ const t = {};
277
+ return k(e, "", t), t;
278
+ }, H = (e, t, a) => {
279
+ if (t >= a.length)
280
+ return e;
281
+ const s = a[t];
282
+ if (t === a.length - 1) {
283
+ const r = structuredClone(e);
284
284
  return delete r[s], r;
285
285
  }
286
- if (t[s] && (t[s] = H(t[s], e + 1, a)), Object.keys(t[s] ?? {}).length === 0) {
287
- const r = structuredClone(t);
286
+ if (e[s] && (e[s] = H(e[s], t + 1, a)), Object.keys(e[s] ?? {}).length === 0) {
287
+ const r = structuredClone(e);
288
288
  return delete r[s], r;
289
289
  }
290
- return t;
291
- }, Se = (t, e) => {
292
- if (!t || typeof t != "object" || Array.isArray(t))
290
+ return e;
291
+ }, we = (e, t) => {
292
+ if (!e || typeof e != "object" || Array.isArray(e))
293
293
  throw new Error("Invalid object");
294
- if (!e || !e.startsWith("/"))
294
+ if (!t || !t.startsWith("/"))
295
295
  throw new Error("Invalid path");
296
- const a = e.split("/").slice(1);
297
- return H(t, 0, a);
298
- }, $ = ({
299
- formState: t,
300
- formData: e,
296
+ const a = t.split("/").slice(1);
297
+ return H(e, 0, a);
298
+ }, D = ({
299
+ formState: e,
300
+ formData: t,
301
301
  schemaPathToUpdatePathMap: a
302
302
  }) => {
303
- let s = structuredClone(t);
303
+ let s = structuredClone(e);
304
304
  return s && (Object.entries(a).forEach(([r, i]) => {
305
305
  if (r === i || !i)
306
306
  return;
307
307
  const o = v({
308
- json: e,
308
+ json: t,
309
309
  path: T(r),
310
310
  resultType: "value",
311
311
  wrap: !1
312
312
  });
313
- o === void 0 ? s = Se(s, r) : s = w([N(r, o), s]);
313
+ o === void 0 ? s = we(s, r) : s = w([N(r, o), s]);
314
314
  const l = v({
315
- json: t,
315
+ json: e,
316
316
  path: T(r),
317
317
  resultType: "value",
318
318
  wrap: !1
319
319
  });
320
320
  l !== void 0 && (s = w([N(i, l), s]));
321
- }), e && s ? G(e, z(e, s), !1, !1).newDocument : s);
322
- }, we = ({ formData: t, schemaPathToUpdatePathMap: e }) => w([
323
- ...Object.entries(e).map(([a, s]) => {
321
+ }), t && s ? G(t, z(t, s), !1, !1).newDocument : s);
322
+ }, Ne = ({ formData: e, schemaPathToUpdatePathMap: t }) => w([
323
+ ...Object.entries(t).map(([a, s]) => {
324
324
  if (a === s || !s)
325
325
  return {};
326
326
  const r = v({
327
- json: t,
327
+ json: e,
328
328
  path: T(s),
329
329
  resultType: "value",
330
330
  wrap: !1
331
331
  });
332
332
  return r === void 0 ? {} : N(a, r);
333
333
  }),
334
- structuredClone(t)
335
- ]), Ne = ({
336
- disabled: t,
337
- formData: e,
334
+ structuredClone(e)
335
+ ]), Oe = ({
336
+ disabled: e,
337
+ formData: t,
338
338
  fieldPathId: a,
339
339
  onAddProperty: s,
340
340
  properties: r,
@@ -345,13 +345,13 @@ import './assets/@common-rjsf.css';const F = {
345
345
  title: d,
346
346
  uiSchema: p
347
347
  }) => {
348
- const m = !!c.additionalProperties, u = Z(c, p, e) && /* @__PURE__ */ n.jsx(
348
+ const m = !!c.additionalProperties, u = X(c, p, t) && /* @__PURE__ */ n.jsx(
349
349
  U,
350
350
  {
351
351
  label: d,
352
352
  className: "object-property-expand",
353
353
  onClick: s,
354
- disabled: t || i,
354
+ disabled: e || i,
355
355
  uiSchema: p,
356
356
  registry: o
357
357
  }
@@ -360,7 +360,7 @@ import './assets/@common-rjsf.css';const F = {
360
360
  if (!x)
361
361
  return !0;
362
362
  try {
363
- const _ = ve(x);
363
+ const _ = Te(x);
364
364
  if (!_.path)
365
365
  throw new Error("Empty path property of hidden descriptor field");
366
366
  const j = v({
@@ -369,7 +369,7 @@ import './assets/@common-rjsf.css';const F = {
369
369
  resultType: "value",
370
370
  wrap: !1
371
371
  });
372
- return !(j === void 0 || Q(_.value, j));
372
+ return !(j === void 0 || Z(_.value, j));
373
373
  } catch {
374
374
  return !0;
375
375
  }
@@ -391,13 +391,13 @@ import './assets/@common-rjsf.css';const F = {
391
391
  f,
392
392
  u
393
393
  ] });
394
- }, Oe = (t) => {
395
- const { fieldPathId: e, registry: a, required: s, schema: r, title: i, uiSchema: o, description: l } = t, c = !!r.additionalProperties, d = i && !c;
396
- return /* @__PURE__ */ n.jsxs("fieldset", { id: e.$id, children: [
394
+ }, Fe = (e) => {
395
+ const { fieldPathId: t, registry: a, required: s, schema: r, title: i, uiSchema: o, description: l } = e, c = !!r.additionalProperties, d = i && !c;
396
+ return /* @__PURE__ */ n.jsxs("fieldset", { id: t.$id, children: [
397
397
  d && /* @__PURE__ */ n.jsx(
398
398
  P,
399
399
  {
400
- id: X(e),
400
+ id: Q(t),
401
401
  title: i,
402
402
  required: s,
403
403
  schema: r,
@@ -409,14 +409,14 @@ import './assets/@common-rjsf.css';const F = {
409
409
  /* @__PURE__ */ n.jsx(
410
410
  "div",
411
411
  {
412
- className: `${r.properties && !c && e.$id !== "root" ? "dc__border-left pl-12" : ""} ${e.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
413
- children: /* @__PURE__ */ n.jsx(Ne, { ...t })
412
+ className: `${r.properties && !c && t.$id !== "root" ? "dc__border-left pl-12" : ""} ${t.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
413
+ children: /* @__PURE__ */ n.jsx(Oe, { ...e })
414
414
  }
415
415
  )
416
416
  ] });
417
- }, Fe = ({
418
- id: t,
419
- disabled: e,
417
+ }, Pe = ({
418
+ id: e,
419
+ disabled: t,
420
420
  label: a,
421
421
  onKeyRename: s,
422
422
  onRemoveProperty: r,
@@ -433,7 +433,7 @@ import './assets/@common-rjsf.css';const F = {
433
433
  {
434
434
  type: "text",
435
435
  className: "form__input cn-9 fs-13 lh-20 fw-4",
436
- id: `${t}-key`,
436
+ id: `${e}-key`,
437
437
  onBlur: (f) => s(f.target.value),
438
438
  placeholder: F.OBJECT_KEY,
439
439
  defaultValue: a
@@ -443,30 +443,30 @@ import './assets/@common-rjsf.css';const F = {
443
443
  /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: /* @__PURE__ */ n.jsx(
444
444
  m,
445
445
  {
446
- disabled: e || i,
446
+ disabled: t || i,
447
447
  onClick: r,
448
448
  uiSchema: c,
449
449
  registry: d
450
450
  }
451
451
  ) })
452
452
  ] }) : l });
453
- }, Pe = ({
454
- id: t,
455
- onChange: e,
453
+ }, Ce = ({
454
+ id: e,
455
+ onChange: t,
456
456
  value: a,
457
457
  disabled: s,
458
458
  readonly: r,
459
459
  autofocus: i
460
460
  }) => {
461
- const o = re(a) ? !1 : a, l = () => {
462
- e(!o);
461
+ const o = oe(a) ? !1 : a, l = () => {
462
+ t(!o);
463
463
  };
464
464
  return /* @__PURE__ */ n.jsxs("div", { className: "flexbox dc__align-items-center dc__gap-8", children: [
465
465
  /* @__PURE__ */ n.jsx(
466
- ae,
466
+ re,
467
467
  {
468
- name: t,
469
- ariaLabel: t,
468
+ name: e,
469
+ ariaLabel: e,
470
470
  onChange: l,
471
471
  isChecked: o,
472
472
  autoFocus: i,
@@ -475,9 +475,9 @@ import './assets/@common-rjsf.css';const F = {
475
475
  ),
476
476
  /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize", children: o.toString() })
477
477
  ] });
478
- }, Ce = (t) => {
478
+ }, Ee = (e) => {
479
479
  const {
480
- id: e,
480
+ id: t,
481
481
  multiple: a = !1,
482
482
  options: s,
483
483
  value: r,
@@ -489,25 +489,25 @@ import './assets/@common-rjsf.css';const F = {
489
489
  onFocus: p,
490
490
  placeholder: m,
491
491
  schema: u
492
- } = t, { enumOptions: f = [] } = s, h = a ? [] : null, x = (b) => {
493
- c(a ? b.map((g) => g.value) : b.value);
492
+ } = e, { enumOptions: f = [] } = s, h = a ? [] : null, x = (g) => {
493
+ c(a ? g.map((b) => b.value) : g.value);
494
494
  }, [_, j] = ne();
495
495
  se(() => {
496
- j(oe(8));
496
+ j(le(8));
497
497
  }, []);
498
- const C = (b) => a ? f.filter((g) => b.some((M) => R(M, g.value))) : f.find((g) => R(b, g.value));
498
+ const C = (g) => a ? f.filter((b) => g.some((M) => R(M, b.value))) : f.find((b) => R(g, b.value));
499
499
  return /* @__PURE__ */ n.jsx(
500
- le,
500
+ ie,
501
501
  {
502
- inputId: `devtron-rjsf-select__${e}`,
503
- name: e,
502
+ inputId: `devtron-rjsf-select__${t}`,
503
+ name: t,
504
504
  isMulti: a,
505
505
  value: typeof r > "u" ? h : C(r),
506
506
  autoFocus: l,
507
507
  onChange: x,
508
508
  options: f,
509
- onBlur: () => d(e, r),
510
- onFocus: () => p(e, r),
509
+ onBlur: () => d(t, r),
510
+ onFocus: () => p(t, r),
511
511
  placeholder: u.placeholder || m || F.SELECT,
512
512
  isDisabled: i || o,
513
513
  menuPortalTarget: document.getElementById(L),
@@ -515,30 +515,30 @@ import './assets/@common-rjsf.css';const F = {
515
515
  },
516
516
  _
517
517
  );
518
- }, Ee = {
519
- CheckboxWidget: Pe,
520
- SelectWidget: Ce
521
518
  }, Re = {
522
- ArrayFieldItemTemplate: pe,
523
- ArrayFieldTemplate: fe,
524
- BaseInputTemplate: _e,
525
- ButtonTemplates: { AddButton: U, RemoveButton: xe, SubmitButton: je },
519
+ CheckboxWidget: Ce,
520
+ SelectWidget: Ee
521
+ }, Ae = {
522
+ ArrayFieldItemTemplate: fe,
523
+ ArrayFieldTemplate: he,
524
+ BaseInputTemplate: xe,
525
+ ButtonTemplates: { AddButton: U, RemoveButton: je, SubmitButton: ge },
526
526
  FieldTemplate: be,
527
- FieldErrorTemplate: ge,
528
- ObjectFieldTemplate: Oe,
527
+ FieldErrorTemplate: ye,
528
+ ObjectFieldTemplate: Fe,
529
529
  TitleFieldTemplate: P,
530
- WrapIfAdditionalTemplate: Fe
531
- }, Ae = ee, We = ({ ref: t, ...e }) => {
530
+ WrapIfAdditionalTemplate: Pe
531
+ }, Ie = ee, Je = ae((e, t) => {
532
532
  const { schemaPathToUpdatePathMap: a, isUpdatePathKeywordPresent: s } = E(() => {
533
- const l = Te(e.schema);
533
+ const l = Se(e.schema);
534
534
  return {
535
535
  schemaPathToUpdatePathMap: l,
536
536
  isUpdatePathKeywordPresent: Object.entries(l).some(([c, d]) => c !== d)
537
537
  };
538
- }, [e.schema]), r = E(() => s ? we({ formData: e.formData ?? {}, schemaPathToUpdatePathMap: a }) : e.formData, [e.formData, a, s]), i = (l) => {
538
+ }, [e.schema]), r = E(() => s ? Ne({ formData: e.formData ?? {}, schemaPathToUpdatePathMap: a }) : e.formData, [e.formData, a, s]), i = (l) => {
539
539
  if (!e.onChange)
540
540
  return;
541
- const c = $({
541
+ const c = D({
542
542
  formState: l.formData,
543
543
  formData: e.formData,
544
544
  schemaPathToUpdatePathMap: a
@@ -547,7 +547,7 @@ import './assets/@common-rjsf.css';const F = {
547
547
  }, o = (l, c) => {
548
548
  if (!e.onSubmit)
549
549
  return;
550
- const d = $({
550
+ const d = D({
551
551
  formState: l.formData,
552
552
  formData: e.formData,
553
553
  schemaPathToUpdatePathMap: a
@@ -556,7 +556,7 @@ import './assets/@common-rjsf.css';const F = {
556
556
  };
557
557
  return /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
558
558
  /* @__PURE__ */ n.jsx(
559
- Ae,
559
+ Ie,
560
560
  {
561
561
  noHtml5Validate: !0,
562
562
  showErrorList: !1,
@@ -568,25 +568,25 @@ import './assets/@common-rjsf.css';const F = {
568
568
  onSubmit: o
569
569
  } : {},
570
570
  className: `rjsf-form-template__container ${e.className || ""}`,
571
- validator: ie,
571
+ validator: ce,
572
572
  templates: {
573
- ...Re,
573
+ ...Ae,
574
574
  ...e.templates
575
575
  },
576
576
  formContext: r,
577
- widgets: { ...Ee, ...e.widgets },
578
- translateString: ye,
577
+ widgets: { ...Re, ...e.widgets },
578
+ translateString: ve,
579
579
  ref: t
580
580
  }
581
581
  ),
582
582
  /* @__PURE__ */ n.jsx("div", { id: L })
583
583
  ] });
584
- };
584
+ });
585
585
  export {
586
- ke as H,
587
- We as R,
588
- He as a,
589
- Te as b,
586
+ He as H,
587
+ Je as R,
588
+ Me as a,
589
+ Se as b,
590
590
  y as c,
591
- Me as g
591
+ We as g
592
592
  };