@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,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { DO_NOT_SHOW_LABEL as
|
|
3
|
-
const
|
|
4
|
-
showLabel:
|
|
5
|
-
label:
|
|
6
|
-
required:
|
|
7
|
-
children:
|
|
8
|
-
id:
|
|
9
|
-
shouldAlignCenter:
|
|
10
|
-
}) => /* @__PURE__ */ s(
|
|
1
|
+
import { j as s } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { DO_NOT_SHOW_LABEL as m, DEFAULT_FIELD_TITLE as t } from "../constants.js";
|
|
3
|
+
const x = ({
|
|
4
|
+
showLabel: e,
|
|
5
|
+
label: l,
|
|
6
|
+
required: r,
|
|
7
|
+
children: i,
|
|
8
|
+
id: a,
|
|
9
|
+
shouldAlignCenter: c = !0
|
|
10
|
+
}) => /* @__PURE__ */ s.jsxs(
|
|
11
11
|
"div",
|
|
12
12
|
{
|
|
13
|
-
className:
|
|
13
|
+
className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${c ? "flex-align-center" : ""}` : "",
|
|
14
14
|
children: [
|
|
15
|
-
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
15
|
+
e && /* @__PURE__ */ s.jsx("label", { className: "cn-7 fs-13 lh-32 fw-4 flexbox mb-0", htmlFor: a, children: l !== m && /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ s.jsx("span", { className: "dc__ellipsis-right", children: l || t }),
|
|
17
|
+
r && /* @__PURE__ */ s.jsx("span", { className: "cr-5", children: " *" })
|
|
18
18
|
] }) }),
|
|
19
|
-
|
|
19
|
+
i
|
|
20
20
|
]
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
export {
|
|
24
|
-
|
|
24
|
+
x as FieldRowWithLabel
|
|
25
25
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ArrayFieldTemplate as t } from "./templates/ArrayFieldTemplate.js";
|
|
2
2
|
import { ArrayFieldItemTemplate as e } from "./templates/ArrayFieldItemTemplate.js";
|
|
3
|
-
import {
|
|
3
|
+
import { BaseInput as m } from "./templates/BaseInput.js";
|
|
4
4
|
import { AddButton as o } from "./templates/ButtonTemplates/AddButton.js";
|
|
5
5
|
import { RemoveButton as r } from "./templates/ButtonTemplates/RemoveButton.js";
|
|
6
6
|
import { SubmitButton as i } from "./templates/ButtonTemplates/SubmitButton.js";
|
|
@@ -11,10 +11,10 @@ import { ObjectFieldTemplate as d } from "./templates/ObjectFieldTemplate.js";
|
|
|
11
11
|
import { TitleField as f } from "./templates/TitleField.js";
|
|
12
12
|
import { WrapIfAdditionalTemplate as T } from "./templates/WrapIfAdditionalTemplate.js";
|
|
13
13
|
import { Checkbox as n } from "./widgets/Checkbox.js";
|
|
14
|
-
import { Select as
|
|
14
|
+
import { Select as c } from "./widgets/Select.js";
|
|
15
15
|
const C = {
|
|
16
16
|
CheckboxWidget: n,
|
|
17
|
-
SelectWidget:
|
|
17
|
+
SelectWidget: c
|
|
18
18
|
}, D = {
|
|
19
19
|
ArrayFieldItemTemplate: e,
|
|
20
20
|
ArrayFieldTemplate: t,
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as t } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
2
|
const x = ({
|
|
3
|
-
children:
|
|
3
|
+
children: a,
|
|
4
4
|
className: p,
|
|
5
|
-
disabled:
|
|
5
|
+
disabled: s,
|
|
6
6
|
hasToolbar: l,
|
|
7
7
|
hasRemove: m,
|
|
8
|
-
index:
|
|
9
|
-
onDropIndexClick:
|
|
10
|
-
readonly:
|
|
8
|
+
index: r,
|
|
9
|
+
onDropIndexClick: i,
|
|
10
|
+
readonly: o,
|
|
11
11
|
registry: e,
|
|
12
|
-
uiSchema:
|
|
12
|
+
uiSchema: n
|
|
13
13
|
}) => {
|
|
14
14
|
const { RemoveButton: d } = e.templates.ButtonTemplates;
|
|
15
|
-
return /* @__PURE__ */
|
|
16
|
-
|
|
17
|
-
l && m && /* @__PURE__ */
|
|
15
|
+
return /* @__PURE__ */ t.jsxs("div", { className: "display-grid rjsf-form-template__array-field-item flex-align-center dc__gap-8 mb-12", children: [
|
|
16
|
+
a,
|
|
17
|
+
l && m && /* @__PURE__ */ t.jsx(
|
|
18
18
|
d,
|
|
19
19
|
{
|
|
20
|
-
disabled:
|
|
21
|
-
onClick: r
|
|
22
|
-
uiSchema:
|
|
20
|
+
disabled: s || o,
|
|
21
|
+
onClick: i(r),
|
|
22
|
+
uiSchema: n,
|
|
23
23
|
registry: e
|
|
24
24
|
}
|
|
25
25
|
)
|
|
@@ -1,63 +1,60 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
import { FieldRowWithLabel as x } from "../common/FieldRow.js";
|
|
7
|
-
import { DO_NOT_SHOW_LABEL as _ } from "../constants.js";
|
|
8
|
-
const f = ({ canAdd: r, onAddClick: p, disabled: n, readonly: l, uiSchema: e, registry: o }) => {
|
|
1
|
+
import { j as t } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { getUiOptions as O, getTemplate as A } from "@rjsf/utils";
|
|
3
|
+
import { FieldRowWithLabel as B } from "../common/FieldRow.js";
|
|
4
|
+
import { DO_NOT_SHOW_LABEL as L } from "../constants.js";
|
|
5
|
+
const x = ({ canAdd: o, onAddClick: i, disabled: r, readonly: l, uiSchema: e, registry: n }) => {
|
|
9
6
|
const {
|
|
10
|
-
ButtonTemplates: { AddButton:
|
|
11
|
-
} =
|
|
12
|
-
return
|
|
13
|
-
},
|
|
14
|
-
canAdd:
|
|
15
|
-
className:
|
|
16
|
-
disabled:
|
|
7
|
+
ButtonTemplates: { AddButton: s }
|
|
8
|
+
} = n.templates;
|
|
9
|
+
return o && /* @__PURE__ */ t.jsx(s, { onClick: i, disabled: r || l, uiSchema: e, registry: n });
|
|
10
|
+
}, I = ({
|
|
11
|
+
canAdd: o,
|
|
12
|
+
className: i,
|
|
13
|
+
disabled: r,
|
|
17
14
|
idSchema: l,
|
|
18
15
|
uiSchema: e,
|
|
19
|
-
items:
|
|
20
|
-
onAddClick:
|
|
16
|
+
items: n,
|
|
17
|
+
onAddClick: s,
|
|
21
18
|
readonly: a,
|
|
22
|
-
registry:
|
|
23
|
-
required:
|
|
19
|
+
registry: p,
|
|
20
|
+
required: j,
|
|
24
21
|
title: u
|
|
25
22
|
}) => {
|
|
26
|
-
const d =
|
|
27
|
-
return /* @__PURE__ */ t("fieldset", { className:
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
...
|
|
23
|
+
const d = O(e), h = A("ArrayFieldItemTemplate", p, d), c = d.title || u;
|
|
24
|
+
return /* @__PURE__ */ t.jsx("fieldset", { className: i, id: l.$id, children: n.length ? /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
25
|
+
n.map(({ key: T, ...m }, f) => {
|
|
26
|
+
const F = {
|
|
27
|
+
...m.children,
|
|
31
28
|
props: {
|
|
32
|
-
...
|
|
33
|
-
name:
|
|
29
|
+
...m.children.props,
|
|
30
|
+
name: f === 0 ? c : L
|
|
34
31
|
}
|
|
35
32
|
};
|
|
36
|
-
return /* @__PURE__ */ t(
|
|
33
|
+
return /* @__PURE__ */ t.jsx(h, { ...m, children: F }, T);
|
|
37
34
|
}),
|
|
38
|
-
/* @__PURE__ */ t(
|
|
39
|
-
|
|
35
|
+
/* @__PURE__ */ t.jsx(
|
|
36
|
+
x,
|
|
40
37
|
{
|
|
41
|
-
canAdd:
|
|
42
|
-
onAddClick:
|
|
43
|
-
disabled:
|
|
38
|
+
canAdd: o,
|
|
39
|
+
onAddClick: s,
|
|
40
|
+
disabled: r,
|
|
44
41
|
readonly: a,
|
|
45
42
|
uiSchema: e,
|
|
46
|
-
registry:
|
|
43
|
+
registry: p
|
|
47
44
|
}
|
|
48
45
|
)
|
|
49
|
-
] }) : /* @__PURE__ */ t(
|
|
50
|
-
|
|
46
|
+
] }) : /* @__PURE__ */ t.jsx(B, { label: c, required: j, showLabel: !0, id: l.$id, children: /* @__PURE__ */ t.jsx(
|
|
47
|
+
x,
|
|
51
48
|
{
|
|
52
|
-
canAdd:
|
|
53
|
-
onAddClick:
|
|
54
|
-
disabled:
|
|
49
|
+
canAdd: o,
|
|
50
|
+
onAddClick: s,
|
|
51
|
+
disabled: r,
|
|
55
52
|
readonly: a,
|
|
56
53
|
uiSchema: e,
|
|
57
|
-
registry:
|
|
54
|
+
registry: p
|
|
58
55
|
}
|
|
59
56
|
) }) });
|
|
60
57
|
};
|
|
61
58
|
export {
|
|
62
|
-
|
|
59
|
+
I as ArrayFieldTemplate
|
|
63
60
|
};
|
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
import "
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { j as s } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { getDefaultRegistry as o } from "@rjsf/core";
|
|
3
|
+
import { PLACEHOLDERS as m } from "../constants.js";
|
|
4
|
+
const {
|
|
5
|
+
templates: { BaseInputTemplate: p }
|
|
6
|
+
} = o(), l = ({ placeholder: t, ...e }) => /* @__PURE__ */ s.jsx(
|
|
7
|
+
p,
|
|
8
|
+
{
|
|
9
|
+
placeholder: t || m.INPUT,
|
|
10
|
+
...e,
|
|
11
|
+
className: "form__input cn-9 fs-13 lh-20 fw-4"
|
|
12
|
+
}
|
|
13
|
+
);
|
|
6
14
|
export {
|
|
7
|
-
|
|
15
|
+
l as BaseInput
|
|
8
16
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { j as s } from "../../../../jsx-runtime-0dcb030c.js";
|
|
2
2
|
import { S as t } from "../../../../ic-add-4787ded5.js";
|
|
3
|
-
const
|
|
3
|
+
const r = ({ icon: c, iconType: n, registry: d, uiSchema: i, ...e }) => /* @__PURE__ */ s.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ s.jsxs(
|
|
4
4
|
"button",
|
|
5
5
|
{
|
|
6
|
-
...
|
|
6
|
+
...e,
|
|
7
7
|
type: "button",
|
|
8
8
|
className: "dc__outline-none-imp p-0 dc__transparent flex dc__gap-4 cursor",
|
|
9
9
|
title: "Add",
|
|
10
10
|
children: [
|
|
11
|
-
/* @__PURE__ */
|
|
12
|
-
/* @__PURE__ */
|
|
11
|
+
/* @__PURE__ */ s.jsx(t, { className: "icon-dim-16 fcb-5" }),
|
|
12
|
+
/* @__PURE__ */ s.jsx("span", { className: "cb-5 fs-13 lh-20", children: "Add" })
|
|
13
13
|
]
|
|
14
14
|
}
|
|
15
15
|
) });
|
|
16
16
|
export {
|
|
17
|
-
|
|
17
|
+
r as AddButton
|
|
18
18
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as
|
|
3
|
-
const a = ({ icon:
|
|
1
|
+
import { j as o } from "../../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { S as e } from "../../../../ic-cross-0e71861d.js";
|
|
3
|
+
const a = ({ icon: s, iconType: r, registry: n, uiSchema: c, ...t }) => /* @__PURE__ */ o.jsx("button", { ...t, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ o.jsx(e, { className: "icon-dim-16 fcr-5" }) });
|
|
4
4
|
export {
|
|
5
5
|
a as RemoveButton
|
|
6
6
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const { submitText: e, norender: r, props: t = {} } = i(s);
|
|
7
|
-
return r ? null : /* @__PURE__ */ o("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ o(
|
|
1
|
+
import { j as s } from "../../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { getSubmitButtonOptions as r } from "@rjsf/utils";
|
|
3
|
+
const u = ({ uiSchema: o }) => {
|
|
4
|
+
const { submitText: e, norender: n, props: t = {} } = r(o);
|
|
5
|
+
return n ? null : /* @__PURE__ */ s.jsx("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ s.jsx(
|
|
8
6
|
"button",
|
|
9
7
|
{
|
|
10
8
|
type: "submit",
|
|
@@ -15,5 +13,5 @@ const l = ({ uiSchema: s }) => {
|
|
|
15
13
|
) });
|
|
16
14
|
};
|
|
17
15
|
export {
|
|
18
|
-
|
|
16
|
+
u as SubmitButton
|
|
19
17
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { S as
|
|
3
|
-
const
|
|
4
|
-
/* @__PURE__ */
|
|
5
|
-
/* @__PURE__ */
|
|
1
|
+
import { j as s } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { S as c } from "../../../ic-info-filled-31a15add.js";
|
|
3
|
+
const a = ({ id: e, description: i }) => i && /* @__PURE__ */ s.jsxs("div", { id: e, className: "flex left flex-align-center mt-4 dc__gap-4", children: [
|
|
4
|
+
/* @__PURE__ */ s.jsx(c, { className: "icon-dim-16 mw-16 info-icon-n5" }),
|
|
5
|
+
/* @__PURE__ */ s.jsx("span", { className: "cn-7 fs-11 fw-4 dc__ellipsis-right", children: i })
|
|
6
6
|
] });
|
|
7
7
|
export {
|
|
8
|
-
|
|
8
|
+
a as Description
|
|
9
9
|
};
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { FieldRowWithLabel as N } from "../common/FieldRow.js";
|
|
7
|
-
const W = (i) => {
|
|
8
|
-
const { id: r, label: s, children: o, errors: a, hidden: d, required: l, displayLabel: m, registry: n, uiSchema: p, classNames: c, schema: t, description: h } = i, f = T(p), A = I(
|
|
1
|
+
import { j as e } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { getUiOptions as f, getTemplate as u, ADDITIONAL_PROPERTY_FLAG as L } from "@rjsf/utils";
|
|
3
|
+
import { FieldRowWithLabel as T } from "../common/FieldRow.js";
|
|
4
|
+
const R = (i) => {
|
|
5
|
+
const { id: o, label: a, children: s, errors: r, hidden: d, required: l, displayLabel: n, registry: m, uiSchema: c, classNames: p, schema: t, description: h } = i, x = f(c), b = u(
|
|
9
6
|
"WrapIfAdditionalTemplate",
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
),
|
|
13
|
-
return d ? /* @__PURE__ */ e("div", { className: "hidden", children:
|
|
14
|
-
/* @__PURE__ */ e(
|
|
7
|
+
m,
|
|
8
|
+
x
|
|
9
|
+
), j = L in t, A = (n || t.type === "boolean") && !j;
|
|
10
|
+
return d ? /* @__PURE__ */ e.jsx("div", { className: "hidden", children: s }) : /* @__PURE__ */ e.jsxs("div", { className: `${p} mb-12`, children: [
|
|
11
|
+
/* @__PURE__ */ e.jsx(T, { label: a, showLabel: A, id: o, required: l, children: /* @__PURE__ */ e.jsx(b, { ...i, children: s }) }),
|
|
15
12
|
h,
|
|
16
|
-
|
|
13
|
+
r
|
|
17
14
|
] });
|
|
18
15
|
};
|
|
19
16
|
export {
|
|
20
|
-
|
|
17
|
+
R as Field
|
|
21
18
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return o.length > 0 && /* @__PURE__ */ e("span", { id: i, children: o.filter((r) => !!r).map((r, n) => /* @__PURE__ */ t("span", { className: "form__error", children: [
|
|
9
|
-
/* @__PURE__ */ e(a, { className: "form__icon form__icon--error" }),
|
|
1
|
+
import { j as o } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { errorId as t } from "@rjsf/utils";
|
|
3
|
+
import { S as i } from "../../../ic-warning-42534af1.js";
|
|
4
|
+
const l = ({ errors: e = [], idSchema: s }) => {
|
|
5
|
+
const m = t(s);
|
|
6
|
+
return e.length > 0 && /* @__PURE__ */ o.jsx("span", { id: m, children: e.filter((r) => !!r).map((r, n) => /* @__PURE__ */ o.jsxs("span", { className: "form__error", children: [
|
|
7
|
+
/* @__PURE__ */ o.jsx(i, { className: "form__icon form__icon--error" }),
|
|
10
8
|
r
|
|
11
9
|
] }, n)) });
|
|
12
10
|
};
|
|
13
11
|
export {
|
|
14
|
-
|
|
12
|
+
l as FieldErrorTemplate
|
|
15
13
|
};
|
|
@@ -1,76 +1,71 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import "react";
|
|
7
|
-
import { t as j } from "../../../idGenerators-0b33693c.js";
|
|
8
|
-
import { FieldRowWithLabel as b } from "../common/FieldRow.js";
|
|
9
|
-
const w = ({
|
|
10
|
-
disabled: d,
|
|
1
|
+
import { j as e } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { getUiOptions as f, getTemplate as T, titleId as F, canExpand as g } from "@rjsf/utils";
|
|
3
|
+
import { FieldRowWithLabel as h } from "../common/FieldRow.js";
|
|
4
|
+
const A = ({
|
|
5
|
+
disabled: r,
|
|
11
6
|
formData: i,
|
|
12
|
-
idSchema:
|
|
7
|
+
idSchema: s,
|
|
13
8
|
onAddClick: p,
|
|
14
|
-
properties:
|
|
15
|
-
readonly:
|
|
16
|
-
registry:
|
|
9
|
+
properties: t,
|
|
10
|
+
readonly: d,
|
|
11
|
+
registry: o,
|
|
17
12
|
required: a,
|
|
18
13
|
schema: l,
|
|
19
14
|
title: n,
|
|
20
15
|
uiSchema: c
|
|
21
16
|
}) => {
|
|
22
17
|
const {
|
|
23
|
-
ButtonTemplates: { AddButton:
|
|
24
|
-
} =
|
|
25
|
-
|
|
18
|
+
ButtonTemplates: { AddButton: j }
|
|
19
|
+
} = o.templates, u = !!l.additionalProperties, m = g(l, c, i) && /* @__PURE__ */ e.jsx(
|
|
20
|
+
j,
|
|
26
21
|
{
|
|
27
22
|
className: "object-property-expand",
|
|
28
23
|
onClick: p(l),
|
|
29
|
-
disabled:
|
|
24
|
+
disabled: r || d,
|
|
30
25
|
uiSchema: c,
|
|
31
|
-
registry:
|
|
26
|
+
registry: o
|
|
32
27
|
}
|
|
33
|
-
),
|
|
34
|
-
return
|
|
35
|
-
/* @__PURE__ */
|
|
36
|
-
|
|
28
|
+
), x = t.map((b) => b.content);
|
|
29
|
+
return u ? t.length ? /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
30
|
+
/* @__PURE__ */ e.jsx(
|
|
31
|
+
h,
|
|
37
32
|
{
|
|
38
33
|
label: n,
|
|
39
34
|
required: a,
|
|
40
35
|
showLabel: !0,
|
|
41
|
-
id:
|
|
36
|
+
id: s.$id,
|
|
42
37
|
shouldAlignCenter: !1,
|
|
43
|
-
children: /* @__PURE__ */
|
|
38
|
+
children: /* @__PURE__ */ e.jsx("div", { children: x })
|
|
44
39
|
}
|
|
45
40
|
),
|
|
46
41
|
m
|
|
47
|
-
] }) : /* @__PURE__ */
|
|
48
|
-
|
|
42
|
+
] }) : /* @__PURE__ */ e.jsx(h, { label: n, required: a, showLabel: !0, id: s.$id, children: m }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
43
|
+
x,
|
|
49
44
|
m
|
|
50
45
|
] });
|
|
51
|
-
},
|
|
52
|
-
const { idSchema: i, registry:
|
|
53
|
-
return /* @__PURE__ */
|
|
54
|
-
c && /* @__PURE__ */
|
|
46
|
+
}, B = (r) => {
|
|
47
|
+
const { idSchema: i, registry: s, required: p, schema: t, title: d, uiSchema: o } = r, a = f(o), l = T("TitleFieldTemplate", s, a), n = !!t.additionalProperties, c = d && !n;
|
|
48
|
+
return /* @__PURE__ */ e.jsxs("fieldset", { id: i.$id, children: [
|
|
49
|
+
c && /* @__PURE__ */ e.jsx(
|
|
55
50
|
l,
|
|
56
51
|
{
|
|
57
|
-
id:
|
|
58
|
-
title:
|
|
52
|
+
id: F(i),
|
|
53
|
+
title: d,
|
|
59
54
|
required: p,
|
|
60
|
-
schema:
|
|
61
|
-
uiSchema:
|
|
62
|
-
registry:
|
|
55
|
+
schema: t,
|
|
56
|
+
uiSchema: o,
|
|
57
|
+
registry: s
|
|
63
58
|
}
|
|
64
59
|
),
|
|
65
|
-
/* @__PURE__ */
|
|
60
|
+
/* @__PURE__ */ e.jsx(
|
|
66
61
|
"div",
|
|
67
62
|
{
|
|
68
|
-
className:
|
|
69
|
-
children: /* @__PURE__ */
|
|
63
|
+
className: t.properties && !n && i.$id !== "root" ? "dc__border-left pl-12" : "",
|
|
64
|
+
children: /* @__PURE__ */ e.jsx(A, { ...r })
|
|
70
65
|
}
|
|
71
66
|
)
|
|
72
67
|
] });
|
|
73
68
|
};
|
|
74
69
|
export {
|
|
75
|
-
|
|
70
|
+
B as ObjectFieldTemplate
|
|
76
71
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
/* @__PURE__ */
|
|
4
|
-
|
|
1
|
+
import { j as s } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
const l = ({ id: e, title: n, required: r }) => /* @__PURE__ */ s.jsxs("legend", { className: "fs-13 fw-6 cn-9 lh-20 pb-8 dc__border-bottom en-1 mb-12", id: e, children: [
|
|
3
|
+
/* @__PURE__ */ s.jsx("span", { children: n }),
|
|
4
|
+
r && /* @__PURE__ */ s.jsx("span", { className: "cr-5", children: " *" })
|
|
5
5
|
] });
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
l as TitleField
|
|
8
8
|
};
|
|
@@ -1,44 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
disabled: o,
|
|
1
|
+
import { j as t } from "../../../jsx-runtime-0dcb030c.js";
|
|
2
|
+
import { ADDITIONAL_PROPERTY_FLAG as j } from "@rjsf/utils";
|
|
3
|
+
import { PLACEHOLDERS as u } from "../constants.js";
|
|
4
|
+
const h = ({
|
|
5
|
+
id: a,
|
|
6
|
+
disabled: l,
|
|
8
7
|
label: e,
|
|
9
|
-
onKeyChange:
|
|
10
|
-
onDropPropertyClick:
|
|
11
|
-
readonly:
|
|
12
|
-
schema:
|
|
8
|
+
onKeyChange: n,
|
|
9
|
+
onDropPropertyClick: o,
|
|
10
|
+
readonly: d,
|
|
11
|
+
schema: r,
|
|
13
12
|
children: i,
|
|
14
13
|
uiSchema: m,
|
|
15
|
-
registry:
|
|
14
|
+
registry: s
|
|
16
15
|
}) => {
|
|
17
|
-
const { templates: p } =
|
|
18
|
-
return /* @__PURE__ */ t(
|
|
19
|
-
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
16
|
+
const { templates: p } = s, { RemoveButton: c } = p.ButtonTemplates, f = j in r;
|
|
17
|
+
return /* @__PURE__ */ t.jsx(t.Fragment, { children: f ? /* @__PURE__ */ t.jsxs("div", { className: "rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
|
|
18
|
+
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
20
19
|
"input",
|
|
21
20
|
{
|
|
22
21
|
type: "text",
|
|
23
22
|
className: "form__input cn-9 fs-13 lh-20 fw-4",
|
|
24
|
-
id: `${
|
|
25
|
-
onBlur: (
|
|
26
|
-
placeholder:
|
|
23
|
+
id: `${a}-key`,
|
|
24
|
+
onBlur: (x) => n(x.target.value),
|
|
25
|
+
placeholder: u.OBJECT_KEY,
|
|
27
26
|
defaultValue: e
|
|
28
27
|
}
|
|
29
28
|
) }),
|
|
30
|
-
/* @__PURE__ */ t("div", { children: i }),
|
|
31
|
-
/* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
|
|
29
|
+
/* @__PURE__ */ t.jsx("div", { children: i }),
|
|
30
|
+
/* @__PURE__ */ t.jsx("div", { children: /* @__PURE__ */ t.jsx(
|
|
32
31
|
c,
|
|
33
32
|
{
|
|
34
|
-
disabled:
|
|
35
|
-
onClick:
|
|
33
|
+
disabled: l || d,
|
|
34
|
+
onClick: o(e),
|
|
36
35
|
uiSchema: m,
|
|
37
|
-
registry:
|
|
36
|
+
registry: s
|
|
38
37
|
}
|
|
39
38
|
) })
|
|
40
39
|
] }) : i });
|
|
41
40
|
};
|
|
42
41
|
export {
|
|
43
|
-
|
|
42
|
+
h as WrapIfAdditionalTemplate
|
|
44
43
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { ArrayFieldTemplate as r } from "./ArrayFieldTemplate.js";
|
|
2
2
|
import { ArrayFieldItemTemplate as p } from "./ArrayFieldItemTemplate.js";
|
|
3
|
-
import {
|
|
3
|
+
import { BaseInput as l } from "./BaseInput.js";
|
|
4
4
|
import { AddButton as i } from "./ButtonTemplates/AddButton.js";
|
|
5
5
|
import { RemoveButton as f } from "./ButtonTemplates/RemoveButton.js";
|
|
6
6
|
import { SubmitButton as T } from "./ButtonTemplates/SubmitButton.js";
|
|
7
7
|
import { Description as n } from "./Description.js";
|
|
8
8
|
import { Field as u } from "./Field.js";
|
|
9
9
|
import { FieldErrorTemplate as A } from "./FieldErrorTemplate.js";
|
|
10
|
-
import { ObjectFieldTemplate as
|
|
10
|
+
import { ObjectFieldTemplate as c } from "./ObjectFieldTemplate.js";
|
|
11
11
|
import { TitleField as y } from "./TitleField.js";
|
|
12
12
|
import { WrapIfAdditionalTemplate as j } from "./WrapIfAdditionalTemplate.js";
|
|
13
13
|
export {
|
|
@@ -18,7 +18,7 @@ export {
|
|
|
18
18
|
n as DescriptionFieldTemplate,
|
|
19
19
|
A as FieldErrorTemplate,
|
|
20
20
|
u as FieldTemplate,
|
|
21
|
-
|
|
21
|
+
c as ObjectFieldTemplate,
|
|
22
22
|
f as RemoveButton,
|
|
23
23
|
T as SubmitButton,
|
|
24
24
|
y as TitleFieldTemplate,
|