{"version":3,"sources":["webpack:///./src/assets/images/icon-purple/menu-pre.svg","webpack:///./src/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem.less?fea6","webpack:///./src/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem.vue?e46d","webpack:///./src/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem.ts","webpack:///./src/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem.vue?c7df","webpack:///./src/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem.vue?b58b","webpack:///./src/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem.vue","webpack:///./src/assets/images/icon-purple/menu-back.svg"],"names":["module","exports","render","_vm","this","_h","$createElement","_c","_self","attrs","ref","calendar","on","scopedSlots","_u","key","fn","details","elementId","staticClass","class","$event","viewPopup","id","removeTooltip","tooltip","title","_v","_s","slotData","_b","placeholder","close","$refs","cal","clearPlaceholder","editPlaceholder","slot","customDate","prev","next","view","changeView","staticRenderFns","CalenderTaskItem","storeKey","Calendar","months","readOnly","defaultEvents","mountedref","currentDate","APP_UTILITIES","getCurrentDate","tasks","length","calenderStructure","createTitleDate","getClassList","plannerStore","changeDurationView","loadState","taskId","$emit","stopPropagation","tempTaskList","JSON","parse","stringify","filter","task","status","APP_CONST","TASK_STATUS_SKIP","list","forEach","item","index","differenceinTime","Date","taskStartDate","getTime","taskEndDate","differenceinDays","push","data","name","color","STYLE","COLOR","NEUTRAL_900","checkOverDueTask","schedule","month","getMonth","duration","durationUnit","times","year","getFullYear","dayOfMonth","getDate","state","preferToday","events","eventsOutside","updateRows","fill","listTimes","updateColumns","setState","startMonthIndex","end","around","start","undefined","type","forType","Units","setTimeout","arrlist","document","querySelector","updateCalendarDataStatus","innerText","inputcal","endMonthIndex","startyear","endyear","endDayOfMonth","startDayOfMonth","MONTH_NAME","documentElement","clientWidth","substring","checkMobile","convertDateInGMT","String","TASK_STATUS_ACTIVE","date","hoverPosition","top","left","boundBox","getBoundingClientRect","coordX","coordY","toString","elemId","element","getElementById","elemToAppendTooltip","parentElement","cords","callHover","node","createElement","setAttribute","textnode","createTextNode","appendChild","elementdaySpan","append","tooltipElem","remove","getDurationView","Vue","tslib_1","Prop","Watch","deep","Component","component"],"mappings":"8HAAAA,EAAOC,QAAU,IAA0B,6B,qCCA3C,W,yCCAA,IAAIC,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,QAAQ,CAACE,MAAM,CAAC,GAAK,YAAY,CAACF,EAAG,kBAAkB,CAACG,IAAI,MAAMD,MAAM,CAAC,SAAWN,EAAIQ,SAAS,aAAY,EAAK,gBAAiB,EAAM,cAAa,GAAOC,GAAG,CAAC,OAAS,cAAeC,YAAYV,EAAIW,GAAG,CAAC,CAACC,IAAI,aAAaC,GAAG,SAASN,GAC9U,IAAIO,EAAUP,EAAIO,QAClB,MAAO,CAACV,EAAG,MAAM,CAACE,MAAM,CAAC,GAAKQ,EAAQC,YAAY,CAACX,EAAG,SAAS,CAACY,YAAY,cAAcC,MAAMH,EAAQG,MAAMX,MAAM,CAAC,UAAW,YAAeQ,EAAU,IAAIL,GAAG,CAAC,MAAQ,SAASS,GAAQlB,EAAImB,UAAUL,EAAQM,GAAIF,GAASlB,EAAIqB,cAAe,WAAcP,EAAiB,YAAK,WAAa,SAASI,GAAQ,OAAOlB,EAAIsB,QAAQR,EAAQC,UAAWD,EAAQS,QAAQ,WAAa,SAASL,GAAQ,OAAOlB,EAAIqB,cAAe,WAAcP,EAAiB,cAAO,CAACd,EAAIwB,GAAGxB,EAAIyB,GAAGX,EAAQS,eAAe,CAACX,IAAI,iBAAiBC,GAAG,SAASN,GAC9gB,IAAIO,EAAUP,EAAIO,QAClB,MAAO,CAACV,EAAG,MAAM,CAACE,MAAM,CAAC,GAAKQ,EAAQC,YAAY,CAACX,EAAG,SAAS,CAACY,YAAY,cAAcC,MAAMH,EAAQG,MAAMX,MAAM,CAAC,UAAW,YA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wBPD,QADCE,eAAM,QAAS,CAAEC,MAAM,KAAO,+BApCZ9H,EAAgB,QAHpC+H,eAAU,CACTrF,KAAM,cAEa1C,WC2DNA,ICrEkb,I,yBCQ7bgI,EAAY,eACd,EACA1K,EACAyC,GACA,EACA,KACA,WACA,MAIa,aAAAiI,E,8BCnBf5K,EAAOC,QAAU,IAA0B","file":"js/chunk-08a4d060.11328855d9f65c4ea973.1725496708077.min.js","sourcesContent":["module.exports = __webpack_public_path__ + \"img/menu-pre.eda60215.svg\";","export * from \"-!../../../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--10-oneOf-1-0!../../../../../node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../../node_modules/less-loader/dist/cjs.js??ref--10-oneOf-1-3!./CalenderTaskItem.less?vue&type=style&index=0&id=37855d94&lang=less&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('v-app',{attrs:{\"id\":\"dayspan\"}},[_c('ds-calendar-app',{ref:\"cal\",attrs:{\"calendar\":_vm.calendar,\"read-only\":true,\"allowsAddToday\":false,\"use-drawer\":false},on:{\"change\":function (){}},scopedSlots:_vm._u([{key:\"eventTitle\",fn:function(ref){\nvar details = ref.details;\nreturn [_c('div',{attrs:{\"id\":details.elementId}},[_c('strong',{staticClass:\"ds-ev-title\",class:details.class,attrs:{\"bx-attr\":(\"task-data\" + (details.id))},on:{\"click\":function($event){_vm.viewPopup(details.id, $event); _vm.removeTooltip((\"tooltip_\" + (details.elementId)))},\"mouseenter\":function($event){return _vm.tooltip(details.elementId, details.title)},\"mouseleave\":function($event){return _vm.removeTooltip((\"tooltip_\" + (details.elementId)))}}},[_vm._v(_vm._s(details.title))])])]}},{key:\"eventTimeTitle\",fn:function(ref){\nvar details = ref.details;\nreturn [_c('div',{attrs:{\"id\":details.elementId}},[_c('strong',{staticClass:\"ds-ev-title\",class:details.class,attrs:{\"bx-attr\":(\"week-data\" + (details.id))},on:{\"click\":function($event){_vm.viewPopup(details.id, $event); _vm.removeTooltip((\"tooltip_\" + (details.elementId)))},\"mouseenter\":function($event){return _vm.tooltip(details.elementId, details.title)},\"mouseleave\":function($event){return _vm.removeTooltip((\"tooltip_\" + (details.elementId)))}}},[_vm._v(_vm._s(details.title))])])]}},{key:\"eventPopover\",fn:function(slotData){return [_c('ds-calendar-event-popover',_vm._b({attrs:{\"readOnly\":true,\"allowEditOnReadonly\":false}},'ds-calendar-event-popover',slotData,false))]}},{key:\"eventCreatePopover\",fn:function(ref){\nvar placeholder = ref.placeholder;\nvar calendar = ref.calendar;\nvar close = ref.close;\nreturn [_c('ds-calendar-event-create-popover',{attrs:{\"calendar-event\":placeholder,\"calendar\":calendar,\"close\":_vm.$refs.cal.$refs.calendar.clearPlaceholder},on:{\"create-edit\":_vm.$refs.cal.editPlaceholder}})]}}])},[_c('template',{slot:\"summary\"},[_c('div',{staticClass:\"date-summary\"},[_c('p',{attrs:{\"bx-attr\":\"customDate-text\"}},[_vm._v(_vm._s(_vm.customDate))])])]),_c('template',{slot:\"prev\"},[_c('div',{staticClass:\"back\",attrs:{\"bx-attr\":\"back-btn\",\"id\":\"backMonth\"},on:{\"click\":_vm.prev}},[_c('img',{attrs:{\"src\":require(\"./../../../../assets/images/icon-purple/menu-pre.svg\"),\"alt\":\"back\"}})])]),_c('template',{slot:\"next\"},[_c('div',{staticClass:\"next\",attrs:{\"bx-attr\":\"next-btn\",\"id\":\"nextMonth\"},on:{\"click\":_vm.next}},[_c('img',{attrs:{\"src\":require(\"./../../../../assets/images/icon-purple/menu-back.svg\"),\"alt\":\"next\"}})])]),_c('template',{slot:\"menuRight\"},[_c('div',{staticClass:\"toogle-view\",attrs:{\"id\":\"monthBtn\"}},[_c('div',{class:['week-view', _vm.view === 'weeks' && 'view-selected-left'],attrs:{\"bx-attr\":\"weeks-btn\"},on:{\"click\":function($event){return _vm.changeView('weeks')}}},[_vm._v(\"Week\")]),_c('div',{class:['month-view', _vm.view === 'months' && 'view-selected-right'],attrs:{\"bx-attr\":\"months-btn\"},on:{\"click\":function($event){return _vm.changeView('months')}}},[_vm._v(\"Month\")])])])],2)],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import { Vue, Component, Prop, Watch } from 'vue-property-decorator';\nimport { Calendar, Units } from 'dayspan';\nimport { IEvents, ITaskDto } from '@/services/program/plannerService';\nimport APP_CONST from '@/constants/AppConst';\nimport APP_UTILITIES from '@/utilities/commonFunctions';\nimport plannerStore from '@/store/modules/plannerStore'\n\n@Component({\n name: 'calender'\n})\nexport default class CalenderTaskItem extends Vue {\n storeKey: string = 'dayspanState';\n calendar = Calendar.months();\n readOnly = true;\n defaultEvents: IEvents[] = [];\n mountedref = false;\n currentDate = APP_UTILITIES.getCurrentDate();\n customDate = '';\n\n $refs!: {\n cal: HTMLFormElement\n }\n\n @Prop()\n tasks!: [];\n\n get view() {\n return plannerStore.getDurationView;\n }\n\n mounted() {\n let view: any = this.view === 'weeks' ? \"weeks\" : \"months\";\n this.changeView(view);\n if (this.tasks.length > 0) {\n this.calenderStructure();\n } else {\n this.createTitleDate();\n }\n this.mountedref = true;\n this.getClassList();\n }\n\n destroyed() {\n plannerStore.changeDurationView(\"months\");\n }\n\n @Watch('tasks', { deep: true })\n updateView() {\n if (this.mountedref) {\n this.calenderStructure();\n this.loadState();\n }\n this.getClassList();\n }\n\n /**\n * Task detail popup\n *\n * @param taskId\n * @param $event\n */\n viewPopup(taskId: number, $event: any) {\n this.$emit('viewTaskDetail', { taskId: taskId });\n $event.stopPropagation();\n }\n calenderStructure() {\n let tempTaskList = JSON.parse(JSON.stringify(this.tasks));\n tempTaskList = tempTaskList.filter((task: ITaskDto) => task.status !== APP_CONST.TASK_STATUS_SKIP);\n let list: IEvents[] = [];\n tempTaskList.forEach((item: ITaskDto, index: number) => {\n let differenceinTime: number = new Date(item.taskStartDate).getTime() - new Date(item.taskEndDate).getTime();\n let differenceinDays: number = differenceinTime / (1000 * 3600 * 24);\n if ((differenceinDays >= 1) || (differenceinDays <= -1)) {\n list.push({\n data: { title: item.name, color: APP_CONST.STYLE.COLOR.NEUTRAL_900, class: `ltStrip ${this.checkOverDueTask(item) && 'overDueStrip'}`, elementId: `task_lt_${item.id}`, id: item.id },\n schedule: {\n month: [new Date(item.taskStartDate).getMonth()], duration: 30,\n durationUnit: 'minutes', times: [`00`], year: [new Date(item.taskStartDate).getFullYear()], dayOfMonth: [new Date(item.taskStartDate).getDate()]\n }\n });\n list.push({\n data: { title: item.name, color: APP_CONST.STYLE.COLOR.NEUTRAL_900, class: `rtStrip ${this.checkOverDueTask(item) && 'overDueStrip'}`, elementId: `task_lt_${item.id}`, id: item.id },\n schedule: {\n month: [new Date(item.taskEndDate).getMonth()], duration: 30,\n durationUnit: 'minutes', times: [\"00\"], year: [new Date(item.taskEndDate).getFullYear()], dayOfMonth: [new Date(item.taskEndDate).getDate()]\n }\n });\n } else {\n list.push({\n data: { title: item.name, color: APP_CONST.STYLE.COLOR.NEUTRAL_900, class: `ltStrip rtStrip ${this.checkOverDueTask(item) && 'overDueStrip'}`, elementId: `task_lt_${item.id}`, id: item.id },\n schedule: {\n month: [new Date(item.taskStartDate).getMonth()], duration: 30,\n durationUnit: 'minutes', times: [\"00\"], year: [new Date(item.taskStartDate).getFullYear()], dayOfMonth: [new Date(item.taskStartDate).getDate()]\n }\n });\n }\n })\n this.defaultEvents = JSON.parse(JSON.stringify(list));\n }\n\n loadState() {\n let state: { preferToday: boolean, events: IEvents[], eventsOutside: boolean, updateRows: boolean, fill: boolean, listTimes: boolean, updateColumns: boolean } = { preferToday: false, events: [], eventsOutside: true, updateRows: true, fill: true, listTimes: false, updateColumns: false };\n if (!state.events || !state.events.length) {\n state.events = this.defaultEvents;\n state.fill = this.view == 'months' ? true : false;\n state.listTimes = this.view == 'months' ? false : true;\n state.updateColumns = this.view == 'months' ? false : true;\n }\n\n this.$refs.cal && this.$refs.cal.setState(state);\n this.createTitleDate();\n }\n\n changeView(view: 'weeks' | 'months') {\n plannerStore.changeDurationView(view);\n let startMonthIndex = this.calendar.end.month;\n const around = startMonthIndex !== new Date().getMonth() ? ((view === 'months') ? this.calendar.end : this.calendar.start) : undefined\n this.calendar = Calendar[view]();\n const type: 'WEEK' | 'MONTH' = view === 'weeks' ? 'WEEK' : 'MONTH';\n this.calendar = Calendar.forType(Units[type], 1, around);\n setTimeout(() => {\n this.loadState();\n this.$emit('calenderView', view, this.customDate);\n this.getClassList();\n })\n }\n\n prev() {\n this.calendar.prev(1);\n this.createTitleDate();\n this.getClassList();\n this.$emit('calenderView', this.view, this.customDate);\n }\n\n getClassList() {\n setTimeout(() => {\n let arrlist: any = document.querySelector('.ds-ev-title') as HTMLElement;\n plannerStore.updateCalendarDataStatus(arrlist ? !!arrlist.innerText : false);\n }, 100)\n }\n\n next() {\n this.calendar.next(1);\n this.createTitleDate();\n this.getClassList();\n this.$emit('calenderView', this.view, this.customDate);\n }\n\n createTitleDate() {\n let inputcal = this.calendar;\n let endMonthIndex = inputcal && inputcal.end.month;\n let startMonthIndex = inputcal && inputcal.start.month;\n let startyear = inputcal && inputcal.start.year;\n let endyear = inputcal && inputcal.end.year;\n let endDayOfMonth = inputcal && inputcal.end.dayOfMonth;\n let startDayOfMonth = inputcal && inputcal.start.dayOfMonth;\n if (endDayOfMonth - startDayOfMonth > 25) {\n this.customDate = APP_CONST.MONTH_NAME[endMonthIndex] + ' ' + endyear;\n } else {\n if (document.documentElement.clientWidth < 375) {\n this.customDate = APP_CONST.MONTH_NAME[startMonthIndex].substring(0, 3);\n } else if (document.documentElement.clientWidth >= 375 && document.documentElement.clientWidth < 769 && APP_UTILITIES.checkMobile()) {\n if (startMonthIndex == endMonthIndex) {\n this.customDate = APP_CONST.MONTH_NAME[startMonthIndex].substring(0, 3) + ' ' + startDayOfMonth + '-' + endDayOfMonth;\n } else {\n this.customDate = APP_CONST.MONTH_NAME[startMonthIndex].substring(0, 3) + ' ' + startDayOfMonth + '-' + APP_CONST.MONTH_NAME[endMonthIndex].substring(0, 3) + ' ' + endDayOfMonth;\n }\n } else {\n if ((startyear == endyear) && ((startMonthIndex != endMonthIndex))) {\n this.customDate = APP_CONST.MONTH_NAME[startMonthIndex] + ' ' + startDayOfMonth + ' - ' + APP_CONST.MONTH_NAME[endMonthIndex] + ' ' + endDayOfMonth + ', ' + endyear;\n } else if ((startMonthIndex == endMonthIndex)) {\n this.customDate = APP_CONST.MONTH_NAME[startMonthIndex] + ' ' + startDayOfMonth + ' - ' + endDayOfMonth + ', ' + endyear;\n } else {\n this.customDate = APP_CONST.MONTH_NAME[startMonthIndex] + ' ' + startDayOfMonth + ', ' + startyear + '-' + APP_CONST.MONTH_NAME[endMonthIndex] + ' ' + endDayOfMonth + ', ' + endyear;\n }\n }\n }\n }\n\n checkOverDueTask(item: ITaskDto) {\n if ((this.convertDateInGMT(this.currentDate) > this.convertDateInGMT(String(item.taskEndDate))) && item.status === APP_CONST.TASK_STATUS_ACTIVE) {\n return true;\n }\n return false;\n }\n\n public convertDateInGMT(date: string) {\n return APP_UTILITIES.convertDateInGMT(date)\n }\n callHover($event: any) {\n let hoverPosition = { top: '0px', left: '0px' };\n const boundBox = $event.getBoundingClientRect();\n const coordX = boundBox.left;\n const coordY = boundBox.top;\n hoverPosition = {\n top: (coordY + 40).toString() + \"px\",\n left: (coordX + 5).toString() + \"px\"\n }\n return hoverPosition;\n }\n\n tooltip(elemId: string, title: string) {\n const element = document.getElementById(elemId);\n const elemToAppendTooltip = element && element.parentElement && element.parentElement.parentElement;\n const cords = this.callHover(elemToAppendTooltip);\n const node = document.createElement(`span`);\n node.id = `tooltip_${elemId}`;\n node.setAttribute('style', `top:${cords.top};left:${cords.left}`)\n node.setAttribute('class', 'tooltip-new');\n const textnode = document.createTextNode(`${title}`);\n node.appendChild(textnode);\n const elementdaySpan = document.getElementById('dayspan');\n elementdaySpan && (elementdaySpan.append(node));\n }\n\n removeTooltip(elemId: string) {\n const tooltipElem = document.getElementById(elemId);\n tooltipElem && (tooltipElem.remove());\n }\n\n}","\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nimport CalenderTaskItem from \"@/components/plannerComponent/components/calenderTaksItem/CalenderTaskItem\";\nexport default CalenderTaskItem;\n","import mod from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalenderTaskItem.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../../../../node_modules/thread-loader/dist/cjs.js!../../../../../node_modules/babel-loader/lib/index.js!../../../../../node_modules/ts-loader/index.js??ref--13-3!../../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./CalenderTaskItem.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CalenderTaskItem.vue?vue&type=template&id=37855d94&scoped=true&\"\nimport script from \"./CalenderTaskItem.vue?vue&type=script&lang=ts&\"\nexport * from \"./CalenderTaskItem.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CalenderTaskItem.less?vue&type=style&index=0&id=37855d94&lang=less&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"37855d94\",\n null\n \n)\n\nexport default component.exports","module.exports = __webpack_public_path__ + \"img/menu-back.0b7f5619.svg\";"],"sourceRoot":""}