@praxisui/list 10.0.0-rc.32 → 10.0.0-rc.34
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/ai/component-registry.json +16 -4
- package/fesm2022/praxisui-list.mjs +345 -21
- package/package.json +6 -6
- package/types/praxisui-list.d.ts +41 -3
package/package.json
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/list",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.34",
|
|
4
4
|
"description": "List components and helpers for Praxis UI.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/cdk": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.34",
|
|
11
11
|
"rxjs": ">=7 <9",
|
|
12
12
|
"@angular/forms": "^21.0.0",
|
|
13
13
|
"@angular/router": "^21.0.0",
|
|
14
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/rich-content": "^10.0.0-rc.
|
|
17
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
14
|
+
"@praxisui/ai": "^10.0.0-rc.34",
|
|
15
|
+
"@praxisui/core": "^10.0.0-rc.34",
|
|
16
|
+
"@praxisui/rich-content": "^10.0.0-rc.34",
|
|
17
|
+
"@praxisui/settings-panel": "^10.0.0-rc.34"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"tslib": "^2.3.0",
|
package/types/praxisui-list.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import * as i0 from '@angular/core';
|
|
|
4
4
|
import { OnInit, OnChanges, AfterViewInit, OnDestroy, EventEmitter, SimpleChanges, ChangeDetectorRef, DoCheck, Provider } from '@angular/core';
|
|
5
5
|
import { MatPaginatorSelectConfig, PageEvent } from '@angular/material/paginator';
|
|
6
6
|
import { FormGroup, FormControl } from '@angular/forms';
|
|
7
|
-
import { PraxisExportFormat, PraxisExportScope, PraxisRuntimeConditionalEffectRule, JsonLogicExpression, RichContentDocument, ResourceRecordOpenRef, GlobalActionRef, LocalizationConfig, AiCapability, PraxisDataQueryContext, RichBlockNode, RichBlockHostCapabilities, SurfaceOpenActionEditorComponent, GlobalActionCatalogEntry, SurfaceOpenPayload, SettingsValueProvider as SettingsValueProvider$1, RichPresenterNode, RichComposeNode, ComponentDocMeta, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
7
|
+
import { PraxisExportFormat, PraxisExportScope, PraxisRuntimeConditionalEffectRule, JsonLogicExpression, RichContentDocument, ResourceRecordOpenRef, GlobalActionRef, LocalizationConfig, AiCapability, PraxisDataQueryContext, RichBlockNode, RichBlockHostCapabilities, ApiEndpoint, ApiUrlEntry, SurfaceOpenActionEditorComponent, DiscoveredResourceOption, GlobalActionCatalogEntry, SurfaceOpenPayload, SettingsValueProvider as SettingsValueProvider$1, RichPresenterNode, RichComposeNode, ComponentDocMeta, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
8
8
|
import { BaseAiAdapter, AiResponseCompileResult, PatchResult, PraxisAssistantTurnViewState, PraxisAssistantShellLayout, PraxisAssistantShellLabels, PraxisAssistantSessionSnapshot, PraxisAssistantShellQuickReply, PraxisAssistantShellMessage } from '@praxisui/ai';
|
|
9
9
|
import { SettingsValueProvider } from '@praxisui/settings-panel';
|
|
10
10
|
import * as _praxisui_list from '@praxisui/list';
|
|
@@ -1262,6 +1262,16 @@ type ExportPreviewRow = Record<string, string>;
|
|
|
1262
1262
|
declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
1263
1263
|
config: PraxisListConfig;
|
|
1264
1264
|
listId?: string;
|
|
1265
|
+
/**
|
|
1266
|
+
* Logical endpoint key used to scope catalog discovery and schema resolution
|
|
1267
|
+
* in multi-module / multi-gateway hosts. Takes precedence over SETTINGS_PANEL_DATA when bound.
|
|
1268
|
+
*/
|
|
1269
|
+
endpointKey?: ApiEndpoint;
|
|
1270
|
+
/**
|
|
1271
|
+
* Explicit API URL entry override used for catalog discovery and schema resolution.
|
|
1272
|
+
* Takes precedence over SETTINGS_PANEL_DATA when bound.
|
|
1273
|
+
*/
|
|
1274
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1265
1275
|
document: ListAuthoringDocument;
|
|
1266
1276
|
working: NormalizedListConfig;
|
|
1267
1277
|
private readonly invalidSurfaceDrafts;
|
|
@@ -1281,8 +1291,25 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
|
1281
1291
|
private initialJson;
|
|
1282
1292
|
private lastJson;
|
|
1283
1293
|
fields: string[];
|
|
1294
|
+
fieldSearchQuery: string;
|
|
1295
|
+
fieldMetaByName: Record<string, {
|
|
1296
|
+
name: string;
|
|
1297
|
+
label?: string;
|
|
1298
|
+
type?: string;
|
|
1299
|
+
description?: string;
|
|
1300
|
+
}>;
|
|
1301
|
+
selectedResourceOption: DiscoveredResourceOption | null;
|
|
1302
|
+
schemaWarning: string;
|
|
1284
1303
|
private lastResourcePath?;
|
|
1285
1304
|
sortField?: string;
|
|
1305
|
+
private normalizeFieldSearch;
|
|
1306
|
+
onFieldSelectOpenedChange(_opened: boolean): void;
|
|
1307
|
+
getFilteredFields(selected?: string | string[] | null): string[];
|
|
1308
|
+
onDiscoveredResourceSelected(entry: DiscoveredResourceOption | null): void;
|
|
1309
|
+
getFieldLabel(fieldName?: string | null): string;
|
|
1310
|
+
getFieldTypeBadge(fieldName?: string | null): string;
|
|
1311
|
+
getFieldDescription(fieldName?: string | null): string;
|
|
1312
|
+
getFieldTriggerLabel(fieldName?: string | null): string;
|
|
1286
1313
|
sortDir: 'asc' | 'desc';
|
|
1287
1314
|
mappingPrimary: {
|
|
1288
1315
|
field?: string;
|
|
@@ -1447,7 +1474,9 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
|
1447
1474
|
queryError: string;
|
|
1448
1475
|
actionShowIfDrafts: Record<number, string>;
|
|
1449
1476
|
private stashedLocalData?;
|
|
1477
|
+
private stashedLocalTemplating?;
|
|
1450
1478
|
private crud;
|
|
1479
|
+
private readonly resourceDiscovery;
|
|
1451
1480
|
private readonly i18n;
|
|
1452
1481
|
private resourcePathChanges;
|
|
1453
1482
|
constructor(injected?: any);
|
|
@@ -1476,7 +1505,11 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
|
1476
1505
|
private snapshotCurrentDocument;
|
|
1477
1506
|
private syncSortStateFromWorking;
|
|
1478
1507
|
private resetVisualMappingState;
|
|
1508
|
+
private buildDiscoveryOptions;
|
|
1479
1509
|
private setupSchemaWatcher;
|
|
1510
|
+
private shouldAutoInferSlots;
|
|
1511
|
+
private pendingRemoteSlotInference;
|
|
1512
|
+
syncSchemaFieldsFromWorking(immediate?: boolean): void;
|
|
1480
1513
|
loadFieldsFromResource(resourcePath: string): void;
|
|
1481
1514
|
onResourcePathChange(value: string): void;
|
|
1482
1515
|
hasRemoteResourcePath(): boolean;
|
|
@@ -1819,13 +1852,15 @@ declare class PraxisListConfigEditor implements SettingsValueProvider, DoCheck {
|
|
|
1819
1852
|
private suggestIcon;
|
|
1820
1853
|
getTypeIcon(type: string): string;
|
|
1821
1854
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisListConfigEditor, [{ optional: true; }]>;
|
|
1822
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisListConfigEditor, "praxis-list-config-editor", never, { "config": { "alias": "config"; "required": false; }; "listId": { "alias": "listId"; "required": false; }; }, {}, never, never, true, never>;
|
|
1855
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisListConfigEditor, "praxis-list-config-editor", never, { "config": { "alias": "config"; "required": false; }; "listId": { "alias": "listId"; "required": false; }; "endpointKey": { "alias": "endpointKey"; "required": false; }; "apiUrlEntry": { "alias": "apiUrlEntry"; "required": false; }; }, {}, never, never, true, never>;
|
|
1823
1856
|
}
|
|
1824
1857
|
|
|
1825
1858
|
type PersistenceStrategy = 'input-first' | 'local-first' | 'volatile';
|
|
1826
1859
|
interface PraxisListWidgetEditorInputs {
|
|
1827
1860
|
config?: PraxisListConfig | null;
|
|
1828
1861
|
listId?: string;
|
|
1862
|
+
endpointKey?: ApiEndpoint;
|
|
1863
|
+
apiUrlEntry?: ApiUrlEntry | null;
|
|
1829
1864
|
[key: string]: unknown;
|
|
1830
1865
|
}
|
|
1831
1866
|
interface PraxisListWidgetEditorValue {
|
|
@@ -1834,6 +1869,7 @@ interface PraxisListWidgetEditorValue {
|
|
|
1834
1869
|
declare class PraxisListWidgetConfigEditor implements SettingsValueProvider$1, AfterViewInit, OnDestroy {
|
|
1835
1870
|
inputs: PraxisListWidgetEditorInputs | null;
|
|
1836
1871
|
widgetKey?: string;
|
|
1872
|
+
context: Record<string, unknown>;
|
|
1837
1873
|
listEditor?: PraxisListConfigEditor;
|
|
1838
1874
|
readonly isDirty$: BehaviorSubject<boolean>;
|
|
1839
1875
|
readonly isValid$: BehaviorSubject<boolean>;
|
|
@@ -1850,6 +1886,8 @@ declare class PraxisListWidgetConfigEditor implements SettingsValueProvider$1, A
|
|
|
1850
1886
|
private publishDirty;
|
|
1851
1887
|
get config(): PraxisListConfig;
|
|
1852
1888
|
get listId(): string | undefined;
|
|
1889
|
+
get endpointKey(): ApiEndpoint | undefined;
|
|
1890
|
+
get apiUrlEntry(): ApiUrlEntry | null | undefined;
|
|
1853
1891
|
ngAfterViewInit(): void;
|
|
1854
1892
|
ngOnDestroy(): void;
|
|
1855
1893
|
getSettingsValue(): PraxisListWidgetEditorValue;
|
|
@@ -1858,7 +1896,7 @@ declare class PraxisListWidgetConfigEditor implements SettingsValueProvider$1, A
|
|
|
1858
1896
|
private initializeChildEditor;
|
|
1859
1897
|
private buildValue;
|
|
1860
1898
|
static ɵfac: i0.ɵɵFactoryDeclaration<PraxisListWidgetConfigEditor, never>;
|
|
1861
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisListWidgetConfigEditor, "praxis-list-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; }, {}, never, never, true, never>;
|
|
1899
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PraxisListWidgetConfigEditor, "praxis-list-widget-config-editor", never, { "inputs": { "alias": "inputs"; "required": false; }; "widgetKey": { "alias": "widgetKey"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, {}, never, never, true, never>;
|
|
1862
1900
|
}
|
|
1863
1901
|
|
|
1864
1902
|
declare function createListAuthoringDocument(source: {
|