@praxisui/stepper 7.0.0-beta.0 → 8.0.0-beta.0
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 +13 -3
- package/fesm2022/praxisui-stepper.mjs +247 -917
- package/index.d.ts +15 -24
- package/package.json +8 -7
package/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { OnInit, AfterViewInit, TemplateRef, EventEmitter, Provider } from '@angular/core';
|
|
3
|
-
import { AiCapability, FormConfig, WidgetDefinition, WidgetEventEnvelope, FormReadyEvent, FormValueChangeEvent, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
3
|
+
import { AiCapability, FormConfig, RichContentDocument, WidgetDefinition, WidgetEventEnvelope, FormReadyEvent, FormValueChangeEvent, JsonLogicRecord, ComponentDocMeta, AiCapabilityCategory, AiValueKind, AiCapabilityCatalog } from '@praxisui/core';
|
|
4
4
|
import { FormGroup } from '@angular/forms';
|
|
5
5
|
import { ThemePalette } from '@angular/material/core';
|
|
6
6
|
import { BaseAiAdapter, PatchResult } from '@praxisui/ai';
|
|
@@ -46,8 +46,11 @@ interface StepConfig {
|
|
|
46
46
|
schemaSource?: 'resource' | 'filter';
|
|
47
47
|
formId?: string;
|
|
48
48
|
};
|
|
49
|
-
/**
|
|
50
|
-
|
|
49
|
+
/** Rich editorial content rendered before the step form. */
|
|
50
|
+
stepBlocksBeforeForm?: RichContentDocument | null;
|
|
51
|
+
/** Rich editorial content rendered after the step form. */
|
|
52
|
+
stepBlocksAfterForm?: RichContentDocument | null;
|
|
53
|
+
/** Advanced host-owned components rendered after the canonical rich content. */
|
|
51
54
|
widgets?: WidgetDefinition[];
|
|
52
55
|
description?: string;
|
|
53
56
|
}
|
|
@@ -151,6 +154,7 @@ declare class PraxisStepper implements OnInit, AfterViewInit {
|
|
|
151
154
|
private readonly logger;
|
|
152
155
|
private readonly route;
|
|
153
156
|
private warnedMissingId;
|
|
157
|
+
protected readonly emptyStepRichContentDocument: RichContentDocument;
|
|
154
158
|
animationDone: EventEmitter<void>;
|
|
155
159
|
aiAdapter: StepperAiAdapter;
|
|
156
160
|
steps: _angular_core.Signal<StepConfig[]>;
|
|
@@ -199,6 +203,8 @@ declare class PraxisStepper implements OnInit, AfterViewInit {
|
|
|
199
203
|
computedHasError(i: number, step: StepConfig): boolean;
|
|
200
204
|
onChildWidgetEvent(stepIndex: number, wd: WidgetDefinition, e: WidgetEventEnvelope): void;
|
|
201
205
|
isStepEmpty(step: StepConfig): boolean;
|
|
206
|
+
hasRichContent(document?: RichContentDocument | null): boolean;
|
|
207
|
+
getStepRichContentContext(stepIndex: number): JsonLogicRecord;
|
|
202
208
|
openEditor(): void;
|
|
203
209
|
applyConfigFromAdapter(next: StepperMetadata): void;
|
|
204
210
|
addFirstStep(): void;
|
|
@@ -230,7 +236,6 @@ declare const PRAXIS_WIZARD_NOTICE_METADATA: ComponentDocMeta;
|
|
|
230
236
|
declare const PRAXIS_WIZARD_DIVIDER_METADATA: ComponentDocMeta;
|
|
231
237
|
declare function providePraxisStepperMetadata(): Provider;
|
|
232
238
|
|
|
233
|
-
type WizardWidgetId = 'praxis-wizard-benefits' | 'praxis-wizard-content' | 'praxis-wizard-inline-notice' | 'praxis-wizard-divider';
|
|
234
239
|
type EditorialZone = 'before' | 'after';
|
|
235
240
|
declare class PraxisStepperConfigEditor implements SettingsValueProvider {
|
|
236
241
|
private readonly i18n;
|
|
@@ -282,29 +287,18 @@ declare class PraxisStepperConfigEditor implements SettingsValueProvider {
|
|
|
282
287
|
private ensureActiveStep;
|
|
283
288
|
private commitFocusedFieldBeforeSwitch;
|
|
284
289
|
ensureWidgets(): WidgetDefinition[];
|
|
285
|
-
ensureWidgetsBeforeForm(): WidgetDefinition[];
|
|
286
290
|
displayWidgetName(w: WidgetDefinition): string;
|
|
287
|
-
editorialBeforeWidgets(step: StepConfig): WidgetDefinition[];
|
|
288
|
-
editorialAfterWidgets(step: StepConfig): WidgetDefinition[];
|
|
289
291
|
advancedWidgets(step: StepConfig): WidgetDefinition[];
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
moveEditorialWidget(w: WidgetDefinition, from: EditorialZone, to: EditorialZone): void;
|
|
297
|
-
duplicateEditorialWidget(w: WidgetDefinition, zone: EditorialZone): void;
|
|
298
|
-
removeEditorialWidget(w: WidgetDefinition, zone: EditorialZone): void;
|
|
292
|
+
richContentNodeCount(document?: RichContentDocument | null): number;
|
|
293
|
+
richContentJson(step: StepConfig, zone: EditorialZone): string;
|
|
294
|
+
setRichContentJson(step: StepConfig, zone: EditorialZone, value: string): void;
|
|
295
|
+
seedRichContent(step: StepConfig, zone: EditorialZone): void;
|
|
296
|
+
clearRichContent(step: StepConfig, zone: EditorialZone): void;
|
|
297
|
+
private normalizeRichContentDocument;
|
|
299
298
|
removeAdvancedWidget(w: WidgetDefinition): void;
|
|
300
299
|
dropWidget(ev: CdkDragDrop<WidgetDefinition[]>): void;
|
|
301
300
|
removeWidget(idx: number): void;
|
|
302
301
|
canEditWidget(w: WidgetDefinition): boolean;
|
|
303
|
-
private defaultEditorialInputs;
|
|
304
|
-
private nextEditorialBlockId;
|
|
305
|
-
private normalizeBlockIdPart;
|
|
306
|
-
private toneLabel;
|
|
307
|
-
private reorderSubset;
|
|
308
302
|
addMainForm(): void;
|
|
309
303
|
editMainForm(): void;
|
|
310
304
|
removeMainForm(): void;
|
|
@@ -315,9 +309,6 @@ declare class PraxisStepperConfigEditor implements SettingsValueProvider {
|
|
|
315
309
|
addTreeList(): void;
|
|
316
310
|
addTransferListQuick(): void;
|
|
317
311
|
editWidget(w: WidgetDefinition): void;
|
|
318
|
-
private openWizardWidgetEditor;
|
|
319
|
-
private openWizardWidgetDialog;
|
|
320
|
-
private isWizardWidgetId;
|
|
321
312
|
getSettingsValue(): any;
|
|
322
313
|
onSave(): any;
|
|
323
314
|
reset(): void;
|
package/package.json
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/stepper",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "8.0.0-beta.0",
|
|
4
4
|
"description": "Stepper workflows for Praxis UI with integrated forms, lists, uploads and page builder support.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^20.0.0",
|
|
7
7
|
"@angular/core": "^20.0.0",
|
|
8
8
|
"@angular/material": "^20.0.0",
|
|
9
9
|
"@angular/cdk": "^20.0.0",
|
|
10
|
-
"@praxisui/core": "^
|
|
11
|
-
"@praxisui/dynamic-form": "^
|
|
12
|
-
"@praxisui/
|
|
13
|
-
"@praxisui/
|
|
14
|
-
"@praxisui/
|
|
15
|
-
"@praxisui/
|
|
10
|
+
"@praxisui/core": "^8.0.0-beta.0",
|
|
11
|
+
"@praxisui/dynamic-form": "^8.0.0-beta.0",
|
|
12
|
+
"@praxisui/rich-content": "^8.0.0-beta.0",
|
|
13
|
+
"@praxisui/settings-panel": "^8.0.0-beta.0",
|
|
14
|
+
"@praxisui/list": "^8.0.0-beta.0",
|
|
15
|
+
"@praxisui/files-upload": "^8.0.0-beta.0",
|
|
16
|
+
"@praxisui/page-builder": "^8.0.0-beta.0"
|
|
16
17
|
},
|
|
17
18
|
"dependencies": {
|
|
18
19
|
"tslib": "^2.3.0"
|