@mtna/web-form-angular 1.0.2-SNAPSHOT.1 → 1.0.2-SNAPSHOT.3

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 (183) hide show
  1. package/_index.scss +2 -2
  2. package/bundles/mtna-web-form-angular.umd.js +1495 -694
  3. package/bundles/mtna-web-form-angular.umd.js.map +1 -1
  4. package/esm2015/lib/components/acknowledge-dialog/acknowledge-dialog.component.js +2 -2
  5. package/esm2015/lib/components/base-form/base-form.component.js +243 -0
  6. package/esm2015/lib/components/base-form/index.js +2 -0
  7. package/esm2015/lib/components/base-items/base-form-item-control.component.js +7 -5
  8. package/esm2015/lib/components/base-items/base-form-item.component.js +8 -5
  9. package/esm2015/lib/components/base-items/base-group-item.component.js +6 -5
  10. package/esm2015/lib/components/base-items/base-parent-value-item.component.js +4 -2
  11. package/esm2015/lib/components/base-items/base-section-item.component.js +7 -5
  12. package/esm2015/lib/components/base-items/base-single-selection-parent-value-item.component.js +4 -6
  13. package/esm2015/lib/components/base-items/base-value-item.component.js +2 -1
  14. package/esm2015/lib/components/form/form.component.js +13 -239
  15. package/esm2015/lib/components/form-item/form-item.component.js +7 -3
  16. package/esm2015/lib/components/form-item/form-item.module.js +26 -6
  17. package/esm2015/lib/components/form-item-component-provider/form-item-injected-components.js +7 -1
  18. package/esm2015/lib/components/form-item-dialog/form-item-dialog.component.js +6 -5
  19. package/esm2015/lib/components/form-item-dialog/form-item-dialog.module.js +5 -4
  20. package/esm2015/lib/components/form-item-impl/boolean/boolean.component.js +7 -6
  21. package/esm2015/lib/components/form-item-impl/boolean/boolean.module.js +28 -5
  22. package/esm2015/lib/components/form-item-impl/checkbox/checkbox.component.js +11 -10
  23. package/esm2015/lib/components/form-item-impl/checkbox/checkbox.module.js +11 -3
  24. package/esm2015/lib/components/form-item-impl/date/date.component.js +8 -7
  25. package/esm2015/lib/components/form-item-impl/date/date.module.js +2 -2
  26. package/esm2015/lib/components/form-item-impl/date-range/date-range.component.js +7 -3
  27. package/esm2015/lib/components/form-item-impl/date-range/date-range.module.js +2 -2
  28. package/esm2015/lib/components/form-item-impl/dropdown/dropdown.component.js +3 -3
  29. package/esm2015/lib/components/form-item-impl/file-upload/file-upload.component.js +8 -7
  30. package/esm2015/lib/components/form-item-impl/form-group/form-group.component.js +3 -3
  31. package/esm2015/lib/components/form-item-impl/form-group/form-group.module.js +2 -2
  32. package/esm2015/lib/components/form-item-impl/form-section/form-section.component.js +5 -4
  33. package/esm2015/lib/components/form-item-impl/form-section/form-section.module.js +6 -5
  34. package/esm2015/lib/components/form-item-impl/i18n-input/i18n-input.component.js +19 -13
  35. package/esm2015/lib/components/form-item-impl/input/input.component.js +23 -16
  36. package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.component.js +7 -6
  37. package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.module.js +7 -3
  38. package/esm2015/lib/components/form-item-impl/ordered-list/ordered-list-item.component.js +1 -1
  39. package/esm2015/lib/components/form-item-impl/ordered-list/ordered-list-item.module.js +2 -2
  40. package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.js +10 -8
  41. package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.module.js +6 -2
  42. package/esm2015/lib/components/form-item-impl/search/resource-search.component.js +8 -8
  43. package/esm2015/lib/components/form-item-impl/table-item/table-item.component.js +2 -2
  44. package/esm2015/lib/components/form-item-impl/text/text.component.js +3 -2
  45. package/esm2015/lib/components/form-item-impl/text/text.module.js +2 -2
  46. package/esm2015/lib/components/form-item-impl/title/title.component.js +3 -2
  47. package/esm2015/lib/components/form-item-impl/title/title.module.js +2 -2
  48. package/esm2015/lib/components/form-item-impl/unordered-list/unordered-list-item.component.js +1 -1
  49. package/esm2015/lib/components/form-item-impl/unordered-list/unordered-list-item.module.js +2 -2
  50. package/esm2015/lib/components/form-item-impl/year-quarter/year-quarter.component.js +7 -8
  51. package/esm2015/lib/components/form-item-impl/year-quarter-range/year-quarter-range.component.js +3 -3
  52. package/esm2015/lib/components/form-item-impl/year-quarter-range/year-quarter-range.module.js +2 -2
  53. package/esm2015/lib/components/form-item-injector/form-item-injector.component.js +14 -9
  54. package/esm2015/lib/components/form-stepper/form-step/form-step.component.js +10 -3
  55. package/esm2015/lib/components/form-stepper/form-step-group/form-step-group.component.js +4 -2
  56. package/esm2015/lib/components/form-stepper/form-stepper/form-stepper.component.js +52 -10
  57. package/esm2015/lib/components/form-stepper/form-stepper.module.js +17 -5
  58. package/esm2015/lib/components/index.js +2 -1
  59. package/esm2015/lib/components/progressive-form/index.js +3 -0
  60. package/esm2015/lib/components/progressive-form/progressive-form/index.js +3 -0
  61. package/esm2015/lib/components/progressive-form/progressive-form/progressive-form.component.js +287 -0
  62. package/esm2015/lib/components/progressive-form/progressive-form/progressive-form.module.js +68 -0
  63. package/esm2015/lib/components/progressive-form/progressive-form-section/index.js +3 -0
  64. package/esm2015/lib/components/progressive-form/progressive-form-section/progressive-form-section.component.js +27 -0
  65. package/esm2015/lib/components/progressive-form/progressive-form-section/progressive-form-section.module.js +54 -0
  66. package/esm2015/lib/components/step-card/step-card.component.js +10 -2
  67. package/esm2015/lib/components/step-card/step-card.module.js +27 -4
  68. package/esm2015/lib/models/form-stepper/form-step-group.model.js +8 -2
  69. package/esm2015/lib/models/form-stepper/form-step.model.js +7 -1
  70. package/esm2015/lib/models/index.js +2 -1
  71. package/esm2015/lib/models/progressive-form/index.js +4 -0
  72. package/esm2015/lib/models/progressive-form/outline-step.model.js +2 -0
  73. package/esm2015/lib/models/progressive-form/progressive-form-section.model.js +6 -0
  74. package/esm2015/lib/models/progressive-form/progressive-form.model.js +6 -0
  75. package/esm2015/lib/pipes/child-step-active.pipe.js +28 -0
  76. package/esm2015/lib/pipes/coerce-form-control.pipe.js +1 -3
  77. package/esm2015/lib/pipes/coerce-form-item.pipe.js +36 -0
  78. package/esm2015/lib/pipes/coerce-form-step-group.pipe.js +29 -0
  79. package/esm2015/lib/pipes/coerce-form-step.pipe.js +29 -0
  80. package/esm2015/lib/pipes/date-quarter.pipe.js +13 -13
  81. package/esm2015/lib/pipes/get-active-form-step-item.pipe.js +33 -0
  82. package/esm2015/lib/pipes/get-progressive-form-item.pipe.js +40 -0
  83. package/esm2015/lib/pipes/get-selected-option.pipe.js +4 -3
  84. package/esm2015/lib/pipes/get-step-aria-label.pipe.js +55 -0
  85. package/esm2015/lib/pipes/index.js +8 -1
  86. package/esm2015/lib/pipes/items-with-value.pipe.js +5 -10
  87. package/esm2015/lib/services/dialog.service.js +4 -4
  88. package/esm2015/lib/services/form-manager.service.js +19 -7
  89. package/esm2015/lib/services/ng-form.service.js +7 -1
  90. package/esm2015/lib/services/ui.service.js +15 -15
  91. package/esm2015/lib/utilities/generate-form-steps.js +20 -5
  92. package/esm2015/lib/utilities/serializer-util.js +22 -10
  93. package/esm2015/lib/utilities/update-step-status.js +1 -1
  94. package/esm2015/public-api.js +1 -2
  95. package/fesm2015/mtna-web-form-angular.js +1188 -482
  96. package/fesm2015/mtna-web-form-angular.js.map +1 -1
  97. package/lib/components/base-form/base-form.component.d.ts +89 -0
  98. package/lib/components/base-form/index.d.ts +1 -0
  99. package/lib/components/base-items/base-form-item-control.component.d.ts +2 -0
  100. package/lib/components/base-items/base-form-item.component.d.ts +3 -1
  101. package/lib/components/base-items/base-group-item.component.d.ts +2 -0
  102. package/lib/components/base-items/base-section-item.component.d.ts +2 -1
  103. package/lib/components/base-items/base-single-selection-parent-value-item.component.d.ts +0 -1
  104. package/lib/components/base-items/base-value-item.component.d.ts +1 -2
  105. package/lib/components/form/form.component.d.ts +4 -86
  106. package/lib/components/form-item/form-item.component.d.ts +3 -2
  107. package/lib/components/form-item/form-item.module.d.ts +2 -1
  108. package/lib/components/form-item-dialog/form-item-dialog.module.d.ts +2 -1
  109. package/lib/components/form-item-impl/boolean/boolean.component.d.ts +2 -1
  110. package/lib/components/form-item-impl/boolean/boolean.module.d.ts +2 -1
  111. package/lib/components/form-item-impl/checkbox/_checkbox-theme.scss +11 -2
  112. package/lib/components/form-item-impl/checkbox/checkbox.component.d.ts +3 -2
  113. package/lib/components/form-item-impl/checkbox/checkbox.module.d.ts +11 -9
  114. package/lib/components/form-item-impl/date/date.component.d.ts +3 -2
  115. package/lib/components/form-item-impl/date-range/date-range.component.d.ts +2 -1
  116. package/lib/components/form-item-impl/dropdown/_dropdown-theme.scss +35 -0
  117. package/lib/components/form-item-impl/dropdown/dropdown.component.d.ts +1 -1
  118. package/lib/components/form-item-impl/file-upload/file-upload.component.d.ts +4 -3
  119. package/lib/components/form-item-impl/form-group/form-group.component.d.ts +1 -1
  120. package/lib/components/form-item-impl/form-section/form-section.module.d.ts +2 -1
  121. package/lib/components/form-item-impl/i18n-input/i18n-input.component.d.ts +6 -7
  122. package/lib/components/form-item-impl/input/input.component.d.ts +7 -8
  123. package/lib/components/form-item-impl/multiple-choice/multiple-choice.component.d.ts +1 -1
  124. package/lib/components/form-item-impl/multiple-choice/multiple-choice.module.d.ts +2 -1
  125. package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.d.ts +5 -3
  126. package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.module.d.ts +2 -1
  127. package/lib/components/form-item-impl/search/resource-search.component.d.ts +3 -2
  128. package/lib/components/form-item-impl/table-item/table-item.component.d.ts +1 -1
  129. package/lib/components/form-item-impl/title/_title-theme.scss +28 -0
  130. package/lib/components/form-item-impl/year-quarter/year-quarter.component.d.ts +4 -4
  131. package/lib/components/form-item-injector/form-item-injector.component.d.ts +6 -2
  132. package/lib/components/form-stepper/form-step/form-step.component.d.ts +7 -0
  133. package/lib/components/form-stepper/form-step-group/form-step-group.component.d.ts +2 -0
  134. package/lib/components/form-stepper/form-stepper/_form-stepper-theme.scss +30 -15
  135. package/lib/components/form-stepper/form-stepper/form-stepper.component.d.ts +15 -1
  136. package/lib/components/form-stepper/form-stepper.module.d.ts +5 -1
  137. package/lib/components/index.d.ts +1 -0
  138. package/lib/components/progressive-form/index.d.ts +2 -0
  139. package/lib/components/progressive-form/progressive-form/index.d.ts +2 -0
  140. package/lib/components/progressive-form/progressive-form/progressive-form.component.d.ts +101 -0
  141. package/lib/components/progressive-form/progressive-form/progressive-form.module.d.ts +19 -0
  142. package/lib/components/progressive-form/progressive-form-section/index.d.ts +2 -0
  143. package/lib/components/progressive-form/progressive-form-section/progressive-form-section.component.d.ts +9 -0
  144. package/lib/components/progressive-form/progressive-form-section/progressive-form-section.module.d.ts +16 -0
  145. package/lib/components/step-card/step-card.component.d.ts +3 -1
  146. package/lib/components/step-card/step-card.module.d.ts +2 -1
  147. package/lib/core/_all-color.scss +4 -2
  148. package/lib/core/_all-theme.scss +4 -2
  149. package/lib/core/_all-typography.scss +4 -2
  150. package/lib/core/_core-theme.scss +0 -18
  151. package/lib/models/form-stepper/form-step-group.model.d.ts +5 -1
  152. package/lib/models/form-stepper/form-step.model.d.ts +3 -0
  153. package/lib/models/index.d.ts +1 -0
  154. package/lib/models/progressive-form/index.d.ts +3 -0
  155. package/lib/models/progressive-form/outline-step.model.d.ts +7 -0
  156. package/lib/models/progressive-form/progressive-form-section.model.d.ts +4 -0
  157. package/lib/models/progressive-form/progressive-form.model.d.ts +7 -0
  158. package/lib/pipes/child-step-active.pipe.d.ts +13 -0
  159. package/lib/pipes/coerce-form-item.pipe.d.ts +14 -0
  160. package/lib/pipes/coerce-form-step-group.pipe.d.ts +13 -0
  161. package/lib/pipes/coerce-form-step.pipe.d.ts +13 -0
  162. package/lib/pipes/get-active-form-step-item.pipe.d.ts +13 -0
  163. package/lib/pipes/get-progressive-form-item.pipe.d.ts +14 -0
  164. package/lib/pipes/get-step-aria-label.pipe.d.ts +17 -0
  165. package/lib/pipes/index.d.ts +7 -0
  166. package/lib/pipes/items-with-value.pipe.d.ts +0 -1
  167. package/lib/services/dialog.service.d.ts +1 -0
  168. package/lib/services/form-manager.service.d.ts +13 -4
  169. package/lib/services/ng-form.service.d.ts +6 -0
  170. package/lib/utilities/generate-form-steps.d.ts +5 -1
  171. package/lib/utilities/update-step-status.d.ts +2 -2
  172. package/package.json +2 -2
  173. package/public-api.d.ts +0 -1
  174. package/esm2015/lib/directives/base-form-item-control.directive.js +0 -59
  175. package/esm2015/lib/directives/base-parent-item-control.directive.js +0 -42
  176. package/esm2015/lib/directives/base-single-selection-parent.directive.js +0 -53
  177. package/esm2015/lib/directives/form-item.directive.js +0 -22
  178. package/esm2015/lib/directives/index.js +0 -5
  179. package/lib/directives/base-form-item-control.directive.d.ts +0 -26
  180. package/lib/directives/base-parent-item-control.directive.d.ts +0 -19
  181. package/lib/directives/base-single-selection-parent.directive.d.ts +0 -26
  182. package/lib/directives/form-item.directive.d.ts +0 -13
  183. package/lib/directives/index.d.ts +0 -4
