{"version":3,"sources":["1Initializers.js","actionitemmodels.js","actionitemviews.js","settingsviews.js","templateviews.js"],"names":["PJQ","collections","actionItems","models","views","modules","routes","route","name","callback","projectId","projectWall","initProjectNavigator","parseInt","actionItemId","app","addRoutes","ActionItem","BaseModel","extend","notifyName","idAttribute","endpoint","arr","this","isNew","get","value","id","helpers","urlHelpers","generateEndpoint","afterInit","set","silent","on","_","bind","assignedTo","projectContacts","ProjectContact","constants","statuses","NEW","NOT_RESOLVED","ballInCourt","parse","model","groups","Groups","createdBy","size","distributionList","ProjectContacts","comments","ActionItemComments","attachments","ActionItemAttachments","beforeAttachments","afterAttachments","getDeepLink","toString","getStatusColor","statusColors","ASSIGNED","getStatusName","statusNames","WORK_COMPLETED","workCompletedOverride","session","project","preferences","getPref","preferenceTypes","ACTION_ITEM_WORK_COMPLETED_STATUS_OVERRIDE","getPriorityColor","priorities","LOW","priorityColors","getPriorityName","priorityNames","beforeSave","_this$assignedTo","toJSON","getChangedModels","fetchNotifications","notifications","Notifications","actionItem","fetch","success","distribute","_this","ajax","Request","post","done","response","reset","fail","res","err","responseJSON","message","ActionItemComment","EditHistoryItem","createdOnDisplay","dateHelpers","getDateString","Date","createdOn","dateFormats","DATE_TIME","createdByDisplay","companyName","contactName","oldValueDisplay","oldValue","newValueDisplay","newValue","fieldType","DATE","ActionItemAttachment","files","File","ActionItemCustomField","customFields","CustomField","Notification","notificationTypeNames","collection","options","Settings","ProjectContactSettings","each","setting","matchProjectContact","findWhere","attributes","isSilent","filter","projectContact","hasChanged","ActionItemUserSettings","params","forCompany","push","parameter","getSettings","view","find","viewSettings","ProjectContactSetting","Template","user","assignee","submitter","ActionItems","items","BaseCollection","EditHistoryItems","Files","ActionItemCustomFields","masterUserId","Templates","ActionItemView","BaseView","defaults","template","templating","ACTIONITEMS","events","click .btn-action-item-settings","click .export-detailed","click .export-list","click .btn-add-action-item","click .btn-edit-action-item","click .btn-delete-action-item","click .btn-save-a-template","click .btn-import-template","beforeFirstRender","isAdmin","hasPermission","isFetched","userSettings","fnFetch","fnRender","render","fetchActionItemCustomFields","hasPref","ENABLE_PROJECT_LOCATIONS","fetchLocations","locations","renderData","afterRender","renderDataTable","item","editActionItem","self","actionItemDataTable","dataTables","DataTable","el","$","rowId","data","language","emptyTable","zeroRecords","subTemplates","header","pageLength","rowsPerPage","orderCookie","cookies","ACTION_ITEM_ORDER_COOKIE","settings","headerData","afterHeaderRender","$header","inputs","Selectpicker","onChange","setFilter","isGrouped","isIntChoices","isMultiple","noneSelectedText","locationFilterPicker","ProjectLocationPicker","getFilterData","result","locationFilter","getFilter","row","contains","primaryFilter","statusFilter","status","priorityFilter","priority","hasAssigned","rowStatus","order","deferRender","onRowDoubleClick","contextMenuOptions","actions","onClick","isDanger","isShown","deleteActionItem","columns","getColumns","colReorder","fixedColumnsLeft","fixedColumnsRight","realtime","columnOrderChanged","save","includeAllColumns","arguments","length","undefined","includeColumns","customField","column","columnData","title","type","contacts","getContactAnchor","contact","visible","indexOf","width","sort","numStr","number","isNaN","display","group","join","location","getFullName","searchable","itemDueDate","dateString","RESOLVED","getDateDaysDiff","startsWith","className","commitments","customFieldType","INTEGER","MONEY","PERCENT","fieldValue","getCustomFieldValue","fieldTypes","TEXT","isURL","choices","choice","toLocaleString","parseFloat","formatHelpers","numbersOnly","formatCurrency","orderable","html","addClicked","newItem","templateId","editClicked","e","getRow","currentTarget","parents","fnRenderEditor","ActionItemEditorModal","onSave","addRow","add","refresh","onClose","restore","onDelete","cid","removeRow","destroy","deleteClicked","modals","DeleteCancel","body","exportList","cookieHelpers","getCookie","JSON","reports","NewReport","reportTypes","ACTION_ITEM","columnOrder","export","format","then","exportDetailedList","orderBy","orderAscending","filterData","getFilteredRowData","map","loader","Loader","loadingText","itemOrder","handleDownload","remove","xhr","viewActionItemSettings","ActionItemSettingsModal","actionItemsView","saveTemplate","ActionItemTemplateCreatorModal","importTemplate","ImportTemplateModal","onImport","submittals","BaseModal","contactBadge","GLOBAL","maxWidth","isShowCloseButton","noop","click .add-comment","click .item-cancel","click .edit-history","click .btn-notification-history","click .btn-export","click .item-status-not-resolved","click .item-status-work-completed","click .item-status-resolved","click .action-item-save","click .action-item-close","click .action-item-delete","click .delete-comment","click .btn-distribute","beforeModalCreated","canEdit","canUpload","isAssignee","changedAnnotations","drawings","Annotations","_this2","Binder","$el","watchElements","Datepicker","datepickerOptions","datePicker","defaultDate","newDate","currentDueDate","defaultValue","AutocompleteInput","source","renderBallInCourt","renderCustomFields","ContactsSelectInput","context","contexts","PROJECTCONTACTS","selectedContact","isSingleChoice","isReadOnly","renderStatus","canViewContacts","canEditPeople","displayContactsBlock","canSwitchContext","USERS","selectedContacts","isDirty","groupListInput","GroupsSelectInput","isShowAddButton","addButton","groupLevels","GROUP_LEVELS","groupUserId","selectedGroups","onAfterSave","fileUploader","FileUploaderGrid","contextId","canAddAnnotations","onAnnotationChange","annotation","merge","mergeAnnotations","includeProjectAttachments","previewImageDimension","canDelete","attachment","beforeUploader","offsetTopText","afterUploader","renderComments","css","$ballInCourt","Alert","text","renderSubTemplate","canView","customFieldsForm","CustomFieldsForm","fieldValues","isEdit","_this3","YesNo","onYes","notify","successNotify","exportPDF","downloadFile","addComment","val","trim","comment","commentText","deleteComment","commentId","card","closest","isShowCancelButton","okButtonText","onOk","i","deletedOn","hide","markNotResolved","markWorkCompleted","workCompleteOverride","markResolved","validate","isValid","inputHelpers","setInputError","empty","window","scrollTo","viewEditHistory","EditHistoryModal","editHistory","viewNotificationHistory","NotificationHistory","_this4","isSaving","isUploading","fnSaveAnnotations","saveAll","removeModal","close","SaveDontSave","onDontSave","minWidth","dataTable","dom","click .history-close","change .select-column","click .settings-save","click .btn-delete-action-items","afterModalCreated","fetchProjectContacts","fetchActionItemSettings","beforeRender","onAdd","updateProjectContactsSetting","rowsPerPageSelectPicker","isHideSearch","deleteItems","deleteAllActionItems","columnSelected","sender","prop","objectHelpers","refinedType","existingSetting","newSetting","getValue","put","error","click .btn-save","fetchActionItemTemplates","tmp","templates","$name","existingTemplate","fnSave","copyComments","copyAssignee","copyGroups","click .btn-import","templatePicker","selectedTemplate","showError","hideError","EditTemplateModal","fitHeight","click .btn-close","click .btn-delete","listenTo","TextEditorInput","label","patch","deleteTemplate","TemplateManagement","addTemplate","NewTemplateModal","editTemplate"],"mappings":"AAAAA,IAAAC,YAAAC,YAAA,GAEAF,IAAAG,OAAAD,YAAA,GAEAF,IAAAI,MAAAF,YAAA,GAGAF,IAAAK,QAAAH,YAAA,CACAI,OAAA,CACA,CACAC,MAAA,kCACAC,KAAA,cACAC,SAAA,SAAAC,GACAV,IAAAK,QAAAM,YAAAC,qBAAAC,SAAAH,GAAA,iBAGA,CACAH,MAAA,gDACAC,KAAA,aACAC,SAAA,SAAAC,EAAAI,GACAd,IAAAK,QAAAM,YAAAC,qBAAAC,SAAAH,GAAA,cAAA,CACAI,aAAAD,SAAAC,SAOAd,IAAAe,IAAAC,UAAAhB,IAAAK,QAAAH,YAAAI,QC3BAN,IAAAG,OAAAD,YAAAe,WAAAjB,IAAAG,OAAAe,UAAAC,OAAA,CACAC,WAAA,cACAC,YAAA,eACAC,SAAA,WACA,IAAAC,EAkCA,OAhCAA,EADAC,KAAAC,SAAA,EAAAD,KAAAE,IAAA,aACA,CACA,CACAJ,SAAA,WACAK,MAAAH,KAAAE,IAAA,cAEA,CACAJ,SAAA,cACAK,MAAAH,KAAAI,KAGAJ,KAAAC,SAAA,EAAAD,KAAAE,IAAA,cACA,CACA,CACAJ,SAAA,eAEA,CACAA,SAAA,YACAK,MAAAH,KAAAE,IAAA,eAEA,CACAJ,SAAA,SAIA,CACA,CACAA,SAAA,cACAK,MAAAH,KAAAI,KAKA5B,IAAA6B,QAAAC,WAAAC,iBAAAR,IAEAS,UAAA,WACA,MAAAR,KAAAE,IAAA,sBACAF,KAAAS,IAAA,oBAAA,GAAA,CACAC,QAAA,IAIAV,KAAAW,GAAA,oBAAAC,EAAAC,KAAA,WACA,IAAAC,EAAAd,KAAAE,IAAA,cACAY,aAAAtC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PJQ.views.actionItems = {};\r\n\r\n//Routes\r\nPJQ.modules.actionItems = {\r\n routes: [\r\n {\r\n route: 'projects/:projectId/actionitems',\r\n name: 'actionItems',\r\n callback: function (projectId) {\r\n PJQ.modules.projectWall.initProjectNavigator(parseInt(projectId), \"actionitems\");\r\n }\r\n },\r\n {\r\n route: 'projects/:projectId/actionitems/:actionItemId',\r\n name: 'actionItem',\r\n callback: function (projectId, actionItemId) {\r\n PJQ.modules.projectWall.initProjectNavigator(parseInt(projectId), \"actionitems\", {\r\n actionItemId: parseInt(actionItemId)\r\n });\r\n }\r\n }\r\n ]\r\n};\r\n\r\nPJQ.app.addRoutes(PJQ.modules.actionItems.routes);","// Models\r\nPJQ.models.actionItems.ActionItem = PJQ.models.BaseModel.extend({\r\n notifyName: 'Action Item',\r\n idAttribute: \"actionItemId\",\r\n endpoint: function () {\r\n let arr;\r\n if (this.isNew() && this.get('projectId') > 0) {\r\n arr = [\r\n {\r\n endpoint: 'projects',\r\n value: this.get('projectId')\r\n },\r\n {\r\n endpoint: 'actionitems',\r\n value: this.id\r\n }\r\n ];\r\n } else if (this.isNew() && this.get('templateId') > 0) {\r\n arr = [\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'templates',\r\n value: this.get('templateId')\r\n },\r\n {\r\n endpoint: 'item'\r\n }\r\n ];\r\n } else {\r\n arr = [\r\n {\r\n endpoint: 'actionitems',\r\n value: this.id\r\n }\r\n ];\r\n }\r\n\r\n return PJQ.helpers.urlHelpers.generateEndpoint(arr);\r\n },\r\n afterInit: function () {\r\n if (this.get('customFieldValues') == null) {\r\n this.set('customFieldValues', [], {\r\n silent: true\r\n });\r\n }\r\n\r\n this.on('change:assignedTo', _.bind(function () {\r\n let assignedTo = this.get('assignedTo');\r\n if (assignedTo instanceof PJQ.models.projectContacts.ProjectContact) {\r\n this.assignedTo = this.get('assignedTo');\r\n } else if (assignedTo != null) {\r\n this.assignedTo = new PJQ.models.projectContacts.ProjectContact(this.get('assignedTo'));\r\n } else {\r\n this.assignedTo = null;\r\n }\r\n\r\n if (this.get('status') === PJQ.constants.actionItems.statuses.NEW || PJQ.constants.actionItems.statuses.NOT_RESOLVED) {\r\n this.ballInCourt = this.assignedTo;\r\n this.set('ballInCourt', this.ballInCourt);\r\n }\r\n }, this));\r\n },\r\n parse: function (model) {\r\n if (!model)\r\n return model;\r\n\r\n this.groups = new PJQ.collections.groups.Groups(model.groups);\r\n\r\n if (model.createdBy != null) {\r\n this.createdBy = new PJQ.models.projectContacts.ProjectContact(model.createdBy);\r\n } else {\r\n this.createdBy = null;\r\n }\r\n\r\n if (model.assignedTo) {\r\n this.assignedTo = new PJQ.models.projectContacts.ProjectContact(model.assignedTo);\r\n } else {\r\n this.assignedTo = null;\r\n }\r\n\r\n if (_.size(model.distributionList) > 0) {\r\n this.distributionList = new PJQ.collections.projectContacts.ProjectContacts(model.distributionList);\r\n } else if (!this.distributionList) {\r\n this.distributionList = new PJQ.collections.projectContacts.ProjectContacts();\r\n }\r\n\r\n // if (model.workCompletedBy) {\r\n // this.workCompletedBy = new PJQ.models.projectContacts.ProjectContact(model.workCompletedBy);\r\n // }\r\n // else{\r\n // this.workCompletedBy = null;\r\n // }\r\n //\r\n // if (model.resolvedBy) {\r\n // this.resolvedBy = new PJQ.models.projectContacts.ProjectContact(model.resolvedBy);\r\n // }\r\n // else{\r\n // this.resolvedBy = null;\r\n // }\r\n\r\n if (_.size(model.comments) > 0) {\r\n this.comments = new PJQ.collections.actionItems.ActionItemComments(model.comments);\r\n } else {\r\n this.comments = new PJQ.collections.actionItems.ActionItemComments();\r\n }\r\n\r\n if (_.size(model.attachments) > 0) {\r\n this.attachments = new PJQ.collections.actionItems.ActionItemAttachments(model.attachments);\r\n } else {\r\n this.attachments = new PJQ.collections.actionItems.ActionItemAttachments();\r\n }\r\n\r\n if (_.size(model.beforeAttachments) > 0) {\r\n this.beforeAttachments = new PJQ.collections.actionItems.ActionItemAttachments(model.beforeAttachments);\r\n } else {\r\n this.beforeAttachments = new PJQ.collections.actionItems.ActionItemAttachments();\r\n }\r\n\r\n if (_.size(model.afterAttachments) > 0) {\r\n this.afterAttachments = new PJQ.collections.actionItems.ActionItemAttachments(model.afterAttachments);\r\n } else {\r\n this.afterAttachments = new PJQ.collections.actionItems.ActionItemAttachments();\r\n }\r\n\r\n return model;\r\n },\r\n getDeepLink: function () {\r\n let projectId = this.get('projectId');\r\n if (!(this.id > 0) || !(projectId > 0)) {\r\n return null;\r\n }\r\n return '#projects/' + projectId.toString() + '/actionitems/' + this.id.toString();\r\n },\r\n getStatusColor: function () {\r\n if (this.get('status') == null) {\r\n this.set('status', PJQ.constants.actionItems.statuses.NEW);\r\n }\r\n\r\n if (this.assignedTo != null && this.get('status') === PJQ.constants.actionItems.statuses.NEW) {\r\n return PJQ.constants.actionItems.statusColors[PJQ.constants.actionItems.statuses.ASSIGNED];\r\n }\r\n return PJQ.constants.actionItems.statusColors[this.get('status')];\r\n },\r\n getStatusName: function () {\r\n if (this.get('status') == null) {\r\n this.set('status', PJQ.constants.actionItems.statuses.NEW);\r\n }\r\n\r\n if (this.assignedTo != null && this.get('status') === PJQ.constants.actionItems.statuses.NEW) {\r\n return PJQ.constants.actionItems.statusNames[PJQ.constants.actionItems.statuses.ASSIGNED];\r\n } else if (this.get('status') === PJQ.constants.actionItems.statuses.WORK_COMPLETED) {\r\n let workCompletedOverride = PJQ.app.session.project.preferences.getPref(PJQ.constants.preferenceTypes.ACTION_ITEM_WORK_COMPLETED_STATUS_OVERRIDE);\r\n if (workCompletedOverride != null) {\r\n return workCompletedOverride;\r\n }\r\n }\r\n return PJQ.constants.actionItems.statusNames[this.get('status')];\r\n },\r\n getPriorityColor: function () {\r\n if (this.get('priority') == null) {\r\n this.set('priority', PJQ.constants.actionItems.priorities.LOW);\r\n }\r\n return PJQ.constants.actionItems.priorityColors[this.get('priority')];\r\n },\r\n getPriorityName: function () {\r\n if (this.get('priority') == null) {\r\n this.set('priority', PJQ.constants.actionItems.priorities.LOW);\r\n }\r\n return PJQ.constants.actionItems.priorityNames[this.get('priority')];\r\n },\r\n beforeSave: function () {\r\n this.set({\r\n groups: this.groups.toJSON(),\r\n assignedTo: this.assignedTo?.toJSON(),\r\n distributionList: this.distributionList.toJSON(),\r\n attachments: this.attachments.getChangedModels(),\r\n beforeAttachments: this.beforeAttachments.getChangedModels(),\r\n afterAttachments: this.afterAttachments.getChangedModels(),\r\n comments: this.comments.getChangedModels()\r\n });\r\n },\r\n fetchNotifications: function (callback) {\r\n if (this.notifications == null) {\r\n this.notifications = new PJQ.collections.actionItems.Notifications(null, {\r\n actionItem: this\r\n })\r\n }\r\n\r\n this.notifications.fetch({\r\n success: _.bind(function () {\r\n callback(this.notifications);\r\n }, this)\r\n });\r\n },\r\n distribute: function (callback) {\r\n new PJQ.ajax.Request({\r\n endpoint: this.endpoint() + '/distribute',\r\n }).post().done((response) => {\r\n this.reset(response);\r\n if (typeof callback === 'function') {\r\n callback(true);\r\n }\r\n }).fail((res) => {\r\n let err = null;\r\n if (res.responseJSON && res.responseJSON.message) {\r\n err = res.responseJSON.message;\r\n }\r\n if (typeof callback === 'function') {\r\n callback(false, err);\r\n }\r\n });\r\n },\r\n});\r\n\r\nPJQ.models.actionItems.ActionItemComment = PJQ.models.BaseModel.extend({\r\n idAttribute: \"commentId\",\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems',\r\n value: this.get('actionItemId')\r\n },\r\n {\r\n endpoint: 'comments',\r\n value: this.get('commentId')\r\n }\r\n ])\r\n },\r\n parse: function (model) {\r\n if (!model) {\r\n return model;\r\n }\r\n\r\n if (model.createdBy != null) {\r\n this.createdBy = new PJQ.models.projectContacts.ProjectContact(model.createdBy);\r\n }\r\n\r\n return model;\r\n }\r\n});\r\n\r\nPJQ.models.actionItems.EditHistoryItem = PJQ.models.BaseModel.extend({\r\n parse: function (model) {\r\n if (!model)\r\n return model;\r\n\r\n this.createdOnDisplay = PJQ.helpers.dateHelpers.getDateString(new Date(model.createdOn), PJQ.helpers.dateHelpers.dateFormats.DATE_TIME, true);\r\n\r\n this.createdByDisplay = '';\r\n\r\n if (model.createdBy && model.createdBy.companyName)\r\n this.createdByDisplay = model.createdBy.contactName + ' (' + model.createdBy.companyName + ')';\r\n\r\n this.oldValueDisplay = model.oldValue;\r\n this.newValueDisplay = model.newValue;\r\n\r\n if (model.fieldType === 'DATE') {\r\n if (model.oldValue)\r\n this.oldValueDisplay = PJQ.helpers.dateHelpers.getDateString(new Date(model.oldValue), PJQ.helpers.dateHelpers.dateFormats.DATE, true);\r\n if (model.newValue)\r\n this.newValueDisplay = PJQ.helpers.dateHelpers.getDateString(new Date(model.newValue), PJQ.helpers.dateHelpers.dateFormats.DATE, true);\r\n } else if (model.fieldType === 'DATETIME') {\r\n if (model.oldValue)\r\n this.oldValueDisplay = PJQ.helpers.dateHelpers.getDateString(new Date(model.oldValue), PJQ.helpers.dateHelpers.dateFormats.DATE_TIME, true);\r\n if (model.newValue)\r\n this.newValueDisplay = PJQ.helpers.dateHelpers.getDateString(new Date(model.newValue), PJQ.helpers.dateHelpers.dateFormats.DATE_TIME, true);\r\n }\r\n\r\n return model;\r\n }\r\n});\r\n\r\nPJQ.models.actionItems.ActionItemAttachment = PJQ.models.files.File.extend({\r\n idAttribute: 'attachmentId',\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems',\r\n value: this.get('actionItemId')\r\n },\r\n {\r\n endpoint: 'attachments',\r\n value: this.id\r\n }\r\n ]);\r\n }\r\n});\r\n\r\nPJQ.models.actionItems.ActionItemCustomField = PJQ.models.customFields.CustomField.extend({\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'customFields',\r\n value: this.id\r\n }\r\n ])\r\n }\r\n});\r\n\r\nPJQ.models.actionItems.Notification = PJQ.models.notifications.Notification.extend({\r\n notificationTypeNames: PJQ.constants.actionItems.notificationTypeNames,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems',\r\n value: this.collection.options.actionItem.id\r\n },\r\n {\r\n endpoint: 'notifications',\r\n value: this.id\r\n }\r\n ])\r\n }\r\n});\r\n\r\nPJQ.models.actionItems.Settings = PJQ.models.BaseModel.extend({\r\n idAttribute: 'settingId',\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'projects',\r\n value: this.get('project').id\r\n },\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'settings'\r\n }\r\n ])\r\n },\r\n parse: function (model) {\r\n if (!model)\r\n return model;\r\n\r\n this.projectContacts = new PJQ.collections.actionItems.ProjectContactSettings(model.projectContacts);\r\n _.each(this.projectContacts.models, _.bind(function (setting) {\r\n let matchProjectContact = PJQ.app.session.project.projectContacts.findWhere({id: setting.get('id')});\r\n if (matchProjectContact != null) {\r\n setting.set(matchProjectContact.attributes, {\r\n isSilent: true\r\n });\r\n }\r\n }, this));\r\n\r\n return model;\r\n },\r\n beforeSave: function () {\r\n this.set('projectContacts', this.projectContacts.filter(function (projectContact) {\r\n return projectContact.hasChanged();\r\n }));\r\n }\r\n});\r\n\r\nPJQ.models.actionItems.ActionItemUserSettings = PJQ.models.BaseModel.extend({\r\n endpoint: function () {\r\n let params = [];\r\n if (this.options.forCompany) {\r\n params.push({\r\n parameter: 'forCompany',\r\n value: true\r\n });\r\n }\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'settings'\r\n },\r\n {\r\n endpoint: 'user'\r\n }\r\n ], params);\r\n },\r\n getSettings: function (view) {\r\n return _.find(this.attributes.viewSettings, _.bind(function (setting) {\r\n return setting.view === view;\r\n }, this));\r\n }\r\n});\r\n\r\n\r\nPJQ.models.actionItems.ProjectContactSetting = PJQ.models.BaseModel.extend({});\r\n\r\nPJQ.models.actionItems.Template = PJQ.models.BaseModel.extend({\r\n idAttribute: 'templateId',\r\n notifyName: 'Template',\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'templates',\r\n value: this.id\r\n }\r\n ], this.get('projectId') > 0 ? [\r\n {\r\n parameter: 'projectId',\r\n value: this.get('projectId')\r\n },\r\n {\r\n parameter: 'copyComments',\r\n value: this.get('copyComments')\r\n },\r\n {\r\n parameter: 'copyAssignee',\r\n value: this.get('copyAssignee')\r\n },\r\n {\r\n parameter: 'copyGroups',\r\n value: this.get('copyGroups')\r\n },\r\n {\r\n parameter: 'overwrite',\r\n value: this.get('overwrite')\r\n }\r\n ] : null);\r\n },\r\n parse: function (model) {\r\n if (!model)\r\n return model;\r\n\r\n if (model.project != null) {\r\n this.project = model.project;\r\n } else {\r\n this.user = PJQ.app.session.user;\r\n }\r\n\r\n this.groups = new PJQ.collections.groups.Groups(model.groups);\r\n\r\n if (model.createdBy != null) {\r\n this.createdBy = new PJQ.models.projectContacts.ProjectContact(model.createdBy);\r\n } else {\r\n this.createdBy = null;\r\n }\r\n\r\n if (model.assignee != null) {\r\n this.assignee = new PJQ.models.projectContacts.ProjectContact(model.assignee);\r\n } else {\r\n this.submitter = null;\r\n }\r\n\r\n this.comments = new PJQ.collections.actionItems.ActionItemComments(model.comments);\r\n\r\n this.attachments = new PJQ.collections.actionItems.ActionItemAttachments(model.attachments);\r\n\r\n if (model.actionItems)\r\n this.actionItems = new PJQ.collections.actionItems.ActionItems(model.actionItems);\r\n else if (model.items)\r\n this.actionItems = new PJQ.collections.actionItems.ActionItems(model.items);\r\n else\r\n this.actionItems = new PJQ.collections.actionItems.ActionItems();\r\n\r\n return model;\r\n }\r\n});\r\n\r\n\r\n// Collections\r\nPJQ.collections.actionItems.ActionItems = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.ActionItem,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'projects',\r\n value: this.options.project.id\r\n },\r\n {\r\n endpoint: 'actionitems'\r\n }\r\n ])\r\n }\r\n});\r\n\r\nPJQ.collections.actionItems.Notifications = PJQ.collections.notifications.Notifications.extend({\r\n model: PJQ.models.actionItems.Notification,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems',\r\n value: this.options.actionItem.id\r\n },\r\n {\r\n endpoint: 'notifications'\r\n }\r\n ])\r\n }\r\n});\r\n\r\nPJQ.collections.actionItems.EditHistoryItems = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.EditHistoryItem\r\n});\r\n\r\nPJQ.collections.actionItems.ActionItemComments = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.ActionItemComment\r\n});\r\n\r\nPJQ.collections.actionItems.ActionItemAttachments = PJQ.collections.files.Files.extend({\r\n model: PJQ.models.actionItems.ActionItemAttachment\r\n});\r\n\r\nPJQ.collections.actionItems.ProjectContactSettings = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.ProjectContactSetting\r\n});\r\n\r\nPJQ.collections.actionItems.ActionItemCustomFields = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.ActionItemCustomField,\r\n options: {\r\n masterUserId: null\r\n },\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'projects',\r\n value: this.options.project ? this.options.project.id : null\r\n },\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'customFields'\r\n }\r\n ],\r\n [\r\n {\r\n parameter: 'masterUserId',\r\n value: this.options.masterUserId > 0 ? this.options.masterUserId : PJQ.app.session.get('masterUserId')\r\n }\r\n ]);\r\n }\r\n});\r\n\r\nPJQ.collections.actionItems.ActionItemCustomField = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.ActionItemCustomField,\r\n options: {\r\n masterUserId: null\r\n },\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'customFields'\r\n }\r\n ],\r\n [\r\n {\r\n parameter: 'masterUserId',\r\n value: this.options.masterUserId > 0 ? this.options.masterUserId : PJQ.app.session.get('masterUserId')\r\n }\r\n ]);\r\n }\r\n});\r\n\r\nPJQ.collections.actionItems.Templates = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.actionItems.Template,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'actionitems'\r\n },\r\n {\r\n endpoint: 'templates'\r\n }\r\n ]);\r\n }\r\n});\r\n","PJQ.views.actionItems.ActionItemView = PJQ.views.BaseView.extend({\n defaults: {\n template: new PJQ.templating.Template(PJQ.constants.modules.ACTIONITEMS, 'Action-Item-Management'),\n actionItemId: null\n },\n events: {\n 'click .btn-action-item-settings': 'viewActionItemSettings',\n 'click .export-detailed': 'exportDetailedList',\n 'click .export-list': 'exportList',\n 'click .btn-add-action-item': 'addClicked',\n 'click .btn-edit-action-item': 'editClicked',\n 'click .btn-delete-action-item': 'deleteClicked',\n 'click .btn-save-a-template': 'saveTemplate',\n 'click .btn-import-template': 'importTemplate'\n },\n beforeFirstRender: function () {\n this.options.isAdmin = true;\n if (PJQ.app.session.project != null) {\n this.options.isAdmin = (PJQ.app.session.user != null && PJQ.app.session.project.get('masterUserId') === PJQ.app.session.user.get('masterUserId')) && this.options.project.hasPermission('actionItems.isAdmin');\n }\n\n this.isFetched = false;\n this.preferences = this.options.project ? this.options.project.preferences : PJQ.app.session.preferences;\n this.options.userSettings = new PJQ.models.actionItems.ActionItemUserSettings();\n let fnFetch = _.bind(function () {\n this.options.userSettings.fetch({\n success: _.bind(function () {\n let fnRender = _.bind(function (customFields) {\n this.options.customFields = customFields;\n if (this.collection == null && this.options.project != null) {\n let actionItems = new PJQ.collections.actionItems.ActionItems(null, {\n project: this.options.project\n });\n actionItems.fetch({\n success: _.bind(function () {\n this.collection = actionItems;\n this.isFetched = true;\n this.render();\n }, this)\n });\n return false;\n } else {\n this.isFetched = true;\n this.render();\n }\n }, this);\n if (this.options.project != null) {\n this.options.project.fetchActionItemCustomFields(_.bind(function (customFields) {\n fnRender(customFields);\n }, this));\n } else {\n PJQ.app.session.fetchActionItemCustomFields(null, _.bind(function (customFields) {\n fnRender(customFields);\n }, this));\n }\n }, this)\n });\n }, this)\n\n if (this.preferences.hasPref(PJQ.constants.preferenceTypes.ENABLE_PROJECT_LOCATIONS)) {\n this.options.project.fetchLocations(_.bind(function (locations) {\n this.locations = locations;\n fnFetch();\n }, this));\n } else {\n fnFetch();\n }\n },\n renderData: function () {\n return {\n project: this.options.project\n };\n },\n afterRender: function () {\n if (!this.isFetched)\n return;\n\n this.renderDataTable();\n\n //If there was a passed in item to be shown (for a route), show it now\n if (this.options.actionItemId > 0) {\n let item = this.collection.get(this.options.actionItemId);\n this.options.actionItemId = null;\n if (item != null) {\n this.editActionItem(item);\n }\n }\n },\n renderDataTable() {\n let self = this,\n userSettings = this.options.userSettings.getSettings(PJQ.constants.actionItems.view.ACTIONITEMS);\n this.actionItemDataTable = new PJQ.views.dataTables.DataTable({\n el: this.$('.action-items'),\n rowId: \"cid\",\n data: this.collection.models,\n language: {\n emptyTable: 'Click \"Add Item\" to create an Action Item',\n zeroRecords: \"No items matched the search criteria\"\n },\n subTemplates: {\n header: new PJQ.templating.Template(PJQ.constants.modules.ACTIONITEMS, 'Data-Table-Header-Action-Items')\n },\n pageLength: userSettings != null ? userSettings.rowsPerPage : 50,\n orderCookie: PJQ.constants.cookies.ACTION_ITEM_ORDER_COOKIE,\n settings: this.options.userSettings.getSettings(PJQ.constants.actionItems.view.ACTIONITEMS),\n headerData: function () {\n return {\n project: self.options.project,\n preferences: self.preferences\n };\n },\n afterHeaderRender: _.bind(function (view, $header) {\n new PJQ.inputs.Selectpicker({\n el: $header.find('.action-item-filter'),\n onChange: function (value) {\n view.setFilter('primary', value);\n },\n isGrouped: true,\n isIntChoices: true,\n isMultiple: true,\n noneSelectedText: 'No Filters'\n });\n\n if (this.preferences.hasPref(PJQ.constants.preferenceTypes.ENABLE_PROJECT_LOCATIONS)) {\n this.locationFilterPicker = new PJQ.inputs.ProjectLocationPicker({\n el: this.$('.filter-location'),\n project: this.options.project,\n isMultiple: true,\n onChange: _.bind(function (value) {\n view.setFilter('location', value);\n }, this)\n });\n }\n }, this),\n getFilterData: function (view, data) {\n let result = data,\n locationFilter = view.getFilter('location');\n if (_.size(locationFilter) > 0) {\n result = _.filter(data, function (row) {\n return _.contains(locationFilter, row.get('locationId'));\n }, this);\n }\n\n let primaryFilter = view.getFilter('primary');\n if (_.size(primaryFilter) === 0) {\n return result;\n }\n\n let statusFilter = primaryFilter.status,\n priorityFilter = primaryFilter.priority,\n hasAssigned = _.contains(statusFilter, PJQ.constants.actionItems.statuses.ASSIGNED);\n return _.filter(result, function (row) {\n let rowStatus = row.get('status');\n return (_.size(priorityFilter) === 0 || _.contains(priorityFilter, row.get('priority')))\n && (_.size(statusFilter) === 0 || (hasAssigned && rowStatus === PJQ.constants.actionItems.statuses.NEW && row.assignedTo != null) || _.contains(statusFilter, rowStatus));\n });\n },\n order: [[0, \"asc\"]],\n deferRender: true,\n onRowDoubleClick: _.bind(function (row) {\n this.editActionItem(row.data());\n }, this),\n contextMenuOptions: {\n actions: [\n {\n name: 'Edit',\n onClick: _.bind(function (row) {\n this.editActionItem(row.data());\n }, this)\n },\n {\n name: 'Delete',\n isDanger: true,\n isShown: _.bind(function () {\n return this.options.isAdmin;\n }, this),\n onClick: _.bind(function (row) {\n this.deleteActionItem(row);\n }, this)\n }\n ]\n },\n columns: this.getColumns(false),\n colReorder: {\n fixedColumnsLeft: 0,\n fixedColumnsRight: 1,\n realtime: false\n },\n columnOrderChanged: _.bind(function () {\n if (this.options.userSettings != null) {\n this.options.userSettings.save();\n }\n }, this)\n });\n },\n getColumns(includeAllColumns = false) {\n let columns = [], includeColumns = [],\n viewSettings = this.options.userSettings.getSettings(PJQ.constants.actionItems.view.ACTIONITEMS);\n\n if (includeAllColumns || viewSettings == null) {\n includeColumns = [\"createdBy\", \"status\", \"priority\", \"itemNumber\", \"title\", \"assignedTo\", \"ballInCourt\", \"groupList\", \"category\", \"location\", \"dueDate\"];\n\n if (_.size(this.options.customFields) > 0) {\n _.each(this.options.customFields.models, function (customField) {\n includeColumns.push('fieldValue' + customField.get('fieldNumber'));\n });\n }\n } else\n includeColumns = viewSettings.columns;\n\n _.each(includeColumns, _.bind(function (column) {\n switch (column) {\n case \"createdBy\":\n columns.push({\n columnData: 'createdBy',\n title: \"Created By\",\n render: function (data, type, row) {\n return PJQ.helpers.contacts.getContactAnchor({contact: row.createdBy});\n },\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : false\n });\n break;\n case \"status\":\n columns.push({\n columnData: \"status\",\n data: \"attributes.status\",\n title: \"Status\",\n width: \"80px\",\n render: function (data, type, row) {\n return '' + row.getStatusName() + '';\n },\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : true\n });\n break;\n case \"priority\":\n columns.push({\n columnData: \"priority\",\n data: \"attributes.priority\",\n title: \"Priority\",\n width: \"40px\",\n render: function (data, type, row) {\n return '' + row.getPriorityName() + '';\n },\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : true\n });\n break;\n case \"itemNumber\":\n columns.push({\n columnData: \"itemNumber\",\n data: {\n \"_\": \"attributes.itemNumber\",\n \"sort\": _.bind(function (row) {\n let numStr = row.get('itemNumber');\n if (_.size(numStr) > 0) {\n let number = parseInt(numStr);\n if (isNaN(number)) {\n return numStr;\n }\n return number\n }\n return 0;\n }, this),\n \"display\": \"attributes.itemNumber\"\n },\n title: \"Item #\",\n width: \"60px\",\n type: \"natural-ci\",\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : true\n });\n break;\n case \"title\":\n columns.push({\n columnData: \"title\",\n data: \"attributes.title\",\n title: \"Title\",\n width: \"20%\",\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : true\n });\n break;\n case \"assignedTo\":\n columns.push({\n columnData: \"assignedTo\",\n data: \"attributes.assignedTo\",\n title: \"Assigned To\",\n render: function (data, type, row) {\n let result = 'Nobody';\n if (row.assignedTo) {\n result = PJQ.helpers.contacts.getContactAnchor({contact: row.assignedTo});\n }\n return result;\n },\n width: \"20%\",\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : true\n });\n break;\n case \"ballInCourt\":\n columns.push({\n columnData: \"ballInCourt\",\n title: \"Ball In Court\",\n render: function (data, type, row) {\n let result = 'Nobody';\n\n if ((row.get('status') === PJQ.constants.actionItems.statuses.NEW || row.get('status') === PJQ.constants.actionItems.statuses.NOT_RESOLVED) && row.assignedTo != null) {\n result = PJQ.helpers.contacts.getContactAnchor({contact: row.assignedTo});\n } else if (row.get('status') === PJQ.constants.actionItems.statuses.WORK_COMPLETED) {\n result = 'Project Managers';\n }\n\n return result;\n },\n width: \"20%\",\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : false\n });\n break;\n case 'groupList':\n columns.push({\n columnData: 'groupList',\n title: \"Trades\",\n render: function (data, type, row) {\n let result = [];\n if (_.size(row.groups.models) > 0) {\n _.each(row.groups.models, function (group) {\n result.push(group.get('groupName'));\n });\n } else {\n result.push('None');\n }\n return result.join(', ');\n },\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : false\n });\n break;\n case 'category':\n columns.push({\n columnData: 'category',\n data: \"attributes.category\",\n title: \"Category\",\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : false\n });\n break;\n case 'location':\n columns.push({\n columnData: 'location',\n data: \"attributes.location\",\n title: \"Location\",\n render: _.bind(function (data, type, row) {\n if (this.preferences.hasPref(PJQ.constants.preferenceTypes.ENABLE_PROJECT_LOCATIONS)) {\n let location = this.locations.get(row.get('locationId'));\n return location ? this.locations.getFullName(location) : '';\n }\n return typeof data === 'string' ? data : '';\n }, this),\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : false\n });\n break;\n case \"dueDate\":\n columns.push({\n columnData: \"dueDate\",\n \"data\": \"attributes.dueDate\",\n \"title\": \"Due\",\n \"searchable\": false,\n \"width\": \"80px\",\n \"render\": function (data, type, row) {\n if (data != null) {\n let itemDueDate = new Date(data),\n dateString = PJQ.helpers.dateHelpers.getDateString(itemDueDate, PJQ.helpers.dateHelpers.dateFormats.DATE);\n if (row.get('status') !== PJQ.constants.actionItems.statuses.RESOLVED && PJQ.helpers.dateHelpers.getDateDaysDiff(itemDueDate, new Date()) < 0) {\n return '' + dateString + '';\n }\n return dateString;\n }\n return 'Not Set';\n },\n visible: viewSettings != null ? viewSettings.columns.indexOf(column) !== -1 : true\n });\n break;\n default:\n if (column.startsWith('fieldValue')) {\n _.each(this.options.customFields.models, function (customField) {\n if (column === 'fieldValue' + customField.get('fieldNumber')) {\n columns.push({\n \"columnData\": 'fieldValue' + customField.get('fieldNumber'),\n \"title\": customField.get('fieldName'),\n \"className\": [PJQ.constants.commitments.customFieldType.INTEGER, PJQ.constants.commitments.customFieldType.MONEY, PJQ.constants.commitments.customFieldType.PERCENT].indexOf(customField.get('fieldTypeId')) !== -1 ? \"text-align-right\" : \"\",\n 'visible': viewSettings.columns.indexOf(column) !== -1,\n \"render\": function (data, type, row) {\n let fieldValue = row.getCustomFieldValue(customField.get('id'));\n fieldValue = (fieldValue !== null) ? fieldValue : '';\n switch (customField.get('fieldType')) {\n case PJQ.constants.customFields.fieldTypes.TEXT:\n if (fieldValue && type !== 'sort' && type !== 'type') {\n if (PJQ.helpers.urlHelpers.isURL(fieldValue))\n fieldValue = '' + fieldValue + '';\n }\n break\n case 'BOOL':\n if (fieldValue != null)\n fieldValue = fieldValue ? 'Yes' : 'No';\n break;\n case 'CHOICE':\n let choices = [];\n // convert single choice value into array so that the logic below can work for both types.\n if (typeof fieldValue === 'number')\n fieldValue = [fieldValue];\n\n _.each(customField.choices.models, _.bind(function (choice) {\n if (_.find(fieldValue, function (value) {\n return value === choice.get('id');\n }))\n choices.push(choice.get('choiceName'));\n }, this));\n\n fieldValue = choices.join((', '));\n break;\n case 'DATE':\n if (fieldValue) {\n if (type !== 'sort' && type !== 'type')\n fieldValue = PJQ.helpers.dateHelpers.getDateString(new Date(fieldValue), PJQ.helpers.dateHelpers.dateFormats.DATE, true);\n }\n if (fieldValue === undefined)\n fieldValue = '';\n\n break;\n case 'DATETIME':\n if (fieldValue) {\n if (type !== 'sort' && type !== 'type')\n fieldValue = PJQ.helpers.dateHelpers.getDateString(new Date(fieldValue), PJQ.helpers.dateHelpers.dateFormats.DATE_TIME, false);\n }\n if (fieldValue === undefined)\n fieldValue = '';\n\n break;\n case 'INT':\n if (type !== 'sort' && type !== 'type' && fieldValue) {\n fieldValue = parseInt(fieldValue).toLocaleString();\n }\n break;\n case 'MONEY':\n if (type === 'sort' || type === 'type') {\n if (fieldValue && fieldValue !== '$')\n fieldValue = parseFloat(PJQ.helpers.formatHelpers.numbersOnly(fieldValue, true));\n else\n fieldValue = 0;\n } else {\n fieldValue = PJQ.helpers.formatHelpers.formatCurrency(parseInt(PJQ.helpers.formatHelpers.numbersOnly(fieldValue)));\n }\n break;\n case 'PERCENT':\n if (type === 'sort' || type === 'type') {\n if (!fieldValue)\n fieldValue = 0;\n } else {\n fieldValue = fieldValue ? PJQ.helpers.formatHelpers.formatCurrency(parseInt(PJQ.helpers.formatHelpers.numbersOnly(fieldValue)), 2, false) + '%' : '';\n }\n break;\n }\n\n return fieldValue;\n }\n });\n }\n });\n }\n break;\n }\n }, this)\n );\n\n if (!includeAllColumns) {\n columns.push({\n columnData: \"actionItemId\",\n data: \"attributes.actionItemId\",\n title: \"\",\n width: '80px',\n orderable: false,\n searchable: false,\n className: 'text-align-center',\n render: _.bind(function (data) {\n let html = '