@praxisui/tabs 10.0.0-rc.8 → 10.0.0-rc.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@praxisui/tabs",
3
- "version": "10.0.0-rc.8",
3
+ "version": "10.0.0-rc.81",
4
4
  "description": "Configurable tabs (group and nav) for Praxis UI with metadata-driven content and runtime editor.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
7
7
  "@angular/core": "^21.0.0",
8
8
  "@angular/material": "^21.0.0",
9
9
  "@angular/cdk": "^21.0.0",
10
- "@praxisui/core": "^10.0.0-rc.8",
11
- "@praxisui/dynamic-fields": "^10.0.0-rc.8",
12
- "@praxisui/settings-panel": "^10.0.0-rc.8",
10
+ "@praxisui/core": "^10.0.0-rc.81",
11
+ "@praxisui/dynamic-fields": "^10.0.0-rc.81",
12
+ "@praxisui/settings-panel": "^10.0.0-rc.81",
13
13
  "@angular/forms": "^21.0.0",
14
14
  "@angular/router": "^21.0.0",
15
- "@praxisui/ai": "^10.0.0-rc.8",
15
+ "@praxisui/ai": "^10.0.0-rc.81",
16
16
  "rxjs": "~7.8.0"
17
17
  },
18
18
  "dependencies": {
@@ -81,6 +81,7 @@ Este documento e a referencia canonica da API JSON de praxis-tabs-config-editor.
81
81
  | Path | Type | Required | Default | Status | Notes |
82
82
  | --- | --- | --- | --- | --- | --- |
83
83
  | `meta` | not-specified | not-specified | n/a | Partial | Preservado da documentação anterior. |
84
+ | `appearance.variant` | `'underline' \| 'pill' \| 'segmented'` | no | `'underline'` | Active | Seletor visual de variante na guia `Estilo` e preset `pill`. |
84
85
  | `appearance.density` | not-specified | not-specified | n/a | Active | Preservado da documentação anterior. |
85
86
  | `appearance.themeClass` | not-specified | not-specified | n/a | Active | Preservado da documentação anterior. |
86
87
  | `appearance.customCss` | not-specified | not-specified | n/a | Active | Preservado da documentação anterior. |
@@ -391,7 +392,7 @@ Fluxo padrao:
391
392
  | `Grupo` | `group.*` | runtime `mat-tab-group` | Partial |
392
393
  | `Navegacao` | `nav.*` | runtime `mat-tab-nav-bar` | Partial |
393
394
  | `JSON` | objeto completo | override total do `editedConfig` | Active |
394
- | `Estilo` | `appearance.themeClass/density/customCss/tokens` | classes + css runtime | Partial |
395
+ | `Estilo` | `appearance.variant/themeClass/density/customCss/tokens` | classes + css runtime + presets (`primary`, `neutral`, `high-contrast`, `pill`) | Partial |
395
396
  | `Abas` | `tabs[]` + widgets por aba | group mode | Active |
396
397
  | `Acessibilidade` | `accessibility.highContrast/reduceMotion` | classes no root | Partial |
397
398
  | `Links` | `nav.links[]` + widgets por link | nav mode | Active |
@@ -445,6 +446,7 @@ Risco conhecido:
445
446
  | JSON path | Status | Observacao |
446
447
  | --- | --- | --- |
447
448
  | `meta` | Stored-only | preservado no JSON, sem guia dedicada |
449
+ | `appearance.variant` | Active | seletor visual (`underline \| pill \| segmented`) + preset `pill` |
448
450
  | `appearance.density` | Active | seletor visual |
449
451
  | `appearance.themeClass` | Active | input de classe |
450
452
  | `appearance.customCss` | Active | textarea livre |
@@ -464,6 +466,7 @@ Risco conhecido:
464
466
 
465
467
  | Path | Status | Observacao |
466
468
  | --- | --- | --- |
469
+ | `appearance.variant` | Active | guia Estilo |
467
470
  | `appearance.density` | Active | guia Estilo |
468
471
  | `appearance.themeClass` | Active | guia Estilo |
469
472
  | `appearance.customCss` | Active | guia Estilo |
@@ -479,6 +482,11 @@ Risco conhecido:
479
482
  | `appearance.tokens.pagination-icon-color` | Active | token list |
480
483
  | `appearance.tokens.divider-color` | Active | token list |
481
484
  | `appearance.tokens.background-color` | Active | token list |
485
+ | `appearance.tokens.track-background-color` | Active | token list |
486
+ | `appearance.tokens.track-border-color` | Active | token list |
487
+ | `appearance.tokens.active-tab-background-color` | Active | token list |
488
+ | `appearance.tokens.active-tab-outline-color` | Active | token list |
489
+ | `appearance.tokens.pill-radius` | Active | token list |
482
490
  | `behavior.closeable` | Active | guia Comportamento |
483
491
  | `behavior.lazyLoad` | Active | guia Comportamento |
484
492
  | `behavior.reorderable` | Active | guia Comportamento |
@@ -513,6 +521,7 @@ Risco conhecido:
513
521
  | `tabs[].textLabel` | Active | guia Abas |
514
522
  | `tabs[].labelClass` | Active | guia Abas |
515
523
  | `tabs[].bodyClass` | Active | guia Abas |
524
+ | `tabs[].tone` | Active | guia Abas |
516
525
  | `tabs[].ariaLabel` | Active | guia Abas |
517
526
  | `tabs[].ariaLabelledby` | Active | guia Abas |
518
527
  | `tabs[].disabled` | Active | guia Abas |
@@ -522,6 +531,8 @@ Risco conhecido:
522
531
  | `nav.links[]` | Active | guia Links |
523
532
  | `nav.links[].id` | Active | guia Links |
524
533
  | `nav.links[].label` | Active | guia Links |
534
+ | `nav.links[].labelClass` | Active | guia Links |
535
+ | `nav.links[].tone` | Active | guia Links |
525
536
  | `nav.links[].active` | Stored-only | editor grava; runtime final deriva por indice |
526
537
  | `nav.links[].disabled` | Active | guia Links |
527
538
  | `nav.links[].disableRipple` | Active | guia Links |
@@ -249,6 +249,7 @@ config explícita -> config persistida -> seleção clamp para `0` quando índic
249
249
  | Path/Rule | Validation phase | Behavior on fail | Error code / warning | Notes |
250
250
  | --- | --- | --- | --- | --- |
251
251
  | `tabsId` para persistência | init/runtime | warning + disable persistence | `praxis-tabs:missing-tabs-id` | Fluxo visual continua sem restore/save de estado. |
252
+ | `configPersistenceStrategy` | init/runtime | aceita `local-first` (e legado `storage-first`), `input-first` e `volatile` | n/a | `input-first` com `[config]` preserva ownership da composição; `volatile` nunca lê, salva ou limpa storage. |
252
253
  | índices de seleção (`group.selectedIndex`, `nav.selectedIndex`) | runtime | clamp para faixa válida | n/a | Previne acesso fora dos limites após mudanças dinâmicas. |
253
254
  | payload de reorder/nav click inválido | runtime | ignore operation | n/a | Guardas de índice evitam mutações incorretas. |
254
255
  | valores CSS inseguros em appearance | runtime sanitize | sanitize/ignore | n/a | `sanitizeCssValue()` limita superfícies de injeção de estilo. |
@@ -636,11 +637,18 @@ interface TabsMetadata {
636
637
 
637
638
  Campos:
638
639
 
640
+ - `variant`
639
641
  - `density`
640
642
  - `themeClass`
641
643
  - `customCss`
642
644
  - `tokens`
643
645
 
646
+ ##### variant
647
+
648
+ | Campo | Opcoes | Status | Runtime |
649
+ | --- | --- | --- | --- |
650
+ | `appearance.variant` | `underline \| pill \| segmented` | Active | classes `variant-*` no root (`group` e `nav`) |
651
+
644
652
  ##### density
645
653
 
646
654
  | Campo | Opcoes | Status | Runtime |
@@ -671,7 +679,7 @@ Politica de bloqueio atual:
671
679
 
672
680
  ##### tokens (runtime CSS)
673
681
 
674
- Tokens mapeados no runtime:
682
+ Tokens mapeados no runtime (injetados via `<style data-praxis-tabs-runtime-style>`):
675
683
 
676
684
  - `active-indicator-color`
677
685
  - `active-focus-indicator-color`
@@ -685,6 +693,11 @@ Tokens mapeados no runtime:
685
693
  - `pagination-icon-color`
686
694
  - `divider-color`
687
695
  - `background-color`
696
+ - `track-background-color`
697
+ - `track-border-color`
698
+ - `active-tab-background-color`
699
+ - `active-tab-outline-color`
700
+ - `pill-radius`
688
701
 
689
702
  Token declarado sem efeito atual:
690
703
 
@@ -778,6 +791,7 @@ Atributos ARIA ativos via `group`/`nav`/`tabs`:
778
791
  | `tabs[].textLabel` | Active | label exibido |
779
792
  | `tabs[].labelClass` | Active | classe de label |
780
793
  | `tabs[].bodyClass` | Active | classe de body |
794
+ | `tabs[].tone` | Active | classe `praxis-tab-tone--*` (`default \| primary \| accent \| outlined`) |
781
795
  | `tabs[].disabled` | Active | desabilita tab |
782
796
  | `tabs[].content` | Active | `DynamicFieldLoaderDirective` (requer `form`) |
783
797
  | `tabs[].widgets` | Active | `DynamicWidgetLoaderDirective` |
@@ -815,6 +829,8 @@ Atributos ARIA ativos via `group`/`nav`/`tabs`:
815
829
  | --- | --- | --- |
816
830
  | `nav.links[].id` | Active | preservacao de selecao no reorder + contexto |
817
831
  | `nav.links[].label` | Active | label exibido |
832
+ | `nav.links[].labelClass` | Active | classes via `[ngClass]` no `<a mat-tab-link>` |
833
+ | `nav.links[].tone` | Active | classe `praxis-tab-tone--*` (`default \| primary \| accent \| outlined`) |
818
834
  | `nav.links[].active` | Derived | ativo real e derivado de `currentNavIndex` |
819
835
  | `nav.links[].disabled` | Active | desabilita link |
820
836
  | `nav.links[].disableRipple` | Active | override por link |
@@ -828,6 +844,7 @@ Atributos ARIA ativos via `group`/`nav`/`tabs`:
828
844
  | --- | --- | --- |
829
845
  | `meta` | Stored-only | bag livre sem binding direto |
830
846
  | `appearance` | Partial | bloco ativo com ressalvas em token |
847
+ | `appearance.variant` | Active | classes `variant-underline\|pill\|segmented` |
831
848
  | `appearance.density` | Active | classes `density-*` |
832
849
  | `appearance.themeClass` | Active | classe no root |
833
850
  | `appearance.customCss` | Active | filtrado por seguranca |
@@ -845,6 +862,11 @@ Atributos ARIA ativos via `group`/`nav`/`tabs`:
845
862
  | `appearance.tokens.pagination-icon-color` | Active | css runtime |
846
863
  | `appearance.tokens.divider-color` | Active | css runtime |
847
864
  | `appearance.tokens.background-color` | Active | css runtime |
865
+ | `appearance.tokens.track-background-color` | Active | css runtime (trilha pill/segmented) |
866
+ | `appearance.tokens.track-border-color` | Active | css runtime (borda da trilha) |
867
+ | `appearance.tokens.active-tab-background-color` | Active | css runtime (fundo da aba ativa pill/segmented) |
868
+ | `appearance.tokens.active-tab-outline-color` | Active | css runtime (contorno/foco da aba pill/segmented) |
869
+ | `appearance.tokens.pill-radius` | Active | css runtime (raio da borda pill/segmented) |
848
870
  | `behavior` | Active | bloco runtime |
849
871
  | `behavior.lazyLoad` | Active | lazy content |
850
872
  | `behavior.closeable` | Active | fechar aba |
@@ -880,6 +902,7 @@ Atributos ARIA ativos via `group`/`nav`/`tabs`:
880
902
  | `tabs[].textLabel` | Active | label |
881
903
  | `tabs[].labelClass` | Active | class |
882
904
  | `tabs[].bodyClass` | Active | class |
905
+ | `tabs[].tone` | Active | classe `praxis-tab-tone--*` |
883
906
  | `tabs[].disabled` | Active | disable |
884
907
  | `tabs[].content` | Active | dynamic fields |
885
908
  | `tabs[].widgets` | Active | dynamic widgets |
@@ -898,6 +921,8 @@ Atributos ARIA ativos via `group`/`nav`/`tabs`:
898
921
  | `nav.links` | Active | fonte do modo nav |
899
922
  | `nav.links[].id` | Active | merge/reorder context |
900
923
  | `nav.links[].label` | Active | label |
924
+ | `nav.links[].labelClass` | Active | class |
925
+ | `nav.links[].tone` | Active | classe `praxis-tab-tone--*` |
901
926
  | `nav.links[].active` | Derived | derivado por indice |
902
927
  | `nav.links[].disabled` | Active | disable |
903
928
  | `nav.links[].disableRipple` | Active | override |
@@ -1,7 +1,7 @@
1
- import * as i0 from '@angular/core';
2
- import { OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, Provider, AfterViewInit } from '@angular/core';
1
+ import * as _angular_core from '@angular/core';
2
+ import { OnInit, OnChanges, DoCheck, OnDestroy, EventEmitter, SimpleChanges, Provider, AfterViewInit } from '@angular/core';
3
3
  import { MatTabChangeEvent } from '@angular/material/tabs';
4
- import { AiCapability, WidgetDefinition, WidgetEventEnvelope, WidgetEventPathSegment, PraxisI18nConfig, ComponentDocMeta, ComponentMetadataRegistry, SettingsValueProvider as SettingsValueProvider$1, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
4
+ import { AiCapability, WidgetShellViewportContext, WidgetViewportMode, WidgetDefinition, WidgetEventEnvelope, PraxisTranslationParams, WidgetEventPathSegment, PraxisI18nConfig, ComponentDocMeta, ComponentMetadataRegistry, SettingsValueProvider as SettingsValueProvider$1, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
5
5
  import { FormGroup } from '@angular/forms';
6
6
  import { CdkDragDrop } from '@angular/cdk/drag-drop';
7
7
  import { BaseAiAdapter, AiResponseCompileResult, PatchResult, PraxisAssistantTurnViewState, PraxisAssistantShellLayout, PraxisAssistantShellLabels, PraxisAssistantSessionSnapshot, PraxisAssistantShellQuickReply, PraxisAssistantShellMessage } from '@praxisui/ai';
@@ -35,6 +35,7 @@ declare class TabsAiAdapter extends BaseAiAdapter<TabsMetadata> {
35
35
  private resolveTargetId;
36
36
  private resolveTextLabel;
37
37
  private resolveTabAddInput;
38
+ private resolveLayoutVariantInput;
38
39
  private resolveTabContentInput;
39
40
  private summarizeOperations;
40
41
  private t;
@@ -59,8 +60,11 @@ interface TabsConfigChangeEvent {
59
60
  config: TabsMetadata;
60
61
  };
61
62
  }
62
- type TabsConfigPersistenceStrategy = 'storage-first' | 'input-first';
63
+ type TabsConfigPersistenceStrategy = 'storage-first' | 'local-first' | 'input-first' | 'volatile';
64
+ type TabsAppearanceVariant = 'underline' | 'pill' | 'segmented';
65
+ type TabItemTone = 'default' | 'primary' | 'accent' | 'outlined';
63
66
  interface TabsAppearanceConfig {
67
+ variant?: TabsAppearanceVariant;
64
68
  density?: 'compact' | 'comfortable' | 'spacious';
65
69
  themeClass?: string;
66
70
  customCss?: string;
@@ -112,6 +116,7 @@ interface TabMetadata {
112
116
  icon?: string;
113
117
  labelClass?: string | string[];
114
118
  bodyClass?: string | string[];
119
+ tone?: TabItemTone;
115
120
  disabled?: boolean;
116
121
  visible?: boolean;
117
122
  content?: any[];
@@ -139,6 +144,8 @@ interface TabLinkMetadata {
139
144
  id?: string;
140
145
  label: string;
141
146
  icon?: string;
147
+ labelClass?: string | string[];
148
+ tone?: TabItemTone;
142
149
  active?: boolean;
143
150
  disabled?: boolean;
144
151
  visible?: boolean;
@@ -161,8 +168,13 @@ interface TabsStyleTokens {
161
168
  'pagination-icon-color': string;
162
169
  'divider-color': string;
163
170
  'background-color': string;
171
+ 'track-background-color': string;
172
+ 'track-border-color': string;
173
+ 'active-tab-background-color': string;
174
+ 'active-tab-outline-color': string;
175
+ 'pill-radius': string;
164
176
  }
165
- declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
177
+ declare class PraxisTabs implements OnInit, OnChanges, DoCheck, OnDestroy {
166
178
  private readonly i18n;
167
179
  private readonly settings;
168
180
  private readonly storage;
@@ -173,16 +185,33 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
173
185
  private readonly aiApi;
174
186
  private readonly assistantSessions;
175
187
  private readonly aiTurnOrchestrator;
188
+ readonly parentShellViewport: WidgetShellViewportContext | undefined;
176
189
  private readonly route;
190
+ private aiAssistantSessionDismissed;
191
+ private lastSyncedAiAssistantSessionId;
192
+ private lastHandledDismissalSeq;
193
+ private readonly viewportConfigVersion;
194
+ protected currentNavIndex: _angular_core.WritableSignal<number>;
195
+ protected selectedIndexSignal: _angular_core.WritableSignal<number>;
196
+ readonly activeTabSingleFillWidget: _angular_core.Signal<boolean>;
197
+ readonly viewportMode: _angular_core.Signal<WidgetViewportMode>;
198
+ readonly isFillViewport: _angular_core.Signal<boolean>;
177
199
  private readonly aiAssistantSessionEffect;
200
+ private readonly aiAssistantDismissEffect;
178
201
  private warnedMissingId;
202
+ private storageInitialized;
179
203
  private loadedStorageKey;
180
- config: TabsMetadata | null;
204
+ private storageLoad?;
205
+ private hostInputBaselineConfig?;
206
+ private _config;
207
+ get config(): TabsMetadata | null;
208
+ set config(value: TabsMetadata | null);
181
209
  tabsId: string;
182
210
  componentInstanceId?: string;
183
211
  configPersistenceStrategy: TabsConfigPersistenceStrategy;
184
212
  set selectedIndex(index: number | null | undefined);
185
213
  enableCustomization: boolean;
214
+ showOverflowIndex: boolean | 'auto';
186
215
  form: FormGroup | null;
187
216
  context: Record<string, any> | null;
188
217
  animationDone: EventEmitter<void>;
@@ -201,8 +230,8 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
201
230
  readonly aiAssistantLabels: Partial<PraxisAssistantShellLabels>;
202
231
  private aiAssistantController;
203
232
  private aiAssistantStateSubscription;
204
- protected currentNavIndex: i0.WritableSignal<number>;
205
- protected selectedIndexSignal: i0.WritableSignal<number>;
233
+ protected overflowIndexOpen: _angular_core.WritableSignal<boolean>;
234
+ protected overflowIndexFilter: _angular_core.WritableSignal<string>;
206
235
  private groupLoaded;
207
236
  private navLoaded;
208
237
  private controlledSelectedIndex?;
@@ -210,6 +239,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
210
239
  private groupComponent?;
211
240
  private navComponent?;
212
241
  private readonly hostElement;
242
+ private readonly destroyRef;
213
243
  private headerResizeObserver?;
214
244
  private observedHeader?;
215
245
  private headerResizeFrame?;
@@ -218,8 +248,11 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
218
248
  private readonly destroy$;
219
249
  private widgetDefinitionCache;
220
250
  private readonly generatedContentForm;
251
+ private runtimeStyleEl?;
252
+ private lastRuntimeCss;
221
253
  ngOnInit(): void;
222
254
  ngOnChanges(changes: SimpleChanges): void;
255
+ ngDoCheck(): void;
223
256
  ngOnDestroy(): void;
224
257
  isNavMode(): boolean;
225
258
  private observeHeaderResize;
@@ -236,6 +269,30 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
236
269
  }>;
237
270
  protected selectedVisibleNavIndex(): number;
238
271
  protected selectedVisibleTabIndex(): number;
272
+ protected shouldShowOverflowIndex(): boolean;
273
+ protected overflowIndexItems(): Array<{
274
+ key: string;
275
+ visibleIndex: number;
276
+ label: string;
277
+ icon?: string;
278
+ disabled: boolean;
279
+ active: boolean;
280
+ }>;
281
+ protected filteredOverflowIndexItems(): {
282
+ key: string;
283
+ visibleIndex: number;
284
+ label: string;
285
+ icon?: string;
286
+ disabled: boolean;
287
+ active: boolean;
288
+ }[];
289
+ protected toggleOverflowIndex(event: Event): void;
290
+ protected closeOverflowIndex(restoreFocus?: boolean): void;
291
+ protected onOverflowIndexFilterInput(event: Event): void;
292
+ protected onOverflowIndexSearchKeydown(event: KeyboardEvent): void;
293
+ protected selectTabFromOverflowIndex(visibleIndex: number): void;
294
+ protected onDocumentClickCloseOverflowIndex(event: Event): void;
295
+ protected onDocumentEscapeCloseOverflowIndex(event: Event): void;
239
296
  protected effectiveContentForm(): FormGroup;
240
297
  protected onVisibleTabIndexChange(index: number): void;
241
298
  /**
@@ -257,6 +314,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
257
314
  openEditor(): void;
258
315
  openAiAssistant(): void;
259
316
  openAiAssistantFromSession(session: PraxisAssistantSessionSnapshot): void;
317
+ minimizeAiAssistant(): void;
260
318
  closeAiAssistant(): void;
261
319
  onAiAssistantPromptChange(prompt: string): void;
262
320
  onAiAssistantSubmit(prompt: string): void;
@@ -271,6 +329,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
271
329
  private buildAiAssistantContextItems;
272
330
  private buildAiAssistantContextSnapshot;
273
331
  private syncAiAssistantSession;
332
+ private reconcileAiAssistantSessionIdentity;
274
333
  private hasAiAssistantSessionState;
275
334
  private resolveAiAssistantSessionId;
276
335
  private resolveAiAssistantOwnerId;
@@ -285,7 +344,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
285
344
  resetPreferences(): void;
286
345
  openQuickSetup(): void;
287
346
  private currentTabsBindings;
288
- t(key: string, fallback: string): string;
347
+ t(key: string, fallback: string, params?: PraxisTranslationParams): string;
289
348
  private applyTabsAuthoringPlan;
290
349
  private storageKey;
291
350
  private loadStoredConfigForCurrentIdentity;
@@ -293,7 +352,8 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
293
352
  private syncSelectionFromConfigChange;
294
353
  private pruneLoadedIndexes;
295
354
  private persistConfig;
296
- private usesInputFirstConfig;
355
+ protected isVolatilePersistence(): boolean;
356
+ protected usesInputFirstConfig(): boolean;
297
357
  private componentKeyId;
298
358
  private warnMissingId;
299
359
  private clampIndex;
@@ -326,14 +386,19 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
326
386
  private normalizeAssistantPrompt;
327
387
  protected tabEventPath(tabId: string | undefined, tabIndex: number): WidgetEventPathSegment[];
328
388
  protected linkEventPath(linkId: string | undefined, linkIndex: number): WidgetEventPathSegment[];
389
+ protected effectiveVariant(): TabsAppearanceVariant;
390
+ protected resolveTabLabelClass(tab: TabMetadata | undefined): string;
391
+ protected resolveLinkClass(link: TabLinkMetadata | undefined): string;
392
+ private buildTabClassList;
393
+ protected syncRuntimeStyleElement(): void;
329
394
  protected styleScopeId(): string;
330
395
  protected safeCustomCss(): string | null;
331
396
  private sanitizeCssValue;
332
397
  protected styleCss(): string | null;
333
398
  private cloneWidgetDefinition;
334
399
  private cloneTabsMetadata;
335
- static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTabs, never>;
336
- static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTabs, "praxis-tabs", never, { "config": { "alias": "config"; "required": false; }; "tabsId": { "alias": "tabsId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "form": { "alias": "form"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "animationDone": "animationDone"; "focusChange": "focusChange"; "selectedIndexChange": "selectedIndexChange"; "selectedTabChange": "selectedTabChange"; "indexFocused": "indexFocused"; "selectFocusedIndex": "selectFocusedIndex"; "configChange": "configChange"; "widgetEvent": "widgetEvent"; }, never, never, true, never>;
400
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisTabs, never>;
401
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisTabs, "praxis-tabs", never, { "config": { "alias": "config"; "required": false; }; "tabsId": { "alias": "tabsId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showOverflowIndex": { "alias": "showOverflowIndex"; "required": false; }; "form": { "alias": "form"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, { "animationDone": "animationDone"; "focusChange": "focusChange"; "selectedIndexChange": "selectedIndexChange"; "selectedTabChange": "selectedTabChange"; "indexFocused": "indexFocused"; "selectFocusedIndex": "selectFocusedIndex"; "configChange": "configChange"; "widgetEvent": "widgetEvent"; }, never, never, true, never>;
337
402
  }
338
403
 
339
404
  declare const PRAXIS_TABS_I18N_NAMESPACE = "praxisTabs";
@@ -459,6 +524,26 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
459
524
  readonly key: "background-color";
460
525
  readonly labelKey: "editor.tokens.headerBackground";
461
526
  readonly fallback: "Fundo do header";
527
+ }, {
528
+ readonly key: "track-background-color";
529
+ readonly labelKey: "editor.tokens.trackBackground";
530
+ readonly fallback: "Fundo da trilha (pill)";
531
+ }, {
532
+ readonly key: "track-border-color";
533
+ readonly labelKey: "editor.tokens.trackBorder";
534
+ readonly fallback: "Borda da trilha (pill)";
535
+ }, {
536
+ readonly key: "active-tab-background-color";
537
+ readonly labelKey: "editor.tokens.activeTabBackground";
538
+ readonly fallback: "Fundo da aba ativa (pill)";
539
+ }, {
540
+ readonly key: "active-tab-outline-color";
541
+ readonly labelKey: "editor.tokens.activeTabOutline";
542
+ readonly fallback: "Contorno/foco da aba (pill)";
543
+ }, {
544
+ readonly key: "pill-radius";
545
+ readonly labelKey: "editor.tokens.pillRadius";
546
+ readonly fallback: "Raio da borda (pill)";
462
547
  }];
463
548
  private presets;
464
549
  isDirty$: BehaviorSubject<boolean>;
@@ -481,7 +566,7 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
481
566
  onAppearanceChange(): void;
482
567
  onTokenChange(key: string, value: string): void;
483
568
  clearTokens(): void;
484
- applyPreset(id: 'primary' | 'neutral' | 'high-contrast'): void;
569
+ applyPreset(id: 'primary' | 'neutral' | 'high-contrast' | 'pill'): void;
485
570
  scssSnippet(): string;
486
571
  get group(): any;
487
572
  get nav(): any;
@@ -492,6 +577,7 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
492
577
  moveTab(index: number, delta: number): void;
493
578
  addWidgetToTab(tabIndex: number): void;
494
579
  removeWidgetFromTab(tabIndex: number, widgetIndex: number): void;
580
+ updateWidgetKeyTab(tabIndex: number, widgetIndex: number, key: string): void;
495
581
  updateWidgetInputsTab(tabIndex: number, widgetIndex: number, text: string): void;
496
582
  updateWidgetOutputsTab(tabIndex: number, widgetIndex: number, text: string): void;
497
583
  addPresetToTab(tabIndex: number, type: 'form' | 'table' | 'crud'): void;
@@ -500,15 +586,18 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
500
586
  moveLink(index: number, delta: number): void;
501
587
  addWidgetToLink(linkIndex: number): void;
502
588
  removeWidgetFromLink(linkIndex: number, widgetIndex: number): void;
589
+ updateWidgetKeyLink(linkIndex: number, widgetIndex: number, key: string): void;
503
590
  updateWidgetInputsLink(linkIndex: number, widgetIndex: number, text: string): void;
504
591
  updateWidgetOutputsLink(linkIndex: number, widgetIndex: number, text: string): void;
505
592
  addPresetToLink(linkIndex: number, type: 'form' | 'table' | 'crud'): void;
593
+ private nextChildWidgetKey;
594
+ private buildDefaultWidgetInputs;
506
595
  stringify(v: any): string;
507
596
  getCompName(id: string): string;
508
597
  onTabWidgetDrop(tabIndex: number, event: CdkDragDrop<WidgetDefinition[]>): void;
509
598
  onLinkWidgetDrop(linkIndex: number, event: CdkDragDrop<WidgetDefinition[]>): void;
510
- static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTabsConfigEditor, never>;
511
- static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTabsConfigEditor, "praxis-tabs-config-editor", never, { "document": { "alias": "document"; "required": false; }; }, {}, never, never, true, never>;
599
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisTabsConfigEditor, never>;
600
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisTabsConfigEditor, "praxis-tabs-config-editor", never, { "document": { "alias": "document"; "required": false; }; }, {}, never, never, true, never>;
512
601
  }
513
602
 
514
603
  interface PraxisTabsWidgetEditorInputs {
@@ -544,8 +633,8 @@ declare class PraxisTabsWidgetConfigEditor implements SettingsValueProvider$1, A
544
633
  reset(): void;
545
634
  private buildValue;
546
635
  private createDocument;
547
- static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTabsWidgetConfigEditor, never>;
548
- static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTabsWidgetConfigEditor, "praxis-tabs-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; }, {}, never, never, true, never>;
636
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisTabsWidgetConfigEditor, never>;
637
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisTabsWidgetConfigEditor, "praxis-tabs-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; }, {}, never, never, true, never>;
549
638
  }
550
639
 
551
640
  declare function createTabsAuthoringDocument(source: {
@@ -560,6 +649,7 @@ declare function buildTabsApplyPlan(doc: TabsAuthoringDocument, runtime?: TabsRu
560
649
  saveBindings?: boolean;
561
650
  }): TabsApplyPlan;
562
651
  declare function serializeTabsAuthoringDocument(doc: TabsAuthoringDocument): TabsAuthoringDocument;
652
+ declare function buildUniqueChildWidgetKey(containerId: string | undefined, widgetId: string | undefined, existingKeys: Iterable<string>): string;
563
653
 
564
654
  /**
565
655
  * Capabilities catalog for Praxis Tabs (TabsMetadata).
@@ -586,5 +676,5 @@ declare const TABS_AI_CAPABILITIES: CapabilityCatalog;
586
676
 
587
677
  declare const PRAXIS_TABS_AUTHORING_MANIFEST: ComponentAuthoringManifest;
588
678
 
589
- export { PRAXIS_TABS_AUTHORING_MANIFEST, PRAXIS_TABS_COMPONENT_METADATA, PRAXIS_TABS_I18N_CONFIG, PRAXIS_TABS_I18N_NAMESPACE, PraxisTabs, PraxisTabsConfigEditor, PraxisTabsWidgetConfigEditor, TABS_AI_CAPABILITIES, buildTabsApplyPlan, createPraxisTabsI18nConfig, createTabsAuthoringDocument, normalizeTabsAuthoringDocument, providePraxisTabsI18n, providePraxisTabsMetadata, serializeTabsAuthoringDocument, toCanonicalTabsConfig, validateTabsAuthoringDocument };
590
- export type { Capability, CapabilityCatalog, CapabilityCategory, PraxisTabsWidgetEditorInputs, PraxisTabsWidgetEditorValue, TabGroupMetadata, TabLinkMetadata, TabMetadata, TabNavMetadata, TabsAccessibilityConfig, TabsAppearanceConfig, TabsApplyPlan, TabsAuthoringBindings, TabsAuthoringDocument, TabsBehaviorConfig, TabsBindingsDiff, TabsConfigChangeEvent, TabsConfigPersistenceStrategy, TabsEditorDiagnostic, TabsEditorDiagnosticLevel, TabsEditorDocumentKind, TabsEventConfig, TabsMetadata, TabsRuntimeContext, TabsRuntimePlan, TabsStyleTokens, ValueKind };
679
+ export { PRAXIS_TABS_AUTHORING_MANIFEST, PRAXIS_TABS_COMPONENT_METADATA, PRAXIS_TABS_I18N_CONFIG, PRAXIS_TABS_I18N_NAMESPACE, PraxisTabs, PraxisTabsConfigEditor, PraxisTabsWidgetConfigEditor, TABS_AI_CAPABILITIES, buildTabsApplyPlan, buildUniqueChildWidgetKey, createPraxisTabsI18nConfig, createTabsAuthoringDocument, normalizeTabsAuthoringDocument, providePraxisTabsI18n, providePraxisTabsMetadata, serializeTabsAuthoringDocument, toCanonicalTabsConfig, validateTabsAuthoringDocument };
680
+ export type { Capability, CapabilityCatalog, CapabilityCategory, PraxisTabsWidgetEditorInputs, PraxisTabsWidgetEditorValue, TabGroupMetadata, TabItemTone, TabLinkMetadata, TabMetadata, TabNavMetadata, TabsAccessibilityConfig, TabsAppearanceConfig, TabsAppearanceVariant, TabsApplyPlan, TabsAuthoringBindings, TabsAuthoringDocument, TabsBehaviorConfig, TabsBindingsDiff, TabsConfigChangeEvent, TabsConfigPersistenceStrategy, TabsEditorDiagnostic, TabsEditorDiagnosticLevel, TabsEditorDocumentKind, TabsEventConfig, TabsMetadata, TabsRuntimeContext, TabsRuntimePlan, TabsStyleTokens, ValueKind };