@@ -0,0 +1,89 @@
1
+ import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { AfterViewInit, EventEmitter, OnDestroy } from '@angular/core';
3
+ import { FormGroup } from '@angular/forms';
4
+ import { CanDestroyNotify } from '@mtna/core-angular';
5
+ import { AnnotatableNumberMap } from '@mtna/pojo-social-angular';
6
+ import { Form, FormControlStatus, FormItem } from '@mtna/web-form-ts';
7
+ import { FormStep } from '../../models';
8
+ import { MtnaWfManagerService, MtnaWfNgFormService, MtnaWfUIService } from '../../services';
9
+ import * as i0 from "@angular/core";
10
+ declare const _BaseFormComponent: import("@mtna/core-angular").CanDestroyNotifyCtor & {
11
+ new (): {};
12
+ };
13
+ export declare class MtnaWfBaseFormComponent<F extends Form = Form> extends _BaseFormComponent implements AfterViewInit, CanDestroyNotify, OnDestroy {
14
+ protected mtnaFormManager: MtnaWfManagerService;
15
+ protected ngFormService: MtnaWfNgFormService;
16
+ protected uiService: MtnaWfUIService;
17
+ static ngAcceptInputType_emitStatusOnMtnaFormChange: BooleanInput;
18
+ static ngAcceptInputTypes_readonly: BooleanInput;
19
+ set annotations(map: AnnotatableNumberMap);
20
+ /** Whether to emit the status of each step each time the {@link mtnaForm} is set to a new value. Defaults to false.*/
21
+ get emitStatusOnMtnaFormChange(): boolean;
22
+ set emitStatusOnMtnaFormChange(emitStatusOnMtnaFormChange: boolean);
23
+ private _emitStatusOnMtnaFormChange;
24
+ get mtnaForm(): F | null | undefined;
25
+ set mtnaForm(form: F | null | undefined);
26
+ private _mtnaForm;
27
+ /**
28
+ * The form can contain sections not included in the steps.
29
+ * To avoid misalignment of steps-to-sections, we map each step to
30
+ * its instanceId
31
+ */
32
+ set steps(newSteps: Array<FormStep> | null | undefined);
33
+ get readonly(): boolean;
34
+ set readonly(r: boolean);
35
+ private readonly$;
36
+ /**
37
+ * Emitted every time a form control's validation status changes.
38
+ * The `id` is the form control's name and the `status` is the new validation status for the control.
39
+ */
40
+ status: EventEmitter<{
41
+ id: string;
42
+ status: FormControlStatus;
43
+ }>;
44
+ focusedSection: EventEmitter<FormStep>;
45
+ mtnaFormChange: EventEmitter<F>;
46
+ ngForm: FormGroup | undefined;
47
+ componentIds: never[];
48
+ _steps: {
49
+ [id: string]: FormStep;
50
+ } | undefined;
51
+ private _constructionDate;
52
+ private _hasPreviousForm;
53
+ private _ngFormStatusChangeSub?;
54
+ private _mtnaFormItemChangeSub?;
55
+ private _initialStatusEmitted;
56
+ constructor(mtnaFormManager: MtnaWfManagerService, ngFormService: MtnaWfNgFormService, uiService: MtnaWfUIService);
57
+ ngAfterViewInit(): void;
58
+ ngOnDestroy(): void;
59
+ _trackByInstanceId(index: number, formItem: FormItem): string;
60
+ /** Subscribe and emit form status changes for the steps. */
61
+ private _checkAndSubscribeToFormStatus;
62
+ /**
63
+ * Find a form control with the given name, then emit it's status.
64
+ *
65
+ * @param name — The unique name of the form control to find and emit the status for.
66
+ */
67
+ private _emitFormControlStatus;
68
+ /**
69
+ * @param emitInitialValues Whether to emit initial step values or just listen for future changes
70
+ */
71
+ private _emitInitialStepsStatusAndSubscribeToChanges;
72
+ /**
73
+ * Observes input changes for readOnly, in order to handle internal change subscriptions.
74
+ * When the form is not readonly, we subscribe to form status & form item changes, so we can emit them.
75
+ * When the form is readonly, we do not want to emit any changes, so we unsubscribe.
76
+ */
77
+ private _subscribeAndEmitMtnaFormChanges;
78
+ private _handleFormSerialization;
79
+ /**
80
+ * Adds or removes a FormItem whenever a new MtnaWfFormItemChange occurs,
81
+ * and emits a new MtnaForm.
82
+ */
83
+ private _subscribeToMtnaFormItemChanges;
84
+ private _unsubscribeFromNgFormChanges;
85
+ private _unsubscribeFromMtnaFormChanges;
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfBaseFormComponent<any>, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfBaseFormComponent<any>, "ng-component", never, { "annotations": "annotations"; "emitStatusOnMtnaFormChange": "emitStatusOnMtnaFormChange"; "mtnaForm": "mtnaForm"; "steps": "steps"; "readonly": "readonly"; }, { "status": "status"; "focusedSection": "focusedSection"; "mtnaFormChange": "mtnaFormChange"; }, never, never>;
88
+ }
89
+ export {};
@@ -0,0 +1 @@
1
+ export * from './base-form.component';
@@ -1,4 +1,5 @@
1
1
  import { BooleanInput } from '@angular/cdk/coercion';
