{"version":3,"sources":["1initializers.js","punchlistmodels.js","punchlistviews.js","settingsviews.js","templateviews.js"],"names":["PJQ","collections","punchlists","models","views","modules","punchList","routes","route","name","callback","projectId","projectWall","initProjectNavigator","parseInt","punchListItemId","app","addRoutes","PunchlistItem","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","PunchlistItemComments","attachments","PunchlistItemAttachments","beforeAttachments","afterAttachments","customFieldValues","getDeepLink","toString","getStatusColor","statusColors","ASSIGNED","getStatusName","statusNames","WORK_COMPLETED","workCompletedOverride","session","project","preferences","getPref","preferenceTypes","PUNCH_LIST_WORK_COMPLETED_STATUS_OVERRIDE","getPriorityColor","priorities","LOW","priorityColors","getPriorityName","priorityNames","beforeSave","_this$assignedTo","toJSON","getChangedModels","fetchNotifications","notifications","Notifications","punchlistItem","fetch","success","distribute","ajax","Request","post","done","response","fail","res","err","responseJSON","message","PunchlistItemComment","EditHistoryItem","createdOnDisplay","dateHelpers","getDateString","Date","createdOn","dateFormats","DATE_TIME","createdByDisplay","companyName","contactName","oldValueDisplay","oldValue","newValueDisplay","newValue","fieldType","DATE","PunchlistItemAttachment","files","File","PunchlistCustomField","customFields","CustomField","Notification","notificationTypeNames","collection","options","Settings","ProjectContactSettings","each","setting","matchProjectContact","findWhere","attributes","isSilent","filter","projectContact","hasChanged","PunchListUserSettings","params","forCompany","push","parameter","getSettings","view","find","viewSettings","ProjectContactSetting","Template","user","assignee","submitter","submittals","Comments","Attachments","punchlistItems","PunchlistItems","items","BaseCollection","EditHistoryItems","Files","PunchlistCustomFields","masterUserId","Templates","PunchlistView","BaseView","defaults","template","templating","PUNCHLISTS","events","click .btn-punchlist-settings","click .export-detailed","click .export-list","click .btn-add-punchlist-item","click .btn-edit-punchlist-item","click .btn-delete-punchlist-item","click .btn-save-a-template","click .btn-import-template","beforeFirstRender","isAdmin","hasPermission","isFetched","userSettings","fnFetch","fnRender","punchListItems","render","fetchPunchListCustomFields","hasPref","ENABLE_PROJECT_LOCATIONS","fetchLocations","locations","renderData","afterRender","renderDataTable","item","editPunchlistItem","self","punchlistDataTable","dataTables","DataTable","el","$","rowId","data","language","emptyTable","zeroRecords","subTemplates","header","pageLength","rowsPerPage","orderCookie","cookies","PUNCHLIST_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","deletePunchlistItem","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","PunchlistItemEditorModal","onSave","addRow","add","refresh","onClose","restore","onDelete","cid","removeRow","destroy","deleteClicked","modals","DeleteCancel","body","exportList","filters","cookieHelpers","getCookie","JSON","reports","NewReport","reportTypes","PUNCH_LIST","columnOrder","export","format","then","exportDetailedList","orderBy","orderAscending","filterData","getFilteredRowData","map","loader","Loader","loadingText","itemOrder","handleDownload","remove","xhr","viewPunchListSettings","PunchListSettingsModal","punchlistsView","saveTemplate","PunchlistTemplateCreatorModal","importTemplate","ImportTemplateModal","onImport","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 .punchlist-save","click .punchlist-close","click .punchlist-delete","click .delete-comment","click .btn-distribute","beforeModalCreated","_beforeModalCreated","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","changedAnnotations","drawings","Annotations","sent","stop","apply","beforeRender","canEdit","canUpload","isAssignee","_this","isSaving","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","reset","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","_this2","YesNo","onYes","notify","successNotify","exportPDF","addComment","val","trim","comment","punchlistItemId","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","_this3","isUploading","fnSaveAnnotations","saveAll","removeModal","close","SaveDontSave","onDontSave","minWidth","dataTable","dom","click .history-close","change .select-column","click .settings-save","click .btn-delete-punch-lists","afterModalCreated","fetchProjectContacts","fetchPunchListSettings","onAdd","updateProjectContactsSetting","rowsPerPageSelectPicker","isHideSearch","deleteItems","deleteAllPunchLists","columnSelected","sender","prop","objectHelpers","refinedType","existingSetting","newSetting","getValue","put","error","click .btn-save","fetchPunchlistTemplates","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":"m6NAAAA,IAAAC,YAAAC,WAAA,GAEAF,IAAAG,OAAAD,WAAA,GAEAF,IAAAI,MAAAF,WAAA,GAGAF,IAAAK,QAAAC,UAAA,CACAC,OAAA,CACA,CACAC,MAAA,iCACAC,KAAA,YACAC,SAAA,SAAAC,GACAX,IAAAK,QAAAO,YAAAC,qBAAAC,SAAAH,GAAA,gBAGA,CACAH,MAAA,kDACAC,KAAA,gBACAC,SAAA,SAAAC,EAAAI,GACAf,IAAAK,QAAAO,YAAAC,qBAAAC,SAAAH,GAAA,aAAA,CACAI,gBAAAD,SAAAC,SAOAf,IAAAgB,IAAAC,UAAAjB,IAAAK,QAAAC,UAAAC,QC3BAP,IAAAG,OAAAD,WAAAgB,cAAAlB,IAAAG,OAAAgB,UAAAC,OAAA,CACAC,WAAA,kBACAC,YAAA,kBACAC,SAAA,WACA,IAAAC,EAkCA,OAhCAA,EADAC,KAAAC,SAAA,EAAAD,KAAAE,IAAA,aACA,CACA,CACAJ,SAAA,WACAK,MAAAH,KAAAE,IAAA,cAEA,CACAJ,SAAA,aACAK,MAAAH,KAAAI,KAGAJ,KAAAC,SAAA,EAAAD,KAAAE,IAAA,cACA,CACA,CACAJ,SAAA,cAEA,CACAA,SAAA,YACAK,MAAAH,KAAAE,IAAA,eAEA,CACAJ,SAAA,SAIA,CACA,CACAA,SAAA,aACAK,MAAAH,KAAAI,KAKA7B,IAAA8B,QAAAC,WAAAC,iBAAAR,IAEAS,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hM,GACAA,EAAAmK,UACAtT,KAAAsf,UAAAjM,UAAA/F,KAEAtN","file":"app.js","sourcesContent":["PJQ.collections.punchlists = {};\r\n\r\nPJQ.models.punchlists = {};\r\n\r\nPJQ.views.punchlists = {};\r\n\r\n//Routes\r\nPJQ.modules.punchList = {\r\n\troutes: [\r\n\t\t{\r\n\t\t\troute: 'projects/:projectId/punchlists',\r\n\t\t\tname: 'punchList',\r\n\t\t\tcallback: function (projectId) {\r\n\t\t\t\tPJQ.modules.projectWall.initProjectNavigator(parseInt(projectId), \"punchlists\");\r\n\t\t\t}\r\n\t\t},\r\n\t\t{\r\n\t\t\troute: 'projects/:projectId/punchlists/:punchListItemId',\r\n\t\t\tname: 'punchListItem',\r\n\t\t\tcallback: function (projectId, punchListItemId) {\r\n\t\t\t\tPJQ.modules.projectWall.initProjectNavigator(parseInt(projectId), \"punchlists\", {\r\n\t\t\t\t\tpunchListItemId: parseInt(punchListItemId)\r\n\t\t\t\t});\r\n\t\t\t}\r\n\t\t}\r\n\t]\r\n};\r\n\r\nPJQ.app.addRoutes(PJQ.modules.punchList.routes);","// Models\r\nPJQ.models.punchlists.PunchlistItem = PJQ.models.BaseModel.extend({\r\n notifyName: 'Punch List Item',\r\n idAttribute: \"punchlistItemId\",\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: 'punchlists',\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: 'punchlists'\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: 'punchlists',\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.punchlists.statuses.NEW || PJQ.constants.punchlists.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.punchlists.PunchlistItemComments(model.comments);\r\n } else {\r\n this.comments = new PJQ.collections.punchlists.PunchlistItemComments();\r\n }\r\n\r\n if (_.size(model.attachments) > 0) {\r\n this.attachments = new PJQ.collections.punchlists.PunchlistItemAttachments(model.attachments);\r\n } else {\r\n this.attachments = new PJQ.collections.punchlists.PunchlistItemAttachments();\r\n }\r\n\r\n if (_.size(model.beforeAttachments) > 0) {\r\n this.beforeAttachments = new PJQ.collections.punchlists.PunchlistItemAttachments(model.beforeAttachments);\r\n } else {\r\n this.beforeAttachments = new PJQ.collections.punchlists.PunchlistItemAttachments();\r\n }\r\n\r\n if (_.size(model.afterAttachments) > 0) {\r\n this.afterAttachments = new PJQ.collections.punchlists.PunchlistItemAttachments(model.afterAttachments);\r\n } else {\r\n this.afterAttachments = new PJQ.collections.punchlists.PunchlistItemAttachments();\r\n }\r\n\r\n if (model.customFieldValues == null) {\r\n model.customFieldValues = [];\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() + '/punchlists/' + this.id.toString();\r\n },\r\n getStatusColor: function () {\r\n if (this.get('status') == null) {\r\n this.set('status', PJQ.constants.punchlists.statuses.NEW);\r\n }\r\n\r\n if (this.assignedTo != null && this.get('status') === PJQ.constants.punchlists.statuses.NEW) {\r\n return PJQ.constants.punchlists.statusColors[PJQ.constants.punchlists.statuses.ASSIGNED];\r\n }\r\n return PJQ.constants.punchlists.statusColors[this.get('status')];\r\n },\r\n getStatusName: function () {\r\n if (this.get('status') == null) {\r\n this.set('status', PJQ.constants.punchlists.statuses.NEW);\r\n }\r\n\r\n if (this.assignedTo != null && this.get('status') === PJQ.constants.punchlists.statuses.NEW) {\r\n return PJQ.constants.punchlists.statusNames[PJQ.constants.punchlists.statuses.ASSIGNED];\r\n } else if (this.get('status') === PJQ.constants.punchlists.statuses.WORK_COMPLETED) {\r\n let workCompletedOverride = PJQ.app.session.project.preferences.getPref(PJQ.constants.preferenceTypes.PUNCH_LIST_WORK_COMPLETED_STATUS_OVERRIDE);\r\n if (workCompletedOverride != null) {\r\n return workCompletedOverride;\r\n }\r\n }\r\n return PJQ.constants.punchlists.statusNames[this.get('status')];\r\n },\r\n getPriorityColor: function () {\r\n if (this.get('priority') == null) {\r\n this.set('priority', PJQ.constants.punchlists.priorities.LOW);\r\n }\r\n return PJQ.constants.punchlists.priorityColors[this.get('priority')];\r\n },\r\n getPriorityName: function () {\r\n if (this.get('priority') == null) {\r\n this.set('priority', PJQ.constants.punchlists.priorities.LOW);\r\n }\r\n return PJQ.constants.punchlists.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.punchlists.Notifications(null, {\r\n punchlistItem: 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 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.punchlists.PunchlistItemComment = PJQ.models.BaseModel.extend({\r\n idAttribute: \"commentId\",\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'punchlists',\r\n value: this.get('punchlistItemId')\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.punchlists.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.punchlists.PunchlistItemAttachment = 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: 'punchlists',\r\n value: this.get('punchlistItemId')\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.punchlists.PunchlistCustomField = PJQ.models.customFields.CustomField.extend({\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'punchlists'\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.punchlists.Notification = PJQ.models.notifications.Notification.extend({\r\n notificationTypeNames: PJQ.constants.punchlists.notificationTypeNames,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'punchlists',\r\n value: this.collection.options.punchlistItem.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.punchlists.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: 'punchlists'\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.punchlists.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.punchlists.PunchListUserSettings = 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: 'punchlists'\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.punchlists.ProjectContactSetting = PJQ.models.BaseModel.extend({});\r\n\r\nPJQ.models.punchlists.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: 'punchlists'\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.submittals.Comments(model.comments);\r\n\r\n this.attachments = new PJQ.collections.submittals.Attachments(model.attachments);\r\n\r\n if (model.punchlistItems)\r\n this.punchlistItems = new PJQ.collections.punchlists.PunchlistItems(model.punchlistItems);\r\n else if (model.items)\r\n this.punchlistItems = new PJQ.collections.punchlists.PunchlistItems(model.items);\r\n else\r\n this.punchlistItems = new PJQ.collections.punchlists.PunchlistItems();\r\n\r\n return model;\r\n }\r\n});\r\n\r\n\r\n// Collections\r\nPJQ.collections.punchlists.PunchlistItems = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.punchlists.PunchlistItem,\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: 'punchlists'\r\n }\r\n ])\r\n }\r\n});\r\n\r\nPJQ.collections.punchlists.Notifications = PJQ.collections.notifications.Notifications.extend({\r\n model: PJQ.models.punchlists.Notification,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'punchlists',\r\n value: this.options.punchlistItem.id\r\n },\r\n {\r\n endpoint: 'notifications'\r\n }\r\n ])\r\n }\r\n});\r\n\r\nPJQ.collections.punchlists.EditHistoryItems = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.punchlists.EditHistoryItem\r\n});\r\n\r\nPJQ.collections.punchlists.PunchlistItemComments = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.punchlists.PunchlistItemComment\r\n});\r\n\r\nPJQ.collections.punchlists.PunchlistItemAttachments = PJQ.collections.files.Files.extend({\r\n model: PJQ.models.punchlists.PunchlistItemAttachment\r\n});\r\n\r\nPJQ.collections.punchlists.ProjectContactSettings = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.punchlists.ProjectContactSetting\r\n});\r\n\r\nPJQ.collections.punchlists.PunchlistCustomFields = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.punchlists.PunchlistCustomField,\r\n options: {\r\n masterUserId: null\r\n },\r\n endpoint: function () {\r\n let projectId = null;\r\n if (this.options.project != null) {\r\n projectId = this.options.project.id\r\n } else if (this.options.projectId > 0) {\r\n projectId = this.options.projectId;\r\n }\r\n\r\n if (projectId > 0) {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'projects',\r\n value: projectId\r\n },\r\n {\r\n endpoint: 'punchlists'\r\n },\r\n {\r\n endpoint: 'customFields'\r\n }\r\n ]);\r\n }\r\n\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'punchlists'\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.punchlists.Templates = PJQ.collections.BaseCollection.extend({\r\n model: PJQ.models.punchlists.Template,\r\n endpoint: function () {\r\n return PJQ.helpers.urlHelpers.generateEndpoint([\r\n {\r\n endpoint: 'punchlists'\r\n },\r\n {\r\n endpoint: 'templates'\r\n }\r\n ]);\r\n }\r\n});\r\n","PJQ.views.punchlists.PunchlistView = PJQ.views.BaseView.extend({\n defaults: {\n template: new PJQ.templating.Template(PJQ.constants.modules.PUNCHLISTS, 'Punchlist-Management'),\n punchListItemId: null\n },\n events: {\n 'click .btn-punchlist-settings': 'viewPunchListSettings',\n 'click .export-detailed': 'exportDetailedList',\n 'click .export-list': 'exportList',\n 'click .btn-add-punchlist-item': 'addClicked',\n 'click .btn-edit-punchlist-item': 'editClicked',\n 'click .btn-delete-punchlist-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.project = PJQ.app.session.project;\n this.options.isAdmin = (PJQ.app.session.user != null && this.options.project.get('masterUserId') === PJQ.app.session.user.get('masterUserId')) && this.options.project.hasPermission('punchList.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.punchlists.PunchListUserSettings();\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 punchListItems = new PJQ.collections.punchlists.PunchlistItems(null, {\n project: this.options.project\n });\n punchListItems.fetch({\n success: _.bind(function () {\n this.collection = punchListItems;\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.fetchPunchListCustomFields(_.bind(function (customFields) {\n fnRender(customFields);\n }, this));\n } else {\n PJQ.app.session.fetchPunchListCustomFields(null, _.bind(function (customFields) {\n fnRender(customFields);\n }, this));\n }\n }, this)\n });\n }, this)\n\n if (this.options.project != null && 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.punchListItemId > 0) {\n let item = this.collection.get(this.options.punchListItemId);\n this.options.punchListItemId = null;\n if (item != null) {\n this.editPunchlistItem(item);\n }\n }\n },\n renderDataTable() {\n let self = this,\n userSettings = this.options.userSettings.getSettings(PJQ.constants.punchlists.view.PUNCHLISTS);\n this.punchlistDataTable = new PJQ.views.dataTables.DataTable({\n el: this.$('.punch-list-items'),\n rowId: \"cid\",\n data: this.collection.models,\n language: {\n emptyTable: 'Click \"Add Item\" to create a Punch List Item',\n zeroRecords: \"No items matched the search criteria\"\n },\n subTemplates: {\n header: new PJQ.templating.Template(PJQ.constants.modules.PUNCHLISTS, 'Data-Table-Header-Punch-List')\n },\n pageLength: userSettings != null ? userSettings.rowsPerPage : 50,\n orderCookie: PJQ.constants.cookies.PUNCHLIST_ORDER_COOKIE,\n settings: this.options.userSettings.getSettings(PJQ.constants.punchlists.view.PUNCHLISTS),\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('.punch-list-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.punchlists.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.punchlists.statuses.NEW && row.assignedTo != null) || _.contains(statusFilter, rowStatus));\n });\n },\n order: [[0, \"asc\"]],\n deferRender: true,\n onRowDoubleClick: _.bind(function (row) {\n this.editPunchlistItem(row.data());\n }, this),\n contextMenuOptions: {\n actions: [\n {\n name: 'Edit',\n onClick: _.bind(function (row) {\n this.editPunchlistItem(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.deletePunchlistItem(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.punchlists.view.PUNCHLISTS);\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.punchlists.statuses.NEW || row.get('status') === PJQ.constants.punchlists.statuses.NOT_RESOLVED) && row.assignedTo != null) {\n result = PJQ.helpers.contacts.getContactAnchor({contact: row.assignedTo});\n } else if (row.get('status') === PJQ.constants.punchlists.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.locations != null && 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 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.punchlists.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: \"punchlistItemId\",\n data: \"attributes.punchlistItemId\",\n title: \"\",\n width: '80px',\n orderable: false,\n searchable: false,\n className: 'text-align-center',\n render: _.bind(function (data) {\n let html = '