@digi-frontend/dgate-api-documentation 1.0.4 → 1.0.5
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/_virtual/index3.js +1 -1
- package/dist/_virtual/index4.js +1 -1
- package/dist/_virtual/index5.js +1 -1
- package/dist/_virtual/index6.js +1 -1
- package/dist/node_modules/digitinary-ui/dist/index.js +1 -1
- package/dist/node_modules/digitinary-ui/dist/index.js.map +1 -1
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js +3 -0
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js.map +1 -0
- package/dist/node_modules/toposort/index.js +1 -1
- package/dist/node_modules/yup/index.esm.js +1 -1
- package/dist/src/components/InfoForm/InfoForm.js +1 -1
- package/dist/src/components/InfoForm/InfoForm.js.map +1 -1
- package/dist/src/components/JsonInput/JsonInput.js +2 -0
- package/dist/src/components/JsonInput/JsonInput.js.map +1 -0
- package/dist/src/components/JsonInput/style.module.scss.js +2 -0
- package/dist/src/components/JsonInput/style.module.scss.js.map +1 -0
- package/dist/src/components/MethodAccordion/MethodAccordion.js +1 -1
- package/dist/src/components/MethodAccordion/MethodAccordion.js.map +1 -1
- package/dist/src/constants/index.js +1 -1
- package/dist/src/constants/index.js.map +1 -1
- package/dist/src/helpers/layout.helper.js +1 -1
- package/dist/src/helpers/layout.helper.js.map +1 -1
- package/dist/src/layout/layout.js +1 -1
- package/dist/src/layout/layout.js.map +1 -1
- package/dist/src/layout/layout.module.css.js +1 -1
- package/dist/styles.css +315 -212
- package/dist/types/components/JsonInput/JsonInput.d.ts +13 -0
- package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +1 -2
- package/dist/types/constants/index.d.ts +12 -4
- package/dist/types/types/layout.type.d.ts +9 -1
- package/dist/types/types/openApi.d.ts +1 -1
- package/package.json +2 -1
- package/src/components/InfoForm/InfoForm.module.scss +0 -5
- package/src/components/InfoForm/InfoForm.tsx +3 -17
- package/src/components/JsonInput/JsonInput.tsx +124 -0
- package/src/components/JsonInput/style.module.scss +123 -0
- package/src/components/MethodAccordion/MethodAccordion.module.scss +10 -5
- package/src/components/MethodAccordion/MethodAccordion.tsx +17 -47
- package/src/constants/index.ts +16 -8
- package/src/helpers/layout.helper.ts +53 -24
- package/src/layout/layout.module.css +18 -0
- package/src/layout/layout.tsx +40 -16
- package/src/types/layout.type.ts +9 -1
- package/src/types/openApi.ts +1 -1
- package/dist/types/types/index.d.ts +0 -18
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{j as e}from"../../_virtual/jsx-runtime.js";import{d as o}from"../../_virtual/index.js";import
|
|
1
|
+
import{j as e}from"../../_virtual/jsx-runtime.js";import{d as o}from"../../_virtual/index.js";import t from"../components/MethodAccordion/MethodAccordion.js";import s from"./layout.module.css.js";import i from"../components/InfoForm/InfoForm.js";import r from"../components/SectionHead/SectionHead.js";import{transformOpenApiObject as a,transformOpenApiObjectToOrigin as d}from"../helpers/layout.helper.js";import n from"../components/LivePreview/LivePreview.js";import{useFormik as m,FormikProvider as l}from"../../node_modules/formik/dist/formik.esm.js";import{schemaValidation as c}from"../validator/form.scheme.js";import{methodColorMapping as p}from"../constants/index.js";const u=({openApiJson:u,handleSave:h})=>{const j=structuredClone(u),v=a(j),f=m({initialValues:structuredClone(v),validationSchema:c,validateOnMount:!0,onSubmit:(e,{validateForm:o})=>{const t=d(e);h(t),o(e)}});return e.jsxs("div",{className:s.docsLayout,children:[e.jsx(o.Alert,{className:s.apiDocAlert,color:"info",children:"Changes are saved and published for API information and each endpoint individually as you update."}),e.jsxs("div",{className:s.layoutContainer,children:[e.jsxs("div",{className:`${s.editorSide} ${s.docSide}`,children:[e.jsx(r,{className:s.editorSectionHead,text:e.jsxs("div",{className:s.editorSectionHead_content,children:["API Information",e.jsx(o.Button,{className:s.methodForm_submitBtn,size:"medium",fullWidth:!1,type:"submit",variant:"contained",color:"primary",onClick:f.submitForm,children:"Save"})]})}),e.jsx(l,{value:f,children:e.jsx(i,{})}),e.jsx(r,{className:s.editorSectionHead,text:"API Methods"}),e.jsx(l,{value:f,children:f.values.paths.map(((o,s)=>e.jsx(e.Fragment,{children:o.methods.sort((e=>p[e.type].order+p[e.type].order)).map(((i,r)=>e.jsx(t,{method:i,path:o.path,setFieldValue:(e,o)=>{const t=`paths[${s}].methods[${r}].${e}`;f.setFieldValue(t,o)}})))})))})]}),e.jsx("div",{className:`${s.livePreviewSide} ${s.docSide}`,children:v&&e.jsx(l,{value:f,children:e.jsx(n,{transformedData:v})})})]})]})};export{u as default};
|
|
2
2
|
//# sourceMappingURL=layout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../../../src/layout/layout.tsx"],"sourcesContent":["import { JSX } from 'react'\r\nimport { Alert } from 'digitinary-ui'\r\nimport MethodsAccordion from '../components/MethodAccordion/MethodAccordion'\r\nimport styles from './layout.module.css'\r\nimport InfoForm from '../components/InfoForm/InfoForm'\r\nimport SectionHead from '../components/SectionHead/SectionHead'\r\nimport { transformOpenApiObject, transformOpenApiObjectToOrigin } from '../helpers/layout.helper'\r\nimport { OpenAPIFile } from '../types/openApi'\r\nimport LivePreview from '../components/LivePreview/LivePreview'\r\nimport { FormikProvider, useFormik } from 'formik'\r\nimport
|
|
1
|
+
{"version":3,"file":"layout.js","sources":["../../../src/layout/layout.tsx"],"sourcesContent":["import { JSX } from 'react'\r\nimport { Alert, Button } from 'digitinary-ui'\r\nimport MethodsAccordion from '../components/MethodAccordion/MethodAccordion'\r\nimport styles from './layout.module.css'\r\nimport InfoForm from '../components/InfoForm/InfoForm'\r\nimport SectionHead from '../components/SectionHead/SectionHead'\r\nimport { transformOpenApiObject, transformOpenApiObjectToOrigin } from '../helpers/layout.helper'\r\nimport { OpenAPIFile } from '../types/openApi'\r\nimport LivePreview from '../components/LivePreview/LivePreview'\r\nimport { FormikProvider, useFormik } from 'formik'\r\nimport { schemaValidation } from '../validator/form.scheme'\r\nimport { TransformedOpenApi } from '@entities/transformedOpenApi'\r\nimport { methodColorMapping } from '../constants/index'\r\n\r\ninterface ILayoutProps {\r\n openApiJson?: OpenAPIFile\r\n}\r\n\r\nconst Layout = ({ openApiJson, handleSave }: ILayoutProps): JSX.Element => {\r\n const clonedOpenApiJson = structuredClone(openApiJson)\r\n const transformedOpenApi = transformOpenApiObject(clonedOpenApiJson)\r\n const formik = useFormik<TransformedOpenApi>({\r\n initialValues: structuredClone(transformedOpenApi),\r\n validationSchema: schemaValidation,\r\n validateOnMount: true,\r\n onSubmit: (values, { validateForm }) => {\r\n // Handle save logic\r\n const originalOpenApiForm = transformOpenApiObjectToOrigin(values)\r\n handleSave(originalOpenApiForm)\r\n validateForm(values)\r\n },\r\n })\r\n\r\n return (\r\n <div className={styles.docsLayout}>\r\n <Alert className={styles.apiDocAlert} color=\"info\">\r\n Changes are saved and published for API information and each endpoint individually as you\r\n update.\r\n </Alert>\r\n <div className={styles.layoutContainer}>\r\n <div className={`${styles.editorSide} ${styles.docSide}`}>\r\n <SectionHead\r\n className={styles.editorSectionHead}\r\n text={\r\n <div className={styles.editorSectionHead_content}>\r\n API Information\r\n <Button\r\n className={styles.methodForm_submitBtn}\r\n size=\"medium\"\r\n fullWidth={false}\r\n type=\"submit\"\r\n variant=\"contained\"\r\n color=\"primary\"\r\n onClick={formik.submitForm}\r\n >\r\n Save\r\n </Button>\r\n </div>\r\n }\r\n />\r\n <FormikProvider value={formik}>\r\n <InfoForm />\r\n </FormikProvider>\r\n <SectionHead className={styles.editorSectionHead} text=\"API Methods\" />\r\n <FormikProvider value={formik}>\r\n {formik.values.paths.map((path, pathIndex) => (\r\n <>\r\n {path.methods\r\n .sort(\r\n (method) =>\r\n methodColorMapping[method.type].order + methodColorMapping[method.type].order\r\n )\r\n .map((method, methodIndex) => (\r\n <MethodsAccordion\r\n method={method}\r\n path={path.path}\r\n setFieldValue={(key, value) => {\r\n const h = `paths[${pathIndex}].methods[${methodIndex}].${key}`\r\n formik.setFieldValue(h, value)\r\n }}\r\n />\r\n ))}\r\n </>\r\n ))}\r\n </FormikProvider>\r\n </div>\r\n <div className={`${styles.livePreviewSide} ${styles.docSide}`}>\r\n {transformedOpenApi && (\r\n <FormikProvider value={formik}>\r\n <LivePreview transformedData={transformedOpenApi} />\r\n </FormikProvider>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n )\r\n}\r\n\r\nexport default Layout\r\n"],"names":["Layout","openApiJson","handleSave","clonedOpenApiJson","structuredClone","transformedOpenApi","transformOpenApiObject","formik","useFormik","initialValues","validationSchema","schemaValidation","validateOnMount","onSubmit","values","validateForm","originalOpenApiForm","transformOpenApiObjectToOrigin","_jsxs","jsxs","className","styles","docsLayout","children","_jsx","jsx","Alert","apiDocAlert","color","layoutContainer","editorSide","docSide","SectionHead","editorSectionHead","text","editorSectionHead_content","Button","methodForm_submitBtn","size","fullWidth","type","variant","onClick","submitForm","FormikProvider","value","InfoForm","paths","map","path","pathIndex","_Fragment","methods","sort","method","methodColorMapping","order","methodIndex","MethodsAccordion","setFieldValue","key","h","livePreviewSide","LivePreview","transformedData"],"mappings":"sqBAkBM,MAAAA,EAAS,EAAGC,cAAaC,iBAC7B,MAAMC,EAAoBC,gBAAgBH,GACpCI,EAAqBC,EAAuBH,GAC5CI,EAASC,EAA8B,CAC3CC,cAAeL,gBAAgBC,GAC/BK,iBAAkBC,EAClBC,iBAAiB,EACjBC,SAAU,CAACC,GAAUC,mBAEnB,MAAMC,EAAsBC,EAA+BH,GAC3DZ,EAAWc,GACXD,EAAaD,EAAO,IAIxB,OACEI,EAAAC,KAAA,MAAA,CAAKC,UAAWC,EAAOC,WACrBC,SAAA,CAAAC,EAAAC,IAACC,EAAKA,MAAC,CAAAN,UAAWC,EAAOM,YAAaC,MAAM,OAAML,SAAA,sGAIlDL,EAAAC,KAAA,MAAA,CAAKC,UAAWC,EAAOQ,0BACrBX,EAAKC,KAAA,MAAA,CAAAC,UAAW,GAAGC,EAAOS,cAAcT,EAAOU,UAASR,SAAA,CACtDC,EAAAA,IAACQ,EAAW,CACVZ,UAAWC,EAAOY,kBAClBC,KACEhB,EAAKC,KAAA,MAAA,CAAAC,UAAWC,EAAOc,0BAAyBZ,SAAA,CAAA,kBAE9CC,MAACY,EAAAA,QACChB,UAAWC,EAAOgB,qBAClBC,KAAK,SACLC,WAAW,EACXC,KAAK,SACLC,QAAQ,YACRb,MAAM,UACNc,QAASnC,EAAOoC,WAGTpB,SAAA,cAIfC,EAAAA,IAACoB,GAAeC,MAAOtC,EAAMgB,SAC3BC,MAACsB,EAAQ,MAEXtB,MAACQ,EAAW,CAACZ,UAAWC,EAAOY,kBAAmBC,KAAK,gBACvDV,MAACoB,EAAc,CAACC,MAAOtC,EACpBgB,SAAAhB,EAAOO,OAAOiC,MAAMC,KAAI,CAACC,EAAMC,IAC9B1B,EAAAA,IACG2B,EAAAA,SAAA,CAAA5B,SAAA0B,EAAKG,QACHC,MACEC,GACCC,EAAmBD,EAAOd,MAAMgB,MAAQD,EAAmBD,EAAOd,MAAMgB,QAE3ER,KAAI,CAACM,EAAQG,IACZjC,EAAAA,IAACkC,EAAgB,CACfJ,OAAQA,EACRL,KAAMA,EAAKA,KACXU,cAAe,CAACC,EAAKf,KACnB,MAAMgB,EAAI,SAASX,cAAsBO,MAAgBG,IACzDrD,EAAOoD,cAAcE,EAAGhB,EAAM,eAQ9CrB,EAAAC,IAAA,MAAA,CAAKL,UAAW,GAAGC,EAAOyC,mBAAmBzC,EAAOU,UAASR,SAC1DlB,GACCmB,MAACoB,EAAc,CAACC,MAAOtC,WACrBiB,EAAAA,IAACuC,GAAYC,gBAAiB3D,aAMzC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"../../node_modules/style-inject/dist/style-inject.es.js";var o={docsLayout:"layout-module_docsLayout__vDeK7",apiDocAlert:"layout-module_apiDocAlert__cSDp2",layoutContainer:"layout-module_layoutContainer__qBWib",editorSide:"layout-module_editorSide__hWc6O",editorSectionHead:"layout-module_editorSectionHead__chDdH",editorSectionHead_content:"layout-module_editorSectionHead_content__DQa6a",livePreviewSide:"layout-module_livePreviewSide__Q5HsZ",docSide:"layout-module_docSide__qLt4E"};e(".layout-module_docsLayout__vDeK7{display:flex;flex-direction:column;height:100vh;max-height:100%;overflow:hidden;.layout-module_apiDocAlert__cSDp2{border-radius:0}.layout-module_layoutContainer__qBWib{display:grid;grid-template-columns:60% 40%;height:100%;max-height:100%;max-width:100%;overflow:hidden;width:100%;.layout-module_editorSide__hWc6O{background-color:#fff;padding-bottom:1.25rem;.layout-module_editorSectionHead__chDdH{span{width:100%}.layout-module_editorSectionHead_content__DQa6a{align-items:center;display:flex;justify-content:space-between;button{width:6.25rem}}}}.layout-module_livePreviewSide__Q5HsZ{background-color:#f8f9fb;padding:1.875rem}.layout-module_docSide__qLt4E{max-height:100%;overflow-x:clip;overflow-y:overlay;scroll-behavior:smooth}}}");export{o as default};
|
|
2
2
|
//# sourceMappingURL=layout.module.css.js.map
|
package/dist/styles.css
CHANGED
|
@@ -1,103 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
width: 22.1875rem;
|
|
5
|
-
}
|
|
6
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root {
|
|
7
|
-
overflow: visible !important;
|
|
8
|
-
border-radius: 0.625rem;
|
|
9
|
-
max-height: 100%;
|
|
10
|
-
}
|
|
11
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
|
|
12
|
-
padding: 0 1.875rem !important;
|
|
13
|
-
overflow: visible !important;
|
|
14
|
-
max-height: 100%;
|
|
15
|
-
}
|
|
16
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
|
|
17
|
-
position: relative;
|
|
18
|
-
}
|
|
19
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
|
|
20
|
-
position: absolute;
|
|
21
|
-
z-index: 1;
|
|
22
|
-
top: 1.5rem;
|
|
23
|
-
right: 0;
|
|
24
|
-
transform: translate(0.625rem, -0.625rem);
|
|
25
|
-
cursor: pointer;
|
|
26
|
-
}
|
|
27
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
|
|
28
|
-
display: flex;
|
|
29
|
-
padding-top: 0.5rem;
|
|
30
|
-
position: relative;
|
|
31
|
-
}
|
|
32
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
|
|
33
|
-
margin-top: 1rem;
|
|
34
|
-
margin-bottom: 1.5rem;
|
|
35
|
-
margin-inline: auto;
|
|
36
|
-
}
|
|
37
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
|
|
38
|
-
stroke: #12131a;
|
|
39
|
-
}
|
|
40
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
|
|
41
|
-
stroke: #12131a;
|
|
42
|
-
}
|
|
43
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
|
|
44
|
-
fill: #12131a;
|
|
45
|
-
}
|
|
46
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
|
|
47
|
-
stroke: #faad14;
|
|
48
|
-
}
|
|
49
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
|
|
50
|
-
stroke: #faad14;
|
|
51
|
-
}
|
|
52
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
|
|
53
|
-
stroke: #da3f3f;
|
|
54
|
-
}
|
|
55
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
|
|
56
|
-
stroke: #da3f3f;
|
|
57
|
-
}
|
|
58
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
|
|
59
|
-
fill: #da3f3f;
|
|
60
|
-
}
|
|
61
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
|
|
62
|
-
font-size: 1.5rem;
|
|
1
|
+
p.apiName {
|
|
2
|
+
font-size: 40px;
|
|
3
|
+
line-height: 30px;
|
|
63
4
|
font-weight: 500;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
|
|
69
|
-
color: #da3f3f;
|
|
70
|
-
}
|
|
71
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
|
|
72
|
-
color: #faad14;
|
|
73
|
-
}
|
|
74
|
-
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
|
|
75
|
-
display: flex;
|
|
5
|
+
}.apiInfoForm {
|
|
6
|
+
display: grid;
|
|
7
|
+
padding: 1.25rem 1.875rem;
|
|
76
8
|
gap: 1.25rem;
|
|
77
|
-
margin-top: 1.875rem;
|
|
78
|
-
}.containerTitleDrawer {
|
|
79
|
-
height: 64px;
|
|
80
|
-
min-height: 64px;
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: row;
|
|
83
|
-
justify-content: space-between;
|
|
84
|
-
align-items: center;
|
|
85
|
-
background-color: #f1f2f6;
|
|
86
|
-
padding: 0 30px 0 30px;
|
|
87
|
-
width: 100%;
|
|
88
9
|
}
|
|
89
|
-
.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
line-height: 25px;
|
|
94
|
-
letter-spacing: 0em;
|
|
95
|
-
}
|
|
96
|
-
.containerTitleDrawer svg path {
|
|
97
|
-
stroke: #000 !important;
|
|
10
|
+
.apiInfoForm .apiDocRow {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 1fr 1fr;
|
|
13
|
+
gap: 1.25rem;
|
|
98
14
|
}
|
|
99
|
-
.
|
|
100
|
-
|
|
15
|
+
.apiInfoForm .apiInfoForm_tagsChips {
|
|
16
|
+
margin-top: -1.25rem;
|
|
101
17
|
}.methodAccordion {
|
|
102
18
|
border: none !important;
|
|
103
19
|
box-shadow: none !important;
|
|
@@ -247,6 +163,12 @@
|
|
|
247
163
|
padding: 1.25rem !important;
|
|
248
164
|
padding: 0 !important;
|
|
249
165
|
}
|
|
166
|
+
.methodAccordion .methodAccordionContent .requestAccordion :global(.details.show) :global(.jsonField) div textarea,
|
|
167
|
+
.methodAccordion .methodAccordionContent .responseAccordion :global(.details.show) :global(.jsonField) div textarea {
|
|
168
|
+
border-top-right-radius: 0;
|
|
169
|
+
border-top-left-radius: 0;
|
|
170
|
+
height: 10rem;
|
|
171
|
+
}
|
|
250
172
|
.methodAccordion .methodAccordionContent .requestAccordion :global(.details.show .textArea .containerTextArea),
|
|
251
173
|
.methodAccordion .methodAccordionContent .responseAccordion :global(.details.show .textArea .containerTextArea) {
|
|
252
174
|
display: flex;
|
|
@@ -332,10 +254,6 @@
|
|
|
332
254
|
width: 0.625rem;
|
|
333
255
|
aspect-ratio: 1/1;
|
|
334
256
|
border-radius: 100%;
|
|
335
|
-
}
|
|
336
|
-
.methodAccordion .methodAccordionContent .methodForm_submitBtn {
|
|
337
|
-
height: 1.25rem !important;
|
|
338
|
-
width: 4.25rem;
|
|
339
257
|
}.tooltip-custom-wrapper {
|
|
340
258
|
display: flex;
|
|
341
259
|
}
|
|
@@ -426,22 +344,29 @@
|
|
|
426
344
|
z-index: 20000000000;
|
|
427
345
|
top: -0.6rem;
|
|
428
346
|
transform-origin: center !important;
|
|
429
|
-
}.
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
347
|
+
}.containerTitleDrawer {
|
|
348
|
+
height: 64px;
|
|
349
|
+
min-height: 64px;
|
|
350
|
+
display: flex;
|
|
351
|
+
flex-direction: row;
|
|
352
|
+
justify-content: space-between;
|
|
353
|
+
align-items: center;
|
|
354
|
+
background-color: #f1f2f6;
|
|
355
|
+
padding: 0 30px 0 30px;
|
|
356
|
+
width: 100%;
|
|
433
357
|
}
|
|
434
|
-
.
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
358
|
+
.containerTitleDrawer span {
|
|
359
|
+
color: #12131a;
|
|
360
|
+
font-weight: 600;
|
|
361
|
+
font-size: 18px;
|
|
362
|
+
line-height: 25px;
|
|
363
|
+
letter-spacing: 0em;
|
|
438
364
|
}
|
|
439
|
-
.
|
|
440
|
-
|
|
365
|
+
.containerTitleDrawer svg path {
|
|
366
|
+
stroke: #000 !important;
|
|
441
367
|
}
|
|
442
|
-
.
|
|
443
|
-
|
|
444
|
-
width: 4.25rem;
|
|
368
|
+
.containerTitleDrawer .closeIcon {
|
|
369
|
+
cursor: pointer;
|
|
445
370
|
}:root {
|
|
446
371
|
--white: #fff;
|
|
447
372
|
--Gray-5: #f1f2f6;
|
|
@@ -671,6 +596,198 @@
|
|
|
671
596
|
.tableSectionContainer .descArrow path,
|
|
672
597
|
.tableSectionContainer .defaultSortArrow path {
|
|
673
598
|
fill: var(--Gray-50);
|
|
599
|
+
}.chips-container {
|
|
600
|
+
width: 100%;
|
|
601
|
+
}
|
|
602
|
+
.chips-container .overflow-dropdown-div {
|
|
603
|
+
max-height: 4.25rem;
|
|
604
|
+
overflow: hidden;
|
|
605
|
+
}
|
|
606
|
+
.chips-container .overflow-dropdown-div .dropdown-list {
|
|
607
|
+
display: flex;
|
|
608
|
+
flex-wrap: wrap;
|
|
609
|
+
gap: 0.625rem;
|
|
610
|
+
margin-top: 0.625rem;
|
|
611
|
+
}
|
|
612
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip {
|
|
613
|
+
display: flex;
|
|
614
|
+
justify-content: center;
|
|
615
|
+
align-items: center;
|
|
616
|
+
background: #ebecf2;
|
|
617
|
+
border-radius: 3.125rem;
|
|
618
|
+
width: max-content;
|
|
619
|
+
height: 1.5rem;
|
|
620
|
+
overflow: hidden;
|
|
621
|
+
transition: all 0.4s ease-in-out;
|
|
622
|
+
padding-right: 0.9375rem;
|
|
623
|
+
cursor: default;
|
|
624
|
+
}
|
|
625
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled):hover {
|
|
626
|
+
background: #d8dae5;
|
|
627
|
+
}
|
|
628
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled):active {
|
|
629
|
+
background: #696c80;
|
|
630
|
+
color: #fff;
|
|
631
|
+
}
|
|
632
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled):active .chip-close-icon path {
|
|
633
|
+
stroke: #fff;
|
|
634
|
+
}
|
|
635
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled) .chip-close-icon {
|
|
636
|
+
cursor: pointer;
|
|
637
|
+
}
|
|
638
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip.clickable {
|
|
639
|
+
cursor: pointer;
|
|
640
|
+
}
|
|
641
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip .chip-text {
|
|
642
|
+
display: flex;
|
|
643
|
+
align-items: center;
|
|
644
|
+
font-size: 0.95rem;
|
|
645
|
+
height: 100%;
|
|
646
|
+
padding-left: 0.9375rem;
|
|
647
|
+
margin-top: -0.125rem;
|
|
648
|
+
}
|
|
649
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip .chip-close-icon {
|
|
650
|
+
display: block;
|
|
651
|
+
height: 0.75rem;
|
|
652
|
+
width: 0.75rem;
|
|
653
|
+
margin-block: auto;
|
|
654
|
+
margin-left: 0.625rem;
|
|
655
|
+
}
|
|
656
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip .chip-close-icon path {
|
|
657
|
+
stroke: #12131a;
|
|
658
|
+
}
|
|
659
|
+
.chips-container .dropdown-max-height {
|
|
660
|
+
max-height: -moz-fit-content;
|
|
661
|
+
max-height: fit-content !important;
|
|
662
|
+
}
|
|
663
|
+
.chips-container .dropdown-overflow {
|
|
664
|
+
overflow: visible !important;
|
|
665
|
+
}
|
|
666
|
+
.chips-container .show-btn {
|
|
667
|
+
display: flex;
|
|
668
|
+
flex-direction: row;
|
|
669
|
+
flex-wrap: nowrap;
|
|
670
|
+
justify-content: center;
|
|
671
|
+
align-items: center;
|
|
672
|
+
width: auto;
|
|
673
|
+
height: 1.25rem;
|
|
674
|
+
cursor: pointer;
|
|
675
|
+
border: none;
|
|
676
|
+
margin-top: 0.625rem;
|
|
677
|
+
color: #9a9eb2;
|
|
678
|
+
background-color: transparent;
|
|
679
|
+
}
|
|
680
|
+
.chips-container .show-btn .show-btn-text-container {
|
|
681
|
+
flex: 1 1 auto;
|
|
682
|
+
}
|
|
683
|
+
.chips-container .show-btn .show-btn-text-container .show-btn-text {
|
|
684
|
+
font-size: 0.75rem;
|
|
685
|
+
text-decoration-line: underline;
|
|
686
|
+
}
|
|
687
|
+
.chips-container .show-btn .show-btn-icon-container {
|
|
688
|
+
display: flex;
|
|
689
|
+
justify-content: center;
|
|
690
|
+
align-items: center;
|
|
691
|
+
height: 1.25rem;
|
|
692
|
+
width: 1.25rem;
|
|
693
|
+
margin-top: 0.1875rem;
|
|
694
|
+
margin-left: 0.125rem;
|
|
695
|
+
}
|
|
696
|
+
.chips-container .show-btn .show-btn-icon-container .show-btn-icon {
|
|
697
|
+
height: 1.25rem;
|
|
698
|
+
width: 1.25rem;
|
|
699
|
+
}
|
|
700
|
+
.chips-container .show-btn .show-btn-icon-container .show-btn-icon path {
|
|
701
|
+
fill: #9a9eb2;
|
|
702
|
+
}
|
|
703
|
+
.chips-container .show-btn:hover {
|
|
704
|
+
color: #7c9bea;
|
|
705
|
+
}
|
|
706
|
+
.chips-container .show-btn:hover .show-btn-icon-container .show-btn-icon path {
|
|
707
|
+
fill: #7c9bea;
|
|
708
|
+
}
|
|
709
|
+
.chips-container .show-btn:active {
|
|
710
|
+
color: #2c4fa4;
|
|
711
|
+
}
|
|
712
|
+
.chips-container .show-btn:active .show-btn-icon-container .show-btn-icon path {
|
|
713
|
+
fill: #2c4fa4;
|
|
714
|
+
}#common-dialog.dialog-content-wrapper {
|
|
715
|
+
overflow: visible !important;
|
|
716
|
+
max-height: 100%;
|
|
717
|
+
width: 22.1875rem;
|
|
718
|
+
}
|
|
719
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root {
|
|
720
|
+
overflow: visible !important;
|
|
721
|
+
border-radius: 0.625rem;
|
|
722
|
+
max-height: 100%;
|
|
723
|
+
}
|
|
724
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content {
|
|
725
|
+
padding: 0 1.875rem !important;
|
|
726
|
+
overflow: visible !important;
|
|
727
|
+
max-height: 100%;
|
|
728
|
+
}
|
|
729
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog {
|
|
730
|
+
position: relative;
|
|
731
|
+
}
|
|
732
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .close-icon {
|
|
733
|
+
position: absolute;
|
|
734
|
+
z-index: 1;
|
|
735
|
+
top: 1.5rem;
|
|
736
|
+
right: 0;
|
|
737
|
+
transform: translate(0.625rem, -0.625rem);
|
|
738
|
+
cursor: pointer;
|
|
739
|
+
}
|
|
740
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header {
|
|
741
|
+
display: flex;
|
|
742
|
+
padding-top: 0.5rem;
|
|
743
|
+
position: relative;
|
|
744
|
+
}
|
|
745
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon {
|
|
746
|
+
margin-top: 1rem;
|
|
747
|
+
margin-bottom: 1.5rem;
|
|
748
|
+
margin-inline: auto;
|
|
749
|
+
}
|
|
750
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info path {
|
|
751
|
+
stroke: #12131a;
|
|
752
|
+
}
|
|
753
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line {
|
|
754
|
+
stroke: #12131a;
|
|
755
|
+
}
|
|
756
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.info line + path {
|
|
757
|
+
fill: #12131a;
|
|
758
|
+
}
|
|
759
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning path {
|
|
760
|
+
stroke: #faad14;
|
|
761
|
+
}
|
|
762
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.warning line {
|
|
763
|
+
stroke: #faad14;
|
|
764
|
+
}
|
|
765
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error path {
|
|
766
|
+
stroke: #da3f3f;
|
|
767
|
+
}
|
|
768
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line {
|
|
769
|
+
stroke: #da3f3f;
|
|
770
|
+
}
|
|
771
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-header .icon.error line + path {
|
|
772
|
+
fill: #da3f3f;
|
|
773
|
+
}
|
|
774
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title {
|
|
775
|
+
font-size: 1.5rem;
|
|
776
|
+
font-weight: 500;
|
|
777
|
+
line-height: 1.875rem;
|
|
778
|
+
text-align: center;
|
|
779
|
+
margin-bottom: 0.625rem;
|
|
780
|
+
}
|
|
781
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.error-title {
|
|
782
|
+
color: #da3f3f;
|
|
783
|
+
}
|
|
784
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-title.warning-title {
|
|
785
|
+
color: #faad14;
|
|
786
|
+
}
|
|
787
|
+
#common-dialog.dialog-content-wrapper .dialog-content-root .dialog-content .common-dialog .confirmation-dialog-footer {
|
|
788
|
+
display: flex;
|
|
789
|
+
gap: 1.25rem;
|
|
790
|
+
margin-top: 1.875rem;
|
|
674
791
|
}:root {
|
|
675
792
|
--white: #fff;
|
|
676
793
|
--Gray-5: #f1f2f6;
|
|
@@ -776,123 +893,109 @@
|
|
|
776
893
|
}
|
|
777
894
|
.drawerItemContainer .color-red {
|
|
778
895
|
color: var(--color-error);
|
|
779
|
-
}.
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
overflow: hidden;
|
|
896
|
+
}.json-editor-container .json-editor-label {
|
|
897
|
+
font-size: 0.875rem;
|
|
898
|
+
font-weight: 600;
|
|
899
|
+
line-height: 1.25rem;
|
|
900
|
+
margin-bottom: 0.3125rem;
|
|
785
901
|
}
|
|
786
|
-
.
|
|
902
|
+
.json-editor-container .json-editor {
|
|
787
903
|
display: flex;
|
|
788
|
-
flex-
|
|
789
|
-
|
|
790
|
-
|
|
904
|
+
flex-direction: column;
|
|
905
|
+
background-color: #142452;
|
|
906
|
+
width: 100%;
|
|
907
|
+
border-radius: 0.3125rem;
|
|
908
|
+
margin-bottom: -0.5rem;
|
|
909
|
+
outline: 1px solid transparent;
|
|
910
|
+
position: relative;
|
|
791
911
|
}
|
|
792
|
-
.
|
|
912
|
+
.json-editor-container .json-editor .actions-container {
|
|
913
|
+
width: 100%;
|
|
914
|
+
height: 5rem;
|
|
915
|
+
padding: 1.25rem;
|
|
916
|
+
border-radius: 0 0 0.3125rem 0.3125rem;
|
|
917
|
+
background: #101e47;
|
|
793
918
|
display: flex;
|
|
794
|
-
|
|
919
|
+
flex-direction: row;
|
|
920
|
+
gap: 1.25rem;
|
|
795
921
|
align-items: center;
|
|
796
|
-
background: #ebecf2;
|
|
797
|
-
border-radius: 3.125rem;
|
|
798
|
-
width: max-content;
|
|
799
|
-
height: 1.5rem;
|
|
800
|
-
overflow: hidden;
|
|
801
|
-
transition: all 0.4s ease-in-out;
|
|
802
|
-
padding-right: 0.9375rem;
|
|
803
|
-
cursor: default;
|
|
804
|
-
}
|
|
805
|
-
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled):hover {
|
|
806
|
-
background: #d8dae5;
|
|
807
922
|
}
|
|
808
|
-
.
|
|
809
|
-
background: #696c80;
|
|
923
|
+
.json-editor-container .json-editor .actions-container .validate {
|
|
810
924
|
color: #fff;
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
925
|
+
text-align: center;
|
|
926
|
+
font-size: 1rem;
|
|
927
|
+
font-style: normal;
|
|
928
|
+
font-weight: 600;
|
|
929
|
+
line-height: 1.25rem;
|
|
930
|
+
width: 8.75rem;
|
|
931
|
+
padding: 0.625rem 2.25rem;
|
|
932
|
+
background-color: rgba(240, 248, 255, 0);
|
|
933
|
+
border-radius: 0.3125rem;
|
|
934
|
+
border: 0.0625rem solid #4d75d8;
|
|
816
935
|
cursor: pointer;
|
|
817
936
|
}
|
|
818
|
-
.
|
|
937
|
+
.json-editor-container .json-editor .actions-container .validate:disabled {
|
|
938
|
+
color: #babdcc;
|
|
939
|
+
border-color: #a2a5b6;
|
|
940
|
+
}
|
|
941
|
+
.json-editor-container .json-editor .actions-container .beautify {
|
|
942
|
+
color: #fff;
|
|
943
|
+
text-align: center;
|
|
944
|
+
font-size: 1rem;
|
|
945
|
+
font-style: normal;
|
|
946
|
+
font-weight: 600;
|
|
947
|
+
line-height: 1.25rem;
|
|
948
|
+
width: 8.75rem;
|
|
949
|
+
padding: 0.625rem 2.25rem;
|
|
950
|
+
background-color: rgba(240, 248, 255, 0);
|
|
951
|
+
border-radius: 0.3125rem;
|
|
952
|
+
border: 1px solid #babdcc;
|
|
819
953
|
cursor: pointer;
|
|
820
954
|
}
|
|
821
|
-
.
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
font-size: 0.95rem;
|
|
825
|
-
height: 100%;
|
|
826
|
-
padding-left: 0.9375rem;
|
|
827
|
-
margin-top: -0.125rem;
|
|
955
|
+
.json-editor-container .json-editor .actions-container .beautify:disabled {
|
|
956
|
+
color: #a2a5b6;
|
|
957
|
+
border-color: #a2a5b6;
|
|
828
958
|
}
|
|
829
|
-
.
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
959
|
+
.json-editor-container .json-editor textarea {
|
|
960
|
+
width: 100%;
|
|
961
|
+
padding: 1.25rem;
|
|
962
|
+
font-size: 0.875rem;
|
|
963
|
+
font-style: normal;
|
|
964
|
+
font-weight: 400;
|
|
965
|
+
line-height: 1.25rem;
|
|
966
|
+
color: white;
|
|
967
|
+
height: 25rem;
|
|
968
|
+
background-color: #142452;
|
|
969
|
+
border: none;
|
|
970
|
+
resize: none;
|
|
971
|
+
border-radius: 0.3125rem;
|
|
835
972
|
}
|
|
836
|
-
.
|
|
837
|
-
|
|
973
|
+
.json-editor-container .json-editor textarea:focus, .json-editor-container .json-editor textarea:focus-within, .json-editor-container .json-editor textarea:focus-visible .json-editor-container .json-editor textarea:active {
|
|
974
|
+
outline: none;
|
|
975
|
+
border: none;
|
|
838
976
|
}
|
|
839
|
-
.
|
|
840
|
-
|
|
841
|
-
max-height: fit-content !important;
|
|
977
|
+
.json-editor-container .json-editor textarea::-webkit-scrollbar {
|
|
978
|
+
width: 0.5rem;
|
|
842
979
|
}
|
|
843
|
-
.
|
|
844
|
-
|
|
980
|
+
.json-editor-container .json-editor textarea::-webkit-scrollbar-track {
|
|
981
|
+
background-color: #828699;
|
|
982
|
+
border: none;
|
|
983
|
+
border-color: transparent;
|
|
984
|
+
border-top-right-radius: 0.25rem;
|
|
985
|
+
border-top-left-radius: 0;
|
|
845
986
|
}
|
|
846
|
-
.
|
|
847
|
-
|
|
848
|
-
flex-direction: row;
|
|
849
|
-
flex-wrap: nowrap;
|
|
850
|
-
justify-content: center;
|
|
851
|
-
align-items: center;
|
|
852
|
-
width: auto;
|
|
853
|
-
height: 1.25rem;
|
|
854
|
-
cursor: pointer;
|
|
987
|
+
.json-editor-container .json-editor textarea::-webkit-scrollbar-thumb {
|
|
988
|
+
background-color: #d8dae5;
|
|
855
989
|
border: none;
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
background-color: transparent;
|
|
990
|
+
border-color: transparent;
|
|
991
|
+
border-radius: 0;
|
|
859
992
|
}
|
|
860
|
-
.
|
|
861
|
-
|
|
993
|
+
.json-editor-container .json-editor.invalid {
|
|
994
|
+
outline: 1px solid #ce2828 !important;
|
|
862
995
|
}
|
|
863
|
-
.
|
|
996
|
+
.json-editor-container .error-message {
|
|
997
|
+
color: #ce2828;
|
|
864
998
|
font-size: 0.75rem;
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
.chips-container .show-btn .show-btn-icon-container {
|
|
868
|
-
display: flex;
|
|
869
|
-
justify-content: center;
|
|
870
|
-
align-items: center;
|
|
871
|
-
height: 1.25rem;
|
|
872
|
-
width: 1.25rem;
|
|
873
|
-
margin-top: 0.1875rem;
|
|
874
|
-
margin-left: 0.125rem;
|
|
875
|
-
}
|
|
876
|
-
.chips-container .show-btn .show-btn-icon-container .show-btn-icon {
|
|
877
|
-
height: 1.25rem;
|
|
878
|
-
width: 1.25rem;
|
|
879
|
-
}
|
|
880
|
-
.chips-container .show-btn .show-btn-icon-container .show-btn-icon path {
|
|
881
|
-
fill: #9a9eb2;
|
|
882
|
-
}
|
|
883
|
-
.chips-container .show-btn:hover {
|
|
884
|
-
color: #7c9bea;
|
|
885
|
-
}
|
|
886
|
-
.chips-container .show-btn:hover .show-btn-icon-container .show-btn-icon path {
|
|
887
|
-
fill: #7c9bea;
|
|
888
|
-
}
|
|
889
|
-
.chips-container .show-btn:active {
|
|
890
|
-
color: #2c4fa4;
|
|
891
|
-
}
|
|
892
|
-
.chips-container .show-btn:active .show-btn-icon-container .show-btn-icon path {
|
|
893
|
-
fill: #2c4fa4;
|
|
894
|
-
}p.apiName {
|
|
895
|
-
font-size: 40px;
|
|
896
|
-
line-height: 30px;
|
|
897
|
-
font-weight: 500;
|
|
999
|
+
line-height: 1.25rem;
|
|
1000
|
+
margin-top: 0.625rem;
|
|
898
1001
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
declare const JsonInput: ({ placeholder, label, value, onValidation, onChange, dataId, className, errorMessage, acceptType, fieldIsDisabled, }: {
|
|
2
|
+
placeholder: any;
|
|
3
|
+
label: any;
|
|
4
|
+
value: any;
|
|
5
|
+
onValidation: any;
|
|
6
|
+
onChange: any;
|
|
7
|
+
dataId: any;
|
|
8
|
+
className?: string;
|
|
9
|
+
errorMessage: any;
|
|
10
|
+
acceptType?: string;
|
|
11
|
+
fieldIsDisabled: any;
|
|
12
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default JsonInput;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { TransformedMethod } from '../../types/layout.type';
|
|
2
|
-
declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly,
|
|
2
|
+
declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, }: {
|
|
3
3
|
method: TransformedMethod;
|
|
4
4
|
path: string;
|
|
5
5
|
setFieldValue: (key: string, value: string) => void;
|
|
6
6
|
readOnly?: boolean;
|
|
7
|
-
handleSave: (data: any) => unknown;
|
|
8
7
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
8
|
export default MethodsAccordion;
|