bpm-core 0.0.27 → 0.0.28

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 (41) hide show
  1. package/esm2022/lib/components/app-component-sections/activities/activities.component.mjs +3 -3
  2. package/esm2022/lib/components/app-component-sections/feedback-section/feedback-section.component.mjs +2 -2
  3. package/esm2022/lib/components/app-component-sections/service-header/service-header.component.mjs +3 -3
  4. package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +2 -2
  5. package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +42 -31
  6. package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +63 -14
  7. package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +70 -137
  8. package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +42 -78
  9. package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +5 -19
  10. package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +23 -115
  11. package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +20 -72
  12. package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +20 -74
  13. package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +20 -104
  14. package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +20 -39
  15. package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +27 -59
  16. package/esm2022/lib/components/shared-components/form-field/validation-errors/validation-errors.component.mjs +3 -6
  17. package/esm2022/lib/testComponent/general-approver-section/general-approver-section.component.mjs +2 -2
  18. package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +37 -23
  19. package/fesm2022/bpm-core.mjs +524 -908
  20. package/fesm2022/bpm-core.mjs.map +1 -1
  21. package/lib/components/app-component-sections/activities/activities.component.d.ts +2 -2
  22. package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts +1 -1
  23. package/lib/components/app-component-sections/form-section/form-section.component.d.ts +1 -1
  24. package/lib/components/app-component-sections/service-header/service-header.component.d.ts +1 -1
  25. package/lib/components/shared-components/dialogs/submit-dialog/submit-dialog.component.d.ts +1 -1
  26. package/lib/components/shared-components/form-field/checkbox/checkbox.component.d.ts +10 -7
  27. package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +15 -5
  28. package/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.d.ts +15 -15
  29. package/lib/components/shared-components/form-field/date-picker/date-picker.component.d.ts +6 -13
  30. package/lib/components/shared-components/form-field/input/input.component.d.ts +2 -6
  31. package/lib/components/shared-components/form-field/input-currency/input-currency.component.d.ts +6 -23
  32. package/lib/components/shared-components/form-field/input-email/input-email.component.d.ts +4 -18
  33. package/lib/components/shared-components/form-field/input-mask/input-mask.component.d.ts +4 -18
  34. package/lib/components/shared-components/form-field/input-number/input-number.component.d.ts +5 -20
  35. package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +4 -15
  36. package/lib/components/shared-components/form-field/textarea/textarea.component.d.ts +5 -14
  37. package/lib/components/shared-components/form-field/validation-errors/validation-errors.component.d.ts +1 -2
  38. package/lib/testComponent/request-details-section/request-details-section.component.d.ts +5 -7
  39. package/package.json +3 -2
  40. package/esm2022/lib/testComponent/services/state-machine.service.mjs +0 -148
  41. package/lib/testComponent/services/state-machine.service.d.ts +0 -29
@@ -1,10 +1,10 @@
1
1
  import { CoreI18nService, CoreService, SidenavService } from '../../../services';
2
2
  import * as i0 from "@angular/core";
