valtech-components 4.0.1017 → 4.0.1018

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.
@@ -70,7 +70,7 @@ import fixWebmDuration from 'fix-webm-duration';
70
70
  * Current version of valtech-components.
71
71
  * This is automatically updated during the publish process.
72
72
  */
73
- const VERSION = '4.0.1017';
73
+ const VERSION = '4.0.1018';
74
74
 
75
75
  function evaluateValtechAccess(rule, context, features = {}, visitedFeatures = new Set()) {
76
76
  if (rule == null)
@@ -42049,6 +42049,19 @@ class SurveyBuilderComponent {
42049
42049
  withResolvedSection(field) {
42050
42050
  const label = (field.sectionLabel ?? '').trim();
42051
42051
  const id = this.normalizeSectionId(field.sectionId);
42052
+ if (this.isWizard()) {
42053
+ const sectionLabel = label || this.sectionNameControl(id).value.trim() || this.sectionNames()[id] || '';
42054
+ const sectionSubtitle = (field.sectionSubtitle ?? '').trim() ||
42055
+ this.sectionSubtitleControl(id).value.trim() ||
42056
+ this.sectionSubtitles()[id] ||
42057
+ '';
42058
+ return {
42059
+ ...field,
42060
+ sectionId: id,
42061
+ sectionLabel: sectionLabel || undefined,
42062
+ sectionSubtitle: sectionSubtitle || undefined,
42063
+ };
42064
+ }
42052
42065
  if (!this.isWizard() && id === '__default__' && label) {
42053
42066
  return { ...field, sectionId: this.formBuilder.toToken(label), sectionLabel: label };
42054
42067
  }