@mtna/web-form-angular 1.0.6-SNAPSHOT.22 → 1.0.6-SNAPSHOT.23

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 (138) hide show
  1. package/bundles/mtna-web-form-angular.umd.js +1466 -644
  2. package/bundles/mtna-web-form-angular.umd.js.map +1 -1
  3. package/esm2015/lib/components/form-item-impl/date/date.component.js +6 -29
  4. package/esm2015/lib/components/form-item-impl/date/date.module.js +2 -5
  5. package/esm2015/lib/components/form-item-impl/year-quarter/year-quarter.component.js +1 -1
  6. package/esm2015/lib/components/form-item-injector/form-item-injector.component.js +43 -2
  7. package/esm2015/lib/components/template-item-impl/date/year-quarter-item/year-quarter-item.component.js +105 -12
  8. package/esm2015/lib/components/template-item-impl/date/year-quarter-range-item/year-quarter-range-item.component.js +11 -2
  9. package/esm2015/lib/components/template-item-impl/date-item/date-item.component.js +3 -27
  10. package/esm2015/lib/components/template-item-impl/date-item/date-item.module.js +2 -5
  11. package/esm2015/lib/components/template-item-impl/decimal-answer-item/decimal-answer-item.component.js +4 -4
  12. package/esm2015/lib/components/template-item-impl/decimal-answer-item/decimal-answer-item.module.js +15 -8
  13. package/esm2015/lib/components/template-item-impl/template-display-viewer/template-display-viewer.component.js +25 -4
  14. package/esm2015/lib/components/template-item-impl/template-item/template-item.component.js +7 -3
  15. package/esm2015/lib/components/template-item-impl/template-item-injector/template-item-injector.component.js +49 -4
  16. package/esm2015/lib/components/template-item-impl/template-section/template-section.component.js +1 -1
  17. package/esm2015/lib/models/design/design-constants/index.js +2 -0
  18. package/esm2015/lib/models/design/design-constants/template-design-constants.model.js +54 -0
  19. package/esm2015/lib/models/design/design-mapper/bulleted-list-item-template-mapper.js +2 -2
  20. package/esm2015/lib/models/design/design-mapper/date-item-template-mapper.js +10 -18
  21. package/esm2015/lib/models/design/design-mapper/dropdown-item-template-mapper.js +1 -12
  22. package/esm2015/lib/models/design/design-mapper/file-upload-item-template-mapper.js +4 -8
  23. package/esm2015/lib/models/design/design-mapper/i18n-text-response-item-template-mapper.js +2 -2
  24. package/esm2015/lib/models/design/design-mapper/mapper-classes.model.js +35 -26
  25. package/esm2015/lib/models/design/design-mapper/mapping-logic-core.js +23 -5
  26. package/esm2015/lib/models/design/design-mapper/multiple-choice-item-template-mapper.js +1 -11
  27. package/esm2015/lib/models/design/design-mapper/numbered-list-item-template-mapper.js +2 -2
  28. package/esm2015/lib/models/design/design-mapper/numeric-response-item-template-mapper.js +2 -2
  29. package/esm2015/lib/models/design/design-mapper/offset-date-range-template-mapper.js +11 -9
  30. package/esm2015/lib/models/design/design-mapper/option-group-item-mapper.js +27 -10
  31. package/esm2015/lib/models/design/design-mapper/option-item-mapper.js +4 -3
  32. package/esm2015/lib/models/design/design-mapper/option-selector-mapper.js +17 -5
  33. package/esm2015/lib/models/design/design-mapper/repeatable-item-template-mapper.js +2 -2
  34. package/esm2015/lib/models/design/design-mapper/template-item-group-mapper.js +48 -13
  35. package/esm2015/lib/models/design/design-mapper/template-item-mapper.js +47 -33
  36. package/esm2015/lib/models/design/design-mapper/template-mapper.js +7 -5
  37. package/esm2015/lib/models/design/design-mapper/template-section-mapper.js +14 -12
  38. package/esm2015/lib/models/design/design-mapper/text-item-template-mapper.js +2 -2
  39. package/esm2015/lib/models/design/design-mapper/text-response-item-template-mapper.js +2 -2
  40. package/esm2015/lib/models/design/design-mapper/time-item-template-mapper.js +2 -2
  41. package/esm2015/lib/models/design/design-mapper/title-item-template-mapper.js +18 -9
  42. package/esm2015/lib/models/design/design-mapper/year-quarter-range-template-mapper.js +27 -7
  43. package/esm2015/lib/models/design/design-properties/engagement-property-type.model.js +2 -0
  44. package/esm2015/lib/models/design/design-properties/enumeration-value-functions/date-format.js +29 -0
  45. package/esm2015/lib/models/design/design-properties/enumeration-value-functions/index.js +4 -0
  46. package/esm2015/lib/models/design/design-properties/enumeration-value-functions/layout.js +14 -0
  47. package/esm2015/lib/models/design/design-properties/enumeration-value-functions/quarter-range.js +20 -0
  48. package/esm2015/lib/models/design/design-properties/enumerations/date-display-format-enumeration.model.js +38 -0
  49. package/esm2015/lib/models/design/design-properties/enumerations/index.js +4 -0
  50. package/esm2015/lib/models/design/design-properties/enumerations/layout-enumeration.model.js +11 -0
  51. package/esm2015/lib/models/design/design-properties/enumerations/quarter-range-enumeration.model.js +24 -0
  52. package/esm2015/lib/models/design/design-properties/properties/date-format.model.js +14 -0
  53. package/esm2015/lib/models/design/design-properties/properties/index.js +4 -0
  54. package/esm2015/lib/models/design/design-properties/properties/layout.model.js +14 -0
  55. package/esm2015/lib/models/design/design-properties/properties/quarter-range.model.js +23 -0
  56. package/esm2015/lib/models/design/index.js +4 -3
  57. package/esm2015/lib/models/design/potential-designs.model.js +24 -2
  58. package/esm2015/lib/models/design/unavailable-template-item-name-map.model.js +27 -0
  59. package/esm2015/lib/models/i18n-constants.model.js +58 -12
  60. package/esm2015/lib/pipes/get-form-control-error.pipe.js +1 -1
  61. package/esm2015/lib/pipes/get-i18n-string-value-from-locale.pipe.js +2 -2
  62. package/esm2015/lib/pipes/instance-of-template-item.pipe.js +3 -3
  63. package/esm2015/lib/services/api.service.js +58 -28
  64. package/esm2015/lib/services/ui.service.js +2 -2
  65. package/esm2015/lib/state/design/template-design.facade.js +124 -45
  66. package/esm2015/lib/state/form/template-form.effects.js +30 -18
  67. package/esm2015/lib/utilities/enum-property-handlers-util.js +14 -0
  68. package/esm2015/lib/utilities/form-option-design-util.js +5 -5
  69. package/esm2015/lib/utilities/get-design-properties.util.js +8 -0
  70. package/esm2015/lib/utilities/index.js +7 -1
  71. package/esm2015/lib/utilities/is-template-util.js +68 -0
  72. package/esm2015/lib/utilities/item-to-design-base.util.js +25 -0
  73. package/esm2015/lib/utilities/merge-template-util.js +1 -2
  74. package/esm2015/lib/utilities/model-map-util.js +27 -0
  75. package/esm2015/lib/utilities/new-base-designs.util.js +5 -4
  76. package/esm2015/lib/utilities/serializer-util.js +2 -50
  77. package/esm2015/lib/utilities/template-design-core-util.js +8 -7
  78. package/esm2015/lib/utilities/template-design-util.js +7 -74
  79. package/esm2015/lib/utilities/to-design-util.js +24 -0
  80. package/esm2015/lib/utilities/validator-functions-util.js +59 -0
  81. package/fesm2015/mtna-web-form-angular.js +1169 -476
  82. package/fesm2015/mtna-web-form-angular.js.map +1 -1
  83. package/lib/components/form-item-impl/date/date.component.d.ts +2 -8
  84. package/lib/components/form-item-injector/form-item-injector.component.d.ts +1 -0
  85. package/lib/components/template-item-impl/date/year-quarter-item/year-quarter-item.component.d.ts +20 -2
  86. package/lib/components/template-item-impl/date/year-quarter-range-item/year-quarter-range-item.component.d.ts +4 -0
  87. package/lib/components/template-item-impl/date-item/date-item.component.d.ts +1 -8
  88. package/lib/components/template-item-impl/decimal-answer-item/decimal-answer-item.module.d.ts +7 -5
  89. package/lib/components/template-item-impl/template-display-viewer/template-display-viewer.component.d.ts +4 -2
  90. package/lib/components/template-item-impl/template-item/template-item.component.d.ts +1 -0
  91. package/lib/components/template-item-impl/template-item-injector/template-item-injector.component.d.ts +1 -0
  92. package/lib/components/template-item-impl/template-section/template-section.component.d.ts +1 -1
  93. package/lib/models/design/design-constants/index.d.ts +1 -0
  94. package/lib/models/design/{template-design-constants.model.d.ts → design-constants/template-design-constants.model.d.ts} +8 -2
  95. package/lib/models/design/design-mapper/dropdown-item-template-mapper.d.ts +0 -1
  96. package/lib/models/design/design-mapper/mapping-logic-core.d.ts +23 -4
  97. package/lib/models/design/design-mapper/option-selector-mapper.d.ts +1 -0
  98. package/lib/models/design/design-mapper/template-item-group-mapper.d.ts +1 -0
  99. package/lib/models/design/design-mapper/template-item-mapper.d.ts +2 -2
  100. package/lib/models/design/design-mapper/title-item-template-mapper.d.ts +1 -0
  101. package/lib/models/design/design-properties/engagement-property-type.model.d.ts +14 -0
  102. package/lib/models/design/design-properties/enumeration-value-functions/date-format.d.ts +2 -0
  103. package/lib/models/design/design-properties/enumeration-value-functions/index.d.ts +3 -0
  104. package/lib/models/design/design-properties/enumeration-value-functions/layout.d.ts +3 -0
  105. package/lib/models/design/design-properties/enumeration-value-functions/quarter-range.d.ts +2 -0
  106. package/lib/models/design/{enumerations/date-enumeration.model.d.ts → design-properties/enumerations/date-display-format-enumeration.model.d.ts} +2 -1
  107. package/lib/models/design/design-properties/enumerations/index.d.ts +3 -0
  108. package/lib/models/design/design-properties/enumerations/layout-enumeration.model.d.ts +4 -0
  109. package/lib/models/design/design-properties/enumerations/quarter-range-enumeration.model.d.ts +6 -0
  110. package/lib/models/design/design-properties/properties/date-format.model.d.ts +2 -0
  111. package/lib/models/design/design-properties/properties/index.d.ts +3 -0
  112. package/lib/models/design/design-properties/properties/layout.model.d.ts +2 -0
  113. package/lib/models/design/design-properties/properties/quarter-range.model.d.ts +3 -0
  114. package/lib/models/design/index.d.ts +3 -2
  115. package/lib/models/design/unavailable-template-item-name-map.model.d.ts +1 -0
  116. package/lib/models/i18n-constants.model.d.ts +56 -10
  117. package/lib/pipes/get-form-control-error.pipe.d.ts +2 -2
  118. package/lib/pipes/get-i18n-string-value-from-locale.pipe.d.ts +1 -1
  119. package/lib/services/api.service.d.ts +52 -18
  120. package/lib/services/ui.service.d.ts +2 -2
  121. package/lib/state/design/template-design.facade.d.ts +26 -0
  122. package/lib/state/form/template-form.effects.d.ts +0 -6
  123. package/lib/utilities/enum-property-handlers-util.d.ts +4 -0
  124. package/lib/utilities/form-option-design-util.d.ts +2 -2
  125. package/lib/utilities/get-design-properties.util.d.ts +3 -0
  126. package/lib/utilities/index.d.ts +6 -0
  127. package/lib/utilities/is-template-util.d.ts +5 -0
  128. package/lib/utilities/item-to-design-base.util.d.ts +5 -0
  129. package/lib/utilities/model-map-util.d.ts +2 -0
  130. package/lib/utilities/template-design-core-util.d.ts +4 -4
  131. package/lib/utilities/template-design-util.d.ts +4 -7
  132. package/lib/utilities/to-design-util.d.ts +4 -0
  133. package/lib/utilities/validator-functions-util.d.ts +12 -0
  134. package/package.json +2 -2
  135. package/esm2015/lib/models/design/enumerations/date-enumeration.model.js +0 -33
  136. package/esm2015/lib/models/design/enumerations/index.js +0 -2
  137. package/esm2015/lib/models/design/template-design-constants.model.js +0 -48
  138. package/lib/models/design/enumerations/index.d.ts +0 -1
