@trismegisto/angular 3.3.1 → 3.3.3

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,8 +1,8 @@
1
+ import { isPlatformBrowser } from '@angular/common';
1
2
  import * as i0 from '@angular/core';
2
- import { signal, Injectable, inject, ElementRef, PLATFORM_ID, input, output, computed, effect, untracked, DestroyRef, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { signal, Injectable, inject, ElementRef, PLATFORM_ID, input, output, computed, effect, untracked, DestroyRef, ChangeDetectionStrategy, Component, InjectionToken, viewChildren, afterRenderEffect } from '@angular/core';
4
+ import { alertIcon, alertRole, createToastStore, toastStackLayout, TOAST_STACK_VISIBLE } from '@trismegisto/primitives';
3
5
  import { ICON_CHECK_CIRCLE, ICON_EXCLAMATION_TRIANGLE, ICON_INFO_CIRCLE, ICON_TIMES, ICON_TIMES_CIRCLE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
4
- import { isPlatformBrowser } from '@angular/common';
5
- import { alertIcon, alertRole, createToastStore } from '@trismegisto/primitives';
6
6
  import { HERMES_MESSAGES } from '@trismegisto/angular/i18n';
7
7
  import { IconButtonComponent } from '@trismegisto/angular/icon-button';
8
8
 
@@ -128,6 +128,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
128
128
  }, template: "<span class=\"hm-toast__badge\" aria-hidden=\"true\"><hm-icon [shape]=\"icon()\" /></span>\n<div class=\"hm-toast__body\">\n <p class=\"hm-toast__title\">{{ titleVisible() }}</p>\n <p class=\"hm-toast__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"hm-toast__action\" (click)=\"action.emit()\">{{ actionLabel() }}</button>\n }\n</div>\n<hm-icon-button class=\"hm-toast__close\" icon=\"times\" emphasis=\"subtle\" size=\"small\" [label]=\"text.close\" (clicked)=\"close()\" />\n@if (duration() > 0) {\n <!-- Uma barra nova a cada dura\u00E7\u00E3o nova: a anima\u00E7\u00E3o recome\u00E7a junto com o rel\u00F3gio. -->\n @for (run of [duration()]; track run) {\n <span class=\"hm-toast__timer\" aria-hidden=\"true\" [style.animation-duration.ms]=\"run\"></span>\n }\n}\n" }]
129
129
  }], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: true }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], actionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionLabel", required: false }] }], action: [{ type: i0.Output, args: ["action"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
130
130
 
131
+ const HERMES_TOAST_CONFIG = new InjectionToken('HERMES_TOAST_CONFIG', {
132
+ providedIn: 'root',
133
+ factory: () => ({}),
134
+ });
135
+ /**
136
+ * Configura a pilha de avisos do app (canto, sempre aberta, quantos visíveis). É o jeito de mexer na pilha que
137
+ * outro pacote monta, como a do `spine-layout`: `providers: [provideHermesToast({ position: 'bottom-end' })]`.
138
+ */
139
+ function provideHermesToast(config) {
140
+ return { provide: HERMES_TOAST_CONFIG, useValue: config };
141
+ }
131
142
  /**
132
143
  * Fila única de avisos flutuantes do app. Quem desenha é o `hm-toast-stack` (montado uma vez, no
133
144
  * layout); qualquer parte do app só chama `success`/`error`/... aqui.
@@ -198,25 +209,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
198
209
  }], ctorParameters: () => [] });
199
210
 
200
211
  /**
201
- * Onde os avisos do `HermesToastService` aparecem: uma coluna fixa no canto de cima, do lado do fim
202
- * da linha. Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).
212
+ * Onde os avisos do `HermesToastService` aparecem: uma pilha fixa num canto da tela (padrão: em cima, do lado do
213
+ * fim da linha). Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).
203
214
  *
204
- * - Ponteiro ou foco na pilha pausam todos os avisos; só quando os dois saem a contagem continua, de
205
- * onde parou (WCAG 2.2.1).
206
- * - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde
207
- * ele estava antes de entrar na pilha.
208
- * - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel.
215
+ * - Recolhida (padrão), como cartas empilhadas: o mais novo na frente, encostado na borda; os anteriores espiam
216
+ * atrás dele, menores, só uma faixa de cada (no topo, por baixo; embaixo, por cima). Passam de `visibleToasts`
217
+ * (3): ficam escondidos, mas continuam na fila e reaparecem quando os da frente fecham.
218
+ * - Ponteiro ou foco na pilha a abrem: os visíveis inteiros, um depois do outro (no topo, para baixo; embaixo, para
219
+ * cima), e pausam todos os avisos; só quando os dois saem ela recolhe e a contagem continua de onde parou
220
+ * (WCAG 2.2.1). `expand` deixa sempre aberta (aí só ponteiro/foco pausam).
221
+ * - Os recolhidos atrás e os escondidos ficam `inert` e fora da árvore de acessibilidade: o Tab entra pelo da
222
+ * frente, o que já abre a pilha e libera os outros.
223
+ * - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde ele
224
+ * estava antes de entrar na pilha.
225
+ * - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel, ao entrar (sempre na frente).
209
226
  * - Montada mais de uma vez (o `spine-layout` já monta uma), só a primeira que continua na tela desenha:
210
227
  * o aviso nunca aparece em dobro.
228
+ * - `position`, `expand` e `visibleToasts` vazios caem no `provideHermesToast()` (é por ele que se configura a
229
+ * pilha que outro pacote monta, como a do `spine-layout`).
211
230
  */
