@praxisui/table 9.0.0-beta.46 → 9.0.0-beta.48
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 +1 -0
- package/ai/component-registry.json +22 -6
- package/fesm2022/{praxisui-table-praxisui-table-D5XtCbRm.mjs → praxisui-table-praxisui-table-D5UThmhh.mjs} +404 -35
- package/fesm2022/{praxisui-table-table-ai.adapter-DKr77wDN.mjs → praxisui-table-table-ai.adapter-DE5WpZ-t.mjs} +1 -1
- package/fesm2022/praxisui-table.mjs +1 -1
- package/package.json +10 -10
- package/types/praxisui-table.d.ts +28 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { firstValueFrom } from 'rxjs';
|
|
2
2
|
import { BaseAiAdapter, sanitizePraxisAssistantText, createComponentAuthoringContext } from '@praxisui/ai';
|
|
3
3
|
import { PRAXIS_GLOBAL_ACTION_CATALOG, deepMerge } from '@praxisui/core';
|
|
4
|
-
import { H as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, k as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, X as coerceTableComponentEditPlans, Z as compileTableComponentEditPlans, K as TASK_PRESETS, a2 as getTableComponentEditPlanCapabilities, z as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, x as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, E as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, I as TABLE_COMPONENT_EDIT_PLAN_VERSION, y as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, G as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-
|
|
4
|
+
import { H as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, k as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, X as coerceTableComponentEditPlans, Z as compileTableComponentEditPlans, K as TASK_PRESETS, a2 as getTableComponentEditPlanCapabilities, z as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, x as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, E as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, I as TABLE_COMPONENT_EDIT_PLAN_VERSION, y as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, G as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-D5UThmhh.mjs';
|
|
5
5
|
|
|
6
6
|
const TABLE_ROW_EXPRESSION_CONTEXT_OPTION = {
|
|
7
7
|
mode: 'expression',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { A as AnalyticsTableConfigAdapterService, a as AnalyticsTableContractService, b as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, c as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, d as ColumnsConfigEditorComponent, D as DATE_PRESETS, e as DataFormatterComponent, f as DataFormattingService, F as FORMULA_TEMPLATES, g as FilterConfigService, h as FilterSettingsComponent, i as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, j as PRAXIS_FILTER_COMPONENT_METADATA, k as PRAXIS_TABLE_AUTHORING_MANIFEST, l as PRAXIS_TABLE_COMPONENT_METADATA, m as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, n as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, o as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, p as PraxisFilter, q as PraxisFilterWidgetConfigEditor, r as PraxisTable, s as PraxisTableConfigEditor, t as PraxisTableInlineAuthoringEditorComponent, u as PraxisTableToolbar, v as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, w as TABLE_COMPONENT_AI_CAPABILITIES, x as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, y as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, z as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, E as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, G as TABLE_COMPONENT_EDIT_PLAN_KIND, I as TABLE_COMPONENT_EDIT_PLAN_VERSION, K as TASK_PRESETS, L as TableDefaultsProvider, O as TableRulesEditorComponent, Q as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, R as VisualFormulaBuilderComponent, U as buildTableApplyPlan, W as coerceTableComponentEditPlan, X as coerceTableComponentEditPlans, Y as compileTableComponentEditPlan, Z as compileTableComponentEditPlans, _ as createTableAuthoringDocument, $ as getActionId, a0 as getEnum, a1 as getTableCapabilities, a2 as getTableComponentEditPlanCapabilities, a3 as isTableRendererSupportedByRichContentP0, a4 as mapTableRendererToRichContentP0, a5 as normalizeTableAuthoringDocument, a6 as parseLegacyOrTableDocument, a7 as providePraxisFilterMetadata, a8 as providePraxisTableMetadata, a9 as providePraxisTableToolbarAppearance, aa as serializeTableAuthoringDocument, ab as toCanonicalTableConfig, ac as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-
|
|
1
|
+
export { A as AnalyticsTableConfigAdapterService, a as AnalyticsTableContractService, b as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, c as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, d as ColumnsConfigEditorComponent, D as DATE_PRESETS, e as DataFormatterComponent, f as DataFormattingService, F as FORMULA_TEMPLATES, g as FilterConfigService, h as FilterSettingsComponent, i as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, j as PRAXIS_FILTER_COMPONENT_METADATA, k as PRAXIS_TABLE_AUTHORING_MANIFEST, l as PRAXIS_TABLE_COMPONENT_METADATA, m as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, n as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, o as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, p as PraxisFilter, q as PraxisFilterWidgetConfigEditor, r as PraxisTable, s as PraxisTableConfigEditor, t as PraxisTableInlineAuthoringEditorComponent, u as PraxisTableToolbar, v as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, w as TABLE_COMPONENT_AI_CAPABILITIES, x as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, y as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, z as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, E as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, G as TABLE_COMPONENT_EDIT_PLAN_KIND, I as TABLE_COMPONENT_EDIT_PLAN_VERSION, K as TASK_PRESETS, L as TableDefaultsProvider, O as TableRulesEditorComponent, Q as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, R as VisualFormulaBuilderComponent, U as buildTableApplyPlan, W as coerceTableComponentEditPlan, X as coerceTableComponentEditPlans, Y as compileTableComponentEditPlan, Z as compileTableComponentEditPlans, _ as createTableAuthoringDocument, $ as getActionId, a0 as getEnum, a1 as getTableCapabilities, a2 as getTableComponentEditPlanCapabilities, a3 as isTableRendererSupportedByRichContentP0, a4 as mapTableRendererToRichContentP0, a5 as normalizeTableAuthoringDocument, a6 as parseLegacyOrTableDocument, a7 as providePraxisFilterMetadata, a8 as providePraxisTableMetadata, a9 as providePraxisTableToolbarAppearance, aa as serializeTableAuthoringDocument, ab as toCanonicalTableConfig, ac as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-D5UThmhh.mjs';
|
package/package.json
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table",
|
|
3
|
-
"version": "9.0.0-beta.
|
|
3
|
+
"version": "9.0.0-beta.48",
|
|
4
4
|
"description": "Advanced data table for Angular (Praxis UI) with editing, filtering, sorting, virtualization, and settings panel integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/platform-browser": "^21.0.0",
|
|
9
|
-
"@praxisui/ai": "^9.0.0-beta.
|
|
10
|
-
"@praxisui/core": "^9.0.0-beta.
|
|
11
|
-
"@praxisui/dynamic-fields": "^9.0.0-beta.
|
|
12
|
-
"@praxisui/dynamic-form": "^9.0.0-beta.
|
|
13
|
-
"@praxisui/metadata-editor": "^9.0.0-beta.
|
|
14
|
-
"@praxisui/rich-content": "^9.0.0-beta.
|
|
15
|
-
"@praxisui/settings-panel": "^9.0.0-beta.
|
|
16
|
-
"@praxisui/table-rule-builder": "^9.0.0-beta.
|
|
9
|
+
"@praxisui/ai": "^9.0.0-beta.48",
|
|
10
|
+
"@praxisui/core": "^9.0.0-beta.48",
|
|
11
|
+
"@praxisui/dynamic-fields": "^9.0.0-beta.48",
|
|
12
|
+
"@praxisui/dynamic-form": "^9.0.0-beta.48",
|
|
13
|
+
"@praxisui/metadata-editor": "^9.0.0-beta.48",
|
|
14
|
+
"@praxisui/rich-content": "^9.0.0-beta.48",
|
|
15
|
+
"@praxisui/settings-panel": "^9.0.0-beta.48",
|
|
16
|
+
"@praxisui/table-rule-builder": "^9.0.0-beta.48",
|
|
17
17
|
"@angular/cdk": "^21.0.0",
|
|
18
18
|
"@angular/forms": "^21.0.0",
|
|
19
19
|
"@angular/material": "^21.0.0",
|
|
20
20
|
"@angular/router": "^21.0.0",
|
|
21
|
-
"@praxisui/dialog": "^9.0.0-beta.
|
|
21
|
+
"@praxisui/dialog": "^9.0.0-beta.48",
|
|
22
22
|
"rxjs": "~7.8.0"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _praxisui_core from '@praxisui/core';
|
|
2
|
-
import { TableToolbarAppearanceConfig, TableConfig, LoggerService, PraxisI18nService, TableToolbarAppearanceVariant, TableToolbarAppearanceDensity, TableToolbarAppearanceShape, TableToolbarAppearanceDivider, TableToolbarTokenName, GlobalConfigService, AsyncConfigStorage, LocalStorageConfigService, ApiUrlEntry, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, PraxisTextValue, PraxisAnalyticsProjection, PraxisDataQueryContext, ApiUrlConfig, PraxisQueryFilterExpression, RecordRelatedSurfaceContextPack, PraxisResourceEvent, LoadingState, RestApiLinks, ColumnDefinition, RichBlockNode, ResourceCapabilityDigest, ConnectionStorage, LoadingOrchestrator, GlobalActionService, PraxisLoadingRenderer, PraxisRuntimeComponentObservationEnvelope, TableDetailRichListNode, TableDetailCardGridNode, TableDetailCardGridCardNode, TableDetailTimelineNode, JsonLogicDataRecord, TableDetailListItemAction, TableDetailActionBarNode, TableDetailActionBarAction, TableDetailRefNode, TableDetailTemplateRefNode, TableDetailDiagramEmbedNode, TableDetailEmbedAction,
|
|
2
|
+
import { TableToolbarAppearanceConfig, TableConfig, PraxisExportScope, LoggerService, PraxisI18nService, TableToolbarAppearanceVariant, TableToolbarAppearanceDensity, TableToolbarAppearanceShape, TableToolbarAppearanceDivider, TableToolbarTokenName, GlobalConfigService, AsyncConfigStorage, LocalStorageConfigService, ApiUrlEntry, FieldMetadata, SchemaIdParams, FormConfig, GenericCrudService, DynamicFormService, SchemaNormalizerService, ComponentKeyService, ComponentDocMeta, PraxisTextValue, PraxisAnalyticsProjection, PraxisDataQueryContext, ApiUrlConfig, PraxisQueryFilterExpression, RecordRelatedSurfaceContextPack, PraxisResourceEvent, LoadingState, RestApiLinks, ColumnDefinition, RichBlockNode, ResourceCapabilityDigest, ConnectionStorage, LoadingOrchestrator, GlobalActionService, PraxisLoadingRenderer, PraxisRuntimeComponentObservationEnvelope, TableDetailRichListNode, TableDetailCardGridNode, TableDetailCardGridCardNode, TableDetailTimelineNode, JsonLogicDataRecord, TableDetailListItemAction, TableDetailActionBarNode, TableDetailActionBarAction, TableDetailRefNode, TableDetailTemplateRefNode, TableDetailDiagramEmbedNode, TableDetailEmbedAction, GlobalActionRef, PraxisRuntimeGlobalActionEffect, ResourceActionCatalogItem, ResourceSurfaceCatalogItem, ResourceCapabilityOperation, JsonLogicExpression, GlobalActionCatalogEntry, IconPickerService, SurfaceOpenPayload, GlobalActionField, FieldDefinition, PraxisRuntimeConditionalEffectRule, PraxisJsonLogicService, TableConfigService, SettingsValueProvider as SettingsValueProvider$1, AnalyticsSchemaContractService, AnalyticsPresentationResolver, RichPresenterNode, RichComposeNode, ComponentAuthoringManifest, AiCapability, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, OnDestroy, EventEmitter, ElementRef, Provider, OnInit, OnChanges, AfterViewInit, DoCheck, DestroyRef, ChangeDetectorRef, NgZone, SimpleChanges, ComponentRef, AfterContentInit, Injector, Type } from '@angular/core';
|
|
5
5
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -65,6 +65,8 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
65
65
|
}>;
|
|
66
66
|
exportAction: EventEmitter<{
|
|
67
67
|
format: string;
|
|
68
|
+
scope?: PraxisExportScope;
|
|
69
|
+
localOnly?: boolean;
|
|
68
70
|
}>;
|
|
69
71
|
columnVisibilityToggle: EventEmitter<{
|
|
70
72
|
field: string;
|
|
@@ -76,6 +78,7 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
76
78
|
private readonly warnedInvalidToolbarActionTypes;
|
|
77
79
|
private readonly warnedMenuWithoutChildren;
|
|
78
80
|
private readonly warnedVisibleWhenFallback;
|
|
81
|
+
private readonly warnedDisabledWhenFallback;
|
|
79
82
|
private readonly warnedInvalidShortcuts;
|
|
80
83
|
private readonly warnedInvalidShortcutScopes;
|
|
81
84
|
private readonly warnedShortcutConflicts;
|
|
@@ -94,8 +97,18 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
94
97
|
getToolbarIcon(): string | null;
|
|
95
98
|
getToolbarTextAlign(): 'start' | 'center' | 'end';
|
|
96
99
|
getExportDataLabel(): string;
|
|
100
|
+
getVisibleExcelExportLabel(): string;
|
|
101
|
+
getVisibleExcelExportDescription(): string;
|
|
102
|
+
getVisibleExcelExportAriaLabel(): string;
|
|
103
|
+
getExportFormatLabel(format: unknown): string;
|
|
104
|
+
getExportFormatTooltip(format: unknown): string;
|
|
105
|
+
getExportFormatAriaLabel(format: unknown): string;
|
|
97
106
|
getMoreActionsLabel(): string;
|
|
98
107
|
emitExportAction(event: Event, format: string): void;
|
|
108
|
+
emitVisibleExcelExportAction(event: Event): void;
|
|
109
|
+
isExcelExportFormat(format: unknown): boolean;
|
|
110
|
+
isVisibleExcelExportEnabled(format: unknown): boolean;
|
|
111
|
+
private normalizeExportFormat;
|
|
99
112
|
getColumnsVisibilityLabel(): string;
|
|
100
113
|
getColumnsVisibilityIcon(): string;
|
|
101
114
|
isColumnsVisibilityEnabled(): boolean;
|
|
@@ -106,6 +119,7 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
106
119
|
onColumnVisibilityMenuToggle(event: Event, field: string, currentlyVisible: boolean): void;
|
|
107
120
|
toggleColumnVisibility(field: string, visible: boolean): void;
|
|
108
121
|
private tx;
|
|
122
|
+
private interpolateText;
|
|
109
123
|
ngOnDestroy(): void;
|
|
110
124
|
getToolbarVariant(): TableToolbarAppearanceVariant;
|
|
111
125
|
getToolbarDensity(): TableToolbarAppearanceDensity;
|
|
@@ -131,20 +145,29 @@ declare class PraxisTableToolbar implements OnDestroy {
|
|
|
131
145
|
getActionColor(action: any): any;
|
|
132
146
|
getActionAriaLabel(action: any): string;
|
|
133
147
|
isActionDisabled(action: any): boolean;
|
|
148
|
+
getActionTooltip(action: any): string | null;
|
|
134
149
|
onDocumentKeydown(event: KeyboardEvent): void;
|
|
135
150
|
getBulkActionsPosition(): 'toolbar' | 'floating' | 'both';
|
|
136
151
|
shouldRenderToolbarBulkActions(): boolean;
|
|
137
152
|
getBulkToolbarActions(): any[];
|
|
153
|
+
private isBulkToolbarAction;
|
|
138
154
|
private getVisibleToolbarActions;
|
|
139
155
|
private resolveVisibleToolbarAction;
|
|
140
156
|
private isActionVisible;
|
|
141
157
|
private evaluateVisibleWhen;
|
|
158
|
+
private evaluateDisabledWhen;
|
|
159
|
+
private resolveDisabledWhenFallback;
|
|
142
160
|
private isJsonLogicExpression;
|
|
143
161
|
private resolveVisibleWhenFallback;
|
|
144
162
|
private resolveVisibleWhenFallbackPolicy;
|
|
145
163
|
private resolveRuntimeEnvironment;
|
|
146
164
|
private buildEvaluationContext;
|
|
165
|
+
private getSelectedCount;
|
|
166
|
+
private getBulkActionMinSelections;
|
|
167
|
+
private getBulkActionMaxSelections;
|
|
168
|
+
private resolveDisabledActionReason;
|
|
147
169
|
private warnVisibleWhenFallback;
|
|
170
|
+
private warnDisabledWhenFallback;
|
|
148
171
|
private collectShortcutBindings;
|
|
149
172
|
private resolveShortcutScope;
|
|
150
173
|
private normalizeShortcutCombo;
|
|
@@ -1745,10 +1768,14 @@ declare class PraxisTable implements OnInit, OnChanges, AfterViewInit, AfterCont
|
|
|
1745
1768
|
onExportAction(event: {
|
|
1746
1769
|
format: string;
|
|
1747
1770
|
scope?: PraxisExportScope;
|
|
1771
|
+
localOnly?: boolean;
|
|
1748
1772
|
}): Promise<void>;
|
|
1749
1773
|
canRunExportAction(format: unknown): boolean;
|
|
1750
1774
|
private shouldBlockSelectedExportWithoutSelection;
|
|
1751
1775
|
private buildTableExportRequest;
|
|
1776
|
+
private buildVisibleExcelExportRequest;
|
|
1777
|
+
private resolveVisibleExcelExportFileName;
|
|
1778
|
+
private formatExportDate;
|
|
1752
1779
|
private resolveEffectiveExportScope;
|
|
1753
1780
|
private resolveTableExportLoadedItems;
|
|
1754
1781
|
private computeLocalExportRows;
|