@intellias/menu 1.0.17 → 1.0.19
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/js/main.js +3 -3
- package/package.json +1 -1
package/dist/js/main.js
CHANGED
|
@@ -542,7 +542,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
|
542
542
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
543
543
|
|
|
544
544
|
"use strict";
|
|
545
|
-
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 _buttons_action_button_ActionButton_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../buttons/action-button/ActionButton.vue */ \"./components/buttons/action-button/ActionButton.vue\");\n/* harmony import */ var _mixins_notifications_ActionProcessing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../mixins/notifications/ActionProcessing */ \"./mixins/notifications/ActionProcessing.ts\");\n/* harmony import */ var _time_ago_TimeAgo_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../time-ago/TimeAgo.vue */ \"./components/time-ago/TimeAgo.vue\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: { TimeAgo: _time_ago_TimeAgo_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"], ActionButton: _buttons_action_button_ActionButton_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"] },\n props: {\n notification: _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n mixins: [_mixins_notifications_ActionProcessing__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['read'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications/SidebarModule', ['dismiss']))\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/notifications-sidebar/notification/Notification.ts?");
|
|
545
|
+
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 _buttons_action_button_ActionButton_vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../buttons/action-button/ActionButton.vue */ \"./components/buttons/action-button/ActionButton.vue\");\n/* harmony import */ var _mixins_notifications_ActionProcessing__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../mixins/notifications/ActionProcessing */ \"./mixins/notifications/ActionProcessing.ts\");\n/* harmony import */ var _time_ago_TimeAgo_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../time-ago/TimeAgo.vue */ \"./components/time-ago/TimeAgo.vue\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @/models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n components: { TimeAgo: _time_ago_TimeAgo_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"], ActionButton: _buttons_action_button_ActionButton_vue__WEBPACK_IMPORTED_MODULE_1__[\"default\"] },\n inject: ['layout'],\n props: {\n notification: _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n mixins: [_mixins_notifications_ActionProcessing__WEBPACK_IMPORTED_MODULE_2__[\"default\"]],\n computed: {\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_5__[\"default\"].Lite;\n }\n },\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['read'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications/SidebarModule', ['dismiss']))\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/notifications-sidebar/notification/Notification.ts?");
|
|
546
546
|
|
|
547
547
|
/***/ }),
|
|
548
548
|
|
|
@@ -1226,7 +1226,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
|
|
|
1226
1226
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1227
1227
|
|
|
1228
1228
|
"use strict";
|
|
1229
|
-
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 moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../main */ \"./main.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\nconst titlesMap = new Map([\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject, 'Reject'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].confirm, 'Confirm'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].view, 'View']\n]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mounted() {\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Rejected, this.handleError, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n },\n computed: Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])),\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['read', 'markAsRead', 'process', 'markAsProcessed'])), { submitAction(action) {\n if (action.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject && _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"confirmRejections\"].includes(this.notification.category)) {\n this.actionProcessing = true;\n const rejectionComponent = this.rejectionComponent();\n this.$emit('rejection-component', {\n rejectionComponent,\n notification: this.notification\n });\n return;\n }\n this.request(action);\n },\n request(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.actionProcessing = true;\n this.markAsRead(this.notification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"RequestMethod\"].put, action.body);\n });\n },\n // eslint-disable-next-line complexity\n proceedToView(view) {\n return __awaiter(this, void 0, void 0, function* () {\n if (this.notification.isNew) {\n yield this.read(this.notification);\n }\n const action = view.action ? view.action : view.url;\n if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].remote) {\n window.open(action, '_blank');\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].career) {\n window.location.href = `${this.config.careerSiteUrl}${action}`;\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].old) {\n window.location.href = `${this.config.oldSiteUrl}${action}`;\n }\n else if (this.$router.currentRoute.path !== action) {\n yield this.$router.push(action.replace('api/', ''));\n }\n });\n },\n handleSuccess() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addMessage('The request has been processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n this.markAsProcessed(this.notification);\n this.actionProcessing = false;\n });\n },\n handleError() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addWarning('Action failed. The request had been already processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n yield this.process(this.notification);\n if (typeof this.errorAction === 'function') {\n this.errorAction();\n }\n this.actionProcessing = false;\n });\n }, rejectionComponent() {\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].vacations) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/VacationRejectionConfirm.vue */ \"./mixins/notifications/confirms/VacationRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].unpaid_leave) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/UnpaidLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].profile_update) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/AssetRejectionConfirm.vue */ \"./mixins/notifications/confirms/AssetRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].sick_leaves) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/SickLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/SickLeaveRejectionConfirm.vue\"));\n }\n return null;\n }, isExpired(action) {\n return action.expired_at && action.expired_at.isBefore(moment__WEBPACK_IMPORTED_MODULE_1___default()());\n },\n title(action) {\n return action.title ? action.title : titlesMap.get(action.type);\n } }),\n data() {\n return {\n actionProcessing: false,\n userRepository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__[\"default\"](),\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__[\"default\"]()\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./mixins/notifications/ActionProcessing.ts?");
|
|
1229
|
+
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 moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../main */ \"./main.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\nconst titlesMap = new Map([\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject, 'Reject'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].confirm, 'Confirm'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].view, 'View']\n]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mounted() {\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Rejected, this.handleError, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n },\n computed: Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])),\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['read', 'markAsRead', 'process', 'markAsProcessed'])), { submitAction(action) {\n if (action.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject && _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"confirmRejections\"].includes(this.notification.category)) {\n this.actionProcessing = true;\n const rejectionComponent = this.rejectionComponent();\n this.$emit('rejection-component', {\n rejectionComponent,\n notification: this.notification\n });\n return;\n }\n this.request(action);\n },\n request(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.actionProcessing = true;\n this.markAsRead(this.notification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"RequestMethod\"].put, action.body);\n });\n },\n // eslint-disable-next-line complexity\n proceedToView(view) {\n return __awaiter(this, void 0, void 0, function* () {\n if (this.notification.isNew) {\n yield this.read(this.notification);\n }\n const action = view.action ? view.action : view.url;\n if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].remote) {\n window.open(action, '_blank');\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].career) {\n window.location.href = `${this.config.careerSiteUrl}${action}`;\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].old) {\n window.location.href = `${this.config.oldSiteUrl}${action}`;\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].lite && !this.isLiteDomain) {\n window.location.href = `${this.config.liteSiteUrl}${action.replace('/api/', '')}`;\n }\n else if (this.$router.currentRoute.path !== action) {\n yield this.$router.push(action.replace('api/', ''));\n }\n });\n },\n handleSuccess() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addMessage('The request has been processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n this.markAsProcessed(this.notification);\n this.actionProcessing = false;\n });\n },\n handleError() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addWarning('Action failed. The request had been already processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n yield this.process(this.notification);\n if (typeof this.errorAction === 'function') {\n this.errorAction();\n }\n this.actionProcessing = false;\n });\n }, rejectionComponent() {\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].vacations) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/VacationRejectionConfirm.vue */ \"./mixins/notifications/confirms/VacationRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].unpaid_leave) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/UnpaidLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].profile_update) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/AssetRejectionConfirm.vue */ \"./mixins/notifications/confirms/AssetRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].sick_leaves) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/SickLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/SickLeaveRejectionConfirm.vue\"));\n }\n return null;\n }, isExpired(action) {\n return action.expired_at && action.expired_at.isBefore(moment__WEBPACK_IMPORTED_MODULE_1___default()());\n },\n title(action) {\n return action.title ? action.title : titlesMap.get(action.type);\n } }),\n data() {\n return {\n actionProcessing: false,\n userRepository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__[\"default\"](),\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__[\"default\"]()\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./mixins/notifications/ActionProcessing.ts?");
|
|
1230
1230
|
|
|
1231
1231
|
/***/ }),
|
|
1232
1232
|
|
|
@@ -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 }, [_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}`,\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 }, [_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");
|
|
1953
1953
|
|
|
1954
1954
|
/***/ }),
|
|
1955
1955
|
|