@planning-inspectorate/dynamic-forms 3.6.1 → 3.6.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@planning-inspectorate/dynamic-forms",
3
- "version": "3.6.1",
3
+ "version": "3.6.2",
4
4
  "description": "This package is for building GDS forms using a configuration-based approach.",
5
5
  "main": "./src/index.js",
6
6
  "type": "module",
@@ -48,8 +48,8 @@
48
48
  text: labels.start
49
49
  }
50
50
  },
51
- hint: question.hintStart and {
52
- text: question.hintStart
51
+ hint: hintStart and {
52
+ text: hintStart
53
53
  },
54
54
  errorMessage: errorSummary and {
55
55
  text: errors[question.fieldName].msg or errors[startFieldName].msg or errors[startDayFieldName].msg or errors[startMonthFieldName].msg or errors[startYearFieldName].msg
@@ -86,8 +86,8 @@
86
86
  text: labels.end
87
87
  }
88
88
  },
89
- hint: question.hintEnd and {
90
- text: question.hintEnd
89
+ hint: hintEnd and {
90
+ text: hintEnd
91
91
  },
92
92
  errorMessage: errorSummary and {
93
93
  text: errors[question.fieldName].msg or errors[endFieldName].msg or errors[endDayFieldName].msg or errors[endMonthFieldName].msg or errors[endYearFieldName].msg
@@ -118,6 +118,8 @@ export default class DatePeriodQuestion extends Question {
118
118
  */
119
119
  addCustomDataToViewModel(viewModel) {
120
120
  viewModel.labels = this.labels;
121
+ viewModel.hintStart = this.hintStart;
122
+ viewModel.hintEnd = this.hintEnd;
121
123
  }
122
124
 
123
125
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-period/question.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACC;;;;;;;;;OASG;IACH,6FATW,OAAO,iBAAiB,EAAE,kBAAkB,EAqBtD;IAPA,gBAA4B;IAC5B,YAAsD;IAEtD,eAA0B;IAC1B,aAAsB;IACtB,eAA+D;IAC/D,aAA2D;IAG5D;;;;;OAKG,CACH,yCAHW,OAAO,mBAAmB,EAAE,eAAe,GACzC,OAAO,CAAE,MAAM,CAAC,CAgC5B;IAED;;MAuCC;CAuCD;yBAvJwB,WAAW"}
1
+ {"version":3,"file":"question.d.ts","sourceRoot":"","sources":["../../../../src/components/date-period/question.js"],"names":[],"mappings":"AAOA;;;GAGG;AACH;IACC;;;;;;;;;OASG;IACH,6FATW,OAAO,iBAAiB,EAAE,kBAAkB,EAqBtD;IAPA,gBAA4B;IAC5B,YAAsD;IAEtD,eAA0B;IAC1B,aAAsB;IACtB,eAA+D;IAC/D,aAA2D;IAG5D;;;;;OAKG,CACH,yCAHW,OAAO,mBAAmB,EAAE,eAAe,GACzC,OAAO,CAAE,MAAM,CAAC,CAgC5B;IAED;;MAuCC;CAyCD;yBAzJwB,WAAW"}