2
+ import { ChangeDetectorRef } from '@angular/core';
2
3
  import { AbstractControl } from '@angular/forms';
3
4
  import { FormItem } from '@mtna/web-form-ts';
4
5
  import { MtnaWfBaseFormItem } from './base-form-item.component';
@@ -11,6 +12,7 @@ export declare abstract class MtnaWfBaseFormItemControl<I extends FormItem, C ex
11
12
  get readonly(): boolean;
12
13
  set readonly(value: boolean);
13
14
  protected _readonly: boolean;
15
+ constructor(cdr: ChangeDetectorRef);
14
16
  protected setValue(item: unknown): void;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfBaseFormItemControl<any, any>, never>;
16
18
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfBaseFormItemControl<any, any>, "ng-component", never, { "control": "control"; "readonly": "readonly"; }, {}, never, never>;
@@ -1,4 +1,4 @@
1
- import { TemplateRef } from '@angular/core';
1
+ import { ChangeDetectorRef, TemplateRef } from '@angular/core';
2
2
  import { ThemePalette } from '@angular/material/core';
3
3
  import { CanDestroyNotify } from '@mtna/core-angular';
4
4
  import { AnnotationIndicatorStatus, IndicatorStatusRepeater } from '@mtna/pojo-social-angular';
@@ -8,6 +8,7 @@ declare const _BaseFormItemComponent: import("@mtna/core-angular").CanDestroyNot
8
8
  new (): {};
