@trismegisto/angular 2.1.2 → 3.0.0

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.
Files changed (33) hide show
  1. package/fesm2022/trismegisto-angular-data-grid.mjs +32 -18
  2. package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
  3. package/fesm2022/trismegisto-angular-i18n.mjs +22 -2
  4. package/fesm2022/trismegisto-angular-i18n.mjs.map +1 -1
  5. package/fesm2022/trismegisto-angular-list-editor.mjs +320 -0
  6. package/fesm2022/trismegisto-angular-list-editor.mjs.map +1 -0
  7. package/fesm2022/trismegisto-angular-motion.mjs +58 -4
  8. package/fesm2022/trismegisto-angular-motion.mjs.map +1 -1
  9. package/fesm2022/trismegisto-angular-reorder-list.mjs +5 -3
  10. package/fesm2022/trismegisto-angular-reorder-list.mjs.map +1 -1
  11. package/fesm2022/trismegisto-angular-settings.mjs +11 -2
  12. package/fesm2022/trismegisto-angular-settings.mjs.map +1 -1
  13. package/fesm2022/trismegisto-angular-zoom.mjs +16 -1
  14. package/fesm2022/trismegisto-angular-zoom.mjs.map +1 -1
  15. package/fesm2022/trismegisto-angular.mjs +3 -2
  16. package/fesm2022/trismegisto-angular.mjs.map +1 -1
  17. package/package.json +9 -5
  18. package/types/trismegisto-angular-data-grid.d.ts +18 -9
  19. package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
  20. package/types/trismegisto-angular-i18n.d.ts +20 -1
  21. package/types/trismegisto-angular-i18n.d.ts.map +1 -1
  22. package/types/trismegisto-angular-list-editor.d.ts +167 -0
  23. package/types/trismegisto-angular-list-editor.d.ts.map +1 -0
  24. package/types/trismegisto-angular-motion.d.ts +32 -1
  25. package/types/trismegisto-angular-motion.d.ts.map +1 -1
  26. package/types/trismegisto-angular-reorder-list.d.ts +3 -1
  27. package/types/trismegisto-angular-reorder-list.d.ts.map +1 -1
  28. package/types/trismegisto-angular-settings.d.ts +4 -1
  29. package/types/trismegisto-angular-settings.d.ts.map +1 -1
  30. package/types/trismegisto-angular-zoom.d.ts +9 -0
  31. package/types/trismegisto-angular-zoom.d.ts.map +1 -1
  32. package/types/trismegisto-angular.d.ts +3 -2
  33. package/types/trismegisto-angular.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-settings.mjs","sources":["../../src/settings/settings.context.ts","../../src/settings/icons.generated.ts","../../src/settings/settings-row.component.ts","../../src/settings/settings-section.component.ts","../../src/settings/settings-dialog.component.ts","../../src/settings/settings-dialog.component.html","../../src/settings/index.ts","../../src/settings/trismegisto-angular-settings.ts"],"sourcesContent":["import { InjectionToken, Signal } from '@angular/core';\n\n/** O que `hm-settings-section`/`hm-settings-row` precisam saber do diálogo em volta. Token (e não\n * o componente) para os três arquivos não se importarem em ciclo. */\nexport interface SettingsDialogContext {\n /** Termo da busca, já normalizado (minúsculo, sem acento). Vazio = sem busca. */\n readonly query: Signal<string>;\n /** Chave da seção aberta (resolvida: nunca vazia enquanto houver seção). */\n readonly activeKey: Signal<string>;\n /** Já houve uma tentativa de envio (OK) desde a abertura: seção inválida mostra o erro mesmo intocada. */\n readonly attempted: Signal<boolean>;\n}\n\n/**\n * OK/Cancelar do modo formulário do `hm-settings-dialog`. Cada função devolve se a janela pode\n * fechar — síncrona ou `Promise`, e enquanto a `Promise` não resolve o botão carrega e a janela\n * trava.\n * - `onSubmit`: chamado no OK depois que todas as seções passaram na validação (salvar no servidor).\n * `false` mantém aberto em silêncio; rejeitar mantém aberto e mostra a mensagem de falha do catálogo.\n * - `onCancel`: chamado no Cancelar, no X e no Esc (perguntar antes de descartar, por exemplo).\n */\nexport interface HermesSettingsCloseHandler {\n readonly onSubmit?: () => boolean | Promise<boolean>;\n readonly onCancel?: () => boolean | Promise<boolean>;\n}\n\nexport interface SettingsSectionContext {\n /** O rótulo/palavras-chave da SEÇÃO casam com a busca: todas as linhas dela aparecem. */\n readonly matchesSelf: Signal<boolean>;\n}\n\nexport const SETTINGS_DIALOG = new InjectionToken<SettingsDialogContext>('SETTINGS_DIALOG');\nexport const SETTINGS_SECTION = new InjectionToken<SettingsSectionContext>('SETTINGS_SECTION');\n\n/** Minúsculo e sem acento: \"Aparência\" casa com \"aparencia\". */\nexport function normalizeSettingsText(text: string): string {\n return text.normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase().trim();\n}\n\n/** Todas as palavras da busca aparecem no texto (em qualquer ordem). */\nexport function settingsTextMatches(query: string, ...texts: string[]): boolean {\n if (!query) return true;\n const haystack = normalizeSettingsText(texts.join(' '));\n return query.split(/\\s+/).every((word) => haystack.includes(word));\n}\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(SETTINGS_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_COG,\n ICON_EXCLAMATION_CIRCLE,\n ICON_SEARCH,\n ICON_TIMES,\n} from '@trismegisto/angular/icon';\n\nexport const SETTINGS_ICONS: readonly RegisteredIcon[] = [ICON_COG, ICON_EXCLAMATION_CIRCLE, ICON_SEARCH, ICON_TIMES];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { SETTINGS_DIALOG, SETTINGS_SECTION, settingsTextMatches } from './settings.context';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SETTINGS_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * Uma preferência dentro de `hm-settings-section`: nome e explicação à esquerda, controle\n * (`hm-segmented-control`, `hm-switch`, `hm-select`, botão...) à direita — a linha típica de um painel de\n * configurações. `stacked` põe o controle embaixo do texto, para controles largos\n * (grade de cores, tabela).\n *\n * Some sozinha quando há busca no diálogo e nem o rótulo, nem a descrição, nem `keywords` casam\n * (a não ser que a própria seção case — aí a seção inteira aparece). Fora de um diálogo, é só uma\n * linha de layout.\n */\n@Component({\n selector: 'hm-settings-row',\n template: `\n <div class=\"hm-settings-row__text\">\n <span class=\"hm-settings-row__label\" [id]=\"labelId\">{{ label() }}</span>\n @if (description()) {\n <span class=\"hm-settings-row__description\">{{ description() }}</span>\n }\n <ng-content select=\"[rowDescription]\" />\n </div>\n <div class=\"hm-settings-row__control\" role=\"group\" [attr.aria-labelledby]=\"labelId\">\n <ng-content />\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hm-settings-row',\n '[class.hm-settings-row--stacked]': 'stacked()',\n '[hidden]': '!visible()',\n },\n})\nexport class SettingsRowComponent {\n readonly #icons = useHermesIcons(SETTINGS_ICONS);\n readonly label = input.required<string>();\n readonly description = input('');\n /** Termos extras que também acham esta linha na busca (sinônimos, nome antigo da opção). */\n readonly keywords = input('');\n readonly stacked = input(false, { transform: booleanAttribute });\n\n private readonly dialog = inject(SETTINGS_DIALOG, { optional: true });\n private readonly section = inject(SETTINGS_SECTION, { optional: true });\n\n protected readonly labelId = `hm-settings-row-${++sequence}`;\n\n /** Casa com a busca por conta própria (sem contar a seção). */\n readonly matches = computed(() =>\n settingsTextMatches(this.dialog?.query() ?? '', this.label(), this.description(), this.keywords()),\n );\n\n readonly visible = computed(() => this.matches() || !!this.section?.matchesSelf());\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport type { AbstractControl } from '@angular/forms';\nimport { SettingsRowComponent } from './settings-row.component';\nimport { SETTINGS_DIALOG, SETTINGS_SECTION, SettingsSectionContext, settingsTextMatches } from './settings.context';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SETTINGS_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * Uma seção do `hm-settings-dialog` (\"Aparência\", \"Atalhos\"...). O diálogo monta a navegação\n * lateral a partir delas — `key`, `label` e `icon` viram o item do menu; não existe lista de\n * seções separada para manter em sincronia.\n *\n * Sem busca, só a seção ativa aparece. Com busca, aparecem as seções com alguma linha que case\n * (só essas linhas) ou cujo `label`/`keywords` case (inteiras). Conteúdo que não é\n * `hm-settings-row` (texto solto, tabela) só é achado pelo `label`/`keywords` da seção.\n *\n * Validação (modo formulário do diálogo, com OK/Cancelar): `control` liga a seção a um\n * `FormGroup`/`AbstractControl` — inválido depois de tocado (ou depois de um OK) marca a seção na\n * navegação e impede o OK; `invalid` força o erro por regra que não cabe num formulário.\n */\n@Component({\n selector: 'hm-settings-section',\n template: `\n <div class=\"hm-settings-section__header\">\n <h3 class=\"hm-settings-section__heading\" [id]=\"headingId\" tabindex=\"-1\">{{ label() }}</h3>\n @if (description()) {\n <p class=\"hm-settings-section__description\">{{ description() }}</p>\n }\n </div>\n <ng-content />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: SETTINGS_SECTION, useExisting: forwardRef(() => SettingsSectionComponent) }],\n host: {\n class: 'hm-settings-section',\n '[hidden]': '!visible()',\n },\n})\nexport class SettingsSectionComponent implements SettingsSectionContext {\n readonly #icons = useHermesIcons(SETTINGS_ICONS);\n /** Identificador estável (também o que `activeSection` do diálogo recebe). */\n readonly key = input.required<string>();\n readonly label = input.required<string>();\n readonly icon = input('cog');\n readonly description = input('');\n /** Termos extras que acham a seção inteira na busca. */\n readonly keywords = input('');\n /** Formulário da seção: inválido impede o OK do diálogo e marca a seção na navegação. */\n readonly control = input<AbstractControl | null>(null);\n /** Força a seção como inválida (regra de fora do formulário, recusa do servidor). */\n readonly invalid = input(false, { transform: booleanAttribute });\n\n /** @internal Alvo do foco quando o OK abre esta seção para corrigir. */\n readonly headingId = `hm-settings-section-${++sequence}`;\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Muda a cada evento do formulário (valor, situação, tocado): o estado dele não é signal. */\n private readonly controlVersion = signal(0);\n\n private readonly dialog = inject(SETTINGS_DIALOG, { optional: true });\n private readonly rows = contentChildren(SettingsRowComponent, { descendants: true });\n\n readonly matchesSelf = computed(() => {\n const query = this.dialog?.query() ?? '';\n return !!query && settingsTextMatches(query, this.label(), this.keywords());\n });\n\n /** Tem algo para mostrar na busca atual. */\n readonly hasMatches = computed(() => this.matchesSelf() || this.rows().some((row) => row.matches()));\n\n /**\n * A navegação marca a seção como com erro: `invalid` sempre; `control` inválido só depois de tocado\n * ou de uma tentativa de OK (não grita erro em formulário que a pessoa nem abriu).\n */\n readonly hasError = computed(() => {\n this.controlVersion();\n if (this.invalid()) return true;\n const control = this.control();\n return !!control && control.invalid && (control.touched || !!this.dialog?.attempted());\n });\n\n constructor() {\n effect((onCleanup) => {\n const control = this.control();\n if (!control) return;\n const subscription = control.events.subscribe(() => this.controlVersion.update((v) => v + 1));\n onCleanup(() => subscription.unsubscribe());\n });\n }\n\n /**\n * @internal Validação para o OK: marca tudo como tocado (as mensagens dos campos aparecem) e espera\n * validador assíncrono pendente. `true` = pode enviar.\n */\n async validate(): Promise<boolean> {\n const control = this.control();\n if (control) {\n control.markAllAsTouched();\n if (control.pending) {\n await new Promise<void>((resolve) => {\n const subscription = control.statusChanges.subscribe((status) => {\n if (status !== 'PENDING') {\n subscription.unsubscribe();\n resolve();\n }\n });\n });\n }\n this.controlVersion.update((v) => v + 1);\n }\n return !this.invalid() && !control?.invalid;\n }\n\n /** @internal Leva o foco ao primeiro campo inválido da seção (ou ao título dela). */\n focusFirstInvalid(): void {\n const root = this.host.nativeElement;\n const field = root.querySelector<HTMLElement>(\n '[aria-invalid=\"true\"], input.ng-invalid, textarea.ng-invalid, select.ng-invalid',\n );\n (field ?? root.querySelector<HTMLElement>(`#${this.headingId}`))?.focus();\n }\n\n readonly visible = computed(() => {\n if (!this.dialog) return true;\n return this.dialog.query() ? this.hasMatches() : this.dialog.activeKey() === this.key();\n });\n}\n","import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DOCUMENT,\n effect,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { activateOverlay, handleOverlayKeydown, formatMessage } from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { ButtonComponent } from '@trismegisto/angular/button';\nimport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nimport { IconComponent } from '@trismegisto/angular/icon';\nimport { SettingsSectionComponent } from './settings-section.component';\nimport {\n HermesSettingsCloseHandler,\n SETTINGS_DIALOG,\n SettingsDialogContext,\n normalizeSettingsText,\n} from './settings.context';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SETTINGS_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * `key` de uma seção, ou nada enquanto ela ainda não recebeu o valor. Seção vinda de `@for`/`@if` no\n * conteúdo (ex.: as do app em `provideSettingsSection`, no spine) entra na consulta antes de a view\n * dela atualizar os inputs, e o `[hidden]` de outra seção já lê `activeKey` nesse meio-tempo — ler o\n * `input.required` cru estourava NG0950 e derrubava a abertura do diálogo. A leitura registra a\n * dependência mesmo quando falha: quando o `key` chega, `activeKey` recalcula.\n */\nfunction sectionKey(section: SettingsSectionComponent): string[] {\n try {\n return [section.key()];\n } catch {\n return [];\n }\n}\n\n/**\n * Painel de configurações em janela grande, no formato de preferências de app de desktop: busca\n * e seções à esquerda, a seção escolhida à direita, tudo aplicado na hora (sem botão de salvar).\n *\n * O conteúdo são `hm-settings-section` com `hm-settings-row` dentro; a navegação, a busca (que\n * atravessa todas as seções e mostra só as linhas que casam) e o estado vazio vêm prontos. Mesma\n * base de acessibilidade do `hm-modal` (foco preso, Esc, foco devolvido a quem abriu); diferente\n * dele, clicar fora fecha — aqui não há formulário a perder, cada mudança já foi aplicada.\n *\n * Abaixo de 768px ocupa a tela e a navegação vira uma faixa rolável no topo.\n *\n * **Modo formulário** (`closeHandler` ou `actions`) — rodapé Cancelar/Salvar, e nada é dado como\n * aplicado até o OK.\n * - Cada seção pode ter `control` (`FormGroup`) ou `invalid`; seção inválida ganha ícone e o texto\n * \"Com erro\" na navegação. O OK valida TODAS as seções; havendo erro, abre a primeira inválida, leva\n * o foco ao primeiro campo com erro, anuncia e não envia.\n * - Tudo válido: chama `closeHandler.onSubmit` (síncrono ou `Promise<boolean>`). Enquanto espera, o\n * Salvar carrega e Cancelar/X/Esc travam; `true` fecha e emite `submitted`, `false` fica aberto, e uma\n * rejeição fica aberta com a mensagem de falha (`role=\"alert\"`) no rodapé.\n * - Cancelar, X e Esc passam por `closeHandler.onCancel` (se houver); clicar fora não fecha — há\n * formulário a perder.\n *\n * ```html\n * <hm-settings-dialog heading=\"Conta\" [(open)]=\"aberto\" [closeHandler]=\"handler\">\n * <hm-settings-section key=\"perfil\" label=\"Perfil\" [control]=\"perfil\">…</hm-settings-section>\n * </hm-settings-dialog>\n * <!-- handler = { onSubmit: () => firstValueFrom(this.api.salvar(...)).then(() => true) } -->\n * ```\n */\n@Component({\n selector: 'hm-settings-dialog',\n imports: [IconComponent, IconButtonComponent, ButtonComponent],\n templateUrl: './settings-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: SETTINGS_DIALOG, useExisting: forwardRef(() => SettingsDialogComponent) }],\n})\nexport class SettingsDialogComponent implements SettingsDialogContext {\n readonly #icons = useHermesIcons(SETTINGS_ICONS);\n /** Visibilidade. Two-way: fecha no Esc, no X e no clique fora. */\n readonly open = model.required<boolean>();\n /** Título (topo da navegação) e rótulo acessível da janela. */\n readonly heading = input.required<string>();\n /** Seção aberta (`key` de uma `hm-settings-section`). Vazio = a primeira. Two-way. */\n readonly activeSection = model('');\n\n /**\n * Modo formulário: OK/Cancelar que decidem se a janela fecha (síncrono ou `Promise<boolean>`). Ver\n * `HermesSettingsCloseHandler`. Sem ele (e sem `actions`), tudo é aplicado na hora, como antes.\n */\n readonly closeHandler = input<HermesSettingsCloseHandler | null>(null);\n /** Mostra o rodapé Cancelar/Salvar mesmo sem `closeHandler` (validação por seção e fecha no OK). */\n readonly actions = input(false, { transform: booleanAttribute });\n /** Rótulos do rodapé. Vazio = catálogo. */\n readonly submitLabel = input('');\n readonly cancelLabel = input('');\n\n readonly closed = output<void>();\n /** OK com todas as seções válidas e `onSubmit` aceito: a janela fechou salvando. */\n readonly submitted = output<void>();\n\n private readonly messages = inject(HERMES_MESSAGES);\n /** Lido do catálogo a cada uso (troca de idioma sem recarregar). */\n protected get text() {\n return this.messages.settings;\n }\n protected readonly noResultsText = computed(() => formatMessage(this.text.noResults, { term: this.rawQuery() }));\n protected readonly headingId = `hm-settings-heading-${++sequence}`;\n\n protected readonly sections = contentChildren(SettingsSectionComponent, { descendants: true });\n\n /** O que está digitado na busca, como digitado (o input mostra isto). */\n protected readonly rawQuery = signal('');\n readonly query = computed(() => normalizeSettingsText(this.rawQuery()));\n\n readonly activeKey = computed(() => {\n const keys = this.sections().flatMap(sectionKey);\n return keys.includes(this.activeSection()) ? this.activeSection() : (keys[0] ?? '');\n });\n\n /** Na busca, só as seções com resultado; fora dela, todas. */\n protected readonly navSections = computed(() =>\n this.query() ? this.sections().filter((s) => s.hasMatches()) : this.sections(),\n );\n\n protected readonly noResults = computed(() => !!this.query() && this.navSections().length === 0);\n\n /** Rodapé Cancelar/Salvar presente. */\n protected readonly hasActions = computed(() => this.actions() || !!this.closeHandler());\n readonly attempted = signal(false);\n /** Um `closeHandler` (ou a validação assíncrona do OK) em curso: a janela trava. */\n protected readonly busy = signal(false);\n /** O OK é que está esperando (ele carrega; o Cancelar só desabilita). */\n protected readonly submitting = signal(false);\n protected readonly submitError = signal('');\n protected readonly announcement = signal('');\n\n private readonly injector = inject(Injector);\n private readonly windowRef = viewChild<ElementRef<HTMLElement>>('windowEl');\n private readonly contentRef = viewChild<ElementRef<HTMLElement>>('contentEl');\n private readonly document = inject(DOCUMENT);\n\n constructor() {\n afterRenderEffect((onCleanup) => {\n const win = this.windowRef()?.nativeElement;\n if (!this.open() || !win) return;\n onCleanup(activateOverlay(win, this.document));\n });\n\n // Fechou: a próxima abertura começa sem busca (o que ficou digitado não tem mais contexto).\n effect(() => {\n if (!this.open()) {\n this.rawQuery.set('');\n this.attempted.set(false);\n this.submitError.set('');\n this.announcement.set('');\n }\n });\n\n // Trocou de seção ou de busca: o conteúdo volta ao topo, não fica no meio da seção anterior.\n effect(() => {\n this.activeKey();\n this.query();\n this.contentRef()?.nativeElement.scrollTo({ top: 0 });\n });\n }\n\n protected selectSection(key: string): void {\n this.rawQuery.set('');\n this.activeSection.set(key);\n }\n\n protected isCurrent(key: string): boolean {\n return !this.query() && this.activeKey() === key;\n }\n\n protected onSearch(value: string): void {\n this.rawQuery.set(value);\n }\n\n /** X, Esc e (sem rodapé) clique fora. No modo formulário, é o Cancelar. */\n protected close(): void {\n if (!this.open()) return;\n if (this.hasActions()) {\n void this.cancel();\n return;\n }\n this.finishClose();\n }\n\n /** Clique no véu: só fecha no modo de aplicação imediata (no formulário, perderia o preenchido). */\n protected onBackdropClick(): void {\n if (!this.hasActions()) this.close();\n }\n\n /** Cancelar (botão, X, Esc): pergunta ao `onCancel`, se houver. */\n protected async cancel(): Promise<void> {\n if (!this.open() || this.busy()) return;\n const handler = this.closeHandler()?.onCancel;\n if (handler) {\n this.busy.set(true);\n try {\n if (!(await handler())) return;\n } catch {\n return;\n } finally {\n this.busy.set(false);\n }\n }\n this.finishClose();\n }\n\n /**\n * OK: valida todas as seções; com erro, abre a primeira inválida e não envia. Válido, chama o\n * `onSubmit` e fecha se ele aceitar.\n */\n protected async submit(): Promise<void> {\n if (!this.open() || this.busy()) return;\n this.submitError.set('');\n this.attempted.set(true);\n this.busy.set(true);\n this.submitting.set(true);\n try {\n const sections = this.sections();\n const results = await Promise.all(sections.map((section) => section.validate()));\n const firstInvalid = sections[results.indexOf(false)];\n if (firstInvalid) {\n this.rawQuery.set('');\n this.activeSection.set(firstInvalid.key());\n this.announcement.set(formatMessage(this.text.invalidAnnounce, { label: firstInvalid.label() }));\n afterNextRender(() => firstInvalid.focusFirstInvalid(), { injector: this.injector });\n return;\n }\n const handler = this.closeHandler()?.onSubmit;\n if (handler && !(await handler())) return;\n this.finishClose();\n this.submitted.emit();\n } catch {\n this.submitError.set(this.text.submitError);\n } finally {\n this.busy.set(false);\n this.submitting.set(false);\n }\n }\n\n private finishClose(): void {\n this.open.set(false);\n this.closed.emit();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n // Esc com busca preenchida limpa a busca primeiro (como em paletas de busca); o segundo Esc fecha.\n if (event.key === 'Escape' && this.busy()) {\n // Salvando: Esc não fecha nem cancela por baixo de uma requisição em curso.\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n if (event.key === 'Escape' && this.rawQuery()) {\n event.preventDefault();\n event.stopPropagation();\n this.rawQuery.set('');\n return;\n }\n handleOverlayKeydown(event, this.windowRef()?.nativeElement, this.document, () => this.close());\n }\n}\n","@if (open()) {\n <div class=\"hm-settings\" (keydown)=\"onKeydown($event)\">\n <div class=\"hm-settings__backdrop\" aria-hidden=\"true\" (click)=\"onBackdropClick()\"></div>\n\n <div\n #windowEl\n class=\"hm-settings__window\"\n [class.hm-settings__window--actions]=\"hasActions()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"headingId\"\n tabindex=\"-1\"\n >\n <aside class=\"hm-settings__nav\">\n <h2 class=\"hm-settings__heading\" [id]=\"headingId\">{{ heading() }}</h2>\n\n <label class=\"hm-settings__search\">\n <hm-icon class=\"hm-settings__search-icon\" shape=\"search\" />\n <input\n type=\"search\"\n class=\"hm-settings__search-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [value]=\"rawQuery()\"\n (input)=\"onSearch($any($event.target).value)\"\n />\n </label>\n\n <nav class=\"hm-settings__sections\" [attr.aria-label]=\"text.sections\">\n <ul class=\"hm-settings__section-list\">\n @for (section of navSections(); track section.key()) {\n <li>\n <button\n type=\"button\"\n class=\"hm-settings__section-link\"\n [class.hm-settings__section-link--invalid]=\"section.hasError()\"\n [attr.aria-current]=\"isCurrent(section.key()) ? 'page' : null\"\n (click)=\"selectSection(section.key())\"\n >\n <hm-icon class=\"hm-settings__section-icon\" [shape]=\"section.icon()\" />\n <span class=\"hm-settings__section-label\">{{ section.label() }}</span>\n @if (section.hasError()) {\n <!-- Erro em texto (nunca só o ícone/cor): o nome do item vira \"Perfil, Com erro\". -->\n <hm-icon class=\"hm-settings__section-error\" shape=\"exclamation-circle\" />\n <span class=\"hm-visually-hidden\">, {{ text.invalid }}</span>\n }\n </button>\n </li>\n }\n </ul>\n </nav>\n\n <div class=\"hm-settings__nav-footer\">\n <ng-content select=\"[settingsNavFooter]\" />\n </div>\n </aside>\n\n <div #contentEl class=\"hm-settings__content\">\n <hm-icon-button\n class=\"hm-settings__close\"\n [label]=\"text.close\"\n icon=\"times\"\n emphasis=\"subtle\"\n [disabled]=\"busy()\"\n (clicked)=\"close()\"\n />\n\n <div class=\"hm-settings__body\" [class.hm-settings__body--searching]=\"!!query()\">\n <ng-content />\n\n @if (noResults()) {\n <p class=\"hm-settings__empty\" role=\"status\">{{ noResultsText() }}</p>\n }\n </div>\n </div>\n\n @if (hasActions()) {\n <div class=\"hm-settings__footer\">\n @if (submitError()) {\n <p class=\"hm-settings__error\" role=\"alert\">{{ submitError() }}</p>\n }\n <span class=\"hm-settings__footer-spacer\"></span>\n <hm-button emphasis=\"medium\" [disabled]=\"busy()\" (clicked)=\"cancel()\">\n {{ cancelLabel() || text.cancel }}\n </hm-button>\n <hm-button [loading]=\"submitting()\" [disabled]=\"busy() && !submitting()\" (clicked)=\"submit()\">\n {{ submitLabel() || text.submit }}\n </hm-button>\n </div>\n }\n\n <!-- Anuncia a seção aberta para corrigir. Sempre no DOM: região viva criada junto com o texto\n não é lida. -->\n <p class=\"hm-visually-hidden\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</p>\n </div>\n </div>\n}\n","// Ponto de import `@trismegisto/angular/settings` (secundário do ng-packagr): o que o public-api e as outras pastas usam\n// daqui. Gerado em 2026-10-03; ao criar arquivo público novo na pasta, acrescente a linha.\nexport * from './settings-dialog.component';\nexport * from './settings-row.component';\nexport * from './settings-section.component';\nexport * from './settings.context';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["sequence"],"mappings":";;;;;;;;MA+Ba,eAAe,GAAG,IAAI,cAAc,CAAwB,iBAAiB;MAC7E,gBAAgB,GAAG,IAAI,cAAc,CAAyB,kBAAkB;AAE7F;AACM,SAAU,qBAAqB,CAAC,IAAY,EAAA;AAChD,IAAA,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;AACzE;AAEA;SACgB,mBAAmB,CAAC,KAAa,EAAE,GAAG,KAAe,EAAA;AACnE,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,IAAI;IACvB,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACpE;;ACjCO,MAAM,cAAc,GAA8B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,WAAW,EAAE,UAAU,CAAC;;ACNrH,IAAIA,UAAQ,GAAG,CAAC;AAEhB;;;;;;;;;AASG;MAsBU,oBAAoB,CAAA;AACtB,IAAA,MAAM,GAAG,cAAc,CAAC,cAAc,CAAC;AACvC,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAU;AAChC,IAAA,WAAW,GAAG,KAAK,CAAC,EAAE,kFAAC;;AAEvB,IAAA,QAAQ,GAAG,KAAK,CAAC,EAAE,+EAAC;IACpB,OAAO,GAAG,KAAK,CAAC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAE/C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IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACT,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtJ9E;AACA;;ACDA;;AAEG;;"}
1
+ {"version":3,"file":"trismegisto-angular-settings.mjs","sources":["../../src/settings/settings.context.ts","../../src/settings/icons.generated.ts","../../src/settings/settings-row.component.ts","../../src/settings/settings-section.component.ts","../../src/settings/settings-dialog.component.ts","../../src/settings/settings-dialog.component.html","../../src/settings/index.ts","../../src/settings/trismegisto-angular-settings.ts"],"sourcesContent":["import { InjectionToken, Signal } from '@angular/core';\n\n/** O que `hm-settings-section`/`hm-settings-row` precisam saber do diálogo em volta. Token (e não\n * o componente) para os três arquivos não se importarem em ciclo. */\nexport interface SettingsDialogContext {\n /** Termo da busca, já normalizado (minúsculo, sem acento). Vazio = sem busca. */\n readonly query: Signal<string>;\n /** Chave da seção aberta (resolvida: nunca vazia enquanto houver seção). */\n readonly activeKey: Signal<string>;\n /** Já houve uma tentativa de envio (OK) desde a abertura: seção inválida mostra o erro mesmo intocada. */\n readonly attempted: Signal<boolean>;\n}\n\n/**\n * OK/Cancelar do modo formulário do `hm-settings-dialog`. Cada função devolve se a janela pode\n * fechar — síncrona ou `Promise`, e enquanto a `Promise` não resolve o botão carrega e a janela\n * trava.\n * - `onSubmit`: chamado no OK depois que todas as seções passaram na validação (salvar no servidor).\n * `false` mantém aberto em silêncio; rejeitar mantém aberto e mostra a mensagem de falha do catálogo.\n * - `onCancel`: chamado no Cancelar, no X e no Esc (perguntar antes de descartar, por exemplo).\n */\nexport interface HermesSettingsCloseHandler {\n readonly onSubmit?: () => boolean | Promise<boolean>;\n readonly onCancel?: () => boolean | Promise<boolean>;\n}\n\nexport interface SettingsSectionContext {\n /** O rótulo/palavras-chave da SEÇÃO casam com a busca: todas as linhas dela aparecem. */\n readonly matchesSelf: Signal<boolean>;\n}\n\nexport const SETTINGS_DIALOG = new InjectionToken<SettingsDialogContext>('SETTINGS_DIALOG');\nexport const SETTINGS_SECTION = new InjectionToken<SettingsSectionContext>('SETTINGS_SECTION');\n\n/** Minúsculo e sem acento: \"Aparência\" casa com \"aparencia\". */\nexport function normalizeSettingsText(text: string): string {\n return text.normalize('NFD').replace(/[̀-ͯ]/g, '').toLowerCase().trim();\n}\n\n/** Todas as palavras da busca aparecem no texto (em qualquer ordem). */\nexport function settingsTextMatches(query: string, ...texts: string[]): boolean {\n if (!query) return true;\n const haystack = normalizeSettingsText(texts.join(' '));\n return query.split(/\\s+/).every((word) => haystack.includes(word));\n}\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(SETTINGS_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_COG,\n ICON_EXCLAMATION_CIRCLE,\n ICON_SEARCH,\n ICON_TIMES,\n} from '@trismegisto/angular/icon';\n\nexport const SETTINGS_ICONS: readonly RegisteredIcon[] = [ICON_COG, ICON_EXCLAMATION_CIRCLE, ICON_SEARCH, ICON_TIMES];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input } from '@angular/core';\nimport { SETTINGS_DIALOG, SETTINGS_SECTION, settingsTextMatches } from './settings.context';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SETTINGS_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * Uma preferência dentro de `hm-settings-section`: nome e explicação à esquerda, controle\n * (`hm-segmented-control`, `hm-switch`, `hm-select`, botão...) à direita — a linha típica de um painel de\n * configurações. `stacked` põe o controle embaixo do texto, para controles largos\n * (grade de cores, tabela).\n *\n * Detalhe que não cabe numa descrição de uma linha vai num `hm-toggletip` com o atributo `rowHelp`, ao lado\n * do rótulo; conteúdo com `rowDescription` entra logo abaixo da descrição (um link, um aviso).\n *\n * Some sozinha quando há busca no diálogo e nem o rótulo, nem a descrição, nem `keywords` casam\n * (a não ser que a própria seção case — aí a seção inteira aparece). Fora de um diálogo, é só uma\n * linha de layout.\n */\n@Component({\n selector: 'hm-settings-row',\n template: `\n <div class=\"hm-settings-row__text\">\n <span class=\"hm-settings-row__label-line\">\n <span class=\"hm-settings-row__label\" [id]=\"labelId\">{{ label() }}</span>\n <ng-content select=\"[rowHelp]\" />\n </span>\n @if (description()) {\n <span class=\"hm-settings-row__description\">{{ description() }}</span>\n }\n <ng-content select=\"[rowDescription]\" />\n </div>\n <div class=\"hm-settings-row__control\" role=\"group\" [attr.aria-labelledby]=\"labelId\">\n <ng-content />\n </div>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hm-settings-row',\n '[class.hm-settings-row--stacked]': 'stacked()',\n '[hidden]': '!visible()',\n },\n})\nexport class SettingsRowComponent {\n readonly #icons = useHermesIcons(SETTINGS_ICONS);\n readonly label = input.required<string>();\n readonly description = input('');\n /** Termos extras que também acham esta linha na busca (sinônimos, nome antigo da opção). */\n readonly keywords = input('');\n readonly stacked = input(false, { transform: booleanAttribute });\n\n private readonly dialog = inject(SETTINGS_DIALOG, { optional: true });\n private readonly section = inject(SETTINGS_SECTION, { optional: true });\n\n protected readonly labelId = `hm-settings-row-${++sequence}`;\n\n /** Casa com a busca por conta própria (sem contar a seção). */\n readonly matches = computed(() =>\n settingsTextMatches(this.dialog?.query() ?? '', this.label(), this.description(), this.keywords()),\n );\n\n readonly visible = computed(() => this.matches() || !!this.section?.matchesSelf());\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n effect,\n ElementRef,\n forwardRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport type { AbstractControl } from '@angular/forms';\nimport { SettingsRowComponent } from './settings-row.component';\nimport { SETTINGS_DIALOG, SETTINGS_SECTION, SettingsSectionContext, settingsTextMatches } from './settings.context';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SETTINGS_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * Uma seção do `hm-settings-dialog` (\"Aparência\", \"Atalhos\"...). O diálogo monta a navegação\n * lateral a partir delas — `key`, `label` e `icon` viram o item do menu; não existe lista de\n * seções separada para manter em sincronia.\n *\n * Sem busca, só a seção ativa aparece. Com busca, aparecem as seções com alguma linha que case\n * (só essas linhas) ou cujo `label`/`keywords` case (inteiras). Conteúdo que não é\n * `hm-settings-row` (texto solto, tabela) só é achado pelo `label`/`keywords` da seção.\n *\n * Validação (modo formulário do diálogo, com OK/Cancelar): `control` liga a seção a um\n * `FormGroup`/`AbstractControl` — inválido depois de tocado (ou depois de um OK) marca a seção na\n * navegação e impede o OK; `invalid` força o erro por regra que não cabe num formulário.\n */\n@Component({\n selector: 'hm-settings-section',\n template: `\n <div class=\"hm-settings-section__header\">\n <h3 class=\"hm-settings-section__heading\" [id]=\"headingId\" tabindex=\"-1\">{{ label() }}</h3>\n @if (description()) {\n <p class=\"hm-settings-section__description\">{{ description() }}</p>\n }\n </div>\n <ng-content />\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: SETTINGS_SECTION, useExisting: forwardRef(() => SettingsSectionComponent) }],\n host: {\n class: 'hm-settings-section',\n '[hidden]': '!visible()',\n },\n})\nexport class SettingsSectionComponent implements SettingsSectionContext {\n readonly #icons = useHermesIcons(SETTINGS_ICONS);\n /** Identificador estável (também o que `activeSection` do diálogo recebe). */\n readonly key = input.required<string>();\n readonly label = input.required<string>();\n readonly icon = input('cog');\n readonly description = input('');\n /** Termos extras que acham a seção inteira na busca. */\n readonly keywords = input('');\n /** Formulário da seção: inválido impede o OK do diálogo e marca a seção na navegação. */\n readonly control = input<AbstractControl | null>(null);\n /** Força a seção como inválida (regra de fora do formulário, recusa do servidor). */\n readonly invalid = input(false, { transform: booleanAttribute });\n\n /** @internal Alvo do foco quando o OK abre esta seção para corrigir. */\n readonly headingId = `hm-settings-section-${++sequence}`;\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Muda a cada evento do formulário (valor, situação, tocado): o estado dele não é signal. */\n private readonly controlVersion = signal(0);\n\n private readonly dialog = inject(SETTINGS_DIALOG, { optional: true });\n private readonly rows = contentChildren(SettingsRowComponent, { descendants: true });\n\n readonly matchesSelf = computed(() => {\n const query = this.dialog?.query() ?? '';\n return !!query && settingsTextMatches(query, this.label(), this.keywords());\n });\n\n /** Tem algo para mostrar na busca atual. */\n readonly hasMatches = computed(() => this.matchesSelf() || this.rows().some((row) => row.matches()));\n\n /**\n * A navegação marca a seção como com erro: `invalid` sempre; `control` inválido só depois de tocado\n * ou de uma tentativa de OK (não grita erro em formulário que a pessoa nem abriu).\n */\n readonly hasError = computed(() => {\n this.controlVersion();\n if (this.invalid()) return true;\n const control = this.control();\n return !!control && control.invalid && (control.touched || !!this.dialog?.attempted());\n });\n\n constructor() {\n effect((onCleanup) => {\n const control = this.control();\n if (!control) return;\n const subscription = control.events.subscribe(() => this.controlVersion.update((v) => v + 1));\n onCleanup(() => subscription.unsubscribe());\n });\n }\n\n /**\n * @internal Validação para o OK: marca tudo como tocado (as mensagens dos campos aparecem) e espera\n * validador assíncrono pendente. `true` = pode enviar.\n */\n async validate(): Promise<boolean> {\n const control = this.control();\n if (control) {\n control.markAllAsTouched();\n if (control.pending) {\n await new Promise<void>((resolve) => {\n const subscription = control.statusChanges.subscribe((status) => {\n if (status !== 'PENDING') {\n subscription.unsubscribe();\n resolve();\n }\n });\n });\n }\n this.controlVersion.update((v) => v + 1);\n }\n return !this.invalid() && !control?.invalid;\n }\n\n /** @internal Leva o foco ao primeiro campo inválido da seção (ou ao título dela). */\n focusFirstInvalid(): void {\n const root = this.host.nativeElement;\n const field = root.querySelector<HTMLElement>(\n '[aria-invalid=\"true\"], input.ng-invalid, textarea.ng-invalid, select.ng-invalid',\n );\n (field ?? root.querySelector<HTMLElement>(`#${this.headingId}`))?.focus();\n }\n\n readonly visible = computed(() => {\n if (!this.dialog) return true;\n return this.dialog.query() ? this.hasMatches() : this.dialog.activeKey() === this.key();\n });\n}\n","import {\n afterNextRender,\n afterRenderEffect,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DOCUMENT,\n effect,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { activateOverlay, handleOverlayKeydown, formatMessage } from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { ButtonComponent } from '@trismegisto/angular/button';\nimport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nimport { IconComponent } from '@trismegisto/angular/icon';\nimport { SettingsSectionComponent } from './settings-section.component';\nimport {\n HermesSettingsCloseHandler,\n SETTINGS_DIALOG,\n SettingsDialogContext,\n normalizeSettingsText,\n} from './settings.context';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SETTINGS_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * `key` de uma seção, ou nada enquanto ela ainda não recebeu o valor. Seção vinda de `@for`/`@if` no\n * conteúdo (ex.: as do app em `provideSettingsSection`, no spine) entra na consulta antes de a view\n * dela atualizar os inputs, e o `[hidden]` de outra seção já lê `activeKey` nesse meio-tempo — ler o\n * `input.required` cru estourava NG0950 e derrubava a abertura do diálogo. A leitura registra a\n * dependência mesmo quando falha: quando o `key` chega, `activeKey` recalcula.\n */\nfunction sectionKey(section: SettingsSectionComponent): string[] {\n try {\n return [section.key()];\n } catch {\n return [];\n }\n}\n\n/**\n * Painel de configurações em janela grande, no formato de preferências de app de desktop: busca\n * e seções à esquerda, a seção escolhida à direita, tudo aplicado na hora (sem botão de salvar).\n *\n * O conteúdo são `hm-settings-section` com `hm-settings-row` dentro; a navegação, a busca (que\n * atravessa todas as seções e mostra só as linhas que casam) e o estado vazio vêm prontos. Mesma\n * base de acessibilidade do `hm-modal` (foco preso, Esc, foco devolvido a quem abriu); diferente\n * dele, clicar fora fecha — aqui não há formulário a perder, cada mudança já foi aplicada.\n *\n * Abaixo de 768px ocupa a tela e a navegação vira uma faixa rolável no topo.\n *\n * **Modo formulário** (`closeHandler` ou `actions`) — rodapé Cancelar/Salvar, e nada é dado como\n * aplicado até o OK.\n * - Cada seção pode ter `control` (`FormGroup`) ou `invalid`; seção inválida ganha ícone e o texto\n * \"Com erro\" na navegação. O OK valida TODAS as seções; havendo erro, abre a primeira inválida, leva\n * o foco ao primeiro campo com erro, anuncia e não envia.\n * - Tudo válido: chama `closeHandler.onSubmit` (síncrono ou `Promise<boolean>`). Enquanto espera, o\n * Salvar carrega e Cancelar/X/Esc travam; `true` fecha e emite `submitted`, `false` fica aberto, e uma\n * rejeição fica aberta com a mensagem de falha (`role=\"alert\"`) no rodapé.\n * - Cancelar, X e Esc passam por `closeHandler.onCancel` (se houver); clicar fora não fecha — há\n * formulário a perder.\n *\n * ```html\n * <hm-settings-dialog heading=\"Conta\" [(open)]=\"aberto\" [closeHandler]=\"handler\">\n * <hm-settings-section key=\"perfil\" label=\"Perfil\" [control]=\"perfil\">…</hm-settings-section>\n * </hm-settings-dialog>\n * <!-- handler = { onSubmit: () => firstValueFrom(this.api.salvar(...)).then(() => true) } -->\n * ```\n */\n@Component({\n selector: 'hm-settings-dialog',\n imports: [IconComponent, IconButtonComponent, ButtonComponent],\n templateUrl: './settings-dialog.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: SETTINGS_DIALOG, useExisting: forwardRef(() => SettingsDialogComponent) }],\n})\nexport class SettingsDialogComponent implements SettingsDialogContext {\n readonly #icons = useHermesIcons(SETTINGS_ICONS);\n /** Visibilidade. Two-way: fecha no Esc, no X e no clique fora. */\n readonly open = model.required<boolean>();\n /** Título (topo da navegação) e rótulo acessível da janela. */\n readonly heading = input.required<string>();\n /** Seção aberta (`key` de uma `hm-settings-section`). Vazio = a primeira. Two-way. */\n readonly activeSection = model('');\n\n /**\n * Modo formulário: OK/Cancelar que decidem se a janela fecha (síncrono ou `Promise<boolean>`). Ver\n * `HermesSettingsCloseHandler`. Sem ele (e sem `actions`), tudo é aplicado na hora, como antes.\n */\n readonly closeHandler = input<HermesSettingsCloseHandler | null>(null);\n /** Mostra o rodapé Cancelar/Salvar mesmo sem `closeHandler` (validação por seção e fecha no OK). */\n readonly actions = input(false, { transform: booleanAttribute });\n /** Rótulos do rodapé. Vazio = catálogo. */\n readonly submitLabel = input('');\n readonly cancelLabel = input('');\n\n readonly closed = output<void>();\n /** OK com todas as seções válidas e `onSubmit` aceito: a janela fechou salvando. */\n readonly submitted = output<void>();\n\n private readonly messages = inject(HERMES_MESSAGES);\n /** Lido do catálogo a cada uso (troca de idioma sem recarregar). */\n protected get text() {\n return this.messages.settings;\n }\n protected readonly noResultsText = computed(() => formatMessage(this.text.noResults, { term: this.rawQuery() }));\n protected readonly headingId = `hm-settings-heading-${++sequence}`;\n\n protected readonly sections = contentChildren(SettingsSectionComponent, { descendants: true });\n\n /** O que está digitado na busca, como digitado (o input mostra isto). */\n protected readonly rawQuery = signal('');\n readonly query = computed(() => normalizeSettingsText(this.rawQuery()));\n\n readonly activeKey = computed(() => {\n const keys = this.sections().flatMap(sectionKey);\n return keys.includes(this.activeSection()) ? this.activeSection() : (keys[0] ?? '');\n });\n\n /** Na busca, só as seções com resultado; fora dela, todas. */\n protected readonly navSections = computed(() =>\n this.query() ? this.sections().filter((s) => s.hasMatches()) : this.sections(),\n );\n\n protected readonly noResults = computed(() => !!this.query() && this.navSections().length === 0);\n\n /** Rodapé Cancelar/Salvar presente. */\n protected readonly hasActions = computed(() => this.actions() || !!this.closeHandler());\n readonly attempted = signal(false);\n /** Um `closeHandler` (ou a validação assíncrona do OK) em curso: a janela trava. */\n protected readonly busy = signal(false);\n /** O OK é que está esperando (ele carrega; o Cancelar só desabilita). */\n protected readonly submitting = signal(false);\n protected readonly submitError = signal('');\n protected readonly announcement = signal('');\n\n private readonly injector = inject(Injector);\n private readonly windowRef = viewChild<ElementRef<HTMLElement>>('windowEl');\n private readonly contentRef = viewChild<ElementRef<HTMLElement>>('contentEl');\n private readonly document = inject(DOCUMENT);\n\n constructor() {\n afterRenderEffect((onCleanup) => {\n const win = this.windowRef()?.nativeElement;\n if (!this.open() || !win) return;\n onCleanup(activateOverlay(win, this.document));\n });\n\n // Fechou: a próxima abertura começa sem busca (o que ficou digitado não tem mais contexto).\n effect(() => {\n if (!this.open()) {\n this.rawQuery.set('');\n this.attempted.set(false);\n this.submitError.set('');\n this.announcement.set('');\n }\n });\n\n // Trocou de seção ou de busca: o conteúdo volta ao topo, não fica no meio da seção anterior.\n effect(() => {\n this.activeKey();\n this.query();\n this.contentRef()?.nativeElement.scrollTo({ top: 0 });\n });\n }\n\n protected selectSection(key: string): void {\n this.rawQuery.set('');\n this.activeSection.set(key);\n }\n\n protected isCurrent(key: string): boolean {\n return !this.query() && this.activeKey() === key;\n }\n\n protected onSearch(value: string): void {\n this.rawQuery.set(value);\n }\n\n /** X, Esc e (sem rodapé) clique fora. No modo formulário, é o Cancelar. */\n protected close(): void {\n if (!this.open()) return;\n if (this.hasActions()) {\n void this.cancel();\n return;\n }\n this.finishClose();\n }\n\n /** Clique no véu: só fecha no modo de aplicação imediata (no formulário, perderia o preenchido). */\n protected onBackdropClick(): void {\n if (!this.hasActions()) this.close();\n }\n\n /** Cancelar (botão, X, Esc): pergunta ao `onCancel`, se houver. */\n protected async cancel(): Promise<void> {\n if (!this.open() || this.busy()) return;\n const handler = this.closeHandler()?.onCancel;\n if (handler) {\n this.busy.set(true);\n try {\n if (!(await handler())) return;\n } catch {\n return;\n } finally {\n this.busy.set(false);\n }\n }\n this.finishClose();\n }\n\n /**\n * OK: valida todas as seções; com erro, abre a primeira inválida e não envia. Válido, chama o\n * `onSubmit` e fecha se ele aceitar.\n */\n protected async submit(): Promise<void> {\n if (!this.open() || this.busy()) return;\n this.submitError.set('');\n this.attempted.set(true);\n this.busy.set(true);\n this.submitting.set(true);\n try {\n const sections = this.sections();\n const results = await Promise.all(sections.map((section) => section.validate()));\n const firstInvalid = sections[results.indexOf(false)];\n if (firstInvalid) {\n this.rawQuery.set('');\n this.activeSection.set(firstInvalid.key());\n this.announcement.set(formatMessage(this.text.invalidAnnounce, { label: firstInvalid.label() }));\n afterNextRender(() => firstInvalid.focusFirstInvalid(), { injector: this.injector });\n return;\n }\n const handler = this.closeHandler()?.onSubmit;\n if (handler && !(await handler())) return;\n this.finishClose();\n this.submitted.emit();\n } catch {\n this.submitError.set(this.text.submitError);\n } finally {\n this.busy.set(false);\n this.submitting.set(false);\n }\n }\n\n private finishClose(): void {\n this.open.set(false);\n this.closed.emit();\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n // Esc com busca preenchida limpa a busca primeiro (como em paletas de busca); o segundo Esc fecha.\n if (event.key === 'Escape' && this.busy()) {\n // Salvando: Esc não fecha nem cancela por baixo de uma requisição em curso.\n event.preventDefault();\n event.stopPropagation();\n return;\n }\n if (event.key === 'Escape' && this.rawQuery()) {\n event.preventDefault();\n event.stopPropagation();\n this.rawQuery.set('');\n return;\n }\n handleOverlayKeydown(event, this.windowRef()?.nativeElement, this.document, () => this.close());\n }\n}\n","@if (open()) {\n <div class=\"hm-settings\" (keydown)=\"onKeydown($event)\">\n <div class=\"hm-settings__backdrop\" aria-hidden=\"true\" (click)=\"onBackdropClick()\"></div>\n\n <div\n #windowEl\n class=\"hm-settings__window\"\n [class.hm-settings__window--actions]=\"hasActions()\"\n role=\"dialog\"\n aria-modal=\"true\"\n [attr.aria-labelledby]=\"headingId\"\n tabindex=\"-1\"\n >\n <aside class=\"hm-settings__nav\">\n <h2 class=\"hm-settings__heading\" [id]=\"headingId\">{{ heading() }}</h2>\n\n <label class=\"hm-settings__search\">\n <hm-icon class=\"hm-settings__search-icon\" shape=\"search\" />\n <input\n type=\"search\"\n class=\"hm-settings__search-input\"\n autocomplete=\"off\"\n spellcheck=\"false\"\n [placeholder]=\"text.search\"\n [attr.aria-label]=\"text.search\"\n [value]=\"rawQuery()\"\n (input)=\"onSearch($any($event.target).value)\"\n />\n </label>\n\n <nav class=\"hm-settings__sections\" [attr.aria-label]=\"text.sections\">\n <ul class=\"hm-settings__section-list\">\n @for (section of navSections(); track section.key()) {\n <li>\n <button\n type=\"button\"\n class=\"hm-settings__section-link\"\n [class.hm-settings__section-link--invalid]=\"section.hasError()\"\n [attr.aria-current]=\"isCurrent(section.key()) ? 'page' : null\"\n (click)=\"selectSection(section.key())\"\n >\n <hm-icon class=\"hm-settings__section-icon\" [shape]=\"section.icon()\" />\n <span class=\"hm-settings__section-label\">{{ section.label() }}</span>\n @if (section.hasError()) {\n <!-- Erro em texto (nunca só o ícone/cor): o nome do item vira \"Perfil, Com erro\". -->\n <hm-icon class=\"hm-settings__section-error\" shape=\"exclamation-circle\" />\n <span class=\"hm-visually-hidden\">, {{ text.invalid }}</span>\n }\n </button>\n </li>\n }\n </ul>\n </nav>\n\n <div class=\"hm-settings__nav-footer\">\n <ng-content select=\"[settingsNavFooter]\" />\n </div>\n </aside>\n\n <div #contentEl class=\"hm-settings__content\">\n <hm-icon-button\n class=\"hm-settings__close\"\n [label]=\"text.close\"\n icon=\"times\"\n emphasis=\"subtle\"\n [disabled]=\"busy()\"\n (clicked)=\"close()\"\n />\n\n <div class=\"hm-settings__body\" [class.hm-settings__body--searching]=\"!!query()\">\n <ng-content />\n\n @if (noResults()) {\n <p class=\"hm-settings__empty\" role=\"status\">{{ noResultsText() }}</p>\n }\n </div>\n </div>\n\n @if (hasActions()) {\n <div class=\"hm-settings__footer\">\n @if (submitError()) {\n <p class=\"hm-settings__error\" role=\"alert\">{{ submitError() }}</p>\n }\n <span class=\"hm-settings__footer-spacer\"></span>\n <hm-button emphasis=\"medium\" [disabled]=\"busy()\" (clicked)=\"cancel()\">\n {{ cancelLabel() || text.cancel }}\n </hm-button>\n <hm-button [loading]=\"submitting()\" [disabled]=\"busy() && !submitting()\" (clicked)=\"submit()\">\n {{ submitLabel() || text.submit }}\n </hm-button>\n </div>\n }\n\n <!-- Anuncia a seção aberta para corrigir. Sempre no DOM: região viva criada junto com o texto\n não é lida. -->\n <p class=\"hm-visually-hidden\" role=\"status\" aria-live=\"polite\">{{ announcement() }}</p>\n </div>\n </div>\n}\n","// Ponto de import `@trismegisto/angular/settings` (secundário do ng-packagr): o que o public-api e as outras pastas usam\n// daqui. Gerado em 2026-10-03; ao criar arquivo público novo na pasta, acrescente a linha.\nexport * from './settings-dialog.component';\nexport * from './settings-row.component';\nexport * from './settings-section.component';\nexport * from './settings.context';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["sequence"],"mappings":";;;;;;;;MA+Ba,eAAe,GAAG,IAAI,cAAc,CAAwB,iBAAiB;MAC7E,gBAAgB,GAAG,IAAI,cAAc,CAAyB,kBAAkB;AAE7F;AACM,SAAU,qBAAqB,CAAC,IAAY,EAAA;AAChD,IAAA,OAAO,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,IAAI,EAAE;AACzE;AAEA;SACgB,mBAAmB,CAAC,KAAa,EAAE,GAAG,KAAe,EAAA;AACnE,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,IAAI;IACvB,MAAM,QAAQ,GAAG,qBAAqB,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACvD,OAAO,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACpE;;ACjCO,MAAM,cAAc,GAA8B,CAAC,QAAQ,EAAE,uBAAuB,EAAE,WAAW,EAAE,UAAU,CAAC;;ACNrH,IAAIA,UAAQ,GAAG,CAAC;AAEhB;;;;;;;;;;;;AAYG;MAyBU,oBAAoB,CAAA;AACtB,IAAA,MAAM,GAAG,cAAc,CAAC,cAAc,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HAAA,EAAA;i/BAkCnD,wBAAwB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CA6B7B,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACT,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEtJ9E;AACA;;ACDA;;AAEG;;"}
@@ -1,7 +1,7 @@
1
1
  import { DOCUMENT, isPlatformBrowser } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, PLATFORM_ID, signal, computed, DestroyRef, Injectable, makeEnvironmentProviders, provideEnvironmentInitializer } from '@angular/core';
4
- import { readZoomState, watchZoomState, zoomRootClasses } from '@trismegisto/primitives';
4
+ import { readZoomState, normalizeTextScale, applyTextScale, watchZoomState, zoomRootClasses } from '@trismegisto/primitives';
5
5
 
6
6
  /**
7
7
  * Nível de zoom da página como signal, para reflow (WCAG 1.4.10).
@@ -21,6 +21,11 @@ import { readZoomState, watchZoomState, zoomRootClasses } from '@trismegisto/pri
21
21
  * // @if (zoom.zoomed()) { layout empilhado } @else { lado a lado }
22
22
  * ```
23
23
  *
24
+ * **Tamanho do texto.** `setTextScale(1.25)` aumenta o texto e a altura dos controles do app inteiro
25
+ * (`--hm-text-scale` no `<html>`, que multiplica os tokens `--hm-font-size-*` e `--hm-control-height*`).
26
+ * É a escolha da pessoa dentro do app (Configurações › Acessibilidade, no spine), independente do zoom do
27
+ * navegador: não muda a largura em pixels CSS, então não mexe no `level`. Quem persiste é o app.
28
+ *
24
29
  * Diferenças em relação ao Old: o sinal substitui o `Observable` que emitia fora da zona (o site e os apps
25
30
  * são zoneless); `matchMedia` substitui o `ResizeObserver` (só avisa ao cruzar um limite, sem o erro
26
31
  * "ResizeObserver loop"); e a diretiva `[zoomLevelIndicator]` não foi portada — a classe no `<html>` já
@@ -40,6 +45,15 @@ class HermesZoomService {
40
45
  pixelRatio = computed(() => this.#state().pixelRatio, ...(ngDevMode ? [{ debugName: "pixelRatio" }] : /* istanbul ignore next */ []));
41
46
  /** `true` com zoom de 200% ou mais (nível `'x2'` ou `'x4'`). */
42
47
  zoomed = computed(() => this.#state().level !== 'none', ...(ngDevMode ? [{ debugName: "zoomed" }] : /* istanbul ignore next */ []));
48
+ #textScale = signal(1, ...(ngDevMode ? [{ debugName: "#textScale" }] : /* istanbul ignore next */ []));
49
+ /** Tamanho do texto escolhido no app (1 = 100%). Ver `setTextScale`. */
50
+ textScale = this.#textScale.asReadonly();
51
+ /** Aplica o tamanho do texto (multiplicador entre 0,75 e 2; os oferecidos estão em `HERMES_TEXT_SCALES`). */
52
+ setTextScale(scale) {
53
+ const value = normalizeTextScale(scale);
54
+ this.#textScale.set(value);
55
+ applyTextScale(this.#view ? this.#document.documentElement : null, value);
56
+ }
43
57
  constructor() {
44
58
  this.#applyClasses(this.#state().level);
45
59
  const stop = watchZoomState(this.#view ?? undefined, (state) => {
@@ -49,6 +63,7 @@ class HermesZoomService {
49
63
  inject(DestroyRef).onDestroy(() => {
50
64
  stop();
51
65
  this.#applyClasses('none');
66
+ applyTextScale(this.#view ? this.#document.documentElement : null, 1);
52
67
  });
53
68
  }
54
69
  #applyClasses(level) {
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-zoom.mjs","sources":["../../src/zoom/zoom.service.ts","../../src/zoom/index.ts","../../src/zoom/trismegisto-angular-zoom.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n DestroyRef,\n EnvironmentProviders,\n Injectable,\n PLATFORM_ID,\n computed,\n inject,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n signal,\n} from '@angular/core';\nimport {\n type HermesZoomLevel,\n type HermesZoomState,\n readZoomState,\n watchZoomState,\n zoomRootClasses,\n} from '@trismegisto/primitives';\n\n/**\n * Nível de zoom da página como signal, para reflow (WCAG 1.4.10).\n *\n * O nível vem da largura da janela em pixels CSS, que é o que o zoom realmente muda (ver\n * `@trismegisto/primitives`, `zoom.ts`): `'x2'` abaixo de `lg` (≈ 200% numa tela comum), `'x4'` abaixo de `sm`\n * (≈ 400%). Janela estreita sem zoom cai no mesmo nível, de propósito.\n *\n * Enquanto existir, o serviço mantém classes cumulativas no `<html>`: `hm-zoom-x2` (200% ou mais) e\n * `hm-zoom-x4` (400% ou mais). O `@trismegisto/core` reage a elas (`_zoom.scss`: o modal vira tela cheia a\n * 400%) e o app pode escrever as próprias regras com o mesmo nome, sem repetir números de breakpoint.\n * Para ter as classes desde o início, registre `provideHermesZoom()` no bootstrap; sem isso, o serviço\n * nasce na primeira injeção.\n *\n * ```ts\n * readonly zoom = inject(HermesZoomService);\n * // @if (zoom.zoomed()) { layout empilhado } @else { lado a lado }\n * ```\n *\n * Diferenças em relação ao Old: o sinal substitui o `Observable` que emitia fora da zona (o site e os apps\n * são zoneless); `matchMedia` substitui o `ResizeObserver` (só avisa ao cruzar um limite, sem o erro\n * \"ResizeObserver loop\"); e a diretiva `[zoomLevelIndicator]` não foi portada — a classe no `<html>` já\n * alcança qualquer elemento por seletor descendente.\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesZoomService {\n readonly #document = inject(DOCUMENT);\n readonly #view = isPlatformBrowser(inject(PLATFORM_ID)) ? this.#document.defaultView : null;\n readonly #state = signal<HermesZoomState>(readZoomState(this.#view ?? undefined));\n #applied: string[] = [];\n\n /** Nível atual: `'none'`, `'x2'` (200% ou mais) ou `'x4'` (400% ou mais). */\n readonly level = computed<HermesZoomLevel>(() => this.#state().level);\n\n /**\n * `devicePixelRatio` atual. Só informativo: mistura zoom com a densidade da tela, então não serve para\n * decidir layout (use `level`).\n */\n readonly pixelRatio = computed(() => this.#state().pixelRatio);\n\n /** `true` com zoom de 200% ou mais (nível `'x2'` ou `'x4'`). */\n readonly zoomed = computed(() => this.#state().level !== 'none');\n\n constructor() {\n this.#applyClasses(this.#state().level);\n const stop = watchZoomState(this.#view ?? undefined, (state) => {\n this.#state.set(state);\n this.#applyClasses(state.level);\n });\n inject(DestroyRef).onDestroy(() => {\n stop();\n this.#applyClasses('none');\n });\n }\n\n #applyClasses(level: HermesZoomLevel): void {\n const root = this.#document.documentElement;\n const next = zoomRootClasses(level);\n this.#applied.filter((c) => !next.includes(c)).forEach((c) => root.classList.remove(c));\n next.forEach((c) => root.classList.add(c));\n this.#applied = next;\n }\n}\n\n/**\n * Liga o `HermesZoomService` no bootstrap, para as classes `hm-zoom-*` estarem no `<html>` desde a\n * primeira pintura (sem esperar algum componente injetar o serviço).\n *\n * ```ts\n * bootstrapApplication(App, { providers: [provideHermesZoom()] });\n * ```\n */\nexport function provideHermesZoom(): EnvironmentProviders {\n return makeEnvironmentProviders([provideEnvironmentInitializer(() => inject(HermesZoomService))]);\n}\n","// Ponto de import `@trismegisto/angular/zoom` (secundário do ng-packagr): nível de zoom da página (reflow,\n// WCAG 1.4.10). Ao criar arquivo público novo na pasta, acrescente a linha.\nexport * from './zoom.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAoBA;;;;;;;;;;;;;;;;;;;;;;AAsBG;MAEU,iBAAiB,CAAA;AACnB,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC5B,KAAK,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,IAAI,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI;AAClF,IAAA,MAAM,GAAG,MAAM,CAAkB,aAAa,CAAC,IAAI,CAAC,KAAK,IAAI,SAAS,CAAC,EAAA,IAAA,SAAA,GAAA,CAAA,EAAA,SAAA,EAAA,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AI,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AAC1C,QAAA,IAAI,CAAC,QAAQ,GAAG,IAAI;IACtB;wGApCW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAjB,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,cADJ,MAAM,EAAA,CAAA;;4FACnB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAD7B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AAwClC;;;;;;;AAOG;SACa,iBAAiB,GAAA;AAC/B,IAAA,OAAO,wBAAwB,CAAC,CAAC,6BAA6B,CAAC,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AACnG;;AC7FA;AACA;;ACDA;;AAEG;;"}
1
+ {"version":3,"file":"trismegisto-angular-zoom.mjs","sources":["../../src/zoom/zoom.service.ts","../../src/zoom/index.ts","../../src/zoom/trismegisto-angular-zoom.ts"],"sourcesContent":["import { DOCUMENT, isPlatformBrowser } from '@angular/common';\nimport {\n DestroyRef,\n EnvironmentProviders,\n Injectable,\n PLATFORM_ID,\n computed,\n inject,\n makeEnvironmentProviders,\n provideEnvironmentInitializer,\n signal,\n} from '@angular/core';\nimport {\n type HermesZoomLevel,\n type HermesZoomState,\n applyTextScale,\n normalizeTextScale,\n readZoomState,\n watchZoomState,\n zoomRootClasses,\n} from '@trismegisto/primitives';\n\n/**\n * Nível de zoom da página como signal, para reflow (WCAG 1.4.10).\n *\n * O nível vem da largura da janela em pixels CSS, que é o que o zoom realmente muda (ver\n * `@trismegisto/primitives`, `zoom.ts`): `'x2'` abaixo de `lg` (≈ 200% numa tela comum), `'x4'` abaixo de `sm`\n * (≈ 400%). Janela estreita sem zoom cai no mesmo nível, de propósito.\n *\n * Enquanto existir, o serviço mantém classes cumulativas no `<html>`: `hm-zoom-x2` (200% ou mais) e\n * `hm-zoom-x4` (400% ou mais). O `@trismegisto/core` reage a elas (`_zoom.scss`: o modal vira tela cheia a\n * 400%) e o app pode escrever as próprias regras com o mesmo nome, sem repetir números de breakpoint.\n * Para ter as classes desde o início, registre `provideHermesZoom()` no bootstrap; sem isso, o serviço\n * nasce na primeira injeção.\n *\n * ```ts\n * readonly zoom = inject(HermesZoomService);\n * // @if (zoom.zoomed()) { layout empilhado } @else { lado a lado }\n * ```\n *\n * **Tamanho do texto.** `setTextScale(1.25)` aumenta o texto e a altura dos controles do app inteiro\n * (`--hm-text-scale` no `<html>`, que multiplica os tokens `--hm-font-size-*` e `--hm-control-height*`).\n * É a escolha da pessoa dentro do app (Configurações › Acessibilidade, no spine), independente do zoom do\n * navegador: não muda a largura em pixels CSS, então não mexe no `level`. Quem persiste é o app.\n *\n * Diferenças em relação ao Old: o sinal substitui o `Observable` que emitia fora da zona (o site e os apps\n * são zoneless); `matchMedia` substitui o `ResizeObserver` (só avisa ao cruzar um limite, sem o erro\n * \"ResizeObserver loop\"); e a diretiva `[zoomLevelIndicator]` não foi portada — a classe no `<html>` já\n * alcança qualquer elemento por seletor descendente.\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesZoomService {\n readonly #document = inject(DOCUMENT);\n readonly #view = isPlatformBrowser(inject(PLATFORM_ID)) ? this.#document.defaultView : null;\n readonly #state = signal<HermesZoomState>(readZoomState(this.#view ?? undefined));\n #applied: string[] = [];\n\n /** Nível atual: `'none'`, `'x2'` (200% ou mais) ou `'x4'` (400% ou mais). */\n readonly level = computed<HermesZoomLevel>(() => this.#state().level);\n\n /**\n * `devicePixelRatio` atual. Só informativo: mistura zoom com a densidade da tela, então não serve para\n * decidir layout (use `level`).\n */\n readonly pixelRatio = computed(() => this.#state().pixelRatio);\n\n /** `true` com zoom de 200% ou mais (nível `'x2'` ou `'x4'`). */\n readonly zoomed = computed(() => this.#state().level !== 'none');\n\n readonly #textScale = signal(1);\n /** Tamanho do texto escolhido no app (1 = 100%). Ver `setTextScale`. */\n readonly textScale = this.#textScale.asReadonly();\n\n /** Aplica o tamanho do texto (multiplicador entre 0,75 e 2; os oferecidos estão em `HERMES_TEXT_SCALES`). */\n setTextScale(scale: number): void {\n const value = normalizeTextScale(scale);\n this.#textScale.set(value);\n applyTextScale(this.#view ? this.#document.documentElement : null, value);\n }\n\n constructor() {\n this.#applyClasses(this.#state().level);\n const stop = watchZoomState(this.#view ?? undefined, (state) => {\n this.#state.set(state);\n this.#applyClasses(state.level);\n });\n inject(DestroyRef).onDestroy(() => {\n stop();\n this.#applyClasses('none');\n applyTextScale(this.#view ? this.#document.documentElement : null, 1);\n });\n }\n\n #applyClasses(level: HermesZoomLevel): void {\n const root = this.#document.documentElement;\n const next = zoomRootClasses(level);\n this.#applied.filter((c) => !next.includes(c)).forEach((c) => root.classList.remove(c));\n next.forEach((c) => root.classList.add(c));\n this.#applied = next;\n }\n}\n\n/**\n * Liga o `HermesZoomService` no bootstrap, para as classes `hm-zoom-*` estarem no `<html>` desde a\n * primeira pintura (sem esperar algum componente injetar o serviço).\n *\n * ```ts\n * bootstrapApplication(App, { providers: [provideHermesZoom()] });\n * ```\n */\nexport function provideHermesZoom(): EnvironmentProviders {\n return makeEnvironmentProviders([provideEnvironmentInitializer(() => inject(HermesZoomService))]);\n}\n","// Ponto de import `@trismegisto/angular/zoom` (secundário do ng-packagr): nível de zoom da página (reflow,\n// WCAG 1.4.10). Ao criar arquivo público novo na pasta, acrescente a linha.\nexport * from './zoom.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;MAEU,iBAAiB,CAAA;AACnB,IAAA,SAAS,GAAG,MAAM,CAAC,Q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AAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AAoDlC;;;;;;;AAOG;SACa,iBAAiB,GAAA;AAC/B,IAAA,OAAO,wBAAwB,CAAC,CAAC,6BAA6B,CAAC,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC,CAAC;AACnG;;AChHA;AACA;;ACDA;;AAEG;;"}
@@ -1,6 +1,6 @@
1
1
  export { HERMES_CATALOG_LOADERS, HERMES_I18N_CONFIG, HERMES_MESSAGES, HermesI18nService, liveCatalog, preloadHermesCatalog, provideHermesI18n, provideHermesMessages } from '@trismegisto/angular/i18n';
2
2
  export { HermesDatePipe, HermesDateTimePipe, HermesTranslatePipe, formatHermesDate, hermesDateOptions, toHermesDate, translateMessage } from '@trismegisto/angular/pipes';
3
- export { CERTIFICATE_NAME_FIELDS, CERTIFICATE_WARNING_DAYS, DEFAULT_WORKSPACE_PERSISTENCE_CONFIG, EMPTY_DATE_RANGE, EMPTY_GRID_QUERY, EMPTY_SELECTION, GRID_FILTER_OPERATORS, HERMES_FAMILIES, HERMES_MESSAGES_PT_BR, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HOVER_CLOSE_DELAY, HOVER_OPEN_DELAY, HermesLoadingState, INITIAL_PAGE, RICH_TEXT_DEFAULT_TOOLS, applyMenuItemChange, certificateValidity, createTabBarStore, createWorkspaceStore, cyclicPanelNeighbor, displayDatePattern, dropZone, findPanelContainingTab, findPanelTabs, formatDisplayDate, formatMessage, initialColumnState, isValidPersistedWorkspace, loadWorkspace, menuRadioValue, mergeCatalog, mergeMessages, normalizeDateRange, normalizeRichTextUrl, panelIdsInOrder, parseDisplayDate, pluralMessage, restoreWorkspaceStore, richTextLength, richTextPlainText, richTextSchema, sanitizeRichText, saveWorkspace, toPersistedWorkspace, workspaceKeyAction } from '@trismegisto/primitives';
3
+ export { CERTIFICATE_NAME_FIELDS, CERTIFICATE_WARNING_DAYS, DEFAULT_WORKSPACE_PERSISTENCE_CONFIG, EMPTY_DATE_RANGE, EMPTY_GRID_QUERY, EMPTY_SELECTION, GRID_FILTER_OPERATORS, HERMES_FAMILIES, HERMES_MESSAGES_PT_BR, HERMES_TEXT_SCALES, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HOVER_CLOSE_DELAY, HOVER_OPEN_DELAY, HermesLoadingState, INITIAL_PAGE, RICH_TEXT_DEFAULT_TOOLS, applyMenuItemChange, certificateValidity, createTabBarStore, createWorkspaceStore, cyclicPanelNeighbor, displayDatePattern, dropZone, findPanelContainingTab, findPanelTabs, formatDisplayDate, formatMessage, initialColumnState, isValidPersistedWorkspace, loadWorkspace, menuRadioValue, mergeCatalog, mergeMessages, normalizeDateRange, normalizeRichTextUrl, panelIdsInOrder, parseDisplayDate, pluralMessage, restoreWorkspaceStore, richTextLength, richTextPlainText, richTextSchema, sanitizeRichText, saveWorkspace, toPersistedWorkspace, workspaceKeyAction } from '@trismegisto/primitives';
4
4
  export { HERMES_THEME_CONFIG, HermesThemeDirective, HermesThemeService } from '@trismegisto/angular/theme';
5
5
  export { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';
6
6
  export { AlertComponent, AlertGroupComponent, HermesAlertGroup } from '@trismegisto/angular/alert';
@@ -76,6 +76,7 @@ export { TimelineComponent, TimelineItemComponent } from '@trismegisto/angular/t
76
76
  export { AvatarGroupComponent } from '@trismegisto/angular/avatar-group';
77
77
  export { DualListComponent } from '@trismegisto/angular/dual-list';
78
78
  export { ReorderListComponent } from '@trismegisto/angular/reorder-list';
79
+ export { ListEditorComponent } from '@trismegisto/angular/list-editor';
79
80
  export { DragHandleDirective, DragPlaceholderDirective, DragPreviewDirective, DraggableDirective, DropZoneDirective, HERMES_DRAG_DROP, HM_SORTABLE_CONTAINER, HermesDragDropService, SortableDirective, accessibleName, byDocumentOrder, hermesDropAccepts } from '@trismegisto/angular/drag-drop';
80
81
  export { HERMES_KANBAN, HM_KANBAN, KanbanCardDirective, KanbanColumnActionsDirective, KanbanColumnComponent, KanbanComponent } from '@trismegisto/angular/kanban';
81
82
  export { HERMES_SHORTCUT_CONFIG, HermesShortcutService, ShortcutDirective, ShortcutListComponent, provideHermesShortcuts } from '@trismegisto/angular/shortcut-list';
@@ -84,7 +85,7 @@ export { WizardComponent } from '@trismegisto/angular/wizard';
84
85
  export { CopyButtonComponent } from '@trismegisto/angular/copy-button';
85
86
  export { CodeLanguagesService, CodeViewerComponent, provideCodeLanguages } from '@trismegisto/angular/code-viewer';
86
87
  export { CodeDiffComponent } from '@trismegisto/angular/code-diff';
87
- export { AnimatedNumberComponent, FlipDirective, RevealDirective } from '@trismegisto/angular/motion';
88
+ export { AnimatedNumberComponent, FlipDirective, HermesMotionService, RevealDirective } from '@trismegisto/angular/motion';
88
89
  export { ThemeBuilderComponent } from '@trismegisto/angular/theme-builder';
89
90
  export { SearchFieldComponent } from '@trismegisto/angular/search-field';
90
91
  export { ToolbarComponent } from '@trismegisto/angular/toolbar';
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular.mjs","sources":["../../src/public-api.ts","../../src/trismegisto-angular.ts"],"sourcesContent":["// i18n\nexport { preloadHermesCatalog, liveCatalog, provideHermesI18n, provideHermesMessages, type HermesI18nConfig, HERMES_I18N_CONFIG, type HermesCatalogLoader, HERMES_CATALOG_LOADERS, HermesI18nService, HERMES_MESSAGES } from '@trismegisto/angular/i18n';\n// pipes de tradução e de data/hora (idioma do HermesI18nService)\nexport { translateMessage, HermesTranslatePipe } from '@trismegisto/angular/pipes';\nexport { HermesDatePipe, HermesDateTimePipe } from '@trismegisto/angular/pipes';\nexport { toHermesDate, hermesDateOptions, formatHermesDate, type HermesDatePreset, type HermesDateInput, type HermesDateKind } from '@trismegisto/angular/pipes';\nexport {\n HERMES_MESSAGES_PT_BR,\n type HermesMessages,\n type HermesMessagesOverride,\n type CatalogOverride,\n type MessageParams,\n type PluralMessage,\n formatMessage,\n mergeCatalog,\n mergeMessages,\n pluralMessage,\n} from '@trismegisto/primitives';\n\n// tema\nexport { HERMES_THEME_CONFIG, HermesThemeService } from '@trismegisto/angular/theme';\nexport { HermesThemeDirective } from '@trismegisto/angular/theme';\nexport { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';\nexport { type HermesZoomLevel, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES } from '@trismegisto/primitives';\nexport { HERMES_FAMILIES, type HermesFamily, type HermesThemeName, type HermesDensity, type HermesThemeMode } from '@trismegisto/primitives';\nexport { HermesLoadingState } from '@trismegisto/primitives';\n\n// tipos compartilhados (definidos em @trismegisto/primitives, comuns a Angular/React)\nexport type {\n AlertVariant,\n ButtonEmphasis,\n ButtonIntent,\n ButtonSize,\n IconButtonEmphasis,\n ModalSize,\n HermesIcon,\n IconBadge,\n MenuItem,\n MenuItemChange,\n MenuItemType,\n PopoverAlign,\n PopoverAnchor,\n PopoverSide,\n SidebarMode,\n TabBarState,\n TabReorder,\n} from '@trismegisto/primitives';\nexport { createTabBarStore } from '@trismegisto/primitives';\n\n// componentes\nexport { type AlertSize, AlertComponent } from '@trismegisto/angular/alert';\nexport { AlertGroupComponent } from '@trismegisto/angular/alert';\nexport { HermesAlertGroup } from '@trismegisto/angular/alert';\nexport type { AlertAppearance } from '@trismegisto/primitives';\nexport { type ButtonGroupRegistry, HM_BUTTON_GROUP, ButtonComponent } from '@trismegisto/angular/button';\nexport { ButtonGroupComponent } from '@trismegisto/angular/button-group';\nexport { type DropdownPosition, DropdownComponent, DropdownTriggerDirective, DropdownIfOpenDirective, DropdownItemDirective, DropdownMenuComponent, HERMES_DROPDOWN } from '@trismegisto/angular/dropdown';\nexport { CheckboxComponent } from '@trismegisto/angular/checkbox';\nexport {\n CheckboxGroupComponent,\n type CheckboxGroupOption,\n type CheckboxGroupLayout,\n} from '@trismegisto/angular/checkbox-group';\nexport { CodeInputComponent } from '@trismegisto/angular/code-input';\nexport { type InputType, type InputValue, type InputMaskValue, type InputMode, InputComponent } from '@trismegisto/angular/input';\nexport { type FieldType, FieldComponent } from '@trismegisto/angular/field';\nexport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nexport { DateRangeValidators } from '@trismegisto/angular/forms';\nexport { CalendarComponent } from '@trismegisto/angular/date-picker';\nexport { DatePickerComponent } from '@trismegisto/angular/date-picker';\nexport { DateRangePickerComponent, type DateRangePreset, type DateRangePresetOption, type DateRangePresetId } from '@trismegisto/angular/date-picker';\nexport { type CalendarEvent, type CalendarEventColor, type EventCalendarRange, type EventCalendarView, type EventCalendarDateClick, type EventCalendarRangeChange, EventCalendarComponent } from '@trismegisto/angular/event-calendar';\nexport { TimePickerComponent } from '@trismegisto/angular/time-picker';\nexport { type SliderModelValue, type SliderOrientation, type SliderSize, type SliderTooltip, SliderComponent } from '@trismegisto/angular/slider';\nexport { type FabPosition, type FabSize, type FabAction, FabComponent } from '@trismegisto/angular/fab';\nexport { type IconSize, type IconStatus, type IconDirection, type IconFlip, IconComponent } from '@trismegisto/angular/icon';\nexport { provideHermesIcons, provideHermesIconLoader } from '@trismegisto/angular/icon';\nexport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nexport {\n type ToggleGroupValue,\n type ToggleGroupAppearance,\n type ToggleGroupSize,\n type ToggleGroupOrientation,\n ToggleGroupComponent,\n} from '@trismegisto/angular/toggle-group';\nexport { ToggleGroupItemComponent } from '@trismegisto/angular/toggle-group';\nexport { HermesToggleGroup } from '@trismegisto/angular/toggle-group';\nexport { type ItemAppearance, type ItemSize, ItemComponent } from '@trismegisto/angular/item';\nexport { ItemGroupComponent } from '@trismegisto/angular/item';\nexport { type HermesItemGroup, HM_ITEM_GROUP } from '@trismegisto/angular/item';\nexport { type EmptyAppearance, type EmptySize, type EmptyHeadingLevel, EmptyComponent } from '@trismegisto/angular/empty';\n// Ilustrações: NÃO reexportadas aqui de propósito. O `hm-state-screen` as carrega por `@defer` (chunk\n// sob demanda); reexportá-las na raiz faria o bundler do app levá-las todas no carregamento inicial.\n// Uso direto: `import { IllustrationErrorComponent } from '@trismegisto/angular/illustration-error'`.\nexport { type StateScreenSituation, StateScreenComponent } from '@trismegisto/angular/state-screen';\nexport { statePagePreset, type StatePageKind, type StatePageVisual, type StatePagePreset, STATE_PAGE_VISUALS, STATE_PAGE_PRESETS, StatePageComponent } from '@trismegisto/angular/state-page';\nexport { SelectComponent } from '@trismegisto/angular/select';\nexport { ModalComponent } from '@trismegisto/angular/modal';\nexport { HERMES_DIALOG_DATA, type HermesDialogConfig, type HermesConfirmOptions, HermesDialogRef } from '@trismegisto/angular/dialog';\nexport { HermesDialogService } from '@trismegisto/angular/dialog';\nexport { type DrawerPosition, DrawerComponent } from '@trismegisto/angular/drawer';\nexport { FormRequiredHintComponent } from '@trismegisto/angular/form-required-hint';\nexport { FloatingWindowComponent } from '@trismegisto/angular/floating-window';\nexport { type HermesOverlayStackEntry, HermesOverlayStack } from '@trismegisto/angular/floating-window';\nexport type { FloatingRect, FloatingWindowState } from '@trismegisto/primitives';\nexport { type HermesCommand, CommandPaletteComponent } from '@trismegisto/angular/command-palette';\nexport { type HermesSearchResult, type HermesSearchGroup, type HermesSearchFn, type HermesSearchSelection, GlobalSearchComponent } from '@trismegisto/angular/global-search';\nexport { type PaginatorVariant, PaginatorComponent } from '@trismegisto/angular/paginator';\nexport { type ComboboxOption, type ComboboxSize, ComboboxComponent } from '@trismegisto/angular/combobox';\nexport { ComboboxMultiComponent } from '@trismegisto/angular/combobox-multi';\nexport { type ChipVariant, type ChipSize, ChipComponent } from '@trismegisto/angular/chip';\nexport { ChipGroupComponent } from '@trismegisto/angular/chip';\nexport { HermesChipGroup } from '@trismegisto/angular/chip';\nexport { type FilterBarField, type FilterBarFieldType, type FilterBarFieldValue, type FilterBarStorage, type FilterBarValue, type SavedFilter, EMPTY_FILTER_BAR_VALUE, applyFilterBar, filterBarGridUnsupported, filterBarToGridQuery, localStorageFilterBarStorage, serializeFilterBarValue, parseFilterBarValue, FilterBarComponent } from '@trismegisto/angular/filter-bar';\nexport { HermesTabGroup, type HermesTabsMode, type HermesTabsOrientation, type HermesTabsOverflow } from '@trismegisto/angular/tabs';\nexport { TabsComponent } from '@trismegisto/angular/tabs';\nexport { TabComponent } from '@trismegisto/angular/tabs';\nexport { TabContentDirective } from '@trismegisto/angular/tabs';\nexport {\n type TextareaSubmitKey,\n TextareaComponent,\n type TextareaAddonSlot,\n TextareaAddonDirective,\n} from '@trismegisto/angular/textarea';\nexport { RichTextComponent, RichTextValidators } from '@trismegisto/angular/rich-text';\nexport {\n type RichTextTool,\n type RichTextFormatTool,\n type RichTextHeadingLevel,\n type RichTextPasteMode,\n type RichTextSchema,\n type RichTextSchemaOptions,\n type RichTextParser,\n RICH_TEXT_DEFAULT_TOOLS,\n richTextSchema,\n sanitizeRichText,\n richTextPlainText,\n richTextLength,\n normalizeRichTextUrl,\n} from '@trismegisto/primitives';\nexport { BulkInputComponent } from '@trismegisto/angular/bulk-input';\nexport type { BulkCase, BulkInvalidItem, BulkInvalidReason, BulkParseOptions, BulkParseResult, BulkSeparator, BulkValidator } from '@trismegisto/primitives';\nexport { type FileUploadSize, type FileUploader, FileUploadComponent } from '@trismegisto/angular/file-upload';\nexport {\n type ImageCropError,\n type ImageCropErrorCode,\n type ImageCropExportOptions,\n type ImageCropInfo,\n type ImageCropOutputType,\n type ImageCropRegion,\n type ImageCropResult,\n type ImageCropRotation,\n type ImageCropShape,\n type ImageCropSource,\n type ImageCropType,\n ImageCropComponent,\n} from '@trismegisto/angular/image-crop';\nexport type { UploadFile, UploadFilePatch, FileUploadStatus, FileRejection, FileRejectionReason } from '@trismegisto/primitives';\nexport {\n type AttachmentStatus,\n AttachmentComponent,\n type AttachmentGroupLayout,\n AttachmentGroupComponent,\n fileIconName,\n fileExtension,\n isImageFile,\n} from '@trismegisto/angular/attachment';\nexport { type HermesDirection, elementDirection, isRtl } from '@trismegisto/angular/direction';\nexport { type RadioOption, type RadioAppearance, type RadioLayout, RadioComponent } from '@trismegisto/angular/radio';\nexport { type SwitchLabelPosition, SwitchComponent } from '@trismegisto/angular/switch';\nexport { type SegmentedOption, type SegmentedControlSize, type SegmentedControlEmphasis, SegmentedControlComponent } from '@trismegisto/angular/segmented-control';\nexport { SettingsDialogComponent } from '@trismegisto/angular/settings';\nexport { SettingsSectionComponent } from '@trismegisto/angular/settings';\nexport { SettingsRowComponent } from '@trismegisto/angular/settings';\nexport { normalizeSettingsText, settingsTextMatches } from '@trismegisto/angular/settings';\nexport type { HermesSettingsCloseHandler } from '@trismegisto/angular/settings';\nexport { HermesAccordionGroup } from '@trismegisto/angular/accordion';\nexport { AccordionComponent } from '@trismegisto/angular/accordion';\nexport { AccordionPanelComponent } from '@trismegisto/angular/accordion';\nexport { AccordionContentDirective } from '@trismegisto/angular/accordion';\nexport { type TreeDropPosition, type TreeLocation, type TreeNode, type TreeSelectionChange, type TreeSelectionMode, type TreeCanDrop, type TreeMoveEvent, type TreeNodeActionEvent, type TreeNodeActions, type TreeChildrenLoader, type TreeChildrenPage, type TreeChildrenResult, type TreeLoadContext, type TreeNodeTemplateContext, TreeNodeTemplateDirective, TreeComponent } from '@trismegisto/angular/tree';\nexport type { PageWindowItem, PaginationState } from '@trismegisto/primitives';\nexport { INITIAL_PAGE } from '@trismegisto/primitives';\nexport type { DateRange, DateValueFormat, IsoDate } from '@trismegisto/primitives';\nexport type { DisplayDatePattern } from '@trismegisto/primitives';\nexport { EMPTY_DATE_RANGE, normalizeDateRange, displayDatePattern, formatDisplayDate, parseDisplayDate } from '@trismegisto/primitives';\nexport { type DataGridColumn, type DataGridExportFormat, type DataGridExportOptions, type DataGridPersistStorage, type DataGridSelectionMode, DataGridComponent, type DataGridRowAction, type DataGridActionConfirm, type DataGridActionTriggered, type DataGridContext, type DataGridFooterContext, type DataGridRowState } from '@trismegisto/angular/data-grid';\nexport { DataGridCellDirective } from '@trismegisto/angular/data-grid';\nexport { DataGridHeaderDirective } from '@trismegisto/angular/data-grid';\nexport { DataGridActionBarComponent } from '@trismegisto/angular/data-grid';\nexport { DataGridColumnFilterComponent } from '@trismegisto/angular/data-grid';\nexport type {\n GridColumn,\n GridColumnState,\n GridColumnType,\n GridColumnFilterValue,\n GridFilterOption,\n GridSelection,\n GridSort,\n SortDirection,\n} from '@trismegisto/primitives';\nexport { EMPTY_SELECTION, initialColumnState } from '@trismegisto/primitives';\n// data grid avançado: tipos do filtro composto, agregação e exportação (o app importa tudo daqui)\nexport type {\n GridFilterOperator,\n GridFilterConnector,\n GridFilterCondition,\n GridFilterQuery,\n GridAggregateFn,\n GridAggregates,\n GridAggregateFormatter,\n GridCsvSeparator,\n} from '@trismegisto/primitives';\nexport { EMPTY_GRID_QUERY, GRID_FILTER_OPERATORS } from '@trismegisto/primitives';\nexport { SessionRecoveryComponent, safeReturnUrl } from '@trismegisto/angular/session-recovery';\nexport { ThemePickerComponent } from '@trismegisto/angular/theme-picker';\n\nexport { HeaderComponent } from '@trismegisto/angular/header';\nexport { MenuComponent } from '@trismegisto/angular/menu';\nexport { ContextMenuDirective } from '@trismegisto/angular/menu';\nexport { type TabItem, TabBarComponent, type TabDragData, type TabReceivedEvent } from '@trismegisto/angular/tab-bar';\nexport { type MenuButtonSize, MenuButtonComponent } from '@trismegisto/angular/menu-button';\nexport { applyMenuItemChange, menuRadioValue, HOVER_OPEN_DELAY, HOVER_CLOSE_DELAY } from '@trismegisto/primitives';\nexport { type MenubarMenu, MenubarComponent } from '@trismegisto/angular/menubar';\nexport {\n HermesNavigationMenu,\n NAVIGATION_MENU_OPEN_DELAY,\n NavigationMenuComponent,\n NavigationMenuItemComponent,\n NavigationMenuLinkComponent,\n} from '@trismegisto/angular/navigation-menu';\nexport { HERMES_SIDEBAR_CONFIG, HermesSidebarService } from '@trismegisto/angular/sidebar';\nexport { HermesSidebarGroup } from '@trismegisto/angular/sidebar';\nexport { SidebarGroupComponent } from '@trismegisto/angular/sidebar';\nexport { SidebarLinkComponent } from '@trismegisto/angular/sidebar';\nexport { type SidebarNode, SidebarNodeComponent } from '@trismegisto/angular/sidebar';\nexport { SidebarComponent } from '@trismegisto/angular/sidebar';\n\n// conversa\nexport { type MessageAlign, type MessageStatus, type MessageContext, HM_MESSAGE, MessageComponent } from '@trismegisto/angular/message';\nexport { type BubbleVariant, type BubbleReaction, BubbleComponent } from '@trismegisto/angular/bubble';\nexport { type MessageDividerVariant, MessageDividerComponent } from '@trismegisto/angular/message-divider';\nexport { type MessageScrollerLive, MessageScrollerComponent } from '@trismegisto/angular/message-scroller';\n\nexport { HermesToastService } from '@trismegisto/angular/toast';\nexport { ToastComponent } from '@trismegisto/angular/toast';\nexport { ToastStackComponent } from '@trismegisto/angular/toast';\n\n// dicas, trilha e progresso\nexport { TooltipDirective } from '@trismegisto/angular/tooltip';\nexport { type ToggletipSide, ToggletipComponent } from '@trismegisto/angular/toggletip';\nexport { PopoverComponent } from '@trismegisto/angular/popover';\nexport { PopoverTriggerDirective } from '@trismegisto/angular/popover';\nexport { type BreadcrumbItem, BreadcrumbComponent } from '@trismegisto/angular/breadcrumb';\nexport { type ProgressIntent, type ProgressSize, ProgressComponent } from '@trismegisto/angular/progress';\n// linha do tempo, pilha de avatares e listas de transferência/ordenação\nexport { TimelineItemComponent } from '@trismegisto/angular/timeline';\nexport { type TimelineOrientation, TimelineComponent } from '@trismegisto/angular/timeline';\nexport type { TimelineDateValue, TimelineOutcome, TimelineStatus } from '@trismegisto/primitives';\nexport { type AvatarGroupPerson, type AvatarGroupSize, AvatarGroupComponent } from '@trismegisto/angular/avatar-group';\nexport { type DualListSize, DualListComponent } from '@trismegisto/angular/dual-list';\nexport type { DualListItem } from '@trismegisto/primitives';\nexport { type ReorderListItem, type ReorderListSize, type ReorderListMove, type ReorderListRemoval, type ReorderListItemContext, ReorderListComponent } from '@trismegisto/angular/reorder-list';\nexport { type DragListOrientation, HERMES_DRAG_DROP, accessibleName, byDocumentOrder, type HermesDragVia, type HermesDropAccepts, type HermesDropEvent, type HermesDropOverEvent, type HermesSortEvent, type HermesDragTemplateContext, type HermesDragItemRef, type HermesDropTargetRef, type HermesSortableContainer, HM_SORTABLE_CONTAINER, HermesDragDropService, DragPreviewDirective, type HermesDragEndEvent, DraggableDirective, DragHandleDirective, hermesDropAccepts, DropZoneDirective, DragPlaceholderDirective, SortableDirective } from '@trismegisto/angular/drag-drop';\nexport { type KanbanColumn, type KanbanMove, type KanbanWipState, HERMES_KANBAN, type KanbanCardContext, type KanbanColumnContext, type KanbanMoveEvent, type KanbanCanMove, type HermesKanbanHost, HM_KANBAN, KanbanComponent, KanbanColumnComponent, KanbanCardDirective, KanbanColumnActionsDirective } from '@trismegisto/angular/kanban';\n// atalhos de teclado: registro, diretiva e painel\nexport { provideHermesShortcuts, type HermesShortcutConfig, HERMES_SHORTCUT_CONFIG, type HermesShortcut, type HermesShortcutItem, HermesShortcutService } from '@trismegisto/angular/shortcut-list';\nexport { type ShortcutAction, ShortcutDirective } from '@trismegisto/angular/shortcut-list';\nexport { ShortcutListComponent } from '@trismegisto/angular/shortcut-list';\nexport type { ShortcutDisplay, ShortcutDisplayStep, ShortcutKeyLabel, ShortcutKeyName, ShortcutPlatform } from '@trismegisto/primitives';\n// etapas e assistente\nexport { HermesStepGroup } from '@trismegisto/angular/stepper';\nexport { type HermesStepGuard, type HermesStepSummaryEntry, type HermesStepSummary, StepComponent } from '@trismegisto/angular/stepper';\nexport { type StepperOrientation, StepperComponent } from '@trismegisto/angular/stepper';\nexport { type WizardMode, WizardComponent } from '@trismegisto/angular/wizard';\n// cópia, busca, barra de ferramentas e cabeçalho de página\nexport { type CopyButtonVariant, CopyButtonComponent } from '@trismegisto/angular/copy-button';\nexport { CodeViewerComponent, CodeLanguagesService, provideCodeLanguages } from '@trismegisto/angular/code-viewer';\nexport { type CodeDiffLayoutInput, type CodeDiffCopyTarget, CodeDiffComponent } from '@trismegisto/angular/code-diff';\nexport type { CodeLanguage, CodeLanguageLoader, CodeTokenKind, CodeToken, CodeLineTokens, CodeViewerHeader, CodeViewerVirtualize, CodeDiffLayout, TextDiff, TextDiffSummary, TextDiffWhitespace, TextDiffIntraline } from '@trismegisto/primitives';\nexport { AnimatedNumberComponent, FlipDirective, RevealDirective } from '@trismegisto/angular/motion';\nexport { type ThemeBuilderFormat, ThemeBuilderComponent } from '@trismegisto/angular/theme-builder';\nexport { type SearchFieldSize, SearchFieldComponent } from '@trismegisto/angular/search-field';\nexport { ToolbarComponent } from '@trismegisto/angular/toolbar';\nexport { type PageHeaderLevel, PageHeaderComponent } from '@trismegisto/angular/page-header';\nexport { type DividerOrientation, type DividerEmphasis, type DividerThickness, type DividerSpacing, type DividerLabelAlign, DividerComponent } from '@trismegisto/angular/divider';\nexport { type DescriptionListItem, type DescriptionListValueChange, type DescriptionListLabelPosition, type DescriptionListVariant, DescriptionListComponent } from '@trismegisto/angular/description-list';\nexport { DescriptionItemComponent } from '@trismegisto/angular/description-list';\nexport { type CertificateViewerHeadingLevel, CertificateViewerComponent } from '@trismegisto/angular/certificate-viewer';\nexport {\n type CertificateAltName,\n type CertificateAltNameType,\n type CertificateDate,\n type CertificateDistinguishedName,\n type CertificateInfo,\n type CertificateKeyUsage,\n type CertificateValidity,\n type CertificateValidityOptions,\n type CertificateValidityState,\n CERTIFICATE_NAME_FIELDS,\n CERTIFICATE_WARNING_DAYS,\n certificateValidity,\n} from '@trismegisto/primitives';\nexport { type PropertyDefinition, type PropertyGroup, type PropertyOption, type PropertyType, type PropertyValues, type PropertyChangeEvent, PropertyViewComponent } from '@trismegisto/angular/property-view';\nexport { type CardSelectionMode, type CardContainerItemContext, type CardContainerPersistStorage, type CardVisibilityChange, CardContainerItemDirective, CardContainerEmptyDirective, CardContainerComponent } from '@trismegisto/angular/card-container';\nexport { type LegendIntent, type LegendOrientation, type LegendMarker, type LegendItem, LegendComponent } from '@trismegisto/angular/legend';\n\nexport { SplitterComponent } from '@trismegisto/angular/splitter';\nexport { SplitterPanelComponent } from '@trismegisto/angular/splitter';\nexport type { SplitterOrientation } from '@trismegisto/primitives';\nexport { type WorkspaceTabContext, WorkspaceComponent } from '@trismegisto/angular/workspace';\nexport { WorkspaceNodeComponent } from '@trismegisto/angular/workspace';\nexport { provideHermesWorkspacePersistence, createPersistedWorkspaceStore, HERMES_WORKSPACE_PERSISTENCE_CONFIG } from '@trismegisto/angular/workspace-persistence';\n\n// tipos/stores compartilhados adicionais\nexport type { AlertVariant as ToastVariant, ToastItem, ToastPushOptions, ToastState, ToastAction } from '@trismegisto/primitives';\nexport type {\n DropZone,\n PanelLeaf,\n PanelNode,\n PanelSplit,\n PersistedPanelNode,\n PersistedWorkspace,\n SplitDirection,\n SplitPath,\n SplitStep,\n WorkspaceKeyAction,\n WorkspacePersistenceConfig,\n WorkspaceState,\n WorkspaceStorage,\n WorkspaceStore,\n} from '@trismegisto/primitives';\nexport {\n DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n createWorkspaceStore,\n cyclicPanelNeighbor,\n dropZone,\n findPanelContainingTab,\n findPanelTabs,\n isValidPersistedWorkspace,\n loadWorkspace,\n panelIdsInOrder,\n restoreWorkspaceStore,\n saveWorkspace,\n toPersistedWorkspace,\n workspaceKeyAction,\n} from '@trismegisto/primitives';\n\n// widgets\nexport { type AccountAvatarSize, AccountAvatarComponent } from '@trismegisto/angular/account-avatar';\nexport { GeometricTextureComponent } from '@trismegisto/angular/geometric-texture';\nexport { LoadingSquareComponent } from '@trismegisto/angular/loading-square';\nexport { type SpinnerSize, SpinnerComponent } from '@trismegisto/angular/spinner';\nexport { BadgeComponent } from '@trismegisto/angular/badge';\nexport { type TagColor, TagComponent } from '@trismegisto/angular/tag';\nexport { SkeletonComponent } from '@trismegisto/angular/skeleton';\nexport { type CardMediaPosition, CardComponent } from '@trismegisto/angular/card';\nexport { type StatCardSize, type StatCardDetail, type StatCardTrendDirection, type StatCardTrend, StatCardComponent } from '@trismegisto/angular/stat-card';\nexport { type StatGroupMetric, StatGroupComponent } from '@trismegisto/angular/stat-group';\nexport { CarouselComponent } from '@trismegisto/angular/carousel';\nexport type { CarouselSlide } from '@trismegisto/primitives';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;ACAA;;AAEG"}
1
+ {"version":3,"file":"trismegisto-angular.mjs","sources":["../../src/public-api.ts","../../src/trismegisto-angular.ts"],"sourcesContent":["// i18n\nexport { preloadHermesCatalog, liveCatalog, provideHermesI18n, provideHermesMessages, type HermesI18nConfig, HERMES_I18N_CONFIG, type HermesCatalogLoader, HERMES_CATALOG_LOADERS, HermesI18nService, HERMES_MESSAGES } from '@trismegisto/angular/i18n';\n// pipes de tradução e de data/hora (idioma do HermesI18nService)\nexport { translateMessage, HermesTranslatePipe } from '@trismegisto/angular/pipes';\nexport { HermesDatePipe, HermesDateTimePipe } from '@trismegisto/angular/pipes';\nexport { toHermesDate, hermesDateOptions, formatHermesDate, type HermesDatePreset, type HermesDateInput, type HermesDateKind } from '@trismegisto/angular/pipes';\nexport {\n HERMES_MESSAGES_PT_BR,\n type HermesMessages,\n type HermesMessagesOverride,\n type CatalogOverride,\n type MessageParams,\n type PluralMessage,\n formatMessage,\n mergeCatalog,\n mergeMessages,\n pluralMessage,\n} from '@trismegisto/primitives';\n\n// tema\nexport { HERMES_THEME_CONFIG, HermesThemeService } from '@trismegisto/angular/theme';\nexport { HermesThemeDirective } from '@trismegisto/angular/theme';\nexport { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';\nexport { type HermesZoomLevel, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HERMES_TEXT_SCALES } from '@trismegisto/primitives';\nexport { type HermesMotionPreference, type HermesRegionalFormat, type TimeHourCycle, type Weekday } from '@trismegisto/primitives';\nexport { HERMES_FAMILIES, type HermesFamily, type HermesThemeName, type HermesDensity, type HermesThemeMode } from '@trismegisto/primitives';\nexport { HermesLoadingState } from '@trismegisto/primitives';\n\n// tipos compartilhados (definidos em @trismegisto/primitives, comuns a Angular/React)\nexport type {\n AlertVariant,\n ButtonEmphasis,\n ButtonIntent,\n ButtonSize,\n IconButtonEmphasis,\n ModalSize,\n HermesIcon,\n IconBadge,\n MenuItem,\n MenuItemChange,\n MenuItemType,\n PopoverAlign,\n PopoverAnchor,\n PopoverSide,\n SidebarMode,\n TabBarState,\n TabReorder,\n} from '@trismegisto/primitives';\nexport { createTabBarStore } from '@trismegisto/primitives';\n\n// componentes\nexport { type AlertSize, AlertComponent } from '@trismegisto/angular/alert';\nexport { AlertGroupComponent } from '@trismegisto/angular/alert';\nexport { HermesAlertGroup } from '@trismegisto/angular/alert';\nexport type { AlertAppearance } from '@trismegisto/primitives';\nexport { type ButtonGroupRegistry, HM_BUTTON_GROUP, ButtonComponent } from '@trismegisto/angular/button';\nexport { ButtonGroupComponent } from '@trismegisto/angular/button-group';\nexport { type DropdownPosition, DropdownComponent, DropdownTriggerDirective, DropdownIfOpenDirective, DropdownItemDirective, DropdownMenuComponent, HERMES_DROPDOWN } from '@trismegisto/angular/dropdown';\nexport { CheckboxComponent } from '@trismegisto/angular/checkbox';\nexport {\n CheckboxGroupComponent,\n type CheckboxGroupOption,\n type CheckboxGroupLayout,\n} from '@trismegisto/angular/checkbox-group';\nexport { CodeInputComponent } from '@trismegisto/angular/code-input';\nexport { type InputType, type InputValue, type InputMaskValue, type InputMode, InputComponent } from '@trismegisto/angular/input';\nexport { type FieldType, FieldComponent } from '@trismegisto/angular/field';\nexport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nexport { DateRangeValidators } from '@trismegisto/angular/forms';\nexport { CalendarComponent } from '@trismegisto/angular/date-picker';\nexport { DatePickerComponent } from '@trismegisto/angular/date-picker';\nexport { DateRangePickerComponent, type DateRangePreset, type DateRangePresetOption, type DateRangePresetId } from '@trismegisto/angular/date-picker';\nexport { type CalendarEvent, type CalendarEventColor, type EventCalendarRange, type EventCalendarView, type EventCalendarDateClick, type EventCalendarRangeChange, EventCalendarComponent } from '@trismegisto/angular/event-calendar';\nexport { TimePickerComponent } from '@trismegisto/angular/time-picker';\nexport { type SliderModelValue, type SliderOrientation, type SliderSize, type SliderTooltip, SliderComponent } from '@trismegisto/angular/slider';\nexport { type FabPosition, type FabSize, type FabAction, FabComponent } from '@trismegisto/angular/fab';\nexport { type IconSize, type IconStatus, type IconDirection, type IconFlip, IconComponent } from '@trismegisto/angular/icon';\nexport { provideHermesIcons, provideHermesIconLoader } from '@trismegisto/angular/icon';\nexport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nexport {\n type ToggleGroupValue,\n type ToggleGroupAppearance,\n type ToggleGroupSize,\n type ToggleGroupOrientation,\n ToggleGroupComponent,\n} from '@trismegisto/angular/toggle-group';\nexport { ToggleGroupItemComponent } from '@trismegisto/angular/toggle-group';\nexport { HermesToggleGroup } from '@trismegisto/angular/toggle-group';\nexport { type ItemAppearance, type ItemSize, ItemComponent } from '@trismegisto/angular/item';\nexport { ItemGroupComponent } from '@trismegisto/angular/item';\nexport { type HermesItemGroup, HM_ITEM_GROUP } from '@trismegisto/angular/item';\nexport { type EmptyAppearance, type EmptySize, type EmptyHeadingLevel, EmptyComponent } from '@trismegisto/angular/empty';\n// Ilustrações: NÃO reexportadas aqui de propósito. O `hm-state-screen` as carrega por `@defer` (chunk\n// sob demanda); reexportá-las na raiz faria o bundler do app levá-las todas no carregamento inicial.\n// Uso direto: `import { IllustrationErrorComponent } from '@trismegisto/angular/illustration-error'`.\nexport { type StateScreenSituation, StateScreenComponent } from '@trismegisto/angular/state-screen';\nexport { statePagePreset, type StatePageKind, type StatePageVisual, type StatePagePreset, STATE_PAGE_VISUALS, STATE_PAGE_PRESETS, StatePageComponent } from '@trismegisto/angular/state-page';\nexport { SelectComponent } from '@trismegisto/angular/select';\nexport { ModalComponent } from '@trismegisto/angular/modal';\nexport { HERMES_DIALOG_DATA, type HermesDialogConfig, type HermesConfirmOptions, HermesDialogRef } from '@trismegisto/angular/dialog';\nexport { HermesDialogService } from '@trismegisto/angular/dialog';\nexport { type DrawerPosition, DrawerComponent } from '@trismegisto/angular/drawer';\nexport { FormRequiredHintComponent } from '@trismegisto/angular/form-required-hint';\nexport { FloatingWindowComponent } from '@trismegisto/angular/floating-window';\nexport { type HermesOverlayStackEntry, HermesOverlayStack } from '@trismegisto/angular/floating-window';\nexport type { FloatingRect, FloatingWindowState } from '@trismegisto/primitives';\nexport { type HermesCommand, CommandPaletteComponent } from '@trismegisto/angular/command-palette';\nexport { type HermesSearchResult, type HermesSearchGroup, type HermesSearchFn, type HermesSearchSelection, GlobalSearchComponent } from '@trismegisto/angular/global-search';\nexport { type PaginatorVariant, PaginatorComponent } from '@trismegisto/angular/paginator';\nexport { type ComboboxOption, type ComboboxSize, ComboboxComponent } from '@trismegisto/angular/combobox';\nexport { ComboboxMultiComponent } from '@trismegisto/angular/combobox-multi';\nexport { type ChipVariant, type ChipSize, ChipComponent } from '@trismegisto/angular/chip';\nexport { ChipGroupComponent } from '@trismegisto/angular/chip';\nexport { HermesChipGroup } from '@trismegisto/angular/chip';\nexport { type FilterBarField, type FilterBarFieldType, type FilterBarFieldValue, type FilterBarStorage, type FilterBarValue, type SavedFilter, EMPTY_FILTER_BAR_VALUE, applyFilterBar, filterBarGridUnsupported, filterBarToGridQuery, localStorageFilterBarStorage, serializeFilterBarValue, parseFilterBarValue, FilterBarComponent } from '@trismegisto/angular/filter-bar';\nexport { HermesTabGroup, type HermesTabsMode, type HermesTabsOrientation, type HermesTabsOverflow } from '@trismegisto/angular/tabs';\nexport { TabsComponent } from '@trismegisto/angular/tabs';\nexport { TabComponent } from '@trismegisto/angular/tabs';\nexport { TabContentDirective } from '@trismegisto/angular/tabs';\nexport {\n type TextareaSubmitKey,\n TextareaComponent,\n type TextareaAddonSlot,\n TextareaAddonDirective,\n} from '@trismegisto/angular/textarea';\nexport { RichTextComponent, RichTextValidators } from '@trismegisto/angular/rich-text';\nexport {\n type RichTextTool,\n type RichTextFormatTool,\n type RichTextHeadingLevel,\n type RichTextPasteMode,\n type RichTextSchema,\n type RichTextSchemaOptions,\n type RichTextParser,\n RICH_TEXT_DEFAULT_TOOLS,\n richTextSchema,\n sanitizeRichText,\n richTextPlainText,\n richTextLength,\n normalizeRichTextUrl,\n} from '@trismegisto/primitives';\nexport { BulkInputComponent } from '@trismegisto/angular/bulk-input';\nexport type { BulkCase, BulkInvalidItem, BulkInvalidReason, BulkParseOptions, BulkParseResult, BulkSeparator, BulkValidator } from '@trismegisto/primitives';\nexport { type FileUploadSize, type FileUploader, FileUploadComponent } from '@trismegisto/angular/file-upload';\nexport {\n type ImageCropError,\n type ImageCropErrorCode,\n type ImageCropExportOptions,\n type ImageCropInfo,\n type ImageCropOutputType,\n type ImageCropRegion,\n type ImageCropResult,\n type ImageCropRotation,\n type ImageCropShape,\n type ImageCropSource,\n type ImageCropType,\n ImageCropComponent,\n} from '@trismegisto/angular/image-crop';\nexport type { UploadFile, UploadFilePatch, FileUploadStatus, FileRejection, FileRejectionReason } from '@trismegisto/primitives';\nexport {\n type AttachmentStatus,\n AttachmentComponent,\n type AttachmentGroupLayout,\n AttachmentGroupComponent,\n fileIconName,\n fileExtension,\n isImageFile,\n} from '@trismegisto/angular/attachment';\nexport { type HermesDirection, elementDirection, isRtl } from '@trismegisto/angular/direction';\nexport { type RadioOption, type RadioAppearance, type RadioLayout, RadioComponent } from '@trismegisto/angular/radio';\nexport { type SwitchLabelPosition, SwitchComponent } from '@trismegisto/angular/switch';\nexport { type SegmentedOption, type SegmentedControlSize, type SegmentedControlEmphasis, SegmentedControlComponent } from '@trismegisto/angular/segmented-control';\nexport { SettingsDialogComponent } from '@trismegisto/angular/settings';\nexport { SettingsSectionComponent } from '@trismegisto/angular/settings';\nexport { SettingsRowComponent } from '@trismegisto/angular/settings';\nexport { normalizeSettingsText, settingsTextMatches } from '@trismegisto/angular/settings';\nexport type { HermesSettingsCloseHandler } from '@trismegisto/angular/settings';\nexport { HermesAccordionGroup } from '@trismegisto/angular/accordion';\nexport { AccordionComponent } from '@trismegisto/angular/accordion';\nexport { AccordionPanelComponent } from '@trismegisto/angular/accordion';\nexport { AccordionContentDirective } from '@trismegisto/angular/accordion';\nexport { type TreeDropPosition, type TreeLocation, type TreeNode, type TreeSelectionChange, type TreeSelectionMode, type TreeCanDrop, type TreeMoveEvent, type TreeNodeActionEvent, type TreeNodeActions, type TreeChildrenLoader, type TreeChildrenPage, type TreeChildrenResult, type TreeLoadContext, type TreeNodeTemplateContext, TreeNodeTemplateDirective, TreeComponent } from '@trismegisto/angular/tree';\nexport type { PageWindowItem, PaginationState } from '@trismegisto/primitives';\nexport { INITIAL_PAGE } from '@trismegisto/primitives';\nexport type { DateRange, DateValueFormat, IsoDate } from '@trismegisto/primitives';\nexport type { DisplayDatePattern } from '@trismegisto/primitives';\nexport { EMPTY_DATE_RANGE, normalizeDateRange, displayDatePattern, formatDisplayDate, parseDisplayDate } from '@trismegisto/primitives';\nexport { type DataGridColumn, type DataGridExportFormat, type DataGridExportOptions, type DataGridPersistStorage, type DataGridSelectionMode, DataGridComponent, type DataGridRowAction, type DataGridActionConfirm, type DataGridActionTriggered, type DataGridContext, type DataGridFooterContext, type DataGridRowState } from '@trismegisto/angular/data-grid';\nexport { DataGridCellDirective } from '@trismegisto/angular/data-grid';\nexport { DataGridHeaderDirective } from '@trismegisto/angular/data-grid';\nexport { DataGridActionBarComponent } from '@trismegisto/angular/data-grid';\nexport { DataGridColumnFilterComponent } from '@trismegisto/angular/data-grid';\nexport type {\n GridColumn,\n GridColumnState,\n GridColumnType,\n GridColumnFilterValue,\n GridFilterOption,\n GridSelection,\n GridSort,\n SortDirection,\n} from '@trismegisto/primitives';\nexport { EMPTY_SELECTION, initialColumnState } from '@trismegisto/primitives';\n// data grid avançado: tipos do filtro composto, agregação e exportação (o app importa tudo daqui)\nexport type {\n GridFilterOperator,\n GridFilterConnector,\n GridFilterCondition,\n GridFilterQuery,\n GridAggregateFn,\n GridAggregates,\n GridAggregateFormatter,\n GridCsvSeparator,\n} from '@trismegisto/primitives';\nexport { EMPTY_GRID_QUERY, GRID_FILTER_OPERATORS } from '@trismegisto/primitives';\nexport { SessionRecoveryComponent, safeReturnUrl } from '@trismegisto/angular/session-recovery';\nexport { ThemePickerComponent } from '@trismegisto/angular/theme-picker';\n\nexport { HeaderComponent } from '@trismegisto/angular/header';\nexport { MenuComponent } from '@trismegisto/angular/menu';\nexport { ContextMenuDirective } from '@trismegisto/angular/menu';\nexport { type TabItem, TabBarComponent, type TabDragData, type TabReceivedEvent } from '@trismegisto/angular/tab-bar';\nexport { type MenuButtonSize, MenuButtonComponent } from '@trismegisto/angular/menu-button';\nexport { applyMenuItemChange, menuRadioValue, HOVER_OPEN_DELAY, HOVER_CLOSE_DELAY } from '@trismegisto/primitives';\nexport { type MenubarMenu, MenubarComponent } from '@trismegisto/angular/menubar';\nexport {\n HermesNavigationMenu,\n NAVIGATION_MENU_OPEN_DELAY,\n NavigationMenuComponent,\n NavigationMenuItemComponent,\n NavigationMenuLinkComponent,\n} from '@trismegisto/angular/navigation-menu';\nexport { HERMES_SIDEBAR_CONFIG, HermesSidebarService } from '@trismegisto/angular/sidebar';\nexport { HermesSidebarGroup } from '@trismegisto/angular/sidebar';\nexport { SidebarGroupComponent } from '@trismegisto/angular/sidebar';\nexport { SidebarLinkComponent } from '@trismegisto/angular/sidebar';\nexport { type SidebarNode, SidebarNodeComponent } from '@trismegisto/angular/sidebar';\nexport { SidebarComponent } from '@trismegisto/angular/sidebar';\n\n// conversa\nexport { type MessageAlign, type MessageStatus, type MessageContext, HM_MESSAGE, MessageComponent } from '@trismegisto/angular/message';\nexport { type BubbleVariant, type BubbleReaction, BubbleComponent } from '@trismegisto/angular/bubble';\nexport { type MessageDividerVariant, MessageDividerComponent } from '@trismegisto/angular/message-divider';\nexport { type MessageScrollerLive, MessageScrollerComponent } from '@trismegisto/angular/message-scroller';\n\nexport { HermesToastService } from '@trismegisto/angular/toast';\nexport { ToastComponent } from '@trismegisto/angular/toast';\nexport { ToastStackComponent } from '@trismegisto/angular/toast';\n\n// dicas, trilha e progresso\nexport { TooltipDirective } from '@trismegisto/angular/tooltip';\nexport { type ToggletipSide, ToggletipComponent } from '@trismegisto/angular/toggletip';\nexport { PopoverComponent } from '@trismegisto/angular/popover';\nexport { PopoverTriggerDirective } from '@trismegisto/angular/popover';\nexport { type BreadcrumbItem, BreadcrumbComponent } from '@trismegisto/angular/breadcrumb';\nexport { type ProgressIntent, type ProgressSize, ProgressComponent } from '@trismegisto/angular/progress';\n// linha do tempo, pilha de avatares e listas de transferência/ordenação\nexport { TimelineItemComponent } from '@trismegisto/angular/timeline';\nexport { type TimelineOrientation, TimelineComponent } from '@trismegisto/angular/timeline';\nexport type { TimelineDateValue, TimelineOutcome, TimelineStatus } from '@trismegisto/primitives';\nexport { type AvatarGroupPerson, type AvatarGroupSize, AvatarGroupComponent } from '@trismegisto/angular/avatar-group';\nexport { type DualListSize, DualListComponent } from '@trismegisto/angular/dual-list';\nexport type { DualListItem } from '@trismegisto/primitives';\nexport { type ReorderListItem, type ReorderListSize, type ReorderListMove, type ReorderListRemoval, type ReorderListItemContext, ReorderListComponent } from '@trismegisto/angular/reorder-list';\nexport { type ListEditorAdded, type ListEditorRemoved, type ListEditorMoved, type ListEditorEdited, ListEditorComponent } from '@trismegisto/angular/list-editor';\nexport type { ListEditorPair, ListEditorValue, ListEditorValidator, ListEditorRejection, ListEditorRejectionReason } from '@trismegisto/primitives';\nexport { type DragListOrientation, HERMES_DRAG_DROP, accessibleName, byDocumentOrder, type HermesDragVia, type HermesDropAccepts, type HermesDropEvent, type HermesDropOverEvent, type HermesSortEvent, type HermesDragTemplateContext, type HermesDragItemRef, type HermesDropTargetRef, type HermesSortableContainer, HM_SORTABLE_CONTAINER, HermesDragDropService, DragPreviewDirective, type HermesDragEndEvent, DraggableDirective, DragHandleDirective, hermesDropAccepts, DropZoneDirective, DragPlaceholderDirective, SortableDirective } from '@trismegisto/angular/drag-drop';\nexport { type KanbanColumn, type KanbanMove, type KanbanWipState, HERMES_KANBAN, type KanbanCardContext, type KanbanColumnContext, type KanbanMoveEvent, type KanbanCanMove, type HermesKanbanHost, HM_KANBAN, KanbanComponent, KanbanColumnComponent, KanbanCardDirective, KanbanColumnActionsDirective } from '@trismegisto/angular/kanban';\n// atalhos de teclado: registro, diretiva e painel\nexport { provideHermesShortcuts, type HermesShortcutConfig, HERMES_SHORTCUT_CONFIG, type HermesShortcut, type HermesShortcutItem, HermesShortcutService } from '@trismegisto/angular/shortcut-list';\nexport { type ShortcutAction, ShortcutDirective } from '@trismegisto/angular/shortcut-list';\nexport { ShortcutListComponent } from '@trismegisto/angular/shortcut-list';\nexport type { ShortcutDisplay, ShortcutDisplayStep, ShortcutKeyLabel, ShortcutKeyName, ShortcutPlatform } from '@trismegisto/primitives';\n// etapas e assistente\nexport { HermesStepGroup } from '@trismegisto/angular/stepper';\nexport { type HermesStepGuard, type HermesStepSummaryEntry, type HermesStepSummary, StepComponent } from '@trismegisto/angular/stepper';\nexport { type StepperOrientation, StepperComponent } from '@trismegisto/angular/stepper';\nexport { type WizardMode, WizardComponent } from '@trismegisto/angular/wizard';\n// cópia, busca, barra de ferramentas e cabeçalho de página\nexport { type CopyButtonVariant, CopyButtonComponent } from '@trismegisto/angular/copy-button';\nexport { CodeViewerComponent, CodeLanguagesService, provideCodeLanguages } from '@trismegisto/angular/code-viewer';\nexport { type CodeDiffLayoutInput, type CodeDiffCopyTarget, CodeDiffComponent } from '@trismegisto/angular/code-diff';\nexport type { CodeLanguage, CodeLanguageLoader, CodeTokenKind, CodeToken, CodeLineTokens, CodeViewerHeader, CodeViewerVirtualize, CodeDiffLayout, TextDiff, TextDiffSummary, TextDiffWhitespace, TextDiffIntraline } from '@trismegisto/primitives';\nexport { AnimatedNumberComponent, FlipDirective, HermesMotionService, RevealDirective } from '@trismegisto/angular/motion';\nexport { type ThemeBuilderFormat, ThemeBuilderComponent } from '@trismegisto/angular/theme-builder';\nexport { type SearchFieldSize, SearchFieldComponent } from '@trismegisto/angular/search-field';\nexport { ToolbarComponent } from '@trismegisto/angular/toolbar';\nexport { type PageHeaderLevel, PageHeaderComponent } from '@trismegisto/angular/page-header';\nexport { type DividerOrientation, type DividerEmphasis, type DividerThickness, type DividerSpacing, type DividerLabelAlign, DividerComponent } from '@trismegisto/angular/divider';\nexport { type DescriptionListItem, type DescriptionListValueChange, type DescriptionListLabelPosition, type DescriptionListVariant, DescriptionListComponent } from '@trismegisto/angular/description-list';\nexport { DescriptionItemComponent } from '@trismegisto/angular/description-list';\nexport { type CertificateViewerHeadingLevel, CertificateViewerComponent } from '@trismegisto/angular/certificate-viewer';\nexport {\n type CertificateAltName,\n type CertificateAltNameType,\n type CertificateDate,\n type CertificateDistinguishedName,\n type CertificateInfo,\n type CertificateKeyUsage,\n type CertificateValidity,\n type CertificateValidityOptions,\n type CertificateValidityState,\n CERTIFICATE_NAME_FIELDS,\n CERTIFICATE_WARNING_DAYS,\n certificateValidity,\n} from '@trismegisto/primitives';\nexport { type PropertyDefinition, type PropertyGroup, type PropertyOption, type PropertyType, type PropertyValues, type PropertyChangeEvent, PropertyViewComponent } from '@trismegisto/angular/property-view';\nexport { type CardSelectionMode, type CardContainerItemContext, type CardContainerPersistStorage, type CardVisibilityChange, CardContainerItemDirective, CardContainerEmptyDirective, CardContainerComponent } from '@trismegisto/angular/card-container';\nexport { type LegendIntent, type LegendOrientation, type LegendMarker, type LegendItem, LegendComponent } from '@trismegisto/angular/legend';\n\nexport { SplitterComponent } from '@trismegisto/angular/splitter';\nexport { SplitterPanelComponent } from '@trismegisto/angular/splitter';\nexport type { SplitterOrientation } from '@trismegisto/primitives';\nexport { type WorkspaceTabContext, WorkspaceComponent } from '@trismegisto/angular/workspace';\nexport { WorkspaceNodeComponent } from '@trismegisto/angular/workspace';\nexport { provideHermesWorkspacePersistence, createPersistedWorkspaceStore, HERMES_WORKSPACE_PERSISTENCE_CONFIG } from '@trismegisto/angular/workspace-persistence';\n\n// tipos/stores compartilhados adicionais\nexport type { AlertVariant as ToastVariant, ToastItem, ToastPushOptions, ToastState, ToastAction } from '@trismegisto/primitives';\nexport type {\n DropZone,\n PanelLeaf,\n PanelNode,\n PanelSplit,\n PersistedPanelNode,\n PersistedWorkspace,\n SplitDirection,\n SplitPath,\n SplitStep,\n WorkspaceKeyAction,\n WorkspacePersistenceConfig,\n WorkspaceState,\n WorkspaceStorage,\n WorkspaceStore,\n} from '@trismegisto/primitives';\nexport {\n DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n createWorkspaceStore,\n cyclicPanelNeighbor,\n dropZone,\n findPanelContainingTab,\n findPanelTabs,\n isValidPersistedWorkspace,\n loadWorkspace,\n panelIdsInOrder,\n restoreWorkspaceStore,\n saveWorkspace,\n toPersistedWorkspace,\n workspaceKeyAction,\n} from '@trismegisto/primitives';\n\n// widgets\nexport { type AccountAvatarSize, AccountAvatarComponent } from '@trismegisto/angular/account-avatar';\nexport { GeometricTextureComponent } from '@trismegisto/angular/geometric-texture';\nexport { LoadingSquareComponent } from '@trismegisto/angular/loading-square';\nexport { type SpinnerSize, SpinnerComponent } from '@trismegisto/angular/spinner';\nexport { BadgeComponent } from '@trismegisto/angular/badge';\nexport { type TagColor, TagComponent } from '@trismegisto/angular/tag';\nexport { SkeletonComponent } from '@trismegisto/angular/skeleton';\nexport { type CardMediaPosition, CardComponent } from '@trismegisto/angular/card';\nexport { type StatCardSize, type StatCardDetail, type StatCardTrendDirection, type StatCardTrend, StatCardComponent } from '@trismegisto/angular/stat-card';\nexport { type StatGroupMetric, StatGroupComponent } from '@trismegisto/angular/stat-group';\nexport { CarouselComponent } from '@trismegisto/angular/carousel';\nexport type { CarouselSlide } from '@trismegisto/primitives';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;ACAA;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trismegisto/angular",
3
- "version": "2.1.2",
3
+ "version": "3.0.0",
4
4
  "description": "Hermes Design System — componentes Angular sobre @trismegisto/primitives, icons, tokens e core",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -11,10 +11,10 @@
11
11
  "@angular/forms": ">=21.0.0",
12
12
  "@angular/platform-browser": ">=21.0.0",
13
13
  "@angular/router": ">=21.0.0",
14
- "@trismegisto/core": "^2.1.2",
15
- "@trismegisto/icons": "^2.1.2",
16
- "@trismegisto/primitives": "^2.1.2",
17
- "@trismegisto/tokens": "^2.1.2",
14
+ "@trismegisto/core": "^3.0.0",
15
+ "@trismegisto/icons": "^3.0.0",
16
+ "@trismegisto/primitives": "^3.0.0",
17
+ "@trismegisto/tokens": "^3.0.0",
18
18
  "rxjs": "^7.8.0"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -303,6 +303,10 @@
303
303
  "types": "./types/trismegisto-angular-legend.d.ts",
304
304
  "default": "./fesm2022/trismegisto-angular-legend.mjs"
305
305
  },
306
+ "./list-editor": {
307
+ "types": "./types/trismegisto-angular-list-editor.d.ts",
308
+ "default": "./fesm2022/trismegisto-angular-list-editor.mjs"
309
+ },
306
310
  "./loading-square": {
307
311
  "types": "./types/trismegisto-angular-loading-square.d.ts",
308
312
  "default": "./fesm2022/trismegisto-angular-loading-square.mjs"
@@ -282,7 +282,7 @@ type DataGridActionConfirm = Omit<HermesConfirmOptions, 'danger' | 'confirmLabel
282
282
  readonly danger?: boolean;
283
283
  readonly confirmLabel?: string;
284
284
  };
285
- /** Ação por linha, desenhada como item do menu da última coluna. */
285
+ /** Ação por linha, desenhada como item do menu da coluna de ações (a primeira da grade, depois da seleção). */
286
286
  interface DataGridRowAction<T = unknown> {
287
287
  readonly id: string;
288
288
  /** Ícone (@trismegisto/icons); o rótulo já vem do contexto (o menu abriu sobre a linha). */
@@ -428,9 +428,8 @@ interface ColumnSizingFeatureDeps<T> {
428
428
  readonly loading: Signal<boolean>;
429
429
  /** Linhas reais da página (o encaixe pelo conteúdo espera haver alguma). */
430
430
  readonly rows: () => readonly unknown[];
431
- /** Colunas de sistema antes das de dados (seleção, detalhe). */
431
+ /** Colunas de sistema (seleção, ações, detalhe — todas antes das de dados). */
432
432
  readonly leadingFixed: () => number;
433
- readonly hasActions: () => boolean;
434
433
  }
435
434
  /**
436
435
  * Larguras das colunas, todas gravadas em `columnState`: semeadura, medição depois da pintura, encaixe
@@ -693,7 +692,7 @@ interface PinningFeatureDeps<T> {
693
692
  readonly shown: Signal<readonly GridColumn<T>[]>;
694
693
  readonly pinned: ModelSignal<GridPinnedColumns>;
695
694
  readonly columnState: Signal<readonly GridColumnState[]>;
696
- /** Colunas de sistema antes das de dados (seleção, detalhe) e se há a de ações. */
695
+ /** Colunas de sistema antes das de dados (seleção, ações, detalhe — todas no início). */
697
696
  readonly leadingFixed: () => number;
698
697
  readonly hasSelection: () => boolean;
699
698
  readonly hasActions: () => boolean;
@@ -720,14 +719,18 @@ declare class GridPinningFeature<T> {
720
719
  readonly active: Signal<boolean>;
721
720
  /** Célula fixa por chave de coluna (só as fixas aparecem). */
722
721
  readonly cells: Signal<ReadonlyMap<string, PinnedCell>>;
723
- /** Colunas de sistema presas: seleção em 0, detalhe depois dela, ações no fim. */
722
+ /**
723
+ * Colunas de sistema presas no início, nesta ordem: seleção em 0, ações depois dela e detalhe depois
724
+ * das duas. Cada uma desloca pelas larguras fixas (`--hm-data-grid-fixed-col`) das que vêm antes.
725
+ */
724
726
  readonly selectCell: Signal<PinnedCell | null>;
725
- readonly detailCell: Signal<PinnedCell | null>;
726
727
  readonly actionsCell: Signal<PinnedCell | null>;
728
+ readonly detailCell: Signal<PinnedCell | null>;
727
729
  /** Há conteúdo rolado por baixo das fixas do início / do fim (liga a sombra). */
728
730
  readonly scrolledStart: _angular_core.WritableSignal<boolean>;
729
731
  readonly scrolledEnd: _angular_core.WritableSignal<boolean>;
730
732
  constructor(deps: PinningFeatureDeps<T>);
733
+ private systemCell;
731
734
  pinOf(column: GridColumn<T>): GridColumnPin | null;
732
735
  pinOfKey(key: string): GridColumnPin | null;
733
736
  /** Fixa/desafixa (gerenciador de colunas). `''`/`'none'` = desafixar. */
@@ -798,8 +801,9 @@ declare class GridQueryFeature<T> {
798
801
  }
799
802
 
800
803
  /**
801
- * Ações por linha: um único `hm-menu` para a grade inteira, aberto pelo botão da última coluna (preso
802
- * às bordas dele) ou pelo clique direito na linha (no ponteiro). Só entram as ações que cabem na linha.
804
+ * Ações por linha: um único `hm-menu` para a grade inteira, aberto pelo botão da coluna de ações — a
805
+ * primeira da grade, logo depois da seleção (preso às bordas dele) — ou pelo clique direito na linha (no
806
+ * ponteiro). Só entram as ações que cabem na linha.
803
807
  */
804
808
  declare class GridRowActionsFeature<T> {
805
809
  private readonly actions;
@@ -1073,6 +1077,10 @@ declare class DataGridComponent<T> {
1073
1077
  readonly rowId: _angular_core.InputSignal<(row: T) => string>;
1074
1078
  /** Nome acessível da tabela (`<caption>`). */
1075
1079
  readonly caption: _angular_core.InputSignal<string>;
1080
+ /**
1081
+ * Ações por linha: um menu (⋮) na PRIMEIRA coluna da grade — depois da seleção, antes do detalhe e dos
1082
+ * dados. Fica fora do gerenciador de colunas, da ordem/estado persistidos e da exportação.
1083
+ */
1076
1084
  readonly rowActions: _angular_core.InputSignal<readonly DataGridRowAction<T>[]>;
1077
1085
  readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
1078
1086
  readonly error: _angular_core.InputSignal<string>;
@@ -1152,8 +1160,9 @@ declare class DataGridComponent<T> {
1152
1160
  protected readonly hasSelection: Signal<boolean>;
1153
1161
  /** Rádios de uma grade não podem cruzar com os de outra. */
1154
1162
  protected readonly radioName: string;
1155
- private readonly leading;
1156
1163
  private readonly withActions;
1164
+ /** Colunas de sistema, todas antes das de dados, nesta ordem: seleção, ações (⋮) e detalhe. */
1165
+ private readonly leading;
1157
1166
  protected readonly announcement: _angular_core.WritableSignal<string>;
1158
1167
  protected readonly dragInstructionsId: string;
1159
1168
  protected readonly ordering: GridColumnOrderFeature<T>;