@praxisui/table 9.0.4-rc.32 → 9.0.4-rc.34
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/ai/component-registry.json +57 -10
- package/fesm2022/{praxisui-table-filter-form-dialog-host.component-CMUCxwyL.mjs → praxisui-table-filter-form-dialog-host.component-OZp84Fmo.mjs} +3 -3
- package/fesm2022/{praxisui-table-praxisui-table-CMgJAkPF.mjs → praxisui-table-praxisui-table-CEfgCNj3.mjs} +388 -59
- package/fesm2022/{praxisui-table-table-agentic-authoring-turn-flow-DLYUywGS.mjs → praxisui-table-table-agentic-authoring-turn-flow-D3EeDNAs.mjs} +1 -1
- package/fesm2022/{praxisui-table-table-ai.adapter-CirqFPPM.mjs → praxisui-table-table-ai.adapter-mGrlO5TJ.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/src/lib/praxis-table.json-api.md +10 -0
- package/types/praxisui-table.d.ts +54 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Observable, firstValueFrom } from 'rxjs';
|
|
2
2
|
import { withAuthoringScopePolicy } from '@praxisui/ai';
|
|
3
|
-
import { ad as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-
|
|
3
|
+
import { ad as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-CEfgCNj3.mjs';
|
|
4
4
|
|
|
5
5
|
class TableAgenticAuthoringTurnFlow {
|
|
6
6
|
adapter;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { firstValueFrom } from 'rxjs';
|
|
2
2
|
import { BaseAiAdapter, sanitizePraxisAssistantText, createComponentAuthoringContext } from '@praxisui/ai';
|
|
3
3
|
import { PRAXIS_GLOBAL_ACTION_CATALOG, deepMerge } from '@praxisui/core';
|
|
4
|
-
import { I as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, l as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, Z as coerceTableComponentEditPlans, $ as compileTableComponentEditPlans, L as TASK_PRESETS, a4 as getTableComponentEditPlanCapabilities, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, H as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-
|
|
4
|
+
import { I as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, l as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, Z as coerceTableComponentEditPlans, $ as compileTableComponentEditPlans, L as TASK_PRESETS, a4 as getTableComponentEditPlanCapabilities, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, H as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-CEfgCNj3.mjs';
|
|
5
5
|
|
|
6
6
|
const TABLE_ROW_EXPRESSION_CONTEXT_OPTION = {
|
|
7
7
|
mode: 'expression',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticsTableConfigAdapterService, b as AnalyticsTableContractService, c as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, d as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, e as ColumnsConfigEditorComponent, D as DATE_PRESETS, f as DataFormatterComponent, g as DataFormattingService, F as FORMULA_TEMPLATES, h as FilterConfigService, i as FilterSettingsComponent, j as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, k as PRAXIS_FILTER_COMPONENT_METADATA, l as PRAXIS_TABLE_AUTHORING_MANIFEST, m as PRAXIS_TABLE_COMPONENT_METADATA, n as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, o as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, p as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, q as PraxisFilter, r as PraxisFilterWidgetConfigEditor, s as PraxisTable, t as PraxisTableConfigEditor, u as PraxisTableInlineAuthoringEditorComponent, v as PraxisTableToolbar, w as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, x as TABLE_COMPONENT_AI_CAPABILITIES, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, H as TABLE_COMPONENT_EDIT_PLAN_KIND, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, L as TASK_PRESETS, O as TableDefaultsProvider, Q as TableRulesEditorComponent, R as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, U as VisualFormulaBuilderComponent, W as analyticsComparisonMetricField, X as buildTableApplyPlan, Y as coerceTableComponentEditPlan, Z as coerceTableComponentEditPlans, _ as compileTableComponentEditPlan, $ as compileTableComponentEditPlans, a0 as createTableAuthoringDocument, a1 as getActionId, a2 as getEnum, a3 as getTableCapabilities, a4 as getTableComponentEditPlanCapabilities, a5 as isTableRendererSupportedByRichContentP0, a6 as mapTableRendererToRichContentP0, a7 as normalizeTableAuthoringDocument, a8 as parseLegacyOrTableDocument, a9 as providePraxisFilterMetadata, aa as providePraxisTableMetadata, ab as providePraxisTableToolbarAppearance, ac as serializeTableAuthoringDocument, ae as toCanonicalTableConfig, af as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-
|
|
1
|
+
export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticsTableConfigAdapterService, b as AnalyticsTableContractService, c as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, d as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, e as ColumnsConfigEditorComponent, D as DATE_PRESETS, f as DataFormatterComponent, g as DataFormattingService, F as FORMULA_TEMPLATES, h as FilterConfigService, i as FilterSettingsComponent, j as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, k as PRAXIS_FILTER_COMPONENT_METADATA, l as PRAXIS_TABLE_AUTHORING_MANIFEST, m as PRAXIS_TABLE_COMPONENT_METADATA, n as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, o as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, p as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, q as PraxisFilter, r as PraxisFilterWidgetConfigEditor, s as PraxisTable, t as PraxisTableConfigEditor, u as PraxisTableInlineAuthoringEditorComponent, v as PraxisTableToolbar, w as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, x as TABLE_COMPONENT_AI_CAPABILITIES, y as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, z as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, E as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, G as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, H as TABLE_COMPONENT_EDIT_PLAN_KIND, K as TABLE_COMPONENT_EDIT_PLAN_VERSION, L as TASK_PRESETS, O as TableDefaultsProvider, Q as TableRulesEditorComponent, R as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, U as VisualFormulaBuilderComponent, W as analyticsComparisonMetricField, X as buildTableApplyPlan, Y as coerceTableComponentEditPlan, Z as coerceTableComponentEditPlans, _ as compileTableComponentEditPlan, $ as compileTableComponentEditPlans, a0 as createTableAuthoringDocument, a1 as getActionId, a2 as getEnum, a3 as getTableCapabilities, a4 as getTableComponentEditPlanCapabilities, a5 as isTableRendererSupportedByRichContentP0, a6 as mapTableRendererToRichContentP0, a7 as normalizeTableAuthoringDocument, a8 as parseLegacyOrTableDocument, a9 as providePraxisFilterMetadata, aa as providePraxisTableMetadata, ab as providePraxisTableToolbarAppearance, ac as serializeTableAuthoringDocument, ae as toCanonicalTableConfig, af as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-CEfgCNj3.mjs';
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "9.0.4-rc.
|
|
3
|
+
"version": "9.0.4-rc.34",
|
|
4
4
|
"description": "Advanced data table for Angular (Praxis UI) with editing, filtering, sorting, virtualization, and settings panel integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/platform-browser": "^21.0.0",
|
|
9
|
-
"@praxisui/ai": "^9.0.4-rc.
|
|
10
|
-
"@praxisui/core": "^9.0.4-rc.
|
|
11
|
-
"@praxisui/dynamic-fields": "^9.0.4-rc.
|
|
12
|
-
"@praxisui/dynamic-form": "^9.0.4-rc.
|
|
13
|
-
"@praxisui/metadata-editor": "^9.0.4-rc.
|
|
14
|
-
"@praxisui/rich-content": "^9.0.4-rc.
|
|
15
|
-
"@praxisui/settings-panel": "^9.0.4-rc.
|
|
16
|
-
"@praxisui/table-rule-builder": "^9.0.4-rc.
|
|
9
|
+
"@praxisui/ai": "^9.0.4-rc.34",
|
|
10
|
+
"@praxisui/core": "^9.0.4-rc.34",
|
|
11
|
+
"@praxisui/dynamic-fields": "^9.0.4-rc.34",
|
|
12
|
+
"@praxisui/dynamic-form": "^9.0.4-rc.34",
|
|
13
|
+
"@praxisui/metadata-editor": "^9.0.4-rc.34",
|
|
14
|
+
"@praxisui/rich-content": "^9.0.4-rc.34",
|
|
15
|
+
"@praxisui/settings-panel": "^9.0.4-rc.34",
|
|
16
|
+
"@praxisui/table-rule-builder": "^9.0.4-rc.34",
|
|
17
17
|
"@angular/cdk": "^21.0.0",
|
|
18
18
|
"@angular/forms": "^21.0.0",
|
|
19
19
|
"@angular/material": "^21.0.0",
|
|
20
20
|
"@angular/router": "^21.0.0",
|
|
21
|
-
"@praxisui/dialog": "^9.0.4-rc.
|
|
21
|
+
"@praxisui/dialog": "^9.0.4-rc.34",
|
|
22
22
|
"rxjs": "~7.8.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
@@ -109,6 +109,14 @@ Este documento e a referencia canonica da API JSON de praxis-table.
|
|
|
109
109
|
> [!WARNING]
|
|
110
110
|
> **Segurança Corporativa em Cenários Corporativos**: A visibilidade de colunas via dropdown da toolbar é um recurso estritamente visual (layout de apresentação do lado do cliente). A ocultação de colunas **não** protege o dado sensível da transmissão de rede nem de inspeção técnica. Se determinados campos (ex: salários, senhas ou tokens) forem confidenciais para o nível de permissão do usuário atual, a restrição de dados deve ser realizada obrigatoriamente no lado do servidor (através da filtragem de propriedades nas APIs de CRUD e consulta), e nunca por meio de ocultação puramente visual na tabela.
|
|
111
111
|
|
|
112
|
+
## Quick filters and density
|
|
113
|
+
|
|
114
|
+
- `config.toolbar.filters.quickFilters[]` materializa filtros rápidos alternáveis na toolbar. Cada item declara `id`, `label`, `filter` e `icon` opcional.
|
|
115
|
+
- O filtro rápido é combinado com os critérios já ativos. Ao desativá-lo, a tabela restaura os critérios anteriores sem perder o contexto do operador.
|
|
116
|
+
- Aplicar ou limpar o formulário de filtros avançados encerra o estado visual do filtro rápido para evitar dois controles aparentarem governar critérios divergentes.
|
|
117
|
+
- `config.toolbar.densityToggle.enabled` materializa o seletor de densidade. `values` pode restringir as opções entre `compact`, `comfortable` e `spacious`.
|
|
118
|
+
- A alteração de densidade atualiza `config.appearance.density` e emite `configChange`, permitindo ao host decidir se a preferência será apenas transitória ou persistida.
|
|
119
|
+
|
|
112
120
|
## Rich content convergence
|
|
113
121
|
|
|
114
122
|
- `mapTableRendererToRichContentP0(...)` e a ponte publica e restrita entre a taxonomia atual de cell renderers do `praxis-table` e o vocabulario compartilhado `1.0` de rich content em `@praxisui/core`.
|
|
@@ -1228,6 +1236,8 @@ A superficie usa `horizontalScroll` com classes:
|
|
|
1228
1236
|
| `toolbar.appearance.tokens.identityIconSize` | `string` | No | `28px` | Active | Tamanho do container do icone da identidade. |
|
|
1229
1237
|
| `toolbar.appearance.tokens.identityIconRadius` | `string` | No | `8px` | Active | Raio do container do icone da identidade. |
|
|
1230
1238
|
| `toolbar.columnsVisibility` | `object` | No | habilitado se a toolbar estiver ativa | Active | Controle rápido de visibilidade de colunas no toolbar (dropdown). |
|
|
1239
|
+
| `toolbar.filters.quickFilters[]` | `ToolbarFilterConfig[]` | No | `[]` | Active | Filtros rápidos governados, combinados com os critérios ativos e alternáveis pela toolbar. |
|
|
1240
|
+
| `toolbar.densityToggle` | `object` | No | desabilitado | Active | Seletor governado de densidade com opções `compact`, `comfortable` e `spacious`. |
|
|
1231
1241
|
| `messages` | `TableMessagesConfig` | No | defaults internos | Partial | Overrides de i18n e mensagens operacionais. |
|
|
1232
1242
|
| `data` | `TableDataConfig` | No | modo local/remoto autodetectado | Partial | Integra origem local ou remota conforme `resourcePath`/inputs. |
|
|
1233
1243
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _praxisui_core from '@praxisui/core';
|
|
2
|
-
import { TableToolbarAppearanceConfig, TableConfig, ToolbarActionEvent, PraxisExportScope, LoggerService, PraxisI18nService, TableToolbarAppearanceVariant,
|
|
2
|
+
import { TableToolbarAppearanceConfig, TableConfig, TableToolbarAppearanceDensity, ToolbarActionEvent, PraxisExportScope, LoggerService, PraxisI18nService, TableToolbarAppearanceVariant, TableToolbarAppearanceShape, TableToolbarAppearanceDivider, TableToolbarTokenName, ToolbarAction as ToolbarAction$1, GlobalConfigService, AsyncConfigStorage, LocalStorageConfigService, ApiUrlEntry, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, PraxisTextValue, PraxisAnalyticsProjection, PraxisDataQueryContext, ApiUrlConfig, PraxisQueryFilterExpression, RecordRelatedSurfaceContextPack, PraxisResourceEvent, LoadingState, RestApiLinks, ColumnDefinition, RichBlockNode, ResourceCapabilityDigest, ConnectionStorage, LoadingOrchestrator, GlobalActionService, EnterpriseRuntimeContextService, PraxisLoadingRenderer, PraxisRuntimeComponentObservationEnvelope, TableDetailRichListNode, TableDetailCardGridNode, TableDetailCardGridCardNode, TableDetailTimelineNode, JsonLogicDataRecord, TableDetailListItemAction, TableDetailActionBarNode, TableDetailActionBarAction, TableDetailRefNode, TableDetailTemplateRefNode, TableDetailDiagramEmbedNode, TableDetailEmbedAction, GlobalActionRef, PraxisRuntimeGlobalActionEffect, ResourceActionCatalogItem, ResourceSurfaceCatalogItem, ResourceCapabilityOperation, JsonLogicExpression, PraxisPresentationVisualizationKind, PraxisTableCellVisualizationConstraint, GlobalActionCatalogEntry, IconPickerService, SurfaceOpenPayload, GlobalActionField, FieldDefinition, PraxisRuntimeConditionalEffectRule, PraxisJsonLogicService, TableConfigService, SettingsValueProvider as SettingsValueProvider$1, AnalyticsSchemaContractService, AnalyticsPresentationResolver, RichPresenterNode, RichComposeNode, ComponentAuthoringManifest, AiCapability, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, OnDestroy, EventEmitter, ElementRef, Provider, OnInit, OnChanges, AfterViewInit, DoCheck, DestroyRef, ChangeDetectorRef, NgZone, SimpleChanges, ComponentRef, AfterContentInit, Injector, Type } from '@angular/core';
|
|
5
5
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -58,6 +58,8 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
58
58
|
showMobileActions: boolean;
|
|
59
59
|
exportBusy: boolean;
|
|
60
60
|
evaluationContext: Record<string, any> | null;
|
|
61
|
+
activeQuickFilterId: string | null;
|
|
62
|
+
activeDensity: TableToolbarAppearanceDensity | null;
|
|
61
63
|
/** @internal Used by PraxisTable so toolbar menu decisions materialize through the table runtime. */
|
|
62
64
|
columnVisibilityController?: (field: string, visible: boolean) => void;
|
|
63
65
|
toolbarAction: EventEmitter<Pick<ToolbarActionEvent<Record<string, unknown>>, "action" | "actionConfig">>;
|
|
@@ -70,6 +72,12 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
70
72
|
field: string;
|
|
71
73
|
visible: boolean;
|
|
72
74
|
}>;
|
|
75
|
+
quickFilterChange: EventEmitter<{
|
|
76
|
+
id: string;
|
|
77
|
+
filter: Record<string, unknown>;
|
|
78
|
+
active: boolean;
|
|
79
|
+
}>;
|
|
80
|
+
densityChange: EventEmitter<TableToolbarAppearanceDensity>;
|
|
73
81
|
readonly getActionId: typeof getActionId;
|
|
74
82
|
private readonly jsonLogic;
|
|
75
83
|
private readonly validToolbarActionTypes;
|
|
@@ -108,6 +116,30 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
108
116
|
isVisibleExcelExportEnabled(format: unknown): boolean;
|
|
109
117
|
private normalizeExportFormat;
|
|
110
118
|
getColumnsVisibilityLabel(): string;
|
|
119
|
+
getQuickFilters(): Array<{
|
|
120
|
+
id: string;
|
|
121
|
+
label: string;
|
|
122
|
+
filter: Record<string, unknown>;
|
|
123
|
+
icon?: string;
|
|
124
|
+
}>;
|
|
125
|
+
shouldShowQuickFilters(): boolean;
|
|
126
|
+
getQuickFiltersLabel(): string;
|
|
127
|
+
getQuickFilterLabel(filter: {
|
|
128
|
+
label: unknown;
|
|
129
|
+
id: string;
|
|
130
|
+
}): string;
|
|
131
|
+
isQuickFilterActive(id: string): boolean;
|
|
132
|
+
emitQuickFilterChange(event: Event, filter: {
|
|
133
|
+
id: string;
|
|
134
|
+
filter: Record<string, unknown>;
|
|
135
|
+
}): void;
|
|
136
|
+
isDensityToggleEnabled(): boolean;
|
|
137
|
+
getDensityToggleLabel(): string;
|
|
138
|
+
getDensityOptions(): TableToolbarAppearanceDensity[];
|
|
139
|
+
isDensityActive(density: TableToolbarAppearanceDensity): boolean;
|
|
140
|
+
getDensityLabel(density: TableToolbarAppearanceDensity): string;
|
|
141
|
+
getDensityIcon(density: TableToolbarAppearanceDensity): string;
|
|
142
|
+
emitDensityChange(event: Event, density: TableToolbarAppearanceDensity): void;
|
|
111
143
|
getColumnsVisibilityIcon(): string;
|
|
112
144
|
isColumnsVisibilityEnabled(): boolean;
|
|
113
145
|
getVisibleColumnsCount(): number;
|
|
@@ -185,7 +217,7 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
185
217
|
private sortActions;
|
|
186
218
|
getExportIcon(format: string): string;
|
|
187
219
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTableToolbar, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
188
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTableToolbar, "praxis-table-toolbar", never, { "config": { "alias": "config"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "showMain": { "alias": "showMain"; "required": false; }; "showActionsGroup": { "alias": "showActionsGroup"; "required": false; }; "showEndActions": { "alias": "showEndActions"; "required": false; }; "showMobileActions": { "alias": "showMobileActions"; "required": false; }; "exportBusy": { "alias": "exportBusy"; "required": false; }; "evaluationContext": { "alias": "evaluationContext"; "required": false; }; "columnVisibilityController": { "alias": "columnVisibilityController"; "required": false; }; }, { "toolbarAction": "toolbarAction"; "exportAction": "exportAction"; "columnVisibilityToggle": "columnVisibilityToggle"; }, never, ["[advancedFilter]", "[toolbar]", "[end-actions]"], true, never>;
|
|
220
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTableToolbar, "praxis-table-toolbar", never, { "config": { "alias": "config"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "placement": { "alias": "placement"; "required": false; }; "showMain": { "alias": "showMain"; "required": false; }; "showActionsGroup": { "alias": "showActionsGroup"; "required": false; }; "showEndActions": { "alias": "showEndActions"; "required": false; }; "showMobileActions": { "alias": "showMobileActions"; "required": false; }; "exportBusy": { "alias": "exportBusy"; "required": false; }; "evaluationContext": { "alias": "evaluationContext"; "required": false; }; "activeQuickFilterId": { "alias": "activeQuickFilterId"; "required": false; }; "activeDensity": { "alias": "activeDensity"; "required": false; }; "columnVisibilityController": { "alias": "columnVisibilityController"; "required": false; }; }, { "toolbarAction": "toolbarAction"; "exportAction": "exportAction"; "columnVisibilityToggle": "columnVisibilityToggle"; "quickFilterChange": "quickFilterChange"; "densityChange": "densityChange"; }, never, ["[advancedFilter]", "[toolbar]", "[end-actions]"], true, never>;
|
|
189
221
|
}
|
|
190
222
|
|
|
191
223
|
type ColumnDataType$1 = 'date' | 'number' | 'currency' | 'percentage' | 'string' | 'boolean' | 'custom';
|
|
@@ -483,6 +515,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
483
515
|
private settingsPanel;
|
|
484
516
|
private snackBar;
|
|
485
517
|
private dialog;
|
|
518
|
+
private praxisDialog;
|
|
486
519
|
private cdr;
|
|
487
520
|
private ngZone;
|
|
488
521
|
private dynamicForm;
|
|
@@ -666,6 +699,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
666
699
|
readonly addManagerDescriptionId: string;
|
|
667
700
|
readonly addOverlayPositions: ConnectedPosition[];
|
|
668
701
|
private applySchemaQueued;
|
|
702
|
+
private shortcutPromptOpen;
|
|
669
703
|
private fallbackLogger?;
|
|
670
704
|
private fallbackLoggerEnvironment;
|
|
671
705
|
private isViewInitialized;
|
|
@@ -699,7 +733,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
699
733
|
private filterSchemaIgnoreKey;
|
|
700
734
|
private filterSchemaSnoozeKey;
|
|
701
735
|
private filterSchemaNotifiedKey;
|
|
702
|
-
constructor(crud: GenericCrudService<any>, configStorage: AsyncConfigStorage, destroyRef: DestroyRef, filterConfig: FilterConfigService, settingsPanel: SettingsPanelService, snackBar: MatSnackBar, dialog: MatDialog, cdr: ChangeDetectorRef, ngZone: NgZone, dynamicForm: DynamicFormService, schemaNormalizer: SchemaNormalizerService, componentKeys: ComponentKeyService, route?: ActivatedRoute | undefined, logger?: LoggerService | undefined);
|
|
736
|
+
constructor(crud: GenericCrudService<any>, configStorage: AsyncConfigStorage, destroyRef: DestroyRef, filterConfig: FilterConfigService, settingsPanel: SettingsPanelService, snackBar: MatSnackBar, dialog: MatDialog, praxisDialog: PraxisDialog, cdr: ChangeDetectorRef, ngZone: NgZone, dynamicForm: DynamicFormService, schemaNormalizer: SchemaNormalizerService, componentKeys: ComponentKeyService, route?: ActivatedRoute | undefined, logger?: LoggerService | undefined);
|
|
703
737
|
private readonly global;
|
|
704
738
|
private resolveRuntimeEnvironment;
|
|
705
739
|
private getLogger;
|
|
@@ -874,6 +908,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
874
908
|
saveCurrentAsTag(): void;
|
|
875
909
|
/** Persistência centralizada de atalho a partir de um DTO explícito */
|
|
876
910
|
private saveAsShortcutFromDto;
|
|
911
|
+
private requestShortcutLabel;
|
|
877
912
|
getAdvancedAriaLabel(): string;
|
|
878
913
|
getAdvancedTooltip(): string;
|
|
879
914
|
getSettingsAriaLabel(): string;
|
|
@@ -931,7 +966,7 @@ declare class PraxisFilter implements OnInit, OnChanges, AfterViewInit, OnDestro
|
|
|
931
966
|
onGlobalKeydown(event: KeyboardEvent): void;
|
|
932
967
|
private isEditableElement;
|
|
933
968
|
private focusQuick;
|
|
934
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFilter, [null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
969
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisFilter, [null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
935
970
|
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisFilter, "praxis-filter", never, { "resourcePath": { "alias": "resourcePath"; "required": true; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "fieldMetadata": { "alias": "fieldMetadata"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "formId": { "alias": "formId"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "value": { "alias": "value"; "required": false; }; "alwaysVisibleFields": { "alias": "alwaysVisibleFields"; "required": false; }; "alwaysVisibleFieldMetadataOverrides": { "alias": "alwaysVisibleFieldMetadataOverrides"; "required": false; }; "selectedFieldIds": { "alias": "selectedFieldIds"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "allowSaveTags": { "alias": "allowSaveTags"; "required": false; }; "persistenceKey": { "alias": "persistenceKey"; "required": false; }; "disablePersistence": { "alias": "disablePersistence"; "required": false; }; "i18n": { "alias": "i18n"; "required": false; }; "changeDebounceMs": { "alias": "changeDebounceMs"; "required": false; }; "showFilterSettings": { "alias": "showFilterSettings"; "required": false; }; "showAdvancedButton": { "alias": "showAdvancedButton"; "required": false; }; "showAddButton": { "alias": "showAddButton"; "required": false; }; "showClearButton": { "alias": "showClearButton"; "required": false; }; "showSearchButton": { "alias": "showSearchButton"; "required": false; }; "confirmTagDelete": { "alias": "confirmTagDelete"; "required": false; }; "placeBooleansInActions": { "alias": "placeBooleansInActions"; "required": false; }; "showToggleLabels": { "alias": "showToggleLabels"; "required": false; }; "useInlineSelectVariant": { "alias": "useInlineSelectVariant"; "required": false; }; "useInlineSearchableSelectVariant": { "alias": "useInlineSearchableSelectVariant"; "required": false; }; "useInlineMultiSelectVariant": { "alias": "useInlineMultiSelectVariant"; "required": false; }; "useInlineInputVariant": { "alias": "useInlineInputVariant"; "required": false; }; "useInlineToggleVariant": { "alias": "useInlineToggleVariant"; "required": false; }; "useInlineRangeVariant": { "alias": "useInlineRangeVariant"; "required": false; }; "useInlineDateVariant": { "alias": "useInlineDateVariant"; "required": false; }; "useInlineDateRangeVariant": { "alias": "useInlineDateRangeVariant"; "required": false; }; "useInlineTimeVariant": { "alias": "useInlineTimeVariant"; "required": false; }; "useInlineTimeRangeVariant": { "alias": "useInlineTimeRangeVariant"; "required": false; }; "useInlineTreeSelectVariant": { "alias": "useInlineTreeSelectVariant"; "required": false; }; "alwaysMinWidth": { "alias": "alwaysMinWidth"; "required": false; }; "alwaysColsMd": { "alias": "alwaysColsMd"; "required": false; }; "alwaysColsLg": { "alias": "alwaysColsLg"; "required": false; }; "tagColor": { "alias": "tagColor"; "required": false; }; "tagVariant": { "alias": "tagVariant"; "required": false; }; "tagButtonColor": { "alias": "tagButtonColor"; "required": false; }; "actionsButtonColor": { "alias": "actionsButtonColor"; "required": false; }; "actionsVariant": { "alias": "actionsVariant"; "required": false; }; "overlayVariant": { "alias": "overlayVariant"; "required": false; }; "overlayBackdrop": { "alias": "overlayBackdrop"; "required": false; }; "advancedOpenMode": { "alias": "advancedOpenMode"; "required": false; }; "advancedClearButtonsEnabled": { "alias": "advancedClearButtonsEnabled"; "required": false; }; }, { "submit": "submit"; "change": "change"; "clear": "clear"; "modeChange": "modeChange"; "requestSearch": "requestSearch"; "tagsChange": "tagsChange"; "selectedFieldIdsChange": "selectedFieldIdsChange"; "metaChanged": "metaChanged"; "schemaStatusChange": "schemaStatusChange"; }, never, never, true, never>;
|
|
936
971
|
}
|
|
937
972
|
|
|
@@ -1198,6 +1233,9 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1198
1233
|
aiAssistantVoiceInputMode: PraxisAssistantVoiceInputMode;
|
|
1199
1234
|
aiAssistantVoiceLanguage: string;
|
|
1200
1235
|
advancedFilterValue: Record<string, any>;
|
|
1236
|
+
activeQuickFilterId: string | null;
|
|
1237
|
+
private quickFilterBaseCriteria;
|
|
1238
|
+
private activeQuickFilterCriteria;
|
|
1201
1239
|
advancedFilterRuntimeVisibleFields: string[];
|
|
1202
1240
|
private advancedFilterAlwaysVisibleCacheKey;
|
|
1203
1241
|
private advancedFilterAlwaysVisibleCache?;
|
|
@@ -1337,6 +1375,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1337
1375
|
shouldShowToolbarActionsTop(): boolean;
|
|
1338
1376
|
shouldShowToolbarActionsBottom(): boolean;
|
|
1339
1377
|
getToolbarActionsBackgroundColor(): string | null;
|
|
1378
|
+
private hasToolbarUtilityActions;
|
|
1340
1379
|
getToolbarLayoutHeightPx(): number | null;
|
|
1341
1380
|
getToolbarLayoutHeightCssVar(): string | null;
|
|
1342
1381
|
getToolbarLayoutHeightHostStyle(): string | null;
|
|
@@ -1375,6 +1414,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1375
1414
|
shouldShowEmptyState(): boolean;
|
|
1376
1415
|
shouldShowNoDataState(): boolean;
|
|
1377
1416
|
shouldShowLoadingSurface(): boolean;
|
|
1417
|
+
shouldShowRefreshingState(): boolean;
|
|
1378
1418
|
getLoadingSurfaceMessage(): string;
|
|
1379
1419
|
getNoDataStateTitle(): string;
|
|
1380
1420
|
getNoDataStateDescription(): string | undefined;
|
|
@@ -1424,7 +1464,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1424
1464
|
private hostDeclaredAppearanceDensity;
|
|
1425
1465
|
private hostDeclaredAppearanceSpacing;
|
|
1426
1466
|
private hostDeclaredAppearanceTypography;
|
|
1427
|
-
|
|
1467
|
+
resolveAppearanceDensity(): 'compact' | 'comfortable' | 'spacious';
|
|
1428
1468
|
get hostDensityCompactClass(): boolean;
|
|
1429
1469
|
get hostDensityComfortableClass(): boolean;
|
|
1430
1470
|
get hostDensitySpaciousClass(): boolean;
|
|
@@ -1624,7 +1664,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1624
1664
|
private resolveAiAssistantIcon;
|
|
1625
1665
|
private emitLoadingState;
|
|
1626
1666
|
private hasResolvedRemoteDataLoad;
|
|
1627
|
-
|
|
1667
|
+
isTableDataLoading(): boolean;
|
|
1628
1668
|
private getRenderedRowCount;
|
|
1629
1669
|
private hasActiveDataFilters;
|
|
1630
1670
|
private hasActiveEmptyStateFilters;
|
|
@@ -1924,6 +1964,13 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1924
1964
|
onAdvancedFilterSubmit(criteria: Record<string, any>): void;
|
|
1925
1965
|
onAdvancedFilterChange(criteria: Record<string, any>): void;
|
|
1926
1966
|
onAdvancedFilterClear(): void;
|
|
1967
|
+
onQuickFilterChange(event: {
|
|
1968
|
+
id: string;
|
|
1969
|
+
filter: Record<string, unknown>;
|
|
1970
|
+
active: boolean;
|
|
1971
|
+
}): void;
|
|
1972
|
+
private clearQuickFilterRuntimeState;
|
|
1973
|
+
private hasEquivalentFilterCriteria;
|
|
1927
1974
|
private applyAdvancedFilterCriteria;
|
|
1928
1975
|
private setAdvancedFilterCriteria;
|
|
1929
1976
|
private syncAdvancedFilterValueFromCriteria;
|
|
@@ -1939,6 +1986,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1939
1986
|
private showResetSuccessFeedback;
|
|
1940
1987
|
readonly toolbarColumnVisibilityController: (field: string, visible: boolean) => void;
|
|
1941
1988
|
toggleColumnVisibility(field: string, visible: boolean): void;
|
|
1989
|
+
onDensityChange(density: TableToolbarAppearanceDensity): void;
|
|
1942
1990
|
isCustomizationAvailable(): boolean;
|
|
1943
1991
|
private isAuthoringAssistantAvailable;
|
|
1944
1992
|
openTableSettings(): void;
|