9
9
  };
10
10
  export declare abstract class MtnaWfBaseFormItem<I extends FormItem> extends _BaseFormItemComponent implements IndicatorStatusRepeater, CanDestroyNotify {
11
+ protected cdr: ChangeDetectorRef;
11
12
  color: ThemePalette;
12
13
  get header(): TemplateRef<unknown> | null;
13
14
  set header(value: TemplateRef<unknown> | null);
@@ -19,6 +20,7 @@ export declare abstract class MtnaWfBaseFormItem<I extends FormItem> extends _Ba
19
20
  set item(value: I);
20
21
  protected _item: I;
21
22
  get hasItemHeader(): boolean;
23
+ constructor(cdr: ChangeDetectorRef);
22
24
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfBaseFormItem<any>, never>;
23
25
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfBaseFormItem<any>, "ng-component", never, { "color": "color"; "header": "header"; "indicatorStatus": "indicatorStatus"; "item": "item"; }, {}, never, never>;
24
26
  }
@@ -1,3 +1,4 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
1
2
  import { FormGroup } from '@angular/forms';
2
3
  import { FormItem, FormItemGroup } from '@mtna/web-form-ts';
3
4
  import { MtnaWfBaseFormItemControl } from './base-form-item-control.component';
@@ -7,6 +8,7 @@ export declare abstract class MtnaWfBaseGroupItem<I extends FormItemGroup> exten
7
8
  set parentIds(value: Array<string>);
8
9
  private _parentIds;
9
10
  _trackByInstanceId(index: number, item: FormItem): string;
11
+ constructor(cdr: ChangeDetectorRef);
10
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfBaseGroupItem<any>, never>;
11
13
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfBaseGroupItem<any>, "ng-component", never, { "parentIds": "parentIds"; }, {}, never, never>;
12
14
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { ChangeDetectorRef, EventEmitter } from '@angular/core';
2
2
  import { Section } from '@mtna/web-form-ts';
3
3
  import { FormStep } from '../../models/form-stepper/form-step.model';
4
4
  import { MtnaWfBaseGroupItem } from './base-group-item.component';
@@ -8,6 +8,7 @@ export declare abstract class MtnaWfBaseSectionItem<S extends Section> extends M
8
8
  set step(value: FormStep | null | undefined);
9
9
  private _step;
10
10
  focused: EventEmitter<FormStep>;
11
+ constructor(cdr: ChangeDetectorRef);
11
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfBaseSectionItem<any>, never>;
12
13
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfBaseSectionItem<any>, "ng-component", never, { "step": "step"; }, { "focused": "focused"; }, never, never>;
13
14
  }
@@ -7,7 +7,6 @@ import { MtnaWfBaseParentValueItem } from './base-parent-value-item.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare abstract class MtnaWfBaseSingleSelectionParentValueItem<I extends DropdownItem | MultipleChoiceItem> extends MtnaWfBaseParentValueItem<I, FormControl> implements OnInit {
9
9
  protected selectedOption: FormOptionSelector<StringOption> | undefined;
10
- constructor();
11
10
  ngOnInit(): void;
