@wavemaker-ai/app-ng-runtime 12.1.1-rc.647845 → 12.1.2-rc.647883

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.
Files changed (46) hide show
  1. package/build-task/bundles/index.umd.js +153 -139
  2. package/build-task/fesm2022/index.mjs +154 -141
  3. package/build-task/fesm2022/index.mjs.map +1 -1
  4. package/build-task/types/index-rolldown-runtime-C25Le4-w.d.ts +1 -0
  5. package/build-task/types/index.d.ts +41 -37
  6. package/components/base/bundles/index.umd.js +16 -9
  7. package/components/base/fesm2022/index.mjs +18 -11
  8. package/components/base/fesm2022/index.mjs.map +1 -1
  9. package/components/basic/audio/bundles/index.umd.js +2 -8
  10. package/components/basic/audio/fesm2022/index.mjs +3 -9
  11. package/components/basic/audio/fesm2022/index.mjs.map +1 -1
  12. package/components/containers/wizard/bundles/index.umd.js +101 -65
  13. package/components/containers/wizard/fesm2022/index.mjs +99 -62
  14. package/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  15. package/components/containers/wizard/types/index.d.ts +79 -5
  16. package/components/containers/wizardstepper/bundles/index.umd.js +237 -0
  17. package/components/containers/wizardstepper/fesm2022/index.mjs +215 -0
  18. package/components/containers/wizardstepper/fesm2022/index.mjs.map +1 -0
  19. package/components/containers/wizardstepper/package.json +19 -0
  20. package/components/containers/wizardstepper/types/index.d.ts +71 -0
  21. package/components/data/list/bundles/index.umd.js +4 -0
  22. package/components/data/list/fesm2022/index.mjs +4 -0
  23. package/components/data/list/fesm2022/index.mjs.map +1 -1
  24. package/components/data/list/types/index.d.ts +1 -0
  25. package/components/data/pagination/bundles/index.umd.js +26 -8
  26. package/components/data/pagination/fesm2022/index.mjs +24 -5
  27. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  28. package/components/data/pagination/types/index.d.ts +5 -3
  29. package/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  30. package/core/bundles/index.umd.js +20 -14
  31. package/core/fesm2022/index.mjs +23 -17
  32. package/core/fesm2022/index.mjs.map +1 -1
  33. package/core/types/index.d.ts +1 -0
  34. package/npm-shrinkwrap.json +2 -2
  35. package/package-lock.json +2 -2
  36. package/package.json +1 -1
  37. package/runtime/base/bundles/index.umd.js +20 -15
  38. package/runtime/base/fesm2022/index.mjs +52 -46
  39. package/runtime/base/fesm2022/index.mjs.map +1 -1
  40. package/runtime/base/types/index.d.ts +23 -21
  41. package/runtime/dynamic/bundles/index.umd.js +6 -1
  42. package/runtime/dynamic/fesm2022/index.mjs +6 -1
  43. package/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  44. package/variables/bundles/index.umd.js +13 -13
  45. package/variables/fesm2022/index.mjs +18 -18
  46. package/variables/fesm2022/index.mjs.map +1 -1
@@ -2,9 +2,10 @@ import * as i2 from "@angular/common";
2
2
  import { CommonModule } from "@angular/common";
3
3
  import { APPLY_STYLES_TYPE, BaseComponent, Context, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, RedrawableDirective, StylableComponent, TextContentDirective, WmAppIconComponent, createArrayFrom, getCurrentWidgets, provideAsWidgetRef, register, styler } from "@wm/components/base";
4
4
  import * as i0 from "@angular/core";
5
- import { ChangeDetectionStrategy, Component, ContentChild, ContentChildren, Directive, HostBinding, Inject, Optional, Self, TemplateRef } from "@angular/core";
5
+ import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ContentChildren, Directive, HostBinding, Inject, Optional, Self, TemplateRef } from "@angular/core";
6
6
  import * as i1 from "@wm/core";
7
7
  import { App, isDefined, noop } from "@wm/core";
