@reusa/ngx-reusa-app-lib 0.0.1307 → 0.0.1309

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.
@@ -36687,6 +36687,17 @@ class DashboardCardComponent {
36687
36687
  this.util.openPageByContextRootWithDataAndTxnId(model.button.context, model.button.url, null, model.transactionId, this.nav);
36688
36688
  }
36689
36689
  }
36690
+ else if (model.data && model.data.qeData && model.button.fnBased === '1') {
36691
+ //new block for role based handling
36692
+ let jsonData = JSON.parse(model.data.qeData);
36693
+ let functions = [model.button.functions];
36694
+ if (this.ls.checkFunctions(functions)) {
36695
+ this.util.openPageByContextRootWithData(model.button.context, model.button.fnBasedUrl, jsonData[0].dynamicParam, this.nav);
36696
+ }
36697
+ else {
36698
+ this.util.openPageByContextRootWithData(model.button.context, model.button.url, jsonData[0].dynamicParam, this.nav);
36699
+ }
36700
+ }
36690
36701
  else if (model.data && model.data.qeData) {
36691
36702
  let jsonData = JSON.parse(model.data.qeData);
36692
36703
  this.util.openPageByContextRootWithData(model.button.context, model.button.url, jsonData[0].dynamicParam, this.nav);
@@ -41990,132 +42001,177 @@ class FileObjectArray {
41990
42001
 
41991
42002
  const _c0$h = ["uploadFileFormDirective"];
41992
42003
  const _c1$h = ["fileInput"];
41993
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_2_div_5_Template(rf, ctx) { if (rf & 1) {
41994
- i0.ɵɵelementStart(0, "div", 11);
41995
- i0.ɵɵelement(1, "app-overlay-info", 12);
42004
+ function ProofOfDocumentUploadComponent_form_0_section_2_div_2_Template(rf, ctx) { if (rf & 1) {
42005
+ i0.ɵɵelement(0, "div");
42006
+ } }
42007
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_ng_template_0_div_5_Template(rf, ctx) { if (rf & 1) {
42008
+ i0.ɵɵelementStart(0, "div", 14);
42009
+ i0.ɵɵelement(1, "app-overlay-info", 15);
41996
42010
  i0.ɵɵelementEnd();
41997
42011
  } if (rf & 2) {
41998
- const ctx_r7 = i0.ɵɵnextContext(4);
42012
+ const ctx_r12 = i0.ɵɵnextContext(5);
41999
42013
  i0.ɵɵadvance(1);
42000
- i0.ɵɵproperty("overlayText", ctx_r7.iconInfo);
42014
+ i0.ɵɵproperty("overlayText", ctx_r12.iconInfo);
42001
42015
  } }
42002
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_2_Template(rf, ctx) { if (rf & 1) {
42016
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_ng_template_0_Template(rf, ctx) { if (rf & 1) {
42003
42017
  i0.ɵɵelementStart(0, "tr")(1, "th");
42004
42018
  i0.ɵɵtext(2, "Document Name");
42005
42019
  i0.ɵɵelementEnd();
42006
- i0.ɵɵelementStart(3, "th", 9);
42020
+ i0.ɵɵelementStart(3, "th", 12);
42007
42021
  i0.ɵɵtext(4, " Document Type ");
42008
- i0.ɵɵtemplate(5, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_2_div_5_Template, 2, 1, "div", 10);
42022
+ i0.ɵɵtemplate(5, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_ng_template_0_div_5_Template, 2, 1, "div", 13);
42009
42023
  i0.ɵɵelementEnd();
42010
42024
  i0.ɵɵelement(6, "th");
42011
42025
  i0.ɵɵelementEnd();
42012
42026
  } if (rf & 2) {
42013
- const ctx_r4 = i0.ɵɵnextContext(3);
42027
+ const ctx_r11 = i0.ɵɵnextContext(4);
42014
42028
  i0.ɵɵadvance(5);
42015
- i0.ɵɵproperty("ngIf", ctx_r4.proofOfAnything);
42029
+ i0.ɵɵproperty("ngIf", ctx_r11.proofOfAnything);
42030
+ } }
42031
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
42032
+ i0.ɵɵtemplate(0, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_ng_template_0_Template, 7, 1, "ng-template", 11);
42033
+ } }
42034
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_5_ng_template_0_div_3_Template(rf, ctx) { if (rf & 1) {
42035
+ i0.ɵɵelementStart(0, "div", 14);
42036
+ i0.ɵɵelement(1, "app-overlay-info", 16);
42037
+ i0.ɵɵelementEnd();
42038
+ } if (rf & 2) {
42039
+ const ctx_r14 = i0.ɵɵnextContext(5);
42040
+ i0.ɵɵadvance(1);
42041
+ i0.ɵɵproperty("overlayText", ctx_r14.iconInfo);
42042
+ } }
42043
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_5_ng_template_0_Template(rf, ctx) { if (rf & 1) {
42044
+ i0.ɵɵelementStart(0, "tr")(1, "th", 12);
42045
+ i0.ɵɵtext(2, " Document Name ");
42046
+ i0.ɵɵtemplate(3, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_5_ng_template_0_div_3_Template, 2, 1, "div", 13);
42047
+ i0.ɵɵelementEnd();
42048
+ i0.ɵɵelement(4, "th")(5, "th");
42049
+ i0.ɵɵelementEnd();
42050
+ } if (rf & 2) {
42051
+ const ctx_r13 = i0.ɵɵnextContext(4);
42052
+ i0.ɵɵadvance(3);
42053
+ i0.ɵɵproperty("ngIf", ctx_r13.proofOfAnything);
42054
+ } }
42055
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_5_Template(rf, ctx) { if (rf & 1) {
42056
+ i0.ɵɵtemplate(0, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_5_ng_template_0_Template, 6, 1, "ng-template", 11);
42016
42057
  } }
42017
42058
  const _c2$9 = () => ({ "width": "90%" });
42018
42059
  const _c3$8 = a0 => ({ "ng-invalid": a0 });
42019
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template(rf, ctx) { if (rf & 1) {
42020
- const _r11 = i0.ɵɵgetCurrentView();
42021
- i0.ɵɵelementContainerStart(0, 13);
42022
- i0.ɵɵelementStart(1, "tr", 14)(2, "td");
42060
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_td_4_Template(rf, ctx) { if (rf & 1) {
42061
+ const _r20 = i0.ɵɵgetCurrentView();
42062
+ i0.ɵɵelementStart(0, "td")(1, "p-dropdown", 22);
42063
+ i0.ɵɵlistener("ngModelChange", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_td_4_Template_p_dropdown_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r20); const fileObjectQueue_r15 = i0.ɵɵnextContext().$implicit; return i0.ɵɵresetView(fileObjectQueue_r15.selectedDocumentType = $event); })("onChange", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_td_4_Template_p_dropdown_onChange_1_listener($event) { i0.ɵɵrestoreView(_r20); const fileObjectQueue_r15 = i0.ɵɵnextContext().$implicit; const ctx_r21 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r21.changeDocType(fileObjectQueue_r15, $event)); })("onClear", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_td_4_Template_p_dropdown_onClear_1_listener() { i0.ɵɵrestoreView(_r20); const fileObjectQueue_r15 = i0.ɵɵnextContext().$implicit; const ctx_r23 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r23.clearDocType(fileObjectQueue_r15)); });
42064
+ i0.ɵɵelementEnd()();
42065
+ } if (rf & 2) {
42066
+ const ctx_r25 = i0.ɵɵnextContext();
42067
+ const fileObjectQueue_r15 = ctx_r25.$implicit;
42068
+ const rowIndex_r16 = ctx_r25.rowIndex;
42069
+ const ctx_r17 = i0.ɵɵnextContext(3);
42070
+ let tmp_4_0;
42071
+ i0.ɵɵadvance(1);
42072
+ i0.ɵɵstyleMap(i0.ɵɵpureFunction0(6, _c2$9));
42073
+ i0.ɵɵproperty("options", ctx_r17.docTypeDropdown)("ngModel", fileObjectQueue_r15.selectedDocumentType)("showClear", true)("ngClass", i0.ɵɵpureFunction1(7, _c3$8, (tmp_4_0 = ctx_r17.tableRows.controls[rowIndex_r16].get("docType")) == null ? null : tmp_4_0.invalid));
42074
+ } }
42075
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_Template(rf, ctx) { if (rf & 1) {
42076
+ const _r27 = i0.ɵɵgetCurrentView();
42077
+ i0.ɵɵelementContainerStart(0, 17);
42078
+ i0.ɵɵelementStart(1, "tr", 18)(2, "td");
42023
42079
  i0.ɵɵtext(3);
42024
42080
  i0.ɵɵelementEnd();
42025
- i0.ɵɵelementStart(4, "td")(5, "p-dropdown", 15);
42026
- i0.ɵɵlistener("ngModelChange", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template_p_dropdown_ngModelChange_5_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r11); const fileObjectQueue_r8 = restoredCtx.$implicit; return i0.ɵɵresetView(fileObjectQueue_r8.selectedDocumentType = $event); })("onChange", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template_p_dropdown_onChange_5_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r11); const fileObjectQueue_r8 = restoredCtx.$implicit; const ctx_r12 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r12.changeDocType(fileObjectQueue_r8, $event)); })("onClear", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template_p_dropdown_onClear_5_listener() { const restoredCtx = i0.ɵɵrestoreView(_r11); const fileObjectQueue_r8 = restoredCtx.$implicit; const ctx_r13 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r13.clearDocType(fileObjectQueue_r8)); });
42027
- i0.ɵɵelementEnd()();
42028
- i0.ɵɵelementStart(6, "td", 16)(7, "ion-button", 17);
42029
- i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template_ion_button_click_7_listener() { const restoredCtx = i0.ɵɵrestoreView(_r11); const fileObjectQueue_r8 = restoredCtx.$implicit; const ctx_r14 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r14.removeFromQueue(fileObjectQueue_r8)); });
42030
- i0.ɵɵelement(8, "ion-icon", 18);
42081
+ i0.ɵɵtemplate(4, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_td_4_Template, 2, 9, "td", 4);
42082
+ i0.ɵɵelementStart(5, "td", 19)(6, "ion-button", 20);
42083
+ i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_Template_ion_button_click_6_listener() { const restoredCtx = i0.ɵɵrestoreView(_r27); const fileObjectQueue_r15 = restoredCtx.$implicit; const ctx_r26 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r26.removeFromQueue(fileObjectQueue_r15)); });
42084
+ i0.ɵɵelement(7, "ion-icon", 21);
42031
42085
  i0.ɵɵelementEnd()()();
