@praxisui/tabs 10.0.0-rc.7 → 10.0.0-rc.71
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/README.md +6 -1
- package/ai/component-registry.json +604 -55
- package/fesm2022/praxisui-tabs.mjs +1399 -250
- package/package.json +5 -5
- package/src/lib/praxis-tabs-config-editor.json-api.md +12 -1
- package/src/lib/praxis-tabs.json-api.md +26 -1
- package/types/praxisui-tabs.d.ts +87 -10
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/tabs",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.71",
|
|
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.
|
|
11
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/core": "^10.0.0-rc.71",
|
|
11
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.71",
|
|
12
|
+
"@praxisui/settings-panel": "^10.0.0-rc.71",
|
|
13
13
|
"@angular/forms": "^21.0.0",
|
|
14
14
|
"@angular/router": "^21.0.0",
|
|
15
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
15
|
+
"@praxisui/ai": "^10.0.0-rc.71",
|
|
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 |
|
package/types/praxisui-tabs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, Provider, AfterViewInit } 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, 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;
|
|
@@ -176,13 +188,17 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
176
188
|
private readonly route;
|
|
177
189
|
private readonly aiAssistantSessionEffect;
|
|
178
190
|
private warnedMissingId;
|
|
191
|
+
private storageInitialized;
|
|
179
192
|
private loadedStorageKey;
|
|
193
|
+
private storageLoad?;
|
|
194
|
+
private hostInputBaselineConfig?;
|
|
180
195
|
config: TabsMetadata | null;
|
|
181
196
|
tabsId: string;
|
|
182
197
|
componentInstanceId?: string;
|
|
183
198
|
configPersistenceStrategy: TabsConfigPersistenceStrategy;
|
|
184
199
|
set selectedIndex(index: number | null | undefined);
|
|
185
200
|
enableCustomization: boolean;
|
|
201
|
+
showOverflowIndex: boolean | 'auto';
|
|
186
202
|
form: FormGroup | null;
|
|
187
203
|
context: Record<string, any> | null;
|
|
188
204
|
animationDone: EventEmitter<void>;
|
|
@@ -203,6 +219,8 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
203
219
|
private aiAssistantStateSubscription;
|
|
204
220
|
protected currentNavIndex: i0.WritableSignal<number>;
|
|
205
221
|
protected selectedIndexSignal: i0.WritableSignal<number>;
|
|
222
|
+
protected overflowIndexOpen: i0.WritableSignal<boolean>;
|
|
223
|
+
protected overflowIndexFilter: i0.WritableSignal<string>;
|
|
206
224
|
private groupLoaded;
|
|
207
225
|
private navLoaded;
|
|
208
226
|
private controlledSelectedIndex?;
|
|
@@ -210,6 +228,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
210
228
|
private groupComponent?;
|
|
211
229
|
private navComponent?;
|
|
212
230
|
private readonly hostElement;
|
|
231
|
+
private readonly destroyRef;
|
|
213
232
|
private headerResizeObserver?;
|
|
214
233
|
private observedHeader?;
|
|
215
234
|
private headerResizeFrame?;
|
|
@@ -218,8 +237,11 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
218
237
|
private readonly destroy$;
|
|
219
238
|
private widgetDefinitionCache;
|
|
220
239
|
private readonly generatedContentForm;
|
|
240
|
+
private runtimeStyleEl?;
|
|
241
|
+
private lastRuntimeCss;
|
|
221
242
|
ngOnInit(): void;
|
|
222
243
|
ngOnChanges(changes: SimpleChanges): void;
|
|
244
|
+
ngDoCheck(): void;
|
|
223
245
|
ngOnDestroy(): void;
|
|
224
246
|
isNavMode(): boolean;
|
|
225
247
|
private observeHeaderResize;
|
|
@@ -236,6 +258,30 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
236
258
|
}>;
|
|
237
259
|
protected selectedVisibleNavIndex(): number;
|
|
238
260
|
protected selectedVisibleTabIndex(): number;
|
|
261
|
+
protected shouldShowOverflowIndex(): boolean;
|
|
262
|
+
protected overflowIndexItems(): Array<{
|
|
263
|
+
key: string;
|
|
264
|
+
visibleIndex: number;
|
|
265
|
+
label: string;
|
|
266
|
+
icon?: string;
|
|
267
|
+
disabled: boolean;
|
|
268
|
+
active: boolean;
|
|
269
|
+
}>;
|
|
270
|
+
protected filteredOverflowIndexItems(): {
|
|
271
|
+
key: string;
|
|
272
|
+
visibleIndex: number;
|
|
273
|
+
label: string;
|
|
274
|
+
icon?: string;
|
|
275
|
+
disabled: boolean;
|
|
276
|
+
active: boolean;
|
|
277
|
+
}[];
|
|
278
|
+
protected toggleOverflowIndex(event: Event): void;
|
|
279
|
+
protected closeOverflowIndex(restoreFocus?: boolean): void;
|
|
280
|
+
protected onOverflowIndexFilterInput(event: Event): void;
|
|
281
|
+
protected onOverflowIndexSearchKeydown(event: KeyboardEvent): void;
|
|
282
|
+
protected selectTabFromOverflowIndex(visibleIndex: number): void;
|
|
283
|
+
protected onDocumentClickCloseOverflowIndex(event: Event): void;
|
|
284
|
+
protected onDocumentEscapeCloseOverflowIndex(event: Event): void;
|
|
239
285
|
protected effectiveContentForm(): FormGroup;
|
|
240
286
|
protected onVisibleTabIndexChange(index: number): void;
|
|
241
287
|
/**
|
|
@@ -285,7 +331,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
285
331
|
resetPreferences(): void;
|
|
286
332
|
openQuickSetup(): void;
|
|
287
333
|
private currentTabsBindings;
|
|
288
|
-
t(key: string, fallback: string): string;
|
|
334
|
+
t(key: string, fallback: string, params?: PraxisTranslationParams): string;
|
|
289
335
|
private applyTabsAuthoringPlan;
|
|
290
336
|
private storageKey;
|
|
291
337
|
private loadStoredConfigForCurrentIdentity;
|
|
@@ -293,7 +339,8 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
293
339
|
private syncSelectionFromConfigChange;
|
|
294
340
|
private pruneLoadedIndexes;
|
|
295
341
|
private persistConfig;
|
|
296
|
-
|
|
342
|
+
protected isVolatilePersistence(): boolean;
|
|
343
|
+
protected usesInputFirstConfig(): boolean;
|
|
297
344
|
private componentKeyId;
|
|
298
345
|
private warnMissingId;
|
|
299
346
|
private clampIndex;
|
|
@@ -326,6 +373,11 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
326
373
|
private normalizeAssistantPrompt;
|
|
327
374
|
protected tabEventPath(tabId: string | undefined, tabIndex: number): WidgetEventPathSegment[];
|
|
328
375
|
protected linkEventPath(linkId: string | undefined, linkIndex: number): WidgetEventPathSegment[];
|
|
376
|
+
protected effectiveVariant(): TabsAppearanceVariant;
|
|
377
|
+
protected resolveTabLabelClass(tab: TabMetadata | undefined): string;
|
|
378
|
+
protected resolveLinkClass(link: TabLinkMetadata | undefined): string;
|
|
379
|
+
private buildTabClassList;
|
|
380
|
+
protected syncRuntimeStyleElement(): void;
|
|
329
381
|
protected styleScopeId(): string;
|
|
330
382
|
protected safeCustomCss(): string | null;
|
|
331
383
|
private sanitizeCssValue;
|
|
@@ -333,7 +385,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
333
385
|
private cloneWidgetDefinition;
|
|
334
386
|
private cloneTabsMetadata;
|
|
335
387
|
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>;
|
|
388
|
+
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; }; "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
389
|
}
|
|
338
390
|
|
|
339
391
|
declare const PRAXIS_TABS_I18N_NAMESPACE = "praxisTabs";
|
|
@@ -459,6 +511,26 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
459
511
|
readonly key: "background-color";
|
|
460
512
|
readonly labelKey: "editor.tokens.headerBackground";
|
|
461
513
|
readonly fallback: "Fundo do header";
|
|
514
|
+
}, {
|
|
515
|
+
readonly key: "track-background-color";
|
|
516
|
+
readonly labelKey: "editor.tokens.trackBackground";
|
|
517
|
+
readonly fallback: "Fundo da trilha (pill)";
|
|
518
|
+
}, {
|
|
519
|
+
readonly key: "track-border-color";
|
|
520
|
+
readonly labelKey: "editor.tokens.trackBorder";
|
|
521
|
+
readonly fallback: "Borda da trilha (pill)";
|
|
522
|
+
}, {
|
|
523
|
+
readonly key: "active-tab-background-color";
|
|
524
|
+
readonly labelKey: "editor.tokens.activeTabBackground";
|
|
525
|
+
readonly fallback: "Fundo da aba ativa (pill)";
|
|
526
|
+
}, {
|
|
527
|
+
readonly key: "active-tab-outline-color";
|
|
528
|
+
readonly labelKey: "editor.tokens.activeTabOutline";
|
|
529
|
+
readonly fallback: "Contorno/foco da aba (pill)";
|
|
530
|
+
}, {
|
|
531
|
+
readonly key: "pill-radius";
|
|
532
|
+
readonly labelKey: "editor.tokens.pillRadius";
|
|
533
|
+
readonly fallback: "Raio da borda (pill)";
|
|
462
534
|
}];
|
|
463
535
|
private presets;
|
|
464
536
|
isDirty$: BehaviorSubject<boolean>;
|
|
@@ -481,7 +553,7 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
481
553
|
onAppearanceChange(): void;
|
|
482
554
|
onTokenChange(key: string, value: string): void;
|
|
483
555
|
clearTokens(): void;
|
|
484
|
-
applyPreset(id: 'primary' | 'neutral' | 'high-contrast'): void;
|
|
556
|
+
applyPreset(id: 'primary' | 'neutral' | 'high-contrast' | 'pill'): void;
|
|
485
557
|
scssSnippet(): string;
|
|
486
558
|
get group(): any;
|
|
487
559
|
get nav(): any;
|
|
@@ -492,6 +564,7 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
492
564
|
moveTab(index: number, delta: number): void;
|
|
493
565
|
addWidgetToTab(tabIndex: number): void;
|
|
494
566
|
removeWidgetFromTab(tabIndex: number, widgetIndex: number): void;
|
|
567
|
+
updateWidgetKeyTab(tabIndex: number, widgetIndex: number, key: string): void;
|
|
495
568
|
updateWidgetInputsTab(tabIndex: number, widgetIndex: number, text: string): void;
|
|
496
569
|
updateWidgetOutputsTab(tabIndex: number, widgetIndex: number, text: string): void;
|
|
497
570
|
addPresetToTab(tabIndex: number, type: 'form' | 'table' | 'crud'): void;
|
|
@@ -500,9 +573,12 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
500
573
|
moveLink(index: number, delta: number): void;
|
|
501
574
|
addWidgetToLink(linkIndex: number): void;
|
|
502
575
|
removeWidgetFromLink(linkIndex: number, widgetIndex: number): void;
|
|
576
|
+
updateWidgetKeyLink(linkIndex: number, widgetIndex: number, key: string): void;
|
|
503
577
|
updateWidgetInputsLink(linkIndex: number, widgetIndex: number, text: string): void;
|
|
504
578
|
updateWidgetOutputsLink(linkIndex: number, widgetIndex: number, text: string): void;
|
|
505
579
|
addPresetToLink(linkIndex: number, type: 'form' | 'table' | 'crud'): void;
|
|
580
|
+
private nextChildWidgetKey;
|
|
581
|
+
private buildDefaultWidgetInputs;
|
|
506
582
|
stringify(v: any): string;
|
|
507
583
|
getCompName(id: string): string;
|
|
508
584
|
onTabWidgetDrop(tabIndex: number, event: CdkDragDrop<WidgetDefinition[]>): void;
|
|
@@ -560,6 +636,7 @@ declare function buildTabsApplyPlan(doc: TabsAuthoringDocument, runtime?: TabsRu
|
|
|
560
636
|
saveBindings?: boolean;
|
|
561
637
|
}): TabsApplyPlan;
|
|
562
638
|
declare function serializeTabsAuthoringDocument(doc: TabsAuthoringDocument): TabsAuthoringDocument;
|
|
639
|
+
declare function buildUniqueChildWidgetKey(containerId: string | undefined, widgetId: string | undefined, existingKeys: Iterable<string>): string;
|
|
563
640
|
|
|
564
641
|
/**
|
|
565
642
|
* Capabilities catalog for Praxis Tabs (TabsMetadata).
|
|
@@ -586,5 +663,5 @@ declare const TABS_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
586
663
|
|
|
587
664
|
declare const PRAXIS_TABS_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
588
665
|
|
|
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 };
|
|
666
|
+
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 };
|
|
667
|
+
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 };
|