@@ -1,11 +1,11 @@
1
- import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
1
+ import { ChangeDetectorRef } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { MatDatepicker } from '@angular/material/datepicker';
4
4
  import { MtnaLogger } from '@mtna/core-angular';
5
5
  import { DateItem, DateRange } from '@mtna/web-form-ts';
6
6
  import { MtnaWfBaseValueItem } from '../../base-items/base-value-item.component';
7
7
  import * as i0 from "@angular/core";
8
- export declare class MtnaWfDateComponent extends MtnaWfBaseValueItem<DateItem, FormControl> implements AfterViewInit {
8
+ export declare class MtnaWfDateComponent extends MtnaWfBaseValueItem<DateItem, FormControl> {
9
9
  static dateFormItemComponentInstances: number;
10
10
  dateItemClass: boolean;
11
11
  get item(): DateItem;
@@ -14,12 +14,6 @@ export declare class MtnaWfDateComponent extends MtnaWfBaseValueItem<DateItem, F
14
14
  picker: MatDatepicker<Date> | undefined;
15
15
  _dateText: string;
16
16
  constructor(cdr: ChangeDetectorRef, logger: MtnaLogger);
17
- ngAfterViewInit(): void;
18
- /**
19
- * Manually change the parse and display formats of the date picker.
20
- * @see https://github.com/angular/components/issues/8355#issuecomment-376783293
21
- */
22
- private configureDatePickerFormatter;
23
17
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfDateComponent, never>;
24
18
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfDateComponent, "mtna-wf-date-item", never, { "rangeLimits": "rangeLimits"; }, {}, never, never>;
25
19
  }
@@ -54,6 +54,7 @@ export declare class MtnaWfItemInjector extends MtnaComponentInjector implements
54
54
  reset(): void;
55
55
  ngOnInit(): void;
56
56
  protected configureComponent(componentRef: ComponentRef<any>): void;
57
+ configureInjectedComponent(): void;
57
58
  protected getInjectedComponentKey(): string;
58
59
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfItemInjector, never>;
59
60
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfItemInjector, "mtna-wf-item-injector", never, { "color": "color"; "control": "control"; "header": "header"; "indicatorStatus": "indicatorStatus"; "isCompact": "isCompact"; "inList": "inList"; "item": "item"; "parentIds": "parentIds"; "readonly": "readonly"; "step": "step"; }, { "focusedSection": "focusedSection"; "toggleFormItems": "toggleFormItems"; }, never, never>;
@@ -1,4 +1,5 @@
1
1
  import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
2
3
  import { FormControl } from '@angular/forms';
3
4
  import { DateRange, YearQuarter, YearQuarterRange } from '@mtna/web-form-ts';
4
5
  import { MtnaWfDefaultYearRange } from '../../../../models';
@@ -6,18 +7,35 @@ import * as i0 from "@angular/core";
6
7
  declare const _BaseMtnaWfYearQuarterItemTemplate: import("@mtna/core-angular").CanDestroyNotifyCtor & {
7
8
  new (): {};
8
9
  };
9
- export declare class MtnaWfYearQuarterItemTemplateComponent extends _BaseMtnaWfYearQuarterItemTemplate {
10
+ export declare class MtnaWfYearQuarterItemTemplateComponent extends _BaseMtnaWfYearQuarterItemTemplate implements AfterViewInit, OnDestroy, OnInit {
10
11
  static ngAcceptInputType_readonly: BooleanInput;
12
+ get readonly(): boolean;
13
+ set readonly(value: boolean);
14
+ private _readonly;
11
15
  get yearQuarterRange(): YearQuarterRange | undefined;
12
16
  set yearQuarterRange(value: YearQuarterRange | undefined);
13
17
  private _yearQuarterRange;
18
+ get isReadOnly(): boolean;
14
19
  componentRangeLimits: DateRange<YearQuarter> | null | undefined;
20
+ _containingControl: FormControl;
15
21
  _quarterControl: FormControl;
16
22
  _yearControl: FormControl;
17
23
  _yearSelection: number[];
24
+ private destroyObs;
18
25
  defaultYearRange: MtnaWfDefaultYearRange;
19
26
  constructor(defaultYearRange?: MtnaWfDefaultYearRange);
27
+ ngAfterViewInit(): void;
28
+ ngOnDestroy(): void;
29
+ ngOnInit(): void;
30
+ /**
31
+ * Sets the quarter value to `null` if the year & quarter is out of bounds of the range limits.
32
+ * Otherwise, returns original value
33
+ *
34
+ * @param value `[number, number]` The selected [year, quarter] value
35
+ * @returns `[number, number]` The original [year, quarter] value OR [year, null]
36
+ */
37
+ private withinRangeLimits;
20
38
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfYearQuarterItemTemplateComponent, [{ optional: true; }]>;
21
- static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfYearQuarterItemTemplateComponent, "mtna-wf-year-quarter-item-template", never, { "yearQuarterRange": "yearQuarterRange"; }, {}, never, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfYearQuarterItemTemplateComponent, "mtna-wf-year-quarter-item-template", never, { "readonly": "readonly"; "yearQuarterRange": "yearQuarterRange"; }, {}, never, never>;
22
40
  }
23
41
  export {};
@@ -2,6 +2,10 @@ import { YearQuarterRangeTemplate } from '@mtna/web-form-ts';
2
2
  import { MtnaWfBaseTemplateItemComponent } from '../../base/base-template-item.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MtnaWfYearQuarterRangeItemTemplateComponent extends MtnaWfBaseTemplateItemComponent<YearQuarterRangeTemplate> {
5
+ get template(): YearQuarterRangeTemplate | undefined;
6
+ set template(template: YearQuarterRangeTemplate | undefined);
7
+ _startItem: YearQuarterRangeTemplate;
8
+ _endItem: YearQuarterRangeTemplate;
5
9
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfYearQuarterRangeItemTemplateComponent, never>;
6
10
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfYearQuarterRangeItemTemplateComponent, "mtna-wf-year-quarter-range-template", never, {}, {}, never, never>;
7
11
  }
@@ -1,22 +1,15 @@
1
- import { AfterViewInit } from '@angular/core';
2
1
  import { MatDatepicker } from '@angular/material/datepicker';
3
2
  import { MtnaLogger } from '@mtna/core-angular';
4
3
  import { DateItemTemplate, DateRange } from '@mtna/web-form-ts';
5
4
  import { MtnaWfBaseTemplateItemComponent } from '../base/base-template-item.component';
6
5
  import * as i0 from "@angular/core";
7
- export declare class MtnaWfDateItemTemplateComponent extends MtnaWfBaseTemplateItemComponent<DateItemTemplate> implements AfterViewInit {
6
+ export declare class MtnaWfDateItemTemplateComponent extends MtnaWfBaseTemplateItemComponent<DateItemTemplate> {
8
7
  static dateFormItemTemplateComponentInstances: number;
9
8
  dateItemClass: boolean;
10
9
  rangeLimits: DateRange<Date | null> | null | undefined;
11
10
  picker: MatDatepicker<Date> | undefined;
12
11
  _dateText: string;
13
12
  constructor(localeId: string, logger: MtnaLogger);
14
- ngAfterViewInit(): void;
15
- /**
16
- * Manually change the parse and display formats of the date picker.
17
- * @see https://github.com/angular/components/issues/8355#issuecomment-376783293
18
- */
19
- private configureDatePickerFormatter;
20
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfDateItemTemplateComponent, never>;
21
14
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfDateItemTemplateComponent, "mtna-wf-date-item-template", never, { "rangeLimits": "rangeLimits"; }, {}, never, never>;
22
15
  }
@@ -1,13 +1,15 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./decimal-answer-item.component";
3
3
  import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/material/form-field";
5
- import * as i4 from "@angular/material/list";
4
+ import * as i3 from "../../../pipes/get-i18n-string-value-from-locale.pipe";
5
+ import * as i4 from "@angular/material/form-field";
6
6
  import * as i5 from "@angular/material/input";
7
- import * as i6 from "../../../pipes/get-auto-complete.pipe";
8
- import * as i7 from "../../../pipes/get-i18n-string-value-from-locale.pipe";
7
+ import * as i6 from "@angular/material/list";
8
+ import * as i7 from "../../../pipes/get-auto-complete.pipe";
9
+ import * as i8 from "../../../pipes/get-form-control-error.pipe";
10
+ import * as i9 from "@angular/forms";
9
11
  export declare class MtnaWfDecimalAnswerItemTemplateModule {
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfDecimalAnswerItemTemplateModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfDecimalAnswerItemTemplateModule, [typeof i1.MtnaWfDecimalAnswerItemTemplateComponent], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.MatListModule, typeof i5.MatInputModule, typeof i6.MtnaWfGetAutoCompletePipeModule, typeof i7.GetI18nStringValueFromLocalePipeModule], [typeof i1.MtnaWfDecimalAnswerItemTemplateComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfDecimalAnswerItemTemplateModule, [typeof i1.MtnaWfDecimalAnswerItemTemplateComponent], [typeof i2.CommonModule, typeof i3.GetI18nStringValueFromLocalePipeModule, typeof i4.MatFormFieldModule, typeof i5.MatInputModule, typeof i6.MatListModule, typeof i7.MtnaWfGetAutoCompletePipeModule, typeof i8.MtnaWfGetFormControlErrorPipeModule, typeof i9.ReactiveFormsModule], [typeof i1.MtnaWfDecimalAnswerItemTemplateComponent]>;
12
14
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfDecimalAnswerItemTemplateModule>;
13
15
  }
@@ -7,15 +7,17 @@ import * as i0 from "@angular/core";
7
7
  export declare class MtnaWfTemplateDisplayViewerComponent {
8
8
  private designFacade;
9
9
  private templateFormFacade;
10
+ formSteps$: BehaviorSubject<FormStep[] | null | undefined>;
11
+ designSteps$: BehaviorSubject<FormStep[]>;
12
+ singleTemplateDesignSectionStep$: BehaviorSubject<FormStep | undefined>;
10
13
  contextSelected$: BehaviorSubject<import("@mtna/designer-ts").Context | undefined>;
11
14
  focusedDesignId$: BehaviorSubject<string | undefined>;
12
- modifiedModel$: BehaviorSubject<TemplateItem | Template | FormOptionSelector<Option<unknown>> | undefined>;
15
+ modifiedModel$: import("rxjs").Observable<TemplateItem | Template | FormOptionSelector<Option<unknown>> | undefined>;
13
16
  previewLanguage$: BehaviorSubject<"en" | "fr" | "de" | "it" | undefined>;
14
17
  loading$: import("rxjs").Observable<boolean>;
15
18
  templateForm$: import("rxjs").Observable<import("@mtna/web-form-ts").Form | undefined>;
16
19
  templateFormItem$: import("rxjs").Observable<import("@mtna/web-form-ts").FormItem | undefined>;
17
20
  typeLoaded$: import("rxjs").Observable<"form" | "formItem" | undefined>;
18
- formSteps$: BehaviorSubject<FormStep[] | null | undefined>;
19
21
  retryTrigger$: BehaviorSubject<void>;
20
22
  constructor(designFacade: DesignFacade<Template | TemplateItem | FormOptionSelector<Option<unknown>>>, templateFormFacade: TemplateFormFacade);
21
23
  context_template: import("@mtna/designer-ts").Context;
@@ -23,6 +23,7 @@ export declare class MtnaWfTemplateItemComponent {
23
23
  set template(template: TemplateItem);
24
24
  protected _template: TemplateItem;
25
25
  condition: Condition | undefined;
26
+ isTemplateSection: boolean;
26
27
  color: ThemePalette;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfTemplateItemComponent, never>;
28
29
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfTemplateItemComponent, "mtna-wf-template-item", never, { "displayLocale": "displayLocale"; "inList": "inList"; "isCompact": "isCompact"; "step": "step"; "template": "template"; "color": "color"; }, {}, never, never>;
@@ -37,6 +37,7 @@ export declare class MtnaWfTemplateItemInjector extends MtnaComponentInjector im
37
37
  constructor(injector: Injector, cfr: ComponentFactoryResolver, vcr: ViewContainerRef, injectionService: InjectionService);
38
38
  ngOnInit(): void;
39
39
  protected configureComponent(componentRef: ComponentRef<any>): void;
40
+ configureInjectedComponent(): void;
40
41
  protected getInjectedComponentKey(): string;
41
42
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfTemplateItemInjector, never>;
42
43
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfTemplateItemInjector, "mtna-wf-template-item-injector", never, { "displayLocale": "displayLocale"; "inList": "inList"; "isCompact": "isCompact"; "readonly": "readonly"; "step": "step"; "template": "template"; "color": "color"; }, {}, never, never>;
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  export declare class MtnaWfTemplateSectionComponent extends MtnaWfTemplateItemGroupComponent<TemplateSectionImpl> implements StepAware {
7
7
  get step(): FormStep | null | undefined;
8
8
  set step(value: FormStep | null | undefined);
9
- private _step;
9
+ protected _step: FormStep | null | undefined;
10
10
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfTemplateSectionComponent, never>;
11
11
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfTemplateSectionComponent, "mtna-wf-template-section", never, { "step": "step"; }, {}, never, never>;
12
12
  }
@@ -0,0 +1 @@
1
+ export * from './template-design-constants.model';
@@ -1,7 +1,9 @@
1
1
  export declare const prop_option_enabled_items = "enabledItems";
2
2
  export declare const prop_option_disabled_items = "disabledItems";
3
3
  export declare const prop_option_template = "optionTemplate";
4
- export declare const prop_item_acknowledgement = "acknowledgement";
4
+ export declare const prop_item_condition_allRequired = "allRequired";
5
+ export declare const prop_item_condition_itemIds = "itemIds";
6
+ export declare const prop_item_acknowledgementTemplate = "acknowledgementTemplate";
5
7
  export declare const prop_item_additional_text = "additionalText";
6
8
  export declare const prop_item_annotation_enabled = "annotationEnabled";
7
9
  export declare const prop_item_code_option = "codeOption";
@@ -33,6 +35,8 @@ export declare const prop_item_option_subsets = "optionSubsets";
33
35
  export declare const prop_item_option_template_map = "optionTemplateMap";
34
36
  export declare const prop_item_preset_value = "presetValue";
35
37
  export declare const prop_item_positive_only = "positiveOnly";
38
+ export declare const prop_item_startQuarter = "quarter";
39
+ export declare const prop_item_endQuarter = "endQuarter";
36
40
  export declare const prop_item_question_text = "questionText";
37
41
  export declare const prop_item_range_limits = "rangeLimits";
38
42
  export declare const prop_item_repeatable_item_template_id = "repeatableItemTemplateId";
@@ -42,6 +46,8 @@ export declare const prop_item_text = "text";
42
46
  export declare const prop_item_title = "title";
43
47
  export declare const prop_item_value = "value";
44
48
  export declare const prop_item_values = "values";
45
- export declare const prop_template_descriptive_text = "template-descriptive-text";
49
+ export declare const prop_item_startYear = "startYear";
50
+ export declare const prop_item_endYear = "endYear";
51
+ export declare const prop_template_descriptive_text = "descriptiveText";
46
52
  export declare const prop_template_items = "items";
47
53
  export declare const prop_template_title = "title";
@@ -7,5 +7,4 @@ export declare class DropdownItemTemplateMapper extends OptionGroupItemMapper<St
7
7
  constructor(params: DesignMapperParams<ReferenceDesignParams> | ModelMapperParams<DropdownItemTemplate, ReferenceDesignParams>);
8
8
  protected toDesign(model: DropdownItemTemplate, languageId: MtnaLanguageId, parent?: DesignBase): Design;
9
9
  protected toModel(design: Design): DropdownItemTemplate;
10
- private getSectionItemDropdown;
11
10
  }
@@ -1,19 +1,38 @@
1
- import { TemplateItem } from '@mtna/web-form-ts';
2
- import { Context, Design, DesignBase } from '@mtna/designer-ts';
1
+ import { Template, TemplateItem } from '@mtna/web-form-ts';
2
+ import { Context, Design, DesignBase, ReferenceDesignParams } from '@mtna/designer-ts';
3
3
  import { MtnaLanguageId } from '@mtna/core-i18n-angular';
4
4
  import type { TemplateItemMapper } from './template-item-mapper';
5
+ import { TemplateMapper } from './template-mapper';
6
+ declare type TemplateMapperCtor = new (params: {
7
+ design: Design;
8
+ context?: Context;
9
+ customParams?: ReferenceDesignParams;
10
+ }) => TemplateMapper;
11
+ declare type TemplateMapperFn = (params: {
12
+ model: Template;
13
+ languageId: MtnaLanguageId;
14
+ context?: Context;
15
+ customParams?: ReferenceDesignParams;
16
+ }) => Design;
17
+ export declare const templateMapperRegistry: Record<string, TemplateMapperCtor>;
18
+ export declare const templateMapperToDesignRegistry: Record<string, TemplateMapperFn>;
19
+ export declare function registerTemplateMapper(id: string, ctor: TemplateMapperCtor, toDesignFn: TemplateMapperFn): void;
20
+ export declare function getTemplateMapperFromDesign(design: Design, context?: Context, customParams?: ReferenceDesignParams): TemplateMapper;
21
+ export declare function mapperTemplateToDesign(model: Template, languageId: MtnaLanguageId, context?: Context, customParams?: ReferenceDesignParams): Design;
5
22
  declare type MapperCtor = new (params: {
6
23
  design: Design;
7
24
  context?: Context;
25
+ customParams?: ReferenceDesignParams;
8
26
  }) => TemplateItemMapper;
9
27
  declare type MapperFn = (params: {
10
28
  model: TemplateItem;
11
29
  languageId: MtnaLanguageId;
12
30
  context?: Context;
31
+ customParams?: ReferenceDesignParams;
13
32
  }) => Design;
14
33
  export declare const mapperRegistry: Record<string, MapperCtor>;
15
34
  export declare const mapperToDesignRegistry: Record<string, MapperFn>;
16
35
  export declare function registerMapper(id: string, ctor: MapperCtor, toDesignFn: MapperFn): void;
17
- export declare function getItemMapperFromDesign(design: Design, context?: Context): TemplateItemMapper;
18
- export declare function mapperItemToDesign(item: TemplateItem, languageId: MtnaLanguageId, parent?: DesignBase, context?: Context): Design;
36
+ export declare function getItemMapperFromDesign(design: Design, context?: Context, customParams?: ReferenceDesignParams): TemplateItemMapper;
37
+ export declare function mapperItemToDesign(item: TemplateItem, languageId: MtnaLanguageId, parent?: DesignBase, context?: Context, customParams?: ReferenceDesignParams): Design;
19
38
  export {};
@@ -26,4 +26,5 @@ export declare class OptionSelectorMapper<O extends Option<unknown>, F extends F
26
26
  private getOptionTemplateProperties;
27
27
  private getEnabledDisabledItemsSection;
28
28
  private getEnabledAndDisabledItemsFromDesign;
29
+ private getOptionAcknowledgementProperties;
29
30
  }
@@ -8,5 +8,6 @@ export declare class TemplateItemGroupMapper<T extends TemplateItemGroup = Templ
8
8
  getPotentialDesigns(property: DesignProperty): DesignBase[];
9
9
  protected toDesign(model: T, languageId: MtnaLanguageId, parent?: DesignBase): Design;
10
10
  protected toModel(design: Design): T;
11
+ private getGroupItemCore;
11
12
  private getSectionItemGroup;
12
13
  }
@@ -8,6 +8,6 @@ export declare class TemplateItemMapper<T extends TemplateItem = TemplateItem, P
8
8
  protected toDesign(model: T, languageId: MtnaLanguageId, parent?: DesignBase): Design;
9
9
  protected toModel(design: Design): T;
10
10
  private getSectionItemCore;
11
- protected getTypeDisplay(itemId: string): string;
12
- private itemToDesignBase;
11
+ private getSectionItemConditions;
12
+ private getConditionalItemIdsFromDesign;
13
13
  }