42032
42086
  i0.ɵɵelementContainerEnd();
42033
42087
  } if (rf & 2) {
42034
- const fileObjectQueue_r8 = ctx.$implicit;
42035
- const rowIndex_r9 = ctx.rowIndex;
42036
- const ctx_r5 = i0.ɵɵnextContext(3);
42037
- let tmp_6_0;
42088
+ const fileObjectQueue_r15 = ctx.$implicit;
42089
+ const rowIndex_r16 = ctx.rowIndex;
42090
+ const ctx_r9 = i0.ɵɵnextContext(3);
42038
42091
  i0.ɵɵadvance(1);
42039
- i0.ɵɵproperty("formGroupName", rowIndex_r9);
42040
- i0.ɵɵadvance(2);
42041
- i0.ɵɵtextInterpolate(fileObjectQueue_r8 == null ? null : fileObjectQueue_r8.fileName);
42092
+ i0.ɵɵproperty("formGroupName", rowIndex_r16);
42042
42093
  i0.ɵɵadvance(2);
42043
- i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c2$9));
42044
- i0.ɵɵproperty("options", ctx_r5.docTypeDropdown)("ngModel", fileObjectQueue_r8.selectedDocumentType)("showClear", true)("ngClass", i0.ɵɵpureFunction1(9, _c3$8, (tmp_6_0 = ctx_r5.tableRows.controls[rowIndex_r9].get("docType")) == null ? null : tmp_6_0.invalid));
42094
+ i0.ɵɵtextInterpolate(fileObjectQueue_r15 == null ? null : fileObjectQueue_r15.fileName);
42095
+ i0.ɵɵadvance(1);
42096
+ i0.ɵɵproperty("ngIf", ctx_r9.docType.length > 0);
42045
42097
  } }
42046
42098
  const _c4$8 = () => ["fal", "plus"];
42047
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_1_Template(rf, ctx) { if (rf & 1) {
42048
- const _r20 = i0.ɵɵgetCurrentView();
42049
- i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "b");
42099
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_1_Template(rf, ctx) { if (rf & 1) {
42100
+ const _r33 = i0.ɵɵgetCurrentView();
42101
+ i0.ɵɵelementStart(0, "td", 24)(1, "div", 25)(2, "b");
42050
42102
  i0.ɵɵtext(3, "+ Add");
42051
42103
  i0.ɵɵelementEnd();
42052
42104
  i0.ɵɵtext(4, " document");
42053
42105
  i0.ɵɵelementEnd();
42054
- i0.ɵɵelementStart(5, "input", 22, 23);
42055
- i0.ɵɵlistener("change", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_1_Template_input_change_5_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r19.addToQueue($event)); });
42106
+ i0.ɵɵelementStart(5, "input", 26, 27);
42107
+ i0.ɵɵlistener("change", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_1_Template_input_change_5_listener($event) { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r32.addToQueue($event)); });
42056
42108
  i0.ɵɵelementEnd();
42057
- i0.ɵɵelementStart(7, "ion-button", 24);
42058
- i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_1_Template_ion_button_click_7_listener() { i0.ɵɵrestoreView(_r20); const _r18 = i0.ɵɵreference(6); return i0.ɵɵresetView(_r18.click()); });
42059
- i0.ɵɵelement(8, "fa-icon", 25);
42109
+ i0.ɵɵelementStart(7, "ion-button", 28);
42110
+ i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_1_Template_ion_button_click_7_listener() { i0.ɵɵrestoreView(_r33); const _r31 = i0.ɵɵreference(6); return i0.ɵɵresetView(_r31.click()); });
42111
+ i0.ɵɵelement(8, "fa-icon", 29);
42060
42112
  i0.ɵɵelementEnd()();
42061
42113
  } if (rf & 2) {
42062
- const ctx_r16 = i0.ɵɵnextContext(5);
42114
+ const ctx_r29 = i0.ɵɵnextContext(5);
42063
42115
  i0.ɵɵadvance(5);
42064
- i0.ɵɵproperty("accept", ctx_r16.allowedFileType);
42116
+ i0.ɵɵproperty("accept", ctx_r29.allowedFileType);
42065
42117
  i0.ɵɵadvance(3);
42066
42118
  i0.ɵɵproperty("icon", i0.ɵɵpureFunction0(2, _c4$8));
42067
42119
  } }
42068
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_2_Template(rf, ctx) { if (rf & 1) {
42069
- const _r24 = i0.ɵɵgetCurrentView();
42070
- i0.ɵɵelementStart(0, "td", 20)(1, "div", 21)(2, "b");
42120
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_2_Template(rf, ctx) { if (rf & 1) {
42121
+ const _r37 = i0.ɵɵgetCurrentView();
42122
+ i0.ɵɵelementStart(0, "td", 24)(1, "div", 25)(2, "b");
42071
42123
  i0.ɵɵtext(3, "+ Add");
42072
42124
  i0.ɵɵelementEnd();
42073
42125
  i0.ɵɵtext(4, " any other document");
42074
42126
  i0.ɵɵelementEnd();
42075
- i0.ɵɵelementStart(5, "input", 22, 23);
42076
- i0.ɵɵlistener("change", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_2_Template_input_change_5_listener($event) { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r23.addToQueue($event)); });
42127
+ i0.ɵɵelementStart(5, "input", 26, 27);
42128
+ i0.ɵɵlistener("change", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_2_Template_input_change_5_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(5); return i0.ɵɵresetView(ctx_r36.addToQueue($event)); });
42077
42129
  i0.ɵɵelementEnd();
42078
- i0.ɵɵelementStart(7, "ion-button", 24);
42079
- i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_2_Template_ion_button_click_7_listener() { i0.ɵɵrestoreView(_r24); const _r22 = i0.ɵɵreference(6); return i0.ɵɵresetView(_r22.click()); });
42080
- i0.ɵɵelement(8, "fa-icon", 25);
42130
+ i0.ɵɵelementStart(7, "ion-button", 28);
42131
+ i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_2_Template_ion_button_click_7_listener() { i0.ɵɵrestoreView(_r37); const _r35 = i0.ɵɵreference(6); return i0.ɵɵresetView(_r35.click()); });
42132
+ i0.ɵɵelement(8, "fa-icon", 29);
42081
42133
  i0.ɵɵelementEnd()();
42082
42134
  } if (rf & 2) {
42083
- const ctx_r17 = i0.ɵɵnextContext(5);
42135
+ const ctx_r30 = i0.ɵɵnextContext(5);
42084
42136
  i0.ɵɵadvance(5);
42085
- i0.ɵɵproperty("accept", ctx_r17.allowedFileType);
42137
+ i0.ɵɵproperty("accept", ctx_r30.allowedFileType);
42086
42138
  i0.ɵɵadvance(3);
42087
42139
  i0.ɵɵproperty("icon", i0.ɵɵpureFunction0(2, _c4$8));
42088
42140
  } }
