@praxisui/table 3.0.0-beta.6 → 3.0.0-beta.7
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 +47 -2
- package/fesm2022/praxisui-table.mjs +382 -271
- package/fesm2022/praxisui-table.mjs.map +1 -1
- package/index.d.ts +36 -5
- package/package.json +7 -7
package/index.d.ts
CHANGED
|
@@ -10,7 +10,7 @@ import { CdkDragDrop, CdkDragEnd, CdkDrag, CdkDropList } from '@angular/cdk/drag
|
|
|
10
10
|
import { BehaviorSubject, Subscription, Observable } from 'rxjs';
|
|
11
11
|
import { SettingsPanelService, SettingsValueProvider } from '@praxisui/settings-panel';
|
|
12
12
|
import * as _praxisui_core from '@praxisui/core';
|
|
13
|
-
import { TableConfig, LoggerService, GlobalConfigService, AsyncConfigStorage, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, LoadingState, ColumnDefinition, ConnectionStorage, LoadingOrchestrator, PraxisLoadingRenderer, GlobalActionSpec, IconPickerService, GlobalActionField, TableConfigService, FieldDefinition, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
|
|
13
|
+
import { TableConfig, LoggerService, GlobalConfigService, AsyncConfigStorage, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, LoadingState, ColumnDefinition, ConnectionStorage, LoadingOrchestrator, PraxisLoadingRenderer, GlobalActionSpec, IconPickerService, SurfaceOpenPayload, GlobalActionField, TableConfigService, FieldDefinition, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog } from '@praxisui/core';
|
|
14
14
|
import { FunctionRegistry, DslParser } from '@praxisui/specification';
|
|
15
15
|
import { FormGroup, FormControl, FormBuilder } from '@angular/forms';
|
|
16
16
|
import { MatDialog } from '@angular/material/dialog';
|
|
@@ -227,6 +227,7 @@ declare class DataFormattingService {
|
|
|
227
227
|
private applyMask;
|
|
228
228
|
private formatBoolean;
|
|
229
229
|
needsFormatting(columnType: ColumnDataType$1, formatString: string | null | undefined): boolean;
|
|
230
|
+
getHostLocale(): string;
|
|
230
231
|
private resolveFormattingContext;
|
|
231
232
|
private getLocalePipeBundle;
|
|
232
233
|
private getNumericSeparators;
|
|
@@ -765,6 +766,16 @@ type SchemaFieldHint = {
|
|
|
765
766
|
optionValueKey?: string;
|
|
766
767
|
enumValues?: string[];
|
|
767
768
|
};
|
|
769
|
+
type PraxisDataQueryContextBridge = {
|
|
770
|
+
filters?: Record<string, unknown> | null;
|
|
771
|
+
sort?: string[] | null;
|
|
772
|
+
limit?: number | null;
|
|
773
|
+
page?: {
|
|
774
|
+
index?: number | null;
|
|
775
|
+
size?: number | null;
|
|
776
|
+
} | null;
|
|
777
|
+
meta?: Record<string, unknown> | null;
|
|
778
|
+
};
|
|
768
779
|
type DataMode = 'remote' | 'local' | 'empty';
|
|
769
780
|
type RowExpansionTrigger = 'icon' | 'row' | 'keyboard' | 'api' | 'restore';
|
|
770
781
|
type RowExpansionReasonCode = 'user' | 'policy' | 'restore' | 'api';
|
|
@@ -867,6 +878,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
867
878
|
crudContext: any;
|
|
868
879
|
dslFunctionRegistry: FunctionRegistry<any> | null;
|
|
869
880
|
filterCriteria: Record<string, any>;
|
|
881
|
+
queryContext: PraxisDataQueryContextBridge | null;
|
|
870
882
|
rowClick: EventEmitter<any>;
|
|
871
883
|
rowDoubleClick: EventEmitter<any>;
|
|
872
884
|
rowExpansionChange: EventEmitter<RowExpansionChangeEvent>;
|
|
@@ -1017,7 +1029,6 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1017
1029
|
private computedExpressionEvaluator;
|
|
1018
1030
|
private resizeObserver;
|
|
1019
1031
|
private removeViewportChangeListeners;
|
|
1020
|
-
private warnedMissingId;
|
|
1021
1032
|
private readonly warnedUnsupportedFeatures;
|
|
1022
1033
|
private warnedStrictCspStyleMode;
|
|
1023
1034
|
private fallbackLogger?;
|
|
@@ -1056,7 +1067,6 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1056
1067
|
private storageKey;
|
|
1057
1068
|
private tableConfigKey;
|
|
1058
1069
|
private filterConfigKey;
|
|
1059
|
-
private warnMissingId;
|
|
1060
1070
|
private ensureConfigDefaults;
|
|
1061
1071
|
private setShowToolbar;
|
|
1062
1072
|
private configureDslRuntime;
|
|
@@ -1269,6 +1279,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1269
1279
|
*/
|
|
1270
1280
|
private inferFieldTypeFromFieldName;
|
|
1271
1281
|
private fetchData;
|
|
1282
|
+
private getEffectiveFilterCriteria;
|
|
1272
1283
|
retryData(): void;
|
|
1273
1284
|
reloadSchema(): void;
|
|
1274
1285
|
refetch(): void;
|
|
@@ -1280,6 +1291,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1280
1291
|
* 3. format (data formatting like dates, numbers, currency)
|
|
1281
1292
|
*/
|
|
1282
1293
|
getCellValue(rowData: any, column: ColumnDefinition): any;
|
|
1294
|
+
private resolveImplicitFormat;
|
|
1283
1295
|
getCellClasses(rowData: any, column: ColumnDefinition): string[] | undefined;
|
|
1284
1296
|
getCellNgStyle(rowData: any, column: ColumnDefinition): Record<string, string> | undefined;
|
|
1285
1297
|
private resetComputedContextCache;
|
|
@@ -1545,7 +1557,7 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1545
1557
|
getRowMenuIcon(): string;
|
|
1546
1558
|
ngOnDestroy(): void;
|
|
1547
1559
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisTable, [null, null, null, null, null, null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1548
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTable, "praxis-table", never, { "config": { "alias": "config"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableId": { "alias": "tableId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "autoDelete": { "alias": "autoDelete"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "crudContext": { "alias": "crudContext"; "required": false; }; "dslFunctionRegistry": { "alias": "dslFunctionRegistry"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; }, { "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "rowExpansionChange": "rowExpansionChange"; "rowAction": "rowAction"; "toolbarAction": "toolbarAction"; "bulkAction": "bulkAction"; "columnReorder": "columnReorder"; "columnReorderAttempt": "columnReorderAttempt"; "beforeDelete": "beforeDelete"; "afterDelete": "afterDelete"; "deleteError": "deleteError"; "beforeBulkDelete": "beforeBulkDelete"; "afterBulkDelete": "afterBulkDelete"; "bulkDeleteError": "bulkDeleteError"; "schemaStatusChange": "schemaStatusChange"; "metadataChange": "metadataChange"; "loadingStateChange": "loadingStateChange"; }, ["toolbar", "projectedFilter"], ["[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]"], true, never>;
|
|
1560
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisTable, "praxis-table", never, { "config": { "alias": "config"; "required": false; }; "resourcePath": { "alias": "resourcePath"; "required": false; }; "data": { "alias": "data"; "required": false; }; "tableId": { "alias": "tableId"; "required": true; }; "componentInstanceId": { "alias": "componentInstanceId"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "autoDelete": { "alias": "autoDelete"; "required": false; }; "notifyIfOutdated": { "alias": "notifyIfOutdated"; "required": false; }; "snoozeMs": { "alias": "snoozeMs"; "required": false; }; "autoOpenSettingsOnOutdated": { "alias": "autoOpenSettingsOnOutdated"; "required": false; }; "crudContext": { "alias": "crudContext"; "required": false; }; "dslFunctionRegistry": { "alias": "dslFunctionRegistry"; "required": false; }; "filterCriteria": { "alias": "filterCriteria"; "required": false; }; "queryContext": { "alias": "queryContext"; "required": false; }; "enableCustomization": { "alias": "enableCustomization"; "required": false; }; "dense": { "alias": "dense"; "required": false; }; }, { "rowClick": "rowClick"; "rowDoubleClick": "rowDoubleClick"; "rowExpansionChange": "rowExpansionChange"; "rowAction": "rowAction"; "toolbarAction": "toolbarAction"; "bulkAction": "bulkAction"; "columnReorder": "columnReorder"; "columnReorderAttempt": "columnReorderAttempt"; "beforeDelete": "beforeDelete"; "afterDelete": "afterDelete"; "deleteError": "deleteError"; "beforeBulkDelete": "beforeBulkDelete"; "afterBulkDelete": "afterBulkDelete"; "bulkDeleteError": "bulkDeleteError"; "schemaStatusChange": "schemaStatusChange"; "metadataChange": "metadataChange"; "loadingStateChange": "loadingStateChange"; }, ["toolbar", "projectedFilter"], ["[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]", "[advancedFilter]", "[toolbar]"], true, never>;
|
|
1549
1561
|
static ngAcceptInputType_enableCustomization: unknown;
|
|
1550
1562
|
}
|
|
1551
1563
|
|
|
@@ -2076,7 +2088,7 @@ interface ToolbarAction {
|
|
|
2076
2088
|
icon?: string;
|
|
2077
2089
|
type: 'button' | 'icon' | 'fab' | 'menu';
|
|
2078
2090
|
color?: 'primary' | 'accent' | 'warn';
|
|
2079
|
-
/**
|
|
2091
|
+
/** Aparência do botão Material: filled (flat), outlined (stroked), elevated (raised), text, tonal */
|
|
2080
2092
|
appearance?: 'filled' | 'outlined' | 'elevated' | 'text' | 'tonal';
|
|
2081
2093
|
action: string;
|
|
2082
2094
|
position: 'start' | 'end';
|
|
@@ -2146,8 +2158,20 @@ declare class ToolbarActionsEditorComponent implements OnInit, OnDestroy, OnChan
|
|
|
2146
2158
|
private readonly actionFieldDrafts;
|
|
2147
2159
|
private readonly actionFieldErrors;
|
|
2148
2160
|
private readonly warnedInvalidShortcutScopes;
|
|
2161
|
+
private readonly i18n;
|
|
2149
2162
|
private destroy$;
|
|
2150
2163
|
constructor(fb: FormBuilder, iconPicker: IconPickerService);
|
|
2164
|
+
getGlobalActionSpecLabel(spec: {
|
|
2165
|
+
id?: string;
|
|
2166
|
+
label?: string;
|
|
2167
|
+
}): string;
|
|
2168
|
+
getGlobalActionSpecHint(spec: {
|
|
2169
|
+
id?: string;
|
|
2170
|
+
description?: string;
|
|
2171
|
+
param?: {
|
|
2172
|
+
hint?: string;
|
|
2173
|
+
};
|
|
2174
|
+
}): string;
|
|
2151
2175
|
ngOnInit(): void;
|
|
2152
2176
|
ngOnChanges(changes: SimpleChanges): void;
|
|
2153
2177
|
ngOnDestroy(): void;
|
|
@@ -2182,6 +2206,12 @@ declare class ToolbarActionsEditorComponent implements OnInit, OnDestroy, OnChan
|
|
|
2182
2206
|
getGlobalActionSchema(action: {
|
|
2183
2207
|
action?: string;
|
|
2184
2208
|
}): _praxisui_core.GlobalActionUiSchema | undefined;
|
|
2209
|
+
getSurfaceOpenActionPayload(action: {
|
|
2210
|
+
action?: string;
|
|
2211
|
+
}): SurfaceOpenPayload;
|
|
2212
|
+
onSurfaceOpenActionPayloadChange(action: {
|
|
2213
|
+
action?: string;
|
|
2214
|
+
}, payload: SurfaceOpenPayload, kind: 'toolbar' | 'row' | 'bulk'): void;
|
|
2185
2215
|
shouldShowGlobalActionField(action: {
|
|
2186
2216
|
action?: string;
|
|
2187
2217
|
}, field: GlobalActionField): boolean;
|
|
@@ -2200,6 +2230,7 @@ declare class ToolbarActionsEditorComponent implements OnInit, OnDestroy, OnChan
|
|
|
2200
2230
|
private getActionParamInfo;
|
|
2201
2231
|
private parseMethodAndUrl;
|
|
2202
2232
|
private stringifyJson;
|
|
2233
|
+
private normalizeSurfaceOpenPayload;
|
|
2203
2234
|
private setActionFieldError;
|
|
2204
2235
|
private clearActionFieldError;
|
|
2205
2236
|
private collectGlobalActionFieldValues;
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.7",
|
|
4
4
|
"description": "Advanced data table for Angular (Praxis UI) with editing, filtering, sorting, virtualization, and settings panel integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
|
-
"@praxisui/core": "^3.0.0-beta.
|
|
9
|
-
"@praxisui/dynamic-fields": "^3.0.0-beta.
|
|
10
|
-
"@praxisui/dynamic-form": "^3.0.0-beta.
|
|
11
|
-
"@praxisui/metadata-editor": "^3.0.0-beta.
|
|
12
|
-
"@praxisui/settings-panel": "^3.0.0-beta.
|
|
13
|
-
"@praxisui/table-rule-builder": "^3.0.0-beta.
|
|
8
|
+
"@praxisui/core": "^3.0.0-beta.7",
|
|
9
|
+
"@praxisui/dynamic-fields": "^3.0.0-beta.7",
|
|
10
|
+
"@praxisui/dynamic-form": "^3.0.0-beta.7",
|
|
11
|
+
"@praxisui/metadata-editor": "^3.0.0-beta.7",
|
|
12
|
+
"@praxisui/settings-panel": "^3.0.0-beta.7",
|
|
13
|
+
"@praxisui/table-rule-builder": "^3.0.0-beta.7"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.3.0"
|