@intellias/menu 2.5.6 → 2.5.8

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.
Files changed (2) hide show
  1. package/dist/js/main.js +3 -3
  2. package/package.json +1 -1
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_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/play-pause/PlayPause.vue */ \"./components/play-pause/PlayPause.vue\");\n/* harmony import */ var _components_managers_portal_data_counter_ManagersPortalDataCounter_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/managers-portal-data-counter/ManagersPortalDataCounter.vue */ \"./components/managers-portal-data-counter/ManagersPortalDataCounter.vue\");\n/* harmony import */ var _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/notifications-sidebar/NotificationsSidebar.vue */ \"./components/notifications-sidebar/NotificationsSidebar.vue\");\n/* harmony import */ var _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/user-picture/UserPicture.vue */ \"./components/user-picture/UserPicture.vue\");\n/* harmony import */ var _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/onboarding-sign/OnBoardingSign.vue */ \"./components/onboarding-sign/OnBoardingSign.vue\");\n/* harmony import */ var _repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./repositories/BaseUrl */ \"./repositories/BaseUrl.ts\");\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/MenuLayouts */ \"./models/MenuLayouts.ts\");\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\nconst MEDIA_LANDSCAPE_MODE = '(orientation: landscape)';\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'MainMenu',\n components: { PlayPause: _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"], ManagersPortalDataCounter: _components_managers_portal_data_counter_ManagersPortalDataCounter_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"], NotificationsSidebar: _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"], UserPicture: _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"], OnBoardingSign: _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"] },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n layout: {\n type: _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n required: true\n }\n },\n provide() {\n return {\n layout: this.layout,\n storeAdapter: this.storeAdapter,\n helperFunctions: this.helperFunctions\n };\n },\n created() {\n if (this.isLiteDomain && this.isTabletDevice && !this.isSidebarFixed) {\n this.toggleSidebarFixation();\n }\n },\n mounted() {\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 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 canSeeGitBranch() {\n return this.$can('read', 'feature_show_git_branch');\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Lite;\n },\n isIntelliHub() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"PortalsAppLayout\"].IntelliHub;\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 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 showManagersPortalDataCounter() {\n return this.$can('read', 'menu_manager_portal') && (this.isLiteDomain || this.isIntelliHub);\n },\n hasSimplifiedAccess() {\n console.log(this.getUser);\n console.log(this.getUser.has_simplified_access);\n return this.getUser.has_simplified_access;\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_9__[\"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_8__[\"default\"](_repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_7__[\"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 toggleSidebar() {\n const isLandscapeMode = window.matchMedia(MEDIA_LANDSCAPE_MODE).matches;\n if (!this.isMobileDevice || this.isTabletDevice || isLandscapeMode) {\n this.toggleSidebarFixation();\n }\n else {\n this.toggleSidebarOnMobile();\n }\n },\n openModalGiveKudos() {\n if (this.allowedToGiveKudos) {\n this.giveKudosComponent = this.giveKudosModalComponent();\n }\n },\n closeModalGiveKudos() {\n this.giveKudosComponent = undefined;\n },\n giveKudosModalComponent() {\n return () => Promise.all(/*! import() | kudosForm */[__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 },\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_9__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"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 data() {\n return {\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_8__[\"default\"](),\n rejectConfirm: undefined,\n rejectedNotification: undefined,\n giveKudosComponent: undefined\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_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/play-pause/PlayPause.vue */ \"./components/play-pause/PlayPause.vue\");\n/* harmony import */ var _components_managers_portal_data_counter_ManagersPortalDataCounter_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/managers-portal-data-counter/ManagersPortalDataCounter.vue */ \"./components/managers-portal-data-counter/ManagersPortalDataCounter.vue\");\n/* harmony import */ var _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/notifications-sidebar/NotificationsSidebar.vue */ \"./components/notifications-sidebar/NotificationsSidebar.vue\");\n/* harmony import */ var _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/user-picture/UserPicture.vue */ \"./components/user-picture/UserPicture.vue\");\n/* harmony import */ var _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./components/onboarding-sign/OnBoardingSign.vue */ \"./components/onboarding-sign/OnBoardingSign.vue\");\n/* harmony import */ var _repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./repositories/BaseUrl */ \"./repositories/BaseUrl.ts\");\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./models/MenuLayouts */ \"./models/MenuLayouts.ts\");\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\nconst MEDIA_LANDSCAPE_MODE = '(orientation: landscape)';\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'MainMenu',\n components: { PlayPause: _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"], ManagersPortalDataCounter: _components_managers_portal_data_counter_ManagersPortalDataCounter_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"], NotificationsSidebar: _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"], UserPicture: _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_5__[\"default\"], OnBoardingSign: _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"] },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n layout: {\n type: _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n required: true\n }\n },\n provide() {\n return {\n layout: this.layout,\n storeAdapter: this.storeAdapter,\n helperFunctions: this.helperFunctions\n };\n },\n created() {\n if (this.isLiteDomain && this.isTabletDevice && !this.isSidebarFixed) {\n this.toggleSidebarFixation();\n }\n },\n mounted() {\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 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 canSeeGitBranch() {\n return this.$can('read', 'feature_show_git_branch');\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Lite;\n },\n isIntelliHub() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_11__[\"PortalsAppLayout\"].IntelliHub;\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 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 showManagersPortalDataCounter() {\n return this.$can('read', 'menu_manager_portal') && (this.isLiteDomain || this.isIntelliHub);\n },\n hasSimplifiedAccess() {\n return this.getUser.has_simplified_access;\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_9__[\"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_8__[\"default\"](_repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_7__[\"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 toggleSidebar() {\n const isLandscapeMode = window.matchMedia(MEDIA_LANDSCAPE_MODE).matches;\n if (!this.isMobileDevice || this.isTabletDevice || isLandscapeMode) {\n this.toggleSidebarFixation();\n }\n else {\n this.toggleSidebarOnMobile();\n }\n },\n openModalGiveKudos() {\n if (this.allowedToGiveKudos) {\n this.giveKudosComponent = this.giveKudosModalComponent();\n }\n },\n closeModalGiveKudos() {\n this.giveKudosComponent = undefined;\n },\n giveKudosModalComponent() {\n return () => Promise.all(/*! import() | kudosForm */[__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 },\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_9__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"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 data() {\n return {\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_8__[\"default\"](),\n rejectConfirm: undefined,\n rejectedNotification: undefined,\n giveKudosComponent: undefined\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./Menu.ts?");
223
223
 
224
224
  /***/ }),
225
225
 
@@ -1358,7 +1358,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1358
1358
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1359
1359
 
1360
1360
  "use strict";
1361
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Billable\", function() { return Billable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"JobFamily\", function() { return JobFamily; });\n/* harmony import */ var _PublicInfoModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PublicInfoModel */ \"./models/user/PublicInfoModel.ts\");\n/* harmony import */ var _EmployeeStartEndDateModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../EmployeeStartEndDateModel */ \"./models/EmployeeStartEndDateModel.ts\");\n/* harmony import */ var _WelcomeProgram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WelcomeProgram */ \"./models/user/WelcomeProgram.ts\");\n/* harmony import */ var _helpers_model_decorators_AsModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/model/decorators/AsModel */ \"./helpers/model/decorators/AsModel.ts\");\n/* harmony import */ var _helpers_model_decorators_AsCollection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/model/decorators/AsCollection */ \"./helpers/model/decorators/AsCollection.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\n\n\n\n\nvar Billable;\n(function (Billable) {\n Billable[\"Yes\"] = \"Yes\";\n Billable[\"No\"] = \"No\";\n})(Billable || (Billable = {}));\nvar JobFamily;\n(function (JobFamily) {\n JobFamily[\"Management\"] = \"Management\";\n})(JobFamily || (JobFamily = {}));\nlet ExtendedInfoModel = class ExtendedInfoModel extends _PublicInfoModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor() {\n super(...arguments);\n // Todo: kudos and other balances should be got by relations\n this.kudos_balance = undefined;\n this.has_unread_notifications = undefined;\n this.has_seen_intellihub = undefined;\n this.smart_balance = undefined;\n this.pdu_balance = undefined;\n this.vacation_balance = undefined;\n this.startEndDates = undefined;\n this.last_day_available_for_report = undefined;\n this.welcomeProgram = undefined;\n this.last_seen_release_notes_version = undefined;\n this.jira_pulse_link = undefined;\n this.jira_pulse_survey_sent = undefined;\n this.jira_pulse_survey_received = undefined;\n this.jira_key = undefined;\n this.billable = undefined;\n this.mentorship_learning_path = undefined;\n this.job_family = undefined;\n this.test_here = undefined;\n }\n};\nExtendedInfoModel = __decorate([\n Object(_helpers_model_decorators_AsModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('welcomeProgram', _WelcomeProgram__WEBPACK_IMPORTED_MODULE_2__[\"default\"]),\n Object(_helpers_model_decorators_AsCollection__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('startEndDates', _EmployeeStartEndDateModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"])\n], ExtendedInfoModel);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ExtendedInfoModel);\n\n\n//# sourceURL=webpack://MainMenu/./models/user/ExtendedInfoModel.ts?");
1361
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"Billable\", function() { return Billable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"JobFamily\", function() { return JobFamily; });\n/* harmony import */ var _PublicInfoModel__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./PublicInfoModel */ \"./models/user/PublicInfoModel.ts\");\n/* harmony import */ var _EmployeeStartEndDateModel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../EmployeeStartEndDateModel */ \"./models/EmployeeStartEndDateModel.ts\");\n/* harmony import */ var _WelcomeProgram__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./WelcomeProgram */ \"./models/user/WelcomeProgram.ts\");\n/* harmony import */ var _helpers_model_decorators_AsModel__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/model/decorators/AsModel */ \"./helpers/model/decorators/AsModel.ts\");\n/* harmony import */ var _helpers_model_decorators_AsCollection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/model/decorators/AsCollection */ \"./helpers/model/decorators/AsCollection.ts\");\nvar __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\n return c > 3 && r && Object.defineProperty(target, key, r), r;\n};\n\n\n\n\n\nvar Billable;\n(function (Billable) {\n Billable[\"Yes\"] = \"Yes\";\n Billable[\"No\"] = \"No\";\n})(Billable || (Billable = {}));\nvar JobFamily;\n(function (JobFamily) {\n JobFamily[\"Management\"] = \"Management\";\n})(JobFamily || (JobFamily = {}));\nlet ExtendedInfoModel = class ExtendedInfoModel extends _PublicInfoModel__WEBPACK_IMPORTED_MODULE_0__[\"default\"] {\n constructor() {\n super(...arguments);\n // Todo: kudos and other balances should be got by relations\n this.kudos_balance = undefined;\n this.has_unread_notifications = undefined;\n this.has_seen_intellihub = undefined;\n this.smart_balance = undefined;\n this.pdu_balance = undefined;\n this.vacation_balance = undefined;\n this.startEndDates = undefined;\n this.last_day_available_for_report = undefined;\n this.welcomeProgram = undefined;\n this.last_seen_release_notes_version = undefined;\n this.jira_pulse_link = undefined;\n this.jira_pulse_survey_sent = undefined;\n this.jira_pulse_survey_received = undefined;\n this.jira_key = undefined;\n this.billable = undefined;\n this.mentorship_learning_path = undefined;\n this.job_family = undefined;\n }\n};\nExtendedInfoModel = __decorate([\n Object(_helpers_model_decorators_AsModel__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('welcomeProgram', _WelcomeProgram__WEBPACK_IMPORTED_MODULE_2__[\"default\"]),\n Object(_helpers_model_decorators_AsCollection__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('startEndDates', _EmployeeStartEndDateModel__WEBPACK_IMPORTED_MODULE_1__[\"default\"])\n], ExtendedInfoModel);\n/* harmony default export */ __webpack_exports__[\"default\"] = (ExtendedInfoModel);\n\n\n//# sourceURL=webpack://MainMenu/./models/user/ExtendedInfoModel.ts?");
1362
1362
 
