acai-ui 1.65.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +795 -0
- package/README.md +64 -0
- package/dist/acai-ui.css +14627 -0
- package/dist/components/actions/acai-ui-actions.d.ts +3 -0
- package/dist/components/async-select/acai-ui-async-select-interface.d.ts +48 -0
- package/dist/components/async-select/acai-ui-async-select-interface.d.ts.map +1 -0
- package/dist/components/async-select/acai-ui-async-select.d.ts +3 -0
- package/dist/components/badge/acai-ui-badge-interface.d.ts +20 -0
- package/dist/components/badge/acai-ui-badge-interface.d.ts.map +1 -0
- package/dist/components/badge/acai-ui-badge.d.ts +3 -0
- package/dist/components/banner/acai-ui-banner-interface.d.ts +16 -0
- package/dist/components/banner/acai-ui-banner-interface.d.ts.map +1 -0
- package/dist/components/banner/acai-ui-banner.d.ts +3 -0
- package/dist/components/button/acai-ui-button-interface.d.ts +21 -0
- package/dist/components/button/acai-ui-button-interface.d.ts.map +1 -0
- package/dist/components/button/acai-ui-button.d.ts +3 -0
- package/dist/components/card/acai-ui-card-interface.d.ts +14 -0
- package/dist/components/card/acai-ui-card-interface.d.ts.map +1 -0
- package/dist/components/card/acai-ui-card.d.ts +3 -0
- package/dist/components/chart/acai-ui-chart-interface.d.ts +190 -0
- package/dist/components/chart/acai-ui-chart-interface.d.ts.map +1 -0
- package/dist/components/chart/acai-ui-chart.d.ts +3 -0
- package/dist/components/chart/chart-a11y.d.ts +40 -0
- package/dist/components/chart/chart-a11y.d.ts.map +1 -0
- package/dist/components/chart/chart-caminhos.d.ts +91 -0
- package/dist/components/chart/chart-caminhos.d.ts.map +1 -0
- package/dist/components/chart/chart-cartesiano.d.ts +3 -0
- package/dist/components/chart/chart-dados.d.ts +74 -0
- package/dist/components/chart/chart-dados.d.ts.map +1 -0
- package/dist/components/chart/chart-escalas.d.ts +45 -0
- package/dist/components/chart/chart-escalas.d.ts.map +1 -0
- package/dist/components/chart/chart-formatar.d.ts +21 -0
- package/dist/components/chart/chart-formatar.d.ts.map +1 -0
- package/dist/components/chart/chart-gauge.d.ts +3 -0
- package/dist/components/chart/chart-headless.d.ts +29 -0
- package/dist/components/chart/chart-headless.d.ts.map +1 -0
- package/dist/components/chart/chart-imagem.d.ts +51 -0
- package/dist/components/chart/chart-imagem.d.ts.map +1 -0
- package/dist/components/chart/chart-layout.d.ts +59 -0
- package/dist/components/chart/chart-layout.d.ts.map +1 -0
- package/dist/components/chart/chart-legenda.d.ts +3 -0
- package/dist/components/chart/chart-pizza.d.ts +3 -0
- package/dist/components/chart/chart-plano.d.ts +201 -0
- package/dist/components/chart/chart-plano.d.ts.map +1 -0
- package/dist/components/chart/chart-rotulos.d.ts +10 -0
- package/dist/components/chart/chart-rotulos.d.ts.map +1 -0
- package/dist/components/chart/chart-tabela.d.ts +3 -0
- package/dist/components/chart/chart-ticks.d.ts +35 -0
- package/dist/components/chart/chart-ticks.d.ts.map +1 -0
- package/dist/components/checkbox/acai-ui-checkbox-interface.d.ts +16 -0
- package/dist/components/checkbox/acai-ui-checkbox-interface.d.ts.map +1 -0
- package/dist/components/checkbox/acai-ui-checkbox.d.ts +3 -0
- package/dist/components/chip/acai-ui-chip-interface.d.ts +17 -0
- package/dist/components/chip/acai-ui-chip-interface.d.ts.map +1 -0
- package/dist/components/chip/acai-ui-chip.d.ts +3 -0
- package/dist/components/code/acai-ui-code-interface.d.ts +44 -0
- package/dist/components/code/acai-ui-code-interface.d.ts.map +1 -0
- package/dist/components/code/acai-ui-code.d.ts +3 -0
- package/dist/components/code/dobras-json.d.ts +14 -0
- package/dist/components/code/dobras-json.d.ts.map +1 -0
- package/dist/components/confirm/acai-ui-confirm.d.ts +3 -0
- package/dist/components/container/acai-ui-container-interface.d.ts +29 -0
- package/dist/components/container/acai-ui-container-interface.d.ts.map +1 -0
- package/dist/components/container/acai-ui-container.d.ts +3 -0
- package/dist/components/date/acai-ui-date-interface.d.ts +19 -0
- package/dist/components/date/acai-ui-date-interface.d.ts.map +1 -0
- package/dist/components/date/acai-ui-date.d.ts +3 -0
- package/dist/components/date-range/acai-ui-date-range-interface.d.ts +27 -0
- package/dist/components/date-range/acai-ui-date-range-interface.d.ts.map +1 -0
- package/dist/components/date-range/acai-ui-date-range.d.ts +3 -0
- package/dist/components/datetime/acai-ui-datetime-interface.d.ts +10 -0
- package/dist/components/datetime/acai-ui-datetime-interface.d.ts.map +1 -0
- package/dist/components/datetime/acai-ui-datetime.d.ts +3 -0
- package/dist/components/dialog/acai-ui-dialog-interface.d.ts +17 -0
- package/dist/components/dialog/acai-ui-dialog-interface.d.ts.map +1 -0
- package/dist/components/dialog/acai-ui-dialog.d.ts +3 -0
- package/dist/components/divider/acai-ui-divider-interface.d.ts +5 -0
- package/dist/components/divider/acai-ui-divider-interface.d.ts.map +1 -0
- package/dist/components/divider/acai-ui-divider.d.ts +3 -0
- package/dist/components/drawer/acai-ui-drawer-interface.d.ts +97 -0
- package/dist/components/drawer/acai-ui-drawer-interface.d.ts.map +1 -0
- package/dist/components/drawer/acai-ui-drawer.d.ts +3 -0
- package/dist/components/drawer/drawer-sidebar-helper.d.ts +4 -0
- package/dist/components/drawer/drawer-sidebar-helper.d.ts.map +1 -0
- package/dist/components/dropdown/acai-ui-dropdown-interface.d.ts +35 -0
- package/dist/components/dropdown/acai-ui-dropdown-interface.d.ts.map +1 -0
- package/dist/components/dropdown/acai-ui-dropdown-item.d.ts +3 -0
- package/dist/components/dropdown/acai-ui-dropdown.d.ts +3 -0
- package/dist/components/error-log/acai-ui-error-log-interface.d.ts +59 -0
- package/dist/components/error-log/acai-ui-error-log-interface.d.ts.map +1 -0
- package/dist/components/error-log/acai-ui-error-log-json-tree.d.ts +3 -0
- package/dist/components/error-log/acai-ui-error-log-redigir.d.ts +28 -0
- package/dist/components/error-log/acai-ui-error-log-redigir.d.ts.map +1 -0
- package/dist/components/error-log/acai-ui-error-log.d.ts +3 -0
- package/dist/components/file/acai-ui-file-interface.d.ts +13 -0
- package/dist/components/file/acai-ui-file-interface.d.ts.map +1 -0
- package/dist/components/file/acai-ui-file.d.ts +3 -0
- package/dist/components/form/acai-ui-form-interface.d.ts +37 -0
- package/dist/components/form/acai-ui-form-interface.d.ts.map +1 -0
- package/dist/components/form/acai-ui-form.d.ts +3 -0
- package/dist/components/help/acai-ui-help-interface.d.ts +184 -0
- package/dist/components/help/acai-ui-help-interface.d.ts.map +1 -0
- package/dist/components/help/acai-ui-help.d.ts +3 -0
- package/dist/components/help/acai-ui-tour.d.ts +3 -0
- package/dist/components/help/tour-escolha.d.ts +62 -0
- package/dist/components/help/tour-escolha.d.ts.map +1 -0
- package/dist/components/help/tour-posicionar.d.ts +39 -0
- package/dist/components/help/tour-posicionar.d.ts.map +1 -0
- package/dist/components/help/tour-registry.d.ts +54 -0
- package/dist/components/help/tour-registry.d.ts.map +1 -0
- package/dist/components/help/use-tour-visto.d.ts +11 -0
- package/dist/components/help/use-tour-visto.d.ts.map +1 -0
- package/dist/components/icon/acai-ui-icon-interface.d.ts +12 -0
- package/dist/components/icon/acai-ui-icon-interface.d.ts.map +1 -0
- package/dist/components/icon/acai-ui-icon.d.ts +3 -0
- package/dist/components/index.d.ts +89 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/acai-ui-input-interface.d.ts +20 -0
- package/dist/components/input/acai-ui-input-interface.d.ts.map +1 -0
- package/dist/components/input/acai-ui-input.d.ts +3 -0
- package/dist/components/modal/acai-ui-modal-interface.d.ts +16 -0
- package/dist/components/modal/acai-ui-modal-interface.d.ts.map +1 -0
- package/dist/components/modal/acai-ui-modal.d.ts +3 -0
- package/dist/components/pagination/acai-ui-pagination-interface.d.ts +9 -0
- package/dist/components/pagination/acai-ui-pagination-interface.d.ts.map +1 -0
- package/dist/components/pagination/acai-ui-pagination.d.ts +3 -0
- package/dist/components/preferences/acai-ui-preferences-interface.d.ts +5 -0
- package/dist/components/preferences/acai-ui-preferences-interface.d.ts.map +1 -0
- package/dist/components/preferences/acai-ui-preferences.d.ts +3 -0
- package/dist/components/progress/acai-ui-progress-interface.d.ts +18 -0
- package/dist/components/progress/acai-ui-progress-interface.d.ts.map +1 -0
- package/dist/components/progress/acai-ui-progress.d.ts +3 -0
- package/dist/components/radio/acai-ui-radio-interface.d.ts +13 -0
- package/dist/components/radio/acai-ui-radio-interface.d.ts.map +1 -0
- package/dist/components/radio/acai-ui-radio.d.ts +3 -0
- package/dist/components/section/acai-ui-section.d.ts +3 -0
- package/dist/components/select/acai-ui-select-interface.d.ts +18 -0
- package/dist/components/select/acai-ui-select-interface.d.ts.map +1 -0
- package/dist/components/select/acai-ui-select.d.ts +3 -0
- package/dist/components/session-clock/acai-ui-session-clock.d.ts +3 -0
- package/dist/components/stepper/acai-ui-step-interface.d.ts +18 -0
- package/dist/components/stepper/acai-ui-step-interface.d.ts.map +1 -0
- package/dist/components/stepper/acai-ui-step.d.ts +3 -0
- package/dist/components/stepper/acai-ui-stepper-interface.d.ts +53 -0
- package/dist/components/stepper/acai-ui-stepper-interface.d.ts.map +1 -0
- package/dist/components/stepper/acai-ui-stepper.d.ts +3 -0
- package/dist/components/swagger/acai-ui-swagger-interface.d.ts +53 -0
- package/dist/components/swagger/acai-ui-swagger-interface.d.ts.map +1 -0
- package/dist/components/swagger/acai-ui-swagger-operacao.d.ts +3 -0
- package/dist/components/swagger/acai-ui-swagger-requisicao.d.ts +76 -0
- package/dist/components/swagger/acai-ui-swagger-requisicao.d.ts.map +1 -0
- package/dist/components/swagger/acai-ui-swagger-schema.d.ts +3 -0
- package/dist/components/swagger/acai-ui-swagger.d.ts +3 -0
- package/dist/components/swagger/openapi-normalizar.d.ts +51 -0
- package/dist/components/swagger/openapi-normalizar.d.ts.map +1 -0
- package/dist/components/swagger/openapi-tipos.d.ts +167 -0
- package/dist/components/swagger/openapi-tipos.d.ts.map +1 -0
- package/dist/components/table/acai-ui-table-interface.d.ts +47 -0
- package/dist/components/table/acai-ui-table-interface.d.ts.map +1 -0
- package/dist/components/table/acai-ui-table-justificativa.d.ts +3 -0
- package/dist/components/table/acai-ui-table.d.ts +3 -0
- package/dist/components/tabs/acai-ui-tab.d.ts +3 -0
- package/dist/components/tabs/acai-ui-tabs-interface.d.ts +32 -0
- package/dist/components/tabs/acai-ui-tabs-interface.d.ts.map +1 -0
- package/dist/components/tabs/acai-ui-tabs.d.ts +3 -0
- package/dist/components/time/acai-ui-time-interface.d.ts +15 -0
- package/dist/components/time/acai-ui-time-interface.d.ts.map +1 -0
- package/dist/components/time/acai-ui-time.d.ts +3 -0
- package/dist/components/toggle/acai-ui-toggle-interface.d.ts +12 -0
- package/dist/components/toggle/acai-ui-toggle-interface.d.ts.map +1 -0
- package/dist/components/toggle/acai-ui-toggle.d.ts +3 -0
- package/dist/components/tooltip/acai-ui-tooltip-interface.d.ts +9 -0
- package/dist/components/tooltip/acai-ui-tooltip-interface.d.ts.map +1 -0
- package/dist/components/tooltip/acai-ui-tooltip.d.ts +3 -0
- package/dist/components/user-menu/acai-ui-user-menu-interface.d.ts +14 -0
- package/dist/components/user-menu/acai-ui-user-menu-interface.d.ts.map +1 -0
- package/dist/components/user-menu/acai-ui-user-menu.d.ts +3 -0
- package/dist/components/validation/acai-ui-validation.d.ts +3 -0
- package/dist/constants/chart-paleta.d.ts +47 -0
- package/dist/constants/chart-paleta.d.ts.map +1 -0
- package/dist/constants/efeitos.d.ts +22 -0
- package/dist/constants/efeitos.d.ts.map +1 -0
- package/dist/constants/index.d.ts +13 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/constants/lista-icons.d.ts +156 -0
- package/dist/constants/lista-icons.d.ts.map +1 -0
- package/dist/constants/medidas-espacos.d.ts +15 -0
- package/dist/constants/medidas-espacos.d.ts.map +1 -0
- package/dist/constants/radius.d.ts +15 -0
- package/dist/constants/radius.d.ts.map +1 -0
- package/dist/constants/status-badge.d.ts +17 -0
- package/dist/constants/status-badge.d.ts.map +1 -0
- package/dist/hooks/filtros-url-internos.d.ts +121 -0
- package/dist/hooks/filtros-url-internos.d.ts.map +1 -0
- package/dist/hooks/index.d.ts +18 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/notify.d.ts +8 -0
- package/dist/hooks/notify.d.ts.map +1 -0
- package/dist/hooks/use-contador-sessao.d.ts +22 -0
- package/dist/hooks/use-contador-sessao.d.ts.map +1 -0
- package/dist/hooks/use-filtros-na-url.d.ts +110 -0
- package/dist/hooks/use-filtros-na-url.d.ts.map +1 -0
- package/dist/hooks/use-leitura-voz.d.ts +60 -0
- package/dist/hooks/use-leitura-voz.d.ts.map +1 -0
- package/dist/hooks/use-listagem-na-url.d.ts +185 -0
- package/dist/hooks/use-listagem-na-url.d.ts.map +1 -0
- package/dist/hooks/use-preferencias.d.ts +60 -0
- package/dist/hooks/use-preferencias.d.ts.map +1 -0
- package/dist/hooks/use-repasse-quasar.d.ts +42 -0
- package/dist/hooks/use-repasse-quasar.d.ts.map +1 -0
- package/dist/hooks/use-tamanho-elemento.d.ts +26 -0
- package/dist/hooks/use-tamanho-elemento.d.ts.map +1 -0
- package/dist/hooks/use-tela.d.ts +84 -0
- package/dist/hooks/use-tela.d.ts.map +1 -0
- package/dist/hooks/use-validacao-visual.d.ts +40 -0
- package/dist/hooks/use-validacao-visual.d.ts.map +1 -0
- package/dist/index.cjs +249 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +249 -0
- package/dist/index.mjs.map +1 -0
- package/dist/index10.cjs +24 -0
- package/dist/index10.cjs.map +1 -0
- package/dist/index10.mjs +25 -0
- package/dist/index10.mjs.map +1 -0
- package/dist/index100.cjs +51 -0
- package/dist/index100.cjs.map +1 -0
- package/dist/index100.mjs +51 -0
- package/dist/index100.mjs.map +1 -0
- package/dist/index101.cjs +143 -0
- package/dist/index101.cjs.map +1 -0
- package/dist/index101.mjs +143 -0
- package/dist/index101.mjs.map +1 -0
- package/dist/index102.cjs +137 -0
- package/dist/index102.cjs.map +1 -0
- package/dist/index102.mjs +138 -0
- package/dist/index102.mjs.map +1 -0
- package/dist/index104.cjs +10 -0
- package/dist/index104.cjs.map +1 -0
- package/dist/index104.mjs +11 -0
- package/dist/index104.mjs.map +1 -0
- package/dist/index105.cjs +5 -0
- package/dist/index105.cjs.map +1 -0
- package/dist/index105.mjs +6 -0
- package/dist/index105.mjs.map +1 -0
- package/dist/index106.cjs +5 -0
- package/dist/index106.cjs.map +1 -0
- package/dist/index106.mjs +6 -0
- package/dist/index106.mjs.map +1 -0
- package/dist/index107.cjs +86 -0
- package/dist/index107.cjs.map +1 -0
- package/dist/index107.mjs +87 -0
- package/dist/index107.mjs.map +1 -0
- package/dist/index109.cjs +123 -0
- package/dist/index109.cjs.map +1 -0
- package/dist/index109.mjs +124 -0
- package/dist/index109.mjs.map +1 -0
- package/dist/index111.cjs +121 -0
- package/dist/index111.cjs.map +1 -0
- package/dist/index111.mjs +122 -0
- package/dist/index111.mjs.map +1 -0
- package/dist/index113.cjs +72 -0
- package/dist/index113.cjs.map +1 -0
- package/dist/index113.mjs +73 -0
- package/dist/index113.mjs.map +1 -0
- package/dist/index115.cjs +5 -0
- package/dist/index115.cjs.map +1 -0
- package/dist/index115.mjs +6 -0
- package/dist/index115.mjs.map +1 -0
- package/dist/index116.cjs +56 -0
- package/dist/index116.cjs.map +1 -0
- package/dist/index116.mjs +57 -0
- package/dist/index116.mjs.map +1 -0
- package/dist/index118.cjs +5 -0
- package/dist/index118.cjs.map +1 -0
- package/dist/index118.mjs +6 -0
- package/dist/index118.mjs.map +1 -0
- package/dist/index119.cjs +210 -0
- package/dist/index119.cjs.map +1 -0
- package/dist/index119.mjs +211 -0
- package/dist/index119.mjs.map +1 -0
- package/dist/index12.cjs +606 -0
- package/dist/index12.cjs.map +1 -0
- package/dist/index12.mjs +607 -0
- package/dist/index12.mjs.map +1 -0
- package/dist/index121.cjs +170 -0
- package/dist/index121.cjs.map +1 -0
- package/dist/index121.mjs +171 -0
- package/dist/index121.mjs.map +1 -0
- package/dist/index123.cjs +109 -0
- package/dist/index123.cjs.map +1 -0
- package/dist/index123.mjs +110 -0
- package/dist/index123.mjs.map +1 -0
- package/dist/index125.cjs +5 -0
- package/dist/index125.cjs.map +1 -0
- package/dist/index125.mjs +6 -0
- package/dist/index125.mjs.map +1 -0
- package/dist/index126.cjs +4 -0
- package/dist/index126.cjs.map +1 -0
- package/dist/index126.mjs +5 -0
- package/dist/index126.mjs.map +1 -0
- package/dist/index127.cjs +300 -0
- package/dist/index127.cjs.map +1 -0
- package/dist/index127.mjs +301 -0
- package/dist/index127.mjs.map +1 -0
- package/dist/index130.cjs +5 -0
- package/dist/index130.cjs.map +1 -0
- package/dist/index130.mjs +6 -0
- package/dist/index130.mjs.map +1 -0
- package/dist/index131.cjs +5 -0
- package/dist/index131.cjs.map +1 -0
- package/dist/index131.mjs +6 -0
- package/dist/index131.mjs.map +1 -0
- package/dist/index132.cjs +128 -0
- package/dist/index132.cjs.map +1 -0
- package/dist/index132.mjs +129 -0
- package/dist/index132.mjs.map +1 -0
- package/dist/index134.cjs +4 -0
- package/dist/index134.cjs.map +1 -0
- package/dist/index134.mjs +5 -0
- package/dist/index134.mjs.map +1 -0
- package/dist/index135.cjs +180 -0
- package/dist/index135.cjs.map +1 -0
- package/dist/index135.mjs +181 -0
- package/dist/index135.mjs.map +1 -0
- package/dist/index137.cjs +83 -0
- package/dist/index137.cjs.map +1 -0
- package/dist/index137.mjs +84 -0
- package/dist/index137.mjs.map +1 -0
- package/dist/index139.cjs +284 -0
- package/dist/index139.cjs.map +1 -0
- package/dist/index139.mjs +285 -0
- package/dist/index139.mjs.map +1 -0
- package/dist/index14.cjs +124 -0
- package/dist/index14.cjs.map +1 -0
- package/dist/index14.mjs +125 -0
- package/dist/index14.mjs.map +1 -0
- package/dist/index141.cjs +58 -0
- package/dist/index141.cjs.map +1 -0
- package/dist/index141.mjs +59 -0
- package/dist/index141.mjs.map +1 -0
- package/dist/index143.cjs +5 -0
- package/dist/index143.cjs.map +1 -0
- package/dist/index143.mjs +6 -0
- package/dist/index143.mjs.map +1 -0
- package/dist/index144.cjs +399 -0
- package/dist/index144.cjs.map +1 -0
- package/dist/index144.mjs +400 -0
- package/dist/index144.mjs.map +1 -0
- package/dist/index146.cjs +305 -0
- package/dist/index146.cjs.map +1 -0
- package/dist/index146.mjs +306 -0
- package/dist/index146.mjs.map +1 -0
- package/dist/index149.cjs +109 -0
- package/dist/index149.cjs.map +1 -0
- package/dist/index149.mjs +110 -0
- package/dist/index149.mjs.map +1 -0
- package/dist/index152.cjs +5 -0
- package/dist/index152.cjs.map +1 -0
- package/dist/index152.mjs +6 -0
- package/dist/index152.mjs.map +1 -0
- package/dist/index153.cjs +5 -0
- package/dist/index153.cjs.map +1 -0
- package/dist/index153.mjs +6 -0
- package/dist/index153.mjs.map +1 -0
- package/dist/index154.cjs +4 -0
- package/dist/index154.cjs.map +1 -0
- package/dist/index154.mjs +5 -0
- package/dist/index154.mjs.map +1 -0
- package/dist/index155.cjs +5 -0
- package/dist/index155.cjs.map +1 -0
- package/dist/index155.mjs +6 -0
- package/dist/index155.mjs.map +1 -0
- package/dist/index156.cjs +5 -0
- package/dist/index156.cjs.map +1 -0
- package/dist/index156.mjs +6 -0
- package/dist/index156.mjs.map +1 -0
- package/dist/index157.cjs +5 -0
- package/dist/index157.cjs.map +1 -0
- package/dist/index157.mjs +6 -0
- package/dist/index157.mjs.map +1 -0
- package/dist/index158.cjs +4 -0
- package/dist/index158.cjs.map +1 -0
- package/dist/index158.mjs +5 -0
- package/dist/index158.mjs.map +1 -0
- package/dist/index159.cjs +59 -0
- package/dist/index159.cjs.map +1 -0
- package/dist/index159.mjs +60 -0
- package/dist/index159.mjs.map +1 -0
- package/dist/index16.cjs +89 -0
- package/dist/index16.cjs.map +1 -0
- package/dist/index16.mjs +90 -0
- package/dist/index16.mjs.map +1 -0
- package/dist/index161.cjs +5 -0
- package/dist/index161.cjs.map +1 -0
- package/dist/index161.mjs +6 -0
- package/dist/index161.mjs.map +1 -0
- package/dist/index162.cjs +119 -0
- package/dist/index162.cjs.map +1 -0
- package/dist/index162.mjs +120 -0
- package/dist/index162.mjs.map +1 -0
- package/dist/index164.cjs +33 -0
- package/dist/index164.cjs.map +1 -0
- package/dist/index164.mjs +34 -0
- package/dist/index164.mjs.map +1 -0
- package/dist/index166.cjs +5 -0
- package/dist/index166.cjs.map +1 -0
- package/dist/index166.mjs +6 -0
- package/dist/index166.mjs.map +1 -0
- package/dist/index167.cjs +324 -0
- package/dist/index167.cjs.map +1 -0
- package/dist/index167.mjs +325 -0
- package/dist/index167.mjs.map +1 -0
- package/dist/index17.cjs +419 -0
- package/dist/index17.cjs.map +1 -0
- package/dist/index17.mjs +420 -0
- package/dist/index17.mjs.map +1 -0
- package/dist/index170.cjs +38 -0
- package/dist/index170.cjs.map +1 -0
- package/dist/index170.mjs +39 -0
- package/dist/index170.mjs.map +1 -0
- package/dist/index172.cjs +5 -0
- package/dist/index172.cjs.map +1 -0
- package/dist/index172.mjs +6 -0
- package/dist/index172.mjs.map +1 -0
- package/dist/index173.cjs +202 -0
- package/dist/index173.cjs.map +1 -0
- package/dist/index173.mjs +203 -0
- package/dist/index173.mjs.map +1 -0
- package/dist/index175.cjs +5 -0
- package/dist/index175.cjs.map +1 -0
- package/dist/index175.mjs +6 -0
- package/dist/index175.mjs.map +1 -0
- package/dist/index176.cjs +53 -0
- package/dist/index176.cjs.map +1 -0
- package/dist/index176.mjs +54 -0
- package/dist/index176.mjs.map +1 -0
- package/dist/index178.cjs +13 -0
- package/dist/index178.cjs.map +1 -0
- package/dist/index178.mjs +13 -0
- package/dist/index178.mjs.map +1 -0
- package/dist/index179.cjs +18 -0
- package/dist/index179.cjs.map +1 -0
- package/dist/index179.mjs +18 -0
- package/dist/index179.mjs.map +1 -0
- package/dist/index180.cjs +262 -0
- package/dist/index180.cjs.map +1 -0
- package/dist/index180.mjs +262 -0
- package/dist/index180.mjs.map +1 -0
- package/dist/index181.cjs +108 -0
- package/dist/index181.cjs.map +1 -0
- package/dist/index181.mjs +109 -0
- package/dist/index181.mjs.map +1 -0
- package/dist/index182.cjs +73 -0
- package/dist/index182.cjs.map +1 -0
- package/dist/index182.mjs +73 -0
- package/dist/index182.mjs.map +1 -0
- package/dist/index183.cjs +37 -0
- package/dist/index183.cjs.map +1 -0
- package/dist/index183.mjs +37 -0
- package/dist/index183.mjs.map +1 -0
- package/dist/index184.cjs +16 -0
- package/dist/index184.cjs.map +1 -0
- package/dist/index184.mjs +16 -0
- package/dist/index184.mjs.map +1 -0
- package/dist/index185.cjs +31 -0
- package/dist/index185.cjs.map +1 -0
- package/dist/index185.mjs +31 -0
- package/dist/index185.mjs.map +1 -0
- package/dist/index186.cjs +460 -0
- package/dist/index186.cjs.map +1 -0
- package/dist/index186.mjs +461 -0
- package/dist/index186.mjs.map +1 -0
- package/dist/index187.cjs +154 -0
- package/dist/index187.cjs.map +1 -0
- package/dist/index187.mjs +154 -0
- package/dist/index187.mjs.map +1 -0
- package/dist/index188.cjs +40 -0
- package/dist/index188.cjs.map +1 -0
- package/dist/index188.mjs +40 -0
- package/dist/index188.mjs.map +1 -0
- package/dist/index189.cjs +66 -0
- package/dist/index189.cjs.map +1 -0
- package/dist/index189.mjs +66 -0
- package/dist/index189.mjs.map +1 -0
- package/dist/index19.cjs +135 -0
- package/dist/index19.cjs.map +1 -0
- package/dist/index19.mjs +136 -0
- package/dist/index19.mjs.map +1 -0
- package/dist/index190.cjs +142 -0
- package/dist/index190.cjs.map +1 -0
- package/dist/index190.mjs +143 -0
- package/dist/index190.mjs.map +1 -0
- package/dist/index191.cjs +7 -0
- package/dist/index191.cjs.map +1 -0
- package/dist/index191.mjs +8 -0
- package/dist/index191.mjs.map +1 -0
- package/dist/index192.cjs +7 -0
- package/dist/index192.cjs.map +1 -0
- package/dist/index192.mjs +8 -0
- package/dist/index192.mjs.map +1 -0
- package/dist/index193.cjs +7 -0
- package/dist/index193.cjs.map +1 -0
- package/dist/index193.mjs +8 -0
- package/dist/index193.mjs.map +1 -0
- package/dist/index194.cjs +7 -0
- package/dist/index194.cjs.map +1 -0
- package/dist/index194.mjs +8 -0
- package/dist/index194.mjs.map +1 -0
- package/dist/index195.cjs +7 -0
- package/dist/index195.cjs.map +1 -0
- package/dist/index195.mjs +8 -0
- package/dist/index195.mjs.map +1 -0
- package/dist/index196.cjs +100 -0
- package/dist/index196.cjs.map +1 -0
- package/dist/index196.mjs +100 -0
- package/dist/index196.mjs.map +1 -0
- package/dist/index197.cjs +226 -0
- package/dist/index197.cjs.map +1 -0
- package/dist/index197.mjs +226 -0
- package/dist/index197.mjs.map +1 -0
- package/dist/index198.cjs +66 -0
- package/dist/index198.cjs.map +1 -0
- package/dist/index198.mjs +66 -0
- package/dist/index198.mjs.map +1 -0
- package/dist/index199.cjs +399 -0
- package/dist/index199.cjs.map +1 -0
- package/dist/index199.mjs +399 -0
- package/dist/index199.mjs.map +1 -0
- package/dist/index200.cjs +83 -0
- package/dist/index200.cjs.map +1 -0
- package/dist/index200.mjs +83 -0
- package/dist/index200.mjs.map +1 -0
- package/dist/index201.cjs +4 -0
- package/dist/index201.cjs.map +1 -0
- package/dist/index201.mjs +5 -0
- package/dist/index201.mjs.map +1 -0
- package/dist/index202.cjs +5 -0
- package/dist/index202.cjs.map +1 -0
- package/dist/index202.mjs +6 -0
- package/dist/index202.mjs.map +1 -0
- package/dist/index203.cjs +216 -0
- package/dist/index203.cjs.map +1 -0
- package/dist/index203.mjs +217 -0
- package/dist/index203.mjs.map +1 -0
- package/dist/index205.cjs +112 -0
- package/dist/index205.cjs.map +1 -0
- package/dist/index205.mjs +113 -0
- package/dist/index205.mjs.map +1 -0
- package/dist/index207.cjs +112 -0
- package/dist/index207.cjs.map +1 -0
- package/dist/index207.mjs +113 -0
- package/dist/index207.mjs.map +1 -0
- package/dist/index209.cjs +64 -0
- package/dist/index209.cjs.map +1 -0
- package/dist/index209.mjs +65 -0
- package/dist/index209.mjs.map +1 -0
- package/dist/index21.cjs +268 -0
- package/dist/index21.cjs.map +1 -0
- package/dist/index21.mjs +269 -0
- package/dist/index21.mjs.map +1 -0
- package/dist/index211.cjs +45 -0
- package/dist/index211.cjs.map +1 -0
- package/dist/index211.mjs +46 -0
- package/dist/index211.mjs.map +1 -0
- package/dist/index213.cjs +241 -0
- package/dist/index213.cjs.map +1 -0
- package/dist/index213.mjs +241 -0
- package/dist/index213.mjs.map +1 -0
- package/dist/index214.cjs +63 -0
- package/dist/index214.cjs.map +1 -0
- package/dist/index214.mjs +63 -0
- package/dist/index214.mjs.map +1 -0
- package/dist/index215.cjs +53 -0
- package/dist/index215.cjs.map +1 -0
- package/dist/index215.mjs +53 -0
- package/dist/index215.mjs.map +1 -0
- package/dist/index216.cjs +53 -0
- package/dist/index216.cjs.map +1 -0
- package/dist/index216.mjs +53 -0
- package/dist/index216.mjs.map +1 -0
- package/dist/index217.cjs +4 -0
- package/dist/index217.cjs.map +1 -0
- package/dist/index217.mjs +5 -0
- package/dist/index217.mjs.map +1 -0
- package/dist/index218.cjs +29 -0
- package/dist/index218.cjs.map +1 -0
- package/dist/index218.mjs +30 -0
- package/dist/index218.mjs.map +1 -0
- package/dist/index219.cjs +4 -0
- package/dist/index219.cjs.map +1 -0
- package/dist/index219.mjs +5 -0
- package/dist/index219.mjs.map +1 -0
- package/dist/index23.cjs +41 -0
- package/dist/index23.cjs.map +1 -0
- package/dist/index23.mjs +42 -0
- package/dist/index23.mjs.map +1 -0
- package/dist/index24.cjs +117 -0
- package/dist/index24.cjs.map +1 -0
- package/dist/index24.mjs +118 -0
- package/dist/index24.mjs.map +1 -0
- package/dist/index26.cjs +127 -0
- package/dist/index26.cjs.map +1 -0
- package/dist/index26.mjs +128 -0
- package/dist/index26.mjs.map +1 -0
- package/dist/index28.cjs +39 -0
- package/dist/index28.cjs.map +1 -0
- package/dist/index28.mjs +40 -0
- package/dist/index28.mjs.map +1 -0
- package/dist/index29.cjs +176 -0
- package/dist/index29.cjs.map +1 -0
- package/dist/index29.mjs +177 -0
- package/dist/index29.mjs.map +1 -0
- package/dist/index3.cjs +110 -0
- package/dist/index3.cjs.map +1 -0
- package/dist/index3.mjs +110 -0
- package/dist/index3.mjs.map +1 -0
- package/dist/index31.cjs +361 -0
- package/dist/index31.cjs.map +1 -0
- package/dist/index31.mjs +362 -0
- package/dist/index31.mjs.map +1 -0
- package/dist/index33.cjs +20 -0
- package/dist/index33.cjs.map +1 -0
- package/dist/index33.mjs +21 -0
- package/dist/index33.mjs.map +1 -0
- package/dist/index34.cjs +311 -0
- package/dist/index34.cjs.map +1 -0
- package/dist/index34.mjs +312 -0
- package/dist/index34.mjs.map +1 -0
- package/dist/index36.cjs +132 -0
- package/dist/index36.cjs.map +1 -0
- package/dist/index36.mjs +133 -0
- package/dist/index36.mjs.map +1 -0
- package/dist/index38.cjs +80 -0
- package/dist/index38.cjs.map +1 -0
- package/dist/index38.mjs +81 -0
- package/dist/index38.mjs.map +1 -0
- package/dist/index4.cjs +612 -0
- package/dist/index4.cjs.map +1 -0
- package/dist/index4.mjs +613 -0
- package/dist/index4.mjs.map +1 -0
- package/dist/index40.cjs +600 -0
- package/dist/index40.cjs.map +1 -0
- package/dist/index40.mjs +601 -0
- package/dist/index40.mjs.map +1 -0
- package/dist/index42.cjs +160 -0
- package/dist/index42.cjs.map +1 -0
- package/dist/index42.mjs +160 -0
- package/dist/index42.mjs.map +1 -0
- package/dist/index43.cjs +26 -0
- package/dist/index43.cjs.map +1 -0
- package/dist/index43.mjs +27 -0
- package/dist/index43.mjs.map +1 -0
- package/dist/index44.cjs +20 -0
- package/dist/index44.cjs.map +1 -0
- package/dist/index44.mjs +21 -0
- package/dist/index44.mjs.map +1 -0
- package/dist/index45.cjs +104 -0
- package/dist/index45.cjs.map +1 -0
- package/dist/index45.mjs +104 -0
- package/dist/index45.mjs.map +1 -0
- package/dist/index46.cjs +8 -0
- package/dist/index46.cjs.map +1 -0
- package/dist/index46.mjs +9 -0
- package/dist/index46.mjs.map +1 -0
- package/dist/index47.cjs +7 -0
- package/dist/index47.cjs.map +1 -0
- package/dist/index47.mjs +8 -0
- package/dist/index47.mjs.map +1 -0
- package/dist/index48.cjs +7 -0
- package/dist/index48.cjs.map +1 -0
- package/dist/index48.mjs +8 -0
- package/dist/index48.mjs.map +1 -0
- package/dist/index49.cjs +7 -0
- package/dist/index49.cjs.map +1 -0
- package/dist/index49.mjs +8 -0
- package/dist/index49.mjs.map +1 -0
- package/dist/index50.cjs +7 -0
- package/dist/index50.cjs.map +1 -0
- package/dist/index50.mjs +8 -0
- package/dist/index50.mjs.map +1 -0
- package/dist/index51.cjs +7 -0
- package/dist/index51.cjs.map +1 -0
- package/dist/index51.mjs +8 -0
- package/dist/index51.mjs.map +1 -0
- package/dist/index52.cjs +7 -0
- package/dist/index52.cjs.map +1 -0
- package/dist/index52.mjs +8 -0
- package/dist/index52.mjs.map +1 -0
- package/dist/index53.cjs +7 -0
- package/dist/index53.cjs.map +1 -0
- package/dist/index53.mjs +8 -0
- package/dist/index53.mjs.map +1 -0
- package/dist/index54.cjs +7 -0
- package/dist/index54.cjs.map +1 -0
- package/dist/index54.mjs +8 -0
- package/dist/index54.mjs.map +1 -0
- package/dist/index55.cjs +7 -0
- package/dist/index55.cjs.map +1 -0
- package/dist/index55.mjs +8 -0
- package/dist/index55.mjs.map +1 -0
- package/dist/index56.cjs +7 -0
- package/dist/index56.cjs.map +1 -0
- package/dist/index56.mjs +8 -0
- package/dist/index56.mjs.map +1 -0
- package/dist/index57.cjs +7 -0
- package/dist/index57.cjs.map +1 -0
- package/dist/index57.mjs +8 -0
- package/dist/index57.mjs.map +1 -0
- package/dist/index58.cjs +7 -0
- package/dist/index58.cjs.map +1 -0
- package/dist/index58.mjs +8 -0
- package/dist/index58.mjs.map +1 -0
- package/dist/index59.cjs +8 -0
- package/dist/index59.cjs.map +1 -0
- package/dist/index59.mjs +9 -0
- package/dist/index59.mjs.map +1 -0
- package/dist/index6.cjs +578 -0
- package/dist/index6.cjs.map +1 -0
- package/dist/index6.mjs +579 -0
- package/dist/index6.mjs.map +1 -0
- package/dist/index60.cjs +7 -0
- package/dist/index60.cjs.map +1 -0
- package/dist/index60.mjs +8 -0
- package/dist/index60.mjs.map +1 -0
- package/dist/index61.cjs +7 -0
- package/dist/index61.cjs.map +1 -0
- package/dist/index61.mjs +8 -0
- package/dist/index61.mjs.map +1 -0
- package/dist/index62.cjs +7 -0
- package/dist/index62.cjs.map +1 -0
- package/dist/index62.mjs +8 -0
- package/dist/index62.mjs.map +1 -0
- package/dist/index63.cjs +7 -0
- package/dist/index63.cjs.map +1 -0
- package/dist/index63.mjs +8 -0
- package/dist/index63.mjs.map +1 -0
- package/dist/index64.cjs +7 -0
- package/dist/index64.cjs.map +1 -0
- package/dist/index64.mjs +8 -0
- package/dist/index64.mjs.map +1 -0
- package/dist/index65.cjs +8 -0
- package/dist/index65.cjs.map +1 -0
- package/dist/index65.mjs +9 -0
- package/dist/index65.mjs.map +1 -0
- package/dist/index66.cjs +7 -0
- package/dist/index66.cjs.map +1 -0
- package/dist/index66.mjs +8 -0
- package/dist/index66.mjs.map +1 -0
- package/dist/index67.cjs +7 -0
- package/dist/index67.cjs.map +1 -0
- package/dist/index67.mjs +8 -0
- package/dist/index67.mjs.map +1 -0
- package/dist/index68.cjs +7 -0
- package/dist/index68.cjs.map +1 -0
- package/dist/index68.mjs +8 -0
- package/dist/index68.mjs.map +1 -0
- package/dist/index69.cjs +8 -0
- package/dist/index69.cjs.map +1 -0
- package/dist/index69.mjs +9 -0
- package/dist/index69.mjs.map +1 -0
- package/dist/index70.cjs +7 -0
- package/dist/index70.cjs.map +1 -0
- package/dist/index70.mjs +8 -0
- package/dist/index70.mjs.map +1 -0
- package/dist/index71.cjs +38 -0
- package/dist/index71.cjs.map +1 -0
- package/dist/index71.mjs +38 -0
- package/dist/index71.mjs.map +1 -0
- package/dist/index72.cjs +22 -0
- package/dist/index72.cjs.map +1 -0
- package/dist/index72.mjs +22 -0
- package/dist/index72.mjs.map +1 -0
- package/dist/index73.cjs +40 -0
- package/dist/index73.cjs.map +1 -0
- package/dist/index73.mjs +40 -0
- package/dist/index73.mjs.map +1 -0
- package/dist/index74.cjs +80 -0
- package/dist/index74.cjs.map +1 -0
- package/dist/index74.mjs +80 -0
- package/dist/index74.mjs.map +1 -0
- package/dist/index75.cjs +29 -0
- package/dist/index75.cjs.map +1 -0
- package/dist/index75.mjs +29 -0
- package/dist/index75.mjs.map +1 -0
- package/dist/index76.cjs +157 -0
- package/dist/index76.cjs.map +1 -0
- package/dist/index76.mjs +157 -0
- package/dist/index76.mjs.map +1 -0
- package/dist/index77.cjs +16 -0
- package/dist/index77.cjs.map +1 -0
- package/dist/index77.mjs +16 -0
- package/dist/index77.mjs.map +1 -0
- package/dist/index78.cjs +87 -0
- package/dist/index78.cjs.map +1 -0
- package/dist/index78.mjs +87 -0
- package/dist/index78.mjs.map +1 -0
- package/dist/index79.cjs +16 -0
- package/dist/index79.cjs.map +1 -0
- package/dist/index79.mjs +16 -0
- package/dist/index79.mjs.map +1 -0
- package/dist/index8.cjs +130 -0
- package/dist/index8.cjs.map +1 -0
- package/dist/index8.mjs +131 -0
- package/dist/index8.mjs.map +1 -0
- package/dist/index80.cjs +65 -0
- package/dist/index80.cjs.map +1 -0
- package/dist/index80.mjs +65 -0
- package/dist/index80.mjs.map +1 -0
- package/dist/index81.cjs +69 -0
- package/dist/index81.cjs.map +1 -0
- package/dist/index81.mjs +69 -0
- package/dist/index81.mjs.map +1 -0
- package/dist/index82.cjs +30 -0
- package/dist/index82.cjs.map +1 -0
- package/dist/index82.mjs +30 -0
- package/dist/index82.mjs.map +1 -0
- package/dist/index83.cjs +86 -0
- package/dist/index83.cjs.map +1 -0
- package/dist/index83.mjs +86 -0
- package/dist/index83.mjs.map +1 -0
- package/dist/index84.cjs +102 -0
- package/dist/index84.cjs.map +1 -0
- package/dist/index84.mjs +102 -0
- package/dist/index84.mjs.map +1 -0
- package/dist/index85.cjs +20 -0
- package/dist/index85.cjs.map +1 -0
- package/dist/index85.mjs +20 -0
- package/dist/index85.mjs.map +1 -0
- package/dist/index86.cjs +21 -0
- package/dist/index86.cjs.map +1 -0
- package/dist/index86.mjs +21 -0
- package/dist/index86.mjs.map +1 -0
- package/dist/index87.cjs +191 -0
- package/dist/index87.cjs.map +1 -0
- package/dist/index87.mjs +191 -0
- package/dist/index87.mjs.map +1 -0
- package/dist/index88.cjs +67 -0
- package/dist/index88.cjs.map +1 -0
- package/dist/index88.mjs +67 -0
- package/dist/index88.mjs.map +1 -0
- package/dist/index89.cjs +312 -0
- package/dist/index89.cjs.map +1 -0
- package/dist/index89.mjs +312 -0
- package/dist/index89.mjs.map +1 -0
- package/dist/index90.cjs +10 -0
- package/dist/index90.cjs.map +1 -0
- package/dist/index90.mjs +10 -0
- package/dist/index90.mjs.map +1 -0
- package/dist/index91.cjs +15 -0
- package/dist/index91.cjs.map +1 -0
- package/dist/index91.mjs +15 -0
- package/dist/index91.mjs.map +1 -0
- package/dist/index92.cjs +8 -0
- package/dist/index92.cjs.map +1 -0
- package/dist/index92.mjs +8 -0
- package/dist/index92.mjs.map +1 -0
- package/dist/index93.cjs +81 -0
- package/dist/index93.cjs.map +1 -0
- package/dist/index93.mjs +81 -0
- package/dist/index93.mjs.map +1 -0
- package/dist/index94.cjs +124 -0
- package/dist/index94.cjs.map +1 -0
- package/dist/index94.mjs +124 -0
- package/dist/index94.mjs.map +1 -0
- package/dist/index95.cjs +68 -0
- package/dist/index95.cjs.map +1 -0
- package/dist/index95.mjs +68 -0
- package/dist/index95.mjs.map +1 -0
- package/dist/index96.cjs +29 -0
- package/dist/index96.cjs.map +1 -0
- package/dist/index96.mjs +29 -0
- package/dist/index96.mjs.map +1 -0
- package/dist/index97.cjs +184 -0
- package/dist/index97.cjs.map +1 -0
- package/dist/index97.mjs +184 -0
- package/dist/index97.mjs.map +1 -0
- package/dist/index98.cjs +78 -0
- package/dist/index98.cjs.map +1 -0
- package/dist/index98.mjs +78 -0
- package/dist/index98.mjs.map +1 -0
- package/dist/index99.cjs +55 -0
- package/dist/index99.cjs.map +1 -0
- package/dist/index99.mjs +55 -0
- package/dist/index99.mjs.map +1 -0
- package/dist/plugin.d.ts +37 -0
- package/dist/plugin.d.ts.map +1 -0
- package/dist/scss/_badge.scss +12 -0
- package/dist/scss/_breakpoints.scss +102 -0
- package/dist/scss/_color-utilities.scss +105 -0
- package/dist/scss/_controls.scss +135 -0
- package/dist/scss/_ds-input-base.scss +302 -0
- package/dist/scss/_ds-picker-m3.scss +179 -0
- package/dist/scss/_effects.scss +42 -0
- package/dist/scss/_overlays.scss +13 -0
- package/dist/scss/_radius.scss +24 -0
- package/dist/scss/_reset.scss +60 -0
- package/dist/scss/_scrollbar.scss +78 -0
- package/dist/scss/_spacing.scss +15 -0
- package/dist/scss/_themes.scss +493 -0
- package/dist/scss/_typography.scss +50 -0
- package/dist/scss/_utilities.scss +75 -0
- package/dist/scss/_variables.scss +143 -0
- package/dist/scss/api.scss +77 -0
- package/dist/scss/tokens.scss +13 -0
- package/dist/utils/date-utils.d.ts +48 -0
- package/dist/utils/date-utils.d.ts.map +1 -0
- package/dist/utils/dialog-utils.d.ts +17 -0
- package/dist/utils/dialog-utils.d.ts.map +1 -0
- package/dist/utils/file-utils.d.ts +20 -0
- package/dist/utils/file-utils.d.ts.map +1 -0
- package/dist/utils/filtro-input.d.ts +19 -0
- package/dist/utils/filtro-input.d.ts.map +1 -0
- package/dist/utils/form-rules.d.ts +74 -0
- package/dist/utils/form-rules.d.ts.map +1 -0
- package/dist/utils/formatadores.d.ts +15 -0
- package/dist/utils/formatadores.d.ts.map +1 -0
- package/dist/utils/gerador-id.d.ts +3 -0
- package/dist/utils/gerador-id.d.ts.map +1 -0
- package/dist/utils/hint-mensagem.d.ts +11 -0
- package/dist/utils/hint-mensagem.d.ts.map +1 -0
- package/dist/utils/index.d.ts +15 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/limpar-campos.d.ts +6 -0
- package/dist/utils/limpar-campos.d.ts.map +1 -0
- package/dist/utils/masks.d.ts +16 -0
- package/dist/utils/masks.d.ts.map +1 -0
- package/dist/utils/medidas-util.d.ts +3 -0
- package/dist/utils/medidas-util.d.ts.map +1 -0
- package/dist/utils/normalizar-label.d.ts +2 -0
- package/dist/utils/normalizar-label.d.ts.map +1 -0
- package/dist/utils/scroll-elemento.d.ts +16 -0
- package/dist/utils/scroll-elemento.d.ts.map +1 -0
- package/dist/utils/validar-campo.d.ts +7 -0
- package/dist/utils/validar-campo.d.ts.map +1 -0
- package/dist/utils/validar-documentos.d.ts +12 -0
- package/dist/utils/validar-documentos.d.ts.map +1 -0
- package/dist/utils/vnode-slot.d.ts +43 -0
- package/dist/utils/vnode-slot.d.ts.map +1 -0
- package/package.json +100 -0
- package/src/components/actions/acai-ui-actions.vue +225 -0
- package/src/components/async-select/acai-ui-async-select-interface.ts +49 -0
- package/src/components/async-select/acai-ui-async-select.vue +409 -0
- package/src/components/badge/acai-ui-badge-interface.ts +19 -0
- package/src/components/badge/acai-ui-badge.vue +40 -0
- package/src/components/banner/acai-ui-banner-interface.ts +17 -0
- package/src/components/banner/acai-ui-banner-styles.scss +47 -0
- package/src/components/banner/acai-ui-banner.vue +85 -0
- package/src/components/button/acai-ui-button-interface.ts +21 -0
- package/src/components/button/acai-ui-button.vue +378 -0
- package/src/components/card/acai-ui-card-interface.ts +14 -0
- package/src/components/card/acai-ui-card-styles.scss +94 -0
- package/src/components/card/acai-ui-card.vue +148 -0
- package/src/components/chart/acai-ui-chart-interface.ts +226 -0
- package/src/components/chart/acai-ui-chart-styles.scss +141 -0
- package/src/components/chart/acai-ui-chart.vue +679 -0
- package/src/components/chart/chart-a11y.ts +184 -0
- package/src/components/chart/chart-caminhos.ts +466 -0
- package/src/components/chart/chart-cartesiano.vue +247 -0
- package/src/components/chart/chart-dados.ts +381 -0
- package/src/components/chart/chart-escalas.ts +141 -0
- package/src/components/chart/chart-formatar.ts +98 -0
- package/src/components/chart/chart-gauge.vue +152 -0
- package/src/components/chart/chart-headless.ts +130 -0
- package/src/components/chart/chart-imagem.ts +247 -0
- package/src/components/chart/chart-layout.ts +184 -0
- package/src/components/chart/chart-legenda.vue +103 -0
- package/src/components/chart/chart-pizza.vue +134 -0
- package/src/components/chart/chart-plano.ts +818 -0
- package/src/components/chart/chart-rotulos.ts +75 -0
- package/src/components/chart/chart-tabela.vue +116 -0
- package/src/components/chart/chart-ticks.ts +116 -0
- package/src/components/checkbox/acai-ui-checkbox-interface.ts +17 -0
- package/src/components/checkbox/acai-ui-checkbox.vue +114 -0
- package/src/components/chip/acai-ui-chip-interface.ts +19 -0
- package/src/components/chip/acai-ui-chip.vue +61 -0
- package/src/components/code/acai-ui-code-interface.ts +43 -0
- package/src/components/code/acai-ui-code-styles.scss +407 -0
- package/src/components/code/acai-ui-code.vue +595 -0
- package/src/components/code/dobras-json.ts +52 -0
- package/src/components/confirm/acai-ui-confirm.vue +230 -0
- package/src/components/container/acai-ui-container-interface.ts +34 -0
- package/src/components/container/acai-ui-container-styles.scss +122 -0
- package/src/components/container/acai-ui-container.vue +140 -0
- package/src/components/date/acai-ui-date-interface.ts +18 -0
- package/src/components/date/acai-ui-date.vue +191 -0
- package/src/components/date-range/acai-ui-date-range-interface.ts +27 -0
- package/src/components/date-range/acai-ui-date-range.vue +300 -0
- package/src/components/datetime/acai-ui-datetime-interface.ts +10 -0
- package/src/components/datetime/acai-ui-datetime.vue +203 -0
- package/src/components/datetime/data-hora-styles.scss +18 -0
- package/src/components/dialog/acai-ui-dialog-interface.ts +18 -0
- package/src/components/dialog/acai-ui-dialog.vue +168 -0
- package/src/components/divider/acai-ui-divider-interface.ts +4 -0
- package/src/components/divider/acai-ui-divider-styles.scss +42 -0
- package/src/components/divider/acai-ui-divider.vue +20 -0
- package/src/components/drawer/acai-ui-drawer-interface.ts +99 -0
- package/src/components/drawer/acai-ui-drawer-styles.scss +586 -0
- package/src/components/drawer/acai-ui-drawer.vue +802 -0
- package/src/components/drawer/drawer-sidebar-helper.ts +117 -0
- package/src/components/dropdown/acai-ui-dropdown-interface.ts +41 -0
- package/src/components/dropdown/acai-ui-dropdown-item.vue +36 -0
- package/src/components/dropdown/acai-ui-dropdown-styles.scss +90 -0
- package/src/components/dropdown/acai-ui-dropdown.vue +77 -0
- package/src/components/error-log/acai-ui-error-log-interface.ts +59 -0
- package/src/components/error-log/acai-ui-error-log-json-tree.vue +426 -0
- package/src/components/error-log/acai-ui-error-log-redigir.ts +74 -0
- package/src/components/error-log/acai-ui-error-log-styles.scss +137 -0
- package/src/components/error-log/acai-ui-error-log.vue +318 -0
- package/src/components/file/acai-ui-file-interface.ts +28 -0
- package/src/components/file/acai-ui-file.vue +85 -0
- package/src/components/file/arquivo-styles.scss +109 -0
- package/src/components/form/acai-ui-form-grid.scss +145 -0
- package/src/components/form/acai-ui-form-interface.ts +37 -0
- package/src/components/form/acai-ui-form-styles.scss +159 -0
- package/src/components/form/acai-ui-form-validation-modal.vue +216 -0
- package/src/components/form/acai-ui-form.vue +410 -0
- package/src/components/help/acai-ui-help-interface.ts +200 -0
- package/src/components/help/acai-ui-help-styles.scss +209 -0
- package/src/components/help/acai-ui-help.vue +259 -0
- package/src/components/help/acai-ui-tour-styles.scss +292 -0
- package/src/components/help/acai-ui-tour.vue +766 -0
- package/src/components/help/tour-escolha.ts +139 -0
- package/src/components/help/tour-posicionar.ts +148 -0
- package/src/components/help/tour-registry.ts +177 -0
- package/src/components/help/use-tour-visto.ts +81 -0
- package/src/components/icon/acai-ui-icon-interface.ts +12 -0
- package/src/components/icon/acai-ui-icon.vue +33 -0
- package/src/components/index.ts +149 -0
- package/src/components/input/acai-ui-input-interface.ts +20 -0
- package/src/components/input/acai-ui-input.vue +146 -0
- package/src/components/modal/acai-ui-modal-interface.ts +19 -0
- package/src/components/modal/acai-ui-modal-styles.scss +131 -0
- package/src/components/modal/acai-ui-modal.vue +83 -0
- package/src/components/pagination/acai-ui-pagination-interface.ts +8 -0
- package/src/components/pagination/acai-ui-pagination.vue +36 -0
- package/src/components/preferences/acai-ui-preferences-interface.ts +4 -0
- package/src/components/preferences/acai-ui-preferences-styles.scss +387 -0
- package/src/components/preferences/acai-ui-preferences.vue +349 -0
- package/src/components/progress/acai-ui-progress-interface.ts +20 -0
- package/src/components/progress/acai-ui-progress.vue +124 -0
- package/src/components/radio/acai-ui-radio-interface.ts +14 -0
- package/src/components/radio/acai-ui-radio.vue +78 -0
- package/src/components/section/acai-ui-section-styles.scss +93 -0
- package/src/components/section/acai-ui-section.vue +134 -0
- package/src/components/select/acai-ui-select-interface.ts +18 -0
- package/src/components/select/acai-ui-select.vue +322 -0
- package/src/components/session-clock/acai-ui-session-clock.vue +111 -0
- package/src/components/stepper/acai-ui-step-interface.ts +18 -0
- package/src/components/stepper/acai-ui-step.vue +37 -0
- package/src/components/stepper/acai-ui-stepper-interface.ts +56 -0
- package/src/components/stepper/acai-ui-stepper-styles.scss +222 -0
- package/src/components/stepper/acai-ui-stepper.vue +231 -0
- package/src/components/swagger/acai-ui-swagger-interface.ts +54 -0
- package/src/components/swagger/acai-ui-swagger-operacao.vue +372 -0
- package/src/components/swagger/acai-ui-swagger-requisicao.ts +272 -0
- package/src/components/swagger/acai-ui-swagger-schema.vue +36 -0
- package/src/components/swagger/acai-ui-swagger-styles.scss +883 -0
- package/src/components/swagger/acai-ui-swagger.vue +349 -0
- package/src/components/swagger/openapi-normalizar.ts +514 -0
- package/src/components/swagger/openapi-tipos.ts +198 -0
- package/src/components/table/acai-ui-table-interface.ts +60 -0
- package/src/components/table/acai-ui-table-justificativa.vue +135 -0
- package/src/components/table/acai-ui-table-styles.scss +293 -0
- package/src/components/table/acai-ui-table.vue +340 -0
- package/src/components/tabs/acai-ui-tab.vue +10 -0
- package/src/components/tabs/acai-ui-tabs-interface.ts +48 -0
- package/src/components/tabs/acai-ui-tabs-styles.scss +78 -0
- package/src/components/tabs/acai-ui-tabs.vue +137 -0
- package/src/components/time/acai-ui-time-interface.ts +14 -0
- package/src/components/time/acai-ui-time.vue +86 -0
- package/src/components/toggle/acai-ui-toggle-interface.ts +13 -0
- package/src/components/toggle/acai-ui-toggle.vue +162 -0
- package/src/components/tooltip/acai-ui-tooltip-interface.ts +11 -0
- package/src/components/tooltip/acai-ui-tooltip-styles.scss +104 -0
- package/src/components/tooltip/acai-ui-tooltip.vue +90 -0
- package/src/components/user-menu/acai-ui-user-menu-interface.ts +13 -0
- package/src/components/user-menu/acai-ui-user-menu-styles.scss +125 -0
- package/src/components/user-menu/acai-ui-user-menu.vue +139 -0
- package/src/components/validation/acai-ui-validation.vue +236 -0
- package/src/constants/chart-paleta.ts +162 -0
- package/src/constants/efeitos.ts +24 -0
- package/src/constants/index.ts +24 -0
- package/src/constants/lista-icons.ts +156 -0
- package/src/constants/medidas-espacos.ts +15 -0
- package/src/constants/radius.ts +15 -0
- package/src/constants/status-badge.ts +44 -0
- package/src/env.d.ts +7 -0
- package/src/hooks/filtros-url-internos.ts +497 -0
- package/src/hooks/index.ts +22 -0
- package/src/hooks/notify.ts +18 -0
- package/src/hooks/use-contador-sessao.ts +95 -0
- package/src/hooks/use-filtros-na-url.ts +174 -0
- package/src/hooks/use-leitura-voz.ts +346 -0
- package/src/hooks/use-listagem-na-url.ts +614 -0
- package/src/hooks/use-preferencias.ts +152 -0
- package/src/hooks/use-repasse-quasar.ts +63 -0
- package/src/hooks/use-tamanho-elemento.ts +107 -0
- package/src/hooks/use-tela.ts +114 -0
- package/src/hooks/use-validacao-visual.ts +189 -0
- package/src/index.ts +30 -0
- package/src/plugin.ts +134 -0
- package/src/scss/_badge.scss +12 -0
- package/src/scss/_breakpoints.scss +102 -0
- package/src/scss/_color-utilities.scss +105 -0
- package/src/scss/_controls.scss +135 -0
- package/src/scss/_ds-input-base.scss +302 -0
- package/src/scss/_ds-picker-m3.scss +179 -0
- package/src/scss/_effects.scss +42 -0
- package/src/scss/_overlays.scss +13 -0
- package/src/scss/_radius.scss +24 -0
- package/src/scss/_reset.scss +60 -0
- package/src/scss/_scrollbar.scss +78 -0
- package/src/scss/_spacing.scss +15 -0
- package/src/scss/_themes.scss +493 -0
- package/src/scss/_typography.scss +50 -0
- package/src/scss/_utilities.scss +75 -0
- package/src/scss/_variables.scss +143 -0
- package/src/scss/api.scss +77 -0
- package/src/scss/tokens.scss +13 -0
- package/src/styles-global.scss +30 -0
- package/src/utils/date-utils.ts +128 -0
- package/src/utils/dialog-utils.ts +59 -0
- package/src/utils/file-utils.ts +85 -0
- package/src/utils/filtro-input.ts +41 -0
- package/src/utils/form-rules.ts +202 -0
- package/src/utils/formatadores.ts +97 -0
- package/src/utils/gerador-id.ts +29 -0
- package/src/utils/hint-mensagem.ts +25 -0
- package/src/utils/index.ts +32 -0
- package/src/utils/limpar-campos.ts +94 -0
- package/src/utils/masks.ts +19 -0
- package/src/utils/medidas-util.ts +5 -0
- package/src/utils/normalizar-label.ts +9 -0
- package/src/utils/scroll-elemento.ts +34 -0
- package/src/utils/validar-campo.ts +27 -0
- package/src/utils/validar-documentos.ts +86 -0
- package/src/utils/vnode-slot.ts +74 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<article
|
|
3
|
+
class="swagger-op"
|
|
4
|
+
:class="[`swagger-op--${operacao.metodo}`, { 'swagger-op--aberta': aberta }]"
|
|
5
|
+
>
|
|
6
|
+
<!-- Cabeçalho é <button>: abre com Enter/Espaço e o leitor de tela anuncia
|
|
7
|
+
o estado pelo aria-expanded (eMAG 2.1 / 4.3). -->
|
|
8
|
+
<button
|
|
9
|
+
type="button"
|
|
10
|
+
class="swagger-op__cabecalho"
|
|
11
|
+
:aria-expanded="aberta"
|
|
12
|
+
:aria-controls="idCorpo"
|
|
13
|
+
@click="alternar"
|
|
14
|
+
>
|
|
15
|
+
<span class="swagger-metodo" :class="`swagger-metodo--${operacao.metodo}`">
|
|
16
|
+
{{ operacao.metodo }}
|
|
17
|
+
</span>
|
|
18
|
+
<span class="swagger-op__path">{{ operacao.path }}</span>
|
|
19
|
+
<span class="swagger-op__resumo">{{ operacao.resumo }}</span>
|
|
20
|
+
<acai-ui-icon
|
|
21
|
+
v-if="operacao.depreciada"
|
|
22
|
+
name="warning_amber"
|
|
23
|
+
size="16px"
|
|
24
|
+
class="swagger-op__aviso"
|
|
25
|
+
aria-label="Endpoint depreciado"
|
|
26
|
+
/>
|
|
27
|
+
<acai-ui-icon
|
|
28
|
+
v-if="operacao.exigeAutenticacao"
|
|
29
|
+
name="lock"
|
|
30
|
+
size="14px"
|
|
31
|
+
class="swagger-op__cadeado"
|
|
32
|
+
aria-label="Exige autenticação"
|
|
33
|
+
/>
|
|
34
|
+
<acai-ui-icon name="expand_more" size="20px" class="swagger-op__seta" decorative />
|
|
35
|
+
</button>
|
|
36
|
+
|
|
37
|
+
<q-slide-transition>
|
|
38
|
+
<!-- `v-if`, não `v-show`: uma spec real tem centenas de operações e manter
|
|
39
|
+
o detalhe de todas montado enche o DOM de megabytes que ninguém vê. -->
|
|
40
|
+
<div v-if="aberta" :id="idCorpo" class="swagger-op__corpo">
|
|
41
|
+
<p v-if="operacao.descricao" class="swagger-op__descricao">{{ operacao.descricao }}</p>
|
|
42
|
+
|
|
43
|
+
<!-- Duas colunas em tela larga: o que se MANDA à esquerda, o que se
|
|
44
|
+
RECEBE à direita. Empilha sozinho abaixo do `md` (1024px). -->
|
|
45
|
+
<div class="swagger-op__colunas">
|
|
46
|
+
<div class="swagger-op__coluna">
|
|
47
|
+
<!-- ===================== Parâmetros ===================== -->
|
|
48
|
+
<section v-if="operacao.parametros.length" class="swagger-bloco">
|
|
49
|
+
<h4 class="swagger-bloco__titulo">
|
|
50
|
+
Parâmetros
|
|
51
|
+
<span class="swagger-bloco__contagem">{{ operacao.parametros.length }}</span>
|
|
52
|
+
</h4>
|
|
53
|
+
<div class="swagger-params">
|
|
54
|
+
<div
|
|
55
|
+
v-for="parametro in operacao.parametros"
|
|
56
|
+
:key="chaveParametro(parametro)"
|
|
57
|
+
class="swagger-param"
|
|
58
|
+
>
|
|
59
|
+
<div class="swagger-param__rotulo">
|
|
60
|
+
<span class="swagger-param__nome">
|
|
61
|
+
{{ parametro.nome }}
|
|
62
|
+
<abbr
|
|
63
|
+
v-if="parametro.obrigatorio"
|
|
64
|
+
title="obrigatório"
|
|
65
|
+
class="swagger-param__req"
|
|
66
|
+
>
|
|
67
|
+
*
|
|
68
|
+
</abbr>
|
|
69
|
+
</span>
|
|
70
|
+
<span class="swagger-param__meta">
|
|
71
|
+
<span class="swagger-param__onde">{{ parametro.onde }}</span>
|
|
72
|
+
<span class="swagger-param__tipo">{{ parametro.tipo }}</span>
|
|
73
|
+
</span>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="swagger-param__valor">
|
|
76
|
+
<!-- Valores fechados (enum ou boolean) viram <select>: digitar
|
|
77
|
+
à mão um enum é a fonte nº 1 de 400 nesta tela. Os valores
|
|
78
|
+
vão crus, como o servidor espera. -->
|
|
79
|
+
<label
|
|
80
|
+
v-if="podeExecutar && parametro.opcoes.length"
|
|
81
|
+
class="swagger-select swagger-select--campo"
|
|
82
|
+
>
|
|
83
|
+
<select
|
|
84
|
+
v-model="valores[chaveParametro(parametro)]"
|
|
85
|
+
:aria-label="`Valor de ${parametro.nome}`"
|
|
86
|
+
:required="parametro.obrigatorio"
|
|
87
|
+
>
|
|
88
|
+
<!-- Opção vazia só quando o campo é opcional: sem ela não
|
|
89
|
+
dá pra "desescolher" e o parâmetro iria sempre. -->
|
|
90
|
+
<option v-if="!parametro.obrigatorio" value="">(não enviar)</option>
|
|
91
|
+
<option v-for="opcao in parametro.opcoes" :key="opcao" :value="opcao">
|
|
92
|
+
{{ opcao }}
|
|
93
|
+
</option>
|
|
94
|
+
</select>
|
|
95
|
+
</label>
|
|
96
|
+
<input
|
|
97
|
+
v-else-if="podeExecutar"
|
|
98
|
+
v-model="valores[chaveParametro(parametro)]"
|
|
99
|
+
class="swagger-input"
|
|
100
|
+
:aria-label="`Valor de ${parametro.nome}`"
|
|
101
|
+
:placeholder="placeholderDe(parametro)"
|
|
102
|
+
:required="parametro.obrigatorio"
|
|
103
|
+
/>
|
|
104
|
+
<span v-else class="swagger-param__exemplo">
|
|
105
|
+
{{ parametro.opcoes.length ? parametro.opcoes.join(' | ') : placeholderDe(parametro) }}
|
|
106
|
+
</span>
|
|
107
|
+
<p v-if="parametro.descricao" class="swagger-param__descricao">
|
|
108
|
+
{{ parametro.descricao }}
|
|
109
|
+
</p>
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
</div>
|
|
113
|
+
</section>
|
|
114
|
+
|
|
115
|
+
<!-- ===================== Corpo ===================== -->
|
|
116
|
+
<section v-if="operacao.corpo" class="swagger-bloco">
|
|
117
|
+
<h4 class="swagger-bloco__titulo">
|
|
118
|
+
Corpo
|
|
119
|
+
<abbr
|
|
120
|
+
v-if="operacao.corpo.obrigatorio"
|
|
121
|
+
title="obrigatório"
|
|
122
|
+
class="swagger-param__req"
|
|
123
|
+
>
|
|
124
|
+
*
|
|
125
|
+
</abbr>
|
|
126
|
+
<label v-if="operacao.corpo.tiposConteudo.length > 1" class="swagger-select">
|
|
127
|
+
<select v-model="contentType" aria-label="Content-Type">
|
|
128
|
+
<option v-for="tipo in operacao.corpo.tiposConteudo" :key="tipo" :value="tipo">
|
|
129
|
+
{{ tipo }}
|
|
130
|
+
</option>
|
|
131
|
+
</select>
|
|
132
|
+
</label>
|
|
133
|
+
<span v-else class="swagger-tag">{{ operacao.corpo.tipoConteudoPadrao }}</span>
|
|
134
|
+
<acai-ui-button
|
|
135
|
+
v-if="podeExecutar"
|
|
136
|
+
flat
|
|
137
|
+
dense
|
|
138
|
+
size="sm"
|
|
139
|
+
class="swagger-bloco__acao"
|
|
140
|
+
label="Restaurar exemplo"
|
|
141
|
+
icon="refresh"
|
|
142
|
+
@click="restaurarCorpo"
|
|
143
|
+
/>
|
|
144
|
+
</h4>
|
|
145
|
+
<p v-if="operacao.corpo.descricao" class="swagger-bloco__descricao">
|
|
146
|
+
{{ operacao.corpo.descricao }}
|
|
147
|
+
</p>
|
|
148
|
+
|
|
149
|
+
<!-- Editável E realçado: o `v-model` liga o modo editor do
|
|
150
|
+
acai-ui-code, que mantém o realce enquanto se digita. -->
|
|
151
|
+
<acai-ui-code
|
|
152
|
+
v-if="podeExecutar"
|
|
153
|
+
v-model="corpo"
|
|
154
|
+
aria-label="Corpo da requisição"
|
|
155
|
+
:copiavel="false"
|
|
156
|
+
/>
|
|
157
|
+
<acai-ui-code v-else :value="exemploCorpo" max-height="420px" />
|
|
158
|
+
|
|
159
|
+
<details v-if="operacao.corpo.schema" class="swagger-detalhe">
|
|
160
|
+
<summary>Campos do schema</summary>
|
|
161
|
+
<acai-ui-swagger-schema :doc="doc" :schema="operacao.corpo.schema" />
|
|
162
|
+
</details>
|
|
163
|
+
</section>
|
|
164
|
+
|
|
165
|
+
<p v-if="!operacao.parametros.length && !operacao.corpo" class="swagger-op__vazio">
|
|
166
|
+
Esta operação não recebe parâmetros nem corpo.
|
|
167
|
+
</p>
|
|
168
|
+
</div>
|
|
169
|
+
|
|
170
|
+
<div class="swagger-op__coluna">
|
|
171
|
+
<!-- ===================== Executar ===================== -->
|
|
172
|
+
<section v-if="podeExecutar" class="swagger-executar">
|
|
173
|
+
<div class="swagger-executar__acoes">
|
|
174
|
+
<acai-ui-button
|
|
175
|
+
label="Executar"
|
|
176
|
+
icon="play_arrow"
|
|
177
|
+
size="sm"
|
|
178
|
+
:loading="executando"
|
|
179
|
+
@click="executar"
|
|
180
|
+
/>
|
|
181
|
+
<acai-ui-button
|
|
182
|
+
flat
|
|
183
|
+
dense
|
|
184
|
+
size="sm"
|
|
185
|
+
label="cURL"
|
|
186
|
+
icon="content_copy"
|
|
187
|
+
@click="copiarCurl"
|
|
188
|
+
/>
|
|
189
|
+
<acai-ui-button
|
|
190
|
+
v-if="resultado"
|
|
191
|
+
flat
|
|
192
|
+
dense
|
|
193
|
+
size="sm"
|
|
194
|
+
label="Limpar"
|
|
195
|
+
icon="close"
|
|
196
|
+
@click="resultado = null"
|
|
197
|
+
/>
|
|
198
|
+
</div>
|
|
199
|
+
<p class="swagger-executar__url">
|
|
200
|
+
<span class="swagger-metodo" :class="`swagger-metodo--${operacao.metodo}`">
|
|
201
|
+
{{ operacao.metodo }}
|
|
202
|
+
</span>
|
|
203
|
+
<span class="swagger-executar__endereco">{{ urlPrevia }}</span>
|
|
204
|
+
</p>
|
|
205
|
+
|
|
206
|
+
<div v-if="resultado" class="swagger-resultado" role="status" aria-live="polite">
|
|
207
|
+
<acai-ui-banner v-if="resultado.erroRede" type="error" title="A requisição não saiu">
|
|
208
|
+
{{ resultado.erroRede }} — verifique se o servidor está no ar e se ele libera
|
|
209
|
+
CORS para a origem do app.
|
|
210
|
+
</acai-ui-banner>
|
|
211
|
+
|
|
212
|
+
<template v-else>
|
|
213
|
+
<div class="swagger-resultado__linha">
|
|
214
|
+
<span class="swagger-status" :class="classeStatus(String(resultado.status))">
|
|
215
|
+
{{ resultado.status }} {{ resultado.statusTexto }}
|
|
216
|
+
</span>
|
|
217
|
+
<span class="swagger-resultado__meta">{{ resultado.tempoMs }} ms</span>
|
|
218
|
+
<span class="swagger-resultado__meta">{{ tamanhoLegivel }}</span>
|
|
219
|
+
</div>
|
|
220
|
+
<!-- O botão de copiar vem do próprio bloco de código, por isso
|
|
221
|
+
saiu da linha de status. -->
|
|
222
|
+
<acai-ui-code :value="resultado.corpo || '(sem corpo)'" max-height="480px" />
|
|
223
|
+
</template>
|
|
224
|
+
</div>
|
|
225
|
+
</section>
|
|
226
|
+
|
|
227
|
+
<!-- ===================== Respostas ===================== -->
|
|
228
|
+
<section v-if="operacao.respostas.length" class="swagger-bloco">
|
|
229
|
+
<h4 class="swagger-bloco__titulo">Respostas previstas</h4>
|
|
230
|
+
<div
|
|
231
|
+
v-for="resposta in operacao.respostas"
|
|
232
|
+
:key="resposta.status"
|
|
233
|
+
class="swagger-resposta"
|
|
234
|
+
>
|
|
235
|
+
<div class="swagger-resposta__linha">
|
|
236
|
+
<span class="swagger-status" :class="classeStatus(resposta.status)">
|
|
237
|
+
{{ resposta.status }}
|
|
238
|
+
</span>
|
|
239
|
+
<span class="swagger-resposta__descricao">{{ resposta.descricao }}</span>
|
|
240
|
+
<span v-if="resposta.tipoConteudo" class="swagger-tag">
|
|
241
|
+
{{ resposta.tipoConteudo }}
|
|
242
|
+
</span>
|
|
243
|
+
</div>
|
|
244
|
+
<details v-if="resposta.exemplo !== null" class="swagger-detalhe">
|
|
245
|
+
<summary>Exemplo</summary>
|
|
246
|
+
<acai-ui-code :value="resposta.exemplo" max-height="360px" />
|
|
247
|
+
</details>
|
|
248
|
+
<details v-if="resposta.schema" class="swagger-detalhe">
|
|
249
|
+
<summary>Campos do schema</summary>
|
|
250
|
+
<acai-ui-swagger-schema :doc="doc" :schema="resposta.schema" />
|
|
251
|
+
</details>
|
|
252
|
+
</div>
|
|
253
|
+
</section>
|
|
254
|
+
</div>
|
|
255
|
+
</div>
|
|
256
|
+
</div>
|
|
257
|
+
</q-slide-transition>
|
|
258
|
+
</article>
|
|
259
|
+
</template>
|
|
260
|
+
|
|
261
|
+
<script setup lang="ts">
|
|
262
|
+
import { computed, ref, watch } from 'vue'
|
|
263
|
+
import { copyToClipboard } from 'quasar'
|
|
264
|
+
import AcaiUiBanner from '../banner/acai-ui-banner.vue'
|
|
265
|
+
import AcaiUiButton from '../button/acai-ui-button.vue'
|
|
266
|
+
import AcaiUiCode from '../code/acai-ui-code.vue'
|
|
267
|
+
import AcaiUiIcon from '../icon/acai-ui-icon.vue'
|
|
268
|
+
import AcaiUiSwaggerSchema from './acai-ui-swagger-schema.vue'
|
|
269
|
+
import { notificacao } from '../../hooks/notify'
|
|
270
|
+
import { gerarId } from '../../utils/gerador-id'
|
|
271
|
+
import { FileUtils } from '../../utils/file-utils'
|
|
272
|
+
import type { SwaggerOperacaoProps } from './acai-ui-swagger-interface'
|
|
273
|
+
import type { ParametroNormalizado } from './openapi-tipos'
|
|
274
|
+
import {
|
|
275
|
+
chaveParametro,
|
|
276
|
+
executarRequisicao,
|
|
277
|
+
montarCurl,
|
|
278
|
+
montarUrl,
|
|
279
|
+
type EntradaExecucao,
|
|
280
|
+
type ResultadoExecucao,
|
|
281
|
+
type ValoresParametros,
|
|
282
|
+
} from './acai-ui-swagger-requisicao'
|
|
283
|
+
|
|
284
|
+
const props = defineProps<SwaggerOperacaoProps>()
|
|
285
|
+
|
|
286
|
+
const aberta = ref(false)
|
|
287
|
+
const idCorpo = gerarId(props.operacao.id, 'swagger-op')
|
|
288
|
+
|
|
289
|
+
const valores = ref<ValoresParametros>({})
|
|
290
|
+
const corpo = ref('')
|
|
291
|
+
const contentType = ref(props.operacao.corpo?.tipoConteudoPadrao ?? 'application/json')
|
|
292
|
+
const executando = ref(false)
|
|
293
|
+
const resultado = ref<ResultadoExecucao | null>(null)
|
|
294
|
+
|
|
295
|
+
const podeExecutar = computed(() => !props.hideExecute)
|
|
296
|
+
|
|
297
|
+
const paraJson = (valor: unknown): string =>
|
|
298
|
+
typeof valor === 'string' ? valor : JSON.stringify(valor, null, 2)
|
|
299
|
+
|
|
300
|
+
const exemploCorpo = computed(() => paraJson(props.operacao.corpo?.exemplo ?? null))
|
|
301
|
+
|
|
302
|
+
function restaurarCorpo(): void {
|
|
303
|
+
corpo.value = exemploCorpo.value
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
// Preenche a caixa do corpo só quando a operação é aberta pela primeira vez:
|
|
307
|
+
// gerar o exemplo de todas as operações de uma spec grande no carregamento
|
|
308
|
+
// custaria caro e quase nenhuma delas seria aberta.
|
|
309
|
+
watch(aberta, (abriu) => {
|
|
310
|
+
if (abriu && !corpo.value && props.operacao.corpo) restaurarCorpo()
|
|
311
|
+
})
|
|
312
|
+
|
|
313
|
+
function alternar(): void {
|
|
314
|
+
aberta.value = !aberta.value
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
function placeholderDe(parametro: ParametroNormalizado): string {
|
|
318
|
+
if (parametro.exemplo === undefined || parametro.exemplo === null) return parametro.tipo
|
|
319
|
+
return String(parametro.exemplo)
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
const entrada = computed<EntradaExecucao>(() => ({
|
|
323
|
+
operacao: props.operacao,
|
|
324
|
+
baseUrl: props.baseUrl,
|
|
325
|
+
valores: valores.value,
|
|
326
|
+
corpo: corpo.value,
|
|
327
|
+
contentType: contentType.value,
|
|
328
|
+
...(props.headers ? { headers: props.headers } : {}),
|
|
329
|
+
...(props.withCredentials ? { withCredentials: true } : {}),
|
|
330
|
+
}))
|
|
331
|
+
|
|
332
|
+
const urlPrevia = computed(() => montarUrl(entrada.value))
|
|
333
|
+
|
|
334
|
+
const tamanhoLegivel = computed(() =>
|
|
335
|
+
resultado.value ? FileUtils.formatarTamanhoArquivo(resultado.value.tamanhoBytes) : '',
|
|
336
|
+
)
|
|
337
|
+
|
|
338
|
+
/** Faixa do status vira cor: 2xx ok, 3xx neutro, 4xx atenção, 5xx erro. */
|
|
339
|
+
function classeStatus(status: string): string {
|
|
340
|
+
const faixa = status.charAt(0)
|
|
341
|
+
if (faixa === '2') return 'swagger-status--ok'
|
|
342
|
+
if (faixa === '4') return 'swagger-status--alerta'
|
|
343
|
+
if (faixa === '5' || status === '0') return 'swagger-status--erro'
|
|
344
|
+
return 'swagger-status--neutro'
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
async function executar(): Promise<void> {
|
|
348
|
+
executando.value = true
|
|
349
|
+
try {
|
|
350
|
+
resultado.value = await executarRequisicao(entrada.value)
|
|
351
|
+
} finally {
|
|
352
|
+
executando.value = false
|
|
353
|
+
}
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
async function copiarCurl(): Promise<void> {
|
|
357
|
+
await copyToClipboard(montarCurl(entrada.value))
|
|
358
|
+
notificacao({ color: 'positive', message: 'cURL copiado.' })
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
// Exposto pra casca conseguir fechar tudo de uma vez.
|
|
362
|
+
defineExpose({
|
|
363
|
+
abrir: () => {
|
|
364
|
+
aberta.value = true
|
|
365
|
+
},
|
|
366
|
+
fechar: () => {
|
|
367
|
+
aberta.value = false
|
|
368
|
+
},
|
|
369
|
+
})
|
|
370
|
+
</script>
|
|
371
|
+
|
|
372
|
+
<style src="./acai-ui-swagger-styles.scss" lang="scss" />
|
|
@@ -0,0 +1,272 @@
|
|
|
1
|
+
// Montagem e disparo da requisição do "Executar".
|
|
2
|
+
//
|
|
3
|
+
// Tudo que decide COMO a chamada fica (url, query, cabeçalhos, cURL) é função
|
|
4
|
+
// pura e testável; só `executarRequisicao` toca a rede. `fetch` em vez de axios
|
|
5
|
+
// de propósito: a lib não tem axios como dependência e não vai ganhar uma por
|
|
6
|
+
// causa desta tela.
|
|
7
|
+
|
|
8
|
+
import type { OperacaoNormalizada, ParametroNormalizado } from './openapi-tipos'
|
|
9
|
+
|
|
10
|
+
/** Chave de um parâmetro no mapa de valores — nome sozinho colide (`id` em path e query). */
|
|
11
|
+
export function chaveParametro(parametro: ParametroNormalizado): string {
|
|
12
|
+
return `${parametro.onde}:${parametro.nome}`
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** Valores digitados pelo usuário, indexados por `chaveParametro`. */
|
|
16
|
+
export type ValoresParametros = Record<string, string>
|
|
17
|
+
|
|
18
|
+
export interface EntradaExecucao {
|
|
19
|
+
operacao: OperacaoNormalizada
|
|
20
|
+
baseUrl: string
|
|
21
|
+
valores: ValoresParametros
|
|
22
|
+
/** Corpo cru, como está na caixa de edição. Só vai quando o método aceita corpo. */
|
|
23
|
+
corpo?: string
|
|
24
|
+
contentType?: string
|
|
25
|
+
headers?: Record<string, string>
|
|
26
|
+
withCredentials?: boolean
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface ResultadoExecucao {
|
|
30
|
+
/** `false` também quando a requisição nem saiu (rede/CORS) — ver `erroRede`. */
|
|
31
|
+
ok: boolean
|
|
32
|
+
status: number
|
|
33
|
+
statusTexto: string
|
|
34
|
+
tempoMs: number
|
|
35
|
+
tamanhoBytes: number
|
|
36
|
+
/** Corpo da resposta como texto; JSON já vem indentado. */
|
|
37
|
+
corpo: string
|
|
38
|
+
tipoConteudo: string
|
|
39
|
+
headers: Record<string, string>
|
|
40
|
+
/** Mensagem de falha de rede/CORS. `null` quando o servidor respondeu (mesmo 500). */
|
|
41
|
+
erroRede: string | null
|
|
42
|
+
url: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Pistas de que a URL JÁ aponta para o documento, e não para o host. Sem isto,
|
|
47
|
+
* completar às cegas transformaria `/v3/api-docs` em `/v3/api-docs/v3/api-docs`.
|
|
48
|
+
*/
|
|
49
|
+
const PISTAS_DE_DOCUMENTO = [/api-docs/i, /openapi/i, /\.json(\?|$)/i, /\.ya?ml(\?|$)/i]
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Completa a URL do documento quando vem só o host.
|
|
53
|
+
*
|
|
54
|
+
* É o erro mais comum ao usar a tela: cola-se `http://host:8080` (ou o endereço
|
|
55
|
+
* do Swagger UI, que é uma PÁGINA, não o documento) e a requisição volta HTML.
|
|
56
|
+
* Spring Boot publica o JSON em `/v3/api-docs`, então é isso que completamos.
|
|
57
|
+
*/
|
|
58
|
+
export function normalizarUrlDocumento(url: string | undefined): string {
|
|
59
|
+
const limpo = (url ?? '').trim()
|
|
60
|
+
if (!limpo) return ''
|
|
61
|
+
|
|
62
|
+
// `/swagger-ui/index.html` é a interface do Swagger, não a spec: volta pra
|
|
63
|
+
// raiz do servidor e pega o documento de lá.
|
|
64
|
+
if (/swagger-ui/i.test(limpo)) {
|
|
65
|
+
try {
|
|
66
|
+
return `${new URL(limpo).origin}/v3/api-docs`
|
|
67
|
+
} catch {
|
|
68
|
+
return '/v3/api-docs'
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (PISTAS_DE_DOCUMENTO.some((pista) => pista.test(limpo))) return limpo
|
|
73
|
+
|
|
74
|
+
return `${limpo.replace(/\/+$/, '')}/v3/api-docs`
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Monta o `Authorization` a partir do que o usuário digitou. Aceita o token cru
|
|
79
|
+
* ou já com o prefixo — colar do DevTools traz `Bearer …` junto na metade das
|
|
80
|
+
* vezes, e duplicar o prefixo dá 401 sem explicação.
|
|
81
|
+
*/
|
|
82
|
+
export function montarAutorizacao(token: string): string {
|
|
83
|
+
const limpo = token.trim()
|
|
84
|
+
if (!limpo) return ''
|
|
85
|
+
return /^bearer\s/i.test(limpo) ? limpo : `Bearer ${limpo}`
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Base das chamadas quando o consumidor não passa `baseUrl`.
|
|
90
|
+
*
|
|
91
|
+
* Spring Boot publica `servers: [{ url: '/' }]` com muita frequência — relativo
|
|
92
|
+
* ao host que serviu o documento, que NÃO é o host do app (o front roda em
|
|
93
|
+
* :9000 e a API em :32243). Por isso a origem sai da URL do próprio documento,
|
|
94
|
+
* e não de `window.location`, que mandaria a chamada pro dev server.
|
|
95
|
+
*/
|
|
96
|
+
export function resolverBaseUrl(
|
|
97
|
+
servidores: string[],
|
|
98
|
+
urlDocumento: string | undefined,
|
|
99
|
+
origemPadrao: string,
|
|
100
|
+
): string {
|
|
101
|
+
const servidor = servidores[0] ?? ''
|
|
102
|
+
if (/^https?:\/\//i.test(servidor)) return servidor
|
|
103
|
+
|
|
104
|
+
const origem = urlDocumento
|
|
105
|
+
? new URL(urlDocumento, origemPadrao).origin
|
|
106
|
+
: origemPadrao
|
|
107
|
+
|
|
108
|
+
// `/` significa "a própria raiz" — concatenar deixaria `http://host//pessoas`.
|
|
109
|
+
if (!servidor || servidor === '/') return origem
|
|
110
|
+
return `${origem}${servidor.startsWith('/') ? servidor : `/${servidor}`}`
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
/** Métodos que carregam corpo. GET/HEAD com body são recusados pelo próprio `fetch`. */
|
|
114
|
+
const METODOS_COM_CORPO = ['post', 'put', 'patch', 'delete']
|
|
115
|
+
|
|
116
|
+
export function aceitaCorpo(operacao: OperacaoNormalizada): boolean {
|
|
117
|
+
return METODOS_COM_CORPO.includes(operacao.metodo) && operacao.corpo !== null
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/** Junta base e path sem gerar `//` no meio nem perder o prefixo da base. */
|
|
121
|
+
function juntarUrl(base: string, path: string): string {
|
|
122
|
+
if (!base) return path
|
|
123
|
+
return `${base.replace(/\/+$/, '')}/${path.replace(/^\/+/, '')}`
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Substitui `{id}` no path e monta a query string.
|
|
128
|
+
*
|
|
129
|
+
* Parâmetro vazio é OMITIDO em vez de virar `?nome=`: um filtro opcional em
|
|
130
|
+
* branco não deve chegar ao backend (mesma regra do `limparCamposVazios`).
|
|
131
|
+
* Path param vazio fica como está (`{id}`) — a URL sai visivelmente quebrada,
|
|
132
|
+
* que é melhor do que bater numa rota errada por concatenação silenciosa.
|
|
133
|
+
*/
|
|
134
|
+
export function montarUrl(entrada: EntradaExecucao): string {
|
|
135
|
+
const { operacao, baseUrl, valores } = entrada
|
|
136
|
+
|
|
137
|
+
let path = operacao.path
|
|
138
|
+
for (const parametro of operacao.parametros) {
|
|
139
|
+
if (parametro.onde !== 'path') continue
|
|
140
|
+
const valor = valores[chaveParametro(parametro)] ?? ''
|
|
141
|
+
if (!valor) continue
|
|
142
|
+
path = path.replace(`{${parametro.nome}}`, encodeURIComponent(valor))
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
const query = new URLSearchParams()
|
|
146
|
+
for (const parametro of operacao.parametros) {
|
|
147
|
+
if (parametro.onde !== 'query') continue
|
|
148
|
+
const valor = valores[chaveParametro(parametro)] ?? ''
|
|
149
|
+
if (!valor) continue
|
|
150
|
+
query.append(parametro.nome, valor)
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
const busca = query.toString()
|
|
154
|
+
return busca ? `${juntarUrl(baseUrl, path)}?${busca}` : juntarUrl(baseUrl, path)
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* Cabeçalhos finais: os do app (token) + os declarados como parâmetro `header`
|
|
159
|
+
* na spec + o `Content-Type` quando a chamada leva corpo. O parâmetro da spec
|
|
160
|
+
* ganha do cabeçalho global — foi digitado agora, para esta chamada.
|
|
161
|
+
*/
|
|
162
|
+
export function montarCabecalhos(entrada: EntradaExecucao): Record<string, string> {
|
|
163
|
+
const cabecalhos: Record<string, string> = { ...(entrada.headers ?? {}) }
|
|
164
|
+
|
|
165
|
+
for (const parametro of entrada.operacao.parametros) {
|
|
166
|
+
if (parametro.onde !== 'header') continue
|
|
167
|
+
const valor = entrada.valores[chaveParametro(parametro)] ?? ''
|
|
168
|
+
if (valor) cabecalhos[parametro.nome] = valor
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
if (aceitaCorpo(entrada.operacao) && entrada.corpo?.trim()) {
|
|
172
|
+
cabecalhos['Content-Type'] = entrada.contentType || 'application/json'
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
return cabecalhos
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/** Aspas simples do shell: só `'` precisa de escape, e é `'\''`. */
|
|
179
|
+
function aspasShell(texto: string): string {
|
|
180
|
+
return `'${texto.replace(/'/g, `'\\''`)}'`
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* cURL equivalente — é como o dev leva a chamada para o terminal, para o
|
|
185
|
+
* colega do backend ou para um ticket. Espelha exatamente o que seria enviado.
|
|
186
|
+
*/
|
|
187
|
+
export function montarCurl(entrada: EntradaExecucao): string {
|
|
188
|
+
// Método e URL na MESMA linha; só cabeçalhos e corpo quebram — é o formato que
|
|
189
|
+
// o Swagger UI mostra e o que fica legível quando colado no terminal.
|
|
190
|
+
const partes = [
|
|
191
|
+
`curl -X ${entrada.operacao.metodo.toUpperCase()} ${aspasShell(montarUrl(entrada))}`,
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
for (const [nome, valor] of Object.entries(montarCabecalhos(entrada))) {
|
|
195
|
+
partes.push(`-H ${aspasShell(`${nome}: ${valor}`)}`)
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
if (aceitaCorpo(entrada.operacao) && entrada.corpo?.trim()) {
|
|
199
|
+
partes.push(`-d ${aspasShell(entrada.corpo)}`)
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
return partes.join(' \\\n ')
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
/** JSON sai indentado; qualquer outra coisa (HTML de erro, texto) sai como veio. */
|
|
206
|
+
function formatarCorpo(texto: string, tipoConteudo: string): string {
|
|
207
|
+
if (!texto) return ''
|
|
208
|
+
if (!tipoConteudo.includes('json')) return texto
|
|
209
|
+
try {
|
|
210
|
+
return JSON.stringify(JSON.parse(texto), null, 2)
|
|
211
|
+
} catch {
|
|
212
|
+
return texto
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
export async function executarRequisicao(entrada: EntradaExecucao): Promise<ResultadoExecucao> {
|
|
217
|
+
const url = montarUrl(entrada)
|
|
218
|
+
const inicio = performance.now()
|
|
219
|
+
|
|
220
|
+
const base: Omit<ResultadoExecucao, 'ok' | 'status' | 'statusTexto'> = {
|
|
221
|
+
tempoMs: 0,
|
|
222
|
+
tamanhoBytes: 0,
|
|
223
|
+
corpo: '',
|
|
224
|
+
tipoConteudo: '',
|
|
225
|
+
headers: {},
|
|
226
|
+
erroRede: null,
|
|
227
|
+
url,
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
try {
|
|
231
|
+
const resposta = await fetch(url, {
|
|
232
|
+
method: entrada.operacao.metodo.toUpperCase(),
|
|
233
|
+
headers: montarCabecalhos(entrada),
|
|
234
|
+
...(aceitaCorpo(entrada.operacao) && entrada.corpo?.trim() ? { body: entrada.corpo } : {}),
|
|
235
|
+
...(entrada.withCredentials ? { credentials: 'include' as const } : {}),
|
|
236
|
+
})
|
|
237
|
+
|
|
238
|
+
const texto = await resposta.text()
|
|
239
|
+
const tipoConteudo = resposta.headers.get('content-type') ?? ''
|
|
240
|
+
const headers: Record<string, string> = {}
|
|
241
|
+
resposta.headers.forEach((valor, nome) => {
|
|
242
|
+
headers[nome] = valor
|
|
243
|
+
})
|
|
244
|
+
|
|
245
|
+
return {
|
|
246
|
+
...base,
|
|
247
|
+
ok: resposta.ok,
|
|
248
|
+
status: resposta.status,
|
|
249
|
+
statusTexto: resposta.statusText,
|
|
250
|
+
tempoMs: Math.round(performance.now() - inicio),
|
|
251
|
+
tamanhoBytes: new Blob([texto]).size,
|
|
252
|
+
corpo: formatarCorpo(texto, tipoConteudo),
|
|
253
|
+
tipoConteudo,
|
|
254
|
+
headers,
|
|
255
|
+
}
|
|
256
|
+
} catch (erro) {
|
|
257
|
+
// `fetch` só rejeita quando a requisição não chegou a acontecer: DNS,
|
|
258
|
+
// servidor fora, CORS. O status HTTP de erro (4xx/5xx) cai no caminho de
|
|
259
|
+
// cima — daí `status: 0` aqui, que a tela mostra como "sem resposta".
|
|
260
|
+
return {
|
|
261
|
+
...base,
|
|
262
|
+
ok: false,
|
|
263
|
+
status: 0,
|
|
264
|
+
statusTexto: '',
|
|
265
|
+
tempoMs: Math.round(performance.now() - inicio),
|
|
266
|
+
erroRede:
|
|
267
|
+
erro instanceof Error && erro.message
|
|
268
|
+
? erro.message
|
|
269
|
+
: 'A requisição não chegou ao servidor.',
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<acai-ui-code :value="conteudo" max-height="360px" />
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script setup lang="ts">
|
|
6
|
+
import { computed } from 'vue'
|
|
7
|
+
import AcaiUiCode from '../code/acai-ui-code.vue'
|
|
8
|
+
import { descreverTipo, resolverSchemaParaExibicao } from './openapi-normalizar'
|
|
9
|
+
import type { DocumentoOpenApi, SchemaOpenApi } from './openapi-tipos'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Mostra o schema como JSON, com `$ref` e `allOf` já resolvidos.
|
|
13
|
+
*
|
|
14
|
+
* Era uma lista de campos (`<ul>`); virou bloco de código a pedido do time —
|
|
15
|
+
* o formato JSON é o que o dev compara com o payload real na mão. A informação
|
|
16
|
+
* não se perdeu: `type`, `format`, `enum`, `required`, `description`,
|
|
17
|
+
* `readOnly` e `deprecated` continuam saindo, agora aninhados como no
|
|
18
|
+
* documento original.
|
|
19
|
+
*
|
|
20
|
+
* O corte de ciclo mora em `resolverSchemaParaExibicao` (schema de Spring Boot
|
|
21
|
+
* é recursivo com frequência).
|
|
22
|
+
*/
|
|
23
|
+
const props = defineProps<{
|
|
24
|
+
doc: DocumentoOpenApi
|
|
25
|
+
schema: SchemaOpenApi | null
|
|
26
|
+
profundidade?: number | undefined
|
|
27
|
+
}>()
|
|
28
|
+
|
|
29
|
+
const conteudo = computed<unknown>(() => {
|
|
30
|
+
const resolvido = resolverSchemaParaExibicao(props.doc, props.schema)
|
|
31
|
+
// Schema primitivo (string, enum solto, array de primitivo) não tem corpo
|
|
32
|
+
// que valha um bloco JSON — uma linha com o tipo legível diz mais.
|
|
33
|
+
if (resolvido === null) return descreverTipo(props.doc, props.schema)
|
|
34
|
+
return resolvido
|
|
35
|
+
})
|
|
36
|
+
</script>
|