12
11
  /**
13
12
  * Toggles the 'selected' value of the previous & newly selected options,
@@ -1,10 +1,9 @@
1
1
  import { BooleanInput } from '@angular/cdk/coercion';
2
2
  import { AbstractControl } from '@angular/forms';
3
- import { IndicatorStatusRepeater } from '@mtna/pojo-social-angular';
4
3
  import { FormOptionSelector, Option, ValueItem } from '@mtna/web-form-ts';
5
4
  import { MtnaWfBaseFormItemControl } from './base-form-item-control.component';
6
5
  import * as i0 from "@angular/core";
7
- export declare abstract class MtnaWfBaseValueItem<I extends ValueItem<unknown>, C extends AbstractControl = AbstractControl> extends MtnaWfBaseFormItemControl<I, C> implements IndicatorStatusRepeater {
6
+ export declare abstract class MtnaWfBaseValueItem<I extends ValueItem<unknown>, C extends AbstractControl = AbstractControl> extends MtnaWfBaseFormItemControl<I, C> {
8
7
  static ngAcceptInputType_inList: BooleanInput;
9
8
  get inList(): boolean;
10
9
  set inList(value: boolean);
@@ -1,89 +1,7 @@
1
- import { BooleanInput } from '@angular/cdk/coercion';
2
- import { AfterViewInit, EventEmitter, OnDestroy } from '@angular/core';
3
- import { FormGroup } from '@angular/forms';
4
- import { CanDestroyNotify } from '@mtna/core-angular';
5
- import { AnnotatableNumberMap } from '@mtna/pojo-social-angular';
6
- import { Form, FormControlStatus, FormItem } from '@mtna/web-form-ts';
7
- import { FormStep } from '../../models';
8
- import { MtnaWfManagerService, MtnaWfNgFormService, MtnaWfUIService } from '../../services';
1
+ import { Form } from '@mtna/web-form-ts';
2
+ import { MtnaWfBaseFormComponent } from '../base-form';
9
3
  import * as i0 from "@angular/core";
10
- declare const MtnaWfFormComponent_base: import("@mtna/core-angular").CanDestroyNotifyCtor & {
11
- new (): {};
12
- };
13
- export declare class MtnaWfFormComponent extends MtnaWfFormComponent_base implements AfterViewInit, CanDestroyNotify, OnDestroy {
14
- private mtnaFormManager;
15
- private ngFormService;
16
- private uiService;
17
- static ngAcceptInputType_emitStatusOnMtnaFormChange: BooleanInput;
18
- static ngAcceptInputTypes_readonly: BooleanInput;
19
- set annotations(map: AnnotatableNumberMap);
20
- /** Whether to emit the status of each step each time the {@link mtnaForm} is set to a new value. Defaults to false.*/
21
- get emitStatusOnMtnaFormChange(): boolean;
22
- set emitStatusOnMtnaFormChange(emitStatusOnMtnaFormChange: boolean);
23
- private _emitStatusOnMtnaFormChange;
24
- get mtnaForm(): Form | null | undefined;
25
- set mtnaForm(form: Form | null | undefined);
26
- private _mtnaForm;
27
- /**
28
- * The form can contain sections not included in the steps.
29
- * To avoid misalignment of steps-to-sections, we map each step to
30
- * its instanceId
31
- */
32
- set steps(newSteps: Array<FormStep> | null | undefined);
33
- get readonly(): boolean;
34
- set readonly(r: boolean);
35
- private readonly$;
36
- /**
37
- * Emitted every time a form control's validation status changes.
38
- * The `id` is the form control's name and the `status` is the new validation status for the control.
39
- */
40
- status: EventEmitter<{
41
- id: string;
42
- status: FormControlStatus;
43
- }>;
44
- focusedSection: EventEmitter<FormStep>;
45
- mtnaFormChange: EventEmitter<Form>;
46
- ngForm: FormGroup | undefined;
47
- componentIds: never[];
48
- _steps: {
49
- [id: string]: FormStep;
50
- } | undefined;
51
- private _constructionDate;
52
- private _hasPreviousForm;
53
- private _ngFormStatusChangeSub?;
54
- private _mtnaFormItemChangeSub?;
55
- private _initialStatusEmitted;
56
- constructor(mtnaFormManager: MtnaWfManagerService, ngFormService: MtnaWfNgFormService, uiService: MtnaWfUIService);
57
- ngAfterViewInit(): void;
58
- ngOnDestroy(): void;
59
- _trackByInstanceId(index: number, formItem: FormItem): string;
60
- /** Subscribe and emit form status changes for the steps. */
61
- private _checkAndSubscribeToFormStatus;
62
- /**
63
- * Find a form control with the given name, then emit it's status.
64
- *
65
- * @param name — The unique name of the form cotrol to find and emit the status for.
66
- */
67
- private _emitFormControlStatus;
68
- /**
69
- * @param emitInitialValues Whether to emit initial step values or just listen for future changes
70
- */
71
- private _emitInitialStepsStatusAndSubscribeToChanges;
72
- /**
73
- * Observes input changes for readOnly, in order to handle internal change subscriptions.
74
- * When the form is not readonly, we subscribe to form status & form item changes, so we can emit them.
75
- * When the form is readonly, we do not want to emit any changes, so we unsubscribe.
76
- */
77
- private _subscribeAndEmitMtnaFormChanges;
78
- private _handleFormSerialization;
79
- /**
80
- * Adds or removes a FormItem whenever a new MtnaWfFormItemChange occurs,
81
- * and emits a new MtnaForm.
82
- */
83
- private _subscribeToMtnaFormItemChanges;
84
- private _unsubscribeFromNgFormChanges;
85
- private _unsubscribeFromMtnaFormChanges;
4
+ export declare class MtnaWfFormComponent extends MtnaWfBaseFormComponent<Form> {
86
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfFormComponent, never>;
87
- static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfFormComponent, "mtna-form", never, { "annotations": "annotations"; "emitStatusOnMtnaFormChange": "emitStatusOnMtnaFormChange"; "mtnaForm": "mtnaForm"; "steps": "steps"; "readonly": "readonly"; }, { "status": "status"; "focusedSection": "focusedSection"; "mtnaFormChange": "mtnaFormChange"; }, never, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfFormComponent, "mtna-form", never, {}, { "status": "status"; "focusedSection": "focusedSection"; "mtnaFormChange": "mtnaFormChange"; }, never, never>;
88
7
  }
89
- export {};
@@ -3,7 +3,7 @@ import { AbstractControl } from '@angular/forms';
3
3
  import { ThemePalette } from '@angular/material/core';
4
4
  import { AnnotationIndicatorStatus } from '@mtna/pojo-social-angular';
5
5
  import { FormItem } from '@mtna/web-form-ts';
6
- import { Observable } from 'rxjs';
6
+ import { BehaviorSubject, Observable } from 'rxjs';
7
7
  import { FormStep, ToggleFormItemsData } from '../../models';
8
8
  import { MtnaWfUIService } from '../../services/ui.service';
9
9
  import * as i0 from "@angular/core";
@@ -44,10 +44,11 @@ export declare class MtnaWfFormItemComponent implements OnInit {
44
44
  private _step;
45
45
  focusedSection: EventEmitter<FormStep>;
46
46
  annotations$?: Observable<number | null>;
47
- indicatorStatus: AnnotationIndicatorStatus;
47
+ indicatorStatus$: BehaviorSubject<AnnotationIndicatorStatus>;
48
48
  constructor(_elementRef: ElementRef, uiService: MtnaWfUIService);
49
49
  ngOnInit(): void;
50
50
  toggleFormItems(data: ToggleFormItemsData): void;
51
+ updateIndicatorStatus(status: AnnotationIndicatorStatus): void;
51
52
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfFormItemComponent, never>;
52
53
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfFormItemComponent, "mtna-wf-item", never, { "color": "color"; "control": "control"; "header": "header"; "inList": "inList"; "item": "item"; "parentIds": "parentIds"; "readonly": "readonly"; "step": "step"; }, { "focusedSection": "focusedSection"; }, never, never>;
53
54
  }