1363
1363
  /***/ }),
1364
1364
 
@@ -7114,7 +7114,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var coll
7114
7114
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7115
7115
 
7116
7116
  "use strict";
7117
- 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 _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ErrorsToToastHelper */ \"./helpers/response/ErrorsToToastHelper.ts\");\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\nvar ActiveSignIndex;\n(function (ActiveSignIndex) {\n ActiveSignIndex[ActiveSignIndex[\"Welcome\"] = 0] = \"Welcome\";\n ActiveSignIndex[ActiveSignIndex[\"NavigateToHub\"] = 1] = \"NavigateToHub\";\n})(ActiveSignIndex || (ActiveSignIndex = {}));\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inject: ['storeAdapter'],\n created() {\n return __awaiter(this, void 0, void 0, function* () {\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Rejected, this.handleReject, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n });\n },\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['setData'])), { skipIntelliHubOnBoarding() {\n return __awaiter(this, void 0, void 0, function* () {\n this.signClosed = true;\n yield this.repository.processIntelliHubOnBoardingFlag(true);\n });\n },\n navigateToIntelliHub() {\n return __awaiter(this, void 0, void 0, function* () {\n this.signClosed = true;\n yield this.repository.processIntelliHubOnBoardingFlag(true);\n window.location.href = `${this.storeAdapter.Config.state.data.liteSiteUrl}intelli-hub`;\n });\n },\n handleSuccess() {\n this.setData(Object.assign(Object.assign({}, this.getUser), { has_seen_intellihub: true }));\n this.signClosed = true;\n },\n handleReject(error) {\n _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showErrors(error);\n },\n showNextSign() {\n this.currentSign = ActiveSignIndex.NavigateToHub;\n },\n nextOnboardingStep() {\n this.showNextSign();\n } }),\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser'])), { isShowingSign() {\n return !this.signClosed && !this.getUser.has_seen_intellihub && !this.getUser.has_simplified_access;\n },\n currentTitle() {\n return this.introSigns[this.currentSign].title;\n },\n currentDescription() {\n return this.introSigns[this.currentSign].description;\n },\n activeSignIndex() {\n return ActiveSignIndex;\n } }),\n data() {\n return {\n repository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n signClosed: false,\n introSigns: [\n {\n title: 'Welcome to IntelliHub!',\n description: 'IntelliHub is your dedicated portal where you can explore and request all the services that Intellias offers. IntelliHub is one of the key enablers of our corporate culture prioritizing support, development, and growth. Enjoy a seamless, efficient, and motivating work experience and share your valuable feedback with us.'\n },\n {\n title: 'All services are within an easy reach',\n description: 'Find all the services previously scattered across INTEMS and Service Desk within easy reach on IntelliHub. IntelliHub is the only search point for all services that used to reside on the Career Hub, IntelliVacancies, Total Rewards, IntelliShare, IntelliStore, My Referrals, My Profile, and Office & IT sections.'\n }\n ],\n currentSign: ActiveSignIndex.Welcome\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/onboarding-sign/OnBoardingSign.vue?./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options");
7117
+ 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 _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ErrorsToToastHelper */ \"./helpers/response/ErrorsToToastHelper.ts\");\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\nvar ActiveSignIndex;\n(function (ActiveSignIndex) {\n ActiveSignIndex[ActiveSignIndex[\"Welcome\"] = 0] = \"Welcome\";\n ActiveSignIndex[ActiveSignIndex[\"NavigateToHub\"] = 1] = \"NavigateToHub\";\n})(ActiveSignIndex || (ActiveSignIndex = {}));\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inject: ['storeAdapter'],\n created() {\n return __awaiter(this, void 0, void 0, function* () {\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Rejected, this.handleReject, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n });\n },\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['setData'])), { skipIntelliHubOnBoarding() {\n return __awaiter(this, void 0, void 0, function* () {\n this.signClosed = true;\n yield this.repository.processIntelliHubOnBoardingFlag(true);\n });\n },\n navigateToIntelliHub() {\n return __awaiter(this, void 0, void 0, function* () {\n this.signClosed = true;\n yield this.repository.processIntelliHubOnBoardingFlag(true);\n window.location.href = `${this.storeAdapter.Config.state.data.liteSiteUrl}intelli-hub`;\n });\n },\n handleSuccess() {\n this.setData(Object.assign(Object.assign({}, this.getUser), { has_seen_intellihub: true }));\n this.signClosed = true;\n },\n handleReject(error) {\n _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showErrors(error);\n },\n showNextSign() {\n this.currentSign = ActiveSignIndex.NavigateToHub;\n },\n nextOnboardingStep() {\n this.showNextSign();\n } }),\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser'])), { isShowingSign() {\n const a = !this.signClosed && !this.getUser.has_seen_intellihub && !this.getUser.has_simplified_access;\n console.log(a);\n return !this.signClosed && !this.getUser.has_seen_intellihub && !this.getUser.has_simplified_access;\n },\n currentTitle() {\n return this.introSigns[this.currentSign].title;\n },\n currentDescription() {\n return this.introSigns[this.currentSign].description;\n },\n activeSignIndex() {\n return ActiveSignIndex;\n } }),\n data() {\n return {\n repository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n signClosed: false,\n introSigns: [\n {\n title: 'Welcome to IntelliHub!',\n description: 'IntelliHub is your dedicated portal where you can explore and request all the services that Intellias offers. IntelliHub is one of the key enablers of our corporate culture prioritizing support, development, and growth. Enjoy a seamless, efficient, and motivating work experience and share your valuable feedback with us.'\n },\n {\n title: 'All services are within an easy reach',\n description: 'Find all the services previously scattered across INTEMS and Service Desk within easy reach on IntelliHub. IntelliHub is the only search point for all services that used to reside on the Career Hub, IntelliVacancies, Total Rewards, IntelliShare, IntelliStore, My Referrals, My Profile, and Office & IT sections.'\n }\n ],\n currentSign: ActiveSignIndex.Welcome\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/onboarding-sign/OnBoardingSign.vue?./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options");
7118
7118
 
7119
7119
  /***/ }),
7120
7120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellias/menu",
3
- "version": "2.5.6",
3
+ "version": "2.5.8",
4
4
  "description": "Menu for intems project.",
5
5
  "author": "Intems",
6
6
  "scripts": {