3
3
  export declare class ActivitiesComponent {
4
- private sidenavService;
4
+ private readonly sidenavService;
5
5
  i18n: CoreI18nService;
6
6
  coreService: CoreService;
7
- parsedData: any;
7
+ parsedData: string;
8
8
  constructor(sidenavService: SidenavService, i18n: CoreI18nService, coreService: CoreService);
9
9
  downloadFile(event: any): void;
10
10
  closeSidenav(): void;
@@ -13,7 +13,7 @@ export declare class ApprovalsWorkflowComponent {
13
13
  loading: boolean;
14
14
  constructor(i18n: CoreI18nService, sidenavService: SidenavService, coreService: CoreService, toasterService: ToastrService);
15
15
  getApproves(): void;
16
- statusClass(status: string): "success" | "danger" | "warning";
16
+ statusClass(status: string): "danger" | "warning" | "success";
17
17
  showProspectiveApprovals(): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ApprovalsWorkflowComponent, never>;
19
19
  static ɵcmp: i0.ɵɵComponentDeclaration<ApprovalsWorkflowComponent, "lib-approvals-workflow", never, { "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; }, {}, never, never, true, never>;
@@ -39,7 +39,7 @@ export declare class FormSectionComponent implements OnInit {
39
39
  private createUserProfileFromResponse;
40
40
  private openOrCreateUserProfile;
41
41
  toggleSmallProfileInfo(event: any, personType: any): void;
42
- statusClass(status: string): "success" | "danger" | "warning";
42
+ statusClass(status: string): "danger" | "warning" | "success";
43
43
  statusIcon(status: string): "close" | "clock" | "check";
44
44
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSectionComponent, never>;
45
45
  static ɵcmp: i0.ɵɵComponentDeclaration<FormSectionComponent, "app-form-section", never, { "requestDetails": { "alias": "requestDetails"; "required": false; }; "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "controllers": { "alias": "controllers"; "required": false; }; "segmentDynamicLoaderService": { "alias": "segmentDynamicLoaderService"; "required": false; }; "sectionFormComponent": { "alias": "sectionFormComponent"; "required": false; }; "sectionName": { "alias": "sectionName"; "required": false; }; }, {}, never, never, true, never>;
@@ -28,7 +28,7 @@ export declare class ServiceHeaderComponent implements AfterViewInit {
28
28
  feedback(): void;
29
29
  showUserInfo(): void;
30
30
  setFlagPriority(id: string): void;
31
- statusClass(status: string): "success" | "danger" | "warning" | "loading";
31
+ statusClass(status: string): "loading" | "danger" | "warning" | "success";
32
32
  openFaq(): void;
33
33
  getApprovalHistory(): void;
34
34
  static ɵfac: i0.ɵɵFactoryDeclaration<ServiceHeaderComponent, never>;
@@ -9,7 +9,7 @@ export declare class SubmitDialogComponent {
9
9
  constructor(data: any, i18n: CoreI18nService, coreService: CoreService);
10
10
  getImage(email: string): string;
11
11
  viewForm(formId: string, formName?: string): void;
12
- getStatus(statusKey: string): "success" | "danger" | "warning";
12
+ getStatus(statusKey: string): "danger" | "warning" | "success";
13
13
  static ɵfac: i0.ɵɵFactoryDeclaration<SubmitDialogComponent, never>;
14
14
  static ɵcmp: i0.ɵɵComponentDeclaration<SubmitDialogComponent, "app-submit-dialog", never, {}, {}, never, never, true, never>;
15
15
  }
@@ -1,18 +1,21 @@
1
1
  import { EventEmitter } from '@angular/core';
2
- import { BaseComponent } from '../base-component/base-component.component';
2
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
+ import { MatDialog } from '@angular/material/dialog';
3
4
  import * as i0 from "@angular/core";
4
- export declare class CheckBoxComponent extends BaseComponent {
5
+ export declare class CheckBoxComponent<Type> extends ControlValueAccessorDirective<Type> {
5
6
  containTerms: boolean;
6
7
  termsLabel: string;
7
8
  linkText: string;
8
9
  hrefLink: string;
10
+ link: string;
11
+ name: string;
12
+ randomID: string;
13
+ termsBody: any;
9
14
  downloadCheckBox: EventEmitter<any>;
10
- ngOnInit(): void;
11
- resetCheckBoxData(): void;
15
+ dialog: MatDialog;
12
16
  openUrl(): void;
13
17
  valueChange(event: any): void;
14
- downloadFile(): void;
15
18
  openTermsPopup(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent, "app-checkbox", never, { "containTerms": { "alias": "containTerms"; "required": false; }; "termsLabel": { "alias": "termsLabel"; "required": false; }; "linkText": { "alias": "linkText"; "required": false; }; "hrefLink": { "alias": "hrefLink"; "required": false; }; }, { "downloadCheckBox": "downloadCheckBox"; }, never, never, true, never>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<CheckBoxComponent<any>, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<CheckBoxComponent<any>, "app-checkbox", never, { "containTerms": { "alias": "containTerms"; "required": false; }; "termsLabel": { "alias": "termsLabel"; "required": false; }; "linkText": { "alias": "linkText"; "required": false; }; "hrefLink": { "alias": "hrefLink"; "required": false; }; "link": { "alias": "link"; "required": false; }; "name": { "alias": "name"; "required": false; }; "randomID": { "alias": "randomID"; "required": false; }; "termsBody": { "alias": "termsBody"; "required": false; }; }, { "downloadCheckBox": "downloadCheckBox"; }, never, never, true, never>;
18
21
  }
@@ -5,31 +5,41 @@ import * as i0 from "@angular/core";
5
5
  export declare class ControlValueAccessorDirective<Type> implements ControlValueAccessor, OnInit {
6
6
  private injector;
7
7
  i18n: CoreI18nService;
8
- hasLabel: boolean;
9
8
  isReadOnly: boolean;
10
- hideOption: boolean;
11
9
  labelTextWriteMode: string;
10
+ labelTextReadMode: string;
12
11
  hint: string;
13
12
  loading: boolean;
14
13
  placeholder: string;
15
14
  type: string;
16
- value: any;
17
15
  showErrorMessage: string;
18
16
  showHint: string;
19
17
  showIfEmpty: string;
20
18
  insideTable: any;
19
+ mask: any;
20
+ label: string;
21
+ matSuffix: boolean;
22
+ minDateValue: any;
23
+ maxDateValue: any;
24
+ maxDate: string;
25
+ datepickerObj: any;
26
+ minDate: string;
27
+ customMaxDate: any;
28
+ customMinDate: any;
29
+ value: any;
21
30
  control: FormControl | undefined;
22
31
  required: boolean;
23
32
  maxLength: any;
24
- private _isDisabled;
33
+ isDisabled: boolean;
25
34
  constructor(injector: Injector, i18n: CoreI18nService);
26
35
  ngOnInit(): void;
27
36
  setFormControl(): void;
28
37
  setFormValidators(): void;
38
+ setDateFormControl(): void;
29
39
  writeValue(value: Type): void;
30
40
  registerOnChange(fn: (val: Type | null) => Type): void;
31
41
  registerOnTouched(fn: () => Type): void;
32
42
  setDisabledState?(isDisabled: boolean): void;
33
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ControlValueAccessorDirective<any>, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "hasLabel": { "alias": "hasLabel"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "hideOption": { "alias": "hideOption"; "required": false; }; "labelTextWriteMode": { "alias": "labelTextWriteMode"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "value": { "alias": "value"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; }, {}, never, never, false, never>;
44
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "labelTextWriteMode": { "alias": "labelTextWriteMode"; "required": false; }; "labelTextReadMode": { "alias": "labelTextReadMode"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "type": { "alias": "type"; "required": false; }; "showErrorMessage": { "alias": "showErrorMessage"; "required": false; }; "showHint": { "alias": "showHint"; "required": false; }; "showIfEmpty": { "alias": "showIfEmpty"; "required": false; }; "insideTable": { "alias": "insideTable"; "required": false; }; "mask": { "alias": "mask"; "required": false; }; "label": { "alias": "label"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; }, {}, never, never, false, never>;
35
45
  }
@@ -1,29 +1,29 @@
1
- import { EventEmitter, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter, SimpleChanges, OnInit } from '@angular/core';
2
2
  import { FormControl } from '@angular/forms';
3
- import { Observable } from "rxjs";
4
- import { BaseComponent } from '../base-component/base-component.component';
3
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
5
4
  import * as i0 from "@angular/core";
6
- export declare class CustomSearchableComponent extends BaseComponent {
7
- myControl: FormControl;
5
+ export declare class CustomSearchableComponent<Type> extends ControlValueAccessorDirective<Type> implements OnInit {
8
6
  options: any;
9
- label: string;
10
7
  selectedValue: EventEmitter<any>;
11
- resetByDeleteBtn: EventEmitter<any>;
12
8
  isLengthGreaterThan4: EventEmitter<any>;
13
- noData: boolean;
14
- filteredOptions: Observable<any>;
9
+ disabled: boolean;
10
+ name: string;
11
+ displayedLable: string;
12
+ key: string;
15
13
  floatLabel: any;
16
14
  className: string;
17
- ngOnInit(): void;
15
+ noData: boolean;
16
+ filteredOptions: any;
17
+ searchControl: FormControl<any>;
18
18
  clearInput(): void;
19
+ onFocusOut(): void;
19
20
  onKeyDown(e: KeyboardEvent, input: HTMLInputElement): void;
20
21
  ngOnChanges(changes: SimpleChanges): void;
21
- onValueChange(): void;
22
- focusOutFunction(event: any): void;
22
+ onValueChange(data: any): void;
23
+ setFilteredOptions(data?: any): void;
23
24
  private _filter;
24
25
  displayFn(option: any): string;
25
26
  getAutoComplete(value: any): void;
26
- onLoadOptions(event: any): void;
27
- static ɵfac: i0.ɵɵFactoryDeclaration<CustomSearchableComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomSearchableComponent, "app-custom-searchable", never, { "myControl": { "alias": "myControl"; "required": false; }; "options": { "alias": "options"; "required": false; }; "label": { "alias": "label"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, { "selectedValue": "selectedValue"; "resetByDeleteBtn": "resetByDeleteBtn"; "isLengthGreaterThan4": "isLengthGreaterThan4"; }, never, never, true, never>;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<CustomSearchableComponent<any>, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomSearchableComponent<any>, "app-custom-searchable", never, { "options": { "alias": "options"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "name": { "alias": "name"; "required": false; }; "displayedLable": { "alias": "displayedLable"; "required": false; }; "key": { "alias": "key"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, { "selectedValue": "selectedValue"; "isLengthGreaterThan4": "isLengthGreaterThan4"; }, never, never, true, never>;
29
29
  }
@@ -1,9 +1,10 @@
1
1
  import { FormControl } from '@angular/forms';
2
- import { BaseComponent } from '../base-component/base-component.component';
3
2
  import { EventEmitter, SimpleChanges, AfterViewInit } from '@angular/core';
4
3
  import { MatDatepicker } from '@angular/material/datepicker';
4
+ import { CustomDateFormat } from './date-format';
5
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
5
6
  import * as i0 from "@angular/core";
6
- export declare class DatePickerComponent extends BaseComponent implements AfterViewInit {
7
+ export declare class DatePickerComponent<Type> extends ControlValueAccessorDirective<Type> implements AfterViewInit {
7
8
  date: FormControl<any>;
8
9
  tooltip: string;
9
10
  className: string;
@@ -14,21 +15,13 @@ export declare class DatePickerComponent extends BaseComponent implements AfterV
14
15
  dateValue: EventEmitter<any>;
15
16
  showIslamic: boolean;
16
17
  error: string;
17
- minDateValue: any;
18
- maxDateValue: any;
19
- maxDate: string;
20
- datepickerObj: any;
21
- minDate: string;
22
- customMaxDate: any;
23
- customMinDate: any;
18
+ dateFormat: CustomDateFormat;
24
19
  set format(_format: string);
25
20
  datepicker: MatDatepicker<any>;
26
21
  floatLabel: any;
27
22
  ngAfterViewInit(): void;
28
23
  get shouldSetDateFormateInAr(): boolean;
29
- ngOnInit(): void;
30
24
  ngOnChanges(changes: SimpleChanges): void;
31
- resetDateData(): void;
32
25
  focusPicker(picker: any): void;
33
26
  onFocus(): void;
34
27
  dateChange(event: any): void;
@@ -36,6 +29,6 @@ export declare class DatePickerComponent extends BaseComponent implements AfterV
36
29
  removeDate(): void;
37
30
  toggleIslamicCal(): void;
38
31
  private activateYearOnlyMode;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
40
- static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "app-datepicker", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "className": { "alias": "className"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; "resetDate": { "alias": "resetDate"; "required": false; }; "error": { "alias": "error"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "dateValue": "dateValue"; }, never, never, true, never>;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent<any>, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent<any>, "app-datepicker", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "className": { "alias": "className"; "required": false; }; "calendarType": { "alias": "calendarType"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "yearOnly": { "alias": "yearOnly"; "required": false; }; "resetDate": { "alias": "resetDate"; "required": false; }; "error": { "alias": "error"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "dateValue": "dateValue"; }, never, never, true, never>;
41
34
  }
@@ -1,19 +1,15 @@
1
- import { SimpleChanges, EventEmitter } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class InputComponent<Type> extends ControlValueAccessorDirective<Type> {
5
- label: string;
6
5
  hasTooltip: boolean;
7
6
  tooltip: string;
8
7
  floatLabel: any;
9
8
  className: string;
10
9
  showLabel: boolean;
11
10
  iconPrefixName: string;
12
- matSuffix: boolean;
13
11
  iconSuffixName: string;
14
12
  emitedChangedValue1: EventEmitter<any>;
15
- ngAfterViewChecked(): void;
16
- ngOnChanges(changes: SimpleChanges): void;
17
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent<any>, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "label": { "alias": "label"; "required": false; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "emitedChangedValue1": { "alias": "emitedChangedValue1"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "emitedChangedValue1": { "alias": "emitedChangedValue1"; "required": false; }; }, {}, never, never, true, never>;
19
15
  }
@@ -1,31 +1,14 @@
1
- import { BaseComponent } from '../base-component/base-component.component';
2
- import { SimpleChanges } from '@angular/core';
1
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
2
+ import { MycurrencyPipe } from "../../../../pipes";
3
3
  import * as i0 from "@angular/core";
4
- export declare class InputCurrencyComponent extends BaseComponent {
5
- label: string;
6
- displayValue: any;
7
- hasError: boolean;
8
- error: string;
4
+ export declare class InputCurrencyComponent<Type> extends ControlValueAccessorDirective<Type> {
9
5
  tooltip: string;
10
6
  floatLabel: any;
11
7
  className: string;
12
- showLabel: boolean;
13
- showPlus: boolean;
14
- showMinus: boolean;
15
- matPrefix: boolean;
16
8
  iconPrefixName: string;
17
- matSuffix: boolean;
18
9
  iconSuffixName: string;
19
10
  numberSuffixName: string;
20
- optional: boolean;
21
- showArrows: boolean;
22
- decimals: number;
23
- ngOnInit(): void;
24
- ngAfterViewChecked(): void;
25
- ngOnChanges(changes: SimpleChanges): void;
26
- plus(): void;
27
- minus(): void;
28
- onValueChange(data: any): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent, "app-input-currency", never, { "label": { "alias": "label"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "showPlus": { "alias": "showPlus"; "required": false; }; "showMinus": { "alias": "showMinus"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "showArrows": { "alias": "showArrows"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, true, never>;
11
+ mycurrencyPipe: MycurrencyPipe;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent<any>, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent<any>, "app-input-currency", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; }, {}, never, never, true, never>;
31
14
  }
@@ -1,27 +1,13 @@
1
- import { BaseComponent } from '../base-component/base-component.component';
2
- import { SimpleChanges } from '@angular/core';
1
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
2
  import * as i0 from "@angular/core";
4
- export declare class InputEmailComponent extends BaseComponent {
5
- label: string;
6
- displayValue: any;
7
- hasError: boolean;
8
- error: string;
3
+ export declare class InputEmailComponent<Type> extends ControlValueAccessorDirective<Type> {
9
4
  tooltip: string;
10
5
  floatLabel: any;
11
6
  className: string;
12
- showLabel: boolean;
13
7
  matPrefix: boolean;
14
8
  iconPrefixName: string;
15
- matSuffix: boolean;
16
9
  iconSuffixName: string;
17
10
  numberSuffixName: string;
18
- optional: boolean;
19
- showArrows: boolean;
20
- decimals: number;
21
- ngOnInit(): void;
22
- ngAfterViewChecked(): void;
23
- ngOnChanges(changes: SimpleChanges): void;
24
- onValueChange(data: any): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<InputEmailComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent, "app-input-email", never, { "label": { "alias": "label"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "showArrows": { "alias": "showArrows"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, true, never>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputEmailComponent<any>, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent<any>, "app-input-email", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; }, {}, never, never, true, never>;
27
13
  }
@@ -1,27 +1,13 @@
1
- import { BaseComponent } from '../base-component/base-component.component';
2
- import { SimpleChanges } from '@angular/core';
1
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
2
  import * as i0 from "@angular/core";
4
- export declare class InputMaskComponent extends BaseComponent {
5
- label: string;
6
- displayValue: any;
7
- hasError: boolean;
8
- error: string;
3
+ export declare class InputMaskComponent<Type> extends ControlValueAccessorDirective<Type> {
9
4
  tooltip: string;
10
5
  floatLabel: any;
11
6
  className: string;
12
- showLabel: boolean;
13
7
  matPrefix: boolean;
14
8
  iconPrefixName: string;
15
- matSuffix: boolean;
16
9
  iconSuffixName: string;
17
10
  numberSuffixName: string;
18
- optional: boolean;
19
- showArrows: boolean;
20
- decimals: number;
21
- ngOnInit(): void;
22
- ngAfterViewChecked(): void;
23
- ngOnChanges(changes: SimpleChanges): void;
24
- onValueChange(data: any): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<InputMaskComponent, "app-input-mask", never, { "label": { "alias": "label"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "showArrows": { "alias": "showArrows"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; }, {}, never, never, true, never>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskComponent<any>, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputMaskComponent<any>, "app-input-mask", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; }, {}, never, never, true, never>;
27
13
  }
@@ -1,30 +1,15 @@
1
- import { BaseComponent } from '../base-component/base-component.component';
2
- import { EventEmitter, SimpleChanges } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
3
  import * as i0 from "@angular/core";
4
- export declare class InputNumberComponent extends BaseComponent {
5
- label: string;
6
- displayValue: any;
7
- hasError: boolean;
8
- error: string;
4
+ export declare class InputNumberComponent<Type> extends ControlValueAccessorDirective<Type> {
9
5
  tooltip: string;
10
6
  floatLabel: any;
11
7
  className: string;
12
- showLabel: boolean;
13
- matPrefix: boolean;
14
8
  iconPrefixName: string;
15
- matSuffix: boolean;
16
9
  iconSuffixName: string;
17
10
  numberSuffixName: string;
18
- optional: boolean;
19
- showArrows: boolean;
20
- decimals: number;
21
11
  allowedPattern: string;
22
12
  emitedChangedValue: EventEmitter<any>;
23
- ngOnInit(): void;
24
- ngAfterViewChecked(): void;
25
- ngOnChanges(changes: SimpleChanges): void;
26
- onValueChange(data: any): void;
27
- onValueChangeEvent(data: any): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<InputNumberComponent, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<InputNumberComponent, "app-input-number", never, { "label": { "alias": "label"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; "error": { "alias": "error"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; "optional": { "alias": "optional"; "required": false; }; "showArrows": { "alias": "showArrows"; "required": false; }; "decimals": { "alias": "decimals"; "required": false; }; "allowedPattern": { "alias": "allowedPattern"; "required": false; }; }, { "emitedChangedValue": "emitedChangedValue"; }, never, never, true, never>;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputNumberComponent<any>, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputNumberComponent<any>, "app-input-number", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "numberSuffixName": { "alias": "numberSuffixName"; "required": false; }; "allowedPattern": { "alias": "allowedPattern"; "required": false; }; }, { "emitedChangedValue": "emitedChangedValue"; }, never, never, true, never>;
30
15
  }
@@ -1,23 +1,15 @@
1
1
  import { FormControl } from '@angular/forms';
2
2
  import { EventEmitter } from '@angular/core';
3
- import { CoreI18nService } from '../../../../services';
3
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
4
4
  import * as i0 from "@angular/core";
5
- export declare class InputTelephoneComponent {
6
- i18n: CoreI18nService;
7
- label: string;
8
- value: string;
5
+ export declare class InputTelephoneComponent<Type> extends ControlValueAccessorDirective<Type> {
9
6
  tooltip: string;
10
7
  floatLabel: any;
11
8
  className: string;
12
- placeholder: string;
13
9
  showLabel: boolean;
14
- isReadOnly: boolean;
15
10
  matPrefix: boolean;
16
11
  iconPrefixName: string;
17
- matSuffix: boolean;
18
12
  iconSuffixName: string;
19
- required: boolean;
20
- disabled: boolean;
21
13
  field: any;
22
14
  name: string;
23
15
  controller: FormControl;
@@ -25,21 +17,18 @@ export declare class InputTelephoneComponent {
25
17
  checkPhoneError: EventEmitter<boolean>;
26
18
  phoneValue: EventEmitter<string>;
27
19
  totalNumber: EventEmitter<string>;
28
- maxLength: any;
29
- minLength: any;
30
20
  countryCode: string;
31
21
  showEdit: boolean;
32
22
  inputValue: EventEmitter<any>;
33
23
  emitedValue: EventEmitter<any>;
34
24
  telhasError: boolean;
35
25
  emitedError: EventEmitter<any>;
36
- constructor(i18n: CoreI18nService);
37
26
  onCountryChange(event: any): void;
38
27
  hasError(event: boolean): void;
39
28
  getNumber(event: any): void;
40
29
  telInputObject($event: any): void;
41
30
  editClicked(): void;
42
31
  onValueChange(data: any): void;
43
- static ɵfac: i0.ɵɵFactoryDeclaration<InputTelephoneComponent, never>;
44
- static ɵcmp: i0.ɵɵComponentDeclaration<InputTelephoneComponent, "app-input-telephone", never, { "label": { "alias": "label"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "matSuffix": { "alias": "matSuffix"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "field": { "alias": "field"; "required": false; }; "name": { "alias": "name"; "required": false; }; "controller": { "alias": "controller"; "required": false; }; "error": { "alias": "error"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "minLength": { "alias": "minLength"; "required": false; }; "showEdit": { "alias": "showEdit"; "required": false; }; }, { "checkPhoneError": "checkPhoneError"; "phoneValue": "phoneValue"; "totalNumber": "totalNumber"; "inputValue": "inputValue"; "emitedValue": "emitedValue"; "emitedError": "emitedError"; }, never, never, true, never>;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputTelephoneComponent<any>, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputTelephoneComponent<any>, "app-input-telephone", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "matPrefix": { "alias": "matPrefix"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "field": { "alias": "field"; "required": false; }; "name": { "alias": "name"; "required": false; }; "controller": { "alias": "controller"; "required": false; }; "error": { "alias": "error"; "required": false; }; "showEdit": { "alias": "showEdit"; "required": false; }; }, { "checkPhoneError": "checkPhoneError"; "phoneValue": "phoneValue"; "totalNumber": "totalNumber"; "inputValue": "inputValue"; "emitedValue": "emitedValue"; "emitedError": "emitedError"; }, never, never, true, never>;
45
34
  }
@@ -1,20 +1,11 @@
1
- import { OnChanges, SimpleChanges } from '@angular/core';
2
- import { BaseComponent } from '../base-component/base-component.component';
1
+ import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
2
  import * as i0 from "@angular/core";
4
- export declare class TextareaComponent extends BaseComponent implements OnChanges {
5
- label: string;
6
- tooltip: string;
3
+ export declare class TextareaComponent<Type> extends ControlValueAccessorDirective<Type> {
7
4
  className: string;
8
5
  preventSpecailChar: boolean;
9
- textAreaFocus: boolean;
10
- ngOnChanges(changes: SimpleChanges): void;
11
- ngOnInit(): void;
12
6
  focusInFunction(): void;
13
7
  focusOutFunction(): void;
14
- validateTextAreaBorder(): {
15
- "field-border-error": boolean;
16
- };
17
- onValueChange(event: any): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent, "app-textarea", never, { "label": { "alias": "label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "className": { "alias": "className"; "required": false; }; "preventSpecailChar": { "alias": "preventSpecailChar"; "required": false; }; }, {}, never, never, true, never>;
8
+ validateTextAreaBorder(): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent<any>, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent<any>, "app-textarea", never, { "className": { "alias": "className"; "required": false; }; "preventSpecailChar": { "alias": "preventSpecailChar"; "required": false; }; }, {}, never, never, true, never>;
20
11
  }
@@ -4,7 +4,6 @@ import * as i0 from "@angular/core";
4
4
  export declare class ValidationErrorsComponent<Type> extends ControlValueAccessorDirective<Type> {
5
5
  errors: {};
6
6
  customErrorMessages: {};
7
- label: string;
8
7
  errorMessages: {
9
8
  required: string;
10
9
  maxlength: string;
@@ -12,5 +11,5 @@ export declare class ValidationErrorsComponent<Type> extends ControlValueAccesso
12
11
  };
13
12
  ngOnChanges(changes: SimpleChanges): void;
14
13
  static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsComponent<any>, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<ValidationErrorsComponent<any>, "app-validation-errors", never, { "errors": { "alias": "errors"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<ValidationErrorsComponent<any>, "app-validation-errors", never, { "errors": { "alias": "errors"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; }, {}, never, never, true, never>;
16
15
  }
@@ -1,7 +1,7 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { Form, Section } from "../../interfaces";
3
3
  import { ActionStateService, CoreI18nService } from "../../services";
4
- import { FormBuilder, FormControl, FormGroup } from "@angular/forms";
4
+ import { FormBuilder, FormGroup } from "@angular/forms";
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class RequestDetailsSectionComponent implements OnInit {
7
7
  i18n: CoreI18nService;
@@ -12,15 +12,13 @@ export declare class RequestDetailsSectionComponent implements OnInit {
12
12
  form: Form;
13
13
  lov: any;
14
14
  className: string;
15
- fieldsForm: FormGroup;
16
- numbers: number[];
17
- formGroup: FormGroup<{
18
- name: FormControl<string>;
19
- countries: FormControl<string>;
20
- }>;
15
+ currentSectionId: string;
16
+ lastSectionId: string;
17
+ formGroup: FormGroup;
21
18
  constructor(i18n: CoreI18nService, fb: FormBuilder, actionStateService: ActionStateService);
22
19
  ngOnInit(): void;
23
20
  createForm(): void;
21
+ formValue(form: any): void;
24
22
  checkValidity(action: string): boolean;
25
23
  customCallSubmit(action: string): void;
26
24
  resetForm(): void;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "bpm-core",
3
- "version": "0.0.27",
3
+ "version": "0.0.28",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",
7
- "@angular/material": "^18.2.0"
7
+ "@angular/material": "^18.2.0",
8
+ "moment": "^2.29.4"
8
9
  },
9
10
  "dependencies": {
10
11
  "tslib": "^2.3.0"