@praxisui/table 8.0.0-beta.56 → 8.0.0-beta.57

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.
@@ -38808,8 +38808,12 @@ class PraxisTable {
38808
38808
  }
38809
38809
  const href = this.resolveRowDiscoveryHref(rowLinks, 'capabilities');
38810
38810
  const surfaceHref = this.resolveRowSurfaceDiscoveryHref(rowLinks);
38811
- if (href && this.hasFreshRowCapabilitySnapshot(href)) {
38812
- return;
38811
+ const hasFreshCapabilitySnapshot = !!href && this.hasFreshRowCapabilitySnapshot(href);
38812
+ if (hasFreshCapabilitySnapshot) {
38813
+ const snapshot = this.rowCapabilitySnapshotByHref.get(href);
38814
+ if (snapshot?.surfaces?.length || !surfaceHref || this.hasFreshRowCapabilitySnapshot(surfaceHref)) {
38815
+ return;
38816
+ }
38813
38817
  }
38814
38818
  if (!href && surfaceHref && this.hasFreshRowCapabilitySnapshot(surfaceHref)) {
38815
38819
  return;
@@ -38817,7 +38821,7 @@ class PraxisTable {
38817
38821
  if (!href && !surfaceHref) {
38818
38822
  return;
38819
38823
  }
38820
- const cacheHref = href ?? surfaceHref;
38824
+ const cacheHref = hasFreshCapabilitySnapshot ? surfaceHref : href ?? surfaceHref;
38821
38825
  if (!cacheHref) {
38822
38826
  return;
38823
38827
  }
@@ -38827,7 +38831,7 @@ class PraxisTable {
38827
38831
  return;
38828
38832
  }
38829
38833
  try {
38830
- if (href) {
38834
+ if (href && !hasFreshCapabilitySnapshot) {
38831
38835
  const snapshot = await firstValueFrom(this.resourceDiscovery.getCapabilities(rowLinks, this.buildRowDiscoveryOptions())
38832
38836
  .pipe(take$1(1)));
38833
38837
  this.clearRowCapabilityError(href);
@@ -39574,7 +39578,7 @@ class PraxisTable {
39574
39578
  if (this.aiAdapter || this.aiAdapterLoadStarted)
39575
39579
  return;
39576
39580
  this.aiAdapterLoadStarted = true;
39577
- import('./praxisui-table-table-ai.adapter-Cb0SlfHg.mjs')
39581
+ import('./praxisui-table-table-ai.adapter-HW-Hh4ID.mjs')
39578
39582
  .then(({ TableAiAdapter }) => {
39579
39583
  this.aiAdapter = new TableAiAdapter(this);
39580
39584
  this.initializeAiAssistantController();
@@ -46620,14 +46624,22 @@ class PraxisTable {
46620
46624
  return null;
46621
46625
  }
46622
46626
  const href = this.resolveRowDiscoveryHref(rowLinks, 'capabilities');
46627
+ let capabilitySnapshot = null;
46623
46628
  if (href && this.hasFreshRowCapabilitySnapshot(href)) {
46624
- return this.rowCapabilitySnapshotByHref.get(href) || null;
46629
+ capabilitySnapshot = this.rowCapabilitySnapshotByHref.get(href) || null;
46630
+ if (capabilitySnapshot?.surfaces?.length) {
46631
+ return capabilitySnapshot;
46632
+ }
46625
46633
  }
46626
46634
  const surfaceHref = this.resolveRowSurfaceDiscoveryHref(rowLinks);
46627
46635
  if (surfaceHref && this.hasFreshRowCapabilitySnapshot(surfaceHref)) {
46628
- return this.rowCapabilitySnapshotByHref.get(surfaceHref) || null;
46636
+ const surfaceSnapshot = this.rowCapabilitySnapshotByHref.get(surfaceHref) || null;
46637
+ if (surfaceSnapshot?.surfaces?.length) {
46638
+ return surfaceSnapshot;
46639
+ }
46640
+ return capabilitySnapshot ?? surfaceSnapshot;
46629
46641
  }
46630
- return null;
46642
+ return capabilitySnapshot;
46631
46643
  }
46632
46644
  hasResolvedRowActionCatalog(row) {
46633
46645
  const rowLinks = this.getRowLinks(row);
@@ -1,7 +1,7 @@
1
1
  import { firstValueFrom } from 'rxjs';
2
2
  import { BaseAiAdapter, createComponentAuthoringContext } from '@praxisui/ai';
3
3
  import { deepMerge } from '@praxisui/core';
4
- import { z as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, k as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, R as coerceTableComponentEditPlans, W as compileTableComponentEditPlans, G as TASK_PRESETS, $ as getTableComponentEditPlanCapabilities, w as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, u as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, x as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, E as TABLE_COMPONENT_EDIT_PLAN_VERSION, v as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, y as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-CLcLxit9.mjs';
4
+ import { z as TABLE_COMPONENT_EDIT_PLAN_OPERATION_IDS, k as PRAXIS_TABLE_AUTHORING_MANIFEST, T as TABLE_AI_CAPABILITIES, R as coerceTableComponentEditPlans, W as compileTableComponentEditPlans, G as TASK_PRESETS, $ as getTableComponentEditPlanCapabilities, w as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, u as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, x as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, E as TABLE_COMPONENT_EDIT_PLAN_VERSION, v as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, y as TABLE_COMPONENT_EDIT_PLAN_KIND } from './praxisui-table-praxisui-table-2nSPgkfc.mjs';
5
5
 
6
6
  const TABLE_COMPONENT_CONTEXT_PACK = {
7
7
  version: 'v1',
@@ -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 PraxisFilter, n as PraxisFilterWidgetConfigEditor, o as PraxisTable, p as PraxisTableConfigEditor, q as PraxisTableInlineAuthoringEditorComponent, r as PraxisTableToolbar, s as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, t as TABLE_COMPONENT_AI_CAPABILITIES, u as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, v as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, w as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, x as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, y as TABLE_COMPONENT_EDIT_PLAN_KIND, E as TABLE_COMPONENT_EDIT_PLAN_VERSION, G as TASK_PRESETS, H as TableDefaultsProvider, I as TableRulesEditorComponent, K as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, L as VisualFormulaBuilderComponent, O as buildTableApplyPlan, Q as coerceTableComponentEditPlan, R as coerceTableComponentEditPlans, U as compileTableComponentEditPlan, W as compileTableComponentEditPlans, X as createTableAuthoringDocument, Y as getActionId, Z as getEnum, _ as getTableCapabilities, $ as getTableComponentEditPlanCapabilities, a0 as isTableRendererSupportedByRichContentP0, a1 as mapTableRendererToRichContentP0, a2 as normalizeTableAuthoringDocument, a3 as parseLegacyOrTableDocument, a4 as providePraxisFilterMetadata, a5 as providePraxisTableMetadata, a6 as serializeTableAuthoringDocument, a7 as toCanonicalTableConfig, a8 as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-CLcLxit9.mjs';
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 PraxisFilter, n as PraxisFilterWidgetConfigEditor, o as PraxisTable, p as PraxisTableConfigEditor, q as PraxisTableInlineAuthoringEditorComponent, r as PraxisTableToolbar, s as PraxisTableWidgetConfigEditor, S as STRING_PRESETS, T as TABLE_AI_CAPABILITIES, t as TABLE_COMPONENT_AI_CAPABILITIES, u as TABLE_COMPONENT_EDIT_PLAN_ALLOWED_CHANGE_KINDS, v as TABLE_COMPONENT_EDIT_PLAN_BATCH_KIND, w as TABLE_COMPONENT_EDIT_PLAN_EXPECTED_PATHS, x as TABLE_COMPONENT_EDIT_PLAN_JSON_SCHEMA, y as TABLE_COMPONENT_EDIT_PLAN_KIND, E as TABLE_COMPONENT_EDIT_PLAN_VERSION, G as TASK_PRESETS, H as TableDefaultsProvider, I as TableRulesEditorComponent, K as ToolbarActionsEditorComponent, V as ValueMappingEditorComponent, L as VisualFormulaBuilderComponent, O as buildTableApplyPlan, Q as coerceTableComponentEditPlan, R as coerceTableComponentEditPlans, U as compileTableComponentEditPlan, W as compileTableComponentEditPlans, X as createTableAuthoringDocument, Y as getActionId, Z as getEnum, _ as getTableCapabilities, $ as getTableComponentEditPlanCapabilities, a0 as isTableRendererSupportedByRichContentP0, a1 as mapTableRendererToRichContentP0, a2 as normalizeTableAuthoringDocument, a3 as parseLegacyOrTableDocument, a4 as providePraxisFilterMetadata, a5 as providePraxisTableMetadata, a6 as serializeTableAuthoringDocument, a7 as toCanonicalTableConfig, a8 as validateTableAuthoringDocument } from './praxisui-table-praxisui-table-2nSPgkfc.mjs';
package/package.json CHANGED
@@ -1,23 +1,23 @@
1
1
  {
2
2
  "name": "@praxisui/table",
3
- "version": "8.0.0-beta.56",
3
+ "version": "8.0.0-beta.57",
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
- "@praxisui/ai": "^8.0.0-beta.56",
9
- "@praxisui/core": "^8.0.0-beta.56",
10
- "@praxisui/dynamic-fields": "^8.0.0-beta.56",
11
- "@praxisui/dynamic-form": "^8.0.0-beta.56",
12
- "@praxisui/metadata-editor": "^8.0.0-beta.56",
13
- "@praxisui/rich-content": "^8.0.0-beta.56",
14
- "@praxisui/settings-panel": "^8.0.0-beta.56",
15
- "@praxisui/table-rule-builder": "^8.0.0-beta.56",
8
+ "@praxisui/ai": "^8.0.0-beta.57",
9
+ "@praxisui/core": "^8.0.0-beta.57",
10
+ "@praxisui/dynamic-fields": "^8.0.0-beta.57",
11
+ "@praxisui/dynamic-form": "^8.0.0-beta.57",
12
+ "@praxisui/metadata-editor": "^8.0.0-beta.57",
13
+ "@praxisui/rich-content": "^8.0.0-beta.57",
14
+ "@praxisui/settings-panel": "^8.0.0-beta.57",
15
+ "@praxisui/table-rule-builder": "^8.0.0-beta.57",
16
16
  "@angular/cdk": "^21.0.0",
17
17
  "@angular/forms": "^21.0.0",
18
18
  "@angular/material": "^21.0.0",
19
19
  "@angular/router": "^21.0.0",
20
- "@praxisui/dialog": "^8.0.0-beta.56",
20
+ "@praxisui/dialog": "^8.0.0-beta.57",
21
21
  "rxjs": "~7.8.0"
22
22
  },
23
23
  "dependencies": {