Build(Office365) Changed event color, removed deadline from 365 blocker.

This commit is contained in:
Matej Glasnák committed 2025-02-18 10:07:40 +01:00
1 parent b37e91663a
commit 73f73a459c
1 file changed
+2 -2
@@ -145,7 +145,7 @@ eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// lo
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm-bundler.js\");\n/* harmony import */ var _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/plugins/app/_img */ \"./src/plugins/app/_img/index.ts\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.defineComponent)({\n __name: 'a-timeline-event',\n props: {\n event: {\n type: null,\n required: true\n }\n },\n emits: [\"edit-blocker\", \"delete-blocker\", \"complete-task\", \"toggle-timeblock-is-finished\", \"edit-task\", \"delete-timeblock-in-task\"],\n setup(__props, {\n expose,\n emit: emits\n }) {\n expose();\n const props = __props;\n const deadline = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n if (!props.event.subtask) return undefined;\n if (props.event.subtask.deadline) return props.event.subtask.deadline;\n return props.event.subtask.master_task_deadline;\n });\n const eventLength = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => props.event.end.getTime() - props.event.start.getTime());\n const eventColor = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n if (props.event.type === 'office365_blocker') {\n return {\n color: '#ffffff',\n backgroundColor: '#326cb8'\n };\n } else if (props.event._timeblock_is_finished || props.event.subtask?.is_finished) {\n return {\n color: '#000000',\n backgroundColor: '#dedfe0'\n };\n }\n return {\n color: '#000000',\n backgroundColor: props.event.color || props.event.subtask?.color\n };\n });\n const subtaskCssClass = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n const classes = [];\n if (eventLength.value <= 9000000) classes.push('short-event');\n if (eventLength.value <= 5400000) classes.push('mini-event');\n if (eventLength.value <= 3600000) classes.push('micro-event');\n if (!props.event?.blocker?.approved && props.event?.isBlocker) classes.push('not-approved');\n return classes.join(' ');\n });\n const isOfficeEvent = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n return props.event.type === 'office365';\n });\n const __returned__ = {\n props,\n emits,\n deadline,\n eventLength,\n eventColor,\n subtaskCssClass,\n isOfficeEvent,\n get bin() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.bin;\n },\n get checkmarkDouble() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.checkmarkDouble;\n },\n get checkmark() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.checkmark;\n },\n get eye() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.eye;\n },\n get pencil() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.pencil;\n },\n get office365() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.office365;\n }\n };\n Object.defineProperty(__returned__, '__isScriptSetup', {\n enumerable: false,\n value: true\n });\n return __returned__;\n }\n}));\n\n//# sourceURL=webpack://jandl/./src/plugins/tm@dashboard/_components/a-timeline-event.vue?./node_modules/webpack-plugin-vuetify/dist/scriptLoader.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use%5B1%5D!./node_modules/vue-loader/dist/index.js??ruleSet%5B0%5D.use%5B0%5D"); eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.array.push.js */ \"./node_modules/core-js/modules/es.array.push.js\");\n/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm-bundler.js\");\n/* harmony import */ var _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/plugins/app/_img */ \"./src/plugins/app/_img/index.ts\");\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (/*#__PURE__*/(0,vue__WEBPACK_IMPORTED_MODULE_1__.defineComponent)({\n __name: 'a-timeline-event',\n props: {\n event: {\n type: null,\n required: true\n }\n },\n emits: [\"edit-blocker\", \"delete-blocker\", \"complete-task\", \"toggle-timeblock-is-finished\", \"edit-task\", \"delete-timeblock-in-task\"],\n setup(__props, {\n expose,\n emit: emits\n }) {\n expose();\n const props = __props;\n const deadline = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n if (!props.event.subtask) return undefined;\n if (props.event.subtask.deadline) return props.event.subtask.deadline;\n return props.event.subtask.master_task_deadline;\n });\n const eventLength = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => props.event.end.getTime() - props.event.start.getTime());\n const eventColor = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n if (props.event.type === 'office365_blocker' || props.event.type === 'office365') {\n return {\n color: '#ffffff',\n backgroundColor: '#326cb8'\n };\n } else if (props.event._timeblock_is_finished || props.event.subtask?.is_finished) {\n return {\n color: '#000000',\n backgroundColor: '#dedfe0'\n };\n }\n return {\n color: '#000000',\n backgroundColor: props.event.color || props.event.subtask?.color\n };\n });\n const subtaskCssClass = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n const classes = [];\n if (eventLength.value <= 9000000) classes.push('short-event');\n if (eventLength.value <= 5400000) classes.push('mini-event');\n if (eventLength.value <= 3600000) classes.push('micro-event');\n if (!props.event?.blocker?.approved && props.event?.isBlocker) classes.push('not-approved');\n return classes.join(' ');\n });\n const isOfficeEvent = (0,vue__WEBPACK_IMPORTED_MODULE_1__.computed)(() => {\n return props.event.type === 'office365';\n });\n const __returned__ = {\n props,\n emits,\n deadline,\n eventLength,\n eventColor,\n subtaskCssClass,\n isOfficeEvent,\n get bin() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.bin;\n },\n get checkmarkDouble() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.checkmarkDouble;\n },\n get checkmark() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.checkmark;\n },\n get eye() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.eye;\n },\n get pencil() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.pencil;\n },\n get office365() {\n return _plugins_app_img__WEBPACK_IMPORTED_MODULE_2__.office365;\n }\n };\n Object.defineProperty(__returned__, '__isScriptSetup', {\n enumerable: false,\n value: true\n });\n return __returned__;\n }\n}));\n\n//# sourceURL=webpack://jandl/./src/plugins/tm@dashboard/_components/a-timeline-event.vue?./node_modules/webpack-plugin-vuetify/dist/scriptLoader.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use%5B1%5D!./node_modules/vue-loader/dist/index.js??ruleSet%5B0%5D.use%5B0%5D");
/***/ }), /***/ }),
@@ -156,7 +156,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) { /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
"use strict"; "use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; }\n/* harmony export */ });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm-bundler.js\");\n/* harmony import */ var vuetify_lib_components_VBtn_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VBtn/index.mjs */ \"./node_modules/vuetify/lib/components/VBtn/VBtn.mjs\");\n/* harmony import */ var vuetify_lib_components_VIcon_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuetify/lib/components/VIcon/index.mjs */ \"./node_modules/vuetify/lib/components/VIcon/VIcon.mjs\");\n/* harmony import */ var vuetify_lib_components_VTooltip_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VTooltip/index.mjs */ \"./node_modules/vuetify/lib/components/VTooltip/VTooltip.mjs\");\n\nconst _withScopeId = n => ((0,vue__WEBPACK_IMPORTED_MODULE_0__.pushScopeId)(\"data-v-c3598ac4\"), n = n(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.popScopeId)(), n);\nconst _hoisted_1 = {\n key: 0,\n class: \"custom-event-body non-working-event colWidth h-100 d-flex flex-column justify-center\"\n};\nconst _hoisted_2 = {\n class: \"d-flex justify-center align-center\"\n};\nconst _hoisted_3 = {\n class: \"mb-0 ms-2\"\n};\nconst _hoisted_4 = {\n key: 0,\n class: \"project-code\"\n};\nconst _hoisted_5 = {\n class: \"text-inherit\"\n};\nconst _hoisted_6 = {\n class: \"text-inherit\"\n};\nconst _hoisted_7 = {\n class: \"d-flex align-center event-details event-initials-wrapper\"\n};\nconst _hoisted_8 = {\n class: \"text-inherit\"\n};\nconst _hoisted_9 = {\n class: \"event-initials-date text-inherit\"\n};\nconst _hoisted_10 = {\n key: 2,\n class: \"d-flex align-center\"\n};\nconst _hoisted_11 = {\n key: 0,\n class: \"ml-1\"\n};\nconst _hoisted_12 = {\n key: 3,\n class: \"d-flex align-center mt-1\"\n};\nconst _hoisted_13 = {\n key: 0,\n class: \"ml-1\"\n};\nconst _hoisted_14 = {\n key: 0,\n class: \"event__office-footer\"\n};\nconst _hoisted_15 = [\"src\"];\nconst _hoisted_16 = {\n class: \"event__footer d-flex\"\n};\nconst _hoisted_17 = [\"src\"];\nconst _hoisted_18 = [\"src\"];\nconst _hoisted_19 = [\"src\"];\nconst _hoisted_20 = [\"src\"];\nconst _hoisted_21 = [\"src\"];\nconst _hoisted_22 = [\"src\"];\nconst _hoisted_23 = [\"src\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n \n \n \n return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"div\", {\n class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([\"event\", {\n 'event--office': $setup.isOfficeEvent\n }])\n }, [$setup.props.event.type == 'non-working-hours' ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"div\", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)(\"div\", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vuetify_lib_components_VIcon_index_mjs__WEBPACK_IMPORTED_MODULE_1__.VIcon, {\n icon: \"mdi-cancel\",\n color: \"black\"\n }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)(\"h3\", _hoisted_3, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($setup.props.event.title), 1 /* TEXT */)])])) : ['subtask', 'blocker', 'adhoc', 'vacation', 'free_day', 'office365', 'office365_blocker'].includes($props.event.type) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"div\", {\n key: 1,\n class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([\"custom-event-body colWidth h-100 d-flex flex-column justify-space-between\", $setup.subtaskCssClass]),\n style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)({\n backgroundColor: $setup.eventColor.backgroundColor,\n color: $setup.eventColor.color\n })\n }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)(\"div\", {\n class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([\"event-content\", {\n 'is-blocker': $setup.props.event.isBlocker\n }])\n }, [['subtask', 'office365'].includes($props.event.type) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n key: 0\n }, [$setup.props.event.subtask.project_code ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"small\", _hoisted_4, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($setup.props.event.subtask.project_code), 1 /* TEXT */)) : (0,vue__WEBPACK_IMPORTED_MOLine truncated eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"render\": function() { return /* binding */ render; }\n/* harmony export */ });\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/vue/dist/vue.runtime.esm-bundler.js\");\n/* harmony import */ var vuetify_lib_components_VBtn_index_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuetify/lib/components/VBtn/index.mjs */ \"./node_modules/vuetify/lib/components/VBtn/VBtn.mjs\");\n/* harmony import */ var vuetify_lib_components_VIcon_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vuetify/lib/components/VIcon/index.mjs */ \"./node_modules/vuetify/lib/components/VIcon/VIcon.mjs\");\n/* harmony import */ var vuetify_lib_components_VTooltip_index_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuetify/lib/components/VTooltip/index.mjs */ \"./node_modules/vuetify/lib/components/VTooltip/VTooltip.mjs\");\n\nconst _withScopeId = n => ((0,vue__WEBPACK_IMPORTED_MODULE_0__.pushScopeId)(\"data-v-c3598ac4\"), n = n(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.popScopeId)(), n);\nconst _hoisted_1 = {\n key: 0,\n class: \"custom-event-body non-working-event colWidth h-100 d-flex flex-column justify-center\"\n};\nconst _hoisted_2 = {\n class: \"d-flex justify-center align-center\"\n};\nconst _hoisted_3 = {\n class: \"mb-0 ms-2\"\n};\nconst _hoisted_4 = {\n class: \"text-inherit\"\n};\nconst _hoisted_5 = {\n class: \"text-inherit\"\n};\nconst _hoisted_6 = {\n class: \"d-flex align-center event-details event-initials-wrapper\"\n};\nconst _hoisted_7 = {\n class: \"text-inherit\"\n};\nconst _hoisted_8 = {\n class: \"event-initials-date text-inherit\"\n};\nconst _hoisted_9 = {\n key: 2,\n class: \"d-flex align-center\"\n};\nconst _hoisted_10 = {\n key: 0,\n class: \"ml-1\"\n};\nconst _hoisted_11 = {\n key: 3,\n class: \"d-flex align-center mt-1\"\n};\nconst _hoisted_12 = {\n key: 0,\n class: \"event__office-footer\"\n};\nconst _hoisted_13 = [\"src\"];\nconst _hoisted_14 = {\n class: \"event__footer d-flex\"\n};\nconst _hoisted_15 = [\"src\"];\nconst _hoisted_16 = [\"src\"];\nconst _hoisted_17 = [\"src\"];\nconst _hoisted_18 = [\"src\"];\nconst _hoisted_19 = [\"src\"];\nconst _hoisted_20 = [\"src\"];\nconst _hoisted_21 = [\"src\"];\nfunction render(_ctx, _cache, $props, $setup, $data, $options) {\n \n \n \n return (0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"div\", {\n class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([\"event\", {\n 'event--office': $setup.isOfficeEvent\n }])\n }, [$setup.props.event.type == 'non-working-hours' ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"div\", _hoisted_1, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)(\"div\", _hoisted_2, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createVNode)(vuetify_lib_components_VIcon_index_mjs__WEBPACK_IMPORTED_MODULE_1__.VIcon, {\n icon: \"mdi-cancel\",\n color: \"black\"\n }), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)(\"h3\", _hoisted_3, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($setup.props.event.title), 1 /* TEXT */)])])) : ['subtask', 'blocker', 'adhoc', 'vacation', 'free_day', 'office365', 'office365_blocker'].includes($props.event.type) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"div\", {\n key: 1,\n class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([\"custom-event-body colWidth h-100 d-flex flex-column justify-space-between\", $setup.subtaskCssClass]),\n style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)({\n backgroundColor: $setup.eventColor.backgroundColor,\n color: $setup.eventColor.color\n })\n }, [(0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementVNode)(\"div\", {\n class: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeClass)([\"event-content\", {\n 'is-blocker': $setup.props.event.isBlocker\n }])\n }, [['subtask', 'office365'].includes($props.event.type) ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(vue__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n key: 0\n }, [$setup.props.event.subtask.project_code ? ((0,vue__WEBPACK_IMPORTED_MODULE_0__.openBlock)(), (0,vue__WEBPACK_IMPORTED_MODULE_0__.createElementBlock)(\"small\", {\n key: 0,\n class: \"project-code\",\n style: (0,vue__WEBPACK_IMPORTED_MODULE_0__.normalizeStyle)({\n color: $setup.eventColor.color\n })\n }, (0,vue__WEBPACK_IMPORTED_MODULE_0__.toDisplayString)($setup.props.event.subtask.project_code), 5 /* TEXT, STYLLine truncated
/***/ }), /***/ }),