@praxisui/tabs 3.0.0-beta.9 → 5.0.0-beta.0
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/fesm2022/praxisui-tabs.mjs +45 -45
- package/index.d.ts +3 -3
- package/package.json +4 -4
|
@@ -240,28 +240,28 @@ function infoDiagnostic(code, message, path) {
|
|
|
240
240
|
const PRAXIS_TABS_I18N_NAMESPACE = 'praxisTabs';
|
|
241
241
|
const PRAXIS_TABS_PT_BR = {
|
|
242
242
|
'settings.title': 'Configurar abas',
|
|
243
|
-
'settings.resetPreferences': 'Redefinir
|
|
244
|
-
'settings.resetDone': '
|
|
243
|
+
'settings.resetPreferences': 'Redefinir preferências de abas',
|
|
244
|
+
'settings.resetDone': 'Preferências de abas redefinidas',
|
|
245
245
|
'quickSetup.title': 'Criar abas rapidamente',
|
|
246
246
|
'emptyState.title': 'Nenhuma aba configurada',
|
|
247
247
|
'emptyState.description': 'Crie rapidamente suas abas ou abra o editor completo.',
|
|
248
248
|
'emptyState.primaryAction': 'Criar abas rapidamente',
|
|
249
249
|
'emptyState.secondaryAddEmpty': 'Adicionar aba vazia',
|
|
250
250
|
'emptyState.secondaryOpenEditor': 'Abrir editor completo',
|
|
251
|
-
'emptyState.navTitle': 'Sem
|
|
252
|
-
'emptyState.navDescription': 'Adicione
|
|
253
|
-
'emptyState.tabTitle': 'Sem
|
|
254
|
-
'emptyState.tabDescription': 'Adicione
|
|
251
|
+
'emptyState.navTitle': 'Sem conteúdo neste link',
|
|
252
|
+
'emptyState.navDescription': 'Adicione conteúdo ou use o editor para configurar.',
|
|
253
|
+
'emptyState.tabTitle': 'Sem conteúdo nesta aba',
|
|
254
|
+
'emptyState.tabDescription': 'Adicione conteúdo ou use o editor para configurar.',
|
|
255
255
|
'emptyState.openEditor': 'Abrir editor',
|
|
256
256
|
'chrome.closeTab': 'Fechar aba',
|
|
257
257
|
'chrome.moveTabLeft': 'Mover aba para esquerda',
|
|
258
258
|
'chrome.moveTabRight': 'Mover aba para direita',
|
|
259
259
|
'chrome.editTabs': 'Editar abas',
|
|
260
|
-
'defaults.newTabLabel': '
|
|
261
|
-
'defaults.newLinkLabel': '
|
|
260
|
+
'defaults.newTabLabel': 'Nova Aba',
|
|
261
|
+
'defaults.newLinkLabel': 'Novo Link',
|
|
262
262
|
'editor.tabs.behavior': 'Comportamento',
|
|
263
263
|
'editor.tabs.group': 'Grupo',
|
|
264
|
-
'editor.tabs.nav': '
|
|
264
|
+
'editor.tabs.nav': 'Navegação',
|
|
265
265
|
'editor.tabs.json': 'JSON',
|
|
266
266
|
'editor.tabs.style': 'Estilo',
|
|
267
267
|
'editor.tabs.items': 'Abas',
|
|
@@ -273,73 +273,73 @@ const PRAXIS_TABS_PT_BR = {
|
|
|
273
273
|
'editor.actions.addTab': 'Adicionar aba',
|
|
274
274
|
'editor.actions.addLink': 'Adicionar link',
|
|
275
275
|
'editor.actions.add': 'Adicionar',
|
|
276
|
-
'editor.actions.removeLabel': 'Remover
|
|
276
|
+
'editor.actions.removeLabel': 'Remover rótulo',
|
|
277
277
|
'editor.actions.dragToReorder': 'Arrastar para reordenar',
|
|
278
278
|
'editor.actions.removeComponent': 'Remover componente',
|
|
279
279
|
'editor.fields.groupAlignTabs': 'Alinhamento das abas',
|
|
280
|
-
'editor.fields.groupHeaderPosition': '
|
|
281
|
-
'editor.fields.selectedIndex': '
|
|
282
|
-
'editor.fields.animationDuration': '
|
|
280
|
+
'editor.fields.groupHeaderPosition': 'Posição do cabeçalho (header)',
|
|
281
|
+
'editor.fields.selectedIndex': 'Índice selecionado',
|
|
282
|
+
'editor.fields.animationDuration': 'Duração da animação',
|
|
283
283
|
'editor.fields.mode': 'Modo principal',
|
|
284
284
|
'editor.fields.color': 'Cor (M2)',
|
|
285
285
|
'editor.fields.backgroundColor': 'Cor de fundo (M2)',
|
|
286
286
|
'editor.fields.ariaLabel': 'aria-label',
|
|
287
287
|
'editor.fields.ariaLabelledby': 'aria-labelledby',
|
|
288
|
-
'editor.fields.jsonConfig': '
|
|
288
|
+
'editor.fields.jsonConfig': 'Configuração JSON',
|
|
289
289
|
'editor.fields.themeClass': 'Classe de tema (opcional)',
|
|
290
290
|
'editor.fields.density': 'Densidade',
|
|
291
291
|
'editor.fields.customCss': 'CSS a ser injetado no componente',
|
|
292
|
-
'editor.fields.addLabel': 'Adicionar
|
|
292
|
+
'editor.fields.addLabel': 'Adicionar rótulo',
|
|
293
293
|
'editor.fields.inputsJson': 'Inputs (JSON)',
|
|
294
294
|
'editor.fields.outputsJson': 'Outputs (JSON)',
|
|
295
295
|
'editor.fields.id': 'ID',
|
|
296
|
-
'editor.fields.label': '
|
|
297
|
-
'editor.fields.labelClass': 'Classe do
|
|
298
|
-
'editor.fields.bodyClass': 'Classe do
|
|
296
|
+
'editor.fields.label': 'Rótulo',
|
|
297
|
+
'editor.fields.labelClass': 'Classe do rótulo',
|
|
298
|
+
'editor.fields.bodyClass': 'Classe do conteúdo',
|
|
299
299
|
'editor.fields.resourcePath': 'Recurso (resourcePath)',
|
|
300
300
|
'editor.fields.addComponent': 'Adicionar componente',
|
|
301
301
|
'editor.fields.selectPlaceholder': '(selecione)',
|
|
302
302
|
'editor.fields.placeholder.animationDuration': '500ms',
|
|
303
303
|
'editor.fields.placeholder.themeClass': 'ex.: tabs-accented',
|
|
304
|
-
'editor.fields.placeholder.resourcePath': 'ex.:
|
|
304
|
+
'editor.fields.placeholder.resourcePath': 'ex.: usuários',
|
|
305
305
|
'editor.hints.selectedIndex': 'selectedIndex',
|
|
306
306
|
'editor.hints.animationDuration': 'animationDuration',
|
|
307
307
|
'editor.hints.preferTokens': 'Preferir tokens em Estilo.',
|
|
308
308
|
'editor.hints.tokenValueHelp': 'Valores aceitam CSS vars ou cores hex/rgb.',
|
|
309
|
-
'editor.json.valid': 'JSON
|
|
310
|
-
'editor.json.invalidPrefix': 'JSON
|
|
309
|
+
'editor.json.valid': 'JSON válido',
|
|
310
|
+
'editor.json.invalidPrefix': 'JSON inválido:',
|
|
311
311
|
'editor.json.syntaxError': 'Erro de sintaxe JSON',
|
|
312
312
|
'editor.sections.tokens': 'Tokens (Material 3)',
|
|
313
313
|
'editor.sections.customCss': 'CSS personalizado',
|
|
314
314
|
'editor.sections.scssSnippet': 'Snippet SCSS (para uso em styles.scss)',
|
|
315
315
|
'editor.mode.group': 'Grupo de abas',
|
|
316
|
-
'editor.mode.nav': '
|
|
317
|
-
'editor.diagnostics.title': '
|
|
316
|
+
'editor.mode.nav': 'Navegação por links',
|
|
317
|
+
'editor.diagnostics.title': 'Diagnósticos de authoring',
|
|
318
318
|
'editor.diagnostics.error': 'Erro',
|
|
319
319
|
'editor.diagnostics.warning': 'Aviso',
|
|
320
|
-
'editor.diagnostics.info': '
|
|
320
|
+
'editor.diagnostics.info': 'Informação',
|
|
321
321
|
'editor.cards.tab': 'Aba',
|
|
322
322
|
'editor.cards.link': 'Link',
|
|
323
323
|
'editor.presets.title': 'Presets:',
|
|
324
|
-
'editor.presets.primary': '
|
|
324
|
+
'editor.presets.primary': 'Primário',
|
|
325
325
|
'editor.presets.neutral': 'Neutro',
|
|
326
326
|
'editor.presets.highContrast': 'Alto contraste',
|
|
327
|
-
'editor.density.default': '
|
|
327
|
+
'editor.density.default': 'Padrão',
|
|
328
328
|
'editor.density.compact': 'Compacta',
|
|
329
|
-
'editor.density.comfortable': '
|
|
330
|
-
'editor.density.spacious': '
|
|
329
|
+
'editor.density.comfortable': 'Confortável',
|
|
330
|
+
'editor.density.spacious': 'Espaçosa',
|
|
331
331
|
'editor.options.none': '(nenhuma)',
|
|
332
|
-
'editor.options.default': '
|
|
333
|
-
'editor.options.start': '
|
|
332
|
+
'editor.options.default': 'Padrão',
|
|
333
|
+
'editor.options.start': 'Início',
|
|
334
334
|
'editor.options.center': 'Centro',
|
|
335
335
|
'editor.options.end': 'Fim',
|
|
336
|
-
'editor.options.aboveDefault': 'Acima (
|
|
336
|
+
'editor.options.aboveDefault': 'Acima (padrão)',
|
|
337
337
|
'editor.options.above': 'Acima',
|
|
338
338
|
'editor.options.below': 'Abaixo',
|
|
339
|
-
'editor.options.primary': 'Primary',
|
|
340
|
-
'editor.options.accent': 'Accent',
|
|
341
|
-
'editor.options.warn': 'Warn',
|
|
342
|
-
'editor.templates.form': '
|
|
339
|
+
'editor.options.primary': 'Primário (Primary)',
|
|
340
|
+
'editor.options.accent': 'Destaque (Accent)',
|
|
341
|
+
'editor.options.warn': 'Aviso (Warn)',
|
|
342
|
+
'editor.templates.form': 'Formulário',
|
|
343
343
|
'editor.templates.table': 'Tabela',
|
|
344
344
|
'editor.templates.crud': 'CRUD',
|
|
345
345
|
'editor.placeholders.tokenValue': 'var(--md-sys-color-primary) / #RRGGBB',
|
|
@@ -353,17 +353,17 @@ const PRAXIS_TABS_PT_BR = {
|
|
|
353
353
|
'editor.tokens.inactiveLabel': 'Texto inativo',
|
|
354
354
|
'editor.tokens.inactiveHoverLabel': 'Texto inativo (hover)',
|
|
355
355
|
'editor.tokens.inactiveFocusLabel': 'Texto inativo (focus)',
|
|
356
|
-
'editor.tokens.paginationIcon': '
|
|
356
|
+
'editor.tokens.paginationIcon': 'Ícones de paginação',
|
|
357
357
|
'editor.tokens.divider': 'Divisor/linha',
|
|
358
|
-
'editor.tokens.headerBackground': 'Fundo do header',
|
|
359
|
-
'editor.toggles.closeable': '
|
|
358
|
+
'editor.tokens.headerBackground': 'Fundo do cabeçalho (header)',
|
|
359
|
+
'editor.toggles.closeable': 'Fechável',
|
|
360
360
|
'editor.toggles.lazyLoad': 'Carregar sob demanda',
|
|
361
|
-
'editor.toggles.reorderable': '
|
|
362
|
-
'editor.toggles.dynamicHeight': 'Altura
|
|
363
|
-
'editor.toggles.fitInkBarToContent': 'Indicador ajustado ao
|
|
364
|
-
'editor.toggles.disablePagination': 'Sem
|
|
361
|
+
'editor.toggles.reorderable': 'Reordenável',
|
|
362
|
+
'editor.toggles.dynamicHeight': 'Altura dinâmica',
|
|
363
|
+
'editor.toggles.fitInkBarToContent': 'Indicador ajustado ao conteúdo',
|
|
364
|
+
'editor.toggles.disablePagination': 'Sem paginação',
|
|
365
365
|
'editor.toggles.disableRipple': 'Sem ripple',
|
|
366
|
-
'editor.toggles.preserveContent': 'Preservar
|
|
366
|
+
'editor.toggles.preserveContent': 'Preservar conteúdo',
|
|
367
367
|
'editor.toggles.stretchTabs': 'Esticar abas',
|
|
368
368
|
'editor.toggles.highContrast': 'Alto contraste',
|
|
369
369
|
'editor.toggles.reduceMotion': 'Reduzir movimento',
|
|
@@ -372,9 +372,9 @@ const PRAXIS_TABS_PT_BR = {
|
|
|
372
372
|
'editor.empty.noLinks': 'Nenhum link definido.',
|
|
373
373
|
'editor.empty.noTabs': 'Nenhuma aba definida.',
|
|
374
374
|
'quickSetup.mode.group': 'Grupo de abas',
|
|
375
|
-
'quickSetup.mode.nav': '
|
|
375
|
+
'quickSetup.mode.nav': 'Navegação por links',
|
|
376
376
|
'quickSetup.fields.addLabelPlaceholder': 'Ex.: Dados Gerais',
|
|
377
|
-
'quickSetup.hints.emptyLabels': 'Adicione um ou mais
|
|
377
|
+
'quickSetup.hints.emptyLabels': 'Adicione um ou mais rótulos para criar as abas.',
|
|
378
378
|
};
|
|
379
379
|
const PRAXIS_TABS_EN_US = {
|
|
380
380
|
'settings.title': 'Configure tabs',
|
package/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnInit, OnChanges, OnDestroy, EventEmitter, SimpleChanges, Provider } from '@angular/core';
|
|
3
3
|
import { MatTabChangeEvent } from '@angular/material/tabs';
|
|
4
|
-
import { WidgetDefinition, WidgetEventEnvelope, WidgetEventPathSegment, PraxisI18nConfig, ComponentDocMeta, ComponentMetadataRegistry, AiCapabilityCategory, AiValueKind,
|
|
4
|
+
import { AiCapability, WidgetDefinition, WidgetEventEnvelope, WidgetEventPathSegment, PraxisI18nConfig, ComponentDocMeta, ComponentMetadataRegistry, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
5
5
|
import { FormGroup } from '@angular/forms';
|
|
6
6
|
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
7
|
-
import { BaseAiAdapter,
|
|
7
|
+
import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
|
|
8
8
|
import { BehaviorSubject } from 'rxjs';
|
|
9
9
|
import { SettingsValueProvider } from '@praxisui/settings-panel';
|
|
10
10
|
|
|
@@ -13,7 +13,7 @@ declare class TabsAiAdapter extends BaseAiAdapter<TabsMetadata> {
|
|
|
13
13
|
componentName: string;
|
|
14
14
|
constructor(tabs: PraxisTabs);
|
|
15
15
|
getCurrentConfig(): TabsMetadata;
|
|
16
|
-
getCapabilities():
|
|
16
|
+
getCapabilities(): AiCapability[];
|
|
17
17
|
getRuntimeState(): Record<string, any>;
|
|
18
18
|
createSnapshot(): TabsMetadata;
|
|
19
19
|
restoreSnapshot(snapshot: TabsMetadata): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/tabs",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "5.0.0-beta.0",
|
|
4
4
|
"description": "Configurable tabs (group and nav) for Praxis UI with metadata-driven content and runtime editor.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
8
|
"@angular/material": "^20.0.0",
|
|
9
9
|
"@angular/cdk": "^20.0.0",
|
|
10
|
-
"@praxisui/core": "^
|
|
11
|
-
"@praxisui/dynamic-fields": "^
|
|
12
|
-
"@praxisui/settings-panel": "^
|
|
10
|
+
"@praxisui/core": "^5.0.0-beta.0",
|
|
11
|
+
"@praxisui/dynamic-fields": "^5.0.0-beta.0",
|
|
12
|
+
"@praxisui/settings-panel": "^5.0.0-beta.0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"tslib": "^2.3.0",
|