bpm-core 0.0.127 → 0.0.128

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.
@@ -36,7 +36,7 @@ export declare class ActionButtonsComponent implements AfterViewInit {
36
36
  onSubmit(action: string): void;
37
37
  submitForm(action: string, section: Section): void;
38
38
  success(response: any): void;
39
- buttonShape(item: any): "outline" | "";
39
+ buttonShape(item: any): "" | "outline";
40
40
  buttonColor(item: any): "" | "red";
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<ActionButtonsComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<ActionButtonsComponent, "lib-action-buttons", never, { "lovOptions": { "alias": "lovOptions"; "required": false; }; "lovType": { "alias": "lovType"; "required": false; }; "fieldsForm": { "alias": "fieldsForm"; "required": false; }; "form": { "alias": "form"; "required": false; }; "section": { "alias": "section"; "required": false; }; "sections": { "alias": "sections"; "required": false; }; "showApprovalCycle": { "alias": "showApprovalCycle"; "required": false; }; "customCall": { "alias": "customCall"; "required": false; }; }, { "resetFormEmit": "resetFormEmit"; "customCallEmit": "customCallEmit"; }, never, never, true, never>;
@@ -1,4 +1,4 @@
1
- import { InputFilterFn, InputKeyType } from "./types";
1
+ import { InputFilterFn } from "./types";
2
2
  export declare class InputFilters {
3
3
  /**
4
4
  * A filter that allows only Arabic characters (letters, punctuation) and Arabic-Indic digits (٠–٩),
@@ -6,19 +6,19 @@ export declare class InputFilters {
6
6
  *
7
7
  * @returns `true` if the character should be allowed; otherwise, `false`
8
8
  */
9
- static arabicOnly(char: string, current: string, next: string, keyType: InputKeyType, event: KeyboardEvent | ClipboardEvent | DragEvent): boolean;
9
+ static arabicOnly(char: string, current: string, next: string, event: KeyboardEvent | ClipboardEvent | DragEvent): boolean;
10
10
  /**
11
11
  * A filter that allows only English letters (A–Z, a–z), digits (0–9), common symbols, and space.
12
12
  *
13
13
  * @returns `true` if the character should be allowed; otherwise, `false`
14
14
  */
15
- static englishOnly(char: string, current: string, next: string, keyType: InputKeyType, event: KeyboardEvent | ClipboardEvent | DragEvent): boolean;
15
+ static englishOnly(char: string, current: string, next: string, event: KeyboardEvent | ClipboardEvent | DragEvent): boolean;
16
16
  /**
17
17
  * A filter that allows only digits (0–9).
18
18
  *
19
19
  * @returns `true` if the character is a digit; otherwise, `false`
20
20
  */
21
- static digitsOnly(char: string, current: string, next: string, keyType: InputKeyType, event: KeyboardEvent | ClipboardEvent | DragEvent): boolean;
21
+ static digitsOnly(char: string, current: string, next: string, event: KeyboardEvent | ClipboardEvent | DragEvent): boolean;
22
22
  /**
23
23
  * Creates a new `PatternBuilder` instance for building a custom input filter.
24
24
  *
@@ -1,3 +1,2 @@
1
- export type InputKeyType = 'character' | 'backspace' | 'delete' | 'modifier' | 'non-printable' | 'null';
2
1
  export type InputMapFn = (char: string, currentValue: string, nextValue: string) => string;
3
- export type InputFilterFn = (char: string, currentValue: string, nextValue: string, keyType: InputKeyType, event: KeyboardEvent | ClipboardEvent | DragEvent) => boolean;
2
+ export type InputFilterFn = (char: string, currentValue: string, nextValue: string, event: KeyboardEvent | ClipboardEvent | DragEvent) => boolean;
@@ -65,12 +65,6 @@ export declare class InputComponent<Type> extends ControlValueAccessorDirective<
65
65
  * - The full pasted or dropped string during paste/drop
66
66
  * @param currentValue - The current value of the input before the character or string is applied.
67
67
  * @param nextValue - The simulated next value if the character or string were applied.
68
- * @param keyType - The kind of input interaction:
69
- * - `'character'` for printable characters
70
- * - `'backspace'` or `'delete'` for those keys
71
- * - `'modifier'` for Ctrl/Alt/Meta combinations
72
- * - `'non-printable'` for arrows, tab, escape, etc.
73
- * - `'null'` for paste/drop (non-keyboard text input)
74
68
  * @param event - The originating event triggering the input change. This can be a
75
69
  * `KeyboardEvent` (for typing), `ClipboardEvent` (for paste), or `DragEvent` (for drop).
76
70
  *
@@ -83,8 +77,8 @@ export declare class InputComponent<Type> extends ControlValueAccessorDirective<
83
77
  *
84
78
  * @example
85
79
  * // Custom filter: Allow only letters (no numbers or symbols)
86
- * this.filterFn = (char, current, next, keyType, event) => {
87
- * return keyType !== 'character' || /^[a-zA-Z]+$/.test(char);
80
+ * this.filterFn = (char, current, next, event) => {
81
+ * return /^[a-zA-Z]+$/.test(char);
88
82
  * };
89
83
  */
90
84
  filterFn: InputFilterFn;
@@ -10,6 +10,6 @@ import { ArOnlyDirective } from "../../../directives/ar.directive";
10
10
  import { NgClass } from "@angular/common";
11
11
  import { TranslatePipe } from "../../../pipes/translate.pipe";
12
12
  export declare const MatDatePickerImports: (typeof MatDatepickerInput | typeof MatDatepickerToggle | typeof MatDatepickerModule)[];
13
- export declare const MatFormImports: (typeof MatFormFieldModule | typeof MatFormField | typeof MatInput)[];
14
- export declare const Shareds: (typeof NgClass | typeof ValidationErrorsComponent | typeof ReactiveFormsModule | typeof FormLabelComponent | typeof InfoItemComponent | typeof TranslatePipe)[];
13
+ export declare const MatFormImports: (typeof MatInput | typeof MatFormFieldModule | typeof MatFormField)[];
14
+ export declare const Shareds: (typeof NgClass | typeof ReactiveFormsModule | typeof TranslatePipe | typeof FormLabelComponent | typeof ValidationErrorsComponent | typeof InfoItemComponent)[];
15
15
  export declare const TextLanguageDirectives: (typeof EnOnlyDirective | typeof ArOnlyDirective)[];
@@ -69,7 +69,7 @@ export declare class RequestDetailsSectionComponent implements OnInit {
69
69
  resetForm(): void;
70
70
  pageChanged(event: any): void;
71
71
  mapFn: typeof InputMappers.toLowerCase;
72
- arOnly: import("../../components/shared-components").InputFilterFn;
72
+ filterFn: import("../../components/shared-components").InputFilterFn;
73
73
  static ɵfac: i0.ɵɵFactoryDeclaration<RequestDetailsSectionComponent, never>;
74
74
  static ɵcmp: i0.ɵɵComponentDeclaration<RequestDetailsSectionComponent, "app-request-details-section", never, { "isReadOnly": { "alias": "isReadOnly"; "required": false; }; "section": { "alias": "section"; "required": false; }; "form": { "alias": "form"; "required": false; }; "lov": { "alias": "lov"; "required": false; }; "className": { "alias": "className"; "required": false; }; }, {}, never, never, true, never>;
75
75
  }
package/package.json CHANGED
@@ -1,6 +1,9 @@
1
1
  {
2
2
  "name": "bpm-core",
3
- "version": "0.0.127",
3
+ "version": "0.0.128",
4
+ "bin": {
5
+ "bpm-core": "./cli/index.js"
6
+ },
4
7
  "peerDependencies": {
5
8
  "@angular/common": "^19.0.0",
6
9
  "@angular/core": "^19.0.0",