@praxisui/table 10.0.0-rc.4 → 10.0.0-rc.5

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.
@@ -1,6 +1,6 @@
1
1
  import { Observable, firstValueFrom } from 'rxjs';
2
2
  import { withAuthoringScopePolicy } from '@praxisui/ai';
3
- import { af as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-DKvwb6v1.mjs';
3
+ import { ar as setTableActionGlobalActionRef } from './praxisui-table-praxisui-table-BIRFv2S8.mjs';
4
4
 
5
5
  class TableAgenticAuthoringTurnFlow {
6
6
  adapter;
@@ -1,7 +1,7 @@
1
1
  import { firstValueFrom } from 'rxjs';
2
2
  import { BaseAiAdapter, sanitizePraxisAssistantText, createComponentAuthoringContext } from '@praxisui/ai';
3
3
  import { PRAXIS_GLOBAL_ACTION_CATALOG, deepMerge } from '@praxisui/core';
4
- import { L as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, n as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, $ as coerceTableComponentEditPlans, a1 as compileTableComponentEditPlans, Q as TASK_PRESETS, a6 as getTableComponentEditPlanCapabilities, H as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, E as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, I as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, O as TABLE_COMPONENT_EDIT_PLAN_VERSION, G as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, K as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-DKvwb6v1.mjs';
4
+ import { W as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, p as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, a6 as coerceTableComponentEditPlans, a8 as compileTableComponentEditPlans, Y as TASK_PRESETS, ae as getTableComponentEditPlanCapabilities, R as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, O as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, U as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, X as TABLE_COMPONENT_EDIT_PLAN_VERSION, Q as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, V as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-BIRFv2S8.mjs';
5
5
 
6
6
  const TABLE_ROW_EXPRESSION_CONTEXT_OPTION = {
7
7
  mode: 'expression',
@@ -1 +1,2 @@
1
- export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticsTableConfigAdapterService, b as AnalyticsTableContractService, c as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, d as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, e as ColumnsConfigEditorComponent, D as DATE_PRESETS, f as DataFormatterComponent, g as DataFormattingService, F as FORMULA_TEMPLATES, h as FilterConfigService, i as FilterSettingsComponent, j as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, k as PRAXIS_FILTER_AUTHORING_MANIFEST, l as PRAXIS_FILTER_COMPONENT_METADATA, m as PRAXIS_FILTER_VIEW_CONTEXT_SCHEMA_VERSION, n as PRAXIS_TABLE_AUTHORING_MANIFEST, o as PRAXIS_TABLE_COMPONENT_METADATA, p as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, q as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, r as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, s as PraxisFilter, t as PraxisFilterWidgetConfigEditor, u as PraxisTable, v as PraxisTableConfigEditor, w as PraxisTableInlineAuthoringEditorComponent, x as PraxisTableToolbar, y as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, z as TABLE_COMPONENT_AI_CAPABILITIES, E as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, G as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, H as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, I as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, K as TABLE_COMPONENT_EDIT_PLAN_KIND, O as TABLE_COMPONENT_EDIT_PLAN_VERSION, Q as TASK_PRESETS, R as TableDefaultsProvider, U as TableRulesEditorComponent, V as ToolbarActionsEditorComponent, W as ValueMappingEditorComponent, X as VisualFormulaBuilderComponent, Y as analyticsComparisonMetricField, Z as buildTableApplyPlan, _ as coerceTableComponentEditPlan, $ as coerceTableComponentEditPlans, a0 as compileTableComponentEditPlan, a1 as compileTableComponentEditPlans, a2 as createTableAuthoringDocument, a3 as getActionId, a4 as getEnum, a5 as getTableCapabilities, a6 as getTableComponentEditPlanCapabilities, a7 as isTableRendererSupportedByRichContentP0, a8 as mapTableRendererToRichContentP0, a9 as normalizeTableAuthoringDocument, aa as parseLegacyOrTableDocument, ab as providePraxisFilterMetadata, ac as providePraxisTableMetadata, ad as providePraxisTableToolbarAppearance, ae as serializeTableAuthoringDocument, ag as toCanonicalTableConfig, ah as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-DKvwb6v1.mjs';
1
+ export { A as ANALYTICS_TABLE_ROW_KEY_FIELD, a as AnalyticalDrawerRegistryService, b as AnalyticsTableConfigAdapterService, c as AnalyticsTableContractService, d as AnalyticsTableStatsApiService, B as BOOLEAN_PRESETS, e as BehaviorConfigEditorComponent, C as CURRENCY_PRESETS, f as ColumnsConfigEditorComponent, D as DATE_PRESETS, g as DataFormatterComponent, h as DataFormattingService, F as FORMULA_TEMPLATES, i as FilterConfigService, j as FilterSettingsComponent, k as FormulaGeneratorService, J as JsonConfigEditorComponent, M as MessagesLocalizationEditorComponent, N as NUMBER_PRESETS, P as PERCENTAGE_PRESETS, l as PRAXIS_ANALYTICAL_DRAWER_SCHEMAS, m as PRAXIS_FILTER_AUTHORING_MANIFEST, n as PRAXIS_FILTER_COMPONENT_METADATA, o as PRAXIS_FILTER_VIEW_CONTEXT_SCHEMA_VERSION, p as PRAXIS_TABLE_AUTHORING_MANIFEST, q as PRAXIS_TABLE_COMPONENT_METADATA, r as PRAXIS_TABLE_TOOLBAR_APPEARANCE_PRESETS, s as PRAXIS_TABLE_TOOLBAR_DEFAULT_APPEARANCE, t as PRAXIS_TABLE_TOOLBAR_TOKEN_PRESETS, u as PraxisAnalyticalDrawerComponent, v as PraxisFilter, w as PraxisFilterOutletComponent, x as PraxisFilterOutletDirective, y as PraxisFilterWidgetConfigEditor, z as PraxisScopeBarComponent, E as PraxisTable, G as PraxisTableConfigEditor, H as PraxisTableInlineAuthoringEditorComponent, I as PraxisTableToolbar, K as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, L as TABLE_COMPONENT_AI_CAPABILITIES, O as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, Q as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, R as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, U as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, V as TABLE_COMPONENT_EDIT_PLAN_KIND, X as TABLE_COMPONENT_EDIT_PLAN_VERSION, Y as TASK_PRESETS, Z as TableDefaultsProvider, _ as TableRulesEditorComponent, $ as ToolbarActionsEditorComponent, a0 as ValueMappingEditorComponent, a1 as VisualFormulaBuilderComponent, a2 as analyticsComparisonMetricField, a3 as applyComputedFieldsToRows, a4 as buildTableApplyPlan, a5 as coerceTableComponentEditPlan, a6 as coerceTableComponentEditPlans, a7 as compileTableComponentEditPlan, a8 as compileTableComponentEditPlans, a9 as createTableAuthoringDocument, aa as formatComputedFieldValue, ab as getActionId, ac as getEnum, ad as getTableCapabilities, ae as getTableComponentEditPlanCapabilities, af as interpolateRelationEndpoint, ag as isAnalyticalDrawerSchema, ah as isTableRendererSupportedByRichContentP0, ai as mapTableRendererToRichContentP0, aj as normalizeComputedFieldDefinition, ak as normalizeTableAuthoringDocument, al as parseLegacyOrTableDocument, am as providePraxisAnalyticalDrawerSchemas, an as providePraxisFilterMetadata, ao as providePraxisTableMetadata, ap as providePraxisTableToolbarAppearance, aq as serializeTableAuthoringDocument, as as toCanonicalTableConfig, at as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-BIRFv2S8.mjs';
2
+ export { createDynamicRecord, extractRecordId, isDynamicDataRecord, resolveDataField } from '@praxisui/core';
package/package.json CHANGED
@@ -1,24 +1,24 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "10.0.0-rc.4",
3
+ "version": "10.0.0-rc.5",
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": "^10.0.0-rc.4",
10
- "@praxisui/core": "^10.0.0-rc.4",
11
- "@praxisui/dynamic-fields": "^10.0.0-rc.4",
12
- "@praxisui/dynamic-form": "^10.0.0-rc.4",
13
- "@praxisui/metadata-editor": "^10.0.0-rc.4",
14
- "@praxisui/rich-content": "^10.0.0-rc.4",
15
- "@praxisui/settings-panel": "^10.0.0-rc.4",
16
- "@praxisui/table-rule-builder": "^10.0.0-rc.4",
9
+ "@praxisui/ai": "^10.0.0-rc.5",
10
+ "@praxisui/core": "^10.0.0-rc.5",
11
+ "@praxisui/dynamic-fields": "^10.0.0-rc.5",
12
+ "@praxisui/dynamic-form": "^10.0.0-rc.5",
13
+ "@praxisui/metadata-editor": "^10.0.0-rc.5",
14
+ "@praxisui/rich-content": "^10.0.0-rc.5",
15
+ "@praxisui/settings-panel": "^10.0.0-rc.5",
16
+ "@praxisui/table-rule-builder": "^10.0.0-rc.5",
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": "^10.0.0-rc.4",
21
+ "@praxisui/dialog": "^10.0.0-rc.5",
22
22
  "rxjs": "~7.8.0"
23
23
  },
24
24
  "dependencies": {
@@ -50,6 +50,10 @@
50
50
  "types": "./types/praxisui-table.d.ts",
51
51
  "default": "./fesm2022/praxisui-table.mjs"
52
52
  },
53
+ "./authoring": {
54
+ "types": "./types/praxisui-table-authoring.d.ts",
55
+ "default": "./fesm2022/praxisui-table-authoring.mjs"
56
+ },
53
57
  "./filter-drawer-adapter": {
54
58
  "types": "./types/praxisui-table-filter-drawer-adapter.d.ts",
55
59
  "default": "./fesm2022/praxisui-table-filter-drawer-adapter.mjs"
@@ -0,0 +1,104 @@
1
+ import { TableConfig, FieldDefinition } from '@praxisui/core';
2
+
3
+ interface EditorDocument<TConfig, TBindings = unknown> {
4
+ kind: string;
5
+ version: number;
6
+ config: TConfig;
7
+ bindings?: TBindings;
8
+ }
9
+ type TableHorizontalScroll = 'auto' | 'wrap' | 'none';
10
+ interface TableBindings {
11
+ resourcePath?: string | null;
12
+ horizontalScroll?: TableHorizontalScroll;
13
+ }
14
+ interface TableAuthoringDocument extends EditorDocument<TableConfig, TableBindings> {
15
+ kind: 'praxis.table.editor';
16
+ version: 1;
17
+ }
18
+ interface EditorDiagnostic {
19
+ level: 'error' | 'warning' | 'info';
20
+ code: string;
21
+ message: string;
22
+ path?: string;
23
+ }
24
+ interface TableValidationContext {
25
+ hasLocalDataInput?: boolean;
26
+ localDataModeDefaultEnabled?: boolean;
27
+ server?: {
28
+ idField?: string;
29
+ schemaHash?: string;
30
+ };
31
+ }
32
+ interface TableProjectionContext {
33
+ hasLocalDataInput?: boolean;
34
+ localDataModeDefaultEnabled?: boolean;
35
+ }
36
+ interface TableRuntimeContext {
37
+ hasLocalDataInput?: boolean;
38
+ localDataModeDefaultEnabled?: boolean;
39
+ server?: {
40
+ idField?: string;
41
+ schemaId?: string;
42
+ schemaHash?: string;
43
+ };
44
+ crud?: {
45
+ tableId: string;
46
+ componentKeyId?: string;
47
+ };
48
+ currentBindings?: TableBindings;
49
+ }
50
+ interface TableApplyPlan {
51
+ canonicalConfig: TableConfig;
52
+ bindingsPatch?: TableBindings;
53
+ persistence?: {
54
+ saveConfig?: boolean;
55
+ saveBindings?: boolean;
56
+ };
57
+ runtime?: {
58
+ reconnectDataSource?: boolean;
59
+ reloadSchema?: boolean;
60
+ fetchData?: boolean;
61
+ refreshLocalView?: boolean;
62
+ };
63
+ metadata?: {
64
+ attachServerMeta?: boolean;
65
+ };
66
+ diff?: {
67
+ resourcePathChanged?: boolean;
68
+ horizontalScrollChanged?: boolean;
69
+ requiresDataRefresh?: boolean;
70
+ };
71
+ diagnostics: EditorDiagnostic[];
72
+ }
73
+
74
+ /** Owner inputs exposed through @praxisui/table/authoring. Fields must already be normalized by admitted Core code.
75
+ * Config and bindings are variable native inputs, not recoverable from a schema.
76
+ * This helper neither admits sources nor evaluates raw schema expressions.
77
+ */
78
+ interface TableEditorDocumentDerivationInput {
79
+ config: TableConfig;
80
+ bindings: TableBindings;
81
+ fields: FieldDefinition[];
82
+ }
83
+ /** Full native document: canonical defaults/action normalization are owned by
84
+ * createTableAuthoringDocument. This is not a public host executor or attestation.
85
+ */
86
+ declare function deriveTableEditorDocument(input: TableEditorDocumentDerivationInput): TableAuthoringDocument;
87
+
88
+ declare function createTableAuthoringDocument(source: {
89
+ config?: unknown;
90
+ bindings?: unknown;
91
+ }): TableAuthoringDocument;
92
+ declare function parseLegacyOrTableDocument(raw: unknown): TableAuthoringDocument;
93
+ declare function normalizeTableAuthoringDocument(doc: TableAuthoringDocument): TableAuthoringDocument;
94
+ declare function validateTableAuthoringDocument(doc: TableAuthoringDocument, context?: TableValidationContext): EditorDiagnostic[];
95
+ declare function toCanonicalTableConfig(doc: TableAuthoringDocument, context?: TableProjectionContext): TableConfig;
96
+ declare function buildTableApplyPlan(doc: TableAuthoringDocument, runtime?: TableRuntimeContext, options?: {
97
+ saveConfig?: boolean;
98
+ saveBindings?: boolean;
99
+ attachServerMeta?: boolean;
100
+ }): TableApplyPlan;
101
+ declare function serializeTableAuthoringDocument(doc: TableAuthoringDocument): unknown;
102
+
103
+ export { buildTableApplyPlan, createTableAuthoringDocument, deriveTableEditorDocument, normalizeTableAuthoringDocument, parseLegacyOrTableDocument, serializeTableAuthoringDocument, toCanonicalTableConfig, validateTableAuthoringDocument };
104
+ export type { EditorDiagnostic, TableApplyPlan, TableAuthoringDocument, TableBindings, TableEditorDocumentDerivationInput, TableProjectionContext, TableRuntimeContext, TableValidationContext };