@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
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { useState as r, useEffect as w } from "react";
|
|
2
|
-
function u() {
|
|
3
|
-
function i() {
|
|
4
|
-
return {
|
|
5
|
-
width: window.innerWidth,
|
|
6
|
-
height: window.innerHeight
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
let e;
|
|
10
|
-
const [t, o] = r(i);
|
|
11
|
-
function n(d) {
|
|
12
|
-
e && window.cancelAnimationFrame(e), e = window.requestAnimationFrame(() => {
|
|
13
|
-
o(i());
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
return w(() => (window.addEventListener("resize", n, !1), () => window.removeEventListener("resize", n, !1)), []), t;
|
|
17
|
-
}
|
|
18
|
-
export {
|
|
19
|
-
u as useWindowSize
|
|
20
|
-
};
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
import "./assets/TippyCustomized.css";
|
|
2
|
-
import { jsx as e, jsxs as l, Fragment as R } from "react/jsx-runtime";
|
|
3
|
-
import * as a from "react";
|
|
4
|
-
import { useRef as B, useState as j } from "react";
|
|
5
|
-
import { T as D } from "./tippy-react.esm-d5c56a0a.js";
|
|
6
|
-
import { S as F } from "./ic-cross-0e71861d.js";
|
|
7
|
-
import { TippyTheme as P } from "./Common/Types.js";
|
|
8
|
-
import { e as W } from "./Helper-e1262739.js";
|
|
9
|
-
const q = (n) => /* @__PURE__ */ a.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ...n }, /* @__PURE__ */ a.createElement("path", { fill: "#767D84", fillRule: "evenodd", d: "M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-.205 12.868c-.615 0-1.12.505-1.12 1.12 0 .617.505 1.121 1.12 1.121.615 0 1.12-.504 1.12-1.12 0-.616-.506-1.12-1.12-1.12zM11.863 7c-1.667 0-3.197 1.187-3.196 2.527 0 .546.41.833.888.833 1.325 0 .642-1.803 2.39-1.803.82 0 1.311.438 1.311 1.175 0 1.34-2.39 1.708-2.39 3.334 0 .438.287.915.874.915.902 0 .792-.67 1.12-1.148.438-.642 2.473-1.325 2.473-3.101 0-1.927-1.721-2.732-3.47-2.732z" })), A = (n) => /* @__PURE__ */ a.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 17 16", ...n }, /* @__PURE__ */ a.createElement("path", { fill: "#767D84", fillRule: "evenodd", d: "M9 1.333c3.682 0 6.667 2.985 6.667 6.667S12.682 14.667 9 14.667 2.333 11.682 2.333 8 5.318 1.333 9 1.333zm0 1.334C6.054 2.667 3.667 5.054 3.667 8S6.054 13.333 9 13.333 14.333 10.946 14.333 8 11.946 2.667 9 2.667zm-.137 7.245c.41 0 .747.337.747.747s-.337.747-.747.747-.747-.336-.747-.747c0-.41.338-.747.747-.747zm.046-5.245c1.166 0 2.313.537 2.313 1.82 0 1.185-1.357 1.64-1.648 2.068-.22.319-.146.766-.747.766-.392 0-.583-.319-.583-.61 0-1.085 1.593-1.33 1.593-2.223 0-.492-.327-.783-.873-.783-1.166 0-.711 1.202-1.594 1.202-.319 0-.592-.191-.592-.556 0-.893 1.02-1.684 2.13-1.684z" }));
|
|
10
|
-
function Y(n) {
|
|
11
|
-
const o = B(null), [b, d] = j(!1), t = n.theme === P.white, N = (i) => {
|
|
12
|
-
o.current = i, document.addEventListener("keydown", _);
|
|
13
|
-
}, c = () => {
|
|
14
|
-
o.current?.hide && (o.current.hide(), o.current = null, n.onClose && n.onClose()), d(!1);
|
|
15
|
-
}, _ = (i) => {
|
|
16
|
-
i.keyCode === 27 && c();
|
|
17
|
-
}, y = (i) => {
|
|
18
|
-
d(W);
|
|
19
|
-
}, C = () => {
|
|
20
|
-
const {
|
|
21
|
-
Icon: i,
|
|
22
|
-
iconPath: m,
|
|
23
|
-
iconClass: p,
|
|
24
|
-
iconSize: s,
|
|
25
|
-
onImageLoadError: L,
|
|
26
|
-
heading: h,
|
|
27
|
-
headingInfo: f,
|
|
28
|
-
infoTextHeading: u,
|
|
29
|
-
hideHeading: M,
|
|
30
|
-
infoText: w,
|
|
31
|
-
showCloseButton: g,
|
|
32
|
-
additionalContent: v,
|
|
33
|
-
documentationLink: r,
|
|
34
|
-
documentationLinkText: O
|
|
35
|
-
} = n;
|
|
36
|
-
return /* @__PURE__ */ l(R, { children: [
|
|
37
|
-
!M && /* @__PURE__ */ l(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
className: `dc__word-break dc__hyphens-auto flex left ${t ? `p-12 cn-9 ${n.noHeadingBorder ? "" : "dc__border-bottom-n1"}` : "pt-20 pb-12 pr-20 pl-20 cn-0 top"}`,
|
|
41
|
-
children: [
|
|
42
|
-
m ? /* @__PURE__ */ e(
|
|
43
|
-
"img",
|
|
44
|
-
{
|
|
45
|
-
className: `icon-dim-${s || 20} mr-6 ${p || ""}`,
|
|
46
|
-
src: m,
|
|
47
|
-
alt: "Heading",
|
|
48
|
-
onError: L
|
|
49
|
-
}
|
|
50
|
-
) : i && /* @__PURE__ */ e("div", { className: `icon-dim-${s || 20} mr-6`, children: /* @__PURE__ */ e(i, { className: `icon-dim-${s || 20} ${p || ""}` }) }),
|
|
51
|
-
h && /* @__PURE__ */ e("span", { className: `fs-14 fw-6 lh-20 ${g ? "mr-6" : ""}`, children: h }),
|
|
52
|
-
f && /* @__PURE__ */ e("div", { className: "icon-dim-20 cursor", onClick: y, children: /* @__PURE__ */ e(A, { className: "icon-dim-20" }) }),
|
|
53
|
-
g && /* @__PURE__ */ e("div", { className: "icon-dim-16 ml-auto", children: /* @__PURE__ */ e(
|
|
54
|
-
F,
|
|
55
|
-
{
|
|
56
|
-
className: `icon-dim-16 cursor ${t ? "fcn-9" : "fcn-0"}`,
|
|
57
|
-
onClick: c
|
|
58
|
-
}
|
|
59
|
-
) })
|
|
60
|
-
]
|
|
61
|
-
}
|
|
62
|
-
),
|
|
63
|
-
b && /* @__PURE__ */ l(
|
|
64
|
-
"div",
|
|
65
|
-
{
|
|
66
|
-
className: `flex left top bcv-1 fs-13 fw-4 lh-20 pt-8 pb-8 ${t ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
|
67
|
-
children: [
|
|
68
|
-
/* @__PURE__ */ e("div", { className: "icon-dim-20 mr-8", children: /* @__PURE__ */ e(q, { className: "icon-dim-20 fcv-5" }) }),
|
|
69
|
-
/* @__PURE__ */ e("div", { className: "dc__word-break dc__hyphens-auto", children: f })
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
),
|
|
73
|
-
u && /* @__PURE__ */ e(
|
|
74
|
-
"div",
|
|
75
|
-
{
|
|
76
|
-
className: `dc__word-break dc__hyphens-auto fs-14 fw-6 lh-20 ${t ? "pl-12 pr-12" : "pl-20 pr-20"}`,
|
|
77
|
-
children: u
|
|
78
|
-
}
|
|
79
|
-
),
|
|
80
|
-
w && /* @__PURE__ */ e(
|
|
81
|
-
"div",
|
|
82
|
-
{
|
|
83
|
-
className: `dc__word-break dc__hyphens-auto fs-13 fw-4 lh-20 ${t ? "p-12" : `pl-20 pr-20 pt-4 ${v && r ? "pb-12" : "pb-20"}`}`,
|
|
84
|
-
children: w
|
|
85
|
-
}
|
|
86
|
-
),
|
|
87
|
-
v,
|
|
88
|
-
r && /* @__PURE__ */ e("div", { className: "pl-12 pb-12", children: /* @__PURE__ */ e(
|
|
89
|
-
"a",
|
|
90
|
-
{
|
|
91
|
-
href: r,
|
|
92
|
-
target: "_blank",
|
|
93
|
-
rel: "noreferrer noopener",
|
|
94
|
-
className: "fs-13 cb-5",
|
|
95
|
-
onClick: c,
|
|
96
|
-
children: O || "Learn more"
|
|
97
|
-
}
|
|
98
|
-
) })
|
|
99
|
-
] });
|
|
100
|
-
}, { className: k, placement: $, arrow: T, interactive: x, showOnCreate: S, trigger: z, animation: H, duration: I, children: E } = n;
|
|
101
|
-
return /* @__PURE__ */ e(
|
|
102
|
-
D,
|
|
103
|
-
{
|
|
104
|
-
className: `${t ? "tippy-white-container default-white" : "tippy-black-container default-black"} no-content-padding tippy-shadow ${k}`,
|
|
105
|
-
arrow: T || !1,
|
|
106
|
-
interactive: x || !1,
|
|
107
|
-
placement: $ || "top",
|
|
108
|
-
content: C(),
|
|
109
|
-
trigger: z || "mouseenter",
|
|
110
|
-
onMount: N,
|
|
111
|
-
onClickOutside: c,
|
|
112
|
-
showOnCreate: S || !1,
|
|
113
|
-
animation: H || "fade",
|
|
114
|
-
duration: I || 300,
|
|
115
|
-
visible: n.visible,
|
|
116
|
-
children: E
|
|
117
|
-
}
|
|
118
|
-
);
|
|
119
|
-
}
|
|
120
|
-
export {
|
|
121
|
-
A as S,
|
|
122
|
-
Y as T,
|
|
123
|
-
q as a
|
|
124
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { g as i } from "./getUiOptions-844b45a7.js";
|
|
2
|
-
function a(e, n = {}, r) {
|
|
3
|
-
if (!e.additionalProperties)
|
|
4
|
-
return !1;
|
|
5
|
-
const { expandable: t = !0 } = i(n);
|
|
6
|
-
return t === !1 ? t : e.maxProperties !== void 0 && r ? Object.keys(r).length < e.maxProperties : !0;
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
a as c
|
|
10
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
function c(t, r) {
|
|
2
|
-
let n = t;
|
|
3
|
-
if (Array.isArray(r)) {
|
|
4
|
-
const e = n.split(/(%\d)/);
|
|
5
|
-
r.forEach((a, o) => {
|
|
6
|
-
const i = e.findIndex((s) => s === `%${o + 1}`);
|
|
7
|
-
i >= 0 && (e[i] = a);
|
|
8
|
-
}), n = e.join("");
|
|
9
|
-
}
|
|
10
|
-
return n;
|
|
11
|
-
}
|
|
12
|
-
function f(t, r) {
|
|
13
|
-
return c(t, r);
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
f as e
|
|
17
|
-
};
|