@trismegisto/angular 2.0.1 → 2.1.1

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.
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-sidebar.mjs","sources":["../../src/sidebar/icons.generated.ts","../../src/sidebar/sidebar-group.contract.ts","../../src/sidebar/sidebar-motion.ts","../../src/sidebar/sidebar.service.ts","../../src/sidebar/sidebar-group.component.ts","../../src/sidebar/sidebar-group.component.html","../../src/sidebar/sidebar-link.component.ts","../../src/sidebar/sidebar-link.component.html","../../src/sidebar/sidebar-node.component.ts","../../src/sidebar/sidebar.component.ts","../../src/sidebar/sidebar.component.html","../../src/sidebar/index.ts","../../src/sidebar/trismegisto-angular-sidebar.ts"],"sourcesContent":["// 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(SIDEBAR_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_ARROW,\n ICON_ARROWS_HORIZONTAL,\n ICON_CHECK,\n ICON_CIRCLE,\n ICON_GRID,\n ICON_MENU,\n ICON_PIN,\n} from '@trismegisto/angular/icon';\n\nexport const SIDEBAR_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_ARROW, ICON_ARROWS_HORIZONTAL, ICON_CHECK, ICON_CIRCLE, ICON_GRID, ICON_MENU, ICON_PIN];\n","/**\n * O que um `hm-sidebar-group` oferece por injeção aos links e grupos dentro dele.\n *\n * Mora fora do componente para que o link possa injetar o grupo sem importar o arquivo do grupo.\n */\nexport abstract class HermesSidebarGroup {\n /** Abre o grupo (um link de dentro dele foi acionado). */\n abstract expand(): void;\n /** `source` passou a ter (ou deixou de ter) a rota ativa dentro deste grupo. */\n abstract markActive(source: object, active: boolean): void;\n}\n","/** Rolagem programática suave, ou instantânea para quem pediu menos movimento. */\nexport function scrollBehavior(near: Element): ScrollBehavior {\n const view = near.ownerDocument.defaultView;\n const reduced = typeof view?.matchMedia === 'function' && view.matchMedia('(prefers-reduced-motion: reduce)').matches;\n return reduced ? 'auto' : 'smooth';\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { DOCUMENT, DestroyRef, Injectable, InjectionToken, PLATFORM_ID, computed, inject, signal } from '@angular/core';\nimport { SidebarMode, SidebarState, SidebarStore, SidebarStoreOptions, createSidebarStore } from '@trismegisto/primitives';\n\n/** Chave de gravação e modo inicial da navegação lateral (o spine fornece `{ storageKey: `${ns}_sidebar` }`). */\nexport const HERMES_SIDEBAR_CONFIG = new InjectionToken<Pick<SidebarStoreOptions, 'storageKey' | 'defaultMode'>>(\n 'HERMES_SIDEBAR_CONFIG',\n { providedIn: 'root', factory: () => ({}) },\n);\n\n/**\n * Estado único da navegação lateral do app: o `hm-sidebar`, os grupos, os links e o gatilho móvel do\n * `hm-header` leem e mudam o mesmo store de `@trismegisto/primitives`. Só o modo é gravado\n * (`localStorage`, quando há navegador).\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesSidebarService {\n private readonly document = inject(DOCUMENT);\n private readonly store: SidebarStore = createSidebarStore({\n ...inject(HERMES_SIDEBAR_CONFIG),\n storage: isPlatformBrowser(inject(PLATFORM_ID)) ? browserStorage(this.document) : null,\n });\n private readonly state = signal<SidebarState>(this.store.getState());\n\n readonly mode = computed(() => this.state().mode);\n readonly expanded = computed(() => this.state().expanded);\n readonly collapsed = computed(() => !this.state().expanded);\n readonly overlaid = computed(() => this.state().overlaid);\n readonly mobileOpen = computed(() => this.state().mobileOpen);\n readonly groups = computed(() => this.state().groups);\n\n constructor() {\n inject(DestroyRef).onDestroy(this.store.subscribe((next) => this.state.set(next)));\n }\n\n setMode(mode: SidebarMode): void {\n this.store.setMode(mode);\n }\n\n peekPointer(inside: boolean): void {\n this.store.peekPointer(inside);\n }\n\n peekFocus(inside: boolean): void {\n this.store.peekFocus(inside);\n }\n\n toggleMobile(): void {\n this.store.toggleMobile();\n }\n\n closeMobile(): void {\n this.store.closeMobile();\n }\n\n ensureExpanded(): void {\n this.store.ensureExpanded();\n }\n\n /** Reativo: dentro de `computed`/`effect`, recalcula quando as preferências de grupo mudam. */\n isGroupOpen(id: string, byDefault: boolean): boolean {\n this.groups();\n return this.store.isGroupOpen(id, byDefault);\n }\n\n setGroupOpen(id: string, open: boolean): void {\n this.store.setGroupOpen(id, open);\n }\n\n resetGroups(): void {\n this.store.resetGroups();\n }\n\n registerGroup(id: string): void {\n this.store.registerGroup(id);\n }\n\n unregisterGroup(id: string): void {\n this.store.unregisterGroup(id);\n }\n\n setAllGroups(open: boolean): void {\n this.store.setAllGroups(open);\n }\n\n /** @deprecated Sem uso conhecido; injete `DOCUMENT` direto. */\n get doc(): Document {\n return this.document;\n }\n}\n\nfunction browserStorage(doc: Document): Storage | null {\n try {\n return doc.defaultView?.localStorage ?? null;\n } catch {\n return null;\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n PLATFORM_ID,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n signal,\n untracked,\n} from '@angular/core';\nimport { SIDEBAR_TRANSITION_MS, groupScrollOffset } from '@trismegisto/primitives';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { HermesSidebarGroup } from './sidebar-group.contract';\nimport { scrollBehavior } from './sidebar-motion';\nimport { HermesSidebarService } from './sidebar.service';\n\nlet nextPanel = 0;\n\n/**\n * Grupo expansível da navegação lateral (padrão APG *Disclosure*). No primeiro nível nasce aberto; dentro\n * de outro grupo, fechado. A escolha vale para a sessão e é por `id` — dois grupos com o mesmo `id`\n * dividem a preferência, então use ids únicos.\n *\n * ```html\n * <hm-sidebar-group id=\"cadastros\" label=\"Cadastros\" icon=\"folder\">\n * <hm-sidebar-link route=\"/clientes\" label=\"Clientes\" icon=\"users\" />\n * </hm-sidebar-group>\n * ```\n */\n@Component({\n selector: 'hm-sidebar-group',\n imports: [IconComponent],\n templateUrl: './sidebar-group.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: HermesSidebarGroup, useExisting: forwardRef(() => SidebarGroupComponent) }],\n})\nexport class SidebarGroupComponent extends HermesSidebarGroup {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n /** Chave da preferência de aberto/fechado (e alvo de \"expandir/recolher tudo\"). */\n readonly id = input.required<string>();\n readonly label = input.required<string>();\n /** Nome de ícone do catálogo; quem usa registra. */\n readonly icon = input.required<string>();\n\n protected readonly sidebar = inject(HermesSidebarService);\n protected readonly panelId = `hm-sidebar-group-panel-${++nextPanel}`;\n\n readonly #host: ElementRef<HTMLElement> = inject(ElementRef);\n readonly #parent = inject(HermesSidebarGroup, { optional: true, skipSelf: true });\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n readonly #sources = signal<ReadonlySet<object>>(new Set());\n #revealTimer: ReturnType<typeof setTimeout> | undefined;\n\n /** Coluna recolhida desenha todo grupo fechado, sem mexer na preferência. */\n protected readonly open = computed(\n () => !this.sidebar.collapsed() && this.sidebar.isGroupOpen(this.id(), this.#parent === null),\n );\n protected readonly hasActive = computed(() => this.#sources().size > 0);\n\n constructor() {\n super();\n\n effect((onCleanup) => {\n const id = this.id();\n untracked(() => this.sidebar.registerGroup(id));\n onCleanup(() => this.sidebar.unregisterGroup(id));\n });\n\n effect(() => {\n const active = this.hasActive();\n untracked(() => this.#parent?.markActive(this, active));\n });\n\n // Rota ativa aqui dentro reabre o grupo sempre que a coluna (re)abre.\n effect(() => {\n if (this.sidebar.collapsed() || !this.hasActive()) return;\n const id = this.id();\n untracked(() => this.sidebar.setGroupOpen(id, true));\n });\n\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.#revealTimer);\n if (untracked(this.hasActive)) this.#parent?.markActive(this, false);\n });\n }\n\n expand(): void {\n this.sidebar.setGroupOpen(this.id(), true);\n }\n\n markActive(source: object, active: boolean): void {\n const current = this.#sources();\n if (current.has(source) === active) return;\n const next = new Set(current);\n if (active) next.add(source);\n else next.delete(source);\n this.#sources.set(next);\n }\n\n protected toggle(): void {\n const id = this.id();\n // No compacto (fora da gaveta) o gatilho só abre: a coluna se expande para mostrar o conteúdo.\n if (this.sidebar.mode() === 'compact' && !this.sidebar.mobileOpen()) {\n this.sidebar.ensureExpanded();\n this.sidebar.setGroupOpen(id, true);\n this.#reveal();\n return;\n }\n const next = !this.open();\n this.sidebar.setGroupOpen(id, next);\n if (next) this.#reveal();\n }\n\n /** Depois que o painel abriu, rola o mínimo para o grupo caber na coluna. */\n #reveal(): void {\n if (!this.#browser) return;\n clearTimeout(this.#revealTimer);\n this.#revealTimer = setTimeout(() => {\n const target = groupScrollOffset(this.#host.nativeElement);\n target?.column.scrollTo({ top: target.top, behavior: scrollBehavior(this.#host.nativeElement) });\n }, SIDEBAR_TRANSITION_MS);\n }\n}\n","<button\n type=\"button\"\n class=\"hm-sidebar-group__trigger\"\n [class.hm-sidebar-group__trigger--active]=\"hasActive()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n [title]=\"label()\"\n (click)=\"toggle()\"\n>\n <span class=\"hm-sidebar-group__glyph\">\n <hm-icon [shape]=\"icon()\" />\n @if (hasActive() && !open()) {\n <span class=\"hm-sidebar-group__mark\" aria-hidden=\"true\"></span>\n }\n </span>\n <span class=\"hm-sidebar-group__label\">{{ label() }}</span>\n <hm-icon class=\"hm-sidebar-group__chevron\" shape=\"angle\" direction=\"down\" />\n</button>\n<div\n class=\"hm-sidebar-group__panel\"\n [class.hm-sidebar-group__panel--open]=\"open()\"\n [class.hm-sidebar-group__panel--active]=\"hasActive()\"\n [id]=\"panelId\"\n [attr.inert]=\"open() ? null : ''\"\n>\n <div class=\"hm-sidebar-group__body\">\n <ng-content />\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, inject, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { HermesSidebarGroup } from './sidebar-group.contract';\nimport { HermesSidebarService } from './sidebar.service';\n\n/**\n * Item de rota da navegação lateral: um `<a routerLink>` de verdade (Ctrl/clique do meio abrem em\n * outra aba). A atividade usa as opções padrão do `RouterLinkActive` — a rota-pai continua ativa\n * nas filhas — e é repassada ao grupo mais próximo.\n *\n * ```html\n * <hm-sidebar-link route=\"/pedidos\" label=\"Pedidos\" icon=\"list\" />\n * ```\n */\n@Component({\n selector: 'hm-sidebar-link',\n imports: [RouterLink, RouterLinkActive, IconComponent],\n templateUrl: './sidebar-link.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarLinkComponent {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n readonly route = input.required<string | readonly unknown[]>();\n readonly label = input.required<string>();\n /** Nome de ícone do catálogo; quem usa registra. */\n readonly icon = input.required<string>();\n\n protected readonly sidebar = inject(HermesSidebarService);\n readonly #group = inject(HermesSidebarGroup, { optional: true });\n #active = false;\n\n constructor() {\n // Link ativo que sai da árvore não pode deixar o grupo marcado.\n inject(DestroyRef).onDestroy(() => {\n if (this.#active) this.#group?.markActive(this, false);\n });\n }\n\n protected onClick(): void {\n this.#group?.expand();\n }\n\n protected onActiveChange(active: boolean): void {\n this.#active = active;\n this.#group?.markActive(this, active);\n }\n}\n","<a\n class=\"hm-sidebar-link\"\n [routerLink]=\"route()\"\n routerLinkActive=\"hm-sidebar-link--active\"\n ariaCurrentWhenActive=\"page\"\n (isActiveChange)=\"onActiveChange($event)\"\n [class.hm-sidebar-link--collapsed]=\"sidebar.collapsed()\"\n [title]=\"label()\"\n (click)=\"onClick()\"\n>\n <hm-icon class=\"hm-sidebar-link__icon\" [shape]=\"icon()\" />\n <span class=\"hm-sidebar-link__text\">{{ label() }}</span>\n</a>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { SidebarGroupComponent } from './sidebar-group.component';\nimport { SidebarLinkComponent } from './sidebar-link.component';\n\n/** Um nó da árvore de navegação: folha vira link; nó com filhos visíveis vira grupo. */\nexport interface SidebarNode {\n id: string;\n label: string;\n /** Nome de ícone do catálogo (padrão `circle`). */\n icon?: string;\n route: string | readonly unknown[];\n children?: readonly SidebarNode[];\n /** Fica fora da árvore desenhada. */\n hidden?: boolean;\n}\n\n/**\n * Desenha uma árvore de `SidebarNode` com `hm-sidebar-group`/`hm-sidebar-link`. `depth` é quantos níveis\n * ainda podem virar grupo: `0` desenha só links (lista de módulos), `Infinity` aninha até as folhas.\n *\n * ```html\n * @for (node of tree; track node.id) { <hm-sidebar-node [node]=\"node\" [depth]=\"2\" /> }\n * ```\n */\n@Component({\n selector: 'hm-sidebar-node',\n imports: [SidebarGroupComponent, SidebarLinkComponent],\n template: `\n @let item = node();\n @let kids = visibleChildren();\n @if (depth() > 0 && kids.length > 0) {\n <hm-sidebar-group [id]=\"item.id\" [label]=\"item.label\" [icon]=\"item.icon ?? fallbackIcon\">\n @for (child of kids; track child.id) {\n <hm-sidebar-node [node]=\"child\" [depth]=\"depth() - 1\" />\n }\n </hm-sidebar-group>\n } @else {\n <hm-sidebar-link [route]=\"item.route\" [label]=\"item.label\" [icon]=\"item.icon ?? fallbackIcon\" />\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarNodeComponent {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n readonly node = input.required<SidebarNode>();\n readonly depth = input(1);\n\n protected readonly fallbackIcon = 'circle';\n protected readonly visibleChildren = computed(() => (this.node().children ?? []).filter((child) => !child.hidden));\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n PLATFORM_ID,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport {\n MenuItem,\n SIDEBAR_CONTENT_ID,\n SIDEBAR_MEASURE_DELAY_MS,\n SIDEBAR_MODES,\n SIDEBAR_SCROLL_RESTORE_DELAY_MS,\n SIDEBAR_TRANSITION_MS,\n SidebarMode,\n focusStaysInside,\n isKeyboardFocus,\n measureSidebarWidth,\n} from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nimport { MenuButtonComponent } from '@trismegisto/angular/menu-button';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { scrollBehavior } from './sidebar-motion';\nimport { HermesSidebarService } from './sidebar.service';\n\nconst MODE_GLYPH: Record<SidebarMode, string> = { auto: 'arrows-horizontal', fixed: 'pin', compact: 'menu' };\n// Ordem do menu de modos (não é a de SIDEBAR_MODES).\nconst MENU_ORDER: readonly SidebarMode[] = ['auto', 'fixed', 'compact'];\n\ninterface Level {\n readonly key: number;\n readonly animated: boolean;\n}\n\n/**\n * Coluna de navegação do shell. O conteúdo projetado (links, grupos, `hm-sidebar-node` ou qualquer outra\n * coisa) rola dentro de `#hm-sidebar-content`. Com `heading`, a coluna mostra um nível de módulo com\n * título e, se houver `backLabel`, o botão de voltar (`back`).\n *\n * O modo (`auto` sobrepõe e abre ao aproximar, `fixed` fica aberta, `compact` fica só com ícones) vem do\n * `HermesSidebarService`. No modo `auto` o contêiner da linha coluna + conteúdo precisa ser\n * `position: relative`. Abaixo do degrau `md` a coluna vira gaveta, aberta pelo gatilho do `hm-header`.\n *\n * ```html\n * <hm-sidebar label=\"Navegação principal\">\n * <hm-sidebar-link route=\"/\" label=\"Início\" icon=\"home\" />\n * </hm-sidebar>\n * ```\n */\n@Component({\n selector: 'hm-sidebar',\n imports: [IconComponent, IconButtonComponent, MenuButtonComponent],\n templateUrl: './sidebar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarComponent {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n /** Nome do landmark `<nav>`. */\n readonly label = input.required<string>();\n /** Título do nível atual; vazio = nível raiz, sem topo. */\n readonly heading = input('');\n readonly headingIcon = input('grid');\n /** Texto do botão de voltar (só aparece com `heading`); vazio = sem botão. */\n readonly backLabel = input('');\n /** De que lado o nível novo entra: `forward` vem do fim, `back` do início. */\n readonly direction = input<'forward' | 'back'>('forward');\n /** Rodapé com o menu de modos e as ações de expandir/recolher tudo. */\n readonly collapsible = input(true, { transform: booleanAttribute });\n\n readonly back = output<void>();\n\n protected readonly sidebar = inject(HermesSidebarService);\n protected readonly contentId = SIDEBAR_CONTENT_ID;\n readonly #messages = inject(HERMES_MESSAGES);\n readonly #document = inject(DOCUMENT);\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly content = viewChild<ElementRef<HTMLElement>>('content');\n\n protected readonly text = computed(() => this.#messages.sidebar);\n\n #levelSerial = 0;\n /** Um item só; a chave muda a cada `heading` novo e o `@for` recria o nível inteiro. */\n protected readonly levels = computed<readonly Level[]>(() => {\n this.heading();\n const key = ++this.#levelSerial;\n return [{ key, animated: key > 1 }];\n });\n\n protected readonly modeName = computed(() => this.#modeLabel(this.sidebar.mode()));\n protected readonly modeIcon = computed(() => MODE_GLYPH[this.sidebar.mode()]);\n protected readonly modeMenuLabel = computed(() => `${this.text().behavior}: ${this.modeName()}`);\n protected readonly modeItems = computed<readonly MenuItem[]>(() => {\n const current = this.sidebar.mode();\n return MENU_ORDER.map((id) => ({ id, label: this.#modeLabel(id), icon: id === current ? 'check' : MODE_GLYPH[id] }));\n });\n\n /** Largura que a coluna aberta assume; `null` = piso do CSS. */\n protected readonly fitWidth = signal<number | null>(null);\n readonly #fitByLayout = new Map<string, number>();\n #measureTimer: ReturnType<typeof setTimeout> | undefined;\n #scrollTimer: ReturnType<typeof setTimeout> | undefined;\n #savedScroll: number | null = null;\n\n constructor() {\n let lastHeading: string | undefined;\n effect(() => {\n const heading = this.heading();\n if (lastHeading !== undefined && heading !== lastHeading) {\n untracked(() => this.sidebar.resetGroups());\n this.#savedScroll = null;\n }\n lastHeading = heading;\n });\n\n if (!this.#browser) return;\n\n effect(() => {\n const open = this.sidebar.expanded();\n const layout = this.#layoutKey();\n untracked(() => this.#fit(open, layout));\n });\n\n let wasOpen: boolean | undefined;\n effect(() => {\n const open = this.sidebar.expanded();\n if (open === wasOpen) return;\n const first = wasOpen === undefined;\n wasOpen = open;\n untracked(() => this.#onOpenChange(open, first));\n });\n\n // Conteúdo que chega depois (árvore carregada do backend) pede nova medida com a coluna aberta.\n const observer = typeof MutationObserver === 'function'\n ? new MutationObserver(() => {\n if (untracked(this.sidebar.expanded)) this.#scheduleMeasure(untracked(this.#layoutKey));\n })\n : null;\n effect(() => {\n const content = this.content()?.nativeElement;\n observer?.disconnect();\n if (content) observer?.observe(content, { childList: true, subtree: true, characterData: true });\n });\n\n inject(DestroyRef).onDestroy(() => {\n observer?.disconnect();\n clearTimeout(this.#measureTimer);\n clearTimeout(this.#scrollTimer);\n });\n }\n\n protected chooseMode(id: string): void {\n if ((SIDEBAR_MODES as readonly string[]).includes(id)) this.sidebar.setMode(id as SidebarMode);\n }\n\n protected setAll(open: boolean): void {\n this.sidebar.ensureExpanded();\n this.sidebar.setAllGroups(open);\n }\n\n protected onFocusIn(event: FocusEvent): void {\n // Foco de clique não segura a coluna aberta; só o de teclado.\n if (isKeyboardFocus(event.target)) this.sidebar.peekFocus(true);\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (!focusStaysInside(event)) this.sidebar.peekFocus(false);\n }\n\n #modeLabel(mode: SidebarMode): string {\n const text = this.text();\n return mode === 'auto' ? text.modeAuto : mode === 'fixed' ? text.modeFixed : text.modeCompact;\n }\n\n /** Arranjo = nível atual + estado de cada grupo; a largura medida é lembrada por arranjo. */\n readonly #layoutKey = computed(() => {\n const groups = [...this.sidebar.groups()].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0));\n return `${this.heading()}\\u0000${groups.map(([id, open]) => `${id}=${open ? 1 : 0}`).join(',')}`;\n });\n\n #fit(open: boolean, layout: string): void {\n clearTimeout(this.#measureTimer);\n if (!open) {\n this.fitWidth.set(null);\n return;\n }\n const known = this.#fitByLayout.get(layout);\n if (known !== undefined) this.fitWidth.set(known);\n this.#scheduleMeasure(layout);\n }\n\n #scheduleMeasure(layout: string): void {\n clearTimeout(this.#measureTimer);\n this.#measureTimer = setTimeout(() => {\n const width = measureSidebarWidth(this.#document);\n if (width === null) return;\n this.#fitByLayout.set(layout, width);\n this.fitWidth.set(width);\n }, SIDEBAR_TRANSITION_MS + SIDEBAR_MEASURE_DELAY_MS);\n }\n\n #onOpenChange(open: boolean, first: boolean): void {\n clearTimeout(this.#scrollTimer);\n const content = this.content()?.nativeElement;\n if (!open) {\n if (!first && content) this.#savedScroll = content.scrollTop;\n return;\n }\n this.#scrollTimer = setTimeout(() => this.#restoreScroll(), SIDEBAR_SCROLL_RESTORE_DELAY_MS);\n }\n\n #restoreScroll(): void {\n const content = this.content()?.nativeElement;\n if (!content) return;\n const behavior = scrollBehavior(content);\n if (this.#savedScroll !== null) {\n content.scrollTo({ top: this.#savedScroll, behavior });\n return;\n }\n const active = content.querySelector<HTMLElement>('.hm-sidebar-link--active');\n if (!active) return;\n const box = active.getBoundingClientRect();\n const view = content.getBoundingClientRect();\n const shift = box.top < view.top ? box.top - view.top : box.bottom > view.bottom ? box.bottom - view.bottom : 0;\n if (shift !== 0) content.scrollTo({ top: content.scrollTop + shift, behavior });\n }\n}\n","@if (sidebar.overlaid()) {\n <div class=\"hm-sidebar__placeholder\" aria-hidden=\"true\"></div>\n}\n@if (sidebar.mobileOpen()) {\n <div class=\"hm-sidebar__backdrop\" aria-hidden=\"true\" (click)=\"sidebar.closeMobile()\"></div>\n}\n<nav\n class=\"hm-sidebar\"\n [attr.aria-label]=\"label()\"\n [class.hm-sidebar--compact]=\"sidebar.collapsed()\"\n [class.hm-sidebar--overlaid]=\"sidebar.overlaid()\"\n [class.hm-sidebar--open]=\"sidebar.mobileOpen()\"\n [style.--hm-sidebar-fit]=\"fitWidth() === null ? null : fitWidth() + 'px'\"\n (mouseenter)=\"sidebar.peekPointer(true)\"\n (mouseleave)=\"sidebar.peekPointer(false)\"\n (focusin)=\"onFocusIn($event)\"\n (focusout)=\"onFocusOut($event)\"\n>\n @for (level of levels(); track level.key) {\n <div\n class=\"hm-sidebar__level\"\n [class.hm-sidebar__level--enter]=\"level.animated\"\n [class.hm-sidebar__level--from-start]=\"direction() === 'back'\"\n >\n @if (heading()) {\n <div class=\"hm-sidebar__top\">\n @if (backLabel()) {\n <button type=\"button\" class=\"hm-sidebar__back\" [attr.aria-label]=\"backLabel()\" [title]=\"backLabel()\" (click)=\"back.emit()\">\n <hm-icon class=\"hm-sidebar__back-icon\" shape=\"arrow\" direction=\"left\" />\n <span class=\"hm-sidebar__fade\">{{ backLabel() }}</span>\n </button>\n }\n <p class=\"hm-sidebar__title\" [title]=\"heading()\">\n <hm-icon class=\"hm-sidebar__title-icon\" [shape]=\"headingIcon()\" />\n <span class=\"hm-sidebar__fade\">{{ heading() }}</span>\n </p>\n </div>\n }\n <div #content class=\"hm-sidebar__content\" [id]=\"contentId\">\n <ng-content />\n </div>\n </div>\n }\n @if (collapsible()) {\n <div class=\"hm-sidebar__footer\">\n <hm-menu-button\n class=\"hm-sidebar__modes\"\n [label]=\"modeMenuLabel()\"\n [icon]=\"modeIcon()\"\n [items]=\"modeItems()\"\n [showArrow]=\"false\"\n (chosen)=\"chooseMode($event)\"\n />\n @if (sidebar.expanded()) {\n <span class=\"hm-sidebar__mode-name hm-sidebar__fade\">{{ modeName() }}</span>\n <hm-icon-button\n emphasis=\"subtle\"\n size=\"small\"\n icon=\"angle\"\n iconDirection=\"down\"\n [label]=\"text().expandAll\"\n (clicked)=\"setAll(true)\"\n />\n <hm-icon-button\n emphasis=\"subtle\"\n size=\"small\"\n icon=\"angle\"\n iconDirection=\"up\"\n [label]=\"text().collapseAll\"\n (clicked)=\"setAll(false)\"\n />\n }\n </div>\n }\n</nav>\n","// Ponto de import `@trismegisto/angular/sidebar` (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 './sidebar-group.component';\nexport * from './sidebar-group.contract';\nexport * from './sidebar-link.component';\nexport * from './sidebar-node.component';\nexport * from './sidebar.component';\nexport * from './sidebar.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAeO,MAAM,aAAa,GAA8B,CAAC,UAAU,EAAE,UAAU,EAAE,sBAAsB,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;;ACfjK;;;;AAIG;MACmB,kBAAkB,CAAA;AAKvC;;ACVD;AACM,SAAU,cAAc,CAAC,IAAa,EAAA;AAC1C,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW;AAC3C,IAAA,MAAM,OAAO,GAAG,OAAO,IAAI,EAAE,UAAU,KAAK,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC,OAAO;IACrH,OAAO,OAAO,GAAG,MAAM,GAAG,QAAQ;AACpC;;ACDA;AACO,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,EACvB,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE;AAG7C;;;;AAIG;MAEU,oBAAoB,CAAA;AACd,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC3B,KAAK,GAAiB,kBAAkB,CAAC;QACxD,GAAG,MAAM,CAAC,qBAAqB,CAAC;QAChC,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC,WAA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AA,OAAA,EAAA,MAAA,EAAA,OAAA,EAAA,WAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,EAAA,OAAA,EAAA,OAAA,EAAA,cAAA,EAAA,UAAA,CAAA,EAAA,OAAA,EAAA,CAAA,QAAA,EAAA,eAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAItD,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;+BACE,YAAY,EAAA,OAAA,EACb,CAAC,aAAa,EAAE,mBAAmB,EAAE,mBAAmB,CAAC,EAAA,eAAA,EAEjD,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6oFAAA,EAAA;mtBAwBe,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1FzE;AACA;;ACDA;;AAEG;;"}
1
+ {"version":3,"file":"trismegisto-angular-sidebar.mjs","sources":["../../src/sidebar/icons.generated.ts","../../src/sidebar/sidebar-group.contract.ts","../../src/sidebar/sidebar-motion.ts","../../src/sidebar/sidebar.service.ts","../../src/sidebar/sidebar-group.component.ts","../../src/sidebar/sidebar-group.component.html","../../src/sidebar/sidebar-link.component.ts","../../src/sidebar/sidebar-link.component.html","../../src/sidebar/sidebar-node.component.ts","../../src/sidebar/sidebar.component.ts","../../src/sidebar/sidebar.component.html","../../src/sidebar/index.ts","../../src/sidebar/trismegisto-angular-sidebar.ts"],"sourcesContent":["// 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(SIDEBAR_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_ARROW,\n ICON_ARROWS_HORIZONTAL,\n ICON_CHECK,\n ICON_CIRCLE,\n ICON_GRID,\n ICON_MENU,\n ICON_PIN,\n} from '@trismegisto/angular/icon';\n\nexport const SIDEBAR_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_ARROW, ICON_ARROWS_HORIZONTAL, ICON_CHECK, ICON_CIRCLE, ICON_GRID, ICON_MENU, ICON_PIN];\n","/**\n * O que um `hm-sidebar-group` oferece por injeção aos links e grupos dentro dele.\n *\n * Mora fora do componente para que o link possa injetar o grupo sem importar o arquivo do grupo.\n */\nexport abstract class HermesSidebarGroup {\n /** Abre o grupo (um link de dentro dele foi acionado). */\n abstract expand(): void;\n /** `source` passou a ter (ou deixou de ter) a rota ativa dentro deste grupo. */\n abstract markActive(source: object, active: boolean): void;\n}\n","/** Rolagem programática suave, ou instantânea para quem pediu menos movimento. */\nexport function scrollBehavior(near: Element): ScrollBehavior {\n const view = near.ownerDocument.defaultView;\n const reduced = typeof view?.matchMedia === 'function' && view.matchMedia('(prefers-reduced-motion: reduce)').matches;\n return reduced ? 'auto' : 'smooth';\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport { DOCUMENT, DestroyRef, Injectable, InjectionToken, PLATFORM_ID, computed, inject, signal } from '@angular/core';\nimport { SidebarMode, SidebarState, SidebarStore, SidebarStoreOptions, createSidebarStore } from '@trismegisto/primitives';\n\n/** Chave de gravação e modo inicial da navegação lateral (o spine fornece `{ storageKey: `${ns}_sidebar` }`). */\nexport const HERMES_SIDEBAR_CONFIG = new InjectionToken<Pick<SidebarStoreOptions, 'storageKey' | 'defaultMode'>>(\n 'HERMES_SIDEBAR_CONFIG',\n { providedIn: 'root', factory: () => ({}) },\n);\n\n/**\n * Estado único da navegação lateral do app: o `hm-sidebar`, os grupos, os links e o gatilho móvel do\n * `hm-header` leem e mudam o mesmo store de `@trismegisto/primitives`. Só o modo é gravado\n * (`localStorage`, quando há navegador).\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesSidebarService {\n private readonly document = inject(DOCUMENT);\n private readonly store: SidebarStore = createSidebarStore({\n ...inject(HERMES_SIDEBAR_CONFIG),\n storage: isPlatformBrowser(inject(PLATFORM_ID)) ? browserStorage(this.document) : null,\n });\n private readonly state = signal<SidebarState>(this.store.getState());\n\n readonly mode = computed(() => this.state().mode);\n readonly expanded = computed(() => this.state().expanded);\n readonly collapsed = computed(() => !this.state().expanded);\n readonly overlaid = computed(() => this.state().overlaid);\n readonly mobileOpen = computed(() => this.state().mobileOpen);\n readonly groups = computed(() => this.state().groups);\n\n constructor() {\n inject(DestroyRef).onDestroy(this.store.subscribe((next) => this.state.set(next)));\n }\n\n setMode(mode: SidebarMode): void {\n this.store.setMode(mode);\n }\n\n peekPointer(inside: boolean): void {\n this.store.peekPointer(inside);\n }\n\n peekFocus(inside: boolean): void {\n this.store.peekFocus(inside);\n }\n\n toggleMobile(): void {\n this.store.toggleMobile();\n }\n\n closeMobile(): void {\n this.store.closeMobile();\n }\n\n ensureExpanded(): void {\n this.store.ensureExpanded();\n }\n\n /** Reativo: dentro de `computed`/`effect`, recalcula quando as preferências de grupo mudam. */\n isGroupOpen(id: string, byDefault: boolean): boolean {\n this.groups();\n return this.store.isGroupOpen(id, byDefault);\n }\n\n setGroupOpen(id: string, open: boolean): void {\n this.store.setGroupOpen(id, open);\n }\n\n resetGroups(): void {\n this.store.resetGroups();\n }\n\n registerGroup(id: string): void {\n this.store.registerGroup(id);\n }\n\n unregisterGroup(id: string): void {\n this.store.unregisterGroup(id);\n }\n\n setAllGroups(open: boolean): void {\n this.store.setAllGroups(open);\n }\n\n /** @deprecated Sem uso conhecido; injete `DOCUMENT` direto. */\n get doc(): Document {\n return this.document;\n }\n}\n\nfunction browserStorage(doc: Document): Storage | null {\n try {\n return doc.defaultView?.localStorage ?? null;\n } catch {\n return null;\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n PLATFORM_ID,\n computed,\n effect,\n forwardRef,\n inject,\n input,\n signal,\n untracked,\n} from '@angular/core';\nimport { SIDEBAR_TRANSITION_MS, groupScrollOffset } from '@trismegisto/primitives';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { HermesSidebarGroup } from './sidebar-group.contract';\nimport { scrollBehavior } from './sidebar-motion';\nimport { HermesSidebarService } from './sidebar.service';\n\nlet nextPanel = 0;\n\n/**\n * Grupo expansível da navegação lateral (padrão APG *Disclosure*). No primeiro nível nasce aberto; dentro\n * de outro grupo, fechado. A escolha vale para a sessão e é por `id` — dois grupos com o mesmo `id`\n * dividem a preferência, então use ids únicos.\n *\n * ```html\n * <hm-sidebar-group id=\"cadastros\" label=\"Cadastros\" icon=\"folder\">\n * <hm-sidebar-link route=\"/clientes\" label=\"Clientes\" icon=\"users\" />\n * </hm-sidebar-group>\n * ```\n */\n@Component({\n selector: 'hm-sidebar-group',\n imports: [IconComponent],\n templateUrl: './sidebar-group.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: HermesSidebarGroup, useExisting: forwardRef(() => SidebarGroupComponent) }],\n})\nexport class SidebarGroupComponent extends HermesSidebarGroup {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n /** Chave da preferência de aberto/fechado (e alvo de \"expandir/recolher tudo\"). */\n readonly id = input.required<string>();\n readonly label = input.required<string>();\n /** Nome de ícone do catálogo; quem usa registra. */\n readonly icon = input.required<string>();\n\n protected readonly sidebar = inject(HermesSidebarService);\n protected readonly panelId = `hm-sidebar-group-panel-${++nextPanel}`;\n\n readonly #host: ElementRef<HTMLElement> = inject(ElementRef);\n readonly #parent = inject(HermesSidebarGroup, { optional: true, skipSelf: true });\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n readonly #sources = signal<ReadonlySet<object>>(new Set());\n #revealTimer: ReturnType<typeof setTimeout> | undefined;\n\n /** Coluna recolhida desenha todo grupo fechado, sem mexer na preferência. */\n protected readonly open = computed(\n () => !this.sidebar.collapsed() && this.sidebar.isGroupOpen(this.id(), this.#parent === null),\n );\n protected readonly hasActive = computed(() => this.#sources().size > 0);\n\n constructor() {\n super();\n\n effect((onCleanup) => {\n const id = this.id();\n untracked(() => this.sidebar.registerGroup(id));\n onCleanup(() => this.sidebar.unregisterGroup(id));\n });\n\n effect(() => {\n const active = this.hasActive();\n untracked(() => this.#parent?.markActive(this, active));\n });\n\n // Rota ativa aqui dentro reabre o grupo sempre que a coluna (re)abre.\n effect(() => {\n if (this.sidebar.collapsed() || !this.hasActive()) return;\n const id = this.id();\n untracked(() => this.sidebar.setGroupOpen(id, true));\n });\n\n inject(DestroyRef).onDestroy(() => {\n clearTimeout(this.#revealTimer);\n if (untracked(this.hasActive)) this.#parent?.markActive(this, false);\n });\n }\n\n expand(): void {\n this.sidebar.setGroupOpen(this.id(), true);\n }\n\n markActive(source: object, active: boolean): void {\n const current = this.#sources();\n if (current.has(source) === active) return;\n const next = new Set(current);\n if (active) next.add(source);\n else next.delete(source);\n this.#sources.set(next);\n }\n\n protected toggle(): void {\n const id = this.id();\n // No compacto (fora da gaveta) o gatilho só abre: a coluna se expande para mostrar o conteúdo.\n if (this.sidebar.mode() === 'compact' && !this.sidebar.mobileOpen()) {\n this.sidebar.ensureExpanded();\n this.sidebar.setGroupOpen(id, true);\n this.#reveal();\n return;\n }\n const next = !this.open();\n this.sidebar.setGroupOpen(id, next);\n if (next) this.#reveal();\n }\n\n /** Depois que o painel abriu, rola o mínimo para o grupo caber na coluna. */\n #reveal(): void {\n if (!this.#browser) return;\n clearTimeout(this.#revealTimer);\n this.#revealTimer = setTimeout(() => {\n const target = groupScrollOffset(this.#host.nativeElement);\n target?.column.scrollTo({ top: target.top, behavior: scrollBehavior(this.#host.nativeElement) });\n }, SIDEBAR_TRANSITION_MS);\n }\n}\n","<button\n type=\"button\"\n class=\"hm-sidebar-group__trigger\"\n [class.hm-sidebar-group__trigger--active]=\"hasActive()\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"panelId\"\n [title]=\"label()\"\n (click)=\"toggle()\"\n>\n <span class=\"hm-sidebar-group__glyph\">\n <hm-icon [shape]=\"icon()\" />\n @if (hasActive() && !open()) {\n <span class=\"hm-sidebar-group__mark\" aria-hidden=\"true\"></span>\n }\n </span>\n <span class=\"hm-sidebar-group__label\">{{ label() }}</span>\n <hm-icon class=\"hm-sidebar-group__chevron\" shape=\"angle\" direction=\"down\" />\n</button>\n<div\n class=\"hm-sidebar-group__panel\"\n [class.hm-sidebar-group__panel--open]=\"open()\"\n [class.hm-sidebar-group__panel--active]=\"hasActive()\"\n [id]=\"panelId\"\n [attr.inert]=\"open() ? null : ''\"\n>\n <div class=\"hm-sidebar-group__body\">\n <ng-content />\n </div>\n</div>\n","import { ChangeDetectionStrategy, Component, DestroyRef, booleanAttribute, computed, inject, input } from '@angular/core';\nimport { RouterLink, RouterLinkActive } from '@angular/router';\nimport { formatMessage } from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { HermesSidebarGroup } from './sidebar-group.contract';\nimport { HermesSidebarService } from './sidebar.service';\n\nlet nextId = 0;\n\n/**\n * Item de rota da navegação lateral: um `<a routerLink>` de verdade (Ctrl/clique do meio abrem em\n * outra aba). A atividade usa as opções padrão do `RouterLinkActive` — a rota-pai continua ativa\n * nas filhas — e é repassada ao grupo mais próximo.\n *\n * Com `opensMenu`, o item é a entrada de um módulo (ao chegar nele, a coluna mostra o menu do módulo):\n * ganha uma seta discreta no fim da linha e a descrição acessível \"abre o menu do módulo\", sem mudar o\n * nome do link. Na coluna recolhida a seta some (só a dica do ponteiro avisa).\n *\n * ```html\n * <hm-sidebar-link route=\"/pedidos\" label=\"Pedidos\" icon=\"list\" />\n * <hm-sidebar-link route=\"/cadastros\" label=\"Cadastros\" icon=\"grid\" opensMenu />\n * ```\n */\n@Component({\n selector: 'hm-sidebar-link',\n imports: [RouterLink, RouterLinkActive, IconComponent],\n templateUrl: './sidebar-link.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarLinkComponent {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n readonly route = input.required<string | readonly unknown[]>();\n readonly label = input.required<string>();\n /** Nome de ícone do catálogo; quem usa registra. */\n readonly icon = input.required<string>();\n /** O item leva ao menu de um módulo, não direto a uma página: mostra a seta de \"abre um menu\". */\n readonly opensMenu = input(false, { transform: booleanAttribute });\n\n protected readonly sidebar = inject(HermesSidebarService);\n readonly #messages = inject(HERMES_MESSAGES);\n protected readonly hintId = `hm-sidebar-link-hint-${++nextId}`;\n protected readonly hint = computed(() => this.#messages.sidebar.opensMenu);\n protected readonly title = computed(() =>\n this.opensMenu() ? formatMessage(this.#messages.sidebar.opensMenuTitle, { label: this.label() }) : this.label(),\n );\n readonly #group = inject(HermesSidebarGroup, { optional: true });\n #active = false;\n\n constructor() {\n // Link ativo que sai da árvore não pode deixar o grupo marcado.\n inject(DestroyRef).onDestroy(() => {\n if (this.#active) this.#group?.markActive(this, false);\n });\n }\n\n protected onClick(): void {\n this.#group?.expand();\n }\n\n protected onActiveChange(active: boolean): void {\n this.#active = active;\n this.#group?.markActive(this, active);\n }\n}\n","<a\n class=\"hm-sidebar-link\"\n [routerLink]=\"route()\"\n routerLinkActive=\"hm-sidebar-link--active\"\n ariaCurrentWhenActive=\"page\"\n (isActiveChange)=\"onActiveChange($event)\"\n [class.hm-sidebar-link--collapsed]=\"sidebar.collapsed()\"\n [class.hm-sidebar-link--opens-menu]=\"opensMenu()\"\n [title]=\"title()\"\n [attr.aria-describedby]=\"opensMenu() ? hintId : null\"\n (click)=\"onClick()\"\n>\n <hm-icon class=\"hm-sidebar-link__icon\" [shape]=\"icon()\" />\n <span class=\"hm-sidebar-link__text\">{{ label() }}</span>\n @if (opensMenu()) {\n <hm-icon class=\"hm-sidebar-link__submenu\" shape=\"angle\" direction=\"right\" />\n <!-- Fora do nome (aria-hidden), dentro da descrição: o link aponta para cá por aria-describedby. -->\n <span class=\"hm-sidebar-link__hint\" aria-hidden=\"true\" [id]=\"hintId\">{{ hint() }}</span>\n }\n</a>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { SidebarGroupComponent } from './sidebar-group.component';\nimport { SidebarLinkComponent } from './sidebar-link.component';\n\n/** Um nó da árvore de navegação: folha vira link; nó com filhos visíveis vira grupo. */\nexport interface SidebarNode {\n id: string;\n label: string;\n /** Nome de ícone do catálogo (padrão `circle`). */\n icon?: string;\n route: string | readonly unknown[];\n children?: readonly SidebarNode[];\n /** Fica fora da árvore desenhada. */\n hidden?: boolean;\n}\n\n/**\n * Desenha uma árvore de `SidebarNode` com `hm-sidebar-group`/`hm-sidebar-link`. `depth` é quantos níveis\n * ainda podem virar grupo: `0` desenha só links (lista de módulos), `Infinity` aninha até as folhas.\n * Nó com filhos visíveis desenhado como link (profundidade esgotada) é a entrada de um módulo: o link\n * ganha `opensMenu` (seta de \"abre um menu\"); folha de verdade leva direto à página, sem seta.\n *\n * ```html\n * @for (node of tree; track node.id) { <hm-sidebar-node [node]=\"node\" [depth]=\"2\" /> }\n * ```\n */\n@Component({\n selector: 'hm-sidebar-node',\n imports: [SidebarGroupComponent, SidebarLinkComponent],\n template: `\n @let item = node();\n @let kids = visibleChildren();\n @if (depth() > 0 && kids.length > 0) {\n <hm-sidebar-group [id]=\"item.id\" [label]=\"item.label\" [icon]=\"item.icon ?? fallbackIcon\">\n @for (child of kids; track child.id) {\n <hm-sidebar-node [node]=\"child\" [depth]=\"depth() - 1\" />\n }\n </hm-sidebar-group>\n } @else {\n <hm-sidebar-link\n [route]=\"item.route\"\n [label]=\"item.label\"\n [icon]=\"item.icon ?? fallbackIcon\"\n [opensMenu]=\"kids.length > 0\"\n />\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarNodeComponent {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n readonly node = input.required<SidebarNode>();\n readonly depth = input(1);\n\n protected readonly fallbackIcon = 'circle';\n protected readonly visibleChildren = computed(() => (this.node().children ?? []).filter((child) => !child.hidden));\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n ElementRef,\n PLATFORM_ID,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n output,\n signal,\n untracked,\n viewChild,\n} from '@angular/core';\nimport {\n MenuItem,\n SIDEBAR_CONTENT_ID,\n SIDEBAR_MEASURE_DELAY_MS,\n SIDEBAR_MODES,\n SIDEBAR_SCROLL_RESTORE_DELAY_MS,\n SIDEBAR_TRANSITION_MS,\n SidebarMode,\n focusStaysInside,\n isKeyboardFocus,\n measureSidebarWidth,\n} from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nimport { MenuButtonComponent } from '@trismegisto/angular/menu-button';\nimport { SIDEBAR_ICONS } from './icons.generated';\nimport { scrollBehavior } from './sidebar-motion';\nimport { HermesSidebarService } from './sidebar.service';\n\nconst MODE_GLYPH: Record<SidebarMode, string> = { auto: 'arrows-horizontal', fixed: 'pin', compact: 'menu' };\n// Ordem do menu de modos (não é a de SIDEBAR_MODES).\nconst MENU_ORDER: readonly SidebarMode[] = ['auto', 'fixed', 'compact'];\n\ninterface Level {\n readonly key: number;\n readonly animated: boolean;\n}\n\n/**\n * Coluna de navegação do shell. O conteúdo projetado (links, grupos, `hm-sidebar-node` ou qualquer outra\n * coisa) rola dentro de `#hm-sidebar-content`. Com `heading`, a coluna mostra um nível de módulo com\n * título e, se houver `backLabel`, o botão de voltar (`back`).\n *\n * O modo (`auto` sobrepõe e abre ao aproximar, `fixed` fica aberta, `compact` fica só com ícones) vem do\n * `HermesSidebarService`. No modo `auto` o contêiner da linha coluna + conteúdo precisa ser\n * `position: relative`. Abaixo do degrau `md` a coluna vira gaveta, aberta pelo gatilho do `hm-header`.\n *\n * ```html\n * <hm-sidebar label=\"Navegação principal\">\n * <hm-sidebar-link route=\"/\" label=\"Início\" icon=\"home\" />\n * </hm-sidebar>\n * ```\n */\n@Component({\n selector: 'hm-sidebar',\n imports: [IconComponent, IconButtonComponent, MenuButtonComponent],\n templateUrl: './sidebar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SidebarComponent {\n readonly #icons = useHermesIcons(SIDEBAR_ICONS);\n\n /** Nome do landmark `<nav>`. */\n readonly label = input.required<string>();\n /** Título do nível atual; vazio = nível raiz, sem topo. */\n readonly heading = input('');\n readonly headingIcon = input('grid');\n /** Texto do botão de voltar (só aparece com `heading`); vazio = sem botão. */\n readonly backLabel = input('');\n /** De que lado o nível novo entra: `forward` vem do fim, `back` do início. */\n readonly direction = input<'forward' | 'back'>('forward');\n /** Rodapé com o menu de modos e as ações de expandir/recolher tudo. */\n readonly collapsible = input(true, { transform: booleanAttribute });\n\n readonly back = output<void>();\n\n protected readonly sidebar = inject(HermesSidebarService);\n protected readonly contentId = SIDEBAR_CONTENT_ID;\n readonly #messages = inject(HERMES_MESSAGES);\n readonly #document = inject(DOCUMENT);\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly content = viewChild<ElementRef<HTMLElement>>('content');\n\n protected readonly text = computed(() => this.#messages.sidebar);\n\n #levelSerial = 0;\n /** Um item só; a chave muda a cada `heading` novo e o `@for` recria o nível inteiro. */\n protected readonly levels = computed<readonly Level[]>(() => {\n this.heading();\n const key = ++this.#levelSerial;\n return [{ key, animated: key > 1 }];\n });\n\n protected readonly modeName = computed(() => this.#modeLabel(this.sidebar.mode()));\n protected readonly modeIcon = computed(() => MODE_GLYPH[this.sidebar.mode()]);\n protected readonly modeMenuLabel = computed(() => `${this.text().behavior}: ${this.modeName()}`);\n protected readonly modeItems = computed<readonly MenuItem[]>(() => {\n const current = this.sidebar.mode();\n return MENU_ORDER.map((id) => ({ id, label: this.#modeLabel(id), icon: id === current ? 'check' : MODE_GLYPH[id] }));\n });\n\n /** Largura que a coluna aberta assume; `null` = piso do CSS. */\n protected readonly fitWidth = signal<number | null>(null);\n readonly #fitByLayout = new Map<string, number>();\n #measureTimer: ReturnType<typeof setTimeout> | undefined;\n #scrollTimer: ReturnType<typeof setTimeout> | undefined;\n #savedScroll: number | null = null;\n\n constructor() {\n let lastHeading: string | undefined;\n effect(() => {\n const heading = this.heading();\n if (lastHeading !== undefined && heading !== lastHeading) {\n untracked(() => this.sidebar.resetGroups());\n this.#savedScroll = null;\n }\n lastHeading = heading;\n });\n\n if (!this.#browser) return;\n\n effect(() => {\n const open = this.sidebar.expanded();\n const layout = this.#layoutKey();\n untracked(() => this.#fit(open, layout));\n });\n\n let wasOpen: boolean | undefined;\n effect(() => {\n const open = this.sidebar.expanded();\n if (open === wasOpen) return;\n const first = wasOpen === undefined;\n wasOpen = open;\n untracked(() => this.#onOpenChange(open, first));\n });\n\n // Conteúdo que chega depois (árvore carregada do backend) pede nova medida com a coluna aberta.\n const observer = typeof MutationObserver === 'function'\n ? new MutationObserver(() => {\n if (untracked(this.sidebar.expanded)) this.#scheduleMeasure(untracked(this.#layoutKey));\n })\n : null;\n effect(() => {\n const content = this.content()?.nativeElement;\n observer?.disconnect();\n if (content) observer?.observe(content, { childList: true, subtree: true, characterData: true });\n });\n\n inject(DestroyRef).onDestroy(() => {\n observer?.disconnect();\n clearTimeout(this.#measureTimer);\n clearTimeout(this.#scrollTimer);\n });\n }\n\n protected chooseMode(id: string): void {\n if ((SIDEBAR_MODES as readonly string[]).includes(id)) this.sidebar.setMode(id as SidebarMode);\n }\n\n protected setAll(open: boolean): void {\n this.sidebar.ensureExpanded();\n this.sidebar.setAllGroups(open);\n }\n\n protected onFocusIn(event: FocusEvent): void {\n // Foco de clique não segura a coluna aberta; só o de teclado.\n if (isKeyboardFocus(event.target)) this.sidebar.peekFocus(true);\n }\n\n protected onFocusOut(event: FocusEvent): void {\n if (!focusStaysInside(event)) this.sidebar.peekFocus(false);\n }\n\n #modeLabel(mode: SidebarMode): string {\n const text = this.text();\n return mode === 'auto' ? text.modeAuto : mode === 'fixed' ? text.modeFixed : text.modeCompact;\n }\n\n /** Arranjo = nível atual + estado de cada grupo; a largura medida é lembrada por arranjo. */\n readonly #layoutKey = computed(() => {\n const groups = [...this.sidebar.groups()].sort(([a], [b]) => (a < b ? -1 : a > b ? 1 : 0));\n return `${this.heading()}\\u0000${groups.map(([id, open]) => `${id}=${open ? 1 : 0}`).join(',')}`;\n });\n\n #fit(open: boolean, layout: string): void {\n clearTimeout(this.#measureTimer);\n if (!open) {\n this.fitWidth.set(null);\n return;\n }\n const known = this.#fitByLayout.get(layout);\n if (known !== undefined) this.fitWidth.set(known);\n this.#scheduleMeasure(layout);\n }\n\n #scheduleMeasure(layout: string): void {\n clearTimeout(this.#measureTimer);\n this.#measureTimer = setTimeout(() => {\n const width = measureSidebarWidth(this.#document);\n if (width === null) return;\n this.#fitByLayout.set(layout, width);\n this.fitWidth.set(width);\n }, SIDEBAR_TRANSITION_MS + SIDEBAR_MEASURE_DELAY_MS);\n }\n\n #onOpenChange(open: boolean, first: boolean): void {\n clearTimeout(this.#scrollTimer);\n const content = this.content()?.nativeElement;\n if (!open) {\n if (!first && content) this.#savedScroll = content.scrollTop;\n return;\n }\n this.#scrollTimer = setTimeout(() => this.#restoreScroll(), SIDEBAR_SCROLL_RESTORE_DELAY_MS);\n }\n\n #restoreScroll(): void {\n const content = this.content()?.nativeElement;\n if (!content) return;\n const behavior = scrollBehavior(content);\n if (this.#savedScroll !== null) {\n content.scrollTo({ top: this.#savedScroll, behavior });\n return;\n }\n const active = content.querySelector<HTMLElement>('.hm-sidebar-link--active');\n if (!active) return;\n const box = active.getBoundingClientRect();\n const view = content.getBoundingClientRect();\n const shift = box.top < view.top ? box.top - view.top : box.bottom > view.bottom ? box.bottom - view.bottom : 0;\n if (shift !== 0) content.scrollTo({ top: content.scrollTop + shift, behavior });\n }\n}\n","@if (sidebar.overlaid()) {\n <div class=\"hm-sidebar__placeholder\" aria-hidden=\"true\"></div>\n}\n@if (sidebar.mobileOpen()) {\n <div class=\"hm-sidebar__backdrop\" aria-hidden=\"true\" (click)=\"sidebar.closeMobile()\"></div>\n}\n<nav\n class=\"hm-sidebar\"\n [attr.aria-label]=\"label()\"\n [class.hm-sidebar--compact]=\"sidebar.collapsed()\"\n [class.hm-sidebar--overlaid]=\"sidebar.overlaid()\"\n [class.hm-sidebar--open]=\"sidebar.mobileOpen()\"\n [style.--hm-sidebar-fit]=\"fitWidth() === null ? null : fitWidth() + 'px'\"\n (mouseenter)=\"sidebar.peekPointer(true)\"\n (mouseleave)=\"sidebar.peekPointer(false)\"\n (focusin)=\"onFocusIn($event)\"\n (focusout)=\"onFocusOut($event)\"\n>\n @for (level of levels(); track level.key) {\n <div\n class=\"hm-sidebar__level\"\n [class.hm-sidebar__level--enter]=\"level.animated\"\n [class.hm-sidebar__level--from-start]=\"direction() === 'back'\"\n >\n @if (heading()) {\n <div class=\"hm-sidebar__top\">\n @if (backLabel()) {\n <button type=\"button\" class=\"hm-sidebar__back\" [attr.aria-label]=\"backLabel()\" [title]=\"backLabel()\" (click)=\"back.emit()\">\n <hm-icon class=\"hm-sidebar__back-icon\" shape=\"arrow\" direction=\"left\" />\n <span class=\"hm-sidebar__fade\">{{ backLabel() }}</span>\n </button>\n }\n <p class=\"hm-sidebar__title\" [title]=\"heading()\">\n <hm-icon class=\"hm-sidebar__title-icon\" [shape]=\"headingIcon()\" />\n <span class=\"hm-sidebar__fade\">{{ heading() }}</span>\n </p>\n </div>\n }\n <div #content class=\"hm-sidebar__content\" [id]=\"contentId\">\n <ng-content />\n </div>\n </div>\n }\n @if (collapsible()) {\n <div class=\"hm-sidebar__footer\">\n <hm-menu-button\n class=\"hm-sidebar__modes\"\n [label]=\"modeMenuLabel()\"\n [icon]=\"modeIcon()\"\n [items]=\"modeItems()\"\n [showArrow]=\"false\"\n (chosen)=\"chooseMode($event)\"\n />\n @if (sidebar.expanded()) {\n <span class=\"hm-sidebar__mode-name hm-sidebar__fade\">{{ modeName() }}</span>\n <hm-icon-button\n emphasis=\"subtle\"\n size=\"small\"\n icon=\"angle\"\n iconDirection=\"down\"\n [label]=\"text().expandAll\"\n (clicked)=\"setAll(true)\"\n />\n <hm-icon-button\n emphasis=\"subtle\"\n size=\"small\"\n icon=\"angle\"\n iconDirection=\"up\"\n [label]=\"text().collapseAll\"\n (clicked)=\"setAll(false)\"\n />\n }\n </div>\n }\n</nav>\n","// Ponto de import `@trismegisto/angular/sidebar` (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 './sidebar-group.component';\nexport * from './sidebar-group.contract';\nexport * from './sidebar-link.component';\nexport * from './sidebar-node.component';\nexport * from './sidebar.component';\nexport * from './sidebar.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAeO,MAAM,aAAa,GAA8B,CAAC,UAAU,EAAE,UAAU,EAAE,sBAAsB,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC;;ACfjK;;;;AAIG;MACmB,kBAAkB,CAAA;AAKvC;;ACVD;AACM,SAAU,cAAc,CAAC,IAAa,EAAA;AAC1C,IAAA,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW;AAC3C,IAAA,MAAM,OAAO,GAAG,OAAO,IAAI,EAAE,UAAU,KAAK,UAAU,IAAI,IAAI,CAAC,UAAU,CAAC,kCAAkC,CAAC,CAAC,OAAO;IACrH,OAAO,OAAO,GAAG,MAAM,GAAG,QAAQ;AACpC;;ACDA;AACO,MAAM,qBAAqB,GAAG,IAAI,cAAc,CACrD,uBAAuB,EACvB,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE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AM,EAAA,QAAA,EAAA,6oFAAA,EAAA;mtBAwBe,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE1FzE;AACA;;ACDA;;AAEG;;"}
@@ -53,7 +53,7 @@ export { SettingsDialogComponent, SettingsRowComponent, SettingsSectionComponent
53
53
  export { AccordionComponent, AccordionContentDirective, AccordionPanelComponent, HermesAccordionGroup } from '@trismegisto/angular/accordion';
54
54
  export { TreeComponent, TreeNodeTemplateDirective } from '@trismegisto/angular/tree';
55
55
  export { DataGridActionBarComponent, DataGridCellDirective, DataGridColumnFilterComponent, DataGridComponent, DataGridHeaderDirective } from '@trismegisto/angular/data-grid';
56
- export { SessionRecoveryComponent } from '@trismegisto/angular/session-recovery';
56
+ export { SessionRecoveryComponent, safeReturnUrl } from '@trismegisto/angular/session-recovery';
57
57
  export { ThemePickerComponent } from '@trismegisto/angular/theme-picker';
58
58
  export { HeaderComponent } from '@trismegisto/angular/header';
59
59
  export { ContextMenuDirective, MenuComponent } from '@trismegisto/angular/menu';
@@ -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 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 } 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 } 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"}
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "@trismegisto/angular",
3
- "version": "2.0.1",
3
+ "version": "2.1.1",
4
4
  "description": "Hermes Design System — componentes Angular sobre @trismegisto/primitives, icons, tokens e core",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
