@praxisui/tabs 10.0.0-rc.6 → 10.0.0-rc.60

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.
@@ -7,11 +7,11 @@ import * as i3 from '@angular/material/tabs';
7
7
  import { MatTabsModule, MatTabGroup, MatTabNav } from '@angular/material/tabs';
8
8
  import * as i4$1 from '@angular/material/icon';
9
9
  import { MatIconModule } from '@angular/material/icon';
10
- import * as i10 from '@angular/material/tooltip';
10
+ import * as i11 from '@angular/material/tooltip';
11
11
  import { MatTooltipModule } from '@angular/material/tooltip';
12
12
  import * as i1 from '@praxisui/core';
13
13
  import { providePraxisI18n, PraxisI18nService, PraxisIconDirective, PraxisIconButtonComponent, providePraxisI18nConfig, deepMerge, ASYNC_CONFIG_STORAGE, ComponentKeyService, LoggerService, EmptyStateCardComponent, DynamicWidgetLoaderDirective, ComponentMetadataRegistry } from '@praxisui/core';
14
- import * as i6 from '@angular/material/button';
14
+ import * as i6$1 from '@angular/material/button';
15
15
  import { MatButtonModule } from '@angular/material/button';
16
16
  import * as i2_1 from '@angular/forms';
17
17
  import { FormsModule, FormGroup, FormControl, ReactiveFormsModule } from '@angular/forms';
@@ -21,9 +21,11 @@ import * as i4 from '@angular/material/form-field';
21
21
  import { MatFormFieldModule } from '@angular/material/form-field';
22
22
  import * as i5 from '@angular/material/input';
23
23
  import { MatInputModule } from '@angular/material/input';
24
- import * as i8 from '@angular/material/slide-toggle';
24
+ import * as i6 from '@angular/material/select';
25
+ import { MatSelectModule } from '@angular/material/select';
26
+ import * as i9 from '@angular/material/slide-toggle';
25
27
  import { MatSlideToggleModule } from '@angular/material/slide-toggle';
26
- import * as i9 from '@angular/cdk/drag-drop';
28
+ import * as i10 from '@angular/cdk/drag-drop';
27
29
  import { moveItemInArray, DragDropModule } from '@angular/cdk/drag-drop';
28
30
  import { BehaviorSubject, firstValueFrom, Subject, Subscription } from 'rxjs';
29
31
  import { produce } from 'immer';
@@ -53,8 +55,11 @@ function validateTabsAuthoringDocument(doc, _context) {
53
55
  const normalized = normalizeTabsAuthoringDocument(doc);
54
56
  const diagnostics = [];
55
57
  validateModeAmbiguity(normalized.config, diagnostics);
58
+ validateAppearanceVariant(normalized.config, diagnostics);
59
+ validateItemTones(normalized.config, diagnostics);
56
60
  validateDuplicateTabIds(normalized.config, diagnostics);
57
61
  validateDuplicateLinkIds(normalized.config, diagnostics);
62
+ validateDuplicateChildWidgetKeys(normalized.config, diagnostics);
58
63
  validateUnsupportedGuidedFields(normalized.config, diagnostics);
59
64
  return diagnostics;
60
65
  }