@@ -8,4 +8,5 @@ export declare class TitleItemTemplateMapper extends TemplateItemMapper<TitleIte
8
8
  protected toDesign(model: TitleItemTemplate, languageId: MtnaLanguageId, parent?: DesignBase): Design;
9
9
  protected toModel(design: Design): TitleItemTemplate;
10
10
  private getSectionItemTitle;
11
+ private getSectionTitleItemCore;
11
12
  }
@@ -0,0 +1,14 @@
1
+ import { LiteralType } from '@mtna/designer-ts';
2
+ import { MtnaEnumValue } from '@mtna/core-ts';
3
+ export interface EngagementPropertyType {
4
+ defaultValue?: any;
5
+ instructions: string;
6
+ propName: string;
7
+ title: string;
8
+ type: LiteralType;
9
+ }
10
+ export interface EnumEngagementPropertyType extends EngagementPropertyType {
11
+ defaultValue: MtnaEnumValue;
12
+ enumValues: MtnaEnumValue[];
13
+ enumFunction: (displayValue: any, defaultValue: MtnaEnumValue) => MtnaEnumValue;
14
+ }
@@ -0,0 +1,2 @@
1
+ import { MtnaEnumValue } from '@mtna/core-ts';
2
+ export declare function getDateFormatValue(displayValue: string | undefined, defaultValue: MtnaEnumValue): MtnaEnumValue;
@@ -0,0 +1,3 @@
1
+ export * from './date-format';
2
+ export * from './layout';
3
+ export * from './quarter-range';
@@ -0,0 +1,3 @@
1
+ import { Layout } from '@mtna/web-form-ts';
2
+ import { MtnaEnumValue } from '@mtna/core-ts';
3
+ export declare function getLayoutValue(displayValue: Layout | undefined, defaultValue: MtnaEnumValue): MtnaEnumValue;
@@ -0,0 +1,2 @@
1
+ import { MtnaEnumValue } from '@mtna/core-ts';
2
+ export declare function getQuarterRangeValue(displayValue: number | undefined, defaultValue: MtnaEnumValue): MtnaEnumValue;
@@ -5,4 +5,5 @@ export declare const LONG_DATE_DISPLAY_VALUE: MtnaEnumValue;
5
5
  export declare const EURO_LONG_DATE_DISPLAY_VALUE: MtnaEnumValue;
