@mtna/web-form-angular 1.0.2-SNAPSHOT.1 → 1.0.2-SNAPSHOT.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +1 -0
- package/bundles/mtna-web-form-angular.umd.js +391 -270
- package/bundles/mtna-web-form-angular.umd.js.map +1 -1
- package/esm2015/lib/components/base-items/base-form-item-control.component.js +7 -5
- package/esm2015/lib/components/base-items/base-form-item.component.js +8 -5
- package/esm2015/lib/components/base-items/base-group-item.component.js +2 -1
- package/esm2015/lib/components/base-items/base-parent-value-item.component.js +2 -1
- package/esm2015/lib/components/base-items/base-section-item.component.js +2 -1
- package/esm2015/lib/components/base-items/base-single-selection-parent-value-item.component.js +4 -6
- package/esm2015/lib/components/base-items/base-value-item.component.js +2 -1
- package/esm2015/lib/components/form/form.component.js +1 -1
- package/esm2015/lib/components/form-item/form-item.component.js +7 -3
- package/esm2015/lib/components/form-item/form-item.module.js +26 -6
- package/esm2015/lib/components/form-item-impl/boolean/boolean.component.js +7 -6
- package/esm2015/lib/components/form-item-impl/boolean/boolean.module.js +28 -5
- package/esm2015/lib/components/form-item-impl/checkbox/checkbox.component.js +6 -7
- package/esm2015/lib/components/form-item-impl/checkbox/checkbox.module.js +7 -3
- package/esm2015/lib/components/form-item-impl/date/date.component.js +6 -6
- package/esm2015/lib/components/form-item-impl/date/date.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/date-range/date-range.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/date-range/date-range.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/dropdown/dropdown.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/file-upload/file-upload.component.js +7 -7
- package/esm2015/lib/components/form-item-impl/form-group/form-group.component.js +3 -3
- package/esm2015/lib/components/form-item-impl/form-group/form-group.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/form-section/form-section.component.js +5 -4
- package/esm2015/lib/components/form-item-impl/form-section/form-section.module.js +6 -5
- package/esm2015/lib/components/form-item-impl/i18n-input/i18n-input.component.js +18 -13
- package/esm2015/lib/components/form-item-impl/input/input.component.js +22 -16
- package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.component.js +7 -6
- package/esm2015/lib/components/form-item-impl/multiple-choice/multiple-choice.module.js +7 -3
- package/esm2015/lib/components/form-item-impl/ordered-list/ordered-list-item.component.js +1 -1
- package/esm2015/lib/components/form-item-impl/ordered-list/ordered-list-item.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.js +9 -8
- package/esm2015/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.module.js +6 -2
- package/esm2015/lib/components/form-item-impl/search/resource-search.component.js +7 -7
- package/esm2015/lib/components/form-item-impl/table-item/table-item.component.js +2 -2
- package/esm2015/lib/components/form-item-impl/text/text.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/text/text.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/title/title.component.js +3 -2
- package/esm2015/lib/components/form-item-impl/title/title.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/unordered-list/unordered-list-item.component.js +1 -1
- package/esm2015/lib/components/form-item-impl/unordered-list/unordered-list-item.module.js +2 -2
- package/esm2015/lib/components/form-item-impl/year-quarter/year-quarter.component.js +6 -6
- package/esm2015/lib/components/form-item-impl/year-quarter-range/year-quarter-range.component.js +3 -3
- package/esm2015/lib/components/form-item-impl/year-quarter-range/year-quarter-range.module.js +2 -2
- package/esm2015/lib/components/form-item-injector/form-item-injector.component.js +14 -9
- package/esm2015/lib/directives/base-form-item-control.directive.js +1 -2
- package/esm2015/lib/pipes/coerce-form-control.pipe.js +1 -3
- package/esm2015/lib/pipes/coerce-form-item.pipe.js +36 -0
- package/esm2015/lib/pipes/index.js +2 -1
- package/esm2015/lib/services/dialog.service.js +1 -2
- package/esm2015/lib/utilities/serializer-util.js +11 -6
- package/fesm2015/mtna-web-form-angular.js +259 -151
- package/fesm2015/mtna-web-form-angular.js.map +1 -1
- package/lib/components/base-items/base-form-item-control.component.d.ts +2 -0
- package/lib/components/base-items/base-form-item.component.d.ts +3 -1
- package/lib/components/base-items/base-single-selection-parent-value-item.component.d.ts +0 -1
- package/lib/components/base-items/base-value-item.component.d.ts +1 -2
- package/lib/components/form-item/form-item.component.d.ts +3 -2
- package/lib/components/form-item/form-item.module.d.ts +2 -1
- package/lib/components/form-item-impl/boolean/boolean.component.d.ts +2 -1
- package/lib/components/form-item-impl/boolean/boolean.module.d.ts +2 -1
- package/lib/components/form-item-impl/checkbox/checkbox.component.d.ts +2 -2
- package/lib/components/form-item-impl/checkbox/checkbox.module.d.ts +2 -1
- package/lib/components/form-item-impl/date/date.component.d.ts +2 -2
- package/lib/components/form-item-impl/date-range/date-range.component.d.ts +1 -1
- package/lib/components/form-item-impl/dropdown/dropdown.component.d.ts +1 -1
- package/lib/components/form-item-impl/file-upload/file-upload.component.d.ts +3 -3
- package/lib/components/form-item-impl/form-group/form-group.component.d.ts +1 -1
- package/lib/components/form-item-impl/form-section/form-section.module.d.ts +2 -1
- package/lib/components/form-item-impl/i18n-input/i18n-input.component.d.ts +5 -7
- package/lib/components/form-item-impl/input/input.component.d.ts +6 -8
- package/lib/components/form-item-impl/multiple-choice/multiple-choice.component.d.ts +1 -1
- package/lib/components/form-item-impl/multiple-choice/multiple-choice.module.d.ts +2 -1
- package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.component.d.ts +4 -3
- package/lib/components/form-item-impl/repeatable-item-container/repeatable-item-container.module.d.ts +2 -1
- package/lib/components/form-item-impl/search/resource-search.component.d.ts +3 -2
- package/lib/components/form-item-impl/table-item/table-item.component.d.ts +1 -1
- package/lib/components/form-item-impl/title/_title-theme.scss +28 -0
- package/lib/components/form-item-impl/year-quarter/year-quarter.component.d.ts +4 -4
- package/lib/components/form-item-injector/form-item-injector.component.d.ts +6 -2
- package/lib/core/_all-color.scss +2 -0
- package/lib/core/_all-theme.scss +2 -0
- package/lib/core/_all-typography.scss +2 -0
- package/lib/core/_core-theme.scss +0 -18
- package/lib/pipes/coerce-form-item.pipe.d.ts +14 -0
- package/lib/pipes/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -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
|
}
|
|
@@ -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>
|
|
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);
|
|
@@ -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
|
|
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
|
}
|
|
@@ -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
|
}
|
|
@@ -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,7 @@ 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
|
+
constructor(cdr: ChangeDetectorRef, dialogService: MtnaWfDialogService);
|
|
14
14
|
handleChange(change: MatCheckboxChange, index: number): void;
|
|
15
15
|
ngOnDestroy(): void;
|
|
16
16
|
/**
|
|
@@ -10,8 +10,9 @@ import * as i8 from "@angular/material/icon";
|
|
|
10
10
|
import * as i9 from "@angular/material/tooltip";
|
|
11
11
|
import * as i10 from "../../form-item/form-item.module";
|
|
12
12
|
import * as i11 from "@mtna/core-angular";
|
|
13
|
+
import * as i12 from "../../form-item-dialog/form-item-dialog.module";
|
|
13
14
|
export declare class MtnaWfCheckboxModule {
|
|
14
15
|
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]>;
|
|
16
|
+
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 i12.MtnaWfFormItemDialogModule], [typeof i1.MtnaWfCheckboxComponent]>;
|
|
16
17
|
static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfCheckboxModule>;
|
|
17
18
|
}
|
|
@@ -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,7 @@ 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
|
+
constructor(cdr: ChangeDetectorRef, logger: MtnaLogger);
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
/**
|
|
18
18
|
* Manually change the parse and display formats of the date picker.
|
|
@@ -1,6 +1,6 @@
|
|
|
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;
|
|
@@ -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,15 @@
|
|
|
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
|
+
constructor(cdr: ChangeDetectorRef, fileService: FileService);
|
|
13
13
|
fileToUpload(file: FileList): void;
|
|
14
14
|
handleDownload(template: FileInformation): void;
|
|
15
15
|
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,13 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
private _hasHostAttributes;
|
|
6
|
+
get item(): I;
|
|
7
|
+
set item(value: I);
|
|
8
|
+
isParagraph: boolean;
|
|
11
9
|
getFormControl(language: string): FormControl;
|
|
12
10
|
getLanguageDisplay(language: string): string;
|
|
13
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfI18nInputComponent<any>, never>;
|
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfI18nInputComponent<any>, "mtna-wf-i18n-input-item
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfI18nInputComponent<any>, "mtna-wf-i18n-input-item", never, {}, {}, never, never>;
|
|
15
13
|
}
|
|
@@ -1,14 +1,12 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
private _hasHostAttributes;
|
|
6
|
+
get item(): I;
|
|
7
|
+
set item(value: I);
|
|
8
|
+
isParagraph: boolean;
|
|
9
|
+
isNumberInput: boolean;
|
|
12
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfInputComponent<any>, never>;
|
|
13
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfInputComponent<any>, "mtna-wf-input-item
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfInputComponent<any>, "mtna-wf-input-item", never, {}, {}, never, never>;
|
|
14
12
|
}
|
|
@@ -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,12 @@
|
|
|
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
|
+
constructor(cdr: ChangeDetectorRef, manager: MtnaWfManagerService);
|
|
9
10
|
addItem(): void;
|
|
10
11
|
removeItem(item: FormItem): void;
|
|
11
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfRepeatableItemContainerComponent, never>;
|
|
@@ -8,8 +8,9 @@ import * as i6 from "@mtna/core-angular";
|
|
|
8
8
|
import * as i7 from "@angular/material/button";
|
|
9
9
|
import * as i8 from "@angular/material/icon";
|
|
10
10
|
import * as i9 from "@angular/material/tooltip";
|
|
11
|
+
import * as i10 from "../../../pipes/coerce-form-item.pipe";
|
|
11
12
|
export declare class MtnaWfRepeatableItemContainerModule {
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfRepeatableItemContainerModule, never>;
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfRepeatableItemContainerModule, [typeof i1.MtnaWfRepeatableItemContainerComponent], [typeof i2.CommonModule, typeof i3.MtnaWfItemHeaderModule, typeof i4.MtnaWfRepeatableItemModule, typeof i5.MtnaWfFormItemModule, typeof i6.MtnaHighlightModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i6.MtnaTrackByPropertyPipeModule], [typeof i1.MtnaWfRepeatableItemContainerComponent]>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfRepeatableItemContainerModule, [typeof i1.MtnaWfRepeatableItemContainerComponent], [typeof i2.CommonModule, typeof i3.MtnaWfItemHeaderModule, typeof i4.MtnaWfRepeatableItemModule, typeof i5.MtnaWfFormItemModule, typeof i6.MtnaHighlightModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatTooltipModule, typeof i6.MtnaTrackByPropertyPipeModule, typeof i10.MtnaWfCoerceFormItemPipeModule], [typeof i1.MtnaWfRepeatableItemContainerComponent]>;
|
|
14
15
|
static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfRepeatableItemContainerModule>;
|
|
15
16
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
+
import { ChangeDetectorRef } from '@angular/core';
|
|
1
2
|
import { FormGroup } from '@angular/forms';
|
|
2
3
|
import { MatDialog } from '@angular/material/dialog';
|
|
3
4
|
import { MtnaInMemorySearchFacade } from '@mtna/search-manager-angular';
|
|
4
5
|
import { ResourceSearchItem } from '@mtna/web-form-ts';
|
|
5
|
-
import { MtnaWfBaseValueItem } from '../../base-items';
|
|
6
|
+
import { MtnaWfBaseValueItem } from '../../base-items/base-value-item.component';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class MtnaWfResourceSearchComponent extends MtnaWfBaseValueItem<ResourceSearchItem, FormGroup> {
|
|
8
9
|
protected searchFacade: MtnaInMemorySearchFacade;
|
|
9
10
|
protected dialog: MatDialog;
|
|
10
11
|
private references;
|
|
11
|
-
constructor(searchFacade: MtnaInMemorySearchFacade, dialog: MatDialog);
|
|
12
|
+
constructor(cdr: ChangeDetectorRef, searchFacade: MtnaInMemorySearchFacade, dialog: MatDialog);
|
|
12
13
|
openDialog(): void;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfResourceSearchComponent, never>;
|
|
14
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfResourceSearchComponent, "mtna-wf-resource-search-item", never, {}, {}, never, never>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { TableItem, TableRowItem } from '@mtna/web-form-ts';
|
|
3
|
-
import { MtnaWfBaseParentValueItem } from '../../base-items';
|
|
3
|
+
import { MtnaWfBaseParentValueItem } from '../../base-items/base-parent-value-item.component';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class MtnaWfTableFormItemComponent extends MtnaWfBaseParentValueItem<TableItem, FormGroup> {
|
|
6
6
|
_trackByTableRow(index: number, row: TableRowItem): string;
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
|
|
8
|
+
mtna-wf-title-item {
|
|
9
|
+
.mtna-wf-title-item {
|
|
10
|
+
color: mat.get-color-from-palette($foreground, secondary-text);
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@mixin typography($theme) {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin theme($theme) {
|
|
19
|
+
$config: mat.get-color-config($theme);
|
|
20
|
+
@if $config != null {
|
|
21
|
+
@include color($theme);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
$typography-config: mat.get-typography-config($theme);
|
|
25
|
+
@if $typography-config != null {
|
|
26
|
+
@include typography($theme);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AfterViewInit, InjectionToken, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, InjectionToken, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { FormControl } from '@angular/forms';
|
|
3
3
|
import { DateRange, YearQuarter, YearQuarterRangeItem } from '@mtna/web-form-ts';
|
|
4
|
-
import { MtnaWfBaseValueItem } from '../../base-items';
|
|
4
|
+
import { MtnaWfBaseValueItem } from '../../base-items/base-value-item.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare const MTNA_WF_DEFAULT_YEAR_RANGE: InjectionToken<MtnaWfDefaultYearRange>;
|
|
7
7
|
export interface MtnaWfDefaultYearRange {
|
|
@@ -18,7 +18,7 @@ export declare class MtnaWfYearQuarterComponent extends MtnaWfBaseValueItem<Year
|
|
|
18
18
|
_yearSelection: number[];
|
|
19
19
|
private destroyObs;
|
|
20
20
|
private defaultYearRange;
|
|
21
|
-
constructor(defaultYearRange?: MtnaWfDefaultYearRange);
|
|
21
|
+
constructor(cdr: ChangeDetectorRef, defaultYearRange?: MtnaWfDefaultYearRange);
|
|
22
22
|
ngAfterViewInit(): void;
|
|
23
23
|
ngOnDestroy(): void;
|
|
24
24
|
ngOnInit(): void;
|
|
@@ -30,6 +30,6 @@ export declare class MtnaWfYearQuarterComponent extends MtnaWfBaseValueItem<Year
|
|
|
30
30
|
* @returns `[number, number]` The original [year, quarter] value OR [year, null]
|
|
31
31
|
*/
|
|
32
32
|
private withinRangeLimits;
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfYearQuarterComponent, [{ optional: true; }]>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfYearQuarterComponent, [null, { optional: true; }]>;
|
|
34
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtnaWfYearQuarterComponent, "mtna-wf-year-quarter-item", never, {}, {}, never, never>;
|
|
35
35
|
}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
2
|
import { ComponentFactoryResolver, ComponentRef, EventEmitter, Injector, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
3
|
import { AbstractControl } from '@angular/forms';
|
|
3
4
|
import { ThemePalette } from '@angular/material/core';
|
|
4
5
|
import { InjectionService, MtnaComponentInjector } from '@mtna/core-angular';
|
|
5
6
|
import { AnnotationIndicatorStatus } from '@mtna/pojo-social-angular';
|
|
6
7
|
import { FormItem } from '@mtna/web-form-ts';
|
|
8
|
+
import { BehaviorSubject } from 'rxjs';
|
|
7
9
|
import { FormStep, ToggleFormItemsData } from '../../models';
|
|
8
10
|
import * as i0 from "@angular/core";
|
|
9
11
|
export declare class MtnaWfItemInjector extends MtnaComponentInjector implements OnInit {
|
|
@@ -11,6 +13,8 @@ export declare class MtnaWfItemInjector extends MtnaComponentInjector implements
|
|
|
11
13
|
protected cfr: ComponentFactoryResolver;
|
|
12
14
|
protected vcr: ViewContainerRef;
|
|
13
15
|
protected injectionService: InjectionService;
|
|
16
|
+
static ngAcceptInputType_inList: BooleanInput;
|
|
17
|
+
static ngAcceptInputType_readonly: BooleanInput;
|
|
14
18
|
color: ThemePalette;
|
|
15
19
|
get control(): AbstractControl | null | undefined;
|
|
16
20
|
set control(control: AbstractControl | null | undefined);
|
|
@@ -20,7 +24,7 @@ export declare class MtnaWfItemInjector extends MtnaComponentInjector implements
|
|
|
20
24
|
private _header;
|
|
21
25
|
get indicatorStatus(): AnnotationIndicatorStatus;
|
|
22
26
|
set indicatorStatus(value: AnnotationIndicatorStatus);
|
|
23
|
-
protected _indicatorStatus: AnnotationIndicatorStatus
|
|
27
|
+
protected _indicatorStatus: BehaviorSubject<AnnotationIndicatorStatus>;
|
|
24
28
|
get inList(): boolean;
|
|
25
29
|
set inList(value: boolean);
|
|
26
30
|
private _inList;
|
|
@@ -32,7 +36,7 @@ export declare class MtnaWfItemInjector extends MtnaComponentInjector implements
|
|
|
32
36
|
private _parentIds;
|
|
33
37
|
get readonly(): boolean;
|
|
34
38
|
set readonly(value: boolean);
|
|
35
|
-
protected _readonly: boolean
|
|
39
|
+
protected _readonly: BehaviorSubject<boolean>;
|
|
36
40
|
get step(): FormStep | null | undefined;
|
|
37
41
|
set step(value: FormStep | null | undefined);
|
|
38
42
|
private _step;
|
package/lib/core/_all-color.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '../components/form-item-impl/form-group/form-group-theme';
|
|
4
4
|
@use '../components/form-item-impl/multiple-choice/multiple-choice-theme';
|
|
5
5
|
@use '../components/form-item-impl/repeatable-item-container/repeatable-item-container-theme';
|
|
6
|
+
@use '../components/form-item-impl/title/title-theme';
|
|
6
7
|
@use '../components/form-item-impl/year-quarter/year-quarter-item-theme';
|
|
7
8
|
@use '../components/form-stepper/form-step-group/form-step-group-theme';
|
|
8
9
|
@use '../components/form-stepper/form-stepper/form-stepper-theme';
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
@include form-group-theme.color($theme);
|
|
16
17
|
@include multiple-choice-theme.color($theme);
|
|
17
18
|
@include repeatable-item-container-theme.color($theme);
|
|
19
|
+
@include title-theme.color($theme);
|
|
18
20
|
@include year-quarter-item-theme.color($theme);
|
|
19
21
|
@include form-step-group-theme.color($theme);
|
|
20
22
|
@include form-stepper-theme.color($theme);
|
package/lib/core/_all-theme.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '../components/form-item-impl/form-group/form-group-theme';
|
|
4
4
|
@use '../components/form-item-impl/multiple-choice/multiple-choice-theme';
|
|
5
5
|
@use '../components/form-item-impl/repeatable-item-container/repeatable-item-container-theme';
|
|
6
|
+
@use '../components/form-item-impl/title/title-theme';
|
|
6
7
|
@use '../components/form-item-impl/year-quarter/year-quarter-item-theme';
|
|
7
8
|
@use '../components/form-stepper/form-step-group/form-step-group-theme';
|
|
8
9
|
@use '../components/form-stepper/form-stepper/form-stepper-theme';
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
@include form-group-theme.theme($theme);
|
|
16
17
|
@include multiple-choice-theme.theme($theme);
|
|
17
18
|
@include repeatable-item-container-theme.theme($theme);
|
|
19
|
+
@include title-theme.theme($theme);
|
|
18
20
|
@include year-quarter-item-theme.theme($theme);
|
|
19
21
|
@include form-step-group-theme.theme($theme);
|
|
20
22
|
@include form-stepper-theme.theme($theme);
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
@use '../components/form-item-impl/form-group/form-group-theme';
|
|
4
4
|
@use '../components/form-item-impl/multiple-choice/multiple-choice-theme';
|
|
5
5
|
@use '../components/form-item-impl/repeatable-item-container/repeatable-item-container-theme';
|
|
6
|
+
@use '../components/form-item-impl/title/title-theme';
|
|
6
7
|
@use '../components/form-item-impl/year-quarter/year-quarter-item-theme';
|
|
7
8
|
@use '../components/form-stepper/form-step-group/form-step-group-theme';
|
|
8
9
|
@use '../components/form-stepper/form-stepper/form-stepper-theme';
|
|
@@ -15,6 +16,7 @@
|
|
|
15
16
|
@include form-group-theme.typography($theme);
|
|
16
17
|
@include multiple-choice-theme.typography($theme);
|
|
17
18
|
@include repeatable-item-container-theme.typography($theme);
|
|
19
|
+
@include title-theme.typography($theme);
|
|
18
20
|
@include year-quarter-item-theme.typography($theme);
|
|
19
21
|
@include form-step-group-theme.typography($theme);
|
|
20
22
|
@include form-stepper-theme.typography($theme);
|
|
@@ -6,10 +6,6 @@
|
|
|
6
6
|
$background: map.get($config, background);
|
|
7
7
|
$foreground: map.get($config, foreground);
|
|
8
8
|
|
|
9
|
-
mtna-wf-item .mat-list-base {
|
|
10
|
-
padding-top: 0;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
9
|
.mtna-wf-title-item {
|
|
14
10
|
color: mat.get-color-from-palette($foreground, secondary-text);
|
|
15
11
|
}
|
|
@@ -26,18 +22,4 @@
|
|
|
26
22
|
color: mat.get-color-from-palette($background, disabled-button);
|
|
27
23
|
}
|
|
28
24
|
}
|
|
29
|
-
|
|
30
|
-
.mtna-wf-title-item {
|
|
31
|
-
font-size: 1rem;
|
|
32
|
-
font-weight: 400;
|
|
33
|
-
letter-spacing: 1px;
|
|
34
|
-
line-height: 32px;
|
|
35
|
-
text-transform: uppercase;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
mtna-wf-section .mtna-wf-title-item {
|
|
39
|
-
font-size: 0.875rem;
|
|
40
|
-
line-height: 28px;
|
|
41
|
-
font-weight: 500;
|
|
42
|
-
}
|
|
43
25
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { FormItem } from '@mtna/web-form-ts';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MtnaWfCoerceFormItemPipe implements PipeTransform {
|
|
5
|
+
transform(item: unknown): FormItem | undefined;
|
|
6
|
+
instanceOfFormItem(something: unknown): something is FormItem;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfCoerceFormItemPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MtnaWfCoerceFormItemPipe, "coerceFormItem">;
|
|
9
|
+
}
|
|
10
|
+
export declare class MtnaWfCoerceFormItemPipeModule {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtnaWfCoerceFormItemPipeModule, never>;
|
|
12
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtnaWfCoerceFormItemPipeModule, [typeof MtnaWfCoerceFormItemPipe], never, [typeof MtnaWfCoerceFormItemPipe]>;
|
|
13
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MtnaWfCoerceFormItemPipeModule>;
|
|
14
|
+
}
|
package/lib/pipes/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from './coerce-date-item.pipe';
|
|
2
2
|
export * from './coerce-form-control.pipe';
|
|
3
3
|
export * from './coerce-form-group.pipe';
|
|
4
|
+
export * from './coerce-form-item.pipe';
|
|
4
5
|
export * from './date-quarter.pipe';
|
|
5
6
|
export * from './form-step-group.pipe';
|
|
6
7
|
export * from './get-auto-complete.pipe';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mtna/web-form-angular",
|
|
3
|
-
"version": "1.0.2-SNAPSHOT.
|
|
3
|
+
"version": "1.0.2-SNAPSHOT.2",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://bitbucket.org/mtnaus/web-form-angular"
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"@mtna/pojo-social-angular": "^1.0.0",
|
|
25
25
|
"@mtna/pojo-social-ts": "^1.0.0",
|
|
26
26
|
"@mtna/search-manager-angular": "^1.0.0",
|
|
27
|
-
"@mtna/web-form-ts": "1.0.
|
|
27
|
+
"@mtna/web-form-ts": "^1.0.0",
|
|
28
28
|
"@ngrx/effects": "~12.5.0",
|
|
29
29
|
"@ngrx/store": "~12.5.0",
|
|
30
30
|
"moment": "^2.29.3",
|