@praxisui/stepper 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/stepper",
|
|
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 { signal, inject, ElementRef, Renderer2, EventEmitter, ChangeDetectorRef, effect, computed, TemplateRef, Output, Input, ViewChild, ContentChild, ChangeDetectionStrategy, Component, ENVIRONMENT_INITIALIZER, Inject, DestroyRef, Injector, ViewContainerRef, isDevMode } from '@angular/core';
|
|
4
|
+
import { signal, inject, ElementRef, Renderer2, EventEmitter, ChangeDetectorRef, effect, untracked, computed, TemplateRef, Output, Input, ViewChild, ContentChild, ChangeDetectionStrategy, Component, ENVIRONMENT_INITIALIZER, Inject, DestroyRef, Injector, ViewContainerRef, isDevMode } from '@angular/core';
|
|
5
5
|
import { ActivatedRoute } from '@angular/router';
|
|
6
6
|
import * as i2 from '@angular/material/stepper';
|
|
7
7
|
import { MatStepperModule } from '@angular/material/stepper';
|
|
@@ -677,14 +677,31 @@ class PraxisStepper {
|
|
|
677
677
|
aiApi = inject(AiBackendApiService);
|
|
678
678
|
assistantSessions = inject(PraxisAssistantSessionRegistryService);
|
|
679
679
|
aiTurnOrchestrator = inject(PraxisAssistantTurnOrchestratorService);
|
|
680
|
+
aiAssistantSessionDismissed = false;
|
|
681
|
+
lastSyncedAiAssistantSessionId = null;
|
|
682
|
+
lastHandledDismissalSeq = this.assistantSessions.lastDismissedSession()?.seq ?? 0;
|
|
680
683
|
aiAssistantSessionEffect = effect(() => {
|
|
681
684
|
const session = this.assistantSessions.activeSession();
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
this.
|
|
686
|
-
|
|
685
|
+
untracked(() => {
|
|
686
|
+
if (!session || session.id !== this.reconcileAiAssistantSessionIdentity())
|
|
687
|
+
return;
|
|
688
|
+
if (!this.aiAssistantOpen) {
|
|
689
|
+
this.openAiAssistantFromSession(session);
|
|
690
|
+
}
|
|
691
|
+
});
|
|
687
692
|
}, ...(ngDevMode ? [{ debugName: "aiAssistantSessionEffect" }] : /* istanbul ignore next */ []));
|
|
693
|
+
aiAssistantDismissEffect = effect(() => {
|
|
694
|
+
const dismissedSeqs = this.assistantSessions.dismissedSessionSeqs();
|
|
695
|
+
untracked(() => {
|
|
696
|
+
const seq = dismissedSeqs[this.reconcileAiAssistantSessionIdentity()] ?? 0;
|
|
697
|
+
if (seq <= this.lastHandledDismissalSeq)
|
|
698
|
+
return;
|
|
699
|
+
this.lastHandledDismissalSeq = seq;
|
|
700
|
+
if (this.aiAssistantOpen || !this.aiAssistantSessionDismissed) {
|
|
701
|
+
this.closeAiAssistant();
|
|
702
|
+
}
|
|
703
|
+
});
|
|
704
|
+
}, ...(ngDevMode ? [{ debugName: "aiAssistantDismissEffect" }] : /* istanbul ignore next */ []));
|
|
688
705
|
warnedMissingId = false;
|
|
689
706
|
emptyStepRichContentDocument = createEmptyRichContentDocument();
|
|
690
707
|
animationDone = new EventEmitter();
|
|
@@ -1020,6 +1037,8 @@ class PraxisStepper {
|
|
|
1020
1037
|
this.scheduleDomSync();
|
|
1021
1038
|
}
|
|
1022
1039
|
openAiAssistant() {
|
|
1040
|
+
this.reconcileAiAssistantSessionIdentity();
|
|
1041
|
+
this.aiAssistantSessionDismissed = false;
|
|
1023
1042
|
this.initializeAiAssistantController();
|
|
1024
1043
|
this.aiAssistantOpen = true;
|
|
1025
1044
|
this.aiAssistantController?.setContextItems(this.buildAiAssistantContextItems());
|
|
@@ -1027,19 +1046,39 @@ class PraxisStepper {
|
|
|
1027
1046
|
this.cdr.markForCheck();
|
|
1028
1047
|
}
|
|
1029
1048
|
openAiAssistantFromSession(session) {
|
|
1030
|
-
if (session.id !== this.
|
|
1049
|
+
if (session.id !== this.reconcileAiAssistantSessionIdentity())
|
|
1031
1050
|
return;
|
|
1051
|
+
this.aiAssistantSessionDismissed = false;
|
|
1032
1052
|
this.initializeAiAssistantController();
|
|
1033
1053
|
this.aiAssistantOpen = true;
|
|
1034
1054
|
this.aiAssistantController?.setContextItems(this.buildAiAssistantContextItems());
|
|
1035
1055
|
this.syncAiAssistantSession('active');
|
|
1036
1056
|
this.cdr.markForCheck();
|
|
1037
1057
|
}
|
|
1038
|
-
|
|
1058
|
+
minimizeAiAssistant() {
|
|
1059
|
+
this.reconcileAiAssistantSessionIdentity();
|
|
1060
|
+
this.aiAssistantSessionDismissed = false;
|
|
1039
1061
|
this.aiAssistantOpen = false;
|
|
1040
1062
|
this.syncAiAssistantSession('minimized');
|
|
1041
1063
|
this.cdr.markForCheck();
|
|
1042
1064
|
}
|
|
1065
|
+
closeAiAssistant() {
|
|
1066
|
+
const sessionId = this.reconcileAiAssistantSessionIdentity();
|
|
1067
|
+
this.aiAssistantSessionDismissed = true;
|
|
1068
|
+
this.aiAssistantOpen = false;
|
|
1069
|
+
this.lastSyncedAiAssistantSessionId = null;
|
|
1070
|
+
this.assistantSessions.removeSession(sessionId);
|
|
1071
|
+
if (this.aiAssistantViewState?.state === 'processing' || this.aiAssistantViewState?.state === 'applying') {
|
|
1072
|
+
this.aiAssistantController?.cancel().subscribe({
|
|
1073
|
+
next: (state) => {
|
|
1074
|
+
this.aiAssistantViewState = state;
|
|
1075
|
+
this.cdr.markForCheck();
|
|
1076
|
+
},
|
|
1077
|
+
error: () => undefined,
|
|
1078
|
+
});
|
|
1079
|
+
}
|
|
1080
|
+
this.cdr.markForCheck();
|
|
1081
|
+
}
|
|
1043
1082
|
onAiAssistantPromptChange(prompt) {
|
|
1044
1083
|
this.aiAssistantPrompt = prompt;
|
|
1045
1084
|
this.syncAiAssistantSession();
|
|
@@ -1240,6 +1279,9 @@ class PraxisStepper {
|
|
|
1240
1279
|
syncAiAssistantSession(visibility = null) {
|
|
1241
1280
|
if (!this.enableCustomization)
|
|
1242
1281
|
return;
|
|
1282
|
+
const sessionId = this.reconcileAiAssistantSessionIdentity();
|
|
1283
|
+
if (visibility !== 'active' && !this.aiAssistantOpen && this.aiAssistantSessionDismissed)
|
|
1284
|
+
return;
|
|
1243
1285
|
if (!this.aiAssistantOpen && !this.hasAiAssistantSessionState() && visibility !== 'minimized')
|
|
1244
1286
|
return;
|
|
1245
1287
|
const state = this.aiAssistantViewState;
|
|
@@ -1252,6 +1294,16 @@ class PraxisStepper {
|
|
|
1252
1294
|
badge: this.resolveAiAssistantBadge(),
|
|
1253
1295
|
icon: this.resolveAiAssistantIcon(),
|
|
1254
1296
|
});
|
|
1297
|
+
this.lastSyncedAiAssistantSessionId = sessionId;
|
|
1298
|
+
}
|
|
1299
|
+
reconcileAiAssistantSessionIdentity() {
|
|
1300
|
+
const sessionId = this.resolveAiAssistantSessionId();
|
|
1301
|
+
if (this.lastSyncedAiAssistantSessionId && this.lastSyncedAiAssistantSessionId !== sessionId) {
|
|
1302
|
+
this.assistantSessions.removeSession(this.lastSyncedAiAssistantSessionId);
|
|
1303
|
+
this.lastSyncedAiAssistantSessionId = null;
|
|
1304
|
+
this.aiAssistantSessionDismissed = false;
|
|
1305
|
+
}
|
|
1306
|
+
return sessionId;
|
|
1255
1307
|
}
|
|
1256
1308
|
hasAiAssistantSessionState() {
|
|
1257
1309
|
return (!!this.aiAssistantPrompt.trim()
|
|
@@ -1468,7 +1520,9 @@ class PraxisStepper {
|
|
|
1468
1520
|
ngOnDestroy() {
|
|
1469
1521
|
this._formValueSubscriptions.forEach((sub) => sub.unsubscribe());
|
|
1470
1522
|
this._formValueSubscriptions.clear();
|
|
1523
|
+
this.reconcileAiAssistantSessionIdentity();
|
|
1471
1524
|
this.assistantSessions.removeContextSession(this.buildAiAssistantContextSnapshot().identity);
|
|
1525
|
+
this.lastSyncedAiAssistantSessionId = null;
|
|
1472
1526
|
this.aiAssistantStateSubscription?.unsubscribe();
|
|
1473
1527
|
}
|
|
1474
1528
|
ngOnInit() {
|
|
@@ -1562,6 +1616,7 @@ class PraxisStepper {
|
|
|
1562
1616
|
[canApply]="aiAssistantViewState.canApply"
|
|
1563
1617
|
[labels]="aiAssistantLabels"
|
|
1564
1618
|
[layout]="aiAssistantLayout"
|
|
1619
|
+
[showMinimize]="true"
|
|
1565
1620
|
testIdPrefix="praxis-stepper-ai-assistant"
|
|
1566
1621
|
(promptChange)="onAiAssistantPromptChange($event)"
|
|
1567
1622
|
(submitPrompt)="onAiAssistantSubmit($event)"
|
|
@@ -1572,6 +1627,7 @@ class PraxisStepper {
|
|
|
1572
1627
|
(editMessage)="onAiAssistantEditMessage($event)"
|
|
1573
1628
|
(resendMessage)="onAiAssistantResendMessage($event)"
|
|
1574
1629
|
(layoutChange)="onAiAssistantLayoutChange($event)"
|
|
1630
|
+
(minimize)="minimizeAiAssistant()"
|
|
1575
1631
|
(close)="closeAiAssistant()"
|
|
1576
1632
|
></praxis-ai-assistant-shell>
|
|
1577
1633
|
}
|
|
@@ -1848,7 +1904,7 @@ class PraxisStepper {
|
|
|
1848
1904
|
<mat-icon fontIcon="edit"></mat-icon>
|
|
1849
1905
|
</button>
|
|
1850
1906
|
}
|
|
1851
|
-
`, isInline: true, styles: [":host{display:block;position:relative}.praxis-stepper{width:100%;background:var(--md-sys-color-surface);border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;padding:12px;box-shadow:var(--mat-elevation-level1)}.praxis-stepper.pdx-stepper-ft-light{background:transparent;border:none;border-radius:0;padding:0;box-shadow:none}:host(.density-compact) ::ng-deep .mat-step-header{min-height:36px}:host(.density-compact) .pdx-step-actions{padding-top:4px;gap:6px}:host(.density-comfortable) ::ng-deep .mat-step-header{min-height:44px}.pdx-step-content{padding:12px 4px 8px;color:var(--md-sys-color-on-surface)}.pdx-step-actions{display:flex;gap:8px;padding-top:8px}::ng-deep .praxis-stepper .mat-step-header{border-radius:999px;margin:4px 0;color:var(--md-sys-color-on-surface)}::ng-deep .praxis-stepper .mat-step-label{color:var(--md-sys-color-on-surface);opacity:1}::ng-deep .praxis-stepper .mat-step-label.mat-step-label-active{color:var(--md-sys-color-on-surface)}::ng-deep .praxis-stepper .mat-step-label.mat-step-label-selected{color:var(--md-sys-color-on-surface);font-weight:600}::ng-deep .praxis-stepper .mat-step-optional{color:var(--md-sys-color-on-surface);opacity:1}::ng-deep .praxis-stepper .mat-step-header.cdk-keyboard-focused,::ng-deep .praxis-stepper .mat-step-header.cdk-program-focused{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}::ng-deep .praxis-stepper .mat-step-icon{background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface)}::ng-deep .praxis-stepper .mat-step-icon-selected{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}::ng-deep .praxis-stepper .mat-step-icon-state-done{background:var(--md-sys-color-tertiary);color:var(--md-sys-color-on-tertiary)}::ng-deep .praxis-stepper .mat-step-icon-state-error{background:var(--md-sys-color-error);color:var(--md-sys-color-on-error)}::ng-deep .praxis-stepper .mat-stepper-horizontal-line{border-top-color:var(--md-sys-color-outline-variant)}::ng-deep .praxis-stepper .mat-stepper-vertical-line:before{border-left-color:var(--md-sys-color-outline-variant)}::ng-deep .pdx-stepper-ft-light .mat-stepper-horizontal{background:transparent;--mat-stepper-header-hover-state-layer-color: color-mix( in srgb, var(--md-sys-color-on-surface) 8%, transparent );--mat-stepper-header-focus-state-layer-color: transparent;--mat-stepper-header-hover-state-layer-shape: 14px;--mat-stepper-header-focus-state-layer-shape: 14px}::ng-deep .pdx-stepper-ft-light .mat-step-header{margin:0}::ng-deep .pdx-stepper-ft-light .mat-step-header .mat-step-header-ripple{display:none}::ng-deep .ft-stepper{background:transparent}.ft-stepper-content{padding:0}.ft-stepper-content .form-section{border:none;padding:0;background:transparent}.nav-align-start{justify-content:flex-start}.nav-align-center{justify-content:center}.nav-align-end{justify-content:flex-end}.nav-align-space-between{justify-content:space-between}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.stepper-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.stepper-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.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i2.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i2.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i2.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i2.MatStepperIcon, selector: "ng-template[matStepperIcon]", inputs: ["matStepperIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.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: i3.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "schemaPointer", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange", "stepTelemetry"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { 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", "
|
|
1907
|
+
`, isInline: true, styles: [":host{display:block;position:relative}.praxis-stepper{width:100%;background:var(--md-sys-color-surface);border:1px solid var(--md-sys-color-outline-variant);border-radius:16px;padding:12px;box-shadow:var(--mat-elevation-level1)}.praxis-stepper.pdx-stepper-ft-light{background:transparent;border:none;border-radius:0;padding:0;box-shadow:none}:host(.density-compact) ::ng-deep .mat-step-header{min-height:36px}:host(.density-compact) .pdx-step-actions{padding-top:4px;gap:6px}:host(.density-comfortable) ::ng-deep .mat-step-header{min-height:44px}.pdx-step-content{padding:12px 4px 8px;color:var(--md-sys-color-on-surface)}.pdx-step-actions{display:flex;gap:8px;padding-top:8px}::ng-deep .praxis-stepper .mat-step-header{border-radius:999px;margin:4px 0;color:var(--md-sys-color-on-surface)}::ng-deep .praxis-stepper .mat-step-label{color:var(--md-sys-color-on-surface);opacity:1}::ng-deep .praxis-stepper .mat-step-label.mat-step-label-active{color:var(--md-sys-color-on-surface)}::ng-deep .praxis-stepper .mat-step-label.mat-step-label-selected{color:var(--md-sys-color-on-surface);font-weight:600}::ng-deep .praxis-stepper .mat-step-optional{color:var(--md-sys-color-on-surface);opacity:1}::ng-deep .praxis-stepper .mat-step-header.cdk-keyboard-focused,::ng-deep .praxis-stepper .mat-step-header.cdk-program-focused{outline:2px solid var(--md-sys-color-primary);outline-offset:2px}::ng-deep .praxis-stepper .mat-step-icon{background:var(--md-sys-color-surface-container-high);color:var(--md-sys-color-on-surface)}::ng-deep .praxis-stepper .mat-step-icon-selected{background:var(--md-sys-color-primary);color:var(--md-sys-color-on-primary)}::ng-deep .praxis-stepper .mat-step-icon-state-done{background:var(--md-sys-color-tertiary);color:var(--md-sys-color-on-tertiary)}::ng-deep .praxis-stepper .mat-step-icon-state-error{background:var(--md-sys-color-error);color:var(--md-sys-color-on-error)}::ng-deep .praxis-stepper .mat-stepper-horizontal-line{border-top-color:var(--md-sys-color-outline-variant)}::ng-deep .praxis-stepper .mat-stepper-vertical-line:before{border-left-color:var(--md-sys-color-outline-variant)}::ng-deep .pdx-stepper-ft-light .mat-stepper-horizontal{background:transparent;--mat-stepper-header-hover-state-layer-color: color-mix( in srgb, var(--md-sys-color-on-surface) 8%, transparent );--mat-stepper-header-focus-state-layer-color: transparent;--mat-stepper-header-hover-state-layer-shape: 14px;--mat-stepper-header-focus-state-layer-shape: 14px}::ng-deep .pdx-stepper-ft-light .mat-step-header{margin:0}::ng-deep .pdx-stepper-ft-light .mat-step-header .mat-step-header-ripple{display:none}::ng-deep .ft-stepper{background:transparent}.ft-stepper-content{padding:0}.ft-stepper-content .form-section{border:none;padding:0;background:transparent}.nav-align-start{justify-content:flex-start}.nav-align-center{justify-content:center}.nav-align-end{justify-content:flex-end}.nav-align-space-between{justify-content:space-between}.edit-fab{position:absolute;right:12px;bottom:12px;z-index:2}.stepper-ai-assistant{position:absolute;right:12px;bottom:72px;z-index:3}.stepper-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.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: MatStepperModule }, { kind: "component", type: i2.MatStep, selector: "mat-step", inputs: ["color"], exportAs: ["matStep"] }, { kind: "directive", type: i2.MatStepLabel, selector: "[matStepLabel]" }, { kind: "component", type: i2.MatStepper, selector: "mat-stepper, mat-vertical-stepper, mat-horizontal-stepper, [matStepper]", inputs: ["disableRipple", "color", "labelPosition", "headerPosition", "aria-label", "headerPrefix", "animationDuration"], outputs: ["animationDone"], exportAs: ["matStepper", "matVerticalStepper", "matHorizontalStepper"] }, { kind: "directive", type: i2.MatStepperIcon, selector: "ng-template[matStepperIcon]", inputs: ["matStepperIcon"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i3.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: i3.MatMiniFabButton, selector: "button[mat-mini-fab], a[mat-mini-fab], button[matMiniFab], a[matMiniFab]", exportAs: ["matButton", "matAnchor"] }, { kind: "component", type: i3.MatFabButton, selector: "button[mat-fab], a[mat-fab], button[matFab], a[matFab]", inputs: ["extended"], exportAs: ["matButton", "matAnchor"] }, { kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i4.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: PraxisIconDirective, selector: "mat-icon[praxisIcon]", inputs: ["praxisIcon"] }, { kind: "component", type: PraxisDynamicForm, selector: "praxis-dynamic-form", inputs: ["resourcePath", "resourceId", "initialValue", "overlayInitialValueOnEdit", "emptyState", "editorialContext", "mode", "config", "actions", "schemaSource", "actionId", "operationId", "schemaUrl", "schemaPointer", "readUrl", "submitUrl", "submitMethod", "submitIdempotencyKey", "submitCorrelationId", "submitResourceVersion", "submitResourceVersionTargetResourceKey", "submitResourceVersionTargetIdField", "responseSchemaUrl", "apiEndpointKey", "apiUrlEntry", "enableCustomization", "showAiAssistant", "formId", "componentInstanceId", "configPersistenceStrategy", "layout", "layoutMode", "formLayout", "generatedLayoutPreset", "layoutPolicy", "backConfig", "hooks", "removeEmptyContainersOnSave", "reactiveValidation", "reactiveValidationDebounceMs", "notifyIfOutdated", "snoozeMs", "autoOpenSettingsOnOutdated", "readonlyModeGlobal", "disabledModeGlobal", "presentationModeGlobal", "presentation", "presentationPreset", "sectionDefaultAppearance", "sectionDivider", "visibleGlobal", "fieldIconPolicy", "domainRules", "customEndpoints", "activeStepIndex"], outputs: ["formSubmit", "formCancel", "formReset", "configChange", "configPatchChange", "formReady", "valueChange", "payloadPreviewChange", "syncCompleted", "initializationError", "loadingStateChange", "enableCustomizationChange", "customAction", "actionConfirmation", "schemaStatusChange", "fieldRenderError", "ruleDiagnosticsChange", "reactiveDeterminationExecuted", "reactiveDeterminationPendingChange", "tabChange", "tabSelected", "stepChange", "stepTelemetry"] }, { kind: "directive", type: DynamicWidgetLoaderDirective, selector: "[dynamicWidgetLoader]", inputs: ["dynamicWidgetLoader", "ownerWidgetKey", "context", "strictValidation", "autoWireOutputs"], outputs: ["widgetEvent", "widgetDiagnostic"], exportAs: ["dynamicWidgetLoader"] }, { 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"] }, { kind: "component", type: PraxisRichContent, selector: "praxis-rich-content", inputs: ["document", "nodes", "context", "hostCapabilities", "clientSurfaceCapabilities", "layout", "surfaceVariant", "rootClassName"], outputs: ["nodeAction"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1852
1908
|
}
|
|
1853
1909
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImport: i0, type: PraxisStepper, decorators: [{
|
|
1854
1910
|
type: Component,
|
|
@@ -1888,6 +1944,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1888
1944
|
[canApply]="aiAssistantViewState.canApply"
|
|
1889
1945
|
[labels]="aiAssistantLabels"
|
|
1890
1946
|
[layout]="aiAssistantLayout"
|
|
1947
|
+
[showMinimize]="true"
|
|
1891
1948
|
testIdPrefix="praxis-stepper-ai-assistant"
|
|
1892
1949
|
(promptChange)="onAiAssistantPromptChange($event)"
|
|
1893
1950
|
(submitPrompt)="onAiAssistantSubmit($event)"
|
|
@@ -1898,6 +1955,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.14", ngImpo
|
|
|
1898
1955
|
(editMessage)="onAiAssistantEditMessage($event)"
|
|
1899
1956
|
(resendMessage)="onAiAssistantResendMessage($event)"
|
|
1900
1957
|
(layoutChange)="onAiAssistantLayoutChange($event)"
|
|
1958
|
+
(minimize)="minimizeAiAssistant()"
|
|
1901
1959
|
(close)="closeAiAssistant()"
|
|
1902
1960
|
></praxis-ai-assistant-shell>
|
|
1903
1961
|
}
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/stepper",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.72",
|
|
4
4
|
"description": "Stepper workflows for Praxis UI with integrated forms, lists, uploads and page builder support.",
|
|
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-form": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/rich-content": "^10.0.0-rc.
|
|
13
|
-
"@praxisui/settings-panel": "^10.0.0-rc.
|
|
14
|
-
"@praxisui/list": "^10.0.0-rc.
|
|
15
|
-
"@praxisui/files-upload": "^10.0.0-rc.
|
|
16
|
-
"@praxisui/page-builder": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/core": "^10.0.0-rc.72",
|
|
11
|
+
"@praxisui/dynamic-form": "^10.0.0-rc.72",
|
|
12
|
+
"@praxisui/rich-content": "^10.0.0-rc.72",
|
|
13
|
+
"@praxisui/settings-panel": "^10.0.0-rc.72",
|
|
14
|
+
"@praxisui/list": "^10.0.0-rc.72",
|
|
15
|
+
"@praxisui/files-upload": "^10.0.0-rc.72",
|
|
16
|
+
"@praxisui/page-builder": "^10.0.0-rc.72",
|
|
17
17
|
"@angular/forms": "^21.0.0",
|
|
18
18
|
"@angular/router": "^21.0.0",
|
|
19
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
19
|
+
"@praxisui/ai": "^10.0.0-rc.72",
|
|
20
20
|
"rxjs": "~7.8.0"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
@@ -197,7 +197,11 @@ declare class PraxisStepper implements OnInit, AfterViewInit, OnDestroy {
|
|
|
197
197
|
private readonly aiApi;
|
|
198
198
|
private readonly assistantSessions;
|
|
199
199
|
private readonly aiTurnOrchestrator;
|
|
200
|
+
private aiAssistantSessionDismissed;
|
|
201
|
+
private lastSyncedAiAssistantSessionId;
|
|
202
|
+
private lastHandledDismissalSeq;
|
|
200
203
|
private readonly aiAssistantSessionEffect;
|
|
204
|
+
private readonly aiAssistantDismissEffect;
|
|
201
205
|
private warnedMissingId;
|
|
202
206
|
protected readonly emptyStepRichContentDocument: RichContentDocument;
|
|
203
207
|
animationDone: EventEmitter<void>;
|
|
@@ -267,6 +271,7 @@ declare class PraxisStepper implements OnInit, AfterViewInit, OnDestroy {
|
|
|
267
271
|
applyConfigFromAdapter(next: StepperMetadata): void;
|
|
268
272
|
openAiAssistant(): void;
|
|
269
273
|
openAiAssistantFromSession(session: PraxisAssistantSessionSnapshot): void;
|
|
274
|
+
minimizeAiAssistant(): void;
|
|
270
275
|
closeAiAssistant(): void;
|
|
271
276
|
onAiAssistantPromptChange(prompt: string): void;
|
|
272
277
|
onAiAssistantSubmit(prompt: string): void;
|
|
@@ -281,6 +286,7 @@ declare class PraxisStepper implements OnInit, AfterViewInit, OnDestroy {
|
|
|
281
286
|
private initializeAiAssistantController;
|
|
282
287
|
private buildAiAssistantContextSnapshot;
|
|
283
288
|
private syncAiAssistantSession;
|
|
289
|
+
private reconcileAiAssistantSessionIdentity;
|
|
284
290
|
private hasAiAssistantSessionState;
|
|
285
291
|
private resolveAiAssistantSessionId;
|
|
286
292
|
private resolveAiAssistantOwnerId;
|