@devtron-labs/devtron-fe-common-lib 1.5.1-beta-2 → 1.5.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.
Files changed (59) hide show
  1. package/dist/{@code-editor-B0vme9Gy.js → @code-editor-BOeFXRpX.js} +5933 -7079
  2. package/dist/@common-rjsf-CwZhqVif.js +516 -0
  3. package/dist/{@framer-motion-CtC3e2uC.js → @framer-motion-CdgdF0KV.js} +1 -1
  4. package/dist/{@react-dates-BlBjJ115.js → @react-dates-CtQV2TLr.js} +31 -31
  5. package/dist/{@react-select-CjYy5-X-.js → @react-select-Cn3OpC9h.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-DCAYOwGQ.js → @react-virtualized-sticky-tree-CVJYfMx0.js} +1 -1
  7. package/dist/{@vendor-CB7cq1II.js → @vendor-CwAQS8iU.js} +8897 -9849
  8. package/dist/Common/Constants.d.ts +0 -6
  9. package/dist/Common/Helper.d.ts +1 -1
  10. package/dist/Common/RJSF/utils.d.ts +0 -13
  11. package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
  12. package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -7
  13. package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +0 -1
  14. package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +0 -2
  15. package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +51 -120
  16. package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +2 -5
  17. package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -5
  18. package/dist/Shared/Components/ConfirmationModal/types.d.ts +0 -4
  19. package/dist/Shared/Components/ReactSelect/utils.d.ts +3 -33
  20. package/dist/Shared/Components/index.d.ts +0 -5
  21. package/dist/Shared/Hooks/useForm/useForm.d.ts +2 -7
  22. package/dist/Shared/Services/app.types.d.ts +1 -72
  23. package/dist/Shared/Services/index.d.ts +0 -1
  24. package/dist/Shared/validations.d.ts +0 -4
  25. package/dist/assets/@code-editor.css +1 -1
  26. package/dist/assets/{delete-medium.baa284da.svg → delete-medium.897114e0.svg} +1 -1
  27. package/dist/assets/{ic-not-authorized.2d8e208f.svg → ic-not-authorized.24862281.svg} +1 -1
  28. package/dist/assets/{ic-not-found.86f588bf.svg → ic-not-found.f5857c12.svg} +1 -1
  29. package/dist/assets/{ic-page-not-found.da74a367.svg → ic-page-not-found.3c4f114b.svg} +1 -1
  30. package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +24 -0
  31. package/dist/index.js +684 -718
  32. package/package.json +3 -3
  33. package/dist/@common-rjsf-D8vkvmqW.js +0 -583
  34. package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +0 -3
  35. package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +0 -11
  36. package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +0 -3
  37. package/dist/Shared/Components/CMCS/constants.d.ts +0 -23
  38. package/dist/Shared/Components/CMCS/helpers.d.ts +0 -1
  39. package/dist/Shared/Components/CMCS/index.d.ts +0 -6
  40. package/dist/Shared/Components/CMCS/types.d.ts +0 -24
  41. package/dist/Shared/Components/CMCS/utils.d.ts +0 -17
  42. package/dist/Shared/Components/CMCS/validations.d.ts +0 -3
  43. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +0 -4
  44. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +0 -3
  45. package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +0 -3
  46. package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +0 -2
  47. package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +0 -7
  48. package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +0 -1
  49. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +0 -2
  50. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +0 -39
  51. package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +0 -3
  52. package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +0 -1
  53. package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +0 -10
  54. package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +0 -2
  55. package/dist/Shared/Components/UnsavedChanges/index.d.ts +0 -1
  56. package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +0 -3
  57. package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +0 -1
  58. package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +0 -5
  59. package/dist/assets/ic-view-variable-toggle.93c3599f.svg +0 -19
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devtron-labs/devtron-fe-common-lib",
3
- "version": "1.5.1-beta-2",
3
+ "version": "1.5.2",
4
4
  "description": "Supporting common component library",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -86,6 +86,7 @@
86
86
  "patch-package": "^8.0.0",
87
87
  "react": "^17.0.2",
88
88
  "react-dom": "^17.0.2",
89
+ "react-draggable": "^4.4.5",
89
90
  "react-ga4": "^1.4.1",
90
91
  "react-mde": "^11.5.0",
91
92
  "react-router-dom": "^5.3.0",
@@ -107,8 +108,7 @@
107
108
  "react-monaco-editor": "^0.54.0",