- "repository": {
7
- "type": "git",
8
- "url": "git+https://github.com/xlucvvs/trismegisto.git",
9
- "directory": "packages/angular"
10
- },
11
6
  "sideEffects": false,
12
7
  "peerDependencies": {
13
8
  "@angular/cdk": ">=21.0.0",
@@ -16,10 +11,10 @@
16
11
  "@angular/forms": ">=21.0.0",
17
12
  "@angular/platform-browser": ">=21.0.0",
18
13
  "@angular/router": ">=21.0.0",
19
- "@trismegisto/core": "^2.0.1",
20
- "@trismegisto/icons": "^2.0.1",
21
- "@trismegisto/primitives": "^2.0.1",
22
- "@trismegisto/tokens": "^2.0.1",
14
+ "@trismegisto/core": "^2.1.1",
15
+ "@trismegisto/icons": "^2.1.1",
16
+ "@trismegisto/primitives": "^2.1.1",
17
+ "@trismegisto/tokens": "^2.1.1",
23
18
  "rxjs": "^7.8.0"
24
19
  },
25
20
  "peerDependenciesMeta": {
@@ -3,6 +3,7 @@ import { TemplateRef, Signal, ModelSignal, ElementRef, WritableSignal } from '@a
3
3
  import * as _trismegisto_primitives from '@trismegisto/primitives';
4
4
  import { PopoverAnchor, GridFilterOption, PopoverPlacement, GridColumn, GridColumnState, GridColumnFilters, GridGroup, GridCollapsedGroups, GridAggregates, GridAggregateFormatter, PluralMessage, GridAggregateCell, PaginationState, GridPinnedColumns, GridColumnPin, GridFilterCondition, GridColumnType, GridFilterOperator, GridFilterQuery, MenuItem, GridSelection, GridSort, GridVirtualWindow, MessageParams } from '@trismegisto/primitives';
5
5
  export { GridColumn as DataGridColumn } from '@trismegisto/primitives';
6
+ import { HermesConfirmOptions } from '@trismegisto/angular/dialog';
6
7
  import { HermesDragVia, HermesSortEvent } from '@trismegisto/angular/drag-drop';
7
8
 
8
9
  /**
@@ -272,6 +273,15 @@ declare class DataGridHeaderDirective {
272
273
  }
273
274
 
274
275
  /** Tipos públicos do `hm-data-grid` — reexportados por `data-grid.component.ts`. */
276
+
277
+ /**
278
+ * Confirmação de uma ação por linha (`HermesDialogService.confirm`). `confirmLabel` padrão: o rótulo da
279
+ * ação; `danger` padrão: o `danger` da ação.
280
+ */
281
+ type DataGridActionConfirm = Omit<HermesConfirmOptions, 'danger' | 'confirmLabel'> & {
282
+ readonly danger?: boolean;
283
+ readonly confirmLabel?: string;
284
+ };
275
285
  /** Ação por linha, desenhada como item do menu da última coluna. */
276
286
  interface DataGridRowAction<T = unknown> {
277
287
  readonly id: string;
@@ -282,6 +292,11 @@ interface DataGridRowAction<T = unknown> {
282
292
  readonly separatorAbove?: boolean;
283
293
  /** Filtro por linha: devolvendo `false`, a ação some do menu daquela linha. */
284
294
  readonly available?: (row: T) => boolean;
295
+ /**
296
+ * Pede confirmação num diálogo antes de emitir `actionTriggered` (ações destrutivas: excluir, revogar).
297
+ * Função = texto por linha (ex.: o nome do item na mensagem). Cancelar não emite nada.
298
+ */
299
+ readonly confirm?: DataGridActionConfirm | ((row: T) => DataGridActionConfirm);
285
300
  }
286
301
  interface DataGridActionTriggered<T> {
287
302
  readonly action: string;
@@ -1154,7 +1169,10 @@ declare class DataGridComponent<T> {
1154
1169
  protected readonly sizing: GridColumnSizingFeature<T>;
1155
1170
  private readonly exporting;
1156
1171
  private readonly persistence;
1172
+ private readonly dialogs;
1157
1173
  protected readonly rowMenu: GridRowActionsFeature<T>;
1174
+ /** Emite `actionTriggered`; com `confirm` na ação, só depois que a pessoa confirma no diálogo. */
1175
+ private triggerAction;
1158
1176
  private readonly cellByKey;
1159
1177
  private readonly headerByKey;
1160
1178
  protected readonly headers: Signal<readonly Header<T>[]>;
@@ -1226,5 +1244,5 @@ declare class DataGridComponent<T> {
1226
1244
  }
1227
1245
 
1228
1246
  export { DataGridActionBarComponent, DataGridCellDirective, DataGridColumnFilterComponent, DataGridComponent, DataGridHeaderDirective };
1229
- export type { DataGridActionTriggered, DataGridContext, DataGridExportFormat, DataGridExportOptions, DataGridFooterContext, DataGridPersistStorage, DataGridRowAction, DataGridRowDetail, DataGridRowState, DataGridSelectionMode };
1247
+ export type { DataGridActionConfirm, DataGridActionTriggered, DataGridContext, DataGridExportFormat, DataGridExportOptions, DataGridFooterContext, DataGridPersistStorage, DataGridRowAction, DataGridRowDetail, DataGridRowState, DataGridSelectionMode };
1230
1248
  //# sourceMappingURL=trismegisto-angular-data-grid.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-data-grid.d.ts","sources":["../../src/data-grid/data-grid-action-bar.component.ts","../../src/data-grid/data-grid-cell.directive.ts","../../src/data-grid/data-grid-column-filter.component.ts","../../src/data-grid/data-grid-header.directive.ts","../../src/data-grid/data-grid.types.ts","../../src/data-grid/data-grid.view-model.ts","../../src/data-grid/features/column-order.feature.ts","../../src/data-grid/features/column-sizing.feature.ts","../../src/data-grid/features/column-visibility.feature.ts","../../src/data-grid/features/detail.feature.ts","../../src/data-grid/features/export.feature.ts","../../src/data-grid/features/filter.feature.ts","../../src/data-grid/features/group.feature.ts","../../src/data-grid/features/pagination.feature.ts","../../src/data-grid/features/persistence.feature.ts","../../src/data-grid/features/pinning.feature.ts","../../src/data-grid/features/query.feature.ts","../../src/data-grid/features/row-actions.feature.ts","../../src/data-grid/features/selection.feature.ts","../../src/data-grid/features/sort.feature.ts","../../src/data-grid/features/virtual.feature.ts","../../src/data-grid/data-grid.component.ts"],"mappings":";;;;;;;AAMA;;;;;AAKG;AACH,cAOa,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEsB;;qBAG5C,aAAA,CAAA,WAAA;0BACK,aAAA,CAAA,WAAA;;oBAEN,aAAA,CAAA,WAAA;AAEd,6BAAyB,KAAK;;oDAVnB,0BAA0B;sDAA1B,0BAA0B;AAiBtC;;AChCD;;;;;;;AAOG;AACH,cACa,qBAAqB;;qBAEjB,aAAA,CAAA,WAAA;AACf,uBAAmB,WAAW;;AAAuB;6BAE5B,WAAW;;;oDALzB,qBAAqB;sDAArB,qBAAqB;AAQjC;;ACiBD;;;;;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+BAAyB,uBAAA;AAYzB;AASA;AAcA,gCAA0B,qBAAA;AAG1B;AACA;AAEA,gCAA0B,MAAA,UAAA,MAAA;AAS1B;;AAeA,iCAA2B,MAAA,UAAA,GAAA;AAK3B,sCAAgC,MAAA,UAAA,YAAA,IAAA,GAAA;;AAGhC;;AAMA;AAaA;;AAKA;AAUA,oCAA8B,kBAAA;;wCAYI,MAAA;;;;;;AA6B/B;AAGH,sCAAgC,MAAA;AAChC,+BAAyB,MAAA,CAAA,WAAA,SAAA,iBAAA;AAKzB,mCAA6B,MAAA;AAE7B,qCAA+B,MAAA;AAC/B,qCAA+B,MAAA;;AAE/B,uCAAiC,MAAA;AAEjC,iCAA2B,MAAA;AAC3B,oCAA8B,MAAA,UAAA,QAAA;AAK9B;AAEA,mCAA6B,MAAA;AAO7B,qCAA+B,MAAA;;AAM/B,8BAAwB,MAAA;AACxB,kCAA4B,MAAA;AAC5B,kCAA4B,MAAA;AAI5B,sCAAgC,MAAA;AAEhC,0CAAoC,MAAA;;;AAwBpC,wBAAmB,qBAA0B;;AAK7C;4CAMwC,aAAa;AAIrD;;AAAoD;AAAwB;AAAI;iCAInD,iBAAiB;AAI9C;;kCAY8B,GAAG;AAMjC,gCAA4B,UAAU,OAAO,GAAG;;mDAyBD,aAAa;;AAsC5D;AAIA;AAMA;AAIA;AAMA;AAMA;oDAthBW,iBAAiB;sDAAjB,iBAAiB;AA2hB7B;;","names":[]}
1
+ {"version":3,"file":"trismegisto-angular-data-grid.d.ts","sources":["../../src/data-grid/data-grid-action-bar.component.ts","../../src/data-grid/data-grid-cell.directive.ts","../../src/data-grid/data-grid-column-filter.component.ts","../../src/data-grid/data-grid-header.directive.ts","../../src/data-grid/data-grid.types.ts","../../src/data-grid/data-grid.view-model.ts","../../src/data-grid/features/column-order.feature.ts","../../src/data-grid/features/column-sizing.feature.ts","../../src/data-grid/features/column-visibility.feature.ts","../../src/data-grid/features/detail.feature.ts","../../src/data-grid/features/export.feature.ts","../../src/data-grid/features/filter.feature.ts","../../src/data-grid/features/group.feature.ts","../../src/data-grid/features/pagination.feature.ts","../../src/data-grid/features/persistence.feature.ts","../../src/data-grid/features/pinning.feature.ts","../../src/data-grid/features/query.feature.ts","../../src/data-grid/features/row-actions.feature.ts","../../src/data-grid/features/selection.feature.ts","../../src/data-grid/features/sort.feature.ts","../../src/data-grid/features/virtual.feature.ts","../../src/data-grid/data-grid.component.ts"],"mappings":";;;;;;;;AAMA;;;;;AAKG;AACH,cAOa,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEsB;;qBAG5C,aAAA,CAAA,WAAA;0BACK,aAAA,CAAA,WAAA;;oBAEN,aAAA,CAAA,WAAA;AAEd,6BAAyB,KAAK;;oDAVnB,0BAA0B;sDAA1B,0BAA0B;AAiBtC;;AChCD;;;;;;;AAOG;AACH,cACa,qBAAqB;;qBAEjB,aAAA,CAAA,WAAA;AACf,uBAAmB,WAAW;;AAAuB;6BAE5B,WAAW;;;oDALzB,qBAAqB;sDAArB,qBAAqB;AAQjC;;ACiBD;;;;;;;;AAQG;AACH,cAMa,6BAA6B;;;qBAIzB,aAAA,CAAA,WAAA,CAAA,aAAA;;oBAED,aAAA,CAAA,WAAA;;sBAEE,aAAA,CAAA,WAAA,UAAA,gBAAA;mBACH,aAAA,CAAA,WAAA;qBACE,aAAA,CAAA,WAAA;0BAEK,aAAA,CAAA,gBAAA;4BACE,aAAA,CAAA,gBAAA;sBACN,aAAA,CAAA,gBAAA;qBACD,aAAA,CAAA,gBAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE4C;AAE3D,iCAA2B,aAAA,CAAA,MAAA;AAM3B,kCAA4B,aAAA,CAAA,MAAA,CAAA,gBAAA;AAO5B;AACA;;AAiCA,6BAAyB,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AAC/B,qCAA+B,MAAA;;AAE/B,uCAAiC,MAAA;AAEjC,iCAA2B,MAAA;AAC3B,oCAA8B,MAAA,UAAA,QAAA;AAK9B;AAEA,mCAA6B,MAAA;AAO7B,qCAA+B,MAAA;;AAM/B,8BAAwB,MAAA;AACxB,kCAA4B,MAAA;AAC5B,kCAA4B,MAAA;AAI5B,sCAAgC,MAAA;AAEhC,0CAAoC,MAAA;;;AAwBpC,wBAAmB,qBAA0B;;AAK7C;4CAMwC,aAAa;AAIrD;;AAAoD;AAAwB;AAAI;iCAInD,iBAAiB;AAI9C;;kCAY8B,GAAG;AAMjC,gCAA4B,UAAU,OAAO,GAAG;;mDAyBD,aAAa;;AAsC5D;AAIA;AAMA;AAIA;AAMA;AAMA;oDAliBW,iBAAiB;sDAAjB,iBAAiB;AAuiB7B;;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-menu.d.ts","sources":["../../src/menu/context-menu.directive.ts","../../src/menu/menu.component.ts"],"mappings":";;;AAsBA;;;;;;;;;;;;;;;;;AAiBG;AACH,cAQa,oBAAoB;;oBAEjB,aAAA,CAAA,WAAA,UAAA,QAAA;;oBAEA,aAAA,CAAA,WAAA;;uBAEG,aAAA,CAAA,wBAAA;;oBAEH,aAAA,CAAA,WAAA;;2BAEO,aAAA,CAAA,wBAAA;;qBAGN,aAAA,CAAA,gBAAA;;4BAEO,aAAA,CAAA,gBAAA,CAAA,cAAA;AAEtB;AACA;AACA;AACA;;;;;;;;;AAoCA;AAQA,mCAA+B,UAAU;AAazC,+BAA2B,aAAa;AAQxC;AAIA;AAKA;AAWA;AAeA;;;AAGG;AACH;oDA5HW,oBAAoB;sDAApB,oBAAoB;AA4IhC;;AC1ID,KAAK,WAAW;AAIhB;;;;;;;;;;;;;;;;;;;;;AAqBG;AACH,cAMa,aAAa;;;qBAIT,aAAA,CAAA,WAAA,CAAA,aAAA;oBACD,aAAA,CAAA,WAAA,UAAA,QAAA;;oBAEA,aAAA,CAAA,WAA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;;AAQlC,uCAAmC,UAAU;AAK7C,2CAAuC,UAAU;gCAKrB,QAAQ;AAIpC,4BAAwB,QAAQ;AAIhC,+BAA2B,aAAa;AAkCxC;AAwBA;;AAkBA;AASA;AAkBA;AAgBA;;;AAGG;AACH;AAMA;AAMA;AAWA;;AAMA;AAKA;AAuBA;AASA;;AAOA;AAIA;AAIA;AAYA;AAKA;oDAtYW,aAAa;sDAAb,aAAa;AA+YzB;;","names":[]}
@@ -8,20 +8,38 @@ import * as _angular_core from '@angular/core';
8
8
  * Só apresentação: quem consome decide *quando* a sessão está morta e *para onde* voltar
9
9
  * (`origin`); sem `origin` nada é renderizado. Por padrão navega até `origin`; `returned` emite
10
10
  * antes, e `navigate=false` deixa a navegação por conta de quem escuta.
11
+ *
12
+ * Segurança: `origin` costuma vir da URL/referrer, então só vale endereço `http:`/`https:` (relativo
13
+ * resolve contra a página); `javascript:`, `data:` e afins escondem o botão. Com `allowedOrigins`,
14
+ * só a mesma origem da página e as origens listadas — sem lista, qualquer origem http(s) (redirect
15
+ * aberto possível: declare a lista quando `origin` vier de fora).
11
16
  */
12
17
  declare class SessionRecoveryComponent {
13
- /** URL de retorno (ex.: referrer do fluxo). Vazio esconde o botão. */
18
+ /** URL de retorno (ex.: referrer do fluxo). Vazia, inválida ou fora de `http:`/`https:` esconde o botão. */
14
19
  readonly origin: _angular_core.InputSignal<string | null | undefined>;
20
+ /**
21
+ * Origens aceitas além da própria página (`https://app.exemplo.com`; só esquema + host + porta contam).
22
+ * `null`/vazio = qualquer origem `http(s)`.
23
+ */
24
+ readonly allowedOrigins: _angular_core.InputSignal<readonly string[] | null>;
15
25
  protected readonly i18n: _trismegisto_primitives.HermesMessages;
16
26
  /** Vazio = texto do catálogo no idioma ativo (`HERMES_MESSAGES.sessionRecovery.back`). */
17
27
  readonly label: _angular_core.InputSignal<string>;
18
28
  readonly navigate: _angular_core.InputSignalWithTransform<boolean, unknown>;
29
+ /** Emite o endereço já normalizado (absoluto) antes de navegar. */
19
30
  readonly returned: _angular_core.OutputEmitterRef<string>;
20
31
  private readonly document;
32
+ /** Endereço seguro para voltar, ou `null` (botão escondido). */
33
+ protected readonly target: _angular_core.Signal<string | null>;
21
34
  protected back(): void;
22
35
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SessionRecoveryComponent, never>;
23
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SessionRecoveryComponent, "hm-session-recovery", never, { "origin": { "alias": "origin"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "navigate": { "alias": "navigate"; "required": false; "isSignal": true; }; }, { "returned": "returned"; }, never, never, true, never>;
36
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SessionRecoveryComponent, "hm-session-recovery", never, { "origin": { "alias": "origin"; "required": false; "isSignal": true; }; "allowedOrigins": { "alias": "allowedOrigins"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "navigate": { "alias": "navigate"; "required": false; "isSignal": true; }; }, { "returned": "returned"; }, never, never, true, never>;
24
37
  }
38
+ /**
39
+ * `origin` resolvido contra a página e validado: só `http:`/`https:` e, com `allowed`, só a mesma origem
40
+ * da página ou uma das listadas. Devolve o `href` normalizado ou `null`.
41
+ */
42
+ declare function safeReturnUrl(origin: string | null | undefined, document: Document, allowed?: readonly string[] | null): string | null;
25
43
 
26
- export { SessionRecoveryComponent };
44
+ export { SessionRecoveryComponent, safeReturnUrl };
27
45
  //# sourceMappingURL=trismegisto-angular-session-recovery.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-session-recovery.d.ts","sources":["../../src/session-recovery/session-recovery.component.ts"],"mappings":";;;AAIA;;;;;;;AAOG;AACH,cAYa,wBAAwB;;qBAEpB,aAAA,CAAA,WAAA;AAEf,6BAAuB,uBAAA,CAAA,cAAA;;oBAET,aAAA,CAAA,WAAA;uBAEG,aAAA,CAAA,wBAAA;uBAEA,aAAA,CAAA,gBAAA;AAEjB;;oDAZW,wBAAwB;sDAAxB,wBAAwB;AAoBpC;;","names":[]}
1
+ {"version":3,"file":"trismegisto-angular-session-recovery.d.ts","sources":["../../src/session-recovery/session-recovery.component.ts"],"mappings":";;;AAIA;;;;;;;;;;;;AAYG;AACH,cAYa,wBAAwB;;qBAEpB,aAAA,CAAA,WAAA;AAEf;;;AAGG;6BACoB,aAAA,CAAA,WAAA;AAEvB,6BAAuB,uBAAA,CAAA,cAAA;;oBAET,aAAA,CAAA,WAAA;uBAEG,aAAA,CAAA,wBAAA;;uBAGA,aAAA,CAAA,gBAAA;AAEjB;;AAGA,+BAAyB,aAAA,CAAA,MAAA;;oDAtBd,wBAAwB;sDAAxB,wBAAwB;AA8BpC;AAED;;;AAGG;AACH,iBAAgB,aAAa,8CAA8C,QAAQ;;","names":[]}