graphdb-workbench 2.0.0-TR8 → 2.0.0-TR9

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 (155) hide show
  1. package/README.md +6 -1
  2. package/dist/114.282a327015f8ae87918b.bundle.js +1 -1
  3. package/dist/114.282a327015f8ae87918b.bundle.js.map +1 -1
  4. package/dist/{12.60db051e76264d3f95b2.bundle.js → 12.5d4da897bdd91e8808fa.bundle.js} +2 -2
  5. package/dist/12.5d4da897bdd91e8808fa.bundle.js.map +1 -0
  6. package/dist/13.f62fa8acc6e68826e07a.bundle.js +4 -0
  7. package/dist/13.f62fa8acc6e68826e07a.bundle.js.map +1 -0
  8. package/dist/{14.7e9059b5c9c57d952e47.bundle.js → 14.349458c1675f763995a5.bundle.js} +2 -2
  9. package/dist/{14.7e9059b5c9c57d952e47.bundle.js.map → 14.349458c1675f763995a5.bundle.js.map} +1 -1
  10. package/dist/{15.02ad5872995df6d6692a.bundle.js → 15.ebce70c05fd90026747b.bundle.js} +2 -2
  11. package/dist/{15.02ad5872995df6d6692a.bundle.js.map → 15.ebce70c05fd90026747b.bundle.js.map} +1 -1
  12. package/dist/{17.8bfbe7d08efa149bdb00.bundle.js → 17.f01afdf3b3892d73a3fe.bundle.js} +2 -2
  13. package/dist/{17.8bfbe7d08efa149bdb00.bundle.js.map → 17.f01afdf3b3892d73a3fe.bundle.js.map} +1 -1
  14. package/dist/{18.5514f95535bdd2a71d6e.bundle.js → 18.10f65755b64a6534289e.bundle.js} +2 -2
  15. package/dist/{18.5514f95535bdd2a71d6e.bundle.js.map → 18.10f65755b64a6534289e.bundle.js.map} +1 -1
  16. package/dist/{21.e75213686a349ae7df89.bundle.js → 21.b6bf0d54a846411501c7.bundle.js} +2 -2
  17. package/dist/{21.e75213686a349ae7df89.bundle.js.map → 21.b6bf0d54a846411501c7.bundle.js.map} +1 -1
  18. package/dist/22.e8167eba683605211409.bundle.js +2 -0
  19. package/dist/22.e8167eba683605211409.bundle.js.map +1 -0
  20. package/dist/{23.32f2701680565c5d107b.bundle.js → 23.e3ca5b7bb2cee4f9467f.bundle.js} +3 -3
  21. package/dist/{23.32f2701680565c5d107b.bundle.js.map → 23.e3ca5b7bb2cee4f9467f.bundle.js.map} +1 -1
  22. package/dist/{24.8dd957168a8be963b393.bundle.js → 24.d5ea0f435b896dc12709.bundle.js} +2 -2
  23. package/dist/{24.8dd957168a8be963b393.bundle.js.map → 24.d5ea0f435b896dc12709.bundle.js.map} +1 -1
  24. package/dist/{25.cbe8e59c80330ff6e706.bundle.js → 25.5b3feb79a7be0ca1f4ad.bundle.js} +2 -2
  25. package/dist/{25.cbe8e59c80330ff6e706.bundle.js.map → 25.5b3feb79a7be0ca1f4ad.bundle.js.map} +1 -1
  26. package/dist/26.c4983d9f3009f41beb11.bundle.js +2 -0
  27. package/dist/26.c4983d9f3009f41beb11.bundle.js.map +1 -0
  28. package/dist/{26.67154910989ca1f563ec.bundle.js → 27.04085d1d15db39ca4a36.bundle.js} +2 -2
  29. package/dist/{26.67154910989ca1f563ec.bundle.js.map → 27.04085d1d15db39ca4a36.bundle.js.map} +1 -1
  30. package/dist/{28.b1c15ce7633c501836c5.bundle.js → 28.57b84065ebe40bb45f72.bundle.js} +2 -2
  31. package/dist/{28.b1c15ce7633c501836c5.bundle.js.map → 28.57b84065ebe40bb45f72.bundle.js.map} +1 -1
  32. package/dist/{29.66259b8a21bbb5431a06.bundle.js → 29.959ae6b366d15d0ddea9.bundle.js} +2 -2
  33. package/dist/{29.66259b8a21bbb5431a06.bundle.js.map → 29.959ae6b366d15d0ddea9.bundle.js.map} +1 -1
  34. package/dist/{3.9eb2c7cced9d8b971c99.bundle.js → 3.26d967229917c7c5cdfb.bundle.js} +2 -2
  35. package/dist/{3.9eb2c7cced9d8b971c99.bundle.js.map → 3.26d967229917c7c5cdfb.bundle.js.map} +1 -1
  36. package/dist/{31.d810abed46d7c73ade7f.bundle.js → 31.c808da656c9ee6b7e84e.bundle.js} +2 -2
  37. package/dist/{31.d810abed46d7c73ade7f.bundle.js.map → 31.c808da656c9ee6b7e84e.bundle.js.map} +1 -1
  38. package/dist/{32.4f4c8e24d97a9d315335.bundle.js → 32.92b02260015995b4f777.bundle.js} +2 -2
  39. package/dist/{32.4f4c8e24d97a9d315335.bundle.js.map → 32.92b02260015995b4f777.bundle.js.map} +1 -1
  40. package/dist/{33.c670eeb3a325251e141f.bundle.js → 33.479162c943ca9a1982aa.bundle.js} +2 -2
  41. package/dist/{33.c670eeb3a325251e141f.bundle.js.map → 33.479162c943ca9a1982aa.bundle.js.map} +1 -1
  42. package/dist/{35.b9183a8ffba2bbd8daa1.bundle.js → 35.9c81c96cc1621f9468aa.bundle.js} +2 -2
  43. package/dist/{35.b9183a8ffba2bbd8daa1.bundle.js.map → 35.9c81c96cc1621f9468aa.bundle.js.map} +1 -1
  44. package/dist/{36.d444f7ad7724d126da1c.bundle.js → 36.cee947247d32cdcec00e.bundle.js} +2 -2
  45. package/dist/{36.d444f7ad7724d126da1c.bundle.js.map → 36.cee947247d32cdcec00e.bundle.js.map} +1 -1
  46. package/dist/{37.e82ed70c9f1ccac1fa36.bundle.js → 37.42e443af5752a63a28fe.bundle.js} +2 -2
  47. package/dist/{37.e82ed70c9f1ccac1fa36.bundle.js.map → 37.42e443af5752a63a28fe.bundle.js.map} +1 -1
  48. package/dist/{38.93c5a81548a3294efd9d.bundle.js → 38.5fff5c171cdd2563aad1.bundle.js} +2 -2
  49. package/dist/{38.93c5a81548a3294efd9d.bundle.js.map → 38.5fff5c171cdd2563aad1.bundle.js.map} +1 -1
  50. package/dist/{39.30dddbc6461137994eb4.bundle.js → 39.91c49550b6e2d11104fa.bundle.js} +2 -2
  51. package/dist/{39.30dddbc6461137994eb4.bundle.js.map → 39.91c49550b6e2d11104fa.bundle.js.map} +1 -1
  52. package/dist/4.786e6f1de67e5c6289a3.bundle.js +2 -0
  53. package/dist/4.786e6f1de67e5c6289a3.bundle.js.map +1 -0
  54. package/dist/{40.ae6db480b8323937451c.bundle.js → 40.a7e0220eb0c8a125abde.bundle.js} +2 -2
  55. package/dist/{40.ae6db480b8323937451c.bundle.js.map → 40.a7e0220eb0c8a125abde.bundle.js.map} +1 -1
  56. package/dist/41.1258b9502ba9383894d7.bundle.js +2 -0
  57. package/dist/{41.ba8cb2fb7f46ccb2ab28.bundle.js.map → 41.1258b9502ba9383894d7.bundle.js.map} +1 -1
  58. package/dist/{43.8d096939ee87946076e0.bundle.js → 43.86f9220f4f79feec5b27.bundle.js} +2 -2
  59. package/dist/{43.8d096939ee87946076e0.bundle.js.map → 43.86f9220f4f79feec5b27.bundle.js.map} +1 -1
  60. package/dist/{47.92a64d48c14c1ae82934.bundle.js → 47.fca0edd51becf34c06b7.bundle.js} +2 -2
  61. package/dist/{47.92a64d48c14c1ae82934.bundle.js.map → 47.fca0edd51becf34c06b7.bundle.js.map} +1 -1
  62. package/dist/{48.4b57a948edab2d3b9c55.bundle.js → 48.e495edf3c48e1b2fc052.bundle.js} +2 -2
  63. package/dist/{48.4b57a948edab2d3b9c55.bundle.js.map → 48.e495edf3c48e1b2fc052.bundle.js.map} +1 -1
  64. package/dist/{53.4b8ed1b79c1c20cdadd4.bundle.js → 53.c29678970b0cb8aa4b47.bundle.js} +2 -2
  65. package/dist/{53.4b8ed1b79c1c20cdadd4.bundle.js.map → 53.c29678970b0cb8aa4b47.bundle.js.map} +1 -1
  66. package/dist/{55.751acc0e54255fa3ace7.bundle.js → 55.427172af3ba7612f747a.bundle.js} +2 -2
  67. package/dist/{55.751acc0e54255fa3ace7.bundle.js.map → 55.427172af3ba7612f747a.bundle.js.map} +1 -1
  68. package/dist/{57.677c1eebf6a003639fff.bundle.js → 57.41b09f5fa3ee623aab83.bundle.js} +2 -2
  69. package/dist/{57.677c1eebf6a003639fff.bundle.js.map → 57.41b09f5fa3ee623aab83.bundle.js.map} +1 -1
  70. package/dist/{58.2c460e480eefb1a02aea.bundle.js → 58.ce5a29dded68f58c53b4.bundle.js} +2 -2
  71. package/dist/{58.2c460e480eefb1a02aea.bundle.js.map → 58.ce5a29dded68f58c53b4.bundle.js.map} +1 -1
  72. package/dist/{59.b8e9155530acba27a6fa.bundle.js → 59.10efdeff3a8ef9e5733d.bundle.js} +2 -2
  73. package/dist/{59.b8e9155530acba27a6fa.bundle.js.map → 59.10efdeff3a8ef9e5733d.bundle.js.map} +1 -1
  74. package/dist/{60.27e731a670680751538c.bundle.js → 60.97fb695857f6241ae612.bundle.js} +2 -2
  75. package/dist/{60.27e731a670680751538c.bundle.js.map → 60.97fb695857f6241ae612.bundle.js.map} +1 -1
  76. package/dist/{61.fce8a2436742c2e20032.bundle.js → 61.5d71ec3fe0cda230482b.bundle.js} +2 -2
  77. package/dist/{61.fce8a2436742c2e20032.bundle.js.map → 61.5d71ec3fe0cda230482b.bundle.js.map} +1 -1
  78. package/dist/{62.9e101a1894ee0f9a48be.bundle.js → 62.d53d104f74f9fbdacb35.bundle.js} +2 -2
  79. package/dist/{62.9e101a1894ee0f9a48be.bundle.js.map → 62.d53d104f74f9fbdacb35.bundle.js.map} +1 -1
  80. package/dist/{63.3ffdfd6f35fe62ea729c.bundle.js → 63.46514dd9cf756bd0e831.bundle.js} +2 -2
  81. package/dist/{63.3ffdfd6f35fe62ea729c.bundle.js.map → 63.46514dd9cf756bd0e831.bundle.js.map} +1 -1
  82. package/dist/{65.96a1f2f3c83a29e2c6c3.bundle.js → 65.401f44aaddb8aec6be1e.bundle.js} +2 -2
  83. package/dist/{65.96a1f2f3c83a29e2c6c3.bundle.js.map → 65.401f44aaddb8aec6be1e.bundle.js.map} +1 -1
  84. package/dist/{66.cf37216fb6f8e53cef2b.bundle.js → 66.7a1e4093247d23b65387.bundle.js} +2 -2
  85. package/dist/{66.cf37216fb6f8e53cef2b.bundle.js.map → 66.7a1e4093247d23b65387.bundle.js.map} +1 -1
  86. package/dist/{69.60ff11762016829be80d.bundle.js → 69.1944a1afebe9115c9262.bundle.js} +2 -2
  87. package/dist/{69.60ff11762016829be80d.bundle.js.map → 69.1944a1afebe9115c9262.bundle.js.map} +1 -1
  88. package/dist/{70.f86421bf02a9bfda5b95.bundle.js → 70.84500509fe2b0d19ab93.bundle.js} +2 -2
  89. package/dist/{70.f86421bf02a9bfda5b95.bundle.js.map → 70.84500509fe2b0d19ab93.bundle.js.map} +1 -1
  90. package/dist/{76.fa9e5d02f7e1367b9b29.bundle.js → 76.2fa18e115678c4e24682.bundle.js} +2 -2
  91. package/dist/{76.fa9e5d02f7e1367b9b29.bundle.js.map → 76.2fa18e115678c4e24682.bundle.js.map} +1 -1
  92. package/dist/{8.66013fc0c58811b51903.bundle.js → 8.7209929899c18f8a4580.bundle.js} +2 -2
  93. package/dist/{8.66013fc0c58811b51903.bundle.js.map → 8.7209929899c18f8a4580.bundle.js.map} +1 -1
  94. package/dist/{80.37504cf0c1e5ad897478.bundle.js → 80.83e56da7d7a69fc34eed.bundle.js} +2 -2
  95. package/dist/{80.37504cf0c1e5ad897478.bundle.js.map → 80.83e56da7d7a69fc34eed.bundle.js.map} +1 -1
  96. package/dist/{82.9b4d4dc326055aa47e04.bundle.js → 82.74d50036c210cb10b7f5.bundle.js} +2 -2
  97. package/dist/{82.9b4d4dc326055aa47e04.bundle.js.map → 82.74d50036c210cb10b7f5.bundle.js.map} +1 -1
  98. package/dist/{84.fab513b88806deb0981a.bundle.js → 84.7f42dd9d7dc01baaf465.bundle.js} +2 -2
  99. package/dist/{84.fab513b88806deb0981a.bundle.js.map → 84.7f42dd9d7dc01baaf465.bundle.js.map} +1 -1
  100. package/dist/{86.b319a8b9fcabecd7a6c7.bundle.js → 86.581cbc54b6c6b6ea9f19.bundle.js} +2 -2
  101. package/dist/{86.b319a8b9fcabecd7a6c7.bundle.js.map → 86.581cbc54b6c6b6ea9f19.bundle.js.map} +1 -1
  102. package/dist/{87.765567c0cbe89cbdb03c.bundle.js → 87.3606797303ead8dc2879.bundle.js} +2 -2
  103. package/dist/{87.765567c0cbe89cbdb03c.bundle.js.map → 87.3606797303ead8dc2879.bundle.js.map} +1 -1
  104. package/dist/{88.50c46652774325bffad3.bundle.js → 88.f5b8f83e57c9bea3c137.bundle.js} +2 -2
  105. package/dist/{88.50c46652774325bffad3.bundle.js.map → 88.f5b8f83e57c9bea3c137.bundle.js.map} +1 -1
  106. package/dist/{89.91c58e1902b0f444b068.bundle.js → 89.f9b4c4ddff2c0b5b70f7.bundle.js} +2 -2
  107. package/dist/{89.91c58e1902b0f444b068.bundle.js.map → 89.f9b4c4ddff2c0b5b70f7.bundle.js.map} +1 -1
  108. package/dist/{9.16a945b967e9a52bf535.bundle.js → 9.6a95a5c1eec963050422.bundle.js} +2 -2
  109. package/dist/{9.16a945b967e9a52bf535.bundle.js.map → 9.6a95a5c1eec963050422.bundle.js.map} +1 -1
  110. package/dist/{90.e12e77898d6341e59d8f.bundle.js → 90.4d42ba583fbc1d63d3d2.bundle.js} +2 -2
  111. package/dist/{90.e12e77898d6341e59d8f.bundle.js.map → 90.4d42ba583fbc1d63d3d2.bundle.js.map} +1 -1
  112. package/dist/95.1f83b03f48326a6cec45.bundle.js +2 -0
  113. package/dist/{95.decfcd3477dee353025b.bundle.js.map → 95.1f83b03f48326a6cec45.bundle.js.map} +1 -1
  114. package/dist/{bundle.e787556c9b592367c35c.bundle.js → bundle.1a982e7b3e2d9d06a802.bundle.js} +5 -5
  115. package/dist/{bundle.e787556c9b592367c35c.bundle.js.map → bundle.1a982e7b3e2d9d06a802.bundle.js.map} +1 -1
  116. package/dist/index.html +3 -3
  117. package/dist/js/angular/core/directives/rdfresourcesearch/templates/rdfResourceSearchTemplate.html +1 -1
  118. package/dist/pages/autocomplete.html +1 -1
  119. package/dist/pages/choose-repository-type.html +1 -1
  120. package/dist/pages/clusterInfo.html +1 -1
  121. package/dist/pages/create-index.html +4 -4
  122. package/dist/pages/dependencies.html +1 -1
  123. package/dist/pages/domainRangeInfo.html +2 -2
  124. package/dist/pages/edit.html +1 -1
  125. package/dist/pages/explore.html +1 -1
  126. package/dist/pages/export.html +1 -1
  127. package/dist/pages/find.html +1 -1
  128. package/dist/pages/graph-config/saveGraphConfig.html +11 -11
  129. package/dist/pages/graphs-visualizations.html +14 -8
  130. package/dist/pages/import.html +1 -1
  131. package/dist/pages/jdbc-create.html +5 -5
  132. package/dist/pages/monitor/queries.html +1 -1
  133. package/dist/pages/monitor/resources.html +2 -2
  134. package/dist/pages/namespaces.html +2 -2
  135. package/dist/pages/rdfClassHierarchyInfo.html +7 -7
  136. package/dist/pages/rdfrank.html +2 -2
  137. package/dist/pages/repositories.html +2 -2
  138. package/dist/pages/repository.html +2 -2
  139. package/dist/pages/similarity-indexes.html +1 -1
  140. package/dist/pages/sparql-template-create.html +5 -5
  141. package/dist/pages/sparql.html +3 -3
  142. package/dist/pages/webapi.html +2 -2
  143. package/dist/res/swagger/index.html +25 -25
  144. package/package.json +1 -1
  145. package/dist/12.60db051e76264d3f95b2.bundle.js.map +0 -1
  146. package/dist/13.1419a81a33174950a34c.bundle.js +0 -4
  147. package/dist/13.1419a81a33174950a34c.bundle.js.map +0 -1
  148. package/dist/22.a3b52347055f1adac9ce.bundle.js +0 -2
  149. package/dist/22.a3b52347055f1adac9ce.bundle.js.map +0 -1
  150. package/dist/27.61bd08d0e926fe471a91.bundle.js +0 -2
  151. package/dist/27.61bd08d0e926fe471a91.bundle.js.map +0 -1
  152. package/dist/4.6a8bdb4c9048dd910bfd.bundle.js +0 -2
  153. package/dist/4.6a8bdb4c9048dd910bfd.bundle.js.map +0 -1
  154. package/dist/41.ba8cb2fb7f46ccb2ab28.bundle.js +0 -2
  155. package/dist/95.decfcd3477dee353025b.bundle.js +0 -2
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/resources/app.js","webpack:///./src/js/lib/nvd3/angular-nvd3.js"],"names":["angular","module","directive","utils","restrict","scope","data","options","api","events","config","link","element","attrs","defaultConfig","extended","visible","disabled","autorefresh","refreshDataOnly","deepWatchData","debounce","configureEvents","dispatch","forEach","value","key","undefined","_config","on","configureWrapper","name","_","deepExtend","enable","text","class","css","width","chart","textAlign","defaultWrapper","wrapElement","html","addClass","removeAttr","prepend","find","after","append","extend","refresh","updateWithOptions","update","clearElement","isDefined","nv","models","type","id","Math","random","toString","substr","indexOf","chartType","configure","updateWithData","classes","removeClass","configureStyles","addGraph","resizeHandler","windowResize","d3","select","remove","attr","height","datum","transition","duration","call","empty","clear","i","graphs","length","splice","tooltip","cleanup","getScope","$watch","newOptions","newData","oldData","newConfig","oldConfig","eventHandler","event","$on","e","factory","func","wait","immediate","timeout","context","this","args","arguments","later","apply","callNow","clearTimeout","setTimeout","dst","me","obj","constructor","Object"],"mappings":"2FAAA,0CAgBAA,QAAQC,OAAO,kCATC,CACZ,SACA,eACA,OACA,8CACA,+CACA,uC,mBCTJ,WAEI,aAEAD,QAAQC,OAAO,OAAQ,IAElBC,UAAU,OAAQ,CAAC,QAAS,SAASC,GAClC,MAAO,CACHC,SAAU,KACVC,MAAO,CACHC,KAAM,IACNC,QAAS,IACTC,IAAK,KACLC,OAAQ,KACRC,OAAQ,MAEZC,KAAM,SAASN,EAAOO,EAASC,GAC3B,IAAIC,EAAgB,CAChBC,UAAU,EACVC,SAAS,EACTC,UAAU,EACVC,aAAa,EACbC,iBAAiB,EACjBC,eAAe,EACfC,SAAU,IAiMd,SAASC,EAAgBC,EAAUhB,GAC3BgB,GAAYhB,GACZP,QAAQwB,QAAQD,GAAU,SAASE,EAAOC,QACjBC,IAAjBpB,EAAQmB,IAAuC,OAAjBnB,EAAQmB,GAClCrB,EAAMuB,QAAQb,WAAUR,EAAQmB,GAAOD,EAAMI,IAEhDN,EAASM,GAAGH,EAAM,KAAMnB,EAAQmB,OAOjD,SAASI,EAAiBC,GACtB,IAAIC,EAAI7B,EAAM8B,WAgClB,SAAwBD,GACpB,OAAQA,GACJ,IAAK,QAAS,MAAO,CACjBE,QAAQ,EACRC,KAAM,mBACNC,MAAO,KACPC,IAAK,CACDC,MAAOjC,EAAME,QAAQgC,MAAMD,MAAQ,K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ACbA,EAAUS,WAAWJ,EAAOP,GACxBS,GAASV,EAAKS,MAAML,EAASE,KAGzC5E,WAAY,SAASmF,GACjB,IAAIC,EAAKT,KAYT,OAXA5G,QAAQwB,QAAQsF,WAAW,SAASQ,GAC5BA,IAAQF,GACRpH,QAAQwB,QAAQ8F,GAAK,SAAS7F,EAAOC,GAC7B0F,EAAI1F,IAAQ0F,EAAI1F,GAAK6F,aAAeH,EAAI1F,GAAK6F,cAAgBC,OAC7DH,EAAGpF,WAAWmF,EAAI1F,GAAMD,GAExB2F,EAAI1F,GAAOD,QAKpB2F,OApX3B","file":"40.ae6db480b8323937451c.bundle.js","sourcesContent":["import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/resources/controllers';\nimport 'angular/core/services/repositories.service';\nimport 'd3/build/d3';\nimport 'lib/nvd3/angular-nvd3';\n\nconst modules = [\n 'toastr',\n 'ui.bootstrap',\n 'nvd3',\n 'graphdb.framework.jmx.resources.controllers',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.core.directives'\n];\n\nangular.module('graphdb.framework.jmx.resources', modules);\n\n","/**************************************************************************\n * AngularJS-nvD3, v1.0.0-beta; MIT License; 25/02/2015 22:27\n * http://krispo.github.io/angular-nvd3\n **************************************************************************/\n(function(){\n\n 'use strict';\n\n angular.module('nvd3', [])\n\n .directive('nvd3', ['utils', function(utils){\n return {\n restrict: 'AE',\n scope: {\n data: '=', //chart data, [required]\n options: '=', //chart options, according to nvd3 core api, [required]\n api: '=?', //directive global api, [optional]\n events: '=?', //global events that directive would subscribe to, [optional]\n config: '=?' //global directive configuration, [optional]\n },\n link: function(scope, element, attrs){\n var defaultConfig = {\n extended: false,\n visible: true,\n disabled: false,\n autorefresh: true,\n refreshDataOnly: false,\n deepWatchData: true,\n debounce: 10 // default 10ms, time silence to prevent refresh while multiple options changes at a time\n };\n\n //basic directive configuration\n scope._config = angular.extend(defaultConfig, scope.config);\n\n //directive global api\n scope.api = {\n // Fully refresh directive\n refresh: function(){\n scope.api.updateWithOptions(scope.options);\n },\n\n // Update chart layout (for example if container is resized)\n update: function() {\n scope.chart.update();\n },\n\n // Update chart with new options\n updateWithOptions: function(options){\n // Clearing\n scope.api.clearElement();\n\n // Exit if options are not yet bound\n if (angular.isDefined(options) === false) return;\n\n // Exit if chart is hidden\n if (!scope._config.visible) return;\n\n // Initialize chart with specific type\n scope.chart = nv.models[options.chart.type]();\n\n // Generate random chart ID\n scope.chart.id = Math.random().toString(36).substr(2, 15);\n\n angular.forEach(scope.chart, function(value, key){\n if ([\n 'options',\n '_options',\n '_inherited',\n '_d3options',\n 'state',\n 'id',\n 'resizeHandler'\n ].indexOf(key) >= 0);\n\n else if (key === 'dispatch') {\n if (options.chart[key] === undefined || options.chart[key] === null) {\n if (scope._config.extended) options.chart[key] = {};\n }\n configureEvents(scope.chart[key], options.chart[key]);\n }\n\n else if ([\n 'lines',\n 'lines1',\n 'lines2',\n 'bars',\n 'bars1',\n 'bars2',\n 'stack1',\n 'stack2',\n 'stacked',\n 'multibar',\n 'discretebar',\n 'pie',\n 'scatter',\n 'bullet',\n 'sparkline',\n 'legend',\n 'distX',\n 'distY',\n 'xAxis',\n 'x2Axis',\n 'yAxis',\n 'yAxis1',\n 'yAxis2',\n 'y1Axis',\n 'y2Axis',\n 'y3Axis',\n 'y4Axis',\n 'interactiveLayer',\n 'controls'\n ].indexOf(key) >= 0){\n if (options.chart[key] === undefined || options.chart[key] === null) {\n if (scope._config.extended) options.chart[key] = {};\n }\n configure(scope.chart[key], options.chart[key], options.chart.type);\n }\n\n //TODO: need to fix bug in nvd3\n else if ((key === 'xTickFormat' || key === 'yTickFormat') && options.chart.type === 'lineWithFocusChart');\n\n else if (options.chart[key] === undefined || options.chart[key] === null){\n if (scope._config.extended) options.chart[key] = value();\n }\n\n else scope.chart[key](options.chart[key]);\n });\n\n // Update with data\n scope.api.updateWithData(scope.data);\n\n // Configure wrappers\n if (options['title'] || scope._config.extended) configureWrapper('title');\n if (options['subtitle'] || scope._config.extended) configureWrapper('subtitle');\n if (options['caption'] || scope._config.extended) configureWrapper('caption');\n\n\n // Configure styles\n if (options['styles'] || scope._config.extended) configureStyles();\n\n nv.addGraph(function() {\n // Update the chart when window resizes\n scope.chart.resizeHandler = nv.utils.windowResize(function() { scope.chart.update(); });\n return scope.chart;\n }, options.chart['callback']);\n },\n\n // Update chart with new data\n updateWithData: function (data){\n if (data) {\n scope.options.chart['transitionDuration'] = +scope.options.chart['transitionDuration'] || 250;\n // remove whole svg element with old data\n d3.select(element[0]).select('svg').remove();\n\n // Select the current element to add <svg> element and to render the chart in\n d3.select(element[0]).append('svg')\n .attr('height', scope.options.chart.height)\n .attr('width', scope.options.chart.width || '100%')\n .datum(data)\n .transition().duration(scope.options.chart['transitionDuration'])\n .call(scope.chart);\n }\n },\n\n // Fully clear directive element\n clearElement: function (){\n element.find('.title').remove();\n element.find('.subtitle').remove();\n element.find('.caption').remove();\n element.empty();\n if (scope.chart) {\n // clear window resize event handler\n if (scope.chart.resizeHandler) scope.chart.resizeHandler.clear();\n\n // remove chart from nv.graph list\n for (var i = 0; i < nv.graphs.length; i++)\n if (nv.graphs[i].id === scope.chart.id) {\n nv.graphs.splice(i, 1);\n }\n }\n scope.chart = null;\n nv.tooltip.cleanup();\n },\n\n // Get full directive scope\n getScope: function(){ return scope; }\n };\n\n // Configure the chart model with the passed options\n function configure(chart, options, chartType){\n if (chart && options){\n angular.forEach(chart, function(value, key){\n if (key === 'dispatch') {\n if (options[key] === undefined || options[key] === null) {\n if (scope._config.extended) options[key] = {};\n }\n configureEvents(value, options[key]);\n }\n else if ([\n 'scatter',\n 'defined',\n 'options',\n 'axis',\n 'rangeBand',\n 'rangeBands',\n '_options',\n '_inherited',\n '_d3options',\n '_calls'\n ].indexOf(key) < 0){\n if (options[key] === undefined || options[key] === null){\n if (scope._config.extended) options[key] = value();\n }\n else chart[key](options[key]);\n }\n });\n }\n }\n\n // Subscribe to the chart events (contained in 'dispatch')\n // and pass eventHandler functions in the 'options' parameter\n function configureEvents(dispatch, options){\n if (dispatch && options){\n angular.forEach(dispatch, function(value, key){\n if (options[key] === undefined || options[key] === null){\n if (scope._config.extended) options[key] = value.on;\n }\n else dispatch.on(key + '._', options[key]);\n });\n }\n }\n\n // Configure 'title', 'subtitle', 'caption'.\n // nvd3 has no sufficient models for it yet.\n function configureWrapper(name){\n var _ = utils.deepExtend(defaultWrapper(name), scope.options[name] || {});\n\n if (scope._config.extended) scope.options[name] = _;\n\n var wrapElement = angular.element('<div></div>').html(_['html'] || '')\n .addClass(name).addClass(_.class)\n .removeAttr('style')\n .css(_.css);\n\n if (!_['html']) wrapElement.text(_.text);\n\n if (_.enable) {\n if (name === 'title') element.prepend(wrapElement);\n else if (name === 'subtitle') element.find('.title').after(wrapElement);\n else if (name === 'caption') element.append(wrapElement);\n }\n }\n\n // Add some styles to the whole directive element\n function configureStyles(){\n var _ = utils.deepExtend(defaultStyles(), scope.options['styles'] || {});\n\n if (scope._config.extended) scope.options['styles'] = _;\n\n angular.forEach(_.classes, function(value, key){\n value ? element.addClass(key) : element.removeClass(key);\n });\n\n element.removeAttr('style').css(_.css);\n }\n\n // Default values for 'title', 'subtitle', 'caption'\n function defaultWrapper(_){\n switch (_){\n case 'title': return {\n enable: false,\n text: 'Write Your Title',\n class: 'h4',\n css: {\n width: scope.options.chart.width + 'px',\n textAlign: 'center'\n }\n };\n case 'subtitle': return {\n enable: false,\n text: 'Write Your Subtitle',\n css: {\n width: scope.options.chart.width + 'px',\n textAlign: 'center'\n }\n };\n case 'caption': return {\n enable: false,\n text: 'Figure 1. Write Your Caption text.',\n css: {\n width: scope.options.chart.width + 'px',\n textAlign: 'center'\n }\n };\n }\n }\n\n // Default values for styles\n function defaultStyles(){\n return {\n classes: {\n 'with-3d-shadow': true,\n 'with-transitions': true,\n 'gallery': false\n },\n css: {}\n };\n }\n\n /* Event Handling */\n // Watching on options changing\n scope.$watch('options', utils.debounce(function(newOptions){\n if (!scope._config.disabled && scope._config.autorefresh) scope.api.refresh();\n }, scope._config.debounce, true), true);\n\n // Watching on data changing\n scope.$watch('data', function(newData, oldData){\n if (newData !== oldData && scope.chart){\n if (!scope._config.disabled && scope._config.autorefresh) {\n scope._config.refreshDataOnly ? scope.chart.update() : scope.api.refresh(); // if wanted to refresh data only, use chart.update method, otherwise use full refresh.\n }\n }\n }, scope._config.deepWatchData);\n\n // Watching on config changing\n scope.$watch('config', function(newConfig, oldConfig){\n if (newConfig !== oldConfig){\n scope._config = angular.extend(defaultConfig, newConfig);\n scope.api.refresh();\n }\n }, true);\n\n //subscribe on global events\n angular.forEach(scope.events, function(eventHandler, event){\n scope.$on(event, function(e){\n return eventHandler(e, scope);\n });\n });\n\n // remove completely when directive is destroyed\n element.on('$destroy', function () {\n scope.api.clearElement();\n });\n }\n };\n }])\n\n .factory('utils', function(){\n return {\n debounce: function(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n },\n deepExtend: function(dst){\n var me = this;\n angular.forEach(arguments, function(obj) {\n if (obj !== dst) {\n angular.forEach(obj, function(value, key) {\n if (dst[key] && dst[key].constructor && dst[key].constructor === Object) {\n me.deepExtend(dst[key], value);\n } else {\n dst[key] = value;\n }\n });\n }\n });\n return dst;\n }\n };\n });\n})();"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/resources/app.js","webpack:///./src/js/lib/nvd3/angular-nvd3.js"],"names":["angular","module","directive","utils","restrict","scope","data","options","api","events","config","link","element","attrs","defaultConfig","extended","visible","disabled","autorefresh","refreshDataOnly","deepWatchData","debounce","configureEvents","dispatch","forEach","value","key","undefined","_config","on","configureWrapper","name","_","deepExtend","enable","text","class","css","width","chart","textAlign","defaultWrapper","wrapElement","html","addClass","removeAttr","prepend","find","after","append","extend","refresh","updateWithOptions","update","clearElement","isDefined","nv","models","type","id","Math","random","toString","substr","indexOf","chartType","configure","updateWithData","classes","removeClass","configureStyles","addGraph","resizeHandler","windowResize","d3","select","remove","attr","height","datum","transition","duration","call","empty","clear","i","graphs","length","splice","tooltip","cleanup","getScope","$watch","newOptions","newData","oldData","newConfig","oldConfig","eventHandler","event","$on","e","factory","func","wait","immediate","timeout","context","this","args","arguments","later","apply","callNow","clearTimeout","setTimeout","dst","me","obj","constructor","Object"],"mappings":"2FAAA,0CAgBAA,QAAQC,OAAO,kCATC,CACZ,SACA,eACA,OACA,8CACA,+CACA,uC,mBCTJ,WAEI,aAEAD,QAAQC,OAAO,OAAQ,IAElBC,UAAU,OAAQ,CAAC,QAAS,SAASC,GAClC,MAAO,CACHC,SAAU,KACVC,MAAO,CACHC,KAAM,IACNC,QAAS,IACTC,IAAK,KACLC,OAAQ,KACRC,OAAQ,MAEZC,KAAM,SAASN,EAAOO,EAASC,GAC3B,IAAIC,EAAgB,CAChBC,UAAU,EACVC,SAAS,EACTC,UAAU,EACVC,aAAa,EACbC,iBAAiB,EACjBC,eAAe,EACfC,SAAU,IAiMd,SAASC,EAAgBC,EAAUhB,GAC3BgB,GAAYhB,GACZP,QAAQwB,QAAQD,GAAU,SAASE,EAAOC,QACjBC,IAAjBpB,EAAQmB,IAAuC,OAAjBnB,EAAQmB,GAClCrB,EAAMuB,QAAQb,WAAUR,EAAQmB,GAAOD,EAAMI,IAEhDN,EAASM,GAAGH,EAAM,KAAMnB,EAAQmB,OAOjD,SAASI,EAAiBC,GACtB,IAAIC,EAAI7B,EAAM8B,WAgClB,SAAwBD,GACpB,OAAQA,GACJ,IAAK,QAAS,MAAO,CACjBE,QAAQ,EACRC,KAAM,mBACNC,MAAO,KACPC,IAAK,CACDC,MAAOjC,EAAME,QAAQgC,MAAMD,MAAQ,KACnCE,UAAW,WAGnB,IAAK,WAAY,MAAO,CACpBN,QAAQ,EACRC,KAAM,sBACNE,IAAK,CACDC,MAAOjC,EAAME,QAAQgC,MAAMD,M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5G,QAAQwB,QAAQsF,WAAW,SAASQ,GAC5BA,IAAQF,GACRpH,QAAQwB,QAAQ8F,GAAK,SAAS7F,EAAOC,GAC7B0F,EAAI1F,IAAQ0F,EAAI1F,GAAK6F,aAAeH,EAAI1F,GAAK6F,cAAgBC,OAC7DH,EAAGpF,WAAWmF,EAAI1F,GAAMD,GAExB2F,EAAI1F,GAAOD,QAKpB2F,OApX3B","file":"40.a7e0220eb0c8a125abde.bundle.js","sourcesContent":["import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/resources/controllers';\nimport 'angular/core/services/repositories.service';\nimport 'd3/build/d3';\nimport 'lib/nvd3/angular-nvd3';\n\nconst modules = [\n 'toastr',\n 'ui.bootstrap',\n 'nvd3',\n 'graphdb.framework.jmx.resources.controllers',\n 'graphdb.framework.core.services.repositories',\n 'graphdb.framework.core.directives'\n];\n\nangular.module('graphdb.framework.jmx.resources', modules);\n\n","/**************************************************************************\n * AngularJS-nvD3, v1.0.0-beta; MIT License; 25/02/2015 22:27\n * http://krispo.github.io/angular-nvd3\n **************************************************************************/\n(function(){\n\n 'use strict';\n\n angular.module('nvd3', [])\n\n .directive('nvd3', ['utils', function(utils){\n return {\n restrict: 'AE',\n scope: {\n data: '=', //chart data, [required]\n options: '=', //chart options, according to nvd3 core api, [required]\n api: '=?', //directive global api, [optional]\n events: '=?', //global events that directive would subscribe to, [optional]\n config: '=?' //global directive configuration, [optional]\n },\n link: function(scope, element, attrs){\n var defaultConfig = {\n extended: false,\n visible: true,\n disabled: false,\n autorefresh: true,\n refreshDataOnly: false,\n deepWatchData: true,\n debounce: 10 // default 10ms, time silence to prevent refresh while multiple options changes at a time\n };\n\n //basic directive configuration\n scope._config = angular.extend(defaultConfig, scope.config);\n\n //directive global api\n scope.api = {\n // Fully refresh directive\n refresh: function(){\n scope.api.updateWithOptions(scope.options);\n },\n\n // Update chart layout (for example if container is resized)\n update: function() {\n scope.chart.update();\n },\n\n // Update chart with new options\n updateWithOptions: function(options){\n // Clearing\n scope.api.clearElement();\n\n // Exit if options are not yet bound\n if (angular.isDefined(options) === false) return;\n\n // Exit if chart is hidden\n if (!scope._config.visible) return;\n\n // Initialize chart with specific type\n scope.chart = nv.models[options.chart.type]();\n\n // Generate random chart ID\n scope.chart.id = Math.random().toString(36).substr(2, 15);\n\n angular.forEach(scope.chart, function(value, key){\n if ([\n 'options',\n '_options',\n '_inherited',\n '_d3options',\n 'state',\n 'id',\n 'resizeHandler'\n ].indexOf(key) >= 0);\n\n else if (key === 'dispatch') {\n if (options.chart[key] === undefined || options.chart[key] === null) {\n if (scope._config.extended) options.chart[key] = {};\n }\n configureEvents(scope.chart[key], options.chart[key]);\n }\n\n else if ([\n 'lines',\n 'lines1',\n 'lines2',\n 'bars',\n 'bars1',\n 'bars2',\n 'stack1',\n 'stack2',\n 'stacked',\n 'multibar',\n 'discretebar',\n 'pie',\n 'scatter',\n 'bullet',\n 'sparkline',\n 'legend',\n 'distX',\n 'distY',\n 'xAxis',\n 'x2Axis',\n 'yAxis',\n 'yAxis1',\n 'yAxis2',\n 'y1Axis',\n 'y2Axis',\n 'y3Axis',\n 'y4Axis',\n 'interactiveLayer',\n 'controls'\n ].indexOf(key) >= 0){\n if (options.chart[key] === undefined || options.chart[key] === null) {\n if (scope._config.extended) options.chart[key] = {};\n }\n configure(scope.chart[key], options.chart[key], options.chart.type);\n }\n\n //TODO: need to fix bug in nvd3\n else if ((key === 'xTickFormat' || key === 'yTickFormat') && options.chart.type === 'lineWithFocusChart');\n\n else if (options.chart[key] === undefined || options.chart[key] === null){\n if (scope._config.extended) options.chart[key] = value();\n }\n\n else scope.chart[key](options.chart[key]);\n });\n\n // Update with data\n scope.api.updateWithData(scope.data);\n\n // Configure wrappers\n if (options['title'] || scope._config.extended) configureWrapper('title');\n if (options['subtitle'] || scope._config.extended) configureWrapper('subtitle');\n if (options['caption'] || scope._config.extended) configureWrapper('caption');\n\n\n // Configure styles\n if (options['styles'] || scope._config.extended) configureStyles();\n\n nv.addGraph(function() {\n // Update the chart when window resizes\n scope.chart.resizeHandler = nv.utils.windowResize(function() { scope.chart.update(); });\n return scope.chart;\n }, options.chart['callback']);\n },\n\n // Update chart with new data\n updateWithData: function (data){\n if (data) {\n scope.options.chart['transitionDuration'] = +scope.options.chart['transitionDuration'] || 250;\n // remove whole svg element with old data\n d3.select(element[0]).select('svg').remove();\n\n // Select the current element to add <svg> element and to render the chart in\n d3.select(element[0]).append('svg')\n .attr('height', scope.options.chart.height)\n .attr('width', scope.options.chart.width || '100%')\n .datum(data)\n .transition().duration(scope.options.chart['transitionDuration'])\n .call(scope.chart);\n }\n },\n\n // Fully clear directive element\n clearElement: function (){\n element.find('.title').remove();\n element.find('.subtitle').remove();\n element.find('.caption').remove();\n element.empty();\n if (scope.chart) {\n // clear window resize event handler\n if (scope.chart.resizeHandler) scope.chart.resizeHandler.clear();\n\n // remove chart from nv.graph list\n for (var i = 0; i < nv.graphs.length; i++)\n if (nv.graphs[i].id === scope.chart.id) {\n nv.graphs.splice(i, 1);\n }\n }\n scope.chart = null;\n nv.tooltip.cleanup();\n },\n\n // Get full directive scope\n getScope: function(){ return scope; }\n };\n\n // Configure the chart model with the passed options\n function configure(chart, options, chartType){\n if (chart && options){\n angular.forEach(chart, function(value, key){\n if (key === 'dispatch') {\n if (options[key] === undefined || options[key] === null) {\n if (scope._config.extended) options[key] = {};\n }\n configureEvents(value, options[key]);\n }\n else if ([\n 'scatter',\n 'defined',\n 'options',\n 'axis',\n 'rangeBand',\n 'rangeBands',\n '_options',\n '_inherited',\n '_d3options',\n '_calls'\n ].indexOf(key) < 0){\n if (options[key] === undefined || options[key] === null){\n if (scope._config.extended) options[key] = value();\n }\n else chart[key](options[key]);\n }\n });\n }\n }\n\n // Subscribe to the chart events (contained in 'dispatch')\n // and pass eventHandler functions in the 'options' parameter\n function configureEvents(dispatch, options){\n if (dispatch && options){\n angular.forEach(dispatch, function(value, key){\n if (options[key] === undefined || options[key] === null){\n if (scope._config.extended) options[key] = value.on;\n }\n else dispatch.on(key + '._', options[key]);\n });\n }\n }\n\n // Configure 'title', 'subtitle', 'caption'.\n // nvd3 has no sufficient models for it yet.\n function configureWrapper(name){\n var _ = utils.deepExtend(defaultWrapper(name), scope.options[name] || {});\n\n if (scope._config.extended) scope.options[name] = _;\n\n var wrapElement = angular.element('<div></div>').html(_['html'] || '')\n .addClass(name).addClass(_.class)\n .removeAttr('style')\n .css(_.css);\n\n if (!_['html']) wrapElement.text(_.text);\n\n if (_.enable) {\n if (name === 'title') element.prepend(wrapElement);\n else if (name === 'subtitle') element.find('.title').after(wrapElement);\n else if (name === 'caption') element.append(wrapElement);\n }\n }\n\n // Add some styles to the whole directive element\n function configureStyles(){\n var _ = utils.deepExtend(defaultStyles(), scope.options['styles'] || {});\n\n if (scope._config.extended) scope.options['styles'] = _;\n\n angular.forEach(_.classes, function(value, key){\n value ? element.addClass(key) : element.removeClass(key);\n });\n\n element.removeAttr('style').css(_.css);\n }\n\n // Default values for 'title', 'subtitle', 'caption'\n function defaultWrapper(_){\n switch (_){\n case 'title': return {\n enable: false,\n text: 'Write Your Title',\n class: 'h4',\n css: {\n width: scope.options.chart.width + 'px',\n textAlign: 'center'\n }\n };\n case 'subtitle': return {\n enable: false,\n text: 'Write Your Subtitle',\n css: {\n width: scope.options.chart.width + 'px',\n textAlign: 'center'\n }\n };\n case 'caption': return {\n enable: false,\n text: 'Figure 1. Write Your Caption text.',\n css: {\n width: scope.options.chart.width + 'px',\n textAlign: 'center'\n }\n };\n }\n }\n\n // Default values for styles\n function defaultStyles(){\n return {\n classes: {\n 'with-3d-shadow': true,\n 'with-transitions': true,\n 'gallery': false\n },\n css: {}\n };\n }\n\n /* Event Handling */\n // Watching on options changing\n scope.$watch('options', utils.debounce(function(newOptions){\n if (!scope._config.disabled && scope._config.autorefresh) scope.api.refresh();\n }, scope._config.debounce, true), true);\n\n // Watching on data changing\n scope.$watch('data', function(newData, oldData){\n if (newData !== oldData && scope.chart){\n if (!scope._config.disabled && scope._config.autorefresh) {\n scope._config.refreshDataOnly ? scope.chart.update() : scope.api.refresh(); // if wanted to refresh data only, use chart.update method, otherwise use full refresh.\n }\n }\n }, scope._config.deepWatchData);\n\n // Watching on config changing\n scope.$watch('config', function(newConfig, oldConfig){\n if (newConfig !== oldConfig){\n scope._config = angular.extend(defaultConfig, newConfig);\n scope.api.refresh();\n }\n }, true);\n\n //subscribe on global events\n angular.forEach(scope.events, function(eventHandler, event){\n scope.$on(event, function(e){\n return eventHandler(e, scope);\n });\n });\n\n // remove completely when directive is destroyed\n element.on('$destroy', function () {\n scope.api.clearElement();\n });\n }\n };\n }])\n\n .factory('utils', function(){\n return {\n debounce: function(func, wait, immediate) {\n var timeout;\n return function() {\n var context = this, args = arguments;\n var later = function() {\n timeout = null;\n if (!immediate) func.apply(context, args);\n };\n var callNow = immediate && !timeout;\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n if (callNow) func.apply(context, args);\n };\n },\n deepExtend: function(dst){\n var me = this;\n angular.forEach(arguments, function(obj) {\n if (obj !== dst) {\n angular.forEach(obj, function(value, key) {\n if (dst[key] && dst[key].constructor && dst[key].constructor === Object) {\n me.deepExtend(dst[key], value);\n } else {\n dst[key] = value;\n }\n });\n }\n });\n return dst;\n }\n };\n });\n})();"],"sourceRoot":""}
@@ -0,0 +1,2 @@
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[41,95],{40:function(e,t,n){"use strict";n.r(t);n(2),n(9);function r(e,t,n,r){e.supportsStatistics=!0,e.settings={statistics:!1},e.getSettings=function(){e.loader=!0,r.getStatistics().then((function(t){e.settings.statistics="true"===t.data,e.supportsStatistics=!0}),(function(n){if(404===n.status)e.supportsStatistics=!1;else{const e=getError(n.data);t.error(e,"Error getting settings")}}))},e.getSettings(),e.setSettings=function(){e.loader=!0,r.toggleStatistics(e.settings.statistics).then((function(){n.close(),t.success("Settings have been saved")}),(function(e){const n=getError(e.data);t.error(n,"Error saving settings")}))},e.submitForm=function(){e.setSettings()},e.cancel=function(){n.dismiss("cancel")}}function i(e,t,n,r,i,s){e.loadingLicense=function(){return n.loadingLicense},n.checkLicenseStatus(),e.revertToFree=function(){s.openSimpleModal({title:"Confirm operation",message:"Reverting to a GraphDB Free license will make SE and EE features unusable. Are you sure?",warning:!0}).result.then((function(){t.unregisterLicense().success((function(){n.checkLicenseStatus()}))}))}}function s(e,t,n,r,i,s,o){e.$on("securityInit",(function(){o.isAdmin()||n.path("/license")})),e.sendLicenseToValidateAndActivate=a;const c=$(".license-textarea");function a(e){t.sendLicenseToValidate(e).success((function(n){"Invalid"!==n.licensee?(c.val(e),function(e,n){r.open({templateUrl:"js/angular/settings/modal/validate-license.html",controller:"ValidateLicenseModalCtrl",size:"lg",resolve:{license:function(){return e}}}).result.then((function(){!function(e){e||(e=c.val());if(e){const n=atob(e.replace(/\s/g,""));t.registerLicense(n).success((function(){s.history.back()})).error((function(){i.error("Error registering GraphDB license")}))}else i.error("No license code available in textarea")}(n)}))}(n,e)):(c.val(""),i.error(n.message))})).error((function(){i.error("Invalid license")}))}e.$watch("currentFile",(function(){if(e.currentFile){const n=e.currentFile;t.extractFromLicenseFile(n).success((function(e){a(e)})).error((function(){i.error("Could not upload file")}))}})),e.getBackToPreviousPage=function(){s.history.back()}}function o(e,t,n){e.ok=function(){t.close()},e.cancel=function(){t.dismiss("cancel")},e.license=n}function c(e){e.loader=!0,e.setLoader=function(t){e.loader=t}}angular.module("graphdb.framework.settings.controllers",["ngCookies","ui.bootstrap","graphdb.framework.core.services.jwtauth","toastr"]).controller("ActiveLocationSettingsCtrl",r).controller("ValidateLicenseModalCtrl",o).controller("LicenseCtrl",i).controller("RegisterLicenseCtrl",s).controller("LoaderSamplesCtrl",c),r.$inject=["$scope","toastr","$modalInstance","LicenseRestService"],i.$inject=["$scope","LicenseRestService","$licenseService","toastr","$rootScope","ModalService"],s.$inject=["$scope","LicenseRestService","$location","$modal","toastr","$window","$jwtAuth"],o.$inject=["$scope","$modalInstance","license"],c.$inject=["$scope"]},75:function(e,t,n){"use strict";n.r(t);n(2),n(7),n(5),n(40),n(15),n(9),n(26),n(27);function r(e){e.interceptors.push("$unauthorizedInterceptor")}function i(e,t,n){e.$on("$locationChangeStart",(function(){n.isLicenseHardcoded&&"/license/register"===t.url()&&t.path("license")}))}angular.module("graphdb.framework.settings",["toastr","ui.bootstrap","graphdb.framework.rest.license.service","graphdb.framework.settings.controllers","graphdb.framework.core.interceptors.unauthorized","graphdb.framework.core.services.jwtauth"]).config(r).run(i),r.$inject=["$httpProvider","$routeProvider"],i.$inject=["$rootScope","$location","$licenseService"]}}]);
2
+ //# sourceMappingURL=41.1258b9502ba9383894d7.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/settings/controllers.js","webpack:///./src/js/angular/settings/app.js"],"names":["ActiveLocationSettingsCtrl","$scope","toastr","$modalInstance","LicenseRestService","supportsStatistics","settings","statistics","getSettings","loader","getStatistics","then","response","data","status","msg","getError","error","setSettings","toggleStatistics","close","success","submitForm","cancel","dismiss","LicenseCtrl","$licenseService","$rootScope","ModalService","loadingLicense","checkLicenseStatus","revertToFree","openSimpleModal","title","message","warning","result","unregisterLicense","RegisterLicenseCtrl","$location","$modal","$window","$jwtAuth","$on","isAdmin","path","sendLicenseToValidateAndActivate","textAreaSel","$","licenseCode","sendLicenseToValidate","validatedLicense","licensee","val","license","open","templateUrl","controller","size","resolve","decodedLicense","atob","replace","registerLicense","history","back","confirmWantedNewLicenseDetails","$watch","currentFile","file","extractFromLicenseFile","getBackToPreviousPage","ValidateLicenseModalCtrl","ok","LoaderSamplesCtrl","setLoader","angular","module","$inject","config","$httpProvider","interceptors","push","run","isLicenseHardcoded","url"],"mappings":"6FAAA,iBAkBA,SAASA,EAA2BC,EAAQC,EAAQC,EAAgBC,GAChEH,EAAOI,oBAAqB,EAC5BJ,EAAOK,SAAW,CAACC,YAAY,GAC/BN,EAAOO,YAEP,WACIP,EAAOQ,QAAS,EAChBL,EAAmBM,gBAAgBC,MAAK,SAA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SAAU,SAAU,UAAW,YA6F3GN,EAAyBM,QAAU,CAAC,SAAU,iBAAkB,WAgBhEJ,EAAkBI,QAAU,CAAC,W,gCClM7B,mDAsBA,SAASC,EAAOC,GACZA,EAAcC,aAAaC,KAAK,4BAKpC,SAASC,EAAIxD,EAAYY,EAAWb,GAChCC,EAAWgB,IAAI,wBAAwB,WAC/BjB,EAAgB0D,oBAA0C,sBAApB7C,EAAU8C,OAChD9C,EAAUM,KAAK,cAtB3B+B,QAAQC,OAAO,6BAA8B,CACzC,SACA,eACA,yCACA,yCACA,mDACA,4CAECE,OAAOA,GACPI,IAAIA,GAETJ,EAAOD,QAAU,CAAC,gBAAiB,kBAMnCK,EAAIL,QAAU,CAAC,aAAc,YAAa","file":"41.ba8cb2fb7f46ccb2ab28.bundle.js","sourcesContent":["import 'angular/core/services';\nimport 'angular/core/services/jwt-auth.service';\n\nangular\n .module('graphdb.framework.settings.controllers', [\n 'ngCookies',\n 'ui.bootstrap',\n 'graphdb.framework.core.services.jwtauth',\n 'toastr'\n ])\n .controller('ActiveLocationSettingsCtrl', ActiveLocationSettingsCtrl)\n .controller('ValidateLicenseModalCtrl', ValidateLicenseModalCtrl)\n .controller('LicenseCtrl', LicenseCtrl)\n .controller('RegisterLicenseCtrl', RegisterLicenseCtrl)\n .controller('LoaderSamplesCtrl', LoaderSamplesCtrl);\n\nActiveLocationSettingsCtrl.$inject = ['$scope', 'toastr', '$modalInstance', 'LicenseRestService'];\n\nfunction ActiveLocationSettingsCtrl($scope, toastr, $modalInstance, LicenseRestService) {\n $scope.supportsStatistics = true;\n $scope.settings = {statistics: false};\n $scope.getSettings = getSettings;\n\n function getSettings() {\n $scope.loader = true;\n LicenseRestService.getStatistics().then(function (response) {\n $scope.settings.statistics = response.data === 'true';\n $scope.supportsStatistics = true;\n }, function (response) {\n if (response.status === 404) {\n $scope.supportsStatistics = false;\n } else {\n const msg = getError(response.data);\n toastr.error(msg, 'Error getting settings');\n }\n });\n }\n\n $scope.getSettings();\n\n $scope.setSettings = function () {\n $scope.loader = true;\n LicenseRestService.toggleStatistics($scope.settings.statistics).then(function () {\n $modalInstance.close();\n toastr.success('Settings have been saved');\n }, function (response) {\n const msg = getError(response.data);\n toastr.error(msg, 'Error saving settings');\n });\n };\n\n $scope.submitForm = function () {\n $scope.setSettings();\n };\n\n $scope.cancel = function () {\n $modalInstance.dismiss('cancel');\n };\n}\n\nLicenseCtrl.$inject = ['$scope', 'LicenseRestService', '$licenseService', 'toastr', '$rootScope', 'ModalService'];\n\nfunction LicenseCtrl($scope, LicenseRestService, $licenseService, toastr, $rootScope, ModalService) {\n\n $scope.loadingLicense = function() {\n return $licenseService.loadingLicense;\n }\n\n $licenseService.checkLicenseStatus();\n\n $scope.revertToFree = function () {\n ModalService.openSimpleModal({\n title: 'Confirm operation',\n message: \"Reverting to a GraphDB Free license will make SE and EE repositories unusable. Are you sure?\",\n warning: true\n }).result\n .then(function () {\n LicenseRestService.unregisterLicense()\n .success(function () {\n $licenseService.checkLicenseStatus();\n })\n });\n };\n}\n\nRegisterLicenseCtrl.$inject = ['$scope', 'LicenseRestService', '$location', '$modal', 'toastr', '$window', '$jwtAuth'];\n\nfunction RegisterLicenseCtrl($scope, LicenseRestService, $location, $modal, toastr, $window, $jwtAuth) {\n $scope.$on('securityInit', function () {\n if (!$jwtAuth.isAdmin()) {\n $location.path('/license');\n }\n });\n\n $scope.sendLicenseToValidateAndActivate = sendLicenseToValidateAndActivate;\n\n const textAreaSel = $('.license-textarea');\n\n // watch for uploaded license file\n $scope.$watch('currentFile', function () {\n if ($scope.currentFile) {\n const file = $scope.currentFile;\n LicenseRestService.extractFromLicenseFile(file)\n .success(function (licenseCode) {\n sendLicenseToValidateAndActivate(licenseCode);\n }).error(function () {\n toastr.error('Could not upload file');\n });\n }\n });\n\n $scope.getBackToPreviousPage = function () {\n $window.history.back();\n };\n\n // send license code for validation and activation\n function sendLicenseToValidateAndActivate(licenseCode) {\n LicenseRestService.sendLicenseToValidate(licenseCode)\n .success(function (validatedLicense) {\n if (validatedLicense.licensee !== 'Invalid') {\n // write code to textarea\n textAreaSel.val(licenseCode);\n // pop dialog for license details confirmation\n confirmWantedNewLicenseDetails(validatedLicense, licenseCode);\n } else {\n // clear textarea on invalid license\n textAreaSel.val('');\n // show error\n toastr.error(validatedLicense.message);\n }\n })\n .error(function () {\n toastr.error('Invalid license');\n });\n }\n\n\n // pops a modal dialog which asks you if your expected license details are correct\n // and sends license to GraphDB upon confirmation\n function confirmWantedNewLicenseDetails(license, licenseCode) {\n const modalInstance = $modal.open({\n templateUrl: 'js/angular/settings/modal/validate-license.html',\n controller: 'ValidateLicenseModalCtrl',\n size: 'lg',\n resolve: {\n license: function () {\n return license;\n }\n }\n });\n\n modalInstance.result.then(function () {\n registerLicense(licenseCode);\n });\n }\n\n // send license code to GraphDB for activation\n function registerLicense(licenseCode) {\n if (!licenseCode) {\n licenseCode = textAreaSel.val();\n }\n\n if (licenseCode) {\n // replacing whitespace makes this work on Safari too,\n // whereas other browser happily ignore the whitespace\n const decodedLicense = atob(licenseCode.replace(/\\s/g, ''));\n LicenseRestService.registerLicense(decodedLicense)\n .success(function () {\n $window.history.back();\n }).error(function () {\n toastr.error('Error registering GraphDB license');\n });\n } else {\n toastr.error('No license code available in textarea');\n }\n }\n}\n\nValidateLicenseModalCtrl.$inject = ['$scope', '$modalInstance', 'license'];\n\nfunction ValidateLicenseModalCtrl($scope, $modalInstance, license) {\n $scope.ok = ok;\n $scope.cancel = cancel;\n $scope.license = license;\n\n function ok() {\n $modalInstance.close();\n }\n\n function cancel() {\n $modalInstance.dismiss('cancel');\n }\n}\n\nLoaderSamplesCtrl.$inject = ['$scope'];\n\nfunction LoaderSamplesCtrl($scope) {\n $scope.loader = true;\n $scope.setLoader = function (loader) {\n $scope.loader = loader;\n };\n}\n","import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/rest/license.rest.service';\nimport 'angular/settings/controllers';\nimport 'angular/core/interceptors/unauthorized.interceptor';\nimport 'angular/core/services/jwt-auth.service';\nimport 'ng-file-upload/dist/ng-file-upload.min';\nimport 'ng-file-upload/dist/ng-file-upload-shim.min';\n\nangular.module('graphdb.framework.settings', [\n 'toastr',\n 'ui.bootstrap',\n 'graphdb.framework.rest.license.service',\n 'graphdb.framework.settings.controllers',\n 'graphdb.framework.core.interceptors.unauthorized',\n 'graphdb.framework.core.services.jwtauth'\n])\n .config(config)\n .run(run);\n\nconfig.$inject = ['$httpProvider', '$routeProvider'];\n\nfunction config($httpProvider) {\n $httpProvider.interceptors.push('$unauthorizedInterceptor');\n}\n\nrun.$inject = ['$rootScope', '$location', '$licenseService'];\n\nfunction run($rootScope, $location, $licenseService) {\n $rootScope.$on('$locationChangeStart', function () {\n if ($licenseService.isLicenseHardcoded && $location.url() === '/license/register') {\n $location.path('license');\n }\n });\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/settings/controllers.js","webpack:///./src/js/angular/settings/app.js"],"names":["ActiveLocationSettingsCtrl","$scope","toastr","$modalInstance","LicenseRestService","supportsStatistics","settings","statistics","getSettings","loader","getStatistics","then","response","data","status","msg","getError","error","setSettings","toggleStatistics","close","success","submitForm","cancel","dismiss","LicenseCtrl","$licenseService","$rootScope","ModalService","loadingLicense","checkLicenseStatus","revertToFree","openSimpleModal","title","message","warning","result","unregisterLicense","RegisterLicenseCtrl","$location","$modal","$window","$jwtAuth","$on","isAdmin","path","sendLicenseToValidateAndActivate","textAreaSel","$","licenseCode","sendLicenseToValidate","validatedLicense","licensee","val","license","open","templateUrl","controller","size","resolve","decodedLicense","atob","replace","registerLicense","history","back","confirmWantedNewLicenseDetails","$watch","currentFile","file","extractFromLicenseFile","getBackToPreviousPage","ValidateLicenseModalCtrl","ok","LoaderSamplesCtrl","setLoader","angular","module","$inject","config","$httpProvider","interceptors","push","run","isLicenseHardcoded","url"],"mappings":"6FAAA,iBAkBA,SAASA,EAA2BC,EAAQC,EAAQC,EAAgBC,GAChEH,EAAOI,oBAAqB,E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,EAAYqD,QAAU,CAAC,SAAU,qBAAsB,kBAAmB,SAAU,aAAc,gBAyBlGxC,EAAoBwC,QAAU,CAAC,SAAU,qBAAsB,YAAa,SAAU,SAAU,UAAW,YA6F3GN,EAAyBM,QAAU,CAAC,SAAU,iBAAkB,WAgBhEJ,EAAkBI,QAAU,CAAC,W,gCClM7B,mDAsBA,SAASC,EAAOC,GACZA,EAAcC,aAAaC,KAAK,4BAKpC,SAASC,EAAIxD,EAAYY,EAAWb,GAChCC,EAAWgB,IAAI,wBAAwB,WAC/BjB,EAAgB0D,oBAA0C,sBAApB7C,EAAU8C,OAChD9C,EAAUM,KAAK,cAtB3B+B,QAAQC,OAAO,6BAA8B,CACzC,SACA,eACA,yCACA,yCACA,mDACA,4CAECE,OAAOA,GACPI,IAAIA,GAETJ,EAAOD,QAAU,CAAC,gBAAiB,kBAMnCK,EAAIL,QAAU,CAAC,aAAc,YAAa","file":"41.1258b9502ba9383894d7.bundle.js","sourcesContent":["import 'angular/core/services';\nimport 'angular/core/services/jwt-auth.service';\n\nangular\n .module('graphdb.framework.settings.controllers', [\n 'ngCookies',\n 'ui.bootstrap',\n 'graphdb.framework.core.services.jwtauth',\n 'toastr'\n ])\n .controller('ActiveLocationSettingsCtrl', ActiveLocationSettingsCtrl)\n .controller('ValidateLicenseModalCtrl', ValidateLicenseModalCtrl)\n .controller('LicenseCtrl', LicenseCtrl)\n .controller('RegisterLicenseCtrl', RegisterLicenseCtrl)\n .controller('LoaderSamplesCtrl', LoaderSamplesCtrl);\n\nActiveLocationSettingsCtrl.$inject = ['$scope', 'toastr', '$modalInstance', 'LicenseRestService'];\n\nfunction ActiveLocationSettingsCtrl($scope, toastr, $modalInstance, LicenseRestService) {\n $scope.supportsStatistics = true;\n $scope.settings = {statistics: false};\n $scope.getSettings = getSettings;\n\n function getSettings() {\n $scope.loader = true;\n LicenseRestService.getStatistics().then(function (response) {\n $scope.settings.statistics = response.data === 'true';\n $scope.supportsStatistics = true;\n }, function (response) {\n if (response.status === 404) {\n $scope.supportsStatistics = false;\n } else {\n const msg = getError(response.data);\n toastr.error(msg, 'Error getting settings');\n }\n });\n }\n\n $scope.getSettings();\n\n $scope.setSettings = function () {\n $scope.loader = true;\n LicenseRestService.toggleStatistics($scope.settings.statistics).then(function () {\n $modalInstance.close();\n toastr.success('Settings have been saved');\n }, function (response) {\n const msg = getError(response.data);\n toastr.error(msg, 'Error saving settings');\n });\n };\n\n $scope.submitForm = function () {\n $scope.setSettings();\n };\n\n $scope.cancel = function () {\n $modalInstance.dismiss('cancel');\n };\n}\n\nLicenseCtrl.$inject = ['$scope', 'LicenseRestService', '$licenseService', 'toastr', '$rootScope', 'ModalService'];\n\nfunction LicenseCtrl($scope, LicenseRestService, $licenseService, toastr, $rootScope, ModalService) {\n\n $scope.loadingLicense = function() {\n return $licenseService.loadingLicense;\n };\n\n $licenseService.checkLicenseStatus();\n\n $scope.revertToFree = function () {\n ModalService.openSimpleModal({\n title: 'Confirm operation',\n message: \"Reverting to a GraphDB Free license will make SE and EE features unusable. Are you sure?\",\n warning: true\n }).result\n .then(function () {\n LicenseRestService.unregisterLicense()\n .success(function () {\n $licenseService.checkLicenseStatus();\n });\n });\n };\n}\n\nRegisterLicenseCtrl.$inject = ['$scope', 'LicenseRestService', '$location', '$modal', 'toastr', '$window', '$jwtAuth'];\n\nfunction RegisterLicenseCtrl($scope, LicenseRestService, $location, $modal, toastr, $window, $jwtAuth) {\n $scope.$on('securityInit', function () {\n if (!$jwtAuth.isAdmin()) {\n $location.path('/license');\n }\n });\n\n $scope.sendLicenseToValidateAndActivate = sendLicenseToValidateAndActivate;\n\n const textAreaSel = $('.license-textarea');\n\n // watch for uploaded license file\n $scope.$watch('currentFile', function () {\n if ($scope.currentFile) {\n const file = $scope.currentFile;\n LicenseRestService.extractFromLicenseFile(file)\n .success(function (licenseCode) {\n sendLicenseToValidateAndActivate(licenseCode);\n }).error(function () {\n toastr.error('Could not upload file');\n });\n }\n });\n\n $scope.getBackToPreviousPage = function () {\n $window.history.back();\n };\n\n // send license code for validation and activation\n function sendLicenseToValidateAndActivate(licenseCode) {\n LicenseRestService.sendLicenseToValidate(licenseCode)\n .success(function (validatedLicense) {\n if (validatedLicense.licensee !== 'Invalid') {\n // write code to textarea\n textAreaSel.val(licenseCode);\n // pop dialog for license details confirmation\n confirmWantedNewLicenseDetails(validatedLicense, licenseCode);\n } else {\n // clear textarea on invalid license\n textAreaSel.val('');\n // show error\n toastr.error(validatedLicense.message);\n }\n })\n .error(function () {\n toastr.error('Invalid license');\n });\n }\n\n\n // pops a modal dialog which asks you if your expected license details are correct\n // and sends license to GraphDB upon confirmation\n function confirmWantedNewLicenseDetails(license, licenseCode) {\n const modalInstance = $modal.open({\n templateUrl: 'js/angular/settings/modal/validate-license.html',\n controller: 'ValidateLicenseModalCtrl',\n size: 'lg',\n resolve: {\n license: function () {\n return license;\n }\n }\n });\n\n modalInstance.result.then(function () {\n registerLicense(licenseCode);\n });\n }\n\n // send license code to GraphDB for activation\n function registerLicense(licenseCode) {\n if (!licenseCode) {\n licenseCode = textAreaSel.val();\n }\n\n if (licenseCode) {\n // replacing whitespace makes this work on Safari too,\n // whereas other browser happily ignore the whitespace\n const decodedLicense = atob(licenseCode.replace(/\\s/g, ''));\n LicenseRestService.registerLicense(decodedLicense)\n .success(function () {\n $window.history.back();\n }).error(function () {\n toastr.error('Error registering GraphDB license');\n });\n } else {\n toastr.error('No license code available in textarea');\n }\n }\n}\n\nValidateLicenseModalCtrl.$inject = ['$scope', '$modalInstance', 'license'];\n\nfunction ValidateLicenseModalCtrl($scope, $modalInstance, license) {\n $scope.ok = ok;\n $scope.cancel = cancel;\n $scope.license = license;\n\n function ok() {\n $modalInstance.close();\n }\n\n function cancel() {\n $modalInstance.dismiss('cancel');\n }\n}\n\nLoaderSamplesCtrl.$inject = ['$scope'];\n\nfunction LoaderSamplesCtrl($scope) {\n $scope.loader = true;\n $scope.setLoader = function (loader) {\n $scope.loader = loader;\n };\n}\n","import 'angular/core/services';\nimport 'angular/core/directives';\nimport 'angular/rest/license.rest.service';\nimport 'angular/settings/controllers';\nimport 'angular/core/interceptors/unauthorized.interceptor';\nimport 'angular/core/services/jwt-auth.service';\nimport 'ng-file-upload/dist/ng-file-upload.min';\nimport 'ng-file-upload/dist/ng-file-upload-shim.min';\n\nangular.module('graphdb.framework.settings', [\n 'toastr',\n 'ui.bootstrap',\n 'graphdb.framework.rest.license.service',\n 'graphdb.framework.settings.controllers',\n 'graphdb.framework.core.interceptors.unauthorized',\n 'graphdb.framework.core.services.jwtauth'\n])\n .config(config)\n .run(run);\n\nconfig.$inject = ['$httpProvider', '$routeProvider'];\n\nfunction config($httpProvider) {\n $httpProvider.interceptors.push('$unauthorizedInterceptor');\n}\n\nrun.$inject = ['$rootScope', '$location', '$licenseService'];\n\nfunction run($rootScope, $location, $licenseService) {\n $rootScope.$on('$locationChangeStart', function () {\n if ($licenseService.isLicenseHardcoded && $location.url() === '/license/register') {\n $location.path('license');\n }\n });\n}\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[43],{42:function(e,o,n){"use strict";n.r(o);n(14);function t(e,o,n,t,r,c,i,u,l){let s;function a(){s&&o.cancel(s)}e.pluginName="autocomplete",e.setPluginIsActive=function(o){e.pluginIsActive=o};const d=function(){u.checkAutocompleteStatus().success((function(o){e.autocompleteEnabled=o,l.setAutocompleteStatus(o)})).error((function(e){n.error(getError(e))}))},f=function(){u.refreshIndexIRIs().success((function(o){e.shouldIndexIRIs=o})).error((function(e){n.error(getError(e))}))},g=function(){u.refreshIndexStatus().success((function(o){e.indexStatus=o})).error((function(e){n.error(getError(e))}))},p=function(){u.refreshLabelConfig().success((function(o){e.labelConfig=o})).error((function(e){n.error(getError(e))}))};e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),u.checkForPlugin().success((function(o){e.pluginFound=!0===o,e.pluginFound?(d(),f(),g(),p()):(e.autocompleteEnabled=!1,e.loading=!1)})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const m=function(){s=o((function(){e.$broadcast("checkIsActive"),e.autocompleteEnabled&&g()}),5e3)};e.$on("$destroy",(function(){a()}));e.setLoader=function(o,n){i.cancel(e.loaderTimeout),o?e.loaderTimeout=i((function(){e.loader=o,e.loaderMessage=n}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||"Loading..."},e.toggleAutocomplete=function(){const o=!e.autocompleteEnabled;e.setLoader(!0,o?"Enabling autocomplete...":"Disabling autocomplete..."),u.toggleAutocomplete(o).success((function(){d(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIndexIRIs=function(){e.setLoader(!0,"Setting index IRIs..."),u.toggleIndexIRIs(!e.shouldIndexIRIs).success((function(){f(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.buildIndex=function(){e.setLoader(!0,"Requesting index build..."),u.buildIndex().success((function(){e.indexStatus="BUILDING"})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptIndexing=function(){e.setLoader(!0,"Interrupting index..."),u.interruptIndexing().success((function(){g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return t.getDegradedReason()},e.addLabel=function(){e.editLabel({labelIri:"",languages:""},!0)},e.editLabel=function(o,t){c.open({templateUrl:"js/angular/autocomplete/templates/modal/add-label.html",controller:"AddLabelCtrl",resolve:{data:function(){return{label:o,isNew:t}}}}).result.then((function(o){!function(o){e.setLoader(!0,"Updating label config..."),u.addLabelConfig(o).success((function(){p(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(o)}))},e.removeLabel=function(o){!function(o){e.setLoader(!0,"Updating label config..."),u.removeLabelConfig(o).success((function(){p(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(o)},e.$on("repositoryIsSet",(function(){a(),r.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()&&(e.checkForPlugin(),m())})),r.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()&&(e.checkForPlugin(),m())}function r(e,o,n,t){e.label=angular.copy(t.label),e.isNew=t.isNew,e.ok=function(){e.form.$valid&&o.close(e.label)},e.cancel=function(){o.dismiss("cancel")},e.setTemplate=function(o){e.label.labelIri=o,n((function(){$("#wb-autocomplete-languages").focus()}),0)}}angular.module("graphdb.framework.autocomplete.controllers",["toastr","graphdb.framework.rest.autocomplete.service"]).controller("AutocompleteCtrl",t).controller("AddLabelCtrl",r),t.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$modal","$timeout","AutocompleteRestService","$autocompleteStatus"],r.$inject=["$scope","$modalInstance","$timeout","data"]}}]);
2
- //# sourceMappingURL=43.8d096939ee87946076e0.bundle.js.map
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[43],{43:function(e,o,n){"use strict";n.r(o);n(14);function t(e,o,n,t,r,c,i,u,l){let s;function a(){s&&o.cancel(s)}e.pluginName="autocomplete",e.setPluginIsActive=function(o){e.pluginIsActive=o};const d=function(){u.checkAutocompleteStatus().success((function(o){e.autocompleteEnabled=o,l.setAutocompleteStatus(o)})).error((function(e){n.error(getError(e))}))},f=function(){u.refreshIndexIRIs().success((function(o){e.shouldIndexIRIs=o})).error((function(e){n.error(getError(e))}))},g=function(){u.refreshIndexStatus().success((function(o){e.indexStatus=o})).error((function(e){n.error(getError(e))}))},p=function(){u.refreshLabelConfig().success((function(o){e.labelConfig=o})).error((function(e){n.error(getError(e))}))};e.checkForPlugin=function(){e.pluginFound=!1,e.setLoader(!0),u.checkForPlugin().success((function(o){e.pluginFound=!0===o,e.pluginFound?(d(),f(),g(),p()):(e.autocompleteEnabled=!1,e.loading=!1)})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))};const m=function(){s=o((function(){e.$broadcast("checkIsActive"),e.autocompleteEnabled&&g()}),5e3)};e.$on("$destroy",(function(){a()}));e.setLoader=function(o,n){i.cancel(e.loaderTimeout),o?e.loaderTimeout=i((function(){e.loader=o,e.loaderMessage=n}),300):e.loader=!1},e.getLoaderMessage=function(){return e.loaderMessage||"Loading..."},e.toggleAutocomplete=function(){const o=!e.autocompleteEnabled;e.setLoader(!0,o?"Enabling autocomplete...":"Disabling autocomplete..."),u.toggleAutocomplete(o).success((function(){d(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.toggleIndexIRIs=function(){e.setLoader(!0,"Setting index IRIs..."),u.toggleIndexIRIs(!e.shouldIndexIRIs).success((function(){f(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.buildIndex=function(){e.setLoader(!0,"Requesting index build..."),u.buildIndex().success((function(){e.indexStatus="BUILDING"})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.interruptIndexing=function(){e.setLoader(!0,"Interrupting index..."),u.interruptIndexing().success((function(){g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))},e.getDegradedReason=function(){return t.getDegradedReason()},e.addLabel=function(){e.editLabel({labelIri:"",languages:""},!0)},e.editLabel=function(o,t){c.open({templateUrl:"js/angular/autocomplete/templates/modal/add-label.html",controller:"AddLabelCtrl",resolve:{data:function(){return{label:o,isNew:t}}}}).result.then((function(o){!function(o){e.setLoader(!0,"Updating label config..."),u.addLabelConfig(o).success((function(){p(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(o)}))},e.removeLabel=function(o){!function(o){e.setLoader(!0,"Updating label config..."),u.removeLabelConfig(o).success((function(){p(),g()})).error((function(e){n.error(getError(e))})).finally((function(){e.setLoader(!1)}))}(o)},e.$on("repositoryIsSet",(function(){a(),r.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()&&(e.checkForPlugin(),m())})),r.isLicenseValid()&&t.getActiveRepository()&&!t.isActiveRepoOntopType()&&!t.isActiveRepoFedXType()&&(e.checkForPlugin(),m())}function r(e,o,n,t){e.label=angular.copy(t.label),e.isNew=t.isNew,e.ok=function(){e.form.$valid&&o.close(e.label)},e.cancel=function(){o.dismiss("cancel")},e.setTemplate=function(o){e.label.labelIri=o,n((function(){$("#wb-autocomplete-languages").focus()}),0)}}angular.module("graphdb.framework.autocomplete.controllers",["toastr","graphdb.framework.rest.autocomplete.service"]).controller("AutocompleteCtrl",t).controller("AddLabelCtrl",r),t.$inject=["$scope","$interval","toastr","$repositories","$licenseService","$modal","$timeout","AutocompleteRestService","$autocompleteStatus"],r.$inject=["$scope","$modalInstance","$timeout","data"]}}]);
2
+ //# sourceMappingURL=43.86f9220f4f79feec5b27.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/autocomplete/controllers.js"],"names":["AutocompleteCtrl","$scope","$interval","toastr","$repositories","$licenseService","$modal","$timeout","AutocompleteRestService","$autocompleteStatus","timer","cancelTimer","cancel","pluginName","setPluginIsActive","isPluginActive","pluginIsActive","refreshEnabledStatus","checkAutocompleteStatus","success","data","autocompleteEnabled","setAutocompleteStatus","error","getError","refreshIndexIRIs","shouldIndexIRIs","refreshIndexStatus","indexStatus","refreshLabelConfig","labelConfig","checkForPlugin","pluginFound","setLoader","loading","finally","pullStatus","$broadcast","$on","loader","message","loaderTimeout","loaderMessage","getLoaderMessage","toggleAutocomplete","newValue","toggleIndexIRIs","buildIndex","interruptIndexing","getDegradedReason","addLabel","editLabel","labelIri","languages","label","isNew","open","templateUrl","controller","resolve","result","then","addLabelConfig","removeLabel","removeLabelConfig","isLicenseValid","getActiveRepository","isActiveRepoOntopType","isActiveRepoFedXType","AddLabelCtrl","$modalInstance","angular","copy","ok","form","$valid","close","dismiss","setTemplate","iri","$","focus","module","$inject"],"mappings":"0FAAA,aAcA,SAASA,EAAiBC,EAAQC,EAAWC,EAAQC,EAAeC,EAAiBC,EAAQC,EAAUC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U,YAAa,SAAU,gBAAiB,kBAAmB,SAAU,WAAY,0BAA2B,uBAyPlJd,EAAac,QAAU,CAAC,SAAU,iBAAkB,WAAY","file":"43.8d096939ee87946076e0.bundle.js","sourcesContent":["import 'angular/rest/autocomplete.rest.service';\n\nconst modules = [\n 'toastr',\n 'graphdb.framework.rest.autocomplete.service'\n];\n\nangular\n .module('graphdb.framework.autocomplete.controllers', modules)\n .controller('AutocompleteCtrl', AutocompleteCtrl)\n .controller('AddLabelCtrl', AddLabelCtrl);\n\nAutocompleteCtrl.$inject = ['$scope', '$interval', 'toastr', '$repositories', '$licenseService', '$modal', '$timeout', 'AutocompleteRestService', '$autocompleteStatus'];\n\nfunction AutocompleteCtrl($scope, $interval, toastr, $repositories, $licenseService, $modal, $timeout, AutocompleteRestService, $autocompleteStatus) {\n\n let timer;\n\n function cancelTimer() {\n if (timer) {\n $interval.cancel(timer);\n }\n }\n\n $scope.pluginName = 'autocomplete';\n\n $scope.setPluginIsActive = function (isPluginActive) {\n $scope.pluginIsActive = isPluginActive;\n }\n\n const refreshEnabledStatus = function () {\n AutocompleteRestService.checkAutocompleteStatus()\n .success(function (data) {\n $scope.autocompleteEnabled = data;\n $autocompleteStatus.setAutocompleteStatus(data);\n }).error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const refreshIndexIRIs = function () {\n AutocompleteRestService.refreshIndexIRIs()\n .success(function (data) {\n $scope.shouldIndexIRIs = data;\n }).error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const refreshIndexStatus = function () {\n AutocompleteRestService.refreshIndexStatus()\n .success(function (data) {\n $scope.indexStatus = data;\n })\n .error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const refreshLabelConfig = function () {\n AutocompleteRestService.refreshLabelConfig()\n .success(function (data) {\n $scope.labelConfig = data;\n }).error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const addLabelConfig = function (label) {\n $scope.setLoader(true, 'Updating label config...');\n\n AutocompleteRestService.addLabelConfig(label)\n .success(function () {\n refreshLabelConfig();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n const removeLabelConfig = function (label) {\n $scope.setLoader(true, 'Updating label config...');\n\n AutocompleteRestService.removeLabelConfig(label)\n .success(function () {\n refreshLabelConfig();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.checkForPlugin = function () {\n $scope.pluginFound = false;\n\n $scope.setLoader(true);\n\n AutocompleteRestService.checkForPlugin()\n .success(function (data) {\n $scope.pluginFound = data === true;\n if ($scope.pluginFound) {\n refreshEnabledStatus();\n refreshIndexIRIs();\n refreshIndexStatus();\n refreshLabelConfig();\n } else {\n $scope.autocompleteEnabled = false;\n $scope.loading = false;\n }\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n const pullStatus = function () {\n timer = $interval(function () {\n $scope.$broadcast('checkIsActive');\n if ($scope.autocompleteEnabled) {\n refreshIndexStatus();\n }\n }, 5000);\n };\n\n $scope.$on(\"$destroy\", function () {\n cancelTimer();\n });\n\n const init = function() {\n if (!$licenseService.isLicenseValid() ||\n !$repositories.getActiveRepository() ||\n $repositories.isActiveRepoOntopType() ||\n $repositories.isActiveRepoFedXType()) {\n return;\n }\n $scope.checkForPlugin();\n pullStatus();\n };\n\n $scope.setLoader = function (loader, message) {\n $timeout.cancel($scope.loaderTimeout);\n if (loader) {\n $scope.loaderTimeout = $timeout(function () {\n $scope.loader = loader;\n $scope.loaderMessage = message;\n }, 300);\n } else {\n $scope.loader = false;\n }\n };\n\n $scope.getLoaderMessage = function () {\n return $scope.loaderMessage || 'Loading...';\n };\n\n $scope.toggleAutocomplete = function () {\n const newValue = !$scope.autocompleteEnabled;\n $scope.setLoader(true, newValue ? 'Enabling autocomplete...' : 'Disabling autocomplete...');\n\n AutocompleteRestService.toggleAutocomplete(newValue)\n .success(function () {\n refreshEnabledStatus();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.toggleIndexIRIs = function () {\n $scope.setLoader(true, 'Setting index IRIs...');\n\n AutocompleteRestService.toggleIndexIRIs(!$scope.shouldIndexIRIs)\n .success(function () {\n refreshIndexIRIs();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.buildIndex = function () {\n $scope.setLoader(true, 'Requesting index build...');\n\n AutocompleteRestService.buildIndex()\n .success(function () {\n $scope.indexStatus = 'BUILDING';\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.interruptIndexing = function () {\n $scope.setLoader(true, 'Interrupting index...');\n\n AutocompleteRestService.interruptIndexing()\n .success(function () {\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.getDegradedReason = function () {\n return $repositories.getDegradedReason();\n };\n\n $scope.addLabel = function () {\n $scope.editLabel({labelIri: '', languages: ''}, true);\n };\n\n $scope.editLabel = function (label, isNew) {\n const modalInstance = $modal.open({\n templateUrl: 'js/angular/autocomplete/templates/modal/add-label.html',\n controller: 'AddLabelCtrl',\n resolve: {\n data: function () {\n return {\n label: label,\n isNew: isNew\n };\n }\n }\n });\n\n modalInstance.result.then(function (label) {\n addLabelConfig(label);\n });\n };\n\n $scope.removeLabel = function (label) {\n removeLabelConfig(label);\n };\n\n $scope.$on('repositoryIsSet', function () {\n cancelTimer();\n if (!$licenseService.isLicenseValid() ||\n !$repositories.getActiveRepository() ||\n $repositories.isActiveRepoOntopType() ||\n $repositories.isActiveRepoFedXType()) {\n return;\n }\n $scope.checkForPlugin();\n pullStatus();\n });\n\n init();\n}\n\nAddLabelCtrl.$inject = ['$scope', '$modalInstance', '$timeout', 'data'];\n\nfunction AddLabelCtrl($scope, $modalInstance, $timeout, data) {\n $scope.label = angular.copy(data.label);\n $scope.isNew = data.isNew;\n\n $scope.ok = function () {\n if ($scope.form.$valid) {\n $modalInstance.close($scope.label);\n }\n };\n\n $scope.cancel = function () {\n $modalInstance.dismiss('cancel');\n };\n\n $scope.setTemplate = function (iri) {\n $scope.label.labelIri = iri;\n $timeout(function () {\n $('#wb-autocomplete-languages').focus();\n }, 0);\n };\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/autocomplete/controllers.js"],"names":["AutocompleteCtrl","$scope","$interval","toastr","$repositories","$licenseService","$modal","$timeout","AutocompleteRestService","$autocompleteStatus","timer","cancelTimer","cancel","pluginName","setPluginIsActive","isPluginActive","pluginIsActive","refreshEnabledStatus","checkAutocompleteStatus","success","data","autocompleteEnabled","setAutocompleteStatus","error","getError","refreshIndexIRIs","shouldIndexIRIs","refreshIndexStatus","indexStatus","refreshLabelConfig","labelConfig","checkForPlugin","pluginFound","setLoader","loading","finally","pullStatus","$broadcast","$on","loader","message","loaderTimeout","loaderMessage","getLoaderMessage","toggleAutocomplete","newValue","toggleIndexIRIs","buildIndex","interruptIndexing","getDegradedReason","addLabel","editLabel","labelIri","languages","label","isNew","open","templateUrl","controller","resolve","result","then","addLabelConfig","removeLabel","removeLabelConfig","isLicenseValid","getActiveRepository","isActiveRepoOntopType","isActiveRepoFedXType","AddLabelCtrl","$modalInstance","angular","copy","ok","form","$valid","close","dismiss","setTemplate","iri","$","focus","module","$inject"],"mappings":"0FAAA,aAcA,SAASA,EAAiBC,EAAQC,EAAWC,EAAQC,EAAeC,EAAiBC,EAAQC,EAAUC,EAAyBC,GAE5H,IAAIC,EAEJ,SAASC,IACDD,GACAR,EAAUU,OAAOF,GAIzBT,EAAOY,WAAa,eAEpBZ,EAAOa,kBAAoB,SAAUC,GACjCd,EAAOe,eAAiBD,GAG5B,MAAME,EAAuB,WACzBT,EAAwBU,0BACnBC,SAAQ,SAAUC,GACf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OoB,MAAMC,SAASJ,OACvBe,SAAQ,WACPlC,EAAOgC,WAAU,MAgKrB6B,CAAeR,OAIvBrD,EAAO8D,YAAc,SAAUT,IAhKL,SAAUA,GAChCrD,EAAOgC,WAAU,EAAM,4BAEvBzB,EAAwBwD,kBAAkBV,GACrCnC,SAAQ,WACLU,IACAF,OACDJ,OAAM,SAAUH,GACfjB,EAAOoB,MAAMC,SAASJ,OACvBe,SAAQ,WACPlC,EAAOgC,WAAU,MAuJzB+B,CAAkBV,IAGtBrD,EAAOqC,IAAI,mBAAmB,WAC1B3B,IACKN,EAAgB4D,kBAChB7D,EAAc8D,wBACX9D,EAAc+D,0BACV/D,EAAcgE,yBAG1BnE,EAAO8B,iBACPK,QAzHK/B,EAAgB4D,kBAChB7D,EAAc8D,wBACX9D,EAAc+D,0BACV/D,EAAcgE,yBAG1BnE,EAAO8B,iBACPK,KA0HR,SAASiC,EAAapE,EAAQqE,EAAgB/D,EAAUa,GACpDnB,EAAOqD,MAAQiB,QAAQC,KAAKpD,EAAKkC,OACjCrD,EAAOsD,MAAQnC,EAAKmC,MAEpBtD,EAAOwE,GAAK,WACJxE,EAAOyE,KAAKC,QACZL,EAAeM,MAAM3E,EAAOqD,QAIpCrD,EAAOW,OAAS,WACZ0D,EAAeO,QAAQ,WAG3B5E,EAAO6E,YAAc,SAAUC,GAC3B9E,EAAOqD,MAAMF,SAAW2B,EACxBxE,GAAS,WACLyE,EAAE,8BAA8BC,UACjC,IAlRXV,QACKW,OAAO,6CANI,CACZ,SACA,gDAKCxB,WAAW,mBAAoB1D,GAC/B0D,WAAW,eAAgBW,GAEhCrE,EAAiBmF,QAAU,CAAC,SAAU,YAAa,SAAU,gBAAiB,kBAAmB,SAAU,WAAY,0BAA2B,uBAyPlJd,EAAac,QAAU,CAAC,SAAU,iBAAkB,WAAY","file":"43.86f9220f4f79feec5b27.bundle.js","sourcesContent":["import 'angular/rest/autocomplete.rest.service';\n\nconst modules = [\n 'toastr',\n 'graphdb.framework.rest.autocomplete.service'\n];\n\nangular\n .module('graphdb.framework.autocomplete.controllers', modules)\n .controller('AutocompleteCtrl', AutocompleteCtrl)\n .controller('AddLabelCtrl', AddLabelCtrl);\n\nAutocompleteCtrl.$inject = ['$scope', '$interval', 'toastr', '$repositories', '$licenseService', '$modal', '$timeout', 'AutocompleteRestService', '$autocompleteStatus'];\n\nfunction AutocompleteCtrl($scope, $interval, toastr, $repositories, $licenseService, $modal, $timeout, AutocompleteRestService, $autocompleteStatus) {\n\n let timer;\n\n function cancelTimer() {\n if (timer) {\n $interval.cancel(timer);\n }\n }\n\n $scope.pluginName = 'autocomplete';\n\n $scope.setPluginIsActive = function (isPluginActive) {\n $scope.pluginIsActive = isPluginActive;\n }\n\n const refreshEnabledStatus = function () {\n AutocompleteRestService.checkAutocompleteStatus()\n .success(function (data) {\n $scope.autocompleteEnabled = data;\n $autocompleteStatus.setAutocompleteStatus(data);\n }).error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const refreshIndexIRIs = function () {\n AutocompleteRestService.refreshIndexIRIs()\n .success(function (data) {\n $scope.shouldIndexIRIs = data;\n }).error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const refreshIndexStatus = function () {\n AutocompleteRestService.refreshIndexStatus()\n .success(function (data) {\n $scope.indexStatus = data;\n })\n .error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const refreshLabelConfig = function () {\n AutocompleteRestService.refreshLabelConfig()\n .success(function (data) {\n $scope.labelConfig = data;\n }).error(function (data) {\n toastr.error(getError(data));\n });\n };\n\n const addLabelConfig = function (label) {\n $scope.setLoader(true, 'Updating label config...');\n\n AutocompleteRestService.addLabelConfig(label)\n .success(function () {\n refreshLabelConfig();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n const removeLabelConfig = function (label) {\n $scope.setLoader(true, 'Updating label config...');\n\n AutocompleteRestService.removeLabelConfig(label)\n .success(function () {\n refreshLabelConfig();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.checkForPlugin = function () {\n $scope.pluginFound = false;\n\n $scope.setLoader(true);\n\n AutocompleteRestService.checkForPlugin()\n .success(function (data) {\n $scope.pluginFound = data === true;\n if ($scope.pluginFound) {\n refreshEnabledStatus();\n refreshIndexIRIs();\n refreshIndexStatus();\n refreshLabelConfig();\n } else {\n $scope.autocompleteEnabled = false;\n $scope.loading = false;\n }\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n const pullStatus = function () {\n timer = $interval(function () {\n $scope.$broadcast('checkIsActive');\n if ($scope.autocompleteEnabled) {\n refreshIndexStatus();\n }\n }, 5000);\n };\n\n $scope.$on(\"$destroy\", function () {\n cancelTimer();\n });\n\n const init = function() {\n if (!$licenseService.isLicenseValid() ||\n !$repositories.getActiveRepository() ||\n $repositories.isActiveRepoOntopType() ||\n $repositories.isActiveRepoFedXType()) {\n return;\n }\n $scope.checkForPlugin();\n pullStatus();\n };\n\n $scope.setLoader = function (loader, message) {\n $timeout.cancel($scope.loaderTimeout);\n if (loader) {\n $scope.loaderTimeout = $timeout(function () {\n $scope.loader = loader;\n $scope.loaderMessage = message;\n }, 300);\n } else {\n $scope.loader = false;\n }\n };\n\n $scope.getLoaderMessage = function () {\n return $scope.loaderMessage || 'Loading...';\n };\n\n $scope.toggleAutocomplete = function () {\n const newValue = !$scope.autocompleteEnabled;\n $scope.setLoader(true, newValue ? 'Enabling autocomplete...' : 'Disabling autocomplete...');\n\n AutocompleteRestService.toggleAutocomplete(newValue)\n .success(function () {\n refreshEnabledStatus();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.toggleIndexIRIs = function () {\n $scope.setLoader(true, 'Setting index IRIs...');\n\n AutocompleteRestService.toggleIndexIRIs(!$scope.shouldIndexIRIs)\n .success(function () {\n refreshIndexIRIs();\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.buildIndex = function () {\n $scope.setLoader(true, 'Requesting index build...');\n\n AutocompleteRestService.buildIndex()\n .success(function () {\n $scope.indexStatus = 'BUILDING';\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.interruptIndexing = function () {\n $scope.setLoader(true, 'Interrupting index...');\n\n AutocompleteRestService.interruptIndexing()\n .success(function () {\n refreshIndexStatus();\n }).error(function (data) {\n toastr.error(getError(data));\n }).finally(function () {\n $scope.setLoader(false);\n });\n };\n\n $scope.getDegradedReason = function () {\n return $repositories.getDegradedReason();\n };\n\n $scope.addLabel = function () {\n $scope.editLabel({labelIri: '', languages: ''}, true);\n };\n\n $scope.editLabel = function (label, isNew) {\n const modalInstance = $modal.open({\n templateUrl: 'js/angular/autocomplete/templates/modal/add-label.html',\n controller: 'AddLabelCtrl',\n resolve: {\n data: function () {\n return {\n label: label,\n isNew: isNew\n };\n }\n }\n });\n\n modalInstance.result.then(function (label) {\n addLabelConfig(label);\n });\n };\n\n $scope.removeLabel = function (label) {\n removeLabelConfig(label);\n };\n\n $scope.$on('repositoryIsSet', function () {\n cancelTimer();\n if (!$licenseService.isLicenseValid() ||\n !$repositories.getActiveRepository() ||\n $repositories.isActiveRepoOntopType() ||\n $repositories.isActiveRepoFedXType()) {\n return;\n }\n $scope.checkForPlugin();\n pullStatus();\n });\n\n init();\n}\n\nAddLabelCtrl.$inject = ['$scope', '$modalInstance', '$timeout', 'data'];\n\nfunction AddLabelCtrl($scope, $modalInstance, $timeout, data) {\n $scope.label = angular.copy(data.label);\n $scope.isNew = data.isNew;\n\n $scope.ok = function () {\n if ($scope.form.$valid) {\n $modalInstance.close($scope.label);\n }\n };\n\n $scope.cancel = function () {\n $modalInstance.dismiss('cancel');\n };\n\n $scope.setTemplate = function (iri) {\n $scope.label.labelIri = iri;\n $timeout(function () {\n $('#wb-autocomplete-languages').focus();\n }, 0);\n };\n}\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[47],{44:function(e,t){function i(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,i,n){const o={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},a=i.parent(),c=i[0],l=c.style,f=window.getComputedStyle(i[0],null),r=i.children().length||o.lines,s="inherit"===o.min?f["font-size"]:o.min,d="inherit"===o.max?f["font-size"]:o.max,p=f["line-height"],u=f.display;let h;function m(){const e=o.calcSize*r/c.offsetWidth/r;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(a[0]).paddingLeft),i=parseFloat(getComputedStyle(a[0]).paddingRight);return(a[0].offsetWidth-(t+i))*e*o.compressor}(e),parseFloat(d)),parseFloat(s))}function w(){h&&e.cancel(h),h=e((function(){c.offsetHeight*c.offsetWidth!=0&&(l.fontSize=o.calcSize+"px",l.lineHeight="1",l.display="inline-block",l.fontSize=m()+"px",l.lineHeight=p,l.display=u)}),o.loadDelay)}t.$watch((function(){return[a[0].offsetWidth,i[0].offsetWidth].join("_")}),(function(){w()})),$(window).on("resize",o.debounce((function(){t.$apply(w)}),o.delay)),t.$on("$destroy",(function(){h&&e.cancel(h),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",i),i.$inject=["$timeout"]}}]);
2
- //# sourceMappingURL=47.92a64d48c14c1ae82934.bundle.js.map
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[47],{45:function(e,t){function i(e){return{restrict:"A",scope:{min:"=",max:"="},link:function(t,i,n){const o={debounce:_.debounce,delay:100,loadDelay:10,compressor:1,min:n.fitTextMin||"inherit",max:n.fitTextMax||"inherit",calcSize:10,lines:1},a=i.parent(),c=i[0],l=c.style,f=window.getComputedStyle(i[0],null),r=i.children().length||o.lines,s="inherit"===o.min?f["font-size"]:o.min,d="inherit"===o.max?f["font-size"]:o.max,p=f["line-height"],u=f.display;let h;function m(){const e=o.calcSize*r/c.offsetWidth/r;return Math.max(Math.min(function(e){const t=parseFloat(getComputedStyle(a[0]).paddingLeft),i=parseFloat(getComputedStyle(a[0]).paddingRight);return(a[0].offsetWidth-(t+i))*e*o.compressor}(e),parseFloat(d)),parseFloat(s))}function w(){h&&e.cancel(h),h=e((function(){c.offsetHeight*c.offsetWidth!=0&&(l.fontSize=o.calcSize+"px",l.lineHeight="1",l.display="inline-block",l.fontSize=m()+"px",l.lineHeight=p,l.display=u)}),o.loadDelay)}t.$watch((function(){return[a[0].offsetWidth,i[0].offsetWidth].join("_")}),(function(){w()})),$(window).on("resize",o.debounce((function(){t.$apply(w)}),o.delay)),t.$on("$destroy",(function(){h&&e.cancel(h),$(window).off("resize")}))}}}angular.module("graphdb.framework.core.directives.fittext",[]).directive("fitText",i),i.$inject=["$timeout"]}}]);
2
+ //# sourceMappingURL=47.fca0edd51becf34c06b7.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/core/directives/fit-text.directive.js"],"names":["fitTextDirective","$timeout","restrict","scope","min","max","link","element","attrs","config","_","debounce","fitTextMin","fitTextMax","parent","domElem","domElemStyle","style","computed","window","getComputedStyle","newlines","children","length","lines","minFontSize","maxFontSize","lineHeight","display","resizePromise","calculate","ratio","calcSize","offsetWidth","Math","paddingLeft","parseFloat","paddingRight","compressor","getMaxFontSize","resizer","cancel","offsetHeight","fontSize","loadDelay","$watch","join","$","on","$apply","delay","$on","off","angular","module","directive","$inject"],"mappings":"2EAOA,SAASA,EAAiBC,GACtB,MAAO,CACHC,SAAU,IACVC,MAAO,CACHC,IAAK,IACLC,IAAK,KAETC,KAAM,SAAUH,EAAOI,EAASC,GAE5B,MAAMC,EAAS,CACX,SAAYC,EAAEC,SACd,MAAS,IACT,UAAa,GACb,WAAc,EAC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QAEV/C,EAAMgD,IAAI,YAAY,WACdtB,GACA5B,EAASwC,OAAOZ,GAEpBkB,EAAE5B,QAAQiC,IAAI,eA5F9BC,QACKC,OAAO,4CAA6C,IACpDC,UAAU,UAAWvD,GAE1BA,EAAiBwD,QAAU,CAAC","file":"47.92a64d48c14c1ae82934.bundle.js","sourcesContent":["// This is a rework of the ng-FitText.js which can be found here https://github.com/patrickmarabeas/ng-FitText.js\nangular\n .module('graphdb.framework.core.directives.fittext', [])\n .directive('fitText', fitTextDirective);\n\nfitTextDirective.$inject = ['$timeout'];\n\nfunction fitTextDirective($timeout) {\n return {\n restrict: 'A',\n scope: {\n min: '=',\n max: '='\n },\n link: function (scope, element, attrs) {\n\n const config = {\n 'debounce': _.debounce,\n 'delay': 100,\n 'loadDelay': 10,\n 'compressor': 1,\n 'min': attrs.fitTextMin || 'inherit',\n 'max': attrs.fitTextMax || 'inherit',\n 'calcSize': 10,\n 'lines': 1\n };\n\n const parent = element.parent();\n const domElem = element[0];\n const domElemStyle = domElem.style;\n const computed = window.getComputedStyle(element[0], null);\n const newlines = element.children().length || config.lines;\n const minFontSize = config.min === 'inherit' ? computed['font-size'] : config.min;\n const maxFontSize = config.max === 'inherit' ? computed['font-size'] : config.max;\n const lineHeight = computed['line-height'];\n const display = computed['display'];\n let resizePromise;\n\n function calculate() {\n const ratio = (config.calcSize * newlines) / domElem.offsetWidth / newlines;\n return Math.max(Math.min(getMaxFontSize(ratio), parseFloat(maxFontSize)), parseFloat(minFontSize));\n }\n\n function getMaxFontSize(ratio) {\n const paddingLeft = parseFloat(getComputedStyle(parent[0]).paddingLeft);\n const paddingRight = parseFloat(getComputedStyle(parent[0]).paddingRight);\n\n return (parent[0].offsetWidth - (paddingLeft + paddingRight)) * ratio * config.compressor;\n }\n\n function resize() {\n if (domElem.offsetHeight * domElem.offsetWidth === 0) {\n return;\n }\n\n // Preset standard values for making the size calculation\n domElemStyle.fontSize = config.calcSize + 'px';\n domElemStyle.lineHeight = '1';\n domElemStyle.display = 'inline-block';\n\n // Set usage values\n domElemStyle.fontSize = calculate() + 'px';\n domElemStyle.lineHeight = lineHeight;\n domElemStyle.display = display;\n }\n\n function resizer() {\n if (resizePromise) {\n $timeout.cancel(resizePromise);\n }\n\n resizePromise = $timeout(function () {\n resize();\n }, config.loadDelay);\n }\n\n scope.$watch(function () {\n return [\n parent[0].offsetWidth,\n element[0].offsetWidth\n ].join('_');\n }, function () {\n resizer();\n });\n\n $(window).on('resize', config.debounce(function () {\n scope.$apply(resizer)\n }, config.delay));\n\n scope.$on('$destroy', function () {\n if (resizePromise) {\n $timeout.cancel(resizePromise);\n }\n $(window).off('resize');\n });\n }\n };\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/core/directives/fit-text.directive.js"],"names":["fitTextDirective","$timeout","restrict","scope","min","max","link","element","attrs","config","_","debounce","fitTextMin","fitTextMax","parent","domElem","domElemStyle","style","computed","window","getComputedStyle","newlines","children","length","lines","minFontSize","maxFontSize","lineHeight","display","resizePromise","calculate","ratio","calcSize","offsetWidth","Math","paddingLeft","parseFloat","paddingRight","compressor","getMaxFontSize","resizer","cancel","offsetHeight","fontSize","loadDelay","$watch","join","$","on","$apply","delay","$on","off","angular","module","directive","$inject"],"mappings":"2EAOA,SAASA,EAAiBC,GACtB,MAAO,CACHC,SAAU,IACVC,MAAO,CACHC,IAAK,IACLC,IAAK,KAETC,KAAM,SAAUH,EAAOI,EAASC,GAE5B,MAAMC,EAAS,CACX,SAAYC,EAAEC,SACd,MAAS,IACT,UAAa,GACb,WAAc,EACd,IAAOH,EAAMI,YAAc,UAC3B,IAAOJ,EAAMK,YAAc,UAC3B,SAAY,GACZ,MAAS,GAGPC,EAASP,EAAQO,SACjBC,EAAUR,EAAQ,GAClBS,EAAeD,EAAQE,MACvBC,EAAWC,OAAOC,iBAAiBb,EAAQ,GAAI,MAC/Cc,EAAWd,EAAQe,WAAWC,QAAUd,EAAOe,MAC/CC,EAA6B,YAAfhB,EAAOL,IAAoBc,EAAS,aAAeT,EAAOL,IACxEsB,EAA6B,YAAfjB,EAAOJ,IAAoBa,EAAS,aAAeT,EAAOJ,IACxEsB,EAAaT,EAAS,eACtBU,EAAUV,EAAkB,QAClC,IAAIW,EAEJ,SAASC,IACL,MAAMC,EAAStB,EAAOuB,SAAWX,EAAYN,EAAQkB,YAAcZ,EACnE,OAAOa,KAAK7B,IAAI6B,KAAK9B,IAGzB,SAAwB2B,GACpB,MAAMI,EAAcC,WAAWhB,iBAAiBN,EAAO,IAAIqB,aACrDE,EAAeD,WAAWhB,iBAAiBN,EAAO,IAAIuB,cAE5D,OAAQvB,EAAO,GAAGmB,aAAeE,EAAcE,IAAiBN,EAAQtB,EAAO6B,WAPtDC,CAAeR,GAAQK,WAAWV,IAAeU,WAAWX,IA0BzF,SAASe,IACDX,GACA5B,EAASwC,OAAOZ,GAGpBA,EAAgB5B,GAAS,WApBrBc,EAAQ2B,aAAe3B,EAAQkB,aAAgB,IAKnDjB,EAAa2B,SAAWlC,EAAOuB,SAAW,KAC1ChB,EAAaW,WAAa,IAC1BX,EAAaY,QAAU,eAGvBZ,EAAa2B,SAAWb,IAAc,KACtCd,EAAaW,WAAaA,EAC1BX,EAAaY,QAAUA,KAUpBnB,EAAOmC,WAGdzC,EAAM0C,QAAO,WACT,MAAO,CACH/B,EAAO,GAAGmB,YACV1B,EAAQ,GAAG0B,aACba,KAAK,QACR,WACCN,OAGJO,EAAE5B,QAAQ6B,GAAG,SAAUvC,EAAOE,UAAS,WACnCR,EAAM8C,OAAOT,KACd/B,EAAOyC,QAEV/C,EAAMgD,IAAI,YAAY,WACdtB,GACA5B,EAASwC,OAAOZ,GAEpBkB,EAAE5B,QAAQiC,IAAI,eA5F9BC,QACKC,OAAO,4CAA6C,IACpDC,UAAU,UAAWvD,GAE1BA,EAAiBwD,QAAU,CAAC","file":"47.fca0edd51becf34c06b7.bundle.js","sourcesContent":["// This is a rework of the ng-FitText.js which can be found here https://github.com/patrickmarabeas/ng-FitText.js\nangular\n .module('graphdb.framework.core.directives.fittext', [])\n .directive('fitText', fitTextDirective);\n\nfitTextDirective.$inject = ['$timeout'];\n\nfunction fitTextDirective($timeout) {\n return {\n restrict: 'A',\n scope: {\n min: '=',\n max: '='\n },\n link: function (scope, element, attrs) {\n\n const config = {\n 'debounce': _.debounce,\n 'delay': 100,\n 'loadDelay': 10,\n 'compressor': 1,\n 'min': attrs.fitTextMin || 'inherit',\n 'max': attrs.fitTextMax || 'inherit',\n 'calcSize': 10,\n 'lines': 1\n };\n\n const parent = element.parent();\n const domElem = element[0];\n const domElemStyle = domElem.style;\n const computed = window.getComputedStyle(element[0], null);\n const newlines = element.children().length || config.lines;\n const minFontSize = config.min === 'inherit' ? computed['font-size'] : config.min;\n const maxFontSize = config.max === 'inherit' ? computed['font-size'] : config.max;\n const lineHeight = computed['line-height'];\n const display = computed['display'];\n let resizePromise;\n\n function calculate() {\n const ratio = (config.calcSize * newlines) / domElem.offsetWidth / newlines;\n return Math.max(Math.min(getMaxFontSize(ratio), parseFloat(maxFontSize)), parseFloat(minFontSize));\n }\n\n function getMaxFontSize(ratio) {\n const paddingLeft = parseFloat(getComputedStyle(parent[0]).paddingLeft);\n const paddingRight = parseFloat(getComputedStyle(parent[0]).paddingRight);\n\n return (parent[0].offsetWidth - (paddingLeft + paddingRight)) * ratio * config.compressor;\n }\n\n function resize() {\n if (domElem.offsetHeight * domElem.offsetWidth === 0) {\n return;\n }\n\n // Preset standard values for making the size calculation\n domElemStyle.fontSize = config.calcSize + 'px';\n domElemStyle.lineHeight = '1';\n domElemStyle.display = 'inline-block';\n\n // Set usage values\n domElemStyle.fontSize = calculate() + 'px';\n domElemStyle.lineHeight = lineHeight;\n domElemStyle.display = display;\n }\n\n function resizer() {\n if (resizePromise) {\n $timeout.cancel(resizePromise);\n }\n\n resizePromise = $timeout(function () {\n resize();\n }, config.loadDelay);\n }\n\n scope.$watch(function () {\n return [\n parent[0].offsetWidth,\n element[0].offsetWidth\n ].join('_');\n }, function () {\n resizer();\n });\n\n $(window).on('resize', config.debounce(function () {\n scope.$apply(resizer)\n }, config.delay));\n\n scope.$on('$destroy', function () {\n if (resizePromise) {\n $timeout.cancel(resizePromise);\n }\n $(window).off('resize');\n });\n }\n };\n}\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[48],{38:function(a,e){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true"></pagination>'}}))}}]);
2
- //# sourceMappingURL=48.4b57a948edab2d3b9c55.bundle.js.map
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[48],{39:function(a,e){angular.module("graphdb.framework.core.directives.paginations",[]).directive("paginations",(function(){return{template:'<pagination class="nav navbar-right" total-items="matchedElements.length" items-per-page="pageSize" ng-model="page" ng-change="changePagination()" direction-links="false" boundary-links="true" max-size="5" rotate="true"></pagination>'}}))}}]);
2
+ //# sourceMappingURL=48.e495edf3c48e1b2fc052.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/core/directives/paginations.js"],"names":["angular","module","directive","template"],"mappings":"2EAAAA,QAAQC,OAAO,gDAAiD,IAC3DC,UAAU,eAAe,WACtB,MAAO,CACHC,SAAU","file":"48.4b57a948edab2d3b9c55.bundle.js","sourcesContent":["angular.module('graphdb.framework.core.directives.paginations', [])\n .directive('paginations', function () {\n return {\n template: '<pagination class=\"nav navbar-right\" total-items=\"matchedElements.length\" items-per-page=\"pageSize\" ng-model=\"page\" ng-change=\"changePagination()\" direction-links=\"false\" boundary-links=\"true\" max-size=\"5\" rotate=\"true\"></pagination>',\n };\n });\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/core/directives/paginations.js"],"names":["angular","module","directive","template"],"mappings":"2EAAAA,QAAQC,OAAO,gDAAiD,IAC3DC,UAAU,eAAe,WACtB,MAAO,CACHC,SAAU","file":"48.e495edf3c48e1b2fc052.bundle.js","sourcesContent":["angular.module('graphdb.framework.core.directives.paginations', [])\n .directive('paginations', function () {\n return {\n template: '<pagination class=\"nav navbar-right\" total-items=\"matchedElements.length\" items-per-page=\"pageSize\" ng-model=\"page\" ng-change=\"changePagination()\" direction-links=\"false\" boundary-links=\"true\" max-size=\"5\" rotate=\"true\"></pagination>',\n };\n });\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[53],{45:function(e,t){function a(){return{transformToTrig:function(e){let t="";const a={};for(let t=0;t<e.length;t++){const l=e[t];if(void 0===l.context?l.context="":l.context=_.trim(l.context),angular.isUndefined(a[l.context])){const e=[];e.push(l),a[l.context]=e}else a[l.context].push(l)}const l=Object.keys(a);for(let e=0;e<l.length;e++){const n=l[e];t+=""===n?"\n{":"\n<"+n+"> {";const w=a[n];for(let e=0;e<w.length;e++){const a=w[e];t+="\n\t<"+a.subject+"> <"+a.predicate+"> ","uri"===a.object.type?t+="<"+a.object.value+"> .":t+='"'+a.object.value+'"'+(a.object.datatype?"^^<"+a.object.datatype+">":a.object.lang?"@"+a.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){const a=[];if(!_.isEmpty(e.data)){const l=e.data[t],n=Object.keys(l);for(let e=0;e<n.length;e++){const w=n[e],o=l[w];for(let e=0;e<o.length;e++){const l=o[e];for(let e=0;e<l.graphs.length;e++){let n=l.graphs[e];"http://www.ontotext.com/explicit"===n&&(n=""),l.lang&&(l.datatype=""),l.datatype||(l.datatype=""),a.push({subject:t,predicate:w,object:{value:l.value,type:l.type,datatype:l.datatype,lang:l.lang},context:n})}}}}return a},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",a),a.$inject=[]}}]);
2
- //# sourceMappingURL=53.4b8ed1b79c1c20cdadd4.bundle.js.map
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[53],{46:function(e,t){function a(){return{transformToTrig:function(e){let t="";const a={};for(let t=0;t<e.length;t++){const l=e[t];if(void 0===l.context?l.context="":l.context=_.trim(l.context),angular.isUndefined(a[l.context])){const e=[];e.push(l),a[l.context]=e}else a[l.context].push(l)}const l=Object.keys(a);for(let e=0;e<l.length;e++){const n=l[e];t+=""===n?"\n{":"\n<"+n+"> {";const w=a[n];for(let e=0;e<w.length;e++){const a=w[e];t+="\n\t<"+a.subject+"> <"+a.predicate+"> ","uri"===a.object.type?t+="<"+a.object.value+"> .":t+='"'+a.object.value+'"'+(a.object.datatype?"^^<"+a.object.datatype+">":a.object.lang?"@"+a.object.lang:"")+" ."}t+="\n}"}return t},buildStatements:function(e,t){const a=[];if(!_.isEmpty(e.data)){const l=e.data[t],n=Object.keys(l);for(let e=0;e<n.length;e++){const w=n[e],o=l[w];for(let e=0;e<o.length;e++){const l=o[e];for(let e=0;e<l.graphs.length;e++){let n=l.graphs[e];"http://www.ontotext.com/explicit"===n&&(n=""),l.lang&&(l.datatype=""),l.datatype||(l.datatype=""),a.push({subject:t,predicate:w,object:{value:l.value,type:l.type,datatype:l.datatype,lang:l.lang},context:n})}}}}return a},getDatatypeOptions:function(){return[{value:"",label:"string"},{value:"http://www.w3.org/2001/XMLSchema#boolean",label:"boolean"},{value:"http://www.w3.org/2001/XMLSchema#decimal",label:"decimal"},{value:"http://www.w3.org/2001/XMLSchema#integer",label:"integer"},{value:"http://www.w3.org/2001/XMLSchema#double",label:"double"},{value:"http://www.w3.org/2001/XMLSchema#float",label:"float"},{value:"http://www.w3.org/2001/XMLSchema#date",label:"date"},{value:"http://www.w3.org/2001/XMLSchema#time",label:"time"},{value:"http://www.w3.org/2001/XMLSchema#dateTime",label:"date time"},{value:"http://www.w3.org/2001/XMLSchema#byte",label:"byte"},{value:"http://www.w3.org/2001/XMLSchema#short",label:"short"},{value:"http://www.w3.org/2001/XMLSchema#int",label:"int"},{value:"http://www.w3.org/2001/XMLSchema#long",label:"long"},{value:"http://www.w3.org/2001/XMLSchema#unsignedByte",label:"unsigned byte"},{value:"http://www.w3.org/2001/XMLSchema#unsignedShort",label:"unsigned short"},{value:"http://www.w3.org/2001/XMLSchema#unsignedInt",label:"unsigned int"},{value:"http://www.w3.org/2001/XMLSchema#unsignedLong",label:"unsigned long"},{value:"http://www.w3.org/2001/XMLSchema#positoveInteger",label:"positive integer"},{value:"http://www.w3.org/2001/XMLSchema#nonNegativeInteger",label:"non-negative integer"},{value:"http://www.w3.org/2001/XMLSchema#negativeInteger",label:"negative integer"},{value:"http://www.w3.org/2001/XMLSchema#nonPositiveInteger",label:"non-positive integer"},{value:"http://www.w3.org/2001/XMLSchema#gYear",label:"gYear"},{value:"http://www.w3.org/2001/XMLSchema#gMonth",label:"gMonth"},{value:"http://www.w3.org/2001/XMLSchema#gDay",label:"gDay"},{value:"http://www.w3.org/2001/XMLSchema#gYearMonth",label:"gYearMonth"},{value:"http://www.w3.org/2001/XMLSchema#gMonthDay",label:"gMonthDay"},{value:"http://www.w3.org/2001/XMLSchema#duration",label:"duration"},{value:"http://www.w3.org/2001/XMLSchema#hexBinary",label:"hex binary"},{value:"http://www.w3.org/2001/XMLSchema#base64Binary",label:"base64 binary"}]}}}angular.module("graphdb.framework.explore.services",[]).factory("StatementsService",a),a.$inject=[]}}]);
2
+ //# sourceMappingURL=53.c29678970b0cb8aa4b47.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/explore/statements.service.js"],"names":["StatementsService","transformToTrig","statements","data","contexts","i","length","statement","undefined","context","_","trim","angular","isUndefined","cstatement","push","ckeys","Object","keys","key","value","j","subject","predicate","object","type","datatype","lang","buildStatements","res","uri","isEmpty","graph","predicates","objects","k","graphs","getDatatypeOptions","label","module","factory","$inject"],"mappings":"2EAMA,SAASA,IAoLL,MAAO,CACHC,gBApLJ,SAAyBC,GACrB,IAAIC,EAAO,GACX,MAAMC,EAAW,GAEjB,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AO,UACR,CACClB,MAAO,wCACPkB,MAAO,QACR,CACClB,MAAO,8CACPkB,MAAO,cACR,CACClB,MAAO,6CACPkB,MAAO,aACR,CACClB,MAAO,4CACPkB,MAAO,YACR,CACClB,MAAO,6CACPkB,MAAO,cACR,CACClB,MAAO,gDACPkB,MAAO,oBArLvB1B,QACK2B,OAAO,qCAAsC,IAC7CC,QAAQ,oBAAqBxC,GAElCA,EAAkByC,QAAU","file":"53.4b8ed1b79c1c20cdadd4.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.explore.services', [])\n .factory('StatementsService', StatementsService);\n\nStatementsService.$inject = [];\n\nfunction StatementsService() {\n function transformToTrig(statements) {\n let data = '';\n const contexts = {};\n\n for (let i = 0; i < statements.length; i++) {\n const statement = statements[i];\n if (statement.context === undefined) {\n statement.context = '';\n } else {\n statement.context = _.trim(statement.context);\n }\n if (angular.isUndefined(contexts[statement.context])) {\n const cstatement = [];\n cstatement.push(statement);\n contexts[statement.context] = cstatement;\n } else {\n contexts[statement.context].push(statement);\n }\n }\n\n const ckeys = Object.keys(contexts);\n for (let i = 0; i < ckeys.length; i++) {\n const key = ckeys[i];\n if (key === '') {\n data += '\\n{';\n } else {\n data += '\\n<' + key + '> {';\n }\n\n const value = contexts[key];\n for (let j = 0; j < value.length; j++) {\n const statement = value[j];\n data += '\\n\\t<' + statement.subject + '> <' + statement.predicate + '> ';\n if (statement.object.type === 'uri') {\n data += '<' + statement.object.value + '> .';\n } else {\n data += '\"' + statement.object.value + '\"' + (statement.object.datatype ? '^^<' + statement.object.datatype + '>' : (statement.object.lang ? '@' + statement.object.lang : '')) + ' .';\n }\n }\n\n data += '\\n}';\n }\n\n return data;\n }\n\n function buildStatements(res, uri) {\n const statements = [];\n if (!_.isEmpty(res.data)) {\n const graph = res.data[uri];\n const predicates = Object.keys(graph);\n for (let i = 0; i < predicates.length; i++) {\n const predicate = predicates[i];\n const objects = graph[predicate];\n for (let j = 0; j < objects.length; j++) {\n const object = objects[j];\n for (let k = 0; k < object.graphs.length; k++) {\n let context = object.graphs[k];\n if (context === 'http://www.ontotext.com/explicit') {\n // Statements in the default context are special\n context = '';\n }\n if (object.lang) {\n object.datatype = '';\n }\n if (!object.datatype) {\n object.datatype = '';\n }\n statements.push({\n subject: uri,\n predicate: predicate,\n object: {\n value: object.value,\n type: object.type,\n datatype: object.datatype,\n lang: object.lang\n },\n context: context\n });\n }\n }\n }\n }\n return statements;\n }\n\n function getDatatypeOptions() {\n return [\n {\n value: '',\n label: 'string'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#boolean',\n label: 'boolean'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#decimal',\n label: 'decimal'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#integer',\n label: 'integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#double',\n label: 'double'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#float',\n label: 'float'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#date',\n label: 'date'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#time',\n label: 'time'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#dateTime',\n label: 'date time'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#byte',\n label: 'byte'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#short',\n label: 'short'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#int',\n label: 'int'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#long',\n label: 'long'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedByte',\n label: 'unsigned byte'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedShort',\n label: 'unsigned short'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedInt',\n label: 'unsigned int'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedLong',\n label: 'unsigned long'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#positoveInteger',\n label: 'positive integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger',\n label: 'non-negative integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#negativeInteger',\n label: 'negative integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#nonPositiveInteger',\n label: 'non-positive integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gYear',\n label: 'gYear'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gMonth',\n label: 'gMonth'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gDay',\n label: 'gDay'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gYearMonth',\n label: 'gYearMonth'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gMonthDay',\n label: 'gMonthDay'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#duration',\n label: 'duration'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#hexBinary',\n label: 'hex binary'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#base64Binary',\n label: 'base64 binary'\n }\n ];\n }\n\n return {\n transformToTrig: transformToTrig,\n buildStatements: buildStatements,\n getDatatypeOptions: getDatatypeOptions\n };\n}\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/explore/statements.service.js"],"names":["StatementsService","transformToTrig","statements","data","contexts","i","length","statement","undefined","context","_","trim","angular","isUndefined","cstatement","push","ckeys","Object","keys","key","value","j","subject","predicate","object","type","datatype","lang","buildStatements","res","uri","isEmpty","graph","predicates","objects","k","graphs","getDatatypeOptions","label","module","factory","$inject"],"mappings":"2EAMA,SAASA,IAoLL,MAAO,CACHC,gBApLJ,SAAyBC,GACrB,IAAIC,EAAO,GACX,MAAMC,EAAW,GAEjB,IAAK,IAAIC,EAAI,EAAGA,EAAIH,EAAWI,OAAQD,IAAK,CACxC,MAAME,EAAYL,EAAWG,GAM7B,QAL0BG,IAAtBD,EAAUE,QACVF,EAAUE,QAAU,GAEpBF,EAAUE,QAAUC,EAAEC,KAAKJ,EAAUE,SAErCG,QAAQC,YA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AAOD,GACZ,qCAAZ1B,IAEAA,EAAU,IAEVe,EAAOG,OACPH,EAAOE,SAAW,IAEjBF,EAAOE,WACRF,EAAOE,SAAW,IAEtBxB,EAAWa,KAAK,CACZO,QAASQ,EACTP,UAAWA,EACXC,OAAQ,CACJJ,MAAOI,EAAOJ,MACdK,KAAMD,EAAOC,KACbC,SAAUF,EAAOE,SACjBC,KAAMH,EAAOG,MAEjBlB,QAASA,OAM7B,OAAOP,GAmGPmC,mBAhGJ,WACI,MAAO,CACH,CACIjB,MAAO,GACPkB,MAAO,UACR,CACClB,MAAO,2CACPkB,MAAO,WACR,CACClB,MAAO,2CACPkB,MAAO,WACR,CACClB,MAAO,2CACPkB,MAAO,WACR,CACClB,MAAO,0CACPkB,MAAO,UACR,CACClB,MAAO,yCACPkB,MAAO,SACR,CACClB,MAAO,wCACPkB,MAAO,QACR,CACClB,MAAO,wCACPkB,MAAO,QACR,CACClB,MAAO,4CACPkB,MAAO,aACR,CACClB,MAAO,wCACPkB,MAAO,QACR,CACClB,MAAO,yCACPkB,MAAO,SACR,CACClB,MAAO,uCACPkB,MAAO,OACR,CACClB,MAAO,wCACPkB,MAAO,QACR,CACClB,MAAO,gDACPkB,MAAO,iBACR,CACClB,MAAO,iDACPkB,MAAO,kBACR,CACClB,MAAO,+CACPkB,MAAO,gBACR,CACClB,MAAO,gDACPkB,MAAO,iBACR,CACClB,MAAO,mDACPkB,MAAO,oBACR,CACClB,MAAO,sDACPkB,MAAO,wBACR,CACClB,MAAO,mDACPkB,MAAO,oBACR,CACClB,MAAO,sDACPkB,MAAO,wBACR,CACClB,MAAO,yCACPkB,MAAO,SACR,CACClB,MAAO,0CACPkB,MAAO,UACR,CACClB,MAAO,wCACPkB,MAAO,QACR,CACClB,MAAO,8CACPkB,MAAO,cACR,CACClB,MAAO,6CACPkB,MAAO,aACR,CACClB,MAAO,4CACPkB,MAAO,YACR,CACClB,MAAO,6CACPkB,MAAO,cACR,CACClB,MAAO,gDACPkB,MAAO,oBArLvB1B,QACK2B,OAAO,qCAAsC,IAC7CC,QAAQ,oBAAqBxC,GAElCA,EAAkByC,QAAU","file":"53.c29678970b0cb8aa4b47.bundle.js","sourcesContent":["angular\n .module('graphdb.framework.explore.services', [])\n .factory('StatementsService', StatementsService);\n\nStatementsService.$inject = [];\n\nfunction StatementsService() {\n function transformToTrig(statements) {\n let data = '';\n const contexts = {};\n\n for (let i = 0; i < statements.length; i++) {\n const statement = statements[i];\n if (statement.context === undefined) {\n statement.context = '';\n } else {\n statement.context = _.trim(statement.context);\n }\n if (angular.isUndefined(contexts[statement.context])) {\n const cstatement = [];\n cstatement.push(statement);\n contexts[statement.context] = cstatement;\n } else {\n contexts[statement.context].push(statement);\n }\n }\n\n const ckeys = Object.keys(contexts);\n for (let i = 0; i < ckeys.length; i++) {\n const key = ckeys[i];\n if (key === '') {\n data += '\\n{';\n } else {\n data += '\\n<' + key + '> {';\n }\n\n const value = contexts[key];\n for (let j = 0; j < value.length; j++) {\n const statement = value[j];\n data += '\\n\\t<' + statement.subject + '> <' + statement.predicate + '> ';\n if (statement.object.type === 'uri') {\n data += '<' + statement.object.value + '> .';\n } else {\n data += '\"' + statement.object.value + '\"' + (statement.object.datatype ? '^^<' + statement.object.datatype + '>' : (statement.object.lang ? '@' + statement.object.lang : '')) + ' .';\n }\n }\n\n data += '\\n}';\n }\n\n return data;\n }\n\n function buildStatements(res, uri) {\n const statements = [];\n if (!_.isEmpty(res.data)) {\n const graph = res.data[uri];\n const predicates = Object.keys(graph);\n for (let i = 0; i < predicates.length; i++) {\n const predicate = predicates[i];\n const objects = graph[predicate];\n for (let j = 0; j < objects.length; j++) {\n const object = objects[j];\n for (let k = 0; k < object.graphs.length; k++) {\n let context = object.graphs[k];\n if (context === 'http://www.ontotext.com/explicit') {\n // Statements in the default context are special\n context = '';\n }\n if (object.lang) {\n object.datatype = '';\n }\n if (!object.datatype) {\n object.datatype = '';\n }\n statements.push({\n subject: uri,\n predicate: predicate,\n object: {\n value: object.value,\n type: object.type,\n datatype: object.datatype,\n lang: object.lang\n },\n context: context\n });\n }\n }\n }\n }\n return statements;\n }\n\n function getDatatypeOptions() {\n return [\n {\n value: '',\n label: 'string'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#boolean',\n label: 'boolean'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#decimal',\n label: 'decimal'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#integer',\n label: 'integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#double',\n label: 'double'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#float',\n label: 'float'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#date',\n label: 'date'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#time',\n label: 'time'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#dateTime',\n label: 'date time'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#byte',\n label: 'byte'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#short',\n label: 'short'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#int',\n label: 'int'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#long',\n label: 'long'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedByte',\n label: 'unsigned byte'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedShort',\n label: 'unsigned short'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedInt',\n label: 'unsigned int'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#unsignedLong',\n label: 'unsigned long'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#positoveInteger',\n label: 'positive integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#nonNegativeInteger',\n label: 'non-negative integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#negativeInteger',\n label: 'negative integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#nonPositiveInteger',\n label: 'non-positive integer'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gYear',\n label: 'gYear'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gMonth',\n label: 'gMonth'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gDay',\n label: 'gDay'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gYearMonth',\n label: 'gYearMonth'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#gMonthDay',\n label: 'gMonthDay'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#duration',\n label: 'duration'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#hexBinary',\n label: 'hex binary'\n }, {\n value: 'http://www.w3.org/2001/XMLSchema#base64Binary',\n label: 'base64 binary'\n }\n ];\n }\n\n return {\n transformToTrig: transformToTrig,\n buildStatements: buildStatements,\n getDatatypeOptions: getDatatypeOptions\n };\n}\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{48:function(r,e,t){"use strict";t.r(e);t(2);angular.module("graphdb.framework.externalsync.directives",[]).directive("createProgress",(function(){return{templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",restrict:"EA"}}))}}]);
2
- //# sourceMappingURL=55.751acc0e54255fa3ace7.bundle.js.map
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[55],{49:function(r,e,t){"use strict";t.r(e);t(2);angular.module("graphdb.framework.externalsync.directives",[]).directive("createProgress",(function(){return{templateUrl:"pages/connectorProgress.html",controller:"CreateProgressCtrl",restrict:"EA"}}))}}]);
2
+ //# sourceMappingURL=55.427172af3ba7612f747a.bundle.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["webpack:///./src/js/angular/externalsync/directives.js"],"names":["angular","module","directive","templateUrl","controller","restrict"],"mappings":"0FAAA,YAEAA,QAAQC,OAAO,4CAA6C,IACvDC,UAAU,kBAAkB,WACzB,MAAO,CACHC,YAAa,+BACbC,WAAY,qBACZC,SAAU","file":"55.751acc0e54255fa3ace7.bundle.js","sourcesContent":["import 'angular/core/services';\n\nangular.module('graphdb.framework.externalsync.directives', [])\n .directive('createProgress', function () {\n return {\n templateUrl: 'pages/connectorProgress.html',\n controller: 'CreateProgressCtrl',\n restrict: 'EA'\n };\n });\n"],"sourceRoot":""}
1
+ {"version":3,"sources":["webpack:///./src/js/angular/externalsync/directives.js"],"names":["angular","module","directive","templateUrl","controller","restrict"],"mappings":"0FAAA,YAEAA,QAAQC,OAAO,4CAA6C,IACvDC,UAAU,kBAAkB,WACzB,MAAO,CACHC,YAAa,+BACbC,WAAY,qBACZC,SAAU","file":"55.427172af3ba7612f747a.bundle.js","sourcesContent":["import 'angular/core/services';\n\nangular.module('graphdb.framework.externalsync.directives', [])\n .directive('createProgress', function () {\n return {\n templateUrl: 'pages/connectorProgress.html',\n controller: 'CreateProgressCtrl',\n restrict: 'EA'\n };\n });\n"],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- (window.webpackJsonp=window.webpackJsonp||[]).push([[57],{55:function(e,t,s){(function(e){const t={WAIT:"WAIT",NO_REPO:"NO_REPO",READY:"READY",IN_PROGRESS:"IN_PROGRESS",ERROR:"ERROR"},s={contextID:{type:"all",value:"All graphs",uri:""}};function n(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let s=e/Math.pow(1e3,t);return s=s%1>1/Math.pow(1e3,t-1)?s.toFixed(2):s.toFixed(0),s+["K","M","G","T","P","H"][t-1]}function r(e,n,r,o,i,a,l,c,u,d){let p=null;e.status=r.getActiveRepository()?t.WAIT:t.NO_REPO;let f=s;const R=function(){d.resolveGraphs().success((function(t){e.graphsInRepo=t.results.bindings,h(),e.isSystemRepository()?"READY"!==e.status&&m():(e.status="WAIT",m(!0))})).error((function(t){e.repositoryError=getError(t),o.error(getError(t),"Error getting graphs")}))},h=function(){const t=u.get(`dependencies-selectedGraph-${r.getActiveRepository()}`);null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?f=t:u.set(`dependencies-selectedGraph-${r.getActiveRepository()}`,f)},g=function(s){d3.select("#dependencies-chord").html(""),e.status=t.WAIT,a.getRelationshipsData(s,e.direction,f.contextID.uri).success((function(s){e.dependenciesData={matrix:s.right,nodes:s.left,hasLinks:_.sum(_.map(s.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=t.READY})).error((function(s){e.status=t.READY,o.error(getError(s),"Could not get dependencies count")}))},m=function(s){(e.status!==t.READY||s)&&(e.status=t.WAIT,a.getRelationshipsStatus(f.contextID.uri).success((function(s){if(e.status=s,e.status===t.IN_PROGRESS){if(null!==p)return;p=i(m,2e3)}e.status===t.READY&&(null!==p&&(i.cancel(p),p=null),a.getRelationshipsClasses(e.direction,f.contextID.uri).success((function(t,s){e.allClasses.items=_.filter(t,v),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),g(e.selectedClasses),207===s&&o.warning("You can update the diagram by pressing the reload button.","Repository data has changed")}))),0===e.status.indexOf("ERROR;")&&(e.status=t.ERROR,o.error("There was an error while calculating dependencies: "+e.status.substring("ERROR;".length)))})).error((function(s){e.status=t.ERROR,o.error(getError(s),"Could not get dependencies count status!")})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const C={};let y=0,E=0;function v(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}n.key="",C.get=function(t,s,n){return l.initLazyList(t,s,n,y,e.allClasses.items)},n.$watch((function(){return n.key}),(function(){y=0,_.each(e.allClasses.items,(function(e){n.key>e&&y++})),E++})),C.revision=function(){return E},e.datasource=C,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=v,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&i((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!r.getActiveRepository()||e.isSystemRepository()||r.isActiveRepoFedXType()||R()})),e.$on("$destroy",(function(){i.cancel(p)})),e.isLoading=function(){return e.status===t.IN_PROGRESS||e.status===t.WAIT},e.confirmCalculateDependencies=function(){c.openSimpleModal({title:"Confirm operation",message:"Calculating relationships data may take some time. Are you sure?",warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t.WAIT,e.selectedClasses=void 0,a.calculateRelationships(f.contextID.uri).success((function(e){0===e.indexOf("ERROR;")?o.error("There was an error while calculating dependencies: "+e.substring("ERROR;".length)):m()})).error((function(e){o.error("Could not force dependencies count"+getError(e))}))},e.addClass=function(t){e.selectedClasses.push(t),g(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),g(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),g(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),g(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],g(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===r.getActiveRepository()};const A=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,f=s,r.getActiveRepository()&&!r.isActiveRepoFedXType()?R():e.status=t.NO_REPO}));window.addEventListener("beforeunload",(function e(){A(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){f=e,m(!0),u.set(`dependencies-selectedGraph-${r.getActiveRepository()}`,f)},e.getSelectedGraphValue=function(){return f.contextID.value},e.isAllGraphsSelected=function(){return"All graphs"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>s}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",r).config(["$tooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return n})),r.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService"]}).call(this,s(3))}}]);
2
- //# sourceMappingURL=57.677c1eebf6a003639fff.bundle.js.map
1
+ (window.webpackJsonp=window.webpackJsonp||[]).push([[57],{56:function(e,t,s){(function(e){const t={WAIT:"WAIT",NO_REPO:"NO_REPO",READY:"READY",IN_PROGRESS:"IN_PROGRESS",ERROR:"ERROR"},s={contextID:{type:"all",value:"All graphs",uri:""}};function n(e){if(e<1e3)return e;const t=Math.floor(Math.log(e)/Math.log(1e3));let s=e/Math.pow(1e3,t);return s=s%1>1/Math.pow(1e3,t-1)?s.toFixed(2):s.toFixed(0),s+["K","M","G","T","P","H"][t-1]}function r(e,n,r,o,i,a,l,c,u,d){let p=null;e.status=r.getActiveRepository()?t.WAIT:t.NO_REPO;let f=s;const R=function(){d.resolveGraphs().success((function(t){e.graphsInRepo=t.results.bindings,h(),e.isSystemRepository()?"READY"!==e.status&&m():(e.status="WAIT",m(!0))})).error((function(t){e.repositoryError=getError(t),o.error(getError(t),"Error getting graphs")}))},h=function(){const t=u.get(`dependencies-selectedGraph-${r.getActiveRepository()}`);null!==t&&e.graphsInRepo.some(e=>e.contextID.uri===t.contextID.uri)?f=t:u.set(`dependencies-selectedGraph-${r.getActiveRepository()}`,f)},g=function(s){d3.select("#dependencies-chord").html(""),e.status=t.WAIT,a.getRelationshipsData(s,e.direction,f.contextID.uri).success((function(s){e.dependenciesData={matrix:s.right,nodes:s.left,hasLinks:_.sum(_.map(s.right,(function(e){return _.sum(e)})))>0,direction:e.direction},e.status=t.READY})).error((function(s){e.status=t.READY,o.error(getError(s),"Could not get dependencies count")}))},m=function(s){(e.status!==t.READY||s)&&(e.status=t.WAIT,a.getRelationshipsStatus(f.contextID.uri).success((function(s){if(e.status=s,e.status===t.IN_PROGRESS){if(null!==p)return;p=i(m,2e3)}e.status===t.READY&&(null!==p&&(i.cancel(p),p=null),a.getRelationshipsClasses(e.direction,f.contextID.uri).success((function(t,s){e.allClasses.items=_.filter(t,v),e.allNotFilteredClasses=t,e.selectedClasses=void 0,angular.isUndefined(e.selectedClasses)&&(e.selectedClasses=t.slice(0,10)),g(e.selectedClasses),207===s&&o.warning("You can update the diagram by pressing the reload button.","Repository data has changed")}))),0===e.status.indexOf("ERROR;")&&(e.status=t.ERROR,o.error("There was an error while calculating dependencies: "+e.status.substring("ERROR;".length)))})).error((function(s){e.status=t.ERROR,o.error(getError(s),"Could not get dependencies count status!")})))};e.allClasses={},e.allClasses.items=[],e.allNotFilteredClasses=[],e.direction="all";const C={};let y=0,E=0;function v(t){return-1!==t.name.toLowerCase().indexOf(e.classQuery.query.toLowerCase())}n.key="",C.get=function(t,s,n){return l.initLazyList(t,s,n,y,e.allClasses.items)},n.$watch((function(){return n.key}),(function(){y=0,_.each(e.allClasses.items,(function(e){n.key>e&&y++})),E++})),C.revision=function(){return E},e.datasource=C,e.adapterContainer={adapter:{remain:!0}},e.classQuery={},e.classQuery.query="",e.classFilterFunc=v,e.$watch("allClasses.items",(function(){e.allClasses.items.length>0&&i((function(){e.adapterContainer.adapter.reload()}),30)})),e.$watch("direction",(function(){!r.getActiveRepository()||e.isSystemRepository()||r.isActiveRepoFedXType()||R()})),e.$on("$destroy",(function(){i.cancel(p)})),e.isLoading=function(){return e.status===t.IN_PROGRESS||e.status===t.WAIT},e.confirmCalculateDependencies=function(){c.openSimpleModal({title:"Confirm operation",message:"Calculating relationships data may take some time. Are you sure?",warning:!0}).result.then((function(){e.calculateDependencies()}))},e.calculateDependencies=function(){e.status=t.WAIT,e.selectedClasses=void 0,a.calculateRelationships(f.contextID.uri).success((function(e){0===e.indexOf("ERROR;")?o.error("There was an error while calculating dependencies: "+e.substring("ERROR;".length)):m()})).error((function(e){o.error("Could not force dependencies count"+getError(e))}))},e.addClass=function(t){e.selectedClasses.push(t),g(e.selectedClasses)},e.removeClass=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t.name})),g(e.selectedClasses)},e.showClass=function(t){e.classToShow=t},e.isClassByNameShown=function(t){return void 0!==_.find(e.selectedClasses,{name:t})},e.addClassByName=function(t){e.selectedClasses.push(_.find(e.allClasses.items,{name:t})),g(e.selectedClasses)},e.removeClassByName=function(t){_.remove(e.selectedClasses,(function(e){return e.name===t})),g(e.selectedClasses)},e.removeAllClasses=function(){e.selectedClasses=[],g(e.selectedClasses)},e.isSystemRepository=function(){return"SYSTEM"===r.getActiveRepository()};const A=e.$on("repositoryIsSet",(function(){e.classQuery={},e.classQuery.query="",e.repositoryError=null,f=s,r.getActiveRepository()&&!r.isActiveRepoFedXType()?R():e.status=t.NO_REPO}));window.addEventListener("beforeunload",(function e(){A(),window.removeEventListener("beforeunload",e)})),e.selectGraph=function(e){f=e,m(!0),u.set(`dependencies-selectedGraph-${r.getActiveRepository()}`,f)},e.getSelectedGraphValue=function(){return f.contextID.value},e.isAllGraphsSelected=function(){return"All graphs"===e.getSelectedGraphValue()}}Object.defineProperty(e,"allGraphs",{get:()=>s}),angular.module("graphdb.framework.graphexplore.controllers.dependencies",["ui.scroll.jqlite","ui.scroll","toastr","ui.bootstrap","graphdb.framework.core.services.repositories","graphdb.framework.utils.localstorageadapter"]).controller("DependenciesChordCtrl",r).config(["$tooltipProvider",function(e){e.options({appendToBody:!0})}]).filter("humanize",(function(){return n})),r.$inject=["$scope","$rootScope","$repositories","toastr","$timeout","GraphDataRestService","UiScrollService","ModalService","LocalStorageAdapter","RDF4JRepositoriesRestService"]}).call(this,s(3))}}]);
2
+ //# sourceMappingURL=57.41b09f5fa3ee623aab83.bundle.js.map