6
6
  export declare const DOTTED_DATE_DISPLAY_VALUE: MtnaEnumValue;
7
7
  export declare const ISO_8601_DATE_DISPLAY_VALUE: MtnaEnumValue;
8
- export declare const DATE_ENUM_VALUES: MtnaEnumValue[];
8
+ export declare const MTNA_DEFAULT_USE_DISPLAY_VALUE: MtnaEnumValue;
9
+ export declare const DATE_DISPLAY_ENUM_VALUES: MtnaEnumValue[];
@@ -0,0 +1,3 @@
1
+ export * from './date-display-format-enumeration.model';
2
+ export * from './layout-enumeration.model';
3
+ export * from './quarter-range-enumeration.model';
@@ -0,0 +1,4 @@
1
+ import { MtnaEnumValue } from '@mtna/core-ts';
2
+ export declare const LAYOUT_ROW_DISPLAY_VALUE: MtnaEnumValue;
3
+ export declare const LAYOUT_COLUMN_DISPLAY_VALUE: MtnaEnumValue;
4
+ export declare const LAYOUT_ENUM_VALUES: MtnaEnumValue[];
@@ -0,0 +1,6 @@
1
+ import { MtnaEnumValue } from '@mtna/core-ts';
2
+ export declare const QUARTER_ONE_DISPLAY_VALUE: MtnaEnumValue;
3
+ export declare const QUARTER_TWO_DISPLAY_VALUE: MtnaEnumValue;
4
+ export declare const QUARTER_THREE_DISPLAY_VALUE: MtnaEnumValue;
5
+ export declare const QUARTER_FOUR_DISPLAY_VALUE: MtnaEnumValue;
6
+ export declare const QUARTER_RANGE_ENUM_VALUES: MtnaEnumValue[];
@@ -0,0 +1,2 @@
1
+ import { EnumEngagementPropertyType } from '../engagement-property-type.model';
2
+ export declare const PROP_DATE_FORMAT: EnumEngagementPropertyType;
@@ -0,0 +1,3 @@
1
+ export * from './date-format.model';
2
+ export * from './layout.model';
3
+ export * from './quarter-range.model';
@@ -0,0 +1,2 @@
1
+ import { EnumEngagementPropertyType } from '../engagement-property-type.model';
2
+ export declare const PROP_LAYOUT: EnumEngagementPropertyType;
@@ -0,0 +1,3 @@
1
+ import { EnumEngagementPropertyType } from '../engagement-property-type.model';
2
+ export declare const PROP_QUARTER_RANGE_START: EnumEngagementPropertyType;
3
+ export declare const PROP_QUARTER_RANGE_END: EnumEngagementPropertyType;
@@ -1,8 +1,9 @@
1
1
  export * from './conditional-processing-resources.model';
