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