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,766 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<teleport to="body">
|
|
3
|
+
<div v-if="aberto" class="acaitour" :class="{ 'acaitour--estatico': semAnimacao }">
|
|
4
|
+
<!-- CAMADA 1 — visual. `pointer-events: none`: quem bloqueia clique são as
|
|
5
|
+
divs da camada 2, porque SVG com máscara não recorta área de clique. -->
|
|
6
|
+
<svg class="acaitour__overlay" aria-hidden="true" focusable="false">
|
|
7
|
+
<defs>
|
|
8
|
+
<mask :id="idMascara">
|
|
9
|
+
<rect x="0" y="0" width="100%" height="100%" fill="white" />
|
|
10
|
+
<rect
|
|
11
|
+
v-if="recorte"
|
|
12
|
+
:x="recorte.left"
|
|
13
|
+
:y="recorte.top"
|
|
14
|
+
:width="recorte.width"
|
|
15
|
+
:height="recorte.height"
|
|
16
|
+
:rx="RAIO_RECORTE"
|
|
17
|
+
fill="black"
|
|
18
|
+
/>
|
|
19
|
+
</mask>
|
|
20
|
+
</defs>
|
|
21
|
+
<rect
|
|
22
|
+
class="acaitour__tinta"
|
|
23
|
+
x="0"
|
|
24
|
+
y="0"
|
|
25
|
+
width="100%"
|
|
26
|
+
height="100%"
|
|
27
|
+
:mask="`url(#${idMascara})`"
|
|
28
|
+
/>
|
|
29
|
+
<!-- Aro do recorte: em alto contraste o escurecimento sozinho não
|
|
30
|
+
comunica "é aqui" (eMAG 4.1). -->
|
|
31
|
+
<rect
|
|
32
|
+
v-if="recorte"
|
|
33
|
+
class="acaitour__aro"
|
|
34
|
+
:x="recorte.left"
|
|
35
|
+
:y="recorte.top"
|
|
36
|
+
:width="recorte.width"
|
|
37
|
+
:height="recorte.height"
|
|
38
|
+
:rx="RAIO_RECORTE"
|
|
39
|
+
fill="none"
|
|
40
|
+
/>
|
|
41
|
+
</svg>
|
|
42
|
+
|
|
43
|
+
<!-- CAMADA 2 — bloqueio de clique. Cerca o recorte por fora; a peça
|
|
44
|
+
`centro` só entra quando o passo NÃO é interativo. -->
|
|
45
|
+
<div
|
|
46
|
+
v-for="bloqueio in bloqueios"
|
|
47
|
+
:key="bloqueio.nome"
|
|
48
|
+
class="acaitour__bloqueio"
|
|
49
|
+
:style="bloqueio.estilo"
|
|
50
|
+
/>
|
|
51
|
+
|
|
52
|
+
<!-- CAMADA 3 — o coach mark. -->
|
|
53
|
+
<div
|
|
54
|
+
ref="balaoRef"
|
|
55
|
+
class="acaitour__balao"
|
|
56
|
+
:class="[`acaitour__balao--${posicao.side}`, { 'acaitour__balao--solto': !recorte }]"
|
|
57
|
+
:style="{ top: `${posicao.top}px`, left: `${posicao.left}px`, opacity: pronto ? 1 : 0 }"
|
|
58
|
+
role="dialog"
|
|
59
|
+
aria-modal="true"
|
|
60
|
+
:aria-labelledby="idTitulo"
|
|
61
|
+
:aria-describedby="idTexto"
|
|
62
|
+
:aria-busy="buscando ? 'true' : undefined"
|
|
63
|
+
tabindex="-1"
|
|
64
|
+
>
|
|
65
|
+
<span v-if="recorte" class="acaitour__seta" :style="estiloSeta" aria-hidden="true" />
|
|
66
|
+
|
|
67
|
+
<header class="acaitour__cab">
|
|
68
|
+
<h2 :id="idTitulo" class="acaitour__titulo">
|
|
69
|
+
{{ passoAtual?.title || tituloTour }}
|
|
70
|
+
</h2>
|
|
71
|
+
<button
|
|
72
|
+
v-if="mostrarAudio"
|
|
73
|
+
type="button"
|
|
74
|
+
class="acaitour__ouvir"
|
|
75
|
+
:aria-pressed="lendoPasso"
|
|
76
|
+
aria-label="Ouvir este passo"
|
|
77
|
+
@click="alternarPasso"
|
|
78
|
+
>
|
|
79
|
+
<acai-ui-icon :name="lendoPasso ? 'stop' : 'volume_up'" size="md" decorative />
|
|
80
|
+
</button>
|
|
81
|
+
<button
|
|
82
|
+
type="button"
|
|
83
|
+
class="acaitour__fechar"
|
|
84
|
+
:aria-label="`Sair de ${tituloTour}`"
|
|
85
|
+
@click="sair"
|
|
86
|
+
>
|
|
87
|
+
<!-- md=16px (escala de espaços): sm=8px sumia no botão de 28px. -->
|
|
88
|
+
<acai-ui-icon name="close" size="md" />
|
|
89
|
+
</button>
|
|
90
|
+
</header>
|
|
91
|
+
|
|
92
|
+
<p :id="idTexto" class="acaitour__texto">{{ passoAtual?.text }}</p>
|
|
93
|
+
|
|
94
|
+
<footer class="acaitour__rodape">
|
|
95
|
+
<div class="acaitour__pontos" aria-hidden="true">
|
|
96
|
+
<span
|
|
97
|
+
v-for="(_, indice) in passos"
|
|
98
|
+
:key="indice"
|
|
99
|
+
class="acaitour__ponto"
|
|
100
|
+
:class="{ 'acaitour__ponto--ativo': indice === indiceAtual }"
|
|
101
|
+
/>
|
|
102
|
+
</div>
|
|
103
|
+
|
|
104
|
+
<span class="acaitour__contador">Passo {{ indiceAtual + 1 }} de {{ passos.length }}</span>
|
|
105
|
+
|
|
106
|
+
<!-- Enquanto procura o alvo, o balão DIZ que está procurando e dá
|
|
107
|
+
saída — antes disso "esperando" e "travado" eram a mesma tela. -->
|
|
108
|
+
<div v-if="buscando" class="acaitour__acoes acaitour__busca">
|
|
109
|
+
<span class="acaitour__busca-giro" aria-hidden="true" />
|
|
110
|
+
<span class="acaitour__busca-texto">Procurando…</span>
|
|
111
|
+
<acai-ui-button flat dense color="primary" label="Pular" @click="pularBusca" />
|
|
112
|
+
</div>
|
|
113
|
+
|
|
114
|
+
<div v-else class="acaitour__acoes">
|
|
115
|
+
<acai-ui-button
|
|
116
|
+
v-if="indiceAtual > 0"
|
|
117
|
+
flat
|
|
118
|
+
dense
|
|
119
|
+
color="primary"
|
|
120
|
+
label="Anterior"
|
|
121
|
+
@click="anterior"
|
|
122
|
+
/>
|
|
123
|
+
<acai-ui-button
|
|
124
|
+
dense
|
|
125
|
+
color="primary"
|
|
126
|
+
:label="ehUltimo ? 'Concluir' : 'Próximo'"
|
|
127
|
+
@click="proximo"
|
|
128
|
+
/>
|
|
129
|
+
</div>
|
|
130
|
+
</footer>
|
|
131
|
+
</div>
|
|
132
|
+
|
|
133
|
+
<!-- eMAG: leitor de tela anuncia a troca de passo sem roubar o foco. -->
|
|
134
|
+
<div class="acaitour__anuncio" role="status" aria-live="polite">{{ anuncio }}</div>
|
|
135
|
+
</div>
|
|
136
|
+
</teleport>
|
|
137
|
+
</template>
|
|
138
|
+
|
|
139
|
+
<script setup lang="ts">
|
|
140
|
+
import { computed, nextTick, onBeforeUnmount, ref, watch } from 'vue'
|
|
141
|
+
import AcaiUiButton from '../button/acai-ui-button.vue'
|
|
142
|
+
import AcaiUiIcon from '../icon/acai-ui-icon.vue'
|
|
143
|
+
import { usePreferencias } from '../../hooks/use-preferencias'
|
|
144
|
+
import { useLeituraVoz } from '../../hooks/use-leitura-voz'
|
|
145
|
+
import { scrollParaElemento } from '../../utils/scroll-elemento'
|
|
146
|
+
import {
|
|
147
|
+
ESPERA_PADRAO,
|
|
148
|
+
aguardarAlvo,
|
|
149
|
+
descreverAncora,
|
|
150
|
+
passoSemAncora,
|
|
151
|
+
resolverAlvo,
|
|
152
|
+
} from './tour-registry'
|
|
153
|
+
import {
|
|
154
|
+
centralizarBalao,
|
|
155
|
+
expandirRecorte,
|
|
156
|
+
posicionarBalao,
|
|
157
|
+
type Viewport,
|
|
158
|
+
} from './tour-posicionar'
|
|
159
|
+
import type {
|
|
160
|
+
BalloonPosition,
|
|
161
|
+
SpotlightRect,
|
|
162
|
+
TourProps,
|
|
163
|
+
TourSkip,
|
|
164
|
+
TourSkipReason,
|
|
165
|
+
TourStep,
|
|
166
|
+
} from './acai-ui-help-interface'
|
|
167
|
+
|
|
168
|
+
const props = withDefaults(defineProps<TourProps>(), { startAt: 0 })
|
|
169
|
+
|
|
170
|
+
const emits = defineEmits<{
|
|
171
|
+
/** Chegou ao fim pelo botão "Concluir". */
|
|
172
|
+
(e: 'finish'): void
|
|
173
|
+
/** Saiu antes do fim (Esc, X ou fora de passos). */
|
|
174
|
+
(e: 'exit'): void
|
|
175
|
+
/** Trocou de passo — índice 0-based. */
|
|
176
|
+
(e: 'step', indice: number): void
|
|
177
|
+
/**
|
|
178
|
+
* Um passo não pôde ser mostrado. Emitido SEMPRE (o `console.warn` fica só
|
|
179
|
+
* em DEV): é por aqui que o consumidor instrumenta o tour em produção e
|
|
180
|
+
* descobre que metade dele desapareceu.
|
|
181
|
+
*/
|
|
182
|
+
(e: 'step-skipped', info: TourSkip): void
|
|
183
|
+
}>()
|
|
184
|
+
|
|
185
|
+
const aberto = defineModel<boolean>({ default: false })
|
|
186
|
+
|
|
187
|
+
/** Folga padrão do recorte, em px. */
|
|
188
|
+
const PADDING_PADRAO = 8
|
|
189
|
+
/** Cantos do buraco — casa com o `$radius-lg` dos cards. */
|
|
190
|
+
const RAIO_RECORTE = 8
|
|
191
|
+
|
|
192
|
+
// `Math.random` aqui é só pra evitar colisão de id de máscara SVG quando dois
|
|
193
|
+
// tours coexistem (docs com dois exemplos na mesma página).
|
|
194
|
+
const sufixo = Math.random().toString(36).slice(2, 8)
|
|
195
|
+
const idMascara = `acaitour-mask-${sufixo}`
|
|
196
|
+
const idTitulo = `acaitour-titulo-${sufixo}`
|
|
197
|
+
const idTexto = `acaitour-texto-${sufixo}`
|
|
198
|
+
|
|
199
|
+
const { preferencias } = usePreferencias()
|
|
200
|
+
|
|
201
|
+
// ===================== Leitura em voz alta =====================
|
|
202
|
+
const {
|
|
203
|
+
suportado: vozSuportada,
|
|
204
|
+
temVozPara,
|
|
205
|
+
vozes,
|
|
206
|
+
idLendo,
|
|
207
|
+
alternar: alternarFala,
|
|
208
|
+
parar: pararFala,
|
|
209
|
+
} = useLeituraVoz()
|
|
210
|
+
|
|
211
|
+
const idFalaPasso = `acaitour-voz-${sufixo}`
|
|
212
|
+
const idiomaFala = computed(() => props.audioLang || 'pt-BR')
|
|
213
|
+
|
|
214
|
+
/** Precedência: prop da tela > preferência do usuário > suporte > voz do idioma. */
|
|
215
|
+
const mostrarAudio = computed(() => {
|
|
216
|
+
void vozes.value
|
|
217
|
+
return (
|
|
218
|
+
vozSuportada.value &&
|
|
219
|
+
!props.hideAudio &&
|
|
220
|
+
preferencias.leituraVoz &&
|
|
221
|
+
temVozPara(idiomaFala.value)
|
|
222
|
+
)
|
|
223
|
+
})
|
|
224
|
+
|
|
225
|
+
const lendoPasso = computed(() => idLendo.value === idFalaPasso)
|
|
226
|
+
|
|
227
|
+
function alternarPasso(): void {
|
|
228
|
+
const passo = passos.value[indiceAtual.value]
|
|
229
|
+
if (!passo) return
|
|
230
|
+
// Sem "Passo N de M": o contador está na tela e o leitor de tela já anuncia —
|
|
231
|
+
// repetir em voz vira ruído a cada passo.
|
|
232
|
+
const texto = [passo.title, passo.text].filter(Boolean).join('. ')
|
|
233
|
+
alternarFala(texto, {
|
|
234
|
+
id: idFalaPasso,
|
|
235
|
+
lang: idiomaFala.value,
|
|
236
|
+
voz: preferencias.vozNome,
|
|
237
|
+
rate: preferencias.vozVelocidade,
|
|
238
|
+
})
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* Quanto o tour espera antes de ADMITIR que está procurando. Abaixo disso a
|
|
243
|
+
* troca de passo é percebida como instantânea e o aviso só piscaria.
|
|
244
|
+
*/
|
|
245
|
+
const ESPERA_ATE_AVISAR = 350
|
|
246
|
+
|
|
247
|
+
const indiceAtual = ref(0)
|
|
248
|
+
const alvoEl = ref<HTMLElement | null>(null)
|
|
249
|
+
const recorte = ref<SpotlightRect | null>(null)
|
|
250
|
+
const posicao = ref<BalloonPosition>({ top: 0, left: 0, side: 'bottom' })
|
|
251
|
+
const pronto = ref(false)
|
|
252
|
+
const anuncio = ref('')
|
|
253
|
+
const balaoRef = ref<HTMLElement | null>(null)
|
|
254
|
+
/** Está esperando um alvo aparecer — o balão para de fingir que nada acontece. */
|
|
255
|
+
const buscando = ref(false)
|
|
256
|
+
|
|
257
|
+
/** Quem tinha o foco antes do tour — devolvemos no fim (eMAG 4.3). */
|
|
258
|
+
let focoAnterior: HTMLElement | null = null
|
|
259
|
+
/** Direção da navegação: define pra que lado pular um passo sem alvo. */
|
|
260
|
+
let direcao: 1 | -1 = 1
|
|
261
|
+
let frameAgendado = 0
|
|
262
|
+
let observador: ResizeObserver | null = null
|
|
263
|
+
/**
|
|
264
|
+
* Cada abertura é uma sessão. Uma busca que termina depois do tour fechar (ou
|
|
265
|
+
* depois de um `irPara` mais novo) não pode voltar e aplicar um passo velho.
|
|
266
|
+
*/
|
|
267
|
+
let sessao = 0
|
|
268
|
+
let controleBusca: AbortController | null = null
|
|
269
|
+
let temporizadorAviso = 0
|
|
270
|
+
let buscaCancelada = false
|
|
271
|
+
/** Desfaz a escuta do passo interativo da vez. */
|
|
272
|
+
let desescutarAlvo: (() => void) | null = null
|
|
273
|
+
|
|
274
|
+
const passos = computed<TourStep[]>(() => props.tour.steps ?? [])
|
|
275
|
+
const passoAtual = computed<TourStep | undefined>(() => passos.value[indiceAtual.value])
|
|
276
|
+
const ehUltimo = computed(() => indiceAtual.value >= passos.value.length - 1)
|
|
277
|
+
const tituloTour = computed(() => props.tour.title || 'Aprenda a usar')
|
|
278
|
+
|
|
279
|
+
const semAnimacao = computed(() => {
|
|
280
|
+
if (preferencias.reduzirAnimacoes) return true
|
|
281
|
+
if (typeof window === 'undefined' || !window.matchMedia) return false
|
|
282
|
+
return window.matchMedia('(prefers-reduced-motion: reduce)').matches
|
|
283
|
+
})
|
|
284
|
+
|
|
285
|
+
function janela(): Viewport {
|
|
286
|
+
return { width: window.innerWidth, height: window.innerHeight }
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* As divs que impedem o clique fora do recorte. São 4 faixas cercando o buraco
|
|
291
|
+
* (e não um retângulo furado) porque CSS não recorta área de clique; com
|
|
292
|
+
* `interactive` a peça do centro simplesmente não é renderizada e o clique
|
|
293
|
+
* chega ao elemento.
|
|
294
|
+
*/
|
|
295
|
+
const bloqueios = computed(() => {
|
|
296
|
+
const r = recorte.value
|
|
297
|
+
if (!r) return [{ nome: 'tudo', estilo: { inset: '0' } }]
|
|
298
|
+
|
|
299
|
+
const faixas = [
|
|
300
|
+
{ nome: 'topo', estilo: { top: '0', left: '0', right: '0', height: `${r.top}px` } },
|
|
301
|
+
{
|
|
302
|
+
nome: 'base',
|
|
303
|
+
estilo: { top: `${r.top + r.height}px`, left: '0', right: '0', bottom: '0' },
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
nome: 'esquerda',
|
|
307
|
+
estilo: { top: `${r.top}px`, left: '0', width: `${r.left}px`, height: `${r.height}px` },
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
nome: 'direita',
|
|
311
|
+
estilo: {
|
|
312
|
+
top: `${r.top}px`,
|
|
313
|
+
left: `${r.left + r.width}px`,
|
|
314
|
+
right: '0',
|
|
315
|
+
height: `${r.height}px`,
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
]
|
|
319
|
+
|
|
320
|
+
if (passoAtual.value?.interactive) return faixas
|
|
321
|
+
|
|
322
|
+
return [
|
|
323
|
+
...faixas,
|
|
324
|
+
{
|
|
325
|
+
nome: 'centro',
|
|
326
|
+
estilo: {
|
|
327
|
+
top: `${r.top}px`,
|
|
328
|
+
left: `${r.left}px`,
|
|
329
|
+
width: `${r.width}px`,
|
|
330
|
+
height: `${r.height}px`,
|
|
331
|
+
},
|
|
332
|
+
},
|
|
333
|
+
]
|
|
334
|
+
})
|
|
335
|
+
|
|
336
|
+
/** Deslocamento da setinha pro centro do recorte, mesmo com o balão deslocado. */
|
|
337
|
+
const estiloSeta = computed(() => {
|
|
338
|
+
const r = recorte.value
|
|
339
|
+
if (!r) return {}
|
|
340
|
+
const lado = posicao.value.side
|
|
341
|
+
|
|
342
|
+
if (lado === 'top' || lado === 'bottom') {
|
|
343
|
+
const centro = r.left + r.width / 2 - posicao.value.left
|
|
344
|
+
return { left: `${centro}px` }
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
const centro = r.top + r.height / 2 - posicao.value.top
|
|
348
|
+
return { top: `${centro}px` }
|
|
349
|
+
})
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Recalcula recorte e balão. Roda a cada frame em que algo pode ter mexido:
|
|
353
|
+
* scroll (inclusive o do `.q-page.container-page`), resize e mudança de
|
|
354
|
+
* tamanho do alvo. Sem isso o buraco descola do elemento ao rolar a página.
|
|
355
|
+
*/
|
|
356
|
+
function medir(): void {
|
|
357
|
+
const vp = janela()
|
|
358
|
+
const balao = balaoRef.value?.getBoundingClientRect()
|
|
359
|
+
const tamanhoBalao = { width: balao?.width || 320, height: balao?.height || 160 }
|
|
360
|
+
|
|
361
|
+
if (!alvoEl.value) {
|
|
362
|
+
recorte.value = null
|
|
363
|
+
posicao.value = centralizarBalao(tamanhoBalao, vp)
|
|
364
|
+
pronto.value = true
|
|
365
|
+
return
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const r = alvoEl.value.getBoundingClientRect()
|
|
369
|
+
const bruto: SpotlightRect = { top: r.top, left: r.left, width: r.width, height: r.height }
|
|
370
|
+
const padding = passoAtual.value?.padding ?? PADDING_PADRAO
|
|
371
|
+
|
|
372
|
+
recorte.value = expandirRecorte(bruto, padding, vp)
|
|
373
|
+
posicao.value = posicionarBalao(
|
|
374
|
+
recorte.value,
|
|
375
|
+
tamanhoBalao,
|
|
376
|
+
vp,
|
|
377
|
+
passoAtual.value?.placement ?? 'auto',
|
|
378
|
+
)
|
|
379
|
+
pronto.value = true
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
function agendarMedicao(): void {
|
|
383
|
+
if (frameAgendado) return
|
|
384
|
+
frameAgendado = requestAnimationFrame(() => {
|
|
385
|
+
frameAgendado = 0
|
|
386
|
+
medir()
|
|
387
|
+
})
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
/**
|
|
391
|
+
* Scroll manual TRAVADO durante o tour, de propósito: o usuário fica com o
|
|
392
|
+
* foco exatamente no que o passo ilumina e é o TOUR quem rola a página (o
|
|
393
|
+
* `scrollParaElemento` de cada passo). Sem isso, uma rolada de dedo tira o
|
|
394
|
+
* elemento do recorte e a explicação fica apontando pro nada.
|
|
395
|
+
* `preventDefault` exige listener não-passivo.
|
|
396
|
+
*/
|
|
397
|
+
function bloquearScrollManual(evento: Event): void {
|
|
398
|
+
// Rolagem DENTRO do balão (texto longo em tela baixa) continua permitida.
|
|
399
|
+
if (evento.target instanceof Node && balaoRef.value?.contains(evento.target)) return
|
|
400
|
+
evento.preventDefault()
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
function ligarObservadores(): void {
|
|
404
|
+
window.addEventListener('resize', agendarMedicao)
|
|
405
|
+
// `capture: true` é o que faz o scroll do `.q-page.container-page` chegar
|
|
406
|
+
// aqui — evento de scroll não borbulha, só desce na captura. (Programático
|
|
407
|
+
// dispara `scroll` do mesmo jeito, então a medição acompanha o auto-scroll.)
|
|
408
|
+
window.addEventListener('scroll', agendarMedicao, { capture: true, passive: true })
|
|
409
|
+
document.addEventListener('keydown', aoTeclar, true)
|
|
410
|
+
document.addEventListener('wheel', bloquearScrollManual, { capture: true, passive: false })
|
|
411
|
+
document.addEventListener('touchmove', bloquearScrollManual, { capture: true, passive: false })
|
|
412
|
+
|
|
413
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
414
|
+
observador = new ResizeObserver(agendarMedicao)
|
|
415
|
+
observador.observe(document.body)
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
function desligarObservadores(): void {
|
|
420
|
+
window.removeEventListener('resize', agendarMedicao)
|
|
421
|
+
window.removeEventListener('scroll', agendarMedicao, { capture: true })
|
|
422
|
+
document.removeEventListener('keydown', aoTeclar, true)
|
|
423
|
+
document.removeEventListener('wheel', bloquearScrollManual, { capture: true })
|
|
424
|
+
document.removeEventListener('touchmove', bloquearScrollManual, { capture: true })
|
|
425
|
+
observador?.disconnect()
|
|
426
|
+
observador = null
|
|
427
|
+
if (frameAgendado) cancelAnimationFrame(frameAgendado)
|
|
428
|
+
frameAgendado = 0
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
const SELETOR_FOCAVEL =
|
|
432
|
+
'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
433
|
+
|
|
434
|
+
function focaveis(): HTMLElement[] {
|
|
435
|
+
const doBalao = balaoRef.value
|
|
436
|
+
? [...balaoRef.value.querySelectorAll<HTMLElement>(SELETOR_FOCAVEL)]
|
|
437
|
+
: []
|
|
438
|
+
|
|
439
|
+
// Num passo interativo o alvo entra no ciclo do Tab — senão o usuário não
|
|
440
|
+
// consegue fazer, só teclado, o que o passo está mandando fazer (eMAG 2.1).
|
|
441
|
+
if (!passoAtual.value?.interactive || !alvoEl.value) return doBalao
|
|
442
|
+
|
|
443
|
+
const doAlvo = alvoEl.value.matches(SELETOR_FOCAVEL)
|
|
444
|
+
? [alvoEl.value]
|
|
445
|
+
: [...alvoEl.value.querySelectorAll<HTMLElement>(SELETOR_FOCAVEL)]
|
|
446
|
+
|
|
447
|
+
return [...doAlvo, ...doBalao]
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
function ehCampoDeTexto(el: EventTarget | null): boolean {
|
|
451
|
+
if (!(el instanceof HTMLElement)) return false
|
|
452
|
+
if (el.isContentEditable) return true
|
|
453
|
+
return ['INPUT', 'TEXTAREA', 'SELECT'].includes(el.tagName)
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
function aoTeclar(evento: KeyboardEvent): void {
|
|
457
|
+
if (!aberto.value) return
|
|
458
|
+
|
|
459
|
+
if (evento.key === 'Escape') {
|
|
460
|
+
evento.preventDefault()
|
|
461
|
+
sair()
|
|
462
|
+
return
|
|
463
|
+
}
|
|
464
|
+
|
|
465
|
+
if (evento.key === 'Tab') {
|
|
466
|
+
const lista = focaveis()
|
|
467
|
+
if (lista.length === 0) return
|
|
468
|
+
evento.preventDefault()
|
|
469
|
+
const atual = lista.indexOf(document.activeElement as HTMLElement)
|
|
470
|
+
const passo = evento.shiftKey ? -1 : 1
|
|
471
|
+
const proximoIndice = (atual + passo + lista.length) % lista.length
|
|
472
|
+
lista[proximoIndice]?.focus()
|
|
473
|
+
return
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
// Setas e Enter não podem atropelar quem está digitando num passo interativo.
|
|
477
|
+
if (ehCampoDeTexto(evento.target)) return
|
|
478
|
+
|
|
479
|
+
if (evento.key === 'ArrowRight') {
|
|
480
|
+
evento.preventDefault()
|
|
481
|
+
proximo()
|
|
482
|
+
return
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
if (evento.key === 'ArrowLeft') {
|
|
486
|
+
evento.preventDefault()
|
|
487
|
+
anterior()
|
|
488
|
+
return
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
// Enter só avança quando o foco está no balão em si — num botão, ele já é
|
|
492
|
+
// o "clique" nativo e avançar de novo pularia um passo.
|
|
493
|
+
if (evento.key === 'Enter' && evento.target === balaoRef.value) {
|
|
494
|
+
evento.preventDefault()
|
|
495
|
+
proximo()
|
|
496
|
+
return
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
// Teclas de rolagem — mesmo travamento do wheel/touch: quem rola é o tour.
|
|
500
|
+
// Exceção: Space com foco num botão é o "clique" do teclado (eMAG 2.1) —
|
|
501
|
+
// bloquear mataria o Tab+Space no "Próximo".
|
|
502
|
+
const ehBotao =
|
|
503
|
+
evento.target instanceof HTMLElement && evento.target.closest('button, [role="button"]')
|
|
504
|
+
if (evento.key === ' ' && ehBotao) return
|
|
505
|
+
|
|
506
|
+
if (['ArrowUp', 'ArrowDown', 'PageUp', 'PageDown', 'Home', 'End', ' '].includes(evento.key)) {
|
|
507
|
+
evento.preventDefault()
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
function pularPasso(passo: TourStep, indice: number, motivo: TourSkipReason): void {
|
|
512
|
+
const referencia = descreverAncora(motivo === 'activate-not-found' ? passo.activate! : passo)
|
|
513
|
+
|
|
514
|
+
emits('step-skipped', { index: indice, step: passo, reason: motivo, reference: referencia })
|
|
515
|
+
|
|
516
|
+
if (!import.meta.env.DEV) return
|
|
517
|
+
console.warn(
|
|
518
|
+
`[acai-ui-tour] Passo ${indice + 1} de "${props.tour.id}" foi pulado (${motivo}): ` +
|
|
519
|
+
`"${referencia}" não apareceu no DOM.`,
|
|
520
|
+
)
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
/** O usuário desistiu de esperar — a busca da vez devolve `null` na hora. */
|
|
524
|
+
function pularBusca(): void {
|
|
525
|
+
buscaCancelada = true
|
|
526
|
+
controleBusca?.abort()
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
function encerrarAviso(): void {
|
|
530
|
+
if (temporizadorAviso) window.clearTimeout(temporizadorAviso)
|
|
531
|
+
temporizadorAviso = 0
|
|
532
|
+
buscando.value = false
|
|
533
|
+
controleBusca = null
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* Espera um alvo COM feedback: passado o limiar, o balão troca as ações por
|
|
538
|
+
* "Procurando…" + "Pular". Antes disso o tour ficava parado e indistinguível
|
|
539
|
+
* de travado — e o `waitFor` de cada passo somava em silêncio.
|
|
540
|
+
*/
|
|
541
|
+
async function procurarComAviso(
|
|
542
|
+
ancora: Parameters<typeof aguardarAlvo>[0],
|
|
543
|
+
timeout: number,
|
|
544
|
+
): Promise<HTMLElement | null> {
|
|
545
|
+
const imediato = resolverAlvo(ancora)
|
|
546
|
+
if (imediato) return imediato
|
|
547
|
+
|
|
548
|
+
buscaCancelada = false
|
|
549
|
+
controleBusca = new AbortController()
|
|
550
|
+
temporizadorAviso = window.setTimeout(() => {
|
|
551
|
+
buscando.value = true
|
|
552
|
+
anuncio.value = 'Procurando o próximo passo.'
|
|
553
|
+
}, ESPERA_ATE_AVISAR)
|
|
554
|
+
|
|
555
|
+
try {
|
|
556
|
+
return await aguardarAlvo(ancora, timeout, controleBusca.signal)
|
|
557
|
+
} finally {
|
|
558
|
+
encerrarAviso()
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
/**
|
|
563
|
+
* Abre o que o passo vai explicar, ANTES de procurar o alvo: `before` (código
|
|
564
|
+
* do consumidor) e `activate` (um clique que o próprio tour dá). É o que evita
|
|
565
|
+
* transformar um tour que atravessa abas numa corrida de cliques obrigatórios.
|
|
566
|
+
*
|
|
567
|
+
* Devolve `false` quando havia `activate` e o gatilho não apareceu — o passo
|
|
568
|
+
* ainda é tentado, mas o motivo do skip fica correto se ele falhar.
|
|
569
|
+
*/
|
|
570
|
+
async function prepararPasso(passo: TourStep): Promise<boolean> {
|
|
571
|
+
if (passo.before) {
|
|
572
|
+
try {
|
|
573
|
+
await passo.before()
|
|
574
|
+
} catch (erro) {
|
|
575
|
+
if (import.meta.env.DEV) console.warn(`[acai-ui-tour] "before" do passo falhou:`, erro)
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
const ativar = passo.activate
|
|
580
|
+
if (!ativar) return true
|
|
581
|
+
|
|
582
|
+
// Alvo já à vista: acionar de novo FECHARIA o que está aberto (aba e
|
|
583
|
+
// expansion são toggle). Por isso a ativação é condicional por padrão.
|
|
584
|
+
if (!ativar.always && !passoSemAncora(passo) && resolverAlvo(passo)) return true
|
|
585
|
+
|
|
586
|
+
const gatilho = await procurarComAviso(ativar, ativar.waitFor ?? passo.waitFor ?? ESPERA_PADRAO)
|
|
587
|
+
if (!gatilho) return false
|
|
588
|
+
|
|
589
|
+
gatilho.click()
|
|
590
|
+
await nextTick()
|
|
591
|
+
return true
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
async function irPara(indice: number): Promise<void> {
|
|
595
|
+
if (indice < 0) return
|
|
596
|
+
if (indice >= passos.value.length) return concluir()
|
|
597
|
+
|
|
598
|
+
const passo = passos.value[indice]!
|
|
599
|
+
// Toda navegação nova invalida a anterior: a última ganha, e uma busca ainda
|
|
600
|
+
// pendente não volta depois pra aplicar um passo que já não é o da vez.
|
|
601
|
+
const minhaSessao = ++sessao
|
|
602
|
+
controleBusca?.abort()
|
|
603
|
+
|
|
604
|
+
const ativou = await prepararPasso(passo)
|
|
605
|
+
// O tour fechou (ou outro `irPara` assumiu) enquanto isto acontecia.
|
|
606
|
+
if (minhaSessao !== sessao) return
|
|
607
|
+
|
|
608
|
+
if (passoSemAncora(passo)) {
|
|
609
|
+
alvoEl.value = null
|
|
610
|
+
aplicarPasso(indice)
|
|
611
|
+
return
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
const el = await procurarComAviso(passo, passo.waitFor ?? ESPERA_PADRAO)
|
|
615
|
+
if (minhaSessao !== sessao) return
|
|
616
|
+
|
|
617
|
+
if (!el) {
|
|
618
|
+
const motivo: TourSkipReason = buscaCancelada
|
|
619
|
+
? 'cancelled'
|
|
620
|
+
: ativou
|
|
621
|
+
? 'target-not-found'
|
|
622
|
+
: 'activate-not-found'
|
|
623
|
+
pularPasso(passo, indice, motivo)
|
|
624
|
+
|
|
625
|
+
const seguinte = indice + direcao
|
|
626
|
+
// Pulou o primeiro andando pra trás: não há pra onde ir, fica onde está.
|
|
627
|
+
if (seguinte < 0) return
|
|
628
|
+
return irPara(seguinte)
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
scrollParaElemento(el, undefined, semAnimacao.value ? 'auto' : 'smooth')
|
|
632
|
+
alvoEl.value = el
|
|
633
|
+
aplicarPasso(indice)
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* Passo interativo avança na AÇÃO, não no botão. A instrução "clique em
|
|
638
|
+
* Pesquisar" prometia isso desde sempre: liberar o clique e deixar o índice
|
|
639
|
+
* parado significa que quem obedece o passo vê o tour congelado.
|
|
640
|
+
* Escuta na fase de bolha — o handler do app roda primeiro.
|
|
641
|
+
*/
|
|
642
|
+
function escutarAlvoInterativo(): void {
|
|
643
|
+
desescutarAlvo?.()
|
|
644
|
+
desescutarAlvo = null
|
|
645
|
+
|
|
646
|
+
const passo = passoAtual.value
|
|
647
|
+
const el = alvoEl.value
|
|
648
|
+
if (!el || !passo?.interactive || passo.advanceOn === 'manual') return
|
|
649
|
+
|
|
650
|
+
const aoAgir = (): void => {
|
|
651
|
+
// Solta a escuta na hora: dois cliques seguidos no mesmo elemento não
|
|
652
|
+
// podem virar dois avanços.
|
|
653
|
+
desescutarAlvo?.()
|
|
654
|
+
desescutarAlvo = null
|
|
655
|
+
// Cede um tick pro efeito do clique acontecer (trocar de aba, buscar)
|
|
656
|
+
// antes de procurar o alvo do passo seguinte.
|
|
657
|
+
window.setTimeout(() => {
|
|
658
|
+
if (aberto.value) proximo()
|
|
659
|
+
}, 0)
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
el.addEventListener('click', aoAgir)
|
|
663
|
+
desescutarAlvo = (): void => el.removeEventListener('click', aoAgir)
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
function aplicarPasso(indice: number): void {
|
|
667
|
+
// Cala ANTES de reescrever o anúncio: a fala é do passo velho, e o `aria-live`
|
|
668
|
+
// abaixo vai anunciar o passo novo. Nessa ordem os dois nunca se atropelam.
|
|
669
|
+
pararFala()
|
|
670
|
+
|
|
671
|
+
indiceAtual.value = indice
|
|
672
|
+
pronto.value = false
|
|
673
|
+
emits('step', indice)
|
|
674
|
+
|
|
675
|
+
const passo = passos.value[indice]
|
|
676
|
+
anuncio.value = `Passo ${indice + 1} de ${passos.value.length}. ${passo?.title ?? ''} ${passo?.text ?? ''}`.trim()
|
|
677
|
+
|
|
678
|
+
escutarAlvoInterativo()
|
|
679
|
+
|
|
680
|
+
void nextTick(() => {
|
|
681
|
+
medir()
|
|
682
|
+
// Segunda medição no frame seguinte: na primeira o balão ainda não tem o
|
|
683
|
+
// tamanho final (texto do passo novo), e o flip sairia com a altura velha.
|
|
684
|
+
agendarMedicao()
|
|
685
|
+
if (!passo?.interactive) balaoRef.value?.focus({ preventScroll: true })
|
|
686
|
+
})
|
|
687
|
+
}
|
|
688
|
+
|
|
689
|
+
function proximo(): void {
|
|
690
|
+
direcao = 1
|
|
691
|
+
void irPara(indiceAtual.value + 1)
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
function anterior(): void {
|
|
695
|
+
direcao = -1
|
|
696
|
+
void irPara(indiceAtual.value - 1)
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
function encerrar(): void {
|
|
700
|
+
pararFala()
|
|
701
|
+
aberto.value = false
|
|
702
|
+
// Invalida qualquer busca em voo — sem isto um alvo que aparece depois do
|
|
703
|
+
// fim reabriria o passo em cima de uma tela que já seguiu adiante.
|
|
704
|
+
sessao++
|
|
705
|
+
controleBusca?.abort()
|
|
706
|
+
encerrarAviso()
|
|
707
|
+
desescutarAlvo?.()
|
|
708
|
+
desescutarAlvo = null
|
|
709
|
+
desligarObservadores()
|
|
710
|
+
alvoEl.value = null
|
|
711
|
+
recorte.value = null
|
|
712
|
+
pronto.value = false
|
|
713
|
+
focoAnterior?.focus({ preventScroll: true })
|
|
714
|
+
focoAnterior = null
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
function concluir(): void {
|
|
718
|
+
encerrar()
|
|
719
|
+
emits('finish')
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
function sair(): void {
|
|
723
|
+
encerrar()
|
|
724
|
+
emits('exit')
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
function iniciar(): void {
|
|
728
|
+
focoAnterior = document.activeElement instanceof HTMLElement ? document.activeElement : null
|
|
729
|
+
direcao = 1
|
|
730
|
+
ligarObservadores()
|
|
731
|
+
void irPara(Math.min(Math.max(props.startAt, 0), Math.max(passos.value.length - 1, 0)))
|
|
732
|
+
}
|
|
733
|
+
|
|
734
|
+
// `immediate` porque o caso normal é o pai montar o componente já com o
|
|
735
|
+
// v-model em `true` — sem ele o watcher nunca dispara e o tour não começa.
|
|
736
|
+
watch(
|
|
737
|
+
aberto,
|
|
738
|
+
ativo => {
|
|
739
|
+
if (ativo) {
|
|
740
|
+
if (passos.value.length === 0) {
|
|
741
|
+
aberto.value = false
|
|
742
|
+
emits('exit')
|
|
743
|
+
return
|
|
744
|
+
}
|
|
745
|
+
void nextTick(iniciar)
|
|
746
|
+
} else {
|
|
747
|
+
desligarObservadores()
|
|
748
|
+
}
|
|
749
|
+
},
|
|
750
|
+
{ immediate: true },
|
|
751
|
+
)
|
|
752
|
+
|
|
753
|
+
onBeforeUnmount(() => {
|
|
754
|
+
pararFala()
|
|
755
|
+
sessao++
|
|
756
|
+
controleBusca?.abort()
|
|
757
|
+
encerrarAviso()
|
|
758
|
+
desescutarAlvo?.()
|
|
759
|
+
desescutarAlvo = null
|
|
760
|
+
desligarObservadores()
|
|
761
|
+
})
|
|
762
|
+
|
|
763
|
+
defineExpose({ proximo, anterior, sair, irPara, pularBusca })
|
|
764
|
+
</script>
|
|
765
|
+
|
|
766
|
+
<style lang="scss" src="./acai-ui-tour-styles.scss" />
|