2
2
  export * from './design-mapper';
3
- export * from './enumerations';
3
+ export * from './design-properties/enumerations';
4
4
  export * from './option-group-item-section-display-name-map.model';
5
5
  export * from './option-item-section-display-name-map.model';
6
6
  export * from './potential-designs.model';
7
- export * from './template-design-constants.model';
7
+ export * from './design-constants/template-design-constants.model';
8
8
  export * from './template-design-context.model';
9
+ export * from './unavailable-template-item-name-map.model';
@@ -0,0 +1 @@
1
+ export declare const UnavailableTemplateItemNameMap: Record<string, string>;
@@ -22,9 +22,17 @@ export declare const i18n_bulletedListItemInstructions: string;
22
22
  export declare const i18n_checkboxConfiguration: string;
23
23
  export declare const i18n_codeOption: string;
24
24
  export declare const i18n_codeOptionInstructions: string;
25
+ export declare const i18n_column: string;
26
+ export declare const i18n_conditions: string;
27
+ export declare const i18n_conditionAllRequired: string;
28
+ export declare const i18n_conditionAllRequiredInstructions: string;
29
+ export declare const i18n_conditionItemIds: string;
30
+ export declare const i18n_conditionItemIdsInstructions: string;
25
31
  export declare const i18n_core: string;