212
231
  class ToastStackComponent {
213
232
  #icons = useHermesIcons(TOAST_ICONS);
214
233
  service = inject(HermesToastService);
215
234
  stack = inject(ElementRef);
235
+ #config = inject(HERMES_TOAST_CONFIG);
236
+ /** Canto da tela. Vazio: o do `provideHermesToast()`, ou `'top-end'`. */
237
+ position = input(undefined, ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
238
+ /** Sempre aberta (todos os visíveis inteiros), sem precisar de ponteiro/foco. Vazio: o do provider, ou `false`. */
239
+ expand = input(undefined, ...(ngDevMode ? [{ debugName: "expand" }] : /* istanbul ignore next */ []));
240
+ /** Quantos aparecem de cada vez; os outros esperam escondidos na fila. Vazio: o do provider, ou 3. */
241
+ visibleToasts = input(undefined, ...(ngDevMode ? [{ debugName: "visibleToasts" }] : /* istanbul ignore next */ []));
242
+ resolvedPosition = computed(() => this.position() ?? this.#config.position ?? 'top-end', ...(ngDevMode ? [{ debugName: "resolvedPosition" }] : /* istanbul ignore next */ []));
243
+ #interacting = signal(false, ...(ngDevMode ? [{ debugName: "#interacting" }] : /* istanbul ignore next */ []));
244
+ expanded = computed(() => (this.expand() ?? this.#config.expand ?? false) || this.#interacting(), ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
216
245
  /** Só a pilha ativa desenha; as outras montadas ao mesmo tempo ficam vazias. */
217
246
  visible = computed(() => (this.service.activeStack() === this ? this.service.toasts() : []), ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
247
+ // Altura natural (px) de cada cartão, medida no navegador; os recolhidos atrás não são medidos (estão com a
248
+ // altura do da frente), ficam com a última medida.
249
+ #heights = signal(new Map(), ...(ngDevMode ? [{ debugName: "#heights" }] : /* istanbul ignore next */ []));
250
+ layout = computed(() => toastStackLayout(this.visible().map((t) => t.id), this.#heights(), { expanded: this.expanded(), visible: this.visibleToasts() ?? this.#config.visibleToasts ?? TOAST_STACK_VISIBLE }), ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
251
+ entries = computed(() => {
252
+ const byId = new Map(this.visible().map((t) => [t.id, t]));
253
+ return this.layout().slots.map((slot) => ({ slot, toast: byId.get(slot.id) }));
254
+ }, ...(ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []));
255
+ cards = viewChildren(ToastComponent, { ...(ngDevMode ? { debugName: "cards" } : /* istanbul ignore next */ {}), read: ElementRef });
218
256
  constructor() {
219
257
  inject(DestroyRef).onDestroy(this.service.attachStack(this));
258
+ if (isPlatformBrowser(inject(PLATFORM_ID)) && typeof ResizeObserver !== 'undefined')
259
+ this.#measure();
220
260
  }
221
261
  hovered = false;
222
262
  focused = false;
@@ -267,9 +307,11 @@ class ToastStackComponent {
267
307
  this.service.dismiss(id);
268
308
  }
269
309
  #moveFocusFrom(id) {
270
- const list = this.service.toasts();
271
- const index = list.findIndex((t) => t.id === id);
272
- const neighbour = list[index + 1] ?? list[index - 1];
310
+ // Vizinho na ordem da tela (o de trás, que vai ocupar o lugar; senão o da frente), só entre os visíveis:
311
+ // o escondido ainda está `inert` neste instante.
312
+ const shown = this.layout().slots.filter((s) => !s.hidden);
313
+ const index = shown.findIndex((s) => s.id === id);
314
+ const neighbour = shown[index + 1] ?? shown[index - 1];
273
315
  const target = neighbour ? this.#element(neighbour.id)?.querySelector('button') : null;
274
316
  if (target) {
275
317
  target.focus();
@@ -300,24 +342,73 @@ class ToastStackComponent {
300
342
  if (want === this.paused)
301
343
  return;
302
344
  this.paused = want;
345
+ this.#interacting.set(want);
303
346
  this.#hold.held.set(want);
304
347
  if (want)
305
348
  this.service.pause();
306
349
  else
307
350
  this.service.resume();
308
351
  }
352
+ /** Observa a altura de cada cartão (entra/sai junto com a lista) para a pilha saber onde pôr cada um. */
353
+ #measure() {
354
+ const observed = new Set();
355
+ const observer = new ResizeObserver((records) => {
356
+ let next = null;
357
+ for (const { target } of records) {
358
+ const card = target;
359
+ const id = card.dataset['toastId'];
360
+ // Recolhido atrás está com a altura do da frente: não é a dele.
361
+ if (!id || !card.isConnected || card.dataset['toastState'] === 'behind')
362
+ continue;
363
+ const height = card.offsetHeight;
364
+ if (height === (next ?? this.#heights()).get(id))
365
+ continue;
366
+ next ??= new Map(this.#heights());
367
+ next.set(id, height);
368
+ }
369
+ if (next)
370
+ this.#heights.set(next);
371
+ });
372
+ afterRenderEffect(() => {
373
+ const cards = new Set(this.cards().map((ref) => ref.nativeElement));
374
+ for (const card of observed) {
375
+ if (cards.has(card))
376
+ continue;
377
+ observer.unobserve(card);
378
+ observed.delete(card);
379
+ }
380
+ for (const card of cards) {
381
+ if (observed.has(card))
382
+ continue;
383
+ observer.observe(card);
384
+ observed.add(card);
385
+ }
386
+ // Esquece a altura de quem saiu da fila.
387
+ const ids = new Set(this.visible().map((t) => t.id));
388
+ const heights = this.#heights();
389
+ if ([...heights.keys()].some((id) => !ids.has(id))) {
390
+ this.#heights.set(new Map([...heights].filter(([id]) => ids.has(id))));
391
+ }
392
+ });
393
+ inject(DestroyRef).onDestroy(() => observer.disconnect());
394
+ }
309
395
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ToastStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
310
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ToastStackComponent, isStandalone: true, selector: "hm-toast-stack", host: { listeners: { "pointerenter": "onPointer(true)", "pointerleave": "onPointer(false)", "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, classAttribute: "hm-toast-stack" }, ngImport: i0, template: `
311
- @for (toast of visible(); track toast.id) {
396
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ToastStackComponent, isStandalone: true, selector: "hm-toast-stack", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerenter": "onPointer(true)", "pointerleave": "onPointer(false)", "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, properties: { "class.hm-toast-stack--expanded": "expanded()", "attr.data-position": "resolvedPosition()", "style.--hm-toast-count": "layout().count", "style.--hm-toast-front-height": "layout().frontHeight ? layout().frontHeight + \"px\" : null", "style.--hm-toast-visible-height": "layout().visibleHeight + \"px\"" }, classAttribute: "hm-toast-stack" }, viewQueries: [{ propertyName: "cards", predicate: ToastComponent, descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
397
+ @for (entry of entries(); track entry.slot.id) {
312
398
  <hm-toast
313
- [attr.data-toast-id]="toast.id"
314
- [variant]="toast.variant"
315
- [title]="toast.title"
316
- [message]="toast.message"
317
- [duration]="fullDuration(toast)"
318
- [actionLabel]="toast.action?.label ?? ''"
319
- (action)="runAction(toast)"
320
- (closed)="dismiss(toast.id)"
399
+ [attr.data-toast-id]="entry.slot.id"
400
+ [attr.data-toast-state]="entry.slot.hidden ? 'hidden' : entry.slot.behind ? 'behind' : null"
401
+ [attr.inert]="entry.slot.hidden || entry.slot.behind ? '' : null"
402
+ [attr.aria-hidden]="entry.slot.hidden || entry.slot.behind ? 'true' : null"
403
+ [style.--hm-toast-index]="entry.slot.hidden ? layout().count : entry.slot.index"
404
+ [style.--hm-toast-before]="entry.slot.before + 'px'"
405
+ [variant]="entry.toast.variant"
406
+ [title]="entry.toast.title"
407
+ [message]="entry.toast.message"
408
+ [duration]="fullDuration(entry.toast)"
409
+ [actionLabel]="entry.toast.action?.label ?? ''"
410
+ (action)="runAction(entry.toast)"
411
+ (closed)="dismiss(entry.toast.id)"
321
412
  />
322
413
  }
323
414
  `, isInline: true, dependencies: [{ kind: "component", type: ToastComponent, selector: "hm-toast", inputs: ["variant", "title", "message", "duration", "actionLabel"], outputs: ["action", "closed"] }], viewProviders: [ToastHold], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -328,16 +419,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
328
419
  selector: 'hm-toast-stack',
329
420
  imports: [ToastComponent],
330
421
  template: `
331
- @for (toast of visible(); track toast.id) {
422
+ @for (entry of entries(); track entry.slot.id) {
332
423
  <hm-toast
333
- [attr.data-toast-id]="toast.id"
334
- [variant]="toast.variant"
335
- [title]="toast.title"
336
- [message]="toast.message"
337
- [duration]="fullDuration(toast)"
338
- [actionLabel]="toast.action?.label ?? ''"
339
- (action)="runAction(toast)"
340
- (closed)="dismiss(toast.id)"
424
+ [attr.data-toast-id]="entry.slot.id"
425
+ [attr.data-toast-state]="entry.slot.hidden ? 'hidden' : entry.slot.behind ? 'behind' : null"
426
+ [attr.inert]="entry.slot.hidden || entry.slot.behind ? '' : null"
427
+ [attr.aria-hidden]="entry.slot.hidden || entry.slot.behind ? 'true' : null"
428
+ [style.--hm-toast-index]="entry.slot.hidden ? layout().count : entry.slot.index"
429
+ [style.--hm-toast-before]="entry.slot.before + 'px'"
430
+ [variant]="entry.toast.variant"
431
+ [title]="entry.toast.title"
432
+ [message]="entry.toast.message"
433
+ [duration]="fullDuration(entry.toast)"
434
+ [actionLabel]="entry.toast.action?.label ?? ''"
435
+ (action)="runAction(entry.toast)"
436
+ (closed)="dismiss(entry.toast.id)"
341
437
  />
342
438
  }
343
439
  `,
@@ -345,13 +441,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
345
441
  viewProviders: [ToastHold],
346
442
  host: {
347
443
  class: 'hm-toast-stack',
444
+ '[class.hm-toast-stack--expanded]': 'expanded()',
445
+ '[attr.data-position]': 'resolvedPosition()',
446
+ '[style.--hm-toast-count]': 'layout().count',
447
+ '[style.--hm-toast-front-height]': 'layout().frontHeight ? layout().frontHeight + "px" : null',
448
+ '[style.--hm-toast-visible-height]': 'layout().visibleHeight + "px"',
348
449
  '(pointerenter)': 'onPointer(true)',
349
450
  '(pointerleave)': 'onPointer(false)',
350
451
  '(focusin)': 'onFocusIn($event)',
351
452
  '(focusout)': 'onFocusOut($event)',
352
453
  },
353
454
  }]
354
- }], ctorParameters: () => [] });
455
+ }], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], expand: [{ type: i0.Input, args: [{ isSignal: true, alias: "expand", required: false }] }], visibleToasts: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleToasts", required: false }] }], cards: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ToastComponent), { ...{ read: ElementRef }, isSignal: true }] }] } });
355
456
 
356
457
  // Ponto de import `@trismegisto/angular/toast` (secundário do ng-packagr): o que o public-api e as outras pastas usam
357
458
  // daqui. Gerado em 2026-10-03; ao criar arquivo público novo na pasta, acrescente a linha.
@@ -360,5 +461,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
360
461
  * Generated bundle index. Do not edit.
361
462
  */
362
463
 
363
- export { HermesToastService, ToastComponent, ToastStackComponent };
464
+ export { HERMES_TOAST_CONFIG, HermesToastService, ToastComponent, ToastStackComponent, provideHermesToast };
364
465
  //# sourceMappingURL=trismegisto-angular-toast.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-toast.mjs","sources":["../../src/toast/icons.generated.ts","../../src/toast/toast-hold.ts","../../src/toast/toast.component.ts","../../src/toast/toast.component.html","../../src/toast/toast.service.ts","../../src/toast/toast-stack.component.ts","../../src/toast/index.ts","../../src/toast/trismegisto-angular-toast.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(TOAST_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_CHECK_CIRCLE,\n ICON_EXCLAMATION_TRIANGLE,\n ICON_INFO_CIRCLE,\n ICON_TIMES,\n ICON_TIMES_CIRCLE,\n} from '@trismegisto/angular/icon';\n\nexport const TOAST_ICONS: readonly RegisteredIcon[] = [ICON_CHECK_CIRCLE, ICON_EXCLAMATION_TRIANGLE, ICON_INFO_CIRCLE, ICON_TIMES, ICON_TIMES_CIRCLE];\n","import { Injectable, signal } from '@angular/core';\n\n/**\n * @internal Canal entre a pilha e os cartões dela: enquanto a pilha está pausada (ponteiro ou foco nela),\n * todo cartão congela relógio e barra. Fica fora do `index.ts` de propósito — não é API.\n */\n@Injectable()\nexport class ToastHold {\n readonly held = signal(false);\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n output,\n PLATFORM_ID,\n signal,\n untracked,\n} from '@angular/core';\nimport { AlertVariant, alertIcon, alertRole } from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { TOAST_ICONS } from './icons.generated';\nimport { ToastHold } from './toast-hold';\n\n/**\n * Cartão de aviso flutuante. Normalmente quem o monta é o `hm-toast-stack`, a partir do\n * `HermesToastService`; usado sozinho, quem decide quando tirá-lo da tela é você (`closed`).\n *\n * ```html\n * <hm-toast variant=\"success\" message=\"Configuração salva\" [duration]=\"5000\" (closed)=\"hide()\" />\n * ```\n *\n * - O próprio cartão é a região anunciada: `role=\"alert\"` para erro, `status` para o resto.\n * - Título: `title`, ou o padrão da variante no idioma atual (\"Tudo certo\", \"Algo deu errado\"...).\n * - `duration` > 0 mostra a barra de tempo e emite `closed` quando ela acaba. Ponteiro em cima ou foco\n * dentro param o relógio, que continua de onde parou quando os dois saem (WCAG 2.2.1).\n * - `actionLabel` desenha um botão de texto que emite `action`; o cartão não fecha sozinho por isso.\n */\n@Component({\n selector: 'hm-toast',\n imports: [IconComponent, IconButtonComponent],\n templateUrl: './toast.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hm-toast',\n '[class.hm-toast--error]': 'variant() === \"error\"',\n '[class.hm-toast--warning]': 'variant() === \"warning\"',\n '[class.hm-toast--info]': 'variant() === \"info\"',\n '[class.hm-toast--success]': 'variant() === \"success\"',\n '[class.hm-toast--paused]': 'paused()',\n '[attr.role]': 'role()',\n '(pointerenter)': 'hovered.set(true)',\n '(pointerleave)': 'hovered.set(false)',\n '(focusin)': 'focused.set(true)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class ToastComponent {\n readonly #icons = useHermesIcons(TOAST_ICONS);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n protected readonly text = inject(HERMES_MESSAGES).toast;\n\n readonly variant = input<AlertVariant>('info');\n /** Título do cartão. Vazio usa o título padrão da variante. */\n readonly title = input('');\n readonly message = input.required<string>();\n /** Milissegundos até fechar sozinho. `0` = só fecha pelo botão. */\n readonly duration = input(0);\n /** Rótulo do botão de ação. Vazio = sem botão. */\n readonly actionLabel = input('');\n readonly action = output<void>();\n readonly closed = output<void>();\n\n protected readonly hovered = signal(false);\n protected readonly focused = signal(false);\n // Dentro do hm-toast-stack, a pausa da pilha também segura este cartão.\n readonly #stackHold = inject(ToastHold, { optional: true });\n protected readonly paused = computed(() => this.hovered() || this.focused() || !!this.#stackHold?.held());\n protected readonly icon = computed(() => alertIcon(this.variant()));\n protected readonly titleVisible = computed(() => this.title() || this.text.titles[this.variant()]);\n protected readonly role = computed(() => alertRole(this.variant()));\n\n // Relógio: quanto falta e desde quando está correndo. A barra é só o desenho desse tempo.\n #remaining = 0;\n #since = 0;\n #timeout?: ReturnType<typeof setTimeout>;\n\n constructor() {\n effect(() => {\n const duration = this.duration();\n untracked(() => {\n this.#stop();\n this.#remaining = duration > 0 ? duration : 0;\n if (!this.paused()) this.#start();\n });\n });\n effect(() => {\n const paused = this.paused();\n untracked(() => (paused ? this.#freeze() : this.#start()));\n });\n inject(DestroyRef).onDestroy(() => this.#stop());\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !this.host.nativeElement.contains(next)) this.focused.set(false);\n }\n\n protected close(): void {\n this.#stop();\n this.closed.emit();\n }\n\n #start(): void {\n if (!this.#browser || this.#remaining <= 0 || this.#timeout !== undefined) return;\n this.#since = Date.now();\n this.#timeout = setTimeout(() => {\n this.#timeout = undefined;\n this.#remaining = 0;\n this.closed.emit();\n }, this.#remaining);\n }\n\n #freeze(): void {\n if (this.#timeout === undefined) return;\n this.#remaining = Math.max(1, this.#remaining - (Date.now() - this.#since));\n this.#stop();\n }\n\n #stop(): void {\n if (this.#timeout !== undefined) clearTimeout(this.#timeout);\n this.#timeout = undefined;\n }\n}\n","<span class=\"hm-toast__badge\" aria-hidden=\"true\"><hm-icon [shape]=\"icon()\" /></span>\n<div class=\"hm-toast__body\">\n <p class=\"hm-toast__title\">{{ titleVisible() }}</p>\n <p class=\"hm-toast__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"hm-toast__action\" (click)=\"action.emit()\">{{ actionLabel() }}</button>\n }\n</div>\n<hm-icon-button class=\"hm-toast__close\" icon=\"times\" emphasis=\"subtle\" size=\"small\" [label]=\"text.close\" (clicked)=\"close()\" />\n@if (duration() > 0) {\n <!-- Uma barra nova a cada duração nova: a animação recomeça junto com o relógio. -->\n @for (run of [duration()]; track run) {\n <span class=\"hm-toast__timer\" aria-hidden=\"true\" [style.animation-duration.ms]=\"run\"></span>\n }\n}\n","import { computed, DestroyRef, inject, Injectable, signal } from '@angular/core';\nimport { AlertVariant, createToastStore, ToastPushOptions } from '@trismegisto/primitives';\n\n/**\n * Fila única de avisos flutuantes do app. Quem desenha é o `hm-toast-stack` (montado uma vez, no\n * layout); qualquer parte do app só chama `success`/`error`/... aqui.\n *\n * ```ts\n * toast.success('Configuração salva');\n * toast.error(response.message, { duration: 10_000 });\n * toast.info('Arquivo apagado', { action: { label: 'Desfazer', run: () => restore() } });\n * ```\n *\n * A mesma mensagem com a mesma variante não se repete enquanto estiver na tela. Sem `duration`, cada\n * variante tem o seu tempo; aviso com ação fica pelo menos `TOAST_ACTION_MIN_DURATION`.\n *\n * Mais de um `hm-toast-stack` montado (ex.: o do `spine-layout` e um que o app também pôs na raiz) não\n * duplica os avisos: só o primeiro que ainda está na tela desenha (`activeStack`); os outros ficam vazios.\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesToastService {\n private readonly store = createToastStore();\n private readonly state = signal(this.store.getState());\n readonly toasts = computed(() => this.state().toasts);\n readonly #stacks = signal<readonly object[]>([]);\n /** Dono da pilha que desenha os avisos agora: a primeira montada que continua na tela (ou `null`). */\n readonly activeStack = computed(() => this.#stacks()[0] ?? null);\n\n constructor() {\n const unsubscribe = this.store.subscribe((state) => this.state.set(state));\n inject(DestroyRef).onDestroy(unsubscribe);\n }\n\n push(variant: AlertVariant, message: string, options?: ToastPushOptions): void {\n this.store.push(variant, message, options);\n }\n\n error(message: string, options?: ToastPushOptions): void {\n this.push('error', message, options);\n }\n\n warning(message: string, options?: ToastPushOptions): void {\n this.push('warning', message, options);\n }\n\n info(message: string, options?: ToastPushOptions): void {\n this.push('info', message, options);\n }\n\n success(message: string, options?: ToastPushOptions): void {\n this.push('success', message, options);\n }\n\n dismiss(id: string): void {\n this.store.dismiss(id);\n }\n\n /** Congela a contagem de todos os avisos, guardando o tempo que faltava a cada um. */\n pause(): void {\n this.store.pause();\n }\n\n /** Retoma a contagem de onde parou. */\n resume(): void {\n this.store.resume();\n }\n\n /**\n * Registra uma pilha (`hm-toast-stack` chama sozinho; não precisa usar). Devolve a função que a tira; quando\n * a pilha ativa sai, a próxima registrada assume.\n */\n attachStack(owner: object): () => void {\n this.#stacks.update((list) => [...list, owner]);\n return () => this.#stacks.update((list) => list.filter((o) => o !== owner));\n }\n}\n","import { ChangeDetectionStrategy, Component, DestroyRef, ElementRef, computed, inject } from '@angular/core';\nimport { ToastItem } from '@trismegisto/primitives';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { TOAST_ICONS } from './icons.generated';\nimport { ToastHold } from './toast-hold';\nimport { ToastComponent } from './toast.component';\nimport { HermesToastService } from './toast.service';\n\n/**\n * Onde os avisos do `HermesToastService` aparecem: uma coluna fixa no canto de cima, do lado do fim\n * da linha. Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).\n *\n * - Ponteiro ou foco na pilha pausam todos os avisos; só quando os dois saem a contagem continua, de\n * onde parou (WCAG 2.2.1).\n * - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde\n * ele estava antes de entrar na pilha.\n * - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel.\n * - Montada mais de uma vez (o `spine-layout` já monta uma), só a primeira que continua na tela desenha:\n * o aviso nunca aparece em dobro.\n */\n@Component({\n selector: 'hm-toast-stack',\n imports: [ToastComponent],\n template: `\n @for (toast of visible(); track toast.id) {\n <hm-toast\n [attr.data-toast-id]=\"toast.id\"\n [variant]=\"toast.variant\"\n [title]=\"toast.title\"\n [message]=\"toast.message\"\n [duration]=\"fullDuration(toast)\"\n [actionLabel]=\"toast.action?.label ?? ''\"\n (action)=\"runAction(toast)\"\n (closed)=\"dismiss(toast.id)\"\n />\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [ToastHold],\n host: {\n class: 'hm-toast-stack',\n '(pointerenter)': 'onPointer(true)',\n '(pointerleave)': 'onPointer(false)',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class ToastStackComponent {\n readonly #icons = useHermesIcons(TOAST_ICONS);\n protected readonly service = inject(HermesToastService);\n private readonly stack = inject<ElementRef<HTMLElement>>(ElementRef);\n /** Só a pilha ativa desenha; as outras montadas ao mesmo tempo ficam vazias. */\n protected readonly visible = computed(() => (this.service.activeStack() === this ? this.service.toasts() : []));\n\n constructor() {\n inject(DestroyRef).onDestroy(this.service.attachStack(this));\n }\n\n private hovered = false;\n private focused = false;\n private paused = false;\n /** Quem tinha o foco antes de ele entrar na pilha. */\n private returnFocus: HTMLElement | null = null;\n readonly #hold = inject(ToastHold);\n // Duração inteira de cada aviso: a pausa do serviço zera `duration`, mas o cartão precisa continuar\n // com a barra e o relógio congelados no ponto em que estavam, não recomeçar.\n readonly #full = new Map<string, number>();\n\n protected fullDuration(toast: ToastItem): number {\n let full = this.#full.get(toast.id);\n if (full === undefined) {\n full = toast.duration || toast.durationBeforePause || 0;\n this.#full.set(toast.id, full);\n }\n return full;\n }\n\n protected onPointer(inside: boolean): void {\n this.hovered = inside;\n this.sync();\n }\n\n protected onFocusIn(event: FocusEvent): void {\n if (!this.focused) {\n const before = event.relatedTarget;\n this.returnFocus = before instanceof HTMLElement && !this.#contains(before) ? before : null;\n }\n this.focused = true;\n this.sync();\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.#contains(next)) return;\n this.focused = false;\n this.sync();\n }\n\n protected runAction(toast: ToastItem): void {\n toast.action?.run();\n this.dismiss(toast.id);\n }\n\n protected dismiss(id: string): void {\n const element = this.#element(id);\n const active = this.stack.nativeElement.ownerDocument.activeElement;\n if (element && active && element.contains(active)) this.#moveFocusFrom(id);\n this.#full.delete(id);\n this.service.dismiss(id);\n }\n\n #moveFocusFrom(id: string): void {\n const list = this.service.toasts();\n const index = list.findIndex((t) => t.id === id);\n const neighbour = list[index + 1] ?? list[index - 1];\n const target = neighbour ? this.#element(neighbour.id)?.querySelector<HTMLElement>('button') : null;\n if (target) {\n target.focus();\n return;\n }\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back?.isConnected) {\n back.focus();\n // O focusout de quem sai pode não trazer o destino (navegadores divergem): garante o estado.\n if (this.focused && !this.#contains(back.ownerDocument.activeElement)) {\n this.focused = false;\n this.sync();\n }\n return;\n }\n this.focused = false;\n this.sync();\n }\n\n #element(id: string): HTMLElement | null {\n return this.stack.nativeElement.querySelector<HTMLElement>(`[data-toast-id=\"${id}\"]`);\n }\n\n #contains(node: Node | null): boolean {\n return !!node && this.stack.nativeElement.contains(node);\n }\n\n private sync(): void {\n const want = this.hovered || this.focused;\n if (want === this.paused) return;\n this.paused = want;\n this.#hold.held.set(want);\n if (want) this.service.pause();\n else this.service.resume();\n }\n}\n","// Ponto de import `@trismegisto/angular/toast` (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 './toast-stack.component';\nexport * from './toast.component';\nexport * from './toast.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAYO,MAAM,WAAW,GAA8B,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,UAAU,EAAE,iBAAiB,CAAC;;ACVrJ;;;AAGG;MAEU,SAAS,CAAA;AACX,IAAA,IAAI,GAAG,MAAM,CAAC,KAAK,2EAAC;wGADlB,SAAS,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;4GAAT,SAAS,EAAA,CAAA;;4FAAT,SAAS,EAAA,UAAA,EAAA,CAAA;kBADrB;;;ACgBD;;;;;;;;;;;;;AAaG;MAoBU,cAAc,CAAA;AAChB,IAAA,MAAM,GAAG,cAAc,CAAC,WAAW,CAAC;AAC5B,IAAA,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC;IAC1D,QAAQ,GAAG,iBAAiB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;AAEvC,IAAA,IAAI,GAAG,MAAM,CAAC,eAAe,CAAC,CAAC,KAAK;AAE9C,IAAA,OAAO,GAAG,KAAK,CAAe,MAAM,8EAAC;;AAErC,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,4EAAC;AACjB,IAAA,OAAO,GAAG,KAAK,CAAC,QAAQ,6EAAU;;AAElC,IAAA,QAAQ,GAAG,KAAK,CAAC,CAAC,+EAAC;;AAEnB,IAAA,WAAW,GAAG,KAAK,CAAC,EAAE,kFAAC;IACvB,MAAM,GAAG,MAAM,EAAQ;IACvB,MAAM,GAAG,MAAM,EAAQ;AA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EAgBT,CAAC,SAAS,CAAC,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FASf,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBA3B/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;oBAC1B,OAAO,EAAE,CAAC,cAAc,CAAC;AACzB,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;AAaT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;oBAC/C,aAAa,EAAE,CAAC,SAAS,CAAC;AAC1B,oBAAA,IAAI,EAAE;AACJ,wBAAA,KAAK,EAAE,gBAAgB;AACvB,wBAAA,gBAAgB,EAAE,iBAAiB;AACnC,wBAAA,gBAAgB,EAAE,kBAAkB;AACpC,wBAAA,WAAW,EAAE,mBAAmB;AAChC,wBAAA,YAAY,EAAE,oBAAoB;AACnC,qBAAA;AACF,iBAAA;;;AC9CD;AACA;;ACDA;;AAEG;;"}
1
+ {"version":3,"file":"trismegisto-angular-toast.mjs","sources":["../../src/toast/icons.generated.ts","../../src/toast/toast-hold.ts","../../src/toast/toast.component.ts","../../src/toast/toast.component.html","../../src/toast/toast.service.ts","../../src/toast/toast-stack.component.ts","../../src/toast/index.ts","../../src/toast/trismegisto-angular-toast.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(TOAST_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_CHECK_CIRCLE,\n ICON_EXCLAMATION_TRIANGLE,\n ICON_INFO_CIRCLE,\n ICON_TIMES,\n ICON_TIMES_CIRCLE,\n} from '@trismegisto/angular/icon';\n\nexport const TOAST_ICONS: readonly RegisteredIcon[] = [ICON_CHECK_CIRCLE, ICON_EXCLAMATION_TRIANGLE, ICON_INFO_CIRCLE, ICON_TIMES, ICON_TIMES_CIRCLE];\n","import { Injectable, signal } from '@angular/core';\n\n/**\n * @internal Canal entre a pilha e os cartões dela: enquanto a pilha está pausada (ponteiro ou foco nela),\n * todo cartão congela relógio e barra. Fica fora do `index.ts` de propósito — não é API.\n */\n@Injectable()\nexport class ToastHold {\n readonly held = signal(false);\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n inject,\n input,\n output,\n PLATFORM_ID,\n signal,\n untracked,\n} from '@angular/core';\nimport { AlertVariant, alertIcon, alertRole } from '@trismegisto/primitives';\nimport { HERMES_MESSAGES } from '@trismegisto/angular/i18n';\nimport { IconButtonComponent } from '@trismegisto/angular/icon-button';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { TOAST_ICONS } from './icons.generated';\nimport { ToastHold } from './toast-hold';\n\n/**\n * Cartão de aviso flutuante. Normalmente quem o monta é o `hm-toast-stack`, a partir do\n * `HermesToastService`; usado sozinho, quem decide quando tirá-lo da tela é você (`closed`).\n *\n * ```html\n * <hm-toast variant=\"success\" message=\"Configuração salva\" [duration]=\"5000\" (closed)=\"hide()\" />\n * ```\n *\n * - O próprio cartão é a região anunciada: `role=\"alert\"` para erro, `status` para o resto.\n * - Título: `title`, ou o padrão da variante no idioma atual (\"Tudo certo\", \"Algo deu errado\"...).\n * - `duration` > 0 mostra a barra de tempo e emite `closed` quando ela acaba. Ponteiro em cima ou foco\n * dentro param o relógio, que continua de onde parou quando os dois saem (WCAG 2.2.1).\n * - `actionLabel` desenha um botão de texto que emite `action`; o cartão não fecha sozinho por isso.\n */\n@Component({\n selector: 'hm-toast',\n imports: [IconComponent, IconButtonComponent],\n templateUrl: './toast.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'hm-toast',\n '[class.hm-toast--error]': 'variant() === \"error\"',\n '[class.hm-toast--warning]': 'variant() === \"warning\"',\n '[class.hm-toast--info]': 'variant() === \"info\"',\n '[class.hm-toast--success]': 'variant() === \"success\"',\n '[class.hm-toast--paused]': 'paused()',\n '[attr.role]': 'role()',\n '(pointerenter)': 'hovered.set(true)',\n '(pointerleave)': 'hovered.set(false)',\n '(focusin)': 'focused.set(true)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class ToastComponent {\n readonly #icons = useHermesIcons(TOAST_ICONS);\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly #browser = isPlatformBrowser(inject(PLATFORM_ID));\n\n protected readonly text = inject(HERMES_MESSAGES).toast;\n\n readonly variant = input<AlertVariant>('info');\n /** Título do cartão. Vazio usa o título padrão da variante. */\n readonly title = input('');\n readonly message = input.required<string>();\n /** Milissegundos até fechar sozinho. `0` = só fecha pelo botão. */\n readonly duration = input(0);\n /** Rótulo do botão de ação. Vazio = sem botão. */\n readonly actionLabel = input('');\n readonly action = output<void>();\n readonly closed = output<void>();\n\n protected readonly hovered = signal(false);\n protected readonly focused = signal(false);\n // Dentro do hm-toast-stack, a pausa da pilha também segura este cartão.\n readonly #stackHold = inject(ToastHold, { optional: true });\n protected readonly paused = computed(() => this.hovered() || this.focused() || !!this.#stackHold?.held());\n protected readonly icon = computed(() => alertIcon(this.variant()));\n protected readonly titleVisible = computed(() => this.title() || this.text.titles[this.variant()]);\n protected readonly role = computed(() => alertRole(this.variant()));\n\n // Relógio: quanto falta e desde quando está correndo. A barra é só o desenho desse tempo.\n #remaining = 0;\n #since = 0;\n #timeout?: ReturnType<typeof setTimeout>;\n\n constructor() {\n effect(() => {\n const duration = this.duration();\n untracked(() => {\n this.#stop();\n this.#remaining = duration > 0 ? duration : 0;\n if (!this.paused()) this.#start();\n });\n });\n effect(() => {\n const paused = this.paused();\n untracked(() => (paused ? this.#freeze() : this.#start()));\n });\n inject(DestroyRef).onDestroy(() => this.#stop());\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (!next || !this.host.nativeElement.contains(next)) this.focused.set(false);\n }\n\n protected close(): void {\n this.#stop();\n this.closed.emit();\n }\n\n #start(): void {\n if (!this.#browser || this.#remaining <= 0 || this.#timeout !== undefined) return;\n this.#since = Date.now();\n this.#timeout = setTimeout(() => {\n this.#timeout = undefined;\n this.#remaining = 0;\n this.closed.emit();\n }, this.#remaining);\n }\n\n #freeze(): void {\n if (this.#timeout === undefined) return;\n this.#remaining = Math.max(1, this.#remaining - (Date.now() - this.#since));\n this.#stop();\n }\n\n #stop(): void {\n if (this.#timeout !== undefined) clearTimeout(this.#timeout);\n this.#timeout = undefined;\n }\n}\n","<span class=\"hm-toast__badge\" aria-hidden=\"true\"><hm-icon [shape]=\"icon()\" /></span>\n<div class=\"hm-toast__body\">\n <p class=\"hm-toast__title\">{{ titleVisible() }}</p>\n <p class=\"hm-toast__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"hm-toast__action\" (click)=\"action.emit()\">{{ actionLabel() }}</button>\n }\n</div>\n<hm-icon-button class=\"hm-toast__close\" icon=\"times\" emphasis=\"subtle\" size=\"small\" [label]=\"text.close\" (clicked)=\"close()\" />\n@if (duration() > 0) {\n <!-- Uma barra nova a cada duração nova: a animação recomeça junto com o relógio. -->\n @for (run of [duration()]; track run) {\n <span class=\"hm-toast__timer\" aria-hidden=\"true\" [style.animation-duration.ms]=\"run\"></span>\n }\n}\n","import { computed, DestroyRef, inject, Injectable, InjectionToken, Provider, signal } from '@angular/core';\nimport { AlertVariant, createToastStore, ToastPushOptions, ToastStackPosition } from '@trismegisto/primitives';\n\n/** Padrões do `hm-toast-stack` para o app inteiro (o input da própria pilha, quando vem, vence). */\nexport interface HermesToastConfig {\n /** Canto da tela. Padrão: `'top-end'` (no topo a pilha cresce para baixo; embaixo, para cima). */\n readonly position?: ToastStackPosition;\n /** Pilha sempre aberta, sem recolher atrás do mais novo. Padrão: `false`. */\n readonly expand?: boolean;\n /** Quantos avisos aparecem de cada vez; os outros esperam na fila. Padrão: 3 (`TOAST_STACK_VISIBLE`). */\n readonly visibleToasts?: number;\n}\n\nexport const HERMES_TOAST_CONFIG = new InjectionToken<HermesToastConfig>('HERMES_TOAST_CONFIG', {\n providedIn: 'root',\n factory: () => ({}),\n});\n\n/**\n * Configura a pilha de avisos do app (canto, sempre aberta, quantos visíveis). É o jeito de mexer na pilha que\n * outro pacote monta, como a do `spine-layout`: `providers: [provideHermesToast({ position: 'bottom-end' })]`.\n */\nexport function provideHermesToast(config: HermesToastConfig): Provider {\n return { provide: HERMES_TOAST_CONFIG, useValue: config };\n}\n\n/**\n * Fila única de avisos flutuantes do app. Quem desenha é o `hm-toast-stack` (montado uma vez, no\n * layout); qualquer parte do app só chama `success`/`error`/... aqui.\n *\n * ```ts\n * toast.success('Configuração salva');\n * toast.error(response.message, { duration: 10_000 });\n * toast.info('Arquivo apagado', { action: { label: 'Desfazer', run: () => restore() } });\n * ```\n *\n * A mesma mensagem com a mesma variante não se repete enquanto estiver na tela. Sem `duration`, cada\n * variante tem o seu tempo; aviso com ação fica pelo menos `TOAST_ACTION_MIN_DURATION`.\n *\n * Mais de um `hm-toast-stack` montado (ex.: o do `spine-layout` e um que o app também pôs na raiz) não\n * duplica os avisos: só o primeiro que ainda está na tela desenha (`activeStack`); os outros ficam vazios.\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesToastService {\n private readonly store = createToastStore();\n private readonly state = signal(this.store.getState());\n readonly toasts = computed(() => this.state().toasts);\n readonly #stacks = signal<readonly object[]>([]);\n /** Dono da pilha que desenha os avisos agora: a primeira montada que continua na tela (ou `null`). */\n readonly activeStack = computed(() => this.#stacks()[0] ?? null);\n\n constructor() {\n const unsubscribe = this.store.subscribe((state) => this.state.set(state));\n inject(DestroyRef).onDestroy(unsubscribe);\n }\n\n push(variant: AlertVariant, message: string, options?: ToastPushOptions): void {\n this.store.push(variant, message, options);\n }\n\n error(message: string, options?: ToastPushOptions): void {\n this.push('error', message, options);\n }\n\n warning(message: string, options?: ToastPushOptions): void {\n this.push('warning', message, options);\n }\n\n info(message: string, options?: ToastPushOptions): void {\n this.push('info', message, options);\n }\n\n success(message: string, options?: ToastPushOptions): void {\n this.push('success', message, options);\n }\n\n dismiss(id: string): void {\n this.store.dismiss(id);\n }\n\n /** Congela a contagem de todos os avisos, guardando o tempo que faltava a cada um. */\n pause(): void {\n this.store.pause();\n }\n\n /** Retoma a contagem de onde parou. */\n resume(): void {\n this.store.resume();\n }\n\n /**\n * Registra uma pilha (`hm-toast-stack` chama sozinho; não precisa usar). Devolve a função que a tira; quando\n * a pilha ativa sai, a próxima registrada assume.\n */\n attachStack(owner: object): () => void {\n this.#stacks.update((list) => [...list, owner]);\n return () => this.#stacks.update((list) => list.filter((o) => o !== owner));\n }\n}\n","import { isPlatformBrowser } from '@angular/common';\nimport {\n afterRenderEffect,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n computed,\n inject,\n input,\n PLATFORM_ID,\n signal,\n viewChildren,\n} from '@angular/core';\nimport { TOAST_STACK_VISIBLE, ToastItem, ToastStackPosition, toastStackLayout } from '@trismegisto/primitives';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { TOAST_ICONS } from './icons.generated';\nimport { ToastHold } from './toast-hold';\nimport { ToastComponent } from './toast.component';\nimport { HERMES_TOAST_CONFIG, HermesToastService } from './toast.service';\n\n/**\n * Onde os avisos do `HermesToastService` aparecem: uma pilha fixa num canto da tela (padrão: em cima, do lado do\n * fim da linha). Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).\n *\n * - Recolhida (padrão), como cartas empilhadas: o mais novo na frente, encostado na borda; os anteriores espiam\n * atrás dele, menores, só uma faixa de cada (no topo, por baixo; embaixo, por cima). Passam de `visibleToasts`\n * (3): ficam escondidos, mas continuam na fila e reaparecem quando os da frente fecham.\n * - Ponteiro ou foco na pilha a abrem: os visíveis inteiros, um depois do outro (no topo, para baixo; embaixo, para\n * cima), e pausam todos os avisos; só quando os dois saem ela recolhe e a contagem continua de onde parou\n * (WCAG 2.2.1). `expand` deixa sempre aberta (aí só ponteiro/foco pausam).\n * - Os recolhidos atrás e os escondidos ficam `inert` e fora da árvore de acessibilidade: o Tab entra pelo da\n * frente, o que já abre a pilha e libera os outros.\n * - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde ele\n * estava antes de entrar na pilha.\n * - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel, ao entrar (sempre na frente).\n * - Montada mais de uma vez (o `spine-layout` já monta uma), só a primeira que continua na tela desenha:\n * o aviso nunca aparece em dobro.\n * - `position`, `expand` e `visibleToasts` vazios caem no `provideHermesToast()` (é por ele que se configura a\n * pilha que outro pacote monta, como a do `spine-layout`).\n */\n@Component({\n selector: 'hm-toast-stack',\n imports: [ToastComponent],\n template: `\n @for (entry of entries(); track entry.slot.id) {\n <hm-toast\n [attr.data-toast-id]=\"entry.slot.id\"\n [attr.data-toast-state]=\"entry.slot.hidden ? 'hidden' : entry.slot.behind ? 'behind' : null\"\n [attr.inert]=\"entry.slot.hidden || entry.slot.behind ? '' : null\"\n [attr.aria-hidden]=\"entry.slot.hidden || entry.slot.behind ? 'true' : null\"\n [style.--hm-toast-index]=\"entry.slot.hidden ? layout().count : entry.slot.index\"\n [style.--hm-toast-before]=\"entry.slot.before + 'px'\"\n [variant]=\"entry.toast.variant\"\n [title]=\"entry.toast.title\"\n [message]=\"entry.toast.message\"\n [duration]=\"fullDuration(entry.toast)\"\n [actionLabel]=\"entry.toast.action?.label ?? ''\"\n (action)=\"runAction(entry.toast)\"\n (closed)=\"dismiss(entry.toast.id)\"\n />\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [ToastHold],\n host: {\n class: 'hm-toast-stack',\n '[class.hm-toast-stack--expanded]': 'expanded()',\n '[attr.data-position]': 'resolvedPosition()',\n '[style.--hm-toast-count]': 'layout().count',\n '[style.--hm-toast-front-height]': 'layout().frontHeight ? layout().frontHeight + \"px\" : null',\n '[style.--hm-toast-visible-height]': 'layout().visibleHeight + \"px\"',\n '(pointerenter)': 'onPointer(true)',\n '(pointerleave)': 'onPointer(false)',\n '(focusin)': 'onFocusIn($event)',\n '(focusout)': 'onFocusOut($event)',\n },\n})\nexport class ToastStackComponent {\n readonly #icons = useHermesIcons(TOAST_ICONS);\n protected readonly service = inject(HermesToastService);\n private readonly stack = inject<ElementRef<HTMLElement>>(ElementRef);\n readonly #config = inject(HERMES_TOAST_CONFIG);\n\n /** Canto da tela. Vazio: o do `provideHermesToast()`, ou `'top-end'`. */\n readonly position = input<ToastStackPosition | undefined>(undefined);\n /** Sempre aberta (todos os visíveis inteiros), sem precisar de ponteiro/foco. Vazio: o do provider, ou `false`. */\n readonly expand = input<boolean | undefined>(undefined);\n /** Quantos aparecem de cada vez; os outros esperam escondidos na fila. Vazio: o do provider, ou 3. */\n readonly visibleToasts = input<number | undefined>(undefined);\n\n protected readonly resolvedPosition = computed(() => this.position() ?? this.#config.position ?? 'top-end');\n readonly #interacting = signal(false);\n protected readonly expanded = computed(() => (this.expand() ?? this.#config.expand ?? false) || this.#interacting());\n\n /** Só a pilha ativa desenha; as outras montadas ao mesmo tempo ficam vazias. */\n protected readonly visible = computed(() => (this.service.activeStack() === this ? this.service.toasts() : []));\n // Altura natural (px) de cada cartão, medida no navegador; os recolhidos atrás não são medidos (estão com a\n // altura do da frente), ficam com a última medida.\n readonly #heights = signal<ReadonlyMap<string, number>>(new Map());\n protected readonly layout = computed(() =>\n toastStackLayout(\n this.visible().map((t) => t.id),\n this.#heights(),\n { expanded: this.expanded(), visible: this.visibleToasts() ?? this.#config.visibleToasts ?? TOAST_STACK_VISIBLE },\n ),\n );\n protected readonly entries = computed(() => {\n const byId = new Map(this.visible().map((t) => [t.id, t]));\n return this.layout().slots.map((slot) => ({ slot, toast: byId.get(slot.id)! }));\n });\n private readonly cards = viewChildren(ToastComponent, { read: ElementRef });\n\n constructor() {\n inject(DestroyRef).onDestroy(this.service.attachStack(this));\n if (isPlatformBrowser(inject(PLATFORM_ID)) && typeof ResizeObserver !== 'undefined') this.#measure();\n }\n\n private hovered = false;\n private focused = false;\n private paused = false;\n /** Quem tinha o foco antes de ele entrar na pilha. */\n private returnFocus: HTMLElement | null = null;\n readonly #hold = inject(ToastHold);\n // Duração inteira de cada aviso: a pausa do serviço zera `duration`, mas o cartão precisa continuar\n // com a barra e o relógio congelados no ponto em que estavam, não recomeçar.\n readonly #full = new Map<string, number>();\n\n protected fullDuration(toast: ToastItem): number {\n let full = this.#full.get(toast.id);\n if (full === undefined) {\n full = toast.duration || toast.durationBeforePause || 0;\n this.#full.set(toast.id, full);\n }\n return full;\n }\n\n protected onPointer(inside: boolean): void {\n this.hovered = inside;\n this.sync();\n }\n\n protected onFocusIn(event: FocusEvent): void {\n if (!this.focused) {\n const before = event.relatedTarget;\n this.returnFocus = before instanceof HTMLElement && !this.#contains(before) ? before : null;\n }\n this.focused = true;\n this.sync();\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.#contains(next)) return;\n this.focused = false;\n this.sync();\n }\n\n protected runAction(toast: ToastItem): void {\n toast.action?.run();\n this.dismiss(toast.id);\n }\n\n protected dismiss(id: string): void {\n const element = this.#element(id);\n const active = this.stack.nativeElement.ownerDocument.activeElement;\n if (element && active && element.contains(active)) this.#moveFocusFrom(id);\n this.#full.delete(id);\n this.service.dismiss(id);\n }\n\n #moveFocusFrom(id: string): void {\n // Vizinho na ordem da tela (o de trás, que vai ocupar o lugar; senão o da frente), só entre os visíveis:\n // o escondido ainda está `inert` neste instante.\n const shown = this.layout().slots.filter((s) => !s.hidden);\n const index = shown.findIndex((s) => s.id === id);\n const neighbour = shown[index + 1] ?? shown[index - 1];\n const target = neighbour ? this.#element(neighbour.id)?.querySelector<HTMLElement>('button') : null;\n if (target) {\n target.focus();\n return;\n }\n const back = this.returnFocus;\n this.returnFocus = null;\n if (back?.isConnected) {\n back.focus();\n // O focusout de quem sai pode não trazer o destino (navegadores divergem): garante o estado.\n if (this.focused && !this.#contains(back.ownerDocument.activeElement)) {\n this.focused = false;\n this.sync();\n }\n return;\n }\n this.focused = false;\n this.sync();\n }\n\n #element(id: string): HTMLElement | null {\n return this.stack.nativeElement.querySelector<HTMLElement>(`[data-toast-id=\"${id}\"]`);\n }\n\n #contains(node: Node | null): boolean {\n return !!node && this.stack.nativeElement.contains(node);\n }\n\n private sync(): void {\n const want = this.hovered || this.focused;\n if (want === this.paused) return;\n this.paused = want;\n this.#interacting.set(want);\n this.#hold.held.set(want);\n if (want) this.service.pause();\n else this.service.resume();\n }\n\n /** Observa a altura de cada cartão (entra/sai junto com a lista) para a pilha saber onde pôr cada um. */\n #measure(): void {\n const observed = new Set<HTMLElement>();\n const observer = new ResizeObserver((records) => {\n let next: Map<string, number> | null = null;\n for (const { target } of records) {\n const card = target as HTMLElement;\n const id = card.dataset['toastId'];\n // Recolhido atrás está com a altura do da frente: não é a dele.\n if (!id || !card.isConnected || card.dataset['toastState'] === 'behind') continue;\n const height = card.offsetHeight;\n if (height === (next ?? this.#heights()).get(id)) continue;\n next ??= new Map(this.#heights());\n next.set(id, height);\n }\n if (next) this.#heights.set(next);\n });\n afterRenderEffect(() => {\n const cards = new Set(this.cards().map((ref) => ref.nativeElement as HTMLElement));\n for (const card of observed) {\n if (cards.has(card)) continue;\n observer.unobserve(card);\n observed.delete(card);\n }\n for (const card of cards) {\n if (observed.has(card)) continue;\n observer.observe(card);\n observed.add(card);\n }\n // Esquece a altura de quem saiu da fila.\n const ids = new Set(this.visible().map((t) => t.id));\n const heights = this.#heights();\n if ([...heights.keys()].some((id) => !ids.has(id))) {\n this.#heights.set(new Map([...heights].filter(([id]) => ids.has(id))));\n }\n });\n inject(DestroyRef).onDestroy(() => observer.disconnect());\n }\n}\n","// Ponto de import `@trismegisto/angular/toast` (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 './toast-stack.component';\nexport * from './toast.component';\nex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eAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,cAAc,CAAA,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC/G5E;AACA;;ACDA;;AAEG;;"}
@@ -32,8 +32,9 @@ function safeSessionStorage() {
32
32
  /**
33
33
  * Cria (ou restaura de `sessionStorage`) um `WorkspaceStore` e liga a persistência automática —
34
34
  * o ponto de entrada pra quem quer "abas do workspace sobrevivem a F5" sem escrever storage à
35
- * mão. `resolveTab` re-resolve cada id salvo (nunca confia em rótulo/ícone salvos, que podem estar
36
- * num idioma antigo); devolver `null` pra um id descarta aquela aba da restauração (ver
35
+ * mão. `resolveTab` re-resolve cada id salvo (rótulo/ícone salvos podem estar num idioma antigo: das abas com `url`
36
+ * ele recebe o que foi guardado — endereço e rótulo — e decide se confia); devolver `null` pra um id descarta aquela
37
+ * aba da restauração (ver
37
38
  * `restoreWorkspaceStore`, `@trismegisto/primitives`). `fallback` é usado quando não há nada válido
38
39
  * salvo (primeira visita, storage vazio/corrompido, ou tudo restaurado foi descartado).
39
40
  */
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-workspace-persistence.mjs","sources":["../../src/workspace-persistence/workspace-persistence.ts","../../src/workspace-persistence/index.ts","../../src/workspace-persistence/trismegisto-angular-workspace-persistence.ts"],"sourcesContent":["import { InjectionToken, Provider } from '@angular/core';\nimport {\n DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n TabBarState,\n TabItem,\n WorkspacePersistenceConfig,\n WorkspaceStorage,\n WorkspaceStore,\n createWorkspaceStore,\n loadWorkspace,\n restoreWorkspaceStore,\n saveWorkspace,\n} from '@trismegisto/primitives';\n\n/**\n * Config de persistência do `hm-workspace` (`storagePrefix`, ver `@trismegisto/primitives`'s\n * `workspace.ts`) — mesmo padrão de `HERMES_THEME_CONFIG`: um app consumidor sobrescreve via\n * provider pra ter seu próprio prefixo, porque dois sites diferentes na mesma origem não podem\n * dividir a mesma chave de storage.\n */\nexport const HERMES_WORKSPACE_PERSISTENCE_CONFIG = new InjectionToken<WorkspacePersistenceConfig>(\n 'HERMES_WORKSPACE_PERSISTENCE_CONFIG',\n { providedIn: 'root', factory: () => DEFAULT_WORKSPACE_PERSISTENCE_CONFIG },\n);\n\nexport function provideHermesWorkspacePersistence(config: WorkspacePersistenceConfig): Provider {\n return { provide: HERMES_WORKSPACE_PERSISTENCE_CONFIG, useValue: config };\n}\n\n/** Milissegundos de silêncio antes de gravar — evita `JSON.stringify` + `setItem` síncrono a cada\n * pixel de um arrasto de divisor (`resizeSplit` dispara em todo `pointermove`). */\nconst SAVE_DEBOUNCE_MS = 400;\n\n/**\n * `sessionStorage`, não `localStorage`: cada ABA DO NAVEGADOR (não cada painel do workspace) fica\n * com seu próprio arranjo salvo. Duas abas do navegador no mesmo site dividindo o mesmo\n * `localStorage` colidiriam — a última a salvar \"vence\" e a outra recarrega com o arranjo errado.\n * `sessionStorage` já resolve isso de graça (é por aba de navegador, não por origem) e ainda cobre\n * o caso pedido (sobreviver a F5 e à troca de idioma, que recarrega a página).\n */\nfunction safeSessionStorage(): WorkspaceStorage | null {\n try {\n return sessionStorage;\n } catch {\n return null; // modo privado, cota, ou storage bloqueado pelo navegador\n }\n}\n\n/**\n * Cria (ou restaura de `sessionStorage`) um `WorkspaceStore` e liga a persistência automática —\n * o ponto de entrada pra quem quer \"abas do workspace sobrevivem a F5\" sem escrever storage à\n * mão. `resolveTab` re-resolve cada id salvo (nunca confia em rótulo/ícone salvos, que podem estar\n * num idioma antigo); devolver `null` pra um id descarta aquela aba da restauração (ver\n * `restoreWorkspaceStore`, `@trismegisto/primitives`). `fallback` é usado quando não há nada válido\n * salvo (primeira visita, storage vazio/corrompido, ou tudo restaurado foi descartado).\n */\nexport function createPersistedWorkspaceStore(\n fallback: TabBarState,\n resolveTab: (id: string) => TabItem | null,\n config: WorkspacePersistenceConfig = DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n): WorkspaceStore {\n const storage = safeSessionStorage();\n const persisted = loadWorkspace(config, storage);\n const store = (persisted && restoreWorkspaceStore(persisted, resolveTab)) ?? createWorkspaceStore(fallback);\n\n let timer: ReturnType<typeof setTimeout> | undefined;\n store.subscribe((state) => {\n if (timer !== undefined) clearTimeout(timer);\n timer = setTimeout(() => saveWorkspace(state, config, storage), SAVE_DEBOUNCE_MS);\n });\n\n return store;\n}\n","// Ponto de import `@trismegisto/angular/workspace-persistence` (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 './workspace-persistence';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAcA;;;;;AAKG;MACU,mCAAmC,GAAG,IAAI,cAAc,CACnE,qCAAqC,EACrC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oCAAoC,EAAE;AAGvE,SAAU,iCAAiC,CAAC,MAAkC,EAAA;IAClF,OAAO,EAAE,OAAO,EAAE,mCAAmC,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC3E;AAEA;AACmF;AACnF,MAAM,gBAAgB,GAAG,GAAG;AAE5B;;;;;;AAMG;AACH,SAAS,kBAAkB,GAAA;AACzB,IAAA,IAAI;AACF,QAAA,OAAO,cAAc;IACvB;AAAE,IAAA,MAAM;QACN,OAAO,IAAI,CAAC;IACd;AACF;AAEA;;;;;;;AAOG;AACG,SAAU,6BAA6B,CAC3C,QAAqB,EACrB,UAA0C,EAC1C,SAAqC,oCAAoC,EAAA;AAEzE,IAAA,MAAM,OAAO,GAAG,kBAAkB,EAAE;IACpC,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC;AAChD,IAAA,MAAM,KAAK,GAAG,CAAC,SAAS,IAAI,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,oBAAoB,CAAC,QAAQ,CAAC;AAE3G,IAAA,IAAI,KAAgD;AACpD,IAAA,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;QACxB,IAAI,KAAK,KAAK,SAAS;YAAE,YAAY,CAAC,KAAK,CAAC;AAC5C,QAAA,KAAK,GAAG,UAAU,CAAC,MAAM,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC;AACnF,IAAA,CAAC,CAAC;AAEF,IAAA,OAAO,KAAK;AACd;;ACxEA;AACA;;ACDA;;AAEG;;"}
1
+ {"version":3,"file":"trismegisto-angular-workspace-persistence.mjs","sources":["../../src/workspace-persistence/workspace-persistence.ts","../../src/workspace-persistence/index.ts","../../src/workspace-persistence/trismegisto-angular-workspace-persistence.ts"],"sourcesContent":["import { InjectionToken, Provider } from '@angular/core';\nimport {\n DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n TabBarState,\n WorkspacePersistenceConfig,\n WorkspaceStorage,\n WorkspaceStore,\n WorkspaceTabResolver,\n createWorkspaceStore,\n loadWorkspace,\n restoreWorkspaceStore,\n saveWorkspace,\n} from '@trismegisto/primitives';\n\n/**\n * Config de persistência do `hm-workspace` (`storagePrefix`, ver `@trismegisto/primitives`'s\n * `workspace.ts`) — mesmo padrão de `HERMES_THEME_CONFIG`: um app consumidor sobrescreve via\n * provider pra ter seu próprio prefixo, porque dois sites diferentes na mesma origem não podem\n * dividir a mesma chave de storage.\n */\nexport const HERMES_WORKSPACE_PERSISTENCE_CONFIG = new InjectionToken<WorkspacePersistenceConfig>(\n 'HERMES_WORKSPACE_PERSISTENCE_CONFIG',\n { providedIn: 'root', factory: () => DEFAULT_WORKSPACE_PERSISTENCE_CONFIG },\n);\n\nexport function provideHermesWorkspacePersistence(config: WorkspacePersistenceConfig): Provider {\n return { provide: HERMES_WORKSPACE_PERSISTENCE_CONFIG, useValue: config };\n}\n\n/** Milissegundos de silêncio antes de gravar — evita `JSON.stringify` + `setItem` síncrono a cada\n * pixel de um arrasto de divisor (`resizeSplit` dispara em todo `pointermove`). */\nconst SAVE_DEBOUNCE_MS = 400;\n\n/**\n * `sessionStorage`, não `localStorage`: cada ABA DO NAVEGADOR (não cada painel do workspace) fica\n * com seu próprio arranjo salvo. Duas abas do navegador no mesmo site dividindo o mesmo\n * `localStorage` colidiriam — a última a salvar \"vence\" e a outra recarrega com o arranjo errado.\n * `sessionStorage` já resolve isso de graça (é por aba de navegador, não por origem) e ainda cobre\n * o caso pedido (sobreviver a F5 e à troca de idioma, que recarrega a página).\n */\nfunction safeSessionStorage(): WorkspaceStorage | null {\n try {\n return sessionStorage;\n } catch {\n return null; // modo privado, cota, ou storage bloqueado pelo navegador\n }\n}\n\n/**\n * Cria (ou restaura de `sessionStorage`) um `WorkspaceStore` e liga a persistência automática —\n * o ponto de entrada pra quem quer \"abas do workspace sobrevivem a F5\" sem escrever storage à\n * mão. `resolveTab` re-resolve cada id salvo (rótulo/ícone salvos podem estar num idioma antigo: das abas com `url`\n * ele recebe o que foi guardado — endereço e rótulo — e decide se confia); devolver `null` pra um id descarta aquela\n * aba da restauração (ver\n * `restoreWorkspaceStore`, `@trismegisto/primitives`). `fallback` é usado quando não há nada válido\n * salvo (primeira visita, storage vazio/corrompido, ou tudo restaurado foi descartado).\n */\nexport function createPersistedWorkspaceStore(\n fallback: TabBarState,\n resolveTab: WorkspaceTabResolver,\n config: WorkspacePersistenceConfig = DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n): WorkspaceStore {\n const storage = safeSessionStorage();\n const persisted = loadWorkspace(config, storage);\n const store = (persisted && restoreWorkspaceStore(persisted, resolveTab)) ?? createWorkspaceStore(fallback);\n\n let timer: ReturnType<typeof setTimeout> | undefined;\n store.subscribe((state) => {\n if (timer !== undefined) clearTimeout(timer);\n timer = setTimeout(() => saveWorkspace(state, config, storage), SAVE_DEBOUNCE_MS);\n });\n\n return store;\n}\n","// Ponto de import `@trismegisto/angular/workspace-persistence` (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 './workspace-persistence';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAcA;;;;;AAKG;MACU,mCAAmC,GAAG,IAAI,cAAc,CACnE,qCAAqC,EACrC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,oCAAoC,EAAE;AAGvE,SAAU,iCAAiC,CAAC,MAAkC,EAAA;IAClF,OAAO,EAAE,OAAO,EAAE,mCAAmC,EAAE,QAAQ,EAAE,MAAM,EAAE;AAC3E;AAEA;AACmF;AACnF,MAAM,gBAAgB,GAAG,GAAG;AAE5B;;;;;;AAMG;AACH,SAAS,kBAAkB,GAAA;AACzB,IAAA,IAAI;AACF,QAAA,OAAO,cAAc;IACvB;AAAE,IAAA,MAAM;QACN,OAAO,IAAI,CAAC;IACd;AACF;AAEA;;;;;;;;AAQG;AACG,SAAU,6BAA6B,CAC3C,QAAqB,EACrB,UAAgC,EAChC,SAAqC,oCAAoC,EAAA;AAEzE,IAAA,MAAM,OAAO,GAAG,kBAAkB,EAAE;IACpC,MAAM,SAAS,GAAG,aAAa,CAAC,MAAM,EAAE,OAAO,CAAC;AAChD,IAAA,MAAM,KAAK,GAAG,CAAC,SAAS,IAAI,qBAAqB,CAAC,SAAS,EAAE,UAAU,CAAC,KAAK,oBAAoB,CAAC,QAAQ,CAAC;AAE3G,IAAA,IAAI,KAAgD;AACpD,IAAA,KAAK,CAAC,SAAS,CAAC,CAAC,KAAK,KAAI;QACxB,IAAI,KAAK,KAAK,SAAS;YAAE,YAAY,CAAC,KAAK,CAAC;AAC5C,QAAA,KAAK,GAAG,UAAU,CAAC,MAAM,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,gBAAgB,CAAC;AACnF,IAAA,CAAC,CAAC;AAEF,IAAA,OAAO,KAAK;AACd;;ACzEA;AACA;;ACDA;;AAEG;;"}
@@ -1,6 +1,6 @@
1
1
  export { HERMES_CATALOG_LOADERS, HERMES_I18N_CONFIG, HERMES_MESSAGES, HermesI18nService, liveCatalog, preloadHermesCatalog, provideHermesI18n } from '@trismegisto/angular/i18n';
2
2
  export { HermesDatePipe, HermesDateTimePipe, HermesTranslatePipe, formatHermesDate, hermesDateOptions, toHermesDate, translateMessage } from '@trismegisto/angular/pipes';
3
- export { CERTIFICATE_NAME_FIELDS, CERTIFICATE_WARNING_DAYS, DEFAULT_WORKSPACE_PERSISTENCE_CONFIG, EMPTY_DATE_RANGE, EMPTY_GRID_QUERY, EMPTY_SELECTION, GRID_FILTER_OPERATORS, HERMES_FAMILIES, HERMES_MESSAGES_PT_BR, HERMES_TEXT_SCALES, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HOVER_CLOSE_DELAY, HOVER_OPEN_DELAY, HermesLoadingState, INITIAL_PAGE, RICH_TEXT_DEFAULT_TOOLS, applyMenuItemChange, certificateValidity, createTabBarStore, createWorkspaceStore, cyclicPanelNeighbor, displayDatePattern, dropZone, findPanelContainingTab, findPanelTabs, formatDisplayDate, formatMessage, initialColumnState, isValidPersistedWorkspace, loadWorkspace, menuRadioValue, mergeCatalog, mergeMessages, normalizeDateRange, normalizeRichTextUrl, panelIdsInOrder, parseDisplayDate, pluralMessage, restoreWorkspaceStore, richTextLength, richTextPlainText, richTextSchema, sanitizeRichText, saveWorkspace, toPersistedWorkspace, workspaceKeyAction } from '@trismegisto/primitives';
3
+ export { CERTIFICATE_NAME_FIELDS, CERTIFICATE_WARNING_DAYS, DEFAULT_WORKSPACE_PERSISTENCE_CONFIG, EMPTY_DATE_RANGE, EMPTY_GRID_QUERY, EMPTY_SELECTION, GRID_FILTER_OPERATORS, HERMES_FAMILIES, HERMES_MESSAGES_PT_BR, HERMES_TEXT_SCALES, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HOVER_CLOSE_DELAY, HOVER_OPEN_DELAY, HermesLoadingState, INITIAL_PAGE, RICH_TEXT_DEFAULT_TOOLS, TOAST_STACK_VISIBLE, applyMenuItemChange, certificateValidity, createTabBarStore, createWorkspaceStore, cyclicPanelNeighbor, displayDatePattern, dropZone, findPanelContainingTab, findPanelTabs, formatDisplayDate, formatMessage, initialColumnState, isValidPersistedWorkspace, loadWorkspace, menuRadioValue, mergeCatalog, mergeMessages, normalizeDateRange, normalizeRichTextUrl, panelIdsInOrder, parseDisplayDate, pluralMessage, restoreWorkspaceStore, richTextLength, richTextPlainText, richTextSchema, sanitizeRichText, saveWorkspace, toPersistedWorkspace, workspaceKeyAction } from '@trismegisto/primitives';
4
4
  export { HERMES_THEME_CONFIG, HermesThemeDirective, HermesThemeService } from '@trismegisto/angular/theme';
5
5
  export { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';
6
6
  export { AlertComponent, AlertGroupComponent, HermesAlertGroup } from '@trismegisto/angular/alert';
@@ -65,7 +65,7 @@ export { HM_MESSAGE, MessageComponent } from '@trismegisto/angular/message';
65
65
  export { BubbleComponent } from '@trismegisto/angular/bubble';
66
66
  export { MessageDividerComponent } from '@trismegisto/angular/message-divider';
67
67
  export { MessageScrollerComponent } from '@trismegisto/angular/message-scroller';
68
- export { HermesToastService, ToastComponent, ToastStackComponent } from '@trismegisto/angular/toast';
68
+ export { HERMES_TOAST_CONFIG, HermesToastService, ToastComponent, ToastStackComponent, provideHermesToast } from '@trismegisto/angular/toast';
69
69
  export { TooltipDirective } from '@trismegisto/angular/tooltip';
70
70
  export { ToggletipComponent } from '@trismegisto/angular/toggletip';
71
71
  export { PopoverComponent, PopoverTriggerDirective } from '@trismegisto/angular/popover';
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular.mjs","sources":["../../src/public-api.ts","../../src/trismegisto-angular.ts"],"sourcesContent":["// i18n\nexport { preloadHermesCatalog, liveCatalog, provideHermesI18n, type HermesI18nConfig, HERMES_I18N_CONFIG, type HermesCatalogLoader, HERMES_CATALOG_LOADERS, HermesI18nService, HERMES_MESSAGES } from '@trismegisto/angular/i18n';\n// pipes de tradução e de data/hora (idioma do HermesI18nService)\nexport { translateMessage, HermesTranslatePipe } from '@trismegisto/angular/pipes';\nexport { HermesDatePipe, HermesDateTimePipe } from '@trismegisto/angular/pipes';\nexport { toHermesDate, hermesDateOptions, formatHermesDate, type HermesDatePreset, type HermesDateInput, type HermesDateKind } from '@trismegisto/angular/pipes';\nexport {\n HERMES_MESSAGES_PT_BR,\n type HermesMessages,\n type HermesMessagesOverride,\n type CatalogOverride,\n type MessageParams,\n type PluralMessage,\n formatMessage,\n mergeCatalog,\n mergeMessages,\n pluralMessage,\n} from '@trismegisto/primitives';\n\n// tema\nexport { HERMES_THEME_CONFIG, HermesThemeService } from '@trismegisto/angular/theme';\nexport { HermesThemeDirective } from '@trismegisto/angular/theme';\nexport { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';\nexport { type HermesZoomLevel, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HERMES_TEXT_SCALES } from '@trismegisto/primitives';\nexport { type HermesMotionPreference, type HermesRegionalFormat, type TimeHourCycle, type Weekday } from '@trismegisto/primitives';\nexport { HERMES_FAMILIES, type HermesFamily, type HermesThemeName, type HermesDensity, type HermesThemeMode } from '@trismegisto/primitives';\nexport { HermesLoadingState } from '@trismegisto/primitives';\n\n// tipos compartilhados (definidos em @trismegisto/primitives, comuns a Angular/React)\nexport type {\n AlertVariant,\n ButtonEmphasis,\n ButtonIntent,\n ButtonSize,\n IconButtonEmphasis,\n ModalSize,\n HermesIcon,\n IconBadge,\n MenuItem,\n MenuItemChange,\n MenuItemType,\n PopoverAlign,\n PopoverAnchor,\n PopoverSide,\n SidebarMode,\n TabBarState,\n TabReorder,\n} from '@trismegisto/primitives';\nexport { createTabBarStore } from '@trismegisto/primitives';\n\n// componentes\nexport { type AlertSize, AlertComponent } from '@trismegisto/angular/alert';\nexport { AlertGroupComponent } from '@trismegisto/angular/alert';\nexport { HermesAlertGroup } from '@trismegisto/angular/alert';\nexport type { AlertAppearance } from '@trismegisto/primitives';\nexport { type ButtonGroupRegistry, HM_BUTTON_GROUP, ButtonComponent } from '@trismegisto/angular/button';\nexport { ButtonGroupComponent } from '@trismegisto/angular/button-group';\nexport { type DropdownPosition, DropdownComponent, DropdownTriggerDirective, DropdownIfOpenDirective, DropdownItemDirective, DropdownMenuComponent, HERMES_DROPDOWN } from '@trismegisto/angular/dropdown';\nexport { CheckboxComponent } from '@trismegisto/angular/checkbox';\nexport {\n CheckboxGroupComponent,\n type CheckboxGroupOption,\n type CheckboxGroupLayout,\n} from '@trismegisto/angular/checkbox-group';\nexport { CodeInputComponent } from '@trismegisto/angular/code-input';\nexport { type InputType, type InputValue, type InputMaskValue, type InputMode, InputComponent } from '@trismegisto/angular/input';\nexport { 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, StatePageComponent } from '@trismegisto/angular/state-page';\nexport { SelectComponent } from '@trismegisto/angular/select';\nexport { ModalComponent } from '@trismegisto/angular/modal';\nexport { HERMES_DIALOG_DATA, type HermesDialogConfig, type HermesConfirmOptions, HermesDialogRef } from '@trismegisto/angular/dialog';\nexport { HermesDialogService } from '@trismegisto/angular/dialog';\nexport { type DrawerPosition, DrawerComponent } from '@trismegisto/angular/drawer';\nexport { FormRequiredHintComponent } from '@trismegisto/angular/form-required-hint';\nexport { FloatingWindowComponent } from '@trismegisto/angular/floating-window';\nexport { type HermesOverlayStackEntry, HermesOverlayStack } from '@trismegisto/angular/floating-window';\nexport type { FloatingRect, FloatingWindowState } from '@trismegisto/primitives';\nexport { type HermesCommand, CommandPaletteComponent } from '@trismegisto/angular/command-palette';\nexport { type HermesSearchResult, type HermesSearchGroup, type HermesSearchFn, type HermesSearchSelection, GlobalSearchComponent } from '@trismegisto/angular/global-search';\nexport { type PaginatorVariant, PaginatorComponent } from '@trismegisto/angular/paginator';\nexport { type ComboboxOption, type ComboboxSize, ComboboxComponent } from '@trismegisto/angular/combobox';\nexport { ComboboxMultiComponent } from '@trismegisto/angular/combobox-multi';\nexport { type ChipVariant, type ChipSize, ChipComponent } from '@trismegisto/angular/chip';\nexport { ChipGroupComponent } from '@trismegisto/angular/chip';\nexport { HermesChipGroup } from '@trismegisto/angular/chip';\nexport { type FilterBarField, type FilterBarFieldType, type FilterBarFieldValue, type FilterBarStorage, type FilterBarValue, type SavedFilter, EMPTY_FILTER_BAR_VALUE, applyFilterBar, filterBarGridUnsupported, filterBarToGridQuery, localStorageFilterBarStorage, serializeFilterBarValue, parseFilterBarValue, FilterBarComponent } from '@trismegisto/angular/filter-bar';\nexport { HermesTabGroup, type HermesTabsMode, type HermesTabsOrientation, type HermesTabsOverflow } from '@trismegisto/angular/tabs';\nexport { TabsComponent } from '@trismegisto/angular/tabs';\nexport { TabComponent } from '@trismegisto/angular/tabs';\nexport { TabContentDirective } from '@trismegisto/angular/tabs';\nexport {\n type TextareaSubmitKey,\n TextareaComponent,\n type TextareaAddonSlot,\n TextareaAddonDirective,\n} from '@trismegisto/angular/textarea';\nexport { RichTextComponent, RichTextValidators } from '@trismegisto/angular/rich-text';\nexport {\n type RichTextTool,\n type RichTextFormatTool,\n type RichTextHeadingLevel,\n type RichTextPasteMode,\n type RichTextSchema,\n type RichTextSchemaOptions,\n type RichTextParser,\n RICH_TEXT_DEFAULT_TOOLS,\n richTextSchema,\n sanitizeRichText,\n richTextPlainText,\n richTextLength,\n normalizeRichTextUrl,\n} from '@trismegisto/primitives';\nexport { BulkInputComponent } from '@trismegisto/angular/bulk-input';\nexport type { BulkCase, BulkInvalidItem, BulkInvalidReason, BulkParseOptions, BulkParseResult, BulkSeparator, BulkValidator } from '@trismegisto/primitives';\nexport { type FileUploadSize, type FileUploader, FileUploadComponent } from '@trismegisto/angular/file-upload';\nexport {\n type ImageCropError,\n type ImageCropErrorCode,\n type ImageCropExportOptions,\n type ImageCropInfo,\n type ImageCropOutputType,\n type ImageCropRegion,\n type ImageCropResult,\n type ImageCropRotation,\n type ImageCropShape,\n type ImageCropSource,\n type ImageCropType,\n ImageCropComponent,\n} from '@trismegisto/angular/image-crop';\nexport type { UploadFile, UploadFilePatch, FileUploadStatus, FileRejection, FileRejectionReason } from '@trismegisto/primitives';\nexport {\n type AttachmentStatus,\n AttachmentComponent,\n type AttachmentGroupLayout,\n AttachmentGroupComponent,\n fileIconName,\n fileExtension,\n isImageFile,\n} from '@trismegisto/angular/attachment';\nexport { type HermesDirection, elementDirection, isRtl } from '@trismegisto/angular/direction';\nexport { type RadioOption, type RadioAppearance, type RadioLayout, RadioComponent } from '@trismegisto/angular/radio';\nexport { type SwitchLabelPosition, SwitchComponent } from '@trismegisto/angular/switch';\nexport { type SegmentedOption, type SegmentedControlSize, type SegmentedControlEmphasis, SegmentedControlComponent } from '@trismegisto/angular/segmented-control';\nexport { SettingsDialogComponent } from '@trismegisto/angular/settings';\nexport { SettingsSectionComponent } from '@trismegisto/angular/settings';\nexport { SettingsRowComponent } from '@trismegisto/angular/settings';\nexport { normalizeSettingsText, settingsTextMatches } from '@trismegisto/angular/settings';\nexport type { HermesSettingsCloseHandler } from '@trismegisto/angular/settings';\nexport { HermesAccordionGroup } from '@trismegisto/angular/accordion';\nexport { AccordionComponent } from '@trismegisto/angular/accordion';\nexport { AccordionPanelComponent } from '@trismegisto/angular/accordion';\nexport { AccordionContentDirective } from '@trismegisto/angular/accordion';\nexport { type TreeDropPosition, type TreeLocation, type TreeNode, type TreeSelectionChange, type TreeSelectionMode, type TreeCanDrop, type TreeMoveEvent, type TreeNodeActionEvent, type TreeNodeActions, type TreeChildrenLoader, type TreeChildrenPage, type TreeChildrenResult, type TreeLoadContext, type TreeNodeTemplateContext, TreeNodeTemplateDirective, TreeComponent } from '@trismegisto/angular/tree';\nexport type { PageWindowItem, PaginationState } from '@trismegisto/primitives';\nexport { INITIAL_PAGE } from '@trismegisto/primitives';\nexport type { DateRange, DateValueFormat, IsoDate } from '@trismegisto/primitives';\nexport type { DisplayDatePattern } from '@trismegisto/primitives';\nexport { EMPTY_DATE_RANGE, normalizeDateRange, displayDatePattern, formatDisplayDate, parseDisplayDate } from '@trismegisto/primitives';\nexport { type DataGridColumn, type DataGridExportFormat, type DataGridExportOptions, type DataGridPersistStorage, type DataGridSelectionMode, DataGridComponent, type DataGridRowAction, type DataGridActionConfirm, type DataGridActionTriggered, type DataGridContext, type DataGridFooterContext, type DataGridRowState } from '@trismegisto/angular/data-grid';\nexport { DataGridCellDirective } from '@trismegisto/angular/data-grid';\nexport { DataGridHeaderDirective } from '@trismegisto/angular/data-grid';\nexport { DataGridActionBarComponent } from '@trismegisto/angular/data-grid';\nexport { DataGridColumnFilterComponent } from '@trismegisto/angular/data-grid';\nexport type {\n GridColumn,\n GridColumnState,\n GridColumnType,\n GridColumnFilterValue,\n GridFilterOption,\n GridSelection,\n GridSort,\n SortDirection,\n} from '@trismegisto/primitives';\nexport { EMPTY_SELECTION, initialColumnState } from '@trismegisto/primitives';\n// data grid avançado: tipos do filtro composto, agregação e exportação (o app importa tudo daqui)\nexport type {\n GridFilterOperator,\n GridFilterConnector,\n GridFilterCondition,\n GridFilterQuery,\n GridAggregateFn,\n GridAggregates,\n GridAggregateFormatter,\n GridCsvSeparator,\n} from '@trismegisto/primitives';\nexport { EMPTY_GRID_QUERY, GRID_FILTER_OPERATORS } from '@trismegisto/primitives';\nexport { SessionRecoveryComponent, safeReturnUrl } from '@trismegisto/angular/session-recovery';\nexport { ThemePickerComponent } from '@trismegisto/angular/theme-picker';\n\nexport { HeaderComponent } from '@trismegisto/angular/header';\nexport { MenuComponent } from '@trismegisto/angular/menu';\nexport { ContextMenuDirective } from '@trismegisto/angular/menu';\nexport { type TabItem, TabBarComponent, type TabDragData, type TabReceivedEvent } from '@trismegisto/angular/tab-bar';\nexport { type MenuButtonSize, MenuButtonComponent } from '@trismegisto/angular/menu-button';\nexport { applyMenuItemChange, menuRadioValue, HOVER_OPEN_DELAY, HOVER_CLOSE_DELAY } from '@trismegisto/primitives';\nexport { type MenubarMenu, MenubarComponent } from '@trismegisto/angular/menubar';\nexport {\n HermesNavigationMenu,\n NAVIGATION_MENU_OPEN_DELAY,\n NavigationMenuComponent,\n NavigationMenuItemComponent,\n NavigationMenuLinkComponent,\n} from '@trismegisto/angular/navigation-menu';\nexport { HERMES_SIDEBAR_CONFIG, HermesSidebarService } from '@trismegisto/angular/sidebar';\nexport { HermesSidebarGroup } from '@trismegisto/angular/sidebar';\nexport { SidebarGroupComponent } from '@trismegisto/angular/sidebar';\nexport { SidebarLinkComponent } from '@trismegisto/angular/sidebar';\nexport { type SidebarNode, SidebarNodeComponent } from '@trismegisto/angular/sidebar';\nexport { SidebarComponent } from '@trismegisto/angular/sidebar';\n\n// conversa\nexport { type MessageAlign, type MessageStatus, type MessageContext, HM_MESSAGE, MessageComponent } from '@trismegisto/angular/message';\nexport { type BubbleVariant, type BubbleReaction, BubbleComponent } from '@trismegisto/angular/bubble';\nexport { type MessageDividerVariant, MessageDividerComponent } from '@trismegisto/angular/message-divider';\nexport { type MessageScrollerLive, MessageScrollerComponent } from '@trismegisto/angular/message-scroller';\n\nexport { HermesToastService } from '@trismegisto/angular/toast';\nexport { ToastComponent } from '@trismegisto/angular/toast';\nexport { ToastStackComponent } from '@trismegisto/angular/toast';\n\n// dicas, trilha e progresso\nexport { TooltipDirective } from '@trismegisto/angular/tooltip';\nexport { type ToggletipSide, ToggletipComponent } from '@trismegisto/angular/toggletip';\nexport { PopoverComponent } from '@trismegisto/angular/popover';\nexport { PopoverTriggerDirective } from '@trismegisto/angular/popover';\nexport { type BreadcrumbItem, BreadcrumbComponent } from '@trismegisto/angular/breadcrumb';\nexport { type ProgressIntent, type ProgressSize, ProgressComponent } from '@trismegisto/angular/progress';\n// linha do tempo, pilha de avatares e listas de transferência/ordenação\nexport { TimelineItemComponent } from '@trismegisto/angular/timeline';\nexport { type TimelineOrientation, TimelineComponent } from '@trismegisto/angular/timeline';\nexport type { TimelineDateValue, TimelineOutcome, TimelineStatus } from '@trismegisto/primitives';\nexport { type AvatarGroupPerson, type AvatarGroupSize, AvatarGroupComponent } from '@trismegisto/angular/avatar-group';\nexport { type DualListSize, DualListComponent } from '@trismegisto/angular/dual-list';\nexport type { DualListItem } from '@trismegisto/primitives';\nexport { type ReorderListItem, type ReorderListSize, type ReorderListMove, type ReorderListRemoval, type ReorderListItemContext, ReorderListComponent } from '@trismegisto/angular/reorder-list';\nexport { type ListEditorAdded, type ListEditorRemoved, type ListEditorMoved, type ListEditorEdited, ListEditorComponent } from '@trismegisto/angular/list-editor';\nexport type { ListEditorPair, ListEditorValue, ListEditorValidator, ListEditorRejection, ListEditorRejectionReason } from '@trismegisto/primitives';\nexport { type DragListOrientation, HERMES_DRAG_DROP, accessibleName, byDocumentOrder, type HermesDragVia, type HermesDropAccepts, type HermesDropEvent, type HermesDropOverEvent, type HermesSortEvent, type HermesDragTemplateContext, type HermesDragItemRef, type HermesDropTargetRef, type HermesSortableContainer, HM_SORTABLE_CONTAINER, HermesDragDropService, DragPreviewDirective, type HermesDragEndEvent, DraggableDirective, DragHandleDirective, hermesDropAccepts, DropZoneDirective, DragPlaceholderDirective, SortableDirective } from '@trismegisto/angular/drag-drop';\nexport { type KanbanColumn, type KanbanMove, type KanbanWipState, HERMES_KANBAN, type KanbanCardContext, type KanbanColumnContext, type KanbanMoveEvent, type KanbanCanMove, type HermesKanbanHost, HM_KANBAN, KanbanComponent, KanbanColumnComponent, KanbanCardDirective, KanbanColumnActionsDirective, KanbanColumnSummaryDirective, KanbanColumnFooterDirective, KanbanColumnEmptyDirective } from '@trismegisto/angular/kanban';\n// atalhos de teclado: registro, diretiva e painel\nexport { provideHermesShortcuts, type HermesShortcutConfig, HERMES_SHORTCUT_CONFIG, type HermesShortcut, type HermesShortcutItem, HermesShortcutService } from '@trismegisto/angular/shortcut-list';\nexport { type ShortcutAction, ShortcutDirective } from '@trismegisto/angular/shortcut-list';\nexport { ShortcutListComponent } from '@trismegisto/angular/shortcut-list';\nexport type { ShortcutDisplay, ShortcutDisplayStep, ShortcutKeyLabel, ShortcutKeyName, ShortcutPlatform } from '@trismegisto/primitives';\n// etapas e assistente\nexport { HermesStepGroup } from '@trismegisto/angular/stepper';\nexport { type HermesStepGuard, type HermesStepSummaryEntry, type HermesStepSummary, StepComponent } from '@trismegisto/angular/stepper';\nexport { type StepperOrientation, StepperComponent } from '@trismegisto/angular/stepper';\nexport { type WizardMode, WizardComponent } from '@trismegisto/angular/wizard';\n// cópia, busca, barra de ferramentas e cabeçalho de página\nexport { type CopyButtonVariant, CopyButtonComponent } from '@trismegisto/angular/copy-button';\nexport { CodeViewerComponent, CodeLanguagesService, provideCodeLanguages } from '@trismegisto/angular/code-viewer';\nexport { type CodeDiffLayoutInput, type CodeDiffCopyTarget, CodeDiffComponent } from '@trismegisto/angular/code-diff';\nexport type { CodeLanguage, CodeLanguageLoader, CodeTokenKind, CodeToken, CodeLineTokens, CodeViewerHeader, CodeViewerVirtualize, CodeDiffLayout, TextDiff, TextDiffSummary, TextDiffWhitespace, TextDiffIntraline } from '@trismegisto/primitives';\nexport { AnimatedNumberComponent, FlipDirective, HermesMotionService, RevealDirective } from '@trismegisto/angular/motion';\nexport { type ThemeBuilderFormat, ThemeBuilderComponent } from '@trismegisto/angular/theme-builder';\nexport { type SearchFieldSize, SearchFieldComponent } from '@trismegisto/angular/search-field';\nexport { ToolbarComponent } from '@trismegisto/angular/toolbar';\nexport { type PageHeaderLevel, PageHeaderComponent } from '@trismegisto/angular/page-header';\nexport { type DividerOrientation, type DividerEmphasis, type DividerThickness, type DividerSpacing, type DividerLabelAlign, DividerComponent } from '@trismegisto/angular/divider';\nexport { type DescriptionListItem, type DescriptionListValueChange, type DescriptionListLabelPosition, type DescriptionListVariant, DescriptionListComponent } from '@trismegisto/angular/description-list';\nexport { DescriptionItemComponent } from '@trismegisto/angular/description-list';\nexport { type CertificateViewerHeadingLevel, CertificateViewerComponent } from '@trismegisto/angular/certificate-viewer';\nexport {\n type CertificateAltName,\n type CertificateAltNameType,\n type CertificateDate,\n type CertificateDistinguishedName,\n type CertificateInfo,\n type CertificateKeyUsage,\n type CertificateValidity,\n type CertificateValidityOptions,\n type CertificateValidityState,\n CERTIFICATE_NAME_FIELDS,\n CERTIFICATE_WARNING_DAYS,\n certificateValidity,\n} from '@trismegisto/primitives';\nexport { type PropertyDefinition, type PropertyGroup, type PropertyOption, type PropertyType, type PropertyValues, type PropertyChangeEvent, PropertyViewComponent } from '@trismegisto/angular/property-view';\nexport { type CardSelectionMode, type CardContainerItemContext, type CardContainerPersistStorage, type CardVisibilityChange, CardContainerItemDirective, CardContainerEmptyDirective, CardContainerComponent } from '@trismegisto/angular/card-container';\nexport { type LegendIntent, type LegendOrientation, type LegendMarker, type LegendItem, LegendComponent } from '@trismegisto/angular/legend';\n\nexport { SplitterComponent } from '@trismegisto/angular/splitter';\nexport { SplitterPanelComponent } from '@trismegisto/angular/splitter';\nexport type { SplitterOrientation } from '@trismegisto/primitives';\nexport { type WorkspaceTabContext, WorkspaceComponent } from '@trismegisto/angular/workspace';\nexport { WorkspaceNodeComponent } from '@trismegisto/angular/workspace';\nexport { provideHermesWorkspacePersistence, createPersistedWorkspaceStore, HERMES_WORKSPACE_PERSISTENCE_CONFIG } from '@trismegisto/angular/workspace-persistence';\n\n// tipos/stores compartilhados adicionais\nexport type { AlertVariant as ToastVariant, ToastItem, ToastPushOptions, ToastState, ToastAction } from '@trismegisto/primitives';\nexport type {\n DropZone,\n PanelLeaf,\n PanelNode,\n PanelSplit,\n PersistedPanelNode,\n PersistedWorkspace,\n SplitDirection,\n SplitPath,\n SplitStep,\n WorkspaceKeyAction,\n WorkspacePersistenceConfig,\n WorkspaceState,\n WorkspaceStorage,\n WorkspaceStore,\n} from '@trismegisto/primitives';\nexport {\n DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n createWorkspaceStore,\n cyclicPanelNeighbor,\n dropZone,\n findPanelContainingTab,\n findPanelTabs,\n isValidPersistedWorkspace,\n loadWorkspace,\n panelIdsInOrder,\n restoreWorkspaceStore,\n saveWorkspace,\n toPersistedWorkspace,\n workspaceKeyAction,\n} from '@trismegisto/primitives';\n\n// widgets\nexport { type AccountAvatarSize, AccountAvatarComponent } from '@trismegisto/angular/account-avatar';\nexport { GeometricTextureComponent } from '@trismegisto/angular/geometric-texture';\nexport { LoadingSquareComponent } from '@trismegisto/angular/loading-square';\nexport { type SpinnerSize, SpinnerComponent } from '@trismegisto/angular/spinner';\nexport { BadgeComponent } from '@trismegisto/angular/badge';\nexport { type TagColor, TagComponent } from '@trismegisto/angular/tag';\nexport { SkeletonComponent } from '@trismegisto/angular/skeleton';\nexport { type CardMediaPosition, CardComponent } from '@trismegisto/angular/card';\nexport { type StatCardSize, type StatCardDetail, type StatCardTrendDirection, type StatCardTrend, StatCardComponent } from '@trismegisto/angular/stat-card';\nexport { type StatGroupMetric, StatGroupComponent } from '@trismegisto/angular/stat-group';\nexport { CarouselComponent } from '@trismegisto/angular/carousel';\nexport type { CarouselSlide } from '@trismegisto/primitives';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;ACAA;;AAEG"}
1
+ {"version":3,"file":"trismegisto-angular.mjs","sources":["../../src/public-api.ts","../../src/trismegisto-angular.ts"],"sourcesContent":["// i18n\nexport { preloadHermesCatalog, liveCatalog, provideHermesI18n, type HermesI18nConfig, HERMES_I18N_CONFIG, type HermesCatalogLoader, HERMES_CATALOG_LOADERS, HermesI18nService, HERMES_MESSAGES } from '@trismegisto/angular/i18n';\n// pipes de tradução e de data/hora (idioma do HermesI18nService)\nexport { translateMessage, HermesTranslatePipe } from '@trismegisto/angular/pipes';\nexport { HermesDatePipe, HermesDateTimePipe } from '@trismegisto/angular/pipes';\nexport { toHermesDate, hermesDateOptions, formatHermesDate, type HermesDatePreset, type HermesDateInput, type HermesDateKind } from '@trismegisto/angular/pipes';\nexport {\n HERMES_MESSAGES_PT_BR,\n type HermesMessages,\n type HermesMessagesOverride,\n type CatalogOverride,\n type MessageParams,\n type PluralMessage,\n formatMessage,\n mergeCatalog,\n mergeMessages,\n pluralMessage,\n} from '@trismegisto/primitives';\n\n// tema\nexport { HERMES_THEME_CONFIG, HermesThemeService } from '@trismegisto/angular/theme';\nexport { HermesThemeDirective } from '@trismegisto/angular/theme';\nexport { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';\nexport { type HermesZoomLevel, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HERMES_TEXT_SCALES } from '@trismegisto/primitives';\nexport { type HermesMotionPreference, type HermesRegionalFormat, type TimeHourCycle, type Weekday } from '@trismegisto/primitives';\nexport { HERMES_FAMILIES, type HermesFamily, type HermesThemeName, type HermesDensity, type HermesThemeMode } from '@trismegisto/primitives';\nexport { HermesLoadingState } from '@trismegisto/primitives';\n\n// tipos compartilhados (definidos em @trismegisto/primitives, comuns a Angular/React)\nexport type {\n AlertVariant,\n ButtonEmphasis,\n ButtonIntent,\n ButtonSize,\n IconButtonEmphasis,\n ModalSize,\n HermesIcon,\n IconBadge,\n MenuItem,\n MenuItemChange,\n MenuItemType,\n PopoverAlign,\n PopoverAnchor,\n PopoverSide,\n SidebarMode,\n TabBarState,\n TabReorder,\n} from '@trismegisto/primitives';\nexport { createTabBarStore } from '@trismegisto/primitives';\n\n// componentes\nexport { type AlertSize, AlertComponent } from '@trismegisto/angular/alert';\nexport { AlertGroupComponent } from '@trismegisto/angular/alert';\nexport { HermesAlertGroup } from '@trismegisto/angular/alert';\nexport type { AlertAppearance } from '@trismegisto/primitives';\nexport { type ButtonGroupRegistry, HM_BUTTON_GROUP, ButtonComponent } from '@trismegisto/angular/button';\nexport { ButtonGroupComponent } from '@trismegisto/angular/button-group';\nexport { type DropdownPosition, DropdownComponent, DropdownTriggerDirective, DropdownIfOpenDirective, DropdownItemDirective, DropdownMenuComponent, HERMES_DROPDOWN } from '@trismegisto/angular/dropdown';\nexport { CheckboxComponent } from '@trismegisto/angular/checkbox';\nexport {\n CheckboxGroupComponent,\n type CheckboxGroupOption,\n type CheckboxGroupLayout,\n} from '@trismegisto/angular/checkbox-group';\nexport { CodeInputComponent } from '@trismegisto/angular/code-input';\nexport { type InputType, type InputValue, type InputMaskValue, type InputMode, InputComponent } from '@trismegisto/angular/input';\nexport { 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, 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';\nexport { provideHermesToast, type HermesToastConfig, HERMES_TOAST_CONFIG } from '@trismegisto/angular/toast';\n\n// dicas, trilha e progresso\nexport { TooltipDirective } from '@trismegisto/angular/tooltip';\nexport { type ToggletipSide, ToggletipComponent } from '@trismegisto/angular/toggletip';\nexport { PopoverComponent } from '@trismegisto/angular/popover';\nexport { PopoverTriggerDirective } from '@trismegisto/angular/popover';\nexport { type BreadcrumbItem, BreadcrumbComponent } from '@trismegisto/angular/breadcrumb';\nexport { type ProgressIntent, type ProgressSize, ProgressComponent } from '@trismegisto/angular/progress';\n// linha do tempo, pilha de avatares e listas de transferência/ordenação\nexport { TimelineItemComponent } from '@trismegisto/angular/timeline';\nexport { type TimelineOrientation, TimelineComponent } from '@trismegisto/angular/timeline';\nexport type { TimelineDateValue, TimelineOutcome, TimelineStatus } from '@trismegisto/primitives';\nexport { type AvatarGroupPerson, type AvatarGroupSize, AvatarGroupComponent } from '@trismegisto/angular/avatar-group';\nexport { type DualListSize, DualListComponent } from '@trismegisto/angular/dual-list';\nexport type { DualListItem } from '@trismegisto/primitives';\nexport { type ReorderListItem, type ReorderListSize, type ReorderListMove, type ReorderListRemoval, type ReorderListItemContext, ReorderListComponent } from '@trismegisto/angular/reorder-list';\nexport { type ListEditorAdded, type ListEditorRemoved, type ListEditorMoved, type ListEditorEdited, ListEditorComponent } from '@trismegisto/angular/list-editor';\nexport type { ListEditorPair, ListEditorValue, ListEditorValidator, ListEditorRejection, ListEditorRejectionReason } from '@trismegisto/primitives';\nexport { type DragListOrientation, HERMES_DRAG_DROP, accessibleName, byDocumentOrder, type HermesDragVia, type HermesDropAccepts, type HermesDropEvent, type HermesDropOverEvent, type HermesSortEvent, type HermesDragTemplateContext, type HermesDragItemRef, type HermesDropTargetRef, type HermesSortableContainer, HM_SORTABLE_CONTAINER, HermesDragDropService, DragPreviewDirective, type HermesDragEndEvent, DraggableDirective, DragHandleDirective, hermesDropAccepts, DropZoneDirective, DragPlaceholderDirective, SortableDirective } from '@trismegisto/angular/drag-drop';\nexport { type KanbanColumn, type KanbanMove, type KanbanWipState, HERMES_KANBAN, type KanbanCardContext, type KanbanColumnContext, type KanbanMoveEvent, type KanbanCanMove, type HermesKanbanHost, HM_KANBAN, KanbanComponent, KanbanColumnComponent, KanbanCardDirective, KanbanColumnActionsDirective, KanbanColumnSummaryDirective, KanbanColumnFooterDirective, KanbanColumnEmptyDirective } from '@trismegisto/angular/kanban';\n// atalhos de teclado: registro, diretiva e painel\nexport { provideHermesShortcuts, type HermesShortcutConfig, HERMES_SHORTCUT_CONFIG, type HermesShortcut, type HermesShortcutItem, HermesShortcutService } from '@trismegisto/angular/shortcut-list';\nexport { type ShortcutAction, ShortcutDirective } from '@trismegisto/angular/shortcut-list';\nexport { ShortcutListComponent } from '@trismegisto/angular/shortcut-list';\nexport type { ShortcutDisplay, ShortcutDisplayStep, ShortcutKeyLabel, ShortcutKeyName, ShortcutPlatform } from '@trismegisto/primitives';\n// etapas e assistente\nexport { HermesStepGroup } from '@trismegisto/angular/stepper';\nexport { type HermesStepGuard, type HermesStepSummaryEntry, type HermesStepSummary, StepComponent } from '@trismegisto/angular/stepper';\nexport { type StepperOrientation, StepperComponent } from '@trismegisto/angular/stepper';\nexport { type WizardMode, WizardComponent } from '@trismegisto/angular/wizard';\n// cópia, busca, barra de ferramentas e cabeçalho de página\nexport { type CopyButtonVariant, CopyButtonComponent } from '@trismegisto/angular/copy-button';\nexport { CodeViewerComponent, CodeLanguagesService, provideCodeLanguages } from '@trismegisto/angular/code-viewer';\nexport { type CodeDiffLayoutInput, type CodeDiffCopyTarget, CodeDiffComponent } from '@trismegisto/angular/code-diff';\nexport type { CodeLanguage, CodeLanguageLoader, CodeTokenKind, CodeToken, CodeLineTokens, CodeViewerHeader, CodeViewerVirtualize, CodeDiffLayout, TextDiff, TextDiffSummary, TextDiffWhitespace, TextDiffIntraline } from '@trismegisto/primitives';\nexport { AnimatedNumberComponent, FlipDirective, HermesMotionService, RevealDirective } from '@trismegisto/angular/motion';\nexport { type ThemeBuilderFormat, ThemeBuilderComponent } from '@trismegisto/angular/theme-builder';\nexport { type SearchFieldSize, SearchFieldComponent } from '@trismegisto/angular/search-field';\nexport { ToolbarComponent } from '@trismegisto/angular/toolbar';\nexport { type PageHeaderLevel, PageHeaderComponent } from '@trismegisto/angular/page-header';\nexport { type DividerOrientation, type DividerEmphasis, type DividerThickness, type DividerSpacing, type DividerLabelAlign, DividerComponent } from '@trismegisto/angular/divider';\nexport { type DescriptionListItem, type DescriptionListValueChange, type DescriptionListLabelPosition, type DescriptionListVariant, DescriptionListComponent } from '@trismegisto/angular/description-list';\nexport { DescriptionItemComponent } from '@trismegisto/angular/description-list';\nexport { type CertificateViewerHeadingLevel, CertificateViewerComponent } from '@trismegisto/angular/certificate-viewer';\nexport {\n type CertificateAltName,\n type CertificateAltNameType,\n type CertificateDate,\n type CertificateDistinguishedName,\n type CertificateInfo,\n type CertificateKeyUsage,\n type CertificateValidity,\n type CertificateValidityOptions,\n type CertificateValidityState,\n CERTIFICATE_NAME_FIELDS,\n CERTIFICATE_WARNING_DAYS,\n certificateValidity,\n} from '@trismegisto/primitives';\nexport { type PropertyDefinition, type PropertyGroup, type PropertyOption, type PropertyType, type PropertyValues, type PropertyChangeEvent, PropertyViewComponent } from '@trismegisto/angular/property-view';\nexport { type CardSelectionMode, type CardContainerItemContext, type CardContainerPersistStorage, type CardVisibilityChange, CardContainerItemDirective, CardContainerEmptyDirective, CardContainerComponent } from '@trismegisto/angular/card-container';\nexport { type LegendIntent, type LegendOrientation, type LegendMarker, type LegendItem, LegendComponent } from '@trismegisto/angular/legend';\n\nexport { SplitterComponent } from '@trismegisto/angular/splitter';\nexport { SplitterPanelComponent } from '@trismegisto/angular/splitter';\nexport type { SplitterOrientation } from '@trismegisto/primitives';\nexport { type WorkspaceTabContext, WorkspaceComponent } from '@trismegisto/angular/workspace';\nexport { WorkspaceNodeComponent } from '@trismegisto/angular/workspace';\nexport { provideHermesWorkspacePersistence, createPersistedWorkspaceStore, HERMES_WORKSPACE_PERSISTENCE_CONFIG } from '@trismegisto/angular/workspace-persistence';\n\n// tipos/stores compartilhados adicionais\nexport type { AlertVariant as ToastVariant, ToastItem, ToastPushOptions, ToastState, ToastAction, ToastStackPosition } from '@trismegisto/primitives';\nexport { TOAST_STACK_VISIBLE } from '@trismegisto/primitives';\nexport type {\n DropZone,\n PanelLeaf,\n PanelNode,\n PanelSplit,\n PersistedPanelNode,\n PersistedWorkspace,\n SplitDirection,\n SplitPath,\n SplitStep,\n WorkspaceKeyAction,\n WorkspacePersistenceConfig,\n WorkspaceState,\n WorkspaceStorage,\n WorkspaceStore,\n} from '@trismegisto/primitives';\nexport {\n DEFAULT_WORKSPACE_PERSISTENCE_CONFIG,\n createWorkspaceStore,\n cyclicPanelNeighbor,\n dropZone,\n findPanelContainingTab,\n findPanelTabs,\n isValidPersistedWorkspace,\n loadWorkspace,\n panelIdsInOrder,\n restoreWorkspaceStore,\n saveWorkspace,\n toPersistedWorkspace,\n workspaceKeyAction,\n} from '@trismegisto/primitives';\n\n// widgets\nexport { type AccountAvatarSize, AccountAvatarComponent } from '@trismegisto/angular/account-avatar';\nexport { GeometricTextureComponent } from '@trismegisto/angular/geometric-texture';\nexport { LoadingSquareComponent } from '@trismegisto/angular/loading-square';\nexport { type SpinnerSize, SpinnerComponent } from '@trismegisto/angular/spinner';\nexport { BadgeComponent } from '@trismegisto/angular/badge';\nexport { type TagColor, TagComponent } from '@trismegisto/angular/tag';\nexport { SkeletonComponent } from '@trismegisto/angular/skeleton';\nexport { type CardMediaPosition, CardComponent } from '@trismegisto/angular/card';\nexport { type StatCardSize, type StatCardDetail, type StatCardTrendDirection, type StatCardTrend, StatCardComponent } from '@trismegisto/angular/stat-card';\nexport { type StatGroupMetric, StatGroupComponent } from '@trismegisto/angular/stat-group';\nexport { CarouselComponent } from '@trismegisto/angular/carousel';\nexport type { CarouselSlide } from '@trismegisto/primitives';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;ACAA;;AAEG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trismegisto/angular",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "Hermes Design System — componentes Angular sobre @trismegisto/primitives, icons, tokens e core",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "sideEffects": false,
@@ -11,10 +11,10 @@
11
11
  "@angular/forms": ">=21.0.0",
12
12
  "@angular/platform-browser": ">=21.0.0",
13
13
  "@angular/router": ">=21.0.0",
14
- "@trismegisto/core": "^3.3.1",
15
- "@trismegisto/icons": "^3.3.1",
16
- "@trismegisto/primitives": "^3.3.1",
17
- "@trismegisto/tokens": "^3.3.1",
14
+ "@trismegisto/core": "^3.3.3",
15
+ "@trismegisto/icons": "^3.3.3",
16
+ "@trismegisto/primitives": "^3.3.3",
17
+ "@trismegisto/tokens": "^3.3.3",
18
18
  "rxjs": "^7.8.0"
19
19
  },
20
20
  "peerDependenciesMeta": {
@@ -1,7 +1,23 @@
1
- import * as _angular_core from '@angular/core';
2
1
  import * as _trismegisto_primitives from '@trismegisto/primitives';
3
- import { AlertVariant, ToastPushOptions, ToastItem } from '@trismegisto/primitives';
2
+ import { ToastStackPosition, AlertVariant, ToastPushOptions, ToastItem } from '@trismegisto/primitives';
3
+ import * as _angular_core from '@angular/core';
4
+ import { InjectionToken, Provider } from '@angular/core';
4
5
 
6
+ /** Padrões do `hm-toast-stack` para o app inteiro (o input da própria pilha, quando vem, vence). */
7
+ interface HermesToastConfig {
8
+ /** Canto da tela. Padrão: `'top-end'` (no topo a pilha cresce para baixo; embaixo, para cima). */
9
+ readonly position?: ToastStackPosition;
10
+ /** Pilha sempre aberta, sem recolher atrás do mais novo. Padrão: `false`. */
11
+ readonly expand?: boolean;
12
+ /** Quantos avisos aparecem de cada vez; os outros esperam na fila. Padrão: 3 (`TOAST_STACK_VISIBLE`). */
13
+ readonly visibleToasts?: number;
14
+ }
15
+ declare const HERMES_TOAST_CONFIG: InjectionToken<HermesToastConfig>;
16
+ /**
17
+ * Configura a pilha de avisos do app (canto, sempre aberta, quantos visíveis). É o jeito de mexer na pilha que
18
+ * outro pacote monta, como a do `spine-layout`: `providers: [provideHermesToast({ position: 'bottom-end' })]`.
19
+ */
20
+ declare function provideHermesToast(config: HermesToastConfig): Provider;
5
21
  /**
6
22
  * Fila única de avisos flutuantes do app. Quem desenha é o `hm-toast-stack` (montado uma vez, no
7
23
  * layout); qualquer parte do app só chama `success`/`error`/... aqui.
@@ -46,23 +62,45 @@ declare class HermesToastService {
46
62
  }
47
63
 
48
64
  /**
49
- * Onde os avisos do `HermesToastService` aparecem: uma coluna fixa no canto de cima, do lado do fim
50
- * da linha. Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).
65
+ * Onde os avisos do `HermesToastService` aparecem: uma pilha fixa num canto da tela (padrão: em cima, do lado do
66
+ * fim da linha). Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).
51
67
  *
52
- * - Ponteiro ou foco na pilha pausam todos os avisos; só quando os dois saem a contagem continua, de
53
- * onde parou (WCAG 2.2.1).
54
- * - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde
55
- * ele estava antes de entrar na pilha.
56
- * - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel.
68
+ * - Recolhida (padrão), como cartas empilhadas: o mais novo na frente, encostado na borda; os anteriores espiam
69
+ * atrás dele, menores, só uma faixa de cada (no topo, por baixo; embaixo, por cima). Passam de `visibleToasts`
70
+ * (3): ficam escondidos, mas continuam na fila e reaparecem quando os da frente fecham.
71
+ * - Ponteiro ou foco na pilha a abrem: os visíveis inteiros, um depois do outro (no topo, para baixo; embaixo, para
72
+ * cima), e pausam todos os avisos; só quando os dois saem ela recolhe e a contagem continua de onde parou
73
+ * (WCAG 2.2.1). `expand` deixa sempre aberta (aí só ponteiro/foco pausam).
74
+ * - Os recolhidos atrás e os escondidos ficam `inert` e fora da árvore de acessibilidade: o Tab entra pelo da
75
+ * frente, o que já abre a pilha e libera os outros.
76
+ * - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde ele
77
+ * estava antes de entrar na pilha.
78
+ * - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel, ao entrar (sempre na frente).
57
79
  * - Montada mais de uma vez (o `spine-layout` já monta uma), só a primeira que continua na tela desenha:
58
80
  * o aviso nunca aparece em dobro.
81
+ * - `position`, `expand` e `visibleToasts` vazios caem no `provideHermesToast()` (é por ele que se configura a
82
+ * pilha que outro pacote monta, como a do `spine-layout`).
59
83
  */
60
84
  declare class ToastStackComponent {
61
85
  #private;
62
86
  protected readonly service: HermesToastService;
63
87
  private readonly stack;
88
+ /** Canto da tela. Vazio: o do `provideHermesToast()`, ou `'top-end'`. */
89
+ readonly position: _angular_core.InputSignal<ToastStackPosition | undefined>;
90
+ /** Sempre aberta (todos os visíveis inteiros), sem precisar de ponteiro/foco. Vazio: o do provider, ou `false`. */
91
+ readonly expand: _angular_core.InputSignal<boolean | undefined>;
92
+ /** Quantos aparecem de cada vez; os outros esperam escondidos na fila. Vazio: o do provider, ou 3. */
93
+ readonly visibleToasts: _angular_core.InputSignal<number | undefined>;
94
+ protected readonly resolvedPosition: _angular_core.Signal<ToastStackPosition>;
95
+ protected readonly expanded: _angular_core.Signal<boolean>;
64
96
  /** Só a pilha ativa desenha; as outras montadas ao mesmo tempo ficam vazias. */
65
97
  protected readonly visible: _angular_core.Signal<readonly ToastItem[]>;
98
+ protected readonly layout: _angular_core.Signal<_trismegisto_primitives.ToastStackLayout>;
99
+ protected readonly entries: _angular_core.Signal<{
100
+ slot: _trismegisto_primitives.ToastStackSlot;
101
+ toast: ToastItem;
102
+ }[]>;
103
+ private readonly cards;
66
104
  constructor();
67
105
  private hovered;
68
106
  private focused;
@@ -77,7 +115,7 @@ declare class ToastStackComponent {
77
115
  protected dismiss(id: string): void;
78
116
  private sync;
79
117
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<ToastStackComponent, never>;
80
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastStackComponent, "hm-toast-stack", never, {}, {}, never, never, true, never>;
118
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastStackComponent, "hm-toast-stack", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "expand": { "alias": "expand"; "required": false; "isSignal": true; }; "visibleToasts": { "alias": "visibleToasts"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
81
119
  }
82
120
 
83
121
  /**
@@ -129,5 +167,6 @@ declare class ToastComponent {
129
167
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<ToastComponent, "hm-toast", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "message": { "alias": "message"; "required": true; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "actionLabel": { "alias": "actionLabel"; "required": false; "isSignal": true; }; }, { "action": "action"; "closed": "closed"; }, never, never, true, never>;
130
168
  }
131
169
 
132
- export { HermesToastService, ToastComponent, ToastStackComponent };
170
+ export { HERMES_TOAST_CONFIG, HermesToastService, ToastComponent, ToastStackComponent, provideHermesToast };
171
+ export type { HermesToastConfig };
133
172
  //# sourceMappingURL=trismegisto-angular-toast.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-toast.d.ts","sources":["../../src/toast/toast.service.ts","../../src/toast/toast-stack.component.ts","../../src/toast/toast.component.ts"],"mappings":";;;;AAGA;;;;;;;;;;;;;;;AAeG;AACH,cACa,kBAAkB;;AAC7B;AACA;qBACe,aAAA,CAAA,MAAA,UAAA,uBAAA,CAAA,SAAA;;0BAGK,aAAA,CAAA,MAAA;;AAOpB,kBAAc,YAAY,6BAA6B,gBAAgB;qCAItC,gBAAgB;uCAId,gBAAgB;oCAInB,gBAAgB;uCAIb,gBAAgB;AAInD;;AAKA;;AAKA;AAIA;;;AAGG;AACH;oDAnDW,kBAAkB;wDAAlB,kBAAkB;AAuD9B;;ACnED;;;;;;;;;;;AAWG;AACH,cA2Ba,mBAAmB;;AAE9B,gCAA0B,kBAAA;AAC1B;;AAEA,gCAA0B,aAAA,CAAA,MAAA,UAAA,SAAA;;;;;;;AAgB1B,kCAA8B,SAAS;AASvC;AAKA,+BAA2B,UAAU;AASrC,gCAA4B,UAAU;AAOtC,+BAA2B,SAAS;AAKpC;AAwCA;oDAhGW,mBAAmB;sDAAnB,mBAAmB;AAwG/B;;ACjID;;;;;;;;;;;;;AAaG;AACH,cAmBa,cAAc;;AAEzB;;;;;;;;;AAGwD;sBAExC,aAAA,CAAA,WAAA,CAAA,YAAA;;oBAEF,aAAA,CAAA,WAAA;sBACE,aAAA,CAAA,WAAA;;uBAEC,aAAA,CAAA,WAAA;;0BAEG,aAAA,CAAA,WAAA;qBACL,aAAA,CAAA,gBAAA;qBACA,aAAA,CAAA,gBAAA;AAEf,gCAA0B,aAAA,CAAA,cAAA;AAC1B,gCAA0B,aAAA,CAAA,cAAA;AAG1B,+BAAyB,aAAA,CAAA,MAAA;AACzB,6BAAuB,aAAA,CAAA,MAAA;AACvB,qCAA+B,aAAA,CAAA,MAAA;AAC/B,6BAAuB,aAAA,CAAA,MAAA;;AAuBvB,gCAA4B,UAAU;;oDAhD3B,cAAc;sDAAd,cAAc;AA8E1B;;","names":[]}
1
+ {"version":3,"file":"trismegisto-angular-toast.d.ts","sources":["../../src/toast/toast.service.ts","../../src/toast/toast-stack.component.ts","../../src/toast/toast.component.ts"],"mappings":";;;;;AAGA;UACiB,iBAAiB;;AAEhC,wBAAoB,kBAAkB;;AAEtC;;AAEA;AACD;AAED,cAAa,mBAAmB,EAAA,cAAA,CAAA,iBAAA;AAKhC;;;AAGG;AACH,iBAAgB,kBAAkB,SAAS,iBAAiB,GAAG,QAAQ;AAIvE;;;;;;;;;;;;;;;AAeG;AACH,cACa,kBAAkB;;AAC7B;AACA;qBACe,aAAA,CAAA,MAAA,UAAA,uBAAA,CAAA,SAAA;;0BAGK,aAAA,CAAA,MAAA;;AAOpB,kBAAc,YAAY,6BAA6B,gBAAgB;qCAItC,gBAAgB;uCAId,gBAAgB;oCAInB,gBAAgB;uCAIb,gBAAgB;AAInD;;AAKA;;AAKA;AAIA;;;AAGG;AACH;oDAnDW,kBAAkB;wDAAlB,kBAAkB;AAuD9B;;AC7ED;;;;;;;;;;;;;;;;;;;AAmBG;AACH,cAqCa,mBAAmB;;AAE9B,gCAA0B,kBAAA;AAC1B;;uBAIiB,aAAA,CAAA,WAAA,CAAA,kBAAA;;qBAEF,aAAA,CAAA,WAAA;;4BAEO,aAAA,CAAA,WAAA;AAEtB,yCAAmC,aAAA,CAAA,MAAA,CAAA,kBAAA;AAEnC,iCAA2B,aAAA,CAAA,MAAA;;AAG3B,gCAA0B,aAAA,CAAA,MAAA,UAAA,SAAA;AAI1B,+BAAyB,aAAA,CAAA,MAAA,CAAA,uBAAA,CAAA,gBAAA;gCAOC,aAAA,CAAA,MAAA;;;AAGvB;AACH;;;;;;;AAiBA,kCAA8B,SAAS;AASvC;AAKA,+BAA2B,UAAU;AASrC,gCAA4B,UAAU;AAOtC,+BAA2B,SAAS;AAKpC;AA0CA;oDA/HW,mBAAmB;sDAAnB,mBAAmB;AA+K/B;;ACvOD;;;;;;;;;;;;;AAaG;AACH,cAmBa,cAAc;;AAEzB;;;;;;;;;AAGwD;sBAExC,aAAA,CAAA,WAAA,CAAA,YAAA;;oBAEF,aAAA,CAAA,WAAA;sBACE,aAAA,CAAA,WAAA;;uBAEC,aAAA,CAAA,WAAA;;0BAEG,aAAA,CAAA,WAAA;qBACL,aAAA,CAAA,gBAAA;qBACA,aAAA,CAAA,gBAAA;AAEf,gCAA0B,aAAA,CAAA,cAAA;AAC1B,gCAA0B,aAAA,CAAA,cAAA;AAG1B,+BAAyB,aAAA,CAAA,MAAA;AACzB,6BAAuB,aAAA,CAAA,MAAA;AACvB,qCAA+B,aAAA,CAAA,MAAA;AAC/B,6BAAuB,aAAA,CAAA,MAAA;;AAuBvB,gCAA4B,UAAU;;oDAhD3B,cAAc;sDAAd,cAAc;AA8E1B;;","names":[]}
@@ -1,5 +1,5 @@
1
1
  import { InjectionToken, Provider } from '@angular/core';
2
- import { WorkspacePersistenceConfig, TabBarState, TabItem, WorkspaceStore } from '@trismegisto/primitives';
2
+ import { WorkspacePersistenceConfig, TabBarState, WorkspaceTabResolver, WorkspaceStore } from '@trismegisto/primitives';
3
3
 
4
4
  /**
5
5
  * Config de persistência do `hm-workspace` (`storagePrefix`, ver `@trismegisto/primitives`'s
@@ -12,12 +12,13 @@ declare function provideHermesWorkspacePersistence(config: WorkspacePersistenceC
12
12
  /**
13
13
  * Cria (ou restaura de `sessionStorage`) um `WorkspaceStore` e liga a persistência automática —
14
14
  * o ponto de entrada pra quem quer "abas do workspace sobrevivem a F5" sem escrever storage à
15
- * mão. `resolveTab` re-resolve cada id salvo (nunca confia em rótulo/ícone salvos, que podem estar
16
- * num idioma antigo); devolver `null` pra um id descarta aquela aba da restauração (ver
15
+ * mão. `resolveTab` re-resolve cada id salvo (rótulo/ícone salvos podem estar num idioma antigo: das abas com `url`
16
+ * ele recebe o que foi guardado — endereço e rótulo — e decide se confia); devolver `null` pra um id descarta aquela
17
+ * aba da restauração (ver
17
18
  * `restoreWorkspaceStore`, `@trismegisto/primitives`). `fallback` é usado quando não há nada válido
18
19
  * salvo (primeira visita, storage vazio/corrompido, ou tudo restaurado foi descartado).
19
20
  */
20
- declare function createPersistedWorkspaceStore(fallback: TabBarState, resolveTab: (id: string) => TabItem | null, config?: WorkspacePersistenceConfig): WorkspaceStore;
21
+ declare function createPersistedWorkspaceStore(fallback: TabBarState, resolveTab: WorkspaceTabResolver, config?: WorkspacePersistenceConfig): WorkspaceStore;
21
22
 
22
23
  export { HERMES_WORKSPACE_PERSISTENCE_CONFIG, createPersistedWorkspaceStore, provideHermesWorkspacePersistence };
23
24
  //# sourceMappingURL=trismegisto-angular-workspace-persistence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"trismegisto-angular-workspace-persistence.d.ts","sources":["../../src/workspace-persistence/workspace-persistence.ts"],"mappings":";;;AAcA;;;;;AAKG;AACH,cAAa,mCAAmC,EAAA,cAAA,CAAA,0BAAA;AAKhD,iBAAgB,iCAAiC,SAAS,0BAA0B,GAAG,QAAQ;AAuB/F;;;;;;;AAOG;AACH,iBAAgB,6BAA6B,WACjC,WAAW,8BACO,OAAO,kBAC3B,0BAAiE,GACxE,cAAc;;","names":[]}
1
+ {"version":3,"file":"trismegisto-angular-workspace-persistence.d.ts","sources":["../../src/workspace-persistence/workspace-persistence.ts"],"mappings":";;;AAcA;;;;;AAKG;AACH,cAAa,mCAAmC,EAAA,cAAA,CAAA,0BAAA;AAKhD,iBAAgB,iCAAiC,SAAS,0BAA0B,GAAG,QAAQ;AAuB/F;;;;;;;;AAQG;AACH,iBAAgB,6BAA6B,WACjC,WAAW,cACT,oBAAoB,WACxB,0BAAiE,GACxE,cAAc;;","names":[]}
@@ -1,6 +1,6 @@
1
1
  export { HERMES_CATALOG_LOADERS, HERMES_I18N_CONFIG, HERMES_MESSAGES, HermesCatalogLoader, HermesI18nConfig, HermesI18nService, liveCatalog, preloadHermesCatalog, provideHermesI18n } from '@trismegisto/angular/i18n';
2
2
  export { HermesDateInput, HermesDateKind, HermesDatePipe, HermesDatePreset, HermesDateTimePipe, HermesTranslatePipe, formatHermesDate, hermesDateOptions, toHermesDate, translateMessage } from '@trismegisto/angular/pipes';
3
- export { AlertAppearance, AlertVariant, BulkCase, BulkInvalidItem, BulkInvalidReason, BulkParseOptions, BulkParseResult, BulkSeparator, BulkValidator, ButtonEmphasis, ButtonIntent, ButtonSize, CERTIFICATE_NAME_FIELDS, CERTIFICATE_WARNING_DAYS, CarouselSlide, CatalogOverride, CertificateAltName, CertificateAltNameType, CertificateDate, CertificateDistinguishedName, CertificateInfo, CertificateKeyUsage, CertificateValidity, CertificateValidityOptions, CertificateValidityState, CodeDiffLayout, CodeLanguage, CodeLanguageLoader, CodeLineTokens, CodeToken, CodeTokenKind, CodeViewerHeader, CodeViewerVirtualize, DEFAULT_WORKSPACE_PERSISTENCE_CONFIG, DateRange, DateValueFormat, DisplayDatePattern, DropZone, DualListItem, EMPTY_DATE_RANGE, EMPTY_GRID_QUERY, EMPTY_SELECTION, FileRejection, FileRejectionReason, FileUploadStatus, FloatingRect, FloatingWindowState, GRID_FILTER_OPERATORS, GridAggregateFn, GridAggregateFormatter, GridAggregates, GridColumn, GridColumnFilterValue, GridColumnState, GridColumnType, GridCsvSeparator, GridFilterCondition, GridFilterConnector, GridFilterOperator, GridFilterOption, GridFilterQuery, GridSelection, GridSort, HERMES_FAMILIES, HERMES_MESSAGES_PT_BR, HERMES_TEXT_SCALES, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HOVER_CLOSE_DELAY, HOVER_OPEN_DELAY, HermesDensity, HermesFamily, HermesIcon, HermesLoadingState, HermesMessages, HermesMessagesOverride, HermesMotionPreference, HermesRegionalFormat, HermesThemeMode, HermesThemeName, HermesZoomLevel, INITIAL_PAGE, IconBadge, IconButtonEmphasis, IsoDate, ListEditorPair, ListEditorRejection, ListEditorRejectionReason, ListEditorValidator, ListEditorValue, MenuItem, MenuItemChange, MenuItemType, MessageParams, ModalSize, PageWindowItem, PaginationState, PanelLeaf, PanelNode, PanelSplit, PersistedPanelNode, PersistedWorkspace, PluralMessage, PopoverAlign, PopoverAnchor, PopoverSide, RICH_TEXT_DEFAULT_TOOLS, RichTextFormatTool, RichTextHeadingLevel, RichTextParser, RichTextPasteMode, RichTextSchema, RichTextSchemaOptions, RichTextTool, ShortcutDisplay, ShortcutDisplayStep, ShortcutKeyLabel, ShortcutKeyName, ShortcutPlatform, SidebarMode, SortDirection, SplitDirection, SplitPath, SplitStep, SplitterOrientation, TabBarState, TabReorder, TextDiff, TextDiffIntraline, TextDiffSummary, TextDiffWhitespace, TimeHourCycle, TimelineDateValue, TimelineOutcome, TimelineStatus, ToastAction, ToastItem, ToastPushOptions, ToastState, AlertVariant as ToastVariant, UploadFile, UploadFilePatch, Weekday, WorkspaceKeyAction, WorkspacePersistenceConfig, WorkspaceState, WorkspaceStorage, WorkspaceStore, applyMenuItemChange, certificateValidity, createTabBarStore, createWorkspaceStore, cyclicPanelNeighbor, displayDatePattern, dropZone, findPanelContainingTab, findPanelTabs, formatDisplayDate, formatMessage, initialColumnState, isValidPersistedWorkspace, loadWorkspace, menuRadioValue, mergeCatalog, mergeMessages, normalizeDateRange, normalizeRichTextUrl, panelIdsInOrder, parseDisplayDate, pluralMessage, restoreWorkspaceStore, richTextLength, richTextPlainText, richTextSchema, sanitizeRichText, saveWorkspace, toPersistedWorkspace, workspaceKeyAction } from '@trismegisto/primitives';
3
+ export { AlertAppearance, AlertVariant, BulkCase, BulkInvalidItem, BulkInvalidReason, BulkParseOptions, BulkParseResult, BulkSeparator, BulkValidator, ButtonEmphasis, ButtonIntent, ButtonSize, CERTIFICATE_NAME_FIELDS, CERTIFICATE_WARNING_DAYS, CarouselSlide, CatalogOverride, CertificateAltName, CertificateAltNameType, CertificateDate, CertificateDistinguishedName, CertificateInfo, CertificateKeyUsage, CertificateValidity, CertificateValidityOptions, CertificateValidityState, CodeDiffLayout, CodeLanguage, CodeLanguageLoader, CodeLineTokens, CodeToken, CodeTokenKind, CodeViewerHeader, CodeViewerVirtualize, DEFAULT_WORKSPACE_PERSISTENCE_CONFIG, DateRange, DateValueFormat, DisplayDatePattern, DropZone, DualListItem, EMPTY_DATE_RANGE, EMPTY_GRID_QUERY, EMPTY_SELECTION, FileRejection, FileRejectionReason, FileUploadStatus, FloatingRect, FloatingWindowState, GRID_FILTER_OPERATORS, GridAggregateFn, GridAggregateFormatter, GridAggregates, GridColumn, GridColumnFilterValue, GridColumnState, GridColumnType, GridCsvSeparator, GridFilterCondition, GridFilterConnector, GridFilterOperator, GridFilterOption, GridFilterQuery, GridSelection, GridSort, HERMES_FAMILIES, HERMES_MESSAGES_PT_BR, HERMES_TEXT_SCALES, HERMES_ZOOM_BREAKPOINTS, HERMES_ZOOM_CLASSES, HOVER_CLOSE_DELAY, HOVER_OPEN_DELAY, HermesDensity, HermesFamily, HermesIcon, HermesLoadingState, HermesMessages, HermesMessagesOverride, HermesMotionPreference, HermesRegionalFormat, HermesThemeMode, HermesThemeName, HermesZoomLevel, INITIAL_PAGE, IconBadge, IconButtonEmphasis, IsoDate, ListEditorPair, ListEditorRejection, ListEditorRejectionReason, ListEditorValidator, ListEditorValue, MenuItem, MenuItemChange, MenuItemType, MessageParams, ModalSize, PageWindowItem, PaginationState, PanelLeaf, PanelNode, PanelSplit, PersistedPanelNode, PersistedWorkspace, PluralMessage, PopoverAlign, PopoverAnchor, PopoverSide, RICH_TEXT_DEFAULT_TOOLS, RichTextFormatTool, RichTextHeadingLevel, RichTextParser, RichTextPasteMode, RichTextSchema, RichTextSchemaOptions, RichTextTool, ShortcutDisplay, ShortcutDisplayStep, ShortcutKeyLabel, ShortcutKeyName, ShortcutPlatform, SidebarMode, SortDirection, SplitDirection, SplitPath, SplitStep, SplitterOrientation, TOAST_STACK_VISIBLE, TabBarState, TabReorder, TextDiff, TextDiffIntraline, TextDiffSummary, TextDiffWhitespace, TimeHourCycle, TimelineDateValue, TimelineOutcome, TimelineStatus, ToastAction, ToastItem, ToastPushOptions, ToastStackPosition, ToastState, AlertVariant as ToastVariant, UploadFile, UploadFilePatch, Weekday, WorkspaceKeyAction, WorkspacePersistenceConfig, WorkspaceState, WorkspaceStorage, WorkspaceStore, applyMenuItemChange, certificateValidity, createTabBarStore, createWorkspaceStore, cyclicPanelNeighbor, displayDatePattern, dropZone, findPanelContainingTab, findPanelTabs, formatDisplayDate, formatMessage, initialColumnState, isValidPersistedWorkspace, loadWorkspace, menuRadioValue, mergeCatalog, mergeMessages, normalizeDateRange, normalizeRichTextUrl, panelIdsInOrder, parseDisplayDate, pluralMessage, restoreWorkspaceStore, richTextLength, richTextPlainText, richTextSchema, sanitizeRichText, saveWorkspace, toPersistedWorkspace, workspaceKeyAction } from '@trismegisto/primitives';
4
4
  export { HERMES_THEME_CONFIG, HermesThemeDirective, HermesThemeService } from '@trismegisto/angular/theme';
5
5
  export { HermesZoomService, provideHermesZoom } from '@trismegisto/angular/zoom';
6
6
  export { AlertComponent, AlertGroupComponent, AlertSize, HermesAlertGroup } from '@trismegisto/angular/alert';
@@ -65,7 +65,7 @@ export { HM_MESSAGE, MessageAlign, MessageComponent, MessageContext, MessageStat
65
65
  export { BubbleComponent, BubbleReaction, BubbleVariant } from '@trismegisto/angular/bubble';
66
66
  export { MessageDividerComponent, MessageDividerVariant } from '@trismegisto/angular/message-divider';
67
67
  export { MessageScrollerComponent, MessageScrollerLive } from '@trismegisto/angular/message-scroller';
68
- export { HermesToastService, ToastComponent, ToastStackComponent } from '@trismegisto/angular/toast';
68
+ export { HERMES_TOAST_CONFIG, HermesToastConfig, HermesToastService, ToastComponent, ToastStackComponent, provideHermesToast } from '@trismegisto/angular/toast';
69
69
  export { TooltipDirective } from '@trismegisto/angular/tooltip';
70
70
  export { ToggletipComponent, ToggletipSide } from '@trismegisto/angular/toggletip';
71
71
  export { PopoverComponent, PopoverTriggerDirective } from '@trismegisto/angular/popover';