@mtna/web-form-angular 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/_index.scss CHANGED
@@ -6,19 +6,18 @@
6
6
  // Component themes
7
7
  @forward './lib/form-item-controls/date-item-theme' as date-item-* show date-item-theme, date-item-color, date-item-typography;
8
8
  @forward './lib/form-item-controls/form-control-theme' as form-control-* show form-control-theme, form-control-color,
9
- form-control-typography;
10
- @forward './lib/form-item-controls/year-quarter-item-theme' as year-quarter-item-* show year-quarter-item-theme,
11
- year-quarter-item-color, year-quarter-item-typography;
9
+ form-control-typography;
10
+ @forward './lib/form-item-controls/year-quarter-item-theme' as year-quarter-item-* show year-quarter-item-theme, year-quarter-item-color,
11
+ year-quarter-item-typography;
12
12
  @forward './lib/form-stepper/form-step-group-theme' as form-step-group-* show form-step-group-theme, form-step-group-color,
13
- form-step-group-typography;
14
- @forward './lib/form-stepper/form-stepper-theme' as form-stepper-* show form-stepper-theme, form-stepper-color,
15
- form-stepper-typography;
13
+ form-step-group-typography;
14
+ @forward './lib/form-stepper/form-stepper-theme' as form-stepper-* show form-stepper-theme, form-stepper-color, form-stepper-typography;
16
15
  @forward './lib/groups/checkbox-theme' as checkbox-* show checkbox-theme, checkbox-color, checkbox-typography;
17
16
  @forward './lib/groups/form-group-theme' as form-group-* show form-group-theme, form-group-color, form-group-typography;
18
17
  @forward './lib/groups/multiple-choice-theme' as multiple-choice-* show multiple-choice-theme, multiple-choice-color,
19
- multiple-choice-typography;
18
+ multiple-choice-typography;
20
19
  @forward './lib/groups/repeatable-item-theme' as repeatable-item-* show repeatable-item-theme, repeatable-item-color,
21
- repeatable-item-typography;
20
+ repeatable-item-typography;
22
21
  @forward './lib/item-header/item-header-theme' as item-header-* show item-header-theme, item-header-color, item-header-typography;
23
22
  @forward './lib/step-card/step-card-theme' as step-card-* show step-card-theme, step-card-color, step-card-typography;
24
23
 
@@ -1,3 +1,14 @@
1
1
  import { FormItem } from '@mtna/web-form-ts';
2
2
  import { FormStep, FormStepGroup } from '../../form-stepper/models';
3
- export declare function generateFormSteps(items: Array<FormItem>): Array<FormStep | FormStepGroup>;
3
+ /**
4
+ * Builds up an array of FormSteps or FormStepGroups based on what is found in the provided form items. For most typical
5
+ * forms this will mean that a step is generated for every section that is found in the form. It is assumed that all
6
+ * inputs are held within sections and therefore the sections are the steps that should be monitored for completeness.
7
+ * However, in some circumstances, like very short forms, it may be the case that there are no sections and that all
8
+ * the items are set directly on the form itself. In these circumstances the allSteps parameter can be set to true and
9
+ * a step will be produced for each form item found.
10
+ *
11
+ * @param items the items of the form
12
+ * @param allSteps flag indicating that a form step should be produced for every form item
13
+ */
14
+ export declare function generateFormSteps(items: Array<FormItem>, allSteps?: boolean): Array<FormStep | FormStepGroup>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mtna/web-form-angular",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://bitbucket.org/mtnaus/web-form-angular"