26
32
  export declare const i18n_childItems: string;
27
33
  export declare const i18n_dateConfiguration: string;
34
+ export declare const i18n_dateFormat: string;
35
+ export declare const i18n_dateFormatInstructions: string;
28
36
  export declare const i18n_description: string;
29
37
  export declare const i18n_descriptionInstructions: string;
30
38
  export declare const i18n_descriptive: string;
@@ -111,6 +119,7 @@ export declare const i18n_repeatableItemTemplateId: string;
111
119
  export declare const i18n_repeatableItemTemplateIdInstructions: string;
112
120
  export declare const i18n_required: string;
113
121
  export declare const i18n_requiredInstructions: string;
122
+ export declare const i18n_row: string;
114
123
  export declare const i18n_selectAReference: string;
115
124
  export declare const i18n_selectAReferenceDialogTitle: string;
116
125
  export declare const i18n_settings: string;
@@ -138,52 +147,89 @@ export declare const i18n_yearQuarterRangeConfiguration: string;
138
147
  export declare const i18n_listValue: string;
139
148
  export declare const i18n_newListValue: string;
140
149
  export declare const i18n_newItem: string;
141
- export declare const i18n_exampleText: string;
150
+ export declare const i18n_startYear: string;
151
+ export declare const i18n_startYearInstructions: string;
152
+ export declare const i18n_startQuarter: string;
153
+ export declare const i18n_startQuarterInstructions: string;
154
+ export declare const i18n_endYear: string;
155
+ export declare const i18n_endYearInstructions: string;
156
+ export declare const i18n_endQuarter: string;
157
+ export declare const i18n_endQuarterInstructions: string;
158
+ export declare const i18n_quarterOne: string;
159
+ export declare const i18n_quarterTwo: string;
160
+ export declare const i18n_quarterThree: string;
161
+ export declare const i18n_quarterFour: string;
142
162
  export declare const i18n_boolean: string;