42089
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_Template(rf, ctx) { if (rf & 1) {
42141
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_Template(rf, ctx) { if (rf & 1) {
42090
42142
  i0.ɵɵelementStart(0, "tr");
42091
- i0.ɵɵtemplate(1, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_1_Template, 9, 3, "td", 19)(2, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_td_2_Template, 9, 3, "td", 19);
42143
+ i0.ɵɵtemplate(1, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_1_Template, 9, 3, "td", 23)(2, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_td_2_Template, 9, 3, "td", 23);
42092
42144
  i0.ɵɵelement(3, "td")(4, "td");
42093
42145
  i0.ɵɵelementEnd();
42094
42146
  } if (rf & 2) {
42095
- const ctx_r15 = i0.ɵɵnextContext(4);
42147
+ const ctx_r28 = i0.ɵɵnextContext(4);
42096
42148
  i0.ɵɵadvance(1);
42097
- i0.ɵɵproperty("ngIf", ctx_r15.fileObjectQueue.length == 0);
42149
+ i0.ɵɵproperty("ngIf", ctx_r28.fileObjectQueue.length == 0);
42098
42150
  i0.ɵɵadvance(1);
42099
- i0.ɵɵproperty("ngIf", ctx_r15.fileObjectQueue.length > 0);
42151
+ i0.ɵɵproperty("ngIf", ctx_r28.fileObjectQueue.length > 0);
42100
42152
  } }
42101
- function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_Template(rf, ctx) { if (rf & 1) {
42102
- i0.ɵɵtemplate(0, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_tr_0_Template, 5, 2, "tr", 4);
42153
+ function ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_Template(rf, ctx) { if (rf & 1) {
42154
+ i0.ɵɵtemplate(0, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_tr_0_Template, 5, 2, "tr", 4);
42103
42155
  } if (rf & 2) {
42104
- const ctx_r6 = i0.ɵɵnextContext(3);
42105
- i0.ɵɵproperty("ngIf", ctx_r6.proofOfAnything);
42156
+ const ctx_r10 = i0.ɵɵnextContext(3);
42157
+ i0.ɵɵproperty("ngIf", ctx_r10.proofOfAnything);
42106
42158
  } }
42107
42159
  function ProofOfDocumentUploadComponent_form_0_section_2_Template(rf, ctx) { if (rf & 1) {
42108
42160
  i0.ɵɵelementStart(0, "section")(1, "p-table", 5);
42109
- i0.ɵɵtemplate(2, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_2_Template, 7, 1, "ng-template", 6)(3, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template, 9, 11, "ng-template", 7)(4, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_4_Template, 1, 1, "ng-template", 8);
42161
+ i0.ɵɵtemplate(2, ProofOfDocumentUploadComponent_form_0_section_2_div_2_Template, 1, 0, "div", 6)(3, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_3_Template, 1, 0, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor)(5, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_5_Template, 1, 0, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor)(7, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_7_Template, 8, 3, "ng-template", 9)(8, ProofOfDocumentUploadComponent_form_0_section_2_ng_template_8_Template, 1, 1, "ng-template", 10);
42110
42162
  i0.ɵɵelementEnd()();
42111
42163
  } if (rf & 2) {
42164
+ const _r6 = i0.ɵɵreference(4);
42165
+ const _r8 = i0.ɵɵreference(6);
42112
42166
  const ctx_r3 = i0.ɵɵnextContext(2);
42113
42167
  i0.ɵɵadvance(1);
42114
42168
  i0.ɵɵproperty("value", ctx_r3.fileObjectQueue)("loading", ctx_r3.showProgress);
42169
+ i0.ɵɵadvance(1);
42170
+ i0.ɵɵproperty("ngIf", ctx_r3.docType.length > 0)("ngIfThen", _r6)("ngIfElse", _r8);
42115
42171
  } }
42116
42172
  function ProofOfDocumentUploadComponent_form_0_Template(rf, ctx) { if (rf & 1) {
42117
42173
  i0.ɵɵelementStart(0, "form", 2, 3);
42118
- i0.ɵɵtemplate(2, ProofOfDocumentUploadComponent_form_0_section_2_Template, 5, 2, "section", 4);
42174
+ i0.ɵɵtemplate(2, ProofOfDocumentUploadComponent_form_0_section_2_Template, 9, 5, "section", 4);
42119
42175
  i0.ɵɵelementEnd();
42120
42176
  } if (rf & 2) {
42121
42177
  const ctx_r0 = i0.ɵɵnextContext();
@@ -42124,65 +42180,65 @@ function ProofOfDocumentUploadComponent_form_0_Template(rf, ctx) { if (rf & 1) {
42124
42180
  i0.ɵɵproperty("ngIf", ctx_r0.context != "signature" && ctx_r0.context != "uploadZipCodes");
42125
42181
  } }
42126
42182
  function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template(rf, ctx) { if (rf & 1) {
42127
- const _r40 = i0.ɵɵgetCurrentView();
42128
- i0.ɵɵelementStart(0, "div", 35);
42129
- i0.ɵɵelement(1, "i", 36);
42130
- i0.ɵɵelementStart(2, "input", 37, 23);
42131
- i0.ɵɵlistener("change", function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r40); const employer_r27 = i0.ɵɵnextContext(2).$implicit; const ctx_r38 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r38.addFileToEmployerData($event, employer_r27)); });
42183
+ const _r53 = i0.ɵɵgetCurrentView();
42184
+ i0.ɵɵelementStart(0, "div", 39);
42185
+ i0.ɵɵelement(1, "i", 40);
42186
+ i0.ɵɵelementStart(2, "input", 41, 27);
42187
+ i0.ɵɵlistener("change", function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template_input_change_2_listener($event) { i0.ɵɵrestoreView(_r53); const employer_r40 = i0.ɵɵnextContext(2).$implicit; const ctx_r51 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r51.addFileToEmployerData($event, employer_r40)); });
42132
42188
  i0.ɵɵelementEnd();
42133
- i0.ɵɵelementStart(4, "ion-button", 38);
42134
- i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template_ion_button_click_4_listener() { i0.ɵɵrestoreView(_r40); const _r37 = i0.ɵɵreference(3); return i0.ɵɵresetView(_r37.click()); });
42189
+ i0.ɵɵelementStart(4, "ion-button", 42);
42190
+ i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template_ion_button_click_4_listener() { i0.ɵɵrestoreView(_r53); const _r50 = i0.ɵɵreference(3); return i0.ɵɵresetView(_r50.click()); });
42135
42191
  i0.ɵɵtext(5, " Upload ");
42136
42192
  i0.ɵɵelementEnd()();
42137
42193
  } if (rf & 2) {
42138
- const ctx_r35 = i0.ɵɵnextContext(4);
42194
+ const ctx_r48 = i0.ɵɵnextContext(4);
42139
42195
  i0.ɵɵadvance(2);
42140
- i0.ɵɵproperty("accept", ctx_r35.allowedFileType);
42196
+ i0.ɵɵproperty("accept", ctx_r48.allowedFileType);
42141
42197
  } }
42142
42198
  function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_7_Template(rf, ctx) { if (rf & 1) {
42143
- const _r44 = i0.ɵɵgetCurrentView();
42144
- i0.ɵɵelementStart(0, "div")(1, "div", 39)(2, "div", 40)(3, "span");
42145
- i0.ɵɵelement(4, "i", 41);
42199
+ const _r57 = i0.ɵɵgetCurrentView();
42200
+ i0.ɵɵelementStart(0, "div")(1, "div", 43)(2, "div", 44)(3, "span");
42201
+ i0.ɵɵelement(4, "i", 45);
42146
42202
  i0.ɵɵtext(5);
42147
42203
  i0.ɵɵelementEnd();
42148
- i0.ɵɵelementStart(6, "ion-button", 42);
42149
- i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_7_Template_ion_button_click_6_listener() { i0.ɵɵrestoreView(_r44); const employer_r27 = i0.ɵɵnextContext(2).$implicit; const ctx_r42 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r42.removeFileFromEmployerData(employer_r27)); });
42150
- i0.ɵɵelement(7, "ion-icon", 18);
42204
+ i0.ɵɵelementStart(6, "ion-button", 46);
42205
+ i0.ɵɵlistener("click", function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_7_Template_ion_button_click_6_listener() { i0.ɵɵrestoreView(_r57); const employer_r40 = i0.ɵɵnextContext(2).$implicit; const ctx_r55 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r55.removeFileFromEmployerData(employer_r40)); });
42206
+ i0.ɵɵelement(7, "ion-icon", 21);
42151
42207
  i0.ɵɵelementEnd()()()();
42152
42208
  } if (rf & 2) {
42153
- const employer_r27 = i0.ɵɵnextContext(2).$implicit;
42209
+ const employer_r40 = i0.ɵɵnextContext(2).$implicit;
42154
42210
  i0.ɵɵadvance(5);
42155
- i0.ɵɵtextInterpolate1("", employer_r27.file.fileName, " ");
42211
+ i0.ɵɵtextInterpolate1("", employer_r40.file.fileName, " ");
42156
42212
  } }
42157
42213
  function ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
42158
- i0.ɵɵelementStart(0, "ion-row")(1, "ion-col", 31)(2, "h4", 32);
42214
+ i0.ɵɵelementStart(0, "ion-row")(1, "ion-col", 35)(2, "h4", 36);
42159
42215
  i0.ɵɵtext(3);
42160
42216
  i0.ɵɵelementEnd();
42161
- i0.ɵɵelement(4, "app-overlay-info", 12);
42217
+ i0.ɵɵelement(4, "app-overlay-info", 15);
42162
42218
  i0.ɵɵelementEnd()();
42163
- i0.ɵɵelementStart(5, "div", 33);
42164
- i0.ɵɵtemplate(6, ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template, 6, 1, "div", 34)(7, ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_7_Template, 8, 1, "div", 4);
42219
+ i0.ɵɵelementStart(5, "div", 37);
42220
+ i0.ɵɵtemplate(6, ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_6_Template, 6, 1, "div", 38)(7, ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_div_7_Template, 8, 1, "div", 4);
42165
42221
  i0.ɵɵelementEnd();
42166
42222
  } if (rf & 2) {
42167
- const employer_r27 = i0.ɵɵnextContext().$implicit;
42168
- const ctx_r29 = i0.ɵɵnextContext(2);
42223
+ const employer_r40 = i0.ɵɵnextContext().$implicit;
42224
+ const ctx_r42 = i0.ɵɵnextContext(2);
42169
42225
  i0.ɵɵadvance(3);
42170
- i0.ɵɵtextInterpolate(employer_r27.employerName);
42226
+ i0.ɵɵtextInterpolate(employer_r40.employerName);
42171
42227
  i0.ɵɵadvance(1);
42172
- i0.ɵɵproperty("overlayText", ctx_r29.iconInfo);
42228
+ i0.ɵɵproperty("overlayText", ctx_r42.iconInfo);
42173
42229
  i0.ɵɵadvance(2);
42174
- i0.ɵɵproperty("ngIf", !employer_r27.file);
42230
+ i0.ɵɵproperty("ngIf", !employer_r40.file);
42175
42231
  i0.ɵɵadvance(1);
42176
- i0.ɵɵproperty("ngIf", employer_r27.file);
42232
+ i0.ɵɵproperty("ngIf", employer_r40.file);
42177
42233
  } }
42178
42234
  function ProofOfDocumentUploadComponent_ul_1_li_1_Template(rf, ctx) { if (rf & 1) {
42179
- i0.ɵɵelementStart(0, "li", 28)(1, "p-card", 29);
42180
- i0.ɵɵtemplate(2, ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_Template, 8, 4, "ng-template", 30);
42235
+ i0.ɵɵelementStart(0, "li", 32)(1, "p-card", 33);
42236
+ i0.ɵɵtemplate(2, ProofOfDocumentUploadComponent_ul_1_li_1_ng_template_2_Template, 8, 4, "ng-template", 34);
42181
42237
  i0.ɵɵelementEnd()();
42182
42238
  } }
