@intellias/menu 1.1.14 → 1.1.16

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/dist/css/main.css CHANGED
@@ -46,6 +46,9 @@
46
46
  pointer-events: none;
47
47
  color: #94a3b8 !important;
48
48
  }
49
+ .action-button.is-btn-link:disabled.dark .span-text[data-v-4bad7ad2], .action-button.is-btn-link.disabled.dark .span-text[data-v-4bad7ad2] {
50
+ color: #3b4d5d !important;
51
+ }
49
52
  .action-button.is-link[data-v-4bad7ad2] {
50
53
  color: #008c79;
51
54
  background: transparent !important;
@@ -274,7 +277,11 @@
274
277
  align-items: center;
275
278
  padding: 0 30px 0 0;
276
279
  }
277
- .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notification-manage-toggler {
280
+ .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notifications-state-marker .v-dropdown-menu__container {
281
+ top: 43px;
282
+ height: 75px;
283
+ }
284
+ .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notifications-state-marker .notification-manage-toggler {
278
285
  position: relative;
279
286
  display: flex;
280
287
  flex-wrap: wrap;
@@ -285,7 +292,7 @@
285
292
  line-height: 64px;
286
293
  cursor: pointer;
287
294
  }
288
- .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notification-manage-toggler span {
295
+ .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__header .note-title-row .col.s2 .notifications-state-marker .notification-manage-toggler span {
289
296
  background-color: #94a3b8;
290
297
  width: 4px;
291
298
  height: 4px;
@@ -519,8 +526,9 @@
519
526
  .notifications-sidebar .v-dropdown-menu__container .v-dropdown-menu__body .main-dropdown .notification-content .notifications-list .tab-content .note .action-buttons {
520
527
  height: 21px;
521
528
  }
522
- .notifications-sidebar .notification-href {
523
- padding: 0 15px 21px;
529
+ .notifications-sidebar .notifications-trigger {
530
+ padding-left: 15px;
531
+ padding-right: 21px;
524
532
  font-size: 1.2rem;
525
533
  }
526
534
  .notifications-sidebar a {
@@ -1083,7 +1091,7 @@
1083
1091
  .navbar-fixed nav ul a:hover {
1084
1092
  background-color: rgba(0, 0, 0, 0.1);
1085
1093
  }
1086
- .navbar-fixed nav ul a.notification-href {
1094
+ .navbar-fixed nav ul a.notifications-trigger {
1087
1095
  display: inline;
1088
1096
  }
1089
1097
  .navbar-fixed nav .brand-logo {
@@ -1240,7 +1248,7 @@
1240
1248
  .navbar-fixed nav .notifications-bell {
1241
1249
  line-height: 64px;
1242
1250
  }
1243
- .navbar-fixed nav .notifications-bell .notification-href {
1251
+ .navbar-fixed nav .notifications-bell .notifications-trigger {
1244
1252
  padding-bottom: 17px;
1245
1253
  }
1246
1254
  .navbar-fixed nav .notifications-bell .v-dropdown-menu__container {
package/dist/js/main.js CHANGED
@@ -219,7 +219,7 @@ return /******/ (function(modules) { // webpackBootstrap
219
219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
220
220
 
221
221
  "use strict";
222
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! mobile-device-detect */ \"./node_modules/mobile-device-detect/dist/index.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/notifications-sidebar/NotificationsSidebar.vue */ \"./components/notifications-sidebar/NotificationsSidebar.vue\");\n/* harmony import */ var _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/play-pause/PlayPause.vue */ \"./components/play-pause/PlayPause.vue\");\n/* harmony import */ var _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/sub-menu/SubMenu.vue */ \"./components/sub-menu/SubMenu.vue\");\n/* harmony import */ var _repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./repositories/BaseUrl */ \"./repositories/BaseUrl.ts\");\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/user-picture/UserPicture.vue */ \"./components/user-picture/UserPicture.vue\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n/* harmony import */ var _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/onboarding-sign/OnBoardingSign.vue */ \"./components/onboarding-sign/OnBoardingSign.vue\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'MainMenu',\n components: {\n UserPicture: _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n NotificationsSidebar: _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n playPause: _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n SubMenu: _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n OnBoardingSign: _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__[\"default\"]\n },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n subMenus: {\n type: Array\n },\n layout: {\n type: _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n required: true\n }\n },\n provide() {\n return {\n layout: this.layout,\n storeAdapter: this.storeAdapter,\n subMenus: this.isLiteDomain ? this.subMenus : null,\n helperFunctions: this.helperFunctions\n };\n },\n mounted() {\n this.initializeItems();\n this.initializeAdminItems();\n this.initializeHereBoardItems();\n this.attachOverflowItems();\n this.$echo\n .private(`employee.${this.getUser.employee_id}`)\n .listen('SmartBalanceChanged', () => this.storeAdapter.User.actions.getData())\n .listen('LiqPayDonationProcessed', payload => {\n if (payload.status === 'finished') {\n this.storeAdapter.Toasts.mutations.addMessage(`${payload.quantity} UAH was successfully donated.`);\n }\n else {\n this.storeAdapter.Toasts.mutations.addWarning(`Donation ${payload.quantity} UAH was failed.`);\n }\n this.storeAdapter.Toasts.mutations.showAll();\n });\n },\n updated() {\n this.findOverflowedIndex();\n if (this.overflowedItems.items.length) {\n this.attachOverflowedMenus();\n }\n },\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser', 'isSidebarFixed', 'isSidebarOpenOnMobile'])), { intemsConfig() {\n return this.storeAdapter.Config.state.data;\n },\n userInfo() {\n return this.storeAdapter.User.state.data;\n },\n uncheckedCounter() {\n var _a;\n if ((_a = this.storeAdapter.HomePage_OnBoardingPlan.getters) === null || _a === void 0 ? void 0 : _a.notCheckedTasksLength) {\n return this.storeAdapter.HomePage_OnBoardingPlan.getters.notCheckedTasksLength;\n }\n return this.userInfo.welcomeProgram.unchecked_welcome_program_questions;\n },\n canSeeGitBranch() {\n return this.$can('read', 'feature_show_git_branch');\n },\n intelliHubIconsClassName() {\n return {\n 'icons hide-on-med-and-down': this.isIntelliHub || this.isManagersPortal,\n 'icons fixed-padding hide-on-med-and-down': this.isLiteDomain\n };\n },\n intelliHubAvatarClassName() {\n return this.isIntelliHub || this.isManagersPortal\n ? 'intellihub-user-wrapper'\n : 'intellihub-user-wrapper fixed-padding';\n },\n intelliHubNotificationsClassName() {\n return {\n 'notifications-bell': this.isIntelliHub || this.isManagersPortal,\n 'notifications-bell fixed-padding': this.isLiteDomain\n };\n },\n isIntelliHub() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].IntelliHub;\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Lite;\n },\n isManagersPortal() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].ManagersPortal;\n },\n allowedToGiveKudos() {\n return this.userInfo.kudos_balance > 0;\n },\n isFreelancer() {\n return this.getUser.is_freelancer;\n },\n vacationBalance() {\n return this.userInfo.vacation_balance;\n },\n overflowMenuItemHeight() {\n return this.overflowedMenus[0].querySelector('li').getBoundingClientRect().height;\n },\n overflowMenuMaxItemCount() {\n const itemCountPerMenu = [];\n this.overflowedMenus.forEach(menu => {\n itemCountPerMenu.push(menu.querySelectorAll(':scope > li').length);\n });\n return Math.max(...itemCountPerMenu);\n },\n isMobileOnly() {\n return mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__[\"isMobileOnly\"];\n } }),\n watch: {\n // kostyl to close dropdown after back button press\n $route() {\n if (this.sideNavOpened) {\n this.toggleSideNavVisibility();\n }\n },\n 'overflowedItems.startIndex': {\n handler(index) {\n this.overflowedItems.items = this.items.slice(index);\n }\n }\n },\n methods: Object.assign(Object.assign(Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['markAsRead'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['toggleSidebarFixation', 'toggleSidebarOnMobile'])), { requestNotification(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.markAsRead(this.rejectedNotification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__[\"RequestMethod\"].put, action.body);\n });\n },\n logOut() {\n return __awaiter(this, void 0, void 0, function* () {\n const repository = new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](_repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__[\"BaseUrl\"].LogOut);\n const data = yield repository.post();\n if (data.data !== undefined) {\n window.location.href = data.data.redirect_url;\n }\n });\n },\n handleSidebarTogglerClick() {\n if (!this.isMobileOnly) {\n this.toggleSidebarFixation();\n }\n else {\n this.toggleSidebarOnMobile();\n }\n },\n goTo(routeName) {\n this.helperFunctions.router.push({ name: routeName });\n },\n modifyOpenedAdminItems(indexItem) {\n const collapsibleWrapper = document.getElementById('admin_collapsible');\n const collaplsedAdminItem = collapsibleWrapper.children[indexItem].children[1];\n const animationSmoothness = 0.4;\n const transitionDuration = `${collaplsedAdminItem.children.length * animationSmoothness}s`;\n collaplsedAdminItem.style.transitionDuration = transitionDuration;\n this.adminItems = this.adminItems.map((item, index) => item.children && index === indexItem ? Object.assign(Object.assign({}, item), { opened: !item.opened }) : item);\n },\n toggleSideNavVisibility() {\n this.sideNavOpened = !this.sideNavOpened;\n },\n attachOverflowItems() {\n this.markOverflowedItems();\n window.addEventListener('resize', this.markOverflowedItems);\n },\n attachOverflowedMenus() {\n this.overflowedMenus = this.$refs.overflowedMenu.querySelectorAll('ul');\n },\n findOverflowedIndex() {\n const items = [...this.$refs['menu-items'].childNodes];\n const { length } = items;\n for (let i = 0; i < length; i++) {\n if (items[i].offsetTop > items[i].clientTop) {\n this.overflowedItems.startIndex = i;\n break;\n }\n }\n },\n markOverflowedItems() {\n this.findOverflowedIndex();\n this.overflowedItems.items =\n this.overflowedItems.startIndex > -1 ? this.items.slice(this.overflowedItems.startIndex) : [];\n },\n openModalGiveKudos() {\n if (this.allowedToGiveKudos) {\n this.giveKudosComponent = this.giveKudosModalComponent();\n }\n },\n closeModalGiveKudos() {\n this.giveKudosComponent = undefined;\n }, giveKudosModalComponent() {\n return () => Promise.all(/*! import() | kudosForm */[__webpack_require__.e(\"vue\"), __webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"vendors~kudosForm\"), __webpack_require__.e(\"kudosForm\")]).then(__webpack_require__.bind(null, /*! ./components/give-kudos-form/GiveKudosForm.vue */ \"./components/give-kudos-form/GiveKudosForm.vue\"));\n }, setOverflowedMenuHeight() {\n this.overflowedMenus.forEach(menu => {\n menu.style.height = `${this.overflowMenuMaxItemCount * this.overflowMenuItemHeight}px`;\n });\n },\n moveOverflowedMenu() {\n this.isOveflowedMenuMoved = true;\n this.setOverflowedMenuHeight();\n },\n resetOverflowedMenu() {\n this.isOveflowedMenuMoved = false;\n this.overflowedMenus.forEach(menu => {\n menu.style.height = 'auto';\n });\n },\n initializeRejectionComponent(rejectionData) {\n this.rejectConfirm = rejectionData.rejectionComponent;\n this.rejectedNotification = rejectionData.notification;\n },\n confirmedReject(payload) {\n const action = this.rejectedNotification.actions.first(item => item.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].unpaid_leave\n ].includes(this.rejectedNotification.category)) {\n action.body.rejection_reason = payload.comment;\n }\n else {\n action.body.reject_reason = payload;\n }\n this.requestNotification(action);\n this.unsetRejection();\n },\n unsetRejection() {\n this.rejectConfirm = null;\n },\n initializeItems() {\n this.items = [\n {\n name: 'Time',\n link: this.isLiteDomain ? 'Time' : 'time',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_time'\n },\n {\n name: 'Leaves and Absences',\n link: this.isLiteDomain ? 'Leaves and Absences' : 'leaves-and-absences/balance',\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_leaves_and_absences'\n },\n {\n name: 'Stats',\n link: 'stats',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_stats'\n },\n {\n name: 'IntelliShare',\n link: 'donations',\n toLite: false,\n toIntelliHub: this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_donation_campaigns',\n blank: true\n },\n {\n name: 'Operations',\n link: this.isLiteDomain ? 'Reporting Branches' : 'projects',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_projects'\n },\n {\n name: 'Reports',\n link: this.isLiteDomain ? 'project-report' : 'reports/project-report',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'reports_tab'\n },\n {\n name: 'Team',\n link: 'view-employees',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_team'\n },\n {\n name: 'News',\n link: 'news',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_news'\n },\n {\n name: 'Service desk',\n link: 'https://jira.intellias.com/servicedesk/customer/portals',\n toMainDomain: true,\n menuCheck: 'menu_service_desk',\n blank: true\n },\n {\n name: 'Knowledge base',\n link: 'https://confluence.intellias.com/pages/viewpage.action?pageId=110035843',\n toMainDomain: true,\n menuCheck: 'menu_knowledge_base',\n blank: true\n },\n {\n name: 'IntelliTube',\n link: 'https://intellias.sharepoint.com/sites/IntelliTube',\n toMainDomain: true,\n menuCheck: 'menu_intelli_tube',\n blank: true\n },\n {\n name: 'IntelliVacancies',\n link: this.isLiteDomain ? 'IntelliVacancies' : 'intelli-vacancies',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_rotation_portal'\n },\n {\n name: 'Book a desk',\n link: 'https://intellias.officespacesoftware.com/visual-directory',\n toMainDomain: true,\n menuCheck: 'menu_office_space',\n blank: true\n },\n {\n name: 'Company EA Model',\n link: this.isLiteDomain ? 'Company EA Model' : 'ea',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_ea_model'\n },\n {\n name: 'Admin',\n menuCheck: 'menu_admin',\n adminMenu: true\n },\n {\n name: 'Time Imports',\n menuCheck: 'menu_here_board_page',\n hereBoardMenu: true\n },\n {\n name: \"Manager's Portal\",\n link: `${this.intemsConfig.liteSiteUrl}managers-portal`,\n isDirectLink: true,\n menuCheck: 'menu_manager_portal'\n }\n ];\n },\n initializeAdminItems() {\n this.adminItems = [\n {\n name: 'Admin support',\n menuCheck: 'menu_admin_it_support',\n opened: false,\n children: [\n {\n name: 'Access roles',\n menuCheck: 'setup_roles',\n link: this.isLiteDomain ? 'Access Roles' : 'access-roles',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Work areas(new)',\n menuCheck: 'menu_work_areas',\n link: this.isLiteDomain ? 'office-assignments' : 'work-areas/office-assignments',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Work areas(old)',\n menuCheck: 'menu_work_areas',\n link: 'work-areas',\n toMainDomain: true\n },\n {\n name: 'Technical work',\n menuCheck: 'menu_admin_it_support_technical_work',\n link: 'technical-work',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Access cards',\n menuCheck: 'menu_admin_it_support_access_cards',\n link: 'access-cards',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Client IPs',\n menuCheck: 'menu_admin_it_support_client_ips',\n link: 'clients/index.php',\n toMainDomain: true\n },\n {\n name: 'View logs',\n menuCheck: 'menu_admin_it_support_view_logs',\n link: this.isLiteDomain ? 'view_logs' : 'view-logs',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Service page',\n menuCheck: 'menu_service_page',\n link: this.isLiteDomain ? 'Service' : 'service-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ]\n },\n {\n name: 'HR',\n menuCheck: 'menu_admin_hr',\n opened: false,\n children: [\n {\n name: 'Manage IntelliStore',\n menuCheck: 'menu_intelli_store_manage',\n link: this.isLiteDomain\n ? 'catalog-admin-products-list'\n : 'total-rewards-portal/smart-catalog/admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Events',\n menuCheck: 'event_and_training',\n link: this.isLiteDomain ? 'Manage trainings' : 'trainings',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Calendars',\n menuCheck: 'menu_admin_holiday_calendar',\n link: 'calendars',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage smarts',\n menuCheck: 'menu_admin_hr_manage_smarts',\n link: 'manage-smarts',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage news',\n menuCheck: 'menu_admin_hr_news',\n link: 'manage-news-list',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage communities',\n menuCheck: 'manage_communities',\n link: 'manage-communities',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Compensation packages',\n menuCheck: 'menu_admin_comp_list',\n link: this.isLiteDomain ? 'compensation-package' : 'admin/compensation-package',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Banners',\n menuCheck: 'menu_admin_banners',\n link: this.isLiteDomain ? 'Banners List' : 'banners',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage Welcome Program',\n link: this.isLiteDomain ? 'Manage Welcome Program' : 'admin/welcome-program',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_manage_welcome_program'\n },\n {\n name: 'Jira Satisfaction Survey',\n menuCheck: 'menu_enps_survey_admin',\n link: this.isLiteDomain ? 'Jira Satisfaction Survey List' : 'jira-satisfaction-survey',\n toMainDomain: false,\n toLite: !this.isLiteDomain\n },\n {\n name: 'Request Employees Location',\n menuCheck: 'request_employees_location',\n link: 'request-employees-location',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ]\n },\n {\n name: 'Accountancy',\n menuCheck: 'menu_admin_accountancy',\n link: 'accountancy/detailedReporting',\n toMainDomain: true\n },\n {\n name: 'Countries',\n menuCheck: 'menu_admin_dictionary',\n link: this.isLiteDomain ? 'dictionary-page' : 'countries',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n },\n initializeHereBoardItems() {\n this.hereBoardItems = [\n {\n name: 'Employee Dashboard',\n menuCheck: 'menu_here_board_page_user',\n link: this.isLiteDomain ? 'Here Board Page' : 'here-board-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manager Dashboard',\n menuCheck: 'menu_here_board_page_manager',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Admin Dashboard',\n menuCheck: 'menu_here_board_page_owner',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n } }),\n data() {\n return {\n flagShowSignOutLinks: false,\n sideNavOpened: false,\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](),\n rejectConfirm: undefined,\n rejectedNotification: undefined,\n giveKudosComponent: undefined,\n items: [],\n adminItems: [],\n hereBoardItems: [],\n overflowedItems: {\n items: [],\n startIndex: -1\n },\n overflowedMenus: undefined,\n isOveflowedMenuMoved: false\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./Menu.ts?");
222
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! mobile-device-detect */ \"./node_modules/mobile-device-detect/dist/index.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/notifications-sidebar/NotificationsSidebar.vue */ \"./components/notifications-sidebar/NotificationsSidebar.vue\");\n/* harmony import */ var _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/play-pause/PlayPause.vue */ \"./components/play-pause/PlayPause.vue\");\n/* harmony import */ var _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/sub-menu/SubMenu.vue */ \"./components/sub-menu/SubMenu.vue\");\n/* harmony import */ var _repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./repositories/BaseUrl */ \"./repositories/BaseUrl.ts\");\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/user-picture/UserPicture.vue */ \"./components/user-picture/UserPicture.vue\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n/* harmony import */ var _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/onboarding-sign/OnBoardingSign.vue */ \"./components/onboarding-sign/OnBoardingSign.vue\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'MainMenu',\n components: {\n UserPicture: _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n NotificationsSidebar: _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n playPause: _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n SubMenu: _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n OnBoardingSign: _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__[\"default\"]\n },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n subMenus: {\n type: Array\n },\n layout: {\n type: _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n required: true\n }\n },\n provide() {\n return {\n layout: this.layout,\n storeAdapter: this.storeAdapter,\n subMenus: this.isLiteDomain ? this.subMenus : null,\n helperFunctions: this.helperFunctions\n };\n },\n mounted() {\n this.initializeItems();\n this.initializeAdminItems();\n this.initializeHereBoardItems();\n this.attachOverflowItems();\n this.$echo\n .private(`employee.${this.getUser.employee_id}`)\n .listen('SmartBalanceChanged', () => this.storeAdapter.User.actions.getData())\n .listen('LiqPayDonationProcessed', payload => {\n if (payload.status === 'finished') {\n this.storeAdapter.Toasts.mutations.addMessage(`${payload.quantity} UAH was successfully donated.`);\n }\n else {\n this.storeAdapter.Toasts.mutations.addWarning(`Donation ${payload.quantity} UAH was failed.`);\n }\n this.storeAdapter.Toasts.mutations.showAll();\n });\n },\n updated() {\n this.findOverflowedIndex();\n if (this.overflowedItems.items.length) {\n this.attachOverflowedMenus();\n }\n },\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser', 'isSidebarFixed', 'isSidebarOpenOnMobile'])), { intemsConfig() {\n return this.storeAdapter.Config.state.data;\n },\n userInfo() {\n return this.storeAdapter.User.state.data;\n },\n uncheckedCounter() {\n var _a;\n if ((_a = this.storeAdapter.HomePage_OnBoardingPlan.getters) === null || _a === void 0 ? void 0 : _a.notCheckedTasksLength) {\n return this.storeAdapter.HomePage_OnBoardingPlan.getters.notCheckedTasksLength;\n }\n return this.userInfo.welcomeProgram.unchecked_welcome_program_questions;\n },\n canSeeGitBranch() {\n return this.$can('read', 'feature_show_git_branch');\n },\n intelliHubIconsClassName() {\n return {\n 'icons hide-on-med-and-down': this.isIntelliHub || this.isManagersPortal,\n 'icons fixed-padding hide-on-med-and-down': this.isLiteDomain\n };\n },\n intelliHubAvatarClassName() {\n return this.isIntelliHub || this.isManagersPortal\n ? 'intellihub-user-wrapper'\n : 'intellihub-user-wrapper fixed-padding';\n },\n intelliHubNotificationsClassName() {\n return {\n 'notifications-bell': this.isIntelliHub || this.isManagersPortal,\n 'notifications-bell fixed-padding': this.isLiteDomain\n };\n },\n isIntelliHub() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].IntelliHub;\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Lite;\n },\n isManagersPortal() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].ManagersPortal;\n },\n allowedToGiveKudos() {\n return this.userInfo.kudos_balance > 0;\n },\n isFreelancer() {\n return this.getUser.is_freelancer;\n },\n vacationBalance() {\n return this.userInfo.vacation_balance;\n },\n overflowMenuItemHeight() {\n return this.overflowedMenus[0].querySelector('li').getBoundingClientRect().height;\n },\n overflowMenuMaxItemCount() {\n const itemCountPerMenu = [];\n this.overflowedMenus.forEach(menu => {\n itemCountPerMenu.push(menu.querySelectorAll(':scope > li').length);\n });\n return Math.max(...itemCountPerMenu);\n },\n isMobileDevice() {\n return mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__[\"isMobileOnly\"];\n },\n isTabletDevice() {\n return mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__[\"isTablet\"];\n } }),\n watch: {\n // kostyl to close dropdown after back button press\n $route() {\n if (this.sideNavOpened) {\n this.toggleSideNavVisibility();\n }\n },\n 'overflowedItems.startIndex': {\n handler(index) {\n this.overflowedItems.items = this.items.slice(index);\n }\n }\n },\n methods: Object.assign(Object.assign(Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['markAsRead'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['toggleSidebarFixation', 'toggleSidebarOnMobile'])), { requestNotification(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.markAsRead(this.rejectedNotification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__[\"RequestMethod\"].put, action.body);\n });\n },\n logOut() {\n return __awaiter(this, void 0, void 0, function* () {\n const repository = new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](_repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__[\"BaseUrl\"].LogOut);\n const data = yield repository.post();\n if (data.data !== undefined) {\n window.location.href = data.data.redirect_url;\n }\n });\n },\n handleSidebarTogglerClick() {\n if (!this.isMobileDevice || this.isTabletDevice) {\n this.toggleSidebarFixation();\n }\n else {\n this.toggleSidebarOnMobile();\n }\n },\n goTo(routeName) {\n this.helperFunctions.router.push({ name: routeName });\n },\n modifyOpenedAdminItems(indexItem) {\n const collapsibleWrapper = document.getElementById('admin_collapsible');\n const collaplsedAdminItem = collapsibleWrapper.children[indexItem].children[1];\n const animationSmoothness = 0.4;\n const transitionDuration = `${collaplsedAdminItem.children.length * animationSmoothness}s`;\n collaplsedAdminItem.style.transitionDuration = transitionDuration;\n this.adminItems = this.adminItems.map((item, index) => item.children && index === indexItem ? Object.assign(Object.assign({}, item), { opened: !item.opened }) : item);\n },\n toggleSideNavVisibility() {\n this.sideNavOpened = !this.sideNavOpened;\n },\n attachOverflowItems() {\n this.markOverflowedItems();\n window.addEventListener('resize', this.markOverflowedItems);\n },\n attachOverflowedMenus() {\n this.overflowedMenus = this.$refs.overflowedMenu.querySelectorAll('ul');\n },\n findOverflowedIndex() {\n const items = [...this.$refs['menu-items'].childNodes];\n const { length } = items;\n for (let i = 0; i < length; i++) {\n if (items[i].offsetTop > items[i].clientTop) {\n this.overflowedItems.startIndex = i;\n break;\n }\n }\n },\n markOverflowedItems() {\n this.findOverflowedIndex();\n this.overflowedItems.items =\n this.overflowedItems.startIndex > -1 ? this.items.slice(this.overflowedItems.startIndex) : [];\n },\n openModalGiveKudos() {\n if (this.allowedToGiveKudos) {\n this.giveKudosComponent = this.giveKudosModalComponent();\n }\n },\n closeModalGiveKudos() {\n this.giveKudosComponent = undefined;\n }, giveKudosModalComponent() {\n return () => Promise.all(/*! import() | kudosForm */[__webpack_require__.e(\"vue\"), __webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"vendors~kudosForm\"), __webpack_require__.e(\"kudosForm\")]).then(__webpack_require__.bind(null, /*! ./components/give-kudos-form/GiveKudosForm.vue */ \"./components/give-kudos-form/GiveKudosForm.vue\"));\n }, setOverflowedMenuHeight() {\n this.overflowedMenus.forEach(menu => {\n menu.style.height = `${this.overflowMenuMaxItemCount * this.overflowMenuItemHeight}px`;\n });\n },\n moveOverflowedMenu() {\n this.isOveflowedMenuMoved = true;\n this.setOverflowedMenuHeight();\n },\n resetOverflowedMenu() {\n this.isOveflowedMenuMoved = false;\n this.overflowedMenus.forEach(menu => {\n menu.style.height = 'auto';\n });\n },\n initializeRejectionComponent(rejectionData) {\n this.rejectConfirm = rejectionData.rejectionComponent;\n this.rejectedNotification = rejectionData.notification;\n },\n confirmedReject(payload) {\n const action = this.rejectedNotification.actions.first(item => item.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].unpaid_leave\n ].includes(this.rejectedNotification.category)) {\n action.body.rejection_reason = payload.comment;\n }\n else {\n action.body.reject_reason = payload;\n }\n this.requestNotification(action);\n this.unsetRejection();\n },\n unsetRejection() {\n this.rejectConfirm = null;\n },\n initializeItems() {\n this.items = [\n {\n name: 'Time',\n link: this.isLiteDomain ? 'Time' : 'time',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_time'\n },\n {\n name: 'Leaves and Absences',\n link: this.isLiteDomain ? 'Leaves and Absences' : 'leaves-and-absences/balance',\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_leaves_and_absences'\n },\n {\n name: 'Stats',\n link: 'stats',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_stats'\n },\n {\n name: 'IntelliShare',\n link: 'donations',\n toLite: false,\n toIntelliHub: this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_donation_campaigns',\n blank: true\n },\n {\n name: 'Operations',\n link: this.isLiteDomain ? 'Reporting Branches' : 'projects',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_projects'\n },\n {\n name: 'Reports',\n link: this.isLiteDomain ? 'project-report' : 'reports/project-report',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'reports_tab'\n },\n {\n name: 'Team',\n link: 'view-employees',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_team'\n },\n {\n name: 'News',\n link: 'news',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_news'\n },\n {\n name: 'Service desk',\n link: 'https://jira.intellias.com/servicedesk/customer/portals',\n toMainDomain: true,\n menuCheck: 'menu_service_desk',\n blank: true\n },\n {\n name: 'Knowledge base',\n link: 'https://confluence.intellias.com/pages/viewpage.action?pageId=110035843',\n toMainDomain: true,\n menuCheck: 'menu_knowledge_base',\n blank: true\n },\n {\n name: 'IntelliTube',\n link: 'https://intellias.sharepoint.com/sites/IntelliTube',\n toMainDomain: true,\n menuCheck: 'menu_intelli_tube',\n blank: true\n },\n {\n name: 'IntelliVacancies',\n link: this.isLiteDomain ? 'IntelliVacancies' : 'intelli-vacancies',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_rotation_portal'\n },\n {\n name: 'Book a desk',\n link: 'https://intellias.officespacesoftware.com/visual-directory',\n toMainDomain: true,\n menuCheck: 'menu_office_space',\n blank: true\n },\n {\n name: 'Company EA Model',\n link: this.isLiteDomain ? 'Company EA Model' : 'ea',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_ea_model'\n },\n {\n name: 'Admin',\n menuCheck: 'menu_admin',\n adminMenu: true\n },\n {\n name: 'Time Imports',\n menuCheck: 'menu_here_board_page',\n hereBoardMenu: true\n },\n {\n name: \"Manager's Portal\",\n link: `${this.intemsConfig.liteSiteUrl}managers-portal`,\n isDirectLink: true,\n menuCheck: 'menu_manager_portal'\n }\n ];\n },\n initializeAdminItems() {\n this.adminItems = [\n {\n name: 'Admin support',\n menuCheck: 'menu_admin_it_support',\n opened: false,\n children: [\n {\n name: 'Access roles',\n menuCheck: 'setup_roles',\n link: this.isLiteDomain ? 'Access Roles' : 'access-roles',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Work areas(new)',\n menuCheck: 'menu_work_areas',\n link: this.isLiteDomain ? 'office-assignments' : 'work-areas/office-assignments',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Work areas(old)',\n menuCheck: 'menu_work_areas',\n link: 'work-areas',\n toMainDomain: true\n },\n {\n name: 'Technical work',\n menuCheck: 'menu_admin_it_support_technical_work',\n link: 'technical-work',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Access cards',\n menuCheck: 'menu_admin_it_support_access_cards',\n link: 'access-cards',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Client IPs',\n menuCheck: 'menu_admin_it_support_client_ips',\n link: 'clients/index.php',\n toMainDomain: true\n },\n {\n name: 'View logs',\n menuCheck: 'menu_admin_it_support_view_logs',\n link: this.isLiteDomain ? 'view_logs' : 'view-logs',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Service page',\n menuCheck: 'menu_service_page',\n link: this.isLiteDomain ? 'Service' : 'service-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ]\n },\n {\n name: 'HR',\n menuCheck: 'menu_admin_hr',\n opened: false,\n children: [\n {\n name: 'Manage IntelliStore',\n menuCheck: 'menu_intelli_store_manage',\n link: this.isLiteDomain\n ? 'catalog-admin-products-list'\n : 'total-rewards-portal/smart-catalog/admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Events',\n menuCheck: 'event_and_training',\n link: this.isLiteDomain ? 'Manage trainings' : 'trainings',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Calendars',\n menuCheck: 'menu_admin_holiday_calendar',\n link: 'calendars',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage smarts',\n menuCheck: 'menu_admin_hr_manage_smarts',\n link: 'manage-smarts',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage news',\n menuCheck: 'menu_admin_hr_news',\n link: 'manage-news-list',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage communities',\n menuCheck: 'manage_communities',\n link: 'manage-communities',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Compensation packages',\n menuCheck: 'menu_admin_comp_list',\n link: this.isLiteDomain ? 'compensation-package' : 'admin/compensation-package',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Banners',\n menuCheck: 'menu_admin_banners',\n link: this.isLiteDomain ? 'Banners List' : 'banners',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage Welcome Program',\n link: this.isLiteDomain ? 'Manage Welcome Program' : 'admin/welcome-program',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_manage_welcome_program'\n },\n {\n name: 'Jira Satisfaction Survey',\n menuCheck: 'menu_enps_survey_admin',\n link: this.isLiteDomain ? 'Jira Satisfaction Survey List' : 'jira-satisfaction-survey',\n toMainDomain: false,\n toLite: !this.isLiteDomain\n },\n {\n name: 'Request Employees Location',\n menuCheck: 'request_employees_location',\n link: 'request-employees-location',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ]\n },\n {\n name: 'Accountancy',\n menuCheck: 'menu_admin_accountancy',\n link: 'accountancy/detailedReporting',\n toMainDomain: true\n },\n {\n name: 'Countries',\n menuCheck: 'menu_admin_dictionary',\n link: this.isLiteDomain ? 'dictionary-page' : 'countries',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n },\n initializeHereBoardItems() {\n this.hereBoardItems = [\n {\n name: 'Employee Dashboard',\n menuCheck: 'menu_here_board_page_user',\n link: this.isLiteDomain ? 'Here Board Page' : 'here-board-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manager Dashboard',\n menuCheck: 'menu_here_board_page_manager',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Admin Dashboard',\n menuCheck: 'menu_here_board_page_owner',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n } }),\n data() {\n return {\n flagShowSignOutLinks: false,\n sideNavOpened: false,\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](),\n rejectConfirm: undefined,\n rejectedNotification: undefined,\n giveKudosComponent: undefined,\n items: [],\n adminItems: [],\n hereBoardItems: [],\n overflowedItems: {\n items: [],\n startIndex: -1\n },\n overflowedMenus: undefined,\n isOveflowedMenuMoved: false\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./Menu.ts?");
223
223
 
224
224
  /***/ }),
225
225
 
@@ -1949,7 +1949,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1949
1949
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1950
1950
 
1951
1951
  "use strict";
1952
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy;\n return _c(\"div\", {\n staticClass: \"notifications-sidebar dropdown-menu\",\n class: {\n dark: _vm.darkTheme\n }\n }, [_c(\"dropdown-menu\", {\n attrs: {\n direction: \"center\",\n overlay: false,\n isOpen: _vm.dropDownOpen\n },\n on: {\n opened: _vm.initData\n },\n scopedSlots: _vm._u([{\n key: \"trigger\",\n fn: function () {\n return [_c(\"a\", {\n ref: \"notifications_sidebar\",\n staticClass: \"notification-href pointer\"\n }, [_c(\"i\", {\n staticClass: \"icon menu-icon notification\",\n class: {\n \"bell-animation\": _vm.displayAnimation\n }\n }), _vm._v(\" \"), _c(\"transition\", {\n attrs: {\n name: \"fade\",\n duration: {\n enter: 4000,\n leave: 1\n }\n }\n }, [_c(\"span\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.hasUnreadNotifications,\n expression: \"hasUnreadNotifications\"\n }],\n staticClass: \"has-unread\"\n })])], 1)];\n },\n proxy: true\n }, {\n key: \"header\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"row note-title-row\"\n }, [_c(\"div\", {\n staticClass: \"col s10\"\n }, [_c(\"span\", {\n staticClass: \"primary-text\"\n }, [_vm._v(\"Notifications\")])]), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"col s2\"\n }, [_c(\"dropdown-menu\", {\n attrs: {\n direction: \"left\",\n overlay: false\n },\n scopedSlots: _vm._u([{\n key: \"trigger\",\n fn: function () {\n return [_c(\"a\", {\n ref: \"manage_dropdown\",\n staticClass: \"pointer\",\n attrs: {\n \"data-target\": `manage_dropdown_${_vm._uid}`\n }\n }, [_c(\"div\", {\n staticClass: \"notification-manage-toggler\"\n }, [_c(\"span\"), _vm._v(\" \"), _c(\"span\"), _vm._v(\" \"), _c(\"span\")])])];\n },\n proxy: true\n }, {\n key: \"body\",\n fn: function () {\n return [_c(\"ul\", {\n staticClass: \"sub-menu\"\n }, [_c(\"li\", [_c(\"a\", {\n class: {\n \"is-disabled\": !_vm.totalUnread.notice && !_vm.totalUnread.pending_request\n },\n on: {\n click: _vm.readAll\n }\n }, [_vm._v(\"\\n Mark all as read\\n \")])]), _vm._v(\" \"), _c(\"li\", [_c(\"a\", {\n class: {\n \"is-disabled\": !_vm.notices.count() && !_vm.pendingRequests.count()\n },\n on: {\n click: _vm.dismissAll\n }\n }, [_vm._v(\"\\n Dismiss all\\n \")])])])];\n },\n proxy: true\n }])\n })], 1)])];\n },\n proxy: true\n }, {\n key: \"body\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"main-dropdown\"\n }, [_c(\"div\", {\n staticClass: \"row\"\n }, [_c(\"tabs\", {\n ref: \"tabs\",\n attrs: {\n tabs: _vm.tabs,\n currentTab: _vm.currentTab,\n \"wrapper-class\": \"default-tabs\",\n \"tab-class\": \"tab\",\n \"tab-active-class\": \"active\",\n \"line-class\": \"indicator\"\n },\n on: {\n onClick: _vm.changeActiveTab\n }\n }), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"notification-content\"\n }, [_c(\"div\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.currentTab === \"all\",\n expression: \"currentTab === 'all'\"\n }],\n staticClass: \"row notifications-list\"\n }, [_c(\"vue-custom-scrollbar\", {\n ref: \"scrollBar\",\n staticClass: \"col tab-content\",\n attrs: {\n options: _vm.scrollBarSettings\n },\n on: {\n \"ps-y-reach-end\": _vm.loadAllNotifications\n }\n }, [_vm._l(_vm.notices, function (notification) {\n return _c(\"notification\", {\n key: notification.id,\n attrs: {\n notification: notification\n },\n on: {\n \"rejection-component\": _vm.emitRejectionComponent\n }\n });\n }), _vm._v(\" \"), _vm.queryAll.loading ? _c(\"preloader\", {\n attrs: {\n size: _vm.preloaderSize\n }\n }) : !_vm.notices.count() ? _c(\"div\", {\n staticClass: \"main-text margin-top-50 align-center\"\n }, [_vm._v(\"\\n You have no new notifications\\n \")]) : _vm._e()], 2)], 1), _vm._v(\" \"), _c(\"div\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.currentTab === \"pending_approval\",\n expression: \"currentTab === 'pending_approval'\"\n }],\n staticClass: \"row notifications-list\"\n }, [_c(\"vue-custom-scrollbar\", {\n staticClass: \"col tab-content\",\n attrs: {\n options: _vm.scrollBarSettings\n },\n on: {\n \"ps-y-reach-end\": _vm.loadPendingRequests\n }\n }, [_vm._l(_vm.pendingRequests, function (notification) {\n return _c(\"notification\", {\n key: notification.id,\n attrs: {\n notification: notification\n },\n on: {\n \"rejection-component\": _vm.emitRejectionComponent\n }\n });\n }), _vm._v(\" \"), _vm.queryAll.loading ? _c(\"preloader\", {\n attrs: {\n size: _vm.preloaderSize\n }\n }) : !_vm.pendingRequests.count() ? _c(\"div\", {\n staticClass: \"main-text margin-top-50 align-center\"\n }, [_vm._v(\"\\n You have no pending requests\\n \")]) : _vm._e()], 2)], 1)])], 1), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"row view-all-row align-center\"\n }, [_vm.isLiteDomain ? _c(\"action-button\", {\n attrs: {\n to: {\n name: \"Employee Notifications\"\n },\n \"is-link\": \"\"\n },\n nativeOn: {\n click: function ($event) {\n return _vm.closeSidebar.apply(null, arguments);\n }\n }\n }, [_vm._v(\"\\n View all\\n \")]) : _c(\"action-button\", {\n attrs: {\n href: `${_vm.intemsConfig.liteSiteUrl}employee/notifications`,\n \"is-link\": \"\"\n },\n nativeOn: {\n click: function ($event) {\n return _vm.closeSidebar.apply(null, arguments);\n }\n }\n }, [_vm._v(\"\\n View all\\n \")])], 1)])];\n },\n proxy: true\n }])\n })], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://MainMenu/./components/notifications-sidebar/NotificationsSidebar.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options");
1952
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function render() {\n var _vm = this,\n _c = _vm._self._c,\n _setup = _vm._self._setupProxy;\n return _c(\"div\", {\n staticClass: \"notifications-sidebar dropdown-menu\",\n class: {\n dark: _vm.darkTheme\n }\n }, [_c(\"dropdown-menu\", {\n attrs: {\n direction: \"center\",\n overlay: false,\n isOpen: _vm.dropDownOpen\n },\n on: {\n opened: _vm.initData\n },\n scopedSlots: _vm._u([{\n key: \"trigger\",\n fn: function () {\n return [_c(\"a\", {\n staticClass: \"notifications-trigger pointer\"\n }, [_c(\"i\", {\n staticClass: \"icon menu-icon notification\",\n class: {\n \"bell-animation\": _vm.displayAnimation\n }\n }), _vm._v(\" \"), _c(\"transition\", {\n attrs: {\n name: \"fade\",\n duration: {\n enter: 4000,\n leave: 1\n }\n }\n }, [_c(\"span\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.hasUnreadNotifications,\n expression: \"hasUnreadNotifications\"\n }],\n staticClass: \"has-unread\"\n })])], 1)];\n },\n proxy: true\n }, {\n key: \"header\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"row note-title-row\"\n }, [_c(\"div\", {\n staticClass: \"col s10\"\n }, [_c(\"span\", {\n staticClass: \"primary-text\"\n }, [_vm._v(\"Notifications\")])]), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"col s2\"\n }, [_c(\"dropdown-menu\", {\n staticClass: \"notifications-state-marker\",\n attrs: {\n direction: \"left\",\n overlay: false\n },\n scopedSlots: _vm._u([{\n key: \"trigger\",\n fn: function () {\n return [_c(\"a\", {\n staticClass: \"pointer\"\n }, [_c(\"div\", {\n staticClass: \"notification-manage-toggler\"\n }, [_c(\"span\"), _vm._v(\" \"), _c(\"span\"), _vm._v(\" \"), _c(\"span\")])])];\n },\n proxy: true\n }, {\n key: \"body\",\n fn: function () {\n return [_c(\"ul\", {\n staticClass: \"sub-menu\"\n }, [_c(\"li\", [_c(\"a\", {\n class: {\n \"is-disabled\": !_vm.totalUnread.notice && !_vm.totalUnread.pending_request\n },\n on: {\n click: _vm.readAll\n }\n }, [_vm._v(\"\\n Mark all as read\\n \")])]), _vm._v(\" \"), _c(\"li\", [_c(\"a\", {\n class: {\n \"is-disabled\": !_vm.notices.count() && !_vm.pendingRequests.count()\n },\n on: {\n click: _vm.dismissAll\n }\n }, [_vm._v(\"\\n Dismiss all\\n \")])])])];\n },\n proxy: true\n }])\n })], 1)])];\n },\n proxy: true\n }, {\n key: \"body\",\n fn: function () {\n return [_c(\"div\", {\n staticClass: \"main-dropdown\"\n }, [_c(\"div\", {\n staticClass: \"row\"\n }, [_c(\"tabs\", {\n ref: \"tabs\",\n attrs: {\n tabs: _vm.tabs,\n currentTab: _vm.currentTab,\n \"wrapper-class\": \"default-tabs\",\n \"tab-class\": \"tab\",\n \"tab-active-class\": \"active\",\n \"line-class\": \"indicator\"\n },\n on: {\n onClick: _vm.changeActiveTab\n }\n }), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"notification-content\"\n }, [_c(\"div\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.currentTab === \"all\",\n expression: \"currentTab === 'all'\"\n }],\n staticClass: \"row notifications-list\"\n }, [_c(\"vue-custom-scrollbar\", {\n ref: \"scrollBar\",\n staticClass: \"col tab-content\",\n attrs: {\n options: _vm.scrollBarSettings\n },\n on: {\n \"ps-y-reach-end\": _vm.loadAllNotifications\n }\n }, [_vm._l(_vm.notices, function (notification) {\n return _c(\"notification\", {\n key: notification.id,\n attrs: {\n notification: notification\n },\n on: {\n \"rejection-component\": _vm.emitRejectionComponent\n }\n });\n }), _vm._v(\" \"), _vm.queryAll.loading ? _c(\"preloader\", {\n attrs: {\n size: _vm.preloaderSize\n }\n }) : !_vm.notices.count() ? _c(\"div\", {\n staticClass: \"main-text margin-top-50 align-center\"\n }, [_vm._v(\"\\n You have no new notifications\\n \")]) : _vm._e()], 2)], 1), _vm._v(\" \"), _c(\"div\", {\n directives: [{\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.currentTab === \"pending_approval\",\n expression: \"currentTab === 'pending_approval'\"\n }],\n staticClass: \"row notifications-list\"\n }, [_c(\"vue-custom-scrollbar\", {\n staticClass: \"col tab-content\",\n attrs: {\n options: _vm.scrollBarSettings\n },\n on: {\n \"ps-y-reach-end\": _vm.loadPendingRequests\n }\n }, [_vm._l(_vm.pendingRequests, function (notification) {\n return _c(\"notification\", {\n key: notification.id,\n attrs: {\n notification: notification\n },\n on: {\n \"rejection-component\": _vm.emitRejectionComponent\n }\n });\n }), _vm._v(\" \"), _vm.queryAll.loading ? _c(\"preloader\", {\n attrs: {\n size: _vm.preloaderSize\n }\n }) : !_vm.pendingRequests.count() ? _c(\"div\", {\n staticClass: \"main-text margin-top-50 align-center\"\n }, [_vm._v(\"\\n You have no pending requests\\n \")]) : _vm._e()], 2)], 1)])], 1), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"row view-all-row align-center\"\n }, [_vm.isLiteDomain ? _c(\"action-button\", {\n attrs: {\n to: {\n name: \"Employee Notifications\"\n },\n \"is-link\": \"\"\n },\n nativeOn: {\n click: function ($event) {\n return _vm.closeSidebar.apply(null, arguments);\n }\n }\n }, [_vm._v(\"\\n View all\\n \")]) : _c(\"action-button\", {\n attrs: {\n href: `${_vm.intemsConfig.liteSiteUrl}employee/notifications`,\n \"is-link\": \"\"\n },\n nativeOn: {\n click: function ($event) {\n return _vm.closeSidebar.apply(null, arguments);\n }\n }\n }, [_vm._v(\"\\n View all\\n \")])], 1)])];\n },\n proxy: true\n }])\n })], 1);\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://MainMenu/./components/notifications-sidebar/NotificationsSidebar.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options");
1953
1953
 
1954
1954
  /***/ }),
1955
1955
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellias/menu",
3
- "version": "1.1.14",
3
+ "version": "1.1.16",
4
4
  "description": "Menu for intems project.",
5
5
  "author": "Intems",
6
6
  "scripts": {