bpm-core 0.0.107 → 0.0.109
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/fesm2022/bpm-core.mjs +145 -105
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +3 -1
- package/lib/components/shared-components/form-field/index.d.ts +1 -0
- package/lib/components/shared-components/form-field/input/input.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts +0 -4
- package/lib/components/shared-components/form-field/shared-imports.d.ts +1 -1
- package/lib/components/shared-components/form-field/validation-errors/validation-error-messages.d.ts +14 -0
- package/lib/components/shared-components/form-field/validation-errors/validation-errors.component.d.ts +8 -11
- package/lib/i18n/ar.d.ts +0 -4
- package/lib/i18n/en.d.ts +0 -4
- package/package.json +1 -1
|
@@ -3,6 +3,7 @@ import { ControlValueAccessor, FormBuilder, FormControl, Validators } from '@ang
|
|
|
3
3
|
import { ActionStateService, CoreI18nService, CoreService } from '../../../services';
|
|
4
4
|
import { DomSanitizer } from "@angular/platform-browser";
|
|
5
5
|
import { ToastrService } from "ngx-toastr";
|
|
6
|
+
import { ErrorMsg } from './validation-errors/validation-error-messages';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ControlValueAccessorDirective<Type> implements ControlValueAccessor, OnInit {
|
|
8
9
|
private readonly injector;
|
|
@@ -29,6 +30,7 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
|
|
|
29
30
|
name: string;
|
|
30
31
|
randomID: string;
|
|
31
32
|
multiple: boolean;
|
|
33
|
+
customErrorMessages: Record<string, ErrorMsg>;
|
|
32
34
|
searchControl: FormControl<any>;
|
|
33
35
|
toggleButtonControl: FormControl<any>;
|
|
34
36
|
employeeSearchControl: FormControl<any>;
|
|
@@ -59,5 +61,5 @@ export declare class ControlValueAccessorDirective<Type> implements ControlValue
|
|
|
59
61
|
registerOnTouched(fn: () => Type): void;
|
|
60
62
|
setDisabledState?(isDisabled: boolean): void;
|
|
61
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<ControlValueAccessorDirective<any>, never>;
|
|
62
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "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; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "name": { "alias": "name"; "required": false; }; "randomID": { "alias": "randomID"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mandatory": { "alias": "mandatory"; "required": false; }; }, {}, never, never, true, never>;
|
|
64
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueAccessorDirective<any>, "[appControlValueAccessor]", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "isReadOnly": { "alias": "isReadOnly"; "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; }; "hasTooltip": { "alias": "hasTooltip"; "required": false; }; "name": { "alias": "name"; "required": false; }; "randomID": { "alias": "randomID"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "customMaxDate": { "alias": "customMaxDate"; "required": false; }; "customMinDate": { "alias": "customMinDate"; "required": false; }; "required": { "alias": "required"; "required": false; }; "mandatory": { "alias": "mandatory"; "required": false; }; }, {}, never, never, true, never>;
|
|
63
65
|
}
|
|
@@ -23,3 +23,4 @@ export * from './attachment-section/attachment-section.component';
|
|
|
23
23
|
export * from './add-attachment-section/add-attachment-section.component';
|
|
24
24
|
export * from './radio/radio.component';
|
|
25
25
|
export * from './doc-uploader/docs-uploader.component';
|
|
26
|
+
export type { ErrorMsg } from './validation-errors/validation-error-messages';
|
|
@@ -7,9 +7,8 @@ export declare class InputComponent<Type> extends ControlValueAccessorDirective<
|
|
|
7
7
|
iconPrefixName: string;
|
|
8
8
|
iconSuffixName: string;
|
|
9
9
|
emitedChangedValue1: EventEmitter<any>;
|
|
10
|
-
customErrorMessages: any;
|
|
11
10
|
destroyRef: DestroyRef;
|
|
12
11
|
ngOnInit(): void;
|
|
13
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<InputComponent<any>, never>;
|
|
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; };
|
|
13
|
+
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; }; }, {}, never, never, true, never>;
|
|
15
14
|
}
|
package/lib/components/shared-components/form-field/input-telephone/input-telephone.component.d.ts
CHANGED
|
@@ -7,10 +7,6 @@ export declare class InputTelephoneComponent<Type> extends ControlValueAccessorD
|
|
|
7
7
|
className: string;
|
|
8
8
|
controlValue: string;
|
|
9
9
|
destroyRef: DestroyRef;
|
|
10
|
-
errorMessages: {
|
|
11
|
-
required: any;
|
|
12
|
-
validatePhoneNumber: any;
|
|
13
|
-
};
|
|
14
10
|
ngOnInit(): void;
|
|
15
11
|
CountryISO: typeof CountryISO;
|
|
16
12
|
SearchCountryField: typeof SearchCountryField;
|
|
@@ -11,5 +11,5 @@ 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
13
|
export declare const MatFormImports: (typeof MatInput | typeof MatFormFieldModule | typeof MatFormField)[];
|
|
14
|
-
export declare const Shareds: (typeof NgClass | typeof
|
|
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)[];
|
package/lib/components/shared-components/form-field/validation-errors/validation-error-messages.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ValidationErrors } from "@angular/forms";
|
|
2
|
+
type TextInEnAr = {
|
|
3
|
+
ar: string;
|
|
4
|
+
en: string;
|
|
5
|
+
};
|
|
6
|
+
export type ErrorMsg = TextInEnAr | ((errors: ValidationErrors) => TextInEnAr);
|
|
7
|
+
export declare class ValidationErrorMessages {
|
|
8
|
+
private _msg;
|
|
9
|
+
get msg(): string;
|
|
10
|
+
set msg(msg: string);
|
|
11
|
+
constructor(errors: ValidationErrors, msgs: Record<string, ErrorMsg>);
|
|
12
|
+
update(errors: ValidationErrors, msgs: Record<string, ErrorMsg>): void;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import { SimpleChanges } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ErrorMsg, ValidationErrorMessages } from './validation-error-messages';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ValidationErrorsComponent
|
|
4
|
+
export declare class ValidationErrorsComponent {
|
|
5
|
+
display: string;
|
|
5
6
|
errors: {};
|
|
6
|
-
customErrorMessages:
|
|
7
|
-
|
|
8
|
-
required: any;
|
|
9
|
-
maxlength: any;
|
|
10
|
-
minlength: any;
|
|
11
|
-
validatePhoneNumber: any;
|
|
12
|
-
};
|
|
7
|
+
customErrorMessages: Record<string, ErrorMsg>;
|
|
8
|
+
validationErrorMsgs: ValidationErrorMessages;
|
|
13
9
|
ngOnChanges(changes: SimpleChanges): void;
|
|
14
|
-
|
|
15
|
-
static
|
|
10
|
+
private getDefaultErrorMsgs;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ValidationErrorsComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ValidationErrorsComponent, "app-validation-errors,[app-validation-errors]", never, { "errors": { "alias": "errors"; "required": false; }; "customErrorMessages": { "alias": "customErrorMessages"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
13
|
}
|
package/lib/i18n/ar.d.ts
CHANGED
|
@@ -176,10 +176,6 @@ declare const _default: {
|
|
|
176
176
|
status: string;
|
|
177
177
|
downloadAll: string;
|
|
178
178
|
itemsPerPage: string;
|
|
179
|
-
thisFieldIsRequired: string;
|
|
180
|
-
thisFieldMaxLength: string;
|
|
181
|
-
thisFieldMinLength: string;
|
|
182
|
-
pleaseEnterValidNumber: string;
|
|
183
179
|
startDate: string;
|
|
184
180
|
endDate: string;
|
|
185
181
|
textArea: string;
|
package/lib/i18n/en.d.ts
CHANGED
|
@@ -180,10 +180,6 @@ declare const _default: {
|
|
|
180
180
|
status: string;
|
|
181
181
|
downloadAll: string;
|
|
182
182
|
itemsPerPage: string;
|
|
183
|
-
thisFieldIsRequired: string;
|
|
184
|
-
thisFieldMaxLength: string;
|
|
185
|
-
thisFieldMinLength: string;
|
|
186
|
-
pleaseEnterValidNumber: string;
|
|
187
183
|
startDate: string;
|
|
188
184
|
endDate: string;
|
|
189
185
|
textArea: string;
|