42183
42239
  function ProofOfDocumentUploadComponent_ul_1_Template(rf, ctx) { if (rf & 1) {
42184
- i0.ɵɵelementStart(0, "ul", 26);
42185
- i0.ɵɵtemplate(1, ProofOfDocumentUploadComponent_ul_1_li_1_Template, 3, 0, "li", 27);
42240
+ i0.ɵɵelementStart(0, "ul", 30);
42241
+ i0.ɵɵtemplate(1, ProofOfDocumentUploadComponent_ul_1_li_1_Template, 3, 0, "li", 31);
42186
42242
  i0.ɵɵelementEnd();
42187
42243
  } if (rf & 2) {
42188
42244
  const ctx_r1 = i0.ɵɵnextContext();
@@ -42218,11 +42274,13 @@ class ProofOfDocumentUploadComponent {
42218
42274
  tableRowArray: this.formBuilder.array([])
42219
42275
  });
42220
42276
  this.docForm.emit(this.formArray);
42221
- this.docTypeDropdown = this.docType.map((i) => ({
42222
- label: i.docDescription,
42223
- value: i,
42224
- disabled: false
42225
- }));
42277
+ if (this.docType.length > 0) {
42278
+ this.docTypeDropdown = this.docType.map((i) => ({
42279
+ label: i.docDescription,
42280
+ value: i,
42281
+ disabled: false
42282
+ }));
42283
+ }
42226
42284
  this.fileTypes = this.allowedFileType.split(',');
42227
42285
  }
