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,461 @@
|
|
|
1
|
+
import { QSlideTransition, copyToClipboard } from "quasar";
|
|
2
|
+
import { defineComponent, ref, computed, watch, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, createBlock, createCommentVNode, createVNode, withCtx, createTextVNode, Fragment, renderList, withDirectives, vModelSelect, vModelText } from "vue";
|
|
3
|
+
import AcaiUiBanner from "./index48.mjs";
|
|
4
|
+
import AcaiUiButton from "./index49.mjs";
|
|
5
|
+
import _sfc_main$2 from "./index6.mjs";
|
|
6
|
+
/* empty css */
|
|
7
|
+
import _sfc_main$1 from "./index23.mjs";
|
|
8
|
+
import _sfc_main$3 from "./index218.mjs";
|
|
9
|
+
import { notificacao } from "./index91.mjs";
|
|
10
|
+
import { gerarId } from "./index86.mjs";
|
|
11
|
+
import { FileUtils } from "./index74.mjs";
|
|
12
|
+
import { montarUrl, chaveParametro, executarRequisicao, montarCurl } from "./index187.mjs";
|
|
13
|
+
const _hoisted_1 = ["aria-expanded", "aria-controls"];
|
|
14
|
+
const _hoisted_2 = { class: "swagger-op__path" };
|
|
15
|
+
const _hoisted_3 = { class: "swagger-op__resumo" };
|
|
16
|
+
const _hoisted_4 = ["id"];
|
|
17
|
+
const _hoisted_5 = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "swagger-op__descricao"
|
|
20
|
+
};
|
|
21
|
+
const _hoisted_6 = { class: "swagger-op__colunas" };
|
|
22
|
+
const _hoisted_7 = { class: "swagger-op__coluna" };
|
|
23
|
+
const _hoisted_8 = {
|
|
24
|
+
key: 0,
|
|
25
|
+
class: "swagger-bloco"
|
|
26
|
+
};
|
|
27
|
+
const _hoisted_9 = { class: "swagger-bloco__titulo" };
|
|
28
|
+
const _hoisted_10 = { class: "swagger-bloco__contagem" };
|
|
29
|
+
const _hoisted_11 = { class: "swagger-params" };
|
|
30
|
+
const _hoisted_12 = { class: "swagger-param__rotulo" };
|
|
31
|
+
const _hoisted_13 = { class: "swagger-param__nome" };
|
|
32
|
+
const _hoisted_14 = {
|
|
33
|
+
key: 0,
|
|
34
|
+
title: "obrigatório",
|
|
35
|
+
class: "swagger-param__req"
|
|
36
|
+
};
|
|
37
|
+
const _hoisted_15 = { class: "swagger-param__meta" };
|
|
38
|
+
const _hoisted_16 = { class: "swagger-param__onde" };
|
|
39
|
+
const _hoisted_17 = { class: "swagger-param__tipo" };
|
|
40
|
+
const _hoisted_18 = { class: "swagger-param__valor" };
|
|
41
|
+
const _hoisted_19 = {
|
|
42
|
+
key: 0,
|
|
43
|
+
class: "swagger-select swagger-select--campo"
|
|
44
|
+
};
|
|
45
|
+
const _hoisted_20 = ["onUpdate:modelValue", "aria-label", "required"];
|
|
46
|
+
const _hoisted_21 = {
|
|
47
|
+
key: 0,
|
|
48
|
+
value: ""
|
|
49
|
+
};
|
|
50
|
+
const _hoisted_22 = ["value"];
|
|
51
|
+
const _hoisted_23 = ["onUpdate:modelValue", "aria-label", "placeholder", "required"];
|
|
52
|
+
const _hoisted_24 = {
|
|
53
|
+
key: 2,
|
|
54
|
+
class: "swagger-param__exemplo"
|
|
55
|
+
};
|
|
56
|
+
const _hoisted_25 = {
|
|
57
|
+
key: 3,
|
|
58
|
+
class: "swagger-param__descricao"
|
|
59
|
+
};
|
|
60
|
+
const _hoisted_26 = {
|
|
61
|
+
key: 1,
|
|
62
|
+
class: "swagger-bloco"
|
|
63
|
+
};
|
|
64
|
+
const _hoisted_27 = { class: "swagger-bloco__titulo" };
|
|
65
|
+
const _hoisted_28 = {
|
|
66
|
+
key: 0,
|
|
67
|
+
title: "obrigatório",
|
|
68
|
+
class: "swagger-param__req"
|
|
69
|
+
};
|
|
70
|
+
const _hoisted_29 = {
|
|
71
|
+
key: 1,
|
|
72
|
+
class: "swagger-select"
|
|
73
|
+
};
|
|
74
|
+
const _hoisted_30 = ["value"];
|
|
75
|
+
const _hoisted_31 = {
|
|
76
|
+
key: 2,
|
|
77
|
+
class: "swagger-tag"
|
|
78
|
+
};
|
|
79
|
+
const _hoisted_32 = {
|
|
80
|
+
key: 0,
|
|
81
|
+
class: "swagger-bloco__descricao"
|
|
82
|
+
};
|
|
83
|
+
const _hoisted_33 = {
|
|
84
|
+
key: 3,
|
|
85
|
+
class: "swagger-detalhe"
|
|
86
|
+
};
|
|
87
|
+
const _hoisted_34 = {
|
|
88
|
+
key: 2,
|
|
89
|
+
class: "swagger-op__vazio"
|
|
90
|
+
};
|
|
91
|
+
const _hoisted_35 = { class: "swagger-op__coluna" };
|
|
92
|
+
const _hoisted_36 = {
|
|
93
|
+
key: 0,
|
|
94
|
+
class: "swagger-executar"
|
|
95
|
+
};
|
|
96
|
+
const _hoisted_37 = { class: "swagger-executar__acoes" };
|
|
97
|
+
const _hoisted_38 = { class: "swagger-executar__url" };
|
|
98
|
+
const _hoisted_39 = { class: "swagger-executar__endereco" };
|
|
99
|
+
const _hoisted_40 = {
|
|
100
|
+
key: 0,
|
|
101
|
+
class: "swagger-resultado",
|
|
102
|
+
role: "status",
|
|
103
|
+
"aria-live": "polite"
|
|
104
|
+
};
|
|
105
|
+
const _hoisted_41 = { class: "swagger-resultado__linha" };
|
|
106
|
+
const _hoisted_42 = { class: "swagger-resultado__meta" };
|
|
107
|
+
const _hoisted_43 = { class: "swagger-resultado__meta" };
|
|
108
|
+
const _hoisted_44 = {
|
|
109
|
+
key: 1,
|
|
110
|
+
class: "swagger-bloco"
|
|
111
|
+
};
|
|
112
|
+
const _hoisted_45 = { class: "swagger-resposta__linha" };
|
|
113
|
+
const _hoisted_46 = { class: "swagger-resposta__descricao" };
|
|
114
|
+
const _hoisted_47 = {
|
|
115
|
+
key: 0,
|
|
116
|
+
class: "swagger-tag"
|
|
117
|
+
};
|
|
118
|
+
const _hoisted_48 = {
|
|
119
|
+
key: 0,
|
|
120
|
+
class: "swagger-detalhe"
|
|
121
|
+
};
|
|
122
|
+
const _hoisted_49 = {
|
|
123
|
+
key: 1,
|
|
124
|
+
class: "swagger-detalhe"
|
|
125
|
+
};
|
|
126
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
127
|
+
__name: "acai-ui-swagger-operacao",
|
|
128
|
+
props: {
|
|
129
|
+
operacao: {},
|
|
130
|
+
doc: {},
|
|
131
|
+
baseUrl: {},
|
|
132
|
+
headers: {},
|
|
133
|
+
withCredentials: { type: Boolean },
|
|
134
|
+
hideExecute: { type: Boolean }
|
|
135
|
+
},
|
|
136
|
+
setup(__props, { expose: __expose }) {
|
|
137
|
+
var _a;
|
|
138
|
+
const props = __props;
|
|
139
|
+
const aberta = ref(false);
|
|
140
|
+
const idCorpo = gerarId(props.operacao.id, "swagger-op");
|
|
141
|
+
const valores = ref({});
|
|
142
|
+
const corpo = ref("");
|
|
143
|
+
const contentType = ref(((_a = props.operacao.corpo) == null ? void 0 : _a.tipoConteudoPadrao) ?? "application/json");
|
|
144
|
+
const executando = ref(false);
|
|
145
|
+
const resultado = ref(null);
|
|
146
|
+
const podeExecutar = computed(() => !props.hideExecute);
|
|
147
|
+
const paraJson = (valor) => typeof valor === "string" ? valor : JSON.stringify(valor, null, 2);
|
|
148
|
+
const exemploCorpo = computed(() => {
|
|
149
|
+
var _a2;
|
|
150
|
+
return paraJson(((_a2 = props.operacao.corpo) == null ? void 0 : _a2.exemplo) ?? null);
|
|
151
|
+
});
|
|
152
|
+
function restaurarCorpo() {
|
|
153
|
+
corpo.value = exemploCorpo.value;
|
|
154
|
+
}
|
|
155
|
+
watch(aberta, (abriu) => {
|
|
156
|
+
if (abriu && !corpo.value && props.operacao.corpo) restaurarCorpo();
|
|
157
|
+
});
|
|
158
|
+
function alternar() {
|
|
159
|
+
aberta.value = !aberta.value;
|
|
160
|
+
}
|
|
161
|
+
function placeholderDe(parametro) {
|
|
162
|
+
if (parametro.exemplo === void 0 || parametro.exemplo === null) return parametro.tipo;
|
|
163
|
+
return String(parametro.exemplo);
|
|
164
|
+
}
|
|
165
|
+
const entrada = computed(() => ({
|
|
166
|
+
operacao: props.operacao,
|
|
167
|
+
baseUrl: props.baseUrl,
|
|
168
|
+
valores: valores.value,
|
|
169
|
+
corpo: corpo.value,
|
|
170
|
+
contentType: contentType.value,
|
|
171
|
+
...props.headers ? { headers: props.headers } : {},
|
|
172
|
+
...props.withCredentials ? { withCredentials: true } : {}
|
|
173
|
+
}));
|
|
174
|
+
const urlPrevia = computed(() => montarUrl(entrada.value));
|
|
175
|
+
const tamanhoLegivel = computed(
|
|
176
|
+
() => resultado.value ? FileUtils.formatarTamanhoArquivo(resultado.value.tamanhoBytes) : ""
|
|
177
|
+
);
|
|
178
|
+
function classeStatus(status) {
|
|
179
|
+
const faixa = status.charAt(0);
|
|
180
|
+
if (faixa === "2") return "swagger-status--ok";
|
|
181
|
+
if (faixa === "4") return "swagger-status--alerta";
|
|
182
|
+
if (faixa === "5" || status === "0") return "swagger-status--erro";
|
|
183
|
+
return "swagger-status--neutro";
|
|
184
|
+
}
|
|
185
|
+
async function executar() {
|
|
186
|
+
executando.value = true;
|
|
187
|
+
try {
|
|
188
|
+
resultado.value = await executarRequisicao(entrada.value);
|
|
189
|
+
} finally {
|
|
190
|
+
executando.value = false;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
async function copiarCurl() {
|
|
194
|
+
await copyToClipboard(montarCurl(entrada.value));
|
|
195
|
+
notificacao({ color: "positive", message: "cURL copiado." });
|
|
196
|
+
}
|
|
197
|
+
__expose({
|
|
198
|
+
abrir: () => {
|
|
199
|
+
aberta.value = true;
|
|
200
|
+
},
|
|
201
|
+
fechar: () => {
|
|
202
|
+
aberta.value = false;
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
return (_ctx, _cache) => {
|
|
206
|
+
return openBlock(), createElementBlock("article", {
|
|
207
|
+
class: normalizeClass(["swagger-op", [`swagger-op--${__props.operacao.metodo}`, { "swagger-op--aberta": aberta.value }]])
|
|
208
|
+
}, [
|
|
209
|
+
createElementVNode("button", {
|
|
210
|
+
type: "button",
|
|
211
|
+
class: "swagger-op__cabecalho",
|
|
212
|
+
"aria-expanded": aberta.value,
|
|
213
|
+
"aria-controls": unref(idCorpo),
|
|
214
|
+
onClick: alternar
|
|
215
|
+
}, [
|
|
216
|
+
createElementVNode("span", {
|
|
217
|
+
class: normalizeClass(["swagger-metodo", `swagger-metodo--${__props.operacao.metodo}`])
|
|
218
|
+
}, toDisplayString(__props.operacao.metodo), 3),
|
|
219
|
+
createElementVNode("span", _hoisted_2, toDisplayString(__props.operacao.path), 1),
|
|
220
|
+
createElementVNode("span", _hoisted_3, toDisplayString(__props.operacao.resumo), 1),
|
|
221
|
+
__props.operacao.depreciada ? (openBlock(), createBlock(_sfc_main$1, {
|
|
222
|
+
key: 0,
|
|
223
|
+
name: "warning_amber",
|
|
224
|
+
size: "16px",
|
|
225
|
+
class: "swagger-op__aviso",
|
|
226
|
+
"aria-label": "Endpoint depreciado"
|
|
227
|
+
})) : createCommentVNode("", true),
|
|
228
|
+
__props.operacao.exigeAutenticacao ? (openBlock(), createBlock(_sfc_main$1, {
|
|
229
|
+
key: 1,
|
|
230
|
+
name: "lock",
|
|
231
|
+
size: "14px",
|
|
232
|
+
class: "swagger-op__cadeado",
|
|
233
|
+
"aria-label": "Exige autenticação"
|
|
234
|
+
})) : createCommentVNode("", true),
|
|
235
|
+
createVNode(_sfc_main$1, {
|
|
236
|
+
name: "expand_more",
|
|
237
|
+
size: "20px",
|
|
238
|
+
class: "swagger-op__seta",
|
|
239
|
+
decorative: ""
|
|
240
|
+
})
|
|
241
|
+
], 8, _hoisted_1),
|
|
242
|
+
createVNode(QSlideTransition, null, {
|
|
243
|
+
default: withCtx(() => [
|
|
244
|
+
aberta.value ? (openBlock(), createElementBlock("div", {
|
|
245
|
+
key: 0,
|
|
246
|
+
id: unref(idCorpo),
|
|
247
|
+
class: "swagger-op__corpo"
|
|
248
|
+
}, [
|
|
249
|
+
__props.operacao.descricao ? (openBlock(), createElementBlock("p", _hoisted_5, toDisplayString(__props.operacao.descricao), 1)) : createCommentVNode("", true),
|
|
250
|
+
createElementVNode("div", _hoisted_6, [
|
|
251
|
+
createElementVNode("div", _hoisted_7, [
|
|
252
|
+
__props.operacao.parametros.length ? (openBlock(), createElementBlock("section", _hoisted_8, [
|
|
253
|
+
createElementVNode("h4", _hoisted_9, [
|
|
254
|
+
_cache[3] || (_cache[3] = createTextVNode(" Parâmetros ", -1)),
|
|
255
|
+
createElementVNode("span", _hoisted_10, toDisplayString(__props.operacao.parametros.length), 1)
|
|
256
|
+
]),
|
|
257
|
+
createElementVNode("div", _hoisted_11, [
|
|
258
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.operacao.parametros, (parametro) => {
|
|
259
|
+
return openBlock(), createElementBlock("div", {
|
|
260
|
+
key: unref(chaveParametro)(parametro),
|
|
261
|
+
class: "swagger-param"
|
|
262
|
+
}, [
|
|
263
|
+
createElementVNode("div", _hoisted_12, [
|
|
264
|
+
createElementVNode("span", _hoisted_13, [
|
|
265
|
+
createTextVNode(toDisplayString(parametro.nome) + " ", 1),
|
|
266
|
+
parametro.obrigatorio ? (openBlock(), createElementBlock("abbr", _hoisted_14, " * ")) : createCommentVNode("", true)
|
|
267
|
+
]),
|
|
268
|
+
createElementVNode("span", _hoisted_15, [
|
|
269
|
+
createElementVNode("span", _hoisted_16, toDisplayString(parametro.onde), 1),
|
|
270
|
+
createElementVNode("span", _hoisted_17, toDisplayString(parametro.tipo), 1)
|
|
271
|
+
])
|
|
272
|
+
]),
|
|
273
|
+
createElementVNode("div", _hoisted_18, [
|
|
274
|
+
podeExecutar.value && parametro.opcoes.length ? (openBlock(), createElementBlock("label", _hoisted_19, [
|
|
275
|
+
withDirectives(createElementVNode("select", {
|
|
276
|
+
"onUpdate:modelValue": ($event) => valores.value[unref(chaveParametro)(parametro)] = $event,
|
|
277
|
+
"aria-label": `Valor de ${parametro.nome}`,
|
|
278
|
+
required: parametro.obrigatorio
|
|
279
|
+
}, [
|
|
280
|
+
!parametro.obrigatorio ? (openBlock(), createElementBlock("option", _hoisted_21, "(não enviar)")) : createCommentVNode("", true),
|
|
281
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(parametro.opcoes, (opcao) => {
|
|
282
|
+
return openBlock(), createElementBlock("option", {
|
|
283
|
+
key: opcao,
|
|
284
|
+
value: opcao
|
|
285
|
+
}, toDisplayString(opcao), 9, _hoisted_22);
|
|
286
|
+
}), 128))
|
|
287
|
+
], 8, _hoisted_20), [
|
|
288
|
+
[vModelSelect, valores.value[unref(chaveParametro)(parametro)]]
|
|
289
|
+
])
|
|
290
|
+
])) : podeExecutar.value ? withDirectives((openBlock(), createElementBlock("input", {
|
|
291
|
+
key: 1,
|
|
292
|
+
"onUpdate:modelValue": ($event) => valores.value[unref(chaveParametro)(parametro)] = $event,
|
|
293
|
+
class: "swagger-input",
|
|
294
|
+
"aria-label": `Valor de ${parametro.nome}`,
|
|
295
|
+
placeholder: placeholderDe(parametro),
|
|
296
|
+
required: parametro.obrigatorio
|
|
297
|
+
}, null, 8, _hoisted_23)), [
|
|
298
|
+
[vModelText, valores.value[unref(chaveParametro)(parametro)]]
|
|
299
|
+
]) : (openBlock(), createElementBlock("span", _hoisted_24, toDisplayString(parametro.opcoes.length ? parametro.opcoes.join(" | ") : placeholderDe(parametro)), 1)),
|
|
300
|
+
parametro.descricao ? (openBlock(), createElementBlock("p", _hoisted_25, toDisplayString(parametro.descricao), 1)) : createCommentVNode("", true)
|
|
301
|
+
])
|
|
302
|
+
]);
|
|
303
|
+
}), 128))
|
|
304
|
+
])
|
|
305
|
+
])) : createCommentVNode("", true),
|
|
306
|
+
__props.operacao.corpo ? (openBlock(), createElementBlock("section", _hoisted_26, [
|
|
307
|
+
createElementVNode("h4", _hoisted_27, [
|
|
308
|
+
_cache[4] || (_cache[4] = createTextVNode(" Corpo ", -1)),
|
|
309
|
+
__props.operacao.corpo.obrigatorio ? (openBlock(), createElementBlock("abbr", _hoisted_28, " * ")) : createCommentVNode("", true),
|
|
310
|
+
__props.operacao.corpo.tiposConteudo.length > 1 ? (openBlock(), createElementBlock("label", _hoisted_29, [
|
|
311
|
+
withDirectives(createElementVNode("select", {
|
|
312
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => contentType.value = $event),
|
|
313
|
+
"aria-label": "Content-Type"
|
|
314
|
+
}, [
|
|
315
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.operacao.corpo.tiposConteudo, (tipo) => {
|
|
316
|
+
return openBlock(), createElementBlock("option", {
|
|
317
|
+
key: tipo,
|
|
318
|
+
value: tipo
|
|
319
|
+
}, toDisplayString(tipo), 9, _hoisted_30);
|
|
320
|
+
}), 128))
|
|
321
|
+
], 512), [
|
|
322
|
+
[vModelSelect, contentType.value]
|
|
323
|
+
])
|
|
324
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_31, toDisplayString(__props.operacao.corpo.tipoConteudoPadrao), 1)),
|
|
325
|
+
podeExecutar.value ? (openBlock(), createBlock(AcaiUiButton, {
|
|
326
|
+
key: 3,
|
|
327
|
+
flat: "",
|
|
328
|
+
dense: "",
|
|
329
|
+
size: "sm",
|
|
330
|
+
class: "swagger-bloco__acao",
|
|
331
|
+
label: "Restaurar exemplo",
|
|
332
|
+
icon: "refresh",
|
|
333
|
+
onClick: restaurarCorpo
|
|
334
|
+
})) : createCommentVNode("", true)
|
|
335
|
+
]),
|
|
336
|
+
__props.operacao.corpo.descricao ? (openBlock(), createElementBlock("p", _hoisted_32, toDisplayString(__props.operacao.corpo.descricao), 1)) : createCommentVNode("", true),
|
|
337
|
+
podeExecutar.value ? (openBlock(), createBlock(_sfc_main$2, {
|
|
338
|
+
key: 1,
|
|
339
|
+
modelValue: corpo.value,
|
|
340
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => corpo.value = $event),
|
|
341
|
+
"aria-label": "Corpo da requisição",
|
|
342
|
+
copiavel: false
|
|
343
|
+
}, null, 8, ["modelValue"])) : (openBlock(), createBlock(_sfc_main$2, {
|
|
344
|
+
key: 2,
|
|
345
|
+
value: exemploCorpo.value,
|
|
346
|
+
"max-height": "420px"
|
|
347
|
+
}, null, 8, ["value"])),
|
|
348
|
+
__props.operacao.corpo.schema ? (openBlock(), createElementBlock("details", _hoisted_33, [
|
|
349
|
+
_cache[5] || (_cache[5] = createElementVNode("summary", null, "Campos do schema", -1)),
|
|
350
|
+
createVNode(_sfc_main$3, {
|
|
351
|
+
doc: __props.doc,
|
|
352
|
+
schema: __props.operacao.corpo.schema
|
|
353
|
+
}, null, 8, ["doc", "schema"])
|
|
354
|
+
])) : createCommentVNode("", true)
|
|
355
|
+
])) : createCommentVNode("", true),
|
|
356
|
+
!__props.operacao.parametros.length && !__props.operacao.corpo ? (openBlock(), createElementBlock("p", _hoisted_34, " Esta operação não recebe parâmetros nem corpo. ")) : createCommentVNode("", true)
|
|
357
|
+
]),
|
|
358
|
+
createElementVNode("div", _hoisted_35, [
|
|
359
|
+
podeExecutar.value ? (openBlock(), createElementBlock("section", _hoisted_36, [
|
|
360
|
+
createElementVNode("div", _hoisted_37, [
|
|
361
|
+
createVNode(AcaiUiButton, {
|
|
362
|
+
label: "Executar",
|
|
363
|
+
icon: "play_arrow",
|
|
364
|
+
size: "sm",
|
|
365
|
+
loading: executando.value,
|
|
366
|
+
onClick: executar
|
|
367
|
+
}, null, 8, ["loading"]),
|
|
368
|
+
createVNode(AcaiUiButton, {
|
|
369
|
+
flat: "",
|
|
370
|
+
dense: "",
|
|
371
|
+
size: "sm",
|
|
372
|
+
label: "cURL",
|
|
373
|
+
icon: "content_copy",
|
|
374
|
+
onClick: copiarCurl
|
|
375
|
+
}),
|
|
376
|
+
resultado.value ? (openBlock(), createBlock(AcaiUiButton, {
|
|
377
|
+
key: 0,
|
|
378
|
+
flat: "",
|
|
379
|
+
dense: "",
|
|
380
|
+
size: "sm",
|
|
381
|
+
label: "Limpar",
|
|
382
|
+
icon: "close",
|
|
383
|
+
onClick: _cache[2] || (_cache[2] = ($event) => resultado.value = null)
|
|
384
|
+
})) : createCommentVNode("", true)
|
|
385
|
+
]),
|
|
386
|
+
createElementVNode("p", _hoisted_38, [
|
|
387
|
+
createElementVNode("span", {
|
|
388
|
+
class: normalizeClass(["swagger-metodo", `swagger-metodo--${__props.operacao.metodo}`])
|
|
389
|
+
}, toDisplayString(__props.operacao.metodo), 3),
|
|
390
|
+
createElementVNode("span", _hoisted_39, toDisplayString(urlPrevia.value), 1)
|
|
391
|
+
]),
|
|
392
|
+
resultado.value ? (openBlock(), createElementBlock("div", _hoisted_40, [
|
|
393
|
+
resultado.value.erroRede ? (openBlock(), createBlock(AcaiUiBanner, {
|
|
394
|
+
key: 0,
|
|
395
|
+
type: "error",
|
|
396
|
+
title: "A requisição não saiu"
|
|
397
|
+
}, {
|
|
398
|
+
default: withCtx(() => [
|
|
399
|
+
createTextVNode(toDisplayString(resultado.value.erroRede) + " — verifique se o servidor está no ar e se ele libera CORS para a origem do app. ", 1)
|
|
400
|
+
]),
|
|
401
|
+
_: 1
|
|
402
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
403
|
+
createElementVNode("div", _hoisted_41, [
|
|
404
|
+
createElementVNode("span", {
|
|
405
|
+
class: normalizeClass(["swagger-status", classeStatus(String(resultado.value.status))])
|
|
406
|
+
}, toDisplayString(resultado.value.status) + " " + toDisplayString(resultado.value.statusTexto), 3),
|
|
407
|
+
createElementVNode("span", _hoisted_42, toDisplayString(resultado.value.tempoMs) + " ms", 1),
|
|
408
|
+
createElementVNode("span", _hoisted_43, toDisplayString(tamanhoLegivel.value), 1)
|
|
409
|
+
]),
|
|
410
|
+
createVNode(_sfc_main$2, {
|
|
411
|
+
value: resultado.value.corpo || "(sem corpo)",
|
|
412
|
+
"max-height": "480px"
|
|
413
|
+
}, null, 8, ["value"])
|
|
414
|
+
], 64))
|
|
415
|
+
])) : createCommentVNode("", true)
|
|
416
|
+
])) : createCommentVNode("", true),
|
|
417
|
+
__props.operacao.respostas.length ? (openBlock(), createElementBlock("section", _hoisted_44, [
|
|
418
|
+
_cache[8] || (_cache[8] = createElementVNode("h4", { class: "swagger-bloco__titulo" }, "Respostas previstas", -1)),
|
|
419
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.operacao.respostas, (resposta) => {
|
|
420
|
+
return openBlock(), createElementBlock("div", {
|
|
421
|
+
key: resposta.status,
|
|
422
|
+
class: "swagger-resposta"
|
|
423
|
+
}, [
|
|
424
|
+
createElementVNode("div", _hoisted_45, [
|
|
425
|
+
createElementVNode("span", {
|
|
426
|
+
class: normalizeClass(["swagger-status", classeStatus(resposta.status)])
|
|
427
|
+
}, toDisplayString(resposta.status), 3),
|
|
428
|
+
createElementVNode("span", _hoisted_46, toDisplayString(resposta.descricao), 1),
|
|
429
|
+
resposta.tipoConteudo ? (openBlock(), createElementBlock("span", _hoisted_47, toDisplayString(resposta.tipoConteudo), 1)) : createCommentVNode("", true)
|
|
430
|
+
]),
|
|
431
|
+
resposta.exemplo !== null ? (openBlock(), createElementBlock("details", _hoisted_48, [
|
|
432
|
+
_cache[6] || (_cache[6] = createElementVNode("summary", null, "Exemplo", -1)),
|
|
433
|
+
createVNode(_sfc_main$2, {
|
|
434
|
+
value: resposta.exemplo,
|
|
435
|
+
"max-height": "360px"
|
|
436
|
+
}, null, 8, ["value"])
|
|
437
|
+
])) : createCommentVNode("", true),
|
|
438
|
+
resposta.schema ? (openBlock(), createElementBlock("details", _hoisted_49, [
|
|
439
|
+
_cache[7] || (_cache[7] = createElementVNode("summary", null, "Campos do schema", -1)),
|
|
440
|
+
createVNode(_sfc_main$3, {
|
|
441
|
+
doc: __props.doc,
|
|
442
|
+
schema: resposta.schema
|
|
443
|
+
}, null, 8, ["doc", "schema"])
|
|
444
|
+
])) : createCommentVNode("", true)
|
|
445
|
+
]);
|
|
446
|
+
}), 128))
|
|
447
|
+
])) : createCommentVNode("", true)
|
|
448
|
+
])
|
|
449
|
+
])
|
|
450
|
+
], 8, _hoisted_4)) : createCommentVNode("", true)
|
|
451
|
+
]),
|
|
452
|
+
_: 1
|
|
453
|
+
})
|
|
454
|
+
], 2);
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
});
|
|
458
|
+
export {
|
|
459
|
+
_sfc_main as default
|
|
460
|
+
};
|
|
461
|
+
//# sourceMappingURL=index186.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index186.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
function chaveParametro(parametro) {
|
|
4
|
+
return `${parametro.onde}:${parametro.nome}`;
|
|
5
|
+
}
|
|
6
|
+
const PISTAS_DE_DOCUMENTO = [/api-docs/i, /openapi/i, /\.json(\?|$)/i, /\.ya?ml(\?|$)/i];
|
|
7
|
+
function normalizarUrlDocumento(url) {
|
|
8
|
+
const limpo = (url ?? "").trim();
|
|
9
|
+
if (!limpo) return "";
|
|
10
|
+
if (/swagger-ui/i.test(limpo)) {
|
|
11
|
+
try {
|
|
12
|
+
return `${new URL(limpo).origin}/v3/api-docs`;
|
|
13
|
+
} catch {
|
|
14
|
+
return "/v3/api-docs";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
if (PISTAS_DE_DOCUMENTO.some((pista) => pista.test(limpo))) return limpo;
|
|
18
|
+
return `${limpo.replace(/\/+$/, "")}/v3/api-docs`;
|
|
19
|
+
}
|
|
20
|
+
function montarAutorizacao(token) {
|
|
21
|
+
const limpo = token.trim();
|
|
22
|
+
if (!limpo) return "";
|
|
23
|
+
return /^bearer\s/i.test(limpo) ? limpo : `Bearer ${limpo}`;
|
|
24
|
+
}
|
|
25
|
+
function resolverBaseUrl(servidores, urlDocumento, origemPadrao) {
|
|
26
|
+
const servidor = servidores[0] ?? "";
|
|
27
|
+
if (/^https?:\/\//i.test(servidor)) return servidor;
|
|
28
|
+
const origem = urlDocumento ? new URL(urlDocumento, origemPadrao).origin : origemPadrao;
|
|
29
|
+
if (!servidor || servidor === "/") return origem;
|
|
30
|
+
return `${origem}${servidor.startsWith("/") ? servidor : `/${servidor}`}`;
|
|
31
|
+
}
|
|
32
|
+
const METODOS_COM_CORPO = ["post", "put", "patch", "delete"];
|
|
33
|
+
function aceitaCorpo(operacao) {
|
|
34
|
+
return METODOS_COM_CORPO.includes(operacao.metodo) && operacao.corpo !== null;
|
|
35
|
+
}
|
|
36
|
+
function juntarUrl(base, path) {
|
|
37
|
+
if (!base) return path;
|
|
38
|
+
return `${base.replace(/\/+$/, "")}/${path.replace(/^\/+/, "")}`;
|
|
39
|
+
}
|
|
40
|
+
function montarUrl(entrada) {
|
|
41
|
+
const { operacao, baseUrl, valores } = entrada;
|
|
42
|
+
let path = operacao.path;
|
|
43
|
+
for (const parametro of operacao.parametros) {
|
|
44
|
+
if (parametro.onde !== "path") continue;
|
|
45
|
+
const valor = valores[chaveParametro(parametro)] ?? "";
|
|
46
|
+
if (!valor) continue;
|
|
47
|
+
path = path.replace(`{${parametro.nome}}`, encodeURIComponent(valor));
|
|
48
|
+
}
|
|
49
|
+
const query = new URLSearchParams();
|
|
50
|
+
for (const parametro of operacao.parametros) {
|
|
51
|
+
if (parametro.onde !== "query") continue;
|
|
52
|
+
const valor = valores[chaveParametro(parametro)] ?? "";
|
|
53
|
+
if (!valor) continue;
|
|
54
|
+
query.append(parametro.nome, valor);
|
|
55
|
+
}
|
|
56
|
+
const busca = query.toString();
|
|
57
|
+
return busca ? `${juntarUrl(baseUrl, path)}?${busca}` : juntarUrl(baseUrl, path);
|
|
58
|
+
}
|
|
59
|
+
function montarCabecalhos(entrada) {
|
|
60
|
+
var _a;
|
|
61
|
+
const cabecalhos = { ...entrada.headers ?? {} };
|
|
62
|
+
for (const parametro of entrada.operacao.parametros) {
|
|
63
|
+
if (parametro.onde !== "header") continue;
|
|
64
|
+
const valor = entrada.valores[chaveParametro(parametro)] ?? "";
|
|
65
|
+
if (valor) cabecalhos[parametro.nome] = valor;
|
|
66
|
+
}
|
|
67
|
+
if (aceitaCorpo(entrada.operacao) && ((_a = entrada.corpo) == null ? void 0 : _a.trim())) {
|
|
68
|
+
cabecalhos["Content-Type"] = entrada.contentType || "application/json";
|
|
69
|
+
}
|
|
70
|
+
return cabecalhos;
|
|
71
|
+
}
|
|
72
|
+
function aspasShell(texto) {
|
|
73
|
+
return `'${texto.replace(/'/g, `'\\''`)}'`;
|
|
74
|
+
}
|
|
75
|
+
function montarCurl(entrada) {
|
|
76
|
+
var _a;
|
|
77
|
+
const partes = [
|
|
78
|
+
`curl -X ${entrada.operacao.metodo.toUpperCase()} ${aspasShell(montarUrl(entrada))}`
|
|
79
|
+
];
|
|
80
|
+
for (const [nome, valor] of Object.entries(montarCabecalhos(entrada))) {
|
|
81
|
+
partes.push(`-H ${aspasShell(`${nome}: ${valor}`)}`);
|
|
82
|
+
}
|
|
83
|
+
if (aceitaCorpo(entrada.operacao) && ((_a = entrada.corpo) == null ? void 0 : _a.trim())) {
|
|
84
|
+
partes.push(`-d ${aspasShell(entrada.corpo)}`);
|
|
85
|
+
}
|
|
86
|
+
return partes.join(" \\\n ");
|
|
87
|
+
}
|
|
88
|
+
function formatarCorpo(texto, tipoConteudo) {
|
|
89
|
+
if (!texto) return "";
|
|
90
|
+
if (!tipoConteudo.includes("json")) return texto;
|
|
91
|
+
try {
|
|
92
|
+
return JSON.stringify(JSON.parse(texto), null, 2);
|
|
93
|
+
} catch {
|
|
94
|
+
return texto;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
async function executarRequisicao(entrada) {
|
|
98
|
+
var _a;
|
|
99
|
+
const url = montarUrl(entrada);
|
|
100
|
+
const inicio = performance.now();
|
|
101
|
+
const base = {
|
|
102
|
+
tempoMs: 0,
|
|
103
|
+
tamanhoBytes: 0,
|
|
104
|
+
corpo: "",
|
|
105
|
+
tipoConteudo: "",
|
|
106
|
+
headers: {},
|
|
107
|
+
erroRede: null,
|
|
108
|
+
url
|
|
109
|
+
};
|
|
110
|
+
try {
|
|
111
|
+
const resposta = await fetch(url, {
|
|
112
|
+
method: entrada.operacao.metodo.toUpperCase(),
|
|
113
|
+
headers: montarCabecalhos(entrada),
|
|
114
|
+
...aceitaCorpo(entrada.operacao) && ((_a = entrada.corpo) == null ? void 0 : _a.trim()) ? { body: entrada.corpo } : {},
|
|
115
|
+
...entrada.withCredentials ? { credentials: "include" } : {}
|
|
116
|
+
});
|
|
117
|
+
const texto = await resposta.text();
|
|
118
|
+
const tipoConteudo = resposta.headers.get("content-type") ?? "";
|
|
119
|
+
const headers = {};
|
|
120
|
+
resposta.headers.forEach((valor, nome) => {
|
|
121
|
+
headers[nome] = valor;
|
|
122
|
+
});
|
|
123
|
+
return {
|
|
124
|
+
...base,
|
|
125
|
+
ok: resposta.ok,
|
|
126
|
+
status: resposta.status,
|
|
127
|
+
statusTexto: resposta.statusText,
|
|
128
|
+
tempoMs: Math.round(performance.now() - inicio),
|
|
129
|
+
tamanhoBytes: new Blob([texto]).size,
|
|
130
|
+
corpo: formatarCorpo(texto, tipoConteudo),
|
|
131
|
+
tipoConteudo,
|
|
132
|
+
headers
|
|
133
|
+
};
|
|
134
|
+
} catch (erro) {
|
|
135
|
+
return {
|
|
136
|
+
...base,
|
|
137
|
+
ok: false,
|
|
138
|
+
status: 0,
|
|
139
|
+
statusTexto: "",
|
|
140
|
+
tempoMs: Math.round(performance.now() - inicio),
|
|
141
|
+
erroRede: erro instanceof Error && erro.message ? erro.message : "A requisição não chegou ao servidor."
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.aceitaCorpo = aceitaCorpo;
|
|
146
|
+
exports.chaveParametro = chaveParametro;
|
|
147
|
+
exports.executarRequisicao = executarRequisicao;
|
|
148
|
+
exports.montarAutorizacao = montarAutorizacao;
|
|
149
|
+
exports.montarCabecalhos = montarCabecalhos;
|
|
150
|
+
exports.montarCurl = montarCurl;
|
|
151
|
+
exports.montarUrl = montarUrl;
|
|
152
|
+
exports.normalizarUrlDocumento = normalizarUrlDocumento;
|
|
153
|
+
exports.resolverBaseUrl = resolverBaseUrl;
|
|
154
|
+
//# sourceMappingURL=index187.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index187.cjs","sources":["../src/components/swagger/acai-ui-swagger-requisicao.ts"],"sourcesContent":["// Montagem e disparo da requisição do \"Executar\".\n//\n// Tudo que decide COMO a chamada fica (url, query, cabeçalhos, cURL) é função\n// pura e testável; só `executarRequisicao` toca a rede. `fetch` em vez de axios\n// de propósito: a lib não tem axios como dependência e não vai ganhar uma por\n// causa desta tela.\n\nimport type { OperacaoNormalizada, ParametroNormalizado } from './openapi-tipos'\n\n/** Chave de um parâmetro no mapa de valores — nome sozinho colide (`id` em path e query). */\nexport function chaveParametro(parametro: ParametroNormalizado): string {\n return `${parametro.onde}:${parametro.nome}`\n}\n\n/** Valores digitados pelo usuário, indexados por `chaveParametro`. */\nexport type ValoresParametros = Record<string, string>\n\nexport interface EntradaExecucao {\n operacao: OperacaoNormalizada\n baseUrl: string\n valores: ValoresParametros\n /** Corpo cru, como está na caixa de edição. Só vai quando o método aceita corpo. */\n corpo?: string\n contentType?: string\n headers?: Record<string, string>\n withCredentials?: boolean\n}\n\nexport interface ResultadoExecucao {\n /** `false` também quando a requisição nem saiu (rede/CORS) — ver `erroRede`. */\n ok: boolean\n status: number\n statusTexto: string\n tempoMs: number\n tamanhoBytes: number\n /** Corpo da resposta como texto; JSON já vem indentado. */\n corpo: string\n tipoConteudo: string\n headers: Record<string, string>\n /** Mensagem de falha de rede/CORS. `null` quando o servidor respondeu (mesmo 500). */\n erroRede: string | null\n url: string\n}\n\n/**\n * Pistas de que a URL JÁ aponta para o documento, e não para o host. Sem isto,\n * completar às cegas transformaria `/v3/api-docs` em `/v3/api-docs/v3/api-docs`.\n */\nconst PISTAS_DE_DOCUMENTO = [/api-docs/i, /openapi/i, /\\.json(\\?|$)/i, /\\.ya?ml(\\?|$)/i]\n\n/**\n * Completa a URL do documento quando vem só o host.\n *\n * É o erro mais comum ao usar a tela: cola-se `http://host:8080` (ou o endereço\n * do Swagger UI, que é uma PÁGINA, não o documento) e a requisição volta HTML.\n * Spring Boot publica o JSON em `/v3/api-docs`, então é isso que completamos.\n */\nexport function normalizarUrlDocumento(url: string | undefined): string {\n const limpo = (url ?? '').trim()\n if (!limpo) return ''\n\n // `/swagger-ui/index.html` é a interface do Swagger, não a spec: volta pra\n // raiz do servidor e pega o documento de lá.\n if (/swagger-ui/i.test(limpo)) {\n try {\n return `${new URL(limpo).origin}/v3/api-docs`\n } catch {\n return '/v3/api-docs'\n }\n }\n\n if (PISTAS_DE_DOCUMENTO.some((pista) => pista.test(limpo))) return limpo\n\n return `${limpo.replace(/\\/+$/, '')}/v3/api-docs`\n}\n\n/**\n * Monta o `Authorization` a partir do que o usuário digitou. Aceita o token cru\n * ou já com o prefixo — colar do DevTools traz `Bearer …` junto na metade das\n * vezes, e duplicar o prefixo dá 401 sem explicação.\n */\nexport function montarAutorizacao(token: string): string {\n const limpo = token.trim()\n if (!limpo) return ''\n return /^bearer\\s/i.test(limpo) ? limpo : `Bearer ${limpo}`\n}\n\n/**\n * Base das chamadas quando o consumidor não passa `baseUrl`.\n *\n * Spring Boot publica `servers: [{ url: '/' }]` com muita frequência — relativo\n * ao host que serviu o documento, que NÃO é o host do app (o front roda em\n * :9000 e a API em :32243). Por isso a origem sai da URL do próprio documento,\n * e não de `window.location`, que mandaria a chamada pro dev server.\n */\nexport function resolverBaseUrl(\n servidores: string[],\n urlDocumento: string | undefined,\n origemPadrao: string,\n): string {\n const servidor = servidores[0] ?? ''\n if (/^https?:\\/\\//i.test(servidor)) return servidor\n\n const origem = urlDocumento\n ? new URL(urlDocumento, origemPadrao).origin\n : origemPadrao\n\n // `/` significa \"a própria raiz\" — concatenar deixaria `http://host//pessoas`.\n if (!servidor || servidor === '/') return origem\n return `${origem}${servidor.startsWith('/') ? servidor : `/${servidor}`}`\n}\n\n/** Métodos que carregam corpo. GET/HEAD com body são recusados pelo próprio `fetch`. */\nconst METODOS_COM_CORPO = ['post', 'put', 'patch', 'delete']\n\nexport function aceitaCorpo(operacao: OperacaoNormalizada): boolean {\n return METODOS_COM_CORPO.includes(operacao.metodo) && operacao.corpo !== null\n}\n\n/** Junta base e path sem gerar `//` no meio nem perder o prefixo da base. */\nfunction juntarUrl(base: string, path: string): string {\n if (!base) return path\n return `${base.replace(/\\/+$/, '')}/${path.replace(/^\\/+/, '')}`\n}\n\n/**\n * Substitui `{id}` no path e monta a query string.\n *\n * Parâmetro vazio é OMITIDO em vez de virar `?nome=`: um filtro opcional em\n * branco não deve chegar ao backend (mesma regra do `limparCamposVazios`).\n * Path param vazio fica como está (`{id}`) — a URL sai visivelmente quebrada,\n * que é melhor do que bater numa rota errada por concatenação silenciosa.\n */\nexport function montarUrl(entrada: EntradaExecucao): string {\n const { operacao, baseUrl, valores } = entrada\n\n let path = operacao.path\n for (const parametro of operacao.parametros) {\n if (parametro.onde !== 'path') continue\n const valor = valores[chaveParametro(parametro)] ?? ''\n if (!valor) continue\n path = path.replace(`{${parametro.nome}}`, encodeURIComponent(valor))\n }\n\n const query = new URLSearchParams()\n for (const parametro of operacao.parametros) {\n if (parametro.onde !== 'query') continue\n const valor = valores[chaveParametro(parametro)] ?? ''\n if (!valor) continue\n query.append(parametro.nome, valor)\n }\n\n const busca = query.toString()\n return busca ? `${juntarUrl(baseUrl, path)}?${busca}` : juntarUrl(baseUrl, path)\n}\n\n/**\n * Cabeçalhos finais: os do app (token) + os declarados como parâmetro `header`\n * na spec + o `Content-Type` quando a chamada leva corpo. O parâmetro da spec\n * ganha do cabeçalho global — foi digitado agora, para esta chamada.\n */\nexport function montarCabecalhos(entrada: EntradaExecucao): Record<string, string> {\n const cabecalhos: Record<string, string> = { ...(entrada.headers ?? {}) }\n\n for (const parametro of entrada.operacao.parametros) {\n if (parametro.onde !== 'header') continue\n const valor = entrada.valores[chaveParametro(parametro)] ?? ''\n if (valor) cabecalhos[parametro.nome] = valor\n }\n\n if (aceitaCorpo(entrada.operacao) && entrada.corpo?.trim()) {\n cabecalhos['Content-Type'] = entrada.contentType || 'application/json'\n }\n\n return cabecalhos\n}\n\n/** Aspas simples do shell: só `'` precisa de escape, e é `'\\''`. */\nfunction aspasShell(texto: string): string {\n return `'${texto.replace(/'/g, `'\\\\''`)}'`\n}\n\n/**\n * cURL equivalente — é como o dev leva a chamada para o terminal, para o\n * colega do backend ou para um ticket. Espelha exatamente o que seria enviado.\n */\nexport function montarCurl(entrada: EntradaExecucao): string {\n // Método e URL na MESMA linha; só cabeçalhos e corpo quebram — é o formato que\n // o Swagger UI mostra e o que fica legível quando colado no terminal.\n const partes = [\n `curl -X ${entrada.operacao.metodo.toUpperCase()} ${aspasShell(montarUrl(entrada))}`,\n ]\n\n for (const [nome, valor] of Object.entries(montarCabecalhos(entrada))) {\n partes.push(`-H ${aspasShell(`${nome}: ${valor}`)}`)\n }\n\n if (aceitaCorpo(entrada.operacao) && entrada.corpo?.trim()) {\n partes.push(`-d ${aspasShell(entrada.corpo)}`)\n }\n\n return partes.join(' \\\\\\n ')\n}\n\n/** JSON sai indentado; qualquer outra coisa (HTML de erro, texto) sai como veio. */\nfunction formatarCorpo(texto: string, tipoConteudo: string): string {\n if (!texto) return ''\n if (!tipoConteudo.includes('json')) return texto\n try {\n return JSON.stringify(JSON.parse(texto), null, 2)\n } catch {\n return texto\n }\n}\n\nexport async function executarRequisicao(entrada: EntradaExecucao): Promise<ResultadoExecucao> {\n const url = montarUrl(entrada)\n const inicio = performance.now()\n\n const base: Omit<ResultadoExecucao, 'ok' | 'status' | 'statusTexto'> = {\n tempoMs: 0,\n tamanhoBytes: 0,\n corpo: '',\n tipoConteudo: '',\n headers: {},\n erroRede: null,\n url,\n }\n\n try {\n const resposta = await fetch(url, {\n method: entrada.operacao.metodo.toUpperCase(),\n headers: montarCabecalhos(entrada),\n ...(aceitaCorpo(entrada.operacao) && entrada.corpo?.trim() ? { body: entrada.corpo } : {}),\n ...(entrada.withCredentials ? { credentials: 'include' as const } : {}),\n })\n\n const texto = await resposta.text()\n const tipoConteudo = resposta.headers.get('content-type') ?? ''\n const headers: Record<string, string> = {}\n resposta.headers.forEach((valor, nome) => {\n headers[nome] = valor\n })\n\n return {\n ...base,\n ok: resposta.ok,\n status: resposta.status,\n statusTexto: resposta.statusText,\n tempoMs: Math.round(performance.now() - inicio),\n tamanhoBytes: new Blob([texto]).size,\n corpo: formatarCorpo(texto, tipoConteudo),\n tipoConteudo,\n headers,\n }\n } catch (erro) {\n // `fetch` só rejeita quando a requisição não chegou a acontecer: DNS,\n // servidor fora, CORS. O status HTTP de erro (4xx/5xx) cai no caminho de\n // cima — daí `status: 0` aqui, que a tela mostra como \"sem resposta\".\n return {\n ...base,\n ok: false,\n status: 0,\n statusTexto: '',\n tempoMs: Math.round(performance.now() - inicio),\n erroRede:\n erro instanceof Error && erro.message\n ? erro.message\n : 'A requisição não chegou ao servidor.',\n }\n }\n}\n"],"names":[],"mappings":";;AAUO,SAAS,eAAe,WAAyC;AACtE,SAAO,GAAG,UAAU,IAAI,IAAI,UAAU,IAAI;AAC5C;AAoCA,MAAM,sBAAsB,CAAC,aAAa,YAAY,iBAAiB,gBAAgB;AAShF,SAAS,uBAAuB,KAAiC;AACtE,QAAM,SAAS,OAAO,IAAI,KAAA;AAC1B,MAAI,CAAC,MAAO,QAAO;AAInB,MAAI,cAAc,KAAK,KAAK,GAAG;AAC7B,QAAI;AACF,aAAO,GAAG,IAAI,IAAI,KAAK,EAAE,MAAM;AAAA,IACjC,QAAQ;AACN,aAAO;AAAA,IACT;AAAA,EACF;AAEA,MAAI,oBAAoB,KAAK,CAAC,UAAU,MAAM,KAAK,KAAK,CAAC,EAAG,QAAO;AAEnE,SAAO,GAAG,MAAM,QAAQ,QAAQ,EAAE,CAAC;AACrC;AAOO,SAAS,kBAAkB,OAAuB;AACvD,QAAM,QAAQ,MAAM,KAAA;AACpB,MAAI,CAAC,MAAO,QAAO;AACnB,SAAO,aAAa,KAAK,KAAK,IAAI,QAAQ,UAAU,KAAK;AAC3D;AAUO,SAAS,gBACd,YACA,cACA,cACQ;AACR,QAAM,WAAW,WAAW,CAAC,KAAK;AAClC,MAAI,gBAAgB,KAAK,QAAQ,EAAG,QAAO;AAE3C,QAAM,SAAS,eACX,IAAI,IAAI,cAAc,YAAY,EAAE,SACpC;AAGJ,MAAI,CAAC,YAAY,aAAa,IAAK,QAAO;AAC1C,SAAO,GAAG,MAAM,GAAG,SAAS,WAAW,GAAG,IAAI,WAAW,IAAI,QAAQ,EAAE;AACzE;AAGA,MAAM,oBAAoB,CAAC,QAAQ,OAAO,SAAS,QAAQ;AAEpD,SAAS,YAAY,UAAwC;AAClE,SAAO,kBAAkB,SAAS,SAAS,MAAM,KAAK,SAAS,UAAU;AAC3E;AAGA,SAAS,UAAU,MAAc,MAAsB;AACrD,MAAI,CAAC,KAAM,QAAO;AAClB,SAAO,GAAG,KAAK,QAAQ,QAAQ,EAAE,CAAC,IAAI,KAAK,QAAQ,QAAQ,EAAE,CAAC;AAChE;AAUO,SAAS,UAAU,SAAkC;AAC1D,QAAM,EAAE,UAAU,SAAS,QAAA,IAAY;AAEvC,MAAI,OAAO,SAAS;AACpB,aAAW,aAAa,SAAS,YAAY;AAC3C,QAAI,UAAU,SAAS,OAAQ;AAC/B,UAAM,QAAQ,QAAQ,eAAe,SAAS,CAAC,KAAK;AACpD,QAAI,CAAC,MAAO;AACZ,WAAO,KAAK,QAAQ,IAAI,UAAU,IAAI,KAAK,mBAAmB,KAAK,CAAC;AAAA,EACtE;AAEA,QAAM,QAAQ,IAAI,gBAAA;AAClB,aAAW,aAAa,SAAS,YAAY;AAC3C,QAAI,UAAU,SAAS,QAAS;AAChC,UAAM,QAAQ,QAAQ,eAAe,SAAS,CAAC,KAAK;AACpD,QAAI,CAAC,MAAO;AACZ,UAAM,OAAO,UAAU,MAAM,KAAK;AAAA,EACpC;AAEA,QAAM,QAAQ,MAAM,SAAA;AACpB,SAAO,QAAQ,GAAG,UAAU,SAAS,IAAI,CAAC,IAAI,KAAK,KAAK,UAAU,SAAS,IAAI;AACjF;AAOO,SAAS,iBAAiB,SAAkD;;AACjF,QAAM,aAAqC,EAAE,GAAI,QAAQ,WAAW,CAAA,EAAC;AAErE,aAAW,aAAa,QAAQ,SAAS,YAAY;AACnD,QAAI,UAAU,SAAS,SAAU;AACjC,UAAM,QAAQ,QAAQ,QAAQ,eAAe,SAAS,CAAC,KAAK;AAC5D,QAAI,MAAO,YAAW,UAAU,IAAI,IAAI;AAAA,EAC1C;AAEA,MAAI,YAAY,QAAQ,QAAQ,OAAK,aAAQ,UAAR,mBAAe,SAAQ;AAC1D,eAAW,cAAc,IAAI,QAAQ,eAAe;AAAA,EACtD;AAEA,SAAO;AACT;AAGA,SAAS,WAAW,OAAuB;AACzC,SAAO,IAAI,MAAM,QAAQ,MAAM,OAAO,CAAC;AACzC;AAMO,SAAS,WAAW,SAAkC;;AAG3D,QAAM,SAAS;AAAA,IACb,WAAW,QAAQ,SAAS,OAAO,aAAa,IAAI,WAAW,UAAU,OAAO,CAAC,CAAC;AAAA,EAAA;AAGpF,aAAW,CAAC,MAAM,KAAK,KAAK,OAAO,QAAQ,iBAAiB,OAAO,CAAC,GAAG;AACrE,WAAO,KAAK,MAAM,WAAW,GAAG,IAAI,KAAK,KAAK,EAAE,CAAC,EAAE;AAAA,EACrD;AAEA,MAAI,YAAY,QAAQ,QAAQ,OAAK,aAAQ,UAAR,mBAAe,SAAQ;AAC1D,WAAO,KAAK,MAAM,WAAW,QAAQ,KAAK,CAAC,EAAE;AAAA,EAC/C;AAEA,SAAO,OAAO,KAAK,SAAS;AAC9B;AAGA,SAAS,cAAc,OAAe,cAA8B;AAClE,MAAI,CAAC,MAAO,QAAO;AACnB,MAAI,CAAC,aAAa,SAAS,MAAM,EAAG,QAAO;AAC3C,MAAI;AACF,WAAO,KAAK,UAAU,KAAK,MAAM,KAAK,GAAG,MAAM,CAAC;AAAA,EAClD,QAAQ;AACN,WAAO;AAAA,EACT;AACF;AAEA,eAAsB,mBAAmB,SAAsD;;AAC7F,QAAM,MAAM,UAAU,OAAO;AAC7B,QAAM,SAAS,YAAY,IAAA;AAE3B,QAAM,OAAiE;AAAA,IACrE,SAAS;AAAA,IACT,cAAc;AAAA,IACd,OAAO;AAAA,IACP,cAAc;AAAA,IACd,SAAS,CAAA;AAAA,IACT,UAAU;AAAA,IACV;AAAA,EAAA;AAGF,MAAI;AACF,UAAM,WAAW,MAAM,MAAM,KAAK;AAAA,MAChC,QAAQ,QAAQ,SAAS,OAAO,YAAA;AAAA,MAChC,SAAS,iBAAiB,OAAO;AAAA,MACjC,GAAI,YAAY,QAAQ,QAAQ,OAAK,aAAQ,UAAR,mBAAe,UAAS,EAAE,MAAM,QAAQ,MAAA,IAAU,CAAA;AAAA,MACvF,GAAI,QAAQ,kBAAkB,EAAE,aAAa,UAAA,IAAuB,CAAA;AAAA,IAAC,CACtE;AAED,UAAM,QAAQ,MAAM,SAAS,KAAA;AAC7B,UAAM,eAAe,SAAS,QAAQ,IAAI,cAAc,KAAK;AAC7D,UAAM,UAAkC,CAAA;AACxC,aAAS,QAAQ,QAAQ,CAAC,OAAO,SAAS;AACxC,cAAQ,IAAI,IAAI;AAAA,IAClB,CAAC;AAED,WAAO;AAAA,MACL,GAAG;AAAA,MACH,IAAI,SAAS;AAAA,MACb,QAAQ,SAAS;AAAA,MACjB,aAAa,SAAS;AAAA,MACtB,SAAS,KAAK,MAAM,YAAY,IAAA,IAAQ,MAAM;AAAA,MAC9C,cAAc,IAAI,KAAK,CAAC,KAAK,CAAC,EAAE;AAAA,MAChC,OAAO,cAAc,OAAO,YAAY;AAAA,MACxC;AAAA,MACA;AAAA,IAAA;AAAA,EAEJ,SAAS,MAAM;AAIb,WAAO;AAAA,MACL,GAAG;AAAA,MACH,IAAI;AAAA,MACJ,QAAQ;AAAA,MACR,aAAa;AAAA,MACb,SAAS,KAAK,MAAM,YAAY,IAAA,IAAQ,MAAM;AAAA,MAC9C,UACE,gBAAgB,SAAS,KAAK,UAC1B,KAAK,UACL;AAAA,IAAA;AAAA,EAEV;AACF;;;;;;;;;;"}
|