143
163
  export declare const i18n_booleanItem: string;
164
+ export declare const i18n_booleanItemDescription: string;
144
165
  export declare const i18n_bulletedListItem: string;
166
+ export declare const i18n_bulletedListItemDescription: string;
145
167
  export declare const i18n_checkbox: string;
146
168
  export declare const i18n_checkboxItem: string;
147
- export declare const i18n_offsetDateRange: string;
148
- export declare const i18n_offsetDateRangeItem: string;
149
- export declare const i18n_yearQuarterRange: string;
150
- export declare const i18n_yearQuarterRangeItem: string;
169
+ export declare const i18n_checkboxItemDescription: string;
151
170
  export declare const i18n_date: string;
152
171
  export declare const i18n_dateItem: string;
172
+ export declare const i18n_dateItemDescription: string;
153
173
  export declare const i18n_decimalAnswer: string;
154
- export declare const i18n_decimalValue: string;
155
174
  export declare const i18n_decimalAnswerItem: string;
175
+ export declare const i18n_decimalAnswerItemDescription: string;
176
+ export declare const i18n_decimalValue: string;
156
177
  export declare const i18n_dropdown: string;
157
178
  export declare const i18n_dropdownItem: string;
179
+ export declare const i18n_dropdownItemDescription: string;
180
+ export declare const i18n_exampleText: string;
158
181
  export declare const i18n_fileUpload: string;
