bpm-core 0.0.53 → 0.0.55
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/app/app.component.mjs +2 -2
- package/esm2022/lib/components/app-component-sections/activities/activities.component.mjs +6 -3
- package/esm2022/lib/components/app-component-sections/approvals/approvals.component.mjs +3 -6
- package/esm2022/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.mjs +69 -56
- package/esm2022/lib/components/app-component-sections/faqs/faqs.component.mjs +1 -1
- package/esm2022/lib/components/app-component-sections/feedback-section/feedback-section.component.mjs +5 -6
- package/esm2022/lib/components/app-component-sections/layout/layout.component.mjs +6 -3
- package/esm2022/lib/components/shared-components/form-field/add-attachment-section/add-attachment-section.component.mjs +2 -2
- package/esm2022/lib/components/shared-components/form-field/attachment-section/attachment-section.component.mjs +6 -4
- package/esm2022/lib/components/shared-components/form-field/checkbox/checkbox.component.mjs +8 -7
- package/esm2022/lib/components/shared-components/form-field/control-value-accessor.directive.mjs +21 -5
- package/esm2022/lib/components/shared-components/form-field/custom-searchable-autocomplete/custom-searchable.component.mjs +14 -18
- package/esm2022/lib/components/shared-components/form-field/date-picker/date-picker.component.mjs +15 -18
- package/esm2022/lib/components/shared-components/form-field/date-range-picker/date-range-picker.component.mjs +12 -13
- package/esm2022/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.mjs +7 -11
- package/esm2022/lib/components/shared-components/form-field/form-label/form-label.component.mjs +9 -9
- package/esm2022/lib/components/shared-components/form-field/input/input.component.mjs +19 -33
- package/esm2022/lib/components/shared-components/form-field/input-currency/input-currency.component.mjs +16 -26
- package/esm2022/lib/components/shared-components/form-field/input-email/input-email.component.mjs +16 -27
- package/esm2022/lib/components/shared-components/form-field/input-mask/input-mask.component.mjs +3 -6
- package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs +16 -24
- package/esm2022/lib/components/shared-components/form-field/input-telephone/input-telephone.component.mjs +11 -12
- package/esm2022/lib/components/shared-components/form-field/radio/radio.component.mjs +9 -11
- package/esm2022/lib/components/shared-components/form-field/search-employee/search-employee.component.mjs +11 -18
- package/esm2022/lib/components/shared-components/form-field/select/select.component.mjs +2 -2
- package/esm2022/lib/components/shared-components/form-field/shared-imports.mjs +19 -1
- package/esm2022/lib/components/shared-components/form-field/textarea/textarea.component.mjs +17 -29
- package/esm2022/lib/components/shared-components/form-field/toggle-button/toggle-button.component.mjs +11 -20
- package/esm2022/lib/i18n/ar.mjs +2 -2
- package/esm2022/lib/i18n/en.mjs +2 -2
- package/esm2022/lib/services/i18n.service.mjs +2 -2
- package/esm2022/lib/testComponent/general-approver-section/general-approver-section.component.mjs +2 -2
- package/esm2022/lib/testComponent/request-details-section/request-details-section.component.mjs +301 -33
- package/fesm2022/bpm-core.mjs +758 -546
- package/fesm2022/bpm-core.mjs.map +1 -1
- package/lib/components/app-component-sections/activities/activities.component.d.ts +2 -0
- package/lib/components/app-component-sections/approvals/approvals.component.d.ts +1 -1
- package/lib/components/app-component-sections/approvals-workflow/approvals-workflow.component.d.ts +19 -5
- package/lib/components/app-component-sections/feedback-section/feedback-section.component.d.ts +1 -1
- package/lib/components/app-component-sections/layout/layout.component.d.ts +2 -1
- package/lib/components/shared-components/action-buttons/action-buttons.component.d.ts +1 -1
- package/lib/components/shared-components/form-field/control-value-accessor.directive.d.ts +2 -1
- package/lib/components/shared-components/form-field/date-picker/date-picker.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/doc-uploader/docs-uploader.component.d.ts +1 -3
- package/lib/components/shared-components/form-field/form-label/form-label.component.d.ts +2 -3
- package/lib/components/shared-components/form-field/input/input.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/input-currency/input-currency.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/input-email/input-email.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/input-mask/input-mask.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/input-number/input-number.component.d.ts +1 -2
- package/lib/components/shared-components/form-field/search-employee/search-employee.component.d.ts +1 -3
- package/lib/components/shared-components/form-field/shared-imports.d.ts +9 -0
- package/lib/components/shared-components/form-field/textarea/textarea.component.d.ts +0 -3
- package/lib/components/shared-components/form-field/toggle-button/toggle-button.component.d.ts +1 -3
- package/lib/i18n/ar.d.ts +1 -1
- package/lib/i18n/en.d.ts +1 -1
- package/lib/testComponent/request-details-section/request-details-section.component.d.ts +40 -0
- package/package.json +2 -2
- package/src/lib/assets/scss/_upgrade.scss +2 -0
- package/src/lib/assets/scss/input-telephone.scss +6 -4
- package/esm2022/lib/environments/environment.local.mjs +0 -27
- package/lib/environments/environment.local.d.ts +0 -26
package/esm2022/lib/components/shared-components/form-field/input-number/input-number.component.mjs
CHANGED
|
@@ -1,21 +1,20 @@
|
|
|
1
1
|
/* eslint-disable @angular-eslint/use-lifecycle-interface */
|
|
2
2
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
3
3
|
/* eslint-disable @angular-eslint/component-selector */
|
|
4
|
-
import { NG_VALUE_ACCESSOR
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
5
|
import { Component, CUSTOM_ELEMENTS_SCHEMA, EventEmitter, forwardRef, Input, Output } from '@angular/core';
|
|
6
|
-
import { MatFormField } from '@angular/material/form-field';
|
|
7
|
-
import { NgClass } from "@angular/common";
|
|
8
|
-
import { InfoItemComponent } from "../info-item/info-item.component";
|
|
9
|
-
import { SatPopoverModule } from "@ncstate/sat-popover";
|
|
10
|
-
import { MatInput } from "@angular/material/input";
|
|
11
6
|
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
12
|
-
import { ValidationErrorsComponent } from '../validation-errors/validation-errors.component';
|
|
13
7
|
import { NumberDirective } from "../../../../directives/number.directive";
|
|
8
|
+
import { MatFormImports, Shareds } from '../shared-imports';
|
|
14
9
|
import * as i0 from "@angular/core";
|
|
15
|
-
import * as i1 from "
|
|
16
|
-
import * as i2 from "
|
|
10
|
+
import * as i1 from "../form-label/form-label.component";
|
|
11
|
+
import * as i2 from "../validation-errors/validation-errors.component";
|
|
12
|
+
import * as i3 from "../info-item/info-item.component";
|
|
13
|
+
import * as i4 from "@angular/forms";
|
|
14
|
+
import * as i5 from "@angular/common";
|
|
15
|
+
import * as i6 from "@angular/material/form-field";
|
|
16
|
+
import * as i7 from "@angular/material/input";
|
|
17
17
|
export class InputNumberComponent extends ControlValueAccessorDirective {
|
|
18
|
-
tooltip;
|
|
19
18
|
floatLabel = 'auto';
|
|
20
19
|
className = 'bordered-input';
|
|
21
20
|
iconPrefixName;
|
|
@@ -24,35 +23,28 @@ export class InputNumberComponent extends ControlValueAccessorDirective {
|
|
|
24
23
|
allowedPattern = '';
|
|
25
24
|
emitedChangedValue = new EventEmitter();
|
|
26
25
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: InputNumberComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: InputNumberComponent, isStandalone: true, selector: "app-input-number", inputs: {
|
|
26
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.8", type: InputNumberComponent, isStandalone: true, selector: "app-input-number", inputs: { floatLabel: "floatLabel", className: "className", iconPrefixName: "iconPrefixName", iconSuffixName: "iconSuffixName", numberSuffixName: "numberSuffixName", allowedPattern: "allowedPattern" }, outputs: { emitedChangedValue: "emitedChangedValue" }, providers: [
|
|
28
27
|
{
|
|
29
28
|
provide: NG_VALUE_ACCESSOR,
|
|
30
29
|
useExisting: forwardRef(() => InputNumberComponent),
|
|
31
30
|
multi: true,
|
|
32
31
|
},
|
|
33
|
-
], usesInheritance: true, ngImport: i0, template: "@if(!isReadOnly){\r\n @if(label){\r\n
|
|
32
|
+
], usesInheritance: true, ngImport: i0, template: "@if(!isReadOnly){\r\n @if(label){\r\n <app-form-label [label]=\"label\" [optional]=\"!required\" [tooltip]=\"tooltip\"></app-form-label>\r\n }\r\n <mat-form-field\r\n class=\"primary-form {{ className }}\"\r\n [ngClass]=\"{ 'input-disabled': control.disabled }\"\r\n [floatLabel]=\"floatLabel\"\r\n >\r\n @if(iconPrefixName){<span class=\"sfi {{ iconPrefixName }}\"></span>}\r\n @if(loading){<span\r\n class=\"sfi sfi-spinner d-inline-block spin fc-coral\"\r\n matSuffix\r\n ></span\r\n >}\r\n <label class=\"mat-form-content\">\r\n <!-- add input for ar && en custom directive with add type = arOnly || type = enOnly-->\r\n <input\r\n matInput\r\n [value]=\"value\"\r\n oninput=\"validity.valid || (value='');\"\r\n [formControl]=\"control\"\r\n [type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n numberOnly\r\n />\r\n </label>\r\n @if(iconSuffixName){<span matSuffix class=\"sfi {{ iconSuffixName }}\"></span>}\r\n @if(hint){\r\n <mat-hint class=\"d-flex align-items-center gap-1 mt-1\">\r\n <span\r\n class=\"sfi sfi-info fs-17 fc-dark-gray\"\r\n [ngClass]=\"{ 'fc-oasis-light-imp': value }\"\r\n ></span>\r\n <span class=\"fs-12 fc-black line-height-1\">{{ hint }}</span>\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n <app-validation-errors [errors]=\"control.errors\"></app-validation-errors>\r\n } @if(isReadOnly && (showIfEmpty || control)){\r\n <ng-container class=\"info-section\">\r\n <app-info-item\r\n class=\"info-item w-100\"\r\n [label]=\"label\"\r\n [insideTable]=\"insideTable\"\r\n [hasLabel]=\"!!label\"\r\n [type]=\"type\"\r\n [value]=\"control.value\"\r\n ></app-info-item>\r\n </ng-container>\r\n }", styles: [":host{flex-grow:1}.input-disabled{pointer-events:none;opacity:1.5}\n"], dependencies: [{ kind: "directive", type: NumberDirective, selector: "[numberOnly]", inputs: ["decimals"] }, { kind: "component", type: i1.FormLabelComponent, selector: "app-form-label", inputs: ["tooltip", "label", "optional"] }, { kind: "component", type: i2.ValidationErrorsComponent, selector: "app-validation-errors", inputs: ["errors", "customErrorMessages"] }, { kind: "component", type: i3.InfoItemComponent, selector: "app-info-item", inputs: ["label", "value", "name", "type", "dateType", "multiple", "insideTable", "hasLabel", "arrayList", "actionType", "download"] }, { kind: "ngmodule", type: i4.ReactiveFormsModule }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i5.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "ngmodule", type: i6.MatFormFieldModule }, { kind: "component", type: i6.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i6.MatHint, selector: "mat-hint", inputs: ["align", "id"] }, { kind: "directive", type: i6.MatSuffix, selector: "[matSuffix], [matIconSuffix], [matTextSuffix]", inputs: ["matTextSuffix"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }] });
|
|
34
33
|
}
|
|
35
34
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: InputNumberComponent, decorators: [{
|
|
36
35
|
type: Component,
|
|
37
36
|
args: [{ selector: 'app-input-number', schemas: [CUSTOM_ELEMENTS_SCHEMA], standalone: true, imports: [
|
|
38
|
-
MatFormField,
|
|
39
|
-
NgClass,
|
|
40
|
-
ReactiveFormsModule,
|
|
41
|
-
InfoItemComponent,
|
|
42
|
-
SatPopoverModule,
|
|
43
|
-
MatInput,
|
|
44
37
|
NumberDirective,
|
|
45
|
-
|
|
38
|
+
...Shareds,
|
|
39
|
+
...MatFormImports
|
|
46
40
|
], providers: [
|
|
47
41
|
{
|
|
48
42
|
provide: NG_VALUE_ACCESSOR,
|
|
49
43
|
useExisting: forwardRef(() => InputNumberComponent),
|
|
50
44
|
multi: true,
|
|
51
45
|
},
|
|
52
|
-
], template: "@if(!isReadOnly){\r\n @if(label){\r\n
|
|
53
|
-
}], propDecorators: {
|
|
54
|
-
type: Input
|
|
55
|
-
}], floatLabel: [{
|
|
46
|
+
], template: "@if(!isReadOnly){\r\n @if(label){\r\n <app-form-label [label]=\"label\" [optional]=\"!required\" [tooltip]=\"tooltip\"></app-form-label>\r\n }\r\n <mat-form-field\r\n class=\"primary-form {{ className }}\"\r\n [ngClass]=\"{ 'input-disabled': control.disabled }\"\r\n [floatLabel]=\"floatLabel\"\r\n >\r\n @if(iconPrefixName){<span class=\"sfi {{ iconPrefixName }}\"></span>}\r\n @if(loading){<span\r\n class=\"sfi sfi-spinner d-inline-block spin fc-coral\"\r\n matSuffix\r\n ></span\r\n >}\r\n <label class=\"mat-form-content\">\r\n <!-- add input for ar && en custom directive with add type = arOnly || type = enOnly-->\r\n <input\r\n matInput\r\n [value]=\"value\"\r\n oninput=\"validity.valid || (value='');\"\r\n [formControl]=\"control\"\r\n [type]=\"type\"\r\n [placeholder]=\"placeholder\"\r\n numberOnly\r\n />\r\n </label>\r\n @if(iconSuffixName){<span matSuffix class=\"sfi {{ iconSuffixName }}\"></span>}\r\n @if(hint){\r\n <mat-hint class=\"d-flex align-items-center gap-1 mt-1\">\r\n <span\r\n class=\"sfi sfi-info fs-17 fc-dark-gray\"\r\n [ngClass]=\"{ 'fc-oasis-light-imp': value }\"\r\n ></span>\r\n <span class=\"fs-12 fc-black line-height-1\">{{ hint }}</span>\r\n </mat-hint>\r\n }\r\n </mat-form-field>\r\n <app-validation-errors [errors]=\"control.errors\"></app-validation-errors>\r\n } @if(isReadOnly && (showIfEmpty || control)){\r\n <ng-container class=\"info-section\">\r\n <app-info-item\r\n class=\"info-item w-100\"\r\n [label]=\"label\"\r\n [insideTable]=\"insideTable\"\r\n [hasLabel]=\"!!label\"\r\n [type]=\"type\"\r\n [value]=\"control.value\"\r\n ></app-info-item>\r\n </ng-container>\r\n }", styles: [":host{flex-grow:1}.input-disabled{pointer-events:none;opacity:1.5}\n"] }]
|
|
47
|
+
}], propDecorators: { floatLabel: [{
|
|
56
48
|
type: Input
|
|
57
49
|
}], className: [{
|
|
58
50
|
type: Input
|
|
@@ -67,4 +59,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
67
59
|
}], emitedChangedValue: [{
|
|
68
60
|
type: Output
|
|
69
61
|
}] } });
|
|
70
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtbnVtYmVyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2JwbS1jb3JlL3NyYy9saWIvY29tcG9uZW50cy9zaGFyZWQtY29tcG9uZW50cy9mb3JtLWZpZWxkL2lucHV0LW51bWJlci9pbnB1dC1udW1iZXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYnBtLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC1jb21wb25lbnRzL2Zvcm0tZmllbGQvaW5wdXQtbnVtYmVyL2lucHV0LW51bWJlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw0REFBNEQ7QUFDNUQsdURBQXVEO0FBQ3ZELHVEQUF1RDtBQU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nRyb2wuZXJyb3JzXCI+PC9hcHAtdmFsaWRhdGlvbi1lcnJvcnM+XHJcbiAgfSBAaWYoaXNSZWFkT25seSAmJiAoc2hvd0lmRW1wdHkgfHwgY29udHJvbCkpe1xyXG4gIDxuZy1jb250YWluZXIgY2xhc3M9XCJpbmZvLXNlY3Rpb25cIj5cclxuICAgIDxhcHAtaW5mby1pdGVtXHJcbiAgICAgIGNsYXNzPVwiaW5mby1pdGVtIHctMTAwXCJcclxuICAgICAgW2xhYmVsXT1cImxhYmVsXCJcclxuICAgICAgW2luc2lkZVRhYmxlXT1cImluc2lkZVRhYmxlXCJcclxuICAgICAgW2hhc0xhYmVsXT1cIiEhbGFiZWxcIlxyXG4gICAgICBbdHlwZV09XCJ0eXBlXCJcclxuICAgICAgW3ZhbHVlXT1cImNvbnRyb2wudmFsdWVcIlxyXG4gICAgPjwvYXBwLWluZm8taXRlbT5cclxuICA8L25nLWNvbnRhaW5lcj5cclxuICB9Il19
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { NgxIntlTelInputModule } from 'ngx-intl-tel-input-gg';
|
|
2
2
|
import { CountryISO, SearchCountryField } from 'ngx-intl-tel-input-gg';
|
|
3
|
-
import { FormsModule, NG_VALUE_ACCESSOR
|
|
3
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
4
|
import { Component, Input, CUSTOM_ELEMENTS_SCHEMA, forwardRef } from '@angular/core';
|
|
5
|
-
import { InfoItemComponent } from "../info-item/info-item.component";
|
|
6
5
|
import { CommonModule } from "@angular/common";
|
|
7
6
|
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
8
|
-
import {
|
|
7
|
+
import { Shareds } from '../shared-imports';
|
|
9
8
|
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "@angular/
|
|
11
|
-
import * as i2 from "
|
|
12
|
-
import * as i3 from "
|
|
9
|
+
import * as i1 from "@angular/forms";
|
|
10
|
+
import * as i2 from "ngx-intl-tel-input-gg";
|
|
11
|
+
import * as i3 from "../form-label/form-label.component";
|
|
12
|
+
import * as i4 from "../validation-errors/validation-errors.component";
|
|
13
|
+
import * as i5 from "../info-item/info-item.component";
|
|
13
14
|
export class InputTelephoneComponent extends ControlValueAccessorDirective {
|
|
14
15
|
floatLabel = 'auto';
|
|
15
16
|
className = 'bordered-input';
|
|
@@ -23,27 +24,25 @@ export class InputTelephoneComponent extends ControlValueAccessorDirective {
|
|
|
23
24
|
useExisting: forwardRef(() => InputTelephoneComponent),
|
|
24
25
|
multi: true,
|
|
25
26
|
},
|
|
26
|
-
], usesInheritance: true, ngImport: i0, template: "@if(!isReadOnly){\r\n <ng-container>\r\n @if(label){\r\n <
|
|
27
|
+
], usesInheritance: true, ngImport: i0, template: "@if(!isReadOnly){\r\n <ng-container>\r\n @if(label){\r\n <app-form-label [label]=\"label\" [optional]=\"!required\" [tooltip]=\"tooltip\"></app-form-label>\r\n }\r\n <!-- <mat-form-field style=\"height: 50px;\" class=\"primary-form input-telephone {{className}}\" floatLabel=\"always\"> -->\r\n <div class=\"primary-form input-telephone {{className}}\" floatLabel=\"always\">\r\n <label class=\"mat-form-content\">\r\n <!-- [placeholder]=\"label\" -->\r\n <!-- <input matInput [disabled]=\"disabled\" ng2TelInput numberOnly #phone\r\n [ng2TelInputOptions]=\"{initialCountry: 'sa', utilsScript: 'assets/js/utils.js'}\" (hasError)=\"hasError($event)\"\r\n (ng2TelOutput)=\"getNumber($event)\" (intlTelInputObject)=\"telInputObject($event)\"\r\n (countryChange)=\"onCountryChange($event)\" [(ngModel)]=\"field\" [name]=\"name\"\r\n oninput=\"this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');\"\r\n [maxlength]=\"maxLength\" [minLength]=\"minLength\" />-->\r\n <!-- <input matInput [hidden]=\"true\"/> -->\r\n <ngx-intl-tel-input\r\n [formControl]=\"control\"\r\n [cssClass]=\"'custom'\"\r\n [preferredCountries]=\"[CountryISO.UnitedStates, CountryISO.UnitedKingdom]\"\r\n [enableAutoCountrySelect]=\"false\"\r\n [enablePlaceholder]=\"true\"\r\n [searchCountryFlag]=\"true\"\r\n [searchCountryField]=\"[SearchCountryField.Iso2, SearchCountryField.Name]\"\r\n [selectFirstCountry]=\"false\"\r\n [selectedCountryISO]=\"CountryISO.SaudiArabia\"\r\n [maxLength]=\"15\"\r\n [phoneValidation]=\"true\"\r\n [inputId]=\"\"\r\n name=\"phone\"\r\n ></ngx-intl-tel-input>\r\n </label>\r\n </div>\r\n <!-- </mat-form-field> -->\r\n <app-validation-errors [errors]=\"control.errors\"></app-validation-errors>\r\n </ng-container>\r\n}\r\n@if(isReadOnly){\r\n <ng-container>\r\n <app-info-item class=\"info-item w-100\" [type]=\"'telephone'\" [label]=\"label\"\r\n [value]=\"control.value\"></app-info-item>\r\n </ng-container>\r\n}\r\n\r\n", styles: ["[dir=rtl] :host .mat-input-element{direction:ltr;text-align:right}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: NgxIntlTelInputModule }, { kind: "component", type: i2.NgxIntlTelInputComponent, selector: "ngx-intl-tel-input", inputs: ["value", "preferredCountries", "enablePlaceholder", "customPlaceholder", "numberFormat", "cssClass", "onlyCountries", "enableAutoCountrySelect", "searchCountryFlag", "searchCountryField", "searchCountryPlaceholder", "maxLength", "selectFirstCountry", "selectedCountryISO", "phoneValidation", "inputId", "separateDialCode"], outputs: ["countryChange"] }, { kind: "directive", type: i2.NativeElementInjectorDirective, selector: "[ngModel], [formControl], [formControlName]" }, { kind: "component", type: i3.FormLabelComponent, selector: "app-form-label", inputs: ["tooltip", "label", "optional"] }, { kind: "component", type: i4.ValidationErrorsComponent, selector: "app-validation-errors", inputs: ["errors", "customErrorMessages"] }, { kind: "component", type: i5.InfoItemComponent, selector: "app-info-item", inputs: ["label", "value", "name", "type", "dateType", "multiple", "insideTable", "hasLabel", "arrayList", "actionType", "download"] }, { kind: "ngmodule", type: i1.ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
27
28
|
}
|
|
28
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: InputTelephoneComponent, decorators: [{
|
|
29
30
|
type: Component,
|
|
30
31
|
args: [{ selector: 'app-input-telephone', schemas: [CUSTOM_ELEMENTS_SCHEMA], standalone: true, imports: [
|
|
31
32
|
CommonModule,
|
|
32
|
-
InfoItemComponent,
|
|
33
33
|
FormsModule,
|
|
34
34
|
NgxIntlTelInputModule,
|
|
35
|
-
|
|
36
|
-
ValidationErrorsComponent
|
|
35
|
+
...Shareds
|
|
37
36
|
], providers: [
|
|
38
37
|
{
|
|
39
38
|
provide: NG_VALUE_ACCESSOR,
|
|
40
39
|
useExisting: forwardRef(() => InputTelephoneComponent),
|
|
41
40
|
multi: true,
|
|
42
41
|
},
|
|
43
|
-
], template: "@if(!isReadOnly){\r\n <ng-container>\r\n @if(label){\r\n <
|
|
42
|
+
], template: "@if(!isReadOnly){\r\n <ng-container>\r\n @if(label){\r\n <app-form-label [label]=\"label\" [optional]=\"!required\" [tooltip]=\"tooltip\"></app-form-label>\r\n }\r\n <!-- <mat-form-field style=\"height: 50px;\" class=\"primary-form input-telephone {{className}}\" floatLabel=\"always\"> -->\r\n <div class=\"primary-form input-telephone {{className}}\" floatLabel=\"always\">\r\n <label class=\"mat-form-content\">\r\n <!-- [placeholder]=\"label\" -->\r\n <!-- <input matInput [disabled]=\"disabled\" ng2TelInput numberOnly #phone\r\n [ng2TelInputOptions]=\"{initialCountry: 'sa', utilsScript: 'assets/js/utils.js'}\" (hasError)=\"hasError($event)\"\r\n (ng2TelOutput)=\"getNumber($event)\" (intlTelInputObject)=\"telInputObject($event)\"\r\n (countryChange)=\"onCountryChange($event)\" [(ngModel)]=\"field\" [name]=\"name\"\r\n oninput=\"this.value.replace(/[^0-9.]/g, ''); this.value = this.value.replace(/(\\..*)\\./g, '$1');\"\r\n [maxlength]=\"maxLength\" [minLength]=\"minLength\" />-->\r\n <!-- <input matInput [hidden]=\"true\"/> -->\r\n <ngx-intl-tel-input\r\n [formControl]=\"control\"\r\n [cssClass]=\"'custom'\"\r\n [preferredCountries]=\"[CountryISO.UnitedStates, CountryISO.UnitedKingdom]\"\r\n [enableAutoCountrySelect]=\"false\"\r\n [enablePlaceholder]=\"true\"\r\n [searchCountryFlag]=\"true\"\r\n [searchCountryField]=\"[SearchCountryField.Iso2, SearchCountryField.Name]\"\r\n [selectFirstCountry]=\"false\"\r\n [selectedCountryISO]=\"CountryISO.SaudiArabia\"\r\n [maxLength]=\"15\"\r\n [phoneValidation]=\"true\"\r\n [inputId]=\"\"\r\n name=\"phone\"\r\n ></ngx-intl-tel-input>\r\n </label>\r\n </div>\r\n <!-- </mat-form-field> -->\r\n <app-validation-errors [errors]=\"control.errors\"></app-validation-errors>\r\n </ng-container>\r\n}\r\n@if(isReadOnly){\r\n <ng-container>\r\n <app-info-item class=\"info-item w-100\" [type]=\"'telephone'\" [label]=\"label\"\r\n [value]=\"control.value\"></app-info-item>\r\n </ng-container>\r\n}\r\n\r\n", styles: ["[dir=rtl] :host .mat-input-element{direction:ltr;text-align:right}\n"] }]
|
|
44
43
|
}], propDecorators: { floatLabel: [{
|
|
45
44
|
type: Input
|
|
46
45
|
}], className: [{
|
|
47
46
|
type: Input
|
|
48
47
|
}] } });
|
|
49
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXQtdGVsZXBob25lLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3Rz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bmctY29udGFpbmVyPlxyXG59XHJcbkBpZihpc1JlYWRPbmx5KXtcclxuICA8bmctY29udGFpbmVyPlxyXG4gICAgPGFwcC1pbmZvLWl0ZW0gY2xhc3M9XCJpbmZvLWl0ZW0gdy0xMDBcIiAgW3R5cGVdPVwiJ3RlbGVwaG9uZSdcIiBbbGFiZWxdPVwibGFiZWxcIlxyXG4gICAgICBbdmFsdWVdPVwiY29udHJvbC52YWx1ZVwiPjwvYXBwLWluZm8taXRlbT5cclxuICA8L25nLWNvbnRhaW5lcj5cclxufVxyXG5cclxuIl19
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-empty-function */
|
|
2
|
-
/* eslint-disable @angular-eslint/use-lifecycle-interface */
|
|
3
|
-
/* eslint-disable @angular-eslint/component-selector */
|
|
4
1
|
import { Component, CUSTOM_ELEMENTS_SCHEMA, forwardRef, Input } from '@angular/core';
|
|
5
2
|
import { MatRadioButton, MatRadioGroup } from '@angular/material/radio';
|
|
6
|
-
import { FormsModule, NG_VALUE_ACCESSOR
|
|
3
|
+
import { FormsModule, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
7
4
|
import { ControlValueAccessorDirective } from '../control-value-accessor.directive';
|
|
8
|
-
import { InfoItemComponent } from '../info-item/info-item.component';
|
|
9
5
|
import { NgSwitchCase } from "@angular/common";
|
|
6
|
+
import { Shareds } from '../shared-imports';
|
|
10
7
|
import * as i0 from "@angular/core";
|
|
11
8
|
import * as i1 from "@angular/forms";
|
|
9
|
+
import * as i2 from "../form-label/form-label.component";
|
|
10
|
+
import * as i3 from "../info-item/info-item.component";
|
|
12
11
|
export class RadioComponent extends ControlValueAccessorDirective {
|
|
13
12
|
options;
|
|
14
13
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RadioComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -18,7 +17,7 @@ export class RadioComponent extends ControlValueAccessorDirective {
|
|
|
18
17
|
useExisting: forwardRef(() => RadioComponent),
|
|
19
18
|
multi: true,
|
|
20
19
|
},
|
|
21
|
-
], usesInheritance: true, ngImport: i0, template: "@if(!isReadOnly){\r\n @if(label){\r\n <
|
|
20
|
+
], usesInheritance: true, ngImport: i0, template: "@if(!isReadOnly){\r\n @if(label){\r\n <app-form-label [label]=\"label\" [optional]=\"!required\" [tooltip]=\"tooltip\"></app-form-label>\r\n }\r\n <mat-radio-group\r\n aria-label=\"Select an option\"\r\n [formControl]=\"control\"\r\n id=\"{{ name }}{{ randomID }}\"\r\n name=\"{{ name }}{{ randomID }}\"\r\n >\r\n @for(option of options; track $index){\r\n <mat-radio-button\r\n class=\"m-3\"\r\n [disabled]=\"isReadOnly || isDisabled\"\r\n [value]=\"option\"\r\n [checked]=\"option === control.value\"\r\n >\r\n <span class=\"fs-12 fw-medium fc-onyx\">\r\n {{ option }}\r\n </span>\r\n </mat-radio-button>\r\n }\r\n </mat-radio-group>\r\n\r\n}@else {\r\n <ng-container>\r\n <app-info-item\r\n class=\"info-item w-100\"\r\n [insideTable]=\"insideTable\"\r\n [label]=\"label\"\r\n [type]=\"'toggleBtn'\"\r\n [value]=\"control.value\"\r\n [hasLabel]=\"!!label\"\r\n >\r\n </app-info-item>\r\n </ng-container>\r\n}\r\n", styles: [""], dependencies: [{ kind: "component", type: MatRadioButton, selector: "mat-radio-button", inputs: ["id", "name", "aria-label", "aria-labelledby", "aria-describedby", "disableRipple", "tabIndex", "checked", "value", "labelPosition", "disabled", "required", "color", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioButton"] }, { kind: "directive", type: MatRadioGroup, selector: "mat-radio-group", inputs: ["color", "name", "labelPosition", "value", "selected", "disabled", "required", "disabledInteractive"], outputs: ["change"], exportAs: ["matRadioGroup"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "component", type: i2.FormLabelComponent, selector: "app-form-label", inputs: ["tooltip", "label", "optional"] }, { kind: "component", type: i3.InfoItemComponent, selector: "app-info-item", inputs: ["label", "value", "name", "type", "dateType", "multiple", "insideTable", "hasLabel", "arrayList", "actionType", "download"] }, { kind: "ngmodule", type: i1.ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }] });
|
|
22
21
|
}
|
|
23
22
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImport: i0, type: RadioComponent, decorators: [{
|
|
24
23
|
type: Component,
|
|
@@ -26,17 +25,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.8", ngImpor
|
|
|
26
25
|
MatRadioButton,
|
|
27
26
|
MatRadioGroup,
|
|
28
27
|
FormsModule,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
NgSwitchCase
|
|
28
|
+
NgSwitchCase,
|
|
29
|
+
...Shareds
|
|
32
30
|
], providers: [
|
|
33
31
|
{
|
|
34
32
|
provide: NG_VALUE_ACCESSOR,
|
|
35
33
|
useExisting: forwardRef(() => RadioComponent),
|
|
36
34
|
multi: true,
|
|
37
35
|
},
|
|
38
|
-
], template: "@if(!isReadOnly){\r\n @if(label){\r\n <
|
|
36
|
+
], template: "@if(!isReadOnly){\r\n @if(label){\r\n <app-form-label [label]=\"label\" [optional]=\"!required\" [tooltip]=\"tooltip\"></app-form-label>\r\n }\r\n <mat-radio-group\r\n aria-label=\"Select an option\"\r\n [formControl]=\"control\"\r\n id=\"{{ name }}{{ randomID }}\"\r\n name=\"{{ name }}{{ randomID }}\"\r\n >\r\n @for(option of options; track $index){\r\n <mat-radio-button\r\n class=\"m-3\"\r\n [disabled]=\"isReadOnly || isDisabled\"\r\n [value]=\"option\"\r\n [checked]=\"option === control.value\"\r\n >\r\n <span class=\"fs-12 fw-medium fc-onyx\">\r\n {{ option }}\r\n </span>\r\n </mat-radio-button>\r\n }\r\n </mat-radio-group>\r\n\r\n}@else {\r\n <ng-container>\r\n <app-info-item\r\n class=\"info-item w-100\"\r\n [insideTable]=\"insideTable\"\r\n [label]=\"label\"\r\n [type]=\"'toggleBtn'\"\r\n [value]=\"control.value\"\r\n [hasLabel]=\"!!label\"\r\n >\r\n </app-info-item>\r\n </ng-container>\r\n}\r\n" }]
|
|
39
37
|
}], propDecorators: { options: [{
|
|
40
38
|
type: Input
|
|
41
39
|
}] } });
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
40
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmFkaW8uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYnBtLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC1jb21wb25lbnRzL2Zvcm0tZmllbGQvcmFkaW8vcmFkaW8uY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYnBtLWNvcmUvc3JjL2xpYi9jb21wb25lbnRzL3NoYXJlZC1jb21wb25lbnRzL2Zvcm0tZmllbGQvcmFkaW8vcmFkaW8uY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxzQkFBc0IsRUFBRSxVQUFVLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3JGLE9BQU8sRUFBQyxjQUFjLEVBQUUsYUFBYSxFQUFDLE1BQU0seUJBQXlCLENBQUM7QUFDdEUsT0FBTyxFQUFDLFdBQVcsRUFBRSxpQkFBaUIsRUFBQyxNQUFNLGdCQUFnQixDQUFDO0FBQzlELE9BQU8sRUFBRSw2QkFBNkIsRUFBRSxNQUFNLHFDQUFxQyxDQU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