@praxisui/tabs 10.0.0-rc.6 → 10.0.0-rc.61
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 +1115 -247
- 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 +57 -7
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.61",
|
|
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.61",
|
|
11
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.61",
|
|
12
|
+
"@praxisui/settings-panel": "^10.0.0-rc.61",
|
|
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.61",
|
|
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,5 +1,5 @@
|
|
|
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
4
|
import { AiCapability, WidgetDefinition, WidgetEventEnvelope, WidgetEventPathSegment, PraxisI18nConfig, ComponentDocMeta, ComponentMetadataRegistry, SettingsValueProvider as SettingsValueProvider$1, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
5
5
|
import { FormGroup } from '@angular/forms';
|
|
@@ -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,7 +188,10 @@ 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;
|
|
@@ -210,6 +225,7 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
210
225
|
private groupComponent?;
|
|
211
226
|
private navComponent?;
|
|
212
227
|
private readonly hostElement;
|
|
228
|
+
private readonly destroyRef;
|
|
213
229
|
private headerResizeObserver?;
|
|
214
230
|
private observedHeader?;
|
|
215
231
|
private headerResizeFrame?;
|
|
@@ -218,8 +234,11 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
218
234
|
private readonly destroy$;
|
|
219
235
|
private widgetDefinitionCache;
|
|
220
236
|
private readonly generatedContentForm;
|
|
237
|
+
private runtimeStyleEl?;
|
|
238
|
+
private lastRuntimeCss;
|
|
221
239
|
ngOnInit(): void;
|
|
222
240
|
ngOnChanges(changes: SimpleChanges): void;
|
|
241
|
+
ngDoCheck(): void;
|
|
223
242
|
ngOnDestroy(): void;
|
|
224
243
|
isNavMode(): boolean;
|
|
225
244
|
private observeHeaderResize;
|
|
@@ -293,7 +312,8 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
293
312
|
private syncSelectionFromConfigChange;
|
|
294
313
|
private pruneLoadedIndexes;
|
|
295
314
|
private persistConfig;
|
|
296
|
-
|
|
315
|
+
protected isVolatilePersistence(): boolean;
|
|
316
|
+
protected usesInputFirstConfig(): boolean;
|
|
297
317
|
private componentKeyId;
|
|
298
318
|
private warnMissingId;
|
|
299
319
|
private clampIndex;
|
|
@@ -326,6 +346,11 @@ declare class PraxisTabs implements OnInit, OnChanges, OnDestroy {
|
|
|
326
346
|
private normalizeAssistantPrompt;
|
|
327
347
|
protected tabEventPath(tabId: string | undefined, tabIndex: number): WidgetEventPathSegment[];
|
|
328
348
|
protected linkEventPath(linkId: string | undefined, linkIndex: number): WidgetEventPathSegment[];
|
|
349
|
+
protected effectiveVariant(): TabsAppearanceVariant;
|
|
350
|
+
protected resolveTabLabelClass(tab: TabMetadata | undefined): string;
|
|
351
|
+
protected resolveLinkClass(link: TabLinkMetadata | undefined): string;
|
|
352
|
+
private buildTabClassList;
|
|
353
|
+
protected syncRuntimeStyleElement(): void;
|
|
329
354
|
protected styleScopeId(): string;
|
|
330
355
|
protected safeCustomCss(): string | null;
|
|
331
356
|
private sanitizeCssValue;
|
|
@@ -459,6 +484,26 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
459
484
|
readonly key: "background-color";
|
|
460
485
|
readonly labelKey: "editor.tokens.headerBackground";
|
|
461
486
|
readonly fallback: "Fundo do header";
|
|
487
|
+
}, {
|
|
488
|
+
readonly key: "track-background-color";
|
|
489
|
+
readonly labelKey: "editor.tokens.trackBackground";
|
|
490
|
+
readonly fallback: "Fundo da trilha (pill)";
|
|
491
|
+
}, {
|
|
492
|
+
readonly key: "track-border-color";
|
|
493
|
+
readonly labelKey: "editor.tokens.trackBorder";
|
|
494
|
+
readonly fallback: "Borda da trilha (pill)";
|
|
495
|
+
}, {
|
|
496
|
+
readonly key: "active-tab-background-color";
|
|
497
|
+
readonly labelKey: "editor.tokens.activeTabBackground";
|
|
498
|
+
readonly fallback: "Fundo da aba ativa (pill)";
|
|
499
|
+
}, {
|
|
500
|
+
readonly key: "active-tab-outline-color";
|
|
501
|
+
readonly labelKey: "editor.tokens.activeTabOutline";
|
|
502
|
+
readonly fallback: "Contorno/foco da aba (pill)";
|
|
503
|
+
}, {
|
|
504
|
+
readonly key: "pill-radius";
|
|
505
|
+
readonly labelKey: "editor.tokens.pillRadius";
|
|
506
|
+
readonly fallback: "Raio da borda (pill)";
|
|
462
507
|
}];
|
|
463
508
|
private presets;
|
|
464
509
|
isDirty$: BehaviorSubject<boolean>;
|
|
@@ -481,7 +526,7 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
481
526
|
onAppearanceChange(): void;
|
|
482
527
|
onTokenChange(key: string, value: string): void;
|
|
483
528
|
clearTokens(): void;
|
|
484
|
-
applyPreset(id: 'primary' | 'neutral' | 'high-contrast'): void;
|
|
529
|
+
applyPreset(id: 'primary' | 'neutral' | 'high-contrast' | 'pill'): void;
|
|
485
530
|
scssSnippet(): string;
|
|
486
531
|
get group(): any;
|
|
487
532
|
get nav(): any;
|
|
@@ -492,6 +537,7 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
492
537
|
moveTab(index: number, delta: number): void;
|
|
493
538
|
addWidgetToTab(tabIndex: number): void;
|
|
494
539
|
removeWidgetFromTab(tabIndex: number, widgetIndex: number): void;
|
|
540
|
+
updateWidgetKeyTab(tabIndex: number, widgetIndex: number, key: string): void;
|
|
495
541
|
updateWidgetInputsTab(tabIndex: number, widgetIndex: number, text: string): void;
|
|
496
542
|
updateWidgetOutputsTab(tabIndex: number, widgetIndex: number, text: string): void;
|
|
497
543
|
addPresetToTab(tabIndex: number, type: 'form' | 'table' | 'crud'): void;
|
|
@@ -500,9 +546,12 @@ declare class PraxisTabsConfigEditor implements SettingsValueProvider {
|
|
|
500
546
|
moveLink(index: number, delta: number): void;
|
|
501
547
|
addWidgetToLink(linkIndex: number): void;
|
|
502
548
|
removeWidgetFromLink(linkIndex: number, widgetIndex: number): void;
|
|
549
|
+
updateWidgetKeyLink(linkIndex: number, widgetIndex: number, key: string): void;
|
|
503
550
|
updateWidgetInputsLink(linkIndex: number, widgetIndex: number, text: string): void;
|
|
504
551
|
updateWidgetOutputsLink(linkIndex: number, widgetIndex: number, text: string): void;
|
|
505
552
|
addPresetToLink(linkIndex: number, type: 'form' | 'table' | 'crud'): void;
|
|
553
|
+
private nextChildWidgetKey;
|
|
554
|
+
private buildDefaultWidgetInputs;
|
|
506
555
|
stringify(v: any): string;
|
|
507
556
|
getCompName(id: string): string;
|
|
508
557
|
onTabWidgetDrop(tabIndex: number, event: CdkDragDrop<WidgetDefinition[]>): void;
|
|
@@ -560,6 +609,7 @@ declare function buildTabsApplyPlan(doc: TabsAuthoringDocument, runtime?: TabsRu
|
|
|
560
609
|
saveBindings?: boolean;
|
|
561
610
|
}): TabsApplyPlan;
|
|
562
611
|
declare function serializeTabsAuthoringDocument(doc: TabsAuthoringDocument): TabsAuthoringDocument;
|
|
612
|
+
declare function buildUniqueChildWidgetKey(containerId: string | undefined, widgetId: string | undefined, existingKeys: Iterable<string>): string;
|
|
563
613
|
|
|
564
614
|
/**
|
|
565
615
|
* Capabilities catalog for Praxis Tabs (TabsMetadata).
|
|
@@ -586,5 +636,5 @@ declare const TABS_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
586
636
|
|
|
587
637
|
declare const PRAXIS_TABS_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
588
638
|
|
|
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 };
|
|
639
|
+
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 };
|
|
640
|
+
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 };
|