@praxisui/expansion 10.0.0-rc.7 → 10.0.0-rc.71
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/README.md +4 -2
- package/ai/component-registry.json +320 -34
- package/fesm2022/praxisui-expansion.mjs +383 -105
- package/package.json +5 -5
- package/types/praxisui-expansion.d.ts +23 -4
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/expansion",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.71",
|
|
4
4
|
"description": "Expansion panel (accordion) components for Praxis UI with metadata configuration and editor integration.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/material": "^21.0.0",
|
|
9
9
|
"@angular/cdk": "^21.0.0",
|
|
10
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
11
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/core": "^10.0.0-rc.71",
|
|
11
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.71",
|
|
12
|
+
"@praxisui/settings-panel": "^10.0.0-rc.71",
|
|
13
13
|
"@angular/forms": "^21.0.0",
|
|
14
14
|
"@angular/router": "^21.0.0",
|
|
15
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
15
|
+
"@praxisui/ai": "^10.0.0-rc.71",
|
|
16
16
|
"rxjs": "~7.8.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnChanges, OnDestroy, OnInit, EventEmitter, QueryList, SimpleChanges, AfterViewInit, Provider } from '@angular/core';
|
|
3
3
|
import { FormGroup } from '@angular/forms';
|
|
4
4
|
import { MatAccordionDisplayMode, MatAccordionTogglePosition, MatExpansionPanelDefaultOptions, MatAccordion, MatExpansionPanel } from '@angular/material/expansion';
|
|
5
|
-
import { AiCapability, FieldMetadata, WidgetDefinition, WidgetEventEnvelope, SettingsValueProvider as SettingsValueProvider$1, ComponentDocMeta, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
5
|
+
import { AiCapability, FieldMetadata, WidgetDefinition, ResourceQuickViewBinding, WidgetEventEnvelope, SettingsValueProvider as SettingsValueProvider$1, ComponentDocMeta, AiCapabilityCategory, AiCapabilityCatalog, AiValueKind, ComponentAuthoringManifest } from '@praxisui/core';
|
|
6
6
|
import { BehaviorSubject } from 'rxjs';
|
|
7
7
|
import { BaseAiAdapter, PatchResult, PraxisAssistantTurnViewState, PraxisAssistantShellLayout, PraxisAssistantShellLabels, PraxisAssistantSessionSnapshot, PraxisAssistantShellQuickReply, PraxisAssistantShellMessage, PraxisAssistantShellContextItem } from '@praxisui/ai';
|
|
8
8
|
import { SettingsValueProvider } from '@praxisui/settings-panel';
|
|
@@ -107,13 +107,25 @@ interface PanelMetadata {
|
|
|
107
107
|
icon?: string;
|
|
108
108
|
action?: string;
|
|
109
109
|
}>;
|
|
110
|
+
/**
|
|
111
|
+
* Optional governed Resource Quick View binding for the panel header.
|
|
112
|
+
* Rendered strictly as an explicit button (`triggerMode: 'explicit-button'`)
|
|
113
|
+
* with event propagation stopped so hovering or clicking never toggles the
|
|
114
|
+
* expansion panel.
|
|
115
|
+
*/
|
|
116
|
+
quickView?: ResourceQuickViewBinding;
|
|
117
|
+
/**
|
|
118
|
+
* Accessible label and tooltip for the panel header Quick View action button.
|
|
119
|
+
*/
|
|
120
|
+
quickViewActionLabel?: string;
|
|
110
121
|
}
|
|
122
|
+
type ExpansionConfigPersistenceStrategy = 'storage-first' | 'local-first' | 'input-first' | 'volatile';
|
|
111
123
|
declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
112
124
|
config?: ExpansionMetadata | null;
|
|
113
125
|
expansionId: string;
|
|
114
126
|
componentInstanceId?: string;
|
|
115
|
-
/** Input-owned compositions must not restore or persist materialized child inputs. */
|
|
116
|
-
readonly configPersistenceStrategy: i0.InputSignal<
|
|
127
|
+
/** Input-owned compositions must not restore or persist materialized child inputs; `'volatile'` disables all storage reads/writes. */
|
|
128
|
+
readonly configPersistenceStrategy: i0.InputSignal<ExpansionConfigPersistenceStrategy>;
|
|
117
129
|
context: Record<string, any>;
|
|
118
130
|
strictValidation: boolean;
|
|
119
131
|
enableCustomization: boolean;
|
|
@@ -146,6 +158,7 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
146
158
|
widgetEvent: EventEmitter<WidgetEventEnvelope>;
|
|
147
159
|
private readonly settings;
|
|
148
160
|
private readonly storage;
|
|
161
|
+
private readonly logger;
|
|
149
162
|
private readonly cdr;
|
|
150
163
|
private readonly destroyRef;
|
|
151
164
|
private readonly dynamicForm;
|
|
@@ -158,6 +171,7 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
158
171
|
private warnedMissingId;
|
|
159
172
|
private storageInitialized;
|
|
160
173
|
private storageLoad?;
|
|
174
|
+
private hostInputBaselineConfig?;
|
|
161
175
|
private readonly panelForms;
|
|
162
176
|
aiAdapter: ExpansionAiAdapter;
|
|
163
177
|
aiAssistantOpen: boolean;
|
|
@@ -195,6 +209,10 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
195
209
|
private findPanel;
|
|
196
210
|
panelDomId(p: PanelMetadata | null, index: number): string;
|
|
197
211
|
panelFormFor(panel: PanelMetadata, index: number): FormGroup<Record<string, any>>;
|
|
212
|
+
resolvePanelQuickViewBinding(panel: PanelMetadata | null | undefined): ResourceQuickViewBinding | null;
|
|
213
|
+
resolvePanelQuickViewContext(panel: PanelMetadata, index: number): Record<string, unknown>;
|
|
214
|
+
hasPanelQuickViewTarget(panel: PanelMetadata, index: number, binding: ResourceQuickViewBinding | null | undefined): boolean;
|
|
215
|
+
resolvePanelQuickViewLabel(panel: PanelMetadata): string;
|
|
198
216
|
applyConfigFromAdapter(next: ExpansionMetadata): void;
|
|
199
217
|
openAiAssistant(): void;
|
|
200
218
|
openAiAssistantFromSession(session: PraxisAssistantSessionSnapshot): void;
|
|
@@ -225,6 +243,7 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
225
243
|
openEditor(): void;
|
|
226
244
|
private storageKey;
|
|
227
245
|
private persistConfig;
|
|
246
|
+
private isVolatilePersistence;
|
|
228
247
|
private usesInputFirstConfig;
|
|
229
248
|
emitAction(p: PanelMetadata, index: number, action?: string | undefined): void;
|
|
230
249
|
private panelKey;
|
|
@@ -324,4 +343,4 @@ declare const EXPANSION_AI_CAPABILITIES: CapabilityCatalog;
|
|
|
324
343
|
declare const PRAXIS_EXPANSION_AUTHORING_MANIFEST: ComponentAuthoringManifest;
|
|
325
344
|
|
|
326
345
|
export { EXPANSION_AI_CAPABILITIES, PRAXIS_EXPANSION_AUTHORING_MANIFEST, PRAXIS_EXPANSION_COMPONENT_METADATA, PraxisExpansion, PraxisExpansionConfigEditor, PraxisExpansionWidgetConfigEditor, providePraxisExpansionDefaults, providePraxisExpansionMetadata };
|
|
327
|
-
export type { Capability, CapabilityCatalog, CapabilityCategory, ExpansionAppearanceContainer, ExpansionAppearanceHeader, ExpansionAppearanceStates, ExpansionMetadata, PanelMetadata, PraxisExpansionWidgetEditorInputs, PraxisExpansionWidgetEditorValue, ValueKind };
|
|
346
|
+
export type { Capability, CapabilityCatalog, CapabilityCategory, ExpansionAppearanceContainer, ExpansionAppearanceHeader, ExpansionAppearanceStates, ExpansionConfigPersistenceStrategy, ExpansionMetadata, PanelMetadata, PraxisExpansionWidgetEditorInputs, PraxisExpansionWidgetEditorValue, ValueKind };
|