@senior-gestao-pessoas/payroll-core 8.7.0 → 9.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/bundles/senior-gestao-pessoas-payroll-core.umd.js +3024 -10904
- package/bundles/senior-gestao-pessoas-payroll-core.umd.js.map +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js +1 -1
- package/bundles/senior-gestao-pessoas-payroll-core.umd.min.js.map +1 -1
- package/components/workstationgroup-lookup/autocomplete.service.d.ts +31 -0
- package/esm2015/components/admission-draft-summary/admission-draft-summary.component.js +106 -0
- package/esm2015/components/admission-draft-summary/admission-draft-summary.module.js +17 -0
- package/esm2015/components/admission-draft-summary/admission-draft-summary.service.js +27 -0
- package/esm2015/components/admission-draft-summary/index.js +4 -0
- package/esm2015/components/block-ui/block-ui.component.js +19 -0
- package/esm2015/components/block-ui/block-ui.module.js +25 -0
- package/esm2015/components/block-ui/index.js +3 -0
- package/esm2015/components/breadcrumb/breadcrumb.component.js +76 -0
- package/esm2015/components/breadcrumb/breadcrumb.module.js +25 -0
- package/esm2015/components/breadcrumb/index.js +3 -0
- package/esm2015/components/control-messages-error/control-messages-error.component.js +28 -0
- package/esm2015/components/control-messages-error/control-messages-error.module.js +17 -0
- package/esm2015/components/control-messages-error/index.js +3 -0
- package/esm2015/components/custom-fields/custom-fields.component.js +32 -0
- package/esm2015/components/custom-fields/custom-fields.module.js +31 -0
- package/esm2015/components/custom-fields/index.js +3 -0
- package/esm2015/components/data-list/data-list.component.js +305 -0
- package/esm2015/components/data-list/data-list.module.js +28 -0
- package/esm2015/components/data-list/data-list.service.js +19 -0
- package/esm2015/components/data-list/entity-odata-response.js +26 -0
- package/esm2015/components/data-list/index.js +2 -0
- package/esm2015/components/data-list-rest/data-list-rest.component.js +239 -0
- package/esm2015/components/data-list-rest/data-list-rest.module.js +28 -0
- package/esm2015/components/data-list-rest/data-list-rest.service.js +19 -0
- package/esm2015/components/data-list-rest/index.js +2 -0
- package/esm2015/components/directives/directives.module.js +17 -0
- package/esm2015/components/directives/index.js +4 -0
- package/esm2015/components/directives/name-not-spaces.directive.js +31 -0
- package/esm2015/components/directives/only-number.directive.js +41 -0
- package/esm2015/components/employee-selector/employee-selector.component.js +65 -0
- package/esm2015/components/employee-selector/employee-selector.module.js +18 -0
- package/esm2015/components/employee-selector/index.js +3 -0
- package/esm2015/components/employee-summary/employee-summary.component.js +108 -0
- package/esm2015/components/employee-summary/employee-summary.module.js +17 -0
- package/esm2015/components/employee-summary/employee-summary.service.js +33 -0
- package/esm2015/components/employee-summary/index.js +4 -0
- package/esm2015/components/error-page/error-page.component.js +15 -0
- package/esm2015/components/error-page/error-page.module.js +16 -0
- package/esm2015/components/error-page/index.js +3 -0
- package/esm2015/components/field-validator/field-validator.component.js +40 -0
- package/esm2015/components/field-validator/field-validator.module.js +18 -0
- package/esm2015/components/field-validator/index.js +3 -0
- package/esm2015/components/file-upload/file-upload.component.js +135 -0
- package/esm2015/components/file-upload/file-upload.module.js +19 -0
- package/esm2015/components/file-upload/file-upload.service.js +44 -0
- package/esm2015/components/file-upload/index.js +3 -0
- package/esm2015/components/from-to/from-to.component.js +16 -0
- package/esm2015/components/from-to/from-to.module.js +19 -0
- package/esm2015/components/from-to/index.js +3 -0
- package/esm2015/components/historical-bank-account/historical-bank-account-form/historical-bank-account-form.component.js +332 -0
- package/esm2015/components/historical-bank-account/historical-bank-account.component.js +329 -0
- package/esm2015/components/historical-bank-account/historical-bank-account.module.js +56 -0
- package/esm2015/components/historical-bank-account/historical-bank-account.service.js +20 -0
- package/esm2015/components/historical-bank-account/index.js +4 -0
- package/esm2015/components/historical-bank-account-list/historical-bank-account-list.component.js +223 -0
- package/esm2015/components/historical-bank-account-list/historical-bank-account-list.module.js +39 -0
- package/esm2015/components/historical-bank-account-list/historical-bank-account-list.service.js +35 -0
- package/esm2015/components/historical-bank-account-list/index.js +4 -0
- package/esm2015/components/image-cropper/image-crop.component.js +146 -0
- package/esm2015/components/image-cropper/image-crop.module.js +39 -0
- package/esm2015/components/image-cropper/image-crop.service.js +88 -0
- package/esm2015/components/image-cropper/index.js +4 -0
- package/esm2015/components/input-date/index.js +3 -0
- package/esm2015/components/input-date/input-date.component.js +115 -0
- package/esm2015/components/input-date/input-date.module.js +17 -0
- package/esm2015/components/input-date-model/index.js +3 -0
- package/esm2015/components/input-date-model/input-date-model.component.js +100 -0
- package/esm2015/components/input-date-model/input-date-model.module.js +17 -0
- package/esm2015/components/input-rest-auto-complete/index.js +4 -0
- package/esm2015/components/input-rest-auto-complete/input-rest-auto-complete.component.js +303 -0
- package/esm2015/components/input-rest-auto-complete/input-rest-auto-complete.module.js +21 -0
- package/esm2015/components/input-rest-auto-complete/input-rest-auto-complete.service.js +20 -0
- package/esm2015/components/input-rest-auto-complete-employee/index.js +3 -0
- package/esm2015/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.js +190 -0
- package/esm2015/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.module.js +28 -0
- package/esm2015/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.service.js +20 -0
- package/esm2015/components/input-rest-auto-complete-employee-model/index.js +3 -0
- package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +179 -0
- package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.module.js +28 -0
- package/esm2015/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.service.js +20 -0
- package/esm2015/components/input-rest-auto-complete-enum/index.js +4 -0
- package/esm2015/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.component.js +146 -0
- package/esm2015/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.module.js +28 -0
- package/esm2015/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.service.js +23 -0
- package/esm2015/components/input-rest-auto-complete-jobposition/index.js +4 -0
- package/esm2015/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.component.js +173 -0
- package/esm2015/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.module.js +28 -0
- package/esm2015/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.service.js +20 -0
- package/esm2015/components/input-rest-auto-complete-model/index.js +3 -0
- package/esm2015/components/input-rest-auto-complete-model/input-rest-auto-complete-model.component.js +227 -0
- package/esm2015/components/input-rest-auto-complete-model/input-rest-auto-complete-model.module.js +28 -0
- package/esm2015/components/input-rest-auto-complete-model/input-rest-auto-complete-model.service.js +20 -0
- package/esm2015/components/input-rest-auto-complete-model-enum/index.js +3 -0
- package/esm2015/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.component.js +124 -0
- package/esm2015/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.module.js +28 -0
- package/esm2015/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.service.js +23 -0
- package/esm2015/components/list-rest/index.js +3 -0
- package/esm2015/components/list-rest/list-rest.component.js +117 -0
- package/esm2015/components/list-rest/list-rest.module.js +33 -0
- package/esm2015/components/list-rest/list-rest.service.js +23 -0
- package/esm2015/components/lookup/index.js +2 -0
- package/esm2015/components/lookup/lookup.component.js +324 -0
- package/esm2015/components/lookup/lookup.module.js +20 -0
- package/esm2015/components/lookup/lookup.service.js +52 -0
- package/esm2015/components/shared/http-client.service.js +165 -0
- package/esm2015/components/shared/shared.module.js +21 -0
- package/esm2015/components/spinner/index.js +3 -0
- package/esm2015/components/spinner/spinner-loader.component.js +12 -0
- package/esm2015/components/spinner/spinner-loader.module.js +23 -0
- package/esm2015/components/toast/index.js +4 -0
- package/esm2015/components/toast/toast.component.js +88 -0
- package/esm2015/components/toast/toast.module.js +20 -0
- package/esm2015/components/toast/toast.service.js +42 -0
- package/esm2015/components/type-admission/index.js +3 -0
- package/esm2015/components/type-admission/type-admission.module.js +14 -0
- package/esm2015/components/type-admission/type-admission.services.js +62 -0
- package/esm2015/components/utils/cnpj-validator.js +62 -0
- package/esm2015/components/utils/cpf-validator.js +45 -0
- package/esm2015/components/utils/date-validator/date-validators.js +144 -0
- package/esm2015/components/utils/helpers.js +476 -0
- package/esm2015/components/utils/validations.js +127 -0
- package/esm2015/components/vanilla/string-methods.js +22 -0
- package/esm2015/components/workstationgroup-lookup/autocomplete.service.js +111 -0
- package/esm2015/components/workstationgroup-lookup/index.js +3 -0
- package/esm2015/components/workstationgroup-lookup/lookup.service.js +142 -0
- package/esm2015/components/workstationgroup-lookup/workstationgroup-lookup.component.js +587 -0
- package/esm2015/components/workstationgroup-lookup/workstationgroup-lookup.dto.js +48 -0
- package/esm2015/components/workstationgroup-lookup/workstationgroup-lookup.module.js +21 -0
- package/esm2015/core/entities/entity-odata-parameter.js +33 -0
- package/esm2015/core/entities/index.js +2 -0
- package/esm2015/core/enums/companyIndicationType.js +18 -0
- package/esm2015/core/enums/comparetype.enumeration.js +14 -0
- package/esm2015/core/enums/coreFieldType.js +5 -0
- package/esm2015/core/enums/direction.enumeration.js +6 -0
- package/esm2015/core/enums/httpRequestType.js +6 -0
- package/esm2015/core/enums/index.js +14 -0
- package/esm2015/core/enums/menu-type.enumeration.js +6 -0
- package/esm2015/core/enums/moduleType.js +22 -0
- package/esm2015/core/enums/operators.enumeration.js +14 -0
- package/esm2015/core/enums/parameter-type.enumeration.js +12 -0
- package/esm2015/core/enums/report-format.enumeration.js +12 -0
- package/esm2015/core/enums/report-stage.enumeration.js +12 -0
- package/esm2015/core/enums/serviceType.js +9 -0
- package/esm2015/core/enums/usingType.js +42 -0
- package/esm2015/core/interfaces/date-compare-options.js +1 -0
- package/esm2015/core/interfaces/date-validate-options.js +1 -0
- package/esm2015/core/interfaces/field-validators-object.js +1 -0
- package/esm2015/core/interfaces/index.js +1 -0
- package/esm2015/core/interfaces/pagination-data.js +1 -0
- package/esm2015/core/interfaces/report/domain-service.interface.js +1 -0
- package/esm2015/core/interfaces/report/generation-status.interface.js +1 -0
- package/esm2015/core/interfaces/report/get-parameters-out.interface.js +1 -0
- package/esm2015/core/interfaces/report/index.js +1 -0
- package/esm2015/core/interfaces/report/lookup-parameter.interface.js +1 -0
- package/esm2015/core/interfaces/report/parameter-def.interface.js +1 -0
- package/esm2015/core/interfaces/report/parameter-value.interface.js +1 -0
- package/esm2015/core/interfaces/report/report-header.interface.js +1 -0
- package/esm2015/core/interfaces/report/report-in.interface.js +1 -0
- package/esm2015/core/interfaces/report/report-menu.interface.js +1 -0
- package/esm2015/core/interfaces/report/report-out.interface.js +1 -0
- package/esm2015/core/interfaces/report/report.interface.js +1 -0
- package/esm2015/public_api.js +52 -58
- package/esm2015/senior-gestao-pessoas-payroll-core.js +19 -24
- package/esm2015/services/autocomplete-parameters.service.js +116 -0
- package/esm2015/services/company-indications.service.js +42 -0
- package/esm2015/services/form-comparator.service.js +99 -0
- package/esm2015/services/integration.service.js +19 -0
- package/esm2015/services/lookup-parameters.service.js +345 -0
- package/esm2015/services/permissions.service.js +89 -0
- package/esm2015/services/report.service.js +109 -0
- package/esm2015/services/services.module.js +29 -0
- package/esm2015/services/workflow-data.service.js +26 -0
- package/esm2015/services/workflow-integrator.service.js +248 -0
- package/esm5/components/admission-draft-summary/admission-draft-summary.component.js +109 -0
- package/esm5/components/admission-draft-summary/admission-draft-summary.module.js +20 -0
- package/esm5/components/admission-draft-summary/admission-draft-summary.service.js +28 -0
- package/esm5/components/admission-draft-summary/index.js +4 -0
- package/esm5/components/block-ui/block-ui.component.js +22 -0
- package/esm5/components/block-ui/block-ui.module.js +28 -0
- package/esm5/components/block-ui/index.js +3 -0
- package/esm5/components/breadcrumb/breadcrumb.component.js +79 -0
- package/esm5/components/breadcrumb/breadcrumb.module.js +28 -0
- package/esm5/components/breadcrumb/index.js +3 -0
- package/esm5/components/control-messages-error/control-messages-error.component.js +34 -0
- package/esm5/components/control-messages-error/control-messages-error.module.js +20 -0
- package/esm5/components/control-messages-error/index.js +3 -0
- package/esm5/components/custom-fields/custom-fields.component.js +33 -0
- package/esm5/components/custom-fields/custom-fields.module.js +34 -0
- package/esm5/components/custom-fields/index.js +3 -0
- package/esm5/components/data-list/data-list.component.js +338 -0
- package/esm5/components/data-list/data-list.module.js +31 -0
- package/esm5/components/data-list/data-list.service.js +20 -0
- package/esm5/components/data-list/entity-odata-response.js +40 -0
- package/esm5/components/data-list/index.js +2 -0
- package/esm5/components/data-list-rest/data-list-rest.component.js +264 -0
- package/esm5/components/data-list-rest/data-list-rest.module.js +31 -0
- package/esm5/components/data-list-rest/data-list-rest.service.js +20 -0
- package/esm5/components/data-list-rest/index.js +2 -0
- package/esm5/components/directives/directives.module.js +20 -0
- package/esm5/components/directives/index.js +4 -0
- package/esm5/components/directives/name-not-spaces.directive.js +32 -0
- package/esm5/components/directives/only-number.directive.js +42 -0
- package/esm5/components/employee-selector/employee-selector.component.js +75 -0
- package/esm5/components/employee-selector/employee-selector.module.js +21 -0
- package/esm5/components/employee-selector/index.js +3 -0
- package/esm5/components/employee-summary/employee-summary.component.js +111 -0
- package/esm5/components/employee-summary/employee-summary.module.js +20 -0
- package/esm5/components/employee-summary/employee-summary.service.js +34 -0
- package/esm5/components/employee-summary/index.js +4 -0
- package/esm5/components/error-page/error-page.component.js +17 -0
- package/esm5/components/error-page/error-page.module.js +19 -0
- package/esm5/components/error-page/index.js +3 -0
- package/esm5/components/field-validator/field-validator.component.js +42 -0
- package/esm5/components/field-validator/field-validator.module.js +21 -0
- package/esm5/components/field-validator/index.js +3 -0
- package/esm5/components/file-upload/file-upload.component.js +138 -0
- package/esm5/components/file-upload/file-upload.module.js +22 -0
- package/esm5/components/file-upload/file-upload.service.js +45 -0
- package/esm5/components/file-upload/index.js +3 -0
- package/esm5/components/from-to/from-to.component.js +18 -0
- package/esm5/components/from-to/from-to.module.js +22 -0
- package/esm5/components/from-to/index.js +3 -0
- package/esm5/components/historical-bank-account/historical-bank-account-form/historical-bank-account-form.component.js +353 -0
- package/esm5/components/historical-bank-account/historical-bank-account.component.js +363 -0
- package/esm5/components/historical-bank-account/historical-bank-account.module.js +59 -0
- package/esm5/components/historical-bank-account/historical-bank-account.service.js +22 -0
- package/esm5/components/historical-bank-account/index.js +4 -0
- package/esm5/components/historical-bank-account-list/historical-bank-account-list.component.js +243 -0
- package/esm5/components/historical-bank-account-list/historical-bank-account-list.module.js +42 -0
- package/esm5/components/historical-bank-account-list/historical-bank-account-list.service.js +37 -0
- package/esm5/components/historical-bank-account-list/index.js +4 -0
- package/esm5/components/image-cropper/image-crop.component.js +164 -0
- package/esm5/components/image-cropper/image-crop.module.js +41 -0
- package/esm5/components/image-cropper/image-crop.service.js +106 -0
- package/esm5/components/image-cropper/index.js +4 -0
- package/esm5/components/input-date/index.js +3 -0
- package/esm5/components/input-date/input-date.component.js +129 -0
- package/esm5/components/input-date/input-date.module.js +20 -0
- package/esm5/components/input-date-model/index.js +3 -0
- package/esm5/components/input-date-model/input-date-model.component.js +110 -0
- package/esm5/components/input-date-model/input-date-model.module.js +20 -0
- package/esm5/components/input-rest-auto-complete/index.js +4 -0
- package/esm5/components/input-rest-auto-complete/input-rest-auto-complete.component.js +317 -0
- package/esm5/components/input-rest-auto-complete/input-rest-auto-complete.module.js +24 -0
- package/esm5/components/input-rest-auto-complete/input-rest-auto-complete.service.js +22 -0
- package/esm5/components/input-rest-auto-complete-employee/index.js +3 -0
- package/esm5/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.js +192 -0
- package/esm5/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.module.js +31 -0
- package/esm5/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.service.js +21 -0
- package/esm5/components/input-rest-auto-complete-employee-model/index.js +3 -0
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +185 -0
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.module.js +31 -0
- package/esm5/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.service.js +21 -0
- package/esm5/components/input-rest-auto-complete-enum/index.js +4 -0
- package/esm5/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.component.js +162 -0
- package/esm5/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.module.js +31 -0
- package/esm5/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.service.js +24 -0
- package/esm5/components/input-rest-auto-complete-jobposition/index.js +4 -0
- package/esm5/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.component.js +176 -0
- package/esm5/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.module.js +31 -0
- package/esm5/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.service.js +21 -0
- package/esm5/components/input-rest-auto-complete-model/index.js +3 -0
- package/esm5/components/input-rest-auto-complete-model/input-rest-auto-complete-model.component.js +234 -0
- package/esm5/components/input-rest-auto-complete-model/input-rest-auto-complete-model.module.js +31 -0
- package/esm5/components/input-rest-auto-complete-model/input-rest-auto-complete-model.service.js +22 -0
- package/esm5/components/input-rest-auto-complete-model-enum/index.js +3 -0
- package/esm5/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.component.js +130 -0
- package/esm5/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.module.js +31 -0
- package/esm5/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.service.js +24 -0
- package/esm5/components/list-rest/index.js +3 -0
- package/esm5/components/list-rest/list-rest.component.js +119 -0
- package/esm5/components/list-rest/list-rest.module.js +36 -0
- package/esm5/components/list-rest/list-rest.service.js +24 -0
- package/esm5/components/lookup/index.js +2 -0
- package/esm5/components/lookup/lookup.component.js +339 -0
- package/esm5/components/lookup/lookup.module.js +23 -0
- package/esm5/components/lookup/lookup.service.js +54 -0
- package/esm5/components/shared/http-client.service.js +179 -0
- package/esm5/components/shared/shared.module.js +22 -0
- package/esm5/components/spinner/index.js +3 -0
- package/esm5/components/spinner/spinner-loader.component.js +15 -0
- package/esm5/components/spinner/spinner-loader.module.js +26 -0
- package/esm5/components/toast/index.js +4 -0
- package/esm5/components/toast/toast.component.js +88 -0
- package/esm5/components/toast/toast.module.js +23 -0
- package/esm5/components/toast/toast.service.js +47 -0
- package/esm5/components/type-admission/index.js +3 -0
- package/esm5/components/type-admission/type-admission.module.js +17 -0
- package/esm5/components/type-admission/type-admission.services.js +75 -0
- package/esm5/components/utils/cnpj-validator.js +66 -0
- package/esm5/components/utils/cpf-validator.js +49 -0
- package/esm5/components/utils/date-validator/date-validators.js +149 -0
- package/esm5/components/utils/helpers.js +502 -0
- package/esm5/components/utils/validations.js +131 -0
- package/esm5/components/vanilla/string-methods.js +24 -0
- package/esm5/components/workstationgroup-lookup/autocomplete.service.js +124 -0
- package/esm5/components/workstationgroup-lookup/index.js +3 -0
- package/esm5/components/workstationgroup-lookup/lookup.service.js +147 -0
- package/esm5/components/workstationgroup-lookup/workstationgroup-lookup.component.js +609 -0
- package/esm5/components/workstationgroup-lookup/workstationgroup-lookup.dto.js +50 -0
- package/esm5/components/workstationgroup-lookup/workstationgroup-lookup.module.js +24 -0
- package/esm5/core/entities/entity-odata-parameter.js +47 -0
- package/esm5/core/entities/index.js +2 -0
- package/esm5/core/enums/companyIndicationType.js +18 -0
- package/esm5/core/enums/comparetype.enumeration.js +14 -0
- package/esm5/core/enums/coreFieldType.js +5 -0
- package/esm5/core/enums/direction.enumeration.js +6 -0
- package/esm5/core/enums/httpRequestType.js +6 -0
- package/esm5/core/enums/index.js +14 -0
- package/esm5/core/enums/menu-type.enumeration.js +6 -0
- package/esm5/core/enums/moduleType.js +22 -0
- package/esm5/core/enums/operators.enumeration.js +14 -0
- package/esm5/core/enums/parameter-type.enumeration.js +12 -0
- package/esm5/core/enums/report-format.enumeration.js +12 -0
- package/esm5/core/enums/report-stage.enumeration.js +12 -0
- package/esm5/core/enums/serviceType.js +9 -0
- package/esm5/core/enums/usingType.js +42 -0
- package/esm5/core/interfaces/date-compare-options.js +1 -0
- package/esm5/core/interfaces/date-validate-options.js +1 -0
- package/esm5/core/interfaces/field-validators-object.js +1 -0
- package/esm5/core/interfaces/index.js +1 -0
- package/esm5/core/interfaces/pagination-data.js +1 -0
- package/esm5/core/interfaces/report/domain-service.interface.js +1 -0
- package/esm5/core/interfaces/report/generation-status.interface.js +1 -0
- package/esm5/core/interfaces/report/get-parameters-out.interface.js +1 -0
- package/esm5/core/interfaces/report/index.js +1 -0
- package/esm5/core/interfaces/report/lookup-parameter.interface.js +1 -0
- package/esm5/core/interfaces/report/parameter-def.interface.js +1 -0
- package/esm5/core/interfaces/report/parameter-value.interface.js +1 -0
- package/esm5/core/interfaces/report/report-header.interface.js +1 -0
- package/esm5/core/interfaces/report/report-in.interface.js +1 -0
- package/esm5/core/interfaces/report/report-menu.interface.js +1 -0
- package/esm5/core/interfaces/report/report-out.interface.js +1 -0
- package/esm5/core/interfaces/report/report.interface.js +1 -0
- package/esm5/public_api.js +52 -58
- package/esm5/senior-gestao-pessoas-payroll-core.js +19 -24
- package/esm5/services/autocomplete-parameters.service.js +129 -0
- package/esm5/services/company-indications.service.js +43 -0
- package/esm5/services/form-comparator.service.js +119 -0
- package/esm5/services/integration.service.js +20 -0
- package/esm5/services/lookup-parameters.service.js +362 -0
- package/esm5/services/permissions.service.js +100 -0
- package/esm5/services/report.service.js +110 -0
- package/esm5/services/services.module.js +32 -0
- package/esm5/services/workflow-data.service.js +27 -0
- package/esm5/services/workflow-integrator.service.js +361 -0
- package/fesm2015/senior-gestao-pessoas-payroll-core.js +2939 -8866
- package/fesm2015/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/fesm5/senior-gestao-pessoas-payroll-core.js +2999 -10876
- package/fesm5/senior-gestao-pessoas-payroll-core.js.map +1 -1
- package/package.json +7 -1
- package/public_api.d.ts +52 -52
- package/senior-gestao-pessoas-payroll-core.d.ts +17 -17
- package/senior-gestao-pessoas-payroll-core.metadata.json +1 -1
- package/esm2015/lib/components/admission-draft-summary/admission-draft-summary.component.js +0 -203
- package/esm2015/lib/components/admission-draft-summary/admission-draft-summary.module.js +0 -20
- package/esm2015/lib/components/admission-draft-summary/admission-draft-summary.service.js +0 -59
- package/esm2015/lib/components/admission-draft-summary/index.js +0 -9
- package/esm2015/lib/components/block-ui/block-ui.component.js +0 -26
- package/esm2015/lib/components/block-ui/block-ui.module.js +0 -28
- package/esm2015/lib/components/block-ui/index.js +0 -8
- package/esm2015/lib/components/breadcrumb/breadcrumb.component.js +0 -151
- package/esm2015/lib/components/breadcrumb/breadcrumb.module.js +0 -28
- package/esm2015/lib/components/breadcrumb/index.js +0 -8
- package/esm2015/lib/components/control-messages-error/control-messages-error.component.js +0 -41
- package/esm2015/lib/components/control-messages-error/control-messages-error.module.js +0 -20
- package/esm2015/lib/components/control-messages-error/index.js +0 -8
- package/esm2015/lib/components/custom-fields/custom-fields.component.js +0 -65
- package/esm2015/lib/components/custom-fields/custom-fields.module.js +0 -34
- package/esm2015/lib/components/custom-fields/index.js +0 -8
- package/esm2015/lib/components/data-list/data-list.component.js +0 -456
- package/esm2015/lib/components/data-list/data-list.module.js +0 -31
- package/esm2015/lib/components/data-list/data-list.service.js +0 -38
- package/esm2015/lib/components/data-list/entity-odata-response.js +0 -72
- package/esm2015/lib/components/data-list/index.js +0 -7
- package/esm2015/lib/components/data-list-rest/data-list-rest.component.js +0 -354
- package/esm2015/lib/components/data-list-rest/data-list-rest.module.js +0 -31
- package/esm2015/lib/components/data-list-rest/data-list-rest.service.js +0 -38
- package/esm2015/lib/components/data-list-rest/index.js +0 -7
- package/esm2015/lib/components/directives/directives.module.js +0 -20
- package/esm2015/lib/components/directives/index.js +0 -9
- package/esm2015/lib/components/directives/name-not-spaces.directive.js +0 -59
- package/esm2015/lib/components/directives/only-number.directive.js +0 -60
- package/esm2015/lib/components/employee-selector/employee-selector.component.js +0 -145
- package/esm2015/lib/components/employee-selector/employee-selector.module.js +0 -21
- package/esm2015/lib/components/employee-selector/index.js +0 -8
- package/esm2015/lib/components/employee-summary/employee-summary.component.js +0 -200
- package/esm2015/lib/components/employee-summary/employee-summary.module.js +0 -20
- package/esm2015/lib/components/employee-summary/employee-summary.service.js +0 -74
- package/esm2015/lib/components/employee-summary/index.js +0 -9
- package/esm2015/lib/components/error-page/error-page.component.js +0 -23
- package/esm2015/lib/components/error-page/error-page.module.js +0 -19
- package/esm2015/lib/components/error-page/index.js +0 -8
- package/esm2015/lib/components/field-validator/field-validator.component.js +0 -64
- package/esm2015/lib/components/field-validator/field-validator.module.js +0 -21
- package/esm2015/lib/components/field-validator/index.js +0 -8
- package/esm2015/lib/components/file-upload/file-upload.component.js +0 -220
- package/esm2015/lib/components/file-upload/file-upload.module.js +0 -22
- package/esm2015/lib/components/file-upload/file-upload.service.js +0 -83
- package/esm2015/lib/components/file-upload/index.js +0 -8
- package/esm2015/lib/components/from-to/from-to.component.js +0 -25
- package/esm2015/lib/components/from-to/from-to.module.js +0 -22
- package/esm2015/lib/components/from-to/index.js +0 -8
- package/esm2015/lib/components/historical-bank-account/historical-bank-account-form/historical-bank-account-form.component.js +0 -514
- package/esm2015/lib/components/historical-bank-account/historical-bank-account.component.js +0 -542
- package/esm2015/lib/components/historical-bank-account/historical-bank-account.module.js +0 -59
- package/esm2015/lib/components/historical-bank-account/historical-bank-account.service.js +0 -40
- package/esm2015/lib/components/historical-bank-account/index.js +0 -9
- package/esm2015/lib/components/historical-bank-account-list/historical-bank-account-list.component.js +0 -359
- package/esm2015/lib/components/historical-bank-account-list/historical-bank-account-list.module.js +0 -42
- package/esm2015/lib/components/historical-bank-account-list/historical-bank-account-list.service.js +0 -62
- package/esm2015/lib/components/historical-bank-account-list/index.js +0 -9
- package/esm2015/lib/components/image-cropper/image-crop.component.js +0 -248
- package/esm2015/lib/components/image-cropper/image-crop.module.js +0 -38
- package/esm2015/lib/components/image-cropper/image-crop.service.js +0 -164
- package/esm2015/lib/components/image-cropper/index.js +0 -9
- package/esm2015/lib/components/input-date/index.js +0 -8
- package/esm2015/lib/components/input-date/input-date.component.js +0 -189
- package/esm2015/lib/components/input-date/input-date.module.js +0 -20
- package/esm2015/lib/components/input-date-model/index.js +0 -8
- package/esm2015/lib/components/input-date-model/input-date-model.component.js +0 -169
- package/esm2015/lib/components/input-date-model/input-date-model.module.js +0 -20
- package/esm2015/lib/components/input-rest-auto-complete/index.js +0 -9
- package/esm2015/lib/components/input-rest-auto-complete/input-rest-auto-complete.component.js +0 -444
- package/esm2015/lib/components/input-rest-auto-complete/input-rest-auto-complete.module.js +0 -24
- package/esm2015/lib/components/input-rest-auto-complete/input-rest-auto-complete.service.js +0 -40
- package/esm2015/lib/components/input-rest-auto-complete-employee/index.js +0 -8
- package/esm2015/lib/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.js +0 -263
- package/esm2015/lib/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.module.js +0 -31
- package/esm2015/lib/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.service.js +0 -40
- package/esm2015/lib/components/input-rest-auto-complete-employee-model/index.js +0 -8
- package/esm2015/lib/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +0 -253
- package/esm2015/lib/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.module.js +0 -31
- package/esm2015/lib/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.service.js +0 -40
- package/esm2015/lib/components/input-rest-auto-complete-enum/index.js +0 -9
- package/esm2015/lib/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.component.js +0 -209
- package/esm2015/lib/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.module.js +0 -31
- package/esm2015/lib/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.service.js +0 -44
- package/esm2015/lib/components/input-rest-auto-complete-jobposition/index.js +0 -9
- package/esm2015/lib/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.component.js +0 -254
- package/esm2015/lib/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.module.js +0 -31
- package/esm2015/lib/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.service.js +0 -40
- package/esm2015/lib/components/input-rest-auto-complete-model/index.js +0 -8
- package/esm2015/lib/components/input-rest-auto-complete-model/input-rest-auto-complete-model.component.js +0 -331
- package/esm2015/lib/components/input-rest-auto-complete-model/input-rest-auto-complete-model.module.js +0 -31
- package/esm2015/lib/components/input-rest-auto-complete-model/input-rest-auto-complete-model.service.js +0 -40
- package/esm2015/lib/components/input-rest-auto-complete-model-enum/index.js +0 -8
- package/esm2015/lib/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.component.js +0 -176
- package/esm2015/lib/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.module.js +0 -31
- package/esm2015/lib/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.service.js +0 -44
- package/esm2015/lib/components/list-rest/index.js +0 -8
- package/esm2015/lib/components/list-rest/list-rest.component.js +0 -192
- package/esm2015/lib/components/list-rest/list-rest.module.js +0 -36
- package/esm2015/lib/components/list-rest/list-rest.service.js +0 -48
- package/esm2015/lib/components/lookup/index.js +0 -7
- package/esm2015/lib/components/lookup/lookup.component.js +0 -471
- package/esm2015/lib/components/lookup/lookup.module.js +0 -23
- package/esm2015/lib/components/lookup/lookup.service.js +0 -91
- package/esm2015/lib/components/shared/http-client.service.js +0 -293
- package/esm2015/lib/components/shared/shared.module.js +0 -26
- package/esm2015/lib/components/spinner/index.js +0 -8
- package/esm2015/lib/components/spinner/spinner-loader.component.js +0 -15
- package/esm2015/lib/components/spinner/spinner-loader.module.js +0 -26
- package/esm2015/lib/components/toast/index.js +0 -9
- package/esm2015/lib/components/toast/toast.component.js +0 -156
- package/esm2015/lib/components/toast/toast.module.js +0 -23
- package/esm2015/lib/components/toast/toast.service.js +0 -76
- package/esm2015/lib/components/type-admission/index.js +0 -8
- package/esm2015/lib/components/type-admission/type-admission.module.js +0 -17
- package/esm2015/lib/components/type-admission/type-admission.services.js +0 -135
- package/esm2015/lib/components/utils/cnpj-validator.js +0 -82
- package/esm2015/lib/components/utils/cpf-validator.js +0 -76
- package/esm2015/lib/components/utils/date-validator/date-validators.js +0 -184
- package/esm2015/lib/components/utils/helpers.js +0 -737
- package/esm2015/lib/components/utils/validations.js +0 -237
- package/esm2015/lib/components/vanilla/string-methods.js +0 -37
- package/esm2015/lib/components/workstationgroup-lookup/autocomplete.service.js +0 -175
- package/esm2015/lib/components/workstationgroup-lookup/index.js +0 -8
- package/esm2015/lib/components/workstationgroup-lookup/lookup.service.js +0 -254
- package/esm2015/lib/components/workstationgroup-lookup/workstationgroup-lookup.component.js +0 -832
- package/esm2015/lib/components/workstationgroup-lookup/workstationgroup-lookup.dto.js +0 -193
- package/esm2015/lib/components/workstationgroup-lookup/workstationgroup-lookup.module.js +0 -24
- package/esm2015/lib/core/entities/entity-odata-parameter.js +0 -82
- package/esm2015/lib/core/entities/index.js +0 -7
- package/esm2015/lib/core/enums/companyIndicationType.js +0 -24
- package/esm2015/lib/core/enums/comparetype.enumeration.js +0 -16
- package/esm2015/lib/core/enums/coreFieldType.js +0 -11
- package/esm2015/lib/core/enums/direction.enumeration.js +0 -12
- package/esm2015/lib/core/enums/httpRequestType.js +0 -12
- package/esm2015/lib/core/enums/index.js +0 -19
- package/esm2015/lib/core/enums/menu-type.enumeration.js +0 -12
- package/esm2015/lib/core/enums/moduleType.js +0 -28
- package/esm2015/lib/core/enums/operators.enumeration.js +0 -20
- package/esm2015/lib/core/enums/parameter-type.enumeration.js +0 -18
- package/esm2015/lib/core/enums/report-format.enumeration.js +0 -18
- package/esm2015/lib/core/enums/report-stage.enumeration.js +0 -18
- package/esm2015/lib/core/enums/serviceType.js +0 -15
- package/esm2015/lib/core/enums/usingType.js +0 -48
- package/esm2015/lib/core/interfaces/date-compare-options.js +0 -19
- package/esm2015/lib/core/interfaces/date-validate-options.js +0 -17
- package/esm2015/lib/core/interfaces/field-validators-object.js +0 -20
- package/esm2015/lib/core/interfaces/index.js +0 -10
- package/esm2015/lib/core/interfaces/pagination-data.js +0 -18
- package/esm2015/lib/core/interfaces/report/domain-service.interface.js +0 -16
- package/esm2015/lib/core/interfaces/report/generation-status.interface.js +0 -22
- package/esm2015/lib/core/interfaces/report/get-parameters-out.interface.js +0 -16
- package/esm2015/lib/core/interfaces/report/index.js +0 -15
- package/esm2015/lib/core/interfaces/report/lookup-parameter.interface.js +0 -20
- package/esm2015/lib/core/interfaces/report/parameter-def.interface.js +0 -20
- package/esm2015/lib/core/interfaces/report/parameter-value.interface.js +0 -16
- package/esm2015/lib/core/interfaces/report/report-header.interface.js +0 -16
- package/esm2015/lib/core/interfaces/report/report-in.interface.js +0 -20
- package/esm2015/lib/core/interfaces/report/report-menu.interface.js +0 -18
- package/esm2015/lib/core/interfaces/report/report-out.interface.js +0 -14
- package/esm2015/lib/core/interfaces/report/report.interface.js +0 -48
- package/esm2015/lib/services/autocomplete-parameters.service.js +0 -180
- package/esm2015/lib/services/company-indications.service.js +0 -101
- package/esm2015/lib/services/form-comparator.service.js +0 -208
- package/esm2015/lib/services/integration.service.js +0 -37
- package/esm2015/lib/services/lookup-parameters.service.js +0 -557
- package/esm2015/lib/services/permissions.service.js +0 -218
- package/esm2015/lib/services/report.service.js +0 -161
- package/esm2015/lib/services/services.module.js +0 -32
- package/esm2015/lib/services/workflow-data.service.js +0 -57
- package/esm2015/lib/services/workflow-integrator.service.js +0 -416
- package/esm5/lib/components/admission-draft-summary/admission-draft-summary.component.js +0 -214
- package/esm5/lib/components/admission-draft-summary/admission-draft-summary.module.js +0 -24
- package/esm5/lib/components/admission-draft-summary/admission-draft-summary.service.js +0 -71
- package/esm5/lib/components/admission-draft-summary/index.js +0 -9
- package/esm5/lib/components/block-ui/block-ui.component.js +0 -30
- package/esm5/lib/components/block-ui/block-ui.module.js +0 -32
- package/esm5/lib/components/block-ui/index.js +0 -8
- package/esm5/lib/components/breadcrumb/breadcrumb.component.js +0 -170
- package/esm5/lib/components/breadcrumb/breadcrumb.module.js +0 -32
- package/esm5/lib/components/breadcrumb/index.js +0 -8
- package/esm5/lib/components/control-messages-error/control-messages-error.component.js +0 -48
- package/esm5/lib/components/control-messages-error/control-messages-error.module.js +0 -24
- package/esm5/lib/components/control-messages-error/index.js +0 -8
- package/esm5/lib/components/custom-fields/custom-fields.component.js +0 -70
- package/esm5/lib/components/custom-fields/custom-fields.module.js +0 -38
- package/esm5/lib/components/custom-fields/index.js +0 -8
- package/esm5/lib/components/data-list/data-list.component.js +0 -557
- package/esm5/lib/components/data-list/data-list.module.js +0 -35
- package/esm5/lib/components/data-list/data-list.service.js +0 -42
- package/esm5/lib/components/data-list/entity-odata-response.js +0 -83
- package/esm5/lib/components/data-list/index.js +0 -7
- package/esm5/lib/components/data-list-rest/data-list-rest.component.js +0 -414
- package/esm5/lib/components/data-list-rest/data-list-rest.module.js +0 -35
- package/esm5/lib/components/data-list-rest/data-list-rest.service.js +0 -42
- package/esm5/lib/components/data-list-rest/index.js +0 -7
- package/esm5/lib/components/directives/directives.module.js +0 -24
- package/esm5/lib/components/directives/index.js +0 -9
- package/esm5/lib/components/directives/name-not-spaces.directive.js +0 -66
- package/esm5/lib/components/directives/only-number.directive.js +0 -63
- package/esm5/lib/components/employee-selector/employee-selector.component.js +0 -168
- package/esm5/lib/components/employee-selector/employee-selector.module.js +0 -25
- package/esm5/lib/components/employee-selector/index.js +0 -8
- package/esm5/lib/components/employee-summary/employee-summary.component.js +0 -212
- package/esm5/lib/components/employee-summary/employee-summary.module.js +0 -24
- package/esm5/lib/components/employee-summary/employee-summary.service.js +0 -95
- package/esm5/lib/components/employee-summary/index.js +0 -9
- package/esm5/lib/components/error-page/error-page.component.js +0 -29
- package/esm5/lib/components/error-page/error-page.module.js +0 -23
- package/esm5/lib/components/error-page/index.js +0 -8
- package/esm5/lib/components/field-validator/field-validator.component.js +0 -74
- package/esm5/lib/components/field-validator/field-validator.module.js +0 -25
- package/esm5/lib/components/field-validator/index.js +0 -8
- package/esm5/lib/components/file-upload/file-upload.component.js +0 -261
- package/esm5/lib/components/file-upload/file-upload.module.js +0 -26
- package/esm5/lib/components/file-upload/file-upload.service.js +0 -99
- package/esm5/lib/components/file-upload/index.js +0 -8
- package/esm5/lib/components/from-to/from-to.component.js +0 -28
- package/esm5/lib/components/from-to/from-to.module.js +0 -26
- package/esm5/lib/components/from-to/index.js +0 -8
- package/esm5/lib/components/historical-bank-account/historical-bank-account-form/historical-bank-account-form.component.js +0 -657
- package/esm5/lib/components/historical-bank-account/historical-bank-account.component.js +0 -624
- package/esm5/lib/components/historical-bank-account/historical-bank-account.module.js +0 -63
- package/esm5/lib/components/historical-bank-account/historical-bank-account.service.js +0 -46
- package/esm5/lib/components/historical-bank-account/index.js +0 -9
- package/esm5/lib/components/historical-bank-account-list/historical-bank-account-list.component.js +0 -402
- package/esm5/lib/components/historical-bank-account-list/historical-bank-account-list.module.js +0 -46
- package/esm5/lib/components/historical-bank-account-list/historical-bank-account-list.service.js +0 -68
- package/esm5/lib/components/historical-bank-account-list/index.js +0 -9
- package/esm5/lib/components/image-cropper/image-crop.component.js +0 -287
- package/esm5/lib/components/image-cropper/image-crop.module.js +0 -39
- package/esm5/lib/components/image-cropper/image-crop.service.js +0 -221
- package/esm5/lib/components/image-cropper/index.js +0 -9
- package/esm5/lib/components/input-date/index.js +0 -8
- package/esm5/lib/components/input-date/input-date.component.js +0 -218
- package/esm5/lib/components/input-date/input-date.module.js +0 -24
- package/esm5/lib/components/input-date-model/index.js +0 -8
- package/esm5/lib/components/input-date-model/input-date-model.component.js +0 -190
- package/esm5/lib/components/input-date-model/input-date-model.module.js +0 -24
- package/esm5/lib/components/input-rest-auto-complete/index.js +0 -9
- package/esm5/lib/components/input-rest-auto-complete/input-rest-auto-complete.component.js +0 -497
- package/esm5/lib/components/input-rest-auto-complete/input-rest-auto-complete.module.js +0 -28
- package/esm5/lib/components/input-rest-auto-complete/input-rest-auto-complete.service.js +0 -46
- package/esm5/lib/components/input-rest-auto-complete-employee/index.js +0 -8
- package/esm5/lib/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.js +0 -300
- package/esm5/lib/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.module.js +0 -35
- package/esm5/lib/components/input-rest-auto-complete-employee/input-rest-auto-complete-employee.service.js +0 -44
- package/esm5/lib/components/input-rest-auto-complete-employee-model/index.js +0 -8
- package/esm5/lib/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.js +0 -291
- package/esm5/lib/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.module.js +0 -35
- package/esm5/lib/components/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.service.js +0 -44
- package/esm5/lib/components/input-rest-auto-complete-enum/index.js +0 -9
- package/esm5/lib/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.component.js +0 -252
- package/esm5/lib/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.module.js +0 -35
- package/esm5/lib/components/input-rest-auto-complete-enum/input-rest-auto-complete-enum.service.js +0 -48
- package/esm5/lib/components/input-rest-auto-complete-jobposition/index.js +0 -9
- package/esm5/lib/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.component.js +0 -302
- package/esm5/lib/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.module.js +0 -35
- package/esm5/lib/components/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.service.js +0 -44
- package/esm5/lib/components/input-rest-auto-complete-model/index.js +0 -8
- package/esm5/lib/components/input-rest-auto-complete-model/input-rest-auto-complete-model.component.js +0 -379
- package/esm5/lib/components/input-rest-auto-complete-model/input-rest-auto-complete-model.module.js +0 -35
- package/esm5/lib/components/input-rest-auto-complete-model/input-rest-auto-complete-model.service.js +0 -46
- package/esm5/lib/components/input-rest-auto-complete-model-enum/index.js +0 -8
- package/esm5/lib/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.component.js +0 -206
- package/esm5/lib/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.module.js +0 -35
- package/esm5/lib/components/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.service.js +0 -48
- package/esm5/lib/components/list-rest/index.js +0 -8
- package/esm5/lib/components/list-rest/list-rest.component.js +0 -219
- package/esm5/lib/components/list-rest/list-rest.module.js +0 -40
- package/esm5/lib/components/list-rest/list-rest.service.js +0 -57
- package/esm5/lib/components/lookup/index.js +0 -7
- package/esm5/lib/components/lookup/lookup.component.js +0 -600
- package/esm5/lib/components/lookup/lookup.module.js +0 -27
- package/esm5/lib/components/lookup/lookup.service.js +0 -94
- package/esm5/lib/components/shared/http-client.service.js +0 -355
- package/esm5/lib/components/shared/shared.module.js +0 -28
- package/esm5/lib/components/spinner/index.js +0 -8
- package/esm5/lib/components/spinner/spinner-loader.component.js +0 -19
- package/esm5/lib/components/spinner/spinner-loader.module.js +0 -30
- package/esm5/lib/components/toast/index.js +0 -9
- package/esm5/lib/components/toast/toast.component.js +0 -173
- package/esm5/lib/components/toast/toast.module.js +0 -27
- package/esm5/lib/components/toast/toast.service.js +0 -123
- package/esm5/lib/components/type-admission/index.js +0 -8
- package/esm5/lib/components/type-admission/type-admission.module.js +0 -21
- package/esm5/lib/components/type-admission/type-admission.services.js +0 -191
- package/esm5/lib/components/utils/cnpj-validator.js +0 -94
- package/esm5/lib/components/utils/cpf-validator.js +0 -98
- package/esm5/lib/components/utils/date-validator/date-validators.js +0 -289
- package/esm5/lib/components/utils/helpers.js +0 -763
- package/esm5/lib/components/utils/validations.js +0 -241
- package/esm5/lib/components/vanilla/string-methods.js +0 -42
- package/esm5/lib/components/workstationgroup-lookup/autocomplete.service.js +0 -250
- package/esm5/lib/components/workstationgroup-lookup/index.js +0 -8
- package/esm5/lib/components/workstationgroup-lookup/lookup.service.js +0 -318
- package/esm5/lib/components/workstationgroup-lookup/workstationgroup-lookup.component.js +0 -908
- package/esm5/lib/components/workstationgroup-lookup/workstationgroup-lookup.dto.js +0 -200
- package/esm5/lib/components/workstationgroup-lookup/workstationgroup-lookup.module.js +0 -28
- package/esm5/lib/core/entities/entity-odata-parameter.js +0 -96
- package/esm5/lib/core/entities/index.js +0 -7
- package/esm5/lib/core/enums/companyIndicationType.js +0 -24
- package/esm5/lib/core/enums/comparetype.enumeration.js +0 -16
- package/esm5/lib/core/enums/coreFieldType.js +0 -11
- package/esm5/lib/core/enums/direction.enumeration.js +0 -12
- package/esm5/lib/core/enums/httpRequestType.js +0 -12
- package/esm5/lib/core/enums/index.js +0 -19
- package/esm5/lib/core/enums/menu-type.enumeration.js +0 -12
- package/esm5/lib/core/enums/moduleType.js +0 -28
- package/esm5/lib/core/enums/operators.enumeration.js +0 -20
- package/esm5/lib/core/enums/parameter-type.enumeration.js +0 -18
- package/esm5/lib/core/enums/report-format.enumeration.js +0 -18
- package/esm5/lib/core/enums/report-stage.enumeration.js +0 -18
- package/esm5/lib/core/enums/serviceType.js +0 -15
- package/esm5/lib/core/enums/usingType.js +0 -48
- package/esm5/lib/core/interfaces/date-compare-options.js +0 -19
- package/esm5/lib/core/interfaces/date-validate-options.js +0 -17
- package/esm5/lib/core/interfaces/field-validators-object.js +0 -20
- package/esm5/lib/core/interfaces/index.js +0 -10
- package/esm5/lib/core/interfaces/pagination-data.js +0 -18
- package/esm5/lib/core/interfaces/report/domain-service.interface.js +0 -16
- package/esm5/lib/core/interfaces/report/generation-status.interface.js +0 -22
- package/esm5/lib/core/interfaces/report/get-parameters-out.interface.js +0 -16
- package/esm5/lib/core/interfaces/report/index.js +0 -15
- package/esm5/lib/core/interfaces/report/lookup-parameter.interface.js +0 -20
- package/esm5/lib/core/interfaces/report/parameter-def.interface.js +0 -20
- package/esm5/lib/core/interfaces/report/parameter-value.interface.js +0 -16
- package/esm5/lib/core/interfaces/report/report-header.interface.js +0 -16
- package/esm5/lib/core/interfaces/report/report-in.interface.js +0 -20
- package/esm5/lib/core/interfaces/report/report-menu.interface.js +0 -18
- package/esm5/lib/core/interfaces/report/report-out.interface.js +0 -14
- package/esm5/lib/core/interfaces/report/report.interface.js +0 -48
- package/esm5/lib/services/autocomplete-parameters.service.js +0 -255
- package/esm5/lib/services/company-indications.service.js +0 -126
- package/esm5/lib/services/form-comparator.service.js +0 -278
- package/esm5/lib/services/integration.service.js +0 -40
- package/esm5/lib/services/lookup-parameters.service.js +0 -748
- package/esm5/lib/services/permissions.service.js +0 -253
- package/esm5/lib/services/report.service.js +0 -231
- package/esm5/lib/services/services.module.js +0 -36
- package/esm5/lib/services/workflow-data.service.js +0 -73
- package/esm5/lib/services/workflow-integrator.service.js +0 -715
- package/lib/components/workstationgroup-lookup/autocomplete.service.d.ts +0 -31
- /package/{lib/components → components}/admission-draft-summary/admission-draft-summary.component.d.ts +0 -0
- /package/{lib/components → components}/admission-draft-summary/admission-draft-summary.module.d.ts +0 -0
- /package/{lib/components → components}/admission-draft-summary/admission-draft-summary.service.d.ts +0 -0
- /package/{lib/components → components}/admission-draft-summary/index.d.ts +0 -0
- /package/{lib/components → components}/block-ui/block-ui.component.d.ts +0 -0
- /package/{lib/components → components}/block-ui/block-ui.module.d.ts +0 -0
- /package/{lib/components → components}/block-ui/index.d.ts +0 -0
- /package/{lib/components → components}/breadcrumb/breadcrumb.component.d.ts +0 -0
- /package/{lib/components → components}/breadcrumb/breadcrumb.module.d.ts +0 -0
- /package/{lib/components → components}/breadcrumb/index.d.ts +0 -0
- /package/{lib/components → components}/control-messages-error/control-messages-error.component.d.ts +0 -0
- /package/{lib/components → components}/control-messages-error/control-messages-error.module.d.ts +0 -0
- /package/{lib/components → components}/control-messages-error/index.d.ts +0 -0
- /package/{lib/components → components}/custom-fields/custom-fields.component.d.ts +0 -0
- /package/{lib/components → components}/custom-fields/custom-fields.module.d.ts +0 -0
- /package/{lib/components → components}/custom-fields/index.d.ts +0 -0
- /package/{lib/components → components}/data-list/data-list.component.d.ts +0 -0
- /package/{lib/components → components}/data-list/data-list.module.d.ts +0 -0
- /package/{lib/components → components}/data-list/data-list.service.d.ts +0 -0
- /package/{lib/components → components}/data-list/entity-odata-response.d.ts +0 -0
- /package/{lib/components → components}/data-list/index.d.ts +0 -0
- /package/{lib/components → components}/data-list-rest/data-list-rest.component.d.ts +0 -0
- /package/{lib/components → components}/data-list-rest/data-list-rest.module.d.ts +0 -0
- /package/{lib/components → components}/data-list-rest/data-list-rest.service.d.ts +0 -0
- /package/{lib/components → components}/data-list-rest/index.d.ts +0 -0
- /package/{lib/components → components}/directives/directives.module.d.ts +0 -0
- /package/{lib/components → components}/directives/index.d.ts +0 -0
- /package/{lib/components → components}/directives/name-not-spaces.directive.d.ts +0 -0
- /package/{lib/components → components}/directives/only-number.directive.d.ts +0 -0
- /package/{lib/components → components}/employee-selector/employee-selector.component.d.ts +0 -0
- /package/{lib/components → components}/employee-selector/employee-selector.module.d.ts +0 -0
- /package/{lib/components → components}/employee-selector/index.d.ts +0 -0
- /package/{lib/components → components}/employee-summary/employee-summary.component.d.ts +0 -0
- /package/{lib/components → components}/employee-summary/employee-summary.module.d.ts +0 -0
- /package/{lib/components → components}/employee-summary/employee-summary.service.d.ts +0 -0
- /package/{lib/components → components}/employee-summary/index.d.ts +0 -0
- /package/{lib/components → components}/error-page/error-page.component.d.ts +0 -0
- /package/{lib/components → components}/error-page/error-page.module.d.ts +0 -0
- /package/{lib/components → components}/error-page/index.d.ts +0 -0
- /package/{lib/components → components}/field-validator/field-validator.component.d.ts +0 -0
- /package/{lib/components → components}/field-validator/field-validator.module.d.ts +0 -0
- /package/{lib/components → components}/field-validator/index.d.ts +0 -0
- /package/{lib/components → components}/file-upload/file-upload.component.d.ts +0 -0
- /package/{lib/components → components}/file-upload/file-upload.module.d.ts +0 -0
- /package/{lib/components → components}/file-upload/file-upload.service.d.ts +0 -0
- /package/{lib/components → components}/file-upload/index.d.ts +0 -0
- /package/{lib/components → components}/from-to/from-to.component.d.ts +0 -0
- /package/{lib/components → components}/from-to/from-to.module.d.ts +0 -0
- /package/{lib/components → components}/from-to/index.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account/historical-bank-account-form/historical-bank-account-form.component.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account/historical-bank-account.component.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account/historical-bank-account.module.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account/historical-bank-account.service.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account/index.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account-list/historical-bank-account-list.component.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account-list/historical-bank-account-list.module.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account-list/historical-bank-account-list.service.d.ts +0 -0
- /package/{lib/components → components}/historical-bank-account-list/index.d.ts +0 -0
- /package/{lib/components → components}/image-cropper/image-crop.component.d.ts +0 -0
- /package/{lib/components → components}/image-cropper/image-crop.module.d.ts +0 -0
- /package/{lib/components → components}/image-cropper/image-crop.service.d.ts +0 -0
- /package/{lib/components → components}/image-cropper/index.d.ts +0 -0
- /package/{lib/components → components}/input-date/index.d.ts +0 -0
- /package/{lib/components → components}/input-date/input-date.component.d.ts +0 -0
- /package/{lib/components → components}/input-date/input-date.module.d.ts +0 -0
- /package/{lib/components → components}/input-date-model/index.d.ts +0 -0
- /package/{lib/components → components}/input-date-model/input-date-model.component.d.ts +0 -0
- /package/{lib/components → components}/input-date-model/input-date-model.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete/input-rest-auto-complete.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete/input-rest-auto-complete.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete/input-rest-auto-complete.service.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee/input-rest-auto-complete-employee.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee/input-rest-auto-complete-employee.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee/input-rest-auto-complete-employee.service.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee-model/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-employee-model/input-rest-auto-complete-employee-model.service.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-enum/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-enum/input-rest-auto-complete-enum.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-enum/input-rest-auto-complete-enum.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-enum/input-rest-auto-complete-enum.service.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-jobposition/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-jobposition/input-rest-auto-complete-jobposition.service.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model/input-rest-auto-complete-model.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model/input-rest-auto-complete-model.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model/input-rest-auto-complete-model.service.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model-enum/index.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.component.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.module.d.ts +0 -0
- /package/{lib/components → components}/input-rest-auto-complete-model-enum/input-rest-auto-complete-model-enum.service.d.ts +0 -0
- /package/{lib/components → components}/list-rest/index.d.ts +0 -0
- /package/{lib/components → components}/list-rest/list-rest.component.d.ts +0 -0
- /package/{lib/components → components}/list-rest/list-rest.module.d.ts +0 -0
- /package/{lib/components → components}/list-rest/list-rest.service.d.ts +0 -0
- /package/{lib/components → components}/lookup/index.d.ts +0 -0
- /package/{lib/components → components}/lookup/lookup.component.d.ts +0 -0
- /package/{lib/components → components}/lookup/lookup.module.d.ts +0 -0
- /package/{lib/components → components}/lookup/lookup.service.d.ts +0 -0
- /package/{lib/components → components}/shared/http-client.service.d.ts +0 -0
- /package/{lib/components → components}/shared/shared.module.d.ts +0 -0
- /package/{lib/components → components}/spinner/index.d.ts +0 -0
- /package/{lib/components → components}/spinner/spinner-loader.component.d.ts +0 -0
- /package/{lib/components → components}/spinner/spinner-loader.module.d.ts +0 -0
- /package/{lib/components → components}/toast/index.d.ts +0 -0
- /package/{lib/components → components}/toast/toast.component.d.ts +0 -0
- /package/{lib/components → components}/toast/toast.module.d.ts +0 -0
- /package/{lib/components → components}/toast/toast.service.d.ts +0 -0
- /package/{lib/components → components}/type-admission/index.d.ts +0 -0
- /package/{lib/components → components}/type-admission/type-admission.module.d.ts +0 -0
- /package/{lib/components → components}/type-admission/type-admission.services.d.ts +0 -0
- /package/{lib/components → components}/utils/cnpj-validator.d.ts +0 -0
- /package/{lib/components → components}/utils/cpf-validator.d.ts +0 -0
- /package/{lib/components → components}/utils/date-validator/date-validators.d.ts +0 -0
- /package/{lib/components → components}/utils/helpers.d.ts +0 -0
- /package/{lib/components → components}/utils/validations.d.ts +0 -0
- /package/{lib/components → components}/vanilla/string-methods.d.ts +0 -0
- /package/{lib/components → components}/workstationgroup-lookup/index.d.ts +0 -0
- /package/{lib/components → components}/workstationgroup-lookup/lookup.service.d.ts +0 -0
- /package/{lib/components → components}/workstationgroup-lookup/workstationgroup-lookup.component.d.ts +0 -0
- /package/{lib/components → components}/workstationgroup-lookup/workstationgroup-lookup.dto.d.ts +0 -0
- /package/{lib/components → components}/workstationgroup-lookup/workstationgroup-lookup.module.d.ts +0 -0
- /package/{lib/core → core}/entities/entity-odata-parameter.d.ts +0 -0
- /package/{lib/core → core}/entities/index.d.ts +0 -0
- /package/{lib/core → core}/enums/companyIndicationType.d.ts +0 -0
- /package/{lib/core → core}/enums/comparetype.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/coreFieldType.d.ts +0 -0
- /package/{lib/core → core}/enums/direction.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/httpRequestType.d.ts +0 -0
- /package/{lib/core → core}/enums/index.d.ts +0 -0
- /package/{lib/core → core}/enums/menu-type.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/moduleType.d.ts +0 -0
- /package/{lib/core → core}/enums/operators.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/parameter-type.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/report-format.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/report-stage.enumeration.d.ts +0 -0
- /package/{lib/core → core}/enums/serviceType.d.ts +0 -0
- /package/{lib/core → core}/enums/usingType.d.ts +0 -0
- /package/{lib/core → core}/interfaces/date-compare-options.d.ts +0 -0
- /package/{lib/core → core}/interfaces/date-validate-options.d.ts +0 -0
- /package/{lib/core → core}/interfaces/field-validators-object.d.ts +0 -0
- /package/{lib/core → core}/interfaces/index.d.ts +0 -0
- /package/{lib/core → core}/interfaces/pagination-data.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/domain-service.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/generation-status.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/get-parameters-out.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/index.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/lookup-parameter.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/parameter-def.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/parameter-value.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/report-header.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/report-in.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/report-menu.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/report-out.interface.d.ts +0 -0
- /package/{lib/core → core}/interfaces/report/report.interface.d.ts +0 -0
- /package/{lib/services → services}/autocomplete-parameters.service.d.ts +0 -0
- /package/{lib/services → services}/company-indications.service.d.ts +0 -0
- /package/{lib/services → services}/form-comparator.service.d.ts +0 -0
- /package/{lib/services → services}/integration.service.d.ts +0 -0
- /package/{lib/services → services}/lookup-parameters.service.d.ts +0 -0
- /package/{lib/services → services}/permissions.service.d.ts +0 -0
- /package/{lib/services → services}/report.service.d.ts +0 -0
- /package/{lib/services → services}/services.module.d.ts +0 -0
- /package/{lib/services → services}/workflow-data.service.d.ts +0 -0
- /package/{lib/services → services}/workflow-integrator.service.d.ts +0 -0
|
@@ -1,748 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* Generated from: lib/services/lookup-parameters.service.ts
|
|
4
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
5
|
-
*/
|
|
6
|
-
import * as tslib_1 from "tslib";
|
|
7
|
-
import { Injectable } from '@angular/core';
|
|
8
|
-
import { TranslateService } from "@ngx-translate/core";
|
|
9
|
-
import { MessageService } from "primeng/api";
|
|
10
|
-
import { map, catchError } from "rxjs/operators";
|
|
11
|
-
import { throwError } from "rxjs";
|
|
12
|
-
import { FieldType } from '@seniorsistemas/angular-components';
|
|
13
|
-
import * as moment_ from 'moment';
|
|
14
|
-
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
15
|
-
import * as i0 from "@angular/core";
|
|
16
|
-
import * as i1 from "@angular/common/http";
|
|
17
|
-
import * as i2 from "primeng/components/common/messageservice";
|
|
18
|
-
import * as i3 from "@ngx-translate/core";
|
|
19
|
-
/** @type {?} */
|
|
20
|
-
var moment = moment_;
|
|
21
|
-
var LookupParametersService = /** @class */ (function () {
|
|
22
|
-
function LookupParametersService(http, messageService, translateService) {
|
|
23
|
-
this.http = http;
|
|
24
|
-
this.messageService = messageService;
|
|
25
|
-
this.translateService = translateService;
|
|
26
|
-
this._httpParams = new HttpParams();
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @param {?} httpPostParams
|
|
30
|
-
* @param {?} endpoint
|
|
31
|
-
* @param {?=} concatFields
|
|
32
|
-
* @param {?=} lookupDisplayField
|
|
33
|
-
* @return {?}
|
|
34
|
-
*/
|
|
35
|
-
LookupParametersService.prototype.lookupRequestPost = /**
|
|
36
|
-
* @param {?} httpPostParams
|
|
37
|
-
* @param {?} endpoint
|
|
38
|
-
* @param {?=} concatFields
|
|
39
|
-
* @param {?=} lookupDisplayField
|
|
40
|
-
* @return {?}
|
|
41
|
-
*/
|
|
42
|
-
function (httpPostParams, endpoint, concatFields, lookupDisplayField) {
|
|
43
|
-
if (concatFields === void 0) { concatFields = null; }
|
|
44
|
-
this.httpPostParams = httpPostParams;
|
|
45
|
-
this.postConfigPageSize(httpPostParams);
|
|
46
|
-
this.lookupDisplayField = lookupDisplayField;
|
|
47
|
-
this.concatFields = concatFields;
|
|
48
|
-
return this.postDataLookup(endpoint);
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* @param {?} httpPostParams
|
|
52
|
-
* @return {?}
|
|
53
|
-
*/
|
|
54
|
-
LookupParametersService.prototype.postConfigPageSize = /**
|
|
55
|
-
* @param {?} httpPostParams
|
|
56
|
-
* @return {?}
|
|
57
|
-
*/
|
|
58
|
-
function (httpPostParams) {
|
|
59
|
-
if (httpPostParams) {
|
|
60
|
-
this.httpPostParams.page.size = httpPostParams.page && httpPostParams.page.size ? httpPostParams.page.size : 10;
|
|
61
|
-
this.httpPostParams.page.current = httpPostParams.page && httpPostParams.page.current ? httpPostParams.page.current : 0;
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Função chamada no change do autocomplete (Lookup fechado).
|
|
66
|
-
* @param event valor atribuido no autocomplete do lookup fechado
|
|
67
|
-
* @param endpoint endpoint que sera feito a requisição.
|
|
68
|
-
* @param searchLookupFields campos que seram filtrados pelo autocomplete (lookup fechado)
|
|
69
|
-
* @param searchFields array com os campos do filtro
|
|
70
|
-
* @param concatFields array com os formFields que seram concatenados
|
|
71
|
-
* @param concatOtherFields converte os campos enumeração para serem concatenados na grid
|
|
72
|
-
* @param lookupDisplayField campo que sera alterado com os dados concatenados informado acima
|
|
73
|
-
* @param params parâmetros para ser usado no lookup
|
|
74
|
-
*/
|
|
75
|
-
/**
|
|
76
|
-
* Função chamada no change do autocomplete (Lookup fechado).
|
|
77
|
-
* @param {?} event valor atribuido no autocomplete do lookup fechado
|
|
78
|
-
* @param {?} endpoint endpoint que sera feito a requisição.
|
|
79
|
-
* @param {?} searchLookupFields campos que seram filtrados pelo autocomplete (lookup fechado)
|
|
80
|
-
* @param {?} searchFields array com os campos do filtro
|
|
81
|
-
* @param {?} concatFields array com os formFields que seram concatenados
|
|
82
|
-
* @param {?} lookupDisplayField campo que sera alterado com os dados concatenados informado acima
|
|
83
|
-
* @param {?=} concatOtherFields converte os campos enumeração para serem concatenados na grid
|
|
84
|
-
* @param {?=} params parâmetros para ser usado no lookup
|
|
85
|
-
* @return {?}
|
|
86
|
-
*/
|
|
87
|
-
LookupParametersService.prototype.lookupRequest = /**
|
|
88
|
-
* Função chamada no change do autocomplete (Lookup fechado).
|
|
89
|
-
* @param {?} event valor atribuido no autocomplete do lookup fechado
|
|
90
|
-
* @param {?} endpoint endpoint que sera feito a requisição.
|
|
91
|
-
* @param {?} searchLookupFields campos que seram filtrados pelo autocomplete (lookup fechado)
|
|
92
|
-
* @param {?} searchFields array com os campos do filtro
|
|
93
|
-
* @param {?} concatFields array com os formFields que seram concatenados
|
|
94
|
-
* @param {?} lookupDisplayField campo que sera alterado com os dados concatenados informado acima
|
|
95
|
-
* @param {?=} concatOtherFields converte os campos enumeração para serem concatenados na grid
|
|
96
|
-
* @param {?=} params parâmetros para ser usado no lookup
|
|
97
|
-
* @return {?}
|
|
98
|
-
*/
|
|
99
|
-
function (event, endpoint, searchLookupFields, searchFields, concatFields, lookupDisplayField, concatOtherFields, params) {
|
|
100
|
-
if (concatOtherFields === void 0) { concatOtherFields = []; }
|
|
101
|
-
if (params === void 0) { params = []; }
|
|
102
|
-
this.searchLookupFields = searchLookupFields;
|
|
103
|
-
this.endpoint = endpoint;
|
|
104
|
-
this.parameters = params;
|
|
105
|
-
this.concatFields = concatFields;
|
|
106
|
-
this.concatOtherFields = concatOtherFields;
|
|
107
|
-
this.lookupDisplayField = lookupDisplayField;
|
|
108
|
-
this.searchFields = searchFields;
|
|
109
|
-
this.generateLookupParameters(event);
|
|
110
|
-
this.configHttpParamsPagination('10', '0');
|
|
111
|
-
this.configHttpParamsOrderBy(event.multiSortMeta);
|
|
112
|
-
return this.getDataLookup();
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* Função chamada no change do filtro do lookup (Lookup aberto).
|
|
116
|
-
* @param event valor atribuido no autocomplete do lookup fechado
|
|
117
|
-
* @param endpoint endpoint que sera feito a requisição.
|
|
118
|
-
* @param searchFields array com os campos do filtro
|
|
119
|
-
* @param concatFields array com os formFields que seram concatenados
|
|
120
|
-
* @param concatOtherFields converte os campos enumeração para serem concatenados na grid
|
|
121
|
-
* @param lookupDisplayField campo que sera alterado com os dados concatenados informado acima
|
|
122
|
-
* @param params parâmetros para ser usado no lookup
|
|
123
|
-
*/
|
|
124
|
-
/**
|
|
125
|
-
* Função chamada no change do filtro do lookup (Lookup aberto).
|
|
126
|
-
* @param {?} event valor atribuido no autocomplete do lookup fechado
|
|
127
|
-
* @param {?} endpoint endpoint que sera feito a requisição.
|
|
128
|
-
* @param {?} searchFields array com os campos do filtro
|
|
129
|
-
* @param {?} concatFields array com os formFields que seram concatenados
|
|
130
|
-
* @param {?} lookupDisplayField campo que sera alterado com os dados concatenados informado acima
|
|
131
|
-
* @param {?=} concatOtherFields converte os campos enumeração para serem concatenados na grid
|
|
132
|
-
* @param {?=} params parâmetros para ser usado no lookup
|
|
133
|
-
* @return {?}
|
|
134
|
-
*/
|
|
135
|
-
LookupParametersService.prototype.searchRequest = /**
|
|
136
|
-
* Função chamada no change do filtro do lookup (Lookup aberto).
|
|
137
|
-
* @param {?} event valor atribuido no autocomplete do lookup fechado
|
|
138
|
-
* @param {?} endpoint endpoint que sera feito a requisição.
|
|
139
|
-
* @param {?} searchFields array com os campos do filtro
|
|
140
|
-
* @param {?} concatFields array com os formFields que seram concatenados
|
|
141
|
-
* @param {?} lookupDisplayField campo que sera alterado com os dados concatenados informado acima
|
|
142
|
-
* @param {?=} concatOtherFields converte os campos enumeração para serem concatenados na grid
|
|
143
|
-
* @param {?=} params parâmetros para ser usado no lookup
|
|
144
|
-
* @return {?}
|
|
145
|
-
*/
|
|
146
|
-
function (event, endpoint, searchFields, concatFields, lookupDisplayField, concatOtherFields, params) {
|
|
147
|
-
if (concatOtherFields === void 0) { concatOtherFields = []; }
|
|
148
|
-
if (params === void 0) { params = []; }
|
|
149
|
-
this.endpoint = endpoint;
|
|
150
|
-
this.parameters = params;
|
|
151
|
-
this.concatFields = concatFields;
|
|
152
|
-
this.concatOtherFields = concatOtherFields;
|
|
153
|
-
this.lookupDisplayField = lookupDisplayField;
|
|
154
|
-
this.searchFields = searchFields;
|
|
155
|
-
this.generateGridParameters(event.filterData);
|
|
156
|
-
this.configHttpParamsPagination(event.rows.toString(), Math.floor(event.first / event.rows).toString());
|
|
157
|
-
this.configHttpParamsOrderBy(event.multiSortMeta);
|
|
158
|
-
return this.getDataLookup();
|
|
159
|
-
};
|
|
160
|
-
/**
|
|
161
|
-
* GET
|
|
162
|
-
* @param endpoint Busca e faz o tratamento dos dados do lookup.
|
|
163
|
-
* @param httpParams HttpParams
|
|
164
|
-
*/
|
|
165
|
-
/**
|
|
166
|
-
* GET
|
|
167
|
-
* @private
|
|
168
|
-
* @return {?}
|
|
169
|
-
*/
|
|
170
|
-
LookupParametersService.prototype.getDataLookup = /**
|
|
171
|
-
* GET
|
|
172
|
-
* @private
|
|
173
|
-
* @return {?}
|
|
174
|
-
*/
|
|
175
|
-
function () {
|
|
176
|
-
var _this = this;
|
|
177
|
-
return this.getUrlDataLookup(this.endpoint, this.httpParams).pipe(map((/**
|
|
178
|
-
* @param {?} payload
|
|
179
|
-
* @return {?}
|
|
180
|
-
*/
|
|
181
|
-
function (payload) {
|
|
182
|
-
var contents = payload.contents;
|
|
183
|
-
if (_this.concatFields && _this.concatFields.length) {
|
|
184
|
-
contents.map((/**
|
|
185
|
-
* @param {?} value
|
|
186
|
-
* @return {?}
|
|
187
|
-
*/
|
|
188
|
-
function (value) {
|
|
189
|
-
_this.convertGridFieldValue(value);
|
|
190
|
-
value[_this.lookupDisplayField] = _this.generateDisplayFieldValue(tslib_1.__assign({}, value));
|
|
191
|
-
}));
|
|
192
|
-
}
|
|
193
|
-
return payload;
|
|
194
|
-
})));
|
|
195
|
-
};
|
|
196
|
-
/**
|
|
197
|
-
* POST
|
|
198
|
-
* @param endpoint Busca e faz o tratamento dos dados do lookup.
|
|
199
|
-
* @param httpParams HttpParams
|
|
200
|
-
*/
|
|
201
|
-
/**
|
|
202
|
-
* POST
|
|
203
|
-
* @private
|
|
204
|
-
* @param {?} endpoint Busca e faz o tratamento dos dados do lookup.
|
|
205
|
-
* @return {?}
|
|
206
|
-
*/
|
|
207
|
-
LookupParametersService.prototype.postDataLookup = /**
|
|
208
|
-
* POST
|
|
209
|
-
* @private
|
|
210
|
-
* @param {?} endpoint Busca e faz o tratamento dos dados do lookup.
|
|
211
|
-
* @return {?}
|
|
212
|
-
*/
|
|
213
|
-
function (endpoint) {
|
|
214
|
-
var _this = this;
|
|
215
|
-
return this.postUrlDataLookup(endpoint, this.httpPostParams).pipe(map((/**
|
|
216
|
-
* @param {?} payload
|
|
217
|
-
* @return {?}
|
|
218
|
-
*/
|
|
219
|
-
function (payload) {
|
|
220
|
-
var contents = payload.contents;
|
|
221
|
-
if (_this.concatFields && _this.concatFields.length) {
|
|
222
|
-
contents.map((/**
|
|
223
|
-
* @param {?} value
|
|
224
|
-
* @return {?}
|
|
225
|
-
*/
|
|
226
|
-
function (value) {
|
|
227
|
-
if (_this.concatOtherFields) {
|
|
228
|
-
_this.convertGridFieldValue(value);
|
|
229
|
-
}
|
|
230
|
-
value[_this.lookupDisplayField] = _this.generateDisplayFieldValue(tslib_1.__assign({}, value));
|
|
231
|
-
}));
|
|
232
|
-
}
|
|
233
|
-
return payload;
|
|
234
|
-
})));
|
|
235
|
-
};
|
|
236
|
-
/**
|
|
237
|
-
* Converte o valor do campo para apresentação no lookup.
|
|
238
|
-
*
|
|
239
|
-
* @param content Valor do campo para conversão.
|
|
240
|
-
* @param field FormField do campo.
|
|
241
|
-
*/
|
|
242
|
-
/**
|
|
243
|
-
* Converte o valor do campo para apresentação no lookup.
|
|
244
|
-
*
|
|
245
|
-
* @private
|
|
246
|
-
* @param {?} content Valor do campo para conversão.
|
|
247
|
-
* @param {?} field FormField do campo.
|
|
248
|
-
* @return {?}
|
|
249
|
-
*/
|
|
250
|
-
LookupParametersService.prototype.convertLookupFieldValue = /**
|
|
251
|
-
* Converte o valor do campo para apresentação no lookup.
|
|
252
|
-
*
|
|
253
|
-
* @private
|
|
254
|
-
* @param {?} content Valor do campo para conversão.
|
|
255
|
-
* @param {?} field FormField do campo.
|
|
256
|
-
* @return {?}
|
|
257
|
-
*/
|
|
258
|
-
function (content, field) {
|
|
259
|
-
if (content) {
|
|
260
|
-
switch (field.type) {
|
|
261
|
-
case FieldType.Date:
|
|
262
|
-
content = moment(content).format('L');
|
|
263
|
-
break;
|
|
264
|
-
case FieldType.Enum:
|
|
265
|
-
/** @type {?} */
|
|
266
|
-
var enumValue = field.options.filter((/**
|
|
267
|
-
* @param {?} enumeration
|
|
268
|
-
* @return {?}
|
|
269
|
-
*/
|
|
270
|
-
function (enumeration) { return enumeration.value === content; }))[0];
|
|
271
|
-
content = enumValue ? enumValue.label : content;
|
|
272
|
-
break;
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return content;
|
|
276
|
-
};
|
|
277
|
-
/**
|
|
278
|
-
* Converte os dados para visualização na grid
|
|
279
|
-
* @param content
|
|
280
|
-
*/
|
|
281
|
-
/**
|
|
282
|
-
* Converte os dados para visualização na grid
|
|
283
|
-
* @private
|
|
284
|
-
* @param {?} content
|
|
285
|
-
* @return {?}
|
|
286
|
-
*/
|
|
287
|
-
LookupParametersService.prototype.convertGridFieldValue = /**
|
|
288
|
-
* Converte os dados para visualização na grid
|
|
289
|
-
* @private
|
|
290
|
-
* @param {?} content
|
|
291
|
-
* @return {?}
|
|
292
|
-
*/
|
|
293
|
-
function (content) {
|
|
294
|
-
if (content) {
|
|
295
|
-
this.concatOtherFields.forEach((/**
|
|
296
|
-
* @param {?} field
|
|
297
|
-
* @return {?}
|
|
298
|
-
*/
|
|
299
|
-
function (field) {
|
|
300
|
-
switch (field.type) {
|
|
301
|
-
case FieldType.Enum:
|
|
302
|
-
/** @type {?} */
|
|
303
|
-
var enumValue = field.options.filter((/**
|
|
304
|
-
* @param {?} enumeration
|
|
305
|
-
* @return {?}
|
|
306
|
-
*/
|
|
307
|
-
function (enumeration) { return enumeration.value === content[field.name]; }))[0];
|
|
308
|
-
content[field.name] = enumValue ? enumValue.label : content[field.name];
|
|
309
|
-
break;
|
|
310
|
-
}
|
|
311
|
-
}));
|
|
312
|
-
}
|
|
313
|
-
};
|
|
314
|
-
/**
|
|
315
|
-
* Faz a concatenação de valores do registro para ser apresentado no lookup ao selecionar o dado.
|
|
316
|
-
* @param contentValue Valor do registro.
|
|
317
|
-
*/
|
|
318
|
-
/**
|
|
319
|
-
* Faz a concatenação de valores do registro para ser apresentado no lookup ao selecionar o dado.
|
|
320
|
-
* @private
|
|
321
|
-
* @param {?} contentValue Valor do registro.
|
|
322
|
-
* @return {?}
|
|
323
|
-
*/
|
|
324
|
-
LookupParametersService.prototype.generateDisplayFieldValue = /**
|
|
325
|
-
* Faz a concatenação de valores do registro para ser apresentado no lookup ao selecionar o dado.
|
|
326
|
-
* @private
|
|
327
|
-
* @param {?} contentValue Valor do registro.
|
|
328
|
-
* @return {?}
|
|
329
|
-
*/
|
|
330
|
-
function (contentValue) {
|
|
331
|
-
var _this = this;
|
|
332
|
-
/** @type {?} */
|
|
333
|
-
var displayField = '';
|
|
334
|
-
this.concatFields.forEach((/**
|
|
335
|
-
* @param {?} field
|
|
336
|
-
* @return {?}
|
|
337
|
-
*/
|
|
338
|
-
function (field) {
|
|
339
|
-
/** @type {?} */
|
|
340
|
-
var fieldValue = _this.convertLookupFieldValue(contentValue[field.name], field);
|
|
341
|
-
if (fieldValue) {
|
|
342
|
-
if (displayField) {
|
|
343
|
-
displayField += " - " + fieldValue;
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
displayField = fieldValue;
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
}));
|
|
350
|
-
return displayField;
|
|
351
|
-
};
|
|
352
|
-
/**
|
|
353
|
-
* Gera os parametros de pesquisa via lookup
|
|
354
|
-
* @param value
|
|
355
|
-
*/
|
|
356
|
-
/**
|
|
357
|
-
* Gera os parametros de pesquisa via lookup
|
|
358
|
-
* @private
|
|
359
|
-
* @param {?=} value
|
|
360
|
-
* @return {?}
|
|
361
|
-
*/
|
|
362
|
-
LookupParametersService.prototype.generateLookupParameters = /**
|
|
363
|
-
* Gera os parametros de pesquisa via lookup
|
|
364
|
-
* @private
|
|
365
|
-
* @param {?=} value
|
|
366
|
-
* @return {?}
|
|
367
|
-
*/
|
|
368
|
-
function (value) {
|
|
369
|
-
var _this = this;
|
|
370
|
-
/** @type {?} */
|
|
371
|
-
var lookupParameters = '';
|
|
372
|
-
this.searchLookupFields.forEach((/**
|
|
373
|
-
* @param {?} lookupField
|
|
374
|
-
* @return {?}
|
|
375
|
-
*/
|
|
376
|
-
function (lookupField) {
|
|
377
|
-
/** @type {?} */
|
|
378
|
-
var searchField = _this.searchFields.filter((/**
|
|
379
|
-
* @param {?} field
|
|
380
|
-
* @return {?}
|
|
381
|
-
*/
|
|
382
|
-
function (field) { return lookupField === field.name; }))[0];
|
|
383
|
-
if (lookupParameters) {
|
|
384
|
-
lookupParameters += " or " + _this.getParameterByType(searchField.type, lookupField, value);
|
|
385
|
-
}
|
|
386
|
-
else {
|
|
387
|
-
lookupParameters = "" + _this.getParameterByType(searchField.type, lookupField, value);
|
|
388
|
-
}
|
|
389
|
-
}));
|
|
390
|
-
this.parameters.forEach((/**
|
|
391
|
-
* @param {?} parameter
|
|
392
|
-
* @return {?}
|
|
393
|
-
*/
|
|
394
|
-
function (parameter) {
|
|
395
|
-
if (lookupParameters) {
|
|
396
|
-
lookupParameters += " and " + parameter.toString();
|
|
397
|
-
}
|
|
398
|
-
else {
|
|
399
|
-
lookupParameters = "" + parameter.toString();
|
|
400
|
-
}
|
|
401
|
-
}));
|
|
402
|
-
this.httpParams = new HttpParams().set('filter', lookupParameters);
|
|
403
|
-
};
|
|
404
|
-
/**
|
|
405
|
-
* Gera os parametros de pesquisa via pesquisa na grid
|
|
406
|
-
* @param filterData
|
|
407
|
-
*/
|
|
408
|
-
/**
|
|
409
|
-
* Gera os parametros de pesquisa via pesquisa na grid
|
|
410
|
-
* @private
|
|
411
|
-
* @param {?} filterData
|
|
412
|
-
* @return {?}
|
|
413
|
-
*/
|
|
414
|
-
LookupParametersService.prototype.generateGridParameters = /**
|
|
415
|
-
* Gera os parametros de pesquisa via pesquisa na grid
|
|
416
|
-
* @private
|
|
417
|
-
* @param {?} filterData
|
|
418
|
-
* @return {?}
|
|
419
|
-
*/
|
|
420
|
-
function (filterData) {
|
|
421
|
-
var _this = this;
|
|
422
|
-
/** @type {?} */
|
|
423
|
-
var gridParameters = '';
|
|
424
|
-
Object.keys(filterData).forEach((/**
|
|
425
|
-
* @param {?} attribute
|
|
426
|
-
* @return {?}
|
|
427
|
-
*/
|
|
428
|
-
function (attribute) {
|
|
429
|
-
if (filterData[attribute]) {
|
|
430
|
-
/** @type {?} */
|
|
431
|
-
var searchField = _this.searchFields.filter((/**
|
|
432
|
-
* @param {?} field
|
|
433
|
-
* @return {?}
|
|
434
|
-
*/
|
|
435
|
-
function (field) { return attribute === field.name; }))[0];
|
|
436
|
-
if (gridParameters) {
|
|
437
|
-
gridParameters += " and " + _this.getParameterByType(searchField.type, attribute, filterData[attribute]);
|
|
438
|
-
}
|
|
439
|
-
else {
|
|
440
|
-
gridParameters += _this.getParameterByType(searchField.type, attribute, filterData[attribute]);
|
|
441
|
-
}
|
|
442
|
-
}
|
|
443
|
-
}));
|
|
444
|
-
this.parameters.forEach((/**
|
|
445
|
-
* @param {?} parameter
|
|
446
|
-
* @return {?}
|
|
447
|
-
*/
|
|
448
|
-
function (parameter) {
|
|
449
|
-
if (gridParameters) {
|
|
450
|
-
gridParameters += " and " + parameter.toString();
|
|
451
|
-
}
|
|
452
|
-
else {
|
|
453
|
-
gridParameters = "" + parameter.toString();
|
|
454
|
-
}
|
|
455
|
-
}));
|
|
456
|
-
this.httpParams = new HttpParams().set('filter', gridParameters);
|
|
457
|
-
};
|
|
458
|
-
/**
|
|
459
|
-
* Gera a string de consulta CRUD de um campo.
|
|
460
|
-
* @param type Tipo do campo.
|
|
461
|
-
* @param attribute Nome do atribute da entidade
|
|
462
|
-
* @param value Valor do campo
|
|
463
|
-
*/
|
|
464
|
-
/**
|
|
465
|
-
* Gera a string de consulta CRUD de um campo.
|
|
466
|
-
* @private
|
|
467
|
-
* @param {?} type Tipo do campo.
|
|
468
|
-
* @param {?} attribute Nome do atribute da entidade
|
|
469
|
-
* @param {?} value Valor do campo
|
|
470
|
-
* @return {?}
|
|
471
|
-
*/
|
|
472
|
-
LookupParametersService.prototype.getParameterByType = /**
|
|
473
|
-
* Gera a string de consulta CRUD de um campo.
|
|
474
|
-
* @private
|
|
475
|
-
* @param {?} type Tipo do campo.
|
|
476
|
-
* @param {?} attribute Nome do atribute da entidade
|
|
477
|
-
* @param {?} value Valor do campo
|
|
478
|
-
* @return {?}
|
|
479
|
-
*/
|
|
480
|
-
function (type, attribute, value) {
|
|
481
|
-
switch (type) {
|
|
482
|
-
case FieldType.Date:
|
|
483
|
-
return attribute + " eq '" + moment(value).format('YYYY-MM-DD') + "'";
|
|
484
|
-
case FieldType.Enum:
|
|
485
|
-
return attribute + " eq '" + value + "'";
|
|
486
|
-
case FieldType.Integer:
|
|
487
|
-
return attribute + " eq " + value;
|
|
488
|
-
case FieldType.Autocomplete:
|
|
489
|
-
return attribute + " eq '" + value.id + "'";
|
|
490
|
-
default:
|
|
491
|
-
return "containing(lower(" + attribute + "), lower('" + value + "'))";
|
|
492
|
-
}
|
|
493
|
-
};
|
|
494
|
-
/**
|
|
495
|
-
*
|
|
496
|
-
* @param size a quantidade de registros na página.
|
|
497
|
-
* @param offset o número da página a ser recuperada, lembrando que a numeração de páginas começa em 0 (zero).
|
|
498
|
-
*/
|
|
499
|
-
/**
|
|
500
|
-
*
|
|
501
|
-
* @private
|
|
502
|
-
* @param {?} size a quantidade de registros na página.
|
|
503
|
-
* @param {?} offset o número da página a ser recuperada, lembrando que a numeração de páginas começa em 0 (zero).
|
|
504
|
-
* @return {?}
|
|
505
|
-
*/
|
|
506
|
-
LookupParametersService.prototype.configHttpParamsPagination = /**
|
|
507
|
-
*
|
|
508
|
-
* @private
|
|
509
|
-
* @param {?} size a quantidade de registros na página.
|
|
510
|
-
* @param {?} offset o número da página a ser recuperada, lembrando que a numeração de páginas começa em 0 (zero).
|
|
511
|
-
* @return {?}
|
|
512
|
-
*/
|
|
513
|
-
function (size, offset) {
|
|
514
|
-
this.httpParams = this.httpParams.set('size', size);
|
|
515
|
-
this.httpParams = this.httpParams.set('offset', offset);
|
|
516
|
-
};
|
|
517
|
-
/**
|
|
518
|
-
* Gera o orderby do HttpParams
|
|
519
|
-
*/
|
|
520
|
-
/**
|
|
521
|
-
* Gera o orderby do HttpParams
|
|
522
|
-
* @private
|
|
523
|
-
* @param {?} multiSortMeta
|
|
524
|
-
* @return {?}
|
|
525
|
-
*/
|
|
526
|
-
LookupParametersService.prototype.configHttpParamsOrderBy = /**
|
|
527
|
-
* Gera o orderby do HttpParams
|
|
528
|
-
* @private
|
|
529
|
-
* @param {?} multiSortMeta
|
|
530
|
-
* @return {?}
|
|
531
|
-
*/
|
|
532
|
-
function (multiSortMeta) {
|
|
533
|
-
if (multiSortMeta && multiSortMeta.length) {
|
|
534
|
-
/** @type {?} */
|
|
535
|
-
var orderBy_1 = '';
|
|
536
|
-
multiSortMeta.map((/**
|
|
537
|
-
* @param {?} value
|
|
538
|
-
* @return {?}
|
|
539
|
-
*/
|
|
540
|
-
function (value) {
|
|
541
|
-
if (orderBy_1) {
|
|
542
|
-
orderBy_1 += "," + value.field + "+" + (value.order === 1 ? 'asc' : 'desc');
|
|
543
|
-
}
|
|
544
|
-
else {
|
|
545
|
-
orderBy_1 += value.field + "+" + (value.order === 1 ? 'asc' : 'desc');
|
|
546
|
-
}
|
|
547
|
-
}));
|
|
548
|
-
this.httpParams = this.httpParams.set('orderby', orderBy_1);
|
|
549
|
-
}
|
|
550
|
-
};
|
|
551
|
-
Object.defineProperty(LookupParametersService.prototype, "httpParams", {
|
|
552
|
-
get: /**
|
|
553
|
-
* @return {?}
|
|
554
|
-
*/
|
|
555
|
-
function () {
|
|
556
|
-
return this._httpParams;
|
|
557
|
-
},
|
|
558
|
-
set: /**
|
|
559
|
-
* @param {?} value
|
|
560
|
-
* @return {?}
|
|
561
|
-
*/
|
|
562
|
-
function (value) {
|
|
563
|
-
this._httpParams = value;
|
|
564
|
-
},
|
|
565
|
-
enumerable: true,
|
|
566
|
-
configurable: true
|
|
567
|
-
});
|
|
568
|
-
/**
|
|
569
|
-
* @private
|
|
570
|
-
* @param {?} endpoint
|
|
571
|
-
* @param {?} httpParams
|
|
572
|
-
* @return {?}
|
|
573
|
-
*/
|
|
574
|
-
LookupParametersService.prototype.getUrlDataLookup = /**
|
|
575
|
-
* @private
|
|
576
|
-
* @param {?} endpoint
|
|
577
|
-
* @param {?} httpParams
|
|
578
|
-
* @return {?}
|
|
579
|
-
*/
|
|
580
|
-
function (endpoint, httpParams) {
|
|
581
|
-
var _this = this;
|
|
582
|
-
if (httpParams) {
|
|
583
|
-
return this.http.get("" + endpoint, { params: httpParams })
|
|
584
|
-
.pipe(catchError((/**
|
|
585
|
-
* @param {?} exception
|
|
586
|
-
* @return {?}
|
|
587
|
-
*/
|
|
588
|
-
function (exception) {
|
|
589
|
-
if (exception && exception.status === 403)
|
|
590
|
-
_this.messageService.add({
|
|
591
|
-
severity: 'error',
|
|
592
|
-
summary: _this.translateService.instant('hcm.payroll.error'),
|
|
593
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed_search"),
|
|
594
|
-
sticky: true,
|
|
595
|
-
});
|
|
596
|
-
return throwError(exception);
|
|
597
|
-
})));
|
|
598
|
-
}
|
|
599
|
-
else {
|
|
600
|
-
return this.http.get("" + endpoint)
|
|
601
|
-
.pipe(catchError((/**
|
|
602
|
-
* @param {?} exception
|
|
603
|
-
* @return {?}
|
|
604
|
-
*/
|
|
605
|
-
function (exception) {
|
|
606
|
-
if (exception && exception.status === 403)
|
|
607
|
-
_this.messageService.add({
|
|
608
|
-
severity: 'error',
|
|
609
|
-
summary: _this.translateService.instant('hcm.payroll.error'),
|
|
610
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed_search"),
|
|
611
|
-
sticky: true,
|
|
612
|
-
});
|
|
613
|
-
return throwError(exception);
|
|
614
|
-
})));
|
|
615
|
-
}
|
|
616
|
-
};
|
|
617
|
-
/**
|
|
618
|
-
* @private
|
|
619
|
-
* @param {?} endpoint
|
|
620
|
-
* @param {?} httpParams
|
|
621
|
-
* @return {?}
|
|
622
|
-
*/
|
|
623
|
-
LookupParametersService.prototype.postUrlDataLookup = /**
|
|
624
|
-
* @private
|
|
625
|
-
* @param {?} endpoint
|
|
626
|
-
* @param {?} httpParams
|
|
627
|
-
* @return {?}
|
|
628
|
-
*/
|
|
629
|
-
function (endpoint, httpParams) {
|
|
630
|
-
var _this = this;
|
|
631
|
-
if (httpParams) {
|
|
632
|
-
return this.http.post("" + endpoint, tslib_1.__assign({}, httpParams))
|
|
633
|
-
.pipe(catchError((/**
|
|
634
|
-
* @param {?} exception
|
|
635
|
-
* @return {?}
|
|
636
|
-
*/
|
|
637
|
-
function (exception) {
|
|
638
|
-
if (exception.status === 403)
|
|
639
|
-
_this.messageService.add({
|
|
640
|
-
severity: 'error',
|
|
641
|
-
summary: _this.translateService.instant('hcm.payroll.error'),
|
|
642
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
643
|
-
sticky: true,
|
|
644
|
-
});
|
|
645
|
-
return throwError(exception);
|
|
646
|
-
})));
|
|
647
|
-
}
|
|
648
|
-
else {
|
|
649
|
-
return this.http.post("" + endpoint, {})
|
|
650
|
-
.pipe(catchError((/**
|
|
651
|
-
* @param {?} exception
|
|
652
|
-
* @return {?}
|
|
653
|
-
*/
|
|
654
|
-
function (exception) {
|
|
655
|
-
if (exception.status === 403)
|
|
656
|
-
_this.messageService.add({
|
|
657
|
-
severity: 'error',
|
|
658
|
-
summary: _this.translateService.instant('hcm.payroll.error'),
|
|
659
|
-
detail: _this.translateService.instant("hcm.payroll.permission_error_not_allowed"),
|
|
660
|
-
sticky: true,
|
|
661
|
-
});
|
|
662
|
-
return throwError(exception);
|
|
663
|
-
})));
|
|
664
|
-
}
|
|
665
|
-
};
|
|
666
|
-
LookupParametersService.decorators = [
|
|
667
|
-
{ type: Injectable, args: [{
|
|
668
|
-
providedIn: 'root',
|
|
669
|
-
},] }
|
|
670
|
-
];
|
|
671
|
-
/** @nocollapse */
|
|
672
|
-
LookupParametersService.ctorParameters = function () { return [
|
|
673
|
-
{ type: HttpClient },
|
|
674
|
-
{ type: MessageService },
|
|
675
|
-
{ type: TranslateService }
|
|
676
|
-
]; };
|
|
677
|
-
/** @nocollapse */ LookupParametersService.ngInjectableDef = i0.ɵɵdefineInjectable({ factory: function LookupParametersService_Factory() { return new LookupParametersService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(i2.MessageService), i0.ɵɵinject(i3.TranslateService)); }, token: LookupParametersService, providedIn: "root" });
|
|
678
|
-
return LookupParametersService;
|
|
679
|
-
}());
|
|
680
|
-
export { LookupParametersService };
|
|
681
|
-
if (false) {
|
|
682
|
-
/**
|
|
683
|
-
* @type {?}
|
|
684
|
-
* @private
|
|
685
|
-
*/
|
|
686
|
-
LookupParametersService.prototype.searchLookupFields;
|
|
687
|
-
/**
|
|
688
|
-
* @type {?}
|
|
689
|
-
* @private
|
|
690
|
-
*/
|
|
691
|
-
LookupParametersService.prototype.endpoint;
|
|
692
|
-
/**
|
|
693
|
-
* @type {?}
|
|
694
|
-
* @private
|
|
695
|
-
*/
|
|
696
|
-
LookupParametersService.prototype.parameters;
|
|
697
|
-
/**
|
|
698
|
-
* @type {?}
|
|
699
|
-
* @private
|
|
700
|
-
*/
|
|
701
|
-
LookupParametersService.prototype.concatFields;
|
|
702
|
-
/**
|
|
703
|
-
* @type {?}
|
|
704
|
-
* @private
|
|
705
|
-
*/
|
|
706
|
-
LookupParametersService.prototype.concatOtherFields;
|
|
707
|
-
/**
|
|
708
|
-
* @type {?}
|
|
709
|
-
* @private
|
|
710
|
-
*/
|
|
711
|
-
LookupParametersService.prototype.lookupDisplayField;
|
|
712
|
-
/**
|
|
713
|
-
* @type {?}
|
|
714
|
-
* @private
|
|
715
|
-
*/
|
|
716
|
-
LookupParametersService.prototype.searchFields;
|
|
717
|
-
/**
|
|
718
|
-
* @type {?}
|
|
719
|
-
* @private
|
|
720
|
-
*/
|
|
721
|
-
LookupParametersService.prototype.httpPostParams;
|
|
722
|
-
/**
|
|
723
|
-
* @type {?}
|
|
724
|
-
* @private
|
|
725
|
-
*/
|
|
726
|
-
LookupParametersService.prototype.page;
|
|
727
|
-
/**
|
|
728
|
-
* @type {?}
|
|
729
|
-
* @private
|
|
730
|
-
*/
|
|
731
|
-
LookupParametersService.prototype._httpParams;
|
|
732
|
-
/**
|
|
733
|
-
* @type {?}
|
|
734
|
-
* @private
|
|
735
|
-
*/
|
|
736
|
-
LookupParametersService.prototype.http;
|
|
737
|
-
/**
|
|
738
|
-
* @type {?}
|
|
739
|
-
* @private
|
|
740
|
-
*/
|
|
741
|
-
LookupParametersService.prototype.messageService;
|
|
742
|
-
/**
|
|
743
|
-
* @type {?}
|
|
744
|
-
* @private
|
|
745
|
-
*/
|
|
746
|
-
LookupParametersService.prototype.translateService;
|
|
747
|
-
}
|
|
748
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9va3VwLXBhcmFtZXRlcnMuc2VydmljZS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzZW5pb3ItZ2VzdGFvLXBlc3NvYXMvcGF5cm9sbC1jb3JlLyIsInNvdXJjZXMiOlsibGliL3NlcnZpY2VzL2xvb2t1cC1wYXJhbWV0ZXJzLnNlcnZpY2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUMzQyxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxxQkFBcUIsQ0FBQztBQUN2RCxPQUFPLEVBQUUsY0FBYyxFQUFFLE1BQU0sYUFBYSxDQUFDO0FBQzdDLE9BQU8sRUFBRSxHQUFHLEVBQUUsVUFBVSxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFDakQsT0FBTyxFQUFjLFVBQVUsRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUU5QyxPQUFPLEVBQUUsU0FBUyxFQUFhLE1BQU0sb0NBQW9DLENBQUM7QUFDMUUsT0FBTyxLQUFLLE9BQU8sTUFBTSxRQUFRLENBQUM7QUFDbEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxVQUFVLEVBQUUsTUFBTSxzQkFBc0IsQ0FB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YXAoKHBheWxvYWQ6IGFueSkgPT4ge1xuICAgICAgICAgICAgICAgIGNvbnN0IHsgY29udGVudHMgfSA9IHBheWxvYWQ7XG5cbiAgICAgICAgICAgICAgICBpZiAodGhpcy5jb25jYXRGaWVsZHMgJiYgdGhpcy5jb25jYXRGaWVsZHMubGVuZ3RoKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbnRlbnRzLm1hcCh2YWx1ZSA9PiB7XG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAodGhpcy5jb25jYXRPdGhlckZpZWxkcykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMuY29udmVydEdyaWRGaWVsZFZhbHVlKHZhbHVlKTtcbiAgICAgICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgICAgIHZhbHVlW3RoaXMubG9va3VwRGlzcGxheUZpZWxkXSA9IHRoaXMuZ2VuZXJhdGVEaXNwbGF5RmllbGRWYWx1ZSh7IC4uLnZhbHVlIH0pO1xuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG5cbiAgICAgICAgICAgICAgICByZXR1cm4gcGF5bG9hZDtcbiAgICAgICAgICAgIH0pLFxuICAgICAgICApO1xuICAgIH1cblxuICAgIC8qKlxuICAgICAqIENvbnZlcnRlIG8gdmFsb3IgZG8gY2FtcG8gcGFyYSBhcHJlc2VudGHDp8OjbyBubyBsb29rdXAuXG4gICAgICpcbiAgICAgKiBAcGFyYW0gY29udGVudCBWYWxvciBkbyBjYW1wbyBwYXJhIGNvbnZlcnPDo28uXG4gICAgICogQHBhcmFtIGZpZWxkIEZvcm1GaWVsZCBkbyBjYW1wby5cbiAgICAgKi9cbiAgICBwcml2YXRlIGNvbnZlcnRMb29rdXBGaWVsZFZhbHVlKGNvbnRlbnQ6IGFueSwgZmllbGQ6IEZvcm1GaWVsZCk6IGFueSB7XG4gICAgICAgIGlmIChjb250ZW50KSB7XG4gICAgICAgICAgICBzd2l0Y2ggKGZpZWxkLnR5cGUpIHtcbiAgICAgICAgICAgICAgICBjYXNlIEZpZWxkVHlwZS5EYXRlOlxuICAgICAgICAgICAgICAgICAgICBjb250ZW50ID0gbW9tZW50KGNvbnRlbnQpLmZvcm1hdCgnTCcpO1xuICAgICAgICAgICAgICAgICAgICBicmVhaztcbiAgICAgICAgICAgICAgICBjYXNlIEZpZWxkVHlwZS5FbnVtOlxuICAgICAgICAgICAgICAgICAgICBjb25zdCBlbnVtVmFsdWUgPSBmaWVsZC5vcHRpb25zLmZpbHRlcigoZW51bWVyYXRpb246IGFueSkgPT4gZW51bWVyYXRpb24udmFsdWUgPT09IGNvbnRlbnQpWzBdO1xuICAgICAgICAgICAgICAgICAgICBjb250ZW50ID0gZW51bVZhbHVlID8gZW51bVZhbHVlLmxhYmVsIDogY29udGVudDtcbiAgICAgICAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4gY29udGVudDtcbiAgICB9XG5cbiAgICAvKipcbiAgICAgKiBDb252ZXJ0ZSBvcyBkYWRvcyBwYXJhIHZpc3VhbGl6YcOnw6NvIG5hIGdyaWRcbiAgICAgKiBAcGFyYW0gY29udGVudFxuICAgICAqL1xuICAgIHByaXZhdGUgY29udmVydEdyaWRGaWVsZFZhbHVlKGNvbnRlbnQ6IGFueSk6IHZvaWQge1xuICAgICAgICBpZiAoY29udGVudCkge1xuICAgICAgICAgICAgdGhpcy5jb25jYXRPdGhlckZpZWxkcy5mb3JFYWNoKChmaWVsZDogRm9ybUZpZWxkKSA9PiB7XG4gICAgICAgICAgICAgICAgc3dpdGNoIChmaWVsZC50eXBlKSB7XG4gICAgICAgICAgICAgICAgICAgIGNhc2UgRmllbGRUeXBlLkVudW06XG4gICAgICAgICAgICAgICAgICAgICAgICBjb25zdCBlbnVtVmFsdWUgPSBmaWVsZC5vcHRpb25zLmZpbHRlcigoZW51bWVyYXRpb246IGFueSkgPT4gZW51bWVyYXR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cbiAgICB9XG5cbiAgICBzZXQgaHR0cFBhcmFtcyh2YWx1ZTogSHR0cFBhcmFtcykge1xuICAgICAgICB0aGlzLl9odHRwUGFyYW1zID0gdmFsdWU7XG4gICAgfVxuXG4gICAgZ2V0IGh0dHBQYXJhbXMoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLl9odHRwUGFyYW1zO1xuICAgIH1cblxuICAgIHByaXZhdGUgZ2V0VXJsRGF0YUxvb2t1cChlbmRwb2ludDogc3RyaW5nLCBodHRwUGFyYW1zOiBIdHRwUGFyYW1zKTogT2JzZXJ2YWJsZTxhbnk+IHtcbiAgICAgICAgaWYgKGh0dHBQYXJhbXMpIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmh0dHAuZ2V0KGAke2VuZHBvaW50fWAsIHsgcGFyYW1zOiBodHRwUGFyYW1zIH0pXG4gICAgICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgIGNhdGNoRXJyb3IoKGV4Y2VwdGlvbjogYW55KTogYW55ID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChleGNlcHRpb24gJiYgZXhjZXB0aW9uLnN0YXR1cyA9PT0gNDAzKVxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIHRoaXMubWVzc2FnZVNlcnZpY2UuYWRkKHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc2V2ZXJpdHk6ICdlcnJvcicsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN1bW1hcnk6IHRoaXMudHJhbnNsYXRlU2VydmljZS5pbnN0YW50KCdoY20ucGF5cm9sbC5lcnJvcicpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBkZXRhaWw6IHRoaXMudHJhbnNsYXRlU2VydmljZS5pbnN0YW50KFwiaGNtLnBheXJvbGwucGVybWlzc2lvbl9lcnJvcl9ub3RfYWxsb3dlZF9zZWFyY2hcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0aWNreTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRocm93RXJyb3IoZXhjZXB0aW9uKTtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMuaHR0cC5nZXQoYCR7ZW5kcG9pbnR9YClcbiAgICAgICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICAgICAgY2F0Y2hFcnJvcigoZXhjZXB0aW9uOiBhbnkpOiBhbnkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGV4Y2VwdGlvbiAmJiBleGNlcHRpb24uc3RhdHVzID09PSA0MDMpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tZXNzYWdlU2VydmljZS5hZGQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXZlcml0eTogJ2Vycm9yJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VtbWFyeTogdGhpcy50cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoJ2hjbS5wYXlyb2xsLmVycm9yJyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldGFpbDogdGhpcy50cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoXCJoY20ucGF5cm9sbC5wZXJtaXNzaW9uX2Vycm9yX25vdF9hbGxvd2VkX3NlYXJjaFwiKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3RpY2t5OiB0cnVlLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhyb3dFcnJvcihleGNlcHRpb24pO1xuICAgICAgICAgICAgICAgICAgICB9KVxuICAgICAgICAgICAgICAgICk7XG4gICAgICAgIH1cbiAgICB9XG5cbiAgICBwcml2YXRlIHBvc3RVcmxEYXRhTG9va3VwKGVuZHBvaW50OiBzdHJpbmcsIGh0dHBQYXJhbXM6IGFueSk6IE9ic2VydmFibGU8YW55PiB7XG4gICAgICAgIGlmIChodHRwUGFyYW1zKSB7XG4gICAgICAgICAgICByZXR1cm4gdGhpcy5odHRwLnBvc3QoYCR7ZW5kcG9pbnR9YCwgeyAuLi5odHRwUGFyYW1zIH0pXG4gICAgICAgICAgICAgICAgLnBpcGUoXG4gICAgICAgICAgICAgICAgICAgIGNhdGNoRXJyb3IoKGV4Y2VwdGlvbjogYW55KTogYW55ID0+IHtcbiAgICAgICAgICAgICAgICAgICAgICAgIGlmIChleGNlcHRpb24uc3RhdHVzID09PSA0MDMpXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgdGhpcy5tZXNzYWdlU2VydmljZS5hZGQoe1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzZXZlcml0eTogJ2Vycm9yJyxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgc3VtbWFyeTogdGhpcy50cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoJ2hjbS5wYXlyb2xsLmVycm9yJyksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIGRldGFpbDogdGhpcy50cmFuc2xhdGVTZXJ2aWNlLmluc3RhbnQoXCJoY20ucGF5cm9sbC5wZXJtaXNzaW9uX2Vycm9yX25vdF9hbGxvd2VkXCIpLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdGlja3k6IHRydWUsXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfSk7XG5cbiAgICAgICAgICAgICAgICAgICAgICAgIHJldHVybiB0aHJvd0Vycm9yKGV4Y2VwdGlvbik7XG4gICAgICAgICAgICAgICAgICAgIH0pXG4gICAgICAgICAgICAgICAgKTtcbiAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHJldHVybiB0aGlzLmh0dHAucG9zdChgJHtlbmRwb2ludH1gLCB7fSlcbiAgICAgICAgICAgICAgICAucGlwZShcbiAgICAgICAgICAgICAgICAgICAgY2F0Y2hFcnJvcigoZXhjZXB0aW9uOiBhbnkpOiBhbnkgPT4ge1xuICAgICAgICAgICAgICAgICAgICAgICAgaWYgKGV4Y2VwdGlvbi5zdGF0dXMgPT09IDQwMylcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB0aGlzLm1lc3NhZ2VTZXJ2aWNlLmFkZCh7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHNldmVyaXR5OiAnZXJyb3InLFxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBzdW1tYXJ5OiB0aGlzLnRyYW5zbGF0ZVNlcnZpY2UuaW5zdGFudCgnaGNtLnBheXJvbGwuZXJyb3InKSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgZGV0YWlsOiB0aGlzLnRyYW5zbGF0ZVNlcnZpY2UuaW5zdGFudChcImhjbS5wYXlyb2xsLnBlcm1pc3Npb25fZXJyb3Jfbm90X2FsbG93ZWRcIiksXG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIHN0aWNreTogdHJ1ZSxcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRocm93RXJyb3IoZXhjZXB0aW9uKTtcbiAgICAgICAgICAgICAgICAgICAgfSlcbiAgICAgICAgICAgICAgICApO1xuICAgICAgICB9XG4gICAgfVxufVxuIl19
|