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,679 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<figure class="acai-chart" role="group" :aria-labelledby="title ? idTitulo : undefined">
|
|
3
|
+
<figcaption v-if="title" :id="idTitulo" class="acai-chart__titulo">{{ title }}</figcaption>
|
|
4
|
+
|
|
5
|
+
<chart-legenda
|
|
6
|
+
v-if="mostrarLegenda && legendPosition === 'bottom'"
|
|
7
|
+
class="acai-chart__legenda"
|
|
8
|
+
:series="itensLegenda"
|
|
9
|
+
posicao="bottom"
|
|
10
|
+
@toggle="alternarSerie"
|
|
11
|
+
/>
|
|
12
|
+
|
|
13
|
+
<div class="acai-chart__corpo" :class="{ 'acai-chart__corpo--lateral': legendaLateral }">
|
|
14
|
+
<div ref="caixaRef" class="acai-chart__area" :style="estiloArea">
|
|
15
|
+
<div v-if="loading" class="acai-chart__estado" role="status" aria-label="Carregando gráfico">
|
|
16
|
+
<!-- Sem `color="primary"`: a navy da marca some sobre a superfície do
|
|
17
|
+
tema escuro. Herdando currentColor, o spinner acompanha o tema. -->
|
|
18
|
+
<q-spinner size="28px" />
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div v-else-if="dados.vazio" class="acai-chart__estado acai-chart__estado--vazio">
|
|
22
|
+
<slot name="empty">
|
|
23
|
+
<q-icon :name="emptyIcon" size="32px" />
|
|
24
|
+
<span>{{ empty }}</span>
|
|
25
|
+
</slot>
|
|
26
|
+
</div>
|
|
27
|
+
|
|
28
|
+
<svg
|
|
29
|
+
v-else
|
|
30
|
+
ref="svgRef"
|
|
31
|
+
class="acai-chart__svg"
|
|
32
|
+
:width="largura"
|
|
33
|
+
:height="alturaSvg"
|
|
34
|
+
:viewBox="`0 0 ${largura} ${alturaSvg}`"
|
|
35
|
+
role="img"
|
|
36
|
+
tabindex="0"
|
|
37
|
+
:aria-labelledby="`${idTitulo} ${idDesc}`"
|
|
38
|
+
@keydown="aoTeclar"
|
|
39
|
+
@blur="focado = null"
|
|
40
|
+
@pointerleave="aoSairPonteiro"
|
|
41
|
+
@pointermove="aoMoverPonteiro"
|
|
42
|
+
@click="aoClicar"
|
|
43
|
+
>
|
|
44
|
+
<title :id="idTitulo">{{ title || 'Gráfico' }}</title>
|
|
45
|
+
<desc :id="idDesc">{{ descricaoFinal }}</desc>
|
|
46
|
+
|
|
47
|
+
<defs v-if="padroesAtivos">
|
|
48
|
+
<!--
|
|
49
|
+
Ids via useId(): dois gráficos na mesma página com id igual fazem o
|
|
50
|
+
segundo roubar o preenchimento do primeiro, em silêncio.
|
|
51
|
+
-->
|
|
52
|
+
<!--
|
|
53
|
+
O padrão é só a HACHURA, com fundo transparente — ele é sobreposto
|
|
54
|
+
à barra já pintada com a cor real. Se o pattern trouxesse a cor
|
|
55
|
+
(fundo colorido pelo slot da série), `colorBy="status"` e
|
|
56
|
+
`colorBy="threshold"` perderiam a cor por ponto: toda barra da
|
|
57
|
+
série sairia com a mesma tinta.
|
|
58
|
+
-->
|
|
59
|
+
<pattern
|
|
60
|
+
v-for="p in PADROES"
|
|
61
|
+
:key="p.indice"
|
|
62
|
+
:id="`${idBase}-p${p.indice}`"
|
|
63
|
+
width="6"
|
|
64
|
+
height="6"
|
|
65
|
+
patternUnits="userSpaceOnUse"
|
|
66
|
+
:patternTransform="`rotate(${p.angulo})`"
|
|
67
|
+
>
|
|
68
|
+
<line
|
|
69
|
+
x1="0"
|
|
70
|
+
y1="0"
|
|
71
|
+
x2="0"
|
|
72
|
+
y2="6"
|
|
73
|
+
stroke="var(--acai-chart-surface)"
|
|
74
|
+
stroke-width="2.5"
|
|
75
|
+
opacity="0.85"
|
|
76
|
+
/>
|
|
77
|
+
</pattern>
|
|
78
|
+
</defs>
|
|
79
|
+
|
|
80
|
+
<chart-gauge v-if="ehMedidor" :plano="planoGauge" />
|
|
81
|
+
<chart-pizza
|
|
82
|
+
v-else-if="ehCircular"
|
|
83
|
+
:plano="planoPizza"
|
|
84
|
+
:padroes="padroesAtivos"
|
|
85
|
+
:id-padrao="idBase"
|
|
86
|
+
:focado="focado"
|
|
87
|
+
:atenuar="focoVisivel"
|
|
88
|
+
/>
|
|
89
|
+
<chart-cartesiano
|
|
90
|
+
v-else
|
|
91
|
+
:plano="plano"
|
|
92
|
+
:mostrar-grade="showGrid"
|
|
93
|
+
:padroes="padroesAtivos"
|
|
94
|
+
:id-padrao="idBase"
|
|
95
|
+
:focado="focado"
|
|
96
|
+
:atenuar="focoVisivel"
|
|
97
|
+
/>
|
|
98
|
+
|
|
99
|
+
<!-- Anel duplo: outline em filho de SVG é inconsistente entre
|
|
100
|
+
navegadores, então o foco é desenhado à mão (eMAG 4.3). -->
|
|
101
|
+
<rect
|
|
102
|
+
v-if="focoVisivel"
|
|
103
|
+
class="acai-chart__foco"
|
|
104
|
+
x="1"
|
|
105
|
+
y="1"
|
|
106
|
+
:width="largura - 2"
|
|
107
|
+
:height="alturaSvg - 2"
|
|
108
|
+
rx="4"
|
|
109
|
+
/>
|
|
110
|
+
</svg>
|
|
111
|
+
|
|
112
|
+
<div v-if="tooltipVisivel" class="acai-chart__tooltip" :style="estiloTooltip" role="tooltip">
|
|
113
|
+
<slot name="tooltip" :pontos="pontosDoFoco" :label="rotuloDoFoco">
|
|
114
|
+
<strong>{{ rotuloDoFoco }}</strong>
|
|
115
|
+
<span v-for="p in pontosDoFoco" :key="p.seriesIndex" class="acai-chart__tooltip-linha">
|
|
116
|
+
<i class="acai-chart__tooltip-cor" :style="{ background: p.cor }" />
|
|
117
|
+
<template v-if="dados.series.length > 1">{{ p.seriesName }}:</template>
|
|
118
|
+
{{ p.formatted }}
|
|
119
|
+
</span>
|
|
120
|
+
</slot>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<chart-legenda
|
|
125
|
+
v-if="mostrarLegenda && legendaLateral"
|
|
126
|
+
class="acai-chart__legenda acai-chart__legenda--lateral"
|
|
127
|
+
:series="itensLegenda"
|
|
128
|
+
posicao="right"
|
|
129
|
+
@toggle="alternarSerie"
|
|
130
|
+
/>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<!-- Live region: é como quem usa leitor de tela sabe onde o foco está. -->
|
|
134
|
+
<div class="acai-chart__vivo" aria-live="polite" aria-atomic="true">{{ anuncio }}</div>
|
|
135
|
+
|
|
136
|
+
<div v-if="tableToggle && !dados.vazio" class="acai-chart__acoes">
|
|
137
|
+
<button
|
|
138
|
+
type="button"
|
|
139
|
+
class="acai-chart__botao-tabela"
|
|
140
|
+
:aria-expanded="tabelaAberta"
|
|
141
|
+
:aria-controls="idTabela"
|
|
142
|
+
@click="tabelaAberta = !tabelaAberta"
|
|
143
|
+
>
|
|
144
|
+
{{ tabelaAberta ? 'Ocultar dados' : 'Ver dados em tabela' }}
|
|
145
|
+
</button>
|
|
146
|
+
</div>
|
|
147
|
+
|
|
148
|
+
<div :id="idTabela">
|
|
149
|
+
<chart-tabela
|
|
150
|
+
v-if="dataTable !== false && !dados.vazio"
|
|
151
|
+
:tabela="tabela"
|
|
152
|
+
:legenda="legendaTabela"
|
|
153
|
+
:visivel="tabelaAberta || dataTable === 'visible'"
|
|
154
|
+
/>
|
|
155
|
+
</div>
|
|
156
|
+
|
|
157
|
+
<slot name="footer" />
|
|
158
|
+
</figure>
|
|
159
|
+
</template>
|
|
160
|
+
|
|
161
|
+
<script setup lang="ts">
|
|
162
|
+
import { computed, ref, useId } from 'vue'
|
|
163
|
+
import { QIcon, QSpinner } from 'quasar'
|
|
164
|
+
import ChartCartesiano from './chart-cartesiano.vue'
|
|
165
|
+
import ChartGauge from './chart-gauge.vue'
|
|
166
|
+
import ChartPizza from './chart-pizza.vue'
|
|
167
|
+
import ChartLegenda from './chart-legenda.vue'
|
|
168
|
+
import ChartTabela from './chart-tabela.vue'
|
|
169
|
+
import { anuncioPonto, resumoGrafico, tabelaDeDados } from './chart-a11y'
|
|
170
|
+
import { limitarCategorias, normalizarEntrada, resolverCor } from './chart-dados'
|
|
171
|
+
import { resolverFormatador } from './chart-formatar'
|
|
172
|
+
import { montarPlanoCartesiano, montarPlanoGauge, montarPlanoPizza } from './chart-plano'
|
|
173
|
+
import { svgChartParaImagem, type ImagemChart, type OpcoesImagemChart } from './chart-imagem'
|
|
174
|
+
import { useTamanhoElemento } from '../../hooks/use-tamanho-elemento'
|
|
175
|
+
import { usePreferencias } from '../../hooks/use-preferencias'
|
|
176
|
+
import { alturaAutomatica } from './chart-layout'
|
|
177
|
+
import type { ChartColorBy, ChartPointEvent, ChartProps } from './acai-ui-chart-interface'
|
|
178
|
+
|
|
179
|
+
const props = withDefaults(defineProps<ChartProps>(), {
|
|
180
|
+
type: 'bar',
|
|
181
|
+
curve: 'linear',
|
|
182
|
+
showGrid: true,
|
|
183
|
+
showLegend: 'auto',
|
|
184
|
+
legendPosition: 'bottom',
|
|
185
|
+
showValues: 'auto',
|
|
186
|
+
showTooltip: true,
|
|
187
|
+
height: 320,
|
|
188
|
+
otherLabel: 'Outros',
|
|
189
|
+
empty: 'Sem dados para exibir.',
|
|
190
|
+
emptyIcon: 'bar_chart',
|
|
191
|
+
dataTable: 'hidden',
|
|
192
|
+
tableToggle: true,
|
|
193
|
+
patterns: 'auto',
|
|
194
|
+
// `colorBy` NÃO tem default aqui: ele depende do tipo. Ver `colorByEfetivo`.
|
|
195
|
+
})
|
|
196
|
+
|
|
197
|
+
const emit = defineEmits<{
|
|
198
|
+
'point-click': [evento: ChartPointEvent]
|
|
199
|
+
'point-focus': [evento: ChartPointEvent]
|
|
200
|
+
'legend-toggle': [evento: { seriesIndex: number; hidden: boolean }]
|
|
201
|
+
}>()
|
|
202
|
+
|
|
203
|
+
const idBase = useId()
|
|
204
|
+
const idTitulo = `${idBase}-t`
|
|
205
|
+
const idDesc = `${idBase}-d`
|
|
206
|
+
const idTabela = `${idBase}-tab`
|
|
207
|
+
|
|
208
|
+
const PADROES = [
|
|
209
|
+
{ indice: 0, angulo: 45 },
|
|
210
|
+
{ indice: 1, angulo: 135 },
|
|
211
|
+
{ indice: 2, angulo: 0 },
|
|
212
|
+
{ indice: 3, angulo: 90 },
|
|
213
|
+
{ indice: 4, angulo: 20 },
|
|
214
|
+
]
|
|
215
|
+
|
|
216
|
+
const caixaRef = ref<HTMLElement | null>(null)
|
|
217
|
+
const svgRef = ref<SVGSVGElement | null>(null)
|
|
218
|
+
const { preferencias } = usePreferencias()
|
|
219
|
+
|
|
220
|
+
// Séries desligadas pela legenda. Estado local: o consumidor não precisa saber
|
|
221
|
+
// que alguém escondeu uma série pra ver o resto.
|
|
222
|
+
const ocultasLocal = ref<Set<number>>(new Set())
|
|
223
|
+
const focado = ref<{ indiceSerie: number; indicePonto: number } | null>(null)
|
|
224
|
+
const focoVisivel = ref(false)
|
|
225
|
+
const tabelaAberta = ref(props.dataTable === 'visible')
|
|
226
|
+
const anuncio = ref('')
|
|
227
|
+
const ponteiro = ref<{ x: number; y: number } | null>(null)
|
|
228
|
+
|
|
229
|
+
const horizontal = computed(() => props.horizontal === true)
|
|
230
|
+
|
|
231
|
+
const dados = computed(() => {
|
|
232
|
+
const bruto = normalizarEntrada({
|
|
233
|
+
...props,
|
|
234
|
+
series: props.series?.map((s, i) => ({
|
|
235
|
+
...s,
|
|
236
|
+
hidden: s.hidden === true || ocultasLocal.value.has(i),
|
|
237
|
+
})),
|
|
238
|
+
})
|
|
239
|
+
const teto = props.maxCategories ?? (props.type === 'pie' || props.type === 'donut' ? 6 : 12)
|
|
240
|
+
return limitarCategorias(bruto, teto, props.otherLabel)
|
|
241
|
+
})
|
|
242
|
+
|
|
243
|
+
const amostra = computed(() =>
|
|
244
|
+
dados.value.series.flatMap((s) => s.pontos.map((p) => p.valor).filter((v): v is number => v !== null)),
|
|
245
|
+
)
|
|
246
|
+
|
|
247
|
+
const formatar = computed(() =>
|
|
248
|
+
resolverFormatador(props.valueFormat, props.valueDecimals, amostra.value),
|
|
249
|
+
)
|
|
250
|
+
|
|
251
|
+
const seriesVisiveis = computed(() => dados.value.series.filter((s) => !s.oculta))
|
|
252
|
+
|
|
253
|
+
// A altura só é calculada DEPOIS de `dados` porque `autoHeight` depende da
|
|
254
|
+
// quantidade de categorias. O padrão passado ao hook é constante de propósito:
|
|
255
|
+
// ler `alturaBase.value` aqui avaliaria o computed antes de `dados` existir
|
|
256
|
+
// (TDZ) — `<script setup>` executa de cima pra baixo.
|
|
257
|
+
const alturaBase = computed(() => {
|
|
258
|
+
if (props.autoHeight) return alturaAutomatica(dados.value.rotulos.length)
|
|
259
|
+
return typeof props.height === 'number' ? props.height : 320
|
|
260
|
+
})
|
|
261
|
+
|
|
262
|
+
const { largura, altura: alturaMedida, remedir } = useTamanhoElemento(caixaRef, {
|
|
263
|
+
largura: 640,
|
|
264
|
+
altura: 320,
|
|
265
|
+
})
|
|
266
|
+
|
|
267
|
+
// Com autoHeight quem manda é o cálculo; senão, a caixa medida.
|
|
268
|
+
const alturaSvg = computed(() => (props.autoHeight ? alturaBase.value : alturaMedida.value))
|
|
269
|
+
|
|
270
|
+
const estiloArea = computed(() => ({
|
|
271
|
+
height: props.autoHeight
|
|
272
|
+
? `${alturaBase.value}px`
|
|
273
|
+
: typeof props.height === 'number'
|
|
274
|
+
? `${props.height}px`
|
|
275
|
+
: props.height,
|
|
276
|
+
}))
|
|
277
|
+
|
|
278
|
+
// 'auto' liga com 2+ séries. Não é preferência de estilo: sem legenda, série
|
|
279
|
+
// distinta só por cor é informação transmitida só por cor (eMAG 4.2).
|
|
280
|
+
//
|
|
281
|
+
// Em pizza/rosca a legenda é SEMPRE necessária, mesmo com uma série só: ali as
|
|
282
|
+
// categorias é que são codificadas por cor, e a medição da paleta mostrou que
|
|
283
|
+
// entre todos os pares só 2 a 4 se separam.
|
|
284
|
+
const mostrarLegenda = computed(() => {
|
|
285
|
+
if (props.showLegend !== 'auto') return props.showLegend === true
|
|
286
|
+
// Medidor mostra UM valor, e ele já está escrito no meio do arco: legenda ali
|
|
287
|
+
// é uma caixinha colorida repetindo o que o número diz.
|
|
288
|
+
if (ehMedidor.value) return false
|
|
289
|
+
return ehCircular.value || dados.value.series.length > 1
|
|
290
|
+
})
|
|
291
|
+
|
|
292
|
+
const compacto = computed(() => {
|
|
293
|
+
if (ehMedidor.value) return planoGauge.value.compacto
|
|
294
|
+
return ehCircular.value ? planoPizza.value.compacto : plano.value.compacto
|
|
295
|
+
})
|
|
296
|
+
|
|
297
|
+
const legendaLateral = computed(
|
|
298
|
+
() => mostrarLegenda.value && props.legendPosition === 'right' && !compacto.value,
|
|
299
|
+
)
|
|
300
|
+
|
|
301
|
+
/**
|
|
302
|
+
* Em pizza a legenda tem que listar as CATEGORIAS (uma cor cada), não a série
|
|
303
|
+
* única. Monta entradas sintéticas reaproveitando o mesmo componente.
|
|
304
|
+
*/
|
|
305
|
+
const itensLegenda = computed(() => {
|
|
306
|
+
if (!ehCircular.value) return dados.value.series
|
|
307
|
+
const serie = dados.value.series[0]
|
|
308
|
+
if (!serie) return []
|
|
309
|
+
return serie.pontos.map((ponto, i) => ({
|
|
310
|
+
...serie,
|
|
311
|
+
indice: i,
|
|
312
|
+
nome: ponto.rotulo,
|
|
313
|
+
tipo: 'bar' as const,
|
|
314
|
+
cor: resolverCor(ponto, serie, colorByEfetivo.value, props.thresholds ?? []),
|
|
315
|
+
oculta: false,
|
|
316
|
+
}))
|
|
317
|
+
})
|
|
318
|
+
|
|
319
|
+
const mostrarValores = computed(() => {
|
|
320
|
+
if (props.showValues !== 'auto') return props.showValues === true
|
|
321
|
+
// Rótulo em toda barra vira ruído: só quando há folga real.
|
|
322
|
+
return dados.value.rotulos.length * seriesVisiveis.value.length <= 12
|
|
323
|
+
})
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
* Hachura ligada por preferência, não por adivinhação: `usePreferencias` já é
|
|
327
|
+
* o estado reativo da lib. Em acromatopsia a cor não distingue nada, e em alto
|
|
328
|
+
* contraste o usuário pediu reforço explícito.
|
|
329
|
+
*/
|
|
330
|
+
const padroesAtivos = computed(() => {
|
|
331
|
+
if (props.patterns === true) return true
|
|
332
|
+
if (props.patterns === false) return false
|
|
333
|
+
return preferencias.daltonismo === 'acromatopsia' || preferencias.altoContraste
|
|
334
|
+
})
|
|
335
|
+
|
|
336
|
+
const ehCircular = computed(() => props.type === 'pie' || props.type === 'donut')
|
|
337
|
+
const ehMedidor = computed(() => props.type === 'gauge')
|
|
338
|
+
|
|
339
|
+
/** Domínio do medidor. Fora de 0..100 só com `min`/`max` explícitos. */
|
|
340
|
+
const dominioMedidor = computed(() => ({
|
|
341
|
+
min: props.min ?? 0,
|
|
342
|
+
max: props.max ?? 100,
|
|
343
|
+
}))
|
|
344
|
+
|
|
345
|
+
/**
|
|
346
|
+
* O default de `colorBy` depende do tipo, e errar isso é visível: em barra/linha
|
|
347
|
+
* a cor identifica a SÉRIE, mas em pizza cada fatia é uma CATEGORIA. Com
|
|
348
|
+
* `'series'` numa pizza, todas as fatias sairiam da mesma cor.
|
|
349
|
+
*/
|
|
350
|
+
const colorByEfetivo = computed<ChartColorBy>(() => {
|
|
351
|
+
if (props.colorBy) return props.colorBy
|
|
352
|
+
// Medidor com faixas declaradas quer a cor DA FAIXA em que o valor caiu — é o
|
|
353
|
+
// "verde/amarelo/vermelho" que todo velocímetro de risco precisa, e exigir
|
|
354
|
+
// `colorBy="threshold"` à mão só produziria arco azul em toda tela.
|
|
355
|
+
if (ehMedidor.value) return (props.thresholds?.length ?? 0) > 0 ? 'threshold' : 'series'
|
|
356
|
+
return ehCircular.value ? 'point' : 'series'
|
|
357
|
+
})
|
|
358
|
+
|
|
359
|
+
const planoPizza = computed(() =>
|
|
360
|
+
montarPlanoPizza({
|
|
361
|
+
dados: dados.value,
|
|
362
|
+
largura: largura.value,
|
|
363
|
+
altura: alturaSvg.value,
|
|
364
|
+
formatar: formatar.value,
|
|
365
|
+
// Rosca sem `innerRadius` explícito usa 0.6: furo menor que isso vira uma
|
|
366
|
+
// pizza com um pontinho no meio, sem a legibilidade que a rosca traz.
|
|
367
|
+
raioInterno: props.innerRadius ?? (props.type === 'donut' ? 0.6 : 0),
|
|
368
|
+
colorBy: colorByEfetivo.value,
|
|
369
|
+
thresholds: props.thresholds ?? [],
|
|
370
|
+
}),
|
|
371
|
+
)
|
|
372
|
+
|
|
373
|
+
const planoGauge = computed(() =>
|
|
374
|
+
montarPlanoGauge({
|
|
375
|
+
dados: dados.value,
|
|
376
|
+
largura: largura.value,
|
|
377
|
+
altura: alturaSvg.value,
|
|
378
|
+
formatar: formatar.value,
|
|
379
|
+
min: dominioMedidor.value.min,
|
|
380
|
+
max: dominioMedidor.value.max,
|
|
381
|
+
...(props.gauge?.startAngle === undefined ? {} : { anguloInicio: props.gauge.startAngle }),
|
|
382
|
+
...(props.gauge?.endAngle === undefined ? {} : { anguloFim: props.gauge.endAngle }),
|
|
383
|
+
...(props.gauge?.thickness === undefined ? {} : { espessura: props.gauge.thickness }),
|
|
384
|
+
ponteiro: props.gauge?.pointer === true,
|
|
385
|
+
bandas: props.gauge?.bands === true,
|
|
386
|
+
legenda: props.gauge?.caption ?? '',
|
|
387
|
+
colorBy: colorByEfetivo.value,
|
|
388
|
+
thresholds: props.thresholds ?? [],
|
|
389
|
+
}),
|
|
390
|
+
)
|
|
391
|
+
|
|
392
|
+
const plano = computed(() =>
|
|
393
|
+
montarPlanoCartesiano({
|
|
394
|
+
dados: dados.value,
|
|
395
|
+
largura: largura.value,
|
|
396
|
+
altura: alturaSvg.value,
|
|
397
|
+
formatar: formatar.value,
|
|
398
|
+
horizontal: horizontal.value,
|
|
399
|
+
empilhado: props.stacked === true || props.stacked === 'percent',
|
|
400
|
+
percentual: props.stacked === 'percent',
|
|
401
|
+
curva: props.curve,
|
|
402
|
+
...(props.includeZero === undefined ? {} : { incluirZero: props.includeZero }),
|
|
403
|
+
min: props.min,
|
|
404
|
+
max: props.max,
|
|
405
|
+
...(props.ticks === undefined ? {} : { ticksAlvo: props.ticks }),
|
|
406
|
+
colorBy: colorByEfetivo.value,
|
|
407
|
+
thresholds: props.thresholds ?? [],
|
|
408
|
+
mostrarValores: mostrarValores.value,
|
|
409
|
+
temTitulo: false,
|
|
410
|
+
temLegenda: false,
|
|
411
|
+
...(props.legendPosition ? { posicaoLegenda: props.legendPosition } : {}),
|
|
412
|
+
}),
|
|
413
|
+
)
|
|
414
|
+
|
|
415
|
+
const descricaoFinal = computed(
|
|
416
|
+
() =>
|
|
417
|
+
props.description ??
|
|
418
|
+
resumoGrafico(dados.value, {
|
|
419
|
+
tipo: props.type,
|
|
420
|
+
titulo: props.title,
|
|
421
|
+
formatar: formatar.value,
|
|
422
|
+
...(ehMedidor.value ? { medidor: dominioMedidor.value } : {}),
|
|
423
|
+
}),
|
|
424
|
+
)
|
|
425
|
+
|
|
426
|
+
const tabela = computed(() =>
|
|
427
|
+
tabelaDeDados(dados.value, formatar.value, props.categoryLabel ?? 'Categoria'),
|
|
428
|
+
)
|
|
429
|
+
const legendaTabela = computed(() =>
|
|
430
|
+
props.title ? `${props.title} — dados do gráfico` : 'Dados do gráfico',
|
|
431
|
+
)
|
|
432
|
+
|
|
433
|
+
// ── interação ──────────────────────────────────────────────────────────────
|
|
434
|
+
|
|
435
|
+
function alternarSerie(indice: number): void {
|
|
436
|
+
// Em pizza a legenda lista CATEGORIAS, não séries — esconder uma categoria
|
|
437
|
+
// mudaria o total e faria os percentuais de todas as outras mentirem.
|
|
438
|
+
if (ehCircular.value) return
|
|
439
|
+
const proximo = new Set(ocultasLocal.value)
|
|
440
|
+
if (proximo.has(indice)) proximo.delete(indice)
|
|
441
|
+
else proximo.add(indice)
|
|
442
|
+
ocultasLocal.value = proximo
|
|
443
|
+
emit('legend-toggle', { seriesIndex: indice, hidden: proximo.has(indice) })
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
function eventoDoPonto(indiceSerie: number, indicePonto: number): ChartPointEvent | null {
|
|
447
|
+
const serie = dados.value.series[indiceSerie]
|
|
448
|
+
const ponto = serie?.pontos[indicePonto]
|
|
449
|
+
if (!serie || !ponto) return null
|
|
450
|
+
return {
|
|
451
|
+
seriesIndex: indiceSerie,
|
|
452
|
+
seriesName: serie.nome,
|
|
453
|
+
index: indicePonto,
|
|
454
|
+
label: ponto.rotulo,
|
|
455
|
+
value: ponto.valor,
|
|
456
|
+
formatted: ponto.valor === null ? '—' : formatar.value(ponto.valor),
|
|
457
|
+
meta: ponto.meta,
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
* Move o foco. `indicePontoAbsoluto` posiciona direto (Home/End) em vez de
|
|
463
|
+
* somar — e, crucialmente, PRESERVA a série atual: pular para a última
|
|
464
|
+
* categoria não pode devolver o leitor para a primeira série, senão ele perde
|
|
465
|
+
* a linha que estava seguindo.
|
|
466
|
+
*/
|
|
467
|
+
function mover(
|
|
468
|
+
deltaPonto: number,
|
|
469
|
+
deltaSerie: number,
|
|
470
|
+
indicePontoAbsoluto?: number,
|
|
471
|
+
): void {
|
|
472
|
+
const nPontos = dados.value.rotulos.length
|
|
473
|
+
const visiveis = seriesVisiveis.value
|
|
474
|
+
if (nPontos === 0 || visiveis.length === 0) return
|
|
475
|
+
|
|
476
|
+
const atual = focado.value ?? { indiceSerie: visiveis[0]!.indice, indicePonto: -1 }
|
|
477
|
+
const ordemAtual = Math.max(
|
|
478
|
+
0,
|
|
479
|
+
visiveis.findIndex((s) => s.indice === atual.indiceSerie),
|
|
480
|
+
)
|
|
481
|
+
|
|
482
|
+
const alvoPonto = indicePontoAbsoluto ?? atual.indicePonto + deltaPonto
|
|
483
|
+
const proximoPonto = Math.min(nPontos - 1, Math.max(0, alvoPonto))
|
|
484
|
+
const proximaOrdem = Math.min(visiveis.length - 1, Math.max(0, ordemAtual + deltaSerie))
|
|
485
|
+
|
|
486
|
+
focado.value = {
|
|
487
|
+
indiceSerie: visiveis[proximaOrdem]!.indice,
|
|
488
|
+
indicePonto: proximoPonto,
|
|
489
|
+
}
|
|
490
|
+
anuncio.value = anuncioPonto(
|
|
491
|
+
dados.value,
|
|
492
|
+
focado.value.indiceSerie,
|
|
493
|
+
focado.value.indicePonto,
|
|
494
|
+
formatar.value,
|
|
495
|
+
)
|
|
496
|
+
const evento = eventoDoPonto(focado.value.indiceSerie, focado.value.indicePonto)
|
|
497
|
+
if (evento) emit('point-focus', evento)
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* O SVG é UM tab stop só. 12 categorias × 3 séries dariam 36 paradas de Tab —
|
|
502
|
+
* hostil, e SVG filho focável tem suporte irregular no NVDA.
|
|
503
|
+
*/
|
|
504
|
+
function aoTeclar(e: KeyboardEvent): void {
|
|
505
|
+
const nPontos = dados.value.rotulos.length
|
|
506
|
+
switch (e.key) {
|
|
507
|
+
case 'ArrowRight':
|
|
508
|
+
mover(1, 0)
|
|
509
|
+
break
|
|
510
|
+
case 'ArrowLeft':
|
|
511
|
+
mover(-1, 0)
|
|
512
|
+
break
|
|
513
|
+
case 'ArrowDown':
|
|
514
|
+
mover(0, 1)
|
|
515
|
+
break
|
|
516
|
+
case 'ArrowUp':
|
|
517
|
+
mover(0, -1)
|
|
518
|
+
break
|
|
519
|
+
case 'Home':
|
|
520
|
+
mover(0, 0, 0)
|
|
521
|
+
break
|
|
522
|
+
case 'End':
|
|
523
|
+
mover(0, 0, nPontos - 1)
|
|
524
|
+
break
|
|
525
|
+
case 'Enter':
|
|
526
|
+
case ' ': {
|
|
527
|
+
if (!focado.value) return
|
|
528
|
+
const evento = eventoDoPonto(focado.value.indiceSerie, focado.value.indicePonto)
|
|
529
|
+
if (evento) emit('point-click', evento)
|
|
530
|
+
break
|
|
531
|
+
}
|
|
532
|
+
case 'Escape':
|
|
533
|
+
focado.value = null
|
|
534
|
+
anuncio.value = ''
|
|
535
|
+
break
|
|
536
|
+
case 't':
|
|
537
|
+
case 'T':
|
|
538
|
+
tabelaAberta.value = !tabelaAberta.value
|
|
539
|
+
break
|
|
540
|
+
default:
|
|
541
|
+
return
|
|
542
|
+
}
|
|
543
|
+
focoVisivel.value = true
|
|
544
|
+
e.preventDefault()
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
function aoMoverPonteiro(e: PointerEvent): void {
|
|
548
|
+
if (!props.showTooltip || dados.value.vazio) return
|
|
549
|
+
const caixa = svgRef.value?.getBoundingClientRect()
|
|
550
|
+
if (!caixa) return
|
|
551
|
+
const x = e.clientX - caixa.left
|
|
552
|
+
const y = e.clientY - caixa.top
|
|
553
|
+
ponteiro.value = { x, y }
|
|
554
|
+
|
|
555
|
+
const indice = indiceSobCursor(x, y)
|
|
556
|
+
if (indice === null) return
|
|
557
|
+
const serie = seriesVisiveis.value[0]
|
|
558
|
+
if (!serie) return
|
|
559
|
+
focado.value = { indiceSerie: serie.indice, indicePonto: indice }
|
|
560
|
+
focoVisivel.value = false
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
function indiceSobCursor(x: number, y: number): number | null {
|
|
564
|
+
// Medidor não tem ponto sob o cursor: o valor está escrito no meio do arco, e
|
|
565
|
+
// um tooltip repetiria a mesma informação seguindo o mouse.
|
|
566
|
+
if (ehMedidor.value) return null
|
|
567
|
+
|
|
568
|
+
// Pizza precisa de teste ANGULAR: a distância no eixo não diz nada num
|
|
569
|
+
// gráfico circular.
|
|
570
|
+
if (ehCircular.value) {
|
|
571
|
+
const p = planoPizza.value
|
|
572
|
+
const dx = x - p.cx
|
|
573
|
+
const dy = y - p.cy
|
|
574
|
+
const raio = Math.hypot(dx, dy)
|
|
575
|
+
// Fora do anel (ou dentro do furo da rosca) não há fatia sob o cursor.
|
|
576
|
+
if (raio > p.raioExterno || raio < p.raioInterno) return null
|
|
577
|
+
|
|
578
|
+
let angulo = (Math.atan2(dy, dx) * 180) / Math.PI
|
|
579
|
+
const fatia = p.fatias.find((f) => {
|
|
580
|
+
// Normaliza o ângulo pra mesma volta do início da fatia.
|
|
581
|
+
let a = angulo
|
|
582
|
+
while (a < f.anguloInicioBruto) a += 360
|
|
583
|
+
while (a >= f.anguloInicioBruto + 360) a -= 360
|
|
584
|
+
return a <= f.anguloFimBruto
|
|
585
|
+
})
|
|
586
|
+
return fatia ? fatia.indicePonto : null
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
const cats = plano.value.categorias
|
|
590
|
+
if (cats.length === 0) return null
|
|
591
|
+
const coordenada = horizontal.value ? y : x
|
|
592
|
+
let melhor = 0
|
|
593
|
+
let menorDistancia = Infinity
|
|
594
|
+
cats.forEach((cat, i) => {
|
|
595
|
+
const d = Math.abs(cat.centro - coordenada)
|
|
596
|
+
if (d < menorDistancia) {
|
|
597
|
+
menorDistancia = d
|
|
598
|
+
melhor = i
|
|
599
|
+
}
|
|
600
|
+
})
|
|
601
|
+
return melhor
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
function aoSairPonteiro(): void {
|
|
605
|
+
ponteiro.value = null
|
|
606
|
+
if (!focoVisivel.value) focado.value = null
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
function aoClicar(): void {
|
|
610
|
+
if (!focado.value) return
|
|
611
|
+
const evento = eventoDoPonto(focado.value.indiceSerie, focado.value.indicePonto)
|
|
612
|
+
if (evento) emit('point-click', evento)
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
// Tooltip aparece por hover E por foco de teclado — senão quem navega por
|
|
616
|
+
// teclado perde a informação que o mouse tem.
|
|
617
|
+
const tooltipVisivel = computed(
|
|
618
|
+
() => props.showTooltip && !ehMedidor.value && focado.value !== null && !dados.value.vazio,
|
|
619
|
+
)
|
|
620
|
+
|
|
621
|
+
const rotuloDoFoco = computed(() =>
|
|
622
|
+
focado.value ? (dados.value.rotulos[focado.value.indicePonto] ?? '') : '',
|
|
623
|
+
)
|
|
624
|
+
|
|
625
|
+
const pontosDoFoco = computed(() => {
|
|
626
|
+
if (!focado.value) return []
|
|
627
|
+
const i = focado.value.indicePonto
|
|
628
|
+
return seriesVisiveis.value
|
|
629
|
+
.map((serie) => {
|
|
630
|
+
const ponto = serie.pontos[i]
|
|
631
|
+
if (!ponto) return null
|
|
632
|
+
return {
|
|
633
|
+
seriesIndex: serie.indice,
|
|
634
|
+
seriesName: serie.nome,
|
|
635
|
+
formatted: ponto.valor === null ? '—' : formatar.value(ponto.valor),
|
|
636
|
+
cor: resolverCor(ponto, serie, colorByEfetivo.value, props.thresholds ?? []),
|
|
637
|
+
}
|
|
638
|
+
})
|
|
639
|
+
.filter((p): p is NonNullable<typeof p> => p !== null)
|
|
640
|
+
})
|
|
641
|
+
|
|
642
|
+
const estiloTooltip = computed(() => {
|
|
643
|
+
if (ponteiro.value) {
|
|
644
|
+
return { left: `${ponteiro.value.x}px`, top: `${ponteiro.value.y}px` }
|
|
645
|
+
}
|
|
646
|
+
// Sem cursor (navegação por teclado) o tooltip ancora no próprio dado.
|
|
647
|
+
if (ehCircular.value) {
|
|
648
|
+
const fatia = focado.value
|
|
649
|
+
? planoPizza.value.fatias.find((f) => f.indicePonto === focado.value?.indicePonto)
|
|
650
|
+
: null
|
|
651
|
+
return { left: `${fatia?.rotuloX ?? planoPizza.value.cx}px`, top: `${fatia?.rotuloY ?? planoPizza.value.cy}px` }
|
|
652
|
+
}
|
|
653
|
+
const cat = focado.value ? plano.value.categorias[focado.value.indicePonto] : null
|
|
654
|
+
return { left: `${cat?.centro ?? 0}px`, top: `${plano.value.area.y}px` }
|
|
655
|
+
})
|
|
656
|
+
|
|
657
|
+
/**
|
|
658
|
+
* PNG do gráfico como está na tela — tema, paleta e faixas incluídos.
|
|
659
|
+
*
|
|
660
|
+
* Erro claro em vez de imagem vazia: estado de carregando ou sem dados não
|
|
661
|
+
* desenha `<svg>` nenhum, e devolver um PNG branco faria o relatório sair com um
|
|
662
|
+
* retângulo em branco no lugar do gráfico, sem ninguém notar.
|
|
663
|
+
*/
|
|
664
|
+
async function exportarImagem(opcoes: OpcoesImagemChart = {}): Promise<ImagemChart> {
|
|
665
|
+
const svg = svgRef.value
|
|
666
|
+
if (!svg) {
|
|
667
|
+
throw new Error(
|
|
668
|
+
'acai-ui-chart: nada desenhado para exportar (gráfico carregando ou sem dados).',
|
|
669
|
+
)
|
|
670
|
+
}
|
|
671
|
+
return svgChartParaImagem(svg, opcoes)
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// `remedir` era um stub `() => undefined`: quem chamava depois de abrir aba ou
|
|
675
|
+
// modal não remedia nada e o gráfico ficava no tamanho padrão.
|
|
676
|
+
defineExpose({ remedir, exportarImagem })
|
|
677
|
+
</script>
|
|
678
|
+
|
|
679
|
+
<style lang="scss" src="./acai-ui-chart-styles.scss" />
|