@planning-inspectorate/dynamic-forms 3.10.15 → 3.10.16

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.10.15",
3
+ "version": "3.10.16",
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",
@@ -23,7 +23,7 @@ export class ManageListSection extends Section {
23
23
  * Fluent API method for adding questions
24
24
  * @param {import('../../questions/question.js').Question} question
25
25
  * @param {import('./manage-list-section.js').ManageListSection} [manageListSection]
26
- * @returns {import('../../section.js').Section}
26
+ * @returns {this}
27
27
  */
28
28
  addQuestion(question, manageListSection) {
29
29
  if (!question) {
package/src/section.js CHANGED
@@ -85,7 +85,7 @@ export class Section {
85
85
  * Fluent API method for adding questions
86
86
  * @param {import('./questions/question.js').Question} question
87
87
  * @param {import('./components/manage-list/manage-list-section.js').ManageListSection} [manageListSection]
88
- * @returns {Section}
88
+ * @returns {this}
89
89
  */
90
90
  addQuestion(question, manageListSection) {
91
91
  if (!question) {
@@ -11,6 +11,13 @@ export class ManageListSection extends Section {
11
11
  * @returns {boolean}
12
12
  */
13
13
  get isManageListSection(): boolean;
14
+ /**
15
+ * Fluent API method for adding questions
16
+ * @param {import('../../questions/question.js').Question} question
17
+ * @param {import('./manage-list-section.js').ManageListSection} [manageListSection]
18
+ * @returns {this}
19
+ */
20
+ addQuestion(question: import("../../questions/question.js").Question, manageListSection?: import("./manage-list-section.js").ManageListSection): this;
14
21
  }
15
22
  import { Section } from '#src/section.js';
16
23
  //# sourceMappingURL=manage-list-section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"manage-list-section.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/manage-list-section.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACC,cAEC;IAED;;;;;;OAMG;IACH,2BAFa,OAAO,CAInB;CAmBD;wBAtCuB,iBAAiB"}
1
+ {"version":3,"file":"manage-list-section.d.ts","sourceRoot":"","sources":["../../../../src/components/manage-list/manage-list-section.js"],"names":[],"mappings":"AAEA;;GAEG;AACH;IACC,cAEC;IAED;;;;;;OAMG;IACH,2BAFa,OAAO,CAInB;IAED;;;;;OAKG;IACH,sBAJW,OAAO,6BAA6B,EAAE,QAAQ,sBAC9C,OAAO,0BAA0B,EAAE,iBAAiB,GAClD,IAAI,CAYhB;CACD;wBAtCuB,iBAAiB"}
@@ -45,9 +45,9 @@ export class Section {
45
45
  * Fluent API method for adding questions
46
46
  * @param {import('./questions/question.js').Question} question
47
47
  * @param {import('./components/manage-list/manage-list-section.js').ManageListSection} [manageListSection]
48
- * @returns {Section}
48
+ * @returns {this}
49
49
  */
50
- addQuestion(question: import("./questions/question.js").Question, manageListSection?: import("./components/manage-list/manage-list-section.js").ManageListSection): Section;
50
+ addQuestion(question: import("./questions/question.js").Question, manageListSection?: import("./components/manage-list/manage-list-section.js").ManageListSection): this;
51
51
  /**
52
52
  * Fluent API method for attaching conditions to the previously added question
53
53
  * @param {QuestionCondition} shouldIncludeQuestion
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/section.js"],"names":[],"mappings":"AASA;;;;GAIG;AACH,6BAFU,MAAM,CAEuC;AAEvD;;;GAGG;AACH;IAgNC;;;;;OAKG;IACH,8FAHW,OAAO,sBAAsB,EAAE,2BAA2B,GACxD,QAAQ,GAAC,MAAM,GAAC,IAAI,CAoBhC;IAvMD;;;;OAIG;IACH,kBAHW,MAAM,WACN,MAAM,EAKhB;IAxCD;;OAEG;IACH,MAFU,MAAM,CAEX;IAEL;;OAEG;IACH,SAFU,MAAM,CAER;IAER;;OAEG;IACH,WAFU,KAAK,CAAC,QAAQ,CAAC,CAEV;IA6Bf;;;;;OAKG;IACH,2CAHW,iBAAiB,GACf,OAAO,CAcnB;IAED;;;;;OAKG;IAC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