@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.
Files changed (113) hide show
  1. package/dist/{CodeEditor-0a5bfd53.js → CodeEditor-3c2aaef5.js} +11082 -11082
  2. package/dist/Common/AddCDButton/AddCDButton.js +24 -24
  3. package/dist/Common/AppStatus/AppStatus.js +16 -16
  4. package/dist/Common/BreadCrumb/BreadCrumb.js +43 -43
  5. package/dist/Common/BreadCrumb/BreadcrumbStore.js +9 -9
  6. package/dist/Common/ChartVersionAndTypeSelector.js +42 -42
  7. package/dist/Common/Checkbox.js +8 -8
  8. package/dist/Common/ClipboardButton/ClipboardButton.js +17 -17
  9. package/dist/Common/ClipboardButton/__tests__/ClipboardButton.test.js +10 -10
  10. package/dist/Common/CodeEditor/CodeEditor.js +4 -4
  11. package/dist/Common/Common.service.js +1 -1
  12. package/dist/Common/CustomInput/CustomInput.js +56 -56
  13. package/dist/Common/CustomTagSelector/PropagateTagInfo.js +22 -22
  14. package/dist/Common/CustomTagSelector/ResizableTagTextArea.js +22 -22
  15. package/dist/Common/CustomTagSelector/TagDetails.js +33 -33
  16. package/dist/Common/CustomTagSelector/TagLabelSelect.js +33 -33
  17. package/dist/Common/CustomTagSelector/TagLabelValueSelector.js +83 -83
  18. package/dist/Common/DebouncedSearch/DebouncedSearch.js +24 -24
  19. package/dist/Common/DebouncedSearch/__tests__/DebouncedSearch.test.js +16 -16
  20. package/dist/Common/DeleteComponentModal/DeleteComponent.js +49 -49
  21. package/dist/Common/DevtronProgressing/DevtronProgressing.js +2 -2
  22. package/dist/Common/Dialogs/ConfirmationDialog.js +14 -14
  23. package/dist/Common/Dialogs/DeleteDialog.js +24 -24
  24. package/dist/Common/Dialogs/DialogForm.js +21 -21
  25. package/dist/Common/Dialogs/ForceDeleteDialog.js +12 -12
  26. package/dist/Common/DraggableWrapper/DraggableButton.js +6 -6
  27. package/dist/Common/DraggableWrapper/DraggableWrapper.js +42 -1468
  28. package/dist/Common/Drawer/Drawer.js +6 -6
  29. package/dist/Common/EmptyState/EmptyState.js +19 -19
  30. package/dist/Common/EmptyState/GenericEmptyState.js +25 -25
  31. package/dist/Common/Error.js +6 -6
  32. package/dist/Common/ErrorScreenNotFound.js +3 -3
  33. package/dist/Common/Grid/Grid.js +11 -11
  34. package/dist/Common/Helper.js +3 -3
  35. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.js +1 -1
  36. package/dist/Common/ImageTags.js +224 -221
  37. package/dist/Common/InfoColorBar/InfoColourbar.js +37 -37
  38. package/dist/Common/Modals/Modal.js +8 -8
  39. package/dist/Common/Modals/OpaqueModal.js +13 -13
  40. package/dist/Common/Modals/VisibleModal.js +3 -3
  41. package/dist/Common/Modals/VisibleModal2.js +8 -8
  42. package/dist/Common/MultiSelectCustomization.js +45 -45
  43. package/dist/Common/Pagination/PageSizeSelector.js +37 -34
  44. package/dist/Common/Pagination/Pagination.js +60 -57
  45. package/dist/Common/PopupMenu.js +32 -32
  46. package/dist/Common/Progressing.js +20 -20
  47. package/dist/Common/RJSF/Form.js +14 -9877
  48. package/dist/Common/RJSF/common/FieldRow.js +16 -16
  49. package/dist/Common/RJSF/config.js +3 -3
  50. package/dist/Common/RJSF/templates/ArrayFieldItemTemplate.js +13 -13
  51. package/dist/Common/RJSF/templates/ArrayFieldTemplate.js +37 -40
  52. package/dist/Common/RJSF/templates/BaseInput.js +14 -6
  53. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.js +6 -6
  54. package/dist/Common/RJSF/templates/ButtonTemplates/RemoveButton.js +3 -3
  55. package/dist/Common/RJSF/templates/ButtonTemplates/SubmitButton.js +6 -8
  56. package/dist/Common/RJSF/templates/Description.js +6 -6
  57. package/dist/Common/RJSF/templates/Field.js +12 -15
  58. package/dist/Common/RJSF/templates/FieldErrorTemplate.js +8 -10
  59. package/dist/Common/RJSF/templates/ObjectFieldTemplate.js +35 -40
  60. package/dist/Common/RJSF/templates/TitleField.js +5 -5
  61. package/dist/Common/RJSF/templates/WrapIfAdditionalTemplate.js +23 -24
  62. package/dist/Common/RJSF/templates/index.js +3 -3
  63. package/dist/Common/RJSF/utils.js +9 -12
  64. package/dist/Common/RJSF/widgets/Checkbox.js +20 -20
  65. package/dist/Common/RJSF/widgets/Select.js +609 -40
  66. package/dist/Common/RadioGroup/RadioGroup.js +32 -32
  67. package/dist/Common/RadioGroup.js +17 -17
  68. package/dist/Common/Reload.js +10 -10
  69. package/dist/Common/ResizableTextarea.js +11 -11
  70. package/dist/Common/SearchBar/SearchBar.component.js +26 -26
  71. package/dist/Common/Security/ScanVulnerabilitiesTable.js +20 -20
  72. package/dist/Common/Select/Select.js +93 -93
  73. package/dist/Common/TippyCustomized.js +4 -4
  74. package/dist/Common/ToastBody.js +22 -22
  75. package/dist/Common/Toggle/Toggle.js +15 -15
  76. package/dist/Common/index.js +3 -3
  77. package/dist/{Helper-e1262739.js → Helper-a0caa238.js} +916 -916
  78. package/dist/TippyCustomized-7b9b46b9.js +124 -0
  79. package/dist/{_commonjsHelpers-c5d32002.js → _commonjsHelpers-aeeeeb92.js} +2 -2
  80. package/dist/{cssMode-c259da7f.js → cssMode-c5cae484.js} +1 -1
  81. package/dist/{freemarker2-d852fa33.js → freemarker2-b9a8615c.js} +1 -1
  82. package/dist/{handlebars-7e868cd0.js → handlebars-3803af36.js} +1 -1
  83. package/dist/{html-1faea799.js → html-498f0150.js} +1 -1
  84. package/dist/{htmlMode-175871d9.js → htmlMode-a8ae8cc5.js} +1 -1
  85. package/dist/index.js +3 -3
  86. package/dist/{javascript-46245cbe.js → javascript-4363ced3.js} +1 -1
  87. package/dist/{jsonMode-bbe5176f.js → jsonMode-80290b9e.js} +1 -1
  88. package/dist/jsx-runtime-0dcb030c.js +667 -0
  89. package/dist/{liquid-e6b820e1.js → liquid-1398df0a.js} +1 -1
  90. package/dist/{python-7d292338.js → python-dd2d43e8.js} +1 -1
  91. package/dist/{razor-c6ab49dd.js → razor-20a66096.js} +1 -1
  92. package/dist/{react-select.esm-27b8d563.js → react-select.esm-97f26847.js} +1280 -1112
  93. package/dist/{react-toastify.esm-e28f7200.js → react-toastify.esm-1042de65.js} +149 -155
  94. package/dist/{react.esm-5465a283.js → react.esm-2c92920f.js} +4929 -4393
  95. package/dist/{tippy-react.esm-d5c56a0a.js → tippy-react.esm-8dc66a75.js} +89 -89
  96. package/dist/{tsMode-4d1329d1.js → tsMode-3fa4eb6a.js} +1 -1
  97. package/dist/{typescript-402306e6.js → typescript-1bbaf605.js} +1 -1
  98. package/dist/{xml-8975e1f9.js → xml-a2693dbd.js} +1 -1
  99. package/dist/{yaml-680c02bf.js → yaml-01ce4fdd.js} +1 -1
  100. package/package.json +3 -12
  101. package/dist/BaseInput-8101e714.js +0 -1686
  102. package/dist/Common/UseWindowSize.d.ts +0 -4
  103. package/dist/Common/UseWindowSize.js +0 -20
  104. package/dist/TippyCustomized-c58fd46a.js +0 -124
  105. package/dist/canExpand-ab1f6741.js +0 -10
  106. package/dist/englishStringTranslator-2c9a30fc.js +0 -17
  107. package/dist/enums-d0bd3f97.js +0 -6618
  108. package/dist/getSubmitButtonOptions-a1be9bb0.js +0 -20
  109. package/dist/getTemplate-91d3260d.js +0 -11
  110. package/dist/getUiOptions-844b45a7.js +0 -10
  111. package/dist/idGenerators-0b33693c.js +0 -35
  112. package/dist/index-5a231705.js +0 -17417
  113. package/dist/index-c855d89c.js +0 -173