108
109
  "react-virtualized-sticky-tree": "^3.0.0-beta18",
109
110
  "sass": "^1.69.7",
110
- "tslib": "2.7.0",
111
- "react-draggable": "^4.4.5"
111
+ "tslib": "2.7.0"
112
112
  },
113
113
  "overrides": {
114
114
  "cross-spawn": "^7.0.5",
@@ -1,583 +0,0 @@
1
- import { j as n, J as $ } from "./@vendor-CB7cq1II.js";
2
- import A, { forwardRef as E } from "react";
3
- import L, { getDefaultRegistry as k } from "@rjsf/core";
4
- import D from "@rjsf/validator-ajv8";
5
- import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-B0vme9Gy.js";
6
- import M, { components as O } from "react-select";
7
- import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as V, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
8
- import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
9
- import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
10
- import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
11
- import { ReactComponent as ee } from "./assets/ic-warning.10bcf8bd.svg";
12
- import './assets/@common-rjsf.css';const N = {
13
- SELECT: "Please select an option",
14
- INPUT: "Please enter an input",
15
- OBJECT_KEY: "Please enter a value for the key"
16
- }, te = "Key not available", Ee = {
17
- "ui:submitButtonOptions": {
18
- norender: !0
19
- }
20
- }, b = ({
21
- showLabel: t,
22
- label: e,
23
- required: o,
24
- children: s,
25
- id: r,
26
- rawDescription: a,
27
- shouldAlignCenter: i = !0
28
- }) => /* @__PURE__ */ n.jsxs(
29
- "div",
30
- {
31
- className: t ? `display-grid dc__gap-12 rjsf-form-template__field ${i ? "flex-align-center" : ""}` : "",
32
- children: [
33
- t && /* @__PURE__ */ n.jsxs("label", { className: "cn-7 fs-13 lh-20 fw-4 flexbox mb-0", htmlFor: r, children: [
34
- /* @__PURE__ */ n.jsx(y, { alwaysShowTippyOnHover: !!a, content: a, children: /* @__PURE__ */ n.jsx("span", { className: `dc__ellipsis-right ${a ? "text-underline-dashed-300" : ""}`, children: e || te }) }),
35
- o && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
36
- ] }),
37
- s
38
- ]
39
- }
40
- ), S = ({ label: t, canAdd: e, onAddClick: o, disabled: s, readonly: r, uiSchema: a, registry: i }) => {
41
- const {
42
- ButtonTemplates: { AddButton: c }
43
- } = i.templates;
44
- return e && /* @__PURE__ */ n.jsx(
45
- c,
46
- {
47
- label: t,
48
- onClick: o,
49
- disabled: s || r,
50
- uiSchema: a,
51
- registry: i
52
- }
53
- );
54
- }, ne = ({
55
- canAdd: t,
56
- className: e,
57
- disabled: o,
58
- idSchema: s,
59
- uiSchema: r,
60
- items: a,
61
- onAddClick: i,
62
- readonly: c,
63
- registry: l,
64
- required: d,
65
- title: f
66
- }) => {
67
- const p = B(r), u = I("ArrayFieldItemTemplate", l, p), m = p.title || f;
68
- return /* @__PURE__ */ n.jsx("fieldset", { className: e, id: s.$id, children: a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
69
- a.map(({ key: j, ...x }, g) => {
70
- const h = {
71
- ...x.children,
72
- props: {
73
- ...x.children.props
74
- }
75
- };
76
- return /* @__PURE__ */ n.jsx(u, { ...x, children: h }, j);
77
- }),
78
- /* @__PURE__ */ n.jsx(
79
- S,
80
- {
81
- label: m,
82
- canAdd: t,
83
- onAddClick: i,
84
- disabled: o,
85
- readonly: c,
86
- uiSchema: r,
87
- registry: l
88
- }
89
- )
90
- ] }) : /* @__PURE__ */ n.jsx(b, { label: m, required: d, showLabel: !0, id: s.$id, children: /* @__PURE__ */ n.jsx(
91
- S,
92
- {
93
- label: m,
94
- canAdd: t,
95
- onAddClick: i,
96
- disabled: o,
97
- readonly: c,
98
- uiSchema: r,
99
- registry: l
100
- }
101
- ) }) });
102
- }, oe = ({
103
- children: t,
104
- disabled: e,
105
- hasToolbar: o,
106
- hasRemove: s,
107
- index: r,
108
- onDropIndexClick: a,
109
- readonly: i,
110
- registry: c,
111
- uiSchema: l
112
- }) => {
113
- const { RemoveButton: d } = c.templates.ButtonTemplates;
114
- return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
115
- t,
116
- /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: o && s && /* @__PURE__ */ n.jsx(
117
- d,
118
- {
119
- disabled: e || i,
120
- onClick: a(r),
121
- uiSchema: l,
122
- registry: c
123
- }
124
- ) })
125
- ] });
126
- }, {
127
- templates: { BaseInputTemplate: se }
128
- } = k(), re = ({ placeholder: t, ...e }) => /* @__PURE__ */ n.jsx(
129
- se,
130
- {
131
- placeholder: t || N.INPUT,
132
- ...e,
133
- className: "form__input cn-9 fs-13 lh-20 fw-4"
134
- }
135
- ), R = ({
136
- label: t,
137
- icon: e,
138
- iconType: o,
139
- registry: s,
140
- uiSchema: r,
141
- ...a
142
- }) => {
143
- const i = `Add ${t}`;
144
- return /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-start", children: /* @__PURE__ */ n.jsxs(
145
- "button",
146
- {
147
- ...a,
148
- type: "button",
149
- className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor dc__mxw-250",
150
- title: "Add",
151
- children: [
152
- /* @__PURE__ */ n.jsx(X, { className: "icon-dim-16 fcb-5" }),
153
- /* @__PURE__ */ n.jsx(y, { placement: "right", content: i, children: /* @__PURE__ */ n.jsx("span", { className: "cb-5 fs-13 lh-34 dc__truncate", children: i }) })
154
- ]
155
- }
156
- ) });
157
- }, ae = ({ icon: t, iconType: e, registry: o, 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(Z, { className: "icon-dim-16 fcn-6" }) }), ie = ({ uiSchema: t }) => {
158
- const { submitText: e, norender: o, props: s = {} } = V(t);
159
- return o ? null : /* @__PURE__ */ n.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ n.jsx("button", { type: "submit", ...s, className: `cta ${s.className || ""}`, children: e }) });
160
- }, T = ({
161
- id: t,
162
- title: e,
163
- required: o,
164
- description: s
165
- }) => /* @__PURE__ */ n.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 dc__no-border pb-9 mb-0", id: t, children: [
166
- /* @__PURE__ */ n.jsx(y, { alwaysShowTippyOnHover: !!s, content: s, children: /* @__PURE__ */ n.jsx("span", { className: `${s ? "text-underline-dashed-300" : ""}`, children: e }) }),
167
- o && /* @__PURE__ */ n.jsx("span", { className: "cr-5", children: " *" })
168
- ] }), le = (t) => {
169
- const {
170
- id: e,
171
- label: o,
172
- children: s,
173
- errors: r,
174
- hidden: a,
175
- required: i,
176
- displayLabel: c,
177
- registry: l,
178
- uiSchema: d,
179
- classNames: f,
180
- schema: p,
181
- rawDescription: u
182
- } = t, m = B(d), j = I(
183
- "WrapIfAdditionalTemplate",
184
- l,
185
- m
186
- ), x = P in p, g = (c || p.type === "boolean") && !x, h = p.type === "array";
187
- return a ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: s }) : (
188
- // NOTE: need to override the margins of default rjsf css
189
- /* @__PURE__ */ n.jsxs("div", { className: `${f} mb-0`, children: [
190
- h && /* @__PURE__ */ n.jsx(
191
- T,
192
- {
193
- id: e,
194
- title: o,
195
- required: i,
196
- registry: l,
197
- uiSchema: d,
198
- schema: p,
199
- description: u
200
- }
201
- ),
202
- /* @__PURE__ */ n.jsx(
203
- b,
204
- {
205
- label: o,
206
- showLabel: g,
207
- id: e,
208
- required: i,
209
- rawDescription: u,
210
- children: /* @__PURE__ */ n.jsx(j, { ...t, children: s })
211
- }
212
- ),
213
- r
214
- ] })
215
- );
216
- }, ce = ({ errors: t = [], idSchema: e }) => {
217
- const o = W(e);
218
- return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id: o, children: t.filter((s) => !!s).map((s, r) => /* @__PURE__ */ n.jsxs(A.Fragment, { children: [
219
- /* @__PURE__ */ n.jsx("span", {}),
220
- /* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
221
- /* @__PURE__ */ n.jsx(ee, { className: "form__icon form__icon--error" }),
222
- s
223
- ] })
224
- ] }, r)) });
225
- }, de = (t, e) => {
226
- switch (t) {
227
- case K.NewStringDefault:
228
- return "";
229
- default:
230
- return q(t, e);
231
- }
232
- }, pe = (t = {}) => ({
233
- menuList: (e) => ({
234
- ...e,
235
- paddingTop: 0,
236
- paddingBottom: 0,
237
- cursor: "pointer"
238
- }),
239
- control: (e, o) => ({
240
- ...e,
241
- minHeight: "32px",
242
- boxShadow: "none",
243
- backgroundColor: "var(--bg-secondary)",
244
- border: o.isFocused ? "1px solid var(--B500)" : "1px solid var(--N200)",
245
- cursor: "pointer"
246
- }),
247
- option: (e, o) => ({
248
- ...e,
249
- color: "var(--N900)",
250
- backgroundColor: o.isFocused ? "var(--N100)" : "var(--bg-primary)",
251
- padding: "10px 12px",
252
- cursor: "pointer"
253
- }),
254
- dropdownIndicator: (e, o) => ({
255
- ...e,
256
- color: "var(--N400)",
257
- padding: "0 8px",
258
- transition: "all .2s ease",
259
- transform: o.selectProps.menuIsOpen ? "rotate(180deg)" : "rotate(0deg)"
260
- }),
261
- valueContainer: (e, o) => ({
262
- ...e,
263
- padding: "0 8px",
264
- fontWeight: "400",
265
- color: o.selectProps.menuIsOpen ? "var(--N500)" : e.color
266
- }),
267
- loadingMessage: (e) => ({
268
- ...e,
269
- color: "var(--N600)"
270
- }),
271
- noOptionsMessage: (e) => ({
272
- ...e,
273
- color: "var(--N600)"
274
- }),
275
- multiValue: (e) => ({
276
- ...e,
277
- border: "1px solid var(--N200)",
278
- borderRadius: "4px",
279
- background: "var(--bg-primary)",
280
- height: "28px",
281
- marginRight: "8px",
282
- padding: "2px",
283
- fontSize: "12px"
284
- }),
285
- singleValue: (e) => ({
286
- ...e,
287
- color: "var(--N900)"
288
- }),
289
- input: (e) => ({
290
- ...e,
291
- color: "var(--N900)"
292
- }),
293
- menu: (e) => ({
294
- ...e,
295
- backgroundColor: "var(--bg-menu)"
296
- }),
297
- ...t
298
- }), Le = (t) => {
299
- try {
300
- const e = new URL(t).origin === window.location.origin;
301
- return {
302
- href: t,
303
- target: e ? "_self" : "_blank",
304
- rel: e ? void 0 : "external noreferrer",
305
- url: t
306
- };
307
- } catch {
308
- return {
309
- href: t,
310
- target: "_blank",
311
- url: `${t} (Invalid URL)`
312
- };
313
- }
314
- }, ke = (t) => {
315
- const e = typeof t;
316
- switch (e) {
317
- case "boolean":
318
- case "string":
319
- case "number":
320
- return e;
321
- case "object":
322
- return Array.isArray(t) ? "array" : t === null ? "null" : e;
323
- default:
324
- return "null";
325
- }
326
- }, v = (t) => {
327
- if (!t)
328
- return "";
329
- const e = t.trim();
330
- return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
331
- }, C = {
332
- value: !1,
333
- path: ""
334
- }, me = (t) => {
335
- if (!t)
336
- return null;
337
- const e = structuredClone(t);
338
- return typeof e == "string" ? {
339
- value: !0,
340
- path: v(e)
341
- } : typeof e != "object" ? structuredClone(C) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
342
- value: e.condition,
343
- path: v(e.value)
344
- } : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
345
- value: e.value,
346
- path: v(e.path)
347
- } : structuredClone(C);
348
- }, ue = ({
349
- disabled: t,
350
- formData: e,
351
- idSchema: o,
352
- onAddClick: s,
353
- properties: r,
354
- readonly: a,
355
- registry: i,
356
- required: c,
357
- schema: l,
358
- title: d,
359
- uiSchema: f,
360
- formContext: p
361
- }) => {
362
- const u = !!l.additionalProperties, m = z(l, f, e) && /* @__PURE__ */ n.jsx(
363
- R,
364
- {
365
- label: d,
366
- className: "object-property-expand",
367
- onClick: s(l),
368
- disabled: t || a,
369
- uiSchema: f,
370
- registry: i
371
- }
372
- ), j = r.filter((x) => {
373
- const g = l.properties?.[x.name]?.hidden;
374
- if (!g)
375
- return !0;
376
- try {
377
- const h = me(g);
378
- if (!h.path)
379
- throw new Error("Empty path property of hidden descriptor field");
380
- if (!h.path.match(/^\/\w+(\/\w+)*$/g))
381
- throw new Error("Provided path is not a valid JSON pointer");
382
- const _ = $({
383
- path: H(h.path),
384
- json: p
385
- })?.[0];
386
- return !(_ === void 0 || G(h.value, _));
387
- } catch {
388
- return !0;
389
- }
390
- }).sort((x) => l.properties?.[x.name]?.type === "boolean" ? -1 : 1).map((x) => x.content);
391
- return u ? r.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
392
- /* @__PURE__ */ n.jsx(
393
- b,
394
- {
395
- label: d,
396
- required: c,
397
- showLabel: !0,
398
- id: o.$id,
399
- shouldAlignCenter: !1,
400
- children: /* @__PURE__ */ n.jsx("div", { children: j })
401
- }
402
- ),
403
- m
404
- ] }) : /* @__PURE__ */ n.jsx(b, { label: d, required: c, showLabel: !0, id: o.$id, children: m }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
405
- j,
406
- m
407
- ] });
408
- }, he = (t) => {
409
- const { idSchema: e, registry: o, required: s, schema: r, title: a, uiSchema: i, description: c } = t, l = !!r.additionalProperties, d = a && !l;
410
- return /* @__PURE__ */ n.jsxs("fieldset", { id: e.$id, children: [
411
- d && /* @__PURE__ */ n.jsx(
412
- T,
413
- {
414
- id: Y(e),
415
- title: a,
416
- required: s,
417
- schema: r,
418
- uiSchema: i,
419
- registry: o,
420
- description: c
421
- }
422
- ),
423
- /* @__PURE__ */ n.jsx(
424
- "div",
425
- {
426
- className: `${r.properties && !l && e.$id !== "root" ? "dc__border-left pl-12" : ""} ${e.$id === "root" ? "dc__separated-flexbox dc__separated-flexbox--vertical" : "flexbox-col dc__gap-8"}`,
427
- children: /* @__PURE__ */ n.jsx(ue, { ...t })
428
- }
429
- )
430
- ] });
431
- }, fe = ({
432
- id: t,
433
- disabled: e,
434
- label: o,
435
- onKeyChange: s,
436
- onDropPropertyClick: r,
437
- readonly: a,
438
- schema: i,
439
- children: c,
440
- uiSchema: l,
441
- registry: d
442
- }) => {
443
- const { templates: f } = d, { RemoveButton: p } = f.ButtonTemplates, u = P in i;
444
- return /* @__PURE__ */ n.jsx(n.Fragment, { children: u ? /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
445
- /* @__PURE__ */ n.jsx("div", { children: /* @__PURE__ */ n.jsx(
446
- "input",
447
- {
448
- type: "text",
449
- className: "form__input cn-9 fs-13 lh-20 fw-4",
450
- id: `${t}-key`,
451
- onBlur: (m) => s(m.target.value),
452
- placeholder: N.OBJECT_KEY,
453
- defaultValue: o
454
- }
455
- ) }),
456
- /* @__PURE__ */ n.jsx("div", { children: c }),
457
- /* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: /* @__PURE__ */ n.jsx(
458
- p,
459
- {
460
- disabled: e || a,
461
- onClick: r(o),
462
- uiSchema: l,
463
- registry: d
464
- }
465
- ) })
466
- ] }) : c });
467
- }, xe = ({
468
- id: t,
469
- onChange: e,
470
- value: o,
471
- required: s,
472
- disabled: r,
473
- readonly: a,
474
- autofocus: i,
475
- onBlur: c,
476
- onFocus: l
477
- }) => {
478
- const d = (p, u) => {
479
- const { id: m, checked: j } = p.target;
480
- u === "blur" ? c(m, j) : u === "focus" && l(m, j);
481
- }, f = J(o) ? !1 : o;
482
- return /* @__PURE__ */ n.jsxs("div", { children: [
483
- /* @__PURE__ */ n.jsx(
484
- U,
485
- {
486
- selected: f,
487
- onSelect: e,
488
- id: t,
489
- name: t,
490
- required: s,
491
- disabled: r || a,
492
- autoFocus: i,
493
- rootClassName: "w-32 mb-0 dc__height-inherit",
494
- onBlur: (p) => d(p, "blur"),
495
- onFocus: (p) => d(p, "focus")
496
- }
497
- ),
498
- /* @__PURE__ */ n.jsx("span", { className: "dc__capitalize ml-8", children: f.toString() })
499
- ] });
500
- }, F = pe(), ge = ({ children: t, ...e }) => /* @__PURE__ */ n.jsx(O.MenuList, { ...e, children: Array.isArray(t) ? t.slice(0, 20) : t }), je = (t) => /* @__PURE__ */ n.jsx(O.DropdownIndicator, { ...t, children: /* @__PURE__ */ n.jsx(Q, { className: "icon-dim-20 icon-n5", "data-testid": "overview-project-edit-dropdown" }) }), _e = (t) => {
501
- const {
502
- id: e,
503
- multiple: o = !1,
504
- options: s,
505
- value: r,
506
- disabled: a,
507
- readonly: i,
508
- autofocus: c = !1,
509
- onChange: l,
510
- onBlur: d,
511
- onFocus: f,
512
- placeholder: p
513
- } = t, { enumOptions: u = [] } = s, m = o ? [] : "", j = (g) => {
514
- l(o ? g.map((h) => h.value) : g.value);
515
- }, x = (g) => o ? u.filter((h) => g.some((_) => w(_, h.value))) : u.find((h) => w(g, h.value));
516
- return /* @__PURE__ */ n.jsx(
517
- M,
518
- {
519
- id: e,
520
- name: e,
521
- isMulti: o,
522
- value: typeof r > "u" ? m : x(r),
523
- autoFocus: c,
524
- onChange: j,
525
- options: u,
526
- onBlur: () => d(e, r),
527
- onFocus: () => f(e, r),
528
- placeholder: p || N.SELECT,
529
- isDisabled: a || i,
530
- styles: {
531
- ...F,
532
- control: (g) => ({
533
- ...g,
534
- ...F.control,
535
- backgroundColor: "var(--bg-secondary)"
536
- })
537
- },
538
- components: {
539
- IndicatorSeparator: null,
540
- DropdownIndicator: je,
541
- MenuList: ge
542
- },
543
- menuPlacement: "auto"
544
- }
545
- );
546
- }, be = {
547
- CheckboxWidget: xe,
548
- SelectWidget: _e
549
- }, ve = {
550
- ArrayFieldItemTemplate: oe,
551
- ArrayFieldTemplate: ne,
552
- BaseInputTemplate: re,
553
- ButtonTemplates: { AddButton: R, RemoveButton: ae, SubmitButton: ie },
554
- FieldTemplate: le,
555
- FieldErrorTemplate: ce,
556
- ObjectFieldTemplate: he,
557
- TitleFieldTemplate: T,
558
- WrapIfAdditionalTemplate: fe
559
- }, ye = L, Ne = D, De = E((t, e) => /* @__PURE__ */ n.jsx(
560
- ye,
561
- {
562
- noHtml5Validate: !0,
563
- showErrorList: !1,
564
- autoComplete: "off",
565
- ...t,
566
- className: `rjsf-form-template__container ${t.className || ""}`,
567
- validator: Ne,
568
- templates: {
569
- ...ve,
570
- ...t.templates
571
- },
572
- formContext: t.formData,
573
- widgets: { ...be, ...t.widgets },
574
- translateString: de,
575
- ref: e
576
- }
577
- ));
578
- export {
579
- Ee as H,
580
- De as R,
581
- Le as a,
582
- ke as g
583
- };
@@ -1,3 +0,0 @@
1
- import { BuildInfraUtilityContextType } from '../../index';
2
- export declare const BuildInfraUtilityContext: import('react').Context<BuildInfraUtilityContextType>;
3
- export declare const useBuildInfraUtilityContext: () => BuildInfraUtilityContextType;
@@ -1,11 +0,0 @@
1
- import { ValidateNodeSelectorParamsType, ValidateRequestLimitResponseType, ValidateRequestLimitType } from '../../index';
2
- import { ValidationResponseType } from '../../../Shared/validations';
3
- /**
4
- * @description A valid platform name should not be empty and be less than 128 characters. Plus profile can not have duplicate platform names
5
- */
6
- export declare const validateTargetPlatformName: (name: string, platformMap: Record<string, unknown>) => ValidationResponseType;
7
- export declare const validateLabelValue: (value?: string) => Pick<ValidationResponseType, "isValid"> & {
8
- messages: string[];
9
- };
10
- export declare const validateRequestLimit: ({ request, limit, unitsMap, }: ValidateRequestLimitType) => ValidateRequestLimitResponseType;
11
- export declare const validateNodeSelector: ({ selector: { key, value, id }, existingKeys, profileInputErrors: currentInputErrors, }: ValidateNodeSelectorParamsType) => void;
@@ -1,3 +0,0 @@
1
- import { ConfigMapSecretReadyOnlyProps } from './types';
2
- declare const ConfigMapSecretReadyOnly: ({ componentType, isJob, configMapSecretData, cmSecretStateLabel, areScopeVariablesResolving, fallbackMergeStrategy, hideCodeEditor, containerClassName, displayKeys, isBorderLess, }: ConfigMapSecretReadyOnlyProps) => JSX.Element;
3
- export default ConfigMapSecretReadyOnly;
@@ -1,23 +0,0 @@
1
- import { CMSecretYamlData } from '../../Services';
2
- import { ConfigMapSecretDataTypeOptionType } from './types';
3
- export declare const CONFIG_MAP_SECRET_YAML_PARSE_ERROR = "Could not parse to valid YAML";
4
- export declare const SECRET_TOAST_INFO: {
5
- BOTH_STORE_AVAILABLE: string;
6
- CHECK_KEY_SECRET_KEY: string;
7
- BOTH_STORE_UNAVAILABLE: string;
8
- CHECK_KEY_NAME: string;
9
- BOTH_ESO_DATA_AND_DATA_FROM_AVAILABLE: string;
10
- BOTH_ESO_DATA_AND_DATA_FROM_UNAVAILABLE: string;
11
- };
12
- export declare const configMapDataTypeOptions: ConfigMapSecretDataTypeOptionType[];
13
- export declare const CONFIG_MAP_SECRET_DEFAULT_CURRENT_DATA: CMSecretYamlData[];
14
- export declare const configMapSecretMountDataMap: {
15
- environment: {
16
- title: string;
17
- value: string;
18
- };
19
- volume: {
20
- title: string;
21
- value: string;
22
- };
23
- };
@@ -1 +0,0 @@
1
- export declare const renderHashiOrAwsDeprecatedInfo: () => JSX.Element;
@@ -1,6 +0,0 @@
1
- export { default as ConfigMapSecretReadyOnly } from './ConfigMapSecretReadyOnly';
2
- export * from './validations';
3
- export * from './helpers';
4
- export * from './types';
5
- export * from './utils';
6
- export * from './constants';
@@ -1,24 +0,0 @@
1
- import { OverrideMergeStrategyType } from '../../../Pages/index';
2
- import { CM_SECRET_STATE, CMSecretComponentType, CMSecretConfigData } from '../../Services';
3
- import { SelectPickerOptionType } from '../SelectPicker';
4
- export interface ConfigMapSecretReadyOnlyProps {
5
- configMapSecretData: CMSecretConfigData;
6
- componentType: CMSecretComponentType;
7
- cmSecretStateLabel: CM_SECRET_STATE;
8
- isJob: boolean;
9
- areScopeVariablesResolving: boolean;
10
- fallbackMergeStrategy: OverrideMergeStrategyType;
11
- hideCodeEditor?: boolean;
12
- containerClassName?: string;
13
- /**
14
- * @default false
15
- */
16
- displayKeys?: boolean;
17
- /**
18
- * @default false
19
- */
20
- isBorderLess?: boolean;
21
- }
22
- export interface GetConfigMapSecretReadOnlyValuesParamsType extends Pick<ConfigMapSecretReadyOnlyProps, 'componentType' | 'configMapSecretData' | 'cmSecretStateLabel' | 'isJob' | 'fallbackMergeStrategy' | 'displayKeys'> {
23
- }
24
- export type ConfigMapSecretDataTypeOptionType = SelectPickerOptionType<string>;