@devtron-labs/devtron-fe-common-lib 1.5.0 → 1.5.1-beta-1
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-BhKgnbkm.js → @code-editor-nJMq__nd.js} +8157 -6868
- package/dist/{@common-rjsf-DIkXvOXb.js → @common-rjsf-D_HM1zib.js} +102 -90
- package/dist/{@framer-motion-CdgdF0KV.js → @framer-motion-CtC3e2uC.js} +1 -1
- package/dist/{@react-dates-CtQV2TLr.js → @react-dates-BlBjJ115.js} +31 -31
- package/dist/{@react-select-Cn3OpC9h.js → @react-select-CjYy5-X-.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-CVJYfMx0.js → @react-virtualized-sticky-tree-DCAYOwGQ.js} +1 -1
- package/dist/{@vendor-CwAQS8iU.js → @vendor-CB7cq1II.js} +10317 -9365
- package/dist/Common/CodeEditor/CodeEditor.reducer.d.ts +7 -7
- package/dist/Common/CodeEditor/types.d.ts +9 -10
- package/dist/Common/CodeEditor/utils.d.ts +3 -0
- package/dist/Common/Constants.d.ts +6 -0
- package/dist/Common/MultiSelectCustomization.d.ts +2 -0
- package/dist/Common/RJSF/utils.d.ts +3 -0
- package/dist/Common/SegmentedControl/SegmentedControl.component.d.ts +1 -1
- package/dist/Common/SegmentedControl/constants.d.ts +2 -0
- package/dist/Common/SegmentedControl/types.d.ts +7 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/BuildInfraUtilityContext.d.ts +3 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +1 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +7 -1
- package/dist/Pages/GlobalConfigurations/BuildInfra/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/services.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +115 -51
- package/dist/Pages/GlobalConfigurations/BuildInfra/utils.d.ts +5 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/validations.d.ts +11 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/constants.d.ts +2 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +0 -2
- package/dist/Shared/Components/CMCS/ConfigMapSecretReadyOnly.d.ts +3 -0
- package/dist/Shared/Components/CMCS/constants.d.ts +23 -0
- package/dist/Shared/Components/CMCS/helpers.d.ts +1 -0
- package/dist/Shared/Components/CMCS/index.d.ts +6 -0
- package/dist/Shared/Components/CMCS/types.d.ts +24 -0
- package/dist/Shared/Components/CMCS/utils.d.ts +17 -0
- package/dist/Shared/Components/CMCS/validations.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +5 -0
- package/dist/Shared/Components/ConfirmationModal/types.d.ts +4 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +4 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionItem.d.ts +3 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/Suggestions.d.ts +3 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/SuggestionsInfo.d.ts +2 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/constants.d.ts +7 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/index.d.ts +1 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +2 -0
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +39 -0
- package/dist/Shared/Components/Plugin/PluginTagSelect.d.ts +1 -1
- package/dist/Shared/Components/Plugin/types.d.ts +2 -2
- package/dist/Shared/Components/Plugin/utils.d.ts +0 -16
- package/dist/Shared/Components/ReactSelect/constants.d.ts +1 -0
- package/dist/Shared/Components/ReactSelect/utils.d.ts +6 -0
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +8 -8
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +3 -0
- package/dist/Shared/Components/ThemeSwitcher/constants.d.ts +6 -0
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +1 -0
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +3 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +3 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/index.d.ts +1 -0
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +10 -0
- package/dist/Shared/Components/UnsavedChanges/UnsavedChanges.component.d.ts +2 -0
- package/dist/Shared/Components/UnsavedChanges/index.d.ts +1 -0
- package/dist/Shared/Components/UnsavedChangesDialog/UnsavedChangesDialog.component.d.ts +3 -0
- package/dist/Shared/Components/UnsavedChangesDialog/index.d.ts +1 -0
- package/dist/Shared/Components/UnsavedChangesDialog/types.d.ts +5 -0
- package/dist/Shared/Components/index.d.ts +5 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +7 -2
- package/dist/Shared/Providers/ThemeProvider/ThemeProvider.d.ts +3 -0
- package/dist/Shared/Providers/ThemeProvider/constants.d.ts +2 -0
- package/dist/Shared/Providers/ThemeProvider/index.d.ts +2 -0
- package/dist/Shared/Providers/ThemeProvider/types.d.ts +33 -0
- package/dist/Shared/Providers/ThemeProvider/utils.d.ts +4 -0
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Services/app.types.d.ts +72 -1
- package/dist/Shared/Services/index.d.ts +1 -0
- package/dist/Shared/validations.d.ts +4 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-laptop.485e21b4.svg +3 -0
- package/dist/assets/ic-moon.17d37c40.svg +3 -0
- package/dist/assets/{ic-nav-rocket.9e50bb61.svg → ic-nav-rocket.433c9706.svg} +1 -1
- package/dist/assets/{ic-rotate-devtron.200e165b.svg → ic-rotate-devtron.5a8363d8.svg} +87 -86
- package/dist/assets/ic-sun.33e8214b.svg +3 -0
- package/dist/assets/ic-view-variable-toggle.93c3599f.svg +19 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +723 -688
- package/package.json +3 -3
- package/dist/assets/ic-view-variable-toggle.c335dfa0.svg +0 -24
@@ -1,15 +1,15 @@
|
|
1
|
-
import { j as n, J as $ } from "./@vendor-
|
1
|
+
import { j as n, J as $ } from "./@vendor-CB7cq1II.js";
|
2
2
|
import A, { forwardRef as E } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as
|
5
|
+
import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-nJMq__nd.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
|
-
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as
|
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
8
|
import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
9
9
|
import { ReactComponent as X } from "./assets/ic-add.cfaa779b.svg";
|
10
10
|
import { ReactComponent as Z } from "./assets/ic-cross.01e03666.svg";
|
11
11
|
import { ReactComponent as ee } from "./assets/ic-warning.10bcf8bd.svg";
|
12
|
-
import './assets/@common-rjsf.css';const
|
12
|
+
import './assets/@common-rjsf.css';const N = {
|
13
13
|
SELECT: "Please select an option",
|
14
14
|
INPUT: "Please enter an input",
|
15
15
|
OBJECT_KEY: "Please enter a value for the key"
|
@@ -20,8 +20,8 @@ import './assets/@common-rjsf.css';const y = {
|
|
20
20
|
}, b = ({
|
21
21
|
showLabel: t,
|
22
22
|
label: e,
|
23
|
-
required:
|
24
|
-
children:
|
23
|
+
required: o,
|
24
|
+
children: s,
|
25
25
|
id: r,
|
26
26
|
rawDescription: a,
|
27
27
|
shouldAlignCenter: i = !0
|
@@ -31,13 +31,13 @@ import './assets/@common-rjsf.css';const y = {
|
|
31
31
|
className: t ? `display-grid dc__gap-12 rjsf-form-template__field ${i ? "flex-align-center" : ""}` : "",
|
32
32
|
children: [
|
33
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(
|
35
|
-
|
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
36
|
] }),
|
37
|
-
|
37
|
+
s
|
38
38
|
]
|
39
39
|
}
|
40
|
-
), S = ({ label: t, canAdd: e, onAddClick:
|
40
|
+
), S = ({ label: t, canAdd: e, onAddClick: o, disabled: s, readonly: r, uiSchema: a, registry: i }) => {
|
41
41
|
const {
|
42
42
|
ButtonTemplates: { AddButton: c }
|
43
43
|
} = i.templates;
|
@@ -45,8 +45,8 @@ import './assets/@common-rjsf.css';const y = {
|
|
45
45
|
c,
|
46
46
|
{
|
47
47
|
label: t,
|
48
|
-
onClick:
|
49
|
-
disabled:
|
48
|
+
onClick: o,
|
49
|
+
disabled: s || r,
|
50
50
|
uiSchema: a,
|
51
51
|
registry: i
|
52
52
|
}
|
@@ -54,8 +54,8 @@ import './assets/@common-rjsf.css';const y = {
|
|
54
54
|
}, ne = ({
|
55
55
|
canAdd: t,
|
56
56
|
className: e,
|
57
|
-
disabled:
|
58
|
-
idSchema:
|
57
|
+
disabled: o,
|
58
|
+
idSchema: s,
|
59
59
|
uiSchema: r,
|
60
60
|
items: a,
|
61
61
|
onAddClick: i,
|
@@ -65,7 +65,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
65
65
|
title: f
|
66
66
|
}) => {
|
67
67
|
const p = B(r), u = I("ArrayFieldItemTemplate", l, p), m = p.title || f;
|
68
|
-
return /* @__PURE__ */ n.jsx("fieldset", { className: e, id:
|
68
|
+
return /* @__PURE__ */ n.jsx("fieldset", { className: e, id: s.$id, children: a.length ? /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
69
69
|
a.map(({ key: j, ...x }, g) => {
|
70
70
|
const h = {
|
71
71
|
...x.children,
|
@@ -81,29 +81,29 @@ import './assets/@common-rjsf.css';const y = {
|
|
81
81
|
label: m,
|
82
82
|
canAdd: t,
|
83
83
|
onAddClick: i,
|
84
|
-
disabled:
|
84
|
+
disabled: o,
|
85
85
|
readonly: c,
|
86
86
|
uiSchema: r,
|
87
87
|
registry: l
|
88
88
|
}
|
89
89
|
)
|
90
|
-
] }) : /* @__PURE__ */ n.jsx(b, { label: m, required: d, showLabel: !0, id:
|
90
|
+
] }) : /* @__PURE__ */ n.jsx(b, { label: m, required: d, showLabel: !0, id: s.$id, children: /* @__PURE__ */ n.jsx(
|
91
91
|
S,
|
92
92
|
{
|
93
93
|
label: m,
|
94
94
|
canAdd: t,
|
95
95
|
onAddClick: i,
|
96
|
-
disabled:
|
96
|
+
disabled: o,
|
97
97
|
readonly: c,
|
98
98
|
uiSchema: r,
|
99
99
|
registry: l
|
100
100
|
}
|
101
101
|
) }) });
|
102
|
-
},
|
102
|
+
}, oe = ({
|
103
103
|
children: t,
|
104
104
|
disabled: e,
|
105
|
-
hasToolbar:
|
106
|
-
hasRemove:
|
105
|
+
hasToolbar: o,
|
106
|
+
hasRemove: s,
|
107
107
|
index: r,
|
108
108
|
onDropIndexClick: a,
|
109
109
|
readonly: i,
|
@@ -113,7 +113,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
113
113
|
const { RemoveButton: d } = c.templates.ButtonTemplates;
|
114
114
|
return /* @__PURE__ */ n.jsxs("div", { className: "dc__position-rel display-grid rjsf-form-template__array-field-item flex-align-center", children: [
|
115
115
|
t,
|
116
|
-
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children:
|
116
|
+
/* @__PURE__ */ n.jsx("div", { className: "dc__position-abs remove-btn__container", style: { right: "-28px", top: "9px" }, children: o && s && /* @__PURE__ */ n.jsx(
|
117
117
|
d,
|
118
118
|
{
|
119
119
|
disabled: e || i,
|
@@ -124,19 +124,19 @@ import './assets/@common-rjsf.css';const y = {
|
|
124
124
|
) })
|
125
125
|
] });
|
126
126
|
}, {
|
127
|
-
templates: { BaseInputTemplate:
|
127
|
+
templates: { BaseInputTemplate: se }
|
128
128
|
} = k(), re = ({ placeholder: t, ...e }) => /* @__PURE__ */ n.jsx(
|
129
|
-
|
129
|
+
se,
|
130
130
|
{
|
131
|
-
placeholder: t ||
|
131
|
+
placeholder: t || N.INPUT,
|
132
132
|
...e,
|
133
133
|
className: "form__input cn-9 fs-13 lh-20 fw-4"
|
134
134
|
}
|
135
135
|
), R = ({
|
136
136
|
label: t,
|
137
137
|
icon: e,
|
138
|
-
iconType:
|
139
|
-
registry:
|
138
|
+
iconType: o,
|
139
|
+
registry: s,
|
140
140
|
uiSchema: r,
|
141
141
|
...a
|
142
142
|
}) => {
|
@@ -150,26 +150,26 @@ import './assets/@common-rjsf.css';const y = {
|
|
150
150
|
title: "Add",
|
151
151
|
children: [
|
152
152
|
/* @__PURE__ */ n.jsx(X, { className: "icon-dim-16 fcb-5" }),
|
153
|
-
/* @__PURE__ */ n.jsx(
|
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
154
|
]
|
155
155
|
}
|
156
156
|
) });
|
157
|
-
}, ae = ({ icon: t, iconType: e, registry:
|
158
|
-
const { submitText: e, norender:
|
159
|
-
return
|
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
160
|
}, T = ({
|
161
161
|
id: t,
|
162
162
|
title: e,
|
163
|
-
required:
|
164
|
-
description:
|
163
|
+
required: o,
|
164
|
+
description: s
|
165
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(
|
167
|
-
|
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
168
|
] }), le = (t) => {
|
169
169
|
const {
|
170
170
|
id: e,
|
171
|
-
label:
|
172
|
-
children:
|
171
|
+
label: o,
|
172
|
+
children: s,
|
173
173
|
errors: r,
|
174
174
|
hidden: a,
|
175
175
|
required: i,
|
@@ -184,14 +184,14 @@ import './assets/@common-rjsf.css';const y = {
|
|
184
184
|
l,
|
185
185
|
m
|
186
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:
|
187
|
+
return a ? /* @__PURE__ */ n.jsx("div", { className: "hidden", children: s }) : (
|
188
188
|
// NOTE: need to override the margins of default rjsf css
|
189
189
|
/* @__PURE__ */ n.jsxs("div", { className: `${f} mb-0`, children: [
|
190
190
|
h && /* @__PURE__ */ n.jsx(
|
191
191
|
T,
|
192
192
|
{
|
193
193
|
id: e,
|
194
|
-
title:
|
194
|
+
title: o,
|
195
195
|
required: i,
|
196
196
|
registry: l,
|
197
197
|
uiSchema: d,
|
@@ -202,24 +202,24 @@ import './assets/@common-rjsf.css';const y = {
|
|
202
202
|
/* @__PURE__ */ n.jsx(
|
203
203
|
b,
|
204
204
|
{
|
205
|
-
label:
|
205
|
+
label: o,
|
206
206
|
showLabel: g,
|
207
207
|
id: e,
|
208
208
|
required: i,
|
209
209
|
rawDescription: u,
|
210
|
-
children: /* @__PURE__ */ n.jsx(j, { ...t, children:
|
210
|
+
children: /* @__PURE__ */ n.jsx(j, { ...t, children: s })
|
211
211
|
}
|
212
212
|
),
|
213
213
|
r
|
214
214
|
] })
|
215
215
|
);
|
216
216
|
}, ce = ({ errors: t = [], idSchema: e }) => {
|
217
|
-
const
|
218
|
-
return t.length > 0 && /* @__PURE__ */ n.jsx("span", { className: "display-grid rjsf-form-template__field--error dc__gap-12", id:
|
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
219
|
/* @__PURE__ */ n.jsx("span", {}),
|
220
220
|
/* @__PURE__ */ n.jsxs("span", { className: "form__error", children: [
|
221
221
|
/* @__PURE__ */ n.jsx(ee, { className: "form__icon form__icon--error" }),
|
222
|
-
|
222
|
+
s
|
223
223
|
] })
|
224
224
|
] }, r)) });
|
225
225
|
}, de = (t, e) => {
|
@@ -236,33 +236,33 @@ import './assets/@common-rjsf.css';const y = {
|
|
236
236
|
paddingBottom: 0,
|
237
237
|
cursor: "pointer"
|
238
238
|
}),
|
239
|
-
control: (e,
|
239
|
+
control: (e, o) => ({
|
240
240
|
...e,
|
241
241
|
minHeight: "32px",
|
242
242
|
boxShadow: "none",
|
243
|
-
backgroundColor: "var(--
|
244
|
-
border:
|
243
|
+
backgroundColor: "var(--bg-secondary)",
|
244
|
+
border: o.isFocused ? "1px solid var(--B500)" : "1px solid var(--N200)",
|
245
245
|
cursor: "pointer"
|
246
246
|
}),
|
247
|
-
option: (e,
|
247
|
+
option: (e, o) => ({
|
248
248
|
...e,
|
249
249
|
color: "var(--N900)",
|
250
|
-
backgroundColor:
|
250
|
+
backgroundColor: o.isFocused ? "var(--N100)" : "var(--bg-primary)",
|
251
251
|
padding: "10px 12px",
|
252
252
|
cursor: "pointer"
|
253
253
|
}),
|
254
|
-
dropdownIndicator: (e,
|
254
|
+
dropdownIndicator: (e, o) => ({
|
255
255
|
...e,
|
256
256
|
color: "var(--N400)",
|
257
257
|
padding: "0 8px",
|
258
258
|
transition: "all .2s ease",
|
259
|
-
transform:
|
259
|
+
transform: o.selectProps.menuIsOpen ? "rotate(180deg)" : "rotate(0deg)"
|
260
260
|
}),
|
261
|
-
valueContainer: (e,
|
261
|
+
valueContainer: (e, o) => ({
|
262
262
|
...e,
|
263
263
|
padding: "0 8px",
|
264
264
|
fontWeight: "400",
|
265
|
-
color:
|
265
|
+
color: o.selectProps.menuIsOpen ? "var(--N500)" : e.color
|
266
266
|
}),
|
267
267
|
loadingMessage: (e) => ({
|
268
268
|
...e,
|
@@ -276,12 +276,24 @@ import './assets/@common-rjsf.css';const y = {
|
|
276
276
|
...e,
|
277
277
|
border: "1px solid var(--N200)",
|
278
278
|
borderRadius: "4px",
|
279
|
-
background: "
|
279
|
+
background: "var(--bg-primary)",
|
280
280
|
height: "28px",
|
281
281
|
marginRight: "8px",
|
282
282
|
padding: "2px",
|
283
283
|
fontSize: "12px"
|
284
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
|
+
}),
|
285
297
|
...t
|
286
298
|
}), Le = (t) => {
|
287
299
|
try {
|
@@ -316,7 +328,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
316
328
|
return "";
|
317
329
|
const e = t.trim();
|
318
330
|
return e.match(/^\w+(\/\w+)*$/g) ? `/${e}` : e.match(/^\w+(\.\w+)*$/g) ? `/${e.replaceAll(/\./g, "/")}` : e;
|
319
|
-
},
|
331
|
+
}, C = {
|
320
332
|
value: !1,
|
321
333
|
path: ""
|
322
334
|
}, me = (t) => {
|
@@ -326,18 +338,18 @@ import './assets/@common-rjsf.css';const y = {
|
|
326
338
|
return typeof e == "string" ? {
|
327
339
|
value: !0,
|
328
340
|
path: v(e)
|
329
|
-
} : typeof e != "object" ? structuredClone(
|
341
|
+
} : typeof e != "object" ? structuredClone(C) : Object.hasOwn(e, "condition") && "condition" in e && Object.hasOwn(e, "value") && "value" in e ? {
|
330
342
|
value: e.condition,
|
331
343
|
path: v(e.value)
|
332
344
|
} : Object.hasOwn(e, "value") && "value" in e && Object.hasOwn(e, "path") && "path" in e ? {
|
333
345
|
value: e.value,
|
334
346
|
path: v(e.path)
|
335
|
-
} : structuredClone(
|
347
|
+
} : structuredClone(C);
|
336
348
|
}, ue = ({
|
337
349
|
disabled: t,
|
338
350
|
formData: e,
|
339
|
-
idSchema:
|
340
|
-
onAddClick:
|
351
|
+
idSchema: o,
|
352
|
+
onAddClick: s,
|
341
353
|
properties: r,
|
342
354
|
readonly: a,
|
343
355
|
registry: i,
|
@@ -352,7 +364,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
352
364
|
{
|
353
365
|
label: d,
|
354
366
|
className: "object-property-expand",
|
355
|
-
onClick:
|
367
|
+
onClick: s(l),
|
356
368
|
disabled: t || a,
|
357
369
|
uiSchema: f,
|
358
370
|
registry: i
|
@@ -383,28 +395,28 @@ import './assets/@common-rjsf.css';const y = {
|
|
383
395
|
label: d,
|
384
396
|
required: c,
|
385
397
|
showLabel: !0,
|
386
|
-
id:
|
398
|
+
id: o.$id,
|
387
399
|
shouldAlignCenter: !1,
|
388
400
|
children: /* @__PURE__ */ n.jsx("div", { children: j })
|
389
401
|
}
|
390
402
|
),
|
391
403
|
m
|
392
|
-
] }) : /* @__PURE__ */ n.jsx(b, { label: d, required: c, showLabel: !0, id:
|
404
|
+
] }) : /* @__PURE__ */ n.jsx(b, { label: d, required: c, showLabel: !0, id: o.$id, children: m }) : /* @__PURE__ */ n.jsxs(n.Fragment, { children: [
|
393
405
|
j,
|
394
406
|
m
|
395
407
|
] });
|
396
408
|
}, he = (t) => {
|
397
|
-
const { idSchema: e, registry:
|
409
|
+
const { idSchema: e, registry: o, required: s, schema: r, title: a, uiSchema: i, description: c } = t, l = !!r.additionalProperties, d = a && !l;
|
398
410
|
return /* @__PURE__ */ n.jsxs("fieldset", { id: e.$id, children: [
|
399
411
|
d && /* @__PURE__ */ n.jsx(
|
400
412
|
T,
|
401
413
|
{
|
402
414
|
id: Y(e),
|
403
415
|
title: a,
|
404
|
-
required:
|
416
|
+
required: s,
|
405
417
|
schema: r,
|
406
418
|
uiSchema: i,
|
407
|
-
registry:
|
419
|
+
registry: o,
|
408
420
|
description: c
|
409
421
|
}
|
410
422
|
),
|
@@ -419,8 +431,8 @@ import './assets/@common-rjsf.css';const y = {
|
|
419
431
|
}, fe = ({
|
420
432
|
id: t,
|
421
433
|
disabled: e,
|
422
|
-
label:
|
423
|
-
onKeyChange:
|
434
|
+
label: o,
|
435
|
+
onKeyChange: s,
|
424
436
|
onDropPropertyClick: r,
|
425
437
|
readonly: a,
|
426
438
|
schema: i,
|
@@ -436,9 +448,9 @@ import './assets/@common-rjsf.css';const y = {
|
|
436
448
|
type: "text",
|
437
449
|
className: "form__input cn-9 fs-13 lh-20 fw-4",
|
438
450
|
id: `${t}-key`,
|
439
|
-
onBlur: (m) =>
|
440
|
-
placeholder:
|
441
|
-
defaultValue:
|
451
|
+
onBlur: (m) => s(m.target.value),
|
452
|
+
placeholder: N.OBJECT_KEY,
|
453
|
+
defaultValue: o
|
442
454
|
}
|
443
455
|
) }),
|
444
456
|
/* @__PURE__ */ n.jsx("div", { children: c }),
|
@@ -446,7 +458,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
446
458
|
p,
|
447
459
|
{
|
448
460
|
disabled: e || a,
|
449
|
-
onClick: r(
|
461
|
+
onClick: r(o),
|
450
462
|
uiSchema: l,
|
451
463
|
registry: d
|
452
464
|
}
|
@@ -455,8 +467,8 @@ import './assets/@common-rjsf.css';const y = {
|
|
455
467
|
}, xe = ({
|
456
468
|
id: t,
|
457
469
|
onChange: e,
|
458
|
-
value:
|
459
|
-
required:
|
470
|
+
value: o,
|
471
|
+
required: s,
|
460
472
|
disabled: r,
|
461
473
|
readonly: a,
|
462
474
|
autofocus: i,
|
@@ -466,7 +478,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
466
478
|
const d = (p, u) => {
|
467
479
|
const { id: m, checked: j } = p.target;
|
468
480
|
u === "blur" ? c(m, j) : u === "focus" && l(m, j);
|
469
|
-
}, f = J(
|
481
|
+
}, f = J(o) ? !1 : o;
|
470
482
|
return /* @__PURE__ */ n.jsxs("div", { children: [
|
471
483
|
/* @__PURE__ */ n.jsx(
|
472
484
|
U,
|
@@ -475,7 +487,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
475
487
|
onSelect: e,
|
476
488
|
id: t,
|
477
489
|
name: t,
|
478
|
-
required:
|
490
|
+
required: s,
|
479
491
|
disabled: r || a,
|
480
492
|
autoFocus: i,
|
481
493
|
rootClassName: "w-32 mb-0 dc__height-inherit",
|
@@ -485,11 +497,11 @@ import './assets/@common-rjsf.css';const y = {
|
|
485
497
|
),
|
486
498
|
/* @__PURE__ */ n.jsx("span", { className: "dc__capitalize ml-8", children: f.toString() })
|
487
499
|
] });
|
488
|
-
},
|
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) => {
|
489
501
|
const {
|
490
502
|
id: e,
|
491
|
-
multiple:
|
492
|
-
options:
|
503
|
+
multiple: o = !1,
|
504
|
+
options: s,
|
493
505
|
value: r,
|
494
506
|
disabled: a,
|
495
507
|
readonly: i,
|
@@ -498,29 +510,29 @@ import './assets/@common-rjsf.css';const y = {
|
|
498
510
|
onBlur: d,
|
499
511
|
onFocus: f,
|
500
512
|
placeholder: p
|
501
|
-
} = t, { enumOptions: u = [] } =
|
502
|
-
l(
|
503
|
-
}, x = (g) =>
|
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));
|
504
516
|
return /* @__PURE__ */ n.jsx(
|
505
517
|
M,
|
506
518
|
{
|
507
519
|
id: e,
|
508
520
|
name: e,
|
509
|
-
isMulti:
|
521
|
+
isMulti: o,
|
510
522
|
value: typeof r > "u" ? m : x(r),
|
511
523
|
autoFocus: c,
|
512
524
|
onChange: j,
|
513
525
|
options: u,
|
514
526
|
onBlur: () => d(e, r),
|
515
527
|
onFocus: () => f(e, r),
|
516
|
-
placeholder: p ||
|
528
|
+
placeholder: p || N.SELECT,
|
517
529
|
isDisabled: a || i,
|
518
530
|
styles: {
|
519
|
-
...
|
531
|
+
...F,
|
520
532
|
control: (g) => ({
|
521
533
|
...g,
|
522
|
-
...
|
523
|
-
backgroundColor: "var(--
|
534
|
+
...F.control,
|
535
|
+
backgroundColor: "var(--bg-secondary)"
|
524
536
|
})
|
525
537
|
},
|
526
538
|
components: {
|
@@ -535,7 +547,7 @@ import './assets/@common-rjsf.css';const y = {
|
|
535
547
|
CheckboxWidget: xe,
|
536
548
|
SelectWidget: _e
|
537
549
|
}, ve = {
|
538
|
-
ArrayFieldItemTemplate:
|
550
|
+
ArrayFieldItemTemplate: oe,
|
539
551
|
ArrayFieldTemplate: ne,
|
540
552
|
BaseInputTemplate: re,
|
541
553
|
ButtonTemplates: { AddButton: R, RemoveButton: ae, SubmitButton: ie },
|
@@ -544,15 +556,15 @@ import './assets/@common-rjsf.css';const y = {
|
|
544
556
|
ObjectFieldTemplate: he,
|
545
557
|
TitleFieldTemplate: T,
|
546
558
|
WrapIfAdditionalTemplate: fe
|
547
|
-
},
|
548
|
-
|
559
|
+
}, ye = L, Ne = D, De = E((t, e) => /* @__PURE__ */ n.jsx(
|
560
|
+
ye,
|
549
561
|
{
|
550
562
|
noHtml5Validate: !0,
|
551
563
|
showErrorList: !1,
|
552
564
|
autoComplete: "off",
|
553
565
|
...t,
|
554
566
|
className: `rjsf-form-template__container ${t.className || ""}`,
|
555
|
-
validator:
|
567
|
+
validator: Ne,
|
556
568
|
templates: {
|
557
569
|
...ve,
|
558
570
|
...t.templates
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { g as ct, l as m, o as I, p as Yr, q as we, r as T, t as at, v as zt, w as ae, x as Xe, y as J, z as kr, B as Qn, C as Xr,
|
1
|
+
import { g as ct, l as m, o as I, p as Yr, q as we, r as T, t as at, v as zt, w as ae, x as Xe, y as J, z as kr, B as Qn, C as Xr, E as ti, F as ei, G as ri, H as ni, I as ii, K as Wr, L as ai, M as oi, N as si, O as ui, P as li, S as fi, T as ci, U as yt, V as k, W as pe, X as Zr, Y as vi, Z as di, $ as W, a0 as $, a1 as pi, a2 as he, a3 as Dt, a4 as hi, a5 as mi, a6 as $r, a7 as Mt, a8 as O, a9 as me, aa as gi, ab as oe, ac as yi } from "./@vendor-CB7cq1II.js";
|
2
2
|
import * as K from "react";
|
3
3
|
import Ee, { createContext as bt, useContext as F, useLayoutEffect as Pi, useEffect as G, useState as qr, useRef as q, useCallback as ge, useMemo as It, forwardRef as bi, createElement as Vi, cloneElement as Ti, Children as Si, isValidElement as xi } from "react";
|
4
4
|
var We = "production", Le = typeof process > "u" || process.env === void 0 ? We : process.env.NODE_ENV || We, Q = function(t) {
|