UNPKG

graphdb-workbench

Version:
2 lines 2.09 kB
export const __webpack_id__=23686;export const __webpack_ids__=[23686];export const __webpack_modules__={23686:(t,s,e)=>{e.r(s),e.d(s,{EndpointDefinitionFile:()=>l,EndpointDefinitionFileList:()=>_,ImportStatus:()=>i,ImportStatusLabelKeys:()=>n,ImportStatusToViewMapping:()=>a});const i={PENDING:"PENDING",SUCCESS:"SUCCESS",FAIL:"FAIL",SKIP:"SKIP"},n={[i.PENDING]:"graphql.endpoints_management.import_definition_modal.status.pending",[i.SUCCESS]:"graphql.endpoints_management.import_definition_modal.status.completed",[i.FAIL]:"graphql.endpoints_management.import_definition_modal.status.failed",[i.SKIP]:"graphql.endpoints_management.import_definition_modal.status.not_allowed"},a={[i.PENDING]:"tag-warning",[i.SUCCESS]:"tag-success",[i.FAIL]:"tag-danger",[i.SKIP]:"tag-info"};class _{_list;_size;constructor(t=[]){this._list=t,this._size=t.length}processWith(t){this.list.forEach(t)}findDefinitionFileByName(t){return this.list.find(s=>s.file.name===t)}getFileNames(){return this.list.map(t=>t.file.name)}appendFiles(t){this.list.push(...t),this._size=this.list.length}removeFile(t){this.list=this.list.filter(s=>s.file!==t.file)}get size(){return this._size}set size(t){this._size=t}set list(t){this._list=t,this._size=t.length}get list(){return this._list}}class l{_list;_file;_filename;_status;_viewStatus;_statusMessage;_endpointId;_report;constructor(t,s,e,i){this._file=t,this._status=s,this._viewStatus=a[s],this._statusMessage=e,this._list=i}set file(t){this._file=t}get file(){return this._file}set filename(t){this._filename=t}get filename(){return this._filename}set status(t){this._status=t,this._viewStatus=a[t]}get status(){return this._status}set viewStatus(t){this._viewStatus=t}get viewStatus(){return this._viewStatus}set statusMessage(t){this._statusMessage=t}get statusMessage(){return this._statusMessage}set endpointId(t){this._endpointId=t}get endpointId(){return this._endpointId}set report(t){this._report=t}get report(){return this._report}get list(){return this._list}set list(t){this._list=t}}}}; //# sourceMappingURL=23686.89e7106b5bc5587804d2.bundle.js.map