@@ -86,11 +91,28 @@ function buildTabsApplyPlan(doc, runtime, options) {
86
91
  function serializeTabsAuthoringDocument(doc) {
87
92
  return normalizeTabsAuthoringDocument(doc);
88
93
  }
94
+ function buildUniqueChildWidgetKey(containerId, widgetId, existingKeys) {
95
+ const used = new Set(Array.from(existingKeys)
96
+ .map((key) => key.trim())
97
+ .filter(Boolean));
98
+ const ownerSlug = slugifyIdentifier(containerId) || 'item';
99
+ const widgetSlug = slugifyIdentifier((widgetId || 'widget').replace(/^praxis-/i, '')) || 'widget';
100
+ const base = `${ownerSlug}-${widgetSlug}`;
101
+ let candidate = base;
102
+ let suffix = 2;
103
+ while (used.has(candidate)) {
104
+ candidate = `${base}-${suffix++}`;
105
+ }
106
+ return candidate;
107
+ }
89
108
  function normalizeTabsConfig(config) {
90
109
  const next = cloneJson(config ?? {});
91
110
  if (!Array.isArray(next.tabs) || next.tabs.length === 0) {
92
111
  delete next.tabs;
93
112
  }
113
+ else {
114
+ next.tabs = next.tabs.map((tab, index) => normalizeContainerWidgets(tab, `tab${index + 1}`));
115
+ }
94
116
  if (!next.nav || typeof next.nav !== 'object') {
95
117
  delete next.nav;
96
118
  }
@@ -104,8 +126,8 @@ function normalizeTabsConfig(config) {
104
126
  next.nav.selectedIndex = clampIndex(next.nav.selectedIndex, next.nav.links?.length ?? 0);
105
127
  }
106
128
  if (Array.isArray(next.nav?.links)) {
107
- next.nav.links = next.nav.links.map((link) => {
108
- const copy = { ...link };
129
+ next.nav.links = next.nav.links.map((link, index) => {
130
+ const copy = normalizeContainerWidgets({ ...link }, `link${index + 1}`);
109
131
  delete copy.active;
110
132
  return copy;
111
133
  });
@@ -166,6 +188,95 @@ function validateDuplicateLinkIds(config, diagnostics) {
166
188
  seen.add(id);
167
189
  });
168
190
  }
191
+ function validateDuplicateChildWidgetKeys(config, diagnostics) {
192
+ (config.tabs ?? []).forEach((tab, tabIndex) => {
193
+ const seen = new Set();
194
+ (tab.widgets ?? []).forEach((widget, widgetIndex) => {
195
+ const key = normalizeId(widget?.childWidgetKey);
196
+ if (!key)
197
+ return;
198
+ if (seen.has(key)) {
199
+ diagnostics.push(errorDiagnostic('tabs.config.widgets.childWidgetKey.duplicate', 'Duplicate childWidgetKey detected within the same tab.', `config.tabs[${tabIndex}].widgets[${widgetIndex}].childWidgetKey`));
200
+ return;
201
+ }
202
+ seen.add(key);
203
+ });
204
+ });
205
+ (config.nav?.links ?? []).forEach((link, linkIndex) => {
206
+ const seen = new Set();
207
+ (link.widgets ?? []).forEach((widget, widgetIndex) => {
208
+ const key = normalizeId(widget?.childWidgetKey);
209
+ if (!key)
210
+ return;
211
+ if (seen.has(key)) {
212
+ diagnostics.push(errorDiagnostic('tabs.config.widgets.childWidgetKey.duplicate', 'Duplicate childWidgetKey detected within the same nav link.', `config.nav.links[${linkIndex}].widgets[${widgetIndex}].childWidgetKey`));
213
+ return;
214
+ }
215
+ seen.add(key);
216
+ });
217
+ });
218
+ }
219
+ function normalizeContainerWidgets(container, fallbackContainerId) {
220
+ if (!container || typeof container !== 'object' || !Array.isArray(container.widgets)) {
221
+ return container;
222
+ }
223
+ const usedKeys = new Set();
224
+ for (const widget of container.widgets) {
225
+ const explicitKey = normalizeId(widget?.childWidgetKey);
226
+ if (explicitKey) {
227
+ usedKeys.add(explicitKey);
228
+ }
229
+ }
230
+ return {
231
+ ...container,
232
+ widgets: container.widgets.map((widget) => {
233
+ if (!widget || typeof widget !== 'object') {
234
+ return widget;
235
+ }
236
+ const explicitKey = normalizeId(widget.childWidgetKey);
237
+ if (explicitKey) {
238
+ return {
239
+ ...widget,
240
+ childWidgetKey: explicitKey,
241
+ };
242
+ }
243
+ const generatedKey = buildUniqueChildWidgetKey(container.id || fallbackContainerId, widget.id, usedKeys);
244
+ usedKeys.add(generatedKey);
245
+ return {
246
+ ...widget,
247
+ childWidgetKey: generatedKey,
248
+ };
249
+ }),
250
+ };
251
+ }
252
+ function slugifyIdentifier(value) {
253
+ return String(value ?? '')
254
+ .trim()
255
+ .toLowerCase()
256
+ .replace(/[^a-z0-9]+/g, '-')
257
+ .replace(/^-|-$/g, '');
258
+ }
259
+ function validateAppearanceVariant(config, diagnostics) {
260
+ const variant = config.appearance?.variant;
261
+ if (variant === undefined)
262
+ return;
263
+ if (variant !== 'underline' && variant !== 'pill' && variant !== 'segmented') {
264
+ diagnostics.push(errorDiagnostic('tabs.config.appearance.variant.invalid', 'appearance.variant must be one of "underline", "pill", or "segmented".', 'config.appearance.variant'));
265
+ }
266
+ }
267
+ function validateItemTones(config, diagnostics) {
268
+ const validTones = new Set(['default', 'primary', 'accent', 'outlined']);
269
+ (config.tabs ?? []).forEach((tab, index) => {
270
+ if (tab?.tone !== undefined && !validTones.has(tab.tone)) {
271
+ diagnostics.push(errorDiagnostic('tabs.config.item.tone.invalid', `tabs[${index}].tone must be one of "default", "primary", "accent", or "outlined".`, `config.tabs[${index}].tone`));
272
+ }
273
+ });
274
+ (config.nav?.links ?? []).forEach((link, index) => {
275
+ if (link?.tone !== undefined && !validTones.has(link.tone)) {
276
+ diagnostics.push(errorDiagnostic('tabs.config.item.tone.invalid', `nav.links[${index}].tone must be one of "default", "primary", "accent", or "outlined".`, `config.nav.links[${index}].tone`));
277
+ }
278
+ });
279
+ }
169
280
  function validateUnsupportedGuidedFields(config, diagnostics) {
170
281
  if (config.group?.contentTabIndex !== undefined) {
171
282
  diagnostics.push(infoDiagnostic('tabs.config.group.contentTabIndex.unsupported', 'group.contentTabIndex is outside the supported authoring surface.', 'config.group.contentTabIndex'));
@@ -293,7 +404,9 @@ const PRAXIS_TABS_PT_BR = {
293
404
  'editor.fields.ariaLabelledby': 'aria-labelledby',
294
405
  'editor.fields.jsonConfig': 'Configuração JSON',
295
406
  'editor.fields.themeClass': 'Classe de tema (opcional)',
407
+ 'editor.fields.variant': 'Variante visual',
296
408
  'editor.fields.density': 'Densidade',
409
+ 'editor.fields.tone': 'Tom do item',
297
410
  'editor.fields.customCss': 'CSS a ser injetado no componente',
298
411
  'editor.fields.addLabel': 'Adicionar rótulo',
299
412
  'editor.fields.inputsJson': 'Inputs (JSON)',
@@ -330,6 +443,14 @@ const PRAXIS_TABS_PT_BR = {
330
443
  'editor.presets.primary': 'Primário',
331
444
  'editor.presets.neutral': 'Neutro',
332
445
  'editor.presets.highContrast': 'Alto contraste',
446
+ 'editor.presets.pill': 'Pill (cápsula)',
447
+ 'editor.variant.underline': 'Sublinhado (Underline)',
448
+ 'editor.variant.pill': 'Cápsula (Pill)',
449
+ 'editor.variant.segmented': 'Segmentado (Segmented)',
450
+ 'editor.tone.default': 'Padrão',
451
+ 'editor.tone.primary': 'Primário',
452
+ 'editor.tone.accent': 'Destaque (Accent)',
453
+ 'editor.tone.outlined': 'Contorno ativo (Outlined)',
333
454
  'editor.density.default': 'Padrão',
334
455
  'editor.density.compact': 'Compacta',
335
456
  'editor.density.comfortable': 'Confortável',
@@ -362,6 +483,11 @@ const PRAXIS_TABS_PT_BR = {
362
483
  'editor.tokens.paginationIcon': 'Ícones de paginação',
363
484
  'editor.tokens.divider': 'Divisor/linha',
364
485
  'editor.tokens.headerBackground': 'Fundo do cabeçalho (header)',
486
+ 'editor.tokens.trackBackground': 'Fundo da trilha (pill)',
487
+ 'editor.tokens.trackBorder': 'Borda da trilha (pill)',
488
+ 'editor.tokens.activeTabBackground': 'Fundo da aba ativa (pill)',
489
+ 'editor.tokens.activeTabOutline': 'Contorno/foco da aba (pill)',
490
+ 'editor.tokens.pillRadius': 'Raio da borda (pill)',
365
491
  'editor.toggles.closeable': 'Fechável',
366
492
  'editor.toggles.lazyLoad': 'Carregar sob demanda',
367
493
  'editor.toggles.reorderable': 'Reordenável',
@@ -445,7 +571,9 @@ const PRAXIS_TABS_EN_US = {
445
571
  'editor.fields.ariaLabelledby': 'aria-labelledby',
446
572
  'editor.fields.jsonConfig': 'JSON configuration',
447
573
  'editor.fields.themeClass': 'Theme class (optional)',
574
+ 'editor.fields.variant': 'Visual variant',
448
575
  'editor.fields.density': 'Density',
576
+ 'editor.fields.tone': 'Item tone',
449
577
  'editor.fields.customCss': 'CSS injected into the component',
450
578
  'editor.fields.addLabel': 'Add label',
451
579
  'editor.fields.inputsJson': 'Inputs (JSON)',
@@ -482,6 +610,14 @@ const PRAXIS_TABS_EN_US = {
482
610
  'editor.presets.primary': 'Primary',
483
611
  'editor.presets.neutral': 'Neutral',
484
612
  'editor.presets.highContrast': 'High contrast',
613
+ 'editor.presets.pill': 'Pill (capsule)',
614
+ 'editor.variant.underline': 'Underline',
615
+ 'editor.variant.pill': 'Pill (capsule)',
616
+ 'editor.variant.segmented': 'Segmented',
617
+ 'editor.tone.default': 'Default',
618
+ 'editor.tone.primary': 'Primary',
619
+ 'editor.tone.accent': 'Accent',
620
+ 'editor.tone.outlined': 'Outlined',
485
621
  'editor.density.default': 'Default',
486
622
  'editor.density.compact': 'Compact',
487
623
  'editor.density.comfortable': 'Comfortable',
@@ -514,6 +650,11 @@ const PRAXIS_TABS_EN_US = {
514
650
  'editor.tokens.paginationIcon': 'Pagination icons',
515
651
  'editor.tokens.divider': 'Divider',
516
652
  'editor.tokens.headerBackground': 'Header background',
653
+ 'editor.tokens.trackBackground': 'Track background (pill)',
654
+ 'editor.tokens.trackBorder': 'Track border (pill)',
655
+ 'editor.tokens.activeTabBackground': 'Active tab background (pill)',
656
+ 'editor.tokens.activeTabOutline': 'Tab outline/focus ring (pill)',
657
+ 'editor.tokens.pillRadius': 'Pill border radius',
517
658
  'editor.toggles.closeable': 'Closeable',
518
659
  'editor.toggles.lazyLoad': 'Lazy load',
519
660
  'editor.toggles.reorderable': 'Reorderable',
@@ -607,6 +748,11 @@ class PraxisTabsConfigEditor {
607
748
  { key: 'pagination-icon-color', labelKey: 'editor.tokens.paginationIcon', fallback: 'Icones de paginacao' },
608
749
  { key: 'divider-color', labelKey: 'editor.tokens.divider', fallback: 'Divisor/linha' },
609
750
  { key: 'background-color', labelKey: 'editor.tokens.headerBackground', fallback: 'Fundo do header' },
751
+ { key: 'track-background-color', labelKey: 'editor.tokens.trackBackground', fallback: 'Fundo da trilha (pill)' },
752
+ { key: 'track-border-color', labelKey: 'editor.tokens.trackBorder', fallback: 'Borda da trilha (pill)' },
753
+ { key: 'active-tab-background-color', labelKey: 'editor.tokens.activeTabBackground', fallback: 'Fundo da aba ativa (pill)' },
754
+ { key: 'active-tab-outline-color', labelKey: 'editor.tokens.activeTabOutline', fallback: 'Contorno/foco da aba (pill)' },
755
+ { key: 'pill-radius', labelKey: 'editor.tokens.pillRadius', fallback: 'Raio da borda (pill)' },
610
756
  ];
611
757
  presets = {
612
758
  primary: {
@@ -635,6 +781,15 @@ class PraxisTabsConfigEditor {
635
781
  'divider-color': 'var(--md-sys-color-outline)',
636
782
  'background-color': 'var(--md-sys-color-surface)',
637
783
  'pagination-icon-color': 'var(--md-sys-color-on-surface)'
784
+ },
785
+ pill: {
786
+ 'track-background-color': '#18191b',
787
+ 'track-border-color': '#2c2e33',
788
+ 'active-tab-background-color': '#28292c',
789
+ 'active-tab-outline-color': '#8ab4f8',
790
+ 'active-label-text-color': '#f1f3f4',
791
+ 'inactive-label-text-color': '#9aa0a6',
792
+ 'pill-radius': '9999px',
638
793
  }
639
794
  };
640
795
  isDirty$ = new BehaviorSubject(false);
@@ -777,6 +932,9 @@ class PraxisTabsConfigEditor {
777
932
  if (!preset)
778
933
  return;
779
934
  const ap = this.appearance;
935
+ if (id === 'pill') {
936
+ ap.variant = 'pill';
937
+ }
780
938
  const tokens = (ap.tokens = ap.tokens || {});
781
939
  for (const [k, v] of Object.entries(preset)) {
782
940
  tokens[k] = v;
@@ -789,8 +947,36 @@ class PraxisTabsConfigEditor {
789
947
  const selector = this.editedConfig.appearance?.themeClass
790
948
  ? `.${this.editedConfig.appearance.themeClass}`
791
949
  : ':root';
792
- const map = entries.map(([k, v]) => ` ${k}: ${v},`).join('\n');
793
- return `${selector} {\n @include mat.tabs-overrides((\n${map}\n ));\n}`;
950
+ const pillTokenMap = {
951
+ 'track-background-color': '--p-tabs-track-bg',
952
+ 'track-border-color': '--p-tabs-track-border',
953
+ 'active-tab-background-color': '--p-tabs-active-bg',
954
+ 'active-tab-outline-color': '--p-tabs-active-outline',
955
+ 'pill-radius': '--p-tabs-pill-radius',
956
+ };
957
+ const matEntries = [];
958
+ const pillVars = [];
959
+ for (const [key, value] of entries) {
960
+ if (!value) {
961
+ continue;
962
+ }
963
+ const cssVar = pillTokenMap[key];
964
+ if (cssVar) {
965
+ pillVars.push([cssVar, value]);
966
+ }
967
+ else {
968
+ matEntries.push([key, value]);
969
+ }
970
+ }
971
+ const blocks = [];
972
+ if (matEntries.length > 0 || entries.length === 0) {
973
+ const map = matEntries.map(([k, v]) => ` ${k}: ${v},`).join('\n');
974
+ blocks.push(` @include mat.tabs-overrides((\n${map}\n ));`);
975
+ }
976
+ for (const [cssVar, value] of pillVars) {
977
+ blocks.push(` ${cssVar}: ${value};`);
978
+ }
979
+ return `${selector} {\n${blocks.join('\n')}\n}`;
794
980
  }
795
981
  // Group/Nav helpers and list editors
796
982
  get group() {
@@ -849,7 +1035,14 @@ class PraxisTabsConfigEditor {
849
1035
  return;
850
1036
  const t = this.editedConfig.tabs[tabIndex];
851
1037
  t.widgets = t.widgets || [];
852
- t.widgets.push({ id });
1038
+ const childWidgetKey = this.nextChildWidgetKey(t.id || `tab${tabIndex + 1}`, id, t.widgets);
1039
+ const rp = (this.quickResourcePathTab[tabIndex] || '').trim();
1040
+ const defaultInputs = this.buildDefaultWidgetInputs(id, rp);
1041
+ t.widgets.push({
1042
+ id,
1043
+ childWidgetKey,
1044
+ ...(defaultInputs ? { inputs: defaultInputs } : {}),
1045
+ });
853
1046
  this.onAppearanceChange();
854
1047
  }
855
1048
  removeWidgetFromTab(tabIndex, widgetIndex) {
@@ -859,6 +1052,20 @@ class PraxisTabsConfigEditor {
859
1052
  t.widgets.splice(widgetIndex, 1);
860
1053
  this.onAppearanceChange();
861
1054
  }
1055
+ updateWidgetKeyTab(tabIndex, widgetIndex, key) {
1056
+ const t = this.editedConfig.tabs?.[tabIndex];
1057
+ const widget = t?.widgets?.[widgetIndex];
1058
+ if (!widget)
1059
+ return;
1060
+ const trimmed = String(key ?? '').trim();
1061
+ if (trimmed) {
1062
+ widget.childWidgetKey = trimmed;
1063
+ }
1064
+ else {
1065
+ delete widget.childWidgetKey;
1066
+ }
1067
+ this.onAppearanceChange();
1068
+ }
862
1069
  updateWidgetInputsTab(tabIndex, widgetIndex, text) {
863
1070
  const t = this.editedConfig.tabs[tabIndex];
864
1071
  try {
@@ -883,14 +1090,30 @@ class PraxisTabsConfigEditor {
883
1090
  return;
884
1091
  const t = this.editedConfig.tabs[tabIndex];
885
1092
  t.widgets = t.widgets || [];
1093
+ const containerId = t.id || `tab${tabIndex + 1}`;
886
1094
  if (type === 'form') {
887
- t.widgets.push({ id: 'praxis-dynamic-form', inputs: { resourcePath: rp } });
1095
+ const id = 'praxis-dynamic-form';
1096
+ t.widgets.push({
1097
+ id,
1098
+ childWidgetKey: this.nextChildWidgetKey(containerId, id, t.widgets),
1099
+ inputs: { resourcePath: rp },
1100
+ });
888
1101
  }
889
1102
  else if (type === 'table') {
890
- t.widgets.push({ id: 'praxis-table', inputs: { resourcePath: rp, tableId: rp } });
1103
+ const id = 'praxis-table';
1104
+ t.widgets.push({
1105
+ id,
1106
+ childWidgetKey: this.nextChildWidgetKey(containerId, id, t.widgets),
1107
+ inputs: { resourcePath: rp, tableId: rp },
1108
+ });
891
1109
  }
892
1110
  else {
893
- t.widgets.push({ id: 'praxis-crud', inputs: { crudId: rp, metadata: { resource: { path: rp } } } });
1111
+ const id = 'praxis-crud';
1112
+ t.widgets.push({
1113
+ id,
1114
+ childWidgetKey: this.nextChildWidgetKey(containerId, id, t.widgets),
1115
+ inputs: { crudId: rp, metadata: { resource: { path: rp } } },
1116
+ });
894
1117
  }
895
1118
  this.onAppearanceChange();
896
1119
  }
@@ -927,7 +1150,14 @@ class PraxisTabsConfigEditor {
927
1150
  return;
928
1151
  const l = this.nav.links[linkIndex];
929
1152
  l.widgets = l.widgets || [];
930
- l.widgets.push({ id });
1153
+ const childWidgetKey = this.nextChildWidgetKey(l.id || `link${linkIndex + 1}`, id, l.widgets);
1154
+ const rp = (this.quickResourcePathLink[linkIndex] || '').trim();
1155
+ const defaultInputs = this.buildDefaultWidgetInputs(id, rp);
1156
+ l.widgets.push({
1157
+ id,
1158
+ childWidgetKey,
1159
+ ...(defaultInputs ? { inputs: defaultInputs } : {}),
1160
+ });
931
1161
  this.onAppearanceChange();
932
1162
  }
933
1163
  removeWidgetFromLink(linkIndex, widgetIndex) {
@@ -937,6 +1167,20 @@ class PraxisTabsConfigEditor {
937
1167
  l.widgets.splice(widgetIndex, 1);
938
1168
  this.onAppearanceChange();
939
1169
  }
1170
+ updateWidgetKeyLink(linkIndex, widgetIndex, key) {
1171
+ const l = this.nav.links?.[linkIndex];
1172
+ const widget = l?.widgets?.[widgetIndex];
1173
+ if (!widget)
1174
+ return;
1175
+ const trimmed = String(key ?? '').trim();
1176
+ if (trimmed) {
1177
+ widget.childWidgetKey = trimmed;
1178
+ }
1179
+ else {
1180
+ delete widget.childWidgetKey;
1181
+ }
1182
+ this.onAppearanceChange();
1183
+ }
940
1184
  updateWidgetInputsLink(linkIndex, widgetIndex, text) {
941
1185
  const l = this.nav.links[linkIndex];
942
1186
  try {
@@ -961,17 +1205,58 @@ class PraxisTabsConfigEditor {
961
1205
  return;
962
1206
  const l = this.nav.links[linkIndex];
963
1207
  l.widgets = l.widgets || [];
1208
+ const containerId = l.id || `link${linkIndex + 1}`;
964
1209
  if (type === 'form') {
965
- l.widgets.push({ id: 'praxis-dynamic-form', inputs: { resourcePath: rp } });
1210
+ const id = 'praxis-dynamic-form';
1211
+ l.widgets.push({
1212
+ id,
1213
+ childWidgetKey: this.nextChildWidgetKey(containerId, id, l.widgets),
1214
+ inputs: { resourcePath: rp },
1215
+ });
966
1216
  }
967
1217
  else if (type === 'table') {
968
- l.widgets.push({ id: 'praxis-table', inputs: { resourcePath: rp, tableId: rp } });
1218
+ const id = 'praxis-table';
1219
+ l.widgets.push({
1220
+ id,
1221
+ childWidgetKey: this.nextChildWidgetKey(containerId, id, l.widgets),
1222
+ inputs: { resourcePath: rp, tableId: rp },
1223
+ });
969
1224
  }
970
1225
  else {
971
- l.widgets.push({ id: 'praxis-crud', inputs: { crudId: rp, metadata: { resource: { path: rp } } } });
1226
+ const id = 'praxis-crud';
1227
+ l.widgets.push({
1228
+ id,
1229
+ childWidgetKey: this.nextChildWidgetKey(containerId, id, l.widgets),
1230
+ inputs: { crudId: rp, metadata: { resource: { path: rp } } },
1231
+ });
972
1232
  }
973
1233
  this.onAppearanceChange();
974
1234
  }
1235
+ nextChildWidgetKey(containerId, widgetId, widgets) {
1236
+ const existingKeys = (widgets ?? [])
1237
+ .map((widget) => String(widget?.childWidgetKey ?? '').trim())
1238
+ .filter(Boolean);
1239
+ return buildUniqueChildWidgetKey(containerId, widgetId, existingKeys);
1240
+ }
1241
+ buildDefaultWidgetInputs(widgetId, resourcePath) {
1242
+ if (widgetId === 'praxis-related-resource-outlet') {
1243
+ return {
1244
+ parentResourcePath: resourcePath,
1245
+ surfaceId: '',
1246
+ mode: 'inline',
1247
+ };
1248
+ }
1249
+ if (!resourcePath) {
1250
+ return undefined;
1251
+ }
1252
+ if (widgetId === 'praxis-table') {
1253
+ return { resourcePath, tableId: resourcePath };
1254
+ }
1255
+ if (widgetId === 'praxis-dynamic-form') {
1256
+ return { resourcePath };
1257
+ }
1258
+ return undefined;
1259
+ }
975
1260
  stringify(v) { try {
976
1261
  return v ? JSON.stringify(v, null, 2) : '';
977
1262
  }
@@ -1000,10 +1285,10 @@ class PraxisTabsConfigEditor {
1000
1285
  <div class="editor-topbar">
1001
1286
  <mat-form-field appearance="outline" class="editor-mode-field">
1002
1287
  <mat-label>{{ t('editor.fields.mode', 'Modo principal') }}</mat-label>
1003
- <select matNativeControl [ngModel]="primaryMode" (ngModelChange)="setPrimaryMode($event)">
1004
- <option value="group">{{ t('editor.mode.group', 'Grupo de abas') }}</option>
1005
- <option value="nav">{{ t('editor.mode.nav', 'Navegacao por links') }}</option>
1006
- </select>
1288
+ <mat-select [ngModel]="primaryMode" (ngModelChange)="setPrimaryMode($event)">
1289
+ <mat-option value="group">{{ t('editor.mode.group', 'Grupo de abas') }}</mat-option>
1290
+ <mat-option value="nav">{{ t('editor.mode.nav', 'Navegacao por links') }}</mat-option>
1291
+ </mat-select>
1007
1292
  </mat-form-field>
1008
1293
  </div>
1009
1294
 
@@ -1041,19 +1326,19 @@ class PraxisTabsConfigEditor {
1041
1326
  <div class="editor-section">
1042
1327
  <div class="editor-grid two">
1043
1328
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.groupAlignTabs', 'Alinhamento das abas') }}</mat-label>
1044
- <select matNativeControl [(ngModel)]="group.alignTabs" (ngModelChange)="onAppearanceChange()">
1045
- <option [ngValue]="undefined">{{ t('editor.options.default', 'Padrao') }}</option>
1046
- <option value="start">{{ t('editor.options.start', 'Inicio') }}</option>
1047
- <option value="center">{{ t('editor.options.center', 'Centro') }}</option>
1048
- <option value="end">{{ t('editor.options.end', 'Fim') }}</option>
1049
- </select>
1329
+ <mat-select [(ngModel)]="group.alignTabs" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.default', 'Padrao')">
1330
+ <mat-option [value]="undefined">{{ t('editor.options.default', 'Padrao') }}</mat-option>
1331
+ <mat-option value="start">{{ t('editor.options.start', 'Inicio') }}</mat-option>
1332
+ <mat-option value="center">{{ t('editor.options.center', 'Centro') }}</mat-option>
1333
+ <mat-option value="end">{{ t('editor.options.end', 'Fim') }}</mat-option>
1334
+ </mat-select>
1050
1335
  </mat-form-field>
1051
1336
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.groupHeaderPosition', 'Posicao do header') }}</mat-label>
1052
- <select matNativeControl [(ngModel)]="group.headerPosition" (ngModelChange)="onAppearanceChange()">
1053
- <option [ngValue]="undefined">{{ t('editor.options.aboveDefault', 'Acima (padrao)') }}</option>
1054
- <option value="above">{{ t('editor.options.above', 'Acima') }}</option>
1055
- <option value="below">{{ t('editor.options.below', 'Abaixo') }}</option>
1056
- </select>
1337
+ <mat-select [(ngModel)]="group.headerPosition" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.aboveDefault', 'Acima (padrao)')">
1338
+ <mat-option [value]="undefined">{{ t('editor.options.aboveDefault', 'Acima (padrao)') }}</mat-option>
1339
+ <mat-option value="above">{{ t('editor.options.above', 'Acima') }}</mat-option>
1340
+ <mat-option value="below">{{ t('editor.options.below', 'Abaixo') }}</mat-option>
1341
+ </mat-select>
1057
1342
  </mat-form-field>
1058
1343
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.selectedIndex', 'Indice selecionado') }}</mat-label>
1059
1344
  <input matInput type="number" [(ngModel)]="group.selectedIndex" (ngModelChange)="onAppearanceChange()" />
@@ -1080,12 +1365,12 @@ class PraxisTabsConfigEditor {
1080
1365
  ></button>
1081
1366
  </mat-form-field>
1082
1367
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.color', 'Cor (M2)') }}</mat-label>
1083
- <select matNativeControl [(ngModel)]="group.color" (ngModelChange)="onAppearanceChange()">
1084
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1085
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1086
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1087
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1088
- </select>
1368
+ <mat-select [(ngModel)]="group.color" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
1369
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
1370
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
1371
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
1372
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
1373
+ </mat-select>
1089
1374
  <button
1090
1375
  praxisIconButton="help_outline"
1091
1376
  size="dense"
@@ -1097,12 +1382,12 @@ class PraxisTabsConfigEditor {
1097
1382
  ></button>
1098
1383
  </mat-form-field>
1099
1384
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.backgroundColor', 'Cor de fundo (M2)') }}</mat-label>
1100
- <select matNativeControl [(ngModel)]="group.backgroundColor" (ngModelChange)="onAppearanceChange()">
1101
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1102
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1103
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1104
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1105
- </select>
1385
+ <mat-select [(ngModel)]="group.backgroundColor" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
1386
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
1387
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
1388
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
1389
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
1390
+ </mat-select>
1106
1391
  <button
1107
1392
  praxisIconButton="help_outline"
1108
1393
  size="dense"
@@ -1166,12 +1451,12 @@ class PraxisTabsConfigEditor {
1166
1451
  <input matInput [(ngModel)]="nav.ariaLabelledby" (ngModelChange)="onAppearanceChange()" />
1167
1452
  </mat-form-field>
1168
1453
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.color', 'Cor (M2)') }}</mat-label>
1169
- <select matNativeControl [(ngModel)]="nav.color" (ngModelChange)="onAppearanceChange()">
1170
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1171
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1172
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1173
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1174
- </select>
1454
+ <mat-select [(ngModel)]="nav.color" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
1455
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
1456
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
1457
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
1458
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
1459
+ </mat-select>
1175
1460
  <button
1176
1461
  praxisIconButton="help_outline"
1177
1462
  size="dense"
@@ -1183,12 +1468,12 @@ class PraxisTabsConfigEditor {
1183
1468
  ></button>
1184
1469
  </mat-form-field>
1185
1470
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.backgroundColor', 'Cor de fundo (M2)') }}</mat-label>
1186
- <select matNativeControl [(ngModel)]="nav.backgroundColor" (ngModelChange)="onAppearanceChange()">
1187
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1188
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1189
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1190
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1191
- </select>
1471
+ <mat-select [(ngModel)]="nav.backgroundColor" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
1472
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
1473
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
1474
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
1475
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
1476
+ </mat-select>
1192
1477
  <button
1193
1478
  praxisIconButton="help_outline"
1194
1479
  size="dense"
@@ -1256,6 +1541,10 @@ class PraxisTabsConfigEditor {
1256
1541
  <mat-icon [praxisIcon]="'visibility'"></mat-icon>
1257
1542
  {{ t('editor.presets.highContrast', 'Alto contraste') }}
1258
1543
  </button>
1544
+ <button mat-button (click)="applyPreset('pill')">
1545
+ <mat-icon [praxisIcon]="'pill'"></mat-icon>
1546
+ {{ t('editor.presets.pill', 'Pill (cápsula)') }}
1547
+ </button>
1259
1548
  <button mat-button (click)="clearTokens()">
1260
1549
  <mat-icon [praxisIcon]="'backspace'"></mat-icon>
1261
1550
  {{ t('editor.actions.clearTokens', 'Limpar tokens') }}
@@ -1263,6 +1552,16 @@ class PraxisTabsConfigEditor {
1263
1552
  </div>
1264
1553
 
1265
1554
  <div class="editor-grid two tight">
1555
+ <mat-form-field appearance="outline">
1556
+ <mat-label>{{ t('editor.fields.variant', 'Variante visual') }}</mat-label>
1557
+ <mat-select [(ngModel)]="appearance.variant" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.variant.underline', 'Sublinhado (Underline)')">
1558
+ <mat-option [value]="undefined">{{ t('editor.options.default', 'Padrao') }}</mat-option>
1559
+ <mat-option value="underline">{{ t('editor.variant.underline', 'Sublinhado (Underline)') }}</mat-option>
1560
+ <mat-option value="pill">{{ t('editor.variant.pill', 'Capsula (Pill)') }}</mat-option>
1561
+ <mat-option value="segmented">{{ t('editor.variant.segmented', 'Segmentado (Segmented)') }}</mat-option>
1562
+ </mat-select>
1563
+ </mat-form-field>
1564
+
1266
1565
  <mat-form-field appearance="outline">
1267
1566
  <mat-label>{{ t('editor.fields.themeClass', 'Classe de tema (opcional)') }}</mat-label>
1268
1567
  <input matInput [(ngModel)]="appearance.themeClass" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.fields.placeholder.themeClass', 'ex.: tabs-accented')" />
@@ -1270,12 +1569,12 @@ class PraxisTabsConfigEditor {
1270
1569
 
1271
1570
  <mat-form-field appearance="outline">
1272
1571
  <mat-label>{{ t('editor.fields.density', 'Densidade') }}</mat-label>
1273
- <select matNativeControl [(ngModel)]="appearance.density" (ngModelChange)="onAppearanceChange()">
1274
- <option [ngValue]="undefined">{{ t('editor.density.default', 'Padrao') }}</option>
1275
- <option value="compact">{{ t('editor.density.compact', 'Compacta') }}</option>
1276
- <option value="comfortable">{{ t('editor.density.comfortable', 'Confortavel') }}</option>
1277
- <option value="spacious">{{ t('editor.density.spacious', 'Espacosa') }}</option>
1278
- </select>
1572
+ <mat-select [(ngModel)]="appearance.density" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.density.default', 'Padrao')">
1573
+ <mat-option [value]="undefined">{{ t('editor.density.default', 'Padrao') }}</mat-option>
1574
+ <mat-option value="compact">{{ t('editor.density.compact', 'Compacta') }}</mat-option>
1575
+ <mat-option value="comfortable">{{ t('editor.density.comfortable', 'Confortavel') }}</mat-option>
1576
+ <mat-option value="spacious">{{ t('editor.density.spacious', 'Espacosa') }}</mat-option>
1577
+ </mat-select>
1279
1578
  </mat-form-field>
1280
1579
  </div>
1281
1580
 
@@ -1354,6 +1653,16 @@ class PraxisTabsConfigEditor {
1354
1653
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.ariaLabelledby', 'aria-labelledby') }}</mat-label>
1355
1654
  <input matInput [(ngModel)]="tab.ariaLabelledby" (ngModelChange)="onAppearanceChange()" />
1356
1655
  </mat-form-field>
1656
+ <mat-form-field appearance="outline">
1657
+ <mat-label>{{ t('editor.fields.tone', 'Tom do item') }}</mat-label>
1658
+ <mat-select [(ngModel)]="tab.tone" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.tone.default', 'Padrao')">
1659
+ <mat-option [value]="undefined">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
1660
+ <mat-option value="default">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
1661
+ <mat-option value="primary">{{ t('editor.tone.primary', 'Primario') }}</mat-option>
1662
+ <mat-option value="accent">{{ t('editor.tone.accent', 'Destaque (Accent)') }}</mat-option>
1663
+ <mat-option value="outlined">{{ t('editor.tone.outlined', 'Contorno ativo (Outlined)') }}</mat-option>
1664
+ </mat-select>
1665
+ </mat-form-field>
1357
1666
  </div>
1358
1667
  <div class="editor-row">
1359
1668
  <mat-slide-toggle [(ngModel)]="tab.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.disabled', 'Desativada') }}</mat-slide-toggle>
@@ -1364,12 +1673,12 @@ class PraxisTabsConfigEditor {
1364
1673
  <div class="editor-row">
1365
1674
  <mat-form-field appearance="outline" class="editor-field-min">
1366
1675
  <mat-label>{{ t('editor.fields.addComponent', 'Adicionar componente') }}</mat-label>
1367
- <select matNativeControl [(ngModel)]="selectedTabWidgetId[i]">
1368
- <option [ngValue]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</option>
1676
+ <mat-select [(ngModel)]="selectedTabWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
1677
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
1369
1678
  @for (c of componentOptions; track c) {
1370
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
1679
+ <mat-option [value]="c.id">{{ c.friendlyName || c.id }}</mat-option>
1371
1680
  }
1372
- </select>
1681
+ </mat-select>
1373
1682
  </mat-form-field>
1374
1683
  <button mat-stroked-button (click)="addWidgetToTab(i)"><mat-icon [praxisIcon]="'add'"></mat-icon>{{ t('editor.actions.add', 'Adicionar') }}</button>
1375
1684
  <span class="editor-spacer"></span>
@@ -1390,6 +1699,10 @@ class PraxisTabsConfigEditor {
1390
1699
  <strong class="editor-card-title">{{ getCompName(w.id) }}</strong>
1391
1700
  <button praxisIconButton="delete" size="compact" type="button" class="editor-icon-action--danger" (click)="removeWidgetFromTab(i, wi)" [matTooltip]="t('editor.actions.removeComponent', 'Remover componente')" [attr.aria-label]="t('editor.actions.removeComponent', 'Remover componente')"></button>
1392
1701
  </div>
1702
+ <mat-form-field appearance="outline">
1703
+ <mat-label>{{ t('editor.fields.childWidgetKey', 'Chave da instancia (childWidgetKey)') }}</mat-label>
1704
+ <input matInput [ngModel]="w.childWidgetKey || ''" (ngModelChange)="updateWidgetKeyTab(i, wi, $event)" />
1705
+ </mat-form-field>
1393
1706
  <div class="editor-grid two tight">
1394
1707
  <mat-form-field appearance="outline">
1395
1708
  <mat-label>{{ t('editor.fields.inputsJson', 'Inputs (JSON)') }}</mat-label>
@@ -1446,6 +1759,19 @@ class PraxisTabsConfigEditor {
1446
1759
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.icon', 'Icone') }}</mat-label>
1447
1760
  <input matInput [(ngModel)]="l.icon" (ngModelChange)="onAppearanceChange()" />
1448
1761
  </mat-form-field>
1762
+ <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.labelClass', 'Classe do rotulo') }}</mat-label>
1763
+ <input matInput [(ngModel)]="l.labelClass" (ngModelChange)="onAppearanceChange()" />
1764
+ </mat-form-field>
1765
+ <mat-form-field appearance="outline">
1766
+ <mat-label>{{ t('editor.fields.tone', 'Tom do item') }}</mat-label>
1767
+ <mat-select [(ngModel)]="l.tone" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.tone.default', 'Padrao')">
1768
+ <mat-option [value]="undefined">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
1769
+ <mat-option value="default">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
1770
+ <mat-option value="primary">{{ t('editor.tone.primary', 'Primario') }}</mat-option>
1771
+ <mat-option value="accent">{{ t('editor.tone.accent', 'Destaque (Accent)') }}</mat-option>
1772
+ <mat-option value="outlined">{{ t('editor.tone.outlined', 'Contorno ativo (Outlined)') }}</mat-option>
1773
+ </mat-select>
1774
+ </mat-form-field>
1449
1775
  </div>
1450
1776
  <div class="editor-row">
1451
1777
  <mat-slide-toggle [(ngModel)]="l.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.linkDisabled', 'Desativado') }}</mat-slide-toggle>
@@ -1458,12 +1784,12 @@ class PraxisTabsConfigEditor {
1458
1784
  <div class="editor-row">
1459
1785
  <mat-form-field appearance="outline" class="editor-field-min">
1460
1786
  <mat-label>{{ t('editor.fields.addComponent', 'Adicionar componente') }}</mat-label>
1461
- <select matNativeControl [(ngModel)]="selectedLinkWidgetId[i]">
1462
- <option [ngValue]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</option>
1787
+ <mat-select [(ngModel)]="selectedLinkWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
1788
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
1463
1789
  @for (c of componentOptions; track c) {
1464
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
1790
+ <mat-option [value]="c.id">{{ c.friendlyName || c.id }}</mat-option>
1465
1791
  }
1466
- </select>
1792
+ </mat-select>
1467
1793
  </mat-form-field>
1468
1794
  <button mat-stroked-button (click)="addWidgetToLink(i)"><mat-icon [praxisIcon]="'add'"></mat-icon>{{ t('editor.actions.add', 'Adicionar') }}</button>
1469
1795
  <span class="editor-spacer"></span>
@@ -1484,6 +1810,10 @@ class PraxisTabsConfigEditor {
1484
1810
  <strong class="editor-card-title">{{ getCompName(w.id) }}</strong>
1485
1811
  <button praxisIconButton="delete" size="compact" type="button" class="editor-icon-action--danger" (click)="removeWidgetFromLink(i, wi)" [matTooltip]="t('editor.actions.removeComponent', 'Remover componente')" [attr.aria-label]="t('editor.actions.removeComponent', 'Remover componente')"></button>
1486
1812
  </div>
1813
+ <mat-form-field appearance="outline">
1814
+ <mat-label>{{ t('editor.fields.childWidgetKey', 'Chave da instancia (childWidgetKey)') }}</mat-label>
1815
+ <input matInput [ngModel]="w.childWidgetKey || ''" (ngModelChange)="updateWidgetKeyLink(i, wi, $event)" />
1816
+ </mat-form-field>
1487
1817
  <div class="editor-grid two tight">
1488
1818
  <mat-form-field appearance="outline">
1489
1819
  <mat-label>{{ t('editor.fields.inputsJson', 'Inputs (JSON)') }}</mat-label>
@@ -1509,7 +1839,7 @@ class PraxisTabsConfigEditor {
1509
1839
  </mat-tab>
1510
1840
  </mat-tab-group>
1511
1841
  </div>
1512
- `, isInline: true, styles: [":host{display:block;color:var(--md-sys-color-on-surface)}.editor-shell{display:grid;gap:12px}.editor-topbar{display:flex;align-items:start;justify-content:flex-start}.editor-mode-field{width:min(320px,100%)}.editor-diagnostics{display:grid;gap:8px}.editor-diagnostics-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.editor-diagnostic{display:grid;gap:4px;padding:10px 12px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface)}.editor-diagnostic code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:var(--md-sys-color-on-surface-variant)}.editor-diagnostic.level-error{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-color:var(--md-sys-color-error)}.editor-diagnostic.level-warning{background:var(--md-sys-color-tertiary-container, var(--md-sys-color-surface-container));color:var(--md-sys-color-on-tertiary-container, var(--md-sys-color-on-surface));border-color:var(--md-sys-color-outline-variant)}.editor-tabs{--editor-surface: var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface));--editor-border: 1px solid var(--md-sys-color-outline-variant);--editor-radius: 12px;--editor-muted: var(--md-sys-color-on-surface-variant)}.editor-section{padding:12px;display:grid;gap:12px;background:var(--editor-surface);border:var(--editor-border);border-radius:var(--editor-radius)}.editor-section-lg{gap:16px}.editor-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.editor-grid{display:grid;gap:12px}.editor-grid.two{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.editor-grid.tight{gap:8px}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.editor-muted{color:var(--editor-muted)}.editor-title{margin:6px 0 8px;font-size:1rem}.editor-title-row{display:flex;align-items:center;gap:8px}.editor-code{white-space:pre-wrap;background:var(--md-sys-color-surface-container);padding:8px;border-radius:6px;border:1px solid var(--md-sys-color-outline-variant)}.editor-card{border:1px solid var(--md-sys-color-outline-variant);padding:10px;border-radius:10px;display:grid;gap:8px;background:var(--md-sys-color-surface)}.editor-card.dashed{border-style:dashed}.editor-card-header{display:flex;align-items:center;gap:8px}.editor-card-title{flex:1;font-weight:600}.editor-divider{border-top:1px solid var(--md-sys-color-outline-variant);padding-top:8px}.editor-spacer{flex:1}.editor-field-min{min-width:260px}.editor-section .editor-field-min{width:260px;max-width:260px}.editor-field-240{width:240px}.editor-section .editor-field-240{width:240px;max-width:240px}.editor-json{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.editor-section .mat-mdc-form-field{width:100%;max-width:520px;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.editor-section .mat-mdc-form-field.full{max-width:none}.editor-icon-action--danger{color:var(--md-sys-color-error)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2_1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2_1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2_1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2_1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2_1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i2_1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2_1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i8.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i9.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] });
1842
+ `, isInline: true, styles: [":host{display:block;container-type:inline-size;color:var(--pfx-settings-panel-text-primary, var(--md-sys-color-on-surface))}.editor-shell{display:grid;gap:12px}.editor-topbar{display:flex;align-items:start;justify-content:flex-start}.editor-mode-field{width:min(320px,100%)}.editor-diagnostics{display:grid;gap:8px}.editor-diagnostics-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.editor-diagnostic{display:grid;gap:4px;padding:10px 12px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface)}.editor-diagnostic code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:var(--md-sys-color-on-surface-variant)}.editor-diagnostic.level-error{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-color:var(--md-sys-color-error)}.editor-diagnostic.level-warning{background:var(--md-sys-color-tertiary-container, var(--md-sys-color-surface-container));color:var(--md-sys-color-on-tertiary-container, var(--md-sys-color-on-surface));border-color:var(--md-sys-color-outline-variant)}.editor-tabs{--editor-surface: var(--pfx-settings-panel-surface-elevated, var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)));--editor-border: 1px solid var(--pfx-settings-panel-border, var(--md-sys-color-outline-variant));--editor-radius: 12px;--editor-muted: var(--pfx-settings-panel-text-secondary, var(--md-sys-color-on-surface-variant))}.editor-section{padding:12px;display:grid;gap:12px;background:var(--editor-surface);border:var(--editor-border);border-radius:var(--editor-radius)}.editor-section-lg{gap:16px}.editor-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.editor-grid{display:grid;gap:12px}.editor-grid.two{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.editor-grid.tight{gap:8px}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.editor-muted{color:var(--editor-muted)}.editor-title{margin:6px 0 8px;font-size:1rem}.editor-title-row{display:flex;align-items:center;gap:8px}.editor-code{white-space:pre-wrap;background:var(--md-sys-color-surface-container);padding:8px;border-radius:6px;border:1px solid var(--md-sys-color-outline-variant)}.editor-card{border:1px solid var(--pfx-settings-panel-border, var(--md-sys-color-outline-variant));padding:10px;border-radius:10px;display:grid;gap:8px;background:var(--pfx-settings-panel-surface, var(--md-sys-color-surface))}.editor-card.dashed{border-style:dashed}.editor-card-header{display:flex;align-items:center;gap:8px}.editor-card-title{flex:1;font-weight:600}.editor-divider{border-top:1px solid var(--pfx-settings-panel-border, var(--md-sys-color-outline-variant));padding-top:8px}.editor-spacer{flex:1}.editor-field-min{min-width:260px}.editor-section .editor-field-min{width:260px;max-width:260px}.editor-field-240{width:240px}.editor-section .editor-field-240{width:240px;max-width:240px}@container (max-width: 640px){.editor-grid.two{grid-template-columns:1fr}.editor-field-min,.editor-section .editor-field-min,.editor-field-240,.editor-section .editor-field-240{min-width:0;width:100%;max-width:100%}}.editor-json{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.editor-section .mat-mdc-form-field{width:100%;max-width:520px;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.editor-section .mat-mdc-form-field.full{max-width:none}.editor-icon-action--danger{color:var(--md-sys-color-error)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2_1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2_1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i2_1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2_1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "component", type: i3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "directive", type: i4.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i4.MatError, selector: "mat-error, [matError]", inputs: ["id"] }, { kind: "directive", type: i4.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i6.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i6.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i10.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i10.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i10.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i11.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }] });
1513
1843
  }
1514
1844
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisTabsConfigEditor, decorators: [{
1515
1845
  type: Component,
@@ -1518,6 +1848,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1518
1848
  MatTabsModule,
1519
1849
  MatFormFieldModule,
1520
1850
  MatInputModule,
1851
+ MatSelectModule,
1521
1852
  MatIconModule,
1522
1853
  PraxisIconDirective,
1523
1854
  PraxisIconButtonComponent,
@@ -1530,10 +1861,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1530
1861
  <div class="editor-topbar">
1531
1862
  <mat-form-field appearance="outline" class="editor-mode-field">
1532
1863
  <mat-label>{{ t('editor.fields.mode', 'Modo principal') }}</mat-label>
1533
- <select matNativeControl [ngModel]="primaryMode" (ngModelChange)="setPrimaryMode($event)">
1534
- <option value="group">{{ t('editor.mode.group', 'Grupo de abas') }}</option>
1535
- <option value="nav">{{ t('editor.mode.nav', 'Navegacao por links') }}</option>
1536
- </select>
1864
+ <mat-select [ngModel]="primaryMode" (ngModelChange)="setPrimaryMode($event)">
1865
+ <mat-option value="group">{{ t('editor.mode.group', 'Grupo de abas') }}</mat-option>
1866
+ <mat-option value="nav">{{ t('editor.mode.nav', 'Navegacao por links') }}</mat-option>
1867
+ </mat-select>
1537
1868
  </mat-form-field>
1538
1869
  </div>
1539
1870
 
@@ -1571,19 +1902,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1571
1902
  <div class="editor-section">
1572
1903
  <div class="editor-grid two">
1573
1904
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.groupAlignTabs', 'Alinhamento das abas') }}</mat-label>
1574
- <select matNativeControl [(ngModel)]="group.alignTabs" (ngModelChange)="onAppearanceChange()">
1575
- <option [ngValue]="undefined">{{ t('editor.options.default', 'Padrao') }}</option>
1576
- <option value="start">{{ t('editor.options.start', 'Inicio') }}</option>
1577
- <option value="center">{{ t('editor.options.center', 'Centro') }}</option>
1578
- <option value="end">{{ t('editor.options.end', 'Fim') }}</option>
1579
- </select>
1905
+ <mat-select [(ngModel)]="group.alignTabs" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.default', 'Padrao')">
1906
+ <mat-option [value]="undefined">{{ t('editor.options.default', 'Padrao') }}</mat-option>
1907
+ <mat-option value="start">{{ t('editor.options.start', 'Inicio') }}</mat-option>
1908
+ <mat-option value="center">{{ t('editor.options.center', 'Centro') }}</mat-option>
1909
+ <mat-option value="end">{{ t('editor.options.end', 'Fim') }}</mat-option>
1910
+ </mat-select>
1580
1911
  </mat-form-field>
1581
1912
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.groupHeaderPosition', 'Posicao do header') }}</mat-label>
1582
- <select matNativeControl [(ngModel)]="group.headerPosition" (ngModelChange)="onAppearanceChange()">
1583
- <option [ngValue]="undefined">{{ t('editor.options.aboveDefault', 'Acima (padrao)') }}</option>
1584
- <option value="above">{{ t('editor.options.above', 'Acima') }}</option>
1585
- <option value="below">{{ t('editor.options.below', 'Abaixo') }}</option>
1586
- </select>
1913
+ <mat-select [(ngModel)]="group.headerPosition" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.aboveDefault', 'Acima (padrao)')">
1914
+ <mat-option [value]="undefined">{{ t('editor.options.aboveDefault', 'Acima (padrao)') }}</mat-option>
1915
+ <mat-option value="above">{{ t('editor.options.above', 'Acima') }}</mat-option>
1916
+ <mat-option value="below">{{ t('editor.options.below', 'Abaixo') }}</mat-option>
1917
+ </mat-select>
1587
1918
  </mat-form-field>
1588
1919
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.selectedIndex', 'Indice selecionado') }}</mat-label>
1589
1920
  <input matInput type="number" [(ngModel)]="group.selectedIndex" (ngModelChange)="onAppearanceChange()" />
@@ -1610,12 +1941,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1610
1941
  ></button>
1611
1942
  </mat-form-field>
1612
1943
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.color', 'Cor (M2)') }}</mat-label>
1613
- <select matNativeControl [(ngModel)]="group.color" (ngModelChange)="onAppearanceChange()">
1614
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1615
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1616
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1617
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1618
- </select>
1944
+ <mat-select [(ngModel)]="group.color" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
1945
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
1946
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
1947
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
1948
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
1949
+ </mat-select>
1619
1950
  <button
1620
1951
  praxisIconButton="help_outline"
1621
1952
  size="dense"
@@ -1627,12 +1958,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1627
1958
  ></button>
1628
1959
  </mat-form-field>
1629
1960
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.backgroundColor', 'Cor de fundo (M2)') }}</mat-label>
1630
- <select matNativeControl [(ngModel)]="group.backgroundColor" (ngModelChange)="onAppearanceChange()">
1631
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1632
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1633
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1634
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1635
- </select>
1961
+ <mat-select [(ngModel)]="group.backgroundColor" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
1962
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
1963
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
1964
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
1965
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
1966
+ </mat-select>
1636
1967
  <button
1637
1968
  praxisIconButton="help_outline"
1638
1969
  size="dense"
@@ -1696,12 +2027,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1696
2027
  <input matInput [(ngModel)]="nav.ariaLabelledby" (ngModelChange)="onAppearanceChange()" />
1697
2028
  </mat-form-field>
1698
2029
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.color', 'Cor (M2)') }}</mat-label>
1699
- <select matNativeControl [(ngModel)]="nav.color" (ngModelChange)="onAppearanceChange()">
1700
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1701
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1702
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1703
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1704
- </select>
2030
+ <mat-select [(ngModel)]="nav.color" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
2031
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
2032
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
2033
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
2034
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
2035
+ </mat-select>
1705
2036
  <button
1706
2037
  praxisIconButton="help_outline"
1707
2038
  size="dense"
@@ -1713,12 +2044,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1713
2044
  ></button>
1714
2045
  </mat-form-field>
1715
2046
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.backgroundColor', 'Cor de fundo (M2)') }}</mat-label>
1716
- <select matNativeControl [(ngModel)]="nav.backgroundColor" (ngModelChange)="onAppearanceChange()">
1717
- <option [ngValue]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</option>
1718
- <option value="primary">{{ t('editor.options.primary', 'Primary') }}</option>
1719
- <option value="accent">{{ t('editor.options.accent', 'Accent') }}</option>
1720
- <option value="warn">{{ t('editor.options.warn', 'Warn') }}</option>
1721
- </select>
2047
+ <mat-select [(ngModel)]="nav.backgroundColor" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.options.none', '(nenhuma)')">
2048
+ <mat-option [value]="undefined">{{ t('editor.options.none', '(nenhuma)') }}</mat-option>
2049
+ <mat-option value="primary">{{ t('editor.options.primary', 'Primary') }}</mat-option>
2050
+ <mat-option value="accent">{{ t('editor.options.accent', 'Accent') }}</mat-option>
2051
+ <mat-option value="warn">{{ t('editor.options.warn', 'Warn') }}</mat-option>
2052
+ </mat-select>
1722
2053
  <button
1723
2054
  praxisIconButton="help_outline"
1724
2055
  size="dense"
@@ -1786,6 +2117,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1786
2117
  <mat-icon [praxisIcon]="'visibility'"></mat-icon>
1787
2118
  {{ t('editor.presets.highContrast', 'Alto contraste') }}
1788
2119
  </button>
2120
+ <button mat-button (click)="applyPreset('pill')">
2121
+ <mat-icon [praxisIcon]="'pill'"></mat-icon>
2122
+ {{ t('editor.presets.pill', 'Pill (cápsula)') }}
2123
+ </button>
1789
2124
  <button mat-button (click)="clearTokens()">
1790
2125
  <mat-icon [praxisIcon]="'backspace'"></mat-icon>
1791
2126
  {{ t('editor.actions.clearTokens', 'Limpar tokens') }}
@@ -1793,6 +2128,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1793
2128
  </div>
1794
2129
 
1795
2130
  <div class="editor-grid two tight">
2131
+ <mat-form-field appearance="outline">
2132
+ <mat-label>{{ t('editor.fields.variant', 'Variante visual') }}</mat-label>
2133
+ <mat-select [(ngModel)]="appearance.variant" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.variant.underline', 'Sublinhado (Underline)')">
2134
+ <mat-option [value]="undefined">{{ t('editor.options.default', 'Padrao') }}</mat-option>
2135
+ <mat-option value="underline">{{ t('editor.variant.underline', 'Sublinhado (Underline)') }}</mat-option>
2136
+ <mat-option value="pill">{{ t('editor.variant.pill', 'Capsula (Pill)') }}</mat-option>
2137
+ <mat-option value="segmented">{{ t('editor.variant.segmented', 'Segmentado (Segmented)') }}</mat-option>
2138
+ </mat-select>
2139
+ </mat-form-field>
2140
+
1796
2141
  <mat-form-field appearance="outline">
1797
2142
  <mat-label>{{ t('editor.fields.themeClass', 'Classe de tema (opcional)') }}</mat-label>
1798
2143
  <input matInput [(ngModel)]="appearance.themeClass" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.fields.placeholder.themeClass', 'ex.: tabs-accented')" />
@@ -1800,12 +2145,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1800
2145
 
1801
2146
  <mat-form-field appearance="outline">
1802
2147
  <mat-label>{{ t('editor.fields.density', 'Densidade') }}</mat-label>
1803
- <select matNativeControl [(ngModel)]="appearance.density" (ngModelChange)="onAppearanceChange()">
1804
- <option [ngValue]="undefined">{{ t('editor.density.default', 'Padrao') }}</option>
1805
- <option value="compact">{{ t('editor.density.compact', 'Compacta') }}</option>
1806
- <option value="comfortable">{{ t('editor.density.comfortable', 'Confortavel') }}</option>
1807
- <option value="spacious">{{ t('editor.density.spacious', 'Espacosa') }}</option>
1808
- </select>
2148
+ <mat-select [(ngModel)]="appearance.density" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.density.default', 'Padrao')">
2149
+ <mat-option [value]="undefined">{{ t('editor.density.default', 'Padrao') }}</mat-option>
2150
+ <mat-option value="compact">{{ t('editor.density.compact', 'Compacta') }}</mat-option>
2151
+ <mat-option value="comfortable">{{ t('editor.density.comfortable', 'Confortavel') }}</mat-option>
2152
+ <mat-option value="spacious">{{ t('editor.density.spacious', 'Espacosa') }}</mat-option>
2153
+ </mat-select>
1809
2154
  </mat-form-field>
1810
2155
  </div>
1811
2156
 
@@ -1884,6 +2229,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1884
2229
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.ariaLabelledby', 'aria-labelledby') }}</mat-label>
1885
2230
  <input matInput [(ngModel)]="tab.ariaLabelledby" (ngModelChange)="onAppearanceChange()" />
1886
2231
  </mat-form-field>
2232
+ <mat-form-field appearance="outline">
2233
+ <mat-label>{{ t('editor.fields.tone', 'Tom do item') }}</mat-label>
2234
+ <mat-select [(ngModel)]="tab.tone" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.tone.default', 'Padrao')">
2235
+ <mat-option [value]="undefined">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
2236
+ <mat-option value="default">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
2237
+ <mat-option value="primary">{{ t('editor.tone.primary', 'Primario') }}</mat-option>
2238
+ <mat-option value="accent">{{ t('editor.tone.accent', 'Destaque (Accent)') }}</mat-option>
2239
+ <mat-option value="outlined">{{ t('editor.tone.outlined', 'Contorno ativo (Outlined)') }}</mat-option>
2240
+ </mat-select>
2241
+ </mat-form-field>
1887
2242
  </div>
1888
2243
  <div class="editor-row">
1889
2244
  <mat-slide-toggle [(ngModel)]="tab.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.disabled', 'Desativada') }}</mat-slide-toggle>
@@ -1894,12 +2249,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1894
2249
  <div class="editor-row">
1895
2250
  <mat-form-field appearance="outline" class="editor-field-min">
1896
2251
  <mat-label>{{ t('editor.fields.addComponent', 'Adicionar componente') }}</mat-label>
1897
- <select matNativeControl [(ngModel)]="selectedTabWidgetId[i]">
1898
- <option [ngValue]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</option>
2252
+ <mat-select [(ngModel)]="selectedTabWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
2253
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
1899
2254
  @for (c of componentOptions; track c) {
1900
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
2255
+ <mat-option [value]="c.id">{{ c.friendlyName || c.id }}</mat-option>
1901
2256
  }
1902
- </select>
2257
+ </mat-select>
1903
2258
  </mat-form-field>
1904
2259
  <button mat-stroked-button (click)="addWidgetToTab(i)"><mat-icon [praxisIcon]="'add'"></mat-icon>{{ t('editor.actions.add', 'Adicionar') }}</button>
1905
2260
  <span class="editor-spacer"></span>
@@ -1920,6 +2275,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1920
2275
  <strong class="editor-card-title">{{ getCompName(w.id) }}</strong>
1921
2276
  <button praxisIconButton="delete" size="compact" type="button" class="editor-icon-action--danger" (click)="removeWidgetFromTab(i, wi)" [matTooltip]="t('editor.actions.removeComponent', 'Remover componente')" [attr.aria-label]="t('editor.actions.removeComponent', 'Remover componente')"></button>
1922
2277
  </div>
2278
+ <mat-form-field appearance="outline">
2279
+ <mat-label>{{ t('editor.fields.childWidgetKey', 'Chave da instancia (childWidgetKey)') }}</mat-label>
2280
+ <input matInput [ngModel]="w.childWidgetKey || ''" (ngModelChange)="updateWidgetKeyTab(i, wi, $event)" />
2281
+ </mat-form-field>
1923
2282
  <div class="editor-grid two tight">
1924
2283
  <mat-form-field appearance="outline">
1925
2284
  <mat-label>{{ t('editor.fields.inputsJson', 'Inputs (JSON)') }}</mat-label>
@@ -1976,6 +2335,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1976
2335
  <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.icon', 'Icone') }}</mat-label>
1977
2336
  <input matInput [(ngModel)]="l.icon" (ngModelChange)="onAppearanceChange()" />
1978
2337
  </mat-form-field>
2338
+ <mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.labelClass', 'Classe do rotulo') }}</mat-label>
2339
+ <input matInput [(ngModel)]="l.labelClass" (ngModelChange)="onAppearanceChange()" />
2340
+ </mat-form-field>
2341
+ <mat-form-field appearance="outline">
2342
+ <mat-label>{{ t('editor.fields.tone', 'Tom do item') }}</mat-label>
2343
+ <mat-select [(ngModel)]="l.tone" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.tone.default', 'Padrao')">
2344
+ <mat-option [value]="undefined">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
2345
+ <mat-option value="default">{{ t('editor.tone.default', 'Padrao') }}</mat-option>
2346
+ <mat-option value="primary">{{ t('editor.tone.primary', 'Primario') }}</mat-option>
2347
+ <mat-option value="accent">{{ t('editor.tone.accent', 'Destaque (Accent)') }}</mat-option>
2348
+ <mat-option value="outlined">{{ t('editor.tone.outlined', 'Contorno ativo (Outlined)') }}</mat-option>
2349
+ </mat-select>
2350
+ </mat-form-field>
1979
2351
  </div>
1980
2352
  <div class="editor-row">
1981
2353
  <mat-slide-toggle [(ngModel)]="l.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.linkDisabled', 'Desativado') }}</mat-slide-toggle>
@@ -1988,12 +2360,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1988
2360
  <div class="editor-row">
1989
2361
  <mat-form-field appearance="outline" class="editor-field-min">
1990
2362
  <mat-label>{{ t('editor.fields.addComponent', 'Adicionar componente') }}</mat-label>
1991
- <select matNativeControl [(ngModel)]="selectedLinkWidgetId[i]">
1992
- <option [ngValue]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</option>
2363
+ <mat-select [(ngModel)]="selectedLinkWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
2364
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
1993
2365
  @for (c of componentOptions; track c) {
1994
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
2366
+ <mat-option [value]="c.id">{{ c.friendlyName || c.id }}</mat-option>
1995
2367
  }
1996
- </select>
2368
+ </mat-select>
1997
2369
  </mat-form-field>
1998
2370
  <button mat-stroked-button (click)="addWidgetToLink(i)"><mat-icon [praxisIcon]="'add'"></mat-icon>{{ t('editor.actions.add', 'Adicionar') }}</button>
1999
2371
  <span class="editor-spacer"></span>
@@ -2014,6 +2386,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
2014
2386
  <strong class="editor-card-title">{{ getCompName(w.id) }}</strong>
2015
2387
  <button praxisIconButton="delete" size="compact" type="button" class="editor-icon-action--danger" (click)="removeWidgetFromLink(i, wi)" [matTooltip]="t('editor.actions.removeComponent', 'Remover componente')" [attr.aria-label]="t('editor.actions.removeComponent', 'Remover componente')"></button>
2016
2388
  </div>
2389
+ <mat-form-field appearance="outline">
2390
+ <mat-label>{{ t('editor.fields.childWidgetKey', 'Chave da instancia (childWidgetKey)') }}</mat-label>
2391
+ <input matInput [ngModel]="w.childWidgetKey || ''" (ngModelChange)="updateWidgetKeyLink(i, wi, $event)" />
2392
+ </mat-form-field>
2017
2393
  <div class="editor-grid two tight">
2018
2394
  <mat-form-field appearance="outline">
2019
2395
  <mat-label>{{ t('editor.fields.inputsJson', 'Inputs (JSON)') }}</mat-label>
@@ -2039,7 +2415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
2039
2415
  </mat-tab>
2040
2416
  </mat-tab-group>
2041
2417
  </div>
2042
- `, styles: [":host{display:block;color:var(--md-sys-color-on-surface)}.editor-shell{display:grid;gap:12px}.editor-topbar{display:flex;align-items:start;justify-content:flex-start}.editor-mode-field{width:min(320px,100%)}.editor-diagnostics{display:grid;gap:8px}.editor-diagnostics-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.editor-diagnostic{display:grid;gap:4px;padding:10px 12px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface)}.editor-diagnostic code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:var(--md-sys-color-on-surface-variant)}.editor-diagnostic.level-error{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-color:var(--md-sys-color-error)}.editor-diagnostic.level-warning{background:var(--md-sys-color-tertiary-container, var(--md-sys-color-surface-container));color:var(--md-sys-color-on-tertiary-container, var(--md-sys-color-on-surface));border-color:var(--md-sys-color-outline-variant)}.editor-tabs{--editor-surface: var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface));--editor-border: 1px solid var(--md-sys-color-outline-variant);--editor-radius: 12px;--editor-muted: var(--md-sys-color-on-surface-variant)}.editor-section{padding:12px;display:grid;gap:12px;background:var(--editor-surface);border:var(--editor-border);border-radius:var(--editor-radius)}.editor-section-lg{gap:16px}.editor-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.editor-grid{display:grid;gap:12px}.editor-grid.two{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.editor-grid.tight{gap:8px}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.editor-muted{color:var(--editor-muted)}.editor-title{margin:6px 0 8px;font-size:1rem}.editor-title-row{display:flex;align-items:center;gap:8px}.editor-code{white-space:pre-wrap;background:var(--md-sys-color-surface-container);padding:8px;border-radius:6px;border:1px solid var(--md-sys-color-outline-variant)}.editor-card{border:1px solid var(--md-sys-color-outline-variant);padding:10px;border-radius:10px;display:grid;gap:8px;background:var(--md-sys-color-surface)}.editor-card.dashed{border-style:dashed}.editor-card-header{display:flex;align-items:center;gap:8px}.editor-card-title{flex:1;font-weight:600}.editor-divider{border-top:1px solid var(--md-sys-color-outline-variant);padding-top:8px}.editor-spacer{flex:1}.editor-field-min{min-width:260px}.editor-section .editor-field-min{width:260px;max-width:260px}.editor-field-240{width:240px}.editor-section .editor-field-240{width:240px;max-width:240px}.editor-json{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.editor-section .mat-mdc-form-field{width:100%;max-width:520px;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.editor-section .mat-mdc-form-field.full{max-width:none}.editor-icon-action--danger{color:var(--md-sys-color-error)}\n"] }]
2418
+ `, styles: [":host{display:block;container-type:inline-size;color:var(--pfx-settings-panel-text-primary, var(--md-sys-color-on-surface))}.editor-shell{display:grid;gap:12px}.editor-topbar{display:flex;align-items:start;justify-content:flex-start}.editor-mode-field{width:min(320px,100%)}.editor-diagnostics{display:grid;gap:8px}.editor-diagnostics-title{font-size:.95rem;font-weight:600;color:var(--md-sys-color-on-surface)}.editor-diagnostic{display:grid;gap:4px;padding:10px 12px;border-radius:10px;border:1px solid var(--md-sys-color-outline-variant);background:var(--md-sys-color-surface-container);color:var(--md-sys-color-on-surface)}.editor-diagnostic code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:var(--md-sys-color-on-surface-variant)}.editor-diagnostic.level-error{background:var(--md-sys-color-error-container);color:var(--md-sys-color-on-error-container);border-color:var(--md-sys-color-error)}.editor-diagnostic.level-warning{background:var(--md-sys-color-tertiary-container, var(--md-sys-color-surface-container));color:var(--md-sys-color-on-tertiary-container, var(--md-sys-color-on-surface));border-color:var(--md-sys-color-outline-variant)}.editor-tabs{--editor-surface: var(--pfx-settings-panel-surface-elevated, var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface)));--editor-border: 1px solid var(--pfx-settings-panel-border, var(--md-sys-color-outline-variant));--editor-radius: 12px;--editor-muted: var(--pfx-settings-panel-text-secondary, var(--md-sys-color-on-surface-variant))}.editor-section{padding:12px;display:grid;gap:12px;background:var(--editor-surface);border:var(--editor-border);border-radius:var(--editor-radius)}.editor-section-lg{gap:16px}.editor-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.editor-grid{display:grid;gap:12px}.editor-grid.two{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.editor-grid.tight{gap:8px}.editor-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.editor-muted{color:var(--editor-muted)}.editor-title{margin:6px 0 8px;font-size:1rem}.editor-title-row{display:flex;align-items:center;gap:8px}.editor-code{white-space:pre-wrap;background:var(--md-sys-color-surface-container);padding:8px;border-radius:6px;border:1px solid var(--md-sys-color-outline-variant)}.editor-card{border:1px solid var(--pfx-settings-panel-border, var(--md-sys-color-outline-variant));padding:10px;border-radius:10px;display:grid;gap:8px;background:var(--pfx-settings-panel-surface, var(--md-sys-color-surface))}.editor-card.dashed{border-style:dashed}.editor-card-header{display:flex;align-items:center;gap:8px}.editor-card-title{flex:1;font-weight:600}.editor-divider{border-top:1px solid var(--pfx-settings-panel-border, var(--md-sys-color-outline-variant));padding-top:8px}.editor-spacer{flex:1}.editor-field-min{min-width:260px}.editor-section .editor-field-min{width:260px;max-width:260px}.editor-field-240{width:240px}.editor-section .editor-field-240{width:240px;max-width:240px}@container (max-width: 640px){.editor-grid.two{grid-template-columns:1fr}.editor-field-min,.editor-section .editor-field-min,.editor-field-240,.editor-section .editor-field-240{min-width:0;width:100%;max-width:100%}}.editor-json{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.editor-section .mat-mdc-form-field{width:100%;max-width:520px;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.editor-section .mat-mdc-form-field.full{max-width:none}.editor-icon-action--danger{color:var(--md-sys-color-error)}\n"] }]
2043
2419
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2044
2420
  type: Inject,
2045
2421
  args: [SETTINGS_PANEL_DATA]
@@ -2184,7 +2560,7 @@ class TabsQuickSetupComponent {
2184
2560
  <mat-slide-toggle [(ngModel)]="model.stretchTabs" (ngModelChange)="updateState()">{{ t('editor.toggles.stretchTabs', 'Esticar abas') }}</mat-slide-toggle>
2185
2561
  </div>
2186
2562
  </div>
2187
- `, isInline: true, styles: [":host{display:block;color:var(--md-sys-color-on-surface)}.setup-root{display:grid;gap:12px;padding:8px;background:var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface));border:1px solid var(--md-sys-color-outline-variant);border-radius:12px}.setup-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.setup-row.wrap{flex-wrap:wrap}.setup-grid{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start}.setup-root .mat-mdc-form-field{width:100%;max-width:520px;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface)}.hint{color:var(--md-sys-color-on-surface-variant)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2_1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2_1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2_1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i8.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }] });
2563
+ `, isInline: true, styles: [":host{display:block;color:var(--md-sys-color-on-surface)}.setup-root{display:grid;gap:12px;padding:8px;background:var(--md-sys-color-surface-container-lowest, var(--md-sys-color-surface));border:1px solid var(--md-sys-color-outline-variant);border-radius:12px}.setup-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.setup-row.wrap{flex-wrap:wrap}.setup-grid{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:start}.setup-root .mat-mdc-form-field{width:100%;max-width:520px;--mdc-outlined-text-field-container-height: 48px;--mdc-outlined-text-field-outline-color: var(--md-sys-color-outline-variant);--mdc-outlined-text-field-hover-outline-color: var(--md-sys-color-outline);--mdc-outlined-text-field-focus-outline-color: var(--md-sys-color-primary);--mdc-outlined-text-field-error-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-focus-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-error-hover-outline-color: var(--md-sys-color-error);--mdc-outlined-text-field-label-text-color: var(--md-sys-color-on-surface-variant);--mdc-outlined-text-field-input-text-color: var(--md-sys-color-on-surface);--mdc-outlined-text-field-supporting-text-color: var(--md-sys-color-on-surface-variant)}.chip{display:inline-flex;align-items:center;gap:6px;padding:4px 8px;border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;background:var(--md-sys-color-surface)}.hint{color:var(--md-sys-color-on-surface-variant)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2_1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2_1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2_1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i5.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$1.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatSlideToggleModule }, { kind: "component", type: i9.MatSlideToggle, selector: "mat-slide-toggle", inputs: ["name", "id", "labelPosition", "aria-label", "aria-labelledby", "aria-describedby", "required", "color", "disabled", "disableRipple", "tabIndex", "checked", "hideIcon", "disabledInteractive"], outputs: ["change", "toggleChange"], exportAs: ["matSlideToggle"] }] });
2188
2564
  }
2189
2565
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: TabsQuickSetupComponent, decorators: [{
2190
2566
  type: Component,
@@ -2250,7 +2626,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
2250
2626
  * Paths follow TabsMetadata shape (patches are merged at config root).
2251
2627
  */
2252
2628
  const ENUMS = {
2629
+ appearanceVariant: ['underline', 'pill', 'segmented'],
2253
2630
  appearanceDensity: ['compact', 'comfortable', 'spacious'],
2631
+ tabTone: ['default', 'primary', 'accent', 'outlined'],
2254
2632
  alignTabs: ['start', 'center', 'end'],
2255
2633
  headerPosition: ['above', 'below'],
2256
2634
  matColor: ['primary', 'accent', 'warn'],
@@ -2269,6 +2647,11 @@ const TOKENS = [
2269
2647
  'pagination-icon-color',
2270
2648
  'divider-color',
2271
2649
  'background-color',
2650
+ 'track-background-color',
2651
+ 'track-border-color',
2652
+ 'active-tab-background-color',
2653
+ 'active-tab-outline-color',
2654
+ 'pill-radius',
2272
2655
  ];
2273
2656
  const TOKEN_CAPS = TOKENS.map((t) => ({
2274
2657
  path: `appearance.tokens.${t}`,
@@ -2279,6 +2662,7 @@ const TOKEN_CAPS = TOKENS.map((t) => ({
2279
2662
  const CAPS = [
2280
2663
  { path: 'meta', category: 'meta', valueKind: 'object', description: 'Metadata bag for tabs.' },
2281
2664
  { path: 'appearance', category: 'appearance', valueKind: 'object', description: 'Appearance settings.' },
2665
+ { path: 'appearance.variant', category: 'appearance', valueKind: 'enum', allowedValues: ENUMS.appearanceVariant, description: 'Visual tab strip variant (underline, pill, segmented).' },
2282
2666
  { path: 'appearance.density', category: 'appearance', valueKind: 'enum', allowedValues: ENUMS.appearanceDensity, description: 'Density preset.' },
2283
2667
  { path: 'appearance.themeClass', category: 'appearance', valueKind: 'string', description: 'Theme CSS class applied to root.' },
2284
2668
  { path: 'appearance.customCss', category: 'appearance', valueKind: 'string', description: 'Custom CSS injected into component.', safetyNotes: 'CSS is injected as raw string.' },
@@ -2320,6 +2704,8 @@ const CAPS = [
2320
2704
  { path: 'nav.links', category: 'nav', valueKind: 'array', description: 'Nav links array.' },
2321
2705
  { path: 'nav.links[].id', category: 'nav', valueKind: 'string', description: 'Link id.' },
2322
2706
  { path: 'nav.links[].label', category: 'nav', valueKind: 'string', description: 'Link label.' },
2707
+ { path: 'nav.links[].labelClass', category: 'nav', valueKind: 'string', description: 'Label class (string or string[]).' },
2708
+ { path: 'nav.links[].tone', category: 'nav', valueKind: 'enum', allowedValues: ENUMS.tabTone, description: 'Per-link emphasis tone (default, primary, accent, outlined).' },
2323
2709
  { path: 'nav.links[].active', category: 'nav', valueKind: 'boolean', description: 'Link active flag.' },
2324
2710
  { path: 'nav.links[].disabled', category: 'nav', valueKind: 'boolean', description: 'Disable link.' },
2325
2711
  { path: 'nav.links[].disableRipple', category: 'nav', valueKind: 'boolean', description: 'Disable ripple on link.' },
@@ -2331,6 +2717,7 @@ const CAPS = [
2331
2717
  { path: 'tabs[].textLabel', category: 'tabs', valueKind: 'string', description: 'Tab label.' },
2332
2718
  { path: 'tabs[].labelClass', category: 'tabs', valueKind: 'string', description: 'Label class (string or string[]).' },
2333
2719
  { path: 'tabs[].bodyClass', category: 'tabs', valueKind: 'string', description: 'Body class (string or string[]).' },
2720
+ { path: 'tabs[].tone', category: 'tabs', valueKind: 'enum', allowedValues: ENUMS.tabTone, description: 'Per-tab emphasis tone (default, primary, accent, outlined).' },
2334
2721
  { path: 'tabs[].ariaLabel', category: 'tabs', valueKind: 'string', description: 'aria-label for tab.' },
2335
2722
  { path: 'tabs[].ariaLabelledby', category: 'tabs', valueKind: 'string', description: 'aria-labelledby for tab.' },
2336
2723
  { path: 'tabs[].disabled', category: 'tabs', valueKind: 'boolean', description: 'Disable tab.' },
@@ -2378,6 +2765,7 @@ class TabsAiAdapter extends BaseAiAdapter {
2378
2765
  }
2379
2766
  const current = this.getCurrentConfig();
2380
2767
  const tabsPatch = [];
2768
+ const rootPatch = {};
2381
2769
  const warnings = [];
2382
2770
  for (const operationCandidate of operations) {
2383
2771
  const operation = this.toRecord(operationCandidate);
@@ -2418,17 +2806,30 @@ class TabsAiAdapter extends BaseAiAdapter {
2418
2806
  tabsPatch.push(contentPatch);
2419
2807
  continue;
2420
2808
  }
2809
+ if (operationId === 'layout.variant.set') {
2810
+ const layoutPatch = this.resolveLayoutVariantInput(operation, current);
2811
+ if (!layoutPatch) {
2812
+ warnings.push('tabs-component-edit-plan-layout-variant-input-invalid');
2813
+ continue;
2814
+ }
2815
+ Object.assign(rootPatch, deepMerge(rootPatch, layoutPatch));
2816
+ continue;
2817
+ }
2421
2818
  warnings.push(`tabs-component-edit-plan-operation-unsupported:${operationId || '<missing>'}`);
2422
2819
  }
2423
- if (tabsPatch.length === 0) {
2820
+ if (tabsPatch.length === 0 && Object.keys(rootPatch).length === 0) {
2424
2821
  return {
2425
2822
  type: 'error',
2426
2823
  message: this.t('ai.review.unsupportedPlan', 'O componentEditPlan das abas não possui operações suportadas para aplicar.'),
2427
2824
  warnings,
2428
2825
  };
2429
2826
  }
2827
+ const patch = { ...rootPatch };
2828
+ if (tabsPatch.length > 0) {
2829
+ patch['tabs'] = tabsPatch;
2830
+ }
2430
2831
  return {
2431
- patch: { tabs: tabsPatch },
2832
+ patch,
2432
2833
  explanation: this.summarizeOperations(operations, tabsPatch)
2433
2834
  ?? (typeof response['explanation'] === 'string'
2434
2835
  ? response['explanation']
@@ -2630,13 +3031,66 @@ class TabsAiAdapter extends BaseAiAdapter {
2630
3031
  return null;
2631
3032
  }
2632
3033
  const tab = { id, textLabel };
2633
- for (const key of ['icon', 'disabled', 'visible', 'content', 'widgets']) {
3034
+ for (const key of ['icon', 'labelClass', 'tone', 'disabled', 'visible', 'content', 'widgets']) {
2634
3035
  if (input[key] !== undefined) {
2635
3036
  tab[key] = input[key];
2636
3037
  }
2637
3038
  }
2638
3039
  return tab;
2639
3040
  }
3041
+ resolveLayoutVariantInput(operation, current) {
3042
+ const input = this.toRecord(operation['input'])
3043
+ ?? this.toRecord(operation['params'])
3044
+ ?? this.toRecord(operation['payload']);
3045
+ if (!input) {
3046
+ return null;
3047
+ }
3048
+ const patch = {};
3049
+ const appearance = {};
3050
+ const group = {};
3051
+ const nav = {};
3052
+ const behavior = {};
3053
+ const variant = this.toText(input['variant']);
3054
+ if (variant === 'underline' || variant === 'pill' || variant === 'segmented') {
3055
+ appearance['variant'] = variant;
3056
+ }
3057
+ const density = this.toText(input['density']);
3058
+ if (density === 'compact' || density === 'comfortable' || density === 'spacious') {
3059
+ appearance['density'] = density;
3060
+ }
3061
+ if (Object.keys(appearance).length > 0) {
3062
+ patch['appearance'] = appearance;
3063
+ }
3064
+ const mode = this.toText(input['mode']);
3065
+ const isNav = mode === 'nav' || (mode !== 'group' && !!current.nav?.links?.length);
3066
+ const headerPosition = this.toText(input['headerPosition']);
3067
+ if (headerPosition === 'above' || headerPosition === 'below') {
3068
+ group['headerPosition'] = headerPosition;
3069
+ }
3070
+ const alignTabs = this.toText(input['alignTabs']);
3071
+ if (alignTabs === 'start' || alignTabs === 'center' || alignTabs === 'end') {
3072
+ group['alignTabs'] = alignTabs;
3073
+ }
3074
+ if (typeof input['stretchTabs'] === 'boolean') {
3075
+ if (isNav) {
3076
+ nav['stretchTabs'] = input['stretchTabs'];
3077
+ }
3078
+ else {
3079
+ group['stretchTabs'] = input['stretchTabs'];
3080
+ }
3081
+ }
3082
+ if (Object.keys(group).length > 0) {
3083
+ patch['group'] = group;
3084
+ }
3085
+ if (Object.keys(nav).length > 0) {
3086
+ patch['nav'] = nav;
3087
+ }
3088
+ if (typeof input['lazyLoad'] === 'boolean') {
3089
+ behavior['lazyLoad'] = input['lazyLoad'];
3090
+ patch['behavior'] = behavior;
3091
+ }
3092
+ return Object.keys(patch).length > 0 ? patch : null;
3093
+ }
2640
3094
  resolveTabContentInput(operation, current) {
2641
3095
  const targetId = this.resolveTargetId(operation, current);
2642
3096
  if (!targetId) {
@@ -2687,6 +3141,13 @@ class TabsAiAdapter extends BaseAiAdapter {
2687
3141
  if (contentPatch?.id) {
2688
3142
  summaries.push(this.t('ai.review.setTabContent', 'Atualizar conteúdo da aba: {{label}}.', { label: contentPatch.textLabel || contentPatch.id }));
2689
3143
  }
3144
+ continue;
3145
+ }
3146
+ if (operationId === 'layout.variant.set') {
3147
+ const layoutPatch = this.resolveLayoutVariantInput(operation, this.getCurrentConfig());
3148
+ if (layoutPatch) {
3149
+ summaries.push(this.t('ai.review.setLayoutVariant', 'Atualizar variante/layout das abas.'));
3150
+ }
2690
3151
  }
2691
3152
  }
2692
3153
  if (summaries.length === 1) {
@@ -3196,10 +3657,13 @@ class PraxisTabs {
3196
3657
  destroy$ = new Subject();
3197
3658
  widgetDefinitionCache = new WeakMap();
3198
3659
  generatedContentForm = new FormGroup({});
3660
+ runtimeStyleEl;
3661
+ lastRuntimeCss = '';
3199
3662
  ngOnInit() {
3200
3663
  this.syncSelectionFromConfig();
3201
3664
  this.syncGeneratedContentForm();
3202
3665
  this.loadStoredConfigForCurrentIdentity({ warnMissingId: false });
3666
+ this.syncRuntimeStyleElement();
3203
3667
  }
3204
3668
  ngOnChanges(changes) {
3205
3669
  if (changes['tabsId'] || changes['componentInstanceId'] || changes['configPersistenceStrategy']) {
@@ -3211,15 +3675,17 @@ class PraxisTabs {
3211
3675
  // previous inputs in that case (for example, a newly selected parent
3212
3676
  // identity projected into a related-resource outlet).
3213
3677
  this.widgetDefinitionCache = new WeakMap();
3214
- // Runtime composition can replace the config object only to project a
3215
- // nested child input. Preserve the user's active tab when the incoming
3216
- // document did not author a different selectedIndex explicitly.
3678
+ // Sync selection/content without mutating remote storage on input hydration/recomputation.
3217
3679
  this.syncSelectionFromConfigChange(changes['config']);
3218
3680
  this.syncGeneratedContentForm();
3219
- // Persist when tabsId provided and the instance is storage-owned.
3220
- this.persistConfig(this.config);
3221
3681
  this.reapplyControlledSelectedIndex();
3222
3682
  }
3683
+ this.syncRuntimeStyleElement();
3684
+ }
3685
+ ngDoCheck() {
3686
+ if (!this.destroyed) {
3687
+ this.syncRuntimeStyleElement();
3688
+ }
3223
3689
  }
3224
3690
  ngOnDestroy() {
3225
3691
  this.destroyed = true;
@@ -3227,6 +3693,8 @@ class PraxisTabs {
3227
3693
  if (this.headerResizeFrame !== undefined) {
3228
3694
  this.hostElement.nativeElement.ownerDocument.defaultView?.cancelAnimationFrame(this.headerResizeFrame);
3229
3695
  }
3696
+ this.runtimeStyleEl?.remove();
3697
+ this.runtimeStyleEl = undefined;
3230
3698
  this.assistantSessions.removeContextSession(this.buildAiAssistantContextSnapshot().identity);
3231
3699
  this.aiAssistantStateSubscription?.unsubscribe();
3232
3700
  this.destroy$.next();
@@ -3894,6 +4362,7 @@ class PraxisTabs {
3894
4362
  });
3895
4363
  this.config = next;
3896
4364
  this.syncGeneratedContentForm();
4365
+ this.syncRuntimeStyleElement();
3897
4366
  this.persistConfig(this.config);
3898
4367
  this.selectedIndexSignal.set(this.config?.group?.selectedIndex ?? 0);
3899
4368
  }
@@ -3956,6 +4425,7 @@ class PraxisTabs {
3956
4425
  this.config = plan.canonicalConfig;
3957
4426
  this.syncSelectionFromConfig();
3958
4427
  this.syncGeneratedContentForm();
4428
+ this.syncRuntimeStyleElement();
3959
4429
  if (plan.runtime.rebuildLazyState) {
3960
4430
  this.groupLoaded.clear();
3961
4431
  this.navLoaded.clear();
@@ -3971,6 +4441,7 @@ class PraxisTabs {
3971
4441
  if (plan.persistence.saveConfig) {
3972
4442
  this.persistConfig(this.config);
3973
4443
  }
4444
+ this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
3974
4445
  }
3975
4446
  storageKey(options = {}) {
3976
4447
  const id = this.componentKeyId(options);
@@ -3988,6 +4459,8 @@ class PraxisTabs {
3988
4459
  if (stored) {
3989
4460
  this.config = stored;
3990
4461
  this.syncGeneratedContentForm();
4462
+ this.syncRuntimeStyleElement();
4463
+ this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
3991
4464
  }
3992
4465
  this.syncSelectionFromConfig();
3993
4466
  this.reapplyControlledSelectedIndex();
@@ -4100,6 +4573,7 @@ class PraxisTabs {
4100
4573
  this.config = next;
4101
4574
  this.syncSelectionFromConfig();
4102
4575
  this.syncGeneratedContentForm();
4576
+ this.syncRuntimeStyleElement();
4103
4577
  this.persistConfig(this.config);
4104
4578
  this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
4105
4579
  }
@@ -4230,6 +4704,67 @@ class PraxisTabs {
4230
4704
  { kind: 'link', id: linkId, index: linkIndex },
4231
4705
  ];
4232
4706
  }
4707
+ effectiveVariant() {
4708
+ const variant = this.config?.appearance?.variant;
4709
+ if (variant === 'pill' || variant === 'segmented') {
4710
+ return variant;
4711
+ }
4712
+ return 'underline';
4713
+ }
4714
+ resolveTabLabelClass(tab) {
4715
+ return this.buildTabClassList(tab?.labelClass, tab?.tone);
4716
+ }
4717
+ resolveLinkClass(link) {
4718
+ return this.buildTabClassList(link?.labelClass, link?.tone);
4719
+ }
4720
+ buildTabClassList(labelClass, tone) {
4721
+ const classes = [];
4722
+ if (Array.isArray(labelClass)) {
4723
+ for (const item of labelClass) {
4724
+ if (typeof item === 'string' && item.trim()) {
4725
+ classes.push(...item.trim().split(/[\s,]+/).filter(Boolean));
4726
+ }
4727
+ }
4728
+ }
4729
+ else if (typeof labelClass === 'string' && labelClass.trim()) {
4730
+ classes.push(...labelClass.trim().split(/[\s,]+/).filter(Boolean));
4731
+ }
4732
+ if (tone && tone !== 'default') {
4733
+ classes.push(`praxis-tab-tone--${tone}`);
4734
+ }
4735
+ return Array.from(new Set(classes)).join(' ');
4736
+ }
4737
+ syncRuntimeStyleElement() {
4738
+ const cssParts = [this.safeCustomCss(), this.styleCss()].filter((part) => typeof part === 'string' && !!part.trim());
4739
+ const nextCss = cssParts.join('\n');
4740
+ if (nextCss === this.lastRuntimeCss) {
4741
+ if (!nextCss || this.runtimeStyleEl?.isConnected) {
4742
+ return;
4743
+ }
4744
+ }
4745
+ this.lastRuntimeCss = nextCss;
4746
+ const host = this.hostElement?.nativeElement;
4747
+ const doc = host?.ownerDocument;
4748
+ if (!host || !doc)
4749
+ return;
4750
+ if (!nextCss) {
4751
+ this.runtimeStyleEl?.remove();
4752
+ this.runtimeStyleEl = undefined;
4753
+ return;
4754
+ }
4755
+ if (!this.runtimeStyleEl) {
4756
+ const styleEl = doc.createElement('style');
4757
+ styleEl.setAttribute('data-praxis-tabs-runtime-style', this.styleScopeId());
4758
+ host.prepend(styleEl);
4759
+ this.runtimeStyleEl = styleEl;
4760
+ }
4761
+ else {
4762
+ this.runtimeStyleEl.setAttribute('data-praxis-tabs-runtime-style', this.styleScopeId());
4763
+ }
4764
+ if (this.runtimeStyleEl.textContent !== nextCss) {
4765
+ this.runtimeStyleEl.textContent = nextCss;
4766
+ }
4767
+ }
4233
4768
  styleScopeId() {
4234
4769
  const scopeSeed = [this.tabsId, this.componentInstanceId]
4235
4770
  .filter((v) => typeof v === 'string' && !!v.trim())
@@ -4284,69 +4819,86 @@ class PraxisTabs {
4284
4819
  if (!t)
4285
4820
  return null;
4286
4821
  const scope = `.praxis-tabs-root[data-tabs-id="${this.styleScopeId()}"]`;
4822
+ const groupHeader = `${scope} > .praxis-tabs-group > .mat-mdc-tab-header`;
4823
+ const navHeader = `${scope} > .praxis-tabs-nav-bar`;
4824
+ const headerContainers = `${groupHeader}, ${navHeader}`;
4287
4825
  const rules = [];
4826
+ const headerVars = [];
4288
4827
  const push = (selector, decls) => {
4289
- rules.push(`${scope} ${selector}{${decls.join('')}}`);
4828
+ const s = selector.trim();
4829
+ rules.push(`${groupHeader} ${s}, ${navHeader} ${s}{${decls.join('')}}`);
4830
+ };
4831
+ const pushHeaderContainer = (decls) => {
4832
+ rules.push(`${headerContainers}{${decls.join('')}}`);
4290
4833
  };
4291
- // Active indicator underline
4834
+ const pushVariantHeader = (variantClass, decls) => {
4835
+ rules.push(`${scope}.${variantClass} > .praxis-tabs-group > .mat-mdc-tab-header, ${scope}.${variantClass} > .praxis-tabs-nav-bar{${decls.join('')}}`);
4836
+ };
4837
+ const pushVariantTab = (variantClass, selector, decls) => {
4838
+ const s = selector.trim();
4839
+ rules.push(`${scope}.${variantClass} > .praxis-tabs-group > .mat-mdc-tab-header ${s}, ${scope}.${variantClass} > .praxis-tabs-nav-bar ${s}{${decls.join('')}}`);
4840
+ };
4841
+ // Active indicator underline (group + nav)
4292
4842
  const activeIndicatorColor = this.sanitizeCssValue(t['active-indicator-color']);
4293
4843
  if (activeIndicatorColor) {
4294
- push(' .mat-mdc-tab .mdc-tab-indicator__content--underline', [`background-color:${activeIndicatorColor}!important;`]);
4844
+ push('.mdc-tab .mdc-tab-indicator__content--underline', [`background-color:${activeIndicatorColor}!important;`]);
4295
4845
  }
4296
4846
  // Active label
4297
4847
  const activeLabelColor = this.sanitizeCssValue(t['active-label-text-color']);
4298
4848
  if (activeLabelColor) {
4299
- push(' .mdc-tab--active .mdc-tab__text-label', [
4849
+ headerVars.push(`--p-tabs-active-label-color:${activeLabelColor};`);
4850
+ push('.mdc-tab--active .mdc-tab__text-label', [
4300
4851
  `color:${activeLabelColor}!important;`,
4301
4852
  ]);
4302
4853
  }
4303
4854
  const activeHoverLabelColor = this.sanitizeCssValue(t['active-hover-label-text-color']);
4304
4855
  if (activeHoverLabelColor) {
4305
- push(' .mdc-tab--active:hover .mdc-tab__text-label', [
4856
+ push('.mdc-tab--active:hover .mdc-tab__text-label', [
4306
4857
  `color:${activeHoverLabelColor}!important;`,
4307
4858
  ]);
4308
4859
  }
4309
4860
  const activeFocusLabelColor = this.sanitizeCssValue(t['active-focus-label-text-color']);
4310
4861
  if (activeFocusLabelColor) {
4311
- push(' .mdc-tab--active:focus .mdc-tab__text-label', [
4862
+ push('.mdc-tab--active:focus .mdc-tab__text-label', [
4312
4863
  `color:${activeFocusLabelColor}!important;`,
4313
4864
  ]);
4314
4865
  }
4315
4866
  const activeFocusIndicatorColor = this.sanitizeCssValue(t['active-focus-indicator-color']);
4316
4867
  if (activeFocusIndicatorColor) {
4317
- push(' .mdc-tab--active:focus .mdc-tab-indicator__content--underline', [
4868
+ push('.mdc-tab--active:focus .mdc-tab-indicator__content--underline', [
4318
4869
  `background-color:${activeFocusIndicatorColor}!important;`,
4319
4870
  ]);
4320
4871
  }
4321
4872
  const activeHoverIndicatorColor = this.sanitizeCssValue(t['active-hover-indicator-color']);
4322
4873
  if (activeHoverIndicatorColor) {
4323
- push(' .mdc-tab--active:hover .mdc-tab-indicator__content--underline', [
4874
+ push('.mdc-tab--active:hover .mdc-tab-indicator__content--underline', [
4324
4875
  `background-color:${activeHoverIndicatorColor}!important;`,
4325
4876
  ]);
4326
4877
  }
4327
4878
  // Inactive label
4328
4879
  const inactiveLabelColor = this.sanitizeCssValue(t['inactive-label-text-color']);
4329
4880
  if (inactiveLabelColor) {
4330
- push(' .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label', [
4881
+ headerVars.push(`--p-tabs-inactive-label-color:${inactiveLabelColor};`);
4882
+ push('.mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label', [
4331
4883
  `color:${inactiveLabelColor}!important;`,
4332
4884
  ]);
4333
4885
  }
4334
4886
  const inactiveHoverLabelColor = this.sanitizeCssValue(t['inactive-hover-label-text-color']);
4335
4887
  if (inactiveHoverLabelColor) {
4336
- push(' .mdc-tab:not(.mdc-tab--active):hover .mdc-tab__text-label', [
4888
+ push('.mdc-tab:not(.mdc-tab--active):hover .mdc-tab__text-label', [
4337
4889
  `color:${inactiveHoverLabelColor}!important;`,
4338
4890
  ]);
4339
4891
  }
4340
4892
  const inactiveFocusLabelColor = this.sanitizeCssValue(t['inactive-focus-label-text-color']);
4341
4893
  if (inactiveFocusLabelColor) {
4342
- push(' .mdc-tab:not(.mdc-tab--active):focus .mdc-tab__text-label', [
4894
+ push('.mdc-tab:not(.mdc-tab--active):focus .mdc-tab__text-label', [
4343
4895
  `color:${inactiveFocusLabelColor}!important;`,
4344
4896
  ]);
4345
4897
  }
4346
4898
  // Pagination chevrons
4347
4899
  const paginationIconColor = this.sanitizeCssValue(t['pagination-icon-color']);
4348
4900
  if (paginationIconColor) {
4349
- push(' .mat-mdc-tab-header-pagination-chevron', [
4901
+ push('.mat-mdc-tab-header-pagination-chevron', [
4350
4902
  `color:${paginationIconColor}!important;`,
4351
4903
  ]);
4352
4904
  }
@@ -4357,13 +4909,49 @@ class PraxisTabs {
4357
4909
  containerDecls.push(`border-bottom-color:${dividerColor}!important;`);
4358
4910
  }
4359
4911
  if (containerDecls.length) {
4360
- push(' .mat-mdc-tab-header', containerDecls);
4361
- push(' .mat-mdc-tab-nav-bar', containerDecls);
4912
+ pushHeaderContainer(containerDecls);
4362
4913
  }
4363
4914
  const backgroundColor = this.sanitizeCssValue(t['background-color']);
4364
4915
  if (backgroundColor) {
4365
- push(' .mat-mdc-tab-header', [`background:${backgroundColor}!important;`]);
4366
- push(' .mat-mdc-tab-nav-bar', [`background:${backgroundColor}!important;`]);
4916
+ pushHeaderContainer([`background:${backgroundColor}!important;`]);
4917
+ }
4918
+ // Pill & Segmented surface tokens
4919
+ const trackBackgroundColor = this.sanitizeCssValue(t['track-background-color']);
4920
+ if (trackBackgroundColor) {
4921
+ headerVars.push(`--p-tabs-track-bg:${trackBackgroundColor};`);
4922
+ pushVariantHeader('variant-pill', [`background:${trackBackgroundColor}!important;`]);
4923
+ pushVariantHeader('variant-segmented', [`background:${trackBackgroundColor}!important;`]);
4924
+ }
4925
+ const trackBorderColor = this.sanitizeCssValue(t['track-border-color']);
4926
+ if (trackBorderColor) {
4927
+ headerVars.push(`--p-tabs-track-border:${trackBorderColor};`);
4928
+ pushVariantHeader('variant-pill', [`border-color:${trackBorderColor}!important;`]);
4929
+ pushVariantHeader('variant-segmented', [`border-color:${trackBorderColor}!important;`]);
4930
+ }
4931
+ const activeTabBackgroundColor = this.sanitizeCssValue(t['active-tab-background-color']);
4932
+ if (activeTabBackgroundColor) {
4933
+ headerVars.push(`--p-tabs-active-bg:${activeTabBackgroundColor};`);
4934
+ pushVariantTab('variant-pill', '.mdc-tab.mdc-tab--active', [`background-color:${activeTabBackgroundColor}!important;`]);
4935
+ pushVariantTab('variant-segmented', '.mdc-tab.mdc-tab--active', [`background-color:${activeTabBackgroundColor}!important;`]);
4936
+ }
4937
+ const activeTabOutlineColor = this.sanitizeCssValue(t['active-tab-outline-color']);
4938
+ if (activeTabOutlineColor) {
4939
+ headerVars.push(`--p-tabs-active-outline:${activeTabOutlineColor};`);
4940
+ pushVariantTab('variant-pill', '.mdc-tab.praxis-tab-tone--outlined', [`border-color:${activeTabOutlineColor}!important;`]);
4941
+ pushVariantTab('variant-pill', '.mdc-tab:focus-visible', [`border-color:${activeTabOutlineColor}!important;`]);
4942
+ pushVariantTab('variant-segmented', '.mdc-tab.praxis-tab-tone--outlined', [`border-color:${activeTabOutlineColor}!important;`]);
4943
+ pushVariantTab('variant-segmented', '.mdc-tab:focus-visible', [`border-color:${activeTabOutlineColor}!important;`]);
4944
+ }
4945
+ const pillRadius = this.sanitizeCssValue(t['pill-radius']);
4946
+ if (pillRadius) {
4947
+ headerVars.push(`--p-tabs-pill-radius:${pillRadius};`);
4948
+ pushVariantHeader('variant-pill', [`border-radius:${pillRadius}!important;`]);
4949
+ pushVariantTab('variant-pill', '.mdc-tab', [`border-radius:${pillRadius}!important;`]);
4950
+ pushVariantHeader('variant-segmented', [`border-radius:${pillRadius}!important;`]);
4951
+ pushVariantTab('variant-segmented', '.mdc-tab', [`border-radius:${pillRadius}!important;`]);
4952
+ }
4953
+ if (headerVars.length) {
4954
+ rules.unshift(`${headerContainers}{${headerVars.join('')}}`);
4367
4955
  }
4368
4956
  return rules.length ? rules.join('\n') : null;
4369
4957
  }
@@ -4389,6 +4977,9 @@ class PraxisTabs {
4389
4977
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.14", type: PraxisTabs, isStandalone: true, selector: "praxis-tabs", inputs: { config: "config", tabsId: "tabsId", componentInstanceId: "componentInstanceId", configPersistenceStrategy: "configPersistenceStrategy", selectedIndex: "selectedIndex", enableCustomization: "enableCustomization", form: "form", context: "context" }, outputs: { animationDone: "animationDone", focusChange: "focusChange", selectedIndexChange: "selectedIndexChange", selectedTabChange: "selectedTabChange", indexFocused: "indexFocused", selectFocusedIndex: "selectFocusedIndex", configChange: "configChange", widgetEvent: "widgetEvent" }, providers: [providePraxisI18nConfig(PRAXIS_TABS_I18N_CONFIG)], viewQueries: [{ propertyName: "groupComponent", first: true, predicate: MatTabGroup, descendants: true }, { propertyName: "navComponent", first: true, predicate: MatTabNav, descendants: true }], usesOnChanges: true, ngImport: i0, template: `
4390
4978
  <div
4391
4979
  class="praxis-tabs-root"
4980
+ [class.variant-underline]="effectiveVariant() === 'underline'"
4981
+ [class.variant-pill]="effectiveVariant() === 'pill'"
4982
+ [class.variant-segmented]="effectiveVariant() === 'segmented'"
4392
4983
  [class.density-compact]="config?.appearance?.density === 'compact'"
4393
4984
  [class.density-comfortable]="config?.appearance?.density === 'comfortable'"
4394
4985
  [class.density-spacious]="config?.appearance?.density === 'spacious'"
@@ -4397,14 +4988,6 @@ class PraxisTabs {
4397
4988
  [ngClass]="config?.appearance?.themeClass || ''"
4398
4989
  [attr.data-tabs-id]="styleScopeId()"
4399
4990
  >
4400
- <!-- Inline custom CSS, if provided -->
4401
- @if (safeCustomCss(); as css) {
4402
- <style [innerHTML]="css"></style>
4403
- }
4404
- <!-- Runtime style derived from tokens -->
4405
- @if (styleCss(); as s) {
4406
- <style [innerHTML]="s"></style>
4407
- }
4408
4991
 
4409
4992
  @if (enableCustomization) {
4410
4993
  <div class="tabs-ai-assistant">
@@ -4472,6 +5055,8 @@ class PraxisTabs {
4472
5055
  @if (isNavMode()) {
4473
5056
  <nav
4474
5057
  mat-tab-nav-bar
5058
+ [class.praxis-tabs-nav-bar]="true"
5059
+ [class.praxis-tabs-stretch]="!!config?.nav?.stretchTabs"
4475
5060
  [tabPanel]="tabPanel"
4476
5061
  cdkDropList
4477
5062
  cdkDropListOrientation="horizontal"
@@ -4499,6 +5084,7 @@ class PraxisTabs {
4499
5084
  [disabled]="entry.link.disabled"
4500
5085
  [disableRipple]="config?.nav?.disableRipple || entry.link.disableRipple"
4501
5086
  [fitInkBarToContent]="entry.link.fitInkBarToContent || false"
5087
+ [ngClass]="resolveLinkClass(entry.link)"
4502
5088
  [id]="entry.link.id || ''"
4503
5089
  (click)="onNavClick(entry.index)"
4504
5090
  >
@@ -4559,6 +5145,10 @@ class PraxisTabs {
4559
5145
  } @else {
4560
5146
  <mat-tab-group
4561
5147
  [class.praxis-tabs-group--header-only]="!shouldRenderGroupBody()"
5148
+ [class.praxis-tabs-stretch]="!!config?.group?.stretchTabs"
5149
+ [class.align-start]="(config?.group?.alignTabs || 'start') === 'start'"
5150
+ [class.align-center]="config?.group?.alignTabs === 'center'"
5151
+ [class.align-end]="config?.group?.alignTabs === 'end'"
4562
5152
  [dynamicHeight]="config?.group?.dynamicHeight"
4563
5153
  [disableRipple]="config?.group?.disableRipple"
4564
5154
  [disablePagination]="config?.group?.disablePagination"
@@ -4583,7 +5173,7 @@ class PraxisTabs {
4583
5173
  @for (entry of visibleTabEntries(); track trackVisibleTab(i, entry); let i = $index) {
4584
5174
  <mat-tab
4585
5175
  [disabled]="entry.tab.disabled"
4586
- [labelClass]="entry.tab.labelClass ?? ''"
5176
+ [labelClass]="resolveTabLabelClass(entry.tab)"
4587
5177
  [bodyClass]="entry.tab.bodyClass ?? ''"
4588
5178
  [id]="entry.tab.id || ''"
4589
5179
  [attr.aria-label]="entry.tab.ariaLabel || null"
@@ -4692,7 +5282,7 @@ class PraxisTabs {
4692
5282
  </button>
4693
5283
  }
4694
5284
  </div>
4695
- `, isInline: true, styles: [".praxis-tabs-root{position:relative;display:block}.praxis-tabs-group.align-start .mat-mdc-tab-header{justify-content:flex-start}.praxis-tabs-group.align-center .mat-mdc-tab-header{justify-content:center}.praxis-tabs-group.align-end .mat-mdc-tab-header{justify-content:flex-end}.praxis-tabs-group--header-only .mat-mdc-tab-body-wrapper{display:none}:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body>.mat-mdc-tab-body-content{overflow:clip}.praxis-tabs-nav-panel--header-only{display:none}.density-compact .mat-mdc-tab-body-content{padding:8px}.density-comfortable .mat-mdc-tab-body-content{padding:16px}.density-spacious .mat-mdc-tab-body-content{padding:24px}.praxis-tabs-widget-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--p-tabs-widget-stack-gap, 16px);min-width:0}.praxis-tabs-widget-surface{display:block;min-width:0}.density-compact .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 12px}.density-comfortable .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 16px}.density-spacious .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 24px}.tabs-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.tabs-ai-assistant-trigger{box-shadow:var(--md-sys-elevation-level2)}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.edit-fab-secondary{right:56px}.tab-empty{padding:16px;color:var(--md-sys-color-on-surface-variant);font-style:italic}.high-contrast{filter:contrast(1.2)}.reduce-motion{--mat-animation-duration: 0ms}.drag-handle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px;cursor:grab}.tab-label-icon{font-size:18px;width:18px;height:18px;margin-right:6px;vertical-align:middle}:host-context(.pdx-gridster-item) .praxis-tabs-root{display:flex;flex-direction:column;height:100%;min-height:0}:host-context(.pdx-gridster-item) .praxis-tabs-group,:host-context(.pdx-gridster-item) .mat-mdc-tab-group{flex:1 1 auto;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-wrapper,:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{height:100%;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{overflow:auto}:host-context(.pdx-gridster-item) .praxis-tabnav-content{flex:1 1 auto;min-height:0;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2_1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2_1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i3.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: i3.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i10.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i6.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i9.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i9.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i9.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "directive", type: DynamicFieldLoaderDirective, selector: "[dynamicFieldLoader]", inputs: ["fields", "formGroup", "enableExternalControlBinding", "itemTemplate", "debugTrace", "debugTraceLabel", "readonlyMode", "disabledMode", "presentationMode", "visible", "canvasMode"], outputs: ["componentsCreated", "fieldCreated", "fieldDestroyed", "renderError", "canvasMouseEnter", "canvasMouseLeave", "canvasClick", "canvasFocus"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "component", type: PraxisAiAssistantShellComponent, selector: "praxis-ai-assistant-shell", inputs: ["labels", "mode", "state", "contextItems", "attachments", "messages", "quickReplies", "recommendedIntents", "prompt", "statusText", "errorText", "testIdPrefix", "panelTestId", "submitTestId", "applyTestId", "primaryAction", "secondaryActions", "governanceActions", "busy", "canSubmit", "canApply", "submitOnEnter", "showAttachAction", "enablePastedAttachments", "enableFileAttachments", "attachmentAccept", "attachmentMultiple", "voiceInputMode", "voiceLanguage", "draggable", "resizable", "minWidth", "minHeight", "margin", "layout"], outputs: ["promptChange", "submitPrompt", "apply", "retryTurn", "cancelTurn", "shellAction", "close", "attach", "attachmentsPasted", "attachmentsSelected", "removeAttachment", "messageAction", "editMessage", "resendMessage", "quickReply", "recommendedIntent", "layoutChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
5285
+ `, isInline: true, styles: [".praxis-tabs-root{position:relative;display:block}.praxis-tabs-group.align-start .mat-mdc-tab-header{justify-content:flex-start}.praxis-tabs-group.align-center .mat-mdc-tab-header{justify-content:center}.praxis-tabs-group.align-end .mat-mdc-tab-header{justify-content:flex-end}.praxis-tabs-group--header-only .mat-mdc-tab-body-wrapper{display:none}:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body>.mat-mdc-tab-body-content{overflow:clip}.praxis-tabs-nav-panel--header-only{display:none}.density-compact .mat-mdc-tab-body-content{padding:8px}.density-comfortable .mat-mdc-tab-body-content{padding:16px}.density-spacious .mat-mdc-tab-body-content{padding:24px}.praxis-tabs-widget-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--p-tabs-widget-stack-gap, 16px);min-width:0}.praxis-tabs-widget-surface{display:block;min-width:0}.density-compact .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 12px}.density-comfortable .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 16px}.density-spacious .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 24px}.tabs-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.tabs-ai-assistant-trigger{box-shadow:var(--md-sys-elevation-level2)}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.edit-fab-secondary{right:56px}.tab-empty{padding:16px;color:var(--md-sys-color-on-surface-variant);font-style:italic}.high-contrast{filter:contrast(1.2)}.reduce-motion{--mat-animation-duration: 0ms}.drag-handle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px;cursor:grab}.tab-label-icon{font-size:18px;width:18px;height:18px;margin-right:6px;vertical-align:middle}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar{--mat-tab-header-divider-height: 0px;--mat-tab-header-divider-color: transparent;display:flex;align-items:center;width:fit-content;max-width:100%;padding:var(--p-tabs-track-padding, 4px);border-radius:var(--p-tabs-pill-radius, 9999px);border:1px solid var(--p-tabs-track-border, var(--md-sys-color-outline-variant, rgba(128, 128, 128, .28)));background:var(--p-tabs-track-bg, var(--md-sys-color-surface-container-low, rgba(0, 0, 0, .04)));box-sizing:border-box;border-bottom-width:1px}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar{border-radius:var(--p-tabs-pill-radius, 12px);padding:var(--p-tabs-track-padding, 3px)}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.align-center>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.align-center>.mat-mdc-tab-header{align-self:center}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.align-end>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.align-end>.mat-mdc-tab-header{align-self:flex-end}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar.praxis-tabs-stretch,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar.praxis-tabs-stretch{width:100%;align-self:stretch}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-header-pagination,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar>.mat-mdc-tab-header-pagination,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-header-pagination,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar>.mat-mdc-tab-header-pagination{border-radius:inherit;box-shadow:none}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-label-container,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar>.mat-mdc-tab-link-container,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-label-container,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar>.mat-mdc-tab-link-container{border-top:0;border-top-width:0;border-bottom:0;border-bottom-width:0}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mat-mdc-tab-labels,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mat-mdc-tab-links,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mat-mdc-tab-labels,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mat-mdc-tab-links{gap:var(--p-tabs-pill-gap, 4px);align-items:center}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mat-mdc-tab-labels,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mat-mdc-tab-links{gap:var(--p-tabs-pill-gap, 2px)}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab{min-height:40px;height:40px;padding:0 18px;margin:0;border-radius:var(--p-tabs-pill-radius, 9999px);border:1.5px solid transparent;overflow:hidden;flex-grow:0;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar.praxis-tabs-stretch .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar.praxis-tabs-stretch .mdc-tab{flex-grow:1}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab{border-radius:calc(var(--p-tabs-pill-radius, 12px) - 4px)}:host ::ng-deep .praxis-tabs-root.variant-pill.density-compact>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill.density-compact>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-compact>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-compact>.praxis-tabs-nav-bar .mdc-tab{min-height:34px;height:34px;padding:0 14px}:host ::ng-deep .praxis-tabs-root.variant-pill.density-spacious>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill.density-spacious>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-spacious>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-spacious>.praxis-tabs-nav-bar .mdc-tab{min-height:46px;height:46px;padding:0 22px}:host ::ng-deep .praxis-tabs-root.variant-pill.reduce-motion>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill.reduce-motion>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.reduce-motion>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.reduce-motion>.praxis-tabs-nav-bar .mdc-tab{transition:none}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab-indicator__content--underline,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab-indicator__content--underline{display:none;opacity:0;height:0}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab .mdc-tab__text-label{color:var(--p-tabs-inactive-label-color, var(--md-sys-color-on-surface-variant, inherit));font-weight:500;transition:color .15s ease}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:not(.mdc-tab--active):hover,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab:not(.mdc-tab--active):hover,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:not(.mdc-tab--active):hover,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab:not(.mdc-tab--active):hover{background-color:var(--p-tabs-hover-bg, rgba(128, 128, 128, .08))}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active{background-color:var(--p-tabs-active-bg, var(--md-sys-color-secondary-container, rgba(25, 118, 210, .14)))}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active{box-shadow:0 1px 2px #00000024}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--p-tabs-active-label-color, var(--md-sys-color-on-secondary-container, inherit));font-weight:600}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--outlined{border-color:var(--p-tabs-active-outline, var(--md-sys-color-primary, #8ab4f8))}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator{display:none}:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .tab-label-icon,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .tab-label-icon{color:var(--p-tabs-primary-label-color, var(--md-sys-color-primary, #8ab4f8))!important}:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .tab-label-icon,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .tab-label-icon{color:var(--p-tabs-accent-label-color, var(--md-sys-color-primary, #8ab4f8))!important}:host ::ng-deep .praxis-tabs-root.variant-underline>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-underline>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--outlined{border:1px solid var(--p-tabs-active-outline, var(--md-sys-color-primary, #8ab4f8));border-radius:9999px}:host-context(.pdx-gridster-item) .praxis-tabs-root{display:flex;flex-direction:column;height:100%;min-height:0}:host-context(.pdx-gridster-item) .praxis-tabs-group,:host-context(.pdx-gridster-item) .mat-mdc-tab-group{flex:1 1 auto;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-wrapper,:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{height:100%;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{overflow:auto}:host-context(.pdx-gridster-item) .praxis-tabnav-content{flex:1 1 auto;min-height:0;overflow:auto}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2_1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2_1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: MatTabsModule }, { kind: "directive", type: i3.MatTabLabel, selector: "[mat-tab-label], [matTabLabel]" }, { kind: "component", type: i3.MatTab, selector: "mat-tab", inputs: ["disabled", "label", "aria-label", "aria-labelledby", "labelClass", "bodyClass", "id"], exportAs: ["matTab"] }, { kind: "component", type: i3.MatTabGroup, selector: "mat-tab-group", inputs: ["color", "fitInkBarToContent", "mat-stretch-tabs", "mat-align-tabs", "dynamicHeight", "selectedIndex", "headerPosition", "animationDuration", "contentTabIndex", "disablePagination", "disableRipple", "preserveContent", "backgroundColor", "aria-label", "aria-labelledby"], outputs: ["selectedIndexChange", "focusChange", "animationDone", "selectedTabChange"], exportAs: ["matTabGroup"] }, { kind: "component", type: i3.MatTabNav, selector: "[mat-tab-nav-bar]", inputs: ["fitInkBarToContent", "mat-stretch-tabs", "animationDuration", "backgroundColor", "disableRipple", "color", "tabPanel"], exportAs: ["matTabNavBar", "matTabNav"] }, { kind: "component", type: i3.MatTabNavPanel, selector: "mat-tab-nav-panel", inputs: ["id"], exportAs: ["matTabNavPanel"] }, { kind: "component", type: i3.MatTabLink, selector: "[mat-tab-link], [matTabLink]", inputs: ["active", "disabled", "disableRipple", "tabIndex", "id"], exportAs: ["matTabLink"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i11.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisIconButtonComponent, selector: "button[praxisIconButton]", inputs: ["praxisIconButton", "size", "appearance", "presentation", "pressed", "busy"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i6$1.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i6$1.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: DragDropModule }, { kind: "directive", type: i10.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep", "cdkDropListElementContainer", "cdkDropListHasAnchor"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i10.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer", "cdkDragScale"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i10.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "directive", type: DynamicFieldLoaderDirective, selector: "[dynamicFieldLoader]", inputs: ["fields", "formGroup", "enableExternalControlBinding", "itemTemplate", "debugTrace", "debugTraceLabel", "readonlyMode", "disabledMode", "presentationMode", "visible", "canvasMode"], outputs: ["componentsCreated", "fieldCreated", "fieldDestroyed", "renderError", "canvasMouseEnter", "canvasMouseLeave", "canvasClick", "canvasFocus"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "component", type: PraxisAiAssistantShellComponent, selector: "praxis-ai-assistant-shell", inputs: ["labels", "mode", "state", "contextItems", "attachments", "messages", "quickReplies", "recommendedIntents", "prompt", "statusText", "errorText", "testIdPrefix", "panelTestId", "submitTestId", "applyTestId", "primaryAction", "secondaryActions", "governanceActions", "busy", "canSubmit", "canApply", "preview", "submitOnEnter", "showAttachAction", "enablePastedAttachments", "enableFileAttachments", "attachmentAccept", "attachmentMultiple", "voiceInputMode", "voiceLanguage", "draggable", "resizable", "minWidth", "minHeight", "margin", "layout"], outputs: ["promptChange", "submitPrompt", "apply", "retryTurn", "cancelTurn", "shellAction", "close", "attach", "attachmentsPasted", "attachmentsSelected", "removeAttachment", "messageAction", "editMessage", "resendMessage", "quickReply", "recommendedIntent", "blockAction", "layoutChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
4696
5286
  }
4697
5287
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisTabs, decorators: [{
4698
5288
  type: Component,
@@ -4713,6 +5303,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4713
5303
  ], template: `
4714
5304
  <div
4715
5305
  class="praxis-tabs-root"
5306
+ [class.variant-underline]="effectiveVariant() === 'underline'"
5307
+ [class.variant-pill]="effectiveVariant() === 'pill'"
5308
+ [class.variant-segmented]="effectiveVariant() === 'segmented'"
4716
5309
  [class.density-compact]="config?.appearance?.density === 'compact'"
4717
5310
  [class.density-comfortable]="config?.appearance?.density === 'comfortable'"
4718
5311
  [class.density-spacious]="config?.appearance?.density === 'spacious'"
@@ -4721,14 +5314,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4721
5314
  [ngClass]="config?.appearance?.themeClass || ''"
4722
5315
  [attr.data-tabs-id]="styleScopeId()"
4723
5316
  >
4724
- <!-- Inline custom CSS, if provided -->
4725
- @if (safeCustomCss(); as css) {
4726
- <style [innerHTML]="css"></style>
4727
- }
4728
- <!-- Runtime style derived from tokens -->
4729
- @if (styleCss(); as s) {
4730
- <style [innerHTML]="s"></style>
4731
- }
4732
5317
 
4733
5318
  @if (enableCustomization) {
4734
5319
  <div class="tabs-ai-assistant">
@@ -4796,6 +5381,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4796
5381
  @if (isNavMode()) {
4797
5382
  <nav
4798
5383
  mat-tab-nav-bar
5384
+ [class.praxis-tabs-nav-bar]="true"
5385
+ [class.praxis-tabs-stretch]="!!config?.nav?.stretchTabs"
4799
5386
  [tabPanel]="tabPanel"
4800
5387
  cdkDropList
4801
5388
  cdkDropListOrientation="horizontal"
@@ -4823,6 +5410,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4823
5410
  [disabled]="entry.link.disabled"
4824
5411
  [disableRipple]="config?.nav?.disableRipple || entry.link.disableRipple"
4825
5412
  [fitInkBarToContent]="entry.link.fitInkBarToContent || false"
5413
+ [ngClass]="resolveLinkClass(entry.link)"
4826
5414
  [id]="entry.link.id || ''"
4827
5415
  (click)="onNavClick(entry.index)"
4828
5416
  >
@@ -4883,6 +5471,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4883
5471
  } @else {
4884
5472
  <mat-tab-group
4885
5473
  [class.praxis-tabs-group--header-only]="!shouldRenderGroupBody()"
5474
+ [class.praxis-tabs-stretch]="!!config?.group?.stretchTabs"
5475
+ [class.align-start]="(config?.group?.alignTabs || 'start') === 'start'"
5476
+ [class.align-center]="config?.group?.alignTabs === 'center'"
5477
+ [class.align-end]="config?.group?.alignTabs === 'end'"
4886
5478
  [dynamicHeight]="config?.group?.dynamicHeight"
4887
5479
  [disableRipple]="config?.group?.disableRipple"
4888
5480
  [disablePagination]="config?.group?.disablePagination"
@@ -4907,7 +5499,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4907
5499
  @for (entry of visibleTabEntries(); track trackVisibleTab(i, entry); let i = $index) {
4908
5500
  <mat-tab
4909
5501
  [disabled]="entry.tab.disabled"
4910
- [labelClass]="entry.tab.labelClass ?? ''"
5502
+ [labelClass]="resolveTabLabelClass(entry.tab)"
4911
5503
  [bodyClass]="entry.tab.bodyClass ?? ''"
4912
5504
  [id]="entry.tab.id || ''"
4913
5505
  [attr.aria-label]="entry.tab.ariaLabel || null"
@@ -5016,7 +5608,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
5016
5608
  </button>
5017
5609
  }
5018
5610
  </div>
5019
- `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-tabs-root{position:relative;display:block}.praxis-tabs-group.align-start .mat-mdc-tab-header{justify-content:flex-start}.praxis-tabs-group.align-center .mat-mdc-tab-header{justify-content:center}.praxis-tabs-group.align-end .mat-mdc-tab-header{justify-content:flex-end}.praxis-tabs-group--header-only .mat-mdc-tab-body-wrapper{display:none}:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body>.mat-mdc-tab-body-content{overflow:clip}.praxis-tabs-nav-panel--header-only{display:none}.density-compact .mat-mdc-tab-body-content{padding:8px}.density-comfortable .mat-mdc-tab-body-content{padding:16px}.density-spacious .mat-mdc-tab-body-content{padding:24px}.praxis-tabs-widget-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--p-tabs-widget-stack-gap, 16px);min-width:0}.praxis-tabs-widget-surface{display:block;min-width:0}.density-compact .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 12px}.density-comfortable .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 16px}.density-spacious .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 24px}.tabs-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.tabs-ai-assistant-trigger{box-shadow:var(--md-sys-elevation-level2)}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.edit-fab-secondary{right:56px}.tab-empty{padding:16px;color:var(--md-sys-color-on-surface-variant);font-style:italic}.high-contrast{filter:contrast(1.2)}.reduce-motion{--mat-animation-duration: 0ms}.drag-handle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px;cursor:grab}.tab-label-icon{font-size:18px;width:18px;height:18px;margin-right:6px;vertical-align:middle}:host-context(.pdx-gridster-item) .praxis-tabs-root{display:flex;flex-direction:column;height:100%;min-height:0}:host-context(.pdx-gridster-item) .praxis-tabs-group,:host-context(.pdx-gridster-item) .mat-mdc-tab-group{flex:1 1 auto;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-wrapper,:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{height:100%;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{overflow:auto}:host-context(.pdx-gridster-item) .praxis-tabnav-content{flex:1 1 auto;min-height:0;overflow:auto}\n"] }]
5611
+ `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".praxis-tabs-root{position:relative;display:block}.praxis-tabs-group.align-start .mat-mdc-tab-header{justify-content:flex-start}.praxis-tabs-group.align-center .mat-mdc-tab-header{justify-content:center}.praxis-tabs-group.align-end .mat-mdc-tab-header{justify-content:flex-end}.praxis-tabs-group--header-only .mat-mdc-tab-body-wrapper{display:none}:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body,:host ::ng-deep .praxis-tabs-group.mat-mdc-tab-group-dynamic-height>.mat-mdc-tab-body-wrapper>.mat-mdc-tab-body>.mat-mdc-tab-body-content{overflow:clip}.praxis-tabs-nav-panel--header-only{display:none}.density-compact .mat-mdc-tab-body-content{padding:8px}.density-comfortable .mat-mdc-tab-body-content{padding:16px}.density-spacious .mat-mdc-tab-body-content{padding:24px}.praxis-tabs-widget-stack{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--p-tabs-widget-stack-gap, 16px);min-width:0}.praxis-tabs-widget-surface{display:block;min-width:0}.density-compact .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 12px}.density-comfortable .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 16px}.density-spacious .praxis-tabs-widget-stack{--p-tabs-widget-stack-gap: 24px}.tabs-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.tabs-ai-assistant-trigger{box-shadow:var(--md-sys-elevation-level2)}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.edit-fab-secondary{right:56px}.tab-empty{padding:16px;color:var(--md-sys-color-on-surface-variant);font-style:italic}.high-contrast{filter:contrast(1.2)}.reduce-motion{--mat-animation-duration: 0ms}.drag-handle{display:inline-flex;align-items:center;vertical-align:middle;margin-right:4px;cursor:grab}.tab-label-icon{font-size:18px;width:18px;height:18px;margin-right:6px;vertical-align:middle}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar{--mat-tab-header-divider-height: 0px;--mat-tab-header-divider-color: transparent;display:flex;align-items:center;width:fit-content;max-width:100%;padding:var(--p-tabs-track-padding, 4px);border-radius:var(--p-tabs-pill-radius, 9999px);border:1px solid var(--p-tabs-track-border, var(--md-sys-color-outline-variant, rgba(128, 128, 128, .28)));background:var(--p-tabs-track-bg, var(--md-sys-color-surface-container-low, rgba(0, 0, 0, .04)));box-sizing:border-box;border-bottom-width:1px}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar{border-radius:var(--p-tabs-pill-radius, 12px);padding:var(--p-tabs-track-padding, 3px)}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.align-center>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.align-center>.mat-mdc-tab-header{align-self:center}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.align-end>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.align-end>.mat-mdc-tab-header{align-self:flex-end}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar.praxis-tabs-stretch,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar.praxis-tabs-stretch{width:100%;align-self:stretch}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-header-pagination,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar>.mat-mdc-tab-header-pagination,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-header-pagination,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar>.mat-mdc-tab-header-pagination{border-radius:inherit;box-shadow:none}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-label-container,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar>.mat-mdc-tab-link-container,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header>.mat-mdc-tab-label-container,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar>.mat-mdc-tab-link-container{border-top:0;border-top-width:0;border-bottom:0;border-bottom-width:0}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mat-mdc-tab-labels,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mat-mdc-tab-links,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mat-mdc-tab-labels,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mat-mdc-tab-links{gap:var(--p-tabs-pill-gap, 4px);align-items:center}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mat-mdc-tab-labels,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mat-mdc-tab-links{gap:var(--p-tabs-pill-gap, 2px)}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab{min-height:40px;height:40px;padding:0 18px;margin:0;border-radius:var(--p-tabs-pill-radius, 9999px);border:1.5px solid transparent;overflow:hidden;flex-grow:0;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease,box-shadow .15s ease}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar.praxis-tabs-stretch .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group.praxis-tabs-stretch>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar.praxis-tabs-stretch .mdc-tab{flex-grow:1}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab{border-radius:calc(var(--p-tabs-pill-radius, 12px) - 4px)}:host ::ng-deep .praxis-tabs-root.variant-pill.density-compact>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill.density-compact>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-compact>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-compact>.praxis-tabs-nav-bar .mdc-tab{min-height:34px;height:34px;padding:0 14px}:host ::ng-deep .praxis-tabs-root.variant-pill.density-spacious>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill.density-spacious>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-spacious>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.density-spacious>.praxis-tabs-nav-bar .mdc-tab{min-height:46px;height:46px;padding:0 22px}:host ::ng-deep .praxis-tabs-root.variant-pill.reduce-motion>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-pill.reduce-motion>.praxis-tabs-nav-bar .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.reduce-motion>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab,:host ::ng-deep .praxis-tabs-root.variant-segmented.reduce-motion>.praxis-tabs-nav-bar .mdc-tab{transition:none}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab-indicator__content--underline,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab-indicator__content--underline,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab-indicator__content--underline{display:none;opacity:0;height:0}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab .mdc-tab__text-label{color:var(--p-tabs-inactive-label-color, var(--md-sys-color-on-surface-variant, inherit));font-weight:500;transition:color .15s ease}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:not(.mdc-tab--active):hover,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab:not(.mdc-tab--active):hover,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:not(.mdc-tab--active):hover,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab:not(.mdc-tab--active):hover{background-color:var(--p-tabs-hover-bg, rgba(128, 128, 128, .08))}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active{background-color:var(--p-tabs-active-bg, var(--md-sys-color-secondary-container, rgba(25, 118, 210, .14)))}:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active{box-shadow:0 1px 2px #00000024}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.mdc-tab--active .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--p-tabs-active-label-color, var(--md-sys-color-on-secondary-container, inherit));font-weight:600}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab:focus-visible,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--outlined{border-color:var(--p-tabs-active-outline, var(--md-sys-color-primary, #8ab4f8))}:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator,:host ::ng-deep .praxis-tabs-root.variant-pill>.praxis-tabs-nav-bar .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator,:host ::ng-deep .praxis-tabs-root.variant-segmented>.praxis-tabs-nav-bar .mdc-tab:focus-visible .mat-mdc-tab-focus-indicator{display:none}:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .tab-label-icon,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--primary:not(.mdc-tab--active) .tab-label-icon{color:var(--p-tabs-primary-label-color, var(--md-sys-color-primary, #8ab4f8))!important}:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .mdc-tab__text-label,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .tab-label-icon,:host ::ng-deep .praxis-tabs-root>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--accent:not(.mdc-tab--active) .tab-label-icon{color:var(--p-tabs-accent-label-color, var(--md-sys-color-primary, #8ab4f8))!important}:host ::ng-deep .praxis-tabs-root.variant-underline>.praxis-tabs-group>.mat-mdc-tab-header .mdc-tab.praxis-tab-tone--outlined,:host ::ng-deep .praxis-tabs-root.variant-underline>.praxis-tabs-nav-bar .mdc-tab.praxis-tab-tone--outlined{border:1px solid var(--p-tabs-active-outline, var(--md-sys-color-primary, #8ab4f8));border-radius:9999px}:host-context(.pdx-gridster-item) .praxis-tabs-root{display:flex;flex-direction:column;height:100%;min-height:0}:host-context(.pdx-gridster-item) .praxis-tabs-group,:host-context(.pdx-gridster-item) .mat-mdc-tab-group{flex:1 1 auto;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-wrapper,:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{height:100%;min-height:0}:host-context(.pdx-gridster-item) .mat-mdc-tab-body-content{overflow:auto}:host-context(.pdx-gridster-item) .praxis-tabnav-content{flex:1 1 auto;min-height:0;overflow:auto}\n"] }]
5020
5612
  }], propDecorators: { config: [{
5021
5613
  type: Input
5022
5614
  }], tabsId: [{
@@ -5248,7 +5840,7 @@ const PRAXIS_TABS_COMPONENT_METADATA = {
5248
5840
  selector: 'praxis-tabs',
5249
5841
  component: PraxisTabs,
5250
5842
  friendlyName: 'Praxis Tabs',
5251
- description: 'Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav e suporte a tokens M3 via appearance.',
5843
+ description: 'Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav, variantes visuais (underline, pill, segmented), tons por aba/link e suporte a tokens M3 via appearance.',
5252
5844
  icon: 'tab',
5253
5845
  authoringManifestRef: {
5254
5846
  componentId: 'praxis-tabs',
@@ -5412,6 +6004,40 @@ function providePraxisTabsMetadata() {
5412
6004
  };
5413
6005
  }
5414
6006
 
6007
+ const tabsArrayRootResolutionSpec = {
6008
+ allowIndex: false,
6009
+ strategy: 'root-path',
6010
+ paths: ['tabs[]', '$'],
6011
+ };
6012
+ const tabsLayoutRootResolutionSpec = {
6013
+ allowIndex: false,
6014
+ strategy: 'root-path',
6015
+ paths: ['$'],
6016
+ };
6017
+ const tabsRenderBodyRootResolutionSpec = {
6018
+ allowIndex: false,
6019
+ strategy: 'root-path',
6020
+ paths: ['group', 'nav', '$'],
6021
+ };
6022
+ const tabByIdOrLabelResolutionSpec = {
6023
+ allowIndex: false,
6024
+ strategy: 'array-match',
6025
+ paths: ['tabs[]'],
6026
+ matchFields: ['id', 'label', 'textLabel', 'title'],
6027
+ inputMatchFields: ['tabId', 'id', 'textLabel', 'label'],
6028
+ };
6029
+ const tabOrLinkByIdResolutionSpec = {
6030
+ allowIndex: false,
6031
+ strategy: 'array-match',
6032
+ paths: ['tabs[]', 'nav.links[]'],
6033
+ matchFields: ['id', 'label', 'textLabel', 'title'],
6034
+ inputMatchFields: ['tabId', 'linkId', 'id', 'textLabel', 'label'],
6035
+ };
6036
+ const tabsSelectionReconciliation = {
6037
+ selectedIndexPath: 'group.selectedIndex',
6038
+ itemKeyField: 'id',
6039
+ onRemovedActive: 'clamp',
6040
+ };
5415
6041
  const tabItemSchema = {
5416
6042
  type: 'object',
5417
6043
  required: ['id', 'textLabel'],
@@ -5419,6 +6045,8 @@ const tabItemSchema = {
5419
6045
  id: { type: 'string' },
5420
6046
  textLabel: { type: 'string' },
5421
6047
  icon: { type: 'string' },
6048
+ labelClass: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
6049
+ tone: { enum: ['default', 'primary', 'accent', 'outlined'] },
5422
6050
  disabled: { type: 'boolean' },
5423
6051
  visible: { type: 'boolean', default: true },
5424
6052
  content: { type: 'array', items: { type: 'object' } },
@@ -5432,6 +6060,8 @@ const tabPatchSchema = {
5432
6060
  id: { type: 'string' },
5433
6061
  textLabel: { type: 'string' },
5434
6062
  icon: { type: 'string' },
6063
+ labelClass: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
6064
+ tone: { enum: ['default', 'primary', 'accent', 'outlined'] },
5435
6065
  disabled: { type: 'boolean' },
5436
6066
  visible: { type: 'boolean' },
5437
6067
  content: { type: 'array', items: { type: 'object' } },
@@ -5458,15 +6088,15 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5458
6088
  { name: 'enableCustomization', type: 'boolean', description: 'Enables Settings Panel authoring surfaces.' },
5459
6089
  ],
5460
6090
  editableTargets: [
5461
- { kind: 'tab', resolver: 'tab-by-id-or-label', description: 'A group-mode tab in config.tabs[].' },
5462
- { kind: 'tabLabel', resolver: 'tab-by-id-or-label', description: 'The text label of a group-mode tab.' },
5463
- { kind: 'tabIcon', resolver: 'tab-by-id-or-label', description: 'Icon metadata rendered in a group tab label.' },
5464
- { kind: 'tabContent', resolver: 'tab-or-link-by-id', description: 'Dynamic fields or widgets hosted by a tab or nav link.' },
5465
- { kind: 'activeTab', resolver: 'tab-index-or-id', description: 'Selected tab or nav link index.' },
5466
- { kind: 'visibility', resolver: 'tab-or-link-by-id', description: 'Runtime visibility flag for a group tab or nav link.' },
5467
- { kind: 'disabledState', resolver: 'tab-or-link-by-id', description: 'Disabled state of a tab or nav link.' },
5468
- { kind: 'layout', resolver: 'tabs-layout-config', description: 'Group/nav mode, header position, density, stretch and behavior settings.' },
5469
- { kind: 'renderBody', resolver: 'tabs-render-body-config', description: 'Config paths group.renderBody and nav.renderBody that let the host own external body content.' },
6091
+ { kind: 'tab', resolver: 'tab-by-id-or-label', description: 'A group-mode tab in config.tabs[].', resolutionSpec: tabByIdOrLabelResolutionSpec },
6092
+ { kind: 'tabLabel', resolver: 'tab-by-id-or-label', description: 'The text label of a group-mode tab.', resolutionSpec: tabByIdOrLabelResolutionSpec },
6093
+ { kind: 'tabIcon', resolver: 'tab-by-id-or-label', description: 'Icon metadata rendered in a group tab label.', resolutionSpec: tabByIdOrLabelResolutionSpec },
6094
+ { kind: 'tabContent', resolver: 'tab-or-link-by-id', description: 'Dynamic fields or widgets hosted by a tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6095
+ { kind: 'activeTab', resolver: 'tab-index-or-id', description: 'Selected tab or nav link index.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6096
+ { kind: 'visibility', resolver: 'tab-or-link-by-id', description: 'Runtime visibility flag for a group tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6097
+ { kind: 'disabledState', resolver: 'tab-or-link-by-id', description: 'Disabled state of a tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6098
+ { kind: 'layout', resolver: 'tabs-layout-config', description: 'Group/nav mode, visual variant, header position, density, stretch and behavior settings.', resolutionSpec: tabsLayoutRootResolutionSpec },
6099
+ { kind: 'renderBody', resolver: 'tabs-render-body-config', description: 'Config paths group.renderBody and nav.renderBody that let the host own external body content.', resolutionSpec: tabsRenderBodyRootResolutionSpec },
5470
6100
  ],
5471
6101
  operations: [
5472
6102
  {
@@ -5474,7 +6104,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5474
6104
  title: 'Add tab',
5475
6105
  scope: 'global',
5476
6106
  targetKind: 'tab',
5477
- target: { kind: 'tab', resolver: 'tabs-array', ambiguityPolicy: 'fail', required: false },
6107
+ target: { kind: 'tab', resolver: 'tabs-array', ambiguityPolicy: 'fail', required: false, resolutionSpec: tabsArrayRootResolutionSpec },
5478
6108
  inputSchema: tabItemSchema,
5479
6109
  effects: [{ kind: 'append-unique', path: 'tabs[]', key: 'id' }],
5480
6110
  validators: ['tab-id-unique', 'tabs-mode-compatible', 'tab-content-valid'],
@@ -5489,7 +6119,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5489
6119
  title: 'Remove tab',
5490
6120
  scope: 'layout',
5491
6121
  targetKind: 'tab',
5492
- target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6122
+ target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5493
6123
  inputSchema: {
5494
6124
  type: 'object',
5495
6125
  properties: {
@@ -5500,6 +6130,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5500
6130
  {
5501
6131
  kind: 'compile-domain-patch',
5502
6132
  handler: 'tabs.remove-tab-and-reselect',
6133
+ selectionReconciliation: tabsSelectionReconciliation,
5503
6134
  handlerContract: {
5504
6135
  reads: ['tabs[]', 'group.selectedIndex'],
5505
6136
  writes: ['tabs[]', 'group.selectedIndex'],
@@ -5525,7 +6156,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5525
6156
  title: 'Set tab label',
5526
6157
  scope: 'layout',
5527
6158
  targetKind: 'tabLabel',
5528
- target: { kind: 'tabLabel', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6159
+ target: { kind: 'tabLabel', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5529
6160
  inputSchema: { type: 'object', required: ['textLabel'], properties: { textLabel: { type: 'string' } } },
5530
6161
  effects: [{ kind: 'merge-by-key', path: 'tabs[]', key: 'id' }],
5531
6162
  destructive: false,
@@ -5540,7 +6171,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5540
6171
  title: 'Set tab icon',
5541
6172
  scope: 'layout',
5542
6173
  targetKind: 'tabIcon',
5543
- target: { kind: 'tabIcon', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6174
+ target: { kind: 'tabIcon', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5544
6175
  inputSchema: { type: 'object', required: ['icon'], properties: { icon: { type: 'string' } } },
5545
6176
  effects: [{ kind: 'merge-by-key', path: 'tabs[]', key: 'id' }],
5546
6177
  destructive: false,
@@ -5555,12 +6186,13 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5555
6186
  title: 'Reorder tabs',
5556
6187
  scope: 'layout',
5557
6188
  targetKind: 'tab',
5558
- target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6189
+ target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5559
6190
  inputSchema: { type: 'object', required: ['beforeTabId'], properties: { beforeTabId: { type: 'string' } } },
5560
6191
  effects: [
5561
6192
  {
5562
6193
  kind: 'compile-domain-patch',
5563
6194
  handler: 'tabs.reorder-tab-and-preserve-selection',
6195
+ selectionReconciliation: tabsSelectionReconciliation,
5564
6196
  handlerContract: {
5565
6197
  reads: ['tabs[]', 'group.selectedIndex'],
5566
6198
  writes: ['tabs[]', 'group.selectedIndex'],
@@ -5583,7 +6215,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5583
6215
  title: 'Set tab disabled state',
5584
6216
  scope: 'interaction',
5585
6217
  targetKind: 'disabledState',
5586
- target: { kind: 'disabledState', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true },
6218
+ target: { kind: 'disabledState', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5587
6219
  inputSchema: { type: 'object', required: ['disabled'], properties: { disabled: { type: 'boolean' } } },
5588
6220
  effects: [
5589
6221
  {
@@ -5611,7 +6243,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5611
6243
  title: 'Set tab visibility',
5612
6244
  scope: 'interaction',
5613
6245
  targetKind: 'visibility',
5614
- target: { kind: 'visibility', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true },
6246
+ target: { kind: 'visibility', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5615
6247
  inputSchema: { type: 'object', required: ['visible'], properties: { visible: { type: 'boolean' } } },
5616
6248
  effects: [
5617
6249
  {
@@ -5639,7 +6271,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5639
6271
  title: 'Set active tab',
5640
6272
  scope: 'interaction',
5641
6273
  targetKind: 'activeTab',
5642
- target: { kind: 'activeTab', resolver: 'tab-index-or-id', ambiguityPolicy: 'fail', required: true },
6274
+ target: { kind: 'activeTab', resolver: 'tab-index-or-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5643
6275
  inputSchema: { type: 'object', required: ['selectedIndex'], properties: { selectedIndex: { type: 'number' }, tabId: { type: 'string' } } },
5644
6276
  effects: [
5645
6277
  {
@@ -5667,12 +6299,13 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5667
6299
  title: 'Set tabs layout variant',
5668
6300
  scope: 'layout',
5669
6301
  targetKind: 'layout',
5670
- target: { kind: 'layout', resolver: 'tabs-layout-config', ambiguityPolicy: 'fail', required: true },
6302
+ target: { kind: 'layout', resolver: 'tabs-layout-config', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabsLayoutRootResolutionSpec },
5671
6303
  inputSchema: {
5672
6304
  type: 'object',
5673
- required: ['mode'],
6305
+ minProperties: 1,
5674
6306
  properties: {
5675
6307
  mode: { enum: ['group', 'nav'] },
6308
+ variant: { enum: ['underline', 'pill', 'segmented'] },
5676
6309
  density: { enum: ['compact', 'comfortable', 'spacious'] },
5677
6310
  headerPosition: { enum: ['above', 'below'] },
5678
6311
  alignTabs: { enum: ['start', 'center', 'end'] },
@@ -5684,7 +6317,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5684
6317
  destructive: false,
5685
6318
  requiresConfirmation: false,
5686
6319
  validators: ['tabs-mode-compatible', 'layout-values-valid', 'editor-runtime-round-trip'],
5687
- affectedPaths: ['appearance.density', 'group.headerPosition', 'group.alignTabs', 'group.stretchTabs', 'nav.stretchTabs', 'behavior.lazyLoad'],
6320
+ affectedPaths: ['appearance.variant', 'appearance.density', 'group.headerPosition', 'group.alignTabs', 'group.stretchTabs', 'nav.stretchTabs', 'behavior.lazyLoad'],
5688
6321
  submissionImpact: 'config-only',
5689
6322
  preconditions: ['config-initialized'],
5690
6323
  },
@@ -5693,7 +6326,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5693
6326
  title: 'Set tab content',
5694
6327
  scope: 'layout',
5695
6328
  targetKind: 'tabContent',
5696
- target: { kind: 'tabContent', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true },
6329
+ target: { kind: 'tabContent', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5697
6330
  inputSchema: tabPatchSchema,
5698
6331
  effects: [
5699
6332
  {
@@ -5753,6 +6386,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5753
6386
  { id: 'reject-duplicate-tab-id', request: 'Add another tab with id overview.', operationId: 'tab.add', params: { id: 'overview', textLabel: 'Duplicate Overview' }, isPositive: false },
5754
6387
  { id: 'reject-current-tab-content-as-tab-add', request: 'Create a list in this tab; do not add a new tab.', operationId: 'tab.add', params: { id: 'list-in-this-tab', textLabel: 'List in this tab' }, isPositive: false },
5755
6388
  { id: 'confirm-remove-content-tab', request: 'Remove the details tab that contains widgets.', operationId: 'tab.remove', target: 'details', params: { replacementActiveTabId: 'overview' }, isPositive: true },
6389
+ { id: 'set-pill-variant', request: 'Switch the tabs header to pill variant.', operationId: 'layout.variant.set', params: { variant: 'pill', density: 'compact' }, isPositive: true },
5756
6390
  ],
5757
6391
  };
5758
6392
 
@@ -5764,4 +6398,4 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5764
6398
  * Generated bundle index. Do not edit.
5765
6399
  */
5766
6400
 
5767
- 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 };
6401
+ 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 };