@digi-frontend/dgate-api-documentation 1.0.5 → 1.0.7
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/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/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 +212 -315
- package/dist/types/components/MethodAccordion/MethodAccordion.d.ts +2 -1
- package/dist/types/constants/index.d.ts +4 -12
- package/dist/types/types/index.d.ts +18 -0
- package/dist/types/types/layout.type.d.ts +1 -9
- package/dist/types/types/openApi.d.ts +1 -1
- package/package.json +1 -1
- package/src/components/InfoForm/InfoForm.module.scss +114 -0
- package/src/components/InfoForm/InfoForm.tsx +271 -51
- package/src/components/JsonInput/JsonInput.tsx +6 -0
- package/src/components/MethodAccordion/MethodAccordion.tsx +38 -9
- package/src/components/table/tags-table.tsx +308 -0
- package/src/constants/index.ts +21 -0
- package/src/helpers/layout.helper.ts +24 -26
- package/src/layout/layout.tsx +1 -0
- package/src/types/layout.type.ts +1 -1
- package/src/types/openApi.ts +13 -0
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js +0 -3
- package/dist/node_modules/js-yaml/dist/js-yaml.mjs.js.map +0 -1
- package/dist/src/components/JsonInput/JsonInput.js +0 -2
- package/dist/src/components/JsonInput/JsonInput.js.map +0 -1
- package/dist/src/components/JsonInput/style.module.scss.js +0 -2
- package/dist/src/components/JsonInput/style.module.scss.js.map +0 -1
- package/dist/types/components/JsonInput/JsonInput.d.ts +0 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout.js","sources":["../../../src/layout/layout.tsx"],"sourcesContent":["import { JSX } from 'react'\r\nimport { Alert
|
|
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 * as Yup from 'yup'\r\nimport { schemaValidation } from '../validator/form.scheme'\r\nimport { TransformedOpenApi } from '@entities/transformedOpenApi'\r\n\r\ninterface ILayoutProps {\r\n openApiJson?: OpenAPIFile\r\n}\r\n\r\nconst Layout = ({ openApiJson, handleSave }: ILayoutProps): JSX.Element => {\r\n const transformedOpenApi = transformOpenApiObject(openApiJson)\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 handleSave(transformOpenApiObjectToOrigin(values))\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 className={styles.editorSectionHead} text=\"API Information\" />\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.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 handleSave={formik.submitForm}\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","transformedOpenApi","transformOpenApiObject","formik","useFormik","initialValues","structuredClone","validationSchema","schemaValidation","validateOnMount","onSubmit","values","validateForm","transformOpenApiObjectToOrigin","_jsxs","className","styles","docsLayout","children","_jsx","Alert","apiDocAlert","color","layoutContainer","jsxs","editorSide","docSide","jsx","SectionHead","editorSectionHead","text","FormikProvider","value","InfoForm","paths","map","path","pathIndex","_Fragment","Fragment","methods","method","methodIndex","MethodsAccordion","setFieldValue","key","h","submitForm","livePreviewSide","LivePreview","transformedData"],"mappings":"2mBAkBM,MAAAA,EAAS,EAAGC,cAAaC,iBAC7B,MAAMC,EAAqBC,EAAuBH,GAC5CI,EAASC,EAA8B,CAC3CC,cAAeC,gBAAgBL,GAC/BM,iBAAkBC,EAClBC,iBAAiB,EACjBC,SAAU,CAACC,GAAUC,mBAEnBZ,EAAWa,EAA+BF,IAC1CC,EAAaD,EAAO,IAIxB,OACEG,OAAA,MAAA,CAAKC,UAAWC,EAAOC,WACrBC,SAAA,CAAAC,EAAAA,IAACC,EAAKA,MAAA,CAACL,UAAWC,EAAOK,YAAaC,MAAM,OAGpCJ,SAAA,sGACRJ,EAAAA,YAAKC,UAAWC,EAAOO,gBAAeL,SAAA,CACpCJ,EAAKU,KAAA,MAAA,CAAAT,UAAW,GAAGC,EAAOS,cAAcT,EAAOU,UAC7CR,SAAA,CAAAC,EAAAQ,IAACC,EAAW,CAACb,UAAWC,EAAOa,kBAAmBC,KAAK,oBACvDX,EAACQ,IAAAI,GAAeC,MAAO7B,EAAMe,SAC3BC,EAACQ,IAAAM,EAAW,CAAA,KAEdd,EAACQ,IAAAC,EAAY,CAAAb,UAAWC,EAAOa,kBAAmBC,KAAK,gBACvDX,MAACY,EAAc,CAACC,MAAO7B,EACpBe,SAAAf,EAAOQ,OAAOuB,MAAMC,KAAI,CAACC,EAAMC,IAC9BlB,EAAAA,IAAAmB,EAAAC,SAAA,CAAArB,SACGkB,EAAKI,QAAQL,KAAI,CAACM,EAAQC,IACzBvB,EAAAA,IAACwB,EACC,CAAAF,OAAQA,EACRL,KAAMA,EAAKA,KACXQ,cAAe,CAACC,EAAKb,KACnB,MAAMc,EAAI,SAAST,cAAsBK,MAAgBG,IACzD1C,EAAOyC,cAAcE,EAAGd,EAAM,EAEhChC,WAAYG,EAAO4C,wBAO/B5B,MAAA,MAAA,CAAKJ,UAAW,GAAGC,EAAOgC,mBAAmBhC,EAAOU,UAASR,SAC1DjB,GACCkB,MAACY,EAAe,CAAAC,MAAO7B,EACrBe,SAAAC,EAAAQ,IAACsB,EAAY,CAAAC,gBAAiBjD,aAMzC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from"../../node_modules/style-inject/dist/style-inject.es.js";var e={docsLayout:"layout-module_docsLayout__vDeK7",apiDocAlert:"layout-module_apiDocAlert__cSDp2",layoutContainer:"layout-module_layoutContainer__qBWib",editorSide:"layout-module_editorSide__hWc6O",livePreviewSide:"layout-module_livePreviewSide__Q5HsZ",docSide:"layout-module_docSide__qLt4E"};o(".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_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{e as default};
|
|
2
2
|
//# sourceMappingURL=layout.module.css.js.map
|
package/dist/styles.css
CHANGED
|
@@ -1,19 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
#common-dialog.dialog-content-wrapper {
|
|
2
|
+
overflow: visible !important;
|
|
3
|
+
max-height: 100%;
|
|
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;
|
|
4
63
|
font-weight: 500;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
gap: 1.25rem;
|
|
64
|
+
line-height: 1.875rem;
|
|
65
|
+
text-align: center;
|
|
66
|
+
margin-bottom: 0.625rem;
|
|
9
67
|
}
|
|
10
|
-
.
|
|
11
|
-
|
|
12
|
-
|
|
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;
|
|
13
76
|
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%;
|
|
14
88
|
}
|
|
15
|
-
.
|
|
16
|
-
|
|
89
|
+
.containerTitleDrawer span {
|
|
90
|
+
color: #12131a;
|
|
91
|
+
font-weight: 600;
|
|
92
|
+
font-size: 18px;
|
|
93
|
+
line-height: 25px;
|
|
94
|
+
letter-spacing: 0em;
|
|
95
|
+
}
|
|
96
|
+
.containerTitleDrawer svg path {
|
|
97
|
+
stroke: #000 !important;
|
|
98
|
+
}
|
|
99
|
+
.containerTitleDrawer .closeIcon {
|
|
100
|
+
cursor: pointer;
|
|
17
101
|
}.methodAccordion {
|
|
18
102
|
border: none !important;
|
|
19
103
|
box-shadow: none !important;
|
|
@@ -163,12 +247,6 @@ p.apiName {
|
|
|
163
247
|
padding: 1.25rem !important;
|
|
164
248
|
padding: 0 !important;
|
|
165
249
|
}
|
|
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
|
-
}
|
|
172
250
|
.methodAccordion .methodAccordionContent .requestAccordion :global(.details.show .textArea .containerTextArea),
|
|
173
251
|
.methodAccordion .methodAccordionContent .responseAccordion :global(.details.show .textArea .containerTextArea) {
|
|
174
252
|
display: flex;
|
|
@@ -254,6 +332,10 @@ p.apiName {
|
|
|
254
332
|
width: 0.625rem;
|
|
255
333
|
aspect-ratio: 1/1;
|
|
256
334
|
border-radius: 100%;
|
|
335
|
+
}
|
|
336
|
+
.methodAccordion .methodAccordionContent .methodForm_submitBtn {
|
|
337
|
+
height: 1.25rem !important;
|
|
338
|
+
width: 4.25rem;
|
|
257
339
|
}.tooltip-custom-wrapper {
|
|
258
340
|
display: flex;
|
|
259
341
|
}
|
|
@@ -344,29 +426,22 @@ p.apiName {
|
|
|
344
426
|
z-index: 20000000000;
|
|
345
427
|
top: -0.6rem;
|
|
346
428
|
transform-origin: center !important;
|
|
347
|
-
}.
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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%;
|
|
429
|
+
}.apiInfoForm {
|
|
430
|
+
display: grid;
|
|
431
|
+
padding: 1.25rem 1.875rem;
|
|
432
|
+
gap: 1.25rem;
|
|
357
433
|
}
|
|
358
|
-
.
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
line-height: 25px;
|
|
363
|
-
letter-spacing: 0em;
|
|
434
|
+
.apiInfoForm .apiDocRow {
|
|
435
|
+
display: grid;
|
|
436
|
+
grid-template-columns: 1fr 1fr;
|
|
437
|
+
gap: 1.25rem;
|
|
364
438
|
}
|
|
365
|
-
.
|
|
366
|
-
|
|
439
|
+
.apiInfoForm .apiInfoForm_tagsChips {
|
|
440
|
+
margin-top: -1.25rem;
|
|
367
441
|
}
|
|
368
|
-
.
|
|
369
|
-
|
|
442
|
+
.apiInfoForm .apiInfoForm_submitBtn {
|
|
443
|
+
height: 1.25rem !important;
|
|
444
|
+
width: 4.25rem;
|
|
370
445
|
}:root {
|
|
371
446
|
--white: #fff;
|
|
372
447
|
--Gray-5: #f1f2f6;
|
|
@@ -596,198 +671,6 @@ p.apiName {
|
|
|
596
671
|
.tableSectionContainer .descArrow path,
|
|
597
672
|
.tableSectionContainer .defaultSortArrow path {
|
|
598
673
|
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;
|
|
791
674
|
}:root {
|
|
792
675
|
--white: #fff;
|
|
793
676
|
--Gray-5: #f1f2f6;
|
|
@@ -893,109 +776,123 @@ p.apiName {
|
|
|
893
776
|
}
|
|
894
777
|
.drawerItemContainer .color-red {
|
|
895
778
|
color: var(--color-error);
|
|
896
|
-
}.
|
|
897
|
-
|
|
898
|
-
font-weight: 600;
|
|
899
|
-
line-height: 1.25rem;
|
|
900
|
-
margin-bottom: 0.3125rem;
|
|
779
|
+
}.chips-container {
|
|
780
|
+
width: 100%;
|
|
901
781
|
}
|
|
902
|
-
.
|
|
782
|
+
.chips-container .overflow-dropdown-div {
|
|
783
|
+
max-height: 4.25rem;
|
|
784
|
+
overflow: hidden;
|
|
785
|
+
}
|
|
786
|
+
.chips-container .overflow-dropdown-div .dropdown-list {
|
|
903
787
|
display: flex;
|
|
904
|
-
flex-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
border-radius: 0.3125rem;
|
|
908
|
-
margin-bottom: -0.5rem;
|
|
909
|
-
outline: 1px solid transparent;
|
|
910
|
-
position: relative;
|
|
788
|
+
flex-wrap: wrap;
|
|
789
|
+
gap: 0.625rem;
|
|
790
|
+
margin-top: 0.625rem;
|
|
911
791
|
}
|
|
912
|
-
.
|
|
913
|
-
width: 100%;
|
|
914
|
-
height: 5rem;
|
|
915
|
-
padding: 1.25rem;
|
|
916
|
-
border-radius: 0 0 0.3125rem 0.3125rem;
|
|
917
|
-
background: #101e47;
|
|
792
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip {
|
|
918
793
|
display: flex;
|
|
919
|
-
|
|
920
|
-
gap: 1.25rem;
|
|
794
|
+
justify-content: center;
|
|
921
795
|
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;
|
|
922
807
|
}
|
|
923
|
-
.
|
|
808
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled):active {
|
|
809
|
+
background: #696c80;
|
|
924
810
|
color: #fff;
|
|
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;
|
|
935
|
-
cursor: pointer;
|
|
936
811
|
}
|
|
937
|
-
.
|
|
938
|
-
|
|
939
|
-
border-color: #a2a5b6;
|
|
812
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled):active .chip-close-icon path {
|
|
813
|
+
stroke: #fff;
|
|
940
814
|
}
|
|
941
|
-
.
|
|
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;
|
|
815
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip:not(.disabled) .chip-close-icon {
|
|
953
816
|
cursor: pointer;
|
|
954
817
|
}
|
|
955
|
-
.
|
|
956
|
-
|
|
957
|
-
border-color: #a2a5b6;
|
|
818
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip.clickable {
|
|
819
|
+
cursor: pointer;
|
|
958
820
|
}
|
|
959
|
-
.
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
font-size: 0.
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
color: white;
|
|
967
|
-
height: 25rem;
|
|
968
|
-
background-color: #142452;
|
|
969
|
-
border: none;
|
|
970
|
-
resize: none;
|
|
971
|
-
border-radius: 0.3125rem;
|
|
821
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip .chip-text {
|
|
822
|
+
display: flex;
|
|
823
|
+
align-items: center;
|
|
824
|
+
font-size: 0.95rem;
|
|
825
|
+
height: 100%;
|
|
826
|
+
padding-left: 0.9375rem;
|
|
827
|
+
margin-top: -0.125rem;
|
|
972
828
|
}
|
|
973
|
-
.
|
|
974
|
-
|
|
975
|
-
|
|
829
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip .chip-close-icon {
|
|
830
|
+
display: block;
|
|
831
|
+
height: 0.75rem;
|
|
832
|
+
width: 0.75rem;
|
|
833
|
+
margin-block: auto;
|
|
834
|
+
margin-left: 0.625rem;
|
|
835
|
+
}
|
|
836
|
+
.chips-container .overflow-dropdown-div .dropdown-list .chip .chip-close-icon path {
|
|
837
|
+
stroke: #12131a;
|
|
976
838
|
}
|
|
977
|
-
.
|
|
978
|
-
|
|
839
|
+
.chips-container .dropdown-max-height {
|
|
840
|
+
max-height: -moz-fit-content;
|
|
841
|
+
max-height: fit-content !important;
|
|
979
842
|
}
|
|
980
|
-
.
|
|
981
|
-
|
|
982
|
-
border: none;
|
|
983
|
-
border-color: transparent;
|
|
984
|
-
border-top-right-radius: 0.25rem;
|
|
985
|
-
border-top-left-radius: 0;
|
|
843
|
+
.chips-container .dropdown-overflow {
|
|
844
|
+
overflow: visible !important;
|
|
986
845
|
}
|
|
987
|
-
.
|
|
988
|
-
|
|
846
|
+
.chips-container .show-btn {
|
|
847
|
+
display: flex;
|
|
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;
|
|
989
855
|
border: none;
|
|
990
|
-
|
|
991
|
-
|
|
856
|
+
margin-top: 0.625rem;
|
|
857
|
+
color: #9a9eb2;
|
|
858
|
+
background-color: transparent;
|
|
992
859
|
}
|
|
993
|
-
.
|
|
994
|
-
|
|
860
|
+
.chips-container .show-btn .show-btn-text-container {
|
|
861
|
+
flex: 1 1 auto;
|
|
995
862
|
}
|
|
996
|
-
.
|
|
997
|
-
color: #ce2828;
|
|
863
|
+
.chips-container .show-btn .show-btn-text-container .show-btn-text {
|
|
998
864
|
font-size: 0.75rem;
|
|
999
|
-
line
|
|
1000
|
-
|
|
865
|
+
text-decoration-line: underline;
|
|
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;
|
|
1001
898
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { TransformedMethod } from '../../types/layout.type';
|
|
2
|
-
declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, }: {
|
|
2
|
+
declare const MethodsAccordion: ({ method, path, setFieldValue, readOnly, handleSave, }: {
|
|
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;
|
|
7
8
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
8
9
|
export default MethodsAccordion;
|