@praxisui/page-builder 3.0.0-beta.4 → 3.0.0-beta.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.
package/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { MatDialogRef, MatDialog } from '@angular/material/dialog';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { EventEmitter, OnInit, OnChanges, SimpleChanges, InjectionToken, Provider, ElementRef } from '@angular/core';
|
|
4
|
-
import { ComponentDocMeta, ComponentMetadataRegistry, GridPageDefinition, GridWidgetInstance, WidgetConnection, WidgetShellConfig, WidgetShellAction, WidgetPageOrientation, WidgetPageDefinition, WidgetPageLayout, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog, PageIdentity, ConnectionManagerService, AsyncConfigStorage, ComponentKeyService, SettingsPanelBridge, WidgetShellActionEvent } from '@praxisui/core';
|
|
4
|
+
import { ComponentDocMeta, ComponentMetadataRegistry, GridPageDefinition, GridWidgetInstance, WidgetConnection, WidgetShellConfig, WidgetShellAction, WidgetPageOrientation, WidgetPageDefinition, WidgetPageLayout, AiCapabilityCategory, AiValueKind, AiCapability, AiCapabilityCatalog, WidgetPageStateInput, PageIdentity, ConnectionManagerService, AsyncConfigStorage, ComponentKeyService, SettingsPanelBridge, WidgetShellActionEvent } from '@praxisui/core';
|
|
5
5
|
export { WidgetShellComponent } from '@praxisui/core';
|
|
6
6
|
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
7
7
|
import * as rxjs from 'rxjs';
|
|
@@ -110,15 +110,35 @@ declare class ConnectionBuilderComponent implements OnInit, OnChanges {
|
|
|
110
110
|
toggleShowOnlyIssues(): void;
|
|
111
111
|
toggleFriendly(): void;
|
|
112
112
|
trackByIndex: (i: number) => number;
|
|
113
|
+
private isWidgetSource;
|
|
114
|
+
private isWidgetTarget;
|
|
113
115
|
fromLabel(c: WidgetConnection): string;
|
|
114
116
|
toLabel(c: WidgetConnection): string;
|
|
115
117
|
fromFriendly(c: WidgetConnection): string;
|
|
116
118
|
toFriendly(c: WidgetConnection): string;
|
|
117
119
|
outputDescription(c: WidgetConnection): string;
|
|
118
120
|
inputDescription(c: WidgetConnection): string;
|
|
121
|
+
fromTooltip(c: WidgetConnection): string;
|
|
122
|
+
fromIcon(c: WidgetConnection): string;
|
|
123
|
+
toIcon(c: WidgetConnection): string;
|
|
124
|
+
fromIconTooltip(c: WidgetConnection): string;
|
|
125
|
+
toIconTooltip(c: WidgetConnection): string;
|
|
119
126
|
widgetFriendlyNameForKey(key: string): string;
|
|
120
127
|
componentIconForKey(key: string): string;
|
|
121
128
|
private widgetTypeByKey;
|
|
129
|
+
selectedConnection(): WidgetConnection | undefined;
|
|
130
|
+
selectedSourcePrimaryValue(): string;
|
|
131
|
+
setSelectedSourcePrimaryValue(value: string): void;
|
|
132
|
+
selectedSourceSecondaryValue(): string;
|
|
133
|
+
setSelectedSourceSecondaryValue(value: string): void;
|
|
134
|
+
selectedTargetPrimaryValue(): string;
|
|
135
|
+
setSelectedTargetPrimaryValue(value: string): void;
|
|
136
|
+
selectedTargetSecondaryValue(): string;
|
|
137
|
+
setSelectedTargetSecondaryValue(value: string): void;
|
|
138
|
+
selectedMapValue(): string;
|
|
139
|
+
setSelectedMapValue(value: string): void;
|
|
140
|
+
showSelectedSourceSecondary(): boolean;
|
|
141
|
+
showSelectedTargetSecondary(): boolean;
|
|
122
142
|
private applyFilters;
|
|
123
143
|
private applyGrouping;
|
|
124
144
|
private groupByKey;
|
|
@@ -335,6 +355,7 @@ declare module '@praxisui/core' {
|
|
|
335
355
|
widgets: true;
|
|
336
356
|
connections: true;
|
|
337
357
|
context: true;
|
|
358
|
+
state: true;
|
|
338
359
|
}
|
|
339
360
|
}
|
|
340
361
|
type CapabilityCategory = AiCapabilityCategory;
|
|
@@ -348,7 +369,7 @@ interface CapabilityCatalog extends AiCapabilityCatalog {
|
|
|
348
369
|
declare const PAGE_BUILDER_AI_CAPABILITIES: CapabilityCatalog;
|
|
349
370
|
|
|
350
371
|
type PageBuilderConfig = {
|
|
351
|
-
page?:
|
|
372
|
+
page?: BuilderPageDefinition;
|
|
352
373
|
context?: Record<string, unknown> | null;
|
|
353
374
|
enableCustomization?: boolean;
|
|
354
375
|
showSettingsButton?: boolean;
|
|
@@ -357,7 +378,7 @@ type PageBuilderConfig = {
|
|
|
357
378
|
pageIdentity?: PageIdentity;
|
|
358
379
|
};
|
|
359
380
|
interface PageBuilderHost {
|
|
360
|
-
page?:
|
|
381
|
+
page?: BuilderPageDefinition | string;
|
|
361
382
|
context?: Record<string, unknown> | null;
|
|
362
383
|
enableCustomization: boolean;
|
|
363
384
|
showSettingsButton: boolean;
|
|
@@ -366,6 +387,10 @@ interface PageBuilderHost {
|
|
|
366
387
|
pageIdentity?: PageIdentity;
|
|
367
388
|
applyConfigFromAdapter(config: PageBuilderConfig): void;
|
|
368
389
|
}
|
|
390
|
+
type BuilderPageDefinition = GridPageDefinition & {
|
|
391
|
+
state?: WidgetPageStateInput;
|
|
392
|
+
connections?: WidgetConnection[];
|
|
393
|
+
};
|
|
369
394
|
type PatchResult = {
|
|
370
395
|
success: boolean;
|
|
371
396
|
warnings?: string[];
|
|
@@ -473,14 +498,21 @@ interface GraphEdge {
|
|
|
473
498
|
meta?: GraphEdgeMeta;
|
|
474
499
|
}
|
|
475
500
|
|
|
501
|
+
type StatefulGridPageDefinition = GridPageDefinition & {
|
|
502
|
+
state?: WidgetPageStateInput;
|
|
503
|
+
};
|
|
476
504
|
declare class GraphMapperService {
|
|
477
505
|
private registry;
|
|
478
506
|
constructor(registry: ComponentMetadataRegistry);
|
|
507
|
+
private isWidgetSource;
|
|
508
|
+
private isWidgetTarget;
|
|
479
509
|
/** Build nodes and edges for a given page definition and widgets. */
|
|
480
|
-
mapToGraph(page:
|
|
510
|
+
mapToGraph(page: StatefulGridPageDefinition | undefined, widgets: GridWidgetInstance[]): {
|
|
481
511
|
nodes: GraphNode[];
|
|
482
512
|
edges: GraphEdge[];
|
|
483
513
|
};
|
|
514
|
+
private ensureStateNode;
|
|
515
|
+
private normalizeState;
|
|
484
516
|
private ensurePort;
|
|
485
517
|
/**
|
|
486
518
|
* Parse dot-path for Tabs internals. Supported:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/page-builder",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.5",
|
|
4
4
|
"description": "Page and widget builder utilities for Praxis UI (grid, dynamic widgets, editors).",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"@angular/cdk": "^20.0.0",
|
|
10
10
|
"@angular/material": "^20.0.0",
|
|
11
11
|
"angular-gridster2": "^20.2.2",
|
|
12
|
-
"@praxisui/core": "^3.0.0-beta.
|
|
13
|
-
"@praxisui/settings-panel": "^3.0.0-beta.
|
|
12
|
+
"@praxisui/core": "^3.0.0-beta.5",
|
|
13
|
+
"@praxisui/settings-panel": "^3.0.0-beta.5"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"tslib": "^2.3.0"
|