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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, Input, Inject, Component, ChangeDetectorRef, effect, EventEmitter, signal, ElementRef, afterEveryRender, ViewChild, Output, ChangeDetectionStrategy, ENVIRONMENT_INITIALIZER } from '@angular/core';
2
+ import { inject, Input, Inject, Component, ChangeDetectorRef, effect, EventEmitter, signal, ElementRef, DestroyRef, afterEveryRender, ViewChild, Output, ChangeDetectionStrategy, ENVIRONMENT_INITIALIZER } from '@angular/core';
3
3
  import { ActivatedRoute } from '@angular/router';
4
4
  import * as i1$1 from '@angular/common';
5
5
  import { CommonModule } from '@angular/common';
@@ -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
- 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';
13
+ import { providePraxisI18n, PraxisI18nService, PraxisIconDirective, PraxisIconButtonComponent, providePraxisI18nConfig, deepMerge, ASYNC_CONFIG_STORAGE, ComponentKeyService, LoggerService, normalizeConfigPersistenceStrategy, EmptyStateCardComponent, DynamicWidgetLoaderDirective, ComponentMetadataRegistry } from '@praxisui/core';
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,17 +1285,17 @@ 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
 
1010
1295
  @if (diagnostics.length) {
1011
1296
  <div class="editor-diagnostics">
1012
1297
  <div class="editor-diagnostics-title">{{ t('editor.diagnostics.title', 'Diagnosticos de authoring') }}</div>
1013
- @for (diagnostic of diagnostics; track diagnostic) {
1298
+ @for (diagnostic of diagnostics; track $index) {
1014
1299
  <div
1015
1300
  class="editor-diagnostic"
1016
1301
  [class.level-error]="diagnostic.level === 'error'"
@@ -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
 
@@ -1292,7 +1591,7 @@ class PraxisTabsConfigEditor {
1292
1591
  ></button>
1293
1592
  </div>
1294
1593
  <div class="editor-grid two">
1295
- @for (token of tokenList; track token) {
1594
+ @for (token of tokenList; track token.key) {
1296
1595
  <mat-form-field appearance="outline">
1297
1596
  <mat-label>{{ t(token.labelKey, token.fallback) }}</mat-label>
1298
1597
  <input matInput [placeholder]="t('editor.placeholders.tokenValue', 'var(--md-sys-color-primary) / #RRGGBB')" [ngModel]="appearance.tokens?.[token.key]" (ngModelChange)="onTokenChange(token.key, $event)" />
@@ -1324,7 +1623,7 @@ class PraxisTabsConfigEditor {
1324
1623
  <button mat-stroked-button color="primary" (click)="addTab()"><mat-icon [praxisIcon]="'add'"></mat-icon>{{ t('editor.actions.addTab', 'Adicionar aba') }}</button>
1325
1624
  @if (editedConfig.tabs?.length) {
1326
1625
  <div class="editor-grid">
1327
- @for (tab of editedConfig.tabs; track tab; let i = $index) {
1626
+ @for (tab of editedConfig.tabs; track $index; let i = $index) {
1328
1627
  <div class="editor-card">
1329
1628
  <div class="editor-card-header">
1330
1629
  <strong class="editor-card-title">{{ t('editor.cards.tab', 'Aba') }} #{{ i+1 }}</strong>
@@ -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>
1369
- @for (c of componentOptions; track c) {
1370
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
1676
+ <mat-select [(ngModel)]="selectedTabWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
1677
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
1678
+ @for (c of componentOptions; track c.id) {
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>
@@ -1383,13 +1692,17 @@ class PraxisTabsConfigEditor {
1383
1692
  </div>
1384
1693
  @if (tab.widgets?.length) {
1385
1694
  <div class="editor-grid" cdkDropList [cdkDropListData]="tab.widgets || []" (cdkDropListDropped)="onTabWidgetDrop(i, $event)">
1386
- @for (w of tab.widgets; track w; let wi = $index) {
1695
+ @for (w of tab.widgets; track $index; let wi = $index) {
1387
1696
  <div cdkDrag class="editor-card dashed">
1388
1697
  <div class="editor-card-header">
1389
1698
  <button praxisIconButton="drag_indicator" size="compact" type="button" cdkDragHandle [matTooltip]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')" [attr.aria-label]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')"></button>
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>
@@ -1428,7 +1741,7 @@ class PraxisTabsConfigEditor {
1428
1741
  <button mat-stroked-button color="primary" (click)="addLink()"><mat-icon [praxisIcon]="'add_link'"></mat-icon>{{ t('editor.actions.addLink', 'Adicionar link') }}</button>
1429
1742
  @if (nav.links?.length) {
1430
1743
  <div class="editor-grid">
1431
- @for (l of nav.links; track l; let i = $index) {
1744
+ @for (l of nav.links; track $index; let i = $index) {
1432
1745
  <div class="editor-card">
1433
1746
  <div class="editor-card-header">
1434
1747
  <strong class="editor-card-title">{{ t('editor.cards.link', 'Link') }} #{{ i+1 }}</strong>
@@ -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>
1463
- @for (c of componentOptions; track c) {
1464
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
1787
+ <mat-select [(ngModel)]="selectedLinkWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
1788
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
1789
+ @for (c of componentOptions; track c.id) {
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>
@@ -1477,13 +1803,17 @@ class PraxisTabsConfigEditor {
1477
1803
  </div>
1478
1804
  @if (l.widgets?.length) {
1479
1805
  <div class="editor-grid" cdkDropList [cdkDropListData]="l.widgets || []" (cdkDropListDropped)="onLinkWidgetDrop(i, $event)">
1480
- @for (w of l.widgets; track w; let wi = $index) {
1806
+ @for (w of l.widgets; track $index; let wi = $index) {
1481
1807
  <div cdkDrag class="editor-card dashed">
1482
1808
  <div class="editor-card-header">
1483
1809
  <button praxisIconButton="drag_indicator" size="compact" type="button" cdkDragHandle [matTooltip]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')" [attr.aria-label]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')"></button>
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,17 +1861,17 @@ 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
 
1540
1871
  @if (diagnostics.length) {
1541
1872
  <div class="editor-diagnostics">
1542
1873
  <div class="editor-diagnostics-title">{{ t('editor.diagnostics.title', 'Diagnosticos de authoring') }}</div>
1543
- @for (diagnostic of diagnostics; track diagnostic) {
1874
+ @for (diagnostic of diagnostics; track $index) {
1544
1875
  <div
1545
1876
  class="editor-diagnostic"
1546
1877
  [class.level-error]="diagnostic.level === 'error'"
@@ -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
 
@@ -1822,7 +2167,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1822
2167
  ></button>
1823
2168
  </div>
1824
2169
  <div class="editor-grid two">
1825
- @for (token of tokenList; track token) {
2170
+ @for (token of tokenList; track token.key) {
1826
2171
  <mat-form-field appearance="outline">
1827
2172
  <mat-label>{{ t(token.labelKey, token.fallback) }}</mat-label>
1828
2173
  <input matInput [placeholder]="t('editor.placeholders.tokenValue', 'var(--md-sys-color-primary) / #RRGGBB')" [ngModel]="appearance.tokens?.[token.key]" (ngModelChange)="onTokenChange(token.key, $event)" />
@@ -1854,7 +2199,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1854
2199
  <button mat-stroked-button color="primary" (click)="addTab()"><mat-icon [praxisIcon]="'add'"></mat-icon>{{ t('editor.actions.addTab', 'Adicionar aba') }}</button>
1855
2200
  @if (editedConfig.tabs?.length) {
1856
2201
  <div class="editor-grid">
1857
- @for (tab of editedConfig.tabs; track tab; let i = $index) {
2202
+ @for (tab of editedConfig.tabs; track $index; let i = $index) {
1858
2203
  <div class="editor-card">
1859
2204
  <div class="editor-card-header">
1860
2205
  <strong class="editor-card-title">{{ t('editor.cards.tab', 'Aba') }} #{{ i+1 }}</strong>
@@ -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>
1899
- @for (c of componentOptions; track c) {
1900
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
2252
+ <mat-select [(ngModel)]="selectedTabWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
2253
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
2254
+ @for (c of componentOptions; track c.id) {
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>
@@ -1913,13 +2268,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1913
2268
  </div>
1914
2269
  @if (tab.widgets?.length) {
1915
2270
  <div class="editor-grid" cdkDropList [cdkDropListData]="tab.widgets || []" (cdkDropListDropped)="onTabWidgetDrop(i, $event)">
1916
- @for (w of tab.widgets; track w; let wi = $index) {
2271
+ @for (w of tab.widgets; track $index; let wi = $index) {
1917
2272
  <div cdkDrag class="editor-card dashed">
1918
2273
  <div class="editor-card-header">
1919
2274
  <button praxisIconButton="drag_indicator" size="compact" type="button" cdkDragHandle [matTooltip]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')" [attr.aria-label]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')"></button>
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>
@@ -1958,7 +2317,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
1958
2317
  <button mat-stroked-button color="primary" (click)="addLink()"><mat-icon [praxisIcon]="'add_link'"></mat-icon>{{ t('editor.actions.addLink', 'Adicionar link') }}</button>
1959
2318
  @if (nav.links?.length) {
1960
2319
  <div class="editor-grid">
1961
- @for (l of nav.links; track l; let i = $index) {
2320
+ @for (l of nav.links; track $index; let i = $index) {
1962
2321
  <div class="editor-card">
1963
2322
  <div class="editor-card-header">
1964
2323
  <strong class="editor-card-title">{{ t('editor.cards.link', 'Link') }} #{{ i+1 }}</strong>
@@ -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>
1993
- @for (c of componentOptions; track c) {
1994
- <option [ngValue]="c.id">{{ c.friendlyName || c.id }}</option>
2363
+ <mat-select [(ngModel)]="selectedLinkWidgetId[i]" [placeholder]="t('editor.fields.selectPlaceholder', '(selecione)')">
2364
+ <mat-option [value]="''">{{ t('editor.fields.selectPlaceholder', '(selecione)') }}</mat-option>
2365
+ @for (c of componentOptions; track c.id) {
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>
@@ -2007,13 +2379,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
2007
2379
  </div>
2008
2380
  @if (l.widgets?.length) {
2009
2381
  <div class="editor-grid" cdkDropList [cdkDropListData]="l.widgets || []" (cdkDropListDropped)="onLinkWidgetDrop(i, $event)">
2010
- @for (w of l.widgets; track w; let wi = $index) {
2382
+ @for (w of l.widgets; track $index; let wi = $index) {
2011
2383
  <div cdkDrag class="editor-card dashed">
2012
2384
  <div class="editor-card-header">
2013
2385
  <button praxisIconButton="drag_indicator" size="compact" type="button" cdkDragHandle [matTooltip]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')" [attr.aria-label]="t('editor.actions.dragToReorder', 'Arrastar para reordenar')"></button>
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) {
@@ -3138,7 +3599,10 @@ class PraxisTabs {
3138
3599
  }
3139
3600
  }, ...(ngDevMode ? [{ debugName: "aiAssistantSessionEffect" }] : /* istanbul ignore next */ []));
3140
3601
  warnedMissingId = false;
3602
+ storageInitialized = false;
3141
3603
  loadedStorageKey = null;
3604
+ storageLoad;
3605
+ hostInputBaselineConfig;
3142
3606
  config = null;
3143
3607
  tabsId;
3144
3608
  componentInstanceId;
@@ -3186,6 +3650,7 @@ class PraxisTabs {
3186
3650
  groupComponent;
3187
3651
  navComponent;
3188
3652
  hostElement = inject(ElementRef);
3653
+ destroyRef = inject(DestroyRef);
3189
3654
  headerResizeObserver;
3190
3655
  observedHeader;
3191
3656
  headerResizeFrame;
@@ -3196,13 +3661,35 @@ class PraxisTabs {
3196
3661
  destroy$ = new Subject();
3197
3662
  widgetDefinitionCache = new WeakMap();
3198
3663
  generatedContentForm = new FormGroup({});
3664
+ runtimeStyleEl;
3665
+ lastRuntimeCss = '';
3199
3666
  ngOnInit() {
3667
+ this.storageInitialized = true;
3668
+ if (this.config != null && this.hostInputBaselineConfig === undefined) {
3669
+ this.hostInputBaselineConfig = this.cloneTabsMetadata(this.config);
3670
+ }
3200
3671
  this.syncSelectionFromConfig();
3201
3672
  this.syncGeneratedContentForm();
3202
3673
  this.loadStoredConfigForCurrentIdentity({ warnMissingId: false });
3674
+ this.syncRuntimeStyleElement();
3203
3675
  }
3204
3676
  ngOnChanges(changes) {
3205
- if (changes['tabsId'] || changes['componentInstanceId'] || changes['configPersistenceStrategy']) {
3677
+ if ('config' in changes) {
3678
+ const incoming = changes['config'].currentValue;
3679
+ this.hostInputBaselineConfig =
3680
+ incoming != null ? this.cloneTabsMetadata(incoming) : null;
3681
+ if (this.usesInputFirstConfig()) {
3682
+ this.storageLoad?.unsubscribe();
3683
+ this.storageLoad = undefined;
3684
+ }
3685
+ }
3686
+ if (this.storageInitialized &&
3687
+ (changes['tabsId'] || changes['componentInstanceId'] || changes['configPersistenceStrategy'])) {
3688
+ this.loadedStorageKey = null;
3689
+ if (this.isVolatilePersistence() || this.usesInputFirstConfig()) {
3690
+ this.storageLoad?.unsubscribe();
3691
+ this.storageLoad = undefined;
3692
+ }
3206
3693
  this.loadStoredConfigForCurrentIdentity({ warnMissingId: false });
3207
3694
  }
3208
3695
  if (changes['config'] && this.config) {
@@ -3211,22 +3698,28 @@ class PraxisTabs {
3211
3698
  // previous inputs in that case (for example, a newly selected parent
3212
3699
  // identity projected into a related-resource outlet).
3213
3700
  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.
3701
+ // Sync selection/content without mutating remote storage on input hydration/recomputation.
3217
3702
  this.syncSelectionFromConfigChange(changes['config']);
3218
3703
  this.syncGeneratedContentForm();
3219
- // Persist when tabsId provided and the instance is storage-owned.
3220
- this.persistConfig(this.config);
3221
3704
  this.reapplyControlledSelectedIndex();
3222
3705
  }
3706
+ this.syncRuntimeStyleElement();
3707
+ }
3708
+ ngDoCheck() {
3709
+ if (!this.destroyed) {
3710
+ this.syncRuntimeStyleElement();
3711
+ }
3223
3712
  }
3224
3713
  ngOnDestroy() {
3225
3714
  this.destroyed = true;
3715
+ this.storageLoad?.unsubscribe();
3716
+ this.storageLoad = undefined;
3226
3717
  this.headerResizeObserver?.disconnect();
3227
3718
  if (this.headerResizeFrame !== undefined) {
3228
3719
  this.hostElement.nativeElement.ownerDocument.defaultView?.cancelAnimationFrame(this.headerResizeFrame);
3229
3720
  }
3721
+ this.runtimeStyleEl?.remove();
3722
+ this.runtimeStyleEl = undefined;
3230
3723
  this.assistantSessions.removeContextSession(this.buildAiAssistantContextSnapshot().identity);
3231
3724
  this.aiAssistantStateSubscription?.unsubscribe();
3232
3725
  this.destroy$.next();
@@ -3539,20 +4032,71 @@ class PraxisTabs {
3539
4032
  this.persistConfig(this.config);
3540
4033
  }
3541
4034
  openEditor() {
3542
- const key = this.storageKey() || this.tabsId || 'default';
4035
+ const storageKey = this.storageKey({ warnMissingId: false });
4036
+ const idSuffix = storageKey || this.tabsId || 'default';
4037
+ const hasHostBaseline = this.hostInputBaselineConfig != null;
4038
+ const baselineConfig = hasHostBaseline
4039
+ ? this.cloneTabsMetadata(this.hostInputBaselineConfig)
4040
+ : undefined;
4041
+ const canPersist = () => Boolean(storageKey) && !this.isVolatilePersistence() && !this.usesInputFirstConfig();
4042
+ let savedViaHandler = false;
4043
+ let resetViaHandler = false;
4044
+ let committed = false;
4045
+ let appliedPreview = false;
3543
4046
  const initialDocument = createTabsAuthoringDocument({
3544
4047
  config: this.config ?? {},
3545
4048
  bindings: this.currentTabsBindings(),
3546
4049
  });
3547
4050
  const ref = this.settings.open({
3548
- id: `praxis-tabs-editor:${key}`,
4051
+ id: `praxis-tabs-editor:${idSuffix}`,
4052
+ owner: this.destroyRef,
3549
4053
  title: this.t('settings.title', 'Configurar abas'),
4054
+ configStorageKey: canPersist() ? (storageKey ?? undefined) : undefined,
4055
+ onSave: canPersist() && storageKey
4056
+ ? async (value) => {
4057
+ if (!canPersist() || this.storageKey({ warnMissingId: false }) !== storageKey) {
4058
+ throw new Error('Tabs configuration persistence target is no longer active.');
4059
+ }
4060
+ const document = normalizeTabsAuthoringDocument(value);
4061
+ const plan = buildTabsApplyPlan(document, {
4062
+ currentBindings: this.currentTabsBindings(),
4063
+ currentConfig: this.config,
4064
+ }, {
4065
+ saveConfig: true,
4066
+ saveBindings: false,
4067
+ });
4068
+ if (plan.diagnostics.some((item) => item.level === 'error')) {
4069
+ throw new Error('Invalid tabs configuration');
4070
+ }
4071
+ await firstValueFrom(this.storage.saveConfig(storageKey, this.cloneTabsMetadata(plan.canonicalConfig)));
4072
+ savedViaHandler = true;
4073
+ }
4074
+ : undefined,
4075
+ onReset: canPersist() && storageKey
4076
+ ? async () => {
4077
+ if (!canPersist() || this.storageKey({ warnMissingId: false }) !== storageKey) {
4078
+ throw new Error('Tabs configuration persistence target is no longer active.');
4079
+ }
4080
+ await firstValueFrom(this.storage.clearConfig(storageKey));
4081
+ resetViaHandler = true;
4082
+ }
4083
+ : undefined,
3550
4084
  content: {
3551
4085
  component: PraxisTabsConfigEditor,
3552
4086
  inputs: { document: initialDocument },
3553
4087
  },
3554
4088
  });
3555
- const applyDocument = (value) => {
4089
+ const restoreBaseline = () => {
4090
+ this.config =
4091
+ hasHostBaseline && baselineConfig
4092
+ ? this.cloneTabsMetadata(baselineConfig)
4093
+ : {};
4094
+ this.syncSelectionFromConfig();
4095
+ this.syncGeneratedContentForm();
4096
+ this.syncRuntimeStyleElement();
4097
+ this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
4098
+ };
4099
+ const applyDocument = (value, options) => {
3556
4100
  const document = normalizeTabsAuthoringDocument(value);
3557
4101
  const plan = buildTabsApplyPlan(document, {
3558
4102
  currentBindings: this.currentTabsBindings(),
@@ -3561,10 +4105,43 @@ class PraxisTabs {
3561
4105
  saveConfig: true,
3562
4106
  saveBindings: false,
3563
4107
  });
3564
- this.applyTabsAuthoringPlan(plan);
4108
+ this.applyTabsAuthoringPlan(plan, options);
3565
4109
  };
3566
- ref.applied$.pipe(takeUntil(this.destroy$)).subscribe(applyDocument);
3567
- ref.saved$.pipe(takeUntil(this.destroy$)).subscribe(applyDocument);
4110
+ ref.applied$.pipe(takeUntil(this.destroy$)).subscribe((val) => {
4111
+ if (!val)
4112
+ return;
4113
+ appliedPreview = true;
4114
+ applyDocument(val, { skipStoragePersist: true });
4115
+ });
4116
+ ref.saved$.pipe(takeUntil(this.destroy$)).subscribe((val) => {
4117
+ const skipStoragePersist = savedViaHandler;
4118
+ savedViaHandler = false;
4119
+ if (!val)
4120
+ return;
4121
+ committed = true;
4122
+ appliedPreview = false;
4123
+ applyDocument(val, { skipStoragePersist });
4124
+ });
4125
+ ref.reset$?.pipe(takeUntil(this.destroy$)).subscribe(() => {
4126
+ const skipClear = resetViaHandler;
4127
+ resetViaHandler = false;
4128
+ committed = true;
4129
+ appliedPreview = false;
4130
+ if (!skipClear && canPersist() && storageKey) {
4131
+ this.storage.clearConfig(storageKey).pipe(take(1)).subscribe({
4132
+ error: (error) => this.logger.warn('[PraxisTabs] Failed to clear tabs configuration.', {
4133
+ context: { lib: 'praxis-tabs', component: 'PraxisTabs' },
4134
+ data: { key: storageKey, error },
4135
+ }),
4136
+ });
4137
+ }
4138
+ restoreBaseline();
4139
+ });
4140
+ ref.closed$?.pipe(take(1), takeUntil(this.destroy$)).subscribe(() => {
4141
+ if (appliedPreview && !committed) {
4142
+ restoreBaseline();
4143
+ }
4144
+ });
3568
4145
  }
3569
4146
  openAiAssistant() {
3570
4147
  this.initializeAiAssistantController();
@@ -3894,39 +4471,101 @@ class PraxisTabs {
3894
4471
  });
3895
4472
  this.config = next;
3896
4473
  this.syncGeneratedContentForm();
4474
+ this.syncRuntimeStyleElement();
3897
4475
  this.persistConfig(this.config);
3898
4476
  this.selectedIndexSignal.set(this.config?.group?.selectedIndex ?? 0);
3899
4477
  }
3900
4478
  /** Clears persisted tabs configuration to fallback to defaults */
3901
4479
  resetPreferences() {
4480
+ if (this.isVolatilePersistence() || this.usesInputFirstConfig()) {
4481
+ return;
4482
+ }
3902
4483
  const key = this.storageKey();
3903
4484
  if (!key)
3904
4485
  return;
3905
4486
  try {
3906
- this.storage.clearConfig(key).pipe(take(1)).subscribe({ error: () => { } });
3907
- }
3908
- catch { }
3909
- try {
3910
- this.snack.open(this.t('settings.resetDone', 'Preferencias de abas redefinidas'), undefined, { duration: 2000 });
4487
+ this.storage.clearConfig(key).pipe(take(1)).subscribe({
4488
+ next: () => {
4489
+ try {
4490
+ this.snack.open(this.t('settings.resetDone', 'Preferencias de abas redefinidas'), undefined, { duration: 2000 });
4491
+ }
4492
+ catch { }
4493
+ },
4494
+ error: (error) => this.logger.warn('[PraxisTabs] Failed to clear tabs configuration.', {
4495
+ context: { lib: 'praxis-tabs', component: 'PraxisTabs' },
4496
+ data: { key, error },
4497
+ }),
4498
+ });
3911
4499
  }
3912
4500
  catch { }
3913
4501
  // keep current in-memory config; caller may choose to reload
3914
4502
  }
3915
4503
  openQuickSetup() {
3916
- const key = this.storageKey() || this.tabsId || 'default';
4504
+ const storageKey = this.storageKey({ warnMissingId: false });
4505
+ const idSuffix = storageKey || this.tabsId || 'default';
4506
+ const hasHostBaseline = this.hostInputBaselineConfig != null;
4507
+ const baselineConfig = hasHostBaseline
4508
+ ? this.cloneTabsMetadata(this.hostInputBaselineConfig)
4509
+ : undefined;
4510
+ const canPersist = () => Boolean(storageKey) && !this.isVolatilePersistence() && !this.usesInputFirstConfig();
4511
+ let savedViaHandler = false;
4512
+ let resetViaHandler = false;
4513
+ let committed = false;
4514
+ let appliedPreview = false;
3917
4515
  const initialDocument = createTabsAuthoringDocument({
3918
4516
  config: this.config ?? {},
3919
4517
  bindings: this.currentTabsBindings(),
3920
4518
  });
3921
4519
  const ref = this.settings.open({
3922
- id: `praxis-tabs-quick-setup:${key}`,
4520
+ id: `praxis-tabs-quick-setup:${idSuffix}`,
4521
+ owner: this.destroyRef,
3923
4522
  title: this.t('quickSetup.title', 'Criar abas rapidamente'),
4523
+ configStorageKey: canPersist() ? (storageKey ?? undefined) : undefined,
4524
+ onSave: canPersist() && storageKey
4525
+ ? async (value) => {
4526
+ if (!canPersist() || this.storageKey({ warnMissingId: false }) !== storageKey) {
4527
+ throw new Error('Tabs configuration persistence target is no longer active.');
4528
+ }
4529
+ const document = normalizeTabsAuthoringDocument(value);
4530
+ const plan = buildTabsApplyPlan(document, {
4531
+ currentBindings: this.currentTabsBindings(),
4532
+ currentConfig: this.config,
4533
+ }, {
4534
+ saveConfig: true,
4535
+ saveBindings: false,
4536
+ });
4537
+ if (plan.diagnostics.some((item) => item.level === 'error')) {
4538
+ throw new Error('Invalid tabs configuration');
4539
+ }
4540
+ await firstValueFrom(this.storage.saveConfig(storageKey, this.cloneTabsMetadata(plan.canonicalConfig)));
4541
+ savedViaHandler = true;
4542
+ }
4543
+ : undefined,
4544
+ onReset: canPersist() && storageKey
4545
+ ? async () => {
4546
+ if (!canPersist() || this.storageKey({ warnMissingId: false }) !== storageKey) {
4547
+ throw new Error('Tabs configuration persistence target is no longer active.');
4548
+ }
4549
+ await firstValueFrom(this.storage.clearConfig(storageKey));
4550
+ resetViaHandler = true;
4551
+ }
4552
+ : undefined,
3924
4553
  content: {
3925
4554
  component: TabsQuickSetupComponent,
3926
4555
  inputs: { document: initialDocument },
3927
4556
  },
3928
4557
  });
3929
- const applyDocument = (value) => {
4558
+ const restoreBaseline = () => {
4559
+ this.config =
4560
+ hasHostBaseline && baselineConfig
4561
+ ? this.cloneTabsMetadata(baselineConfig)
4562
+ : {};
4563
+ this.syncSelectionFromConfig();
4564
+ this.syncGeneratedContentForm();
4565
+ this.syncRuntimeStyleElement();
4566
+ this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
4567
+ };
4568
+ const applyDocument = (value, options) => {
3930
4569
  const document = normalizeTabsAuthoringDocument(value);
3931
4570
  const plan = buildTabsApplyPlan(document, {
3932
4571
  currentBindings: this.currentTabsBindings(),
@@ -3935,10 +4574,43 @@ class PraxisTabs {
3935
4574
  saveConfig: true,
3936
4575
  saveBindings: false,
3937
4576
  });
3938
- this.applyTabsAuthoringPlan(plan);
4577
+ this.applyTabsAuthoringPlan(plan, options);
3939
4578
  };
3940
- ref.applied$.pipe(takeUntil(this.destroy$)).subscribe(applyDocument);
3941
- ref.saved$.pipe(takeUntil(this.destroy$)).subscribe(applyDocument);
4579
+ ref.applied$.pipe(takeUntil(this.destroy$)).subscribe((val) => {
4580
+ if (!val)
4581
+ return;
4582
+ appliedPreview = true;
4583
+ applyDocument(val, { skipStoragePersist: true });
4584
+ });
4585
+ ref.saved$.pipe(takeUntil(this.destroy$)).subscribe((val) => {
4586
+ const skipStoragePersist = savedViaHandler;
4587
+ savedViaHandler = false;
4588
+ if (!val)
4589
+ return;
4590
+ committed = true;
4591
+ appliedPreview = false;
4592
+ applyDocument(val, { skipStoragePersist });
4593
+ });
4594
+ ref.reset$?.pipe(takeUntil(this.destroy$)).subscribe(() => {
4595
+ const skipClear = resetViaHandler;
4596
+ resetViaHandler = false;
4597
+ committed = true;
4598
+ appliedPreview = false;
4599
+ if (!skipClear && canPersist() && storageKey) {
4600
+ this.storage.clearConfig(storageKey).pipe(take(1)).subscribe({
4601
+ error: (error) => this.logger.warn('[PraxisTabs] Failed to clear tabs configuration.', {
4602
+ context: { lib: 'praxis-tabs', component: 'PraxisTabs' },
4603
+ data: { key: storageKey, error },
4604
+ }),
4605
+ });
4606
+ }
4607
+ restoreBaseline();
4608
+ });
4609
+ ref.closed$?.pipe(take(1), takeUntil(this.destroy$)).subscribe(() => {
4610
+ if (appliedPreview && !committed) {
4611
+ restoreBaseline();
4612
+ }
4613
+ });
3942
4614
  }
3943
4615
  currentTabsBindings() {
3944
4616
  return {
@@ -3949,13 +4621,14 @@ class PraxisTabs {
3949
4621
  t(key, fallback) {
3950
4622
  return this.i18n.t(key, undefined, fallback, PRAXIS_TABS_I18N_NAMESPACE);
3951
4623
  }
3952
- applyTabsAuthoringPlan(plan) {
4624
+ applyTabsAuthoringPlan(plan, options) {
3953
4625
  if (plan.diagnostics.some((item) => item.level === 'error')) {
3954
4626
  return;
3955
4627
  }
3956
4628
  this.config = plan.canonicalConfig;
3957
4629
  this.syncSelectionFromConfig();
3958
4630
  this.syncGeneratedContentForm();
4631
+ this.syncRuntimeStyleElement();
3959
4632
  if (plan.runtime.rebuildLazyState) {
3960
4633
  this.groupLoaded.clear();
3961
4634
  this.navLoaded.clear();
@@ -3968,29 +4641,49 @@ class PraxisTabs {
3968
4641
  this.navLoaded.add(navIndex);
3969
4642
  }
3970
4643
  }
3971
- if (plan.persistence.saveConfig) {
4644
+ if (plan.persistence.saveConfig && !options?.skipStoragePersist) {
3972
4645
  this.persistConfig(this.config);
3973
4646
  }
4647
+ this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
3974
4648
  }
3975
4649
  storageKey(options = {}) {
3976
4650
  const id = this.componentKeyId(options);
3977
4651
  return id ? `tabs:${id}` : null;
3978
4652
  }
3979
4653
  loadStoredConfigForCurrentIdentity(options = {}) {
3980
- if (this.usesInputFirstConfig()) {
4654
+ this.storageLoad?.unsubscribe();
4655
+ this.storageLoad = undefined;
4656
+ if (this.isVolatilePersistence() || this.usesInputFirstConfig()) {
3981
4657
  return;
3982
4658
  }
3983
4659
  const key = this.storageKey(options);
3984
4660
  if (!key || key === this.loadedStorageKey)
3985
4661
  return;
3986
4662
  this.loadedStorageKey = key;
3987
- this.storage.loadConfig(key).pipe(take(1)).subscribe((stored) => {
3988
- if (stored) {
3989
- this.config = stored;
3990
- this.syncGeneratedContentForm();
3991
- }
3992
- this.syncSelectionFromConfig();
3993
- this.reapplyControlledSelectedIndex();
4663
+ this.storageLoad = this.storage.loadConfig(key).pipe(take(1)).subscribe({
4664
+ next: (stored) => {
4665
+ if (this.destroyed || this.isVolatilePersistence() || this.usesInputFirstConfig()) {
4666
+ return;
4667
+ }
4668
+ if (key !== this.storageKey({ warnMissingId: false })) {
4669
+ return;
4670
+ }
4671
+ if (stored) {
4672
+ this.config = stored;
4673
+ this.syncGeneratedContentForm();
4674
+ this.syncRuntimeStyleElement();
4675
+ this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
4676
+ }
4677
+ this.syncSelectionFromConfig();
4678
+ this.reapplyControlledSelectedIndex();
4679
+ },
4680
+ error: () => {
4681
+ if (this.destroyed) {
4682
+ return;
4683
+ }
4684
+ this.syncSelectionFromConfig();
4685
+ this.reapplyControlledSelectedIndex();
4686
+ },
3994
4687
  });
3995
4688
  }
3996
4689
  syncSelectionFromConfig() {
@@ -4050,15 +4743,25 @@ class PraxisTabs {
4050
4743
  }
4051
4744
  }
4052
4745
  persistConfig(config) {
4053
- if (this.usesInputFirstConfig())
4746
+ if (this.isVolatilePersistence() || this.usesInputFirstConfig())
4054
4747
  return;
4055
4748
  const key = this.storageKey();
4056
4749
  if (!key || !config)
4057
4750
  return;
4058
- this.storage.saveConfig(key, config).pipe(take(1)).subscribe({ error: () => { } });
4751
+ this.storage.saveConfig(key, config).pipe(take(1)).subscribe({
4752
+ error: (error) => this.logger.warn('[PraxisTabs] Failed to persist tabs configuration.', {
4753
+ context: { lib: 'praxis-tabs', component: 'PraxisTabs' },
4754
+ data: { key, error },
4755
+ }),
4756
+ });
4757
+ }
4758
+ isVolatilePersistence() {
4759
+ return (normalizeConfigPersistenceStrategy(this.configPersistenceStrategy, 'local-first') ===
4760
+ 'volatile');
4059
4761
  }
4060
4762
  usesInputFirstConfig() {
4061
- return this.configPersistenceStrategy === 'input-first' && !!this.config;
4763
+ const normalized = normalizeConfigPersistenceStrategy(this.configPersistenceStrategy, 'local-first');
4764
+ return normalized === 'volatile' || (normalized === 'input-first' && this.hostInputBaselineConfig != null);
4062
4765
  }
4063
4766
  componentKeyId(options = {}) {
4064
4767
  const key = this.componentKeys.buildComponentId({
@@ -4100,6 +4803,7 @@ class PraxisTabs {
4100
4803
  this.config = next;
4101
4804
  this.syncSelectionFromConfig();
4102
4805
  this.syncGeneratedContentForm();
4806
+ this.syncRuntimeStyleElement();
4103
4807
  this.persistConfig(this.config);
4104
4808
  this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
4105
4809
  }
@@ -4230,6 +4934,67 @@ class PraxisTabs {
4230
4934
  { kind: 'link', id: linkId, index: linkIndex },
4231
4935
  ];
4232
4936
  }
4937
+ effectiveVariant() {
4938
+ const variant = this.config?.appearance?.variant;
4939
+ if (variant === 'pill' || variant === 'segmented') {
4940
+ return variant;
4941
+ }
4942
+ return 'underline';
4943
+ }
4944
+ resolveTabLabelClass(tab) {
4945
+ return this.buildTabClassList(tab?.labelClass, tab?.tone);
4946
+ }
4947
+ resolveLinkClass(link) {
4948
+ return this.buildTabClassList(link?.labelClass, link?.tone);
4949
+ }
4950
+ buildTabClassList(labelClass, tone) {
4951
+ const classes = [];
4952
+ if (Array.isArray(labelClass)) {
4953
+ for (const item of labelClass) {
4954
+ if (typeof item === 'string' && item.trim()) {
4955
+ classes.push(...item.trim().split(/[\s,]+/).filter(Boolean));
4956
+ }
4957
+ }
4958
+ }
4959
+ else if (typeof labelClass === 'string' && labelClass.trim()) {
4960
+ classes.push(...labelClass.trim().split(/[\s,]+/).filter(Boolean));
4961
+ }
4962
+ if (tone && tone !== 'default') {
4963
+ classes.push(`praxis-tab-tone--${tone}`);
4964
+ }
4965
+ return Array.from(new Set(classes)).join(' ');
4966
+ }
4967
+ syncRuntimeStyleElement() {
4968
+ const cssParts = [this.safeCustomCss(), this.styleCss()].filter((part) => typeof part === 'string' && !!part.trim());
4969
+ const nextCss = cssParts.join('\n');
4970
+ if (nextCss === this.lastRuntimeCss) {
4971
+ if (!nextCss || this.runtimeStyleEl?.isConnected) {
4972
+ return;
4973
+ }
4974
+ }
4975
+ this.lastRuntimeCss = nextCss;
4976
+ const host = this.hostElement?.nativeElement;
4977
+ const doc = host?.ownerDocument;
4978
+ if (!host || !doc)
4979
+ return;
4980
+ if (!nextCss) {
4981
+ this.runtimeStyleEl?.remove();
4982
+ this.runtimeStyleEl = undefined;
4983
+ return;
4984
+ }
4985
+ if (!this.runtimeStyleEl) {
4986
+ const styleEl = doc.createElement('style');
4987
+ styleEl.setAttribute('data-praxis-tabs-runtime-style', this.styleScopeId());
4988
+ host.prepend(styleEl);
4989
+ this.runtimeStyleEl = styleEl;
4990
+ }
4991
+ else {
4992
+ this.runtimeStyleEl.setAttribute('data-praxis-tabs-runtime-style', this.styleScopeId());
4993
+ }
4994
+ if (this.runtimeStyleEl.textContent !== nextCss) {
4995
+ this.runtimeStyleEl.textContent = nextCss;
4996
+ }
4997
+ }
4233
4998
  styleScopeId() {
4234
4999
  const scopeSeed = [this.tabsId, this.componentInstanceId]
4235
5000
  .filter((v) => typeof v === 'string' && !!v.trim())
@@ -4284,69 +5049,86 @@ class PraxisTabs {
4284
5049
  if (!t)
4285
5050
  return null;
4286
5051
  const scope = `.praxis-tabs-root[data-tabs-id="${this.styleScopeId()}"]`;
5052
+ const groupHeader = `${scope} > .praxis-tabs-group > .mat-mdc-tab-header`;
5053
+ const navHeader = `${scope} > .praxis-tabs-nav-bar`;
5054
+ const headerContainers = `${groupHeader}, ${navHeader}`;
4287
5055
  const rules = [];
5056
+ const headerVars = [];
4288
5057
  const push = (selector, decls) => {
4289
- rules.push(`${scope} ${selector}{${decls.join('')}}`);
5058
+ const s = selector.trim();
5059
+ rules.push(`${groupHeader} ${s}, ${navHeader} ${s}{${decls.join('')}}`);
5060
+ };
5061
+ const pushHeaderContainer = (decls) => {
5062
+ rules.push(`${headerContainers}{${decls.join('')}}`);
5063
+ };
5064
+ const pushVariantHeader = (variantClass, decls) => {
5065
+ rules.push(`${scope}.${variantClass} > .praxis-tabs-group > .mat-mdc-tab-header, ${scope}.${variantClass} > .praxis-tabs-nav-bar{${decls.join('')}}`);
5066
+ };
5067
+ const pushVariantTab = (variantClass, selector, decls) => {
5068
+ const s = selector.trim();
5069
+ rules.push(`${scope}.${variantClass} > .praxis-tabs-group > .mat-mdc-tab-header ${s}, ${scope}.${variantClass} > .praxis-tabs-nav-bar ${s}{${decls.join('')}}`);
4290
5070
  };
4291
- // Active indicator underline
5071
+ // Active indicator underline (group + nav)
4292
5072
  const activeIndicatorColor = this.sanitizeCssValue(t['active-indicator-color']);
4293
5073
  if (activeIndicatorColor) {
4294
- push(' .mat-mdc-tab .mdc-tab-indicator__content--underline', [`background-color:${activeIndicatorColor}!important;`]);
5074
+ push('.mdc-tab .mdc-tab-indicator__content--underline', [`background-color:${activeIndicatorColor}!important;`]);
4295
5075
  }
4296
5076
  // Active label
4297
5077
  const activeLabelColor = this.sanitizeCssValue(t['active-label-text-color']);
4298
5078
  if (activeLabelColor) {
4299
- push(' .mdc-tab--active .mdc-tab__text-label', [
5079
+ headerVars.push(`--p-tabs-active-label-color:${activeLabelColor};`);
5080
+ push('.mdc-tab--active .mdc-tab__text-label', [
4300
5081
  `color:${activeLabelColor}!important;`,
4301
5082
  ]);
4302
5083
  }
4303
5084
  const activeHoverLabelColor = this.sanitizeCssValue(t['active-hover-label-text-color']);
4304
5085
  if (activeHoverLabelColor) {
4305
- push(' .mdc-tab--active:hover .mdc-tab__text-label', [
5086
+ push('.mdc-tab--active:hover .mdc-tab__text-label', [
4306
5087
  `color:${activeHoverLabelColor}!important;`,
4307
5088
  ]);
4308
5089
  }
4309
5090
  const activeFocusLabelColor = this.sanitizeCssValue(t['active-focus-label-text-color']);
4310
5091
  if (activeFocusLabelColor) {
4311
- push(' .mdc-tab--active:focus .mdc-tab__text-label', [
5092
+ push('.mdc-tab--active:focus .mdc-tab__text-label', [
4312
5093
  `color:${activeFocusLabelColor}!important;`,
4313
5094
  ]);
4314
5095
  }
4315
5096
  const activeFocusIndicatorColor = this.sanitizeCssValue(t['active-focus-indicator-color']);
4316
5097
  if (activeFocusIndicatorColor) {
4317
- push(' .mdc-tab--active:focus .mdc-tab-indicator__content--underline', [
5098
+ push('.mdc-tab--active:focus .mdc-tab-indicator__content--underline', [
4318
5099
  `background-color:${activeFocusIndicatorColor}!important;`,
4319
5100
  ]);
4320
5101
  }
4321
5102
  const activeHoverIndicatorColor = this.sanitizeCssValue(t['active-hover-indicator-color']);
4322
5103
  if (activeHoverIndicatorColor) {
4323
- push(' .mdc-tab--active:hover .mdc-tab-indicator__content--underline', [
5104
+ push('.mdc-tab--active:hover .mdc-tab-indicator__content--underline', [
4324
5105
  `background-color:${activeHoverIndicatorColor}!important;`,
4325
5106
  ]);
4326
5107
  }
4327
5108
  // Inactive label
4328
5109
  const inactiveLabelColor = this.sanitizeCssValue(t['inactive-label-text-color']);
4329
5110
  if (inactiveLabelColor) {
4330
- push(' .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label', [
5111
+ headerVars.push(`--p-tabs-inactive-label-color:${inactiveLabelColor};`);
5112
+ push('.mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label', [
4331
5113
  `color:${inactiveLabelColor}!important;`,
4332
5114
  ]);
4333
5115
  }
4334
5116
  const inactiveHoverLabelColor = this.sanitizeCssValue(t['inactive-hover-label-text-color']);
4335
5117
  if (inactiveHoverLabelColor) {
4336
- push(' .mdc-tab:not(.mdc-tab--active):hover .mdc-tab__text-label', [
5118
+ push('.mdc-tab:not(.mdc-tab--active):hover .mdc-tab__text-label', [
4337
5119
  `color:${inactiveHoverLabelColor}!important;`,
4338
5120
  ]);
4339
5121
  }
4340
5122
  const inactiveFocusLabelColor = this.sanitizeCssValue(t['inactive-focus-label-text-color']);
4341
5123
  if (inactiveFocusLabelColor) {
4342
- push(' .mdc-tab:not(.mdc-tab--active):focus .mdc-tab__text-label', [
5124
+ push('.mdc-tab:not(.mdc-tab--active):focus .mdc-tab__text-label', [
4343
5125
  `color:${inactiveFocusLabelColor}!important;`,
4344
5126
  ]);
4345
5127
  }
4346
5128
  // Pagination chevrons
4347
5129
  const paginationIconColor = this.sanitizeCssValue(t['pagination-icon-color']);
4348
5130
  if (paginationIconColor) {
4349
- push(' .mat-mdc-tab-header-pagination-chevron', [
5131
+ push('.mat-mdc-tab-header-pagination-chevron', [
4350
5132
  `color:${paginationIconColor}!important;`,
4351
5133
  ]);
4352
5134
  }
@@ -4357,13 +5139,49 @@ class PraxisTabs {
4357
5139
  containerDecls.push(`border-bottom-color:${dividerColor}!important;`);
4358
5140
  }
4359
5141
  if (containerDecls.length) {
4360
- push(' .mat-mdc-tab-header', containerDecls);
4361
- push(' .mat-mdc-tab-nav-bar', containerDecls);
5142
+ pushHeaderContainer(containerDecls);
4362
5143
  }
4363
5144
  const backgroundColor = this.sanitizeCssValue(t['background-color']);
4364
5145
  if (backgroundColor) {
4365
- push(' .mat-mdc-tab-header', [`background:${backgroundColor}!important;`]);
4366
- push(' .mat-mdc-tab-nav-bar', [`background:${backgroundColor}!important;`]);
5146
+ pushHeaderContainer([`background:${backgroundColor}!important;`]);
5147
+ }
5148
+ // Pill & Segmented surface tokens
5149
+ const trackBackgroundColor = this.sanitizeCssValue(t['track-background-color']);
5150
+ if (trackBackgroundColor) {
5151
+ headerVars.push(`--p-tabs-track-bg:${trackBackgroundColor};`);
5152
+ pushVariantHeader('variant-pill', [`background:${trackBackgroundColor}!important;`]);
5153
+ pushVariantHeader('variant-segmented', [`background:${trackBackgroundColor}!important;`]);
5154
+ }
5155
+ const trackBorderColor = this.sanitizeCssValue(t['track-border-color']);
5156
+ if (trackBorderColor) {
5157
+ headerVars.push(`--p-tabs-track-border:${trackBorderColor};`);
5158
+ pushVariantHeader('variant-pill', [`border-color:${trackBorderColor}!important;`]);
5159
+ pushVariantHeader('variant-segmented', [`border-color:${trackBorderColor}!important;`]);
5160
+ }
5161
+ const activeTabBackgroundColor = this.sanitizeCssValue(t['active-tab-background-color']);
5162
+ if (activeTabBackgroundColor) {
5163
+ headerVars.push(`--p-tabs-active-bg:${activeTabBackgroundColor};`);
5164
+ pushVariantTab('variant-pill', '.mdc-tab.mdc-tab--active', [`background-color:${activeTabBackgroundColor}!important;`]);
5165
+ pushVariantTab('variant-segmented', '.mdc-tab.mdc-tab--active', [`background-color:${activeTabBackgroundColor}!important;`]);
5166
+ }
5167
+ const activeTabOutlineColor = this.sanitizeCssValue(t['active-tab-outline-color']);
5168
+ if (activeTabOutlineColor) {
5169
+ headerVars.push(`--p-tabs-active-outline:${activeTabOutlineColor};`);
5170
+ pushVariantTab('variant-pill', '.mdc-tab.praxis-tab-tone--outlined', [`border-color:${activeTabOutlineColor}!important;`]);
5171
+ pushVariantTab('variant-pill', '.mdc-tab:focus-visible', [`border-color:${activeTabOutlineColor}!important;`]);
5172
+ pushVariantTab('variant-segmented', '.mdc-tab.praxis-tab-tone--outlined', [`border-color:${activeTabOutlineColor}!important;`]);
5173
+ pushVariantTab('variant-segmented', '.mdc-tab:focus-visible', [`border-color:${activeTabOutlineColor}!important;`]);
5174
+ }
5175
+ const pillRadius = this.sanitizeCssValue(t['pill-radius']);
5176
+ if (pillRadius) {
5177
+ headerVars.push(`--p-tabs-pill-radius:${pillRadius};`);
5178
+ pushVariantHeader('variant-pill', [`border-radius:${pillRadius}!important;`]);
5179
+ pushVariantTab('variant-pill', '.mdc-tab', [`border-radius:${pillRadius}!important;`]);
5180
+ pushVariantHeader('variant-segmented', [`border-radius:${pillRadius}!important;`]);
5181
+ pushVariantTab('variant-segmented', '.mdc-tab', [`border-radius:${pillRadius}!important;`]);
5182
+ }
5183
+ if (headerVars.length) {
5184
+ rules.unshift(`${headerContainers}{${headerVars.join('')}}`);
4367
5185
  }
4368
5186
  return rules.length ? rules.join('\n') : null;
4369
5187
  }
@@ -4389,6 +5207,9 @@ class PraxisTabs {
4389
5207
  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
5208
  <div
4391
5209
  class="praxis-tabs-root"
5210
+ [class.variant-underline]="effectiveVariant() === 'underline'"
5211
+ [class.variant-pill]="effectiveVariant() === 'pill'"
5212
+ [class.variant-segmented]="effectiveVariant() === 'segmented'"
4392
5213
  [class.density-compact]="config?.appearance?.density === 'compact'"
4393
5214
  [class.density-comfortable]="config?.appearance?.density === 'comfortable'"
4394
5215
  [class.density-spacious]="config?.appearance?.density === 'spacious'"
@@ -4397,14 +5218,6 @@ class PraxisTabs {
4397
5218
  [ngClass]="config?.appearance?.themeClass || ''"
4398
5219
  [attr.data-tabs-id]="styleScopeId()"
4399
5220
  >
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
5221
 
4409
5222
  @if (enableCustomization) {
4410
5223
  <div class="tabs-ai-assistant">
@@ -4472,6 +5285,8 @@ class PraxisTabs {
4472
5285
  @if (isNavMode()) {
4473
5286
  <nav
4474
5287
  mat-tab-nav-bar
5288
+ [class.praxis-tabs-nav-bar]="true"
5289
+ [class.praxis-tabs-stretch]="!!config?.nav?.stretchTabs"
4475
5290
  [tabPanel]="tabPanel"
4476
5291
  cdkDropList
4477
5292
  cdkDropListOrientation="horizontal"
@@ -4499,6 +5314,7 @@ class PraxisTabs {
4499
5314
  [disabled]="entry.link.disabled"
4500
5315
  [disableRipple]="config?.nav?.disableRipple || entry.link.disableRipple"
4501
5316
  [fitInkBarToContent]="entry.link.fitInkBarToContent || false"
5317
+ [ngClass]="resolveLinkClass(entry.link)"
4502
5318
  [id]="entry.link.id || ''"
4503
5319
  (click)="onNavClick(entry.index)"
4504
5320
  >
@@ -4559,6 +5375,10 @@ class PraxisTabs {
4559
5375
  } @else {
4560
5376
  <mat-tab-group
4561
5377
  [class.praxis-tabs-group--header-only]="!shouldRenderGroupBody()"
5378
+ [class.praxis-tabs-stretch]="!!config?.group?.stretchTabs"
5379
+ [class.align-start]="(config?.group?.alignTabs || 'start') === 'start'"
5380
+ [class.align-center]="config?.group?.alignTabs === 'center'"
5381
+ [class.align-end]="config?.group?.alignTabs === 'end'"
4562
5382
  [dynamicHeight]="config?.group?.dynamicHeight"
4563
5383
  [disableRipple]="config?.group?.disableRipple"
4564
5384
  [disablePagination]="config?.group?.disablePagination"
@@ -4583,7 +5403,7 @@ class PraxisTabs {
4583
5403
  @for (entry of visibleTabEntries(); track trackVisibleTab(i, entry); let i = $index) {
4584
5404
  <mat-tab
4585
5405
  [disabled]="entry.tab.disabled"
4586
- [labelClass]="entry.tab.labelClass ?? ''"
5406
+ [labelClass]="resolveTabLabelClass(entry.tab)"
4587
5407
  [bodyClass]="entry.tab.bodyClass ?? ''"
4588
5408
  [id]="entry.tab.id || ''"
4589
5409
  [attr.aria-label]="entry.tab.ariaLabel || null"
@@ -4680,7 +5500,7 @@ class PraxisTabs {
4680
5500
  <mat-icon aria-hidden="true" fontIcon="edit"></mat-icon>
4681
5501
  </button>
4682
5502
  }
4683
- @if (enableCustomization && tabsId) {
5503
+ @if (enableCustomization && tabsId && !isVolatilePersistence() && !usesInputFirstConfig()) {
4684
5504
  <button
4685
5505
  mat-mini-fab
4686
5506
  class="edit-fab edit-fab-secondary"
@@ -4692,7 +5512,7 @@ class PraxisTabs {
4692
5512
  </button>
4693
5513
  }
4694
5514
  </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 });
5515
+ `, 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
5516
  }
4697
5517
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisTabs, decorators: [{
4698
5518
  type: Component,
@@ -4713,6 +5533,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4713
5533
  ], template: `
4714
5534
  <div
4715
5535
  class="praxis-tabs-root"
5536
+ [class.variant-underline]="effectiveVariant() === 'underline'"
5537
+ [class.variant-pill]="effectiveVariant() === 'pill'"
5538
+ [class.variant-segmented]="effectiveVariant() === 'segmented'"
4716
5539
  [class.density-compact]="config?.appearance?.density === 'compact'"
4717
5540
  [class.density-comfortable]="config?.appearance?.density === 'comfortable'"
4718
5541
  [class.density-spacious]="config?.appearance?.density === 'spacious'"
@@ -4721,14 +5544,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4721
5544
  [ngClass]="config?.appearance?.themeClass || ''"
4722
5545
  [attr.data-tabs-id]="styleScopeId()"
4723
5546
  >
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
5547
 
4733
5548
  @if (enableCustomization) {
4734
5549
  <div class="tabs-ai-assistant">
@@ -4796,6 +5611,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4796
5611
  @if (isNavMode()) {
4797
5612
  <nav
4798
5613
  mat-tab-nav-bar
5614
+ [class.praxis-tabs-nav-bar]="true"
5615
+ [class.praxis-tabs-stretch]="!!config?.nav?.stretchTabs"
4799
5616
  [tabPanel]="tabPanel"
4800
5617
  cdkDropList
4801
5618
  cdkDropListOrientation="horizontal"
@@ -4823,6 +5640,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4823
5640
  [disabled]="entry.link.disabled"
4824
5641
  [disableRipple]="config?.nav?.disableRipple || entry.link.disableRipple"
4825
5642
  [fitInkBarToContent]="entry.link.fitInkBarToContent || false"
5643
+ [ngClass]="resolveLinkClass(entry.link)"
4826
5644
  [id]="entry.link.id || ''"
4827
5645
  (click)="onNavClick(entry.index)"
4828
5646
  >
@@ -4883,6 +5701,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4883
5701
  } @else {
4884
5702
  <mat-tab-group
4885
5703
  [class.praxis-tabs-group--header-only]="!shouldRenderGroupBody()"
5704
+ [class.praxis-tabs-stretch]="!!config?.group?.stretchTabs"
5705
+ [class.align-start]="(config?.group?.alignTabs || 'start') === 'start'"
5706
+ [class.align-center]="config?.group?.alignTabs === 'center'"
5707
+ [class.align-end]="config?.group?.alignTabs === 'end'"
4886
5708
  [dynamicHeight]="config?.group?.dynamicHeight"
4887
5709
  [disableRipple]="config?.group?.disableRipple"
4888
5710
  [disablePagination]="config?.group?.disablePagination"
@@ -4907,7 +5729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
4907
5729
  @for (entry of visibleTabEntries(); track trackVisibleTab(i, entry); let i = $index) {
4908
5730
  <mat-tab
4909
5731
  [disabled]="entry.tab.disabled"
4910
- [labelClass]="entry.tab.labelClass ?? ''"
5732
+ [labelClass]="resolveTabLabelClass(entry.tab)"
4911
5733
  [bodyClass]="entry.tab.bodyClass ?? ''"
4912
5734
  [id]="entry.tab.id || ''"
4913
5735
  [attr.aria-label]="entry.tab.ariaLabel || null"
@@ -5004,7 +5826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
5004
5826
  <mat-icon aria-hidden="true" fontIcon="edit"></mat-icon>
5005
5827
  </button>
5006
5828
  }
5007
- @if (enableCustomization && tabsId) {
5829
+ @if (enableCustomization && tabsId && !isVolatilePersistence() && !usesInputFirstConfig()) {
5008
5830
  <button
5009
5831
  mat-mini-fab
5010
5832
  class="edit-fab edit-fab-secondary"
@@ -5016,7 +5838,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
5016
5838
  </button>
5017
5839
  }
5018
5840
  </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"] }]
5841
+ `, 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
5842
  }], propDecorators: { config: [{
5021
5843
  type: Input
5022
5844
  }], tabsId: [{
@@ -5248,7 +6070,7 @@ const PRAXIS_TABS_COMPONENT_METADATA = {
5248
6070
  selector: 'praxis-tabs',
5249
6071
  component: PraxisTabs,
5250
6072
  friendlyName: 'Praxis Tabs',
5251
- description: 'Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav e suporte a tokens M3 via appearance.',
6073
+ 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
6074
  icon: 'tab',
5253
6075
  authoringManifestRef: {
5254
6076
  componentId: 'praxis-tabs',
@@ -5274,10 +6096,10 @@ const PRAXIS_TABS_COMPONENT_METADATA = {
5274
6096
  },
5275
6097
  {
5276
6098
  name: 'configPersistenceStrategy',
5277
- type: '"storage-first" | "input-first"',
6099
+ type: '"storage-first" | "local-first" | "input-first" | "volatile"',
5278
6100
  default: 'storage-first',
5279
6101
  label: 'Estratégia de persistência',
5280
- description: 'Define se a configuração persistida ou a configuração de entrada governa a instância.',
6102
+ description: 'Define a precedência entre storage e entrada (`local-first`/`storage-first` para persistência local, `input-first` para composição dona do config, `volatile` para previews efêmeros sem leitura ou escrita).',
5281
6103
  },
5282
6104
  {
5283
6105
  name: 'selectedIndex',
@@ -5397,6 +6219,10 @@ const PRAXIS_TABS_COMPONENT_METADATA = {
5397
6219
  scope: 'any',
5398
6220
  },
5399
6221
  ],
6222
+ schemaVersion: '1.0.0',
6223
+ transientInputs: ['context', 'selectedIndex'],
6224
+ lockedInputs: ['tabsId'],
6225
+ visualOverrideKeys: ['config', 'enableCustomization', 'configPersistenceStrategy'],
5400
6226
  tags: ['widget', 'tabs', 'configurable', 'stable'],
5401
6227
  lib: '@praxisui/tabs',
5402
6228
  ports: PRAXIS_TABS_PORTS,
@@ -5412,6 +6238,40 @@ function providePraxisTabsMetadata() {
5412
6238
  };
5413
6239
  }
5414
6240
 
6241
+ const tabsArrayRootResolutionSpec = {
6242
+ allowIndex: false,
6243
+ strategy: 'root-path',
6244
+ paths: ['tabs[]', '$'],
6245
+ };
6246
+ const tabsLayoutRootResolutionSpec = {
6247
+ allowIndex: false,
6248
+ strategy: 'root-path',
6249
+ paths: ['$'],
6250
+ };
6251
+ const tabsRenderBodyRootResolutionSpec = {
6252
+ allowIndex: false,
6253
+ strategy: 'root-path',
6254
+ paths: ['group', 'nav', '$'],
6255
+ };
6256
+ const tabByIdOrLabelResolutionSpec = {
6257
+ allowIndex: false,
6258
+ strategy: 'array-match',
6259
+ paths: ['tabs[]'],
6260
+ matchFields: ['id', 'label', 'textLabel', 'title'],
6261
+ inputMatchFields: ['tabId', 'id', 'textLabel', 'label'],
6262
+ };
6263
+ const tabOrLinkByIdResolutionSpec = {
6264
+ allowIndex: false,
6265
+ strategy: 'array-match',
6266
+ paths: ['tabs[]', 'nav.links[]'],
6267
+ matchFields: ['id', 'label', 'textLabel', 'title'],
6268
+ inputMatchFields: ['tabId', 'linkId', 'id', 'textLabel', 'label'],
6269
+ };
6270
+ const tabsSelectionReconciliation = {
6271
+ selectedIndexPath: 'group.selectedIndex',
6272
+ itemKeyField: 'id',
6273
+ onRemovedActive: 'clamp',
6274
+ };
5415
6275
  const tabItemSchema = {
5416
6276
  type: 'object',
5417
6277
  required: ['id', 'textLabel'],
@@ -5419,6 +6279,8 @@ const tabItemSchema = {
5419
6279
  id: { type: 'string' },
5420
6280
  textLabel: { type: 'string' },
5421
6281
  icon: { type: 'string' },
6282
+ labelClass: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
6283
+ tone: { enum: ['default', 'primary', 'accent', 'outlined'] },
5422
6284
  disabled: { type: 'boolean' },
5423
6285
  visible: { type: 'boolean', default: true },
5424
6286
  content: { type: 'array', items: { type: 'object' } },
@@ -5432,6 +6294,8 @@ const tabPatchSchema = {
5432
6294
  id: { type: 'string' },
5433
6295
  textLabel: { type: 'string' },
5434
6296
  icon: { type: 'string' },
6297
+ labelClass: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
6298
+ tone: { enum: ['default', 'primary', 'accent', 'outlined'] },
5435
6299
  disabled: { type: 'boolean' },
5436
6300
  visible: { type: 'boolean' },
5437
6301
  content: { type: 'array', items: { type: 'object' } },
@@ -5450,23 +6314,23 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5450
6314
  { name: 'componentInstanceId', type: 'string', description: 'Optional instance discriminator for persistence scope.' },
5451
6315
  {
5452
6316
  name: 'configPersistenceStrategy',
5453
- type: '"storage-first" | "input-first"',
5454
- description: 'Controls whether persisted customization or explicit input config governs the runtime. Governed previews with nested widgets should use input-first.',
6317
+ type: '"local-first" | "input-first" | "volatile" | "storage-first"',
6318
+ description: 'Controls whether persisted customization or explicit input config governs the runtime (`local-first`, legacy `storage-first`, composition-owned `input-first`, or ephemeral `volatile`).',
5455
6319
  },
5456
6320
  { name: 'form', type: 'FormGroup', description: 'FormGroup consumed by dynamic field content.' },
5457
6321
  { name: 'context', type: 'Record<string, any>', description: 'Context passed to nested widgets.' },
5458
6322
  { name: 'enableCustomization', type: 'boolean', description: 'Enables Settings Panel authoring surfaces.' },
5459
6323
  ],
5460
6324
  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.' },
6325
+ { kind: 'tab', resolver: 'tab-by-id-or-label', description: 'A group-mode tab in config.tabs[].', resolutionSpec: tabByIdOrLabelResolutionSpec },
6326
+ { kind: 'tabLabel', resolver: 'tab-by-id-or-label', description: 'The text label of a group-mode tab.', resolutionSpec: tabByIdOrLabelResolutionSpec },
6327
+ { kind: 'tabIcon', resolver: 'tab-by-id-or-label', description: 'Icon metadata rendered in a group tab label.', resolutionSpec: tabByIdOrLabelResolutionSpec },
6328
+ { kind: 'tabContent', resolver: 'tab-or-link-by-id', description: 'Dynamic fields or widgets hosted by a tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6329
+ { kind: 'activeTab', resolver: 'tab-index-or-id', description: 'Selected tab or nav link index.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6330
+ { kind: 'visibility', resolver: 'tab-or-link-by-id', description: 'Runtime visibility flag for a group tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6331
+ { kind: 'disabledState', resolver: 'tab-or-link-by-id', description: 'Disabled state of a tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
6332
+ { kind: 'layout', resolver: 'tabs-layout-config', description: 'Group/nav mode, visual variant, header position, density, stretch and behavior settings.', resolutionSpec: tabsLayoutRootResolutionSpec },
6333
+ { 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
6334
  ],
5471
6335
  operations: [
5472
6336
  {
@@ -5474,7 +6338,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5474
6338
  title: 'Add tab',
5475
6339
  scope: 'global',
5476
6340
  targetKind: 'tab',
5477
- target: { kind: 'tab', resolver: 'tabs-array', ambiguityPolicy: 'fail', required: false },
6341
+ target: { kind: 'tab', resolver: 'tabs-array', ambiguityPolicy: 'fail', required: false, resolutionSpec: tabsArrayRootResolutionSpec },
5478
6342
  inputSchema: tabItemSchema,
5479
6343
  effects: [{ kind: 'append-unique', path: 'tabs[]', key: 'id' }],
5480
6344
  validators: ['tab-id-unique', 'tabs-mode-compatible', 'tab-content-valid'],
@@ -5489,7 +6353,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5489
6353
  title: 'Remove tab',
5490
6354
  scope: 'layout',
5491
6355
  targetKind: 'tab',
5492
- target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6356
+ target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5493
6357
  inputSchema: {
5494
6358
  type: 'object',
5495
6359
  properties: {
@@ -5500,6 +6364,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5500
6364
  {
5501
6365
  kind: 'compile-domain-patch',
5502
6366
  handler: 'tabs.remove-tab-and-reselect',
6367
+ selectionReconciliation: tabsSelectionReconciliation,
5503
6368
  handlerContract: {
5504
6369
  reads: ['tabs[]', 'group.selectedIndex'],
5505
6370
  writes: ['tabs[]', 'group.selectedIndex'],
@@ -5525,7 +6390,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5525
6390
  title: 'Set tab label',
5526
6391
  scope: 'layout',
5527
6392
  targetKind: 'tabLabel',
5528
- target: { kind: 'tabLabel', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6393
+ target: { kind: 'tabLabel', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5529
6394
  inputSchema: { type: 'object', required: ['textLabel'], properties: { textLabel: { type: 'string' } } },
5530
6395
  effects: [{ kind: 'merge-by-key', path: 'tabs[]', key: 'id' }],
5531
6396
  destructive: false,
@@ -5540,7 +6405,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5540
6405
  title: 'Set tab icon',
5541
6406
  scope: 'layout',
5542
6407
  targetKind: 'tabIcon',
5543
- target: { kind: 'tabIcon', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6408
+ target: { kind: 'tabIcon', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5544
6409
  inputSchema: { type: 'object', required: ['icon'], properties: { icon: { type: 'string' } } },
5545
6410
  effects: [{ kind: 'merge-by-key', path: 'tabs[]', key: 'id' }],
5546
6411
  destructive: false,
@@ -5555,12 +6420,13 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5555
6420
  title: 'Reorder tabs',
5556
6421
  scope: 'layout',
5557
6422
  targetKind: 'tab',
5558
- target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true },
6423
+ target: { kind: 'tab', resolver: 'tab-by-id-or-label', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabByIdOrLabelResolutionSpec },
5559
6424
  inputSchema: { type: 'object', required: ['beforeTabId'], properties: { beforeTabId: { type: 'string' } } },
5560
6425
  effects: [
5561
6426
  {
5562
6427
  kind: 'compile-domain-patch',
5563
6428
  handler: 'tabs.reorder-tab-and-preserve-selection',
6429
+ selectionReconciliation: tabsSelectionReconciliation,
5564
6430
  handlerContract: {
5565
6431
  reads: ['tabs[]', 'group.selectedIndex'],
5566
6432
  writes: ['tabs[]', 'group.selectedIndex'],
@@ -5583,7 +6449,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5583
6449
  title: 'Set tab disabled state',
5584
6450
  scope: 'interaction',
5585
6451
  targetKind: 'disabledState',
5586
- target: { kind: 'disabledState', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true },
6452
+ target: { kind: 'disabledState', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5587
6453
  inputSchema: { type: 'object', required: ['disabled'], properties: { disabled: { type: 'boolean' } } },
5588
6454
  effects: [
5589
6455
  {
@@ -5611,7 +6477,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5611
6477
  title: 'Set tab visibility',
5612
6478
  scope: 'interaction',
5613
6479
  targetKind: 'visibility',
5614
- target: { kind: 'visibility', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true },
6480
+ target: { kind: 'visibility', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5615
6481
  inputSchema: { type: 'object', required: ['visible'], properties: { visible: { type: 'boolean' } } },
5616
6482
  effects: [
5617
6483
  {
@@ -5639,7 +6505,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5639
6505
  title: 'Set active tab',
5640
6506
  scope: 'interaction',
5641
6507
  targetKind: 'activeTab',
5642
- target: { kind: 'activeTab', resolver: 'tab-index-or-id', ambiguityPolicy: 'fail', required: true },
6508
+ target: { kind: 'activeTab', resolver: 'tab-index-or-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5643
6509
  inputSchema: { type: 'object', required: ['selectedIndex'], properties: { selectedIndex: { type: 'number' }, tabId: { type: 'string' } } },
5644
6510
  effects: [
5645
6511
  {
@@ -5667,12 +6533,13 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5667
6533
  title: 'Set tabs layout variant',
5668
6534
  scope: 'layout',
5669
6535
  targetKind: 'layout',
5670
- target: { kind: 'layout', resolver: 'tabs-layout-config', ambiguityPolicy: 'fail', required: true },
6536
+ target: { kind: 'layout', resolver: 'tabs-layout-config', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabsLayoutRootResolutionSpec },
5671
6537
  inputSchema: {
5672
6538
  type: 'object',
5673
- required: ['mode'],
6539
+ minProperties: 1,
5674
6540
  properties: {
5675
6541
  mode: { enum: ['group', 'nav'] },
6542
+ variant: { enum: ['underline', 'pill', 'segmented'] },
5676
6543
  density: { enum: ['compact', 'comfortable', 'spacious'] },
5677
6544
  headerPosition: { enum: ['above', 'below'] },
5678
6545
  alignTabs: { enum: ['start', 'center', 'end'] },
@@ -5684,7 +6551,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5684
6551
  destructive: false,
5685
6552
  requiresConfirmation: false,
5686
6553
  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'],
6554
+ affectedPaths: ['appearance.variant', 'appearance.density', 'group.headerPosition', 'group.alignTabs', 'group.stretchTabs', 'nav.stretchTabs', 'behavior.lazyLoad'],
5688
6555
  submissionImpact: 'config-only',
5689
6556
  preconditions: ['config-initialized'],
5690
6557
  },
@@ -5693,7 +6560,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5693
6560
  title: 'Set tab content',
5694
6561
  scope: 'layout',
5695
6562
  targetKind: 'tabContent',
5696
- target: { kind: 'tabContent', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true },
6563
+ target: { kind: 'tabContent', resolver: 'tab-or-link-by-id', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabOrLinkByIdResolutionSpec },
5697
6564
  inputSchema: tabPatchSchema,
5698
6565
  effects: [
5699
6566
  {
@@ -5753,6 +6620,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5753
6620
  { id: 'reject-duplicate-tab-id', request: 'Add another tab with id overview.', operationId: 'tab.add', params: { id: 'overview', textLabel: 'Duplicate Overview' }, isPositive: false },
5754
6621
  { 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
6622
  { id: 'confirm-remove-content-tab', request: 'Remove the details tab that contains widgets.', operationId: 'tab.remove', target: 'details', params: { replacementActiveTabId: 'overview' }, isPositive: true },
6623
+ { id: 'set-pill-variant', request: 'Switch the tabs header to pill variant.', operationId: 'layout.variant.set', params: { variant: 'pill', density: 'compact' }, isPositive: true },
5756
6624
  ],
5757
6625
  };
5758
6626
 
@@ -5764,4 +6632,4 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
5764
6632
  * Generated bundle index. Do not edit.
5765
6633
  */
5766
6634
 
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 };
6635
+ 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 };