graphdb-workbench 2.6.0-RC1 → 2.6.0-RC3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (70) hide show
  1. package/dist/0.a3b3bef411c35bdc8be5.bundle.js +25 -0
  2. package/dist/10.2f1b7b3050f428758cd0.bundle.js +1 -0
  3. package/dist/131.f41a0b6b9036447b1077.bundle.js +1 -1
  4. package/dist/{16.0b4651148d244dd30787.bundle.js → 16.028d7ea5baf358e315cb.bundle.js} +1 -1
  5. package/dist/2.907f954e4f9e0697612c.bundle.js +1 -0
  6. package/dist/242.91371576625ebddd82e9.bundle.js +1 -0
  7. package/dist/257.943f597bddc0d65103c5.bundle.js +1 -0
  8. package/dist/259.2c88332b7f1b47935a47.bundle.js +1 -1
  9. package/dist/26.85a305c95834a8a1a05a.bundle.js +1 -0
  10. package/dist/260.d745422c537bdd9647bb.bundle.js +1 -1
  11. package/dist/261.7efff7f93f61f061f5ca.bundle.js +1 -1
  12. package/dist/27.92bfb161b420732902a3.bundle.js +1 -1
  13. package/dist/28.2e0277168c8f14f9c085.bundle.js +1 -1
  14. package/dist/288.6cef162ec3cec3cde603.bundle.js +1 -1
  15. package/dist/40.53352fda81f370182e99.bundle.js +1 -1
  16. package/dist/51.9696bc200e07cfc15860.bundle.js +1 -0
  17. package/dist/63.dbce2c16115eac52fed2.bundle.js +1 -1
  18. package/dist/85.e34e2854ea217304bf69.bundle.js +1 -0
  19. package/dist/{bundle.9aba7bf2c93038556ed7.bundle.js → bundle.782865d765633c869a40.bundle.js} +21 -21
  20. package/dist/css/aclmanagement.css +58 -5
  21. package/dist/css/bootstrap-graphdb-theme.css +3 -0
  22. package/dist/i18n/locale-en.json +9 -2
  23. package/dist/i18n/locale-fr.json +9 -2
  24. package/dist/index.html +5 -5
  25. package/dist/js/angular/core/directives/autocomplete/templates/autocomplete.html +3 -3
  26. package/dist/js/angular/core/directives/operations-statuses-monitor/templates/operations-statuses-monitor.html +1 -1
  27. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  28. package/dist/js/angular/core/directives/yasgui-component/templates/yasgui-component.html +1 -1
  29. package/dist/js/angular/security/templates/user.html +1 -1
  30. package/dist/license-checker.json +28 -28
  31. package/dist/{main.d146b6bf3b36c70d7eb4.css → main.cd9080d130335332d006.css} +1 -1
  32. package/dist/pages/aclmanagement.html +43 -23
  33. package/dist/pages/autocomplete.html +1 -1
  34. package/dist/pages/choose-repository-type.html +1 -1
  35. package/dist/pages/cluster-management/clusterInfo.html +3 -3
  36. package/dist/pages/create-index.html +1 -1
  37. package/dist/pages/dependencies.html +1 -1
  38. package/dist/pages/domainRangeInfo.html +2 -2
  39. package/dist/pages/edit.html +1 -1
  40. package/dist/pages/explore.html +1 -1
  41. package/dist/pages/export.html +1 -1
  42. package/dist/pages/find.html +1 -1
  43. package/dist/pages/graph-config/saveGraphConfig.html +8 -8
  44. package/dist/pages/graphs-visualizations.html +7 -7
  45. package/dist/pages/guides.html +1 -1
  46. package/dist/pages/import.html +1 -1
  47. package/dist/pages/jdbc-create.html +1 -1
  48. package/dist/pages/monitor/backup-and-restore.html +1 -1
  49. package/dist/pages/monitor/queries.html +1 -1
  50. package/dist/pages/monitor/resources.html +1 -1
  51. package/dist/pages/namespaces.html +2 -2
  52. package/dist/pages/plugins.html +1 -1
  53. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  54. package/dist/pages/rdfrank.html +2 -2
  55. package/dist/pages/repositories.html +1 -1
  56. package/dist/pages/repository.html +1 -1
  57. package/dist/pages/similarity-indexes.html +1 -1
  58. package/dist/pages/sparql-editor.html +1 -1
  59. package/dist/pages/sparql-template-create.html +1 -1
  60. package/dist/pages/webapi.html +2 -2
  61. package/dist/res/swagger/index.html +27 -27
  62. package/package.json +2 -2
  63. package/dist/0.58d3e721977aba00916d.bundle.js +0 -25
  64. package/dist/10.b6b61cf21bd44294d26a.bundle.js +0 -1
  65. package/dist/2.310db1ae6931f2dd9ca9.bundle.js +0 -1
  66. package/dist/242.fae486a289bcd8871146.bundle.js +0 -1
  67. package/dist/257.1adf7b54133c046ab17e.bundle.js +0 -1
  68. package/dist/26.b9ee4ffdf2580da8b6b3.bundle.js +0 -1
  69. package/dist/51.3c116aa60def452f65f0.bundle.js +0 -1
  70. package/dist/85.1581dd3b24f5eb636998.bundle.js +0 -1
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[257],{345:function(module,exports){module.exports=function(obj){obj||(obj={});var __t,__p="";with(obj)__p+='<link href="css/autocomplete-select.css?v=2.6.0-RC1" rel="stylesheet"/>\n\n<div class="autocomplete-select-wrapper">\n <div class="autocomplete-select">\n <div ng-hide="isMultiline">\n <input type="text" ng-model="searchInput" ng-change="onChange()" ng-keydown="onKeyDown($event)"\n ng-blur="onBlur()" ng-required="required"\n class="autocomplete-input" ng-class="styleClass" placeholder="{{placeholder}}">\n </div>\n <div ng-show="isMultiline">\n <textarea\n ng-model="searchInput"\n ng-change="onChange()"\n ng-keydown="onKeyDown($event)"\n ng-blur="onBlur()"\n ng-required="required"\n class="autocomplete-textarea" ng-class="styleClass"\n placeholder="{{placeholder}}"\n rows="{{initialRows}}">\n </textarea>\n </div>\n </div>\n <div class="autocomplete-results-wrapper card">\n <div ng-repeat="autoCompleteUriResult in autoCompleteUriResults track by $index"\n ng-click="selectResource(autoCompleteUriResult)"\n ng-mousemove="setActiveItemIndex($index)"\n ng-class="{active: activeSearchElm === $index, selected: selectedElementIndex === $index}"\n class="result-item">\n <p ng-bind-html="getResultItemHtml(autoCompleteUriResult)"></p>\n </div>\n </div>\n</div>\n';return __p}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[26,64,136,163,164,170,233],{158:function(e,r,t){"use strict";t.r(r);t(64),t(10);var s=t(62),a=t(61),i=t(14),n=t(73),o=t(93);function u(e,r,t,u,p,c,d,h,g,y,l,Q,f,m,w,I){let R;e.newConfig=new n.GraphsConfig,e.revertConfig=void 0,e.page=1,e.totalPages=5,e.helpHidden=1===f.get(m.HIDE_GRAPH_CONFIG_HELP),e.isUpdate=!1,e.shared=!1,e.canEditActiveRepo=e.canWriteActiveRepo(),e.samples=[],e.tabConfig={inference:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},e.getAutocompletePromise=void 0,e.getNamespacesPromise=void 0,e.tabsViewModel=[{page:1,label:w.instant("starting.point.label"),type:"startGraphQuery"},{page:2,label:w.instant("graph.expansion"),type:"expandQuery"},{page:3,label:w.instant("node.basics"),type:"resourceQuery"},{page:4,label:w.instant("edge.basics"),type:"predicateLabelQuery"},{page:5,label:w.instant("node.extra"),type:"resourcePropertiesQuery"}];const C=y.configName,_=p.getActiveRepository();e.toggleHelp=r=>{void 0===r&&(r=f.get(m.HIDE_GRAPH_CONFIG_HELP)),1!==r?(f.set(m.HIDE_GRAPH_CONFIG_HELP,1),e.helpHidden=!0):(f.set(m.HIDE_GRAPH_CONFIG_HELP,0),e.helpHidden=!1)},e.fixedVisualCallback=(r,t)=>{e.newConfig.startIRI=r,e.newConfig.startIRILabel=t,R=!0},e.isDefaultGraph=e=>e.isDefaultGraph(),e.isUserGraph=e=>!e.isDefaultGraph(),e.getSampleName=(e,r)=>{if(!e)return"";const t=e.getPropertyDescription(r);return t||(e.id?"Copy of "+e.name:e.name)},e.createGraphConfig=e=>{h.createGraphConfig(e).success((async function(){await l.showToastMessageWithDelay("graphexplore.saved.new.config"),t.url("graphs-visualizations")})).error((function(e){u.error(getError(e),w.instant("graphexplore.error.could.not.create"))}))},e.updateGraphConfig=e=>{h.updateGraphConfig(e).success((async function(){await l.showToastMessageWithDelay("graphexplore.saved.config"),t.url("graphs-visualizations")})).error((function(e){u.error(getError(e),w.instant("graphexplore.error.could.not.save"))}))},e.goToPage=r=>{e.page!==r&&G(()=>{e.showEditor(),e.page=r})},e.goToPreviousPage=()=>{e.page>1&&e.goToPage(e.page-1),q()&&(R=!1)},e.goToNextPage=()=>{T(),e.newConfig.isStartMode(n.StartMode.NODE)&&!R||e.goToPage(e.page+1)},e.saveGraphConfig=()=>{T(),q()&&!R||(e.newConfig.startQueryIncludeInferred=e.tabConfig.inference,e.newConfig.startQuerySameAs=e.tabConfig.sameAs,G(()=>{e.newConfig.name?(e.queryEditorIsDirty=!1,e.isUpdate?e.updateGraphConfig(e.newConfig.toSavePayload()):e.createGraphConfig(e.newConfig.toSavePayload())):P(w.instant("graphexplore.provide.config.name"))}))},e.setQuery=async r=>{const t=r||" ";(await b()).setQuery(t),e.markDirty()},e.markDirty=async()=>{if(e.revertConfig){const r=e.revertConfig.getQueryType(e.page),t=await v();e.queryEditorIsDirty=r!==t}},e.showEditor=()=>{e.viewMode="yasr",M(),E()},e.showPreview=()=>{e.viewMode="editor",S()},e.revertEditor=()=>{e.setQuery(e.revertConfig.getQueryType(e.page)),e.queryEditorIsDirty=!1};const b=()=>i.YasguiComponentDirectiveUtil.getOntotextYasguiElementAsync("#query-editor"),S=async(r,t)=>{const s=await b(),a=await s.getQueryType();if(t&&"SELECT"!==a&&"CONSTRUCT"!==a&&"DESCRIBE"!==a)return void u.warning(w.instant("query.editor.warning.msg"));"update"!==await s.getQueryMode()?e.queryIsRunning||(e.viewMode="editor",D()):u.warning(w.instant("cannot.execute.update.error"))},D=async()=>{(await b()).query(a.RenderingMode.YASR)},E=async()=>(await b()).changeRenderMode(a.RenderingMode.YASQE),v=async()=>(await b()).getQuery(),M=async()=>(await b()).abortQuery(),G=async r=>{const t=await(async()=>{const r=await b();let t=await r.getQuery();return t=t.trim(),e.newConfig.updateModel(t,e.page)})();1===e.page?t.isStartMode(n.StartMode.NODE)&&!t.startIRI?P(w.instant("graphexplore.select.start.node")):t.isStartMode(n.StartMode.QUERY)&&!t.startGraphQuery?P(w.instant("graphexplore.provide.query")):t.isStartMode(n.StartMode.QUERY)?L(r,t.startGraphQuery,"graph"):r():2===e.page?L(r,t.expandQuery,"construct",["node"]):3===e.page?L(r,t.resourceQuery,"tuple",["node"],[],["type","label","comment","rank"]):4===e.page?L(r,t.predicateLabelQuery,"tuple",["edge"],["label"]):5===e.page&&L(r,t.resourcePropertiesQuery,"tuple",["node"],["property","value"])},A=()=>{e.tabConfig.inference=e.newConfig.startQueryIncludeInferred,e.tabConfig.sameAs=e.newConfig.startQuerySameAs,e.setQuery(e.newConfig.getQueryType(e.page))},P=e=>{u.warning(e)},x=()=>{e.getAutocompletePromise=g.checkAutocompleteStatus()},L=(e,r,t,s,a,i)=>{r?h.validateQuery(r,t,s,a,i).success(()=>{e()}).error(e=>{P(getError(e))}):e()},T=()=>{q()&&e.$broadcast("addStartFixedNodeAutomatically",{startIRI:e.newConfig.startIRI})},q=()=>1===e.page&&e.newConfig.isStartMode(n.StartMode.NODE),Y=()=>{h.getGraphConfigSamples().success((function(r){e.samples=Object(o.mapGraphConfigSamplesToGraphConfigs)(r).filter(r=>!r.id||e.newConfig.id!==r.id||(e.revertConfig=r,!1))})).error((function(e){u.error(getError(e),w.instant("graphexplore.error.graph.configs"))})),x(),e.getNamespacesPromise=Q.getNamespaces(e.getActiveRepository())},$={endpoint:()=>"/repositories/"+p.getActiveRepository(),showEditorTabs:!1,showToolbar:!1,showResultTabs:!1,showYasqeActionButtons:!1,yasqeActionButtons:[{name:"createSavedQuery",visible:!1},{name:"showSavedQueries",visible:!1},{name:"shareQuery",visible:!1},{name:"includeInferredStatements",visible:!1}],showQueryButton:!1,initialQuery:" ",componentId:"graphs-config",render:a.RenderingMode.YASQE,maxPersistentResponseSize:0,yasqeMode:s.YasqeMode.PROTECTED,infer:e.newConfig.startQueryIncludeInferred,sameAs:e.newConfig.startQuerySameAs},H=(r,t,s)=>{e.queryIsRunning=r},N=()=>{window.removeEventListener("beforeunload",O),U.forEach(e=>e())},O=r=>{e.queryEditorIsDirty&&(r.returnValue=!0)},U=[];U.push(e.$on("autocompleteStatus",x)),U.push(e.$on("$locationChangeStart",(r,s)=>{if(e.queryEditorIsDirty){r.preventDefault();((e,r,t,s)=>{I.openSimpleModal({title:e,message:r,warning:!0}).result.then((function(){angular.isFunction(t)&&t()}),(function(){angular.isFunction(s)&&s()}))})(w.instant("common.confirm"),w.instant("visual.config.warning.unsaved.changes"),()=>{N();const e=t.absUrl().length-t.url().length,r=s.substring(e);t.path(r)})}else N()})),U.push(e.$on("$destroy",N)),U.push(e.$watch(e.getActiveRepositoryObject,()=>{(e.newConfig.isStartMode(n.StartMode.QUERY)||e.page>1)&&(e.viewMode="yasr",M().then(E))})),window.addEventListener("beforeunload",O),e.$watch("newConfig.startMode",e=>{e===n.StartMode.QUERY&&A()}),e.$watch("page",r=>{(e.newConfig.isStartMode(n.StartMode.QUERY)||r>1)&&(e.showEditor(),A())}),p.getPrefixes(_).then(r=>(r=>{const t=e.$watch((function(){return e.getActiveRepositoryObject()}),(function(a){if(a){e.canEditActiveRepo=e.canWriteActiveRepo();const a=angular.extend({},$,{prefixes:r,yasqeMode:e.canWriteActiveRepo()?s.YasqeMode.WRITE:s.YasqeMode.PROTECTED});e.yasguiConfig=a,t()}}))})(r)).finally(()=>H(!1)),C?(e.isUpdate=!0,h.getConfig(C).then((function(r){e.newConfig=r,Y()})).catch(e=>{u.error(getError(e),w.instant("created.connector",{name:C}))})):(e.isUpdate=!1,Y()),e.getActiveRepository()&&(H(!0,w.instant("common.refreshing.namespaces"),w.instant("common.extra.message")),p.getPrefixes(p.getActiveRepository()).then(r=>{e.namespaces=r}).catch((function(r){e.repositoryError=getError(r)})).finally((function(){H(!1)})))}angular.module("graphdb.framework.graphexplore.controllers.graphviz.config",["graphdb.framework.utils.notifications","graphdb.framework.utils.localstorageadapter"]).controller("GraphConfigCtrl",u),u.$inject=["$scope","$timeout","$location","toastr","$repositories","SparqlRestService","$filter","GraphConfigRestService","AutocompleteRestService","$routeParams","Notifications","RDF4JRepositoriesRestService","LocalStorageAdapter","LSKeys","$translate","ModalService"]},61:function(e,r,t){"use strict";t.r(r),t.d(r,"RenderingMode",(function(){return s}));const s={YASGUI:"mode-yasgui",YASQE:"mode-yasqe",YASR:"mode-yasr"}},62:function(e,r,t){"use strict";t.r(r),t.d(r,"YasqeMode",(function(){return s}));const s={WRITE:"WRITE",READ:"READ",PROTECTED:"PROTECTED"}},64:function(e,r){function t(e,r){return{showToastMessageWithDelay:function(t){return new Promise(s=>{e.success(r.instant(t)),setTimeout(s,200)})}}}angular.module("graphdb.framework.utils.notifications",[]).factory("Notifications",t),t.$inject=["toastr","$translate"]},73:function(e,r,t){"use strict";t.r(r),t.d(r,"StartMode",(function(){return s})),t.d(r,"GraphsConfig",(function(){return a}));const s={QUERY:"query",NODE:"node",SEARCH:"search"};class a{constructor(e,r,t=s.SEARCH,a,i=!0,n=!0,o,u,p,c,d,h,g,y,l,Q,f,m,w,I,R){this._id=e,this._name=r,this._startMode=t,this._owner=a,this._startQueryIncludeInferred=i,this._startQuerySameAs=n,this._startGraphQuery=o,this._startIRI=u,this._startIRILabel=p,this._expandQuery=c,this._resourceQuery=d,this._predicateLabelQuery=h,this._resourcePropertiesQuery=g,this._shared=y,this._description=l,this._hint=Q,this._startGraphQueryDescription=f,this._expandQueryDescription=m,this._resourceQueryDescription=w,this._predicateLabelQueryDescription=I,this._resourcePropertiesQueryDescription=R}isStartMode(e){return this.startMode===e}isDefaultGraph(){return"Minimal"===this.name||"Advanced"===this.name}getPropertyDescription(e){return this[e+"Description"]}getQueryType(e){let r;return this.isStartMode(s.QUERY)&&1===e?r=this.startGraphQuery:2===e?r=this.expandQuery:3===e?r=this.resourceQuery:4===e?r=this.predicateLabelQuery:5===e&&(r=this.resourcePropertiesQuery),r||""}updateModel(e,r){return this.isStartMode(s.QUERY)&&1===r?this.startGraphQuery=e:2===r?this.expandQuery=e:3===r?this.resourceQuery=e:4===r?this.predicateLabelQuery=e:5===r&&(this.resourcePropertiesQuery=e),this}toSavePayload(){return{id:this.id,name:this.name,startMode:this.startMode,owner:this.owner,startQueryIncludeInferred:this.startQueryIncludeInferred,startQuerySameAs:this.startQuerySameAs,startGraphQuery:this.startGraphQuery,startIRI:this.startIRI,startIRILabel:this.startIRILabel,expandQuery:this.expandQuery,resourceQuery:this.resourceQuery,predicateLabelQuery:this.predicateLabelQuery,resourcePropertiesQuery:this.resourcePropertiesQuery,shared:this.shared,description:this.description,hint:this.hint}}get id(){return this._id}set id(e){this._id=e}get name(){return this._name}set name(e){this._name=e}get startMode(){return this._startMode}set startMode(e){this._startMode=e}get owner(){return this._owner}set owner(e){this._owner=e}get startQueryIncludeInferred(){return this._startQueryIncludeInferred}set startQueryIncludeInferred(e){this._startQueryIncludeInferred=e}get startQuerySameAs(){return this._startQuerySameAs}set startQuerySameAs(e){this._startQuerySameAs=e}get startGraphQuery(){return this._startGraphQuery}set startGraphQuery(e){this._startGraphQuery=e}get startIRI(){return this._startIRI}set startIRI(e){this._startIRI=e}get startIRILabel(){return this._startIRILabel}set startIRILabel(e){this._startIRILabel=e}get expandQuery(){return this._expandQuery}set expandQuery(e){this._expandQuery=e}get resourceQuery(){return this._resourceQuery}set resourceQuery(e){this._resourceQuery=e}get predicateLabelQuery(){return this._predicateLabelQuery}set predicateLabelQuery(e){this._predicateLabelQuery=e}get resourcePropertiesQuery(){return this._resourcePropertiesQuery}set resourcePropertiesQuery(e){this._resourcePropertiesQuery=e}get shared(){return this._shared}set shared(e){this._shared=e}get description(){return this._description}set description(e){this._description=e}get hint(){return this._hint}set hint(e){this._hint=e}get startGraphQueryDescription(){return this._startGraphQueryDescription}set startGraphQueryDescription(e){this._startGraphQueryDescription=e}get expandQueryDescription(){return this._expandQueryDescription}set expandQueryDescription(e){this._expandQueryDescription=e}get resourceQueryDescription(){return this._resourceQueryDescription}set resourceQueryDescription(e){this._resourceQueryDescription=e}get predicateLabelQueryDescription(){return this._predicateLabelQueryDescription}set predicateLabelQueryDescription(e){this._predicateLabelQueryDescription=e}get resourcePropertiesQueryDescription(){return this._resourcePropertiesQueryDescription}set resourcePropertiesQueryDescription(e){this._resourcePropertiesQueryDescription=e}}},93:function(e,r,t){"use strict";t.r(r),t.d(r,"mapGraphsConfigResponseToModel",(function(){return a})),t.d(r,"mapGraphConfigSampleToGraphConfig",(function(){return i})),t.d(r,"mapGraphConfigSamplesToGraphConfigs",(function(){return n}));var s=t(73);const a=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint),i=e=>new s.GraphsConfig(e.id,e.name,e.startMode,e.owner,e.startQueryIncludeInferred,e.startQuerySameAs,e.startGraphQuery,e.startIRI,e.startIRILabel,e.expandQuery,e.resourceQuery,e.predicateLabelQuery,e.resourcePropertiesQuery,e.shared,e.description,e.hint,e.startGraphQueryDescription,e.expandQueryDescription,e.resourceQueryDescription,e.predicateLabelQueryDescription,e.resourcePropertiesQueryDescription),n=e=>e.map(e=>i(e))}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[51,85],{103:function(t,e,s){"use strict";s.r(e),s.d(e,"ACListModel",(function(){return r})),s.d(e,"ACRuleModel",(function(){return i})),s.d(e,"StatementACRuleModel",(function(){return c})),s.d(e,"PluginACRuleModel",(function(){return n})),s.d(e,"ClearGraphACRuleModel",(function(){return l})),s.d(e,"SystemACRuleModel",(function(){return u})),s.d(e,"ACL_POLICY",(function(){return p})),s.d(e,"ACL_OPERATION",(function(){return h})),s.d(e,"ACL_SCOPE",(function(){return _})),s.d(e,"DEFAULT_CONTEXT_VALUES",(function(){return R})),s.d(e,"DEFAULT_URI_VALUES",(function(){return d}));var o=s(63);class r{constructor(t=[]){this._aclRules=new Map,t.forEach(t=>{const e=t.scope;this._aclRules.has(e)||this._aclRules.set(e,[]),this._aclRules.get(e).push(t)})}size(t){return this._aclRules.get(t)&&this._aclRules.get(t).length}appendNewRule(t,e,s,o,r,i,c,n,l){const u=a.createRule(t,e,s,o,r,i,c,n,l);this._aclRules.has(t)||this._aclRules.set(t,[]),this._aclRules.get(t).push(u)}addRule(t,e){const s=this._aclRules.get(t);s?s.splice(e,0,a.createRule(t)):this._aclRules.set(t,[a.createRule(t)])}removeRule(t,e){const s=this._aclRules.get(t);s&&s.splice(e,1)}replaceRule(t,e,s){const o=this._aclRules.get(t);o&&o.splice(e,1,s)}getRule(t,e){const s=this._aclRules.get(t);return s?s[e]:null}isRuleDuplicated(t,e){const s=this.getRule(t,e);return!!s&&this._aclRules.get(t).some((t,r)=>r!==e&&Object(o.isEqual)(s,t))}getRuleCopy(t,e){const s=this.getRule(t,e);return a.createRule(s.scope,s.policy,s.role,s.operation,s.subject,s.predicate,s.object,s.context,s.plugin)}moveUp(t,e){const s=this._aclRules.get(t),o=s[e-1];s[e-1]=s[e],s[e]=o}moveDown(t,e){const s=this._aclRules.get(t),o=s[e+1];s[e+1]=s[e],s[e]=o}toJSON(){const t=[];return this._aclRules.forEach(e=>{e.forEach(e=>t.push(e.toJSON()))}),t}get aclRules(){return this._aclRules}set aclRules(t){this._aclRules=t}getRulesByScope(t){return this._aclRules.get(t)||[]}getRuleKeysByScope(t){return Object.keys(this.getRulesByScope(t)[0]||{})}}class i{constructor(t,e,s=p.ALLOW){this._scope=t,this._role=e,this._policy=s}get scope(){return this._scope}set scope(t){this._scope=t}get roleWithoutCustomPrefix(){return this._role.startsWith("!")?this._role.replace("CUSTOM_"," "):this._role.replace("CUSTOM_","")}get role(){return this._role}set role(t){this._role=t}get policy(){return this._policy}set policy(t){this._policy=t}toJSON(){}}class c extends i{constructor(t,e,s,o,r,i,c){super(_.STATEMENT,t,e),this._subject=s||"*",this._predicate=o||"*",this._object=r||"*",this._context=i||"*",this._operation=c||h.ALL}get subject(){return this._subject}set subject(t){this._subject=t}get predicate(){return this._predicate}set predicate(t){this._predicate=t}get object(){return this._object}set object(t){this._object=t}get context(){return this._context}set context(t){this._context=t}get operation(){return this._operation}set operation(t){this._operation=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,subject:this.subject,predicate:this.predicate,object:this.object,context:this.context}}}class n extends i{constructor(t,e,s,o){super(_.PLUGIN,t,e),this._plugin=s||"*",this._operation=o||h.ALL}get plugin(){return this._plugin}set plugin(t){this._plugin=t}get operation(){return this._operation}set operation(t){this._operation=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,plugin:this.plugin}}}class l extends i{constructor(t,e,s,o){super(_.CLEAR_GRAPH,t,e),this._context=s||"*",this._defaultResults=o||["*","default","custom"]}get context(){return this._context}set context(t){this._context=t}get defaultResults(){return this._defaultResults}set defaultResults(t){this._defaultResults=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,context:this.context}}}class u extends i{constructor(t,e,s){super(_.SYSTEM,t,e),this._operation=s||h.ALL}get operation(){return this._operation}set operation(t){this._operation=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation}}}class a{static createRule(t,e,s,o,r,i,a,p,h){switch(t){case _.STATEMENT:return new c(s,e,r,i,a,p,o);case _.PLUGIN:return new n(s,e,h,o);case _.CLEAR_GRAPH:return new l(s,e,p);case _.SYSTEM:return new u(s,e,o);default:throw new Error("Invalid scope: "+t+" provided")}}}const p={ALLOW:"allow",DENY:"deny"},h={READ:"read",WRITE:"write",ALL:"*"},_={STATEMENT:"statement",CLEAR_GRAPH:"clear_graph",PLUGIN:"plugin",SYSTEM:"system"},R=["*","default","named"],d=["*"]},129:function(t,e,s){"use strict";s.r(e),s.d(e,"mapAclRulesResponse",(function(){return r}));var o=s(103);const r=t=>{const e=new o.ACListModel;return t&&t.data&&t.data.forEach(t=>{e.appendNewRule(t.scope,t.policy,t.role,t.operation,t.subject,t.predicate,t.object,t.context,t.plugin)}),e}}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[85],{103:function(t,e,s){"use strict";s.r(e),s.d(e,"ACListModel",(function(){return r})),s.d(e,"ACRuleModel",(function(){return i})),s.d(e,"StatementACRuleModel",(function(){return c})),s.d(e,"PluginACRuleModel",(function(){return n})),s.d(e,"ClearGraphACRuleModel",(function(){return l})),s.d(e,"SystemACRuleModel",(function(){return u})),s.d(e,"ACL_POLICY",(function(){return h})),s.d(e,"ACL_OPERATION",(function(){return p})),s.d(e,"ACL_SCOPE",(function(){return _})),s.d(e,"DEFAULT_CONTEXT_VALUES",(function(){return R})),s.d(e,"DEFAULT_URI_VALUES",(function(){return d}));var o=s(63);class r{constructor(t=[]){this._aclRules=new Map,t.forEach(t=>{const e=t.scope;this._aclRules.has(e)||this._aclRules.set(e,[]),this._aclRules.get(e).push(t)})}size(t){return this._aclRules.get(t)&&this._aclRules.get(t).length}appendNewRule(t,e,s,o,r,i,c,n,l){const u=a.createRule(t,e,s,o,r,i,c,n,l);this._aclRules.has(t)||this._aclRules.set(t,[]),this._aclRules.get(t).push(u)}addRule(t,e){const s=this._aclRules.get(t);s?s.splice(e,0,a.createRule(t)):this._aclRules.set(t,[a.createRule(t)])}removeRule(t,e){const s=this._aclRules.get(t);s&&s.splice(e,1)}replaceRule(t,e,s){const o=this._aclRules.get(t);o&&o.splice(e,1,s)}getRule(t,e){const s=this._aclRules.get(t);return s?s[e]:null}isRuleDuplicated(t,e){const s=this.getRule(t,e);return!!s&&this._aclRules.get(t).some((t,r)=>r!==e&&Object(o.isEqual)(s,t))}getRuleCopy(t,e){const s=this.getRule(t,e);return a.createRule(s.scope,s.policy,s.role,s.operation,s.subject,s.predicate,s.object,s.context,s.plugin)}moveUp(t,e){const s=this._aclRules.get(t),o=s[e-1];s[e-1]=s[e],s[e]=o}moveDown(t,e){const s=this._aclRules.get(t),o=s[e+1];s[e+1]=s[e],s[e]=o}toJSON(){const t=[];return this._aclRules.forEach(e=>{e.forEach(e=>t.push(e.toJSON()))}),t}get aclRules(){return this._aclRules}set aclRules(t){this._aclRules=t}getRulesByScope(t){return this._aclRules.get(t)||[]}getRuleKeysByScope(t){return Object.keys(this.getRulesByScope(t)[0]||{})}}class i{constructor(t,e,s=h.ALLOW){this._scope=t,this._role=e,this._policy=s}get scope(){return this._scope}set scope(t){this._scope=t}get roleWithoutCustomPrefix(){return this._role.startsWith("!")?this._role.replace("CUSTOM_"," "):this._role.replace("CUSTOM_","")}get role(){return this._role}set role(t){this._role=t}get policy(){return this._policy}set policy(t){this._policy=t}toJSON(){}}class c extends i{constructor(t,e,s,o,r,i,c){super(_.STATEMENT,t,e),this._subject=s||"*",this._predicate=o||"*",this._object=r||"*",this._context=i||"*",this._operation=c||p.ALL}get subject(){return this._subject}set subject(t){this._subject=t}get predicate(){return this._predicate}set predicate(t){this._predicate=t}get object(){return this._object}set object(t){this._object=t}get context(){return this._context}set context(t){this._context=t}get operation(){return this._operation}set operation(t){this._operation=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,subject:this.subject,predicate:this.predicate,object:this.object,context:this.context}}}class n extends i{constructor(t,e,s,o){super(_.PLUGIN,t,e),this._plugin=s||"*",this._operation=o||p.ALL}get plugin(){return this._plugin}set plugin(t){this._plugin=t}get operation(){return this._operation}set operation(t){this._operation=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation,plugin:this.plugin}}}class l extends i{constructor(t,e,s,o){super(_.CLEAR_GRAPH,t,e),this._context=s||"*",this._defaultResults=o||["*","default","custom"]}get context(){return this._context}set context(t){this._context=t}get defaultResults(){return this._defaultResults}set defaultResults(t){this._defaultResults=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,context:this.context}}}class u extends i{constructor(t,e,s){super(_.SYSTEM,t,e),this._operation=s||p.ALL}get operation(){return this._operation}set operation(t){this._operation=t}toJSON(){return{scope:this.scope,policy:this.policy,role:this.role,operation:this.operation}}}class a{static createRule(t,e,s,o,r,i,a,h,p){switch(t){case _.STATEMENT:return new c(s,e,r,i,a,h,o);case _.PLUGIN:return new n(s,e,p,o);case _.CLEAR_GRAPH:return new l(s,e,h);case _.SYSTEM:return new u(s,e,o);default:throw new Error("Invalid scope: "+t+" provided")}}}const h={ALLOW:"allow",DENY:"deny"},p={READ:"read",WRITE:"write",ALL:"*"},_={STATEMENT:"statement",CLEAR_GRAPH:"clear_graph",PLUGIN:"plugin",SYSTEM:"system"},R=["*","default","named"],d=["*"]}}]);