@devtron-labs/devtron-fe-common-lib 0.0.55-beta-1 → 0.0.55-beta-3
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/{CodeEditor-0a5bfd53.js → CodeEditor-3c2aaef5.js} +11082 -11082
- package/dist/Common/AddCDButton/AddCDButton.js +24 -24
- package/dist/Common/AppStatus/AppStatus.js +16 -16
- package/dist/Common/BreadCrumb/BreadCrumb.js +43 -43
- package/dist/Common/BreadCrumb/BreadcrumbStore.js +9 -9
- package/dist/Common/ChartVersionAndTypeSelector.js +42 -42
- package/dist/Common/Checkbox.js +8 -8
- package/dist/Common/ClipboardButton/ClipboardButton.js +17 -17
- package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +10 -10
- package/dist/Common/CodeEditor/CodeEditor.js +4 -4
- package/dist/Common/Common.service.js +1 -1
- package/dist/Common/CustomInput/CustomInput.js +56 -56
- package/dist/Common/CustomTagSelector/PropagateTagInfo.js +22 -22
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +22 -22
- package/dist/Common/CustomTagSelector/TagDetails.js +33 -33
- package/dist/Common/CustomTagSelector/TagLabelSelect.js +33 -33
- package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +83 -83
- package/dist/Common/DebouncedSearch/DebouncedSearch.js +24 -24
- package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +16 -16
- package/dist/Common/DeleteComponentModal/DeleteComponent.js +49 -49
- package/dist/Common/DevtronProgressing/DevtronProgressing.js +2 -2
- package/dist/Common/Dialogs/ConfirmationDialog.js +14 -14
- package/dist/Common/Dialogs/DeleteDialog.js +24 -24
- package/dist/Common/Dialogs/DialogForm.js +21 -21
- package/dist/Common/Dialogs/ForceDeleteDialog.js +12 -12
- package/dist/Common/DraggableWrapper/DraggableButton.js +6 -6
- package/dist/Common/DraggableWrapper/DraggableWrapper.js +42 -1468
- package/dist/Common/Drawer/Drawer.js +6 -6
- package/dist/Common/EmptyState/EmptyState.js +19 -19
- package/dist/Common/EmptyState/GenericEmptyState.js +25 -25
- package/dist/Common/Error.js +6 -6
- package/dist/Common/ErrorScreenNotFound.js +3 -3
- package/dist/Common/Grid/Grid.js +11 -11
- package/dist/Common/Helper.js +3 -3
- package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +1 -1
- package/dist/Common/ImageTags.js +224 -221
- package/dist/Common/InfoColorBar/InfoColourbar.js +37 -37
- package/dist/Common/Modals/Modal.js +8 -8
- package/dist/Common/Modals/OpaqueModal.js +13 -13
- package/dist/Common/Modals/VisibleModal.js +3 -3
- package/dist/Common/Modals/VisibleModal2.js +8 -8
- package/dist/Common/MultiSelectCustomization.js +45 -45
- package/dist/Common/Pagination/PageSizeSelector.js +37 -34
- package/dist/Common/Pagination/Pagination.js +60 -57
- package/dist/Common/PopupMenu.js +32 -32
- package/dist/Common/Progressing.js +20 -20
- package/dist/Common/RJSF/Form.js +14 -9877
- package/dist/Common/RJSF/common/FieldRow.js +16 -16
- package/dist/Common/RJSF/config.js +3 -3
- package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.js +13 -13
- package/dist/Common/RJSF/templates/ArrayFieldTemplate.js +37 -40
- package/dist/Common/RJSF/templates/BaseInput.js +14 -6
- package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.js +6 -6
- package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.js +3 -3
- package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.js +6 -8
- package/dist/Common/RJSF/templates/Description.js +6 -6
- package/dist/Common/RJSF/templates/Field.js +12 -15
- package/dist/Common/RJSF/templates/FieldErrorTemplate.js +8 -10
- package/dist/Common/RJSF/templates/ObjectFieldTemplate.js +35 -40
- package/dist/Common/RJSF/templates/TitleField.js +5 -5
- package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.js +23 -24
- package/dist/Common/RJSF/templates/index.js +3 -3
- package/dist/Common/RJSF/utils.js +9 -12
- package/dist/Common/RJSF/widgets/Checkbox.js +20 -20
- package/dist/Common/RJSF/widgets/Select.js +609 -40
- package/dist/Common/RadioGroup/RadioGroup.js +32 -32
- package/dist/Common/RadioGroup.js +17 -17
- package/dist/Common/Reload.js +10 -10
- package/dist/Common/ResizableTextarea.js +11 -11
- package/dist/Common/SearchBar/SearchBar.component.js +26 -26
- package/dist/Common/Security/ScanVulnerabilitiesTable.js +20 -20
- package/dist/Common/Select/Select.js +93 -93
- package/dist/Common/TippyCustomized.js +4 -4
- package/dist/Common/ToastBody.js +22 -22
- package/dist/Common/Toggle/Toggle.js +15 -15
- package/dist/Common/index.js +3 -3
- package/dist/{Helper-e1262739.js → Helper-a0caa238.js} +916 -916
- package/dist/TippyCustomized-7b9b46b9.js +124 -0
- package/dist/{_commonjsHelpers-c5d32002.js → _commonjsHelpers-aeeeeb92.js} +2 -2
- package/dist/{cssMode-c259da7f.js → cssMode-c5cae484.js} +1 -1
- package/dist/{freemarker2-d852fa33.js → freemarker2-b9a8615c.js} +1 -1
- package/dist/{handlebars-7e868cd0.js → handlebars-3803af36.js} +1 -1
- package/dist/{html-1faea799.js → html-498f0150.js} +1 -1
- package/dist/{htmlMode-175871d9.js → htmlMode-a8ae8cc5.js} +1 -1
- package/dist/index.js +3 -3
- package/dist/{javascript-46245cbe.js → javascript-4363ced3.js} +1 -1
- package/dist/{jsonMode-bbe5176f.js → jsonMode-80290b9e.js} +1 -1
- package/dist/jsx-runtime-0dcb030c.js +667 -0
- package/dist/{liquid-e6b820e1.js → liquid-1398df0a.js} +1 -1
- package/dist/{python-7d292338.js → python-dd2d43e8.js} +1 -1
- package/dist/{razor-c6ab49dd.js → razor-20a66096.js} +1 -1
- package/dist/{react-select.esm-27b8d563.js → react-select.esm-97f26847.js} +1280 -1112
- package/dist/{react-toastify.esm-e28f7200.js → react-toastify.esm-1042de65.js} +149 -155
- package/dist/{react.esm-5465a283.js → react.esm-2c92920f.js} +4929 -4393
- package/dist/{tippy-react.esm-d5c56a0a.js → tippy-react.esm-8dc66a75.js} +89 -89
- package/dist/{tsMode-4d1329d1.js → tsMode-3fa4eb6a.js} +1 -1
- package/dist/{typescript-402306e6.js → typescript-1bbaf605.js} +1 -1
- package/dist/{xml-8975e1f9.js → xml-a2693dbd.js} +1 -1
- package/dist/{yaml-680c02bf.js → yaml-01ce4fdd.js} +1 -1
- package/package.json +3 -12
- package/dist/BaseInput-8101e714.js +0 -1686
- package/dist/Common/UseWindowSize.d.ts +0 -4
- package/dist/Common/UseWindowSize.js +0 -20
- package/dist/TippyCustomized-c58fd46a.js +0 -124
- package/dist/canExpand-ab1f6741.js +0 -10
- package/dist/englishStringTranslator-2c9a30fc.js +0 -17
- package/dist/enums-d0bd3f97.js +0 -6618
- package/dist/getSubmitButtonOptions-a1be9bb0.js +0 -20
- package/dist/getTemplate-91d3260d.js +0 -11
- package/dist/getUiOptions-844b45a7.js +0 -10
- package/dist/idGenerators-0b33693c.js +0 -35
- package/dist/index-5a231705.js +0 -17417
- package/dist/index-c855d89c.js +0 -173
package/dist/Common/PopupMenu.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as x } from "../jsx-runtime-0dcb030c.js";
|
|
2
2
|
import l, { useEffect as B } from "react";
|
|
3
3
|
import { Modal as S } from "./Modals/Modal.js";
|
|
4
4
|
const P = l.createContext(null);
|
|
@@ -14,31 +14,31 @@ function v({
|
|
|
14
14
|
autoClose: a = !1,
|
|
15
15
|
autoPosition: d = !1
|
|
16
16
|
}) {
|
|
17
|
-
const [
|
|
18
|
-
l.useEffect(() => (t.current = window.IntersectionObserver ? new IntersectionObserver(
|
|
17
|
+
const [s, u] = l.useState(null), [h, n] = l.useState(0), t = l.useRef(null), r = l.useRef(null), f = l.useRef(null);
|
|
18
|
+
l.useEffect(() => (t.current = window.IntersectionObserver ? new IntersectionObserver(O, j) : null, () => {
|
|
19
19
|
t && t.current && t.current.disconnect && t.current.disconnect();
|
|
20
20
|
}), []), B(() => {
|
|
21
|
-
typeof i == "function" && i(!!
|
|
22
|
-
}, [
|
|
23
|
-
if (r?.current && d &&
|
|
24
|
-
const { height: e, x: p, y:
|
|
25
|
-
u({ left: p, top:
|
|
21
|
+
typeof i == "function" && i(!!s);
|
|
22
|
+
}, [s]), B(() => {
|
|
23
|
+
if (r?.current && d && s) {
|
|
24
|
+
const { height: e, x: p, y: c } = r.current.getBoundingClientRect();
|
|
25
|
+
u({ left: p, top: c + e });
|
|
26
26
|
}
|
|
27
27
|
}, [r?.current?.clientHeight]);
|
|
28
|
-
let
|
|
28
|
+
let j = {
|
|
29
29
|
root: null,
|
|
30
30
|
rootMargin: "0px",
|
|
31
31
|
threshold: 1
|
|
32
32
|
};
|
|
33
33
|
if (!o)
|
|
34
34
|
return o;
|
|
35
|
-
function
|
|
36
|
-
e.forEach((
|
|
37
|
-
if (
|
|
35
|
+
function O(e, p) {
|
|
36
|
+
e.forEach((c) => {
|
|
37
|
+
if (c.isIntersecting && c.intersectionRatio >= 1)
|
|
38
38
|
n(1);
|
|
39
39
|
else {
|
|
40
|
-
const { boundingClientRect: b, rootBounds: g } =
|
|
41
|
-
x:
|
|
40
|
+
const { boundingClientRect: b, rootBounds: g } = c, { x: R, y: m, height: y, width: C } = b, {
|
|
41
|
+
x: M,
|
|
42
42
|
y: H,
|
|
43
43
|
height: L,
|
|
44
44
|
width: X,
|
|
@@ -47,39 +47,39 @@ function v({
|
|
|
47
47
|
top: z,
|
|
48
48
|
bottom: A
|
|
49
49
|
} = r.current.getBoundingClientRect();
|
|
50
|
-
m +
|
|
50
|
+
m + y > g.height && (u({ left: M, bottom: document.documentElement.clientHeight - H }), n(1)), R + C > g.width && (u((I) => ({ ...I, right: "20px", left: "unset" })), n(1));
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
const
|
|
54
|
+
const $ = (e) => {
|
|
55
55
|
e.stopPropagation(), n(0);
|
|
56
|
-
const { height: p, x:
|
|
57
|
-
u({ left:
|
|
58
|
-
},
|
|
56
|
+
const { height: p, x: c, y: b } = e.currentTarget.getBoundingClientRect();
|
|
57
|
+
u({ left: c, top: b + p });
|
|
58
|
+
}, k = (e, p) => {
|
|
59
59
|
a || p === "out" ? (t && t.current && t.current.disconnect && t.current.disconnect(), n(0), u(null)) : e.stopPropagation();
|
|
60
60
|
};
|
|
61
61
|
function E(e) {
|
|
62
62
|
e && t?.current?.observe ? t.current.observe(e) : t.current.disconnect();
|
|
63
63
|
}
|
|
64
|
-
function
|
|
64
|
+
function W(e) {
|
|
65
65
|
if (!e)
|
|
66
66
|
return;
|
|
67
67
|
r.current = e;
|
|
68
|
-
const { bottom: p, height:
|
|
68
|
+
const { bottom: p, height: c, left: b, right: g, top: R, width: m, x: y, y: C } = e.getBoundingClientRect();
|
|
69
69
|
f.current = m;
|
|
70
70
|
}
|
|
71
|
-
return /* @__PURE__ */
|
|
71
|
+
return /* @__PURE__ */ x.jsx(
|
|
72
72
|
P.Provider,
|
|
73
73
|
{
|
|
74
74
|
value: {
|
|
75
|
-
handleOpen:
|
|
76
|
-
popupPosition:
|
|
77
|
-
handleClose:
|
|
75
|
+
handleOpen: $,
|
|
76
|
+
popupPosition: s,
|
|
77
|
+
handleClose: k,
|
|
78
78
|
opacity: h,
|
|
79
79
|
setPopupPosition: u,
|
|
80
80
|
callbackRef: E,
|
|
81
81
|
buttonRef: r,
|
|
82
|
-
initialiseButtonWidth:
|
|
82
|
+
initialiseButtonWidth: W,
|
|
83
83
|
buttonWidth: f
|
|
84
84
|
},
|
|
85
85
|
children: o
|
|
@@ -91,12 +91,12 @@ function N({
|
|
|
91
91
|
disabled: i = !1,
|
|
92
92
|
rootClassName: a = "",
|
|
93
93
|
tabIndex: d = 0,
|
|
94
|
-
onHover:
|
|
94
|
+
onHover: s = !1,
|
|
95
95
|
isKebab: u = !1,
|
|
96
96
|
dataTestId: h = ""
|
|
97
97
|
}) {
|
|
98
98
|
const { handleOpen: n, popupPosition: t, buttonRef: r, initialiseButtonWidth: f } = w();
|
|
99
|
-
return /* @__PURE__ */
|
|
99
|
+
return /* @__PURE__ */ x.jsx(
|
|
100
100
|
"button",
|
|
101
101
|
{
|
|
102
102
|
ref: f,
|
|
@@ -104,7 +104,7 @@ function N({
|
|
|
104
104
|
tabIndex: d,
|
|
105
105
|
disabled: i,
|
|
106
106
|
className: `${a} ${t ? "focused" : ""} ${u ? "popup-button-kebab" : "popup-button"}`,
|
|
107
|
-
onMouseEnter:
|
|
107
|
+
onMouseEnter: s ? i ? null : n : () => {
|
|
108
108
|
},
|
|
109
109
|
onClick: i ? null : n,
|
|
110
110
|
"data-testid": h,
|
|
@@ -117,11 +117,11 @@ function _({
|
|
|
117
117
|
rootClassName: i = "",
|
|
118
118
|
style: a = {},
|
|
119
119
|
autoWidth: d = !1,
|
|
120
|
-
preventWheelDisable:
|
|
120
|
+
preventWheelDisable: s = !1,
|
|
121
121
|
noBackDrop: u
|
|
122
122
|
}) {
|
|
123
123
|
const { handleClose: h, popupPosition: n, opacity: t, callbackRef: r, buttonWidth: f } = w();
|
|
124
|
-
return n ? /* @__PURE__ */
|
|
124
|
+
return n ? /* @__PURE__ */ x.jsx(
|
|
125
125
|
S,
|
|
126
126
|
{
|
|
127
127
|
callbackRef: r,
|
|
@@ -135,7 +135,7 @@ function _({
|
|
|
135
135
|
...d ? { width: f.current } : {},
|
|
136
136
|
opacity: t
|
|
137
137
|
},
|
|
138
|
-
preventWheelDisable:
|
|
138
|
+
preventWheelDisable: s,
|
|
139
139
|
noBackDrop: u,
|
|
140
140
|
children: o
|
|
141
141
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
function
|
|
3
|
-
const
|
|
4
|
-
return /* @__PURE__ */ e("div", { className: `loader ${a || "default"}-background`, style:
|
|
5
|
-
/* @__PURE__ */ e(
|
|
1
|
+
import { j as e } from "../jsx-runtime-0dcb030c.js";
|
|
2
|
+
function n({ pageLoader: t, size: s, theme: a, styles: i, fillColor: l }) {
|
|
3
|
+
const r = s ? `${s}px` : t ? "48px" : "20px";
|
|
4
|
+
return /* @__PURE__ */ e.jsx("div", { className: `loader ${a || "default"}-background`, style: i, "data-testid": "progressing", children: /* @__PURE__ */ e.jsx("div", { style: { width: r, height: r }, children: /* @__PURE__ */ e.jsx("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", className: "loader__svg", children: /* @__PURE__ */ e.jsxs("g", { fill: "none", fillRule: "evenodd", strokeLinecap: "round", children: [
|
|
5
|
+
/* @__PURE__ */ e.jsx(
|
|
6
6
|
"animateTransform",
|
|
7
7
|
{
|
|
8
8
|
attributeName: "transform",
|
|
@@ -14,39 +14,39 @@ function d({ pageLoader: r, size: t, theme: a, styles: l, fillColor: i }) {
|
|
|
14
14
|
type: "rotate"
|
|
15
15
|
}
|
|
16
16
|
),
|
|
17
|
-
/* @__PURE__ */ e(
|
|
17
|
+
/* @__PURE__ */ e.jsx(
|
|
18
18
|
"path",
|
|
19
19
|
{
|
|
20
|
-
fill:
|
|
20
|
+
fill: l || "#06C",
|
|
21
21
|
fillRule: "nonzero",
|
|
22
22
|
d: "M12 2.5A9.5 9.5 0 1 1 2.5 12a1.5 1.5 0 0 1 3 0A6.5 6.5 0 1 0 12 5.5a1.5 1.5 0 0 1 0-3z"
|
|
23
23
|
}
|
|
24
24
|
)
|
|
25
25
|
] }) }) }) });
|
|
26
26
|
}
|
|
27
|
-
function
|
|
28
|
-
loadingText:
|
|
29
|
-
size:
|
|
27
|
+
function o({
|
|
28
|
+
loadingText: t,
|
|
29
|
+
size: s = 24,
|
|
30
30
|
fullHeight: a = !1,
|
|
31
|
-
styles:
|
|
32
|
-
fillColor:
|
|
33
|
-
children:
|
|
31
|
+
styles: i,
|
|
32
|
+
fillColor: l,
|
|
33
|
+
children: r
|
|
34
34
|
}) {
|
|
35
|
-
return /* @__PURE__ */
|
|
35
|
+
return /* @__PURE__ */ e.jsxs(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
38
|
className: `details-loader bcn-0 flex column fs-14 fw-6 ${a ? "h-100" : "details-loader-height"}`,
|
|
39
|
-
style:
|
|
39
|
+
style: i,
|
|
40
40
|
"data-testid": "details-progressing",
|
|
41
41
|
children: [
|
|
42
|
-
/* @__PURE__ */ e("span", { style: { width: `${
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
/* @__PURE__ */ e.jsx("span", { style: { width: `${s}px`, height: `${s}px` }, children: /* @__PURE__ */ e.jsx(n, { size: s, fillColor: l }) }),
|
|
43
|
+
t && /* @__PURE__ */ e.jsx("span", { className: "mt-10", children: t }),
|
|
44
|
+
r
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
47
|
);
|
|
48
48
|
}
|
|
49
49
|
export {
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
o as DetailsProgressing,
|
|
51
|
+
n as Progressing
|
|
52
52
|
};
|