@praxisui/crud 10.0.0-rc.7 → 10.0.0-rc.71
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 +168 -11
- package/ai/component-registry.json +3488 -260
- package/fesm2022/praxisui-crud-crud-route-form.component-BHZZFLt1.mjs +103 -0
- package/fesm2022/praxisui-crud-praxisui-crud-CZL9Mks8.mjs +32341 -0
- package/fesm2022/praxisui-crud.mjs +2 -9426
- package/package.json +8 -7
- package/types/praxisui-crud-drawer-adapter.d.ts +16 -1
- package/types/praxisui-crud.d.ts +1681 -57
package/types/praxisui-crud.d.ts
CHANGED
|
@@ -1,18 +1,207 @@
|
|
|
1
1
|
import * as _praxisui_core from '@praxisui/core';
|
|
2
|
-
import { RowAction, ToolbarAction, ApiEndpoint, ApiUrlEntry, DynamicFormLayoutPolicy, BackConfig, ResourceSurfaceCatalogItem, MaterializedResourceIdentity,
|
|
2
|
+
import { RowAction, ToolbarAction, ApiEndpoint, ApiUrlEntry, FormLayoutOptions, DynamicFormLayoutPolicy, DynamicFormLayoutScope, FormPresentationPreset, FormPresentationConfig, BackConfig, ResourceBulkExecutionContract, ResourceSurfaceCatalogItem, MaterializedResourceIdentity, TableConfigInput, PraxisKpiBandConfig, PraxisKpiBandCard, PraxisDataQueryContext, FormConfig, FormStepTelemetryEvent, FieldDefinition, ReactiveDeterminationExecutionEvent, DynamicDataRecord, PraxisResourceEvent, NormalizedPraxisResourceQuickFilter, TableConfig, ResourceCapabilitySnapshot, DomainCatalogResourceFactMetadata, LoadingState, RestApiLinks, PraxisLegacyConfigPersistenceStrategy, SurfaceDrawerRef, PraxisConfigPersistenceStrategy, GenericCrudService, AsyncConfigStorage, ComponentDocMeta, AiCapabilityCatalog, AiCapability, AiCapabilityCategory, AiValueKind, ComponentAuthoringManifest, SettingsValueProvider, ColumnDefinition, FieldMetadata, DiscoveredResourceOption, DiscoveredResourceEndpointOption, PraxisPresentationVisualizationConfig, PraxisKpiResolvedViewModel, ResourceActionCatalogItem, ResourceIdentityContract, FormActionsLayout, ResourceBulkTarget, ResourceBulkProposal, ResourceBulkExecution, BulkProposalItemResult, BulkItemResult, ResourceBulkFieldChange, BulkItemChange, ResourceBulkProposalDiagnostic, PraxisBulkProposalBridge, PraxisBulkProposalHandoffRequest, PraxisBulkProposalHandoffResult, PraxisI18nConfig, PraxisI18nService, PraxisTranslationParams } from '@praxisui/core';
|
|
3
3
|
export { BackConfig, DynamicDataCollection, DynamicDataRecord, createDynamicRecord, extractRecordId, isDynamicDataRecord, resolveDataField } from '@praxisui/core';
|
|
4
4
|
import * as _angular_core from '@angular/core';
|
|
5
|
-
import { NgZone, OnChanges, TemplateRef, EventEmitter, SimpleChanges, Injector, OnInit, AfterViewInit, Provider, OnDestroy } from '@angular/core';
|
|
6
|
-
import { TableConfigPersistenceStrategy, PraxisTable, RowClickEvent, DrawerOpenEvent, PraxisScopeBarItem, RowDoubleClickEvent } from '@praxisui/table';
|
|
5
|
+
import { NgZone, OnChanges, TemplateRef, EventEmitter, SimpleChanges, Injector, OnInit, AfterViewInit, Provider, OnDestroy, DestroyRef } from '@angular/core';
|
|
6
|
+
import { TableConfigPersistenceStrategy, PraxisTable, RowClickEvent, DrawerOpenEvent, PraxisScopeBarItem, PraxisScopeBarConfig, RowDoubleClickEvent } from '@praxisui/table';
|
|
7
7
|
export { DrawerOpenEvent, RowClickEvent, RowDoubleClickEvent, RowSelectionChangeEvent } from '@praxisui/table';
|
|
8
8
|
import { MatDialogConfig, MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
9
9
|
export { MAT_DIALOG_DATA as DIALOG_DATA } from '@angular/material/dialog';
|
|
10
10
|
import { ComponentType } from '@angular/cdk/portal';
|
|
11
|
+
import { Route } from '@angular/router';
|
|
11
12
|
import { PraxisDynamicForm } from '@praxisui/dynamic-form';
|
|
12
13
|
import * as _praxisui_crud from '@praxisui/crud';
|
|
13
|
-
import { BehaviorSubject } from 'rxjs';
|
|
14
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
14
15
|
import * as _praxisui_settings_panel from '@praxisui/settings-panel';
|
|
15
16
|
import { SettingsPanelService } from '@praxisui/settings-panel';
|
|
17
|
+
import { FormGroup, FormControl, FormArray } from '@angular/forms';
|
|
18
|
+
|
|
19
|
+
type PraxisCustomFieldsStudioMode = 'target-resource' | 'catalog';
|
|
20
|
+
type PraxisCustomFieldsOptionSourceKind = 'TABELA_GERAL' | 'LISTA_PROPRIA';
|
|
21
|
+
interface PraxisCustomFieldsStudioConfig {
|
|
22
|
+
enabled?: boolean;
|
|
23
|
+
mode: PraxisCustomFieldsStudioMode;
|
|
24
|
+
definitionsResourcePath: string;
|
|
25
|
+
targetsCatalogEndpoint?: string;
|
|
26
|
+
previewDeterminationEndpoint?: string;
|
|
27
|
+
aiDraftEndpoint?: string;
|
|
28
|
+
optionTablesResourcePath?: string;
|
|
29
|
+
tablesCatalogResourcePath?: string;
|
|
30
|
+
targetResourceKey?: string;
|
|
31
|
+
targetResourceTitle?: string;
|
|
32
|
+
targetResourcePath?: string;
|
|
33
|
+
triggerLabel?: string;
|
|
34
|
+
scopeDimensionField?: string;
|
|
35
|
+
requiredAuthority?: string;
|
|
36
|
+
officialCatalogHint?: string;
|
|
37
|
+
aiPromptExamples?: string[];
|
|
38
|
+
}
|
|
39
|
+
interface PraxisCustomFieldNativeFieldSummary {
|
|
40
|
+
name: string;
|
|
41
|
+
label: string;
|
|
42
|
+
group?: string;
|
|
43
|
+
order?: number;
|
|
44
|
+
type?: string;
|
|
45
|
+
options?: Array<{
|
|
46
|
+
value: string;
|
|
47
|
+
label: string;
|
|
48
|
+
}>;
|
|
49
|
+
}
|
|
50
|
+
interface PraxisCustomFieldTargetCatalogItem {
|
|
51
|
+
resourceKey: string;
|
|
52
|
+
title: string;
|
|
53
|
+
resourcePath: string;
|
|
54
|
+
groups: string[];
|
|
55
|
+
nativeFields?: PraxisCustomFieldNativeFieldSummary[];
|
|
56
|
+
}
|
|
57
|
+
interface PraxisCustomFieldPreviewDetermination {
|
|
58
|
+
optionTabelaDescricaoPrevista?: string | null;
|
|
59
|
+
requerTabelaOpcoesPrevisto?: boolean | null;
|
|
60
|
+
escopoGlobalPrevisto?: boolean | null;
|
|
61
|
+
optionTabelaMultiEmpresa?: boolean | null;
|
|
62
|
+
optionTabelaTotalItensAtivos?: number | null;
|
|
63
|
+
optionTabelaModoLookup?: 'INLINE' | 'LIGHT_LOOKUP' | 'EMPTY' | 'NONE' | string | null;
|
|
64
|
+
optionTabelaAmostraItens?: Array<{
|
|
65
|
+
code: string;
|
|
66
|
+
label: string;
|
|
67
|
+
}> | null;
|
|
68
|
+
controlTypeSugerido?: string | null;
|
|
69
|
+
}
|
|
70
|
+
interface PraxisCustomFieldImpactSummary {
|
|
71
|
+
id: number;
|
|
72
|
+
resourceKey: string;
|
|
73
|
+
fieldKey: string;
|
|
74
|
+
empCodigo?: number | null;
|
|
75
|
+
active: boolean;
|
|
76
|
+
tableName?: string | null;
|
|
77
|
+
affectedRecords: number;
|
|
78
|
+
canDeleteSafely: boolean;
|
|
79
|
+
recommendedAction: 'SAFE_TO_DELETE' | 'PREFER_DEACTIVATE' | string;
|
|
80
|
+
warningMessage: string;
|
|
81
|
+
}
|
|
82
|
+
interface PraxisTabelaCatalogItem {
|
|
83
|
+
tab: string;
|
|
84
|
+
descr: string;
|
|
85
|
+
sis?: string | null;
|
|
86
|
+
multiEmp?: boolean | null;
|
|
87
|
+
tipo?: string | null;
|
|
88
|
+
}
|
|
89
|
+
interface PraxisCustomFieldOptionDraft {
|
|
90
|
+
value: string;
|
|
91
|
+
label: string;
|
|
92
|
+
}
|
|
93
|
+
interface PraxisCustomFieldPreset {
|
|
94
|
+
id: string;
|
|
95
|
+
label: string;
|
|
96
|
+
description: string;
|
|
97
|
+
icon: string;
|
|
98
|
+
fieldType: string;
|
|
99
|
+
controlType: string;
|
|
100
|
+
optionSourceKind?: PraxisCustomFieldsOptionSourceKind;
|
|
101
|
+
supportsOptions?: boolean;
|
|
102
|
+
supportsMultiOptions?: boolean;
|
|
103
|
+
defaultPlaceholder?: string;
|
|
104
|
+
defaultWidth?: string;
|
|
105
|
+
defaultMask?: string;
|
|
106
|
+
defaultIcon?: string;
|
|
107
|
+
defaultNumericFormat?: string;
|
|
108
|
+
defaultPattern?: string;
|
|
109
|
+
defaultValidationMessage?: string;
|
|
110
|
+
defaultMin?: number;
|
|
111
|
+
defaultMax?: number;
|
|
112
|
+
sampleDefaultOptions?: PraxisCustomFieldOptionDraft[];
|
|
113
|
+
}
|
|
114
|
+
interface PraxisCustomFieldStudioDialogData {
|
|
115
|
+
studio: PraxisCustomFieldsStudioConfig;
|
|
116
|
+
action: 'create' | 'edit';
|
|
117
|
+
record?: Record<string, unknown> | null;
|
|
118
|
+
context?: Record<string, unknown> | null;
|
|
119
|
+
}
|
|
120
|
+
interface PraxisCustomFieldStudioDialogResult {
|
|
121
|
+
saved: boolean;
|
|
122
|
+
record?: Record<string, unknown>;
|
|
123
|
+
resourceKey?: string;
|
|
124
|
+
}
|
|
125
|
+
interface PraxisCustomFieldAiDraftRequest {
|
|
126
|
+
prompt: string;
|
|
127
|
+
targetResourceKey?: string;
|
|
128
|
+
empCodigo?: number | null;
|
|
129
|
+
}
|
|
130
|
+
interface PraxisCustomFieldAiDraftResponse {
|
|
131
|
+
resourceKey?: string;
|
|
132
|
+
fieldKey?: string;
|
|
133
|
+
label?: string;
|
|
134
|
+
helpText?: string | null;
|
|
135
|
+
placeholder?: string | null;
|
|
136
|
+
defaultValue?: string | null;
|
|
137
|
+
groupName?: string;
|
|
138
|
+
fieldOrder?: number;
|
|
139
|
+
width?: string;
|
|
140
|
+
fieldType?: string;
|
|
141
|
+
controlType?: string;
|
|
142
|
+
required?: boolean;
|
|
143
|
+
tableHidden?: boolean;
|
|
144
|
+
readOnly?: boolean;
|
|
145
|
+
filterable?: boolean;
|
|
146
|
+
filterOperation?: string;
|
|
147
|
+
exportable?: boolean;
|
|
148
|
+
optionSourceKind?: string | null;
|
|
149
|
+
optionTabela?: string | null;
|
|
150
|
+
customOptions?: PraxisCustomFieldOptionDraft[];
|
|
151
|
+
validacaoMin?: number | null;
|
|
152
|
+
validacaoMax?: number | null;
|
|
153
|
+
validacaoMinLength?: number | null;
|
|
154
|
+
validacaoMaxLength?: number | null;
|
|
155
|
+
validacaoPattern?: string | null;
|
|
156
|
+
validacaoMensagem?: string | null;
|
|
157
|
+
governancaSensibilidade?: string;
|
|
158
|
+
governancaVisibilidadeIa?: string;
|
|
159
|
+
rationale?: string;
|
|
160
|
+
}
|
|
161
|
+
declare const PRAXIS_CUSTOM_FIELD_AI_PROMPT_EXAMPLES: readonly string[];
|
|
162
|
+
declare const PRAXIS_MULTI_CHOICE_CONTROL_TYPES: Set<string>;
|
|
163
|
+
declare const PRAXIS_CHOICE_FIELD_TYPES: Set<string>;
|
|
164
|
+
declare const PRAXIS_FIELD_TYPE_CHOICES: ReadonlyArray<{
|
|
165
|
+
value: string;
|
|
166
|
+
label: string;
|
|
167
|
+
}>;
|
|
168
|
+
declare const PRAXIS_FILTER_OPERATION_CHOICES: ReadonlyArray<{
|
|
169
|
+
value: string;
|
|
170
|
+
label: string;
|
|
171
|
+
}>;
|
|
172
|
+
declare const PRAXIS_FILTER_OPERATIONS_BY_FIELD_TYPE: Readonly<Record<string, readonly string[]>>;
|
|
173
|
+
declare const PRAXIS_CUSTOM_FIELD_WIDTH_CHOICES: ReadonlyArray<{
|
|
174
|
+
value: string;
|
|
175
|
+
title: string;
|
|
176
|
+
subtitle: string;
|
|
177
|
+
}>;
|
|
178
|
+
declare const PRAXIS_CONTROL_TYPE_CHOICES: ReadonlyArray<{
|
|
179
|
+
value: string;
|
|
180
|
+
label: string;
|
|
181
|
+
compatibleFieldTypes: readonly string[];
|
|
182
|
+
}>;
|
|
183
|
+
declare const PRAXIS_REGEX_VALIDATION_PRESETS: ReadonlyArray<{
|
|
184
|
+
id: string;
|
|
185
|
+
label: string;
|
|
186
|
+
pattern: string;
|
|
187
|
+
message: string;
|
|
188
|
+
sampleValid: string;
|
|
189
|
+
}>;
|
|
190
|
+
declare const PRAXIS_SUGGESTED_FIELD_ICONS: ReadonlyArray<{
|
|
191
|
+
icon: string;
|
|
192
|
+
label: string;
|
|
193
|
+
}>;
|
|
194
|
+
declare const PRAXIS_CUSTOM_FIELD_PRESETS: readonly PraxisCustomFieldPreset[];
|
|
195
|
+
declare function normalizeStudioControlType(rawControlType: string | null | undefined): string;
|
|
196
|
+
declare function isControlCompatibleWithFieldType(fieldType: string, controlType: string): boolean;
|
|
197
|
+
declare function getCompatibleFilterOperations(fieldType: string): ReadonlyArray<{
|
|
198
|
+
value: string;
|
|
199
|
+
label: string;
|
|
200
|
+
}>;
|
|
201
|
+
declare function validateStudioDefaultValue(rawValue: string, fieldType: string, allowedOptionValues?: readonly string[]): string | null;
|
|
202
|
+
declare function toDynamicFieldControlType(controlTypeKey: string | null | undefined): string;
|
|
203
|
+
declare function slugifyCustomFieldKey(rawValue: string): string;
|
|
204
|
+
declare function slugifyOptionValue(rawValue: string): string;
|
|
16
205
|
|
|
17
206
|
type DialogRef<T = any, R = any> = MatDialogRef<T, R>;
|
|
18
207
|
interface DialogConfig<D = any> extends MatDialogConfig<D> {
|
|
@@ -36,6 +225,10 @@ interface DialogConfig<D = any> extends MatDialogConfig<D> {
|
|
|
36
225
|
fullscreenBreakpoint?: number;
|
|
37
226
|
/** Viewport inset in px applied while the dialog or drawer is maximized */
|
|
38
227
|
edgeGap?: number;
|
|
228
|
+
/** Optional header icon name or Material icon ligature */
|
|
229
|
+
titleIcon?: string;
|
|
230
|
+
/** Alias for header icon name */
|
|
231
|
+
icon?: string;
|
|
39
232
|
}
|
|
40
233
|
|
|
41
234
|
declare class DialogService {
|
|
@@ -43,13 +236,34 @@ declare class DialogService {
|
|
|
43
236
|
private zone;
|
|
44
237
|
constructor(matDialog: MatDialog, zone: NgZone);
|
|
45
238
|
open<T, D = unknown, R = unknown>(component: ComponentType<T>, config?: DialogConfig<D>): DialogRef<T, R>;
|
|
46
|
-
|
|
239
|
+
/** Cancel pending lazy loading without opening an overlay after its owner is gone. */
|
|
240
|
+
openAsync<T, D = unknown, R = unknown>(loader: () => Promise<ComponentType<T>>, config?: DialogConfig<D>, signal?: AbortSignal): Promise<DialogRef<T, R>>;
|
|
47
241
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogService, never>;
|
|
48
242
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogService>;
|
|
49
243
|
}
|
|
50
244
|
|
|
51
245
|
type FormOpenMode = 'route' | 'modal' | 'drawer';
|
|
52
246
|
type CrudInteractionMode = 'interactive' | 'inspect-only';
|
|
247
|
+
type CrudKpiCardVariant = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
248
|
+
type CrudKpiCardConfig = PraxisKpiBandCard & {
|
|
249
|
+
variant?: CrudKpiCardVariant;
|
|
250
|
+
};
|
|
251
|
+
type CrudKpiBandConfig = Omit<PraxisKpiBandConfig, 'cards'> & {
|
|
252
|
+
cards?: CrudKpiCardConfig[];
|
|
253
|
+
};
|
|
254
|
+
interface CrudFilterBarQuickFilter {
|
|
255
|
+
id: string;
|
|
256
|
+
label: string;
|
|
257
|
+
filter: any;
|
|
258
|
+
icon?: string;
|
|
259
|
+
tone?: 'default' | 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'ready';
|
|
260
|
+
badge?: string | number;
|
|
261
|
+
count?: number;
|
|
262
|
+
isDefault?: boolean;
|
|
263
|
+
description?: string;
|
|
264
|
+
tooltip?: string;
|
|
265
|
+
order?: number;
|
|
266
|
+
}
|
|
53
267
|
interface CrudActionRuntimeEvent {
|
|
54
268
|
action?: string;
|
|
55
269
|
actionConfig?: ToolbarAction | ResourceSurfaceCatalogItem | {
|
|
@@ -77,6 +291,12 @@ interface CrudFormReactiveDeterminationStabilityChange {
|
|
|
77
291
|
interface CrudReactiveDeterminationStabilityChange extends CrudFormReactiveDeterminationStabilityChange {
|
|
78
292
|
action: string;
|
|
79
293
|
}
|
|
294
|
+
/** Public CRUD output forwarding metadata-only step transition telemetry from an open form host. */
|
|
295
|
+
interface CrudFormStepTelemetryEvent {
|
|
296
|
+
action: string;
|
|
297
|
+
openMode: FormOpenMode;
|
|
298
|
+
event: FormStepTelemetryEvent;
|
|
299
|
+
}
|
|
80
300
|
interface CrudParamMapping {
|
|
81
301
|
from: string;
|
|
82
302
|
to: 'routeParam' | 'query' | 'input';
|
|
@@ -91,17 +311,36 @@ interface CrudActionFormContract {
|
|
|
91
311
|
apiEndpointKey?: ApiEndpoint | string | null;
|
|
92
312
|
apiUrlEntry?: ApiUrlEntry | null;
|
|
93
313
|
initialValue?: Record<string, unknown> | null;
|
|
314
|
+
/** Optional form layout options override (mode, tabsAppearance, etc.) forwarded to PraxisDynamicForm. */
|
|
315
|
+
layout?: FormLayoutOptions | null;
|
|
94
316
|
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
317
|
+
/** Scope of customized form layout persistence ('shared' across CRUD modes or 'mode-only'). */
|
|
318
|
+
layoutScope?: DynamicFormLayoutScope;
|
|
319
|
+
/** Whether the AI form assistant trigger is shown for this form instance. */
|
|
320
|
+
showAiAssistant?: boolean;
|
|
321
|
+
/** Explicit presentation-mode preference forwarded to PraxisDynamicForm (`true` = dossier, `false` = blocked fields, `null` = follow layoutPolicy). */
|
|
322
|
+
presentationModeGlobal?: boolean | null;
|
|
323
|
+
/** Optional native presentation preset forwarded to PraxisDynamicForm. */
|
|
324
|
+
presentationPreset?: FormPresentationPreset;
|
|
325
|
+
/** Optional runtime presentation configuration forwarded to PraxisDynamicForm. */
|
|
326
|
+
presentation?: FormPresentationConfig | null;
|
|
95
327
|
}
|
|
96
328
|
type CrudActionResolutionMode = 'inferred' | 'explicit';
|
|
97
329
|
type CrudAction = (RowAction | ToolbarAction) & {
|
|
330
|
+
description?: string;
|
|
98
331
|
openMode?: FormOpenMode;
|
|
99
332
|
route?: string;
|
|
100
333
|
formId?: string;
|
|
101
334
|
mode?: CrudActionResolutionMode;
|
|
335
|
+
/** Per-action modal/drawer presentation overrides merged ahead of metadata.defaults.modal. */
|
|
336
|
+
modal?: DialogConfig;
|
|
102
337
|
form?: CrudActionFormContract;
|
|
103
338
|
params?: CrudParamMapping[];
|
|
104
339
|
back?: BackConfig;
|
|
340
|
+
execution?: {
|
|
341
|
+
bulk?: ResourceBulkExecutionContract;
|
|
342
|
+
[key: string]: unknown;
|
|
343
|
+
};
|
|
105
344
|
};
|
|
106
345
|
interface CrudDefaults {
|
|
107
346
|
openMode?: FormOpenMode;
|
|
@@ -129,14 +368,31 @@ interface CrudFilterBarConfig {
|
|
|
129
368
|
/** Campos do DTO de filtro a exibir inline fixos na barra de ferramentas */
|
|
130
369
|
inlineFields?: string[];
|
|
131
370
|
/** Habilitar filtros rápidos (true adota do schema, ou array explícito) */
|
|
132
|
-
quickFilters?: boolean |
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
371
|
+
quickFilters?: boolean | CrudFilterBarQuickFilter[];
|
|
372
|
+
/**
|
|
373
|
+
* Quando `quickFilters` fornece itens explícitos (ex.: chips de escopo de atendimento),
|
|
374
|
+
* define se os `@QuickFilter` descobertos do schema do recurso devem ser mesclados após os itens explícitos.
|
|
375
|
+
*/
|
|
376
|
+
includeDiscoveredQuickFilters?: boolean;
|
|
138
377
|
/** Exibir botão para abrir o construtor de filtros avançados (padrão: true) */
|
|
139
378
|
showAdvanced?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* Define onde a barra de filtros inline e avançados (`<praxis-filter>`) deve ser exibida:
|
|
381
|
+
* - `'table-toolbar'` (padrão): na barra de ferramentas da tabela dinâmica.
|
|
382
|
+
* - `'scope-bar'`: teleportada para dentro do card `<praxis-scope-bar>` superior.
|
|
383
|
+
*/
|
|
384
|
+
placement?: 'table-toolbar' | 'scope-bar';
|
|
385
|
+
}
|
|
386
|
+
type CrudTableConfig = TableConfigInput;
|
|
387
|
+
interface CrudPageHeaderDomainConfig {
|
|
388
|
+
label: string;
|
|
389
|
+
icon?: string;
|
|
390
|
+
tone?: 'primary' | 'accent' | 'neutral' | 'warn' | 'info' | 'success' | 'warning' | 'danger' | string;
|
|
391
|
+
}
|
|
392
|
+
interface CrudPageHeaderConfig {
|
|
393
|
+
title?: string;
|
|
394
|
+
subtitle?: string;
|
|
395
|
+
domain?: CrudPageHeaderDomainConfig;
|
|
140
396
|
}
|
|
141
397
|
interface CrudMetadata {
|
|
142
398
|
component: 'praxis-crud';
|
|
@@ -146,17 +402,19 @@ interface CrudMetadata {
|
|
|
146
402
|
* fail-closed and only materializes local, non-operational inspection.
|
|
147
403
|
*/
|
|
148
404
|
interactionMode?: CrudInteractionMode;
|
|
405
|
+
pageHeader?: CrudPageHeaderConfig;
|
|
149
406
|
resource?: CrudResource;
|
|
150
407
|
data?: any[] | null;
|
|
151
|
-
table
|
|
408
|
+
table?: CrudTableConfig;
|
|
152
409
|
filterBar?: CrudFilterBarConfig;
|
|
153
|
-
/** Configuração declarativa da faixa de resumo executivo e KPIs (Issue #33) */
|
|
154
|
-
kpiBand?:
|
|
410
|
+
/** Configuração declarativa da faixa de resumo executivo e KPIs (Issue #33). Use `false` para desativar explicitamente a inferência automática via schema. */
|
|
411
|
+
kpiBand?: CrudKpiBandConfig | false;
|
|
155
412
|
queryContext?: PraxisDataQueryContext | null;
|
|
156
413
|
filterCriteria?: Record<string, unknown> | null;
|
|
157
414
|
form?: FormConfig;
|
|
158
415
|
defaults?: CrudDefaults;
|
|
159
416
|
actions?: CrudAction[];
|
|
417
|
+
customFieldsStudio?: PraxisCustomFieldsStudioConfig;
|
|
160
418
|
i18n?: {
|
|
161
419
|
crudDialog?: Record<string, string>;
|
|
162
420
|
};
|
|
@@ -173,6 +431,8 @@ interface CrudHeaderConfig {
|
|
|
173
431
|
interface CrudMetadataAssertionOptions {
|
|
174
432
|
allowDeferredActionBindings?: boolean;
|
|
175
433
|
}
|
|
434
|
+
/** An unbound action explicitly resolved through discovery on the declared resource. */
|
|
435
|
+
declare function isResourceDiscoveredCrudAction(action: CrudAction, metadata: CrudMetadata): boolean;
|
|
176
436
|
declare function assertCrudMetadata(meta: CrudMetadata, options?: CrudMetadataAssertionOptions): void;
|
|
177
437
|
|
|
178
438
|
interface CrudAuthoringDocument {
|
|
@@ -222,7 +482,9 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
222
482
|
get resource(): string | undefined;
|
|
223
483
|
componentInstanceId?: string;
|
|
224
484
|
/** Controls whether the CRUD's internal table trusts host input or stored user configuration. */
|
|
225
|
-
tableConfigPersistenceStrategy: TableConfigPersistenceStrategy;
|
|
485
|
+
tableConfigPersistenceStrategy: TableConfigPersistenceStrategy | 'storage-first';
|
|
486
|
+
/** Canonical persistence-strategy alias aligned with `@praxisui/core`. When set, takes precedence over `tableConfigPersistenceStrategy`. */
|
|
487
|
+
configPersistenceStrategy?: TableConfigPersistenceStrategy | 'storage-first';
|
|
226
488
|
context?: Record<string, unknown>;
|
|
227
489
|
enableCustomization: boolean;
|
|
228
490
|
/** Controls whether existing-record hosts expose the canonical identity key. */
|
|
@@ -231,14 +493,27 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
231
493
|
authoringCapability: string | null;
|
|
232
494
|
/** Critérios reativos de filtro aplicados à tabela interna (Issue #11) */
|
|
233
495
|
filterCriteria?: Record<string, unknown>;
|
|
496
|
+
/** Campos de filtro bloqueados por escopo pai/ambiente (mantidos na consulta sem chips removíveis). */
|
|
497
|
+
lockedFilterFields?: string[] | null;
|
|
498
|
+
/** Definições de schema opcionais pré-resolvidas para projeção reativa de `x-ui.contextBinding`. */
|
|
499
|
+
schemaFields?: FieldDefinition[] | null;
|
|
234
500
|
/** Habilita teleporte da barra de filtros para container externo (Issue #11) */
|
|
235
501
|
filterTeleport: boolean;
|
|
236
502
|
/** Desabilita auto-abertura da gaveta analítica no clique de linha (Issue #39) */
|
|
237
503
|
disableAutoDrawer: boolean;
|
|
504
|
+
/** Indica que um host superior (como PraxisResourcePage) já renderiza pageHeader e scopeBar */
|
|
505
|
+
hostManagedChrome: boolean;
|
|
506
|
+
private readonly tableSignal;
|
|
507
|
+
/** Signal reativo do TemplateRef de filtro da tabela interna (usado por PraxisFilterOutlet) */
|
|
508
|
+
readonly filterTemplateSignal: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
238
509
|
get filterTemplate(): TemplateRef<unknown> | undefined;
|
|
239
510
|
get internalTable(): PraxisTable | undefined;
|
|
240
511
|
openAnalyticalDrawer(row: any, tabId?: string): void;
|
|
241
512
|
closeAnalyticalDrawer(): void;
|
|
513
|
+
private canUseCustomFieldsStudio;
|
|
514
|
+
private resolveCustomFieldsStudioCatalogMode;
|
|
515
|
+
private invalidateRuntimeSchemasIfCatalog;
|
|
516
|
+
openCustomFieldsStudio(row?: Record<string, unknown>, forceAction?: 'create' | 'edit'): Promise<boolean>;
|
|
242
517
|
configureRequested: EventEmitter<void>;
|
|
243
518
|
afterOpen: EventEmitter<{
|
|
244
519
|
mode: FormOpenMode;
|
|
@@ -262,6 +537,8 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
262
537
|
pending: boolean;
|
|
263
538
|
}>;
|
|
264
539
|
reactiveDeterminationStabilityChange: EventEmitter<CrudReactiveDeterminationStabilityChange>;
|
|
540
|
+
/** Metadata-only step transition telemetry forwarded from an open Dynamic Form host. */
|
|
541
|
+
formStepTelemetry: EventEmitter<CrudFormStepTelemetryEvent>;
|
|
265
542
|
error: EventEmitter<unknown>;
|
|
266
543
|
rowClick: EventEmitter<RowClickEvent<DynamicDataRecord>>;
|
|
267
544
|
/** Emits the canonical table row-action envelope before the CRUD handles its surface/action. */
|
|
@@ -274,12 +551,29 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
274
551
|
drawerClose: EventEmitter<void>;
|
|
275
552
|
crudAuthoringDocumentApplied: EventEmitter<CrudAuthoringWidgetPersistenceEvent>;
|
|
276
553
|
crudAuthoringDocumentSaved: EventEmitter<CrudAuthoringWidgetPersistenceEvent>;
|
|
554
|
+
/** Emite sempre que os critérios de filtro ativos na tabela interna são alterados pelo usuário */
|
|
555
|
+
filterCriteriaChange: EventEmitter<Record<string, unknown>>;
|
|
556
|
+
/** Emite os filtros rápidos canônicos descobertos no schema x-ui.resource.quickFilters da tabela interna */
|
|
557
|
+
discoveredQuickFiltersChange: EventEmitter<NormalizedPraxisResourceQuickFilter[]>;
|
|
558
|
+
/** Emite os campos promovidos para filtro inline descobertos no schema de filtro da tabela interna */
|
|
559
|
+
discoveredInlineFilterFieldsChange: EventEmitter<string[]>;
|
|
277
560
|
/** Evento emitido ao clicar em um card da faixa declarativa de KPIs (Issue #33) */
|
|
278
561
|
kpiCardClick: EventEmitter<{
|
|
279
562
|
card: PraxisKpiBandCard;
|
|
280
563
|
index: number;
|
|
281
564
|
data: any;
|
|
282
565
|
}>;
|
|
566
|
+
get resolvedPageHeader(): NonNullable<CrudMetadata['pageHeader']> | null;
|
|
567
|
+
get resolvedStandaloneScopeBarItems(): PraxisScopeBarItem[] | null;
|
|
568
|
+
/**
|
|
569
|
+
* O CRUD (ou o `praxis-resource-page` que o hospeda) é dono do escopo padrão dos filtros rápidos
|
|
570
|
+
* quando eles são exibidos no scope-bar; no modo `table-toolbar` a própria tabela aplica o padrão.
|
|
571
|
+
*/
|
|
572
|
+
get ownsDefaultQuickFilter(): boolean;
|
|
573
|
+
get activeStandaloneScopeId(): string;
|
|
574
|
+
onStandaloneScopeChange(item: PraxisScopeBarItem): void;
|
|
575
|
+
onStandaloneScopeClear(): void;
|
|
576
|
+
private readonly autoSchemaKpiBandConfig;
|
|
283
577
|
get resolvedKpiBandConfig(): PraxisKpiBandConfig | null;
|
|
284
578
|
get isKpiInteractiveHost(): boolean;
|
|
285
579
|
get kpiDataContext(): Record<string, any>;
|
|
@@ -293,6 +587,7 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
293
587
|
tableConfigForBinding: TableConfig;
|
|
294
588
|
tableQueryContext: Record<string, unknown> | null;
|
|
295
589
|
tableFilterCriteria: Record<string, unknown>;
|
|
590
|
+
private isClearingFilterCriteria;
|
|
296
591
|
tableCrudContext?: CrudContextValue;
|
|
297
592
|
readonly openingActionLabel: _angular_core.WritableSignal<string | null>;
|
|
298
593
|
private readonly launcher;
|
|
@@ -300,12 +595,22 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
300
595
|
private readonly destroyRef;
|
|
301
596
|
private readonly cdr;
|
|
302
597
|
private readonly widgetEventBus;
|
|
303
|
-
private
|
|
598
|
+
private kpiBand?;
|
|
599
|
+
private _table?;
|
|
600
|
+
private set table(value);
|
|
601
|
+
private get table();
|
|
304
602
|
private readonly storage;
|
|
305
603
|
private readonly settingsPanel;
|
|
604
|
+
private latestRuntimeAuthorities;
|
|
306
605
|
private readonly enterpriseRuntimeContext;
|
|
606
|
+
private readonly workspaceQueryContext;
|
|
607
|
+
private readonly contextFilterProjector;
|
|
608
|
+
private readonly schemaNormalizer;
|
|
609
|
+
private readonly apiUrl;
|
|
307
610
|
private readonly snack;
|
|
308
611
|
private readonly dialog;
|
|
612
|
+
private readonly dynamicFormService;
|
|
613
|
+
private readonly cacheInvalidator;
|
|
309
614
|
private readonly i18n;
|
|
310
615
|
private readonly logger;
|
|
311
616
|
private readonly injector;
|
|
@@ -319,6 +624,7 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
319
624
|
private readonly surfaceOutlets;
|
|
320
625
|
private readonly componentKeys;
|
|
321
626
|
private readonly route;
|
|
627
|
+
private duplicateDraftController?;
|
|
322
628
|
private warnedMissingId;
|
|
323
629
|
private lastEmittedTableRuntimeConfigJson;
|
|
324
630
|
private lastTableRuntimeConfigSnapshot;
|
|
@@ -326,8 +632,19 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
326
632
|
private lastAssignedTableCrudContextJson;
|
|
327
633
|
private lastAppliedResourceIdentity;
|
|
328
634
|
private tableCollectionLinks;
|
|
329
|
-
|
|
635
|
+
protected collectionCapabilities: ResourceCapabilitySnapshot | null;
|
|
636
|
+
protected discoveredSchemaQuickFilters: NormalizedPraxisResourceQuickFilter[];
|
|
637
|
+
protected discoveredInlineFilterFields: string[];
|
|
638
|
+
private discoveredSchemaFields;
|
|
639
|
+
protected discoveredSchemaMetadata: Record<string, unknown> | null;
|
|
640
|
+
protected discoveredResourceFacts: Array<DomainCatalogResourceFactMetadata | Record<string, unknown>>;
|
|
641
|
+
private loadedSchemaResourcePath;
|
|
642
|
+
private schemaFetchSub?;
|
|
643
|
+
private workspaceProjectedFilterKeys;
|
|
644
|
+
private lastWorkspaceSnapshotSignature;
|
|
645
|
+
effectiveLockedFilterFields: string[];
|
|
330
646
|
private activeAuthoringPanelRef;
|
|
647
|
+
private hydratedAuthoringKeyId;
|
|
331
648
|
constructor();
|
|
332
649
|
private collectionCapabilitiesRequestHref;
|
|
333
650
|
private collectionCapabilitiesResolvedHref;
|
|
@@ -339,13 +656,18 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
339
656
|
private getResourceDiscovery;
|
|
340
657
|
private getActionOpenAdapter;
|
|
341
658
|
private getSurfaceOpenAdapter;
|
|
342
|
-
onResetPreferences(): void
|
|
659
|
+
onResetPreferences(): Promise<void>;
|
|
343
660
|
onTableRowClick(event: RowClickEvent<DynamicDataRecord>): void;
|
|
344
661
|
onTableSelectionChange(event: unknown): void;
|
|
345
662
|
onTableResourceEvent(event: PraxisResourceEvent<unknown>): void;
|
|
346
663
|
onTableDrawerOpen(event: DrawerOpenEvent<DynamicDataRecord>): void;
|
|
347
664
|
onTableDrawerClose(): void;
|
|
348
|
-
onBulkAction(event:
|
|
665
|
+
onBulkAction(event: any): Promise<void>;
|
|
666
|
+
private handleBulkDialogResult;
|
|
667
|
+
private handleBulkExecutionCompleted;
|
|
668
|
+
private resolveBulkTargetsFromRows;
|
|
669
|
+
private resolveSyncBulkExecutionContractForAction;
|
|
670
|
+
private resolveAsyncDiscoveredBulkContractForAction;
|
|
349
671
|
onToolbarAction(event: CrudActionRuntimeEvent): Promise<void>;
|
|
350
672
|
ngOnChanges(changes: SimpleChanges): void;
|
|
351
673
|
onAction(action: string, row?: Record<string, unknown>, runtimeEvent?: CrudActionRuntimeEvent): Promise<void>;
|
|
@@ -354,6 +676,9 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
354
676
|
private resolveOpeningActionLabel;
|
|
355
677
|
private hasExplicitOpenBinding;
|
|
356
678
|
getCurrentTableConfigSnapshot(): TableConfig | null;
|
|
679
|
+
getMaterializedInputSnapshot(_inputNames: readonly string[]): Record<string, unknown>;
|
|
680
|
+
private cloneResolvedMetadataSnapshot;
|
|
681
|
+
private buildMaterializedEffectiveTableConfigSnapshot;
|
|
357
682
|
onTableConfigChange(config: TableConfig): void;
|
|
358
683
|
onTableMetadataChange(): void;
|
|
359
684
|
onTableLoadingStateChange(state: LoadingState): void;
|
|
@@ -365,8 +690,9 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
365
690
|
getEmptyStateTitle(): string;
|
|
366
691
|
getEmptyStateDescription(): string;
|
|
367
692
|
getEmptyStatePrimaryAction(): string;
|
|
368
|
-
onConfigureRequested()
|
|
693
|
+
readonly onConfigureRequested: () => void;
|
|
369
694
|
private tryHandleCanonicalDeleteAction;
|
|
695
|
+
private hasDiscoveredDeleteSurfaceOrWorkflow;
|
|
370
696
|
private tryHandleCanonicalDuplicateDraftAction;
|
|
371
697
|
private refreshTable;
|
|
372
698
|
private resolveSurfaceRuntime;
|
|
@@ -384,14 +710,34 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
384
710
|
private syncRuntimeBindings;
|
|
385
711
|
private resolveQueryContext;
|
|
386
712
|
private resolveFilterCriteria;
|
|
713
|
+
/**
|
|
714
|
+
* Critério inicial da tabela: critérios base + escopo padrão local
|
|
715
|
+
* (`filterBar.quickFilters[].isDefault`) no modo scope-bar standalone, aplicado já na primeira busca.
|
|
716
|
+
* O `praxis-resource-page` (hostManagedChrome) injeta o padrão via `filterCriteria`.
|
|
717
|
+
*/
|
|
718
|
+
private resolveInitialFilterCriteria;
|
|
719
|
+
private areFilterCriteriaEquivalent;
|
|
720
|
+
onTableFilterCriteriaChange(criteria: Record<string, unknown>): void;
|
|
721
|
+
private mergeExplicitAndDiscoveredQuickFilters;
|
|
722
|
+
onTableDiscoveredQuickFiltersChange(items: NormalizedPraxisResourceQuickFilter[]): void;
|
|
723
|
+
onTableDiscoveredResourceFactsChange(facts: Array<DomainCatalogResourceFactMetadata | Record<string, unknown>>): void;
|
|
724
|
+
onTableDiscoveredInlineFilterFieldsChange(fields: string[]): void;
|
|
387
725
|
/**
|
|
388
726
|
* Aplica critérios de busca avançada na tabela interna do CRUD (Issue #11).
|
|
389
727
|
*/
|
|
390
728
|
applyFilterCriteria(criteria?: Record<string, unknown>): void;
|
|
391
729
|
/**
|
|
392
730
|
* Limpa os filtros ativos na tabela interna do CRUD (Issue #11).
|
|
731
|
+
* Campos bloqueados por escopo ambiental/pai permanecem preservados na consulta.
|
|
393
732
|
*/
|
|
394
733
|
clearFilterCriteria(): void;
|
|
734
|
+
private getEffectiveBindableFields;
|
|
735
|
+
private recomputeLockedFilterFields;
|
|
736
|
+
private computeWorkspaceContextProjection;
|
|
737
|
+
private onWorkspaceQueryContextChanged;
|
|
738
|
+
private reapplyWorkspaceProjection;
|
|
739
|
+
private resolveSchemasFilteredEndpointUrl;
|
|
740
|
+
private maybeLoadSchemaContract;
|
|
395
741
|
private extractRowFromEvent;
|
|
396
742
|
private extractSelectedRowFromEvent;
|
|
397
743
|
private extractSelectedRowFromBulkAction;
|
|
@@ -435,7 +781,15 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
435
781
|
private buildTableCrudContext;
|
|
436
782
|
private readonly openCrudAuthoringFromTable;
|
|
437
783
|
isCustomizationAvailable(): boolean;
|
|
784
|
+
private tryHydrateStoredAuthoringDocument;
|
|
438
785
|
private applyCrudAuthoringPayload;
|
|
786
|
+
private originalHostAuthoringSnapshot;
|
|
787
|
+
private captureAuthoringStateSnapshot;
|
|
788
|
+
private restoreAuthoringStateSnapshot;
|
|
789
|
+
private awaitStorageOperation;
|
|
790
|
+
private persistAuthoringDocumentToStorage;
|
|
791
|
+
private clearCrudStorageKeys;
|
|
792
|
+
private reportPersistenceFailure;
|
|
439
793
|
private buildWidgetPersistencePayload;
|
|
440
794
|
private resolveCreateToolbarAction;
|
|
441
795
|
private resolveContextCrudActions;
|
|
@@ -444,6 +798,7 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
444
798
|
private emitInspectOnlyDiagnostics;
|
|
445
799
|
private resolveCollectionWorkflowCrudActions;
|
|
446
800
|
private resolveCollectionWorkflowToolbarActions;
|
|
801
|
+
private resolveDiscoveredBulkTableActions;
|
|
447
802
|
private supportsCreateCapability;
|
|
448
803
|
private supportsViewCapability;
|
|
449
804
|
private supportsEditCapability;
|
|
@@ -451,9 +806,13 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
451
806
|
private supportsFilterCapability;
|
|
452
807
|
private resolveOperationAvailability;
|
|
453
808
|
private isCatalogActionAvailable;
|
|
809
|
+
private isCollectionDuplicateDraftAvailable;
|
|
454
810
|
private hasCanonicalOperation;
|
|
455
811
|
private resolveCollectionCapabilitiesHref;
|
|
456
812
|
private resolveCrudResourceIdentity;
|
|
813
|
+
private normalizeComparableResourcePath;
|
|
814
|
+
private isTableComponentCompatibleWithResource;
|
|
815
|
+
private isTableSnapshotCompatibleWithResource;
|
|
457
816
|
private buildDiscoveryOptions;
|
|
458
817
|
private resolveDiscoveryApiEntry;
|
|
459
818
|
private resolveCrudRuntimeLinks;
|
|
@@ -467,9 +826,10 @@ declare class PraxisCrudComponent implements OnChanges {
|
|
|
467
826
|
private txWithParams;
|
|
468
827
|
private interpolateTranslationParams;
|
|
469
828
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCrudComponent, never>;
|
|
470
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCrudComponent, "praxis-crud", never, { "metadata": { "alias": "metadata"; "required": false; }; "crudId": { "alias": "crudId"; "required": false; }; "resource": { "alias": "resource"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "tableConfigPersistenceStrategy": { "alias": "tableConfigPersistenceStrategy"; "required": false; }; "context": { "alias": "context"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showResourceIdentityKey": { "alias": "showResourceIdentityKey"; "required": false; }; "authoringCapability": { "alias": "authoringCapability"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "filterTeleport": { "alias": "filterTeleport"; "required": false; }; "disableAutoDrawer": { "alias": "disableAutoDrawer"; "required": false; }; }, { "configureRequested": "configureRequested"; "afterOpen": "afterOpen"; "afterClose": "afterClose"; "afterSave": "afterSave"; "afterDelete": "afterDelete"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "reactiveDeterminationStabilityChange": "reactiveDeterminationStabilityChange"; "error": "error"; "rowClick": "rowClick"; "rowAction": "rowAction"; "selectionChange": "selectionChange"; "resourceEvent": "resourceEvent"; "tableRuntimeConfigChange": "tableRuntimeConfigChange"; "drawerOpen": "drawerOpen"; "drawerClose": "drawerClose"; "crudAuthoringDocumentApplied": "crudAuthoringDocumentApplied"; "crudAuthoringDocumentSaved": "crudAuthoringDocumentSaved"; "kpiCardClick": "kpiCardClick"; }, never, never, true, never>;
|
|
829
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCrudComponent, "praxis-crud", never, { "metadata": { "alias": "metadata"; "required": false; }; "crudId": { "alias": "crudId"; "required": false; }; "resource": { "alias": "resource"; "required": false; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "tableConfigPersistenceStrategy": { "alias": "tableConfigPersistenceStrategy"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "context": { "alias": "context"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "showResourceIdentityKey": { "alias": "showResourceIdentityKey"; "required": false; }; "authoringCapability": { "alias": "authoringCapability"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "lockedFilterFields": { "alias": "lockedFilterFields"; "required": false; }; "schemaFields": { "alias": "schemaFields"; "required": false; }; "filterTeleport": { "alias": "filterTeleport"; "required": false; }; "disableAutoDrawer": { "alias": "disableAutoDrawer"; "required": false; }; "hostManagedChrome": { "alias": "hostManagedChrome"; "required": false; }; }, { "configureRequested": "configureRequested"; "afterOpen": "afterOpen"; "afterClose": "afterClose"; "afterSave": "afterSave"; "afterDelete": "afterDelete"; "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "reactiveDeterminationStabilityChange": "reactiveDeterminationStabilityChange"; "formStepTelemetry": "formStepTelemetry"; "error": "error"; "rowClick": "rowClick"; "rowAction": "rowAction"; "selectionChange": "selectionChange"; "resourceEvent": "resourceEvent"; "tableRuntimeConfigChange": "tableRuntimeConfigChange"; "drawerOpen": "drawerOpen"; "drawerClose": "drawerClose"; "crudAuthoringDocumentApplied": "crudAuthoringDocumentApplied"; "crudAuthoringDocumentSaved": "crudAuthoringDocumentSaved"; "filterCriteriaChange": "filterCriteriaChange"; "discoveredQuickFiltersChange": "discoveredQuickFiltersChange"; "discoveredInlineFilterFieldsChange": "discoveredInlineFilterFieldsChange"; "kpiCardClick": "kpiCardClick"; }, never, never, true, never>;
|
|
471
830
|
static ngAcceptInputType_filterTeleport: unknown;
|
|
472
831
|
static ngAcceptInputType_disableAutoDrawer: unknown;
|
|
832
|
+
static ngAcceptInputType_hostManagedChrome: unknown;
|
|
473
833
|
}
|
|
474
834
|
|
|
475
835
|
type CrudDrawerResultType = 'save' | 'delete' | 'close';
|
|
@@ -478,6 +838,8 @@ interface CrudDrawerResult {
|
|
|
478
838
|
data?: Record<string, unknown>;
|
|
479
839
|
}
|
|
480
840
|
interface CrudDrawerOpenConfig {
|
|
841
|
+
/** Transient launch cancellation. Check after async work and close owned UI on abort. Never persist. */
|
|
842
|
+
signal?: AbortSignal;
|
|
481
843
|
action: CrudAction;
|
|
482
844
|
metadata: CrudMetadata;
|
|
483
845
|
inputs: Record<string, unknown>;
|
|
@@ -487,6 +849,8 @@ interface CrudDrawerOpenConfig {
|
|
|
487
849
|
showResourceIdentityKey?: boolean;
|
|
488
850
|
/** Read-only task scope for related operations. It is never part of form inputs or submit payloads. */
|
|
489
851
|
contextIdentity?: MaterializedResourceIdentity | null;
|
|
852
|
+
/** Whether layout customization controls are enabled inside the opened drawer host. */
|
|
853
|
+
enableCustomization?: boolean;
|
|
490
854
|
/**
|
|
491
855
|
* Ephemeral focus policy resolved for this opening. A host adapter must
|
|
492
856
|
* forward it to its native overlay and must never persist, clone, or put it
|
|
@@ -510,9 +874,13 @@ interface CrudDrawerOpenConfig {
|
|
|
510
874
|
onReactiveDeterminationPendingChange?: (pending: boolean) => void;
|
|
511
875
|
/** Report aggregate settled-success/settled-unsatisfied state without form values. */
|
|
512
876
|
onReactiveDeterminationStabilityChange?: (stability: CrudFormReactiveDeterminationStabilityChange) => void;
|
|
877
|
+
/** Bind to the child Dynamic Form metadata-only step transition telemetry event. */
|
|
878
|
+
onStepTelemetry?: (event: FormStepTelemetryEvent) => void;
|
|
513
879
|
}
|
|
514
880
|
|
|
515
881
|
interface CrudLaunchRuntime {
|
|
882
|
+
/** Transient cancellation of the caller's pending launch; never authored or persisted. */
|
|
883
|
+
signal?: AbortSignal;
|
|
516
884
|
/** Caller injector retained only for the detached dialog component tree. */
|
|
517
885
|
injector?: Injector;
|
|
518
886
|
capabilities?: ResourceCapabilitySnapshot | null;
|
|
@@ -521,6 +889,10 @@ interface CrudLaunchRuntime {
|
|
|
521
889
|
contextIdentity?: MaterializedResourceIdentity | null;
|
|
522
890
|
/** Presentation-only preference for the existing-record identity key. */
|
|
523
891
|
showResourceIdentityKey?: boolean;
|
|
892
|
+
/** Whether layout customization is enabled for the launched form host. */
|
|
893
|
+
enableCustomization?: boolean;
|
|
894
|
+
/** Canonical config persistence strategy forwarded to the launched form host. */
|
|
895
|
+
configPersistenceStrategy?: PraxisLegacyConfigPersistenceStrategy;
|
|
524
896
|
/** Active runtime drawer session. It is never persisted in CRUD metadata. */
|
|
525
897
|
surfaceRuntime?: SurfaceDrawerRef | null;
|
|
526
898
|
/** Stable runtime trigger for restoring focus after a form overlay closes. */
|
|
@@ -528,10 +900,12 @@ interface CrudLaunchRuntime {
|
|
|
528
900
|
}
|
|
529
901
|
declare class CrudLauncherService {
|
|
530
902
|
private readonly router;
|
|
903
|
+
private readonly routeHandoff;
|
|
531
904
|
private readonly dialog;
|
|
532
905
|
private readonly storage;
|
|
533
906
|
private readonly global;
|
|
534
907
|
private readonly operationResolver;
|
|
908
|
+
private readonly componentKeys;
|
|
535
909
|
private readonly logger;
|
|
536
910
|
private dialogHostPromise?;
|
|
537
911
|
private nextSurfaceFrameId;
|
|
@@ -542,6 +916,7 @@ declare class CrudLauncherService {
|
|
|
542
916
|
onReactiveDetermination?: CrudDrawerOpenConfig['onReactiveDetermination'];
|
|
543
917
|
onReactiveDeterminationPendingChange?: CrudDrawerOpenConfig['onReactiveDeterminationPendingChange'];
|
|
544
918
|
onReactiveDeterminationStabilityChange?: CrudDrawerOpenConfig['onReactiveDeterminationStabilityChange'];
|
|
919
|
+
onStepTelemetry?: CrudDrawerOpenConfig['onStepTelemetry'];
|
|
545
920
|
}, runtime?: CrudLaunchRuntime): Promise<{
|
|
546
921
|
mode: FormOpenMode;
|
|
547
922
|
ref?: DialogRef<any>;
|
|
@@ -567,6 +942,7 @@ declare class CrudLauncherService {
|
|
|
567
942
|
};
|
|
568
943
|
private buildInferredFormId;
|
|
569
944
|
private isCanonicalCrudAction;
|
|
945
|
+
private toResourceCrudOperation;
|
|
570
946
|
private normalizeActionForLaunch;
|
|
571
947
|
private normalizeCrudOperationName;
|
|
572
948
|
private isExplicitCrudAction;
|
|
@@ -575,23 +951,38 @@ declare class CrudLauncherService {
|
|
|
575
951
|
private resolveSurfaceFrameTitle;
|
|
576
952
|
private resolveSurfaceFrameSubtitle;
|
|
577
953
|
private bindSurfaceFrameLifecycle;
|
|
954
|
+
private resolveFallbackComponentKeyId;
|
|
955
|
+
private collectStoredFormCandidateKeys;
|
|
956
|
+
private loadStoredActionFormConfig;
|
|
957
|
+
private probeStoredActionFormKeys;
|
|
578
958
|
private mergeCrudOverrides;
|
|
579
959
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CrudLauncherService, never>;
|
|
580
960
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<CrudLauncherService>;
|
|
581
961
|
}
|
|
582
962
|
|
|
963
|
+
/**
|
|
964
|
+
* Registers a single-use seeded create destination, including its dirty-exit guard.
|
|
965
|
+
* Reload/back without a new launcher handoff renders an unavailable state, never an empty copy.
|
|
966
|
+
* Do not cache this route in a custom RouteReuseStrategy.
|
|
967
|
+
*/
|
|
968
|
+
declare function createCrudFormRoute(target: {
|
|
969
|
+
path: string;
|
|
970
|
+
formId: string;
|
|
971
|
+
resourcePath: string;
|
|
972
|
+
}): Route;
|
|
973
|
+
|
|
583
974
|
declare class DynamicFormDialogHostComponent implements OnInit, AfterViewInit {
|
|
584
975
|
dialogRef: DialogRef<DynamicFormDialogHostComponent> | null;
|
|
585
976
|
private dialogService;
|
|
586
977
|
private crud;
|
|
587
978
|
private configStorage;
|
|
588
|
-
private readonly surfaceRef;
|
|
589
979
|
formComp?: PraxisDynamicForm;
|
|
590
980
|
reactiveDeterminationExecuted: EventEmitter<ReactiveDeterminationExecutionEvent>;
|
|
591
981
|
reactiveDeterminationPendingChange: EventEmitter<boolean>;
|
|
592
982
|
reactiveDeterminationStabilityChange: EventEmitter<CrudFormReactiveDeterminationStabilityChange>;
|
|
983
|
+
stepTelemetry: EventEmitter<FormStepTelemetryEvent>;
|
|
593
984
|
modal: any;
|
|
594
|
-
presentation: 'modal' | 'drawer' | 'surface-frame';
|
|
985
|
+
presentation: 'modal' | 'drawer' | 'surface-frame' | 'route';
|
|
595
986
|
maximized: boolean;
|
|
596
987
|
private initialSize;
|
|
597
988
|
private readonly initialPosition?;
|
|
@@ -599,33 +990,60 @@ declare class DynamicFormDialogHostComponent implements OnInit, AfterViewInit {
|
|
|
599
990
|
private stateKey?;
|
|
600
991
|
private backDefaults;
|
|
601
992
|
private terminalClose;
|
|
993
|
+
private cancelPending;
|
|
994
|
+
private cancelWaitPending;
|
|
995
|
+
private readonly element;
|
|
602
996
|
private destroyRef;
|
|
603
997
|
private readonly i18n;
|
|
998
|
+
private readonly customizationMode;
|
|
999
|
+
private readonly componentKeys;
|
|
1000
|
+
private readonly logger;
|
|
604
1001
|
private reactiveDeterminationStabilitySignature;
|
|
605
1002
|
resourcePath?: string;
|
|
606
1003
|
resourceId?: string | number;
|
|
607
1004
|
initialValue?: Record<string, unknown> | null;
|
|
1005
|
+
overlayInitialValueOnEdit: boolean;
|
|
608
1006
|
resourceIdentity: MaterializedResourceIdentity | null;
|
|
609
1007
|
contextIdentity: MaterializedResourceIdentity | null;
|
|
610
1008
|
showResourceIdentityKey: boolean;
|
|
611
1009
|
schemaUrl?: string | null;
|
|
1010
|
+
readUrl?: string | null;
|
|
612
1011
|
submitUrl?: string | null;
|
|
613
1012
|
submitMethod?: string | null;
|
|
1013
|
+
submitIdempotencyKey?: string | null;
|
|
1014
|
+
submitCorrelationId?: string | null;
|
|
1015
|
+
submitResourceVersion?: string | number | null;
|
|
1016
|
+
submitResourceVersionTargetResourceKey?: string | null;
|
|
1017
|
+
submitResourceVersionTargetIdField?: string | null;
|
|
614
1018
|
apiEndpointKey?: ApiEndpoint | string | null;
|
|
615
1019
|
apiUrlEntry?: ApiUrlEntry | null;
|
|
616
1020
|
layoutPolicy?: DynamicFormLayoutPolicy | null;
|
|
1021
|
+
presentationModeGlobal: boolean | null;
|
|
1022
|
+
presentationPreset?: FormPresentationPreset;
|
|
1023
|
+
formPresentation?: FormPresentationConfig | null;
|
|
617
1024
|
formConfig: FormConfig;
|
|
1025
|
+
private readonly baseFormConfig;
|
|
1026
|
+
protected readonly hydratingStoredFormConfig: _angular_core.WritableSignal<boolean>;
|
|
1027
|
+
effectiveFormLayout?: FormConfig['layout'];
|
|
618
1028
|
formActions?: FormConfig['actions'];
|
|
619
|
-
readonly formConfigPersistenceStrategy
|
|
1029
|
+
readonly formConfigPersistenceStrategy: PraxisConfigPersistenceStrategy;
|
|
620
1030
|
readonly fieldIconPolicy = "presentation-only";
|
|
621
|
-
|
|
1031
|
+
showAiAssistant: boolean;
|
|
1032
|
+
mode: 'create' | 'edit' | 'view' | 'presentation' | 'dossier';
|
|
622
1033
|
backConfig?: BackConfig;
|
|
623
1034
|
private idField;
|
|
624
1035
|
readonly isSurfaceFrame: boolean;
|
|
625
1036
|
readonly data: any;
|
|
1037
|
+
get effectiveEnableCustomization(): boolean;
|
|
1038
|
+
get drawerEdge(): 'left' | 'right' | null;
|
|
626
1039
|
texts: Record<string, string>;
|
|
627
|
-
|
|
1040
|
+
private readonly surfaceRef;
|
|
1041
|
+
constructor(dialogRef: DialogRef<DynamicFormDialogHostComponent> | null, dialogData: any, dialogService: DialogService, crud: GenericCrudService<any>, configStorage: AsyncConfigStorage, injectedSurfaceRef?: SurfaceDrawerRef | null, surfaceContentData?: Readonly<Record<string, unknown>> | null);
|
|
1042
|
+
private get isReadOnlyMode();
|
|
628
1043
|
get resourceIdentityLabel(): string;
|
|
1044
|
+
get aiAssistantLabel(): string;
|
|
1045
|
+
get aiAssistantTooltip(): string;
|
|
1046
|
+
openFormAiAssistant(): void;
|
|
629
1047
|
get showContextIdentity(): boolean;
|
|
630
1048
|
private sameIdentity;
|
|
631
1049
|
private identityLabel;
|
|
@@ -638,25 +1056,39 @@ declare class DynamicFormDialogHostComponent implements OnInit, AfterViewInit {
|
|
|
638
1056
|
private resolveResourceTitle;
|
|
639
1057
|
private resolveFormActions;
|
|
640
1058
|
private resolveLayoutPolicy;
|
|
1059
|
+
private resolveMode;
|
|
1060
|
+
private resolvePresentationModeGlobal;
|
|
1061
|
+
private resolvePresentationPreset;
|
|
1062
|
+
private resolveFormPresentation;
|
|
641
1063
|
private resolveSubmitLabel;
|
|
642
1064
|
ngOnInit(): void;
|
|
1065
|
+
private hasHostRenderableFormConfig;
|
|
1066
|
+
private isStoredUserLocalFormConfig;
|
|
1067
|
+
private resolveCurrentModeStorageKeys;
|
|
1068
|
+
private applyHydratedLocalFormConfig;
|
|
1069
|
+
private hydrateStoredLocalFormConfig;
|
|
643
1070
|
ngAfterViewInit(): void;
|
|
644
1071
|
onSave(result: unknown): void;
|
|
645
1072
|
onCancel(): void;
|
|
1073
|
+
onFormConfigChange(nextConfig: FormConfig): void;
|
|
646
1074
|
onReactiveDeterminationExecuted(event: ReactiveDeterminationExecutionEvent): void;
|
|
647
1075
|
onReactiveDeterminationPendingChange(pending: boolean): void;
|
|
1076
|
+
onStepTelemetry(event: FormStepTelemetryEvent): void;
|
|
1077
|
+
private hasActiveSessionDraftPersistence;
|
|
1078
|
+
private buildLeaveConfirmDialogData;
|
|
648
1079
|
private emitReactiveDeterminationStability;
|
|
649
1080
|
private continueCancel;
|
|
650
|
-
|
|
1081
|
+
canLeaveForm(): Promise<boolean>;
|
|
651
1082
|
toggleMaximize(initial?: boolean): void;
|
|
652
1083
|
private resolveOverlayPane;
|
|
1084
|
+
private syncPanePresentationClasses;
|
|
653
1085
|
private captureRenderedInitialSize;
|
|
654
1086
|
private saveState;
|
|
655
1087
|
private applySavedState;
|
|
656
1088
|
private updateHostPosition;
|
|
657
1089
|
private resolveMaximizedDrawerPosition;
|
|
658
1090
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFormDialogHostComponent, [{ optional: true; }, { optional: true; }, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
659
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormDialogHostComponent, "praxis-dynamic-form-dialog-host", never, {}, { "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "reactiveDeterminationStabilityChange": "reactiveDeterminationStabilityChange"; }, never, never, true, never>;
|
|
1091
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormDialogHostComponent, "praxis-dynamic-form-dialog-host", never, {}, { "reactiveDeterminationExecuted": "reactiveDeterminationExecuted"; "reactiveDeterminationPendingChange": "reactiveDeterminationPendingChange"; "reactiveDeterminationStabilityChange": "reactiveDeterminationStabilityChange"; "stepTelemetry": "stepTelemetry"; }, never, never, true, never>;
|
|
660
1092
|
}
|
|
661
1093
|
|
|
662
1094
|
/** Metadata for PraxisCrudComponent */
|
|
@@ -717,9 +1149,12 @@ declare function findCrudAction(actions: CrudMetadata['actions'], actionName: st
|
|
|
717
1149
|
type CrudEditorActionKey = 'create' | 'view' | 'edit';
|
|
718
1150
|
type CrudEditorActionGroupKey = 'binding' | 'schema' | 'submit' | 'api';
|
|
719
1151
|
type CrudEditorParamTarget = CrudParamMapping['to'];
|
|
720
|
-
type CrudEditorSectionKey = 'connection' | 'defaults' | 'actions' | 'table';
|
|
1152
|
+
type CrudEditorSectionKey = 'connection' | 'defaults' | 'actions' | 'kpis' | 'filters' | 'table';
|
|
721
1153
|
type CrudEditorSectionStatus = 'ready' | 'pending' | 'invalid';
|
|
722
1154
|
type CrudEditorHealthBucket = 'ready' | 'pending' | 'invalid';
|
|
1155
|
+
type CrudEditorKpiFilterMode = 'none' | 'clear' | 'condition';
|
|
1156
|
+
type CrudEditorQuickFilterMode = 'inherit' | 'disabled' | 'custom';
|
|
1157
|
+
type CrudEditorQuickConditionMode = 'clear' | 'fieldEquals' | 'expression';
|
|
723
1158
|
type CrudEditorDiagnosticIssue = ReturnType<typeof validateCrudAuthoringDocument>[number];
|
|
724
1159
|
type CrudEditorPayload = {
|
|
725
1160
|
document: CrudAuthoringDocument;
|
|
@@ -732,25 +1167,69 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
732
1167
|
readonly metadataInput: _angular_core.InputSignal<CrudMetadata | null>;
|
|
733
1168
|
readonly crudIdInput: _angular_core.InputSignal<string | null>;
|
|
734
1169
|
readonly readonlyInput: _angular_core.InputSignal<boolean>;
|
|
1170
|
+
readonly effectiveTableConfigInput: _angular_core.InputSignal<_praxisui_core.TableConfigModern | null>;
|
|
735
1171
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
736
1172
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
737
1173
|
readonly isBusy$: BehaviorSubject<boolean>;
|
|
738
1174
|
readonly actionKeys: CrudEditorActionKey[];
|
|
1175
|
+
readonly sectionKeys: CrudEditorSectionKey[];
|
|
739
1176
|
readonly healthBuckets: CrudEditorHealthBucket[];
|
|
740
1177
|
readonly openModes: FormOpenMode[];
|
|
741
1178
|
readonly headerVariants: readonly ["ghost", "tonal", "outlined"];
|
|
742
1179
|
readonly submitMethods: readonly ["post", "put", "patch"];
|
|
743
1180
|
readonly modalDensities: readonly ["default", "compact"];
|
|
744
1181
|
readonly backStrategies: readonly ["auto", "close", "navigate"];
|
|
745
|
-
readonly paramTargets: ("
|
|
1182
|
+
readonly paramTargets: ("input" | "routeParam" | "query")[];
|
|
1183
|
+
readonly kpiVariants: CrudKpiCardVariant[];
|
|
1184
|
+
readonly kpiFilterModes: CrudEditorKpiFilterMode[];
|
|
1185
|
+
readonly kpiExpressionChips: readonly ["${totalCount}", "${totalElements}", "${byKey.ATIVO}", "| number", "| round:1", "| currency:'BRL'", "| percent:1", "| default:0"];
|
|
1186
|
+
readonly quickFilterModes: CrudEditorQuickFilterMode[];
|
|
1187
|
+
readonly quickConditionModes: CrudEditorQuickConditionMode[];
|
|
1188
|
+
readonly domainTones: readonly ["primary", "accent", "info", "success", "warning", "danger", "neutral"];
|
|
1189
|
+
readonly selectedTabIndex: _angular_core.WritableSignal<number>;
|
|
1190
|
+
readonly inlineFieldDraft: _angular_core.WritableSignal<string>;
|
|
746
1191
|
private readonly initialValueDrafts;
|
|
1192
|
+
private readonly userExpandedActionPanels;
|
|
1193
|
+
private readonly kpiFilterJsonDrafts;
|
|
1194
|
+
private readonly quickFilterExpressionDrafts;
|
|
1195
|
+
private readonly pendingDomainDraft;
|
|
1196
|
+
private readonly schemaResolvedColumnsSignal;
|
|
1197
|
+
private readonly schemaResolvedFieldMetadataSignal;
|
|
1198
|
+
private readonly schemaResolvedFilterFieldMetadataSignal;
|
|
1199
|
+
private readonly schemaResolvedResponseFieldsSignal;
|
|
1200
|
+
private readonly schemaResolvedFilterFieldsSignal;
|
|
1201
|
+
private readonly schemaFieldOptionsByNameSignal;
|
|
1202
|
+
private readonly hasExplicitFilterSchemaSignal;
|
|
1203
|
+
private readonly catalogDiscoveredResourcesSignal;
|
|
1204
|
+
private readonly catalogResourcesByScopeSignal;
|
|
1205
|
+
private readonly selectedCatalogResourceSignal;
|
|
1206
|
+
private readonly destroyRef;
|
|
1207
|
+
private readonly hostRef;
|
|
1208
|
+
private readonly crudService;
|
|
1209
|
+
private readonly resourceDiscovery;
|
|
1210
|
+
private readonly globalConfig;
|
|
1211
|
+
private readonly apiUrlsConfig;
|
|
747
1212
|
private readonly injectedData;
|
|
748
1213
|
private readonly i18n;
|
|
1214
|
+
private readonly evaluator;
|
|
749
1215
|
private readonly currentDocument;
|
|
750
1216
|
private readonly initialDocument;
|
|
751
1217
|
private lastExternalSignature;
|
|
1218
|
+
private lastLoadedResourceSignature;
|
|
1219
|
+
private lastNonEmptyResourcePath;
|
|
1220
|
+
private lastCatalogEndpointSignature;
|
|
1221
|
+
private schemaSub?;
|
|
1222
|
+
private filterSchemaSub?;
|
|
1223
|
+
private catalogDiscoverySub?;
|
|
1224
|
+
private readonly catalogDiscoverySubsByScope;
|
|
1225
|
+
private schemaScopeSignature;
|
|
1226
|
+
private schemaGeneration;
|
|
1227
|
+
private destroyed;
|
|
752
1228
|
readonly effectiveCrudId: _angular_core.Signal<string | null>;
|
|
753
1229
|
readonly isReadonly: _angular_core.Signal<boolean>;
|
|
1230
|
+
readonly providedEffectiveTableConfig: _angular_core.Signal<_praxisui_core.TableConfigModern | null>;
|
|
1231
|
+
private readonly providedSnapshotOwner;
|
|
1232
|
+
readonly effectiveActionKeys: _angular_core.Signal<CrudEditorActionKey[]>;
|
|
754
1233
|
readonly diagnostics: _angular_core.Signal<_praxisui_crud.CrudEditorDiagnostic[]>;
|
|
755
1234
|
readonly errorCount: _angular_core.Signal<number>;
|
|
756
1235
|
readonly warningCount: _angular_core.Signal<number>;
|
|
@@ -759,6 +1238,70 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
759
1238
|
readonly resourcePath: _angular_core.Signal<string>;
|
|
760
1239
|
readonly resourceIdField: _angular_core.Signal<string>;
|
|
761
1240
|
readonly resourceEndpointKey: _angular_core.Signal<string>;
|
|
1241
|
+
readonly resourceEndpointKeyValue: _angular_core.Signal<_praxisui_core.ApiEndpoint | undefined>;
|
|
1242
|
+
readonly resourceApiUrlEntry: _angular_core.Signal<_praxisui_core.ApiUrlEntry | null | undefined>;
|
|
1243
|
+
readonly pageHeaderTitle: _angular_core.Signal<string>;
|
|
1244
|
+
readonly pageHeaderSubtitle: _angular_core.Signal<string>;
|
|
1245
|
+
readonly pageHeaderDomainLabel: _angular_core.Signal<string>;
|
|
1246
|
+
readonly pageHeaderDomainIcon: _angular_core.Signal<string>;
|
|
1247
|
+
readonly pageHeaderDomainTone: _angular_core.Signal<string>;
|
|
1248
|
+
readonly resourceChangedSinceInit: _angular_core.Signal<boolean>;
|
|
1249
|
+
readonly authoredTableColumns: _angular_core.Signal<ColumnDefinition[]>;
|
|
1250
|
+
readonly resolvedInheritedColumns: _angular_core.Signal<ColumnDefinition[]>;
|
|
1251
|
+
readonly effectiveTableColumns: _angular_core.Signal<ColumnDefinition[]>;
|
|
1252
|
+
readonly isUsingInheritedResourceColumns: _angular_core.Signal<boolean>;
|
|
1253
|
+
readonly effectiveTableConfigForEditor: _angular_core.Signal<_praxisui_core.TableConfigModern>;
|
|
1254
|
+
readonly inlineTableFieldMetadata: _angular_core.Signal<FieldMetadata[]>;
|
|
1255
|
+
readonly availableResourceFieldOptions: _angular_core.Signal<{
|
|
1256
|
+
field: string;
|
|
1257
|
+
header: string;
|
|
1258
|
+
}[]>;
|
|
1259
|
+
readonly currentCatalogResource: _angular_core.Signal<DiscoveredResourceOption | null>;
|
|
1260
|
+
readonly availableEntityFieldOptions: _angular_core.Signal<{
|
|
1261
|
+
field: string;
|
|
1262
|
+
header: string;
|
|
1263
|
+
}[]>;
|
|
1264
|
+
readonly availableFilterFieldOptions: _angular_core.Signal<{
|
|
1265
|
+
field: string;
|
|
1266
|
+
header: string;
|
|
1267
|
+
}[]>;
|
|
1268
|
+
readonly availableTelemetryGroupFieldOptions: _angular_core.Signal<{
|
|
1269
|
+
field: string;
|
|
1270
|
+
header: string;
|
|
1271
|
+
}[]>;
|
|
1272
|
+
formatFieldOptionLabel(opt: {
|
|
1273
|
+
field: string;
|
|
1274
|
+
header: string;
|
|
1275
|
+
}): string;
|
|
1276
|
+
private extractCatalogFieldEntry;
|
|
1277
|
+
private resolveTelemetryGroupFieldsForSource;
|
|
1278
|
+
readonly filteredIdFieldOptions: _angular_core.Signal<{
|
|
1279
|
+
field: string;
|
|
1280
|
+
header: string;
|
|
1281
|
+
}[]>;
|
|
1282
|
+
readonly filteredTelemetryGroupFieldOptions: _angular_core.Signal<{
|
|
1283
|
+
field: string;
|
|
1284
|
+
header: string;
|
|
1285
|
+
}[]>;
|
|
1286
|
+
readonly filteredInlineFilterFieldOptions: _angular_core.Signal<{
|
|
1287
|
+
field: string;
|
|
1288
|
+
header: string;
|
|
1289
|
+
}[]>;
|
|
1290
|
+
readonly availableApiEndpointKeys: _angular_core.Signal<string[]>;
|
|
1291
|
+
readonly filteredResourceEndpointKeys: _angular_core.Signal<string[]>;
|
|
1292
|
+
readonly availableTelemetryEndpoints: _angular_core.Signal<DiscoveredResourceEndpointOption[]>;
|
|
1293
|
+
readonly filteredTelemetryEndpoints: _angular_core.Signal<DiscoveredResourceEndpointOption[]>;
|
|
1294
|
+
readonly effectiveKpiBand: _angular_core.Signal<CrudKpiBandConfig | null>;
|
|
1295
|
+
readonly kpiBandEnabled: _angular_core.Signal<boolean>;
|
|
1296
|
+
readonly kpiCards: _angular_core.Signal<CrudKpiCardConfig[]>;
|
|
1297
|
+
readonly kpiBandPreviewConfig: _angular_core.Signal<CrudKpiBandConfig>;
|
|
1298
|
+
readonly effectiveFilterBar: _angular_core.Signal<CrudFilterBarConfig | null>;
|
|
1299
|
+
readonly filterBarShowAdvanced: _angular_core.Signal<boolean>;
|
|
1300
|
+
readonly filterBarPlacement: _angular_core.Signal<"table-toolbar" | "scope-bar">;
|
|
1301
|
+
readonly filterBarIncludeDiscoveredQuickFilters: _angular_core.Signal<boolean>;
|
|
1302
|
+
readonly filterBarInlineFields: _angular_core.Signal<string[]>;
|
|
1303
|
+
readonly filterBarQuickMode: _angular_core.Signal<CrudEditorQuickFilterMode>;
|
|
1304
|
+
readonly filterBarQuickFilters: _angular_core.Signal<CrudFilterBarQuickFilter[]>;
|
|
762
1305
|
readonly defaultsOpenMode: _angular_core.Signal<FormOpenMode>;
|
|
763
1306
|
readonly headerShowBack: _angular_core.Signal<boolean>;
|
|
764
1307
|
readonly headerBackLabel: _angular_core.Signal<string>;
|
|
@@ -795,6 +1338,7 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
795
1338
|
actionInitialValueDraft(actionName: CrudEditorActionKey): string;
|
|
796
1339
|
actionLabel(actionName: CrudEditorActionKey): string;
|
|
797
1340
|
actionUsesRoute(actionName: CrudEditorActionKey): boolean;
|
|
1341
|
+
isActionOmittedForReadOnly(actionName: CrudEditorActionKey): boolean;
|
|
798
1342
|
actionSummary(actionName: CrudEditorActionKey): string;
|
|
799
1343
|
actionEffectiveBindingSummary(actionName: CrudEditorActionKey): string;
|
|
800
1344
|
actionSubmitSummary(actionName: CrudEditorActionKey): string;
|
|
@@ -820,6 +1364,9 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
820
1364
|
actionGroupsSummary(actionName: CrudEditorActionKey): string;
|
|
821
1365
|
actionEditorialSummary(actionName: CrudEditorActionKey): string;
|
|
822
1366
|
actionPanelExpanded(actionName: CrudEditorActionKey): boolean;
|
|
1367
|
+
isActionPanelOpen(actionName: CrudEditorActionKey): boolean;
|
|
1368
|
+
onActionPanelOpened(actionName: CrudEditorActionKey): void;
|
|
1369
|
+
onActionPanelClosed(actionName: CrudEditorActionKey): void;
|
|
823
1370
|
actionAdvancedPanelExpanded(actionName: CrudEditorActionKey): boolean;
|
|
824
1371
|
actionStatus(actionName: CrudEditorActionKey): 'ready' | 'pending' | 'invalid';
|
|
825
1372
|
actionStatusLabel(actionName: CrudEditorActionKey): string;
|
|
@@ -832,12 +1379,20 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
832
1379
|
backDefaultsNote(): string;
|
|
833
1380
|
actionsOverview(): string;
|
|
834
1381
|
actionsOverviewNote(): string;
|
|
1382
|
+
kpisOverview(): string;
|
|
1383
|
+
kpisOverviewNote(): string;
|
|
1384
|
+
filtersOverview(): string;
|
|
1385
|
+
filtersOverviewNote(): string;
|
|
835
1386
|
tableOverview(): string;
|
|
836
1387
|
tableOverviewNote(): string;
|
|
837
1388
|
tableStructureSummary(): string;
|
|
838
1389
|
tableBehaviorSummary(): string;
|
|
839
1390
|
tableStatesSummary(): string;
|
|
840
1391
|
tableEditingFlowSummary(): string;
|
|
1392
|
+
inheritedColumnsCountLabel(): string;
|
|
1393
|
+
inheritedColumnsNote(): string;
|
|
1394
|
+
focusTableColumnsAuthoring(): void;
|
|
1395
|
+
resetToInheritedColumns(): void;
|
|
841
1396
|
validationOverview(): string;
|
|
842
1397
|
validationOverviewNote(): string;
|
|
843
1398
|
jsonSectionSummary(): string;
|
|
@@ -857,10 +1412,154 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
857
1412
|
variantLabel(variant: (typeof HEADER_VARIANTS)[number]): string;
|
|
858
1413
|
modalDensityLabel(density: string): string;
|
|
859
1414
|
backStrategyLabel(strategy: string): string;
|
|
1415
|
+
kpiCardTitle(index: number, card: CrudKpiCardConfig): string;
|
|
1416
|
+
kpiVariantLabel(variant: CrudKpiCardVariant): string;
|
|
1417
|
+
kpiFilterModeLabel(mode: CrudEditorKpiFilterMode): string;
|
|
1418
|
+
kpiCardVariant(card: CrudKpiCardConfig): CrudKpiCardVariant;
|
|
1419
|
+
kpiCardFilterMode(index: number): CrudEditorKpiFilterMode;
|
|
1420
|
+
kpiCardFilterField(index: number): string;
|
|
1421
|
+
kpiCardFilterValue(index: number): string;
|
|
1422
|
+
kpiCardFilterJsonDraft(index: number): string;
|
|
1423
|
+
setKpiBandEnabled(enabled: boolean): void;
|
|
1424
|
+
kpiBandSource(): string;
|
|
1425
|
+
kpiBandMethod(): 'GET' | 'POST';
|
|
1426
|
+
kpiBandGroupByField(): string;
|
|
1427
|
+
setKpiBandSource(raw: unknown): void;
|
|
1428
|
+
setKpiBandMethod(method: 'GET' | 'POST'): void;
|
|
1429
|
+
setKpiBandGroupByField(raw: unknown): void;
|
|
1430
|
+
onCatalogResourceSelected(resource: DiscoveredResourceOption | null): void;
|
|
1431
|
+
ensureActionCatalogLoaded(actionName: CrudEditorActionKey): void;
|
|
1432
|
+
ensureFilterSchemaLoaded(): void;
|
|
1433
|
+
ensureCatalogResourcesLoaded(explicitEndpointKey?: string, explicitApiUrlEntry?: unknown): void;
|
|
1434
|
+
isCurrentCatalogResource(resource: DiscoveredResourceOption | null | undefined): boolean;
|
|
1435
|
+
private findCatalogResourceForTelemetrySource;
|
|
1436
|
+
isCurrentResourceEndpoint(ep: DiscoveredResourceEndpointOption): boolean;
|
|
1437
|
+
selectTelemetryEndpoint(ep: DiscoveredResourceEndpointOption): void;
|
|
1438
|
+
availableActionSubmitEndpoints(actionName: CrudEditorActionKey): DiscoveredResourceEndpointOption[];
|
|
1439
|
+
filteredActionSubmitEndpoints(actionName: CrudEditorActionKey): DiscoveredResourceEndpointOption[];
|
|
1440
|
+
selectActionSubmitEndpoint(actionName: CrudEditorActionKey, ep: DiscoveredResourceEndpointOption): void;
|
|
1441
|
+
availableActionSchemaUrls(actionName: CrudEditorActionKey): Array<{
|
|
1442
|
+
url: string;
|
|
1443
|
+
method: string;
|
|
1444
|
+
label: string;
|
|
1445
|
+
}>;
|
|
1446
|
+
filteredActionSchemaUrls(actionName: CrudEditorActionKey): Array<{
|
|
1447
|
+
url: string;
|
|
1448
|
+
method: string;
|
|
1449
|
+
label: string;
|
|
1450
|
+
}>;
|
|
1451
|
+
filteredActionApiEndpointKeys(actionName: CrudEditorActionKey): string[];
|
|
1452
|
+
filteredActionParamFromOptions(rawFrom: string | null | undefined): Array<{
|
|
1453
|
+
field: string;
|
|
1454
|
+
header: string;
|
|
1455
|
+
}>;
|
|
1456
|
+
filteredKpiCardFilterFieldOptions(index: number): Array<{
|
|
1457
|
+
field: string;
|
|
1458
|
+
header: string;
|
|
1459
|
+
}>;
|
|
1460
|
+
filteredQuickFilterFieldOptions(index: number): Array<{
|
|
1461
|
+
field: string;
|
|
1462
|
+
header: string;
|
|
1463
|
+
}>;
|
|
1464
|
+
private filterFieldOptionsByQuery;
|
|
1465
|
+
private filterStringOptionsByQuery;
|
|
1466
|
+
private mergedDiscoveredCatalogResources;
|
|
1467
|
+
private mergedDiscoveredCatalogResourcesForAction;
|
|
1468
|
+
autoConfigureKpiBandGroupBy(): void;
|
|
1469
|
+
addKpiCard(): void;
|
|
1470
|
+
removeKpiCard(index: number): void;
|
|
1471
|
+
moveKpiCard(index: number, delta: -1 | 1): void;
|
|
1472
|
+
setKpiCardField(index: number, field: 'id' | 'label' | 'value' | 'valueExpr' | 'caption' | 'captionExpr' | 'icon', value: unknown): void;
|
|
1473
|
+
appendKpiCardExpressionChip(index: number, field: 'valueExpr' | 'captionExpr', snippet: string): void;
|
|
1474
|
+
kpiCardLivePreview(index: number): string;
|
|
1475
|
+
setKpiCardVariant(index: number, variant: CrudKpiCardVariant): void;
|
|
1476
|
+
setKpiCardFilterMode(index: number, mode: CrudEditorKpiFilterMode): void;
|
|
1477
|
+
setKpiCardFilterCondition(index: number, field: string, rawValue: string): void;
|
|
1478
|
+
/**
|
|
1479
|
+
* Detecta se o recurso conectado declara `readOnly: true` em `/schemas/catalog` enquanto
|
|
1480
|
+
* ações mutáveis (`create`, `edit`, `delete`) permanecem ativas em `metadata.actions`.
|
|
1481
|
+
*/
|
|
1482
|
+
hasReadOnlyMutatingActionsWarning(): boolean;
|
|
1483
|
+
/**
|
|
1484
|
+
* Remove ações mutáveis (`create`, `edit`, `delete`) de `metadata.actions` para alinhar
|
|
1485
|
+
* o contrato CRUD à governança somente leitura (`readOnly: true`) do recurso conectado.
|
|
1486
|
+
*/
|
|
1487
|
+
disableMutatingActionsForReadOnlyResource(): void;
|
|
1488
|
+
/**
|
|
1489
|
+
* Resolve as opções de domínio (`{ key, label }`) conhecidas para um campo, priorizando
|
|
1490
|
+
* `/schemas/filtered` (`schemaFieldOptionsByNameSignal`) e aplicando fallback para `enumValues`
|
|
1491
|
+
* ou `boolean` publicados em `/schemas/catalog` (tanto no recurso atual quanto em recursos de telemetria).
|
|
1492
|
+
*/
|
|
1493
|
+
availableFieldDomainValues(fieldName: string, telemetrySourceOverride?: string): Array<{
|
|
1494
|
+
key: string;
|
|
1495
|
+
label: string;
|
|
1496
|
+
}>;
|
|
1497
|
+
kpiBandGroupByFieldOptions(): Array<{
|
|
1498
|
+
key: string;
|
|
1499
|
+
label: string;
|
|
1500
|
+
}>;
|
|
1501
|
+
/**
|
|
1502
|
+
* Gera cartões KPI para as opções de domínio do campo `group-by` configurado,
|
|
1503
|
+
* preservando cartões customizados ou já mapeados pelo autor.
|
|
1504
|
+
*/
|
|
1505
|
+
generateKpiCardsFromGroupByOptions(): void;
|
|
1506
|
+
private inferKpiCardVariantForDomainKey;
|
|
1507
|
+
private formatByKeyAccessor;
|
|
1508
|
+
kpiCardExpressionChips(index: number): string[];
|
|
1509
|
+
filteredKpiCardFilterValueOptions(index: number): Array<{
|
|
1510
|
+
key: string;
|
|
1511
|
+
label: string;
|
|
1512
|
+
}>;
|
|
1513
|
+
filteredQuickFilterValueOptions(index: number): Array<{
|
|
1514
|
+
key: string;
|
|
1515
|
+
label: string;
|
|
1516
|
+
}>;
|
|
1517
|
+
setKpiCardFilterJson(index: number, raw: string): void;
|
|
1518
|
+
quickFilterModeLabel(mode: CrudEditorQuickFilterMode): string;
|
|
1519
|
+
quickConditionModeLabel(mode: CrudEditorQuickConditionMode): string;
|
|
1520
|
+
setFilterBarShowAdvanced(showAdvanced: boolean): void;
|
|
1521
|
+
setFilterBarPlacement(placement: 'table-toolbar' | 'scope-bar'): void;
|
|
1522
|
+
setFilterBarIncludeDiscoveredQuickFilters(enabled: boolean): void;
|
|
1523
|
+
addInlineFilterField(field: string): void;
|
|
1524
|
+
addInlineFilterFieldFromDraft(): void;
|
|
1525
|
+
removeInlineFilterField(field: string): void;
|
|
1526
|
+
toggleInlineFilterField(field: string): void;
|
|
1527
|
+
/**
|
|
1528
|
+
* Recomenda até 4 campos de alta utilidade operacional para a barra de filtros inline
|
|
1529
|
+
* (busca textual/identificador, status/situação, categoria/tipo/opções de domínio e data/período),
|
|
1530
|
+
* excluindo chaves técnicas primárias e campos de texto longo/observação.
|
|
1531
|
+
*/
|
|
1532
|
+
recommendedInlineFilterFields(): string[];
|
|
1533
|
+
canSuggestInlineFilterFields(): boolean;
|
|
1534
|
+
applyRecommendedInlineFilterFields(): void;
|
|
1535
|
+
setFilterBarQuickMode(mode: CrudEditorQuickFilterMode): void;
|
|
1536
|
+
quickFilterDomainPresetField(): string;
|
|
1537
|
+
quickFilterDomainPresetOptions(preferredField?: string): Array<{
|
|
1538
|
+
key: string;
|
|
1539
|
+
label: string;
|
|
1540
|
+
}>;
|
|
1541
|
+
/**
|
|
1542
|
+
* Gera atalhos de filtro rápido (`filterBar.quickFilters`) a partir das opções de domínio
|
|
1543
|
+
* (enum/status ou boolean) do campo principal de status/filtro do recurso, preservando
|
|
1544
|
+
* chips já customizados pelo autor.
|
|
1545
|
+
*/
|
|
1546
|
+
generateQuickFiltersFromDomainOptions(preferredField?: string): void;
|
|
1547
|
+
addQuickFilter(): void;
|
|
1548
|
+
removeQuickFilter(index: number): void;
|
|
1549
|
+
moveQuickFilter(index: number, delta: -1 | 1): void;
|
|
1550
|
+
setQuickFilterField(index: number, field: 'id' | 'label' | 'icon', value: unknown): void;
|
|
1551
|
+
quickFilterConditionMode(index: number): CrudEditorQuickConditionMode;
|
|
1552
|
+
setQuickFilterConditionMode(index: number, mode: CrudEditorQuickConditionMode): void;
|
|
1553
|
+
quickFilterConditionField(index: number): string;
|
|
1554
|
+
quickFilterConditionValue(index: number): string;
|
|
1555
|
+
setQuickFilterFieldEquals(index: number, field: string, rawValue: string): void;
|
|
1556
|
+
quickFilterExpressionDraft(index: number): string;
|
|
1557
|
+
setQuickFilterExpression(index: number, raw: string): void;
|
|
860
1558
|
private actionInputsSummaryBadge;
|
|
861
1559
|
paramTargetLabel(target: CrudEditorParamTarget): string;
|
|
862
1560
|
diagnosticMessage(code: string, fallback: string): string;
|
|
863
1561
|
setResourceField(field: 'path' | 'idField' | 'endpointKey', value: unknown): void;
|
|
1562
|
+
setPageHeaderField(field: 'title' | 'subtitle' | 'domainLabel' | 'domainIcon' | 'domainTone', value: unknown): void;
|
|
864
1563
|
setDefaultsOpenMode(value: FormOpenMode): void;
|
|
865
1564
|
setHeaderField(field: string, value: unknown): void;
|
|
866
1565
|
setModalField(field: 'density' | 'canMaximize' | 'startMaximized' | 'rememberLastState' | 'disableCloseOnEsc' | 'disableCloseOnBackdrop' | 'fullscreenBreakpoint', value: unknown): void;
|
|
@@ -874,6 +1573,23 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
874
1573
|
setActionBackField(actionName: CrudEditorActionKey, field: 'strategy' | 'returnTo' | 'confirmOnDirty', value: unknown): void;
|
|
875
1574
|
setActionApiUrlEntry(actionName: CrudEditorActionKey, raw: string): void;
|
|
876
1575
|
setTableConfig(config: TableConfig): void;
|
|
1576
|
+
private updateKpiBand;
|
|
1577
|
+
private patchKpiCard;
|
|
1578
|
+
private clearKpiFilterJsonDraft;
|
|
1579
|
+
private clearActionInitialValueDraft;
|
|
1580
|
+
private hasInvalidQuickFilterDraft;
|
|
1581
|
+
private updateFilterBar;
|
|
1582
|
+
private patchQuickFilter;
|
|
1583
|
+
private resourceSchemaIdentity;
|
|
1584
|
+
private synchronizeSchemaScope;
|
|
1585
|
+
private invalidateSchemaScope;
|
|
1586
|
+
private canUseResourceDiscovery;
|
|
1587
|
+
private extractFieldDomainOptionsMap;
|
|
1588
|
+
private applyResolvedSchemaFields;
|
|
1589
|
+
private applyResolvedFilterSchemaFields;
|
|
1590
|
+
private resolveFieldSchemaType;
|
|
1591
|
+
private loadResourceSchemaFromDiscovery;
|
|
1592
|
+
private loadResourceSchemaColumns;
|
|
877
1593
|
private patchAction;
|
|
878
1594
|
private updateMetadata;
|
|
879
1595
|
private buildPayload;
|
|
@@ -889,7 +1605,7 @@ declare class CrudMetadataEditorComponent implements SettingsValueProvider {
|
|
|
889
1605
|
private prioritizedActionKey;
|
|
890
1606
|
sectionDisplayLabel(section: CrudEditorSectionKey): string;
|
|
891
1607
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CrudMetadataEditorComponent, never>;
|
|
892
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CrudMetadataEditorComponent, "praxis-crud-metadata-editor", never, { "documentInput": { "alias": "document"; "required": false; "isSignal": true; }; "metadataInput": { "alias": "metadata"; "required": false; "isSignal": true; }; "crudIdInput": { "alias": "crudId"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1608
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<CrudMetadataEditorComponent, "praxis-crud-metadata-editor", never, { "documentInput": { "alias": "document"; "required": false; "isSignal": true; }; "metadataInput": { "alias": "metadata"; "required": false; "isSignal": true; }; "crudIdInput": { "alias": "crudId"; "required": false; "isSignal": true; }; "readonlyInput": { "alias": "readonly"; "required": false; "isSignal": true; }; "effectiveTableConfigInput": { "alias": "effectiveTableConfig"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
893
1609
|
}
|
|
894
1610
|
|
|
895
1611
|
interface PraxisCrudWidgetEditorInputs {
|
|
@@ -907,6 +1623,7 @@ interface PraxisCrudWidgetEditorValue {
|
|
|
907
1623
|
}
|
|
908
1624
|
declare class PraxisCrudWidgetConfigEditor implements SettingsValueProvider, AfterViewInit, OnDestroy {
|
|
909
1625
|
inputs: PraxisCrudWidgetEditorInputs | null;
|
|
1626
|
+
context: Record<string, unknown> | null;
|
|
910
1627
|
widgetKey?: string;
|
|
911
1628
|
crudEditor?: CrudMetadataEditorComponent;
|
|
912
1629
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
@@ -916,23 +1633,32 @@ declare class PraxisCrudWidgetConfigEditor implements SettingsValueProvider, Aft
|
|
|
916
1633
|
ngAfterViewInit(): void;
|
|
917
1634
|
ngOnDestroy(): void;
|
|
918
1635
|
get metadata(): CrudMetadata;
|
|
1636
|
+
get effectiveTableConfig(): TableConfig | null;
|
|
919
1637
|
get effectiveCrudId(): string | null;
|
|
920
1638
|
getSettingsValue(): PraxisCrudWidgetEditorValue;
|
|
921
1639
|
onSave(): PraxisCrudWidgetEditorValue;
|
|
922
1640
|
reset(): void;
|
|
923
1641
|
private buildValue;
|
|
1642
|
+
private sanitizePersistedContext;
|
|
924
1643
|
private createDocumentFromInputs;
|
|
925
1644
|
private extractDocument;
|
|
926
1645
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCrudWidgetConfigEditor, never>;
|
|
927
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCrudWidgetConfigEditor, "praxis-crud-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
1646
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCrudWidgetConfigEditor, "praxis-crud-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "context": { "alias": "context"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
928
1647
|
}
|
|
929
1648
|
|
|
930
1649
|
type OpenCrudMetadataEditorOptions = {
|
|
931
1650
|
id?: string;
|
|
1651
|
+
owner?: DestroyRef;
|
|
932
1652
|
title?: string;
|
|
933
1653
|
titleIcon?: string;
|
|
1654
|
+
configStorageKey?: string;
|
|
1655
|
+
showWriteScope?: boolean;
|
|
1656
|
+
canSwitchWriteScope?: boolean;
|
|
1657
|
+
onSave?: (value: unknown) => unknown | Promise<unknown> | Observable<unknown>;
|
|
1658
|
+
onReset?: () => unknown | Promise<unknown> | Observable<unknown>;
|
|
934
1659
|
document?: CrudAuthoringDocument | null;
|
|
935
1660
|
metadata?: CrudMetadata | null;
|
|
1661
|
+
effectiveTableConfig?: TableConfig | null;
|
|
936
1662
|
crudId?: string;
|
|
937
1663
|
readonly?: boolean;
|
|
938
1664
|
};
|
|
@@ -948,11 +1674,13 @@ interface EvaluatedKpiCard {
|
|
|
948
1674
|
icon?: string;
|
|
949
1675
|
tone?: string;
|
|
950
1676
|
interactive: boolean;
|
|
1677
|
+
active?: boolean;
|
|
951
1678
|
className?: string;
|
|
952
1679
|
tooltip?: string;
|
|
1680
|
+
visualization?: PraxisPresentationVisualizationConfig | null;
|
|
953
1681
|
}
|
|
954
|
-
declare function formatKpiValue(value: unknown, format?: string): string;
|
|
955
|
-
declare class PraxisKpiBandComponent implements OnInit, OnChanges {
|
|
1682
|
+
declare function formatKpiValue(value: unknown, format?: string, locale?: string): string;
|
|
1683
|
+
declare class PraxisKpiBandComponent implements OnInit, OnChanges, OnDestroy {
|
|
956
1684
|
config?: PraxisKpiBandConfig | null;
|
|
957
1685
|
dataContext?: Record<string, any> | null;
|
|
958
1686
|
/**
|
|
@@ -960,6 +1688,31 @@ declare class PraxisKpiBandComponent implements OnInit, OnChanges {
|
|
|
960
1688
|
* para cliques em cards. Quando explicitamente falso, evita a falsa affordance de botões.
|
|
961
1689
|
*/
|
|
962
1690
|
isInteractiveHost?: boolean;
|
|
1691
|
+
/**
|
|
1692
|
+
* Filtro ativo sincronizado pelo host (ex.: PraxisCrudComponent / PraxisResourcePage)
|
|
1693
|
+
* para destacar visualmente o card de KPI correspondente.
|
|
1694
|
+
*/
|
|
1695
|
+
activeFilter?: Record<string, unknown> | null;
|
|
1696
|
+
/**
|
|
1697
|
+
* Chave do endpoint de API registrado em `API_URL` herdada do recurso host (ex.: `'human-resources'`).
|
|
1698
|
+
*/
|
|
1699
|
+
endpointKey?: ApiEndpoint | string | null;
|
|
1700
|
+
/**
|
|
1701
|
+
* Entrada de URL de API explícita herdada do recurso host.
|
|
1702
|
+
*/
|
|
1703
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1704
|
+
/** Caminho canônico do recurso usado quando `config.source === 'schema'`. */
|
|
1705
|
+
resourcePath?: string | null;
|
|
1706
|
+
/** Fatos de domínio descobertos via `@ResourceFact` para auto-hidratação de KPIs. */
|
|
1707
|
+
resourceFacts?: ReadonlyArray<DomainCatalogResourceFactMetadata | Record<string, unknown>> | null;
|
|
1708
|
+
/** Filtros rápidos descobertos via `@QuickFilter` para projeção interativa no modo schema. */
|
|
1709
|
+
quickFilters?: ReadonlyArray<NormalizedPraxisResourceQuickFilter | Record<string, unknown>> | null;
|
|
1710
|
+
/** Snapshot de capabilities do recurso (`capabilities.stats`, etc.). */
|
|
1711
|
+
capabilities?: ResourceCapabilitySnapshot | null;
|
|
1712
|
+
/** Schema bruto opcional já resolvido pelo host (`/schemas/filtered`). */
|
|
1713
|
+
schemaMetadata?: Record<string, unknown> | null;
|
|
1714
|
+
/** Filtro base herdado do host/contexto para consultas `/stats/group-by`. */
|
|
1715
|
+
baseFilter?: Record<string, unknown> | null;
|
|
963
1716
|
cardClick: EventEmitter<{
|
|
964
1717
|
card: PraxisKpiBandCard;
|
|
965
1718
|
index: number;
|
|
@@ -969,46 +1722,272 @@ declare class PraxisKpiBandComponent implements OnInit, OnChanges {
|
|
|
969
1722
|
statsError: EventEmitter<any>;
|
|
970
1723
|
refreshClick: EventEmitter<void>;
|
|
971
1724
|
private readonly http;
|
|
1725
|
+
private readonly statsBus;
|
|
1726
|
+
private readonly apiUrl;
|
|
972
1727
|
private readonly cdr;
|
|
973
1728
|
private readonly destroyRef;
|
|
1729
|
+
private readonly i18n;
|
|
1730
|
+
private readonly angularLocale;
|
|
974
1731
|
private readonly evaluator;
|
|
975
1732
|
isLoading: boolean;
|
|
976
1733
|
evaluatedCards: EvaluatedKpiCard[];
|
|
977
1734
|
fetchedData: Record<string, any>;
|
|
978
1735
|
skeletonPlaceholders: number[];
|
|
1736
|
+
private initialized;
|
|
1737
|
+
private fetchSub?;
|
|
1738
|
+
private fetchedSchemaMetadata;
|
|
1739
|
+
private schemaGroupByField;
|
|
1740
|
+
get refreshTooltipLabel(): string;
|
|
1741
|
+
private get isSchemaSource();
|
|
979
1742
|
get isVisible(): boolean;
|
|
980
1743
|
get resolvedColumns(): string;
|
|
981
1744
|
get resolvedGap(): string;
|
|
982
1745
|
ngOnInit(): void;
|
|
983
1746
|
ngOnChanges(changes: SimpleChanges): void;
|
|
984
1747
|
handleRefresh(): void;
|
|
985
|
-
refresh(): void;
|
|
1748
|
+
refresh(bypassCache?: boolean): void;
|
|
1749
|
+
private resolveSourceUrl;
|
|
1750
|
+
private isStatsPostUrl;
|
|
1751
|
+
private extractStatsResourcePath;
|
|
986
1752
|
private fetchFromSource;
|
|
1753
|
+
private resolveSchemasFilteredRequestUrl;
|
|
1754
|
+
private hydrateSchemaKpiSource;
|
|
1755
|
+
private resolveActiveSchemaObject;
|
|
1756
|
+
private extractSchemaResourceFacts;
|
|
1757
|
+
private extractSchemaQuickFilters;
|
|
1758
|
+
private resolveSchemaGroupByField;
|
|
1759
|
+
private resolveEffectiveCards;
|
|
1760
|
+
private normalizeSourceRequestPayload;
|
|
1761
|
+
private toFiniteNumberOrNull;
|
|
1762
|
+
private resolveDeclaredMetricOperations;
|
|
1763
|
+
private isAnalyticsEnvelopeItemSuppressed;
|
|
1764
|
+
private aggregateAnalyticsItems;
|
|
1765
|
+
private normalizeSourcePayload;
|
|
987
1766
|
recomputeCards(): void;
|
|
1767
|
+
toSkeletonViewModel(index: number): PraxisKpiResolvedViewModel;
|
|
1768
|
+
toCardViewModel(card: EvaluatedKpiCard): PraxisKpiResolvedViewModel;
|
|
1769
|
+
ngOnDestroy(): void;
|
|
1770
|
+
private resolveCardVisualization;
|
|
1771
|
+
private hasTemplateTokens;
|
|
1772
|
+
private evaluateKpiExpression;
|
|
1773
|
+
private resolveKpiPipeChain;
|
|
1774
|
+
private lookupPath;
|
|
1775
|
+
private isCardFilterActive;
|
|
988
1776
|
onCardClick(card: EvaluatedKpiCard, index: number): void;
|
|
989
1777
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisKpiBandComponent, never>;
|
|
990
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisKpiBandComponent, "praxis-kpi-band", never, { "config": { "alias": "config"; "required": false; }; "dataContext": { "alias": "dataContext"; "required": false; }; "isInteractiveHost": { "alias": "isInteractiveHost"; "required": false; }; }, { "cardClick": "cardClick"; "statsLoaded": "statsLoaded"; "statsError": "statsError"; "refreshClick": "refreshClick"; }, never, never, true, never>;
|
|
1778
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisKpiBandComponent, "praxis-kpi-band", never, { "config": { "alias": "config"; "required": false; }; "dataContext": { "alias": "dataContext"; "required": false; }; "isInteractiveHost": { "alias": "isInteractiveHost"; "required": false; }; "activeFilter": { "alias": "activeFilter"; "required": false; }; "endpointKey": { "alias": "endpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "resourceFacts": { "alias": "resourceFacts"; "required": false; }; "quickFilters": { "alias": "quickFilters"; "required": false; }; "capabilities": { "alias": "capabilities"; "required": false; }; "schemaMetadata": { "alias": "schemaMetadata"; "required": false; }; "baseFilter": { "alias": "baseFilter"; "required": false; }; }, { "cardClick": "cardClick"; "statsLoaded": "statsLoaded"; "statsError": "statsError"; "refreshClick": "refreshClick"; }, never, never, true, never>;
|
|
1779
|
+
}
|
|
1780
|
+
|
|
1781
|
+
type PraxisDossierSurfaceVariant = 'default' | 'frameless' | 'embedded';
|
|
1782
|
+
interface PraxisDossierChildSurfaceConfig {
|
|
1783
|
+
id: string;
|
|
1784
|
+
label: string;
|
|
1785
|
+
icon?: string;
|
|
1786
|
+
badge?: string | number;
|
|
1787
|
+
resourcePath: string;
|
|
1788
|
+
resourceKey?: string;
|
|
1789
|
+
parentFilterField: string;
|
|
1790
|
+
parentValueField?: string;
|
|
1791
|
+
lockedFilterFields?: string[];
|
|
1792
|
+
filterCriteria?: Record<string, unknown>;
|
|
1793
|
+
crudMetadata?: Partial<CrudMetadata>;
|
|
1794
|
+
order?: number;
|
|
1795
|
+
}
|
|
1796
|
+
interface PraxisDossierMetadata {
|
|
1797
|
+
component: 'praxis-dossier-page';
|
|
1798
|
+
resourcePath: string;
|
|
1799
|
+
idField?: string;
|
|
1800
|
+
endpointKey?: ApiEndpoint | string;
|
|
1801
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1802
|
+
masterRecordId?: string | number | null;
|
|
1803
|
+
title?: string;
|
|
1804
|
+
subtitle?: string;
|
|
1805
|
+
eyebrow?: string;
|
|
1806
|
+
childSurfaces?: PraxisDossierChildSurfaceConfig[];
|
|
1807
|
+
showSiblingSwitcher?: boolean;
|
|
1808
|
+
showCapabilitiesSync?: boolean;
|
|
1809
|
+
showRecordFormToggle?: boolean;
|
|
1810
|
+
showOverviewTab?: boolean;
|
|
1811
|
+
showKpiBand?: boolean;
|
|
1812
|
+
}
|
|
1813
|
+
interface PraxisDossierChildTabEntry {
|
|
1814
|
+
id: string;
|
|
1815
|
+
label: string;
|
|
1816
|
+
icon: string;
|
|
1817
|
+
badge?: string | number;
|
|
1818
|
+
resourcePath: string;
|
|
1819
|
+
resourceKey?: string;
|
|
1820
|
+
parentFilterField: string;
|
|
1821
|
+
parentValueField?: string;
|
|
1822
|
+
lockedFilterFields: string[];
|
|
1823
|
+
filterCriteria: Record<string, unknown>;
|
|
1824
|
+
crudMetadata?: Partial<CrudMetadata>;
|
|
1825
|
+
order: number;
|
|
1826
|
+
source: 'configured' | 'discovered';
|
|
1827
|
+
}
|
|
1828
|
+
interface PraxisDossierQuickActionEvent {
|
|
1829
|
+
actionId: string;
|
|
1830
|
+
kind: 'action' | 'intent' | 'surface';
|
|
1831
|
+
record: DynamicDataRecord | null;
|
|
1832
|
+
action?: ResourceActionCatalogItem;
|
|
1833
|
+
surface?: ResourceSurfaceCatalogItem;
|
|
1834
|
+
response?: unknown;
|
|
991
1835
|
}
|
|
992
1836
|
|
|
1837
|
+
interface DossierMetadataChip {
|
|
1838
|
+
field: string;
|
|
1839
|
+
label: string;
|
|
1840
|
+
value: string;
|
|
1841
|
+
masked: boolean;
|
|
1842
|
+
revealed: boolean;
|
|
1843
|
+
icon?: string;
|
|
1844
|
+
}
|
|
1845
|
+
declare class PraxisDossierPageComponent {
|
|
1846
|
+
readonly resourcePath: _angular_core.InputSignal<string | null>;
|
|
1847
|
+
readonly masterRecordId: _angular_core.InputSignal<string | number | null>;
|
|
1848
|
+
readonly idField: _angular_core.InputSignal<string | null>;
|
|
1849
|
+
readonly endpointKey: _angular_core.InputSignal<string | null>;
|
|
1850
|
+
readonly apiUrlEntry: _angular_core.InputSignal<ApiUrlEntry | null>;
|
|
1851
|
+
readonly metadata: _angular_core.InputSignal<PraxisDossierMetadata | null>;
|
|
1852
|
+
readonly title: _angular_core.InputSignal<string | null>;
|
|
1853
|
+
readonly subtitle: _angular_core.InputSignal<string | null>;
|
|
1854
|
+
readonly eyebrow: _angular_core.InputSignal<string | null>;
|
|
1855
|
+
readonly siblingRecords: _angular_core.InputSignal<readonly DynamicDataRecord[] | null>;
|
|
1856
|
+
readonly childSurfaces: _angular_core.InputSignal<readonly PraxisDossierChildSurfaceConfig[] | null>;
|
|
1857
|
+
readonly showSiblingSwitcher: _angular_core.InputSignal<boolean>;
|
|
1858
|
+
readonly showCapabilitiesSync: _angular_core.InputSignal<boolean>;
|
|
1859
|
+
readonly showRecordFormToggle: _angular_core.InputSignal<boolean>;
|
|
1860
|
+
readonly showOverviewTab: _angular_core.InputSignal<boolean>;
|
|
1861
|
+
readonly showKpiBand: _angular_core.InputSignal<boolean>;
|
|
1862
|
+
readonly autoSelectFirst: _angular_core.InputSignal<boolean>;
|
|
1863
|
+
readonly surfaceVariant: _angular_core.InputSignal<PraxisDossierSurfaceVariant>;
|
|
1864
|
+
readonly masterRecordChange: _angular_core.OutputEmitterRef<DynamicDataRecord | null>;
|
|
1865
|
+
readonly masterRecordIdChange: _angular_core.OutputEmitterRef<string | number | null>;
|
|
1866
|
+
readonly actionExecuted: _angular_core.OutputEmitterRef<PraxisDossierQuickActionEvent>;
|
|
1867
|
+
readonly childSurfaceChange: _angular_core.OutputEmitterRef<PraxisDossierChildTabEntry | null>;
|
|
1868
|
+
readonly capabilitiesLoaded: _angular_core.OutputEmitterRef<{
|
|
1869
|
+
actions: ResourceActionCatalogItem[];
|
|
1870
|
+
surfaces: ResourceSurfaceCatalogItem[];
|
|
1871
|
+
}>;
|
|
1872
|
+
readonly dossierError: _angular_core.OutputEmitterRef<unknown>;
|
|
1873
|
+
private readonly http;
|
|
1874
|
+
private readonly destroyRef;
|
|
1875
|
+
private readonly injector;
|
|
1876
|
+
private readonly route;
|
|
1877
|
+
private readonly apiUrl;
|
|
1878
|
+
private readonly i18n;
|
|
1879
|
+
private readonly schemaNormalizer;
|
|
1880
|
+
private readonly resourceDiscovery;
|
|
1881
|
+
private readonly surfaceOpenAdapter;
|
|
1882
|
+
private readonly actionOpenAdapter;
|
|
1883
|
+
private readonly surfaceService;
|
|
1884
|
+
private readonly runtimeContext;
|
|
1885
|
+
private readonly routeResourceSignal;
|
|
1886
|
+
private readonly routeRecordIdSignal;
|
|
1887
|
+
private readonly routeTitleSignal;
|
|
1888
|
+
private readonly selectedRecordIdSignal;
|
|
1889
|
+
private readonly revealedFieldsSignal;
|
|
1890
|
+
private readonly switcherFilterSignal;
|
|
1891
|
+
private readonly reloadTriggerSignal;
|
|
1892
|
+
readonly loading: _angular_core.WritableSignal<boolean>;
|
|
1893
|
+
readonly hasError: _angular_core.WritableSignal<boolean>;
|
|
1894
|
+
readonly syncingCapabilities: _angular_core.WritableSignal<boolean>;
|
|
1895
|
+
readonly capabilitiesSynced: _angular_core.WritableSignal<boolean>;
|
|
1896
|
+
readonly switcherOpen: _angular_core.WritableSignal<boolean>;
|
|
1897
|
+
readonly showRecordForm: _angular_core.WritableSignal<boolean>;
|
|
1898
|
+
readonly switcherFilterText: _angular_core.Signal<string>;
|
|
1899
|
+
readonly masterRecord: _angular_core.WritableSignal<DynamicDataRecord | null>;
|
|
1900
|
+
readonly schemaFields: _angular_core.WritableSignal<FieldDefinition[]>;
|
|
1901
|
+
readonly schemaIdentity: _angular_core.WritableSignal<ResourceIdentityContract | null>;
|
|
1902
|
+
readonly fetchedSiblings: _angular_core.WritableSignal<DynamicDataRecord[]>;
|
|
1903
|
+
readonly itemSurfaces: _angular_core.WritableSignal<ResourceSurfaceCatalogItem[]>;
|
|
1904
|
+
readonly itemActions: _angular_core.WritableSignal<ResourceActionCatalogItem[]>;
|
|
1905
|
+
readonly activeTabId: _angular_core.WritableSignal<string>;
|
|
1906
|
+
private lastLoadedResourcePath;
|
|
1907
|
+
private lastPreloadedSiblingKey;
|
|
1908
|
+
private activeLoadSeq;
|
|
1909
|
+
private activeItemSeq;
|
|
1910
|
+
protected readonly readOnlyFormActions: FormActionsLayout;
|
|
1911
|
+
readonly effectiveResourcePath: _angular_core.Signal<string | null>;
|
|
1912
|
+
readonly effectiveIdField: _angular_core.Signal<string>;
|
|
1913
|
+
readonly effectiveRecordId: _angular_core.Signal<string | number | null>;
|
|
1914
|
+
readonly effectiveEyebrow: _angular_core.Signal<string>;
|
|
1915
|
+
readonly resolvedSiblings: _angular_core.Signal<DynamicDataRecord[]>;
|
|
1916
|
+
readonly filteredSiblings: _angular_core.Signal<DynamicDataRecord[]>;
|
|
1917
|
+
readonly materializedIdentity: _angular_core.Signal<MaterializedResourceIdentity | null>;
|
|
1918
|
+
readonly heroTitle: _angular_core.Signal<string>;
|
|
1919
|
+
readonly heroSubtitle: _angular_core.Signal<string | null>;
|
|
1920
|
+
readonly heroAvatarUrl: _angular_core.Signal<string | null>;
|
|
1921
|
+
readonly heroAvatarIcon: _angular_core.Signal<string>;
|
|
1922
|
+
readonly metadataChips: _angular_core.Signal<DossierMetadataChip[]>;
|
|
1923
|
+
readonly overviewFields: _angular_core.Signal<{
|
|
1924
|
+
field: string;
|
|
1925
|
+
label: string;
|
|
1926
|
+
value: string;
|
|
1927
|
+
}[]>;
|
|
1928
|
+
readonly partialFormSurfaces: _angular_core.Signal<ResourceSurfaceCatalogItem[]>;
|
|
1929
|
+
readonly itemWorkflowActions: _angular_core.Signal<ResourceActionCatalogItem[]>;
|
|
1930
|
+
readonly resolvedChildTabs: _angular_core.Signal<PraxisDossierChildTabEntry[]>;
|
|
1931
|
+
readonly activeChildTab: _angular_core.Signal<PraxisDossierChildTabEntry | null>;
|
|
1932
|
+
constructor();
|
|
1933
|
+
tx(key: string, fallback: string): string;
|
|
1934
|
+
txParams(key: string, fallback: string, params: Record<string, string | number>): string;
|
|
1935
|
+
reloadDossier(): void;
|
|
1936
|
+
toggleSwitcher(): void;
|
|
1937
|
+
toggleRecordForm(): void;
|
|
1938
|
+
onSwitcherSearchInput(event: Event): void;
|
|
1939
|
+
toggleRevealField(field: string): void;
|
|
1940
|
+
selectTab(tabId: string): void;
|
|
1941
|
+
selectSiblingRecord(row: DynamicDataRecord): void;
|
|
1942
|
+
isActiveSibling(row: DynamicDataRecord): boolean;
|
|
1943
|
+
resolveSiblingId(row: DynamicDataRecord): string | number;
|
|
1944
|
+
resolveSiblingLabel(row: DynamicDataRecord): string;
|
|
1945
|
+
resolveSiblingSubtitle(row: DynamicDataRecord): string;
|
|
1946
|
+
buildChildFilterCriteria(tab: PraxisDossierChildTabEntry): Record<string, unknown>;
|
|
1947
|
+
buildChildCrudMetadata(tab: PraxisDossierChildTabEntry): CrudMetadata;
|
|
1948
|
+
resolveSurfaceTooltip(surface: ResourceSurfaceCatalogItem): string;
|
|
1949
|
+
resolveActionTooltip(action: ResourceActionCatalogItem): string;
|
|
1950
|
+
refreshItemDiscovery(): Promise<void>;
|
|
1951
|
+
executeIntentSurface(surface: ResourceSurfaceCatalogItem): Promise<void>;
|
|
1952
|
+
executeWorkflowAction(action: ResourceActionCatalogItem): Promise<void>;
|
|
1953
|
+
private resolveResourceEndpointUrl;
|
|
1954
|
+
private resolveSchemasFilteredUrl;
|
|
1955
|
+
private loadResourceBootstrap;
|
|
1956
|
+
private loadMasterRecordAndCapabilities;
|
|
1957
|
+
private fetchItemSurfacesAndActions;
|
|
1958
|
+
private isFieldVisibleForCurrentAuthorities;
|
|
1959
|
+
private isSensitiveField;
|
|
1960
|
+
private maskValue;
|
|
1961
|
+
private formatScalarValue;
|
|
1962
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisDossierPageComponent, never>;
|
|
1963
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisDossierPageComponent, "praxis-dossier-page", never, { "resourcePath": { "alias": "resourcePath"; "required": false; "isSignal": true; }; "masterRecordId": { "alias": "masterRecordId"; "required": false; "isSignal": true; }; "idField": { "alias": "idField"; "required": false; "isSignal": true; }; "endpointKey": { "alias": "endpointKey"; "required": false; "isSignal": true; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; "isSignal": true; }; "metadata": { "alias": "metadata"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subtitle": { "alias": "subtitle"; "required": false; "isSignal": true; }; "eyebrow": { "alias": "eyebrow"; "required": false; "isSignal": true; }; "siblingRecords": { "alias": "siblingRecords"; "required": false; "isSignal": true; }; "childSurfaces": { "alias": "childSurfaces"; "required": false; "isSignal": true; }; "showSiblingSwitcher": { "alias": "showSiblingSwitcher"; "required": false; "isSignal": true; }; "showCapabilitiesSync": { "alias": "showCapabilitiesSync"; "required": false; "isSignal": true; }; "showRecordFormToggle": { "alias": "showRecordFormToggle"; "required": false; "isSignal": true; }; "showOverviewTab": { "alias": "showOverviewTab"; "required": false; "isSignal": true; }; "showKpiBand": { "alias": "showKpiBand"; "required": false; "isSignal": true; }; "autoSelectFirst": { "alias": "autoSelectFirst"; "required": false; "isSignal": true; }; "surfaceVariant": { "alias": "surfaceVariant"; "required": false; "isSignal": true; }; }, { "masterRecordChange": "masterRecordChange"; "masterRecordIdChange": "masterRecordIdChange"; "actionExecuted": "actionExecuted"; "childSurfaceChange": "childSurfaceChange"; "capabilitiesLoaded": "capabilitiesLoaded"; "dossierError": "dossierError"; }, never, never, true, never>;
|
|
1964
|
+
}
|
|
1965
|
+
|
|
1966
|
+
declare const PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA: ComponentDocMeta;
|
|
1967
|
+
declare function providePraxisDossierPageMetadata(): Provider;
|
|
1968
|
+
|
|
993
1969
|
/**
|
|
994
1970
|
* Distintivo ou tag de domínio corporativo para o cabeçalho automático
|
|
995
1971
|
*/
|
|
996
1972
|
interface PraxisResourceDomainBadge {
|
|
997
1973
|
label: string;
|
|
998
1974
|
icon?: string;
|
|
999
|
-
tone?: 'primary' | '
|
|
1975
|
+
tone?: 'primary' | 'info' | 'success' | 'warning' | 'danger' | 'neutral' | string;
|
|
1000
1976
|
}
|
|
1001
1977
|
/**
|
|
1002
1978
|
* Configuração declarativa para a barra tática de escopo integrada
|
|
1003
1979
|
*/
|
|
1004
|
-
interface PraxisResourceScopeBarConfig {
|
|
1005
|
-
leadLabel?: string;
|
|
1006
|
-
leadIcon?: string;
|
|
1980
|
+
interface PraxisResourceScopeBarConfig extends PraxisScopeBarConfig {
|
|
1007
1981
|
items: PraxisScopeBarItem[];
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1982
|
+
/**
|
|
1983
|
+
* Quando `true`, move a barra de filtros inline e avançados (`<praxis-filter>`)
|
|
1984
|
+
* da toolbar da tabela para dentro do card `<praxis-scope-bar>` superior.
|
|
1985
|
+
*/
|
|
1986
|
+
includeInlineFilters?: boolean;
|
|
1011
1987
|
}
|
|
1988
|
+
type PraxisResourceScopeBarInput = PraxisScopeBarConfig & {
|
|
1989
|
+
includeInlineFilters?: boolean;
|
|
1990
|
+
};
|
|
1012
1991
|
/**
|
|
1013
1992
|
* Praxis UI Platform — Zero-Code Canonical Resource Page (Issue #38, #40)
|
|
1014
1993
|
*
|
|
@@ -1025,21 +2004,41 @@ interface PraxisResourceScopeBarConfig {
|
|
|
1025
2004
|
* Pode ser utilizado diretamente como alvo de rotas do Angular:
|
|
1026
2005
|
* ```typescript
|
|
1027
2006
|
* {
|
|
1028
|
-
* path: '
|
|
2007
|
+
* path: 'contracts',
|
|
1029
2008
|
* component: PraxisResourcePage,
|
|
1030
2009
|
* data: {
|
|
1031
|
-
* resource: '
|
|
1032
|
-
* title: '
|
|
1033
|
-
* subtitle: '
|
|
1034
|
-
* domain: { label: '
|
|
2010
|
+
* resource: 'procurement/contracts',
|
|
2011
|
+
* title: 'Gestão de Contratos',
|
|
2012
|
+
* subtitle: 'Acompanhamento de vigência e conformidade.',
|
|
2013
|
+
* domain: { label: 'Suprimentos', icon: 'inventory_2', tone: 'info' },
|
|
1035
2014
|
* scopeBar: { ... }
|
|
1036
2015
|
* }
|
|
1037
2016
|
* }
|
|
1038
2017
|
* ```
|
|
1039
2018
|
*/
|
|
1040
|
-
declare class PraxisResourcePage implements OnInit, OnDestroy {
|
|
2019
|
+
declare class PraxisResourcePage implements OnInit, OnChanges, OnDestroy {
|
|
1041
2020
|
private readonly route;
|
|
2021
|
+
private readonly runtimeContext;
|
|
2022
|
+
private readonly customizationMode;
|
|
2023
|
+
private readonly destroyRef;
|
|
2024
|
+
private readonly decisionInspector;
|
|
2025
|
+
private readonly workspaceQueryContext;
|
|
2026
|
+
private readonly contextFilterProjector;
|
|
2027
|
+
private readonly i18n;
|
|
2028
|
+
private readonly storage;
|
|
2029
|
+
private readonly componentKeys;
|
|
2030
|
+
private _crudComponent?;
|
|
2031
|
+
readonly crudSurface: _angular_core.WritableSignal<PraxisCrudComponent | undefined>;
|
|
2032
|
+
private set crudComponent(value);
|
|
2033
|
+
private get crudComponent();
|
|
1042
2034
|
private routeSub?;
|
|
2035
|
+
private contextSub?;
|
|
2036
|
+
private observedContext;
|
|
2037
|
+
private confirmedContextIdentity?;
|
|
2038
|
+
private contextInvalidated;
|
|
2039
|
+
private hydratedAuthoringSeedKey;
|
|
2040
|
+
private readonly runtimeContextVersion;
|
|
2041
|
+
private readonly latestRuntimeAuthorities;
|
|
1043
2042
|
resource?: string;
|
|
1044
2043
|
resourcePath?: string;
|
|
1045
2044
|
crudId?: string;
|
|
@@ -1047,14 +2046,19 @@ declare class PraxisResourcePage implements OnInit, OnDestroy {
|
|
|
1047
2046
|
title?: string;
|
|
1048
2047
|
subtitle?: string;
|
|
1049
2048
|
domain?: PraxisResourceDomainBadge;
|
|
1050
|
-
scopeBar?:
|
|
2049
|
+
scopeBar?: PraxisResourceScopeBarInput;
|
|
1051
2050
|
scopeItems?: PraxisScopeBarItem[];
|
|
1052
2051
|
defaultScopeId?: string;
|
|
1053
|
-
enableCustomization
|
|
1054
|
-
|
|
2052
|
+
enableCustomization?: boolean;
|
|
2053
|
+
disableAutoDrawer: boolean;
|
|
2054
|
+
tableConfigPersistenceStrategy: TableConfigPersistenceStrategy | 'storage-first';
|
|
2055
|
+
/** Canonical persistence-strategy alias aligned with `@praxisui/core`. When set, takes precedence over `tableConfigPersistenceStrategy`. */
|
|
2056
|
+
configPersistenceStrategy?: TableConfigPersistenceStrategy | 'storage-first';
|
|
1055
2057
|
context?: Record<string, unknown>;
|
|
1056
2058
|
actions?: CrudAction[];
|
|
1057
2059
|
filterCriteria?: Record<string, unknown>;
|
|
2060
|
+
lockedFilterFields?: string[] | null;
|
|
2061
|
+
schemaFields?: FieldDefinition[] | null;
|
|
1058
2062
|
rowClick: EventEmitter<RowClickEvent<DynamicDataRecord>>;
|
|
1059
2063
|
rowAction: EventEmitter<CrudActionRuntimeEvent>;
|
|
1060
2064
|
rowDoubleClick: EventEmitter<RowDoubleClickEvent<DynamicDataRecord>>;
|
|
@@ -1079,8 +2083,14 @@ declare class PraxisResourcePage implements OnInit, OnDestroy {
|
|
|
1079
2083
|
id: string | number;
|
|
1080
2084
|
}>;
|
|
1081
2085
|
error: EventEmitter<unknown>;
|
|
2086
|
+
private readonly inputsVersion;
|
|
2087
|
+
private readonly workspaceContextEpochSignal;
|
|
2088
|
+
private lastWorkspaceSnapshotSig;
|
|
1082
2089
|
private readonly routeResourceSignal;
|
|
2090
|
+
private readonly routeCrudIdSignal;
|
|
1083
2091
|
private readonly routeMetadataSignal;
|
|
2092
|
+
private readonly authoredMetadataSignal;
|
|
2093
|
+
private readonly hydratedCrudSeedSignal;
|
|
1084
2094
|
private readonly routeTitleSignal;
|
|
1085
2095
|
private readonly routeSubtitleSignal;
|
|
1086
2096
|
private readonly routeDomainSignal;
|
|
@@ -1089,31 +2099,645 @@ declare class PraxisResourcePage implements OnInit, OnDestroy {
|
|
|
1089
2099
|
readonly identityRenderKey: _angular_core.WritableSignal<number>;
|
|
1090
2100
|
readonly identityVisible: _angular_core.WritableSignal<boolean>;
|
|
1091
2101
|
readonly activeScopeId: _angular_core.WritableSignal<string>;
|
|
2102
|
+
readonly hasGovernedRules: _angular_core.WritableSignal<boolean>;
|
|
2103
|
+
readonly activeInspectedRecordId: _angular_core.WritableSignal<string | number | null>;
|
|
1092
2104
|
private readonly activeScopeFilter;
|
|
2105
|
+
private readonly discoveredQuickFiltersSignal;
|
|
2106
|
+
private readonly discoveredInlineFilterFieldsSignal;
|
|
2107
|
+
private lastObservedResourcePath;
|
|
2108
|
+
private governedRulesCheckGeneration;
|
|
2109
|
+
private initialized;
|
|
2110
|
+
readonly decisionInspectorButtonLabel: _angular_core.Signal<string>;
|
|
2111
|
+
private readonly assistantLaunch;
|
|
2112
|
+
readonly assistantLaunchAvailable: _angular_core.Signal<boolean>;
|
|
2113
|
+
readonly askAssistantButtonLabel: _angular_core.Signal<"Ask Assistant" | "Perguntar ao Assistente">;
|
|
2114
|
+
constructor();
|
|
2115
|
+
readonly hasLocalData: _angular_core.Signal<boolean>;
|
|
2116
|
+
readonly hasCrudSeed: _angular_core.Signal<boolean>;
|
|
2117
|
+
private normalizeComparableResourcePath;
|
|
2118
|
+
private isCompatibleSchemaPath;
|
|
2119
|
+
private resolveHostResource;
|
|
2120
|
+
private isAuthoredMetadataCompatibleWithHostResource;
|
|
2121
|
+
readonly resolvedConfigPersistenceStrategy: _angular_core.Signal<TableConfigPersistenceStrategy>;
|
|
1093
2122
|
readonly effectiveResource: _angular_core.Signal<string | null>;
|
|
1094
2123
|
readonly effectiveTitle: _angular_core.Signal<string | null>;
|
|
1095
2124
|
readonly effectiveSubtitle: _angular_core.Signal<string | null>;
|
|
1096
|
-
readonly effectiveDomain: _angular_core.Signal<PraxisResourceDomainBadge | null>;
|
|
2125
|
+
readonly effectiveDomain: _angular_core.Signal<PraxisResourceDomainBadge | null | undefined>;
|
|
1097
2126
|
readonly effectiveEnableCustomization: _angular_core.Signal<boolean>;
|
|
2127
|
+
readonly effectiveCustomFieldsStudio: _angular_core.Signal<_praxisui_crud.PraxisCustomFieldsStudioConfig | null>;
|
|
2128
|
+
readonly canOpenCustomFieldsStudio: _angular_core.Signal<boolean>;
|
|
2129
|
+
openPageCustomization(): void;
|
|
2130
|
+
openCustomFieldsStudio(): void;
|
|
2131
|
+
openDecisionInspector(): void;
|
|
2132
|
+
openAssistantWithResourceContext(): void;
|
|
2133
|
+
onCrudDrawerOpen(event: DrawerOpenEvent<DynamicDataRecord>): void;
|
|
2134
|
+
onCrudDrawerClose(): void;
|
|
2135
|
+
onCrudAuthoringDocumentChanged(event: {
|
|
2136
|
+
metadata?: CrudMetadata;
|
|
2137
|
+
} | null | undefined): void;
|
|
2138
|
+
private resolveParsedMetadataSource;
|
|
2139
|
+
readonly effectiveIncludeInlineFilters: _angular_core.Signal<boolean>;
|
|
1098
2140
|
readonly effectiveScopeBar: _angular_core.Signal<PraxisResourceScopeBarConfig | null>;
|
|
1099
2141
|
readonly resolvedCrudId: _angular_core.Signal<string>;
|
|
2142
|
+
readonly workspaceBindableFields: _angular_core.Signal<FieldDefinition[]>;
|
|
2143
|
+
readonly effectiveLockedFilterFields: _angular_core.Signal<string[]>;
|
|
2144
|
+
readonly effectiveFilterCriteria: _angular_core.Signal<Record<string, unknown>>;
|
|
1100
2145
|
readonly effectiveMetadata: _angular_core.Signal<CrudMetadata>;
|
|
1101
2146
|
readonly defaultMetadata: _angular_core.Signal<CrudMetadata>;
|
|
1102
|
-
private
|
|
2147
|
+
private restoreDefaultScope;
|
|
2148
|
+
private reconcileScopeSelectionIfNeeded;
|
|
2149
|
+
private onRuntimeContext;
|
|
1103
2150
|
ngOnInit(): void;
|
|
2151
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
1104
2152
|
ngOnDestroy(): void;
|
|
2153
|
+
readonly orthogonalScopeFilters: _angular_core.Signal<Record<string, unknown>>;
|
|
1105
2154
|
onScopeChange(item: PraxisScopeBarItem): void;
|
|
2155
|
+
onScopeFilterCriteriaChange(criteria: Record<string, unknown>): void;
|
|
1106
2156
|
onScopeClear(): void;
|
|
2157
|
+
onCrudDiscoveredQuickFiltersChange(items: NormalizedPraxisResourceQuickFilter[]): void;
|
|
2158
|
+
onCrudDiscoveredInlineFilterFieldsChange(fields: string[]): void;
|
|
2159
|
+
onCrudFilterCriteriaChange(criteria: Record<string, unknown>): void;
|
|
1107
2160
|
handleKpiCardClick(event: {
|
|
1108
2161
|
card: PraxisKpiBandCard;
|
|
1109
2162
|
index: number;
|
|
1110
2163
|
data: any;
|
|
1111
2164
|
}): void;
|
|
2165
|
+
private getScopeManagedFields;
|
|
1112
2166
|
private applyItemFilter;
|
|
2167
|
+
private extractMetadataFilterCriteria;
|
|
2168
|
+
private extractResourcePathFromMetadata;
|
|
2169
|
+
private normalizeScopeFilterExpression;
|
|
2170
|
+
private areScopeFiltersEqual;
|
|
1113
2171
|
private extractRouteData;
|
|
2172
|
+
private tryHydrateStoredCrudSeed;
|
|
1114
2173
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisResourcePage, never>;
|
|
1115
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisResourcePage, "praxis-resource-page", never, { "resource": { "alias": "resource"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "crudId": { "alias": "crudId"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "domain": { "alias": "domain"; "required": false; }; "scopeBar": { "alias": "scopeBar"; "required": false; }; "scopeItems": { "alias": "scopeItems"; "required": false; }; "defaultScopeId": { "alias": "defaultScopeId"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "tableConfigPersistenceStrategy": { "alias": "tableConfigPersistenceStrategy"; "required": false; }; "context": { "alias": "context"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; }, { "rowClick": "rowClick"; "rowAction": "rowAction"; "rowDoubleClick": "rowDoubleClick"; "selectionChange": "selectionChange"; "drawerOpen": "drawerOpen"; "drawerClose": "drawerClose"; "afterOpen": "afterOpen"; "afterClose": "afterClose"; "kpiCardClick": "kpiCardClick"; "afterSave": "afterSave"; "afterDelete": "afterDelete"; "error": "error"; }, never, ["[page-header-actions]"], true, never>;
|
|
2174
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisResourcePage, "praxis-resource-page", never, { "resource": { "alias": "resource"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "crudId": { "alias": "crudId"; "required": false; }; "metadata": { "alias": "metadata"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "domain": { "alias": "domain"; "required": false; }; "scopeBar": { "alias": "scopeBar"; "required": false; }; "scopeItems": { "alias": "scopeItems"; "required": false; }; "defaultScopeId": { "alias": "defaultScopeId"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "disableAutoDrawer": { "alias": "disableAutoDrawer"; "required": false; }; "tableConfigPersistenceStrategy": { "alias": "tableConfigPersistenceStrategy"; "required": false; }; "configPersistenceStrategy": { "alias": "configPersistenceStrategy"; "required": false; }; "context": { "alias": "context"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "lockedFilterFields": { "alias": "lockedFilterFields"; "required": false; }; "schemaFields": { "alias": "schemaFields"; "required": false; }; }, { "rowClick": "rowClick"; "rowAction": "rowAction"; "rowDoubleClick": "rowDoubleClick"; "selectionChange": "selectionChange"; "drawerOpen": "drawerOpen"; "drawerClose": "drawerClose"; "afterOpen": "afterOpen"; "afterClose": "afterClose"; "kpiCardClick": "kpiCardClick"; "afterSave": "afterSave"; "afterDelete": "afterDelete"; "error": "error"; }, never, ["[page-header-actions]"], true, never>;
|
|
2175
|
+
static ngAcceptInputType_disableAutoDrawer: unknown;
|
|
2176
|
+
}
|
|
2177
|
+
|
|
2178
|
+
interface PraxisBulkOperationDialogData {
|
|
2179
|
+
action: ResourceActionCatalogItem;
|
|
2180
|
+
targets: ResourceBulkTarget[];
|
|
2181
|
+
rows?: Record<string, unknown>[];
|
|
2182
|
+
resourcePath: string;
|
|
2183
|
+
resourceKey: string;
|
|
2184
|
+
endpointKey?: ApiEndpoint;
|
|
2185
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2186
|
+
columns?: ColumnDefinition[];
|
|
2187
|
+
schema?: any;
|
|
2188
|
+
initialProposal?: ResourceBulkProposal | null;
|
|
2189
|
+
initialProposalId?: string | null;
|
|
2190
|
+
initialExecution?: ResourceBulkExecution | null;
|
|
2191
|
+
initialParameters?: Record<string, unknown> | null;
|
|
2192
|
+
initialSelection?: {
|
|
2193
|
+
mode: 'EXPLICIT' | 'QUERY';
|
|
2194
|
+
targets?: ResourceBulkTarget[];
|
|
2195
|
+
filter?: Record<string, unknown> | null;
|
|
2196
|
+
excludedIds?: (string | number)[];
|
|
2197
|
+
} | null;
|
|
2198
|
+
missingRequiredFields?: readonly string[];
|
|
2199
|
+
filterLabel?: string | null;
|
|
2200
|
+
}
|
|
2201
|
+
type BulkDialogStep = 'PARAMETERS' | 'EVALUATING' | 'PREVIEW' | 'CONFIRMING' | 'RESULT';
|
|
2202
|
+
declare class PraxisBulkOperationDialogComponent implements OnInit {
|
|
2203
|
+
readonly data: PraxisBulkOperationDialogData;
|
|
2204
|
+
private readonly dialogRef;
|
|
2205
|
+
private readonly bulkClient;
|
|
2206
|
+
private readonly destroyRef;
|
|
2207
|
+
private readonly i18n;
|
|
2208
|
+
protected readonly trackingUnavailable: _angular_core.WritableSignal<boolean>;
|
|
2209
|
+
private trackingSubscription;
|
|
2210
|
+
private executionGeneration;
|
|
2211
|
+
private trackingClosed;
|
|
2212
|
+
parametersForm?: PraxisDynamicForm;
|
|
2213
|
+
readonly step: _angular_core.WritableSignal<BulkDialogStep>;
|
|
2214
|
+
readonly proposal: _angular_core.WritableSignal<_praxisui_core.BulkProposal | null>;
|
|
2215
|
+
readonly execution: _angular_core.WritableSignal<_praxisui_core.BulkExecution | null>;
|
|
2216
|
+
readonly errorMessage: _angular_core.WritableSignal<string | null>;
|
|
2217
|
+
readonly parametersValue: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
2218
|
+
readonly parametersFormValid: _angular_core.WritableSignal<boolean>;
|
|
2219
|
+
readonly proposalItems: _angular_core.WritableSignal<BulkProposalItemResult<_praxisui_core.BulkWireId>[]>;
|
|
2220
|
+
readonly proposalNextCursor: _angular_core.WritableSignal<string | null>;
|
|
2221
|
+
readonly loadingProposalResults: _angular_core.WritableSignal<boolean>;
|
|
2222
|
+
readonly executionItems: _angular_core.WritableSignal<BulkItemResult<_praxisui_core.BulkWireId>[]>;
|
|
2223
|
+
readonly executionNextCursor: _angular_core.WritableSignal<string | null>;
|
|
2224
|
+
readonly loadingExecutionResults: _angular_core.WritableSignal<boolean>;
|
|
2225
|
+
readonly cancellingExecution: _angular_core.WritableSignal<boolean>;
|
|
2226
|
+
readonly activeTargets: _angular_core.WritableSignal<ResourceBulkTarget[]>;
|
|
2227
|
+
readonly selectionOverride: _angular_core.WritableSignal<{
|
|
2228
|
+
mode: "EXPLICIT" | "QUERY";
|
|
2229
|
+
targets?: ResourceBulkTarget[];
|
|
2230
|
+
filter?: Record<string, unknown> | null;
|
|
2231
|
+
excludedIds?: (string | number)[];
|
|
2232
|
+
} | null | undefined>;
|
|
2233
|
+
readonly reevaluatingSubset: _angular_core.WritableSignal<boolean>;
|
|
2234
|
+
readonly proposalExpiredOrConflicted: _angular_core.WritableSignal<boolean>;
|
|
2235
|
+
readonly action: ResourceActionCatalogItem;
|
|
2236
|
+
get targets(): ResourceBulkTarget[];
|
|
2237
|
+
set targets(value: ResourceBulkTarget[]);
|
|
2238
|
+
private confirmationIdempotencyKey?;
|
|
2239
|
+
readonly initialFormParameters: _angular_core.WritableSignal<Record<string, unknown>>;
|
|
2240
|
+
private latestPreparedParameters;
|
|
2241
|
+
readonly formActions: FormConfig['actions'];
|
|
2242
|
+
constructor(data: PraxisBulkOperationDialogData);
|
|
2243
|
+
getActionTitle(): string;
|
|
2244
|
+
ngOnInit(): void;
|
|
2245
|
+
private hydrateProposal;
|
|
2246
|
+
private hydrateInitialExecution;
|
|
2247
|
+
hasParametersSchema(): boolean;
|
|
2248
|
+
parametersSchemaPointer(): string | null;
|
|
2249
|
+
parametersSchemaUrl(): string | null;
|
|
2250
|
+
getParametersFormId(): string;
|
|
2251
|
+
onParametersFormReady(event: any): void;
|
|
2252
|
+
onParametersPayloadPreview(event: any): void;
|
|
2253
|
+
onParametersChange(event: any): void;
|
|
2254
|
+
private getMissingRequiredParameterNames;
|
|
2255
|
+
canEvaluateParameters(): boolean;
|
|
2256
|
+
isBlockedByAtomicity(): boolean;
|
|
2257
|
+
isConfirmDisabled(): boolean;
|
|
2258
|
+
isDiagnosticError(diag: any): boolean;
|
|
2259
|
+
getRejectedTotal(): number;
|
|
2260
|
+
getExecutionAlertClass(): string;
|
|
2261
|
+
getExecutionAlertIcon(): string;
|
|
2262
|
+
getExecutionAlertTitle(): string;
|
|
2263
|
+
getExecutionAlertMessage(): string;
|
|
2264
|
+
onEvaluate(): void;
|
|
2265
|
+
private resolveSubmitParameters;
|
|
2266
|
+
private normalizeParameterDateValues;
|
|
2267
|
+
canReevaluateEligibleSubset(): boolean;
|
|
2268
|
+
onReevaluateEligibleSubset(): Promise<void>;
|
|
2269
|
+
loadProposalResults(cursor?: string): void;
|
|
2270
|
+
onConfirm(): void;
|
|
2271
|
+
private executionRequestOptions;
|
|
2272
|
+
private isCurrentExecution;
|
|
2273
|
+
private stopExecutionTracking;
|
|
2274
|
+
private markTrackingUnavailable;
|
|
2275
|
+
private startExecutionTracking;
|
|
2276
|
+
protected resumeTracking(): void;
|
|
2277
|
+
protected tx(key: string): string;
|
|
2278
|
+
private finalizeExecution;
|
|
2279
|
+
loadExecutionResults(cursor?: string): void;
|
|
2280
|
+
canCancelExecution(): boolean;
|
|
2281
|
+
onCancelActiveExecution(): void;
|
|
2282
|
+
onCloseSuccess(): void;
|
|
2283
|
+
onCancel(): void;
|
|
2284
|
+
onEscape(event?: Event): void;
|
|
2285
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisBulkOperationDialogComponent, never>;
|
|
2286
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisBulkOperationDialogComponent, "praxis-bulk-operation-dialog", never, {}, {}, never, never, true, never>;
|
|
2287
|
+
}
|
|
2288
|
+
|
|
2289
|
+
interface PraxisBulkEditDialogData {
|
|
2290
|
+
bulkContract: ResourceBulkExecutionContract;
|
|
2291
|
+
targets: ResourceBulkTarget[];
|
|
2292
|
+
rows?: readonly Record<string, unknown>[];
|
|
2293
|
+
resourcePath: string;
|
|
2294
|
+
resourceKey: string;
|
|
2295
|
+
endpointKey?: ApiEndpoint;
|
|
2296
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
2297
|
+
columns?: ColumnDefinition[];
|
|
2298
|
+
schema?: any;
|
|
2299
|
+
title?: string;
|
|
2300
|
+
subtitle?: string;
|
|
2301
|
+
bulkEditMode?: 'UNIFORM_UPDATE' | 'PER_ITEM_UPDATE';
|
|
2302
|
+
initialProposal?: ResourceBulkProposal | null;
|
|
2303
|
+
initialProposalId?: string | null;
|
|
2304
|
+
initialExecution?: ResourceBulkExecution | null;
|
|
2305
|
+
initialChanges?: readonly ResourceBulkFieldChange[] | null;
|
|
2306
|
+
initialItemChanges?: readonly BulkItemChange[] | null;
|
|
2307
|
+
initialSelection?: {
|
|
2308
|
+
mode: 'EXPLICIT' | 'QUERY';
|
|
2309
|
+
targets?: ResourceBulkTarget[];
|
|
2310
|
+
filter?: Record<string, unknown> | null;
|
|
2311
|
+
excludedIds?: (string | number)[];
|
|
2312
|
+
} | null;
|
|
2313
|
+
filterLabel?: string | null;
|
|
2314
|
+
}
|
|
2315
|
+
type BulkEditStep = 'FIELDS' | 'EVALUATING' | 'PREVIEW' | 'CONFIRMING' | 'RESULT';
|
|
2316
|
+
interface EditableFieldRow {
|
|
2317
|
+
id: string;
|
|
2318
|
+
field: string;
|
|
2319
|
+
operator: 'SET' | 'CLEAR';
|
|
2320
|
+
value: string;
|
|
2321
|
+
}
|
|
2322
|
+
declare class PraxisBulkEditDialogComponent implements OnInit {
|
|
2323
|
+
readonly data: PraxisBulkEditDialogData;
|
|
2324
|
+
private readonly dialogRef;
|
|
2325
|
+
private readonly bulkClient;
|
|
2326
|
+
private readonly destroyRef;
|
|
2327
|
+
private readonly i18n;
|
|
2328
|
+
protected readonly trackingUnavailable: _angular_core.WritableSignal<boolean>;
|
|
2329
|
+
private trackingSubscription;
|
|
2330
|
+
private executionGeneration;
|
|
2331
|
+
private trackingClosed;
|
|
2332
|
+
readonly step: _angular_core.WritableSignal<BulkEditStep>;
|
|
2333
|
+
readonly fieldRows: _angular_core.WritableSignal<EditableFieldRow[]>;
|
|
2334
|
+
readonly proposal: _angular_core.WritableSignal<_praxisui_core.BulkProposal | null>;
|
|
2335
|
+
readonly execution: _angular_core.WritableSignal<_praxisui_core.BulkExecution | null>;
|
|
2336
|
+
readonly errorMessage: _angular_core.WritableSignal<string | null>;
|
|
2337
|
+
readonly fetchedSchema: _angular_core.WritableSignal<Record<string, any> | null>;
|
|
2338
|
+
readonly proposalItems: _angular_core.WritableSignal<BulkProposalItemResult<_praxisui_core.BulkWireId>[]>;
|
|
2339
|
+
readonly proposalNextCursor: _angular_core.WritableSignal<string | null>;
|
|
2340
|
+
readonly loadingProposalResults: _angular_core.WritableSignal<boolean>;
|
|
2341
|
+
readonly executionItems: _angular_core.WritableSignal<BulkItemResult<_praxisui_core.BulkWireId>[]>;
|
|
2342
|
+
readonly executionNextCursor: _angular_core.WritableSignal<string | null>;
|
|
2343
|
+
readonly loadingExecutionResults: _angular_core.WritableSignal<boolean>;
|
|
2344
|
+
readonly cancellingExecution: _angular_core.WritableSignal<boolean>;
|
|
2345
|
+
readonly activeTargets: _angular_core.WritableSignal<ResourceBulkTarget[]>;
|
|
2346
|
+
readonly activeItemChanges: _angular_core.WritableSignal<BulkItemChange<_praxisui_core.BulkWireId>[]>;
|
|
2347
|
+
readonly selectionOverride: _angular_core.WritableSignal<{
|
|
2348
|
+
mode: "EXPLICIT" | "QUERY";
|
|
2349
|
+
targets?: ResourceBulkTarget[];
|
|
2350
|
+
filter?: Record<string, unknown> | null;
|
|
2351
|
+
excludedIds?: (string | number)[];
|
|
2352
|
+
} | null | undefined>;
|
|
2353
|
+
readonly reevaluatingSubset: _angular_core.WritableSignal<boolean>;
|
|
2354
|
+
readonly proposalExpiredOrConflicted: _angular_core.WritableSignal<boolean>;
|
|
2355
|
+
readonly contract: ResourceBulkExecutionContract;
|
|
2356
|
+
get targets(): ResourceBulkTarget[];
|
|
2357
|
+
set targets(value: ResourceBulkTarget[]);
|
|
2358
|
+
readonly writableFields: string[];
|
|
2359
|
+
readonly clearableFields: string[];
|
|
2360
|
+
private confirmationIdempotencyKey;
|
|
2361
|
+
get dialogTitle(): string;
|
|
2362
|
+
get dialogSubtitle(): string;
|
|
2363
|
+
constructor(data: PraxisBulkEditDialogData);
|
|
2364
|
+
ngOnInit(): void;
|
|
2365
|
+
isPerItemMode(): boolean;
|
|
2366
|
+
formatItemChangesSummary(itemChange: BulkItemChange): string;
|
|
2367
|
+
private hydrateProposal;
|
|
2368
|
+
private hydrateInitialExecution;
|
|
2369
|
+
private hydrateRemoteSchemaIfNeeded;
|
|
2370
|
+
private getEffectiveSchemaProperty;
|
|
2371
|
+
private getFieldDescriptor;
|
|
2372
|
+
isFieldClearable(fieldName: string): boolean;
|
|
2373
|
+
hasAvailableFieldsToAdd(): boolean;
|
|
2374
|
+
private nextRowId;
|
|
2375
|
+
isFieldSelectedInOtherRow(field: string, currentRow: EditableFieldRow): boolean;
|
|
2376
|
+
addFieldRow(): void;
|
|
2377
|
+
removeFieldRow(index: number): void;
|
|
2378
|
+
getCurrencyFieldLabel(fieldName: string): string;
|
|
2379
|
+
getTargetDisplayLabel(id: unknown): string;
|
|
2380
|
+
getFieldLabel(fieldName: string): string;
|
|
2381
|
+
getFieldType(fieldName: string): 'currency' | 'number' | 'date' | 'boolean' | 'enum' | 'string';
|
|
2382
|
+
getFieldEnumOptions(fieldName: string): Array<{
|
|
2383
|
+
label: string;
|
|
2384
|
+
value: string;
|
|
2385
|
+
}>;
|
|
2386
|
+
onFieldSelectionChange(row: EditableFieldRow): void;
|
|
2387
|
+
isBlockedByAtomicity(): boolean;
|
|
2388
|
+
getPreviewChangesList(): Array<{
|
|
2389
|
+
field: string;
|
|
2390
|
+
label: string;
|
|
2391
|
+
displayValue: string;
|
|
2392
|
+
}>;
|
|
2393
|
+
getPreviewDeltaSummary(): string;
|
|
2394
|
+
private formatPreviewFieldValue;
|
|
2395
|
+
isConfirmDisabled(): boolean;
|
|
2396
|
+
isDiagnosticError(diag: ResourceBulkProposalDiagnostic | any): boolean;
|
|
2397
|
+
getRejectedTotal(): number;
|
|
2398
|
+
getExecutionAlertClass(): string;
|
|
2399
|
+
getExecutionAlertIcon(): string;
|
|
2400
|
+
getExecutionAlertTitle(): string;
|
|
2401
|
+
getExecutionAlertMessage(): string;
|
|
2402
|
+
onEvaluate(): void;
|
|
2403
|
+
private buildUniformChangesFromRows;
|
|
2404
|
+
canReevaluateEligibleSubset(): boolean;
|
|
2405
|
+
onReevaluateEligibleSubset(): Promise<void>;
|
|
2406
|
+
loadProposalResults(cursor?: string): void;
|
|
2407
|
+
onConfirm(): void;
|
|
2408
|
+
private executionRequestOptions;
|
|
2409
|
+
private isCurrentExecution;
|
|
2410
|
+
private stopExecutionTracking;
|
|
2411
|
+
private markTrackingUnavailable;
|
|
2412
|
+
private startExecutionTracking;
|
|
2413
|
+
protected resumeTracking(): void;
|
|
2414
|
+
protected tx(key: string): string;
|
|
2415
|
+
private finalizeExecution;
|
|
2416
|
+
loadExecutionResults(cursor?: string): void;
|
|
2417
|
+
canCancelExecution(): boolean;
|
|
2418
|
+
onCancelActiveExecution(): void;
|
|
2419
|
+
onCloseSuccess(): void;
|
|
2420
|
+
onCancel(): void;
|
|
2421
|
+
onEscape(event?: Event): void;
|
|
2422
|
+
private parseFieldValue;
|
|
2423
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisBulkEditDialogComponent, never>;
|
|
2424
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisBulkEditDialogComponent, "praxis-bulk-edit-dialog", never, {}, {}, never, never, true, never>;
|
|
1116
2425
|
}
|
|
1117
2426
|
|
|
1118
|
-
|
|
1119
|
-
|
|
2427
|
+
declare class PraxisCrudBulkProposalBridgeService implements PraxisBulkProposalBridge {
|
|
2428
|
+
private readonly dialog;
|
|
2429
|
+
private readonly discovery;
|
|
2430
|
+
openPreparedBulkProposal(request: PraxisBulkProposalHandoffRequest): Promise<PraxisBulkProposalHandoffResult | null>;
|
|
2431
|
+
private mapCloseResult;
|
|
2432
|
+
private resolveDiscoveredAction;
|
|
2433
|
+
private buildContract;
|
|
2434
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCrudBulkProposalBridgeService, never>;
|
|
2435
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<PraxisCrudBulkProposalBridgeService>;
|
|
2436
|
+
}
|
|
2437
|
+
declare function providePraxisCrudBulkProposalBridge(): Provider;
|
|
2438
|
+
|
|
2439
|
+
declare class PraxisCustomFieldStudioDialogComponent implements OnInit {
|
|
2440
|
+
private readonly fb;
|
|
2441
|
+
private readonly http;
|
|
2442
|
+
private readonly destroyRef;
|
|
2443
|
+
private readonly dialogRef;
|
|
2444
|
+
readonly data: PraxisCustomFieldStudioDialogData;
|
|
2445
|
+
private readonly apiUrls;
|
|
2446
|
+
private readonly dynamicFormService;
|
|
2447
|
+
private readonly cacheInvalidator;
|
|
2448
|
+
private readonly runtimeContext;
|
|
2449
|
+
private readonly i18n;
|
|
2450
|
+
private readonly hostElementRef;
|
|
2451
|
+
readonly studioConfig: _praxisui_crud.PraxisCustomFieldsStudioConfig;
|
|
2452
|
+
readonly editingMode: _angular_core.WritableSignal<boolean>;
|
|
2453
|
+
get isEditMode(): boolean;
|
|
2454
|
+
readonly isCatalogMode: boolean;
|
|
2455
|
+
readonly presets: readonly PraxisCustomFieldPreset[];
|
|
2456
|
+
readonly fieldTypeChoices: readonly {
|
|
2457
|
+
value: string;
|
|
2458
|
+
label: string;
|
|
2459
|
+
}[];
|
|
2460
|
+
readonly widthChoices: readonly {
|
|
2461
|
+
value: string;
|
|
2462
|
+
title: string;
|
|
2463
|
+
subtitle: string;
|
|
2464
|
+
}[];
|
|
2465
|
+
readonly regexPresets: readonly {
|
|
2466
|
+
id: string;
|
|
2467
|
+
label: string;
|
|
2468
|
+
pattern: string;
|
|
2469
|
+
message: string;
|
|
2470
|
+
sampleValid: string;
|
|
2471
|
+
}[];
|
|
2472
|
+
readonly suggestedIcons: readonly {
|
|
2473
|
+
icon: string;
|
|
2474
|
+
label: string;
|
|
2475
|
+
}[];
|
|
2476
|
+
readonly aiPromptExamples: readonly string[];
|
|
2477
|
+
readonly targetCatalog: _angular_core.WritableSignal<PraxisCustomFieldTargetCatalogItem[]>;
|
|
2478
|
+
readonly activePresetId: _angular_core.WritableSignal<string>;
|
|
2479
|
+
readonly activeStudioTab: _angular_core.WritableSignal<"editor" | "manage">;
|
|
2480
|
+
readonly activePreviewSurface: _angular_core.WritableSignal<"filter" | "form" | "grid">;
|
|
2481
|
+
readonly slugEditExpanded: _angular_core.WritableSignal<boolean>;
|
|
2482
|
+
readonly inlineManageAvailable: _angular_core.WritableSignal<boolean>;
|
|
2483
|
+
readonly managedTargetFields: _angular_core.WritableSignal<Record<string, unknown>[]>;
|
|
2484
|
+
readonly managedTargetFieldsLoaded: _angular_core.WritableSignal<boolean>;
|
|
2485
|
+
readonly manageLoading: _angular_core.WritableSignal<boolean>;
|
|
2486
|
+
readonly manageError: _angular_core.WritableSignal<string | null>;
|
|
2487
|
+
readonly manageSearchQuery: _angular_core.WritableSignal<string>;
|
|
2488
|
+
readonly manageActionBusyId: _angular_core.WritableSignal<string | number | null>;
|
|
2489
|
+
readonly impactSummary: _angular_core.WritableSignal<PraxisCustomFieldImpactSummary | null>;
|
|
2490
|
+
readonly tablePreviewDetail: _angular_core.WritableSignal<PraxisCustomFieldPreviewDetermination | null>;
|
|
2491
|
+
readonly tabelaBrowserOpen: _angular_core.WritableSignal<boolean>;
|
|
2492
|
+
readonly tabelaCatalogLoading: _angular_core.WritableSignal<boolean>;
|
|
2493
|
+
readonly tabelaCatalogItems: _angular_core.WritableSignal<PraxisTabelaCatalogItem[]>;
|
|
2494
|
+
readonly tabelaSearchQuery: _angular_core.WritableSignal<string>;
|
|
2495
|
+
readonly bulkPasteOpen: _angular_core.WritableSignal<boolean>;
|
|
2496
|
+
readonly bulkPasteText: _angular_core.WritableSignal<string>;
|
|
2497
|
+
readonly regexTestSample: _angular_core.WritableSignal<string>;
|
|
2498
|
+
readonly clonePanelOpen: _angular_core.WritableSignal<boolean>;
|
|
2499
|
+
readonly cloneStrategy: _angular_core.WritableSignal<"copy_same" | "specialize_org" | "copy_resource">;
|
|
2500
|
+
readonly cloneTargetResourceKey: _angular_core.WritableSignal<string>;
|
|
2501
|
+
readonly cloneNewFieldKey: _angular_core.WritableSignal<string>;
|
|
2502
|
+
readonly cloneNewLabel: _angular_core.WritableSignal<string>;
|
|
2503
|
+
readonly clonePublishActive: _angular_core.WritableSignal<boolean>;
|
|
2504
|
+
readonly cloneError: _angular_core.WritableSignal<string | null>;
|
|
2505
|
+
readonly cloning: _angular_core.WritableSignal<boolean>;
|
|
2506
|
+
readonly togglingActive: _angular_core.WritableSignal<boolean>;
|
|
2507
|
+
readonly hasExternalCatalogMutations: _angular_core.WritableSignal<boolean>;
|
|
2508
|
+
readonly submitted: _angular_core.WritableSignal<boolean>;
|
|
2509
|
+
readonly saving: _angular_core.WritableSignal<boolean>;
|
|
2510
|
+
readonly hydrating: _angular_core.WritableSignal<boolean>;
|
|
2511
|
+
readonly hydrationError: _angular_core.WritableSignal<string | null>;
|
|
2512
|
+
readonly generatingAiDraft: _angular_core.WritableSignal<boolean>;
|
|
2513
|
+
readonly confirmingDiscard: _angular_core.WritableSignal<boolean>;
|
|
2514
|
+
readonly serverError: _angular_core.WritableSignal<string | null>;
|
|
2515
|
+
readonly aiDraftError: _angular_core.WritableSignal<string | null>;
|
|
2516
|
+
readonly aiRationale: _angular_core.WritableSignal<string | null>;
|
|
2517
|
+
readonly recordActive: _angular_core.WritableSignal<boolean>;
|
|
2518
|
+
readonly officialTablePreviewMsg: _angular_core.WritableSignal<string | null>;
|
|
2519
|
+
readonly previewFields: _angular_core.WritableSignal<FieldMetadata[]>;
|
|
2520
|
+
readonly previewFormGroup: _angular_core.WritableSignal<FormGroup<any>>;
|
|
2521
|
+
readonly aiPromptControl: FormControl<string>;
|
|
2522
|
+
private fieldKeyManuallyEdited;
|
|
2523
|
+
private placeholderManuallyEdited;
|
|
2524
|
+
private optionsManuallyEdited;
|
|
2525
|
+
recordId: string | number | null;
|
|
2526
|
+
private currentEtag;
|
|
2527
|
+
private hydratedEmpCodigo;
|
|
2528
|
+
private originalNullWidth;
|
|
2529
|
+
private extraValidationRules;
|
|
2530
|
+
private extraGovernancePolicy;
|
|
2531
|
+
private lastPreviewFieldName;
|
|
2532
|
+
private lastPreviewDefaultValue;
|
|
2533
|
+
private readonly initialConditional;
|
|
2534
|
+
tx(key: string, params?: Record<string, string | number>): string;
|
|
2535
|
+
readonly form: FormGroup<{
|
|
2536
|
+
resourceKey: FormControl<string>;
|
|
2537
|
+
label: FormControl<string>;
|
|
2538
|
+
fieldKey: FormControl<string>;
|
|
2539
|
+
scopeMode: FormControl<"tenant" | "global">;
|
|
2540
|
+
groupName: FormControl<string>;
|
|
2541
|
+
fieldOrder: FormControl<number>;
|
|
2542
|
+
fieldType: FormControl<string>;
|
|
2543
|
+
controlType: FormControl<string>;
|
|
2544
|
+
width: FormControl<string>;
|
|
2545
|
+
placeholder: FormControl<string>;
|
|
2546
|
+
defaultValue: FormControl<string>;
|
|
2547
|
+
helpText: FormControl<string>;
|
|
2548
|
+
required: FormControl<boolean>;
|
|
2549
|
+
visibleInTable: FormControl<boolean>;
|
|
2550
|
+
filterable: FormControl<boolean>;
|
|
2551
|
+
filterOperation: FormControl<string>;
|
|
2552
|
+
exportable: FormControl<boolean>;
|
|
2553
|
+
readOnly: FormControl<boolean>;
|
|
2554
|
+
optionSourceKind: FormControl<PraxisCustomFieldsOptionSourceKind>;
|
|
2555
|
+
optionTabela: FormControl<string>;
|
|
2556
|
+
customOptions: FormArray<FormGroup<any>>;
|
|
2557
|
+
validationMin: FormControl<number | null>;
|
|
2558
|
+
validationMax: FormControl<number | null>;
|
|
2559
|
+
validationMinLength: FormControl<number | null>;
|
|
2560
|
+
validationMaxLength: FormControl<number | null>;
|
|
2561
|
+
validationPattern: FormControl<string>;
|
|
2562
|
+
validationMask: FormControl<string>;
|
|
2563
|
+
validationMessage: FormControl<string>;
|
|
2564
|
+
fieldIcon: FormControl<string>;
|
|
2565
|
+
numericFormat: FormControl<string>;
|
|
2566
|
+
presenter: FormControl<string>;
|
|
2567
|
+
presentationTone: FormControl<string>;
|
|
2568
|
+
presentationPrefix: FormControl<string>;
|
|
2569
|
+
presentationSuffix: FormControl<string>;
|
|
2570
|
+
presentationLabelTrue: FormControl<string>;
|
|
2571
|
+
presentationLabelFalse: FormControl<string>;
|
|
2572
|
+
conditionalMode: FormControl<"always" | "rule">;
|
|
2573
|
+
conditionalField: FormControl<string>;
|
|
2574
|
+
conditionalOperator: FormControl<string>;
|
|
2575
|
+
conditionalValue: FormControl<string>;
|
|
2576
|
+
lgpdClassification: FormControl<string>;
|
|
2577
|
+
maskingStrategy: FormControl<string>;
|
|
2578
|
+
aiExposurePolicy: FormControl<string>;
|
|
2579
|
+
ownerArea: FormControl<string>;
|
|
2580
|
+
}>;
|
|
2581
|
+
readonly currentFieldType: _angular_core.WritableSignal<string>;
|
|
2582
|
+
readonly formSnapshot: _angular_core.WritableSignal<{
|
|
2583
|
+
resourceKey: string;
|
|
2584
|
+
label: string;
|
|
2585
|
+
fieldKey: string;
|
|
2586
|
+
scopeMode: "tenant" | "global";
|
|
2587
|
+
groupName: string;
|
|
2588
|
+
fieldOrder: number;
|
|
2589
|
+
fieldType: string;
|
|
2590
|
+
controlType: string;
|
|
2591
|
+
width: string;
|
|
2592
|
+
placeholder: string;
|
|
2593
|
+
defaultValue: string;
|
|
2594
|
+
helpText: string;
|
|
2595
|
+
required: boolean;
|
|
2596
|
+
visibleInTable: boolean;
|
|
2597
|
+
filterable: boolean;
|
|
2598
|
+
filterOperation: string;
|
|
2599
|
+
exportable: boolean;
|
|
2600
|
+
readOnly: boolean;
|
|
2601
|
+
optionSourceKind: PraxisCustomFieldsOptionSourceKind;
|
|
2602
|
+
optionTabela: string;
|
|
2603
|
+
customOptions: {
|
|
2604
|
+
[key: string]: any;
|
|
2605
|
+
}[];
|
|
2606
|
+
validationMin: number | null;
|
|
2607
|
+
validationMax: number | null;
|
|
2608
|
+
validationMinLength: number | null;
|
|
2609
|
+
validationMaxLength: number | null;
|
|
2610
|
+
validationPattern: string;
|
|
2611
|
+
validationMask: string;
|
|
2612
|
+
validationMessage: string;
|
|
2613
|
+
fieldIcon: string;
|
|
2614
|
+
numericFormat: string;
|
|
2615
|
+
presenter: string;
|
|
2616
|
+
presentationTone: string;
|
|
2617
|
+
presentationPrefix: string;
|
|
2618
|
+
presentationSuffix: string;
|
|
2619
|
+
presentationLabelTrue: string;
|
|
2620
|
+
presentationLabelFalse: string;
|
|
2621
|
+
conditionalMode: "always" | "rule";
|
|
2622
|
+
conditionalField: string;
|
|
2623
|
+
conditionalOperator: string;
|
|
2624
|
+
conditionalValue: string;
|
|
2625
|
+
lgpdClassification: string;
|
|
2626
|
+
maskingStrategy: string;
|
|
2627
|
+
aiExposurePolicy: string;
|
|
2628
|
+
ownerArea: string;
|
|
2629
|
+
}>;
|
|
2630
|
+
readonly selectedResourceKey: _angular_core.WritableSignal<string>;
|
|
2631
|
+
readonly selectedTargetNativeFields: _angular_core.Signal<PraxisCustomFieldNativeFieldSummary[]>;
|
|
2632
|
+
readonly previewNeighborFields: _angular_core.Signal<PraxisCustomFieldNativeFieldSummary[]>;
|
|
2633
|
+
readonly conditionalTargetFieldOptions: _angular_core.Signal<{
|
|
2634
|
+
value: string;
|
|
2635
|
+
label: string;
|
|
2636
|
+
}[]>;
|
|
2637
|
+
readonly adaptiveDefaultChoices: _angular_core.Signal<{
|
|
2638
|
+
value: string;
|
|
2639
|
+
label: string;
|
|
2640
|
+
}[]>;
|
|
2641
|
+
readonly filteredManagedTargetFields: _angular_core.Signal<Record<string, unknown>[]>;
|
|
2642
|
+
readonly filteredTabelaCatalog: _angular_core.Signal<PraxisTabelaCatalogItem[]>;
|
|
2643
|
+
readonly previewGridSamples: _angular_core.Signal<string[]>;
|
|
2644
|
+
readonly activeFilterOpLabel: _angular_core.Signal<string>;
|
|
2645
|
+
readonly regexTestStatus: _angular_core.Signal<{
|
|
2646
|
+
valid: boolean;
|
|
2647
|
+
label: string;
|
|
2648
|
+
} | null>;
|
|
2649
|
+
readonly compatibleControlOptions: _angular_core.Signal<{
|
|
2650
|
+
value: string;
|
|
2651
|
+
label: string;
|
|
2652
|
+
compatibleFieldTypes: readonly string[];
|
|
2653
|
+
}[]>;
|
|
2654
|
+
readonly compatibleFilterOptions: _angular_core.Signal<readonly {
|
|
2655
|
+
value: string;
|
|
2656
|
+
label: string;
|
|
2657
|
+
}[]>;
|
|
2658
|
+
readonly selectedTargetTitle: _angular_core.Signal<string | null>;
|
|
2659
|
+
readonly selectedTargetDisplay: _angular_core.Signal<string>;
|
|
2660
|
+
readonly availableGroupChips: _angular_core.Signal<string[]>;
|
|
2661
|
+
get optionsArray(): FormArray<FormGroup>;
|
|
2662
|
+
ngOnInit(): void;
|
|
2663
|
+
canUseTenantScope(): boolean;
|
|
2664
|
+
tenantOrgLabel(): string;
|
|
2665
|
+
isChoiceMode(): boolean;
|
|
2666
|
+
shouldShowError(controlName: string): boolean;
|
|
2667
|
+
defaultValueError(): string | null;
|
|
2668
|
+
shouldShowDefaultValueError(): boolean;
|
|
2669
|
+
shouldShowOptionsError(): boolean;
|
|
2670
|
+
optionsErrorMessage(): string | null;
|
|
2671
|
+
applyPreset(preset: PraxisCustomFieldPreset, options?: {
|
|
2672
|
+
markDirty?: boolean;
|
|
2673
|
+
}): void;
|
|
2674
|
+
toggleSlugCustomize(): void;
|
|
2675
|
+
onPlaceholderManualInput(): void;
|
|
2676
|
+
markOptionsManuallyEdited(): void;
|
|
2677
|
+
applyAdaptiveDefault(val: string): void;
|
|
2678
|
+
selectSuggestedIcon(icon: string): void;
|
|
2679
|
+
applyRegexPreset(rx: {
|
|
2680
|
+
pattern: string;
|
|
2681
|
+
message: string;
|
|
2682
|
+
sampleValid: string;
|
|
2683
|
+
}): void;
|
|
2684
|
+
applySuggestedControlType(controlType: string): void;
|
|
2685
|
+
isOptionSourceKindLocked(kind: PraxisCustomFieldsOptionSourceKind): boolean;
|
|
2686
|
+
applyBulkOptionsPaste(): void;
|
|
2687
|
+
toggleTabelaCatalogBrowser(): Promise<void>;
|
|
2688
|
+
selectCatalogTabela(tbl: PraxisTabelaCatalogItem): void;
|
|
2689
|
+
switchToEditorTab(): void;
|
|
2690
|
+
openManageTargetFieldsTab(): Promise<void>;
|
|
2691
|
+
startCreateFromManageTab(): void;
|
|
2692
|
+
loadManagedTargetFields(): Promise<void>;
|
|
2693
|
+
enterInlineEditMode(item: Record<string, unknown>): Promise<void>;
|
|
2694
|
+
private toggleRecordLifecycleById;
|
|
2695
|
+
toggleCurrentRecordActive(): Promise<void>;
|
|
2696
|
+
toggleManagedFieldActive(item: Record<string, unknown>): Promise<void>;
|
|
2697
|
+
openClonePanel(): void;
|
|
2698
|
+
onCloneStrategyChange(strategy: string): void;
|
|
2699
|
+
executeClone(): Promise<void>;
|
|
2700
|
+
onAiPromptInput(): void;
|
|
2701
|
+
applyAiPromptExample(example: string): void;
|
|
2702
|
+
generateAiDraft(): Promise<void>;
|
|
2703
|
+
onLabelInput(): void;
|
|
2704
|
+
onFieldKeyInput(): void;
|
|
2705
|
+
selectGroup(group: string): void;
|
|
2706
|
+
onFieldTypeChanged(): void;
|
|
2707
|
+
onControlTypeChanged(): void;
|
|
2708
|
+
onOptionSourceKindChanged(kind: PraxisCustomFieldsOptionSourceKind): void;
|
|
2709
|
+
addOptionRow(): void;
|
|
2710
|
+
onOptionLabelInput(index: number): void;
|
|
2711
|
+
removeOptionRow(index: number): void;
|
|
2712
|
+
moveOption(index: number, delta: number): void;
|
|
2713
|
+
checkOfficialTablePreview(): Promise<void>;
|
|
2714
|
+
retryHydration(): void;
|
|
2715
|
+
requestClose(): void;
|
|
2716
|
+
forceClose(): void;
|
|
2717
|
+
save(): Promise<void>;
|
|
2718
|
+
private loadTargetCatalog;
|
|
2719
|
+
private hydrateRemoteRecord;
|
|
2720
|
+
private loadImpactSummary;
|
|
2721
|
+
private hydrateFromRecord;
|
|
2722
|
+
private pushOptionRow;
|
|
2723
|
+
private collectCleanedOptions;
|
|
2724
|
+
private buildPayload;
|
|
2725
|
+
private rebuildLivePreview;
|
|
2726
|
+
private resolveInitialScopeMode;
|
|
2727
|
+
private resolveInitialOptionSourceKind;
|
|
2728
|
+
resolveActiveEmpCodigo(): number | null;
|
|
2729
|
+
private resolveApiEntry;
|
|
2730
|
+
private resolveEndpointUrl;
|
|
2731
|
+
private buildBaseHeaders;
|
|
2732
|
+
private extractRecordId;
|
|
2733
|
+
private extractInitialEtag;
|
|
2734
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PraxisCustomFieldStudioDialogComponent, never>;
|
|
2735
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PraxisCustomFieldStudioDialogComponent, "praxis-custom-field-studio-dialog", never, {}, {}, never, never, true, never>;
|
|
2736
|
+
}
|
|
2737
|
+
|
|
2738
|
+
declare const PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_NAMESPACE = "praxisCustomFieldsStudio";
|
|
2739
|
+
declare const PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_CONFIG: Partial<PraxisI18nConfig>;
|
|
2740
|
+
declare function translateStudioText(i18n: Pick<PraxisI18nService, 't' | 'getLocale' | 'getFallbackLocale'> | null | undefined, key: string, params?: PraxisTranslationParams, fallback?: string): string;
|
|
2741
|
+
|
|
2742
|
+
export { CRUD_AI_CAPABILITIES, CrudLauncherService, CrudMetadataEditorComponent, CrudPageHeaderComponent, DialogService, DynamicFormDialogHostComponent, PRAXIS_CHOICE_FIELD_TYPES, PRAXIS_CONTROL_TYPE_CHOICES, PRAXIS_CRUD_AUTHORING_MANIFEST, PRAXIS_CRUD_COMPONENT_METADATA, PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_CONFIG, PRAXIS_CUSTOM_FIELDS_STUDIO_I18N_NAMESPACE, PRAXIS_CUSTOM_FIELD_AI_PROMPT_EXAMPLES, PRAXIS_CUSTOM_FIELD_PRESETS, PRAXIS_CUSTOM_FIELD_WIDTH_CHOICES, PRAXIS_DOSSIER_PAGE_COMPONENT_METADATA, PRAXIS_FIELD_TYPE_CHOICES, PRAXIS_FILTER_OPERATIONS_BY_FIELD_TYPE, PRAXIS_FILTER_OPERATION_CHOICES, PRAXIS_MULTI_CHOICE_CONTROL_TYPES, PRAXIS_REGEX_VALIDATION_PRESETS, PRAXIS_SUGGESTED_FIELD_ICONS, PraxisBulkEditDialogComponent, PraxisBulkOperationDialogComponent, PraxisCrudBulkProposalBridgeService, PraxisCrudComponent, PraxisCrudWidgetConfigEditor, PraxisCustomFieldStudioDialogComponent, PraxisDossierPageComponent, PraxisKpiBandComponent, PraxisResourcePage, assertCrudMetadata, createCrudAuthoringDocument, createCrudFormRoute, findCrudAction, formatKpiValue, getCompatibleFilterOperations, isControlCompatibleWithFieldType, isResourceDiscoveredCrudAction, normalizeCrudAuthoringDocument, normalizeStudioControlType, openCrudMetadataEditor, parseLegacyOrCrudDocument, providePraxisCrudBulkProposalBridge, providePraxisCrudMetadata, providePraxisDossierPageMetadata, serializeCrudAuthoringDocument, slugifyCustomFieldKey, slugifyOptionValue, toDynamicFieldControlType, translateStudioText, validateCrudAuthoringDocument, validateStudioDefaultValue };
|
|
2743
|
+
export type { BulkDialogStep, BulkEditStep, Capability, CapabilityCatalog, CapabilityCategory, CrudAction, CrudActionFormContract, CrudActionResolutionMode, CrudActionRuntimeEvent, CrudAuthoringDocument, CrudAuthoringWidgetPersistenceEvent, CrudDefaults, CrudEditorDiagnostic, CrudFilterBarConfig, CrudFilterBarQuickFilter, CrudFormReactiveDeterminationStabilityChange, CrudFormStepTelemetryEvent, CrudHeaderConfig, CrudHeaderVariant, CrudInteractionMode, CrudKpiBandConfig, CrudKpiCardConfig, CrudKpiCardVariant, CrudMetadata, CrudMetadataAssertionOptions, CrudPageHeaderConfig, CrudPageHeaderDomainConfig, CrudParamMapping, CrudReactiveDeterminationStabilityChange, CrudReactiveDeterminationStabilityStatus, CrudResource, CrudTableConfig, CrudValidationContext, DialogConfig, DialogRef, EvaluatedKpiCard, FormOpenMode, OpenCrudMetadataEditorOptions, PraxisBulkEditDialogData, PraxisBulkOperationDialogData, PraxisCrudWidgetEditorInputs, PraxisCrudWidgetEditorValue, PraxisCustomFieldAiDraftRequest, PraxisCustomFieldAiDraftResponse, PraxisCustomFieldImpactSummary, PraxisCustomFieldNativeFieldSummary, PraxisCustomFieldOptionDraft, PraxisCustomFieldPreset, PraxisCustomFieldPreviewDetermination, PraxisCustomFieldStudioDialogData, PraxisCustomFieldStudioDialogResult, PraxisCustomFieldTargetCatalogItem, PraxisCustomFieldsOptionSourceKind, PraxisCustomFieldsStudioConfig, PraxisCustomFieldsStudioMode, PraxisDossierChildSurfaceConfig, PraxisDossierChildTabEntry, PraxisDossierMetadata, PraxisDossierQuickActionEvent, PraxisDossierSurfaceVariant, PraxisResourceDomainBadge, PraxisResourceScopeBarConfig, PraxisResourceScopeBarInput, PraxisTabelaCatalogItem, ValueKind };
|