159
182
  export declare const i18n_fileUploadItem: string;
183
+ export declare const i18n_fileUploadItemDescription: string;
184
+ export declare const i18n_group: string;
185
+ export declare const i18n_groupItem: string;
186
+ export declare const i18n_groupItemDescription: string;
160
187
  export declare const i18n_internationalizedParagraphAnswer: string;
161
188
  export declare const i18n_internationalizedParagraphAnswerItem: string;
189
+ export declare const i18n_internationalizedParagraphAnswerItemDescription: string;
162
190
  export declare const i18n_internationalizedShortAnswer: string;
163
191
  export declare const i18n_internationalizedShortAnswerItem: string;
192
+ export declare const i18n_internationalizedShortAnswerItemDescription: string;
164
193
  export declare const i18n_multipleChoice: string;
165
194
  export declare const i18n_multipleChoiceItem: string;
195
+ export declare const i18n_multipleChoiceItemDescription: string;
196
+ export declare const i18n_newOptionDescription: string;
166
197
  export declare const i18n_numberedListItem: string;
198
+ export declare const i18n_numberedListItemDescription: string;
199
+ export declare const i18n_offsetDateRange: string;
200
+ export declare const i18n_offsetDateRangeItem: string;
201
+ export declare const i18n_offsetDateRangeItemDescription: string;
167
202
  export declare const i18n_orderedList: string;
168
203
  export declare const i18n_orderedListItem: string;
169
204
  export declare const i18n_paragraphAnswer: string;
170
205
  export declare const i18n_paragraphAnswerItem: string;
206
+ export declare const i18n_paragraphAnswerItemDescription: string;
171
207
  export declare const i18n_repeatable: string;
172
208
  export declare const i18n_repeatableItem: string;
173
- export declare const i18n_shortAnswer: string;
174
- export declare const i18n_shortAnswerItem: string;
175
- export declare const i18n_group: string;
176
- export declare const i18n_groupItem: string;
209
+ export declare const i18n_repeatableItemDescription: string;
177
210
  export declare const i18n_section: string;
211
+ export declare const i18n_sectionDescription: string;
178
212
  export declare const i18n_sectionItem: string;
213
+ export declare const i18n_sectionStepName: string;
214
+ export declare const i18n_sectionStepNameInstructions: string;
215
+ export declare const i18n_sectionTitleItem: string;
216
+ export declare const i18n_shortAnswer: string;
217
+ export declare const i18n_shortAnswerItem: string;
218
+ export declare const i18n_shortAnswerItemDescription: string;
179
219
  export declare const i18n_text: string;
180
220
  export declare const i18n_textItem: string;
221
+ export declare const i18n_textItemDescription: string;
181
222
  export declare const i18n_time: string;
182
223
  export declare const i18n_timeItem: string;
183
224
  export declare const i18n_title: string;
184
225
  export declare const i18n_titleItem: string;
226
+ export declare const i18n_titleItemDescription: string;
185
227
  export declare const i18n_unorderedList: string;
186
228
  export declare const i18n_unorderedListItem: string;
187
229
  export declare const i18n_wholeNumberAnswer: string;
188
230
  export declare const i18n_wholeNumberAnswerItem: string;
231
+ export declare const i18n_wholeNumberAnswerItemDescription: string;
189
232
  export declare const i18n_wholeNumberValue: string;
233
+ export declare const i18n_yearQuarterRange: string;
234
+ export declare const i18n_yearQuarterRangeItem: string;
235
+ export declare const i18n_yearQuarterRangeItemDescription: string;
@@ -1,5 +1,5 @@
1
1
  import { PipeTransform } from '@angular/core';
2
- import { FormItemImpl } from '@mtna/web-form-ts';
2
+ import { FormItemImpl, TemplateItemImpl } from '@mtna/web-form-ts';
3
3
  import { MtnaWfUIService } from '../services/ui.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MtnaWfGetFormControlErrorPipe implements PipeTransform {
@@ -8,7 +8,7 @@ export declare class MtnaWfGetFormControlErrorPipe implements PipeTransform {
8
8
  transform(error: {
9
9
  key: string;
10
10
  value: unknown;
11
- }, item?: FormItemImpl<unknown>): unknown;
11
+ }, item?: FormItemImpl<unknown> | TemplateItemImpl): unknown;
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfGetFormControlErrorPipe, never>;
13
13
  static ɵpipe: i0.ɵɵPipeDeclaration<MtnaWfGetFormControlErrorPipe, "mtnaWfGetControlError">;
14
14
  }
@@ -3,7 +3,7 @@ import { MtnaLocaleIds } from '@mtna/core-i18n-angular';
3
3
  import { InternationalizedString } from '@mtna/core-i18n-ts';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class GetI18nStringValueFromLocalePipe implements PipeTransform {
6
- transform(displayLocale: typeof MtnaLocaleIds.type | undefined, i18nStrings: InternationalizedString[]): string;
6
+ transform(displayLocale: typeof MtnaLocaleIds.type | undefined, i18nStrings: InternationalizedString[] | null | undefined): string;
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<GetI18nStringValueFromLocalePipe, never>;
8
8
  static ɵpipe: i0.ɵɵPipeDeclaration<GetI18nStringValueFromLocalePipe, "getI18nStringValueFromLocale">;
9
9
  }