@ksremp/ngx-ksremp-app-lib 1.0.0
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/README.md +46 -0
- package/esm2022/ksremp-ngx-ksremp-app-lib.mjs +5 -0
- package/esm2022/lib/annimations/app-animations.mjs +37 -0
- package/esm2022/lib/components/add-employer/add-employer.component.mjs +2655 -0
- package/esm2022/lib/components/add-participant/add-participant.component.mjs +399 -0
- package/esm2022/lib/components/add-payment/add-payment.component.mjs +201 -0
- package/esm2022/lib/components/address/address.component.mjs +565 -0
- package/esm2022/lib/components/bank-details/bank-details.component.mjs +416 -0
- package/esm2022/lib/components/captcha/captcha.component.mjs +181 -0
- package/esm2022/lib/components/card/card.component.mjs +55 -0
- package/esm2022/lib/components/contact-us/contact-us.component.mjs +984 -0
- package/esm2022/lib/components/content/content.component.mjs +61 -0
- package/esm2022/lib/components/correspondence-download/correspondence-download.component.mjs +89 -0
- package/esm2022/lib/components/dashboard-card/dashboard-card.component.mjs +223 -0
- package/esm2022/lib/components/dependent-grid/dependent-grid.component.mjs +301 -0
- package/esm2022/lib/components/disclosure/disclosure.component.mjs +60 -0
- package/esm2022/lib/components/dropdown/dropdown.component.mjs +1974 -0
- package/esm2022/lib/components/dropdown/dropdown.interface.mjs +2 -0
- package/esm2022/lib/components/email-update/email-update.component.mjs +376 -0
- package/esm2022/lib/components/employer-grid/employer-grid.component.mjs +1102 -0
- package/esm2022/lib/components/error/error.component.mjs +86 -0
- package/esm2022/lib/components/fav-menu/fav-menu.component.mjs +163 -0
- package/esm2022/lib/components/file-download/file-download.component.mjs +104 -0
- package/esm2022/lib/components/file-uploader/file-uploader.component.mjs +315 -0
- package/esm2022/lib/components/footer/footer.component.mjs +350 -0
- package/esm2022/lib/components/header/header.component.mjs +535 -0
- package/esm2022/lib/components/help/help.component.mjs +49 -0
- package/esm2022/lib/components/idle-detector/idle-detector.component.mjs +76 -0
- package/esm2022/lib/components/info/info.component.mjs +187 -0
- package/esm2022/lib/components/job-search-result-page/job-search-result-page.component.mjs +212 -0
- package/esm2022/lib/components/job-title/job-title.component.mjs +162 -0
- package/esm2022/lib/components/legal-disclaimar/legal-disclaimar.component.mjs +617 -0
- package/esm2022/lib/components/lexis-nexis/lexis-nexis.component.mjs +402 -0
- package/esm2022/lib/components/link/link.component.mjs +131 -0
- package/esm2022/lib/components/maintenance-detector/maintenance-detector.component.mjs +43 -0
- package/esm2022/lib/components/mask/mask.component.mjs +48 -0
- package/esm2022/lib/components/menu/menu.component.mjs +452 -0
- package/esm2022/lib/components/mfa/mfa.component.mjs +574 -0
- package/esm2022/lib/components/mfa-popup/mfa-popup.component.mjs +57 -0
- package/esm2022/lib/components/mfa2/mfa2.component.mjs +285 -0
- package/esm2022/lib/components/money-expect/money-expect.component.mjs +98 -0
- package/esm2022/lib/components/msg/msg.component.mjs +48 -0
- package/esm2022/lib/components/news/news.component.mjs +90 -0
- package/esm2022/lib/components/overlay-info/overlay-info.component.mjs +213 -0
- package/esm2022/lib/components/page/page.component.mjs +136 -0
- package/esm2022/lib/components/profile/profile.component.mjs +505 -0
- package/esm2022/lib/components/profile-redirect/profile-redirect.component.mjs +70 -0
- package/esm2022/lib/components/questionnaire/AppValidators.mjs +541 -0
- package/esm2022/lib/components/questionnaire/FbConstants.mjs +8 -0
- package/esm2022/lib/components/questionnaire/SelectItem.mjs +2 -0
- package/esm2022/lib/components/questionnaire/account-success/account-success.page.mjs +310 -0
- package/esm2022/lib/components/questionnaire/common-success/common-success.page.mjs +528 -0
- package/esm2022/lib/components/questionnaire/dynamic-form-panel.component.mjs +1115 -0
- package/esm2022/lib/components/questionnaire/dynamic-form-question.component.mjs +2521 -0
- package/esm2022/lib/components/questionnaire/dynamic-form.component.mjs +1788 -0
- package/esm2022/lib/components/questionnaire/form-builder/form-builder.page.mjs +256 -0
- package/esm2022/lib/components/questionnaire/input-focus.directive.mjs +44 -0
- package/esm2022/lib/components/questionnaire/multi-questionnaire/multi-questionnaire.component.mjs +255 -0
- package/esm2022/lib/components/questionnaire/question-base.mjs +3 -0
- package/esm2022/lib/components/questionnaire/question-control.service.mjs +408 -0
- package/esm2022/lib/components/questionnaire/question.service.mjs +33 -0
- package/esm2022/lib/components/questionnaire/render-questionnaire/render-questionnaire.page.mjs +282 -0
- package/esm2022/lib/components/read-more/read-more.component.mjs +72 -0
- package/esm2022/lib/components/requalify-lift-previous-issues/requalify-lift-previous-issues.component.mjs +690 -0
- package/esm2022/lib/components/search-employer/search-employer.component.mjs +132 -0
- package/esm2022/lib/components/security-question/security-question.component.mjs +199 -0
- package/esm2022/lib/components/select/select.component.mjs +159 -0
- package/esm2022/lib/components/sign-ssn/sign-ssn.component.mjs +141 -0
- package/esm2022/lib/components/ssn/ssn.component.mjs +44 -0
- package/esm2022/lib/components/ssn-reverify/ssn-reverify.component.mjs +171 -0
- package/esm2022/lib/components/test/test.component.mjs +19 -0
- package/esm2022/lib/components/user-login/user-login.component.mjs +619 -0
- package/esm2022/lib/components/weekly-cert-employer/weekly-cert-employer.component.mjs +772 -0
- package/esm2022/lib/components/weekly-cert-employer-grid/weekly-cert-employer-grid.component.mjs +356 -0
- package/esm2022/lib/directives/auto-focus/auto-focus.directive.mjs +31 -0
- package/esm2022/lib/directives/caps-lock.directive.mjs +38 -0
- package/esm2022/lib/directives/required-roles/required-roles.directive.mjs +30 -0
- package/esm2022/lib/enums/EmailStatusEnum.mjs +9 -0
- package/esm2022/lib/guards/auth.guard.mjs +138 -0
- package/esm2022/lib/guards/no-login/no-login.guard.mjs +21 -0
- package/esm2022/lib/interceptors/error-interceptor/http-error-interceptor.mjs +107 -0
- package/esm2022/lib/interceptors/header-interceptor/http-header.interceptor.mjs +99 -0
- package/esm2022/lib/models/AddressComponentModel.mjs +3 -0
- package/esm2022/lib/models/BankDetailsComponentModel.mjs +3 -0
- package/esm2022/lib/models/BankDetailsModel.mjs +3 -0
- package/esm2022/lib/models/CinRequalificationCriteriaModel.mjs +3 -0
- package/esm2022/lib/models/EmployerDetailSearchResult.mjs +6 -0
- package/esm2022/lib/models/ErrorModel.mjs +6 -0
- package/esm2022/lib/models/FileModel.mjs +2 -0
- package/esm2022/lib/models/LexisNexisAccountCreationModel.mjs +2 -0
- package/esm2022/lib/models/LexisNexisAuthSelectionRequestModel.mjs +2 -0
- package/esm2022/lib/models/LexisNexisAuthSelectionResponseModel.mjs +2 -0
- package/esm2022/lib/models/LexisNexisEnabledResponseModel.mjs +2 -0
- package/esm2022/lib/models/LexisNexisResponseModel.mjs +3 -0
- package/esm2022/lib/models/LibConstants.mjs +132 -0
- package/esm2022/lib/models/NewsAndAnnouncementModel.mjs +3 -0
- package/esm2022/lib/models/NotificationModel.mjs +6 -0
- package/esm2022/lib/models/OtpAuthModel.mjs +3 -0
- package/esm2022/lib/models/PartialEmploymentModel.mjs +3 -0
- package/esm2022/lib/models/PaymentComponentModel.mjs +2 -0
- package/esm2022/lib/models/RequalifyLiftPageModel.mjs +11 -0
- package/esm2022/lib/models/SecurityQuestionModel.mjs +3 -0
- package/esm2022/lib/models/SsaVerificationModel.mjs +3 -0
- package/esm2022/lib/models/TrendModel.mjs +3 -0
- package/esm2022/lib/models/UserDetailsModel.mjs +3 -0
- package/esm2022/lib/models/UserModel.mjs +6 -0
- package/esm2022/lib/models/case/CaseAttachmentModel.mjs +3 -0
- package/esm2022/lib/models/claimant/ClaimantModel.mjs +3 -0
- package/esm2022/lib/models/claimant/JobResultsData.mjs +3 -0
- package/esm2022/lib/models/claimant/MatchingJobs.mjs +3 -0
- package/esm2022/lib/models/claimant/ResetPasswordModel.mjs +3 -0
- package/esm2022/lib/models/cmp/CaseCoreModel.mjs +3 -0
- package/esm2022/lib/models/cmp/ComplaintCategoryModel.mjs +3 -0
- package/esm2022/lib/models/cmp/ComplaintCategoryOutputModel.mjs +5 -0
- package/esm2022/lib/models/cmp/ContactUsModel.mjs +3 -0
- package/esm2022/lib/models/cmp/EmailTemplateModel.mjs +3 -0
- package/esm2022/lib/models/cmp/contactUsInqueryModel.mjs +7 -0
- package/esm2022/lib/models/cmp/messageRourceModel.mjs +3 -0
- package/esm2022/lib/models/dashboard-model.mjs +3 -0
- package/esm2022/lib/models/dependent.model.mjs +8 -0
- package/esm2022/lib/models/questionnaire/AutocoderModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/ClaimAppEmpRequestModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/ClaimAppEmpResponseModel.mjs +8 -0
- package/esm2022/lib/models/questionnaire/ClaimAppEmployerDetailsModel.mjs +6 -0
- package/esm2022/lib/models/questionnaire/ClaimOnlyEmployerDataModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/ComboModel.mjs +1010 -0
- package/esm2022/lib/models/questionnaire/ElementsModel.mjs +8 -0
- package/esm2022/lib/models/questionnaire/EmployerDetailSearchResult.mjs +3 -0
- package/esm2022/lib/models/questionnaire/EmployerWagesModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/FBConfigModel.mjs +6 -0
- package/esm2022/lib/models/questionnaire/KeyValueModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/LegalDiscaimarModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/LoaderModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/PollingStatusModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/QtrYearEmployerWageModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/QuestionnaireQueryModel.mjs +8 -0
- package/esm2022/lib/models/questionnaire/QuestionnaireReturnModel.mjs +11 -0
- package/esm2022/lib/models/questionnaire/QuestionnaireSaveModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/RequalifyLiftIssuesModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/ServiceActionResponseModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/StatusModel.mjs +6 -0
- package/esm2022/lib/models/questionnaire/SuccessPageElement.mjs +3 -0
- package/esm2022/lib/models/questionnaire/UI512AResponseModel.mjs +3 -0
- package/esm2022/lib/models/questionnaire/ValidationModel.mjs +3 -0
- package/esm2022/lib/ngx-reusa-app-lib.component.mjs +23 -0
- package/esm2022/lib/ngx-reusa-app-lib.module.mjs +410 -0
- package/esm2022/lib/ngx-reusa-app-lib.service.mjs +14 -0
- package/esm2022/lib/pages/BasePage.mjs +98 -0
- package/esm2022/lib/pages/common/accessibility-policy/accessibility-policy.page.mjs +77 -0
- package/esm2022/lib/pages/common/change-password/change-password.page.mjs +471 -0
- package/esm2022/lib/pages/common/landing/landing.component.mjs +209 -0
- package/esm2022/lib/pages/common/landing2/landing2.component.mjs +244 -0
- package/esm2022/lib/pages/common/login/login.component.mjs +533 -0
- package/esm2022/lib/pages/common/not-found/not-found.page.mjs +24 -0
- package/esm2022/lib/pages/common/privacy-disclaimer/privacy-disclaimer.page.mjs +306 -0
- package/esm2022/lib/pages/common/security-policy/security-policy.page.mjs +61 -0
- package/esm2022/lib/pages/common/unauthorized/unauthorized.page.mjs +24 -0
- package/esm2022/lib/pages/popovers/language/language.page.mjs +62 -0
- package/esm2022/lib/pages/popovers/my-notifications/my-notifications.page.mjs +204 -0
- package/esm2022/lib/pages/popovers/my-profile/my-profile.page.mjs +129 -0
- package/esm2022/lib/pages/popovers/user-search/user-search.component.mjs +251 -0
- package/esm2022/lib/pipes/filter.pipe.mjs +30 -0
- package/esm2022/lib/pipes/mask/mask.email.pipe.mjs +23 -0
- package/esm2022/lib/pipes/proper-case/proper-case.pipe.mjs +27 -0
- package/esm2022/lib/pipes/translate/dynamic-translate.pipe.mjs +44 -0
- package/esm2022/lib/pipes/trust-html/trust-html.pipe.mjs +20 -0
- package/esm2022/lib/services/base-service.mjs +50 -0
- package/esm2022/lib/services/captcha/captcha.service.mjs +46 -0
- package/esm2022/lib/services/case-service/case.service.mjs +47 -0
- package/esm2022/lib/services/chatbot/chatbot.service.mjs +258 -0
- package/esm2022/lib/services/chatbot/script.const.mjs +42 -0
- package/esm2022/lib/services/claimant/claimant.service.mjs +31 -0
- package/esm2022/lib/services/claimant-context/claimant-context.service.mjs +48 -0
- package/esm2022/lib/services/claimant-service/claimant-usps-redirect.service.mjs +36 -0
- package/esm2022/lib/services/claimant-service/claimant.service.mjs +62 -0
- package/esm2022/lib/services/claims/claims.service.mjs +102 -0
- package/esm2022/lib/services/cmp-service/cmp.service.mjs +84 -0
- package/esm2022/lib/services/dms-service/dms.service.mjs +60 -0
- package/esm2022/lib/services/fpjs/fingerprint.service.mjs +70 -0
- package/esm2022/lib/services/google-analytics/google-analytics.service.mjs +29 -0
- package/esm2022/lib/services/help/help.service.mjs +63 -0
- package/esm2022/lib/services/idle/idle.service.mjs +159 -0
- package/esm2022/lib/services/lexis-nexis/lexis.nexis.service.mjs +60 -0
- package/esm2022/lib/services/logger/logger.service.mjs +67 -0
- package/esm2022/lib/services/login/login.service.mjs +343 -0
- package/esm2022/lib/services/maintenance/maintenance.service.mjs +21 -0
- package/esm2022/lib/services/notification/notification.service.mjs +113 -0
- package/esm2022/lib/services/ovp/ovp.service.mjs +43 -0
- package/esm2022/lib/services/questionnaire/questionnaire.service.mjs +69 -0
- package/esm2022/lib/services/questionnaire/validation.service.mjs +59 -0
- package/esm2022/lib/services/security-service/security.service.mjs +42 -0
- package/esm2022/lib/services/tour/tour.service.mjs +60 -0
- package/esm2022/lib/services/util/util.service.mjs +450 -0
- package/esm2022/lib/services/weekly-cert/weekly-cert-v2.service.mjs +42 -0
- package/esm2022/lib/validations/AppRegex.mjs +51 -0
- package/esm2022/lib/validations/AppValidators.mjs +253 -0
- package/esm2022/public-api.mjs +138 -0
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs +33786 -0
- package/fesm2022/ksremp-ngx-ksremp-app-lib.mjs.map +1 -0
- package/index.d.ts +6 -0
- package/ksremp-ngx-ksremp-app-lib.d.ts.map +1 -0
- package/lib/annimations/app-animations.d.ts +4 -0
- package/lib/annimations/app-animations.d.ts.map +1 -0
- package/lib/components/add-employer/add-employer.component.d.ts +234 -0
- package/lib/components/add-employer/add-employer.component.d.ts.map +1 -0
- package/lib/components/add-participant/add-participant.component.d.ts +49 -0
- package/lib/components/add-participant/add-participant.component.d.ts.map +1 -0
- package/lib/components/add-payment/add-payment.component.d.ts +33 -0
- package/lib/components/add-payment/add-payment.component.d.ts.map +1 -0
- package/lib/components/address/address.component.d.ts +81 -0
- package/lib/components/address/address.component.d.ts.map +1 -0
- package/lib/components/bank-details/bank-details.component.d.ts +62 -0
- package/lib/components/bank-details/bank-details.component.d.ts.map +1 -0
- package/lib/components/captcha/captcha.component.d.ts +45 -0
- package/lib/components/captcha/captcha.component.d.ts.map +1 -0
- package/lib/components/card/card.component.d.ts +12 -0
- package/lib/components/card/card.component.d.ts.map +1 -0
- package/lib/components/contact-us/contact-us.component.d.ts +109 -0
- package/lib/components/contact-us/contact-us.component.d.ts.map +1 -0
- package/lib/components/content/content.component.d.ts +14 -0
- package/lib/components/content/content.component.d.ts.map +1 -0
- package/lib/components/correspondence-download/correspondence-download.component.d.ts +22 -0
- package/lib/components/correspondence-download/correspondence-download.component.d.ts.map +1 -0
- package/lib/components/dashboard-card/dashboard-card.component.d.ts +26 -0
- package/lib/components/dashboard-card/dashboard-card.component.d.ts.map +1 -0
- package/lib/components/dependent-grid/dependent-grid.component.d.ts +36 -0
- package/lib/components/dependent-grid/dependent-grid.component.d.ts.map +1 -0
- package/lib/components/disclosure/disclosure.component.d.ts +13 -0
- package/lib/components/disclosure/disclosure.component.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.component.d.ts +582 -0
- package/lib/components/dropdown/dropdown.component.d.ts.map +1 -0
- package/lib/components/dropdown/dropdown.interface.d.ts +155 -0
- package/lib/components/dropdown/dropdown.interface.d.ts.map +1 -0
- package/lib/components/email-update/email-update.component.d.ts +43 -0
- package/lib/components/email-update/email-update.component.d.ts.map +1 -0
- package/lib/components/employer-grid/employer-grid.component.d.ts +90 -0
- package/lib/components/employer-grid/employer-grid.component.d.ts.map +1 -0
- package/lib/components/error/error.component.d.ts +18 -0
- package/lib/components/error/error.component.d.ts.map +1 -0
- package/lib/components/fav-menu/fav-menu.component.d.ts +22 -0
- package/lib/components/fav-menu/fav-menu.component.d.ts.map +1 -0
- package/lib/components/file-download/file-download.component.d.ts +23 -0
- package/lib/components/file-download/file-download.component.d.ts.map +1 -0
- package/lib/components/file-uploader/file-uploader.component.d.ts +48 -0
- package/lib/components/file-uploader/file-uploader.component.d.ts.map +1 -0
- package/lib/components/footer/footer.component.d.ts +37 -0
- package/lib/components/footer/footer.component.d.ts.map +1 -0
- package/lib/components/header/header.component.d.ts +64 -0
- package/lib/components/header/header.component.d.ts.map +1 -0
- package/lib/components/help/help.component.d.ts +11 -0
- package/lib/components/help/help.component.d.ts.map +1 -0
- package/lib/components/idle-detector/idle-detector.component.d.ts +16 -0
- package/lib/components/idle-detector/idle-detector.component.d.ts.map +1 -0
- package/lib/components/info/info.component.d.ts +23 -0
- package/lib/components/info/info.component.d.ts.map +1 -0
- package/lib/components/job-search-result-page/job-search-result-page.component.d.ts +24 -0
- package/lib/components/job-search-result-page/job-search-result-page.component.d.ts.map +1 -0
- package/lib/components/job-title/job-title.component.d.ts +38 -0
- package/lib/components/job-title/job-title.component.d.ts.map +1 -0
- package/lib/components/legal-disclaimar/legal-disclaimar.component.d.ts +39 -0
- package/lib/components/legal-disclaimar/legal-disclaimar.component.d.ts.map +1 -0
- package/lib/components/lexis-nexis/lexis-nexis.component.d.ts +59 -0
- package/lib/components/lexis-nexis/lexis-nexis.component.d.ts.map +1 -0
- package/lib/components/link/link.component.d.ts +35 -0
- package/lib/components/link/link.component.d.ts.map +1 -0
- package/lib/components/maintenance-detector/maintenance-detector.component.d.ts +16 -0
- package/lib/components/maintenance-detector/maintenance-detector.component.d.ts.map +1 -0
- package/lib/components/mask/mask.component.d.ts +12 -0
- package/lib/components/mask/mask.component.d.ts.map +1 -0
- package/lib/components/menu/menu.component.d.ts +54 -0
- package/lib/components/menu/menu.component.d.ts.map +1 -0
- package/lib/components/mfa/mfa.component.d.ts +72 -0
- package/lib/components/mfa/mfa.component.d.ts.map +1 -0
- package/lib/components/mfa-popup/mfa-popup.component.d.ts +19 -0
- package/lib/components/mfa-popup/mfa-popup.component.d.ts.map +1 -0
- package/lib/components/mfa2/mfa2.component.d.ts +48 -0
- package/lib/components/mfa2/mfa2.component.d.ts.map +1 -0
- package/lib/components/money-expect/money-expect.component.d.ts +19 -0
- package/lib/components/money-expect/money-expect.component.d.ts.map +1 -0
- package/lib/components/msg/msg.component.d.ts +11 -0
- package/lib/components/msg/msg.component.d.ts.map +1 -0
- package/lib/components/news/news.component.d.ts +15 -0
- package/lib/components/news/news.component.d.ts.map +1 -0
- package/lib/components/overlay-info/overlay-info.component.d.ts +35 -0
- package/lib/components/overlay-info/overlay-info.component.d.ts.map +1 -0
- package/lib/components/page/page.component.d.ts +24 -0
- package/lib/components/page/page.component.d.ts.map +1 -0
- package/lib/components/profile/profile.component.d.ts +74 -0
- package/lib/components/profile/profile.component.d.ts.map +1 -0
- package/lib/components/profile-redirect/profile-redirect.component.d.ts +14 -0
- package/lib/components/profile-redirect/profile-redirect.component.d.ts.map +1 -0
- package/lib/components/questionnaire/AppValidators.d.ts +16 -0
- package/lib/components/questionnaire/AppValidators.d.ts.map +1 -0
- package/lib/components/questionnaire/FbConstants.d.ts +8 -0
- package/lib/components/questionnaire/FbConstants.d.ts.map +1 -0
- package/lib/components/questionnaire/SelectItem.d.ts +5 -0
- package/lib/components/questionnaire/SelectItem.d.ts.map +1 -0
- package/lib/components/questionnaire/account-success/account-success.page.d.ts +61 -0
- package/lib/components/questionnaire/account-success/account-success.page.d.ts.map +1 -0
- package/lib/components/questionnaire/common-success/common-success.page.d.ts +77 -0
- package/lib/components/questionnaire/common-success/common-success.page.d.ts.map +1 -0
- package/lib/components/questionnaire/dynamic-form-panel.component.d.ts +47 -0
- package/lib/components/questionnaire/dynamic-form-panel.component.d.ts.map +1 -0
- package/lib/components/questionnaire/dynamic-form-question.component.d.ts +128 -0
- package/lib/components/questionnaire/dynamic-form-question.component.d.ts.map +1 -0
- package/lib/components/questionnaire/dynamic-form.component.d.ts +161 -0
- package/lib/components/questionnaire/dynamic-form.component.d.ts.map +1 -0
- package/lib/components/questionnaire/form-builder/form-builder.page.d.ts +74 -0
- package/lib/components/questionnaire/form-builder/form-builder.page.d.ts.map +1 -0
- package/lib/components/questionnaire/input-focus.directive.d.ts +12 -0
- package/lib/components/questionnaire/input-focus.directive.d.ts.map +1 -0
- package/lib/components/questionnaire/multi-questionnaire/multi-questionnaire.component.d.ts +39 -0
- package/lib/components/questionnaire/multi-questionnaire/multi-questionnaire.component.d.ts.map +1 -0
- package/lib/components/questionnaire/question-base.d.ts +17 -0
- package/lib/components/questionnaire/question-base.d.ts.map +1 -0
- package/lib/components/questionnaire/question-control.service.d.ts +21 -0
- package/lib/components/questionnaire/question-control.service.d.ts.map +1 -0
- package/lib/components/questionnaire/question.service.d.ts +19 -0
- package/lib/components/questionnaire/question.service.d.ts.map +1 -0
- package/lib/components/questionnaire/render-questionnaire/render-questionnaire.page.d.ts +83 -0
- package/lib/components/questionnaire/render-questionnaire/render-questionnaire.page.d.ts.map +1 -0
- package/lib/components/read-more/read-more.component.d.ts +15 -0
- package/lib/components/read-more/read-more.component.d.ts.map +1 -0
- package/lib/components/requalify-lift-previous-issues/requalify-lift-previous-issues.component.d.ts +68 -0
- package/lib/components/requalify-lift-previous-issues/requalify-lift-previous-issues.component.d.ts.map +1 -0
- package/lib/components/search-employer/search-employer.component.d.ts +40 -0
- package/lib/components/search-employer/search-employer.component.d.ts.map +1 -0
- package/lib/components/security-question/security-question.component.d.ts +37 -0
- package/lib/components/security-question/security-question.component.d.ts.map +1 -0
- package/lib/components/select/select.component.d.ts +56 -0
- package/lib/components/select/select.component.d.ts.map +1 -0
- package/lib/components/sign-ssn/sign-ssn.component.d.ts +34 -0
- package/lib/components/sign-ssn/sign-ssn.component.d.ts.map +1 -0
- package/lib/components/ssn/ssn.component.d.ts +12 -0
- package/lib/components/ssn/ssn.component.d.ts.map +1 -0
- package/lib/components/ssn-reverify/ssn-reverify.component.d.ts +27 -0
- package/lib/components/ssn-reverify/ssn-reverify.component.d.ts.map +1 -0
- package/lib/components/test/test.component.d.ts +9 -0
- package/lib/components/test/test.component.d.ts.map +1 -0
- package/lib/components/user-login/user-login.component.d.ts +82 -0
- package/lib/components/user-login/user-login.component.d.ts.map +1 -0
- package/lib/components/weekly-cert-employer/weekly-cert-employer.component.d.ts +67 -0
- package/lib/components/weekly-cert-employer/weekly-cert-employer.component.d.ts.map +1 -0
- package/lib/components/weekly-cert-employer-grid/weekly-cert-employer-grid.component.d.ts +47 -0
- package/lib/components/weekly-cert-employer-grid/weekly-cert-employer-grid.component.d.ts.map +1 -0
- package/lib/directives/auto-focus/auto-focus.directive.d.ts +13 -0
- package/lib/directives/auto-focus/auto-focus.directive.d.ts.map +1 -0
- package/lib/directives/caps-lock.directive.d.ts +12 -0
- package/lib/directives/caps-lock.directive.d.ts.map +1 -0
- package/lib/directives/required-roles/required-roles.directive.d.ts +15 -0
- package/lib/directives/required-roles/required-roles.directive.d.ts.map +1 -0
- package/lib/enums/EmailStatusEnum.d.ts +8 -0
- package/lib/enums/EmailStatusEnum.d.ts.map +1 -0
- package/lib/guards/auth.guard.d.ts +29 -0
- package/lib/guards/auth.guard.d.ts.map +1 -0
- package/lib/guards/no-login/no-login.guard.d.ts +12 -0
- package/lib/guards/no-login/no-login.guard.d.ts.map +1 -0
- package/lib/interceptors/error-interceptor/http-error-interceptor.d.ts +23 -0
- package/lib/interceptors/error-interceptor/http-error-interceptor.d.ts.map +1 -0
- package/lib/interceptors/header-interceptor/http-header.interceptor.d.ts +22 -0
- package/lib/interceptors/header-interceptor/http-header.interceptor.d.ts.map +1 -0
- package/lib/models/AddressComponentModel.d.ts +14 -0
- package/lib/models/AddressComponentModel.d.ts.map +1 -0
- package/lib/models/BankDetailsComponentModel.d.ts +12 -0
- package/lib/models/BankDetailsComponentModel.d.ts.map +1 -0
- package/lib/models/BankDetailsModel.d.ts +5 -0
- package/lib/models/BankDetailsModel.d.ts.map +1 -0
- package/lib/models/CinRequalificationCriteriaModel.d.ts +11 -0
- package/lib/models/CinRequalificationCriteriaModel.d.ts.map +1 -0
- package/lib/models/EmployerDetailSearchResult.d.ts +51 -0
- package/lib/models/EmployerDetailSearchResult.d.ts.map +1 -0
- package/lib/models/ErrorModel.d.ts +7 -0
- package/lib/models/ErrorModel.d.ts.map +1 -0
- package/lib/models/FileModel.d.ts +5 -0
- package/lib/models/FileModel.d.ts.map +1 -0
- package/lib/models/LexisNexisAccountCreationModel.d.ts +15 -0
- package/lib/models/LexisNexisAccountCreationModel.d.ts.map +1 -0
- package/lib/models/LexisNexisAuthSelectionRequestModel.d.ts +16 -0
- package/lib/models/LexisNexisAuthSelectionRequestModel.d.ts.map +1 -0
- package/lib/models/LexisNexisAuthSelectionResponseModel.d.ts +39 -0
- package/lib/models/LexisNexisAuthSelectionResponseModel.d.ts.map +1 -0
- package/lib/models/LexisNexisEnabledResponseModel.d.ts +5 -0
- package/lib/models/LexisNexisEnabledResponseModel.d.ts.map +1 -0
- package/lib/models/LexisNexisResponseModel.d.ts +7 -0
- package/lib/models/LexisNexisResponseModel.d.ts.map +1 -0
- package/lib/models/LibConstants.d.ts +125 -0
- package/lib/models/LibConstants.d.ts.map +1 -0
- package/lib/models/NewsAndAnnouncementModel.d.ts +6 -0
- package/lib/models/NewsAndAnnouncementModel.d.ts.map +1 -0
- package/lib/models/NotificationModel.d.ts +11 -0
- package/lib/models/NotificationModel.d.ts.map +1 -0
- package/lib/models/OtpAuthModel.d.ts +8 -0
- package/lib/models/OtpAuthModel.d.ts.map +1 -0
- package/lib/models/PartialEmploymentModel.d.ts +6 -0
- package/lib/models/PartialEmploymentModel.d.ts.map +1 -0
- package/lib/models/PaymentComponentModel.d.ts +8 -0
- package/lib/models/PaymentComponentModel.d.ts.map +1 -0
- package/lib/models/RequalifyLiftPageModel.d.ts +12 -0
- package/lib/models/RequalifyLiftPageModel.d.ts.map +1 -0
- package/lib/models/SecurityQuestionModel.d.ts +7 -0
- package/lib/models/SecurityQuestionModel.d.ts.map +1 -0
- package/lib/models/SsaVerificationModel.d.ts +9 -0
- package/lib/models/SsaVerificationModel.d.ts.map +1 -0
- package/lib/models/TrendModel.d.ts +14 -0
- package/lib/models/TrendModel.d.ts.map +1 -0
- package/lib/models/UserDetailsModel.d.ts +10 -0
- package/lib/models/UserDetailsModel.d.ts.map +1 -0
- package/lib/models/UserModel.d.ts +48 -0
- package/lib/models/UserModel.d.ts.map +1 -0
- package/lib/models/case/CaseAttachmentModel.d.ts +6 -0
- package/lib/models/case/CaseAttachmentModel.d.ts.map +1 -0
- package/lib/models/claimant/ClaimantModel.d.ts +23 -0
- package/lib/models/claimant/ClaimantModel.d.ts.map +1 -0
- package/lib/models/claimant/JobResultsData.d.ts +8 -0
- package/lib/models/claimant/JobResultsData.d.ts.map +1 -0
- package/lib/models/claimant/MatchingJobs.d.ts +13 -0
- package/lib/models/claimant/MatchingJobs.d.ts.map +1 -0
- package/lib/models/claimant/ResetPasswordModel.d.ts +9 -0
- package/lib/models/claimant/ResetPasswordModel.d.ts.map +1 -0
- package/lib/models/cmp/CaseCoreModel.d.ts +21 -0
- package/lib/models/cmp/CaseCoreModel.d.ts.map +1 -0
- package/lib/models/cmp/ComplaintCategoryModel.d.ts +9 -0
- package/lib/models/cmp/ComplaintCategoryModel.d.ts.map +1 -0
- package/lib/models/cmp/ComplaintCategoryOutputModel.d.ts +6 -0
- package/lib/models/cmp/ComplaintCategoryOutputModel.d.ts.map +1 -0
- package/lib/models/cmp/ContactUsModel.d.ts +23 -0
- package/lib/models/cmp/ContactUsModel.d.ts.map +1 -0
- package/lib/models/cmp/EmailTemplateModel.d.ts +7 -0
- package/lib/models/cmp/EmailTemplateModel.d.ts.map +1 -0
- package/lib/models/cmp/contactUsInqueryModel.d.ts +47 -0
- package/lib/models/cmp/contactUsInqueryModel.d.ts.map +1 -0
- package/lib/models/cmp/messageRourceModel.d.ts +6 -0
- package/lib/models/cmp/messageRourceModel.d.ts.map +1 -0
- package/lib/models/dashboard-model.d.ts +44 -0
- package/lib/models/dashboard-model.d.ts.map +1 -0
- package/lib/models/dependent.model.d.ts +20 -0
- package/lib/models/dependent.model.d.ts.map +1 -0
- package/lib/models/questionnaire/AutocoderModel.d.ts +9 -0
- package/lib/models/questionnaire/AutocoderModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ClaimAppEmpRequestModel.d.ts +9 -0
- package/lib/models/questionnaire/ClaimAppEmpRequestModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ClaimAppEmpResponseModel.d.ts +18 -0
- package/lib/models/questionnaire/ClaimAppEmpResponseModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ClaimAppEmployerDetailsModel.d.ts +156 -0
- package/lib/models/questionnaire/ClaimAppEmployerDetailsModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ClaimOnlyEmployerDataModel.d.ts +18 -0
- package/lib/models/questionnaire/ClaimOnlyEmployerDataModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ComboModel.d.ts +178 -0
- package/lib/models/questionnaire/ComboModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ElementsModel.d.ts +71 -0
- package/lib/models/questionnaire/ElementsModel.d.ts.map +1 -0
- package/lib/models/questionnaire/EmployerDetailSearchResult.d.ts +18 -0
- package/lib/models/questionnaire/EmployerDetailSearchResult.d.ts.map +1 -0
- package/lib/models/questionnaire/EmployerWagesModel.d.ts +5 -0
- package/lib/models/questionnaire/EmployerWagesModel.d.ts.map +1 -0
- package/lib/models/questionnaire/FBConfigModel.d.ts +12 -0
- package/lib/models/questionnaire/FBConfigModel.d.ts.map +1 -0
- package/lib/models/questionnaire/KeyValueModel.d.ts +11 -0
- package/lib/models/questionnaire/KeyValueModel.d.ts.map +1 -0
- package/lib/models/questionnaire/LegalDiscaimarModel.d.ts +11 -0
- package/lib/models/questionnaire/LegalDiscaimarModel.d.ts.map +1 -0
- package/lib/models/questionnaire/LoaderModel.d.ts +5 -0
- package/lib/models/questionnaire/LoaderModel.d.ts.map +1 -0
- package/lib/models/questionnaire/PollingStatusModel.d.ts +7 -0
- package/lib/models/questionnaire/PollingStatusModel.d.ts.map +1 -0
- package/lib/models/questionnaire/QtrYearEmployerWageModel.d.ts +9 -0
- package/lib/models/questionnaire/QtrYearEmployerWageModel.d.ts.map +1 -0
- package/lib/models/questionnaire/QuestionnaireQueryModel.d.ts +24 -0
- package/lib/models/questionnaire/QuestionnaireQueryModel.d.ts.map +1 -0
- package/lib/models/questionnaire/QuestionnaireReturnModel.d.ts +21 -0
- package/lib/models/questionnaire/QuestionnaireReturnModel.d.ts.map +1 -0
- package/lib/models/questionnaire/QuestionnaireSaveModel.d.ts +26 -0
- package/lib/models/questionnaire/QuestionnaireSaveModel.d.ts.map +1 -0
- package/lib/models/questionnaire/RequalifyLiftIssuesModel.d.ts +14 -0
- package/lib/models/questionnaire/RequalifyLiftIssuesModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ServiceActionResponseModel.d.ts +7 -0
- package/lib/models/questionnaire/ServiceActionResponseModel.d.ts.map +1 -0
- package/lib/models/questionnaire/StatusModel.d.ts +16 -0
- package/lib/models/questionnaire/StatusModel.d.ts.map +1 -0
- package/lib/models/questionnaire/SuccessPageElement.d.ts +9 -0
- package/lib/models/questionnaire/SuccessPageElement.d.ts.map +1 -0
- package/lib/models/questionnaire/UI512AResponseModel.d.ts +13 -0
- package/lib/models/questionnaire/UI512AResponseModel.d.ts.map +1 -0
- package/lib/models/questionnaire/ValidationModel.d.ts +18 -0
- package/lib/models/questionnaire/ValidationModel.d.ts.map +1 -0
- package/lib/ngx-reusa-app-lib.component.d.ts +9 -0
- package/lib/ngx-reusa-app-lib.component.d.ts.map +1 -0
- package/lib/ngx-reusa-app-lib.module.d.ts +155 -0
- package/lib/ngx-reusa-app-lib.module.d.ts.map +1 -0
- package/lib/ngx-reusa-app-lib.service.d.ts +7 -0
- package/lib/ngx-reusa-app-lib.service.d.ts.map +1 -0
- package/lib/pages/BasePage.d.ts +32 -0
- package/lib/pages/BasePage.d.ts.map +1 -0
- package/lib/pages/common/accessibility-policy/accessibility-policy.page.d.ts +12 -0
- package/lib/pages/common/accessibility-policy/accessibility-policy.page.d.ts.map +1 -0
- package/lib/pages/common/change-password/change-password.page.d.ts +41 -0
- package/lib/pages/common/change-password/change-password.page.d.ts.map +1 -0
- package/lib/pages/common/landing/landing.component.d.ts +25 -0
- package/lib/pages/common/landing/landing.component.d.ts.map +1 -0
- package/lib/pages/common/landing2/landing2.component.d.ts +31 -0
- package/lib/pages/common/landing2/landing2.component.d.ts.map +1 -0
- package/lib/pages/common/login/login.component.d.ts +65 -0
- package/lib/pages/common/login/login.component.d.ts.map +1 -0
- package/lib/pages/common/not-found/not-found.page.d.ts +9 -0
- package/lib/pages/common/not-found/not-found.page.d.ts.map +1 -0
- package/lib/pages/common/privacy-disclaimer/privacy-disclaimer.page.d.ts +12 -0
- package/lib/pages/common/privacy-disclaimer/privacy-disclaimer.page.d.ts.map +1 -0
- package/lib/pages/common/security-policy/security-policy.page.d.ts +12 -0
- package/lib/pages/common/security-policy/security-policy.page.d.ts.map +1 -0
- package/lib/pages/common/unauthorized/unauthorized.page.d.ts +9 -0
- package/lib/pages/common/unauthorized/unauthorized.page.d.ts.map +1 -0
- package/lib/pages/popovers/language/language.page.d.ts +17 -0
- package/lib/pages/popovers/language/language.page.d.ts.map +1 -0
- package/lib/pages/popovers/my-notifications/my-notifications.page.d.ts +22 -0
- package/lib/pages/popovers/my-notifications/my-notifications.page.d.ts.map +1 -0
- package/lib/pages/popovers/my-profile/my-profile.page.d.ts +21 -0
- package/lib/pages/popovers/my-profile/my-profile.page.d.ts.map +1 -0
- package/lib/pages/popovers/user-search/user-search.component.d.ts +32 -0
- package/lib/pages/popovers/user-search/user-search.component.d.ts.map +1 -0
- package/lib/pipes/filter.pipe.d.ts +8 -0
- package/lib/pipes/filter.pipe.d.ts.map +1 -0
- package/lib/pipes/mask/mask.email.pipe.d.ts +11 -0
- package/lib/pipes/mask/mask.email.pipe.d.ts.map +1 -0
- package/lib/pipes/proper-case/proper-case.pipe.d.ts +9 -0
- package/lib/pipes/proper-case/proper-case.pipe.d.ts.map +1 -0
- package/lib/pipes/translate/dynamic-translate.pipe.d.ts +11 -0
- package/lib/pipes/translate/dynamic-translate.pipe.d.ts.map +1 -0
- package/lib/pipes/trust-html/trust-html.pipe.d.ts +11 -0
- package/lib/pipes/trust-html/trust-html.pipe.d.ts.map +1 -0
- package/lib/services/base-service.d.ts +93 -0
- package/lib/services/base-service.d.ts.map +1 -0
- package/lib/services/captcha/captcha.service.d.ts +16 -0
- package/lib/services/captcha/captcha.service.d.ts.map +1 -0
- package/lib/services/case-service/case.service.d.ts +20 -0
- package/lib/services/case-service/case.service.d.ts.map +1 -0
- package/lib/services/chatbot/chatbot.service.d.ts +61 -0
- package/lib/services/chatbot/chatbot.service.d.ts.map +1 -0
- package/lib/services/chatbot/script.const.d.ts +16 -0
- package/lib/services/chatbot/script.const.d.ts.map +1 -0
- package/lib/services/claimant/claimant.service.d.ts +18 -0
- package/lib/services/claimant/claimant.service.d.ts.map +1 -0
- package/lib/services/claimant-context/claimant-context.service.d.ts +19 -0
- package/lib/services/claimant-context/claimant-context.service.d.ts.map +1 -0
- package/lib/services/claimant-service/claimant-usps-redirect.service.d.ts +16 -0
- package/lib/services/claimant-service/claimant-usps-redirect.service.d.ts.map +1 -0
- package/lib/services/claimant-service/claimant.service.d.ts +26 -0
- package/lib/services/claimant-service/claimant.service.d.ts.map +1 -0
- package/lib/services/claims/claims.service.d.ts +42 -0
- package/lib/services/claims/claims.service.d.ts.map +1 -0
- package/lib/services/cmp-service/cmp.service.d.ts +34 -0
- package/lib/services/cmp-service/cmp.service.d.ts.map +1 -0
- package/lib/services/dms-service/dms.service.d.ts +24 -0
- package/lib/services/dms-service/dms.service.d.ts.map +1 -0
- package/lib/services/fpjs/fingerprint.service.d.ts +19 -0
- package/lib/services/fpjs/fingerprint.service.d.ts.map +1 -0
- package/lib/services/google-analytics/google-analytics.service.d.ts +9 -0
- package/lib/services/google-analytics/google-analytics.service.d.ts.map +1 -0
- package/lib/services/help/help.service.d.ts +26 -0
- package/lib/services/help/help.service.d.ts.map +1 -0
- package/lib/services/idle/idle.service.d.ts +44 -0
- package/lib/services/idle/idle.service.d.ts.map +1 -0
- package/lib/services/lexis-nexis/lexis.nexis.service.d.ts +26 -0
- package/lib/services/lexis-nexis/lexis.nexis.service.d.ts.map +1 -0
- package/lib/services/logger/logger.service.d.ts +32 -0
- package/lib/services/logger/logger.service.d.ts.map +1 -0
- package/lib/services/login/login.service.d.ts +79 -0
- package/lib/services/login/login.service.d.ts.map +1 -0
- package/lib/services/maintenance/maintenance.service.d.ts +16 -0
- package/lib/services/maintenance/maintenance.service.d.ts.map +1 -0
- package/lib/services/notification/notification.service.d.ts +39 -0
- package/lib/services/notification/notification.service.d.ts.map +1 -0
- package/lib/services/ovp/ovp.service.d.ts +17 -0
- package/lib/services/ovp/ovp.service.d.ts.map +1 -0
- package/lib/services/questionnaire/questionnaire.service.d.ts +36 -0
- package/lib/services/questionnaire/questionnaire.service.d.ts.map +1 -0
- package/lib/services/questionnaire/validation.service.d.ts +82 -0
- package/lib/services/questionnaire/validation.service.d.ts.map +1 -0
- package/lib/services/security-service/security.service.d.ts +18 -0
- package/lib/services/security-service/security.service.d.ts.map +1 -0
- package/lib/services/tour/tour.service.d.ts +25 -0
- package/lib/services/tour/tour.service.d.ts.map +1 -0
- package/lib/services/util/util.service.d.ts +194 -0
- package/lib/services/util/util.service.d.ts.map +1 -0
- package/lib/services/weekly-cert/weekly-cert-v2.service.d.ts +17 -0
- package/lib/services/weekly-cert/weekly-cert-v2.service.d.ts.map +1 -0
- package/lib/validations/AppRegex.d.ts +50 -0
- package/lib/validations/AppRegex.d.ts.map +1 -0
- package/lib/validations/AppValidators.d.ts +82 -0
- package/lib/validations/AppValidators.d.ts.map +1 -0
- package/package.json +28 -0
- package/public-api.d.ts +128 -0
- package/public-api.d.ts.map +1 -0
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Component, Input } from '@angular/core';
|
|
2
|
+
import { rowExpansionTrigger } from '../../annimations/app-animations';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "@angular/common";
|
|
5
|
+
import * as i2 from "@angular/material/form-field";
|
|
6
|
+
import * as i3 from "@ngx-translate/core";
|
|
7
|
+
function ErrorComponent_div_0_mat_error_1_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
+
i0.ɵɵelementStart(0, "mat-error")(1, "small");
|
|
9
|
+
i0.ɵɵtext(2);
|
|
10
|
+
i0.ɵɵpipe(3, "translate");
|
|
11
|
+
i0.ɵɵelementEnd()();
|
|
12
|
+
} if (rf & 2) {
|
|
13
|
+
const msg_r2 = ctx.$implicit;
|
|
14
|
+
i0.ɵɵadvance(2);
|
|
15
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, msg_r2));
|
|
16
|
+
} }
|
|
17
|
+
function ErrorComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
+
i0.ɵɵelementStart(0, "div", 1);
|
|
19
|
+
i0.ɵɵtemplate(1, ErrorComponent_div_0_mat_error_1_Template, 4, 3, "mat-error", 2);
|
|
20
|
+
i0.ɵɵelementEnd();
|
|
21
|
+
} if (rf & 2) {
|
|
22
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
23
|
+
i0.ɵɵproperty("@rowExpansionTrigger", "active")("ngClass", ctx_r0.class);
|
|
24
|
+
i0.ɵɵadvance(1);
|
|
25
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.errorMessages);
|
|
26
|
+
} }
|
|
27
|
+
export class ErrorComponent {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.errorMessages = [];
|
|
30
|
+
this.errorMessage = '';
|
|
31
|
+
}
|
|
32
|
+
ngOnInit() { }
|
|
33
|
+
isError() {
|
|
34
|
+
this.buildErrors();
|
|
35
|
+
const isSubmitted = this.ngForm && this.ngForm.submitted;
|
|
36
|
+
const hasError = !!(this.formControl && this.formControl.invalid && (this.formControl.dirty || this.formControl.touched || isSubmitted));
|
|
37
|
+
if (hasError) {
|
|
38
|
+
this.formControl.markAsTouched({ onlySelf: true });
|
|
39
|
+
this.formControl.markAsDirty({ onlySelf: true });
|
|
40
|
+
}
|
|
41
|
+
return hasError;
|
|
42
|
+
}
|
|
43
|
+
buildErrors() {
|
|
44
|
+
this.errorMessages = [];
|
|
45
|
+
this.errorMessage = '';
|
|
46
|
+
if (this.errDef && (this.formControl?.errors)) {
|
|
47
|
+
Object.keys(this.errDef).some(key => {
|
|
48
|
+
if (this.formControl.errors && this.formControl.errors[key]) {
|
|
49
|
+
this.errorMessages.push(this.errDef[key]);
|
|
50
|
+
}
|
|
51
|
+
return false;
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
for (const m of this.errorMessages) {
|
|
55
|
+
if (this.errorMessage.length > 0) {
|
|
56
|
+
this.errorMessage = this.errorMessage + '. ';
|
|
57
|
+
}
|
|
58
|
+
this.errorMessage = this.errorMessage + m;
|
|
59
|
+
}
|
|
60
|
+
return this.errorMessages.length > 0 && this.formControl.dirty;
|
|
61
|
+
}
|
|
62
|
+
static { this.ɵfac = function ErrorComponent_Factory(t) { return new (t || ErrorComponent)(); }; }
|
|
63
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ErrorComponent, selectors: [["app-error"]], inputs: { formControl: ["field", "formControl"], ngForm: ["form", "ngForm"], errDef: "errDef", class: "class" }, decls: 1, vars: 1, consts: [[3, "ngClass", 4, "ngIf"], [3, "ngClass"], [4, "ngFor", "ngForOf"]], template: function ErrorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
+
i0.ɵɵtemplate(0, ErrorComponent_div_0_Template, 2, 3, "div", 0);
|
|
65
|
+
} if (rf & 2) {
|
|
66
|
+
i0.ɵɵproperty("ngIf", ctx.isError());
|
|
67
|
+
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.MatError, i3.TranslatePipe], styles: [".p-messages-error[_ngcontent-%COMP%]{margin:4px 0 0}"], data: { animation: [rowExpansionTrigger] } }); }
|
|
68
|
+
}
|
|
69
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorComponent, [{
|
|
70
|
+
type: Component,
|
|
71
|
+
args: [{ selector: 'app-error', animations: [rowExpansionTrigger], template: "<div *ngIf=\"isError()\" [@rowExpansionTrigger]=\"'active'\" [ngClass]=\"class\">\r\n <mat-error *ngFor=\"let msg of errorMessages\"><small>{{msg | translate}}</small></mat-error>\r\n</div>\r\n\r\n", styles: [".p-messages-error{margin:4px 0 0}\n"] }]
|
|
72
|
+
}], () => [], { formControl: [{
|
|
73
|
+
type: Input,
|
|
74
|
+
args: ["field"]
|
|
75
|
+
}], ngForm: [{
|
|
76
|
+
type: Input,
|
|
77
|
+
args: ["form"]
|
|
78
|
+
}], errDef: [{
|
|
79
|
+
type: Input,
|
|
80
|
+
args: ["errDef"]
|
|
81
|
+
}], class: [{
|
|
82
|
+
type: Input,
|
|
83
|
+
args: ["class"]
|
|
84
|
+
}] }); })();
|
|
85
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(ErrorComponent, { className: "ErrorComponent", filePath: "lib\\components\\error\\error.component.ts", lineNumber: 11 }); })();
|
|
86
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXJyb3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXJldXNhLWFwcC1saWIvc3JjL2xpYi9jb21wb25lbnRzL2Vycm9yL2Vycm9yLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZXVzYS1hcHAtbGliL3NyYy9saWIvY29tcG9uZW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Q29udHJvbD8uZXJyb3JzICkgKSB7XG4gICAgICBPYmplY3Qua2V5cyh0aGlzLmVyckRlZikuc29tZShrZXkgPT4ge1xuXG4gICAgICAgIGlmICggdGhpcy5mb3JtQ29udHJvbC5lcnJvcnMgJiYgdGhpcy5mb3JtQ29udHJvbC5lcnJvcnNba2V5XSkge1xuICAgICAgICAgIHRoaXMuZXJyb3JNZXNzYWdlcy5wdXNoKHRoaXMuZXJyRGVmW2tleV0pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBmYWxzZTtcbiAgICAgIH0pO1xuICAgIH1cblxuICAgIGZvciAoIGNvbnN0IG0gb2YgdGhpcy5lcnJvck1lc3NhZ2VzICl7XG4gICAgICBpZiAoIHRoaXMuZXJyb3JNZXNzYWdlLmxlbmd0aCA+IDAgKSB7XG4gICAgICAgIHRoaXMuZXJyb3JNZXNzYWdlID0gdGhpcy5lcnJvck1lc3NhZ2UgKyAnLiAgJztcbiAgICAgIH1cbiAgICAgIHRoaXMuZXJyb3JNZXNzYWdlID0gdGhpcy5lcnJvck1lc3NhZ2UgKyBtO1xuICAgIH1cblxuICAgIHJldHVybiB0aGlzLmVycm9yTWVzc2FnZXMubGVuZ3RoID4gMCAgJiYgdGhpcy5mb3JtQ29udHJvbC5kaXJ0eTtcblxuICB9XG5cbn1cbiIsIjxkaXYgKm5nSWY9XCJpc0Vycm9yKClcIiBbQHJvd0V4cGFuc2lvblRyaWdnZXJdPVwiJ2FjdGl2ZSdcIiBbbmdDbGFzc109XCJjbGFzc1wiPlxyXG4gIDxtYXQtZXJyb3IgKm5nRm9yPVwibGV0IG1zZyBvZiBlcnJvck1lc3NhZ2VzXCI+PHNtYWxsPnt7bXNnIHwgdHJhbnNsYXRlfX08L3NtYWxsPjwvbWF0LWVycm9yPlxyXG48L2Rpdj5cclxuXHJcbiJdfQ==
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "../../services/login/login.service";
|
|
4
|
+
import * as i2 from "../../services/util/util.service";
|
|
5
|
+
import * as i3 from "@angular/router";
|
|
6
|
+
import * as i4 from "@ionic/angular";
|
|
7
|
+
import * as i5 from "@angular/common";
|
|
8
|
+
import * as i6 from "primeng/tooltip";
|
|
9
|
+
import * as i7 from "@angular/material/form-field";
|
|
10
|
+
import * as i8 from "primeng/tabview";
|
|
11
|
+
import * as i9 from "@ngx-translate/core";
|
|
12
|
+
function FavMenuComponent_ion_item_3_Template(rf, ctx) { if (rf & 1) {
|
|
13
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
14
|
+
i0.ɵɵelementStart(0, "ion-item", 6);
|
|
15
|
+
i0.ɵɵlistener("click", function FavMenuComponent_ion_item_3_Template_ion_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const item_r3 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.openPage(item_r3)); });
|
|
16
|
+
i0.ɵɵelementStart(1, "ion-label", 7);
|
|
17
|
+
i0.ɵɵtext(2);
|
|
18
|
+
i0.ɵɵelementEnd();
|
|
19
|
+
i0.ɵɵelementStart(3, "ion-button", 8);
|
|
20
|
+
i0.ɵɵlistener("click", function FavMenuComponent_ion_item_3_Template_ion_button_click_3_listener($event) { const restoredCtx = i0.ɵɵrestoreView(_r5); const item_r3 = restoredCtx.$implicit; const ctx_r6 = i0.ɵɵnextContext(); ctx_r6.removeFav(item_r3); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
21
|
+
i0.ɵɵelement(4, "ion-icon", 9);
|
|
22
|
+
i0.ɵɵelementEnd()();
|
|
23
|
+
} if (rf & 2) {
|
|
24
|
+
const item_r3 = ctx.$implicit;
|
|
25
|
+
i0.ɵɵadvance(2);
|
|
26
|
+
i0.ɵɵtextInterpolate(item_r3.label);
|
|
27
|
+
} }
|
|
28
|
+
function FavMenuComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
29
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "mat-hint")(2, "small");
|
|
30
|
+
i0.ɵɵtext(3);
|
|
31
|
+
i0.ɵɵpipe(4, "translate");
|
|
32
|
+
i0.ɵɵelementEnd()();
|
|
33
|
+
i0.ɵɵelement(5, "ion-menu-button", 11);
|
|
34
|
+
i0.ɵɵelementEnd();
|
|
35
|
+
} if (rf & 2) {
|
|
36
|
+
i0.ɵɵadvance(3);
|
|
37
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, "No Favourite Menu selected. Click below to select Favourite Menu."));
|
|
38
|
+
} }
|
|
39
|
+
function FavMenuComponent_p_tabPanel_5_ion_item_2_Template(rf, ctx) { if (rf & 1) {
|
|
40
|
+
const _r11 = i0.ɵɵgetCurrentView();
|
|
41
|
+
i0.ɵɵelementStart(0, "ion-item", 15);
|
|
42
|
+
i0.ɵɵlistener("click", function FavMenuComponent_p_tabPanel_5_ion_item_2_Template_ion_item_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r11); const link_r9 = restoredCtx.$implicit; const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.openPage(link_r9)); });
|
|
43
|
+
i0.ɵɵelementStart(1, "ion-button", 16);
|
|
44
|
+
i0.ɵɵelement(2, "ion-icon", 17);
|
|
45
|
+
i0.ɵɵelementEnd();
|
|
46
|
+
i0.ɵɵelementStart(3, "ion-label", 7)(4, "b");
|
|
47
|
+
i0.ɵɵtext(5);
|
|
48
|
+
i0.ɵɵelementEnd()()();
|
|
49
|
+
} if (rf & 2) {
|
|
50
|
+
const link_r9 = ctx.$implicit;
|
|
51
|
+
i0.ɵɵstyleMapInterpolate1("--border-width: 0 0 2px 0; --border-color: ", link_r9.state.color, "; font-size: small; padding: 1px;");
|
|
52
|
+
i0.ɵɵadvance(1);
|
|
53
|
+
i0.ɵɵstyleMapInterpolate1("--background: ", link_r9.state.color, ";");
|
|
54
|
+
i0.ɵɵadvance(2);
|
|
55
|
+
i0.ɵɵstyleMapInterpolate1("--color: ", link_r9.state.color, ";");
|
|
56
|
+
i0.ɵɵadvance(2);
|
|
57
|
+
i0.ɵɵtextInterpolate(link_r9.label);
|
|
58
|
+
} }
|
|
59
|
+
function FavMenuComponent_p_tabPanel_5_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
60
|
+
i0.ɵɵelementStart(0, "div", 10)(1, "mat-hint")(2, "small");
|
|
61
|
+
i0.ɵɵtext(3);
|
|
62
|
+
i0.ɵɵpipe(4, "translate");
|
|
63
|
+
i0.ɵɵelementEnd()()();
|
|
64
|
+
} if (rf & 2) {
|
|
65
|
+
i0.ɵɵadvance(3);
|
|
66
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 1, "No Trending Menu set at this time."));
|
|
67
|
+
} }
|
|
68
|
+
function FavMenuComponent_p_tabPanel_5_Template(rf, ctx) { if (rf & 1) {
|
|
69
|
+
i0.ɵɵelementStart(0, "p-tabPanel", 12)(1, "ion-list", 13);
|
|
70
|
+
i0.ɵɵtemplate(2, FavMenuComponent_p_tabPanel_5_ion_item_2_Template, 6, 10, "ion-item", 14);
|
|
71
|
+
i0.ɵɵelementEnd();
|
|
72
|
+
i0.ɵɵtemplate(3, FavMenuComponent_p_tabPanel_5_div_3_Template, 5, 3, "div", 4);
|
|
73
|
+
i0.ɵɵelementEnd();
|
|
74
|
+
} if (rf & 2) {
|
|
75
|
+
const ctx_r2 = i0.ɵɵnextContext();
|
|
76
|
+
i0.ɵɵadvance(2);
|
|
77
|
+
i0.ɵɵproperty("ngForOf", ctx_r2.trendingLinks);
|
|
78
|
+
i0.ɵɵadvance(1);
|
|
79
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.trendingLinks || ctx_r2.trendingLinks.length < 1);
|
|
80
|
+
} }
|
|
81
|
+
export class FavMenuComponent {
|
|
82
|
+
constructor(ls, util, r) {
|
|
83
|
+
this.ls = ls;
|
|
84
|
+
this.util = util;
|
|
85
|
+
this.r = r;
|
|
86
|
+
this.favs = [];
|
|
87
|
+
this.trendingLinks = [];
|
|
88
|
+
this.activeIndex = 1;
|
|
89
|
+
}
|
|
90
|
+
ngOnInit() {
|
|
91
|
+
this.ls.getMenuBs().subscribe(menus => {
|
|
92
|
+
this.favs = [];
|
|
93
|
+
if (menus) {
|
|
94
|
+
menus.forEach(menu => {
|
|
95
|
+
menu.items.forEach(item => {
|
|
96
|
+
if (item.state.isFav) {
|
|
97
|
+
this.favs.push(item);
|
|
98
|
+
this.activeIndex = 0;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
this.ls.getUserBs().subscribe(user => {
|
|
105
|
+
if (user && !user.is2FARequired) {
|
|
106
|
+
this.ls.getTrendingMenu().subscribe(res => {
|
|
107
|
+
this.trendingLinks = res;
|
|
108
|
+
}, err => {
|
|
109
|
+
this.trendingLinks = [];
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
removeFav(item) {
|
|
115
|
+
this.ls
|
|
116
|
+
.removeFav(item.state.id)
|
|
117
|
+
.subscribe(res => {
|
|
118
|
+
this.ls.getMenuBs().next(res);
|
|
119
|
+
this.util.toast("Removed Favourite.");
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
openPage(menu) {
|
|
123
|
+
if (!menu) {
|
|
124
|
+
return;
|
|
125
|
+
}
|
|
126
|
+
let currentContextRoot = this.getContextRoot();
|
|
127
|
+
let menuContextRoot = `/${menu.state.context}`;
|
|
128
|
+
let pageToNavigate = menu.state.routerLink;
|
|
129
|
+
if (currentContextRoot == menuContextRoot) {
|
|
130
|
+
this.r.navigateByUrl(`/${pageToNavigate}`);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
window.open(location.origin + `${menuContextRoot}/${menu.state.routerLink}`, '_self');
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
getContextRoot() {
|
|
137
|
+
return window.location.pathname.substring(0, window.location.pathname.indexOf("/", 2));
|
|
138
|
+
}
|
|
139
|
+
static { this.ɵfac = function FavMenuComponent_Factory(t) { return new (t || FavMenuComponent)(i0.ɵɵdirectiveInject(i1.LoginService), i0.ɵɵdirectiveInject(i2.UtilService), i0.ɵɵdirectiveInject(i3.Router)); }; }
|
|
140
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FavMenuComponent, selectors: [["app-fav-menu"]], decls: 6, vars: 4, consts: [[3, "activeIndex", "activeIndexChange"], ["header", "Fav", "leftIcon", "pi pi-star"], ["lines", "none"], ["button", "true", "style", " font-size: small; padding: 1px", 3, "click", 4, "ngFor", "ngForOf"], ["class", "ion-text-center", 4, "ngIf"], ["header", "Trending", "leftIcon", "pi pi-chart-line", 4, "ngIf"], ["button", "true", 2, "font-size", "small", "padding", "1px", 3, "click"], [1, "ion-text-wrap"], ["slot", "end", "color", "danger", 3, "click"], ["name", "remove-circle-outline"], [1, "ion-text-center"], ["autoHide", "false", "pTooltip", "Menu", "tooltipPosition", "bottom"], ["header", "Trending", "leftIcon", "pi pi-chart-line"], ["lines", "full"], ["button", "true", 3, "style", "click", 4, "ngFor", "ngForOf"], ["button", "true", 3, "click"], ["slot", "start"], ["name", "link-outline"]], template: function FavMenuComponent_Template(rf, ctx) { if (rf & 1) {
|
|
141
|
+
i0.ɵɵelementStart(0, "p-tabView", 0);
|
|
142
|
+
i0.ɵɵlistener("activeIndexChange", function FavMenuComponent_Template_p_tabView_activeIndexChange_0_listener($event) { return ctx.activeIndex = $event; });
|
|
143
|
+
i0.ɵɵelementStart(1, "p-tabPanel", 1)(2, "ion-list", 2);
|
|
144
|
+
i0.ɵɵtemplate(3, FavMenuComponent_ion_item_3_Template, 5, 1, "ion-item", 3)(4, FavMenuComponent_div_4_Template, 6, 3, "div", 4);
|
|
145
|
+
i0.ɵɵelementEnd()();
|
|
146
|
+
i0.ɵɵtemplate(5, FavMenuComponent_p_tabPanel_5_Template, 4, 2, "p-tabPanel", 5);
|
|
147
|
+
i0.ɵɵelementEnd();
|
|
148
|
+
} if (rf & 2) {
|
|
149
|
+
i0.ɵɵproperty("activeIndex", ctx.activeIndex);
|
|
150
|
+
i0.ɵɵadvance(3);
|
|
151
|
+
i0.ɵɵproperty("ngForOf", ctx.favs);
|
|
152
|
+
i0.ɵɵadvance(1);
|
|
153
|
+
i0.ɵɵproperty("ngIf", ctx.favs.length < 1);
|
|
154
|
+
i0.ɵɵadvance(1);
|
|
155
|
+
i0.ɵɵproperty("ngIf", ctx.trendingLinks && ctx.trendingLinks.length > 1);
|
|
156
|
+
} }, dependencies: [i4.IonButton, i4.IonIcon, i4.IonItem, i4.IonLabel, i4.IonList, i4.IonMenuButton, i5.NgForOf, i5.NgIf, i6.Tooltip, i7.MatHint, i8.TabView, i8.TabPanel, i9.TranslatePipe] }); }
|
|
157
|
+
}
|
|
158
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FavMenuComponent, [{
|
|
159
|
+
type: Component,
|
|
160
|
+
args: [{ selector: 'app-fav-menu', template: "<p-tabView [(activeIndex)]=\"activeIndex\">\r\n <p-tabPanel header=\"Fav\" leftIcon=\"pi pi-star\">\r\n <ion-list lines=\"none\">\r\n <ion-item button='true' style=\" font-size: small; padding: 1px\" *ngFor=\"let item of favs\"\r\n (click)=\"openPage(item)\">\r\n <ion-label class=\"ion-text-wrap\">{{item.label}}</ion-label>\r\n <ion-button slot=\"end\" color=\"danger\" (click)=\"removeFav(item); $event.stopPropagation();\">\r\n <ion-icon name=\"remove-circle-outline\"></ion-icon>\r\n </ion-button>\r\n </ion-item>\r\n <div *ngIf=\"favs.length < 1\" class=\"ion-text-center\">\r\n <mat-hint><small>{{'No Favourite Menu selected. Click below to select Favourite Menu.' | translate}}</small></mat-hint>\r\n <ion-menu-button autoHide=\"false\" pTooltip=\"Menu\" tooltipPosition=\"bottom\"></ion-menu-button>\r\n </div>\r\n </ion-list>\r\n </p-tabPanel>\r\n <p-tabPanel header=\"Trending\" leftIcon=\"pi pi-chart-line\" *ngIf=\"trendingLinks && trendingLinks.length > 1\">\r\n <ion-list lines=\"full\">\r\n <ion-item button='true'\r\n style=\"--border-width: 0 0 2px 0; --border-color: {{link.state.color}}; font-size: small; padding: 1px;\"\r\n *ngFor=\"let link of trendingLinks\" (click)=\"openPage(link)\">\r\n <ion-button slot=\"start\" style=\"--background: {{link.state.color}};\">\r\n <ion-icon name=\"link-outline\"></ion-icon>\r\n </ion-button>\r\n <ion-label style=\"--color: {{link.state.color}};\" class=\"ion-text-wrap\"><b>{{link.label}}</b></ion-label>\r\n </ion-item>\r\n </ion-list>\r\n <div *ngIf=\"!trendingLinks || trendingLinks.length < 1\" class=\"ion-text-center\">\r\n <mat-hint><small>{{'No Trending Menu set at this time.' | translate}}</small></mat-hint>\r\n </div>\r\n </p-tabPanel>\r\n</p-tabView>" }]
|
|
161
|
+
}], () => [{ type: i1.LoginService }, { type: i2.UtilService }, { type: i3.Router }], null); })();
|
|
162
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FavMenuComponent, { className: "FavMenuComponent", filePath: "lib\\components\\fav-menu\\fav-menu.component.ts", lineNumber: 12 }); })();
|
|
163
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmF2LW1lbnUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LXJldXNhLWFwcC1saWIvc3JjL2xpYi9jb21wb25lbnRzL2Zhdi1tZW51L2Zhdi1tZW51LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZXVzYS1hcHAtbGliL3NyYy9saWIvY29tcG9uZW50cy9mYXYtbWVudS9mYXYtbWVudS5jb21wb25lbnQuaHRtbCJdLCJ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G9yOiB7e2xpbmsuc3RhdGUuY29sb3J9fTsgZm9udC1zaXplOiBzbWFsbDsgcGFkZGluZzogMXB4O1wiXHJcbiAgICAgICAgICAgICAgICAqbmdGb3I9XCJsZXQgbGluayBvZiB0cmVuZGluZ0xpbmtzXCIgKGNsaWNrKT1cIm9wZW5QYWdlKGxpbmspXCI+XHJcbiAgICAgICAgICAgICAgICA8aW9uLWJ1dHRvbiBzbG90PVwic3RhcnRcIiBzdHlsZT1cIi0tYmFja2dyb3VuZDoge3tsaW5rLnN0YXRlLmNvbG9yfX07XCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPGlvbi1pY29uIG5hbWU9XCJsaW5rLW91dGxpbmVcIj48L2lvbi1pY29uPlxyXG4gICAgICAgICAgICAgICAgPC9pb24tYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgPGlvbi1sYWJlbCBzdHlsZT1cIi0tY29sb3I6IHt7bGluay5zdGF0ZS5jb2xvcn19O1wiIGNsYXNzPVwiaW9uLXRleHQtd3JhcFwiPjxiPnt7bGluay5sYWJlbH19PC9iPjwvaW9uLWxhYmVsPlxyXG4gICAgICAgICAgICA8L2lvbi1pdGVtPlxyXG4gICAgICAgIDwvaW9uLWxpc3Q+XHJcbiAgICAgICAgPGRpdiAqbmdJZj1cIiF0cmVuZGluZ0xpbmtzIHx8IHRyZW5kaW5nTGlua3MubGVuZ3RoIDwgMVwiIGNsYXNzPVwiaW9uLXRleHQtY2VudGVyXCI+XHJcbiAgICAgICAgICAgIDxtYXQtaGludD48c21hbGw+e3snTm8gVHJlbmRpbmcgTWVudSBzZXQgYXQgdGhpcyB0aW1lLicgfCB0cmFuc2xhdGV9fTwvc21hbGw+PC9tYXQtaGludD5cclxuICAgICAgICA8L2Rpdj5cclxuICAgIDwvcC10YWJQYW5lbD5cclxuPC9wLXRhYlZpZXc+Il19
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { Component, Input, SecurityContext } from '@angular/core';
|
|
2
|
+
import { Directory, Filesystem } from '@capacitor/filesystem';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import * as i1 from "../../services/questionnaire/validation.service";
|
|
5
|
+
import * as i2 from "@angular/platform-browser";
|
|
6
|
+
import * as i3 from "../../services/logger/logger.service";
|
|
7
|
+
import * as i4 from "../../services/util/util.service";
|
|
8
|
+
import * as i5 from "@ionic/angular";
|
|
9
|
+
import * as i6 from "@angular/common";
|
|
10
|
+
import * as i7 from "primeng/tooltip";
|
|
11
|
+
function FileDownloadComponent_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
12
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
13
|
+
i0.ɵɵelementStart(0, "a", 2);
|
|
14
|
+
i0.ɵɵlistener("click", function FileDownloadComponent_a_0_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.downloadFile()); });
|
|
15
|
+
i0.ɵɵtext(1);
|
|
16
|
+
i0.ɵɵelementEnd();
|
|
17
|
+
} if (rf & 2) {
|
|
18
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
19
|
+
i0.ɵɵadvance(1);
|
|
20
|
+
i0.ɵɵtextInterpolate(ctx_r0.name);
|
|
21
|
+
} }
|
|
22
|
+
function FileDownloadComponent_ion_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
23
|
+
const _r5 = i0.ɵɵgetCurrentView();
|
|
24
|
+
i0.ɵɵelementStart(0, "ion-button", 3);
|
|
25
|
+
i0.ɵɵlistener("click", function FileDownloadComponent_ion_button_1_Template_ion_button_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.downloadFile()); });
|
|
26
|
+
i0.ɵɵelement(1, "ion-icon", 4);
|
|
27
|
+
i0.ɵɵelementEnd();
|
|
28
|
+
} if (rf & 2) {
|
|
29
|
+
i0.ɵɵadvance(1);
|
|
30
|
+
i0.ɵɵproperty("name", "arrow-down-outline");
|
|
31
|
+
} }
|
|
32
|
+
export class FileDownloadComponent {
|
|
33
|
+
constructor(vs, sanitizer, log, util, platform) {
|
|
34
|
+
this.vs = vs;
|
|
35
|
+
this.sanitizer = sanitizer;
|
|
36
|
+
this.log = log;
|
|
37
|
+
this.util = util;
|
|
38
|
+
this.platform = platform;
|
|
39
|
+
this.uri = null;
|
|
40
|
+
this.button = false;
|
|
41
|
+
}
|
|
42
|
+
ngOnInit() {
|
|
43
|
+
}
|
|
44
|
+
downloadFile() {
|
|
45
|
+
this.util
|
|
46
|
+
.showLoader()
|
|
47
|
+
.then(() => {
|
|
48
|
+
this.vs
|
|
49
|
+
.get(this.uri)
|
|
50
|
+
.subscribe(async (res) => {
|
|
51
|
+
const base64 = `${res['data']}`;
|
|
52
|
+
const mimeType = `${res['mimeType']}`;
|
|
53
|
+
const fileName = res['fileName'];
|
|
54
|
+
const isCapacitor = this.platform.is('capacitor');
|
|
55
|
+
if (isCapacitor) {
|
|
56
|
+
let savedFile = await Filesystem.writeFile({
|
|
57
|
+
path: fileName,
|
|
58
|
+
data: base64,
|
|
59
|
+
directory: this.platform.is("ios") ? Directory.Documents : Directory.Data
|
|
60
|
+
});
|
|
61
|
+
let options = { path: savedFile.uri };
|
|
62
|
+
Filesystem.readFile(options)
|
|
63
|
+
.then(() => {
|
|
64
|
+
this.util.hideLoader();
|
|
65
|
+
}).catch(err => {
|
|
66
|
+
console.error("Error opening file", err);
|
|
67
|
+
this.util.hideLoader();
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
else {
|
|
71
|
+
const linkSource = `data:${mimeType};base64,${base64}`;
|
|
72
|
+
const downloadLink = document.createElement("a");
|
|
73
|
+
downloadLink.href = linkSource;
|
|
74
|
+
downloadLink.download = this.sanitizer.sanitize(SecurityContext.NONE, fileName);
|
|
75
|
+
downloadLink.click();
|
|
76
|
+
this.util.hideLoader();
|
|
77
|
+
}
|
|
78
|
+
}, err => {
|
|
79
|
+
this.log.log('error', err);
|
|
80
|
+
this.util.hideLoader();
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
static { this.ɵfac = function FileDownloadComponent_Factory(t) { return new (t || FileDownloadComponent)(i0.ɵɵdirectiveInject(i1.ValidationService), i0.ɵɵdirectiveInject(i2.DomSanitizer), i0.ɵɵdirectiveInject(i3.LoggerService), i0.ɵɵdirectiveInject(i4.UtilService), i0.ɵɵdirectiveInject(i5.Platform)); }; }
|
|
85
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FileDownloadComponent, selectors: [["app-file-download"]], inputs: { uri: "uri", name: "name", button: "button" }, decls: 2, vars: 2, consts: [["class", "link", 3, "click", 4, "ngIf"], ["shape", "round", "size", "small", "color", "primary", "pTooltip", "Download", "tooltipPosition", "bottom", "class", "ion-padding-left", "fill", "outline", 3, "click", 4, "ngIf"], [1, "link", 3, "click"], ["shape", "round", "size", "small", "color", "primary", "pTooltip", "Download", "tooltipPosition", "bottom", "fill", "outline", 1, "ion-padding-left", 3, "click"], [3, "name"]], template: function FileDownloadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
86
|
+
i0.ɵɵtemplate(0, FileDownloadComponent_a_0_Template, 2, 1, "a", 0)(1, FileDownloadComponent_ion_button_1_Template, 2, 1, "ion-button", 1);
|
|
87
|
+
} if (rf & 2) {
|
|
88
|
+
i0.ɵɵproperty("ngIf", !ctx.button);
|
|
89
|
+
i0.ɵɵadvance(1);
|
|
90
|
+
i0.ɵɵproperty("ngIf", ctx.button);
|
|
91
|
+
} }, dependencies: [i5.IonButton, i5.IonIcon, i6.NgIf, i7.Tooltip], styles: ["ion-button[_ngcontent-%COMP%]::part(native){padding:6px 7px}"] }); }
|
|
92
|
+
}
|
|
93
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FileDownloadComponent, [{
|
|
94
|
+
type: Component,
|
|
95
|
+
args: [{ selector: 'app-file-download', template: "<a class=\"link\" (click)=\"downloadFile()\" *ngIf=\"!button\">{{ name }}</a>\r\n<ion-button *ngIf=\"button\" shape=\"round\" size=\"small\" (click)=\"downloadFile()\" color=\"primary\" pTooltip=\"Download\" tooltipPosition=\"bottom\" class=\"ion-padding-left\" fill=\"outline\">\r\n <ion-icon [name]=\"'arrow-down-outline'\" ></ion-icon>\r\n</ion-button>", styles: ["ion-button::part(native){padding:6px 7px}\n"] }]
|
|
96
|
+
}], () => [{ type: i1.ValidationService }, { type: i2.DomSanitizer }, { type: i3.LoggerService }, { type: i4.UtilService }, { type: i5.Platform }], { uri: [{
|
|
97
|
+
type: Input
|
|
98
|
+
}], name: [{
|
|
99
|
+
type: Input
|
|
100
|
+
}], button: [{
|
|
101
|
+
type: Input
|
|
102
|
+
}] }); })();
|
|
103
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FileDownloadComponent, { className: "FileDownloadComponent", filePath: "lib\\components\\file-download\\file-download.component.ts", lineNumber: 15 }); })();
|
|
104
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsZS1kb3dubG9hZC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtcmV1c2EtYXBwLWxpYi9zcmMvbGliL2NvbXBvbmVudHMvZmlsZS1kb3dubG9hZC9maWxlLWRvd25sb2FkLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL25neC1yZXVzYS1hcHAtbGliL3NyYy9saWIvY29tcG9uZW50cy9maWxlLWRvd25sb2FkL2ZpbGUtZG93bmxvYWQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQVUsZUFBZSxFQUFFLE1BQU0sZU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4gIGNvbnN0cnVjdG9yKHB1YmxpYyB2czogVmFsaWRhdGlvblNlcnZpY2UsIHByaXZhdGUgc2FuaXRpemVyOiBEb21TYW5pdGl6ZXIsIHByaXZhdGUgbG9nOiBMb2dnZXJTZXJ2aWNlLCBwcml2YXRlIHV0aWwgOiBVdGlsU2VydmljZSxcbiAgICBwcml2YXRlIHBsYXRmb3JtOiBQbGF0Zm9ybSkgeyB9XG5cbiAgbmdPbkluaXQoKTogdm9pZCB7XG4gIH1cblxuICBkb3dubG9hZEZpbGUoKXtcbiAgICB0aGlzLnV0aWxcbiAgICAgICAgLnNob3dMb2FkZXIoKVxuICAgICAgICAudGhlbigoKSA9PiB7XG4gICAgICAgICAgdGhpcy52c1xuICAgICAgICAgICAgICAuZ2V0KHRoaXMudXJpKVxuICAgICAgICAgICAgICAuc3Vic2NyaWJlKFxuICAgICAgICAgICAgICAgIGFzeW5jIHJlcyA9PiB7XG4gICAgICAgICAgICAgICAgICBjb25zdCBiYXNlNjQgPSBgJHtyZXNbJ2RhdGEnXX1gO1xuICAgICAgICAgICAgICAgICAgY29uc3QgbWltZVR5cGUgPSBgJHtyZXNbJ21pbWVUeXBlJ119YDtcbiAgICAgICAgICAgICAgICAgIGNvbnN0IGZpbGVOYW1lID0gcmVzWydmaWxlTmFtZSddO1xuICAgICAgICAgICAgICAgICAgY29uc3QgaXNDYXBhY2l0b3IgPSB0aGlzLnBsYXRmb3JtLmlzKCdjYXBhY2l0b3InKTtcbiAgICAgICAgICAgICAgICAgIGlmKGlzQ2FwYWNpdG9yKXtcbiAgICAgICAgICAgICAgICAgICAgbGV0IHNhdmVkRmlsZSA9IGF3YWl0IEZpbGVzeXN0ZW0ud3JpdGVGaWxlKHtcbiAgICAgICAgICAgICAgICAgICAgICBwYXRoOiBmaWxlTmFtZSxcbiAgICAgICAgICAgICAgICAgICAgICBkYXRhOiBiYXNlNjQsXG4gICAgICAgICAgICAgICAgICAgICAgZGlyZWN0b3J5OiB0aGlzLnBsYXRmb3JtLmlzKFwiaW9zXCIpID8gRGlyZWN0b3J5LkRvY3VtZW50cyA6IERpcmVjdG9yeS5EYXRhXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgICAgICBsZXQgb3B0aW9ucyA6IFJlYWRGaWxlT3B0aW9ucyA9IHtwYXRoIDogc2F2ZWRGaWxlLnVyaX1cbiAgICAgICAgICAgICAgICAgICAgRmlsZXN5c3RlbS5yZWFkRmlsZShvcHRpb25zKVxuICAgICAgICAgICAgICAgICAgICAudGhlbigoKSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgdGhpcy51dGlsLmhpZGVMb2FkZXIoKVxuICAgICAgICAgICAgICAgICAgICB9KS5jYXRjaChlcnIgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgIGNvbnNvbGUuZXJyb3IoXCJFcnJvciBvcGVuaW5nIGZpbGVcIiwgZXJyKTtcbiAgICAgICAgICAgICAgICAgICAgICB0aGlzLnV0aWwuaGlkZUxvYWRlcigpIDtcbiAgICAgICAgICAgICAgICAgICAgfSk7XG4gICAgICAgICAgICAgICAgICB9ZWxzZXtcbiAgICAgICAgICAgICAgICAgICAgY29uc3QgbGlua1NvdXJjZSA9IGBkYXRhOiR7bWltZVR5cGV9O2Jhc2U2NCwke2Jhc2U2NH1gO1xuICAgICAgICAgICAgICAgICAgICBjb25zdCBkb3dubG9hZExpbmsgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KFwiYVwiKTtcbiAgICAgICAgICAgICAgICAgICAgZG93bmxvYWRMaW5rLmhyZWYgPSBsaW5rU291cmNlO1xuICAgICAgICAgICAgICAgICAgICBkb3dubG9hZExpbmsuZG93bmxvYWQgPSB0aGlzLnNhbml0aXplci5zYW5pdGl6ZShTZWN1cml0eUNvbnRleHQuTk9ORSwgZmlsZU5hbWUpIDtcbiAgICAgICAgICAgICAgICAgICAgZG93bmxvYWRMaW5rLmNsaWNrKCk7XG4gICAgICAgICAgICAgICAgICAgIHRoaXMudXRpbC5oaWRlTG9hZGVyKCk7XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfSxcbiAgICAgICAgICAgICAgICBlcnIgPT4ge1xuICAgICAgICAgICAgICAgICAgdGhpcy5sb2cubG9nKCdlcnJvcicsIGVycik7XG4gICAgICAgICAgICAgICAgICB0aGlzLnV0aWwuaGlkZUxvYWRlcigpO1xuICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgKTtcbiAgICAgICAgfSk7XG4gIH1cblxufVxuIiwiPGEgY2xhc3M9XCJsaW5rXCIgKGNsaWNrKT1cImRvd25sb2FkRmlsZSgpXCIgKm5nSWY9XCIhYnV0dG9uXCI+e3sgbmFtZSB9fTwvYT5cclxuPGlvbi1idXR0b24gKm5nSWY9XCJidXR0b25cIiBzaGFwZT1cInJvdW5kXCIgc2l6ZT1cInNtYWxsXCIgKGNsaWNrKT1cImRvd25sb2FkRmlsZSgpXCIgY29sb3I9XCJwcmltYXJ5XCIgcFRvb2x0aXA9XCJEb3dubG9hZFwiICB0b29sdGlwUG9zaXRpb249XCJib3R0b21cIiBjbGFzcz1cImlvbi1wYWRkaW5nLWxlZnRcIiBmaWxsPVwib3V0bGluZVwiPlxyXG4gICAgPGlvbi1pY29uIFtuYW1lXT1cIidhcnJvdy1kb3duLW91dGxpbmUnXCIgPjwvaW9uLWljb24+XHJcbjwvaW9uLWJ1dHRvbj4iXX0=
|