@piserve-tech/form-submission 1.3.317 → 1.3.319
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/environment/environment.d.ts +5 -0
- package/esm2022/environment/environment.mjs +6 -0
- package/esm2022/form-fields/aggregate-function/aggregate-function.component.mjs +146 -0
- package/esm2022/form-fields/check-box-fields/check-box-fields.component.mjs +473 -0
- package/esm2022/form-fields/currency-fields/currency-fields.component.mjs +502 -0
- package/esm2022/form-fields/date-time-fields/date-time-fields.component.mjs +608 -0
- package/esm2022/form-fields/drop-down-fields/drop-down-fields.component.mjs +585 -0
- package/esm2022/form-fields/file-picker-fields/file-picker-fields.component.mjs +224 -0
- package/esm2022/form-fields/form-fields.module.mjs +174 -0
- package/esm2022/form-fields/hidden-field/hidden-field.component.mjs +137 -0
- package/esm2022/form-fields/iframe-fields/iframe-fields.component.mjs +198 -0
- package/esm2022/form-fields/location-fields/location-fields.component.mjs +85 -0
- package/esm2022/form-fields/mail-fields/mail-fields.component.mjs +131 -0
- package/esm2022/form-fields/mobile-fields/mobile-fields.component.mjs +270 -0
- package/esm2022/form-fields/number-fields/number-fields.component.mjs +242 -0
- package/esm2022/form-fields/password-fields/password-fields.component.mjs +257 -0
- package/esm2022/form-fields/radio-button-fields/radio-button-fields.component.mjs +346 -0
- package/esm2022/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.mjs +148 -0
- package/esm2022/form-fields/section-fields/section-fields.component.mjs +29 -0
- package/esm2022/form-fields/selection-matrix-fields/selection-matrix-fields.component.mjs +158 -0
- package/esm2022/form-fields/signature-fields/signature-fields.component.mjs +32 -0
- package/esm2022/form-fields/slider-fields/slider-fields.component.mjs +73 -0
- package/esm2022/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.mjs +66 -0
- package/esm2022/form-fields/text-area-fields/text-area-fields.component.mjs +159 -0
- package/esm2022/form-fields/text-fields/text-fields.component.mjs +245 -0
- package/esm2022/form-fields/toggle-switch-fields/toggle-switch-fields.component.mjs +85 -0
- package/esm2022/form-fields/url-fields/url-fields.component.mjs +124 -0
- package/esm2022/form-submission/form-submission.module.mjs +64 -0
- package/esm2022/form-submission/header/header.component.mjs +20 -0
- package/esm2022/form-submission/navigation-tabs/navigation-tabs.component.mjs +171 -0
- package/esm2022/form-submission/next-prev-navigation/next-prev-navigation.component.mjs +124 -0
- package/esm2022/form-submission/save-as-draft/saveDraftModalComponent .mjs +50 -0
- package/esm2022/form-submission/submission-container/submission-container.component.mjs +17 -0
- package/esm2022/form-submission/submit-form/submit-form.component.mjs +1610 -0
- package/esm2022/lib/form-submission.component.mjs +113 -0
- package/esm2022/lib/form-submission.module.mjs +56 -0
- package/esm2022/lib/form-submission.service.mjs +14 -0
- package/esm2022/models/aggregate.model.mjs +2 -0
- package/esm2022/models/answer.model.mjs +2 -0
- package/esm2022/models/appearance.model.mjs +2 -0
- package/esm2022/models/attachment.model.mjs +2 -0
- package/esm2022/models/defaultAnswerEntry.model.mjs +2 -0
- package/esm2022/models/defaultAnswersModel.model.mjs +2 -0
- package/esm2022/models/defaultQuestionAnswer.model.mjs +2 -0
- package/esm2022/models/elementOptionAPI.model.mjs +2 -0
- package/esm2022/models/elementOptionAPIData.model.mjs +2 -0
- package/esm2022/models/elementOptionDB.model.mjs +2 -0
- package/esm2022/models/elementOptionDBCriteria.model.mjs +2 -0
- package/esm2022/models/emitters.model.mjs +2 -0
- package/esm2022/models/enum/condition.enum.mjs +18 -0
- package/esm2022/models/enum/elementType .enum.mjs +24 -0
- package/esm2022/models/enum/entityType.enum.mjs +12 -0
- package/esm2022/models/formConfiguration.model.mjs +2 -0
- package/esm2022/models/formElement.model.mjs +2 -0
- package/esm2022/models/formElementType.model.mjs +2 -0
- package/esm2022/models/grid.model.mjs +2 -0
- package/esm2022/models/hiddenField.model.mjs +2 -0
- package/esm2022/models/iFrameProperties.model.mjs +2 -0
- package/esm2022/models/logic.model.mjs +2 -0
- package/esm2022/models/multifields.model.mjs +2 -0
- package/esm2022/models/option.model.mjs +2 -0
- package/esm2022/models/page.model.mjs +2 -0
- package/esm2022/models/publicForm.model.mjs +2 -0
- package/esm2022/models/question.model.mjs +2 -0
- package/esm2022/models/questionAnswer.model.mjs +2 -0
- package/esm2022/models/questionGroup.model.mjs +2 -0
- package/esm2022/models/row.model.mjs +2 -0
- package/esm2022/models/scoring.model.mjs +2 -0
- package/esm2022/models/section.model.mjs +2 -0
- package/esm2022/models/subForm.model.mjs +2 -0
- package/esm2022/models/subformConfiguration.model.mjs +2 -0
- package/esm2022/models/subformPropery.model.mjs +2 -0
- package/esm2022/models/submission.model.mjs +2 -0
- package/esm2022/models/submissionCopyConfig.mopdel.mjs +2 -0
- package/esm2022/models/terms&condition.model.mjs +2 -0
- package/esm2022/models/validation.model.mjs +2 -0
- package/esm2022/models/whenClause.model.mjs +2 -0
- package/esm2022/models/whenClauseCondition.model.mjs +2 -0
- package/esm2022/models/whenClauseElements.model.mjs +2 -0
- package/esm2022/piserve-tech-form-submission.mjs +5 -0
- package/esm2022/public-api.mjs +7 -0
- package/esm2022/question/card-subform/card-subform.component.mjs +354 -0
- package/esm2022/question/confirm-dialog/confirm-dialog.component.mjs +27 -0
- package/esm2022/question/form-elements/form-elements.component.mjs +62 -0
- package/esm2022/question/inline-multiple-subform/inline-multiple-subform.component.mjs +384 -0
- package/esm2022/question/multifields/multifields.component.mjs +54 -0
- package/esm2022/question/multiple-subform/multiple-subform.component.mjs +413 -0
- package/esm2022/question/question/question.component.mjs +145 -0
- package/esm2022/question/question-group/question-group.component.mjs +102 -0
- package/esm2022/question/recursive-logic/recursive-logic.component.mjs +49 -0
- package/esm2022/question/sub-form/sub-form.component.mjs +355 -0
- package/esm2022/services/aggregate.service.mjs +139 -0
- package/esm2022/services/countryService.mjs +89 -0
- package/esm2022/services/data.service.mjs +36 -0
- package/esm2022/services/element-tracker.service.mjs +27 -0
- package/esm2022/services/form-validation.service.mjs +128 -0
- package/esm2022/services/form.service.mjs +332 -0
- package/esm2022/services/mapper.service.mjs +519 -0
- package/esm2022/services/recaptcha.service.mjs +136 -0
- package/esm2022/services/score.service.mjs +268 -0
- package/esm2022/services/subform-copy.service.mjs +122 -0
- package/esm2022/services/validation.service.mjs +35 -0
- package/esm2022/services/whenClause.service.mjs +423 -0
- package/esm2022/shared/shared.module.mjs +97 -0
- package/esm2022/sub-form/submission-modal/submission-modal.component.mjs +133 -0
- package/fesm2022/piserve-tech-form-submission.mjs +11661 -0
- package/fesm2022/piserve-tech-form-submission.mjs.map +1 -0
- package/form-fields/aggregate-function/aggregate-function.component.d.ts +43 -0
- package/form-fields/check-box-fields/check-box-fields.component.d.ts +73 -0
- package/form-fields/currency-fields/currency-fields.component.d.ts +62 -0
- package/form-fields/date-time-fields/date-time-fields.component.d.ts +96 -0
- package/form-fields/drop-down-fields/drop-down-fields.component.d.ts +88 -0
- package/form-fields/file-picker-fields/file-picker-fields.component.d.ts +72 -0
- package/form-fields/form-fields.module.d.ts +40 -0
- package/form-fields/hidden-field/hidden-field.component.d.ts +38 -0
- package/form-fields/iframe-fields/iframe-fields.component.d.ts +35 -0
- package/form-fields/location-fields/location-fields.component.d.ts +29 -0
- package/form-fields/mail-fields/mail-fields.component.d.ts +41 -0
- package/form-fields/mobile-fields/mobile-fields.component.d.ts +71 -0
- package/form-fields/number-fields/number-fields.component.d.ts +53 -0
- package/form-fields/password-fields/password-fields.component.d.ts +57 -0
- package/form-fields/radio-button-fields/radio-button-fields.component.d.ts +70 -0
- package/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.d.ts +46 -0
- package/form-fields/section-fields/section-fields.component.d.ts +10 -0
- package/form-fields/selection-matrix-fields/selection-matrix-fields.component.d.ts +45 -0
- package/form-fields/signature-fields/signature-fields.component.d.ts +13 -0
- package/form-fields/slider-fields/slider-fields.component.d.ts +32 -0
- package/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.d.ts +26 -0
- package/form-fields/text-area-fields/text-area-fields.component.d.ts +49 -0
- package/form-fields/text-fields/text-fields.component.d.ts +49 -0
- package/form-fields/toggle-switch-fields/toggle-switch-fields.component.d.ts +29 -0
- package/form-fields/url-fields/url-fields.component.d.ts +41 -0
- package/form-submission/form-submission.module.d.ts +20 -0
- package/form-submission/header/header.component.d.ts +7 -0
- package/form-submission/navigation-tabs/navigation-tabs.component.d.ts +57 -0
- package/form-submission/next-prev-navigation/next-prev-navigation.component.d.ts +46 -0
- package/form-submission/save-as-draft/saveDraftModalComponent .d.ts +17 -0
- package/form-submission/submission-container/submission-container.component.d.ts +7 -0
- package/form-submission/submit-form/submit-form.component.d.ts +237 -0
- package/index.d.ts +5 -0
- package/lib/form-submission.component.d.ts +30 -0
- package/lib/form-submission.module.d.ts +16 -0
- package/lib/form-submission.service.d.ts +6 -0
- package/models/aggregate.model.d.ts +4 -0
- package/{src/models/answer.model.ts → models/answer.model.d.ts} +23 -25
- package/models/appearance.model.d.ts +64 -0
- package/{src/models/attachment.model.ts → models/attachment.model.d.ts} +6 -6
- package/{src/models/defaultAnswerEntry.model.ts → models/defaultAnswerEntry.model.d.ts} +5 -7
- package/{src/models/defaultAnswersModel.model.ts → models/defaultAnswersModel.model.d.ts} +4 -5
- package/{src/models/defaultQuestionAnswer.model.ts → models/defaultQuestionAnswer.model.d.ts} +6 -6
- package/models/elementOptionAPI.model.d.ts +12 -0
- package/models/elementOptionAPIData.model.d.ts +5 -0
- package/models/elementOptionDB.model.d.ts +8 -0
- package/models/elementOptionDBCriteria.model.d.ts +7 -0
- package/{src/models/emitters.model.ts → models/emitters.model.d.ts} +8 -8
- package/{src/models/enum/condition.enum.ts → models/enum/condition.enum.d.ts} +2 -2
- package/models/enum/elementType .enum.d.ts +22 -0
- package/models/enum/entityType.enum.d.ts +10 -0
- package/{src/models/formConfiguration.model.ts → models/formConfiguration.model.d.ts} +2 -2
- package/{src/models/formElement.model.ts → models/formElement.model.d.ts} +22 -22
- package/{src/models/formElementType.model.ts → models/formElementType.model.d.ts} +2 -3
- package/{src/models/grid.model.ts → models/grid.model.d.ts} +13 -14
- package/{src/models/hiddenField.model.ts → models/hiddenField.model.d.ts} +5 -5
- package/{src/models/iFrameProperties.model.ts → models/iFrameProperties.model.d.ts} +13 -13
- package/models/logic.model.d.ts +9 -0
- package/models/multifields.model.d.ts +11 -0
- package/{src/models/option.model.ts → models/option.model.d.ts} +5 -5
- package/models/page.model.d.ts +6 -0
- package/models/publicForm.model.d.ts +18 -0
- package/models/question.model.d.ts +26 -0
- package/models/questionAnswer.model.d.ts +7 -0
- package/models/questionGroup.model.d.ts +11 -0
- package/{src/models/row.model.ts → models/row.model.d.ts} +1 -2
- package/models/scoring.model.d.ts +10 -0
- package/models/section.model.d.ts +6 -0
- package/models/subForm.model.d.ts +24 -0
- package/models/subformConfiguration.model.d.ts +4 -0
- package/models/subformPropery.model.d.ts +7 -0
- package/{src/models/submission.model.ts → models/submission.model.d.ts} +14 -16
- package/{src/models/submissionCopyConfig.mopdel.ts → models/submissionCopyConfig.mopdel.d.ts} +4 -4
- package/{src/models/terms&condition.model.ts → models/terms&condition.model.d.ts} +1 -1
- package/models/validation.model.d.ts +48 -0
- package/models/whenClause.model.d.ts +6 -0
- package/{src/models/whenClauseCondition.model.ts → models/whenClauseCondition.model.d.ts} +6 -6
- package/{src/models/whenClauseElements.model.ts → models/whenClauseElements.model.d.ts} +5 -6
- package/package.json +46 -33
- package/{src/public-api.ts → public-api.d.ts} +0 -4
- package/question/card-subform/card-subform.component.d.ts +44 -0
- package/question/confirm-dialog/confirm-dialog.component.d.ts +12 -0
- package/question/form-elements/form-elements.component.d.ts +20 -0
- package/question/inline-multiple-subform/inline-multiple-subform.component.d.ts +47 -0
- package/question/multifields/multifields.component.d.ts +11 -0
- package/question/multiple-subform/multiple-subform.component.d.ts +39 -0
- package/question/question/question.component.d.ts +30 -0
- package/question/question-group/question-group.component.d.ts +29 -0
- package/question/recursive-logic/recursive-logic.component.d.ts +19 -0
- package/question/sub-form/sub-form.component.d.ts +70 -0
- package/services/aggregate.service.d.ts +29 -0
- package/services/countryService.d.ts +21 -0
- package/services/data.service.d.ts +19 -0
- package/services/element-tracker.service.d.ts +10 -0
- package/services/form-validation.service.d.ts +16 -0
- package/services/form.service.d.ts +27 -0
- package/services/mapper.service.d.ts +31 -0
- package/services/recaptcha.service.d.ts +46 -0
- package/services/score.service.d.ts +27 -0
- package/services/subform-copy.service.d.ts +10 -0
- package/services/validation.service.d.ts +14 -0
- package/services/whenClause.service.d.ts +45 -0
- package/shared/shared.module.d.ts +25 -0
- package/sub-form/submission-modal/submission-modal.component.d.ts +31 -0
- package/ng-package.json +0 -30
- package/src/environment/environment.ts +0 -6
- package/src/form-fields/aggregate-function/aggregate-function.component.html +0 -63
- package/src/form-fields/aggregate-function/aggregate-function.component.scss +0 -1
- package/src/form-fields/aggregate-function/aggregate-function.component.spec.ts +0 -21
- package/src/form-fields/aggregate-function/aggregate-function.component.ts +0 -148
- package/src/form-fields/check-box-fields/check-box-fields.component.html +0 -81
- package/src/form-fields/check-box-fields/check-box-fields.component.scss +0 -28
- package/src/form-fields/check-box-fields/check-box-fields.component.spec.ts +0 -21
- package/src/form-fields/check-box-fields/check-box-fields.component.ts +0 -538
- package/src/form-fields/currency-fields/currency-fields.component.html +0 -85
- package/src/form-fields/currency-fields/currency-fields.component.scss +0 -48
- package/src/form-fields/currency-fields/currency-fields.component.spec.ts +0 -21
- package/src/form-fields/currency-fields/currency-fields.component.ts +0 -589
- package/src/form-fields/date-time-fields/date-time-fields.component.html +0 -268
- package/src/form-fields/date-time-fields/date-time-fields.component.scss +0 -88
- package/src/form-fields/date-time-fields/date-time-fields.component.spec.ts +0 -21
- package/src/form-fields/date-time-fields/date-time-fields.component.ts +0 -693
- package/src/form-fields/drop-down-fields/drop-down-fields.component.html +0 -77
- package/src/form-fields/drop-down-fields/drop-down-fields.component.scss +0 -12
- package/src/form-fields/drop-down-fields/drop-down-fields.component.spec.ts +0 -21
- package/src/form-fields/drop-down-fields/drop-down-fields.component.ts +0 -698
- package/src/form-fields/file-picker-fields/file-picker-fields.component.html +0 -72
- package/src/form-fields/file-picker-fields/file-picker-fields.component.scss +0 -33
- package/src/form-fields/file-picker-fields/file-picker-fields.component.spec.ts +0 -21
- package/src/form-fields/file-picker-fields/file-picker-fields.component.ts +0 -256
- package/src/form-fields/form-fields.module.ts +0 -110
- package/src/form-fields/hidden-field/hidden-field.component.scss +0 -0
- package/src/form-fields/hidden-field/hidden-field.component.spec.ts +0 -21
- package/src/form-fields/hidden-field/hidden-field.component.ts +0 -156
- package/src/form-fields/iframe-fields/iframe-fields.component.html +0 -31
- package/src/form-fields/iframe-fields/iframe-fields.component.scss +0 -0
- package/src/form-fields/iframe-fields/iframe-fields.component.spec.ts +0 -21
- package/src/form-fields/iframe-fields/iframe-fields.component.ts +0 -225
- package/src/form-fields/location-fields/location-fields.component.html +0 -54
- package/src/form-fields/location-fields/location-fields.component.scss +0 -22
- package/src/form-fields/location-fields/location-fields.component.spec.ts +0 -21
- package/src/form-fields/location-fields/location-fields.component.ts +0 -83
- package/src/form-fields/mail-fields/mail-fields.component.html +0 -66
- package/src/form-fields/mail-fields/mail-fields.component.scss +0 -10
- package/src/form-fields/mail-fields/mail-fields.component.spec.ts +0 -21
- package/src/form-fields/mail-fields/mail-fields.component.ts +0 -127
- package/src/form-fields/mobile-fields/mobile-fields.component.html +0 -97
- package/src/form-fields/mobile-fields/mobile-fields.component.scss +0 -52
- package/src/form-fields/mobile-fields/mobile-fields.component.spec.ts +0 -21
- package/src/form-fields/mobile-fields/mobile-fields.component.ts +0 -310
- package/src/form-fields/number-fields/number-fields.component.html +0 -70
- package/src/form-fields/number-fields/number-fields.component.scss +0 -17
- package/src/form-fields/number-fields/number-fields.component.spec.ts +0 -21
- package/src/form-fields/number-fields/number-fields.component.ts +0 -256
- package/src/form-fields/password-fields/password-fields.component.html +0 -113
- package/src/form-fields/password-fields/password-fields.component.scss +0 -61
- package/src/form-fields/password-fields/password-fields.component.spec.ts +0 -21
- package/src/form-fields/password-fields/password-fields.component.ts +0 -273
- package/src/form-fields/radio-button-fields/radio-button-fields.component.html +0 -82
- package/src/form-fields/radio-button-fields/radio-button-fields.component.scss +0 -28
- package/src/form-fields/radio-button-fields/radio-button-fields.component.spec.ts +0 -21
- package/src/form-fields/radio-button-fields/radio-button-fields.component.ts +0 -391
- package/src/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.html +0 -67
- package/src/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.scss +0 -23
- package/src/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.spec.ts +0 -21
- package/src/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.ts +0 -145
- package/src/form-fields/section-fields/section-fields.component.html +0 -4
- package/src/form-fields/section-fields/section-fields.component.scss +0 -37
- package/src/form-fields/section-fields/section-fields.component.spec.ts +0 -21
- package/src/form-fields/section-fields/section-fields.component.ts +0 -25
- package/src/form-fields/selection-matrix-fields/selection-matrix-fields.component.html +0 -93
- package/src/form-fields/selection-matrix-fields/selection-matrix-fields.component.scss +0 -52
- package/src/form-fields/selection-matrix-fields/selection-matrix-fields.component.spec.ts +0 -21
- package/src/form-fields/selection-matrix-fields/selection-matrix-fields.component.ts +0 -155
- package/src/form-fields/signature-fields/signature-fields.component.html +0 -43
- package/src/form-fields/signature-fields/signature-fields.component.scss +0 -10
- package/src/form-fields/signature-fields/signature-fields.component.spec.ts +0 -21
- package/src/form-fields/signature-fields/signature-fields.component.ts +0 -25
- package/src/form-fields/slider-fields/slider-fields.component.html +0 -67
- package/src/form-fields/slider-fields/slider-fields.component.scss +0 -55
- package/src/form-fields/slider-fields/slider-fields.component.spec.ts +0 -21
- package/src/form-fields/slider-fields/slider-fields.component.ts +0 -63
- package/src/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.html +0 -52
- package/src/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.scss +0 -85
- package/src/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.spec.ts +0 -21
- package/src/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.ts +0 -62
- package/src/form-fields/text-area-fields/text-area-fields.component.html +0 -68
- package/src/form-fields/text-area-fields/text-area-fields.component.scss +0 -19
- package/src/form-fields/text-area-fields/text-area-fields.component.spec.ts +0 -21
- package/src/form-fields/text-area-fields/text-area-fields.component.ts +0 -166
- package/src/form-fields/text-fields/text-fields.component.html +0 -67
- package/src/form-fields/text-fields/text-fields.component.scss +0 -26
- package/src/form-fields/text-fields/text-fields.component.spec.ts +0 -21
- package/src/form-fields/text-fields/text-fields.component.ts +0 -248
- package/src/form-fields/toggle-switch-fields/toggle-switch-fields.component.html +0 -70
- package/src/form-fields/toggle-switch-fields/toggle-switch-fields.component.scss +0 -112
- package/src/form-fields/toggle-switch-fields/toggle-switch-fields.component.spec.ts +0 -21
- package/src/form-fields/toggle-switch-fields/toggle-switch-fields.component.ts +0 -74
- package/src/form-fields/url-fields/url-fields.component.html +0 -109
- package/src/form-fields/url-fields/url-fields.component.scss +0 -22
- package/src/form-fields/url-fields/url-fields.component.spec.ts +0 -21
- package/src/form-fields/url-fields/url-fields.component.ts +0 -123
- package/src/form-submission/form-submission.module.ts +0 -40
- package/src/form-submission/header/header.component.html +0 -6
- package/src/form-submission/header/header.component.scss +0 -26
- package/src/form-submission/header/header.component.spec.ts +0 -21
- package/src/form-submission/header/header.component.ts +0 -12
- package/src/form-submission/navigation-tabs/navigation-tabs.component.html +0 -134
- package/src/form-submission/navigation-tabs/navigation-tabs.component.scss +0 -200
- package/src/form-submission/navigation-tabs/navigation-tabs.component.spec.ts +0 -21
- package/src/form-submission/navigation-tabs/navigation-tabs.component.ts +0 -134
- package/src/form-submission/next-prev-navigation/next-prev-navigation.component.html +0 -207
- package/src/form-submission/next-prev-navigation/next-prev-navigation.component.scss +0 -208
- package/src/form-submission/next-prev-navigation/next-prev-navigation.component.spec.ts +0 -21
- package/src/form-submission/next-prev-navigation/next-prev-navigation.component.ts +0 -74
- package/src/form-submission/save-as-draft/saveDraftModalComponent .ts +0 -60
- package/src/form-submission/save-as-draft/saveDraftModalComponent.html +0 -33
- package/src/form-submission/save-as-draft/saveDraftModalComponent.scss +0 -195
- package/src/form-submission/submission-container/submission-container.component.html +0 -30
- package/src/form-submission/submission-container/submission-container.component.scss +0 -67
- package/src/form-submission/submission-container/submission-container.component.spec.ts +0 -21
- package/src/form-submission/submission-container/submission-container.component.ts +0 -14
- package/src/form-submission/submit-form/submit-form.component.html +0 -76
- package/src/form-submission/submit-form/submit-form.component.scss +0 -88
- package/src/form-submission/submit-form/submit-form.component.spec.ts +0 -21
- package/src/form-submission/submit-form/submit-form.component.ts +0 -1953
- package/src/lib/form-submission.component.html +0 -15
- package/src/lib/form-submission.component.scss +0 -1
- package/src/lib/form-submission.component.ts +0 -120
- package/src/lib/form-submission.module.ts +0 -31
- package/src/lib/form-submission.service.spec.ts +0 -16
- package/src/lib/form-submission.service.ts +0 -9
- package/src/models/aggregate.model.ts +0 -4
- package/src/models/appearance.model.ts +0 -64
- package/src/models/elementOptionAPI.model.ts +0 -13
- package/src/models/elementOptionAPIData.model.ts +0 -5
- package/src/models/elementOptionDB.model.ts +0 -9
- package/src/models/elementOptionDBCriteria.model.ts +0 -7
- package/src/models/enum/elementType .enum.ts +0 -22
- package/src/models/enum/entityType.enum.ts +0 -10
- package/src/models/logic.model.ts +0 -11
- package/src/models/multifields.model.ts +0 -12
- package/src/models/page.model.ts +0 -7
- package/src/models/publicForm.model.ts +0 -19
- package/src/models/question.model.ts +0 -27
- package/src/models/questionAnswer.model.ts +0 -8
- package/src/models/questionGroup.model.ts +0 -12
- package/src/models/response.model.ts +0 -9
- package/src/models/result.model.ts +0 -5
- package/src/models/scoring.model.ts +0 -10
- package/src/models/section.model.ts +0 -6
- package/src/models/subForm.model.ts +0 -25
- package/src/models/subformConfiguration.model.ts +0 -4
- package/src/models/subformPropery.model.ts +0 -8
- package/src/models/validation.model.ts +0 -48
- package/src/models/whenClause.model.ts +0 -7
- package/src/question/card-subform/card-subform.component.html +0 -282
- package/src/question/card-subform/card-subform.component.scss +0 -49
- package/src/question/card-subform/card-subform.component.spec.ts +0 -21
- package/src/question/card-subform/card-subform.component.ts +0 -407
- package/src/question/confirm-dialog/confirm-dialog.component.html +0 -32
- package/src/question/confirm-dialog/confirm-dialog.component.scss +0 -109
- package/src/question/confirm-dialog/confirm-dialog.component.spec.ts +0 -21
- package/src/question/confirm-dialog/confirm-dialog.component.ts +0 -24
- package/src/question/form-elements/form-elements.component.html +0 -28
- package/src/question/form-elements/form-elements.component.scss +0 -0
- package/src/question/form-elements/form-elements.component.spec.ts +0 -21
- package/src/question/form-elements/form-elements.component.ts +0 -41
- package/src/question/inline-multiple-subform/inline-multiple-subform.component.html +0 -321
- package/src/question/inline-multiple-subform/inline-multiple-subform.component.scss +0 -78
- package/src/question/inline-multiple-subform/inline-multiple-subform.component.spec.ts +0 -21
- package/src/question/inline-multiple-subform/inline-multiple-subform.component.ts +0 -425
- package/src/question/multifields/multifields.component.html +0 -78
- package/src/question/multifields/multifields.component.scss +0 -6
- package/src/question/multifields/multifields.component.spec.ts +0 -21
- package/src/question/multifields/multifields.component.ts +0 -27
- package/src/question/multiple-subform/multiple-subform.component.html +0 -185
- package/src/question/multiple-subform/multiple-subform.component.scss +0 -52
- package/src/question/multiple-subform/multiple-subform.component.spec.ts +0 -21
- package/src/question/multiple-subform/multiple-subform.component.ts +0 -481
- package/src/question/question/question.component.html +0 -51
- package/src/question/question/question.component.scss +0 -0
- package/src/question/question/question.component.spec.ts +0 -21
- package/src/question/question/question.component.ts +0 -129
- package/src/question/question-group/question-group.component.html +0 -147
- package/src/question/question-group/question-group.component.scss +0 -36
- package/src/question/question-group/question-group.component.spec.ts +0 -21
- package/src/question/question-group/question-group.component.ts +0 -94
- package/src/question/question.module.ts +0 -22
- package/src/question/recursive-logic/recursive-logic.component.html +0 -33
- package/src/question/recursive-logic/recursive-logic.component.scss +0 -0
- package/src/question/recursive-logic/recursive-logic.component.spec.ts +0 -21
- package/src/question/recursive-logic/recursive-logic.component.ts +0 -29
- package/src/question/sub-form/sub-form.component.html +0 -254
- package/src/question/sub-form/sub-form.component.scss +0 -83
- package/src/question/sub-form/sub-form.component.spec.ts +0 -21
- package/src/question/sub-form/sub-form.component.ts +0 -421
- package/src/services/aggregate.service.ts +0 -148
- package/src/services/countryService.ts +0 -92
- package/src/services/data.service.ts +0 -36
- package/src/services/element-tracker.service.spec.ts +0 -16
- package/src/services/element-tracker.service.ts +0 -24
- package/src/services/form-validation.service.ts +0 -151
- package/src/services/form.service.spec.ts +0 -16
- package/src/services/form.service.ts +0 -407
- package/src/services/mapper.service.ts +0 -625
- package/src/services/recaptcha.service.spec.ts +0 -16
- package/src/services/recaptcha.service.ts +0 -179
- package/src/services/score.service.ts +0 -352
- package/src/services/subform-copy.service.ts +0 -148
- package/src/services/validation.service.spec.ts +0 -16
- package/src/services/validation.service.ts +0 -33
- package/src/services/whenClause.service.ts +0 -502
- package/src/shared/shared.module.ts +0 -58
- package/src/styles/shared-style.scss +0 -86
- package/src/sub-form/sub-form.module.ts +0 -24
- package/src/sub-form/submission-modal/submission-modal.component.html +0 -160
- package/src/sub-form/submission-modal/submission-modal.component.scss +0 -54
- package/src/sub-form/submission-modal/submission-modal.component.spec.ts +0 -21
- package/src/sub-form/submission-modal/submission-modal.component.ts +0 -127
- package/tsconfig.lib.json +0 -14
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
- /package/{src/assets → assets}/fonts/Garamond.woff2 +0 -0
- /package/{src/assets → assets}/fonts/Georgia.woff2 +0 -0
- /package/{src/assets → assets}/fonts/Poppins.woff2 +0 -0
- /package/{src/assets → assets}/fonts/Tahoma.woff2 +0 -0
- /package/{src/assets → assets}/fonts/Tajawal.woff2 +0 -0
- /package/{src/assets → assets}/fonts/Verdana.woff2 +0 -0
- /package/{src/assets → assets}/icons/close-sidebar-mark-icon.svg +0 -0
- /package/{src/assets → assets}/icons/copy-icon.svg +0 -0
- /package/{src/assets → assets}/icons/delete-icon.svg +0 -0
- /package/{src/assets → assets}/icons/delete-no-outline-icon.svg +0 -0
- /package/{src/assets → assets}/icons/left_arrow.svg +0 -0
- /package/{src/assets → assets}/icons/right_arrow.svg +0 -0
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
import { FormValidationService } from '../../services/form-validation.service';
|
|
3
|
-
|
|
4
|
-
@Component({
|
|
5
|
-
selector: 'lib-navigation-tabs',
|
|
6
|
-
templateUrl: './navigation-tabs.component.html',
|
|
7
|
-
styleUrls: ['./navigation-tabs.component.scss'],
|
|
8
|
-
})
|
|
9
|
-
export class NavigationTabsComponent {
|
|
10
|
-
@Input() pages: any[] = [];
|
|
11
|
-
@Input() currentPageIndex: number = 0;
|
|
12
|
-
@Input() skipValidation: boolean = false;
|
|
13
|
-
@Output() pageChanged = new EventEmitter<number>();
|
|
14
|
-
@Output() submitEmit: EventEmitter<any> = new EventEmitter<any>();
|
|
15
|
-
@Output() saveAsDraftEmit: EventEmitter<any> = new EventEmitter<any>();
|
|
16
|
-
@Input() edit : boolean = false;
|
|
17
|
-
@Input() acceptedLanguage: string ='';
|
|
18
|
-
@Input() eligibleForSubmission:{ status: boolean; message: string } = { status: true, message: '' };
|
|
19
|
-
@Output() subFormChange = new EventEmitter<any>();
|
|
20
|
-
@Input() pageDetails: any[] = [];
|
|
21
|
-
@Input() markAllQuestionsAsRequired : boolean = false;
|
|
22
|
-
@Input() skipMargin: boolean = false;
|
|
23
|
-
@Output() rowSetIndex = new EventEmitter<number>();
|
|
24
|
-
@Output() cancel: EventEmitter<string> = new EventEmitter<string>();
|
|
25
|
-
@Input() primaryColor: string = '';
|
|
26
|
-
@Input() secondaryColor: string = '';
|
|
27
|
-
@Input() isActionTriggered: boolean = false;
|
|
28
|
-
@Input() submissionInProgress: boolean = false;
|
|
29
|
-
@Input() submissionInDraft: boolean = false;
|
|
30
|
-
@Input() showCancelButton: boolean = false;
|
|
31
|
-
@Input() submissionProgress = 0;
|
|
32
|
-
@Input() currentStep = 'Submitting form';
|
|
33
|
-
@Input() animatedDots = '';
|
|
34
|
-
loadedPages: { [key: number]: boolean } = {};
|
|
35
|
-
showTooltip: boolean = false;
|
|
36
|
-
showNavArrows: boolean = false;
|
|
37
|
-
hideTabs: boolean = false;
|
|
38
|
-
|
|
39
|
-
constructor(
|
|
40
|
-
private formValidationService: FormValidationService,
|
|
41
|
-
private cdr: ChangeDetectorRef
|
|
42
|
-
) {
|
|
43
|
-
// Load the first page initially
|
|
44
|
-
this.loadedPages[this.currentPageIndex] = true;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
ngOnInit() {
|
|
49
|
-
this.checkPageDetails()
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
ngAfterViewInit() {
|
|
53
|
-
setTimeout(() => this.checkOverflow());
|
|
54
|
-
this.cdr.detectChanges();
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
checkPageDetails(){
|
|
58
|
-
if(this.pageDetails && this.pageDetails?.length==1 && this.pageDetails[0]?.name==''){
|
|
59
|
-
this.hideTabs=true;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
updateSubFormWithSubmissions(event:any){
|
|
64
|
-
this.subFormChange.emit(event);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
triggerFunction(event: number) {
|
|
68
|
-
this.setCurrentPage(event);
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
setCurrentPage(index: number) {
|
|
72
|
-
if(this.markAllQuestionsAsRequired){
|
|
73
|
-
const currentPageData = this.pages[this.currentPageIndex];
|
|
74
|
-
let validationResponse=true;
|
|
75
|
-
if(!this.skipValidation) {
|
|
76
|
-
validationResponse = this.formValidationService.validateRequiredQuestions(currentPageData).isValid;
|
|
77
|
-
}
|
|
78
|
-
if (validationResponse) {
|
|
79
|
-
this.pageChanged.emit(index);
|
|
80
|
-
this.currentPageIndex = index;
|
|
81
|
-
// Mark this page as loaded to avoid reloading
|
|
82
|
-
if (!this.loadedPages[index]) {
|
|
83
|
-
this.loadedPages[index] = true;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
}else{
|
|
87
|
-
this.pageChanged.emit(index);
|
|
88
|
-
this.currentPageIndex = index;
|
|
89
|
-
// Mark this page as loaded to avoid reloading
|
|
90
|
-
if (!this.loadedPages[index]) {
|
|
91
|
-
this.loadedPages[index] = true;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
submitForm() {
|
|
97
|
-
this.submitEmit.emit();
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
saveAsDraft() {
|
|
101
|
-
this.saveAsDraftEmit.emit();
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
trackByIndex(index: number, item: any): number {
|
|
105
|
-
return index;
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
loadMoreData(): void {
|
|
109
|
-
this.rowSetIndex.emit(this.currentPageIndex);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
toggleTooltip() {
|
|
113
|
-
this.showTooltip = !this.eligibleForSubmission.status;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
scrollTabs(direction: number) {
|
|
117
|
-
const tabContainer = document.querySelector('.navTabs') as HTMLElement;
|
|
118
|
-
if (tabContainer) {
|
|
119
|
-
tabContainer.scrollBy({ left: direction * 100, behavior: 'smooth' });
|
|
120
|
-
setTimeout(() => this.checkOverflow(), 300);
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
checkOverflow() {
|
|
125
|
-
const tabContainer = document.querySelector('.navTabs') as HTMLElement;
|
|
126
|
-
if (tabContainer) {
|
|
127
|
-
this.showNavArrows = (tabContainer.scrollWidth > tabContainer.clientWidth);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
cancelled(){
|
|
132
|
-
this.cancel.emit();
|
|
133
|
-
}
|
|
134
|
-
}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
<!-- <div class="pageTitleDiv" *ngIf="!skipMargin">
|
|
2
|
-
<p class="pageTitle">{{pageDetails[currentPageIndex]?.name}}</p>
|
|
3
|
-
</div> -->
|
|
4
|
-
<div class="button-inner-container rounded" [ngClass]="{ 'skip-margin': skipMargin}">
|
|
5
|
-
<div class="tab-content pt-5 pb-3 row" [attr.name]="pages[currentPageIndex].testElementName">
|
|
6
|
-
<div class="data-container"
|
|
7
|
-
infiniteScroll
|
|
8
|
-
[infiniteScrollDistance]="2"
|
|
9
|
-
[infiniteScrollThrottle]="200"
|
|
10
|
-
(scrolled)="loadMoreData()">
|
|
11
|
-
|
|
12
|
-
<div *ngFor="let row of pages[currentPageIndex]?.rows" class="marginSize d-flex">
|
|
13
|
-
<div *ngFor="let grid of row.grid"
|
|
14
|
-
[ngStyle]="{'width.%': (grid.element.count) * (100 / (12))}">
|
|
15
|
-
<lib-form-elements
|
|
16
|
-
[grid]="grid"
|
|
17
|
-
[currentPageIndex]="currentPageIndex"
|
|
18
|
-
[edit]="edit"
|
|
19
|
-
[acceptedLanguage]="acceptedLanguage"
|
|
20
|
-
[pages]="pages"
|
|
21
|
-
(subFormChange)="updateSubFormWithSubmissions($event)"
|
|
22
|
-
state="parent"
|
|
23
|
-
></lib-form-elements>
|
|
24
|
-
</div>
|
|
25
|
-
</div>
|
|
26
|
-
</div>
|
|
27
|
-
<div [ngStyle]="{ display: currentPageIndex === pageDetails.length - 1 ? 'block' : 'none' }" id="captcha-container"></div>
|
|
28
|
-
|
|
29
|
-
<div class="footerButton">
|
|
30
|
-
<div
|
|
31
|
-
class="prevButtonDiv"
|
|
32
|
-
[ngClass]="{ 'prevDirection-rtl': acceptedLanguage === 'ara' }">
|
|
33
|
-
<button
|
|
34
|
-
class="me-md-2 rounded-pill navButton"
|
|
35
|
-
[ngStyle]="{ 'background-color': primaryColor ? primaryColor: '#084fff' }"
|
|
36
|
-
type="button"
|
|
37
|
-
(click)="onNavigatePrevious()"
|
|
38
|
-
*ngIf="0 < currentPageIndex"
|
|
39
|
-
>
|
|
40
|
-
<ng-container *ngIf="acceptedLanguage === 'ara'; else defaultSvg">
|
|
41
|
-
<svg
|
|
42
|
-
width="24"
|
|
43
|
-
height="24"
|
|
44
|
-
viewBox="0 0 24 24"
|
|
45
|
-
fill="none"
|
|
46
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
47
|
-
>
|
|
48
|
-
<path
|
|
49
|
-
d="M19.4897 12.0117L4.49975 12.0117"
|
|
50
|
-
stroke="white"
|
|
51
|
-
stroke-linecap="round"
|
|
52
|
-
stroke-linejoin="round"
|
|
53
|
-
/>
|
|
54
|
-
<path
|
|
55
|
-
d="M13.486 6.02344L19.502 12.0004L13.486 17.9774"
|
|
56
|
-
stroke="white"
|
|
57
|
-
stroke-linecap="round"
|
|
58
|
-
stroke-linejoin="round"
|
|
59
|
-
/>
|
|
60
|
-
</svg>
|
|
61
|
-
</ng-container>
|
|
62
|
-
<ng-template #defaultSvg>
|
|
63
|
-
<svg
|
|
64
|
-
width="24"
|
|
65
|
-
height="24"
|
|
66
|
-
viewBox="0 0 24 24"
|
|
67
|
-
fill="none"
|
|
68
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
69
|
-
>
|
|
70
|
-
<path
|
|
71
|
-
d="M4.51025 11.9883L19.5003 11.9883"
|
|
72
|
-
stroke="white"
|
|
73
|
-
stroke-linecap="round"
|
|
74
|
-
stroke-linejoin="round"
|
|
75
|
-
/>
|
|
76
|
-
<path
|
|
77
|
-
d="M10.514 17.9766L4.49805 11.9996L10.514 6.02256"
|
|
78
|
-
stroke="white"
|
|
79
|
-
stroke-linecap="round"
|
|
80
|
-
stroke-linejoin="round"
|
|
81
|
-
/>
|
|
82
|
-
</svg>
|
|
83
|
-
</ng-template>
|
|
84
|
-
Previous | {{ previousPage.name }}
|
|
85
|
-
</button>
|
|
86
|
-
</div>
|
|
87
|
-
<div
|
|
88
|
-
class="nextButtonDiv"
|
|
89
|
-
[ngClass]="{ 'nextDirection-rtl': acceptedLanguage === 'ara' }"
|
|
90
|
-
>
|
|
91
|
-
<button
|
|
92
|
-
class="md-2 rounded-pill navButton"
|
|
93
|
-
[ngStyle]="{ 'background-color': primaryColor ? primaryColor: '#084fff' }"
|
|
94
|
-
type="button"
|
|
95
|
-
(click)="onNavigateNext()"
|
|
96
|
-
*ngIf="currentPageIndex < pageDetails.length - 1"
|
|
97
|
-
>
|
|
98
|
-
Next | {{ nextPage.name }}
|
|
99
|
-
<ng-container *ngIf="acceptedLanguage === 'ara'; else defaultSvg">
|
|
100
|
-
<svg
|
|
101
|
-
width="24"
|
|
102
|
-
height="24"
|
|
103
|
-
viewBox="0 0 24 24"
|
|
104
|
-
fill="none"
|
|
105
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
106
|
-
>
|
|
107
|
-
<path
|
|
108
|
-
d="M4.51025 11.9883L19.5003 11.9883"
|
|
109
|
-
stroke="white"
|
|
110
|
-
stroke-linecap="round"
|
|
111
|
-
stroke-linejoin="round"
|
|
112
|
-
/>
|
|
113
|
-
<path
|
|
114
|
-
d="M10.514 17.9766L4.49805 11.9996L10.514 6.02256"
|
|
115
|
-
stroke="white"
|
|
116
|
-
stroke-linecap="round"
|
|
117
|
-
stroke-linejoin="round"
|
|
118
|
-
/>
|
|
119
|
-
</svg>
|
|
120
|
-
</ng-container>
|
|
121
|
-
<ng-template #defaultSvg>
|
|
122
|
-
<svg
|
|
123
|
-
width="24"
|
|
124
|
-
height="24"
|
|
125
|
-
viewBox="0 0 24 24"
|
|
126
|
-
fill="none"
|
|
127
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
128
|
-
>
|
|
129
|
-
<path
|
|
130
|
-
d="M19.4897 12.0117L4.49975 12.0117"
|
|
131
|
-
stroke="white"
|
|
132
|
-
stroke-linecap="round"
|
|
133
|
-
stroke-linejoin="round"
|
|
134
|
-
/>
|
|
135
|
-
<path
|
|
136
|
-
d="M13.486 6.02344L19.502 12.0004L13.486 17.9774"
|
|
137
|
-
stroke="white"
|
|
138
|
-
stroke-linecap="round"
|
|
139
|
-
stroke-linejoin="round"
|
|
140
|
-
/>
|
|
141
|
-
</svg>
|
|
142
|
-
</ng-template>
|
|
143
|
-
</button>
|
|
144
|
-
<button *ngIf="showCancelButton && currentPageIndex == pageDetails.length - 1" class="btn submitButton rounded-pill bg-secondary text-white"
|
|
145
|
-
(click)="cancelled()" type="button"
|
|
146
|
-
>Cancel</button>
|
|
147
|
-
<div
|
|
148
|
-
*ngIf="skipValidation"
|
|
149
|
-
class="button-container position-relative"
|
|
150
|
-
(mouseenter)="showTooltip = true"
|
|
151
|
-
(mouseleave)="showTooltip = false"
|
|
152
|
-
>
|
|
153
|
-
<button
|
|
154
|
-
class="submitBtn ms-md-2 me-md-2 rounded-pill d-flex align-items-center justify-content-center"
|
|
155
|
-
[ngStyle]="{ 'background-color': secondaryColor ? secondaryColor : '#084fff' }"
|
|
156
|
-
type="button"
|
|
157
|
-
*ngIf="currentPageIndex == pageDetails.length - 1 && !isActionTriggered"
|
|
158
|
-
(click)="saveAsDraft()"
|
|
159
|
-
[disabled]="!eligibleForSubmission.status || submissionInDraft"
|
|
160
|
-
>
|
|
161
|
-
<ng-container *ngIf="submissionInDraft; else showSubmitText">
|
|
162
|
-
|
|
163
|
-
<span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>
|
|
164
|
-
Submitting...
|
|
165
|
-
</ng-container>
|
|
166
|
-
<ng-template #showSubmitText>
|
|
167
|
-
Save Draft
|
|
168
|
-
</ng-template>
|
|
169
|
-
</button>
|
|
170
|
-
<div *ngIf="showTooltip && !eligibleForSubmission.status" class="custom-tooltip">
|
|
171
|
-
{{eligibleForSubmission.message}}
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
|
|
175
|
-
<div
|
|
176
|
-
class="button-container position-relative"
|
|
177
|
-
(mouseenter)="showTooltip = true"
|
|
178
|
-
(mouseleave)="showTooltip = false"
|
|
179
|
-
>
|
|
180
|
-
<button
|
|
181
|
-
class="submitBtn ms-md-2 me-md-2 rounded-pill d-flex align-items-center justify-content-center"
|
|
182
|
-
[ngStyle]="{ 'background-color': primaryColor ? primaryColor : '#084fff' }"
|
|
183
|
-
type="button"
|
|
184
|
-
*ngIf="currentPageIndex == pageDetails.length - 1 && !isActionTriggered"
|
|
185
|
-
(click)="submitForm()"
|
|
186
|
-
[disabled]="!eligibleForSubmission.status || submissionInProgress"
|
|
187
|
-
>
|
|
188
|
-
<ng-container *ngIf="submissionInProgress; else showSubmitText">
|
|
189
|
-
<span class="spinner-border spinner-border-sm me-2" role="status" aria-hidden="true"></span>
|
|
190
|
-
Submitting...
|
|
191
|
-
</ng-container>
|
|
192
|
-
<ng-template #showSubmitText>
|
|
193
|
-
Submit
|
|
194
|
-
</ng-template>
|
|
195
|
-
</button>
|
|
196
|
-
<div *ngIf="showTooltip && !eligibleForSubmission.status" class="custom-tooltip">
|
|
197
|
-
{{eligibleForSubmission.message}}
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
|
|
201
|
-
</div>
|
|
202
|
-
</div>
|
|
203
|
-
<div *ngIf="submissionInProgress" class="text-loader">
|
|
204
|
-
{{ currentStep }}{{ animatedDots }}
|
|
205
|
-
<span class="percentage">{{ submissionProgress }}%</span>
|
|
206
|
-
</div>
|
|
207
|
-
</div>
|
|
@@ -1,208 +0,0 @@
|
|
|
1
|
-
.pageTitle {
|
|
2
|
-
font-size: 15px;
|
|
3
|
-
font-weight: 500;
|
|
4
|
-
}
|
|
5
|
-
#captcha-container {
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
align-items: center;
|
|
9
|
-
padding-left: 1.8rem;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
.grecaptcha-popup {
|
|
14
|
-
position: fixed !important;
|
|
15
|
-
top: 50% !important;
|
|
16
|
-
left: 50% !important;
|
|
17
|
-
transform: translate(-50%, -50%) !important;
|
|
18
|
-
z-index: 9999; /* Ensure it appears above other content */
|
|
19
|
-
border-radius: 50%;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
@media (max-width: 480px) {
|
|
24
|
-
.g-recaptcha {
|
|
25
|
-
transform: scale(0.85);
|
|
26
|
-
transform-origin: center;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
.pageTitleDiv {
|
|
30
|
-
padding-left: 3rem;
|
|
31
|
-
padding-top: 3rem;
|
|
32
|
-
padding-right: 3rem;
|
|
33
|
-
@media (max-width: 1024px) {
|
|
34
|
-
padding-left: 1rem;
|
|
35
|
-
padding-right: 1rem;
|
|
36
|
-
padding-top: 2rem;
|
|
37
|
-
}
|
|
38
|
-
@media (max-width: 576px) {
|
|
39
|
-
padding-left: 0.4rem;
|
|
40
|
-
padding-right: 0.4rem;
|
|
41
|
-
padding-top: 1.5rem;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.button-inner-container {
|
|
46
|
-
width: 100%;
|
|
47
|
-
position: relative;
|
|
48
|
-
padding-left: 2rem;
|
|
49
|
-
padding-right: 2rem;
|
|
50
|
-
padding-top: 2rem;
|
|
51
|
-
padding-bottom: 2rem;
|
|
52
|
-
@media (max-width: 1024px) {
|
|
53
|
-
padding-left: 1rem;
|
|
54
|
-
padding-right: 1rem;
|
|
55
|
-
}
|
|
56
|
-
@media (max-width: 576px) {
|
|
57
|
-
padding-left: 0.5rem;
|
|
58
|
-
padding-right: 0.5rem;
|
|
59
|
-
padding-top: 0.1rem;
|
|
60
|
-
padding-bottom: 2rem;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.skip-margin{
|
|
65
|
-
padding: 0;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.marginSize {
|
|
69
|
-
@media (max-width: 576px) {
|
|
70
|
-
padding: 0 !important;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.footerButton {
|
|
75
|
-
padding-bottom: 16px;
|
|
76
|
-
padding-left: 30px;
|
|
77
|
-
padding-right: 32px;
|
|
78
|
-
padding-top: 10px;
|
|
79
|
-
display: flex;
|
|
80
|
-
flex-wrap: wrap;
|
|
81
|
-
@media (max-width: 576px) {
|
|
82
|
-
padding-left: 20px;
|
|
83
|
-
padding-right: 17px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.navButton {
|
|
88
|
-
color: #fff;
|
|
89
|
-
border: none;
|
|
90
|
-
padding-top: 10px;
|
|
91
|
-
padding-bottom: 10px;
|
|
92
|
-
padding-left: 8px;
|
|
93
|
-
padding-right: 8px;
|
|
94
|
-
width: auto;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.submitBtn {
|
|
98
|
-
color: #fff;
|
|
99
|
-
border: none;
|
|
100
|
-
padding-top: 10px;
|
|
101
|
-
padding-bottom: 10px;
|
|
102
|
-
padding-left: 27px;
|
|
103
|
-
padding-right: 27px;
|
|
104
|
-
width: auto;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
.prevButtonDiv {
|
|
108
|
-
display: flex;
|
|
109
|
-
justify-content: center;
|
|
110
|
-
margin-bottom: 5px;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.nextButtonDiv {
|
|
114
|
-
display: flex;
|
|
115
|
-
justify-content: flex-end;
|
|
116
|
-
margin-left: auto;
|
|
117
|
-
margin-bottom: 5px;
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
.nextDirection-rtl {
|
|
121
|
-
margin-left: 0;
|
|
122
|
-
margin-right: auto;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
.tab-content {
|
|
126
|
-
background-color: white;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
.row {
|
|
130
|
-
background-color: white;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
.spinner-border {
|
|
135
|
-
display: inline-block;
|
|
136
|
-
width: 1rem;
|
|
137
|
-
height: 1rem;
|
|
138
|
-
vertical-align: text-bottom;
|
|
139
|
-
border: 0.15em solid currentColor;
|
|
140
|
-
border-right-color: transparent;
|
|
141
|
-
border-radius: 50%;
|
|
142
|
-
animation: spinner-border 0.75s linear infinite;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
@keyframes spinner-border {
|
|
146
|
-
to {
|
|
147
|
-
transform: rotate(360deg);
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
/* Tooltip styling */
|
|
152
|
-
/* Tooltip styling */
|
|
153
|
-
.custom-tooltip {
|
|
154
|
-
visibility: hidden;
|
|
155
|
-
position: absolute;
|
|
156
|
-
top: -40px; /* Position above the button */
|
|
157
|
-
right: 0;
|
|
158
|
-
background: #efefef;
|
|
159
|
-
color: #7b7878;
|
|
160
|
-
padding: 8px 12px;
|
|
161
|
-
border-radius: 12px;
|
|
162
|
-
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
|
|
163
|
-
font-size: 14px;
|
|
164
|
-
white-space: nowrap;
|
|
165
|
-
z-index: 10;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
/* Yellow (Warning) Tooltip */
|
|
169
|
-
.custom-tooltip.warning {
|
|
170
|
-
background: linear-gradient(135deg, #ffd700, #ffb400); /* Yellow for Warning */
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
/* Tooltip Animation */
|
|
174
|
-
.fade-in {
|
|
175
|
-
animation: fadeIn 0.3s ease-in-out;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
@keyframes fadeIn {
|
|
179
|
-
from {
|
|
180
|
-
opacity: 0;
|
|
181
|
-
transform: translateY(10px);
|
|
182
|
-
}
|
|
183
|
-
to {
|
|
184
|
-
opacity: 1;
|
|
185
|
-
transform: translateY(0);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
.footerButton:hover .custom-tooltip {
|
|
190
|
-
visibility: visible;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
.text-loader {
|
|
195
|
-
font-size: 14px;
|
|
196
|
-
font-weight: 500;
|
|
197
|
-
padding: 8px 12px;
|
|
198
|
-
border-radius: 6px;
|
|
199
|
-
align-items: center;
|
|
200
|
-
gap: 8px;
|
|
201
|
-
display: flex;
|
|
202
|
-
justify-content: center;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
.percentage {
|
|
206
|
-
font-weight: 600;
|
|
207
|
-
color: var(--primaryColor, #084fff);
|
|
208
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
-
|
|
3
|
-
import { NextPrevNavigationComponent } from './next-prev-navigation.component';
|
|
4
|
-
|
|
5
|
-
describe('NextPrevNavigationComponent', () => {
|
|
6
|
-
let component: NextPrevNavigationComponent;
|
|
7
|
-
let fixture: ComponentFixture<NextPrevNavigationComponent>;
|
|
8
|
-
|
|
9
|
-
beforeEach(() => {
|
|
10
|
-
TestBed.configureTestingModule({
|
|
11
|
-
declarations: [NextPrevNavigationComponent]
|
|
12
|
-
});
|
|
13
|
-
fixture = TestBed.createComponent(NextPrevNavigationComponent);
|
|
14
|
-
component = fixture.componentInstance;
|
|
15
|
-
fixture.detectChanges();
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
it('should create', () => {
|
|
19
|
-
expect(component).toBeTruthy();
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
@Component({
|
|
4
|
-
selector: 'lib-next-prev-navigation',
|
|
5
|
-
templateUrl: './next-prev-navigation.component.html',
|
|
6
|
-
styleUrls: ['./next-prev-navigation.component.scss']
|
|
7
|
-
})
|
|
8
|
-
export class NextPrevNavigationComponent {
|
|
9
|
-
|
|
10
|
-
@Input() skipValidation: boolean = false;
|
|
11
|
-
@Input() currentPageIndex: number = 0;
|
|
12
|
-
@Input() pages: any[] = [];
|
|
13
|
-
@Input() previousPage: any = {};
|
|
14
|
-
@Input() nextPage: any = {};
|
|
15
|
-
@Input() currentPage: any = {};
|
|
16
|
-
@Input() pageDetails: any[] = [];
|
|
17
|
-
@Input() skipMargin: boolean = false;
|
|
18
|
-
@Output() navigateNext = new EventEmitter<void>();
|
|
19
|
-
@Output() navigatePrevious = new EventEmitter<void>();
|
|
20
|
-
@Output() submitEmit: EventEmitter<any> = new EventEmitter<any>();
|
|
21
|
-
@Output() saveAsDraftEmit: EventEmitter<any> = new EventEmitter<any>();
|
|
22
|
-
@Output() cancel: EventEmitter<string> = new EventEmitter<string>();
|
|
23
|
-
@Input() edit: boolean = false;
|
|
24
|
-
@Input() acceptedLanguage: string ='';
|
|
25
|
-
@Output() subFormChange = new EventEmitter<any>();
|
|
26
|
-
@Output() rowSetIndex = new EventEmitter<number>();
|
|
27
|
-
@Input() primaryColor: string = '';
|
|
28
|
-
@Input() secondaryColor: string = '';
|
|
29
|
-
@Input() isActionTriggered: boolean = false;
|
|
30
|
-
@Input() submissionInProgress: boolean = false;
|
|
31
|
-
@Input() submissionInDraft: boolean = false;
|
|
32
|
-
@Input() eligibleForSubmission:{ status: boolean; message: string } = { status: true, message: '' };
|
|
33
|
-
@Input() showCancelButton: boolean = false;
|
|
34
|
-
@Input() submissionProgress = 0;
|
|
35
|
-
@Input() currentStep = 'Submitting form';
|
|
36
|
-
@Input() animatedDots = '';
|
|
37
|
-
showTooltip: boolean = false;
|
|
38
|
-
ngOnInit(){
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
updateSubFormWithSubmissions(event: any) {
|
|
43
|
-
this.subFormChange.emit(event);
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
onNavigateNext() {
|
|
47
|
-
this.navigateNext.emit();
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
onNavigatePrevious() {
|
|
51
|
-
this.navigatePrevious.emit();
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
submitForm() {
|
|
55
|
-
this.submitEmit.emit();
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
saveAsDraft() {
|
|
59
|
-
this.saveAsDraftEmit.emit();
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
loadMoreData(): void {
|
|
64
|
-
this.rowSetIndex.emit(this.currentPageIndex);
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
toggleTooltip() {
|
|
68
|
-
this.showTooltip = !this.eligibleForSubmission.status;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
cancelled(){
|
|
72
|
-
this.cancel.emit();
|
|
73
|
-
}
|
|
74
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { Component, Inject, Input } from '@angular/core';
|
|
2
|
-
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
|
|
4
|
-
interface DialogData {
|
|
5
|
-
primaryColor?: string;
|
|
6
|
-
}
|
|
7
|
-
@Component({
|
|
8
|
-
selector: 'lib-form-submission-conformation',
|
|
9
|
-
templateUrl: './saveDraftModalComponent.html',
|
|
10
|
-
styleUrls: ['./saveDraftModalComponent.scss']
|
|
11
|
-
})
|
|
12
|
-
|
|
13
|
-
export class SaveDraftModalComponent {
|
|
14
|
-
primaryColor: string;
|
|
15
|
-
|
|
16
|
-
get primaryColorRgb(): string {
|
|
17
|
-
let hex = this.primaryColor.trim().replace('#', '');
|
|
18
|
-
|
|
19
|
-
const defaultHex = "0d6efd";
|
|
20
|
-
|
|
21
|
-
if (!hex) hex = defaultHex;
|
|
22
|
-
|
|
23
|
-
let s = hex.trim().replace(/^#/, "").toLowerCase();
|
|
24
|
-
|
|
25
|
-
// Ensure only valid hex chars
|
|
26
|
-
if (!/^[0-9a-f]+$/.test(s)) {
|
|
27
|
-
s = defaultHex;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Expand shorthand (3/4 digits → 6/8 digits)
|
|
31
|
-
if (s.length === 3 || s.length === 4) {
|
|
32
|
-
s = s.split("").map(ch => ch + ch).join("");
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// If still invalid length, fallback
|
|
36
|
-
if (s.length !== 6 && s.length !== 8) {
|
|
37
|
-
s = defaultHex;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
const r = parseInt(s.slice(0, 2), 16);
|
|
41
|
-
const g = parseInt(s.slice(2, 4), 16);
|
|
42
|
-
const b = parseInt(s.slice(4, 6), 16);
|
|
43
|
-
|
|
44
|
-
return `${r}, ${g}, ${b}`;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
constructor(
|
|
48
|
-
public dialogRef: MatDialogRef<SaveDraftModalComponent>,
|
|
49
|
-
@Inject(MAT_DIALOG_DATA) public data: DialogData) {
|
|
50
|
-
this.primaryColor = data.primaryColor || '#0d6efd';
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
saveAsDraft() {
|
|
54
|
-
this.dialogRef.close(true);
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
continueEditing() {
|
|
58
|
-
this.dialogRef.close(false);
|
|
59
|
-
}
|
|
60
|
-
}
|