@praxisui/tabs 10.0.0-rc.46 → 10.0.0-rc.47
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.
|
@@ -55,6 +55,8 @@ function validateTabsAuthoringDocument(doc, _context) {
|
|
|
55
55
|
const normalized = normalizeTabsAuthoringDocument(doc);
|
|
56
56
|
const diagnostics = [];
|
|
57
57
|
validateModeAmbiguity(normalized.config, diagnostics);
|
|
58
|
+
validateAppearanceVariant(normalized.config, diagnostics);
|
|
59
|
+
validateItemTones(normalized.config, diagnostics);
|
|
58
60
|
validateDuplicateTabIds(normalized.config, diagnostics);
|
|
59
61
|
validateDuplicateLinkIds(normalized.config, diagnostics);
|
|
60
62
|
validateDuplicateChildWidgetKeys(normalized.config, diagnostics);
|
|
@@ -254,6 +256,27 @@ function slugifyIdentifier(value) {
|
|
|
254
256
|
.replace(/[^a-z0-9]+/g, '-')
|
|
255
257
|
.replace(/^-|-$/g, '');
|
|
256
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
|
+
}
|
|
257
280
|
function validateUnsupportedGuidedFields(config, diagnostics) {
|
|
258
281
|
if (config.group?.contentTabIndex !== undefined) {
|
|
259
282
|
diagnostics.push(infoDiagnostic('tabs.config.group.contentTabIndex.unsupported', 'group.contentTabIndex is outside the supported authoring surface.', 'config.group.contentTabIndex'));
|
|
@@ -381,7 +404,9 @@ const PRAXIS_TABS_PT_BR = {
|
|
|
381
404
|
'editor.fields.ariaLabelledby': 'aria-labelledby',
|
|
382
405
|
'editor.fields.jsonConfig': 'Configuração JSON',
|
|
383
406
|
'editor.fields.themeClass': 'Classe de tema (opcional)',
|
|
407
|
+
'editor.fields.variant': 'Variante visual',
|
|
384
408
|
'editor.fields.density': 'Densidade',
|
|
409
|
+
'editor.fields.tone': 'Tom do item',
|
|
385
410
|
'editor.fields.customCss': 'CSS a ser injetado no componente',
|
|
386
411
|
'editor.fields.addLabel': 'Adicionar rótulo',
|
|
387
412
|
'editor.fields.inputsJson': 'Inputs (JSON)',
|
|
@@ -418,6 +443,14 @@ const PRAXIS_TABS_PT_BR = {
|
|
|
418
443
|
'editor.presets.primary': 'Primário',
|
|
419
444
|
'editor.presets.neutral': 'Neutro',
|
|
420
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)',
|
|
421
454
|
'editor.density.default': 'Padrão',
|
|
422
455
|
'editor.density.compact': 'Compacta',
|
|
423
456
|
'editor.density.comfortable': 'Confortável',
|
|
@@ -450,6 +483,11 @@ const PRAXIS_TABS_PT_BR = {
|
|
|
450
483
|
'editor.tokens.paginationIcon': 'Ícones de paginação',
|
|
451
484
|
'editor.tokens.divider': 'Divisor/linha',
|
|
452
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)',
|
|
453
491
|
'editor.toggles.closeable': 'Fechável',
|
|
454
492
|
'editor.toggles.lazyLoad': 'Carregar sob demanda',
|
|
455
493
|
'editor.toggles.reorderable': 'Reordenável',
|
|
@@ -533,7 +571,9 @@ const PRAXIS_TABS_EN_US = {
|
|
|
533
571
|
'editor.fields.ariaLabelledby': 'aria-labelledby',
|
|
534
572
|
'editor.fields.jsonConfig': 'JSON configuration',
|
|
535
573
|
'editor.fields.themeClass': 'Theme class (optional)',
|
|
574
|
+
'editor.fields.variant': 'Visual variant',
|
|
536
575
|
'editor.fields.density': 'Density',
|
|
576
|
+
'editor.fields.tone': 'Item tone',
|
|
537
577
|
'editor.fields.customCss': 'CSS injected into the component',
|
|
538
578
|
'editor.fields.addLabel': 'Add label',
|
|
539
579
|
'editor.fields.inputsJson': 'Inputs (JSON)',
|
|
@@ -570,6 +610,14 @@ const PRAXIS_TABS_EN_US = {
|
|
|
570
610
|
'editor.presets.primary': 'Primary',
|
|
571
611
|
'editor.presets.neutral': 'Neutral',
|
|
572
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',
|
|
573
621
|
'editor.density.default': 'Default',
|
|
574
622
|
'editor.density.compact': 'Compact',
|
|
575
623
|
'editor.density.comfortable': 'Comfortable',
|
|
@@ -602,6 +650,11 @@ const PRAXIS_TABS_EN_US = {
|
|
|
602
650
|
'editor.tokens.paginationIcon': 'Pagination icons',
|
|
603
651
|
'editor.tokens.divider': 'Divider',
|
|
604
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',
|
|
605
658
|
'editor.toggles.closeable': 'Closeable',
|
|
606
659
|
'editor.toggles.lazyLoad': 'Lazy load',
|
|
607
660
|
'editor.toggles.reorderable': 'Reorderable',
|
|
@@ -695,6 +748,11 @@ class PraxisTabsConfigEditor {
|
|
|
695
748
|
{ key: 'pagination-icon-color', labelKey: 'editor.tokens.paginationIcon', fallback: 'Icones de paginacao' },
|
|
696
749
|
{ key: 'divider-color', labelKey: 'editor.tokens.divider', fallback: 'Divisor/linha' },
|
|
697
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)' },
|
|
698
756
|
];
|
|
699
757
|
presets = {
|
|
700
758
|
primary: {
|
|
@@ -723,6 +781,15 @@ class PraxisTabsConfigEditor {
|
|
|
723
781
|
'divider-color': 'var(--md-sys-color-outline)',
|
|
724
782
|
'background-color': 'var(--md-sys-color-surface)',
|
|
725
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',
|
|
726
793
|
}
|
|
727
794
|
};
|
|
728
795
|
isDirty$ = new BehaviorSubject(false);
|
|
@@ -865,6 +932,9 @@ class PraxisTabsConfigEditor {
|
|
|
865
932
|
if (!preset)
|
|
866
933
|
return;
|
|
867
934
|
const ap = this.appearance;
|
|
935
|
+
if (id === 'pill') {
|
|
936
|
+
ap.variant = 'pill';
|
|
937
|
+
}
|
|
868
938
|
const tokens = (ap.tokens = ap.tokens || {});
|
|
869
939
|
for (const [k, v] of Object.entries(preset)) {
|
|
870
940
|
tokens[k] = v;
|
|
@@ -877,8 +947,36 @@ class PraxisTabsConfigEditor {
|
|
|
877
947
|
const selector = this.editedConfig.appearance?.themeClass
|
|
878
948
|
? `.${this.editedConfig.appearance.themeClass}`
|
|
879
949
|
: ':root';
|
|
880
|
-
const
|
|
881
|
-
|
|
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}`;
|
|
882
980
|
}
|
|
883
981
|
// Group/Nav helpers and list editors
|
|
884
982
|
get group() {
|
|
@@ -1443,6 +1541,10 @@ class PraxisTabsConfigEditor {
|
|
|
1443
1541
|
<mat-icon [praxisIcon]="'visibility'"></mat-icon>
|
|
1444
1542
|
{{ t('editor.presets.highContrast', 'Alto contraste') }}
|
|
1445
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>
|
|
1446
1548
|
<button mat-button (click)="clearTokens()">
|
|
1447
1549
|
<mat-icon [praxisIcon]="'backspace'"></mat-icon>
|
|
1448
1550
|
{{ t('editor.actions.clearTokens', 'Limpar tokens') }}
|
|
@@ -1450,6 +1552,16 @@ class PraxisTabsConfigEditor {
|
|
|
1450
1552
|
</div>
|
|
1451
1553
|
|
|
1452
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
|
+
|
|
1453
1565
|
<mat-form-field appearance="outline">
|
|
1454
1566
|
<mat-label>{{ t('editor.fields.themeClass', 'Classe de tema (opcional)') }}</mat-label>
|
|
1455
1567
|
<input matInput [(ngModel)]="appearance.themeClass" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.fields.placeholder.themeClass', 'ex.: tabs-accented')" />
|
|
@@ -1541,6 +1653,16 @@ class PraxisTabsConfigEditor {
|
|
|
1541
1653
|
<mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.ariaLabelledby', 'aria-labelledby') }}</mat-label>
|
|
1542
1654
|
<input matInput [(ngModel)]="tab.ariaLabelledby" (ngModelChange)="onAppearanceChange()" />
|
|
1543
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>
|
|
1544
1666
|
</div>
|
|
1545
1667
|
<div class="editor-row">
|
|
1546
1668
|
<mat-slide-toggle [(ngModel)]="tab.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.disabled', 'Desativada') }}</mat-slide-toggle>
|
|
@@ -1637,6 +1759,19 @@ class PraxisTabsConfigEditor {
|
|
|
1637
1759
|
<mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.icon', 'Icone') }}</mat-label>
|
|
1638
1760
|
<input matInput [(ngModel)]="l.icon" (ngModelChange)="onAppearanceChange()" />
|
|
1639
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>
|
|
1640
1775
|
</div>
|
|
1641
1776
|
<div class="editor-row">
|
|
1642
1777
|
<mat-slide-toggle [(ngModel)]="l.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.linkDisabled', 'Desativado') }}</mat-slide-toggle>
|
|
@@ -1982,6 +2117,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1982
2117
|
<mat-icon [praxisIcon]="'visibility'"></mat-icon>
|
|
1983
2118
|
{{ t('editor.presets.highContrast', 'Alto contraste') }}
|
|
1984
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>
|
|
1985
2124
|
<button mat-button (click)="clearTokens()">
|
|
1986
2125
|
<mat-icon [praxisIcon]="'backspace'"></mat-icon>
|
|
1987
2126
|
{{ t('editor.actions.clearTokens', 'Limpar tokens') }}
|
|
@@ -1989,6 +2128,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1989
2128
|
</div>
|
|
1990
2129
|
|
|
1991
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
|
+
|
|
1992
2141
|
<mat-form-field appearance="outline">
|
|
1993
2142
|
<mat-label>{{ t('editor.fields.themeClass', 'Classe de tema (opcional)') }}</mat-label>
|
|
1994
2143
|
<input matInput [(ngModel)]="appearance.themeClass" (ngModelChange)="onAppearanceChange()" [placeholder]="t('editor.fields.placeholder.themeClass', 'ex.: tabs-accented')" />
|
|
@@ -2080,6 +2229,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2080
2229
|
<mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.ariaLabelledby', 'aria-labelledby') }}</mat-label>
|
|
2081
2230
|
<input matInput [(ngModel)]="tab.ariaLabelledby" (ngModelChange)="onAppearanceChange()" />
|
|
2082
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>
|
|
2083
2242
|
</div>
|
|
2084
2243
|
<div class="editor-row">
|
|
2085
2244
|
<mat-slide-toggle [(ngModel)]="tab.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.disabled', 'Desativada') }}</mat-slide-toggle>
|
|
@@ -2176,6 +2335,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2176
2335
|
<mat-form-field appearance="outline"><mat-label>{{ t('editor.fields.icon', 'Icone') }}</mat-label>
|
|
2177
2336
|
<input matInput [(ngModel)]="l.icon" (ngModelChange)="onAppearanceChange()" />
|
|
2178
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>
|
|
2179
2351
|
</div>
|
|
2180
2352
|
<div class="editor-row">
|
|
2181
2353
|
<mat-slide-toggle [(ngModel)]="l.disabled" (ngModelChange)="onAppearanceChange()">{{ t('editor.toggles.linkDisabled', 'Desativado') }}</mat-slide-toggle>
|
|
@@ -2454,7 +2626,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
2454
2626
|
* Paths follow TabsMetadata shape (patches are merged at config root).
|
|
2455
2627
|
*/
|
|
2456
2628
|
const ENUMS = {
|
|
2629
|
+
appearanceVariant: ['underline', 'pill', 'segmented'],
|
|
2457
2630
|
appearanceDensity: ['compact', 'comfortable', 'spacious'],
|
|
2631
|
+
tabTone: ['default', 'primary', 'accent', 'outlined'],
|
|
2458
2632
|
alignTabs: ['start', 'center', 'end'],
|
|
2459
2633
|
headerPosition: ['above', 'below'],
|
|
2460
2634
|
matColor: ['primary', 'accent', 'warn'],
|
|
@@ -2473,6 +2647,11 @@ const TOKENS = [
|
|
|
2473
2647
|
'pagination-icon-color',
|
|
2474
2648
|
'divider-color',
|
|
2475
2649
|
'background-color',
|
|
2650
|
+
'track-background-color',
|
|
2651
|
+
'track-border-color',
|
|
2652
|
+
'active-tab-background-color',
|
|
2653
|
+
'active-tab-outline-color',
|
|
2654
|
+
'pill-radius',
|
|
2476
2655
|
];
|
|
2477
2656
|
const TOKEN_CAPS = TOKENS.map((t) => ({
|
|
2478
2657
|
path: `appearance.tokens.${t}`,
|
|
@@ -2483,6 +2662,7 @@ const TOKEN_CAPS = TOKENS.map((t) => ({
|
|
|
2483
2662
|
const CAPS = [
|
|
2484
2663
|
{ path: 'meta', category: 'meta', valueKind: 'object', description: 'Metadata bag for tabs.' },
|
|
2485
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).' },
|
|
2486
2666
|
{ path: 'appearance.density', category: 'appearance', valueKind: 'enum', allowedValues: ENUMS.appearanceDensity, description: 'Density preset.' },
|
|
2487
2667
|
{ path: 'appearance.themeClass', category: 'appearance', valueKind: 'string', description: 'Theme CSS class applied to root.' },
|
|
2488
2668
|
{ path: 'appearance.customCss', category: 'appearance', valueKind: 'string', description: 'Custom CSS injected into component.', safetyNotes: 'CSS is injected as raw string.' },
|
|
@@ -2524,6 +2704,8 @@ const CAPS = [
|
|
|
2524
2704
|
{ path: 'nav.links', category: 'nav', valueKind: 'array', description: 'Nav links array.' },
|
|
2525
2705
|
{ path: 'nav.links[].id', category: 'nav', valueKind: 'string', description: 'Link id.' },
|
|
2526
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).' },
|
|
2527
2709
|
{ path: 'nav.links[].active', category: 'nav', valueKind: 'boolean', description: 'Link active flag.' },
|
|
2528
2710
|
{ path: 'nav.links[].disabled', category: 'nav', valueKind: 'boolean', description: 'Disable link.' },
|
|
2529
2711
|
{ path: 'nav.links[].disableRipple', category: 'nav', valueKind: 'boolean', description: 'Disable ripple on link.' },
|
|
@@ -2535,6 +2717,7 @@ const CAPS = [
|
|
|
2535
2717
|
{ path: 'tabs[].textLabel', category: 'tabs', valueKind: 'string', description: 'Tab label.' },
|
|
2536
2718
|
{ path: 'tabs[].labelClass', category: 'tabs', valueKind: 'string', description: 'Label class (string or string[]).' },
|
|
2537
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).' },
|
|
2538
2721
|
{ path: 'tabs[].ariaLabel', category: 'tabs', valueKind: 'string', description: 'aria-label for tab.' },
|
|
2539
2722
|
{ path: 'tabs[].ariaLabelledby', category: 'tabs', valueKind: 'string', description: 'aria-labelledby for tab.' },
|
|
2540
2723
|
{ path: 'tabs[].disabled', category: 'tabs', valueKind: 'boolean', description: 'Disable tab.' },
|
|
@@ -2582,6 +2765,7 @@ class TabsAiAdapter extends BaseAiAdapter {
|
|
|
2582
2765
|
}
|
|
2583
2766
|
const current = this.getCurrentConfig();
|
|
2584
2767
|
const tabsPatch = [];
|
|
2768
|
+
const rootPatch = {};
|
|
2585
2769
|
const warnings = [];
|
|
2586
2770
|
for (const operationCandidate of operations) {
|
|
2587
2771
|
const operation = this.toRecord(operationCandidate);
|
|
@@ -2622,17 +2806,30 @@ class TabsAiAdapter extends BaseAiAdapter {
|
|
|
2622
2806
|
tabsPatch.push(contentPatch);
|
|
2623
2807
|
continue;
|
|
2624
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
|
+
}
|
|
2625
2818
|
warnings.push(`tabs-component-edit-plan-operation-unsupported:${operationId || '<missing>'}`);
|
|
2626
2819
|
}
|
|
2627
|
-
if (tabsPatch.length === 0) {
|
|
2820
|
+
if (tabsPatch.length === 0 && Object.keys(rootPatch).length === 0) {
|
|
2628
2821
|
return {
|
|
2629
2822
|
type: 'error',
|
|
2630
2823
|
message: this.t('ai.review.unsupportedPlan', 'O componentEditPlan das abas não possui operações suportadas para aplicar.'),
|
|
2631
2824
|
warnings,
|
|
2632
2825
|
};
|
|
2633
2826
|
}
|
|
2827
|
+
const patch = { ...rootPatch };
|
|
2828
|
+
if (tabsPatch.length > 0) {
|
|
2829
|
+
patch['tabs'] = tabsPatch;
|
|
2830
|
+
}
|
|
2634
2831
|
return {
|
|
2635
|
-
patch
|
|
2832
|
+
patch,
|
|
2636
2833
|
explanation: this.summarizeOperations(operations, tabsPatch)
|
|
2637
2834
|
?? (typeof response['explanation'] === 'string'
|
|
2638
2835
|
? response['explanation']
|
|
@@ -2834,13 +3031,66 @@ class TabsAiAdapter extends BaseAiAdapter {
|
|
|
2834
3031
|
return null;
|
|
2835
3032
|
}
|
|
2836
3033
|
const tab = { id, textLabel };
|
|
2837
|
-
for (const key of ['icon', 'disabled', 'visible', 'content', 'widgets']) {
|
|
3034
|
+
for (const key of ['icon', 'labelClass', 'tone', 'disabled', 'visible', 'content', 'widgets']) {
|
|
2838
3035
|
if (input[key] !== undefined) {
|
|
2839
3036
|
tab[key] = input[key];
|
|
2840
3037
|
}
|
|
2841
3038
|
}
|
|
2842
3039
|
return tab;
|
|
2843
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
|
+
}
|
|
2844
3094
|
resolveTabContentInput(operation, current) {
|
|
2845
3095
|
const targetId = this.resolveTargetId(operation, current);
|
|
2846
3096
|
if (!targetId) {
|
|
@@ -2891,6 +3141,13 @@ class TabsAiAdapter extends BaseAiAdapter {
|
|
|
2891
3141
|
if (contentPatch?.id) {
|
|
2892
3142
|
summaries.push(this.t('ai.review.setTabContent', 'Atualizar conteúdo da aba: {{label}}.', { label: contentPatch.textLabel || contentPatch.id }));
|
|
2893
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
|
+
}
|
|
2894
3151
|
}
|
|
2895
3152
|
}
|
|
2896
3153
|
if (summaries.length === 1) {
|
|
@@ -3400,10 +3657,13 @@ class PraxisTabs {
|
|
|
3400
3657
|
destroy$ = new Subject();
|
|
3401
3658
|
widgetDefinitionCache = new WeakMap();
|
|
3402
3659
|
generatedContentForm = new FormGroup({});
|
|
3660
|
+
runtimeStyleEl;
|
|
3661
|
+
lastRuntimeCss = '';
|
|
3403
3662
|
ngOnInit() {
|
|
3404
3663
|
this.syncSelectionFromConfig();
|
|
3405
3664
|
this.syncGeneratedContentForm();
|
|
3406
3665
|
this.loadStoredConfigForCurrentIdentity({ warnMissingId: false });
|
|
3666
|
+
this.syncRuntimeStyleElement();
|
|
3407
3667
|
}
|
|
3408
3668
|
ngOnChanges(changes) {
|
|
3409
3669
|
if (changes['tabsId'] || changes['componentInstanceId'] || changes['configPersistenceStrategy']) {
|
|
@@ -3424,6 +3684,12 @@ class PraxisTabs {
|
|
|
3424
3684
|
this.persistConfig(this.config);
|
|
3425
3685
|
this.reapplyControlledSelectedIndex();
|
|
3426
3686
|
}
|
|
3687
|
+
this.syncRuntimeStyleElement();
|
|
3688
|
+
}
|
|
3689
|
+
ngDoCheck() {
|
|
3690
|
+
if (!this.destroyed) {
|
|
3691
|
+
this.syncRuntimeStyleElement();
|
|
3692
|
+
}
|
|
3427
3693
|
}
|
|
3428
3694
|
ngOnDestroy() {
|
|
3429
3695
|
this.destroyed = true;
|
|
@@ -3431,6 +3697,8 @@ class PraxisTabs {
|
|
|
3431
3697
|
if (this.headerResizeFrame !== undefined) {
|
|
3432
3698
|
this.hostElement.nativeElement.ownerDocument.defaultView?.cancelAnimationFrame(this.headerResizeFrame);
|
|
3433
3699
|
}
|
|
3700
|
+
this.runtimeStyleEl?.remove();
|
|
3701
|
+
this.runtimeStyleEl = undefined;
|
|
3434
3702
|
this.assistantSessions.removeContextSession(this.buildAiAssistantContextSnapshot().identity);
|
|
3435
3703
|
this.aiAssistantStateSubscription?.unsubscribe();
|
|
3436
3704
|
this.destroy$.next();
|
|
@@ -4098,6 +4366,7 @@ class PraxisTabs {
|
|
|
4098
4366
|
});
|
|
4099
4367
|
this.config = next;
|
|
4100
4368
|
this.syncGeneratedContentForm();
|
|
4369
|
+
this.syncRuntimeStyleElement();
|
|
4101
4370
|
this.persistConfig(this.config);
|
|
4102
4371
|
this.selectedIndexSignal.set(this.config?.group?.selectedIndex ?? 0);
|
|
4103
4372
|
}
|
|
@@ -4160,6 +4429,7 @@ class PraxisTabs {
|
|
|
4160
4429
|
this.config = plan.canonicalConfig;
|
|
4161
4430
|
this.syncSelectionFromConfig();
|
|
4162
4431
|
this.syncGeneratedContentForm();
|
|
4432
|
+
this.syncRuntimeStyleElement();
|
|
4163
4433
|
if (plan.runtime.rebuildLazyState) {
|
|
4164
4434
|
this.groupLoaded.clear();
|
|
4165
4435
|
this.navLoaded.clear();
|
|
@@ -4192,6 +4462,7 @@ class PraxisTabs {
|
|
|
4192
4462
|
if (stored) {
|
|
4193
4463
|
this.config = stored;
|
|
4194
4464
|
this.syncGeneratedContentForm();
|
|
4465
|
+
this.syncRuntimeStyleElement();
|
|
4195
4466
|
}
|
|
4196
4467
|
this.syncSelectionFromConfig();
|
|
4197
4468
|
this.reapplyControlledSelectedIndex();
|
|
@@ -4304,6 +4575,7 @@ class PraxisTabs {
|
|
|
4304
4575
|
this.config = next;
|
|
4305
4576
|
this.syncSelectionFromConfig();
|
|
4306
4577
|
this.syncGeneratedContentForm();
|
|
4578
|
+
this.syncRuntimeStyleElement();
|
|
4307
4579
|
this.persistConfig(this.config);
|
|
4308
4580
|
this.configChange.emit({ inputPatch: { config: this.cloneTabsMetadata(this.config) } });
|
|
4309
4581
|
}
|
|
@@ -4434,6 +4706,67 @@ class PraxisTabs {
|
|
|
4434
4706
|
{ kind: 'link', id: linkId, index: linkIndex },
|
|
4435
4707
|
];
|
|
4436
4708
|
}
|
|
4709
|
+
effectiveVariant() {
|
|
4710
|
+
const variant = this.config?.appearance?.variant;
|
|
4711
|
+
if (variant === 'pill' || variant === 'segmented') {
|
|
4712
|
+
return variant;
|
|
4713
|
+
}
|
|
4714
|
+
return 'underline';
|
|
4715
|
+
}
|
|
4716
|
+
resolveTabLabelClass(tab) {
|
|
4717
|
+
return this.buildTabClassList(tab?.labelClass, tab?.tone);
|
|
4718
|
+
}
|
|
4719
|
+
resolveLinkClass(link) {
|
|
4720
|
+
return this.buildTabClassList(link?.labelClass, link?.tone);
|
|
4721
|
+
}
|
|
4722
|
+
buildTabClassList(labelClass, tone) {
|
|
4723
|
+
const classes = [];
|
|
4724
|
+
if (Array.isArray(labelClass)) {
|
|
4725
|
+
for (const item of labelClass) {
|
|
4726
|
+
if (typeof item === 'string' && item.trim()) {
|
|
4727
|
+
classes.push(...item.trim().split(/[\s,]+/).filter(Boolean));
|
|
4728
|
+
}
|
|
4729
|
+
}
|
|
4730
|
+
}
|
|
4731
|
+
else if (typeof labelClass === 'string' && labelClass.trim()) {
|
|
4732
|
+
classes.push(...labelClass.trim().split(/[\s,]+/).filter(Boolean));
|
|
4733
|
+
}
|
|
4734
|
+
if (tone && tone !== 'default') {
|
|
4735
|
+
classes.push(`praxis-tab-tone--${tone}`);
|
|
4736
|
+
}
|
|
4737
|
+
return Array.from(new Set(classes)).join(' ');
|
|
4738
|
+
}
|
|
4739
|
+
syncRuntimeStyleElement() {
|
|
4740
|
+
const cssParts = [this.safeCustomCss(), this.styleCss()].filter((part) => typeof part === 'string' && !!part.trim());
|
|
4741
|
+
const nextCss = cssParts.join('\n');
|
|
4742
|
+
if (nextCss === this.lastRuntimeCss) {
|
|
4743
|
+
if (!nextCss || this.runtimeStyleEl?.isConnected) {
|
|
4744
|
+
return;
|
|
4745
|
+
}
|
|
4746
|
+
}
|
|
4747
|
+
this.lastRuntimeCss = nextCss;
|
|
4748
|
+
const host = this.hostElement?.nativeElement;
|
|
4749
|
+
const doc = host?.ownerDocument;
|
|
4750
|
+
if (!host || !doc)
|
|
4751
|
+
return;
|
|
4752
|
+
if (!nextCss) {
|
|
4753
|
+
this.runtimeStyleEl?.remove();
|
|
4754
|
+
this.runtimeStyleEl = undefined;
|
|
4755
|
+
return;
|
|
4756
|
+
}
|
|
4757
|
+
if (!this.runtimeStyleEl) {
|
|
4758
|
+
const styleEl = doc.createElement('style');
|
|
4759
|
+
styleEl.setAttribute('data-praxis-tabs-runtime-style', this.styleScopeId());
|
|
4760
|
+
host.prepend(styleEl);
|
|
4761
|
+
this.runtimeStyleEl = styleEl;
|
|
4762
|
+
}
|
|
4763
|
+
else {
|
|
4764
|
+
this.runtimeStyleEl.setAttribute('data-praxis-tabs-runtime-style', this.styleScopeId());
|
|
4765
|
+
}
|
|
4766
|
+
if (this.runtimeStyleEl.textContent !== nextCss) {
|
|
4767
|
+
this.runtimeStyleEl.textContent = nextCss;
|
|
4768
|
+
}
|
|
4769
|
+
}
|
|
4437
4770
|
styleScopeId() {
|
|
4438
4771
|
const scopeSeed = [this.tabsId, this.componentInstanceId]
|
|
4439
4772
|
.filter((v) => typeof v === 'string' && !!v.trim())
|
|
@@ -4488,69 +4821,86 @@ class PraxisTabs {
|
|
|
4488
4821
|
if (!t)
|
|
4489
4822
|
return null;
|
|
4490
4823
|
const scope = `.praxis-tabs-root[data-tabs-id="${this.styleScopeId()}"]`;
|
|
4824
|
+
const groupHeader = `${scope} > .praxis-tabs-group > .mat-mdc-tab-header`;
|
|
4825
|
+
const navHeader = `${scope} > .praxis-tabs-nav-bar`;
|
|
4826
|
+
const headerContainers = `${groupHeader}, ${navHeader}`;
|
|
4491
4827
|
const rules = [];
|
|
4828
|
+
const headerVars = [];
|
|
4492
4829
|
const push = (selector, decls) => {
|
|
4493
|
-
|
|
4830
|
+
const s = selector.trim();
|
|
4831
|
+
rules.push(`${groupHeader} ${s}, ${navHeader} ${s}{${decls.join('')}}`);
|
|
4832
|
+
};
|
|
4833
|
+
const pushHeaderContainer = (decls) => {
|
|
4834
|
+
rules.push(`${headerContainers}{${decls.join('')}}`);
|
|
4494
4835
|
};
|
|
4495
|
-
|
|
4836
|
+
const pushVariantHeader = (variantClass, decls) => {
|
|
4837
|
+
rules.push(`${scope}.${variantClass} > .praxis-tabs-group > .mat-mdc-tab-header, ${scope}.${variantClass} > .praxis-tabs-nav-bar{${decls.join('')}}`);
|
|
4838
|
+
};
|
|
4839
|
+
const pushVariantTab = (variantClass, selector, decls) => {
|
|
4840
|
+
const s = selector.trim();
|
|
4841
|
+
rules.push(`${scope}.${variantClass} > .praxis-tabs-group > .mat-mdc-tab-header ${s}, ${scope}.${variantClass} > .praxis-tabs-nav-bar ${s}{${decls.join('')}}`);
|
|
4842
|
+
};
|
|
4843
|
+
// Active indicator underline (group + nav)
|
|
4496
4844
|
const activeIndicatorColor = this.sanitizeCssValue(t['active-indicator-color']);
|
|
4497
4845
|
if (activeIndicatorColor) {
|
|
4498
|
-
push('
|
|
4846
|
+
push('.mdc-tab .mdc-tab-indicator__content--underline', [`background-color:${activeIndicatorColor}!important;`]);
|
|
4499
4847
|
}
|
|
4500
4848
|
// Active label
|
|
4501
4849
|
const activeLabelColor = this.sanitizeCssValue(t['active-label-text-color']);
|
|
4502
4850
|
if (activeLabelColor) {
|
|
4503
|
-
push(
|
|
4851
|
+
headerVars.push(`--p-tabs-active-label-color:${activeLabelColor};`);
|
|
4852
|
+
push('.mdc-tab--active .mdc-tab__text-label', [
|
|
4504
4853
|
`color:${activeLabelColor}!important;`,
|
|
4505
4854
|
]);
|
|
4506
4855
|
}
|
|
4507
4856
|
const activeHoverLabelColor = this.sanitizeCssValue(t['active-hover-label-text-color']);
|
|
4508
4857
|
if (activeHoverLabelColor) {
|
|
4509
|
-
push('
|
|
4858
|
+
push('.mdc-tab--active:hover .mdc-tab__text-label', [
|
|
4510
4859
|
`color:${activeHoverLabelColor}!important;`,
|
|
4511
4860
|
]);
|
|
4512
4861
|
}
|
|
4513
4862
|
const activeFocusLabelColor = this.sanitizeCssValue(t['active-focus-label-text-color']);
|
|
4514
4863
|
if (activeFocusLabelColor) {
|
|
4515
|
-
push('
|
|
4864
|
+
push('.mdc-tab--active:focus .mdc-tab__text-label', [
|
|
4516
4865
|
`color:${activeFocusLabelColor}!important;`,
|
|
4517
4866
|
]);
|
|
4518
4867
|
}
|
|
4519
4868
|
const activeFocusIndicatorColor = this.sanitizeCssValue(t['active-focus-indicator-color']);
|
|
4520
4869
|
if (activeFocusIndicatorColor) {
|
|
4521
|
-
push('
|
|
4870
|
+
push('.mdc-tab--active:focus .mdc-tab-indicator__content--underline', [
|
|
4522
4871
|
`background-color:${activeFocusIndicatorColor}!important;`,
|
|
4523
4872
|
]);
|
|
4524
4873
|
}
|
|
4525
4874
|
const activeHoverIndicatorColor = this.sanitizeCssValue(t['active-hover-indicator-color']);
|
|
4526
4875
|
if (activeHoverIndicatorColor) {
|
|
4527
|
-
push('
|
|
4876
|
+
push('.mdc-tab--active:hover .mdc-tab-indicator__content--underline', [
|
|
4528
4877
|
`background-color:${activeHoverIndicatorColor}!important;`,
|
|
4529
4878
|
]);
|
|
4530
4879
|
}
|
|
4531
4880
|
// Inactive label
|
|
4532
4881
|
const inactiveLabelColor = this.sanitizeCssValue(t['inactive-label-text-color']);
|
|
4533
4882
|
if (inactiveLabelColor) {
|
|
4534
|
-
push(
|
|
4883
|
+
headerVars.push(`--p-tabs-inactive-label-color:${inactiveLabelColor};`);
|
|
4884
|
+
push('.mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label', [
|
|
4535
4885
|
`color:${inactiveLabelColor}!important;`,
|
|
4536
4886
|
]);
|
|
4537
4887
|
}
|
|
4538
4888
|
const inactiveHoverLabelColor = this.sanitizeCssValue(t['inactive-hover-label-text-color']);
|
|
4539
4889
|
if (inactiveHoverLabelColor) {
|
|
4540
|
-
push('
|
|
4890
|
+
push('.mdc-tab:not(.mdc-tab--active):hover .mdc-tab__text-label', [
|
|
4541
4891
|
`color:${inactiveHoverLabelColor}!important;`,
|
|
4542
4892
|
]);
|
|
4543
4893
|
}
|
|
4544
4894
|
const inactiveFocusLabelColor = this.sanitizeCssValue(t['inactive-focus-label-text-color']);
|
|
4545
4895
|
if (inactiveFocusLabelColor) {
|
|
4546
|
-
push('
|
|
4896
|
+
push('.mdc-tab:not(.mdc-tab--active):focus .mdc-tab__text-label', [
|
|
4547
4897
|
`color:${inactiveFocusLabelColor}!important;`,
|
|
4548
4898
|
]);
|
|
4549
4899
|
}
|
|
4550
4900
|
// Pagination chevrons
|
|
4551
4901
|
const paginationIconColor = this.sanitizeCssValue(t['pagination-icon-color']);
|
|
4552
4902
|
if (paginationIconColor) {
|
|
4553
|
-
push('
|
|
4903
|
+
push('.mat-mdc-tab-header-pagination-chevron', [
|
|
4554
4904
|
`color:${paginationIconColor}!important;`,
|
|
4555
4905
|
]);
|
|
4556
4906
|
}
|
|
@@ -4561,13 +4911,49 @@ class PraxisTabs {
|
|
|
4561
4911
|
containerDecls.push(`border-bottom-color:${dividerColor}!important;`);
|
|
4562
4912
|
}
|
|
4563
4913
|
if (containerDecls.length) {
|
|
4564
|
-
|
|
4565
|
-
push(' .mat-mdc-tab-nav-bar', containerDecls);
|
|
4914
|
+
pushHeaderContainer(containerDecls);
|
|
4566
4915
|
}
|
|
4567
4916
|
const backgroundColor = this.sanitizeCssValue(t['background-color']);
|
|
4568
4917
|
if (backgroundColor) {
|
|
4569
|
-
|
|
4570
|
-
|
|
4918
|
+
pushHeaderContainer([`background:${backgroundColor}!important;`]);
|
|
4919
|
+
}
|
|
4920
|
+
// Pill & Segmented surface tokens
|
|
4921
|
+
const trackBackgroundColor = this.sanitizeCssValue(t['track-background-color']);
|
|
4922
|
+
if (trackBackgroundColor) {
|
|
4923
|
+
headerVars.push(`--p-tabs-track-bg:${trackBackgroundColor};`);
|
|
4924
|
+
pushVariantHeader('variant-pill', [`background:${trackBackgroundColor}!important;`]);
|
|
4925
|
+
pushVariantHeader('variant-segmented', [`background:${trackBackgroundColor}!important;`]);
|
|
4926
|
+
}
|
|
4927
|
+
const trackBorderColor = this.sanitizeCssValue(t['track-border-color']);
|
|
4928
|
+
if (trackBorderColor) {
|
|
4929
|
+
headerVars.push(`--p-tabs-track-border:${trackBorderColor};`);
|
|
4930
|
+
pushVariantHeader('variant-pill', [`border-color:${trackBorderColor}!important;`]);
|
|
4931
|
+
pushVariantHeader('variant-segmented', [`border-color:${trackBorderColor}!important;`]);
|
|
4932
|
+
}
|
|
4933
|
+
const activeTabBackgroundColor = this.sanitizeCssValue(t['active-tab-background-color']);
|
|
4934
|
+
if (activeTabBackgroundColor) {
|
|
4935
|
+
headerVars.push(`--p-tabs-active-bg:${activeTabBackgroundColor};`);
|
|
4936
|
+
pushVariantTab('variant-pill', '.mdc-tab.mdc-tab--active', [`background-color:${activeTabBackgroundColor}!important;`]);
|
|
4937
|
+
pushVariantTab('variant-segmented', '.mdc-tab.mdc-tab--active', [`background-color:${activeTabBackgroundColor}!important;`]);
|
|
4938
|
+
}
|
|
4939
|
+
const activeTabOutlineColor = this.sanitizeCssValue(t['active-tab-outline-color']);
|
|
4940
|
+
if (activeTabOutlineColor) {
|
|
4941
|
+
headerVars.push(`--p-tabs-active-outline:${activeTabOutlineColor};`);
|
|
4942
|
+
pushVariantTab('variant-pill', '.mdc-tab.praxis-tab-tone--outlined', [`border-color:${activeTabOutlineColor}!important;`]);
|
|
4943
|
+
pushVariantTab('variant-pill', '.mdc-tab:focus-visible', [`border-color:${activeTabOutlineColor}!important;`]);
|
|
4944
|
+
pushVariantTab('variant-segmented', '.mdc-tab.praxis-tab-tone--outlined', [`border-color:${activeTabOutlineColor}!important;`]);
|
|
4945
|
+
pushVariantTab('variant-segmented', '.mdc-tab:focus-visible', [`border-color:${activeTabOutlineColor}!important;`]);
|
|
4946
|
+
}
|
|
4947
|
+
const pillRadius = this.sanitizeCssValue(t['pill-radius']);
|
|
4948
|
+
if (pillRadius) {
|
|
4949
|
+
headerVars.push(`--p-tabs-pill-radius:${pillRadius};`);
|
|
4950
|
+
pushVariantHeader('variant-pill', [`border-radius:${pillRadius}!important;`]);
|
|
4951
|
+
pushVariantTab('variant-pill', '.mdc-tab', [`border-radius:${pillRadius}!important;`]);
|
|
4952
|
+
pushVariantHeader('variant-segmented', [`border-radius:${pillRadius}!important;`]);
|
|
4953
|
+
pushVariantTab('variant-segmented', '.mdc-tab', [`border-radius:${pillRadius}!important;`]);
|
|
4954
|
+
}
|
|
4955
|
+
if (headerVars.length) {
|
|
4956
|
+
rules.unshift(`${headerContainers}{${headerVars.join('')}}`);
|
|
4571
4957
|
}
|
|
4572
4958
|
return rules.length ? rules.join('\n') : null;
|
|
4573
4959
|
}
|
|
@@ -4593,6 +4979,9 @@ class PraxisTabs {
|
|
|
4593
4979
|
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: `
|
|
4594
4980
|
<div
|
|
4595
4981
|
class="praxis-tabs-root"
|
|
4982
|
+
[class.variant-underline]="effectiveVariant() === 'underline'"
|
|
4983
|
+
[class.variant-pill]="effectiveVariant() === 'pill'"
|
|
4984
|
+
[class.variant-segmented]="effectiveVariant() === 'segmented'"
|
|
4596
4985
|
[class.density-compact]="config?.appearance?.density === 'compact'"
|
|
4597
4986
|
[class.density-comfortable]="config?.appearance?.density === 'comfortable'"
|
|
4598
4987
|
[class.density-spacious]="config?.appearance?.density === 'spacious'"
|
|
@@ -4601,14 +4990,6 @@ class PraxisTabs {
|
|
|
4601
4990
|
[ngClass]="config?.appearance?.themeClass || ''"
|
|
4602
4991
|
[attr.data-tabs-id]="styleScopeId()"
|
|
4603
4992
|
>
|
|
4604
|
-
<!-- Inline custom CSS, if provided -->
|
|
4605
|
-
@if (safeCustomCss(); as css) {
|
|
4606
|
-
<style [innerHTML]="css"></style>
|
|
4607
|
-
}
|
|
4608
|
-
<!-- Runtime style derived from tokens -->
|
|
4609
|
-
@if (styleCss(); as s) {
|
|
4610
|
-
<style [innerHTML]="s"></style>
|
|
4611
|
-
}
|
|
4612
4993
|
|
|
4613
4994
|
@if (enableCustomization) {
|
|
4614
4995
|
<div class="tabs-ai-assistant">
|
|
@@ -4676,6 +5057,8 @@ class PraxisTabs {
|
|
|
4676
5057
|
@if (isNavMode()) {
|
|
4677
5058
|
<nav
|
|
4678
5059
|
mat-tab-nav-bar
|
|
5060
|
+
[class.praxis-tabs-nav-bar]="true"
|
|
5061
|
+
[class.praxis-tabs-stretch]="!!config?.nav?.stretchTabs"
|
|
4679
5062
|
[tabPanel]="tabPanel"
|
|
4680
5063
|
cdkDropList
|
|
4681
5064
|
cdkDropListOrientation="horizontal"
|
|
@@ -4703,6 +5086,7 @@ class PraxisTabs {
|
|
|
4703
5086
|
[disabled]="entry.link.disabled"
|
|
4704
5087
|
[disableRipple]="config?.nav?.disableRipple || entry.link.disableRipple"
|
|
4705
5088
|
[fitInkBarToContent]="entry.link.fitInkBarToContent || false"
|
|
5089
|
+
[ngClass]="resolveLinkClass(entry.link)"
|
|
4706
5090
|
[id]="entry.link.id || ''"
|
|
4707
5091
|
(click)="onNavClick(entry.index)"
|
|
4708
5092
|
>
|
|
@@ -4763,6 +5147,10 @@ class PraxisTabs {
|
|
|
4763
5147
|
} @else {
|
|
4764
5148
|
<mat-tab-group
|
|
4765
5149
|
[class.praxis-tabs-group--header-only]="!shouldRenderGroupBody()"
|
|
5150
|
+
[class.praxis-tabs-stretch]="!!config?.group?.stretchTabs"
|
|
5151
|
+
[class.align-start]="(config?.group?.alignTabs || 'start') === 'start'"
|
|
5152
|
+
[class.align-center]="config?.group?.alignTabs === 'center'"
|
|
5153
|
+
[class.align-end]="config?.group?.alignTabs === 'end'"
|
|
4766
5154
|
[dynamicHeight]="config?.group?.dynamicHeight"
|
|
4767
5155
|
[disableRipple]="config?.group?.disableRipple"
|
|
4768
5156
|
[disablePagination]="config?.group?.disablePagination"
|
|
@@ -4787,7 +5175,7 @@ class PraxisTabs {
|
|
|
4787
5175
|
@for (entry of visibleTabEntries(); track trackVisibleTab(i, entry); let i = $index) {
|
|
4788
5176
|
<mat-tab
|
|
4789
5177
|
[disabled]="entry.tab.disabled"
|
|
4790
|
-
[labelClass]="entry.tab
|
|
5178
|
+
[labelClass]="resolveTabLabelClass(entry.tab)"
|
|
4791
5179
|
[bodyClass]="entry.tab.bodyClass ?? ''"
|
|
4792
5180
|
[id]="entry.tab.id || ''"
|
|
4793
5181
|
[attr.aria-label]="entry.tab.ariaLabel || null"
|
|
@@ -4896,7 +5284,7 @@ class PraxisTabs {
|
|
|
4896
5284
|
</button>
|
|
4897
5285
|
}
|
|
4898
5286
|
</div>
|
|
4899
|
-
`, 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: 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", "layoutChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
5287
|
+
`, 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", "layoutChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4900
5288
|
}
|
|
4901
5289
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisTabs, decorators: [{
|
|
4902
5290
|
type: Component,
|
|
@@ -4917,6 +5305,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4917
5305
|
], template: `
|
|
4918
5306
|
<div
|
|
4919
5307
|
class="praxis-tabs-root"
|
|
5308
|
+
[class.variant-underline]="effectiveVariant() === 'underline'"
|
|
5309
|
+
[class.variant-pill]="effectiveVariant() === 'pill'"
|
|
5310
|
+
[class.variant-segmented]="effectiveVariant() === 'segmented'"
|
|
4920
5311
|
[class.density-compact]="config?.appearance?.density === 'compact'"
|
|
4921
5312
|
[class.density-comfortable]="config?.appearance?.density === 'comfortable'"
|
|
4922
5313
|
[class.density-spacious]="config?.appearance?.density === 'spacious'"
|
|
@@ -4925,14 +5316,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
4925
5316
|
[ngClass]="config?.appearance?.themeClass || ''"
|
|
4926
5317
|
[attr.data-tabs-id]="styleScopeId()"
|
|
4927
5318
|
>
|
|
4928
|
-
<!-- Inline custom CSS, if provided -->
|
|
4929
|
-
@if (safeCustomCss(); as css) {
|
|
4930
|
-
<style [innerHTML]="css"></style>
|
|
4931
|
-
}
|
|
4932
|
-
<!-- Runtime style derived from tokens -->
|
|
4933
|
-
@if (styleCss(); as s) {
|
|
4934
|
-
<style [innerHTML]="s"></style>
|
|
4935
|
-
}
|
|
4936
5319
|
|
|
4937
5320
|
@if (enableCustomization) {
|
|
4938
5321
|
<div class="tabs-ai-assistant">
|
|
@@ -5000,6 +5383,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5000
5383
|
@if (isNavMode()) {
|
|
5001
5384
|
<nav
|
|
5002
5385
|
mat-tab-nav-bar
|
|
5386
|
+
[class.praxis-tabs-nav-bar]="true"
|
|
5387
|
+
[class.praxis-tabs-stretch]="!!config?.nav?.stretchTabs"
|
|
5003
5388
|
[tabPanel]="tabPanel"
|
|
5004
5389
|
cdkDropList
|
|
5005
5390
|
cdkDropListOrientation="horizontal"
|
|
@@ -5027,6 +5412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5027
5412
|
[disabled]="entry.link.disabled"
|
|
5028
5413
|
[disableRipple]="config?.nav?.disableRipple || entry.link.disableRipple"
|
|
5029
5414
|
[fitInkBarToContent]="entry.link.fitInkBarToContent || false"
|
|
5415
|
+
[ngClass]="resolveLinkClass(entry.link)"
|
|
5030
5416
|
[id]="entry.link.id || ''"
|
|
5031
5417
|
(click)="onNavClick(entry.index)"
|
|
5032
5418
|
>
|
|
@@ -5087,6 +5473,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5087
5473
|
} @else {
|
|
5088
5474
|
<mat-tab-group
|
|
5089
5475
|
[class.praxis-tabs-group--header-only]="!shouldRenderGroupBody()"
|
|
5476
|
+
[class.praxis-tabs-stretch]="!!config?.group?.stretchTabs"
|
|
5477
|
+
[class.align-start]="(config?.group?.alignTabs || 'start') === 'start'"
|
|
5478
|
+
[class.align-center]="config?.group?.alignTabs === 'center'"
|
|
5479
|
+
[class.align-end]="config?.group?.alignTabs === 'end'"
|
|
5090
5480
|
[dynamicHeight]="config?.group?.dynamicHeight"
|
|
5091
5481
|
[disableRipple]="config?.group?.disableRipple"
|
|
5092
5482
|
[disablePagination]="config?.group?.disablePagination"
|
|
@@ -5111,7 +5501,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5111
5501
|
@for (entry of visibleTabEntries(); track trackVisibleTab(i, entry); let i = $index) {
|
|
5112
5502
|
<mat-tab
|
|
5113
5503
|
[disabled]="entry.tab.disabled"
|
|
5114
|
-
[labelClass]="entry.tab
|
|
5504
|
+
[labelClass]="resolveTabLabelClass(entry.tab)"
|
|
5115
5505
|
[bodyClass]="entry.tab.bodyClass ?? ''"
|
|
5116
5506
|
[id]="entry.tab.id || ''"
|
|
5117
5507
|
[attr.aria-label]="entry.tab.ariaLabel || null"
|
|
@@ -5220,7 +5610,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
5220
5610
|
</button>
|
|
5221
5611
|
}
|
|
5222
5612
|
</div>
|
|
5223
|
-
`, 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"] }]
|
|
5613
|
+
`, 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"] }]
|
|
5224
5614
|
}], propDecorators: { config: [{
|
|
5225
5615
|
type: Input
|
|
5226
5616
|
}], tabsId: [{
|
|
@@ -5452,7 +5842,7 @@ const PRAXIS_TABS_COMPONENT_METADATA = {
|
|
|
5452
5842
|
selector: 'praxis-tabs',
|
|
5453
5843
|
component: PraxisTabs,
|
|
5454
5844
|
friendlyName: 'Praxis Tabs',
|
|
5455
|
-
description: 'Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav e suporte a tokens M3 via appearance.',
|
|
5845
|
+
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.',
|
|
5456
5846
|
icon: 'tab',
|
|
5457
5847
|
authoringManifestRef: {
|
|
5458
5848
|
componentId: 'praxis-tabs',
|
|
@@ -5657,6 +6047,8 @@ const tabItemSchema = {
|
|
|
5657
6047
|
id: { type: 'string' },
|
|
5658
6048
|
textLabel: { type: 'string' },
|
|
5659
6049
|
icon: { type: 'string' },
|
|
6050
|
+
labelClass: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
|
|
6051
|
+
tone: { enum: ['default', 'primary', 'accent', 'outlined'] },
|
|
5660
6052
|
disabled: { type: 'boolean' },
|
|
5661
6053
|
visible: { type: 'boolean', default: true },
|
|
5662
6054
|
content: { type: 'array', items: { type: 'object' } },
|
|
@@ -5670,6 +6062,8 @@ const tabPatchSchema = {
|
|
|
5670
6062
|
id: { type: 'string' },
|
|
5671
6063
|
textLabel: { type: 'string' },
|
|
5672
6064
|
icon: { type: 'string' },
|
|
6065
|
+
labelClass: { anyOf: [{ type: 'string' }, { type: 'array', items: { type: 'string' } }] },
|
|
6066
|
+
tone: { enum: ['default', 'primary', 'accent', 'outlined'] },
|
|
5673
6067
|
disabled: { type: 'boolean' },
|
|
5674
6068
|
visible: { type: 'boolean' },
|
|
5675
6069
|
content: { type: 'array', items: { type: 'object' } },
|
|
@@ -5703,7 +6097,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
|
|
|
5703
6097
|
{ kind: 'activeTab', resolver: 'tab-index-or-id', description: 'Selected tab or nav link index.', resolutionSpec: tabOrLinkByIdResolutionSpec },
|
|
5704
6098
|
{ kind: 'visibility', resolver: 'tab-or-link-by-id', description: 'Runtime visibility flag for a group tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
|
|
5705
6099
|
{ kind: 'disabledState', resolver: 'tab-or-link-by-id', description: 'Disabled state of a tab or nav link.', resolutionSpec: tabOrLinkByIdResolutionSpec },
|
|
5706
|
-
{ kind: 'layout', resolver: 'tabs-layout-config', description: 'Group/nav mode, header position, density, stretch and behavior settings.', resolutionSpec: tabsLayoutRootResolutionSpec },
|
|
6100
|
+
{ kind: 'layout', resolver: 'tabs-layout-config', description: 'Group/nav mode, visual variant, header position, density, stretch and behavior settings.', resolutionSpec: tabsLayoutRootResolutionSpec },
|
|
5707
6101
|
{ 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 },
|
|
5708
6102
|
],
|
|
5709
6103
|
operations: [
|
|
@@ -5910,9 +6304,10 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
|
|
|
5910
6304
|
target: { kind: 'layout', resolver: 'tabs-layout-config', ambiguityPolicy: 'fail', required: true, resolutionSpec: tabsLayoutRootResolutionSpec },
|
|
5911
6305
|
inputSchema: {
|
|
5912
6306
|
type: 'object',
|
|
5913
|
-
|
|
6307
|
+
minProperties: 1,
|
|
5914
6308
|
properties: {
|
|
5915
6309
|
mode: { enum: ['group', 'nav'] },
|
|
6310
|
+
variant: { enum: ['underline', 'pill', 'segmented'] },
|
|
5916
6311
|
density: { enum: ['compact', 'comfortable', 'spacious'] },
|
|
5917
6312
|
headerPosition: { enum: ['above', 'below'] },
|
|
5918
6313
|
alignTabs: { enum: ['start', 'center', 'end'] },
|
|
@@ -5924,7 +6319,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
|
|
|
5924
6319
|
destructive: false,
|
|
5925
6320
|
requiresConfirmation: false,
|
|
5926
6321
|
validators: ['tabs-mode-compatible', 'layout-values-valid', 'editor-runtime-round-trip'],
|
|
5927
|
-
affectedPaths: ['appearance.density', 'group.headerPosition', 'group.alignTabs', 'group.stretchTabs', 'nav.stretchTabs', 'behavior.lazyLoad'],
|
|
6322
|
+
affectedPaths: ['appearance.variant', 'appearance.density', 'group.headerPosition', 'group.alignTabs', 'group.stretchTabs', 'nav.stretchTabs', 'behavior.lazyLoad'],
|
|
5928
6323
|
submissionImpact: 'config-only',
|
|
5929
6324
|
preconditions: ['config-initialized'],
|
|
5930
6325
|
},
|
|
@@ -5993,6 +6388,7 @@ const PRAXIS_TABS_AUTHORING_MANIFEST = {
|
|
|
5993
6388
|
{ id: 'reject-duplicate-tab-id', request: 'Add another tab with id overview.', operationId: 'tab.add', params: { id: 'overview', textLabel: 'Duplicate Overview' }, isPositive: false },
|
|
5994
6389
|
{ 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 },
|
|
5995
6390
|
{ id: 'confirm-remove-content-tab', request: 'Remove the details tab that contains widgets.', operationId: 'tab.remove', target: 'details', params: { replacementActiveTabId: 'overview' }, isPositive: true },
|
|
6391
|
+
{ id: 'set-pill-variant', request: 'Switch the tabs header to pill variant.', operationId: 'layout.variant.set', params: { variant: 'pill', density: 'compact' }, isPositive: true },
|
|
5996
6392
|
],
|
|
5997
6393
|
};
|
|
5998
6394
|
|