@@ -1,25 +1,25 @@
1
- import { jsxs as s, jsx as e, Fragment as d } from "react/jsx-runtime";
2
- import { DO_NOT_SHOW_LABEL as n, DEFAULT_FIELD_TITLE as t } from "../constants.js";
3
- const o = ({
4
- showLabel: l,
5
- label: r,
6
- required: i,
7
- children: a,
8
- id: c,
9
- shouldAlignCenter: m = !0
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: l ? `display-grid dc__gap-12 rjsf-form-template__field ${m ? "flex-align-center" : ""}` : "",
13
+ className: e ? `display-grid dc__gap-12 rjsf-form-template__field ${c ? "flex-align-center" : ""}` : "",
14
14
  children: [
15
- l && /* @__PURE__ */ e("label", { className: "cn-7 fs-13 lh-32 fw-4 flexbox mb-0", htmlFor: c, children: r !== n && /* @__PURE__ */ s(d, { children: [
16
- /* @__PURE__ */ e("span", { className: "dc__ellipsis-right", children: r || t }),
17
- i && /* @__PURE__ */ e("span", { className: "cr-5", children: " *" })
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
- a
19
+ i
20
20
  ]
21
21
  }
22
22
  );
23
23
  export {
24
- o as FieldRowWithLabel
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 { B as m } from "../../BaseInput-8101e714.js";
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 s } from "./widgets/Select.js";
14
+ import { Select as c } from "./widgets/Select.js";
15
15
  const C = {
16
16
  CheckboxWidget: n,
17
- SelectWidget: s
17
+ SelectWidget: c
18
18
  }, D = {
19
19
  ArrayFieldItemTemplate: e,
20
20
  ArrayFieldTemplate: t,
@@ -1,25 +1,25 @@
1
- import { jsxs as n, jsx as c } from "react/jsx-runtime";
1
+ import { j as t } from "../../../jsx-runtime-0dcb030c.js";
2
2
  const x = ({
3
- children: t,
3
+ children: a,
4
4
  className: p,
5
- disabled: a,
5
+ disabled: s,
6
6
  hasToolbar: l,
7
7
  hasRemove: m,
8
- index: s,
9
- onDropIndexClick: r,
10
- readonly: i,
8
+ index: r,
9
+ onDropIndexClick: i,
10
+ readonly: o,
11
11
  registry: e,
12
- uiSchema: o
12
+ uiSchema: n
13
13
  }) => {
14
14
  const { RemoveButton: d } = e.templates.ButtonTemplates;
15
- return /* @__PURE__ */ n("div", { className: "display-grid rjsf-form-template__array-field-item flex-align-center dc__gap-8 mb-12", children: [
16
- t,
17
- l && m && /* @__PURE__ */ c(
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: a || i,
21
- onClick: r(s),
22
- uiSchema: o,
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 { jsx as t, jsxs as B, Fragment as L } from "react/jsx-runtime";
2
- import { g as b } from "../../../getUiOptions-844b45a7.js";
3
- import "../../../enums-d0bd3f97.js";
4
- import { g } from "../../../getTemplate-91d3260d.js";
5
- import "react";
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: i }
11
- } = o.templates;
12
- return r && /* @__PURE__ */ t(i, { onClick: p, disabled: n || l, uiSchema: e, registry: o });
13
- }, H = ({
14
- canAdd: r,
15
- className: p,
16
- disabled: n,
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: o,
20
- onAddClick: i,
16
+ items: n,
17
+ onAddClick: s,
21
18
  readonly: a,
22
- registry: m,
23
- required: h,
19
+ registry: p,
20
+ required: j,
24
21
  title: u
25
22
  }) => {
26
- const d = b(e), T = g("ArrayFieldItemTemplate", m, d), c = d.title || u;
27
- return /* @__PURE__ */ t("fieldset", { className: p, id: l.$id, children: o.length ? /* @__PURE__ */ B(L, { children: [
28
- o.map(({ key: F, ...s }, O) => {
29
- const A = {
30
- ...s.children,
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
- ...s.children.props,
33
- name: O === 0 ? c : _
29
+ ...m.children.props,
30
+ name: f === 0 ? c : L
34
31
  }
35
32
  };
36
- return /* @__PURE__ */ t(T, { ...s, children: A }, F);
33
+ return /* @__PURE__ */ t.jsx(h, { ...m, children: F }, T);
37
34
  }),
38
- /* @__PURE__ */ t(
39
- f,
35
+ /* @__PURE__ */ t.jsx(
36
+ x,
40
37
  {
41
- canAdd: r,
42
- onAddClick: i,
43
- disabled: n,
38
+ canAdd: o,
39
+ onAddClick: s,
40
+ disabled: r,
44
41
  readonly: a,
45
42
  uiSchema: e,
46
- registry: m
43
+ registry: p
47
44
  }
48
45
  )
49
- ] }) : /* @__PURE__ */ t(x, { label: c, required: h, showLabel: !0, id: l.$id, children: /* @__PURE__ */ t(
50
- f,
46
+ ] }) : /* @__PURE__ */ t.jsx(B, { label: c, required: j, showLabel: !0, id: l.$id, children: /* @__PURE__ */ t.jsx(
47
+ x,
51
48
  {
52
- canAdd: r,
53
- onAddClick: i,
54
- disabled: n,
49
+ canAdd: o,
50
+ onAddClick: s,
51
+ disabled: r,
55
52
  readonly: a,
56
53
  uiSchema: e,
57
- registry: m
54
+ registry: p
58
55
  }
59
56
  ) }) });
60
57
  };
61
58
  export {
62
- H as ArrayFieldTemplate
59
+ I as ArrayFieldTemplate
63
60
  };
@@ -1,8 +1,16 @@
1
- import "react/jsx-runtime";
2
- import "react";
3
- import "../../../enums-d0bd3f97.js";
4
- import { B as a } from "../../../BaseInput-8101e714.js";
5
- import "../constants.js";
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
- a as BaseInput
15
+ l as BaseInput
8
16
  };
@@ -1,18 +1,18 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
1
+ import { j as s } from "../../../../jsx-runtime-0dcb030c.js";
2
2
  import { S as t } from "../../../../ic-add-4787ded5.js";
3
- const l = ({ icon: d, iconType: n, registry: i, uiSchema: o, ...c }) => /* @__PURE__ */ e("div", { className: "flexbox flex-justify-end", children: /* @__PURE__ */ s(
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
- ...c,
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__ */ e(t, { className: "icon-dim-16 fcb-5" }),
12
- /* @__PURE__ */ e("span", { className: "cb-5 fs-13 lh-20", children: "Add" })
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
- l as AddButton
17
+ r as AddButton
18
18
  };
@@ -1,6 +1,6 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { S as t } from "../../../../ic-cross-0e71861d.js";
3
- const a = ({ icon: r, iconType: c, registry: n, uiSchema: i, ...e }) => /* @__PURE__ */ o("button", { ...e, type: "button", className: "dc__outline-none-imp p-0 dc__transparent flex cursor", title: "Remove", children: /* @__PURE__ */ o(t, { className: "icon-dim-16 fcr-5" }) });
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 { jsx as o } from "react/jsx-runtime";
2
- import "../../../../enums-d0bd3f97.js";
3
- import { g as i } from "../../../../getSubmitButtonOptions-a1be9bb0.js";
4
- import "react";
5
- const l = ({ uiSchema: s }) => {
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
- l as SubmitButton
16
+ u as SubmitButton
19
17
  };
@@ -1,9 +1,9 @@
1
- import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
- import { S as l } from "../../../ic-info-filled-31a15add.js";
3
- const m = ({ id: c, description: s }) => s && /* @__PURE__ */ e("div", { id: c, className: "flex left flex-align-center mt-4 dc__gap-4", children: [
4
- /* @__PURE__ */ i(l, { className: "icon-dim-16 mw-16 info-icon-n5" }),
5
- /* @__PURE__ */ i("span", { className: "cn-7 fs-11 fw-4 dc__ellipsis-right", children: s })
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
- m as Description
8
+ a as Description
9
9
  };
@@ -1,21 +1,18 @@
1
- import { jsx as e, jsxs as L } from "react/jsx-runtime";
2
- import { g as T } from "../../../getUiOptions-844b45a7.js";
3
- import { A as u } from "../../../enums-d0bd3f97.js";
4
- import { g as I } from "../../../getTemplate-91d3260d.js";
5
- import "react";
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
- n,
11
- f
12
- ), b = u in t, g = (m || t.type === "boolean") && !b;
13
- return d ? /* @__PURE__ */ e("div", { className: "hidden", children: o }) : /* @__PURE__ */ L("div", { className: `${c} mb-12`, children: [
14
- /* @__PURE__ */ e(N, { label: s, showLabel: g, id: r, required: l, children: /* @__PURE__ */ e(A, { ...i, children: o }) }),
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
- a
13
+ r
17
14
  ] });
18
15
  };
19
16
  export {
20
- W as Field
17
+ R as Field
21
18
  };
@@ -1,15 +1,13 @@
1
- import { jsx as e, jsxs as t } from "react/jsx-runtime";
2
- import "../../../enums-d0bd3f97.js";
3
- import "react";
4
- import { e as s } from "../../../idGenerators-0b33693c.js";
5
- import { S as a } from "../../../ic-warning-42534af1.js";
6
- const d = ({ errors: o = [], idSchema: m }) => {
7
- const i = s(m);
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
- d as FieldErrorTemplate
12
+ l as FieldErrorTemplate
15
13
  };
@@ -1,76 +1,71 @@
1
- import { jsxs as h, jsx as t, Fragment as u } from "react/jsx-runtime";
2
- import { c as x } from "../../../canExpand-ab1f6741.js";
3
- import "../../../enums-d0bd3f97.js";
4
- import { g as A } from "../../../getUiOptions-844b45a7.js";
5
- import { g as P } from "../../../getTemplate-91d3260d.js";
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: o,
7
+ idSchema: s,
13
8
  onAddClick: p,
14
- properties: e,
15
- readonly: s,
16
- registry: r,
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: T }
24
- } = r.templates, g = !!l.additionalProperties, m = x(l, c, i) && /* @__PURE__ */ t(
25
- T,
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: d || s,
24
+ disabled: r || d,
30
25
  uiSchema: c,
31
- registry: r
26
+ registry: o
32
27
  }
33
- ), f = e.map((F) => F.content);
34
- return g ? e.length ? /* @__PURE__ */ h(u, { children: [
35
- /* @__PURE__ */ t(
36
- b,
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: o.$id,
36
+ id: s.$id,
42
37
  shouldAlignCenter: !1,
43
- children: /* @__PURE__ */ t("div", { children: f })
38
+ children: /* @__PURE__ */ e.jsx("div", { children: x })
44
39
  }
45
40
  ),
46
41
  m
47
- ] }) : /* @__PURE__ */ t(b, { label: n, required: a, showLabel: !0, id: o.$id, children: m }) : /* @__PURE__ */ h(u, { children: [
48
- f,
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
- }, k = (d) => {
52
- const { idSchema: i, registry: o, required: p, schema: e, title: s, uiSchema: r } = d, a = A(r), l = P("TitleFieldTemplate", o, a), n = !!e.additionalProperties, c = s && !n;
53
- return /* @__PURE__ */ h("fieldset", { id: i.$id, children: [
54
- c && /* @__PURE__ */ t(
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: j(i),
58
- title: s,
52
+ id: F(i),
53
+ title: d,
59
54
  required: p,
60
- schema: e,
61
- uiSchema: r,
62
- registry: o
55
+ schema: t,
56
+ uiSchema: o,
57
+ registry: s
63
58
  }
64
59
  ),
65
- /* @__PURE__ */ t(
60
+ /* @__PURE__ */ e.jsx(
66
61
  "div",
67
62
  {
68
- className: e.properties && !n && i.$id !== "root" ? "dc__border-left pl-12" : "",
69
- children: /* @__PURE__ */ t(w, { ...d })
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
- k as ObjectFieldTemplate
70
+ B as ObjectFieldTemplate
76
71
  };
@@ -1,8 +1,8 @@
1
- import { jsxs as n, jsx as e } from "react/jsx-runtime";
2
- const d = ({ id: s, title: c, required: l }) => /* @__PURE__ */ n("legend", { className: "fs-13 fw-6 cn-9 lh-20 pb-8 dc__border-bottom en-1 mb-12", id: s, children: [
3
- /* @__PURE__ */ e("span", { children: c }),
4
- l && /* @__PURE__ */ e("span", { className: "cr-5", children: " *" })
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
- d as TitleField
7
+ l as TitleField
8
8
  };
@@ -1,44 +1,43 @@
1
- import { jsx as t, Fragment as _, jsxs as v } from "react/jsx-runtime";
2
- import { A } from "../../../enums-d0bd3f97.js";
3
- import "react";
4
- import { PLACEHOLDERS as h } from "../constants.js";
5
- const B = ({
6
- id: l,
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: d,
10
- onDropPropertyClick: n,
11
- readonly: r,
12
- schema: s,
8
+ onKeyChange: n,
9
+ onDropPropertyClick: o,
10
+ readonly: d,
11
+ schema: r,
13
12
  children: i,
14
13
  uiSchema: m,
15
- registry: a
14
+ registry: s
16
15
  }) => {
17
- const { templates: p } = a, { RemoveButton: c } = p.ButtonTemplates, f = A in s;
18
- return /* @__PURE__ */ t(_, { children: f ? /* @__PURE__ */ v("div", { className: "rjsf-form-template__additional-fields display-grid dc__gap-8 flex-align-center", children: [
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: `${l}-key`,
25
- onBlur: (u) => d(u.target.value),
26
- placeholder: h.OBJECT_KEY,
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: o || r,
35
- onClick: n(e),
33
+ disabled: l || d,
34
+ onClick: o(e),
36
35
  uiSchema: m,
37
- registry: a
36
+ registry: s
38
37
  }
39
38
  ) })
40
39
  ] }) : i });
41
40
  };
42
41
  export {
43
- B as WrapIfAdditionalTemplate
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 { B as l } from "../../../BaseInput-8101e714.js";
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 I } from "./ObjectFieldTemplate.js";
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
- I as ObjectFieldTemplate,
21
+ c as ObjectFieldTemplate,
22
22
  f as RemoveButton,
23
23
  T as SubmitButton,
24
24
  y as TitleFieldTemplate,