infinity-forge 2.0.6 → 2.0.8
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/fonts.css +1 -1
- package/dist/infinity-forge.css +1 -1
- package/dist/sites/public/fonts/fonts.css +5 -1
- package/dist/system/container/decorators/authorize-http-client-decorator.js +0 -1
- package/dist/system/container/decorators/authorize-http-client-decorator.js.map +1 -1
- package/dist/system/data/use-cases/dynamic-section/remote-dynamic-section.d.ts +0 -3
- package/dist/system/data/use-cases/dynamic-section/remote-dynamic-section.js +7 -16
- package/dist/system/data/use-cases/dynamic-section/remote-dynamic-section.js.map +1 -1
- package/dist/system/domain/use-cases/files/file-system.d.ts +1 -0
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/card/index.js +2 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/messages/content/index.js +1 -1
- package/dist/system/presentation/components/layout/header/components/menu-right/profile/content/index.js +2 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js +1 -2
- package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/create/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/export/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/filters/index.js +2 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js +6 -0
- package/dist/system/presentation/hooks/ui/use-table/components/table/index.js.map +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.d.ts +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/pagination/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/components/table/thead-item/index.js +1 -1
- package/dist/system/presentation/hooks/ui/use-table/interfaces.d.ts +1 -0
- package/dist/test/index.js +6 -1
- package/dist/test/index.js.map +1 -1
- package/dist/ui/components/form/handler/form-handler/index.js +44 -22
- package/dist/ui/components/form/handler/form-handler/index.js.map +1 -1
- package/dist/ui/components/form/input-control/index.d.ts +1 -1
- package/dist/ui/components/form/input-control/index.js +4 -1
- package/dist/ui/components/form/input-control/index.js.map +1 -1
- package/dist/ui/components/form/input-control/label/index.js +1 -1
- package/dist/ui/components/form/input-control/label/index.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/index.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/styles.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/calendar-header/styles.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/days/index.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/styles.js +1 -1
- package/dist/ui/components/form/input-date-picker/calendar/styles.js.map +1 -1
- package/dist/ui/components/form/input-date-picker/index.js +1 -1
- package/dist/ui/components/form/input-date-picker/index.js.map +1 -1
- package/dist/ui/components/form/input-file/component.d.ts +1 -1
- package/dist/ui/components/form/input-file/component.js +3 -6
- package/dist/ui/components/form/input-file/component.js.map +1 -1
- package/dist/ui/components/form/input-file/hooks/index.d.ts +4 -0
- package/dist/ui/components/form/input-file/hooks/index.js +21 -0
- package/dist/ui/components/form/input-file/hooks/index.js.map +1 -0
- package/dist/ui/components/form/input-file/hooks/use-components-file.d.ts +10 -0
- package/dist/ui/components/form/input-file/hooks/use-components-file.js +63 -0
- package/dist/ui/components/form/input-file/hooks/use-components-file.js.map +1 -0
- package/dist/ui/components/form/input-file/{use-file-elements.d.ts → hooks/use-file-elements.d.ts} +4 -5
- package/dist/ui/components/form/input-file/{use-file-elements.js → hooks/use-file-elements.js} +8 -7
- package/dist/ui/components/form/input-file/hooks/use-file-elements.js.map +1 -0
- package/dist/ui/components/form/input-file/{use-file.d.ts → hooks/use-file.d.ts} +5 -7
- package/dist/ui/components/form/input-file/{use-file.js → hooks/use-file.js} +6 -16
- package/dist/ui/components/form/input-file/hooks/use-file.js.map +1 -0
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.d.ts +9 -0
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.js +71 -0
- package/dist/ui/components/form/input-file/hooks/use-rendered-file.js.map +1 -0
- package/dist/ui/components/form/input-file/index.d.ts +2 -5
- package/dist/ui/components/form/input-file/index.js +2 -5
- package/dist/ui/components/form/input-file/index.js.map +1 -1
- package/dist/ui/components/form/input-file/render-files/component.d.ts +2 -0
- package/dist/ui/components/form/input-file/render-files/component.js +55 -0
- package/dist/ui/components/form/input-file/render-files/component.js.map +1 -0
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.d.ts +13 -0
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js +18 -0
- package/dist/ui/components/form/input-file/render-files/file-item/button-upload-image-mobile/index.js.map +1 -0
- package/dist/ui/components/form/input-file/render-files/file-item/index.d.ts +3 -0
- package/dist/ui/components/form/input-file/render-files/file-item/index.js +49 -0
- package/dist/ui/components/form/input-file/render-files/file-item/index.js.map +1 -0
- package/dist/ui/components/form/input-file/render-files/file-item/styles.d.ts +4 -0
- package/dist/ui/components/form/input-file/render-files/file-item/styles.js +14 -0
- package/dist/ui/components/form/input-file/render-files/file-item/styles.js.map +1 -0
- package/dist/ui/components/form/input-file/render-files/index.d.ts +3 -0
- package/dist/ui/components/form/input-file/render-files/index.js +20 -0
- package/dist/ui/components/form/input-file/render-files/index.js.map +1 -0
- package/dist/ui/components/form/input-file/render-files/interfaces.d.ts +7 -0
- package/dist/ui/components/form/input-file/render-files/interfaces.js +3 -0
- package/dist/ui/components/form/input-file/render-files/interfaces.js.map +1 -0
- package/dist/ui/components/form/input-file/render-files/styles.js +14 -0
- package/dist/ui/components/form/input-file/render-files/styles.js.map +1 -0
- package/dist/ui/components/form/input-file/styles.js +1 -1
- package/dist/ui/components/form/input-file/styles.js.map +1 -1
- package/dist/ui/components/form/input-seo/input-meta-image/index.js +5 -5
- package/dist/ui/components/form/input-seo/input-meta-image/index.js.map +1 -1
- package/dist/ui/components/form/interfaces.d.ts +5 -0
- package/dist/ui/components/form/text-editor/index.js +6 -1
- package/dist/ui/components/form/text-editor/index.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/context.js +2 -3
- package/dist/ui/contexts/dynamic-sections/context.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.d.ts +3 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js +9 -9
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/edit-section.js.map +1 -1
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.d.ts +9 -2
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.js +25 -20
- package/dist/ui/contexts/dynamic-sections/use-dynamic-section/index.js.map +1 -1
- package/dist/ui/contexts/i18n/translate.js +0 -1
- package/dist/ui/contexts/i18n/translate.js.map +1 -1
- package/dist/ui/icons/index.d.ts +1 -0
- package/dist/ui/icons/index.js +1 -0
- package/dist/ui/icons/index.js.map +1 -1
- package/dist/ui/icons/render/mobile.d.ts +2 -0
- package/dist/ui/icons/render/mobile.js +10 -0
- package/dist/ui/icons/render/mobile.js.map +1 -0
- package/dist/ui/icons/render/pet.js +1 -1
- package/dist/ui/icons/render/pet.js.map +1 -1
- package/package.json +1 -1
- package/dist/ui/components/form/input-file/file-card/index.d.ts +0 -7
- package/dist/ui/components/form/input-file/file-card/index.js +0 -35
- package/dist/ui/components/form/input-file/file-card/index.js.map +0 -1
- package/dist/ui/components/form/input-file/file-card/styles.js +0 -14
- package/dist/ui/components/form/input-file/file-card/styles.js.map +0 -1
- package/dist/ui/components/form/input-file/file-card/use-file-card.d.ts +0 -11
- package/dist/ui/components/form/input-file/file-card/use-file-card.js +0 -72
- package/dist/ui/components/form/input-file/file-card/use-file-card.js.map +0 -1
- package/dist/ui/components/form/input-file/use-components-file.d.ts +0 -13
- package/dist/ui/components/form/input-file/use-components-file.js +0 -24
- package/dist/ui/components/form/input-file/use-components-file.js.map +0 -1
- package/dist/ui/components/form/input-file/use-file-elements.js.map +0 -1
- package/dist/ui/components/form/input-file/use-file.js.map +0 -1
- /package/dist/ui/components/form/input-file/{file-card → render-files}/styles.d.ts +0 -0
package/dist/fonts.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.
|
|
1
|
+
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.25rem}}@media only screen and (max-width:1200px){[class*=font-80]{font-size:5.5rem}[class*=font-72]{font-size:4.8rem}[class*=font-70]{font-size:4.6rem}[class*=font-64]{font-size:5.2rem}[class*=font-50]{font-size:4.2rem}[class*=font-48]{font-size:4rem}[class*=font-40]{font-size:3.2rem}[class*=font-32]{font-size:2.4rem}[class*=font-24]{font-size:1.9rem}[class*=font-20]{font-size:1.75rem}[class*=font-18]{font-size:1.6rem}[class*=font-16]{font-size:1.45rem}[class*=font-13]{font-size:1.2rem}}@media only screen and (max-width:1024px){[class*=font-80]{font-size:5.2rem}[class*=font-72]{font-size:4.5rem}[class*=font-70]{font-size:4.3rem}[class*=font-64]{font-size:4.4rem}[class*=font-50]{font-size:4rem}[class*=font-48]{font-size:3.8rem}[class*=font-40]{font-size:3rem}[class*=font-32]{font-size:2.2rem}[class*=font-24]{font-size:1.8rem}[class*=font-20]{font-size:1.7rem}[class*=font-18]{font-size:1.55rem}[class*=font-16]{font-size:1.35rem}[class*=font-14]{font-size:1.3rem}}@media only screen and (max-width:900px){[class*=font-80]{font-size:5rem}[class*=font-72]{font-size:3.8rem}[class*=font-70]{font-size:3.6rem}[class*=font-64]{font-size:3.8rem}[class*=font-48]{font-size:3.6rem}[class*=font-40]{font-size:2.8rem}[class*=font-32]{font-size:2rem}}@media only screen and (max-width:768px){[class*=font-80]{font-size:4.5rem}[class*=font-72]{font-size:3.5rem}[class*=font-70]{font-size:3rem}[class*=font-64]{font-size:3.4rem}[class*=font-50]{font-size:3.8rem}[class*=font-48]{font-size:3.4rem}[class*=font-40]{font-size:2.6rem}[class*=font-32]{font-size:1.9rem}[class*=font-24]{font-size:1.7rem}[class*=font-20]{font-size:1.65rem}[class*=font-18]{font-size:1.5rem}[class*=font-16]{font-size:1.35rem}[class*=font-13]{font-size:1.15rem}}@media only screen and (max-width:650px){[class*=font-80]{font-size:4rem}[class*=font-64]{font-size:3.2rem}[class*=font-50]{font-size:3.5rem}[class*=font-48]{font-size:3.2rem}[class*=font-40]{font-size:2.5rem}[class*=font-32]{font-size:1.8rem}[class*=font-24]{font-size:1.65rem}[class*=font-18]{font-size:1.4rem}[class*=font-16]{font-size:1.3rem}}@media only screen and (max-width:500px){[class*=font-80]{font-size:3.5rem}[class*=font-64]{font-size:2.8rem}[class*=font-50]{font-size:3rem}[class*=font-48]{font-size:2.8rem}[class*=font-40]{font-size:2.3rem}[class*=font-24]{font-size:1.6rem}[class*=font-18]{font-size:1.25rem}[class*=font-16]{font-size:1.2rem}[class*=font-14]{font-size:1.2rem}}@media only screen and (max-width:390px){[class*=font-80]{font-size:3rem}[class*=font-72]{font-size:3rem}[class*=font-64]{font-size:2.6rem}[class*=font-50]{font-size:2.8rem}[class*=font-48]{font-size:2.6rem}[class*=font-40]{font-size:2.1rem}[class*=font-32]{font-size:1.7rem}[class*=font-24]{font-size:1.4rem}[class*=font-18]{font-size:1.2rem}}*,:after,:before{box-sizing:border-box}html{font-family:Roboto,sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:Roboto,sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}
|
package/dist/infinity-forge.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.
|
|
1
|
+
a{text-decoration:unset}html{font-size:10px!important}a,address,b,h1,h2,h3,h4,h5,i,label,li,p,span,strong,td,time{margin-bottom:0;text-rendering:optimizeLegibility!important}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}[class*=-bold]{font-weight:700}[class*=-semibold]{font-weight:600}[class*=-medium]{font-weight:500}[class*=-regular]{font-weight:400}[class*=-light]{font-weight:300}[class*=font-80]{font-size:8rem}[class*=font-72]{font-size:7.2rem}[class*=font-70]{font-size:7rem}[class*=font-64]{font-size:6.4rem}[class*=font-50]{font-size:5rem}[class*=font-48]{font-size:4.8rem}[class*=font-40]{font-size:4rem}[class*=font-36]{font-size:3.6rem}[class*=font-32]{font-size:3.2rem}[class*=font-24]{font-size:2.4rem}[class*=font-20]{font-size:2rem}[class*=font-18]{font-size:1.8rem}[class*=font-16]{font-size:1.6rem}[class*=font-15]{font-size:1.5rem}[class*=font-14]{font-size:1.4rem}[class*=font-13]{font-size:1.3rem}[class*=font-12]{font-size:1.2rem}@media only screen and (max-width:1600px){[class*=font-80]{font-size:6rem}[class*=font-72]{font-size:5.8rem}[class*=font-70]{font-size:5.5rem}[class*=font-64]{font-size:6rem}[class*=font-50]{font-size:4.8rem}[class*=font-48]{font-size:4.4rem}[class*=font-40]{font-size:3.8rem}[class*=font-32]{font-size:3rem}[class*=font-24]{font-size:2.3rem}[class*=font-20]{font-size:1.9rem}[class*=font-18]{font-size:1.7rem}[class*=font-16]{font-size:1.55rem}}@media only screen and (max-width:1400px){[class*=font-80]{font-size:5.4rem}[class*=font-72]{font-size:5.2rem}[class*=font-70]{font-size:4.9rem}[class*=font-64]{font-size:5.6rem}[class*=font-50]{font-size:4.6rem}[class*=font-48]{font-size:4.2rem}[class*=font-40]{font-size:3.6rem}[class*=font-32]{font-size:2.8rem}[class*=font-24]{font-size:2rem}[class*=font-20]{font-size:1.8rem}[class*=font-18]{font-size:1.65rem}[class*=font-16]{font-size:1.5rem}[class*=font-13]{font-size:1.25rem}}@media only screen and (max-width:1200px){[class*=font-80]{font-size:5.5rem}[class*=font-72]{font-size:4.8rem}[class*=font-70]{font-size:4.6rem}[class*=font-64]{font-size:5.2rem}[class*=font-50]{font-size:4.2rem}[class*=font-48]{font-size:4rem}[class*=font-40]{font-size:3.2rem}[class*=font-32]{font-size:2.4rem}[class*=font-24]{font-size:1.9rem}[class*=font-20]{font-size:1.75rem}[class*=font-18]{font-size:1.6rem}[class*=font-16]{font-size:1.45rem}[class*=font-13]{font-size:1.2rem}}@media only screen and (max-width:1024px){[class*=font-80]{font-size:5.2rem}[class*=font-72]{font-size:4.5rem}[class*=font-70]{font-size:4.3rem}[class*=font-64]{font-size:4.4rem}[class*=font-50]{font-size:4rem}[class*=font-48]{font-size:3.8rem}[class*=font-40]{font-size:3rem}[class*=font-32]{font-size:2.2rem}[class*=font-24]{font-size:1.8rem}[class*=font-20]{font-size:1.7rem}[class*=font-18]{font-size:1.55rem}[class*=font-16]{font-size:1.35rem}[class*=font-14]{font-size:1.3rem}}@media only screen and (max-width:900px){[class*=font-80]{font-size:5rem}[class*=font-72]{font-size:3.8rem}[class*=font-70]{font-size:3.6rem}[class*=font-64]{font-size:3.8rem}[class*=font-48]{font-size:3.6rem}[class*=font-40]{font-size:2.8rem}[class*=font-32]{font-size:2rem}}@media only screen and (max-width:768px){[class*=font-80]{font-size:4.5rem}[class*=font-72]{font-size:3.5rem}[class*=font-70]{font-size:3rem}[class*=font-64]{font-size:3.4rem}[class*=font-50]{font-size:3.8rem}[class*=font-48]{font-size:3.4rem}[class*=font-40]{font-size:2.6rem}[class*=font-32]{font-size:1.9rem}[class*=font-24]{font-size:1.7rem}[class*=font-20]{font-size:1.65rem}[class*=font-18]{font-size:1.5rem}[class*=font-16]{font-size:1.35rem}[class*=font-13]{font-size:1.15rem}}@media only screen and (max-width:650px){[class*=font-80]{font-size:4rem}[class*=font-64]{font-size:3.2rem}[class*=font-50]{font-size:3.5rem}[class*=font-48]{font-size:3.2rem}[class*=font-40]{font-size:2.5rem}[class*=font-32]{font-size:1.8rem}[class*=font-24]{font-size:1.65rem}[class*=font-18]{font-size:1.4rem}[class*=font-16]{font-size:1.3rem}}@media only screen and (max-width:500px){[class*=font-80]{font-size:3.5rem}[class*=font-64]{font-size:2.8rem}[class*=font-50]{font-size:3rem}[class*=font-48]{font-size:2.8rem}[class*=font-40]{font-size:2.3rem}[class*=font-24]{font-size:1.6rem}[class*=font-18]{font-size:1.25rem}[class*=font-16]{font-size:1.2rem}[class*=font-14]{font-size:1.2rem}}@media only screen and (max-width:390px){[class*=font-80]{font-size:3rem}[class*=font-72]{font-size:3rem}[class*=font-64]{font-size:2.6rem}[class*=font-50]{font-size:2.8rem}[class*=font-48]{font-size:2.6rem}[class*=font-40]{font-size:2.1rem}[class*=font-32]{font-size:1.7rem}[class*=font-24]{font-size:1.4rem}[class*=font-18]{font-size:1.2rem}}*,:after,:before{box-sizing:border-box}html{font-family:Roboto,sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:Roboto,sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}
|
|
2
2
|
*,:after,:before{box-sizing:border-box}a,button{cursor:pointer;outline:unset!important}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}.row{display:flex;gap:15px}@-ms-viewport{width:device-width}article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{background-color:#fff;color:#212529;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol;font-size:1rem;font-weight:400;line-height:1.5;margin:0;text-align:left}[tabindex="-1"]:focus{outline:none!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-bottom:.5rem;margin-top:0}p{margin-bottom:1rem;margin-top:0}abbr[data-original-title],abbr[title]{border-bottom:0;cursor:help;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}address{font-style:normal;line-height:inherit}address,dl,ol,ul{margin-bottom:1rem}dl,ol,ul{margin-top:0}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}dfn{font-style:italic}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{background-color:transparent;color:#007bff;text-decoration:none;-webkit-text-decoration-skip:objects}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}pre{margin-bottom:1rem;margin-top:0;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{border-style:none;vertical-align:middle}svg:not(:root){overflow:hidden}[role=button],a,area,button,input:not([type=range]),label,select,summary,textarea{-ms-touch-action:manipulation;touch-action:manipulation}table{border-collapse:collapse}caption{caption-side:bottom;color:#868e96;padding-bottom:.75rem;padding-top:.75rem;text-align:left}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=reset],[type=submit],button,html [type=button]{-webkit-appearance:button}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{border:0;margin:0;min-width:0;padding:0}legend{color:inherit;display:block;font-size:1.5rem;line-height:inherit;margin-bottom:.5rem;max-width:100%;padding:0;white-space:normal;width:100%}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:none;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}output{display:inline-block}summary{display:list-item}template{display:none}[hidden]{display:none!important}ul,ul li{list-style-type:none;padding-left:0}@keyframes placeHolderShimmer{0%{background-position:0 0}to{background-position:100vw 0}}.infinity_forge_modal{position:relative;z-index:10000000000}
|
|
@@ -182,7 +182,7 @@ td {
|
|
|
182
182
|
font-size: 1.5rem;
|
|
183
183
|
}
|
|
184
184
|
[class*='font-13'] {
|
|
185
|
-
font-size: 1.
|
|
185
|
+
font-size: 1.25rem;
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
|
|
@@ -223,6 +223,10 @@ td {
|
|
|
223
223
|
[class*='font-16'] {
|
|
224
224
|
font-size: 1.45rem;
|
|
225
225
|
}
|
|
226
|
+
|
|
227
|
+
[class*='font-13'] {
|
|
228
|
+
font-size: 1.2rem;
|
|
229
|
+
}
|
|
226
230
|
}
|
|
227
231
|
|
|
228
232
|
@media only screen and (max-width: 1024px) {
|
|
@@ -98,7 +98,6 @@ var AuthorizeHttpClientDecorator = /** @class */ (function () {
|
|
|
98
98
|
storageToken = _a;
|
|
99
99
|
token = process.browser && (storageToken === null || storageToken === void 0 ? void 0 : storageToken.value);
|
|
100
100
|
isPainel = ((_b = data === null || data === void 0 ? void 0 : data.headers) === null || _b === void 0 ? void 0 : _b.painel) ? (_c = data === null || data === void 0 ? void 0 : data.headers) === null || _c === void 0 ? void 0 : _c.painel : process.env.painel ? process.env.painel : undefined;
|
|
101
|
-
console.log(isPainel, process.env, "IsPainel");
|
|
102
101
|
Object.assign(data, {
|
|
103
102
|
headers: Object.assign(data.headers || {}, {
|
|
104
103
|
Authorization: "Bearer ".concat(token || ''),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA8C;AAE9C,oDAAuC;AACvC,sDAAyC;AAEzC,kCAAqC;AAGrC;IACE,sCAC+C,OAAsB,EACzB,UAA6B;QAD1B,YAAO,GAAP,OAAO,CAAe;QACzB,eAAU,GAAV,UAAU,CAAmB;IACtE,CAAC;IAEE,8CAAO,GAAb,UAAc,IAAwB;;;;;;;wBAEf,KAAA,OAAO,CAAC,OAAO,CAAA;iCAAf,wBAAe;wBAAI,qBAAM,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,CAAC,EAAA;;8BAA/B,SAA+B;;;wBAAjE,YAAY,KAAqD;wBAEjE,KAAK,GAAG,OAAO,CAAC,OAAO,KAAI,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,KAAK,CAAA,CAAC;wBAE/C,QAAQ,GAAG,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,EAAC,CAAC,CAAC,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,0CAAE,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAA;wBAEpH,
|
|
1
|
+
{"version":3,"file":"authorize-http-client-decorator.js","sourceRoot":"","sources":["../../../../src/system/container/decorators/authorize-http-client-decorator.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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AAE;QAGR,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,OAAO,CAAC,CAAA;QAC1B,WAAA,IAAA,kBAAM,EAAC,kBAAU,CAAC,IAAI,CAAC,CAAA;;OAHf,4BAA4B,CA0BxC;IAAD,mCAAC;CAAA,AA3BD,IA2BC;AA1BY,oEAA4B"}
|
|
@@ -4,9 +4,6 @@ export declare class RemoteDynamicSection implements domain.LoadAllDynamicSectio
|
|
|
4
4
|
private readonly makeApiURL;
|
|
5
5
|
private readonly httpClient;
|
|
6
6
|
constructor(makeApiURL: makeApiURL, httpClient: domain.HttpClient<any>);
|
|
7
|
-
keys(): {
|
|
8
|
-
loadAll: string;
|
|
9
|
-
};
|
|
10
7
|
loadAll(params: domain.LoadAllDynamicSection.Params & {
|
|
11
8
|
isEditMode?: boolean;
|
|
12
9
|
}): Promise<domain.LoadAllDynamicSection.Model>;
|
|
@@ -92,25 +92,17 @@ var RemoteDynamicSection = /** @class */ (function () {
|
|
|
92
92
|
this.makeApiURL = makeApiURL;
|
|
93
93
|
this.httpClient = httpClient;
|
|
94
94
|
}
|
|
95
|
-
RemoteDynamicSection_1 = RemoteDynamicSection;
|
|
96
|
-
RemoteDynamicSection.prototype.keys = function () {
|
|
97
|
-
return {
|
|
98
|
-
loadAll: RemoteDynamicSection_1.name + "_loadAll",
|
|
99
|
-
};
|
|
100
|
-
};
|
|
101
95
|
RemoteDynamicSection.prototype.loadAll = function (params) {
|
|
102
96
|
return __awaiter(this, void 0, void 0, function () {
|
|
103
97
|
var response;
|
|
104
98
|
return __generator(this, function (_a) {
|
|
105
99
|
switch (_a.label) {
|
|
106
|
-
case 0:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
headers: params.isEditMode === true ? { painel: "true" } : undefined
|
|
113
|
-
})];
|
|
100
|
+
case 0: return [4 /*yield*/, this.httpClient.request({
|
|
101
|
+
url: this.makeApiURL.make("section"),
|
|
102
|
+
method: "get",
|
|
103
|
+
body: params,
|
|
104
|
+
headers: params.isEditMode === true ? { painel: "true" } : undefined
|
|
105
|
+
})];
|
|
114
106
|
case 1:
|
|
115
107
|
response = _a.sent();
|
|
116
108
|
return [2 /*return*/, response];
|
|
@@ -152,8 +144,7 @@ var RemoteDynamicSection = /** @class */ (function () {
|
|
|
152
144
|
});
|
|
153
145
|
});
|
|
154
146
|
};
|
|
155
|
-
|
|
156
|
-
RemoteDynamicSection = RemoteDynamicSection_1 = __decorate([
|
|
147
|
+
RemoteDynamicSection = __decorate([
|
|
157
148
|
(0, inversify_1.injectable)(),
|
|
158
149
|
__param(0, (0, inversify_1.inject)(types_1.InfraTypes.makeApiURL)),
|
|
159
150
|
__param(1, (0, inversify_1.inject)(types_1.InfraTypes.authorizeAdminHttp)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"remote-dynamic-section.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/dynamic-section/remote-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA+C;AAE/C,wDAA2D;AAC3D,sEAAkE;AAElE,sDAAyC;AAGzC;IACE,8BAEmB,UAAsB,EAEtB,UAAkC;QAFlC,eAAU,GAAV,UAAU,CAAY;QAEtB,eAAU,GAAV,UAAU,CAAwB;IAClD,CAAC;
|
|
1
|
+
{"version":3,"file":"remote-dynamic-section.js","sourceRoot":"","sources":["../../../../../src/system/data/use-cases/dynamic-section/remote-dynamic-section.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,uCAA+C;AAE/C,wDAA2D;AAC3D,sEAAkE;AAElE,sDAAyC;AAGzC;IACE,8BAEmB,UAAsB,EAEtB,UAAkC;QAFlC,eAAU,G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AAM,EAAC,kBAAU,CAAC,kBAAkB,CAAC,CAAA;yCADT,yBAAU;OAH9B,oBAAoB,CAsChC;IAAD,2BAAC;CAAA,AAvCD,IAuCC;AAtCY,oDAAoB"}
|
|
@@ -43,4 +43,5 @@ function MessageCard(_a) {
|
|
|
43
43
|
var title = _a.title, status = _a.status, date = _a.date, name = _a.name, description = _a.description, url = _a.url;
|
|
44
44
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'MessageCard', children: (0, jsx_runtime_1.jsxs)(S.MessageCard, { href: url, children: [(0, jsx_runtime_1.jsxs)("div", { className: 'top', children: [(0, jsx_runtime_1.jsx)("h5", { className: 'title font-16-bold', children: title }), (0, jsx_runtime_1.jsx)(system_1.HighlightText, __assign({}, status)), (0, jsx_runtime_1.jsx)("span", { className: 'days font-12-regular', children: date })] }), (0, jsx_runtime_1.jsxs)("p", { className: 'description font-16-regular', children: [(0, jsx_runtime_1.jsxs)("strong", { className: '-bold', children: [name, ": "] }), " ", description] })] }) }));
|
|
45
45
|
}
|
|
46
|
-
exports.
|
|
46
|
+
exports.MessageCard = MessageCard;
|
|
47
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -89,4 +89,4 @@ function Content() {
|
|
|
89
89
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsx)(S.Content, { children: (0, jsx_runtime_1.jsx)("div", { className: 'cards-box', children: messages.map(function (item) { return ((0, jsx_runtime_1.jsx)(card_1.MessageCard, __assign({}, item), 'message-card' + item.title)); }) }) }) }));
|
|
90
90
|
}
|
|
91
91
|
exports.Content = Content;
|
|
92
|
-
//#
|
|
92
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -32,4 +32,5 @@ function Content() {
|
|
|
32
32
|
var _a = (0, system_1.useAuthAdmin)(), user = _a.user, signOut = _a.signOut;
|
|
33
33
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Content', children: (0, jsx_runtime_1.jsxs)(S.Content, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'user-profile', children: (0, jsx_runtime_1.jsxs)("div", { className: 'user-info', children: [(0, jsx_runtime_1.jsx)("h6", { className: 'font-16-semibold', children: user === null || user === void 0 ? void 0 : user.firstName }), (0, jsx_runtime_1.jsx)("p", { className: 'font-14-regular email', children: user === null || user === void 0 ? void 0 : user.emailAddress })] }) }), (0, jsx_runtime_1.jsx)("div", { className: 'divider', children: (0, jsx_runtime_1.jsx)("button", { className: 'sign-out-button font-14-regular', type: 'button', onClick: function () { return signOut(); }, children: "Sair" }) })] }) }));
|
|
34
34
|
}
|
|
35
|
-
exports.
|
|
35
|
+
exports.Content = Content;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js
CHANGED
|
@@ -55,7 +55,6 @@ function ActiveFilters(_a) {
|
|
|
55
55
|
outSideFilters.map(function (filter) {
|
|
56
56
|
var _a;
|
|
57
57
|
var existThisFilterInUrl = router.query[filter.data];
|
|
58
|
-
console.log(router.query);
|
|
59
58
|
if (!existThisFilterInUrl) {
|
|
60
59
|
return (0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, {});
|
|
61
60
|
}
|
|
@@ -76,4 +75,4 @@ function ActiveFilters(_a) {
|
|
|
76
75
|
}, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'CloseIcon' }) })] }))] }));
|
|
77
76
|
}
|
|
78
77
|
exports.ActiveFilters = ActiveFilters;
|
|
79
|
-
//#
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/active-filters/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/active-filters/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sCAAuC;AAEvC,2BAAsE;AA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,GAAG,oBAAoB,CAAC,OAAO,CAAC,MAAM,CACjD,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,IAAI,KAAK,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,MAAM,KAAK,MAAM,CAAC,MAAM,EAApD,CAAoD,CAC5D,CAAA;gCAED,IAAA,gBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,IAAA,aAAQ,EAAC,EAAE,OAAO,SAAA,EAAE,CAAC,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,CAAA;4BACrE,CAAC,YAED,uBAAC,SAAI,IAAC,IAAI,EAAC,WAAW,GAAG,GAClB,KAdD,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,MAAM,CAe/B,CACP,CAAA;YACH,CAAC,CAAC,EAED,MAAM,CAAC,KAAK,CAAC,MAAM,IAAI,CACtB,iCAAK,SAAS,EAAC,aAAa,aAC1B,wDAAc,MAAM,CAAC,KAAK,CAAC,MAAM,IAAQ,EAEzC,mCACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE;4BACP,IAAA,gBAAW,EAAC,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,MAAM,QAAA,EAAE,CAAC,CAAA;wBACxD,CAAC,YAED,uBAAC,SAAI,IAAC,IAAI,EAAC,WAAW,GAAG,GAClB,IACL,CACP,IACe,CACnB,CAAA;AACH,CAAC;AAtFD,sCAsFC"}
|
|
@@ -103,4 +103,4 @@ function CreateAction(_a) {
|
|
|
103
103
|
return ((0, jsx_runtime_1.jsx)(S.Create, { children: ((_b = actions.create) === null || _b === void 0 ? void 0 : _b.link) ? ((0, jsx_runtime_1.jsxs)(link_1.default, { className: 'create-button font-14-regular', href: actions.create.link.href, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: ((_c = actions === null || actions === void 0 ? void 0 : actions.create) === null || _c === void 0 ? void 0 : _c.icon) || 'IconPlusSharp' }) }), actions.create.text] })) : ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(ui_1.Modal, { styles: { width: '100vw', maxWidth: '512px', borderRadius: 10 }, open: open, onClose: function () { return setOpen(false); }, children: (0, jsx_runtime_1.jsx)(ui_1.DynamicFormHandler, __assign({}, actions.create, { onSucess: onSuccessCreate })) }), (0, jsx_runtime_1.jsxs)("button", { className: 'create-button font-14-regular', type: 'button', onClick: function () { return setOpen(true); }, children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: (actions === null || actions === void 0 ? void 0 : actions.create.icon) || 'IconPlusSharp' }) }), actions.create.text] })] })) }));
|
|
104
104
|
}
|
|
105
105
|
exports.CreateAction = CreateAction;
|
|
106
|
-
//#
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -32,4 +32,4 @@ function Export(_a) {
|
|
|
32
32
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'Export', children: (0, jsx_runtime_1.jsxs)(S.Export, { className: 'font-14-regular', children: [(0, jsx_runtime_1.jsx)("div", { className: 'icon', children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconUpload' }) }), "Exportar"] }) }));
|
|
33
33
|
}
|
|
34
34
|
exports.Export = Export;
|
|
35
|
-
//#
|
|
35
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -135,4 +135,5 @@ function Filters(_a) {
|
|
|
135
135
|
});
|
|
136
136
|
}); }, options: filter.options.map(function (op) { return ({ label: op.text, value: op.value }); }) }, filter.data)); }), (0, jsx_runtime_1.jsx)(system_1.InputSearch, { onChange: function (value) { return (0, ui_1.updateRoute)({ params: { search: value, page: 1 }, router: router }); } })] }) }) }) }));
|
|
137
137
|
}
|
|
138
|
-
exports.Filters
|
|
138
|
+
exports.Filters = Filters;
|
|
139
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -68,6 +68,9 @@ function Table(props) {
|
|
|
68
68
|
var tableData = tableFilered || tableItems || [];
|
|
69
69
|
var tableRef = (0, react_1.useRef)(null);
|
|
70
70
|
return ((0, jsx_runtime_1.jsxs)(ui_1.Error, { name: 'table-component', children: [(0, jsx_runtime_1.jsxs)(S.TopActions, { className: 'top-actions', children: [(0, jsx_runtime_1.jsx)(filters_1.Filters, __assign({}, props)), (0, jsx_runtime_1.jsxs)("div", { className: 'right', children: [(tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.exports) && ((_c = tableInformations === null || tableInformations === void 0 ? void 0 : tableInformations.exports) === null || _c === void 0 ? void 0 : _c.length) > 0 && ((0, jsx_runtime_1.jsx)(export_1.Export, { exports: tableInformations.exports })), (columnsConfiguration === null || columnsConfiguration === void 0 ? void 0 : columnsConfiguration.actions) && (0, jsx_runtime_1.jsx)(create_1.CreateAction, { actions: columnsConfiguration === null || columnsConfiguration === void 0 ? void 0 : columnsConfiguration.actions })] })] }), (0, jsx_runtime_1.jsx)(active_filters_1.ActiveFilters, __assign({}, props)), (0, jsx_runtime_1.jsx)(S.Table, { children: (0, jsx_runtime_1.jsxs)("div", { ref: tableRef, children: [(0, jsx_runtime_1.jsxs)("table", { children: [(0, jsx_runtime_1.jsx)("thead", { children: (0, jsx_runtime_1.jsxs)("tr", { children: [columnsConfiguration.actions && (0, jsx_runtime_1.jsx)("th", { style: { width: '100px' } }), (_d = columnsConfiguration.columns) === null || _d === void 0 ? void 0 : _d.map(function (colunm, index) {
|
|
71
|
+
if (colunm.enabled === false) {
|
|
72
|
+
return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, colunm.id + index);
|
|
73
|
+
}
|
|
71
74
|
return ((0, jsx_runtime_1.jsx)(thead_item_1.THeadItem, { index: index, colunm: colunm, disableOrdenationTable: configs === null || configs === void 0 ? void 0 : configs.disableOrdenationTable }, colunm.id + index));
|
|
72
75
|
})] }) }), (0, jsx_runtime_1.jsxs)("tbody", { children: [!loadingTable &&
|
|
73
76
|
tableItems &&
|
|
@@ -77,6 +80,9 @@ function Table(props) {
|
|
|
77
80
|
var _a;
|
|
78
81
|
return ((0, jsx_runtime_1.jsxs)("tr", { children: [columnsConfiguration.actions && (0, jsx_runtime_1.jsx)(actions_1.Actions, { actions: columnsConfiguration.actions, table: table }), (_a = columnsConfiguration.columns) === null || _a === void 0 ? void 0 : _a.map(function (e, i) {
|
|
79
82
|
var _a, _b, _c, _d;
|
|
83
|
+
if (e.enabled === false) {
|
|
84
|
+
return (0, jsx_runtime_1.jsx)(react_1.Fragment, {}, e.id + index);
|
|
85
|
+
}
|
|
80
86
|
function getProps() {
|
|
81
87
|
var _a;
|
|
82
88
|
var props = Object.keys(((_a = e.Component) === null || _a === void 0 ? void 0 : _a.props) || {}).reduce(function (reducer, property) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/system/presentation/hooks/ui/use-table/components/table/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+BAAwC;AACxC,sCAAuC;AAEvC,2BAA4B;AAE5B,mCAAiC;AACjC,qCAAmC;AACnC,qCAAmC;AACnC,mCAAuC;AACvC,2CAAwC;AACxC,2CAA8C;AAC9C,mDAAgD;AAChD,mDAAgD;AAIhD,0CAA6B;AAE7B,SAAgB,KAAK,CAAC,KAAkB;;IAC9B,IAAA,OAAO,GAA0D,KAAK,QAA/D,EAAE,UAAU,GAA8C,KAAK,WAAnD,EAAE,oBAAoB,GAAwB,KAAK,qBAA7B,EAAE,iBAAiB,GAAK,KAAK,kBAAV,CAAU;IAE9E,IAAM,MAAM,GAAG,IAAA,kBAAS,GAAE,CAAA;IAE1B,IAAM,YAAY,GA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E,CACN,IACK,IACF,EAEP,CAAC,YAAY,IAAI,CAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,MAAM,MAAK,CAAC,IAAI,CAC3C,iCAAK,SAAS,EAAC,aAAa,aAC1B,iCAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,aAC5F,iCACE,CAAC,EAAC,kMAAkM,EACpM,IAAI,EAAC,SAAS,GACd,EACF,iCACE,CAAC,EAAC,6jBAA6jB,EAC/jB,IAAI,EAAC,SAAS,GACd,EACF,iCACE,CAAC,EAAC,y1BAAy1B,EAC31B,IAAI,EAAC,SAAS,GACd,IACE,EAEN,yCAAK,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,YAAY,GAAM,IAC5B,CACP,EAEA,YAAY,IAAI,uBAAC,8BAAa,KAAG,IAC9B,GACE,EAET,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,iBAAiB,CAAA,IAAI,UAAU,IAAI,CAC5C,wBAAC,CAAC,CAAC,WAAW,IAAC,SAAS,EAAC,cAAc,aACpC,UAAU,IAAI,CACb,0DACY,GAAG,EACb,6CACG,UAAU,CAAC,QAAQ,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,QAAQ,GACpF,EAAC,GAAG,SACV,6CAAS,UAAU,aAAV,UAAU,uBAAV,UAAU,CAAE,UAAU,GAAU,mBACvC,CACR,EAEA,UAAU,IAAI,uBAAC,4BAAe,eAAK,UAAU,EAAI,IACpC,CACjB,IACK,CACT,CAAA;AACH,CAAC;AAlLD,sBAkLC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { PaginationModel } from '../../../../../../../../system/index.js';
|
|
2
|
-
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-
|
|
2
|
+
export declare function PaginationTable({ page, endPage, pages, pageSize, totalItems, hasNextPage, hasPreviousPage }: PaginationModel): import("react/jsx-runtime").JSX.Element;
|
|
@@ -53,4 +53,4 @@ function PaginationTable(_a) {
|
|
|
53
53
|
}, onClick: function () { return onSelect(pagination.page + 1); }, children: (0, jsx_runtime_1.jsx)(ui_1.Icon, { name: 'IconKeyboardRightArrow' }) }))] }));
|
|
54
54
|
}
|
|
55
55
|
exports.PaginationTable = PaginationTable;
|
|
56
|
-
//#
|
|
56
|
+
//# sourceMappingURL=index.js.map
|
package/dist/system/presentation/hooks/ui/use-table/components/table/skeleton-table/index.js
CHANGED
|
@@ -31,4 +31,4 @@ function SkeletonTable() {
|
|
|
31
31
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'skeleton', children: (0, jsx_runtime_1.jsxs)(S.SkeletonCustom, { "data-testid": 'skeleton', children: [(0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } }), (0, jsx_runtime_1.jsx)(ui_1.Skeleton, { type: 'line', size: { height: '60px', width: '100%', margin: "0" } })] }) }));
|
|
32
32
|
}
|
|
33
33
|
exports.SkeletonTable = SkeletonTable;
|
|
34
|
-
//#
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -47,4 +47,4 @@ function THeadItem(_a) {
|
|
|
47
47
|
return ((0, jsx_runtime_1.jsx)(ui_1.Error, { name: 'thead-item', children: (0, jsx_runtime_1.jsx)("th", { style: { width: colunm.width + 'px' }, children: (0, jsx_runtime_1.jsxs)(S.THeadItem, { style: { width: colunm.width + 'px' }, onClick: handleOrd, children: [(0, jsx_runtime_1.jsx)("span", { className: 'font-12-bold uppercase', children: colunm.label }), !disableOrdenationTable && colunm.hasAsc && ((0, jsx_runtime_1.jsx)("div", { className: 'ord-actions', children: (0, jsx_runtime_1.jsx)("button", { type: 'button', children: (0, jsx_runtime_1.jsx)("svg", { style: { transform: rotateArrow ? 'rotate(180deg)' : 'rotate(0deg)' }, xmlns: 'http://www.w3.org/2000/svg', width: '11', height: '6', viewBox: '0 0 11 6', fill: 'none', children: (0, jsx_runtime_1.jsx)("path", { d: 'M5.75 5.5L0.75 0.5H10.75L5.75 5.5Z', fill: ascIsActive ? '#1ABB64' : '#828282' }) }) }) }))] }) }) }));
|
|
48
48
|
}
|
|
49
49
|
exports.THeadItem = THeadItem;
|
|
50
|
-
//#
|
|
50
|
+
//# sourceMappingURL=index.js.map
|
package/dist/test/index.js
CHANGED
|
@@ -6,7 +6,12 @@ var index_1 = require("../index.js");
|
|
|
6
6
|
function HomePage() {
|
|
7
7
|
var _a = (0, index_1.useI18n)(), languages = _a.languages, words = _a.words, changeLanguage = _a.changeLanguage;
|
|
8
8
|
var formatText = (0, index_1.useI18nText)().formatText;
|
|
9
|
-
|
|
9
|
+
var _b = (0, index_1.useDynamicSection)({
|
|
10
|
+
refSection: 'A',
|
|
11
|
+
isGlobal: true,
|
|
12
|
+
fields: {},
|
|
13
|
+
}), Section = _b.Section, title = _b.title;
|
|
14
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)(Section, { children: (0, jsx_runtime_1.jsx)("h1", { dangerouslySetInnerHTML: { __html: title } }) }), languages.map(function (language) { return ((0, jsx_runtime_1.jsx)("button", { type: 'button', onClick: function () { return changeLanguage(language.symbol); }, children: "Test" })); }), formatText({
|
|
10
15
|
i18n: {
|
|
11
16
|
'pt-BR': {
|
|
12
17
|
name: 'Olá',
|
package/dist/test/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AACA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/test/index.tsx"],"names":[],"mappings":";;;;AACA,kCAWiB;AAEjB,SAAgB,QAAQ;IAChB,IAAA,KAAuC,IAAA,eAAO,GAAE,EAA9C,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,cAAc,oBAAc,CAAA;IAE9C,IAAA,UAAU,GAAK,IAAA,mBAAW,GAAE,WAAlB,CAAkB;IAE9B,IAAA,KAAqB,IAAA,yBAAiB,EAAC;QAC3C,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAI;KACb,CAAC,EAJM,OAAO,aAAA,EAAE,KAAK,WAIpB,CAAA;IAEF,OAAO,CACL,6DACE,uBAAC,OAAO,cACN,+BAAI,uBAAuB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,GAAI,GAC1C,EAET,SAAS,CAAC,GAAG,CAAC,UAAC,QAAQ,IAAK,OAAA,CAC3B,mCAAQ,IAAI,EAAC,QAAQ,EAAC,OAAO,EAAE,cAAM,OAAA,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,EAA/B,CAA+B,qBAE3D,CACV,EAJ4B,CAI5B,CAAC,EAED,UAAU,CAAC;gBACV,IAAI,EAAE;oBACJ,OAAO,EAAE;wBACP,IAAI,EAAE,KAAK;qBACZ;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,OAAO;qBACd;iBACF;gBACD,OAAO,EAAE,MAAM;aAChB,CAAC,IACD;IACH,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,UAAU;IACV,gDAAgD;IAChD,uCAAuC;IACvC,0CAA0C;IAC1C,iCAAiC;IACjC,wFAAwF;IACxF,gCAAgC;IAChC,yBAAyB;IACzB,WAAW;IACX,UAAU;IACV,gDAAgD;IAChD,uCAAuC;IACvC,0CAA0C;IAC1C,iCAAiC;IACjC,wFAAwF;IACxF,iCAAiC;IACjC,0BAA0B;IAC1B,WAAW;IACX,SAAS;IACT,OAAO;IACP,gCAAgC;IAChC,wFAAwF;IACxF,2CAA2C;IAC3C,IAAI;IACJ,sEAAsE;IACtE,iBAAiB;KAClB,CAAA;AACH,CAAC;AAjED,4BAiEC"}
|
|
@@ -151,52 +151,62 @@ function FormElement(_a) {
|
|
|
151
151
|
}
|
|
152
152
|
if (debugMode) {
|
|
153
153
|
console.log(fileFields.fields);
|
|
154
|
-
console.log(
|
|
154
|
+
console.log('initialData', initialValues);
|
|
155
155
|
}
|
|
156
156
|
if (initialValues && !fileFields.unique) {
|
|
157
157
|
Object.keys(initialValues).forEach(function (fieldInitial) { return __awaiter(_this, void 0, void 0, function () {
|
|
158
158
|
var _loop_2, _i, _a, field;
|
|
159
|
-
var _b;
|
|
160
|
-
return __generator(this, function (
|
|
161
|
-
switch (
|
|
159
|
+
var _b, _c, _d;
|
|
160
|
+
return __generator(this, function (_e) {
|
|
161
|
+
switch (_e.label) {
|
|
162
162
|
case 0:
|
|
163
163
|
if (!fileFields.fields.includes(fieldInitial)) return [3 /*break*/, 4];
|
|
164
164
|
_loop_2 = function (field) {
|
|
165
|
-
var isUniqueFile, excludedItems,
|
|
166
|
-
return __generator(this, function (
|
|
167
|
-
switch (
|
|
165
|
+
var isUniqueFile, excludedItems, excludedItemsMobile, _f, _g, item;
|
|
166
|
+
return __generator(this, function (_h) {
|
|
167
|
+
switch (_h.label) {
|
|
168
168
|
case 0:
|
|
169
169
|
isUniqueFile = (_b = fileFields === null || fileFields === void 0 ? void 0 : fileFields.uniqueFields) === null || _b === void 0 ? void 0 : _b.includes(field);
|
|
170
170
|
if (!!isUniqueFile) return [3 /*break*/, 4];
|
|
171
|
-
excludedItems = initialValues[field].filter(function (file) { return !valuesForm[field].find(function (arquivo) { return arquivo.id === file.id; }); });
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
excludedItems = initialValues[field].filter(function (file) { var _a; return !((_a = valuesForm[field]) === null || _a === void 0 ? void 0 : _a.find(function (arquivo) { return arquivo.id === file.id; })); }) || [];
|
|
172
|
+
excludedItemsMobile = initialValues[field].filter(function (file) {
|
|
173
|
+
var _a;
|
|
174
|
+
return (_a = file.mobile) === null || _a === void 0 ? void 0 : _a.find(function (initialMobile) {
|
|
175
|
+
var _a;
|
|
176
|
+
console.log(valuesForm[field]);
|
|
177
|
+
return !((_a = valuesForm[field]) === null || _a === void 0 ? void 0 : _a.find(function (arquivo) {
|
|
178
|
+
return arquivo.mobile && arquivo.mobile.find(function (mobile) { return mobile.id === initialMobile.id; });
|
|
179
|
+
}));
|
|
180
|
+
});
|
|
181
|
+
}) || [];
|
|
182
|
+
_f = 0, _g = __spreadArray(__spreadArray([], excludedItems, true), excludedItemsMobile, true);
|
|
183
|
+
_h.label = 1;
|
|
174
184
|
case 1:
|
|
175
|
-
if (!(
|
|
176
|
-
item =
|
|
185
|
+
if (!(_f < _g.length)) return [3 /*break*/, 4];
|
|
186
|
+
item = _g[_f];
|
|
177
187
|
return [4 /*yield*/, (0, sites_1.api)({
|
|
178
|
-
url: "metadata/".concat(item.id),
|
|
188
|
+
url: "metadata/".concat(((_d = (_c = item === null || item === void 0 ? void 0 : item.mobile) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.id) || item.id),
|
|
179
189
|
method: 'delete',
|
|
180
190
|
})];
|
|
181
191
|
case 2:
|
|
182
|
-
|
|
183
|
-
|
|
192
|
+
_h.sent();
|
|
193
|
+
_h.label = 3;
|
|
184
194
|
case 3:
|
|
185
|
-
|
|
195
|
+
_f++;
|
|
186
196
|
return [3 /*break*/, 1];
|
|
187
197
|
case 4: return [2 /*return*/];
|
|
188
198
|
}
|
|
189
199
|
});
|
|
190
200
|
};
|
|
191
201
|
_i = 0, _a = fileFields.fields;
|
|
192
|
-
|
|
202
|
+
_e.label = 1;
|
|
193
203
|
case 1:
|
|
194
204
|
if (!(_i < _a.length)) return [3 /*break*/, 4];
|
|
195
205
|
field = _a[_i];
|
|
196
206
|
return [5 /*yield**/, _loop_2(field)];
|
|
197
207
|
case 2:
|
|
198
|
-
|
|
199
|
-
|
|
208
|
+
_e.sent();
|
|
209
|
+
_e.label = 3;
|
|
200
210
|
case 3:
|
|
201
211
|
_i++;
|
|
202
212
|
return [3 /*break*/, 1];
|
|
@@ -214,8 +224,16 @@ function FormElement(_a) {
|
|
|
214
224
|
formData_1 = new FormData();
|
|
215
225
|
formData_1.append('entityId', id);
|
|
216
226
|
formData_1.append('entityType', field + fileFields.ref);
|
|
227
|
+
//trabalhar o que fazer quando tinha uma imagem mobile e subiu outra, e trabalhar quando não tinha imagem mobile ainda e sube pela primeira vez
|
|
217
228
|
if (Array.isArray(valuesForm[field])) {
|
|
218
229
|
valuesForm[field].forEach(function (file) {
|
|
230
|
+
if (Array.isArray(file.mobile)) {
|
|
231
|
+
file.mobile.forEach(function (mobileFile) {
|
|
232
|
+
if (mobileFile.file) {
|
|
233
|
+
formData_1.append('mobile', mobileFile.file);
|
|
234
|
+
}
|
|
235
|
+
});
|
|
236
|
+
}
|
|
219
237
|
if (file.file) {
|
|
220
238
|
formData_1.append('files', file.file);
|
|
221
239
|
}
|
|
@@ -225,10 +243,14 @@ function FormElement(_a) {
|
|
|
225
243
|
if (debugMode) {
|
|
226
244
|
console.log('FILES', formData_1.get('files'));
|
|
227
245
|
}
|
|
228
|
-
if (!formData_1.get('files')) return [3 /*break*/, 2];
|
|
246
|
+
if (!(formData_1.get('files') || formData_1.get('mobile'))) return [3 /*break*/, 2];
|
|
229
247
|
return [4 /*yield*/, (0, sites_1.api)({
|
|
230
248
|
method: 'post',
|
|
231
|
-
url: "metadata?unique=".concat(hasUniqueFields
|
|
249
|
+
url: "metadata?unique=".concat(hasUniqueFields
|
|
250
|
+
? fileFields.uniqueFields.includes(field)
|
|
251
|
+
: fileFields.unique === undefined
|
|
252
|
+
? true
|
|
253
|
+
: fileFields.unique),
|
|
232
254
|
body: formData_1,
|
|
233
255
|
headers: {
|
|
234
256
|
'Content-Type': 'multipart/form-data; boundary=something',
|
|
@@ -316,7 +338,7 @@ function FormElement(_a) {
|
|
|
316
338
|
return [4 /*yield*/, sendFiles({ response: response, valuesForm: values })];
|
|
317
339
|
case 3:
|
|
318
340
|
_b.sent();
|
|
319
|
-
|
|
341
|
+
return [2 /*return*/];
|
|
320
342
|
case 4:
|
|
321
343
|
!action && setStateForm({ state: 'send', message: '' });
|
|
322
344
|
if (!action) return [3 /*break*/, 6];
|