8
+ import { WizardStepperComponent } from "@wm/components/containers/wizardstepper";
8
9
  import * as i1$1 from "@angular/forms";
9
10
  import { NgForm } from "@angular/forms";
10
11
  import { find, findIndex, forEach, get, indexOf, isArray, isNumber, isString } from "lodash-es";
@@ -113,6 +114,9 @@ var WizardStepComponent = class WizardStepComponent extends StylableComponent {
113
114
  get currentClass() {
114
115
  return !this.isPrism && this.active;
115
116
  }
117
+ get isHidden() {
118
+ return !this.active || this.show === false;
119
+ }
116
120
  get isCurrent() {
117
121
  return this.active;
118
122
  }
@@ -250,7 +254,8 @@ var WizardStepComponent = class WizardStepComponent extends StylableComponent {
250
254
  selector: "form[wmWizardStep]",
251
255
  host: { properties: {
252
256
  "class.active": "this.activeClass",
253
- "class.current": "this.currentClass"
257
+ "class.current": "this.currentClass",
258
+ "hidden": "this.isHidden"
254
259
  } },
255
260
  providers: [provideAsWidgetRef(WizardStepComponent), NgForm],
256
261
  queries: [{
@@ -309,6 +314,10 @@ i0.ɵɵngDeclareClassMetadata({
309
314
  currentClass: [{
310
315
  type: HostBinding,
311
316
  args: ["class.current"]
317
+ }],
318
+ isHidden: [{
319
+ type: HostBinding,
320
+ args: ["hidden"]
312
321
  }]
313
322
  }
314
323
  });
@@ -339,9 +348,13 @@ var WizardComponent = class WizardComponent extends StylableComponent {
339
348
  return this.enablenext ? true : this.currentStep.enableNext && this.currentStep.isValid;
340
349
  }
341
350
  wizardHostClassString() {
342
- const fromProp = typeof this.class === "string" ? this.class : "";
343
- const rawDom = this.nativeElement?.className;
344
- return `${fromProp} ${typeof rawDom === "string" ? rawDom : rawDom?.baseVal || ""}`.trim();
351
+ const header = this.explicitHeader || this.resolveStandaloneHeader();
352
+ return header && typeof header.class === "string" ? header.class : "";
353
+ }
354
+ resolveStandaloneHeader() {
355
+ const widgets = this.viewParent?.Widgets;
356
+ if (!widgets) return;
357
+ return Object.keys(widgets).map((key) => widgets[key]).find((w) => w && w.widgetType === "wm-wizardstepper" && w.wizardname === this.name);
345
358
  }
346
359
  get showWizardStepIcons() {
347
360
  const c = this.wizardHostClassString();
@@ -398,6 +411,7 @@ var WizardComponent = class WizardComponent extends StylableComponent {
398
411
  super(inj, WIDGET_CONFIG, explicitContext, new Promise((res) => resolveFn = res));
399
412
  this._isFirstLoad = true;
400
413
  this.isPromise = (obj) => obj instanceof Promise || obj !== null && typeof obj === "object" && typeof obj.then === "function" && typeof obj.catch === "function";
414
+ this.nestedHeaderVerticalClassReady = false;
401
415
  styler(this.nativeElement, this, APPLY_STYLES_TYPE.SHELL);
402
416
  this.promiseResolverFn = resolveFn;
403
417
  this.message = {
@@ -500,7 +514,7 @@ var WizardComponent = class WizardComponent extends StylableComponent {
500
514
  }
501
515
  this.addMoreText();
502
516
  }
503
- onWizardHeaderClick($event, currentStep) {
517
+ onWizardStepperClick($event, currentStep) {
504
518
  if (currentStep.done) {
505
519
  this.steps.forEach((step, index) => {
506
520
  if (index < this.getStepIndexByRef(currentStep)) {
@@ -632,7 +646,7 @@ var WizardComponent = class WizardComponent extends StylableComponent {
632
646
  return;
633
647
  }
634
648
  const gotoStep = this.getStepRefByIndex(gotoStepIndex);
635
- if (gotoStep?.show) this.onWizardHeaderClick(event, gotoStep);
649
+ if (gotoStep?.show) this.onWizardStepperClick(event, gotoStep);
636
650
  else console.error("The gotoStep function cannot navigate to hidden steps");
637
651
  }
638
652
  done() {
@@ -701,6 +715,10 @@ var WizardComponent = class WizardComponent extends StylableComponent {
701
715
  ngAfterContentInit() {
702
716
  super.ngAfterContentInit();
703
717
  this.promiseResolverFn();
718
+ Promise.resolve().then(() => {
719
+ this.nestedHeaderVerticalClassReady = true;
720
+ this.syncNestedHeaderVerticalClass();
721
+ });
704
722
  this.wizContext.hasNextStep = () => this.hasNextStep;
705
723
  this.wizContext.hasPreviousStep = () => this.hasPrevStep;
706
724
  this.wizContext.hasNoNextStep = () => this.showDoneBtn;
@@ -719,12 +737,28 @@ var WizardComponent = class WizardComponent extends StylableComponent {
719
737
  this.wizContext.disableNext = () => !this.enableNext;
720
738
  this.wizContext.disablePrevious = () => !this.enablePrev;
721
739
  this.wizContext.disableDone = () => !this.enableDone;
740
+ this.wizContext.steps = this.steps;
741
+ this.wizContext.getWizardClass = () => this.wizardHostClassString();
742
+ this.wizContext.getStepClass = () => this.stepClass;
743
+ this.wizContext.onHeaderClick = (event, step) => this.onWizardStepperClick(event, step);
744
+ this.wizContext.onHeaderKeyDown = (event) => this.onkeydown(event);
745
+ this.wizContext.shouldRenderStepNumberSpan = (step) => this.shouldRenderWizardStepNumberSpan(step);
746
+ this.wizContext.shouldShowPrimaryStepIcon = (step) => this.shouldShowPrimaryStepIcon(step);
747
+ this.wizContext.hasNonEmptyDoneIconClass = (step) => this.hasNonEmptyDoneIconClass(step);
748
+ this.wizContext.stepIconClassOrDefault = (step) => this.stepIconClassOrDefault(step);
749
+ this.wizContext.showWizardStepIcons = () => this.showWizardStepIcons;
750
+ this.wizContext.isTabStepperWizard = () => this.isTabStepperWizard;
751
+ this.wizContext.readMoreSubtitle = () => this.readMoreSubtitle();
722
752
  this.stepsSubscription = this.steps.changes.subscribe(() => {
723
753
  if (this.steps.length > 1 && this.type === "dynamic" && this._isFirstLoad) {
724
754
  this.setDefaultStep(this.getStepRefByIndex(this.defaultstepindex));
725
755
  this._isFirstLoad = false;
726
756
  }
727
757
  });
758
+ setTimeout(() => {
759
+ const cdr = this.inj.get(ChangeDetectorRef, null);
760
+ if (cdr && !cdr.destroyed) cdr.detectChanges();
761
+ });
728
762
  }
729
763
  isSelectableStep(stepRef) {
730
764
  return stepRef.show && !stepRef.disabled;
@@ -797,14 +831,14 @@ var WizardComponent = class WizardComponent extends StylableComponent {
797
831
  event.preventDefault();
798
832
  setTimeout(() => {
799
833
  const activeElement = this.nativeElement.querySelector("li.active");
800
- const stepLi = activeElement.closest("li[data-stepid]");
801
- const isInWizardHeader = activeElement.closest(".app-wizard-heading");
802
- if (stepLi && isInWizardHeader) {
834
+ const stepLi = activeElement?.closest("li[data-stepid]");
835
+ const isInWizardStepper = activeElement?.closest(".app-wizard-heading");
836
+ if (stepLi && isInWizardStepper) {
803
837
  const stepId = stepLi.getAttribute("data-stepid");
804
838
  const stepIndex = this.steps.toArray().findIndex((step) => step.widgetId === stepId);
805
839
  const currentStep = this.steps.toArray()[stepIndex];
806
840
  if (currentStep && currentStep !== this.currentStep) {
807
- this.onWizardHeaderClick(event, currentStep);
841
+ this.onWizardStepperClick(event, currentStep);
808
842
  this.nativeElement.querySelectorAll("li[data-stepid]").forEach((el) => {
809
843
  el.setAttribute("tabindex", "-1");
810
844
  });
@@ -826,7 +860,7 @@ var WizardComponent = class WizardComponent extends StylableComponent {
826
860
  this.nativeElement.querySelectorAll("li[data-stepid] a").forEach((el) => {
827
861
  el.setAttribute("tabindex", "-1");
828
862
  });
829
- stepLi.setAttribute("tabindex", "0");
863
+ stepLi?.setAttribute("tabindex", "0");
830
864
  stepLi?.focus();
831
865
  }
832
866
  }
@@ -834,6 +868,25 @@ var WizardComponent = class WizardComponent extends StylableComponent {
834
868
  const index = this.steps.toArray().findIndex((step) => this.nativeElement.querySelector(`li[data-stepid="${step.widgetId}"]`)?.classList.contains("active"));
835
869
  return index >= 0 ? index : this.getActiveStepIndex();
836
870
  }
871
+ get hasExternalHeader() {
872
+ const widgets = this.viewParent?.Widgets;
873
+ if (!widgets) return false;
874
+ const explicitHeaderName = this.explicitHeader?.name;
875
+ return Object.keys(widgets).some((key) => {
876
+ const w = widgets[key];
877
+ return w && (!explicitHeaderName || w.name !== explicitHeaderName) && w.widgetType === "wm-wizardstepper" && w.wizardname === this.name;
878
+ });
879
+ }
880
+ get isNestedHeaderVertical() {
881
+ if (this.hasExternalHeader) return false;
882
+ return !!(this.explicitHeader?.class)?.includes("wizardstepper-vertical");
883
+ }
884
+ syncNestedHeaderVerticalClass() {
885
+ this.nativeElement.classList.toggle("wizardstepper-vertical", this.isNestedHeaderVertical);
886
+ }
887
+ ngAfterContentChecked() {
888
+ if (this.nestedHeaderVerticalClassReady) this.syncNestedHeaderVerticalClass();
889
+ }
837
890
  ngOnDestroy() {
838
891
  if (this.stepsSubscription) {
839
892
  this.stepsSubscription.unsubscribe();
@@ -891,61 +944,40 @@ var WizardComponent = class WizardComponent extends StylableComponent {
891
944
  },
892
945
  multi: true
893
946
  }],
894
- queries: [{
895
- propertyName: "wizardAction",
896
- first: true,
897
- predicate: ["wizardAction"],
898
- read: TemplateRef
899
- }, {
900
- propertyName: "steps",
901
- predicate: WizardStepComponent
902
- }],
903
- exportAs: ["wmWizard"],
904
- usesInheritance: true,
905
- ngImport: i0,
906
- template: "<div class=\"app-wizard-heading\">\n <ul class=\"app-wizard-steps nav nav-pills {{stepClass}}\">\n @for (step of steps; track step; let i = $index) {\n <li class=\"app-wizard-step\" [hidden]=\"!step.show\"\n [ngClass]=\"{finished: step.done, active: step.active, default: step.disabled}\"\n (click)=\"onWizardHeaderClick($event, step)\" [attr.data-stepid]=\"step.widgetId\">\n <a href=\"javascript:void(0)\" [attr.aria-current]=\"step.active ? 'step' : null\"\n [attr.aria-disabled]=\"step.disabled\" [attr.aria-label]='step.subtitle ? \"step \" + (i + 1) + \" \" + step.title + \" \" + step.subtitle : \"step \" + (i + 1) + \" \" + step.title' [attr.title]= \"step.title\"\n [ngClass]=\"{'title-center-align':class && class.includes('classic') && !step.subtitle}\" [tabindex]=\"step.active ? '0' : '-1'\" (keydown)=\"onkeydown($event)\">\n @if (class && class.includes('classic')) {\n <span class=\"arrow\"></span>\n }\n @if (shouldRenderWizardStepNumberSpan(step)) {\n <span class=\"wizard-step-number\">\n @if (class && class.includes('number') && !step.isDone && !showWizardStepIcons) {\n <span class=\"count\">{{i+1}}</span>\n }\n @if (class && (class.includes('dottedstepper') || class.includes('text-inline') && !showWizardStepIcons) && !step.isDone) {\n <i class=\"dottedstepper\"></i>\n }\n @if (class && (class.includes('dottedstepper') || class.includes('number')) && step.isDone) {\n <i class=\"app-icon wi wi-done\"></i>\n }\n @if (shouldShowPrimaryStepIcon(step)) {\n <wm-app-icon [iconclass]=\"stepIconClassOrDefault(step)\" [iconurl]=\"step.iconurl\"></wm-app-icon>\n }\n @if (showWizardStepIcons && step.isDone && hasNonEmptyDoneIconClass(step)) {\n <wm-app-icon [iconclass]=\"step.doneiconclass\" [iconurl]=\"step.doneiconurl\"></wm-app-icon>\n }\n </span>\n }\n <span class=\"title-wrapper\">\n @if (class && class.includes('text-inline')) {\n <span>{{'0' + (i+1)}}</span>\n }\n <span class=\"step-title\" [textContent]=\"step.title\"></span>\n </span>\n @if (step.subtitle) {\n <span class=\"subtitle-wrapper\" [attr.title]=\"step.subtitle\">\n <span class=\"step-title\" [textContent]=\"step.subtitle\"></span>\n <a class=\"read_more\" (click)=\"readMoreSubtitle()\" style=\"display:none\">more</a>\n </span>\n }\n </a>\n </li>\n }\n </ul>\n</div>\n@if (type !== 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if (message.caption) {\n <p wmMessage caption.bind=\"message.caption\" type.bind=\"message.type\"></p>\n }\n <ng-content ngProjectAs=\"form[wmWizardStep]\"></ng-content>\n</div>\n}\n@if (type === 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if(!fieldDefs?.length) {\n <div>{{nodatamessage}}</div>\n }\n <ng-content select=\"div[wmRepeatTemplate]\"></ng-content>\n</div>\n}\n@if(fieldDefs && fieldDefs.length || type !== 'dynamic') {\n <ng-container *ngTemplateOutlet=\"wizardAction\"></ng-container>\n}\n",
907
- dependencies: [
908
- {
909
- kind: "ngmodule",
910
- type: CommonModule
911
- },
912
- {
913
- kind: "directive",
914
- type: i2.NgClass,
915
- selector: "[ngClass]",
916
- inputs: ["class", "ngClass"]
917
- },
947
+ queries: [
918
948
  {
919
- kind: "directive",
920
- type: i2.NgTemplateOutlet,
921
- selector: "[ngTemplateOutlet]",
922
- inputs: [
923
- "ngTemplateOutletContext",
924
- "ngTemplateOutlet",
925
- "ngTemplateOutletInjector"
926
- ]
949
+ propertyName: "wizardAction",
950
+ first: true,
951
+ predicate: ["wizardAction"],
952
+ read: TemplateRef
927
953
  },
928
954
  {
929
- kind: "directive",
930
- type: TextContentDirective,
931
- selector: "[textContent]",
932
- inputs: ["textContent"]
955
+ propertyName: "explicitHeader",
956
+ first: true,
957
+ predicate: WizardStepperComponent
933
958
  },
934
959
  {
935
- kind: "component",
936
- type: WmAppIconComponent,
937
- selector: "wm-app-icon",
938
- inputs: [
939
- "icon",
940
- "iconclass",
941
- "iconurl",
942
- "defaultIconClass",
943
- "defaultClasses",
944
- "iconStyle",
945
- "alt"
946
- ]
960
+ propertyName: "steps",
961
+ predicate: WizardStepComponent
947
962
  }
948
963
  ],
964
+ exportAs: ["wmWizard"],
965
+ usesInheritance: true,
966
+ ngImport: i0,
967
+ template: "<!--\n 002-stepper-header-widget: the header is the standalone `wm-wizardstepper` widget. The page\n markup authors one explicitly (as a child, same as wm-wizardstep/wm-wizardaction), and it is\n projected here, selectable/movable on canvas like any other widget. See wizard.component.ts\n ngAfterContentInit for the wizContext handshake this component reads from.\n-->\n<ng-content select=\"div[wmWizardStepper]\"></ng-content>\n@if (type !== 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if (message.caption) {\n <p wmMessage caption.bind=\"message.caption\" type.bind=\"message.type\"></p>\n }\n <ng-content ngProjectAs=\"form[wmWizardStep]\"></ng-content>\n</div>\n}\n@if (type === 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if(!fieldDefs?.length) {\n <div>{{nodatamessage}}</div>\n }\n <ng-content select=\"div[wmRepeatTemplate]\"></ng-content>\n</div>\n}\n@if(fieldDefs && fieldDefs.length || type !== 'dynamic') {\n <ng-container *ngTemplateOutlet=\"wizardAction\"></ng-container>\n}\n",
968
+ dependencies: [{
969
+ kind: "ngmodule",
970
+ type: CommonModule
971
+ }, {
972
+ kind: "directive",
973
+ type: i2.NgTemplateOutlet,
974
+ selector: "[ngTemplateOutlet]",
975
+ inputs: [
976
+ "ngTemplateOutletContext",
977
+ "ngTemplateOutlet",
978
+ "ngTemplateOutletInjector"
979
+ ]
980
+ }],
949
981
  changeDetection: i0.ChangeDetectionStrategy.Eager
950
982
  });
951
983
  }
@@ -963,7 +995,8 @@ i0.ɵɵngDeclareClassMetadata({
963
995
  imports: [
964
996
  CommonModule,
965
997
  TextContentDirective,
966
- WmAppIconComponent
998
+ WmAppIconComponent,
999
+ WizardStepperComponent
967
1000
  ],
968
1001
  selector: "div[wmWizard]",
969
1002
  providers: [provideAsWidgetRef(WizardComponent), {
@@ -974,7 +1007,7 @@ i0.ɵɵngDeclareClassMetadata({
974
1007
  multi: true
975
1008
  }],
976
1009
  exportAs: "wmWizard",
977
- template: "<div class=\"app-wizard-heading\">\n <ul class=\"app-wizard-steps nav nav-pills {{stepClass}}\">\n @for (step of steps; track step; let i = $index) {\n <li class=\"app-wizard-step\" [hidden]=\"!step.show\"\n [ngClass]=\"{finished: step.done, active: step.active, default: step.disabled}\"\n (click)=\"onWizardHeaderClick($event, step)\" [attr.data-stepid]=\"step.widgetId\">\n <a href=\"javascript:void(0)\" [attr.aria-current]=\"step.active ? 'step' : null\"\n [attr.aria-disabled]=\"step.disabled\" [attr.aria-label]='step.subtitle ? \"step \" + (i + 1) + \" \" + step.title + \" \" + step.subtitle : \"step \" + (i + 1) + \" \" + step.title' [attr.title]= \"step.title\"\n [ngClass]=\"{'title-center-align':class && class.includes('classic') && !step.subtitle}\" [tabindex]=\"step.active ? '0' : '-1'\" (keydown)=\"onkeydown($event)\">\n @if (class && class.includes('classic')) {\n <span class=\"arrow\"></span>\n }\n @if (shouldRenderWizardStepNumberSpan(step)) {\n <span class=\"wizard-step-number\">\n @if (class && class.includes('number') && !step.isDone && !showWizardStepIcons) {\n <span class=\"count\">{{i+1}}</span>\n }\n @if (class && (class.includes('dottedstepper') || class.includes('text-inline') && !showWizardStepIcons) && !step.isDone) {\n <i class=\"dottedstepper\"></i>\n }\n @if (class && (class.includes('dottedstepper') || class.includes('number')) && step.isDone) {\n <i class=\"app-icon wi wi-done\"></i>\n }\n @if (shouldShowPrimaryStepIcon(step)) {\n <wm-app-icon [iconclass]=\"stepIconClassOrDefault(step)\" [iconurl]=\"step.iconurl\"></wm-app-icon>\n }\n @if (showWizardStepIcons && step.isDone && hasNonEmptyDoneIconClass(step)) {\n <wm-app-icon [iconclass]=\"step.doneiconclass\" [iconurl]=\"step.doneiconurl\"></wm-app-icon>\n }\n </span>\n }\n <span class=\"title-wrapper\">\n @if (class && class.includes('text-inline')) {\n <span>{{'0' + (i+1)}}</span>\n }\n <span class=\"step-title\" [textContent]=\"step.title\"></span>\n </span>\n @if (step.subtitle) {\n <span class=\"subtitle-wrapper\" [attr.title]=\"step.subtitle\">\n <span class=\"step-title\" [textContent]=\"step.subtitle\"></span>\n <a class=\"read_more\" (click)=\"readMoreSubtitle()\" style=\"display:none\">more</a>\n </span>\n }\n </a>\n </li>\n }\n </ul>\n</div>\n@if (type !== 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if (message.caption) {\n <p wmMessage caption.bind=\"message.caption\" type.bind=\"message.type\"></p>\n }\n <ng-content ngProjectAs=\"form[wmWizardStep]\"></ng-content>\n</div>\n}\n@if (type === 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if(!fieldDefs?.length) {\n <div>{{nodatamessage}}</div>\n }\n <ng-content select=\"div[wmRepeatTemplate]\"></ng-content>\n</div>\n}\n@if(fieldDefs && fieldDefs.length || type !== 'dynamic') {\n <ng-container *ngTemplateOutlet=\"wizardAction\"></ng-container>\n}\n"
1010
+ template: "<!--\n 002-stepper-header-widget: the header is the standalone `wm-wizardstepper` widget. The page\n markup authors one explicitly (as a child, same as wm-wizardstep/wm-wizardaction), and it is\n projected here, selectable/movable on canvas like any other widget. See wizard.component.ts\n ngAfterContentInit for the wizContext handshake this component reads from.\n-->\n<ng-content select=\"div[wmWizardStepper]\"></ng-content>\n@if (type !== 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if (message.caption) {\n <p wmMessage caption.bind=\"message.caption\" type.bind=\"message.type\"></p>\n }\n <ng-content ngProjectAs=\"form[wmWizardStep]\"></ng-content>\n</div>\n}\n@if (type === 'dynamic') {\n<div class=\"app-wizard-body panel-body\">\n @if(!fieldDefs?.length) {\n <div>{{nodatamessage}}</div>\n }\n <ng-content select=\"div[wmRepeatTemplate]\"></ng-content>\n</div>\n}\n@if(fieldDefs && fieldDefs.length || type !== 'dynamic') {\n <ng-container *ngTemplateOutlet=\"wizardAction\"></ng-container>\n}\n"
978
1011
  }]
979
1012
  }],
980
1013
  ctorParameters: () => [
@@ -1006,6 +1039,10 @@ i0.ɵɵngDeclareClassMetadata({
1006
1039
  read: TemplateRef,
1007
1040
  descendants: false
1008
1041
  }]
1042
+ }],
1043
+ explicitHeader: [{
1044
+ type: ContentChild,
1045
+ args: [WizardStepperComponent, { descendants: false }]
1009
1046
  }]
1010
1047
  }
1011
1048
  });