@praxisui/core 8.0.0-beta.49 → 8.0.0-beta.50

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.
@@ -29101,6 +29101,9 @@ class DynamicWidgetPageComponent {
29101
29101
  ...widget.definition,
29102
29102
  inputs: {
29103
29103
  ...inputs,
29104
+ ...(this.shouldMaterializeSelectedIndexInput(widget, inputs)
29105
+ ? { selectedIndex: tabIndex }
29106
+ : {}),
29104
29107
  config: nextConfig,
29105
29108
  },
29106
29109
  },
@@ -29170,6 +29173,13 @@ class DynamicWidgetPageComponent {
29170
29173
  }
29171
29174
  return typeof segment.index === 'number' ? segment.index : -1;
29172
29175
  }
29176
+ shouldMaterializeSelectedIndexInput(widget, inputs) {
29177
+ if (Object.prototype.hasOwnProperty.call(inputs, 'selectedIndex')) {
29178
+ return true;
29179
+ }
29180
+ const bindingOrder = widget.definition.bindingOrder;
29181
+ return Array.isArray(bindingOrder) && bindingOrder.includes('selectedIndex');
29182
+ }
29173
29183
  reportStateDiagnostics(diagnostics) {
29174
29184
  if (!diagnostics?.length)
29175
29185
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@praxisui/core",
3
- "version": "8.0.0-beta.49",
3
+ "version": "8.0.0-beta.50",
4
4
  "description": "Core library for Praxis UI Workspace: types, tokens, services and utilities shared across @praxisui/* packages.",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^21.0.0",
@@ -13576,6 +13576,7 @@ declare class DynamicWidgetPageComponent implements OnChanges, OnDestroy {
13576
13576
  private maybeOpenRecordRelatedSurface;
13577
13577
  private applyRecordSurfaceSourceState;
13578
13578
  private findRecordSurfaceTabIndex;
13579
+ private shouldMaterializeSelectedIndexInput;
13579
13580
  private reportStateDiagnostics;
13580
13581
  private dispatchWidgetEventToComposition;
13581
13582
  private matchesRuntimeSourceRef;