arco-support-request 0.0.62 → 0.0.65
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/karma.conf.js +44 -0
- package/ng-package.json +18 -0
- package/package.json +11 -22
- package/src/lib/Pipe/allpipe.pipe.ts +127 -0
- package/src/lib/Pipe/handlebar-helper-register.ts +197 -0
- package/src/lib/Pipe/translate.pipe.ts +32 -0
- package/src/lib/all-routing.ts +61 -0
- package/src/lib/arco-support-request.component.spec.ts +25 -0
- package/src/lib/arco-support-request.component.ts +20 -0
- package/src/lib/arco-support-request.module.ts +19 -0
- package/src/lib/arco-support-request.service.spec.ts +16 -0
- package/src/lib/arco-support-request.service.ts +16 -0
- package/src/lib/commonstyles/new-style-rtl.css +381 -0
- package/src/lib/commonstyles/styles.scss +3984 -0
- package/src/lib/core/encodeurl.service.ts +23 -0
- package/src/lib/core/global.service.ts +1810 -0
- package/src/lib/core/handlebar-helper-register.ts +213 -0
- package/src/lib/core/httpcancel.service.ts +21 -0
- package/src/lib/core/loader.service.ts +19 -0
- package/src/lib/core/loading-provider.service.ts +64 -0
- package/src/lib/core/managehttp.interceptor.ts +49 -0
- package/src/lib/core/static/jwt.ts +7 -0
- package/src/lib/core/token.service.ts +37 -0
- package/src/lib/entity-type-setup/activities-create/activities-create.component.html +68 -0
- package/src/lib/entity-type-setup/activities-create/activities-create.component.scss +0 -0
- package/src/lib/entity-type-setup/activities-create/activities-create.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/activities-create/activities-create.component.ts +121 -0
- package/src/lib/entity-type-setup/activities-view/activities-view.component.html +19 -0
- package/src/lib/entity-type-setup/activities-view/activities-view.component.scss +3 -0
- package/src/lib/entity-type-setup/activities-view/activities-view.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/activities-view/activities-view.component.ts +53 -0
- package/src/lib/entity-type-setup/activity-template/activity-template.component.html +73 -0
- package/src/lib/entity-type-setup/activity-template/activity-template.component.scss +0 -0
- package/src/lib/entity-type-setup/activity-template/activity-template.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/activity-template/activity-template.component.ts +208 -0
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.html +356 -0
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.scss +50 -0
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/activity-template-details/activity-template-details.component.ts +346 -0
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.html +92 -0
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.scss +90 -0
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/commom-condition/commom-condition.component.ts +74 -0
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.html +57 -0
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.scss +16 -0
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic/data-fields/data-fields.component.ts +59 -0
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.html +102 -0
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.scss +3 -0
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.ts +498 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.html +408 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.scss +123 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.ts +1051 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.ts +84 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.html +194 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.scss +81 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-form/entity-dynamic-form.component.ts +1466 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.html +137 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.ts +1232 -0
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.html +329 -0
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic-task-details/dynamic-task-details.component.ts +520 -0
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.html +609 -0
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.scss +99 -0
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic-task-list/dynamic-task-list.component.ts +784 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.html +632 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.scss +261 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details/dynamic-ticket-details.component.ts +765 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.html +368 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic-ticket-details-popup/dynamic-ticket-details-popup.component.ts +334 -0
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.html +500 -0
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.scss +0 -0
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/dynamic-ticket-list/dynamic-ticket-list.component.ts +862 -0
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.html +139 -0
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.scss +14 -0
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/entity-attachment-setup/entity-attachment-setup.component.ts +347 -0
- package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.html +150 -0
- package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.scss +27 -0
- package/src/lib/entity-type-setup/entity-category-activities/entity-category-activities.component.ts +384 -0
- package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.html +305 -0
- package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.scss +31 -0
- package/src/lib/entity-type-setup/entity-category-details/entity-category-details.component.ts +572 -0
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.html +610 -0
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.scss +50 -0
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/entity-field-rules/entity-field-rules.component.ts +633 -0
- package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.html +609 -0
- package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.scss +4 -0
- package/src/lib/entity-type-setup/entity-type-field/entity-type-field.component.ts +702 -0
- package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.html +530 -0
- package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.scss +12 -0
- package/src/lib/entity-type-setup/entity-type-form/entity-type-form.component.ts +767 -0
- package/src/lib/entity-type-setup/entity-type-setup-routing.module.ts +92 -0
- package/src/lib/entity-type-setup/entity-type-setup.module.ts +114 -0
- package/src/lib/entity-type-setup/events/events.component.html +211 -0
- package/src/lib/entity-type-setup/events/events.component.scss +61 -0
- package/src/lib/entity-type-setup/events/events.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/events/events.component.ts +517 -0
- package/src/lib/entity-type-setup/field-type/field-type.component.html +447 -0
- package/src/lib/entity-type-setup/field-type/field-type.component.scss +0 -0
- package/src/lib/entity-type-setup/field-type/field-type.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/field-type/field-type.component.ts +531 -0
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.html +152 -0
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.scss +24 -0
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/field-type-detail/field-type-detail.component.ts +35 -0
- package/src/lib/entity-type-setup/instruction/instruction.component.html +239 -0
- package/src/lib/entity-type-setup/instruction/instruction.component.scss +18 -0
- package/src/lib/entity-type-setup/instruction/instruction.component.ts +450 -0
- package/src/lib/entity-type-setup/interface/entityTypeInterface.ts +1045 -0
- package/src/lib/entity-type-setup/interface/eventEnum.ts +191 -0
- package/src/lib/entity-type-setup/issue-group/issue-group.component.html +77 -0
- package/src/lib/entity-type-setup/issue-group/issue-group.component.scss +0 -0
- package/src/lib/entity-type-setup/issue-group/issue-group.component.ts +221 -0
- package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.html +192 -0
- package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.scss +10 -0
- package/src/lib/entity-type-setup/issue-sub-group/issue-sub-group.component.ts +418 -0
- package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.html +42 -0
- package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.scss +8 -0
- package/src/lib/entity-type-setup/issue-sub-group-detail/issue-sub-group-detail.component.ts +52 -0
- package/src/lib/entity-type-setup/my-task/my-task.component.html +599 -0
- package/src/lib/entity-type-setup/my-task/my-task.component.scss +0 -0
- package/src/lib/entity-type-setup/my-task/my-task.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/my-task/my-task.component.ts +770 -0
- package/src/lib/entity-type-setup/page-form-instance.ts +73 -0
- package/src/lib/entity-type-setup/page.interface.classes.ts +43 -0
- package/src/lib/entity-type-setup/service/dropdown.directive.ts +12 -0
- package/src/lib/entity-type-setup/service/entity-type-setup.service.ts +2821 -0
- package/src/lib/entity-type-setup/task-crete/task-crete.component.html +61 -0
- package/src/lib/entity-type-setup/task-crete/task-crete.component.scss +0 -0
- package/src/lib/entity-type-setup/task-crete/task-crete.component.ts +117 -0
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.html +95 -0
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.scss +23 -0
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/ticket-create/ticket-create.component.ts +213 -0
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.html +222 -0
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.scss +14 -0
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.spec.ts +25 -0
- package/src/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.ts +328 -0
- package/src/lib/search.pipe.spec.ts +8 -0
- package/src/lib/search.pipe.ts +21 -0
- package/src/lib/support-request/action/action.component.html +122 -0
- package/src/lib/support-request/action/action.component.scss +6 -0
- package/src/lib/support-request/action/action.component.ts +179 -0
- package/src/lib/support-request/case-list/case-list.component.html +220 -0
- package/src/lib/support-request/case-list/case-list.component.scss +208 -0
- package/src/lib/support-request/case-list/case-list.component.ts +433 -0
- package/src/lib/support-request/home/home.component.html +16 -0
- package/src/lib/support-request/home/home.component.scss +4 -0
- package/src/lib/support-request/home/home.component.ts +23 -0
- package/src/lib/support-request/pagination/pagination.component.html +71 -0
- package/src/lib/support-request/pagination/pagination.component.scss +77 -0
- package/src/lib/support-request/pagination/pagination.component.ts +29 -0
- package/src/lib/support-request/request-flow/request-flow.component.html +330 -0
- package/src/lib/support-request/request-flow/request-flow.component.scss +2 -0
- package/src/lib/support-request/request-flow/request-flow.component.ts +846 -0
- package/src/lib/support-request/self-service-flow/self-service-flow.component.html +64 -0
- package/src/lib/support-request/self-service-flow/self-service-flow.component.scss +2 -0
- package/src/lib/support-request/self-service-flow/self-service-flow.component.ts +87 -0
- package/src/lib/support-request/support-request-create/support-request-create.component.html +103 -0
- package/src/lib/support-request/support-request-create/support-request-create.component.scss +39 -0
- package/src/lib/support-request/support-request-create/support-request-create.component.ts +319 -0
- package/src/lib/support-request/support-request-details/support-request-details.component.html +268 -0
- package/src/lib/support-request/support-request-details/support-request-details.component.scss +319 -0
- package/src/lib/support-request/support-request-details/support-request-details.component.ts +678 -0
- package/src/lib/support-request/support-request-index/support-request-index.component.html +4 -0
- package/src/lib/support-request/support-request-index/support-request-index.component.scss +0 -0
- package/src/lib/support-request/support-request-index/support-request-index.component.ts +16 -0
- package/src/lib/support-request/support-request-list/support-request-list.component.html +455 -0
- package/src/lib/support-request/support-request-list/support-request-list.component.scss +0 -0
- package/src/lib/support-request/support-request-list/support-request-list.component.ts +869 -0
- package/src/lib/support-request/support-request-routing.module.ts +21 -0
- package/src/lib/support-request/support-request.module.ts +103 -0
- package/src/lib/support-request/support-request.service.ts +145 -0
- package/src/lib/support-request/supportRequestInterface.ts +6 -0
- package/src/lib/task/Interfaces/TaskInterface.ts +164 -0
- package/src/lib/task/Services/task.service.spec.ts +16 -0
- package/src/lib/task/Services/task.service.ts +354 -0
- package/src/lib/task/task-routing.module.ts +12 -0
- package/src/lib/task/task.module.ts +23 -0
- package/src/lib/template/template.component.html +22 -0
- package/src/lib/template/template.component.scss +0 -0
- package/src/lib/template/template.component.spec.ts +25 -0
- package/src/lib/template/template.component.ts +24 -0
- package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.html +83 -0
- package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.scss +0 -0
- package/src/lib/templates/attachmentsetup/attach-list/attach-list.component.ts +120 -0
- package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.html +134 -0
- package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.scss +0 -0
- package/src/lib/templates/attachmentsetup/attach-popup/attach-popup.component.ts +185 -0
- package/src/lib/templates/attachmentsetup/attachment-api.ts +55 -0
- package/src/lib/templates/attachmentsetup/attachment-interface.ts +100 -0
- package/src/lib/templates/attachmentsetup/attachment.service.ts +233 -0
- package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.html +97 -0
- package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.scss +10 -0
- package/src/lib/templates/attachmentsetup/attachmentsetup/attachmentsetup.component.ts +367 -0
- package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.html +49 -0
- package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.scss +0 -0
- package/src/lib/templates/attachmentsetup/documenttype/documenttype.component.ts +226 -0
- package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.html +140 -0
- package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.scss +8 -0
- package/src/lib/templates/attachmentsetup/menu-item-data/menu-item-data.component.ts +176 -0
- package/src/lib/templates/card/card.component.html +56 -0
- package/src/lib/templates/card/card.component.scss +0 -0
- package/src/lib/templates/card/card.component.spec.ts +25 -0
- package/src/lib/templates/card/card.component.ts +306 -0
- package/src/lib/templates/dashboard/dashboard.component.html +333 -0
- package/src/lib/templates/dashboard/dashboard.component.scss +16 -0
- package/src/lib/templates/dashboard/dashboard.component.ts +2290 -0
- package/src/lib/templates/details/details.component.html +233 -0
- package/src/lib/templates/details/details.component.scss +0 -0
- package/src/lib/templates/details/details.component.spec.ts +25 -0
- package/src/lib/templates/details/details.component.ts +15 -0
- package/src/lib/templates/detailstwo/detailstwo.component.html +694 -0
- package/src/lib/templates/detailstwo/detailstwo.component.scss +0 -0
- package/src/lib/templates/detailstwo/detailstwo.component.spec.ts +25 -0
- package/src/lib/templates/detailstwo/detailstwo.component.ts +15 -0
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.html +1 -0
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.scss +0 -0
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.spec.ts +25 -0
- package/src/lib/templates/dyanamic-page/dyanamic-page.component.ts +15 -0
- package/src/lib/templates/grid/grid-datatype/grid-datatype.component.ts +39 -0
- package/src/lib/templates/grid/grid-service.service.ts +140 -0
- package/src/lib/templates/grid/grid.component.html +270 -0
- package/src/lib/templates/grid/grid.component.scss +99 -0
- package/src/lib/templates/grid/grid.component.spec.ts +25 -0
- package/src/lib/templates/grid/grid.component.ts +458 -0
- package/src/lib/templates/grid/inner-grid/inner-grid.component.html +1 -0
- package/src/lib/templates/grid/inner-grid/inner-grid.component.scss +0 -0
- package/src/lib/templates/grid/inner-grid/inner-grid.component.spec.ts +25 -0
- package/src/lib/templates/grid/inner-grid/inner-grid.component.ts +15 -0
- package/src/lib/templates/home/home.component.html +251 -0
- package/src/lib/templates/home/home.component.scss +20 -0
- package/src/lib/templates/home/home.component.spec.ts +25 -0
- package/src/lib/templates/home/home.component.ts +15 -0
- package/src/lib/templates/interface_enum/common-Interface.ts +107 -0
- package/src/lib/templates/interface_enum/common-enum.ts +147 -0
- package/src/lib/templates/interface_enum/icon-class.ts +1149 -0
- package/src/lib/templates/leftside/leftside.component.html +77 -0
- package/src/lib/templates/leftside/leftside.component.scss +0 -0
- package/src/lib/templates/leftside/leftside.component.spec.ts +25 -0
- package/src/lib/templates/leftside/leftside.component.ts +238 -0
- package/src/lib/templates/login/login.component.html +93 -0
- package/src/lib/templates/login/login.component.scss +110 -0
- package/src/lib/templates/login/login.component.spec.ts +25 -0
- package/src/lib/templates/login/login.component.ts +142 -0
- package/src/lib/templates/main-content/main-content.component.html +31 -0
- package/src/lib/templates/main-content/main-content.component.scss +6 -0
- package/src/lib/templates/main-content/main-content.component.spec.ts +25 -0
- package/src/lib/templates/main-content/main-content.component.ts +24 -0
- package/src/lib/templates/menu-item/child-menu/child-menu.component.html +5 -0
- package/src/lib/templates/menu-item/child-menu/child-menu.component.scss +3 -0
- package/src/lib/templates/menu-item/child-menu/child-menu.component.ts +22 -0
- package/src/lib/templates/menu-item/menu-item.component.html +25 -0
- package/src/lib/templates/menu-item/menu-item.component.scss +11 -0
- package/src/lib/templates/menu-item/menu-item.component.ts +29 -0
- package/src/lib/templates/pagination/pagination.component.html +71 -0
- package/src/lib/templates/pagination/pagination.component.scss +73 -0
- package/src/lib/templates/pagination/pagination.component.ts +29 -0
- package/src/lib/templates/pie-chart/pie-chart.component.html +0 -0
- package/src/lib/templates/pie-chart/pie-chart.component.scss +0 -0
- package/src/lib/templates/pie-chart/pie-chart.component.ts +14 -0
- package/src/lib/templates/pipe/multiple-search.pipe.ts +28 -0
- package/src/lib/templates/pipe/simple-search.pipe.ts +18 -0
- package/src/lib/templates/pipe/translate.pipe.ts +31 -0
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.html +16 -0
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.scss +0 -0
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.spec.ts +25 -0
- package/src/lib/templates/request-flow-dash/request-flow-dash.component.ts +59 -0
- package/src/lib/templates/table/table.component.html +310 -0
- package/src/lib/templates/table/table.component.scss +0 -0
- package/src/lib/templates/table/table.component.spec.ts +25 -0
- package/src/lib/templates/table/table.component.ts +52 -0
- package/src/lib/templates/template.service.ts +43 -0
- package/src/lib/templates/templates-routing.module.ts +21 -0
- package/src/lib/templates/templates.module.ts +80 -0
- package/src/lib/templates/topnav/topnav.component.html +172 -0
- package/src/lib/templates/topnav/topnav.component.scss +10 -0
- package/src/lib/templates/topnav/topnav.component.spec.ts +25 -0
- package/src/lib/templates/topnav/topnav.component.ts +59 -0
- package/src/lib/ticket/_interfaces/master-models.ts +66 -0
- package/src/lib/ticket/_interfaces/model.ts +252 -0
- package/src/lib/ticket/_ticket-services/ticket-api.service.ts +319 -0
- package/src/lib/ticket/_ticket-services/ticket-master-api.service.ts +169 -0
- package/src/lib/ticket/_ticket-services/ticket-priority.service.ts +86 -0
- package/src/lib/ticket/_ticket-services/ticketchannel.service.ts +107 -0
- package/src/lib/ticket/ticket-routing.module.ts +12 -0
- package/src/lib/ticket/ticket.module.ts +29 -0
- package/{public-api.d.ts → src/public-api.ts} +6 -1
- package/src/test.ts +26 -0
- package/tsconfig.lib.json +25 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/tslint.json +17 -0
- package/arco-support-request.d.ts +0 -32
- package/arco-support-request.metadata.json +0 -1
- package/bundles/arco-support-request.umd.js +0 -10898
- package/bundles/arco-support-request.umd.js.map +0 -1
- package/bundles/arco-support-request.umd.min.js +0 -2
- package/bundles/arco-support-request.umd.min.js.map +0 -1
- package/esm2015/arco-support-request.js +0 -33
- package/esm2015/lib/Pipe/allpipe.pipe.js +0 -110
- package/esm2015/lib/Pipe/translate.pipe.js +0 -31
- package/esm2015/lib/arco-support-request.component.js +0 -18
- package/esm2015/lib/arco-support-request.module.js +0 -20
- package/esm2015/lib/arco-support-request.service.js +0 -19
- package/esm2015/lib/core/global.service.js +0 -1747
- package/esm2015/lib/core/handlebar-helper-register.js +0 -182
- package/esm2015/lib/core/static/jwt.js +0 -8
- package/esm2015/lib/entity-type-setup/activities-create/activities-create.component.js +0 -105
- package/esm2015/lib/entity-type-setup/activities-view/activities-view.component.js +0 -46
- package/esm2015/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.js +0 -367
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.js +0 -850
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.js +0 -85
- package/esm2015/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.js +0 -957
- package/esm2015/lib/entity-type-setup/interface/entityTypeInterface.js +0 -51
- package/esm2015/lib/entity-type-setup/interface/eventEnum.js +0 -84
- package/esm2015/lib/entity-type-setup/page-form-instance.js +0 -65
- package/esm2015/lib/entity-type-setup/page.interface.classes.js +0 -40
- package/esm2015/lib/entity-type-setup/service/entity-type-setup.service.js +0 -1833
- package/esm2015/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.js +0 -276
- package/esm2015/lib/search.pipe.js +0 -19
- package/esm2015/lib/support-request/action/action.component.js +0 -104
- package/esm2015/lib/support-request/case-list/case-list.component.js +0 -381
- package/esm2015/lib/support-request/home/home.component.js +0 -23
- package/esm2015/lib/support-request/pagination/pagination.component.js +0 -34
- package/esm2015/lib/support-request/request-flow/request-flow.component.js +0 -662
- package/esm2015/lib/support-request/self-service-flow/self-service-flow.component.js +0 -78
- package/esm2015/lib/support-request/support-request-create/support-request-create.component.js +0 -270
- package/esm2015/lib/support-request/support-request-details/support-request-details.component.js +0 -502
- package/esm2015/lib/support-request/support-request-index/support-request-index.component.js +0 -16
- package/esm2015/lib/support-request/support-request-routing.module.js +0 -22
- package/esm2015/lib/support-request/support-request.module.js +0 -98
- package/esm2015/lib/support-request/support-request.service.js +0 -105
- package/esm2015/lib/support-request/supportRequestInterface.js +0 -2
- package/esm2015/lib/task/Interfaces/TaskInterface.js +0 -7
- package/esm2015/lib/task/Services/task.service.js +0 -251
- package/esm2015/lib/templates/Pipe/translate.pipe.js +0 -31
- package/esm2015/lib/templates/attachmentsetup/attachment-interface.js +0 -2
- package/esm2015/lib/templates/attachmentsetup/attachment.service.js +0 -196
- package/esm2015/lib/templates/grid/grid-datatype/grid-datatype.component.js +0 -37
- package/esm2015/lib/templates/grid/grid-service.service.js +0 -85
- package/esm2015/lib/templates/grid/grid.component.js +0 -436
- package/esm2015/lib/templates/grid/inner-grid/inner-grid.component.js +0 -15
- package/esm2015/lib/templates/interface_enum/common-Interface.js +0 -2
- package/esm2015/lib/templates/interface_enum/common-enum.js +0 -153
- package/esm2015/lib/ticket/_interfaces/model.js +0 -2
- package/esm2015/lib/ticket/_ticket-services/ticket-api.service.js +0 -232
- package/esm2015/public-api.js +0 -9
- package/fesm2015/arco-support-request.js +0 -10298
- package/fesm2015/arco-support-request.js.map +0 -1
- package/lib/Pipe/allpipe.pipe.d.ts +0 -19
- package/lib/Pipe/translate.pipe.d.ts +0 -7
- package/lib/arco-support-request.component.d.ts +0 -5
- package/lib/arco-support-request.module.d.ts +0 -2
- package/lib/arco-support-request.service.d.ts +0 -9
- package/lib/core/global.service.d.ts +0 -78
- package/lib/core/handlebar-helper-register.d.ts +0 -1
- package/lib/core/static/jwt.d.ts +0 -7
- package/lib/entity-type-setup/activities-create/activities-create.component.d.ts +0 -30
- package/lib/entity-type-setup/activities-view/activities-view.component.d.ts +0 -16
- package/lib/entity-type-setup/dynamic/dynamic-details-view/dynamic-details-view.component.d.ts +0 -67
- package/lib/entity-type-setup/dynamic/entity-dynamic-field/entity-dynamic-field.component.d.ts +0 -88
- package/lib/entity-type-setup/dynamic/entity-dynamic-field/validation-error.component.d.ts +0 -11
- package/lib/entity-type-setup/dynamic/entity-dynamic-view/entity-dynamic-view.component.d.ts +0 -69
- package/lib/entity-type-setup/interface/entityTypeInterface.d.ts +0 -916
- package/lib/entity-type-setup/interface/eventEnum.d.ts +0 -161
- package/lib/entity-type-setup/page-form-instance.d.ts +0 -13
- package/lib/entity-type-setup/page.interface.classes.d.ts +0 -33
- package/lib/entity-type-setup/service/entity-type-setup.service.d.ts +0 -604
- package/lib/entity-type-setup/workflow-dynamic-popup/workflow-dynamic-popup.component.d.ts +0 -66
- package/lib/search.pipe.d.ts +0 -4
- package/lib/support-request/action/action.component.d.ts +0 -31
- package/lib/support-request/case-list/case-list.component.d.ts +0 -86
- package/lib/support-request/home/home.component.d.ts +0 -6
- package/lib/support-request/pagination/pagination.component.d.ts +0 -18
- package/lib/support-request/request-flow/request-flow.component.d.ts +0 -142
- package/lib/support-request/self-service-flow/self-service-flow.component.d.ts +0 -31
- package/lib/support-request/support-request-create/support-request-create.component.d.ts +0 -55
- package/lib/support-request/support-request-details/support-request-details.component.d.ts +0 -116
- package/lib/support-request/support-request-index/support-request-index.component.d.ts +0 -5
- package/lib/support-request/support-request-routing.module.d.ts +0 -2
- package/lib/support-request/support-request.module.d.ts +0 -2
- package/lib/support-request/support-request.service.d.ts +0 -35
- package/lib/support-request/supportRequestInterface.d.ts +0 -6
- package/lib/task/Interfaces/TaskInterface.d.ts +0 -132
- package/lib/task/Services/task.service.d.ts +0 -75
- package/lib/templates/Pipe/translate.pipe.d.ts +0 -7
- package/lib/templates/attachmentsetup/attachment-interface.d.ts +0 -90
- package/lib/templates/attachmentsetup/attachment.service.d.ts +0 -61
- package/lib/templates/grid/grid-datatype/grid-datatype.component.d.ts +0 -11
- package/lib/templates/grid/grid-service.service.d.ts +0 -40
- package/lib/templates/grid/grid.component.d.ts +0 -155
- package/lib/templates/grid/inner-grid/inner-grid.component.d.ts +0 -5
- package/lib/templates/interface_enum/common-Interface.d.ts +0 -90
- package/lib/templates/interface_enum/common-enum.d.ts +0 -129
- package/lib/ticket/_interfaces/model.d.ts +0 -192
- package/lib/ticket/_ticket-services/ticket-api.service.d.ts +0 -81
package/karma.conf.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// Karma configuration file, see link for more information
|
|
2
|
+
// https://karma-runner.github.io/1.0/config/configuration-file.html
|
|
3
|
+
|
|
4
|
+
module.exports = function (config) {
|
|
5
|
+
config.set({
|
|
6
|
+
basePath: '',
|
|
7
|
+
frameworks: ['jasmine', '@angular-devkit/build-angular'],
|
|
8
|
+
plugins: [
|
|
9
|
+
require('karma-jasmine'),
|
|
10
|
+
require('karma-chrome-launcher'),
|
|
11
|
+
require('karma-jasmine-html-reporter'),
|
|
12
|
+
require('karma-coverage'),
|
|
13
|
+
require('@angular-devkit/build-angular/plugins/karma')
|
|
14
|
+
],
|
|
15
|
+
client: {
|
|
16
|
+
jasmine: {
|
|
17
|
+
// you can add configuration options for Jasmine here
|
|
18
|
+
// the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
|
|
19
|
+
// for example, you can disable the random execution with `random: false`
|
|
20
|
+
// or set a specific seed with `seed: 4321`
|
|
21
|
+
},
|
|
22
|
+
clearContext: false // leave Jasmine Spec Runner output visible in browser
|
|
23
|
+
},
|
|
24
|
+
jasmineHtmlReporter: {
|
|
25
|
+
suppressAll: true // removes the duplicated traces
|
|
26
|
+
},
|
|
27
|
+
coverageReporter: {
|
|
28
|
+
dir: require('path').join(__dirname, '../../coverage/arco-support-request'),
|
|
29
|
+
subdir: '.',
|
|
30
|
+
reporters: [
|
|
31
|
+
{ type: 'html' },
|
|
32
|
+
{ type: 'text-summary' }
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
reporters: ['progress', 'kjhtml'],
|
|
36
|
+
port: 9876,
|
|
37
|
+
colors: true,
|
|
38
|
+
logLevel: config.LOG_INFO,
|
|
39
|
+
autoWatch: true,
|
|
40
|
+
browsers: ['Chrome'],
|
|
41
|
+
singleRun: false,
|
|
42
|
+
restartOnFileChange: true
|
|
43
|
+
});
|
|
44
|
+
};
|
package/ng-package.json
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
|
|
3
|
+
"dest": "../../dist/arco-support-request",
|
|
4
|
+
"lib": {
|
|
5
|
+
"entryFile": "src/public-api.ts",
|
|
6
|
+
"umdModuleIds": {
|
|
7
|
+
"sweetalert2":"@sweetalert2",
|
|
8
|
+
"@ng-select/ng-select":"@ng-select/ng-select",
|
|
9
|
+
"highcharts":"@highcharts",
|
|
10
|
+
"highcharts-angular":"@highcharts-angular",
|
|
11
|
+
"ng-circle-progress":"@ng-circle-progress",
|
|
12
|
+
"ngx-bootstrap/datepicker":"@ngx-bootstrap/datepicker",
|
|
13
|
+
"ngx-pagination": "@ngx-pagination",
|
|
14
|
+
"handlebars": "@handlebars",
|
|
15
|
+
"@kolkov/angular-editor":"@kolkov/angular-editor"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
package/package.json
CHANGED
|
@@ -1,23 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "arco-support-request",
|
|
3
|
-
"keywords": [
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
}
|
|
12
|
-
"dependencies": {
|
|
13
|
-
"tslib": "^2.0.0"
|
|
14
|
-
},
|
|
15
|
-
"main": "bundles/arco-support-request.umd.js",
|
|
16
|
-
"module": "fesm2015/arco-support-request.js",
|
|
17
|
-
"es2015": "fesm2015/arco-support-request.js",
|
|
18
|
-
"esm2015": "esm2015/arco-support-request.js",
|
|
19
|
-
"fesm2015": "fesm2015/arco-support-request.js",
|
|
20
|
-
"typings": "arco-support-request.d.ts",
|
|
21
|
-
"metadata": "arco-support-request.metadata.json",
|
|
22
|
-
"sideEffects": false
|
|
1
|
+
{
|
|
2
|
+
"name": "arco-support-request",
|
|
3
|
+
"keywords": ["arco-support-request","FTS-support-request"],
|
|
4
|
+
"version": "0.0.65",
|
|
5
|
+
"peerDependencies": {
|
|
6
|
+
"@angular/common": "^11.2.14",
|
|
7
|
+
"@angular/core": "^11.2.14"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {
|
|
10
|
+
"tslib": "^2.0.0"
|
|
11
|
+
}
|
|
23
12
|
}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
// import { GlobalService } from '../core/global.service';
|
|
3
|
+
|
|
4
|
+
@Pipe({
|
|
5
|
+
name: 'allpipe'
|
|
6
|
+
})
|
|
7
|
+
export class AllpipePipe implements PipeTransform {
|
|
8
|
+
|
|
9
|
+
transform(value: any, args?: any): any {
|
|
10
|
+
return null;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@Pipe({
|
|
16
|
+
name: 'gridFilter'
|
|
17
|
+
})
|
|
18
|
+
export class GridFilterPipe implements PipeTransform {
|
|
19
|
+
transform(items: any, filter: any, defaultFilter: any): any {
|
|
20
|
+
|
|
21
|
+
// console.log(items, filter);
|
|
22
|
+
if (!filter) {
|
|
23
|
+
return items;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
if (!Array.isArray(items)) {
|
|
27
|
+
return items;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (filter && Array.isArray(items)) {
|
|
31
|
+
let filterKeys = Object.keys(filter);
|
|
32
|
+
|
|
33
|
+
if (defaultFilter) {
|
|
34
|
+
return items.filter(item =>
|
|
35
|
+
filterKeys.reduce((x, keyName) =>
|
|
36
|
+
(x && new RegExp(filter[keyName], 'gi').test(item[keyName])) || filter[keyName] == "", true));
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
return items.filter(item => {
|
|
40
|
+
return filterKeys.some((keyName) => {
|
|
41
|
+
return new RegExp(filter[keyName], 'gi').test(item[keyName]) || filter[keyName] == "";
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
@Pipe({
|
|
51
|
+
name: 'gridSearch'
|
|
52
|
+
})
|
|
53
|
+
export class GgridSearchPipe implements PipeTransform {
|
|
54
|
+
transform(items: any): any {
|
|
55
|
+
|
|
56
|
+
console.log(items)
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
@Pipe({
|
|
61
|
+
name: 'filter'
|
|
62
|
+
})
|
|
63
|
+
export class FilterPipe implements PipeTransform {
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
transform(value: any, args?: any): any {
|
|
67
|
+
|
|
68
|
+
if(!value)return null;
|
|
69
|
+
if(!args)return value;
|
|
70
|
+
|
|
71
|
+
args = args.toLowerCase();
|
|
72
|
+
|
|
73
|
+
return value.filter(function(item){
|
|
74
|
+
return JSON.stringify(item).toLowerCase().includes(args);
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
@Pipe({
|
|
83
|
+
name: 'customfilter'
|
|
84
|
+
})
|
|
85
|
+
export class CustomFilterPipe implements PipeTransform {
|
|
86
|
+
transform(value: any, filter: any) {
|
|
87
|
+
|
|
88
|
+
if(filter && filter.input && filter.field) {
|
|
89
|
+
let input = filter.input;
|
|
90
|
+
let field = filter.field;
|
|
91
|
+
if (input !== undefined && input.length >= 1) {
|
|
92
|
+
input = input.toLowerCase();
|
|
93
|
+
if (typeof value[0] === 'string') {
|
|
94
|
+
return value.filter(function(el: any) {
|
|
95
|
+
return el.toLowerCase().indexOf(input) > -1;
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
return value.filter(function(el: any) {
|
|
99
|
+
return el[field].toLowerCase().indexOf(input) > -1;
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
return value;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
@Pipe({
|
|
111
|
+
name: 'Unique',
|
|
112
|
+
pure: false
|
|
113
|
+
})
|
|
114
|
+
export class UniqueFilterPipe implements PipeTransform {
|
|
115
|
+
|
|
116
|
+
transform(value: any, args?: any): any {
|
|
117
|
+
|
|
118
|
+
// Remove the duplicate elements
|
|
119
|
+
// let uniqueArray = value.filter(function (el, index, array) {
|
|
120
|
+
// return array.indexOf(el) == index;
|
|
121
|
+
// });
|
|
122
|
+
|
|
123
|
+
let uniqueArray = Array.from(new Set(value));
|
|
124
|
+
|
|
125
|
+
return uniqueArray;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
import * as handlebars from 'handlebars';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export function registerHandlebarHelperMethods() {
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
handlebars.registerHelper('isNotNullAndNotUndefined', function (value) {
|
|
8
|
+
if (value == null || value == undefined) return false
|
|
9
|
+
else return true
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
handlebars.registerHelper('MoneyPipe', function (value, prefix = '$', count = 2) {
|
|
13
|
+
if (isNaN(parseFloat(value))) {
|
|
14
|
+
return null
|
|
15
|
+
} else
|
|
16
|
+
return `${prefix}${parseFloat(value).toFixed(count)}`; // $2312.00
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
handlebars.registerHelper('BoolPile', function (value) {
|
|
20
|
+
return value == true ? "YES" : "NO"
|
|
21
|
+
})
|
|
22
|
+
|
|
23
|
+
handlebars.registerHelper('NillPipe', function (value, cond) {
|
|
24
|
+
if (value) {
|
|
25
|
+
return value
|
|
26
|
+
}
|
|
27
|
+
else {
|
|
28
|
+
if (cond == "0") {
|
|
29
|
+
return "0"
|
|
30
|
+
}
|
|
31
|
+
else
|
|
32
|
+
return "NIL"
|
|
33
|
+
}
|
|
34
|
+
})
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
/* #region Date */
|
|
38
|
+
|
|
39
|
+
handlebars.registerHelper('DatePipe', function (date, formate) {
|
|
40
|
+
if (date) {
|
|
41
|
+
switch (formate) {
|
|
42
|
+
case "DATE":
|
|
43
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
44
|
+
case "DATE_TIME":
|
|
45
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
46
|
+
case "DATE_TIME_FULL":
|
|
47
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
48
|
+
case "TIME":
|
|
49
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
50
|
+
case "TIME_FULL":
|
|
51
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
52
|
+
default:
|
|
53
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
return date
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
handlebars.registerHelper('AddtionalDatePipe', function (curdate, day, formate) {
|
|
63
|
+
|
|
64
|
+
if (curdate && day) {
|
|
65
|
+
|
|
66
|
+
var date = new Date(curdate);
|
|
67
|
+
date.setDate(date.getDate() + parseInt(day));
|
|
68
|
+
if (formate) {
|
|
69
|
+
|
|
70
|
+
switch (formate) {
|
|
71
|
+
case "DATE":
|
|
72
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
73
|
+
case "DATE_TIME":
|
|
74
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
75
|
+
case "DATE_TIME_FULL":
|
|
76
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
77
|
+
case "TIME":
|
|
78
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
79
|
+
case "TIME_FULL":
|
|
80
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
81
|
+
default:
|
|
82
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return date
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
else {
|
|
90
|
+
return date
|
|
91
|
+
}
|
|
92
|
+
})
|
|
93
|
+
|
|
94
|
+
handlebars.registerHelper('SubDatePipe', function (curdate, day, formate) {
|
|
95
|
+
if (curdate && day) {
|
|
96
|
+
|
|
97
|
+
var date = new Date(curdate);
|
|
98
|
+
date.setDate(date.getDate() - parseInt(day));
|
|
99
|
+
if (formate) {
|
|
100
|
+
|
|
101
|
+
switch (formate) {
|
|
102
|
+
case "DATE":
|
|
103
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
104
|
+
case "DATE_TIME":
|
|
105
|
+
return new Date(date).toLocaleString(); // "11/3/2020, 11:09:23 AM"
|
|
106
|
+
case "DATE_TIME_FULL":
|
|
107
|
+
return new Date(date).toString(); // "Tue Nov 03 2020 11:09:10 GMT+0530 (India Standard Time)"
|
|
108
|
+
case "TIME":
|
|
109
|
+
return new Date(date).toLocaleTimeString(); // "11:15:39 AM"
|
|
110
|
+
case "TIME_FULL":
|
|
111
|
+
return new Date(date).toTimeString(); // "11:15:26 GMT+0530 (India Standard Time)"
|
|
112
|
+
default:
|
|
113
|
+
return new Date(date).toLocaleDateString(); // "11/3/2020"
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
else {
|
|
117
|
+
return date
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
return date
|
|
122
|
+
}
|
|
123
|
+
})
|
|
124
|
+
|
|
125
|
+
/* #endregion */
|
|
126
|
+
|
|
127
|
+
/* #region Arithmetic */
|
|
128
|
+
|
|
129
|
+
handlebars.registerHelper('Addition', function (value, value2) {
|
|
130
|
+
|
|
131
|
+
let val = value + value2;
|
|
132
|
+
return val
|
|
133
|
+
})
|
|
134
|
+
|
|
135
|
+
handlebars.registerHelper('Subtraction', function (value, value2) {
|
|
136
|
+
let val = value - value2;
|
|
137
|
+
return val
|
|
138
|
+
})
|
|
139
|
+
handlebars.registerHelper('Multiplication', function (value, value2) {
|
|
140
|
+
|
|
141
|
+
if (isNaN(value) && isNaN(value2)) {
|
|
142
|
+
let val = value * value2;
|
|
143
|
+
return val
|
|
144
|
+
}
|
|
145
|
+
else {
|
|
146
|
+
return "";
|
|
147
|
+
}
|
|
148
|
+
})
|
|
149
|
+
|
|
150
|
+
handlebars.registerHelper('Division', function (value, value2) {
|
|
151
|
+
|
|
152
|
+
if (isNaN(value) && isNaN(value2)) {
|
|
153
|
+
let val = value / value2;
|
|
154
|
+
return val
|
|
155
|
+
}
|
|
156
|
+
else {
|
|
157
|
+
return "";
|
|
158
|
+
}
|
|
159
|
+
})
|
|
160
|
+
|
|
161
|
+
handlebars.registerHelper('Remainder', function (value, value2) {
|
|
162
|
+
|
|
163
|
+
if (isNaN(value) && isNaN(value2)) {
|
|
164
|
+
let val = value % value2;
|
|
165
|
+
return val
|
|
166
|
+
}
|
|
167
|
+
else {
|
|
168
|
+
return "";
|
|
169
|
+
}
|
|
170
|
+
})
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
handlebars.registerHelper('lengthGreaterThen0', function (value: any[]) {
|
|
174
|
+
if (value && Array.isArray(value) && value.length > 0)
|
|
175
|
+
return true
|
|
176
|
+
else return false
|
|
177
|
+
})
|
|
178
|
+
|
|
179
|
+
handlebars.registerHelper('isNullOrUndefined', function (value: any[]) {
|
|
180
|
+
if (value == null || value == undefined) return true
|
|
181
|
+
else return false
|
|
182
|
+
})
|
|
183
|
+
|
|
184
|
+
handlebars.registerHelper('isEqual', function (value, value2) {
|
|
185
|
+
|
|
186
|
+
return value == value2 ? true : false
|
|
187
|
+
})
|
|
188
|
+
/* #endregion */
|
|
189
|
+
|
|
190
|
+
handlebars.registerHelper('SetFieldByLang', function (Lang,value, value2,) {
|
|
191
|
+
|
|
192
|
+
return Lang == "Ar" ? value2 : value
|
|
193
|
+
})
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
}
|
|
197
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Pipe, PipeTransform } from '@angular/core';
|
|
2
|
+
import { GlobalService } from '../core/global.service';
|
|
3
|
+
|
|
4
|
+
@Pipe({
|
|
5
|
+
name: 'translate'
|
|
6
|
+
})
|
|
7
|
+
export class TranslatePipe implements PipeTransform {
|
|
8
|
+
|
|
9
|
+
constructor(private globalService: GlobalService) {
|
|
10
|
+
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
transform(value: any): any {
|
|
14
|
+
//
|
|
15
|
+
if (this.globalService.ArabicWord == null || this.globalService.ArabicWord == undefined || this.globalService.EnglishWord == null || this.globalService.EnglishWord == undefined) {
|
|
16
|
+
return value;
|
|
17
|
+
}
|
|
18
|
+
if (this.globalService.CurrentLanguage == "En") {
|
|
19
|
+
return value;
|
|
20
|
+
}
|
|
21
|
+
else if (this.globalService.CurrentLanguage == "Ar") {
|
|
22
|
+
return this.globalService.ArabicWord[value] ? this.globalService.ArabicWord[value] : value;
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
return value;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { DynamicTaskDetailsComponent } from './entity-type-setup/dynamic-task-details/dynamic-task-details.component';
|
|
2
|
+
|
|
3
|
+
export const AllRoutes = {
|
|
4
|
+
Task: {
|
|
5
|
+
All: '/task/list/All',
|
|
6
|
+
MyTasks: '/task/MyTasks',
|
|
7
|
+
MyTasksPending: '/task/MyTasksPending',
|
|
8
|
+
MyTasksDueToday: '/task/MyTasksDueToday',
|
|
9
|
+
CreatedTaskByMe: '/task/CreatedTaskByMe',
|
|
10
|
+
MyTeamTask: '/task/MyTeamTask',
|
|
11
|
+
Details: '/task/details',
|
|
12
|
+
},
|
|
13
|
+
Ticket: {
|
|
14
|
+
All: '/ticket/all',
|
|
15
|
+
My: '/ticket/my',
|
|
16
|
+
CreatedByMe: '/ticket/createdbyme',
|
|
17
|
+
Closed: '/ticket/closed',
|
|
18
|
+
Details: '/ticket/details',
|
|
19
|
+
TicketMaster: {
|
|
20
|
+
Channel: '/ticketchannel',
|
|
21
|
+
Category: '/ticketgroup',
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
LookUp: {
|
|
25
|
+
lookup: '/lookUp/lookUp',
|
|
26
|
+
lookupValue: '/lookUp/lookUpValues',
|
|
27
|
+
},
|
|
28
|
+
Security: {
|
|
29
|
+
User: '/security/user',
|
|
30
|
+
},
|
|
31
|
+
Entity: {
|
|
32
|
+
Setup: '/EntityTypeSetup/setup',
|
|
33
|
+
Category: '/EntityTypeSetup/category',
|
|
34
|
+
CategoryDetails:'EntityTypeSetup/categoryDetails',
|
|
35
|
+
Field: '/EntityTypeSetup/field',
|
|
36
|
+
Form: '/EntityTypeSetup/form',
|
|
37
|
+
Design: '/EntityTypeSetup/dynamicform',
|
|
38
|
+
View: '/EntityTypeSetup/dynamicDetails',
|
|
39
|
+
|
|
40
|
+
activityTemplate:'/EntityTypeSetup/activityTemplate',
|
|
41
|
+
activityTemplateDetails:'/EntityTypeSetup/activitytemplate',
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
DynamicTicketList: 'EntityTypeSetup/ticket',
|
|
45
|
+
DynamicTicketDetails: 'EntityTypeSetup/ticketDetails',
|
|
46
|
+
DynamicTicketCreate: 'EntityTypeSetup/ticketCreate',
|
|
47
|
+
|
|
48
|
+
DynamicTaskList: 'EntityTypeSetup/task',
|
|
49
|
+
DynamicTaskDetails: 'EntityTypeSetup/entityType/taskDetails',
|
|
50
|
+
DynamicTaskCreate: 'EntityTypeSetup/taskCreate',
|
|
51
|
+
WfStageStatusField: 'EntityTypeSetup/wfprocessstagestatusfield',
|
|
52
|
+
|
|
53
|
+
IssueGroup:'EntityTypeSetup/issueGroup',
|
|
54
|
+
IssueSubGroup:'EntityTypeSetup/issueSubGroup',
|
|
55
|
+
IssueSubGroupDetails:'EntityTypeSetup/issueGroupDetails',
|
|
56
|
+
|
|
57
|
+
},
|
|
58
|
+
SupportRequest:{
|
|
59
|
+
Instruction:'SupportRequest/instruction'
|
|
60
|
+
}
|
|
61
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ArcoSupportRequestComponent } from './arco-support-request.component';
|
|
4
|
+
|
|
5
|
+
describe('ArcoSupportRequestComponent', () => {
|
|
6
|
+
let component: ArcoSupportRequestComponent;
|
|
7
|
+
let fixture: ComponentFixture<ArcoSupportRequestComponent>;
|
|
8
|
+
|
|
9
|
+
beforeEach(async () => {
|
|
10
|
+
await TestBed.configureTestingModule({
|
|
11
|
+
declarations: [ ArcoSupportRequestComponent ]
|
|
12
|
+
})
|
|
13
|
+
.compileComponents();
|
|
14
|
+
});
|
|
15
|
+
|
|
16
|
+
beforeEach(() => {
|
|
17
|
+
fixture = TestBed.createComponent(ArcoSupportRequestComponent);
|
|
18
|
+
component = fixture.componentInstance;
|
|
19
|
+
fixture.detectChanges();
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
it('should create', () => {
|
|
23
|
+
expect(component).toBeTruthy();
|
|
24
|
+
});
|
|
25
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Component, OnInit } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Component({
|
|
4
|
+
selector: 'lib-arco-support-request',
|
|
5
|
+
template: `
|
|
6
|
+
<p>
|
|
7
|
+
arco-support-request works!
|
|
8
|
+
</p>
|
|
9
|
+
`,
|
|
10
|
+
styles: [
|
|
11
|
+
]
|
|
12
|
+
})
|
|
13
|
+
export class ArcoSupportRequestComponent implements OnInit {
|
|
14
|
+
|
|
15
|
+
constructor() { }
|
|
16
|
+
|
|
17
|
+
ngOnInit(): void {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { ArcoSupportRequestComponent } from './arco-support-request.component';
|
|
3
|
+
import { SearchPipe } from './search.pipe';
|
|
4
|
+
|
|
5
|
+
@NgModule({
|
|
6
|
+
declarations: [
|
|
7
|
+
ArcoSupportRequestComponent,
|
|
8
|
+
SearchPipe,
|
|
9
|
+
],
|
|
10
|
+
imports: [
|
|
11
|
+
],
|
|
12
|
+
exports: [
|
|
13
|
+
ArcoSupportRequestComponent,
|
|
14
|
+
SearchPipe,
|
|
15
|
+
],
|
|
16
|
+
bootstrap: [ArcoSupportRequestComponent],
|
|
17
|
+
|
|
18
|
+
})
|
|
19
|
+
export class ArcoSupportRequestModule { }
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TestBed } from '@angular/core/testing';
|
|
2
|
+
|
|
3
|
+
import { ArcoSupportRequestService } from './arco-support-request.service';
|
|
4
|
+
|
|
5
|
+
describe('ArcoSupportRequestService', () => {
|
|
6
|
+
let service: ArcoSupportRequestService;
|
|
7
|
+
|
|
8
|
+
beforeEach(() => {
|
|
9
|
+
TestBed.configureTestingModule({});
|
|
10
|
+
service = TestBed.inject(ArcoSupportRequestService);
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
it('should be created', () => {
|
|
14
|
+
expect(service).toBeTruthy();
|
|
15
|
+
});
|
|
16
|
+
});
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
|
|
3
|
+
@Injectable({
|
|
4
|
+
providedIn: 'root'
|
|
5
|
+
})
|
|
6
|
+
export class ArcoSupportRequestService {
|
|
7
|
+
|
|
8
|
+
constructor() { }
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export const environment ={
|
|
12
|
+
ServerUrl :"https://erp.arco.sa/productivity/api/v1/",
|
|
13
|
+
indBaseServerUrl: 'https://erp.arco.sa',
|
|
14
|
+
bizBaseUrl: 'https://erp.arco.sa:224/',
|
|
15
|
+
manpowerTestUrl: 'https://manpowertest.azurewebsites.net',
|
|
16
|
+
}
|