@praxisui/expansion 10.0.0-rc.70 → 10.0.0-rc.72
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-30T08:57:00.866Z",
|
|
4
4
|
"packageName": "@praxisui/expansion",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.72",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i1 from '@angular/common';
|
|
2
2
|
import { CommonModule } from '@angular/common';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { input, EventEmitter, inject, ChangeDetectorRef, DestroyRef, effect, ViewChildren, ViewChild, Output, Input, ChangeDetectionStrategy, Component, Inject, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
4
|
+
import { input, EventEmitter, inject, ChangeDetectorRef, DestroyRef, effect, untracked, ViewChildren, ViewChild, Output, Input, ChangeDetectionStrategy, Component, Inject, ENVIRONMENT_INITIALIZER } from '@angular/core';
|
|
5
5
|
import { ActivatedRoute } from '@angular/router';
|
|
6
6
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
7
|
import * as i2 from '@angular/material/expansion';
|
|
@@ -539,14 +539,31 @@ class PraxisExpansion {
|
|
|
539
539
|
aiApi = inject(AiBackendApiService);
|
|
540
540
|
assistantSessions = inject(PraxisAssistantSessionRegistryService);
|
|
541
541
|
aiTurnOrchestrator = inject(PraxisAssistantTurnOrchestratorService);
|
|
542
|
+
aiAssistantSessionDismissed = false;
|
|
543
|
+
lastSyncedAiAssistantSessionId = null;
|
|
544
|
+
lastHandledDismissalSeq = this.assistantSessions.lastDismissedSession()?.seq ?? 0;
|
|
542
545
|
aiAssistantSessionEffect = effect(() => {
|
|
543
546
|
const session = this.assistantSessions.activeSession();
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
this.
|
|
548
|
-
|
|
547
|
+
untracked(() => {
|
|
548
|
+
if (!session || session.id !== this.reconcileAiAssistantSessionIdentity())
|
|
549
|
+
return;
|
|
550
|
+
if (!this.aiAssistantOpen) {
|
|
551
|
+
this.openAiAssistantFromSession(session);
|
|
552
|
+
}
|
|
553
|
+
});
|
|
549
554
|
}, ...(ngDevMode ? [{ debugName: "aiAssistantSessionEffect" }] : /* istanbul ignore next */ []));
|
|
555
|
+
aiAssistantDismissEffect = effect(() => {
|
|
556
|
+
const dismissedSeqs = this.assistantSessions.dismissedSessionSeqs();
|
|
557
|
+
untracked(() => {
|
|
558
|
+
const seq = dismissedSeqs[this.reconcileAiAssistantSessionIdentity()] ?? 0;
|
|
559
|
+
if (seq <= this.lastHandledDismissalSeq)
|
|
560
|
+
return;
|
|
561
|
+
this.lastHandledDismissalSeq = seq;
|
|
562
|
+
if (this.aiAssistantOpen || !this.aiAssistantSessionDismissed) {
|
|
563
|
+
this.closeAiAssistant();
|
|
564
|
+
}
|
|
565
|
+
});
|
|
566
|
+
}, ...(ngDevMode ? [{ debugName: "aiAssistantDismissEffect" }] : /* istanbul ignore next */ []));
|
|
550
567
|
warnedMissingId = false;
|
|
551
568
|
storageInitialized = false;
|
|
552
569
|
storageLoad;
|
|
@@ -622,7 +639,9 @@ class PraxisExpansion {
|
|
|
622
639
|
}
|
|
623
640
|
ngOnDestroy() {
|
|
624
641
|
this.storageLoad?.unsubscribe();
|
|
642
|
+
this.reconcileAiAssistantSessionIdentity();
|
|
625
643
|
this.assistantSessions.removeContextSession(this.buildAiAssistantContextSnapshot().identity);
|
|
644
|
+
this.lastSyncedAiAssistantSessionId = null;
|
|
626
645
|
this.aiAssistantStateSubscription?.unsubscribe();
|
|
627
646
|
}
|
|
628
647
|
styleCss() {
|
|
@@ -900,6 +919,8 @@ class PraxisExpansion {
|
|
|
900
919
|
this.cdr.markForCheck();
|
|
901
920
|
}
|
|
902
921
|
openAiAssistant() {
|
|
922
|
+
this.reconcileAiAssistantSessionIdentity();
|
|
923
|
+
this.aiAssistantSessionDismissed = false;
|
|
903
924
|
this.initializeAiAssistantController();
|
|
904
925
|
this.aiAssistantOpen = true;
|
|
905
926
|
this.aiAssistantController?.setContextItems(this.buildAiAssistantContextItems());
|
|
@@ -907,19 +928,39 @@ class PraxisExpansion {
|
|
|
907
928
|
this.cdr.markForCheck();
|
|
908
929
|
}
|
|
909
930
|
openAiAssistantFromSession(session) {
|
|
910
|
-
if (session.id !== this.
|
|
931
|
+
if (session.id !== this.reconcileAiAssistantSessionIdentity())
|
|
911
932
|
return;
|
|
933
|
+
this.aiAssistantSessionDismissed = false;
|
|
912
934
|
this.initializeAiAssistantController();
|
|
913
935
|
this.aiAssistantOpen = true;
|
|
914
936
|
this.aiAssistantController?.setContextItems(this.buildAiAssistantContextItems());
|
|
915
937
|
this.syncAiAssistantSession('active');
|
|
916
938
|
this.cdr.markForCheck();
|
|
917
939
|
}
|
|
918
|
-
|
|
940
|
+
minimizeAiAssistant() {
|
|
941
|
+
this.reconcileAiAssistantSessionIdentity();
|
|
942
|
+
this.aiAssistantSessionDismissed = false;
|
|
919
943
|
this.aiAssistantOpen = false;
|
|
920
944
|
this.syncAiAssistantSession('minimized');
|
|
921
945
|
this.cdr.markForCheck();
|
|
922
946
|
}
|
|
947
|
+
closeAiAssistant() {
|
|
948
|
+
const sessionId = this.reconcileAiAssistantSessionIdentity();
|
|
949
|
+
this.aiAssistantSessionDismissed = true;
|
|
950
|
+
this.aiAssistantOpen = false;
|
|
951
|
+
this.lastSyncedAiAssistantSessionId = null;
|
|
952
|
+
this.assistantSessions.removeSession(sessionId);
|
|
953
|
+
if (this.aiAssistantViewState?.state === 'processing' || this.aiAssistantViewState?.state === 'applying') {
|
|
954
|
+
this.aiAssistantController?.cancel().subscribe({
|
|
955
|
+
next: (state) => {
|
|
956
|
+
this.aiAssistantViewState = state;
|
|
957
|
+
this.cdr.markForCheck();
|
|
958
|
+
},
|
|
959
|
+
error: () => undefined,
|
|
960
|
+
});
|
|
961
|
+
}
|
|
962
|
+
this.cdr.markForCheck();
|
|
963
|
+
}
|
|
923
964
|
onAiAssistantPromptChange(prompt) {
|
|
924
965
|
this.aiAssistantPrompt = prompt;
|
|
925
966
|
this.syncAiAssistantSession();
|
|
@@ -1120,6 +1161,9 @@ class PraxisExpansion {
|
|
|
1120
1161
|
syncAiAssistantSession(visibility = null) {
|
|
1121
1162
|
if (!this.enableCustomization)
|
|
1122
1163
|
return;
|
|
1164
|
+
const sessionId = this.reconcileAiAssistantSessionIdentity();
|
|
1165
|
+
if (visibility !== 'active' && !this.aiAssistantOpen && this.aiAssistantSessionDismissed)
|
|
1166
|
+
return;
|
|
1123
1167
|
if (!this.aiAssistantOpen && !this.hasAiAssistantSessionState() && visibility !== 'minimized')
|
|
1124
1168
|
return;
|
|
1125
1169
|
const state = this.aiAssistantViewState;
|
|
@@ -1132,6 +1176,16 @@ class PraxisExpansion {
|
|
|
1132
1176
|
badge: this.resolveAiAssistantBadge(),
|
|
1133
1177
|
icon: this.resolveAiAssistantIcon(),
|
|
1134
1178
|
});
|
|
1179
|
+
this.lastSyncedAiAssistantSessionId = sessionId;
|
|
1180
|
+
}
|
|
1181
|
+
reconcileAiAssistantSessionIdentity() {
|
|
1182
|
+
const sessionId = this.resolveAiAssistantSessionId();
|
|
1183
|
+
if (this.lastSyncedAiAssistantSessionId && this.lastSyncedAiAssistantSessionId !== sessionId) {
|
|
1184
|
+
this.assistantSessions.removeSession(this.lastSyncedAiAssistantSessionId);
|
|
1185
|
+
this.lastSyncedAiAssistantSessionId = null;
|
|
1186
|
+
this.aiAssistantSessionDismissed = false;
|
|
1187
|
+
}
|
|
1188
|
+
return sessionId;
|
|
1135
1189
|
}
|
|
1136
1190
|
hasAiAssistantSessionState() {
|
|
1137
1191
|
return !!this.aiAssistantPrompt.trim()
|
|
@@ -1424,6 +1478,7 @@ class PraxisExpansion {
|
|
|
1424
1478
|
[busy]="aiAssistantViewState.state === 'processing' || aiAssistantViewState.state === 'applying'"
|
|
1425
1479
|
[canApply]="aiAssistantViewState.canApply"
|
|
1426
1480
|
[layout]="aiAssistantLayout"
|
|
1481
|
+
[showMinimize]="true"
|
|
1427
1482
|
testIdPrefix="praxis-expansion-ai-assistant"
|
|
1428
1483
|
(promptChange)="onAiAssistantPromptChange($event)"
|
|
1429
1484
|
(submitPrompt)="onAiAssistantSubmit($event)"
|
|
@@ -1434,6 +1489,7 @@ class PraxisExpansion {
|
|
|
1434
1489
|
(editMessage)="onAiAssistantEditMessage($event)"
|
|
1435
1490
|
(resendMessage)="onAiAssistantResendMessage($event)"
|
|
1436
1491
|
(layoutChange)="onAiAssistantLayoutChange($event)"
|
|
1492
|
+
(minimize)="minimizeAiAssistant()"
|
|
1437
1493
|
(close)="closeAiAssistant()"
|
|
1438
1494
|
></praxis-ai-assistant-shell>
|
|
1439
1495
|
}
|
|
@@ -1646,7 +1702,7 @@ class PraxisExpansion {
|
|
|
1646
1702
|
<mat-icon fontIcon="edit"></mat-icon>
|
|
1647
1703
|
</button>
|
|
1648
1704
|
}
|
|
1649
|
-
`, isInline: true, styles: [":host{display:block;position:relative;color:var(--md-sys-color-on-surface)}.praxis-expansion-root{display:block;--p-exp-surface: var(--md-sys-color-surface);--p-exp-surface-container: var(--md-sys-color-surface-container);--p-exp-border: var(--md-sys-color-outline-variant);--p-exp-text: var(--md-sys-color-on-surface);--p-exp-text-muted: var(--md-sys-color-on-surface-variant);--p-exp-focus: var(--md-sys-color-primary);--p-exp-radius: 12px}.mat-expansion-panel{background:var(--p-exp-surface);border:1px solid var(--p-exp-border);border-radius:var(--p-exp-radius);overflow:clip}.mat-expansion-panel:not(:last-child){margin-bottom:var(--p-exp-panel-gap, 12px)}.mat-expansion-panel-header{background:var(--p-exp-surface-container);color:var(--p-exp-text)}.mat-expansion-panel-header:focus-visible{outline:2px solid var(--p-exp-focus);outline-offset:-2px}.mat-expansion-panel-header-title{font-weight:600}.mat-expansion-panel-header-description{color:var(--p-exp-text-muted)}.praxis-expansion-header-quick-view-action{width:32px;height:32px;padding:4px;margin-left:auto;margin-right:4px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.praxis-expansion-header-quick-view-action mat-icon{font-size:18px;width:18px;height:18px}.mat-expansion-panel-body{padding:12px 16px 16px}.mat-action-row{border-top:1px solid var(--p-exp-border)}.density-compact .mat-expansion-panel-body{padding:8px 12px 12px}.density-compact .mat-expansion-panel-header{min-height:40px;padding:0 12px}.density-comfortable .mat-expansion-panel-body{padding:12px 16px 16px}.density-comfortable .mat-expansion-panel-header{min-height:48px;padding:0 16px}.density-spacious .mat-expansion-panel-body{padding:16px 20px 20px}.density-spacious .mat-expansion-panel-header{min-height:56px;padding:0 20px}.praxis-expansion-empty{display:block}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.expansion-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.expansion-ai-assistant-trigger{box-shadow:var(--md-sys-elevation-level2, 0 4px 12px rgba(0, 0, 0, .18))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i2.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i2.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i2.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "directive", type: i2.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: DynamicFieldLoaderDirective, selector: "[dynamicFieldLoader]", inputs: ["fields", "formGroup", "enableExternalControlBinding", "itemTemplate", "debugTrace", "debugTraceLabel", "readonlyMode", "disabledMode", "presentationMode", "visible", "canvasMode"], outputs: ["componentsCreated", "fieldCreated", "fieldDestroyed", "renderError", "canvasMouseEnter", "canvasMouseLeave", "canvasClick", "canvasFocus"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "directive", type: PraxisQuickViewTriggerDirective, selector: "[praxisQuickView]", inputs: ["praxisQuickView", "praxisQuickViewRecord", "praxisQuickViewTriggerMode", "praxisQuickViewAnchorId", "praxisQuickViewSourceId", "praxisQuickViewEndpointKey", "praxisQuickViewApiUrlEntry", "praxisQuickViewQueryContext", "praxisQuickViewHoverOpenDelayMs", "praxisQuickViewHoverCloseDelayMs", "praxisQuickViewStopPropagation"], exportAs: ["praxisQuickView"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "component", type: PraxisAiAssistantShellComponent, selector: "praxis-ai-assistant-shell", inputs: ["labels", "mode", "state", "contextItems", "attachments", "messages", "quickReplies", "recommendedIntents", "prompt", "statusText", "errorText", "testIdPrefix", "panelTestId", "submitTestId", "applyTestId", "primaryAction", "secondaryActions", "governanceActions", "busy", "canSubmit", "canApply", "preview", "submitOnEnter", "showAttachAction", "enablePastedAttachments", "
|
|
1705
|
+
`, isInline: true, styles: [":host{display:block;position:relative;color:var(--md-sys-color-on-surface)}.praxis-expansion-root{display:block;--p-exp-surface: var(--md-sys-color-surface);--p-exp-surface-container: var(--md-sys-color-surface-container);--p-exp-border: var(--md-sys-color-outline-variant);--p-exp-text: var(--md-sys-color-on-surface);--p-exp-text-muted: var(--md-sys-color-on-surface-variant);--p-exp-focus: var(--md-sys-color-primary);--p-exp-radius: 12px}.mat-expansion-panel{background:var(--p-exp-surface);border:1px solid var(--p-exp-border);border-radius:var(--p-exp-radius);overflow:clip}.mat-expansion-panel:not(:last-child){margin-bottom:var(--p-exp-panel-gap, 12px)}.mat-expansion-panel-header{background:var(--p-exp-surface-container);color:var(--p-exp-text)}.mat-expansion-panel-header:focus-visible{outline:2px solid var(--p-exp-focus);outline-offset:-2px}.mat-expansion-panel-header-title{font-weight:600}.mat-expansion-panel-header-description{color:var(--p-exp-text-muted)}.praxis-expansion-header-quick-view-action{width:32px;height:32px;padding:4px;margin-left:auto;margin-right:4px;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.praxis-expansion-header-quick-view-action mat-icon{font-size:18px;width:18px;height:18px}.mat-expansion-panel-body{padding:12px 16px 16px}.mat-action-row{border-top:1px solid var(--p-exp-border)}.density-compact .mat-expansion-panel-body{padding:8px 12px 12px}.density-compact .mat-expansion-panel-header{min-height:40px;padding:0 12px}.density-comfortable .mat-expansion-panel-body{padding:12px 16px 16px}.density-comfortable .mat-expansion-panel-header{min-height:48px;padding:0 16px}.density-spacious .mat-expansion-panel-body{padding:16px 20px 20px}.density-spacious .mat-expansion-panel-header{min-height:56px;padding:0 20px}.praxis-expansion-empty{display:block}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.expansion-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.expansion-ai-assistant-trigger{box-shadow:var(--md-sys-elevation-level2, 0 4px 12px rgba(0, 0, 0, .18))}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: MatExpansionModule }, { kind: "directive", type: i2.MatAccordion, selector: "mat-accordion", inputs: ["hideToggle", "displayMode", "togglePosition"], exportAs: ["matAccordion"] }, { kind: "component", type: i2.MatExpansionPanel, selector: "mat-expansion-panel", inputs: ["hideToggle", "togglePosition"], outputs: ["afterExpand", "afterCollapse"], exportAs: ["matExpansionPanel"] }, { kind: "directive", type: i2.MatExpansionPanelActionRow, selector: "mat-action-row" }, { kind: "component", type: i2.MatExpansionPanelHeader, selector: "mat-expansion-panel-header", inputs: ["expandedHeight", "collapsedHeight", "tabIndex"] }, { kind: "directive", type: i2.MatExpansionPanelTitle, selector: "mat-panel-title" }, { kind: "directive", type: i2.MatExpansionPanelDescription, selector: "mat-panel-description" }, { kind: "directive", type: i2.MatExpansionPanelContent, selector: "ng-template[matExpansionPanelContent]" }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i3.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i4.MatButton, selector: " button[matButton], a[matButton], button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button], a[mat-button], a[mat-raised-button], a[mat-flat-button], a[mat-stroked-button] ", inputs: ["matButton"], exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatIconButton, selector: "button[mat-icon-button], a[mat-icon-button], button[matIconButton], a[matIconButton]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i4.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatTooltipModule }, { kind: "directive", type: i5.MatTooltip, selector: "[matTooltip]", inputs: ["matTooltipPosition", "matTooltipPositionAtOrigin", "matTooltipDisabled", "matTooltipShowDelay", "matTooltipHideDelay", "matTooltipTouchGestures", "matTooltip", "matTooltipClass"], exportAs: ["matTooltip"] }, { kind: "directive", type: DynamicFieldLoaderDirective, selector: "[dynamicFieldLoader]", inputs: ["fields", "formGroup", "enableExternalControlBinding", "itemTemplate", "debugTrace", "debugTraceLabel", "readonlyMode", "disabledMode", "presentationMode", "visible", "canvasMode"], outputs: ["componentsCreated", "fieldCreated", "fieldDestroyed", "renderError", "canvasMouseEnter", "canvasMouseLeave", "canvasClick", "canvasFocus"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "directive", type: PraxisQuickViewTriggerDirective, selector: "[praxisQuickView]", inputs: ["praxisQuickView", "praxisQuickViewRecord", "praxisQuickViewTriggerMode", "praxisQuickViewAnchorId", "praxisQuickViewSourceId", "praxisQuickViewEndpointKey", "praxisQuickViewApiUrlEntry", "praxisQuickViewQueryContext", "praxisQuickViewHoverOpenDelayMs", "praxisQuickViewHoverCloseDelayMs", "praxisQuickViewStopPropagation"], exportAs: ["praxisQuickView"] }, { kind: "component", type: EmptyStateCardComponent, selector: "praxis-empty-state-card", inputs: ["icon", "title", "description", "primaryAction", "secondaryActions", "inline", "tone", "variant", "alignment", "density", "iconContainer"] }, { kind: "component", type: PraxisAiAssistantShellComponent, selector: "praxis-ai-assistant-shell", inputs: ["labels", "mode", "state", "contextItems", "attachments", "threadAttachments", "messages", "quickReplies", "recommendedIntents", "prompt", "statusText", "errorText", "testIdPrefix", "panelTestId", "submitTestId", "applyTestId", "primaryAction", "secondaryActions", "governanceActions", "busy", "canSubmit", "canApply", "preview", "submitOnEnter", "showAttachAction", "enableFileAttachments", "enablePastedAttachments", "allowAttachmentOnlySubmit", "enableAuthenticatedPreview", "attachmentAccept", "attachmentMultiple", "voiceInputMode", "voiceLanguage", "draggable", "resizable", "showMinimize", "minWidth", "minHeight", "margin", "layout"], outputs: ["promptChange", "submitPrompt", "apply", "retryTurn", "cancelTurn", "shellAction", "minimize", "close", "attach", "attachmentsPasted", "attachmentsSelected", "attachmentsDropped", "removeAttachment", "retryAttachment", "previewAttachment", "detachThreadAttachment", "previewMessageAttachment", "messageAction", "editMessage", "resendMessage", "quickReply", "recommendedIntent", "blockAction", "layoutChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1650
1706
|
}
|
|
1651
1707
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisExpansion, decorators: [{
|
|
1652
1708
|
type: Component,
|
|
@@ -1709,6 +1765,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1709
1765
|
[busy]="aiAssistantViewState.state === 'processing' || aiAssistantViewState.state === 'applying'"
|
|
1710
1766
|
[canApply]="aiAssistantViewState.canApply"
|
|
1711
1767
|
[layout]="aiAssistantLayout"
|
|
1768
|
+
[showMinimize]="true"
|
|
1712
1769
|
testIdPrefix="praxis-expansion-ai-assistant"
|
|
1713
1770
|
(promptChange)="onAiAssistantPromptChange($event)"
|
|
1714
1771
|
(submitPrompt)="onAiAssistantSubmit($event)"
|
|
@@ -1719,6 +1776,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1719
1776
|
(editMessage)="onAiAssistantEditMessage($event)"
|
|
1720
1777
|
(resendMessage)="onAiAssistantResendMessage($event)"
|
|
1721
1778
|
(layoutChange)="onAiAssistantLayoutChange($event)"
|
|
1779
|
+
(minimize)="minimizeAiAssistant()"
|
|
1722
1780
|
(close)="closeAiAssistant()"
|
|
1723
1781
|
></praxis-ai-assistant-shell>
|
|
1724
1782
|
}
|
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.72",
|
|
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.72",
|
|
11
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.72",
|
|
12
|
+
"@praxisui/settings-panel": "^10.0.0-rc.72",
|
|
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.72",
|
|
16
16
|
"rxjs": "~7.8.0"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
@@ -167,7 +167,11 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
167
167
|
private readonly aiApi;
|
|
168
168
|
private readonly assistantSessions;
|
|
169
169
|
private readonly aiTurnOrchestrator;
|
|
170
|
+
private aiAssistantSessionDismissed;
|
|
171
|
+
private lastSyncedAiAssistantSessionId;
|
|
172
|
+
private lastHandledDismissalSeq;
|
|
170
173
|
private readonly aiAssistantSessionEffect;
|
|
174
|
+
private readonly aiAssistantDismissEffect;
|
|
171
175
|
private warnedMissingId;
|
|
172
176
|
private storageInitialized;
|
|
173
177
|
private storageLoad?;
|
|
@@ -216,6 +220,7 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
216
220
|
applyConfigFromAdapter(next: ExpansionMetadata): void;
|
|
217
221
|
openAiAssistant(): void;
|
|
218
222
|
openAiAssistantFromSession(session: PraxisAssistantSessionSnapshot): void;
|
|
223
|
+
minimizeAiAssistant(): void;
|
|
219
224
|
closeAiAssistant(): void;
|
|
220
225
|
onAiAssistantPromptChange(prompt: string): void;
|
|
221
226
|
onAiAssistantSubmit(prompt: string): void;
|
|
@@ -230,6 +235,7 @@ declare class PraxisExpansion implements OnChanges, OnDestroy, OnInit {
|
|
|
230
235
|
private initializeAiAssistantController;
|
|
231
236
|
private buildAiAssistantContextSnapshot;
|
|
232
237
|
private syncAiAssistantSession;
|
|
238
|
+
private reconcileAiAssistantSessionIdentity;
|
|
233
239
|
private hasAiAssistantSessionState;
|
|
234
240
|
private resolveAiAssistantSessionId;
|
|
235
241
|
private resolveAiAssistantOwnerId;
|