@ieeesa-npm/presentation 0.0.1 → 0.0.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.
- package/esm2022/lib/models/confirmation-modal-data.model.mjs +2 -0
- package/esm2022/lib/models/footer-config.model.mjs +2 -0
- package/esm2022/lib/models/header-config.model.mjs +2 -0
- package/esm2022/lib/models/navigation-menu.model.mjs +2 -0
- package/esm2022/lib/models/toggle-button.model.mjs +2 -0
- package/esm2022/public-api.mjs +21 -1
- package/fesm2022/ieeesa-npm-presentation.mjs +73 -33
- package/fesm2022/ieeesa-npm-presentation.mjs.map +1 -1
- package/lib/models/confirmation-modal-data.model.d.ts +5 -0
- package/lib/models/footer-config.model.d.ts +16 -0
- package/lib/models/header-config.model.d.ts +8 -0
- package/lib/models/navigation-menu.model.d.ts +9 -0
- package/lib/models/toggle-button.model.d.ts +5 -0
- package/package.json +17 -2
- package/public-api.d.ts +20 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlybWF0aW9uLW1vZGFsLWRhdGEubW9kZWwuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9wcmVzZW50YXRpb24vc3JjL2xpYi9tb2RlbHMvY29uZmlybWF0aW9uLW1vZGFsLWRhdGEubW9kZWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBpbnRlcmZhY2UgQ29uZmlybWF0aW9uTW9kYWxEYXRhIHtcclxuICBsZWZ0QnV0dG9uTGFiZWw6IHN0cmluZztcclxuICByaWdodEJ1dHRvbkxhYmVsOiBzdHJpbmc7XHJcbiAgcHJvbXB0TWVzc2FnZTogc3RyaW5nO1xyXG59Il19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9vdGVyLWNvbmZpZy5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy9mb290ZXItY29uZmlnLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEZvb3Rlckxpbmsge1xyXG4gIGxhYmVsOiBzdHJpbmc7XHJcbiAgYXJpYUxhYmVsOiBzdHJpbmc7XHJcbiAgcmVkaXJlY3RVcmw6IHN0cmluZztcclxufVxyXG5leHBvcnQgaW50ZXJmYWNlIEZvb3RlckNvbmZpZyB7XHJcbiAgbGlua3M6IEZvb3RlckxpbmtbXTtcclxuICBpZWVlTG9nbzogc3RyaW5nO1xyXG4gIGNvcHlyaWdodDoge1xyXG4gICAgbGluazogc3RyaW5nO1xyXG4gICAgdGV4dFBhcnQxOiBzdHJpbmc7XHJcbiAgICB0ZXh0UGFydDI6IHN0cmluZztcclxuICAgIGh5cGVyTGlua1BhcnQzOiBzdHJpbmc7XHJcbiAgICB0ZXh0UGFydDQ6IHN0cmluZztcclxuICB9O1xyXG59Il19
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZGVyLWNvbmZpZy5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy9oZWFkZXItY29uZmlnLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIEhlYWRlckNvbmZpZyB7XHJcbiAgaXNTaWduZWRJbjogYm9vbGVhbjtcclxuICBsb2dvVXJsOiBzdHJpbmc7XHJcbiAgYXBwbGljYXRpb25OYW1lOiBzdHJpbmc7XHJcbiAgdXNlck5hbWU6IHN0cmluZztcclxuICBoZWxwTGluazogc3RyaW5nO1xyXG4gIGxvZ291dExpbms6IHN0cmluZztcclxufSJdfQ==
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmF2aWdhdGlvbi1tZW51Lm1vZGVsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvcHJlc2VudGF0aW9uL3NyYy9saWIvbW9kZWxzL25hdmlnYXRpb24tbWVudS5tb2RlbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGludGVyZmFjZSBTaWRlTWVudUl0ZW0ge1xyXG4gIGlkOm51bWJlcjtcclxuICBkaXNwbGF5TmFtZTogc3RyaW5nO1xyXG4gIGlzRW5hYmxlZD86IGJvb2xlYW47XHJcbiAgaWNvblVSTD86IHN0cmluZztcclxuICByb3V0ZVVSTD86IHN0cmluZztcclxuICBwZXJtaXNzaW9uSWQ6IG51bWJlcjtcclxuICBzdWJNZW51SXRlbXM/OiBTaWRlTWVudUl0ZW1bXTtcclxufVxyXG4iXX0=
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9nZ2xlLWJ1dHRvbi5tb2RlbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvbGliL21vZGVscy90b2dnbGUtYnV0dG9uLm1vZGVsLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgaW50ZXJmYWNlIFRvZ2dsZUJ1dHRvbiB7XHJcbiAgaWQ6IG51bWJlcjtcclxuICBsYWJlbDogc3RyaW5nO1xyXG4gIGlzRGlzYWJsZWQ/OiBib29sZWFuO1xyXG59Il19
|
package/esm2022/public-api.mjs
CHANGED
|
@@ -14,7 +14,27 @@ export * from './lib/components/search/search.component';
|
|
|
14
14
|
export * from './lib/components/date-picker/date-picker.component';
|
|
15
15
|
export * from './lib/components/date-picker-header/date-picker-header.component';
|
|
16
16
|
export * from './lib/components/select/select.component';
|
|
17
|
+
export * from './lib/directives/dynamic-form-field/dynamic-form-field.directive';
|
|
18
|
+
export * from './lib/models/field-config.model';
|
|
19
|
+
export * from './lib/models/form-field.model';
|
|
20
|
+
export * from './lib/models/search.model';
|
|
21
|
+
export * from './lib/models/select-option.model';
|
|
22
|
+
export * from './lib/models/checkbox-option.model';
|
|
23
|
+
export * from './lib/models/autocomplete-option.model';
|
|
24
|
+
export * from './lib/models/calendar.model';
|
|
25
|
+
export * from './lib/models/search.model';
|
|
26
|
+
export * from './lib/models/confirmation-modal-data.model';
|
|
27
|
+
export * from './lib/models/date-picker.model';
|
|
28
|
+
export * from './lib/models/footer-config.model';
|
|
29
|
+
export * from './lib/models/form-control-types.model';
|
|
30
|
+
export * from './lib/models/form-grid.model';
|
|
31
|
+
export * from './lib/models/form.model';
|
|
32
|
+
export * from './lib/models/header-config.model';
|
|
33
|
+
export * from './lib/models/navigation-menu.model';
|
|
34
|
+
export * from './lib/models/toggle-button.model';
|
|
35
|
+
export * from './lib/services/form-utility.service';
|
|
36
|
+
export * from './lib/services/datepicker.service';
|
|
17
37
|
export * from './lib/services/form-utility.service';
|
|
18
38
|
export * from './lib/services/datepicker.service';
|
|
19
39
|
export * from './lib/presentation.module';
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL3ByZXNlbnRhdGlvbi9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUNILGNBQWMsc0RBQXNELENBQUM7QUFDckUsY0FBYyxrRUFBa0UsQ0FBQztBQUNqRixjQUFjLGtEQUFrRCxDQUFDO0FBQ2pFLGNBQWMsc0RBQXNELENBQUM7QUFDckUsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLGdEQUFnRCxDQUFDO0FBQy9ELGNBQWMsd0NBQXdDLENBQUM7QUFDdkQsY0FBYyw4Q0FBOEMsQ0FBQztBQUM3RCxjQUFjLHNEQUFzRCxDQUFDO0FBQ3JFLGNBQWMsMENBQTBDLENBQUM7QUFDekQsY0FBYyxvREFBb0QsQ0FBQztBQUNuRSxjQUFjLGtFQUFrRSxDQUFDO0FBQ2pGLGNBQWMsMENBQTBDLENBQUM7QUFFekQsY0FBYyxrRUFBa0UsQ0FBQztBQUVqRixjQUFjLGlDQUFpQyxDQUFDO0FBQ2hELGNBQWMsK0JBQStCLENBQUM7QUFDOUMsY0FBYywyQkFBMkIsQ0FBQztBQUMxQyxjQUFjLGtDQUFrQyxDQUFDO0FBQ2pELGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLDZCQUE2QixDQUFDO0FBQzVDLGNBQWMsMkJBQTJCLENBQUM7QUFDMUMsY0FBYyw0Q0FBNEMsQ0FBQztBQUMzRCxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsa0NBQWtDLENBQU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4vbGliL3ByZXNlbnRhdGlvbi5tb2R1bGUnO1xyXG5cclxuIl19
|
|
@@ -16,7 +16,7 @@ import { RadioComponent as RadioComponent$1 } from '@presentation/components/rad
|
|
|
16
16
|
import { SearchComponent as SearchComponent$1 } from '@presentation/components/search/search.component';
|
|
17
17
|
import { SelectComponent as SelectComponent$1 } from '@presentation/components/select/select.component';
|
|
18
18
|
import { TextAreaComponent as TextAreaComponent$1 } from '@presentation/components/text-area/text-area.component';
|
|
19
|
-
import { FormControlType } from '@presentation/models/form-control-types.model';
|
|
19
|
+
import { FormControlType as FormControlType$1 } from '@presentation/models/form-control-types.model';
|
|
20
20
|
import * as i5$2 from '@angular/material/icon';
|
|
21
21
|
import { MatIconModule } from '@angular/material/icon';
|
|
22
22
|
import * as i5 from '@angular/material/input';
|
|
@@ -37,7 +37,7 @@ import { MatOptionModule, DateAdapter, MAT_DATE_LOCALE, MAT_DATE_FORMATS, MatNat
|
|
|
37
37
|
import * as i5$1 from '@angular/material/autocomplete';
|
|
38
38
|
import { MAT_AUTOCOMPLETE_DEFAULT_OPTIONS, MatAutocompleteModule } from '@angular/material/autocomplete';
|
|
39
39
|
import { ValidationPatterns } from '@presentation/validation-patterns';
|
|
40
|
-
import { SearchType } from '@presentation/models/search.model';
|
|
40
|
+
import { SearchType as SearchType$1 } from '@presentation/models/search.model';
|
|
41
41
|
import { MomentDateAdapter, MAT_MOMENT_DATE_ADAPTER_OPTIONS } from '@angular/material-moment-adapter';
|
|
42
42
|
import { MatExpansionModule } from '@angular/material/expansion';
|
|
43
43
|
import * as i7 from '@angular/material/datepicker';
|
|
@@ -46,7 +46,7 @@ import { MatMenuModule } from '@angular/material/menu';
|
|
|
46
46
|
import moment_ from 'moment';
|
|
47
47
|
import { DatePickerHeaderComponent as DatePickerHeaderComponent$1 } from '@presentation/components/date-picker-header/date-picker-header.component';
|
|
48
48
|
import { DateFormats } from '@presentation/date-formats';
|
|
49
|
-
import { CalendarType } from '@presentation/models/calendar.model';
|
|
49
|
+
import { CalendarType as CalendarType$1 } from '@presentation/models/calendar.model';
|
|
50
50
|
import * as i2$2 from '@presentation/services/datepicker.service';
|
|
51
51
|
import * as i5$3 from '@angular/material/select';
|
|
52
52
|
import { MAT_SELECT_CONFIG, MatSelectModule } from '@angular/material/select';
|
|
@@ -353,14 +353,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
353
353
|
}] } });
|
|
354
354
|
|
|
355
355
|
const components = {
|
|
356
|
-
[FormControlType.INPUT]: InputComponent$1,
|
|
357
|
-
[FormControlType.TEXT_AREA]: TextAreaComponent$1,
|
|
358
|
-
[FormControlType.SELECT]: SelectComponent$1,
|
|
359
|
-
[FormControlType.SEARCH]: SearchComponent$1,
|
|
360
|
-
[FormControlType.DATE]: DatePickerComponent$1,
|
|
361
|
-
[FormControlType.CHECKBOX]: CheckboxComponent$1,
|
|
362
|
-
[FormControlType.RADIO]: RadioComponent$1,
|
|
363
|
-
[FormControlType.AUTO_COMPLETE]: AutocompleteComponent$1,
|
|
356
|
+
[FormControlType$1.INPUT]: InputComponent$1,
|
|
357
|
+
[FormControlType$1.TEXT_AREA]: TextAreaComponent$1,
|
|
358
|
+
[FormControlType$1.SELECT]: SelectComponent$1,
|
|
359
|
+
[FormControlType$1.SEARCH]: SearchComponent$1,
|
|
360
|
+
[FormControlType$1.DATE]: DatePickerComponent$1,
|
|
361
|
+
[FormControlType$1.CHECKBOX]: CheckboxComponent$1,
|
|
362
|
+
[FormControlType$1.RADIO]: RadioComponent$1,
|
|
363
|
+
[FormControlType$1.AUTO_COMPLETE]: AutocompleteComponent$1,
|
|
364
364
|
};
|
|
365
365
|
/**
|
|
366
366
|
* Provides the implementation of DynamicFormFieldDirective which hosts and creates the form fields components dynamically.
|
|
@@ -460,14 +460,14 @@ class DynamicFormFieldDirective {
|
|
|
460
460
|
this.component.instance.group = this.group;
|
|
461
461
|
this.component.instance.submitResponse = this.submitResponse;
|
|
462
462
|
this.component.instance.searchResponse = this.searchResponse;
|
|
463
|
-
if (this.config.type === FormControlType.SEARCH) {
|
|
463
|
+
if (this.config.type === FormControlType$1.SEARCH) {
|
|
464
464
|
this.component.instance.searchValue
|
|
465
465
|
?.pipe(takeUntil(this.destroy$))
|
|
466
466
|
?.subscribe((event) => {
|
|
467
467
|
this.formSearchApply.emit(event);
|
|
468
468
|
});
|
|
469
469
|
}
|
|
470
|
-
else if (this.config.type === FormControlType.SELECT) {
|
|
470
|
+
else if (this.config.type === FormControlType$1.SELECT) {
|
|
471
471
|
this.component.instance.optionSelected
|
|
472
472
|
?.pipe(takeUntil(this.destroy$))
|
|
473
473
|
?.subscribe((event) => {
|
|
@@ -482,7 +482,7 @@ class DynamicFormFieldDirective {
|
|
|
482
482
|
});
|
|
483
483
|
});
|
|
484
484
|
}
|
|
485
|
-
else if (this.config.type === FormControlType.DATE) {
|
|
485
|
+
else if (this.config.type === FormControlType$1.DATE) {
|
|
486
486
|
this.component.instance.selectedDate
|
|
487
487
|
?.pipe(takeUntil(this.destroy$))
|
|
488
488
|
?.subscribe((event) => {
|
|
@@ -494,7 +494,7 @@ class DynamicFormFieldDirective {
|
|
|
494
494
|
this.formSelectedDateRange.emit(event);
|
|
495
495
|
});
|
|
496
496
|
}
|
|
497
|
-
else if (this.config.type === FormControlType.AUTO_COMPLETE) {
|
|
497
|
+
else if (this.config.type === FormControlType$1.AUTO_COMPLETE) {
|
|
498
498
|
this.component.instance.autoCompleteSearchValue
|
|
499
499
|
?.pipe(takeUntil(this.destroy$))
|
|
500
500
|
?.subscribe((event) => {
|
|
@@ -729,7 +729,7 @@ class RadioComponent {
|
|
|
729
729
|
}
|
|
730
730
|
this.config =
|
|
731
731
|
this.config ??
|
|
732
|
-
this.formUtilityService.getFormFieldConfig(this.formControlName, FormControlType.RADIO);
|
|
732
|
+
this.formUtilityService.getFormFieldConfig(this.formControlName, FormControlType$1.RADIO);
|
|
733
733
|
}
|
|
734
734
|
/**
|
|
735
735
|
* Handles radio selection event on change of it
|
|
@@ -885,7 +885,7 @@ class AutocompleteComponent {
|
|
|
885
885
|
ngOnInit() {
|
|
886
886
|
this.config =
|
|
887
887
|
this.config ??
|
|
888
|
-
this.formUtilityService.getFormFieldConfig('autocomplete', FormControlType.AUTO_COMPLETE);
|
|
888
|
+
this.formUtilityService.getFormFieldConfig('autocomplete', FormControlType$1.AUTO_COMPLETE);
|
|
889
889
|
this.group =
|
|
890
890
|
this.group ?? this.formUtilityService.getFormGroup('autocomplete');
|
|
891
891
|
this.filteredOptions =
|
|
@@ -996,7 +996,7 @@ class SearchComponent {
|
|
|
996
996
|
this.formUtilityService = formUtilityService;
|
|
997
997
|
this.formControlName = 'search';
|
|
998
998
|
this.placeholderLabel = '';
|
|
999
|
-
this.searchType = SearchType.AUTO;
|
|
999
|
+
this.searchType = SearchType$1.AUTO;
|
|
1000
1000
|
this.searchTerm = '';
|
|
1001
1001
|
this.searchValue = new EventEmitter();
|
|
1002
1002
|
this.destroy$ = new Subject();
|
|
@@ -1010,7 +1010,7 @@ class SearchComponent {
|
|
|
1010
1010
|
ngOnInit() {
|
|
1011
1011
|
this.config =
|
|
1012
1012
|
this.config ??
|
|
1013
|
-
this.formUtilityService.getFormFieldConfig(this.formControlName, FormControlType.SEARCH);
|
|
1013
|
+
this.formUtilityService.getFormFieldConfig(this.formControlName, FormControlType$1.SEARCH);
|
|
1014
1014
|
this.group =
|
|
1015
1015
|
this.group ?? this.formUtilityService.getFormGroup(this.formControlName);
|
|
1016
1016
|
}
|
|
@@ -1019,7 +1019,7 @@ class SearchComponent {
|
|
|
1019
1019
|
* @memberof SearchComponent
|
|
1020
1020
|
*/
|
|
1021
1021
|
ngAfterViewInit() {
|
|
1022
|
-
if (this.searchType === SearchType.AUTO && this.searchControl) {
|
|
1022
|
+
if (this.searchType === SearchType$1.AUTO && this.searchControl) {
|
|
1023
1023
|
fromEvent(this.searchControl?.nativeElement, 'keyup')
|
|
1024
1024
|
.pipe(
|
|
1025
1025
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
@@ -1131,7 +1131,7 @@ class DatePickerComponent {
|
|
|
1131
1131
|
if (this.formControlName &&
|
|
1132
1132
|
this.selectedDates?.length === 1 &&
|
|
1133
1133
|
this.selectedDates[0] !== undefined &&
|
|
1134
|
-
this.calendarType === CalendarType.SINGLE_DATE_SELECTION) {
|
|
1134
|
+
this.calendarType === CalendarType$1.SINGLE_DATE_SELECTION) {
|
|
1135
1135
|
this.datepickerService.selectedDate = value[0];
|
|
1136
1136
|
this.createFormGroup(value[0]);
|
|
1137
1137
|
this.datepickerService.isRangeSelection = false;
|
|
@@ -1153,7 +1153,7 @@ class DatePickerComponent {
|
|
|
1153
1153
|
set selectedRange(value) {
|
|
1154
1154
|
this._selectedRange = value;
|
|
1155
1155
|
if (this.selectedRange?.length === 2 &&
|
|
1156
|
-
this.calendarType === CalendarType.DATE_RANGE_SELECTION) {
|
|
1156
|
+
this.calendarType === CalendarType$1.DATE_RANGE_SELECTION) {
|
|
1157
1157
|
this.createFormGroupWithRangeControls(value[0], value[1]);
|
|
1158
1158
|
this.setDateRange(value[0], value[1]);
|
|
1159
1159
|
this.datepickerService.isRangeSelection = true;
|
|
@@ -1183,10 +1183,10 @@ class DatePickerComponent {
|
|
|
1183
1183
|
this.datepickerService = datepickerService;
|
|
1184
1184
|
this.formUtilityService = formUtilityService;
|
|
1185
1185
|
this.datePickerHeader = DatePickerHeaderComponent$1;
|
|
1186
|
-
this.calendarTypes = CalendarType;
|
|
1186
|
+
this.calendarTypes = CalendarType$1;
|
|
1187
1187
|
this._selectedDates = [];
|
|
1188
1188
|
this._selectedRange = [];
|
|
1189
|
-
this.calendarType = CalendarType.SINGLE_DATE_SELECTION;
|
|
1189
|
+
this.calendarType = CalendarType$1.SINGLE_DATE_SELECTION;
|
|
1190
1190
|
this.placeholderLabel = '';
|
|
1191
1191
|
this.isDisabled = false;
|
|
1192
1192
|
this.isLabelAlignedLeft = false;
|
|
@@ -1203,9 +1203,9 @@ class DatePickerComponent {
|
|
|
1203
1203
|
ngOnInit() {
|
|
1204
1204
|
if (!this.config) {
|
|
1205
1205
|
const controlName = this.formControlName ?? 'datepicker';
|
|
1206
|
-
this.config = this.formUtilityService.getFormFieldConfig(controlName, FormControlType.DATE);
|
|
1206
|
+
this.config = this.formUtilityService.getFormFieldConfig(controlName, FormControlType$1.DATE);
|
|
1207
1207
|
if (this.config &&
|
|
1208
|
-
this.calendarType === CalendarType.DATE_RANGE_SELECTION) {
|
|
1208
|
+
this.calendarType === CalendarType$1.DATE_RANGE_SELECTION) {
|
|
1209
1209
|
this.config.dateRangeControls = {
|
|
1210
1210
|
startDate: 'startDate',
|
|
1211
1211
|
endDate: 'endDate',
|
|
@@ -1216,10 +1216,10 @@ class DatePickerComponent {
|
|
|
1216
1216
|
this.initializePropertiesFromConfig();
|
|
1217
1217
|
}
|
|
1218
1218
|
if (!this.group) {
|
|
1219
|
-
if (this.calendarType === CalendarType.SINGLE_DATE_SELECTION) {
|
|
1219
|
+
if (this.calendarType === CalendarType$1.SINGLE_DATE_SELECTION) {
|
|
1220
1220
|
this.createFormGroup();
|
|
1221
1221
|
}
|
|
1222
|
-
else if (this.calendarType === CalendarType.DATE_RANGE_SELECTION) {
|
|
1222
|
+
else if (this.calendarType === CalendarType$1.DATE_RANGE_SELECTION) {
|
|
1223
1223
|
this.createFormGroupWithRangeControls();
|
|
1224
1224
|
}
|
|
1225
1225
|
}
|
|
@@ -1231,7 +1231,7 @@ class DatePickerComponent {
|
|
|
1231
1231
|
initializePropertiesFromConfig() {
|
|
1232
1232
|
this.calendarType =
|
|
1233
1233
|
this.config?.datePicker?.calendarType ??
|
|
1234
|
-
CalendarType.SINGLE_DATE_SELECTION;
|
|
1234
|
+
CalendarType$1.SINGLE_DATE_SELECTION;
|
|
1235
1235
|
this.placeholderLabel = this.config?.datePicker?.placeholderLabel ?? '';
|
|
1236
1236
|
this.datepickerLabel = this.config?.datePicker?.label ?? '';
|
|
1237
1237
|
this.isLabelAlignedLeft =
|
|
@@ -1241,7 +1241,7 @@ class DatePickerComponent {
|
|
|
1241
1241
|
maxDate: '',
|
|
1242
1242
|
};
|
|
1243
1243
|
this.isDisabled = !!this.config.disabled;
|
|
1244
|
-
if (this.config.datePicker?.calendarType === CalendarType.DATE_RANGE_SELECTION) {
|
|
1244
|
+
if (this.config.datePicker?.calendarType === CalendarType$1.DATE_RANGE_SELECTION) {
|
|
1245
1245
|
this.group.addControl('startDate', new FormControl());
|
|
1246
1246
|
this.group.addControl('endDate', new FormControl());
|
|
1247
1247
|
}
|
|
@@ -1562,7 +1562,7 @@ class SelectComponent {
|
|
|
1562
1562
|
) {
|
|
1563
1563
|
this.formUtilityService = formUtilityService;
|
|
1564
1564
|
this.arrowDirection = false;
|
|
1565
|
-
this.searchType = SearchType.AUTO;
|
|
1565
|
+
this.searchType = SearchType$1.AUTO;
|
|
1566
1566
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
1567
1567
|
this.dropdownInfo = buttonActionsInfo;
|
|
1568
1568
|
this._isSortNeeded = true;
|
|
@@ -1587,7 +1587,7 @@ class SelectComponent {
|
|
|
1587
1587
|
this.group ?? this.formUtilityService.getFormGroup(this.formControlName);
|
|
1588
1588
|
this.config =
|
|
1589
1589
|
this.config ??
|
|
1590
|
-
this.formUtilityService.getFormFieldConfig(this.formControlName, FormControlType.SELECT);
|
|
1590
|
+
this.formUtilityService.getFormFieldConfig(this.formControlName, FormControlType$1.SELECT);
|
|
1591
1591
|
if (this.config) {
|
|
1592
1592
|
this.isMultiSelect = this.config.isMultiSelect ?? false;
|
|
1593
1593
|
this.dropdownOptions =
|
|
@@ -1746,6 +1746,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
1746
1746
|
type: Output
|
|
1747
1747
|
}] } });
|
|
1748
1748
|
|
|
1749
|
+
var SearchType;
|
|
1750
|
+
(function (SearchType) {
|
|
1751
|
+
// eslint-disable-next-line no-unused-vars
|
|
1752
|
+
SearchType["EMAIL"] = "EMAIL";
|
|
1753
|
+
// eslint-disable-next-line no-unused-vars
|
|
1754
|
+
SearchType["AUTO"] = "AUTO";
|
|
1755
|
+
// eslint-disable-next-line no-unused-vars
|
|
1756
|
+
SearchType["ON_CLICK"] = "ON_CLICK";
|
|
1757
|
+
})(SearchType || (SearchType = {}));
|
|
1758
|
+
|
|
1759
|
+
var CalendarType;
|
|
1760
|
+
(function (CalendarType) {
|
|
1761
|
+
// eslint-disable-next-line no-unused-vars
|
|
1762
|
+
CalendarType[CalendarType["SINGLE_DATE_SELECTION"] = 1] = "SINGLE_DATE_SELECTION";
|
|
1763
|
+
// eslint-disable-next-line no-unused-vars
|
|
1764
|
+
CalendarType[CalendarType["CALENDAR"] = 2] = "CALENDAR";
|
|
1765
|
+
// eslint-disable-next-line no-unused-vars
|
|
1766
|
+
CalendarType[CalendarType["DATE_RANGE_SELECTION"] = 3] = "DATE_RANGE_SELECTION";
|
|
1767
|
+
})(CalendarType || (CalendarType = {}));
|
|
1768
|
+
|
|
1769
|
+
var FormControlType;
|
|
1770
|
+
(function (FormControlType) {
|
|
1771
|
+
// eslint-disable-next-line no-unused-vars
|
|
1772
|
+
FormControlType["INPUT"] = "INPUT";
|
|
1773
|
+
// eslint-disable-next-line no-unused-vars
|
|
1774
|
+
FormControlType["TEXT_AREA"] = "TEXT_AREA";
|
|
1775
|
+
// eslint-disable-next-line no-unused-vars
|
|
1776
|
+
FormControlType["SELECT"] = "SELECT";
|
|
1777
|
+
// eslint-disable-next-line no-unused-vars
|
|
1778
|
+
FormControlType["SEARCH"] = "SEARCH";
|
|
1779
|
+
// eslint-disable-next-line no-unused-vars
|
|
1780
|
+
FormControlType["DATE"] = "DATE";
|
|
1781
|
+
// eslint-disable-next-line no-unused-vars
|
|
1782
|
+
FormControlType["CHECKBOX"] = "CHECKBOX";
|
|
1783
|
+
// eslint-disable-next-line no-unused-vars
|
|
1784
|
+
FormControlType["RADIO"] = "RADIO";
|
|
1785
|
+
// eslint-disable-next-line no-unused-vars
|
|
1786
|
+
FormControlType["AUTO_COMPLETE"] = "AUTO_COMPLETE";
|
|
1787
|
+
})(FormControlType || (FormControlType = {}));
|
|
1788
|
+
|
|
1749
1789
|
/**
|
|
1750
1790
|
* Creates form fields configuration and form group based on passed parameters.
|
|
1751
1791
|
* @export
|
|
@@ -1864,5 +1904,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.3", ngImpor
|
|
|
1864
1904
|
* Generated bundle index. Do not edit.
|
|
1865
1905
|
*/
|
|
1866
1906
|
|
|
1867
|
-
export { AutocompleteComponent, CheckboxComponent, CustomDateAdapter, DatePickerComponent, DatePickerHeaderComponent, DatepickerService, DynamicFormComponent, DynamicFormFieldDirective, FormErrorComponent, FormUtilityService, InputComponent, NotificationComponent, PresentationModule, RadioComponent, SearchComponent, SelectComponent, TextAreaComponent };
|
|
1907
|
+
export { AutocompleteComponent, CalendarType, CheckboxComponent, CustomDateAdapter, DatePickerComponent, DatePickerHeaderComponent, DatepickerService, DynamicFormComponent, DynamicFormFieldDirective, FormControlType, FormErrorComponent, FormUtilityService, InputComponent, NotificationComponent, PresentationModule, RadioComponent, SearchComponent, SearchType, SelectComponent, TextAreaComponent };
|
|
1868
1908
|
//# sourceMappingURL=ieeesa-npm-presentation.mjs.map
|