42228
42286
  writeValue() {
@@ -42279,9 +42337,12 @@ class ProofOfDocumentUploadComponent {
42279
42337
  encoded = await toBase64(file);
42280
42338
  }
42281
42339
  const fileObject = new FileObject(this.selectedDocumentType?.docType, this.selectedDocumentType?.docDescription, file.name, file.type, encoded);
42282
- var uploadFileForm = this.formBuilder.group({
42283
- 'docType': [null, Validators.required]
42284
- });
42340
+ var uploadFileForm = this.formBuilder.group({});
42341
+ if (this.docType.length > 0) {
42342
+ uploadFileForm = this.formBuilder.group({
42343
+ 'docType': [null, Validators.required]
42344
+ });
42345
+ }
42285
42346
  this.tableRows.push(uploadFileForm);
42286
42347
  this.fileObjectQueue.push(fileObject);
42287
42348
  this.upload.emit(this.fileObjectQueue);
@@ -42416,7 +42477,7 @@ class ProofOfDocumentUploadComponent {
42416
42477
  provide: NG_VALUE_ACCESSOR,
42417
42478
  useExisting: ProofOfDocumentUploadComponent,
42418
42479
  multi: true
42419
- }]), i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [[3, "formGroup", 4, "ngIf"], ["class", "no-bullets gap-3", 4, "ngIf"], [3, "formGroup"], ["uploadFileFormDirective", "ngForm"], [4, "ngIf"], ["dataKey", "fileName", "responsiveLayout", "scroll", 3, "value", "loading"], ["pTemplate", "header"], ["pTemplate", "body"], ["pTemplate", "footer"], [1, "flex", "flex-row", "align-items-center"], ["class", "pl-1", 4, "ngIf"], [1, "pl-1"], [2, "margin-top", "2px", "margin-left", "6px", 3, "overlayText"], ["formArrayName", "tableRowArray"], [3, "formGroupName"], ["formControlName", "docType", "optionLabel", "label", "optionValue", "value", "placeholder", "Select a Document Type", "appendTo", "body", 1, "ng-invalid", "ng-dirty", 3, "options", "ngModel", "showClear", "ngClass", "ngModelChange", "onChange", "onClear"], [1, "ion-text-right", 2, "padding-right", "unset"], ["shape", "round", "fill", "outline", "size", "small", "pTooltip", "Remove", "tooltipPosition", "bottom", 1, "ion-padding-left", 3, "click"], ["name", "trash-outline"], ["class", "file-input-container flex flex-row align-items-center", 4, "ngIf"], [1, "file-input-container", "flex", "flex-row", "align-items-center"], [1, "pr-1"], ["type", "file", 3, "accept", "change"], ["fileInput", ""], ["aria-label", "Add Files", "fill", "outline", "size", "small", 1, "action-button", 3, "click"], [1, "action-icon", 3, "icon"], [1, "no-bullets", "gap-3"], ["class", "pb-3", 4, "ngFor", "ngForOf"], [1, "pb-3"], [1, "pb-2", "gap-3"], ["class", "p-3", "pTemplate", "content"], [1, "flex", "flex-row", "align-items-center", "gap-1"], ["stlye", "margin: 0", 1, "m-0"], [1, "flex", "align-items-center", "justify-content-center", "flex-column", "border-2", "border-dashed", "border-400", "rounded-sm", "p-2"], ["class", "flex align-items-center justify-content-center flex-column", 4, "ngIf"], [1, "flex", "align-items-center", "justify-content-center", "flex-column"], [1, "pi", "pi-upload", "border-2", "border-circle", "p-2", "m-2", "text-xl", "text-400"], ["id", "employerWorkSearchFileInput", "type", "file", 2, "display", "none", 3, "accept", "change"], ["aria-label", "Add Files", "fill", "outline", "size", "small", 1, "action-button", 2, "float", "inline-end", 3, "click"], [1, "flex", "align-items-center", "justify-content-center", "flex-column", "p-0", "sm:p-2", "gap-5"], [1, "card", "m-0", "px-6", "flex", "align-items-center", "justify-content-center", "flex-column", "gap-2"], [1, "pi", "pi-file", 2, "color", "#4478AA"], ["aria-label", "Remove Files", "fill", "outline", "size", "small", "pTooltip", "Remove", "tooltipPosition", "bottom", 1, "ion-padding-left", 2, "float", "inline-end", 3, "click"]], template: function ProofOfDocumentUploadComponent_Template(rf, ctx) { if (rf & 1) {
42480
+ }]), i0.ɵɵNgOnChangesFeature], decls: 2, vars: 2, consts: [[3, "formGroup", 4, "ngIf"], ["class", "no-bullets gap-3", 4, "ngIf"], [3, "formGroup"], ["uploadFileFormDirective", "ngForm"], [4, "ngIf"], ["dataKey", "fileName", "responsiveLayout", "scroll", 3, "value", "loading"], [4, "ngIf", "ngIfThen", "ngIfElse"], ["showDocTypeHeading", ""], ["removeDocTypeHeading", ""], ["pTemplate", "body"], ["pTemplate", "footer"], ["pTemplate", "header"], [1, "flex", "flex-row", "align-items-center"], ["class", "pl-1", 4, "ngIf"], [1, "pl-1"], [2, "margin-top", "2px", "margin-left", "6px", 3, "overlayText"], [3, "overlayText"], ["formArrayName", "tableRowArray"], [3, "formGroupName"], [1, "ion-text-right", 2, "padding-right", "unset"], ["shape", "round", "fill", "outline", "size", "small", "pTooltip", "Remove", "tooltipPosition", "bottom", 1, "ion-padding-left", 3, "click"], ["name", "trash-outline"], ["formControlName", "docType", "optionLabel", "label", "optionValue", "value", "placeholder", "Select a Document Type", "appendTo", "body", 1, "ng-invalid", "ng-dirty", 3, "options", "ngModel", "showClear", "ngClass", "ngModelChange", "onChange", "onClear"], ["class", "file-input-container flex flex-row align-items-center", 4, "ngIf"], [1, "file-input-container", "flex", "flex-row", "align-items-center"], [1, "pr-1"], ["type", "file", 3, "accept", "change"], ["fileInput", ""], ["aria-label", "Add Files", "fill", "outline", "size", "small", 1, "action-button", 3, "click"], [1, "action-icon", 3, "icon"], [1, "no-bullets", "gap-3"], ["class", "pb-3", 4, "ngFor", "ngForOf"], [1, "pb-3"], [1, "pb-2", "gap-3"], ["class", "p-3", "pTemplate", "content"], [1, "flex", "flex-row", "align-items-center", "gap-1"], ["stlye", "margin: 0", 1, "m-0"], [1, "flex", "align-items-center", "justify-content-center", "flex-column", "border-2", "border-dashed", "border-400", "rounded-sm", "p-2"], ["class", "flex align-items-center justify-content-center flex-column", 4, "ngIf"], [1, "flex", "align-items-center", "justify-content-center", "flex-column"], [1, "pi", "pi-upload", "border-2", "border-circle", "p-2", "m-2", "text-xl", "text-400"], ["id", "employerWorkSearchFileInput", "type", "file", 2, "display", "none", 3, "accept", "change"], ["aria-label", "Add Files", "fill", "outline", "size", "small", 1, "action-button", 2, "float", "inline-end", 3, "click"], [1, "flex", "align-items-center", "justify-content-center", "flex-column", "p-0", "sm:p-2", "gap-5"], [1, "card", "m-0", "px-6", "flex", "align-items-center", "justify-content-center", "flex-column", "gap-2"], [1, "pi", "pi-file", 2, "color", "#4478AA"], ["aria-label", "Remove Files", "fill", "outline", "size", "small", "pTooltip", "Remove", "tooltipPosition", "bottom", 1, "ion-padding-left", 2, "float", "inline-end", 3, "click"]], template: function ProofOfDocumentUploadComponent_Template(rf, ctx) { if (rf & 1) {
42420
42481
  i0.ɵɵtemplate(0, ProofOfDocumentUploadComponent_form_0_Template, 3, 2, "form", 0)(1, ProofOfDocumentUploadComponent_ul_1_Template, 2, 1, "ul", 1);
42421
42482
  } if (rf & 2) {
42422
42483
  i0.ɵɵproperty("ngIf", !ctx.employerDataModel);
@@ -42430,7 +42491,7 @@ class ProofOfDocumentUploadComponent {
42430
42491
  provide: NG_VALUE_ACCESSOR,
42431
42492
  useExisting: ProofOfDocumentUploadComponent,
42432
42493
  multi: true
42433
- }], template: "<form [formGroup]=\"formArray\" #uploadFileFormDirective=\"ngForm\" *ngIf=\"!employerDataModel\">\r\n <section *ngIf=\"this.context != 'signature' && this.context !='uploadZipCodes'\">\r\n <p-table dataKey=\"fileName\" [value]=\"fileObjectQueue\" responsiveLayout=\"scroll\" [loading]=\"showProgress\">\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th>Document Name</th>\r\n <th class=\"flex flex-row align-items-center\">\r\n Document Type\r\n <div *ngIf=\"proofOfAnything\" class=\"pl-1\">\r\n <app-overlay-info [overlayText]=\"iconInfo\"\r\n style=\"margin-top: 2px; margin-left: 6px; \"></app-overlay-info>\r\n </div>\r\n </th>\r\n <th></th>\r\n </tr>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-fileObjectQueue let-rowIndex=\"rowIndex\">\r\n <ng-container formArrayName=\"tableRowArray\">\r\n <tr [formGroupName]=\"rowIndex\">\r\n <td>{{ fileObjectQueue?.fileName }}</td>\r\n <td>\r\n <p-dropdown [options]=\"docTypeDropdown\" formControlName=\"docType\" [(ngModel)]=\"fileObjectQueue.selectedDocumentType\" \r\n (onChange)=\"changeDocType(fileObjectQueue,$event)\" \r\n optionLabel=\"label\" optionValue=\"value\" placeholder=\"Select a Document Type\" appendTo=body\r\n [style]=\"{'width':'90%'}\"\r\n class=\"ng-invalid ng-dirty\"\r\n [showClear]=\"true\"\r\n (onClear)=\"clearDocType(fileObjectQueue)\"\r\n [ngClass]=\"{'ng-invalid':tableRows.controls[rowIndex].get('docType')?.invalid}\"/>\r\n </td>\r\n <td class=\"ion-text-right\" style=\"padding-right: unset\">\r\n <ion-button shape=\"round\" fill=\"outline\" size=\"small\" pTooltip=\"Remove\" (click)=\"removeFromQueue(fileObjectQueue)\"\r\n tooltipPosition=\"bottom\" class=\"ion-padding-left\">\r\n <ion-icon name=\"trash-outline\"></ion-icon>\r\n </ion-button>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n \r\n </ng-template>\r\n <ng-template pTemplate=\"footer\"> \r\n <tr *ngIf=\"proofOfAnything\">\r\n <td *ngIf=\"fileObjectQueue.length == 0\" class=\"file-input-container flex flex-row align-items-center\">\r\n <div class=\"pr-1\"><b>+ Add</b> document</div >\r\n <input type=\"file\" #fileInput [accept]=\"allowedFileType\"\r\n (change)=\"addToQueue($event)\" />\r\n <ion-button aria-label=\"Add Files\" (click)=\"fileInput.click()\" fill=\"outline\" size=\"small\" class=\"action-button\">\r\n <fa-icon [icon]=\"['fal', 'plus']\" class=\"action-icon\"></fa-icon>\r\n </ion-button>\r\n </td>\r\n <td *ngIf=\"fileObjectQueue.length > 0\" class=\"file-input-container flex flex-row align-items-center\">\r\n <div class=\"pr-1\"><b>+ Add</b> any other document</div >\r\n <input type=\"file\" #fileInput [accept]=\"allowedFileType\"\r\n (change)=\"addToQueue($event)\" />\r\n <ion-button aria-label=\"Add Files\" (click)=\"fileInput.click()\" fill=\"outline\" size=\"small\" class=\"action-button\">\r\n <fa-icon [icon]=\"['fal', 'plus']\" class=\"action-icon\"></fa-icon>\r\n </ion-button>\r\n </td>\r\n <td></td>\r\n <td >\r\n \r\n </td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n </section>\r\n </form>\r\n <ul *ngIf=\"employerDataModel\" class=\"no-bullets gap-3\">\r\n <li class=\"pb-3\" *ngFor=\"let employer of employerDataModel; let i = index\">\r\n <p-card class=\"pb-2 gap-3\">\r\n <ng-template class=\"p-3\" pTemplate=\"content\" let-files let-uploadedFiles=\"uploadedFiles\" let-removeFileCallback=\"removeFileCallback\" let-removeUploadedFileCallback=\"removeUploadedFileCallback\" let-chooseCallback=\"chooseCallback\">\r\n \r\n <ion-row>\r\n <ion-col class=\"flex flex-row align-items-center gap-1\">\r\n <h4 class=\"m-0\" stlye=\"margin: 0\">{{employer.employerName}}</h4>\r\n <app-overlay-info [overlayText]=\"iconInfo\"\r\n style=\"margin-top: 2px; margin-left: 6px;\"></app-overlay-info>\r\n </ion-col>\r\n </ion-row>\r\n <div class=\"flex align-items-center justify-content-center flex-column border-2 border-dashed border-400 rounded-sm p-2\">\r\n <div *ngIf=\"!employer.file\" class=\"flex align-items-center justify-content-center flex-column\">\r\n <i class=\"pi pi-upload border-2 border-circle p-2 m-2 text-xl text-400\"></i>\r\n <input id=\"employerWorkSearchFileInput\" type=\"file\" #fileInput [accept]=\"allowedFileType\"\r\n (change)=\"addFileToEmployerData($event,employer)\" style=\"display: none\" />\r\n <ion-button aria-label=\"Add Files\" (click)=\"fileInput.click()\" fill=\"outline\" size=\"small\" class=\"action-button\" style=\"float:inline-end\">\r\n Upload\r\n </ion-button>\r\n </div>\r\n <div *ngIf=\"employer.file\">\r\n\r\n <div class=\"flex align-items-center justify-content-center flex-column p-0 sm:p-2 gap-5\">\r\n <div\r\n class=\"card m-0 px-6 flex align-items-center justify-content-center flex-column gap-2\"\r\n > \r\n <span>\r\n <i class=\"pi pi-file\" style=\"color: #4478AA\"></i>{{ employer.file.fileName }}\r\n </span>\r\n <ion-button aria-label=\"Remove Files\" fill=\"outline\" size=\"small\" pTooltip=\"Remove\" (click)=\"removeFileFromEmployerData(employer)\"\r\n tooltipPosition=\"bottom\" class=\"ion-padding-left\" style=\"float: inline-end\">\r\n <ion-icon name=\"trash-outline\"></ion-icon>\r\n </ion-button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n\r\n \r\n </ng-template>\r\n </p-card>\r\n </li>\r\n </ul>", styles: [".file-input-container{text-align:right}.file-input-container input[type=file]{display:none}.file-input-container label{border:1px solid #ccc;padding:6px 12px;cursor:pointer}.upload-input-container input[type=file]{display:none}.upload-input-container label{border:1px solid #ccc;cursor:pointer}:host ::ng-deep .p-datatable .p-datatable-thead>tr>th{background:#fff!important;background-color:#fff!important}ol,ul{list-style:none}ul{list-style-type:square}li{color:var(--ion-color-grey)}.ng-invalid{border-color:#f44336}.seperate-row td:not(:first-child):not(:last-child){border-left:none;border-right:none}.seperate-row td:first-child{border-right:none}.seperate-row td:last-child{border-left:none;padding:1rem .55rem;padding-right:20px}.seperate-row td{border:1px solid #e4e4e4;font-family:\"Open Sans, Light\";font-size:26px;padding:1rem .55rem}.no-bullets{list-style-type:none;padding-left:0}:host ::ng-deep .remove-header .p-fileupload-buttonbar{display:none}:host ::ng-deep .remove-header .p-fileupload-content{border-top-right-radius:4px;border-top-left-radius:4px;padding:1rem}:host ::ng-deep .p-card .p-card-body .p-card-content{padding:1rem!important}.border-400{border-color:#4478aa!important;border-radius:6px}\n"] }]
42494
+ }], template: "<form [formGroup]=\"formArray\" #uploadFileFormDirective=\"ngForm\" *ngIf=\"!employerDataModel\">\r\n <section *ngIf=\"this.context != 'signature' && this.context !='uploadZipCodes'\">\r\n <p-table dataKey=\"fileName\" [value]=\"fileObjectQueue\" responsiveLayout=\"scroll\" [loading]=\"showProgress\">\r\n <div *ngIf = \"docType.length > 0; then showDocTypeHeading; else removeDocTypeHeading\" ></div>\r\n <ng-template #showDocTypeHeading>\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th>Document Name</th>\r\n <th class=\"flex flex-row align-items-center\">\r\n Document Type\r\n <div *ngIf=\"proofOfAnything\" class=\"pl-1\">\r\n <app-overlay-info [overlayText]=\"iconInfo\" style=\"margin-top: 2px; margin-left: 6px; \"></app-overlay-info>\r\n </div>\r\n </th>\r\n <th></th>\r\n </tr>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template #removeDocTypeHeading>\r\n <ng-template pTemplate=\"header\">\r\n <tr>\r\n <th class=\"flex flex-row align-items-center\">\r\n Document Name\r\n <div *ngIf=\"proofOfAnything\" class=\"pl-1\">\r\n <app-overlay-info [overlayText]=\"iconInfo\"></app-overlay-info>\r\n </div>\r\n </th>\r\n <th></th>\r\n <th></th>\r\n </tr>\r\n </ng-template>\r\n </ng-template>\r\n <ng-template pTemplate=\"body\" let-fileObjectQueue let-rowIndex=\"rowIndex\">\r\n <ng-container formArrayName=\"tableRowArray\">\r\n <tr [formGroupName]=\"rowIndex\">\r\n <td>{{ fileObjectQueue?.fileName }}</td>\r\n <td *ngIf=\"docType.length > 0\">\r\n <p-dropdown [options]=\"docTypeDropdown\" formControlName=\"docType\" [(ngModel)]=\"fileObjectQueue.selectedDocumentType\" \r\n (onChange)=\"changeDocType(fileObjectQueue,$event)\" \r\n optionLabel=\"label\" optionValue=\"value\" placeholder=\"Select a Document Type\" appendTo=body\r\n [style]=\"{'width':'90%'}\"\r\n class=\"ng-invalid ng-dirty\"\r\n [showClear]=\"true\"\r\n (onClear)=\"clearDocType(fileObjectQueue)\"\r\n [ngClass]=\"{'ng-invalid':tableRows.controls[rowIndex].get('docType')?.invalid}\"/>\r\n </td>\r\n <td class=\"ion-text-right\" style=\"padding-right: unset\">\r\n <ion-button shape=\"round\" fill=\"outline\" size=\"small\" pTooltip=\"Remove\" (click)=\"removeFromQueue(fileObjectQueue)\"\r\n tooltipPosition=\"bottom\" class=\"ion-padding-left\">\r\n <ion-icon name=\"trash-outline\"></ion-icon>\r\n </ion-button>\r\n </td>\r\n </tr>\r\n </ng-container>\r\n \r\n </ng-template>\r\n <ng-template pTemplate=\"footer\"> \r\n <tr *ngIf=\"proofOfAnything\">\r\n <td *ngIf=\"fileObjectQueue.length == 0\" class=\"file-input-container flex flex-row align-items-center\">\r\n <div class=\"pr-1\"><b>+ Add</b> document</div >\r\n <input type=\"file\" #fileInput [accept]=\"allowedFileType\"\r\n (change)=\"addToQueue($event)\" />\r\n <ion-button aria-label=\"Add Files\" (click)=\"fileInput.click()\" fill=\"outline\" size=\"small\" class=\"action-button\">\r\n <fa-icon [icon]=\"['fal', 'plus']\" class=\"action-icon\"></fa-icon>\r\n </ion-button>\r\n </td>\r\n <td *ngIf=\"fileObjectQueue.length > 0\" class=\"file-input-container flex flex-row align-items-center\">\r\n <div class=\"pr-1\"><b>+ Add</b> any other document</div >\r\n <input type=\"file\" #fileInput [accept]=\"allowedFileType\"\r\n (change)=\"addToQueue($event)\" />\r\n <ion-button aria-label=\"Add Files\" (click)=\"fileInput.click()\" fill=\"outline\" size=\"small\" class=\"action-button\">\r\n <fa-icon [icon]=\"['fal', 'plus']\" class=\"action-icon\"></fa-icon>\r\n </ion-button>\r\n </td>\r\n <td></td>\r\n <td >\r\n \r\n </td>\r\n </tr>\r\n </ng-template>\r\n </p-table>\r\n </section>\r\n </form>\r\n <ul *ngIf=\"employerDataModel\" class=\"no-bullets gap-3\">\r\n <li class=\"pb-3\" *ngFor=\"let employer of employerDataModel; let i = index\">\r\n <p-card class=\"pb-2 gap-3\">\r\n <ng-template class=\"p-3\" pTemplate=\"content\" let-files let-uploadedFiles=\"uploadedFiles\" let-removeFileCallback=\"removeFileCallback\" let-removeUploadedFileCallback=\"removeUploadedFileCallback\" let-chooseCallback=\"chooseCallback\">\r\n \r\n <ion-row>\r\n <ion-col class=\"flex flex-row align-items-center gap-1\">\r\n <h4 class=\"m-0\" stlye=\"margin: 0\">{{employer.employerName}}</h4>\r\n <app-overlay-info [overlayText]=\"iconInfo\"\r\n style=\"margin-top: 2px; margin-left: 6px;\"></app-overlay-info>\r\n </ion-col>\r\n </ion-row>\r\n <div class=\"flex align-items-center justify-content-center flex-column border-2 border-dashed border-400 rounded-sm p-2\">\r\n <div *ngIf=\"!employer.file\" class=\"flex align-items-center justify-content-center flex-column\">\r\n <i class=\"pi pi-upload border-2 border-circle p-2 m-2 text-xl text-400\"></i>\r\n <input id=\"employerWorkSearchFileInput\" type=\"file\" #fileInput [accept]=\"allowedFileType\"\r\n (change)=\"addFileToEmployerData($event,employer)\" style=\"display: none\" />\r\n <ion-button aria-label=\"Add Files\" (click)=\"fileInput.click()\" fill=\"outline\" size=\"small\" class=\"action-button\" style=\"float:inline-end\">\r\n Upload\r\n </ion-button>\r\n </div>\r\n <div *ngIf=\"employer.file\">\r\n\r\n <div class=\"flex align-items-center justify-content-center flex-column p-0 sm:p-2 gap-5\">\r\n <div\r\n class=\"card m-0 px-6 flex align-items-center justify-content-center flex-column gap-2\"\r\n > \r\n <span>\r\n <i class=\"pi pi-file\" style=\"color: #4478AA\"></i>{{ employer.file.fileName }}\r\n </span>\r\n <ion-button aria-label=\"Remove Files\" fill=\"outline\" size=\"small\" pTooltip=\"Remove\" (click)=\"removeFileFromEmployerData(employer)\"\r\n tooltipPosition=\"bottom\" class=\"ion-padding-left\" style=\"float: inline-end\">\r\n <ion-icon name=\"trash-outline\"></ion-icon>\r\n </ion-button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n \r\n\r\n \r\n </ng-template>\r\n </p-card>\r\n </li>\r\n </ul>", styles: [".file-input-container{text-align:right}.file-input-container input[type=file]{display:none}.file-input-container label{border:1px solid #ccc;padding:6px 12px;cursor:pointer}.upload-input-container input[type=file]{display:none}.upload-input-container label{border:1px solid #ccc;cursor:pointer}:host ::ng-deep .p-datatable .p-datatable-thead>tr>th{background:#fff!important;background-color:#fff!important}ol,ul{list-style:none}ul{list-style-type:square}li{color:var(--ion-color-grey)}.ng-invalid{border-color:#f44336}.seperate-row td:not(:first-child):not(:last-child){border-left:none;border-right:none}.seperate-row td:first-child{border-right:none}.seperate-row td:last-child{border-left:none;padding:1rem .55rem;padding-right:20px}.seperate-row td{border:1px solid #e4e4e4;font-family:\"Open Sans, Light\";font-size:26px;padding:1rem .55rem}.no-bullets{list-style-type:none;padding-left:0}:host ::ng-deep .remove-header .p-fileupload-buttonbar{display:none}:host ::ng-deep .remove-header .p-fileupload-content{border-top-right-radius:4px;border-top-left-radius:4px;padding:1rem}:host ::ng-deep .p-card .p-card-body .p-card-content{padding:1rem!important}.border-400{border-color:#4478aa!important;border-radius:6px}\n"] }]
42434
42495
  }], () => [{ type: i1$4.UntypedFormBuilder }, { type: i4.ToastController }], { uploadFileFormDirective: [{
42435
42496
  type: ViewChild,
42436
42497
  args: ['uploadFileFormDirective', { static: false }]
@@ -47020,7 +47081,7 @@ function WorkSearchEmployerComponentMS_div_19_Template(rf, ctx) { if (rf & 1) {
47020
47081
  i0.ɵɵproperty("showIcon", true)("formControl", ctx_r2.workSearchDate)("minDate", ctx_r2.sunDate)("maxDate", ctx_r2.satDate)("defaultDate", ctx_r2.sunDate)("selectOtherMonths", true)("monthNavigator", true)("yearNavigator", true);
47021
47082
  i0.ɵɵadvance(1);
47022
47083
  i0.ɵɵclassMap("app-grid");
47023
- i0.ɵɵproperty("field", ctx_r2.workSearchDate)("form", _r0)("errDef", i0.ɵɵpureFunction1(16, _c9$1, "Date should be between " + ctx_r2.sunDateString + " and " + ctx_r2.satDateString + "."));
47084
+ i0.ɵɵproperty("field", ctx_r2.workSearchDate)("form", _r0)("errDef", i0.ɵɵpureFunction1(16, _c9$1, "Date should be between " + ctx_r2.sunDateString + " and " + ctx_r2.currentDateString + "."));
47024
47085
  } }
47025
47086
  function WorkSearchEmployerComponentMS_section_20_div_7_Template(rf, ctx) { if (rf & 1) {
47026
47087
  i0.ɵɵelementStart(0, "div")(1, "div", 6)(2, "label", 32);
@@ -47242,6 +47303,8 @@ class WorkSearchEmployerComponentMS extends BasePage {
47242
47303
  this.isReadOnly = false;
47243
47304
  this.displayJobSearchQuestions = false;
47244
47305
  this.displayJobApplicationQuestions = false;
47306
+ this.currentDate = new Date();
47307
+ this.currentDateString = new Intl.DateTimeFormat('en-US').format(this.currentDate);
47245
47308
  }
47246
47309
  ngOnInit() {
47247
47310
  if (!this.journal) {
@@ -47293,7 +47356,7 @@ class WorkSearchEmployerComponentMS extends BasePage {
47293
47356
  }
47294
47357
  this.wsrForm = this.formBuilder.group({
47295
47358
  'activityType': [wsr.activityType, Validators.required],
47296
- 'workSearchDate': [wsr.workSearchDate != null ? this.getDate(wsr.workSearchDate) : '', Validators.compose([Validators.required, AppValidators$1.isBetween(this.sunDate, this.satDate)])],
47359
+ 'workSearchDate': [wsr.workSearchDate != null ? this.getDate(wsr.workSearchDate) : '', Validators.compose([Validators.required, AppValidators$1.isBetween(this.sunDate, this.currentDate)])],
47297
47360
  'employerName': [wsr.employerName],
47298
47361
  'city': [wsr.city],
47299
47362
  'line1': [wsr.line1],
@@ -47550,7 +47613,7 @@ class WorkSearchEmployerComponentMS extends BasePage {
47550
47613
  }
47551
47614
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(WorkSearchEmployerComponentMS, [{
47552
47615
  type: Component,
47553
- args: [{ selector: 'app-work-search-employer-ms', template: "<p-dialog visible=\"true\" modal=\"true\" appendTo=\"body\" position=\"top\" [showHeader]=\"false\"\r\n [breakpoints]=\"{'1200px': '660px', '992px': '660px', '768px': '660px', '576px': '100vw'}\">\r\n <h4 style=\"color: var(--ion-color-grey); padding-left: 20px;\">{{'work.search.journal.activity.heading' |\r\n translate:dynamicParam }}</h4>\r\n <form [formGroup]=\"wsrForm\" #wsrFormDirective=\"ngForm\">\r\n <ion-grid>\r\n <ion-row>\r\n <ion-col class=\"ion-padding\" size=\"12\" sizeSm=\"12\" sizeXs=\"12\" sizeMd=\"6\" sizeLg=\"6\" sizeXl=\"6\">\r\n <div class=\"p-fluid p-formgrid\">\r\n <div class=\"field\">\r\n <label for=\"activityType\">{{'work.search.journal.activity.type' | translate}}</label>\r\n <app-dropdown [options]=\"activityTypeComboMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"activityType\" appendTo=\"body\" inputId=\"activityType\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='activityType' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <section *ngIf=\"displayJobApplicationQuestions || displayJobSearchQuestions\">\r\n <div class=\"field\">\r\n <label for=\"employerName\">{{'work.search.journal.employerName' | translate}}</label>\r\n <app-search-employer [formControl]=\"employerName\" (onFound)=\"setEmployer($event)\"\r\n [empType]=\"'REG'\"></app-search-employer>\r\n <app-error [class]=\"'app-grid'\" [field]='employerName' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.', pattern: 'only letters, numbers, spaces, and . , & \\' ( ) - # are allowed'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\">\r\n <label for=\"line1\">{{'work.search.journal.streetAddress' | translate}}</label>\r\n <input id=\"line1\" type=\"input\" pInputText [formControl]=\"line1\" maxlength=\"40\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='line1' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.', pattern: 'Only letters, numbers, spaces, commas, periods, apostrophes, hyphens, # and / allowed'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\">\r\n <label for=\"city\">{{'work.search.journal.city' | translate}}</label>\r\n <input id=\"city\" type=\"input\" pInputText [formControl]=\"city\" maxlength=\"30\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='city' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n invalidwsCityLength: 'City should not exceed a length of 30 characters',\r\n pattern: 'City name can only contain letters, spaces, and hyphens'\r\n }\"></app-error>\r\n </div>\r\n\r\n <ion-row>\r\n <ion-col style=\"padding: 0px;\">\r\n <div class=\"field\">\r\n <label for=\"state\">{{'work.search.journal.state'| translate}}</label>\r\n <app-dropdown inputId=\"state\" [options]=\"statesCombo\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n appendTo=\"body\" [formControl]=\"state\" inputId=\"state\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='state' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </ion-col>\r\n <ion-col size=\"1\"></ion-col>\r\n <ion-col style=\"padding: 0px;\">\r\n <div class=\"field\">\r\n <label for=\"zip\">{{'work.search.journal.zip'| translate}}</label>\r\n <input id=\"zip\" type=\"input\" pInputText [formControl]=\"zip\" minlength=\"5\" maxlength=\"9\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='zip' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n invalidLength: 'Zip code should be of 5 or 9 digits.',\r\n invalidNumber: 'Zip code should only have numbers.'\r\n }\"></app-error>\r\n </div>\r\n </ion-col>\r\n </ion-row>\r\n\r\n </section>\r\n </div>\r\n </ion-col>\r\n <ion-col class=\"ion-padding\" size=\"12\" sizeSm=\"12\" sizeXs=\"12\" sizeMd=\"6\" sizeLg=\"6\" sizeXl=\"6\">\r\n <div class=\"p-fluid p-formgrid\">\r\n <div class=\"field\" *ngIf=\"displayJobApplicationQuestions || displayJobSearchQuestions\">\r\n <label for=\"workSearchDate\">{{'work.search.journal.applicationDate'| translate}}</label>\r\n <p-calendar [showIcon]=\"true\" inputId=\"workSearchDate\" appendTo=\"body\" [formControl]=\"workSearchDate\" dateFormat=\"mm/dd/yy\"\r\n [minDate]=\"sunDate\" [maxDate]=\"satDate\" [defaultDate]=\"sunDate\" [selectOtherMonths]=\"true\" placeholder=\"mm/dd/yyyy\" \r\n [monthNavigator]=\"true\" [yearNavigator]=\"true\" yearRange=\"1901:2050\" (onInput)=\"dateInput($event)\"></p-calendar> \r\n <app-error [class]=\"'app-grid'\" [field]='workSearchDate' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n dateNotBetween: 'Date should be between ' + sunDateString + ' and ' + satDateString + '.'\r\n }\"></app-error>\r\n </div>\r\n <section *ngIf=\"displayJobApplicationQuestions || displayJobSearchQuestions\">\r\n <div class=\"field\">\r\n <label for=\"positionAppliedFor\">{{'work.search.journal.jobTitle'| translate}}</label>\r\n <input id=\"positionAppliedFor\" type=\"input\" pInputText [formControl]=\"positionAppliedFor\" maxlength=\"50\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='positionAppliedFor' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n pattern: 'Job Title can only contain letters, spaces, and hyphens'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div *ngIf=\"displayJobApplicationQuestions\">\r\n <div class=\"field\">\r\n <label for=\"contactMethod\">{{'work.search.journal.contactMethod'| translate}}</label>\r\n <p-selectButton [options]=\"workSearchMethodContactMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"contactMethod\"></p-selectButton>\r\n <app-error [class]=\"'app-grid'\" [field]='contactMethod' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"displayJobSearchQuestions\">\r\n <div class=\"field\">\r\n <label for=\"contactMethod\">{{'work.search.journal.contactMethodJobSearch'| translate}}</label>\r\n <p-selectButton [options]=\"workSearchMethodContactMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"contactMethod\"></p-selectButton>\r\n <app-error [class]=\"'app-grid'\" [field]='contactMethod' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value == 'TELE'\">\r\n <label for=\"employerPhone\">{{'work.search.journal.phoneNo' | translate}}</label>\r\n <p-inputMask inputId=\"employerPhone\" [formControl]=\"employerPhone\" mask=\"(999) 999-9999\"\r\n unmask=\"true\"></p-inputMask>\r\n <app-error [class]=\"'app-grid'\" [field]='employerPhone' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value == 'EMAL'\">\r\n <label for=\"employerEmail\">{{'work.search.journal.email' | translate}}</label>\r\n <input id=\"employerEmail\" type=\"input\" pInputText [formControl]=\"employerEmail\"\r\n placeholder=\"emailid@example.com\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='employerEmail' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n employerEmail: 'Invalid email address.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value == 'ONLI'\">\r\n <label for=\"employerWebsite\">{{'work.search.journal.website' | translate}}</label>\r\n <input id=\"employerWebsite\" type=\"input\" pInputText [formControl]=\"employerWebsite\" appStripInvisibleChars />\r\n <app-error [class]=\"'app-grid'\" [field]='employerWebsite' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n invalidWebsite: 'Please enter a valid website address'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value =='PRSN'\">\r\n <label for=\"empContactPersonName\">{{'work.search.journal.contactName' | translate}}</label>\r\n <input id=\"empContactPersonName\" type=\"input\" pInputText [formControl]=\"empContactPersonName\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='empContactPersonName' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value =='PRSN'\">\r\n <label for=\"empContactPersonTitle\">{{'work.search.journal.contactTitle' | translate}}</label>\r\n <input id=\"empContactPersonTitle\" type=\"input\" pInputText [formControl]=\"empContactPersonTitle\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='empContactPersonTitle' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\">\r\n <label for=\"searchResult\">{{'work.search.journal.result' | translate}}</label>\r\n <div *ngIf=\"activityType.value =='JOAP'\">\r\n <app-dropdown [options]=\"workSearchResultComboJobApplicationMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"searchResult\" appendTo=\"body\" inputId=\"searchResult\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='searchResult' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n <div *ngIf=\"activityType.value =='JOSE'\">\r\n <app-dropdown [options]=\"workSearchResultComboJobSearchMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"searchResult\" appendTo=\"body\" inputId=\"searchResult\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='searchResult' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n </section>\r\n </div>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row>\r\n <ion-col class=\"ion-text-right\">\r\n <ion-button shape=\"round\" fill=\"outline\" (click)=\"close()\" type=\"reset\">{{'button.cancel' |\r\n translate}}</ion-button>\r\n <ion-button shape=\"round\" (click)=\"add()\" type=\"submit\">{{'button.add' | translate}}</ion-button>\r\n </ion-col>\r\n </ion-row>\r\n </ion-grid>\r\n </form>\r\n</p-dialog>" }]
47616
+ args: [{ selector: 'app-work-search-employer-ms', template: "<p-dialog visible=\"true\" modal=\"true\" appendTo=\"body\" position=\"top\" [showHeader]=\"false\"\r\n [breakpoints]=\"{'1200px': '660px', '992px': '660px', '768px': '660px', '576px': '100vw'}\">\r\n <h4 style=\"color: var(--ion-color-grey); padding-left: 20px;\">{{'work.search.journal.activity.heading' |\r\n translate:dynamicParam }}</h4>\r\n <form [formGroup]=\"wsrForm\" #wsrFormDirective=\"ngForm\">\r\n <ion-grid>\r\n <ion-row>\r\n <ion-col class=\"ion-padding\" size=\"12\" sizeSm=\"12\" sizeXs=\"12\" sizeMd=\"6\" sizeLg=\"6\" sizeXl=\"6\">\r\n <div class=\"p-fluid p-formgrid\">\r\n <div class=\"field\">\r\n <label for=\"activityType\">{{'work.search.journal.activity.type' | translate}}</label>\r\n <app-dropdown [options]=\"activityTypeComboMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"activityType\" appendTo=\"body\" inputId=\"activityType\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='activityType' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <section *ngIf=\"displayJobApplicationQuestions || displayJobSearchQuestions\">\r\n <div class=\"field\">\r\n <label for=\"employerName\">{{'work.search.journal.employerName' | translate}}</label>\r\n <app-search-employer [formControl]=\"employerName\" (onFound)=\"setEmployer($event)\"\r\n [empType]=\"'REG'\"></app-search-employer>\r\n <app-error [class]=\"'app-grid'\" [field]='employerName' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.', pattern: 'only letters, numbers, spaces, and . , & \\' ( ) - # are allowed'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\">\r\n <label for=\"line1\">{{'work.search.journal.streetAddress' | translate}}</label>\r\n <input id=\"line1\" type=\"input\" pInputText [formControl]=\"line1\" maxlength=\"40\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='line1' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.', pattern: 'Only letters, numbers, spaces, commas, periods, apostrophes, hyphens, # and / allowed'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\">\r\n <label for=\"city\">{{'work.search.journal.city' | translate}}</label>\r\n <input id=\"city\" type=\"input\" pInputText [formControl]=\"city\" maxlength=\"30\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='city' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n invalidwsCityLength: 'City should not exceed a length of 30 characters',\r\n pattern: 'City name can only contain letters, spaces, and hyphens'\r\n }\"></app-error>\r\n </div>\r\n\r\n <ion-row>\r\n <ion-col style=\"padding: 0px;\">\r\n <div class=\"field\">\r\n <label for=\"state\">{{'work.search.journal.state'| translate}}</label>\r\n <app-dropdown inputId=\"state\" [options]=\"statesCombo\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n appendTo=\"body\" [formControl]=\"state\" inputId=\"state\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='state' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </ion-col>\r\n <ion-col size=\"1\"></ion-col>\r\n <ion-col style=\"padding: 0px;\">\r\n <div class=\"field\">\r\n <label for=\"zip\">{{'work.search.journal.zip'| translate}}</label>\r\n <input id=\"zip\" type=\"input\" pInputText [formControl]=\"zip\" minlength=\"5\" maxlength=\"9\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='zip' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n invalidLength: 'Zip code should be of 5 or 9 digits.',\r\n invalidNumber: 'Zip code should only have numbers.'\r\n }\"></app-error>\r\n </div>\r\n </ion-col>\r\n </ion-row>\r\n\r\n </section>\r\n </div>\r\n </ion-col>\r\n <ion-col class=\"ion-padding\" size=\"12\" sizeSm=\"12\" sizeXs=\"12\" sizeMd=\"6\" sizeLg=\"6\" sizeXl=\"6\">\r\n <div class=\"p-fluid p-formgrid\">\r\n <div class=\"field\" *ngIf=\"displayJobApplicationQuestions || displayJobSearchQuestions\">\r\n <label for=\"workSearchDate\">{{'work.search.journal.applicationDate'| translate}}</label>\r\n <p-calendar [showIcon]=\"true\" inputId=\"workSearchDate\" appendTo=\"body\" [formControl]=\"workSearchDate\" dateFormat=\"mm/dd/yy\"\r\n [minDate]=\"sunDate\" [maxDate]=\"satDate\" [defaultDate]=\"sunDate\" [selectOtherMonths]=\"true\" placeholder=\"mm/dd/yyyy\" \r\n [monthNavigator]=\"true\" [yearNavigator]=\"true\" yearRange=\"1901:2050\" (onInput)=\"dateInput($event)\"></p-calendar> \r\n <app-error [class]=\"'app-grid'\" [field]='workSearchDate' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n dateNotBetween: 'Date should be between ' + sunDateString + ' and ' + currentDateString + '.'\r\n }\"></app-error>\r\n </div>\r\n <section *ngIf=\"displayJobApplicationQuestions || displayJobSearchQuestions\">\r\n <div class=\"field\">\r\n <label for=\"positionAppliedFor\">{{'work.search.journal.jobTitle'| translate}}</label>\r\n <input id=\"positionAppliedFor\" type=\"input\" pInputText [formControl]=\"positionAppliedFor\" maxlength=\"50\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='positionAppliedFor' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n pattern: 'Job Title can only contain letters, spaces, and hyphens'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div *ngIf=\"displayJobApplicationQuestions\">\r\n <div class=\"field\">\r\n <label for=\"contactMethod\">{{'work.search.journal.contactMethod'| translate}}</label>\r\n <p-selectButton [options]=\"workSearchMethodContactMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"contactMethod\"></p-selectButton>\r\n <app-error [class]=\"'app-grid'\" [field]='contactMethod' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"displayJobSearchQuestions\">\r\n <div class=\"field\">\r\n <label for=\"contactMethod\">{{'work.search.journal.contactMethodJobSearch'| translate}}</label>\r\n <p-selectButton [options]=\"workSearchMethodContactMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"contactMethod\"></p-selectButton>\r\n <app-error [class]=\"'app-grid'\" [field]='contactMethod' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value == 'TELE'\">\r\n <label for=\"employerPhone\">{{'work.search.journal.phoneNo' | translate}}</label>\r\n <p-inputMask inputId=\"employerPhone\" [formControl]=\"employerPhone\" mask=\"(999) 999-9999\"\r\n unmask=\"true\"></p-inputMask>\r\n <app-error [class]=\"'app-grid'\" [field]='employerPhone' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value == 'EMAL'\">\r\n <label for=\"employerEmail\">{{'work.search.journal.email' | translate}}</label>\r\n <input id=\"employerEmail\" type=\"input\" pInputText [formControl]=\"employerEmail\"\r\n placeholder=\"emailid@example.com\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='employerEmail' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n employerEmail: 'Invalid email address.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value == 'ONLI'\">\r\n <label for=\"employerWebsite\">{{'work.search.journal.website' | translate}}</label>\r\n <input id=\"employerWebsite\" type=\"input\" pInputText [formControl]=\"employerWebsite\" appStripInvisibleChars />\r\n <app-error [class]=\"'app-grid'\" [field]='employerWebsite' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.',\r\n invalidWebsite: 'Please enter a valid website address'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value =='PRSN'\">\r\n <label for=\"empContactPersonName\">{{'work.search.journal.contactName' | translate}}</label>\r\n <input id=\"empContactPersonName\" type=\"input\" pInputText [formControl]=\"empContactPersonName\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='empContactPersonName' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\" *ngIf=\"contactMethod.value =='PRSN'\">\r\n <label for=\"empContactPersonTitle\">{{'work.search.journal.contactTitle' | translate}}</label>\r\n <input id=\"empContactPersonTitle\" type=\"input\" pInputText [formControl]=\"empContactPersonTitle\" appStripInvisibleChars/>\r\n <app-error [class]=\"'app-grid'\" [field]='empContactPersonTitle' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n\r\n <div class=\"field\">\r\n <label for=\"searchResult\">{{'work.search.journal.result' | translate}}</label>\r\n <div *ngIf=\"activityType.value =='JOAP'\">\r\n <app-dropdown [options]=\"workSearchResultComboJobApplicationMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"searchResult\" appendTo=\"body\" inputId=\"searchResult\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='searchResult' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n <div *ngIf=\"activityType.value =='JOSE'\">\r\n <app-dropdown [options]=\"workSearchResultComboJobSearchMs\" optionLabel=\"DESC\" optionValue=\"NAME\"\r\n [formControl]=\"searchResult\" appendTo=\"body\" inputId=\"searchResult\"></app-dropdown>\r\n <app-error [class]=\"'app-grid'\" [field]='searchResult' [form]=\"wsrFormDirective\" [errDef]=\"{ \r\n required: 'Required.'\r\n }\"></app-error>\r\n </div>\r\n </div>\r\n </section>\r\n </div>\r\n </ion-col>\r\n </ion-row>\r\n <ion-row>\r\n <ion-col class=\"ion-text-right\">\r\n <ion-button shape=\"round\" fill=\"outline\" (click)=\"close()\" type=\"reset\">{{'button.cancel' |\r\n translate}}</ion-button>\r\n <ion-button shape=\"round\" (click)=\"add()\" type=\"submit\">{{'button.add' | translate}}</ion-button>\r\n </ion-col>\r\n </ion-row>\r\n </ion-grid>\r\n </form>\r\n</p-dialog>" }]
47554
47617
  }], () => [{ type: WeeklyCertServiceV2 }, { type: i1$4.UntypedFormBuilder }, { type: UtilService }], { wsrFormDirective: [{
47555
47618
  type: ViewChild,
47556
47619
  args: ['wsrFormDirective', { static: false }]