b2adminui 1.0.5 → 1.0.7
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/package.json +5 -2
- package/Dockerfile +0 -45
- package/app-config-prod.json +0 -6
- package/app-config.json +0 -10
- package/b2@1.0.0 +0 -0
- package/bs-config.json +0 -8
- package/config/helpers.js +0 -10
- package/config/karma-test-shim.js +0 -21
- package/config/karma.conf.js +0 -37
- package/config/webpack.common.js +0 -96
- package/config/webpack.dev.js +0 -24
- package/config/webpack.eks.js +0 -72
- package/config/webpack.prod.js +0 -72
- package/config/webpack.test.js +0 -53
- package/default.nginx.config +0 -60
- package/docker-entrypoint.sh +0 -6
- package/e2e-spec.ts +0 -21
- package/favicon.ico +0 -0
- package/karma.webpack.conf.js +0 -1
- package/npm +0 -0
- package/rimraf +0 -0
- package/src/app/app-config.ts +0 -21
- package/src/app/app-routing.module.ts +0 -165
- package/src/app/app.component.ts +0 -30
- package/src/app/app.module.ts +0 -72
- package/src/app/auth/auth.guard.ts +0 -192
- package/src/app/customer-management/customer-management.module.ts +0 -52
- package/src/app/customer-management/customer-personal-details/components/customer-personal-details.component.ts +0 -766
- package/src/app/customer-management/customer-personal-details/customer-personal-details.component.css +0 -4
- package/src/app/customer-management/customer-personal-details/customer-personal-details.component.html +0 -812
- package/src/app/customer-management/customer-personal-details/models/companyrisksetting.model.ts +0 -65
- package/src/app/customer-management/customer-profile-history-list/components/customer-profile-history-list.component.ts +0 -149
- package/src/app/customer-management/customer-profile-history-list/customer-profile-history-list.component.html +0 -104
- package/src/app/customer-management/customer-profile-history-list/models/customer-profile-history-list.model.ts +0 -33
- package/src/app/customer-management/customer-profile-history-list/models/index.ts +0 -1
- package/src/app/customer-management/customer-registration/components/customer-registration.component.ts +0 -1595
- package/src/app/customer-management/customer-registration/customer-registration.component.css +0 -6
- package/src/app/customer-management/customer-registration/customer-registration.component.html +0 -1169
- package/src/app/customer-management/customer-registration/models/approve-customer.model.ts +0 -5
- package/src/app/customer-management/customer-registration/models/index.ts +0 -1
- package/src/app/customer-management/customer-registration/models/wallet-registration.model.ts +0 -198
- package/src/app/customer-management/customer-registration-list/components/customer-registration-list.component.ts +0 -444
- package/src/app/customer-management/customer-registration-list/customer-registration-list.component.html +0 -354
- package/src/app/customer-management/customer-registration-list/models/index.ts +0 -2
- package/src/app/customer-management/customer-registration-list/models/wallet-list.model.ts +0 -44
- package/src/app/customer-management/customer-registration-list/models/wallet.model.ts +0 -13
- package/src/app/customer-management/manual-topup/components/manual-topup.component.ts +0 -299
- package/src/app/customer-management/manual-topup/manual-topup.component.html +0 -173
- package/src/app/customer-management/manual-topup/models/index.ts +0 -1
- package/src/app/customer-management/manual-topup/models/manual-topup.model.ts +0 -17
- package/src/app/customer-management/wallet-balance-history/components/wallet-balance-history.component.ts +0 -243
- package/src/app/customer-management/wallet-balance-history/models/balance-history-list.model.ts +0 -25
- package/src/app/customer-management/wallet-balance-history/models/balance-history.model.ts +0 -13
- package/src/app/customer-management/wallet-balance-history/models/index.ts +0 -3
- package/src/app/customer-management/wallet-balance-history/models/wallet.model.ts +0 -13
- package/src/app/customer-management/wallet-balance-history/wallet-balance-history.component.html +0 -182
- package/src/app/customer-management/wallet-history/components/wallet-history.component.ts +0 -239
- package/src/app/customer-management/wallet-history/models/index.ts +0 -2
- package/src/app/customer-management/wallet-history/models/wallet-history-list.model.ts +0 -11
- package/src/app/customer-management/wallet-history/models/wallet-history.model.ts +0 -10
- package/src/app/customer-management/wallet-history/wallet-history.component.html +0 -85
- package/src/app/external-change-password/components/external-change-password.component.ts +0 -71
- package/src/app/external-change-password/external-change-password.component.html +0 -57
- package/src/app/external-change-password/models/external-change-password.model.ts +0 -6
- package/src/app/fee-management/company/company.component.html +0 -491
- package/src/app/fee-management/company/components/company.component.ts +0 -472
- package/src/app/fee-management/company/models/company.model.ts +0 -55
- package/src/app/fee-management/company/models/index.ts +0 -1
- package/src/app/fee-management/company-wallet-profile/company-wallet-profile.component.html +0 -161
- package/src/app/fee-management/company-wallet-profile/components/company-wallet-profile.component.ts +0 -194
- package/src/app/fee-management/fee-management.module.ts +0 -51
- package/src/app/fee-management/menu-setup/models/menu-setup.model.ts +0 -75
- package/src/app/fee-management/wallet-fee-setting/components/wallet-fee-setting.component.ts +0 -337
- package/src/app/fee-management/wallet-fee-setting/models/index.ts +0 -7
- package/src/app/fee-management/wallet-fee-setting/models/transfer-fee.model.ts +0 -32
- package/src/app/fee-management/wallet-fee-setting/models/verify-risk-level.model.ts +0 -7
- package/src/app/fee-management/wallet-fee-setting/models/wallet-fee-setting.model.ts +0 -32
- package/src/app/fee-management/wallet-fee-setting/models/wallet-setting.model.ts +0 -17
- package/src/app/fee-management/wallet-fee-setting/models/wallet.model.ts +0 -28
- package/src/app/fee-management/wallet-fee-setting/wallet-fee-setting.component.html +0 -1226
- package/src/app/fee-management/wallet-profile-limit-setting/components/wallet-profile-limit-setting.component.ts +0 -284
- package/src/app/fee-management/wallet-profile-limit-setting/models/index.ts +0 -1
- package/src/app/fee-management/wallet-profile-limit-setting/models/wallet-profile-limit-setting.model.ts +0 -79
- package/src/app/fee-management/wallet-profile-limit-setting/wallet-profile-limit-setting.component.html +0 -1285
- package/src/app/fee-management/wallet-profile-setting-list/components/wallet-profile-setting-list.component.ts +0 -350
- package/src/app/fee-management/wallet-profile-setting-list/models/index.ts +0 -2
- package/src/app/fee-management/wallet-profile-setting-list/models/wallet-profile-setting-list.model.ts +0 -36
- package/src/app/fee-management/wallet-profile-setting-list/models/wallet-profile-setting.model.ts +0 -12
- package/src/app/fee-management/wallet-profile-setting-list/wallet-profile-setting-list.component.html +0 -220
- package/src/app/fee-management/wallet-topup/components/wallet-topup.component.ts +0 -209
- package/src/app/fee-management/wallet-topup/models/index.ts +0 -3
- package/src/app/fee-management/wallet-topup/models/wallet-topup.model.ts +0 -11
- package/src/app/fee-management/wallet-topup/wallet-topup.component.html +0 -97
- package/src/app/forgot-password/components/forgot-password.component.ts +0 -87
- package/src/app/forgot-password/forgot-password.component.html +0 -40
- package/src/app/forgot-password/models/forgot-password.model.ts +0 -5
- package/src/app/forgot-password/models/index.ts +0 -2
- package/src/app/login/components/login.component.ts +0 -199
- package/src/app/login/login.component.html +0 -49
- package/src/app/login/models/common.model.ts +0 -21
- package/src/app/login/models/login.model.ts +0 -5
- package/src/app/models/audit-log-insert.model.ts +0 -11
- package/src/app/models/common.model.ts +0 -56
- package/src/app/models/index.ts +0 -4
- package/src/app/models/navigation-data.model.ts +0 -24
- package/src/app/models/page-info-model.ts +0 -4
- package/src/app/models/response-model.ts +0 -5
- package/src/app/models/search-model.ts +0 -21
- package/src/app/navbar/components/navbar.component.ts +0 -288
- package/src/app/navbar/navbar.component.html +0 -200
- package/src/app/profile-setting/change-password/change-password.component.html +0 -85
- package/src/app/profile-setting/change-password/components/change-password.component.ts +0 -76
- package/src/app/profile-setting/change-password/models/change-password.model.ts +0 -5
- package/src/app/profile-setting/change-password/models/index.ts +0 -1
- package/src/app/profile-setting/profile-setting/components/profile-setting.component.ts +0 -234
- package/src/app/profile-setting/profile-setting/models/profile-setting.model.ts +0 -21
- package/src/app/profile-setting/profile-setting/profile-setting.component.html +0 -228
- package/src/app/profile-setting/profile-setting.module.ts +0 -22
- package/src/app/shared/alerts/alertOptions.ts +0 -14
- package/src/app/shared/alerts/alerts.ts +0 -57
- package/src/app/shared/common/common.ts +0 -1353
- package/src/app/shared/constants/constants.ts +0 -550
- package/src/app/shared/interceptor/https-interceptor.ts +0 -69
- package/src/app/shared/service/shared.service.ts +0 -287
- package/src/app/shared/source-of-fund/source-of-fund.ts +0 -4
- package/src/app/shared/transaction/transaction-type-status.ts +0 -32
- package/src/app/transaction-history/transaction-history.module.ts +0 -83
- package/src/app/transaction-history/wallet-transaction-list/components/wallet-transaction-list.component.ts +0 -500
- package/src/app/transaction-history/wallet-transaction-list/models/wallet-transaction-list.model.ts +0 -75
- package/src/app/transaction-history/wallet-transaction-list/wallet-transaction-list.component.html +0 -530
- package/src/app/transaction-history/wallet-transaction-list-details/components/wallet-transaction-list-details.component.ts +0 -154
- package/src/app/transaction-history/wallet-transaction-list-details/models/index.ts +0 -3
- package/src/app/transaction-history/wallet-transaction-list-details/models/wallet-transaction-list-details.model.ts +0 -39
- package/src/app/transaction-history/wallet-transaction-list-details/models/wallet-transaction-refund.model.ts +0 -5
- package/src/app/transaction-history/wallet-transaction-list-details/wallet-transaction-list-details.component.html +0 -452
- package/src/app/user-management/audit-log-list/audit-log-list.component.html +0 -198
- package/src/app/user-management/audit-log-list/components/audit-log-list.component.ts +0 -415
- package/src/app/user-management/audit-log-list/models/audit-log-list.model.ts +0 -38
- package/src/app/user-management/audit-log-list/models/audit-log.model.ts +0 -11
- package/src/app/user-management/audit-log-list/models/index.ts +0 -2
- package/src/app/user-management/system-user/components/system-user.component.ts +0 -466
- package/src/app/user-management/system-user/models/system-user.model.ts +0 -23
- package/src/app/user-management/system-user/system-user.component.html +0 -349
- package/src/app/user-management/system-user-list/components/system-user-list.component.ts +0 -399
- package/src/app/user-management/system-user-list/models/index.ts +0 -2
- package/src/app/user-management/system-user-list/models/system-user-list.model.ts +0 -40
- package/src/app/user-management/system-user-list/models/system-user.model.ts +0 -11
- package/src/app/user-management/system-user-list/system-user-list.component.html +0 -266
- package/src/app/user-management/user-group-permission/components/user-group-permission.component.ts +0 -1819
- package/src/app/user-management/user-group-permission/models/user-group-permission.model.ts +0 -288
- package/src/app/user-management/user-group-permission/user-group-permission.component.html +0 -100
- package/src/app/user-management/user-group-permission-list/components/user-group-permission-list.component.ts +0 -379
- package/src/app/user-management/user-group-permission-list/models/index.ts +0 -2
- package/src/app/user-management/user-group-permission-list/models/user-group-permission-list.model.ts +0 -28
- package/src/app/user-management/user-group-permission-list/models/user-group-permission.model.ts +0 -8
- package/src/app/user-management/user-group-permission-list/user-group-permission-list.component.html +0 -184
- package/src/app/user-management/user-management.module.ts +0 -38
- package/src/app/validate-change-password/components/validate-change-password.component.ts +0 -66
- package/src/app/validate-change-password/validate-change-password.component.html +0 -8
- package/src/assets/css/animate.css +0 -2848
- package/src/assets/css/bootstrap.css +0 -6760
- package/src/assets/css/bootstrap.css.map +0 -1
- package/src/assets/css/bootstrap.min.css +0 -6
- package/src/assets/css/bootstrap.min.css.map +0 -1
- package/src/assets/css/font.css +0 -10
- package/src/assets/css/plugins/awesome-bootstrap-checkbox/awesome-bootstrap-checkbox.css +0 -251
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery-indicator.css +0 -71
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery-video.css +0 -87
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery.css +0 -226
- package/src/assets/css/plugins/blueimp/css/blueimp-gallery.min.css +0 -1
- package/src/assets/css/plugins/blueimp/css/demo.css +0 -51
- package/src/assets/css/plugins/blueimp/img/error.png +0 -0
- package/src/assets/css/plugins/blueimp/img/error.svg +0 -5
- package/src/assets/css/plugins/blueimp/img/loading.gif +0 -0
- package/src/assets/css/plugins/blueimp/img/play-pause.png +0 -0
- package/src/assets/css/plugins/blueimp/img/play-pause.svg +0 -6
- package/src/assets/css/plugins/blueimp/img/video-play.png +0 -0
- package/src/assets/css/plugins/blueimp/img/video-play.svg +0 -5
- package/src/assets/css/plugins/bootstrap-datepicker/bootstrap-datepicker3.min.css +0 -9
- package/src/assets/css/plugins/bootstrap-markdown/bootstrap-markdown.min.css +0 -1
- package/src/assets/css/plugins/bootstrap-rtl/bootstrap-rtl.css +0 -1468
- package/src/assets/css/plugins/bootstrap-rtl/bootstrap-rtl.css.map +0 -1
- package/src/assets/css/plugins/bootstrap-rtl/bootstrap-rtl.min.css +0 -9
- package/src/assets/css/plugins/bootstrap-timepicker/bootstrap-timepicker.min.css +0 -10
- package/src/assets/css/plugins/bootstrapTour/bootstrap-tour.min.css +0 -22
- package/src/assets/css/plugins/c3/c3.min.css +0 -1
- package/src/assets/css/plugins/chartist/chartist.min.css +0 -773
- package/src/assets/css/plugins/chosen/chosen-sprite.png +0 -0
- package/src/assets/css/plugins/chosen/chosen-sprite@2x.png +0 -0
- package/src/assets/css/plugins/chosen/chosen.css +0 -429
- package/src/assets/css/plugins/clockpicker/clockpicker.css +0 -168
- package/src/assets/css/plugins/codemirror/ambiance.css +0 -77
- package/src/assets/css/plugins/codemirror/codemirror.css +0 -309
- package/src/assets/css/plugins/colorpicker/bootstrap-colorpicker.min.css +0 -9
- package/src/assets/css/plugins/cropper/cropper.min.css +0 -9
- package/src/assets/css/plugins/dataTables/datatables.min.css +0 -21
- package/src/assets/css/plugins/datapicker/datepicker3.css +0 -789
- package/src/assets/css/plugins/datatables.net/css/jquery.dataTables.css +0 -455
- package/src/assets/css/plugins/datatables.net/images/sort_asc.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_asc_disabled.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_both.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_desc.png +0 -0
- package/src/assets/css/plugins/datatables.net/images/sort_desc_disabled.png +0 -0
- package/src/assets/css/plugins/daterangepicker/daterangepicker-bs3.css +0 -335
- package/src/assets/css/plugins/dropzone/basic.css +0 -155
- package/src/assets/css/plugins/dropzone/dropzone.css +0 -410
- package/src/assets/css/plugins/footable/fonts/footable.eot +0 -0
- package/src/assets/css/plugins/footable/fonts/footable.svg +0 -78
- package/src/assets/css/plugins/footable/fonts/footable.ttf +0 -0
- package/src/assets/css/plugins/footable/fonts/footable.woff +0 -0
- package/src/assets/css/plugins/footable/footable.core.css +0 -178
- package/src/assets/css/plugins/fullcalendar/fullcalendar.css +0 -977
- package/src/assets/css/plugins/fullcalendar/fullcalendar.print.css +0 -202
- package/src/assets/css/plugins/iCheck/custom.css +0 -59
- package/src/assets/css/plugins/iCheck/green.png +0 -0
- package/src/assets/css/plugins/iCheck/green@2x.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/alpha.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/hue.png +0 -0
- package/src/assets/css/plugins/images/bootstrap-colorpicker/saturation.png +0 -0
- package/src/assets/css/plugins/images/sort.png +0 -0
- package/src/assets/css/plugins/images/sort_asc.png +0 -0
- package/src/assets/css/plugins/images/sort_desc.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-flat.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-flat2.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-nice.png +0 -0
- package/src/assets/css/plugins/images/sprite-skin-simple.png +0 -0
- package/src/assets/css/plugins/images/spritemap.png +0 -0
- package/src/assets/css/plugins/images/spritemap@2x.png +0 -0
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.css +0 -126
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css +0 -89
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinNice.css +0 -85
- package/src/assets/css/plugins/ionRangeSlider/ion.rangeSlider.skinSimple.css +0 -85
- package/src/assets/css/plugins/jQueryUI/images/animated-overlay.gif +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_222222_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_2e83ff_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_454545_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_888888_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/src/assets/css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css +0 -7
- package/src/assets/css/plugins/jQueryUI/jquery-ui.css +0 -1177
- package/src/assets/css/plugins/jasny/jasny-bootstrap.min.css +0 -7
- package/src/assets/css/plugins/jqGrid/ui.jqgrid.css +0 -171
- package/src/assets/css/plugins/jsTree/32px.png +0 -0
- package/src/assets/css/plugins/jsTree/39px.png +0 -0
- package/src/assets/css/plugins/jsTree/40px.png +0 -0
- package/src/assets/css/plugins/jsTree/style.css +0 -1050
- package/src/assets/css/plugins/jsTree/style.min.css +0 -1
- package/src/assets/css/plugins/jsTree/throbber.gif +0 -0
- package/src/assets/css/plugins/ladda/ladda-themeless.min.css +0 -7
- package/src/assets/css/plugins/ladda/ladda.min.css +0 -9
- package/src/assets/css/plugins/morris/morris-0.4.3.min.css +0 -2
- package/src/assets/css/plugins/nouslider/jquery.nouislider.css +0 -165
- package/src/assets/css/plugins/select2/select2.min.css +0 -1
- package/src/assets/css/plugins/slick/ajax-loader.gif +0 -0
- package/src/assets/css/plugins/slick/fonts/slick.eot +0 -0
- package/src/assets/css/plugins/slick/fonts/slick.svg +0 -14
- package/src/assets/css/plugins/slick/fonts/slick.ttf +0 -0
- package/src/assets/css/plugins/slick/fonts/slick.woff +0 -0
- package/src/assets/css/plugins/slick/slick-theme.css +0 -201
- package/src/assets/css/plugins/slick/slick.css +0 -119
- package/src/assets/css/plugins/social-buttons/social-buttons.css +0 -68
- package/src/assets/css/plugins/steps/jquery.steps.css +0 -380
- package/src/assets/css/plugins/summernote/summernote-bs3.css +0 -5970
- package/src/assets/css/plugins/summernote/summernote.css +0 -446
- package/src/assets/css/plugins/sweetalert/sweetalert.css +0 -715
- package/src/assets/css/plugins/switchery/switchery.css +0 -32
- package/src/assets/css/plugins/toastr/ng2-toastr.min.css +0 -1
- package/src/assets/css/plugins/toastr/toastr.min.css +0 -222
- package/src/assets/css/plugins/touchspin/jquery.bootstrap-touchspin.min.css +0 -10
- package/src/assets/css/style.css +0 -9725
- package/src/assets/css/style.scss +0 -1
- package/src/assets/font-awesome/css/font-awesome.css +0 -2337
- package/src/assets/font-awesome/css/font-awesome.min.css +0 -4
- package/src/assets/font-awesome/fonts/FontAwesome.otf +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.svg +0 -2671
- package/src/assets/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- package/src/assets/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- package/src/assets/font-awesome/less/animated.less +0 -34
- package/src/assets/font-awesome/less/bordered-pulled.less +0 -25
- package/src/assets/font-awesome/less/core.less +0 -12
- package/src/assets/font-awesome/less/fixed-width.less +0 -6
- package/src/assets/font-awesome/less/font-awesome.less +0 -18
- package/src/assets/font-awesome/less/icons.less +0 -789
- package/src/assets/font-awesome/less/larger.less +0 -13
- package/src/assets/font-awesome/less/list.less +0 -19
- package/src/assets/font-awesome/less/mixins.less +0 -60
- package/src/assets/font-awesome/less/path.less +0 -15
- package/src/assets/font-awesome/less/rotated-flipped.less +0 -20
- package/src/assets/font-awesome/less/screen-reader.less +0 -5
- package/src/assets/font-awesome/less/stacked.less +0 -20
- package/src/assets/font-awesome/less/variables.less +0 -800
- package/src/assets/font-awesome/scss/_animated.scss +0 -34
- package/src/assets/font-awesome/scss/_bordered-pulled.scss +0 -25
- package/src/assets/font-awesome/scss/_core.scss +0 -12
- package/src/assets/font-awesome/scss/_fixed-width.scss +0 -6
- package/src/assets/font-awesome/scss/_icons.scss +0 -789
- package/src/assets/font-awesome/scss/_larger.scss +0 -13
- package/src/assets/font-awesome/scss/_list.scss +0 -19
- package/src/assets/font-awesome/scss/_mixins.scss +0 -60
- package/src/assets/font-awesome/scss/_path.scss +0 -15
- package/src/assets/font-awesome/scss/_rotated-flipped.scss +0 -20
- package/src/assets/font-awesome/scss/_screen-reader.scss +0 -5
- package/src/assets/font-awesome/scss/_stacked.scss +0 -20
- package/src/assets/font-awesome/scss/_variables.scss +0 -800
- package/src/assets/font-awesome/scss/font-awesome.scss +0 -18
- package/src/assets/fonts/DejaVuSans-Bold.ttf +0 -0
- package/src/assets/fonts/DejaVuSans-Oblique.ttf +0 -0
- package/src/assets/fonts/DejaVuSans.ttf +0 -0
- package/src/assets/fonts/Garuda.ttf +0 -0
- package/src/assets/fonts/NotoSansThaiUI-Regular.ttf +0 -0
- package/src/assets/fonts/TH-Charmonman-Regular.ttf +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.eot +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.svg +0 -288
- package/src/assets/fonts/glyphicons-halflings-regular.ttf +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.woff +0 -0
- package/src/assets/fonts/glyphicons-halflings-regular.woff2 +0 -0
- package/src/assets/fonts/kanit-v3-latin_latin-ext_thai-regular.ttf +0 -0
- package/src/assets/img/2c2p_169x60.png +0 -0
- package/src/assets/img/2c2p_169x60_black_header.png +0 -0
- package/src/assets/img/calendar_gray.png +0 -0
- package/src/assets/img/success.png +0 -0
- package/src/assets/img/user.png +0 -0
- package/src/assets/img/warning.png +0 -0
- package/src/assets/js/bootstrap.js +0 -2363
- package/src/assets/js/bootstrap.min.js +0 -7
- package/src/assets/js/demo/chartjs-demo.js +0 -217
- package/src/assets/js/demo/dashboard-demo.js +0 -117
- package/src/assets/js/demo/flot-demo.js +0 -308
- package/src/assets/js/demo/flot-demo2.js +0 -377
- package/src/assets/js/demo/morris-demo.js +0 -89
- package/src/assets/js/demo/peity-demo.js +0 -33
- package/src/assets/js/demo/rickshaw-demo.js +0 -103
- package/src/assets/js/demo/sparkline-demo.js +0 -51
- package/src/assets/js/inspinia.js +0 -301
- package/src/assets/js/jquery-2.1.1.js +0 -4
- package/src/assets/js/jquery-3.3.1.min.js +0 -2
- package/src/assets/js/jquery-ui-1.10.4.min.js +0 -7
- package/src/assets/js/jquery-ui.custom.min.js +0 -16
- package/src/assets/js/plugins/blueimp/jquery.blueimp-gallery.min.js +0 -1
- package/src/assets/js/plugins/bootstrap-datepicker/bootstrap-datepicker.min.js +0 -9
- package/src/assets/js/plugins/bootstrap-markdown/bootstrap-markdown.js +0 -1386
- package/src/assets/js/plugins/bootstrap-markdown/markdown.js +0 -1616
- package/src/assets/js/plugins/bootstrap-timepicker/bootstrap-timepicker.min.js +0 -5
- package/src/assets/js/plugins/bootstrapTour/bootstrap-tour.min.js +0 -22
- package/src/assets/js/plugins/c3/c3.min.js +0 -5
- package/src/assets/js/plugins/chartJs/Chart.min.js +0 -14
- package/src/assets/js/plugins/chartist/chartist.min.js +0 -9
- package/src/assets/js/plugins/chartist/chartist.min.js.map +0 -1
- package/src/assets/js/plugins/chosen/chosen.jquery.js +0 -1211
- package/src/assets/js/plugins/clipboard/clipboard.min.js +0 -7
- package/src/assets/js/plugins/clockpicker/clockpicker.js +0 -729
- package/src/assets/js/plugins/codemirror/codemirror.js +0 -7830
- package/src/assets/js/plugins/codemirror/mode/apl/apl.js +0 -175
- package/src/assets/js/plugins/codemirror/mode/apl/index.html +0 -72
- package/src/assets/js/plugins/codemirror/mode/asterisk/asterisk.js +0 -198
- package/src/assets/js/plugins/codemirror/mode/asterisk/index.html +0 -154
- package/src/assets/js/plugins/codemirror/mode/clike/clike.js +0 -474
- package/src/assets/js/plugins/codemirror/mode/clike/index.html +0 -225
- package/src/assets/js/plugins/codemirror/mode/clike/scala.html +0 -767
- package/src/assets/js/plugins/codemirror/mode/clojure/clojure.js +0 -243
- package/src/assets/js/plugins/codemirror/mode/clojure/index.html +0 -88
- package/src/assets/js/plugins/codemirror/mode/cobol/cobol.js +0 -255
- package/src/assets/js/plugins/codemirror/mode/cobol/index.html +0 -210
- package/src/assets/js/plugins/codemirror/mode/coffeescript/coffeescript.js +0 -369
- package/src/assets/js/plugins/codemirror/mode/coffeescript/index.html +0 -740
- package/src/assets/js/plugins/codemirror/mode/commonlisp/commonlisp.js +0 -120
- package/src/assets/js/plugins/codemirror/mode/commonlisp/index.html +0 -177
- package/src/assets/js/plugins/codemirror/mode/css/css.js +0 -717
- package/src/assets/js/plugins/codemirror/mode/css/index.html +0 -70
- package/src/assets/js/plugins/codemirror/mode/css/less.html +0 -152
- package/src/assets/js/plugins/codemirror/mode/css/less_test.js +0 -51
- package/src/assets/js/plugins/codemirror/mode/css/scss.html +0 -157
- package/src/assets/js/plugins/codemirror/mode/css/scss_test.js +0 -110
- package/src/assets/js/plugins/codemirror/mode/css/test.js +0 -135
- package/src/assets/js/plugins/codemirror/mode/cypher/cypher.js +0 -146
- package/src/assets/js/plugins/codemirror/mode/cypher/index.html +0 -63
- package/src/assets/js/plugins/codemirror/mode/d/d.js +0 -218
- package/src/assets/js/plugins/codemirror/mode/d/index.html +0 -273
- package/src/assets/js/plugins/codemirror/mode/diff/diff.js +0 -47
- package/src/assets/js/plugins/codemirror/mode/diff/index.html +0 -117
- package/src/assets/js/plugins/codemirror/mode/django/django.js +0 -67
- package/src/assets/js/plugins/codemirror/mode/django/index.html +0 -63
- package/src/assets/js/plugins/codemirror/mode/dtd/dtd.js +0 -142
- package/src/assets/js/plugins/codemirror/mode/dtd/index.html +0 -89
- package/src/assets/js/plugins/codemirror/mode/dylan/dylan.js +0 -299
- package/src/assets/js/plugins/codemirror/mode/dylan/index.html +0 -407
- package/src/assets/js/plugins/codemirror/mode/ecl/ecl.js +0 -207
- package/src/assets/js/plugins/codemirror/mode/ecl/index.html +0 -52
- package/src/assets/js/plugins/codemirror/mode/eiffel/eiffel.js +0 -162
- package/src/assets/js/plugins/codemirror/mode/eiffel/index.html +0 -429
- package/src/assets/js/plugins/codemirror/mode/erlang/erlang.js +0 -622
- package/src/assets/js/plugins/codemirror/mode/erlang/index.html +0 -76
- package/src/assets/js/plugins/codemirror/mode/fortran/fortran.js +0 -188
- package/src/assets/js/plugins/codemirror/mode/fortran/index.html +0 -81
- package/src/assets/js/plugins/codemirror/mode/gas/gas.js +0 -345
- package/src/assets/js/plugins/codemirror/mode/gas/index.html +0 -68
- package/src/assets/js/plugins/codemirror/mode/gfm/gfm.js +0 -122
- package/src/assets/js/plugins/codemirror/mode/gfm/index.html +0 -82
- package/src/assets/js/plugins/codemirror/mode/gfm/test.js +0 -164
- package/src/assets/js/plugins/codemirror/mode/gherkin/gherkin.js +0 -178
- package/src/assets/js/plugins/codemirror/mode/gherkin/index.html +0 -48
- package/src/assets/js/plugins/codemirror/mode/go/go.js +0 -184
- package/src/assets/js/plugins/codemirror/mode/go/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/groovy/groovy.js +0 -226
- package/src/assets/js/plugins/codemirror/mode/groovy/index.html +0 -84
- package/src/assets/js/plugins/codemirror/mode/haml/haml.js +0 -159
- package/src/assets/js/plugins/codemirror/mode/haml/index.html +0 -79
- package/src/assets/js/plugins/codemirror/mode/haml/test.js +0 -97
- package/src/assets/js/plugins/codemirror/mode/haskell/haskell.js +0 -267
- package/src/assets/js/plugins/codemirror/mode/haskell/index.html +0 -73
- package/src/assets/js/plugins/codemirror/mode/haxe/haxe.js +0 -518
- package/src/assets/js/plugins/codemirror/mode/haxe/index.html +0 -124
- package/src/assets/js/plugins/codemirror/mode/htmlembedded/htmlembedded.js +0 -86
- package/src/assets/js/plugins/codemirror/mode/htmlembedded/index.html +0 -58
- package/src/assets/js/plugins/codemirror/mode/htmlmixed/htmlmixed.js +0 -121
- package/src/assets/js/plugins/codemirror/mode/htmlmixed/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/http/http.js +0 -113
- package/src/assets/js/plugins/codemirror/mode/http/index.html +0 -45
- package/src/assets/js/plugins/codemirror/mode/index.html +0 -125
- package/src/assets/js/plugins/codemirror/mode/jade/index.html +0 -70
- package/src/assets/js/plugins/codemirror/mode/jade/jade.js +0 -590
- package/src/assets/js/plugins/codemirror/mode/javascript/index.html +0 -114
- package/src/assets/js/plugins/codemirror/mode/javascript/javascript.js +0 -684
- package/src/assets/js/plugins/codemirror/mode/javascript/json-ld.html +0 -72
- package/src/assets/js/plugins/codemirror/mode/javascript/test.js +0 -194
- package/src/assets/js/plugins/codemirror/mode/javascript/typescript.html +0 -61
- package/src/assets/js/plugins/codemirror/mode/jinja2/index.html +0 -54
- package/src/assets/js/plugins/codemirror/mode/jinja2/jinja2.js +0 -142
- package/src/assets/js/plugins/codemirror/mode/julia/index.html +0 -195
- package/src/assets/js/plugins/codemirror/mode/julia/julia.js +0 -301
- package/src/assets/js/plugins/codemirror/mode/kotlin/index.html +0 -89
- package/src/assets/js/plugins/codemirror/mode/kotlin/kotlin.js +0 -280
- package/src/assets/js/plugins/codemirror/mode/livescript/index.html +0 -459
- package/src/assets/js/plugins/codemirror/mode/livescript/livescript.js +0 -280
- package/src/assets/js/plugins/codemirror/mode/lua/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/lua/lua.js +0 -159
- package/src/assets/js/plugins/codemirror/mode/markdown/index.html +0 -359
- package/src/assets/js/plugins/codemirror/mode/markdown/markdown.js +0 -758
- package/src/assets/js/plugins/codemirror/mode/markdown/test.js +0 -754
- package/src/assets/js/plugins/codemirror/mode/meta.js +0 -144
- package/src/assets/js/plugins/codemirror/mode/mirc/index.html +0 -160
- package/src/assets/js/plugins/codemirror/mode/mirc/mirc.js +0 -193
- package/src/assets/js/plugins/codemirror/mode/mllike/index.html +0 -179
- package/src/assets/js/plugins/codemirror/mode/mllike/mllike.js +0 -205
- package/src/assets/js/plugins/codemirror/mode/modelica/index.html +0 -67
- package/src/assets/js/plugins/codemirror/mode/modelica/modelica.js +0 -245
- package/src/assets/js/plugins/codemirror/mode/nginx/index.html +0 -181
- package/src/assets/js/plugins/codemirror/mode/nginx/nginx.js +0 -178
- package/src/assets/js/plugins/codemirror/mode/ntriples/index.html +0 -45
- package/src/assets/js/plugins/codemirror/mode/ntriples/ntriples.js +0 -186
- package/src/assets/js/plugins/codemirror/mode/octave/index.html +0 -83
- package/src/assets/js/plugins/codemirror/mode/octave/octave.js +0 -135
- package/src/assets/js/plugins/codemirror/mode/pascal/index.html +0 -61
- package/src/assets/js/plugins/codemirror/mode/pascal/pascal.js +0 -109
- package/src/assets/js/plugins/codemirror/mode/pegjs/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/pegjs/pegjs.js +0 -114
- package/src/assets/js/plugins/codemirror/mode/perl/index.html +0 -75
- package/src/assets/js/plugins/codemirror/mode/perl/perl.js +0 -832
- package/src/assets/js/plugins/codemirror/mode/php/index.html +0 -64
- package/src/assets/js/plugins/codemirror/mode/php/php.js +0 -226
- package/src/assets/js/plugins/codemirror/mode/php/test.js +0 -154
- package/src/assets/js/plugins/codemirror/mode/pig/index.html +0 -55
- package/src/assets/js/plugins/codemirror/mode/pig/pig.js +0 -188
- package/src/assets/js/plugins/codemirror/mode/properties/index.html +0 -53
- package/src/assets/js/plugins/codemirror/mode/properties/properties.js +0 -78
- package/src/assets/js/plugins/codemirror/mode/puppet/index.html +0 -121
- package/src/assets/js/plugins/codemirror/mode/puppet/puppet.js +0 -220
- package/src/assets/js/plugins/codemirror/mode/python/index.html +0 -198
- package/src/assets/js/plugins/codemirror/mode/python/python.js +0 -359
- package/src/assets/js/plugins/codemirror/mode/q/index.html +0 -144
- package/src/assets/js/plugins/codemirror/mode/q/q.js +0 -139
- package/src/assets/js/plugins/codemirror/mode/r/index.html +0 -85
- package/src/assets/js/plugins/codemirror/mode/r/r.js +0 -162
- package/src/assets/js/plugins/codemirror/mode/rpm/changes/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/rpm/index.html +0 -149
- package/src/assets/js/plugins/codemirror/mode/rpm/rpm.js +0 -101
- package/src/assets/js/plugins/codemirror/mode/rst/index.html +0 -535
- package/src/assets/js/plugins/codemirror/mode/rst/rst.js +0 -557
- package/src/assets/js/plugins/codemirror/mode/ruby/index.html +0 -184
- package/src/assets/js/plugins/codemirror/mode/ruby/ruby.js +0 -285
- package/src/assets/js/plugins/codemirror/mode/ruby/test.js +0 -14
- package/src/assets/js/plugins/codemirror/mode/rust/index.html +0 -60
- package/src/assets/js/plugins/codemirror/mode/rust/rust.js +0 -451
- package/src/assets/js/plugins/codemirror/mode/sass/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/sass/sass.js +0 -327
- package/src/assets/js/plugins/codemirror/mode/scheme/index.html +0 -77
- package/src/assets/js/plugins/codemirror/mode/scheme/scheme.js +0 -248
- package/src/assets/js/plugins/codemirror/mode/shell/index.html +0 -66
- package/src/assets/js/plugins/codemirror/mode/shell/shell.js +0 -138
- package/src/assets/js/plugins/codemirror/mode/shell/test.js +0 -58
- package/src/assets/js/plugins/codemirror/mode/sieve/index.html +0 -93
- package/src/assets/js/plugins/codemirror/mode/sieve/sieve.js +0 -193
- package/src/assets/js/plugins/codemirror/mode/slim/index.html +0 -96
- package/src/assets/js/plugins/codemirror/mode/slim/slim.js +0 -575
- package/src/assets/js/plugins/codemirror/mode/slim/test.js +0 -96
- package/src/assets/js/plugins/codemirror/mode/smalltalk/index.html +0 -68
- package/src/assets/js/plugins/codemirror/mode/smalltalk/smalltalk.js +0 -168
- package/src/assets/js/plugins/codemirror/mode/smarty/index.html +0 -136
- package/src/assets/js/plugins/codemirror/mode/smarty/smarty.js +0 -221
- package/src/assets/js/plugins/codemirror/mode/smartymixed/index.html +0 -114
- package/src/assets/js/plugins/codemirror/mode/smartymixed/smartymixed.js +0 -197
- package/src/assets/js/plugins/codemirror/mode/solr/index.html +0 -57
- package/src/assets/js/plugins/codemirror/mode/solr/solr.js +0 -104
- package/src/assets/js/plugins/codemirror/mode/sparql/index.html +0 -53
- package/src/assets/js/plugins/codemirror/mode/sparql/sparql.js +0 -160
- package/src/assets/js/plugins/codemirror/mode/sql/index.html +0 -84
- package/src/assets/js/plugins/codemirror/mode/sql/sql.js +0 -393
- package/src/assets/js/plugins/codemirror/mode/stex/index.html +0 -110
- package/src/assets/js/plugins/codemirror/mode/stex/stex.js +0 -262
- package/src/assets/js/plugins/codemirror/mode/stex/test.js +0 -123
- package/src/assets/js/plugins/codemirror/mode/tcl/index.html +0 -142
- package/src/assets/js/plugins/codemirror/mode/tcl/tcl.js +0 -147
- package/src/assets/js/plugins/codemirror/mode/textile/index.html +0 -191
- package/src/assets/js/plugins/codemirror/mode/textile/test.js +0 -406
- package/src/assets/js/plugins/codemirror/mode/textile/textile.js +0 -553
- package/src/assets/js/plugins/codemirror/mode/tiddlywiki/index.html +0 -154
- package/src/assets/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.css +0 -14
- package/src/assets/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.js +0 -369
- package/src/assets/js/plugins/codemirror/mode/tiki/index.html +0 -95
- package/src/assets/js/plugins/codemirror/mode/tiki/tiki.css +0 -26
- package/src/assets/js/plugins/codemirror/mode/tiki/tiki.js +0 -323
- package/src/assets/js/plugins/codemirror/mode/toml/index.html +0 -73
- package/src/assets/js/plugins/codemirror/mode/toml/toml.js +0 -88
- package/src/assets/js/plugins/codemirror/mode/tornado/index.html +0 -63
- package/src/assets/js/plugins/codemirror/mode/tornado/tornado.js +0 -68
- package/src/assets/js/plugins/codemirror/mode/turtle/index.html +0 -50
- package/src/assets/js/plugins/codemirror/mode/turtle/turtle.js +0 -160
- package/src/assets/js/plugins/codemirror/mode/vb/index.html +0 -102
- package/src/assets/js/plugins/codemirror/mode/vb/vb.js +0 -274
- package/src/assets/js/plugins/codemirror/mode/vbscript/index.html +0 -55
- package/src/assets/js/plugins/codemirror/mode/vbscript/vbscript.js +0 -350
- package/src/assets/js/plugins/codemirror/mode/velocity/index.html +0 -118
- package/src/assets/js/plugins/codemirror/mode/velocity/velocity.js +0 -201
- package/src/assets/js/plugins/codemirror/mode/verilog/index.html +0 -120
- package/src/assets/js/plugins/codemirror/mode/verilog/test.js +0 -273
- package/src/assets/js/plugins/codemirror/mode/verilog/verilog.js +0 -364
- package/src/assets/js/plugins/codemirror/mode/xml/index.html +0 -57
- package/src/assets/js/plugins/codemirror/mode/xml/test.js +0 -51
- package/src/assets/js/plugins/codemirror/mode/xml/xml.js +0 -384
- package/src/assets/js/plugins/codemirror/mode/xquery/index.html +0 -210
- package/src/assets/js/plugins/codemirror/mode/xquery/test.js +0 -67
- package/src/assets/js/plugins/codemirror/mode/xquery/xquery.js +0 -447
- package/src/assets/js/plugins/codemirror/mode/yaml/index.html +0 -80
- package/src/assets/js/plugins/codemirror/mode/yaml/yaml.js +0 -112
- package/src/assets/js/plugins/codemirror/mode/z80/index.html +0 -52
- package/src/assets/js/plugins/codemirror/mode/z80/z80.js +0 -100
- package/src/assets/js/plugins/colorpicker/bootstrap-colorpicker.min.js +0 -1
- package/src/assets/js/plugins/cropper/cropper.min.js +0 -9
- package/src/assets/js/plugins/d3/d3.min.js +0 -5
- package/src/assets/js/plugins/dataTables/datatables.min.js +0 -336
- package/src/assets/js/plugins/datapicker/bootstrap-datepicker.js +0 -1671
- package/src/assets/js/plugins/datatables.net/jquery.dataTables.js +0 -15344
- package/src/assets/js/plugins/daterangepicker/daterangepicker.js +0 -1304
- package/src/assets/js/plugins/diff_match_patch/COPYING +0 -177
- package/src/assets/js/plugins/diff_match_patch/README.txt +0 -43
- package/src/assets/js/plugins/diff_match_patch/javascript/diff_match_patch.js +0 -49
- package/src/assets/js/plugins/dotdotdot/jquery.dotdotdot.min.js +0 -13
- package/src/assets/js/plugins/dropzone/dropzone.js +0 -1841
- package/src/assets/js/plugins/easypiechart/easypiechart.js +0 -350
- package/src/assets/js/plugins/easypiechart/jquery.easypiechart.js +0 -359
- package/src/assets/js/plugins/flot/curvedLines.js +0 -315
- package/src/assets/js/plugins/flot/excanvas.min.js +0 -1
- package/src/assets/js/plugins/flot/jquery.flot.js +0 -3168
- package/src/assets/js/plugins/flot/jquery.flot.pie.js +0 -820
- package/src/assets/js/plugins/flot/jquery.flot.resize.js +0 -59
- package/src/assets/js/plugins/flot/jquery.flot.spline.js +0 -212
- package/src/assets/js/plugins/flot/jquery.flot.symbol.js +0 -71
- package/src/assets/js/plugins/flot/jquery.flot.time.js +0 -432
- package/src/assets/js/plugins/flot/jquery.flot.tooltip.min.js +0 -12
- package/src/assets/js/plugins/footable/footable.all.min.js +0 -14
- package/src/assets/js/plugins/fullcalendar/fullcalendar.min.js +0 -8
- package/src/assets/js/plugins/fullcalendar/moment.min.js +0 -7
- package/src/assets/js/plugins/gritter/images/gritter-light.png +0 -0
- package/src/assets/js/plugins/gritter/images/gritter-long.png +0 -0
- package/src/assets/js/plugins/gritter/images/gritter.png +0 -0
- package/src/assets/js/plugins/gritter/images/ie-spacer.gif +0 -0
- package/src/assets/js/plugins/gritter/jquery.gritter.css +0 -137
- package/src/assets/js/plugins/gritter/jquery.gritter.min.js +0 -1
- package/src/assets/js/plugins/i18next/i18next.min.js +0 -7
- package/src/assets/js/plugins/iCheck/icheck.min.js +0 -11
- package/src/assets/js/plugins/idle-timer/idle-timer.min.js +0 -2
- package/src/assets/js/plugins/ionRangeSlider/ion.rangeSlider.min.js +0 -26
- package/src/assets/js/plugins/jasny/jasny-bootstrap.min.js +0 -6
- package/src/assets/js/plugins/jeditable/jquery.jeditable.js +0 -543
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ar.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-bg.js +0 -134
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-bg1251.js +0 -132
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-cat.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-cn.js +0 -169
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-cs.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-da.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-de.js +0 -173
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-dk.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-el.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-en.js +0 -170
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-es.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-fa.js +0 -147
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-fi.js +0 -131
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-fr.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-gl.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-he.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-hr.js +0 -164
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-hr1250.js +0 -164
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-hu.js +0 -131
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-id.js +0 -170
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-is.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-it.js +0 -1
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ja.js +0 -158
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-kr.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-lt.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-mne.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-nl.js +0 -150
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-no.js +0 -1
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-pl.js +0 -134
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-pt-br.js +0 -137
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-pt.js +0 -127
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ro.js +0 -141
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ru.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sk.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sr-latin.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sr.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-sv.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-th.js +0 -130
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-tr.js +0 -128
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-tw.js +0 -131
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-ua.js +0 -129
- package/src/assets/js/plugins/jqGrid/i18n/grid.locale-vi.js +0 -170
- package/src/assets/js/plugins/jqGrid/jquery.jqGrid.min.js +0 -545
- package/src/assets/js/plugins/jquery-ui/i18n/jquery-ui-i18n.min.js +0 -6
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +0 -4
- package/src/assets/js/plugins/jquery-ui/images/animated-overlay.gif +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- package/src/assets/js/plugins/jquery-ui/jquery-ui.css +0 -1189
- package/src/assets/js/plugins/jquery-ui/jquery-ui.js +0 -15040
- package/src/assets/js/plugins/jquery-ui/jquery-ui.min.css +0 -4
- package/src/assets/js/plugins/jquery-ui/jquery-ui.min.js +0 -12
- package/src/assets/js/plugins/jsKnob/jquery.knob.js +0 -791
- package/src/assets/js/plugins/jsTree/jstree.min.js +0 -5
- package/src/assets/js/plugins/justified-gallery/README.md +0 -14
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.css +0 -73
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.js +0 -258
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.min.css +0 -17
- package/src/assets/js/plugins/justified-gallery/jquery.justifiedgallery.min.js +0 -24
- package/src/assets/js/plugins/justified-gallery/loading.gif +0 -0
- package/src/assets/js/plugins/jvectormap/jquery-jvectormap-2.0.2.css +0 -130
- package/src/assets/js/plugins/jvectormap/jquery-jvectormap-2.0.2.min.js +0 -3328
- package/src/assets/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +0 -1
- package/src/assets/js/plugins/ladda/ladda.jquery.min.js +0 -8
- package/src/assets/js/plugins/ladda/ladda.min.js +0 -8
- package/src/assets/js/plugins/ladda/spin.min.js +0 -1
- package/src/assets/js/plugins/masonary/masonry.pkgd.min.js +0 -9
- package/src/assets/js/plugins/metisMenu/jquery.metisMenu.js +0 -10
- package/src/assets/js/plugins/morris/morris.js +0 -1892
- package/src/assets/js/plugins/morris/raphael-2.1.0.min.js +0 -10
- package/src/assets/js/plugins/nestable/jquery.nestable.js +0 -484
- package/src/assets/js/plugins/nouslider/jquery.nouislider.min.js +0 -34
- package/src/assets/js/plugins/pace/pace.min.js +0 -2
- package/src/assets/js/plugins/peity/jquery.peity.min.js +0 -13
- package/src/assets/js/plugins/preetyTextDiff/jquery.pretty-text-diff.min.js +0 -76
- package/src/assets/js/plugins/rickshaw/rickshaw.min.js +0 -3
- package/src/assets/js/plugins/rickshaw/vendor/d3.v3.js +0 -5
- package/src/assets/js/plugins/select2/select2.full.min.js +0 -3
- package/src/assets/js/plugins/slick/slick.min.js +0 -18
- package/src/assets/js/plugins/slimscroll/jquery.slimscroll.js +0 -474
- package/src/assets/js/plugins/slimscroll/jquery.slimscroll.min.js +0 -16
- package/src/assets/js/plugins/sparkline/jquery.sparkline.min.js +0 -5
- package/src/assets/js/plugins/staps/jquery.steps.min.js +0 -6
- package/src/assets/js/plugins/summernote/summernote.min.js +0 -2
- package/src/assets/js/plugins/sweetalert/sweetalert.min.js +0 -1
- package/src/assets/js/plugins/switchery/switchery.js +0 -1
- package/src/assets/js/plugins/tinycon/tinycon.min.js +0 -8
- package/src/assets/js/plugins/toastr/toastr.min.js +0 -2
- package/src/assets/js/plugins/touchspin/jquery.bootstrap-touchspin.min.js +0 -9
- package/src/assets/js/plugins/validate/jquery.validate.min.js +0 -4
- package/src/assets/js/plugins/video/responsible-video.js +0 -21
- package/src/assets/js/plugins/wow/wow.min.js +0 -2
- package/src/environment.ts +0 -24
- package/src/index.html +0 -23
- package/src/main.ts +0 -10
- package/src/polyfills.ts +0 -3
- package/src/tsconfig.json +0 -21
- package/src/vendor.ts +0 -32
- package/tslint.json +0 -93
- package/types.d.ts +0 -0
- package/web.config +0 -34
- package/webpack.config.js +0 -1
|
@@ -1,1353 +0,0 @@
|
|
|
1
|
-
import { Constants } from '../constants/constants';
|
|
2
|
-
import { SharedService } from '../service/shared.service';
|
|
3
|
-
import { Router } from '@angular/router';
|
|
4
|
-
import { Injectable } from '@angular/core';
|
|
5
|
-
import { Location } from '@angular/common';
|
|
6
|
-
import { NgZone, SecurityContext } from '@angular/core';
|
|
7
|
-
import { IntlService, NumberPipe } from '@progress/kendo-angular-intl';
|
|
8
|
-
import { GridComponent } from '@progress/kendo-angular-grid';
|
|
9
|
-
import { saveAs, encodeBase64 } from '@progress/kendo-file-saver';
|
|
10
|
-
import { Alerts } from '../alerts/alerts';
|
|
11
|
-
import { AuditLogInsertModel } from '../../models/audit-log-insert.model';
|
|
12
|
-
import { NavigationData } from '../../models/navigation-data.model';
|
|
13
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
14
|
-
import { Session } from 'selenium-webdriver';
|
|
15
|
-
import { THIS_EXPR } from '@angular/compiler/src/output/output_ast';
|
|
16
|
-
import { ActivatedRouteSnapshot } from '@angular/router';
|
|
17
|
-
import { modelGroupProvider } from '@angular/forms/src/directives/ng_model_group';
|
|
18
|
-
import { constants } from 'os';
|
|
19
|
-
import { filter } from 'rxjs/operator/filter';
|
|
20
|
-
|
|
21
|
-
declare const google: any;
|
|
22
|
-
declare const gapi: any;
|
|
23
|
-
|
|
24
|
-
// Common class
|
|
25
|
-
@Injectable()
|
|
26
|
-
export class Common {
|
|
27
|
-
public toggleCSVFile: boolean = false;
|
|
28
|
-
public togglePDFFile: boolean = false;
|
|
29
|
-
public toggleExcelFile: boolean = false;
|
|
30
|
-
public isExportFile: boolean = false;
|
|
31
|
-
|
|
32
|
-
public ALLOWED_IMAGE_EXTENSIONS: Array<string> = ['.jpg', '.gif', '.png'];
|
|
33
|
-
public numberFieldValidCodeList: string[] = ['Backspace', 'ArrowDown', 'ArrowUp', 'ArrowLeft',
|
|
34
|
-
'ArrowRight', 'Home', 'End', 'Delete'];
|
|
35
|
-
public datepickerFromOpts: any = {
|
|
36
|
-
autoclose: true, todayHighlight: true, format: Constants.DATE_FORMAT, startDate: new Date(Constants.DEFAULT_START_DATE),
|
|
37
|
-
placeholder: Constants.DATE_FORMAT, icon: 'fa fa-calendar fa-4'
|
|
38
|
-
};
|
|
39
|
-
public datepickerToOpts: any = {
|
|
40
|
-
autoclose: true, todayHighlight: true, format: Constants.DATE_FORMAT, startDate: new Date(Constants.DEFAULT_START_DATE),
|
|
41
|
-
placeholder: Constants.DATE_FORMAT, icon: 'fa fa-calendar fa-4'
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
// 46-delete,13-enter, all arrow,home,end:37,39,38,40,36, backspace- 8
|
|
45
|
-
public numericKeyCodeList = [8, 57, 37, 39, 38, 40, 36, 35, 13, 46];
|
|
46
|
-
// default pageSize for grid
|
|
47
|
-
public pageSizes = [25, 50, 100];
|
|
48
|
-
public defaultPageSize = Constants.DEFAULT_PAGE_SIZE;
|
|
49
|
-
public dateFormat: string = Constants.DATE_FORMAT;
|
|
50
|
-
public titleList: any[] = [{ desc: 'Mr.', value: 'Mr.' },
|
|
51
|
-
{ desc: 'Mrs.', value: 'Mrs.' },
|
|
52
|
-
{ desc: 'Ms.', value: 'Ms.' }];
|
|
53
|
-
public proxyURL = `${this.sharedService.appConfig.api_base_url}${Constants.SAVE_FILE_API_URL}`;
|
|
54
|
-
public userGroupPermissionMessage: string = `You don't have permission to view this page.`;
|
|
55
|
-
public permissionMessage: string = `You don't have permission to perform this operation.`;
|
|
56
|
-
public imageFileType = ['jpg', 'jpeg', 'gif', 'png'];
|
|
57
|
-
public attachFileType = ['jpg', 'jpeg', 'gif', 'png', 'pdf'];
|
|
58
|
-
public maskFormat = Constants.MASK_FORMAT;
|
|
59
|
-
public walletMaskIndex = Constants.WALLET_MASK_INDEX;
|
|
60
|
-
public contorlKeyList = ['KeyV', 'KeyC', 'KeyX', 'KeyA'];
|
|
61
|
-
public navigationData: NavigationData = new NavigationData();
|
|
62
|
-
public domSanitizer: any;
|
|
63
|
-
public routeAfter: ActivatedRouteSnapshot;
|
|
64
|
-
public selectedRoot: string;
|
|
65
|
-
public dateOfBirthTypeList: any[] = [{ desc: 'Date/Month/Year', value: 0 },
|
|
66
|
-
{ desc: 'Month/Year', value: 1 },
|
|
67
|
-
{ desc: 'Year', value: 2 }];
|
|
68
|
-
|
|
69
|
-
constructor(public router: Router, public sharedService: SharedService, public location: Location,
|
|
70
|
-
private intlService: IntlService, private ngZone: NgZone, public alert: Alerts, sanitizer: DomSanitizer,
|
|
71
|
-
private numberPipe: NumberPipe
|
|
72
|
-
) {
|
|
73
|
-
this.domSanitizer = sanitizer;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
public loading: boolean = false;
|
|
77
|
-
|
|
78
|
-
public centerPopup() {
|
|
79
|
-
if ($('.modal-dialog').length) {
|
|
80
|
-
if ($('body').hasClass('mini-navbar') || $('body').hasClass('body-small')) {
|
|
81
|
-
$('.modal-dialog').css('margin-left', 0);
|
|
82
|
-
} else {
|
|
83
|
-
let navbarWidth = $('.navbar-default').width();
|
|
84
|
-
$('.modal-dialog').css('margin-left', navbarWidth);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
public setProfileImage(profileImage: any) {
|
|
90
|
-
if (profileImage) {
|
|
91
|
-
$('#profileImage').attr('src', profileImage);
|
|
92
|
-
$('#profileThumbnail').addClass('hide');
|
|
93
|
-
$('#profileImage').removeClass('hide');
|
|
94
|
-
} else {
|
|
95
|
-
$('#profileThumbnail').removeClass('hide');
|
|
96
|
-
$('#profileImage').addClass('hide');
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
public redirectToLogin(skipTimeout?: boolean) {
|
|
101
|
-
let timeout: number = Constants.TIMEOUT;
|
|
102
|
-
if (skipTimeout) {
|
|
103
|
-
timeout = 0;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// fixed for slide menu
|
|
107
|
-
if ($('body').hasClass('mini-navbar')) {
|
|
108
|
-
$('body').toggleClass('mini-navbar');
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// navigate to login page
|
|
112
|
-
setTimeout(() => { this.router.navigate([Constants.LOGIN]); }, timeout);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
public goToPreviousPage(isSetTimeOut?: boolean): any {
|
|
116
|
-
if (isSetTimeOut) {
|
|
117
|
-
return setTimeout(() => {
|
|
118
|
-
this.location.back();
|
|
119
|
-
}, Constants.TIMEOUT);
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
this.location.back();
|
|
123
|
-
return 0;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
public setPageTitle(rootPageTitle: string,
|
|
128
|
-
rootPageURL: string,
|
|
129
|
-
currentPageTitle: string,
|
|
130
|
-
currentPageURL: string,
|
|
131
|
-
childPageTitle?: string,
|
|
132
|
-
childPageURL?: string,
|
|
133
|
-
backPageURL?: string,
|
|
134
|
-
isPreviousPageURL?: boolean,
|
|
135
|
-
subChildPageTitle?: string,
|
|
136
|
-
subChildPageURL?: string) {
|
|
137
|
-
// set page title and url
|
|
138
|
-
this.sharedService.rootPageTitle = rootPageTitle;
|
|
139
|
-
this.sharedService.rootPageURL = rootPageURL;
|
|
140
|
-
this.sharedService.currentPageTitle = currentPageTitle;
|
|
141
|
-
this.sharedService.currentPageURL = currentPageURL;
|
|
142
|
-
this.sharedService.childPageTitle = childPageTitle ? childPageTitle : '';
|
|
143
|
-
this.sharedService.childPageURL = childPageURL ? childPageURL : '';
|
|
144
|
-
this.sharedService.backPageURL = backPageURL ? backPageURL : '';
|
|
145
|
-
this.sharedService.isPreviousPageURL = backPageURL ? isPreviousPageURL : true;
|
|
146
|
-
this.sharedService.subChildPageTitle = subChildPageTitle;
|
|
147
|
-
this.sharedService.subChildPageURL = subChildPageURL;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
public saveProfileImage(profileImage: any) {
|
|
151
|
-
this.sharedService.setProperty('profileImage', profileImage);
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
public getImageString(imgStr: string) {
|
|
155
|
-
return imgStr ? imgStr.split('base64,')[1] : null;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
public getCurrentUser(): any {
|
|
159
|
-
return this.sharedService.CurrentUser ? this.sharedService.CurrentUser : null;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
public setCurrentUser(currentUser: any): any {
|
|
163
|
-
if (currentUser) {
|
|
164
|
-
return this.sharedService.setProperty(Constants.CURRENT_USER_KEY, currentUser);
|
|
165
|
-
}
|
|
166
|
-
return null;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
public getCurrentUserUniqueID(): any {
|
|
170
|
-
return this.sharedService.CurrentUser ? this.sharedService.CurrentUser.userUniqueId : null;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
public getCurrentUserGroupId(): any {
|
|
174
|
-
return this.sharedService.CurrentUser ? this.sharedService.CurrentUser.userGroupId : null;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
public getCurrentUserGroup(): any {
|
|
178
|
-
let userGroup = this.sharedService.CurrentUserGroup;
|
|
179
|
-
if (userGroup) {
|
|
180
|
-
return JSON.parse(atob(userGroup));
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
public isLoginWithInternalURL() {
|
|
185
|
-
return this.sharedService.CurrentUser ? this.sharedService.CurrentUser.loginWithInternalURL : null;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
public getCurrentUsername(): any {
|
|
189
|
-
return this.sharedService.CurrentUser ? this.sharedService.CurrentUser.userId : null;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
public getCompanyId() {
|
|
193
|
-
return this.sharedService.CurrentUser.companyId ? this.sharedService.CurrentUser.companyId : null;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
public getCompanyUniqueId() {
|
|
197
|
-
return this.sharedService.CurrentUser.companyUniqueId ? this.sharedService.CurrentUser.companyUniqueId : null;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
public getMenuList() {
|
|
201
|
-
return this.sharedService.MenuList ? JSON.parse(this.sharedService.MenuList) : null;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
public getAuditTypeList() {
|
|
205
|
-
return this.sharedService.AuditLogTypeList ? JSON.parse(this.sharedService.AuditLogTypeList) : null;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
public convertDateStringFormat(dateTo: Date, dateFormat: string) {
|
|
209
|
-
if (dateTo) {
|
|
210
|
-
return this.intlService.formatDate(dateTo, dateFormat);
|
|
211
|
-
}
|
|
212
|
-
return null;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
public parseStringDateToFormat(strDate: string, format: string) {
|
|
216
|
-
if (strDate) {
|
|
217
|
-
return this.intlService.parseDate(strDate, format);
|
|
218
|
-
}
|
|
219
|
-
return null;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
public setDateTo(value: Date) {
|
|
223
|
-
this.datepickerToOpts = {
|
|
224
|
-
startDate: value,
|
|
225
|
-
autoclose: true,
|
|
226
|
-
todayHighlight: true,
|
|
227
|
-
format: Constants.DATE_FORMAT,
|
|
228
|
-
placeholder: Constants.DATE_FORMAT,
|
|
229
|
-
icon: 'fa fa-calendar fa-4'
|
|
230
|
-
};
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
public togglePopup(event: any) {
|
|
234
|
-
let popupElement = $(event.currentTarget).next('.toggle-popup').find('.popup');
|
|
235
|
-
let exportButton = $('.btn-export');
|
|
236
|
-
this.isExportFile = false;
|
|
237
|
-
if (exportButton.is(event.currentTarget)) {
|
|
238
|
-
$('#field-popup').removeClass('active');
|
|
239
|
-
if (popupElement.hasClass('active')) {
|
|
240
|
-
this.isExportFile = true;
|
|
241
|
-
} else {
|
|
242
|
-
this.toggleExcelFile = false;
|
|
243
|
-
this.togglePDFFile = false;
|
|
244
|
-
this.toggleCSVFile = false;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
else {
|
|
248
|
-
$('#export-popup').removeClass('active');
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
let topMargin = $(event.currentTarget).position().top + $(event.currentTarget).outerHeight();
|
|
252
|
-
popupElement.css('top', topMargin);
|
|
253
|
-
popupElement.toggleClass('active');
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
public onlyNumberKey(event: any, isDecimal?: boolean) {
|
|
257
|
-
if (event) {
|
|
258
|
-
let pattern = isDecimal ? new RegExp(`^([0-9\.]*)*$`) : new RegExp('^([0-9]*)*$');
|
|
259
|
-
if ((event.key && event.key.length > 1)
|
|
260
|
-
|| ($.inArray(event.code, this.contorlKeyList) !== -1 && event.ctrlKey)) {
|
|
261
|
-
return true;
|
|
262
|
-
}
|
|
263
|
-
else {
|
|
264
|
-
return pattern.test(event.key);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
return false;
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
// accept only numbers
|
|
271
|
-
public validateDecimalLength(event: any, maxIntegerLength: number, maxFractionalLength: number) {
|
|
272
|
-
let value = event.currentTarget.value;
|
|
273
|
-
if (value) {
|
|
274
|
-
if (!this.onlyNumberKey(event, true)) {
|
|
275
|
-
return false;
|
|
276
|
-
}
|
|
277
|
-
let startPosition = event.currentTarget.selectionStart;
|
|
278
|
-
let endPosition = event.currentTarget.selectionEnd;
|
|
279
|
-
let output = startPosition == endPosition ? [value.slice(0, startPosition), event.key, value.slice(startPosition)].join('') : value;
|
|
280
|
-
let count = this.occurence(output, '.');
|
|
281
|
-
if (count > 1) {
|
|
282
|
-
return false;
|
|
283
|
-
}
|
|
284
|
-
let splitedData = output.split('.');
|
|
285
|
-
let integerPart = splitedData[0];
|
|
286
|
-
let fractionalPart = splitedData[1];
|
|
287
|
-
if (integerPart && integerPart.length > maxIntegerLength) {
|
|
288
|
-
return false;
|
|
289
|
-
} else if (fractionalPart && fractionalPart.length > maxFractionalLength) {
|
|
290
|
-
return false;
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
return true;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
// accept only numbers
|
|
297
|
-
public validateIntegerLength(event: any, maxIntegerLength: number) {
|
|
298
|
-
let value = event.currentTarget.value;
|
|
299
|
-
if (value) {
|
|
300
|
-
if (!this.onlyNumberKey(event, false)) {
|
|
301
|
-
return false;
|
|
302
|
-
}
|
|
303
|
-
let startPosition = event.currentTarget.selectionStart;
|
|
304
|
-
let endPosition = event.currentTarget.selectionEnd;
|
|
305
|
-
let output = startPosition == endPosition ? [value.slice(0, startPosition), event.key, value.slice(startPosition)].join('') : value;
|
|
306
|
-
if (output.length > maxIntegerLength) {
|
|
307
|
-
return false;
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
return true;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
public occurence(str: any, letter: any) {
|
|
314
|
-
let count: number;
|
|
315
|
-
for (var i = count = 0; i < str.length; count += +(letter === str[i++]));
|
|
316
|
-
return count;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
// hide Field Popup on document click(column hide show popup)
|
|
320
|
-
public hideFieldPopup() {
|
|
321
|
-
$(document.body).mouseup(function (e) {
|
|
322
|
-
let popup = $('.custom-popup');
|
|
323
|
-
if (popup.length && !$('.btn-toggle .fa-list').is(e.target) && !$('.btn-toggle .k-i-file-excel').is(e.target)
|
|
324
|
-
&& !$('.btn-toggle').is(e.target) && !popup.is(e.target) && popup.has(e.target).length === 0) {
|
|
325
|
-
$('.popup').removeClass('active');
|
|
326
|
-
}
|
|
327
|
-
});
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
// export To PDF
|
|
331
|
-
public exportToSelectedFiles(grid: GridComponent, url?: string, fileName?: string, model?: any, toggleColumnModel?: any,
|
|
332
|
-
isFromSearch?: boolean, requestType?: string, filterModel?: any, summaryModel?: any): void {
|
|
333
|
-
|
|
334
|
-
if (this.isExportFile && this.togglePDFFile && url && fileName) {
|
|
335
|
-
fileName = `${fileName}${Constants.PDF_FILE_EXTENSION}`;
|
|
336
|
-
const dataURI = Constants.Text_DATA_FORMAT + encodeBase64(Constants.STRING_EMPTY);
|
|
337
|
-
let proxyURL = `${this.sharedService.appConfig.api_base_url}${Constants.SAVE_PDF_FILE_API_URL}`;
|
|
338
|
-
let token = this.getToken() ? this.getToken().replace('bearer ', '') : null;
|
|
339
|
-
let searchModel = model ? JSON.stringify(model) : null;
|
|
340
|
-
let columnModel = toggleColumnModel ? JSON.stringify(toggleColumnModel) : null;
|
|
341
|
-
let isSearchURL = isFromSearch ? Constants.FROM_SEARCH : Constants.STRING_EMPTY;
|
|
342
|
-
saveAs(dataURI, fileName, {
|
|
343
|
-
proxyURL: proxyURL,
|
|
344
|
-
forceProxy: true,
|
|
345
|
-
proxyData: {
|
|
346
|
-
Token: token,
|
|
347
|
-
URL: url,
|
|
348
|
-
Model: searchModel,
|
|
349
|
-
ToggleColumnModel: columnModel,
|
|
350
|
-
IsFromSearch: isSearchURL,
|
|
351
|
-
RequestType: requestType,
|
|
352
|
-
FilterModel: filterModel ? JSON.stringify(filterModel) : null,
|
|
353
|
-
SummaryModel: summaryModel ? JSON.stringify(summaryModel) : null
|
|
354
|
-
},
|
|
355
|
-
proxyTarget: Constants.INLINE
|
|
356
|
-
});
|
|
357
|
-
}
|
|
358
|
-
}
|
|
359
|
-
|
|
360
|
-
public previousDaysToDate(value: Date, days: number) {
|
|
361
|
-
if (value) {
|
|
362
|
-
let newDate = new Date(value);
|
|
363
|
-
newDate.setDate(newDate.getDate() - days);
|
|
364
|
-
let endDate = (newDate.getMonth() + 1) + '/' + newDate.getDate() + '/' + newDate.getFullYear();
|
|
365
|
-
return new Date(endDate);
|
|
366
|
-
}
|
|
367
|
-
return null;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
public selectCheckbox() {
|
|
371
|
-
let classObj = this;
|
|
372
|
-
$('.toggle-popup:not(.field-popup) .k-item').click(function (event: any) {
|
|
373
|
-
event.stopPropagation();
|
|
374
|
-
});
|
|
375
|
-
|
|
376
|
-
$('.toggle-popup:not(.field-popup) input[type="checkbox"]').click(function (event: any) {
|
|
377
|
-
event.stopPropagation();
|
|
378
|
-
classObj.validateCheckboxSelect($(this), true);
|
|
379
|
-
});
|
|
380
|
-
|
|
381
|
-
$('.toggle-popup:not(.field-popup) .k-link').click(function (event: any) {
|
|
382
|
-
event.stopPropagation();
|
|
383
|
-
classObj.validateCheckboxSelect($(this), false);
|
|
384
|
-
});
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
validateCheckboxSelect(thisElement: any, isCheckbox: boolean) {
|
|
388
|
-
let parentElement = thisElement.closest('#field-popup');
|
|
389
|
-
let isChecked = false;
|
|
390
|
-
if (parentElement && parentElement.length) {
|
|
391
|
-
let totalCheckCheckbox = parentElement.find('input[type="checkbox"]:checked').length;
|
|
392
|
-
if (isCheckbox) {
|
|
393
|
-
if (!totalCheckCheckbox) {
|
|
394
|
-
thisElement.prop('checked', true);
|
|
395
|
-
}
|
|
396
|
-
} else {
|
|
397
|
-
isChecked = thisElement.find('input[type="checkbox"]').prop('checked');
|
|
398
|
-
if (totalCheckCheckbox !== 1 || !isChecked) {
|
|
399
|
-
thisElement.find('input[type="checkbox"]').click();
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
} else if (!isCheckbox) {
|
|
403
|
-
isChecked = thisElement.find('input[type="checkbox"]').prop('checked');
|
|
404
|
-
thisElement.find('input[type="checkbox"]').click();
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
public validateNumberTextField(value: any, isDecimal: boolean) {
|
|
409
|
-
let number = value.target.value + value.key;
|
|
410
|
-
if (!isDecimal && (value.code === 'NumpadDecimal' || value.code === 'Period')) {
|
|
411
|
-
return false;
|
|
412
|
-
} else if ($.inArray(value.code, this.numberFieldValidCodeList) !== -1) {
|
|
413
|
-
return true;
|
|
414
|
-
} else if (isDecimal) {
|
|
415
|
-
if (number.indexOf('.') > 0) {
|
|
416
|
-
let splitNumber: any[] = number.split('.');
|
|
417
|
-
let amountDigit: any = splitNumber[0];
|
|
418
|
-
let decimalDigit: any = splitNumber[1];
|
|
419
|
-
if (amountDigit.length < 10 && decimalDigit.length < 3) {
|
|
420
|
-
return true;
|
|
421
|
-
}
|
|
422
|
-
} else if (number.indexOf('.') === -1 && number.length < 10) {
|
|
423
|
-
return true;
|
|
424
|
-
}
|
|
425
|
-
} else if (number.length < 10) {
|
|
426
|
-
return true;
|
|
427
|
-
}
|
|
428
|
-
return false;
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
public getGroupTypeDescription(groupType: string) {
|
|
432
|
-
groupType = groupType ? groupType.toUpperCase() : null;
|
|
433
|
-
return (groupType === Constants.MAKER_ID) ? Constants.MAKER_DESCRIPTION :
|
|
434
|
-
(groupType === Constants.CHECKER_ID ? Constants.CHECKER_DESCRIPTION : Constants.READONLY_DESCRIPTION);
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
public saveFile(fileName: string, data: any) {
|
|
438
|
-
const dataURI = 'data:text/plain;base64,' + encodeBase64(data);
|
|
439
|
-
let proxyURL = `${this.sharedService.appConfig.api_base_url}${Constants.SAVE_FILE_API_URL}`;
|
|
440
|
-
saveAs(dataURI, fileName, {
|
|
441
|
-
proxyURL: proxyURL,
|
|
442
|
-
forceProxy: true
|
|
443
|
-
});
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
public removePropertyFromJSON(response: any) {
|
|
447
|
-
try {
|
|
448
|
-
delete response['resDescriptionEN'];
|
|
449
|
-
delete response['resDescriptionTH'];
|
|
450
|
-
delete response['responseCode'];
|
|
451
|
-
return response;
|
|
452
|
-
}
|
|
453
|
-
catch (error) {
|
|
454
|
-
return response;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
|
|
458
|
-
public getURL(url: any, pageNo: number, pageSize: number, totalRecords: number) {
|
|
459
|
-
let updateUrl = '';
|
|
460
|
-
let pageNoParameter = 'pageNo=' + pageNo;
|
|
461
|
-
let pageSizeParameter = 'pageSize=' + pageSize;
|
|
462
|
-
updateUrl = url.replace(pageNoParameter, 'pageNo=1');
|
|
463
|
-
updateUrl = updateUrl.replace(pageSizeParameter, 'pageSize=' + totalRecords);
|
|
464
|
-
return updateUrl;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
public exportToCSVFile(url?: string,
|
|
468
|
-
fileName?: string,
|
|
469
|
-
model?: any,
|
|
470
|
-
toggleColumnModel?: any,
|
|
471
|
-
isFromSearch?: boolean,
|
|
472
|
-
requestType?: string,
|
|
473
|
-
baseUrl?: string,
|
|
474
|
-
filterModel?: any,
|
|
475
|
-
summaryModel?: any) {
|
|
476
|
-
let dataURI = Constants.CSV_DATA_URI_FORMAT + encodeBase64('');
|
|
477
|
-
let token = (this.getToken() && !baseUrl) ?
|
|
478
|
-
this.getToken().replace('bearer ', '') : Constants.STRING_EMPTY;
|
|
479
|
-
let searchModel = model ? JSON.stringify(model) : null;
|
|
480
|
-
let columnModel = toggleColumnModel ? JSON.stringify(toggleColumnModel) : null;
|
|
481
|
-
let isSearchURL = isFromSearch ? '1' : '';
|
|
482
|
-
fileName = baseUrl ? fileName : `${fileName}${Constants.CSV_FILE_EXTENSION}`;
|
|
483
|
-
let proxyData: any = {
|
|
484
|
-
Token: token,
|
|
485
|
-
URL: url,
|
|
486
|
-
Model: searchModel,
|
|
487
|
-
ToggleColumnModel: columnModel,
|
|
488
|
-
IsFromSearch: isSearchURL,
|
|
489
|
-
RequestType: requestType,
|
|
490
|
-
FileName: fileName,
|
|
491
|
-
FilterModel: filterModel ? JSON.stringify(filterModel) : null,
|
|
492
|
-
SummaryModel: summaryModel ? JSON.stringify(summaryModel) : null
|
|
493
|
-
};
|
|
494
|
-
if (baseUrl) {
|
|
495
|
-
proxyData[Constants.BaseURL] = baseUrl;
|
|
496
|
-
let proxyURL = `${this.sharedService.appConfig.api_base_url}${Constants.SAVE_CSV_FILE_API_URL}`;
|
|
497
|
-
saveAs(dataURI, fileName, {
|
|
498
|
-
proxyURL: proxyURL,
|
|
499
|
-
forceProxy: true,
|
|
500
|
-
proxyData: proxyData,
|
|
501
|
-
proxyTarget: Constants.INLINE
|
|
502
|
-
});
|
|
503
|
-
} else {
|
|
504
|
-
this.sharedService.getFileData(Constants.SAVE_CSV_FILE_API_URL, proxyData).subscribe((blob: any) => {
|
|
505
|
-
saveAs(blob, fileName, {
|
|
506
|
-
forceProxy: false,
|
|
507
|
-
proxyTarget: Constants.INLINE
|
|
508
|
-
});
|
|
509
|
-
});
|
|
510
|
-
}
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
public saveZipFile(model: any, fileName: any) {
|
|
514
|
-
let token = this.getToken().replace('bearer ', '');
|
|
515
|
-
let searchModel = model ? JSON.stringify(model) : null;
|
|
516
|
-
let proxyData: any = {
|
|
517
|
-
Token: token,
|
|
518
|
-
URL: '',
|
|
519
|
-
Model: searchModel,
|
|
520
|
-
ToggleColumnModel: '',
|
|
521
|
-
IsFromSearch: true,
|
|
522
|
-
RequestType: '',
|
|
523
|
-
FileName: fileName
|
|
524
|
-
};
|
|
525
|
-
return proxyData;
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
public getFileNameWithDate(fileName: string) {
|
|
529
|
-
if (fileName) {
|
|
530
|
-
let date = this.convertDateStringFormat(new Date(), Constants.EXCEL_NAME_DATE_FORMAT);
|
|
531
|
-
return `${fileName}${date}`;
|
|
532
|
-
}
|
|
533
|
-
return null;
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
public getZipFileNameWithDate(model: any, productTypeList: any, companyList: any) {
|
|
537
|
-
let Product =
|
|
538
|
-
productTypeList.filter((prod: any) => {
|
|
539
|
-
if (prod.id == model.ProductTypeId) {
|
|
540
|
-
return productTypeList;
|
|
541
|
-
}
|
|
542
|
-
});
|
|
543
|
-
|
|
544
|
-
let productName = Product ? Product[0].description : Constants.STRING_EMPTY;
|
|
545
|
-
productName = (productName == 'Master Card' || productName == 'Gift Card') ? productName.replace(" ", "") : productName;
|
|
546
|
-
|
|
547
|
-
let Company =
|
|
548
|
-
companyList.filter((c: any) => {
|
|
549
|
-
if (c.companyUniqueId == model.CompanyUniqueId) {
|
|
550
|
-
return companyList
|
|
551
|
-
}
|
|
552
|
-
});
|
|
553
|
-
|
|
554
|
-
let CompanyId = Company ? Company[0].companyId : Constants.STRING_EMPTY;
|
|
555
|
-
let date = this.convertDateStringFormat(model.Date, Constants.DEFAULT_DATE_CONVERT);
|
|
556
|
-
date = date.replace('/', '').replace('/', '');
|
|
557
|
-
|
|
558
|
-
return `AccountBalance_${CompanyId}_${productName}_${date}.zip`;
|
|
559
|
-
}
|
|
560
|
-
|
|
561
|
-
// get User Rights from localStorage
|
|
562
|
-
public getUserRights(userModule: string, subModule: string) {
|
|
563
|
-
let userRights;
|
|
564
|
-
let currentUserGroup = this.getCurrentUserGroup();
|
|
565
|
-
|
|
566
|
-
// get current user group rights
|
|
567
|
-
if (currentUserGroup) {
|
|
568
|
-
userRights = currentUserGroup[userModule][subModule] === Constants.NO ? false : true;
|
|
569
|
-
}
|
|
570
|
-
return userRights;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
public getManualPostingUserRights(userModule: string, subModule: string, action: string) {
|
|
574
|
-
let userRights;
|
|
575
|
-
let currentUserGroup = this.getCurrentUserGroup();
|
|
576
|
-
|
|
577
|
-
if (currentUserGroup) {
|
|
578
|
-
userRights = currentUserGroup[userModule][subModule][action] === Constants.NO ? false : true;
|
|
579
|
-
}
|
|
580
|
-
|
|
581
|
-
return userRights;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
public maskData(index: any, format: any, value: any) {
|
|
585
|
-
if (value && format) {
|
|
586
|
-
return value.substring(0, index) + format + value.substr(index + format.length);
|
|
587
|
-
}
|
|
588
|
-
return value;
|
|
589
|
-
}
|
|
590
|
-
|
|
591
|
-
// This method will add masking in given string with the mask symbol.
|
|
592
|
-
// fIndex: First end index of visible string.
|
|
593
|
-
// lIndex: Last index for end visible string.
|
|
594
|
-
// value: Value will be the string to masked.
|
|
595
|
-
// mask: This will be the symbol to use as a mask.
|
|
596
|
-
public maskString(fIndex: number, lIndex: number, value: string, mask: string) {
|
|
597
|
-
if (value) {
|
|
598
|
-
let format: string = Constants.STRING_EMPTY;
|
|
599
|
-
let maskLen = (value.length - lIndex) - fIndex;
|
|
600
|
-
for (let i = 0; i < maskLen; i++) {
|
|
601
|
-
format += mask;
|
|
602
|
-
}
|
|
603
|
-
return value.substring(0, fIndex) + format + value.substr(value.length - lIndex);
|
|
604
|
-
}
|
|
605
|
-
return value;
|
|
606
|
-
}
|
|
607
|
-
public maskStringBank(value: string, maskBy: string): string {
|
|
608
|
-
if (!value) return value;
|
|
609
|
-
|
|
610
|
-
const len = value.length;
|
|
611
|
-
|
|
612
|
-
if (len <= 4) return value; // 4 လုံးထက်နည်းရင် no mask
|
|
613
|
-
|
|
614
|
-
const maskedPart = maskBy.repeat(len - 4); // ကျန်တဲ့လုံးအတွက် * ထားမယ်
|
|
615
|
-
const last4 = value.slice(-4); // နောက်ဆုံး 4 လုံး
|
|
616
|
-
|
|
617
|
-
return maskedPart + last4;
|
|
618
|
-
}
|
|
619
|
-
|
|
620
|
-
// This method will verify the model object. If any property has blank value then it will replace it with undefined.
|
|
621
|
-
// This method will be used to for search models.
|
|
622
|
-
public verifySearchObject(model: any, skipDefaultInteger?: boolean): any {
|
|
623
|
-
|
|
624
|
-
if (!model) {
|
|
625
|
-
return;
|
|
626
|
-
}
|
|
627
|
-
|
|
628
|
-
let keys = Object.keys(model);
|
|
629
|
-
for (let i = 0; i < keys.length; i++) {
|
|
630
|
-
let key = keys[i];
|
|
631
|
-
if (skipDefaultInteger) {
|
|
632
|
-
model[key] = model[key] === 0 ? model[key] : (model[key] ? model[key] : undefined);
|
|
633
|
-
}
|
|
634
|
-
else if (model[key] === false) {
|
|
635
|
-
model[key] = model[key];
|
|
636
|
-
}
|
|
637
|
-
else {
|
|
638
|
-
model[key] = model[key] ? model[key] : undefined;
|
|
639
|
-
}
|
|
640
|
-
}
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
// This method will show/hide the column of the grid.
|
|
644
|
-
public hideColumn(column: any, element: any) {
|
|
645
|
-
column.hidden = !element.checked;
|
|
646
|
-
}
|
|
647
|
-
|
|
648
|
-
public insertAuditLog(auditLogModel: AuditLogInsertModel) {
|
|
649
|
-
this.ngZone.runOutsideAngular(() => {
|
|
650
|
-
if (auditLogModel.Description) {
|
|
651
|
-
auditLogModel.CompanyId = this.getCompanyId();
|
|
652
|
-
auditLogModel.DateTime = this.convertDateStringFormat(new Date(), Constants.DATE_TIME_FORMAT);
|
|
653
|
-
auditLogModel.UserId = this.getCurrentUserUniqueID();
|
|
654
|
-
this.sharedService.put(Constants.DEFAULT_ACTION_AUDTI_LOG_API, auditLogModel).subscribe((data: any) => {
|
|
655
|
-
});
|
|
656
|
-
}
|
|
657
|
-
});
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
public getMenuId(menuName: string) {
|
|
661
|
-
let menuList = this.getMenuList();
|
|
662
|
-
let menuObject = menuList.filter((m: any) => m.menuName === menuName)[0];
|
|
663
|
-
return menuObject ? menuObject.menuId : 0;
|
|
664
|
-
}
|
|
665
|
-
|
|
666
|
-
public getAuditTypeId(auditTypeName: string) {
|
|
667
|
-
let auditTypeList = this.getAuditTypeList();
|
|
668
|
-
let auditTypeObject = auditTypeList.filter((m: any) => m.auditTypeName === auditTypeName)[0];
|
|
669
|
-
return auditTypeObject.auditTypeId;
|
|
670
|
-
}
|
|
671
|
-
|
|
672
|
-
// get Edit Audit Description
|
|
673
|
-
// Description template :<Field Name 1>: <before value> to <after value>
|
|
674
|
-
public getEditAuditDescription(acutalObject: any, updatedObject: any, objectName?: string): any {
|
|
675
|
-
let keys = acutalObject ? Object.keys(acutalObject) : null;
|
|
676
|
-
let description = Constants.STRING_EMPTY;
|
|
677
|
-
if (keys) {
|
|
678
|
-
for (let i = 0; i < keys.length; i++) {
|
|
679
|
-
let fieldName = keys[i];
|
|
680
|
-
let beforeValue = acutalObject[fieldName];
|
|
681
|
-
let afterValue = updatedObject[fieldName];
|
|
682
|
-
if (beforeValue && afterValue && typeof beforeValue == Constants.OBJECT && typeof beforeValue == Constants.OBJECT) {
|
|
683
|
-
description += this.getEditAuditDescription(beforeValue, afterValue, fieldName);
|
|
684
|
-
} else {
|
|
685
|
-
if (beforeValue != afterValue) {
|
|
686
|
-
// mask id number
|
|
687
|
-
if (fieldName && fieldName.toLowerCase() == Constants.ID_NUMBER) {
|
|
688
|
-
beforeValue = this.maskString(6, 4, beforeValue, '*');
|
|
689
|
-
afterValue = this.maskString(6, 4, afterValue, '*');
|
|
690
|
-
}
|
|
691
|
-
if (fieldName == Constants.MARKUP_RATE_FIELD)
|
|
692
|
-
fieldName = Constants.MARKUP_RATE_AUDIT_LABEL;
|
|
693
|
-
|
|
694
|
-
switch (fieldName) {
|
|
695
|
-
case Constants.MERCONTACTNO:
|
|
696
|
-
fieldName = Constants.BRANCH_MERCHANT_CONTACTNO_LABEL;
|
|
697
|
-
break
|
|
698
|
-
case Constants.MERCONTACTPERSON:
|
|
699
|
-
fieldName = Constants.BRANCH_MERCHANT_CONTACT_PERSON_LABLE;
|
|
700
|
-
break;
|
|
701
|
-
case Constants.STATENAME:
|
|
702
|
-
fieldName = Constants.BRANCH_STATE_NAME_LABLEStateName;
|
|
703
|
-
break;
|
|
704
|
-
case Constants.NATIONALITY_FIELD:
|
|
705
|
-
fieldName = Constants.NATIONALITY_LABEL;
|
|
706
|
-
}
|
|
707
|
-
|
|
708
|
-
if (!afterValue) {
|
|
709
|
-
afterValue = "' '";
|
|
710
|
-
}
|
|
711
|
-
if (!beforeValue) {
|
|
712
|
-
beforeValue = "' '";
|
|
713
|
-
}
|
|
714
|
-
description += objectName ? `\n${objectName} ${fieldName.replace(/([A-Z])/g, ' $1').trim()}: ${beforeValue} to ${afterValue}` :
|
|
715
|
-
`\n${fieldName.replace(/([A-Z])/g, ' $1').trim()}: ${beforeValue} to ${afterValue}`;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
return description;
|
|
721
|
-
}
|
|
722
|
-
|
|
723
|
-
public onlyNumeric(event: any, isDecimal?: boolean) {
|
|
724
|
-
if (event) {
|
|
725
|
-
let pattern = isDecimal ? new RegExp(`^([0-9\.]*)*$`) : new RegExp('^([0-9]*)*$');
|
|
726
|
-
let content = event.clipboardData.getData('text/plain');
|
|
727
|
-
return pattern.test(content);
|
|
728
|
-
}
|
|
729
|
-
return false;
|
|
730
|
-
}
|
|
731
|
-
|
|
732
|
-
public onlyAlphanumeric(event: any, isSpaceAllowed?: boolean) {
|
|
733
|
-
let pattern = isSpaceAllowed ? new RegExp('^([a-zA-Z0-9 ])*$') : new RegExp('^([a-zA-Z0-9])*$');
|
|
734
|
-
if (event) {
|
|
735
|
-
return pattern.test(event.key);
|
|
736
|
-
}
|
|
737
|
-
return false;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
// validate Alphanumeric field on copy event
|
|
741
|
-
public validateAlphanumeric(event: any, isSpaceAllowed?: boolean) {
|
|
742
|
-
let content = event.clipboardData.getData('text/plain');
|
|
743
|
-
let pattern = isSpaceAllowed ? new RegExp('^([a-zA-Z0-9 ])*$') : new RegExp('^([a-zA-Z0-9])*$');
|
|
744
|
-
if (event) {
|
|
745
|
-
return pattern.test(content);
|
|
746
|
-
}
|
|
747
|
-
return false;
|
|
748
|
-
}
|
|
749
|
-
|
|
750
|
-
// accept only Alpha character
|
|
751
|
-
public onlyAlphaCharacters(event: any, isSpaceAllowed?: boolean) {
|
|
752
|
-
let pattern = isSpaceAllowed ? new RegExp('^([a-zA-Z ])*$') : new RegExp('^([a-zA-Z])*$');
|
|
753
|
-
if (event) {
|
|
754
|
-
return pattern.test(event.key);
|
|
755
|
-
}
|
|
756
|
-
return false;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
public onlyAlphanumericAndThai(event: any, isSpaceAllowed?: boolean) {
|
|
760
|
-
let pattern = isSpaceAllowed ? new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9 ])*$') : new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9])*$');
|
|
761
|
-
if (event) {
|
|
762
|
-
return pattern.test(event.key);
|
|
763
|
-
}
|
|
764
|
-
return false;
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
// validate Alphanumeric and Thai field on copy/paste event
|
|
768
|
-
public validateAlphanumericAndThai(event: any, isSpaceAllowed?: boolean) {
|
|
769
|
-
let content = event.clipboardData.getData('text/plain');
|
|
770
|
-
let pattern = isSpaceAllowed ? new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9 ])*$') : new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9])*$');
|
|
771
|
-
if (event) {
|
|
772
|
-
return pattern.test(content);
|
|
773
|
-
}
|
|
774
|
-
return false;
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
public onlyAlphanumericAndThaiWithDot(event: any, isSpaceAllowed?: boolean) {
|
|
778
|
-
let pattern = isSpaceAllowed ? new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9. ])*$') : new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9.])*$');
|
|
779
|
-
if (event) {
|
|
780
|
-
return pattern.test(event.key);
|
|
781
|
-
}
|
|
782
|
-
return false;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
// validate Alphanumeric and Thai field on copy/paste event
|
|
786
|
-
public validateAlphanumericAndThaiWithDot(event: any, isSpaceAllowed?: boolean) {
|
|
787
|
-
let content = event.clipboardData.getData('text/plain');
|
|
788
|
-
let pattern = isSpaceAllowed ? new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9. ])*$') : new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9.])*$');
|
|
789
|
-
if (event) {
|
|
790
|
-
return pattern.test(content);
|
|
791
|
-
}
|
|
792
|
-
return false;
|
|
793
|
-
}
|
|
794
|
-
// All the special characters allowed except for ? and =
|
|
795
|
-
public onlyAlphanumericAndThaiWithSpecialChars(event: any, isSpaceAllowed?: boolean) {
|
|
796
|
-
let pattern = isSpaceAllowed ? new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9!@#$&%^*()\\-`.+,/\"<>\'_:; ])*$') : new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9!@#$&%^*()\\-`.+,/\"<>\'_:;])*$');
|
|
797
|
-
if (event) {
|
|
798
|
-
return pattern.test(event.key);
|
|
799
|
-
}
|
|
800
|
-
return false;
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
// validate Alphanumeric, and Thai field on copy/paste event
|
|
804
|
-
public validateAlphanumericAndThaiWithSpecialChars(event: any, isSpaceAllowed?: boolean) {
|
|
805
|
-
let content = event.clipboardData.getData('text/plain');
|
|
806
|
-
let pattern = isSpaceAllowed ? new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9!@#$&%^*()\\-`.+,/\"<>\'_:; ])*$') : new RegExp('^([\u0E00-\u0E7Fa-zA-Z0-9!@#$&%^*()\\-`.+,/\"<>\'_:;])*$');
|
|
807
|
-
if (event) {
|
|
808
|
-
return pattern.test(content);
|
|
809
|
-
}
|
|
810
|
-
return false;
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
// validate space on copy event
|
|
814
|
-
public validateSpaceBetweenWords(event: any) {
|
|
815
|
-
let content = event.clipboardData.getData('text/plain');
|
|
816
|
-
let pattern = new RegExp('^\\w+( \\w+)*$');
|
|
817
|
-
if (event) {
|
|
818
|
-
return pattern.test(content);
|
|
819
|
-
}
|
|
820
|
-
return false;
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
// Convert to Float
|
|
824
|
-
public convertStringToFloat(value: string) {
|
|
825
|
-
if (value) {
|
|
826
|
-
return Number.parseFloat(value);
|
|
827
|
-
}
|
|
828
|
-
return 0;
|
|
829
|
-
}
|
|
830
|
-
|
|
831
|
-
public ConvertToNumber(value: string) {
|
|
832
|
-
if (value) {
|
|
833
|
-
return Number.parseInt(value);
|
|
834
|
-
}
|
|
835
|
-
return 0;
|
|
836
|
-
}
|
|
837
|
-
|
|
838
|
-
public getFieldNameList(grid: any, skipColumnArray?: any) {
|
|
839
|
-
let fieldNameModel: any[] = [];
|
|
840
|
-
let columns = grid.columnList.columns.toArray();
|
|
841
|
-
this.createFieldNameModel(columns, fieldNameModel, skipColumnArray);
|
|
842
|
-
return fieldNameModel;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
public createFieldNameModel(columns: any, fieldNameModel: any, skipColumnArray?: any) {
|
|
846
|
-
for (let i = 0; i < columns.length; i++) {
|
|
847
|
-
let toggleColumn: any = { fieldName: null, columnName: null };
|
|
848
|
-
let column = columns[i];
|
|
849
|
-
let isColumnAllowed = (skipColumnArray && skipColumnArray.length > 0) ? (skipColumnArray.indexOf(column.title) === -1) : true;
|
|
850
|
-
|
|
851
|
-
if (column.title && column.field && !column.hidden && isColumnAllowed) {
|
|
852
|
-
toggleColumn.fieldName = column.field;
|
|
853
|
-
toggleColumn.columnName = column.title;
|
|
854
|
-
fieldNameModel.push(toggleColumn);
|
|
855
|
-
}
|
|
856
|
-
|
|
857
|
-
let childColumns: any = column.children ? column.children.toArray() : null;
|
|
858
|
-
|
|
859
|
-
if (childColumns) {
|
|
860
|
-
childColumns = childColumns.filter((c: any) => { return c.parent; });
|
|
861
|
-
this.createFieldNameModel(childColumns, fieldNameModel, skipColumnArray);
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
}
|
|
865
|
-
|
|
866
|
-
// is field check disabled
|
|
867
|
-
public isDisabled(hidden: boolean, columns: any, isCompanyDisable: boolean) {
|
|
868
|
-
let hiddenColumns = columns.filter((c: any) => { return c.hidden; });
|
|
869
|
-
let hiddenColumnsLength = hiddenColumns ? hiddenColumns.length : 0;
|
|
870
|
-
hiddenColumnsLength = isCompanyDisable ? hiddenColumnsLength - 1 : hiddenColumnsLength;
|
|
871
|
-
let totalColumns = columns.filter((c: any) => { return c.field; });
|
|
872
|
-
let totalColumnsLength = totalColumns ? totalColumns.length : 0;
|
|
873
|
-
totalColumnsLength = isCompanyDisable ? totalColumnsLength - 1 : totalColumnsLength;
|
|
874
|
-
return (totalColumnsLength - hiddenColumnsLength) === 1 && !hidden;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
// save Menu Setup into local storage
|
|
878
|
-
public saveMenuSetup(menu: any) {
|
|
879
|
-
if (menu) {
|
|
880
|
-
let menuSetup = btoa(JSON.stringify(menu));
|
|
881
|
-
this.sharedService.setProperty(Constants.MENU_SETUP_KEY, menuSetup);
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
|
|
885
|
-
// get Menu Setup from local storage
|
|
886
|
-
public getMenuSetup() {
|
|
887
|
-
let menuSetup = this.sharedService.MenuSetup;
|
|
888
|
-
|
|
889
|
-
if (menuSetup) {
|
|
890
|
-
return JSON.parse(atob(menuSetup));
|
|
891
|
-
}
|
|
892
|
-
}
|
|
893
|
-
|
|
894
|
-
// get isMenuVisible true or false
|
|
895
|
-
public isMenuVisible(menu: string, subMenu: string) {
|
|
896
|
-
let menuSetup = this.getMenuSetup();
|
|
897
|
-
// menu is visible if value 'Y'
|
|
898
|
-
if (menuSetup) {
|
|
899
|
-
if (subMenu == null) return menuSetup[menu] === Constants.YES ? true : false;
|
|
900
|
-
return menuSetup[menu][subMenu] === Constants.YES ? true : false;
|
|
901
|
-
}
|
|
902
|
-
return false;
|
|
903
|
-
}
|
|
904
|
-
|
|
905
|
-
public convertNumberToString(value: number) {
|
|
906
|
-
return value ? value.toString() : null;
|
|
907
|
-
}
|
|
908
|
-
|
|
909
|
-
// save User Group into local storage
|
|
910
|
-
public saveUserGroup(userGroupObject: any) {
|
|
911
|
-
if (userGroupObject) {
|
|
912
|
-
let userGroup = btoa(JSON.stringify(userGroupObject));
|
|
913
|
-
this.sharedService.setProperty(Constants.CURRENT_USER_GROUP_KEY, userGroup);
|
|
914
|
-
}
|
|
915
|
-
}
|
|
916
|
-
|
|
917
|
-
public FormatCardNumber(cardformat: any, cardno: any) {
|
|
918
|
-
if (typeof cardno != 'undefined' && cardno) {
|
|
919
|
-
cardno = cardno.replace(/\x/g, '').replace(/\_/g, '');
|
|
920
|
-
switch (cardformat) {
|
|
921
|
-
case "2":
|
|
922
|
-
cardno = `xxxxxxxxxxxx${cardno}`;
|
|
923
|
-
break;
|
|
924
|
-
case "3":
|
|
925
|
-
cardno = `${cardno.substring(0, cardno.length - 4)}xxxxxx${cardno.substring(6, cardno.length)}`; //"000000XXXXXX0000";
|
|
926
|
-
break;
|
|
927
|
-
default:
|
|
928
|
-
return cardno;
|
|
929
|
-
}
|
|
930
|
-
}
|
|
931
|
-
return cardno;
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
public GetCardIdFromPan(cardNumber: string) {
|
|
935
|
-
let cardId: number = 0;
|
|
936
|
-
if (cardNumber) {
|
|
937
|
-
switch (cardNumber.charAt(0)) {
|
|
938
|
-
case '4':
|
|
939
|
-
cardId = 2;
|
|
940
|
-
break;
|
|
941
|
-
case '5':
|
|
942
|
-
cardId = 1;
|
|
943
|
-
break
|
|
944
|
-
}
|
|
945
|
-
return cardId;
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
|
|
949
|
-
// save company and product name for edited product to into local storage
|
|
950
|
-
public saveSelectedProductDetails(companyName: string, productName: string) {
|
|
951
|
-
if (companyName && productName) {
|
|
952
|
-
var editedProductObject = {
|
|
953
|
-
CompanyName: companyName,
|
|
954
|
-
ProductName: productName
|
|
955
|
-
}
|
|
956
|
-
let editedProduct = btoa(JSON.stringify(editedProductObject));
|
|
957
|
-
this.sharedService.setProperty(Constants.EDITED_PRODUCT_KEY, editedProduct);
|
|
958
|
-
}
|
|
959
|
-
}
|
|
960
|
-
|
|
961
|
-
public getSelectedCardDetails() {
|
|
962
|
-
return this.sharedService.EditedProduct ? JSON.parse(atob(this.sharedService.EditedProduct)) : null;
|
|
963
|
-
}
|
|
964
|
-
|
|
965
|
-
// Get company name By company unique ID
|
|
966
|
-
public getCompanyNameFromId(companyList: any, selectedId: any) {
|
|
967
|
-
let companyName: string = Constants.STRING_EMPTY;
|
|
968
|
-
if (companyList) {
|
|
969
|
-
let data = companyList.filter((element: any) => {
|
|
970
|
-
if (element.companyUniqueId == selectedId)
|
|
971
|
-
return element;
|
|
972
|
-
});
|
|
973
|
-
if (data && data.length > 0)
|
|
974
|
-
companyName = data[0].companyName;
|
|
975
|
-
}
|
|
976
|
-
return companyName;
|
|
977
|
-
}
|
|
978
|
-
|
|
979
|
-
//Return numeric value from string
|
|
980
|
-
public allowNumericOnly(event: any) {
|
|
981
|
-
let content = event.clipboardData.getData('text/plain');
|
|
982
|
-
let numericContent: any = Constants.STRING_EMPTY;
|
|
983
|
-
if (content)
|
|
984
|
-
numericContent = content.match(/\d/g);
|
|
985
|
-
|
|
986
|
-
return (numericContent) ? numericContent.join('') : Constants.STRING_EMPTY;
|
|
987
|
-
}
|
|
988
|
-
|
|
989
|
-
public exportToExcelFile(url?: string, fileName?: string, model?: any, toggleColumnModel?: any,
|
|
990
|
-
isFromSearch?: boolean, requestType?: string): void {
|
|
991
|
-
if (this.isExportFile && this.toggleExcelFile && url && fileName) {
|
|
992
|
-
fileName = `${fileName}${Constants.EXCEL_FILE_EXTENSION}`;
|
|
993
|
-
const dataURI = Constants.Text_DATA_FORMAT + encodeBase64(Constants.STRING_EMPTY);
|
|
994
|
-
let proxyURL = `${this.sharedService.appConfig.api_base_url}${Constants.SAVE_EXCEL_FILE_API_URL}`;
|
|
995
|
-
let token = this.getToken() ? this.getToken().replace('bearer ', '') : null;
|
|
996
|
-
let searchModel = model ? JSON.stringify(model) : null;
|
|
997
|
-
let columnModel = toggleColumnModel ? JSON.stringify(toggleColumnModel) : null;
|
|
998
|
-
let isSearchURL = isFromSearch ? Constants.FROM_SEARCH : Constants.STRING_EMPTY;
|
|
999
|
-
let proxyData: any = {
|
|
1000
|
-
Token: token,
|
|
1001
|
-
URL: url,
|
|
1002
|
-
Model: searchModel,
|
|
1003
|
-
ToggleColumnModel: columnModel,
|
|
1004
|
-
IsFromSearch: isSearchURL,
|
|
1005
|
-
RequestType: requestType
|
|
1006
|
-
}
|
|
1007
|
-
this.sharedService.getFileData(Constants.SAVE_EXCEL_FILE_API_URL, proxyData).subscribe((blob: any) => {
|
|
1008
|
-
saveAs(blob, fileName, {
|
|
1009
|
-
forceProxy: false,
|
|
1010
|
-
proxyTarget: Constants.INLINE
|
|
1011
|
-
});
|
|
1012
|
-
});
|
|
1013
|
-
}
|
|
1014
|
-
}
|
|
1015
|
-
|
|
1016
|
-
// get Menu Id from menu setup list
|
|
1017
|
-
public getMenuIdForAuditLog(menuName: string) {
|
|
1018
|
-
let menuSetupList = this.getMenuSetup();
|
|
1019
|
-
let menuObject = menuSetupList.MenuData.filter((m: any) => m.MenuName === menuName)[0];
|
|
1020
|
-
return menuObject ? menuObject.MenuId : 0;
|
|
1021
|
-
}
|
|
1022
|
-
|
|
1023
|
-
public convertToFloat(model: any): any {
|
|
1024
|
-
let keys = Object.keys(model);
|
|
1025
|
-
for (let i = 0; i < keys.length; i++) {
|
|
1026
|
-
let key = keys[i];
|
|
1027
|
-
try {
|
|
1028
|
-
let data = model[key] ? parseFloat(model[key]) : model[key];
|
|
1029
|
-
model[key] = Number.isNaN(data) ? model[key] : data;
|
|
1030
|
-
} catch (ex) {
|
|
1031
|
-
model[key] = model[key];
|
|
1032
|
-
}
|
|
1033
|
-
}
|
|
1034
|
-
return model;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
// save any file
|
|
1038
|
-
// data: dataformat + encoded base64 string
|
|
1039
|
-
public saveAsFile(fileName: string, data: any) {
|
|
1040
|
-
saveAs(data, fileName, {
|
|
1041
|
-
forceProxy: false,
|
|
1042
|
-
proxyTarget: Constants.INLINE
|
|
1043
|
-
});
|
|
1044
|
-
}
|
|
1045
|
-
|
|
1046
|
-
public getEscapedUntrustedData(dataObj: any): any {
|
|
1047
|
-
let sanitizedData: any;
|
|
1048
|
-
if (dataObj) {
|
|
1049
|
-
let keys = Object.keys(dataObj);
|
|
1050
|
-
for (let i = 0; i < keys.length; i++) {
|
|
1051
|
-
let key = keys[i];
|
|
1052
|
-
dataObj[key] = this.domSanitizer.sanitize(SecurityContext.HTML, dataObj[key]);
|
|
1053
|
-
}
|
|
1054
|
-
}
|
|
1055
|
-
if (dataObj)
|
|
1056
|
-
return dataObj;
|
|
1057
|
-
}
|
|
1058
|
-
|
|
1059
|
-
public getRoutingURL(): any {
|
|
1060
|
-
let routeURL: any = this.routeAfter.url;
|
|
1061
|
-
if (routeURL.length > 1) {
|
|
1062
|
-
return "/" + routeURL[0].path + "/" + routeURL[1].path;
|
|
1063
|
-
}
|
|
1064
|
-
return routeURL[0] ? ("/" + routeURL[0].path) : null;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
public setToken(token: string) {
|
|
1068
|
-
this.sharedService.setToken(token);
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
public getToken() {
|
|
1072
|
-
return this.sharedService.getToken();
|
|
1073
|
-
}
|
|
1074
|
-
|
|
1075
|
-
// shallow Clone
|
|
1076
|
-
// The Object.create() method creates a new object, using an existing object as the prototype of the newly created object
|
|
1077
|
-
public shallowClone(obj: any): any {
|
|
1078
|
-
let clone = Object.create(Object.getPrototypeOf(obj));
|
|
1079
|
-
let props = Object.getOwnPropertyNames(obj);
|
|
1080
|
-
props.forEach(function (key) {
|
|
1081
|
-
let desc = Object.getOwnPropertyDescriptor(obj, key);
|
|
1082
|
-
Object.defineProperty(clone, key, desc);
|
|
1083
|
-
});
|
|
1084
|
-
return clone;
|
|
1085
|
-
}
|
|
1086
|
-
|
|
1087
|
-
//Return string value from paste data
|
|
1088
|
-
public extractStringOnly(event: any) {
|
|
1089
|
-
let content = event.clipboardData.getData('text/plain');
|
|
1090
|
-
let stringContent: any = Constants.STRING_EMPTY;
|
|
1091
|
-
if (content) {
|
|
1092
|
-
stringContent = content.replace(/\s/g, " ").replace(/[!@#\$%\^\&*\)\(\{\}\[\]+=.;:_-]+/g, '');
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
return (stringContent) ? stringContent : Constants.STRING_EMPTY;
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
public separateThousands(value: string) {
|
|
1099
|
-
if (!value) return '0.00';
|
|
1100
|
-
else return value.replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1101
|
-
}
|
|
1102
|
-
|
|
1103
|
-
// on Excel Export
|
|
1104
|
-
public onExcelExport(event: any, filterList: any): void {
|
|
1105
|
-
let countFilterFields: number = 0;
|
|
1106
|
-
let data: any[] = filterList.reverse();
|
|
1107
|
-
data.forEach((element: any) => {
|
|
1108
|
-
if (element.Value) {
|
|
1109
|
-
let cellContent = {
|
|
1110
|
-
cells: [
|
|
1111
|
-
{
|
|
1112
|
-
value: `${element.FieldName} :`,
|
|
1113
|
-
color: Constants.BLACK_COLOR,
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
value: `${element.Value}`,
|
|
1117
|
-
color: Constants.BLACK_COLOR,
|
|
1118
|
-
}
|
|
1119
|
-
]
|
|
1120
|
-
}
|
|
1121
|
-
if (countFilterFields == 0) {
|
|
1122
|
-
let blankCell = {
|
|
1123
|
-
cells: [
|
|
1124
|
-
{
|
|
1125
|
-
value: Constants.STRING_EMPTY,
|
|
1126
|
-
}
|
|
1127
|
-
]
|
|
1128
|
-
}
|
|
1129
|
-
// add blank cell
|
|
1130
|
-
event.workbook.sheets[0].rows.unshift(blankCell);
|
|
1131
|
-
}
|
|
1132
|
-
event.workbook.sheets[0].rows.unshift(cellContent);
|
|
1133
|
-
countFilterFields = countFilterFields + 1;
|
|
1134
|
-
}
|
|
1135
|
-
});
|
|
1136
|
-
|
|
1137
|
-
if (countFilterFields > 0) {
|
|
1138
|
-
event.workbook.sheets[0].freezePane.rowSplit = 0;
|
|
1139
|
-
}
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
public onExcelExportWithSummaryHeader(event: any, filterList: any): void {
|
|
1143
|
-
let countFilterFields: number = 0;
|
|
1144
|
-
let headerRow: any[] = [];
|
|
1145
|
-
let valueRow: any[] = [];
|
|
1146
|
-
filterList.forEach((element: any) => {
|
|
1147
|
-
if (element.FieldName) {
|
|
1148
|
-
let cell = {
|
|
1149
|
-
value: `${element.FieldName}`,
|
|
1150
|
-
color: Constants.WHITE_COLOR,
|
|
1151
|
-
background: Constants.GREY_COLOR
|
|
1152
|
-
}
|
|
1153
|
-
headerRow.push(cell);
|
|
1154
|
-
}
|
|
1155
|
-
if (element.Value) {
|
|
1156
|
-
let cell = {
|
|
1157
|
-
value: `${element.Value}`,
|
|
1158
|
-
color: Constants.BLACK_COLOR,
|
|
1159
|
-
}
|
|
1160
|
-
valueRow.push(cell);
|
|
1161
|
-
}
|
|
1162
|
-
});
|
|
1163
|
-
let headerCellContent = {
|
|
1164
|
-
cells: headerRow
|
|
1165
|
-
}
|
|
1166
|
-
let valueCellContent = {
|
|
1167
|
-
cells: valueRow
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
let blankCell = {
|
|
1171
|
-
cells: [
|
|
1172
|
-
{
|
|
1173
|
-
value: Constants.STRING_EMPTY,
|
|
1174
|
-
}
|
|
1175
|
-
]
|
|
1176
|
-
}
|
|
1177
|
-
// add blank cell
|
|
1178
|
-
event.workbook.sheets[0].rows.unshift(blankCell);
|
|
1179
|
-
event.workbook.sheets[0].rows.unshift(valueCellContent);
|
|
1180
|
-
event.workbook.sheets[0].rows.unshift(headerCellContent);
|
|
1181
|
-
event.workbook.sheets[0].freezePane.rowSplit = 4;
|
|
1182
|
-
}
|
|
1183
|
-
|
|
1184
|
-
public formatNumber(data: any, format: string) {
|
|
1185
|
-
return this.numberPipe.transform(data, format);
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
// get Field Names List excluding columns added in skipColumnArray
|
|
1189
|
-
public getFieldNamesList(grid: any, skipColumnArray?: any) {
|
|
1190
|
-
let fieldNameModel: any[] = [];
|
|
1191
|
-
let columns = grid.columnList.columns.toArray();
|
|
1192
|
-
this.createFieldNamesModel(columns, fieldNameModel, skipColumnArray);
|
|
1193
|
-
return fieldNameModel;
|
|
1194
|
-
}
|
|
1195
|
-
|
|
1196
|
-
public createFieldNamesModel(columns: any, fieldNameModel: any, skipColumnArray?: any) {
|
|
1197
|
-
for (let i = 0; i < columns.length; i++) {
|
|
1198
|
-
let toggleColumn: any = { fieldName: null, columnName: null };
|
|
1199
|
-
let column = columns[i];
|
|
1200
|
-
let isColumnAllowed = (skipColumnArray && skipColumnArray.length > 0) ? (skipColumnArray.indexOf(column.title) === -1) : true;
|
|
1201
|
-
|
|
1202
|
-
if (column.title && column.field && isColumnAllowed) {
|
|
1203
|
-
toggleColumn.fieldName = column.field;
|
|
1204
|
-
toggleColumn.columnName = column.title;
|
|
1205
|
-
fieldNameModel.push(toggleColumn);
|
|
1206
|
-
}
|
|
1207
|
-
let childColumns: any = column.children ? column.children.toArray() : null;
|
|
1208
|
-
|
|
1209
|
-
if (childColumns) {
|
|
1210
|
-
childColumns = childColumns.filter((c: any) => { return c.parent; });
|
|
1211
|
-
this.createFieldNameModel(childColumns, fieldNameModel, skipColumnArray);
|
|
1212
|
-
}
|
|
1213
|
-
}
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
public redirectToCompanyLogin(skipTimeout?: boolean, merchanturl?: string) {
|
|
1217
|
-
let timeout: number = Constants.TIMEOUT;
|
|
1218
|
-
if (skipTimeout) {
|
|
1219
|
-
timeout = 0;
|
|
1220
|
-
}
|
|
1221
|
-
// clear session storage
|
|
1222
|
-
sessionStorage.clear();
|
|
1223
|
-
localStorage.clear();
|
|
1224
|
-
// navigate to login page
|
|
1225
|
-
setTimeout(() => { window.location.href = merchanturl }, timeout);
|
|
1226
|
-
}
|
|
1227
|
-
|
|
1228
|
-
public setSelectedCompany(companyUniqueId: number) {
|
|
1229
|
-
this.sharedService.setSelectedCompany(companyUniqueId);
|
|
1230
|
-
}
|
|
1231
|
-
|
|
1232
|
-
public getSelectedCompany() {
|
|
1233
|
-
return this.sharedService.getSelectedCompany();
|
|
1234
|
-
}
|
|
1235
|
-
public setCompanyNameWalletProfile(companyName: any) {
|
|
1236
|
-
this.sharedService.setProperty('companyName', companyName);
|
|
1237
|
-
}
|
|
1238
|
-
public getCompanyNameWalletProfile(): any {
|
|
1239
|
-
return this.sharedService.companyName ? this.sharedService.companyName : null;
|
|
1240
|
-
}
|
|
1241
|
-
|
|
1242
|
-
public parseStringAmount(stringValue: string) {
|
|
1243
|
-
if (stringValue && stringValue.length > 1) {
|
|
1244
|
-
return Number(stringValue.replace(/,/g, ''));
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
public getDateDifferenceInDays(startDate: Date, endDate: Date) {
|
|
1249
|
-
if (startDate && endDate) {
|
|
1250
|
-
var diff = Math.abs(endDate.getTime() - startDate.getTime());
|
|
1251
|
-
return Math.ceil(diff / (1000 * 3600 * 24));
|
|
1252
|
-
}
|
|
1253
|
-
else {
|
|
1254
|
-
return 0;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
|
|
1258
|
-
public revokeGoogleToken(token: string) {
|
|
1259
|
-
// Clear the current access token
|
|
1260
|
-
let xhr = new XMLHttpRequest();
|
|
1261
|
-
xhr.onreadystatechange = () => {
|
|
1262
|
-
if (xhr.readyState === 4 && xhr.status === 200) {
|
|
1263
|
-
// Clear gapi.client token
|
|
1264
|
-
gapi.client.setToken('');
|
|
1265
|
-
return;
|
|
1266
|
-
}
|
|
1267
|
-
};
|
|
1268
|
-
|
|
1269
|
-
xhr.open(Constants.POST_REQUEST, `${Constants.GOOGLE_OAUTH}${Constants.GOOGLE_REVOKE_TOKEN}${token}`);
|
|
1270
|
-
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
|
1271
|
-
xhr.send();
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
// get current User Id
|
|
1275
|
-
public getCurrentUserId() {
|
|
1276
|
-
return localStorage.getItem('currentUser') ? JSON.parse(localStorage.getItem('currentUser')).uniqueID : null;
|
|
1277
|
-
}
|
|
1278
|
-
|
|
1279
|
-
public getIsPasswordExpired() {
|
|
1280
|
-
if (this.getToken()) {
|
|
1281
|
-
if (JSON.parse(localStorage.getItem('currentUser'))) {
|
|
1282
|
-
let passwordExpriedDate = JSON.parse(localStorage.getItem('currentUser')).expiredPasswordDate;
|
|
1283
|
-
return new Date(passwordExpriedDate) < new Date();
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
else {
|
|
1287
|
-
this.router.navigate([Constants.LOGIN])
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
public clearLocalStorage() {
|
|
1292
|
-
localStorage.clear();
|
|
1293
|
-
sessionStorage.clear();
|
|
1294
|
-
}
|
|
1295
|
-
|
|
1296
|
-
// handle response
|
|
1297
|
-
public handleResponse(response: any) {
|
|
1298
|
-
if (response) {
|
|
1299
|
-
switch (response.Result.responseCode) {
|
|
1300
|
-
// success response
|
|
1301
|
-
case Constants.SUCCESS_CODE:
|
|
1302
|
-
if (google.accounts.oauth2 && gapi.client && this.isLoginWithInternalURL()) {
|
|
1303
|
-
let accessToken = gapi.client.getToken();
|
|
1304
|
-
if (google.accounts.oauth2 && gapi && accessToken) {
|
|
1305
|
-
this.revokeGoogleToken(accessToken.access_token);
|
|
1306
|
-
}
|
|
1307
|
-
|
|
1308
|
-
this.ngZone.run(
|
|
1309
|
-
() => {
|
|
1310
|
-
// redirect to login page and clear the local storage
|
|
1311
|
-
this.clearLocalStorage();
|
|
1312
|
-
this.redirectToLogin(true);
|
|
1313
|
-
}
|
|
1314
|
-
);
|
|
1315
|
-
} else {
|
|
1316
|
-
// redirect to login page and clear the local storage
|
|
1317
|
-
this.clearLocalStorage();
|
|
1318
|
-
this.redirectToLogin(true);
|
|
1319
|
-
}
|
|
1320
|
-
break;
|
|
1321
|
-
// Login expired, you will be redirected to login page.
|
|
1322
|
-
case Constants.ACCESS_TOKEN_EXPIRED:
|
|
1323
|
-
//this.sharedService.errorMessage = response.message ? response.message : response.Message;
|
|
1324
|
-
console.log(response.message ? response.message : response.Message)
|
|
1325
|
-
this.redirectToLogin();
|
|
1326
|
-
break;
|
|
1327
|
-
// Other response message.
|
|
1328
|
-
default:
|
|
1329
|
-
//this.sharedService.errorMessage = response.message ? response.message : response.Message;
|
|
1330
|
-
console.log(response.message ? response.message : response.Message)
|
|
1331
|
-
break;
|
|
1332
|
-
}
|
|
1333
|
-
}
|
|
1334
|
-
}
|
|
1335
|
-
|
|
1336
|
-
// logout user
|
|
1337
|
-
public logout() {
|
|
1338
|
-
let url = Constants.LOGOUT_API_URL;
|
|
1339
|
-
this.sharedService.put(url, {}).subscribe((response: any) => {
|
|
1340
|
-
this.handleResponse(response);
|
|
1341
|
-
});
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
public validateAlphaNumericLength(event: any, maxLength: number) {
|
|
1345
|
-
let value = event.currentTarget.value;
|
|
1346
|
-
if (value) {
|
|
1347
|
-
if (value.length > maxLength) {
|
|
1348
|
-
return false;
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
return true;
|
|
1352
|
-
}
|
|
1353
|
-
}
|