bpm-core 0.0.69 → 0.0.71

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 (44) hide show
  1. package/esm2022/lib/app/app.component.mjs +7 -5
  2. package/esm2022/lib/components/app-component-sections/form-section/form-section.component.mjs +3 -3
  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 +5 -5
  5. package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +8 -1
  6. package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +11 -2
  7. package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +10 -8
  8. package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +17 -5
  9. package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +15 -3
  10. package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +19 -7
  11. package/esm2022/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.mjs +14 -5
  12. package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +14 -2
  13. package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +14 -2
  14. package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +14 -2
  15. package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +14 -2
  16. package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +12 -3
  17. package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +14 -2
  18. package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +12 -2
  19. package/esm2022/lib/components/shared-components/form-field/select/select.component.mjs +2 -2
  20. package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +14 -2
  21. package/esm2022/lib/components/shared-components/form-field/toggle-button/toggle-button.component.mjs +14 -2
  22. package/esm2022/lib/services/action.service.ts.mjs +6 -2
  23. package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +23 -24
  24. package/fesm2022/bpm-core.mjs +216 -58
  25. package/fesm2022/bpm-core.mjs.map +1 -1
  26. package/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.d.ts +2 -2
  27. package/lib/components/shared-components/form-field/checkbox/checkbox.component.d.ts +2 -1
  28. package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +3 -2
  29. package/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.d.ts +3 -1
  30. package/lib/components/shared-components/form-field/date-picker/date-picker.component.d.ts +3 -1
  31. package/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.d.ts +3 -1
  32. package/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.d.ts +1 -0
  33. package/lib/components/shared-components/form-field/input/input.component.d.ts +3 -1
  34. package/lib/components/shared-components/form-field/input-currency/input-currency.component.d.ts +3 -0
  35. package/lib/components/shared-components/form-field/input-email/input-email.component.d.ts +3 -0
  36. package/lib/components/shared-components/form-field/input-number/input-number.component.d.ts +3 -1
  37. package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +2 -1
  38. package/lib/components/shared-components/form-field/radio/radio.component.d.ts +3 -0
  39. package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +1 -0
  40. package/lib/components/shared-components/form-field/shared-imports.d.ts +3 -3
  41. package/lib/components/shared-components/form-field/textarea/textarea.component.d.ts +3 -0
  42. package/lib/components/shared-components/form-field/toggle-button/toggle-button.component.d.ts +3 -1
  43. package/lib/services/action.service.ts.d.ts +3 -0
  44. package/package.json +1 -1
@@ -5,7 +5,7 @@ import { Section } from '../../../../interfaces';
5
5
  import { FormBuilder, FormGroup } from '@angular/forms';
6
6
  import { ToastrService } from 'ngx-toastr';
7
7
  import { DomSanitizer } from '@angular/platform-browser';
