@ieeesa-npm/presentation 0.2.0 → 0.2.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/esm2022/lib/components/date-picker/date-picker.component.mjs +5 -3
- package/esm2022/lib/components/dynamic-form/dynamic-form.component.mjs +6 -6
- package/esm2022/lib/components/form-support-text/form-support-text.component.mjs +17 -0
- package/esm2022/lib/components/input/input.component.mjs +5 -3
- package/esm2022/lib/components/modal/modal.component.mjs +18 -17
- package/esm2022/lib/components/search/search.component.mjs +5 -3
- package/esm2022/lib/components/select/select.component.mjs +5 -3
- package/esm2022/lib/components/text-area/text-area.component.mjs +6 -4
- package/esm2022/lib/models/align-type.model.mjs +8 -0
- package/esm2022/public-api.mjs +3 -2
- package/fesm2022/ieeesa-npm-presentation.mjs +48 -29
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/components/dynamic-form/dynamic-form.component.d.ts +4 -4
- package/lib/components/form-support-text/form-support-text.component.d.ts +9 -0
- package/lib/components/modal/modal.component.d.ts +5 -7
- package/lib/models/{alignment-types.model.d.ts → align-type.model.d.ts} +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -1
- package/esm2022/lib/models/alignment-types.model.mjs +0 -8
|
@@ -4,7 +4,7 @@ import { FormModel } from '../../models/form.model';
|
|
|
4
4
|
import { FieldConfig } from '../../models/field-config.model';
|
|
5
5
|
import { FormGrid } from '../../models/form-grid.model';
|
|
6
6
|
import { DynamicFormFieldDirective } from '../../directives/dynamic-form-field/dynamic-form-field.directive';
|
|
7
|
-
import {
|
|
7
|
+
import { AlignType } from '../../models/align-type.model';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
/**
|
|
10
10
|
* Creates a reactive form dynamically based on the passed form field configuration and handles the form events.
|
|
@@ -44,8 +44,8 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit {
|
|
|
44
44
|
isSubmitButtonDisabled: boolean;
|
|
45
45
|
isLeftButtonDisabled: boolean;
|
|
46
46
|
isLeftButtonNeeded: boolean;
|
|
47
|
-
|
|
48
|
-
alignmentType: typeof
|
|
47
|
+
actionButtonAlign: AlignType;
|
|
48
|
+
alignmentType: typeof AlignType;
|
|
49
49
|
formSubmit: EventEmitter<any>;
|
|
50
50
|
formChange: EventEmitter<any>;
|
|
51
51
|
formInput: EventEmitter<any>;
|
|
@@ -185,5 +185,5 @@ export declare class DynamicFormComponent implements OnInit, AfterContentInit {
|
|
|
185
185
|
*/
|
|
186
186
|
getRowClassName(className: string): string;
|
|
187
187
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicFormComponent, never>;
|
|
188
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "ieeesa-dynamic-form", ["dynamicForm"], { "formGroups": { "alias": "formGroups"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "required": false; }; "colWidth": { "alias": "colWidth"; "required": false; }; "isLegendVisible": { "alias": "isLegendVisible"; "required": false; }; "rightButtonLabel": { "alias": "rightButtonLabel"; "required": false; }; "leftButtonLabel": { "alias": "leftButtonLabel"; "required": false; }; "isSubmitButtonDisabled": { "alias": "isSubmitButtonDisabled"; "required": false; }; "isLeftButtonDisabled": { "alias": "isLeftButtonDisabled"; "required": false; }; "isLeftButtonNeeded": { "alias": "isLeftButtonNeeded"; "required": false; }; "
|
|
188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DynamicFormComponent, "ieeesa-dynamic-form", ["dynamicForm"], { "formGroups": { "alias": "formGroups"; "required": false; }; "submitResponse": { "alias": "submitResponse"; "required": false; }; "searchResponse": { "alias": "searchResponse"; "required": false; }; "colWidth": { "alias": "colWidth"; "required": false; }; "isLegendVisible": { "alias": "isLegendVisible"; "required": false; }; "rightButtonLabel": { "alias": "rightButtonLabel"; "required": false; }; "leftButtonLabel": { "alias": "leftButtonLabel"; "required": false; }; "isSubmitButtonDisabled": { "alias": "isSubmitButtonDisabled"; "required": false; }; "isLeftButtonDisabled": { "alias": "isLeftButtonDisabled"; "required": false; }; "isLeftButtonNeeded": { "alias": "isLeftButtonNeeded"; "required": false; }; "actionButtonAlign": { "alias": "actionButtonAlign"; "required": false; }; }, { "formSubmit": "formSubmit"; "formChange": "formChange"; "formInput": "formInput"; "formLeftButtonClicked": "formLeftButtonClicked"; "formSearchApply": "formSearchApply"; "formGroupsReference": "formGroupsReference"; "dropdownChange": "dropdownChange"; "formDateSelected": "formDateSelected"; "formSelectSearch": "formSelectSearch"; "formControlChange": "formControlChange"; "formAutoCompleteSearch": "formAutoCompleteSearch"; "autoCompleteOptionSelected": "autoCompleteOptionSelected"; "formAfterContentInit": "formAfterContentInit"; "formSelectedDateRange": "formSelectedDateRange"; }, never, never, true, never>;
|
|
189
189
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
|
+
import { FieldConfig } from '../../models/field-config.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FormSupportTextComponent {
|
|
5
|
+
formGroup: FormGroup;
|
|
6
|
+
config: FieldConfig;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormSupportTextComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormSupportTextComponent, "ieeesa-form-support-text", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "config": { "alias": "config"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from
|
|
2
|
-
import { MatDialogRef } from
|
|
3
|
-
import { ModalType } from
|
|
4
|
-
import { ToggleButton } from
|
|
5
|
-
import {
|
|
1
|
+
import { ComponentRef, EventEmitter, OnDestroy, OnInit, ViewContainerRef } from "@angular/core";
|
|
2
|
+
import { MatDialogRef } from "@angular/material/dialog";
|
|
3
|
+
import { ModalType } from "@ieeesa-npm/utility";
|
|
4
|
+
import { ToggleButton } from "../../models/toggle-button.model";
|
|
5
|
+
import { Subject } from "rxjs";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* This component encapsulates the functionality of a modal dialog and implements reusable contents part of the modal components such as text content, loading another component into the modal and emitting modal events to consumed component.
|
|
@@ -20,8 +20,6 @@ export declare class ModalComponent implements OnInit, OnDestroy {
|
|
|
20
20
|
formSubmit: EventEmitter<any>;
|
|
21
21
|
submitFormResponse: EventEmitter<any>;
|
|
22
22
|
formCancel: EventEmitter<any>;
|
|
23
|
-
submitFormResponseSubscription: Subscription;
|
|
24
|
-
formCancelSubscription: Subscription;
|
|
25
23
|
toggleButtonClicked: EventEmitter<any>;
|
|
26
24
|
isComponentLoaded: boolean;
|
|
27
25
|
heading: string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -16,9 +16,10 @@ export * from './lib/components/search/search.component';
|
|
|
16
16
|
export * from './lib/components/select/select.component';
|
|
17
17
|
export * from './lib/components/text-area/text-area.component';
|
|
18
18
|
export * from './lib/components/toggle-button/toggle-button.component';
|
|
19
|
+
export * from './lib/components/form-support-text/form-support-text.component';
|
|
19
20
|
export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
|
|
20
21
|
export * from './lib/directives/focus-invalid-form-field/focus-invalid-form-field.directive';
|
|
21
|
-
export * from './lib/models/
|
|
22
|
+
export * from './lib/models/align-type.model';
|
|
22
23
|
export * from './lib/models/autocomplete-option.model';
|
|
23
24
|
export * from './lib/models/calendar.model';
|
|
24
25
|
export * from './lib/models/checkbox-option.model';
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/* eslint-disable no-unused-vars */
|
|
2
|
-
export var AlignmentType;
|
|
3
|
-
(function (AlignmentType) {
|
|
4
|
-
AlignmentType["LEFT"] = "Left";
|
|
5
|
-
AlignmentType["MIDDLE"] = "Middle";
|
|
6
|
-
AlignmentType["RIGHT"] = "Right";
|
|
7
|
-
})(AlignmentType || (AlignmentType = {}));
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxpZ25tZW50LXR5cGVzLm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc2VudGF0aW9uL3NyYy9saWIvbW9kZWxzL2FsaWdubWVudC10eXBlcy5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxtQ0FBbUM7QUFDbkMsTUFBTSxDQUFOLElBQVksYUFJWDtBQUpELFdBQVksYUFBYTtJQUN2Qiw4QkFBYSxDQUFBO0lBQ2Isa0NBQWlCLENBQUE7SUFDakIsZ0NBQWUsQ0FBQTtBQUNqQixDQUFDLEVBSlcsYUFBYSxLQUFiLGFBQWEsUUFJeEIiLCJzb3VyY2VzQ29udGVudCI6WyIvKiBlc2xpbnQtZGlzYWJsZSBuby11bnVzZWQtdmFycyAqL1xyXG5leHBvcnQgZW51bSBBbGlnbm1lbnRUeXBlIHtcclxuICBMRUZUID0gXCJMZWZ0XCIsXHJcbiAgTUlERExFID0gXCJNaWRkbGVcIixcclxuICBSSUdIVCA9IFwiUmlnaHRcIixcclxufSJdfQ==
|