@ksremp/ngx-ksremp-app-lib 1.0.19 → 1.0.21
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/annimations/app-animations.mjs +1 -1
- package/esm2022/lib/components/bank-details/bank-details.component.mjs +17 -22
- package/esm2022/lib/components/captcha/captcha.component.mjs +6 -6
- package/esm2022/lib/components/card/card.component.mjs +1 -1
- package/esm2022/lib/components/content/content.component.mjs +1 -1
- package/esm2022/lib/components/error/error.component.mjs +1 -1
- package/esm2022/lib/components/file-download/file-download.component.mjs +1 -1
- package/esm2022/lib/components/file-uploader/file-uploader.component.mjs +1 -1
- package/esm2022/lib/components/help/help.component.mjs +1 -1
- package/esm2022/lib/components/idle-detector/idle-detector.component.mjs +1 -1
- package/esm2022/lib/components/info/info.component.mjs +1 -1
- package/esm2022/lib/components/maintenance-detector/maintenance-detector.component.mjs +1 -1
- package/esm2022/lib/components/mask/mask.component.mjs +1 -1
- package/esm2022/lib/components/money-expect/money-expect.component.mjs +1 -1
- package/esm2022/lib/components/msg/msg.component.mjs +1 -1
- package/esm2022/lib/components/news/news.component.mjs +1 -1
- package/esm2022/lib/components/overlay-info/overlay-info.component.mjs +1 -1
- package/esm2022/lib/components/page/page.component.mjs +1 -1
- package/esm2022/lib/components/questionnaire/AppValidators.mjs +27 -8
- package/esm2022/lib/components/questionnaire/FbConstants.mjs +1 -1
- package/esm2022/lib/components/questionnaire/dynamic-form-question.component.mjs +13 -2
- package/esm2022/lib/components/questionnaire/question-base.mjs +1 -1
- package/esm2022/lib/components/questionnaire/question.service.mjs +1 -1
- package/esm2022/lib/components/read-more/read-more.component.mjs +6 -6
- package/esm2022/lib/components/select/select.component.mjs +1 -1
- package/esm2022/lib/components/ssn/ssn.component.mjs +1 -1
- package/esm2022/lib/components/test/test.component.mjs +1 -1
- package/esm2022/lib/components/weekly-cert-employer-grid/weekly-cert-employer-grid.component.mjs +4 -2
- package/esm2022/lib/directives/auto-focus/auto-focus.directive.mjs +1 -1
- package/esm2022/lib/directives/caps-lock.directive.mjs +1 -1
- package/esm2022/lib/directives/required-roles/required-roles.directive.mjs +1 -1
- package/esm2022/lib/enums/EmailStatusEnum.mjs +1 -1
- package/esm2022/lib/interceptors/error-interceptor/http-error-interceptor.mjs +1 -1
- package/esm2022/lib/models/ErrorModel.mjs +1 -1
- package/esm2022/lib/models/FileModel.mjs +1 -1
- package/esm2022/lib/models/NotificationModel.mjs +1 -1
- package/esm2022/lib/models/TrendModel.mjs +1 -1
- package/esm2022/lib/models/UserDetailsModel.mjs +1 -1
- package/esm2022/lib/models/claimant/ClaimantModel.mjs +1 -1
- package/esm2022/lib/models/claimant/JobResultsData.mjs +1 -1
- package/esm2022/lib/models/claimant/MatchingJobs.mjs +1 -1
- package/esm2022/lib/models/claimant/ResetPasswordModel.mjs +1 -1
- package/esm2022/lib/models/questionnaire/KeyValueModel.mjs +1 -1
- package/esm2022/lib/ngx-reusa-app-lib.component.mjs +5 -5
- package/esm2022/lib/ngx-reusa-app-lib.service.mjs +1 -1
- package/esm2022/lib/pages/common/accessibility-policy/accessibility-policy.page.mjs +1 -1
- package/esm2022/lib/pages/common/change-password/change-password.page.mjs +1 -1
- package/esm2022/lib/pages/common/landing2/landing2.component.mjs +1 -1
- package/esm2022/lib/pages/common/not-found/not-found.page.mjs +1 -1
- package/esm2022/lib/pages/common/privacy-disclaimer/privacy-disclaimer.page.mjs +1 -1
- package/esm2022/lib/pages/common/security-policy/security-policy.page.mjs +1 -1
- package/esm2022/lib/pages/common/unauthorized/unauthorized.page.mjs +1 -1
- package/esm2022/lib/pages/popovers/my-notifications/my-notifications.page.mjs +1 -1
- package/esm2022/lib/pages/popovers/my-profile/my-profile.page.mjs +1 -1
- package/esm2022/lib/pages/popovers/user-search/user-search.component.mjs +1 -1
- package/esm2022/lib/pipes/filter.pipe.mjs +1 -1
- package/esm2022/lib/pipes/mask/mask.email.pipe.mjs +1 -1
- package/esm2022/lib/pipes/proper-case/proper-case.pipe.mjs +1 -1
- package/esm2022/lib/pipes/trust-html/trust-html.pipe.mjs +1 -1
- package/esm2022/lib/services/base-service.mjs +1 -1
- package/esm2022/lib/services/captcha/captcha.service.mjs +1 -1
- package/esm2022/lib/services/chatbot/script.const.mjs +1 -1
- package/esm2022/lib/services/claimant/claimant.service.mjs +1 -1
- package/esm2022/lib/services/dms-service/dms.service.mjs +1 -1
- package/esm2022/lib/services/fpjs/fingerprint.service.mjs +1 -1
- package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +1 -1
- package/esm2022/lib/services/idle/idle.service.mjs +1 -1
- package/esm2022/lib/services/maintenance/maintenance.service.mjs +1 -1
- package/esm2022/lib/services/notification/notification.service.mjs +1 -1
- package/esm2022/lib/services/tour/tour.service.mjs +1 -1
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs +71 -44
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs.map +1 -1
- package/lib/components/bank-details/bank-details.component.d.ts +1 -3
- package/lib/components/bank-details/bank-details.component.d.ts.map +1 -1
- package/lib/components/questionnaire/AppValidators.d.ts.map +1 -1
- package/lib/components/questionnaire/dynamic-form-question.component.d.ts +1 -1
- package/lib/components/questionnaire/dynamic-form-question.component.d.ts.map +1 -1
- package/lib/components/weekly-cert-employer-grid/weekly-cert-employer-grid.component.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -156,10 +156,10 @@ class NgxReusaAppLibComponent {
|
|
|
156
156
|
}
|
|
157
157
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgxReusaAppLibComponent, [{
|
|
158
158
|
type: Component,
|
|
159
|
-
args: [{ selector: 'app-ngx-reusa-app-lib', template: `
|
|
160
|
-
<p>
|
|
161
|
-
ngx-reusa-app-lib works!
|
|
162
|
-
</p>
|
|
159
|
+
args: [{ selector: 'app-ngx-reusa-app-lib', template: `
|
|
160
|
+
<p>
|
|
161
|
+
ngx-reusa-app-lib works!
|
|
162
|
+
</p>
|
|
163
163
|
` }]
|
|
164
164
|
}], () => [], null); })();
|
|
165
165
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(NgxReusaAppLibComponent, { className: "NgxReusaAppLibComponent", filePath: "lib\\ngx-reusa-app-lib.component.ts", lineNumber: 13 }); })();
|
|
@@ -9857,11 +9857,11 @@ class CaptchaComponent {
|
|
|
9857
9857
|
}
|
|
9858
9858
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaptchaComponent, [{
|
|
9859
9859
|
type: Component,
|
|
9860
|
-
args: [{ selector: 'app-captcha', template: `<div class="app-captcha"></div>
|
|
9861
|
-
<p style="color: var(--ion-color-danger);" *ngIf="showError" class="ion-padding-top">
|
|
9862
|
-
<small>
|
|
9863
|
-
Error loading captcha. <a href="#" (click)="loadCaptcha()">Reload</a>
|
|
9864
|
-
</small>
|
|
9860
|
+
args: [{ selector: 'app-captcha', template: `<div class="app-captcha"></div>
|
|
9861
|
+
<p style="color: var(--ion-color-danger);" *ngIf="showError" class="ion-padding-top">
|
|
9862
|
+
<small>
|
|
9863
|
+
Error loading captcha. <a href="#" (click)="loadCaptcha()">Reload</a>
|
|
9864
|
+
</small>
|
|
9865
9865
|
</p>`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [{
|
|
9866
9866
|
provide: NG_VALUE_ACCESSOR,
|
|
9867
9867
|
useExisting: CaptchaComponent,
|
|
@@ -20813,16 +20813,35 @@ class AppValidators {
|
|
|
20813
20813
|
}
|
|
20814
20814
|
}
|
|
20815
20815
|
else if (validationName === "wcEmployerValidation") {
|
|
20816
|
-
|
|
20817
|
-
|
|
20816
|
+
const control = formGroup.controls[element.name];
|
|
20817
|
+
const empModels = control?.value;
|
|
20818
|
+
const ifWorkPerformed = formGroup.controls["workPerformed"]?.value;
|
|
20819
|
+
const errors = { ...(control.errors || {}) };
|
|
20818
20820
|
if (ifWorkPerformed === "Y") {
|
|
20819
|
-
|
|
20820
|
-
|
|
20821
|
-
|
|
20822
|
-
|
|
20823
|
-
|
|
20821
|
+
const hasNoEmployers = !Array.isArray(empModels) || empModels.length === 0;
|
|
20822
|
+
// Require at least one employer
|
|
20823
|
+
if (hasNoEmployers) {
|
|
20824
|
+
errors.wcOneEmployerValidation = true;
|
|
20825
|
+
}
|
|
20826
|
+
else {
|
|
20827
|
+
delete errors.wcOneEmployerValidation;
|
|
20828
|
+
}
|
|
20829
|
+
// Check for incomplete employers
|
|
20830
|
+
const hasIncompleteEmployers = empModels?.some(e => !e.isPartTimeEmployerEdited && e.isPartTimeEmployer);
|
|
20831
|
+
if (hasIncompleteEmployers) {
|
|
20832
|
+
errors.wcEmployerValidation = true;
|
|
20833
|
+
}
|
|
20834
|
+
else {
|
|
20835
|
+
delete errors.wcEmployerValidation;
|
|
20824
20836
|
}
|
|
20825
20837
|
}
|
|
20838
|
+
else {
|
|
20839
|
+
// Clean up when condition no longer applies
|
|
20840
|
+
delete errors.wcOneEmployerValidation;
|
|
20841
|
+
delete errors.wcEmployerValidation;
|
|
20842
|
+
}
|
|
20843
|
+
// Apply final errors
|
|
20844
|
+
control.setErrors(Object.keys(errors).length ? errors : null);
|
|
20826
20845
|
}
|
|
20827
20846
|
else if (validationName === "wrptWcEmployerValidation") {
|
|
20828
20847
|
let ifWorkPerformed = formGroup.controls["workPerformed"].value;
|
|
@@ -21840,22 +21859,17 @@ class BankDetailsComponent {
|
|
|
21840
21859
|
}
|
|
21841
21860
|
}
|
|
21842
21861
|
ngOnInit() {
|
|
21843
|
-
console.log("inside onInit bankdetailscomponent");
|
|
21844
21862
|
this.bankDetailsForm = this.formBuilder.group({
|
|
21845
21863
|
'nameOnAccount': [null, Validators.compose([Validators.required, Validators.pattern(AppRegex.NAME_REGEX)])],
|
|
21846
21864
|
'accountType': [null, Validators.required],
|
|
21847
|
-
'routingNumber': [null, [
|
|
21848
|
-
Validators.required,
|
|
21849
|
-
Validators.pattern(/^[0-4][0-9]{8}$/)
|
|
21850
|
-
]],
|
|
21865
|
+
'routingNumber': [null, Validators.compose([Validators.required])],
|
|
21851
21866
|
'bankName': [null],
|
|
21852
|
-
'accountNumber': [null, Validators.compose([Validators.required, Validators.pattern(AppRegex.ACCOUNT_NUMBER_REGEX), Validators.maxLength(17), Validators.
|
|
21853
|
-
'reEnterAccountNumber': [null, Validators.compose([Validators.required, Validators.pattern(AppRegex.ACCOUNT_NUMBER_REGEX), Validators.maxLength(17), Validators.
|
|
21867
|
+
'accountNumber': [null, Validators.compose([Validators.required, Validators.pattern(AppRegex.ACCOUNT_NUMBER_REGEX), Validators.maxLength(17), Validators.min(8)])],
|
|
21868
|
+
'reEnterAccountNumber': [null, Validators.compose([Validators.required, Validators.pattern(AppRegex.ACCOUNT_NUMBER_REGEX), Validators.maxLength(17), Validators.min(8)])]
|
|
21854
21869
|
});
|
|
21855
21870
|
this.setAccountNumberValidator();
|
|
21856
21871
|
}
|
|
21857
21872
|
submit() {
|
|
21858
|
-
//console.log("this.bankDetailsFormDirective : "+this.bankDetailsFormDirective);
|
|
21859
21873
|
if (this.bankDetailsFormDirective) {
|
|
21860
21874
|
this.bankDetailsFormDirective.onSubmit(undefined);
|
|
21861
21875
|
}
|
|
@@ -21889,7 +21903,7 @@ class BankDetailsComponent {
|
|
|
21889
21903
|
this.util.setValidation(this.routingNumber, this.routingNumberValidators);
|
|
21890
21904
|
const ROUTING_NUMBER = /^[0-4]{1}[0-9]{8}$/;
|
|
21891
21905
|
this.util.setValidation(this.routingNumber, validators1);
|
|
21892
|
-
|
|
21906
|
+
this.util.setValidation(this.routingNumber, AppValidators$1.isValidRoutingNumber);
|
|
21893
21907
|
this.util.setValidation(this.routingNumber, AppValidators$1.isValidLengthRoutingNumber);
|
|
21894
21908
|
this.reEnterAccountNumber.valueChanges.subscribe(val => {
|
|
21895
21909
|
if (this.accountNumber && (this.accountNumber.value != this.reEnterAccountNumber.value)) {
|
|
@@ -21954,14 +21968,13 @@ class BankDetailsComponent {
|
|
|
21954
21968
|
}
|
|
21955
21969
|
writeValue(value) {
|
|
21956
21970
|
if (value) {
|
|
21957
|
-
this.bankDetailsForm.
|
|
21971
|
+
this.bankDetailsForm.setValue(value, { emitEvent: false });
|
|
21958
21972
|
}
|
|
21959
21973
|
}
|
|
21960
21974
|
validate(control) {
|
|
21961
|
-
if (
|
|
21975
|
+
if (this.bankDetailsForm.valid) {
|
|
21962
21976
|
return null;
|
|
21963
21977
|
}
|
|
21964
|
-
return this.bankDetailsForm.valid ? null : { bankDetailsInvalid: true };
|
|
21965
21978
|
}
|
|
21966
21979
|
fetchBankName(event) {
|
|
21967
21980
|
if (this.routingNumber && this.routingNumber.value) {
|
|
@@ -21992,16 +22005,17 @@ class BankDetailsComponent {
|
|
|
21992
22005
|
}
|
|
21993
22006
|
}
|
|
21994
22007
|
// PGLP-1750 in correct Routing NUmber
|
|
21995
|
-
//
|
|
22008
|
+
// if Entered RoutingNumber value is not validated with given RegExp then ,RoutingNumber value is set as a null
|
|
21996
22009
|
routingNumberValidation(event) {
|
|
21997
|
-
const
|
|
21998
|
-
const
|
|
21999
|
-
if (!
|
|
22000
|
-
|
|
22001
|
-
|
|
22002
|
-
if (
|
|
22003
|
-
this.routingNumber
|
|
22004
|
-
|
|
22010
|
+
const ROUTING_NUMBER = /^[0-4]{1}[0-9]{8}$/;
|
|
22011
|
+
const valid1 = ROUTING_NUMBER.test(this.routingNumber.value);
|
|
22012
|
+
if (!valid1) {
|
|
22013
|
+
this.routingNumber.setValue(null);
|
|
22014
|
+
}
|
|
22015
|
+
if (valid1) {
|
|
22016
|
+
if (AppValidators$1.isValidRoutingNumber(this.routingNumber)) {
|
|
22017
|
+
this.routingNumber.setValue(null);
|
|
22018
|
+
}
|
|
22005
22019
|
}
|
|
22006
22020
|
}
|
|
22007
22021
|
get required() {
|
|
@@ -23527,7 +23541,9 @@ class WeeklyCertEmployerGridComponent {
|
|
|
23527
23541
|
this.activeIndex = -1;
|
|
23528
23542
|
}
|
|
23529
23543
|
publishEmployer() {
|
|
23530
|
-
this.
|
|
23544
|
+
const values = this.employers.length > 0 ? this.employers : null;
|
|
23545
|
+
this.vs.weeklyEmployers.next(values);
|
|
23546
|
+
this.onChange(values);
|
|
23531
23547
|
}
|
|
23532
23548
|
editEmployer(employer) {
|
|
23533
23549
|
this.selectedEmployer = employer;
|
|
@@ -28307,7 +28323,8 @@ class DynamicFormQuestionComponent {
|
|
|
28307
28323
|
if (this.question &&
|
|
28308
28324
|
this.question.name &&
|
|
28309
28325
|
this.form &&
|
|
28310
|
-
this.form.controls[this.question.name].errors?.wcEmployerValidation
|
|
28326
|
+
(this.form.controls[this.question.name].errors?.wcEmployerValidation ||
|
|
28327
|
+
this.form.controls[this.question.name].errors?.wcOneEmployerValidation) &&
|
|
28311
28328
|
this.form.controls[this.question.name].dirty &&
|
|
28312
28329
|
this.form.controls[this.question.name].touched) {
|
|
28313
28330
|
var keepGoing = true;
|
|
@@ -28315,6 +28332,16 @@ class DynamicFormQuestionComponent {
|
|
|
28315
28332
|
const error = control.errors;
|
|
28316
28333
|
this.wcEmployerGrid?.submit();
|
|
28317
28334
|
control.markAsDirty();
|
|
28335
|
+
//Required (no employers validation)
|
|
28336
|
+
if (error?.wcOneEmployerValidation) {
|
|
28337
|
+
if (localStorage.getItem("language") === "es") {
|
|
28338
|
+
message = 'Debe ingresar al menos un empleador.';
|
|
28339
|
+
}
|
|
28340
|
+
else {
|
|
28341
|
+
message = 'You must add at least one employer.';
|
|
28342
|
+
}
|
|
28343
|
+
return message;
|
|
28344
|
+
}
|
|
28318
28345
|
if (error?.wcEmployerValidation) {
|
|
28319
28346
|
if (localStorage.getItem("language") === "es") {
|
|
28320
28347
|
this.wcEmployerValidationMsg = 'El último día trabajado que figura en su solicitud corresponde a esta semana; por lo tanto, debe seleccionar "sí" en la pregunta "¿Realizó algún trabajo durante la semana?"';
|
|
@@ -34657,11 +34684,11 @@ class ReadMoreComponent {
|
|
|
34657
34684
|
}
|
|
34658
34685
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ReadMoreComponent, [{
|
|
34659
34686
|
type: Component,
|
|
34660
|
-
args: [{ selector: 'app-read-more', template: `
|
|
34661
|
-
<span [innerHtml]="value | trustHtml">
|
|
34662
|
-
</span>
|
|
34663
|
-
<a (click)="readMore(false)" class="link" *ngIf="!isCollapsed && !hideReadMore">...read more</a>
|
|
34664
|
-
<a (click)="readMore(true)" class="link" *ngIf="isCollapsed && !hideReadMore">...read less</a>
|
|
34687
|
+
args: [{ selector: 'app-read-more', template: `
|
|
34688
|
+
<span [innerHtml]="value | trustHtml">
|
|
34689
|
+
</span>
|
|
34690
|
+
<a (click)="readMore(false)" class="link" *ngIf="!isCollapsed && !hideReadMore">...read more</a>
|
|
34691
|
+
<a (click)="readMore(true)" class="link" *ngIf="isCollapsed && !hideReadMore">...read less</a>
|
|
34665
34692
|
`, styles: ["div.collapsed{height:250px;overflow:hidden}\n"] }]
|
|
34666
34693
|
}], () => [], { isCollapsed: [{
|
|
34667
34694
|
type: Input
|