@@ -5,8 +5,9 @@ import * as i3 from "@mtna/pojo-social-angular";
5
5
  import * as i4 from "../form-item-injector/form-item-injector.module";
6
6
  import * as i5 from "../item-header/item-header.module";
7
7
  import * as i6 from "@angular/material-moment-adapter";
8
+ import * as i7 from "@angular/material/button";
8
9
  export declare class MtnaWfFormItemModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfFormItemModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfFormItemModule, [typeof i1.MtnaWfFormItemComponent], [typeof i2.CommonModule, typeof i3.MtnaAnnotationsIndicatorModule, typeof i4.MtnaWfItemInjectorModule, typeof i5.MtnaWfItemHeaderModule, typeof i6.MatMomentDateModule], [typeof i1.MtnaWfFormItemComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfFormItemModule, [typeof i1.MtnaWfFormItemComponent], [typeof i2.CommonModule, typeof i3.MtnaAnnotationsIndicatorModule, typeof i4.MtnaWfItemInjectorModule, typeof i5.MtnaWfItemHeaderModule, typeof i6.MatMomentDateModule, typeof i7.MatButtonModule], [typeof i1.MtnaWfFormItemComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfFormItemModule>;
12
13
  }
@@ -3,8 +3,9 @@ import * as i1 from "./form-item-dialog.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "@angular/material/dialog";
5
5
  import * as i4 from "../form-item/form-item.module";
6
+ import * as i5 from "@angular/material/button";
6
7
  export declare class MtnaWfFormItemDialogModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfFormItemDialogModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfFormItemDialogModule, [typeof i1.MtnaWfFormItemDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.MtnaWfFormItemModule], [typeof i1.MtnaWfFormItemDialogComponent]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfFormItemDialogModule, [typeof i1.MtnaWfFormItemDialogComponent], [typeof i2.CommonModule, typeof i3.MatDialogModule, typeof i4.MtnaWfFormItemModule, typeof i5.MatButtonModule], [typeof i1.MtnaWfFormItemDialogComponent]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfFormItemDialogModule>;
10
11
  }
@@ -1,3 +1,4 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
1
2
  import { FormControl } from '@angular/forms';
2
3
  import { MatSlideToggleChange } from '@angular/material/slide-toggle';
3
4
  import { BooleanItem, FormItem } from '@mtna/web-form-ts';
@@ -6,7 +7,7 @@ import { MtnaWfBaseParentValueItem } from '../../base-items/base-parent-value-it
6
7
  import * as i0 from "@angular/core";
7
8
  export declare class MtnaWfBooleanComponent extends MtnaWfBaseParentValueItem<BooleanItem, FormControl> {
8
9
  private uiService;
9
- constructor(uiService: MtnaWfUIService);
10
+ constructor(cdr: ChangeDetectorRef, uiService: MtnaWfUIService);
10
11
  toggleChange(change: MatSlideToggleChange): void;
11
12
  _trackByInstanceId(index: number, item: {
12
13
  key: string;
@@ -5,8 +5,9 @@ import * as i3 from "@angular/material/slide-toggle";
5
5
  import * as i4 from "../../form-item/form-item.module";
6
6
  import * as i5 from "@angular/forms";
7
7
  import * as i6 from "../../acknowledge-dialog/acknowledge-dialog.module";
8
+ import * as i7 from "@mtna/core-angular";
8
9
  export declare class MtnaWfBooleanModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfBooleanModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfBooleanModule, [typeof i1.MtnaWfBooleanComponent], [typeof i2.CommonModule, typeof i3.MatSlideToggleModule, typeof i4.MtnaWfFormItemModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MtnaWfAcknowledgeDialogModule], [typeof i1.MtnaWfBooleanComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfBooleanModule, [typeof i1.MtnaWfBooleanComponent], [typeof i2.CommonModule, typeof i3.MatSlideToggleModule, typeof i4.MtnaWfFormItemModule, typeof i5.FormsModule, typeof i5.ReactiveFormsModule, typeof i6.MtnaWfAcknowledgeDialogModule, typeof i7.MtnaHighlightModule], [typeof i1.MtnaWfBooleanComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfBooleanModule>;
12
13
  }
@@ -30,8 +30,10 @@
30
30
  }
31
31
  }
32
32
 
33
- mtna-wf-checkbox-item .checkbox-error {
34
- color: mat.get-color-from-palette($warn, default);
33
+ mtna-wf-checkbox-item {
34
+ .checkbox-error {
35
+ color: mat.get-color-from-palette($warn, default);
36
+ }
35
37
  }
36
38
  }
37
39
 
@@ -59,4 +61,11 @@
59
61
  border-color: mat.get-color-from-palette($palette);
60
62
  }
61
63
  }
64
+
65
+ button.mat-icon-button.acknowledge-verification-button {
66
+ &:hover,
67
+ &.cdk-focused {
68
+ color: mat.get-color-from-palette($palette);
69
+ }
70
+ }
62
71
  }
@@ -1,4 +1,4 @@
1
- import { OnDestroy } from '@angular/core';
1
+ import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
2
  import { FormArray } from '@angular/forms';
3
3
  import { MatCheckboxChange } from '@angular/material/checkbox';
4
4
  import { CanDestroyNotify } from '@mtna/core-angular';