8
- import { CoreI18nService, CoreService } from "../../../../services";
8
+ import { ActionStateService, CoreI18nService, CoreService } from "../../../../services";
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class AttachmentSectionDataComponent<Type> extends ControlValueAccessorDirective<Type> {
11
11
  dialogRef: MatDialogRef<any>;
@@ -18,7 +18,7 @@ export declare class AttachmentSectionDataComponent<Type> extends ControlValueAc
18
18
  section: Section;
19
19
  formGroup: FormGroup;
20
20
  destroyRef: DestroyRef;
21
- constructor(injector: Injector, i18n: CoreI18nService, toasterService: ToastrService, coreService: CoreService, sanitizer: DomSanitizer, fb: FormBuilder, dialogRef: MatDialogRef<any>, dialogData: any);
21
+ constructor(injector: Injector, i18n: CoreI18nService, toasterService: ToastrService, coreService: CoreService, sanitizer: DomSanitizer, fb: FormBuilder, actionStateService: ActionStateService, dialogRef: MatDialogRef<any>, dialogData: any);
22
22
  ngOnInit(): void;
23
23
  createForm(): void;
24
24
  close(): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { DestroyRef, EventEmitter, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
3
  import { MatDialog } from '@angular/material/dialog';
4
4
  import * as i0 from "@angular/core";
@@ -10,6 +10,7 @@ export declare class CheckBoxComponent<Type> extends ControlValueAccessorDirecti
10
10
  link: string;
11
11
  termsBody: any;
12
12
  downloadCheckBox: EventEmitter<any>;
13
+ destroyRef: DestroyRef;
13
14
  dialog: MatDialog;
14
15
  ngOnInit(): void;
15
16
  openUrl(): void;
@@ -1,6 +1,6 @@
1
1
  import { Injector, OnInit } from '@angular/core';
2
2
  import { ControlValueAccessor, FormBuilder, FormControl, Validators } from '@angular/forms';
3
- import { CoreI18nService, CoreService } from '../../../services';
3
+ import { ActionStateService, CoreI18nService, CoreService } from '../../../services';
4
4
  import { DomSanitizer } from "@angular/platform-browser";
5
5
  import { ToastrService } from "ngx-toastr";
6
6
  import * as i0 from "@angular/core";
@@ -11,6 +11,7 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
11
11
  coreService: CoreService;
12
12
  sanitizer: DomSanitizer;
13
13
  fb: FormBuilder;
14
+ actionStateService: ActionStateService;
14
15
  tooltip: any;
15
16
  isReadOnly: boolean;
16
17
  hint: string;
@@ -47,7 +48,7 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
47
48
  required: boolean;
48
49
  maxLength: any;
49
50
  isDisabled: boolean;
50
- constructor(injector: Injector, i18n: CoreI18nService, toasterService: ToastrService, coreService: CoreService, sanitizer: DomSanitizer, fb: FormBuilder);
51
+ constructor(injector: Injector, i18n: CoreI18nService, toasterService: ToastrService, coreService: CoreService, sanitizer: DomSanitizer, fb: FormBuilder, actionStateService: ActionStateService);
51
52
  ngOnInit(): void;
52
53
  setFormControl(): void;
53
54
  setFormValidators(): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter, SimpleChanges, OnInit } from '@angular/core';
1
+ import { EventEmitter, SimpleChanges, OnInit, DestroyRef } 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 CustomSearchableComponent<Type> extends ControlValueAccessorDirective<Type> implements OnInit {
@@ -10,6 +10,8 @@ export declare class CustomSearchableComponent<Type> extends ControlValueAccesso
10
10
  key: string;
11
11
  floatLabel: any;
12
12
  className: string;
13
+ destroyRef: DestroyRef;
14
+ ngOnInit(): void;
13
15
  noData: boolean;
14
16
  filteredOptions: any;
15
17
  clearInput(): void;
@@ -1,5 +1,5 @@
1
1
  import { FormControl } from '@angular/forms';
2
- import { AfterViewInit, EventEmitter, SimpleChanges } from '@angular/core';
2
+ import { AfterViewInit, DestroyRef, EventEmitter, SimpleChanges } from '@angular/core';
3
3
  import { CustomDateFormat } from './date-format';
4
4
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
5
5
  import { MatDatepicker } from '@angular/material/datepicker';
@@ -13,9 +13,11 @@ export declare class DatePickerComponent<Type> extends ControlValueAccessorDirec
13
13
  showIslamic: boolean;
14
14
  error: string;
15
15
  dateFormat: CustomDateFormat;
16
+ destroyRef: DestroyRef;
16
17
  set format(_format: string);
17
18
  datepicker: MatDatepicker<any>;
18
19
  floatLabel: any;
20
+ ngOnInit(): void;
19
21
  ngAfterViewInit(): void;
20
22
  ngOnChanges(changes: SimpleChanges): void;
21
23
  setDateFormControl(): void;
@@ -1,4 +1,4 @@
1
- import { SimpleChanges } from '@angular/core';
1
+ import { DestroyRef, SimpleChanges } from '@angular/core';
2
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
3
3
  import { MatDatepicker } from '@angular/material/datepicker';
4
4
  import { CustomDateFormat } from '../date-picker/date-format';
@@ -11,7 +11,9 @@ export declare class DateRangePickerComponent<Type> extends ControlValueAccessor
11
11
  calendarType: string;
12
12
  startInputValue: string;
13
13
  endInputValue: string;
14
+ destroyRef: DestroyRef;
14
15
  dateRange: any;
16
+ ngOnInit(): void;
15
17
  ngAfterViewInit(): void;
16
18
  ngOnChanges(changes: SimpleChanges): void;
17
19
  setDateFormControl(): void;
@@ -95,6 +95,7 @@ export declare class DocsUploaderComponent<Type> extends ControlValueAccessorDir
95
95
  uploading: boolean;
96
96
  lengthError: boolean;
97
97
  ngOnChanges(changes: SimpleChanges): void;
98
+ ngOnInit(): void;
98
99
  getFileType(attachment: any): string;
99
100
  private checkFileType;
100
101
  attachmentAction(type: any, index: number, field: any): void;
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, DestroyRef } 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> {
@@ -8,6 +8,8 @@ export declare class InputComponent<Type> extends ControlValueAccessorDirective<
8
8
  iconSuffixName: string;
9
9
  emitedChangedValue1: EventEmitter<any>;
10
10
  customErrorMessages: any;
11
+ destroyRef: DestroyRef;
12
+ ngOnInit(): void;
11
13
  static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent<any>, never>;
12
14
  static ɵcmp: i0.ɵɵComponentDeclaration<InputComponent<any>, "app-input", never, { "floatLabel": { "alias": "floatLabel"; "required": false; }; "className": { "alias": "className"; "required": false; }; "iconPrefixName": { "alias": "iconPrefixName"; "required": false; }; "iconSuffixName": { "alias": "iconSuffixName"; "required": false; }; "emitedChangedValue1": { "alias": "emitedChangedValue1"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; }, {}, never, never, true, never>;
13
15
  }
@@ -1,3 +1,4 @@
1
+ import { DestroyRef } from '@angular/core';
1
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
2
3
  import { MycurrencyPipe } from "../../../../pipes";
3
4
  import * as i0 from "@angular/core";
@@ -7,7 +8,9 @@ export declare class InputCurrencyComponent<Type> extends ControlValueAccessorDi
7
8
  iconPrefixName: string;
8
9
  iconSuffixName: string;
9
10
  numberSuffixName: string;
11
+ destroyRef: DestroyRef;
10
12
  mycurrencyPipe: MycurrencyPipe;
13
+ ngOnInit(): void;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<InputCurrencyComponent<any>, never>;
12
15
  static ɵcmp: i0.ɵɵComponentDeclaration<InputCurrencyComponent<any>, "app-input-currency", never, { "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>;
13
16
  }
@@ -1,3 +1,4 @@
1
+ import { DestroyRef } from '@angular/core';
1
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class InputEmailComponent<Type> extends ControlValueAccessorDirective<Type> {
@@ -7,7 +8,9 @@ export declare class InputEmailComponent<Type> extends ControlValueAccessorDirec
7
8
  iconPrefixName: string;
8
9
  iconSuffixName: string;
9
10
  numberSuffixName: string;
11
+ destroyRef: DestroyRef;
10
12
  displayErrors(data: any): void;
13
+ ngOnInit(): void;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<InputEmailComponent<any>, never>;
12
15
  static ɵcmp: i0.ɵɵComponentDeclaration<InputEmailComponent<any>, "app-input-email", never, { "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>;
13
16
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { DestroyRef, 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 InputNumberComponent<Type> extends ControlValueAccessorDirective<Type> {
@@ -8,7 +8,9 @@ export declare class InputNumberComponent<Type> extends ControlValueAccessorDire
8
8
  iconSuffixName: string;
9
9
  numberSuffixName: string;
10
10
  allowedPattern: string;
11
+ destroyRef: DestroyRef;
11
12
  emitedChangedValue: EventEmitter<any>;
13
+ ngOnInit(): void;
12
14
  static ɵfac: i0.ɵɵFactoryDeclaration<InputNumberComponent<any>, never>;
13
15
  static ɵcmp: i0.ɵɵComponentDeclaration<InputNumberComponent<any>, "app-input-number", never, { "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>;
14
16
  }
@@ -1,11 +1,12 @@
1
1
  import { CountryISO, SearchCountryField } from 'ngx-intl-tel-input-gg';
2
- import { OnInit } from '@angular/core';
2
+ import { OnInit, DestroyRef } from '@angular/core';
3
3
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class InputTelephoneComponent<Type> extends ControlValueAccessorDirective<Type> implements OnInit {
6
6
  floatLabel: any;
7
7
  className: string;
8
8
  controlValue: string;
9
+ destroyRef: DestroyRef;
9
10
  errorMessages: {
10
11
  required: any;
11
12
  validatePhoneNumber: any;
@@ -1,7 +1,10 @@
1
+ import { DestroyRef } from '@angular/core';
1
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class RadioComponent<Type> extends ControlValueAccessorDirective<Type> {
4
5
  options: any;
6
+ destroyRef: DestroyRef;
7
+ ngOnInit(): void;
5
8
  static ɵfac: i0.ɵɵFactoryDeclaration<RadioComponent<any>, never>;
6
9
  static ɵcmp: i0.ɵɵComponentDeclaration<RadioComponent<any>, "app-radio", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
7
10
  }
@@ -19,6 +19,7 @@ export declare class SearchEmployeeComponent<Type> extends ControlValueAccessorD
19
19
  userAlreadyExist: boolean;
20
20
  emitedDeletedValue: EventEmitter<any>;
21
21
  destroyRef: DestroyRef;
22
+ ngOnInit(): void;
22
23
  deleteRow(ind: number, rowData: any): void;
23
24
  onLoadOptions(event: any): void;
24
25
  includeData(option: any, filterValue: string): any;
@@ -9,7 +9,7 @@ import { EnOnlyDirective } from "../../../directives/en.directive";
9
9
  import { ArOnlyDirective } from "../../../directives/ar.directive";
10
10
  import { NgClass } from "@angular/common";
11
11
  import { TranslatePipe } from "../../../pipes/translate.pipe";
12
- export declare const MatDatePickerImports: (typeof MatDatepickerInput | typeof MatDatepickerToggle | typeof MatDatepickerModule)[];
13
- export declare const MatFormImports: (typeof MatInput | typeof MatFormFieldModule | typeof MatFormField)[];
14
- export declare const Shareds: (typeof NgClass | typeof ReactiveFormsModule | typeof TranslatePipe | typeof InfoItemComponent | typeof FormLabelComponent | typeof ValidationErrorsComponent)[];
12
+ export declare const MatDatePickerImports: (typeof MatDatepickerToggle | typeof MatDatepickerInput | typeof MatDatepickerModule)[];
13
+ export declare const MatFormImports: (typeof MatFormFieldModule | typeof MatFormField | typeof MatInput)[];
14
+ export declare const Shareds: (typeof FormLabelComponent | typeof ValidationErrorsComponent | typeof InfoItemComponent | typeof ReactiveFormsModule | typeof NgClass | typeof TranslatePipe)[];
15
15
  export declare const TextLanguageDirectives: (typeof EnOnlyDirective | typeof ArOnlyDirective)[];
@@ -1,8 +1,11 @@
1
+ import { DestroyRef } from '@angular/core';
1
2
  import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
2
3
  import * as i0 from "@angular/core";
3
4
  export declare class TextareaComponent<Type> extends ControlValueAccessorDirective<Type> {
4
5
  className: string;
5
6
  preventSpecailChar: boolean;
7
+ destroyRef: DestroyRef;
8
+ ngOnInit(): void;
6
9
  static ɵfac: i0.ɵɵFactoryDeclaration<TextareaComponent<any>, never>;
7
10
  static ɵcmp: i0.ɵɵComponentDeclaration<TextareaComponent<any>, "app-textarea", never, { "className": { "alias": "className"; "required": false; }; "preventSpecailChar": { "alias": "preventSpecailChar"; "required": false; }; }, {}, never, never, true, never>;
8
11
  }
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, DestroyRef } 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 ToggleButtonComponent<Type> extends ControlValueAccessorDirective<Type> {
@@ -12,6 +12,8 @@ export declare class ToggleButtonComponent<Type> extends ControlValueAccessorDir
12
12
  options: any[];
13
13
  displayedLabel: string;
14
14
  key: string;
15
+ destroyRef: DestroyRef;
16
+ ngOnInit(): void;
15
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleButtonComponent<any>, never>;
16
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ToggleButtonComponent<any>, "app-toggle-button", never, { "className": { "alias": "className"; "required": false; }; "data": { "alias": "data"; "required": false; }; "error": { "alias": "error"; "required": false; }; "optionAr": { "alias": "optionAr"; "required": false; }; "optionEn": { "alias": "optionEn"; "required": false; }; "hasHint": { "alias": "hasHint"; "required": false; }; "options": { "alias": "options"; "required": false; }; "displayedLabel": { "alias": "displayedLabel"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, { "onChange": "onChange"; }, never, never, true, never>;
17
19
  }
@@ -1,10 +1,13 @@
1
+ import { Subject } from 'rxjs';
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class ActionStateService {
3
4
  private actionStatesSubject;
4
5
  actionStates$: import("rxjs").Observable<{
5
6
  [action: string]: boolean;
6
7
  }>;
8
+ resetAction$: Subject<void>;
7
9
  setActionValid(action: string, isValid: boolean): void;
10
+ resetForm(): Subject<void>;
8
11
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionStateService, never>;
9
12
  static ɵprov: i0.ɵɵInjectableDeclaration<ActionStateService>;
10
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpm-core",
3
- "version": "0.0.69",
3
+ "version": "0.0.71",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.0",
6
6
  "@angular/core": "^18.2.0",