@@ -10,7 +10,8 @@ import * as i0 from "@angular/core";
10
10
  export declare class MtnaWfCheckboxComponent extends MtnaWfBaseParentValueItem<CheckboxItem, FormArray> implements CanDestroyNotify, OnDestroy {
11
11
  private dialogService;
12
12
  destroyed$: Subject<void>;
13
- constructor(dialogService: MtnaWfDialogService);
13
+ _acknowledgementText: string;
14
+ constructor(cdr: ChangeDetectorRef, dialogService: MtnaWfDialogService);
14
15
  handleChange(change: MatCheckboxChange, index: number): void;
15
16
  ngOnDestroy(): void;
16
17
  /**
@@ -2,16 +2,18 @@ import * as i0 from "@angular/core";
2
2
  import * as i1 from "./checkbox.component";
3
3
  import * as i2 from "@angular/common";
4
4
  import * as i3 from "../../../pipes/get-form-control-error.pipe";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/material/form-field";
7
- import * as i6 from "@angular/material/checkbox";
8
- import * as i7 from "@angular/material/button";
9
- import * as i8 from "@angular/material/icon";
10
- import * as i9 from "@angular/material/tooltip";
11
- import * as i10 from "../../form-item/form-item.module";
12
- import * as i11 from "@mtna/core-angular";
5
+ import * as i4 from "@angular/flex-layout";
6
+ import * as i5 from "@angular/forms";
7
+ import * as i6 from "@angular/material/form-field";
8
+ import * as i7 from "@angular/material/checkbox";
9
+ import * as i8 from "@angular/material/button";
10
+ import * as i9 from "@angular/material/icon";
11
+ import * as i10 from "@angular/material/tooltip";
12
+ import * as i11 from "../../form-item/form-item.module";
13
+ import * as i12 from "@mtna/core-angular";
14
+ import * as i13 from "../../form-item-dialog/form-item-dialog.module";
13
15
  export declare class MtnaWfCheckboxModule {
14
16
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfCheckboxModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfCheckboxModule, [typeof i1.MtnaWfCheckboxComponent], [typeof i2.CommonModule, typeof i3.MtnaWfGetFormControlErrorPipeModule, typeof i4.FormsModule, typeof i5.MatFormFieldModule, typeof i6.MatCheckboxModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i10.MtnaWfFormItemModule, typeof i11.MtnaHighlightModule, typeof i4.ReactiveFormsModule], [typeof i1.MtnaWfCheckboxComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfCheckboxModule, [typeof i1.MtnaWfCheckboxComponent], [typeof i2.CommonModule, typeof i3.MtnaWfGetFormControlErrorPipeModule, typeof i4.FlexLayoutModule, typeof i5.FormsModule, typeof i6.MatFormFieldModule, typeof i7.MatCheckboxModule, typeof i8.MatButtonModule, typeof i9.MatIconModule, typeof i10.MatTooltipModule, typeof i11.MtnaWfFormItemModule, typeof i12.MtnaHighlightModule, typeof i5.ReactiveFormsModule, typeof i13.MtnaWfFormItemDialogModule], [typeof i1.MtnaWfCheckboxComponent]>;
16
18
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfCheckboxModule>;
17
19
  }
@@ -1,4 +1,4 @@
1
- import { AfterViewInit } from '@angular/core';
1
+ import { AfterViewInit, 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';
@@ -12,7 +12,8 @@ export declare class MtnaWfDateComponent extends MtnaWfBaseValueItem<DateItem, F
12
12
  set item(value: DateItem);
13
13
  rangeLimits: DateRange<Date | null> | null | undefined;
14
14
  picker: MatDatepicker<Date> | undefined;
15
- constructor(logger: MtnaLogger);
15
+ _dateText: string;
16
+ constructor(cdr: ChangeDetectorRef, logger: MtnaLogger);
16
17
  ngAfterViewInit(): void;
17
18
  /**
18
19
  * Manually change the parse and display formats of the date picker.
@@ -1,12 +1,13 @@
1
1
  import { FormGroup } from '@angular/forms';
2
2
  import { DateItem, OffsetDateRangeItem } from '@mtna/web-form-ts';
3
- import { MtnaWfBaseValueItem } from '../../base-items';
3
+ import { MtnaWfBaseValueItem } from '../../base-items/base-value-item.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class MtnaWfDateRangeComponent extends MtnaWfBaseValueItem<OffsetDateRangeItem, FormGroup> {
6
6
  get item(): OffsetDateRangeItem;
7
7
  set item(item: OffsetDateRangeItem);
8
8
  _startItem: DateItem;
9
9
  _endItem: DateItem;
10
+ toText: string;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfDateRangeComponent, never>;
11
12
  static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfDateRangeComponent, "mtna-wf-date-range", never, {}, {}, never, never>;
12
13
  }
@@ -0,0 +1,35 @@
1
+ @use 'sass:map';
2
+ @use '~@angular/material' as mat;
3
+
4
+ @mixin color($theme) {
5
+ $config: mat.get-color-config($theme);
6
+ $foreground: map.get($config, foreground);
7
+ $background: map.get($config, background);
8
+
9
+ .cdk-overlay-container .cdk-overlay-pane {
10
+ .mtna-wf-dropdown-item__select-panel {
11
+ .mat-option {
12
+ &:focus,
13
+ &:hover,
14
+ &.mat-active {
15
+ background-color: mat.get-color-from-palette($background, focused-button);
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
21
+
22
+ @mixin typography($theme) {
23
+ }
24
+
25
+ @mixin theme($theme) {
26
+ $config: mat.get-color-config($theme);
27
+ @if $config != null {
28
+ @include color($theme);
29
+ }
30
+
31
+ $typography-config: mat.get-typography-config($theme);
32
+ @if $typography-config != null {
33
+ @include typography($theme);
34
+ }
35
+ }
@@ -1,5 +1,5 @@
1
1
  import { DropdownItem } from '@mtna/web-form-ts';
2
- import { MtnaWfBaseSingleSelectionParentValueItem } from '../../base-items';
2
+ import { MtnaWfBaseSingleSelectionParentValueItem } from '../../base-items/base-single-selection-parent-value-item.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MtnaWfDropdownComponent extends MtnaWfBaseSingleSelectionParentValueItem<DropdownItem> {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfDropdownComponent, never>;
@@ -1,15 +1,16 @@
1
- import { OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
3
  import { FileService } from '@mtna/file-manager-angular';
4
4
  import { FileInformation } from '@mtna/file-manager-ts';
5
5
  import { FileUploadItem } from '@mtna/web-form-ts';
6
- import { MtnaWfBaseFormItemControl } from '../../base-items';
6
+ import { MtnaWfBaseFormItemControl } from '../../base-items/base-form-item-control.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class MtnaWfFileUploadComponent extends MtnaWfBaseFormItemControl<FileUploadItem, FormControl> implements OnInit {
9
9
  private fileService;
10
10
  fileInfo?: FileInformation;
11
11
  loading: boolean;
12
- constructor(fileService: FileService);
12
+ _fileUploadButtonText: string;
13
+ constructor(cdr: ChangeDetectorRef, fileService: FileService);
13
14
  fileToUpload(file: FileList): void;
14
15
  handleDownload(template: FileInformation): void;
15
16
  ngOnInit(): void;
@@ -1,5 +1,5 @@
1
1
  import { FormItemGroupImpl } from '@mtna/web-form-ts';
2
- import { MtnaWfBaseGroupItem } from '../../base-items';
2
+ import { MtnaWfBaseGroupItem } from '../../base-items/base-group-item.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MtnaWfFormGroupComponent extends MtnaWfBaseGroupItem<FormItemGroupImpl> {
5
5
  get item(): FormItemGroupImpl;
@@ -5,8 +5,9 @@ import * as i3 from "../../step-card/step-card.module";
5
5
  import * as i4 from "@angular/material/divider";
6
6
  import * as i5 from "../../form-item/form-item.module";
7
7
  import * as i6 from "../../../pipes/get-object-type.pipe";
8
+ import * as i7 from "@mtna/core-angular";
8
9
  export declare class MtnaWfFormSectionModule {
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfFormSectionModule, never>;
10
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfFormSectionModule, [typeof i1.MtnaWfFormSectionComponent], [typeof i2.CommonModule, typeof i3.MtnaWfStepCardModule, typeof i4.MatDividerModule, typeof i5.MtnaWfFormItemModule, typeof i6.MtnaWfGetObjectTypePipeModule], [typeof i1.MtnaWfFormSectionComponent]>;
11
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfFormSectionModule, [typeof i1.MtnaWfFormSectionComponent], [typeof i2.CommonModule, typeof i3.MtnaWfStepCardModule, typeof i4.MatDividerModule, typeof i5.MtnaWfFormItemModule, typeof i6.MtnaWfGetObjectTypePipeModule, typeof i7.MtnaHighlightModule], [typeof i1.MtnaWfFormSectionComponent]>;
11
12
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfFormSectionModule>;
12
13
  }
@@ -1,15 +1,14 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import { FormControl, FormGroup } from '@angular/forms';
3
2
  import { InternationalizedParagraphAnswerItem, InternationalizedShortAnswerItem } from '@mtna/web-form-ts';
4
- import { MtnaWfBaseValueItem } from '../../base-items';
3
+ import { MtnaWfBaseValueItem } from '../../base-items/base-value-item.component';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class MtnaWfI18nInputComponent<I extends InternationalizedParagraphAnswerItem | InternationalizedShortAnswerItem> extends MtnaWfBaseValueItem<I, FormGroup> {
7
- protected elementRef: ElementRef;
8
- readonly isParagraph: boolean;
9
- constructor(elementRef: ElementRef);
10
- private _hasHostAttributes;
6
+ get item(): I;
7
+ set item(value: I);
8
+ isParagraph: boolean;
9
+ _notInformationText: string;
11
10
  getFormControl(language: string): FormControl;
12
11
  getLanguageDisplay(language: string): string;
13
12
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfI18nInputComponent<any>, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfI18nInputComponent<any>, "mtna-wf-i18n-input-item[mtnaWfI18nParagraphItem], mtna-wf-i18n-input-item[mtnaWfI18nShortAnswerItem],", never, {}, {}, never, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfI18nInputComponent<any>, "mtna-wf-i18n-input-item", never, {}, {}, never, never>;
15
14
  }
@@ -1,14 +1,13 @@
1
- import { ElementRef } from '@angular/core';
2
1
  import { FormControl } from '@angular/forms';
3
2
  import { DecimalAnswerItem, ParagraphAnswerItem, ShortAnswerItem, WholeNumberAnswerItem } from '@mtna/web-form-ts';
4
- import { MtnaWfBaseValueItem } from '../../base-items';
3
+ import { MtnaWfBaseValueItem } from '../../base-items/base-value-item.component';
5
4
  import * as i0 from "@angular/core";
6
5
  export declare class MtnaWfInputComponent<I extends DecimalAnswerItem | ParagraphAnswerItem | ShortAnswerItem | WholeNumberAnswerItem> extends MtnaWfBaseValueItem<I, FormControl> {
7
- protected elementRef: ElementRef;
8
- readonly isParagraph: boolean;
9
- readonly isNumberInput: boolean;
10
- constructor(elementRef: ElementRef);
11
- private _hasHostAttributes;
6
+ get item(): I;
7
+ set item(value: I);
8
+ isParagraph: boolean;
9
+ isNumberInput: boolean;
10
+ _noInformationText: string;
12
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfInputComponent<any>, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfInputComponent<any>, "mtna-wf-input-item[mtnaWfDecimalItem], mtna-wf-input-item[mtnaWfParagraphItem], mtna-wf-input-item[mtnaWfShortAnswerItem], mtna-wf-input-item[mtnaWfWholeNumberItem],", never, {}, {}, never, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfInputComponent<any>, "mtna-wf-input-item", never, {}, {}, never, never>;
14
13
  }
@@ -1,5 +1,5 @@
1
1
  import { MultipleChoiceItem } from '@mtna/web-form-ts';
2
- import { MtnaWfBaseSingleSelectionParentValueItem } from '../../base-items';
2
+ import { MtnaWfBaseSingleSelectionParentValueItem } from '../../base-items/base-single-selection-parent-value-item.component';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MtnaWfMultipleChoiceComponent extends MtnaWfBaseSingleSelectionParentValueItem<MultipleChoiceItem> {
5
5
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfMultipleChoiceComponent, never>;
@@ -6,8 +6,9 @@ import * as i4 from "@angular/material/radio";
6
6
  import * as i5 from "../../form-item/form-item.module";
7
7
  import * as i6 from "../../../pipes/get-form-control-error.pipe";
8
8
  import * as i7 from "@angular/material/form-field";
9
+ import * as i8 from "@mtna/core-angular";
9
10
  export declare class MtnaWfMultipleChoiceModule {
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfMultipleChoiceModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfMultipleChoiceModule, [typeof i1.MtnaWfMultipleChoiceComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatRadioModule, typeof i5.MtnaWfFormItemModule, typeof i6.MtnaWfGetFormControlErrorPipeModule, typeof i3.ReactiveFormsModule, typeof i7.MatFormFieldModule], [typeof i1.MtnaWfMultipleChoiceComponent]>;
12
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfMultipleChoiceModule, [typeof i1.MtnaWfMultipleChoiceComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i4.MatRadioModule, typeof i5.MtnaWfFormItemModule, typeof i6.MtnaWfGetFormControlErrorPipeModule, typeof i3.ReactiveFormsModule, typeof i7.MatFormFieldModule, typeof i8.MtnaHighlightModule], [typeof i1.MtnaWfMultipleChoiceComponent]>;
12
13
  static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfMultipleChoiceModule>;
13
14
  }
@@ -1,11 +1,13 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
1
2
  import { FormGroup } from '@angular/forms';
2
3
  import { FormItem, RepeatableItem } from '@mtna/web-form-ts';
3
- import { MtnaWfManagerService } from '../../../services';
4
- import { MtnaWfBaseParentValueItem } from '../../base-items';
4
+ import { MtnaWfManagerService } from '../../../services/form-manager.service';
5
+ import { MtnaWfBaseParentValueItem } from '../../base-items/base-parent-value-item.component';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class MtnaWfRepeatableItemContainerComponent extends MtnaWfBaseParentValueItem<RepeatableItem, FormGroup> {
7
8
  private manager;
8
- constructor(manager: MtnaWfManagerService);
9
+ _addText: string;
10
+ constructor(cdr: ChangeDetectorRef, manager: MtnaWfManagerService);
9
11
  addItem(): void;
10
12
  removeItem(item: FormItem): void;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfRepeatableItemContainerComponent, never>;